1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for c-ares 1.19.1. 4# 5# Report bugs to <c-ares mailing list: http://lists.haxx.se/listinfo/c-ares>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14 15## -------------------------------- ## 16## XC_CONFIGURE_PREAMBLE ver: 1.0 ## 17## -------------------------------- ## 18 19xc_configure_preamble_ver_major='1' 20xc_configure_preamble_ver_minor='0' 21 22# 23# Set IFS to space, tab and newline. 24# 25 26xc_space=' ' 27xc_tab=' ' 28xc_newline=' 29' 30IFS="$xc_space$xc_tab$xc_newline" 31 32# 33# Set internationalization behavior variables. 34# 35 36LANG='C' 37LC_ALL='C' 38LANGUAGE='C' 39export LANG 40export LC_ALL 41export LANGUAGE 42 43# 44# Some useful variables. 45# 46 47xc_msg_warn='configure: WARNING:' 48xc_msg_abrt='Can not continue.' 49xc_msg_err='configure: error:' 50 51# 52# Verify that 'echo' command is available, otherwise abort. 53# 54 55xc_tst_str='unknown' 56(`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success' 57case "x$xc_tst_str" in # (( 58 xsuccess) 59 : 60 ;; 61 *) 62 # Try built-in echo, and fail. 63 echo "$xc_msg_err 'echo' command not found. $xc_msg_abrt" >&2 64 exit 1 65 ;; 66esac 67 68# 69# Verify that 'test' command is available, otherwise abort. 70# 71 72xc_tst_str='unknown' 73(`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success' 74case "x$xc_tst_str" in # (( 75 xsuccess) 76 : 77 ;; 78 *) 79 echo "$xc_msg_err 'test' command not found. $xc_msg_abrt" >&2 80 exit 1 81 ;; 82esac 83 84# 85# Verify that 'PATH' variable is set, otherwise abort. 86# 87 88xc_tst_str='unknown' 89(`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success' 90case "x$xc_tst_str" in # (( 91 xsuccess) 92 : 93 ;; 94 *) 95 echo "$xc_msg_err 'PATH' variable not set. $xc_msg_abrt" >&2 96 exit 1 97 ;; 98esac 99 100# 101# Verify that 'expr' command is available, otherwise abort. 102# 103 104xc_tst_str='unknown' 105xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null` 106case "x$xc_tst_str" in # (( 107 x7) 108 : 109 ;; 110 *) 111 echo "$xc_msg_err 'expr' command not found. $xc_msg_abrt" >&2 112 exit 1 113 ;; 114esac 115 116# 117# Verify that 'sed' utility is found within 'PATH', otherwise abort. 118# 119 120xc_tst_str='unknown' 121xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \ 122 | sed -e 's:unknown:success:' 2>/dev/null` 123case "x$xc_tst_str" in # (( 124 xsuccess) 125 : 126 ;; 127 *) 128 echo "$xc_msg_err 'sed' utility not found in 'PATH'. $xc_msg_abrt" >&2 129 exit 1 130 ;; 131esac 132 133# 134# Verify that 'grep' utility is found within 'PATH', otherwise abort. 135# 136 137xc_tst_str='unknown' 138(`echo "$xc_tst_str" 2>/dev/null \ 139 | grep 'unknown' >/dev/null 2>&1`) && xc_tst_str='success' 140case "x$xc_tst_str" in # (( 141 xsuccess) 142 : 143 ;; 144 *) 145 echo "$xc_msg_err 'grep' utility not found in 'PATH'. $xc_msg_abrt" >&2 146 exit 1 147 ;; 148esac 149 150# 151# Verify that 'tr' utility is found within 'PATH', otherwise abort. 152# 153 154xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10" 155xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \ 156 | tr -d "0123456789$xc_tab" 2>/dev/null` 157case "x$xc_tst_str" in # (( 158 xsuccess) 159 : 160 ;; 161 *) 162 echo "$xc_msg_err 'tr' utility not found in 'PATH'. $xc_msg_abrt" >&2 163 exit 1 164 ;; 165esac 166 167# 168# Verify that 'wc' utility is found within 'PATH', otherwise abort. 169# 170 171xc_tst_str='unknown unknown unknown unknown' 172xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \ 173 | wc -w 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null` 174case "x$xc_tst_str" in # (( 175 x4) 176 : 177 ;; 178 *) 179 echo "$xc_msg_err 'wc' utility not found in 'PATH'. $xc_msg_abrt" >&2 180 exit 1 181 ;; 182esac 183 184# 185# Verify that 'cat' utility is found within 'PATH', otherwise abort. 186# 187 188xc_tst_str='unknown' 189xc_tst_str=`cat <<_EOT 2>/dev/null \ 190 | wc -l 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null 191unknown 192unknown 193unknown 194_EOT` 195case "x$xc_tst_str" in # (( 196 x3) 197 : 198 ;; 199 *) 200 echo "$xc_msg_err 'cat' utility not found in 'PATH'. $xc_msg_abrt" >&2 201 exit 1 202 ;; 203esac 204 205# 206# Auto-detect and set 'PATH_SEPARATOR', unless it is already non-empty set. 207# 208 209# Directory count in 'PATH' when using a colon separator. 210xc_tst_dirs_col='x' 211xc_tst_prev_IFS=$IFS; IFS=':' 212for xc_tst_dir in $PATH; do 213 IFS=$xc_tst_prev_IFS 214 xc_tst_dirs_col="x$xc_tst_dirs_col" 215done 216IFS=$xc_tst_prev_IFS 217xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'` 218 219# Directory count in 'PATH' when using a semicolon separator. 220xc_tst_dirs_sem='x' 221xc_tst_prev_IFS=$IFS; IFS=';' 222for xc_tst_dir in $PATH; do 223 IFS=$xc_tst_prev_IFS 224 xc_tst_dirs_sem="x$xc_tst_dirs_sem" 225done 226IFS=$xc_tst_prev_IFS 227xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'` 228 229if test $xc_tst_dirs_sem -eq $xc_tst_dirs_col; then 230 # When both counting methods give the same result we do not want to 231 # chose one over the other, and consider auto-detection not possible. 232 if test -z "$PATH_SEPARATOR"; then 233 # Stop dead until user provides 'PATH_SEPARATOR' definition. 234 echo "$xc_msg_err 'PATH_SEPARATOR' variable not set. $xc_msg_abrt" >&2 235 exit 1 236 fi 237else 238 # Separator with the greater directory count is the auto-detected one. 239 if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then 240 xc_tst_auto_separator=';' 241 else 242 xc_tst_auto_separator=':' 243 fi 244 if test -z "$PATH_SEPARATOR"; then 245 # Simply use the auto-detected one when not already set. 246 PATH_SEPARATOR=$xc_tst_auto_separator 247 elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then 248 echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2 249 fi 250fi 251xc_PATH_SEPARATOR=$PATH_SEPARATOR 252 253xc_configure_preamble_result='yes' 254 255 256## -------------------- ## 257## M4sh Initialization. ## 258## -------------------- ## 259 260# Be more Bourne compatible 261DUALCASE=1; export DUALCASE # for MKS sh 262as_nop=: 263if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 264then : 265 emulate sh 266 NULLCMD=: 267 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 268 # is contrary to our usage. Disable this feature. 269 alias -g '${1+"$@"}'='"$@"' 270 setopt NO_GLOB_SUBST 271else $as_nop 272 case `(set -o) 2>/dev/null` in #( 273 *posix*) : 274 set -o posix ;; #( 275 *) : 276 ;; 277esac 278fi 279 280 281 282# Reset variables that may have inherited troublesome values from 283# the environment. 284 285# IFS needs to be set, to space, tab, and newline, in precisely that order. 286# (If _AS_PATH_WALK were called with IFS unset, it would have the 287# side effect of setting IFS to empty, thus disabling word splitting.) 288# Quoting is to prevent editors from complaining about space-tab. 289as_nl=' 290' 291export as_nl 292IFS=" "" $as_nl" 293 294PS1='$ ' 295PS2='> ' 296PS4='+ ' 297 298# Ensure predictable behavior from utilities with locale-dependent output. 299LC_ALL=C 300export LC_ALL 301LANGUAGE=C 302export LANGUAGE 303 304# We cannot yet rely on "unset" to work, but we need these variables 305# to be unset--not just set to an empty or harmless value--now, to 306# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 307# also avoids known problems related to "unset" and subshell syntax 308# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 309for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 310do eval test \${$as_var+y} \ 311 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 312done 313 314# Ensure that fds 0, 1, and 2 are open. 315if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 316if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 317if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 318 319 320 321# Find who we are. Look in the path if we contain no directory separator. 322as_myself= 323case $0 in #(( 324 *[\\/]* ) as_myself=$0 ;; 325 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 326for as_dir in $PATH 327do 328 IFS=$as_save_IFS 329 case $as_dir in #((( 330 '') as_dir=./ ;; 331 */) ;; 332 *) as_dir=$as_dir/ ;; 333 esac 334 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 335 done 336IFS=$as_save_IFS 337 338 ;; 339esac 340# We did not find ourselves, most probably we were run as `sh COMMAND' 341# in which case we are not to be found in the path. 342if test "x$as_myself" = x; then 343 as_myself=$0 344fi 345if test ! -f "$as_myself"; then 346 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 347 exit 1 348fi 349 350 351# Use a proper internal environment variable to ensure we don't fall 352 # into an infinite loop, continuously re-executing ourselves. 353 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 354 _as_can_reexec=no; export _as_can_reexec; 355 # We cannot yet assume a decent shell, so we have to provide a 356# neutralization value for shells without unset; and this also 357# works around shells that cannot unset nonexistent variables. 358# Preserve -v and -x to the replacement shell. 359BASH_ENV=/dev/null 360ENV=/dev/null 361(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 362case $- in # (((( 363 *v*x* | *x*v* ) as_opts=-vx ;; 364 *v* ) as_opts=-v ;; 365 *x* ) as_opts=-x ;; 366 * ) as_opts= ;; 367esac 368exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 369# Admittedly, this is quite paranoid, since all the known shells bail 370# out after a failed `exec'. 371printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 372exit 255 373 fi 374 # We don't want this to propagate to other subprocesses. 375 { _as_can_reexec=; unset _as_can_reexec;} 376if test "x$CONFIG_SHELL" = x; then 377 as_bourne_compatible="as_nop=: 378if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 379then : 380 emulate sh 381 NULLCMD=: 382 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 383 # is contrary to our usage. Disable this feature. 384 alias -g '\${1+\"\$@\"}'='\"\$@\"' 385 setopt NO_GLOB_SUBST 386else \$as_nop 387 case \`(set -o) 2>/dev/null\` in #( 388 *posix*) : 389 set -o posix ;; #( 390 *) : 391 ;; 392esac 393fi 394" 395 as_required="as_fn_return () { (exit \$1); } 396as_fn_success () { as_fn_return 0; } 397as_fn_failure () { as_fn_return 1; } 398as_fn_ret_success () { return 0; } 399as_fn_ret_failure () { return 1; } 400 401exitcode=0 402as_fn_success || { exitcode=1; echo as_fn_success failed.; } 403as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 404as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 405as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 406if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 407then : 408 409else \$as_nop 410 exitcode=1; echo positional parameters were not saved. 411fi 412test x\$exitcode = x0 || exit 1 413blah=\$(echo \$(echo blah)) 414test x\"\$blah\" = xblah || exit 1 415test -x / || exit 1" 416 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 417 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 418 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 419 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 420test \$(( 1 + 1 )) = 2 || exit 1 421 422 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 423 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 424 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 425 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 426 PATH=/empty FPATH=/empty; export PATH FPATH 427 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 428 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 429 if (eval "$as_required") 2>/dev/null 430then : 431 as_have_required=yes 432else $as_nop 433 as_have_required=no 434fi 435 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 436then : 437 438else $as_nop 439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 440as_found=false 441for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 442do 443 IFS=$as_save_IFS 444 case $as_dir in #((( 445 '') as_dir=./ ;; 446 */) ;; 447 *) as_dir=$as_dir/ ;; 448 esac 449 as_found=: 450 case $as_dir in #( 451 /*) 452 for as_base in sh bash ksh sh5; do 453 # Try only shells that exist, to save several forks. 454 as_shell=$as_dir$as_base 455 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 456 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 457then : 458 CONFIG_SHELL=$as_shell as_have_required=yes 459 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 460then : 461 break 2 462fi 463fi 464 done;; 465 esac 466 as_found=false 467done 468IFS=$as_save_IFS 469if $as_found 470then : 471 472else $as_nop 473 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 474 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 475then : 476 CONFIG_SHELL=$SHELL as_have_required=yes 477fi 478fi 479 480 481 if test "x$CONFIG_SHELL" != x 482then : 483 export CONFIG_SHELL 484 # We cannot yet assume a decent shell, so we have to provide a 485# neutralization value for shells without unset; and this also 486# works around shells that cannot unset nonexistent variables. 487# Preserve -v and -x to the replacement shell. 488BASH_ENV=/dev/null 489ENV=/dev/null 490(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 491case $- in # (((( 492 *v*x* | *x*v* ) as_opts=-vx ;; 493 *v* ) as_opts=-v ;; 494 *x* ) as_opts=-x ;; 495 * ) as_opts= ;; 496esac 497exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 498# Admittedly, this is quite paranoid, since all the known shells bail 499# out after a failed `exec'. 500printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 501exit 255 502fi 503 504 if test x$as_have_required = xno 505then : 506 printf "%s\n" "$0: This script requires a shell more modern than all" 507 printf "%s\n" "$0: the shells that I found on your system." 508 if test ${ZSH_VERSION+y} ; then 509 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 510 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 511 else 512 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and c-ares mailing 513$0: list: http://lists.haxx.se/listinfo/c-ares about your 514$0: system, including any error possibly output before this 515$0: message. Then install a modern shell, or manually run 516$0: the script under such a shell if you do have one." 517 fi 518 exit 1 519fi 520fi 521fi 522SHELL=${CONFIG_SHELL-/bin/sh} 523export SHELL 524# Unset more variables known to interfere with behavior of common tools. 525CLICOLOR_FORCE= GREP_OPTIONS= 526unset CLICOLOR_FORCE GREP_OPTIONS 527 528## --------------------- ## 529## M4sh Shell Functions. ## 530## --------------------- ## 531# as_fn_unset VAR 532# --------------- 533# Portably unset VAR. 534as_fn_unset () 535{ 536 { eval $1=; unset $1;} 537} 538as_unset=as_fn_unset 539 540 541# as_fn_set_status STATUS 542# ----------------------- 543# Set $? to STATUS, without forking. 544as_fn_set_status () 545{ 546 return $1 547} # as_fn_set_status 548 549# as_fn_exit STATUS 550# ----------------- 551# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 552as_fn_exit () 553{ 554 set +e 555 as_fn_set_status $1 556 exit $1 557} # as_fn_exit 558# as_fn_nop 559# --------- 560# Do nothing but, unlike ":", preserve the value of $?. 561as_fn_nop () 562{ 563 return $? 564} 565as_nop=as_fn_nop 566 567# as_fn_mkdir_p 568# ------------- 569# Create "$as_dir" as a directory, including parents if necessary. 570as_fn_mkdir_p () 571{ 572 573 case $as_dir in #( 574 -*) as_dir=./$as_dir;; 575 esac 576 test -d "$as_dir" || eval $as_mkdir_p || { 577 as_dirs= 578 while :; do 579 case $as_dir in #( 580 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 581 *) as_qdir=$as_dir;; 582 esac 583 as_dirs="'$as_qdir' $as_dirs" 584 as_dir=`$as_dirname -- "$as_dir" || 585$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 586 X"$as_dir" : 'X\(//\)[^/]' \| \ 587 X"$as_dir" : 'X\(//\)$' \| \ 588 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 589printf "%s\n" X"$as_dir" | 590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 591 s//\1/ 592 q 593 } 594 /^X\(\/\/\)[^/].*/{ 595 s//\1/ 596 q 597 } 598 /^X\(\/\/\)$/{ 599 s//\1/ 600 q 601 } 602 /^X\(\/\).*/{ 603 s//\1/ 604 q 605 } 606 s/.*/./; q'` 607 test -d "$as_dir" && break 608 done 609 test -z "$as_dirs" || eval "mkdir $as_dirs" 610 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 611 612 613} # as_fn_mkdir_p 614 615# as_fn_executable_p FILE 616# ----------------------- 617# Test if FILE is an executable regular file. 618as_fn_executable_p () 619{ 620 test -f "$1" && test -x "$1" 621} # as_fn_executable_p 622# as_fn_append VAR VALUE 623# ---------------------- 624# Append the text in VALUE to the end of the definition contained in VAR. Take 625# advantage of any shell optimizations that allow amortized linear growth over 626# repeated appends, instead of the typical quadratic growth present in naive 627# implementations. 628if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 629then : 630 eval 'as_fn_append () 631 { 632 eval $1+=\$2 633 }' 634else $as_nop 635 as_fn_append () 636 { 637 eval $1=\$$1\$2 638 } 639fi # as_fn_append 640 641# as_fn_arith ARG... 642# ------------------ 643# Perform arithmetic evaluation on the ARGs, and store the result in the 644# global $as_val. Take advantage of shells that can avoid forks. The arguments 645# must be portable across $(()) and expr. 646if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 647then : 648 eval 'as_fn_arith () 649 { 650 as_val=$(( $* )) 651 }' 652else $as_nop 653 as_fn_arith () 654 { 655 as_val=`expr "$@" || test $? -eq 1` 656 } 657fi # as_fn_arith 658 659# as_fn_nop 660# --------- 661# Do nothing but, unlike ":", preserve the value of $?. 662as_fn_nop () 663{ 664 return $? 665} 666as_nop=as_fn_nop 667 668# as_fn_error STATUS ERROR [LINENO LOG_FD] 669# ---------------------------------------- 670# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 671# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 672# script with STATUS, using 1 if that was 0. 673as_fn_error () 674{ 675 as_status=$1; test $as_status -eq 0 && as_status=1 676 if test "$4"; then 677 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 679 fi 680 printf "%s\n" "$as_me: error: $2" >&2 681 as_fn_exit $as_status 682} # as_fn_error 683 684if expr a : '\(a\)' >/dev/null 2>&1 && 685 test "X`expr 00001 : '.*\(...\)'`" = X001; then 686 as_expr=expr 687else 688 as_expr=false 689fi 690 691if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 692 as_basename=basename 693else 694 as_basename=false 695fi 696 697if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 698 as_dirname=dirname 699else 700 as_dirname=false 701fi 702 703as_me=`$as_basename -- "$0" || 704$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 705 X"$0" : 'X\(//\)$' \| \ 706 X"$0" : 'X\(/\)' \| . 2>/dev/null || 707printf "%s\n" X/"$0" | 708 sed '/^.*\/\([^/][^/]*\)\/*$/{ 709 s//\1/ 710 q 711 } 712 /^X\/\(\/\/\)$/{ 713 s//\1/ 714 q 715 } 716 /^X\/\(\/\).*/{ 717 s//\1/ 718 q 719 } 720 s/.*/./; q'` 721 722# Avoid depending upon Character Ranges. 723as_cr_letters='abcdefghijklmnopqrstuvwxyz' 724as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 725as_cr_Letters=$as_cr_letters$as_cr_LETTERS 726as_cr_digits='0123456789' 727as_cr_alnum=$as_cr_Letters$as_cr_digits 728 729 730 as_lineno_1=$LINENO as_lineno_1a=$LINENO 731 as_lineno_2=$LINENO as_lineno_2a=$LINENO 732 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 733 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 734 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 735 sed -n ' 736 p 737 /[$]LINENO/= 738 ' <$as_myself | 739 sed ' 740 s/[$]LINENO.*/&-/ 741 t lineno 742 b 743 :lineno 744 N 745 :loop 746 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 747 t loop 748 s/-\n.*// 749 ' >$as_me.lineno && 750 chmod +x "$as_me.lineno" || 751 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 752 753 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 754 # already done that, so ensure we don't try to do so again and fall 755 # in an infinite loop. This has already happened in practice. 756 _as_can_reexec=no; export _as_can_reexec 757 # Don't try to exec as it changes $[0], causing all sort of problems 758 # (the dirname of $[0] is not the place where we might find the 759 # original and so on. Autoconf is especially sensitive to this). 760 . "./$as_me.lineno" 761 # Exit status is that of the last command. 762 exit 763} 764 765 766# Determine whether it's possible to make 'echo' print without a newline. 767# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 768# for compatibility with existing Makefiles. 769ECHO_C= ECHO_N= ECHO_T= 770case `echo -n x` in #((((( 771-n*) 772 case `echo 'xy\c'` in 773 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 774 xy) ECHO_C='\c';; 775 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 776 ECHO_T=' ';; 777 esac;; 778*) 779 ECHO_N='-n';; 780esac 781 782# For backward compatibility with old third-party macros, we provide 783# the shell variables $as_echo and $as_echo_n. New code should use 784# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 785as_echo='printf %s\n' 786as_echo_n='printf %s' 787 788 789rm -f conf$$ conf$$.exe conf$$.file 790if test -d conf$$.dir; then 791 rm -f conf$$.dir/conf$$.file 792else 793 rm -f conf$$.dir 794 mkdir conf$$.dir 2>/dev/null 795fi 796if (echo >conf$$.file) 2>/dev/null; then 797 if ln -s conf$$.file conf$$ 2>/dev/null; then 798 as_ln_s='ln -s' 799 # ... but there are two gotchas: 800 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 801 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 802 # In both cases, we have to default to `cp -pR'. 803 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 804 as_ln_s='cp -pR' 805 elif ln conf$$.file conf$$ 2>/dev/null; then 806 as_ln_s=ln 807 else 808 as_ln_s='cp -pR' 809 fi 810else 811 as_ln_s='cp -pR' 812fi 813rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 814rmdir conf$$.dir 2>/dev/null 815 816if mkdir -p . 2>/dev/null; then 817 as_mkdir_p='mkdir -p "$as_dir"' 818else 819 test -d ./-p && rmdir ./-p 820 as_mkdir_p=false 821fi 822 823as_test_x='test -x' 824as_executable_p=as_fn_executable_p 825 826# Sed expression to map a string onto a valid CPP name. 827as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 828 829# Sed expression to map a string onto a valid variable name. 830as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 831 832SHELL=${CONFIG_SHELL-/bin/sh} 833 834 835test -n "$DJDIR" || exec 7<&0 </dev/null 836exec 6>&1 837 838# Name of the host. 839# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 840# so uname gets run too. 841ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 842 843# 844# Initializations. 845# 846ac_default_prefix=/usr/local 847ac_clean_files= 848ac_config_libobj_dir=. 849LIBOBJS= 850cross_compiling=no 851subdirs= 852MFLAGS= 853MAKEFLAGS= 854 855# Identity of this package. 856PACKAGE_NAME='c-ares' 857PACKAGE_TARNAME='c-ares' 858PACKAGE_VERSION='1.19.1' 859PACKAGE_STRING='c-ares 1.19.1' 860PACKAGE_BUGREPORT='c-ares mailing list: http://lists.haxx.se/listinfo/c-ares' 861PACKAGE_URL='' 862 863ac_unique_file="src/lib/ares_ipv6.h" 864# Factoring default headers for most tests. 865ac_includes_default="\ 866#include <stddef.h> 867#ifdef HAVE_STDIO_H 868# include <stdio.h> 869#endif 870#ifdef HAVE_STDLIB_H 871# include <stdlib.h> 872#endif 873#ifdef HAVE_STRING_H 874# include <string.h> 875#endif 876#ifdef HAVE_INTTYPES_H 877# include <inttypes.h> 878#endif 879#ifdef HAVE_STDINT_H 880# include <stdint.h> 881#endif 882#ifdef HAVE_STRINGS_H 883# include <strings.h> 884#endif 885#ifdef HAVE_SYS_TYPES_H 886# include <sys/types.h> 887#endif 888#ifdef HAVE_SYS_STAT_H 889# include <sys/stat.h> 890#endif 891#ifdef HAVE_UNISTD_H 892# include <unistd.h> 893#endif" 894 895ac_header_c_list= 896enable_option_checking=no 897ac_subst_vars='am__EXEEXT_FALSE 898am__EXEEXT_TRUE 899LTLIBOBJS 900LIBOBJS 901BUILD_SUBDIRS 902subdirs 903CARES_CFLAG_EXTRAS 904CARES_PRIVATE_LIBS 905CFLAG_CARES_SYMBOL_HIDING 906DOING_CARES_SYMBOL_HIDING_FALSE 907DOING_CARES_SYMBOL_HIDING_TRUE 908CARES_RANDOM_FILE 909DOING_NATIVE_WINDOWS_FALSE 910DOING_NATIVE_WINDOWS_TRUE 911CPPFLAG_CARES_STATICLIB 912USE_CPPFLAG_CARES_STATICLIB_FALSE 913USE_CPPFLAG_CARES_STATICLIB_TRUE 914CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE 915CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE 916CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE 917CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE 918CARES_LT_SHLIB_USE_VERSION_INFO_FALSE 919CARES_LT_SHLIB_USE_VERSION_INFO_TRUE 920CXXCPP 921LT_SYS_LIBRARY_PATH 922OTOOL64 923OTOOL 924LIPO 925NMEDIT 926DSYMUTIL 927MANIFEST_TOOL 928RANLIB 929ac_ct_AR 930FILECMD 931LN_S 932NM 933ac_ct_DUMPBIN 934DUMPBIN 935LD 936FGREP 937LIBTOOL 938OBJDUMP 939DLLTOOL 940AS 941CSCOPE 942ETAGS 943CTAGS 944am__fastdepCXX_FALSE 945am__fastdepCXX_TRUE 946CXXDEPMODE 947am__fastdepCC_FALSE 948am__fastdepCC_TRUE 949CCDEPMODE 950am__nodep 951AMDEPBACKSLASH 952AMDEP_FALSE 953AMDEP_TRUE 954am__include 955DEPDIR 956am__untar 957am__tar 958AMTAR 959am__leading_dot 960SET_MAKE 961mkdir_p 962MKDIR_P 963INSTALL_STRIP_PROGRAM 964STRIP 965install_sh 966MAKEINFO 967AUTOHEADER 968AUTOMAKE 969AUTOCONF 970ACLOCAL 971VERSION 972PACKAGE 973CYGPATH_W 974am__isrc 975HAVE_CXX11 976ac_ct_CXX 977CXXFLAGS 978CXX 979CPP 980OBJEXT 981EXEEXT 982ac_ct_CC 983CPPFLAGS 984LDFLAGS 985CFLAGS 986CC 987INSTALL_DATA 988INSTALL_SCRIPT 989INSTALL_PROGRAM 990host_os 991host_vendor 992host_cpu 993host 994build_os 995build_vendor 996build_cpu 997build 998CODE_COVERAGE_LIBS 999CODE_COVERAGE_CXXFLAGS 1000CODE_COVERAGE_CFLAGS 1001CODE_COVERAGE_CPPFLAGS 1002GENHTML 1003LCOV 1004GCOV 1005ifnGNUmake 1006ifGNUmake 1007AWK 1008CODE_COVERAGE_ENABLED 1009CODE_COVERAGE_ENABLED_FALSE 1010CODE_COVERAGE_ENABLED_TRUE 1011AR 1012EGREP 1013GREP 1014SED 1015AM_BACKSLASH 1016AM_DEFAULT_VERBOSITY 1017AM_DEFAULT_V 1018AM_V 1019MAINT 1020MAINTAINER_MODE_FALSE 1021MAINTAINER_MODE_TRUE 1022CARES_VERSION_INFO 1023target_alias 1024host_alias 1025build_alias 1026LIBS 1027ECHO_T 1028ECHO_N 1029ECHO_C 1030DEFS 1031mandir 1032localedir 1033libdir 1034psdir 1035pdfdir 1036dvidir 1037htmldir 1038infodir 1039docdir 1040oldincludedir 1041includedir 1042runstatedir 1043localstatedir 1044sharedstatedir 1045sysconfdir 1046datadir 1047datarootdir 1048libexecdir 1049sbindir 1050bindir 1051program_transform_name 1052prefix 1053exec_prefix 1054PACKAGE_URL 1055PACKAGE_BUGREPORT 1056PACKAGE_STRING 1057PACKAGE_VERSION 1058PACKAGE_TARNAME 1059PACKAGE_NAME 1060SHELL 1061PATH_SEPARATOR 1062am__quote' 1063ac_subst_files='' 1064ac_user_opts=' 1065enable_option_checking 1066enable_maintainer_mode 1067enable_silent_rules 1068enable_debug 1069enable_optimize 1070enable_warnings 1071enable_werror 1072enable_symbol_hiding 1073enable_expose_statics 1074with_gcov 1075enable_code_coverage 1076enable_dependency_tracking 1077enable_largefile 1078enable_shared 1079enable_static 1080with_pic 1081enable_fast_install 1082with_aix_soname 1083with_gnu_ld 1084with_sysroot 1085enable_libtool_lock 1086enable_libgcc 1087with_random 1088enable_nonblocking 1089enable_tests 1090' 1091 ac_precious_vars='build_alias 1092host_alias 1093target_alias 1094CC 1095CFLAGS 1096LDFLAGS 1097LIBS 1098CPPFLAGS 1099CPP 1100CXX 1101CXXFLAGS 1102CCC 1103LT_SYS_LIBRARY_PATH 1104CXXCPP' 1105ac_subdirs_all='test' 1106 1107# Initialize some variables set by options. 1108ac_init_help= 1109ac_init_version=false 1110ac_unrecognized_opts= 1111ac_unrecognized_sep= 1112# The variables have the same names as the options, with 1113# dashes changed to underlines. 1114cache_file=/dev/null 1115exec_prefix=NONE 1116no_create= 1117no_recursion= 1118prefix=NONE 1119program_prefix=NONE 1120program_suffix=NONE 1121program_transform_name=s,x,x, 1122silent= 1123site= 1124srcdir= 1125verbose= 1126x_includes=NONE 1127x_libraries=NONE 1128 1129# Installation directory options. 1130# These are left unexpanded so users can "make install exec_prefix=/foo" 1131# and all the variables that are supposed to be based on exec_prefix 1132# by default will actually change. 1133# Use braces instead of parens because sh, perl, etc. also accept them. 1134# (The list follows the same order as the GNU Coding Standards.) 1135bindir='${exec_prefix}/bin' 1136sbindir='${exec_prefix}/sbin' 1137libexecdir='${exec_prefix}/libexec' 1138datarootdir='${prefix}/share' 1139datadir='${datarootdir}' 1140sysconfdir='${prefix}/etc' 1141sharedstatedir='${prefix}/com' 1142localstatedir='${prefix}/var' 1143runstatedir='${localstatedir}/run' 1144includedir='${prefix}/include' 1145oldincludedir='/usr/include' 1146docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1147infodir='${datarootdir}/info' 1148htmldir='${docdir}' 1149dvidir='${docdir}' 1150pdfdir='${docdir}' 1151psdir='${docdir}' 1152libdir='${exec_prefix}/lib' 1153localedir='${datarootdir}/locale' 1154mandir='${datarootdir}/man' 1155 1156ac_prev= 1157ac_dashdash= 1158for ac_option 1159do 1160 # If the previous option needs an argument, assign it. 1161 if test -n "$ac_prev"; then 1162 eval $ac_prev=\$ac_option 1163 ac_prev= 1164 continue 1165 fi 1166 1167 case $ac_option in 1168 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1169 *=) ac_optarg= ;; 1170 *) ac_optarg=yes ;; 1171 esac 1172 1173 case $ac_dashdash$ac_option in 1174 --) 1175 ac_dashdash=yes ;; 1176 1177 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1178 ac_prev=bindir ;; 1179 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1180 bindir=$ac_optarg ;; 1181 1182 -build | --build | --buil | --bui | --bu) 1183 ac_prev=build_alias ;; 1184 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1185 build_alias=$ac_optarg ;; 1186 1187 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1188 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1189 ac_prev=cache_file ;; 1190 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1191 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1192 cache_file=$ac_optarg ;; 1193 1194 --config-cache | -C) 1195 cache_file=config.cache ;; 1196 1197 -datadir | --datadir | --datadi | --datad) 1198 ac_prev=datadir ;; 1199 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1200 datadir=$ac_optarg ;; 1201 1202 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1203 | --dataroo | --dataro | --datar) 1204 ac_prev=datarootdir ;; 1205 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1206 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1207 datarootdir=$ac_optarg ;; 1208 1209 -disable-* | --disable-*) 1210 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1211 # Reject names that are not valid shell variable names. 1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1213 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1214 ac_useropt_orig=$ac_useropt 1215 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1216 case $ac_user_opts in 1217 *" 1218"enable_$ac_useropt" 1219"*) ;; 1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1221 ac_unrecognized_sep=', ';; 1222 esac 1223 eval enable_$ac_useropt=no ;; 1224 1225 -docdir | --docdir | --docdi | --doc | --do) 1226 ac_prev=docdir ;; 1227 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1228 docdir=$ac_optarg ;; 1229 1230 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1231 ac_prev=dvidir ;; 1232 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1233 dvidir=$ac_optarg ;; 1234 1235 -enable-* | --enable-*) 1236 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1237 # Reject names that are not valid shell variable names. 1238 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1239 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1240 ac_useropt_orig=$ac_useropt 1241 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1242 case $ac_user_opts in 1243 *" 1244"enable_$ac_useropt" 1245"*) ;; 1246 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1247 ac_unrecognized_sep=', ';; 1248 esac 1249 eval enable_$ac_useropt=\$ac_optarg ;; 1250 1251 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1252 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1253 | --exec | --exe | --ex) 1254 ac_prev=exec_prefix ;; 1255 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1256 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1257 | --exec=* | --exe=* | --ex=*) 1258 exec_prefix=$ac_optarg ;; 1259 1260 -gas | --gas | --ga | --g) 1261 # Obsolete; use --with-gas. 1262 with_gas=yes ;; 1263 1264 -help | --help | --hel | --he | -h) 1265 ac_init_help=long ;; 1266 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1267 ac_init_help=recursive ;; 1268 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1269 ac_init_help=short ;; 1270 1271 -host | --host | --hos | --ho) 1272 ac_prev=host_alias ;; 1273 -host=* | --host=* | --hos=* | --ho=*) 1274 host_alias=$ac_optarg ;; 1275 1276 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1277 ac_prev=htmldir ;; 1278 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1279 | --ht=*) 1280 htmldir=$ac_optarg ;; 1281 1282 -includedir | --includedir | --includedi | --included | --include \ 1283 | --includ | --inclu | --incl | --inc) 1284 ac_prev=includedir ;; 1285 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1286 | --includ=* | --inclu=* | --incl=* | --inc=*) 1287 includedir=$ac_optarg ;; 1288 1289 -infodir | --infodir | --infodi | --infod | --info | --inf) 1290 ac_prev=infodir ;; 1291 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1292 infodir=$ac_optarg ;; 1293 1294 -libdir | --libdir | --libdi | --libd) 1295 ac_prev=libdir ;; 1296 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1297 libdir=$ac_optarg ;; 1298 1299 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1300 | --libexe | --libex | --libe) 1301 ac_prev=libexecdir ;; 1302 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1303 | --libexe=* | --libex=* | --libe=*) 1304 libexecdir=$ac_optarg ;; 1305 1306 -localedir | --localedir | --localedi | --localed | --locale) 1307 ac_prev=localedir ;; 1308 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1309 localedir=$ac_optarg ;; 1310 1311 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1312 | --localstate | --localstat | --localsta | --localst | --locals) 1313 ac_prev=localstatedir ;; 1314 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1315 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1316 localstatedir=$ac_optarg ;; 1317 1318 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1319 ac_prev=mandir ;; 1320 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1321 mandir=$ac_optarg ;; 1322 1323 -nfp | --nfp | --nf) 1324 # Obsolete; use --without-fp. 1325 with_fp=no ;; 1326 1327 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1328 | --no-cr | --no-c | -n) 1329 no_create=yes ;; 1330 1331 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1332 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1333 no_recursion=yes ;; 1334 1335 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1336 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1337 | --oldin | --oldi | --old | --ol | --o) 1338 ac_prev=oldincludedir ;; 1339 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1340 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1341 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1342 oldincludedir=$ac_optarg ;; 1343 1344 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1345 ac_prev=prefix ;; 1346 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1347 prefix=$ac_optarg ;; 1348 1349 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1350 | --program-pre | --program-pr | --program-p) 1351 ac_prev=program_prefix ;; 1352 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1353 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1354 program_prefix=$ac_optarg ;; 1355 1356 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1357 | --program-suf | --program-su | --program-s) 1358 ac_prev=program_suffix ;; 1359 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1360 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1361 program_suffix=$ac_optarg ;; 1362 1363 -program-transform-name | --program-transform-name \ 1364 | --program-transform-nam | --program-transform-na \ 1365 | --program-transform-n | --program-transform- \ 1366 | --program-transform | --program-transfor \ 1367 | --program-transfo | --program-transf \ 1368 | --program-trans | --program-tran \ 1369 | --progr-tra | --program-tr | --program-t) 1370 ac_prev=program_transform_name ;; 1371 -program-transform-name=* | --program-transform-name=* \ 1372 | --program-transform-nam=* | --program-transform-na=* \ 1373 | --program-transform-n=* | --program-transform-=* \ 1374 | --program-transform=* | --program-transfor=* \ 1375 | --program-transfo=* | --program-transf=* \ 1376 | --program-trans=* | --program-tran=* \ 1377 | --progr-tra=* | --program-tr=* | --program-t=*) 1378 program_transform_name=$ac_optarg ;; 1379 1380 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1381 ac_prev=pdfdir ;; 1382 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1383 pdfdir=$ac_optarg ;; 1384 1385 -psdir | --psdir | --psdi | --psd | --ps) 1386 ac_prev=psdir ;; 1387 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1388 psdir=$ac_optarg ;; 1389 1390 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1391 | -silent | --silent | --silen | --sile | --sil) 1392 silent=yes ;; 1393 1394 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1395 | --runstate | --runstat | --runsta | --runst | --runs \ 1396 | --run | --ru | --r) 1397 ac_prev=runstatedir ;; 1398 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1399 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1400 | --run=* | --ru=* | --r=*) 1401 runstatedir=$ac_optarg ;; 1402 1403 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1404 ac_prev=sbindir ;; 1405 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1406 | --sbi=* | --sb=*) 1407 sbindir=$ac_optarg ;; 1408 1409 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1410 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1411 | --sharedst | --shareds | --shared | --share | --shar \ 1412 | --sha | --sh) 1413 ac_prev=sharedstatedir ;; 1414 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1415 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1416 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1417 | --sha=* | --sh=*) 1418 sharedstatedir=$ac_optarg ;; 1419 1420 -site | --site | --sit) 1421 ac_prev=site ;; 1422 -site=* | --site=* | --sit=*) 1423 site=$ac_optarg ;; 1424 1425 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1426 ac_prev=srcdir ;; 1427 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1428 srcdir=$ac_optarg ;; 1429 1430 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1431 | --syscon | --sysco | --sysc | --sys | --sy) 1432 ac_prev=sysconfdir ;; 1433 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1434 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1435 sysconfdir=$ac_optarg ;; 1436 1437 -target | --target | --targe | --targ | --tar | --ta | --t) 1438 ac_prev=target_alias ;; 1439 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1440 target_alias=$ac_optarg ;; 1441 1442 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1443 verbose=yes ;; 1444 1445 -version | --version | --versio | --versi | --vers | -V) 1446 ac_init_version=: ;; 1447 1448 -with-* | --with-*) 1449 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1450 # Reject names that are not valid shell variable names. 1451 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1452 as_fn_error $? "invalid package name: \`$ac_useropt'" 1453 ac_useropt_orig=$ac_useropt 1454 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1455 case $ac_user_opts in 1456 *" 1457"with_$ac_useropt" 1458"*) ;; 1459 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1460 ac_unrecognized_sep=', ';; 1461 esac 1462 eval with_$ac_useropt=\$ac_optarg ;; 1463 1464 -without-* | --without-*) 1465 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1466 # Reject names that are not valid shell variable names. 1467 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1468 as_fn_error $? "invalid package name: \`$ac_useropt'" 1469 ac_useropt_orig=$ac_useropt 1470 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1471 case $ac_user_opts in 1472 *" 1473"with_$ac_useropt" 1474"*) ;; 1475 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1476 ac_unrecognized_sep=', ';; 1477 esac 1478 eval with_$ac_useropt=no ;; 1479 1480 --x) 1481 # Obsolete; use --with-x. 1482 with_x=yes ;; 1483 1484 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1485 | --x-incl | --x-inc | --x-in | --x-i) 1486 ac_prev=x_includes ;; 1487 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1488 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1489 x_includes=$ac_optarg ;; 1490 1491 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1492 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1493 ac_prev=x_libraries ;; 1494 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1495 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1496 x_libraries=$ac_optarg ;; 1497 1498 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1499Try \`$0 --help' for more information" 1500 ;; 1501 1502 *=*) 1503 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1504 # Reject names that are not valid shell variable names. 1505 case $ac_envvar in #( 1506 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1507 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1508 esac 1509 eval $ac_envvar=\$ac_optarg 1510 export $ac_envvar ;; 1511 1512 *) 1513 # FIXME: should be removed in autoconf 3.0. 1514 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1515 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1516 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1517 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1518 ;; 1519 1520 esac 1521done 1522 1523if test -n "$ac_prev"; then 1524 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1525 as_fn_error $? "missing argument to $ac_option" 1526fi 1527 1528if test -n "$ac_unrecognized_opts"; then 1529 case $enable_option_checking in 1530 no) ;; 1531 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1532 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1533 esac 1534fi 1535 1536# Check all directory arguments for consistency. 1537for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1538 datadir sysconfdir sharedstatedir localstatedir includedir \ 1539 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1540 libdir localedir mandir runstatedir 1541do 1542 eval ac_val=\$$ac_var 1543 # Remove trailing slashes. 1544 case $ac_val in 1545 */ ) 1546 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1547 eval $ac_var=\$ac_val;; 1548 esac 1549 # Be sure to have absolute directory names. 1550 case $ac_val in 1551 [\\/$]* | ?:[\\/]* ) continue;; 1552 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1553 esac 1554 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1555done 1556 1557# There might be people who depend on the old broken behavior: `$host' 1558# used to hold the argument of --host etc. 1559# FIXME: To remove some day. 1560build=$build_alias 1561host=$host_alias 1562target=$target_alias 1563 1564# FIXME: To remove some day. 1565if test "x$host_alias" != x; then 1566 if test "x$build_alias" = x; then 1567 cross_compiling=maybe 1568 elif test "x$build_alias" != "x$host_alias"; then 1569 cross_compiling=yes 1570 fi 1571fi 1572 1573ac_tool_prefix= 1574test -n "$host_alias" && ac_tool_prefix=$host_alias- 1575 1576test "$silent" = yes && exec 6>/dev/null 1577 1578 1579ac_pwd=`pwd` && test -n "$ac_pwd" && 1580ac_ls_di=`ls -di .` && 1581ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1582 as_fn_error $? "working directory cannot be determined" 1583test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1584 as_fn_error $? "pwd does not report name of working directory" 1585 1586 1587# Find the source files, if location was not specified. 1588if test -z "$srcdir"; then 1589 ac_srcdir_defaulted=yes 1590 # Try the directory containing this script, then the parent directory. 1591 ac_confdir=`$as_dirname -- "$as_myself" || 1592$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1593 X"$as_myself" : 'X\(//\)[^/]' \| \ 1594 X"$as_myself" : 'X\(//\)$' \| \ 1595 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1596printf "%s\n" X"$as_myself" | 1597 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1598 s//\1/ 1599 q 1600 } 1601 /^X\(\/\/\)[^/].*/{ 1602 s//\1/ 1603 q 1604 } 1605 /^X\(\/\/\)$/{ 1606 s//\1/ 1607 q 1608 } 1609 /^X\(\/\).*/{ 1610 s//\1/ 1611 q 1612 } 1613 s/.*/./; q'` 1614 srcdir=$ac_confdir 1615 if test ! -r "$srcdir/$ac_unique_file"; then 1616 srcdir=.. 1617 fi 1618else 1619 ac_srcdir_defaulted=no 1620fi 1621if test ! -r "$srcdir/$ac_unique_file"; then 1622 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1623 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1624fi 1625ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1626ac_abs_confdir=`( 1627 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1628 pwd)` 1629# When building in place, set srcdir=. 1630if test "$ac_abs_confdir" = "$ac_pwd"; then 1631 srcdir=. 1632fi 1633# Remove unnecessary trailing slashes from srcdir. 1634# Double slashes in file names in object file debugging info 1635# mess up M-x gdb in Emacs. 1636case $srcdir in 1637*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1638esac 1639for ac_var in $ac_precious_vars; do 1640 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1641 eval ac_env_${ac_var}_value=\$${ac_var} 1642 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1643 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1644done 1645 1646# 1647# Report the --help message. 1648# 1649if test "$ac_init_help" = "long"; then 1650 # Omit some internal or obsolete options to make the list less imposing. 1651 # This message is too long to be a string in the A/UX 3.1 sh. 1652 cat <<_ACEOF 1653\`configure' configures c-ares 1.19.1 to adapt to many kinds of systems. 1654 1655Usage: $0 [OPTION]... [VAR=VALUE]... 1656 1657To assign environment variables (e.g., CC, CFLAGS...), specify them as 1658VAR=VALUE. See below for descriptions of some of the useful variables. 1659 1660Defaults for the options are specified in brackets. 1661 1662Configuration: 1663 -h, --help display this help and exit 1664 --help=short display options specific to this package 1665 --help=recursive display the short help of all the included packages 1666 -V, --version display version information and exit 1667 -q, --quiet, --silent do not print \`checking ...' messages 1668 --cache-file=FILE cache test results in FILE [disabled] 1669 -C, --config-cache alias for \`--cache-file=config.cache' 1670 -n, --no-create do not create output files 1671 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1672 1673Installation directories: 1674 --prefix=PREFIX install architecture-independent files in PREFIX 1675 [$ac_default_prefix] 1676 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1677 [PREFIX] 1678 1679By default, \`make install' will install all the files in 1680\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1681an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1682for instance \`--prefix=\$HOME'. 1683 1684For better control, use the options below. 1685 1686Fine tuning of the installation directories: 1687 --bindir=DIR user executables [EPREFIX/bin] 1688 --sbindir=DIR system admin executables [EPREFIX/sbin] 1689 --libexecdir=DIR program executables [EPREFIX/libexec] 1690 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1691 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1692 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1693 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1694 --libdir=DIR object code libraries [EPREFIX/lib] 1695 --includedir=DIR C header files [PREFIX/include] 1696 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1697 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1698 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1699 --infodir=DIR info documentation [DATAROOTDIR/info] 1700 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1701 --mandir=DIR man documentation [DATAROOTDIR/man] 1702 --docdir=DIR documentation root [DATAROOTDIR/doc/c-ares] 1703 --htmldir=DIR html documentation [DOCDIR] 1704 --dvidir=DIR dvi documentation [DOCDIR] 1705 --pdfdir=DIR pdf documentation [DOCDIR] 1706 --psdir=DIR ps documentation [DOCDIR] 1707_ACEOF 1708 1709 cat <<\_ACEOF 1710 1711Program names: 1712 --program-prefix=PREFIX prepend PREFIX to installed program names 1713 --program-suffix=SUFFIX append SUFFIX to installed program names 1714 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1715 1716System types: 1717 --build=BUILD configure for building on BUILD [guessed] 1718 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1719_ACEOF 1720fi 1721 1722if test -n "$ac_init_help"; then 1723 case $ac_init_help in 1724 short | recursive ) echo "Configuration of c-ares 1.19.1:";; 1725 esac 1726 cat <<\_ACEOF 1727 1728Optional Features: 1729 --disable-option-checking ignore unrecognized --enable/--with options 1730 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1731 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1732 --enable-maintainer-mode 1733 enable make rules and dependencies not useful (and 1734 sometimes confusing) to the casual installer 1735 --enable-silent-rules less verbose build output (undo: "make V=1") 1736 --disable-silent-rules verbose build output (undo: "make V=0") 1737 --enable-debug Enable debug build options 1738 --disable-debug Disable debug build options 1739 --enable-optimize(=OPT) Enable compiler optimizations (default=-O2) 1740 --disable-optimize Disable compiler optimizations 1741 --enable-warnings Enable strict compiler warnings 1742 --disable-warnings Disable strict compiler warnings 1743 --enable-werror Enable compiler warnings as errors 1744 --disable-werror Disable compiler warnings as errors 1745 --enable-symbol-hiding Enable hiding of library internal symbols 1746 --disable-symbol-hiding Disable hiding of library internal symbols 1747 --enable-expose-statics Enable exposure of internal static functions for 1748 testing 1749 --disable-expose-statics 1750 Disable exposure of internal static functions for 1751 testing 1752 --enable-code-coverage Whether to enable code coverage support 1753 --enable-dependency-tracking 1754 do not reject slow dependency extractors 1755 --disable-dependency-tracking 1756 speeds up one-time build 1757 --disable-largefile omit support for large files 1758 --enable-shared[=PKGS] build shared libraries [default=yes] 1759 --enable-static[=PKGS] build static libraries [default=yes] 1760 --enable-fast-install[=PKGS] 1761 optimize for fast installation [default=yes] 1762 --disable-libtool-lock avoid locking (might break parallel builds) 1763 --enable-libgcc use libgcc when linking 1764 --enable-nonblocking Enable non-blocking communications 1765 --disable-nonblocking Disable non-blocking communications 1766 --enable-tests build test suite 1767 1768Optional Packages: 1769 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1770 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1771 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov). 1772 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1773 both] 1774 --with-aix-soname=aix|svr4|both 1775 shared library versioning (aka "SONAME") variant to 1776 provide on AIX, [default=aix]. 1777 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1778 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1779 compiler's sysroot if not specified). 1780 --with-random=FILE read randomness from FILE (default=/dev/urandom) 1781 1782Some influential environment variables: 1783 CC C compiler command 1784 CFLAGS C compiler flags 1785 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1786 nonstandard directory <lib dir> 1787 LIBS libraries to pass to the linker, e.g. -l<library> 1788 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1789 you have headers in a nonstandard directory <include dir> 1790 CPP C preprocessor 1791 CXX C++ compiler command 1792 CXXFLAGS C++ compiler flags 1793 LT_SYS_LIBRARY_PATH 1794 User-defined run-time library search path. 1795 CXXCPP C++ preprocessor 1796 1797Use these variables to override the choices made by `configure' or to help 1798it to find libraries and programs with nonstandard names/locations. 1799 1800Report bugs to <c-ares mailing list: http://lists.haxx.se/listinfo/c-ares>. 1801_ACEOF 1802ac_status=$? 1803fi 1804 1805if test "$ac_init_help" = "recursive"; then 1806 # If there are subdirs, report their specific --help. 1807 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1808 test -d "$ac_dir" || 1809 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1810 continue 1811 ac_builddir=. 1812 1813case "$ac_dir" in 1814.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1815*) 1816 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1817 # A ".." for each directory in $ac_dir_suffix. 1818 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1819 case $ac_top_builddir_sub in 1820 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1821 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1822 esac ;; 1823esac 1824ac_abs_top_builddir=$ac_pwd 1825ac_abs_builddir=$ac_pwd$ac_dir_suffix 1826# for backward compatibility: 1827ac_top_builddir=$ac_top_build_prefix 1828 1829case $srcdir in 1830 .) # We are building in place. 1831 ac_srcdir=. 1832 ac_top_srcdir=$ac_top_builddir_sub 1833 ac_abs_top_srcdir=$ac_pwd ;; 1834 [\\/]* | ?:[\\/]* ) # Absolute name. 1835 ac_srcdir=$srcdir$ac_dir_suffix; 1836 ac_top_srcdir=$srcdir 1837 ac_abs_top_srcdir=$srcdir ;; 1838 *) # Relative name. 1839 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1840 ac_top_srcdir=$ac_top_build_prefix$srcdir 1841 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1842esac 1843ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1844 1845 cd "$ac_dir" || { ac_status=$?; continue; } 1846 # Check for configure.gnu first; this name is used for a wrapper for 1847 # Metaconfig's "Configure" on case-insensitive file systems. 1848 if test -f "$ac_srcdir/configure.gnu"; then 1849 echo && 1850 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1851 elif test -f "$ac_srcdir/configure"; then 1852 echo && 1853 $SHELL "$ac_srcdir/configure" --help=recursive 1854 else 1855 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1856 fi || ac_status=$? 1857 cd "$ac_pwd" || { ac_status=$?; break; } 1858 done 1859fi 1860 1861test -n "$ac_init_help" && exit $ac_status 1862if $ac_init_version; then 1863 cat <<\_ACEOF 1864c-ares configure 1.19.1 1865generated by GNU Autoconf 2.71 1866 1867Copyright (C) 2021 Free Software Foundation, Inc. 1868This configure script is free software; the Free Software Foundation 1869gives unlimited permission to copy, distribute and modify it. 1870_ACEOF 1871 exit 1872fi 1873 1874## ------------------------ ## 1875## Autoconf initialization. ## 1876## ------------------------ ## 1877 1878# ac_fn_c_try_compile LINENO 1879# -------------------------- 1880# Try to compile conftest.$ac_ext, and return whether this succeeded. 1881ac_fn_c_try_compile () 1882{ 1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1884 rm -f conftest.$ac_objext conftest.beam 1885 if { { ac_try="$ac_compile" 1886case "(($ac_try" in 1887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1888 *) ac_try_echo=$ac_try;; 1889esac 1890eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1891printf "%s\n" "$ac_try_echo"; } >&5 1892 (eval "$ac_compile") 2>conftest.err 1893 ac_status=$? 1894 if test -s conftest.err; then 1895 grep -v '^ *+' conftest.err >conftest.er1 1896 cat conftest.er1 >&5 1897 mv -f conftest.er1 conftest.err 1898 fi 1899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1900 test $ac_status = 0; } && { 1901 test -z "$ac_c_werror_flag" || 1902 test ! -s conftest.err 1903 } && test -s conftest.$ac_objext 1904then : 1905 ac_retval=0 1906else $as_nop 1907 printf "%s\n" "$as_me: failed program was:" >&5 1908sed 's/^/| /' conftest.$ac_ext >&5 1909 1910 ac_retval=1 1911fi 1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1913 as_fn_set_status $ac_retval 1914 1915} # ac_fn_c_try_compile 1916 1917# ac_fn_c_try_cpp LINENO 1918# ---------------------- 1919# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1920ac_fn_c_try_cpp () 1921{ 1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1923 if { { ac_try="$ac_cpp conftest.$ac_ext" 1924case "(($ac_try" in 1925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1926 *) ac_try_echo=$ac_try;; 1927esac 1928eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1929printf "%s\n" "$ac_try_echo"; } >&5 1930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1931 ac_status=$? 1932 if test -s conftest.err; then 1933 grep -v '^ *+' conftest.err >conftest.er1 1934 cat conftest.er1 >&5 1935 mv -f conftest.er1 conftest.err 1936 fi 1937 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1938 test $ac_status = 0; } > conftest.i && { 1939 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1940 test ! -s conftest.err 1941 } 1942then : 1943 ac_retval=0 1944else $as_nop 1945 printf "%s\n" "$as_me: failed program was:" >&5 1946sed 's/^/| /' conftest.$ac_ext >&5 1947 1948 ac_retval=1 1949fi 1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1951 as_fn_set_status $ac_retval 1952 1953} # ac_fn_c_try_cpp 1954 1955# ac_fn_cxx_try_compile LINENO 1956# ---------------------------- 1957# Try to compile conftest.$ac_ext, and return whether this succeeded. 1958ac_fn_cxx_try_compile () 1959{ 1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1961 rm -f conftest.$ac_objext conftest.beam 1962 if { { ac_try="$ac_compile" 1963case "(($ac_try" in 1964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1965 *) ac_try_echo=$ac_try;; 1966esac 1967eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1968printf "%s\n" "$ac_try_echo"; } >&5 1969 (eval "$ac_compile") 2>conftest.err 1970 ac_status=$? 1971 if test -s conftest.err; then 1972 grep -v '^ *+' conftest.err >conftest.er1 1973 cat conftest.er1 >&5 1974 mv -f conftest.er1 conftest.err 1975 fi 1976 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1977 test $ac_status = 0; } && { 1978 test -z "$ac_cxx_werror_flag" || 1979 test ! -s conftest.err 1980 } && test -s conftest.$ac_objext 1981then : 1982 ac_retval=0 1983else $as_nop 1984 printf "%s\n" "$as_me: failed program was:" >&5 1985sed 's/^/| /' conftest.$ac_ext >&5 1986 1987 ac_retval=1 1988fi 1989 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1990 as_fn_set_status $ac_retval 1991 1992} # ac_fn_cxx_try_compile 1993 1994# ac_fn_c_try_link LINENO 1995# ----------------------- 1996# Try to link conftest.$ac_ext, and return whether this succeeded. 1997ac_fn_c_try_link () 1998{ 1999 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2000 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 2001 if { { ac_try="$ac_link" 2002case "(($ac_try" in 2003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2004 *) ac_try_echo=$ac_try;; 2005esac 2006eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2007printf "%s\n" "$ac_try_echo"; } >&5 2008 (eval "$ac_link") 2>conftest.err 2009 ac_status=$? 2010 if test -s conftest.err; then 2011 grep -v '^ *+' conftest.err >conftest.er1 2012 cat conftest.er1 >&5 2013 mv -f conftest.er1 conftest.err 2014 fi 2015 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2016 test $ac_status = 0; } && { 2017 test -z "$ac_c_werror_flag" || 2018 test ! -s conftest.err 2019 } && test -s conftest$ac_exeext && { 2020 test "$cross_compiling" = yes || 2021 test -x conftest$ac_exeext 2022 } 2023then : 2024 ac_retval=0 2025else $as_nop 2026 printf "%s\n" "$as_me: failed program was:" >&5 2027sed 's/^/| /' conftest.$ac_ext >&5 2028 2029 ac_retval=1 2030fi 2031 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2032 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2033 # interfere with the next link command; also delete a directory that is 2034 # left behind by Apple's compiler. We do this before executing the actions. 2035 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2036 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2037 as_fn_set_status $ac_retval 2038 2039} # ac_fn_c_try_link 2040 2041# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2042# ------------------------------------------------------- 2043# Tests whether HEADER exists and can be compiled using the include files in 2044# INCLUDES, setting the cache variable VAR accordingly. 2045ac_fn_c_check_header_compile () 2046{ 2047 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2049printf %s "checking for $2... " >&6; } 2050if eval test \${$3+y} 2051then : 2052 printf %s "(cached) " >&6 2053else $as_nop 2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2055/* end confdefs.h. */ 2056$4 2057#include <$2> 2058_ACEOF 2059if ac_fn_c_try_compile "$LINENO" 2060then : 2061 eval "$3=yes" 2062else $as_nop 2063 eval "$3=no" 2064fi 2065rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2066fi 2067eval ac_res=\$$3 2068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2069printf "%s\n" "$ac_res" >&6; } 2070 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2071 2072} # ac_fn_c_check_header_compile 2073 2074# ac_fn_c_check_func LINENO FUNC VAR 2075# ---------------------------------- 2076# Tests whether FUNC exists, setting the cache variable VAR accordingly 2077ac_fn_c_check_func () 2078{ 2079 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2081printf %s "checking for $2... " >&6; } 2082if eval test \${$3+y} 2083then : 2084 printf %s "(cached) " >&6 2085else $as_nop 2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2087/* end confdefs.h. */ 2088/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2089 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2090#define $2 innocuous_$2 2091 2092/* System header to define __stub macros and hopefully few prototypes, 2093 which can conflict with char $2 (); below. */ 2094 2095#include <limits.h> 2096#undef $2 2097 2098/* Override any GCC internal prototype to avoid an error. 2099 Use char because int might match the return type of a GCC 2100 builtin and then its argument prototype would still apply. */ 2101#ifdef __cplusplus 2102extern "C" 2103#endif 2104char $2 (); 2105/* The GNU C library defines this for functions which it implements 2106 to always fail with ENOSYS. Some functions are actually named 2107 something starting with __ and the normal name is an alias. */ 2108#if defined __stub_$2 || defined __stub___$2 2109choke me 2110#endif 2111 2112int 2113main (void) 2114{ 2115return $2 (); 2116 ; 2117 return 0; 2118} 2119_ACEOF 2120if ac_fn_c_try_link "$LINENO" 2121then : 2122 eval "$3=yes" 2123else $as_nop 2124 eval "$3=no" 2125fi 2126rm -f core conftest.err conftest.$ac_objext conftest.beam \ 2127 conftest$ac_exeext conftest.$ac_ext 2128fi 2129eval ac_res=\$$3 2130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2131printf "%s\n" "$ac_res" >&6; } 2132 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2133 2134} # ac_fn_c_check_func 2135 2136# ac_fn_cxx_try_cpp LINENO 2137# ------------------------ 2138# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2139ac_fn_cxx_try_cpp () 2140{ 2141 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2142 if { { ac_try="$ac_cpp conftest.$ac_ext" 2143case "(($ac_try" in 2144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2145 *) ac_try_echo=$ac_try;; 2146esac 2147eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2148printf "%s\n" "$ac_try_echo"; } >&5 2149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2150 ac_status=$? 2151 if test -s conftest.err; then 2152 grep -v '^ *+' conftest.err >conftest.er1 2153 cat conftest.er1 >&5 2154 mv -f conftest.er1 conftest.err 2155 fi 2156 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2157 test $ac_status = 0; } > conftest.i && { 2158 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2159 test ! -s conftest.err 2160 } 2161then : 2162 ac_retval=0 2163else $as_nop 2164 printf "%s\n" "$as_me: failed program was:" >&5 2165sed 's/^/| /' conftest.$ac_ext >&5 2166 2167 ac_retval=1 2168fi 2169 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2170 as_fn_set_status $ac_retval 2171 2172} # ac_fn_cxx_try_cpp 2173 2174# ac_fn_cxx_try_link LINENO 2175# ------------------------- 2176# Try to link conftest.$ac_ext, and return whether this succeeded. 2177ac_fn_cxx_try_link () 2178{ 2179 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2180 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 2181 if { { ac_try="$ac_link" 2182case "(($ac_try" in 2183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2184 *) ac_try_echo=$ac_try;; 2185esac 2186eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2187printf "%s\n" "$ac_try_echo"; } >&5 2188 (eval "$ac_link") 2>conftest.err 2189 ac_status=$? 2190 if test -s conftest.err; then 2191 grep -v '^ *+' conftest.err >conftest.er1 2192 cat conftest.er1 >&5 2193 mv -f conftest.er1 conftest.err 2194 fi 2195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2196 test $ac_status = 0; } && { 2197 test -z "$ac_cxx_werror_flag" || 2198 test ! -s conftest.err 2199 } && test -s conftest$ac_exeext && { 2200 test "$cross_compiling" = yes || 2201 test -x conftest$ac_exeext 2202 } 2203then : 2204 ac_retval=0 2205else $as_nop 2206 printf "%s\n" "$as_me: failed program was:" >&5 2207sed 's/^/| /' conftest.$ac_ext >&5 2208 2209 ac_retval=1 2210fi 2211 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2212 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2213 # interfere with the next link command; also delete a directory that is 2214 # left behind by Apple's compiler. We do this before executing the actions. 2215 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2216 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2217 as_fn_set_status $ac_retval 2218 2219} # ac_fn_cxx_try_link 2220 2221# ac_fn_c_try_run LINENO 2222# ---------------------- 2223# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 2224# executables *can* be run. 2225ac_fn_c_try_run () 2226{ 2227 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2228 if { { ac_try="$ac_link" 2229case "(($ac_try" in 2230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2231 *) ac_try_echo=$ac_try;; 2232esac 2233eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2234printf "%s\n" "$ac_try_echo"; } >&5 2235 (eval "$ac_link") 2>&5 2236 ac_status=$? 2237 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2238 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2239 { { case "(($ac_try" in 2240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2241 *) ac_try_echo=$ac_try;; 2242esac 2243eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2244printf "%s\n" "$ac_try_echo"; } >&5 2245 (eval "$ac_try") 2>&5 2246 ac_status=$? 2247 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2248 test $ac_status = 0; }; } 2249then : 2250 ac_retval=0 2251else $as_nop 2252 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 2253 printf "%s\n" "$as_me: failed program was:" >&5 2254sed 's/^/| /' conftest.$ac_ext >&5 2255 2256 ac_retval=$ac_status 2257fi 2258 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2259 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2260 as_fn_set_status $ac_retval 2261 2262} # ac_fn_c_try_run 2263 2264# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 2265# ------------------------------------------------------------------ 2266# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2267# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 2268ac_fn_check_decl () 2269{ 2270 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2271 as_decl_name=`echo $2|sed 's/ *(.*//'` 2272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2273printf %s "checking whether $as_decl_name is declared... " >&6; } 2274if eval test \${$3+y} 2275then : 2276 printf %s "(cached) " >&6 2277else $as_nop 2278 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2279 eval ac_save_FLAGS=\$$6 2280 as_fn_append $6 " $5" 2281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2282/* end confdefs.h. */ 2283$4 2284int 2285main (void) 2286{ 2287#ifndef $as_decl_name 2288#ifdef __cplusplus 2289 (void) $as_decl_use; 2290#else 2291 (void) $as_decl_name; 2292#endif 2293#endif 2294 2295 ; 2296 return 0; 2297} 2298_ACEOF 2299if ac_fn_c_try_compile "$LINENO" 2300then : 2301 eval "$3=yes" 2302else $as_nop 2303 eval "$3=no" 2304fi 2305rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2306 eval $6=\$ac_save_FLAGS 2307 2308fi 2309eval ac_res=\$$3 2310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2311printf "%s\n" "$ac_res" >&6; } 2312 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2313 2314} # ac_fn_check_decl 2315 2316# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2317# ------------------------------------------- 2318# Tests whether TYPE exists after having included INCLUDES, setting cache 2319# variable VAR accordingly. 2320ac_fn_c_check_type () 2321{ 2322 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2324printf %s "checking for $2... " >&6; } 2325if eval test \${$3+y} 2326then : 2327 printf %s "(cached) " >&6 2328else $as_nop 2329 eval "$3=no" 2330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2331/* end confdefs.h. */ 2332$4 2333int 2334main (void) 2335{ 2336if (sizeof ($2)) 2337 return 0; 2338 ; 2339 return 0; 2340} 2341_ACEOF 2342if ac_fn_c_try_compile "$LINENO" 2343then : 2344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2345/* end confdefs.h. */ 2346$4 2347int 2348main (void) 2349{ 2350if (sizeof (($2))) 2351 return 0; 2352 ; 2353 return 0; 2354} 2355_ACEOF 2356if ac_fn_c_try_compile "$LINENO" 2357then : 2358 2359else $as_nop 2360 eval "$3=yes" 2361fi 2362rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2363fi 2364rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2365fi 2366eval ac_res=\$$3 2367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2368printf "%s\n" "$ac_res" >&6; } 2369 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2370 2371} # ac_fn_c_check_type 2372 2373# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2374# ---------------------------------------------------- 2375# Tries to find if the field MEMBER exists in type AGGR, after including 2376# INCLUDES, setting cache variable VAR accordingly. 2377ac_fn_c_check_member () 2378{ 2379 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2381printf %s "checking for $2.$3... " >&6; } 2382if eval test \${$4+y} 2383then : 2384 printf %s "(cached) " >&6 2385else $as_nop 2386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2387/* end confdefs.h. */ 2388$5 2389int 2390main (void) 2391{ 2392static $2 ac_aggr; 2393if (ac_aggr.$3) 2394return 0; 2395 ; 2396 return 0; 2397} 2398_ACEOF 2399if ac_fn_c_try_compile "$LINENO" 2400then : 2401 eval "$4=yes" 2402else $as_nop 2403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2404/* end confdefs.h. */ 2405$5 2406int 2407main (void) 2408{ 2409static $2 ac_aggr; 2410if (sizeof ac_aggr.$3) 2411return 0; 2412 ; 2413 return 0; 2414} 2415_ACEOF 2416if ac_fn_c_try_compile "$LINENO" 2417then : 2418 eval "$4=yes" 2419else $as_nop 2420 eval "$4=no" 2421fi 2422rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2423fi 2424rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2425fi 2426eval ac_res=\$$4 2427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2428printf "%s\n" "$ac_res" >&6; } 2429 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2430 2431} # ac_fn_c_check_member 2432ac_configure_args_raw= 2433for ac_arg 2434do 2435 case $ac_arg in 2436 *\'*) 2437 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2438 esac 2439 as_fn_append ac_configure_args_raw " '$ac_arg'" 2440done 2441 2442case $ac_configure_args_raw in 2443 *$as_nl*) 2444 ac_safe_unquote= ;; 2445 *) 2446 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2447 ac_unsafe_a="$ac_unsafe_z#~" 2448 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2449 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2450esac 2451 2452cat >config.log <<_ACEOF 2453This file contains any messages produced by compilers while 2454running configure, to aid debugging if configure makes a mistake. 2455 2456It was created by c-ares $as_me 1.19.1, which was 2457generated by GNU Autoconf 2.71. Invocation command line was 2458 2459 $ $0$ac_configure_args_raw 2460 2461_ACEOF 2462exec 5>>config.log 2463{ 2464cat <<_ASUNAME 2465## --------- ## 2466## Platform. ## 2467## --------- ## 2468 2469hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2470uname -m = `(uname -m) 2>/dev/null || echo unknown` 2471uname -r = `(uname -r) 2>/dev/null || echo unknown` 2472uname -s = `(uname -s) 2>/dev/null || echo unknown` 2473uname -v = `(uname -v) 2>/dev/null || echo unknown` 2474 2475/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2476/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2477 2478/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2479/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2480/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2481/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2482/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2483/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2484/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2485 2486_ASUNAME 2487 2488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2489for as_dir in $PATH 2490do 2491 IFS=$as_save_IFS 2492 case $as_dir in #((( 2493 '') as_dir=./ ;; 2494 */) ;; 2495 *) as_dir=$as_dir/ ;; 2496 esac 2497 printf "%s\n" "PATH: $as_dir" 2498 done 2499IFS=$as_save_IFS 2500 2501} >&5 2502 2503cat >&5 <<_ACEOF 2504 2505 2506## ----------- ## 2507## Core tests. ## 2508## ----------- ## 2509 2510_ACEOF 2511 2512 2513# Keep a trace of the command line. 2514# Strip out --no-create and --no-recursion so they do not pile up. 2515# Strip out --silent because we don't want to record it for future runs. 2516# Also quote any args containing shell meta-characters. 2517# Make two passes to allow for proper duplicate-argument suppression. 2518ac_configure_args= 2519ac_configure_args0= 2520ac_configure_args1= 2521ac_must_keep_next=false 2522for ac_pass in 1 2 2523do 2524 for ac_arg 2525 do 2526 case $ac_arg in 2527 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2528 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2529 | -silent | --silent | --silen | --sile | --sil) 2530 continue ;; 2531 *\'*) 2532 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2533 esac 2534 case $ac_pass in 2535 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2536 2) 2537 as_fn_append ac_configure_args1 " '$ac_arg'" 2538 if test $ac_must_keep_next = true; then 2539 ac_must_keep_next=false # Got value, back to normal. 2540 else 2541 case $ac_arg in 2542 *=* | --config-cache | -C | -disable-* | --disable-* \ 2543 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2544 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2545 | -with-* | --with-* | -without-* | --without-* | --x) 2546 case "$ac_configure_args0 " in 2547 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2548 esac 2549 ;; 2550 -* ) ac_must_keep_next=true ;; 2551 esac 2552 fi 2553 as_fn_append ac_configure_args " '$ac_arg'" 2554 ;; 2555 esac 2556 done 2557done 2558{ ac_configure_args0=; unset ac_configure_args0;} 2559{ ac_configure_args1=; unset ac_configure_args1;} 2560 2561# When interrupted or exit'd, cleanup temporary files, and complete 2562# config.log. We remove comments because anyway the quotes in there 2563# would cause problems or look ugly. 2564# WARNING: Use '\'' to represent an apostrophe within the trap. 2565# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2566trap 'exit_status=$? 2567 # Sanitize IFS. 2568 IFS=" "" $as_nl" 2569 # Save into config.log some information that might help in debugging. 2570 { 2571 echo 2572 2573 printf "%s\n" "## ---------------- ## 2574## Cache variables. ## 2575## ---------------- ##" 2576 echo 2577 # The following way of writing the cache mishandles newlines in values, 2578( 2579 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2580 eval ac_val=\$$ac_var 2581 case $ac_val in #( 2582 *${as_nl}*) 2583 case $ac_var in #( 2584 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2585printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2586 esac 2587 case $ac_var in #( 2588 _ | IFS | as_nl) ;; #( 2589 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2590 *) { eval $ac_var=; unset $ac_var;} ;; 2591 esac ;; 2592 esac 2593 done 2594 (set) 2>&1 | 2595 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2596 *${as_nl}ac_space=\ *) 2597 sed -n \ 2598 "s/'\''/'\''\\\\'\'''\''/g; 2599 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2600 ;; #( 2601 *) 2602 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2603 ;; 2604 esac | 2605 sort 2606) 2607 echo 2608 2609 printf "%s\n" "## ----------------- ## 2610## Output variables. ## 2611## ----------------- ##" 2612 echo 2613 for ac_var in $ac_subst_vars 2614 do 2615 eval ac_val=\$$ac_var 2616 case $ac_val in 2617 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2618 esac 2619 printf "%s\n" "$ac_var='\''$ac_val'\''" 2620 done | sort 2621 echo 2622 2623 if test -n "$ac_subst_files"; then 2624 printf "%s\n" "## ------------------- ## 2625## File substitutions. ## 2626## ------------------- ##" 2627 echo 2628 for ac_var in $ac_subst_files 2629 do 2630 eval ac_val=\$$ac_var 2631 case $ac_val in 2632 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2633 esac 2634 printf "%s\n" "$ac_var='\''$ac_val'\''" 2635 done | sort 2636 echo 2637 fi 2638 2639 if test -s confdefs.h; then 2640 printf "%s\n" "## ----------- ## 2641## confdefs.h. ## 2642## ----------- ##" 2643 echo 2644 cat confdefs.h 2645 echo 2646 fi 2647 test "$ac_signal" != 0 && 2648 printf "%s\n" "$as_me: caught signal $ac_signal" 2649 printf "%s\n" "$as_me: exit $exit_status" 2650 } >&5 2651 rm -f core *.core core.conftest.* && 2652 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2653 exit $exit_status 2654' 0 2655for ac_signal in 1 2 13 15; do 2656 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2657done 2658ac_signal=0 2659 2660# confdefs.h avoids OS command line length limits that DEFS can exceed. 2661rm -f -r conftest* confdefs.h 2662 2663printf "%s\n" "/* confdefs.h */" > confdefs.h 2664 2665# Predefined preprocessor variables. 2666 2667printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2668 2669printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2670 2671printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2672 2673printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2674 2675printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2676 2677printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2678 2679 2680# Let the site file select an alternate cache file if it wants to. 2681# Prefer an explicitly selected file to automatically selected ones. 2682if test -n "$CONFIG_SITE"; then 2683 ac_site_files="$CONFIG_SITE" 2684elif test "x$prefix" != xNONE; then 2685 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2686else 2687 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2688fi 2689 2690for ac_site_file in $ac_site_files 2691do 2692 case $ac_site_file in #( 2693 */*) : 2694 ;; #( 2695 *) : 2696 ac_site_file=./$ac_site_file ;; 2697esac 2698 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2700printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2701 sed 's/^/| /' "$ac_site_file" >&5 2702 . "$ac_site_file" \ 2703 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2704printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2715printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2716 case $cache_file in 2717 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2718 *) . "./$cache_file";; 2719 esac 2720 fi 2721else 2722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2723printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2724 >$cache_file 2725fi 2726 2727# Test code for whether the C compiler supports C89 (global declarations) 2728ac_c_conftest_c89_globals=' 2729/* Does the compiler advertise C89 conformance? 2730 Do not test the value of __STDC__, because some compilers set it to 0 2731 while being otherwise adequately conformant. */ 2732#if !defined __STDC__ 2733# error "Compiler does not advertise C89 conformance" 2734#endif 2735 2736#include <stddef.h> 2737#include <stdarg.h> 2738struct stat; 2739/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2740struct buf { int x; }; 2741struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2742static char *e (p, i) 2743 char **p; 2744 int i; 2745{ 2746 return p[i]; 2747} 2748static char *f (char * (*g) (char **, int), char **p, ...) 2749{ 2750 char *s; 2751 va_list v; 2752 va_start (v,p); 2753 s = g (p, va_arg (v,int)); 2754 va_end (v); 2755 return s; 2756} 2757 2758/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2759 function prototypes and stuff, but not \xHH hex character constants. 2760 These do not provoke an error unfortunately, instead are silently treated 2761 as an "x". The following induces an error, until -std is added to get 2762 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2763 array size at least. It is necessary to write \x00 == 0 to get something 2764 that is true only with -std. */ 2765int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2766 2767/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2768 inside strings and character constants. */ 2769#define FOO(x) '\''x'\'' 2770int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2771 2772int test (int i, double x); 2773struct s1 {int (*f) (int a);}; 2774struct s2 {int (*f) (double a);}; 2775int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2776 int, int);' 2777 2778# Test code for whether the C compiler supports C89 (body of main). 2779ac_c_conftest_c89_main=' 2780ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2781' 2782 2783# Test code for whether the C compiler supports C99 (global declarations) 2784ac_c_conftest_c99_globals=' 2785// Does the compiler advertise C99 conformance? 2786#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2787# error "Compiler does not advertise C99 conformance" 2788#endif 2789 2790#include <stdbool.h> 2791extern int puts (const char *); 2792extern int printf (const char *, ...); 2793extern int dprintf (int, const char *, ...); 2794extern void *malloc (size_t); 2795 2796// Check varargs macros. These examples are taken from C99 6.10.3.5. 2797// dprintf is used instead of fprintf to avoid needing to declare 2798// FILE and stderr. 2799#define debug(...) dprintf (2, __VA_ARGS__) 2800#define showlist(...) puts (#__VA_ARGS__) 2801#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2802static void 2803test_varargs_macros (void) 2804{ 2805 int x = 1234; 2806 int y = 5678; 2807 debug ("Flag"); 2808 debug ("X = %d\n", x); 2809 showlist (The first, second, and third items.); 2810 report (x>y, "x is %d but y is %d", x, y); 2811} 2812 2813// Check long long types. 2814#define BIG64 18446744073709551615ull 2815#define BIG32 4294967295ul 2816#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2817#if !BIG_OK 2818 #error "your preprocessor is broken" 2819#endif 2820#if BIG_OK 2821#else 2822 #error "your preprocessor is broken" 2823#endif 2824static long long int bignum = -9223372036854775807LL; 2825static unsigned long long int ubignum = BIG64; 2826 2827struct incomplete_array 2828{ 2829 int datasize; 2830 double data[]; 2831}; 2832 2833struct named_init { 2834 int number; 2835 const wchar_t *name; 2836 double average; 2837}; 2838 2839typedef const char *ccp; 2840 2841static inline int 2842test_restrict (ccp restrict text) 2843{ 2844 // See if C++-style comments work. 2845 // Iterate through items via the restricted pointer. 2846 // Also check for declarations in for loops. 2847 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2848 continue; 2849 return 0; 2850} 2851 2852// Check varargs and va_copy. 2853static bool 2854test_varargs (const char *format, ...) 2855{ 2856 va_list args; 2857 va_start (args, format); 2858 va_list args_copy; 2859 va_copy (args_copy, args); 2860 2861 const char *str = ""; 2862 int number = 0; 2863 float fnumber = 0; 2864 2865 while (*format) 2866 { 2867 switch (*format++) 2868 { 2869 case '\''s'\'': // string 2870 str = va_arg (args_copy, const char *); 2871 break; 2872 case '\''d'\'': // int 2873 number = va_arg (args_copy, int); 2874 break; 2875 case '\''f'\'': // float 2876 fnumber = va_arg (args_copy, double); 2877 break; 2878 default: 2879 break; 2880 } 2881 } 2882 va_end (args_copy); 2883 va_end (args); 2884 2885 return *str && number && fnumber; 2886} 2887' 2888 2889# Test code for whether the C compiler supports C99 (body of main). 2890ac_c_conftest_c99_main=' 2891 // Check bool. 2892 _Bool success = false; 2893 success |= (argc != 0); 2894 2895 // Check restrict. 2896 if (test_restrict ("String literal") == 0) 2897 success = true; 2898 char *restrict newvar = "Another string"; 2899 2900 // Check varargs. 2901 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2902 test_varargs_macros (); 2903 2904 // Check flexible array members. 2905 struct incomplete_array *ia = 2906 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2907 ia->datasize = 10; 2908 for (int i = 0; i < ia->datasize; ++i) 2909 ia->data[i] = i * 1.234; 2910 2911 // Check named initializers. 2912 struct named_init ni = { 2913 .number = 34, 2914 .name = L"Test wide string", 2915 .average = 543.34343, 2916 }; 2917 2918 ni.number = 58; 2919 2920 int dynamic_array[ni.number]; 2921 dynamic_array[0] = argv[0][0]; 2922 dynamic_array[ni.number - 1] = 543; 2923 2924 // work around unused variable warnings 2925 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2926 || dynamic_array[ni.number - 1] != 543); 2927' 2928 2929# Test code for whether the C compiler supports C11 (global declarations) 2930ac_c_conftest_c11_globals=' 2931// Does the compiler advertise C11 conformance? 2932#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2933# error "Compiler does not advertise C11 conformance" 2934#endif 2935 2936// Check _Alignas. 2937char _Alignas (double) aligned_as_double; 2938char _Alignas (0) no_special_alignment; 2939extern char aligned_as_int; 2940char _Alignas (0) _Alignas (int) aligned_as_int; 2941 2942// Check _Alignof. 2943enum 2944{ 2945 int_alignment = _Alignof (int), 2946 int_array_alignment = _Alignof (int[100]), 2947 char_alignment = _Alignof (char) 2948}; 2949_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2950 2951// Check _Noreturn. 2952int _Noreturn does_not_return (void) { for (;;) continue; } 2953 2954// Check _Static_assert. 2955struct test_static_assert 2956{ 2957 int x; 2958 _Static_assert (sizeof (int) <= sizeof (long int), 2959 "_Static_assert does not work in struct"); 2960 long int y; 2961}; 2962 2963// Check UTF-8 literals. 2964#define u8 syntax error! 2965char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2966 2967// Check duplicate typedefs. 2968typedef long *long_ptr; 2969typedef long int *long_ptr; 2970typedef long_ptr long_ptr; 2971 2972// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2973struct anonymous 2974{ 2975 union { 2976 struct { int i; int j; }; 2977 struct { int k; long int l; } w; 2978 }; 2979 int m; 2980} v1; 2981' 2982 2983# Test code for whether the C compiler supports C11 (body of main). 2984ac_c_conftest_c11_main=' 2985 _Static_assert ((offsetof (struct anonymous, i) 2986 == offsetof (struct anonymous, w.k)), 2987 "Anonymous union alignment botch"); 2988 v1.i = 2; 2989 v1.w.k = 5; 2990 ok |= v1.i != 5; 2991' 2992 2993# Test code for whether the C compiler supports C11 (complete). 2994ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2995${ac_c_conftest_c99_globals} 2996${ac_c_conftest_c11_globals} 2997 2998int 2999main (int argc, char **argv) 3000{ 3001 int ok = 0; 3002 ${ac_c_conftest_c89_main} 3003 ${ac_c_conftest_c99_main} 3004 ${ac_c_conftest_c11_main} 3005 return ok; 3006} 3007" 3008 3009# Test code for whether the C compiler supports C99 (complete). 3010ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 3011${ac_c_conftest_c99_globals} 3012 3013int 3014main (int argc, char **argv) 3015{ 3016 int ok = 0; 3017 ${ac_c_conftest_c89_main} 3018 ${ac_c_conftest_c99_main} 3019 return ok; 3020} 3021" 3022 3023# Test code for whether the C compiler supports C89 (complete). 3024ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 3025 3026int 3027main (int argc, char **argv) 3028{ 3029 int ok = 0; 3030 ${ac_c_conftest_c89_main} 3031 return ok; 3032} 3033" 3034 3035# Test code for whether the C++ compiler supports C++98 (global declarations) 3036ac_cxx_conftest_cxx98_globals=' 3037// Does the compiler advertise C++98 conformance? 3038#if !defined __cplusplus || __cplusplus < 199711L 3039# error "Compiler does not advertise C++98 conformance" 3040#endif 3041 3042// These inclusions are to reject old compilers that 3043// lack the unsuffixed header files. 3044#include <cstdlib> 3045#include <exception> 3046 3047// <cassert> and <cstring> are *not* freestanding headers in C++98. 3048extern void assert (int); 3049namespace std { 3050 extern int strcmp (const char *, const char *); 3051} 3052 3053// Namespaces, exceptions, and templates were all added after "C++ 2.0". 3054using std::exception; 3055using std::strcmp; 3056 3057namespace { 3058 3059void test_exception_syntax() 3060{ 3061 try { 3062 throw "test"; 3063 } catch (const char *s) { 3064 // Extra parentheses suppress a warning when building autoconf itself, 3065 // due to lint rules shared with more typical C programs. 3066 assert (!(strcmp) (s, "test")); 3067 } 3068} 3069 3070template <typename T> struct test_template 3071{ 3072 T const val; 3073 explicit test_template(T t) : val(t) {} 3074 template <typename U> T add(U u) { return static_cast<T>(u) + val; } 3075}; 3076 3077} // anonymous namespace 3078' 3079 3080# Test code for whether the C++ compiler supports C++98 (body of main) 3081ac_cxx_conftest_cxx98_main=' 3082 assert (argc); 3083 assert (! argv[0]); 3084{ 3085 test_exception_syntax (); 3086 test_template<double> tt (2.0); 3087 assert (tt.add (4) == 6.0); 3088 assert (true && !false); 3089} 3090' 3091 3092# Test code for whether the C++ compiler supports C++11 (global declarations) 3093ac_cxx_conftest_cxx11_globals=' 3094// Does the compiler advertise C++ 2011 conformance? 3095#if !defined __cplusplus || __cplusplus < 201103L 3096# error "Compiler does not advertise C++11 conformance" 3097#endif 3098 3099namespace cxx11test 3100{ 3101 constexpr int get_val() { return 20; } 3102 3103 struct testinit 3104 { 3105 int i; 3106 double d; 3107 }; 3108 3109 class delegate 3110 { 3111 public: 3112 delegate(int n) : n(n) {} 3113 delegate(): delegate(2354) {} 3114 3115 virtual int getval() { return this->n; }; 3116 protected: 3117 int n; 3118 }; 3119 3120 class overridden : public delegate 3121 { 3122 public: 3123 overridden(int n): delegate(n) {} 3124 virtual int getval() override final { return this->n * 2; } 3125 }; 3126 3127 class nocopy 3128 { 3129 public: 3130 nocopy(int i): i(i) {} 3131 nocopy() = default; 3132 nocopy(const nocopy&) = delete; 3133 nocopy & operator=(const nocopy&) = delete; 3134 private: 3135 int i; 3136 }; 3137 3138 // for testing lambda expressions 3139 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v) 3140 { 3141 return f(v); 3142 } 3143 3144 // for testing variadic templates and trailing return types 3145 template <typename V> auto sum(V first) -> V 3146 { 3147 return first; 3148 } 3149 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V 3150 { 3151 return first + sum(rest...); 3152 } 3153} 3154' 3155 3156# Test code for whether the C++ compiler supports C++11 (body of main) 3157ac_cxx_conftest_cxx11_main=' 3158{ 3159 // Test auto and decltype 3160 auto a1 = 6538; 3161 auto a2 = 48573953.4; 3162 auto a3 = "String literal"; 3163 3164 int total = 0; 3165 for (auto i = a3; *i; ++i) { total += *i; } 3166 3167 decltype(a2) a4 = 34895.034; 3168} 3169{ 3170 // Test constexpr 3171 short sa[cxx11test::get_val()] = { 0 }; 3172} 3173{ 3174 // Test initializer lists 3175 cxx11test::testinit il = { 4323, 435234.23544 }; 3176} 3177{ 3178 // Test range-based for 3179 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, 3180 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; 3181 for (auto &x : array) { x += 23; } 3182} 3183{ 3184 // Test lambda expressions 3185 using cxx11test::eval; 3186 assert (eval ([](int x) { return x*2; }, 21) == 42); 3187 double d = 2.0; 3188 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); 3189 assert (d == 5.0); 3190 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); 3191 assert (d == 5.0); 3192} 3193{ 3194 // Test use of variadic templates 3195 using cxx11test::sum; 3196 auto a = sum(1); 3197 auto b = sum(1, 2); 3198 auto c = sum(1.0, 2.0, 3.0); 3199} 3200{ 3201 // Test constructor delegation 3202 cxx11test::delegate d1; 3203 cxx11test::delegate d2(); 3204 cxx11test::delegate d3(45); 3205} 3206{ 3207 // Test override and final 3208 cxx11test::overridden o1(55464); 3209} 3210{ 3211 // Test nullptr 3212 char *c = nullptr; 3213} 3214{ 3215 // Test template brackets 3216 test_template<::test_template<int>> v(test_template<int>(12)); 3217} 3218{ 3219 // Unicode literals 3220 char const *utf8 = u8"UTF-8 string \u2500"; 3221 char16_t const *utf16 = u"UTF-8 string \u2500"; 3222 char32_t const *utf32 = U"UTF-32 string \u2500"; 3223} 3224' 3225 3226# Test code for whether the C compiler supports C++11 (complete). 3227ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} 3228${ac_cxx_conftest_cxx11_globals} 3229 3230int 3231main (int argc, char **argv) 3232{ 3233 int ok = 0; 3234 ${ac_cxx_conftest_cxx98_main} 3235 ${ac_cxx_conftest_cxx11_main} 3236 return ok; 3237} 3238" 3239 3240# Test code for whether the C compiler supports C++98 (complete). 3241ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} 3242int 3243main (int argc, char **argv) 3244{ 3245 int ok = 0; 3246 ${ac_cxx_conftest_cxx98_main} 3247 return ok; 3248} 3249" 3250 3251as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 3252as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 3253as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 3254as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 3255as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 3256as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 3257as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 3258as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 3259as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 3260as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H" 3261 3262# Auxiliary files required by this configure script. 3263ac_aux_files="ltmain.sh missing compile install-sh config.guess config.sub" 3264 3265# Locations in which to look for auxiliary files. 3266ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 3267 3268# Search for a directory containing all of the required auxiliary files, 3269# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 3270# If we don't find one directory that contains all the files we need, 3271# we report the set of missing files from the *first* directory in 3272# $ac_aux_dir_candidates and give up. 3273ac_missing_aux_files="" 3274ac_first_candidate=: 3275printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 3276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3277as_found=false 3278for as_dir in $ac_aux_dir_candidates 3279do 3280 IFS=$as_save_IFS 3281 case $as_dir in #((( 3282 '') as_dir=./ ;; 3283 */) ;; 3284 *) as_dir=$as_dir/ ;; 3285 esac 3286 as_found=: 3287 3288 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 3289 ac_aux_dir_found=yes 3290 ac_install_sh= 3291 for ac_aux in $ac_aux_files 3292 do 3293 # As a special case, if "install-sh" is required, that requirement 3294 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 3295 # and $ac_install_sh is set appropriately for whichever one is found. 3296 if test x"$ac_aux" = x"install-sh" 3297 then 3298 if test -f "${as_dir}install-sh"; then 3299 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 3300 ac_install_sh="${as_dir}install-sh -c" 3301 elif test -f "${as_dir}install.sh"; then 3302 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 3303 ac_install_sh="${as_dir}install.sh -c" 3304 elif test -f "${as_dir}shtool"; then 3305 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 3306 ac_install_sh="${as_dir}shtool install -c" 3307 else 3308 ac_aux_dir_found=no 3309 if $ac_first_candidate; then 3310 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 3311 else 3312 break 3313 fi 3314 fi 3315 else 3316 if test -f "${as_dir}${ac_aux}"; then 3317 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 3318 else 3319 ac_aux_dir_found=no 3320 if $ac_first_candidate; then 3321 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 3322 else 3323 break 3324 fi 3325 fi 3326 fi 3327 done 3328 if test "$ac_aux_dir_found" = yes; then 3329 ac_aux_dir="$as_dir" 3330 break 3331 fi 3332 ac_first_candidate=false 3333 3334 as_found=false 3335done 3336IFS=$as_save_IFS 3337if $as_found 3338then : 3339 3340else $as_nop 3341 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 3342fi 3343 3344 3345# These three variables are undocumented and unsupported, 3346# and are intended to be withdrawn in a future Autoconf release. 3347# They can cause serious problems if a builder's source tree is in a directory 3348# whose full name contains unusual characters. 3349if test -f "${ac_aux_dir}config.guess"; then 3350 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 3351fi 3352if test -f "${ac_aux_dir}config.sub"; then 3353 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 3354fi 3355if test -f "$ac_aux_dir/configure"; then 3356 ac_configure="$SHELL ${ac_aux_dir}configure" 3357fi 3358 3359# Check that the precious variables saved in the cache have kept the same 3360# value. 3361ac_cache_corrupted=false 3362for ac_var in $ac_precious_vars; do 3363 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3364 eval ac_new_set=\$ac_env_${ac_var}_set 3365 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3366 eval ac_new_val=\$ac_env_${ac_var}_value 3367 case $ac_old_set,$ac_new_set in 3368 set,) 3369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3370printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3371 ac_cache_corrupted=: ;; 3372 ,set) 3373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3374printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3375 ac_cache_corrupted=: ;; 3376 ,);; 3377 *) 3378 if test "x$ac_old_val" != "x$ac_new_val"; then 3379 # differences in whitespace do not lead to failure. 3380 ac_old_val_w=`echo x $ac_old_val` 3381 ac_new_val_w=`echo x $ac_new_val` 3382 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3384printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3385 ac_cache_corrupted=: 3386 else 3387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3388printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3389 eval $ac_var=\$ac_old_val 3390 fi 3391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3392printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 3393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3394printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 3395 fi;; 3396 esac 3397 # Pass precious variables to config.status. 3398 if test "$ac_new_set" = set; then 3399 case $ac_new_val in 3400 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3401 *) ac_arg=$ac_var=$ac_new_val ;; 3402 esac 3403 case " $ac_configure_args " in 3404 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3405 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3406 esac 3407 fi 3408done 3409if $ac_cache_corrupted; then 3410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3411printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3413printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 3414 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 3415 and start over" "$LINENO" 5 3416fi 3417## -------------------- ## 3418## Main body of script. ## 3419## -------------------- ## 3420 3421ac_ext=c 3422ac_cpp='$CPP $CPPFLAGS' 3423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3425ac_compiler_gnu=$ac_cv_c_compiler_gnu 3426 3427 3428 3429CARES_VERSION_INFO="8:1:6" 3430 3431 3432 3433ac_config_headers="$ac_config_headers src/lib/ares_config.h include/ares_build.h" 3434 3435 3436 3437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3438printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3439 # Check whether --enable-maintainer-mode was given. 3440if test ${enable_maintainer_mode+y} 3441then : 3442 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3443else $as_nop 3444 USE_MAINTAINER_MODE=no 3445fi 3446 3447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3448printf "%s\n" "$USE_MAINTAINER_MODE" >&6; } 3449 if test $USE_MAINTAINER_MODE = yes; then 3450 MAINTAINER_MODE_TRUE= 3451 MAINTAINER_MODE_FALSE='#' 3452else 3453 MAINTAINER_MODE_TRUE='#' 3454 MAINTAINER_MODE_FALSE= 3455fi 3456 3457 MAINT=$MAINTAINER_MODE_TRUE 3458 3459 3460# Check whether --enable-silent-rules was given. 3461if test ${enable_silent_rules+y} 3462then : 3463 enableval=$enable_silent_rules; 3464fi 3465 3466case $enable_silent_rules in # ((( 3467 yes) AM_DEFAULT_VERBOSITY=0;; 3468 no) AM_DEFAULT_VERBOSITY=1;; 3469 *) AM_DEFAULT_VERBOSITY=0;; 3470esac 3471am_make=${MAKE-make} 3472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3473printf %s "checking whether $am_make supports nested variables... " >&6; } 3474if test ${am_cv_make_support_nested_variables+y} 3475then : 3476 printf %s "(cached) " >&6 3477else $as_nop 3478 if printf "%s\n" 'TRUE=$(BAR$(V)) 3479BAR0=false 3480BAR1=true 3481V=1 3482am__doit: 3483 @$(TRUE) 3484.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3485 am_cv_make_support_nested_variables=yes 3486else 3487 am_cv_make_support_nested_variables=no 3488fi 3489fi 3490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3491printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3492if test $am_cv_make_support_nested_variables = yes; then 3493 AM_V='$(V)' 3494 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3495else 3496 AM_V=$AM_DEFAULT_VERBOSITY 3497 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3498fi 3499AM_BACKSLASH='\' 3500 3501 3502 3503 3504 3505 3506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5 3507printf %s "checking whether to enable debug build options... " >&6; } 3508 OPT_DEBUG_BUILD="default" 3509 # Check whether --enable-debug was given. 3510if test ${enable_debug+y} 3511then : 3512 enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval 3513fi 3514 3515 case "$OPT_DEBUG_BUILD" in 3516 no) 3517 want_debug="no" 3518 ;; 3519 default) 3520 want_debug="no" 3521 ;; 3522 *) 3523 want_debug="yes" 3524 ;; 3525 esac 3526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5 3527printf "%s\n" "$want_debug" >&6; } 3528 3529 3530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5 3531printf %s "checking whether to enable compiler optimizer... " >&6; } 3532 OPT_COMPILER_OPTIMIZE="default" 3533 # Check whether --enable-optimize was given. 3534if test ${enable_optimize+y} 3535then : 3536 enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval 3537fi 3538 3539 case "$OPT_COMPILER_OPTIMIZE" in 3540 no) 3541 want_optimize="no" 3542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3543printf "%s\n" "no" >&6; } 3544 ;; 3545 default) 3546 if test "$want_debug" = "yes"; then 3547 want_optimize="assume_no" 3548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not specified (assuming no)" >&5 3549printf "%s\n" "not specified (assuming no)" >&6; } 3550 else 3551 want_optimize="assume_yes" 3552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not specified (assuming yes)" >&5 3553printf "%s\n" "not specified (assuming yes)" >&6; } 3554 fi 3555 ;; 3556 *) 3557 want_optimize="yes" 3558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3559printf "%s\n" "yes" >&6; } 3560 ;; 3561 esac 3562 3563 3564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5 3565printf %s "checking whether to enable strict compiler warnings... " >&6; } 3566 OPT_COMPILER_WARNINGS="default" 3567 # Check whether --enable-warnings was given. 3568if test ${enable_warnings+y} 3569then : 3570 enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval 3571fi 3572 3573 case "$OPT_COMPILER_WARNINGS" in 3574 no) 3575 want_warnings="no" 3576 ;; 3577 default) 3578 want_warnings="$want_debug" 3579 ;; 3580 *) 3581 want_warnings="yes" 3582 ;; 3583 esac 3584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5 3585printf "%s\n" "$want_warnings" >&6; } 3586 3587 3588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5 3589printf %s "checking whether to enable compiler warnings as errors... " >&6; } 3590 OPT_COMPILER_WERROR="default" 3591 # Check whether --enable-werror was given. 3592if test ${enable_werror+y} 3593then : 3594 enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval 3595fi 3596 3597 case "$OPT_COMPILER_WERROR" in 3598 no) 3599 want_werror="no" 3600 ;; 3601 default) 3602 want_werror="no" 3603 ;; 3604 *) 3605 want_werror="yes" 3606 ;; 3607 esac 3608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5 3609printf "%s\n" "$want_werror" >&6; } 3610 3611 3612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5 3613printf %s "checking whether to enable hiding of library internal symbols... " >&6; } 3614 OPT_SYMBOL_HIDING="default" 3615 # Check whether --enable-symbol-hiding was given. 3616if test ${enable_symbol_hiding+y} 3617then : 3618 enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval 3619fi 3620 3621 case "$OPT_SYMBOL_HIDING" in 3622 no) 3623 want_symbol_hiding="no" 3624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3625printf "%s\n" "no" >&6; } 3626 ;; 3627 default) 3628 want_symbol_hiding="yes" 3629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3630printf "%s\n" "yes" >&6; } 3631 ;; 3632 *) 3633 want_symbol_hiding="yes" 3634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3635printf "%s\n" "yes" >&6; } 3636 ;; 3637 esac 3638 3639 3640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to expose internal static functions for testing" >&5 3641printf %s "checking whether to expose internal static functions for testing... " >&6; } 3642 OPT_EXPOSE_STATICS="default" 3643 # Check whether --enable-expose-statics was given. 3644if test ${enable_expose_statics+y} 3645then : 3646 enableval=$enable_expose_statics; OPT_EXPOSE_STATICS=$enableval 3647fi 3648 3649 case "$OPT_EXPOSE_STATICS" in 3650 no) 3651 want_expose_statics="no" 3652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3653printf "%s\n" "no" >&6; } 3654 ;; 3655 default) 3656 want_expose_statics="no" 3657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3658printf "%s\n" "no" >&6; } 3659 ;; 3660 *) 3661 want_expose_statics="yes" 3662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3663printf "%s\n" "yes" >&6; } 3664 ;; 3665 esac 3666 if test "$want_expose_statics" = "yes"; then 3667 3668printf "%s\n" "#define CARES_EXPOSE_STATICS 1" >>confdefs.h 3669 3670 fi 3671 3672 3673# 3674# Check that 'XC_CONFIGURE_PREAMBLE' has already run. 3675# 3676 3677if test -z "$xc_configure_preamble_result"; then 3678 as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5 3679fi 3680 3681# 3682# Check that 'PATH_SEPARATOR' has already been set. 3683# 3684 3685if test -z "$xc_PATH_SEPARATOR"; then 3686 as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5 3687fi 3688if test -z "$PATH_SEPARATOR"; then 3689 as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5 3690fi 3691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5 3692printf %s "checking for path separator... " >&6; } 3693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5 3694printf "%s\n" "$PATH_SEPARATOR" >&6; } 3695if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then 3696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5 3697printf %s "checking for initial path separator... " >&6; } 3698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5 3699printf "%s\n" "$xc_PATH_SEPARATOR" >&6; } 3700 as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5 3701fi 3702 3703 3704# Extract the first word of "sed", so it can be a program name with args. 3705set dummy sed; ac_word=$2 3706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3707printf %s "checking for $ac_word... " >&6; } 3708if test ${ac_cv_path_SED+y} 3709then : 3710 printf %s "(cached) " >&6 3711else $as_nop 3712 case $SED in 3713 [\\/]* | ?:[\\/]*) 3714 ac_cv_path_SED="$SED" # Let the user override the test with a path. 3715 ;; 3716 *) 3717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3718as_dummy="$PATH:/usr/bin:/usr/local/bin" 3719for as_dir in $as_dummy 3720do 3721 IFS=$as_save_IFS 3722 case $as_dir in #((( 3723 '') as_dir=./ ;; 3724 */) ;; 3725 *) as_dir=$as_dir/ ;; 3726 esac 3727 for ac_exec_ext in '' $ac_executable_extensions; do 3728 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3729 ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext" 3730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3731 break 2 3732 fi 3733done 3734 done 3735IFS=$as_save_IFS 3736 3737 test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found" 3738 ;; 3739esac 3740fi 3741SED=$ac_cv_path_SED 3742if test -n "$SED"; then 3743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 3744printf "%s\n" "$SED" >&6; } 3745else 3746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3747printf "%s\n" "no" >&6; } 3748fi 3749 3750 3751if test -z "$SED" || test "$SED" = "not_found"; then 3752 as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5 3753fi 3754 3755 3756# Extract the first word of "grep", so it can be a program name with args. 3757set dummy grep; ac_word=$2 3758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3759printf %s "checking for $ac_word... " >&6; } 3760if test ${ac_cv_path_GREP+y} 3761then : 3762 printf %s "(cached) " >&6 3763else $as_nop 3764 case $GREP in 3765 [\\/]* | ?:[\\/]*) 3766 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 3767 ;; 3768 *) 3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3770as_dummy="$PATH:/usr/bin:/usr/local/bin" 3771for as_dir in $as_dummy 3772do 3773 IFS=$as_save_IFS 3774 case $as_dir in #((( 3775 '') as_dir=./ ;; 3776 */) ;; 3777 *) as_dir=$as_dir/ ;; 3778 esac 3779 for ac_exec_ext in '' $ac_executable_extensions; do 3780 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3781 ac_cv_path_GREP="$as_dir$ac_word$ac_exec_ext" 3782 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3783 break 2 3784 fi 3785done 3786 done 3787IFS=$as_save_IFS 3788 3789 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found" 3790 ;; 3791esac 3792fi 3793GREP=$ac_cv_path_GREP 3794if test -n "$GREP"; then 3795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 3796printf "%s\n" "$GREP" >&6; } 3797else 3798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3799printf "%s\n" "no" >&6; } 3800fi 3801 3802 3803if test -z "$GREP" || test "$GREP" = "not_found"; then 3804 as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5 3805fi 3806 3807 3808if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then 3809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3810printf %s "checking for egrep... " >&6; } 3811 EGREP="$GREP -E" 3812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 3813printf "%s\n" "$EGREP" >&6; } 3814else 3815 # Extract the first word of "egrep", so it can be a program name with args. 3816set dummy egrep; ac_word=$2 3817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3818printf %s "checking for $ac_word... " >&6; } 3819if test ${ac_cv_path_EGREP+y} 3820then : 3821 printf %s "(cached) " >&6 3822else $as_nop 3823 case $EGREP in 3824 [\\/]* | ?:[\\/]*) 3825 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 3826 ;; 3827 *) 3828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3829as_dummy="$PATH:/usr/bin:/usr/local/bin" 3830for as_dir in $as_dummy 3831do 3832 IFS=$as_save_IFS 3833 case $as_dir in #((( 3834 '') as_dir=./ ;; 3835 */) ;; 3836 *) as_dir=$as_dir/ ;; 3837 esac 3838 for ac_exec_ext in '' $ac_executable_extensions; do 3839 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3840 ac_cv_path_EGREP="$as_dir$ac_word$ac_exec_ext" 3841 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3842 break 2 3843 fi 3844done 3845 done 3846IFS=$as_save_IFS 3847 3848 test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found" 3849 ;; 3850esac 3851fi 3852EGREP=$ac_cv_path_EGREP 3853if test -n "$EGREP"; then 3854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 3855printf "%s\n" "$EGREP" >&6; } 3856else 3857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3858printf "%s\n" "no" >&6; } 3859fi 3860 3861 3862fi 3863if test -z "$EGREP" || test "$EGREP" = "not_found"; then 3864 as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5 3865fi 3866 3867 3868if test -z "$AR"; then 3869 if test -n "$ac_tool_prefix"; then 3870 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 3871set dummy ${ac_tool_prefix}ar; ac_word=$2 3872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3873printf %s "checking for $ac_word... " >&6; } 3874if test ${ac_cv_path_AR+y} 3875then : 3876 printf %s "(cached) " >&6 3877else $as_nop 3878 case $AR in 3879 [\\/]* | ?:[\\/]*) 3880 ac_cv_path_AR="$AR" # Let the user override the test with a path. 3881 ;; 3882 *) 3883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3884as_dummy="$PATH:/usr/bin:/usr/local/bin" 3885for as_dir in $as_dummy 3886do 3887 IFS=$as_save_IFS 3888 case $as_dir in #((( 3889 '') as_dir=./ ;; 3890 */) ;; 3891 *) as_dir=$as_dir/ ;; 3892 esac 3893 for ac_exec_ext in '' $ac_executable_extensions; do 3894 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3895 ac_cv_path_AR="$as_dir$ac_word$ac_exec_ext" 3896 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3897 break 2 3898 fi 3899done 3900 done 3901IFS=$as_save_IFS 3902 3903 ;; 3904esac 3905fi 3906AR=$ac_cv_path_AR 3907if test -n "$AR"; then 3908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 3909printf "%s\n" "$AR" >&6; } 3910else 3911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3912printf "%s\n" "no" >&6; } 3913fi 3914 3915 3916fi 3917if test -z "$ac_cv_path_AR"; then 3918 ac_pt_AR=$AR 3919 # Extract the first word of "ar", so it can be a program name with args. 3920set dummy ar; ac_word=$2 3921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3922printf %s "checking for $ac_word... " >&6; } 3923if test ${ac_cv_path_ac_pt_AR+y} 3924then : 3925 printf %s "(cached) " >&6 3926else $as_nop 3927 case $ac_pt_AR in 3928 [\\/]* | ?:[\\/]*) 3929 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path. 3930 ;; 3931 *) 3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3933as_dummy="$PATH:/usr/bin:/usr/local/bin" 3934for as_dir in $as_dummy 3935do 3936 IFS=$as_save_IFS 3937 case $as_dir in #((( 3938 '') as_dir=./ ;; 3939 */) ;; 3940 *) as_dir=$as_dir/ ;; 3941 esac 3942 for ac_exec_ext in '' $ac_executable_extensions; do 3943 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3944 ac_cv_path_ac_pt_AR="$as_dir$ac_word$ac_exec_ext" 3945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3946 break 2 3947 fi 3948done 3949 done 3950IFS=$as_save_IFS 3951 3952 ;; 3953esac 3954fi 3955ac_pt_AR=$ac_cv_path_ac_pt_AR 3956if test -n "$ac_pt_AR"; then 3957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5 3958printf "%s\n" "$ac_pt_AR" >&6; } 3959else 3960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3961printf "%s\n" "no" >&6; } 3962fi 3963 3964 if test "x$ac_pt_AR" = x; then 3965 AR="not_found" 3966 else 3967 case $cross_compiling:$ac_tool_warned in 3968yes:) 3969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3970printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3971ac_tool_warned=yes ;; 3972esac 3973 AR=$ac_pt_AR 3974 fi 3975else 3976 AR="$ac_cv_path_AR" 3977fi 3978 3979 if test -z "$AR" || test "$AR" = "not_found"; then 3980 as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5 3981 fi 3982fi 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 # allow to override gcov location 4000 4001# Check whether --with-gcov was given. 4002if test ${with_gcov+y} 4003then : 4004 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov 4005else $as_nop 4006 _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov 4007fi 4008 4009 4010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5 4011printf %s "checking whether to build with code coverage support... " >&6; } 4012 # Check whether --enable-code-coverage was given. 4013if test ${enable_code_coverage+y} 4014then : 4015 enableval=$enable_code_coverage; 4016else $as_nop 4017 enable_code_coverage=no 4018fi 4019 4020 4021 if test "x$enable_code_coverage" = xyes; then 4022 CODE_COVERAGE_ENABLED_TRUE= 4023 CODE_COVERAGE_ENABLED_FALSE='#' 4024else 4025 CODE_COVERAGE_ENABLED_TRUE='#' 4026 CODE_COVERAGE_ENABLED_FALSE= 4027fi 4028 4029 CODE_COVERAGE_ENABLED=$enable_code_coverage 4030 4031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5 4032printf "%s\n" "$enable_code_coverage" >&6; } 4033 4034 if test "x$enable_code_coverage" = xyes 4035then : 4036 4037 4038 for ac_prog in gawk mawk nawk awk 4039do 4040 # Extract the first word of "$ac_prog", so it can be a program name with args. 4041set dummy $ac_prog; ac_word=$2 4042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4043printf %s "checking for $ac_word... " >&6; } 4044if test ${ac_cv_prog_AWK+y} 4045then : 4046 printf %s "(cached) " >&6 4047else $as_nop 4048 if test -n "$AWK"; then 4049 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4050else 4051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4052for as_dir in $PATH 4053do 4054 IFS=$as_save_IFS 4055 case $as_dir in #((( 4056 '') as_dir=./ ;; 4057 */) ;; 4058 *) as_dir=$as_dir/ ;; 4059 esac 4060 for ac_exec_ext in '' $ac_executable_extensions; do 4061 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4062 ac_cv_prog_AWK="$ac_prog" 4063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4064 break 2 4065 fi 4066done 4067 done 4068IFS=$as_save_IFS 4069 4070fi 4071fi 4072AWK=$ac_cv_prog_AWK 4073if test -n "$AWK"; then 4074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4075printf "%s\n" "$AWK" >&6; } 4076else 4077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4078printf "%s\n" "no" >&6; } 4079fi 4080 4081 4082 test -n "$AWK" && break 4083done 4084 4085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 4086printf %s "checking for GNU make... " >&6; } 4087if test ${_cv_gnu_make_command+y} 4088then : 4089 printf %s "(cached) " >&6 4090else $as_nop 4091 _cv_gnu_make_command="" ; 4092 for a in "$MAKE" make gmake gnumake ; do 4093 if test -z "$a" ; then continue ; fi ; 4094 if "$a" --version 2> /dev/null | grep GNU 2>&1 > /dev/null ; then 4095 _cv_gnu_make_command=$a ; 4096 AX_CHECK_GNU_MAKE_HEADLINE=$("$a" --version 2> /dev/null | grep "GNU Make") 4097 ax_check_gnu_make_version=$(echo ${AX_CHECK_GNU_MAKE_HEADLINE} | ${AWK} -F " " '{ print $(NF); }') 4098 break ; 4099 fi 4100 done ; 4101fi 4102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5 4103printf "%s\n" "$_cv_gnu_make_command" >&6; } 4104 if test "x$_cv_gnu_make_command" = x"" 4105then : 4106 ifGNUmake="#" 4107else $as_nop 4108 ifGNUmake="" 4109fi 4110 if test "x$_cv_gnu_make_command" = x"" 4111then : 4112 ifnGNUmake="" 4113else $as_nop 4114 ifnGNUmake="#" 4115fi 4116 if test "x$_cv_gnu_make_command" = x"" 4117then : 4118 { ax_cv_gnu_make_command=; unset ax_cv_gnu_make_command;} 4119else $as_nop 4120 ax_cv_gnu_make_command=${_cv_gnu_make_command} 4121fi 4122 if test "x$_cv_gnu_make_command" = x"" 4123then : 4124 as_fn_error $? "not using GNU make that is needed for coverage" "$LINENO" 5 4125fi 4126 4127 4128 4129 4130 # check for gcov 4131 if test -n "$ac_tool_prefix"; then 4132 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args. 4133set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2 4134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4135printf %s "checking for $ac_word... " >&6; } 4136if test ${ac_cv_prog_GCOV+y} 4137then : 4138 printf %s "(cached) " >&6 4139else $as_nop 4140 if test -n "$GCOV"; then 4141 ac_cv_prog_GCOV="$GCOV" # Let the user override the test. 4142else 4143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4144for as_dir in $PATH 4145do 4146 IFS=$as_save_IFS 4147 case $as_dir in #((( 4148 '') as_dir=./ ;; 4149 */) ;; 4150 *) as_dir=$as_dir/ ;; 4151 esac 4152 for ac_exec_ext in '' $ac_executable_extensions; do 4153 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4154 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH" 4155 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4156 break 2 4157 fi 4158done 4159 done 4160IFS=$as_save_IFS 4161 4162fi 4163fi 4164GCOV=$ac_cv_prog_GCOV 4165if test -n "$GCOV"; then 4166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5 4167printf "%s\n" "$GCOV" >&6; } 4168else 4169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4170printf "%s\n" "no" >&6; } 4171fi 4172 4173 4174fi 4175if test -z "$ac_cv_prog_GCOV"; then 4176 ac_ct_GCOV=$GCOV 4177 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args. 4178set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2 4179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4180printf %s "checking for $ac_word... " >&6; } 4181if test ${ac_cv_prog_ac_ct_GCOV+y} 4182then : 4183 printf %s "(cached) " >&6 4184else $as_nop 4185 if test -n "$ac_ct_GCOV"; then 4186 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test. 4187else 4188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4189for as_dir in $PATH 4190do 4191 IFS=$as_save_IFS 4192 case $as_dir in #((( 4193 '') as_dir=./ ;; 4194 */) ;; 4195 *) as_dir=$as_dir/ ;; 4196 esac 4197 for ac_exec_ext in '' $ac_executable_extensions; do 4198 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4199 ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH" 4200 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4201 break 2 4202 fi 4203done 4204 done 4205IFS=$as_save_IFS 4206 4207fi 4208fi 4209ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV 4210if test -n "$ac_ct_GCOV"; then 4211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5 4212printf "%s\n" "$ac_ct_GCOV" >&6; } 4213else 4214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4215printf "%s\n" "no" >&6; } 4216fi 4217 4218 if test "x$ac_ct_GCOV" = x; then 4219 GCOV=":" 4220 else 4221 case $cross_compiling:$ac_tool_warned in 4222yes:) 4223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4224printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4225ac_tool_warned=yes ;; 4226esac 4227 GCOV=$ac_ct_GCOV 4228 fi 4229else 4230 GCOV="$ac_cv_prog_GCOV" 4231fi 4232 4233 if test "X$GCOV" = "X:" 4234then : 4235 as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5 4236fi 4237 4238 4239 if test "$GCC" = "no" 4240then : 4241 4242 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5 4243 4244fi 4245 4246 # Extract the first word of "lcov", so it can be a program name with args. 4247set dummy lcov; ac_word=$2 4248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4249printf %s "checking for $ac_word... " >&6; } 4250if test ${ac_cv_prog_LCOV+y} 4251then : 4252 printf %s "(cached) " >&6 4253else $as_nop 4254 if test -n "$LCOV"; then 4255 ac_cv_prog_LCOV="$LCOV" # Let the user override the test. 4256else 4257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4258for as_dir in $PATH 4259do 4260 IFS=$as_save_IFS 4261 case $as_dir in #((( 4262 '') as_dir=./ ;; 4263 */) ;; 4264 *) as_dir=$as_dir/ ;; 4265 esac 4266 for ac_exec_ext in '' $ac_executable_extensions; do 4267 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4268 ac_cv_prog_LCOV="lcov" 4269 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4270 break 2 4271 fi 4272done 4273 done 4274IFS=$as_save_IFS 4275 4276fi 4277fi 4278LCOV=$ac_cv_prog_LCOV 4279if test -n "$LCOV"; then 4280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5 4281printf "%s\n" "$LCOV" >&6; } 4282else 4283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4284printf "%s\n" "no" >&6; } 4285fi 4286 4287 4288 # Extract the first word of "genhtml", so it can be a program name with args. 4289set dummy genhtml; ac_word=$2 4290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4291printf %s "checking for $ac_word... " >&6; } 4292if test ${ac_cv_prog_GENHTML+y} 4293then : 4294 printf %s "(cached) " >&6 4295else $as_nop 4296 if test -n "$GENHTML"; then 4297 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test. 4298else 4299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4300for as_dir in $PATH 4301do 4302 IFS=$as_save_IFS 4303 case $as_dir in #((( 4304 '') as_dir=./ ;; 4305 */) ;; 4306 *) as_dir=$as_dir/ ;; 4307 esac 4308 for ac_exec_ext in '' $ac_executable_extensions; do 4309 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4310 ac_cv_prog_GENHTML="genhtml" 4311 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4312 break 2 4313 fi 4314done 4315 done 4316IFS=$as_save_IFS 4317 4318fi 4319fi 4320GENHTML=$ac_cv_prog_GENHTML 4321if test -n "$GENHTML"; then 4322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5 4323printf "%s\n" "$GENHTML" >&6; } 4324else 4325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4326printf "%s\n" "no" >&6; } 4327fi 4328 4329 4330 4331 if test x"$LCOV" = x 4332then : 4333 4334 as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5 4335 4336fi 4337 4338 if test x"$GENHTML" = x 4339then : 4340 4341 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5 4342 4343fi 4344 4345 CODE_COVERAGE_CPPFLAGS="-DNDEBUG" 4346 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage" 4347 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage" 4348 CODE_COVERAGE_LIBS="-lgcov" 4349 4350 4351 4352 4353 4354 4355 4356fi 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 # Make sure we can run config.sub. 4375$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4376 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4377 4378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4379printf %s "checking build system type... " >&6; } 4380if test ${ac_cv_build+y} 4381then : 4382 printf %s "(cached) " >&6 4383else $as_nop 4384 ac_build_alias=$build_alias 4385test "x$ac_build_alias" = x && 4386 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4387test "x$ac_build_alias" = x && 4388 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4389ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4390 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4391 4392fi 4393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4394printf "%s\n" "$ac_cv_build" >&6; } 4395case $ac_cv_build in 4396*-*-*) ;; 4397*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4398esac 4399build=$ac_cv_build 4400ac_save_IFS=$IFS; IFS='-' 4401set x $ac_cv_build 4402shift 4403build_cpu=$1 4404build_vendor=$2 4405shift; shift 4406# Remember, the first character of IFS is used to create $*, 4407# except with old shells: 4408build_os=$* 4409IFS=$ac_save_IFS 4410case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4411 4412 4413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4414printf %s "checking host system type... " >&6; } 4415if test ${ac_cv_host+y} 4416then : 4417 printf %s "(cached) " >&6 4418else $as_nop 4419 if test "x$host_alias" = x; then 4420 ac_cv_host=$ac_cv_build 4421else 4422 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4423 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4424fi 4425 4426fi 4427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4428printf "%s\n" "$ac_cv_host" >&6; } 4429case $ac_cv_host in 4430*-*-*) ;; 4431*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4432esac 4433host=$ac_cv_host 4434ac_save_IFS=$IFS; IFS='-' 4435set x $ac_cv_host 4436shift 4437host_cpu=$1 4438host_vendor=$2 4439shift; shift 4440# Remember, the first character of IFS is used to create $*, 4441# except with old shells: 4442host_os=$* 4443IFS=$ac_save_IFS 4444case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4445 4446 4447 4448printf "%s\n" "#define OS \"${host}\"" >>confdefs.h 4449 4450 4451 4452 xc_prog_cc_prev_IFS=$IFS 4453 xc_prog_cc_prev_LIBS=$LIBS 4454 xc_prog_cc_prev_CFLAGS=$CFLAGS 4455 xc_prog_cc_prev_LDFLAGS=$LDFLAGS 4456 xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS 4457 4458 4459 4460 xc_bad_var_libs=no 4461 for xc_word in $LIBS; do 4462 case "$xc_word" in 4463 -l* | --library=*) 4464 : 4465 ;; 4466 *) 4467 xc_bad_var_libs=yes 4468 ;; 4469 esac 4470 done 4471 if test $xc_bad_var_libs = yes; then 4472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5 4473printf "%s\n" "$as_me: using LIBS: $LIBS" >&6;} 4474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LIBS error: LIBS may only be used to specify libraries (-lname)." >&5 4475printf "%s\n" "$as_me: LIBS error: LIBS may only be used to specify libraries (-lname)." >&6;} 4476 fi 4477 4478 4479 xc_bad_var_ldflags=no 4480 for xc_word in $LDFLAGS; do 4481 case "$xc_word" in 4482 -D*) 4483 xc_bad_var_ldflags=yes 4484 ;; 4485 -U*) 4486 xc_bad_var_ldflags=yes 4487 ;; 4488 -I*) 4489 xc_bad_var_ldflags=yes 4490 ;; 4491 -l* | --library=*) 4492 xc_bad_var_ldflags=yes 4493 ;; 4494 esac 4495 done 4496 if test $xc_bad_var_ldflags = yes; then 4497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5 4498printf "%s\n" "$as_me: using LDFLAGS: $LDFLAGS" >&6;} 4499 xc_bad_var_msg="LDFLAGS error: LDFLAGS may only be used to specify linker flags, not" 4500 for xc_word in $LDFLAGS; do 4501 case "$xc_word" in 4502 -D*) 4503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5 4504printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;} 4505 ;; 4506 -U*) 4507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5 4508printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;} 4509 ;; 4510 -I*) 4511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5 4512printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;} 4513 ;; 4514 -l* | --library=*) 4515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5 4516printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;} 4517 ;; 4518 esac 4519 done 4520 fi 4521 4522 4523 xc_bad_var_cppflags=no 4524 for xc_word in $CPPFLAGS; do 4525 case "$xc_word" in 4526 -rpath*) 4527 xc_bad_var_cppflags=yes 4528 ;; 4529 -L* | --library-path=*) 4530 xc_bad_var_cppflags=yes 4531 ;; 4532 -l* | --library=*) 4533 xc_bad_var_cppflags=yes 4534 ;; 4535 esac 4536 done 4537 if test $xc_bad_var_cppflags = yes; then 4538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5 4539printf "%s\n" "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;} 4540 xc_bad_var_msg="CPPFLAGS error: CPPFLAGS may only be used to specify C preprocessor flags, not" 4541 for xc_word in $CPPFLAGS; do 4542 case "$xc_word" in 4543 -rpath*) 4544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5 4545printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;} 4546 ;; 4547 -L* | --library-path=*) 4548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5 4549printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;} 4550 ;; 4551 -l* | --library=*) 4552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5 4553printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;} 4554 ;; 4555 esac 4556 done 4557 fi 4558 4559 4560 xc_bad_var_cflags=no 4561 for xc_word in $CFLAGS; do 4562 case "$xc_word" in 4563 -D*) 4564 xc_bad_var_cflags=yes 4565 ;; 4566 -U*) 4567 xc_bad_var_cflags=yes 4568 ;; 4569 -I*) 4570 xc_bad_var_cflags=yes 4571 ;; 4572 -rpath*) 4573 xc_bad_var_cflags=yes 4574 ;; 4575 -L* | --library-path=*) 4576 xc_bad_var_cflags=yes 4577 ;; 4578 -l* | --library=*) 4579 xc_bad_var_cflags=yes 4580 ;; 4581 esac 4582 done 4583 if test $xc_bad_var_cflags = yes; then 4584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5 4585printf "%s\n" "$as_me: using CFLAGS: $CFLAGS" >&6;} 4586 xc_bad_var_msg="CFLAGS error: CFLAGS may only be used to specify C compiler flags, not" 4587 for xc_word in $CFLAGS; do 4588 case "$xc_word" in 4589 -D*) 4590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5 4591printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;} 4592 ;; 4593 -U*) 4594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5 4595printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;} 4596 ;; 4597 -I*) 4598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5 4599printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;} 4600 ;; 4601 -rpath*) 4602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5 4603printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;} 4604 ;; 4605 -L* | --library-path=*) 4606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5 4607printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;} 4608 ;; 4609 -l* | --library=*) 4610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5 4611printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;} 4612 ;; 4613 esac 4614 done 4615 fi 4616 4617 if test $xc_bad_var_libs = yes || 4618 test $xc_bad_var_cflags = yes || 4619 test $xc_bad_var_ldflags = yes || 4620 test $xc_bad_var_cppflags = yes; then 4621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5 4622printf "%s\n" "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;} 4623 fi 4624 4625 4626 # Find a good install program. We prefer a C program (faster), 4627# so one script is as good as another. But avoid the broken or 4628# incompatible versions: 4629# SysV /etc/install, /usr/sbin/install 4630# SunOS /usr/etc/install 4631# IRIX /sbin/install 4632# AIX /bin/install 4633# AmigaOS /C/install, which installs bootblocks on floppy discs 4634# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4635# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4636# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4637# OS/2's system install, which has a completely different semantic 4638# ./install, which can be erroneously created by make from ./install.sh. 4639# Reject install programs that cannot install multiple files. 4640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4641printf %s "checking for a BSD-compatible install... " >&6; } 4642if test -z "$INSTALL"; then 4643if test ${ac_cv_path_install+y} 4644then : 4645 printf %s "(cached) " >&6 4646else $as_nop 4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4648for as_dir in $PATH 4649do 4650 IFS=$as_save_IFS 4651 case $as_dir in #((( 4652 '') as_dir=./ ;; 4653 */) ;; 4654 *) as_dir=$as_dir/ ;; 4655 esac 4656 # Account for fact that we put trailing slashes in our PATH walk. 4657case $as_dir in #(( 4658 ./ | /[cC]/* | \ 4659 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4660 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4661 /usr/ucb/* ) ;; 4662 *) 4663 # OSF1 and SCO ODT 3.0 have their own names for install. 4664 # Don't use installbsd from OSF since it installs stuff as root 4665 # by default. 4666 for ac_prog in ginstall scoinst install; do 4667 for ac_exec_ext in '' $ac_executable_extensions; do 4668 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 4669 if test $ac_prog = install && 4670 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4671 # AIX install. It has an incompatible calling convention. 4672 : 4673 elif test $ac_prog = install && 4674 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4675 # program-specific install script used by HP pwplus--don't use. 4676 : 4677 else 4678 rm -rf conftest.one conftest.two conftest.dir 4679 echo one > conftest.one 4680 echo two > conftest.two 4681 mkdir conftest.dir 4682 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 4683 test -s conftest.one && test -s conftest.two && 4684 test -s conftest.dir/conftest.one && 4685 test -s conftest.dir/conftest.two 4686 then 4687 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 4688 break 3 4689 fi 4690 fi 4691 fi 4692 done 4693 done 4694 ;; 4695esac 4696 4697 done 4698IFS=$as_save_IFS 4699 4700rm -rf conftest.one conftest.two conftest.dir 4701 4702fi 4703 if test ${ac_cv_path_install+y}; then 4704 INSTALL=$ac_cv_path_install 4705 else 4706 # As a last resort, use the slow shell script. Don't cache a 4707 # value for INSTALL within a source directory, because that will 4708 # break other packages using the cache if that directory is 4709 # removed, or if the value is a relative name. 4710 INSTALL=$ac_install_sh 4711 fi 4712fi 4713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4714printf "%s\n" "$INSTALL" >&6; } 4715 4716# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4717# It thinks the first close brace ends the variable substitution. 4718test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4719 4720test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4721 4722test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734# Expand $ac_aux_dir to an absolute path. 4735am_aux_dir=`cd "$ac_aux_dir" && pwd` 4736 4737ac_ext=c 4738ac_cpp='$CPP $CPPFLAGS' 4739ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4740ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4741ac_compiler_gnu=$ac_cv_c_compiler_gnu 4742if test -n "$ac_tool_prefix"; then 4743 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4744set dummy ${ac_tool_prefix}gcc; ac_word=$2 4745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4746printf %s "checking for $ac_word... " >&6; } 4747if test ${ac_cv_prog_CC+y} 4748then : 4749 printf %s "(cached) " >&6 4750else $as_nop 4751 if test -n "$CC"; then 4752 ac_cv_prog_CC="$CC" # Let the user override the test. 4753else 4754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4755for as_dir in $PATH 4756do 4757 IFS=$as_save_IFS 4758 case $as_dir in #((( 4759 '') as_dir=./ ;; 4760 */) ;; 4761 *) as_dir=$as_dir/ ;; 4762 esac 4763 for ac_exec_ext in '' $ac_executable_extensions; do 4764 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4765 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4766 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4767 break 2 4768 fi 4769done 4770 done 4771IFS=$as_save_IFS 4772 4773fi 4774fi 4775CC=$ac_cv_prog_CC 4776if test -n "$CC"; then 4777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4778printf "%s\n" "$CC" >&6; } 4779else 4780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4781printf "%s\n" "no" >&6; } 4782fi 4783 4784 4785fi 4786if test -z "$ac_cv_prog_CC"; then 4787 ac_ct_CC=$CC 4788 # Extract the first word of "gcc", so it can be a program name with args. 4789set dummy gcc; ac_word=$2 4790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4791printf %s "checking for $ac_word... " >&6; } 4792if test ${ac_cv_prog_ac_ct_CC+y} 4793then : 4794 printf %s "(cached) " >&6 4795else $as_nop 4796 if test -n "$ac_ct_CC"; then 4797 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4798else 4799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4800for as_dir in $PATH 4801do 4802 IFS=$as_save_IFS 4803 case $as_dir in #((( 4804 '') as_dir=./ ;; 4805 */) ;; 4806 *) as_dir=$as_dir/ ;; 4807 esac 4808 for ac_exec_ext in '' $ac_executable_extensions; do 4809 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4810 ac_cv_prog_ac_ct_CC="gcc" 4811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4812 break 2 4813 fi 4814done 4815 done 4816IFS=$as_save_IFS 4817 4818fi 4819fi 4820ac_ct_CC=$ac_cv_prog_ac_ct_CC 4821if test -n "$ac_ct_CC"; then 4822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4823printf "%s\n" "$ac_ct_CC" >&6; } 4824else 4825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4826printf "%s\n" "no" >&6; } 4827fi 4828 4829 if test "x$ac_ct_CC" = x; then 4830 CC="" 4831 else 4832 case $cross_compiling:$ac_tool_warned in 4833yes:) 4834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4835printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4836ac_tool_warned=yes ;; 4837esac 4838 CC=$ac_ct_CC 4839 fi 4840else 4841 CC="$ac_cv_prog_CC" 4842fi 4843 4844if test -z "$CC"; then 4845 if test -n "$ac_tool_prefix"; then 4846 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4847set dummy ${ac_tool_prefix}cc; ac_word=$2 4848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4849printf %s "checking for $ac_word... " >&6; } 4850if test ${ac_cv_prog_CC+y} 4851then : 4852 printf %s "(cached) " >&6 4853else $as_nop 4854 if test -n "$CC"; then 4855 ac_cv_prog_CC="$CC" # Let the user override the test. 4856else 4857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4858for as_dir in $PATH 4859do 4860 IFS=$as_save_IFS 4861 case $as_dir in #((( 4862 '') as_dir=./ ;; 4863 */) ;; 4864 *) as_dir=$as_dir/ ;; 4865 esac 4866 for ac_exec_ext in '' $ac_executable_extensions; do 4867 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4868 ac_cv_prog_CC="${ac_tool_prefix}cc" 4869 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4870 break 2 4871 fi 4872done 4873 done 4874IFS=$as_save_IFS 4875 4876fi 4877fi 4878CC=$ac_cv_prog_CC 4879if test -n "$CC"; then 4880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4881printf "%s\n" "$CC" >&6; } 4882else 4883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4884printf "%s\n" "no" >&6; } 4885fi 4886 4887 4888 fi 4889fi 4890if test -z "$CC"; then 4891 # Extract the first word of "cc", so it can be a program name with args. 4892set dummy cc; ac_word=$2 4893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4894printf %s "checking for $ac_word... " >&6; } 4895if test ${ac_cv_prog_CC+y} 4896then : 4897 printf %s "(cached) " >&6 4898else $as_nop 4899 if test -n "$CC"; then 4900 ac_cv_prog_CC="$CC" # Let the user override the test. 4901else 4902 ac_prog_rejected=no 4903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4904for as_dir in $PATH 4905do 4906 IFS=$as_save_IFS 4907 case $as_dir in #((( 4908 '') as_dir=./ ;; 4909 */) ;; 4910 *) as_dir=$as_dir/ ;; 4911 esac 4912 for ac_exec_ext in '' $ac_executable_extensions; do 4913 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4914 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4915 ac_prog_rejected=yes 4916 continue 4917 fi 4918 ac_cv_prog_CC="cc" 4919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4920 break 2 4921 fi 4922done 4923 done 4924IFS=$as_save_IFS 4925 4926if test $ac_prog_rejected = yes; then 4927 # We found a bogon in the path, so make sure we never use it. 4928 set dummy $ac_cv_prog_CC 4929 shift 4930 if test $# != 0; then 4931 # We chose a different compiler from the bogus one. 4932 # However, it has the same basename, so the bogon will be chosen 4933 # first if we set CC to just the basename; use the full file name. 4934 shift 4935 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 4936 fi 4937fi 4938fi 4939fi 4940CC=$ac_cv_prog_CC 4941if test -n "$CC"; then 4942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4943printf "%s\n" "$CC" >&6; } 4944else 4945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4946printf "%s\n" "no" >&6; } 4947fi 4948 4949 4950fi 4951if test -z "$CC"; then 4952 if test -n "$ac_tool_prefix"; then 4953 for ac_prog in cl.exe 4954 do 4955 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4956set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4958printf %s "checking for $ac_word... " >&6; } 4959if test ${ac_cv_prog_CC+y} 4960then : 4961 printf %s "(cached) " >&6 4962else $as_nop 4963 if test -n "$CC"; then 4964 ac_cv_prog_CC="$CC" # Let the user override the test. 4965else 4966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4967for as_dir in $PATH 4968do 4969 IFS=$as_save_IFS 4970 case $as_dir in #((( 4971 '') as_dir=./ ;; 4972 */) ;; 4973 *) as_dir=$as_dir/ ;; 4974 esac 4975 for ac_exec_ext in '' $ac_executable_extensions; do 4976 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4977 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4979 break 2 4980 fi 4981done 4982 done 4983IFS=$as_save_IFS 4984 4985fi 4986fi 4987CC=$ac_cv_prog_CC 4988if test -n "$CC"; then 4989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4990printf "%s\n" "$CC" >&6; } 4991else 4992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4993printf "%s\n" "no" >&6; } 4994fi 4995 4996 4997 test -n "$CC" && break 4998 done 4999fi 5000if test -z "$CC"; then 5001 ac_ct_CC=$CC 5002 for ac_prog in cl.exe 5003do 5004 # Extract the first word of "$ac_prog", so it can be a program name with args. 5005set dummy $ac_prog; ac_word=$2 5006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5007printf %s "checking for $ac_word... " >&6; } 5008if test ${ac_cv_prog_ac_ct_CC+y} 5009then : 5010 printf %s "(cached) " >&6 5011else $as_nop 5012 if test -n "$ac_ct_CC"; then 5013 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5014else 5015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5016for as_dir in $PATH 5017do 5018 IFS=$as_save_IFS 5019 case $as_dir in #((( 5020 '') as_dir=./ ;; 5021 */) ;; 5022 *) as_dir=$as_dir/ ;; 5023 esac 5024 for ac_exec_ext in '' $ac_executable_extensions; do 5025 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5026 ac_cv_prog_ac_ct_CC="$ac_prog" 5027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5028 break 2 5029 fi 5030done 5031 done 5032IFS=$as_save_IFS 5033 5034fi 5035fi 5036ac_ct_CC=$ac_cv_prog_ac_ct_CC 5037if test -n "$ac_ct_CC"; then 5038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5039printf "%s\n" "$ac_ct_CC" >&6; } 5040else 5041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5042printf "%s\n" "no" >&6; } 5043fi 5044 5045 5046 test -n "$ac_ct_CC" && break 5047done 5048 5049 if test "x$ac_ct_CC" = x; then 5050 CC="" 5051 else 5052 case $cross_compiling:$ac_tool_warned in 5053yes:) 5054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5055printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5056ac_tool_warned=yes ;; 5057esac 5058 CC=$ac_ct_CC 5059 fi 5060fi 5061 5062fi 5063if test -z "$CC"; then 5064 if test -n "$ac_tool_prefix"; then 5065 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 5066set dummy ${ac_tool_prefix}clang; ac_word=$2 5067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5068printf %s "checking for $ac_word... " >&6; } 5069if test ${ac_cv_prog_CC+y} 5070then : 5071 printf %s "(cached) " >&6 5072else $as_nop 5073 if test -n "$CC"; then 5074 ac_cv_prog_CC="$CC" # Let the user override the test. 5075else 5076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5077for as_dir in $PATH 5078do 5079 IFS=$as_save_IFS 5080 case $as_dir in #((( 5081 '') as_dir=./ ;; 5082 */) ;; 5083 *) as_dir=$as_dir/ ;; 5084 esac 5085 for ac_exec_ext in '' $ac_executable_extensions; do 5086 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5087 ac_cv_prog_CC="${ac_tool_prefix}clang" 5088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5089 break 2 5090 fi 5091done 5092 done 5093IFS=$as_save_IFS 5094 5095fi 5096fi 5097CC=$ac_cv_prog_CC 5098if test -n "$CC"; then 5099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5100printf "%s\n" "$CC" >&6; } 5101else 5102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5103printf "%s\n" "no" >&6; } 5104fi 5105 5106 5107fi 5108if test -z "$ac_cv_prog_CC"; then 5109 ac_ct_CC=$CC 5110 # Extract the first word of "clang", so it can be a program name with args. 5111set dummy clang; ac_word=$2 5112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5113printf %s "checking for $ac_word... " >&6; } 5114if test ${ac_cv_prog_ac_ct_CC+y} 5115then : 5116 printf %s "(cached) " >&6 5117else $as_nop 5118 if test -n "$ac_ct_CC"; then 5119 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5120else 5121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5122for as_dir in $PATH 5123do 5124 IFS=$as_save_IFS 5125 case $as_dir in #((( 5126 '') as_dir=./ ;; 5127 */) ;; 5128 *) as_dir=$as_dir/ ;; 5129 esac 5130 for ac_exec_ext in '' $ac_executable_extensions; do 5131 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5132 ac_cv_prog_ac_ct_CC="clang" 5133 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5134 break 2 5135 fi 5136done 5137 done 5138IFS=$as_save_IFS 5139 5140fi 5141fi 5142ac_ct_CC=$ac_cv_prog_ac_ct_CC 5143if test -n "$ac_ct_CC"; then 5144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5145printf "%s\n" "$ac_ct_CC" >&6; } 5146else 5147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5148printf "%s\n" "no" >&6; } 5149fi 5150 5151 if test "x$ac_ct_CC" = x; then 5152 CC="" 5153 else 5154 case $cross_compiling:$ac_tool_warned in 5155yes:) 5156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5157printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5158ac_tool_warned=yes ;; 5159esac 5160 CC=$ac_ct_CC 5161 fi 5162else 5163 CC="$ac_cv_prog_CC" 5164fi 5165 5166fi 5167 5168 5169test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5170printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5171as_fn_error $? "no acceptable C compiler found in \$PATH 5172See \`config.log' for more details" "$LINENO" 5; } 5173 5174# Provide some information about the compiler. 5175printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5176set X $ac_compile 5177ac_compiler=$2 5178for ac_option in --version -v -V -qversion -version; do 5179 { { ac_try="$ac_compiler $ac_option >&5" 5180case "(($ac_try" in 5181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5182 *) ac_try_echo=$ac_try;; 5183esac 5184eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5185printf "%s\n" "$ac_try_echo"; } >&5 5186 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5187 ac_status=$? 5188 if test -s conftest.err; then 5189 sed '10a\ 5190... rest of stderr output deleted ... 5191 10q' conftest.err >conftest.er1 5192 cat conftest.er1 >&5 5193 fi 5194 rm -f conftest.er1 conftest.err 5195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5196 test $ac_status = 0; } 5197done 5198 5199cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5200/* end confdefs.h. */ 5201 5202int 5203main (void) 5204{ 5205 5206 ; 5207 return 0; 5208} 5209_ACEOF 5210ac_clean_files_save=$ac_clean_files 5211ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 5212# Try to create an executable without -o first, disregard a.out. 5213# It will help us diagnose broken compilers, and finding out an intuition 5214# of exeext. 5215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 5216printf %s "checking whether the C compiler works... " >&6; } 5217ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 5218 5219# The possible output files: 5220ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 5221 5222ac_rmfiles= 5223for ac_file in $ac_files 5224do 5225 case $ac_file in 5226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 5227 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 5228 esac 5229done 5230rm -f $ac_rmfiles 5231 5232if { { ac_try="$ac_link_default" 5233case "(($ac_try" in 5234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5235 *) ac_try_echo=$ac_try;; 5236esac 5237eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5238printf "%s\n" "$ac_try_echo"; } >&5 5239 (eval "$ac_link_default") 2>&5 5240 ac_status=$? 5241 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5242 test $ac_status = 0; } 5243then : 5244 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 5245# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 5246# in a Makefile. We should not override ac_cv_exeext if it was cached, 5247# so that the user can short-circuit this test for compilers unknown to 5248# Autoconf. 5249for ac_file in $ac_files '' 5250do 5251 test -f "$ac_file" || continue 5252 case $ac_file in 5253 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 5254 ;; 5255 [ab].out ) 5256 # We found the default executable, but exeext='' is most 5257 # certainly right. 5258 break;; 5259 *.* ) 5260 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 5261 then :; else 5262 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5263 fi 5264 # We set ac_cv_exeext here because the later test for it is not 5265 # safe: cross compilers may not add the suffix if given an `-o' 5266 # argument, so we may need to know it at that point already. 5267 # Even if this section looks crufty: it has the advantage of 5268 # actually working. 5269 break;; 5270 * ) 5271 break;; 5272 esac 5273done 5274test "$ac_cv_exeext" = no && ac_cv_exeext= 5275 5276else $as_nop 5277 ac_file='' 5278fi 5279if test -z "$ac_file" 5280then : 5281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5282printf "%s\n" "no" >&6; } 5283printf "%s\n" "$as_me: failed program was:" >&5 5284sed 's/^/| /' conftest.$ac_ext >&5 5285 5286{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5287printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5288as_fn_error 77 "C compiler cannot create executables 5289See \`config.log' for more details" "$LINENO" 5; } 5290else $as_nop 5291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5292printf "%s\n" "yes" >&6; } 5293fi 5294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 5295printf %s "checking for C compiler default output file name... " >&6; } 5296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 5297printf "%s\n" "$ac_file" >&6; } 5298ac_exeext=$ac_cv_exeext 5299 5300rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 5301ac_clean_files=$ac_clean_files_save 5302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 5303printf %s "checking for suffix of executables... " >&6; } 5304if { { ac_try="$ac_link" 5305case "(($ac_try" in 5306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5307 *) ac_try_echo=$ac_try;; 5308esac 5309eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5310printf "%s\n" "$ac_try_echo"; } >&5 5311 (eval "$ac_link") 2>&5 5312 ac_status=$? 5313 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5314 test $ac_status = 0; } 5315then : 5316 # If both `conftest.exe' and `conftest' are `present' (well, observable) 5317# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 5318# work properly (i.e., refer to `conftest.exe'), while it won't with 5319# `rm'. 5320for ac_file in conftest.exe conftest conftest.*; do 5321 test -f "$ac_file" || continue 5322 case $ac_file in 5323 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 5324 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5325 break;; 5326 * ) break;; 5327 esac 5328done 5329else $as_nop 5330 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5331printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5332as_fn_error $? "cannot compute suffix of executables: cannot compile and link 5333See \`config.log' for more details" "$LINENO" 5; } 5334fi 5335rm -f conftest conftest$ac_cv_exeext 5336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 5337printf "%s\n" "$ac_cv_exeext" >&6; } 5338 5339rm -f conftest.$ac_ext 5340EXEEXT=$ac_cv_exeext 5341ac_exeext=$EXEEXT 5342cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5343/* end confdefs.h. */ 5344#include <stdio.h> 5345int 5346main (void) 5347{ 5348FILE *f = fopen ("conftest.out", "w"); 5349 return ferror (f) || fclose (f) != 0; 5350 5351 ; 5352 return 0; 5353} 5354_ACEOF 5355ac_clean_files="$ac_clean_files conftest.out" 5356# Check that the compiler produces executables we can run. If not, either 5357# the compiler is broken, or we cross compile. 5358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 5359printf %s "checking whether we are cross compiling... " >&6; } 5360if test "$cross_compiling" != yes; then 5361 { { ac_try="$ac_link" 5362case "(($ac_try" in 5363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5364 *) ac_try_echo=$ac_try;; 5365esac 5366eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5367printf "%s\n" "$ac_try_echo"; } >&5 5368 (eval "$ac_link") 2>&5 5369 ac_status=$? 5370 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5371 test $ac_status = 0; } 5372 if { ac_try='./conftest$ac_cv_exeext' 5373 { { case "(($ac_try" in 5374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5375 *) ac_try_echo=$ac_try;; 5376esac 5377eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5378printf "%s\n" "$ac_try_echo"; } >&5 5379 (eval "$ac_try") 2>&5 5380 ac_status=$? 5381 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5382 test $ac_status = 0; }; }; then 5383 cross_compiling=no 5384 else 5385 if test "$cross_compiling" = maybe; then 5386 cross_compiling=yes 5387 else 5388 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5389printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5390as_fn_error 77 "cannot run C compiled programs. 5391If you meant to cross compile, use \`--host'. 5392See \`config.log' for more details" "$LINENO" 5; } 5393 fi 5394 fi 5395fi 5396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 5397printf "%s\n" "$cross_compiling" >&6; } 5398 5399rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 5400ac_clean_files=$ac_clean_files_save 5401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 5402printf %s "checking for suffix of object files... " >&6; } 5403if test ${ac_cv_objext+y} 5404then : 5405 printf %s "(cached) " >&6 5406else $as_nop 5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5408/* end confdefs.h. */ 5409 5410int 5411main (void) 5412{ 5413 5414 ; 5415 return 0; 5416} 5417_ACEOF 5418rm -f conftest.o conftest.obj 5419if { { ac_try="$ac_compile" 5420case "(($ac_try" in 5421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5422 *) ac_try_echo=$ac_try;; 5423esac 5424eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5425printf "%s\n" "$ac_try_echo"; } >&5 5426 (eval "$ac_compile") 2>&5 5427 ac_status=$? 5428 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5429 test $ac_status = 0; } 5430then : 5431 for ac_file in conftest.o conftest.obj conftest.*; do 5432 test -f "$ac_file" || continue; 5433 case $ac_file in 5434 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 5435 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 5436 break;; 5437 esac 5438done 5439else $as_nop 5440 printf "%s\n" "$as_me: failed program was:" >&5 5441sed 's/^/| /' conftest.$ac_ext >&5 5442 5443{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5444printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5445as_fn_error $? "cannot compute suffix of object files: cannot compile 5446See \`config.log' for more details" "$LINENO" 5; } 5447fi 5448rm -f conftest.$ac_cv_objext conftest.$ac_ext 5449fi 5450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 5451printf "%s\n" "$ac_cv_objext" >&6; } 5452OBJEXT=$ac_cv_objext 5453ac_objext=$OBJEXT 5454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 5455printf %s "checking whether the compiler supports GNU C... " >&6; } 5456if test ${ac_cv_c_compiler_gnu+y} 5457then : 5458 printf %s "(cached) " >&6 5459else $as_nop 5460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5461/* end confdefs.h. */ 5462 5463int 5464main (void) 5465{ 5466#ifndef __GNUC__ 5467 choke me 5468#endif 5469 5470 ; 5471 return 0; 5472} 5473_ACEOF 5474if ac_fn_c_try_compile "$LINENO" 5475then : 5476 ac_compiler_gnu=yes 5477else $as_nop 5478 ac_compiler_gnu=no 5479fi 5480rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5481ac_cv_c_compiler_gnu=$ac_compiler_gnu 5482 5483fi 5484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5485printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 5486ac_compiler_gnu=$ac_cv_c_compiler_gnu 5487 5488if test $ac_compiler_gnu = yes; then 5489 GCC=yes 5490else 5491 GCC= 5492fi 5493ac_test_CFLAGS=${CFLAGS+y} 5494ac_save_CFLAGS=$CFLAGS 5495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5496printf %s "checking whether $CC accepts -g... " >&6; } 5497if test ${ac_cv_prog_cc_g+y} 5498then : 5499 printf %s "(cached) " >&6 5500else $as_nop 5501 ac_save_c_werror_flag=$ac_c_werror_flag 5502 ac_c_werror_flag=yes 5503 ac_cv_prog_cc_g=no 5504 CFLAGS="-g" 5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5506/* end confdefs.h. */ 5507 5508int 5509main (void) 5510{ 5511 5512 ; 5513 return 0; 5514} 5515_ACEOF 5516if ac_fn_c_try_compile "$LINENO" 5517then : 5518 ac_cv_prog_cc_g=yes 5519else $as_nop 5520 CFLAGS="" 5521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5522/* end confdefs.h. */ 5523 5524int 5525main (void) 5526{ 5527 5528 ; 5529 return 0; 5530} 5531_ACEOF 5532if ac_fn_c_try_compile "$LINENO" 5533then : 5534 5535else $as_nop 5536 ac_c_werror_flag=$ac_save_c_werror_flag 5537 CFLAGS="-g" 5538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5539/* end confdefs.h. */ 5540 5541int 5542main (void) 5543{ 5544 5545 ; 5546 return 0; 5547} 5548_ACEOF 5549if ac_fn_c_try_compile "$LINENO" 5550then : 5551 ac_cv_prog_cc_g=yes 5552fi 5553rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5554fi 5555rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5556fi 5557rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5558 ac_c_werror_flag=$ac_save_c_werror_flag 5559fi 5560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5561printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 5562if test $ac_test_CFLAGS; then 5563 CFLAGS=$ac_save_CFLAGS 5564elif test $ac_cv_prog_cc_g = yes; then 5565 if test "$GCC" = yes; then 5566 CFLAGS="-g -O2" 5567 else 5568 CFLAGS="-g" 5569 fi 5570else 5571 if test "$GCC" = yes; then 5572 CFLAGS="-O2" 5573 else 5574 CFLAGS= 5575 fi 5576fi 5577ac_prog_cc_stdc=no 5578if test x$ac_prog_cc_stdc = xno 5579then : 5580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 5581printf %s "checking for $CC option to enable C11 features... " >&6; } 5582if test ${ac_cv_prog_cc_c11+y} 5583then : 5584 printf %s "(cached) " >&6 5585else $as_nop 5586 ac_cv_prog_cc_c11=no 5587ac_save_CC=$CC 5588cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5589/* end confdefs.h. */ 5590$ac_c_conftest_c11_program 5591_ACEOF 5592for ac_arg in '' -std=gnu11 5593do 5594 CC="$ac_save_CC $ac_arg" 5595 if ac_fn_c_try_compile "$LINENO" 5596then : 5597 ac_cv_prog_cc_c11=$ac_arg 5598fi 5599rm -f core conftest.err conftest.$ac_objext conftest.beam 5600 test "x$ac_cv_prog_cc_c11" != "xno" && break 5601done 5602rm -f conftest.$ac_ext 5603CC=$ac_save_CC 5604fi 5605 5606if test "x$ac_cv_prog_cc_c11" = xno 5607then : 5608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5609printf "%s\n" "unsupported" >&6; } 5610else $as_nop 5611 if test "x$ac_cv_prog_cc_c11" = x 5612then : 5613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5614printf "%s\n" "none needed" >&6; } 5615else $as_nop 5616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 5617printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 5618 CC="$CC $ac_cv_prog_cc_c11" 5619fi 5620 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 5621 ac_prog_cc_stdc=c11 5622fi 5623fi 5624if test x$ac_prog_cc_stdc = xno 5625then : 5626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 5627printf %s "checking for $CC option to enable C99 features... " >&6; } 5628if test ${ac_cv_prog_cc_c99+y} 5629then : 5630 printf %s "(cached) " >&6 5631else $as_nop 5632 ac_cv_prog_cc_c99=no 5633ac_save_CC=$CC 5634cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5635/* end confdefs.h. */ 5636$ac_c_conftest_c99_program 5637_ACEOF 5638for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 5639do 5640 CC="$ac_save_CC $ac_arg" 5641 if ac_fn_c_try_compile "$LINENO" 5642then : 5643 ac_cv_prog_cc_c99=$ac_arg 5644fi 5645rm -f core conftest.err conftest.$ac_objext conftest.beam 5646 test "x$ac_cv_prog_cc_c99" != "xno" && break 5647done 5648rm -f conftest.$ac_ext 5649CC=$ac_save_CC 5650fi 5651 5652if test "x$ac_cv_prog_cc_c99" = xno 5653then : 5654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5655printf "%s\n" "unsupported" >&6; } 5656else $as_nop 5657 if test "x$ac_cv_prog_cc_c99" = x 5658then : 5659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5660printf "%s\n" "none needed" >&6; } 5661else $as_nop 5662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5663printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 5664 CC="$CC $ac_cv_prog_cc_c99" 5665fi 5666 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 5667 ac_prog_cc_stdc=c99 5668fi 5669fi 5670if test x$ac_prog_cc_stdc = xno 5671then : 5672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 5673printf %s "checking for $CC option to enable C89 features... " >&6; } 5674if test ${ac_cv_prog_cc_c89+y} 5675then : 5676 printf %s "(cached) " >&6 5677else $as_nop 5678 ac_cv_prog_cc_c89=no 5679ac_save_CC=$CC 5680cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5681/* end confdefs.h. */ 5682$ac_c_conftest_c89_program 5683_ACEOF 5684for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5685do 5686 CC="$ac_save_CC $ac_arg" 5687 if ac_fn_c_try_compile "$LINENO" 5688then : 5689 ac_cv_prog_cc_c89=$ac_arg 5690fi 5691rm -f core conftest.err conftest.$ac_objext conftest.beam 5692 test "x$ac_cv_prog_cc_c89" != "xno" && break 5693done 5694rm -f conftest.$ac_ext 5695CC=$ac_save_CC 5696fi 5697 5698if test "x$ac_cv_prog_cc_c89" = xno 5699then : 5700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5701printf "%s\n" "unsupported" >&6; } 5702else $as_nop 5703 if test "x$ac_cv_prog_cc_c89" = x 5704then : 5705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5706printf "%s\n" "none needed" >&6; } 5707else $as_nop 5708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5709printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 5710 CC="$CC $ac_cv_prog_cc_c89" 5711fi 5712 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 5713 ac_prog_cc_stdc=c89 5714fi 5715fi 5716 5717ac_ext=c 5718ac_cpp='$CPP $CPPFLAGS' 5719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5721ac_compiler_gnu=$ac_cv_c_compiler_gnu 5722 5723 5724 ac_ext=c 5725ac_cpp='$CPP $CPPFLAGS' 5726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5728ac_compiler_gnu=$ac_cv_c_compiler_gnu 5729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5730printf %s "checking whether $CC understands -c and -o together... " >&6; } 5731if test ${am_cv_prog_cc_c_o+y} 5732then : 5733 printf %s "(cached) " >&6 5734else $as_nop 5735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5736/* end confdefs.h. */ 5737 5738int 5739main (void) 5740{ 5741 5742 ; 5743 return 0; 5744} 5745_ACEOF 5746 # Make sure it works both with $CC and with simple cc. 5747 # Following AC_PROG_CC_C_O, we do the test twice because some 5748 # compilers refuse to overwrite an existing .o file with -o, 5749 # though they will create one. 5750 am_cv_prog_cc_c_o=yes 5751 for am_i in 1 2; do 5752 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5753 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5754 ac_status=$? 5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5756 (exit $ac_status); } \ 5757 && test -f conftest2.$ac_objext; then 5758 : OK 5759 else 5760 am_cv_prog_cc_c_o=no 5761 break 5762 fi 5763 done 5764 rm -f core conftest* 5765 unset am_i 5766fi 5767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5768printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 5769if test "$am_cv_prog_cc_c_o" != yes; then 5770 # Losing compiler, so override with the script. 5771 # FIXME: It is wrong to rewrite CC. 5772 # But if we don't then we get into trouble of one sort or another. 5773 # A longer-term fix would be to have automake use am__CC in this case, 5774 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5775 CC="$am_aux_dir/compile $CC" 5776fi 5777ac_ext=c 5778ac_cpp='$CPP $CPPFLAGS' 5779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5781ac_compiler_gnu=$ac_cv_c_compiler_gnu 5782 5783 5784 5785ac_ext=c 5786ac_cpp='$CPP $CPPFLAGS' 5787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5789ac_compiler_gnu=$ac_cv_c_compiler_gnu 5790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5791printf %s "checking how to run the C preprocessor... " >&6; } 5792# On Suns, sometimes $CPP names a directory. 5793if test -n "$CPP" && test -d "$CPP"; then 5794 CPP= 5795fi 5796if test -z "$CPP"; then 5797 if test ${ac_cv_prog_CPP+y} 5798then : 5799 printf %s "(cached) " >&6 5800else $as_nop 5801 # Double quotes because $CC needs to be expanded 5802 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 5803 do 5804 ac_preproc_ok=false 5805for ac_c_preproc_warn_flag in '' yes 5806do 5807 # Use a header file that comes with gcc, so configuring glibc 5808 # with a fresh cross-compiler works. 5809 # On the NeXT, cc -E runs the code through the compiler's parser, 5810 # not just through cpp. "Syntax error" is here to catch this case. 5811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5812/* end confdefs.h. */ 5813#include <limits.h> 5814 Syntax error 5815_ACEOF 5816if ac_fn_c_try_cpp "$LINENO" 5817then : 5818 5819else $as_nop 5820 # Broken: fails on valid input. 5821continue 5822fi 5823rm -f conftest.err conftest.i conftest.$ac_ext 5824 5825 # OK, works on sane cases. Now check whether nonexistent headers 5826 # can be detected and how. 5827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5828/* end confdefs.h. */ 5829#include <ac_nonexistent.h> 5830_ACEOF 5831if ac_fn_c_try_cpp "$LINENO" 5832then : 5833 # Broken: success on invalid input. 5834continue 5835else $as_nop 5836 # Passes both tests. 5837ac_preproc_ok=: 5838break 5839fi 5840rm -f conftest.err conftest.i conftest.$ac_ext 5841 5842done 5843# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5844rm -f conftest.i conftest.err conftest.$ac_ext 5845if $ac_preproc_ok 5846then : 5847 break 5848fi 5849 5850 done 5851 ac_cv_prog_CPP=$CPP 5852 5853fi 5854 CPP=$ac_cv_prog_CPP 5855else 5856 ac_cv_prog_CPP=$CPP 5857fi 5858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5859printf "%s\n" "$CPP" >&6; } 5860ac_preproc_ok=false 5861for ac_c_preproc_warn_flag in '' yes 5862do 5863 # Use a header file that comes with gcc, so configuring glibc 5864 # with a fresh cross-compiler works. 5865 # On the NeXT, cc -E runs the code through the compiler's parser, 5866 # not just through cpp. "Syntax error" is here to catch this case. 5867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5868/* end confdefs.h. */ 5869#include <limits.h> 5870 Syntax error 5871_ACEOF 5872if ac_fn_c_try_cpp "$LINENO" 5873then : 5874 5875else $as_nop 5876 # Broken: fails on valid input. 5877continue 5878fi 5879rm -f conftest.err conftest.i conftest.$ac_ext 5880 5881 # OK, works on sane cases. Now check whether nonexistent headers 5882 # can be detected and how. 5883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5884/* end confdefs.h. */ 5885#include <ac_nonexistent.h> 5886_ACEOF 5887if ac_fn_c_try_cpp "$LINENO" 5888then : 5889 # Broken: success on invalid input. 5890continue 5891else $as_nop 5892 # Passes both tests. 5893ac_preproc_ok=: 5894break 5895fi 5896rm -f conftest.err conftest.i conftest.$ac_ext 5897 5898done 5899# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5900rm -f conftest.i conftest.err conftest.$ac_ext 5901if $ac_preproc_ok 5902then : 5903 5904else $as_nop 5905 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5906printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5907as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5908See \`config.log' for more details" "$LINENO" 5; } 5909fi 5910 5911ac_ext=c 5912ac_cpp='$CPP $CPPFLAGS' 5913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5915ac_compiler_gnu=$ac_cv_c_compiler_gnu 5916 5917 5918 IFS=$xc_prog_cc_prev_IFS 5919 LIBS=$xc_prog_cc_prev_LIBS 5920 CFLAGS=$xc_prog_cc_prev_CFLAGS 5921 LDFLAGS=$xc_prog_cc_prev_LDFLAGS 5922 CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934ac_ext=cpp 5935ac_cpp='$CXXCPP $CPPFLAGS' 5936ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5937ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5938ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5939if test -z "$CXX"; then 5940 if test -n "$CCC"; then 5941 CXX=$CCC 5942 else 5943 if test -n "$ac_tool_prefix"; then 5944 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ 5945 do 5946 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5947set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5949printf %s "checking for $ac_word... " >&6; } 5950if test ${ac_cv_prog_CXX+y} 5951then : 5952 printf %s "(cached) " >&6 5953else $as_nop 5954 if test -n "$CXX"; then 5955 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5956else 5957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5958for as_dir in $PATH 5959do 5960 IFS=$as_save_IFS 5961 case $as_dir in #((( 5962 '') as_dir=./ ;; 5963 */) ;; 5964 *) as_dir=$as_dir/ ;; 5965 esac 5966 for ac_exec_ext in '' $ac_executable_extensions; do 5967 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5968 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5969 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5970 break 2 5971 fi 5972done 5973 done 5974IFS=$as_save_IFS 5975 5976fi 5977fi 5978CXX=$ac_cv_prog_CXX 5979if test -n "$CXX"; then 5980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 5981printf "%s\n" "$CXX" >&6; } 5982else 5983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5984printf "%s\n" "no" >&6; } 5985fi 5986 5987 5988 test -n "$CXX" && break 5989 done 5990fi 5991if test -z "$CXX"; then 5992 ac_ct_CXX=$CXX 5993 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ 5994do 5995 # Extract the first word of "$ac_prog", so it can be a program name with args. 5996set dummy $ac_prog; ac_word=$2 5997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5998printf %s "checking for $ac_word... " >&6; } 5999if test ${ac_cv_prog_ac_ct_CXX+y} 6000then : 6001 printf %s "(cached) " >&6 6002else $as_nop 6003 if test -n "$ac_ct_CXX"; then 6004 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 6005else 6006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6007for as_dir in $PATH 6008do 6009 IFS=$as_save_IFS 6010 case $as_dir in #((( 6011 '') as_dir=./ ;; 6012 */) ;; 6013 *) as_dir=$as_dir/ ;; 6014 esac 6015 for ac_exec_ext in '' $ac_executable_extensions; do 6016 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6017 ac_cv_prog_ac_ct_CXX="$ac_prog" 6018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6019 break 2 6020 fi 6021done 6022 done 6023IFS=$as_save_IFS 6024 6025fi 6026fi 6027ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 6028if test -n "$ac_ct_CXX"; then 6029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 6030printf "%s\n" "$ac_ct_CXX" >&6; } 6031else 6032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6033printf "%s\n" "no" >&6; } 6034fi 6035 6036 6037 test -n "$ac_ct_CXX" && break 6038done 6039 6040 if test "x$ac_ct_CXX" = x; then 6041 CXX="g++" 6042 else 6043 case $cross_compiling:$ac_tool_warned in 6044yes:) 6045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6046printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6047ac_tool_warned=yes ;; 6048esac 6049 CXX=$ac_ct_CXX 6050 fi 6051fi 6052 6053 fi 6054fi 6055# Provide some information about the compiler. 6056printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 6057set X $ac_compile 6058ac_compiler=$2 6059for ac_option in --version -v -V -qversion; do 6060 { { ac_try="$ac_compiler $ac_option >&5" 6061case "(($ac_try" in 6062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6063 *) ac_try_echo=$ac_try;; 6064esac 6065eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6066printf "%s\n" "$ac_try_echo"; } >&5 6067 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 6068 ac_status=$? 6069 if test -s conftest.err; then 6070 sed '10a\ 6071... rest of stderr output deleted ... 6072 10q' conftest.err >conftest.er1 6073 cat conftest.er1 >&5 6074 fi 6075 rm -f conftest.er1 conftest.err 6076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6077 test $ac_status = 0; } 6078done 6079 6080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 6081printf %s "checking whether the compiler supports GNU C++... " >&6; } 6082if test ${ac_cv_cxx_compiler_gnu+y} 6083then : 6084 printf %s "(cached) " >&6 6085else $as_nop 6086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6087/* end confdefs.h. */ 6088 6089int 6090main (void) 6091{ 6092#ifndef __GNUC__ 6093 choke me 6094#endif 6095 6096 ; 6097 return 0; 6098} 6099_ACEOF 6100if ac_fn_cxx_try_compile "$LINENO" 6101then : 6102 ac_compiler_gnu=yes 6103else $as_nop 6104 ac_compiler_gnu=no 6105fi 6106rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6107ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 6108 6109fi 6110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 6111printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } 6112ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6113 6114if test $ac_compiler_gnu = yes; then 6115 GXX=yes 6116else 6117 GXX= 6118fi 6119ac_test_CXXFLAGS=${CXXFLAGS+y} 6120ac_save_CXXFLAGS=$CXXFLAGS 6121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 6122printf %s "checking whether $CXX accepts -g... " >&6; } 6123if test ${ac_cv_prog_cxx_g+y} 6124then : 6125 printf %s "(cached) " >&6 6126else $as_nop 6127 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 6128 ac_cxx_werror_flag=yes 6129 ac_cv_prog_cxx_g=no 6130 CXXFLAGS="-g" 6131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6132/* end confdefs.h. */ 6133 6134int 6135main (void) 6136{ 6137 6138 ; 6139 return 0; 6140} 6141_ACEOF 6142if ac_fn_cxx_try_compile "$LINENO" 6143then : 6144 ac_cv_prog_cxx_g=yes 6145else $as_nop 6146 CXXFLAGS="" 6147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6148/* end confdefs.h. */ 6149 6150int 6151main (void) 6152{ 6153 6154 ; 6155 return 0; 6156} 6157_ACEOF 6158if ac_fn_cxx_try_compile "$LINENO" 6159then : 6160 6161else $as_nop 6162 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6163 CXXFLAGS="-g" 6164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6165/* end confdefs.h. */ 6166 6167int 6168main (void) 6169{ 6170 6171 ; 6172 return 0; 6173} 6174_ACEOF 6175if ac_fn_cxx_try_compile "$LINENO" 6176then : 6177 ac_cv_prog_cxx_g=yes 6178fi 6179rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6180fi 6181rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6182fi 6183rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6184 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6185fi 6186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 6187printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } 6188if test $ac_test_CXXFLAGS; then 6189 CXXFLAGS=$ac_save_CXXFLAGS 6190elif test $ac_cv_prog_cxx_g = yes; then 6191 if test "$GXX" = yes; then 6192 CXXFLAGS="-g -O2" 6193 else 6194 CXXFLAGS="-g" 6195 fi 6196else 6197 if test "$GXX" = yes; then 6198 CXXFLAGS="-O2" 6199 else 6200 CXXFLAGS= 6201 fi 6202fi 6203ac_prog_cxx_stdcxx=no 6204if test x$ac_prog_cxx_stdcxx = xno 6205then : 6206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 6207printf %s "checking for $CXX option to enable C++11 features... " >&6; } 6208if test ${ac_cv_prog_cxx_cxx11+y} 6209then : 6210 printf %s "(cached) " >&6 6211else $as_nop 6212 ac_cv_prog_cxx_cxx11=no 6213ac_save_CXX=$CXX 6214cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6215/* end confdefs.h. */ 6216$ac_cxx_conftest_cxx11_program 6217_ACEOF 6218for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA 6219do 6220 CXX="$ac_save_CXX $ac_arg" 6221 if ac_fn_cxx_try_compile "$LINENO" 6222then : 6223 ac_cv_prog_cxx_cxx11=$ac_arg 6224fi 6225rm -f core conftest.err conftest.$ac_objext conftest.beam 6226 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break 6227done 6228rm -f conftest.$ac_ext 6229CXX=$ac_save_CXX 6230fi 6231 6232if test "x$ac_cv_prog_cxx_cxx11" = xno 6233then : 6234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6235printf "%s\n" "unsupported" >&6; } 6236else $as_nop 6237 if test "x$ac_cv_prog_cxx_cxx11" = x 6238then : 6239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6240printf "%s\n" "none needed" >&6; } 6241else $as_nop 6242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 6243printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } 6244 CXX="$CXX $ac_cv_prog_cxx_cxx11" 6245fi 6246 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 6247 ac_prog_cxx_stdcxx=cxx11 6248fi 6249fi 6250if test x$ac_prog_cxx_stdcxx = xno 6251then : 6252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 6253printf %s "checking for $CXX option to enable C++98 features... " >&6; } 6254if test ${ac_cv_prog_cxx_cxx98+y} 6255then : 6256 printf %s "(cached) " >&6 6257else $as_nop 6258 ac_cv_prog_cxx_cxx98=no 6259ac_save_CXX=$CXX 6260cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6261/* end confdefs.h. */ 6262$ac_cxx_conftest_cxx98_program 6263_ACEOF 6264for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA 6265do 6266 CXX="$ac_save_CXX $ac_arg" 6267 if ac_fn_cxx_try_compile "$LINENO" 6268then : 6269 ac_cv_prog_cxx_cxx98=$ac_arg 6270fi 6271rm -f core conftest.err conftest.$ac_objext conftest.beam 6272 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break 6273done 6274rm -f conftest.$ac_ext 6275CXX=$ac_save_CXX 6276fi 6277 6278if test "x$ac_cv_prog_cxx_cxx98" = xno 6279then : 6280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6281printf "%s\n" "unsupported" >&6; } 6282else $as_nop 6283 if test "x$ac_cv_prog_cxx_cxx98" = x 6284then : 6285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6286printf "%s\n" "none needed" >&6; } 6287else $as_nop 6288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 6289printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } 6290 CXX="$CXX $ac_cv_prog_cxx_cxx98" 6291fi 6292 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 6293 ac_prog_cxx_stdcxx=cxx98 6294fi 6295fi 6296 6297ac_ext=cpp 6298ac_cpp='$CXXCPP $CPPFLAGS' 6299ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6300ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6301ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6302 6303 6304 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=false 6305 ac_ext=cpp 6306ac_cpp='$CXXCPP $CPPFLAGS' 6307ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6308ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6309ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6310 ac_success=no 6311 6312 6313 6314 6315 6316 if test x$ac_success = xno; then 6317 for alternative in ${ax_cxx_compile_alternatives}; do 6318 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do 6319 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` 6320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 6321printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; } 6322if eval test \${$cachevar+y} 6323then : 6324 printf %s "(cached) " >&6 6325else $as_nop 6326 ac_save_CXX="$CXX" 6327 CXX="$CXX $switch" 6328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6329/* end confdefs.h. */ 6330 6331 6332// If the compiler admits that it is not ready for C++11, why torture it? 6333// Hopefully, this will speed up the test. 6334 6335#ifndef __cplusplus 6336 6337#error "This is not a C++ compiler" 6338 6339// MSVC always sets __cplusplus to 199711L in older versions; newer versions 6340// only set it correctly if /Zc:__cplusplus is specified as well as a 6341// /std:c++NN switch: 6342// https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/ 6343#elif __cplusplus < 201103L && !defined _MSC_VER 6344 6345#error "This is not a C++11 compiler" 6346 6347#else 6348 6349namespace cxx11 6350{ 6351 6352 namespace test_static_assert 6353 { 6354 6355 template <typename T> 6356 struct check 6357 { 6358 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 6359 }; 6360 6361 } 6362 6363 namespace test_final_override 6364 { 6365 6366 struct Base 6367 { 6368 virtual ~Base() {} 6369 virtual void f() {} 6370 }; 6371 6372 struct Derived : public Base 6373 { 6374 virtual ~Derived() override {} 6375 virtual void f() override {} 6376 }; 6377 6378 } 6379 6380 namespace test_double_right_angle_brackets 6381 { 6382 6383 template < typename T > 6384 struct check {}; 6385 6386 typedef check<void> single_type; 6387 typedef check<check<void>> double_type; 6388 typedef check<check<check<void>>> triple_type; 6389 typedef check<check<check<check<void>>>> quadruple_type; 6390 6391 } 6392 6393 namespace test_decltype 6394 { 6395 6396 int 6397 f() 6398 { 6399 int a = 1; 6400 decltype(a) b = 2; 6401 return a + b; 6402 } 6403 6404 } 6405 6406 namespace test_type_deduction 6407 { 6408 6409 template < typename T1, typename T2 > 6410 struct is_same 6411 { 6412 static const bool value = false; 6413 }; 6414 6415 template < typename T > 6416 struct is_same<T, T> 6417 { 6418 static const bool value = true; 6419 }; 6420 6421 template < typename T1, typename T2 > 6422 auto 6423 add(T1 a1, T2 a2) -> decltype(a1 + a2) 6424 { 6425 return a1 + a2; 6426 } 6427 6428 int 6429 test(const int c, volatile int v) 6430 { 6431 static_assert(is_same<int, decltype(0)>::value == true, ""); 6432 static_assert(is_same<int, decltype(c)>::value == false, ""); 6433 static_assert(is_same<int, decltype(v)>::value == false, ""); 6434 auto ac = c; 6435 auto av = v; 6436 auto sumi = ac + av + 'x'; 6437 auto sumf = ac + av + 1.0; 6438 static_assert(is_same<int, decltype(ac)>::value == true, ""); 6439 static_assert(is_same<int, decltype(av)>::value == true, ""); 6440 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 6441 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 6442 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 6443 return (sumf > 0.0) ? sumi : add(c, v); 6444 } 6445 6446 } 6447 6448 namespace test_noexcept 6449 { 6450 6451 int f() { return 0; } 6452 int g() noexcept { return 0; } 6453 6454 static_assert(noexcept(f()) == false, ""); 6455 static_assert(noexcept(g()) == true, ""); 6456 6457 } 6458 6459 namespace test_constexpr 6460 { 6461 6462 template < typename CharT > 6463 unsigned long constexpr 6464 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 6465 { 6466 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 6467 } 6468 6469 template < typename CharT > 6470 unsigned long constexpr 6471 strlen_c(const CharT *const s) noexcept 6472 { 6473 return strlen_c_r(s, 0UL); 6474 } 6475 6476 static_assert(strlen_c("") == 0UL, ""); 6477 static_assert(strlen_c("1") == 1UL, ""); 6478 static_assert(strlen_c("example") == 7UL, ""); 6479 static_assert(strlen_c("another\0example") == 7UL, ""); 6480 6481 } 6482 6483 namespace test_rvalue_references 6484 { 6485 6486 template < int N > 6487 struct answer 6488 { 6489 static constexpr int value = N; 6490 }; 6491 6492 answer<1> f(int&) { return answer<1>(); } 6493 answer<2> f(const int&) { return answer<2>(); } 6494 answer<3> f(int&&) { return answer<3>(); } 6495 6496 void 6497 test() 6498 { 6499 int i = 0; 6500 const int c = 0; 6501 static_assert(decltype(f(i))::value == 1, ""); 6502 static_assert(decltype(f(c))::value == 2, ""); 6503 static_assert(decltype(f(0))::value == 3, ""); 6504 } 6505 6506 } 6507 6508 namespace test_uniform_initialization 6509 { 6510 6511 struct test 6512 { 6513 static const int zero {}; 6514 static const int one {1}; 6515 }; 6516 6517 static_assert(test::zero == 0, ""); 6518 static_assert(test::one == 1, ""); 6519 6520 } 6521 6522 namespace test_lambdas 6523 { 6524 6525 void 6526 test1() 6527 { 6528 auto lambda1 = [](){}; 6529 auto lambda2 = lambda1; 6530 lambda1(); 6531 lambda2(); 6532 } 6533 6534 int 6535 test2() 6536 { 6537 auto a = [](int i, int j){ return i + j; }(1, 2); 6538 auto b = []() -> int { return '0'; }(); 6539 auto c = [=](){ return a + b; }(); 6540 auto d = [&](){ return c; }(); 6541 auto e = [a, &b](int x) mutable { 6542 const auto identity = [](int y){ return y; }; 6543 for (auto i = 0; i < a; ++i) 6544 a += b--; 6545 return x + identity(a + b); 6546 }(0); 6547 return a + b + c + d + e; 6548 } 6549 6550 int 6551 test3() 6552 { 6553 const auto nullary = [](){ return 0; }; 6554 const auto unary = [](int x){ return x; }; 6555 using nullary_t = decltype(nullary); 6556 using unary_t = decltype(unary); 6557 const auto higher1st = [](nullary_t f){ return f(); }; 6558 const auto higher2nd = [unary](nullary_t f1){ 6559 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 6560 }; 6561 return higher1st(nullary) + higher2nd(nullary)(unary); 6562 } 6563 6564 } 6565 6566 namespace test_variadic_templates 6567 { 6568 6569 template <int...> 6570 struct sum; 6571 6572 template <int N0, int... N1toN> 6573 struct sum<N0, N1toN...> 6574 { 6575 static constexpr auto value = N0 + sum<N1toN...>::value; 6576 }; 6577 6578 template <> 6579 struct sum<> 6580 { 6581 static constexpr auto value = 0; 6582 }; 6583 6584 static_assert(sum<>::value == 0, ""); 6585 static_assert(sum<1>::value == 1, ""); 6586 static_assert(sum<23>::value == 23, ""); 6587 static_assert(sum<1, 2>::value == 3, ""); 6588 static_assert(sum<5, 5, 11>::value == 21, ""); 6589 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 6590 6591 } 6592 6593 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 6594 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 6595 // because of this. 6596 namespace test_template_alias_sfinae 6597 { 6598 6599 struct foo {}; 6600 6601 template<typename T> 6602 using member = typename T::member_type; 6603 6604 template<typename T> 6605 void func(...) {} 6606 6607 template<typename T> 6608 void func(member<T>*) {} 6609 6610 void test(); 6611 6612 void test() { func<foo>(0); } 6613 6614 } 6615 6616} // namespace cxx11 6617 6618#endif // __cplusplus >= 201103L 6619 6620 6621 6622_ACEOF 6623if ac_fn_cxx_try_compile "$LINENO" 6624then : 6625 eval $cachevar=yes 6626else $as_nop 6627 eval $cachevar=no 6628fi 6629rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6630 CXX="$ac_save_CXX" 6631fi 6632eval ac_res=\$$cachevar 6633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6634printf "%s\n" "$ac_res" >&6; } 6635 if eval test x\$$cachevar = xyes; then 6636 CXX="$CXX $switch" 6637 if test -n "$CXXCPP" ; then 6638 CXXCPP="$CXXCPP $switch" 6639 fi 6640 ac_success=yes 6641 break 6642 fi 6643 done 6644 if test x$ac_success = xyes; then 6645 break 6646 fi 6647 done 6648 fi 6649 ac_ext=c 6650ac_cpp='$CPP $CPPFLAGS' 6651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6653ac_compiler_gnu=$ac_cv_c_compiler_gnu 6654 6655 if test x$ax_cxx_compile_cxx11_required = xtrue; then 6656 if test x$ac_success = xno; then 6657 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 6658 fi 6659 fi 6660 if test x$ac_success = xno; then 6661 HAVE_CXX11=0 6662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 6663printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;} 6664 else 6665 HAVE_CXX11=1 6666 6667printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h 6668 6669 fi 6670 6671 6672 6673am__api_version='1.16' 6674 6675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 6676printf %s "checking whether build environment is sane... " >&6; } 6677# Reject unsafe characters in $srcdir or the absolute working directory 6678# name. Accept space and tab only in the latter. 6679am_lf=' 6680' 6681case `pwd` in 6682 *[\\\"\#\$\&\'\`$am_lf]*) 6683 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 6684esac 6685case $srcdir in 6686 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 6687 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 6688esac 6689 6690# Do 'set' in a subshell so we don't clobber the current shell's 6691# arguments. Must try -L first in case configure is actually a 6692# symlink; some systems play weird games with the mod time of symlinks 6693# (eg FreeBSD returns the mod time of the symlink's containing 6694# directory). 6695if ( 6696 am_has_slept=no 6697 for am_try in 1 2; do 6698 echo "timestamp, slept: $am_has_slept" > conftest.file 6699 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 6700 if test "$*" = "X"; then 6701 # -L didn't work. 6702 set X `ls -t "$srcdir/configure" conftest.file` 6703 fi 6704 if test "$*" != "X $srcdir/configure conftest.file" \ 6705 && test "$*" != "X conftest.file $srcdir/configure"; then 6706 6707 # If neither matched, then we have a broken ls. This can happen 6708 # if, for instance, CONFIG_SHELL is bash and it inherits a 6709 # broken ls alias from the environment. This has actually 6710 # happened. Such a system could not be considered "sane". 6711 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 6712 alias in your environment" "$LINENO" 5 6713 fi 6714 if test "$2" = conftest.file || test $am_try -eq 2; then 6715 break 6716 fi 6717 # Just in case. 6718 sleep 1 6719 am_has_slept=yes 6720 done 6721 test "$2" = conftest.file 6722 ) 6723then 6724 # Ok. 6725 : 6726else 6727 as_fn_error $? "newly created file is older than distributed files! 6728Check your system clock" "$LINENO" 5 6729fi 6730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6731printf "%s\n" "yes" >&6; } 6732# If we didn't sleep, we still need to ensure time stamps of config.status and 6733# generated files are strictly newer. 6734am_sleep_pid= 6735if grep 'slept: no' conftest.file >/dev/null 2>&1; then 6736 ( sleep 1 ) & 6737 am_sleep_pid=$! 6738fi 6739 6740rm -f conftest.file 6741 6742test "$program_prefix" != NONE && 6743 program_transform_name="s&^&$program_prefix&;$program_transform_name" 6744# Use a double $ so make ignores it. 6745test "$program_suffix" != NONE && 6746 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 6747# Double any \ or $. 6748# By default was `s,x,x', remove it if useless. 6749ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 6750program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 6751 6752 6753 if test x"${MISSING+set}" != xset; then 6754 MISSING="\${SHELL} '$am_aux_dir/missing'" 6755fi 6756# Use eval to expand $SHELL 6757if eval "$MISSING --is-lightweight"; then 6758 am_missing_run="$MISSING " 6759else 6760 am_missing_run= 6761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 6762printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 6763fi 6764 6765if test x"${install_sh+set}" != xset; then 6766 case $am_aux_dir in 6767 *\ * | *\ *) 6768 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 6769 *) 6770 install_sh="\${SHELL} $am_aux_dir/install-sh" 6771 esac 6772fi 6773 6774# Installed binaries are usually stripped using 'strip' when the user 6775# run "make install-strip". However 'strip' might not be the right 6776# tool to use in cross-compilation environments, therefore Automake 6777# will honor the 'STRIP' environment variable to overrule this program. 6778if test "$cross_compiling" != no; then 6779 if test -n "$ac_tool_prefix"; then 6780 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6781set dummy ${ac_tool_prefix}strip; ac_word=$2 6782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6783printf %s "checking for $ac_word... " >&6; } 6784if test ${ac_cv_prog_STRIP+y} 6785then : 6786 printf %s "(cached) " >&6 6787else $as_nop 6788 if test -n "$STRIP"; then 6789 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6790else 6791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6792for as_dir in $PATH 6793do 6794 IFS=$as_save_IFS 6795 case $as_dir in #((( 6796 '') as_dir=./ ;; 6797 */) ;; 6798 *) as_dir=$as_dir/ ;; 6799 esac 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_STRIP="${ac_tool_prefix}strip" 6803 printf "%s\n" "$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 6812STRIP=$ac_cv_prog_STRIP 6813if test -n "$STRIP"; then 6814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6815printf "%s\n" "$STRIP" >&6; } 6816else 6817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6818printf "%s\n" "no" >&6; } 6819fi 6820 6821 6822fi 6823if test -z "$ac_cv_prog_STRIP"; then 6824 ac_ct_STRIP=$STRIP 6825 # Extract the first word of "strip", so it can be a program name with args. 6826set dummy strip; ac_word=$2 6827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6828printf %s "checking for $ac_word... " >&6; } 6829if test ${ac_cv_prog_ac_ct_STRIP+y} 6830then : 6831 printf %s "(cached) " >&6 6832else $as_nop 6833 if test -n "$ac_ct_STRIP"; then 6834 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6835else 6836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6837for as_dir in $PATH 6838do 6839 IFS=$as_save_IFS 6840 case $as_dir in #((( 6841 '') as_dir=./ ;; 6842 */) ;; 6843 *) as_dir=$as_dir/ ;; 6844 esac 6845 for ac_exec_ext in '' $ac_executable_extensions; do 6846 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6847 ac_cv_prog_ac_ct_STRIP="strip" 6848 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6849 break 2 6850 fi 6851done 6852 done 6853IFS=$as_save_IFS 6854 6855fi 6856fi 6857ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6858if test -n "$ac_ct_STRIP"; then 6859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6860printf "%s\n" "$ac_ct_STRIP" >&6; } 6861else 6862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6863printf "%s\n" "no" >&6; } 6864fi 6865 6866 if test "x$ac_ct_STRIP" = x; then 6867 STRIP=":" 6868 else 6869 case $cross_compiling:$ac_tool_warned in 6870yes:) 6871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6872printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6873ac_tool_warned=yes ;; 6874esac 6875 STRIP=$ac_ct_STRIP 6876 fi 6877else 6878 STRIP="$ac_cv_prog_STRIP" 6879fi 6880 6881fi 6882INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 6883 6884 6885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 6886printf %s "checking for a race-free mkdir -p... " >&6; } 6887if test -z "$MKDIR_P"; then 6888 if test ${ac_cv_path_mkdir+y} 6889then : 6890 printf %s "(cached) " >&6 6891else $as_nop 6892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6893for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 6894do 6895 IFS=$as_save_IFS 6896 case $as_dir in #((( 6897 '') as_dir=./ ;; 6898 */) ;; 6899 *) as_dir=$as_dir/ ;; 6900 esac 6901 for ac_prog in mkdir gmkdir; do 6902 for ac_exec_ext in '' $ac_executable_extensions; do 6903 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 6904 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 6905 'mkdir ('*'coreutils) '* | \ 6906 'BusyBox '* | \ 6907 'mkdir (fileutils) '4.1*) 6908 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 6909 break 3;; 6910 esac 6911 done 6912 done 6913 done 6914IFS=$as_save_IFS 6915 6916fi 6917 6918 test -d ./--version && rmdir ./--version 6919 if test ${ac_cv_path_mkdir+y}; then 6920 MKDIR_P="$ac_cv_path_mkdir -p" 6921 else 6922 # As a last resort, use the slow shell script. Don't cache a 6923 # value for MKDIR_P within a source directory, because that will 6924 # break other packages using the cache if that directory is 6925 # removed, or if the value is a relative name. 6926 MKDIR_P="$ac_install_sh -d" 6927 fi 6928fi 6929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 6930printf "%s\n" "$MKDIR_P" >&6; } 6931 6932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 6933printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 6934set x ${MAKE-make} 6935ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 6936if eval test \${ac_cv_prog_make_${ac_make}_set+y} 6937then : 6938 printf %s "(cached) " >&6 6939else $as_nop 6940 cat >conftest.make <<\_ACEOF 6941SHELL = /bin/sh 6942all: 6943 @echo '@@@%%%=$(MAKE)=@@@%%%' 6944_ACEOF 6945# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 6946case `${MAKE-make} -f conftest.make 2>/dev/null` in 6947 *@@@%%%=?*=@@@%%%*) 6948 eval ac_cv_prog_make_${ac_make}_set=yes;; 6949 *) 6950 eval ac_cv_prog_make_${ac_make}_set=no;; 6951esac 6952rm -f conftest.make 6953fi 6954if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 6955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6956printf "%s\n" "yes" >&6; } 6957 SET_MAKE= 6958else 6959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6960printf "%s\n" "no" >&6; } 6961 SET_MAKE="MAKE=${MAKE-make}" 6962fi 6963 6964rm -rf .tst 2>/dev/null 6965mkdir .tst 2>/dev/null 6966if test -d .tst; then 6967 am__leading_dot=. 6968else 6969 am__leading_dot=_ 6970fi 6971rmdir .tst 2>/dev/null 6972 6973DEPDIR="${am__leading_dot}deps" 6974 6975ac_config_commands="$ac_config_commands depfiles" 6976 6977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 6978printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 6979cat > confinc.mk << 'END' 6980am__doit: 6981 @echo this is the am__doit target >confinc.out 6982.PHONY: am__doit 6983END 6984am__include="#" 6985am__quote= 6986# BSD make does it like this. 6987echo '.include "confinc.mk" # ignored' > confmf.BSD 6988# Other make implementations (GNU, Solaris 10, AIX) do it like this. 6989echo 'include confinc.mk # ignored' > confmf.GNU 6990_am_result=no 6991for s in GNU BSD; do 6992 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 6993 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 6994 ac_status=$? 6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6996 (exit $ac_status); } 6997 case $?:`cat confinc.out 2>/dev/null` in #( 6998 '0:this is the am__doit target') : 6999 case $s in #( 7000 BSD) : 7001 am__include='.include' am__quote='"' ;; #( 7002 *) : 7003 am__include='include' am__quote='' ;; 7004esac ;; #( 7005 *) : 7006 ;; 7007esac 7008 if test "$am__include" != "#"; then 7009 _am_result="yes ($s style)" 7010 break 7011 fi 7012done 7013rm -f confinc.* confmf.* 7014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 7015printf "%s\n" "${_am_result}" >&6; } 7016 7017# Check whether --enable-dependency-tracking was given. 7018if test ${enable_dependency_tracking+y} 7019then : 7020 enableval=$enable_dependency_tracking; 7021fi 7022 7023if test "x$enable_dependency_tracking" != xno; then 7024 am_depcomp="$ac_aux_dir/depcomp" 7025 AMDEPBACKSLASH='\' 7026 am__nodep='_no' 7027fi 7028 if test "x$enable_dependency_tracking" != xno; then 7029 AMDEP_TRUE= 7030 AMDEP_FALSE='#' 7031else 7032 AMDEP_TRUE='#' 7033 AMDEP_FALSE= 7034fi 7035 7036 7037## --------------------------------------- ## 7038## Start of automake initialization code ## 7039## --------------------------------------- ## 7040 7041if test "`cd $srcdir && pwd`" != "`pwd`"; then 7042 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 7043 # is not polluted with repeated "-I." 7044 am__isrc=' -I$(srcdir)' 7045 # test to see if srcdir already configured 7046 if test -f $srcdir/config.status; then 7047 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 7048 fi 7049fi 7050 7051# test whether we have cygpath 7052if test -z "$CYGPATH_W"; then 7053 if (cygpath --version) >/dev/null 2>/dev/null; then 7054 CYGPATH_W='cygpath -w' 7055 else 7056 CYGPATH_W=echo 7057 fi 7058fi 7059 7060 7061# Define the identity of the package. 7062 PACKAGE='c-ares' 7063 VERSION='1.19.1' 7064 7065 7066printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 7067 7068 7069printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 7070 7071# Some tools Automake needs. 7072 7073ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 7074 7075 7076AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 7077 7078 7079AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 7080 7081 7082AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 7083 7084 7085MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 7086 7087# For better backward compatibility. To be removed once Automake 1.9.x 7088# dies out for good. For more background, see: 7089# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 7090# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 7091mkdir_p='$(MKDIR_P)' 7092 7093# We need awk for the "check" target (and possibly the TAP driver). The 7094# system "awk" is bad on some platforms. 7095# Always define AMTAR for backward compatibility. Yes, it's still used 7096# in the wild :-( We should find a proper way to deprecate it ... 7097AMTAR='$${TAR-tar}' 7098 7099 7100# We'll loop over all known methods to create a tar archive until one works. 7101_am_tools='gnutar pax cpio none' 7102 7103am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 7104 7105 7106 7107 7108 7109depcc="$CC" am_compiler_list= 7110 7111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 7112printf %s "checking dependency style of $depcc... " >&6; } 7113if test ${am_cv_CC_dependencies_compiler_type+y} 7114then : 7115 printf %s "(cached) " >&6 7116else $as_nop 7117 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 7118 # We make a subdir and do the tests there. Otherwise we can end up 7119 # making bogus files that we don't know about and never remove. For 7120 # instance it was reported that on HP-UX the gcc test will end up 7121 # making a dummy file named 'D' -- because '-MD' means "put the output 7122 # in D". 7123 rm -rf conftest.dir 7124 mkdir conftest.dir 7125 # Copy depcomp to subdir because otherwise we won't find it if we're 7126 # using a relative directory. 7127 cp "$am_depcomp" conftest.dir 7128 cd conftest.dir 7129 # We will build objects and dependencies in a subdirectory because 7130 # it helps to detect inapplicable dependency modes. For instance 7131 # both Tru64's cc and ICC support -MD to output dependencies as a 7132 # side effect of compilation, but ICC will put the dependencies in 7133 # the current directory while Tru64 will put them in the object 7134 # directory. 7135 mkdir sub 7136 7137 am_cv_CC_dependencies_compiler_type=none 7138 if test "$am_compiler_list" = ""; then 7139 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 7140 fi 7141 am__universal=false 7142 case " $depcc " in #( 7143 *\ -arch\ *\ -arch\ *) am__universal=true ;; 7144 esac 7145 7146 for depmode in $am_compiler_list; do 7147 # Setup a source with many dependencies, because some compilers 7148 # like to wrap large dependency lists on column 80 (with \), and 7149 # we should not choose a depcomp mode which is confused by this. 7150 # 7151 # We need to recreate these files for each test, as the compiler may 7152 # overwrite some of them when testing with obscure command lines. 7153 # This happens at least with the AIX C compiler. 7154 : > sub/conftest.c 7155 for i in 1 2 3 4 5 6; do 7156 echo '#include "conftst'$i'.h"' >> sub/conftest.c 7157 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 7158 # Solaris 10 /bin/sh. 7159 echo '/* dummy */' > sub/conftst$i.h 7160 done 7161 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 7162 7163 # We check with '-c' and '-o' for the sake of the "dashmstdout" 7164 # mode. It turns out that the SunPro C++ compiler does not properly 7165 # handle '-M -o', and we need to detect this. Also, some Intel 7166 # versions had trouble with output in subdirs. 7167 am__obj=sub/conftest.${OBJEXT-o} 7168 am__minus_obj="-o $am__obj" 7169 case $depmode in 7170 gcc) 7171 # This depmode causes a compiler race in universal mode. 7172 test "$am__universal" = false || continue 7173 ;; 7174 nosideeffect) 7175 # After this tag, mechanisms are not by side-effect, so they'll 7176 # only be used when explicitly requested. 7177 if test "x$enable_dependency_tracking" = xyes; then 7178 continue 7179 else 7180 break 7181 fi 7182 ;; 7183 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 7184 # This compiler won't grok '-c -o', but also, the minuso test has 7185 # not run yet. These depmodes are late enough in the game, and 7186 # so weak that their functioning should not be impacted. 7187 am__obj=conftest.${OBJEXT-o} 7188 am__minus_obj= 7189 ;; 7190 none) break ;; 7191 esac 7192 if depmode=$depmode \ 7193 source=sub/conftest.c object=$am__obj \ 7194 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 7195 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 7196 >/dev/null 2>conftest.err && 7197 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 7198 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 7199 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 7200 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 7201 # icc doesn't choke on unknown options, it will just issue warnings 7202 # or remarks (even with -Werror). So we grep stderr for any message 7203 # that says an option was ignored or not supported. 7204 # When given -MP, icc 7.0 and 7.1 complain thusly: 7205 # icc: Command line warning: ignoring option '-M'; no argument required 7206 # The diagnosis changed in icc 8.0: 7207 # icc: Command line remark: option '-MP' not supported 7208 if (grep 'ignoring option' conftest.err || 7209 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 7210 am_cv_CC_dependencies_compiler_type=$depmode 7211 break 7212 fi 7213 fi 7214 done 7215 7216 cd .. 7217 rm -rf conftest.dir 7218else 7219 am_cv_CC_dependencies_compiler_type=none 7220fi 7221 7222fi 7223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 7224printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 7225CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 7226 7227 if 7228 test "x$enable_dependency_tracking" != xno \ 7229 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 7230 am__fastdepCC_TRUE= 7231 am__fastdepCC_FALSE='#' 7232else 7233 am__fastdepCC_TRUE='#' 7234 am__fastdepCC_FALSE= 7235fi 7236 7237 7238depcc="$CXX" am_compiler_list= 7239 7240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 7241printf %s "checking dependency style of $depcc... " >&6; } 7242if test ${am_cv_CXX_dependencies_compiler_type+y} 7243then : 7244 printf %s "(cached) " >&6 7245else $as_nop 7246 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 7247 # We make a subdir and do the tests there. Otherwise we can end up 7248 # making bogus files that we don't know about and never remove. For 7249 # instance it was reported that on HP-UX the gcc test will end up 7250 # making a dummy file named 'D' -- because '-MD' means "put the output 7251 # in D". 7252 rm -rf conftest.dir 7253 mkdir conftest.dir 7254 # Copy depcomp to subdir because otherwise we won't find it if we're 7255 # using a relative directory. 7256 cp "$am_depcomp" conftest.dir 7257 cd conftest.dir 7258 # We will build objects and dependencies in a subdirectory because 7259 # it helps to detect inapplicable dependency modes. For instance 7260 # both Tru64's cc and ICC support -MD to output dependencies as a 7261 # side effect of compilation, but ICC will put the dependencies in 7262 # the current directory while Tru64 will put them in the object 7263 # directory. 7264 mkdir sub 7265 7266 am_cv_CXX_dependencies_compiler_type=none 7267 if test "$am_compiler_list" = ""; then 7268 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 7269 fi 7270 am__universal=false 7271 case " $depcc " in #( 7272 *\ -arch\ *\ -arch\ *) am__universal=true ;; 7273 esac 7274 7275 for depmode in $am_compiler_list; do 7276 # Setup a source with many dependencies, because some compilers 7277 # like to wrap large dependency lists on column 80 (with \), and 7278 # we should not choose a depcomp mode which is confused by this. 7279 # 7280 # We need to recreate these files for each test, as the compiler may 7281 # overwrite some of them when testing with obscure command lines. 7282 # This happens at least with the AIX C compiler. 7283 : > sub/conftest.c 7284 for i in 1 2 3 4 5 6; do 7285 echo '#include "conftst'$i'.h"' >> sub/conftest.c 7286 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 7287 # Solaris 10 /bin/sh. 7288 echo '/* dummy */' > sub/conftst$i.h 7289 done 7290 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 7291 7292 # We check with '-c' and '-o' for the sake of the "dashmstdout" 7293 # mode. It turns out that the SunPro C++ compiler does not properly 7294 # handle '-M -o', and we need to detect this. Also, some Intel 7295 # versions had trouble with output in subdirs. 7296 am__obj=sub/conftest.${OBJEXT-o} 7297 am__minus_obj="-o $am__obj" 7298 case $depmode in 7299 gcc) 7300 # This depmode causes a compiler race in universal mode. 7301 test "$am__universal" = false || continue 7302 ;; 7303 nosideeffect) 7304 # After this tag, mechanisms are not by side-effect, so they'll 7305 # only be used when explicitly requested. 7306 if test "x$enable_dependency_tracking" = xyes; then 7307 continue 7308 else 7309 break 7310 fi 7311 ;; 7312 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 7313 # This compiler won't grok '-c -o', but also, the minuso test has 7314 # not run yet. These depmodes are late enough in the game, and 7315 # so weak that their functioning should not be impacted. 7316 am__obj=conftest.${OBJEXT-o} 7317 am__minus_obj= 7318 ;; 7319 none) break ;; 7320 esac 7321 if depmode=$depmode \ 7322 source=sub/conftest.c object=$am__obj \ 7323 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 7324 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 7325 >/dev/null 2>conftest.err && 7326 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 7327 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 7328 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 7329 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 7330 # icc doesn't choke on unknown options, it will just issue warnings 7331 # or remarks (even with -Werror). So we grep stderr for any message 7332 # that says an option was ignored or not supported. 7333 # When given -MP, icc 7.0 and 7.1 complain thusly: 7334 # icc: Command line warning: ignoring option '-M'; no argument required 7335 # The diagnosis changed in icc 8.0: 7336 # icc: Command line remark: option '-MP' not supported 7337 if (grep 'ignoring option' conftest.err || 7338 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 7339 am_cv_CXX_dependencies_compiler_type=$depmode 7340 break 7341 fi 7342 fi 7343 done 7344 7345 cd .. 7346 rm -rf conftest.dir 7347else 7348 am_cv_CXX_dependencies_compiler_type=none 7349fi 7350 7351fi 7352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 7353printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; } 7354CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 7355 7356 if 7357 test "x$enable_dependency_tracking" != xno \ 7358 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 7359 am__fastdepCXX_TRUE= 7360 am__fastdepCXX_FALSE='#' 7361else 7362 am__fastdepCXX_TRUE='#' 7363 am__fastdepCXX_FALSE= 7364fi 7365 7366 7367# Variables for tags utilities; see am/tags.am 7368if test -z "$CTAGS"; then 7369 CTAGS=ctags 7370fi 7371 7372if test -z "$ETAGS"; then 7373 ETAGS=etags 7374fi 7375 7376if test -z "$CSCOPE"; then 7377 CSCOPE=cscope 7378fi 7379 7380 7381 7382# POSIX will say in a future version that running "rm -f" with no argument 7383# is OK; and we want to be able to make that assumption in our Makefile 7384# recipes. So use an aggressive probe to check that the usage we want is 7385# actually supported "in the wild" to an acceptable degree. 7386# See automake bug#10828. 7387# To make any issue more visible, cause the running configure to be aborted 7388# by default if the 'rm' program in use doesn't match our expectations; the 7389# user can still override this though. 7390if rm -f && rm -fr && rm -rf; then : OK; else 7391 cat >&2 <<'END' 7392Oops! 7393 7394Your 'rm' program seems unable to run without file operands specified 7395on the command line, even when the '-f' option is present. This is contrary 7396to the behaviour of most rm programs out there, and not conforming with 7397the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 7398 7399Please tell bug-automake@gnu.org about your system, including the value 7400of your $PATH and any error possibly output before this message. This 7401can help us improve future automake versions. 7402 7403END 7404 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 7405 echo 'Configuration will proceed anyway, since you have set the' >&2 7406 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 7407 echo >&2 7408 else 7409 cat >&2 <<'END' 7410Aborting the configuration process, to ensure you take notice of the issue. 7411 7412You can download and install GNU coreutils to get an 'rm' implementation 7413that behaves properly: <https://www.gnu.org/software/coreutils/>. 7414 7415If you want to complete the configuration process using your problematic 7416'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 7417to "yes", and re-run configure. 7418 7419END 7420 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 7421 fi 7422fi 7423 7424## ------------------------------------- ## 7425## End of automake initialization code ## 7426## ------------------------------------- ## 7427 7428 7429 7430 7431 7432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 7433printf %s "checking for grep that handles long lines and -e... " >&6; } 7434if test ${ac_cv_path_GREP+y} 7435then : 7436 printf %s "(cached) " >&6 7437else $as_nop 7438 if test -z "$GREP"; then 7439 ac_path_GREP_found=false 7440 # Loop through the user's path and test for each of PROGNAME-LIST 7441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7442for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7443do 7444 IFS=$as_save_IFS 7445 case $as_dir in #((( 7446 '') as_dir=./ ;; 7447 */) ;; 7448 *) as_dir=$as_dir/ ;; 7449 esac 7450 for ac_prog in grep ggrep 7451 do 7452 for ac_exec_ext in '' $ac_executable_extensions; do 7453 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 7454 as_fn_executable_p "$ac_path_GREP" || continue 7455# Check for GNU ac_path_GREP and select it if it is found. 7456 # Check for GNU $ac_path_GREP 7457case `"$ac_path_GREP" --version 2>&1` in 7458*GNU*) 7459 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 7460*) 7461 ac_count=0 7462 printf %s 0123456789 >"conftest.in" 7463 while : 7464 do 7465 cat "conftest.in" "conftest.in" >"conftest.tmp" 7466 mv "conftest.tmp" "conftest.in" 7467 cp "conftest.in" "conftest.nl" 7468 printf "%s\n" 'GREP' >> "conftest.nl" 7469 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 7470 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7471 as_fn_arith $ac_count + 1 && ac_count=$as_val 7472 if test $ac_count -gt ${ac_path_GREP_max-0}; then 7473 # Best one so far, save it but keep looking for a better one 7474 ac_cv_path_GREP="$ac_path_GREP" 7475 ac_path_GREP_max=$ac_count 7476 fi 7477 # 10*(2^10) chars as input seems more than enough 7478 test $ac_count -gt 10 && break 7479 done 7480 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7481esac 7482 7483 $ac_path_GREP_found && break 3 7484 done 7485 done 7486 done 7487IFS=$as_save_IFS 7488 if test -z "$ac_cv_path_GREP"; then 7489 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7490 fi 7491else 7492 ac_cv_path_GREP=$GREP 7493fi 7494 7495fi 7496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 7497printf "%s\n" "$ac_cv_path_GREP" >&6; } 7498 GREP="$ac_cv_path_GREP" 7499 7500 7501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 7502printf %s "checking for egrep... " >&6; } 7503if test ${ac_cv_path_EGREP+y} 7504then : 7505 printf %s "(cached) " >&6 7506else $as_nop 7507 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 7508 then ac_cv_path_EGREP="$GREP -E" 7509 else 7510 if test -z "$EGREP"; then 7511 ac_path_EGREP_found=false 7512 # Loop through the user's path and test for each of PROGNAME-LIST 7513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7514for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7515do 7516 IFS=$as_save_IFS 7517 case $as_dir in #((( 7518 '') as_dir=./ ;; 7519 */) ;; 7520 *) as_dir=$as_dir/ ;; 7521 esac 7522 for ac_prog in egrep 7523 do 7524 for ac_exec_ext in '' $ac_executable_extensions; do 7525 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 7526 as_fn_executable_p "$ac_path_EGREP" || continue 7527# Check for GNU ac_path_EGREP and select it if it is found. 7528 # Check for GNU $ac_path_EGREP 7529case `"$ac_path_EGREP" --version 2>&1` in 7530*GNU*) 7531 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 7532*) 7533 ac_count=0 7534 printf %s 0123456789 >"conftest.in" 7535 while : 7536 do 7537 cat "conftest.in" "conftest.in" >"conftest.tmp" 7538 mv "conftest.tmp" "conftest.in" 7539 cp "conftest.in" "conftest.nl" 7540 printf "%s\n" 'EGREP' >> "conftest.nl" 7541 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 7542 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7543 as_fn_arith $ac_count + 1 && ac_count=$as_val 7544 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 7545 # Best one so far, save it but keep looking for a better one 7546 ac_cv_path_EGREP="$ac_path_EGREP" 7547 ac_path_EGREP_max=$ac_count 7548 fi 7549 # 10*(2^10) chars as input seems more than enough 7550 test $ac_count -gt 10 && break 7551 done 7552 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7553esac 7554 7555 $ac_path_EGREP_found && break 3 7556 done 7557 done 7558 done 7559IFS=$as_save_IFS 7560 if test -z "$ac_cv_path_EGREP"; then 7561 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7562 fi 7563else 7564 ac_cv_path_EGREP=$EGREP 7565fi 7566 7567 fi 7568fi 7569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 7570printf "%s\n" "$ac_cv_path_EGREP" >&6; } 7571 EGREP="$ac_cv_path_EGREP" 7572 7573 7574 7575 7576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5 7577printf %s "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; } 7578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7579/* end confdefs.h. */ 7580 7581#ifdef _AIX 7582 yes_this_is_aix 7583#endif 7584 7585_ACEOF 7586if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7587 $EGREP "yes_this_is_aix" >/dev/null 2>&1 7588then : 7589 7590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7591printf "%s\n" "yes" >&6; } 7592 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 7593 7594 7595else $as_nop 7596 7597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7598printf "%s\n" "no" >&6; } 7599 7600fi 7601rm -rf conftest* 7602 7603 7604 7605 7606 # 7607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5 7608printf %s "checking if _THREAD_SAFE is already defined... " >&6; } 7609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7610/* end confdefs.h. */ 7611 7612 7613 7614int 7615main (void) 7616{ 7617 7618#ifdef _THREAD_SAFE 7619 int dummy=1; 7620#else 7621 force compilation error 7622#endif 7623 7624 ; 7625 return 0; 7626} 7627 7628_ACEOF 7629if ac_fn_c_try_compile "$LINENO" 7630then : 7631 7632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7633printf "%s\n" "yes" >&6; } 7634 tmp_thread_safe_initially_defined="yes" 7635 7636else $as_nop 7637 7638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7639printf "%s\n" "no" >&6; } 7640 tmp_thread_safe_initially_defined="no" 7641 7642fi 7643rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7644 # 7645 if test "$tmp_thread_safe_initially_defined" = "no"; then 7646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5 7647printf %s "checking if _THREAD_SAFE is actually needed... " >&6; } 7648 7649 case $host_os in 7650 aix[123].* | aix4.[012].*) 7651 tmp_need_thread_safe="no" 7652 ;; 7653 aix*) 7654 tmp_need_thread_safe="yes" 7655 ;; 7656 *) 7657 tmp_need_thread_safe="no" 7658 ;; 7659 esac 7660 7661 if test "$tmp_need_thread_safe" = "yes"; then 7662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7663printf "%s\n" "yes" >&6; } 7664 else 7665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7666printf "%s\n" "no" >&6; } 7667 fi 7668 fi 7669 # 7670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5 7671printf %s "checking if _THREAD_SAFE is onwards defined... " >&6; } 7672 if test "$tmp_thread_safe_initially_defined" = "yes" || 7673 test "$tmp_need_thread_safe" = "yes"; then 7674 7675 7676printf "%s\n" "#define NEED_THREAD_SAFE 1" >>confdefs.h 7677 7678cat >>confdefs.h <<_EOF 7679#ifndef _THREAD_SAFE 7680# define _THREAD_SAFE 7681#endif 7682_EOF 7683 7684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7685printf "%s\n" "yes" >&6; } 7686 else 7687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7688printf "%s\n" "no" >&6; } 7689 fi 7690 # 7691 7692 7693 # 7694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5 7695printf %s "checking if _REENTRANT is already defined... " >&6; } 7696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7697/* end confdefs.h. */ 7698 7699 7700 7701int 7702main (void) 7703{ 7704 7705#ifdef _REENTRANT 7706 int dummy=1; 7707#else 7708 force compilation error 7709#endif 7710 7711 ; 7712 return 0; 7713} 7714 7715_ACEOF 7716if ac_fn_c_try_compile "$LINENO" 7717then : 7718 7719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7720printf "%s\n" "yes" >&6; } 7721 tmp_reentrant_initially_defined="yes" 7722 7723else $as_nop 7724 7725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7726printf "%s\n" "no" >&6; } 7727 tmp_reentrant_initially_defined="no" 7728 7729fi 7730rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7731 # 7732 if test "$tmp_reentrant_initially_defined" = "no"; then 7733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5 7734printf %s "checking if _REENTRANT is actually needed... " >&6; } 7735 7736 case $host_os in 7737 solaris*) 7738 tmp_need_reentrant="yes" 7739 ;; 7740 *) 7741 tmp_need_reentrant="no" 7742 ;; 7743 esac 7744 7745 if test "$tmp_need_reentrant" = "no"; then 7746 7747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7748/* end confdefs.h. */ 7749 7750 7751#include <errno.h> 7752 7753int 7754main (void) 7755{ 7756 7757 if(0 != errno) 7758 return 1; 7759 7760 ; 7761 return 0; 7762} 7763 7764_ACEOF 7765if ac_fn_c_try_compile "$LINENO" 7766then : 7767 7768 tmp_errno="yes" 7769 7770else $as_nop 7771 7772 tmp_errno="no" 7773 7774fi 7775rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7776 if test "$tmp_errno" = "yes"; then 7777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7778/* end confdefs.h. */ 7779 7780 7781#include <errno.h> 7782 7783int 7784main (void) 7785{ 7786 7787#ifdef errno 7788 int dummy=1; 7789#else 7790 force compilation error 7791#endif 7792 7793 ; 7794 return 0; 7795} 7796 7797_ACEOF 7798if ac_fn_c_try_compile "$LINENO" 7799then : 7800 7801 tmp_errno="errno_macro_defined" 7802 7803else $as_nop 7804 7805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7806/* end confdefs.h. */ 7807 7808 7809#define _REENTRANT 7810#include <errno.h> 7811 7812int 7813main (void) 7814{ 7815 7816#ifdef errno 7817 int dummy=1; 7818#else 7819 force compilation error 7820#endif 7821 7822 ; 7823 return 0; 7824} 7825 7826_ACEOF 7827if ac_fn_c_try_compile "$LINENO" 7828then : 7829 7830 tmp_errno="errno_macro_needs_reentrant" 7831 tmp_need_reentrant="yes" 7832 7833fi 7834rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7835 7836fi 7837rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7838 fi 7839 7840 fi 7841 if test "$tmp_need_reentrant" = "no"; then 7842 7843 if test "$tmp_need_reentrant" = "no"; then 7844 7845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7846/* end confdefs.h. */ 7847 7848 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r. 7849 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7850#define gmtime_r innocuous_gmtime_r 7851 7852/* System header to define __stub macros and hopefully few prototypes, 7853 which can conflict with char gmtime_r (); below. */ 7854 7855#include <limits.h> 7856#undef gmtime_r 7857 7858/* Override any GCC internal prototype to avoid an error. 7859 Use char because int might match the return type of a GCC 7860 builtin and then its argument prototype would still apply. */ 7861#ifdef __cplusplus 7862extern "C" 7863#endif 7864char gmtime_r (); 7865/* The GNU C library defines this for functions which it implements 7866 to always fail with ENOSYS. Some functions are actually named 7867 something starting with __ and the normal name is an alias. */ 7868#if defined __stub_gmtime_r || defined __stub___gmtime_r 7869choke me 7870#endif 7871 7872int 7873main (void) 7874{ 7875return gmtime_r (); 7876 ; 7877 return 0; 7878} 7879 7880_ACEOF 7881if ac_fn_c_try_link "$LINENO" 7882then : 7883 7884 tmp_gmtime_r="yes" 7885 7886else $as_nop 7887 7888 tmp_gmtime_r="no" 7889 7890fi 7891rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7892 conftest$ac_exeext conftest.$ac_ext 7893 if test "$tmp_gmtime_r" = "yes"; then 7894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7895/* end confdefs.h. */ 7896 7897#include <sys/types.h> 7898#include <time.h> 7899 7900_ACEOF 7901if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7902 $EGREP "gmtime_r" >/dev/null 2>&1 7903then : 7904 7905 tmp_gmtime_r="proto_declared" 7906 7907else $as_nop 7908 7909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7910/* end confdefs.h. */ 7911 7912#define _REENTRANT 7913#include <sys/types.h> 7914#include <time.h> 7915 7916_ACEOF 7917if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7918 $EGREP "gmtime_r" >/dev/null 2>&1 7919then : 7920 7921 tmp_gmtime_r="proto_needs_reentrant" 7922 tmp_need_reentrant="yes" 7923 7924fi 7925rm -rf conftest* 7926 7927 7928fi 7929rm -rf conftest* 7930 7931 fi 7932 7933 fi 7934 if test "$tmp_need_reentrant" = "no"; then 7935 7936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7937/* end confdefs.h. */ 7938 7939 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r. 7940 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7941#define localtime_r innocuous_localtime_r 7942 7943/* System header to define __stub macros and hopefully few prototypes, 7944 which can conflict with char localtime_r (); below. */ 7945 7946#include <limits.h> 7947#undef localtime_r 7948 7949/* Override any GCC internal prototype to avoid an error. 7950 Use char because int might match the return type of a GCC 7951 builtin and then its argument prototype would still apply. */ 7952#ifdef __cplusplus 7953extern "C" 7954#endif 7955char localtime_r (); 7956/* The GNU C library defines this for functions which it implements 7957 to always fail with ENOSYS. Some functions are actually named 7958 something starting with __ and the normal name is an alias. */ 7959#if defined __stub_localtime_r || defined __stub___localtime_r 7960choke me 7961#endif 7962 7963int 7964main (void) 7965{ 7966return localtime_r (); 7967 ; 7968 return 0; 7969} 7970 7971_ACEOF 7972if ac_fn_c_try_link "$LINENO" 7973then : 7974 7975 tmp_localtime_r="yes" 7976 7977else $as_nop 7978 7979 tmp_localtime_r="no" 7980 7981fi 7982rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7983 conftest$ac_exeext conftest.$ac_ext 7984 if test "$tmp_localtime_r" = "yes"; then 7985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7986/* end confdefs.h. */ 7987 7988#include <sys/types.h> 7989#include <time.h> 7990 7991_ACEOF 7992if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7993 $EGREP "localtime_r" >/dev/null 2>&1 7994then : 7995 7996 tmp_localtime_r="proto_declared" 7997 7998else $as_nop 7999 8000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8001/* end confdefs.h. */ 8002 8003#define _REENTRANT 8004#include <sys/types.h> 8005#include <time.h> 8006 8007_ACEOF 8008if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8009 $EGREP "localtime_r" >/dev/null 2>&1 8010then : 8011 8012 tmp_localtime_r="proto_needs_reentrant" 8013 tmp_need_reentrant="yes" 8014 8015fi 8016rm -rf conftest* 8017 8018 8019fi 8020rm -rf conftest* 8021 8022 fi 8023 8024 fi 8025 if test "$tmp_need_reentrant" = "no"; then 8026 8027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8028/* end confdefs.h. */ 8029 8030 /* Define strerror_r to an innocuous variant, in case <limits.h> declares strerror_r. 8031 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8032#define strerror_r innocuous_strerror_r 8033 8034/* System header to define __stub macros and hopefully few prototypes, 8035 which can conflict with char strerror_r (); below. */ 8036 8037#include <limits.h> 8038#undef strerror_r 8039 8040/* Override any GCC internal prototype to avoid an error. 8041 Use char because int might match the return type of a GCC 8042 builtin and then its argument prototype would still apply. */ 8043#ifdef __cplusplus 8044extern "C" 8045#endif 8046char strerror_r (); 8047/* The GNU C library defines this for functions which it implements 8048 to always fail with ENOSYS. Some functions are actually named 8049 something starting with __ and the normal name is an alias. */ 8050#if defined __stub_strerror_r || defined __stub___strerror_r 8051choke me 8052#endif 8053 8054int 8055main (void) 8056{ 8057return strerror_r (); 8058 ; 8059 return 0; 8060} 8061 8062_ACEOF 8063if ac_fn_c_try_link "$LINENO" 8064then : 8065 8066 tmp_strerror_r="yes" 8067 8068else $as_nop 8069 8070 tmp_strerror_r="no" 8071 8072fi 8073rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8074 conftest$ac_exeext conftest.$ac_ext 8075 if test "$tmp_strerror_r" = "yes"; then 8076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8077/* end confdefs.h. */ 8078 8079#include <sys/types.h> 8080#include <string.h> 8081 8082_ACEOF 8083if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8084 $EGREP "strerror_r" >/dev/null 2>&1 8085then : 8086 8087 tmp_strerror_r="proto_declared" 8088 8089else $as_nop 8090 8091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8092/* end confdefs.h. */ 8093 8094#define _REENTRANT 8095#include <sys/types.h> 8096#include <string.h> 8097 8098_ACEOF 8099if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8100 $EGREP "strerror_r" >/dev/null 2>&1 8101then : 8102 8103 tmp_strerror_r="proto_needs_reentrant" 8104 tmp_need_reentrant="yes" 8105 8106fi 8107rm -rf conftest* 8108 8109 8110fi 8111rm -rf conftest* 8112 8113 fi 8114 8115 fi 8116 if test "$tmp_need_reentrant" = "no"; then 8117 8118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8119/* end confdefs.h. */ 8120 8121 /* Define strtok_r to an innocuous variant, in case <limits.h> declares strtok_r. 8122 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8123#define strtok_r innocuous_strtok_r 8124 8125/* System header to define __stub macros and hopefully few prototypes, 8126 which can conflict with char strtok_r (); below. */ 8127 8128#include <limits.h> 8129#undef strtok_r 8130 8131/* Override any GCC internal prototype to avoid an error. 8132 Use char because int might match the return type of a GCC 8133 builtin and then its argument prototype would still apply. */ 8134#ifdef __cplusplus 8135extern "C" 8136#endif 8137char strtok_r (); 8138/* The GNU C library defines this for functions which it implements 8139 to always fail with ENOSYS. Some functions are actually named 8140 something starting with __ and the normal name is an alias. */ 8141#if defined __stub_strtok_r || defined __stub___strtok_r 8142choke me 8143#endif 8144 8145int 8146main (void) 8147{ 8148return strtok_r (); 8149 ; 8150 return 0; 8151} 8152 8153_ACEOF 8154if ac_fn_c_try_link "$LINENO" 8155then : 8156 8157 tmp_strtok_r="yes" 8158 8159else $as_nop 8160 8161 tmp_strtok_r="no" 8162 8163fi 8164rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8165 conftest$ac_exeext conftest.$ac_ext 8166 if test "$tmp_strtok_r" = "yes"; then 8167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8168/* end confdefs.h. */ 8169 8170#include <sys/types.h> 8171#include <string.h> 8172 8173_ACEOF 8174if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8175 $EGREP "strtok_r" >/dev/null 2>&1 8176then : 8177 8178 tmp_strtok_r="proto_declared" 8179 8180else $as_nop 8181 8182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8183/* end confdefs.h. */ 8184 8185#define _REENTRANT 8186#include <sys/types.h> 8187#include <string.h> 8188 8189_ACEOF 8190if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8191 $EGREP "strtok_r" >/dev/null 2>&1 8192then : 8193 8194 tmp_strtok_r="proto_needs_reentrant" 8195 tmp_need_reentrant="yes" 8196 8197fi 8198rm -rf conftest* 8199 8200 8201fi 8202rm -rf conftest* 8203 8204 fi 8205 8206 fi 8207 if test "$tmp_need_reentrant" = "no"; then 8208 8209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8210/* end confdefs.h. */ 8211 8212 /* Define inet_ntoa_r to an innocuous variant, in case <limits.h> declares inet_ntoa_r. 8213 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8214#define inet_ntoa_r innocuous_inet_ntoa_r 8215 8216/* System header to define __stub macros and hopefully few prototypes, 8217 which can conflict with char inet_ntoa_r (); below. */ 8218 8219#include <limits.h> 8220#undef inet_ntoa_r 8221 8222/* Override any GCC internal prototype to avoid an error. 8223 Use char because int might match the return type of a GCC 8224 builtin and then its argument prototype would still apply. */ 8225#ifdef __cplusplus 8226extern "C" 8227#endif 8228char inet_ntoa_r (); 8229/* The GNU C library defines this for functions which it implements 8230 to always fail with ENOSYS. Some functions are actually named 8231 something starting with __ and the normal name is an alias. */ 8232#if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r 8233choke me 8234#endif 8235 8236int 8237main (void) 8238{ 8239return inet_ntoa_r (); 8240 ; 8241 return 0; 8242} 8243 8244_ACEOF 8245if ac_fn_c_try_link "$LINENO" 8246then : 8247 8248 tmp_inet_ntoa_r="yes" 8249 8250else $as_nop 8251 8252 tmp_inet_ntoa_r="no" 8253 8254fi 8255rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8256 conftest$ac_exeext conftest.$ac_ext 8257 if test "$tmp_inet_ntoa_r" = "yes"; then 8258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8259/* end confdefs.h. */ 8260 8261#include <sys/types.h> 8262#include <sys/socket.h> 8263#include <netinet/in.h> 8264#include <arpa/inet.h> 8265 8266_ACEOF 8267if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8268 $EGREP "inet_ntoa_r" >/dev/null 2>&1 8269then : 8270 8271 tmp_inet_ntoa_r="proto_declared" 8272 8273else $as_nop 8274 8275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8276/* end confdefs.h. */ 8277 8278#define _REENTRANT 8279#include <sys/types.h> 8280#include <sys/socket.h> 8281#include <netinet/in.h> 8282#include <arpa/inet.h> 8283 8284_ACEOF 8285if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8286 $EGREP "inet_ntoa_r" >/dev/null 2>&1 8287then : 8288 8289 tmp_inet_ntoa_r="proto_needs_reentrant" 8290 tmp_need_reentrant="yes" 8291 8292fi 8293rm -rf conftest* 8294 8295 8296fi 8297rm -rf conftest* 8298 8299 fi 8300 8301 fi 8302 if test "$tmp_need_reentrant" = "no"; then 8303 8304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8305/* end confdefs.h. */ 8306 8307 /* Define gethostbyaddr_r to an innocuous variant, in case <limits.h> declares gethostbyaddr_r. 8308 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8309#define gethostbyaddr_r innocuous_gethostbyaddr_r 8310 8311/* System header to define __stub macros and hopefully few prototypes, 8312 which can conflict with char gethostbyaddr_r (); below. */ 8313 8314#include <limits.h> 8315#undef gethostbyaddr_r 8316 8317/* Override any GCC internal prototype to avoid an error. 8318 Use char because int might match the return type of a GCC 8319 builtin and then its argument prototype would still apply. */ 8320#ifdef __cplusplus 8321extern "C" 8322#endif 8323char gethostbyaddr_r (); 8324/* The GNU C library defines this for functions which it implements 8325 to always fail with ENOSYS. Some functions are actually named 8326 something starting with __ and the normal name is an alias. */ 8327#if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r 8328choke me 8329#endif 8330 8331int 8332main (void) 8333{ 8334return gethostbyaddr_r (); 8335 ; 8336 return 0; 8337} 8338 8339_ACEOF 8340if ac_fn_c_try_link "$LINENO" 8341then : 8342 8343 tmp_gethostbyaddr_r="yes" 8344 8345else $as_nop 8346 8347 tmp_gethostbyaddr_r="no" 8348 8349fi 8350rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8351 conftest$ac_exeext conftest.$ac_ext 8352 if test "$tmp_gethostbyaddr_r" = "yes"; then 8353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8354/* end confdefs.h. */ 8355 8356#include <sys/types.h> 8357#include <netdb.h> 8358 8359_ACEOF 8360if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8361 $EGREP "gethostbyaddr_r" >/dev/null 2>&1 8362then : 8363 8364 tmp_gethostbyaddr_r="proto_declared" 8365 8366else $as_nop 8367 8368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8369/* end confdefs.h. */ 8370 8371#define _REENTRANT 8372#include <sys/types.h> 8373#include <netdb.h> 8374 8375_ACEOF 8376if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8377 $EGREP "gethostbyaddr_r" >/dev/null 2>&1 8378then : 8379 8380 tmp_gethostbyaddr_r="proto_needs_reentrant" 8381 tmp_need_reentrant="yes" 8382 8383fi 8384rm -rf conftest* 8385 8386 8387fi 8388rm -rf conftest* 8389 8390 fi 8391 8392 fi 8393 if test "$tmp_need_reentrant" = "no"; then 8394 8395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8396/* end confdefs.h. */ 8397 8398 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r. 8399 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8400#define gethostbyname_r innocuous_gethostbyname_r 8401 8402/* System header to define __stub macros and hopefully few prototypes, 8403 which can conflict with char gethostbyname_r (); below. */ 8404 8405#include <limits.h> 8406#undef gethostbyname_r 8407 8408/* Override any GCC internal prototype to avoid an error. 8409 Use char because int might match the return type of a GCC 8410 builtin and then its argument prototype would still apply. */ 8411#ifdef __cplusplus 8412extern "C" 8413#endif 8414char gethostbyname_r (); 8415/* The GNU C library defines this for functions which it implements 8416 to always fail with ENOSYS. Some functions are actually named 8417 something starting with __ and the normal name is an alias. */ 8418#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r 8419choke me 8420#endif 8421 8422int 8423main (void) 8424{ 8425return gethostbyname_r (); 8426 ; 8427 return 0; 8428} 8429 8430_ACEOF 8431if ac_fn_c_try_link "$LINENO" 8432then : 8433 8434 tmp_gethostbyname_r="yes" 8435 8436else $as_nop 8437 8438 tmp_gethostbyname_r="no" 8439 8440fi 8441rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8442 conftest$ac_exeext conftest.$ac_ext 8443 if test "$tmp_gethostbyname_r" = "yes"; then 8444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8445/* end confdefs.h. */ 8446 8447#include <sys/types.h> 8448#include <netdb.h> 8449 8450_ACEOF 8451if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8452 $EGREP "gethostbyname_r" >/dev/null 2>&1 8453then : 8454 8455 tmp_gethostbyname_r="proto_declared" 8456 8457else $as_nop 8458 8459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8460/* end confdefs.h. */ 8461 8462#define _REENTRANT 8463#include <sys/types.h> 8464#include <netdb.h> 8465 8466_ACEOF 8467if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8468 $EGREP "gethostbyname_r" >/dev/null 2>&1 8469then : 8470 8471 tmp_gethostbyname_r="proto_needs_reentrant" 8472 tmp_need_reentrant="yes" 8473 8474fi 8475rm -rf conftest* 8476 8477 8478fi 8479rm -rf conftest* 8480 8481 fi 8482 8483 fi 8484 if test "$tmp_need_reentrant" = "no"; then 8485 8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8487/* end confdefs.h. */ 8488 8489 /* Define getprotobyname_r to an innocuous variant, in case <limits.h> declares getprotobyname_r. 8490 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8491#define getprotobyname_r innocuous_getprotobyname_r 8492 8493/* System header to define __stub macros and hopefully few prototypes, 8494 which can conflict with char getprotobyname_r (); below. */ 8495 8496#include <limits.h> 8497#undef getprotobyname_r 8498 8499/* Override any GCC internal prototype to avoid an error. 8500 Use char because int might match the return type of a GCC 8501 builtin and then its argument prototype would still apply. */ 8502#ifdef __cplusplus 8503extern "C" 8504#endif 8505char getprotobyname_r (); 8506/* The GNU C library defines this for functions which it implements 8507 to always fail with ENOSYS. Some functions are actually named 8508 something starting with __ and the normal name is an alias. */ 8509#if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r 8510choke me 8511#endif 8512 8513int 8514main (void) 8515{ 8516return getprotobyname_r (); 8517 ; 8518 return 0; 8519} 8520 8521_ACEOF 8522if ac_fn_c_try_link "$LINENO" 8523then : 8524 8525 tmp_getprotobyname_r="yes" 8526 8527else $as_nop 8528 8529 tmp_getprotobyname_r="no" 8530 8531fi 8532rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8533 conftest$ac_exeext conftest.$ac_ext 8534 if test "$tmp_getprotobyname_r" = "yes"; then 8535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8536/* end confdefs.h. */ 8537 8538#include <sys/types.h> 8539#include <netdb.h> 8540 8541_ACEOF 8542if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8543 $EGREP "getprotobyname_r" >/dev/null 2>&1 8544then : 8545 8546 tmp_getprotobyname_r="proto_declared" 8547 8548else $as_nop 8549 8550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8551/* end confdefs.h. */ 8552 8553#define _REENTRANT 8554#include <sys/types.h> 8555#include <netdb.h> 8556 8557_ACEOF 8558if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8559 $EGREP "getprotobyname_r" >/dev/null 2>&1 8560then : 8561 8562 tmp_getprotobyname_r="proto_needs_reentrant" 8563 tmp_need_reentrant="yes" 8564 8565fi 8566rm -rf conftest* 8567 8568 8569fi 8570rm -rf conftest* 8571 8572 fi 8573 8574 fi 8575 if test "$tmp_need_reentrant" = "no"; then 8576 8577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8578/* end confdefs.h. */ 8579 8580 /* Define getservbyport_r to an innocuous variant, in case <limits.h> declares getservbyport_r. 8581 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8582#define getservbyport_r innocuous_getservbyport_r 8583 8584/* System header to define __stub macros and hopefully few prototypes, 8585 which can conflict with char getservbyport_r (); below. */ 8586 8587#include <limits.h> 8588#undef getservbyport_r 8589 8590/* Override any GCC internal prototype to avoid an error. 8591 Use char because int might match the return type of a GCC 8592 builtin and then its argument prototype would still apply. */ 8593#ifdef __cplusplus 8594extern "C" 8595#endif 8596char getservbyport_r (); 8597/* The GNU C library defines this for functions which it implements 8598 to always fail with ENOSYS. Some functions are actually named 8599 something starting with __ and the normal name is an alias. */ 8600#if defined __stub_getservbyport_r || defined __stub___getservbyport_r 8601choke me 8602#endif 8603 8604int 8605main (void) 8606{ 8607return getservbyport_r (); 8608 ; 8609 return 0; 8610} 8611 8612_ACEOF 8613if ac_fn_c_try_link "$LINENO" 8614then : 8615 8616 tmp_getservbyport_r="yes" 8617 8618else $as_nop 8619 8620 tmp_getservbyport_r="no" 8621 8622fi 8623rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8624 conftest$ac_exeext conftest.$ac_ext 8625 if test "$tmp_getservbyport_r" = "yes"; then 8626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8627/* end confdefs.h. */ 8628 8629#include <sys/types.h> 8630#include <netdb.h> 8631 8632_ACEOF 8633if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8634 $EGREP "getservbyport_r" >/dev/null 2>&1 8635then : 8636 8637 tmp_getservbyport_r="proto_declared" 8638 8639else $as_nop 8640 8641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8642/* end confdefs.h. */ 8643 8644#define _REENTRANT 8645#include <sys/types.h> 8646#include <netdb.h> 8647 8648_ACEOF 8649if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8650 $EGREP "getservbyport_r" >/dev/null 2>&1 8651then : 8652 8653 tmp_getservbyport_r="proto_needs_reentrant" 8654 tmp_need_reentrant="yes" 8655 8656fi 8657rm -rf conftest* 8658 8659 8660fi 8661rm -rf conftest* 8662 8663 fi 8664 8665 fi 8666 8667 fi 8668 if test "$tmp_need_reentrant" = "yes"; then 8669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8670printf "%s\n" "yes" >&6; } 8671 else 8672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8673printf "%s\n" "no" >&6; } 8674 fi 8675 fi 8676 # 8677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5 8678printf %s "checking if _REENTRANT is onwards defined... " >&6; } 8679 if test "$tmp_reentrant_initially_defined" = "yes" || 8680 test "$tmp_need_reentrant" = "yes"; then 8681 8682 8683printf "%s\n" "#define NEED_REENTRANT 1" >>confdefs.h 8684 8685cat >>confdefs.h <<_EOF 8686#ifndef _REENTRANT 8687# define _REENTRANT 8688#endif 8689_EOF 8690 8691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8692printf "%s\n" "yes" >&6; } 8693 else 8694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8695printf "%s\n" "no" >&6; } 8696 fi 8697 # 8698 8699 8700# Check whether --enable-largefile was given. 8701if test ${enable_largefile+y} 8702then : 8703 enableval=$enable_largefile; 8704fi 8705 8706if test "$enable_largefile" != no; then 8707 8708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 8709printf %s "checking for special C compiler options needed for large files... " >&6; } 8710if test ${ac_cv_sys_largefile_CC+y} 8711then : 8712 printf %s "(cached) " >&6 8713else $as_nop 8714 ac_cv_sys_largefile_CC=no 8715 if test "$GCC" != yes; then 8716 ac_save_CC=$CC 8717 while :; do 8718 # IRIX 6.2 and later do not support large files by default, 8719 # so use the C compiler's -n32 option if that helps. 8720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8721/* end confdefs.h. */ 8722#include <sys/types.h> 8723 /* Check that off_t can represent 2**63 - 1 correctly. 8724 We can't simply define LARGE_OFF_T to be 9223372036854775807, 8725 since some C++ compilers masquerading as C compilers 8726 incorrectly reject 9223372036854775807. */ 8727#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 8728 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 8729 && LARGE_OFF_T % 2147483647 == 1) 8730 ? 1 : -1]; 8731int 8732main (void) 8733{ 8734 8735 ; 8736 return 0; 8737} 8738_ACEOF 8739 if ac_fn_c_try_compile "$LINENO" 8740then : 8741 break 8742fi 8743rm -f core conftest.err conftest.$ac_objext conftest.beam 8744 CC="$CC -n32" 8745 if ac_fn_c_try_compile "$LINENO" 8746then : 8747 ac_cv_sys_largefile_CC=' -n32'; break 8748fi 8749rm -f core conftest.err conftest.$ac_objext conftest.beam 8750 break 8751 done 8752 CC=$ac_save_CC 8753 rm -f conftest.$ac_ext 8754 fi 8755fi 8756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 8757printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } 8758 if test "$ac_cv_sys_largefile_CC" != no; then 8759 CC=$CC$ac_cv_sys_largefile_CC 8760 fi 8761 8762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 8763printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 8764if test ${ac_cv_sys_file_offset_bits+y} 8765then : 8766 printf %s "(cached) " >&6 8767else $as_nop 8768 while :; do 8769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8770/* end confdefs.h. */ 8771#include <sys/types.h> 8772 /* Check that off_t can represent 2**63 - 1 correctly. 8773 We can't simply define LARGE_OFF_T to be 9223372036854775807, 8774 since some C++ compilers masquerading as C compilers 8775 incorrectly reject 9223372036854775807. */ 8776#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 8777 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 8778 && LARGE_OFF_T % 2147483647 == 1) 8779 ? 1 : -1]; 8780int 8781main (void) 8782{ 8783 8784 ; 8785 return 0; 8786} 8787_ACEOF 8788if ac_fn_c_try_compile "$LINENO" 8789then : 8790 ac_cv_sys_file_offset_bits=no; break 8791fi 8792rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8794/* end confdefs.h. */ 8795#define _FILE_OFFSET_BITS 64 8796#include <sys/types.h> 8797 /* Check that off_t can represent 2**63 - 1 correctly. 8798 We can't simply define LARGE_OFF_T to be 9223372036854775807, 8799 since some C++ compilers masquerading as C compilers 8800 incorrectly reject 9223372036854775807. */ 8801#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 8802 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 8803 && LARGE_OFF_T % 2147483647 == 1) 8804 ? 1 : -1]; 8805int 8806main (void) 8807{ 8808 8809 ; 8810 return 0; 8811} 8812_ACEOF 8813if ac_fn_c_try_compile "$LINENO" 8814then : 8815 ac_cv_sys_file_offset_bits=64; break 8816fi 8817rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8818 ac_cv_sys_file_offset_bits=unknown 8819 break 8820done 8821fi 8822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 8823printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } 8824case $ac_cv_sys_file_offset_bits in #( 8825 no | unknown) ;; 8826 *) 8827printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h 8828;; 8829esac 8830rm -rf conftest* 8831 if test $ac_cv_sys_file_offset_bits = unknown; then 8832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 8833printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } 8834if test ${ac_cv_sys_large_files+y} 8835then : 8836 printf %s "(cached) " >&6 8837else $as_nop 8838 while :; do 8839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8840/* end confdefs.h. */ 8841#include <sys/types.h> 8842 /* Check that off_t can represent 2**63 - 1 correctly. 8843 We can't simply define LARGE_OFF_T to be 9223372036854775807, 8844 since some C++ compilers masquerading as C compilers 8845 incorrectly reject 9223372036854775807. */ 8846#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 8847 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 8848 && LARGE_OFF_T % 2147483647 == 1) 8849 ? 1 : -1]; 8850int 8851main (void) 8852{ 8853 8854 ; 8855 return 0; 8856} 8857_ACEOF 8858if ac_fn_c_try_compile "$LINENO" 8859then : 8860 ac_cv_sys_large_files=no; break 8861fi 8862rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8864/* end confdefs.h. */ 8865#define _LARGE_FILES 1 8866#include <sys/types.h> 8867 /* Check that off_t can represent 2**63 - 1 correctly. 8868 We can't simply define LARGE_OFF_T to be 9223372036854775807, 8869 since some C++ compilers masquerading as C compilers 8870 incorrectly reject 9223372036854775807. */ 8871#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 8872 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 8873 && LARGE_OFF_T % 2147483647 == 1) 8874 ? 1 : -1]; 8875int 8876main (void) 8877{ 8878 8879 ; 8880 return 0; 8881} 8882_ACEOF 8883if ac_fn_c_try_compile "$LINENO" 8884then : 8885 ac_cv_sys_large_files=1; break 8886fi 8887rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8888 ac_cv_sys_large_files=unknown 8889 break 8890done 8891fi 8892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 8893printf "%s\n" "$ac_cv_sys_large_files" >&6; } 8894case $ac_cv_sys_large_files in #( 8895 no | unknown) ;; 8896 *) 8897printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h 8898;; 8899esac 8900rm -rf conftest* 8901 fi 8902fi 8903 8904 8905case $host_os in 8906 solaris*) 8907 8908printf "%s\n" "#define ETC_INET 1" >>confdefs.h 8909 8910 ;; 8911esac 8912 8913case `pwd` in 8914 *\ * | *\ *) 8915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 8916printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 8917esac 8918 8919 8920 8921macro_version='2.4.7' 8922macro_revision='2.4.7' 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937ltmain=$ac_aux_dir/ltmain.sh 8938 8939# Backslashify metacharacters that are still active within 8940# double-quoted strings. 8941sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 8942 8943# Same as above, but do not quote variable references. 8944double_quote_subst='s/\(["`\\]\)/\\\1/g' 8945 8946# Sed substitution to delay expansion of an escaped shell variable in a 8947# double_quote_subst'ed string. 8948delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 8949 8950# Sed substitution to delay expansion of an escaped single quote. 8951delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 8952 8953# Sed substitution to avoid accidental globbing in evaled expressions 8954no_glob_subst='s/\*/\\\*/g' 8955 8956ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 8957ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 8958ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 8959 8960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 8961printf %s "checking how to print strings... " >&6; } 8962# Test print first, because it will be a builtin if present. 8963if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 8964 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 8965 ECHO='print -r --' 8966elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 8967 ECHO='printf %s\n' 8968else 8969 # Use this function as a fallback that always works. 8970 func_fallback_echo () 8971 { 8972 eval 'cat <<_LTECHO_EOF 8973$1 8974_LTECHO_EOF' 8975 } 8976 ECHO='func_fallback_echo' 8977fi 8978 8979# func_echo_all arg... 8980# Invoke $ECHO with all args, space-separated. 8981func_echo_all () 8982{ 8983 $ECHO "" 8984} 8985 8986case $ECHO in 8987 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 8988printf "%s\n" "printf" >&6; } ;; 8989 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 8990printf "%s\n" "print -r" >&6; } ;; 8991 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 8992printf "%s\n" "cat" >&6; } ;; 8993esac 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 9009printf %s "checking for a sed that does not truncate output... " >&6; } 9010if test ${ac_cv_path_SED+y} 9011then : 9012 printf %s "(cached) " >&6 9013else $as_nop 9014 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 9015 for ac_i in 1 2 3 4 5 6 7; do 9016 ac_script="$ac_script$as_nl$ac_script" 9017 done 9018 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 9019 { ac_script=; unset ac_script;} 9020 if test -z "$SED"; then 9021 ac_path_SED_found=false 9022 # Loop through the user's path and test for each of PROGNAME-LIST 9023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9024for as_dir in $PATH 9025do 9026 IFS=$as_save_IFS 9027 case $as_dir in #((( 9028 '') as_dir=./ ;; 9029 */) ;; 9030 *) as_dir=$as_dir/ ;; 9031 esac 9032 for ac_prog in sed gsed 9033 do 9034 for ac_exec_ext in '' $ac_executable_extensions; do 9035 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 9036 as_fn_executable_p "$ac_path_SED" || continue 9037# Check for GNU ac_path_SED and select it if it is found. 9038 # Check for GNU $ac_path_SED 9039case `"$ac_path_SED" --version 2>&1` in 9040*GNU*) 9041 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 9042*) 9043 ac_count=0 9044 printf %s 0123456789 >"conftest.in" 9045 while : 9046 do 9047 cat "conftest.in" "conftest.in" >"conftest.tmp" 9048 mv "conftest.tmp" "conftest.in" 9049 cp "conftest.in" "conftest.nl" 9050 printf "%s\n" '' >> "conftest.nl" 9051 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 9052 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 9053 as_fn_arith $ac_count + 1 && ac_count=$as_val 9054 if test $ac_count -gt ${ac_path_SED_max-0}; then 9055 # Best one so far, save it but keep looking for a better one 9056 ac_cv_path_SED="$ac_path_SED" 9057 ac_path_SED_max=$ac_count 9058 fi 9059 # 10*(2^10) chars as input seems more than enough 9060 test $ac_count -gt 10 && break 9061 done 9062 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 9063esac 9064 9065 $ac_path_SED_found && break 3 9066 done 9067 done 9068 done 9069IFS=$as_save_IFS 9070 if test -z "$ac_cv_path_SED"; then 9071 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 9072 fi 9073else 9074 ac_cv_path_SED=$SED 9075fi 9076 9077fi 9078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 9079printf "%s\n" "$ac_cv_path_SED" >&6; } 9080 SED="$ac_cv_path_SED" 9081 rm -f conftest.sed 9082 9083test -z "$SED" && SED=sed 9084Xsed="$SED -e 1s/^X//" 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 9097printf %s "checking for fgrep... " >&6; } 9098if test ${ac_cv_path_FGREP+y} 9099then : 9100 printf %s "(cached) " >&6 9101else $as_nop 9102 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 9103 then ac_cv_path_FGREP="$GREP -F" 9104 else 9105 if test -z "$FGREP"; then 9106 ac_path_FGREP_found=false 9107 # Loop through the user's path and test for each of PROGNAME-LIST 9108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9109for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 9110do 9111 IFS=$as_save_IFS 9112 case $as_dir in #((( 9113 '') as_dir=./ ;; 9114 */) ;; 9115 *) as_dir=$as_dir/ ;; 9116 esac 9117 for ac_prog in fgrep 9118 do 9119 for ac_exec_ext in '' $ac_executable_extensions; do 9120 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 9121 as_fn_executable_p "$ac_path_FGREP" || continue 9122# Check for GNU ac_path_FGREP and select it if it is found. 9123 # Check for GNU $ac_path_FGREP 9124case `"$ac_path_FGREP" --version 2>&1` in 9125*GNU*) 9126 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 9127*) 9128 ac_count=0 9129 printf %s 0123456789 >"conftest.in" 9130 while : 9131 do 9132 cat "conftest.in" "conftest.in" >"conftest.tmp" 9133 mv "conftest.tmp" "conftest.in" 9134 cp "conftest.in" "conftest.nl" 9135 printf "%s\n" 'FGREP' >> "conftest.nl" 9136 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 9137 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 9138 as_fn_arith $ac_count + 1 && ac_count=$as_val 9139 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 9140 # Best one so far, save it but keep looking for a better one 9141 ac_cv_path_FGREP="$ac_path_FGREP" 9142 ac_path_FGREP_max=$ac_count 9143 fi 9144 # 10*(2^10) chars as input seems more than enough 9145 test $ac_count -gt 10 && break 9146 done 9147 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 9148esac 9149 9150 $ac_path_FGREP_found && break 3 9151 done 9152 done 9153 done 9154IFS=$as_save_IFS 9155 if test -z "$ac_cv_path_FGREP"; then 9156 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 9157 fi 9158else 9159 ac_cv_path_FGREP=$FGREP 9160fi 9161 9162 fi 9163fi 9164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 9165printf "%s\n" "$ac_cv_path_FGREP" >&6; } 9166 FGREP="$ac_cv_path_FGREP" 9167 9168 9169test -z "$GREP" && GREP=grep 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189# Check whether --with-gnu-ld was given. 9190if test ${with_gnu_ld+y} 9191then : 9192 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 9193else $as_nop 9194 with_gnu_ld=no 9195fi 9196 9197ac_prog=ld 9198if test yes = "$GCC"; then 9199 # Check if gcc -print-prog-name=ld gives a path. 9200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 9201printf %s "checking for ld used by $CC... " >&6; } 9202 case $host in 9203 *-*-mingw*) 9204 # gcc leaves a trailing carriage return, which upsets mingw 9205 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 9206 *) 9207 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 9208 esac 9209 case $ac_prog in 9210 # Accept absolute paths. 9211 [\\/]* | ?:[\\/]*) 9212 re_direlt='/[^/][^/]*/\.\./' 9213 # Canonicalize the pathname of ld 9214 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 9215 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 9216 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 9217 done 9218 test -z "$LD" && LD=$ac_prog 9219 ;; 9220 "") 9221 # If it fails, then pretend we aren't using GCC. 9222 ac_prog=ld 9223 ;; 9224 *) 9225 # If it is relative, then search for the first ld in PATH. 9226 with_gnu_ld=unknown 9227 ;; 9228 esac 9229elif test yes = "$with_gnu_ld"; then 9230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 9231printf %s "checking for GNU ld... " >&6; } 9232else 9233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 9234printf %s "checking for non-GNU ld... " >&6; } 9235fi 9236if test ${lt_cv_path_LD+y} 9237then : 9238 printf %s "(cached) " >&6 9239else $as_nop 9240 if test -z "$LD"; then 9241 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9242 for ac_dir in $PATH; do 9243 IFS=$lt_save_ifs 9244 test -z "$ac_dir" && ac_dir=. 9245 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 9246 lt_cv_path_LD=$ac_dir/$ac_prog 9247 # Check to see if the program is GNU ld. I'd rather use --version, 9248 # but apparently some variants of GNU ld only accept -v. 9249 # Break only if it was the GNU/non-GNU ld that we prefer. 9250 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 9251 *GNU* | *'with BFD'*) 9252 test no != "$with_gnu_ld" && break 9253 ;; 9254 *) 9255 test yes != "$with_gnu_ld" && break 9256 ;; 9257 esac 9258 fi 9259 done 9260 IFS=$lt_save_ifs 9261else 9262 lt_cv_path_LD=$LD # Let the user override the test with a path. 9263fi 9264fi 9265 9266LD=$lt_cv_path_LD 9267if test -n "$LD"; then 9268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 9269printf "%s\n" "$LD" >&6; } 9270else 9271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9272printf "%s\n" "no" >&6; } 9273fi 9274test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 9275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 9276printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 9277if test ${lt_cv_prog_gnu_ld+y} 9278then : 9279 printf %s "(cached) " >&6 9280else $as_nop 9281 # I'd rather use --version here, but apparently some GNU lds only accept -v. 9282case `$LD -v 2>&1 </dev/null` in 9283*GNU* | *'with BFD'*) 9284 lt_cv_prog_gnu_ld=yes 9285 ;; 9286*) 9287 lt_cv_prog_gnu_ld=no 9288 ;; 9289esac 9290fi 9291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 9292printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 9293with_gnu_ld=$lt_cv_prog_gnu_ld 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 9304printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 9305if test ${lt_cv_path_NM+y} 9306then : 9307 printf %s "(cached) " >&6 9308else $as_nop 9309 if test -n "$NM"; then 9310 # Let the user override the test. 9311 lt_cv_path_NM=$NM 9312else 9313 lt_nm_to_check=${ac_tool_prefix}nm 9314 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 9315 lt_nm_to_check="$lt_nm_to_check nm" 9316 fi 9317 for lt_tmp_nm in $lt_nm_to_check; do 9318 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9319 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 9320 IFS=$lt_save_ifs 9321 test -z "$ac_dir" && ac_dir=. 9322 tmp_nm=$ac_dir/$lt_tmp_nm 9323 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 9324 # Check to see if the nm accepts a BSD-compat flag. 9325 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 9326 # nm: unknown option "B" ignored 9327 # Tru64's nm complains that /dev/null is an invalid object file 9328 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 9329 case $build_os in 9330 mingw*) lt_bad_file=conftest.nm/nofile ;; 9331 *) lt_bad_file=/dev/null ;; 9332 esac 9333 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 9334 *$lt_bad_file* | *'Invalid file or object type'*) 9335 lt_cv_path_NM="$tmp_nm -B" 9336 break 2 9337 ;; 9338 *) 9339 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 9340 */dev/null*) 9341 lt_cv_path_NM="$tmp_nm -p" 9342 break 2 9343 ;; 9344 *) 9345 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 9346 continue # so that we can try to find one that supports BSD flags 9347 ;; 9348 esac 9349 ;; 9350 esac 9351 fi 9352 done 9353 IFS=$lt_save_ifs 9354 done 9355 : ${lt_cv_path_NM=no} 9356fi 9357fi 9358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 9359printf "%s\n" "$lt_cv_path_NM" >&6; } 9360if test no != "$lt_cv_path_NM"; then 9361 NM=$lt_cv_path_NM 9362else 9363 # Didn't find any BSD compatible name lister, look for dumpbin. 9364 if test -n "$DUMPBIN"; then : 9365 # Let the user override the test. 9366 else 9367 if test -n "$ac_tool_prefix"; then 9368 for ac_prog in dumpbin "link -dump" 9369 do 9370 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 9371set dummy $ac_tool_prefix$ac_prog; ac_word=$2 9372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9373printf %s "checking for $ac_word... " >&6; } 9374if test ${ac_cv_prog_DUMPBIN+y} 9375then : 9376 printf %s "(cached) " >&6 9377else $as_nop 9378 if test -n "$DUMPBIN"; then 9379 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 9380else 9381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9382for as_dir in $PATH 9383do 9384 IFS=$as_save_IFS 9385 case $as_dir in #((( 9386 '') as_dir=./ ;; 9387 */) ;; 9388 *) as_dir=$as_dir/ ;; 9389 esac 9390 for ac_exec_ext in '' $ac_executable_extensions; do 9391 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9392 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 9393 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9394 break 2 9395 fi 9396done 9397 done 9398IFS=$as_save_IFS 9399 9400fi 9401fi 9402DUMPBIN=$ac_cv_prog_DUMPBIN 9403if test -n "$DUMPBIN"; then 9404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 9405printf "%s\n" "$DUMPBIN" >&6; } 9406else 9407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9408printf "%s\n" "no" >&6; } 9409fi 9410 9411 9412 test -n "$DUMPBIN" && break 9413 done 9414fi 9415if test -z "$DUMPBIN"; then 9416 ac_ct_DUMPBIN=$DUMPBIN 9417 for ac_prog in dumpbin "link -dump" 9418do 9419 # Extract the first word of "$ac_prog", so it can be a program name with args. 9420set dummy $ac_prog; ac_word=$2 9421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9422printf %s "checking for $ac_word... " >&6; } 9423if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 9424then : 9425 printf %s "(cached) " >&6 9426else $as_nop 9427 if test -n "$ac_ct_DUMPBIN"; then 9428 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 9429else 9430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9431for as_dir in $PATH 9432do 9433 IFS=$as_save_IFS 9434 case $as_dir in #((( 9435 '') as_dir=./ ;; 9436 */) ;; 9437 *) as_dir=$as_dir/ ;; 9438 esac 9439 for ac_exec_ext in '' $ac_executable_extensions; do 9440 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9441 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 9442 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9443 break 2 9444 fi 9445done 9446 done 9447IFS=$as_save_IFS 9448 9449fi 9450fi 9451ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 9452if test -n "$ac_ct_DUMPBIN"; then 9453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 9454printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 9455else 9456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9457printf "%s\n" "no" >&6; } 9458fi 9459 9460 9461 test -n "$ac_ct_DUMPBIN" && break 9462done 9463 9464 if test "x$ac_ct_DUMPBIN" = x; then 9465 DUMPBIN=":" 9466 else 9467 case $cross_compiling:$ac_tool_warned in 9468yes:) 9469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9470printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9471ac_tool_warned=yes ;; 9472esac 9473 DUMPBIN=$ac_ct_DUMPBIN 9474 fi 9475fi 9476 9477 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 9478 *COFF*) 9479 DUMPBIN="$DUMPBIN -symbols -headers" 9480 ;; 9481 *) 9482 DUMPBIN=: 9483 ;; 9484 esac 9485 fi 9486 9487 if test : != "$DUMPBIN"; then 9488 NM=$DUMPBIN 9489 fi 9490fi 9491test -z "$NM" && NM=nm 9492 9493 9494 9495 9496 9497 9498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 9499printf %s "checking the name lister ($NM) interface... " >&6; } 9500if test ${lt_cv_nm_interface+y} 9501then : 9502 printf %s "(cached) " >&6 9503else $as_nop 9504 lt_cv_nm_interface="BSD nm" 9505 echo "int some_variable = 0;" > conftest.$ac_ext 9506 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 9507 (eval "$ac_compile" 2>conftest.err) 9508 cat conftest.err >&5 9509 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 9510 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 9511 cat conftest.err >&5 9512 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 9513 cat conftest.out >&5 9514 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 9515 lt_cv_nm_interface="MS dumpbin" 9516 fi 9517 rm -f conftest* 9518fi 9519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 9520printf "%s\n" "$lt_cv_nm_interface" >&6; } 9521 9522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 9523printf %s "checking whether ln -s works... " >&6; } 9524LN_S=$as_ln_s 9525if test "$LN_S" = "ln -s"; then 9526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9527printf "%s\n" "yes" >&6; } 9528else 9529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 9530printf "%s\n" "no, using $LN_S" >&6; } 9531fi 9532 9533# find the maximum length of command line arguments 9534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 9535printf %s "checking the maximum length of command line arguments... " >&6; } 9536if test ${lt_cv_sys_max_cmd_len+y} 9537then : 9538 printf %s "(cached) " >&6 9539else $as_nop 9540 i=0 9541 teststring=ABCD 9542 9543 case $build_os in 9544 msdosdjgpp*) 9545 # On DJGPP, this test can blow up pretty badly due to problems in libc 9546 # (any single argument exceeding 2000 bytes causes a buffer overrun 9547 # during glob expansion). Even if it were fixed, the result of this 9548 # check would be larger than it should be. 9549 lt_cv_sys_max_cmd_len=12288; # 12K is about right 9550 ;; 9551 9552 gnu*) 9553 # Under GNU Hurd, this test is not required because there is 9554 # no limit to the length of command line arguments. 9555 # Libtool will interpret -1 as no limit whatsoever 9556 lt_cv_sys_max_cmd_len=-1; 9557 ;; 9558 9559 cygwin* | mingw* | cegcc*) 9560 # On Win9x/ME, this test blows up -- it succeeds, but takes 9561 # about 5 minutes as the teststring grows exponentially. 9562 # Worse, since 9x/ME are not pre-emptively multitasking, 9563 # you end up with a "frozen" computer, even though with patience 9564 # the test eventually succeeds (with a max line length of 256k). 9565 # Instead, let's just punt: use the minimum linelength reported by 9566 # all of the supported platforms: 8192 (on NT/2K/XP). 9567 lt_cv_sys_max_cmd_len=8192; 9568 ;; 9569 9570 mint*) 9571 # On MiNT this can take a long time and run out of memory. 9572 lt_cv_sys_max_cmd_len=8192; 9573 ;; 9574 9575 amigaos*) 9576 # On AmigaOS with pdksh, this test takes hours, literally. 9577 # So we just punt and use a minimum line length of 8192. 9578 lt_cv_sys_max_cmd_len=8192; 9579 ;; 9580 9581 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 9582 # This has been around since 386BSD, at least. Likely further. 9583 if test -x /sbin/sysctl; then 9584 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 9585 elif test -x /usr/sbin/sysctl; then 9586 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 9587 else 9588 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 9589 fi 9590 # And add a safety zone 9591 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 9592 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 9593 ;; 9594 9595 interix*) 9596 # We know the value 262144 and hardcode it with a safety zone (like BSD) 9597 lt_cv_sys_max_cmd_len=196608 9598 ;; 9599 9600 os2*) 9601 # The test takes a long time on OS/2. 9602 lt_cv_sys_max_cmd_len=8192 9603 ;; 9604 9605 osf*) 9606 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 9607 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 9608 # nice to cause kernel panics so lets avoid the loop below. 9609 # First set a reasonable default. 9610 lt_cv_sys_max_cmd_len=16384 9611 # 9612 if test -x /sbin/sysconfig; then 9613 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 9614 *1*) lt_cv_sys_max_cmd_len=-1 ;; 9615 esac 9616 fi 9617 ;; 9618 sco3.2v5*) 9619 lt_cv_sys_max_cmd_len=102400 9620 ;; 9621 sysv5* | sco5v6* | sysv4.2uw2*) 9622 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 9623 if test -n "$kargmax"; then 9624 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 9625 else 9626 lt_cv_sys_max_cmd_len=32768 9627 fi 9628 ;; 9629 *) 9630 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 9631 if test -n "$lt_cv_sys_max_cmd_len" && \ 9632 test undefined != "$lt_cv_sys_max_cmd_len"; then 9633 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 9634 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 9635 else 9636 # Make teststring a little bigger before we do anything with it. 9637 # a 1K string should be a reasonable start. 9638 for i in 1 2 3 4 5 6 7 8; do 9639 teststring=$teststring$teststring 9640 done 9641 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 9642 # If test is not a shell built-in, we'll probably end up computing a 9643 # maximum length that is only half of the actual maximum length, but 9644 # we can't tell. 9645 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 9646 = "X$teststring$teststring"; } >/dev/null 2>&1 && 9647 test 17 != "$i" # 1/2 MB should be enough 9648 do 9649 i=`expr $i + 1` 9650 teststring=$teststring$teststring 9651 done 9652 # Only check the string length outside the loop. 9653 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 9654 teststring= 9655 # Add a significant safety factor because C++ compilers can tack on 9656 # massive amounts of additional arguments before passing them to the 9657 # linker. It appears as though 1/2 is a usable value. 9658 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 9659 fi 9660 ;; 9661 esac 9662 9663fi 9664 9665if test -n "$lt_cv_sys_max_cmd_len"; then 9666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 9667printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 9668else 9669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 9670printf "%s\n" "none" >&6; } 9671fi 9672max_cmd_len=$lt_cv_sys_max_cmd_len 9673 9674 9675 9676 9677 9678 9679: ${CP="cp -f"} 9680: ${MV="mv -f"} 9681: ${RM="rm -f"} 9682 9683if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 9684 lt_unset=unset 9685else 9686 lt_unset=false 9687fi 9688 9689 9690 9691 9692 9693# test EBCDIC or ASCII 9694case `echo X|tr X '\101'` in 9695 A) # ASCII based system 9696 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 9697 lt_SP2NL='tr \040 \012' 9698 lt_NL2SP='tr \015\012 \040\040' 9699 ;; 9700 *) # EBCDIC based system 9701 lt_SP2NL='tr \100 \n' 9702 lt_NL2SP='tr \r\n \100\100' 9703 ;; 9704esac 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 9715printf %s "checking how to convert $build file names to $host format... " >&6; } 9716if test ${lt_cv_to_host_file_cmd+y} 9717then : 9718 printf %s "(cached) " >&6 9719else $as_nop 9720 case $host in 9721 *-*-mingw* ) 9722 case $build in 9723 *-*-mingw* ) # actually msys 9724 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 9725 ;; 9726 *-*-cygwin* ) 9727 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 9728 ;; 9729 * ) # otherwise, assume *nix 9730 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 9731 ;; 9732 esac 9733 ;; 9734 *-*-cygwin* ) 9735 case $build in 9736 *-*-mingw* ) # actually msys 9737 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 9738 ;; 9739 *-*-cygwin* ) 9740 lt_cv_to_host_file_cmd=func_convert_file_noop 9741 ;; 9742 * ) # otherwise, assume *nix 9743 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 9744 ;; 9745 esac 9746 ;; 9747 * ) # unhandled hosts (and "normal" native builds) 9748 lt_cv_to_host_file_cmd=func_convert_file_noop 9749 ;; 9750esac 9751 9752fi 9753 9754to_host_file_cmd=$lt_cv_to_host_file_cmd 9755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 9756printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 9757 9758 9759 9760 9761 9762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 9763printf %s "checking how to convert $build file names to toolchain format... " >&6; } 9764if test ${lt_cv_to_tool_file_cmd+y} 9765then : 9766 printf %s "(cached) " >&6 9767else $as_nop 9768 #assume ordinary cross tools, or native build. 9769lt_cv_to_tool_file_cmd=func_convert_file_noop 9770case $host in 9771 *-*-mingw* ) 9772 case $build in 9773 *-*-mingw* ) # actually msys 9774 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 9775 ;; 9776 esac 9777 ;; 9778esac 9779 9780fi 9781 9782to_tool_file_cmd=$lt_cv_to_tool_file_cmd 9783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 9784printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 9785 9786 9787 9788 9789 9790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 9791printf %s "checking for $LD option to reload object files... " >&6; } 9792if test ${lt_cv_ld_reload_flag+y} 9793then : 9794 printf %s "(cached) " >&6 9795else $as_nop 9796 lt_cv_ld_reload_flag='-r' 9797fi 9798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 9799printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 9800reload_flag=$lt_cv_ld_reload_flag 9801case $reload_flag in 9802"" | " "*) ;; 9803*) reload_flag=" $reload_flag" ;; 9804esac 9805reload_cmds='$LD$reload_flag -o $output$reload_objs' 9806case $host_os in 9807 cygwin* | mingw* | pw32* | cegcc*) 9808 if test yes != "$GCC"; then 9809 reload_cmds=false 9810 fi 9811 ;; 9812 darwin*) 9813 if test yes = "$GCC"; then 9814 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 9815 else 9816 reload_cmds='$LD$reload_flag -o $output$reload_objs' 9817 fi 9818 ;; 9819esac 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829if test -n "$ac_tool_prefix"; then 9830 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 9831set dummy ${ac_tool_prefix}file; ac_word=$2 9832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9833printf %s "checking for $ac_word... " >&6; } 9834if test ${ac_cv_prog_FILECMD+y} 9835then : 9836 printf %s "(cached) " >&6 9837else $as_nop 9838 if test -n "$FILECMD"; then 9839 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 9840else 9841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9842for as_dir in $PATH 9843do 9844 IFS=$as_save_IFS 9845 case $as_dir in #((( 9846 '') as_dir=./ ;; 9847 */) ;; 9848 *) as_dir=$as_dir/ ;; 9849 esac 9850 for ac_exec_ext in '' $ac_executable_extensions; do 9851 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9852 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 9853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9854 break 2 9855 fi 9856done 9857 done 9858IFS=$as_save_IFS 9859 9860fi 9861fi 9862FILECMD=$ac_cv_prog_FILECMD 9863if test -n "$FILECMD"; then 9864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 9865printf "%s\n" "$FILECMD" >&6; } 9866else 9867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9868printf "%s\n" "no" >&6; } 9869fi 9870 9871 9872fi 9873if test -z "$ac_cv_prog_FILECMD"; then 9874 ac_ct_FILECMD=$FILECMD 9875 # Extract the first word of "file", so it can be a program name with args. 9876set dummy file; ac_word=$2 9877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9878printf %s "checking for $ac_word... " >&6; } 9879if test ${ac_cv_prog_ac_ct_FILECMD+y} 9880then : 9881 printf %s "(cached) " >&6 9882else $as_nop 9883 if test -n "$ac_ct_FILECMD"; then 9884 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 9885else 9886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9887for as_dir in $PATH 9888do 9889 IFS=$as_save_IFS 9890 case $as_dir in #((( 9891 '') as_dir=./ ;; 9892 */) ;; 9893 *) as_dir=$as_dir/ ;; 9894 esac 9895 for ac_exec_ext in '' $ac_executable_extensions; do 9896 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9897 ac_cv_prog_ac_ct_FILECMD="file" 9898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9899 break 2 9900 fi 9901done 9902 done 9903IFS=$as_save_IFS 9904 9905fi 9906fi 9907ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 9908if test -n "$ac_ct_FILECMD"; then 9909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 9910printf "%s\n" "$ac_ct_FILECMD" >&6; } 9911else 9912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9913printf "%s\n" "no" >&6; } 9914fi 9915 9916 if test "x$ac_ct_FILECMD" = x; then 9917 FILECMD=":" 9918 else 9919 case $cross_compiling:$ac_tool_warned in 9920yes:) 9921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9922printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9923ac_tool_warned=yes ;; 9924esac 9925 FILECMD=$ac_ct_FILECMD 9926 fi 9927else 9928 FILECMD="$ac_cv_prog_FILECMD" 9929fi 9930 9931 9932 9933 9934 9935 9936 9937if test -n "$ac_tool_prefix"; then 9938 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 9939set dummy ${ac_tool_prefix}objdump; ac_word=$2 9940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9941printf %s "checking for $ac_word... " >&6; } 9942if test ${ac_cv_prog_OBJDUMP+y} 9943then : 9944 printf %s "(cached) " >&6 9945else $as_nop 9946 if test -n "$OBJDUMP"; then 9947 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 9948else 9949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9950for as_dir in $PATH 9951do 9952 IFS=$as_save_IFS 9953 case $as_dir in #((( 9954 '') as_dir=./ ;; 9955 */) ;; 9956 *) as_dir=$as_dir/ ;; 9957 esac 9958 for ac_exec_ext in '' $ac_executable_extensions; do 9959 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9960 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 9961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9962 break 2 9963 fi 9964done 9965 done 9966IFS=$as_save_IFS 9967 9968fi 9969fi 9970OBJDUMP=$ac_cv_prog_OBJDUMP 9971if test -n "$OBJDUMP"; then 9972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 9973printf "%s\n" "$OBJDUMP" >&6; } 9974else 9975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9976printf "%s\n" "no" >&6; } 9977fi 9978 9979 9980fi 9981if test -z "$ac_cv_prog_OBJDUMP"; then 9982 ac_ct_OBJDUMP=$OBJDUMP 9983 # Extract the first word of "objdump", so it can be a program name with args. 9984set dummy objdump; ac_word=$2 9985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9986printf %s "checking for $ac_word... " >&6; } 9987if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 9988then : 9989 printf %s "(cached) " >&6 9990else $as_nop 9991 if test -n "$ac_ct_OBJDUMP"; then 9992 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 9993else 9994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9995for as_dir in $PATH 9996do 9997 IFS=$as_save_IFS 9998 case $as_dir in #((( 9999 '') as_dir=./ ;; 10000 */) ;; 10001 *) as_dir=$as_dir/ ;; 10002 esac 10003 for ac_exec_ext in '' $ac_executable_extensions; do 10004 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10005 ac_cv_prog_ac_ct_OBJDUMP="objdump" 10006 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10007 break 2 10008 fi 10009done 10010 done 10011IFS=$as_save_IFS 10012 10013fi 10014fi 10015ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 10016if test -n "$ac_ct_OBJDUMP"; then 10017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 10018printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 10019else 10020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10021printf "%s\n" "no" >&6; } 10022fi 10023 10024 if test "x$ac_ct_OBJDUMP" = x; then 10025 OBJDUMP="false" 10026 else 10027 case $cross_compiling:$ac_tool_warned in 10028yes:) 10029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10030printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10031ac_tool_warned=yes ;; 10032esac 10033 OBJDUMP=$ac_ct_OBJDUMP 10034 fi 10035else 10036 OBJDUMP="$ac_cv_prog_OBJDUMP" 10037fi 10038 10039test -z "$OBJDUMP" && OBJDUMP=objdump 10040 10041 10042 10043 10044 10045 10046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 10047printf %s "checking how to recognize dependent libraries... " >&6; } 10048if test ${lt_cv_deplibs_check_method+y} 10049then : 10050 printf %s "(cached) " >&6 10051else $as_nop 10052 lt_cv_file_magic_cmd='$MAGIC_CMD' 10053lt_cv_file_magic_test_file= 10054lt_cv_deplibs_check_method='unknown' 10055# Need to set the preceding variable on all platforms that support 10056# interlibrary dependencies. 10057# 'none' -- dependencies not supported. 10058# 'unknown' -- same as none, but documents that we really don't know. 10059# 'pass_all' -- all dependencies passed with no checks. 10060# 'test_compile' -- check by making test program. 10061# 'file_magic [[regex]]' -- check by looking for files in library path 10062# that responds to the $file_magic_cmd with a given extended regex. 10063# If you have 'file' or equivalent on your system and you're not sure 10064# whether 'pass_all' will *always* work, you probably want this one. 10065 10066case $host_os in 10067aix[4-9]*) 10068 lt_cv_deplibs_check_method=pass_all 10069 ;; 10070 10071beos*) 10072 lt_cv_deplibs_check_method=pass_all 10073 ;; 10074 10075bsdi[45]*) 10076 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 10077 lt_cv_file_magic_cmd='$FILECMD -L' 10078 lt_cv_file_magic_test_file=/shlib/libc.so 10079 ;; 10080 10081cygwin*) 10082 # func_win32_libid is a shell function defined in ltmain.sh 10083 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 10084 lt_cv_file_magic_cmd='func_win32_libid' 10085 ;; 10086 10087mingw* | pw32*) 10088 # Base MSYS/MinGW do not provide the 'file' command needed by 10089 # func_win32_libid shell function, so use a weaker test based on 'objdump', 10090 # unless we find 'file', for example because we are cross-compiling. 10091 if ( file / ) >/dev/null 2>&1; then 10092 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 10093 lt_cv_file_magic_cmd='func_win32_libid' 10094 else 10095 # Keep this pattern in sync with the one in func_win32_libid. 10096 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 10097 lt_cv_file_magic_cmd='$OBJDUMP -f' 10098 fi 10099 ;; 10100 10101cegcc*) 10102 # use the weaker test based on 'objdump'. See mingw*. 10103 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 10104 lt_cv_file_magic_cmd='$OBJDUMP -f' 10105 ;; 10106 10107darwin* | rhapsody*) 10108 lt_cv_deplibs_check_method=pass_all 10109 ;; 10110 10111freebsd* | dragonfly* | midnightbsd*) 10112 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 10113 case $host_cpu in 10114 i*86 ) 10115 # Not sure whether the presence of OpenBSD here was a mistake. 10116 # Let's accept both of them until this is cleared up. 10117 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 10118 lt_cv_file_magic_cmd=$FILECMD 10119 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 10120 ;; 10121 esac 10122 else 10123 lt_cv_deplibs_check_method=pass_all 10124 fi 10125 ;; 10126 10127haiku*) 10128 lt_cv_deplibs_check_method=pass_all 10129 ;; 10130 10131hpux10.20* | hpux11*) 10132 lt_cv_file_magic_cmd=$FILECMD 10133 case $host_cpu in 10134 ia64*) 10135 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 10136 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 10137 ;; 10138 hppa*64*) 10139 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]' 10140 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 10141 ;; 10142 *) 10143 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 10144 lt_cv_file_magic_test_file=/usr/lib/libc.sl 10145 ;; 10146 esac 10147 ;; 10148 10149interix[3-9]*) 10150 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 10151 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 10152 ;; 10153 10154irix5* | irix6* | nonstopux*) 10155 case $LD in 10156 *-32|*"-32 ") libmagic=32-bit;; 10157 *-n32|*"-n32 ") libmagic=N32;; 10158 *-64|*"-64 ") libmagic=64-bit;; 10159 *) libmagic=never-match;; 10160 esac 10161 lt_cv_deplibs_check_method=pass_all 10162 ;; 10163 10164# This must be glibc/ELF. 10165linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10166 lt_cv_deplibs_check_method=pass_all 10167 ;; 10168 10169netbsd* | netbsdelf*-gnu) 10170 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 10171 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 10172 else 10173 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 10174 fi 10175 ;; 10176 10177newos6*) 10178 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 10179 lt_cv_file_magic_cmd=$FILECMD 10180 lt_cv_file_magic_test_file=/usr/lib/libnls.so 10181 ;; 10182 10183*nto* | *qnx*) 10184 lt_cv_deplibs_check_method=pass_all 10185 ;; 10186 10187openbsd* | bitrig*) 10188 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10189 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 10190 else 10191 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 10192 fi 10193 ;; 10194 10195osf3* | osf4* | osf5*) 10196 lt_cv_deplibs_check_method=pass_all 10197 ;; 10198 10199rdos*) 10200 lt_cv_deplibs_check_method=pass_all 10201 ;; 10202 10203solaris*) 10204 lt_cv_deplibs_check_method=pass_all 10205 ;; 10206 10207sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10208 lt_cv_deplibs_check_method=pass_all 10209 ;; 10210 10211sysv4 | sysv4.3*) 10212 case $host_vendor in 10213 motorola) 10214 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]' 10215 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 10216 ;; 10217 ncr) 10218 lt_cv_deplibs_check_method=pass_all 10219 ;; 10220 sequent) 10221 lt_cv_file_magic_cmd='/bin/file' 10222 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 10223 ;; 10224 sni) 10225 lt_cv_file_magic_cmd='/bin/file' 10226 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 10227 lt_cv_file_magic_test_file=/lib/libc.so 10228 ;; 10229 siemens) 10230 lt_cv_deplibs_check_method=pass_all 10231 ;; 10232 pc) 10233 lt_cv_deplibs_check_method=pass_all 10234 ;; 10235 esac 10236 ;; 10237 10238tpf*) 10239 lt_cv_deplibs_check_method=pass_all 10240 ;; 10241os2*) 10242 lt_cv_deplibs_check_method=pass_all 10243 ;; 10244esac 10245 10246fi 10247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 10248printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 10249 10250file_magic_glob= 10251want_nocaseglob=no 10252if test "$build" = "$host"; then 10253 case $host_os in 10254 mingw* | pw32*) 10255 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 10256 want_nocaseglob=yes 10257 else 10258 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 10259 fi 10260 ;; 10261 esac 10262fi 10263 10264file_magic_cmd=$lt_cv_file_magic_cmd 10265deplibs_check_method=$lt_cv_deplibs_check_method 10266test -z "$deplibs_check_method" && deplibs_check_method=unknown 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289if test -n "$ac_tool_prefix"; then 10290 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 10291set dummy ${ac_tool_prefix}dlltool; ac_word=$2 10292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10293printf %s "checking for $ac_word... " >&6; } 10294if test ${ac_cv_prog_DLLTOOL+y} 10295then : 10296 printf %s "(cached) " >&6 10297else $as_nop 10298 if test -n "$DLLTOOL"; then 10299 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 10300else 10301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10302for as_dir in $PATH 10303do 10304 IFS=$as_save_IFS 10305 case $as_dir in #((( 10306 '') as_dir=./ ;; 10307 */) ;; 10308 *) as_dir=$as_dir/ ;; 10309 esac 10310 for ac_exec_ext in '' $ac_executable_extensions; do 10311 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10312 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 10313 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10314 break 2 10315 fi 10316done 10317 done 10318IFS=$as_save_IFS 10319 10320fi 10321fi 10322DLLTOOL=$ac_cv_prog_DLLTOOL 10323if test -n "$DLLTOOL"; then 10324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 10325printf "%s\n" "$DLLTOOL" >&6; } 10326else 10327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10328printf "%s\n" "no" >&6; } 10329fi 10330 10331 10332fi 10333if test -z "$ac_cv_prog_DLLTOOL"; then 10334 ac_ct_DLLTOOL=$DLLTOOL 10335 # Extract the first word of "dlltool", so it can be a program name with args. 10336set dummy dlltool; ac_word=$2 10337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10338printf %s "checking for $ac_word... " >&6; } 10339if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 10340then : 10341 printf %s "(cached) " >&6 10342else $as_nop 10343 if test -n "$ac_ct_DLLTOOL"; then 10344 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 10345else 10346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10347for as_dir in $PATH 10348do 10349 IFS=$as_save_IFS 10350 case $as_dir in #((( 10351 '') as_dir=./ ;; 10352 */) ;; 10353 *) as_dir=$as_dir/ ;; 10354 esac 10355 for ac_exec_ext in '' $ac_executable_extensions; do 10356 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10357 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 10358 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10359 break 2 10360 fi 10361done 10362 done 10363IFS=$as_save_IFS 10364 10365fi 10366fi 10367ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 10368if test -n "$ac_ct_DLLTOOL"; then 10369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 10370printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 10371else 10372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10373printf "%s\n" "no" >&6; } 10374fi 10375 10376 if test "x$ac_ct_DLLTOOL" = x; then 10377 DLLTOOL="false" 10378 else 10379 case $cross_compiling:$ac_tool_warned in 10380yes:) 10381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10382printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10383ac_tool_warned=yes ;; 10384esac 10385 DLLTOOL=$ac_ct_DLLTOOL 10386 fi 10387else 10388 DLLTOOL="$ac_cv_prog_DLLTOOL" 10389fi 10390 10391test -z "$DLLTOOL" && DLLTOOL=dlltool 10392 10393 10394 10395 10396 10397 10398 10399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 10400printf %s "checking how to associate runtime and link libraries... " >&6; } 10401if test ${lt_cv_sharedlib_from_linklib_cmd+y} 10402then : 10403 printf %s "(cached) " >&6 10404else $as_nop 10405 lt_cv_sharedlib_from_linklib_cmd='unknown' 10406 10407case $host_os in 10408cygwin* | mingw* | pw32* | cegcc*) 10409 # two different shell functions defined in ltmain.sh; 10410 # decide which one to use based on capabilities of $DLLTOOL 10411 case `$DLLTOOL --help 2>&1` in 10412 *--identify-strict*) 10413 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 10414 ;; 10415 *) 10416 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 10417 ;; 10418 esac 10419 ;; 10420*) 10421 # fallback: assume linklib IS sharedlib 10422 lt_cv_sharedlib_from_linklib_cmd=$ECHO 10423 ;; 10424esac 10425 10426fi 10427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 10428printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 10429sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 10430test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 10431 10432 10433 10434 10435 10436 10437 10438if test -n "$ac_tool_prefix"; then 10439 for ac_prog in ar 10440 do 10441 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 10442set dummy $ac_tool_prefix$ac_prog; ac_word=$2 10443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10444printf %s "checking for $ac_word... " >&6; } 10445if test ${ac_cv_prog_AR+y} 10446then : 10447 printf %s "(cached) " >&6 10448else $as_nop 10449 if test -n "$AR"; then 10450 ac_cv_prog_AR="$AR" # Let the user override the test. 10451else 10452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10453for as_dir in $PATH 10454do 10455 IFS=$as_save_IFS 10456 case $as_dir in #((( 10457 '') as_dir=./ ;; 10458 */) ;; 10459 *) as_dir=$as_dir/ ;; 10460 esac 10461 for ac_exec_ext in '' $ac_executable_extensions; do 10462 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10463 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 10464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10465 break 2 10466 fi 10467done 10468 done 10469IFS=$as_save_IFS 10470 10471fi 10472fi 10473AR=$ac_cv_prog_AR 10474if test -n "$AR"; then 10475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 10476printf "%s\n" "$AR" >&6; } 10477else 10478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10479printf "%s\n" "no" >&6; } 10480fi 10481 10482 10483 test -n "$AR" && break 10484 done 10485fi 10486if test -z "$AR"; then 10487 ac_ct_AR=$AR 10488 for ac_prog in ar 10489do 10490 # Extract the first word of "$ac_prog", so it can be a program name with args. 10491set dummy $ac_prog; ac_word=$2 10492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10493printf %s "checking for $ac_word... " >&6; } 10494if test ${ac_cv_prog_ac_ct_AR+y} 10495then : 10496 printf %s "(cached) " >&6 10497else $as_nop 10498 if test -n "$ac_ct_AR"; then 10499 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 10500else 10501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10502for as_dir in $PATH 10503do 10504 IFS=$as_save_IFS 10505 case $as_dir in #((( 10506 '') as_dir=./ ;; 10507 */) ;; 10508 *) as_dir=$as_dir/ ;; 10509 esac 10510 for ac_exec_ext in '' $ac_executable_extensions; do 10511 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10512 ac_cv_prog_ac_ct_AR="$ac_prog" 10513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10514 break 2 10515 fi 10516done 10517 done 10518IFS=$as_save_IFS 10519 10520fi 10521fi 10522ac_ct_AR=$ac_cv_prog_ac_ct_AR 10523if test -n "$ac_ct_AR"; then 10524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 10525printf "%s\n" "$ac_ct_AR" >&6; } 10526else 10527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10528printf "%s\n" "no" >&6; } 10529fi 10530 10531 10532 test -n "$ac_ct_AR" && break 10533done 10534 10535 if test "x$ac_ct_AR" = x; then 10536 AR="false" 10537 else 10538 case $cross_compiling:$ac_tool_warned in 10539yes:) 10540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10541printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10542ac_tool_warned=yes ;; 10543esac 10544 AR=$ac_ct_AR 10545 fi 10546fi 10547 10548: ${AR=ar} 10549 10550 10551 10552 10553 10554 10555# Use ARFLAGS variable as AR's operation code to sync the variable naming with 10556# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 10557# higher priority because thats what people were doing historically (setting 10558# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 10559# variable obsoleted/removed. 10560 10561test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 10562lt_ar_flags=$AR_FLAGS 10563 10564 10565 10566 10567 10568 10569# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 10570# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 10571 10572 10573 10574 10575 10576 10577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 10578printf %s "checking for archiver @FILE support... " >&6; } 10579if test ${lt_cv_ar_at_file+y} 10580then : 10581 printf %s "(cached) " >&6 10582else $as_nop 10583 lt_cv_ar_at_file=no 10584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10585/* end confdefs.h. */ 10586 10587int 10588main (void) 10589{ 10590 10591 ; 10592 return 0; 10593} 10594_ACEOF 10595if ac_fn_c_try_compile "$LINENO" 10596then : 10597 echo conftest.$ac_objext > conftest.lst 10598 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 10599 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 10600 (eval $lt_ar_try) 2>&5 10601 ac_status=$? 10602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10603 test $ac_status = 0; } 10604 if test 0 -eq "$ac_status"; then 10605 # Ensure the archiver fails upon bogus file names. 10606 rm -f conftest.$ac_objext libconftest.a 10607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 10608 (eval $lt_ar_try) 2>&5 10609 ac_status=$? 10610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10611 test $ac_status = 0; } 10612 if test 0 -ne "$ac_status"; then 10613 lt_cv_ar_at_file=@ 10614 fi 10615 fi 10616 rm -f conftest.* libconftest.a 10617 10618fi 10619rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10620 10621fi 10622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 10623printf "%s\n" "$lt_cv_ar_at_file" >&6; } 10624 10625if test no = "$lt_cv_ar_at_file"; then 10626 archiver_list_spec= 10627else 10628 archiver_list_spec=$lt_cv_ar_at_file 10629fi 10630 10631 10632 10633 10634 10635 10636 10637if test -n "$ac_tool_prefix"; then 10638 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 10639set dummy ${ac_tool_prefix}strip; ac_word=$2 10640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10641printf %s "checking for $ac_word... " >&6; } 10642if test ${ac_cv_prog_STRIP+y} 10643then : 10644 printf %s "(cached) " >&6 10645else $as_nop 10646 if test -n "$STRIP"; then 10647 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 10648else 10649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10650for as_dir in $PATH 10651do 10652 IFS=$as_save_IFS 10653 case $as_dir in #((( 10654 '') as_dir=./ ;; 10655 */) ;; 10656 *) as_dir=$as_dir/ ;; 10657 esac 10658 for ac_exec_ext in '' $ac_executable_extensions; do 10659 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10660 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 10661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10662 break 2 10663 fi 10664done 10665 done 10666IFS=$as_save_IFS 10667 10668fi 10669fi 10670STRIP=$ac_cv_prog_STRIP 10671if test -n "$STRIP"; then 10672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 10673printf "%s\n" "$STRIP" >&6; } 10674else 10675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10676printf "%s\n" "no" >&6; } 10677fi 10678 10679 10680fi 10681if test -z "$ac_cv_prog_STRIP"; then 10682 ac_ct_STRIP=$STRIP 10683 # Extract the first word of "strip", so it can be a program name with args. 10684set dummy strip; ac_word=$2 10685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10686printf %s "checking for $ac_word... " >&6; } 10687if test ${ac_cv_prog_ac_ct_STRIP+y} 10688then : 10689 printf %s "(cached) " >&6 10690else $as_nop 10691 if test -n "$ac_ct_STRIP"; then 10692 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 10693else 10694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10695for as_dir in $PATH 10696do 10697 IFS=$as_save_IFS 10698 case $as_dir in #((( 10699 '') as_dir=./ ;; 10700 */) ;; 10701 *) as_dir=$as_dir/ ;; 10702 esac 10703 for ac_exec_ext in '' $ac_executable_extensions; do 10704 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10705 ac_cv_prog_ac_ct_STRIP="strip" 10706 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10707 break 2 10708 fi 10709done 10710 done 10711IFS=$as_save_IFS 10712 10713fi 10714fi 10715ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 10716if test -n "$ac_ct_STRIP"; then 10717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 10718printf "%s\n" "$ac_ct_STRIP" >&6; } 10719else 10720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10721printf "%s\n" "no" >&6; } 10722fi 10723 10724 if test "x$ac_ct_STRIP" = x; then 10725 STRIP=":" 10726 else 10727 case $cross_compiling:$ac_tool_warned in 10728yes:) 10729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10730printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10731ac_tool_warned=yes ;; 10732esac 10733 STRIP=$ac_ct_STRIP 10734 fi 10735else 10736 STRIP="$ac_cv_prog_STRIP" 10737fi 10738 10739test -z "$STRIP" && STRIP=: 10740 10741 10742 10743 10744 10745 10746if test -n "$ac_tool_prefix"; then 10747 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 10748set dummy ${ac_tool_prefix}ranlib; ac_word=$2 10749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10750printf %s "checking for $ac_word... " >&6; } 10751if test ${ac_cv_prog_RANLIB+y} 10752then : 10753 printf %s "(cached) " >&6 10754else $as_nop 10755 if test -n "$RANLIB"; then 10756 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 10757else 10758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10759for as_dir in $PATH 10760do 10761 IFS=$as_save_IFS 10762 case $as_dir in #((( 10763 '') as_dir=./ ;; 10764 */) ;; 10765 *) as_dir=$as_dir/ ;; 10766 esac 10767 for ac_exec_ext in '' $ac_executable_extensions; do 10768 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10769 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 10770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10771 break 2 10772 fi 10773done 10774 done 10775IFS=$as_save_IFS 10776 10777fi 10778fi 10779RANLIB=$ac_cv_prog_RANLIB 10780if test -n "$RANLIB"; then 10781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 10782printf "%s\n" "$RANLIB" >&6; } 10783else 10784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10785printf "%s\n" "no" >&6; } 10786fi 10787 10788 10789fi 10790if test -z "$ac_cv_prog_RANLIB"; then 10791 ac_ct_RANLIB=$RANLIB 10792 # Extract the first word of "ranlib", so it can be a program name with args. 10793set dummy ranlib; ac_word=$2 10794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10795printf %s "checking for $ac_word... " >&6; } 10796if test ${ac_cv_prog_ac_ct_RANLIB+y} 10797then : 10798 printf %s "(cached) " >&6 10799else $as_nop 10800 if test -n "$ac_ct_RANLIB"; then 10801 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 10802else 10803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10804for as_dir in $PATH 10805do 10806 IFS=$as_save_IFS 10807 case $as_dir in #((( 10808 '') as_dir=./ ;; 10809 */) ;; 10810 *) as_dir=$as_dir/ ;; 10811 esac 10812 for ac_exec_ext in '' $ac_executable_extensions; do 10813 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10814 ac_cv_prog_ac_ct_RANLIB="ranlib" 10815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10816 break 2 10817 fi 10818done 10819 done 10820IFS=$as_save_IFS 10821 10822fi 10823fi 10824ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 10825if test -n "$ac_ct_RANLIB"; then 10826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 10827printf "%s\n" "$ac_ct_RANLIB" >&6; } 10828else 10829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10830printf "%s\n" "no" >&6; } 10831fi 10832 10833 if test "x$ac_ct_RANLIB" = x; then 10834 RANLIB=":" 10835 else 10836 case $cross_compiling:$ac_tool_warned in 10837yes:) 10838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10839printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10840ac_tool_warned=yes ;; 10841esac 10842 RANLIB=$ac_ct_RANLIB 10843 fi 10844else 10845 RANLIB="$ac_cv_prog_RANLIB" 10846fi 10847 10848test -z "$RANLIB" && RANLIB=: 10849 10850 10851 10852 10853 10854 10855# Determine commands to create old-style static archives. 10856old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 10857old_postinstall_cmds='chmod 644 $oldlib' 10858old_postuninstall_cmds= 10859 10860if test -n "$RANLIB"; then 10861 case $host_os in 10862 bitrig* | openbsd*) 10863 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 10864 ;; 10865 *) 10866 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 10867 ;; 10868 esac 10869 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 10870fi 10871 10872case $host_os in 10873 darwin*) 10874 lock_old_archive_extraction=yes ;; 10875 *) 10876 lock_old_archive_extraction=no ;; 10877esac 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917# If no C compiler was specified, use CC. 10918LTCC=${LTCC-"$CC"} 10919 10920# If no C compiler flags were specified, use CFLAGS. 10921LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10922 10923# Allow CC to be a program name with arguments. 10924compiler=$CC 10925 10926 10927# Check for command to grab the raw symbol name followed by C symbol from nm. 10928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 10929printf %s "checking command to parse $NM output from $compiler object... " >&6; } 10930if test ${lt_cv_sys_global_symbol_pipe+y} 10931then : 10932 printf %s "(cached) " >&6 10933else $as_nop 10934 10935# These are sane defaults that work on at least a few old systems. 10936# [They come from Ultrix. What could be older than Ultrix?!! ;)] 10937 10938# Character class describing NM global symbol codes. 10939symcode='[BCDEGRST]' 10940 10941# Regexp to match symbols that can be accessed directly from C. 10942sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 10943 10944# Define system-specific variables. 10945case $host_os in 10946aix*) 10947 symcode='[BCDT]' 10948 ;; 10949cygwin* | mingw* | pw32* | cegcc*) 10950 symcode='[ABCDGISTW]' 10951 ;; 10952hpux*) 10953 if test ia64 = "$host_cpu"; then 10954 symcode='[ABCDEGRST]' 10955 fi 10956 ;; 10957irix* | nonstopux*) 10958 symcode='[BCDEGRST]' 10959 ;; 10960osf*) 10961 symcode='[BCDEGQRST]' 10962 ;; 10963solaris*) 10964 symcode='[BDRT]' 10965 ;; 10966sco3.2v5*) 10967 symcode='[DT]' 10968 ;; 10969sysv4.2uw2*) 10970 symcode='[DT]' 10971 ;; 10972sysv5* | sco5v6* | unixware* | OpenUNIX*) 10973 symcode='[ABDT]' 10974 ;; 10975sysv4) 10976 symcode='[DFNSTU]' 10977 ;; 10978esac 10979 10980# If we're using GNU nm, then use its standard symbol codes. 10981case `$NM -V 2>&1` in 10982*GNU* | *'with BFD'*) 10983 symcode='[ABCDGIRSTW]' ;; 10984esac 10985 10986if test "$lt_cv_nm_interface" = "MS dumpbin"; then 10987 # Gets list of data symbols to import. 10988 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 10989 # Adjust the below global symbol transforms to fixup imported variables. 10990 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 10991 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 10992 lt_c_name_lib_hook="\ 10993 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 10994 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 10995else 10996 # Disable hooks by default. 10997 lt_cv_sys_global_symbol_to_import= 10998 lt_cdecl_hook= 10999 lt_c_name_hook= 11000 lt_c_name_lib_hook= 11001fi 11002 11003# Transform an extracted symbol line into a proper C declaration. 11004# Some systems (esp. on ia64) link data and code symbols differently, 11005# so use this general approach. 11006lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 11007$lt_cdecl_hook\ 11008" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 11009" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 11010 11011# Transform an extracted symbol line into symbol name and symbol address 11012lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 11013$lt_c_name_hook\ 11014" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 11015" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 11016 11017# Transform an extracted symbol line into symbol name with lib prefix and 11018# symbol address. 11019lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 11020$lt_c_name_lib_hook\ 11021" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 11022" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 11023" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 11024 11025# Handle CRLF in mingw tool chain 11026opt_cr= 11027case $build_os in 11028mingw*) 11029 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 11030 ;; 11031esac 11032 11033# Try without a prefix underscore, then with it. 11034for ac_symprfx in "" "_"; do 11035 11036 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 11037 symxfrm="\\1 $ac_symprfx\\2 \\2" 11038 11039 # Write the raw and C identifiers. 11040 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 11041 # Fake it for dumpbin and say T for any non-static function, 11042 # D for any global variable and I for any imported variable. 11043 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 11044 # which start with @ or ?. 11045 lt_cv_sys_global_symbol_pipe="$AWK '"\ 11046" {last_section=section; section=\$ 3};"\ 11047" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 11048" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 11049" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 11050" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 11051" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 11052" \$ 0!~/External *\|/{next};"\ 11053" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 11054" {if(hide[section]) next};"\ 11055" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 11056" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 11057" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 11058" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 11059" ' prfx=^$ac_symprfx" 11060 else 11061 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 11062 fi 11063 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 11064 11065 # Check to see that the pipe works correctly. 11066 pipe_works=no 11067 11068 rm -f conftest* 11069 cat > conftest.$ac_ext <<_LT_EOF 11070#ifdef __cplusplus 11071extern "C" { 11072#endif 11073char nm_test_var; 11074void nm_test_func(void); 11075void nm_test_func(void){} 11076#ifdef __cplusplus 11077} 11078#endif 11079int main(){nm_test_var='a';nm_test_func();return(0);} 11080_LT_EOF 11081 11082 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11083 (eval $ac_compile) 2>&5 11084 ac_status=$? 11085 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11086 test $ac_status = 0; }; then 11087 # Now try to grab the symbols. 11088 nlist=conftest.nm 11089 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 11090 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 11091 # Try sorting and uniquifying the output. 11092 if sort "$nlist" | uniq > "$nlist"T; then 11093 mv -f "$nlist"T "$nlist" 11094 else 11095 rm -f "$nlist"T 11096 fi 11097 11098 # Make sure that we snagged all the symbols we need. 11099 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 11100 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 11101 cat <<_LT_EOF > conftest.$ac_ext 11102/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 11103#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 11104/* DATA imports from DLLs on WIN32 can't be const, because runtime 11105 relocations are performed -- see ld's documentation on pseudo-relocs. */ 11106# define LT_DLSYM_CONST 11107#elif defined __osf__ 11108/* This system does not cope well with relocations in const data. */ 11109# define LT_DLSYM_CONST 11110#else 11111# define LT_DLSYM_CONST const 11112#endif 11113 11114#ifdef __cplusplus 11115extern "C" { 11116#endif 11117 11118_LT_EOF 11119 # Now generate the symbol file. 11120 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 11121 11122 cat <<_LT_EOF >> conftest.$ac_ext 11123 11124/* The mapping between symbol names and symbols. */ 11125LT_DLSYM_CONST struct { 11126 const char *name; 11127 void *address; 11128} 11129lt__PROGRAM__LTX_preloaded_symbols[] = 11130{ 11131 { "@PROGRAM@", (void *) 0 }, 11132_LT_EOF 11133 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 11134 cat <<\_LT_EOF >> conftest.$ac_ext 11135 {0, (void *) 0} 11136}; 11137 11138/* This works around a problem in FreeBSD linker */ 11139#ifdef FREEBSD_WORKAROUND 11140static const void *lt_preloaded_setup() { 11141 return lt__PROGRAM__LTX_preloaded_symbols; 11142} 11143#endif 11144 11145#ifdef __cplusplus 11146} 11147#endif 11148_LT_EOF 11149 # Now try linking the two files. 11150 mv conftest.$ac_objext conftstm.$ac_objext 11151 lt_globsym_save_LIBS=$LIBS 11152 lt_globsym_save_CFLAGS=$CFLAGS 11153 LIBS=conftstm.$ac_objext 11154 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 11155 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11156 (eval $ac_link) 2>&5 11157 ac_status=$? 11158 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11159 test $ac_status = 0; } && test -s conftest$ac_exeext; then 11160 pipe_works=yes 11161 fi 11162 LIBS=$lt_globsym_save_LIBS 11163 CFLAGS=$lt_globsym_save_CFLAGS 11164 else 11165 echo "cannot find nm_test_func in $nlist" >&5 11166 fi 11167 else 11168 echo "cannot find nm_test_var in $nlist" >&5 11169 fi 11170 else 11171 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 11172 fi 11173 else 11174 echo "$progname: failed program was:" >&5 11175 cat conftest.$ac_ext >&5 11176 fi 11177 rm -rf conftest* conftst* 11178 11179 # Do not use the global_symbol_pipe unless it works. 11180 if test yes = "$pipe_works"; then 11181 break 11182 else 11183 lt_cv_sys_global_symbol_pipe= 11184 fi 11185done 11186 11187fi 11188 11189if test -z "$lt_cv_sys_global_symbol_pipe"; then 11190 lt_cv_sys_global_symbol_to_cdecl= 11191fi 11192if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 11193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 11194printf "%s\n" "failed" >&6; } 11195else 11196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 11197printf "%s\n" "ok" >&6; } 11198fi 11199 11200# Response file support. 11201if test "$lt_cv_nm_interface" = "MS dumpbin"; then 11202 nm_file_list_spec='@' 11203elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 11204 nm_file_list_spec='@' 11205fi 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 11244printf %s "checking for sysroot... " >&6; } 11245 11246# Check whether --with-sysroot was given. 11247if test ${with_sysroot+y} 11248then : 11249 withval=$with_sysroot; 11250else $as_nop 11251 with_sysroot=no 11252fi 11253 11254 11255lt_sysroot= 11256case $with_sysroot in #( 11257 yes) 11258 if test yes = "$GCC"; then 11259 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 11260 fi 11261 ;; #( 11262 /*) 11263 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 11264 ;; #( 11265 no|'') 11266 ;; #( 11267 *) 11268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 11269printf "%s\n" "$with_sysroot" >&6; } 11270 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 11271 ;; 11272esac 11273 11274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 11275printf "%s\n" "${lt_sysroot:-no}" >&6; } 11276 11277 11278 11279 11280 11281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 11282printf %s "checking for a working dd... " >&6; } 11283if test ${ac_cv_path_lt_DD+y} 11284then : 11285 printf %s "(cached) " >&6 11286else $as_nop 11287 printf 0123456789abcdef0123456789abcdef >conftest.i 11288cat conftest.i conftest.i >conftest2.i 11289: ${lt_DD:=$DD} 11290if test -z "$lt_DD"; then 11291 ac_path_lt_DD_found=false 11292 # Loop through the user's path and test for each of PROGNAME-LIST 11293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11294for as_dir in $PATH 11295do 11296 IFS=$as_save_IFS 11297 case $as_dir in #((( 11298 '') as_dir=./ ;; 11299 */) ;; 11300 *) as_dir=$as_dir/ ;; 11301 esac 11302 for ac_prog in dd 11303 do 11304 for ac_exec_ext in '' $ac_executable_extensions; do 11305 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 11306 as_fn_executable_p "$ac_path_lt_DD" || continue 11307if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 11308 cmp -s conftest.i conftest.out \ 11309 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 11310fi 11311 $ac_path_lt_DD_found && break 3 11312 done 11313 done 11314 done 11315IFS=$as_save_IFS 11316 if test -z "$ac_cv_path_lt_DD"; then 11317 : 11318 fi 11319else 11320 ac_cv_path_lt_DD=$lt_DD 11321fi 11322 11323rm -f conftest.i conftest2.i conftest.out 11324fi 11325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 11326printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 11327 11328 11329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 11330printf %s "checking how to truncate binary pipes... " >&6; } 11331if test ${lt_cv_truncate_bin+y} 11332then : 11333 printf %s "(cached) " >&6 11334else $as_nop 11335 printf 0123456789abcdef0123456789abcdef >conftest.i 11336cat conftest.i conftest.i >conftest2.i 11337lt_cv_truncate_bin= 11338if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 11339 cmp -s conftest.i conftest.out \ 11340 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 11341fi 11342rm -f conftest.i conftest2.i conftest.out 11343test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 11344fi 11345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 11346printf "%s\n" "$lt_cv_truncate_bin" >&6; } 11347 11348 11349 11350 11351 11352 11353 11354# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 11355func_cc_basename () 11356{ 11357 for cc_temp in $*""; do 11358 case $cc_temp in 11359 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11360 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11361 \-*) ;; 11362 *) break;; 11363 esac 11364 done 11365 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 11366} 11367 11368# Check whether --enable-libtool-lock was given. 11369if test ${enable_libtool_lock+y} 11370then : 11371 enableval=$enable_libtool_lock; 11372fi 11373 11374test no = "$enable_libtool_lock" || enable_libtool_lock=yes 11375 11376# Some flags need to be propagated to the compiler or linker for good 11377# libtool support. 11378case $host in 11379ia64-*-hpux*) 11380 # Find out what ABI is being produced by ac_compile, and set mode 11381 # options accordingly. 11382 echo 'int i;' > conftest.$ac_ext 11383 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11384 (eval $ac_compile) 2>&5 11385 ac_status=$? 11386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11387 test $ac_status = 0; }; then 11388 case `$FILECMD conftest.$ac_objext` in 11389 *ELF-32*) 11390 HPUX_IA64_MODE=32 11391 ;; 11392 *ELF-64*) 11393 HPUX_IA64_MODE=64 11394 ;; 11395 esac 11396 fi 11397 rm -rf conftest* 11398 ;; 11399*-*-irix6*) 11400 # Find out what ABI is being produced by ac_compile, and set linker 11401 # options accordingly. 11402 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 11403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11404 (eval $ac_compile) 2>&5 11405 ac_status=$? 11406 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11407 test $ac_status = 0; }; then 11408 if test yes = "$lt_cv_prog_gnu_ld"; then 11409 case `$FILECMD conftest.$ac_objext` in 11410 *32-bit*) 11411 LD="${LD-ld} -melf32bsmip" 11412 ;; 11413 *N32*) 11414 LD="${LD-ld} -melf32bmipn32" 11415 ;; 11416 *64-bit*) 11417 LD="${LD-ld} -melf64bmip" 11418 ;; 11419 esac 11420 else 11421 case `$FILECMD conftest.$ac_objext` in 11422 *32-bit*) 11423 LD="${LD-ld} -32" 11424 ;; 11425 *N32*) 11426 LD="${LD-ld} -n32" 11427 ;; 11428 *64-bit*) 11429 LD="${LD-ld} -64" 11430 ;; 11431 esac 11432 fi 11433 fi 11434 rm -rf conftest* 11435 ;; 11436 11437mips64*-*linux*) 11438 # Find out what ABI is being produced by ac_compile, and set linker 11439 # options accordingly. 11440 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 11441 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11442 (eval $ac_compile) 2>&5 11443 ac_status=$? 11444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11445 test $ac_status = 0; }; then 11446 emul=elf 11447 case `$FILECMD conftest.$ac_objext` in 11448 *32-bit*) 11449 emul="${emul}32" 11450 ;; 11451 *64-bit*) 11452 emul="${emul}64" 11453 ;; 11454 esac 11455 case `$FILECMD conftest.$ac_objext` in 11456 *MSB*) 11457 emul="${emul}btsmip" 11458 ;; 11459 *LSB*) 11460 emul="${emul}ltsmip" 11461 ;; 11462 esac 11463 case `$FILECMD conftest.$ac_objext` in 11464 *N32*) 11465 emul="${emul}n32" 11466 ;; 11467 esac 11468 LD="${LD-ld} -m $emul" 11469 fi 11470 rm -rf conftest* 11471 ;; 11472 11473x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 11474s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 11475 # Find out what ABI is being produced by ac_compile, and set linker 11476 # options accordingly. Note that the listed cases only cover the 11477 # situations where additional linker options are needed (such as when 11478 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 11479 # vice versa); the common cases where no linker options are needed do 11480 # not appear in the list. 11481 echo 'int i;' > conftest.$ac_ext 11482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11483 (eval $ac_compile) 2>&5 11484 ac_status=$? 11485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11486 test $ac_status = 0; }; then 11487 case `$FILECMD conftest.o` in 11488 *32-bit*) 11489 case $host in 11490 x86_64-*kfreebsd*-gnu) 11491 LD="${LD-ld} -m elf_i386_fbsd" 11492 ;; 11493 x86_64-*linux*) 11494 case `$FILECMD conftest.o` in 11495 *x86-64*) 11496 LD="${LD-ld} -m elf32_x86_64" 11497 ;; 11498 *) 11499 LD="${LD-ld} -m elf_i386" 11500 ;; 11501 esac 11502 ;; 11503 powerpc64le-*linux*) 11504 LD="${LD-ld} -m elf32lppclinux" 11505 ;; 11506 powerpc64-*linux*) 11507 LD="${LD-ld} -m elf32ppclinux" 11508 ;; 11509 s390x-*linux*) 11510 LD="${LD-ld} -m elf_s390" 11511 ;; 11512 sparc64-*linux*) 11513 LD="${LD-ld} -m elf32_sparc" 11514 ;; 11515 esac 11516 ;; 11517 *64-bit*) 11518 case $host in 11519 x86_64-*kfreebsd*-gnu) 11520 LD="${LD-ld} -m elf_x86_64_fbsd" 11521 ;; 11522 x86_64-*linux*) 11523 LD="${LD-ld} -m elf_x86_64" 11524 ;; 11525 powerpcle-*linux*) 11526 LD="${LD-ld} -m elf64lppc" 11527 ;; 11528 powerpc-*linux*) 11529 LD="${LD-ld} -m elf64ppc" 11530 ;; 11531 s390*-*linux*|s390*-*tpf*) 11532 LD="${LD-ld} -m elf64_s390" 11533 ;; 11534 sparc*-*linux*) 11535 LD="${LD-ld} -m elf64_sparc" 11536 ;; 11537 esac 11538 ;; 11539 esac 11540 fi 11541 rm -rf conftest* 11542 ;; 11543 11544*-*-sco3.2v5*) 11545 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 11546 SAVE_CFLAGS=$CFLAGS 11547 CFLAGS="$CFLAGS -belf" 11548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 11549printf %s "checking whether the C compiler needs -belf... " >&6; } 11550if test ${lt_cv_cc_needs_belf+y} 11551then : 11552 printf %s "(cached) " >&6 11553else $as_nop 11554 ac_ext=c 11555ac_cpp='$CPP $CPPFLAGS' 11556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11558ac_compiler_gnu=$ac_cv_c_compiler_gnu 11559 11560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11561/* end confdefs.h. */ 11562 11563int 11564main (void) 11565{ 11566 11567 ; 11568 return 0; 11569} 11570_ACEOF 11571if ac_fn_c_try_link "$LINENO" 11572then : 11573 lt_cv_cc_needs_belf=yes 11574else $as_nop 11575 lt_cv_cc_needs_belf=no 11576fi 11577rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11578 conftest$ac_exeext conftest.$ac_ext 11579 ac_ext=c 11580ac_cpp='$CPP $CPPFLAGS' 11581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11583ac_compiler_gnu=$ac_cv_c_compiler_gnu 11584 11585fi 11586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 11587printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 11588 if test yes != "$lt_cv_cc_needs_belf"; then 11589 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 11590 CFLAGS=$SAVE_CFLAGS 11591 fi 11592 ;; 11593*-*solaris*) 11594 # Find out what ABI is being produced by ac_compile, and set linker 11595 # options accordingly. 11596 echo 'int i;' > conftest.$ac_ext 11597 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11598 (eval $ac_compile) 2>&5 11599 ac_status=$? 11600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11601 test $ac_status = 0; }; then 11602 case `$FILECMD conftest.o` in 11603 *64-bit*) 11604 case $lt_cv_prog_gnu_ld in 11605 yes*) 11606 case $host in 11607 i?86-*-solaris*|x86_64-*-solaris*) 11608 LD="${LD-ld} -m elf_x86_64" 11609 ;; 11610 sparc*-*-solaris*) 11611 LD="${LD-ld} -m elf64_sparc" 11612 ;; 11613 esac 11614 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 11615 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 11616 LD=${LD-ld}_sol2 11617 fi 11618 ;; 11619 *) 11620 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 11621 LD="${LD-ld} -64" 11622 fi 11623 ;; 11624 esac 11625 ;; 11626 esac 11627 fi 11628 rm -rf conftest* 11629 ;; 11630esac 11631 11632need_locks=$enable_libtool_lock 11633 11634if test -n "$ac_tool_prefix"; then 11635 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 11636set dummy ${ac_tool_prefix}mt; ac_word=$2 11637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11638printf %s "checking for $ac_word... " >&6; } 11639if test ${ac_cv_prog_MANIFEST_TOOL+y} 11640then : 11641 printf %s "(cached) " >&6 11642else $as_nop 11643 if test -n "$MANIFEST_TOOL"; then 11644 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 11645else 11646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11647for as_dir in $PATH 11648do 11649 IFS=$as_save_IFS 11650 case $as_dir in #((( 11651 '') as_dir=./ ;; 11652 */) ;; 11653 *) as_dir=$as_dir/ ;; 11654 esac 11655 for ac_exec_ext in '' $ac_executable_extensions; do 11656 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11657 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 11658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11659 break 2 11660 fi 11661done 11662 done 11663IFS=$as_save_IFS 11664 11665fi 11666fi 11667MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 11668if test -n "$MANIFEST_TOOL"; then 11669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 11670printf "%s\n" "$MANIFEST_TOOL" >&6; } 11671else 11672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11673printf "%s\n" "no" >&6; } 11674fi 11675 11676 11677fi 11678if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 11679 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 11680 # Extract the first word of "mt", so it can be a program name with args. 11681set dummy mt; ac_word=$2 11682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11683printf %s "checking for $ac_word... " >&6; } 11684if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 11685then : 11686 printf %s "(cached) " >&6 11687else $as_nop 11688 if test -n "$ac_ct_MANIFEST_TOOL"; then 11689 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 11690else 11691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11692for as_dir in $PATH 11693do 11694 IFS=$as_save_IFS 11695 case $as_dir in #((( 11696 '') as_dir=./ ;; 11697 */) ;; 11698 *) as_dir=$as_dir/ ;; 11699 esac 11700 for ac_exec_ext in '' $ac_executable_extensions; do 11701 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11702 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 11703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11704 break 2 11705 fi 11706done 11707 done 11708IFS=$as_save_IFS 11709 11710fi 11711fi 11712ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 11713if test -n "$ac_ct_MANIFEST_TOOL"; then 11714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 11715printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 11716else 11717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11718printf "%s\n" "no" >&6; } 11719fi 11720 11721 if test "x$ac_ct_MANIFEST_TOOL" = x; then 11722 MANIFEST_TOOL=":" 11723 else 11724 case $cross_compiling:$ac_tool_warned in 11725yes:) 11726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11727printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11728ac_tool_warned=yes ;; 11729esac 11730 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 11731 fi 11732else 11733 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 11734fi 11735 11736test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 11737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 11738printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 11739if test ${lt_cv_path_mainfest_tool+y} 11740then : 11741 printf %s "(cached) " >&6 11742else $as_nop 11743 lt_cv_path_mainfest_tool=no 11744 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 11745 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 11746 cat conftest.err >&5 11747 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 11748 lt_cv_path_mainfest_tool=yes 11749 fi 11750 rm -f conftest* 11751fi 11752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 11753printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 11754if test yes != "$lt_cv_path_mainfest_tool"; then 11755 MANIFEST_TOOL=: 11756fi 11757 11758 11759 11760 11761 11762 11763 case $host_os in 11764 rhapsody* | darwin*) 11765 if test -n "$ac_tool_prefix"; then 11766 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 11767set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 11768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11769printf %s "checking for $ac_word... " >&6; } 11770if test ${ac_cv_prog_DSYMUTIL+y} 11771then : 11772 printf %s "(cached) " >&6 11773else $as_nop 11774 if test -n "$DSYMUTIL"; then 11775 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 11776else 11777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11778for as_dir in $PATH 11779do 11780 IFS=$as_save_IFS 11781 case $as_dir in #((( 11782 '') as_dir=./ ;; 11783 */) ;; 11784 *) as_dir=$as_dir/ ;; 11785 esac 11786 for ac_exec_ext in '' $ac_executable_extensions; do 11787 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11788 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 11789 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11790 break 2 11791 fi 11792done 11793 done 11794IFS=$as_save_IFS 11795 11796fi 11797fi 11798DSYMUTIL=$ac_cv_prog_DSYMUTIL 11799if test -n "$DSYMUTIL"; then 11800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 11801printf "%s\n" "$DSYMUTIL" >&6; } 11802else 11803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11804printf "%s\n" "no" >&6; } 11805fi 11806 11807 11808fi 11809if test -z "$ac_cv_prog_DSYMUTIL"; then 11810 ac_ct_DSYMUTIL=$DSYMUTIL 11811 # Extract the first word of "dsymutil", so it can be a program name with args. 11812set dummy dsymutil; ac_word=$2 11813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11814printf %s "checking for $ac_word... " >&6; } 11815if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 11816then : 11817 printf %s "(cached) " >&6 11818else $as_nop 11819 if test -n "$ac_ct_DSYMUTIL"; then 11820 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 11821else 11822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11823for as_dir in $PATH 11824do 11825 IFS=$as_save_IFS 11826 case $as_dir in #((( 11827 '') as_dir=./ ;; 11828 */) ;; 11829 *) as_dir=$as_dir/ ;; 11830 esac 11831 for ac_exec_ext in '' $ac_executable_extensions; do 11832 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11833 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 11834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11835 break 2 11836 fi 11837done 11838 done 11839IFS=$as_save_IFS 11840 11841fi 11842fi 11843ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 11844if test -n "$ac_ct_DSYMUTIL"; then 11845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 11846printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 11847else 11848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11849printf "%s\n" "no" >&6; } 11850fi 11851 11852 if test "x$ac_ct_DSYMUTIL" = x; then 11853 DSYMUTIL=":" 11854 else 11855 case $cross_compiling:$ac_tool_warned in 11856yes:) 11857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11858printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11859ac_tool_warned=yes ;; 11860esac 11861 DSYMUTIL=$ac_ct_DSYMUTIL 11862 fi 11863else 11864 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 11865fi 11866 11867 if test -n "$ac_tool_prefix"; then 11868 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 11869set dummy ${ac_tool_prefix}nmedit; ac_word=$2 11870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11871printf %s "checking for $ac_word... " >&6; } 11872if test ${ac_cv_prog_NMEDIT+y} 11873then : 11874 printf %s "(cached) " >&6 11875else $as_nop 11876 if test -n "$NMEDIT"; then 11877 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 11878else 11879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11880for as_dir in $PATH 11881do 11882 IFS=$as_save_IFS 11883 case $as_dir in #((( 11884 '') as_dir=./ ;; 11885 */) ;; 11886 *) as_dir=$as_dir/ ;; 11887 esac 11888 for ac_exec_ext in '' $ac_executable_extensions; do 11889 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11890 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 11891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11892 break 2 11893 fi 11894done 11895 done 11896IFS=$as_save_IFS 11897 11898fi 11899fi 11900NMEDIT=$ac_cv_prog_NMEDIT 11901if test -n "$NMEDIT"; then 11902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 11903printf "%s\n" "$NMEDIT" >&6; } 11904else 11905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11906printf "%s\n" "no" >&6; } 11907fi 11908 11909 11910fi 11911if test -z "$ac_cv_prog_NMEDIT"; then 11912 ac_ct_NMEDIT=$NMEDIT 11913 # Extract the first word of "nmedit", so it can be a program name with args. 11914set dummy nmedit; ac_word=$2 11915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11916printf %s "checking for $ac_word... " >&6; } 11917if test ${ac_cv_prog_ac_ct_NMEDIT+y} 11918then : 11919 printf %s "(cached) " >&6 11920else $as_nop 11921 if test -n "$ac_ct_NMEDIT"; then 11922 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 11923else 11924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11925for as_dir in $PATH 11926do 11927 IFS=$as_save_IFS 11928 case $as_dir in #((( 11929 '') as_dir=./ ;; 11930 */) ;; 11931 *) as_dir=$as_dir/ ;; 11932 esac 11933 for ac_exec_ext in '' $ac_executable_extensions; do 11934 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11935 ac_cv_prog_ac_ct_NMEDIT="nmedit" 11936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11937 break 2 11938 fi 11939done 11940 done 11941IFS=$as_save_IFS 11942 11943fi 11944fi 11945ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 11946if test -n "$ac_ct_NMEDIT"; then 11947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 11948printf "%s\n" "$ac_ct_NMEDIT" >&6; } 11949else 11950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11951printf "%s\n" "no" >&6; } 11952fi 11953 11954 if test "x$ac_ct_NMEDIT" = x; then 11955 NMEDIT=":" 11956 else 11957 case $cross_compiling:$ac_tool_warned in 11958yes:) 11959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11960printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11961ac_tool_warned=yes ;; 11962esac 11963 NMEDIT=$ac_ct_NMEDIT 11964 fi 11965else 11966 NMEDIT="$ac_cv_prog_NMEDIT" 11967fi 11968 11969 if test -n "$ac_tool_prefix"; then 11970 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 11971set dummy ${ac_tool_prefix}lipo; ac_word=$2 11972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11973printf %s "checking for $ac_word... " >&6; } 11974if test ${ac_cv_prog_LIPO+y} 11975then : 11976 printf %s "(cached) " >&6 11977else $as_nop 11978 if test -n "$LIPO"; then 11979 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 11980else 11981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11982for as_dir in $PATH 11983do 11984 IFS=$as_save_IFS 11985 case $as_dir in #((( 11986 '') as_dir=./ ;; 11987 */) ;; 11988 *) as_dir=$as_dir/ ;; 11989 esac 11990 for ac_exec_ext in '' $ac_executable_extensions; do 11991 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11992 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 11993 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11994 break 2 11995 fi 11996done 11997 done 11998IFS=$as_save_IFS 11999 12000fi 12001fi 12002LIPO=$ac_cv_prog_LIPO 12003if test -n "$LIPO"; then 12004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 12005printf "%s\n" "$LIPO" >&6; } 12006else 12007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12008printf "%s\n" "no" >&6; } 12009fi 12010 12011 12012fi 12013if test -z "$ac_cv_prog_LIPO"; then 12014 ac_ct_LIPO=$LIPO 12015 # Extract the first word of "lipo", so it can be a program name with args. 12016set dummy lipo; ac_word=$2 12017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12018printf %s "checking for $ac_word... " >&6; } 12019if test ${ac_cv_prog_ac_ct_LIPO+y} 12020then : 12021 printf %s "(cached) " >&6 12022else $as_nop 12023 if test -n "$ac_ct_LIPO"; then 12024 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 12025else 12026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12027for as_dir in $PATH 12028do 12029 IFS=$as_save_IFS 12030 case $as_dir in #((( 12031 '') as_dir=./ ;; 12032 */) ;; 12033 *) as_dir=$as_dir/ ;; 12034 esac 12035 for ac_exec_ext in '' $ac_executable_extensions; do 12036 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12037 ac_cv_prog_ac_ct_LIPO="lipo" 12038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12039 break 2 12040 fi 12041done 12042 done 12043IFS=$as_save_IFS 12044 12045fi 12046fi 12047ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 12048if test -n "$ac_ct_LIPO"; then 12049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 12050printf "%s\n" "$ac_ct_LIPO" >&6; } 12051else 12052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12053printf "%s\n" "no" >&6; } 12054fi 12055 12056 if test "x$ac_ct_LIPO" = x; then 12057 LIPO=":" 12058 else 12059 case $cross_compiling:$ac_tool_warned in 12060yes:) 12061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12062printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12063ac_tool_warned=yes ;; 12064esac 12065 LIPO=$ac_ct_LIPO 12066 fi 12067else 12068 LIPO="$ac_cv_prog_LIPO" 12069fi 12070 12071 if test -n "$ac_tool_prefix"; then 12072 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 12073set dummy ${ac_tool_prefix}otool; ac_word=$2 12074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12075printf %s "checking for $ac_word... " >&6; } 12076if test ${ac_cv_prog_OTOOL+y} 12077then : 12078 printf %s "(cached) " >&6 12079else $as_nop 12080 if test -n "$OTOOL"; then 12081 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 12082else 12083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12084for as_dir in $PATH 12085do 12086 IFS=$as_save_IFS 12087 case $as_dir in #((( 12088 '') as_dir=./ ;; 12089 */) ;; 12090 *) as_dir=$as_dir/ ;; 12091 esac 12092 for ac_exec_ext in '' $ac_executable_extensions; do 12093 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12094 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 12095 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12096 break 2 12097 fi 12098done 12099 done 12100IFS=$as_save_IFS 12101 12102fi 12103fi 12104OTOOL=$ac_cv_prog_OTOOL 12105if test -n "$OTOOL"; then 12106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 12107printf "%s\n" "$OTOOL" >&6; } 12108else 12109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12110printf "%s\n" "no" >&6; } 12111fi 12112 12113 12114fi 12115if test -z "$ac_cv_prog_OTOOL"; then 12116 ac_ct_OTOOL=$OTOOL 12117 # Extract the first word of "otool", so it can be a program name with args. 12118set dummy otool; ac_word=$2 12119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12120printf %s "checking for $ac_word... " >&6; } 12121if test ${ac_cv_prog_ac_ct_OTOOL+y} 12122then : 12123 printf %s "(cached) " >&6 12124else $as_nop 12125 if test -n "$ac_ct_OTOOL"; then 12126 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 12127else 12128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12129for as_dir in $PATH 12130do 12131 IFS=$as_save_IFS 12132 case $as_dir in #((( 12133 '') as_dir=./ ;; 12134 */) ;; 12135 *) as_dir=$as_dir/ ;; 12136 esac 12137 for ac_exec_ext in '' $ac_executable_extensions; do 12138 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12139 ac_cv_prog_ac_ct_OTOOL="otool" 12140 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12141 break 2 12142 fi 12143done 12144 done 12145IFS=$as_save_IFS 12146 12147fi 12148fi 12149ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 12150if test -n "$ac_ct_OTOOL"; then 12151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 12152printf "%s\n" "$ac_ct_OTOOL" >&6; } 12153else 12154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12155printf "%s\n" "no" >&6; } 12156fi 12157 12158 if test "x$ac_ct_OTOOL" = x; then 12159 OTOOL=":" 12160 else 12161 case $cross_compiling:$ac_tool_warned in 12162yes:) 12163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12164printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12165ac_tool_warned=yes ;; 12166esac 12167 OTOOL=$ac_ct_OTOOL 12168 fi 12169else 12170 OTOOL="$ac_cv_prog_OTOOL" 12171fi 12172 12173 if test -n "$ac_tool_prefix"; then 12174 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 12175set dummy ${ac_tool_prefix}otool64; ac_word=$2 12176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12177printf %s "checking for $ac_word... " >&6; } 12178if test ${ac_cv_prog_OTOOL64+y} 12179then : 12180 printf %s "(cached) " >&6 12181else $as_nop 12182 if test -n "$OTOOL64"; then 12183 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 12184else 12185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12186for as_dir in $PATH 12187do 12188 IFS=$as_save_IFS 12189 case $as_dir in #((( 12190 '') as_dir=./ ;; 12191 */) ;; 12192 *) as_dir=$as_dir/ ;; 12193 esac 12194 for ac_exec_ext in '' $ac_executable_extensions; do 12195 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12196 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 12197 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12198 break 2 12199 fi 12200done 12201 done 12202IFS=$as_save_IFS 12203 12204fi 12205fi 12206OTOOL64=$ac_cv_prog_OTOOL64 12207if test -n "$OTOOL64"; then 12208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 12209printf "%s\n" "$OTOOL64" >&6; } 12210else 12211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12212printf "%s\n" "no" >&6; } 12213fi 12214 12215 12216fi 12217if test -z "$ac_cv_prog_OTOOL64"; then 12218 ac_ct_OTOOL64=$OTOOL64 12219 # Extract the first word of "otool64", so it can be a program name with args. 12220set dummy otool64; ac_word=$2 12221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12222printf %s "checking for $ac_word... " >&6; } 12223if test ${ac_cv_prog_ac_ct_OTOOL64+y} 12224then : 12225 printf %s "(cached) " >&6 12226else $as_nop 12227 if test -n "$ac_ct_OTOOL64"; then 12228 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 12229else 12230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12231for as_dir in $PATH 12232do 12233 IFS=$as_save_IFS 12234 case $as_dir in #((( 12235 '') as_dir=./ ;; 12236 */) ;; 12237 *) as_dir=$as_dir/ ;; 12238 esac 12239 for ac_exec_ext in '' $ac_executable_extensions; do 12240 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12241 ac_cv_prog_ac_ct_OTOOL64="otool64" 12242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12243 break 2 12244 fi 12245done 12246 done 12247IFS=$as_save_IFS 12248 12249fi 12250fi 12251ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 12252if test -n "$ac_ct_OTOOL64"; then 12253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 12254printf "%s\n" "$ac_ct_OTOOL64" >&6; } 12255else 12256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12257printf "%s\n" "no" >&6; } 12258fi 12259 12260 if test "x$ac_ct_OTOOL64" = x; then 12261 OTOOL64=":" 12262 else 12263 case $cross_compiling:$ac_tool_warned in 12264yes:) 12265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12266printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12267ac_tool_warned=yes ;; 12268esac 12269 OTOOL64=$ac_ct_OTOOL64 12270 fi 12271else 12272 OTOOL64="$ac_cv_prog_OTOOL64" 12273fi 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 12302printf %s "checking for -single_module linker flag... " >&6; } 12303if test ${lt_cv_apple_cc_single_mod+y} 12304then : 12305 printf %s "(cached) " >&6 12306else $as_nop 12307 lt_cv_apple_cc_single_mod=no 12308 if test -z "$LT_MULTI_MODULE"; then 12309 # By default we will add the -single_module flag. You can override 12310 # by either setting the environment variable LT_MULTI_MODULE 12311 # non-empty at configure time, or by adding -multi_module to the 12312 # link flags. 12313 rm -rf libconftest.dylib* 12314 echo "int foo(void){return 1;}" > conftest.c 12315 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 12316-dynamiclib -Wl,-single_module conftest.c" >&5 12317 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 12318 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 12319 _lt_result=$? 12320 # If there is a non-empty error log, and "single_module" 12321 # appears in it, assume the flag caused a linker warning 12322 if test -s conftest.err && $GREP single_module conftest.err; then 12323 cat conftest.err >&5 12324 # Otherwise, if the output was created with a 0 exit code from 12325 # the compiler, it worked. 12326 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 12327 lt_cv_apple_cc_single_mod=yes 12328 else 12329 cat conftest.err >&5 12330 fi 12331 rm -rf libconftest.dylib* 12332 rm -f conftest.* 12333 fi 12334fi 12335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 12336printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 12337 12338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 12339printf %s "checking for -exported_symbols_list linker flag... " >&6; } 12340if test ${lt_cv_ld_exported_symbols_list+y} 12341then : 12342 printf %s "(cached) " >&6 12343else $as_nop 12344 lt_cv_ld_exported_symbols_list=no 12345 save_LDFLAGS=$LDFLAGS 12346 echo "_main" > conftest.sym 12347 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 12348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12349/* end confdefs.h. */ 12350 12351int 12352main (void) 12353{ 12354 12355 ; 12356 return 0; 12357} 12358_ACEOF 12359if ac_fn_c_try_link "$LINENO" 12360then : 12361 lt_cv_ld_exported_symbols_list=yes 12362else $as_nop 12363 lt_cv_ld_exported_symbols_list=no 12364fi 12365rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12366 conftest$ac_exeext conftest.$ac_ext 12367 LDFLAGS=$save_LDFLAGS 12368 12369fi 12370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 12371printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 12372 12373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 12374printf %s "checking for -force_load linker flag... " >&6; } 12375if test ${lt_cv_ld_force_load+y} 12376then : 12377 printf %s "(cached) " >&6 12378else $as_nop 12379 lt_cv_ld_force_load=no 12380 cat > conftest.c << _LT_EOF 12381int forced_loaded() { return 2;} 12382_LT_EOF 12383 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 12384 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 12385 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 12386 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 12387 echo "$RANLIB libconftest.a" >&5 12388 $RANLIB libconftest.a 2>&5 12389 cat > conftest.c << _LT_EOF 12390int main() { return 0;} 12391_LT_EOF 12392 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 12393 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 12394 _lt_result=$? 12395 if test -s conftest.err && $GREP force_load conftest.err; then 12396 cat conftest.err >&5 12397 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 12398 lt_cv_ld_force_load=yes 12399 else 12400 cat conftest.err >&5 12401 fi 12402 rm -f conftest.err libconftest.a conftest conftest.c 12403 rm -rf conftest.dSYM 12404 12405fi 12406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 12407printf "%s\n" "$lt_cv_ld_force_load" >&6; } 12408 case $host_os in 12409 rhapsody* | darwin1.[012]) 12410 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 12411 darwin1.*) 12412 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 12413 darwin*) 12414 case $MACOSX_DEPLOYMENT_TARGET,$host in 12415 10.[012],*|,*powerpc*-darwin[5-8]*) 12416 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 12417 *) 12418 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 12419 esac 12420 ;; 12421 esac 12422 if test yes = "$lt_cv_apple_cc_single_mod"; then 12423 _lt_dar_single_mod='$single_module' 12424 fi 12425 if test yes = "$lt_cv_ld_exported_symbols_list"; then 12426 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 12427 else 12428 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 12429 fi 12430 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 12431 _lt_dsymutil='~$DSYMUTIL $lib || :' 12432 else 12433 _lt_dsymutil= 12434 fi 12435 ;; 12436 esac 12437 12438# func_munge_path_list VARIABLE PATH 12439# ----------------------------------- 12440# VARIABLE is name of variable containing _space_ separated list of 12441# directories to be munged by the contents of PATH, which is string 12442# having a format: 12443# "DIR[:DIR]:" 12444# string "DIR[ DIR]" will be prepended to VARIABLE 12445# ":DIR[:DIR]" 12446# string "DIR[ DIR]" will be appended to VARIABLE 12447# "DIRP[:DIRP]::[DIRA:]DIRA" 12448# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 12449# "DIRA[ DIRA]" will be appended to VARIABLE 12450# "DIR[:DIR]" 12451# VARIABLE will be replaced by "DIR[ DIR]" 12452func_munge_path_list () 12453{ 12454 case x$2 in 12455 x) 12456 ;; 12457 *:) 12458 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 12459 ;; 12460 x:*) 12461 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 12462 ;; 12463 *::*) 12464 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 12465 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 12466 ;; 12467 *) 12468 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 12469 ;; 12470 esac 12471} 12472 12473ac_header= ac_cache= 12474for ac_item in $ac_header_c_list 12475do 12476 if test $ac_cache; then 12477 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 12478 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 12479 printf "%s\n" "#define $ac_item 1" >> confdefs.h 12480 fi 12481 ac_header= ac_cache= 12482 elif test $ac_header; then 12483 ac_cache=$ac_item 12484 else 12485 ac_header=$ac_item 12486 fi 12487done 12488 12489 12490 12491 12492 12493 12494 12495 12496if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 12497then : 12498 12499printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 12500 12501fi 12502ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 12503" 12504if test "x$ac_cv_header_dlfcn_h" = xyes 12505then : 12506 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 12507 12508fi 12509 12510 12511 12512func_stripname_cnf () 12513{ 12514 case $2 in 12515 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 12516 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 12517 esac 12518} # func_stripname_cnf 12519 12520# ------------------------------------ # 12521# Determine libtool default behavior # 12522# ------------------------------------ # 12523 12524# 12525# Default behavior is to enable shared and static libraries on systems 12526# where libtool knows how to build both library versions, and does not 12527# require separate configuration and build runs for each flavor. 12528# 12529 12530xc_lt_want_enable_shared='yes' 12531xc_lt_want_enable_static='yes' 12532 12533# 12534# User may have disabled shared or static libraries. 12535# 12536case "x$enable_shared" in # ( 12537 xno) 12538 xc_lt_want_enable_shared='no' 12539 ;; 12540esac 12541case "x$enable_static" in # ( 12542 xno) 12543 xc_lt_want_enable_static='no' 12544 ;; 12545esac 12546if test "x$xc_lt_want_enable_shared" = 'xno' && 12547 test "x$xc_lt_want_enable_static" = 'xno'; then 12548 as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5 12549fi 12550 12551# 12552# Default behavior on systems that require independent configuration 12553# and build runs for shared and static is to enable shared libraries 12554# and disable static ones. On these systems option '--disable-shared' 12555# must be used in order to build a proper static library. 12556# 12557 12558if test "x$xc_lt_want_enable_shared" = 'xyes' && 12559 test "x$xc_lt_want_enable_static" = 'xyes'; then 12560 case $host_os in # ( 12561 mingw* | pw32* | cegcc* | os2* | aix*) 12562 xc_lt_want_enable_static='no' 12563 ;; 12564 esac 12565fi 12566 12567# 12568# Make libtool aware of current shared and static library preferences 12569# taking in account that, depending on host characteristics, libtool 12570# may modify these option preferences later in this configure script. 12571# 12572 12573enable_shared=$xc_lt_want_enable_shared 12574enable_static=$xc_lt_want_enable_static 12575 12576# 12577# Default behavior is to build PIC objects for shared libraries and 12578# non-PIC objects for static libraries. 12579# 12580 12581xc_lt_want_with_pic='default' 12582 12583# 12584# User may have specified PIC preference. 12585# 12586 12587case "x$with_pic" in # (( 12588 xno) 12589 xc_lt_want_with_pic='no' 12590 ;; 12591 xyes) 12592 xc_lt_want_with_pic='yes' 12593 ;; 12594esac 12595 12596# 12597# Default behavior on some systems where building a shared library out 12598# of non-PIC compiled objects will fail with following linker error 12599# "relocation R_X86_64_32 can not be used when making a shared object" 12600# is to build PIC objects even for static libraries. This behavior may 12601# be overriden using 'configure --disable-shared --without-pic'. 12602# 12603 12604if test "x$xc_lt_want_with_pic" = 'xdefault'; then 12605 case $host_cpu in # ( 12606 x86_64 | amd64 | ia64) 12607 case $host_os in # ( 12608 linux* | freebsd*) 12609 xc_lt_want_with_pic='yes' 12610 ;; 12611 esac 12612 ;; 12613 esac 12614fi 12615 12616# 12617# Make libtool aware of current PIC preference taking in account that, 12618# depending on host characteristics, libtool may modify PIC default 12619# behavior to fit host system idiosyncrasies later in this script. 12620# 12621 12622with_pic=$xc_lt_want_with_pic 12623 12624## ----------------------- ## 12625## Start of libtool code ## 12626## ----------------------- ## 12627 12628 12629 12630 12631# Set options 12632enable_win32_dll=yes 12633 12634case $host in 12635*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 12636 if test -n "$ac_tool_prefix"; then 12637 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 12638set dummy ${ac_tool_prefix}as; ac_word=$2 12639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12640printf %s "checking for $ac_word... " >&6; } 12641if test ${ac_cv_prog_AS+y} 12642then : 12643 printf %s "(cached) " >&6 12644else $as_nop 12645 if test -n "$AS"; then 12646 ac_cv_prog_AS="$AS" # Let the user override the test. 12647else 12648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12649for as_dir in $PATH 12650do 12651 IFS=$as_save_IFS 12652 case $as_dir in #((( 12653 '') as_dir=./ ;; 12654 */) ;; 12655 *) as_dir=$as_dir/ ;; 12656 esac 12657 for ac_exec_ext in '' $ac_executable_extensions; do 12658 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12659 ac_cv_prog_AS="${ac_tool_prefix}as" 12660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12661 break 2 12662 fi 12663done 12664 done 12665IFS=$as_save_IFS 12666 12667fi 12668fi 12669AS=$ac_cv_prog_AS 12670if test -n "$AS"; then 12671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 12672printf "%s\n" "$AS" >&6; } 12673else 12674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12675printf "%s\n" "no" >&6; } 12676fi 12677 12678 12679fi 12680if test -z "$ac_cv_prog_AS"; then 12681 ac_ct_AS=$AS 12682 # Extract the first word of "as", so it can be a program name with args. 12683set dummy as; ac_word=$2 12684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12685printf %s "checking for $ac_word... " >&6; } 12686if test ${ac_cv_prog_ac_ct_AS+y} 12687then : 12688 printf %s "(cached) " >&6 12689else $as_nop 12690 if test -n "$ac_ct_AS"; then 12691 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 12692else 12693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12694for as_dir in $PATH 12695do 12696 IFS=$as_save_IFS 12697 case $as_dir in #((( 12698 '') as_dir=./ ;; 12699 */) ;; 12700 *) as_dir=$as_dir/ ;; 12701 esac 12702 for ac_exec_ext in '' $ac_executable_extensions; do 12703 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12704 ac_cv_prog_ac_ct_AS="as" 12705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12706 break 2 12707 fi 12708done 12709 done 12710IFS=$as_save_IFS 12711 12712fi 12713fi 12714ac_ct_AS=$ac_cv_prog_ac_ct_AS 12715if test -n "$ac_ct_AS"; then 12716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 12717printf "%s\n" "$ac_ct_AS" >&6; } 12718else 12719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12720printf "%s\n" "no" >&6; } 12721fi 12722 12723 if test "x$ac_ct_AS" = x; then 12724 AS="false" 12725 else 12726 case $cross_compiling:$ac_tool_warned in 12727yes:) 12728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12729printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12730ac_tool_warned=yes ;; 12731esac 12732 AS=$ac_ct_AS 12733 fi 12734else 12735 AS="$ac_cv_prog_AS" 12736fi 12737 12738 if test -n "$ac_tool_prefix"; then 12739 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12740set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12742printf %s "checking for $ac_word... " >&6; } 12743if test ${ac_cv_prog_DLLTOOL+y} 12744then : 12745 printf %s "(cached) " >&6 12746else $as_nop 12747 if test -n "$DLLTOOL"; then 12748 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12749else 12750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12751for as_dir in $PATH 12752do 12753 IFS=$as_save_IFS 12754 case $as_dir in #((( 12755 '') as_dir=./ ;; 12756 */) ;; 12757 *) as_dir=$as_dir/ ;; 12758 esac 12759 for ac_exec_ext in '' $ac_executable_extensions; do 12760 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12761 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12763 break 2 12764 fi 12765done 12766 done 12767IFS=$as_save_IFS 12768 12769fi 12770fi 12771DLLTOOL=$ac_cv_prog_DLLTOOL 12772if test -n "$DLLTOOL"; then 12773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12774printf "%s\n" "$DLLTOOL" >&6; } 12775else 12776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12777printf "%s\n" "no" >&6; } 12778fi 12779 12780 12781fi 12782if test -z "$ac_cv_prog_DLLTOOL"; then 12783 ac_ct_DLLTOOL=$DLLTOOL 12784 # Extract the first word of "dlltool", so it can be a program name with args. 12785set dummy dlltool; ac_word=$2 12786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12787printf %s "checking for $ac_word... " >&6; } 12788if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 12789then : 12790 printf %s "(cached) " >&6 12791else $as_nop 12792 if test -n "$ac_ct_DLLTOOL"; then 12793 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12794else 12795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12796for as_dir in $PATH 12797do 12798 IFS=$as_save_IFS 12799 case $as_dir in #((( 12800 '') as_dir=./ ;; 12801 */) ;; 12802 *) as_dir=$as_dir/ ;; 12803 esac 12804 for ac_exec_ext in '' $ac_executable_extensions; do 12805 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12806 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12807 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12808 break 2 12809 fi 12810done 12811 done 12812IFS=$as_save_IFS 12813 12814fi 12815fi 12816ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12817if test -n "$ac_ct_DLLTOOL"; then 12818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12819printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 12820else 12821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12822printf "%s\n" "no" >&6; } 12823fi 12824 12825 if test "x$ac_ct_DLLTOOL" = x; then 12826 DLLTOOL="false" 12827 else 12828 case $cross_compiling:$ac_tool_warned in 12829yes:) 12830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12831printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12832ac_tool_warned=yes ;; 12833esac 12834 DLLTOOL=$ac_ct_DLLTOOL 12835 fi 12836else 12837 DLLTOOL="$ac_cv_prog_DLLTOOL" 12838fi 12839 12840 if test -n "$ac_tool_prefix"; then 12841 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 12842set dummy ${ac_tool_prefix}objdump; ac_word=$2 12843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12844printf %s "checking for $ac_word... " >&6; } 12845if test ${ac_cv_prog_OBJDUMP+y} 12846then : 12847 printf %s "(cached) " >&6 12848else $as_nop 12849 if test -n "$OBJDUMP"; then 12850 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 12851else 12852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12853for as_dir in $PATH 12854do 12855 IFS=$as_save_IFS 12856 case $as_dir in #((( 12857 '') as_dir=./ ;; 12858 */) ;; 12859 *) as_dir=$as_dir/ ;; 12860 esac 12861 for ac_exec_ext in '' $ac_executable_extensions; do 12862 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12863 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 12864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12865 break 2 12866 fi 12867done 12868 done 12869IFS=$as_save_IFS 12870 12871fi 12872fi 12873OBJDUMP=$ac_cv_prog_OBJDUMP 12874if test -n "$OBJDUMP"; then 12875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 12876printf "%s\n" "$OBJDUMP" >&6; } 12877else 12878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12879printf "%s\n" "no" >&6; } 12880fi 12881 12882 12883fi 12884if test -z "$ac_cv_prog_OBJDUMP"; then 12885 ac_ct_OBJDUMP=$OBJDUMP 12886 # Extract the first word of "objdump", so it can be a program name with args. 12887set dummy objdump; ac_word=$2 12888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12889printf %s "checking for $ac_word... " >&6; } 12890if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 12891then : 12892 printf %s "(cached) " >&6 12893else $as_nop 12894 if test -n "$ac_ct_OBJDUMP"; then 12895 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 12896else 12897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12898for as_dir in $PATH 12899do 12900 IFS=$as_save_IFS 12901 case $as_dir in #((( 12902 '') as_dir=./ ;; 12903 */) ;; 12904 *) as_dir=$as_dir/ ;; 12905 esac 12906 for ac_exec_ext in '' $ac_executable_extensions; do 12907 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12908 ac_cv_prog_ac_ct_OBJDUMP="objdump" 12909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12910 break 2 12911 fi 12912done 12913 done 12914IFS=$as_save_IFS 12915 12916fi 12917fi 12918ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 12919if test -n "$ac_ct_OBJDUMP"; then 12920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 12921printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 12922else 12923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12924printf "%s\n" "no" >&6; } 12925fi 12926 12927 if test "x$ac_ct_OBJDUMP" = x; then 12928 OBJDUMP="false" 12929 else 12930 case $cross_compiling:$ac_tool_warned in 12931yes:) 12932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12933printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12934ac_tool_warned=yes ;; 12935esac 12936 OBJDUMP=$ac_ct_OBJDUMP 12937 fi 12938else 12939 OBJDUMP="$ac_cv_prog_OBJDUMP" 12940fi 12941 12942 ;; 12943esac 12944 12945test -z "$AS" && AS=as 12946 12947 12948 12949 12950 12951test -z "$DLLTOOL" && DLLTOOL=dlltool 12952 12953 12954 12955 12956 12957test -z "$OBJDUMP" && OBJDUMP=objdump 12958 12959 12960 12961 12962 12963 12964 12965 enable_dlopen=no 12966 12967 12968 12969 # Check whether --enable-shared was given. 12970if test ${enable_shared+y} 12971then : 12972 enableval=$enable_shared; p=${PACKAGE-default} 12973 case $enableval in 12974 yes) enable_shared=yes ;; 12975 no) enable_shared=no ;; 12976 *) 12977 enable_shared=no 12978 # Look at the argument we got. We use all the common list separators. 12979 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 12980 for pkg in $enableval; do 12981 IFS=$lt_save_ifs 12982 if test "X$pkg" = "X$p"; then 12983 enable_shared=yes 12984 fi 12985 done 12986 IFS=$lt_save_ifs 12987 ;; 12988 esac 12989else $as_nop 12990 enable_shared=yes 12991fi 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 # Check whether --enable-static was given. 13002if test ${enable_static+y} 13003then : 13004 enableval=$enable_static; p=${PACKAGE-default} 13005 case $enableval in 13006 yes) enable_static=yes ;; 13007 no) enable_static=no ;; 13008 *) 13009 enable_static=no 13010 # Look at the argument we got. We use all the common list separators. 13011 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 13012 for pkg in $enableval; do 13013 IFS=$lt_save_ifs 13014 if test "X$pkg" = "X$p"; then 13015 enable_static=yes 13016 fi 13017 done 13018 IFS=$lt_save_ifs 13019 ;; 13020 esac 13021else $as_nop 13022 enable_static=yes 13023fi 13024 13025 13026 13027 13028 13029 13030 13031 13032 13033 13034# Check whether --with-pic was given. 13035if test ${with_pic+y} 13036then : 13037 withval=$with_pic; lt_p=${PACKAGE-default} 13038 case $withval in 13039 yes|no) pic_mode=$withval ;; 13040 *) 13041 pic_mode=default 13042 # Look at the argument we got. We use all the common list separators. 13043 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 13044 for lt_pkg in $withval; do 13045 IFS=$lt_save_ifs 13046 if test "X$lt_pkg" = "X$lt_p"; then 13047 pic_mode=yes 13048 fi 13049 done 13050 IFS=$lt_save_ifs 13051 ;; 13052 esac 13053else $as_nop 13054 pic_mode=default 13055fi 13056 13057 13058 13059 13060 13061 13062 13063 13064 # Check whether --enable-fast-install was given. 13065if test ${enable_fast_install+y} 13066then : 13067 enableval=$enable_fast_install; p=${PACKAGE-default} 13068 case $enableval in 13069 yes) enable_fast_install=yes ;; 13070 no) enable_fast_install=no ;; 13071 *) 13072 enable_fast_install=no 13073 # Look at the argument we got. We use all the common list separators. 13074 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 13075 for pkg in $enableval; do 13076 IFS=$lt_save_ifs 13077 if test "X$pkg" = "X$p"; then 13078 enable_fast_install=yes 13079 fi 13080 done 13081 IFS=$lt_save_ifs 13082 ;; 13083 esac 13084else $as_nop 13085 enable_fast_install=yes 13086fi 13087 13088 13089 13090 13091 13092 13093 13094 13095 shared_archive_member_spec= 13096case $host,$enable_shared in 13097power*-*-aix[5-9]*,yes) 13098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 13099printf %s "checking which variant of shared library versioning to provide... " >&6; } 13100 13101# Check whether --with-aix-soname was given. 13102if test ${with_aix_soname+y} 13103then : 13104 withval=$with_aix_soname; case $withval in 13105 aix|svr4|both) 13106 ;; 13107 *) 13108 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 13109 ;; 13110 esac 13111 lt_cv_with_aix_soname=$with_aix_soname 13112else $as_nop 13113 if test ${lt_cv_with_aix_soname+y} 13114then : 13115 printf %s "(cached) " >&6 13116else $as_nop 13117 lt_cv_with_aix_soname=aix 13118fi 13119 13120 with_aix_soname=$lt_cv_with_aix_soname 13121fi 13122 13123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 13124printf "%s\n" "$with_aix_soname" >&6; } 13125 if test aix != "$with_aix_soname"; then 13126 # For the AIX way of multilib, we name the shared archive member 13127 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 13128 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 13129 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 13130 # the AIX toolchain works better with OBJECT_MODE set (default 32). 13131 if test 64 = "${OBJECT_MODE-32}"; then 13132 shared_archive_member_spec=shr_64 13133 else 13134 shared_archive_member_spec=shr 13135 fi 13136 fi 13137 ;; 13138*) 13139 with_aix_soname=aix 13140 ;; 13141esac 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152# This can be used to rebuild libtool when needed 13153LIBTOOL_DEPS=$ltmain 13154 13155# Always use our own libtool. 13156LIBTOOL='$(SHELL) $(top_builddir)/libtool' 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187test -z "$LN_S" && LN_S="ln -s" 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202if test -n "${ZSH_VERSION+set}"; then 13203 setopt NO_GLOB_SUBST 13204fi 13205 13206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 13207printf %s "checking for objdir... " >&6; } 13208if test ${lt_cv_objdir+y} 13209then : 13210 printf %s "(cached) " >&6 13211else $as_nop 13212 rm -f .libs 2>/dev/null 13213mkdir .libs 2>/dev/null 13214if test -d .libs; then 13215 lt_cv_objdir=.libs 13216else 13217 # MS-DOS does not allow filenames that begin with a dot. 13218 lt_cv_objdir=_libs 13219fi 13220rmdir .libs 2>/dev/null 13221fi 13222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 13223printf "%s\n" "$lt_cv_objdir" >&6; } 13224objdir=$lt_cv_objdir 13225 13226 13227 13228 13229 13230printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 13231 13232 13233 13234 13235case $host_os in 13236aix3*) 13237 # AIX sometimes has problems with the GCC collect2 program. For some 13238 # reason, if we set the COLLECT_NAMES environment variable, the problems 13239 # vanish in a puff of smoke. 13240 if test set != "${COLLECT_NAMES+set}"; then 13241 COLLECT_NAMES= 13242 export COLLECT_NAMES 13243 fi 13244 ;; 13245esac 13246 13247# Global variables: 13248ofile=libtool 13249can_build_shared=yes 13250 13251# All known linkers require a '.a' archive for static linking (except MSVC and 13252# ICC, which need '.lib'). 13253libext=a 13254 13255with_gnu_ld=$lt_cv_prog_gnu_ld 13256 13257old_CC=$CC 13258old_CFLAGS=$CFLAGS 13259 13260# Set sane defaults for various variables 13261test -z "$CC" && CC=cc 13262test -z "$LTCC" && LTCC=$CC 13263test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 13264test -z "$LD" && LD=ld 13265test -z "$ac_objext" && ac_objext=o 13266 13267func_cc_basename $compiler 13268cc_basename=$func_cc_basename_result 13269 13270 13271# Only perform the check for file, if the check method requires it 13272test -z "$MAGIC_CMD" && MAGIC_CMD=file 13273case $deplibs_check_method in 13274file_magic*) 13275 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 13276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 13277printf %s "checking for ${ac_tool_prefix}file... " >&6; } 13278if test ${lt_cv_path_MAGIC_CMD+y} 13279then : 13280 printf %s "(cached) " >&6 13281else $as_nop 13282 case $MAGIC_CMD in 13283[\\/*] | ?:[\\/]*) 13284 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 13285 ;; 13286*) 13287 lt_save_MAGIC_CMD=$MAGIC_CMD 13288 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13289 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 13290 for ac_dir in $ac_dummy; do 13291 IFS=$lt_save_ifs 13292 test -z "$ac_dir" && ac_dir=. 13293 if test -f "$ac_dir/${ac_tool_prefix}file"; then 13294 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 13295 if test -n "$file_magic_test_file"; then 13296 case $deplibs_check_method in 13297 "file_magic "*) 13298 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 13299 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 13300 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 13301 $EGREP "$file_magic_regex" > /dev/null; then 13302 : 13303 else 13304 cat <<_LT_EOF 1>&2 13305 13306*** Warning: the command libtool uses to detect shared libraries, 13307*** $file_magic_cmd, produces output that libtool cannot recognize. 13308*** The result is that libtool may fail to recognize shared libraries 13309*** as such. This will affect the creation of libtool libraries that 13310*** depend on shared libraries, but programs linked with such libtool 13311*** libraries will work regardless of this problem. Nevertheless, you 13312*** may want to report the problem to your system manager and/or to 13313*** bug-libtool@gnu.org 13314 13315_LT_EOF 13316 fi ;; 13317 esac 13318 fi 13319 break 13320 fi 13321 done 13322 IFS=$lt_save_ifs 13323 MAGIC_CMD=$lt_save_MAGIC_CMD 13324 ;; 13325esac 13326fi 13327 13328MAGIC_CMD=$lt_cv_path_MAGIC_CMD 13329if test -n "$MAGIC_CMD"; then 13330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 13331printf "%s\n" "$MAGIC_CMD" >&6; } 13332else 13333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13334printf "%s\n" "no" >&6; } 13335fi 13336 13337 13338 13339 13340 13341if test -z "$lt_cv_path_MAGIC_CMD"; then 13342 if test -n "$ac_tool_prefix"; then 13343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 13344printf %s "checking for file... " >&6; } 13345if test ${lt_cv_path_MAGIC_CMD+y} 13346then : 13347 printf %s "(cached) " >&6 13348else $as_nop 13349 case $MAGIC_CMD in 13350[\\/*] | ?:[\\/]*) 13351 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 13352 ;; 13353*) 13354 lt_save_MAGIC_CMD=$MAGIC_CMD 13355 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13356 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 13357 for ac_dir in $ac_dummy; do 13358 IFS=$lt_save_ifs 13359 test -z "$ac_dir" && ac_dir=. 13360 if test -f "$ac_dir/file"; then 13361 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 13362 if test -n "$file_magic_test_file"; then 13363 case $deplibs_check_method in 13364 "file_magic "*) 13365 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 13366 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 13367 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 13368 $EGREP "$file_magic_regex" > /dev/null; then 13369 : 13370 else 13371 cat <<_LT_EOF 1>&2 13372 13373*** Warning: the command libtool uses to detect shared libraries, 13374*** $file_magic_cmd, produces output that libtool cannot recognize. 13375*** The result is that libtool may fail to recognize shared libraries 13376*** as such. This will affect the creation of libtool libraries that 13377*** depend on shared libraries, but programs linked with such libtool 13378*** libraries will work regardless of this problem. Nevertheless, you 13379*** may want to report the problem to your system manager and/or to 13380*** bug-libtool@gnu.org 13381 13382_LT_EOF 13383 fi ;; 13384 esac 13385 fi 13386 break 13387 fi 13388 done 13389 IFS=$lt_save_ifs 13390 MAGIC_CMD=$lt_save_MAGIC_CMD 13391 ;; 13392esac 13393fi 13394 13395MAGIC_CMD=$lt_cv_path_MAGIC_CMD 13396if test -n "$MAGIC_CMD"; then 13397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 13398printf "%s\n" "$MAGIC_CMD" >&6; } 13399else 13400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13401printf "%s\n" "no" >&6; } 13402fi 13403 13404 13405 else 13406 MAGIC_CMD=: 13407 fi 13408fi 13409 13410 fi 13411 ;; 13412esac 13413 13414# Use C for the default configuration in the libtool script 13415 13416lt_save_CC=$CC 13417ac_ext=c 13418ac_cpp='$CPP $CPPFLAGS' 13419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13421ac_compiler_gnu=$ac_cv_c_compiler_gnu 13422 13423 13424# Source file extension for C test sources. 13425ac_ext=c 13426 13427# Object file extension for compiled C test sources. 13428objext=o 13429objext=$objext 13430 13431# Code to be used in simple compile tests 13432lt_simple_compile_test_code="int some_variable = 0;" 13433 13434# Code to be used in simple link tests 13435lt_simple_link_test_code='int main(){return(0);}' 13436 13437 13438 13439 13440 13441 13442 13443# If no C compiler was specified, use CC. 13444LTCC=${LTCC-"$CC"} 13445 13446# If no C compiler flags were specified, use CFLAGS. 13447LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13448 13449# Allow CC to be a program name with arguments. 13450compiler=$CC 13451 13452# Save the default compiler, since it gets overwritten when the other 13453# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 13454compiler_DEFAULT=$CC 13455 13456# save warnings/boilerplate of simple test code 13457ac_outfile=conftest.$ac_objext 13458echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13459eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13460_lt_compiler_boilerplate=`cat conftest.err` 13461$RM conftest* 13462 13463ac_outfile=conftest.$ac_objext 13464echo "$lt_simple_link_test_code" >conftest.$ac_ext 13465eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13466_lt_linker_boilerplate=`cat conftest.err` 13467$RM -r conftest* 13468 13469 13470## CAVEAT EMPTOR: 13471## There is no encapsulation within the following macros, do not change 13472## the running order or otherwise move them around unless you know exactly 13473## what you are doing... 13474if test -n "$compiler"; then 13475 13476lt_prog_compiler_no_builtin_flag= 13477 13478if test yes = "$GCC"; then 13479 case $cc_basename in 13480 nvcc*) 13481 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 13482 *) 13483 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 13484 esac 13485 13486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 13487printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 13488if test ${lt_cv_prog_compiler_rtti_exceptions+y} 13489then : 13490 printf %s "(cached) " >&6 13491else $as_nop 13492 lt_cv_prog_compiler_rtti_exceptions=no 13493 ac_outfile=conftest.$ac_objext 13494 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13495 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 13496 # Insert the option either (1) after the last *FLAGS variable, or 13497 # (2) before a word containing "conftest.", or (3) at the end. 13498 # Note that $ac_compile itself does not contain backslashes and begins 13499 # with a dollar sign (not a hyphen), so the echo should work correctly. 13500 # The option is referenced via a variable to avoid confusing sed. 13501 lt_compile=`echo "$ac_compile" | $SED \ 13502 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13504 -e 's:$: $lt_compiler_flag:'` 13505 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13506 (eval "$lt_compile" 2>conftest.err) 13507 ac_status=$? 13508 cat conftest.err >&5 13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13510 if (exit $ac_status) && test -s "$ac_outfile"; then 13511 # The compiler can only warn and ignore the option if not recognized 13512 # So say no if there are warnings other than the usual output. 13513 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 13514 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13515 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13516 lt_cv_prog_compiler_rtti_exceptions=yes 13517 fi 13518 fi 13519 $RM conftest* 13520 13521fi 13522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 13523printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 13524 13525if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 13526 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 13527else 13528 : 13529fi 13530 13531fi 13532 13533 13534 13535 13536 13537 13538 lt_prog_compiler_wl= 13539lt_prog_compiler_pic= 13540lt_prog_compiler_static= 13541 13542 13543 if test yes = "$GCC"; then 13544 lt_prog_compiler_wl='-Wl,' 13545 lt_prog_compiler_static='-static' 13546 13547 case $host_os in 13548 aix*) 13549 # All AIX code is PIC. 13550 if test ia64 = "$host_cpu"; then 13551 # AIX 5 now supports IA64 processor 13552 lt_prog_compiler_static='-Bstatic' 13553 fi 13554 lt_prog_compiler_pic='-fPIC' 13555 ;; 13556 13557 amigaos*) 13558 case $host_cpu in 13559 powerpc) 13560 # see comment about AmigaOS4 .so support 13561 lt_prog_compiler_pic='-fPIC' 13562 ;; 13563 m68k) 13564 # FIXME: we need at least 68020 code to build shared libraries, but 13565 # adding the '-m68020' flag to GCC prevents building anything better, 13566 # like '-m68040'. 13567 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 13568 ;; 13569 esac 13570 ;; 13571 13572 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13573 # PIC is the default for these OSes. 13574 ;; 13575 13576 mingw* | cygwin* | pw32* | os2* | cegcc*) 13577 # This hack is so that the source file can tell whether it is being 13578 # built for inclusion in a dll (and should export symbols for example). 13579 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13580 # (--disable-auto-import) libraries 13581 lt_prog_compiler_pic='-DDLL_EXPORT' 13582 case $host_os in 13583 os2*) 13584 lt_prog_compiler_static='$wl-static' 13585 ;; 13586 esac 13587 ;; 13588 13589 darwin* | rhapsody*) 13590 # PIC is the default on this platform 13591 # Common symbols not allowed in MH_DYLIB files 13592 lt_prog_compiler_pic='-fno-common' 13593 ;; 13594 13595 haiku*) 13596 # PIC is the default for Haiku. 13597 # The "-static" flag exists, but is broken. 13598 lt_prog_compiler_static= 13599 ;; 13600 13601 hpux*) 13602 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 13603 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 13604 # sets the default TLS model and affects inlining. 13605 case $host_cpu in 13606 hppa*64*) 13607 # +Z the default 13608 ;; 13609 *) 13610 lt_prog_compiler_pic='-fPIC' 13611 ;; 13612 esac 13613 ;; 13614 13615 interix[3-9]*) 13616 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13617 # Instead, we relocate shared libraries at runtime. 13618 ;; 13619 13620 msdosdjgpp*) 13621 # Just because we use GCC doesn't mean we suddenly get shared libraries 13622 # on systems that don't support them. 13623 lt_prog_compiler_can_build_shared=no 13624 enable_shared=no 13625 ;; 13626 13627 *nto* | *qnx*) 13628 # QNX uses GNU C++, but need to define -shared option too, otherwise 13629 # it will coredump. 13630 lt_prog_compiler_pic='-fPIC -shared' 13631 ;; 13632 13633 sysv4*MP*) 13634 if test -d /usr/nec; then 13635 lt_prog_compiler_pic=-Kconform_pic 13636 fi 13637 ;; 13638 13639 *) 13640 lt_prog_compiler_pic='-fPIC' 13641 ;; 13642 esac 13643 13644 case $cc_basename in 13645 nvcc*) # Cuda Compiler Driver 2.2 13646 lt_prog_compiler_wl='-Xlinker ' 13647 if test -n "$lt_prog_compiler_pic"; then 13648 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 13649 fi 13650 ;; 13651 esac 13652 else 13653 # PORTME Check for flag to pass linker flags through the system compiler. 13654 case $host_os in 13655 aix*) 13656 lt_prog_compiler_wl='-Wl,' 13657 if test ia64 = "$host_cpu"; then 13658 # AIX 5 now supports IA64 processor 13659 lt_prog_compiler_static='-Bstatic' 13660 else 13661 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 13662 fi 13663 ;; 13664 13665 darwin* | rhapsody*) 13666 # PIC is the default on this platform 13667 # Common symbols not allowed in MH_DYLIB files 13668 lt_prog_compiler_pic='-fno-common' 13669 case $cc_basename in 13670 nagfor*) 13671 # NAG Fortran compiler 13672 lt_prog_compiler_wl='-Wl,-Wl,,' 13673 lt_prog_compiler_pic='-PIC' 13674 lt_prog_compiler_static='-Bstatic' 13675 ;; 13676 esac 13677 ;; 13678 13679 mingw* | cygwin* | pw32* | os2* | cegcc*) 13680 # This hack is so that the source file can tell whether it is being 13681 # built for inclusion in a dll (and should export symbols for example). 13682 lt_prog_compiler_pic='-DDLL_EXPORT' 13683 case $host_os in 13684 os2*) 13685 lt_prog_compiler_static='$wl-static' 13686 ;; 13687 esac 13688 ;; 13689 13690 hpux9* | hpux10* | hpux11*) 13691 lt_prog_compiler_wl='-Wl,' 13692 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13693 # not for PA HP-UX. 13694 case $host_cpu in 13695 hppa*64*|ia64*) 13696 # +Z the default 13697 ;; 13698 *) 13699 lt_prog_compiler_pic='+Z' 13700 ;; 13701 esac 13702 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13703 lt_prog_compiler_static='$wl-a ${wl}archive' 13704 ;; 13705 13706 irix5* | irix6* | nonstopux*) 13707 lt_prog_compiler_wl='-Wl,' 13708 # PIC (with -KPIC) is the default. 13709 lt_prog_compiler_static='-non_shared' 13710 ;; 13711 13712 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13713 case $cc_basename in 13714 # old Intel for x86_64, which still supported -KPIC. 13715 ecc*) 13716 lt_prog_compiler_wl='-Wl,' 13717 lt_prog_compiler_pic='-KPIC' 13718 lt_prog_compiler_static='-static' 13719 ;; 13720 # flang / f18. f95 an alias for gfortran or flang on Debian 13721 flang* | f18* | f95*) 13722 lt_prog_compiler_wl='-Wl,' 13723 lt_prog_compiler_pic='-fPIC' 13724 lt_prog_compiler_static='-static' 13725 ;; 13726 # icc used to be incompatible with GCC. 13727 # ICC 10 doesn't accept -KPIC any more. 13728 icc* | ifort*) 13729 lt_prog_compiler_wl='-Wl,' 13730 lt_prog_compiler_pic='-fPIC' 13731 lt_prog_compiler_static='-static' 13732 ;; 13733 # Lahey Fortran 8.1. 13734 lf95*) 13735 lt_prog_compiler_wl='-Wl,' 13736 lt_prog_compiler_pic='--shared' 13737 lt_prog_compiler_static='--static' 13738 ;; 13739 nagfor*) 13740 # NAG Fortran compiler 13741 lt_prog_compiler_wl='-Wl,-Wl,,' 13742 lt_prog_compiler_pic='-PIC' 13743 lt_prog_compiler_static='-Bstatic' 13744 ;; 13745 tcc*) 13746 # Fabrice Bellard et al's Tiny C Compiler 13747 lt_prog_compiler_wl='-Wl,' 13748 lt_prog_compiler_pic='-fPIC' 13749 lt_prog_compiler_static='-static' 13750 ;; 13751 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 13752 # Portland Group compilers (*not* the Pentium gcc compiler, 13753 # which looks to be a dead project) 13754 lt_prog_compiler_wl='-Wl,' 13755 lt_prog_compiler_pic='-fpic' 13756 lt_prog_compiler_static='-Bstatic' 13757 ;; 13758 ccc*) 13759 lt_prog_compiler_wl='-Wl,' 13760 # All Alpha code is PIC. 13761 lt_prog_compiler_static='-non_shared' 13762 ;; 13763 xl* | bgxl* | bgf* | mpixl*) 13764 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 13765 lt_prog_compiler_wl='-Wl,' 13766 lt_prog_compiler_pic='-qpic' 13767 lt_prog_compiler_static='-qstaticlink' 13768 ;; 13769 *) 13770 case `$CC -V 2>&1 | $SED 5q` in 13771 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 13772 # Sun Fortran 8.3 passes all unrecognized flags to the linker 13773 lt_prog_compiler_pic='-KPIC' 13774 lt_prog_compiler_static='-Bstatic' 13775 lt_prog_compiler_wl='' 13776 ;; 13777 *Sun\ F* | *Sun*Fortran*) 13778 lt_prog_compiler_pic='-KPIC' 13779 lt_prog_compiler_static='-Bstatic' 13780 lt_prog_compiler_wl='-Qoption ld ' 13781 ;; 13782 *Sun\ C*) 13783 # Sun C 5.9 13784 lt_prog_compiler_pic='-KPIC' 13785 lt_prog_compiler_static='-Bstatic' 13786 lt_prog_compiler_wl='-Wl,' 13787 ;; 13788 *Intel*\ [CF]*Compiler*) 13789 lt_prog_compiler_wl='-Wl,' 13790 lt_prog_compiler_pic='-fPIC' 13791 lt_prog_compiler_static='-static' 13792 ;; 13793 *Portland\ Group*) 13794 lt_prog_compiler_wl='-Wl,' 13795 lt_prog_compiler_pic='-fpic' 13796 lt_prog_compiler_static='-Bstatic' 13797 ;; 13798 esac 13799 ;; 13800 esac 13801 ;; 13802 13803 newsos6) 13804 lt_prog_compiler_pic='-KPIC' 13805 lt_prog_compiler_static='-Bstatic' 13806 ;; 13807 13808 *nto* | *qnx*) 13809 # QNX uses GNU C++, but need to define -shared option too, otherwise 13810 # it will coredump. 13811 lt_prog_compiler_pic='-fPIC -shared' 13812 ;; 13813 13814 osf3* | osf4* | osf5*) 13815 lt_prog_compiler_wl='-Wl,' 13816 # All OSF/1 code is PIC. 13817 lt_prog_compiler_static='-non_shared' 13818 ;; 13819 13820 rdos*) 13821 lt_prog_compiler_static='-non_shared' 13822 ;; 13823 13824 solaris*) 13825 lt_prog_compiler_pic='-KPIC' 13826 lt_prog_compiler_static='-Bstatic' 13827 case $cc_basename in 13828 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 13829 lt_prog_compiler_wl='-Qoption ld ';; 13830 *) 13831 lt_prog_compiler_wl='-Wl,';; 13832 esac 13833 ;; 13834 13835 sunos4*) 13836 lt_prog_compiler_wl='-Qoption ld ' 13837 lt_prog_compiler_pic='-PIC' 13838 lt_prog_compiler_static='-Bstatic' 13839 ;; 13840 13841 sysv4 | sysv4.2uw2* | sysv4.3*) 13842 lt_prog_compiler_wl='-Wl,' 13843 lt_prog_compiler_pic='-KPIC' 13844 lt_prog_compiler_static='-Bstatic' 13845 ;; 13846 13847 sysv4*MP*) 13848 if test -d /usr/nec; then 13849 lt_prog_compiler_pic='-Kconform_pic' 13850 lt_prog_compiler_static='-Bstatic' 13851 fi 13852 ;; 13853 13854 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13855 lt_prog_compiler_wl='-Wl,' 13856 lt_prog_compiler_pic='-KPIC' 13857 lt_prog_compiler_static='-Bstatic' 13858 ;; 13859 13860 unicos*) 13861 lt_prog_compiler_wl='-Wl,' 13862 lt_prog_compiler_can_build_shared=no 13863 ;; 13864 13865 uts4*) 13866 lt_prog_compiler_pic='-pic' 13867 lt_prog_compiler_static='-Bstatic' 13868 ;; 13869 13870 *) 13871 lt_prog_compiler_can_build_shared=no 13872 ;; 13873 esac 13874 fi 13875 13876case $host_os in 13877 # For platforms that do not support PIC, -DPIC is meaningless: 13878 *djgpp*) 13879 lt_prog_compiler_pic= 13880 ;; 13881 *) 13882 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 13883 ;; 13884esac 13885 13886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 13887printf %s "checking for $compiler option to produce PIC... " >&6; } 13888if test ${lt_cv_prog_compiler_pic+y} 13889then : 13890 printf %s "(cached) " >&6 13891else $as_nop 13892 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 13893fi 13894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 13895printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 13896lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 13897 13898# 13899# Check to make sure the PIC flag actually works. 13900# 13901if test -n "$lt_prog_compiler_pic"; then 13902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 13903printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 13904if test ${lt_cv_prog_compiler_pic_works+y} 13905then : 13906 printf %s "(cached) " >&6 13907else $as_nop 13908 lt_cv_prog_compiler_pic_works=no 13909 ac_outfile=conftest.$ac_objext 13910 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13911 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 13912 # Insert the option either (1) after the last *FLAGS variable, or 13913 # (2) before a word containing "conftest.", or (3) at the end. 13914 # Note that $ac_compile itself does not contain backslashes and begins 13915 # with a dollar sign (not a hyphen), so the echo should work correctly. 13916 # The option is referenced via a variable to avoid confusing sed. 13917 lt_compile=`echo "$ac_compile" | $SED \ 13918 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13920 -e 's:$: $lt_compiler_flag:'` 13921 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13922 (eval "$lt_compile" 2>conftest.err) 13923 ac_status=$? 13924 cat conftest.err >&5 13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13926 if (exit $ac_status) && test -s "$ac_outfile"; then 13927 # The compiler can only warn and ignore the option if not recognized 13928 # So say no if there are warnings other than the usual output. 13929 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 13930 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13931 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13932 lt_cv_prog_compiler_pic_works=yes 13933 fi 13934 fi 13935 $RM conftest* 13936 13937fi 13938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 13939printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 13940 13941if test yes = "$lt_cv_prog_compiler_pic_works"; then 13942 case $lt_prog_compiler_pic in 13943 "" | " "*) ;; 13944 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 13945 esac 13946else 13947 lt_prog_compiler_pic= 13948 lt_prog_compiler_can_build_shared=no 13949fi 13950 13951fi 13952 13953 13954 13955 13956 13957 13958 13959 13960 13961 13962 13963# 13964# Check to make sure the static flag actually works. 13965# 13966wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 13967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13968printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13969if test ${lt_cv_prog_compiler_static_works+y} 13970then : 13971 printf %s "(cached) " >&6 13972else $as_nop 13973 lt_cv_prog_compiler_static_works=no 13974 save_LDFLAGS=$LDFLAGS 13975 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13976 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13977 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13978 # The linker can only warn and ignore the option if not recognized 13979 # So say no if there are warnings 13980 if test -s conftest.err; then 13981 # Append any errors to the config.log. 13982 cat conftest.err 1>&5 13983 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13984 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13985 if diff conftest.exp conftest.er2 >/dev/null; then 13986 lt_cv_prog_compiler_static_works=yes 13987 fi 13988 else 13989 lt_cv_prog_compiler_static_works=yes 13990 fi 13991 fi 13992 $RM -r conftest* 13993 LDFLAGS=$save_LDFLAGS 13994 13995fi 13996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 13997printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 13998 13999if test yes = "$lt_cv_prog_compiler_static_works"; then 14000 : 14001else 14002 lt_prog_compiler_static= 14003fi 14004 14005 14006 14007 14008 14009 14010 14011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14012printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14013if test ${lt_cv_prog_compiler_c_o+y} 14014then : 14015 printf %s "(cached) " >&6 14016else $as_nop 14017 lt_cv_prog_compiler_c_o=no 14018 $RM -r conftest 2>/dev/null 14019 mkdir conftest 14020 cd conftest 14021 mkdir out 14022 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14023 14024 lt_compiler_flag="-o out/conftest2.$ac_objext" 14025 # Insert the option either (1) after the last *FLAGS variable, or 14026 # (2) before a word containing "conftest.", or (3) at the end. 14027 # Note that $ac_compile itself does not contain backslashes and begins 14028 # with a dollar sign (not a hyphen), so the echo should work correctly. 14029 lt_compile=`echo "$ac_compile" | $SED \ 14030 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14031 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14032 -e 's:$: $lt_compiler_flag:'` 14033 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14034 (eval "$lt_compile" 2>out/conftest.err) 14035 ac_status=$? 14036 cat out/conftest.err >&5 14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14038 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14039 then 14040 # The compiler can only warn and ignore the option if not recognized 14041 # So say no if there are warnings 14042 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14043 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14044 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14045 lt_cv_prog_compiler_c_o=yes 14046 fi 14047 fi 14048 chmod u+w . 2>&5 14049 $RM conftest* 14050 # SGI C++ compiler will create directory out/ii_files/ for 14051 # template instantiation 14052 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14053 $RM out/* && rmdir out 14054 cd .. 14055 $RM -r conftest 14056 $RM conftest* 14057 14058fi 14059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 14060printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 14061 14062 14063 14064 14065 14066 14067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14068printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14069if test ${lt_cv_prog_compiler_c_o+y} 14070then : 14071 printf %s "(cached) " >&6 14072else $as_nop 14073 lt_cv_prog_compiler_c_o=no 14074 $RM -r conftest 2>/dev/null 14075 mkdir conftest 14076 cd conftest 14077 mkdir out 14078 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14079 14080 lt_compiler_flag="-o out/conftest2.$ac_objext" 14081 # Insert the option either (1) after the last *FLAGS variable, or 14082 # (2) before a word containing "conftest.", or (3) at the end. 14083 # Note that $ac_compile itself does not contain backslashes and begins 14084 # with a dollar sign (not a hyphen), so the echo should work correctly. 14085 lt_compile=`echo "$ac_compile" | $SED \ 14086 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14087 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14088 -e 's:$: $lt_compiler_flag:'` 14089 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14090 (eval "$lt_compile" 2>out/conftest.err) 14091 ac_status=$? 14092 cat out/conftest.err >&5 14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14094 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14095 then 14096 # The compiler can only warn and ignore the option if not recognized 14097 # So say no if there are warnings 14098 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14099 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14100 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14101 lt_cv_prog_compiler_c_o=yes 14102 fi 14103 fi 14104 chmod u+w . 2>&5 14105 $RM conftest* 14106 # SGI C++ compiler will create directory out/ii_files/ for 14107 # template instantiation 14108 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14109 $RM out/* && rmdir out 14110 cd .. 14111 $RM -r conftest 14112 $RM conftest* 14113 14114fi 14115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 14116printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 14117 14118 14119 14120 14121hard_links=nottested 14122if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 14123 # do not overwrite the value of need_locks provided by the user 14124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14125printf %s "checking if we can lock with hard links... " >&6; } 14126 hard_links=yes 14127 $RM conftest* 14128 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14129 touch conftest.a 14130 ln conftest.a conftest.b 2>&5 || hard_links=no 14131 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14133printf "%s\n" "$hard_links" >&6; } 14134 if test no = "$hard_links"; then 14135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 14136printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 14137 need_locks=warn 14138 fi 14139else 14140 need_locks=no 14141fi 14142 14143 14144 14145 14146 14147 14148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14149printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14150 14151 runpath_var= 14152 allow_undefined_flag= 14153 always_export_symbols=no 14154 archive_cmds= 14155 archive_expsym_cmds= 14156 compiler_needs_object=no 14157 enable_shared_with_static_runtimes=no 14158 export_dynamic_flag_spec= 14159 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14160 hardcode_automatic=no 14161 hardcode_direct=no 14162 hardcode_direct_absolute=no 14163 hardcode_libdir_flag_spec= 14164 hardcode_libdir_separator= 14165 hardcode_minus_L=no 14166 hardcode_shlibpath_var=unsupported 14167 inherit_rpath=no 14168 link_all_deplibs=unknown 14169 module_cmds= 14170 module_expsym_cmds= 14171 old_archive_from_new_cmds= 14172 old_archive_from_expsyms_cmds= 14173 thread_safe_flag_spec= 14174 whole_archive_flag_spec= 14175 # include_expsyms should be a list of space-separated symbols to be *always* 14176 # included in the symbol list 14177 include_expsyms= 14178 # exclude_expsyms can be an extended regexp of symbols to exclude 14179 # it will be wrapped by ' (' and ')$', so one must not match beginning or 14180 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 14181 # as well as any symbol that contains 'd'. 14182 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14183 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14184 # platforms (ab)use it in PIC code, but their linkers get confused if 14185 # the symbol is explicitly referenced. Since portable code cannot 14186 # rely on this symbol name, it's probably fine to never include it in 14187 # preloaded symbol tables. 14188 # Exclude shared library initialization/finalization symbols. 14189 extract_expsyms_cmds= 14190 14191 case $host_os in 14192 cygwin* | mingw* | pw32* | cegcc*) 14193 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 14194 # When not using gcc, we currently assume that we are using 14195 # Microsoft Visual C++ or Intel C++ Compiler. 14196 if test yes != "$GCC"; then 14197 with_gnu_ld=no 14198 fi 14199 ;; 14200 interix*) 14201 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 14202 with_gnu_ld=yes 14203 ;; 14204 openbsd* | bitrig*) 14205 with_gnu_ld=no 14206 ;; 14207 linux* | k*bsd*-gnu | gnu*) 14208 link_all_deplibs=no 14209 ;; 14210 esac 14211 14212 ld_shlibs=yes 14213 14214 # On some targets, GNU ld is compatible enough with the native linker 14215 # that we're better off using the native interface for both. 14216 lt_use_gnu_ld_interface=no 14217 if test yes = "$with_gnu_ld"; then 14218 case $host_os in 14219 aix*) 14220 # The AIX port of GNU ld has always aspired to compatibility 14221 # with the native linker. However, as the warning in the GNU ld 14222 # block says, versions before 2.19.5* couldn't really create working 14223 # shared libraries, regardless of the interface used. 14224 case `$LD -v 2>&1` in 14225 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 14226 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 14227 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 14228 *) 14229 lt_use_gnu_ld_interface=yes 14230 ;; 14231 esac 14232 ;; 14233 *) 14234 lt_use_gnu_ld_interface=yes 14235 ;; 14236 esac 14237 fi 14238 14239 if test yes = "$lt_use_gnu_ld_interface"; then 14240 # If archive_cmds runs LD, not CC, wlarc should be empty 14241 wlarc='$wl' 14242 14243 # Set some defaults for GNU ld with shared library support. These 14244 # are reset later if shared libraries are not supported. Putting them 14245 # here allows them to be overridden if necessary. 14246 runpath_var=LD_RUN_PATH 14247 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 14248 export_dynamic_flag_spec='$wl--export-dynamic' 14249 # ancient GNU ld didn't support --whole-archive et. al. 14250 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 14251 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14252 else 14253 whole_archive_flag_spec= 14254 fi 14255 supports_anon_versioning=no 14256 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 14257 *GNU\ gold*) supports_anon_versioning=yes ;; 14258 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14259 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14260 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14261 *\ 2.11.*) ;; # other 2.11 versions 14262 *) supports_anon_versioning=yes ;; 14263 esac 14264 14265 # See if GNU ld supports shared libraries. 14266 case $host_os in 14267 aix[3-9]*) 14268 # On AIX/PPC, the GNU linker is very broken 14269 if test ia64 != "$host_cpu"; then 14270 ld_shlibs=no 14271 cat <<_LT_EOF 1>&2 14272 14273*** Warning: the GNU linker, at least up to release 2.19, is reported 14274*** to be unable to reliably create shared libraries on AIX. 14275*** Therefore, libtool is disabling shared libraries support. If you 14276*** really care for shared libraries, you may want to install binutils 14277*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 14278*** You will then need to restart the configuration process. 14279 14280_LT_EOF 14281 fi 14282 ;; 14283 14284 amigaos*) 14285 case $host_cpu in 14286 powerpc) 14287 # see comment about AmigaOS4 .so support 14288 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14289 archive_expsym_cmds='' 14290 ;; 14291 m68k) 14292 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)' 14293 hardcode_libdir_flag_spec='-L$libdir' 14294 hardcode_minus_L=yes 14295 ;; 14296 esac 14297 ;; 14298 14299 beos*) 14300 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14301 allow_undefined_flag=unsupported 14302 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14303 # support --undefined. This deserves some investigation. FIXME 14304 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14305 else 14306 ld_shlibs=no 14307 fi 14308 ;; 14309 14310 cygwin* | mingw* | pw32* | cegcc*) 14311 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 14312 # as there is no search path for DLLs. 14313 hardcode_libdir_flag_spec='-L$libdir' 14314 export_dynamic_flag_spec='$wl--export-all-symbols' 14315 allow_undefined_flag=unsupported 14316 always_export_symbols=no 14317 enable_shared_with_static_runtimes=yes 14318 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' 14319 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 14320 14321 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14322 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14323 # If the export-symbols file already is a .def file, use it as 14324 # is; otherwise, prepend EXPORTS... 14325 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14326 cp $export_symbols $output_objdir/$soname.def; 14327 else 14328 echo EXPORTS > $output_objdir/$soname.def; 14329 cat $export_symbols >> $output_objdir/$soname.def; 14330 fi~ 14331 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14332 else 14333 ld_shlibs=no 14334 fi 14335 ;; 14336 14337 haiku*) 14338 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14339 link_all_deplibs=yes 14340 ;; 14341 14342 os2*) 14343 hardcode_libdir_flag_spec='-L$libdir' 14344 hardcode_minus_L=yes 14345 allow_undefined_flag=unsupported 14346 shrext_cmds=.dll 14347 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14348 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14349 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14350 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14351 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 14352 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14353 emximp -o $lib $output_objdir/$libname.def' 14354 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14355 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14356 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14357 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14358 prefix_cmds="$SED"~ 14359 if test EXPORTS = "`$SED 1q $export_symbols`"; then 14360 prefix_cmds="$prefix_cmds -e 1d"; 14361 fi~ 14362 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 14363 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 14364 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14365 emximp -o $lib $output_objdir/$libname.def' 14366 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 14367 enable_shared_with_static_runtimes=yes 14368 file_list_spec='@' 14369 ;; 14370 14371 interix[3-9]*) 14372 hardcode_direct=no 14373 hardcode_shlibpath_var=no 14374 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 14375 export_dynamic_flag_spec='$wl-E' 14376 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14377 # Instead, shared libraries are loaded at an image base (0x10000000 by 14378 # default) and relocated if they conflict, which is a slow very memory 14379 # consuming and fragmenting process. To avoid this, we pick a random, 14380 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14381 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14382 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14383 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' 14384 ;; 14385 14386 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 14387 tmp_diet=no 14388 if test linux-dietlibc = "$host_os"; then 14389 case $cc_basename in 14390 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 14391 esac 14392 fi 14393 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 14394 && test no = "$tmp_diet" 14395 then 14396 tmp_addflag=' $pic_flag' 14397 tmp_sharedflag='-shared' 14398 case $cc_basename,$host_cpu in 14399 pgcc*) # Portland Group C compiler 14400 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' 14401 tmp_addflag=' $pic_flag' 14402 ;; 14403 pgf77* | pgf90* | pgf95* | pgfortran*) 14404 # Portland Group f77 and f90 compilers 14405 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' 14406 tmp_addflag=' $pic_flag -Mnomain' ;; 14407 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14408 tmp_addflag=' -i_dynamic' ;; 14409 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14410 tmp_addflag=' -i_dynamic -nofor_main' ;; 14411 ifc* | ifort*) # Intel Fortran compiler 14412 tmp_addflag=' -nofor_main' ;; 14413 lf95*) # Lahey Fortran 8.1 14414 whole_archive_flag_spec= 14415 tmp_sharedflag='--shared' ;; 14416 nagfor*) # NAGFOR 5.3 14417 tmp_sharedflag='-Wl,-shared' ;; 14418 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 14419 tmp_sharedflag='-qmkshrobj' 14420 tmp_addflag= ;; 14421 nvcc*) # Cuda Compiler Driver 2.2 14422 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' 14423 compiler_needs_object=yes 14424 ;; 14425 esac 14426 case `$CC -V 2>&1 | $SED 5q` in 14427 *Sun\ C*) # Sun C 5.9 14428 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' 14429 compiler_needs_object=yes 14430 tmp_sharedflag='-G' ;; 14431 *Sun\ F*) # Sun Fortran 8.3 14432 tmp_sharedflag='-G' ;; 14433 esac 14434 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14435 14436 if test yes = "$supports_anon_versioning"; then 14437 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 14438 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14439 echo "local: *; };" >> $output_objdir/$libname.ver~ 14440 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 14441 fi 14442 14443 case $cc_basename in 14444 tcc*) 14445 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 14446 export_dynamic_flag_spec='-rdynamic' 14447 ;; 14448 xlf* | bgf* | bgxlf* | mpixlf*) 14449 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 14450 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 14451 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 14452 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 14453 if test yes = "$supports_anon_versioning"; then 14454 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 14455 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14456 echo "local: *; };" >> $output_objdir/$libname.ver~ 14457 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 14458 fi 14459 ;; 14460 esac 14461 else 14462 ld_shlibs=no 14463 fi 14464 ;; 14465 14466 netbsd* | netbsdelf*-gnu) 14467 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14468 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14469 wlarc= 14470 else 14471 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14472 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14473 fi 14474 ;; 14475 14476 solaris*) 14477 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 14478 ld_shlibs=no 14479 cat <<_LT_EOF 1>&2 14480 14481*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14482*** create shared libraries on Solaris systems. Therefore, libtool 14483*** is disabling shared libraries support. We urge you to upgrade GNU 14484*** binutils to release 2.9.1 or newer. Another option is to modify 14485*** your PATH or compiler configuration so that the native linker is 14486*** used, and then restart. 14487 14488_LT_EOF 14489 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14490 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14491 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14492 else 14493 ld_shlibs=no 14494 fi 14495 ;; 14496 14497 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14498 case `$LD -v 2>&1` in 14499 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14500 ld_shlibs=no 14501 cat <<_LT_EOF 1>&2 14502 14503*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 14504*** reliably create shared libraries on SCO systems. Therefore, libtool 14505*** is disabling shared libraries support. We urge you to upgrade GNU 14506*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14507*** your PATH or compiler configuration so that the native linker is 14508*** used, and then restart. 14509 14510_LT_EOF 14511 ;; 14512 *) 14513 # For security reasons, it is highly recommended that you always 14514 # use absolute paths for naming shared libraries, and exclude the 14515 # DT_RUNPATH tag from executables and libraries. But doing so 14516 # requires that you compile everything twice, which is a pain. 14517 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14518 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 14519 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14520 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14521 else 14522 ld_shlibs=no 14523 fi 14524 ;; 14525 esac 14526 ;; 14527 14528 sunos4*) 14529 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14530 wlarc= 14531 hardcode_direct=yes 14532 hardcode_shlibpath_var=no 14533 ;; 14534 14535 *) 14536 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14537 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14538 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14539 else 14540 ld_shlibs=no 14541 fi 14542 ;; 14543 esac 14544 14545 if test no = "$ld_shlibs"; then 14546 runpath_var= 14547 hardcode_libdir_flag_spec= 14548 export_dynamic_flag_spec= 14549 whole_archive_flag_spec= 14550 fi 14551 else 14552 # PORTME fill in a description of your system's linker (not GNU ld) 14553 case $host_os in 14554 aix3*) 14555 allow_undefined_flag=unsupported 14556 always_export_symbols=yes 14557 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' 14558 # Note: this linker hardcodes the directories in LIBPATH if there 14559 # are no directories specified by -L. 14560 hardcode_minus_L=yes 14561 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 14562 # Neither direct hardcoding nor static linking is supported with a 14563 # broken collect2. 14564 hardcode_direct=unsupported 14565 fi 14566 ;; 14567 14568 aix[4-9]*) 14569 if test ia64 = "$host_cpu"; then 14570 # On IA64, the linker does run time linking by default, so we don't 14571 # have to do anything special. 14572 aix_use_runtimelinking=no 14573 exp_sym_flag='-Bexport' 14574 no_entry_flag= 14575 else 14576 # If we're using GNU nm, then we don't want the "-C" option. 14577 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 14578 # Without the "-l" option, or with the "-B" option, AIX nm treats 14579 # weak defined symbols like other global defined symbols, whereas 14580 # GNU nm marks them as "W". 14581 # While the 'weak' keyword is ignored in the Export File, we need 14582 # it in the Import File for the 'aix-soname' feature, so we have 14583 # to replace the "-B" option with "-P" for AIX nm. 14584 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14585 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 14586 else 14587 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 14588 fi 14589 aix_use_runtimelinking=no 14590 14591 # Test if we are trying to use run time linking or normal 14592 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14593 # have runtime linking enabled, and use it for executables. 14594 # For shared libraries, we enable/disable runtime linking 14595 # depending on the kind of the shared library created - 14596 # when "with_aix_soname,aix_use_runtimelinking" is: 14597 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 14598 # "aix,yes" lib.so shared, rtl:yes, for executables 14599 # lib.a static archive 14600 # "both,no" lib.so.V(shr.o) shared, rtl:yes 14601 # lib.a(lib.so.V) shared, rtl:no, for executables 14602 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 14603 # lib.a(lib.so.V) shared, rtl:no 14604 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 14605 # lib.a static archive 14606 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14607 for ld_flag in $LDFLAGS; do 14608 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 14609 aix_use_runtimelinking=yes 14610 break 14611 fi 14612 done 14613 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 14614 # With aix-soname=svr4, we create the lib.so.V shared archives only, 14615 # so we don't have lib.a shared libs to link our executables. 14616 # We have to force runtime linking in this case. 14617 aix_use_runtimelinking=yes 14618 LDFLAGS="$LDFLAGS -Wl,-brtl" 14619 fi 14620 ;; 14621 esac 14622 14623 exp_sym_flag='-bexport' 14624 no_entry_flag='-bnoentry' 14625 fi 14626 14627 # When large executables or shared objects are built, AIX ld can 14628 # have problems creating the table of contents. If linking a library 14629 # or program results in "error TOC overflow" add -mminimal-toc to 14630 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14631 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14632 14633 archive_cmds='' 14634 hardcode_direct=yes 14635 hardcode_direct_absolute=yes 14636 hardcode_libdir_separator=':' 14637 link_all_deplibs=yes 14638 file_list_spec='$wl-f,' 14639 case $with_aix_soname,$aix_use_runtimelinking in 14640 aix,*) ;; # traditional, no import file 14641 svr4,* | *,yes) # use import file 14642 # The Import File defines what to hardcode. 14643 hardcode_direct=no 14644 hardcode_direct_absolute=no 14645 ;; 14646 esac 14647 14648 if test yes = "$GCC"; then 14649 case $host_os in aix4.[012]|aix4.[012].*) 14650 # We only want to do this on AIX 4.2 and lower, the check 14651 # below for broken collect2 doesn't work under 4.3+ 14652 collect2name=`$CC -print-prog-name=collect2` 14653 if test -f "$collect2name" && 14654 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 14655 then 14656 # We have reworked collect2 14657 : 14658 else 14659 # We have old collect2 14660 hardcode_direct=unsupported 14661 # It fails to find uninstalled libraries when the uninstalled 14662 # path is not listed in the libpath. Setting hardcode_minus_L 14663 # to unsupported forces relinking 14664 hardcode_minus_L=yes 14665 hardcode_libdir_flag_spec='-L$libdir' 14666 hardcode_libdir_separator= 14667 fi 14668 ;; 14669 esac 14670 shared_flag='-shared' 14671 if test yes = "$aix_use_runtimelinking"; then 14672 shared_flag="$shared_flag "'$wl-G' 14673 fi 14674 # Need to ensure runtime linking is disabled for the traditional 14675 # shared library, or the linker may eventually find shared libraries 14676 # /with/ Import File - we do not want to mix them. 14677 shared_flag_aix='-shared' 14678 shared_flag_svr4='-shared $wl-G' 14679 else 14680 # not using gcc 14681 if test ia64 = "$host_cpu"; then 14682 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14683 # chokes on -Wl,-G. The following line is correct: 14684 shared_flag='-G' 14685 else 14686 if test yes = "$aix_use_runtimelinking"; then 14687 shared_flag='$wl-G' 14688 else 14689 shared_flag='$wl-bM:SRE' 14690 fi 14691 shared_flag_aix='$wl-bM:SRE' 14692 shared_flag_svr4='$wl-G' 14693 fi 14694 fi 14695 14696 export_dynamic_flag_spec='$wl-bexpall' 14697 # It seems that -bexpall does not export symbols beginning with 14698 # underscore (_), so it is better to generate a list of symbols to export. 14699 always_export_symbols=yes 14700 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 14701 # Warning - without using the other runtime loading flags (-brtl), 14702 # -berok will link without error, but may produce a broken library. 14703 allow_undefined_flag='-berok' 14704 # Determine the default libpath from the value encoded in an 14705 # empty executable. 14706 if test set = "${lt_cv_aix_libpath+set}"; then 14707 aix_libpath=$lt_cv_aix_libpath 14708else 14709 if test ${lt_cv_aix_libpath_+y} 14710then : 14711 printf %s "(cached) " >&6 14712else $as_nop 14713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14714/* end confdefs.h. */ 14715 14716int 14717main (void) 14718{ 14719 14720 ; 14721 return 0; 14722} 14723_ACEOF 14724if ac_fn_c_try_link "$LINENO" 14725then : 14726 14727 lt_aix_libpath_sed=' 14728 /Import File Strings/,/^$/ { 14729 /^0/ { 14730 s/^0 *\([^ ]*\) *$/\1/ 14731 p 14732 } 14733 }' 14734 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14735 # Check for a 64-bit object if we didn't find anything. 14736 if test -z "$lt_cv_aix_libpath_"; then 14737 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14738 fi 14739fi 14740rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14741 conftest$ac_exeext conftest.$ac_ext 14742 if test -z "$lt_cv_aix_libpath_"; then 14743 lt_cv_aix_libpath_=/usr/lib:/lib 14744 fi 14745 14746fi 14747 14748 aix_libpath=$lt_cv_aix_libpath_ 14749fi 14750 14751 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 14752 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 14753 else 14754 if test ia64 = "$host_cpu"; then 14755 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 14756 allow_undefined_flag="-z nodefs" 14757 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" 14758 else 14759 # Determine the default libpath from the value encoded in an 14760 # empty executable. 14761 if test set = "${lt_cv_aix_libpath+set}"; then 14762 aix_libpath=$lt_cv_aix_libpath 14763else 14764 if test ${lt_cv_aix_libpath_+y} 14765then : 14766 printf %s "(cached) " >&6 14767else $as_nop 14768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14769/* end confdefs.h. */ 14770 14771int 14772main (void) 14773{ 14774 14775 ; 14776 return 0; 14777} 14778_ACEOF 14779if ac_fn_c_try_link "$LINENO" 14780then : 14781 14782 lt_aix_libpath_sed=' 14783 /Import File Strings/,/^$/ { 14784 /^0/ { 14785 s/^0 *\([^ ]*\) *$/\1/ 14786 p 14787 } 14788 }' 14789 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14790 # Check for a 64-bit object if we didn't find anything. 14791 if test -z "$lt_cv_aix_libpath_"; then 14792 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14793 fi 14794fi 14795rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14796 conftest$ac_exeext conftest.$ac_ext 14797 if test -z "$lt_cv_aix_libpath_"; then 14798 lt_cv_aix_libpath_=/usr/lib:/lib 14799 fi 14800 14801fi 14802 14803 aix_libpath=$lt_cv_aix_libpath_ 14804fi 14805 14806 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 14807 # Warning - without using the other run time loading flags, 14808 # -berok will link without error, but may produce a broken library. 14809 no_undefined_flag=' $wl-bernotok' 14810 allow_undefined_flag=' $wl-berok' 14811 if test yes = "$with_gnu_ld"; then 14812 # We only use this code for GNU lds that support --whole-archive. 14813 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 14814 else 14815 # Exported symbols can be pulled into shared objects from archives 14816 whole_archive_flag_spec='$convenience' 14817 fi 14818 archive_cmds_need_lc=yes 14819 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 14820 # -brtl affects multiple linker settings, -berok does not and is overridden later 14821 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 14822 if test svr4 != "$with_aix_soname"; then 14823 # This is similar to how AIX traditionally builds its shared libraries. 14824 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 14825 fi 14826 if test aix != "$with_aix_soname"; then 14827 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 14828 else 14829 # used by -dlpreopen to get the symbols 14830 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 14831 fi 14832 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 14833 fi 14834 fi 14835 ;; 14836 14837 amigaos*) 14838 case $host_cpu in 14839 powerpc) 14840 # see comment about AmigaOS4 .so support 14841 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14842 archive_expsym_cmds='' 14843 ;; 14844 m68k) 14845 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)' 14846 hardcode_libdir_flag_spec='-L$libdir' 14847 hardcode_minus_L=yes 14848 ;; 14849 esac 14850 ;; 14851 14852 bsdi[45]*) 14853 export_dynamic_flag_spec=-rdynamic 14854 ;; 14855 14856 cygwin* | mingw* | pw32* | cegcc*) 14857 # When not using gcc, we currently assume that we are using 14858 # Microsoft Visual C++ or Intel C++ Compiler. 14859 # hardcode_libdir_flag_spec is actually meaningless, as there is 14860 # no search path for DLLs. 14861 case $cc_basename in 14862 cl* | icl*) 14863 # Native MSVC or ICC 14864 hardcode_libdir_flag_spec=' ' 14865 allow_undefined_flag=unsupported 14866 always_export_symbols=yes 14867 file_list_spec='@' 14868 # Tell ltmain to make .lib files, not .a files. 14869 libext=lib 14870 # Tell ltmain to make .dll files, not .so files. 14871 shrext_cmds=.dll 14872 # FIXME: Setting linknames here is a bad hack. 14873 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 14874 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14875 cp "$export_symbols" "$output_objdir/$soname.def"; 14876 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 14877 else 14878 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 14879 fi~ 14880 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14881 linknames=' 14882 # The linker will not automatically build a static lib if we build a DLL. 14883 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 14884 enable_shared_with_static_runtimes=yes 14885 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 14886 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14887 # Don't use ranlib 14888 old_postinstall_cmds='chmod 644 $oldlib' 14889 postlink_cmds='lt_outputfile="@OUTPUT@"~ 14890 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14891 case $lt_outputfile in 14892 *.exe|*.EXE) ;; 14893 *) 14894 lt_outputfile=$lt_outputfile.exe 14895 lt_tool_outputfile=$lt_tool_outputfile.exe 14896 ;; 14897 esac~ 14898 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 14899 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14900 $RM "$lt_outputfile.manifest"; 14901 fi' 14902 ;; 14903 *) 14904 # Assume MSVC and ICC wrapper 14905 hardcode_libdir_flag_spec=' ' 14906 allow_undefined_flag=unsupported 14907 # Tell ltmain to make .lib files, not .a files. 14908 libext=lib 14909 # Tell ltmain to make .dll files, not .so files. 14910 shrext_cmds=.dll 14911 # FIXME: Setting linknames here is a bad hack. 14912 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 14913 # The linker will automatically build a .lib file if we build a DLL. 14914 old_archive_from_new_cmds='true' 14915 # FIXME: Should let the user specify the lib program. 14916 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 14917 enable_shared_with_static_runtimes=yes 14918 ;; 14919 esac 14920 ;; 14921 14922 darwin* | rhapsody*) 14923 14924 14925 archive_cmds_need_lc=no 14926 hardcode_direct=no 14927 hardcode_automatic=yes 14928 hardcode_shlibpath_var=unsupported 14929 if test yes = "$lt_cv_ld_force_load"; then 14930 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\"`' 14931 14932 else 14933 whole_archive_flag_spec='' 14934 fi 14935 link_all_deplibs=yes 14936 allow_undefined_flag=$_lt_dar_allow_undefined 14937 case $cc_basename in 14938 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 14939 *) _lt_dar_can_shared=$GCC ;; 14940 esac 14941 if test yes = "$_lt_dar_can_shared"; then 14942 output_verbose_link_cmd=func_echo_all 14943 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 14944 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 14945 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" 14946 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" 14947 14948 else 14949 ld_shlibs=no 14950 fi 14951 14952 ;; 14953 14954 dgux*) 14955 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14956 hardcode_libdir_flag_spec='-L$libdir' 14957 hardcode_shlibpath_var=no 14958 ;; 14959 14960 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14961 # support. Future versions do this automatically, but an explicit c++rt0.o 14962 # does not break anything, and helps significantly (at the cost of a little 14963 # extra space). 14964 freebsd2.2*) 14965 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14966 hardcode_libdir_flag_spec='-R$libdir' 14967 hardcode_direct=yes 14968 hardcode_shlibpath_var=no 14969 ;; 14970 14971 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14972 freebsd2.*) 14973 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14974 hardcode_direct=yes 14975 hardcode_minus_L=yes 14976 hardcode_shlibpath_var=no 14977 ;; 14978 14979 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14980 freebsd* | dragonfly* | midnightbsd*) 14981 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14982 hardcode_libdir_flag_spec='-R$libdir' 14983 hardcode_direct=yes 14984 hardcode_shlibpath_var=no 14985 ;; 14986 14987 hpux9*) 14988 if test yes = "$GCC"; then 14989 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 14990 else 14991 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 14992 fi 14993 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 14994 hardcode_libdir_separator=: 14995 hardcode_direct=yes 14996 14997 # hardcode_minus_L: Not really in the search PATH, 14998 # but as the default location of the library. 14999 hardcode_minus_L=yes 15000 export_dynamic_flag_spec='$wl-E' 15001 ;; 15002 15003 hpux10*) 15004 if test yes,no = "$GCC,$with_gnu_ld"; then 15005 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15006 else 15007 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15008 fi 15009 if test no = "$with_gnu_ld"; then 15010 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 15011 hardcode_libdir_separator=: 15012 hardcode_direct=yes 15013 hardcode_direct_absolute=yes 15014 export_dynamic_flag_spec='$wl-E' 15015 # hardcode_minus_L: Not really in the search PATH, 15016 # but as the default location of the library. 15017 hardcode_minus_L=yes 15018 fi 15019 ;; 15020 15021 hpux11*) 15022 if test yes,no = "$GCC,$with_gnu_ld"; then 15023 case $host_cpu in 15024 hppa*64*) 15025 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 15026 ;; 15027 ia64*) 15028 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15029 ;; 15030 *) 15031 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15032 ;; 15033 esac 15034 else 15035 case $host_cpu in 15036 hppa*64*) 15037 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 15038 ;; 15039 ia64*) 15040 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15041 ;; 15042 *) 15043 15044 # Older versions of the 11.00 compiler do not understand -b yet 15045 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 15046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 15047printf %s "checking if $CC understands -b... " >&6; } 15048if test ${lt_cv_prog_compiler__b+y} 15049then : 15050 printf %s "(cached) " >&6 15051else $as_nop 15052 lt_cv_prog_compiler__b=no 15053 save_LDFLAGS=$LDFLAGS 15054 LDFLAGS="$LDFLAGS -b" 15055 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15056 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15057 # The linker can only warn and ignore the option if not recognized 15058 # So say no if there are warnings 15059 if test -s conftest.err; then 15060 # Append any errors to the config.log. 15061 cat conftest.err 1>&5 15062 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15063 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15064 if diff conftest.exp conftest.er2 >/dev/null; then 15065 lt_cv_prog_compiler__b=yes 15066 fi 15067 else 15068 lt_cv_prog_compiler__b=yes 15069 fi 15070 fi 15071 $RM -r conftest* 15072 LDFLAGS=$save_LDFLAGS 15073 15074fi 15075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 15076printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 15077 15078if test yes = "$lt_cv_prog_compiler__b"; then 15079 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15080else 15081 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15082fi 15083 15084 ;; 15085 esac 15086 fi 15087 if test no = "$with_gnu_ld"; then 15088 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 15089 hardcode_libdir_separator=: 15090 15091 case $host_cpu in 15092 hppa*64*|ia64*) 15093 hardcode_direct=no 15094 hardcode_shlibpath_var=no 15095 ;; 15096 *) 15097 hardcode_direct=yes 15098 hardcode_direct_absolute=yes 15099 export_dynamic_flag_spec='$wl-E' 15100 15101 # hardcode_minus_L: Not really in the search PATH, 15102 # but as the default location of the library. 15103 hardcode_minus_L=yes 15104 ;; 15105 esac 15106 fi 15107 ;; 15108 15109 irix5* | irix6* | nonstopux*) 15110 if test yes = "$GCC"; then 15111 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' 15112 # Try to use the -exported_symbol ld option, if it does not 15113 # work, assume that -exports_file does not work either and 15114 # implicitly export all symbols. 15115 # This should be the same for all languages, so no per-tag cache variable. 15116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 15117printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 15118if test ${lt_cv_irix_exported_symbol+y} 15119then : 15120 printf %s "(cached) " >&6 15121else $as_nop 15122 save_LDFLAGS=$LDFLAGS 15123 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 15124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15125/* end confdefs.h. */ 15126int foo (void) { return 0; } 15127_ACEOF 15128if ac_fn_c_try_link "$LINENO" 15129then : 15130 lt_cv_irix_exported_symbol=yes 15131else $as_nop 15132 lt_cv_irix_exported_symbol=no 15133fi 15134rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15135 conftest$ac_exeext conftest.$ac_ext 15136 LDFLAGS=$save_LDFLAGS 15137fi 15138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 15139printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 15140 if test yes = "$lt_cv_irix_exported_symbol"; then 15141 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' 15142 fi 15143 link_all_deplibs=no 15144 else 15145 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' 15146 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' 15147 fi 15148 archive_cmds_need_lc='no' 15149 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15150 hardcode_libdir_separator=: 15151 inherit_rpath=yes 15152 link_all_deplibs=yes 15153 ;; 15154 15155 linux*) 15156 case $cc_basename in 15157 tcc*) 15158 # Fabrice Bellard et al's Tiny C Compiler 15159 ld_shlibs=yes 15160 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15161 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15162 ;; 15163 esac 15164 ;; 15165 15166 netbsd* | netbsdelf*-gnu) 15167 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15168 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15169 else 15170 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15171 fi 15172 hardcode_libdir_flag_spec='-R$libdir' 15173 hardcode_direct=yes 15174 hardcode_shlibpath_var=no 15175 ;; 15176 15177 newsos6) 15178 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15179 hardcode_direct=yes 15180 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15181 hardcode_libdir_separator=: 15182 hardcode_shlibpath_var=no 15183 ;; 15184 15185 *nto* | *qnx*) 15186 ;; 15187 15188 openbsd* | bitrig*) 15189 if test -f /usr/libexec/ld.so; then 15190 hardcode_direct=yes 15191 hardcode_shlibpath_var=no 15192 hardcode_direct_absolute=yes 15193 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 15194 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15195 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 15196 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 15197 export_dynamic_flag_spec='$wl-E' 15198 else 15199 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15200 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 15201 fi 15202 else 15203 ld_shlibs=no 15204 fi 15205 ;; 15206 15207 os2*) 15208 hardcode_libdir_flag_spec='-L$libdir' 15209 hardcode_minus_L=yes 15210 allow_undefined_flag=unsupported 15211 shrext_cmds=.dll 15212 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15213 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15214 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15215 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15216 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 15217 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15218 emximp -o $lib $output_objdir/$libname.def' 15219 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15220 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15221 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15222 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15223 prefix_cmds="$SED"~ 15224 if test EXPORTS = "`$SED 1q $export_symbols`"; then 15225 prefix_cmds="$prefix_cmds -e 1d"; 15226 fi~ 15227 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 15228 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 15229 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15230 emximp -o $lib $output_objdir/$libname.def' 15231 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 15232 enable_shared_with_static_runtimes=yes 15233 file_list_spec='@' 15234 ;; 15235 15236 osf3*) 15237 if test yes = "$GCC"; then 15238 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 15239 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' 15240 else 15241 allow_undefined_flag=' -expect_unresolved \*' 15242 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' 15243 fi 15244 archive_cmds_need_lc='no' 15245 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15246 hardcode_libdir_separator=: 15247 ;; 15248 15249 osf4* | osf5*) # as osf3* with the addition of -msym flag 15250 if test yes = "$GCC"; then 15251 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 15252 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' 15253 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15254 else 15255 allow_undefined_flag=' -expect_unresolved \*' 15256 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' 15257 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~ 15258 $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' 15259 15260 # Both c and cxx compiler support -rpath directly 15261 hardcode_libdir_flag_spec='-rpath $libdir' 15262 fi 15263 archive_cmds_need_lc='no' 15264 hardcode_libdir_separator=: 15265 ;; 15266 15267 solaris*) 15268 no_undefined_flag=' -z defs' 15269 if test yes = "$GCC"; then 15270 wlarc='$wl' 15271 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 15272 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15273 $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' 15274 else 15275 case `$CC -V 2>&1` in 15276 *"Compilers 5.0"*) 15277 wlarc='' 15278 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 15279 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15280 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 15281 ;; 15282 *) 15283 wlarc='$wl' 15284 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 15285 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15286 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 15287 ;; 15288 esac 15289 fi 15290 hardcode_libdir_flag_spec='-R$libdir' 15291 hardcode_shlibpath_var=no 15292 case $host_os in 15293 solaris2.[0-5] | solaris2.[0-5].*) ;; 15294 *) 15295 # The compiler driver will combine and reorder linker options, 15296 # but understands '-z linker_flag'. GCC discards it without '$wl', 15297 # but is careful enough not to reorder. 15298 # Supported since Solaris 2.6 (maybe 2.5.1?) 15299 if test yes = "$GCC"; then 15300 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 15301 else 15302 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 15303 fi 15304 ;; 15305 esac 15306 link_all_deplibs=yes 15307 ;; 15308 15309 sunos4*) 15310 if test sequent = "$host_vendor"; then 15311 # Use $CC to link under sequent, because it throws in some extra .o 15312 # files that make .init and .fini sections work. 15313 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15314 else 15315 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15316 fi 15317 hardcode_libdir_flag_spec='-L$libdir' 15318 hardcode_direct=yes 15319 hardcode_minus_L=yes 15320 hardcode_shlibpath_var=no 15321 ;; 15322 15323 sysv4) 15324 case $host_vendor in 15325 sni) 15326 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15327 hardcode_direct=yes # is this really true??? 15328 ;; 15329 siemens) 15330 ## LD is ld it makes a PLAMLIB 15331 ## CC just makes a GrossModule. 15332 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15333 reload_cmds='$CC -r -o $output$reload_objs' 15334 hardcode_direct=no 15335 ;; 15336 motorola) 15337 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15338 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 15339 ;; 15340 esac 15341 runpath_var='LD_RUN_PATH' 15342 hardcode_shlibpath_var=no 15343 ;; 15344 15345 sysv4.3*) 15346 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15347 hardcode_shlibpath_var=no 15348 export_dynamic_flag_spec='-Bexport' 15349 ;; 15350 15351 sysv4*MP*) 15352 if test -d /usr/nec; then 15353 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15354 hardcode_shlibpath_var=no 15355 runpath_var=LD_RUN_PATH 15356 hardcode_runpath_var=yes 15357 ld_shlibs=yes 15358 fi 15359 ;; 15360 15361 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15362 no_undefined_flag='$wl-z,text' 15363 archive_cmds_need_lc=no 15364 hardcode_shlibpath_var=no 15365 runpath_var='LD_RUN_PATH' 15366 15367 if test yes = "$GCC"; then 15368 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15369 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15370 else 15371 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15372 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15373 fi 15374 ;; 15375 15376 sysv5* | sco3.2v5* | sco5v6*) 15377 # Note: We CANNOT use -z defs as we might desire, because we do not 15378 # link with -lc, and that would cause any symbols used from libc to 15379 # always be unresolved, which means just about no library would 15380 # ever link correctly. If we're not using GNU ld we use -z text 15381 # though, which does catch some bad symbols but isn't as heavy-handed 15382 # as -z defs. 15383 no_undefined_flag='$wl-z,text' 15384 allow_undefined_flag='$wl-z,nodefs' 15385 archive_cmds_need_lc=no 15386 hardcode_shlibpath_var=no 15387 hardcode_libdir_flag_spec='$wl-R,$libdir' 15388 hardcode_libdir_separator=':' 15389 link_all_deplibs=yes 15390 export_dynamic_flag_spec='$wl-Bexport' 15391 runpath_var='LD_RUN_PATH' 15392 15393 if test yes = "$GCC"; then 15394 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15395 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15396 else 15397 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15398 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15399 fi 15400 ;; 15401 15402 uts4*) 15403 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15404 hardcode_libdir_flag_spec='-L$libdir' 15405 hardcode_shlibpath_var=no 15406 ;; 15407 15408 *) 15409 ld_shlibs=no 15410 ;; 15411 esac 15412 15413 if test sni = "$host_vendor"; then 15414 case $host in 15415 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15416 export_dynamic_flag_spec='$wl-Blargedynsym' 15417 ;; 15418 esac 15419 fi 15420 fi 15421 15422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 15423printf "%s\n" "$ld_shlibs" >&6; } 15424test no = "$ld_shlibs" && can_build_shared=no 15425 15426with_gnu_ld=$with_gnu_ld 15427 15428 15429 15430 15431 15432 15433 15434 15435 15436 15437 15438 15439 15440 15441 15442# 15443# Do we need to explicitly link libc? 15444# 15445case "x$archive_cmds_need_lc" in 15446x|xyes) 15447 # Assume -lc should be added 15448 archive_cmds_need_lc=yes 15449 15450 if test yes,yes = "$GCC,$enable_shared"; then 15451 case $archive_cmds in 15452 *'~'*) 15453 # FIXME: we may have to deal with multi-command sequences. 15454 ;; 15455 '$CC '*) 15456 # Test whether the compiler implicitly links with -lc since on some 15457 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15458 # to ld, don't add -lc before -lgcc. 15459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15460printf %s "checking whether -lc should be explicitly linked in... " >&6; } 15461if test ${lt_cv_archive_cmds_need_lc+y} 15462then : 15463 printf %s "(cached) " >&6 15464else $as_nop 15465 $RM conftest* 15466 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15467 15468 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15469 (eval $ac_compile) 2>&5 15470 ac_status=$? 15471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15472 test $ac_status = 0; } 2>conftest.err; then 15473 soname=conftest 15474 lib=conftest 15475 libobjs=conftest.$ac_objext 15476 deplibs= 15477 wl=$lt_prog_compiler_wl 15478 pic_flag=$lt_prog_compiler_pic 15479 compiler_flags=-v 15480 linker_flags=-v 15481 verstring= 15482 output_objdir=. 15483 libname=conftest 15484 lt_save_allow_undefined_flag=$allow_undefined_flag 15485 allow_undefined_flag= 15486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15487 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15488 ac_status=$? 15489 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15490 test $ac_status = 0; } 15491 then 15492 lt_cv_archive_cmds_need_lc=no 15493 else 15494 lt_cv_archive_cmds_need_lc=yes 15495 fi 15496 allow_undefined_flag=$lt_save_allow_undefined_flag 15497 else 15498 cat conftest.err 1>&5 15499 fi 15500 $RM conftest* 15501 15502fi 15503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 15504printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 15505 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 15506 ;; 15507 esac 15508 fi 15509 ;; 15510esac 15511 15512 15513 15514 15515 15516 15517 15518 15519 15520 15521 15522 15523 15524 15525 15526 15527 15528 15529 15530 15531 15532 15533 15534 15535 15536 15537 15538 15539 15540 15541 15542 15543 15544 15545 15546 15547 15548 15549 15550 15551 15552 15553 15554 15555 15556 15557 15558 15559 15560 15561 15562 15563 15564 15565 15566 15567 15568 15569 15570 15571 15572 15573 15574 15575 15576 15577 15578 15579 15580 15581 15582 15583 15584 15585 15586 15587 15588 15589 15590 15591 15592 15593 15594 15595 15596 15597 15598 15599 15600 15601 15602 15603 15604 15605 15606 15607 15608 15609 15610 15611 15612 15613 15614 15615 15616 15617 15618 15619 15620 15621 15622 15623 15624 15625 15626 15627 15628 15629 15630 15631 15632 15633 15634 15635 15636 15637 15638 15639 15640 15641 15642 15643 15644 15645 15646 15647 15648 15649 15650 15651 15652 15653 15654 15655 15656 15657 15658 15659 15660 15661 15662 15663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15664printf %s "checking dynamic linker characteristics... " >&6; } 15665 15666if test yes = "$GCC"; then 15667 case $host_os in 15668 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 15669 *) lt_awk_arg='/^libraries:/' ;; 15670 esac 15671 case $host_os in 15672 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 15673 *) lt_sed_strip_eq='s|=/|/|g' ;; 15674 esac 15675 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 15676 case $lt_search_path_spec in 15677 *\;*) 15678 # if the path contains ";" then we assume it to be the separator 15679 # otherwise default to the standard path separator (i.e. ":") - it is 15680 # assumed that no part of a normal pathname contains ";" but that should 15681 # okay in the real world where ";" in dirpaths is itself problematic. 15682 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 15683 ;; 15684 *) 15685 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 15686 ;; 15687 esac 15688 # Ok, now we have the path, separated by spaces, we can step through it 15689 # and add multilib dir if necessary... 15690 lt_tmp_lt_search_path_spec= 15691 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 15692 # ...but if some path component already ends with the multilib dir we assume 15693 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 15694 case "$lt_multi_os_dir; $lt_search_path_spec " in 15695 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 15696 lt_multi_os_dir= 15697 ;; 15698 esac 15699 for lt_sys_path in $lt_search_path_spec; do 15700 if test -d "$lt_sys_path$lt_multi_os_dir"; then 15701 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 15702 elif test -n "$lt_multi_os_dir"; then 15703 test -d "$lt_sys_path" && \ 15704 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 15705 fi 15706 done 15707 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 15708BEGIN {RS = " "; FS = "/|\n";} { 15709 lt_foo = ""; 15710 lt_count = 0; 15711 for (lt_i = NF; lt_i > 0; lt_i--) { 15712 if ($lt_i != "" && $lt_i != ".") { 15713 if ($lt_i == "..") { 15714 lt_count++; 15715 } else { 15716 if (lt_count == 0) { 15717 lt_foo = "/" $lt_i lt_foo; 15718 } else { 15719 lt_count--; 15720 } 15721 } 15722 } 15723 } 15724 if (lt_foo != "") { lt_freq[lt_foo]++; } 15725 if (lt_freq[lt_foo] == 1) { print lt_foo; } 15726}'` 15727 # AWK program above erroneously prepends '/' to C:/dos/paths 15728 # for these hosts. 15729 case $host_os in 15730 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 15731 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 15732 esac 15733 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 15734else 15735 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15736fi 15737library_names_spec= 15738libname_spec='lib$name' 15739soname_spec= 15740shrext_cmds=.so 15741postinstall_cmds= 15742postuninstall_cmds= 15743finish_cmds= 15744finish_eval= 15745shlibpath_var= 15746shlibpath_overrides_runpath=unknown 15747version_type=none 15748dynamic_linker="$host_os ld.so" 15749sys_lib_dlsearch_path_spec="/lib /usr/lib" 15750need_lib_prefix=unknown 15751hardcode_into_libs=no 15752 15753# when you set need_version to no, make sure it does not cause -set_version 15754# flags to be left without arguments 15755need_version=unknown 15756 15757 15758 15759case $host_os in 15760aix3*) 15761 version_type=linux # correct to gnu/linux during the next big refactor 15762 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 15763 shlibpath_var=LIBPATH 15764 15765 # AIX 3 has no versioning support, so we append a major version to the name. 15766 soname_spec='$libname$release$shared_ext$major' 15767 ;; 15768 15769aix[4-9]*) 15770 version_type=linux # correct to gnu/linux during the next big refactor 15771 need_lib_prefix=no 15772 need_version=no 15773 hardcode_into_libs=yes 15774 if test ia64 = "$host_cpu"; then 15775 # AIX 5 supports IA64 15776 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 15777 shlibpath_var=LD_LIBRARY_PATH 15778 else 15779 # With GCC up to 2.95.x, collect2 would create an import file 15780 # for dependence libraries. The import file would start with 15781 # the line '#! .'. This would cause the generated library to 15782 # depend on '.', always an invalid library. This was fixed in 15783 # development snapshots of GCC prior to 3.0. 15784 case $host_os in 15785 aix4 | aix4.[01] | aix4.[01].*) 15786 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15787 echo ' yes ' 15788 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 15789 : 15790 else 15791 can_build_shared=no 15792 fi 15793 ;; 15794 esac 15795 # Using Import Files as archive members, it is possible to support 15796 # filename-based versioning of shared library archives on AIX. While 15797 # this would work for both with and without runtime linking, it will 15798 # prevent static linking of such archives. So we do filename-based 15799 # shared library versioning with .so extension only, which is used 15800 # when both runtime linking and shared linking is enabled. 15801 # Unfortunately, runtime linking may impact performance, so we do 15802 # not want this to be the default eventually. Also, we use the 15803 # versioned .so libs for executables only if there is the -brtl 15804 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 15805 # To allow for filename-based versioning support, we need to create 15806 # libNAME.so.V as an archive file, containing: 15807 # *) an Import File, referring to the versioned filename of the 15808 # archive as well as the shared archive member, telling the 15809 # bitwidth (32 or 64) of that shared object, and providing the 15810 # list of exported symbols of that shared object, eventually 15811 # decorated with the 'weak' keyword 15812 # *) the shared object with the F_LOADONLY flag set, to really avoid 15813 # it being seen by the linker. 15814 # At run time we better use the real file rather than another symlink, 15815 # but for link time we create the symlink libNAME.so -> libNAME.so.V 15816 15817 case $with_aix_soname,$aix_use_runtimelinking in 15818 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 15819 # soname into executable. Probably we can add versioning support to 15820 # collect2, so additional links can be useful in future. 15821 aix,yes) # traditional libtool 15822 dynamic_linker='AIX unversionable lib.so' 15823 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15824 # instead of lib<name>.a to let people know that these are not 15825 # typical AIX shared libraries. 15826 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15827 ;; 15828 aix,no) # traditional AIX only 15829 dynamic_linker='AIX lib.a(lib.so.V)' 15830 # We preserve .a as extension for shared libraries through AIX4.2 15831 # and later when we are not doing run time linking. 15832 library_names_spec='$libname$release.a $libname.a' 15833 soname_spec='$libname$release$shared_ext$major' 15834 ;; 15835 svr4,*) # full svr4 only 15836 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 15837 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15838 # We do not specify a path in Import Files, so LIBPATH fires. 15839 shlibpath_overrides_runpath=yes 15840 ;; 15841 *,yes) # both, prefer svr4 15842 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 15843 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15844 # unpreferred sharedlib libNAME.a needs extra handling 15845 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 15846 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 15847 # We do not specify a path in Import Files, so LIBPATH fires. 15848 shlibpath_overrides_runpath=yes 15849 ;; 15850 *,no) # both, prefer aix 15851 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 15852 library_names_spec='$libname$release.a $libname.a' 15853 soname_spec='$libname$release$shared_ext$major' 15854 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 15855 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 15856 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 15857 ;; 15858 esac 15859 shlibpath_var=LIBPATH 15860 fi 15861 ;; 15862 15863amigaos*) 15864 case $host_cpu in 15865 powerpc) 15866 # Since July 2007 AmigaOS4 officially supports .so libraries. 15867 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15868 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15869 ;; 15870 m68k) 15871 library_names_spec='$libname.ixlibrary $libname.a' 15872 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15873 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 15874 ;; 15875 esac 15876 ;; 15877 15878beos*) 15879 library_names_spec='$libname$shared_ext' 15880 dynamic_linker="$host_os ld.so" 15881 shlibpath_var=LIBRARY_PATH 15882 ;; 15883 15884bsdi[45]*) 15885 version_type=linux # correct to gnu/linux during the next big refactor 15886 need_version=no 15887 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15888 soname_spec='$libname$release$shared_ext$major' 15889 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15890 shlibpath_var=LD_LIBRARY_PATH 15891 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15892 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15893 # the default ld.so.conf also contains /usr/contrib/lib and 15894 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15895 # libtool to hard-code these into programs 15896 ;; 15897 15898cygwin* | mingw* | pw32* | cegcc*) 15899 version_type=windows 15900 shrext_cmds=.dll 15901 need_version=no 15902 need_lib_prefix=no 15903 15904 case $GCC,$cc_basename in 15905 yes,*) 15906 # gcc 15907 library_names_spec='$libname.dll.a' 15908 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15909 postinstall_cmds='base_file=`basename \$file`~ 15910 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15911 dldir=$destdir/`dirname \$dlpath`~ 15912 test -d \$dldir || mkdir -p \$dldir~ 15913 $install_prog $dir/$dlname \$dldir/$dlname~ 15914 chmod a+x \$dldir/$dlname~ 15915 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15916 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15917 fi' 15918 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15919 dlpath=$dir/\$dldll~ 15920 $RM \$dlpath' 15921 shlibpath_overrides_runpath=yes 15922 15923 case $host_os in 15924 cygwin*) 15925 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15926 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15927 15928 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 15929 ;; 15930 mingw* | cegcc*) 15931 # MinGW DLLs use traditional 'lib' prefix 15932 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15933 ;; 15934 pw32*) 15935 # pw32 DLLs use 'pw' prefix rather than 'lib' 15936 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15937 ;; 15938 esac 15939 dynamic_linker='Win32 ld.exe' 15940 ;; 15941 15942 *,cl* | *,icl*) 15943 # Native MSVC or ICC 15944 libname_spec='$name' 15945 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15946 library_names_spec='$libname.dll.lib' 15947 15948 case $build_os in 15949 mingw*) 15950 sys_lib_search_path_spec= 15951 lt_save_ifs=$IFS 15952 IFS=';' 15953 for lt_path in $LIB 15954 do 15955 IFS=$lt_save_ifs 15956 # Let DOS variable expansion print the short 8.3 style file name. 15957 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15958 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15959 done 15960 IFS=$lt_save_ifs 15961 # Convert to MSYS style. 15962 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15963 ;; 15964 cygwin*) 15965 # Convert to unix form, then to dos form, then back to unix form 15966 # but this time dos style (no spaces!) so that the unix form looks 15967 # like /cygdrive/c/PROGRA~1:/cygdr... 15968 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15969 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15970 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15971 ;; 15972 *) 15973 sys_lib_search_path_spec=$LIB 15974 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15975 # It is most probably a Windows format PATH. 15976 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15977 else 15978 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15979 fi 15980 # FIXME: find the short name or the path components, as spaces are 15981 # common. (e.g. "Program Files" -> "PROGRA~1") 15982 ;; 15983 esac 15984 15985 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15986 postinstall_cmds='base_file=`basename \$file`~ 15987 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15988 dldir=$destdir/`dirname \$dlpath`~ 15989 test -d \$dldir || mkdir -p \$dldir~ 15990 $install_prog $dir/$dlname \$dldir/$dlname' 15991 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15992 dlpath=$dir/\$dldll~ 15993 $RM \$dlpath' 15994 shlibpath_overrides_runpath=yes 15995 dynamic_linker='Win32 link.exe' 15996 ;; 15997 15998 *) 15999 # Assume MSVC and ICC wrapper 16000 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 16001 dynamic_linker='Win32 ld.exe' 16002 ;; 16003 esac 16004 # FIXME: first we should search . and the directory the executable is in 16005 shlibpath_var=PATH 16006 ;; 16007 16008darwin* | rhapsody*) 16009 dynamic_linker="$host_os dyld" 16010 version_type=darwin 16011 need_lib_prefix=no 16012 need_version=no 16013 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 16014 soname_spec='$libname$release$major$shared_ext' 16015 shlibpath_overrides_runpath=yes 16016 shlibpath_var=DYLD_LIBRARY_PATH 16017 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16018 16019 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 16020 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16021 ;; 16022 16023dgux*) 16024 version_type=linux # correct to gnu/linux during the next big refactor 16025 need_lib_prefix=no 16026 need_version=no 16027 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16028 soname_spec='$libname$release$shared_ext$major' 16029 shlibpath_var=LD_LIBRARY_PATH 16030 ;; 16031 16032freebsd* | dragonfly* | midnightbsd*) 16033 # DragonFly does not have aout. When/if they implement a new 16034 # versioning mechanism, adjust this. 16035 if test -x /usr/bin/objformat; then 16036 objformat=`/usr/bin/objformat` 16037 else 16038 case $host_os in 16039 freebsd[23].*) objformat=aout ;; 16040 *) objformat=elf ;; 16041 esac 16042 fi 16043 version_type=freebsd-$objformat 16044 case $version_type in 16045 freebsd-elf*) 16046 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16047 soname_spec='$libname$release$shared_ext$major' 16048 need_version=no 16049 need_lib_prefix=no 16050 ;; 16051 freebsd-*) 16052 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16053 need_version=yes 16054 ;; 16055 esac 16056 shlibpath_var=LD_LIBRARY_PATH 16057 case $host_os in 16058 freebsd2.*) 16059 shlibpath_overrides_runpath=yes 16060 ;; 16061 freebsd3.[01]* | freebsdelf3.[01]*) 16062 shlibpath_overrides_runpath=yes 16063 hardcode_into_libs=yes 16064 ;; 16065 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16066 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16067 shlibpath_overrides_runpath=no 16068 hardcode_into_libs=yes 16069 ;; 16070 *) # from 4.6 on, and DragonFly 16071 shlibpath_overrides_runpath=yes 16072 hardcode_into_libs=yes 16073 ;; 16074 esac 16075 ;; 16076 16077haiku*) 16078 version_type=linux # correct to gnu/linux during the next big refactor 16079 need_lib_prefix=no 16080 need_version=no 16081 dynamic_linker="$host_os runtime_loader" 16082 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16083 soname_spec='$libname$release$shared_ext$major' 16084 shlibpath_var=LIBRARY_PATH 16085 shlibpath_overrides_runpath=no 16086 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16087 hardcode_into_libs=yes 16088 ;; 16089 16090hpux9* | hpux10* | hpux11*) 16091 # Give a soname corresponding to the major version so that dld.sl refuses to 16092 # link against other versions. 16093 version_type=sunos 16094 need_lib_prefix=no 16095 need_version=no 16096 case $host_cpu in 16097 ia64*) 16098 shrext_cmds='.so' 16099 hardcode_into_libs=yes 16100 dynamic_linker="$host_os dld.so" 16101 shlibpath_var=LD_LIBRARY_PATH 16102 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16103 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16104 soname_spec='$libname$release$shared_ext$major' 16105 if test 32 = "$HPUX_IA64_MODE"; then 16106 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16107 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 16108 else 16109 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16110 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 16111 fi 16112 ;; 16113 hppa*64*) 16114 shrext_cmds='.sl' 16115 hardcode_into_libs=yes 16116 dynamic_linker="$host_os dld.sl" 16117 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16118 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16119 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16120 soname_spec='$libname$release$shared_ext$major' 16121 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16122 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16123 ;; 16124 *) 16125 shrext_cmds='.sl' 16126 dynamic_linker="$host_os dld.sl" 16127 shlibpath_var=SHLIB_PATH 16128 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16129 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16130 soname_spec='$libname$release$shared_ext$major' 16131 ;; 16132 esac 16133 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16134 postinstall_cmds='chmod 555 $lib' 16135 # or fails outright, so override atomically: 16136 install_override_mode=555 16137 ;; 16138 16139interix[3-9]*) 16140 version_type=linux # correct to gnu/linux during the next big refactor 16141 need_lib_prefix=no 16142 need_version=no 16143 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16144 soname_spec='$libname$release$shared_ext$major' 16145 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16146 shlibpath_var=LD_LIBRARY_PATH 16147 shlibpath_overrides_runpath=no 16148 hardcode_into_libs=yes 16149 ;; 16150 16151irix5* | irix6* | nonstopux*) 16152 case $host_os in 16153 nonstopux*) version_type=nonstopux ;; 16154 *) 16155 if test yes = "$lt_cv_prog_gnu_ld"; then 16156 version_type=linux # correct to gnu/linux during the next big refactor 16157 else 16158 version_type=irix 16159 fi ;; 16160 esac 16161 need_lib_prefix=no 16162 need_version=no 16163 soname_spec='$libname$release$shared_ext$major' 16164 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 16165 case $host_os in 16166 irix5* | nonstopux*) 16167 libsuff= shlibsuff= 16168 ;; 16169 *) 16170 case $LD in # libtool.m4 will add one of these switches to LD 16171 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16172 libsuff= shlibsuff= libmagic=32-bit;; 16173 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16174 libsuff=32 shlibsuff=N32 libmagic=N32;; 16175 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16176 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16177 *) libsuff= shlibsuff= libmagic=never-match;; 16178 esac 16179 ;; 16180 esac 16181 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16182 shlibpath_overrides_runpath=no 16183 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 16184 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 16185 hardcode_into_libs=yes 16186 ;; 16187 16188# No shared lib support for Linux oldld, aout, or coff. 16189linux*oldld* | linux*aout* | linux*coff*) 16190 dynamic_linker=no 16191 ;; 16192 16193linux*android*) 16194 version_type=none # Android doesn't support versioned libraries. 16195 need_lib_prefix=no 16196 need_version=no 16197 library_names_spec='$libname$release$shared_ext' 16198 soname_spec='$libname$release$shared_ext' 16199 finish_cmds= 16200 shlibpath_var=LD_LIBRARY_PATH 16201 shlibpath_overrides_runpath=yes 16202 16203 # This implies no fast_install, which is unacceptable. 16204 # Some rework will be needed to allow for fast_install 16205 # before this can be enabled. 16206 hardcode_into_libs=yes 16207 16208 dynamic_linker='Android linker' 16209 # Don't embed -rpath directories since the linker doesn't support them. 16210 hardcode_libdir_flag_spec='-L$libdir' 16211 ;; 16212 16213# This must be glibc/ELF. 16214linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16215 version_type=linux # correct to gnu/linux during the next big refactor 16216 need_lib_prefix=no 16217 need_version=no 16218 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16219 soname_spec='$libname$release$shared_ext$major' 16220 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16221 shlibpath_var=LD_LIBRARY_PATH 16222 shlibpath_overrides_runpath=no 16223 16224 # Some binutils ld are patched to set DT_RUNPATH 16225 if test ${lt_cv_shlibpath_overrides_runpath+y} 16226then : 16227 printf %s "(cached) " >&6 16228else $as_nop 16229 lt_cv_shlibpath_overrides_runpath=no 16230 save_LDFLAGS=$LDFLAGS 16231 save_libdir=$libdir 16232 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 16233 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 16234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16235/* end confdefs.h. */ 16236 16237int 16238main (void) 16239{ 16240 16241 ; 16242 return 0; 16243} 16244_ACEOF 16245if ac_fn_c_try_link "$LINENO" 16246then : 16247 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 16248then : 16249 lt_cv_shlibpath_overrides_runpath=yes 16250fi 16251fi 16252rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16253 conftest$ac_exeext conftest.$ac_ext 16254 LDFLAGS=$save_LDFLAGS 16255 libdir=$save_libdir 16256 16257fi 16258 16259 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16260 16261 # This implies no fast_install, which is unacceptable. 16262 # Some rework will be needed to allow for fast_install 16263 # before this can be enabled. 16264 hardcode_into_libs=yes 16265 16266 # Ideally, we could use ldconfig to report *all* directores which are 16267 # searched for libraries, however this is still not possible. Aside from not 16268 # being certain /sbin/ldconfig is available, command 16269 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 16270 # even though it is searched at run-time. Try to do the best guess by 16271 # appending ld.so.conf contents (and includes) to the search path. 16272 if test -f /etc/ld.so.conf; then 16273 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' ' '` 16274 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16275 fi 16276 16277 # We used to test for /lib/ld.so.1 and disable shared libraries on 16278 # powerpc, because MkLinux only supported shared libraries with the 16279 # GNU dynamic linker. Since this was broken with cross compilers, 16280 # most powerpc-linux boxes support dynamic linking these days and 16281 # people can always --disable-shared, the test was removed, and we 16282 # assume the GNU/Linux dynamic linker is in use. 16283 dynamic_linker='GNU/Linux ld.so' 16284 ;; 16285 16286netbsdelf*-gnu) 16287 version_type=linux 16288 need_lib_prefix=no 16289 need_version=no 16290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16291 soname_spec='${libname}${release}${shared_ext}$major' 16292 shlibpath_var=LD_LIBRARY_PATH 16293 shlibpath_overrides_runpath=no 16294 hardcode_into_libs=yes 16295 dynamic_linker='NetBSD ld.elf_so' 16296 ;; 16297 16298netbsd*) 16299 version_type=sunos 16300 need_lib_prefix=no 16301 need_version=no 16302 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16303 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16304 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16305 dynamic_linker='NetBSD (a.out) ld.so' 16306 else 16307 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16308 soname_spec='$libname$release$shared_ext$major' 16309 dynamic_linker='NetBSD ld.elf_so' 16310 fi 16311 shlibpath_var=LD_LIBRARY_PATH 16312 shlibpath_overrides_runpath=yes 16313 hardcode_into_libs=yes 16314 ;; 16315 16316newsos6) 16317 version_type=linux # correct to gnu/linux during the next big refactor 16318 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16319 shlibpath_var=LD_LIBRARY_PATH 16320 shlibpath_overrides_runpath=yes 16321 ;; 16322 16323*nto* | *qnx*) 16324 version_type=qnx 16325 need_lib_prefix=no 16326 need_version=no 16327 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16328 soname_spec='$libname$release$shared_ext$major' 16329 shlibpath_var=LD_LIBRARY_PATH 16330 shlibpath_overrides_runpath=no 16331 hardcode_into_libs=yes 16332 dynamic_linker='ldqnx.so' 16333 ;; 16334 16335openbsd* | bitrig*) 16336 version_type=sunos 16337 sys_lib_dlsearch_path_spec=/usr/lib 16338 need_lib_prefix=no 16339 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16340 need_version=no 16341 else 16342 need_version=yes 16343 fi 16344 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16345 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16346 shlibpath_var=LD_LIBRARY_PATH 16347 shlibpath_overrides_runpath=yes 16348 ;; 16349 16350os2*) 16351 libname_spec='$name' 16352 version_type=windows 16353 shrext_cmds=.dll 16354 need_version=no 16355 need_lib_prefix=no 16356 # OS/2 can only load a DLL with a base name of 8 characters or less. 16357 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 16358 v=$($ECHO $release$versuffix | tr -d .-); 16359 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 16360 $ECHO $n$v`$shared_ext' 16361 library_names_spec='${libname}_dll.$libext' 16362 dynamic_linker='OS/2 ld.exe' 16363 shlibpath_var=BEGINLIBPATH 16364 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16365 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16366 postinstall_cmds='base_file=`basename \$file`~ 16367 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 16368 dldir=$destdir/`dirname \$dlpath`~ 16369 test -d \$dldir || mkdir -p \$dldir~ 16370 $install_prog $dir/$dlname \$dldir/$dlname~ 16371 chmod a+x \$dldir/$dlname~ 16372 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16373 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16374 fi' 16375 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 16376 dlpath=$dir/\$dldll~ 16377 $RM \$dlpath' 16378 ;; 16379 16380osf3* | osf4* | osf5*) 16381 version_type=osf 16382 need_lib_prefix=no 16383 need_version=no 16384 soname_spec='$libname$release$shared_ext$major' 16385 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16386 shlibpath_var=LD_LIBRARY_PATH 16387 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16388 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16389 ;; 16390 16391rdos*) 16392 dynamic_linker=no 16393 ;; 16394 16395solaris*) 16396 version_type=linux # correct to gnu/linux during the next big refactor 16397 need_lib_prefix=no 16398 need_version=no 16399 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16400 soname_spec='$libname$release$shared_ext$major' 16401 shlibpath_var=LD_LIBRARY_PATH 16402 shlibpath_overrides_runpath=yes 16403 hardcode_into_libs=yes 16404 # ldd complains unless libraries are executable 16405 postinstall_cmds='chmod +x $lib' 16406 ;; 16407 16408sunos4*) 16409 version_type=sunos 16410 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16411 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16412 shlibpath_var=LD_LIBRARY_PATH 16413 shlibpath_overrides_runpath=yes 16414 if test yes = "$with_gnu_ld"; then 16415 need_lib_prefix=no 16416 fi 16417 need_version=yes 16418 ;; 16419 16420sysv4 | sysv4.3*) 16421 version_type=linux # correct to gnu/linux during the next big refactor 16422 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16423 soname_spec='$libname$release$shared_ext$major' 16424 shlibpath_var=LD_LIBRARY_PATH 16425 case $host_vendor in 16426 sni) 16427 shlibpath_overrides_runpath=no 16428 need_lib_prefix=no 16429 runpath_var=LD_RUN_PATH 16430 ;; 16431 siemens) 16432 need_lib_prefix=no 16433 ;; 16434 motorola) 16435 need_lib_prefix=no 16436 need_version=no 16437 shlibpath_overrides_runpath=no 16438 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16439 ;; 16440 esac 16441 ;; 16442 16443sysv4*MP*) 16444 if test -d /usr/nec; then 16445 version_type=linux # correct to gnu/linux during the next big refactor 16446 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 16447 soname_spec='$libname$shared_ext.$major' 16448 shlibpath_var=LD_LIBRARY_PATH 16449 fi 16450 ;; 16451 16452sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16453 version_type=sco 16454 need_lib_prefix=no 16455 need_version=no 16456 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 16457 soname_spec='$libname$release$shared_ext$major' 16458 shlibpath_var=LD_LIBRARY_PATH 16459 shlibpath_overrides_runpath=yes 16460 hardcode_into_libs=yes 16461 if test yes = "$with_gnu_ld"; then 16462 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16463 else 16464 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16465 case $host_os in 16466 sco3.2v5*) 16467 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16468 ;; 16469 esac 16470 fi 16471 sys_lib_dlsearch_path_spec='/usr/lib' 16472 ;; 16473 16474tpf*) 16475 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16476 version_type=linux # correct to gnu/linux during the next big refactor 16477 need_lib_prefix=no 16478 need_version=no 16479 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16480 shlibpath_var=LD_LIBRARY_PATH 16481 shlibpath_overrides_runpath=no 16482 hardcode_into_libs=yes 16483 ;; 16484 16485uts4*) 16486 version_type=linux # correct to gnu/linux during the next big refactor 16487 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16488 soname_spec='$libname$release$shared_ext$major' 16489 shlibpath_var=LD_LIBRARY_PATH 16490 ;; 16491 16492*) 16493 dynamic_linker=no 16494 ;; 16495esac 16496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16497printf "%s\n" "$dynamic_linker" >&6; } 16498test no = "$dynamic_linker" && can_build_shared=no 16499 16500variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16501if test yes = "$GCC"; then 16502 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16503fi 16504 16505if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 16506 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 16507fi 16508 16509if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 16510 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 16511fi 16512 16513# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 16514configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 16515 16516# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 16517func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 16518 16519# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 16520configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 16521 16522 16523 16524 16525 16526 16527 16528 16529 16530 16531 16532 16533 16534 16535 16536 16537 16538 16539 16540 16541 16542 16543 16544 16545 16546 16547 16548 16549 16550 16551 16552 16553 16554 16555 16556 16557 16558 16559 16560 16561 16562 16563 16564 16565 16566 16567 16568 16569 16570 16571 16572 16573 16574 16575 16576 16577 16578 16579 16580 16581 16582 16583 16584 16585 16586 16587 16588 16589 16590 16591 16592 16593 16594 16595 16596 16597 16598 16599 16600 16601 16602 16603 16604 16605 16606 16607 16608 16609 16610 16611 16612 16613 16614 16615 16616 16617 16618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16619printf %s "checking how to hardcode library paths into programs... " >&6; } 16620hardcode_action= 16621if test -n "$hardcode_libdir_flag_spec" || 16622 test -n "$runpath_var" || 16623 test yes = "$hardcode_automatic"; then 16624 16625 # We can hardcode non-existent directories. 16626 if test no != "$hardcode_direct" && 16627 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16628 # have to relink, otherwise we might link with an installed library 16629 # when we should be linking with a yet-to-be-installed one 16630 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 16631 test no != "$hardcode_minus_L"; then 16632 # Linking always hardcodes the temporary library directory. 16633 hardcode_action=relink 16634 else 16635 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16636 hardcode_action=immediate 16637 fi 16638else 16639 # We cannot hardcode anything, or else we can only hardcode existing 16640 # directories. 16641 hardcode_action=unsupported 16642fi 16643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 16644printf "%s\n" "$hardcode_action" >&6; } 16645 16646if test relink = "$hardcode_action" || 16647 test yes = "$inherit_rpath"; then 16648 # Fast installation is not supported 16649 enable_fast_install=no 16650elif test yes = "$shlibpath_overrides_runpath" || 16651 test no = "$enable_shared"; then 16652 # Fast installation is not necessary 16653 enable_fast_install=needless 16654fi 16655 16656 16657 16658 16659 16660 16661 if test yes != "$enable_dlopen"; then 16662 enable_dlopen=unknown 16663 enable_dlopen_self=unknown 16664 enable_dlopen_self_static=unknown 16665else 16666 lt_cv_dlopen=no 16667 lt_cv_dlopen_libs= 16668 16669 case $host_os in 16670 beos*) 16671 lt_cv_dlopen=load_add_on 16672 lt_cv_dlopen_libs= 16673 lt_cv_dlopen_self=yes 16674 ;; 16675 16676 mingw* | pw32* | cegcc*) 16677 lt_cv_dlopen=LoadLibrary 16678 lt_cv_dlopen_libs= 16679 ;; 16680 16681 cygwin*) 16682 lt_cv_dlopen=dlopen 16683 lt_cv_dlopen_libs= 16684 ;; 16685 16686 darwin*) 16687 # if libdl is installed we need to link against it 16688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 16689printf %s "checking for dlopen in -ldl... " >&6; } 16690if test ${ac_cv_lib_dl_dlopen+y} 16691then : 16692 printf %s "(cached) " >&6 16693else $as_nop 16694 ac_check_lib_save_LIBS=$LIBS 16695LIBS="-ldl $LIBS" 16696cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16697/* end confdefs.h. */ 16698 16699/* Override any GCC internal prototype to avoid an error. 16700 Use char because int might match the return type of a GCC 16701 builtin and then its argument prototype would still apply. */ 16702char dlopen (); 16703int 16704main (void) 16705{ 16706return dlopen (); 16707 ; 16708 return 0; 16709} 16710_ACEOF 16711if ac_fn_c_try_link "$LINENO" 16712then : 16713 ac_cv_lib_dl_dlopen=yes 16714else $as_nop 16715 ac_cv_lib_dl_dlopen=no 16716fi 16717rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16718 conftest$ac_exeext conftest.$ac_ext 16719LIBS=$ac_check_lib_save_LIBS 16720fi 16721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 16722printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 16723if test "x$ac_cv_lib_dl_dlopen" = xyes 16724then : 16725 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 16726else $as_nop 16727 16728 lt_cv_dlopen=dyld 16729 lt_cv_dlopen_libs= 16730 lt_cv_dlopen_self=yes 16731 16732fi 16733 16734 ;; 16735 16736 tpf*) 16737 # Don't try to run any link tests for TPF. We know it's impossible 16738 # because TPF is a cross-compiler, and we know how we open DSOs. 16739 lt_cv_dlopen=dlopen 16740 lt_cv_dlopen_libs= 16741 lt_cv_dlopen_self=no 16742 ;; 16743 16744 *) 16745 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 16746if test "x$ac_cv_func_shl_load" = xyes 16747then : 16748 lt_cv_dlopen=shl_load 16749else $as_nop 16750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 16751printf %s "checking for shl_load in -ldld... " >&6; } 16752if test ${ac_cv_lib_dld_shl_load+y} 16753then : 16754 printf %s "(cached) " >&6 16755else $as_nop 16756 ac_check_lib_save_LIBS=$LIBS 16757LIBS="-ldld $LIBS" 16758cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16759/* end confdefs.h. */ 16760 16761/* Override any GCC internal prototype to avoid an error. 16762 Use char because int might match the return type of a GCC 16763 builtin and then its argument prototype would still apply. */ 16764char shl_load (); 16765int 16766main (void) 16767{ 16768return shl_load (); 16769 ; 16770 return 0; 16771} 16772_ACEOF 16773if ac_fn_c_try_link "$LINENO" 16774then : 16775 ac_cv_lib_dld_shl_load=yes 16776else $as_nop 16777 ac_cv_lib_dld_shl_load=no 16778fi 16779rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16780 conftest$ac_exeext conftest.$ac_ext 16781LIBS=$ac_check_lib_save_LIBS 16782fi 16783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 16784printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 16785if test "x$ac_cv_lib_dld_shl_load" = xyes 16786then : 16787 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 16788else $as_nop 16789 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 16790if test "x$ac_cv_func_dlopen" = xyes 16791then : 16792 lt_cv_dlopen=dlopen 16793else $as_nop 16794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 16795printf %s "checking for dlopen in -ldl... " >&6; } 16796if test ${ac_cv_lib_dl_dlopen+y} 16797then : 16798 printf %s "(cached) " >&6 16799else $as_nop 16800 ac_check_lib_save_LIBS=$LIBS 16801LIBS="-ldl $LIBS" 16802cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16803/* end confdefs.h. */ 16804 16805/* Override any GCC internal prototype to avoid an error. 16806 Use char because int might match the return type of a GCC 16807 builtin and then its argument prototype would still apply. */ 16808char dlopen (); 16809int 16810main (void) 16811{ 16812return dlopen (); 16813 ; 16814 return 0; 16815} 16816_ACEOF 16817if ac_fn_c_try_link "$LINENO" 16818then : 16819 ac_cv_lib_dl_dlopen=yes 16820else $as_nop 16821 ac_cv_lib_dl_dlopen=no 16822fi 16823rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16824 conftest$ac_exeext conftest.$ac_ext 16825LIBS=$ac_check_lib_save_LIBS 16826fi 16827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 16828printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 16829if test "x$ac_cv_lib_dl_dlopen" = xyes 16830then : 16831 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 16832else $as_nop 16833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 16834printf %s "checking for dlopen in -lsvld... " >&6; } 16835if test ${ac_cv_lib_svld_dlopen+y} 16836then : 16837 printf %s "(cached) " >&6 16838else $as_nop 16839 ac_check_lib_save_LIBS=$LIBS 16840LIBS="-lsvld $LIBS" 16841cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16842/* end confdefs.h. */ 16843 16844/* Override any GCC internal prototype to avoid an error. 16845 Use char because int might match the return type of a GCC 16846 builtin and then its argument prototype would still apply. */ 16847char dlopen (); 16848int 16849main (void) 16850{ 16851return dlopen (); 16852 ; 16853 return 0; 16854} 16855_ACEOF 16856if ac_fn_c_try_link "$LINENO" 16857then : 16858 ac_cv_lib_svld_dlopen=yes 16859else $as_nop 16860 ac_cv_lib_svld_dlopen=no 16861fi 16862rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16863 conftest$ac_exeext conftest.$ac_ext 16864LIBS=$ac_check_lib_save_LIBS 16865fi 16866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 16867printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 16868if test "x$ac_cv_lib_svld_dlopen" = xyes 16869then : 16870 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 16871else $as_nop 16872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 16873printf %s "checking for dld_link in -ldld... " >&6; } 16874if test ${ac_cv_lib_dld_dld_link+y} 16875then : 16876 printf %s "(cached) " >&6 16877else $as_nop 16878 ac_check_lib_save_LIBS=$LIBS 16879LIBS="-ldld $LIBS" 16880cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16881/* end confdefs.h. */ 16882 16883/* Override any GCC internal prototype to avoid an error. 16884 Use char because int might match the return type of a GCC 16885 builtin and then its argument prototype would still apply. */ 16886char dld_link (); 16887int 16888main (void) 16889{ 16890return dld_link (); 16891 ; 16892 return 0; 16893} 16894_ACEOF 16895if ac_fn_c_try_link "$LINENO" 16896then : 16897 ac_cv_lib_dld_dld_link=yes 16898else $as_nop 16899 ac_cv_lib_dld_dld_link=no 16900fi 16901rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16902 conftest$ac_exeext conftest.$ac_ext 16903LIBS=$ac_check_lib_save_LIBS 16904fi 16905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 16906printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 16907if test "x$ac_cv_lib_dld_dld_link" = xyes 16908then : 16909 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 16910fi 16911 16912 16913fi 16914 16915 16916fi 16917 16918 16919fi 16920 16921 16922fi 16923 16924 16925fi 16926 16927 ;; 16928 esac 16929 16930 if test no = "$lt_cv_dlopen"; then 16931 enable_dlopen=no 16932 else 16933 enable_dlopen=yes 16934 fi 16935 16936 case $lt_cv_dlopen in 16937 dlopen) 16938 save_CPPFLAGS=$CPPFLAGS 16939 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 16940 16941 save_LDFLAGS=$LDFLAGS 16942 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 16943 16944 save_LIBS=$LIBS 16945 LIBS="$lt_cv_dlopen_libs $LIBS" 16946 16947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 16948printf %s "checking whether a program can dlopen itself... " >&6; } 16949if test ${lt_cv_dlopen_self+y} 16950then : 16951 printf %s "(cached) " >&6 16952else $as_nop 16953 if test yes = "$cross_compiling"; then : 16954 lt_cv_dlopen_self=cross 16955else 16956 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 16957 lt_status=$lt_dlunknown 16958 cat > conftest.$ac_ext <<_LT_EOF 16959#line $LINENO "configure" 16960#include "confdefs.h" 16961 16962#if HAVE_DLFCN_H 16963#include <dlfcn.h> 16964#endif 16965 16966#include <stdio.h> 16967 16968#ifdef RTLD_GLOBAL 16969# define LT_DLGLOBAL RTLD_GLOBAL 16970#else 16971# ifdef DL_GLOBAL 16972# define LT_DLGLOBAL DL_GLOBAL 16973# else 16974# define LT_DLGLOBAL 0 16975# endif 16976#endif 16977 16978/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 16979 find out it does not work in some platform. */ 16980#ifndef LT_DLLAZY_OR_NOW 16981# ifdef RTLD_LAZY 16982# define LT_DLLAZY_OR_NOW RTLD_LAZY 16983# else 16984# ifdef DL_LAZY 16985# define LT_DLLAZY_OR_NOW DL_LAZY 16986# else 16987# ifdef RTLD_NOW 16988# define LT_DLLAZY_OR_NOW RTLD_NOW 16989# else 16990# ifdef DL_NOW 16991# define LT_DLLAZY_OR_NOW DL_NOW 16992# else 16993# define LT_DLLAZY_OR_NOW 0 16994# endif 16995# endif 16996# endif 16997# endif 16998#endif 16999 17000/* When -fvisibility=hidden is used, assume the code has been annotated 17001 correspondingly for the symbols needed. */ 17002#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 17003int fnord () __attribute__((visibility("default"))); 17004#endif 17005 17006int fnord () { return 42; } 17007int main () 17008{ 17009 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17010 int status = $lt_dlunknown; 17011 17012 if (self) 17013 { 17014 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17015 else 17016 { 17017 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17018 else puts (dlerror ()); 17019 } 17020 /* dlclose (self); */ 17021 } 17022 else 17023 puts (dlerror ()); 17024 17025 return status; 17026} 17027_LT_EOF 17028 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 17029 (eval $ac_link) 2>&5 17030 ac_status=$? 17031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17032 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 17033 (./conftest; exit; ) >&5 2>/dev/null 17034 lt_status=$? 17035 case x$lt_status in 17036 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 17037 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 17038 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 17039 esac 17040 else : 17041 # compilation failed 17042 lt_cv_dlopen_self=no 17043 fi 17044fi 17045rm -fr conftest* 17046 17047 17048fi 17049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 17050printf "%s\n" "$lt_cv_dlopen_self" >&6; } 17051 17052 if test yes = "$lt_cv_dlopen_self"; then 17053 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 17054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 17055printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 17056if test ${lt_cv_dlopen_self_static+y} 17057then : 17058 printf %s "(cached) " >&6 17059else $as_nop 17060 if test yes = "$cross_compiling"; then : 17061 lt_cv_dlopen_self_static=cross 17062else 17063 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17064 lt_status=$lt_dlunknown 17065 cat > conftest.$ac_ext <<_LT_EOF 17066#line $LINENO "configure" 17067#include "confdefs.h" 17068 17069#if HAVE_DLFCN_H 17070#include <dlfcn.h> 17071#endif 17072 17073#include <stdio.h> 17074 17075#ifdef RTLD_GLOBAL 17076# define LT_DLGLOBAL RTLD_GLOBAL 17077#else 17078# ifdef DL_GLOBAL 17079# define LT_DLGLOBAL DL_GLOBAL 17080# else 17081# define LT_DLGLOBAL 0 17082# endif 17083#endif 17084 17085/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17086 find out it does not work in some platform. */ 17087#ifndef LT_DLLAZY_OR_NOW 17088# ifdef RTLD_LAZY 17089# define LT_DLLAZY_OR_NOW RTLD_LAZY 17090# else 17091# ifdef DL_LAZY 17092# define LT_DLLAZY_OR_NOW DL_LAZY 17093# else 17094# ifdef RTLD_NOW 17095# define LT_DLLAZY_OR_NOW RTLD_NOW 17096# else 17097# ifdef DL_NOW 17098# define LT_DLLAZY_OR_NOW DL_NOW 17099# else 17100# define LT_DLLAZY_OR_NOW 0 17101# endif 17102# endif 17103# endif 17104# endif 17105#endif 17106 17107/* When -fvisibility=hidden is used, assume the code has been annotated 17108 correspondingly for the symbols needed. */ 17109#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 17110int fnord () __attribute__((visibility("default"))); 17111#endif 17112 17113int fnord () { return 42; } 17114int main () 17115{ 17116 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17117 int status = $lt_dlunknown; 17118 17119 if (self) 17120 { 17121 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17122 else 17123 { 17124 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17125 else puts (dlerror ()); 17126 } 17127 /* dlclose (self); */ 17128 } 17129 else 17130 puts (dlerror ()); 17131 17132 return status; 17133} 17134_LT_EOF 17135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 17136 (eval $ac_link) 2>&5 17137 ac_status=$? 17138 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17139 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 17140 (./conftest; exit; ) >&5 2>/dev/null 17141 lt_status=$? 17142 case x$lt_status in 17143 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 17144 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 17145 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 17146 esac 17147 else : 17148 # compilation failed 17149 lt_cv_dlopen_self_static=no 17150 fi 17151fi 17152rm -fr conftest* 17153 17154 17155fi 17156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 17157printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 17158 fi 17159 17160 CPPFLAGS=$save_CPPFLAGS 17161 LDFLAGS=$save_LDFLAGS 17162 LIBS=$save_LIBS 17163 ;; 17164 esac 17165 17166 case $lt_cv_dlopen_self in 17167 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 17168 *) enable_dlopen_self=unknown ;; 17169 esac 17170 17171 case $lt_cv_dlopen_self_static in 17172 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 17173 *) enable_dlopen_self_static=unknown ;; 17174 esac 17175fi 17176 17177 17178 17179 17180 17181 17182 17183 17184 17185 17186 17187 17188 17189 17190 17191 17192 17193striplib= 17194old_striplib= 17195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 17196printf %s "checking whether stripping libraries is possible... " >&6; } 17197if test -z "$STRIP"; then 17198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17199printf "%s\n" "no" >&6; } 17200else 17201 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 17202 old_striplib="$STRIP --strip-debug" 17203 striplib="$STRIP --strip-unneeded" 17204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17205printf "%s\n" "yes" >&6; } 17206 else 17207 case $host_os in 17208 darwin*) 17209 # FIXME - insert some real tests, host_os isn't really good enough 17210 striplib="$STRIP -x" 17211 old_striplib="$STRIP -S" 17212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17213printf "%s\n" "yes" >&6; } 17214 ;; 17215 freebsd*) 17216 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 17217 old_striplib="$STRIP --strip-debug" 17218 striplib="$STRIP --strip-unneeded" 17219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17220printf "%s\n" "yes" >&6; } 17221 else 17222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17223printf "%s\n" "no" >&6; } 17224 fi 17225 ;; 17226 *) 17227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17228printf "%s\n" "no" >&6; } 17229 ;; 17230 esac 17231 fi 17232fi 17233 17234 17235 17236 17237 17238 17239 17240 17241 17242 17243 17244 17245 # Report what library types will actually be built 17246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 17247printf %s "checking if libtool supports shared libraries... " >&6; } 17248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 17249printf "%s\n" "$can_build_shared" >&6; } 17250 17251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 17252printf %s "checking whether to build shared libraries... " >&6; } 17253 test no = "$can_build_shared" && enable_shared=no 17254 17255 # On AIX, shared libraries and static libraries use the same namespace, and 17256 # are all built from PIC. 17257 case $host_os in 17258 aix3*) 17259 test yes = "$enable_shared" && enable_static=no 17260 if test -n "$RANLIB"; then 17261 archive_cmds="$archive_cmds~\$RANLIB \$lib" 17262 postinstall_cmds='$RANLIB $lib' 17263 fi 17264 ;; 17265 17266 aix[4-9]*) 17267 if test ia64 != "$host_cpu"; then 17268 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 17269 yes,aix,yes) ;; # shared object as lib.so file only 17270 yes,svr4,*) ;; # shared object as lib.so archive member only 17271 yes,*) enable_static=no ;; # shared object in lib.a archive as well 17272 esac 17273 fi 17274 ;; 17275 esac 17276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 17277printf "%s\n" "$enable_shared" >&6; } 17278 17279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 17280printf %s "checking whether to build static libraries... " >&6; } 17281 # Make sure either enable_shared or enable_static is yes. 17282 test yes = "$enable_shared" || enable_static=yes 17283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 17284printf "%s\n" "$enable_static" >&6; } 17285 17286 17287 17288 17289fi 17290ac_ext=c 17291ac_cpp='$CPP $CPPFLAGS' 17292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17294ac_compiler_gnu=$ac_cv_c_compiler_gnu 17295 17296CC=$lt_save_CC 17297 17298 if test -n "$CXX" && ( test no != "$CXX" && 17299 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 17300 (test g++ != "$CXX"))); then 17301 ac_ext=cpp 17302ac_cpp='$CXXCPP $CPPFLAGS' 17303ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17304ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17305ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 17307printf %s "checking how to run the C++ preprocessor... " >&6; } 17308if test -z "$CXXCPP"; then 17309 if test ${ac_cv_prog_CXXCPP+y} 17310then : 17311 printf %s "(cached) " >&6 17312else $as_nop 17313 # Double quotes because $CXX needs to be expanded 17314 for CXXCPP in "$CXX -E" cpp /lib/cpp 17315 do 17316 ac_preproc_ok=false 17317for ac_cxx_preproc_warn_flag in '' yes 17318do 17319 # Use a header file that comes with gcc, so configuring glibc 17320 # with a fresh cross-compiler works. 17321 # On the NeXT, cc -E runs the code through the compiler's parser, 17322 # not just through cpp. "Syntax error" is here to catch this case. 17323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17324/* end confdefs.h. */ 17325#include <limits.h> 17326 Syntax error 17327_ACEOF 17328if ac_fn_cxx_try_cpp "$LINENO" 17329then : 17330 17331else $as_nop 17332 # Broken: fails on valid input. 17333continue 17334fi 17335rm -f conftest.err conftest.i conftest.$ac_ext 17336 17337 # OK, works on sane cases. Now check whether nonexistent headers 17338 # can be detected and how. 17339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17340/* end confdefs.h. */ 17341#include <ac_nonexistent.h> 17342_ACEOF 17343if ac_fn_cxx_try_cpp "$LINENO" 17344then : 17345 # Broken: success on invalid input. 17346continue 17347else $as_nop 17348 # Passes both tests. 17349ac_preproc_ok=: 17350break 17351fi 17352rm -f conftest.err conftest.i conftest.$ac_ext 17353 17354done 17355# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 17356rm -f conftest.i conftest.err conftest.$ac_ext 17357if $ac_preproc_ok 17358then : 17359 break 17360fi 17361 17362 done 17363 ac_cv_prog_CXXCPP=$CXXCPP 17364 17365fi 17366 CXXCPP=$ac_cv_prog_CXXCPP 17367else 17368 ac_cv_prog_CXXCPP=$CXXCPP 17369fi 17370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 17371printf "%s\n" "$CXXCPP" >&6; } 17372ac_preproc_ok=false 17373for ac_cxx_preproc_warn_flag in '' yes 17374do 17375 # Use a header file that comes with gcc, so configuring glibc 17376 # with a fresh cross-compiler works. 17377 # On the NeXT, cc -E runs the code through the compiler's parser, 17378 # not just through cpp. "Syntax error" is here to catch this case. 17379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17380/* end confdefs.h. */ 17381#include <limits.h> 17382 Syntax error 17383_ACEOF 17384if ac_fn_cxx_try_cpp "$LINENO" 17385then : 17386 17387else $as_nop 17388 # Broken: fails on valid input. 17389continue 17390fi 17391rm -f conftest.err conftest.i conftest.$ac_ext 17392 17393 # OK, works on sane cases. Now check whether nonexistent headers 17394 # can be detected and how. 17395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17396/* end confdefs.h. */ 17397#include <ac_nonexistent.h> 17398_ACEOF 17399if ac_fn_cxx_try_cpp "$LINENO" 17400then : 17401 # Broken: success on invalid input. 17402continue 17403else $as_nop 17404 # Passes both tests. 17405ac_preproc_ok=: 17406break 17407fi 17408rm -f conftest.err conftest.i conftest.$ac_ext 17409 17410done 17411# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 17412rm -f conftest.i conftest.err conftest.$ac_ext 17413if $ac_preproc_ok 17414then : 17415 17416else $as_nop 17417 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17418printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 17419as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 17420See \`config.log' for more details" "$LINENO" 5; } 17421fi 17422 17423ac_ext=c 17424ac_cpp='$CPP $CPPFLAGS' 17425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17427ac_compiler_gnu=$ac_cv_c_compiler_gnu 17428 17429else 17430 _lt_caught_CXX_error=yes 17431fi 17432 17433ac_ext=cpp 17434ac_cpp='$CXXCPP $CPPFLAGS' 17435ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17436ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17437ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17438 17439archive_cmds_need_lc_CXX=no 17440allow_undefined_flag_CXX= 17441always_export_symbols_CXX=no 17442archive_expsym_cmds_CXX= 17443compiler_needs_object_CXX=no 17444export_dynamic_flag_spec_CXX= 17445hardcode_direct_CXX=no 17446hardcode_direct_absolute_CXX=no 17447hardcode_libdir_flag_spec_CXX= 17448hardcode_libdir_separator_CXX= 17449hardcode_minus_L_CXX=no 17450hardcode_shlibpath_var_CXX=unsupported 17451hardcode_automatic_CXX=no 17452inherit_rpath_CXX=no 17453module_cmds_CXX= 17454module_expsym_cmds_CXX= 17455link_all_deplibs_CXX=unknown 17456old_archive_cmds_CXX=$old_archive_cmds 17457reload_flag_CXX=$reload_flag 17458reload_cmds_CXX=$reload_cmds 17459no_undefined_flag_CXX= 17460whole_archive_flag_spec_CXX= 17461enable_shared_with_static_runtimes_CXX=no 17462 17463# Source file extension for C++ test sources. 17464ac_ext=cpp 17465 17466# Object file extension for compiled C++ test sources. 17467objext=o 17468objext_CXX=$objext 17469 17470# No sense in running all these tests if we already determined that 17471# the CXX compiler isn't working. Some variables (like enable_shared) 17472# are currently assumed to apply to all compilers on this platform, 17473# and will be corrupted by setting them based on a non-working compiler. 17474if test yes != "$_lt_caught_CXX_error"; then 17475 # Code to be used in simple compile tests 17476 lt_simple_compile_test_code="int some_variable = 0;" 17477 17478 # Code to be used in simple link tests 17479 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 17480 17481 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 17482 17483 17484 17485 17486 17487 17488# If no C compiler was specified, use CC. 17489LTCC=${LTCC-"$CC"} 17490 17491# If no C compiler flags were specified, use CFLAGS. 17492LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 17493 17494# Allow CC to be a program name with arguments. 17495compiler=$CC 17496 17497 17498 # save warnings/boilerplate of simple test code 17499 ac_outfile=conftest.$ac_objext 17500echo "$lt_simple_compile_test_code" >conftest.$ac_ext 17501eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17502_lt_compiler_boilerplate=`cat conftest.err` 17503$RM conftest* 17504 17505 ac_outfile=conftest.$ac_objext 17506echo "$lt_simple_link_test_code" >conftest.$ac_ext 17507eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17508_lt_linker_boilerplate=`cat conftest.err` 17509$RM -r conftest* 17510 17511 17512 # Allow CC to be a program name with arguments. 17513 lt_save_CC=$CC 17514 lt_save_CFLAGS=$CFLAGS 17515 lt_save_LD=$LD 17516 lt_save_GCC=$GCC 17517 GCC=$GXX 17518 lt_save_with_gnu_ld=$with_gnu_ld 17519 lt_save_path_LD=$lt_cv_path_LD 17520 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 17521 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 17522 else 17523 $as_unset lt_cv_prog_gnu_ld 17524 fi 17525 if test -n "${lt_cv_path_LDCXX+set}"; then 17526 lt_cv_path_LD=$lt_cv_path_LDCXX 17527 else 17528 $as_unset lt_cv_path_LD 17529 fi 17530 test -z "${LDCXX+set}" || LD=$LDCXX 17531 CC=${CXX-"c++"} 17532 CFLAGS=$CXXFLAGS 17533 compiler=$CC 17534 compiler_CXX=$CC 17535 func_cc_basename $compiler 17536cc_basename=$func_cc_basename_result 17537 17538 17539 if test -n "$compiler"; then 17540 # We don't want -fno-exception when compiling C++ code, so set the 17541 # no_builtin_flag separately 17542 if test yes = "$GXX"; then 17543 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 17544 else 17545 lt_prog_compiler_no_builtin_flag_CXX= 17546 fi 17547 17548 if test yes = "$GXX"; then 17549 # Set up default GNU C++ configuration 17550 17551 17552 17553# Check whether --with-gnu-ld was given. 17554if test ${with_gnu_ld+y} 17555then : 17556 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 17557else $as_nop 17558 with_gnu_ld=no 17559fi 17560 17561ac_prog=ld 17562if test yes = "$GCC"; then 17563 # Check if gcc -print-prog-name=ld gives a path. 17564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 17565printf %s "checking for ld used by $CC... " >&6; } 17566 case $host in 17567 *-*-mingw*) 17568 # gcc leaves a trailing carriage return, which upsets mingw 17569 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 17570 *) 17571 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 17572 esac 17573 case $ac_prog in 17574 # Accept absolute paths. 17575 [\\/]* | ?:[\\/]*) 17576 re_direlt='/[^/][^/]*/\.\./' 17577 # Canonicalize the pathname of ld 17578 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 17579 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 17580 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 17581 done 17582 test -z "$LD" && LD=$ac_prog 17583 ;; 17584 "") 17585 # If it fails, then pretend we aren't using GCC. 17586 ac_prog=ld 17587 ;; 17588 *) 17589 # If it is relative, then search for the first ld in PATH. 17590 with_gnu_ld=unknown 17591 ;; 17592 esac 17593elif test yes = "$with_gnu_ld"; then 17594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 17595printf %s "checking for GNU ld... " >&6; } 17596else 17597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 17598printf %s "checking for non-GNU ld... " >&6; } 17599fi 17600if test ${lt_cv_path_LD+y} 17601then : 17602 printf %s "(cached) " >&6 17603else $as_nop 17604 if test -z "$LD"; then 17605 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 17606 for ac_dir in $PATH; do 17607 IFS=$lt_save_ifs 17608 test -z "$ac_dir" && ac_dir=. 17609 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 17610 lt_cv_path_LD=$ac_dir/$ac_prog 17611 # Check to see if the program is GNU ld. I'd rather use --version, 17612 # but apparently some variants of GNU ld only accept -v. 17613 # Break only if it was the GNU/non-GNU ld that we prefer. 17614 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 17615 *GNU* | *'with BFD'*) 17616 test no != "$with_gnu_ld" && break 17617 ;; 17618 *) 17619 test yes != "$with_gnu_ld" && break 17620 ;; 17621 esac 17622 fi 17623 done 17624 IFS=$lt_save_ifs 17625else 17626 lt_cv_path_LD=$LD # Let the user override the test with a path. 17627fi 17628fi 17629 17630LD=$lt_cv_path_LD 17631if test -n "$LD"; then 17632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 17633printf "%s\n" "$LD" >&6; } 17634else 17635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17636printf "%s\n" "no" >&6; } 17637fi 17638test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 17639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 17640printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 17641if test ${lt_cv_prog_gnu_ld+y} 17642then : 17643 printf %s "(cached) " >&6 17644else $as_nop 17645 # I'd rather use --version here, but apparently some GNU lds only accept -v. 17646case `$LD -v 2>&1 </dev/null` in 17647*GNU* | *'with BFD'*) 17648 lt_cv_prog_gnu_ld=yes 17649 ;; 17650*) 17651 lt_cv_prog_gnu_ld=no 17652 ;; 17653esac 17654fi 17655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 17656printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 17657with_gnu_ld=$lt_cv_prog_gnu_ld 17658 17659 17660 17661 17662 17663 17664 17665 # Check if GNU C++ uses GNU ld as the underlying linker, since the 17666 # archiving commands below assume that GNU ld is being used. 17667 if test yes = "$with_gnu_ld"; then 17668 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 17669 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 17670 17671 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 17672 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 17673 17674 # If archive_cmds runs LD, not CC, wlarc should be empty 17675 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 17676 # investigate it a little bit more. (MM) 17677 wlarc='$wl' 17678 17679 # ancient GNU ld didn't support --whole-archive et. al. 17680 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 17681 $GREP 'no-whole-archive' > /dev/null; then 17682 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 17683 else 17684 whole_archive_flag_spec_CXX= 17685 fi 17686 else 17687 with_gnu_ld=no 17688 wlarc= 17689 17690 # A generic and very simple default shared library creation 17691 # command for GNU C++ for the case where it uses the native 17692 # linker, instead of GNU ld. If possible, this setting should 17693 # overridden to take advantage of the native linker features on 17694 # the platform it is being used on. 17695 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 17696 fi 17697 17698 # Commands to make compiler produce verbose output that lists 17699 # what "hidden" libraries, object files and flags are used when 17700 # linking a shared library. 17701 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 17702 17703 else 17704 GXX=no 17705 with_gnu_ld=no 17706 wlarc= 17707 fi 17708 17709 # PORTME: fill in a description of your system's C++ link characteristics 17710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17711printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 17712 ld_shlibs_CXX=yes 17713 case $host_os in 17714 aix3*) 17715 # FIXME: insert proper C++ library support 17716 ld_shlibs_CXX=no 17717 ;; 17718 aix[4-9]*) 17719 if test ia64 = "$host_cpu"; then 17720 # On IA64, the linker does run time linking by default, so we don't 17721 # have to do anything special. 17722 aix_use_runtimelinking=no 17723 exp_sym_flag='-Bexport' 17724 no_entry_flag= 17725 else 17726 aix_use_runtimelinking=no 17727 17728 # Test if we are trying to use run time linking or normal 17729 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17730 # have runtime linking enabled, and use it for executables. 17731 # For shared libraries, we enable/disable runtime linking 17732 # depending on the kind of the shared library created - 17733 # when "with_aix_soname,aix_use_runtimelinking" is: 17734 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 17735 # "aix,yes" lib.so shared, rtl:yes, for executables 17736 # lib.a static archive 17737 # "both,no" lib.so.V(shr.o) shared, rtl:yes 17738 # lib.a(lib.so.V) shared, rtl:no, for executables 17739 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 17740 # lib.a(lib.so.V) shared, rtl:no 17741 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 17742 # lib.a static archive 17743 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 17744 for ld_flag in $LDFLAGS; do 17745 case $ld_flag in 17746 *-brtl*) 17747 aix_use_runtimelinking=yes 17748 break 17749 ;; 17750 esac 17751 done 17752 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 17753 # With aix-soname=svr4, we create the lib.so.V shared archives only, 17754 # so we don't have lib.a shared libs to link our executables. 17755 # We have to force runtime linking in this case. 17756 aix_use_runtimelinking=yes 17757 LDFLAGS="$LDFLAGS -Wl,-brtl" 17758 fi 17759 ;; 17760 esac 17761 17762 exp_sym_flag='-bexport' 17763 no_entry_flag='-bnoentry' 17764 fi 17765 17766 # When large executables or shared objects are built, AIX ld can 17767 # have problems creating the table of contents. If linking a library 17768 # or program results in "error TOC overflow" add -mminimal-toc to 17769 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17770 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17771 17772 archive_cmds_CXX='' 17773 hardcode_direct_CXX=yes 17774 hardcode_direct_absolute_CXX=yes 17775 hardcode_libdir_separator_CXX=':' 17776 link_all_deplibs_CXX=yes 17777 file_list_spec_CXX='$wl-f,' 17778 case $with_aix_soname,$aix_use_runtimelinking in 17779 aix,*) ;; # no import file 17780 svr4,* | *,yes) # use import file 17781 # The Import File defines what to hardcode. 17782 hardcode_direct_CXX=no 17783 hardcode_direct_absolute_CXX=no 17784 ;; 17785 esac 17786 17787 if test yes = "$GXX"; then 17788 case $host_os in aix4.[012]|aix4.[012].*) 17789 # We only want to do this on AIX 4.2 and lower, the check 17790 # below for broken collect2 doesn't work under 4.3+ 17791 collect2name=`$CC -print-prog-name=collect2` 17792 if test -f "$collect2name" && 17793 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 17794 then 17795 # We have reworked collect2 17796 : 17797 else 17798 # We have old collect2 17799 hardcode_direct_CXX=unsupported 17800 # It fails to find uninstalled libraries when the uninstalled 17801 # path is not listed in the libpath. Setting hardcode_minus_L 17802 # to unsupported forces relinking 17803 hardcode_minus_L_CXX=yes 17804 hardcode_libdir_flag_spec_CXX='-L$libdir' 17805 hardcode_libdir_separator_CXX= 17806 fi 17807 esac 17808 shared_flag='-shared' 17809 if test yes = "$aix_use_runtimelinking"; then 17810 shared_flag=$shared_flag' $wl-G' 17811 fi 17812 # Need to ensure runtime linking is disabled for the traditional 17813 # shared library, or the linker may eventually find shared libraries 17814 # /with/ Import File - we do not want to mix them. 17815 shared_flag_aix='-shared' 17816 shared_flag_svr4='-shared $wl-G' 17817 else 17818 # not using gcc 17819 if test ia64 = "$host_cpu"; then 17820 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17821 # chokes on -Wl,-G. The following line is correct: 17822 shared_flag='-G' 17823 else 17824 if test yes = "$aix_use_runtimelinking"; then 17825 shared_flag='$wl-G' 17826 else 17827 shared_flag='$wl-bM:SRE' 17828 fi 17829 shared_flag_aix='$wl-bM:SRE' 17830 shared_flag_svr4='$wl-G' 17831 fi 17832 fi 17833 17834 export_dynamic_flag_spec_CXX='$wl-bexpall' 17835 # It seems that -bexpall does not export symbols beginning with 17836 # underscore (_), so it is better to generate a list of symbols to 17837 # export. 17838 always_export_symbols_CXX=yes 17839 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 17840 # Warning - without using the other runtime loading flags (-brtl), 17841 # -berok will link without error, but may produce a broken library. 17842 # The "-G" linker flag allows undefined symbols. 17843 no_undefined_flag_CXX='-bernotok' 17844 # Determine the default libpath from the value encoded in an empty 17845 # executable. 17846 if test set = "${lt_cv_aix_libpath+set}"; then 17847 aix_libpath=$lt_cv_aix_libpath 17848else 17849 if test ${lt_cv_aix_libpath__CXX+y} 17850then : 17851 printf %s "(cached) " >&6 17852else $as_nop 17853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17854/* end confdefs.h. */ 17855 17856int 17857main (void) 17858{ 17859 17860 ; 17861 return 0; 17862} 17863_ACEOF 17864if ac_fn_cxx_try_link "$LINENO" 17865then : 17866 17867 lt_aix_libpath_sed=' 17868 /Import File Strings/,/^$/ { 17869 /^0/ { 17870 s/^0 *\([^ ]*\) *$/\1/ 17871 p 17872 } 17873 }' 17874 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17875 # Check for a 64-bit object if we didn't find anything. 17876 if test -z "$lt_cv_aix_libpath__CXX"; then 17877 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17878 fi 17879fi 17880rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17881 conftest$ac_exeext conftest.$ac_ext 17882 if test -z "$lt_cv_aix_libpath__CXX"; then 17883 lt_cv_aix_libpath__CXX=/usr/lib:/lib 17884 fi 17885 17886fi 17887 17888 aix_libpath=$lt_cv_aix_libpath__CXX 17889fi 17890 17891 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 17892 17893 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 17894 else 17895 if test ia64 = "$host_cpu"; then 17896 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 17897 allow_undefined_flag_CXX="-z nodefs" 17898 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" 17899 else 17900 # Determine the default libpath from the value encoded in an 17901 # empty executable. 17902 if test set = "${lt_cv_aix_libpath+set}"; then 17903 aix_libpath=$lt_cv_aix_libpath 17904else 17905 if test ${lt_cv_aix_libpath__CXX+y} 17906then : 17907 printf %s "(cached) " >&6 17908else $as_nop 17909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17910/* end confdefs.h. */ 17911 17912int 17913main (void) 17914{ 17915 17916 ; 17917 return 0; 17918} 17919_ACEOF 17920if ac_fn_cxx_try_link "$LINENO" 17921then : 17922 17923 lt_aix_libpath_sed=' 17924 /Import File Strings/,/^$/ { 17925 /^0/ { 17926 s/^0 *\([^ ]*\) *$/\1/ 17927 p 17928 } 17929 }' 17930 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17931 # Check for a 64-bit object if we didn't find anything. 17932 if test -z "$lt_cv_aix_libpath__CXX"; then 17933 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17934 fi 17935fi 17936rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17937 conftest$ac_exeext conftest.$ac_ext 17938 if test -z "$lt_cv_aix_libpath__CXX"; then 17939 lt_cv_aix_libpath__CXX=/usr/lib:/lib 17940 fi 17941 17942fi 17943 17944 aix_libpath=$lt_cv_aix_libpath__CXX 17945fi 17946 17947 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 17948 # Warning - without using the other run time loading flags, 17949 # -berok will link without error, but may produce a broken library. 17950 no_undefined_flag_CXX=' $wl-bernotok' 17951 allow_undefined_flag_CXX=' $wl-berok' 17952 if test yes = "$with_gnu_ld"; then 17953 # We only use this code for GNU lds that support --whole-archive. 17954 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 17955 else 17956 # Exported symbols can be pulled into shared objects from archives 17957 whole_archive_flag_spec_CXX='$convenience' 17958 fi 17959 archive_cmds_need_lc_CXX=yes 17960 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 17961 # -brtl affects multiple linker settings, -berok does not and is overridden later 17962 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 17963 if test svr4 != "$with_aix_soname"; then 17964 # This is similar to how AIX traditionally builds its shared 17965 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 17966 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 17967 fi 17968 if test aix != "$with_aix_soname"; then 17969 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 17970 else 17971 # used by -dlpreopen to get the symbols 17972 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 17973 fi 17974 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 17975 fi 17976 fi 17977 ;; 17978 17979 beos*) 17980 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 17981 allow_undefined_flag_CXX=unsupported 17982 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17983 # support --undefined. This deserves some investigation. FIXME 17984 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17985 else 17986 ld_shlibs_CXX=no 17987 fi 17988 ;; 17989 17990 chorus*) 17991 case $cc_basename in 17992 *) 17993 # FIXME: insert proper C++ library support 17994 ld_shlibs_CXX=no 17995 ;; 17996 esac 17997 ;; 17998 17999 cygwin* | mingw* | pw32* | cegcc*) 18000 case $GXX,$cc_basename in 18001 ,cl* | no,cl* | ,icl* | no,icl*) 18002 # Native MSVC or ICC 18003 # hardcode_libdir_flag_spec is actually meaningless, as there is 18004 # no search path for DLLs. 18005 hardcode_libdir_flag_spec_CXX=' ' 18006 allow_undefined_flag_CXX=unsupported 18007 always_export_symbols_CXX=yes 18008 file_list_spec_CXX='@' 18009 # Tell ltmain to make .lib files, not .a files. 18010 libext=lib 18011 # Tell ltmain to make .dll files, not .so files. 18012 shrext_cmds=.dll 18013 # FIXME: Setting linknames here is a bad hack. 18014 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 18015 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 18016 cp "$export_symbols" "$output_objdir/$soname.def"; 18017 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 18018 else 18019 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 18020 fi~ 18021 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 18022 linknames=' 18023 # The linker will not automatically build a static lib if we build a DLL. 18024 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 18025 enable_shared_with_static_runtimes_CXX=yes 18026 # Don't use ranlib 18027 old_postinstall_cmds_CXX='chmod 644 $oldlib' 18028 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 18029 lt_tool_outputfile="@TOOL_OUTPUT@"~ 18030 case $lt_outputfile in 18031 *.exe|*.EXE) ;; 18032 *) 18033 lt_outputfile=$lt_outputfile.exe 18034 lt_tool_outputfile=$lt_tool_outputfile.exe 18035 ;; 18036 esac~ 18037 func_to_tool_file "$lt_outputfile"~ 18038 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 18039 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 18040 $RM "$lt_outputfile.manifest"; 18041 fi' 18042 ;; 18043 *) 18044 # g++ 18045 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 18046 # as there is no search path for DLLs. 18047 hardcode_libdir_flag_spec_CXX='-L$libdir' 18048 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 18049 allow_undefined_flag_CXX=unsupported 18050 always_export_symbols_CXX=no 18051 enable_shared_with_static_runtimes_CXX=yes 18052 18053 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 18054 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 18055 # If the export-symbols file already is a .def file, use it as 18056 # is; otherwise, prepend EXPORTS... 18057 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 18058 cp $export_symbols $output_objdir/$soname.def; 18059 else 18060 echo EXPORTS > $output_objdir/$soname.def; 18061 cat $export_symbols >> $output_objdir/$soname.def; 18062 fi~ 18063 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 18064 else 18065 ld_shlibs_CXX=no 18066 fi 18067 ;; 18068 esac 18069 ;; 18070 darwin* | rhapsody*) 18071 18072 18073 archive_cmds_need_lc_CXX=no 18074 hardcode_direct_CXX=no 18075 hardcode_automatic_CXX=yes 18076 hardcode_shlibpath_var_CXX=unsupported 18077 if test yes = "$lt_cv_ld_force_load"; then 18078 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 18079 18080 else 18081 whole_archive_flag_spec_CXX='' 18082 fi 18083 link_all_deplibs_CXX=yes 18084 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 18085 case $cc_basename in 18086 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 18087 *) _lt_dar_can_shared=$GCC ;; 18088 esac 18089 if test yes = "$_lt_dar_can_shared"; then 18090 output_verbose_link_cmd=func_echo_all 18091 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 18092 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 18093 archive_expsym_cmds_CXX="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" 18094 module_expsym_cmds_CXX="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" 18095 if test yes != "$lt_cv_apple_cc_single_mod"; then 18096 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" 18097 archive_expsym_cmds_CXX="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" 18098 fi 18099 18100 else 18101 ld_shlibs_CXX=no 18102 fi 18103 18104 ;; 18105 18106 os2*) 18107 hardcode_libdir_flag_spec_CXX='-L$libdir' 18108 hardcode_minus_L_CXX=yes 18109 allow_undefined_flag_CXX=unsupported 18110 shrext_cmds=.dll 18111 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 18112 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 18113 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 18114 $ECHO EXPORTS >> $output_objdir/$libname.def~ 18115 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 18116 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 18117 emximp -o $lib $output_objdir/$libname.def' 18118 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 18119 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 18120 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 18121 $ECHO EXPORTS >> $output_objdir/$libname.def~ 18122 prefix_cmds="$SED"~ 18123 if test EXPORTS = "`$SED 1q $export_symbols`"; then 18124 prefix_cmds="$prefix_cmds -e 1d"; 18125 fi~ 18126 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 18127 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 18128 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 18129 emximp -o $lib $output_objdir/$libname.def' 18130 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 18131 enable_shared_with_static_runtimes_CXX=yes 18132 file_list_spec_CXX='@' 18133 ;; 18134 18135 dgux*) 18136 case $cc_basename in 18137 ec++*) 18138 # FIXME: insert proper C++ library support 18139 ld_shlibs_CXX=no 18140 ;; 18141 ghcx*) 18142 # Green Hills C++ Compiler 18143 # FIXME: insert proper C++ library support 18144 ld_shlibs_CXX=no 18145 ;; 18146 *) 18147 # FIXME: insert proper C++ library support 18148 ld_shlibs_CXX=no 18149 ;; 18150 esac 18151 ;; 18152 18153 freebsd2.*) 18154 # C++ shared libraries reported to be fairly broken before 18155 # switch to ELF 18156 ld_shlibs_CXX=no 18157 ;; 18158 18159 freebsd-elf*) 18160 archive_cmds_need_lc_CXX=no 18161 ;; 18162 18163 freebsd* | dragonfly* | midnightbsd*) 18164 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 18165 # conventions 18166 ld_shlibs_CXX=yes 18167 ;; 18168 18169 haiku*) 18170 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 18171 link_all_deplibs_CXX=yes 18172 ;; 18173 18174 hpux9*) 18175 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 18176 hardcode_libdir_separator_CXX=: 18177 export_dynamic_flag_spec_CXX='$wl-E' 18178 hardcode_direct_CXX=yes 18179 hardcode_minus_L_CXX=yes # Not in the search PATH, 18180 # but as the default 18181 # location of the library. 18182 18183 case $cc_basename in 18184 CC*) 18185 # FIXME: insert proper C++ library support 18186 ld_shlibs_CXX=no 18187 ;; 18188 aCC*) 18189 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 18190 # Commands to make compiler produce verbose output that lists 18191 # what "hidden" libraries, object files and flags are used when 18192 # linking a shared library. 18193 # 18194 # There doesn't appear to be a way to prevent this compiler from 18195 # explicitly linking system object files so we need to strip them 18196 # from the output so that they don't get included in the library 18197 # dependencies. 18198 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 18199 ;; 18200 *) 18201 if test yes = "$GXX"; then 18202 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 18203 else 18204 # FIXME: insert proper C++ library support 18205 ld_shlibs_CXX=no 18206 fi 18207 ;; 18208 esac 18209 ;; 18210 18211 hpux10*|hpux11*) 18212 if test no = "$with_gnu_ld"; then 18213 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 18214 hardcode_libdir_separator_CXX=: 18215 18216 case $host_cpu in 18217 hppa*64*|ia64*) 18218 ;; 18219 *) 18220 export_dynamic_flag_spec_CXX='$wl-E' 18221 ;; 18222 esac 18223 fi 18224 case $host_cpu in 18225 hppa*64*|ia64*) 18226 hardcode_direct_CXX=no 18227 hardcode_shlibpath_var_CXX=no 18228 ;; 18229 *) 18230 hardcode_direct_CXX=yes 18231 hardcode_direct_absolute_CXX=yes 18232 hardcode_minus_L_CXX=yes # Not in the search PATH, 18233 # but as the default 18234 # location of the library. 18235 ;; 18236 esac 18237 18238 case $cc_basename in 18239 CC*) 18240 # FIXME: insert proper C++ library support 18241 ld_shlibs_CXX=no 18242 ;; 18243 aCC*) 18244 case $host_cpu in 18245 hppa*64*) 18246 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18247 ;; 18248 ia64*) 18249 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18250 ;; 18251 *) 18252 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18253 ;; 18254 esac 18255 # Commands to make compiler produce verbose output that lists 18256 # what "hidden" libraries, object files and flags are used when 18257 # linking a shared library. 18258 # 18259 # There doesn't appear to be a way to prevent this compiler from 18260 # explicitly linking system object files so we need to strip them 18261 # from the output so that they don't get included in the library 18262 # dependencies. 18263 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 18264 ;; 18265 *) 18266 if test yes = "$GXX"; then 18267 if test no = "$with_gnu_ld"; then 18268 case $host_cpu in 18269 hppa*64*) 18270 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18271 ;; 18272 ia64*) 18273 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18274 ;; 18275 *) 18276 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18277 ;; 18278 esac 18279 fi 18280 else 18281 # FIXME: insert proper C++ library support 18282 ld_shlibs_CXX=no 18283 fi 18284 ;; 18285 esac 18286 ;; 18287 18288 interix[3-9]*) 18289 hardcode_direct_CXX=no 18290 hardcode_shlibpath_var_CXX=no 18291 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 18292 export_dynamic_flag_spec_CXX='$wl-E' 18293 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 18294 # Instead, shared libraries are loaded at an image base (0x10000000 by 18295 # default) and relocated if they conflict, which is a slow very memory 18296 # consuming and fragmenting process. To avoid this, we pick a random, 18297 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 18298 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 18299 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 18300 archive_expsym_cmds_CXX='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 18301 ;; 18302 irix5* | irix6*) 18303 case $cc_basename in 18304 CC*) 18305 # SGI C++ 18306 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 18307 18308 # Archives containing C++ object files must be created using 18309 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 18310 # necessary to make sure instantiated templates are included 18311 # in the archive. 18312 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 18313 ;; 18314 *) 18315 if test yes = "$GXX"; then 18316 if test no = "$with_gnu_ld"; then 18317 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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' 18318 else 18319 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' 18320 fi 18321 fi 18322 link_all_deplibs_CXX=yes 18323 ;; 18324 esac 18325 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 18326 hardcode_libdir_separator_CXX=: 18327 inherit_rpath_CXX=yes 18328 ;; 18329 18330 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 18331 case $cc_basename in 18332 KCC*) 18333 # Kuck and Associates, Inc. (KAI) C++ Compiler 18334 18335 # KCC will only create a shared library if the output file 18336 # ends with ".so" (or ".sl" for HP-UX), so rename the library 18337 # to its proper name (with version) after linking. 18338 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 18339 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' 18340 # Commands to make compiler produce verbose output that lists 18341 # what "hidden" libraries, object files and flags are used when 18342 # linking a shared library. 18343 # 18344 # There doesn't appear to be a way to prevent this compiler from 18345 # explicitly linking system object files so we need to strip them 18346 # from the output so that they don't get included in the library 18347 # dependencies. 18348 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 18349 18350 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 18351 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 18352 18353 # Archives containing C++ object files must be created using 18354 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 18355 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 18356 ;; 18357 icpc* | ecpc* ) 18358 # Intel C++ 18359 with_gnu_ld=yes 18360 # version 8.0 and above of icpc choke on multiply defined symbols 18361 # if we add $predep_objects and $postdep_objects, however 7.1 and 18362 # earlier do not add the objects themselves. 18363 case `$CC -V 2>&1` in 18364 *"Version 7."*) 18365 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 18366 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 18367 ;; 18368 *) # Version 8.0 or newer 18369 tmp_idyn= 18370 case $host_cpu in 18371 ia64*) tmp_idyn=' -i_dynamic';; 18372 esac 18373 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 18374 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 18375 ;; 18376 esac 18377 archive_cmds_need_lc_CXX=no 18378 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 18379 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 18380 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 18381 ;; 18382 pgCC* | pgcpp*) 18383 # Portland Group C++ compiler 18384 case `$CC -V` in 18385 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 18386 prelink_cmds_CXX='tpldir=Template.dir~ 18387 rm -rf $tpldir~ 18388 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 18389 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 18390 old_archive_cmds_CXX='tpldir=Template.dir~ 18391 rm -rf $tpldir~ 18392 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 18393 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 18394 $RANLIB $oldlib' 18395 archive_cmds_CXX='tpldir=Template.dir~ 18396 rm -rf $tpldir~ 18397 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 18398 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 18399 archive_expsym_cmds_CXX='tpldir=Template.dir~ 18400 rm -rf $tpldir~ 18401 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 18402 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 18403 ;; 18404 *) # Version 6 and above use weak symbols 18405 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 18406 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 18407 ;; 18408 esac 18409 18410 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 18411 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 18412 whole_archive_flag_spec_CXX='$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' 18413 ;; 18414 cxx*) 18415 # Compaq C++ 18416 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 18417 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' 18418 18419 runpath_var=LD_RUN_PATH 18420 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 18421 hardcode_libdir_separator_CXX=: 18422 18423 # Commands to make compiler produce verbose output that lists 18424 # what "hidden" libraries, object files and flags are used when 18425 # linking a shared library. 18426 # 18427 # There doesn't appear to be a way to prevent this compiler from 18428 # explicitly linking system object files so we need to strip them 18429 # from the output so that they don't get included in the library 18430 # dependencies. 18431 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 18432 ;; 18433 xl* | mpixl* | bgxl*) 18434 # IBM XL 8.0 on PPC, with GNU ld 18435 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 18436 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 18437 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 18438 if test yes = "$supports_anon_versioning"; then 18439 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 18440 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 18441 echo "local: *; };" >> $output_objdir/$libname.ver~ 18442 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 18443 fi 18444 ;; 18445 *) 18446 case `$CC -V 2>&1 | $SED 5q` in 18447 *Sun\ C*) 18448 # Sun C++ 5.9 18449 no_undefined_flag_CXX=' -zdefs' 18450 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18451 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' 18452 hardcode_libdir_flag_spec_CXX='-R$libdir' 18453 whole_archive_flag_spec_CXX='$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' 18454 compiler_needs_object_CXX=yes 18455 18456 # Not sure whether something based on 18457 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 18458 # would be better. 18459 output_verbose_link_cmd='func_echo_all' 18460 18461 # Archives containing C++ object files must be created using 18462 # "CC -xar", where "CC" is the Sun C++ compiler. This is 18463 # necessary to make sure instantiated templates are included 18464 # in the archive. 18465 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 18466 ;; 18467 esac 18468 ;; 18469 esac 18470 ;; 18471 18472 lynxos*) 18473 # FIXME: insert proper C++ library support 18474 ld_shlibs_CXX=no 18475 ;; 18476 18477 m88k*) 18478 # FIXME: insert proper C++ library support 18479 ld_shlibs_CXX=no 18480 ;; 18481 18482 mvs*) 18483 case $cc_basename in 18484 cxx*) 18485 # FIXME: insert proper C++ library support 18486 ld_shlibs_CXX=no 18487 ;; 18488 *) 18489 # FIXME: insert proper C++ library support 18490 ld_shlibs_CXX=no 18491 ;; 18492 esac 18493 ;; 18494 18495 netbsd*) 18496 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18497 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 18498 wlarc= 18499 hardcode_libdir_flag_spec_CXX='-R$libdir' 18500 hardcode_direct_CXX=yes 18501 hardcode_shlibpath_var_CXX=no 18502 fi 18503 # Workaround some broken pre-1.5 toolchains 18504 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 18505 ;; 18506 18507 *nto* | *qnx*) 18508 ld_shlibs_CXX=yes 18509 ;; 18510 18511 openbsd* | bitrig*) 18512 if test -f /usr/libexec/ld.so; then 18513 hardcode_direct_CXX=yes 18514 hardcode_shlibpath_var_CXX=no 18515 hardcode_direct_absolute_CXX=yes 18516 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 18517 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 18518 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 18519 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 18520 export_dynamic_flag_spec_CXX='$wl-E' 18521 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 18522 fi 18523 output_verbose_link_cmd=func_echo_all 18524 else 18525 ld_shlibs_CXX=no 18526 fi 18527 ;; 18528 18529 osf3* | osf4* | osf5*) 18530 case $cc_basename in 18531 KCC*) 18532 # Kuck and Associates, Inc. (KAI) C++ Compiler 18533 18534 # KCC will only create a shared library if the output file 18535 # ends with ".so" (or ".sl" for HP-UX), so rename the library 18536 # to its proper name (with version) after linking. 18537 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 18538 18539 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 18540 hardcode_libdir_separator_CXX=: 18541 18542 # Archives containing C++ object files must be created using 18543 # the KAI C++ compiler. 18544 case $host in 18545 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 18546 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 18547 esac 18548 ;; 18549 RCC*) 18550 # Rational C++ 2.4.1 18551 # FIXME: insert proper C++ library support 18552 ld_shlibs_CXX=no 18553 ;; 18554 cxx*) 18555 case $host in 18556 osf3*) 18557 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 18558 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 18559 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 18560 ;; 18561 *) 18562 allow_undefined_flag_CXX=' -expect_unresolved \*' 18563 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 18564 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 18565 echo "-hidden">> $lib.exp~ 18566 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ 18567 $RM $lib.exp' 18568 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 18569 ;; 18570 esac 18571 18572 hardcode_libdir_separator_CXX=: 18573 18574 # Commands to make compiler produce verbose output that lists 18575 # what "hidden" libraries, object files and flags are used when 18576 # linking a shared library. 18577 # 18578 # There doesn't appear to be a way to prevent this compiler from 18579 # explicitly linking system object files so we need to strip them 18580 # from the output so that they don't get included in the library 18581 # dependencies. 18582 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 18583 ;; 18584 *) 18585 if test yes,no = "$GXX,$with_gnu_ld"; then 18586 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 18587 case $host in 18588 osf3*) 18589 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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' 18590 ;; 18591 *) 18592 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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' 18593 ;; 18594 esac 18595 18596 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 18597 hardcode_libdir_separator_CXX=: 18598 18599 # Commands to make compiler produce verbose output that lists 18600 # what "hidden" libraries, object files and flags are used when 18601 # linking a shared library. 18602 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 18603 18604 else 18605 # FIXME: insert proper C++ library support 18606 ld_shlibs_CXX=no 18607 fi 18608 ;; 18609 esac 18610 ;; 18611 18612 psos*) 18613 # FIXME: insert proper C++ library support 18614 ld_shlibs_CXX=no 18615 ;; 18616 18617 sunos4*) 18618 case $cc_basename in 18619 CC*) 18620 # Sun C++ 4.x 18621 # FIXME: insert proper C++ library support 18622 ld_shlibs_CXX=no 18623 ;; 18624 lcc*) 18625 # Lucid 18626 # FIXME: insert proper C++ library support 18627 ld_shlibs_CXX=no 18628 ;; 18629 *) 18630 # FIXME: insert proper C++ library support 18631 ld_shlibs_CXX=no 18632 ;; 18633 esac 18634 ;; 18635 18636 solaris*) 18637 case $cc_basename in 18638 CC* | sunCC*) 18639 # Sun C++ 4.2, 5.x and Centerline C++ 18640 archive_cmds_need_lc_CXX=yes 18641 no_undefined_flag_CXX=' -zdefs' 18642 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18643 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 18644 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 18645 18646 hardcode_libdir_flag_spec_CXX='-R$libdir' 18647 hardcode_shlibpath_var_CXX=no 18648 case $host_os in 18649 solaris2.[0-5] | solaris2.[0-5].*) ;; 18650 *) 18651 # The compiler driver will combine and reorder linker options, 18652 # but understands '-z linker_flag'. 18653 # Supported since Solaris 2.6 (maybe 2.5.1?) 18654 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 18655 ;; 18656 esac 18657 link_all_deplibs_CXX=yes 18658 18659 output_verbose_link_cmd='func_echo_all' 18660 18661 # Archives containing C++ object files must be created using 18662 # "CC -xar", where "CC" is the Sun C++ compiler. This is 18663 # necessary to make sure instantiated templates are included 18664 # in the archive. 18665 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 18666 ;; 18667 gcx*) 18668 # Green Hills C++ Compiler 18669 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 18670 18671 # The C++ compiler must be used to create the archive. 18672 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 18673 ;; 18674 *) 18675 # GNU C++ compiler with Solaris linker 18676 if test yes,no = "$GXX,$with_gnu_ld"; then 18677 no_undefined_flag_CXX=' $wl-z ${wl}defs' 18678 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 18679 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 18680 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 18681 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 18682 18683 # Commands to make compiler produce verbose output that lists 18684 # what "hidden" libraries, object files and flags are used when 18685 # linking a shared library. 18686 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 18687 else 18688 # g++ 2.7 appears to require '-G' NOT '-shared' on this 18689 # platform. 18690 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 18691 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 18692 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 18693 18694 # Commands to make compiler produce verbose output that lists 18695 # what "hidden" libraries, object files and flags are used when 18696 # linking a shared library. 18697 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 18698 fi 18699 18700 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 18701 case $host_os in 18702 solaris2.[0-5] | solaris2.[0-5].*) ;; 18703 *) 18704 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 18705 ;; 18706 esac 18707 fi 18708 ;; 18709 esac 18710 ;; 18711 18712 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 18713 no_undefined_flag_CXX='$wl-z,text' 18714 archive_cmds_need_lc_CXX=no 18715 hardcode_shlibpath_var_CXX=no 18716 runpath_var='LD_RUN_PATH' 18717 18718 case $cc_basename in 18719 CC*) 18720 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18721 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18722 ;; 18723 *) 18724 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18725 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18726 ;; 18727 esac 18728 ;; 18729 18730 sysv5* | sco3.2v5* | sco5v6*) 18731 # Note: We CANNOT use -z defs as we might desire, because we do not 18732 # link with -lc, and that would cause any symbols used from libc to 18733 # always be unresolved, which means just about no library would 18734 # ever link correctly. If we're not using GNU ld we use -z text 18735 # though, which does catch some bad symbols but isn't as heavy-handed 18736 # as -z defs. 18737 no_undefined_flag_CXX='$wl-z,text' 18738 allow_undefined_flag_CXX='$wl-z,nodefs' 18739 archive_cmds_need_lc_CXX=no 18740 hardcode_shlibpath_var_CXX=no 18741 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 18742 hardcode_libdir_separator_CXX=':' 18743 link_all_deplibs_CXX=yes 18744 export_dynamic_flag_spec_CXX='$wl-Bexport' 18745 runpath_var='LD_RUN_PATH' 18746 18747 case $cc_basename in 18748 CC*) 18749 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18750 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18751 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 18752 '"$old_archive_cmds_CXX" 18753 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 18754 '"$reload_cmds_CXX" 18755 ;; 18756 *) 18757 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18758 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18759 ;; 18760 esac 18761 ;; 18762 18763 tandem*) 18764 case $cc_basename in 18765 NCC*) 18766 # NonStop-UX NCC 3.20 18767 # FIXME: insert proper C++ library support 18768 ld_shlibs_CXX=no 18769 ;; 18770 *) 18771 # FIXME: insert proper C++ library support 18772 ld_shlibs_CXX=no 18773 ;; 18774 esac 18775 ;; 18776 18777 vxworks*) 18778 # FIXME: insert proper C++ library support 18779 ld_shlibs_CXX=no 18780 ;; 18781 18782 *) 18783 # FIXME: insert proper C++ library support 18784 ld_shlibs_CXX=no 18785 ;; 18786 esac 18787 18788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 18789printf "%s\n" "$ld_shlibs_CXX" >&6; } 18790 test no = "$ld_shlibs_CXX" && can_build_shared=no 18791 18792 GCC_CXX=$GXX 18793 LD_CXX=$LD 18794 18795 ## CAVEAT EMPTOR: 18796 ## There is no encapsulation within the following macros, do not change 18797 ## the running order or otherwise move them around unless you know exactly 18798 ## what you are doing... 18799 # Dependencies to place before and after the object being linked: 18800predep_objects_CXX= 18801postdep_objects_CXX= 18802predeps_CXX= 18803postdeps_CXX= 18804compiler_lib_search_path_CXX= 18805 18806cat > conftest.$ac_ext <<_LT_EOF 18807class Foo 18808{ 18809public: 18810 Foo (void) { a = 0; } 18811private: 18812 int a; 18813}; 18814_LT_EOF 18815 18816 18817_lt_libdeps_save_CFLAGS=$CFLAGS 18818case "$CC $CFLAGS " in #( 18819*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 18820*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 18821*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 18822esac 18823 18824if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 18825 (eval $ac_compile) 2>&5 18826 ac_status=$? 18827 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18828 test $ac_status = 0; }; then 18829 # Parse the compiler output and extract the necessary 18830 # objects, libraries and library flags. 18831 18832 # Sentinel used to keep track of whether or not we are before 18833 # the conftest object file. 18834 pre_test_object_deps_done=no 18835 18836 for p in `eval "$output_verbose_link_cmd"`; do 18837 case $prev$p in 18838 18839 -L* | -R* | -l*) 18840 # Some compilers place space between "-{L,R}" and the path. 18841 # Remove the space. 18842 if test x-L = "$p" || 18843 test x-R = "$p"; then 18844 prev=$p 18845 continue 18846 fi 18847 18848 # Expand the sysroot to ease extracting the directories later. 18849 if test -z "$prev"; then 18850 case $p in 18851 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 18852 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 18853 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 18854 esac 18855 fi 18856 case $p in 18857 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 18858 esac 18859 if test no = "$pre_test_object_deps_done"; then 18860 case $prev in 18861 -L | -R) 18862 # Internal compiler library paths should come after those 18863 # provided the user. The postdeps already come after the 18864 # user supplied libs so there is no need to process them. 18865 if test -z "$compiler_lib_search_path_CXX"; then 18866 compiler_lib_search_path_CXX=$prev$p 18867 else 18868 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 18869 fi 18870 ;; 18871 # The "-l" case would never come before the object being 18872 # linked, so don't bother handling this case. 18873 esac 18874 else 18875 if test -z "$postdeps_CXX"; then 18876 postdeps_CXX=$prev$p 18877 else 18878 postdeps_CXX="${postdeps_CXX} $prev$p" 18879 fi 18880 fi 18881 prev= 18882 ;; 18883 18884 *.lto.$objext) ;; # Ignore GCC LTO objects 18885 *.$objext) 18886 # This assumes that the test object file only shows up 18887 # once in the compiler output. 18888 if test "$p" = "conftest.$objext"; then 18889 pre_test_object_deps_done=yes 18890 continue 18891 fi 18892 18893 if test no = "$pre_test_object_deps_done"; then 18894 if test -z "$predep_objects_CXX"; then 18895 predep_objects_CXX=$p 18896 else 18897 predep_objects_CXX="$predep_objects_CXX $p" 18898 fi 18899 else 18900 if test -z "$postdep_objects_CXX"; then 18901 postdep_objects_CXX=$p 18902 else 18903 postdep_objects_CXX="$postdep_objects_CXX $p" 18904 fi 18905 fi 18906 ;; 18907 18908 *) ;; # Ignore the rest. 18909 18910 esac 18911 done 18912 18913 # Clean up. 18914 rm -f a.out a.exe 18915else 18916 echo "libtool.m4: error: problem compiling CXX test program" 18917fi 18918 18919$RM -f confest.$objext 18920CFLAGS=$_lt_libdeps_save_CFLAGS 18921 18922# PORTME: override above test on systems where it is broken 18923case $host_os in 18924interix[3-9]*) 18925 # Interix 3.5 installs completely hosed .la files for C++, so rather than 18926 # hack all around it, let's just trust "g++" to DTRT. 18927 predep_objects_CXX= 18928 postdep_objects_CXX= 18929 postdeps_CXX= 18930 ;; 18931esac 18932 18933 18934case " $postdeps_CXX " in 18935*" -lc "*) archive_cmds_need_lc_CXX=no ;; 18936esac 18937 compiler_lib_search_dirs_CXX= 18938if test -n "${compiler_lib_search_path_CXX}"; then 18939 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 18940fi 18941 18942 18943 18944 18945 18946 18947 18948 18949 18950 18951 18952 18953 18954 18955 18956 18957 18958 18959 18960 18961 18962 18963 18964 18965 18966 18967 18968 18969 18970 18971 18972 lt_prog_compiler_wl_CXX= 18973lt_prog_compiler_pic_CXX= 18974lt_prog_compiler_static_CXX= 18975 18976 18977 # C++ specific cases for pic, static, wl, etc. 18978 if test yes = "$GXX"; then 18979 lt_prog_compiler_wl_CXX='-Wl,' 18980 lt_prog_compiler_static_CXX='-static' 18981 18982 case $host_os in 18983 aix*) 18984 # All AIX code is PIC. 18985 if test ia64 = "$host_cpu"; then 18986 # AIX 5 now supports IA64 processor 18987 lt_prog_compiler_static_CXX='-Bstatic' 18988 fi 18989 lt_prog_compiler_pic_CXX='-fPIC' 18990 ;; 18991 18992 amigaos*) 18993 case $host_cpu in 18994 powerpc) 18995 # see comment about AmigaOS4 .so support 18996 lt_prog_compiler_pic_CXX='-fPIC' 18997 ;; 18998 m68k) 18999 # FIXME: we need at least 68020 code to build shared libraries, but 19000 # adding the '-m68020' flag to GCC prevents building anything better, 19001 # like '-m68040'. 19002 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 19003 ;; 19004 esac 19005 ;; 19006 19007 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 19008 # PIC is the default for these OSes. 19009 ;; 19010 mingw* | cygwin* | os2* | pw32* | cegcc*) 19011 # This hack is so that the source file can tell whether it is being 19012 # built for inclusion in a dll (and should export symbols for example). 19013 # Although the cygwin gcc ignores -fPIC, still need this for old-style 19014 # (--disable-auto-import) libraries 19015 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 19016 case $host_os in 19017 os2*) 19018 lt_prog_compiler_static_CXX='$wl-static' 19019 ;; 19020 esac 19021 ;; 19022 darwin* | rhapsody*) 19023 # PIC is the default on this platform 19024 # Common symbols not allowed in MH_DYLIB files 19025 lt_prog_compiler_pic_CXX='-fno-common' 19026 ;; 19027 *djgpp*) 19028 # DJGPP does not support shared libraries at all 19029 lt_prog_compiler_pic_CXX= 19030 ;; 19031 haiku*) 19032 # PIC is the default for Haiku. 19033 # The "-static" flag exists, but is broken. 19034 lt_prog_compiler_static_CXX= 19035 ;; 19036 interix[3-9]*) 19037 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 19038 # Instead, we relocate shared libraries at runtime. 19039 ;; 19040 sysv4*MP*) 19041 if test -d /usr/nec; then 19042 lt_prog_compiler_pic_CXX=-Kconform_pic 19043 fi 19044 ;; 19045 hpux*) 19046 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 19047 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 19048 # sets the default TLS model and affects inlining. 19049 case $host_cpu in 19050 hppa*64*) 19051 ;; 19052 *) 19053 lt_prog_compiler_pic_CXX='-fPIC' 19054 ;; 19055 esac 19056 ;; 19057 *qnx* | *nto*) 19058 # QNX uses GNU C++, but need to define -shared option too, otherwise 19059 # it will coredump. 19060 lt_prog_compiler_pic_CXX='-fPIC -shared' 19061 ;; 19062 *) 19063 lt_prog_compiler_pic_CXX='-fPIC' 19064 ;; 19065 esac 19066 else 19067 case $host_os in 19068 aix[4-9]*) 19069 # All AIX code is PIC. 19070 if test ia64 = "$host_cpu"; then 19071 # AIX 5 now supports IA64 processor 19072 lt_prog_compiler_static_CXX='-Bstatic' 19073 else 19074 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 19075 fi 19076 ;; 19077 chorus*) 19078 case $cc_basename in 19079 cxch68*) 19080 # Green Hills C++ Compiler 19081 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 19082 ;; 19083 esac 19084 ;; 19085 mingw* | cygwin* | os2* | pw32* | cegcc*) 19086 # This hack is so that the source file can tell whether it is being 19087 # built for inclusion in a dll (and should export symbols for example). 19088 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 19089 ;; 19090 dgux*) 19091 case $cc_basename in 19092 ec++*) 19093 lt_prog_compiler_pic_CXX='-KPIC' 19094 ;; 19095 ghcx*) 19096 # Green Hills C++ Compiler 19097 lt_prog_compiler_pic_CXX='-pic' 19098 ;; 19099 *) 19100 ;; 19101 esac 19102 ;; 19103 freebsd* | dragonfly* | midnightbsd*) 19104 # FreeBSD uses GNU C++ 19105 ;; 19106 hpux9* | hpux10* | hpux11*) 19107 case $cc_basename in 19108 CC*) 19109 lt_prog_compiler_wl_CXX='-Wl,' 19110 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 19111 if test ia64 != "$host_cpu"; then 19112 lt_prog_compiler_pic_CXX='+Z' 19113 fi 19114 ;; 19115 aCC*) 19116 lt_prog_compiler_wl_CXX='-Wl,' 19117 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 19118 case $host_cpu in 19119 hppa*64*|ia64*) 19120 # +Z the default 19121 ;; 19122 *) 19123 lt_prog_compiler_pic_CXX='+Z' 19124 ;; 19125 esac 19126 ;; 19127 *) 19128 ;; 19129 esac 19130 ;; 19131 interix*) 19132 # This is c89, which is MS Visual C++ (no shared libs) 19133 # Anyone wants to do a port? 19134 ;; 19135 irix5* | irix6* | nonstopux*) 19136 case $cc_basename in 19137 CC*) 19138 lt_prog_compiler_wl_CXX='-Wl,' 19139 lt_prog_compiler_static_CXX='-non_shared' 19140 # CC pic flag -KPIC is the default. 19141 ;; 19142 *) 19143 ;; 19144 esac 19145 ;; 19146 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 19147 case $cc_basename in 19148 KCC*) 19149 # KAI C++ Compiler 19150 lt_prog_compiler_wl_CXX='--backend -Wl,' 19151 lt_prog_compiler_pic_CXX='-fPIC' 19152 ;; 19153 ecpc* ) 19154 # old Intel C++ for x86_64, which still supported -KPIC. 19155 lt_prog_compiler_wl_CXX='-Wl,' 19156 lt_prog_compiler_pic_CXX='-KPIC' 19157 lt_prog_compiler_static_CXX='-static' 19158 ;; 19159 icpc* ) 19160 # Intel C++, used to be incompatible with GCC. 19161 # ICC 10 doesn't accept -KPIC any more. 19162 lt_prog_compiler_wl_CXX='-Wl,' 19163 lt_prog_compiler_pic_CXX='-fPIC' 19164 lt_prog_compiler_static_CXX='-static' 19165 ;; 19166 pgCC* | pgcpp*) 19167 # Portland Group C++ compiler 19168 lt_prog_compiler_wl_CXX='-Wl,' 19169 lt_prog_compiler_pic_CXX='-fpic' 19170 lt_prog_compiler_static_CXX='-Bstatic' 19171 ;; 19172 cxx*) 19173 # Compaq C++ 19174 # Make sure the PIC flag is empty. It appears that all Alpha 19175 # Linux and Compaq Tru64 Unix objects are PIC. 19176 lt_prog_compiler_pic_CXX= 19177 lt_prog_compiler_static_CXX='-non_shared' 19178 ;; 19179 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 19180 # IBM XL 8.0, 9.0 on PPC and BlueGene 19181 lt_prog_compiler_wl_CXX='-Wl,' 19182 lt_prog_compiler_pic_CXX='-qpic' 19183 lt_prog_compiler_static_CXX='-qstaticlink' 19184 ;; 19185 *) 19186 case `$CC -V 2>&1 | $SED 5q` in 19187 *Sun\ C*) 19188 # Sun C++ 5.9 19189 lt_prog_compiler_pic_CXX='-KPIC' 19190 lt_prog_compiler_static_CXX='-Bstatic' 19191 lt_prog_compiler_wl_CXX='-Qoption ld ' 19192 ;; 19193 esac 19194 ;; 19195 esac 19196 ;; 19197 lynxos*) 19198 ;; 19199 m88k*) 19200 ;; 19201 mvs*) 19202 case $cc_basename in 19203 cxx*) 19204 lt_prog_compiler_pic_CXX='-W c,exportall' 19205 ;; 19206 *) 19207 ;; 19208 esac 19209 ;; 19210 netbsd* | netbsdelf*-gnu) 19211 ;; 19212 *qnx* | *nto*) 19213 # QNX uses GNU C++, but need to define -shared option too, otherwise 19214 # it will coredump. 19215 lt_prog_compiler_pic_CXX='-fPIC -shared' 19216 ;; 19217 osf3* | osf4* | osf5*) 19218 case $cc_basename in 19219 KCC*) 19220 lt_prog_compiler_wl_CXX='--backend -Wl,' 19221 ;; 19222 RCC*) 19223 # Rational C++ 2.4.1 19224 lt_prog_compiler_pic_CXX='-pic' 19225 ;; 19226 cxx*) 19227 # Digital/Compaq C++ 19228 lt_prog_compiler_wl_CXX='-Wl,' 19229 # Make sure the PIC flag is empty. It appears that all Alpha 19230 # Linux and Compaq Tru64 Unix objects are PIC. 19231 lt_prog_compiler_pic_CXX= 19232 lt_prog_compiler_static_CXX='-non_shared' 19233 ;; 19234 *) 19235 ;; 19236 esac 19237 ;; 19238 psos*) 19239 ;; 19240 solaris*) 19241 case $cc_basename in 19242 CC* | sunCC*) 19243 # Sun C++ 4.2, 5.x and Centerline C++ 19244 lt_prog_compiler_pic_CXX='-KPIC' 19245 lt_prog_compiler_static_CXX='-Bstatic' 19246 lt_prog_compiler_wl_CXX='-Qoption ld ' 19247 ;; 19248 gcx*) 19249 # Green Hills C++ Compiler 19250 lt_prog_compiler_pic_CXX='-PIC' 19251 ;; 19252 *) 19253 ;; 19254 esac 19255 ;; 19256 sunos4*) 19257 case $cc_basename in 19258 CC*) 19259 # Sun C++ 4.x 19260 lt_prog_compiler_pic_CXX='-pic' 19261 lt_prog_compiler_static_CXX='-Bstatic' 19262 ;; 19263 lcc*) 19264 # Lucid 19265 lt_prog_compiler_pic_CXX='-pic' 19266 ;; 19267 *) 19268 ;; 19269 esac 19270 ;; 19271 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 19272 case $cc_basename in 19273 CC*) 19274 lt_prog_compiler_wl_CXX='-Wl,' 19275 lt_prog_compiler_pic_CXX='-KPIC' 19276 lt_prog_compiler_static_CXX='-Bstatic' 19277 ;; 19278 esac 19279 ;; 19280 tandem*) 19281 case $cc_basename in 19282 NCC*) 19283 # NonStop-UX NCC 3.20 19284 lt_prog_compiler_pic_CXX='-KPIC' 19285 ;; 19286 *) 19287 ;; 19288 esac 19289 ;; 19290 vxworks*) 19291 ;; 19292 *) 19293 lt_prog_compiler_can_build_shared_CXX=no 19294 ;; 19295 esac 19296 fi 19297 19298case $host_os in 19299 # For platforms that do not support PIC, -DPIC is meaningless: 19300 *djgpp*) 19301 lt_prog_compiler_pic_CXX= 19302 ;; 19303 *) 19304 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 19305 ;; 19306esac 19307 19308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 19309printf %s "checking for $compiler option to produce PIC... " >&6; } 19310if test ${lt_cv_prog_compiler_pic_CXX+y} 19311then : 19312 printf %s "(cached) " >&6 19313else $as_nop 19314 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 19315fi 19316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 19317printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; } 19318lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 19319 19320# 19321# Check to make sure the PIC flag actually works. 19322# 19323if test -n "$lt_prog_compiler_pic_CXX"; then 19324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 19325printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 19326if test ${lt_cv_prog_compiler_pic_works_CXX+y} 19327then : 19328 printf %s "(cached) " >&6 19329else $as_nop 19330 lt_cv_prog_compiler_pic_works_CXX=no 19331 ac_outfile=conftest.$ac_objext 19332 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19333 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 19334 # Insert the option either (1) after the last *FLAGS variable, or 19335 # (2) before a word containing "conftest.", or (3) at the end. 19336 # Note that $ac_compile itself does not contain backslashes and begins 19337 # with a dollar sign (not a hyphen), so the echo should work correctly. 19338 # The option is referenced via a variable to avoid confusing sed. 19339 lt_compile=`echo "$ac_compile" | $SED \ 19340 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19341 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19342 -e 's:$: $lt_compiler_flag:'` 19343 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 19344 (eval "$lt_compile" 2>conftest.err) 19345 ac_status=$? 19346 cat conftest.err >&5 19347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19348 if (exit $ac_status) && test -s "$ac_outfile"; then 19349 # The compiler can only warn and ignore the option if not recognized 19350 # So say no if there are warnings other than the usual output. 19351 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 19352 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19353 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 19354 lt_cv_prog_compiler_pic_works_CXX=yes 19355 fi 19356 fi 19357 $RM conftest* 19358 19359fi 19360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 19361printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 19362 19363if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 19364 case $lt_prog_compiler_pic_CXX in 19365 "" | " "*) ;; 19366 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 19367 esac 19368else 19369 lt_prog_compiler_pic_CXX= 19370 lt_prog_compiler_can_build_shared_CXX=no 19371fi 19372 19373fi 19374 19375 19376 19377 19378 19379# 19380# Check to make sure the static flag actually works. 19381# 19382wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 19383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 19384printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 19385if test ${lt_cv_prog_compiler_static_works_CXX+y} 19386then : 19387 printf %s "(cached) " >&6 19388else $as_nop 19389 lt_cv_prog_compiler_static_works_CXX=no 19390 save_LDFLAGS=$LDFLAGS 19391 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 19392 echo "$lt_simple_link_test_code" > conftest.$ac_ext 19393 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 19394 # The linker can only warn and ignore the option if not recognized 19395 # So say no if there are warnings 19396 if test -s conftest.err; then 19397 # Append any errors to the config.log. 19398 cat conftest.err 1>&5 19399 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 19400 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19401 if diff conftest.exp conftest.er2 >/dev/null; then 19402 lt_cv_prog_compiler_static_works_CXX=yes 19403 fi 19404 else 19405 lt_cv_prog_compiler_static_works_CXX=yes 19406 fi 19407 fi 19408 $RM -r conftest* 19409 LDFLAGS=$save_LDFLAGS 19410 19411fi 19412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 19413printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; } 19414 19415if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 19416 : 19417else 19418 lt_prog_compiler_static_CXX= 19419fi 19420 19421 19422 19423 19424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 19425printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 19426if test ${lt_cv_prog_compiler_c_o_CXX+y} 19427then : 19428 printf %s "(cached) " >&6 19429else $as_nop 19430 lt_cv_prog_compiler_c_o_CXX=no 19431 $RM -r conftest 2>/dev/null 19432 mkdir conftest 19433 cd conftest 19434 mkdir out 19435 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19436 19437 lt_compiler_flag="-o out/conftest2.$ac_objext" 19438 # Insert the option either (1) after the last *FLAGS variable, or 19439 # (2) before a word containing "conftest.", or (3) at the end. 19440 # Note that $ac_compile itself does not contain backslashes and begins 19441 # with a dollar sign (not a hyphen), so the echo should work correctly. 19442 lt_compile=`echo "$ac_compile" | $SED \ 19443 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19444 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19445 -e 's:$: $lt_compiler_flag:'` 19446 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 19447 (eval "$lt_compile" 2>out/conftest.err) 19448 ac_status=$? 19449 cat out/conftest.err >&5 19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19451 if (exit $ac_status) && test -s out/conftest2.$ac_objext 19452 then 19453 # The compiler can only warn and ignore the option if not recognized 19454 # So say no if there are warnings 19455 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 19456 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 19457 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 19458 lt_cv_prog_compiler_c_o_CXX=yes 19459 fi 19460 fi 19461 chmod u+w . 2>&5 19462 $RM conftest* 19463 # SGI C++ compiler will create directory out/ii_files/ for 19464 # template instantiation 19465 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 19466 $RM out/* && rmdir out 19467 cd .. 19468 $RM -r conftest 19469 $RM conftest* 19470 19471fi 19472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 19473printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } 19474 19475 19476 19477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 19478printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 19479if test ${lt_cv_prog_compiler_c_o_CXX+y} 19480then : 19481 printf %s "(cached) " >&6 19482else $as_nop 19483 lt_cv_prog_compiler_c_o_CXX=no 19484 $RM -r conftest 2>/dev/null 19485 mkdir conftest 19486 cd conftest 19487 mkdir out 19488 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19489 19490 lt_compiler_flag="-o out/conftest2.$ac_objext" 19491 # Insert the option either (1) after the last *FLAGS variable, or 19492 # (2) before a word containing "conftest.", or (3) at the end. 19493 # Note that $ac_compile itself does not contain backslashes and begins 19494 # with a dollar sign (not a hyphen), so the echo should work correctly. 19495 lt_compile=`echo "$ac_compile" | $SED \ 19496 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19497 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19498 -e 's:$: $lt_compiler_flag:'` 19499 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 19500 (eval "$lt_compile" 2>out/conftest.err) 19501 ac_status=$? 19502 cat out/conftest.err >&5 19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19504 if (exit $ac_status) && test -s out/conftest2.$ac_objext 19505 then 19506 # The compiler can only warn and ignore the option if not recognized 19507 # So say no if there are warnings 19508 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 19509 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 19510 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 19511 lt_cv_prog_compiler_c_o_CXX=yes 19512 fi 19513 fi 19514 chmod u+w . 2>&5 19515 $RM conftest* 19516 # SGI C++ compiler will create directory out/ii_files/ for 19517 # template instantiation 19518 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 19519 $RM out/* && rmdir out 19520 cd .. 19521 $RM -r conftest 19522 $RM conftest* 19523 19524fi 19525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 19526printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; } 19527 19528 19529 19530 19531hard_links=nottested 19532if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 19533 # do not overwrite the value of need_locks provided by the user 19534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 19535printf %s "checking if we can lock with hard links... " >&6; } 19536 hard_links=yes 19537 $RM conftest* 19538 ln conftest.a conftest.b 2>/dev/null && hard_links=no 19539 touch conftest.a 19540 ln conftest.a conftest.b 2>&5 || hard_links=no 19541 ln conftest.a conftest.b 2>/dev/null && hard_links=no 19542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 19543printf "%s\n" "$hard_links" >&6; } 19544 if test no = "$hard_links"; then 19545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 19546printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 19547 need_locks=warn 19548 fi 19549else 19550 need_locks=no 19551fi 19552 19553 19554 19555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 19556printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 19557 19558 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 19559 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 19560 case $host_os in 19561 aix[4-9]*) 19562 # If we're using GNU nm, then we don't want the "-C" option. 19563 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 19564 # Without the "-l" option, or with the "-B" option, AIX nm treats 19565 # weak defined symbols like other global defined symbols, whereas 19566 # GNU nm marks them as "W". 19567 # While the 'weak' keyword is ignored in the Export File, we need 19568 # it in the Import File for the 'aix-soname' feature, so we have 19569 # to replace the "-B" option with "-P" for AIX nm. 19570 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 19571 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 19572 else 19573 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 19574 fi 19575 ;; 19576 pw32*) 19577 export_symbols_cmds_CXX=$ltdll_cmds 19578 ;; 19579 cygwin* | mingw* | cegcc*) 19580 case $cc_basename in 19581 cl* | icl*) 19582 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 19583 ;; 19584 *) 19585 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 19586 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 19587 ;; 19588 esac 19589 ;; 19590 linux* | k*bsd*-gnu | gnu*) 19591 link_all_deplibs_CXX=no 19592 ;; 19593 *) 19594 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 19595 ;; 19596 esac 19597 19598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 19599printf "%s\n" "$ld_shlibs_CXX" >&6; } 19600test no = "$ld_shlibs_CXX" && can_build_shared=no 19601 19602with_gnu_ld_CXX=$with_gnu_ld 19603 19604 19605 19606 19607 19608 19609# 19610# Do we need to explicitly link libc? 19611# 19612case "x$archive_cmds_need_lc_CXX" in 19613x|xyes) 19614 # Assume -lc should be added 19615 archive_cmds_need_lc_CXX=yes 19616 19617 if test yes,yes = "$GCC,$enable_shared"; then 19618 case $archive_cmds_CXX in 19619 *'~'*) 19620 # FIXME: we may have to deal with multi-command sequences. 19621 ;; 19622 '$CC '*) 19623 # Test whether the compiler implicitly links with -lc since on some 19624 # systems, -lgcc has to come before -lc. If gcc already passes -lc 19625 # to ld, don't add -lc before -lgcc. 19626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 19627printf %s "checking whether -lc should be explicitly linked in... " >&6; } 19628if test ${lt_cv_archive_cmds_need_lc_CXX+y} 19629then : 19630 printf %s "(cached) " >&6 19631else $as_nop 19632 $RM conftest* 19633 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19634 19635 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 19636 (eval $ac_compile) 2>&5 19637 ac_status=$? 19638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19639 test $ac_status = 0; } 2>conftest.err; then 19640 soname=conftest 19641 lib=conftest 19642 libobjs=conftest.$ac_objext 19643 deplibs= 19644 wl=$lt_prog_compiler_wl_CXX 19645 pic_flag=$lt_prog_compiler_pic_CXX 19646 compiler_flags=-v 19647 linker_flags=-v 19648 verstring= 19649 output_objdir=. 19650 libname=conftest 19651 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 19652 allow_undefined_flag_CXX= 19653 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 19654 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 19655 ac_status=$? 19656 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19657 test $ac_status = 0; } 19658 then 19659 lt_cv_archive_cmds_need_lc_CXX=no 19660 else 19661 lt_cv_archive_cmds_need_lc_CXX=yes 19662 fi 19663 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 19664 else 19665 cat conftest.err 1>&5 19666 fi 19667 $RM conftest* 19668 19669fi 19670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 19671printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 19672 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 19673 ;; 19674 esac 19675 fi 19676 ;; 19677esac 19678 19679 19680 19681 19682 19683 19684 19685 19686 19687 19688 19689 19690 19691 19692 19693 19694 19695 19696 19697 19698 19699 19700 19701 19702 19703 19704 19705 19706 19707 19708 19709 19710 19711 19712 19713 19714 19715 19716 19717 19718 19719 19720 19721 19722 19723 19724 19725 19726 19727 19728 19729 19730 19731 19732 19733 19734 19735 19736 19737 19738 19739 19740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 19741printf %s "checking dynamic linker characteristics... " >&6; } 19742 19743library_names_spec= 19744libname_spec='lib$name' 19745soname_spec= 19746shrext_cmds=.so 19747postinstall_cmds= 19748postuninstall_cmds= 19749finish_cmds= 19750finish_eval= 19751shlibpath_var= 19752shlibpath_overrides_runpath=unknown 19753version_type=none 19754dynamic_linker="$host_os ld.so" 19755sys_lib_dlsearch_path_spec="/lib /usr/lib" 19756need_lib_prefix=unknown 19757hardcode_into_libs=no 19758 19759# when you set need_version to no, make sure it does not cause -set_version 19760# flags to be left without arguments 19761need_version=unknown 19762 19763 19764 19765case $host_os in 19766aix3*) 19767 version_type=linux # correct to gnu/linux during the next big refactor 19768 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 19769 shlibpath_var=LIBPATH 19770 19771 # AIX 3 has no versioning support, so we append a major version to the name. 19772 soname_spec='$libname$release$shared_ext$major' 19773 ;; 19774 19775aix[4-9]*) 19776 version_type=linux # correct to gnu/linux during the next big refactor 19777 need_lib_prefix=no 19778 need_version=no 19779 hardcode_into_libs=yes 19780 if test ia64 = "$host_cpu"; then 19781 # AIX 5 supports IA64 19782 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 19783 shlibpath_var=LD_LIBRARY_PATH 19784 else 19785 # With GCC up to 2.95.x, collect2 would create an import file 19786 # for dependence libraries. The import file would start with 19787 # the line '#! .'. This would cause the generated library to 19788 # depend on '.', always an invalid library. This was fixed in 19789 # development snapshots of GCC prior to 3.0. 19790 case $host_os in 19791 aix4 | aix4.[01] | aix4.[01].*) 19792 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 19793 echo ' yes ' 19794 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 19795 : 19796 else 19797 can_build_shared=no 19798 fi 19799 ;; 19800 esac 19801 # Using Import Files as archive members, it is possible to support 19802 # filename-based versioning of shared library archives on AIX. While 19803 # this would work for both with and without runtime linking, it will 19804 # prevent static linking of such archives. So we do filename-based 19805 # shared library versioning with .so extension only, which is used 19806 # when both runtime linking and shared linking is enabled. 19807 # Unfortunately, runtime linking may impact performance, so we do 19808 # not want this to be the default eventually. Also, we use the 19809 # versioned .so libs for executables only if there is the -brtl 19810 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 19811 # To allow for filename-based versioning support, we need to create 19812 # libNAME.so.V as an archive file, containing: 19813 # *) an Import File, referring to the versioned filename of the 19814 # archive as well as the shared archive member, telling the 19815 # bitwidth (32 or 64) of that shared object, and providing the 19816 # list of exported symbols of that shared object, eventually 19817 # decorated with the 'weak' keyword 19818 # *) the shared object with the F_LOADONLY flag set, to really avoid 19819 # it being seen by the linker. 19820 # At run time we better use the real file rather than another symlink, 19821 # but for link time we create the symlink libNAME.so -> libNAME.so.V 19822 19823 case $with_aix_soname,$aix_use_runtimelinking in 19824 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 19825 # soname into executable. Probably we can add versioning support to 19826 # collect2, so additional links can be useful in future. 19827 aix,yes) # traditional libtool 19828 dynamic_linker='AIX unversionable lib.so' 19829 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 19830 # instead of lib<name>.a to let people know that these are not 19831 # typical AIX shared libraries. 19832 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19833 ;; 19834 aix,no) # traditional AIX only 19835 dynamic_linker='AIX lib.a(lib.so.V)' 19836 # We preserve .a as extension for shared libraries through AIX4.2 19837 # and later when we are not doing run time linking. 19838 library_names_spec='$libname$release.a $libname.a' 19839 soname_spec='$libname$release$shared_ext$major' 19840 ;; 19841 svr4,*) # full svr4 only 19842 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 19843 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 19844 # We do not specify a path in Import Files, so LIBPATH fires. 19845 shlibpath_overrides_runpath=yes 19846 ;; 19847 *,yes) # both, prefer svr4 19848 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 19849 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 19850 # unpreferred sharedlib libNAME.a needs extra handling 19851 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 19852 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 19853 # We do not specify a path in Import Files, so LIBPATH fires. 19854 shlibpath_overrides_runpath=yes 19855 ;; 19856 *,no) # both, prefer aix 19857 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 19858 library_names_spec='$libname$release.a $libname.a' 19859 soname_spec='$libname$release$shared_ext$major' 19860 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 19861 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 19862 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 19863 ;; 19864 esac 19865 shlibpath_var=LIBPATH 19866 fi 19867 ;; 19868 19869amigaos*) 19870 case $host_cpu in 19871 powerpc) 19872 # Since July 2007 AmigaOS4 officially supports .so libraries. 19873 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 19874 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19875 ;; 19876 m68k) 19877 library_names_spec='$libname.ixlibrary $libname.a' 19878 # Create ${libname}_ixlibrary.a entries in /sys/libs. 19879 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 19880 ;; 19881 esac 19882 ;; 19883 19884beos*) 19885 library_names_spec='$libname$shared_ext' 19886 dynamic_linker="$host_os ld.so" 19887 shlibpath_var=LIBRARY_PATH 19888 ;; 19889 19890bsdi[45]*) 19891 version_type=linux # correct to gnu/linux during the next big refactor 19892 need_version=no 19893 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19894 soname_spec='$libname$release$shared_ext$major' 19895 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 19896 shlibpath_var=LD_LIBRARY_PATH 19897 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 19898 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 19899 # the default ld.so.conf also contains /usr/contrib/lib and 19900 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 19901 # libtool to hard-code these into programs 19902 ;; 19903 19904cygwin* | mingw* | pw32* | cegcc*) 19905 version_type=windows 19906 shrext_cmds=.dll 19907 need_version=no 19908 need_lib_prefix=no 19909 19910 case $GCC,$cc_basename in 19911 yes,*) 19912 # gcc 19913 library_names_spec='$libname.dll.a' 19914 # DLL is installed to $(libdir)/../bin by postinstall_cmds 19915 postinstall_cmds='base_file=`basename \$file`~ 19916 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 19917 dldir=$destdir/`dirname \$dlpath`~ 19918 test -d \$dldir || mkdir -p \$dldir~ 19919 $install_prog $dir/$dlname \$dldir/$dlname~ 19920 chmod a+x \$dldir/$dlname~ 19921 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 19922 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 19923 fi' 19924 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 19925 dlpath=$dir/\$dldll~ 19926 $RM \$dlpath' 19927 shlibpath_overrides_runpath=yes 19928 19929 case $host_os in 19930 cygwin*) 19931 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 19932 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 19933 19934 ;; 19935 mingw* | cegcc*) 19936 # MinGW DLLs use traditional 'lib' prefix 19937 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 19938 ;; 19939 pw32*) 19940 # pw32 DLLs use 'pw' prefix rather than 'lib' 19941 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 19942 ;; 19943 esac 19944 dynamic_linker='Win32 ld.exe' 19945 ;; 19946 19947 *,cl* | *,icl*) 19948 # Native MSVC or ICC 19949 libname_spec='$name' 19950 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 19951 library_names_spec='$libname.dll.lib' 19952 19953 case $build_os in 19954 mingw*) 19955 sys_lib_search_path_spec= 19956 lt_save_ifs=$IFS 19957 IFS=';' 19958 for lt_path in $LIB 19959 do 19960 IFS=$lt_save_ifs 19961 # Let DOS variable expansion print the short 8.3 style file name. 19962 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 19963 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 19964 done 19965 IFS=$lt_save_ifs 19966 # Convert to MSYS style. 19967 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 19968 ;; 19969 cygwin*) 19970 # Convert to unix form, then to dos form, then back to unix form 19971 # but this time dos style (no spaces!) so that the unix form looks 19972 # like /cygdrive/c/PROGRA~1:/cygdr... 19973 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 19974 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 19975 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 19976 ;; 19977 *) 19978 sys_lib_search_path_spec=$LIB 19979 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 19980 # It is most probably a Windows format PATH. 19981 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 19982 else 19983 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 19984 fi 19985 # FIXME: find the short name or the path components, as spaces are 19986 # common. (e.g. "Program Files" -> "PROGRA~1") 19987 ;; 19988 esac 19989 19990 # DLL is installed to $(libdir)/../bin by postinstall_cmds 19991 postinstall_cmds='base_file=`basename \$file`~ 19992 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 19993 dldir=$destdir/`dirname \$dlpath`~ 19994 test -d \$dldir || mkdir -p \$dldir~ 19995 $install_prog $dir/$dlname \$dldir/$dlname' 19996 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 19997 dlpath=$dir/\$dldll~ 19998 $RM \$dlpath' 19999 shlibpath_overrides_runpath=yes 20000 dynamic_linker='Win32 link.exe' 20001 ;; 20002 20003 *) 20004 # Assume MSVC and ICC wrapper 20005 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 20006 dynamic_linker='Win32 ld.exe' 20007 ;; 20008 esac 20009 # FIXME: first we should search . and the directory the executable is in 20010 shlibpath_var=PATH 20011 ;; 20012 20013darwin* | rhapsody*) 20014 dynamic_linker="$host_os dyld" 20015 version_type=darwin 20016 need_lib_prefix=no 20017 need_version=no 20018 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 20019 soname_spec='$libname$release$major$shared_ext' 20020 shlibpath_overrides_runpath=yes 20021 shlibpath_var=DYLD_LIBRARY_PATH 20022 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 20023 20024 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 20025 ;; 20026 20027dgux*) 20028 version_type=linux # correct to gnu/linux during the next big refactor 20029 need_lib_prefix=no 20030 need_version=no 20031 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20032 soname_spec='$libname$release$shared_ext$major' 20033 shlibpath_var=LD_LIBRARY_PATH 20034 ;; 20035 20036freebsd* | dragonfly* | midnightbsd*) 20037 # DragonFly does not have aout. When/if they implement a new 20038 # versioning mechanism, adjust this. 20039 if test -x /usr/bin/objformat; then 20040 objformat=`/usr/bin/objformat` 20041 else 20042 case $host_os in 20043 freebsd[23].*) objformat=aout ;; 20044 *) objformat=elf ;; 20045 esac 20046 fi 20047 version_type=freebsd-$objformat 20048 case $version_type in 20049 freebsd-elf*) 20050 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20051 soname_spec='$libname$release$shared_ext$major' 20052 need_version=no 20053 need_lib_prefix=no 20054 ;; 20055 freebsd-*) 20056 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 20057 need_version=yes 20058 ;; 20059 esac 20060 shlibpath_var=LD_LIBRARY_PATH 20061 case $host_os in 20062 freebsd2.*) 20063 shlibpath_overrides_runpath=yes 20064 ;; 20065 freebsd3.[01]* | freebsdelf3.[01]*) 20066 shlibpath_overrides_runpath=yes 20067 hardcode_into_libs=yes 20068 ;; 20069 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 20070 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 20071 shlibpath_overrides_runpath=no 20072 hardcode_into_libs=yes 20073 ;; 20074 *) # from 4.6 on, and DragonFly 20075 shlibpath_overrides_runpath=yes 20076 hardcode_into_libs=yes 20077 ;; 20078 esac 20079 ;; 20080 20081haiku*) 20082 version_type=linux # correct to gnu/linux during the next big refactor 20083 need_lib_prefix=no 20084 need_version=no 20085 dynamic_linker="$host_os runtime_loader" 20086 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20087 soname_spec='$libname$release$shared_ext$major' 20088 shlibpath_var=LIBRARY_PATH 20089 shlibpath_overrides_runpath=no 20090 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 20091 hardcode_into_libs=yes 20092 ;; 20093 20094hpux9* | hpux10* | hpux11*) 20095 # Give a soname corresponding to the major version so that dld.sl refuses to 20096 # link against other versions. 20097 version_type=sunos 20098 need_lib_prefix=no 20099 need_version=no 20100 case $host_cpu in 20101 ia64*) 20102 shrext_cmds='.so' 20103 hardcode_into_libs=yes 20104 dynamic_linker="$host_os dld.so" 20105 shlibpath_var=LD_LIBRARY_PATH 20106 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 20107 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20108 soname_spec='$libname$release$shared_ext$major' 20109 if test 32 = "$HPUX_IA64_MODE"; then 20110 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 20111 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 20112 else 20113 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 20114 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 20115 fi 20116 ;; 20117 hppa*64*) 20118 shrext_cmds='.sl' 20119 hardcode_into_libs=yes 20120 dynamic_linker="$host_os dld.sl" 20121 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 20122 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 20123 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20124 soname_spec='$libname$release$shared_ext$major' 20125 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 20126 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 20127 ;; 20128 *) 20129 shrext_cmds='.sl' 20130 dynamic_linker="$host_os dld.sl" 20131 shlibpath_var=SHLIB_PATH 20132 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 20133 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20134 soname_spec='$libname$release$shared_ext$major' 20135 ;; 20136 esac 20137 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 20138 postinstall_cmds='chmod 555 $lib' 20139 # or fails outright, so override atomically: 20140 install_override_mode=555 20141 ;; 20142 20143interix[3-9]*) 20144 version_type=linux # correct to gnu/linux during the next big refactor 20145 need_lib_prefix=no 20146 need_version=no 20147 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20148 soname_spec='$libname$release$shared_ext$major' 20149 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 20150 shlibpath_var=LD_LIBRARY_PATH 20151 shlibpath_overrides_runpath=no 20152 hardcode_into_libs=yes 20153 ;; 20154 20155irix5* | irix6* | nonstopux*) 20156 case $host_os in 20157 nonstopux*) version_type=nonstopux ;; 20158 *) 20159 if test yes = "$lt_cv_prog_gnu_ld"; then 20160 version_type=linux # correct to gnu/linux during the next big refactor 20161 else 20162 version_type=irix 20163 fi ;; 20164 esac 20165 need_lib_prefix=no 20166 need_version=no 20167 soname_spec='$libname$release$shared_ext$major' 20168 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 20169 case $host_os in 20170 irix5* | nonstopux*) 20171 libsuff= shlibsuff= 20172 ;; 20173 *) 20174 case $LD in # libtool.m4 will add one of these switches to LD 20175 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 20176 libsuff= shlibsuff= libmagic=32-bit;; 20177 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 20178 libsuff=32 shlibsuff=N32 libmagic=N32;; 20179 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 20180 libsuff=64 shlibsuff=64 libmagic=64-bit;; 20181 *) libsuff= shlibsuff= libmagic=never-match;; 20182 esac 20183 ;; 20184 esac 20185 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 20186 shlibpath_overrides_runpath=no 20187 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 20188 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 20189 hardcode_into_libs=yes 20190 ;; 20191 20192# No shared lib support for Linux oldld, aout, or coff. 20193linux*oldld* | linux*aout* | linux*coff*) 20194 dynamic_linker=no 20195 ;; 20196 20197linux*android*) 20198 version_type=none # Android doesn't support versioned libraries. 20199 need_lib_prefix=no 20200 need_version=no 20201 library_names_spec='$libname$release$shared_ext' 20202 soname_spec='$libname$release$shared_ext' 20203 finish_cmds= 20204 shlibpath_var=LD_LIBRARY_PATH 20205 shlibpath_overrides_runpath=yes 20206 20207 # This implies no fast_install, which is unacceptable. 20208 # Some rework will be needed to allow for fast_install 20209 # before this can be enabled. 20210 hardcode_into_libs=yes 20211 20212 dynamic_linker='Android linker' 20213 # Don't embed -rpath directories since the linker doesn't support them. 20214 hardcode_libdir_flag_spec_CXX='-L$libdir' 20215 ;; 20216 20217# This must be glibc/ELF. 20218linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 20219 version_type=linux # correct to gnu/linux during the next big refactor 20220 need_lib_prefix=no 20221 need_version=no 20222 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20223 soname_spec='$libname$release$shared_ext$major' 20224 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 20225 shlibpath_var=LD_LIBRARY_PATH 20226 shlibpath_overrides_runpath=no 20227 20228 # Some binutils ld are patched to set DT_RUNPATH 20229 if test ${lt_cv_shlibpath_overrides_runpath+y} 20230then : 20231 printf %s "(cached) " >&6 20232else $as_nop 20233 lt_cv_shlibpath_overrides_runpath=no 20234 save_LDFLAGS=$LDFLAGS 20235 save_libdir=$libdir 20236 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 20237 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 20238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20239/* end confdefs.h. */ 20240 20241int 20242main (void) 20243{ 20244 20245 ; 20246 return 0; 20247} 20248_ACEOF 20249if ac_fn_cxx_try_link "$LINENO" 20250then : 20251 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 20252then : 20253 lt_cv_shlibpath_overrides_runpath=yes 20254fi 20255fi 20256rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20257 conftest$ac_exeext conftest.$ac_ext 20258 LDFLAGS=$save_LDFLAGS 20259 libdir=$save_libdir 20260 20261fi 20262 20263 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 20264 20265 # This implies no fast_install, which is unacceptable. 20266 # Some rework will be needed to allow for fast_install 20267 # before this can be enabled. 20268 hardcode_into_libs=yes 20269 20270 # Ideally, we could use ldconfig to report *all* directores which are 20271 # searched for libraries, however this is still not possible. Aside from not 20272 # being certain /sbin/ldconfig is available, command 20273 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 20274 # even though it is searched at run-time. Try to do the best guess by 20275 # appending ld.so.conf contents (and includes) to the search path. 20276 if test -f /etc/ld.so.conf; then 20277 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' ' '` 20278 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 20279 fi 20280 20281 # We used to test for /lib/ld.so.1 and disable shared libraries on 20282 # powerpc, because MkLinux only supported shared libraries with the 20283 # GNU dynamic linker. Since this was broken with cross compilers, 20284 # most powerpc-linux boxes support dynamic linking these days and 20285 # people can always --disable-shared, the test was removed, and we 20286 # assume the GNU/Linux dynamic linker is in use. 20287 dynamic_linker='GNU/Linux ld.so' 20288 ;; 20289 20290netbsdelf*-gnu) 20291 version_type=linux 20292 need_lib_prefix=no 20293 need_version=no 20294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 20295 soname_spec='${libname}${release}${shared_ext}$major' 20296 shlibpath_var=LD_LIBRARY_PATH 20297 shlibpath_overrides_runpath=no 20298 hardcode_into_libs=yes 20299 dynamic_linker='NetBSD ld.elf_so' 20300 ;; 20301 20302netbsd*) 20303 version_type=sunos 20304 need_lib_prefix=no 20305 need_version=no 20306 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 20307 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 20308 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 20309 dynamic_linker='NetBSD (a.out) ld.so' 20310 else 20311 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20312 soname_spec='$libname$release$shared_ext$major' 20313 dynamic_linker='NetBSD ld.elf_so' 20314 fi 20315 shlibpath_var=LD_LIBRARY_PATH 20316 shlibpath_overrides_runpath=yes 20317 hardcode_into_libs=yes 20318 ;; 20319 20320newsos6) 20321 version_type=linux # correct to gnu/linux during the next big refactor 20322 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20323 shlibpath_var=LD_LIBRARY_PATH 20324 shlibpath_overrides_runpath=yes 20325 ;; 20326 20327*nto* | *qnx*) 20328 version_type=qnx 20329 need_lib_prefix=no 20330 need_version=no 20331 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20332 soname_spec='$libname$release$shared_ext$major' 20333 shlibpath_var=LD_LIBRARY_PATH 20334 shlibpath_overrides_runpath=no 20335 hardcode_into_libs=yes 20336 dynamic_linker='ldqnx.so' 20337 ;; 20338 20339openbsd* | bitrig*) 20340 version_type=sunos 20341 sys_lib_dlsearch_path_spec=/usr/lib 20342 need_lib_prefix=no 20343 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 20344 need_version=no 20345 else 20346 need_version=yes 20347 fi 20348 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 20349 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 20350 shlibpath_var=LD_LIBRARY_PATH 20351 shlibpath_overrides_runpath=yes 20352 ;; 20353 20354os2*) 20355 libname_spec='$name' 20356 version_type=windows 20357 shrext_cmds=.dll 20358 need_version=no 20359 need_lib_prefix=no 20360 # OS/2 can only load a DLL with a base name of 8 characters or less. 20361 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 20362 v=$($ECHO $release$versuffix | tr -d .-); 20363 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 20364 $ECHO $n$v`$shared_ext' 20365 library_names_spec='${libname}_dll.$libext' 20366 dynamic_linker='OS/2 ld.exe' 20367 shlibpath_var=BEGINLIBPATH 20368 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 20369 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 20370 postinstall_cmds='base_file=`basename \$file`~ 20371 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 20372 dldir=$destdir/`dirname \$dlpath`~ 20373 test -d \$dldir || mkdir -p \$dldir~ 20374 $install_prog $dir/$dlname \$dldir/$dlname~ 20375 chmod a+x \$dldir/$dlname~ 20376 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 20377 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 20378 fi' 20379 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 20380 dlpath=$dir/\$dldll~ 20381 $RM \$dlpath' 20382 ;; 20383 20384osf3* | osf4* | osf5*) 20385 version_type=osf 20386 need_lib_prefix=no 20387 need_version=no 20388 soname_spec='$libname$release$shared_ext$major' 20389 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20390 shlibpath_var=LD_LIBRARY_PATH 20391 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 20392 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 20393 ;; 20394 20395rdos*) 20396 dynamic_linker=no 20397 ;; 20398 20399solaris*) 20400 version_type=linux # correct to gnu/linux during the next big refactor 20401 need_lib_prefix=no 20402 need_version=no 20403 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20404 soname_spec='$libname$release$shared_ext$major' 20405 shlibpath_var=LD_LIBRARY_PATH 20406 shlibpath_overrides_runpath=yes 20407 hardcode_into_libs=yes 20408 # ldd complains unless libraries are executable 20409 postinstall_cmds='chmod +x $lib' 20410 ;; 20411 20412sunos4*) 20413 version_type=sunos 20414 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 20415 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 20416 shlibpath_var=LD_LIBRARY_PATH 20417 shlibpath_overrides_runpath=yes 20418 if test yes = "$with_gnu_ld"; then 20419 need_lib_prefix=no 20420 fi 20421 need_version=yes 20422 ;; 20423 20424sysv4 | sysv4.3*) 20425 version_type=linux # correct to gnu/linux during the next big refactor 20426 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20427 soname_spec='$libname$release$shared_ext$major' 20428 shlibpath_var=LD_LIBRARY_PATH 20429 case $host_vendor in 20430 sni) 20431 shlibpath_overrides_runpath=no 20432 need_lib_prefix=no 20433 runpath_var=LD_RUN_PATH 20434 ;; 20435 siemens) 20436 need_lib_prefix=no 20437 ;; 20438 motorola) 20439 need_lib_prefix=no 20440 need_version=no 20441 shlibpath_overrides_runpath=no 20442 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 20443 ;; 20444 esac 20445 ;; 20446 20447sysv4*MP*) 20448 if test -d /usr/nec; then 20449 version_type=linux # correct to gnu/linux during the next big refactor 20450 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 20451 soname_spec='$libname$shared_ext.$major' 20452 shlibpath_var=LD_LIBRARY_PATH 20453 fi 20454 ;; 20455 20456sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 20457 version_type=sco 20458 need_lib_prefix=no 20459 need_version=no 20460 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 20461 soname_spec='$libname$release$shared_ext$major' 20462 shlibpath_var=LD_LIBRARY_PATH 20463 shlibpath_overrides_runpath=yes 20464 hardcode_into_libs=yes 20465 if test yes = "$with_gnu_ld"; then 20466 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 20467 else 20468 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 20469 case $host_os in 20470 sco3.2v5*) 20471 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 20472 ;; 20473 esac 20474 fi 20475 sys_lib_dlsearch_path_spec='/usr/lib' 20476 ;; 20477 20478tpf*) 20479 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 20480 version_type=linux # correct to gnu/linux during the next big refactor 20481 need_lib_prefix=no 20482 need_version=no 20483 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20484 shlibpath_var=LD_LIBRARY_PATH 20485 shlibpath_overrides_runpath=no 20486 hardcode_into_libs=yes 20487 ;; 20488 20489uts4*) 20490 version_type=linux # correct to gnu/linux during the next big refactor 20491 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 20492 soname_spec='$libname$release$shared_ext$major' 20493 shlibpath_var=LD_LIBRARY_PATH 20494 ;; 20495 20496*) 20497 dynamic_linker=no 20498 ;; 20499esac 20500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 20501printf "%s\n" "$dynamic_linker" >&6; } 20502test no = "$dynamic_linker" && can_build_shared=no 20503 20504variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 20505if test yes = "$GCC"; then 20506 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 20507fi 20508 20509if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 20510 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 20511fi 20512 20513if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 20514 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 20515fi 20516 20517# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 20518configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 20519 20520# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 20521func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 20522 20523# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 20524configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 20525 20526 20527 20528 20529 20530 20531 20532 20533 20534 20535 20536 20537 20538 20539 20540 20541 20542 20543 20544 20545 20546 20547 20548 20549 20550 20551 20552 20553 20554 20555 20556 20557 20558 20559 20560 20561 20562 20563 20564 20565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 20566printf %s "checking how to hardcode library paths into programs... " >&6; } 20567hardcode_action_CXX= 20568if test -n "$hardcode_libdir_flag_spec_CXX" || 20569 test -n "$runpath_var_CXX" || 20570 test yes = "$hardcode_automatic_CXX"; then 20571 20572 # We can hardcode non-existent directories. 20573 if test no != "$hardcode_direct_CXX" && 20574 # If the only mechanism to avoid hardcoding is shlibpath_var, we 20575 # have to relink, otherwise we might link with an installed library 20576 # when we should be linking with a yet-to-be-installed one 20577 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 20578 test no != "$hardcode_minus_L_CXX"; then 20579 # Linking always hardcodes the temporary library directory. 20580 hardcode_action_CXX=relink 20581 else 20582 # We can link without hardcoding, and we can hardcode nonexisting dirs. 20583 hardcode_action_CXX=immediate 20584 fi 20585else 20586 # We cannot hardcode anything, or else we can only hardcode existing 20587 # directories. 20588 hardcode_action_CXX=unsupported 20589fi 20590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 20591printf "%s\n" "$hardcode_action_CXX" >&6; } 20592 20593if test relink = "$hardcode_action_CXX" || 20594 test yes = "$inherit_rpath_CXX"; then 20595 # Fast installation is not supported 20596 enable_fast_install=no 20597elif test yes = "$shlibpath_overrides_runpath" || 20598 test no = "$enable_shared"; then 20599 # Fast installation is not necessary 20600 enable_fast_install=needless 20601fi 20602 20603 20604 20605 20606 20607 20608 20609 fi # test -n "$compiler" 20610 20611 CC=$lt_save_CC 20612 CFLAGS=$lt_save_CFLAGS 20613 LDCXX=$LD 20614 LD=$lt_save_LD 20615 GCC=$lt_save_GCC 20616 with_gnu_ld=$lt_save_with_gnu_ld 20617 lt_cv_path_LDCXX=$lt_cv_path_LD 20618 lt_cv_path_LD=$lt_save_path_LD 20619 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 20620 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 20621fi # test yes != "$_lt_caught_CXX_error" 20622 20623ac_ext=c 20624ac_cpp='$CPP $CPPFLAGS' 20625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20627ac_compiler_gnu=$ac_cv_c_compiler_gnu 20628 20629 20630 20631 20632 20633 20634 20635 20636 20637 20638 20639 20640 20641 20642 20643 ac_config_commands="$ac_config_commands libtool" 20644 20645 20646 20647 20648# Only expand once: 20649 20650 20651## --------------------- ## 20652## End of libtool code ## 20653## --------------------- ## 20654 20655# 20656# Verify if finally libtool shared libraries will be built 20657# 20658 20659case "x$enable_shared" in # (( 20660 xyes | xno) 20661 xc_lt_build_shared=$enable_shared 20662 ;; 20663 *) 20664 as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5 20665 ;; 20666esac 20667 20668# 20669# Verify if finally libtool static libraries will be built 20670# 20671 20672case "x$enable_static" in # (( 20673 xyes | xno) 20674 xc_lt_build_static=$enable_static 20675 ;; 20676 *) 20677 as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5 20678 ;; 20679esac 20680 20681# 20682# Verify if libtool shared libraries should be linked using flag -version-info 20683# 20684 20685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5 20686printf %s "checking whether to build shared libraries with -version-info... " >&6; } 20687xc_lt_shlib_use_version_info='yes' 20688if test "x$version_type" = 'xnone'; then 20689 xc_lt_shlib_use_version_info='no' 20690fi 20691case $host_os in # ( 20692 amigaos*) 20693 xc_lt_shlib_use_version_info='yes' 20694 ;; 20695esac 20696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5 20697printf "%s\n" "$xc_lt_shlib_use_version_info" >&6; } 20698 20699# 20700# Verify if libtool shared libraries should be linked using flag -no-undefined 20701# 20702 20703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5 20704printf %s "checking whether to build shared libraries with -no-undefined... " >&6; } 20705xc_lt_shlib_use_no_undefined='no' 20706if test "x$allow_undefined" = 'xno'; then 20707 xc_lt_shlib_use_no_undefined='yes' 20708elif test "x$allow_undefined_flag" = 'xunsupported'; then 20709 xc_lt_shlib_use_no_undefined='yes' 20710fi 20711case $host_os in # ( 20712 cygwin* | mingw* | pw32* | cegcc* | os2* | aix*) 20713 xc_lt_shlib_use_no_undefined='yes' 20714 ;; 20715esac 20716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5 20717printf "%s\n" "$xc_lt_shlib_use_no_undefined" >&6; } 20718 20719# 20720# Verify if libtool shared libraries should be linked using flag -mimpure-text 20721# 20722 20723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5 20724printf %s "checking whether to build shared libraries with -mimpure-text... " >&6; } 20725xc_lt_shlib_use_mimpure_text='no' 20726case $host_os in # ( 20727 solaris2*) 20728 if test "x$GCC" = 'xyes'; then 20729 xc_lt_shlib_use_mimpure_text='yes' 20730 fi 20731 ;; 20732esac 20733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5 20734printf "%s\n" "$xc_lt_shlib_use_mimpure_text" >&6; } 20735 20736# 20737# Find out wether libtool libraries would be built wit PIC 20738# 20739 20740case "x$pic_mode" in # (((( 20741 xdefault) 20742 xc_lt_build_shared_with_pic='yes' 20743 xc_lt_build_static_with_pic='no' 20744 ;; 20745 xyes) 20746 xc_lt_build_shared_with_pic='yes' 20747 xc_lt_build_static_with_pic='yes' 20748 ;; 20749 xno) 20750 xc_lt_build_shared_with_pic='no' 20751 xc_lt_build_static_with_pic='no' 20752 ;; 20753 *) 20754 xc_lt_build_shared_with_pic='unknown' 20755 xc_lt_build_static_with_pic='unknown' 20756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5 20757printf "%s\n" "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;} 20758 ;; 20759esac 20760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5 20761printf %s "checking whether to build shared libraries with PIC... " >&6; } 20762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5 20763printf "%s\n" "$xc_lt_build_shared_with_pic" >&6; } 20764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5 20765printf %s "checking whether to build static libraries with PIC... " >&6; } 20766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5 20767printf "%s\n" "$xc_lt_build_static_with_pic" >&6; } 20768 20769# 20770# Verify if libtool shared libraries will be built while static not built 20771# 20772 20773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5 20774printf %s "checking whether to build shared libraries only... " >&6; } 20775if test "$xc_lt_build_shared" = 'yes' && 20776 test "$xc_lt_build_static" = 'no'; then 20777 xc_lt_build_shared_only='yes' 20778else 20779 xc_lt_build_shared_only='no' 20780fi 20781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5 20782printf "%s\n" "$xc_lt_build_shared_only" >&6; } 20783 20784# 20785# Verify if libtool static libraries will be built while shared not built 20786# 20787 20788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5 20789printf %s "checking whether to build static libraries only... " >&6; } 20790if test "$xc_lt_build_static" = 'yes' && 20791 test "$xc_lt_build_shared" = 'no'; then 20792 xc_lt_build_static_only='yes' 20793else 20794 xc_lt_build_static_only='no' 20795fi 20796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5 20797printf "%s\n" "$xc_lt_build_static_only" >&6; } 20798 20799 20800 20801 20802 20803# 20804# Automake conditionals based on libtool related checks 20805# 20806 20807 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then 20808 CARES_LT_SHLIB_USE_VERSION_INFO_TRUE= 20809 CARES_LT_SHLIB_USE_VERSION_INFO_FALSE='#' 20810else 20811 CARES_LT_SHLIB_USE_VERSION_INFO_TRUE='#' 20812 CARES_LT_SHLIB_USE_VERSION_INFO_FALSE= 20813fi 20814 20815 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then 20816 CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE= 20817 CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#' 20818else 20819 CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#' 20820 CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE= 20821fi 20822 20823 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then 20824 CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE= 20825 CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#' 20826else 20827 CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#' 20828 CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE= 20829fi 20830 20831 20832# 20833# Due to libtool and automake machinery limitations of not allowing 20834# specifying separate CPPFLAGS or CFLAGS when compiling objects for 20835# inclusion of these in shared or static libraries, we are forced to 20836# build using separate configure runs for shared and static libraries 20837# on systems where different CPPFLAGS or CFLAGS are mandatory in order 20838# to compile objects for each kind of library. Notice that relying on 20839# the '-DPIC' CFLAG that libtool provides is not valid given that the 20840# user might for example choose to build static libraries with PIC. 20841# 20842 20843# 20844# Make our Makefile.am files use the staticlib CPPFLAG only when strictly 20845# targeting a static library and not building its shared counterpart. 20846# 20847 20848 if test "x$xc_lt_build_static_only" = 'xyes'; then 20849 USE_CPPFLAG_CARES_STATICLIB_TRUE= 20850 USE_CPPFLAG_CARES_STATICLIB_FALSE='#' 20851else 20852 USE_CPPFLAG_CARES_STATICLIB_TRUE='#' 20853 USE_CPPFLAG_CARES_STATICLIB_FALSE= 20854fi 20855 20856 20857# 20858# Make staticlib CPPFLAG variable and its definition visible in output 20859# files unconditionally, providing an empty definition unless strictly 20860# targeting a static library and not building its shared counterpart. 20861# 20862 20863CPPFLAG_CARES_STATICLIB= 20864if test "x$xc_lt_build_static_only" = 'xyes'; then 20865 CPPFLAG_CARES_STATICLIB='-DCARES_STATICLIB' 20866fi 20867 20868 20869 20870 20871 # 20872 compiler_id="unknown" 20873 compiler_num="0" 20874 # 20875 flags_dbg_all="unknown" 20876 flags_dbg_yes="unknown" 20877 flags_dbg_off="unknown" 20878 flags_opt_all="unknown" 20879 flags_opt_yes="unknown" 20880 flags_opt_off="unknown" 20881 # 20882 flags_prefer_cppflags="no" 20883 # 20884 20885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5 20886printf %s "checking if compiler is DEC/Compaq/HP C... " >&6; } 20887 20888 if test -z "$SED"; then 20889 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 20890 fi 20891 if test -z "$GREP"; then 20892 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 20893 fi 20894 20895 tmp_exp="" 20896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20897/* end confdefs.h. */ 20898 20899 20900#ifdef __DECC 20901CURL_DEF_TOKEN __DECC 20902#endif 20903 20904 20905_ACEOF 20906if ac_fn_c_try_cpp "$LINENO" 20907then : 20908 20909 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 20910 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 20911 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 20912 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 20913 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then 20914 tmp_exp="" 20915 fi 20916 20917fi 20918rm -f conftest.err conftest.i conftest.$ac_ext 20919 if test -z "$tmp_exp"; then 20920 curl_cv_have_def___DECC=no 20921 20922 else 20923 curl_cv_have_def___DECC=yes 20924 curl_cv_def___DECC=$tmp_exp 20925 20926 fi 20927 20928 20929 if test -z "$SED"; then 20930 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 20931 fi 20932 if test -z "$GREP"; then 20933 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 20934 fi 20935 20936 tmp_exp="" 20937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20938/* end confdefs.h. */ 20939 20940 20941#ifdef __DECC_VER 20942CURL_DEF_TOKEN __DECC_VER 20943#endif 20944 20945 20946_ACEOF 20947if ac_fn_c_try_cpp "$LINENO" 20948then : 20949 20950 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 20951 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 20952 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 20953 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 20954 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then 20955 tmp_exp="" 20956 fi 20957 20958fi 20959rm -f conftest.err conftest.i conftest.$ac_ext 20960 if test -z "$tmp_exp"; then 20961 curl_cv_have_def___DECC_VER=no 20962 20963 else 20964 curl_cv_have_def___DECC_VER=yes 20965 curl_cv_def___DECC_VER=$tmp_exp 20966 20967 fi 20968 20969 if test "$curl_cv_have_def___DECC" = "yes" && 20970 test "$curl_cv_have_def___DECC_VER" = "yes"; then 20971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20972printf "%s\n" "yes" >&6; } 20973 compiler_id="DEC_C" 20974 flags_dbg_all="-g -g0 -g1 -g2 -g3" 20975 flags_dbg_yes="-g2" 20976 flags_dbg_off="-g0" 20977 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4" 20978 flags_opt_yes="-O1" 20979 flags_opt_off="-O0" 20980 else 20981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20982printf "%s\n" "no" >&6; } 20983 fi 20984 20985 20986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5 20987printf %s "checking if compiler is HP-UX C... " >&6; } 20988 20989 if test -z "$SED"; then 20990 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 20991 fi 20992 if test -z "$GREP"; then 20993 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 20994 fi 20995 20996 tmp_exp="" 20997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20998/* end confdefs.h. */ 20999 21000 21001#ifdef __HP_cc 21002CURL_DEF_TOKEN __HP_cc 21003#endif 21004 21005 21006_ACEOF 21007if ac_fn_c_try_cpp "$LINENO" 21008then : 21009 21010 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 21011 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 21012 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 21013 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 21014 if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then 21015 tmp_exp="" 21016 fi 21017 21018fi 21019rm -f conftest.err conftest.i conftest.$ac_ext 21020 if test -z "$tmp_exp"; then 21021 curl_cv_have_def___HP_cc=no 21022 21023 else 21024 curl_cv_have_def___HP_cc=yes 21025 curl_cv_def___HP_cc=$tmp_exp 21026 21027 fi 21028 21029 if test "$curl_cv_have_def___HP_cc" = "yes"; then 21030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21031printf "%s\n" "yes" >&6; } 21032 compiler_id="HP_UX_C" 21033 flags_dbg_all="-g -s" 21034 flags_dbg_yes="-g" 21035 flags_dbg_off="-s" 21036 flags_opt_all="-O +O0 +O1 +O2 +O3 +O4" 21037 flags_opt_yes="+O2" 21038 flags_opt_off="+O0" 21039 else 21040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21041printf "%s\n" "no" >&6; } 21042 fi 21043 21044 21045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5 21046printf %s "checking if compiler is IBM C... " >&6; } 21047 21048 if test -z "$SED"; then 21049 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 21050 fi 21051 if test -z "$GREP"; then 21052 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 21053 fi 21054 21055 tmp_exp="" 21056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21057/* end confdefs.h. */ 21058 21059 21060#ifdef __IBMC__ 21061CURL_DEF_TOKEN __IBMC__ 21062#endif 21063 21064 21065_ACEOF 21066if ac_fn_c_try_cpp "$LINENO" 21067then : 21068 21069 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 21070 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 21071 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 21072 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 21073 if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then 21074 tmp_exp="" 21075 fi 21076 21077fi 21078rm -f conftest.err conftest.i conftest.$ac_ext 21079 if test -z "$tmp_exp"; then 21080 curl_cv_have_def___IBMC__=no 21081 21082 else 21083 curl_cv_have_def___IBMC__=yes 21084 curl_cv_def___IBMC__=$tmp_exp 21085 21086 fi 21087 21088 if test "$curl_cv_have_def___IBMC__" = "yes"; then 21089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21090printf "%s\n" "yes" >&6; } 21091 compiler_id="IBM_C" 21092 flags_dbg_all="-g -g0 -g1 -g2 -g3" 21093 flags_dbg_yes="-g" 21094 flags_dbg_off="" 21095 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5" 21096 flags_opt_all="$flags_opt_all -qnooptimize" 21097 flags_opt_all="$flags_opt_all -qoptimize=0" 21098 flags_opt_all="$flags_opt_all -qoptimize=1" 21099 flags_opt_all="$flags_opt_all -qoptimize=2" 21100 flags_opt_all="$flags_opt_all -qoptimize=3" 21101 flags_opt_all="$flags_opt_all -qoptimize=4" 21102 flags_opt_all="$flags_opt_all -qoptimize=5" 21103 flags_opt_yes="-O2" 21104 flags_opt_off="-qnooptimize" 21105 flags_prefer_cppflags="yes" 21106 else 21107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21108printf "%s\n" "no" >&6; } 21109 fi 21110 21111 21112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5 21113printf %s "checking if compiler is Intel C... " >&6; } 21114 21115 if test -z "$SED"; then 21116 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 21117 fi 21118 if test -z "$GREP"; then 21119 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 21120 fi 21121 21122 tmp_exp="" 21123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21124/* end confdefs.h. */ 21125 21126 21127#ifdef __INTEL_COMPILER 21128CURL_DEF_TOKEN __INTEL_COMPILER 21129#endif 21130 21131 21132_ACEOF 21133if ac_fn_c_try_cpp "$LINENO" 21134then : 21135 21136 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 21137 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 21138 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 21139 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 21140 if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then 21141 tmp_exp="" 21142 fi 21143 21144fi 21145rm -f conftest.err conftest.i conftest.$ac_ext 21146 if test -z "$tmp_exp"; then 21147 curl_cv_have_def___INTEL_COMPILER=no 21148 21149 else 21150 curl_cv_have_def___INTEL_COMPILER=yes 21151 curl_cv_def___INTEL_COMPILER=$tmp_exp 21152 21153 fi 21154 21155 if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then 21156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21157printf "%s\n" "yes" >&6; } 21158 compiler_num="$curl_cv_def___INTEL_COMPILER" 21159 21160 if test -z "$SED"; then 21161 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 21162 fi 21163 if test -z "$GREP"; then 21164 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 21165 fi 21166 21167 tmp_exp="" 21168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21169/* end confdefs.h. */ 21170 21171 21172#ifdef __unix__ 21173CURL_DEF_TOKEN __unix__ 21174#endif 21175 21176 21177_ACEOF 21178if ac_fn_c_try_cpp "$LINENO" 21179then : 21180 21181 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 21182 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 21183 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 21184 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 21185 if test -z "$tmp_exp" || test "$tmp_exp" = ""; then 21186 tmp_exp="" 21187 fi 21188 21189fi 21190rm -f conftest.err conftest.i conftest.$ac_ext 21191 if test -z "$tmp_exp"; then 21192 curl_cv_have_def___unix__=no 21193 21194 else 21195 curl_cv_have_def___unix__=yes 21196 curl_cv_def___unix__=$tmp_exp 21197 21198 fi 21199 21200 if test "$curl_cv_have_def___unix__" = "yes"; then 21201 compiler_id="INTEL_UNIX_C" 21202 flags_dbg_all="-g -g0" 21203 flags_dbg_yes="-g" 21204 flags_dbg_off="-g0" 21205 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os" 21206 flags_opt_yes="-O2" 21207 flags_opt_off="-O0" 21208 else 21209 compiler_id="INTEL_WINDOWS_C" 21210 flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-" 21211 flags_dbg_all="$flags_dbg_all /debug" 21212 flags_dbg_all="$flags_dbg_all /debug:none" 21213 flags_dbg_all="$flags_dbg_all /debug:minimal" 21214 flags_dbg_all="$flags_dbg_all /debug:partial" 21215 flags_dbg_all="$flags_dbg_all /debug:full" 21216 flags_dbg_all="$flags_dbg_all /debug:semantic_stepping" 21217 flags_dbg_all="$flags_dbg_all /debug:extended" 21218 flags_dbg_yes="/Zi /Oy-" 21219 flags_dbg_off="/debug:none /Oy-" 21220 flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-" 21221 flags_opt_yes="/O2" 21222 flags_opt_off="/Od" 21223 fi 21224 else 21225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21226printf "%s\n" "no" >&6; } 21227 fi 21228 21229 21230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5 21231printf %s "checking if compiler is clang... " >&6; } 21232 21233 if test -z "$SED"; then 21234 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 21235 fi 21236 if test -z "$GREP"; then 21237 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 21238 fi 21239 21240 tmp_exp="" 21241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21242/* end confdefs.h. */ 21243 21244 21245#ifdef __clang__ 21246CURL_DEF_TOKEN __clang__ 21247#endif 21248 21249 21250_ACEOF 21251if ac_fn_c_try_cpp "$LINENO" 21252then : 21253 21254 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 21255 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 21256 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 21257 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 21258 if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then 21259 tmp_exp="" 21260 fi 21261 21262fi 21263rm -f conftest.err conftest.i conftest.$ac_ext 21264 if test -z "$tmp_exp"; then 21265 curl_cv_have_def___clang__=no 21266 21267 else 21268 curl_cv_have_def___clang__=yes 21269 curl_cv_def___clang__=$tmp_exp 21270 21271 fi 21272 21273 if test "$curl_cv_have_def___clang__" = "yes"; then 21274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21275printf "%s\n" "yes" >&6; } 21276 compiler_id="CLANG" 21277 clangver=`$CC -dumpversion` 21278 clangvhi=`echo $clangver | cut -d . -f1` 21279 clangvlo=`echo $clangver | cut -d . -f2` 21280 compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null` 21281 flags_dbg_all="-g -g0 -g1 -g2 -g3" 21282 flags_dbg_all="$flags_dbg_all -ggdb" 21283 flags_dbg_all="$flags_dbg_all -gstabs" 21284 flags_dbg_all="$flags_dbg_all -gstabs+" 21285 flags_dbg_all="$flags_dbg_all -gcoff" 21286 flags_dbg_all="$flags_dbg_all -gxcoff" 21287 flags_dbg_all="$flags_dbg_all -gdwarf-2" 21288 flags_dbg_all="$flags_dbg_all -gvms" 21289 flags_dbg_yes="-g" 21290 flags_dbg_off="-g0" 21291 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4" 21292 flags_opt_yes="-Os" 21293 flags_opt_off="-O0" 21294 else 21295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21296printf "%s\n" "no" >&6; } 21297 fi 21298 21299 21300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5 21301printf %s "checking if compiler is GNU C... " >&6; } 21302 21303 if test -z "$SED"; then 21304 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 21305 fi 21306 if test -z "$GREP"; then 21307 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 21308 fi 21309 21310 tmp_exp="" 21311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21312/* end confdefs.h. */ 21313 21314 21315#ifdef __GNUC__ 21316CURL_DEF_TOKEN __GNUC__ 21317#endif 21318 21319 21320_ACEOF 21321if ac_fn_c_try_cpp "$LINENO" 21322then : 21323 21324 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 21325 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 21326 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 21327 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 21328 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then 21329 tmp_exp="" 21330 fi 21331 21332fi 21333rm -f conftest.err conftest.i conftest.$ac_ext 21334 if test -z "$tmp_exp"; then 21335 curl_cv_have_def___GNUC__=no 21336 21337 else 21338 curl_cv_have_def___GNUC__=yes 21339 curl_cv_def___GNUC__=$tmp_exp 21340 21341 fi 21342 21343 if test "$curl_cv_have_def___GNUC__" = "yes" && 21344 test "$compiler_id" = "unknown"; then 21345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21346printf "%s\n" "yes" >&6; } 21347 compiler_id="GNU_C" 21348 gccver=`$CC -dumpversion` 21349 gccvhi=`echo $gccver | cut -d . -f1` 21350 gccvlo=`echo $gccver | cut -d . -f2` 21351 compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null` 21352 flags_dbg_all="-g -g0 -g1 -g2 -g3" 21353 flags_dbg_all="$flags_dbg_all -ggdb" 21354 flags_dbg_all="$flags_dbg_all -gstabs" 21355 flags_dbg_all="$flags_dbg_all -gstabs+" 21356 flags_dbg_all="$flags_dbg_all -gcoff" 21357 flags_dbg_all="$flags_dbg_all -gxcoff" 21358 flags_dbg_all="$flags_dbg_all -gdwarf-2" 21359 flags_dbg_all="$flags_dbg_all -gvms" 21360 flags_dbg_yes="-g" 21361 flags_dbg_off="-g0" 21362 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os" 21363 flags_opt_yes="-O2" 21364 flags_opt_off="-O0" 21365 21366 if test -z "$SED"; then 21367 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 21368 fi 21369 if test -z "$GREP"; then 21370 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 21371 fi 21372 21373 tmp_exp="" 21374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21375/* end confdefs.h. */ 21376 21377 21378#ifdef _WIN32 21379CURL_DEF_TOKEN _WIN32 21380#endif 21381 21382 21383_ACEOF 21384if ac_fn_c_try_cpp "$LINENO" 21385then : 21386 21387 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 21388 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 21389 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 21390 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 21391 if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then 21392 tmp_exp="" 21393 fi 21394 21395fi 21396rm -f conftest.err conftest.i conftest.$ac_ext 21397 if test -z "$tmp_exp"; then 21398 curl_cv_have_def__WIN32=no 21399 21400 else 21401 curl_cv_have_def__WIN32=yes 21402 curl_cv_def__WIN32=$tmp_exp 21403 21404 fi 21405 21406 else 21407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21408printf "%s\n" "no" >&6; } 21409 fi 21410 21411 21412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5 21413printf %s "checking if compiler is LCC... " >&6; } 21414 21415 if test -z "$SED"; then 21416 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 21417 fi 21418 if test -z "$GREP"; then 21419 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 21420 fi 21421 21422 tmp_exp="" 21423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21424/* end confdefs.h. */ 21425 21426 21427#ifdef __LCC__ 21428CURL_DEF_TOKEN __LCC__ 21429#endif 21430 21431 21432_ACEOF 21433if ac_fn_c_try_cpp "$LINENO" 21434then : 21435 21436 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 21437 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 21438 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 21439 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 21440 if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then 21441 tmp_exp="" 21442 fi 21443 21444fi 21445rm -f conftest.err conftest.i conftest.$ac_ext 21446 if test -z "$tmp_exp"; then 21447 curl_cv_have_def___LCC__=no 21448 21449 else 21450 curl_cv_have_def___LCC__=yes 21451 curl_cv_def___LCC__=$tmp_exp 21452 21453 fi 21454 21455 if test "$curl_cv_have_def___LCC__" = "yes"; then 21456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21457printf "%s\n" "yes" >&6; } 21458 compiler_id="LCC" 21459 flags_dbg_all="-g" 21460 flags_dbg_yes="-g" 21461 flags_dbg_off="" 21462 flags_opt_all="" 21463 flags_opt_yes="" 21464 flags_opt_off="" 21465 else 21466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21467printf "%s\n" "no" >&6; } 21468 fi 21469 21470 21471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5 21472printf %s "checking if compiler is SGI MIPSpro C... " >&6; } 21473 21474 if test -z "$SED"; then 21475 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 21476 fi 21477 if test -z "$GREP"; then 21478 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 21479 fi 21480 21481 tmp_exp="" 21482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21483/* end confdefs.h. */ 21484 21485 21486#ifdef __GNUC__ 21487CURL_DEF_TOKEN __GNUC__ 21488#endif 21489 21490 21491_ACEOF 21492if ac_fn_c_try_cpp "$LINENO" 21493then : 21494 21495 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 21496 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 21497 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 21498 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 21499 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then 21500 tmp_exp="" 21501 fi 21502 21503fi 21504rm -f conftest.err conftest.i conftest.$ac_ext 21505 if test -z "$tmp_exp"; then 21506 curl_cv_have_def___GNUC__=no 21507 21508 else 21509 curl_cv_have_def___GNUC__=yes 21510 curl_cv_def___GNUC__=$tmp_exp 21511 21512 fi 21513 21514 21515 if test -z "$SED"; then 21516 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 21517 fi 21518 if test -z "$GREP"; then 21519 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 21520 fi 21521 21522 tmp_exp="" 21523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21524/* end confdefs.h. */ 21525 21526 21527#ifdef _COMPILER_VERSION 21528CURL_DEF_TOKEN _COMPILER_VERSION 21529#endif 21530 21531 21532_ACEOF 21533if ac_fn_c_try_cpp "$LINENO" 21534then : 21535 21536 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 21537 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 21538 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 21539 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 21540 if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then 21541 tmp_exp="" 21542 fi 21543 21544fi 21545rm -f conftest.err conftest.i conftest.$ac_ext 21546 if test -z "$tmp_exp"; then 21547 curl_cv_have_def__COMPILER_VERSION=no 21548 21549 else 21550 curl_cv_have_def__COMPILER_VERSION=yes 21551 curl_cv_def__COMPILER_VERSION=$tmp_exp 21552 21553 fi 21554 21555 21556 if test -z "$SED"; then 21557 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 21558 fi 21559 if test -z "$GREP"; then 21560 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 21561 fi 21562 21563 tmp_exp="" 21564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21565/* end confdefs.h. */ 21566 21567 21568#ifdef _SGI_COMPILER_VERSION 21569CURL_DEF_TOKEN _SGI_COMPILER_VERSION 21570#endif 21571 21572 21573_ACEOF 21574if ac_fn_c_try_cpp "$LINENO" 21575then : 21576 21577 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 21578 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 21579 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 21580 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 21581 if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then 21582 tmp_exp="" 21583 fi 21584 21585fi 21586rm -f conftest.err conftest.i conftest.$ac_ext 21587 if test -z "$tmp_exp"; then 21588 curl_cv_have_def__SGI_COMPILER_VERSION=no 21589 21590 else 21591 curl_cv_have_def__SGI_COMPILER_VERSION=yes 21592 curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp 21593 21594 fi 21595 21596 if test "$curl_cv_have_def___GNUC__" = "no" && 21597 (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" || 21598 test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then 21599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21600printf "%s\n" "yes" >&6; } 21601 compiler_id="SGI_MIPSPRO_C" 21602 flags_dbg_all="-g -g0 -g1 -g2 -g3" 21603 flags_dbg_yes="-g" 21604 flags_dbg_off="-g0" 21605 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast" 21606 flags_opt_yes="-O2" 21607 flags_opt_off="-O0" 21608 else 21609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21610printf "%s\n" "no" >&6; } 21611 fi 21612 21613 21614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5 21615printf %s "checking if compiler is SGI MIPS C... " >&6; } 21616 21617 if test -z "$SED"; then 21618 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 21619 fi 21620 if test -z "$GREP"; then 21621 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 21622 fi 21623 21624 tmp_exp="" 21625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21626/* end confdefs.h. */ 21627 21628 21629#ifdef __GNUC__ 21630CURL_DEF_TOKEN __GNUC__ 21631#endif 21632 21633 21634_ACEOF 21635if ac_fn_c_try_cpp "$LINENO" 21636then : 21637 21638 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 21639 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 21640 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 21641 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 21642 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then 21643 tmp_exp="" 21644 fi 21645 21646fi 21647rm -f conftest.err conftest.i conftest.$ac_ext 21648 if test -z "$tmp_exp"; then 21649 curl_cv_have_def___GNUC__=no 21650 21651 else 21652 curl_cv_have_def___GNUC__=yes 21653 curl_cv_def___GNUC__=$tmp_exp 21654 21655 fi 21656 21657 21658 if test -z "$SED"; then 21659 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 21660 fi 21661 if test -z "$GREP"; then 21662 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 21663 fi 21664 21665 tmp_exp="" 21666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21667/* end confdefs.h. */ 21668 21669 21670#ifdef __sgi 21671CURL_DEF_TOKEN __sgi 21672#endif 21673 21674 21675_ACEOF 21676if ac_fn_c_try_cpp "$LINENO" 21677then : 21678 21679 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 21680 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 21681 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 21682 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 21683 if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then 21684 tmp_exp="" 21685 fi 21686 21687fi 21688rm -f conftest.err conftest.i conftest.$ac_ext 21689 if test -z "$tmp_exp"; then 21690 curl_cv_have_def___sgi=no 21691 21692 else 21693 curl_cv_have_def___sgi=yes 21694 curl_cv_def___sgi=$tmp_exp 21695 21696 fi 21697 21698 if test "$curl_cv_have_def___GNUC__" = "no" && 21699 test "$curl_cv_have_def___sgi" = "yes" && 21700 test "$compiler_id" = "unknown"; then 21701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21702printf "%s\n" "yes" >&6; } 21703 compiler_id="SGI_MIPS_C" 21704 flags_dbg_all="-g -g0 -g1 -g2 -g3" 21705 flags_dbg_yes="-g" 21706 flags_dbg_off="-g0" 21707 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast" 21708 flags_opt_yes="-O2" 21709 flags_opt_off="-O0" 21710 else 21711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21712printf "%s\n" "no" >&6; } 21713 fi 21714 21715 21716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5 21717printf %s "checking if compiler is SunPro C... " >&6; } 21718 21719 if test -z "$SED"; then 21720 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 21721 fi 21722 if test -z "$GREP"; then 21723 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 21724 fi 21725 21726 tmp_exp="" 21727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21728/* end confdefs.h. */ 21729 21730 21731#ifdef __SUNPRO_C 21732CURL_DEF_TOKEN __SUNPRO_C 21733#endif 21734 21735 21736_ACEOF 21737if ac_fn_c_try_cpp "$LINENO" 21738then : 21739 21740 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 21741 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 21742 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 21743 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 21744 if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then 21745 tmp_exp="" 21746 fi 21747 21748fi 21749rm -f conftest.err conftest.i conftest.$ac_ext 21750 if test -z "$tmp_exp"; then 21751 curl_cv_have_def___SUNPRO_C=no 21752 21753 else 21754 curl_cv_have_def___SUNPRO_C=yes 21755 curl_cv_def___SUNPRO_C=$tmp_exp 21756 21757 fi 21758 21759 if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then 21760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21761printf "%s\n" "yes" >&6; } 21762 compiler_id="SUNPRO_C" 21763 flags_dbg_all="-g -s" 21764 flags_dbg_yes="-g" 21765 flags_dbg_off="-s" 21766 flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5" 21767 flags_opt_yes="-xO2" 21768 flags_opt_off="" 21769 else 21770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21771printf "%s\n" "no" >&6; } 21772 fi 21773 21774 21775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5 21776printf %s "checking if compiler is Tiny C... " >&6; } 21777 21778 if test -z "$SED"; then 21779 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 21780 fi 21781 if test -z "$GREP"; then 21782 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 21783 fi 21784 21785 tmp_exp="" 21786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21787/* end confdefs.h. */ 21788 21789 21790#ifdef __TINYC__ 21791CURL_DEF_TOKEN __TINYC__ 21792#endif 21793 21794 21795_ACEOF 21796if ac_fn_c_try_cpp "$LINENO" 21797then : 21798 21799 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 21800 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 21801 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 21802 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 21803 if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then 21804 tmp_exp="" 21805 fi 21806 21807fi 21808rm -f conftest.err conftest.i conftest.$ac_ext 21809 if test -z "$tmp_exp"; then 21810 curl_cv_have_def___TINYC__=no 21811 21812 else 21813 curl_cv_have_def___TINYC__=yes 21814 curl_cv_def___TINYC__=$tmp_exp 21815 21816 fi 21817 21818 if test "$curl_cv_have_def___TINYC__" = "yes"; then 21819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21820printf "%s\n" "yes" >&6; } 21821 compiler_id="TINY_C" 21822 flags_dbg_all="-g -b" 21823 flags_dbg_yes="-g" 21824 flags_dbg_off="" 21825 flags_opt_all="" 21826 flags_opt_yes="" 21827 flags_opt_off="" 21828 else 21829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21830printf "%s\n" "no" >&6; } 21831 fi 21832 21833 21834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5 21835printf %s "checking if compiler is Watcom C... " >&6; } 21836 21837 if test -z "$SED"; then 21838 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 21839 fi 21840 if test -z "$GREP"; then 21841 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 21842 fi 21843 21844 tmp_exp="" 21845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21846/* end confdefs.h. */ 21847 21848 21849#ifdef __WATCOMC__ 21850CURL_DEF_TOKEN __WATCOMC__ 21851#endif 21852 21853 21854_ACEOF 21855if ac_fn_c_try_cpp "$LINENO" 21856then : 21857 21858 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 21859 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 21860 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 21861 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 21862 if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then 21863 tmp_exp="" 21864 fi 21865 21866fi 21867rm -f conftest.err conftest.i conftest.$ac_ext 21868 if test -z "$tmp_exp"; then 21869 curl_cv_have_def___WATCOMC__=no 21870 21871 else 21872 curl_cv_have_def___WATCOMC__=yes 21873 curl_cv_def___WATCOMC__=$tmp_exp 21874 21875 fi 21876 21877 if test "$curl_cv_have_def___WATCOMC__" = "yes"; then 21878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21879printf "%s\n" "yes" >&6; } 21880 21881 if test -z "$SED"; then 21882 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 21883 fi 21884 if test -z "$GREP"; then 21885 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 21886 fi 21887 21888 tmp_exp="" 21889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21890/* end confdefs.h. */ 21891 21892 21893#ifdef __UNIX__ 21894CURL_DEF_TOKEN __UNIX__ 21895#endif 21896 21897 21898_ACEOF 21899if ac_fn_c_try_cpp "$LINENO" 21900then : 21901 21902 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 21903 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 21904 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 21905 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 21906 if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then 21907 tmp_exp="" 21908 fi 21909 21910fi 21911rm -f conftest.err conftest.i conftest.$ac_ext 21912 if test -z "$tmp_exp"; then 21913 curl_cv_have_def___UNIX__=no 21914 21915 else 21916 curl_cv_have_def___UNIX__=yes 21917 curl_cv_def___UNIX__=$tmp_exp 21918 21919 fi 21920 21921 if test "$curl_cv_have_def___UNIX__" = "yes"; then 21922 compiler_id="WATCOM_UNIX_C" 21923 flags_dbg_all="-g1 -g1+ -g2 -g3" 21924 flags_dbg_yes="-g2" 21925 flags_dbg_off="" 21926 flags_opt_all="-O0 -O1 -O2 -O3" 21927 flags_opt_yes="-O2" 21928 flags_opt_off="-O0" 21929 else 21930 compiler_id="WATCOM_WINDOWS_C" 21931 flags_dbg_all="" 21932 flags_dbg_yes="" 21933 flags_dbg_off="" 21934 flags_opt_all="" 21935 flags_opt_yes="" 21936 flags_opt_off="" 21937 fi 21938 else 21939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21940printf "%s\n" "no" >&6; } 21941 fi 21942 21943 # 21944 if test "$compiler_id" = "unknown"; then 21945 cat <<_EOF 1>&2 21946*** 21947*** Warning: This configure script does not have information about the 21948*** compiler you are using, relative to the flags required to enable or 21949*** disable generation of debug info, optimization options or warnings. 21950*** 21951*** Whatever settings are present in CFLAGS will be used for this run. 21952*** 21953*** If you wish to help the c-ares project to better support your compiler 21954*** you can report this and the required info on the c-ares development 21955*** mailing list: http://lists.haxx.se/listinfo/c-ares/ 21956*** 21957_EOF 21958 fi 21959 21960 21961squeeze() { 21962 _sqz_result="" 21963 eval _sqz_input=\$$1 21964 for _sqz_token in $_sqz_input; do 21965 if test -z "$_sqz_result"; then 21966 _sqz_result="$_sqz_token" 21967 else 21968 _sqz_result="$_sqz_result $_sqz_token" 21969 fi 21970 done 21971 eval $1=\$_sqz_result 21972 return 0 21973} 21974 21975 21976 # 21977 if test "$compiler_id" != "unknown"; then 21978 # 21979 if test "$compiler_id" = "GNU_C" || 21980 test "$compiler_id" = "CLANG"; then 21981 21982 if test "$compiler_id" = "GNU_C" || 21983 test "$compiler_id" = "CLANG"; then 21984 tmp_has_include="no" 21985 tmp_chg_FLAGS="$CFLAGS" 21986 for word1 in $tmp_chg_FLAGS; do 21987 case "$word1" in 21988 -I*) 21989 tmp_has_include="yes" 21990 ;; 21991 esac 21992 done 21993 if test "$tmp_has_include" = "yes"; then 21994 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'` 21995 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'` 21996 CFLAGS="$tmp_chg_FLAGS" 21997 squeeze CFLAGS 21998 fi 21999 tmp_has_include="no" 22000 tmp_chg_FLAGS="$CPPFLAGS" 22001 for word1 in $tmp_chg_FLAGS; do 22002 case "$word1" in 22003 -I*) 22004 tmp_has_include="yes" 22005 ;; 22006 esac 22007 done 22008 if test "$tmp_has_include" = "yes"; then 22009 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'` 22010 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'` 22011 CPPFLAGS="$tmp_chg_FLAGS" 22012 squeeze CPPFLAGS 22013 fi 22014 fi 22015 22016 fi 22017 # 22018 tmp_save_CPPFLAGS="$CPPFLAGS" 22019 tmp_save_CFLAGS="$CFLAGS" 22020 tmp_CPPFLAGS="" 22021 tmp_CFLAGS="" 22022 # 22023 case "$compiler_id" in 22024 # 22025 CLANG) 22026 # 22027 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments" 22028 ;; 22029 # 22030 DEC_C) 22031 # 22032 tmp_CFLAGS="$tmp_CFLAGS -std1" 22033 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias" 22034 tmp_CFLAGS="$tmp_CFLAGS -warnprotos" 22035 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs" 22036 ;; 22037 # 22038 GNU_C) 22039 # 22040 tmp_CFLAGS="$tmp_CFLAGS" 22041 ;; 22042 # 22043 HP_UX_C) 22044 # 22045 tmp_CFLAGS="$tmp_CFLAGS -z" 22046 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255" 22047 ;; 22048 # 22049 IBM_C) 22050 # 22051 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded" 22052 tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias" 22053 tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e" 22054 ;; 22055 # 22056 INTEL_UNIX_C) 22057 # 22058 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89" 22059 tmp_CPPFLAGS="$tmp_CPPFLAGS -diag-error 140,147,165,266" 22060 tmp_CPPFLAGS="$tmp_CPPFLAGS -diag-disable 279,981,1469" 22061 ;; 22062 # 22063 INTEL_WINDOWS_C) 22064 # 22065 tmp_CFLAGS="$tmp_CFLAGS" 22066 ;; 22067 # 22068 LCC) 22069 # 22070 tmp_CFLAGS="$tmp_CFLAGS -n" 22071 ;; 22072 # 22073 SGI_MIPS_C) 22074 # 22075 tmp_CFLAGS="$tmp_CFLAGS" 22076 ;; 22077 # 22078 SGI_MIPSPRO_C) 22079 # 22080 tmp_CFLAGS="$tmp_CFLAGS" 22081 ;; 22082 # 22083 SUNPRO_C) 22084 # 22085 tmp_CFLAGS="$tmp_CFLAGS" 22086 ;; 22087 # 22088 TINY_C) 22089 # 22090 tmp_CFLAGS="$tmp_CFLAGS" 22091 ;; 22092 # 22093 WATCOM_UNIX_C) 22094 # 22095 tmp_CFLAGS="$tmp_CFLAGS" 22096 ;; 22097 # 22098 WATCOM_WINDOWS_C) 22099 # 22100 tmp_CFLAGS="$tmp_CFLAGS" 22101 ;; 22102 # 22103 esac 22104 # 22105 squeeze tmp_CPPFLAGS 22106 squeeze tmp_CFLAGS 22107 # 22108 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then 22109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5 22110printf %s "checking if compiler accepts some basic options... " >&6; } 22111 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS" 22112 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS" 22113 squeeze CPPFLAGS 22114 squeeze CFLAGS 22115 22116 tmp_compiler_works="unknown" 22117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22118/* end confdefs.h. */ 22119 22120 22121 22122int 22123main (void) 22124{ 22125 22126 int i = 1; 22127 return i; 22128 22129 ; 22130 return 0; 22131} 22132 22133_ACEOF 22134if ac_fn_c_try_compile "$LINENO" 22135then : 22136 22137 tmp_compiler_works="yes" 22138 22139else $as_nop 22140 22141 tmp_compiler_works="no" 22142 echo " " >&6 22143 sed 's/^/cc-fail: /' conftest.err >&6 22144 echo " " >&6 22145 22146fi 22147rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22148 if test "$tmp_compiler_works" = "yes"; then 22149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22150/* end confdefs.h. */ 22151 22152 22153 22154int 22155main (void) 22156{ 22157 22158 int i = 1; 22159 return i; 22160 22161 ; 22162 return 0; 22163} 22164 22165_ACEOF 22166if ac_fn_c_try_link "$LINENO" 22167then : 22168 22169 tmp_compiler_works="yes" 22170 22171else $as_nop 22172 22173 tmp_compiler_works="no" 22174 echo " " >&6 22175 sed 's/^/link-fail: /' conftest.err >&6 22176 echo " " >&6 22177 22178fi 22179rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22180 conftest$ac_exeext conftest.$ac_ext 22181 fi 22182 if test "x$cross_compiling" != "xyes" && 22183 test "$tmp_compiler_works" = "yes"; then 22184 if test "$cross_compiling" = yes 22185then : 22186 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22187printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 22188as_fn_error $? "cannot run test program while cross compiling 22189See \`config.log' for more details" "$LINENO" 5; } 22190else $as_nop 22191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22192/* end confdefs.h. */ 22193 22194 22195# ifdef __STDC__ 22196# include <stdlib.h> 22197# endif 22198 22199int 22200main (void) 22201{ 22202 22203 int i = 0; 22204 exit(i); 22205 22206 ; 22207 return 0; 22208} 22209 22210_ACEOF 22211if ac_fn_c_try_run "$LINENO" 22212then : 22213 22214 tmp_compiler_works="yes" 22215 22216else $as_nop 22217 22218 tmp_compiler_works="no" 22219 echo " " >&6 22220 echo "run-fail: test program exited with status $ac_status" >&6 22221 echo " " >&6 22222 22223fi 22224rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22225 conftest.$ac_objext conftest.beam conftest.$ac_ext 22226fi 22227 22228 fi 22229 if test "$tmp_compiler_works" = "yes"; then 22230 22231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22232printf "%s\n" "yes" >&6; } 22233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5 22234printf "%s\n" "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;} 22235 22236 else 22237 22238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22239printf "%s\n" "no" >&6; } 22240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5 22241printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;} 22242 CPPFLAGS="$tmp_save_CPPFLAGS" 22243 CFLAGS="$tmp_save_CFLAGS" 22244 22245 fi 22246 22247 fi 22248 # 22249 fi 22250 22251 22252 # 22253 if test "$compiler_id" != "unknown"; then 22254 # 22255 tmp_save_CFLAGS="$CFLAGS" 22256 tmp_save_CPPFLAGS="$CPPFLAGS" 22257 # 22258 tmp_options="" 22259 tmp_CFLAGS="$CFLAGS" 22260 tmp_CPPFLAGS="$CPPFLAGS" 22261 22262 ac_var_stripped="" 22263 for word1 in $tmp_CFLAGS; do 22264 ac_var_strip_word="no" 22265 for word2 in $flags_dbg_all; do 22266 if test "$word1" = "$word2"; then 22267 ac_var_strip_word="yes" 22268 fi 22269 done 22270 if test "$ac_var_strip_word" = "no"; then 22271 ac_var_stripped="$ac_var_stripped $word1" 22272 fi 22273 done 22274 tmp_CFLAGS="$ac_var_stripped" 22275 squeeze tmp_CFLAGS 22276 22277 22278 ac_var_stripped="" 22279 for word1 in $tmp_CPPFLAGS; do 22280 ac_var_strip_word="no" 22281 for word2 in $flags_dbg_all; do 22282 if test "$word1" = "$word2"; then 22283 ac_var_strip_word="yes" 22284 fi 22285 done 22286 if test "$ac_var_strip_word" = "no"; then 22287 ac_var_stripped="$ac_var_stripped $word1" 22288 fi 22289 done 22290 tmp_CPPFLAGS="$ac_var_stripped" 22291 squeeze tmp_CPPFLAGS 22292 22293 # 22294 if test "$want_debug" = "yes"; then 22295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5 22296printf %s "checking if compiler accepts debug enabling options... " >&6; } 22297 tmp_options="$flags_dbg_yes" 22298 fi 22299 if test "$want_debug" = "no"; then 22300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5 22301printf %s "checking if compiler accepts debug disabling options... " >&6; } 22302 tmp_options="$flags_dbg_off" 22303 fi 22304 # 22305 if test "$flags_prefer_cppflags" = "yes"; then 22306 CPPFLAGS="$tmp_CPPFLAGS $tmp_options" 22307 CFLAGS="$tmp_CFLAGS" 22308 else 22309 CPPFLAGS="$tmp_CPPFLAGS" 22310 CFLAGS="$tmp_CFLAGS $tmp_options" 22311 fi 22312 squeeze CPPFLAGS 22313 squeeze CFLAGS 22314 22315 tmp_compiler_works="unknown" 22316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22317/* end confdefs.h. */ 22318 22319 22320 22321int 22322main (void) 22323{ 22324 22325 int i = 1; 22326 return i; 22327 22328 ; 22329 return 0; 22330} 22331 22332_ACEOF 22333if ac_fn_c_try_compile "$LINENO" 22334then : 22335 22336 tmp_compiler_works="yes" 22337 22338else $as_nop 22339 22340 tmp_compiler_works="no" 22341 echo " " >&6 22342 sed 's/^/cc-fail: /' conftest.err >&6 22343 echo " " >&6 22344 22345fi 22346rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22347 if test "$tmp_compiler_works" = "yes"; then 22348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22349/* end confdefs.h. */ 22350 22351 22352 22353int 22354main (void) 22355{ 22356 22357 int i = 1; 22358 return i; 22359 22360 ; 22361 return 0; 22362} 22363 22364_ACEOF 22365if ac_fn_c_try_link "$LINENO" 22366then : 22367 22368 tmp_compiler_works="yes" 22369 22370else $as_nop 22371 22372 tmp_compiler_works="no" 22373 echo " " >&6 22374 sed 's/^/link-fail: /' conftest.err >&6 22375 echo " " >&6 22376 22377fi 22378rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22379 conftest$ac_exeext conftest.$ac_ext 22380 fi 22381 if test "x$cross_compiling" != "xyes" && 22382 test "$tmp_compiler_works" = "yes"; then 22383 if test "$cross_compiling" = yes 22384then : 22385 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22386printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 22387as_fn_error $? "cannot run test program while cross compiling 22388See \`config.log' for more details" "$LINENO" 5; } 22389else $as_nop 22390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22391/* end confdefs.h. */ 22392 22393 22394# ifdef __STDC__ 22395# include <stdlib.h> 22396# endif 22397 22398int 22399main (void) 22400{ 22401 22402 int i = 0; 22403 exit(i); 22404 22405 ; 22406 return 0; 22407} 22408 22409_ACEOF 22410if ac_fn_c_try_run "$LINENO" 22411then : 22412 22413 tmp_compiler_works="yes" 22414 22415else $as_nop 22416 22417 tmp_compiler_works="no" 22418 echo " " >&6 22419 echo "run-fail: test program exited with status $ac_status" >&6 22420 echo " " >&6 22421 22422fi 22423rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22424 conftest.$ac_objext conftest.beam conftest.$ac_ext 22425fi 22426 22427 fi 22428 if test "$tmp_compiler_works" = "yes"; then 22429 22430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22431printf "%s\n" "yes" >&6; } 22432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5 22433printf "%s\n" "$as_me: compiler options added: $tmp_options" >&6;} 22434 22435 else 22436 22437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22438printf "%s\n" "no" >&6; } 22439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5 22440printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;} 22441 CPPFLAGS="$tmp_save_CPPFLAGS" 22442 CFLAGS="$tmp_save_CFLAGS" 22443 22444 fi 22445 22446 # 22447 fi 22448 22449 22450 # 22451 if test "$compiler_id" != "unknown"; then 22452 # 22453 tmp_save_CFLAGS="$CFLAGS" 22454 tmp_save_CPPFLAGS="$CPPFLAGS" 22455 # 22456 tmp_options="" 22457 tmp_CFLAGS="$CFLAGS" 22458 tmp_CPPFLAGS="$CPPFLAGS" 22459 honor_optimize_option="yes" 22460 # 22461 # 22462 if test "$want_optimize" = "assume_no" || 22463 test "$want_optimize" = "assume_yes"; then 22464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5 22465printf %s "checking if compiler optimizer assumed setting might be used... " >&6; } 22466 22467 22468 ac_var_match_word="no" 22469 for word1 in $tmp_CFLAGS; do 22470 for word2 in $flags_opt_all; do 22471 if test "$word1" = "$word2"; then 22472 ac_var_match_word="yes" 22473 fi 22474 done 22475 done 22476 22477 if test "$ac_var_match_word" = "yes"; then 22478 22479 honor_optimize_option="no" 22480 22481 22482 fi 22483 22484 22485 22486 ac_var_match_word="no" 22487 for word1 in $tmp_CPPFLAGS; do 22488 for word2 in $flags_opt_all; do 22489 if test "$word1" = "$word2"; then 22490 ac_var_match_word="yes" 22491 fi 22492 done 22493 done 22494 22495 if test "$ac_var_match_word" = "yes"; then 22496 22497 honor_optimize_option="no" 22498 22499 22500 fi 22501 22502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5 22503printf "%s\n" "$honor_optimize_option" >&6; } 22504 if test "$honor_optimize_option" = "yes"; then 22505 if test "$want_optimize" = "assume_yes"; then 22506 want_optimize="yes" 22507 fi 22508 if test "$want_optimize" = "assume_no"; then 22509 want_optimize="no" 22510 fi 22511 fi 22512 fi 22513 # 22514 if test "$honor_optimize_option" = "yes"; then 22515 22516 ac_var_stripped="" 22517 for word1 in $tmp_CFLAGS; do 22518 ac_var_strip_word="no" 22519 for word2 in $flags_opt_all; do 22520 if test "$word1" = "$word2"; then 22521 ac_var_strip_word="yes" 22522 fi 22523 done 22524 if test "$ac_var_strip_word" = "no"; then 22525 ac_var_stripped="$ac_var_stripped $word1" 22526 fi 22527 done 22528 tmp_CFLAGS="$ac_var_stripped" 22529 squeeze tmp_CFLAGS 22530 22531 22532 ac_var_stripped="" 22533 for word1 in $tmp_CPPFLAGS; do 22534 ac_var_strip_word="no" 22535 for word2 in $flags_opt_all; do 22536 if test "$word1" = "$word2"; then 22537 ac_var_strip_word="yes" 22538 fi 22539 done 22540 if test "$ac_var_strip_word" = "no"; then 22541 ac_var_stripped="$ac_var_stripped $word1" 22542 fi 22543 done 22544 tmp_CPPFLAGS="$ac_var_stripped" 22545 squeeze tmp_CPPFLAGS 22546 22547 if test "$want_optimize" = "yes"; then 22548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5 22549printf %s "checking if compiler accepts optimizer enabling options... " >&6; } 22550 tmp_options="$flags_opt_yes" 22551 fi 22552 if test "$want_optimize" = "no"; then 22553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5 22554printf %s "checking if compiler accepts optimizer disabling options... " >&6; } 22555 tmp_options="$flags_opt_off" 22556 fi 22557 if test "$flags_prefer_cppflags" = "yes"; then 22558 CPPFLAGS="$tmp_CPPFLAGS $tmp_options" 22559 CFLAGS="$tmp_CFLAGS" 22560 else 22561 CPPFLAGS="$tmp_CPPFLAGS" 22562 CFLAGS="$tmp_CFLAGS $tmp_options" 22563 fi 22564 squeeze CPPFLAGS 22565 squeeze CFLAGS 22566 22567 tmp_compiler_works="unknown" 22568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22569/* end confdefs.h. */ 22570 22571 22572 22573int 22574main (void) 22575{ 22576 22577 int i = 1; 22578 return i; 22579 22580 ; 22581 return 0; 22582} 22583 22584_ACEOF 22585if ac_fn_c_try_compile "$LINENO" 22586then : 22587 22588 tmp_compiler_works="yes" 22589 22590else $as_nop 22591 22592 tmp_compiler_works="no" 22593 echo " " >&6 22594 sed 's/^/cc-fail: /' conftest.err >&6 22595 echo " " >&6 22596 22597fi 22598rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22599 if test "$tmp_compiler_works" = "yes"; then 22600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22601/* end confdefs.h. */ 22602 22603 22604 22605int 22606main (void) 22607{ 22608 22609 int i = 1; 22610 return i; 22611 22612 ; 22613 return 0; 22614} 22615 22616_ACEOF 22617if ac_fn_c_try_link "$LINENO" 22618then : 22619 22620 tmp_compiler_works="yes" 22621 22622else $as_nop 22623 22624 tmp_compiler_works="no" 22625 echo " " >&6 22626 sed 's/^/link-fail: /' conftest.err >&6 22627 echo " " >&6 22628 22629fi 22630rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22631 conftest$ac_exeext conftest.$ac_ext 22632 fi 22633 if test "x$cross_compiling" != "xyes" && 22634 test "$tmp_compiler_works" = "yes"; then 22635 if test "$cross_compiling" = yes 22636then : 22637 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22638printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 22639as_fn_error $? "cannot run test program while cross compiling 22640See \`config.log' for more details" "$LINENO" 5; } 22641else $as_nop 22642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22643/* end confdefs.h. */ 22644 22645 22646# ifdef __STDC__ 22647# include <stdlib.h> 22648# endif 22649 22650int 22651main (void) 22652{ 22653 22654 int i = 0; 22655 exit(i); 22656 22657 ; 22658 return 0; 22659} 22660 22661_ACEOF 22662if ac_fn_c_try_run "$LINENO" 22663then : 22664 22665 tmp_compiler_works="yes" 22666 22667else $as_nop 22668 22669 tmp_compiler_works="no" 22670 echo " " >&6 22671 echo "run-fail: test program exited with status $ac_status" >&6 22672 echo " " >&6 22673 22674fi 22675rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22676 conftest.$ac_objext conftest.beam conftest.$ac_ext 22677fi 22678 22679 fi 22680 if test "$tmp_compiler_works" = "yes"; then 22681 22682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22683printf "%s\n" "yes" >&6; } 22684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5 22685printf "%s\n" "$as_me: compiler options added: $tmp_options" >&6;} 22686 22687 else 22688 22689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22690printf "%s\n" "no" >&6; } 22691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5 22692printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;} 22693 CPPFLAGS="$tmp_save_CPPFLAGS" 22694 CFLAGS="$tmp_save_CFLAGS" 22695 22696 fi 22697 22698 fi 22699 # 22700 fi 22701 22702 22703 # 22704 if test "$compiler_id" != "unknown"; then 22705 # 22706 tmp_save_CPPFLAGS="$CPPFLAGS" 22707 tmp_save_CFLAGS="$CFLAGS" 22708 tmp_CPPFLAGS="" 22709 tmp_CFLAGS="" 22710 # 22711 case "$compiler_id" in 22712 # 22713 CLANG) 22714 # 22715 if test "$want_warnings" = "yes"; then 22716 tmp_CFLAGS="$tmp_CFLAGS -pedantic" 22717 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra" 22718 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings" 22719 tmp_CFLAGS="$tmp_CFLAGS -Wshadow" 22720 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs" 22721 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations" 22722 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes" 22723 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long" 22724 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal" 22725 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare" 22726 tmp_CFLAGS="$tmp_CFLAGS -Wundef" 22727 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral" 22728 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes" 22729 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement" 22730 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align" 22731 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers" 22732 tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32" 22733 # 22734 if test "$compiler_num" -ge "101"; then 22735 tmp_CFLAGS="$tmp_CFLAGS -Wunused" 22736 fi 22737 fi 22738 ;; 22739 # 22740 DEC_C) 22741 # 22742 if test "$want_warnings" = "yes"; then 22743 tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3" 22744 fi 22745 ;; 22746 # 22747 GNU_C) 22748 # 22749 if test "$want_warnings" = "yes"; then 22750 # 22751 if test "x$cross_compiling" != "xyes" || 22752 test "$compiler_num" -ge "300"; then 22753 tmp_CFLAGS="$tmp_CFLAGS -pedantic" 22754 fi 22755 # 22756 tmp_CFLAGS="$tmp_CFLAGS -Wall -W" 22757 # 22758 if test "$compiler_num" -ge "104"; then 22759 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings" 22760 if test "x$cross_compiling" != "xyes" || 22761 test "$compiler_num" -ge "300"; then 22762 tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow" 22763 fi 22764 fi 22765 # 22766 if test "$compiler_num" -ge "207"; then 22767 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs" 22768 if test "x$cross_compiling" != "xyes" || 22769 test "$compiler_num" -ge "300"; then 22770 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations" 22771 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes" 22772 fi 22773 fi 22774 # 22775 if test "$compiler_num" -ge "295"; then 22776 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long" 22777 fi 22778 # 22779 if test "$compiler_num" -ge "296"; then 22780 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal" 22781 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare" 22782 tmp_CFLAGS="$tmp_CFLAGS -Wundef" 22783 fi 22784 # 22785 if test "$compiler_num" -ge "297"; then 22786 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral" 22787 fi 22788 # 22789 if test "$compiler_num" -ge "300"; then 22790 tmp_CFLAGS="$tmp_CFLAGS" 22791 fi 22792 # 22793 if test "$compiler_num" -ge "303"; then 22794 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes" 22795 fi 22796 # 22797 if test "$compiler_num" -ge "304"; then 22798 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement" 22799 fi 22800 # 22801 if test "$compiler_num" -ge "400"; then 22802 tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3" 22803 fi 22804 # 22805 if test "$compiler_num" -ge "402"; then 22806 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align" 22807 fi 22808 # 22809 if test "$compiler_num" -ge "403"; then 22810 tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration" 22811 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body" 22812 tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers" 22813 tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla" 22814 fi 22815 # 22816 if test "$compiler_num" -ge "405"; then 22817 if test "$curl_cv_have_def__WIN32" = "yes"; then 22818 tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format" 22819 fi 22820 fi 22821 # 22822 fi 22823 # 22824 if test "$compiler_num" -ge "300"; then 22825 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers" 22826 else 22827 if test "x$cross_compiling" = "xyes"; then 22828 if test "$compiler_num" -ge "104"; then 22829 tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow" 22830 fi 22831 if test "$compiler_num" -ge "207"; then 22832 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations" 22833 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes" 22834 fi 22835 fi 22836 fi 22837 ;; 22838 # 22839 HP_UX_C) 22840 # 22841 if test "$want_warnings" = "yes"; then 22842 tmp_CFLAGS="$tmp_CFLAGS +w1" 22843 fi 22844 ;; 22845 # 22846 IBM_C) 22847 # 22848 tmp_CFLAGS="$tmp_CFLAGS" 22849 ;; 22850 # 22851 INTEL_UNIX_C) 22852 # 22853 if test "$want_warnings" = "yes"; then 22854 if test "$compiler_num" -gt "600"; then 22855 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2" 22856 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck" 22857 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment" 22858 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated" 22859 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes" 22860 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64" 22861 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith" 22862 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type" 22863 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow" 22864 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized" 22865 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function" 22866 fi 22867 fi 22868 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer" 22869 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing" 22870 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise" 22871 if test "$compiler_num" -ge "1000"; then 22872 tmp_CFLAGS="$tmp_CFLAGS -vec-report0" 22873 fi 22874 ;; 22875 # 22876 INTEL_WINDOWS_C) 22877 # 22878 tmp_CFLAGS="$tmp_CFLAGS" 22879 ;; 22880 # 22881 LCC) 22882 # 22883 if test "$want_warnings" = "yes"; then 22884 tmp_CFLAGS="$tmp_CFLAGS" 22885 fi 22886 ;; 22887 # 22888 SGI_MIPS_C) 22889 # 22890 if test "$want_warnings" = "yes"; then 22891 tmp_CFLAGS="$tmp_CFLAGS -fullwarn" 22892 fi 22893 ;; 22894 # 22895 SGI_MIPSPRO_C) 22896 # 22897 if test "$want_warnings" = "yes"; then 22898 tmp_CFLAGS="$tmp_CFLAGS -fullwarn" 22899 tmp_CFLAGS="$tmp_CFLAGS -woff 1209" 22900 fi 22901 ;; 22902 # 22903 SUNPRO_C) 22904 # 22905 if test "$want_warnings" = "yes"; then 22906 tmp_CFLAGS="$tmp_CFLAGS -v" 22907 fi 22908 ;; 22909 # 22910 TINY_C) 22911 # 22912 if test "$want_warnings" = "yes"; then 22913 tmp_CFLAGS="$tmp_CFLAGS -Wall" 22914 tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings" 22915 tmp_CFLAGS="$tmp_CFLAGS -Wunsupported" 22916 fi 22917 ;; 22918 # 22919 WATCOM_UNIX_C) 22920 # 22921 if test "$want_warnings" = "yes"; then 22922 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra" 22923 fi 22924 ;; 22925 # 22926 WATCOM_WINDOWS_C) 22927 # 22928 tmp_CFLAGS="$tmp_CFLAGS" 22929 ;; 22930 # 22931 esac 22932 # 22933 squeeze tmp_CPPFLAGS 22934 squeeze tmp_CFLAGS 22935 # 22936 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then 22937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5 22938printf %s "checking if compiler accepts strict warning options... " >&6; } 22939 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS" 22940 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS" 22941 squeeze CPPFLAGS 22942 squeeze CFLAGS 22943 22944 tmp_compiler_works="unknown" 22945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22946/* end confdefs.h. */ 22947 22948 22949 22950int 22951main (void) 22952{ 22953 22954 int i = 1; 22955 return i; 22956 22957 ; 22958 return 0; 22959} 22960 22961_ACEOF 22962if ac_fn_c_try_compile "$LINENO" 22963then : 22964 22965 tmp_compiler_works="yes" 22966 22967else $as_nop 22968 22969 tmp_compiler_works="no" 22970 echo " " >&6 22971 sed 's/^/cc-fail: /' conftest.err >&6 22972 echo " " >&6 22973 22974fi 22975rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22976 if test "$tmp_compiler_works" = "yes"; then 22977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22978/* end confdefs.h. */ 22979 22980 22981 22982int 22983main (void) 22984{ 22985 22986 int i = 1; 22987 return i; 22988 22989 ; 22990 return 0; 22991} 22992 22993_ACEOF 22994if ac_fn_c_try_link "$LINENO" 22995then : 22996 22997 tmp_compiler_works="yes" 22998 22999else $as_nop 23000 23001 tmp_compiler_works="no" 23002 echo " " >&6 23003 sed 's/^/link-fail: /' conftest.err >&6 23004 echo " " >&6 23005 23006fi 23007rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23008 conftest$ac_exeext conftest.$ac_ext 23009 fi 23010 if test "x$cross_compiling" != "xyes" && 23011 test "$tmp_compiler_works" = "yes"; then 23012 if test "$cross_compiling" = yes 23013then : 23014 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23015printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 23016as_fn_error $? "cannot run test program while cross compiling 23017See \`config.log' for more details" "$LINENO" 5; } 23018else $as_nop 23019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23020/* end confdefs.h. */ 23021 23022 23023# ifdef __STDC__ 23024# include <stdlib.h> 23025# endif 23026 23027int 23028main (void) 23029{ 23030 23031 int i = 0; 23032 exit(i); 23033 23034 ; 23035 return 0; 23036} 23037 23038_ACEOF 23039if ac_fn_c_try_run "$LINENO" 23040then : 23041 23042 tmp_compiler_works="yes" 23043 23044else $as_nop 23045 23046 tmp_compiler_works="no" 23047 echo " " >&6 23048 echo "run-fail: test program exited with status $ac_status" >&6 23049 echo " " >&6 23050 23051fi 23052rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23053 conftest.$ac_objext conftest.beam conftest.$ac_ext 23054fi 23055 23056 fi 23057 if test "$tmp_compiler_works" = "yes"; then 23058 23059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23060printf "%s\n" "yes" >&6; } 23061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5 23062printf "%s\n" "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;} 23063 23064 else 23065 23066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23067printf "%s\n" "no" >&6; } 23068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5 23069printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;} 23070 CPPFLAGS="$tmp_save_CPPFLAGS" 23071 CFLAGS="$tmp_save_CFLAGS" 23072 23073 fi 23074 23075 fi 23076 # 23077 fi 23078 23079 23080if test "$compiler_id" = "INTEL_UNIX_C"; then 23081 # 23082 if test "$compiler_num" -ge "1000"; then 23083 CFLAGS="$CFLAGS -shared-intel" 23084 elif test "$compiler_num" -ge "900"; then 23085 CFLAGS="$CFLAGS -i-dynamic" 23086 fi 23087 # 23088fi 23089 23090 23091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5 23092printf %s "checking if compiler halts on compilation errors... " >&6; } 23093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23094/* end confdefs.h. */ 23095 23096 23097 23098int 23099main (void) 23100{ 23101 23102 force compilation error 23103 23104 ; 23105 return 0; 23106} 23107 23108_ACEOF 23109if ac_fn_c_try_compile "$LINENO" 23110then : 23111 23112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23113printf "%s\n" "no" >&6; } 23114 as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5 23115 23116else $as_nop 23117 23118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23119printf "%s\n" "yes" >&6; } 23120 23121fi 23122rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23123 23124 23125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5 23126printf %s "checking if compiler halts on negative sized arrays... " >&6; } 23127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23128/* end confdefs.h. */ 23129 23130 23131 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ]; 23132 23133int 23134main (void) 23135{ 23136 23137 bad_t dummy; 23138 23139 ; 23140 return 0; 23141} 23142 23143_ACEOF 23144if ac_fn_c_try_compile "$LINENO" 23145then : 23146 23147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23148printf "%s\n" "no" >&6; } 23149 as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5 23150 23151else $as_nop 23152 23153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23154printf "%s\n" "yes" >&6; } 23155 23156fi 23157rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23158 23159 23160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5 23161printf %s "checking if compiler halts on function prototype mismatch... " >&6; } 23162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23163/* end confdefs.h. */ 23164 23165 23166# include <stdlib.h> 23167 int rand(int n); 23168 int rand(int n) 23169 { 23170 if(n) 23171 return ++n; 23172 else 23173 return n; 23174 } 23175 23176int 23177main (void) 23178{ 23179 23180 int i[2]; 23181 int j = rand(i[0]); 23182 if(j) 23183 return j; 23184 23185 ; 23186 return 0; 23187} 23188 23189_ACEOF 23190if ac_fn_c_try_compile "$LINENO" 23191then : 23192 23193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23194printf "%s\n" "no" >&6; } 23195 as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5 23196 23197else $as_nop 23198 23199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23200printf "%s\n" "yes" >&6; } 23201 23202fi 23203rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23204 23205 23206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5 23207printf %s "checking if compiler supports hiding library internal symbols... " >&6; } 23208 supports_symbol_hiding="no" 23209 symbol_hiding_CFLAGS="" 23210 symbol_hiding_EXTERN="" 23211 tmp_CFLAGS="" 23212 tmp_EXTERN="" 23213 case "$compiler_id" in 23214 CLANG) 23215 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))" 23216 tmp_CFLAGS="-fvisibility=hidden" 23217 supports_symbol_hiding="yes" 23218 ;; 23219 GNU_C) 23220 if test "$compiler_num" -ge "304"; then 23221 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then 23222 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))" 23223 tmp_CFLAGS="-fvisibility=hidden" 23224 supports_symbol_hiding="yes" 23225 fi 23226 fi 23227 ;; 23228 INTEL_UNIX_C) 23229 if test "$compiler_num" -ge "900"; then 23230 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then 23231 tmp_save_CFLAGS="$CFLAGS" 23232 CFLAGS="$CFLAGS -fvisibility=hidden" 23233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23234/* end confdefs.h. */ 23235 23236 23237# include <stdio.h> 23238 23239int 23240main (void) 23241{ 23242 23243 printf("icc fvisibility bug test"); 23244 23245 ; 23246 return 0; 23247} 23248 23249_ACEOF 23250if ac_fn_c_try_link "$LINENO" 23251then : 23252 23253 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))" 23254 tmp_CFLAGS="-fvisibility=hidden" 23255 supports_symbol_hiding="yes" 23256 23257fi 23258rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23259 conftest$ac_exeext conftest.$ac_ext 23260 CFLAGS="$tmp_save_CFLAGS" 23261 fi 23262 fi 23263 ;; 23264 SUNPRO_C) 23265 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then 23266 tmp_EXTERN="__global" 23267 tmp_CFLAGS="-xldscope=hidden" 23268 supports_symbol_hiding="yes" 23269 fi 23270 ;; 23271 esac 23272 if test "$supports_symbol_hiding" = "yes"; then 23273 tmp_save_CFLAGS="$CFLAGS" 23274 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS" 23275 squeeze CFLAGS 23276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23277/* end confdefs.h. */ 23278 23279 23280 $tmp_EXTERN char *dummy(char *buff); 23281 char *dummy(char *buff) 23282 { 23283 if(buff) 23284 return ++buff; 23285 else 23286 return buff; 23287 } 23288 23289int 23290main (void) 23291{ 23292 23293 char b[16]; 23294 char *r = dummy(&b[0]); 23295 if(r) 23296 return (int)*r; 23297 23298 ; 23299 return 0; 23300} 23301 23302_ACEOF 23303if ac_fn_c_try_compile "$LINENO" 23304then : 23305 23306 supports_symbol_hiding="yes" 23307 if test -f conftest.err; then 23308 grep 'visibility' conftest.err >/dev/null 23309 if test "$?" -eq "0"; then 23310 supports_symbol_hiding="no" 23311 fi 23312 fi 23313 23314else $as_nop 23315 23316 supports_symbol_hiding="no" 23317 echo " " >&6 23318 sed 's/^/cc-src: /' conftest.$ac_ext >&6 23319 sed 's/^/cc-err: /' conftest.err >&6 23320 echo " " >&6 23321 23322fi 23323rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23324 CFLAGS="$tmp_save_CFLAGS" 23325 fi 23326 if test "$supports_symbol_hiding" = "yes"; then 23327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23328printf "%s\n" "yes" >&6; } 23329 symbol_hiding_CFLAGS="$tmp_CFLAGS" 23330 symbol_hiding_EXTERN="$tmp_EXTERN" 23331 else 23332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23333printf "%s\n" "no" >&6; } 23334 fi 23335 23336 23337 23338 23339 23340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5 23341printf %s "checking for windows.h... " >&6; } 23342if test ${ac_cv_header_windows_h+y} 23343then : 23344 printf %s "(cached) " >&6 23345else $as_nop 23346 23347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23348/* end confdefs.h. */ 23349 23350 23351#undef inline 23352#ifndef WIN32_LEAN_AND_MEAN 23353#define WIN32_LEAN_AND_MEAN 23354#endif 23355#include <windows.h> 23356 23357int 23358main (void) 23359{ 23360 23361#if defined(__CYGWIN__) || defined(__CEGCC__) 23362 HAVE_WINDOWS_H shall not be defined. 23363#else 23364 int dummy=2*WINVER; 23365#endif 23366 23367 ; 23368 return 0; 23369} 23370 23371_ACEOF 23372if ac_fn_c_try_compile "$LINENO" 23373then : 23374 23375 ac_cv_header_windows_h="yes" 23376 23377else $as_nop 23378 23379 ac_cv_header_windows_h="no" 23380 23381fi 23382rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23383 23384fi 23385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5 23386printf "%s\n" "$ac_cv_header_windows_h" >&6; } 23387 case "$ac_cv_header_windows_h" in 23388 yes) 23389 23390printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h 23391 23392 23393printf "%s\n" "#define WIN32_LEAN_AND_MEAN 1" >>confdefs.h 23394 23395 ;; 23396 esac 23397 23398 23399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5 23400printf %s "checking whether build target is a native Windows one... " >&6; } 23401if test ${ac_cv_native_windows+y} 23402then : 23403 printf %s "(cached) " >&6 23404else $as_nop 23405 23406 if test "$ac_cv_header_windows_h" = "no"; then 23407 ac_cv_native_windows="no" 23408 else 23409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23410/* end confdefs.h. */ 23411 23412 23413 23414int 23415main (void) 23416{ 23417 23418#if defined(__MINGW32__) || defined(__MINGW32CE__) || \ 23419 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))) 23420 int dummy=1; 23421#else 23422 Not a native Windows build target. 23423#endif 23424 23425 ; 23426 return 0; 23427} 23428 23429_ACEOF 23430if ac_fn_c_try_compile "$LINENO" 23431then : 23432 23433 ac_cv_native_windows="yes" 23434 23435else $as_nop 23436 23437 ac_cv_native_windows="no" 23438 23439fi 23440rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23441 fi 23442 23443fi 23444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_native_windows" >&5 23445printf "%s\n" "$ac_cv_native_windows" >&6; } 23446 if test "x$ac_cv_native_windows" = xyes; then 23447 DOING_NATIVE_WINDOWS_TRUE= 23448 DOING_NATIVE_WINDOWS_FALSE='#' 23449else 23450 DOING_NATIVE_WINDOWS_TRUE='#' 23451 DOING_NATIVE_WINDOWS_FALSE= 23452fi 23453 23454 23455case X-"$ac_cv_native_windows" in 23456 X-yes) 23457 23458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5 23459printf %s "checking for winsock.h... " >&6; } 23460if test ${ac_cv_header_winsock_h+y} 23461then : 23462 printf %s "(cached) " >&6 23463else $as_nop 23464 23465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23466/* end confdefs.h. */ 23467 23468 23469#undef inline 23470#ifndef WIN32_LEAN_AND_MEAN 23471#define WIN32_LEAN_AND_MEAN 23472#endif 23473#include <windows.h> 23474#include <winsock.h> 23475 23476int 23477main (void) 23478{ 23479 23480#if defined(__CYGWIN__) || defined(__CEGCC__) 23481 HAVE_WINSOCK_H shall not be defined. 23482#else 23483 int dummy=WSACleanup(); 23484#endif 23485 23486 ; 23487 return 0; 23488} 23489 23490_ACEOF 23491if ac_fn_c_try_compile "$LINENO" 23492then : 23493 23494 ac_cv_header_winsock_h="yes" 23495 23496else $as_nop 23497 23498 ac_cv_header_winsock_h="no" 23499 23500fi 23501rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23502 23503fi 23504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5 23505printf "%s\n" "$ac_cv_header_winsock_h" >&6; } 23506 case "$ac_cv_header_winsock_h" in 23507 yes) 23508 23509printf "%s\n" "#define HAVE_WINSOCK_H 1" >>confdefs.h 23510 23511 ;; 23512 esac 23513 23514 23515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5 23516printf %s "checking for winsock2.h... " >&6; } 23517if test ${ac_cv_header_winsock2_h+y} 23518then : 23519 printf %s "(cached) " >&6 23520else $as_nop 23521 23522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23523/* end confdefs.h. */ 23524 23525 23526#undef inline 23527#ifndef WIN32_LEAN_AND_MEAN 23528#define WIN32_LEAN_AND_MEAN 23529#endif 23530#include <windows.h> 23531#include <winsock2.h> 23532 23533int 23534main (void) 23535{ 23536 23537#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__) 23538 HAVE_WINSOCK2_H shall not be defined. 23539#else 23540 int dummy=2*IPPROTO_ESP; 23541#endif 23542 23543 ; 23544 return 0; 23545} 23546 23547_ACEOF 23548if ac_fn_c_try_compile "$LINENO" 23549then : 23550 23551 ac_cv_header_winsock2_h="yes" 23552 23553else $as_nop 23554 23555 ac_cv_header_winsock2_h="no" 23556 23557fi 23558rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23559 23560fi 23561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5 23562printf "%s\n" "$ac_cv_header_winsock2_h" >&6; } 23563 case "$ac_cv_header_winsock2_h" in 23564 yes) 23565 23566printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h 23567 23568 ;; 23569 esac 23570 23571 23572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5 23573printf %s "checking for ws2tcpip.h... " >&6; } 23574if test ${ac_cv_header_ws2tcpip_h+y} 23575then : 23576 printf %s "(cached) " >&6 23577else $as_nop 23578 23579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23580/* end confdefs.h. */ 23581 23582 23583#undef inline 23584#ifndef WIN32_LEAN_AND_MEAN 23585#define WIN32_LEAN_AND_MEAN 23586#endif 23587#include <windows.h> 23588#include <winsock2.h> 23589#include <ws2tcpip.h> 23590 23591int 23592main (void) 23593{ 23594 23595#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__) 23596 HAVE_WS2TCPIP_H shall not be defined. 23597#else 23598 int dummy=2*IP_PKTINFO; 23599#endif 23600 23601 ; 23602 return 0; 23603} 23604 23605_ACEOF 23606if ac_fn_c_try_compile "$LINENO" 23607then : 23608 23609 ac_cv_header_ws2tcpip_h="yes" 23610 23611else $as_nop 23612 23613 ac_cv_header_ws2tcpip_h="no" 23614 23615fi 23616rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23617 23618fi 23619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5 23620printf "%s\n" "$ac_cv_header_ws2tcpip_h" >&6; } 23621 case "$ac_cv_header_ws2tcpip_h" in 23622 yes) 23623 23624printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h 23625 23626 ;; 23627 esac 23628 23629 CPPFLAGS="$CPPFLAGS -D_WIN32_WINNT=0x0600" 23630 ;; 23631 *) 23632 ac_cv_header_winsock_h="no" 23633 ac_cv_header_winsock2_h="no" 23634 ac_cv_header_ws2tcpip_h="no" 23635 ;; 23636esac 23637 23638 23639 23640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5 23641printf %s "checking if X/Open network library is required... " >&6; } 23642 tst_lib_xnet_required="no" 23643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23644/* end confdefs.h. */ 23645 23646 23647int main (void) 23648{ 23649#if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600) 23650 return 0; 23651#elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED) 23652 return 0; 23653#else 23654 force compilation error 23655#endif 23656} 23657 23658 23659_ACEOF 23660if ac_fn_c_try_compile "$LINENO" 23661then : 23662 23663 tst_lib_xnet_required="yes" 23664 LIBS="$LIBS -lxnet" 23665 23666fi 23667rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5 23669printf "%s\n" "$tst_lib_xnet_required" >&6; } 23670 23671 23672ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 23673if test "x$ac_cv_func_gethostbyname" = xyes 23674then : 23675 HAVE_GETHOSTBYNAME="1" 23676 23677else $as_nop 23678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 23679printf %s "checking for gethostbyname in -lnsl... " >&6; } 23680if test ${ac_cv_lib_nsl_gethostbyname+y} 23681then : 23682 printf %s "(cached) " >&6 23683else $as_nop 23684 ac_check_lib_save_LIBS=$LIBS 23685LIBS="-lnsl $LIBS" 23686cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23687/* end confdefs.h. */ 23688 23689/* Override any GCC internal prototype to avoid an error. 23690 Use char because int might match the return type of a GCC 23691 builtin and then its argument prototype would still apply. */ 23692char gethostbyname (); 23693int 23694main (void) 23695{ 23696return gethostbyname (); 23697 ; 23698 return 0; 23699} 23700_ACEOF 23701if ac_fn_c_try_link "$LINENO" 23702then : 23703 ac_cv_lib_nsl_gethostbyname=yes 23704else $as_nop 23705 ac_cv_lib_nsl_gethostbyname=no 23706fi 23707rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23708 conftest$ac_exeext conftest.$ac_ext 23709LIBS=$ac_check_lib_save_LIBS 23710fi 23711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 23712printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; } 23713if test "x$ac_cv_lib_nsl_gethostbyname" = xyes 23714then : 23715 HAVE_GETHOSTBYNAME="1" 23716 LIBS="$LIBS -lnsl" 23717 23718fi 23719 23720 23721fi 23722 23723 23724if test "$HAVE_GETHOSTBYNAME" != "1" 23725then 23726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5 23727printf %s "checking for gethostbyname in -lsocket... " >&6; } 23728if test ${ac_cv_lib_socket_gethostbyname+y} 23729then : 23730 printf %s "(cached) " >&6 23731else $as_nop 23732 ac_check_lib_save_LIBS=$LIBS 23733LIBS="-lsocket $LIBS" 23734cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23735/* end confdefs.h. */ 23736 23737/* Override any GCC internal prototype to avoid an error. 23738 Use char because int might match the return type of a GCC 23739 builtin and then its argument prototype would still apply. */ 23740char gethostbyname (); 23741int 23742main (void) 23743{ 23744return gethostbyname (); 23745 ; 23746 return 0; 23747} 23748_ACEOF 23749if ac_fn_c_try_link "$LINENO" 23750then : 23751 ac_cv_lib_socket_gethostbyname=yes 23752else $as_nop 23753 ac_cv_lib_socket_gethostbyname=no 23754fi 23755rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23756 conftest$ac_exeext conftest.$ac_ext 23757LIBS=$ac_check_lib_save_LIBS 23758fi 23759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5 23760printf "%s\n" "$ac_cv_lib_socket_gethostbyname" >&6; } 23761if test "x$ac_cv_lib_socket_gethostbyname" = xyes 23762then : 23763 HAVE_GETHOSTBYNAME="1" 23764 LIBS="$LIBS -lsocket" 23765 23766fi 23767 23768fi 23769 23770if test "$HAVE_GETHOSTBYNAME" != "1" 23771then 23772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5 23773printf %s "checking for gethostbyname with both nsl and socket libs... " >&6; } 23774 my_ac_save_LIBS=$LIBS 23775 LIBS="-lnsl -lsocket $LIBS" 23776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23777/* end confdefs.h. */ 23778 23779 23780 23781int 23782main (void) 23783{ 23784 23785 gethostbyname(); 23786 23787 ; 23788 return 0; 23789} 23790 23791_ACEOF 23792if ac_fn_c_try_link "$LINENO" 23793then : 23794 23795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23796printf "%s\n" "yes" >&6; } 23797 HAVE_GETHOSTBYNAME="1" 23798 23799else $as_nop 23800 23801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23802printf "%s\n" "no" >&6; } 23803 LIBS=$my_ac_save_LIBS 23804 23805fi 23806rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23807 conftest$ac_exeext conftest.$ac_ext 23808fi 23809 23810if test "$HAVE_GETHOSTBYNAME" != "1" 23811then 23812 if test "$ac_cv_header_windows_h" = "yes"; then 23813 if test "$ac_cv_header_winsock_h" = "yes"; then 23814 case $host in 23815 *-*-mingw32ce*) 23816 winsock_LIB="-lwinsock" 23817 ;; 23818 *) 23819 winsock_LIB="-lwsock32" 23820 ;; 23821 esac 23822 fi 23823 if test "$ac_cv_header_winsock2_h" = "yes"; then 23824 winsock_LIB="-lws2_32" 23825 fi 23826 if test ! -z "$winsock_LIB"; then 23827 my_ac_save_LIBS=$LIBS 23828 LIBS="$winsock_LIB $LIBS" 23829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5 23830printf %s "checking for gethostbyname in $winsock_LIB... " >&6; } 23831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23832/* end confdefs.h. */ 23833 23834 23835#ifdef HAVE_WINDOWS_H 23836#ifndef WIN32_LEAN_AND_MEAN 23837#define WIN32_LEAN_AND_MEAN 23838#endif 23839#include <windows.h> 23840#ifdef HAVE_WINSOCK2_H 23841#include <winsock2.h> 23842#else 23843#ifdef HAVE_WINSOCK_H 23844#include <winsock.h> 23845#endif 23846#endif 23847#endif 23848 23849int 23850main (void) 23851{ 23852 23853 gethostbyname("www.dummysite.com"); 23854 23855 ; 23856 return 0; 23857} 23858 23859_ACEOF 23860if ac_fn_c_try_link "$LINENO" 23861then : 23862 23863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23864printf "%s\n" "yes" >&6; } 23865 HAVE_GETHOSTBYNAME="1" 23866 23867else $as_nop 23868 23869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23870printf "%s\n" "no" >&6; } 23871 winsock_LIB="" 23872 LIBS=$my_ac_save_LIBS 23873 23874fi 23875rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23876 conftest$ac_exeext conftest.$ac_ext 23877 fi 23878 fi 23879fi 23880 23881if test "$HAVE_GETHOSTBYNAME" != "1" 23882then 23883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5 23884printf %s "checking for gethostbyname for Minix 3... " >&6; } 23885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23886/* end confdefs.h. */ 23887 23888 23889/* Older Minix versions may need <net/gen/netdb.h> here instead */ 23890#include <netdb.h> 23891 23892int 23893main (void) 23894{ 23895 23896 gethostbyname("www.dummysite.com"); 23897 23898 ; 23899 return 0; 23900} 23901 23902_ACEOF 23903if ac_fn_c_try_link "$LINENO" 23904then : 23905 23906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23907printf "%s\n" "yes" >&6; } 23908 HAVE_GETHOSTBYNAME="1" 23909 23910else $as_nop 23911 23912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23913printf "%s\n" "no" >&6; } 23914 23915fi 23916rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23917 conftest$ac_exeext conftest.$ac_ext 23918fi 23919 23920if test "$HAVE_GETHOSTBYNAME" != "1" 23921then 23922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5 23923printf %s "checking for gethostbyname for eCos... " >&6; } 23924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23925/* end confdefs.h. */ 23926 23927 23928#include <stdio.h> 23929#include <netdb.h> 23930 23931int 23932main (void) 23933{ 23934 23935 gethostbyname("www.dummysite.com"); 23936 23937 ; 23938 return 0; 23939} 23940 23941_ACEOF 23942if ac_fn_c_try_link "$LINENO" 23943then : 23944 23945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23946printf "%s\n" "yes" >&6; } 23947 HAVE_GETHOSTBYNAME="1" 23948 23949else $as_nop 23950 23951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23952printf "%s\n" "no" >&6; } 23953 23954fi 23955rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23956 conftest$ac_exeext conftest.$ac_ext 23957fi 23958 23959if test "$HAVE_GETHOSTBYNAME" != "1" 23960then 23961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5 23962printf %s "checking for gethostbyname in -lnet... " >&6; } 23963if test ${ac_cv_lib_net_gethostbyname+y} 23964then : 23965 printf %s "(cached) " >&6 23966else $as_nop 23967 ac_check_lib_save_LIBS=$LIBS 23968LIBS="-lnet $LIBS" 23969cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23970/* end confdefs.h. */ 23971 23972/* Override any GCC internal prototype to avoid an error. 23973 Use char because int might match the return type of a GCC 23974 builtin and then its argument prototype would still apply. */ 23975char gethostbyname (); 23976int 23977main (void) 23978{ 23979return gethostbyname (); 23980 ; 23981 return 0; 23982} 23983_ACEOF 23984if ac_fn_c_try_link "$LINENO" 23985then : 23986 ac_cv_lib_net_gethostbyname=yes 23987else $as_nop 23988 ac_cv_lib_net_gethostbyname=no 23989fi 23990rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23991 conftest$ac_exeext conftest.$ac_ext 23992LIBS=$ac_check_lib_save_LIBS 23993fi 23994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5 23995printf "%s\n" "$ac_cv_lib_net_gethostbyname" >&6; } 23996if test "x$ac_cv_lib_net_gethostbyname" = xyes 23997then : 23998 HAVE_GETHOSTBYNAME="1" 23999 LIBS="$LIBS -lnet" 24000 24001fi 24002 24003fi 24004 24005 24006if test "$HAVE_GETHOSTBYNAME" != "1"; then 24007 as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5 24008fi 24009 24010if test "x$host_vendor" = "xapple" 24011then : 24012 24013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_servicename" >&5 24014printf %s "checking for library containing res_servicename... " >&6; } 24015if test ${ac_cv_search_res_servicename+y} 24016then : 24017 printf %s "(cached) " >&6 24018else $as_nop 24019 ac_func_search_save_LIBS=$LIBS 24020cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24021/* end confdefs.h. */ 24022 24023/* Override any GCC internal prototype to avoid an error. 24024 Use char because int might match the return type of a GCC 24025 builtin and then its argument prototype would still apply. */ 24026char res_servicename (); 24027int 24028main (void) 24029{ 24030return res_servicename (); 24031 ; 24032 return 0; 24033} 24034_ACEOF 24035for ac_lib in '' resolv 24036do 24037 if test -z "$ac_lib"; then 24038 ac_res="none required" 24039 else 24040 ac_res=-l$ac_lib 24041 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24042 fi 24043 if ac_fn_c_try_link "$LINENO" 24044then : 24045 ac_cv_search_res_servicename=$ac_res 24046fi 24047rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24048 conftest$ac_exeext 24049 if test ${ac_cv_search_res_servicename+y} 24050then : 24051 break 24052fi 24053done 24054if test ${ac_cv_search_res_servicename+y} 24055then : 24056 24057else $as_nop 24058 ac_cv_search_res_servicename=no 24059fi 24060rm conftest.$ac_ext 24061LIBS=$ac_func_search_save_LIBS 24062fi 24063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_servicename" >&5 24064printf "%s\n" "$ac_cv_search_res_servicename" >&6; } 24065ac_res=$ac_cv_search_res_servicename 24066if test "$ac_res" != no 24067then : 24068 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24069 24070 24071printf "%s\n" "#define CARES_USE_LIBRESOLV 1" >>confdefs.h 24072 24073 24074else $as_nop 24075 24076 as_fn_error $? "Unable to find libresolv which is required for iPhone targets" "$LINENO" 5 24077 24078fi 24079 24080 24081fi 24082 24083if test "x$host_vendor" = "xibm" -a "x$host_os" = "xopenedition" 24084then : 24085 24086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5 24087printf %s "checking for library containing res_init... " >&6; } 24088if test ${ac_cv_search_res_init+y} 24089then : 24090 printf %s "(cached) " >&6 24091else $as_nop 24092 ac_func_search_save_LIBS=$LIBS 24093cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24094/* end confdefs.h. */ 24095 24096/* Override any GCC internal prototype to avoid an error. 24097 Use char because int might match the return type of a GCC 24098 builtin and then its argument prototype would still apply. */ 24099char res_init (); 24100int 24101main (void) 24102{ 24103return res_init (); 24104 ; 24105 return 0; 24106} 24107_ACEOF 24108for ac_lib in '' resolv 24109do 24110 if test -z "$ac_lib"; then 24111 ac_res="none required" 24112 else 24113 ac_res=-l$ac_lib 24114 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24115 fi 24116 if ac_fn_c_try_link "$LINENO" 24117then : 24118 ac_cv_search_res_init=$ac_res 24119fi 24120rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24121 conftest$ac_exeext 24122 if test ${ac_cv_search_res_init+y} 24123then : 24124 break 24125fi 24126done 24127if test ${ac_cv_search_res_init+y} 24128then : 24129 24130else $as_nop 24131 ac_cv_search_res_init=no 24132fi 24133rm conftest.$ac_ext 24134LIBS=$ac_func_search_save_LIBS 24135fi 24136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5 24137printf "%s\n" "$ac_cv_search_res_init" >&6; } 24138ac_res=$ac_cv_search_res_init 24139if test "$ac_res" != no 24140then : 24141 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24142 24143 24144printf "%s\n" "#define CARES_USE_LIBRESOLV 1" >>confdefs.h 24145 24146 24147else $as_nop 24148 24149 as_fn_error $? "Unable to find libresolv which is required for z/OS" "$LINENO" 5 24150 24151fi 24152 24153 24154fi 24155 24156ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 24157if test "x$ac_cv_func_strcasecmp" = xyes 24158then : 24159 24160else $as_nop 24161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5 24162printf %s "checking for strcasecmp in -lresolve... " >&6; } 24163if test ${ac_cv_lib_resolve_strcasecmp+y} 24164then : 24165 printf %s "(cached) " >&6 24166else $as_nop 24167 ac_check_lib_save_LIBS=$LIBS 24168LIBS="-lresolve $LIBS" 24169cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24170/* end confdefs.h. */ 24171 24172/* Override any GCC internal prototype to avoid an error. 24173 Use char because int might match the return type of a GCC 24174 builtin and then its argument prototype would still apply. */ 24175char strcasecmp (); 24176int 24177main (void) 24178{ 24179return strcasecmp (); 24180 ; 24181 return 0; 24182} 24183_ACEOF 24184if ac_fn_c_try_link "$LINENO" 24185then : 24186 ac_cv_lib_resolve_strcasecmp=yes 24187else $as_nop 24188 ac_cv_lib_resolve_strcasecmp=no 24189fi 24190rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24191 conftest$ac_exeext conftest.$ac_ext 24192LIBS=$ac_check_lib_save_LIBS 24193fi 24194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5 24195printf "%s\n" "$ac_cv_lib_resolve_strcasecmp" >&6; } 24196if test "x$ac_cv_lib_resolve_strcasecmp" = xyes 24197then : 24198 printf "%s\n" "#define HAVE_LIBRESOLVE 1" >>confdefs.h 24199 24200 LIBS="-lresolve $LIBS" 24201 24202fi 24203 24204fi 24205 24206 24207if test "$ac_cv_lib_resolve_strcasecmp" = "$ac_cv_func_strcasecmp"; then 24208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5 24209printf %s "checking for strcasecmp in -lresolve... " >&6; } 24210if test ${ac_cv_lib_resolve_strcasecmp+y} 24211then : 24212 printf %s "(cached) " >&6 24213else $as_nop 24214 ac_check_lib_save_LIBS=$LIBS 24215LIBS="-lresolve -lnsl $LIBS" 24216cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24217/* end confdefs.h. */ 24218 24219/* Override any GCC internal prototype to avoid an error. 24220 Use char because int might match the return type of a GCC 24221 builtin and then its argument prototype would still apply. */ 24222char strcasecmp (); 24223int 24224main (void) 24225{ 24226return strcasecmp (); 24227 ; 24228 return 0; 24229} 24230_ACEOF 24231if ac_fn_c_try_link "$LINENO" 24232then : 24233 ac_cv_lib_resolve_strcasecmp=yes 24234else $as_nop 24235 ac_cv_lib_resolve_strcasecmp=no 24236fi 24237rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24238 conftest$ac_exeext conftest.$ac_ext 24239LIBS=$ac_check_lib_save_LIBS 24240fi 24241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5 24242printf "%s\n" "$ac_cv_lib_resolve_strcasecmp" >&6; } 24243if test "x$ac_cv_lib_resolve_strcasecmp" = xyes 24244then : 24245 LIBS="-lresolve $LIBS" 24246fi 24247 24248fi 24249ac_cv_func_strcasecmp="no" 24250 24251if test "$ac_cv_header_winsock2_h" = "yes"; then 24252 LIBS="$LIBS -liphlpapi" 24253fi 24254 24255 24256cares_includes_winsock2="\ 24257/* includes start */ 24258#ifdef HAVE_WINDOWS_H 24259# ifndef WIN32_LEAN_AND_MEAN 24260# define WIN32_LEAN_AND_MEAN 24261# endif 24262# include <windows.h> 24263# ifdef HAVE_WINSOCK2_H 24264# include <winsock2.h> 24265# else 24266# ifdef HAVE_WINSOCK_H 24267# include <winsock.h> 24268# endif 24269# endif 24270#endif 24271/* includes end */" 24272 24273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5 24274printf %s "checking for windows.h... " >&6; } 24275if test ${ac_cv_header_windows_h+y} 24276then : 24277 printf %s "(cached) " >&6 24278else $as_nop 24279 24280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24281/* end confdefs.h. */ 24282 24283 24284#undef inline 24285#ifndef WIN32_LEAN_AND_MEAN 24286#define WIN32_LEAN_AND_MEAN 24287#endif 24288#include <windows.h> 24289 24290int 24291main (void) 24292{ 24293 24294#if defined(__CYGWIN__) || defined(__CEGCC__) 24295 HAVE_WINDOWS_H shall not be defined. 24296#else 24297 int dummy=2*WINVER; 24298#endif 24299 24300 ; 24301 return 0; 24302} 24303 24304_ACEOF 24305if ac_fn_c_try_compile "$LINENO" 24306then : 24307 24308 ac_cv_header_windows_h="yes" 24309 24310else $as_nop 24311 24312 ac_cv_header_windows_h="no" 24313 24314fi 24315rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24316 24317fi 24318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5 24319printf "%s\n" "$ac_cv_header_windows_h" >&6; } 24320 case "$ac_cv_header_windows_h" in 24321 yes) 24322 24323printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h 24324 24325 24326printf "%s\n" "#define WIN32_LEAN_AND_MEAN 1" >>confdefs.h 24327 24328 ;; 24329 esac 24330 24331 24332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5 24333printf %s "checking for winsock.h... " >&6; } 24334if test ${ac_cv_header_winsock_h+y} 24335then : 24336 printf %s "(cached) " >&6 24337else $as_nop 24338 24339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24340/* end confdefs.h. */ 24341 24342 24343#undef inline 24344#ifndef WIN32_LEAN_AND_MEAN 24345#define WIN32_LEAN_AND_MEAN 24346#endif 24347#include <windows.h> 24348#include <winsock.h> 24349 24350int 24351main (void) 24352{ 24353 24354#if defined(__CYGWIN__) || defined(__CEGCC__) 24355 HAVE_WINSOCK_H shall not be defined. 24356#else 24357 int dummy=WSACleanup(); 24358#endif 24359 24360 ; 24361 return 0; 24362} 24363 24364_ACEOF 24365if ac_fn_c_try_compile "$LINENO" 24366then : 24367 24368 ac_cv_header_winsock_h="yes" 24369 24370else $as_nop 24371 24372 ac_cv_header_winsock_h="no" 24373 24374fi 24375rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24376 24377fi 24378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5 24379printf "%s\n" "$ac_cv_header_winsock_h" >&6; } 24380 case "$ac_cv_header_winsock_h" in 24381 yes) 24382 24383printf "%s\n" "#define HAVE_WINSOCK_H 1" >>confdefs.h 24384 24385 ;; 24386 esac 24387 24388 24389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5 24390printf %s "checking for winsock2.h... " >&6; } 24391if test ${ac_cv_header_winsock2_h+y} 24392then : 24393 printf %s "(cached) " >&6 24394else $as_nop 24395 24396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24397/* end confdefs.h. */ 24398 24399 24400#undef inline 24401#ifndef WIN32_LEAN_AND_MEAN 24402#define WIN32_LEAN_AND_MEAN 24403#endif 24404#include <windows.h> 24405#include <winsock2.h> 24406 24407int 24408main (void) 24409{ 24410 24411#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__) 24412 HAVE_WINSOCK2_H shall not be defined. 24413#else 24414 int dummy=2*IPPROTO_ESP; 24415#endif 24416 24417 ; 24418 return 0; 24419} 24420 24421_ACEOF 24422if ac_fn_c_try_compile "$LINENO" 24423then : 24424 24425 ac_cv_header_winsock2_h="yes" 24426 24427else $as_nop 24428 24429 ac_cv_header_winsock2_h="no" 24430 24431fi 24432rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24433 24434fi 24435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5 24436printf "%s\n" "$ac_cv_header_winsock2_h" >&6; } 24437 case "$ac_cv_header_winsock2_h" in 24438 yes) 24439 24440printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h 24441 24442 ;; 24443 esac 24444 24445 24446 24447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5 24448printf %s "checking for connect in libraries... " >&6; } 24449 tst_connect_save_LIBS="$LIBS" 24450 tst_connect_need_LIBS="unknown" 24451 for tst_lib in '' '-lsocket' ; do 24452 if test "$tst_connect_need_LIBS" = "unknown"; then 24453 LIBS="$tst_lib $tst_connect_save_LIBS" 24454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24455/* end confdefs.h. */ 24456 24457 24458 $cares_includes_winsock2 24459 #ifndef HAVE_WINDOWS_H 24460 int connect(int, void*, int); 24461 #endif 24462 24463int 24464main (void) 24465{ 24466 24467 if(0 != connect(0, 0, 0)) 24468 return 1; 24469 24470 ; 24471 return 0; 24472} 24473 24474_ACEOF 24475if ac_fn_c_try_link "$LINENO" 24476then : 24477 24478 tst_connect_need_LIBS="$tst_lib" 24479 24480fi 24481rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24482 conftest$ac_exeext conftest.$ac_ext 24483 fi 24484 done 24485 LIBS="$tst_connect_save_LIBS" 24486 # 24487 case X-"$tst_connect_need_LIBS" in 24488 X-unknown) 24489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5 24490printf "%s\n" "cannot find connect" >&6; } 24491 as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5 24492 ;; 24493 X-) 24494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24495printf "%s\n" "yes" >&6; } 24496 ;; 24497 *) 24498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5 24499printf "%s\n" "$tst_connect_need_LIBS" >&6; } 24500 LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS" 24501 ;; 24502 esac 24503 24504 24505if test "x$host_vendor" = "xapple" 24506then : 24507 24508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iOS minimum version 10 or later" >&5 24509printf %s "checking for iOS minimum version 10 or later... " >&6; } 24510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24511/* end confdefs.h. */ 24512 24513 24514#include <stdio.h> 24515#include <TargetConditionals.h> 24516 24517int 24518main (void) 24519{ 24520 24521#if TARGET_OS_IPHONE == 0 || __IPHONE_OS_VERSION_MIN_REQUIRED < 100000 24522#error Not iOS 10 or later 24523#endif 24524return 0; 24525 24526 ; 24527 return 0; 24528} 24529 24530_ACEOF 24531if ac_fn_c_try_compile "$LINENO" 24532then : 24533 24534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24535printf "%s\n" "yes" >&6; } 24536 ac_cv_ios_10="yes" 24537 24538else $as_nop 24539 24540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24541printf "%s\n" "no" >&6; } 24542 24543fi 24544rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24545 24546fi 24547 24548if test "x$host_vendor" = "xapple" 24549then : 24550 24551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for macOS minimum version 10.12 or later" >&5 24552printf %s "checking for macOS minimum version 10.12 or later... " >&6; } 24553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24554/* end confdefs.h. */ 24555 24556 24557#include <stdio.h> 24558#include <TargetConditionals.h> 24559 24560int 24561main (void) 24562{ 24563 24564#ifndef MAC_OS_X_VERSION_10_12 24565# define MAC_OS_X_VERSION_10_12 101200 24566#endif 24567#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_12 24568#error Not macOS 10.12 or later 24569#endif 24570return 0; 24571 24572 ; 24573 return 0; 24574} 24575 24576_ACEOF 24577if ac_fn_c_try_compile "$LINENO" 24578then : 24579 24580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24581printf "%s\n" "yes" >&6; } 24582 ac_cv_macos_10_12="yes" 24583 24584else $as_nop 24585 24586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24587printf "%s\n" "no" >&6; } 24588 24589fi 24590rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24591 24592fi 24593 24594if test "x$host_vendor" != "xapple" || test "x$ac_cv_ios_10" = "xyes" || test "x$ac_cv_macos_10_12" = "xyes"; then 24595 24596 24597# Obsolete code to be removed. 24598if test $ac_cv_header_sys_time_h = yes; then 24599 24600printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 24601 24602fi 24603# End of obsolete code. 24604 24605 24606 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 24607if test "x$ac_cv_header_sys_types_h" = xyes 24608then : 24609 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 24610 24611fi 24612ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" 24613if test "x$ac_cv_header_sys_time_h" = xyes 24614then : 24615 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h 24616 24617fi 24618ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default" 24619if test "x$ac_cv_header_time_h" = xyes 24620then : 24621 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h 24622 24623fi 24624 24625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5 24626printf %s "checking for monotonic clock_gettime... " >&6; } 24627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24628/* end confdefs.h. */ 24629 24630 24631#ifdef HAVE_SYS_TYPES_H 24632#include <sys/types.h> 24633#endif 24634#ifdef HAVE_SYS_TIME_H 24635#include <sys/time.h> 24636#ifdef TIME_WITH_SYS_TIME 24637#include <time.h> 24638#endif 24639#else 24640#ifdef HAVE_TIME_H 24641#include <time.h> 24642#endif 24643#endif 24644 24645int 24646main (void) 24647{ 24648 24649 struct timespec ts; 24650 (void)clock_gettime(CLOCK_MONOTONIC, &ts); 24651 24652 ; 24653 return 0; 24654} 24655 24656_ACEOF 24657if ac_fn_c_try_compile "$LINENO" 24658then : 24659 24660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24661printf "%s\n" "yes" >&6; } 24662 ac_cv_func_clock_gettime="yes" 24663 24664else $as_nop 24665 24666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24667printf "%s\n" "no" >&6; } 24668 ac_cv_func_clock_gettime="no" 24669 24670fi 24671rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24672 24673 24674 # 24675 if test "$ac_cv_func_clock_gettime" = "yes"; then 24676 # 24677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5 24678printf %s "checking for clock_gettime in libraries... " >&6; } 24679 # 24680 curl_cv_save_LIBS="$LIBS" 24681 curl_cv_gclk_LIBS="unknown" 24682 # 24683 for x_xlibs in '' '-lrt' '-lposix4' ; do 24684 if test "$curl_cv_gclk_LIBS" = "unknown"; then 24685 if test -z "$x_xlibs"; then 24686 LIBS="$curl_cv_save_LIBS" 24687 else 24688 LIBS="$x_xlibs $curl_cv_save_LIBS" 24689 fi 24690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24691/* end confdefs.h. */ 24692 24693 24694#ifdef HAVE_SYS_TYPES_H 24695#include <sys/types.h> 24696#endif 24697#ifdef HAVE_SYS_TIME_H 24698#include <sys/time.h> 24699#ifdef TIME_WITH_SYS_TIME 24700#include <time.h> 24701#endif 24702#else 24703#ifdef HAVE_TIME_H 24704#include <time.h> 24705#endif 24706#endif 24707 24708int 24709main (void) 24710{ 24711 24712 struct timespec ts; 24713 (void)clock_gettime(CLOCK_MONOTONIC, &ts); 24714 24715 ; 24716 return 0; 24717} 24718 24719_ACEOF 24720if ac_fn_c_try_link "$LINENO" 24721then : 24722 24723 curl_cv_gclk_LIBS="$x_xlibs" 24724 24725fi 24726rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24727 conftest$ac_exeext conftest.$ac_ext 24728 fi 24729 done 24730 # 24731 LIBS="$curl_cv_save_LIBS" 24732 # 24733 case X-"$curl_cv_gclk_LIBS" in 24734 X-unknown) 24735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5 24736printf "%s\n" "cannot find clock_gettime" >&6; } 24737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5 24738printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;} 24739 ac_cv_func_clock_gettime="no" 24740 ;; 24741 X-) 24742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5 24743printf "%s\n" "no additional lib required" >&6; } 24744 ac_cv_func_clock_gettime="yes" 24745 ;; 24746 *) 24747 if test -z "$curl_cv_save_LIBS"; then 24748 LIBS="$curl_cv_gclk_LIBS" 24749 else 24750 LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS" 24751 fi 24752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5 24753printf "%s\n" "$curl_cv_gclk_LIBS" >&6; } 24754 ac_cv_func_clock_gettime="yes" 24755 ;; 24756 esac 24757 # 24758 if test "x$cross_compiling" != "xyes" && 24759 test "$ac_cv_func_clock_gettime" = "yes"; then 24760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5 24761printf %s "checking if monotonic clock_gettime works... " >&6; } 24762 if test "$cross_compiling" = yes 24763then : 24764 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24765printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 24766as_fn_error $? "cannot run test program while cross compiling 24767See \`config.log' for more details" "$LINENO" 5; } 24768else $as_nop 24769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24770/* end confdefs.h. */ 24771 24772 24773#ifdef HAVE_STDLIB_H 24774#include <stdlib.h> 24775#endif 24776#ifdef HAVE_SYS_TYPES_H 24777#include <sys/types.h> 24778#endif 24779#ifdef HAVE_SYS_TIME_H 24780#include <sys/time.h> 24781#ifdef TIME_WITH_SYS_TIME 24782#include <time.h> 24783#endif 24784#else 24785#ifdef HAVE_TIME_H 24786#include <time.h> 24787#endif 24788#endif 24789 24790int 24791main (void) 24792{ 24793 24794 struct timespec ts; 24795 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts)) 24796 exit(0); 24797 else 24798 exit(1); 24799 24800 ; 24801 return 0; 24802} 24803 24804_ACEOF 24805if ac_fn_c_try_run "$LINENO" 24806then : 24807 24808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24809printf "%s\n" "yes" >&6; } 24810 24811else $as_nop 24812 24813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24814printf "%s\n" "no" >&6; } 24815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5 24816printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;} 24817 ac_cv_func_clock_gettime="no" 24818 LIBS="$curl_cv_save_LIBS" 24819 24820fi 24821rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24822 conftest.$ac_objext conftest.beam conftest.$ac_ext 24823fi 24824 24825 fi 24826 # 24827 case "$ac_cv_func_clock_gettime" in 24828 yes) 24829 24830printf "%s\n" "#define HAVE_CLOCK_GETTIME_MONOTONIC 1" >>confdefs.h 24831 24832 ;; 24833 esac 24834 # 24835 fi 24836 # 24837 24838fi 24839 24840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5 24841printf %s "checking whether to use libgcc... " >&6; } 24842# Check whether --enable-libgcc was given. 24843if test ${enable_libgcc+y} 24844then : 24845 enableval=$enable_libgcc; case "$enableval" in 24846 yes) 24847 LIBS="$LIBS -lgcc" 24848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24849printf "%s\n" "yes" >&6; } 24850 ;; 24851 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24852printf "%s\n" "no" >&6; } 24853 ;; 24854 esac 24855else $as_nop 24856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24857printf "%s\n" "no" >&6; } 24858 24859fi 24860 24861 24862 24863 24864 24865 24866# Autoupdate added the next two lines to ensure that your configure 24867# script's behavior did not change. They are probably safe to remove. 24868 24869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 24870printf %s "checking for egrep... " >&6; } 24871if test ${ac_cv_path_EGREP+y} 24872then : 24873 printf %s "(cached) " >&6 24874else $as_nop 24875 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 24876 then ac_cv_path_EGREP="$GREP -E" 24877 else 24878 if test -z "$EGREP"; then 24879 ac_path_EGREP_found=false 24880 # Loop through the user's path and test for each of PROGNAME-LIST 24881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24882for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 24883do 24884 IFS=$as_save_IFS 24885 case $as_dir in #((( 24886 '') as_dir=./ ;; 24887 */) ;; 24888 *) as_dir=$as_dir/ ;; 24889 esac 24890 for ac_prog in egrep 24891 do 24892 for ac_exec_ext in '' $ac_executable_extensions; do 24893 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 24894 as_fn_executable_p "$ac_path_EGREP" || continue 24895# Check for GNU ac_path_EGREP and select it if it is found. 24896 # Check for GNU $ac_path_EGREP 24897case `"$ac_path_EGREP" --version 2>&1` in 24898*GNU*) 24899 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 24900*) 24901 ac_count=0 24902 printf %s 0123456789 >"conftest.in" 24903 while : 24904 do 24905 cat "conftest.in" "conftest.in" >"conftest.tmp" 24906 mv "conftest.tmp" "conftest.in" 24907 cp "conftest.in" "conftest.nl" 24908 printf "%s\n" 'EGREP' >> "conftest.nl" 24909 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 24910 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 24911 as_fn_arith $ac_count + 1 && ac_count=$as_val 24912 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 24913 # Best one so far, save it but keep looking for a better one 24914 ac_cv_path_EGREP="$ac_path_EGREP" 24915 ac_path_EGREP_max=$ac_count 24916 fi 24917 # 10*(2^10) chars as input seems more than enough 24918 test $ac_count -gt 10 && break 24919 done 24920 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 24921esac 24922 24923 $ac_path_EGREP_found && break 3 24924 done 24925 done 24926 done 24927IFS=$as_save_IFS 24928 if test -z "$ac_cv_path_EGREP"; then 24929 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 24930 fi 24931else 24932 ac_cv_path_EGREP=$EGREP 24933fi 24934 24935 fi 24936fi 24937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 24938printf "%s\n" "$ac_cv_path_EGREP" >&6; } 24939 EGREP="$ac_cv_path_EGREP" 24940 24941 24942 24943 24944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 24945printf %s "checking for egrep... " >&6; } 24946if test ${ac_cv_path_EGREP+y} 24947then : 24948 printf %s "(cached) " >&6 24949else $as_nop 24950 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 24951 then ac_cv_path_EGREP="$GREP -E" 24952 else 24953 if test -z "$EGREP"; then 24954 ac_path_EGREP_found=false 24955 # Loop through the user's path and test for each of PROGNAME-LIST 24956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24957for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 24958do 24959 IFS=$as_save_IFS 24960 case $as_dir in #((( 24961 '') as_dir=./ ;; 24962 */) ;; 24963 *) as_dir=$as_dir/ ;; 24964 esac 24965 for ac_prog in egrep 24966 do 24967 for ac_exec_ext in '' $ac_executable_extensions; do 24968 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 24969 as_fn_executable_p "$ac_path_EGREP" || continue 24970# Check for GNU ac_path_EGREP and select it if it is found. 24971 # Check for GNU $ac_path_EGREP 24972case `"$ac_path_EGREP" --version 2>&1` in 24973*GNU*) 24974 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 24975*) 24976 ac_count=0 24977 printf %s 0123456789 >"conftest.in" 24978 while : 24979 do 24980 cat "conftest.in" "conftest.in" >"conftest.tmp" 24981 mv "conftest.tmp" "conftest.in" 24982 cp "conftest.in" "conftest.nl" 24983 printf "%s\n" 'EGREP' >> "conftest.nl" 24984 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 24985 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 24986 as_fn_arith $ac_count + 1 && ac_count=$as_val 24987 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 24988 # Best one so far, save it but keep looking for a better one 24989 ac_cv_path_EGREP="$ac_path_EGREP" 24990 ac_path_EGREP_max=$ac_count 24991 fi 24992 # 10*(2^10) chars as input seems more than enough 24993 test $ac_count -gt 10 && break 24994 done 24995 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 24996esac 24997 24998 $ac_path_EGREP_found && break 3 24999 done 25000 done 25001 done 25002IFS=$as_save_IFS 25003 if test -z "$ac_cv_path_EGREP"; then 25004 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 25005 fi 25006else 25007 ac_cv_path_EGREP=$EGREP 25008fi 25009 25010 fi 25011fi 25012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 25013printf "%s\n" "$ac_cv_path_EGREP" >&6; } 25014 EGREP="$ac_cv_path_EGREP" 25015 25016 25017 25018 25019 25020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5 25021printf %s "checking for malloc.h... " >&6; } 25022if test ${ac_cv_header_malloc_h+y} 25023then : 25024 printf %s "(cached) " >&6 25025else $as_nop 25026 25027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25028/* end confdefs.h. */ 25029 25030 25031#include <malloc.h> 25032 25033int 25034main (void) 25035{ 25036 25037 void *p = malloc(10); 25038 void *q = calloc(10,10); 25039 free(p); 25040 free(q); 25041 25042 ; 25043 return 0; 25044} 25045 25046_ACEOF 25047if ac_fn_c_try_compile "$LINENO" 25048then : 25049 25050 ac_cv_header_malloc_h="yes" 25051 25052else $as_nop 25053 25054 ac_cv_header_malloc_h="no" 25055 25056fi 25057rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25058 25059fi 25060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_malloc_h" >&5 25061printf "%s\n" "$ac_cv_header_malloc_h" >&6; } 25062 if test "$ac_cv_header_malloc_h" = "yes"; then 25063 25064printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h 25065 25066 # 25067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25068/* end confdefs.h. */ 25069 25070 25071#include <stdlib.h> 25072 25073int 25074main (void) 25075{ 25076 25077 void *p = malloc(10); 25078 void *q = calloc(10,10); 25079 free(p); 25080 free(q); 25081 25082 ; 25083 return 0; 25084} 25085 25086_ACEOF 25087if ac_fn_c_try_compile "$LINENO" 25088then : 25089 25090 curl_cv_need_header_malloc_h="no" 25091 25092else $as_nop 25093 25094 curl_cv_need_header_malloc_h="yes" 25095 25096fi 25097rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25098 # 25099 case "$curl_cv_need_header_malloc_h" in 25100 yes) 25101 25102printf "%s\n" "#define NEED_MALLOC_H 1" >>confdefs.h 25103 25104 ;; 25105 esac 25106 fi 25107 25108 25109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5 25110printf %s "checking for memory.h... " >&6; } 25111if test ${ac_cv_header_memory_h+y} 25112then : 25113 printf %s "(cached) " >&6 25114else $as_nop 25115 25116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25117/* end confdefs.h. */ 25118 25119 25120#include <memory.h> 25121 25122int 25123main (void) 25124{ 25125 25126 void *p = malloc(10); 25127 void *q = calloc(10,10); 25128 free(p); 25129 free(q); 25130 25131 ; 25132 return 0; 25133} 25134 25135_ACEOF 25136if ac_fn_c_try_compile "$LINENO" 25137then : 25138 25139 ac_cv_header_memory_h="yes" 25140 25141else $as_nop 25142 25143 ac_cv_header_memory_h="no" 25144 25145fi 25146rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25147 25148fi 25149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_memory_h" >&5 25150printf "%s\n" "$ac_cv_header_memory_h" >&6; } 25151 if test "$ac_cv_header_memory_h" = "yes"; then 25152 25153printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h 25154 25155 # 25156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25157/* end confdefs.h. */ 25158 25159 25160#include <stdlib.h> 25161 25162int 25163main (void) 25164{ 25165 25166 void *p = malloc(10); 25167 void *q = calloc(10,10); 25168 free(p); 25169 free(q); 25170 25171 ; 25172 return 0; 25173} 25174 25175_ACEOF 25176if ac_fn_c_try_compile "$LINENO" 25177then : 25178 25179 curl_cv_need_header_memory_h="no" 25180 25181else $as_nop 25182 25183 curl_cv_need_header_memory_h="yes" 25184 25185fi 25186rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25187 # 25188 case "$curl_cv_need_header_memory_h" in 25189 yes) 25190 25191printf "%s\n" "#define NEED_MEMORY_H 1" >>confdefs.h 25192 25193 ;; 25194 esac 25195 fi 25196 25197 25198ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" " 25199#ifdef HAVE_SYS_TYPES_H 25200#include <sys/types.h> 25201#endif 25202#ifdef HAVE_SYS_TIME_H 25203#include <sys/time.h> 25204#endif 25205#ifdef HAVE_ARPA_NAMESER_H 25206#include <arpa/nameser.h> 25207#endif 25208 25209#ifdef HAVE_SYS_SOCKET_H 25210#include <sys/socket.h> 25211#endif 25212#ifdef HAVE_NETINET_IN_H 25213#include <netinet/in.h> 25214#endif 25215 25216 25217" 25218if test "x$ac_cv_header_sys_types_h" = xyes 25219then : 25220 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 25221 25222fi 25223ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" " 25224#ifdef HAVE_SYS_TYPES_H 25225#include <sys/types.h> 25226#endif 25227#ifdef HAVE_SYS_TIME_H 25228#include <sys/time.h> 25229#endif 25230#ifdef HAVE_ARPA_NAMESER_H 25231#include <arpa/nameser.h> 25232#endif 25233 25234#ifdef HAVE_SYS_SOCKET_H 25235#include <sys/socket.h> 25236#endif 25237#ifdef HAVE_NETINET_IN_H 25238#include <netinet/in.h> 25239#endif 25240 25241 25242" 25243if test "x$ac_cv_header_sys_time_h" = xyes 25244then : 25245 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h 25246 25247fi 25248ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" " 25249#ifdef HAVE_SYS_TYPES_H 25250#include <sys/types.h> 25251#endif 25252#ifdef HAVE_SYS_TIME_H 25253#include <sys/time.h> 25254#endif 25255#ifdef HAVE_ARPA_NAMESER_H 25256#include <arpa/nameser.h> 25257#endif 25258 25259#ifdef HAVE_SYS_SOCKET_H 25260#include <sys/socket.h> 25261#endif 25262#ifdef HAVE_NETINET_IN_H 25263#include <netinet/in.h> 25264#endif 25265 25266 25267" 25268if test "x$ac_cv_header_sys_select_h" = xyes 25269then : 25270 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h 25271 25272fi 25273ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" " 25274#ifdef HAVE_SYS_TYPES_H 25275#include <sys/types.h> 25276#endif 25277#ifdef HAVE_SYS_TIME_H 25278#include <sys/time.h> 25279#endif 25280#ifdef HAVE_ARPA_NAMESER_H 25281#include <arpa/nameser.h> 25282#endif 25283 25284#ifdef HAVE_SYS_SOCKET_H 25285#include <sys/socket.h> 25286#endif 25287#ifdef HAVE_NETINET_IN_H 25288#include <netinet/in.h> 25289#endif 25290 25291 25292" 25293if test "x$ac_cv_header_sys_socket_h" = xyes 25294then : 25295 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 25296 25297fi 25298ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" " 25299#ifdef HAVE_SYS_TYPES_H 25300#include <sys/types.h> 25301#endif 25302#ifdef HAVE_SYS_TIME_H 25303#include <sys/time.h> 25304#endif 25305#ifdef HAVE_ARPA_NAMESER_H 25306#include <arpa/nameser.h> 25307#endif 25308 25309#ifdef HAVE_SYS_SOCKET_H 25310#include <sys/socket.h> 25311#endif 25312#ifdef HAVE_NETINET_IN_H 25313#include <netinet/in.h> 25314#endif 25315 25316 25317" 25318if test "x$ac_cv_header_sys_ioctl_h" = xyes 25319then : 25320 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h 25321 25322fi 25323ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" " 25324#ifdef HAVE_SYS_TYPES_H 25325#include <sys/types.h> 25326#endif 25327#ifdef HAVE_SYS_TIME_H 25328#include <sys/time.h> 25329#endif 25330#ifdef HAVE_ARPA_NAMESER_H 25331#include <arpa/nameser.h> 25332#endif 25333 25334#ifdef HAVE_SYS_SOCKET_H 25335#include <sys/socket.h> 25336#endif 25337#ifdef HAVE_NETINET_IN_H 25338#include <netinet/in.h> 25339#endif 25340 25341 25342" 25343if test "x$ac_cv_header_sys_param_h" = xyes 25344then : 25345 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h 25346 25347fi 25348ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" " 25349#ifdef HAVE_SYS_TYPES_H 25350#include <sys/types.h> 25351#endif 25352#ifdef HAVE_SYS_TIME_H 25353#include <sys/time.h> 25354#endif 25355#ifdef HAVE_ARPA_NAMESER_H 25356#include <arpa/nameser.h> 25357#endif 25358 25359#ifdef HAVE_SYS_SOCKET_H 25360#include <sys/socket.h> 25361#endif 25362#ifdef HAVE_NETINET_IN_H 25363#include <netinet/in.h> 25364#endif 25365 25366 25367" 25368if test "x$ac_cv_header_sys_uio_h" = xyes 25369then : 25370 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h 25371 25372fi 25373ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" " 25374#ifdef HAVE_SYS_TYPES_H 25375#include <sys/types.h> 25376#endif 25377#ifdef HAVE_SYS_TIME_H 25378#include <sys/time.h> 25379#endif 25380#ifdef HAVE_ARPA_NAMESER_H 25381#include <arpa/nameser.h> 25382#endif 25383 25384#ifdef HAVE_SYS_SOCKET_H 25385#include <sys/socket.h> 25386#endif 25387#ifdef HAVE_NETINET_IN_H 25388#include <netinet/in.h> 25389#endif 25390 25391 25392" 25393if test "x$ac_cv_header_assert_h" = xyes 25394then : 25395 printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h 25396 25397fi 25398ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" " 25399#ifdef HAVE_SYS_TYPES_H 25400#include <sys/types.h> 25401#endif 25402#ifdef HAVE_SYS_TIME_H 25403#include <sys/time.h> 25404#endif 25405#ifdef HAVE_ARPA_NAMESER_H 25406#include <arpa/nameser.h> 25407#endif 25408 25409#ifdef HAVE_SYS_SOCKET_H 25410#include <sys/socket.h> 25411#endif 25412#ifdef HAVE_NETINET_IN_H 25413#include <netinet/in.h> 25414#endif 25415 25416 25417" 25418if test "x$ac_cv_header_netdb_h" = xyes 25419then : 25420 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h 25421 25422fi 25423ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" " 25424#ifdef HAVE_SYS_TYPES_H 25425#include <sys/types.h> 25426#endif 25427#ifdef HAVE_SYS_TIME_H 25428#include <sys/time.h> 25429#endif 25430#ifdef HAVE_ARPA_NAMESER_H 25431#include <arpa/nameser.h> 25432#endif 25433 25434#ifdef HAVE_SYS_SOCKET_H 25435#include <sys/socket.h> 25436#endif 25437#ifdef HAVE_NETINET_IN_H 25438#include <netinet/in.h> 25439#endif 25440 25441 25442" 25443if test "x$ac_cv_header_netinet_in_h" = xyes 25444then : 25445 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h 25446 25447fi 25448ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" " 25449#ifdef HAVE_SYS_TYPES_H 25450#include <sys/types.h> 25451#endif 25452#ifdef HAVE_SYS_TIME_H 25453#include <sys/time.h> 25454#endif 25455#ifdef HAVE_ARPA_NAMESER_H 25456#include <arpa/nameser.h> 25457#endif 25458 25459#ifdef HAVE_SYS_SOCKET_H 25460#include <sys/socket.h> 25461#endif 25462#ifdef HAVE_NETINET_IN_H 25463#include <netinet/in.h> 25464#endif 25465 25466 25467" 25468if test "x$ac_cv_header_netinet_tcp_h" = xyes 25469then : 25470 printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h 25471 25472fi 25473ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " 25474#ifdef HAVE_SYS_TYPES_H 25475#include <sys/types.h> 25476#endif 25477#ifdef HAVE_SYS_TIME_H 25478#include <sys/time.h> 25479#endif 25480#ifdef HAVE_ARPA_NAMESER_H 25481#include <arpa/nameser.h> 25482#endif 25483 25484#ifdef HAVE_SYS_SOCKET_H 25485#include <sys/socket.h> 25486#endif 25487#ifdef HAVE_NETINET_IN_H 25488#include <netinet/in.h> 25489#endif 25490 25491 25492" 25493if test "x$ac_cv_header_net_if_h" = xyes 25494then : 25495 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h 25496 25497fi 25498ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" " 25499#ifdef HAVE_SYS_TYPES_H 25500#include <sys/types.h> 25501#endif 25502#ifdef HAVE_SYS_TIME_H 25503#include <sys/time.h> 25504#endif 25505#ifdef HAVE_ARPA_NAMESER_H 25506#include <arpa/nameser.h> 25507#endif 25508 25509#ifdef HAVE_SYS_SOCKET_H 25510#include <sys/socket.h> 25511#endif 25512#ifdef HAVE_NETINET_IN_H 25513#include <netinet/in.h> 25514#endif 25515 25516 25517" 25518if test "x$ac_cv_header_errno_h" = xyes 25519then : 25520 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h 25521 25522fi 25523ac_fn_c_check_header_compile "$LINENO" "socket.h" "ac_cv_header_socket_h" " 25524#ifdef HAVE_SYS_TYPES_H 25525#include <sys/types.h> 25526#endif 25527#ifdef HAVE_SYS_TIME_H 25528#include <sys/time.h> 25529#endif 25530#ifdef HAVE_ARPA_NAMESER_H 25531#include <arpa/nameser.h> 25532#endif 25533 25534#ifdef HAVE_SYS_SOCKET_H 25535#include <sys/socket.h> 25536#endif 25537#ifdef HAVE_NETINET_IN_H 25538#include <netinet/in.h> 25539#endif 25540 25541 25542" 25543if test "x$ac_cv_header_socket_h" = xyes 25544then : 25545 printf "%s\n" "#define HAVE_SOCKET_H 1" >>confdefs.h 25546 25547fi 25548ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" " 25549#ifdef HAVE_SYS_TYPES_H 25550#include <sys/types.h> 25551#endif 25552#ifdef HAVE_SYS_TIME_H 25553#include <sys/time.h> 25554#endif 25555#ifdef HAVE_ARPA_NAMESER_H 25556#include <arpa/nameser.h> 25557#endif 25558 25559#ifdef HAVE_SYS_SOCKET_H 25560#include <sys/socket.h> 25561#endif 25562#ifdef HAVE_NETINET_IN_H 25563#include <netinet/in.h> 25564#endif 25565 25566 25567" 25568if test "x$ac_cv_header_strings_h" = xyes 25569then : 25570 printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h 25571 25572fi 25573ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" " 25574#ifdef HAVE_SYS_TYPES_H 25575#include <sys/types.h> 25576#endif 25577#ifdef HAVE_SYS_TIME_H 25578#include <sys/time.h> 25579#endif 25580#ifdef HAVE_ARPA_NAMESER_H 25581#include <arpa/nameser.h> 25582#endif 25583 25584#ifdef HAVE_SYS_SOCKET_H 25585#include <sys/socket.h> 25586#endif 25587#ifdef HAVE_NETINET_IN_H 25588#include <netinet/in.h> 25589#endif 25590 25591 25592" 25593if test "x$ac_cv_header_stdbool_h" = xyes 25594then : 25595 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h 25596 25597fi 25598ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" " 25599#ifdef HAVE_SYS_TYPES_H 25600#include <sys/types.h> 25601#endif 25602#ifdef HAVE_SYS_TIME_H 25603#include <sys/time.h> 25604#endif 25605#ifdef HAVE_ARPA_NAMESER_H 25606#include <arpa/nameser.h> 25607#endif 25608 25609#ifdef HAVE_SYS_SOCKET_H 25610#include <sys/socket.h> 25611#endif 25612#ifdef HAVE_NETINET_IN_H 25613#include <netinet/in.h> 25614#endif 25615 25616 25617" 25618if test "x$ac_cv_header_time_h" = xyes 25619then : 25620 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h 25621 25622fi 25623ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" " 25624#ifdef HAVE_SYS_TYPES_H 25625#include <sys/types.h> 25626#endif 25627#ifdef HAVE_SYS_TIME_H 25628#include <sys/time.h> 25629#endif 25630#ifdef HAVE_ARPA_NAMESER_H 25631#include <arpa/nameser.h> 25632#endif 25633 25634#ifdef HAVE_SYS_SOCKET_H 25635#include <sys/socket.h> 25636#endif 25637#ifdef HAVE_NETINET_IN_H 25638#include <netinet/in.h> 25639#endif 25640 25641 25642" 25643if test "x$ac_cv_header_limits_h" = xyes 25644then : 25645 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h 25646 25647fi 25648ac_fn_c_check_header_compile "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" " 25649#ifdef HAVE_SYS_TYPES_H 25650#include <sys/types.h> 25651#endif 25652#ifdef HAVE_SYS_TIME_H 25653#include <sys/time.h> 25654#endif 25655#ifdef HAVE_ARPA_NAMESER_H 25656#include <arpa/nameser.h> 25657#endif 25658 25659#ifdef HAVE_SYS_SOCKET_H 25660#include <sys/socket.h> 25661#endif 25662#ifdef HAVE_NETINET_IN_H 25663#include <netinet/in.h> 25664#endif 25665 25666 25667" 25668if test "x$ac_cv_header_arpa_nameser_h" = xyes 25669then : 25670 printf "%s\n" "#define HAVE_ARPA_NAMESER_H 1" >>confdefs.h 25671 25672fi 25673ac_fn_c_check_header_compile "$LINENO" "arpa/nameser_compat.h" "ac_cv_header_arpa_nameser_compat_h" " 25674#ifdef HAVE_SYS_TYPES_H 25675#include <sys/types.h> 25676#endif 25677#ifdef HAVE_SYS_TIME_H 25678#include <sys/time.h> 25679#endif 25680#ifdef HAVE_ARPA_NAMESER_H 25681#include <arpa/nameser.h> 25682#endif 25683 25684#ifdef HAVE_SYS_SOCKET_H 25685#include <sys/socket.h> 25686#endif 25687#ifdef HAVE_NETINET_IN_H 25688#include <netinet/in.h> 25689#endif 25690 25691 25692" 25693if test "x$ac_cv_header_arpa_nameser_compat_h" = xyes 25694then : 25695 printf "%s\n" "#define HAVE_ARPA_NAMESER_COMPAT_H 1" >>confdefs.h 25696 25697fi 25698ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" " 25699#ifdef HAVE_SYS_TYPES_H 25700#include <sys/types.h> 25701#endif 25702#ifdef HAVE_SYS_TIME_H 25703#include <sys/time.h> 25704#endif 25705#ifdef HAVE_ARPA_NAMESER_H 25706#include <arpa/nameser.h> 25707#endif 25708 25709#ifdef HAVE_SYS_SOCKET_H 25710#include <sys/socket.h> 25711#endif 25712#ifdef HAVE_NETINET_IN_H 25713#include <netinet/in.h> 25714#endif 25715 25716 25717" 25718if test "x$ac_cv_header_arpa_inet_h" = xyes 25719then : 25720 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h 25721 25722fi 25723 25724 25725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 25726printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 25727if test ${ac_cv_c_undeclared_builtin_options+y} 25728then : 25729 printf %s "(cached) " >&6 25730else $as_nop 25731 ac_save_CFLAGS=$CFLAGS 25732 ac_cv_c_undeclared_builtin_options='cannot detect' 25733 for ac_arg in '' -fno-builtin; do 25734 CFLAGS="$ac_save_CFLAGS $ac_arg" 25735 # This test program should *not* compile successfully. 25736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25737/* end confdefs.h. */ 25738 25739int 25740main (void) 25741{ 25742(void) strchr; 25743 ; 25744 return 0; 25745} 25746_ACEOF 25747if ac_fn_c_try_compile "$LINENO" 25748then : 25749 25750else $as_nop 25751 # This test program should compile successfully. 25752 # No library function is consistently available on 25753 # freestanding implementations, so test against a dummy 25754 # declaration. Include always-available headers on the 25755 # off chance that they somehow elicit warnings. 25756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25757/* end confdefs.h. */ 25758#include <float.h> 25759#include <limits.h> 25760#include <stdarg.h> 25761#include <stddef.h> 25762extern void ac_decl (int, char *); 25763 25764int 25765main (void) 25766{ 25767(void) ac_decl (0, (char *) 0); 25768 (void) ac_decl; 25769 25770 ; 25771 return 0; 25772} 25773_ACEOF 25774if ac_fn_c_try_compile "$LINENO" 25775then : 25776 if test x"$ac_arg" = x 25777then : 25778 ac_cv_c_undeclared_builtin_options='none needed' 25779else $as_nop 25780 ac_cv_c_undeclared_builtin_options=$ac_arg 25781fi 25782 break 25783fi 25784rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25785fi 25786rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25787 done 25788 CFLAGS=$ac_save_CFLAGS 25789 25790fi 25791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 25792printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 25793 case $ac_cv_c_undeclared_builtin_options in #( 25794 'cannot detect') : 25795 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 25796printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 25797as_fn_error $? "cannot make $CC report undeclared builtins 25798See \`config.log' for more details" "$LINENO" 5; } ;; #( 25799 'none needed') : 25800 ac_c_undeclared_builtin_options='' ;; #( 25801 *) : 25802 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 25803esac 25804 25805ac_fn_check_decl "$LINENO" "HAVE_ARPA_NAMESER_H" "ac_cv_have_decl_HAVE_ARPA_NAMESER_H" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 25806if test "x$ac_cv_have_decl_HAVE_ARPA_NAMESER_H" = xyes 25807then : 25808 25809 25810cat >>confdefs.h <<_EOF 25811#define CARES_HAVE_ARPA_NAMESER_H 1 25812_EOF 25813 25814 25815fi 25816ac_fn_check_decl "$LINENO" "HAVE_ARPA_NAMESER_COMPAT_H" "ac_cv_have_decl_HAVE_ARPA_NAMESER_COMPAT_H" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 25817if test "x$ac_cv_have_decl_HAVE_ARPA_NAMESER_COMPAT_H" = xyes 25818then : 25819 25820 25821cat >>confdefs.h <<_EOF 25822#define CARES_HAVE_ARPA_NAMESER_COMPAT_H 1 25823_EOF 25824 25825 25826fi 25827 25828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 25829printf %s "checking for an ANSI C-conforming const... " >&6; } 25830if test ${ac_cv_c_const+y} 25831then : 25832 printf %s "(cached) " >&6 25833else $as_nop 25834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25835/* end confdefs.h. */ 25836 25837int 25838main (void) 25839{ 25840 25841#ifndef __cplusplus 25842 /* Ultrix mips cc rejects this sort of thing. */ 25843 typedef int charset[2]; 25844 const charset cs = { 0, 0 }; 25845 /* SunOS 4.1.1 cc rejects this. */ 25846 char const *const *pcpcc; 25847 char **ppc; 25848 /* NEC SVR4.0.2 mips cc rejects this. */ 25849 struct point {int x, y;}; 25850 static struct point const zero = {0,0}; 25851 /* IBM XL C 1.02.0.0 rejects this. 25852 It does not let you subtract one const X* pointer from another in 25853 an arm of an if-expression whose if-part is not a constant 25854 expression */ 25855 const char *g = "string"; 25856 pcpcc = &g + (g ? g-g : 0); 25857 /* HPUX 7.0 cc rejects these. */ 25858 ++pcpcc; 25859 ppc = (char**) pcpcc; 25860 pcpcc = (char const *const *) ppc; 25861 { /* SCO 3.2v4 cc rejects this sort of thing. */ 25862 char tx; 25863 char *t = &tx; 25864 char const *s = 0 ? (char *) 0 : (char const *) 0; 25865 25866 *t++ = 0; 25867 if (s) return 0; 25868 } 25869 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 25870 int x[] = {25, 17}; 25871 const int *foo = &x[0]; 25872 ++foo; 25873 } 25874 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 25875 typedef const int *iptr; 25876 iptr p = 0; 25877 ++p; 25878 } 25879 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying 25880 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 25881 struct s { int j; const int *ap[3]; } bx; 25882 struct s *b = &bx; b->j = 5; 25883 } 25884 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 25885 const int foo = 10; 25886 if (!foo) return 0; 25887 } 25888 return !cs[0] && !zero.x; 25889#endif 25890 25891 ; 25892 return 0; 25893} 25894_ACEOF 25895if ac_fn_c_try_compile "$LINENO" 25896then : 25897 ac_cv_c_const=yes 25898else $as_nop 25899 ac_cv_c_const=no 25900fi 25901rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25902fi 25903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 25904printf "%s\n" "$ac_cv_c_const" >&6; } 25905if test $ac_cv_c_const = no; then 25906 25907printf "%s\n" "#define const /**/" >>confdefs.h 25908 25909fi 25910 25911ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 25912if test "x$ac_cv_type_size_t" = xyes 25913then : 25914 25915else $as_nop 25916 25917printf "%s\n" "#define size_t unsigned int" >>confdefs.h 25918 25919fi 25920 25921 25922# Obsolete code to be removed. 25923if test $ac_cv_header_sys_time_h = yes; then 25924 25925printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 25926 25927fi 25928# End of obsolete code. 25929 25930 25931 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 25932if test "x$ac_cv_header_sys_types_h" = xyes 25933then : 25934 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 25935 25936fi 25937ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" 25938if test "x$ac_cv_header_sys_time_h" = xyes 25939then : 25940 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h 25941 25942fi 25943ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default" 25944if test "x$ac_cv_header_time_h" = xyes 25945then : 25946 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h 25947 25948fi 25949ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 25950if test "x$ac_cv_header_sys_socket_h" = xyes 25951then : 25952 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 25953 25954fi 25955 25956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 25957printf %s "checking for struct timeval... " >&6; } 25958if test ${ac_cv_struct_timeval+y} 25959then : 25960 printf %s "(cached) " >&6 25961else $as_nop 25962 25963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25964/* end confdefs.h. */ 25965 25966 25967#undef inline 25968#ifdef HAVE_WINDOWS_H 25969#ifndef WIN32_LEAN_AND_MEAN 25970#define WIN32_LEAN_AND_MEAN 25971#endif 25972#include <windows.h> 25973#ifdef HAVE_WINSOCK2_H 25974#include <winsock2.h> 25975#else 25976#ifdef HAVE_WINSOCK_H 25977#include <winsock.h> 25978#endif 25979#endif 25980#endif 25981#ifdef HAVE_SYS_TYPES_H 25982#include <sys/types.h> 25983#endif 25984#ifdef HAVE_SYS_TIME_H 25985#include <sys/time.h> 25986#ifdef TIME_WITH_SYS_TIME 25987#include <time.h> 25988#endif 25989#else 25990#ifdef HAVE_TIME_H 25991#include <time.h> 25992#endif 25993#endif 25994#ifdef HAVE_SYS_SOCKET_H 25995#include <sys/socket.h> 25996#endif 25997 25998int 25999main (void) 26000{ 26001 26002 struct timeval ts; 26003 ts.tv_sec = 0; 26004 ts.tv_usec = 0; 26005 26006 ; 26007 return 0; 26008} 26009 26010_ACEOF 26011if ac_fn_c_try_compile "$LINENO" 26012then : 26013 26014 ac_cv_struct_timeval="yes" 26015 26016else $as_nop 26017 26018 ac_cv_struct_timeval="no" 26019 26020fi 26021rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26022 26023fi 26024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_timeval" >&5 26025printf "%s\n" "$ac_cv_struct_timeval" >&6; } 26026 case "$ac_cv_struct_timeval" in 26027 yes) 26028 26029printf "%s\n" "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h 26030 26031 ;; 26032 esac 26033 26034 26035ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 26036if test "x$ac_cv_type_long_long" = xyes 26037then : 26038 26039printf "%s\n" "#define HAVE_LONGLONG 1" >>confdefs.h 26040 26041 longlong="yes" 26042 26043fi 26044 26045 26046if test "xyes" = "x$longlong"; then 26047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5 26048printf %s "checking if numberLL works... " >&6; } 26049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26050/* end confdefs.h. */ 26051 26052 26053 26054int 26055main (void) 26056{ 26057 26058 long long val = 1000LL; 26059 26060 ; 26061 return 0; 26062} 26063 26064_ACEOF 26065if ac_fn_c_try_compile "$LINENO" 26066then : 26067 26068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26069printf "%s\n" "yes" >&6; } 26070 26071printf "%s\n" "#define HAVE_LL 1" >>confdefs.h 26072 26073 26074else $as_nop 26075 26076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26077printf "%s\n" "no" >&6; } 26078 26079fi 26080rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26081fi 26082 26083 26084# check for ssize_t 26085ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 26086if test "x$ac_cv_type_ssize_t" = xyes 26087then : 26088 CARES_TYPEOF_ARES_SSIZE_T=ssize_t 26089else $as_nop 26090 CARES_TYPEOF_ARES_SSIZE_T=int 26091fi 26092 26093 26094 26095printf "%s\n" "#define CARES_TYPEOF_ARES_SSIZE_T ${CARES_TYPEOF_ARES_SSIZE_T}" >>confdefs.h 26096 26097 26098 26099# check for bool type 26100ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" " 26101#ifdef HAVE_SYS_TYPES_H 26102#include <sys/types.h> 26103#endif 26104#ifdef HAVE_STDBOOL_H 26105#include <stdbool.h> 26106#endif 26107 26108" 26109if test "x$ac_cv_type_bool" = xyes 26110then : 26111 26112 26113printf "%s\n" "#define HAVE_BOOL_T 1" >>confdefs.h 26114 26115 26116fi 26117 26118 26119 26120cares_includes_ws2tcpip="\ 26121/* includes start */ 26122#ifdef HAVE_WINDOWS_H 26123# ifndef WIN32_LEAN_AND_MEAN 26124# define WIN32_LEAN_AND_MEAN 26125# endif 26126# include <windows.h> 26127# ifdef HAVE_WINSOCK2_H 26128# include <winsock2.h> 26129# ifdef HAVE_WS2TCPIP_H 26130# include <ws2tcpip.h> 26131# endif 26132# endif 26133#endif 26134/* includes end */" 26135 26136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5 26137printf %s "checking for windows.h... " >&6; } 26138if test ${ac_cv_header_windows_h+y} 26139then : 26140 printf %s "(cached) " >&6 26141else $as_nop 26142 26143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26144/* end confdefs.h. */ 26145 26146 26147#undef inline 26148#ifndef WIN32_LEAN_AND_MEAN 26149#define WIN32_LEAN_AND_MEAN 26150#endif 26151#include <windows.h> 26152 26153int 26154main (void) 26155{ 26156 26157#if defined(__CYGWIN__) || defined(__CEGCC__) 26158 HAVE_WINDOWS_H shall not be defined. 26159#else 26160 int dummy=2*WINVER; 26161#endif 26162 26163 ; 26164 return 0; 26165} 26166 26167_ACEOF 26168if ac_fn_c_try_compile "$LINENO" 26169then : 26170 26171 ac_cv_header_windows_h="yes" 26172 26173else $as_nop 26174 26175 ac_cv_header_windows_h="no" 26176 26177fi 26178rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26179 26180fi 26181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5 26182printf "%s\n" "$ac_cv_header_windows_h" >&6; } 26183 case "$ac_cv_header_windows_h" in 26184 yes) 26185 26186printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h 26187 26188 26189printf "%s\n" "#define WIN32_LEAN_AND_MEAN 1" >>confdefs.h 26190 26191 ;; 26192 esac 26193 26194 26195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5 26196printf %s "checking for winsock2.h... " >&6; } 26197if test ${ac_cv_header_winsock2_h+y} 26198then : 26199 printf %s "(cached) " >&6 26200else $as_nop 26201 26202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26203/* end confdefs.h. */ 26204 26205 26206#undef inline 26207#ifndef WIN32_LEAN_AND_MEAN 26208#define WIN32_LEAN_AND_MEAN 26209#endif 26210#include <windows.h> 26211#include <winsock2.h> 26212 26213int 26214main (void) 26215{ 26216 26217#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__) 26218 HAVE_WINSOCK2_H shall not be defined. 26219#else 26220 int dummy=2*IPPROTO_ESP; 26221#endif 26222 26223 ; 26224 return 0; 26225} 26226 26227_ACEOF 26228if ac_fn_c_try_compile "$LINENO" 26229then : 26230 26231 ac_cv_header_winsock2_h="yes" 26232 26233else $as_nop 26234 26235 ac_cv_header_winsock2_h="no" 26236 26237fi 26238rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26239 26240fi 26241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5 26242printf "%s\n" "$ac_cv_header_winsock2_h" >&6; } 26243 case "$ac_cv_header_winsock2_h" in 26244 yes) 26245 26246printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h 26247 26248 ;; 26249 esac 26250 26251 26252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5 26253printf %s "checking for ws2tcpip.h... " >&6; } 26254if test ${ac_cv_header_ws2tcpip_h+y} 26255then : 26256 printf %s "(cached) " >&6 26257else $as_nop 26258 26259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26260/* end confdefs.h. */ 26261 26262 26263#undef inline 26264#ifndef WIN32_LEAN_AND_MEAN 26265#define WIN32_LEAN_AND_MEAN 26266#endif 26267#include <windows.h> 26268#include <winsock2.h> 26269#include <ws2tcpip.h> 26270 26271int 26272main (void) 26273{ 26274 26275#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__) 26276 HAVE_WS2TCPIP_H shall not be defined. 26277#else 26278 int dummy=2*IP_PKTINFO; 26279#endif 26280 26281 ; 26282 return 0; 26283} 26284 26285_ACEOF 26286if ac_fn_c_try_compile "$LINENO" 26287then : 26288 26289 ac_cv_header_ws2tcpip_h="yes" 26290 26291else $as_nop 26292 26293 ac_cv_header_ws2tcpip_h="no" 26294 26295fi 26296rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26297 26298fi 26299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5 26300printf "%s\n" "$ac_cv_header_ws2tcpip_h" >&6; } 26301 case "$ac_cv_header_ws2tcpip_h" in 26302 yes) 26303 26304printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h 26305 26306 ;; 26307 esac 26308 26309 26310 26311cares_includes_sys_socket="\ 26312/* includes start */ 26313#ifdef HAVE_SYS_TYPES_H 26314# include <sys/types.h> 26315#endif 26316#ifdef HAVE_SYS_SOCKET_H 26317# include <sys/socket.h> 26318#endif 26319/* includes end */" 26320 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$cares_includes_sys_socket 26321" 26322if test "x$ac_cv_header_sys_types_h" = xyes 26323then : 26324 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 26325 26326fi 26327ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$cares_includes_sys_socket 26328" 26329if test "x$ac_cv_header_sys_socket_h" = xyes 26330then : 26331 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 26332 26333fi 26334 26335 26336 26337cares_preprocess_callconv="\ 26338/* preprocess start */ 26339#ifdef HAVE_WINDOWS_H 26340# define FUNCALLCONV __stdcall 26341#else 26342# define FUNCALLCONV 26343#endif 26344/* preprocess end */" 26345 26346 26347 # 26348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ares_socklen_t data type" >&5 26349printf %s "checking for ares_socklen_t data type... " >&6; } 26350 cares_typeof_ares_socklen_t="unknown" 26351 for arg1 in int SOCKET; do 26352 for arg2 in 'struct sockaddr' void; do 26353 for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do 26354 if test "$cares_typeof_ares_socklen_t" = "unknown"; then 26355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26356/* end confdefs.h. */ 26357 26358 26359 $cares_includes_ws2tcpip 26360 $cares_includes_sys_socket 26361 $cares_preprocess_callconv 26362 extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *); 26363 26364int 26365main (void) 26366{ 26367 26368 $t *lenptr = 0; 26369 if(0 != getpeername(0, 0, lenptr)) 26370 return 1; 26371 26372 ; 26373 return 0; 26374} 26375 26376_ACEOF 26377if ac_fn_c_try_compile "$LINENO" 26378then : 26379 26380 cares_typeof_ares_socklen_t="$t" 26381 26382fi 26383rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26384 fi 26385 done 26386 done 26387 done 26388 for t in socklen_t int; do 26389 if test "$cares_typeof_ares_socklen_t" = "void"; then 26390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26391/* end confdefs.h. */ 26392 26393 26394 $cares_includes_sys_socket 26395 typedef $t ares_socklen_t; 26396 26397int 26398main (void) 26399{ 26400 26401 ares_socklen_t dummy; 26402 26403 ; 26404 return 0; 26405} 26406 26407_ACEOF 26408if ac_fn_c_try_compile "$LINENO" 26409then : 26410 26411 cares_typeof_ares_socklen_t="$t" 26412 26413fi 26414rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26415 fi 26416 done 26417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cares_typeof_ares_socklen_t" >&5 26418printf "%s\n" "$cares_typeof_ares_socklen_t" >&6; } 26419 if test "$cares_typeof_ares_socklen_t" = "void" || 26420 test "$cares_typeof_ares_socklen_t" = "unknown"; then 26421 as_fn_error $? "cannot find data type for ares_socklen_t." "$LINENO" 5 26422 fi 26423 # 26424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of ares_socklen_t" >&5 26425printf %s "checking size of ares_socklen_t... " >&6; } 26426 cares_sizeof_ares_socklen_t="unknown" 26427 cares_pull_headers_socklen_t="unknown" 26428 if test "$ac_cv_header_ws2tcpip_h" = "yes"; then 26429 tst_pull_header_checks='none ws2tcpip' 26430 tst_size_checks='4' 26431 else 26432 tst_pull_header_checks='none systypes syssocket' 26433 tst_size_checks='4 8 2' 26434 fi 26435 for tst_size in $tst_size_checks; do 26436 for tst_pull_headers in $tst_pull_header_checks; do 26437 if test "$cares_sizeof_ares_socklen_t" = "unknown"; then 26438 case $tst_pull_headers in 26439 ws2tcpip) 26440 tmp_includes="$cares_includes_ws2tcpip" 26441 ;; 26442 systypes) 26443 tmp_includes="$cares_includes_sys_types" 26444 ;; 26445 syssocket) 26446 tmp_includes="$cares_includes_sys_socket" 26447 ;; 26448 *) 26449 tmp_includes="" 26450 ;; 26451 esac 26452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26453/* end confdefs.h. */ 26454 26455 26456 $tmp_includes 26457 typedef $cares_typeof_ares_socklen_t ares_socklen_t; 26458 typedef char dummy_arr[sizeof(ares_socklen_t) == $tst_size ? 1 : -1]; 26459 26460int 26461main (void) 26462{ 26463 26464 ares_socklen_t dummy; 26465 26466 ; 26467 return 0; 26468} 26469 26470_ACEOF 26471if ac_fn_c_try_compile "$LINENO" 26472then : 26473 26474 cares_sizeof_ares_socklen_t="$tst_size" 26475 cares_pull_headers_socklen_t="$tst_pull_headers" 26476 26477fi 26478rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26479 fi 26480 done 26481 done 26482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cares_sizeof_ares_socklen_t" >&5 26483printf "%s\n" "$cares_sizeof_ares_socklen_t" >&6; } 26484 if test "$cares_sizeof_ares_socklen_t" = "unknown"; then 26485 as_fn_error $? "cannot find out size of ares_socklen_t." "$LINENO" 5 26486 fi 26487 # 26488 case $cares_pull_headers_socklen_t in 26489 ws2tcpip) 26490 26491cat >>confdefs.h <<_EOF 26492#define CARES_PULL_WS2TCPIP_H 1 26493_EOF 26494 26495 ;; 26496 systypes) 26497 26498cat >>confdefs.h <<_EOF 26499#define CARES_PULL_SYS_TYPES_H 1 26500_EOF 26501 26502 ;; 26503 syssocket) 26504 26505cat >>confdefs.h <<_EOF 26506#define CARES_PULL_SYS_TYPES_H 1 26507_EOF 26508 26509 26510cat >>confdefs.h <<_EOF 26511#define CARES_PULL_SYS_SOCKET_H 1 26512_EOF 26513 26514 ;; 26515 esac 26516 26517cat >>confdefs.h <<_EOF 26518#define CARES_TYPEOF_ARES_SOCKLEN_T $cares_typeof_ares_socklen_t 26519_EOF 26520 26521 26522cat >>confdefs.h <<_EOF 26523#define CARES_SIZEOF_ARES_SOCKLEN_T $cares_sizeof_ares_socklen_t 26524_EOF 26525 26526 26527 26528 26529 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" " 26530#undef inline 26531#ifdef HAVE_WINDOWS_H 26532#ifndef WIN32_LEAN_AND_MEAN 26533#define WIN32_LEAN_AND_MEAN 26534#endif 26535#include <windows.h> 26536#ifdef HAVE_WINSOCK2_H 26537#include <winsock2.h> 26538#else 26539#ifdef HAVE_WINSOCK_H 26540#include <winsock.h> 26541#endif 26542#endif 26543#else 26544#ifdef HAVE_SYS_TYPES_H 26545#include <sys/types.h> 26546#endif 26547#ifdef HAVE_SYS_SOCKET_H 26548#include <sys/socket.h> 26549#endif 26550#ifdef HAVE_NETINET_IN_H 26551#include <netinet/in.h> 26552#endif 26553#ifdef HAVE_ARPA_INET_H 26554#include <arpa/inet.h> 26555#endif 26556#endif 26557 26558" 26559if test "x$ac_cv_type_in_addr_t" = xyes 26560then : 26561 26562else $as_nop 26563 26564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5 26565printf %s "checking for in_addr_t equivalent... " >&6; } 26566if test ${curl_cv_in_addr_t_equiv+y} 26567then : 26568 printf %s "(cached) " >&6 26569else $as_nop 26570 26571 curl_cv_in_addr_t_equiv="unknown" 26572 for t in "unsigned long" int size_t unsigned long; do 26573 if test "$curl_cv_in_addr_t_equiv" = "unknown"; then 26574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26575/* end confdefs.h. */ 26576 26577 26578#undef inline 26579#ifdef HAVE_WINDOWS_H 26580#ifndef WIN32_LEAN_AND_MEAN 26581#define WIN32_LEAN_AND_MEAN 26582#endif 26583#include <windows.h> 26584#ifdef HAVE_WINSOCK2_H 26585#include <winsock2.h> 26586#else 26587#ifdef HAVE_WINSOCK_H 26588#include <winsock.h> 26589#endif 26590#endif 26591#else 26592#ifdef HAVE_SYS_TYPES_H 26593#include <sys/types.h> 26594#endif 26595#ifdef HAVE_SYS_SOCKET_H 26596#include <sys/socket.h> 26597#endif 26598#ifdef HAVE_NETINET_IN_H 26599#include <netinet/in.h> 26600#endif 26601#ifdef HAVE_ARPA_INET_H 26602#include <arpa/inet.h> 26603#endif 26604#endif 26605 26606int 26607main (void) 26608{ 26609 26610 $t data = inet_addr ("1.2.3.4"); 26611 26612 ; 26613 return 0; 26614} 26615 26616_ACEOF 26617if ac_fn_c_try_link "$LINENO" 26618then : 26619 26620 curl_cv_in_addr_t_equiv="$t" 26621 26622fi 26623rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26624 conftest$ac_exeext conftest.$ac_ext 26625 fi 26626 done 26627 26628fi 26629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5 26630printf "%s\n" "$curl_cv_in_addr_t_equiv" >&6; } 26631 case "$curl_cv_in_addr_t_equiv" in 26632 unknown) 26633 as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5 26634 ;; 26635 *) 26636 26637printf "%s\n" "#define in_addr_t $curl_cv_in_addr_t_equiv" >>confdefs.h 26638 26639 ;; 26640 esac 26641 26642fi 26643 26644 26645 26646 26647 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" " 26648#undef inline 26649#ifdef HAVE_WINDOWS_H 26650#ifndef WIN32_LEAN_AND_MEAN 26651#define WIN32_LEAN_AND_MEAN 26652#endif 26653#include <windows.h> 26654#ifdef HAVE_WINSOCK2_H 26655#include <winsock2.h> 26656#endif 26657#else 26658#ifdef HAVE_SYS_TYPES_H 26659#include <sys/types.h> 26660#endif 26661#ifdef HAVE_SYS_SOCKET_H 26662#include <sys/socket.h> 26663#endif 26664#ifdef HAVE_NETINET_IN_H 26665#include <netinet/in.h> 26666#endif 26667#ifdef HAVE_ARPA_INET_H 26668#include <arpa/inet.h> 26669#endif 26670#endif 26671 26672" 26673if test "x$ac_cv_type_struct_sockaddr_storage" = xyes 26674then : 26675 26676printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h 26677 26678fi 26679 26680 26681 26682 26683 ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default" 26684if test "x$ac_cv_header_signal_h" = xyes 26685then : 26686 printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h 26687 26688fi 26689 26690 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" " 26691#ifdef HAVE_SIGNAL_H 26692#include <signal.h> 26693#endif 26694 26695" 26696if test "x$ac_cv_type_sig_atomic_t" = xyes 26697then : 26698 26699 26700printf "%s\n" "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h 26701 26702 26703fi 26704 26705 case "$ac_cv_type_sig_atomic_t" in 26706 yes) 26707 # 26708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5 26709printf %s "checking if sig_atomic_t is already defined as volatile... " >&6; } 26710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26711/* end confdefs.h. */ 26712 26713 26714#ifdef HAVE_SIGNAL_H 26715#include <signal.h> 26716#endif 26717 26718int 26719main (void) 26720{ 26721 26722 static volatile sig_atomic_t dummy = 0; 26723 26724 ; 26725 return 0; 26726} 26727 26728_ACEOF 26729if ac_fn_c_try_link "$LINENO" 26730then : 26731 26732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26733printf "%s\n" "no" >&6; } 26734 ac_cv_sig_atomic_t_volatile="no" 26735 26736else $as_nop 26737 26738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26739printf "%s\n" "yes" >&6; } 26740 ac_cv_sig_atomic_t_volatile="yes" 26741 26742fi 26743rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26744 conftest$ac_exeext conftest.$ac_ext 26745 # 26746 if test "$ac_cv_sig_atomic_t_volatile" = "yes"; then 26747 26748printf "%s\n" "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h 26749 26750 fi 26751 ;; 26752 esac 26753 26754 26755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 26756printf %s "checking return type of signal handlers... " >&6; } 26757if test ${ac_cv_type_signal+y} 26758then : 26759 printf %s "(cached) " >&6 26760else $as_nop 26761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26762/* end confdefs.h. */ 26763#include <sys/types.h> 26764#include <signal.h> 26765 26766int 26767main (void) 26768{ 26769return *(signal (0, 0)) (0) == 1; 26770 ; 26771 return 0; 26772} 26773_ACEOF 26774if ac_fn_c_try_compile "$LINENO" 26775then : 26776 ac_cv_type_signal=int 26777else $as_nop 26778 ac_cv_type_signal=void 26779fi 26780rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26781fi 26782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 26783printf "%s\n" "$ac_cv_type_signal" >&6; } 26784 26785printf "%s\n" "#define RETSIGTYPE $ac_cv_type_signal" >>confdefs.h 26786 26787 26788 26789 26790 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 26791if test "x$ac_cv_header_sys_types_h" = xyes 26792then : 26793 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 26794 26795fi 26796ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 26797if test "x$ac_cv_header_sys_socket_h" = xyes 26798then : 26799 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 26800 26801fi 26802 26803 # 26804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recv" >&5 26805printf %s "checking for recv... " >&6; } 26806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26807/* end confdefs.h. */ 26808 26809 26810#undef inline 26811#ifdef HAVE_WINDOWS_H 26812#ifndef WIN32_LEAN_AND_MEAN 26813#define WIN32_LEAN_AND_MEAN 26814#endif 26815#include <windows.h> 26816#ifdef HAVE_WINSOCK2_H 26817#include <winsock2.h> 26818#else 26819#ifdef HAVE_WINSOCK_H 26820#include <winsock.h> 26821#endif 26822#endif 26823#else 26824#ifdef HAVE_SYS_TYPES_H 26825#include <sys/types.h> 26826#endif 26827#ifdef HAVE_SYS_SOCKET_H 26828#include <sys/socket.h> 26829#endif 26830#endif 26831 26832int 26833main (void) 26834{ 26835 26836 recv(0, 0, 0, 0); 26837 26838 ; 26839 return 0; 26840} 26841 26842_ACEOF 26843if ac_fn_c_try_link "$LINENO" 26844then : 26845 26846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26847printf "%s\n" "yes" >&6; } 26848 curl_cv_recv="yes" 26849 26850else $as_nop 26851 26852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26853printf "%s\n" "no" >&6; } 26854 curl_cv_recv="no" 26855 26856fi 26857rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26858 conftest$ac_exeext conftest.$ac_ext 26859 # 26860 if test "$curl_cv_recv" = "yes"; then 26861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5 26862printf %s "checking types of args and return type for recv... " >&6; } 26863if test ${curl_cv_func_recv_args+y} 26864then : 26865 printf %s "(cached) " >&6 26866else $as_nop 26867 26868 curl_cv_func_recv_args="unknown" 26869 for recv_retv in 'int' 'ssize_t'; do 26870 for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do 26871 for recv_arg2 in 'char *' 'void *'; do 26872 for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do 26873 for recv_arg4 in 'int' 'unsigned int'; do 26874 if test "$curl_cv_func_recv_args" = "unknown"; then 26875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26876/* end confdefs.h. */ 26877 26878 26879#undef inline 26880#ifdef HAVE_WINDOWS_H 26881#ifndef WIN32_LEAN_AND_MEAN 26882#define WIN32_LEAN_AND_MEAN 26883#endif 26884#include <windows.h> 26885#ifdef HAVE_WINSOCK2_H 26886#include <winsock2.h> 26887#else 26888#ifdef HAVE_WINSOCK_H 26889#include <winsock.h> 26890#endif 26891#endif 26892#define RECVCALLCONV PASCAL 26893#else 26894#ifdef HAVE_SYS_TYPES_H 26895#include <sys/types.h> 26896#endif 26897#ifdef HAVE_SYS_SOCKET_H 26898#include <sys/socket.h> 26899#endif 26900#define RECVCALLCONV 26901#endif 26902 extern $recv_retv RECVCALLCONV 26903 recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4); 26904 26905int 26906main (void) 26907{ 26908 26909 $recv_arg1 s=0; 26910 $recv_arg2 buf=0; 26911 $recv_arg3 len=0; 26912 $recv_arg4 flags=0; 26913 $recv_retv res = recv(s, buf, len, flags); 26914 26915 ; 26916 return 0; 26917} 26918 26919_ACEOF 26920if ac_fn_c_try_compile "$LINENO" 26921then : 26922 26923 curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv" 26924 26925fi 26926rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26927 fi 26928 done 26929 done 26930 done 26931 done 26932 done 26933 26934fi 26935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5 26936printf "%s\n" "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK 26937 if test "$curl_cv_func_recv_args" = "unknown"; then 26938 as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5 26939 else 26940 recv_prev_IFS=$IFS; IFS=',' 26941 set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'` 26942 IFS=$recv_prev_IFS 26943 shift 26944 # 26945 26946printf "%s\n" "#define RECV_TYPE_ARG1 $1" >>confdefs.h 26947 26948 26949printf "%s\n" "#define RECV_TYPE_ARG2 $2" >>confdefs.h 26950 26951 26952printf "%s\n" "#define RECV_TYPE_ARG3 $3" >>confdefs.h 26953 26954 26955printf "%s\n" "#define RECV_TYPE_ARG4 $4" >>confdefs.h 26956 26957 26958printf "%s\n" "#define RECV_TYPE_RETV $5" >>confdefs.h 26959 26960 # 26961 26962printf "%s\n" "#define HAVE_RECV 1" >>confdefs.h 26963 26964 ac_cv_func_recv="yes" 26965 fi 26966 else 26967 as_fn_error $? "Unable to link function recv" "$LINENO" 5 26968 fi 26969 26970 26971 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 26972if test "x$ac_cv_header_sys_types_h" = xyes 26973then : 26974 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 26975 26976fi 26977ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 26978if test "x$ac_cv_header_sys_socket_h" = xyes 26979then : 26980 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 26981 26982fi 26983 26984 # 26985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recvfrom" >&5 26986printf %s "checking for recvfrom... " >&6; } 26987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26988/* end confdefs.h. */ 26989 26990 26991#undef inline 26992#ifdef HAVE_WINDOWS_H 26993#ifndef WIN32_LEAN_AND_MEAN 26994#define WIN32_LEAN_AND_MEAN 26995#endif 26996#include <windows.h> 26997#ifdef HAVE_WINSOCK2_H 26998#include <winsock2.h> 26999#else 27000#ifdef HAVE_WINSOCK_H 27001#include <winsock.h> 27002#endif 27003#endif 27004#else 27005#ifdef HAVE_SYS_TYPES_H 27006#include <sys/types.h> 27007#endif 27008#ifdef HAVE_SYS_SOCKET_H 27009#include <sys/socket.h> 27010#endif 27011#endif 27012 27013int 27014main (void) 27015{ 27016 27017 recvfrom(0, 0, 0, 0, 0, 0); 27018 27019 ; 27020 return 0; 27021} 27022 27023_ACEOF 27024if ac_fn_c_try_link "$LINENO" 27025then : 27026 27027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27028printf "%s\n" "yes" >&6; } 27029 curl_cv_recvfrom="yes" 27030 27031else $as_nop 27032 27033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27034printf "%s\n" "no" >&6; } 27035 curl_cv_recvfrom="no" 27036 27037fi 27038rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27039 conftest$ac_exeext conftest.$ac_ext 27040 # 27041 if test "$curl_cv_recvfrom" = "yes"; then 27042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recvfrom" >&5 27043printf %s "checking types of args and return type for recvfrom... " >&6; } 27044if test ${curl_cv_func_recvfrom_args+y} 27045then : 27046 printf %s "(cached) " >&6 27047else $as_nop 27048 27049 curl_cv_func_recvfrom_args="unknown" 27050 for recvfrom_retv in 'int' 'ssize_t'; do 27051 for recvfrom_arg1 in 'int' 'ssize_t' 'SOCKET'; do 27052 for recvfrom_arg2 in 'char *' 'void *'; do 27053 for recvfrom_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do 27054 for recvfrom_arg4 in 'int' 'unsigned int'; do 27055 for recvfrom_arg5 in 'struct sockaddr *' 'void *' 'const struct sockaddr *'; do 27056 for recvfrom_arg6 in 'socklen_t *' 'int *' 'unsigned int *' 'size_t *' 'void *'; do 27057 if test "$curl_cv_func_recvfrom_args" = "unknown"; then 27058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27059/* end confdefs.h. */ 27060 27061 27062#undef inline 27063#ifdef HAVE_WINDOWS_H 27064#ifndef WIN32_LEAN_AND_MEAN 27065#define WIN32_LEAN_AND_MEAN 27066#endif 27067#include <windows.h> 27068#ifdef HAVE_WINSOCK2_H 27069#include <winsock2.h> 27070#else 27071#ifdef HAVE_WINSOCK_H 27072#include <winsock.h> 27073#endif 27074#endif 27075#define RECVFROMCALLCONV PASCAL 27076#else 27077#ifdef HAVE_SYS_TYPES_H 27078#include <sys/types.h> 27079#endif 27080#ifdef HAVE_SYS_SOCKET_H 27081#include <sys/socket.h> 27082#endif 27083#define RECVFROMCALLCONV 27084#endif 27085 extern $recvfrom_retv RECVFROMCALLCONV 27086 recvfrom($recvfrom_arg1, $recvfrom_arg2, 27087 $recvfrom_arg3, $recvfrom_arg4, 27088 $recvfrom_arg5, $recvfrom_arg6); 27089 27090int 27091main (void) 27092{ 27093 27094 $recvfrom_arg1 s=0; 27095 $recvfrom_arg2 buf=0; 27096 $recvfrom_arg3 len=0; 27097 $recvfrom_arg4 flags=0; 27098 $recvfrom_arg5 addr=0; 27099 $recvfrom_arg6 addrlen=0; 27100 $recvfrom_retv res=0; 27101 res = recvfrom(s, buf, len, flags, addr, addrlen); 27102 27103 ; 27104 return 0; 27105} 27106 27107_ACEOF 27108if ac_fn_c_try_compile "$LINENO" 27109then : 27110 27111 curl_cv_func_recvfrom_args="$recvfrom_arg1,$recvfrom_arg2,$recvfrom_arg3,$recvfrom_arg4,$recvfrom_arg5,$recvfrom_arg6,$recvfrom_retv" 27112 27113fi 27114rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 27115 fi 27116 done 27117 done 27118 done 27119 done 27120 done 27121 done 27122 done 27123 27124fi 27125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recvfrom_args" >&5 27126printf "%s\n" "$curl_cv_func_recvfrom_args" >&6; } # AC-CACHE-CHECK 27127 # Nearly last minute change for this release starts here 27128 27129printf "%s\n" "#define HAVE_RECVFROM 1" >>confdefs.h 27130 27131 ac_cv_func_recvfrom="yes" 27132 # Nearly last minute change for this release ends here 27133 if test "$curl_cv_func_recvfrom_args" = "unknown"; then 27134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for recvfrom args" >&5 27135printf "%s\n" "$as_me: WARNING: Cannot find proper types to use for recvfrom args" >&2;} 27136 else 27137 recvfrom_prev_IFS=$IFS; IFS=',' 27138 set dummy `echo "$curl_cv_func_recvfrom_args" | sed 's/\*/\*/g'` 27139 IFS=$recvfrom_prev_IFS 27140 shift 27141 # 27142 recvfrom_ptrt_arg2=$2 27143 recvfrom_qual_ptrt_arg5=$5 27144 recvfrom_ptrt_arg6=$6 27145 # 27146 27147printf "%s\n" "#define RECVFROM_TYPE_ARG1 $1" >>confdefs.h 27148 27149 27150printf "%s\n" "#define RECVFROM_TYPE_ARG3 $3" >>confdefs.h 27151 27152 27153printf "%s\n" "#define RECVFROM_TYPE_ARG4 $4" >>confdefs.h 27154 27155 27156printf "%s\n" "#define RECVFROM_TYPE_RETV $7" >>confdefs.h 27157 27158 # 27159 prev_sh_opts=$- 27160 # 27161 case $prev_sh_opts in 27162 *f*) 27163 ;; 27164 *) 27165 set -f 27166 ;; 27167 esac 27168 # 27169 case "$recvfrom_qual_ptrt_arg5" in 27170 const*) 27171 recvfrom_qual_arg5=const 27172 recvfrom_ptrt_arg5=`echo $recvfrom_qual_ptrt_arg5 | sed 's/^const //'` 27173 ;; 27174 *) 27175 recvfrom_qual_arg5= 27176 recvfrom_ptrt_arg5=$recvfrom_qual_ptrt_arg5 27177 ;; 27178 esac 27179 # 27180 recvfrom_type_arg2=`echo $recvfrom_ptrt_arg2 | sed 's/ \*//'` 27181 recvfrom_type_arg5=`echo $recvfrom_ptrt_arg5 | sed 's/ \*//'` 27182 recvfrom_type_arg6=`echo $recvfrom_ptrt_arg6 | sed 's/ \*//'` 27183 # 27184 27185printf "%s\n" "#define RECVFROM_TYPE_ARG2 $recvfrom_type_arg2" >>confdefs.h 27186 27187 27188printf "%s\n" "#define RECVFROM_QUAL_ARG5 $recvfrom_qual_arg5" >>confdefs.h 27189 27190 27191printf "%s\n" "#define RECVFROM_TYPE_ARG5 $recvfrom_type_arg5" >>confdefs.h 27192 27193 27194printf "%s\n" "#define RECVFROM_TYPE_ARG6 $recvfrom_type_arg6" >>confdefs.h 27195 27196 # 27197 if test "$recvfrom_type_arg2" = "void"; then 27198 27199printf "%s\n" "#define RECVFROM_TYPE_ARG2_IS_VOID 1" >>confdefs.h 27200 27201 fi 27202 if test "$recvfrom_type_arg5" = "void"; then 27203 27204printf "%s\n" "#define RECVFROM_TYPE_ARG5_IS_VOID 1" >>confdefs.h 27205 27206 fi 27207 if test "$recvfrom_type_arg6" = "void"; then 27208 27209printf "%s\n" "#define RECVFROM_TYPE_ARG6_IS_VOID 1" >>confdefs.h 27210 27211 fi 27212 # 27213 case $prev_sh_opts in 27214 *f*) 27215 ;; 27216 *) 27217 set +f 27218 ;; 27219 esac 27220 # 27221 27222printf "%s\n" "#define HAVE_RECVFROM 1" >>confdefs.h 27223 27224 ac_cv_func_recvfrom="yes" 27225 fi 27226 else 27227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unable to link function recvfrom" >&5 27228printf "%s\n" "$as_me: WARNING: Unable to link function recvfrom" >&2;} 27229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Your system will be vulnerable to some forms of DNS cache poisoning" >&5 27230printf "%s\n" "$as_me: WARNING: Your system will be vulnerable to some forms of DNS cache poisoning" >&2;} 27231 fi 27232 27233 27234 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 27235if test "x$ac_cv_header_sys_types_h" = xyes 27236then : 27237 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 27238 27239fi 27240ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 27241if test "x$ac_cv_header_sys_socket_h" = xyes 27242then : 27243 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 27244 27245fi 27246 27247 # 27248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for send" >&5 27249printf %s "checking for send... " >&6; } 27250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27251/* end confdefs.h. */ 27252 27253 27254#undef inline 27255#ifdef HAVE_WINDOWS_H 27256#ifndef WIN32_LEAN_AND_MEAN 27257#define WIN32_LEAN_AND_MEAN 27258#endif 27259#include <windows.h> 27260#ifdef HAVE_WINSOCK2_H 27261#include <winsock2.h> 27262#else 27263#ifdef HAVE_WINSOCK_H 27264#include <winsock.h> 27265#endif 27266#endif 27267#else 27268#ifdef HAVE_SYS_TYPES_H 27269#include <sys/types.h> 27270#endif 27271#ifdef HAVE_SYS_SOCKET_H 27272#include <sys/socket.h> 27273#endif 27274#endif 27275 27276int 27277main (void) 27278{ 27279 27280 send(0, 0, 0, 0); 27281 27282 ; 27283 return 0; 27284} 27285 27286_ACEOF 27287if ac_fn_c_try_link "$LINENO" 27288then : 27289 27290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27291printf "%s\n" "yes" >&6; } 27292 curl_cv_send="yes" 27293 27294else $as_nop 27295 27296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27297printf "%s\n" "no" >&6; } 27298 curl_cv_send="no" 27299 27300fi 27301rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27302 conftest$ac_exeext conftest.$ac_ext 27303 # 27304 if test "$curl_cv_send" = "yes"; then 27305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5 27306printf %s "checking types of args and return type for send... " >&6; } 27307if test ${curl_cv_func_send_args+y} 27308then : 27309 printf %s "(cached) " >&6 27310else $as_nop 27311 27312 curl_cv_func_send_args="unknown" 27313 for send_retv in 'int' 'ssize_t'; do 27314 for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do 27315 for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do 27316 for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do 27317 for send_arg4 in 'int' 'unsigned int'; do 27318 if test "$curl_cv_func_send_args" = "unknown"; then 27319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27320/* end confdefs.h. */ 27321 27322 27323#undef inline 27324#ifdef HAVE_WINDOWS_H 27325#ifndef WIN32_LEAN_AND_MEAN 27326#define WIN32_LEAN_AND_MEAN 27327#endif 27328#include <windows.h> 27329#ifdef HAVE_WINSOCK2_H 27330#include <winsock2.h> 27331#else 27332#ifdef HAVE_WINSOCK_H 27333#include <winsock.h> 27334#endif 27335#endif 27336#define SENDCALLCONV PASCAL 27337#else 27338#ifdef HAVE_SYS_TYPES_H 27339#include <sys/types.h> 27340#endif 27341#ifdef HAVE_SYS_SOCKET_H 27342#include <sys/socket.h> 27343#endif 27344#define SENDCALLCONV 27345#endif 27346 extern $send_retv SENDCALLCONV 27347 send($send_arg1, $send_arg2, $send_arg3, $send_arg4); 27348 27349int 27350main (void) 27351{ 27352 27353 $send_arg1 s=0; 27354 $send_arg3 len=0; 27355 $send_arg4 flags=0; 27356 $send_retv res = send(s, 0, len, flags); 27357 27358 ; 27359 return 0; 27360} 27361 27362_ACEOF 27363if ac_fn_c_try_compile "$LINENO" 27364then : 27365 27366 curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv" 27367 27368fi 27369rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 27370 fi 27371 done 27372 done 27373 done 27374 done 27375 done 27376 27377fi 27378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5 27379printf "%s\n" "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK 27380 if test "$curl_cv_func_send_args" = "unknown"; then 27381 as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5 27382 else 27383 send_prev_IFS=$IFS; IFS=',' 27384 set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'` 27385 IFS=$send_prev_IFS 27386 shift 27387 # 27388 send_qual_type_arg2=$2 27389 # 27390 27391printf "%s\n" "#define SEND_TYPE_ARG1 $1" >>confdefs.h 27392 27393 27394printf "%s\n" "#define SEND_TYPE_ARG3 $3" >>confdefs.h 27395 27396 27397printf "%s\n" "#define SEND_TYPE_ARG4 $4" >>confdefs.h 27398 27399 27400printf "%s\n" "#define SEND_TYPE_RETV $5" >>confdefs.h 27401 27402 # 27403 prev_sh_opts=$- 27404 # 27405 case $prev_sh_opts in 27406 *f*) 27407 ;; 27408 *) 27409 set -f 27410 ;; 27411 esac 27412 # 27413 case "$send_qual_type_arg2" in 27414 const*) 27415 send_qual_arg2=const 27416 send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'` 27417 ;; 27418 *) 27419 send_qual_arg2= 27420 send_type_arg2=$send_qual_type_arg2 27421 ;; 27422 esac 27423 # 27424 27425printf "%s\n" "#define SEND_QUAL_ARG2 $send_qual_arg2" >>confdefs.h 27426 27427 27428printf "%s\n" "#define SEND_TYPE_ARG2 $send_type_arg2" >>confdefs.h 27429 27430 # 27431 case $prev_sh_opts in 27432 *f*) 27433 ;; 27434 *) 27435 set +f 27436 ;; 27437 esac 27438 # 27439 27440printf "%s\n" "#define HAVE_SEND 1" >>confdefs.h 27441 27442 ac_cv_func_send="yes" 27443 fi 27444 else 27445 as_fn_error $? "Unable to link function send" "$LINENO" 5 27446 fi 27447 27448 27449 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 27450if test "x$ac_cv_header_sys_types_h" = xyes 27451then : 27452 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 27453 27454fi 27455ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 27456if test "x$ac_cv_header_sys_socket_h" = xyes 27457then : 27458 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 27459 27460fi 27461 27462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5 27463printf %s "checking for MSG_NOSIGNAL... " >&6; } 27464if test ${ac_cv_msg_nosignal+y} 27465then : 27466 printf %s "(cached) " >&6 27467else $as_nop 27468 27469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27470/* end confdefs.h. */ 27471 27472 27473#undef inline 27474#ifdef HAVE_WINDOWS_H 27475#ifndef WIN32_LEAN_AND_MEAN 27476#define WIN32_LEAN_AND_MEAN 27477#endif 27478#include <windows.h> 27479#ifdef HAVE_WINSOCK2_H 27480#include <winsock2.h> 27481#else 27482#ifdef HAVE_WINSOCK_H 27483#include <winsock.h> 27484#endif 27485#endif 27486#else 27487#ifdef HAVE_SYS_TYPES_H 27488#include <sys/types.h> 27489#endif 27490#ifdef HAVE_SYS_SOCKET_H 27491#include <sys/socket.h> 27492#endif 27493#endif 27494 27495int 27496main (void) 27497{ 27498 27499 int flag=MSG_NOSIGNAL; 27500 27501 ; 27502 return 0; 27503} 27504 27505_ACEOF 27506if ac_fn_c_try_compile "$LINENO" 27507then : 27508 27509 ac_cv_msg_nosignal="yes" 27510 27511else $as_nop 27512 27513 ac_cv_msg_nosignal="no" 27514 27515fi 27516rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 27517 27518fi 27519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_msg_nosignal" >&5 27520printf "%s\n" "$ac_cv_msg_nosignal" >&6; } 27521 case "$ac_cv_msg_nosignal" in 27522 yes) 27523 27524printf "%s\n" "#define HAVE_MSG_NOSIGNAL 1" >>confdefs.h 27525 27526 ;; 27527 esac 27528 27529 27530 27531cares_includes_socket="\ 27532/* includes start */ 27533#ifdef HAVE_SYS_TYPES_H 27534# include <sys/types.h> 27535#endif 27536#ifdef HAVE_SOCKET_H 27537# include <socket.h> 27538#endif 27539/* includes end */" 27540 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$cares_includes_socket 27541" 27542if test "x$ac_cv_header_sys_types_h" = xyes 27543then : 27544 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 27545 27546fi 27547ac_fn_c_check_header_compile "$LINENO" "socket.h" "ac_cv_header_socket_h" "$cares_includes_socket 27548" 27549if test "x$ac_cv_header_socket_h" = xyes 27550then : 27551 printf "%s\n" "#define HAVE_SOCKET_H 1" >>confdefs.h 27552 27553fi 27554 27555 27556 27557 # 27558 tst_links_closesocket="unknown" 27559 tst_proto_closesocket="unknown" 27560 tst_compi_closesocket="unknown" 27561 tst_allow_closesocket="unknown" 27562 # 27563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5 27564printf %s "checking if closesocket can be linked... " >&6; } 27565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27566/* end confdefs.h. */ 27567 27568 27569 $cares_includes_winsock2 27570 $cares_includes_socket 27571 27572int 27573main (void) 27574{ 27575 27576 if(0 != closesocket(0)) 27577 return 1; 27578 27579 ; 27580 return 0; 27581} 27582 27583_ACEOF 27584if ac_fn_c_try_link "$LINENO" 27585then : 27586 27587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27588printf "%s\n" "yes" >&6; } 27589 tst_links_closesocket="yes" 27590 27591else $as_nop 27592 27593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27594printf "%s\n" "no" >&6; } 27595 tst_links_closesocket="no" 27596 27597fi 27598rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27599 conftest$ac_exeext conftest.$ac_ext 27600 # 27601 if test "$tst_links_closesocket" = "yes"; then 27602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5 27603printf %s "checking if closesocket is prototyped... " >&6; } 27604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27605/* end confdefs.h. */ 27606 27607 $cares_includes_winsock2 27608 $cares_includes_socket 27609 27610_ACEOF 27611if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 27612 $EGREP "closesocket" >/dev/null 2>&1 27613then : 27614 27615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27616printf "%s\n" "yes" >&6; } 27617 tst_proto_closesocket="yes" 27618 27619else $as_nop 27620 27621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27622printf "%s\n" "no" >&6; } 27623 tst_proto_closesocket="no" 27624 27625fi 27626rm -rf conftest* 27627 27628 fi 27629 # 27630 if test "$tst_proto_closesocket" = "yes"; then 27631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5 27632printf %s "checking if closesocket is compilable... " >&6; } 27633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27634/* end confdefs.h. */ 27635 27636 27637 $cares_includes_winsock2 27638 $cares_includes_socket 27639 27640int 27641main (void) 27642{ 27643 27644 if(0 != closesocket(0)) 27645 return 1; 27646 27647 ; 27648 return 0; 27649} 27650 27651_ACEOF 27652if ac_fn_c_try_compile "$LINENO" 27653then : 27654 27655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27656printf "%s\n" "yes" >&6; } 27657 tst_compi_closesocket="yes" 27658 27659else $as_nop 27660 27661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27662printf "%s\n" "no" >&6; } 27663 tst_compi_closesocket="no" 27664 27665fi 27666rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 27667 fi 27668 # 27669 if test "$tst_compi_closesocket" = "yes"; then 27670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5 27671printf %s "checking if closesocket usage allowed... " >&6; } 27672 if test "x$cares_disallow_closesocket" != "xyes"; then 27673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27674printf "%s\n" "yes" >&6; } 27675 tst_allow_closesocket="yes" 27676 else 27677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27678printf "%s\n" "no" >&6; } 27679 tst_allow_closesocket="no" 27680 fi 27681 fi 27682 # 27683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5 27684printf %s "checking if closesocket might be used... " >&6; } 27685 if test "$tst_links_closesocket" = "yes" && 27686 test "$tst_proto_closesocket" = "yes" && 27687 test "$tst_compi_closesocket" = "yes" && 27688 test "$tst_allow_closesocket" = "yes"; then 27689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27690printf "%s\n" "yes" >&6; } 27691 27692printf "%s\n" "#define HAVE_CLOSESOCKET 1" >>confdefs.h 27693 27694 ac_cv_func_closesocket="yes" 27695 else 27696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27697printf "%s\n" "no" >&6; } 27698 ac_cv_func_closesocket="no" 27699 fi 27700 27701 27702 # 27703 tst_links_closesocket_camel="unknown" 27704 tst_proto_closesocket_camel="unknown" 27705 tst_compi_closesocket_camel="unknown" 27706 tst_allow_closesocket_camel="unknown" 27707 # 27708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5 27709printf %s "checking if CloseSocket can be linked... " >&6; } 27710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27711/* end confdefs.h. */ 27712 27713 27714 $cares_includes_sys_socket 27715 27716int 27717main (void) 27718{ 27719 27720 if(0 != CloseSocket(0)) 27721 return 1; 27722 27723 ; 27724 return 0; 27725} 27726 27727_ACEOF 27728if ac_fn_c_try_link "$LINENO" 27729then : 27730 27731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27732printf "%s\n" "yes" >&6; } 27733 tst_links_closesocket_camel="yes" 27734 27735else $as_nop 27736 27737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27738printf "%s\n" "no" >&6; } 27739 tst_links_closesocket_camel="no" 27740 27741fi 27742rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27743 conftest$ac_exeext conftest.$ac_ext 27744 # 27745 if test "$tst_links_closesocket_camel" = "yes"; then 27746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5 27747printf %s "checking if CloseSocket is prototyped... " >&6; } 27748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27749/* end confdefs.h. */ 27750 27751 $cares_includes_sys_socket 27752 27753_ACEOF 27754if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 27755 $EGREP "CloseSocket" >/dev/null 2>&1 27756then : 27757 27758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27759printf "%s\n" "yes" >&6; } 27760 tst_proto_closesocket_camel="yes" 27761 27762else $as_nop 27763 27764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27765printf "%s\n" "no" >&6; } 27766 tst_proto_closesocket_camel="no" 27767 27768fi 27769rm -rf conftest* 27770 27771 fi 27772 # 27773 if test "$tst_proto_closesocket_camel" = "yes"; then 27774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5 27775printf %s "checking if CloseSocket is compilable... " >&6; } 27776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27777/* end confdefs.h. */ 27778 27779 27780 $cares_includes_sys_socket 27781 27782int 27783main (void) 27784{ 27785 27786 if(0 != CloseSocket(0)) 27787 return 1; 27788 27789 ; 27790 return 0; 27791} 27792 27793_ACEOF 27794if ac_fn_c_try_compile "$LINENO" 27795then : 27796 27797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27798printf "%s\n" "yes" >&6; } 27799 tst_compi_closesocket_camel="yes" 27800 27801else $as_nop 27802 27803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27804printf "%s\n" "no" >&6; } 27805 tst_compi_closesocket_camel="no" 27806 27807fi 27808rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 27809 fi 27810 # 27811 if test "$tst_compi_closesocket_camel" = "yes"; then 27812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5 27813printf %s "checking if CloseSocket usage allowed... " >&6; } 27814 if test "x$cares_disallow_closesocket_camel" != "xyes"; then 27815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27816printf "%s\n" "yes" >&6; } 27817 tst_allow_closesocket_camel="yes" 27818 else 27819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27820printf "%s\n" "no" >&6; } 27821 tst_allow_closesocket_camel="no" 27822 fi 27823 fi 27824 # 27825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5 27826printf %s "checking if CloseSocket might be used... " >&6; } 27827 if test "$tst_links_closesocket_camel" = "yes" && 27828 test "$tst_proto_closesocket_camel" = "yes" && 27829 test "$tst_compi_closesocket_camel" = "yes" && 27830 test "$tst_allow_closesocket_camel" = "yes"; then 27831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27832printf "%s\n" "yes" >&6; } 27833 27834printf "%s\n" "#define HAVE_CLOSESOCKET_CAMEL 1" >>confdefs.h 27835 27836 ac_cv_func_closesocket_camel="yes" 27837 else 27838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27839printf "%s\n" "no" >&6; } 27840 ac_cv_func_closesocket_camel="no" 27841 fi 27842 27843 27844 # 27845 tst_links_connect="unknown" 27846 tst_proto_connect="unknown" 27847 tst_compi_connect="unknown" 27848 tst_allow_connect="unknown" 27849 # 27850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5 27851printf %s "checking if connect can be linked... " >&6; } 27852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27853/* end confdefs.h. */ 27854 27855 27856 $cares_includes_winsock2 27857 $cares_includes_sys_socket 27858 $cares_includes_socket 27859 27860int 27861main (void) 27862{ 27863 27864 if(0 != connect(0, 0, 0)) 27865 return 1; 27866 27867 ; 27868 return 0; 27869} 27870 27871_ACEOF 27872if ac_fn_c_try_link "$LINENO" 27873then : 27874 27875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27876printf "%s\n" "yes" >&6; } 27877 tst_links_connect="yes" 27878 27879else $as_nop 27880 27881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27882printf "%s\n" "no" >&6; } 27883 tst_links_connect="no" 27884 27885fi 27886rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27887 conftest$ac_exeext conftest.$ac_ext 27888 # 27889 if test "$tst_links_connect" = "yes"; then 27890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5 27891printf %s "checking if connect is prototyped... " >&6; } 27892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27893/* end confdefs.h. */ 27894 27895 $cares_includes_winsock2 27896 $cares_includes_sys_socket 27897 $cares_includes_socket 27898 27899_ACEOF 27900if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 27901 $EGREP "connect" >/dev/null 2>&1 27902then : 27903 27904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27905printf "%s\n" "yes" >&6; } 27906 tst_proto_connect="yes" 27907 27908else $as_nop 27909 27910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27911printf "%s\n" "no" >&6; } 27912 tst_proto_connect="no" 27913 27914fi 27915rm -rf conftest* 27916 27917 fi 27918 # 27919 if test "$tst_proto_connect" = "yes"; then 27920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5 27921printf %s "checking if connect is compilable... " >&6; } 27922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27923/* end confdefs.h. */ 27924 27925 27926 $cares_includes_winsock2 27927 $cares_includes_sys_socket 27928 $cares_includes_socket 27929 27930int 27931main (void) 27932{ 27933 27934 if(0 != connect(0, 0, 0)) 27935 return 1; 27936 27937 ; 27938 return 0; 27939} 27940 27941_ACEOF 27942if ac_fn_c_try_compile "$LINENO" 27943then : 27944 27945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27946printf "%s\n" "yes" >&6; } 27947 tst_compi_connect="yes" 27948 27949else $as_nop 27950 27951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27952printf "%s\n" "no" >&6; } 27953 tst_compi_connect="no" 27954 27955fi 27956rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 27957 fi 27958 # 27959 if test "$tst_compi_connect" = "yes"; then 27960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5 27961printf %s "checking if connect usage allowed... " >&6; } 27962 if test "x$cares_disallow_connect" != "xyes"; then 27963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27964printf "%s\n" "yes" >&6; } 27965 tst_allow_connect="yes" 27966 else 27967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27968printf "%s\n" "no" >&6; } 27969 tst_allow_connect="no" 27970 fi 27971 fi 27972 # 27973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5 27974printf %s "checking if connect might be used... " >&6; } 27975 if test "$tst_links_connect" = "yes" && 27976 test "$tst_proto_connect" = "yes" && 27977 test "$tst_compi_connect" = "yes" && 27978 test "$tst_allow_connect" = "yes"; then 27979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27980printf "%s\n" "yes" >&6; } 27981 27982printf "%s\n" "#define HAVE_CONNECT 1" >>confdefs.h 27983 27984 ac_cv_func_connect="yes" 27985 else 27986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27987printf "%s\n" "no" >&6; } 27988 ac_cv_func_connect="no" 27989 fi 27990 27991 27992cares_includes_fcntl="\ 27993/* includes start */ 27994#ifdef HAVE_SYS_TYPES_H 27995# include <sys/types.h> 27996#endif 27997#ifdef HAVE_UNISTD_H 27998# include <unistd.h> 27999#endif 28000#ifdef HAVE_FCNTL_H 28001# include <fcntl.h> 28002#endif 28003/* includes end */" 28004 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$cares_includes_fcntl 28005" 28006if test "x$ac_cv_header_sys_types_h" = xyes 28007then : 28008 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 28009 28010fi 28011ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$cares_includes_fcntl 28012" 28013if test "x$ac_cv_header_unistd_h" = xyes 28014then : 28015 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h 28016 28017fi 28018ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$cares_includes_fcntl 28019" 28020if test "x$ac_cv_header_fcntl_h" = xyes 28021then : 28022 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h 28023 28024fi 28025 28026 28027 28028 # 28029 tst_links_fcntl="unknown" 28030 tst_proto_fcntl="unknown" 28031 tst_compi_fcntl="unknown" 28032 tst_allow_fcntl="unknown" 28033 # 28034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5 28035printf %s "checking if fcntl can be linked... " >&6; } 28036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28037/* end confdefs.h. */ 28038 28039 /* Define fcntl to an innocuous variant, in case <limits.h> declares fcntl. 28040 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 28041#define fcntl innocuous_fcntl 28042 28043/* System header to define __stub macros and hopefully few prototypes, 28044 which can conflict with char fcntl (); below. */ 28045 28046#include <limits.h> 28047#undef fcntl 28048 28049/* Override any GCC internal prototype to avoid an error. 28050 Use char because int might match the return type of a GCC 28051 builtin and then its argument prototype would still apply. */ 28052#ifdef __cplusplus 28053extern "C" 28054#endif 28055char fcntl (); 28056/* The GNU C library defines this for functions which it implements 28057 to always fail with ENOSYS. Some functions are actually named 28058 something starting with __ and the normal name is an alias. */ 28059#if defined __stub_fcntl || defined __stub___fcntl 28060choke me 28061#endif 28062 28063int 28064main (void) 28065{ 28066return fcntl (); 28067 ; 28068 return 0; 28069} 28070 28071_ACEOF 28072if ac_fn_c_try_link "$LINENO" 28073then : 28074 28075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28076printf "%s\n" "yes" >&6; } 28077 tst_links_fcntl="yes" 28078 28079else $as_nop 28080 28081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28082printf "%s\n" "no" >&6; } 28083 tst_links_fcntl="no" 28084 28085fi 28086rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28087 conftest$ac_exeext conftest.$ac_ext 28088 # 28089 if test "$tst_links_fcntl" = "yes"; then 28090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5 28091printf %s "checking if fcntl is prototyped... " >&6; } 28092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28093/* end confdefs.h. */ 28094 28095 $cares_includes_fcntl 28096 28097_ACEOF 28098if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28099 $EGREP "fcntl" >/dev/null 2>&1 28100then : 28101 28102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28103printf "%s\n" "yes" >&6; } 28104 tst_proto_fcntl="yes" 28105 28106else $as_nop 28107 28108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28109printf "%s\n" "no" >&6; } 28110 tst_proto_fcntl="no" 28111 28112fi 28113rm -rf conftest* 28114 28115 fi 28116 # 28117 if test "$tst_proto_fcntl" = "yes"; then 28118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5 28119printf %s "checking if fcntl is compilable... " >&6; } 28120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28121/* end confdefs.h. */ 28122 28123 28124 $cares_includes_fcntl 28125 28126int 28127main (void) 28128{ 28129 28130 if(0 != fcntl(0, 0, 0)) 28131 return 1; 28132 28133 ; 28134 return 0; 28135} 28136 28137_ACEOF 28138if ac_fn_c_try_compile "$LINENO" 28139then : 28140 28141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28142printf "%s\n" "yes" >&6; } 28143 tst_compi_fcntl="yes" 28144 28145else $as_nop 28146 28147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28148printf "%s\n" "no" >&6; } 28149 tst_compi_fcntl="no" 28150 28151fi 28152rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 28153 fi 28154 # 28155 if test "$tst_compi_fcntl" = "yes"; then 28156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5 28157printf %s "checking if fcntl usage allowed... " >&6; } 28158 if test "x$cares_disallow_fcntl" != "xyes"; then 28159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28160printf "%s\n" "yes" >&6; } 28161 tst_allow_fcntl="yes" 28162 else 28163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28164printf "%s\n" "no" >&6; } 28165 tst_allow_fcntl="no" 28166 fi 28167 fi 28168 # 28169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5 28170printf %s "checking if fcntl might be used... " >&6; } 28171 if test "$tst_links_fcntl" = "yes" && 28172 test "$tst_proto_fcntl" = "yes" && 28173 test "$tst_compi_fcntl" = "yes" && 28174 test "$tst_allow_fcntl" = "yes"; then 28175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28176printf "%s\n" "yes" >&6; } 28177 28178printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h 28179 28180 ac_cv_func_fcntl="yes" 28181 28182 # 28183 tst_compi_fcntl_o_nonblock="unknown" 28184 tst_allow_fcntl_o_nonblock="unknown" 28185 # 28186 case $host_os in 28187 sunos4* | aix3* | beos*) 28188 cares_disallow_fcntl_o_nonblock="yes" 28189 ;; 28190 esac 28191 # 28192 if test "$ac_cv_func_fcntl" = "yes"; then 28193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5 28194printf %s "checking if fcntl O_NONBLOCK is compilable... " >&6; } 28195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28196/* end confdefs.h. */ 28197 28198 28199 $cares_includes_fcntl 28200 28201int 28202main (void) 28203{ 28204 28205 int flags = 0; 28206 if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK)) 28207 return 1; 28208 28209 ; 28210 return 0; 28211} 28212 28213_ACEOF 28214if ac_fn_c_try_compile "$LINENO" 28215then : 28216 28217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28218printf "%s\n" "yes" >&6; } 28219 tst_compi_fcntl_o_nonblock="yes" 28220 28221else $as_nop 28222 28223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28224printf "%s\n" "no" >&6; } 28225 tst_compi_fcntl_o_nonblock="no" 28226 28227fi 28228rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 28229 fi 28230 # 28231 if test "$tst_compi_fcntl_o_nonblock" = "yes"; then 28232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5 28233printf %s "checking if fcntl O_NONBLOCK usage allowed... " >&6; } 28234 if test "x$cares_disallow_fcntl_o_nonblock" != "xyes"; then 28235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28236printf "%s\n" "yes" >&6; } 28237 tst_allow_fcntl_o_nonblock="yes" 28238 else 28239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28240printf "%s\n" "no" >&6; } 28241 tst_allow_fcntl_o_nonblock="no" 28242 fi 28243 fi 28244 # 28245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5 28246printf %s "checking if fcntl O_NONBLOCK might be used... " >&6; } 28247 if test "$tst_compi_fcntl_o_nonblock" = "yes" && 28248 test "$tst_allow_fcntl_o_nonblock" = "yes"; then 28249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28250printf "%s\n" "yes" >&6; } 28251 28252printf "%s\n" "#define HAVE_FCNTL_O_NONBLOCK 1" >>confdefs.h 28253 28254 ac_cv_func_fcntl_o_nonblock="yes" 28255 else 28256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28257printf "%s\n" "no" >&6; } 28258 ac_cv_func_fcntl_o_nonblock="no" 28259 fi 28260 28261 else 28262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28263printf "%s\n" "no" >&6; } 28264 ac_cv_func_fcntl="no" 28265 fi 28266 28267 28268cares_includes_netdb="\ 28269/* includes start */ 28270#ifdef HAVE_SYS_TYPES_H 28271# include <sys/types.h> 28272#endif 28273#ifdef HAVE_NETDB_H 28274# include <netdb.h> 28275#endif 28276/* includes end */" 28277 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$cares_includes_netdb 28278" 28279if test "x$ac_cv_header_sys_types_h" = xyes 28280then : 28281 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 28282 28283fi 28284ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$cares_includes_netdb 28285" 28286if test "x$ac_cv_header_netdb_h" = xyes 28287then : 28288 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h 28289 28290fi 28291 28292 28293 28294 # 28295 tst_links_freeaddrinfo="unknown" 28296 tst_proto_freeaddrinfo="unknown" 28297 tst_compi_freeaddrinfo="unknown" 28298 tst_allow_freeaddrinfo="unknown" 28299 # 28300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5 28301printf %s "checking if freeaddrinfo can be linked... " >&6; } 28302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28303/* end confdefs.h. */ 28304 28305 28306 $cares_includes_ws2tcpip 28307 $cares_includes_sys_socket 28308 $cares_includes_netdb 28309 28310int 28311main (void) 28312{ 28313 28314 freeaddrinfo(0); 28315 28316 ; 28317 return 0; 28318} 28319 28320_ACEOF 28321if ac_fn_c_try_link "$LINENO" 28322then : 28323 28324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28325printf "%s\n" "yes" >&6; } 28326 tst_links_freeaddrinfo="yes" 28327 28328else $as_nop 28329 28330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28331printf "%s\n" "no" >&6; } 28332 tst_links_freeaddrinfo="no" 28333 28334fi 28335rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28336 conftest$ac_exeext conftest.$ac_ext 28337 # 28338 if test "$tst_links_freeaddrinfo" = "yes"; then 28339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5 28340printf %s "checking if freeaddrinfo is prototyped... " >&6; } 28341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28342/* end confdefs.h. */ 28343 28344 $cares_includes_ws2tcpip 28345 $cares_includes_sys_socket 28346 $cares_includes_netdb 28347 28348_ACEOF 28349if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28350 $EGREP "freeaddrinfo" >/dev/null 2>&1 28351then : 28352 28353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28354printf "%s\n" "yes" >&6; } 28355 tst_proto_freeaddrinfo="yes" 28356 28357else $as_nop 28358 28359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28360printf "%s\n" "no" >&6; } 28361 tst_proto_freeaddrinfo="no" 28362 28363fi 28364rm -rf conftest* 28365 28366 fi 28367 # 28368 if test "$tst_proto_freeaddrinfo" = "yes"; then 28369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5 28370printf %s "checking if freeaddrinfo is compilable... " >&6; } 28371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28372/* end confdefs.h. */ 28373 28374 28375 $cares_includes_ws2tcpip 28376 $cares_includes_sys_socket 28377 $cares_includes_netdb 28378 28379int 28380main (void) 28381{ 28382 28383 freeaddrinfo(0); 28384 28385 ; 28386 return 0; 28387} 28388 28389_ACEOF 28390if ac_fn_c_try_compile "$LINENO" 28391then : 28392 28393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28394printf "%s\n" "yes" >&6; } 28395 tst_compi_freeaddrinfo="yes" 28396 28397else $as_nop 28398 28399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28400printf "%s\n" "no" >&6; } 28401 tst_compi_freeaddrinfo="no" 28402 28403fi 28404rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 28405 fi 28406 # 28407 if test "$tst_compi_freeaddrinfo" = "yes"; then 28408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5 28409printf %s "checking if freeaddrinfo usage allowed... " >&6; } 28410 if test "x$cares_disallow_freeaddrinfo" != "xyes"; then 28411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28412printf "%s\n" "yes" >&6; } 28413 tst_allow_freeaddrinfo="yes" 28414 else 28415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28416printf "%s\n" "no" >&6; } 28417 tst_allow_freeaddrinfo="no" 28418 fi 28419 fi 28420 # 28421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5 28422printf %s "checking if freeaddrinfo might be used... " >&6; } 28423 if test "$tst_links_freeaddrinfo" = "yes" && 28424 test "$tst_proto_freeaddrinfo" = "yes" && 28425 test "$tst_compi_freeaddrinfo" = "yes" && 28426 test "$tst_allow_freeaddrinfo" = "yes"; then 28427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28428printf "%s\n" "yes" >&6; } 28429 28430printf "%s\n" "#define HAVE_FREEADDRINFO 1" >>confdefs.h 28431 28432 ac_cv_func_freeaddrinfo="yes" 28433 else 28434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28435printf "%s\n" "no" >&6; } 28436 ac_cv_func_freeaddrinfo="no" 28437 fi 28438 28439 28440cares_includes_stdlib="\ 28441/* includes start */ 28442#ifdef HAVE_SYS_TYPES_H 28443# include <sys/types.h> 28444#endif 28445#ifdef HAVE_STDLIB_H 28446# include <stdlib.h> 28447#endif 28448/* includes end */" 28449 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$cares_includes_stdlib 28450" 28451if test "x$ac_cv_header_sys_types_h" = xyes 28452then : 28453 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 28454 28455fi 28456ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$cares_includes_stdlib 28457" 28458if test "x$ac_cv_header_stdlib_h" = xyes 28459then : 28460 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h 28461 28462fi 28463 28464 28465 28466cares_includes_string="\ 28467/* includes start */ 28468#ifdef HAVE_SYS_TYPES_H 28469# include <sys/types.h> 28470#endif 28471#ifdef HAVE_STRING_H 28472# include <string.h> 28473#endif 28474#ifdef HAVE_STRINGS_H 28475# include <strings.h> 28476#endif 28477/* includes end */" 28478 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$cares_includes_string 28479" 28480if test "x$ac_cv_header_sys_types_h" = xyes 28481then : 28482 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 28483 28484fi 28485ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$cares_includes_string 28486" 28487if test "x$ac_cv_header_string_h" = xyes 28488then : 28489 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h 28490 28491fi 28492ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$cares_includes_string 28493" 28494if test "x$ac_cv_header_strings_h" = xyes 28495then : 28496 printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h 28497 28498fi 28499 28500 28501 28502 # 28503 tst_links_getaddrinfo="unknown" 28504 tst_proto_getaddrinfo="unknown" 28505 tst_compi_getaddrinfo="unknown" 28506 tst_works_getaddrinfo="unknown" 28507 tst_allow_getaddrinfo="unknown" 28508 tst_tsafe_getaddrinfo="unknown" 28509 # 28510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5 28511printf %s "checking if getaddrinfo can be linked... " >&6; } 28512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28513/* end confdefs.h. */ 28514 28515 28516 $cares_includes_ws2tcpip 28517 $cares_includes_sys_socket 28518 $cares_includes_netdb 28519 28520int 28521main (void) 28522{ 28523 28524 if(0 != getaddrinfo(0, 0, 0, 0)) 28525 return 1; 28526 28527 ; 28528 return 0; 28529} 28530 28531_ACEOF 28532if ac_fn_c_try_link "$LINENO" 28533then : 28534 28535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28536printf "%s\n" "yes" >&6; } 28537 tst_links_getaddrinfo="yes" 28538 28539else $as_nop 28540 28541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28542printf "%s\n" "no" >&6; } 28543 tst_links_getaddrinfo="no" 28544 28545fi 28546rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28547 conftest$ac_exeext conftest.$ac_ext 28548 # 28549 if test "$tst_links_getaddrinfo" = "yes"; then 28550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5 28551printf %s "checking if getaddrinfo is prototyped... " >&6; } 28552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28553/* end confdefs.h. */ 28554 28555 $cares_includes_ws2tcpip 28556 $cares_includes_sys_socket 28557 $cares_includes_netdb 28558 28559_ACEOF 28560if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28561 $EGREP "getaddrinfo" >/dev/null 2>&1 28562then : 28563 28564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28565printf "%s\n" "yes" >&6; } 28566 tst_proto_getaddrinfo="yes" 28567 28568else $as_nop 28569 28570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28571printf "%s\n" "no" >&6; } 28572 tst_proto_getaddrinfo="no" 28573 28574fi 28575rm -rf conftest* 28576 28577 fi 28578 # 28579 if test "$tst_proto_getaddrinfo" = "yes"; then 28580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5 28581printf %s "checking if getaddrinfo is compilable... " >&6; } 28582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28583/* end confdefs.h. */ 28584 28585 28586 $cares_includes_ws2tcpip 28587 $cares_includes_sys_socket 28588 $cares_includes_netdb 28589 28590int 28591main (void) 28592{ 28593 28594 if(0 != getaddrinfo(0, 0, 0, 0)) 28595 return 1; 28596 28597 ; 28598 return 0; 28599} 28600 28601_ACEOF 28602if ac_fn_c_try_compile "$LINENO" 28603then : 28604 28605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28606printf "%s\n" "yes" >&6; } 28607 tst_compi_getaddrinfo="yes" 28608 28609else $as_nop 28610 28611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28612printf "%s\n" "no" >&6; } 28613 tst_compi_getaddrinfo="no" 28614 28615fi 28616rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 28617 fi 28618 # 28619 if test "x$cross_compiling" != "xyes" && 28620 test "$tst_compi_getaddrinfo" = "yes"; then 28621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5 28622printf %s "checking if getaddrinfo seems to work... " >&6; } 28623 if test "$cross_compiling" = yes 28624then : 28625 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28626printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 28627as_fn_error $? "cannot run test program while cross compiling 28628See \`config.log' for more details" "$LINENO" 5; } 28629else $as_nop 28630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28631/* end confdefs.h. */ 28632 28633 28634 $cares_includes_ws2tcpip 28635 $cares_includes_stdlib 28636 $cares_includes_string 28637 $cares_includes_sys_socket 28638 $cares_includes_netdb 28639 28640int 28641main (void) 28642{ 28643 28644 struct addrinfo hints; 28645 struct addrinfo *ai = 0; 28646 int error; 28647 28648 memset(&hints, 0, sizeof(hints)); 28649 hints.ai_flags = AI_NUMERICHOST; 28650 hints.ai_family = AF_UNSPEC; 28651 hints.ai_socktype = SOCK_STREAM; 28652 error = getaddrinfo("127.0.0.1", 0, &hints, &ai); 28653 if(error || !ai) 28654 exit(1); /* fail */ 28655 else 28656 exit(0); 28657 28658 ; 28659 return 0; 28660} 28661 28662_ACEOF 28663if ac_fn_c_try_run "$LINENO" 28664then : 28665 28666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28667printf "%s\n" "yes" >&6; } 28668 tst_works_getaddrinfo="yes" 28669 28670else $as_nop 28671 28672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28673printf "%s\n" "no" >&6; } 28674 tst_works_getaddrinfo="no" 28675 28676fi 28677rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 28678 conftest.$ac_objext conftest.beam conftest.$ac_ext 28679fi 28680 28681 fi 28682 # 28683 if test "$tst_compi_getaddrinfo" = "yes" && 28684 test "$tst_works_getaddrinfo" != "no"; then 28685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5 28686printf %s "checking if getaddrinfo usage allowed... " >&6; } 28687 if test "x$cares_disallow_getaddrinfo" != "xyes"; then 28688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28689printf "%s\n" "yes" >&6; } 28690 tst_allow_getaddrinfo="yes" 28691 else 28692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28693printf "%s\n" "no" >&6; } 28694 tst_allow_getaddrinfo="no" 28695 fi 28696 fi 28697 # 28698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5 28699printf %s "checking if getaddrinfo might be used... " >&6; } 28700 if test "$tst_links_getaddrinfo" = "yes" && 28701 test "$tst_proto_getaddrinfo" = "yes" && 28702 test "$tst_compi_getaddrinfo" = "yes" && 28703 test "$tst_allow_getaddrinfo" = "yes" && 28704 test "$tst_works_getaddrinfo" != "no"; then 28705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28706printf "%s\n" "yes" >&6; } 28707 28708printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h 28709 28710 ac_cv_func_getaddrinfo="yes" 28711 else 28712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28713printf "%s\n" "no" >&6; } 28714 ac_cv_func_getaddrinfo="no" 28715 ac_cv_func_getaddrinfo_threadsafe="no" 28716 fi 28717 # 28718 if test "$ac_cv_func_getaddrinfo" = "yes"; then 28719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5 28720printf %s "checking if getaddrinfo is threadsafe... " >&6; } 28721 case $host_os in 28722 aix[1234].* | aix5.[01].*) 28723 tst_tsafe_getaddrinfo="no" 28724 ;; 28725 aix*) 28726 tst_tsafe_getaddrinfo="yes" 28727 ;; 28728 darwin[12345].*) 28729 tst_tsafe_getaddrinfo="no" 28730 ;; 28731 darwin*) 28732 tst_tsafe_getaddrinfo="yes" 28733 ;; 28734 freebsd[1234].* | freebsd5.[1234]*) 28735 tst_tsafe_getaddrinfo="no" 28736 ;; 28737 freebsd*) 28738 tst_tsafe_getaddrinfo="yes" 28739 ;; 28740 hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*) 28741 tst_tsafe_getaddrinfo="no" 28742 ;; 28743 hpux*) 28744 tst_tsafe_getaddrinfo="yes" 28745 ;; 28746 netbsd[123].*) 28747 tst_tsafe_getaddrinfo="no" 28748 ;; 28749 netbsd*) 28750 tst_tsafe_getaddrinfo="yes" 28751 ;; 28752 *bsd*) 28753 tst_tsafe_getaddrinfo="no" 28754 ;; 28755 solaris2*) 28756 tst_tsafe_getaddrinfo="yes" 28757 ;; 28758 esac 28759 if test "$tst_tsafe_getaddrinfo" = "unknown" && 28760 test "$ac_cv_native_windows" = "yes"; then 28761 tst_tsafe_getaddrinfo="yes" 28762 fi 28763 if test "$tst_tsafe_getaddrinfo" = "unknown"; then 28764 28765 28766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28767/* end confdefs.h. */ 28768 28769 28770 $cares_includes_sys_socket 28771 $cares_includes_netdb 28772 28773int main (void) 28774{ 28775#ifdef h_errno 28776 return 0; 28777#else 28778 force compilation error 28779#endif 28780} 28781 28782 28783_ACEOF 28784if ac_fn_c_try_compile "$LINENO" 28785then : 28786 28787 tst_symbol_defined="yes" 28788 28789else $as_nop 28790 28791 tst_symbol_defined="no" 28792 28793fi 28794rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 28795 if test "$tst_symbol_defined" = "yes"; then 28796 curl_cv_have_def_h_errno=yes 28797 28798 else 28799 curl_cv_have_def_h_errno=no 28800 28801 fi 28802 28803 if test "$curl_cv_have_def_h_errno" = "yes"; then 28804 tst_h_errno_macro="yes" 28805 else 28806 tst_h_errno_macro="no" 28807 fi 28808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28809/* end confdefs.h. */ 28810 28811 28812 $cares_includes_sys_socket 28813 $cares_includes_netdb 28814 28815int 28816main (void) 28817{ 28818 28819 h_errno = 2; 28820 if(0 != h_errno) 28821 return 1; 28822 28823 ; 28824 return 0; 28825} 28826 28827_ACEOF 28828if ac_fn_c_try_compile "$LINENO" 28829then : 28830 28831 tst_h_errno_modifiable_lvalue="yes" 28832 28833else $as_nop 28834 28835 tst_h_errno_modifiable_lvalue="no" 28836 28837fi 28838rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 28839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28840/* end confdefs.h. */ 28841 28842 28843 28844int 28845main (void) 28846{ 28847 28848#if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L) 28849 return 0; 28850#elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700) 28851 return 0; 28852#else 28853 force compilation error 28854#endif 28855 28856 ; 28857 return 0; 28858} 28859 28860_ACEOF 28861if ac_fn_c_try_compile "$LINENO" 28862then : 28863 28864 tst_h_errno_sbs_issue_7="yes" 28865 28866else $as_nop 28867 28868 tst_h_errno_sbs_issue_7="no" 28869 28870fi 28871rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 28872 if test "$tst_h_errno_macro" = "no" && 28873 test "$tst_h_errno_modifiable_lvalue" = "no" && 28874 test "$tst_h_errno_sbs_issue_7" = "no"; then 28875 tst_tsafe_getaddrinfo="no" 28876 else 28877 tst_tsafe_getaddrinfo="yes" 28878 fi 28879 fi 28880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5 28881printf "%s\n" "$tst_tsafe_getaddrinfo" >&6; } 28882 if test "$tst_tsafe_getaddrinfo" = "yes"; then 28883 28884printf "%s\n" "#define HAVE_GETADDRINFO_THREADSAFE 1" >>confdefs.h 28885 28886 ac_cv_func_getaddrinfo_threadsafe="yes" 28887 else 28888 ac_cv_func_getaddrinfo_threadsafe="no" 28889 fi 28890 fi 28891 28892 28893 # 28894 tst_links_getenv="unknown" 28895 tst_proto_getenv="unknown" 28896 tst_compi_getenv="unknown" 28897 tst_allow_getenv="unknown" 28898 # 28899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getenv can be linked" >&5 28900printf %s "checking if getenv can be linked... " >&6; } 28901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28902/* end confdefs.h. */ 28903 28904 /* Define getenv to an innocuous variant, in case <limits.h> declares getenv. 28905 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 28906#define getenv innocuous_getenv 28907 28908/* System header to define __stub macros and hopefully few prototypes, 28909 which can conflict with char getenv (); below. */ 28910 28911#include <limits.h> 28912#undef getenv 28913 28914/* Override any GCC internal prototype to avoid an error. 28915 Use char because int might match the return type of a GCC 28916 builtin and then its argument prototype would still apply. */ 28917#ifdef __cplusplus 28918extern "C" 28919#endif 28920char getenv (); 28921/* The GNU C library defines this for functions which it implements 28922 to always fail with ENOSYS. Some functions are actually named 28923 something starting with __ and the normal name is an alias. */ 28924#if defined __stub_getenv || defined __stub___getenv 28925choke me 28926#endif 28927 28928int 28929main (void) 28930{ 28931return getenv (); 28932 ; 28933 return 0; 28934} 28935 28936_ACEOF 28937if ac_fn_c_try_link "$LINENO" 28938then : 28939 28940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28941printf "%s\n" "yes" >&6; } 28942 tst_links_getenv="yes" 28943 28944else $as_nop 28945 28946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28947printf "%s\n" "no" >&6; } 28948 tst_links_getenv="no" 28949 28950fi 28951rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28952 conftest$ac_exeext conftest.$ac_ext 28953 # 28954 if test "$tst_links_getenv" = "yes"; then 28955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getenv is prototyped" >&5 28956printf %s "checking if getenv is prototyped... " >&6; } 28957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28958/* end confdefs.h. */ 28959 28960 $cares_includes_stdlib 28961 28962_ACEOF 28963if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28964 $EGREP "getenv" >/dev/null 2>&1 28965then : 28966 28967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28968printf "%s\n" "yes" >&6; } 28969 tst_proto_getenv="yes" 28970 28971else $as_nop 28972 28973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28974printf "%s\n" "no" >&6; } 28975 tst_proto_getenv="no" 28976 28977fi 28978rm -rf conftest* 28979 28980 fi 28981 # 28982 if test "$tst_proto_getenv" = "yes"; then 28983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getenv is compilable" >&5 28984printf %s "checking if getenv is compilable... " >&6; } 28985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28986/* end confdefs.h. */ 28987 28988 28989 $cares_includes_stdlib 28990 28991int 28992main (void) 28993{ 28994 28995 if(0 != getenv(0)) 28996 return 1; 28997 28998 ; 28999 return 0; 29000} 29001 29002_ACEOF 29003if ac_fn_c_try_compile "$LINENO" 29004then : 29005 29006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29007printf "%s\n" "yes" >&6; } 29008 tst_compi_getenv="yes" 29009 29010else $as_nop 29011 29012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29013printf "%s\n" "no" >&6; } 29014 tst_compi_getenv="no" 29015 29016fi 29017rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 29018 fi 29019 # 29020 if test "$tst_compi_getenv" = "yes"; then 29021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getenv usage allowed" >&5 29022printf %s "checking if getenv usage allowed... " >&6; } 29023 if test "x$cares_disallow_getenv" != "xyes"; then 29024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29025printf "%s\n" "yes" >&6; } 29026 tst_allow_getenv="yes" 29027 else 29028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29029printf "%s\n" "no" >&6; } 29030 tst_allow_getenv="no" 29031 fi 29032 fi 29033 # 29034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getenv might be used" >&5 29035printf %s "checking if getenv might be used... " >&6; } 29036 if test "$tst_links_getenv" = "yes" && 29037 test "$tst_proto_getenv" = "yes" && 29038 test "$tst_compi_getenv" = "yes" && 29039 test "$tst_allow_getenv" = "yes"; then 29040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29041printf "%s\n" "yes" >&6; } 29042 29043printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h 29044 29045 ac_cv_func_getenv="yes" 29046 else 29047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29048printf "%s\n" "no" >&6; } 29049 ac_cv_func_getenv="no" 29050 fi 29051 29052 29053 # 29054 tst_links_gethostbyaddr="unknown" 29055 tst_proto_gethostbyaddr="unknown" 29056 tst_compi_gethostbyaddr="unknown" 29057 tst_allow_gethostbyaddr="unknown" 29058 # 29059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5 29060printf %s "checking if gethostbyaddr can be linked... " >&6; } 29061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29062/* end confdefs.h. */ 29063 29064 29065 $cares_includes_winsock2 29066 $cares_includes_netdb 29067 29068int 29069main (void) 29070{ 29071 29072 if(0 != gethostbyaddr(0, 0, 0)) 29073 return 1; 29074 29075 ; 29076 return 0; 29077} 29078 29079_ACEOF 29080if ac_fn_c_try_link "$LINENO" 29081then : 29082 29083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29084printf "%s\n" "yes" >&6; } 29085 tst_links_gethostbyaddr="yes" 29086 29087else $as_nop 29088 29089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29090printf "%s\n" "no" >&6; } 29091 tst_links_gethostbyaddr="no" 29092 29093fi 29094rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29095 conftest$ac_exeext conftest.$ac_ext 29096 # 29097 if test "$tst_links_gethostbyaddr" = "yes"; then 29098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5 29099printf %s "checking if gethostbyaddr is prototyped... " >&6; } 29100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29101/* end confdefs.h. */ 29102 29103 $cares_includes_winsock2 29104 $cares_includes_netdb 29105 29106_ACEOF 29107if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 29108 $EGREP "gethostbyaddr" >/dev/null 2>&1 29109then : 29110 29111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29112printf "%s\n" "yes" >&6; } 29113 tst_proto_gethostbyaddr="yes" 29114 29115else $as_nop 29116 29117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29118printf "%s\n" "no" >&6; } 29119 tst_proto_gethostbyaddr="no" 29120 29121fi 29122rm -rf conftest* 29123 29124 fi 29125 # 29126 if test "$tst_proto_gethostbyaddr" = "yes"; then 29127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5 29128printf %s "checking if gethostbyaddr is compilable... " >&6; } 29129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29130/* end confdefs.h. */ 29131 29132 29133 $cares_includes_winsock2 29134 $cares_includes_netdb 29135 29136int 29137main (void) 29138{ 29139 29140 if(0 != gethostbyaddr(0, 0, 0)) 29141 return 1; 29142 29143 ; 29144 return 0; 29145} 29146 29147_ACEOF 29148if ac_fn_c_try_compile "$LINENO" 29149then : 29150 29151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29152printf "%s\n" "yes" >&6; } 29153 tst_compi_gethostbyaddr="yes" 29154 29155else $as_nop 29156 29157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29158printf "%s\n" "no" >&6; } 29159 tst_compi_gethostbyaddr="no" 29160 29161fi 29162rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 29163 fi 29164 # 29165 if test "$tst_compi_gethostbyaddr" = "yes"; then 29166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5 29167printf %s "checking if gethostbyaddr usage allowed... " >&6; } 29168 if test "x$cares_disallow_gethostbyaddr" != "xyes"; then 29169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29170printf "%s\n" "yes" >&6; } 29171 tst_allow_gethostbyaddr="yes" 29172 else 29173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29174printf "%s\n" "no" >&6; } 29175 tst_allow_gethostbyaddr="no" 29176 fi 29177 fi 29178 # 29179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5 29180printf %s "checking if gethostbyaddr might be used... " >&6; } 29181 if test "$tst_links_gethostbyaddr" = "yes" && 29182 test "$tst_proto_gethostbyaddr" = "yes" && 29183 test "$tst_compi_gethostbyaddr" = "yes" && 29184 test "$tst_allow_gethostbyaddr" = "yes"; then 29185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29186printf "%s\n" "yes" >&6; } 29187 29188printf "%s\n" "#define HAVE_GETHOSTBYADDR 1" >>confdefs.h 29189 29190 ac_cv_func_gethostbyaddr="yes" 29191 else 29192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29193printf "%s\n" "no" >&6; } 29194 ac_cv_func_gethostbyaddr="no" 29195 fi 29196 29197 29198 # 29199 tst_links_gethostbyname="unknown" 29200 tst_proto_gethostbyname="unknown" 29201 tst_compi_gethostbyname="unknown" 29202 tst_allow_gethostbyname="unknown" 29203 # 29204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5 29205printf %s "checking if gethostbyname can be linked... " >&6; } 29206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29207/* end confdefs.h. */ 29208 29209 29210 $cares_includes_winsock2 29211 $cares_includes_netdb 29212 29213int 29214main (void) 29215{ 29216 29217 if(0 != gethostbyname(0)) 29218 return 1; 29219 29220 ; 29221 return 0; 29222} 29223 29224_ACEOF 29225if ac_fn_c_try_link "$LINENO" 29226then : 29227 29228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29229printf "%s\n" "yes" >&6; } 29230 tst_links_gethostbyname="yes" 29231 29232else $as_nop 29233 29234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29235printf "%s\n" "no" >&6; } 29236 tst_links_gethostbyname="no" 29237 29238fi 29239rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29240 conftest$ac_exeext conftest.$ac_ext 29241 # 29242 if test "$tst_links_gethostbyname" = "yes"; then 29243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5 29244printf %s "checking if gethostbyname is prototyped... " >&6; } 29245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29246/* end confdefs.h. */ 29247 29248 $cares_includes_winsock2 29249 $cares_includes_netdb 29250 29251_ACEOF 29252if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 29253 $EGREP "gethostbyname" >/dev/null 2>&1 29254then : 29255 29256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29257printf "%s\n" "yes" >&6; } 29258 tst_proto_gethostbyname="yes" 29259 29260else $as_nop 29261 29262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29263printf "%s\n" "no" >&6; } 29264 tst_proto_gethostbyname="no" 29265 29266fi 29267rm -rf conftest* 29268 29269 fi 29270 # 29271 if test "$tst_proto_gethostbyname" = "yes"; then 29272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5 29273printf %s "checking if gethostbyname is compilable... " >&6; } 29274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29275/* end confdefs.h. */ 29276 29277 29278 $cares_includes_winsock2 29279 $cares_includes_netdb 29280 29281int 29282main (void) 29283{ 29284 29285 if(0 != gethostbyname(0)) 29286 return 1; 29287 29288 ; 29289 return 0; 29290} 29291 29292_ACEOF 29293if ac_fn_c_try_compile "$LINENO" 29294then : 29295 29296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29297printf "%s\n" "yes" >&6; } 29298 tst_compi_gethostbyname="yes" 29299 29300else $as_nop 29301 29302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29303printf "%s\n" "no" >&6; } 29304 tst_compi_gethostbyname="no" 29305 29306fi 29307rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 29308 fi 29309 # 29310 if test "$tst_compi_gethostbyname" = "yes"; then 29311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5 29312printf %s "checking if gethostbyname usage allowed... " >&6; } 29313 if test "x$cares_disallow_gethostbyname" != "xyes"; then 29314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29315printf "%s\n" "yes" >&6; } 29316 tst_allow_gethostbyname="yes" 29317 else 29318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29319printf "%s\n" "no" >&6; } 29320 tst_allow_gethostbyname="no" 29321 fi 29322 fi 29323 # 29324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5 29325printf %s "checking if gethostbyname might be used... " >&6; } 29326 if test "$tst_links_gethostbyname" = "yes" && 29327 test "$tst_proto_gethostbyname" = "yes" && 29328 test "$tst_compi_gethostbyname" = "yes" && 29329 test "$tst_allow_gethostbyname" = "yes"; then 29330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29331printf "%s\n" "yes" >&6; } 29332 29333printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h 29334 29335 ac_cv_func_gethostbyname="yes" 29336 else 29337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29338printf "%s\n" "no" >&6; } 29339 ac_cv_func_gethostbyname="no" 29340 fi 29341 29342 29343cares_includes_unistd="\ 29344/* includes start */ 29345#ifdef HAVE_SYS_TYPES_H 29346# include <sys/types.h> 29347#endif 29348#ifdef HAVE_UNISTD_H 29349# include <unistd.h> 29350#endif 29351/* includes end */" 29352 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$cares_includes_unistd 29353" 29354if test "x$ac_cv_header_sys_types_h" = xyes 29355then : 29356 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 29357 29358fi 29359ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$cares_includes_unistd 29360" 29361if test "x$ac_cv_header_unistd_h" = xyes 29362then : 29363 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h 29364 29365fi 29366 29367 29368 29369 # 29370 tst_links_gethostname="unknown" 29371 tst_proto_gethostname="unknown" 29372 tst_compi_gethostname="unknown" 29373 tst_allow_gethostname="unknown" 29374 # 29375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5 29376printf %s "checking if gethostname can be linked... " >&6; } 29377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29378/* end confdefs.h. */ 29379 29380 29381 $cares_includes_winsock2 29382 $cares_includes_unistd 29383 29384int 29385main (void) 29386{ 29387 29388 if(0 != gethostname(0, 0)) 29389 return 1; 29390 29391 ; 29392 return 0; 29393} 29394 29395_ACEOF 29396if ac_fn_c_try_link "$LINENO" 29397then : 29398 29399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29400printf "%s\n" "yes" >&6; } 29401 tst_links_gethostname="yes" 29402 29403else $as_nop 29404 29405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29406printf "%s\n" "no" >&6; } 29407 tst_links_gethostname="no" 29408 29409fi 29410rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29411 conftest$ac_exeext conftest.$ac_ext 29412 # 29413 if test "$tst_links_gethostname" = "yes"; then 29414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5 29415printf %s "checking if gethostname is prototyped... " >&6; } 29416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29417/* end confdefs.h. */ 29418 29419 $cares_includes_winsock2 29420 $cares_includes_unistd 29421 29422_ACEOF 29423if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 29424 $EGREP "gethostname" >/dev/null 2>&1 29425then : 29426 29427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29428printf "%s\n" "yes" >&6; } 29429 tst_proto_gethostname="yes" 29430 29431else $as_nop 29432 29433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29434printf "%s\n" "no" >&6; } 29435 tst_proto_gethostname="no" 29436 29437fi 29438rm -rf conftest* 29439 29440 fi 29441 # 29442 if test "$tst_proto_gethostname" = "yes"; then 29443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5 29444printf %s "checking if gethostname is compilable... " >&6; } 29445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29446/* end confdefs.h. */ 29447 29448 29449 $cares_includes_winsock2 29450 $cares_includes_unistd 29451 29452int 29453main (void) 29454{ 29455 29456 if(0 != gethostname(0, 0)) 29457 return 1; 29458 29459 ; 29460 return 0; 29461} 29462 29463_ACEOF 29464if ac_fn_c_try_compile "$LINENO" 29465then : 29466 29467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29468printf "%s\n" "yes" >&6; } 29469 tst_compi_gethostname="yes" 29470 29471else $as_nop 29472 29473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29474printf "%s\n" "no" >&6; } 29475 tst_compi_gethostname="no" 29476 29477fi 29478rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 29479 fi 29480 # 29481 if test "$tst_compi_gethostname" = "yes"; then 29482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5 29483printf %s "checking for gethostname arg 2 data type... " >&6; } 29484 tst_gethostname_type_arg2="unknown" 29485 for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do 29486 for tst_arg2 in 'int' 'unsigned int' 'size_t'; do 29487 if test "$tst_gethostname_type_arg2" = "unknown"; then 29488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29489/* end confdefs.h. */ 29490 29491 29492 $cares_includes_winsock2 29493 $cares_includes_unistd 29494 $cares_preprocess_callconv 29495 extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2); 29496 29497int 29498main (void) 29499{ 29500 29501 if(0 != gethostname(0, 0)) 29502 return 1; 29503 29504 ; 29505 return 0; 29506} 29507 29508_ACEOF 29509if ac_fn_c_try_compile "$LINENO" 29510then : 29511 29512 tst_gethostname_type_arg2="$tst_arg2" 29513 29514fi 29515rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 29516 fi 29517 done 29518 done 29519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5 29520printf "%s\n" "$tst_gethostname_type_arg2" >&6; } 29521 if test "$tst_gethostname_type_arg2" != "unknown"; then 29522 29523printf "%s\n" "#define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2" >>confdefs.h 29524 29525 fi 29526 fi 29527 # 29528 if test "$tst_compi_gethostname" = "yes"; then 29529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5 29530printf %s "checking if gethostname usage allowed... " >&6; } 29531 if test "x$cares_disallow_gethostname" != "xyes"; then 29532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29533printf "%s\n" "yes" >&6; } 29534 tst_allow_gethostname="yes" 29535 else 29536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29537printf "%s\n" "no" >&6; } 29538 tst_allow_gethostname="no" 29539 fi 29540 fi 29541 # 29542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5 29543printf %s "checking if gethostname might be used... " >&6; } 29544 if test "$tst_links_gethostname" = "yes" && 29545 test "$tst_proto_gethostname" = "yes" && 29546 test "$tst_compi_gethostname" = "yes" && 29547 test "$tst_allow_gethostname" = "yes"; then 29548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29549printf "%s\n" "yes" >&6; } 29550 29551printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h 29552 29553 ac_cv_func_gethostname="yes" 29554 else 29555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29556printf "%s\n" "no" >&6; } 29557 ac_cv_func_gethostname="no" 29558 fi 29559 29560 29561 # 29562 tst_links_getservbyport_r="unknown" 29563 tst_proto_getservbyport_r="unknown" 29564 tst_compi_getservbyport_r="unknown" 29565 tst_allow_getservbyport_r="unknown" 29566 tst_nargs_getservbyport_r="unknown" 29567 # 29568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5 29569printf %s "checking if getservbyport_r can be linked... " >&6; } 29570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29571/* end confdefs.h. */ 29572 29573 /* Define getservbyport_r to an innocuous variant, in case <limits.h> declares getservbyport_r. 29574 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 29575#define getservbyport_r innocuous_getservbyport_r 29576 29577/* System header to define __stub macros and hopefully few prototypes, 29578 which can conflict with char getservbyport_r (); below. */ 29579 29580#include <limits.h> 29581#undef getservbyport_r 29582 29583/* Override any GCC internal prototype to avoid an error. 29584 Use char because int might match the return type of a GCC 29585 builtin and then its argument prototype would still apply. */ 29586#ifdef __cplusplus 29587extern "C" 29588#endif 29589char getservbyport_r (); 29590/* The GNU C library defines this for functions which it implements 29591 to always fail with ENOSYS. Some functions are actually named 29592 something starting with __ and the normal name is an alias. */ 29593#if defined __stub_getservbyport_r || defined __stub___getservbyport_r 29594choke me 29595#endif 29596 29597int 29598main (void) 29599{ 29600return getservbyport_r (); 29601 ; 29602 return 0; 29603} 29604 29605_ACEOF 29606if ac_fn_c_try_link "$LINENO" 29607then : 29608 29609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29610printf "%s\n" "yes" >&6; } 29611 tst_links_getservbyport_r="yes" 29612 29613else $as_nop 29614 29615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29616printf "%s\n" "no" >&6; } 29617 tst_links_getservbyport_r="no" 29618 29619fi 29620rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29621 conftest$ac_exeext conftest.$ac_ext 29622 # 29623 if test "$tst_links_getservbyport_r" = "yes"; then 29624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5 29625printf %s "checking if getservbyport_r is prototyped... " >&6; } 29626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29627/* end confdefs.h. */ 29628 29629 $cares_includes_netdb 29630 29631_ACEOF 29632if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 29633 $EGREP "getservbyport_r" >/dev/null 2>&1 29634then : 29635 29636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29637printf "%s\n" "yes" >&6; } 29638 tst_proto_getservbyport_r="yes" 29639 29640else $as_nop 29641 29642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29643printf "%s\n" "no" >&6; } 29644 tst_proto_getservbyport_r="no" 29645 29646fi 29647rm -rf conftest* 29648 29649 fi 29650 # 29651 if test "$tst_proto_getservbyport_r" = "yes"; then 29652 if test "$tst_nargs_getservbyport_r" = "unknown"; then 29653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5 29654printf %s "checking if getservbyport_r takes 4 args.... " >&6; } 29655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29656/* end confdefs.h. */ 29657 29658 29659 $cares_includes_netdb 29660 29661int 29662main (void) 29663{ 29664 29665 if(0 != getservbyport_r(0, 0, 0, 0)) 29666 return 1; 29667 29668 ; 29669 return 0; 29670} 29671 29672_ACEOF 29673if ac_fn_c_try_compile "$LINENO" 29674then : 29675 29676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29677printf "%s\n" "yes" >&6; } 29678 tst_compi_getservbyport_r="yes" 29679 tst_nargs_getservbyport_r="4" 29680 29681else $as_nop 29682 29683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29684printf "%s\n" "no" >&6; } 29685 tst_compi_getservbyport_r="no" 29686 29687fi 29688rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 29689 fi 29690 if test "$tst_nargs_getservbyport_r" = "unknown"; then 29691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5 29692printf %s "checking if getservbyport_r takes 5 args.... " >&6; } 29693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29694/* end confdefs.h. */ 29695 29696 29697 $cares_includes_netdb 29698 29699int 29700main (void) 29701{ 29702 29703 if(0 != getservbyport_r(0, 0, 0, 0, 0)) 29704 return 1; 29705 29706 ; 29707 return 0; 29708} 29709 29710_ACEOF 29711if ac_fn_c_try_compile "$LINENO" 29712then : 29713 29714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29715printf "%s\n" "yes" >&6; } 29716 tst_compi_getservbyport_r="yes" 29717 tst_nargs_getservbyport_r="5" 29718 29719else $as_nop 29720 29721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29722printf "%s\n" "no" >&6; } 29723 tst_compi_getservbyport_r="no" 29724 29725fi 29726rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 29727 fi 29728 if test "$tst_nargs_getservbyport_r" = "unknown"; then 29729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5 29730printf %s "checking if getservbyport_r takes 6 args.... " >&6; } 29731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29732/* end confdefs.h. */ 29733 29734 29735 $cares_includes_netdb 29736 29737int 29738main (void) 29739{ 29740 29741 if(0 != getservbyport_r(0, 0, 0, 0, 0, 0)) 29742 return 1; 29743 29744 ; 29745 return 0; 29746} 29747 29748_ACEOF 29749if ac_fn_c_try_compile "$LINENO" 29750then : 29751 29752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29753printf "%s\n" "yes" >&6; } 29754 tst_compi_getservbyport_r="yes" 29755 tst_nargs_getservbyport_r="6" 29756 29757else $as_nop 29758 29759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29760printf "%s\n" "no" >&6; } 29761 tst_compi_getservbyport_r="no" 29762 29763fi 29764rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 29765 fi 29766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5 29767printf %s "checking if getservbyport_r is compilable... " >&6; } 29768 if test "$tst_compi_getservbyport_r" = "yes"; then 29769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29770printf "%s\n" "yes" >&6; } 29771 else 29772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29773printf "%s\n" "no" >&6; } 29774 fi 29775 fi 29776 # 29777 if test "$tst_compi_getservbyport_r" = "yes"; then 29778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5 29779printf %s "checking if getservbyport_r usage allowed... " >&6; } 29780 if test "x$cares_disallow_getservbyport_r" != "xyes"; then 29781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29782printf "%s\n" "yes" >&6; } 29783 tst_allow_getservbyport_r="yes" 29784 else 29785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29786printf "%s\n" "no" >&6; } 29787 tst_allow_getservbyport_r="no" 29788 fi 29789 fi 29790 # 29791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5 29792printf %s "checking if getservbyport_r might be used... " >&6; } 29793 if test "$tst_links_getservbyport_r" = "yes" && 29794 test "$tst_proto_getservbyport_r" = "yes" && 29795 test "$tst_compi_getservbyport_r" = "yes" && 29796 test "$tst_allow_getservbyport_r" = "yes"; then 29797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29798printf "%s\n" "yes" >&6; } 29799 29800printf "%s\n" "#define HAVE_GETSERVBYPORT_R 1" >>confdefs.h 29801 29802 29803printf "%s\n" "#define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r" >>confdefs.h 29804 29805 if test "$tst_nargs_getservbyport_r" -eq "4"; then 29806 29807printf "%s\n" "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h 29808 29809 else 29810 29811printf "%s\n" "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h 29812 29813 fi 29814 ac_cv_func_getservbyport_r="yes" 29815 else 29816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29817printf "%s\n" "no" >&6; } 29818 ac_cv_func_getservbyport_r="no" 29819 fi 29820 29821 29822cares_includes_arpa_inet="\ 29823/* includes start */ 29824#ifdef HAVE_SYS_TYPES_H 29825# include <sys/types.h> 29826#endif 29827#ifdef HAVE_SYS_SOCKET_H 29828# include <sys/socket.h> 29829#endif 29830#ifdef HAVE_NETINET_IN_H 29831# include <netinet/in.h> 29832#endif 29833#ifdef HAVE_ARPA_INET_H 29834# include <arpa/inet.h> 29835#endif 29836/* includes end */" 29837 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$cares_includes_arpa_inet 29838" 29839if test "x$ac_cv_header_sys_types_h" = xyes 29840then : 29841 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 29842 29843fi 29844ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$cares_includes_arpa_inet 29845" 29846if test "x$ac_cv_header_sys_socket_h" = xyes 29847then : 29848 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 29849 29850fi 29851ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$cares_includes_arpa_inet 29852" 29853if test "x$ac_cv_header_netinet_in_h" = xyes 29854then : 29855 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h 29856 29857fi 29858ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$cares_includes_arpa_inet 29859" 29860if test "x$ac_cv_header_arpa_inet_h" = xyes 29861then : 29862 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h 29863 29864fi 29865 29866 29867 29868 # 29869 tst_links_inet_net_pton="unknown" 29870 tst_proto_inet_net_pton="unknown" 29871 tst_compi_inet_net_pton="unknown" 29872 tst_works_inet_net_pton="unknown" 29873 tst_allow_inet_net_pton="unknown" 29874 # 29875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton can be linked" >&5 29876printf %s "checking if inet_net_pton can be linked... " >&6; } 29877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29878/* end confdefs.h. */ 29879 29880 /* Define inet_net_pton to an innocuous variant, in case <limits.h> declares inet_net_pton. 29881 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 29882#define inet_net_pton innocuous_inet_net_pton 29883 29884/* System header to define __stub macros and hopefully few prototypes, 29885 which can conflict with char inet_net_pton (); below. */ 29886 29887#include <limits.h> 29888#undef inet_net_pton 29889 29890/* Override any GCC internal prototype to avoid an error. 29891 Use char because int might match the return type of a GCC 29892 builtin and then its argument prototype would still apply. */ 29893#ifdef __cplusplus 29894extern "C" 29895#endif 29896char inet_net_pton (); 29897/* The GNU C library defines this for functions which it implements 29898 to always fail with ENOSYS. Some functions are actually named 29899 something starting with __ and the normal name is an alias. */ 29900#if defined __stub_inet_net_pton || defined __stub___inet_net_pton 29901choke me 29902#endif 29903 29904int 29905main (void) 29906{ 29907return inet_net_pton (); 29908 ; 29909 return 0; 29910} 29911 29912_ACEOF 29913if ac_fn_c_try_link "$LINENO" 29914then : 29915 29916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29917printf "%s\n" "yes" >&6; } 29918 tst_links_inet_net_pton="yes" 29919 29920else $as_nop 29921 29922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29923printf "%s\n" "no" >&6; } 29924 tst_links_inet_net_pton="no" 29925 29926fi 29927rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29928 conftest$ac_exeext conftest.$ac_ext 29929 # 29930 if test "$tst_links_inet_net_pton" = "yes"; then 29931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton is prototyped" >&5 29932printf %s "checking if inet_net_pton is prototyped... " >&6; } 29933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29934/* end confdefs.h. */ 29935 29936 $cares_includes_arpa_inet 29937 29938_ACEOF 29939if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 29940 $EGREP "inet_net_pton" >/dev/null 2>&1 29941then : 29942 29943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29944printf "%s\n" "yes" >&6; } 29945 tst_proto_inet_net_pton="yes" 29946 29947else $as_nop 29948 29949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29950printf "%s\n" "no" >&6; } 29951 tst_proto_inet_net_pton="no" 29952 29953fi 29954rm -rf conftest* 29955 29956 fi 29957 # 29958 if test "$tst_proto_inet_net_pton" = "yes"; then 29959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton is compilable" >&5 29960printf %s "checking if inet_net_pton is compilable... " >&6; } 29961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29962/* end confdefs.h. */ 29963 29964 29965 $cares_includes_arpa_inet 29966 29967int 29968main (void) 29969{ 29970 29971 if(0 != inet_net_pton(0, 0, 0, 0)) 29972 return 1; 29973 29974 ; 29975 return 0; 29976} 29977 29978_ACEOF 29979if ac_fn_c_try_compile "$LINENO" 29980then : 29981 29982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29983printf "%s\n" "yes" >&6; } 29984 tst_compi_inet_net_pton="yes" 29985 29986else $as_nop 29987 29988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29989printf "%s\n" "no" >&6; } 29990 tst_compi_inet_net_pton="no" 29991 29992fi 29993rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 29994 fi 29995 # 29996 if test "x$cross_compiling" != "xyes" && 29997 test "$tst_compi_inet_net_pton" = "yes"; then 29998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton seems to work" >&5 29999printf %s "checking if inet_net_pton seems to work... " >&6; } 30000 if test "$cross_compiling" = yes 30001then : 30002 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30003printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 30004as_fn_error $? "cannot run test program while cross compiling 30005See \`config.log' for more details" "$LINENO" 5; } 30006else $as_nop 30007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30008/* end confdefs.h. */ 30009 30010 30011 $cares_includes_stdlib 30012 $cares_includes_arpa_inet 30013 $cares_includes_string 30014 30015int 30016main (void) 30017{ 30018 30019 unsigned char ipv6a[16+1]; 30020 unsigned char ipv4a[4+1]; 30021 const char *ipv6net1 = "fe80::214:4fff:fe0b:76c8"; 30022 const char *ipv6net2 = "::fffe:7f00:1"; 30023 const char *ipv6net3 = "7f20:1::/64"; 30024 const char *ipv6net4 = "7f20:1::/2147483649"; 30025 const char *ipv4net1 = "192.168.100.1"; 30026 const char *ipv4net2 = "192.168.100/32"; 30027 const char *ipv4net3 = "192.168.100.1/2147483649"; 30028 /* - */ 30029 memset(ipv4a, 1, sizeof(ipv4a)); 30030 if(32 != inet_net_pton(AF_INET, ipv4net1, ipv4a, 4)) 30031 exit(1); /* fail */ 30032 /* - */ 30033 if( (ipv4a[0x00] != 0xc0) || 30034 (ipv4a[0x01] != 0xa8) || 30035 (ipv4a[0x02] != 0x64) || 30036 (ipv4a[0x03] != 0x01) || 30037 (ipv4a[0x04] != 0x01) ) 30038 exit(1); /* fail */ 30039 /* - */ 30040 memset(ipv4a, 1, sizeof(ipv4a)); 30041 if(32 != inet_net_pton(AF_INET, ipv4net2, ipv4a, 4)) 30042 exit(1); /* fail */ 30043 /* - */ 30044 if( (ipv4a[0x00] != 0xc0) || 30045 (ipv4a[0x01] != 0xa8) || 30046 (ipv4a[0x02] != 0x64) || 30047 (ipv4a[0x03] != 0x00) || 30048 (ipv4a[0x04] != 0x01) ) 30049 exit(1); /* fail */ 30050 /* - */ 30051 memset(ipv4a, 1, sizeof(ipv4a)); 30052 if(-1 != inet_net_pton(AF_INET, ipv4net3, ipv4a, 4)) 30053 exit(1); /* fail */ 30054 /* - */ 30055 memset(ipv6a, 1, sizeof(ipv6a)); 30056 if(128 != inet_net_pton(AF_INET6, ipv6net1, ipv6a, 16)) 30057 exit(1); /* fail */ 30058 /* - */ 30059 if( (ipv6a[0x00] != 0xfe) || 30060 (ipv6a[0x01] != 0x80) || 30061 (ipv6a[0x08] != 0x02) || 30062 (ipv6a[0x09] != 0x14) || 30063 (ipv6a[0x0a] != 0x4f) || 30064 (ipv6a[0x0b] != 0xff) || 30065 (ipv6a[0x0c] != 0xfe) || 30066 (ipv6a[0x0d] != 0x0b) || 30067 (ipv6a[0x0e] != 0x76) || 30068 (ipv6a[0x0f] != 0xc8) || 30069 (ipv6a[0x10] != 0x01) ) 30070 exit(1); /* fail */ 30071 /* - */ 30072 if( (ipv6a[0x02] != 0x0) || 30073 (ipv6a[0x03] != 0x0) || 30074 (ipv6a[0x04] != 0x0) || 30075 (ipv6a[0x05] != 0x0) || 30076 (ipv6a[0x06] != 0x0) || 30077 (ipv6a[0x07] != 0x0) ) 30078 exit(1); /* fail */ 30079 /* - */ 30080 memset(ipv6a, 0, sizeof(ipv6a)); 30081 ipv6a[0x10] = 0x01; 30082 if(128 != inet_net_pton(AF_INET6, ipv6net2, ipv6a, 16)) 30083 exit(1); /* fail */ 30084 /* - */ 30085 if( (ipv6a[0x0a] != 0xff) || 30086 (ipv6a[0x0b] != 0xfe) || 30087 (ipv6a[0x0c] != 0x7f) || 30088 (ipv6a[0x0f] != 0x01) || 30089 (ipv6a[0x10] != 0x01) ) 30090 exit(1); /* fail */ 30091 /* - */ 30092 if( (ipv6a[0x00] != 0x0) || 30093 (ipv6a[0x01] != 0x0) || 30094 (ipv6a[0x02] != 0x0) || 30095 (ipv6a[0x03] != 0x0) || 30096 (ipv6a[0x04] != 0x0) || 30097 (ipv6a[0x05] != 0x0) || 30098 (ipv6a[0x06] != 0x0) || 30099 (ipv6a[0x07] != 0x0) || 30100 (ipv6a[0x08] != 0x0) || 30101 (ipv6a[0x09] != 0x0) || 30102 (ipv6a[0x0d] != 0x0) || 30103 (ipv6a[0x0e] != 0x0) ) 30104 exit(1); /* fail */ 30105 /* - */ 30106 memset(ipv6a, 1, sizeof(ipv6a)); 30107 if(64 != inet_net_pton(AF_INET6, ipv6net3, ipv6a, 16)) 30108 exit(1); /* fail */ 30109 if( (ipv6a[0x00] != 0x7f) || 30110 (ipv6a[0x01] != 0x20) || 30111 (ipv6a[0x03] != 0x01) || 30112 (ipv6a[0x08] != 0x01) || 30113 (ipv6a[0x09] != 0x01) || 30114 (ipv6a[0x0a] != 0x01) || 30115 (ipv6a[0x0b] != 0x01) || 30116 (ipv6a[0x0c] != 0x01) || 30117 (ipv6a[0x0d] != 0x01) || 30118 (ipv6a[0x0e] != 0x01) || 30119 (ipv6a[0x0f] != 0x01) || 30120 (ipv6a[0x10] != 0x01) ) 30121 exit(1); /* fail */ 30122 if( (ipv6a[0x02] != 0x0) || 30123 (ipv6a[0x04] != 0x0) || 30124 (ipv6a[0x05] != 0x0) || 30125 (ipv6a[0x06] != 0x0) || 30126 (ipv6a[0x07] != 0x0) || 30127 (ipv6a[0x07] != 0x0) ) 30128 exit(1); /* fail */ 30129 /* - */ 30130 memset(ipv6a, 1, sizeof(ipv6a)); 30131 if(-1 != inet_net_pton(AF_INET6, ipv6net4, ipv6a, 16)) 30132 exit(1); /* fail */ 30133 /* - */ 30134 exit(0); 30135 30136 ; 30137 return 0; 30138} 30139 30140_ACEOF 30141if ac_fn_c_try_run "$LINENO" 30142then : 30143 30144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30145printf "%s\n" "yes" >&6; } 30146 tst_works_inet_net_pton="yes" 30147 30148else $as_nop 30149 30150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30151printf "%s\n" "no" >&6; } 30152 tst_works_inet_net_pton="no" 30153 30154fi 30155rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 30156 conftest.$ac_objext conftest.beam conftest.$ac_ext 30157fi 30158 30159 fi 30160 # 30161 if test "$tst_compi_inet_net_pton" = "yes" && 30162 test "$tst_works_inet_net_pton" != "no"; then 30163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton usage allowed" >&5 30164printf %s "checking if inet_net_pton usage allowed... " >&6; } 30165 if test "x$cares_disallow_inet_net_pton" != "xyes"; then 30166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30167printf "%s\n" "yes" >&6; } 30168 tst_allow_inet_net_pton="yes" 30169 else 30170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30171printf "%s\n" "no" >&6; } 30172 tst_allow_inet_net_pton="no" 30173 fi 30174 fi 30175 # 30176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_net_pton might be used" >&5 30177printf %s "checking if inet_net_pton might be used... " >&6; } 30178 if test "$tst_links_inet_net_pton" = "yes" && 30179 test "$tst_proto_inet_net_pton" = "yes" && 30180 test "$tst_compi_inet_net_pton" = "yes" && 30181 test "$tst_allow_inet_net_pton" = "yes" && 30182 test "$tst_works_inet_net_pton" != "no"; then 30183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30184printf "%s\n" "yes" >&6; } 30185 30186printf "%s\n" "#define HAVE_INET_NET_PTON 1" >>confdefs.h 30187 30188 ac_cv_func_inet_net_pton="yes" 30189 else 30190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30191printf "%s\n" "no" >&6; } 30192 ac_cv_func_inet_net_pton="no" 30193 fi 30194 30195 30196 # 30197 tst_links_inet_ntop="unknown" 30198 tst_proto_inet_ntop="unknown" 30199 tst_compi_inet_ntop="unknown" 30200 tst_works_inet_ntop="unknown" 30201 tst_allow_inet_ntop="unknown" 30202 # 30203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5 30204printf %s "checking if inet_ntop can be linked... " >&6; } 30205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30206/* end confdefs.h. */ 30207 30208 /* Define inet_ntop to an innocuous variant, in case <limits.h> declares inet_ntop. 30209 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 30210#define inet_ntop innocuous_inet_ntop 30211 30212/* System header to define __stub macros and hopefully few prototypes, 30213 which can conflict with char inet_ntop (); below. */ 30214 30215#include <limits.h> 30216#undef inet_ntop 30217 30218/* Override any GCC internal prototype to avoid an error. 30219 Use char because int might match the return type of a GCC 30220 builtin and then its argument prototype would still apply. */ 30221#ifdef __cplusplus 30222extern "C" 30223#endif 30224char inet_ntop (); 30225/* The GNU C library defines this for functions which it implements 30226 to always fail with ENOSYS. Some functions are actually named 30227 something starting with __ and the normal name is an alias. */ 30228#if defined __stub_inet_ntop || defined __stub___inet_ntop 30229choke me 30230#endif 30231 30232int 30233main (void) 30234{ 30235return inet_ntop (); 30236 ; 30237 return 0; 30238} 30239 30240_ACEOF 30241if ac_fn_c_try_link "$LINENO" 30242then : 30243 30244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30245printf "%s\n" "yes" >&6; } 30246 tst_links_inet_ntop="yes" 30247 30248else $as_nop 30249 30250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30251printf "%s\n" "no" >&6; } 30252 tst_links_inet_ntop="no" 30253 30254fi 30255rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30256 conftest$ac_exeext conftest.$ac_ext 30257 # 30258 if test "$tst_links_inet_ntop" = "yes"; then 30259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5 30260printf %s "checking if inet_ntop is prototyped... " >&6; } 30261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30262/* end confdefs.h. */ 30263 30264 $cares_includes_arpa_inet 30265 30266_ACEOF 30267if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 30268 $EGREP "inet_ntop" >/dev/null 2>&1 30269then : 30270 30271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30272printf "%s\n" "yes" >&6; } 30273 tst_proto_inet_ntop="yes" 30274 30275else $as_nop 30276 30277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30278printf "%s\n" "no" >&6; } 30279 tst_proto_inet_ntop="no" 30280 30281fi 30282rm -rf conftest* 30283 30284 fi 30285 # 30286 if test "$tst_proto_inet_ntop" = "yes"; then 30287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5 30288printf %s "checking if inet_ntop is compilable... " >&6; } 30289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30290/* end confdefs.h. */ 30291 30292 30293 $cares_includes_arpa_inet 30294 30295int 30296main (void) 30297{ 30298 30299 if(0 != inet_ntop(0, 0, 0, 0)) 30300 return 1; 30301 30302 ; 30303 return 0; 30304} 30305 30306_ACEOF 30307if ac_fn_c_try_compile "$LINENO" 30308then : 30309 30310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30311printf "%s\n" "yes" >&6; } 30312 tst_compi_inet_ntop="yes" 30313 30314else $as_nop 30315 30316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30317printf "%s\n" "no" >&6; } 30318 tst_compi_inet_ntop="no" 30319 30320fi 30321rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 30322 fi 30323 # 30324 if test "x$cross_compiling" != "xyes" && 30325 test "$tst_compi_inet_ntop" = "yes"; then 30326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5 30327printf %s "checking if inet_ntop seems to work... " >&6; } 30328 if test "$cross_compiling" = yes 30329then : 30330 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30331printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 30332as_fn_error $? "cannot run test program while cross compiling 30333See \`config.log' for more details" "$LINENO" 5; } 30334else $as_nop 30335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30336/* end confdefs.h. */ 30337 30338 30339 $cares_includes_stdlib 30340 $cares_includes_arpa_inet 30341 $cares_includes_string 30342 30343int 30344main (void) 30345{ 30346 30347 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")]; 30348 char ipv4res[sizeof "255.255.255.255"]; 30349 unsigned char ipv6a[26]; 30350 unsigned char ipv4a[5]; 30351 char *ipv6ptr = 0; 30352 char *ipv4ptr = 0; 30353 /* - */ 30354 ipv4res[0] = '\0'; 30355 ipv4a[0] = 0xc0; 30356 ipv4a[1] = 0xa8; 30357 ipv4a[2] = 0x64; 30358 ipv4a[3] = 0x01; 30359 ipv4a[4] = 0x01; 30360 /* - */ 30361 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res)); 30362 if(!ipv4ptr) 30363 exit(1); /* fail */ 30364 if(ipv4ptr != ipv4res) 30365 exit(1); /* fail */ 30366 if(!ipv4ptr[0]) 30367 exit(1); /* fail */ 30368 if(memcmp(ipv4res, "192.168.100.1", 13) != 0) 30369 exit(1); /* fail */ 30370 /* - */ 30371 ipv6res[0] = '\0'; 30372 memset(ipv6a, 0, sizeof(ipv6a)); 30373 ipv6a[0] = 0xfe; 30374 ipv6a[1] = 0x80; 30375 ipv6a[8] = 0x02; 30376 ipv6a[9] = 0x14; 30377 ipv6a[10] = 0x4f; 30378 ipv6a[11] = 0xff; 30379 ipv6a[12] = 0xfe; 30380 ipv6a[13] = 0x0b; 30381 ipv6a[14] = 0x76; 30382 ipv6a[15] = 0xc8; 30383 ipv6a[25] = 0x01; 30384 /* - */ 30385 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res)); 30386 if(!ipv6ptr) 30387 exit(1); /* fail */ 30388 if(ipv6ptr != ipv6res) 30389 exit(1); /* fail */ 30390 if(!ipv6ptr[0]) 30391 exit(1); /* fail */ 30392 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0) 30393 exit(1); /* fail */ 30394 /* - */ 30395 exit(0); 30396 30397 ; 30398 return 0; 30399} 30400 30401_ACEOF 30402if ac_fn_c_try_run "$LINENO" 30403then : 30404 30405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30406printf "%s\n" "yes" >&6; } 30407 tst_works_inet_ntop="yes" 30408 30409else $as_nop 30410 30411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30412printf "%s\n" "no" >&6; } 30413 tst_works_inet_ntop="no" 30414 30415fi 30416rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 30417 conftest.$ac_objext conftest.beam conftest.$ac_ext 30418fi 30419 30420 fi 30421 # 30422 if test "$tst_compi_inet_ntop" = "yes" && 30423 test "$tst_works_inet_ntop" != "no"; then 30424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5 30425printf %s "checking if inet_ntop usage allowed... " >&6; } 30426 if test "x$cares_disallow_inet_ntop" != "xyes"; then 30427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30428printf "%s\n" "yes" >&6; } 30429 tst_allow_inet_ntop="yes" 30430 else 30431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30432printf "%s\n" "no" >&6; } 30433 tst_allow_inet_ntop="no" 30434 fi 30435 fi 30436 # 30437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5 30438printf %s "checking if inet_ntop might be used... " >&6; } 30439 if test "$tst_links_inet_ntop" = "yes" && 30440 test "$tst_proto_inet_ntop" = "yes" && 30441 test "$tst_compi_inet_ntop" = "yes" && 30442 test "$tst_allow_inet_ntop" = "yes" && 30443 test "$tst_works_inet_ntop" != "no"; then 30444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30445printf "%s\n" "yes" >&6; } 30446 30447printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h 30448 30449 ac_cv_func_inet_ntop="yes" 30450 else 30451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30452printf "%s\n" "no" >&6; } 30453 ac_cv_func_inet_ntop="no" 30454 fi 30455 30456 30457 # 30458 tst_links_inet_pton="unknown" 30459 tst_proto_inet_pton="unknown" 30460 tst_compi_inet_pton="unknown" 30461 tst_works_inet_pton="unknown" 30462 tst_allow_inet_pton="unknown" 30463 # 30464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5 30465printf %s "checking if inet_pton can be linked... " >&6; } 30466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30467/* end confdefs.h. */ 30468 30469 /* Define inet_pton to an innocuous variant, in case <limits.h> declares inet_pton. 30470 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 30471#define inet_pton innocuous_inet_pton 30472 30473/* System header to define __stub macros and hopefully few prototypes, 30474 which can conflict with char inet_pton (); below. */ 30475 30476#include <limits.h> 30477#undef inet_pton 30478 30479/* Override any GCC internal prototype to avoid an error. 30480 Use char because int might match the return type of a GCC 30481 builtin and then its argument prototype would still apply. */ 30482#ifdef __cplusplus 30483extern "C" 30484#endif 30485char inet_pton (); 30486/* The GNU C library defines this for functions which it implements 30487 to always fail with ENOSYS. Some functions are actually named 30488 something starting with __ and the normal name is an alias. */ 30489#if defined __stub_inet_pton || defined __stub___inet_pton 30490choke me 30491#endif 30492 30493int 30494main (void) 30495{ 30496return inet_pton (); 30497 ; 30498 return 0; 30499} 30500 30501_ACEOF 30502if ac_fn_c_try_link "$LINENO" 30503then : 30504 30505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30506printf "%s\n" "yes" >&6; } 30507 tst_links_inet_pton="yes" 30508 30509else $as_nop 30510 30511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30512printf "%s\n" "no" >&6; } 30513 tst_links_inet_pton="no" 30514 30515fi 30516rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30517 conftest$ac_exeext conftest.$ac_ext 30518 # 30519 if test "$tst_links_inet_pton" = "yes"; then 30520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5 30521printf %s "checking if inet_pton is prototyped... " >&6; } 30522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30523/* end confdefs.h. */ 30524 30525 $cares_includes_arpa_inet 30526 30527_ACEOF 30528if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 30529 $EGREP "inet_pton" >/dev/null 2>&1 30530then : 30531 30532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30533printf "%s\n" "yes" >&6; } 30534 tst_proto_inet_pton="yes" 30535 30536else $as_nop 30537 30538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30539printf "%s\n" "no" >&6; } 30540 tst_proto_inet_pton="no" 30541 30542fi 30543rm -rf conftest* 30544 30545 fi 30546 # 30547 if test "$tst_proto_inet_pton" = "yes"; then 30548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5 30549printf %s "checking if inet_pton is compilable... " >&6; } 30550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30551/* end confdefs.h. */ 30552 30553 30554 $cares_includes_arpa_inet 30555 30556int 30557main (void) 30558{ 30559 30560 if(0 != inet_pton(0, 0, 0)) 30561 return 1; 30562 30563 ; 30564 return 0; 30565} 30566 30567_ACEOF 30568if ac_fn_c_try_compile "$LINENO" 30569then : 30570 30571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30572printf "%s\n" "yes" >&6; } 30573 tst_compi_inet_pton="yes" 30574 30575else $as_nop 30576 30577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30578printf "%s\n" "no" >&6; } 30579 tst_compi_inet_pton="no" 30580 30581fi 30582rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 30583 fi 30584 # 30585 if test "x$cross_compiling" != "xyes" && 30586 test "$tst_compi_inet_pton" = "yes"; then 30587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5 30588printf %s "checking if inet_pton seems to work... " >&6; } 30589 if test "$cross_compiling" = yes 30590then : 30591 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30592printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 30593as_fn_error $? "cannot run test program while cross compiling 30594See \`config.log' for more details" "$LINENO" 5; } 30595else $as_nop 30596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30597/* end confdefs.h. */ 30598 30599 30600 $cares_includes_stdlib 30601 $cares_includes_arpa_inet 30602 $cares_includes_string 30603 30604int 30605main (void) 30606{ 30607 30608 unsigned char ipv6a[16+1]; 30609 unsigned char ipv4a[4+1]; 30610 const char *ipv6src = "fe80::214:4fff:fe0b:76c8"; 30611 const char *ipv4src = "192.168.100.1"; 30612 /* - */ 30613 memset(ipv4a, 1, sizeof(ipv4a)); 30614 if(1 != inet_pton(AF_INET, ipv4src, ipv4a)) 30615 exit(1); /* fail */ 30616 /* - */ 30617 if( (ipv4a[0] != 0xc0) || 30618 (ipv4a[1] != 0xa8) || 30619 (ipv4a[2] != 0x64) || 30620 (ipv4a[3] != 0x01) || 30621 (ipv4a[4] != 0x01) ) 30622 exit(1); /* fail */ 30623 /* - */ 30624 memset(ipv6a, 1, sizeof(ipv6a)); 30625 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a)) 30626 exit(1); /* fail */ 30627 /* - */ 30628 if( (ipv6a[0] != 0xfe) || 30629 (ipv6a[1] != 0x80) || 30630 (ipv6a[8] != 0x02) || 30631 (ipv6a[9] != 0x14) || 30632 (ipv6a[10] != 0x4f) || 30633 (ipv6a[11] != 0xff) || 30634 (ipv6a[12] != 0xfe) || 30635 (ipv6a[13] != 0x0b) || 30636 (ipv6a[14] != 0x76) || 30637 (ipv6a[15] != 0xc8) || 30638 (ipv6a[16] != 0x01) ) 30639 exit(1); /* fail */ 30640 /* - */ 30641 if( (ipv6a[2] != 0x0) || 30642 (ipv6a[3] != 0x0) || 30643 (ipv6a[4] != 0x0) || 30644 (ipv6a[5] != 0x0) || 30645 (ipv6a[6] != 0x0) || 30646 (ipv6a[7] != 0x0) ) 30647 exit(1); /* fail */ 30648 /* - */ 30649 exit(0); 30650 30651 ; 30652 return 0; 30653} 30654 30655_ACEOF 30656if ac_fn_c_try_run "$LINENO" 30657then : 30658 30659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30660printf "%s\n" "yes" >&6; } 30661 tst_works_inet_pton="yes" 30662 30663else $as_nop 30664 30665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30666printf "%s\n" "no" >&6; } 30667 tst_works_inet_pton="no" 30668 30669fi 30670rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 30671 conftest.$ac_objext conftest.beam conftest.$ac_ext 30672fi 30673 30674 fi 30675 # 30676 if test "$tst_compi_inet_pton" = "yes" && 30677 test "$tst_works_inet_pton" != "no"; then 30678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5 30679printf %s "checking if inet_pton usage allowed... " >&6; } 30680 if test "x$cares_disallow_inet_pton" != "xyes"; then 30681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30682printf "%s\n" "yes" >&6; } 30683 tst_allow_inet_pton="yes" 30684 else 30685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30686printf "%s\n" "no" >&6; } 30687 tst_allow_inet_pton="no" 30688 fi 30689 fi 30690 # 30691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5 30692printf %s "checking if inet_pton might be used... " >&6; } 30693 if test "$tst_links_inet_pton" = "yes" && 30694 test "$tst_proto_inet_pton" = "yes" && 30695 test "$tst_compi_inet_pton" = "yes" && 30696 test "$tst_allow_inet_pton" = "yes" && 30697 test "$tst_works_inet_pton" != "no"; then 30698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30699printf "%s\n" "yes" >&6; } 30700 30701printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h 30702 30703 ac_cv_func_inet_pton="yes" 30704 else 30705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30706printf "%s\n" "no" >&6; } 30707 ac_cv_func_inet_pton="no" 30708 fi 30709 30710 30711cares_includes_stropts="\ 30712/* includes start */ 30713#ifdef HAVE_SYS_TYPES_H 30714# include <sys/types.h> 30715#endif 30716#ifdef HAVE_UNISTD_H 30717# include <unistd.h> 30718#endif 30719#ifdef HAVE_SYS_SOCKET_H 30720# include <sys/socket.h> 30721#endif 30722#ifdef HAVE_SYS_IOCTL_H 30723# include <sys/ioctl.h> 30724#endif 30725#ifdef HAVE_STROPTS_H 30726# include <stropts.h> 30727#endif 30728/* includes end */" 30729 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$cares_includes_stropts 30730" 30731if test "x$ac_cv_header_sys_types_h" = xyes 30732then : 30733 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 30734 30735fi 30736ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$cares_includes_stropts 30737" 30738if test "x$ac_cv_header_unistd_h" = xyes 30739then : 30740 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h 30741 30742fi 30743ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$cares_includes_stropts 30744" 30745if test "x$ac_cv_header_sys_socket_h" = xyes 30746then : 30747 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 30748 30749fi 30750ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$cares_includes_stropts 30751" 30752if test "x$ac_cv_header_sys_ioctl_h" = xyes 30753then : 30754 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h 30755 30756fi 30757ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$cares_includes_stropts 30758" 30759if test "x$ac_cv_header_stropts_h" = xyes 30760then : 30761 printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h 30762 30763fi 30764 30765 30766 30767 # 30768 tst_links_ioctl="unknown" 30769 tst_proto_ioctl="unknown" 30770 tst_compi_ioctl="unknown" 30771 tst_allow_ioctl="unknown" 30772 # 30773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5 30774printf %s "checking if ioctl can be linked... " >&6; } 30775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30776/* end confdefs.h. */ 30777 30778 /* Define ioctl to an innocuous variant, in case <limits.h> declares ioctl. 30779 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 30780#define ioctl innocuous_ioctl 30781 30782/* System header to define __stub macros and hopefully few prototypes, 30783 which can conflict with char ioctl (); below. */ 30784 30785#include <limits.h> 30786#undef ioctl 30787 30788/* Override any GCC internal prototype to avoid an error. 30789 Use char because int might match the return type of a GCC 30790 builtin and then its argument prototype would still apply. */ 30791#ifdef __cplusplus 30792extern "C" 30793#endif 30794char ioctl (); 30795/* The GNU C library defines this for functions which it implements 30796 to always fail with ENOSYS. Some functions are actually named 30797 something starting with __ and the normal name is an alias. */ 30798#if defined __stub_ioctl || defined __stub___ioctl 30799choke me 30800#endif 30801 30802int 30803main (void) 30804{ 30805return ioctl (); 30806 ; 30807 return 0; 30808} 30809 30810_ACEOF 30811if ac_fn_c_try_link "$LINENO" 30812then : 30813 30814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30815printf "%s\n" "yes" >&6; } 30816 tst_links_ioctl="yes" 30817 30818else $as_nop 30819 30820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30821printf "%s\n" "no" >&6; } 30822 tst_links_ioctl="no" 30823 30824fi 30825rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30826 conftest$ac_exeext conftest.$ac_ext 30827 # 30828 if test "$tst_links_ioctl" = "yes"; then 30829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5 30830printf %s "checking if ioctl is prototyped... " >&6; } 30831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30832/* end confdefs.h. */ 30833 30834 $cares_includes_stropts 30835 30836_ACEOF 30837if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 30838 $EGREP "ioctl" >/dev/null 2>&1 30839then : 30840 30841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30842printf "%s\n" "yes" >&6; } 30843 tst_proto_ioctl="yes" 30844 30845else $as_nop 30846 30847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30848printf "%s\n" "no" >&6; } 30849 tst_proto_ioctl="no" 30850 30851fi 30852rm -rf conftest* 30853 30854 fi 30855 # 30856 if test "$tst_proto_ioctl" = "yes"; then 30857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5 30858printf %s "checking if ioctl is compilable... " >&6; } 30859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30860/* end confdefs.h. */ 30861 30862 30863 $cares_includes_stropts 30864 30865int 30866main (void) 30867{ 30868 30869 if(0 != ioctl(0, 0, 0)) 30870 return 1; 30871 30872 ; 30873 return 0; 30874} 30875 30876_ACEOF 30877if ac_fn_c_try_compile "$LINENO" 30878then : 30879 30880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30881printf "%s\n" "yes" >&6; } 30882 tst_compi_ioctl="yes" 30883 30884else $as_nop 30885 30886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30887printf "%s\n" "no" >&6; } 30888 tst_compi_ioctl="no" 30889 30890fi 30891rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 30892 fi 30893 # 30894 if test "$tst_compi_ioctl" = "yes"; then 30895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5 30896printf %s "checking if ioctl usage allowed... " >&6; } 30897 if test "x$cares_disallow_ioctl" != "xyes"; then 30898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30899printf "%s\n" "yes" >&6; } 30900 tst_allow_ioctl="yes" 30901 else 30902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30903printf "%s\n" "no" >&6; } 30904 tst_allow_ioctl="no" 30905 fi 30906 fi 30907 # 30908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5 30909printf %s "checking if ioctl might be used... " >&6; } 30910 if test "$tst_links_ioctl" = "yes" && 30911 test "$tst_proto_ioctl" = "yes" && 30912 test "$tst_compi_ioctl" = "yes" && 30913 test "$tst_allow_ioctl" = "yes"; then 30914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30915printf "%s\n" "yes" >&6; } 30916 30917printf "%s\n" "#define HAVE_IOCTL 1" >>confdefs.h 30918 30919 ac_cv_func_ioctl="yes" 30920 30921 # 30922 tst_compi_ioctl_fionbio="unknown" 30923 tst_allow_ioctl_fionbio="unknown" 30924 # 30925 if test "$ac_cv_func_ioctl" = "yes"; then 30926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5 30927printf %s "checking if ioctl FIONBIO is compilable... " >&6; } 30928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30929/* end confdefs.h. */ 30930 30931 30932 $cares_includes_stropts 30933 30934int 30935main (void) 30936{ 30937 30938 int flags = 0; 30939 if(0 != ioctl(0, FIONBIO, &flags)) 30940 return 1; 30941 30942 ; 30943 return 0; 30944} 30945 30946_ACEOF 30947if ac_fn_c_try_compile "$LINENO" 30948then : 30949 30950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30951printf "%s\n" "yes" >&6; } 30952 tst_compi_ioctl_fionbio="yes" 30953 30954else $as_nop 30955 30956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30957printf "%s\n" "no" >&6; } 30958 tst_compi_ioctl_fionbio="no" 30959 30960fi 30961rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 30962 fi 30963 # 30964 if test "$tst_compi_ioctl_fionbio" = "yes"; then 30965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5 30966printf %s "checking if ioctl FIONBIO usage allowed... " >&6; } 30967 if test "x$cares_disallow_ioctl_fionbio" != "xyes"; then 30968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30969printf "%s\n" "yes" >&6; } 30970 tst_allow_ioctl_fionbio="yes" 30971 else 30972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30973printf "%s\n" "no" >&6; } 30974 tst_allow_ioctl_fionbio="no" 30975 fi 30976 fi 30977 # 30978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5 30979printf %s "checking if ioctl FIONBIO might be used... " >&6; } 30980 if test "$tst_compi_ioctl_fionbio" = "yes" && 30981 test "$tst_allow_ioctl_fionbio" = "yes"; then 30982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30983printf "%s\n" "yes" >&6; } 30984 30985printf "%s\n" "#define HAVE_IOCTL_FIONBIO 1" >>confdefs.h 30986 30987 ac_cv_func_ioctl_fionbio="yes" 30988 else 30989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30990printf "%s\n" "no" >&6; } 30991 ac_cv_func_ioctl_fionbio="no" 30992 fi 30993 30994 30995 # 30996 tst_compi_ioctl_siocgifaddr="unknown" 30997 tst_allow_ioctl_siocgifaddr="unknown" 30998 # 30999 if test "$ac_cv_func_ioctl" = "yes"; then 31000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5 31001printf %s "checking if ioctl SIOCGIFADDR is compilable... " >&6; } 31002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31003/* end confdefs.h. */ 31004 31005 31006 $cares_includes_stropts 31007 #include <net/if.h> 31008 31009int 31010main (void) 31011{ 31012 31013 struct ifreq ifr; 31014 if(0 != ioctl(0, SIOCGIFADDR, &ifr)) 31015 return 1; 31016 31017 ; 31018 return 0; 31019} 31020 31021_ACEOF 31022if ac_fn_c_try_compile "$LINENO" 31023then : 31024 31025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31026printf "%s\n" "yes" >&6; } 31027 tst_compi_ioctl_siocgifaddr="yes" 31028 31029else $as_nop 31030 31031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31032printf "%s\n" "no" >&6; } 31033 tst_compi_ioctl_siocgifaddr="no" 31034 31035fi 31036rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 31037 fi 31038 # 31039 if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then 31040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5 31041printf %s "checking if ioctl SIOCGIFADDR usage allowed... " >&6; } 31042 if test "x$cares_disallow_ioctl_siocgifaddr" != "xyes"; then 31043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31044printf "%s\n" "yes" >&6; } 31045 tst_allow_ioctl_siocgifaddr="yes" 31046 else 31047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31048printf "%s\n" "no" >&6; } 31049 tst_allow_ioctl_siocgifaddr="no" 31050 fi 31051 fi 31052 # 31053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5 31054printf %s "checking if ioctl SIOCGIFADDR might be used... " >&6; } 31055 if test "$tst_compi_ioctl_siocgifaddr" = "yes" && 31056 test "$tst_allow_ioctl_siocgifaddr" = "yes"; then 31057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31058printf "%s\n" "yes" >&6; } 31059 31060printf "%s\n" "#define HAVE_IOCTL_SIOCGIFADDR 1" >>confdefs.h 31061 31062 ac_cv_func_ioctl_siocgifaddr="yes" 31063 else 31064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31065printf "%s\n" "no" >&6; } 31066 ac_cv_func_ioctl_siocgifaddr="no" 31067 fi 31068 31069 else 31070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31071printf "%s\n" "no" >&6; } 31072 ac_cv_func_ioctl="no" 31073 fi 31074 31075 31076 # 31077 tst_links_ioctlsocket="unknown" 31078 tst_proto_ioctlsocket="unknown" 31079 tst_compi_ioctlsocket="unknown" 31080 tst_allow_ioctlsocket="unknown" 31081 # 31082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5 31083printf %s "checking if ioctlsocket can be linked... " >&6; } 31084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31085/* end confdefs.h. */ 31086 31087 31088 $cares_includes_winsock2 31089 31090int 31091main (void) 31092{ 31093 31094 if(0 != ioctlsocket(0, 0, 0)) 31095 return 1; 31096 31097 ; 31098 return 0; 31099} 31100 31101_ACEOF 31102if ac_fn_c_try_link "$LINENO" 31103then : 31104 31105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31106printf "%s\n" "yes" >&6; } 31107 tst_links_ioctlsocket="yes" 31108 31109else $as_nop 31110 31111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31112printf "%s\n" "no" >&6; } 31113 tst_links_ioctlsocket="no" 31114 31115fi 31116rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31117 conftest$ac_exeext conftest.$ac_ext 31118 # 31119 if test "$tst_links_ioctlsocket" = "yes"; then 31120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5 31121printf %s "checking if ioctlsocket is prototyped... " >&6; } 31122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31123/* end confdefs.h. */ 31124 31125 $cares_includes_winsock2 31126 31127_ACEOF 31128if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 31129 $EGREP "ioctlsocket" >/dev/null 2>&1 31130then : 31131 31132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31133printf "%s\n" "yes" >&6; } 31134 tst_proto_ioctlsocket="yes" 31135 31136else $as_nop 31137 31138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31139printf "%s\n" "no" >&6; } 31140 tst_proto_ioctlsocket="no" 31141 31142fi 31143rm -rf conftest* 31144 31145 fi 31146 # 31147 if test "$tst_proto_ioctlsocket" = "yes"; then 31148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5 31149printf %s "checking if ioctlsocket is compilable... " >&6; } 31150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31151/* end confdefs.h. */ 31152 31153 31154 $cares_includes_winsock2 31155 31156int 31157main (void) 31158{ 31159 31160 if(0 != ioctlsocket(0, 0, 0)) 31161 return 1; 31162 31163 ; 31164 return 0; 31165} 31166 31167_ACEOF 31168if ac_fn_c_try_compile "$LINENO" 31169then : 31170 31171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31172printf "%s\n" "yes" >&6; } 31173 tst_compi_ioctlsocket="yes" 31174 31175else $as_nop 31176 31177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31178printf "%s\n" "no" >&6; } 31179 tst_compi_ioctlsocket="no" 31180 31181fi 31182rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 31183 fi 31184 # 31185 if test "$tst_compi_ioctlsocket" = "yes"; then 31186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5 31187printf %s "checking if ioctlsocket usage allowed... " >&6; } 31188 if test "x$cares_disallow_ioctlsocket" != "xyes"; then 31189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31190printf "%s\n" "yes" >&6; } 31191 tst_allow_ioctlsocket="yes" 31192 else 31193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31194printf "%s\n" "no" >&6; } 31195 tst_allow_ioctlsocket="no" 31196 fi 31197 fi 31198 # 31199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5 31200printf %s "checking if ioctlsocket might be used... " >&6; } 31201 if test "$tst_links_ioctlsocket" = "yes" && 31202 test "$tst_proto_ioctlsocket" = "yes" && 31203 test "$tst_compi_ioctlsocket" = "yes" && 31204 test "$tst_allow_ioctlsocket" = "yes"; then 31205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31206printf "%s\n" "yes" >&6; } 31207 31208printf "%s\n" "#define HAVE_IOCTLSOCKET 1" >>confdefs.h 31209 31210 ac_cv_func_ioctlsocket="yes" 31211 31212 # 31213 tst_compi_ioctlsocket_fionbio="unknown" 31214 tst_allow_ioctlsocket_fionbio="unknown" 31215 # 31216 if test "$ac_cv_func_ioctlsocket" = "yes"; then 31217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5 31218printf %s "checking if ioctlsocket FIONBIO is compilable... " >&6; } 31219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31220/* end confdefs.h. */ 31221 31222 31223 $cares_includes_winsock2 31224 31225int 31226main (void) 31227{ 31228 31229 int flags = 0; 31230 if(0 != ioctlsocket(0, FIONBIO, &flags)) 31231 return 1; 31232 31233 ; 31234 return 0; 31235} 31236 31237_ACEOF 31238if ac_fn_c_try_compile "$LINENO" 31239then : 31240 31241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31242printf "%s\n" "yes" >&6; } 31243 tst_compi_ioctlsocket_fionbio="yes" 31244 31245else $as_nop 31246 31247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31248printf "%s\n" "no" >&6; } 31249 tst_compi_ioctlsocket_fionbio="no" 31250 31251fi 31252rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 31253 fi 31254 # 31255 if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then 31256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5 31257printf %s "checking if ioctlsocket FIONBIO usage allowed... " >&6; } 31258 if test "x$cares_disallow_ioctlsocket_fionbio" != "xyes"; then 31259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31260printf "%s\n" "yes" >&6; } 31261 tst_allow_ioctlsocket_fionbio="yes" 31262 else 31263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31264printf "%s\n" "no" >&6; } 31265 tst_allow_ioctlsocket_fionbio="no" 31266 fi 31267 fi 31268 # 31269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5 31270printf %s "checking if ioctlsocket FIONBIO might be used... " >&6; } 31271 if test "$tst_compi_ioctlsocket_fionbio" = "yes" && 31272 test "$tst_allow_ioctlsocket_fionbio" = "yes"; then 31273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31274printf "%s\n" "yes" >&6; } 31275 31276printf "%s\n" "#define HAVE_IOCTLSOCKET_FIONBIO 1" >>confdefs.h 31277 31278 ac_cv_func_ioctlsocket_fionbio="yes" 31279 else 31280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31281printf "%s\n" "no" >&6; } 31282 ac_cv_func_ioctlsocket_fionbio="no" 31283 fi 31284 31285 else 31286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31287printf "%s\n" "no" >&6; } 31288 ac_cv_func_ioctlsocket="no" 31289 fi 31290 31291 31292 # 31293 tst_links_ioctlsocket_camel="unknown" 31294 tst_proto_ioctlsocket_camel="unknown" 31295 tst_compi_ioctlsocket_camel="unknown" 31296 tst_allow_ioctlsocket_camel="unknown" 31297 # 31298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5 31299printf %s "checking if IoctlSocket can be linked... " >&6; } 31300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31301/* end confdefs.h. */ 31302 31303 /* Define IoctlSocket to an innocuous variant, in case <limits.h> declares IoctlSocket. 31304 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 31305#define IoctlSocket innocuous_IoctlSocket 31306 31307/* System header to define __stub macros and hopefully few prototypes, 31308 which can conflict with char IoctlSocket (); below. */ 31309 31310#include <limits.h> 31311#undef IoctlSocket 31312 31313/* Override any GCC internal prototype to avoid an error. 31314 Use char because int might match the return type of a GCC 31315 builtin and then its argument prototype would still apply. */ 31316#ifdef __cplusplus 31317extern "C" 31318#endif 31319char IoctlSocket (); 31320/* The GNU C library defines this for functions which it implements 31321 to always fail with ENOSYS. Some functions are actually named 31322 something starting with __ and the normal name is an alias. */ 31323#if defined __stub_IoctlSocket || defined __stub___IoctlSocket 31324choke me 31325#endif 31326 31327int 31328main (void) 31329{ 31330return IoctlSocket (); 31331 ; 31332 return 0; 31333} 31334 31335_ACEOF 31336if ac_fn_c_try_link "$LINENO" 31337then : 31338 31339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31340printf "%s\n" "yes" >&6; } 31341 tst_links_ioctlsocket_camel="yes" 31342 31343else $as_nop 31344 31345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31346printf "%s\n" "no" >&6; } 31347 tst_links_ioctlsocket_camel="no" 31348 31349fi 31350rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31351 conftest$ac_exeext conftest.$ac_ext 31352 # 31353 if test "$tst_links_ioctlsocket_camel" = "yes"; then 31354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5 31355printf %s "checking if IoctlSocket is prototyped... " >&6; } 31356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31357/* end confdefs.h. */ 31358 31359 $cares_includes_stropts 31360 31361_ACEOF 31362if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 31363 $EGREP "IoctlSocket" >/dev/null 2>&1 31364then : 31365 31366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31367printf "%s\n" "yes" >&6; } 31368 tst_proto_ioctlsocket_camel="yes" 31369 31370else $as_nop 31371 31372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31373printf "%s\n" "no" >&6; } 31374 tst_proto_ioctlsocket_camel="no" 31375 31376fi 31377rm -rf conftest* 31378 31379 fi 31380 # 31381 if test "$tst_proto_ioctlsocket_camel" = "yes"; then 31382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5 31383printf %s "checking if IoctlSocket is compilable... " >&6; } 31384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31385/* end confdefs.h. */ 31386 31387 31388 $cares_includes_stropts 31389 31390int 31391main (void) 31392{ 31393 31394 if(0 != IoctlSocket(0, 0, 0)) 31395 return 1; 31396 31397 ; 31398 return 0; 31399} 31400 31401_ACEOF 31402if ac_fn_c_try_compile "$LINENO" 31403then : 31404 31405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31406printf "%s\n" "yes" >&6; } 31407 tst_compi_ioctlsocket_camel="yes" 31408 31409else $as_nop 31410 31411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31412printf "%s\n" "no" >&6; } 31413 tst_compi_ioctlsocket_camel="no" 31414 31415fi 31416rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 31417 fi 31418 # 31419 if test "$tst_compi_ioctlsocket_camel" = "yes"; then 31420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5 31421printf %s "checking if IoctlSocket usage allowed... " >&6; } 31422 if test "x$cares_disallow_ioctlsocket_camel" != "xyes"; then 31423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31424printf "%s\n" "yes" >&6; } 31425 tst_allow_ioctlsocket_camel="yes" 31426 else 31427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31428printf "%s\n" "no" >&6; } 31429 tst_allow_ioctlsocket_camel="no" 31430 fi 31431 fi 31432 # 31433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5 31434printf %s "checking if IoctlSocket might be used... " >&6; } 31435 if test "$tst_links_ioctlsocket_camel" = "yes" && 31436 test "$tst_proto_ioctlsocket_camel" = "yes" && 31437 test "$tst_compi_ioctlsocket_camel" = "yes" && 31438 test "$tst_allow_ioctlsocket_camel" = "yes"; then 31439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31440printf "%s\n" "yes" >&6; } 31441 31442printf "%s\n" "#define HAVE_IOCTLSOCKET_CAMEL 1" >>confdefs.h 31443 31444 ac_cv_func_ioctlsocket_camel="yes" 31445 31446 # 31447 tst_compi_ioctlsocket_camel_fionbio="unknown" 31448 tst_allow_ioctlsocket_camel_fionbio="unknown" 31449 # 31450 if test "$ac_cv_func_ioctlsocket_camel" = "yes"; then 31451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5 31452printf %s "checking if IoctlSocket FIONBIO is compilable... " >&6; } 31453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31454/* end confdefs.h. */ 31455 31456 31457 $cares_includes_stropts 31458 31459int 31460main (void) 31461{ 31462 31463 long flags = 0; 31464 if(0 != ioctlsocket(0, FIONBIO, &flags)) 31465 return 1; 31466 31467 ; 31468 return 0; 31469} 31470 31471_ACEOF 31472if ac_fn_c_try_compile "$LINENO" 31473then : 31474 31475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31476printf "%s\n" "yes" >&6; } 31477 tst_compi_ioctlsocket_camel_fionbio="yes" 31478 31479else $as_nop 31480 31481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31482printf "%s\n" "no" >&6; } 31483 tst_compi_ioctlsocket_camel_fionbio="no" 31484 31485fi 31486rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 31487 fi 31488 # 31489 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then 31490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5 31491printf %s "checking if IoctlSocket FIONBIO usage allowed... " >&6; } 31492 if test "x$cares_disallow_ioctlsocket_camel_fionbio" != "xyes"; then 31493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31494printf "%s\n" "yes" >&6; } 31495 tst_allow_ioctlsocket_camel_fionbio="yes" 31496 else 31497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31498printf "%s\n" "no" >&6; } 31499 tst_allow_ioctlsocket_camel_fionbio="no" 31500 fi 31501 fi 31502 # 31503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5 31504printf %s "checking if IoctlSocket FIONBIO might be used... " >&6; } 31505 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" && 31506 test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then 31507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31508printf "%s\n" "yes" >&6; } 31509 31510printf "%s\n" "#define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1" >>confdefs.h 31511 31512 ac_cv_func_ioctlsocket_camel_fionbio="yes" 31513 else 31514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31515printf "%s\n" "no" >&6; } 31516 ac_cv_func_ioctlsocket_camel_fionbio="no" 31517 fi 31518 31519 else 31520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31521printf "%s\n" "no" >&6; } 31522 ac_cv_func_ioctlsocket_camel="no" 31523 fi 31524 31525 31526 # 31527 tst_links_setsockopt="unknown" 31528 tst_proto_setsockopt="unknown" 31529 tst_compi_setsockopt="unknown" 31530 tst_allow_setsockopt="unknown" 31531 # 31532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5 31533printf %s "checking if setsockopt can be linked... " >&6; } 31534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31535/* end confdefs.h. */ 31536 31537 31538 $cares_includes_winsock2 31539 $cares_includes_sys_socket 31540 31541int 31542main (void) 31543{ 31544 31545 if(0 != setsockopt(0, 0, 0, 0, 0)) 31546 return 1; 31547 31548 ; 31549 return 0; 31550} 31551 31552_ACEOF 31553if ac_fn_c_try_link "$LINENO" 31554then : 31555 31556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31557printf "%s\n" "yes" >&6; } 31558 tst_links_setsockopt="yes" 31559 31560else $as_nop 31561 31562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31563printf "%s\n" "no" >&6; } 31564 tst_links_setsockopt="no" 31565 31566fi 31567rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31568 conftest$ac_exeext conftest.$ac_ext 31569 # 31570 if test "$tst_links_setsockopt" = "yes"; then 31571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5 31572printf %s "checking if setsockopt is prototyped... " >&6; } 31573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31574/* end confdefs.h. */ 31575 31576 $cares_includes_winsock2 31577 $cares_includes_sys_socket 31578 31579_ACEOF 31580if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 31581 $EGREP "setsockopt" >/dev/null 2>&1 31582then : 31583 31584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31585printf "%s\n" "yes" >&6; } 31586 tst_proto_setsockopt="yes" 31587 31588else $as_nop 31589 31590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31591printf "%s\n" "no" >&6; } 31592 tst_proto_setsockopt="no" 31593 31594fi 31595rm -rf conftest* 31596 31597 fi 31598 # 31599 if test "$tst_proto_setsockopt" = "yes"; then 31600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5 31601printf %s "checking if setsockopt is compilable... " >&6; } 31602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31603/* end confdefs.h. */ 31604 31605 31606 $cares_includes_winsock2 31607 $cares_includes_sys_socket 31608 31609int 31610main (void) 31611{ 31612 31613 if(0 != setsockopt(0, 0, 0, 0, 0)) 31614 return 1; 31615 31616 ; 31617 return 0; 31618} 31619 31620_ACEOF 31621if ac_fn_c_try_compile "$LINENO" 31622then : 31623 31624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31625printf "%s\n" "yes" >&6; } 31626 tst_compi_setsockopt="yes" 31627 31628else $as_nop 31629 31630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31631printf "%s\n" "no" >&6; } 31632 tst_compi_setsockopt="no" 31633 31634fi 31635rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 31636 fi 31637 # 31638 if test "$tst_compi_setsockopt" = "yes"; then 31639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5 31640printf %s "checking if setsockopt usage allowed... " >&6; } 31641 if test "x$cares_disallow_setsockopt" != "xyes"; then 31642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31643printf "%s\n" "yes" >&6; } 31644 tst_allow_setsockopt="yes" 31645 else 31646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31647printf "%s\n" "no" >&6; } 31648 tst_allow_setsockopt="no" 31649 fi 31650 fi 31651 # 31652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5 31653printf %s "checking if setsockopt might be used... " >&6; } 31654 if test "$tst_links_setsockopt" = "yes" && 31655 test "$tst_proto_setsockopt" = "yes" && 31656 test "$tst_compi_setsockopt" = "yes" && 31657 test "$tst_allow_setsockopt" = "yes"; then 31658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31659printf "%s\n" "yes" >&6; } 31660 31661printf "%s\n" "#define HAVE_SETSOCKOPT 1" >>confdefs.h 31662 31663 ac_cv_func_setsockopt="yes" 31664 31665 # 31666 tst_compi_setsockopt_so_nonblock="unknown" 31667 tst_allow_setsockopt_so_nonblock="unknown" 31668 # 31669 if test "$ac_cv_func_setsockopt" = "yes"; then 31670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5 31671printf %s "checking if setsockopt SO_NONBLOCK is compilable... " >&6; } 31672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31673/* end confdefs.h. */ 31674 31675 31676 $cares_includes_winsock2 31677 $cares_includes_sys_socket 31678 31679int 31680main (void) 31681{ 31682 31683 if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0)) 31684 return 1; 31685 31686 ; 31687 return 0; 31688} 31689 31690_ACEOF 31691if ac_fn_c_try_compile "$LINENO" 31692then : 31693 31694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31695printf "%s\n" "yes" >&6; } 31696 tst_compi_setsockopt_so_nonblock="yes" 31697 31698else $as_nop 31699 31700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31701printf "%s\n" "no" >&6; } 31702 tst_compi_setsockopt_so_nonblock="no" 31703 31704fi 31705rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 31706 fi 31707 # 31708 if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then 31709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5 31710printf %s "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; } 31711 if test "x$cares_disallow_setsockopt_so_nonblock" != "xyes"; then 31712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31713printf "%s\n" "yes" >&6; } 31714 tst_allow_setsockopt_so_nonblock="yes" 31715 else 31716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31717printf "%s\n" "no" >&6; } 31718 tst_allow_setsockopt_so_nonblock="no" 31719 fi 31720 fi 31721 # 31722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5 31723printf %s "checking if setsockopt SO_NONBLOCK might be used... " >&6; } 31724 if test "$tst_compi_setsockopt_so_nonblock" = "yes" && 31725 test "$tst_allow_setsockopt_so_nonblock" = "yes"; then 31726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31727printf "%s\n" "yes" >&6; } 31728 31729printf "%s\n" "#define HAVE_SETSOCKOPT_SO_NONBLOCK 1" >>confdefs.h 31730 31731 ac_cv_func_setsockopt_so_nonblock="yes" 31732 else 31733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31734printf "%s\n" "no" >&6; } 31735 ac_cv_func_setsockopt_so_nonblock="no" 31736 fi 31737 31738 else 31739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31740printf "%s\n" "no" >&6; } 31741 ac_cv_func_setsockopt="no" 31742 fi 31743 31744 31745 # 31746 tst_links_socket="unknown" 31747 tst_proto_socket="unknown" 31748 tst_compi_socket="unknown" 31749 tst_allow_socket="unknown" 31750 # 31751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5 31752printf %s "checking if socket can be linked... " >&6; } 31753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31754/* end confdefs.h. */ 31755 31756 31757 $cares_includes_winsock2 31758 $cares_includes_sys_socket 31759 $cares_includes_socket 31760 31761int 31762main (void) 31763{ 31764 31765 if(0 != socket(0, 0, 0)) 31766 return 1; 31767 31768 ; 31769 return 0; 31770} 31771 31772_ACEOF 31773if ac_fn_c_try_link "$LINENO" 31774then : 31775 31776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31777printf "%s\n" "yes" >&6; } 31778 tst_links_socket="yes" 31779 31780else $as_nop 31781 31782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31783printf "%s\n" "no" >&6; } 31784 tst_links_socket="no" 31785 31786fi 31787rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31788 conftest$ac_exeext conftest.$ac_ext 31789 # 31790 if test "$tst_links_socket" = "yes"; then 31791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5 31792printf %s "checking if socket is prototyped... " >&6; } 31793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31794/* end confdefs.h. */ 31795 31796 $cares_includes_winsock2 31797 $cares_includes_sys_socket 31798 $cares_includes_socket 31799 31800_ACEOF 31801if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 31802 $EGREP "socket" >/dev/null 2>&1 31803then : 31804 31805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31806printf "%s\n" "yes" >&6; } 31807 tst_proto_socket="yes" 31808 31809else $as_nop 31810 31811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31812printf "%s\n" "no" >&6; } 31813 tst_proto_socket="no" 31814 31815fi 31816rm -rf conftest* 31817 31818 fi 31819 # 31820 if test "$tst_proto_socket" = "yes"; then 31821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5 31822printf %s "checking if socket is compilable... " >&6; } 31823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31824/* end confdefs.h. */ 31825 31826 31827 $cares_includes_winsock2 31828 $cares_includes_sys_socket 31829 $cares_includes_socket 31830 31831int 31832main (void) 31833{ 31834 31835 if(0 != socket(0, 0, 0)) 31836 return 1; 31837 31838 ; 31839 return 0; 31840} 31841 31842_ACEOF 31843if ac_fn_c_try_compile "$LINENO" 31844then : 31845 31846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31847printf "%s\n" "yes" >&6; } 31848 tst_compi_socket="yes" 31849 31850else $as_nop 31851 31852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31853printf "%s\n" "no" >&6; } 31854 tst_compi_socket="no" 31855 31856fi 31857rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 31858 fi 31859 # 31860 if test "$tst_compi_socket" = "yes"; then 31861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5 31862printf %s "checking if socket usage allowed... " >&6; } 31863 if test "x$cares_disallow_socket" != "xyes"; then 31864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31865printf "%s\n" "yes" >&6; } 31866 tst_allow_socket="yes" 31867 else 31868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31869printf "%s\n" "no" >&6; } 31870 tst_allow_socket="no" 31871 fi 31872 fi 31873 # 31874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5 31875printf %s "checking if socket might be used... " >&6; } 31876 if test "$tst_links_socket" = "yes" && 31877 test "$tst_proto_socket" = "yes" && 31878 test "$tst_compi_socket" = "yes" && 31879 test "$tst_allow_socket" = "yes"; then 31880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31881printf "%s\n" "yes" >&6; } 31882 31883printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h 31884 31885 ac_cv_func_socket="yes" 31886 else 31887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31888printf "%s\n" "no" >&6; } 31889 ac_cv_func_socket="no" 31890 fi 31891 31892 31893 # 31894 tst_links_strcasecmp="unknown" 31895 tst_proto_strcasecmp="unknown" 31896 tst_compi_strcasecmp="unknown" 31897 tst_allow_strcasecmp="unknown" 31898 # 31899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5 31900printf %s "checking if strcasecmp can be linked... " >&6; } 31901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31902/* end confdefs.h. */ 31903 31904 /* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp. 31905 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 31906#define strcasecmp innocuous_strcasecmp 31907 31908/* System header to define __stub macros and hopefully few prototypes, 31909 which can conflict with char strcasecmp (); below. */ 31910 31911#include <limits.h> 31912#undef strcasecmp 31913 31914/* Override any GCC internal prototype to avoid an error. 31915 Use char because int might match the return type of a GCC 31916 builtin and then its argument prototype would still apply. */ 31917#ifdef __cplusplus 31918extern "C" 31919#endif 31920char strcasecmp (); 31921/* The GNU C library defines this for functions which it implements 31922 to always fail with ENOSYS. Some functions are actually named 31923 something starting with __ and the normal name is an alias. */ 31924#if defined __stub_strcasecmp || defined __stub___strcasecmp 31925choke me 31926#endif 31927 31928int 31929main (void) 31930{ 31931return strcasecmp (); 31932 ; 31933 return 0; 31934} 31935 31936_ACEOF 31937if ac_fn_c_try_link "$LINENO" 31938then : 31939 31940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31941printf "%s\n" "yes" >&6; } 31942 tst_links_strcasecmp="yes" 31943 31944else $as_nop 31945 31946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31947printf "%s\n" "no" >&6; } 31948 tst_links_strcasecmp="no" 31949 31950fi 31951rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31952 conftest$ac_exeext conftest.$ac_ext 31953 # 31954 if test "$tst_links_strcasecmp" = "yes"; then 31955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5 31956printf %s "checking if strcasecmp is prototyped... " >&6; } 31957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31958/* end confdefs.h. */ 31959 31960 $cares_includes_string 31961 31962_ACEOF 31963if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 31964 $EGREP "strcasecmp" >/dev/null 2>&1 31965then : 31966 31967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31968printf "%s\n" "yes" >&6; } 31969 tst_proto_strcasecmp="yes" 31970 31971else $as_nop 31972 31973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31974printf "%s\n" "no" >&6; } 31975 tst_proto_strcasecmp="no" 31976 31977fi 31978rm -rf conftest* 31979 31980 fi 31981 # 31982 if test "$tst_proto_strcasecmp" = "yes"; then 31983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5 31984printf %s "checking if strcasecmp is compilable... " >&6; } 31985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31986/* end confdefs.h. */ 31987 31988 31989 $cares_includes_string 31990 31991int 31992main (void) 31993{ 31994 31995 if(0 != strcasecmp(0, 0)) 31996 return 1; 31997 31998 ; 31999 return 0; 32000} 32001 32002_ACEOF 32003if ac_fn_c_try_compile "$LINENO" 32004then : 32005 32006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32007printf "%s\n" "yes" >&6; } 32008 tst_compi_strcasecmp="yes" 32009 32010else $as_nop 32011 32012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32013printf "%s\n" "no" >&6; } 32014 tst_compi_strcasecmp="no" 32015 32016fi 32017rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 32018 fi 32019 # 32020 if test "$tst_compi_strcasecmp" = "yes"; then 32021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5 32022printf %s "checking if strcasecmp usage allowed... " >&6; } 32023 if test "x$cares_disallow_strcasecmp" != "xyes"; then 32024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32025printf "%s\n" "yes" >&6; } 32026 tst_allow_strcasecmp="yes" 32027 else 32028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32029printf "%s\n" "no" >&6; } 32030 tst_allow_strcasecmp="no" 32031 fi 32032 fi 32033 # 32034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5 32035printf %s "checking if strcasecmp might be used... " >&6; } 32036 if test "$tst_links_strcasecmp" = "yes" && 32037 test "$tst_proto_strcasecmp" = "yes" && 32038 test "$tst_compi_strcasecmp" = "yes" && 32039 test "$tst_allow_strcasecmp" = "yes"; then 32040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32041printf "%s\n" "yes" >&6; } 32042 32043printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h 32044 32045 ac_cv_func_strcasecmp="yes" 32046 else 32047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32048printf "%s\n" "no" >&6; } 32049 ac_cv_func_strcasecmp="no" 32050 fi 32051 32052 32053 # 32054 tst_links_strcmpi="unknown" 32055 tst_proto_strcmpi="unknown" 32056 tst_compi_strcmpi="unknown" 32057 tst_allow_strcmpi="unknown" 32058 # 32059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5 32060printf %s "checking if strcmpi can be linked... " >&6; } 32061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32062/* end confdefs.h. */ 32063 32064 /* Define strcmpi to an innocuous variant, in case <limits.h> declares strcmpi. 32065 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 32066#define strcmpi innocuous_strcmpi 32067 32068/* System header to define __stub macros and hopefully few prototypes, 32069 which can conflict with char strcmpi (); below. */ 32070 32071#include <limits.h> 32072#undef strcmpi 32073 32074/* Override any GCC internal prototype to avoid an error. 32075 Use char because int might match the return type of a GCC 32076 builtin and then its argument prototype would still apply. */ 32077#ifdef __cplusplus 32078extern "C" 32079#endif 32080char strcmpi (); 32081/* The GNU C library defines this for functions which it implements 32082 to always fail with ENOSYS. Some functions are actually named 32083 something starting with __ and the normal name is an alias. */ 32084#if defined __stub_strcmpi || defined __stub___strcmpi 32085choke me 32086#endif 32087 32088int 32089main (void) 32090{ 32091return strcmpi (); 32092 ; 32093 return 0; 32094} 32095 32096_ACEOF 32097if ac_fn_c_try_link "$LINENO" 32098then : 32099 32100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32101printf "%s\n" "yes" >&6; } 32102 tst_links_strcmpi="yes" 32103 32104else $as_nop 32105 32106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32107printf "%s\n" "no" >&6; } 32108 tst_links_strcmpi="no" 32109 32110fi 32111rm -f core conftest.err conftest.$ac_objext conftest.beam \ 32112 conftest$ac_exeext conftest.$ac_ext 32113 # 32114 if test "$tst_links_strcmpi" = "yes"; then 32115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5 32116printf %s "checking if strcmpi is prototyped... " >&6; } 32117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32118/* end confdefs.h. */ 32119 32120 $cares_includes_string 32121 32122_ACEOF 32123if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 32124 $EGREP "strcmpi" >/dev/null 2>&1 32125then : 32126 32127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32128printf "%s\n" "yes" >&6; } 32129 tst_proto_strcmpi="yes" 32130 32131else $as_nop 32132 32133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32134printf "%s\n" "no" >&6; } 32135 tst_proto_strcmpi="no" 32136 32137fi 32138rm -rf conftest* 32139 32140 fi 32141 # 32142 if test "$tst_proto_strcmpi" = "yes"; then 32143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5 32144printf %s "checking if strcmpi is compilable... " >&6; } 32145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32146/* end confdefs.h. */ 32147 32148 32149 $cares_includes_string 32150 32151int 32152main (void) 32153{ 32154 32155 if(0 != strcmpi(0, 0)) 32156 return 1; 32157 32158 ; 32159 return 0; 32160} 32161 32162_ACEOF 32163if ac_fn_c_try_compile "$LINENO" 32164then : 32165 32166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32167printf "%s\n" "yes" >&6; } 32168 tst_compi_strcmpi="yes" 32169 32170else $as_nop 32171 32172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32173printf "%s\n" "no" >&6; } 32174 tst_compi_strcmpi="no" 32175 32176fi 32177rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 32178 fi 32179 # 32180 if test "$tst_compi_strcmpi" = "yes"; then 32181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5 32182printf %s "checking if strcmpi usage allowed... " >&6; } 32183 if test "x$cares_disallow_strcmpi" != "xyes"; then 32184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32185printf "%s\n" "yes" >&6; } 32186 tst_allow_strcmpi="yes" 32187 else 32188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32189printf "%s\n" "no" >&6; } 32190 tst_allow_strcmpi="no" 32191 fi 32192 fi 32193 # 32194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5 32195printf %s "checking if strcmpi might be used... " >&6; } 32196 if test "$tst_links_strcmpi" = "yes" && 32197 test "$tst_proto_strcmpi" = "yes" && 32198 test "$tst_compi_strcmpi" = "yes" && 32199 test "$tst_allow_strcmpi" = "yes"; then 32200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32201printf "%s\n" "yes" >&6; } 32202 32203printf "%s\n" "#define HAVE_STRCMPI 1" >>confdefs.h 32204 32205 ac_cv_func_strcmpi="yes" 32206 else 32207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32208printf "%s\n" "no" >&6; } 32209 ac_cv_func_strcmpi="no" 32210 fi 32211 32212 32213 # 32214 tst_links_strdup="unknown" 32215 tst_proto_strdup="unknown" 32216 tst_compi_strdup="unknown" 32217 tst_allow_strdup="unknown" 32218 # 32219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5 32220printf %s "checking if strdup can be linked... " >&6; } 32221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32222/* end confdefs.h. */ 32223 32224 /* Define strdup to an innocuous variant, in case <limits.h> declares strdup. 32225 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 32226#define strdup innocuous_strdup 32227 32228/* System header to define __stub macros and hopefully few prototypes, 32229 which can conflict with char strdup (); below. */ 32230 32231#include <limits.h> 32232#undef strdup 32233 32234/* Override any GCC internal prototype to avoid an error. 32235 Use char because int might match the return type of a GCC 32236 builtin and then its argument prototype would still apply. */ 32237#ifdef __cplusplus 32238extern "C" 32239#endif 32240char strdup (); 32241/* The GNU C library defines this for functions which it implements 32242 to always fail with ENOSYS. Some functions are actually named 32243 something starting with __ and the normal name is an alias. */ 32244#if defined __stub_strdup || defined __stub___strdup 32245choke me 32246#endif 32247 32248int 32249main (void) 32250{ 32251return strdup (); 32252 ; 32253 return 0; 32254} 32255 32256_ACEOF 32257if ac_fn_c_try_link "$LINENO" 32258then : 32259 32260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32261printf "%s\n" "yes" >&6; } 32262 tst_links_strdup="yes" 32263 32264else $as_nop 32265 32266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32267printf "%s\n" "no" >&6; } 32268 tst_links_strdup="no" 32269 32270fi 32271rm -f core conftest.err conftest.$ac_objext conftest.beam \ 32272 conftest$ac_exeext conftest.$ac_ext 32273 # 32274 if test "$tst_links_strdup" = "yes"; then 32275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5 32276printf %s "checking if strdup is prototyped... " >&6; } 32277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32278/* end confdefs.h. */ 32279 32280 $cares_includes_string 32281 32282_ACEOF 32283if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 32284 $EGREP "strdup" >/dev/null 2>&1 32285then : 32286 32287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32288printf "%s\n" "yes" >&6; } 32289 tst_proto_strdup="yes" 32290 32291else $as_nop 32292 32293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32294printf "%s\n" "no" >&6; } 32295 tst_proto_strdup="no" 32296 32297fi 32298rm -rf conftest* 32299 32300 fi 32301 # 32302 if test "$tst_proto_strdup" = "yes"; then 32303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5 32304printf %s "checking if strdup is compilable... " >&6; } 32305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32306/* end confdefs.h. */ 32307 32308 32309 $cares_includes_string 32310 32311int 32312main (void) 32313{ 32314 32315 if(0 != strdup(0)) 32316 return 1; 32317 32318 ; 32319 return 0; 32320} 32321 32322_ACEOF 32323if ac_fn_c_try_compile "$LINENO" 32324then : 32325 32326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32327printf "%s\n" "yes" >&6; } 32328 tst_compi_strdup="yes" 32329 32330else $as_nop 32331 32332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32333printf "%s\n" "no" >&6; } 32334 tst_compi_strdup="no" 32335 32336fi 32337rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 32338 fi 32339 # 32340 if test "$tst_compi_strdup" = "yes"; then 32341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5 32342printf %s "checking if strdup usage allowed... " >&6; } 32343 if test "x$cares_disallow_strdup" != "xyes"; then 32344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32345printf "%s\n" "yes" >&6; } 32346 tst_allow_strdup="yes" 32347 else 32348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32349printf "%s\n" "no" >&6; } 32350 tst_allow_strdup="no" 32351 fi 32352 fi 32353 # 32354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5 32355printf %s "checking if strdup might be used... " >&6; } 32356 if test "$tst_links_strdup" = "yes" && 32357 test "$tst_proto_strdup" = "yes" && 32358 test "$tst_compi_strdup" = "yes" && 32359 test "$tst_allow_strdup" = "yes"; then 32360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32361printf "%s\n" "yes" >&6; } 32362 32363printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h 32364 32365 ac_cv_func_strdup="yes" 32366 else 32367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32368printf "%s\n" "no" >&6; } 32369 ac_cv_func_strdup="no" 32370 fi 32371 32372 32373 # 32374 tst_links_stricmp="unknown" 32375 tst_proto_stricmp="unknown" 32376 tst_compi_stricmp="unknown" 32377 tst_allow_stricmp="unknown" 32378 # 32379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5 32380printf %s "checking if stricmp can be linked... " >&6; } 32381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32382/* end confdefs.h. */ 32383 32384 /* Define stricmp to an innocuous variant, in case <limits.h> declares stricmp. 32385 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 32386#define stricmp innocuous_stricmp 32387 32388/* System header to define __stub macros and hopefully few prototypes, 32389 which can conflict with char stricmp (); below. */ 32390 32391#include <limits.h> 32392#undef stricmp 32393 32394/* Override any GCC internal prototype to avoid an error. 32395 Use char because int might match the return type of a GCC 32396 builtin and then its argument prototype would still apply. */ 32397#ifdef __cplusplus 32398extern "C" 32399#endif 32400char stricmp (); 32401/* The GNU C library defines this for functions which it implements 32402 to always fail with ENOSYS. Some functions are actually named 32403 something starting with __ and the normal name is an alias. */ 32404#if defined __stub_stricmp || defined __stub___stricmp 32405choke me 32406#endif 32407 32408int 32409main (void) 32410{ 32411return stricmp (); 32412 ; 32413 return 0; 32414} 32415 32416_ACEOF 32417if ac_fn_c_try_link "$LINENO" 32418then : 32419 32420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32421printf "%s\n" "yes" >&6; } 32422 tst_links_stricmp="yes" 32423 32424else $as_nop 32425 32426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32427printf "%s\n" "no" >&6; } 32428 tst_links_stricmp="no" 32429 32430fi 32431rm -f core conftest.err conftest.$ac_objext conftest.beam \ 32432 conftest$ac_exeext conftest.$ac_ext 32433 # 32434 if test "$tst_links_stricmp" = "yes"; then 32435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5 32436printf %s "checking if stricmp is prototyped... " >&6; } 32437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32438/* end confdefs.h. */ 32439 32440 $cares_includes_string 32441 32442_ACEOF 32443if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 32444 $EGREP "stricmp" >/dev/null 2>&1 32445then : 32446 32447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32448printf "%s\n" "yes" >&6; } 32449 tst_proto_stricmp="yes" 32450 32451else $as_nop 32452 32453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32454printf "%s\n" "no" >&6; } 32455 tst_proto_stricmp="no" 32456 32457fi 32458rm -rf conftest* 32459 32460 fi 32461 # 32462 if test "$tst_proto_stricmp" = "yes"; then 32463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5 32464printf %s "checking if stricmp is compilable... " >&6; } 32465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32466/* end confdefs.h. */ 32467 32468 32469 $cares_includes_string 32470 32471int 32472main (void) 32473{ 32474 32475 if(0 != stricmp(0, 0)) 32476 return 1; 32477 32478 ; 32479 return 0; 32480} 32481 32482_ACEOF 32483if ac_fn_c_try_compile "$LINENO" 32484then : 32485 32486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32487printf "%s\n" "yes" >&6; } 32488 tst_compi_stricmp="yes" 32489 32490else $as_nop 32491 32492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32493printf "%s\n" "no" >&6; } 32494 tst_compi_stricmp="no" 32495 32496fi 32497rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 32498 fi 32499 # 32500 if test "$tst_compi_stricmp" = "yes"; then 32501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5 32502printf %s "checking if stricmp usage allowed... " >&6; } 32503 if test "x$cares_disallow_stricmp" != "xyes"; then 32504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32505printf "%s\n" "yes" >&6; } 32506 tst_allow_stricmp="yes" 32507 else 32508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32509printf "%s\n" "no" >&6; } 32510 tst_allow_stricmp="no" 32511 fi 32512 fi 32513 # 32514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5 32515printf %s "checking if stricmp might be used... " >&6; } 32516 if test "$tst_links_stricmp" = "yes" && 32517 test "$tst_proto_stricmp" = "yes" && 32518 test "$tst_compi_stricmp" = "yes" && 32519 test "$tst_allow_stricmp" = "yes"; then 32520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32521printf "%s\n" "yes" >&6; } 32522 32523printf "%s\n" "#define HAVE_STRICMP 1" >>confdefs.h 32524 32525 ac_cv_func_stricmp="yes" 32526 else 32527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32528printf "%s\n" "no" >&6; } 32529 ac_cv_func_stricmp="no" 32530 fi 32531 32532 32533 # 32534 tst_links_strncasecmp="unknown" 32535 tst_proto_strncasecmp="unknown" 32536 tst_compi_strncasecmp="unknown" 32537 tst_allow_strncasecmp="unknown" 32538 # 32539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5 32540printf %s "checking if strncasecmp can be linked... " >&6; } 32541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32542/* end confdefs.h. */ 32543 32544 /* Define strncasecmp to an innocuous variant, in case <limits.h> declares strncasecmp. 32545 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 32546#define strncasecmp innocuous_strncasecmp 32547 32548/* System header to define __stub macros and hopefully few prototypes, 32549 which can conflict with char strncasecmp (); below. */ 32550 32551#include <limits.h> 32552#undef strncasecmp 32553 32554/* Override any GCC internal prototype to avoid an error. 32555 Use char because int might match the return type of a GCC 32556 builtin and then its argument prototype would still apply. */ 32557#ifdef __cplusplus 32558extern "C" 32559#endif 32560char strncasecmp (); 32561/* The GNU C library defines this for functions which it implements 32562 to always fail with ENOSYS. Some functions are actually named 32563 something starting with __ and the normal name is an alias. */ 32564#if defined __stub_strncasecmp || defined __stub___strncasecmp 32565choke me 32566#endif 32567 32568int 32569main (void) 32570{ 32571return strncasecmp (); 32572 ; 32573 return 0; 32574} 32575 32576_ACEOF 32577if ac_fn_c_try_link "$LINENO" 32578then : 32579 32580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32581printf "%s\n" "yes" >&6; } 32582 tst_links_strncasecmp="yes" 32583 32584else $as_nop 32585 32586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32587printf "%s\n" "no" >&6; } 32588 tst_links_strncasecmp="no" 32589 32590fi 32591rm -f core conftest.err conftest.$ac_objext conftest.beam \ 32592 conftest$ac_exeext conftest.$ac_ext 32593 # 32594 if test "$tst_links_strncasecmp" = "yes"; then 32595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5 32596printf %s "checking if strncasecmp is prototyped... " >&6; } 32597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32598/* end confdefs.h. */ 32599 32600 $cares_includes_string 32601 32602_ACEOF 32603if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 32604 $EGREP "strncasecmp" >/dev/null 2>&1 32605then : 32606 32607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32608printf "%s\n" "yes" >&6; } 32609 tst_proto_strncasecmp="yes" 32610 32611else $as_nop 32612 32613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32614printf "%s\n" "no" >&6; } 32615 tst_proto_strncasecmp="no" 32616 32617fi 32618rm -rf conftest* 32619 32620 fi 32621 # 32622 if test "$tst_proto_strncasecmp" = "yes"; then 32623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5 32624printf %s "checking if strncasecmp is compilable... " >&6; } 32625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32626/* end confdefs.h. */ 32627 32628 32629 $cares_includes_string 32630 32631int 32632main (void) 32633{ 32634 32635 if(0 != strncasecmp(0, 0, 0)) 32636 return 1; 32637 32638 ; 32639 return 0; 32640} 32641 32642_ACEOF 32643if ac_fn_c_try_compile "$LINENO" 32644then : 32645 32646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32647printf "%s\n" "yes" >&6; } 32648 tst_compi_strncasecmp="yes" 32649 32650else $as_nop 32651 32652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32653printf "%s\n" "no" >&6; } 32654 tst_compi_strncasecmp="no" 32655 32656fi 32657rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 32658 fi 32659 # 32660 if test "$tst_compi_strncasecmp" = "yes"; then 32661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5 32662printf %s "checking if strncasecmp usage allowed... " >&6; } 32663 if test "x$cares_disallow_strncasecmp" != "xyes"; then 32664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32665printf "%s\n" "yes" >&6; } 32666 tst_allow_strncasecmp="yes" 32667 else 32668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32669printf "%s\n" "no" >&6; } 32670 tst_allow_strncasecmp="no" 32671 fi 32672 fi 32673 # 32674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5 32675printf %s "checking if strncasecmp might be used... " >&6; } 32676 if test "$tst_links_strncasecmp" = "yes" && 32677 test "$tst_proto_strncasecmp" = "yes" && 32678 test "$tst_compi_strncasecmp" = "yes" && 32679 test "$tst_allow_strncasecmp" = "yes"; then 32680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32681printf "%s\n" "yes" >&6; } 32682 32683printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h 32684 32685 ac_cv_func_strncasecmp="yes" 32686 else 32687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32688printf "%s\n" "no" >&6; } 32689 ac_cv_func_strncasecmp="no" 32690 fi 32691 32692 32693 # 32694 tst_links_strncmpi="unknown" 32695 tst_proto_strncmpi="unknown" 32696 tst_compi_strncmpi="unknown" 32697 tst_allow_strncmpi="unknown" 32698 # 32699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5 32700printf %s "checking if strncmpi can be linked... " >&6; } 32701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32702/* end confdefs.h. */ 32703 32704 /* Define strncmpi to an innocuous variant, in case <limits.h> declares strncmpi. 32705 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 32706#define strncmpi innocuous_strncmpi 32707 32708/* System header to define __stub macros and hopefully few prototypes, 32709 which can conflict with char strncmpi (); below. */ 32710 32711#include <limits.h> 32712#undef strncmpi 32713 32714/* Override any GCC internal prototype to avoid an error. 32715 Use char because int might match the return type of a GCC 32716 builtin and then its argument prototype would still apply. */ 32717#ifdef __cplusplus 32718extern "C" 32719#endif 32720char strncmpi (); 32721/* The GNU C library defines this for functions which it implements 32722 to always fail with ENOSYS. Some functions are actually named 32723 something starting with __ and the normal name is an alias. */ 32724#if defined __stub_strncmpi || defined __stub___strncmpi 32725choke me 32726#endif 32727 32728int 32729main (void) 32730{ 32731return strncmpi (); 32732 ; 32733 return 0; 32734} 32735 32736_ACEOF 32737if ac_fn_c_try_link "$LINENO" 32738then : 32739 32740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32741printf "%s\n" "yes" >&6; } 32742 tst_links_strncmpi="yes" 32743 32744else $as_nop 32745 32746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32747printf "%s\n" "no" >&6; } 32748 tst_links_strncmpi="no" 32749 32750fi 32751rm -f core conftest.err conftest.$ac_objext conftest.beam \ 32752 conftest$ac_exeext conftest.$ac_ext 32753 # 32754 if test "$tst_links_strncmpi" = "yes"; then 32755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5 32756printf %s "checking if strncmpi is prototyped... " >&6; } 32757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32758/* end confdefs.h. */ 32759 32760 $cares_includes_string 32761 32762_ACEOF 32763if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 32764 $EGREP "strncmpi" >/dev/null 2>&1 32765then : 32766 32767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32768printf "%s\n" "yes" >&6; } 32769 tst_proto_strncmpi="yes" 32770 32771else $as_nop 32772 32773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32774printf "%s\n" "no" >&6; } 32775 tst_proto_strncmpi="no" 32776 32777fi 32778rm -rf conftest* 32779 32780 fi 32781 # 32782 if test "$tst_proto_strncmpi" = "yes"; then 32783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5 32784printf %s "checking if strncmpi is compilable... " >&6; } 32785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32786/* end confdefs.h. */ 32787 32788 32789 $cares_includes_string 32790 32791int 32792main (void) 32793{ 32794 32795 if(0 != strncmpi(0, 0)) 32796 return 1; 32797 32798 ; 32799 return 0; 32800} 32801 32802_ACEOF 32803if ac_fn_c_try_compile "$LINENO" 32804then : 32805 32806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32807printf "%s\n" "yes" >&6; } 32808 tst_compi_strncmpi="yes" 32809 32810else $as_nop 32811 32812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32813printf "%s\n" "no" >&6; } 32814 tst_compi_strncmpi="no" 32815 32816fi 32817rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 32818 fi 32819 # 32820 if test "$tst_compi_strncmpi" = "yes"; then 32821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5 32822printf %s "checking if strncmpi usage allowed... " >&6; } 32823 if test "x$cares_disallow_strncmpi" != "xyes"; then 32824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32825printf "%s\n" "yes" >&6; } 32826 tst_allow_strncmpi="yes" 32827 else 32828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32829printf "%s\n" "no" >&6; } 32830 tst_allow_strncmpi="no" 32831 fi 32832 fi 32833 # 32834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5 32835printf %s "checking if strncmpi might be used... " >&6; } 32836 if test "$tst_links_strncmpi" = "yes" && 32837 test "$tst_proto_strncmpi" = "yes" && 32838 test "$tst_compi_strncmpi" = "yes" && 32839 test "$tst_allow_strncmpi" = "yes"; then 32840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32841printf "%s\n" "yes" >&6; } 32842 32843printf "%s\n" "#define HAVE_STRNCMPI 1" >>confdefs.h 32844 32845 ac_cv_func_strncmpi="yes" 32846 else 32847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32848printf "%s\n" "no" >&6; } 32849 ac_cv_func_strncmpi="no" 32850 fi 32851 32852 32853 # 32854 tst_links_strnicmp="unknown" 32855 tst_proto_strnicmp="unknown" 32856 tst_compi_strnicmp="unknown" 32857 tst_allow_strnicmp="unknown" 32858 # 32859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5 32860printf %s "checking if strnicmp can be linked... " >&6; } 32861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32862/* end confdefs.h. */ 32863 32864 /* Define strnicmp to an innocuous variant, in case <limits.h> declares strnicmp. 32865 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 32866#define strnicmp innocuous_strnicmp 32867 32868/* System header to define __stub macros and hopefully few prototypes, 32869 which can conflict with char strnicmp (); below. */ 32870 32871#include <limits.h> 32872#undef strnicmp 32873 32874/* Override any GCC internal prototype to avoid an error. 32875 Use char because int might match the return type of a GCC 32876 builtin and then its argument prototype would still apply. */ 32877#ifdef __cplusplus 32878extern "C" 32879#endif 32880char strnicmp (); 32881/* The GNU C library defines this for functions which it implements 32882 to always fail with ENOSYS. Some functions are actually named 32883 something starting with __ and the normal name is an alias. */ 32884#if defined __stub_strnicmp || defined __stub___strnicmp 32885choke me 32886#endif 32887 32888int 32889main (void) 32890{ 32891return strnicmp (); 32892 ; 32893 return 0; 32894} 32895 32896_ACEOF 32897if ac_fn_c_try_link "$LINENO" 32898then : 32899 32900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32901printf "%s\n" "yes" >&6; } 32902 tst_links_strnicmp="yes" 32903 32904else $as_nop 32905 32906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32907printf "%s\n" "no" >&6; } 32908 tst_links_strnicmp="no" 32909 32910fi 32911rm -f core conftest.err conftest.$ac_objext conftest.beam \ 32912 conftest$ac_exeext conftest.$ac_ext 32913 # 32914 if test "$tst_links_strnicmp" = "yes"; then 32915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5 32916printf %s "checking if strnicmp is prototyped... " >&6; } 32917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32918/* end confdefs.h. */ 32919 32920 $cares_includes_string 32921 32922_ACEOF 32923if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 32924 $EGREP "strnicmp" >/dev/null 2>&1 32925then : 32926 32927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32928printf "%s\n" "yes" >&6; } 32929 tst_proto_strnicmp="yes" 32930 32931else $as_nop 32932 32933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32934printf "%s\n" "no" >&6; } 32935 tst_proto_strnicmp="no" 32936 32937fi 32938rm -rf conftest* 32939 32940 fi 32941 # 32942 if test "$tst_proto_strnicmp" = "yes"; then 32943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5 32944printf %s "checking if strnicmp is compilable... " >&6; } 32945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32946/* end confdefs.h. */ 32947 32948 32949 $cares_includes_string 32950 32951int 32952main (void) 32953{ 32954 32955 if(0 != strnicmp(0, 0)) 32956 return 1; 32957 32958 ; 32959 return 0; 32960} 32961 32962_ACEOF 32963if ac_fn_c_try_compile "$LINENO" 32964then : 32965 32966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32967printf "%s\n" "yes" >&6; } 32968 tst_compi_strnicmp="yes" 32969 32970else $as_nop 32971 32972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32973printf "%s\n" "no" >&6; } 32974 tst_compi_strnicmp="no" 32975 32976fi 32977rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 32978 fi 32979 # 32980 if test "$tst_compi_strnicmp" = "yes"; then 32981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5 32982printf %s "checking if strnicmp usage allowed... " >&6; } 32983 if test "x$cares_disallow_strnicmp" != "xyes"; then 32984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32985printf "%s\n" "yes" >&6; } 32986 tst_allow_strnicmp="yes" 32987 else 32988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32989printf "%s\n" "no" >&6; } 32990 tst_allow_strnicmp="no" 32991 fi 32992 fi 32993 # 32994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5 32995printf %s "checking if strnicmp might be used... " >&6; } 32996 if test "$tst_links_strnicmp" = "yes" && 32997 test "$tst_proto_strnicmp" = "yes" && 32998 test "$tst_compi_strnicmp" = "yes" && 32999 test "$tst_allow_strnicmp" = "yes"; then 33000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33001printf "%s\n" "yes" >&6; } 33002 33003printf "%s\n" "#define HAVE_STRNICMP 1" >>confdefs.h 33004 33005 ac_cv_func_strnicmp="yes" 33006 else 33007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33008printf "%s\n" "no" >&6; } 33009 ac_cv_func_strnicmp="no" 33010 fi 33011 33012 33013cares_includes_sys_uio="\ 33014/* includes start */ 33015#ifdef HAVE_SYS_TYPES_H 33016# include <sys/types.h> 33017#endif 33018#ifdef HAVE_SYS_UIO_H 33019# include <sys/uio.h> 33020#endif 33021/* includes end */" 33022 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$cares_includes_sys_uio 33023" 33024if test "x$ac_cv_header_sys_types_h" = xyes 33025then : 33026 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 33027 33028fi 33029ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$cares_includes_sys_uio 33030" 33031if test "x$ac_cv_header_sys_uio_h" = xyes 33032then : 33033 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h 33034 33035fi 33036 33037 33038 33039 # 33040 tst_links_writev="unknown" 33041 tst_proto_writev="unknown" 33042 tst_compi_writev="unknown" 33043 tst_allow_writev="unknown" 33044 # 33045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5 33046printf %s "checking if writev can be linked... " >&6; } 33047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33048/* end confdefs.h. */ 33049 33050 /* Define writev to an innocuous variant, in case <limits.h> declares writev. 33051 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 33052#define writev innocuous_writev 33053 33054/* System header to define __stub macros and hopefully few prototypes, 33055 which can conflict with char writev (); below. */ 33056 33057#include <limits.h> 33058#undef writev 33059 33060/* Override any GCC internal prototype to avoid an error. 33061 Use char because int might match the return type of a GCC 33062 builtin and then its argument prototype would still apply. */ 33063#ifdef __cplusplus 33064extern "C" 33065#endif 33066char writev (); 33067/* The GNU C library defines this for functions which it implements 33068 to always fail with ENOSYS. Some functions are actually named 33069 something starting with __ and the normal name is an alias. */ 33070#if defined __stub_writev || defined __stub___writev 33071choke me 33072#endif 33073 33074int 33075main (void) 33076{ 33077return writev (); 33078 ; 33079 return 0; 33080} 33081 33082_ACEOF 33083if ac_fn_c_try_link "$LINENO" 33084then : 33085 33086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33087printf "%s\n" "yes" >&6; } 33088 tst_links_writev="yes" 33089 33090else $as_nop 33091 33092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33093printf "%s\n" "no" >&6; } 33094 tst_links_writev="no" 33095 33096fi 33097rm -f core conftest.err conftest.$ac_objext conftest.beam \ 33098 conftest$ac_exeext conftest.$ac_ext 33099 # 33100 if test "$tst_links_writev" = "yes"; then 33101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5 33102printf %s "checking if writev is prototyped... " >&6; } 33103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33104/* end confdefs.h. */ 33105 33106 $cares_includes_sys_uio 33107 33108_ACEOF 33109if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 33110 $EGREP "writev" >/dev/null 2>&1 33111then : 33112 33113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33114printf "%s\n" "yes" >&6; } 33115 tst_proto_writev="yes" 33116 33117else $as_nop 33118 33119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33120printf "%s\n" "no" >&6; } 33121 tst_proto_writev="no" 33122 33123fi 33124rm -rf conftest* 33125 33126 fi 33127 # 33128 if test "$tst_proto_writev" = "yes"; then 33129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5 33130printf %s "checking if writev is compilable... " >&6; } 33131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33132/* end confdefs.h. */ 33133 33134 33135 $cares_includes_sys_uio 33136 33137int 33138main (void) 33139{ 33140 33141 if(0 != writev(0, 0, 0)) 33142 return 1; 33143 33144 ; 33145 return 0; 33146} 33147 33148_ACEOF 33149if ac_fn_c_try_compile "$LINENO" 33150then : 33151 33152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33153printf "%s\n" "yes" >&6; } 33154 tst_compi_writev="yes" 33155 33156else $as_nop 33157 33158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33159printf "%s\n" "no" >&6; } 33160 tst_compi_writev="no" 33161 33162fi 33163rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 33164 fi 33165 # 33166 if test "$tst_compi_writev" = "yes"; then 33167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5 33168printf %s "checking if writev usage allowed... " >&6; } 33169 if test "x$cares_disallow_writev" != "xyes"; then 33170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33171printf "%s\n" "yes" >&6; } 33172 tst_allow_writev="yes" 33173 else 33174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33175printf "%s\n" "no" >&6; } 33176 tst_allow_writev="no" 33177 fi 33178 fi 33179 # 33180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5 33181printf %s "checking if writev might be used... " >&6; } 33182 if test "$tst_links_writev" = "yes" && 33183 test "$tst_proto_writev" = "yes" && 33184 test "$tst_compi_writev" = "yes" && 33185 test "$tst_allow_writev" = "yes"; then 33186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33187printf "%s\n" "yes" >&6; } 33188 33189printf "%s\n" "#define HAVE_WRITEV 1" >>confdefs.h 33190 33191 ac_cv_func_writev="yes" 33192 else 33193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33194printf "%s\n" "no" >&6; } 33195 ac_cv_func_writev="no" 33196 fi 33197 33198 33199 # 33200 tst_links_arc4random_buf="unknown" 33201 tst_proto_arc4random_buf="unknown" 33202 tst_compi_arc4random_buf="unknown" 33203 tst_allow_arc4random_buf="unknown" 33204 # 33205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if arc4random_buf can be linked" >&5 33206printf %s "checking if arc4random_buf can be linked... " >&6; } 33207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33208/* end confdefs.h. */ 33209 33210 /* Define arc4random_buf to an innocuous variant, in case <limits.h> declares arc4random_buf. 33211 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 33212#define arc4random_buf innocuous_arc4random_buf 33213 33214/* System header to define __stub macros and hopefully few prototypes, 33215 which can conflict with char arc4random_buf (); below. */ 33216 33217#include <limits.h> 33218#undef arc4random_buf 33219 33220/* Override any GCC internal prototype to avoid an error. 33221 Use char because int might match the return type of a GCC 33222 builtin and then its argument prototype would still apply. */ 33223#ifdef __cplusplus 33224extern "C" 33225#endif 33226char arc4random_buf (); 33227/* The GNU C library defines this for functions which it implements 33228 to always fail with ENOSYS. Some functions are actually named 33229 something starting with __ and the normal name is an alias. */ 33230#if defined __stub_arc4random_buf || defined __stub___arc4random_buf 33231choke me 33232#endif 33233 33234int 33235main (void) 33236{ 33237return arc4random_buf (); 33238 ; 33239 return 0; 33240} 33241 33242_ACEOF 33243if ac_fn_c_try_link "$LINENO" 33244then : 33245 33246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33247printf "%s\n" "yes" >&6; } 33248 tst_links_arc4random_buf="yes" 33249 33250else $as_nop 33251 33252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33253printf "%s\n" "no" >&6; } 33254 tst_links_arc4random_buf="no" 33255 33256fi 33257rm -f core conftest.err conftest.$ac_objext conftest.beam \ 33258 conftest$ac_exeext conftest.$ac_ext 33259 # 33260 if test "$tst_links_arc4random_buf" = "yes"; then 33261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if arc4random_buf is prototyped" >&5 33262printf %s "checking if arc4random_buf is prototyped... " >&6; } 33263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33264/* end confdefs.h. */ 33265 33266 $cares_includes_stdlib 33267 33268_ACEOF 33269if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 33270 $EGREP "arc4random_buf" >/dev/null 2>&1 33271then : 33272 33273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33274printf "%s\n" "yes" >&6; } 33275 tst_proto_arc4random_buf="yes" 33276 33277else $as_nop 33278 33279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33280printf "%s\n" "no" >&6; } 33281 tst_proto_arc4random_buf="no" 33282 33283fi 33284rm -rf conftest* 33285 33286 fi 33287 # 33288 if test "$tst_proto_arc4random_buf" = "yes"; then 33289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if arc4random_buf is compilable" >&5 33290printf %s "checking if arc4random_buf is compilable... " >&6; } 33291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33292/* end confdefs.h. */ 33293 33294 33295 $cares_includes_stdlib 33296 33297int 33298main (void) 33299{ 33300 33301 arc4random_buf(NULL, 0); 33302 return 1; 33303 33304 ; 33305 return 0; 33306} 33307 33308_ACEOF 33309if ac_fn_c_try_compile "$LINENO" 33310then : 33311 33312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33313printf "%s\n" "yes" >&6; } 33314 tst_compi_arc4random_buf="yes" 33315 33316else $as_nop 33317 33318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33319printf "%s\n" "no" >&6; } 33320 tst_compi_arc4random_buf="no" 33321 33322fi 33323rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 33324 fi 33325 # 33326 if test "$tst_compi_arc4random_buf" = "yes"; then 33327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if arc4random_buf usage allowed" >&5 33328printf %s "checking if arc4random_buf usage allowed... " >&6; } 33329 if test "x$cares_disallow_arc4random_buf" != "xyes"; then 33330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33331printf "%s\n" "yes" >&6; } 33332 tst_allow_arc4random_buf="yes" 33333 else 33334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33335printf "%s\n" "no" >&6; } 33336 tst_allow_arc4random_buf="no" 33337 fi 33338 fi 33339 # 33340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if arc4random_buf might be used" >&5 33341printf %s "checking if arc4random_buf might be used... " >&6; } 33342 if test "$tst_links_arc4random_buf" = "yes" && 33343 test "$tst_proto_arc4random_buf" = "yes" && 33344 test "$tst_compi_arc4random_buf" = "yes" && 33345 test "$tst_allow_arc4random_buf" = "yes"; then 33346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33347printf "%s\n" "yes" >&6; } 33348 33349printf "%s\n" "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h 33350 33351 ac_cv_func_arc4random_buf="yes" 33352 else 33353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33354printf "%s\n" "no" >&6; } 33355 ac_cv_func_arc4random_buf="no" 33356 fi 33357 33358 33359 33360 33361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PF_INET6" >&5 33362printf %s "checking for PF_INET6... " >&6; } 33363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33364/* end confdefs.h. */ 33365 33366 33367#undef inline 33368#ifdef HAVE_WINDOWS_H 33369#ifndef WIN32_LEAN_AND_MEAN 33370#define WIN32_LEAN_AND_MEAN 33371#endif 33372#include <windows.h> 33373#ifdef HAVE_WINSOCK2_H 33374#include <winsock2.h> 33375#endif 33376#else 33377#ifdef HAVE_SYS_TYPES_H 33378#include <sys/types.h> 33379#endif 33380#ifdef HAVE_SYS_SOCKET_H 33381#include <sys/socket.h> 33382#endif 33383#endif 33384 33385 33386 #ifdef PF_INET6 33387 VARIABLEWASDEFINED 33388 #else 33389 NJET 33390 #endif 33391 33392_ACEOF 33393if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 33394 $EGREP "VARIABLEWASDEFINED" >/dev/null 2>&1 33395then : 33396 ac_constant="yes" 33397else $as_nop 33398 ac_constant="no" 33399 33400fi 33401rm -rf conftest* 33402 33403 if test "$ac_constant" = "yes" ; then 33404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33405printf "%s\n" "yes" >&6; } 33406 33407printf "%s\n" "#define HAVE_PF_INET6 1" >>confdefs.h 33408 33409 33410 else 33411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33412printf "%s\n" "no" >&6; } 33413 33414 fi 33415 33416 33417 33418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5 33419printf %s "checking for AF_INET6... " >&6; } 33420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33421/* end confdefs.h. */ 33422 33423 33424#undef inline 33425#ifdef HAVE_WINDOWS_H 33426#ifndef WIN32_LEAN_AND_MEAN 33427#define WIN32_LEAN_AND_MEAN 33428#endif 33429#include <windows.h> 33430#ifdef HAVE_WINSOCK2_H 33431#include <winsock2.h> 33432#endif 33433#else 33434#ifdef HAVE_SYS_TYPES_H 33435#include <sys/types.h> 33436#endif 33437#ifdef HAVE_SYS_SOCKET_H 33438#include <sys/socket.h> 33439#endif 33440#endif 33441 33442 33443 #ifdef AF_INET6 33444 VARIABLEWASDEFINED 33445 #else 33446 NJET 33447 #endif 33448 33449_ACEOF 33450if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 33451 $EGREP "VARIABLEWASDEFINED" >/dev/null 2>&1 33452then : 33453 ac_constant="yes" 33454else $as_nop 33455 ac_constant="no" 33456 33457fi 33458rm -rf conftest* 33459 33460 if test "$ac_constant" = "yes" ; then 33461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33462printf "%s\n" "yes" >&6; } 33463 33464printf "%s\n" "#define HAVE_AF_INET6 1" >>confdefs.h 33465 33466 33467 else 33468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33469printf "%s\n" "no" >&6; } 33470 33471 fi 33472 33473 33474 33475 33476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct in6_addr" >&5 33477printf %s "checking for struct in6_addr... " >&6; } 33478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33479/* end confdefs.h. */ 33480 33481#undef inline 33482#ifdef HAVE_WINDOWS_H 33483#ifndef WIN32_LEAN_AND_MEAN 33484#define WIN32_LEAN_AND_MEAN 33485#endif 33486#include <windows.h> 33487#ifdef HAVE_WINSOCK2_H 33488#include <winsock2.h> 33489#ifdef HAVE_WS2TCPIP_H 33490#include <ws2tcpip.h> 33491#endif 33492#endif 33493#else 33494#ifdef HAVE_SYS_TYPES_H 33495#include <sys/types.h> 33496#endif 33497#ifdef HAVE_NETINET_IN_H 33498#include <netinet/in.h> 33499#endif 33500#endif 33501 33502int 33503main (void) 33504{ 33505 33506 struct in6_addr struct_instance; 33507 33508 ; 33509 return 0; 33510} 33511_ACEOF 33512if ac_fn_c_try_compile "$LINENO" 33513then : 33514 ac_struct="yes" 33515else $as_nop 33516 ac_found="no" 33517fi 33518rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 33519 if test "$ac_struct" = "yes" ; then 33520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33521printf "%s\n" "yes" >&6; } 33522 33523printf "%s\n" "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h 33524 33525 33526 else 33527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33528printf "%s\n" "no" >&6; } 33529 33530 fi 33531 33532 33533 33534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_in6" >&5 33535printf %s "checking for struct sockaddr_in6... " >&6; } 33536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33537/* end confdefs.h. */ 33538 33539#undef inline 33540#ifdef HAVE_WINDOWS_H 33541#ifndef WIN32_LEAN_AND_MEAN 33542#define WIN32_LEAN_AND_MEAN 33543#endif 33544#include <windows.h> 33545#ifdef HAVE_WINSOCK2_H 33546#include <winsock2.h> 33547#ifdef HAVE_WS2TCPIP_H 33548#include <ws2tcpip.h> 33549#endif 33550#endif 33551#else 33552#ifdef HAVE_SYS_TYPES_H 33553#include <sys/types.h> 33554#endif 33555#ifdef HAVE_NETINET_IN_H 33556#include <netinet/in.h> 33557#endif 33558#endif 33559 33560int 33561main (void) 33562{ 33563 33564 struct sockaddr_in6 struct_instance; 33565 33566 ; 33567 return 0; 33568} 33569_ACEOF 33570if ac_fn_c_try_compile "$LINENO" 33571then : 33572 ac_struct="yes" 33573else $as_nop 33574 ac_found="no" 33575fi 33576rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 33577 if test "$ac_struct" = "yes" ; then 33578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33579printf "%s\n" "yes" >&6; } 33580 33581printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h 33582 ac_have_sockaddr_in6=yes 33583 33584 else 33585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33586printf "%s\n" "no" >&6; } 33587 33588 fi 33589 33590 33591ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" " 33592#undef inline 33593#ifdef HAVE_WINDOWS_H 33594#ifndef WIN32_LEAN_AND_MEAN 33595#define WIN32_LEAN_AND_MEAN 33596#endif 33597#include <windows.h> 33598#ifdef HAVE_WINSOCK2_H 33599#include <winsock2.h> 33600#ifdef HAVE_WS2TCPIP_H 33601#include <ws2tcpip.h> 33602#endif 33603#endif 33604#else 33605#ifdef HAVE_SYS_TYPES_H 33606#include <sys/types.h> 33607#endif 33608#ifdef HAVE_NETINET_IN_H 33609#include <netinet/in.h> 33610#endif 33611#endif 33612 33613" 33614if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes 33615then : 33616 33617printf "%s\n" "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h 33618 33619 33620fi 33621 33622 33623ac_fn_c_check_member "$LINENO" "struct addrinfo" "ai_flags" "ac_cv_member_struct_addrinfo_ai_flags" " 33624#undef inline 33625#ifdef HAVE_WINDOWS_H 33626#ifndef WIN32_LEAN_AND_MEAN 33627#define WIN32_LEAN_AND_MEAN 33628#endif 33629#include <windows.h> 33630#ifdef HAVE_WINSOCK2_H 33631#include <winsock2.h> 33632#ifdef HAVE_WS2TCPIP_H 33633#include <ws2tcpip.h> 33634#endif 33635#endif 33636#else 33637#ifdef HAVE_SYS_TYPES_H 33638#include <sys/types.h> 33639#endif 33640#ifdef HAVE_NETINET_IN_H 33641#include <netinet/in.h> 33642#endif 33643#ifdef HAVE_SYS_SOCKET_H 33644#include <sys/socket.h> 33645#endif 33646#ifdef HAVE_NETDB_H 33647#include <netdb.h> 33648#endif 33649#endif 33650 33651 33652" 33653if test "x$ac_cv_member_struct_addrinfo_ai_flags" = xyes 33654then : 33655 33656printf "%s\n" "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h 33657 33658fi 33659 33660 33661 33662 33663 for ac_func in bitncmp gettimeofday if_indextoname 33664do : 33665 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh` 33666ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 33667if eval test \"x\$"$as_ac_var"\" = x"yes" 33668then : 33669 cat >>confdefs.h <<_ACEOF 33670#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 33671_ACEOF 33672 33673 33674else $as_nop 33675 33676 func="$ac_func" 33677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5 33678printf %s "checking deeper for $func... " >&6; } 33679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33680/* end confdefs.h. */ 33681 33682 33683 33684int 33685main (void) 33686{ 33687 33688 $func (); 33689 33690 ; 33691 return 0; 33692} 33693 33694_ACEOF 33695if ac_fn_c_try_link "$LINENO" 33696then : 33697 33698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33699printf "%s\n" "yes" >&6; } 33700 eval "ac_cv_func_$func=yes" 33701 33702cat >>confdefs.h <<_ACEOF 33703#define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1 33704_ACEOF 33705 33706 33707else $as_nop 33708 33709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: but still no" >&5 33710printf "%s\n" "but still no" >&6; } 33711 33712fi 33713rm -f core conftest.err conftest.$ac_objext conftest.beam \ 33714 conftest$ac_exeext conftest.$ac_ext 33715 33716fi 33717 33718done 33719 33720ac_fn_c_check_func "$LINENO" "__system_property_get" "ac_cv_func___system_property_get" 33721if test "x$ac_cv_func___system_property_get" = xyes 33722then : 33723 33724 33725printf "%s\n" "#define HAVE___SYSTEM_PROPERTY_GET 1" >>confdefs.h 33726 33727 33728fi 33729 33730 33731 33732 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 33733if test "x$ac_cv_header_sys_types_h" = xyes 33734then : 33735 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 33736 33737fi 33738ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 33739if test "x$ac_cv_header_sys_socket_h" = xyes 33740then : 33741 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 33742 33743fi 33744ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default" 33745if test "x$ac_cv_header_netdb_h" = xyes 33746then : 33747 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h 33748 33749fi 33750 33751 # 33752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5 33753printf %s "checking for getnameinfo... " >&6; } 33754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33755/* end confdefs.h. */ 33756 33757 /* Define getnameinfo to an innocuous variant, in case <limits.h> declares getnameinfo. 33758 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 33759#define getnameinfo innocuous_getnameinfo 33760 33761/* System header to define __stub macros and hopefully few prototypes, 33762 which can conflict with char getnameinfo (); below. */ 33763 33764#include <limits.h> 33765#undef getnameinfo 33766 33767/* Override any GCC internal prototype to avoid an error. 33768 Use char because int might match the return type of a GCC 33769 builtin and then its argument prototype would still apply. */ 33770#ifdef __cplusplus 33771extern "C" 33772#endif 33773char getnameinfo (); 33774/* The GNU C library defines this for functions which it implements 33775 to always fail with ENOSYS. Some functions are actually named 33776 something starting with __ and the normal name is an alias. */ 33777#if defined __stub_getnameinfo || defined __stub___getnameinfo 33778choke me 33779#endif 33780 33781int 33782main (void) 33783{ 33784return getnameinfo (); 33785 ; 33786 return 0; 33787} 33788 33789_ACEOF 33790if ac_fn_c_try_link "$LINENO" 33791then : 33792 33793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33794printf "%s\n" "yes" >&6; } 33795 curl_cv_getnameinfo="yes" 33796 33797else $as_nop 33798 33799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33800printf "%s\n" "no" >&6; } 33801 curl_cv_getnameinfo="no" 33802 33803fi 33804rm -f core conftest.err conftest.$ac_objext conftest.beam \ 33805 conftest$ac_exeext conftest.$ac_ext 33806 # 33807 if test "$curl_cv_getnameinfo" != "yes"; then 33808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking deeper for getnameinfo" >&5 33809printf %s "checking deeper for getnameinfo... " >&6; } 33810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33811/* end confdefs.h. */ 33812 33813 33814 33815int 33816main (void) 33817{ 33818 33819 getnameinfo(); 33820 33821 ; 33822 return 0; 33823} 33824 33825_ACEOF 33826if ac_fn_c_try_link "$LINENO" 33827then : 33828 33829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33830printf "%s\n" "yes" >&6; } 33831 curl_cv_getnameinfo="yes" 33832 33833else $as_nop 33834 33835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: but still no" >&5 33836printf "%s\n" "but still no" >&6; } 33837 curl_cv_getnameinfo="no" 33838 33839fi 33840rm -f core conftest.err conftest.$ac_objext conftest.beam \ 33841 conftest$ac_exeext conftest.$ac_ext 33842 fi 33843 # 33844 if test "$curl_cv_getnameinfo" != "yes"; then 33845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking deeper and deeper for getnameinfo" >&5 33846printf %s "checking deeper and deeper for getnameinfo... " >&6; } 33847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33848/* end confdefs.h. */ 33849 33850 33851#undef inline 33852#ifdef HAVE_WINDOWS_H 33853#ifndef WIN32_LEAN_AND_MEAN 33854#define WIN32_LEAN_AND_MEAN 33855#endif 33856#include <windows.h> 33857#ifdef HAVE_WINSOCK2_H 33858#include <winsock2.h> 33859#ifdef HAVE_WS2TCPIP_H 33860#include <ws2tcpip.h> 33861#endif 33862#endif 33863#else 33864#ifdef HAVE_SYS_TYPES_H 33865#include <sys/types.h> 33866#endif 33867#ifdef HAVE_SYS_SOCKET_H 33868#include <sys/socket.h> 33869#endif 33870#ifdef HAVE_NETDB_H 33871#include <netdb.h> 33872#endif 33873#endif 33874 33875int 33876main (void) 33877{ 33878 33879 getnameinfo(0, 0, 0, 0, 0, 0, 0); 33880 33881 ; 33882 return 0; 33883} 33884 33885_ACEOF 33886if ac_fn_c_try_link "$LINENO" 33887then : 33888 33889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33890printf "%s\n" "yes" >&6; } 33891 curl_cv_getnameinfo="yes" 33892 33893else $as_nop 33894 33895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: but still no" >&5 33896printf "%s\n" "but still no" >&6; } 33897 curl_cv_getnameinfo="no" 33898 33899fi 33900rm -f core conftest.err conftest.$ac_objext conftest.beam \ 33901 conftest$ac_exeext conftest.$ac_ext 33902 fi 33903 # 33904 if test "$curl_cv_getnameinfo" = "yes"; then 33905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking types of arguments for getnameinfo" >&5 33906printf %s "checking types of arguments for getnameinfo... " >&6; } 33907if test ${curl_cv_func_getnameinfo_args+y} 33908then : 33909 printf %s "(cached) " >&6 33910else $as_nop 33911 33912 curl_cv_func_getnameinfo_args="unknown" 33913 for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do 33914 for gni_arg2 in 'socklen_t' 'size_t' 'int'; do 33915 for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do 33916 for gni_arg7 in 'int' 'unsigned int'; do 33917 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then 33918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33919/* end confdefs.h. */ 33920 33921 33922#undef inline 33923#ifdef HAVE_WINDOWS_H 33924#ifndef WIN32_LEAN_AND_MEAN 33925#define WIN32_LEAN_AND_MEAN 33926#endif 33927#if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501) 33928#undef _WIN32_WINNT 33929#define _WIN32_WINNT 0x0501 33930#endif 33931#include <windows.h> 33932#ifdef HAVE_WINSOCK2_H 33933#include <winsock2.h> 33934#ifdef HAVE_WS2TCPIP_H 33935#include <ws2tcpip.h> 33936#endif 33937#endif 33938#define GNICALLCONV WSAAPI 33939#else 33940#ifdef HAVE_SYS_TYPES_H 33941#include <sys/types.h> 33942#endif 33943#ifdef HAVE_SYS_SOCKET_H 33944#include <sys/socket.h> 33945#endif 33946#ifdef HAVE_NETDB_H 33947#include <netdb.h> 33948#endif 33949#define GNICALLCONV 33950#endif 33951 extern int GNICALLCONV getnameinfo($gni_arg1, $gni_arg2, 33952 char *, $gni_arg46, 33953 char *, $gni_arg46, 33954 $gni_arg7); 33955 33956int 33957main (void) 33958{ 33959 33960 $gni_arg2 salen=0; 33961 $gni_arg46 hostlen=0; 33962 $gni_arg46 servlen=0; 33963 $gni_arg7 flags=0; 33964 int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags); 33965 33966 ; 33967 return 0; 33968} 33969 33970_ACEOF 33971if ac_fn_c_try_compile "$LINENO" 33972then : 33973 33974 curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7" 33975 33976fi 33977rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 33978 fi 33979 done 33980 done 33981 done 33982 done 33983 33984fi 33985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_getnameinfo_args" >&5 33986printf "%s\n" "$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK 33987 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then 33988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for getnameinfo args" >&5 33989printf "%s\n" "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;} 33990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_GETNAMEINFO will not be defined" >&5 33991printf "%s\n" "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;} 33992 else 33993 gni_prev_IFS=$IFS; IFS=',' 33994 set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'` 33995 IFS=$gni_prev_IFS 33996 shift 33997 # 33998 gni_qual_type_arg1=$1 33999 # 34000 34001printf "%s\n" "#define GETNAMEINFO_TYPE_ARG2 $2" >>confdefs.h 34002 34003 34004printf "%s\n" "#define GETNAMEINFO_TYPE_ARG46 $3" >>confdefs.h 34005 34006 34007printf "%s\n" "#define GETNAMEINFO_TYPE_ARG7 $4" >>confdefs.h 34008 34009 # 34010 prev_sh_opts=$- 34011 # 34012 case $prev_sh_opts in 34013 *f*) 34014 ;; 34015 *) 34016 set -f 34017 ;; 34018 esac 34019 # 34020 case "$gni_qual_type_arg1" in 34021 const*) 34022 gni_qual_arg1=const 34023 gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'` 34024 ;; 34025 *) 34026 gni_qual_arg1= 34027 gni_type_arg1=$gni_qual_type_arg1 34028 ;; 34029 esac 34030 # 34031 34032printf "%s\n" "#define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1" >>confdefs.h 34033 34034 34035printf "%s\n" "#define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1" >>confdefs.h 34036 34037 # 34038 case $prev_sh_opts in 34039 *f*) 34040 ;; 34041 *) 34042 set +f 34043 ;; 34044 esac 34045 # 34046 34047printf "%s\n" "#define HAVE_GETNAMEINFO 1" >>confdefs.h 34048 34049 ac_cv_func_getnameinfo="yes" 34050 fi 34051 fi 34052 34053 34054 34055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 34056printf %s "checking whether byte ordering is bigendian... " >&6; } 34057if test ${ac_cv_c_bigendian+y} 34058then : 34059 printf %s "(cached) " >&6 34060else $as_nop 34061 ac_cv_c_bigendian=unknown 34062 # See if we're dealing with a universal compiler. 34063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34064/* end confdefs.h. */ 34065#ifndef __APPLE_CC__ 34066 not a universal capable compiler 34067 #endif 34068 typedef int dummy; 34069 34070_ACEOF 34071if ac_fn_c_try_compile "$LINENO" 34072then : 34073 34074 # Check for potential -arch flags. It is not universal unless 34075 # there are at least two -arch flags with different values. 34076 ac_arch= 34077 ac_prev= 34078 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 34079 if test -n "$ac_prev"; then 34080 case $ac_word in 34081 i?86 | x86_64 | ppc | ppc64) 34082 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 34083 ac_arch=$ac_word 34084 else 34085 ac_cv_c_bigendian=universal 34086 break 34087 fi 34088 ;; 34089 esac 34090 ac_prev= 34091 elif test "x$ac_word" = "x-arch"; then 34092 ac_prev=arch 34093 fi 34094 done 34095fi 34096rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 34097 if test $ac_cv_c_bigendian = unknown; then 34098 # See if sys/param.h defines the BYTE_ORDER macro. 34099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34100/* end confdefs.h. */ 34101#include <sys/types.h> 34102 #include <sys/param.h> 34103 34104int 34105main (void) 34106{ 34107#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 34108 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 34109 && LITTLE_ENDIAN) 34110 bogus endian macros 34111 #endif 34112 34113 ; 34114 return 0; 34115} 34116_ACEOF 34117if ac_fn_c_try_compile "$LINENO" 34118then : 34119 # It does; now see whether it defined to BIG_ENDIAN or not. 34120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34121/* end confdefs.h. */ 34122#include <sys/types.h> 34123 #include <sys/param.h> 34124 34125int 34126main (void) 34127{ 34128#if BYTE_ORDER != BIG_ENDIAN 34129 not big endian 34130 #endif 34131 34132 ; 34133 return 0; 34134} 34135_ACEOF 34136if ac_fn_c_try_compile "$LINENO" 34137then : 34138 ac_cv_c_bigendian=yes 34139else $as_nop 34140 ac_cv_c_bigendian=no 34141fi 34142rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 34143fi 34144rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 34145 fi 34146 if test $ac_cv_c_bigendian = unknown; then 34147 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 34148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34149/* end confdefs.h. */ 34150#include <limits.h> 34151 34152int 34153main (void) 34154{ 34155#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 34156 bogus endian macros 34157 #endif 34158 34159 ; 34160 return 0; 34161} 34162_ACEOF 34163if ac_fn_c_try_compile "$LINENO" 34164then : 34165 # It does; now see whether it defined to _BIG_ENDIAN or not. 34166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34167/* end confdefs.h. */ 34168#include <limits.h> 34169 34170int 34171main (void) 34172{ 34173#ifndef _BIG_ENDIAN 34174 not big endian 34175 #endif 34176 34177 ; 34178 return 0; 34179} 34180_ACEOF 34181if ac_fn_c_try_compile "$LINENO" 34182then : 34183 ac_cv_c_bigendian=yes 34184else $as_nop 34185 ac_cv_c_bigendian=no 34186fi 34187rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 34188fi 34189rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 34190 fi 34191 if test $ac_cv_c_bigendian = unknown; then 34192 # Compile a test program. 34193 if test "$cross_compiling" = yes 34194then : 34195 # Try to guess by grepping values from an object file. 34196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34197/* end confdefs.h. */ 34198unsigned short int ascii_mm[] = 34199 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 34200 unsigned short int ascii_ii[] = 34201 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 34202 int use_ascii (int i) { 34203 return ascii_mm[i] + ascii_ii[i]; 34204 } 34205 unsigned short int ebcdic_ii[] = 34206 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 34207 unsigned short int ebcdic_mm[] = 34208 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 34209 int use_ebcdic (int i) { 34210 return ebcdic_mm[i] + ebcdic_ii[i]; 34211 } 34212 extern int foo; 34213 34214int 34215main (void) 34216{ 34217return use_ascii (foo) == use_ebcdic (foo); 34218 ; 34219 return 0; 34220} 34221_ACEOF 34222if ac_fn_c_try_compile "$LINENO" 34223then : 34224 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 34225 ac_cv_c_bigendian=yes 34226 fi 34227 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 34228 if test "$ac_cv_c_bigendian" = unknown; then 34229 ac_cv_c_bigendian=no 34230 else 34231 # finding both strings is unlikely to happen, but who knows? 34232 ac_cv_c_bigendian=unknown 34233 fi 34234 fi 34235fi 34236rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 34237else $as_nop 34238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34239/* end confdefs.h. */ 34240$ac_includes_default 34241int 34242main (void) 34243{ 34244 34245 /* Are we little or big endian? From Harbison&Steele. */ 34246 union 34247 { 34248 long int l; 34249 char c[sizeof (long int)]; 34250 } u; 34251 u.l = 1; 34252 return u.c[sizeof (long int) - 1] == 1; 34253 34254 ; 34255 return 0; 34256} 34257_ACEOF 34258if ac_fn_c_try_run "$LINENO" 34259then : 34260 ac_cv_c_bigendian=no 34261else $as_nop 34262 ac_cv_c_bigendian=yes 34263fi 34264rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 34265 conftest.$ac_objext conftest.beam conftest.$ac_ext 34266fi 34267 34268 fi 34269fi 34270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 34271printf "%s\n" "$ac_cv_c_bigendian" >&6; } 34272 case $ac_cv_c_bigendian in #( 34273 yes) 34274 34275printf "%s\n" "#define ARES_BIG_ENDIAN 1" >>confdefs.h 34276;; #( 34277 no) 34278 ;; #( 34279 universal) 34280 34281printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 34282 34283 ;; #( 34284 *) 34285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: couldn't figure out endianess, assuming little endian!" >&5 34286printf "%s\n" "$as_me: WARNING: couldn't figure out endianess, assuming little endian!" >&2;} 34287 ;; 34288 esac 34289 34290 34291 34292# Check whether --with-random was given. 34293if test ${with_random+y} 34294then : 34295 withval=$with_random; CARES_RANDOM_FILE="$withval" 34296else $as_nop 34297 CARES_RANDOM_FILE="/dev/urandom" 34298 34299fi 34300 34301if test -n "$CARES_RANDOM_FILE" && test X"$CARES_RANDOM_FILE" != Xno ; then 34302 34303 34304printf "%s\n" "#define CARES_RANDOM_FILE \"$CARES_RANDOM_FILE\"" >>confdefs.h 34305 34306fi 34307 34308 34309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable non-blocking communications" >&5 34310printf %s "checking whether to enable non-blocking communications... " >&6; } 34311 OPT_NONBLOCKING="default" 34312 # Check whether --enable-nonblocking was given. 34313if test ${enable_nonblocking+y} 34314then : 34315 enableval=$enable_nonblocking; OPT_NONBLOCKING=$enableval 34316fi 34317 34318 case "$OPT_NONBLOCKING" in 34319 no) 34320 want_nonblocking="no" 34321 ;; 34322 default) 34323 want_nonblocking="yes" 34324 ;; 34325 *) 34326 want_nonblocking="yes" 34327 ;; 34328 esac 34329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_nonblocking" >&5 34330printf "%s\n" "$want_nonblocking" >&6; } 34331 34332 34333 # 34334 tst_method="unknown" 34335 if test "$want_nonblocking" = "yes"; then 34336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5 34337printf %s "checking how to set a socket into non-blocking mode... " >&6; } 34338 if test "x$ac_cv_func_fcntl_o_nonblock" = "xyes"; then 34339 tst_method="fcntl O_NONBLOCK" 34340 elif test "x$ac_cv_func_ioctl_fionbio" = "xyes"; then 34341 tst_method="ioctl FIONBIO" 34342 elif test "x$ac_cv_func_ioctlsocket_fionbio" = "xyes"; then 34343 tst_method="ioctlsocket FIONBIO" 34344 elif test "x$ac_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then 34345 tst_method="IoctlSocket FIONBIO" 34346 elif test "x$ac_cv_func_setsockopt_so_nonblock" = "xyes"; then 34347 tst_method="setsockopt SO_NONBLOCK" 34348 fi 34349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5 34350printf "%s\n" "$tst_method" >&6; } 34351 if test "$tst_method" = "unknown"; then 34352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5 34353printf "%s\n" "$as_me: WARNING: cannot determine non-blocking socket method." >&2;} 34354 fi 34355 fi 34356 if test "$tst_method" = "unknown"; then 34357 34358printf "%s\n" "#define USE_BLOCKING_SOCKETS 1" >>confdefs.h 34359 34360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: non-blocking sockets disabled." >&5 34361printf "%s\n" "$as_me: WARNING: non-blocking sockets disabled." >&2;} 34362 fi 34363 34364 34365 34366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5 34367printf %s "checking whether hiding of library internal symbols will actually happen... " >&6; } 34368 CFLAG_CARES_SYMBOL_HIDING="" 34369 doing_symbol_hiding="no" 34370 if test x"$ac_cv_native_windows" != "xyes" && 34371 test "$want_symbol_hiding" = "yes" && 34372 test "$supports_symbol_hiding" = "yes"; then 34373 doing_symbol_hiding="yes" 34374 CFLAG_CARES_SYMBOL_HIDING="$symbol_hiding_CFLAGS" 34375 34376printf "%s\n" "#define CARES_SYMBOL_SCOPE_EXTERN $symbol_hiding_EXTERN" >>confdefs.h 34377 34378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34379printf "%s\n" "yes" >&6; } 34380 else 34381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 34382printf "%s\n" "no" >&6; } 34383 fi 34384 if test x$doing_symbol_hiding = xyes; then 34385 DOING_CARES_SYMBOL_HIDING_TRUE= 34386 DOING_CARES_SYMBOL_HIDING_FALSE='#' 34387else 34388 DOING_CARES_SYMBOL_HIDING_TRUE='#' 34389 DOING_CARES_SYMBOL_HIDING_FALSE= 34390fi 34391 34392 34393 if test "$doing_symbol_hiding" = "yes"; then 34394 34395printf "%s\n" "#define CARES_SYMBOL_HIDING 1" >>confdefs.h 34396 34397 fi 34398 34399 34400CARES_PRIVATE_LIBS="$LIBS" 34401 34402 34403CARES_CFLAG_EXTRAS="" 34404if test X"$want_werror" = Xyes; then 34405 CARES_CFLAG_EXTRAS="-Werror" 34406fi 34407 34408 34409 34410squeeze CFLAGS 34411squeeze CPPFLAGS 34412squeeze DEFS 34413squeeze LDFLAGS 34414squeeze LIBS 34415 34416squeeze CARES_PRIVATE_LIBS 34417 34418 34419 34420 xc_bad_var_libs=no 34421 for xc_word in $LIBS; do 34422 case "$xc_word" in 34423 -l* | --library=*) 34424 : 34425 ;; 34426 *) 34427 xc_bad_var_libs=yes 34428 ;; 34429 esac 34430 done 34431 if test $xc_bad_var_libs = yes; then 34432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5 34433printf "%s\n" "$as_me: using LIBS: $LIBS" >&6;} 34434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LIBS error: LIBS may only be used to specify libraries (-lname)." >&5 34435printf "%s\n" "$as_me: LIBS error: LIBS may only be used to specify libraries (-lname)." >&6;} 34436 fi 34437 34438 34439 xc_bad_var_ldflags=no 34440 for xc_word in $LDFLAGS; do 34441 case "$xc_word" in 34442 -D*) 34443 xc_bad_var_ldflags=yes 34444 ;; 34445 -U*) 34446 xc_bad_var_ldflags=yes 34447 ;; 34448 -I*) 34449 xc_bad_var_ldflags=yes 34450 ;; 34451 -l* | --library=*) 34452 xc_bad_var_ldflags=yes 34453 ;; 34454 esac 34455 done 34456 if test $xc_bad_var_ldflags = yes; then 34457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5 34458printf "%s\n" "$as_me: using LDFLAGS: $LDFLAGS" >&6;} 34459 xc_bad_var_msg="LDFLAGS error: LDFLAGS may only be used to specify linker flags, not" 34460 for xc_word in $LDFLAGS; do 34461 case "$xc_word" in 34462 -D*) 34463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5 34464printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;} 34465 ;; 34466 -U*) 34467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5 34468printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;} 34469 ;; 34470 -I*) 34471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5 34472printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;} 34473 ;; 34474 -l* | --library=*) 34475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5 34476printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;} 34477 ;; 34478 esac 34479 done 34480 fi 34481 34482 34483 xc_bad_var_cppflags=no 34484 for xc_word in $CPPFLAGS; do 34485 case "$xc_word" in 34486 -rpath*) 34487 xc_bad_var_cppflags=yes 34488 ;; 34489 -L* | --library-path=*) 34490 xc_bad_var_cppflags=yes 34491 ;; 34492 -l* | --library=*) 34493 xc_bad_var_cppflags=yes 34494 ;; 34495 esac 34496 done 34497 if test $xc_bad_var_cppflags = yes; then 34498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5 34499printf "%s\n" "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;} 34500 xc_bad_var_msg="CPPFLAGS error: CPPFLAGS may only be used to specify C preprocessor flags, not" 34501 for xc_word in $CPPFLAGS; do 34502 case "$xc_word" in 34503 -rpath*) 34504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5 34505printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;} 34506 ;; 34507 -L* | --library-path=*) 34508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5 34509printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;} 34510 ;; 34511 -l* | --library=*) 34512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5 34513printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;} 34514 ;; 34515 esac 34516 done 34517 fi 34518 34519 34520 xc_bad_var_cflags=no 34521 for xc_word in $CFLAGS; do 34522 case "$xc_word" in 34523 -D*) 34524 xc_bad_var_cflags=yes 34525 ;; 34526 -U*) 34527 xc_bad_var_cflags=yes 34528 ;; 34529 -I*) 34530 xc_bad_var_cflags=yes 34531 ;; 34532 -rpath*) 34533 xc_bad_var_cflags=yes 34534 ;; 34535 -L* | --library-path=*) 34536 xc_bad_var_cflags=yes 34537 ;; 34538 -l* | --library=*) 34539 xc_bad_var_cflags=yes 34540 ;; 34541 esac 34542 done 34543 if test $xc_bad_var_cflags = yes; then 34544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5 34545printf "%s\n" "$as_me: using CFLAGS: $CFLAGS" >&6;} 34546 xc_bad_var_msg="CFLAGS error: CFLAGS may only be used to specify C compiler flags, not" 34547 for xc_word in $CFLAGS; do 34548 case "$xc_word" in 34549 -D*) 34550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5 34551printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;} 34552 ;; 34553 -U*) 34554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5 34555printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;} 34556 ;; 34557 -I*) 34558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5 34559printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;} 34560 ;; 34561 -rpath*) 34562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5 34563printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;} 34564 ;; 34565 -L* | --library-path=*) 34566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5 34567printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;} 34568 ;; 34569 -l* | --library=*) 34570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5 34571printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;} 34572 ;; 34573 esac 34574 done 34575 fi 34576 34577 if test $xc_bad_var_libs = yes || 34578 test $xc_bad_var_cflags = yes || 34579 test $xc_bad_var_ldflags = yes || 34580 test $xc_bad_var_cppflags = yes; then 34581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5 34582printf "%s\n" "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;} 34583 fi 34584 34585 34586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build tests" >&5 34587printf %s "checking whether to build tests... " >&6; } 34588# Check whether --enable-tests was given. 34589if test ${enable_tests+y} 34590then : 34591 enableval=$enable_tests; build_tests="$enableval" 34592else $as_nop 34593 if test "x$HAVE_CXX11" = "x1" && test "x$cross_compiling" = "xno" ; then 34594 build_tests="yes" 34595 else 34596 build_tests="no" 34597 fi 34598 34599 34600fi 34601 34602 34603if test "x$build_tests" = "xyes" ; then 34604 if test "x$HAVE_CXX11" = "0" ; then 34605 as_fn_error $? "*** Building tests requires a CXX11 compiler" "$LINENO" 5 34606 fi 34607 if test "x$cross_compiling" = "xyes" ; then 34608 as_fn_error $? "*** Tests not supported when cross compiling" "$LINENO" 5 34609 fi 34610fi 34611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_tests" >&5 34612printf "%s\n" "$build_tests" >&6; } 34613 34614 34615BUILD_SUBDIRS="include src docs" 34616if test "x$build_tests" = "xyes" ; then 34617 34618 34619subdirs="$subdirs test" 34620 34621 BUILD_SUBDIRS="${BUILD_SUBDIRS} test" 34622fi 34623 34624 34625 34626ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/lib/Makefile src/tools/Makefile docs/Makefile libcares.pc" 34627 34628 34629cat >confcache <<\_ACEOF 34630# This file is a shell script that caches the results of configure 34631# tests run on this system so they can be shared between configure 34632# scripts and configure runs, see configure's option --config-cache. 34633# It is not useful on other systems. If it contains results you don't 34634# want to keep, you may remove or edit it. 34635# 34636# config.status only pays attention to the cache file if you give it 34637# the --recheck option to rerun configure. 34638# 34639# `ac_cv_env_foo' variables (set or unset) will be overridden when 34640# loading this file, other *unset* `ac_cv_foo' will be assigned the 34641# following values. 34642 34643_ACEOF 34644 34645# The following way of writing the cache mishandles newlines in values, 34646# but we know of no workaround that is simple, portable, and efficient. 34647# So, we kill variables containing newlines. 34648# Ultrix sh set writes to stderr and can't be redirected directly, 34649# and sets the high bit in the cache file unless we assign to the vars. 34650( 34651 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 34652 eval ac_val=\$$ac_var 34653 case $ac_val in #( 34654 *${as_nl}*) 34655 case $ac_var in #( 34656 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 34657printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 34658 esac 34659 case $ac_var in #( 34660 _ | IFS | as_nl) ;; #( 34661 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 34662 *) { eval $ac_var=; unset $ac_var;} ;; 34663 esac ;; 34664 esac 34665 done 34666 34667 (set) 2>&1 | 34668 case $as_nl`(ac_space=' '; set) 2>&1` in #( 34669 *${as_nl}ac_space=\ *) 34670 # `set' does not quote correctly, so add quotes: double-quote 34671 # substitution turns \\\\ into \\, and sed turns \\ into \. 34672 sed -n \ 34673 "s/'/'\\\\''/g; 34674 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 34675 ;; #( 34676 *) 34677 # `set' quotes correctly as required by POSIX, so do not add quotes. 34678 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 34679 ;; 34680 esac | 34681 sort 34682) | 34683 sed ' 34684 /^ac_cv_env_/b end 34685 t clear 34686 :clear 34687 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 34688 t end 34689 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 34690 :end' >>confcache 34691if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 34692 if test -w "$cache_file"; then 34693 if test "x$cache_file" != "x/dev/null"; then 34694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 34695printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 34696 if test ! -f "$cache_file" || test -h "$cache_file"; then 34697 cat confcache >"$cache_file" 34698 else 34699 case $cache_file in #( 34700 */* | ?:*) 34701 mv -f confcache "$cache_file"$$ && 34702 mv -f "$cache_file"$$ "$cache_file" ;; #( 34703 *) 34704 mv -f confcache "$cache_file" ;; 34705 esac 34706 fi 34707 fi 34708 else 34709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 34710printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 34711 fi 34712fi 34713rm -f confcache 34714 34715test "x$prefix" = xNONE && prefix=$ac_default_prefix 34716# Let make expand exec_prefix. 34717test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 34718 34719DEFS=-DHAVE_CONFIG_H 34720 34721ac_libobjs= 34722ac_ltlibobjs= 34723U= 34724for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 34725 # 1. Remove the extension, and $U if already installed. 34726 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 34727 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 34728 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 34729 # will be set to the directory where LIBOBJS objects are built. 34730 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 34731 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 34732done 34733LIBOBJS=$ac_libobjs 34734 34735LTLIBOBJS=$ac_ltlibobjs 34736 34737 34738if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 34739 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 34740Usually this means the macro was only invoked conditionally." "$LINENO" 5 34741fi 34742if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then 34743 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined. 34744Usually this means the macro was only invoked conditionally." "$LINENO" 5 34745fi 34746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 34747printf %s "checking that generated files are newer than configure... " >&6; } 34748 if test -n "$am_sleep_pid"; then 34749 # Hide warnings about reused PIDs. 34750 wait $am_sleep_pid 2>/dev/null 34751 fi 34752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 34753printf "%s\n" "done" >&6; } 34754if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 34755 as_fn_error $? "conditional \"AMDEP\" was never defined. 34756Usually this means the macro was only invoked conditionally." "$LINENO" 5 34757fi 34758if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 34759 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 34760Usually this means the macro was only invoked conditionally." "$LINENO" 5 34761fi 34762if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 34763 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 34764Usually this means the macro was only invoked conditionally." "$LINENO" 5 34765fi 34766 if test -n "$EXEEXT"; then 34767 am__EXEEXT_TRUE= 34768 am__EXEEXT_FALSE='#' 34769else 34770 am__EXEEXT_TRUE='#' 34771 am__EXEEXT_FALSE= 34772fi 34773 34774if test -z "${CARES_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CARES_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then 34775 as_fn_error $? "conditional \"CARES_LT_SHLIB_USE_VERSION_INFO\" was never defined. 34776Usually this means the macro was only invoked conditionally." "$LINENO" 5 34777fi 34778if test -z "${CARES_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CARES_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then 34779 as_fn_error $? "conditional \"CARES_LT_SHLIB_USE_NO_UNDEFINED\" was never defined. 34780Usually this means the macro was only invoked conditionally." "$LINENO" 5 34781fi 34782if test -z "${CARES_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CARES_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then 34783 as_fn_error $? "conditional \"CARES_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined. 34784Usually this means the macro was only invoked conditionally." "$LINENO" 5 34785fi 34786if test -z "${USE_CPPFLAG_CARES_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CARES_STATICLIB_FALSE}"; then 34787 as_fn_error $? "conditional \"USE_CPPFLAG_CARES_STATICLIB\" was never defined. 34788Usually this means the macro was only invoked conditionally." "$LINENO" 5 34789fi 34790if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then 34791 as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined. 34792Usually this means the macro was only invoked conditionally." "$LINENO" 5 34793fi 34794 34795if test -z "${DOING_CARES_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CARES_SYMBOL_HIDING_FALSE}"; then 34796 as_fn_error $? "conditional \"DOING_CARES_SYMBOL_HIDING\" was never defined. 34797Usually this means the macro was only invoked conditionally." "$LINENO" 5 34798fi 34799 34800: "${CONFIG_STATUS=./config.status}" 34801ac_write_fail=0 34802ac_clean_files_save=$ac_clean_files 34803ac_clean_files="$ac_clean_files $CONFIG_STATUS" 34804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 34805printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 34806as_write_fail=0 34807cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 34808#! $SHELL 34809# Generated by $as_me. 34810# Run this file to recreate the current configuration. 34811# Compiler output produced by configure, useful for debugging 34812# configure, is in config.log if it exists. 34813 34814debug=false 34815ac_cs_recheck=false 34816ac_cs_silent=false 34817 34818SHELL=\${CONFIG_SHELL-$SHELL} 34819export SHELL 34820_ASEOF 34821cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 34822## -------------------- ## 34823## M4sh Initialization. ## 34824## -------------------- ## 34825 34826# Be more Bourne compatible 34827DUALCASE=1; export DUALCASE # for MKS sh 34828as_nop=: 34829if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 34830then : 34831 emulate sh 34832 NULLCMD=: 34833 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 34834 # is contrary to our usage. Disable this feature. 34835 alias -g '${1+"$@"}'='"$@"' 34836 setopt NO_GLOB_SUBST 34837else $as_nop 34838 case `(set -o) 2>/dev/null` in #( 34839 *posix*) : 34840 set -o posix ;; #( 34841 *) : 34842 ;; 34843esac 34844fi 34845 34846 34847 34848# Reset variables that may have inherited troublesome values from 34849# the environment. 34850 34851# IFS needs to be set, to space, tab, and newline, in precisely that order. 34852# (If _AS_PATH_WALK were called with IFS unset, it would have the 34853# side effect of setting IFS to empty, thus disabling word splitting.) 34854# Quoting is to prevent editors from complaining about space-tab. 34855as_nl=' 34856' 34857export as_nl 34858IFS=" "" $as_nl" 34859 34860PS1='$ ' 34861PS2='> ' 34862PS4='+ ' 34863 34864# Ensure predictable behavior from utilities with locale-dependent output. 34865LC_ALL=C 34866export LC_ALL 34867LANGUAGE=C 34868export LANGUAGE 34869 34870# We cannot yet rely on "unset" to work, but we need these variables 34871# to be unset--not just set to an empty or harmless value--now, to 34872# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 34873# also avoids known problems related to "unset" and subshell syntax 34874# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 34875for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 34876do eval test \${$as_var+y} \ 34877 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 34878done 34879 34880# Ensure that fds 0, 1, and 2 are open. 34881if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 34882if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 34883if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 34884 34885 34886 34887# Find who we are. Look in the path if we contain no directory separator. 34888as_myself= 34889case $0 in #(( 34890 *[\\/]* ) as_myself=$0 ;; 34891 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34892for as_dir in $PATH 34893do 34894 IFS=$as_save_IFS 34895 case $as_dir in #((( 34896 '') as_dir=./ ;; 34897 */) ;; 34898 *) as_dir=$as_dir/ ;; 34899 esac 34900 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 34901 done 34902IFS=$as_save_IFS 34903 34904 ;; 34905esac 34906# We did not find ourselves, most probably we were run as `sh COMMAND' 34907# in which case we are not to be found in the path. 34908if test "x$as_myself" = x; then 34909 as_myself=$0 34910fi 34911if test ! -f "$as_myself"; then 34912 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 34913 exit 1 34914fi 34915 34916 34917 34918# as_fn_error STATUS ERROR [LINENO LOG_FD] 34919# ---------------------------------------- 34920# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 34921# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 34922# script with STATUS, using 1 if that was 0. 34923as_fn_error () 34924{ 34925 as_status=$1; test $as_status -eq 0 && as_status=1 34926 if test "$4"; then 34927 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 34928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 34929 fi 34930 printf "%s\n" "$as_me: error: $2" >&2 34931 as_fn_exit $as_status 34932} # as_fn_error 34933 34934 34935 34936# as_fn_set_status STATUS 34937# ----------------------- 34938# Set $? to STATUS, without forking. 34939as_fn_set_status () 34940{ 34941 return $1 34942} # as_fn_set_status 34943 34944# as_fn_exit STATUS 34945# ----------------- 34946# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 34947as_fn_exit () 34948{ 34949 set +e 34950 as_fn_set_status $1 34951 exit $1 34952} # as_fn_exit 34953 34954# as_fn_unset VAR 34955# --------------- 34956# Portably unset VAR. 34957as_fn_unset () 34958{ 34959 { eval $1=; unset $1;} 34960} 34961as_unset=as_fn_unset 34962 34963# as_fn_append VAR VALUE 34964# ---------------------- 34965# Append the text in VALUE to the end of the definition contained in VAR. Take 34966# advantage of any shell optimizations that allow amortized linear growth over 34967# repeated appends, instead of the typical quadratic growth present in naive 34968# implementations. 34969if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 34970then : 34971 eval 'as_fn_append () 34972 { 34973 eval $1+=\$2 34974 }' 34975else $as_nop 34976 as_fn_append () 34977 { 34978 eval $1=\$$1\$2 34979 } 34980fi # as_fn_append 34981 34982# as_fn_arith ARG... 34983# ------------------ 34984# Perform arithmetic evaluation on the ARGs, and store the result in the 34985# global $as_val. Take advantage of shells that can avoid forks. The arguments 34986# must be portable across $(()) and expr. 34987if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 34988then : 34989 eval 'as_fn_arith () 34990 { 34991 as_val=$(( $* )) 34992 }' 34993else $as_nop 34994 as_fn_arith () 34995 { 34996 as_val=`expr "$@" || test $? -eq 1` 34997 } 34998fi # as_fn_arith 34999 35000 35001if expr a : '\(a\)' >/dev/null 2>&1 && 35002 test "X`expr 00001 : '.*\(...\)'`" = X001; then 35003 as_expr=expr 35004else 35005 as_expr=false 35006fi 35007 35008if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 35009 as_basename=basename 35010else 35011 as_basename=false 35012fi 35013 35014if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 35015 as_dirname=dirname 35016else 35017 as_dirname=false 35018fi 35019 35020as_me=`$as_basename -- "$0" || 35021$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 35022 X"$0" : 'X\(//\)$' \| \ 35023 X"$0" : 'X\(/\)' \| . 2>/dev/null || 35024printf "%s\n" X/"$0" | 35025 sed '/^.*\/\([^/][^/]*\)\/*$/{ 35026 s//\1/ 35027 q 35028 } 35029 /^X\/\(\/\/\)$/{ 35030 s//\1/ 35031 q 35032 } 35033 /^X\/\(\/\).*/{ 35034 s//\1/ 35035 q 35036 } 35037 s/.*/./; q'` 35038 35039# Avoid depending upon Character Ranges. 35040as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35041as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 35042as_cr_Letters=$as_cr_letters$as_cr_LETTERS 35043as_cr_digits='0123456789' 35044as_cr_alnum=$as_cr_Letters$as_cr_digits 35045 35046 35047# Determine whether it's possible to make 'echo' print without a newline. 35048# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 35049# for compatibility with existing Makefiles. 35050ECHO_C= ECHO_N= ECHO_T= 35051case `echo -n x` in #((((( 35052-n*) 35053 case `echo 'xy\c'` in 35054 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 35055 xy) ECHO_C='\c';; 35056 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 35057 ECHO_T=' ';; 35058 esac;; 35059*) 35060 ECHO_N='-n';; 35061esac 35062 35063# For backward compatibility with old third-party macros, we provide 35064# the shell variables $as_echo and $as_echo_n. New code should use 35065# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 35066as_echo='printf %s\n' 35067as_echo_n='printf %s' 35068 35069rm -f conf$$ conf$$.exe conf$$.file 35070if test -d conf$$.dir; then 35071 rm -f conf$$.dir/conf$$.file 35072else 35073 rm -f conf$$.dir 35074 mkdir conf$$.dir 2>/dev/null 35075fi 35076if (echo >conf$$.file) 2>/dev/null; then 35077 if ln -s conf$$.file conf$$ 2>/dev/null; then 35078 as_ln_s='ln -s' 35079 # ... but there are two gotchas: 35080 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 35081 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 35082 # In both cases, we have to default to `cp -pR'. 35083 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 35084 as_ln_s='cp -pR' 35085 elif ln conf$$.file conf$$ 2>/dev/null; then 35086 as_ln_s=ln 35087 else 35088 as_ln_s='cp -pR' 35089 fi 35090else 35091 as_ln_s='cp -pR' 35092fi 35093rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 35094rmdir conf$$.dir 2>/dev/null 35095 35096 35097# as_fn_mkdir_p 35098# ------------- 35099# Create "$as_dir" as a directory, including parents if necessary. 35100as_fn_mkdir_p () 35101{ 35102 35103 case $as_dir in #( 35104 -*) as_dir=./$as_dir;; 35105 esac 35106 test -d "$as_dir" || eval $as_mkdir_p || { 35107 as_dirs= 35108 while :; do 35109 case $as_dir in #( 35110 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 35111 *) as_qdir=$as_dir;; 35112 esac 35113 as_dirs="'$as_qdir' $as_dirs" 35114 as_dir=`$as_dirname -- "$as_dir" || 35115$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 35116 X"$as_dir" : 'X\(//\)[^/]' \| \ 35117 X"$as_dir" : 'X\(//\)$' \| \ 35118 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 35119printf "%s\n" X"$as_dir" | 35120 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 35121 s//\1/ 35122 q 35123 } 35124 /^X\(\/\/\)[^/].*/{ 35125 s//\1/ 35126 q 35127 } 35128 /^X\(\/\/\)$/{ 35129 s//\1/ 35130 q 35131 } 35132 /^X\(\/\).*/{ 35133 s//\1/ 35134 q 35135 } 35136 s/.*/./; q'` 35137 test -d "$as_dir" && break 35138 done 35139 test -z "$as_dirs" || eval "mkdir $as_dirs" 35140 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 35141 35142 35143} # as_fn_mkdir_p 35144if mkdir -p . 2>/dev/null; then 35145 as_mkdir_p='mkdir -p "$as_dir"' 35146else 35147 test -d ./-p && rmdir ./-p 35148 as_mkdir_p=false 35149fi 35150 35151 35152# as_fn_executable_p FILE 35153# ----------------------- 35154# Test if FILE is an executable regular file. 35155as_fn_executable_p () 35156{ 35157 test -f "$1" && test -x "$1" 35158} # as_fn_executable_p 35159as_test_x='test -x' 35160as_executable_p=as_fn_executable_p 35161 35162# Sed expression to map a string onto a valid CPP name. 35163as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 35164 35165# Sed expression to map a string onto a valid variable name. 35166as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 35167 35168 35169exec 6>&1 35170## ----------------------------------- ## 35171## Main body of $CONFIG_STATUS script. ## 35172## ----------------------------------- ## 35173_ASEOF 35174test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 35175 35176cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35177# Save the log message, to keep $0 and so on meaningful, and to 35178# report actual input values of CONFIG_FILES etc. instead of their 35179# values after options handling. 35180ac_log=" 35181This file was extended by c-ares $as_me 1.19.1, which was 35182generated by GNU Autoconf 2.71. Invocation command line was 35183 35184 CONFIG_FILES = $CONFIG_FILES 35185 CONFIG_HEADERS = $CONFIG_HEADERS 35186 CONFIG_LINKS = $CONFIG_LINKS 35187 CONFIG_COMMANDS = $CONFIG_COMMANDS 35188 $ $0 $@ 35189 35190on `(hostname || uname -n) 2>/dev/null | sed 1q` 35191" 35192 35193_ACEOF 35194 35195case $ac_config_files in *" 35196"*) set x $ac_config_files; shift; ac_config_files=$*;; 35197esac 35198 35199case $ac_config_headers in *" 35200"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 35201esac 35202 35203 35204cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 35205# Files that config.status was made for. 35206config_files="$ac_config_files" 35207config_headers="$ac_config_headers" 35208config_commands="$ac_config_commands" 35209 35210_ACEOF 35211 35212cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35213ac_cs_usage="\ 35214\`$as_me' instantiates files and other configuration actions 35215from templates according to the current configuration. Unless the files 35216and actions are specified as TAGs, all are instantiated by default. 35217 35218Usage: $0 [OPTION]... [TAG]... 35219 35220 -h, --help print this help, then exit 35221 -V, --version print version number and configuration settings, then exit 35222 --config print configuration, then exit 35223 -q, --quiet, --silent 35224 do not print progress messages 35225 -d, --debug don't remove temporary files 35226 --recheck update $as_me by reconfiguring in the same conditions 35227 --file=FILE[:TEMPLATE] 35228 instantiate the configuration file FILE 35229 --header=FILE[:TEMPLATE] 35230 instantiate the configuration header FILE 35231 35232Configuration files: 35233$config_files 35234 35235Configuration headers: 35236$config_headers 35237 35238Configuration commands: 35239$config_commands 35240 35241Report bugs to <c-ares mailing list: http://lists.haxx.se/listinfo/c-ares>." 35242 35243_ACEOF 35244ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 35245ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 35246cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 35247ac_cs_config='$ac_cs_config_escaped' 35248ac_cs_version="\\ 35249c-ares config.status 1.19.1 35250configured by $0, generated by GNU Autoconf 2.71, 35251 with options \\"\$ac_cs_config\\" 35252 35253Copyright (C) 2021 Free Software Foundation, Inc. 35254This config.status script is free software; the Free Software Foundation 35255gives unlimited permission to copy, distribute and modify it." 35256 35257ac_pwd='$ac_pwd' 35258srcdir='$srcdir' 35259INSTALL='$INSTALL' 35260MKDIR_P='$MKDIR_P' 35261AWK='$AWK' 35262test -n "\$AWK" || AWK=awk 35263_ACEOF 35264 35265cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35266# The default lists apply if the user does not specify any file. 35267ac_need_defaults=: 35268while test $# != 0 35269do 35270 case $1 in 35271 --*=?*) 35272 ac_option=`expr "X$1" : 'X\([^=]*\)='` 35273 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 35274 ac_shift=: 35275 ;; 35276 --*=) 35277 ac_option=`expr "X$1" : 'X\([^=]*\)='` 35278 ac_optarg= 35279 ac_shift=: 35280 ;; 35281 *) 35282 ac_option=$1 35283 ac_optarg=$2 35284 ac_shift=shift 35285 ;; 35286 esac 35287 35288 case $ac_option in 35289 # Handling of the options. 35290 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 35291 ac_cs_recheck=: ;; 35292 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 35293 printf "%s\n" "$ac_cs_version"; exit ;; 35294 --config | --confi | --conf | --con | --co | --c ) 35295 printf "%s\n" "$ac_cs_config"; exit ;; 35296 --debug | --debu | --deb | --de | --d | -d ) 35297 debug=: ;; 35298 --file | --fil | --fi | --f ) 35299 $ac_shift 35300 case $ac_optarg in 35301 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 35302 '') as_fn_error $? "missing file argument" ;; 35303 esac 35304 as_fn_append CONFIG_FILES " '$ac_optarg'" 35305 ac_need_defaults=false;; 35306 --header | --heade | --head | --hea ) 35307 $ac_shift 35308 case $ac_optarg in 35309 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 35310 esac 35311 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 35312 ac_need_defaults=false;; 35313 --he | --h) 35314 # Conflict between --help and --header 35315 as_fn_error $? "ambiguous option: \`$1' 35316Try \`$0 --help' for more information.";; 35317 --help | --hel | -h ) 35318 printf "%s\n" "$ac_cs_usage"; exit ;; 35319 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 35320 | -silent | --silent | --silen | --sile | --sil | --si | --s) 35321 ac_cs_silent=: ;; 35322 35323 # This is an error. 35324 -*) as_fn_error $? "unrecognized option: \`$1' 35325Try \`$0 --help' for more information." ;; 35326 35327 *) as_fn_append ac_config_targets " $1" 35328 ac_need_defaults=false ;; 35329 35330 esac 35331 shift 35332done 35333 35334ac_configure_extra_args= 35335 35336if $ac_cs_silent; then 35337 exec 6>/dev/null 35338 ac_configure_extra_args="$ac_configure_extra_args --silent" 35339fi 35340 35341_ACEOF 35342cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 35343if \$ac_cs_recheck; then 35344 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 35345 shift 35346 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 35347 CONFIG_SHELL='$SHELL' 35348 export CONFIG_SHELL 35349 exec "\$@" 35350fi 35351 35352_ACEOF 35353cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35354exec 5>>config.log 35355{ 35356 echo 35357 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 35358## Running $as_me. ## 35359_ASBOX 35360 printf "%s\n" "$ac_log" 35361} >&5 35362 35363_ACEOF 35364cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 35365# 35366# INIT-COMMANDS 35367# 35368AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 35369 35370 35371# The HP-UX ksh and POSIX shell print the target directory to stdout 35372# if CDPATH is set. 35373(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 35374 35375sed_quote_subst='$sed_quote_subst' 35376double_quote_subst='$double_quote_subst' 35377delay_variable_subst='$delay_variable_subst' 35378macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 35379macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 35380AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 35381DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 35382OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 35383enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 35384enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 35385pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 35386enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 35387shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 35388SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 35389ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 35390PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 35391host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 35392host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 35393host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 35394build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 35395build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 35396build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 35397SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 35398Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 35399GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 35400EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 35401FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 35402LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 35403NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 35404LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 35405max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 35406ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 35407exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 35408lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 35409lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 35410lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 35411lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 35412lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 35413reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 35414reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 35415FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 35416deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 35417file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 35418file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 35419want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 35420sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 35421AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 35422lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 35423AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 35424archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 35425STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 35426RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 35427old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 35428old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 35429old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 35430lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 35431CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 35432CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 35433compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 35434GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 35435lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 35436lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 35437lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 35438lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 35439lt_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"`' 35440lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 35441nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 35442lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 35443lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 35444objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 35445MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 35446lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 35447lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 35448lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 35449lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 35450lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 35451need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 35452MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 35453DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 35454NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 35455LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 35456OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 35457OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 35458libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 35459shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 35460extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 35461archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 35462enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 35463export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 35464whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 35465compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 35466old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 35467old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 35468archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 35469archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 35470module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 35471module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 35472with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 35473allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 35474no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 35475hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 35476hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 35477hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 35478hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 35479hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 35480hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 35481hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 35482inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 35483link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 35484always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 35485export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 35486exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 35487include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 35488prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 35489postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 35490file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 35491variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 35492need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 35493need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 35494version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 35495runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 35496shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 35497shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 35498libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 35499library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 35500soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 35501install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 35502postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 35503postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 35504finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 35505finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 35506hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 35507sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 35508configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 35509configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 35510hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 35511enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 35512enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 35513enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 35514old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 35515striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 35516compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 35517predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 35518postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 35519predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 35520postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 35521compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 35522LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 35523reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 35524reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 35525old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 35526compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 35527GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 35528lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 35529lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 35530lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 35531lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 35532lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 35533archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 35534enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 35535export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 35536whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 35537compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 35538old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 35539old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 35540archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 35541archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 35542module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 35543module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 35544with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 35545allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 35546no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 35547hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 35548hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 35549hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 35550hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 35551hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 35552hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 35553hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 35554inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 35555link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 35556always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 35557export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 35558exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 35559include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 35560prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 35561postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 35562file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 35563hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 35564compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 35565predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 35566postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 35567predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 35568postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 35569compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 35570 35571LTCC='$LTCC' 35572LTCFLAGS='$LTCFLAGS' 35573compiler='$compiler_DEFAULT' 35574 35575# A function that is used when there is no print builtin or printf. 35576func_fallback_echo () 35577{ 35578 eval 'cat <<_LTECHO_EOF 35579\$1 35580_LTECHO_EOF' 35581} 35582 35583# Quote evaled strings. 35584for var in AS \ 35585DLLTOOL \ 35586OBJDUMP \ 35587SHELL \ 35588ECHO \ 35589PATH_SEPARATOR \ 35590SED \ 35591GREP \ 35592EGREP \ 35593FGREP \ 35594LD \ 35595NM \ 35596LN_S \ 35597lt_SP2NL \ 35598lt_NL2SP \ 35599reload_flag \ 35600FILECMD \ 35601deplibs_check_method \ 35602file_magic_cmd \ 35603file_magic_glob \ 35604want_nocaseglob \ 35605sharedlib_from_linklib_cmd \ 35606AR \ 35607archiver_list_spec \ 35608STRIP \ 35609RANLIB \ 35610CC \ 35611CFLAGS \ 35612compiler \ 35613lt_cv_sys_global_symbol_pipe \ 35614lt_cv_sys_global_symbol_to_cdecl \ 35615lt_cv_sys_global_symbol_to_import \ 35616lt_cv_sys_global_symbol_to_c_name_address \ 35617lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 35618lt_cv_nm_interface \ 35619nm_file_list_spec \ 35620lt_cv_truncate_bin \ 35621lt_prog_compiler_no_builtin_flag \ 35622lt_prog_compiler_pic \ 35623lt_prog_compiler_wl \ 35624lt_prog_compiler_static \ 35625lt_cv_prog_compiler_c_o \ 35626need_locks \ 35627MANIFEST_TOOL \ 35628DSYMUTIL \ 35629NMEDIT \ 35630LIPO \ 35631OTOOL \ 35632OTOOL64 \ 35633shrext_cmds \ 35634export_dynamic_flag_spec \ 35635whole_archive_flag_spec \ 35636compiler_needs_object \ 35637with_gnu_ld \ 35638allow_undefined_flag \ 35639no_undefined_flag \ 35640hardcode_libdir_flag_spec \ 35641hardcode_libdir_separator \ 35642exclude_expsyms \ 35643include_expsyms \ 35644file_list_spec \ 35645variables_saved_for_relink \ 35646libname_spec \ 35647library_names_spec \ 35648soname_spec \ 35649install_override_mode \ 35650finish_eval \ 35651old_striplib \ 35652striplib \ 35653compiler_lib_search_dirs \ 35654predep_objects \ 35655postdep_objects \ 35656predeps \ 35657postdeps \ 35658compiler_lib_search_path \ 35659LD_CXX \ 35660reload_flag_CXX \ 35661compiler_CXX \ 35662lt_prog_compiler_no_builtin_flag_CXX \ 35663lt_prog_compiler_pic_CXX \ 35664lt_prog_compiler_wl_CXX \ 35665lt_prog_compiler_static_CXX \ 35666lt_cv_prog_compiler_c_o_CXX \ 35667export_dynamic_flag_spec_CXX \ 35668whole_archive_flag_spec_CXX \ 35669compiler_needs_object_CXX \ 35670with_gnu_ld_CXX \ 35671allow_undefined_flag_CXX \ 35672no_undefined_flag_CXX \ 35673hardcode_libdir_flag_spec_CXX \ 35674hardcode_libdir_separator_CXX \ 35675exclude_expsyms_CXX \ 35676include_expsyms_CXX \ 35677file_list_spec_CXX \ 35678compiler_lib_search_dirs_CXX \ 35679predep_objects_CXX \ 35680postdep_objects_CXX \ 35681predeps_CXX \ 35682postdeps_CXX \ 35683compiler_lib_search_path_CXX; do 35684 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 35685 *[\\\\\\\`\\"\\\$]*) 35686 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 35687 ;; 35688 *) 35689 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 35690 ;; 35691 esac 35692done 35693 35694# Double-quote double-evaled strings. 35695for var in reload_cmds \ 35696old_postinstall_cmds \ 35697old_postuninstall_cmds \ 35698old_archive_cmds \ 35699extract_expsyms_cmds \ 35700old_archive_from_new_cmds \ 35701old_archive_from_expsyms_cmds \ 35702archive_cmds \ 35703archive_expsym_cmds \ 35704module_cmds \ 35705module_expsym_cmds \ 35706export_symbols_cmds \ 35707prelink_cmds \ 35708postlink_cmds \ 35709postinstall_cmds \ 35710postuninstall_cmds \ 35711finish_cmds \ 35712sys_lib_search_path_spec \ 35713configure_time_dlsearch_path \ 35714configure_time_lt_sys_library_path \ 35715reload_cmds_CXX \ 35716old_archive_cmds_CXX \ 35717old_archive_from_new_cmds_CXX \ 35718old_archive_from_expsyms_cmds_CXX \ 35719archive_cmds_CXX \ 35720archive_expsym_cmds_CXX \ 35721module_cmds_CXX \ 35722module_expsym_cmds_CXX \ 35723export_symbols_cmds_CXX \ 35724prelink_cmds_CXX \ 35725postlink_cmds_CXX; do 35726 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 35727 *[\\\\\\\`\\"\\\$]*) 35728 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 35729 ;; 35730 *) 35731 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 35732 ;; 35733 esac 35734done 35735 35736ac_aux_dir='$ac_aux_dir' 35737 35738# See if we are running on zsh, and set the options that allow our 35739# commands through without removal of \ escapes INIT. 35740if test -n "\${ZSH_VERSION+set}"; then 35741 setopt NO_GLOB_SUBST 35742fi 35743 35744 35745 PACKAGE='$PACKAGE' 35746 VERSION='$VERSION' 35747 RM='$RM' 35748 ofile='$ofile' 35749 35750 35751 35752 35753 35754 35755_ACEOF 35756 35757cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35758 35759# Handling of arguments. 35760for ac_config_target in $ac_config_targets 35761do 35762 case $ac_config_target in 35763 "src/lib/ares_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/lib/ares_config.h" ;; 35764 "include/ares_build.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ares_build.h" ;; 35765 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 35766 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 35767 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 35768 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 35769 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 35770 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;; 35771 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;; 35772 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;; 35773 "libcares.pc") CONFIG_FILES="$CONFIG_FILES libcares.pc" ;; 35774 35775 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 35776 esac 35777done 35778 35779 35780# If the user did not use the arguments to specify the items to instantiate, 35781# then the envvar interface is used. Set only those that are not. 35782# We use the long form for the default assignment because of an extremely 35783# bizarre bug on SunOS 4.1.3. 35784if $ac_need_defaults; then 35785 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 35786 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 35787 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 35788fi 35789 35790# Have a temporary directory for convenience. Make it in the build tree 35791# simply because there is no reason against having it here, and in addition, 35792# creating and moving files from /tmp can sometimes cause problems. 35793# Hook for its removal unless debugging. 35794# Note that there is a small window in which the directory will not be cleaned: 35795# after its creation but before its name has been assigned to `$tmp'. 35796$debug || 35797{ 35798 tmp= ac_tmp= 35799 trap 'exit_status=$? 35800 : "${ac_tmp:=$tmp}" 35801 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 35802' 0 35803 trap 'as_fn_exit 1' 1 2 13 15 35804} 35805# Create a (secure) tmp directory for tmp files. 35806 35807{ 35808 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 35809 test -d "$tmp" 35810} || 35811{ 35812 tmp=./conf$$-$RANDOM 35813 (umask 077 && mkdir "$tmp") 35814} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 35815ac_tmp=$tmp 35816 35817# Set up the scripts for CONFIG_FILES section. 35818# No need to generate them if there are no CONFIG_FILES. 35819# This happens for instance with `./config.status config.h'. 35820if test -n "$CONFIG_FILES"; then 35821 35822 35823ac_cr=`echo X | tr X '\015'` 35824# On cygwin, bash can eat \r inside `` if the user requested igncr. 35825# But we know of no other shell where ac_cr would be empty at this 35826# point, so we can use a bashism as a fallback. 35827if test "x$ac_cr" = x; then 35828 eval ac_cr=\$\'\\r\' 35829fi 35830ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 35831if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 35832 ac_cs_awk_cr='\\r' 35833else 35834 ac_cs_awk_cr=$ac_cr 35835fi 35836 35837echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 35838_ACEOF 35839 35840 35841{ 35842 echo "cat >conf$$subs.awk <<_ACEOF" && 35843 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 35844 echo "_ACEOF" 35845} >conf$$subs.sh || 35846 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 35847ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 35848ac_delim='%!_!# ' 35849for ac_last_try in false false false false false :; do 35850 . ./conf$$subs.sh || 35851 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 35852 35853 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 35854 if test $ac_delim_n = $ac_delim_num; then 35855 break 35856 elif $ac_last_try; then 35857 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 35858 else 35859 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 35860 fi 35861done 35862rm -f conf$$subs.sh 35863 35864cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 35865cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 35866_ACEOF 35867sed -n ' 35868h 35869s/^/S["/; s/!.*/"]=/ 35870p 35871g 35872s/^[^!]*!// 35873:repl 35874t repl 35875s/'"$ac_delim"'$// 35876t delim 35877:nl 35878h 35879s/\(.\{148\}\)..*/\1/ 35880t more1 35881s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 35882p 35883n 35884b repl 35885:more1 35886s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 35887p 35888g 35889s/.\{148\}// 35890t nl 35891:delim 35892h 35893s/\(.\{148\}\)..*/\1/ 35894t more2 35895s/["\\]/\\&/g; s/^/"/; s/$/"/ 35896p 35897b 35898:more2 35899s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 35900p 35901g 35902s/.\{148\}// 35903t delim 35904' <conf$$subs.awk | sed ' 35905/^[^""]/{ 35906 N 35907 s/\n// 35908} 35909' >>$CONFIG_STATUS || ac_write_fail=1 35910rm -f conf$$subs.awk 35911cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 35912_ACAWK 35913cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 35914 for (key in S) S_is_set[key] = 1 35915 FS = "" 35916 35917} 35918{ 35919 line = $ 0 35920 nfields = split(line, field, "@") 35921 substed = 0 35922 len = length(field[1]) 35923 for (i = 2; i < nfields; i++) { 35924 key = field[i] 35925 keylen = length(key) 35926 if (S_is_set[key]) { 35927 value = S[key] 35928 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 35929 len += length(value) + length(field[++i]) 35930 substed = 1 35931 } else 35932 len += 1 + keylen 35933 } 35934 35935 print line 35936} 35937 35938_ACAWK 35939_ACEOF 35940cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35941if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 35942 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 35943else 35944 cat 35945fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 35946 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 35947_ACEOF 35948 35949# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 35950# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 35951# trailing colons and then remove the whole line if VPATH becomes empty 35952# (actually we leave an empty line to preserve line numbers). 35953if test "x$srcdir" = x.; then 35954 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 35955h 35956s/// 35957s/^/:/ 35958s/[ ]*$/:/ 35959s/:\$(srcdir):/:/g 35960s/:\${srcdir}:/:/g 35961s/:@srcdir@:/:/g 35962s/^:*// 35963s/:*$// 35964x 35965s/\(=[ ]*\).*/\1/ 35966G 35967s/\n// 35968s/^[^=]*=[ ]*$// 35969}' 35970fi 35971 35972cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 35973fi # test -n "$CONFIG_FILES" 35974 35975# Set up the scripts for CONFIG_HEADERS section. 35976# No need to generate them if there are no CONFIG_HEADERS. 35977# This happens for instance with `./config.status Makefile'. 35978if test -n "$CONFIG_HEADERS"; then 35979cat >"$ac_tmp/defines.awk" <<\_ACAWK || 35980BEGIN { 35981_ACEOF 35982 35983# Transform confdefs.h into an awk script `defines.awk', embedded as 35984# here-document in config.status, that substitutes the proper values into 35985# config.h.in to produce config.h. 35986 35987# Create a delimiter string that does not exist in confdefs.h, to ease 35988# handling of long lines. 35989ac_delim='%!_!# ' 35990for ac_last_try in false false :; do 35991 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 35992 if test -z "$ac_tt"; then 35993 break 35994 elif $ac_last_try; then 35995 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 35996 else 35997 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 35998 fi 35999done 36000 36001# For the awk script, D is an array of macro values keyed by name, 36002# likewise P contains macro parameters if any. Preserve backslash 36003# newline sequences. 36004 36005ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 36006sed -n ' 36007s/.\{148\}/&'"$ac_delim"'/g 36008t rset 36009:rset 36010s/^[ ]*#[ ]*define[ ][ ]*/ / 36011t def 36012d 36013:def 36014s/\\$// 36015t bsnl 36016s/["\\]/\\&/g 36017s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 36018D["\1"]=" \3"/p 36019s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 36020d 36021:bsnl 36022s/["\\]/\\&/g 36023s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 36024D["\1"]=" \3\\\\\\n"\\/p 36025t cont 36026s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 36027t cont 36028d 36029:cont 36030n 36031s/.\{148\}/&'"$ac_delim"'/g 36032t clear 36033:clear 36034s/\\$// 36035t bsnlc 36036s/["\\]/\\&/g; s/^/"/; s/$/"/p 36037d 36038:bsnlc 36039s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 36040b cont 36041' <confdefs.h | sed ' 36042s/'"$ac_delim"'/"\\\ 36043"/g' >>$CONFIG_STATUS || ac_write_fail=1 36044 36045cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 36046 for (key in D) D_is_set[key] = 1 36047 FS = "" 36048} 36049/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 36050 line = \$ 0 36051 split(line, arg, " ") 36052 if (arg[1] == "#") { 36053 defundef = arg[2] 36054 mac1 = arg[3] 36055 } else { 36056 defundef = substr(arg[1], 2) 36057 mac1 = arg[2] 36058 } 36059 split(mac1, mac2, "(") #) 36060 macro = mac2[1] 36061 prefix = substr(line, 1, index(line, defundef) - 1) 36062 if (D_is_set[macro]) { 36063 # Preserve the white space surrounding the "#". 36064 print prefix "define", macro P[macro] D[macro] 36065 next 36066 } else { 36067 # Replace #undef with comments. This is necessary, for example, 36068 # in the case of _POSIX_SOURCE, which is predefined and required 36069 # on some systems where configure will not decide to define it. 36070 if (defundef == "undef") { 36071 print "/*", prefix defundef, macro, "*/" 36072 next 36073 } 36074 } 36075} 36076{ print } 36077_ACAWK 36078_ACEOF 36079cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 36080 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 36081fi # test -n "$CONFIG_HEADERS" 36082 36083 36084eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 36085shift 36086for ac_tag 36087do 36088 case $ac_tag in 36089 :[FHLC]) ac_mode=$ac_tag; continue;; 36090 esac 36091 case $ac_mode$ac_tag in 36092 :[FHL]*:*);; 36093 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 36094 :[FH]-) ac_tag=-:-;; 36095 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 36096 esac 36097 ac_save_IFS=$IFS 36098 IFS=: 36099 set x $ac_tag 36100 IFS=$ac_save_IFS 36101 shift 36102 ac_file=$1 36103 shift 36104 36105 case $ac_mode in 36106 :L) ac_source=$1;; 36107 :[FH]) 36108 ac_file_inputs= 36109 for ac_f 36110 do 36111 case $ac_f in 36112 -) ac_f="$ac_tmp/stdin";; 36113 *) # Look for the file first in the build tree, then in the source tree 36114 # (if the path is not absolute). The absolute path cannot be DOS-style, 36115 # because $ac_f cannot contain `:'. 36116 test -f "$ac_f" || 36117 case $ac_f in 36118 [\\/$]*) false;; 36119 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 36120 esac || 36121 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 36122 esac 36123 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 36124 as_fn_append ac_file_inputs " '$ac_f'" 36125 done 36126 36127 # Let's still pretend it is `configure' which instantiates (i.e., don't 36128 # use $as_me), people would be surprised to read: 36129 # /* config.h. Generated by config.status. */ 36130 configure_input='Generated from '` 36131 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 36132 `' by configure.' 36133 if test x"$ac_file" != x-; then 36134 configure_input="$ac_file. $configure_input" 36135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 36136printf "%s\n" "$as_me: creating $ac_file" >&6;} 36137 fi 36138 # Neutralize special characters interpreted by sed in replacement strings. 36139 case $configure_input in #( 36140 *\&* | *\|* | *\\* ) 36141 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 36142 sed 's/[\\\\&|]/\\\\&/g'`;; #( 36143 *) ac_sed_conf_input=$configure_input;; 36144 esac 36145 36146 case $ac_tag in 36147 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 36148 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 36149 esac 36150 ;; 36151 esac 36152 36153 ac_dir=`$as_dirname -- "$ac_file" || 36154$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 36155 X"$ac_file" : 'X\(//\)[^/]' \| \ 36156 X"$ac_file" : 'X\(//\)$' \| \ 36157 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 36158printf "%s\n" X"$ac_file" | 36159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 36160 s//\1/ 36161 q 36162 } 36163 /^X\(\/\/\)[^/].*/{ 36164 s//\1/ 36165 q 36166 } 36167 /^X\(\/\/\)$/{ 36168 s//\1/ 36169 q 36170 } 36171 /^X\(\/\).*/{ 36172 s//\1/ 36173 q 36174 } 36175 s/.*/./; q'` 36176 as_dir="$ac_dir"; as_fn_mkdir_p 36177 ac_builddir=. 36178 36179case "$ac_dir" in 36180.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 36181*) 36182 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 36183 # A ".." for each directory in $ac_dir_suffix. 36184 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 36185 case $ac_top_builddir_sub in 36186 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 36187 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 36188 esac ;; 36189esac 36190ac_abs_top_builddir=$ac_pwd 36191ac_abs_builddir=$ac_pwd$ac_dir_suffix 36192# for backward compatibility: 36193ac_top_builddir=$ac_top_build_prefix 36194 36195case $srcdir in 36196 .) # We are building in place. 36197 ac_srcdir=. 36198 ac_top_srcdir=$ac_top_builddir_sub 36199 ac_abs_top_srcdir=$ac_pwd ;; 36200 [\\/]* | ?:[\\/]* ) # Absolute name. 36201 ac_srcdir=$srcdir$ac_dir_suffix; 36202 ac_top_srcdir=$srcdir 36203 ac_abs_top_srcdir=$srcdir ;; 36204 *) # Relative name. 36205 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 36206 ac_top_srcdir=$ac_top_build_prefix$srcdir 36207 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 36208esac 36209ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 36210 36211 36212 case $ac_mode in 36213 :F) 36214 # 36215 # CONFIG_FILE 36216 # 36217 36218 case $INSTALL in 36219 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 36220 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 36221 esac 36222 ac_MKDIR_P=$MKDIR_P 36223 case $MKDIR_P in 36224 [\\/$]* | ?:[\\/]* ) ;; 36225 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 36226 esac 36227_ACEOF 36228 36229cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 36230# If the template does not know about datarootdir, expand it. 36231# FIXME: This hack should be removed a few years after 2.60. 36232ac_datarootdir_hack=; ac_datarootdir_seen= 36233ac_sed_dataroot=' 36234/datarootdir/ { 36235 p 36236 q 36237} 36238/@datadir@/p 36239/@docdir@/p 36240/@infodir@/p 36241/@localedir@/p 36242/@mandir@/p' 36243case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 36244*datarootdir*) ac_datarootdir_seen=yes;; 36245*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 36246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 36247printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 36248_ACEOF 36249cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 36250 ac_datarootdir_hack=' 36251 s&@datadir@&$datadir&g 36252 s&@docdir@&$docdir&g 36253 s&@infodir@&$infodir&g 36254 s&@localedir@&$localedir&g 36255 s&@mandir@&$mandir&g 36256 s&\\\${datarootdir}&$datarootdir&g' ;; 36257esac 36258_ACEOF 36259 36260# Neutralize VPATH when `$srcdir' = `.'. 36261# Shell code in configure.ac might set extrasub. 36262# FIXME: do we really want to maintain this feature? 36263cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 36264ac_sed_extra="$ac_vpsub 36265$extrasub 36266_ACEOF 36267cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 36268:t 36269/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 36270s|@configure_input@|$ac_sed_conf_input|;t t 36271s&@top_builddir@&$ac_top_builddir_sub&;t t 36272s&@top_build_prefix@&$ac_top_build_prefix&;t t 36273s&@srcdir@&$ac_srcdir&;t t 36274s&@abs_srcdir@&$ac_abs_srcdir&;t t 36275s&@top_srcdir@&$ac_top_srcdir&;t t 36276s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 36277s&@builddir@&$ac_builddir&;t t 36278s&@abs_builddir@&$ac_abs_builddir&;t t 36279s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 36280s&@INSTALL@&$ac_INSTALL&;t t 36281s&@MKDIR_P@&$ac_MKDIR_P&;t t 36282$ac_datarootdir_hack 36283" 36284eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 36285 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 36286 36287test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 36288 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 36289 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 36290 "$ac_tmp/out"`; test -z "$ac_out"; } && 36291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 36292which seems to be undefined. Please make sure it is defined" >&5 36293printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 36294which seems to be undefined. Please make sure it is defined" >&2;} 36295 36296 rm -f "$ac_tmp/stdin" 36297 case $ac_file in 36298 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 36299 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 36300 esac \ 36301 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 36302 ;; 36303 :H) 36304 # 36305 # CONFIG_HEADER 36306 # 36307 if test x"$ac_file" != x-; then 36308 { 36309 printf "%s\n" "/* $configure_input */" >&1 \ 36310 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 36311 } >"$ac_tmp/config.h" \ 36312 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 36313 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 36314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 36315printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 36316 else 36317 rm -f "$ac_file" 36318 mv "$ac_tmp/config.h" "$ac_file" \ 36319 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 36320 fi 36321 else 36322 printf "%s\n" "/* $configure_input */" >&1 \ 36323 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 36324 || as_fn_error $? "could not create -" "$LINENO" 5 36325 fi 36326# Compute "$ac_file"'s index in $config_headers. 36327_am_arg="$ac_file" 36328_am_stamp_count=1 36329for _am_header in $config_headers :; do 36330 case $_am_header in 36331 $_am_arg | $_am_arg:* ) 36332 break ;; 36333 * ) 36334 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 36335 esac 36336done 36337echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 36338$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 36339 X"$_am_arg" : 'X\(//\)[^/]' \| \ 36340 X"$_am_arg" : 'X\(//\)$' \| \ 36341 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 36342printf "%s\n" X"$_am_arg" | 36343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 36344 s//\1/ 36345 q 36346 } 36347 /^X\(\/\/\)[^/].*/{ 36348 s//\1/ 36349 q 36350 } 36351 /^X\(\/\/\)$/{ 36352 s//\1/ 36353 q 36354 } 36355 /^X\(\/\).*/{ 36356 s//\1/ 36357 q 36358 } 36359 s/.*/./; q'`/stamp-h$_am_stamp_count 36360 ;; 36361 36362 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 36363printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 36364 ;; 36365 esac 36366 36367 36368 case $ac_file$ac_mode in 36369 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 36370 # Older Autoconf quotes --file arguments for eval, but not when files 36371 # are listed without --file. Let's play safe and only enable the eval 36372 # if we detect the quoting. 36373 # TODO: see whether this extra hack can be removed once we start 36374 # requiring Autoconf 2.70 or later. 36375 case $CONFIG_FILES in #( 36376 *\'*) : 36377 eval set x "$CONFIG_FILES" ;; #( 36378 *) : 36379 set x $CONFIG_FILES ;; #( 36380 *) : 36381 ;; 36382esac 36383 shift 36384 # Used to flag and report bootstrapping failures. 36385 am_rc=0 36386 for am_mf 36387 do 36388 # Strip MF so we end up with the name of the file. 36389 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 36390 # Check whether this is an Automake generated Makefile which includes 36391 # dependency-tracking related rules and includes. 36392 # Grep'ing the whole file directly is not great: AIX grep has a line 36393 # limit of 2048, but all sed's we know have understand at least 4000. 36394 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 36395 || continue 36396 am_dirpart=`$as_dirname -- "$am_mf" || 36397$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 36398 X"$am_mf" : 'X\(//\)[^/]' \| \ 36399 X"$am_mf" : 'X\(//\)$' \| \ 36400 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 36401printf "%s\n" X"$am_mf" | 36402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 36403 s//\1/ 36404 q 36405 } 36406 /^X\(\/\/\)[^/].*/{ 36407 s//\1/ 36408 q 36409 } 36410 /^X\(\/\/\)$/{ 36411 s//\1/ 36412 q 36413 } 36414 /^X\(\/\).*/{ 36415 s//\1/ 36416 q 36417 } 36418 s/.*/./; q'` 36419 am_filepart=`$as_basename -- "$am_mf" || 36420$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 36421 X"$am_mf" : 'X\(//\)$' \| \ 36422 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 36423printf "%s\n" X/"$am_mf" | 36424 sed '/^.*\/\([^/][^/]*\)\/*$/{ 36425 s//\1/ 36426 q 36427 } 36428 /^X\/\(\/\/\)$/{ 36429 s//\1/ 36430 q 36431 } 36432 /^X\/\(\/\).*/{ 36433 s//\1/ 36434 q 36435 } 36436 s/.*/./; q'` 36437 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 36438 && sed -e '/# am--include-marker/d' "$am_filepart" \ 36439 | $MAKE -f - am--depfiles" >&5 36440 (cd "$am_dirpart" \ 36441 && sed -e '/# am--include-marker/d' "$am_filepart" \ 36442 | $MAKE -f - am--depfiles) >&5 2>&5 36443 ac_status=$? 36444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 36445 (exit $ac_status); } || am_rc=$? 36446 done 36447 if test $am_rc -ne 0; then 36448 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 36449printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 36450as_fn_error $? "Something went wrong bootstrapping makefile fragments 36451 for automatic dependency tracking. If GNU make was not used, consider 36452 re-running the configure script with MAKE=\"gmake\" (or whatever is 36453 necessary). You can also try re-running configure with the 36454 '--disable-dependency-tracking' option to at least be able to build 36455 the package (albeit without support for automatic dependency tracking). 36456See \`config.log' for more details" "$LINENO" 5; } 36457 fi 36458 { am_dirpart=; unset am_dirpart;} 36459 { am_filepart=; unset am_filepart;} 36460 { am_mf=; unset am_mf;} 36461 { am_rc=; unset am_rc;} 36462 rm -f conftest-deps.mk 36463} 36464 ;; 36465 "libtool":C) 36466 36467 # See if we are running on zsh, and set the options that allow our 36468 # commands through without removal of \ escapes. 36469 if test -n "${ZSH_VERSION+set}"; then 36470 setopt NO_GLOB_SUBST 36471 fi 36472 36473 cfgfile=${ofile}T 36474 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 36475 $RM "$cfgfile" 36476 36477 cat <<_LT_EOF >> "$cfgfile" 36478#! $SHELL 36479# Generated automatically by $as_me ($PACKAGE) $VERSION 36480# NOTE: Changes made to this file will be lost: look at ltmain.sh. 36481 36482# Provide generalized library-building support services. 36483# Written by Gordon Matzigkeit, 1996 36484 36485# Copyright (C) 2014 Free Software Foundation, Inc. 36486# This is free software; see the source for copying conditions. There is NO 36487# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 36488 36489# GNU Libtool is free software; you can redistribute it and/or modify 36490# it under the terms of the GNU General Public License as published by 36491# the Free Software Foundation; either version 2 of of the License, or 36492# (at your option) any later version. 36493# 36494# As a special exception to the GNU General Public License, if you 36495# distribute this file as part of a program or library that is built 36496# using GNU Libtool, you may include this file under the same 36497# distribution terms that you use for the rest of that program. 36498# 36499# GNU Libtool is distributed in the hope that it will be useful, but 36500# WITHOUT ANY WARRANTY; without even the implied warranty of 36501# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 36502# GNU General Public License for more details. 36503# 36504# You should have received a copy of the GNU General Public License 36505# along with this program. If not, see <http://www.gnu.org/licenses/>. 36506 36507 36508# The names of the tagged configurations supported by this script. 36509available_tags='CXX ' 36510 36511# Configured defaults for sys_lib_dlsearch_path munging. 36512: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 36513 36514# ### BEGIN LIBTOOL CONFIG 36515 36516# Which release of libtool.m4 was used? 36517macro_version=$macro_version 36518macro_revision=$macro_revision 36519 36520# Assembler program. 36521AS=$lt_AS 36522 36523# DLL creation program. 36524DLLTOOL=$lt_DLLTOOL 36525 36526# Object dumper program. 36527OBJDUMP=$lt_OBJDUMP 36528 36529# Whether or not to build shared libraries. 36530build_libtool_libs=$enable_shared 36531 36532# Whether or not to build static libraries. 36533build_old_libs=$enable_static 36534 36535# What type of objects to build. 36536pic_mode=$pic_mode 36537 36538# Whether or not to optimize for fast installation. 36539fast_install=$enable_fast_install 36540 36541# Shared archive member basename,for filename based shared library versioning on AIX. 36542shared_archive_member_spec=$shared_archive_member_spec 36543 36544# Shell to use when invoking shell scripts. 36545SHELL=$lt_SHELL 36546 36547# An echo program that protects backslashes. 36548ECHO=$lt_ECHO 36549 36550# The PATH separator for the build system. 36551PATH_SEPARATOR=$lt_PATH_SEPARATOR 36552 36553# The host system. 36554host_alias=$host_alias 36555host=$host 36556host_os=$host_os 36557 36558# The build system. 36559build_alias=$build_alias 36560build=$build 36561build_os=$build_os 36562 36563# A sed program that does not truncate output. 36564SED=$lt_SED 36565 36566# Sed that helps us avoid accidentally triggering echo(1) options like -n. 36567Xsed="\$SED -e 1s/^X//" 36568 36569# A grep program that handles long lines. 36570GREP=$lt_GREP 36571 36572# An ERE matcher. 36573EGREP=$lt_EGREP 36574 36575# A literal string matcher. 36576FGREP=$lt_FGREP 36577 36578# A BSD- or MS-compatible name lister. 36579NM=$lt_NM 36580 36581# Whether we need soft or hard links. 36582LN_S=$lt_LN_S 36583 36584# What is the maximum length of a command? 36585max_cmd_len=$max_cmd_len 36586 36587# Object file suffix (normally "o"). 36588objext=$ac_objext 36589 36590# Executable file suffix (normally ""). 36591exeext=$exeext 36592 36593# whether the shell understands "unset". 36594lt_unset=$lt_unset 36595 36596# turn spaces into newlines. 36597SP2NL=$lt_lt_SP2NL 36598 36599# turn newlines into spaces. 36600NL2SP=$lt_lt_NL2SP 36601 36602# convert \$build file names to \$host format. 36603to_host_file_cmd=$lt_cv_to_host_file_cmd 36604 36605# convert \$build files to toolchain format. 36606to_tool_file_cmd=$lt_cv_to_tool_file_cmd 36607 36608# A file(cmd) program that detects file types. 36609FILECMD=$lt_FILECMD 36610 36611# Method to check whether dependent libraries are shared objects. 36612deplibs_check_method=$lt_deplibs_check_method 36613 36614# Command to use when deplibs_check_method = "file_magic". 36615file_magic_cmd=$lt_file_magic_cmd 36616 36617# How to find potential files when deplibs_check_method = "file_magic". 36618file_magic_glob=$lt_file_magic_glob 36619 36620# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 36621want_nocaseglob=$lt_want_nocaseglob 36622 36623# Command to associate shared and link libraries. 36624sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 36625 36626# The archiver. 36627AR=$lt_AR 36628 36629# Flags to create an archive (by configure). 36630lt_ar_flags=$lt_ar_flags 36631 36632# Flags to create an archive. 36633AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 36634 36635# How to feed a file listing to the archiver. 36636archiver_list_spec=$lt_archiver_list_spec 36637 36638# A symbol stripping program. 36639STRIP=$lt_STRIP 36640 36641# Commands used to install an old-style archive. 36642RANLIB=$lt_RANLIB 36643old_postinstall_cmds=$lt_old_postinstall_cmds 36644old_postuninstall_cmds=$lt_old_postuninstall_cmds 36645 36646# Whether to use a lock for old archive extraction. 36647lock_old_archive_extraction=$lock_old_archive_extraction 36648 36649# A C compiler. 36650LTCC=$lt_CC 36651 36652# LTCC compiler flags. 36653LTCFLAGS=$lt_CFLAGS 36654 36655# Take the output of nm and produce a listing of raw symbols and C names. 36656global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 36657 36658# Transform the output of nm in a proper C declaration. 36659global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 36660 36661# Transform the output of nm into a list of symbols to manually relocate. 36662global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 36663 36664# Transform the output of nm in a C name address pair. 36665global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 36666 36667# Transform the output of nm in a C name address pair when lib prefix is needed. 36668global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 36669 36670# The name lister interface. 36671nm_interface=$lt_lt_cv_nm_interface 36672 36673# Specify filename containing input files for \$NM. 36674nm_file_list_spec=$lt_nm_file_list_spec 36675 36676# The root where to search for dependent libraries,and where our libraries should be installed. 36677lt_sysroot=$lt_sysroot 36678 36679# Command to truncate a binary pipe. 36680lt_truncate_bin=$lt_lt_cv_truncate_bin 36681 36682# The name of the directory that contains temporary libtool files. 36683objdir=$objdir 36684 36685# Used to examine libraries when file_magic_cmd begins with "file". 36686MAGIC_CMD=$MAGIC_CMD 36687 36688# Must we lock files when doing compilation? 36689need_locks=$lt_need_locks 36690 36691# Manifest tool. 36692MANIFEST_TOOL=$lt_MANIFEST_TOOL 36693 36694# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 36695DSYMUTIL=$lt_DSYMUTIL 36696 36697# Tool to change global to local symbols on Mac OS X. 36698NMEDIT=$lt_NMEDIT 36699 36700# Tool to manipulate fat objects and archives on Mac OS X. 36701LIPO=$lt_LIPO 36702 36703# ldd/readelf like tool for Mach-O binaries on Mac OS X. 36704OTOOL=$lt_OTOOL 36705 36706# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 36707OTOOL64=$lt_OTOOL64 36708 36709# Old archive suffix (normally "a"). 36710libext=$libext 36711 36712# Shared library suffix (normally ".so"). 36713shrext_cmds=$lt_shrext_cmds 36714 36715# The commands to extract the exported symbol list from a shared archive. 36716extract_expsyms_cmds=$lt_extract_expsyms_cmds 36717 36718# Variables whose values should be saved in libtool wrapper scripts and 36719# restored at link time. 36720variables_saved_for_relink=$lt_variables_saved_for_relink 36721 36722# Do we need the "lib" prefix for modules? 36723need_lib_prefix=$need_lib_prefix 36724 36725# Do we need a version for libraries? 36726need_version=$need_version 36727 36728# Library versioning type. 36729version_type=$version_type 36730 36731# Shared library runtime path variable. 36732runpath_var=$runpath_var 36733 36734# Shared library path variable. 36735shlibpath_var=$shlibpath_var 36736 36737# Is shlibpath searched before the hard-coded library search path? 36738shlibpath_overrides_runpath=$shlibpath_overrides_runpath 36739 36740# Format of library name prefix. 36741libname_spec=$lt_libname_spec 36742 36743# List of archive names. First name is the real one, the rest are links. 36744# The last name is the one that the linker finds with -lNAME 36745library_names_spec=$lt_library_names_spec 36746 36747# The coded name of the library, if different from the real name. 36748soname_spec=$lt_soname_spec 36749 36750# Permission mode override for installation of shared libraries. 36751install_override_mode=$lt_install_override_mode 36752 36753# Command to use after installation of a shared archive. 36754postinstall_cmds=$lt_postinstall_cmds 36755 36756# Command to use after uninstallation of a shared archive. 36757postuninstall_cmds=$lt_postuninstall_cmds 36758 36759# Commands used to finish a libtool library installation in a directory. 36760finish_cmds=$lt_finish_cmds 36761 36762# As "finish_cmds", except a single script fragment to be evaled but 36763# not shown. 36764finish_eval=$lt_finish_eval 36765 36766# Whether we should hardcode library paths into libraries. 36767hardcode_into_libs=$hardcode_into_libs 36768 36769# Compile-time system search path for libraries. 36770sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 36771 36772# Detected run-time system search path for libraries. 36773sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 36774 36775# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 36776configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 36777 36778# Whether dlopen is supported. 36779dlopen_support=$enable_dlopen 36780 36781# Whether dlopen of programs is supported. 36782dlopen_self=$enable_dlopen_self 36783 36784# Whether dlopen of statically linked programs is supported. 36785dlopen_self_static=$enable_dlopen_self_static 36786 36787# Commands to strip libraries. 36788old_striplib=$lt_old_striplib 36789striplib=$lt_striplib 36790 36791 36792# The linker used to build libraries. 36793LD=$lt_LD 36794 36795# How to create reloadable object files. 36796reload_flag=$lt_reload_flag 36797reload_cmds=$lt_reload_cmds 36798 36799# Commands used to build an old-style archive. 36800old_archive_cmds=$lt_old_archive_cmds 36801 36802# A language specific compiler. 36803CC=$lt_compiler 36804 36805# Is the compiler the GNU compiler? 36806with_gcc=$GCC 36807 36808# Compiler flag to turn off builtin functions. 36809no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 36810 36811# Additional compiler flags for building library objects. 36812pic_flag=$lt_lt_prog_compiler_pic 36813 36814# How to pass a linker flag through the compiler. 36815wl=$lt_lt_prog_compiler_wl 36816 36817# Compiler flag to prevent dynamic linking. 36818link_static_flag=$lt_lt_prog_compiler_static 36819 36820# Does compiler simultaneously support -c and -o options? 36821compiler_c_o=$lt_lt_cv_prog_compiler_c_o 36822 36823# Whether or not to add -lc for building shared libraries. 36824build_libtool_need_lc=$archive_cmds_need_lc 36825 36826# Whether or not to disallow shared libs when runtime libs are static. 36827allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 36828 36829# Compiler flag to allow reflexive dlopens. 36830export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 36831 36832# Compiler flag to generate shared objects directly from archives. 36833whole_archive_flag_spec=$lt_whole_archive_flag_spec 36834 36835# Whether the compiler copes with passing no objects directly. 36836compiler_needs_object=$lt_compiler_needs_object 36837 36838# Create an old-style archive from a shared archive. 36839old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 36840 36841# Create a temporary old-style archive to link instead of a shared archive. 36842old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 36843 36844# Commands used to build a shared archive. 36845archive_cmds=$lt_archive_cmds 36846archive_expsym_cmds=$lt_archive_expsym_cmds 36847 36848# Commands used to build a loadable module if different from building 36849# a shared archive. 36850module_cmds=$lt_module_cmds 36851module_expsym_cmds=$lt_module_expsym_cmds 36852 36853# Whether we are building with GNU ld or not. 36854with_gnu_ld=$lt_with_gnu_ld 36855 36856# Flag that allows shared libraries with undefined symbols to be built. 36857allow_undefined_flag=$lt_allow_undefined_flag 36858 36859# Flag that enforces no undefined symbols. 36860no_undefined_flag=$lt_no_undefined_flag 36861 36862# Flag to hardcode \$libdir into a binary during linking. 36863# This must work even if \$libdir does not exist 36864hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 36865 36866# Whether we need a single "-rpath" flag with a separated argument. 36867hardcode_libdir_separator=$lt_hardcode_libdir_separator 36868 36869# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 36870# DIR into the resulting binary. 36871hardcode_direct=$hardcode_direct 36872 36873# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 36874# DIR into the resulting binary and the resulting library dependency is 36875# "absolute",i.e impossible to change by setting \$shlibpath_var if the 36876# library is relocated. 36877hardcode_direct_absolute=$hardcode_direct_absolute 36878 36879# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 36880# into the resulting binary. 36881hardcode_minus_L=$hardcode_minus_L 36882 36883# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 36884# into the resulting binary. 36885hardcode_shlibpath_var=$hardcode_shlibpath_var 36886 36887# Set to "yes" if building a shared library automatically hardcodes DIR 36888# into the library and all subsequent libraries and executables linked 36889# against it. 36890hardcode_automatic=$hardcode_automatic 36891 36892# Set to yes if linker adds runtime paths of dependent libraries 36893# to runtime path list. 36894inherit_rpath=$inherit_rpath 36895 36896# Whether libtool must link a program against all its dependency libraries. 36897link_all_deplibs=$link_all_deplibs 36898 36899# Set to "yes" if exported symbols are required. 36900always_export_symbols=$always_export_symbols 36901 36902# The commands to list exported symbols. 36903export_symbols_cmds=$lt_export_symbols_cmds 36904 36905# Symbols that should not be listed in the preloaded symbols. 36906exclude_expsyms=$lt_exclude_expsyms 36907 36908# Symbols that must always be exported. 36909include_expsyms=$lt_include_expsyms 36910 36911# Commands necessary for linking programs (against libraries) with templates. 36912prelink_cmds=$lt_prelink_cmds 36913 36914# Commands necessary for finishing linking programs. 36915postlink_cmds=$lt_postlink_cmds 36916 36917# Specify filename containing input files. 36918file_list_spec=$lt_file_list_spec 36919 36920# How to hardcode a shared library path into an executable. 36921hardcode_action=$hardcode_action 36922 36923# The directories searched by this compiler when creating a shared library. 36924compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 36925 36926# Dependencies to place before and after the objects being linked to 36927# create a shared library. 36928predep_objects=$lt_predep_objects 36929postdep_objects=$lt_postdep_objects 36930predeps=$lt_predeps 36931postdeps=$lt_postdeps 36932 36933# The library search path used internally by the compiler when linking 36934# a shared library. 36935compiler_lib_search_path=$lt_compiler_lib_search_path 36936 36937# ### END LIBTOOL CONFIG 36938 36939_LT_EOF 36940 36941 cat <<'_LT_EOF' >> "$cfgfile" 36942 36943# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 36944 36945# func_munge_path_list VARIABLE PATH 36946# ----------------------------------- 36947# VARIABLE is name of variable containing _space_ separated list of 36948# directories to be munged by the contents of PATH, which is string 36949# having a format: 36950# "DIR[:DIR]:" 36951# string "DIR[ DIR]" will be prepended to VARIABLE 36952# ":DIR[:DIR]" 36953# string "DIR[ DIR]" will be appended to VARIABLE 36954# "DIRP[:DIRP]::[DIRA:]DIRA" 36955# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 36956# "DIRA[ DIRA]" will be appended to VARIABLE 36957# "DIR[:DIR]" 36958# VARIABLE will be replaced by "DIR[ DIR]" 36959func_munge_path_list () 36960{ 36961 case x$2 in 36962 x) 36963 ;; 36964 *:) 36965 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 36966 ;; 36967 x:*) 36968 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 36969 ;; 36970 *::*) 36971 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 36972 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 36973 ;; 36974 *) 36975 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 36976 ;; 36977 esac 36978} 36979 36980 36981# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 36982func_cc_basename () 36983{ 36984 for cc_temp in $*""; do 36985 case $cc_temp in 36986 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 36987 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 36988 \-*) ;; 36989 *) break;; 36990 esac 36991 done 36992 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 36993} 36994 36995 36996# ### END FUNCTIONS SHARED WITH CONFIGURE 36997 36998_LT_EOF 36999 37000 case $host_os in 37001 aix3*) 37002 cat <<\_LT_EOF >> "$cfgfile" 37003# AIX sometimes has problems with the GCC collect2 program. For some 37004# reason, if we set the COLLECT_NAMES environment variable, the problems 37005# vanish in a puff of smoke. 37006if test set != "${COLLECT_NAMES+set}"; then 37007 COLLECT_NAMES= 37008 export COLLECT_NAMES 37009fi 37010_LT_EOF 37011 ;; 37012 esac 37013 37014 37015 37016ltmain=$ac_aux_dir/ltmain.sh 37017 37018 37019 # We use sed instead of cat because bash on DJGPP gets confused if 37020 # if finds mixed CR/LF and LF-only lines. Since sed operates in 37021 # text mode, it properly converts lines to CR/LF. This bash problem 37022 # is reportedly fixed, but why not run on old versions too? 37023 $SED '$q' "$ltmain" >> "$cfgfile" \ 37024 || (rm -f "$cfgfile"; exit 1) 37025 37026 mv -f "$cfgfile" "$ofile" || 37027 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 37028 chmod +x "$ofile" 37029 37030 37031 cat <<_LT_EOF >> "$ofile" 37032 37033# ### BEGIN LIBTOOL TAG CONFIG: CXX 37034 37035# The linker used to build libraries. 37036LD=$lt_LD_CXX 37037 37038# How to create reloadable object files. 37039reload_flag=$lt_reload_flag_CXX 37040reload_cmds=$lt_reload_cmds_CXX 37041 37042# Commands used to build an old-style archive. 37043old_archive_cmds=$lt_old_archive_cmds_CXX 37044 37045# A language specific compiler. 37046CC=$lt_compiler_CXX 37047 37048# Is the compiler the GNU compiler? 37049with_gcc=$GCC_CXX 37050 37051# Compiler flag to turn off builtin functions. 37052no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 37053 37054# Additional compiler flags for building library objects. 37055pic_flag=$lt_lt_prog_compiler_pic_CXX 37056 37057# How to pass a linker flag through the compiler. 37058wl=$lt_lt_prog_compiler_wl_CXX 37059 37060# Compiler flag to prevent dynamic linking. 37061link_static_flag=$lt_lt_prog_compiler_static_CXX 37062 37063# Does compiler simultaneously support -c and -o options? 37064compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 37065 37066# Whether or not to add -lc for building shared libraries. 37067build_libtool_need_lc=$archive_cmds_need_lc_CXX 37068 37069# Whether or not to disallow shared libs when runtime libs are static. 37070allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 37071 37072# Compiler flag to allow reflexive dlopens. 37073export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 37074 37075# Compiler flag to generate shared objects directly from archives. 37076whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 37077 37078# Whether the compiler copes with passing no objects directly. 37079compiler_needs_object=$lt_compiler_needs_object_CXX 37080 37081# Create an old-style archive from a shared archive. 37082old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 37083 37084# Create a temporary old-style archive to link instead of a shared archive. 37085old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 37086 37087# Commands used to build a shared archive. 37088archive_cmds=$lt_archive_cmds_CXX 37089archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 37090 37091# Commands used to build a loadable module if different from building 37092# a shared archive. 37093module_cmds=$lt_module_cmds_CXX 37094module_expsym_cmds=$lt_module_expsym_cmds_CXX 37095 37096# Whether we are building with GNU ld or not. 37097with_gnu_ld=$lt_with_gnu_ld_CXX 37098 37099# Flag that allows shared libraries with undefined symbols to be built. 37100allow_undefined_flag=$lt_allow_undefined_flag_CXX 37101 37102# Flag that enforces no undefined symbols. 37103no_undefined_flag=$lt_no_undefined_flag_CXX 37104 37105# Flag to hardcode \$libdir into a binary during linking. 37106# This must work even if \$libdir does not exist 37107hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 37108 37109# Whether we need a single "-rpath" flag with a separated argument. 37110hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 37111 37112# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 37113# DIR into the resulting binary. 37114hardcode_direct=$hardcode_direct_CXX 37115 37116# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 37117# DIR into the resulting binary and the resulting library dependency is 37118# "absolute",i.e impossible to change by setting \$shlibpath_var if the 37119# library is relocated. 37120hardcode_direct_absolute=$hardcode_direct_absolute_CXX 37121 37122# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 37123# into the resulting binary. 37124hardcode_minus_L=$hardcode_minus_L_CXX 37125 37126# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 37127# into the resulting binary. 37128hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 37129 37130# Set to "yes" if building a shared library automatically hardcodes DIR 37131# into the library and all subsequent libraries and executables linked 37132# against it. 37133hardcode_automatic=$hardcode_automatic_CXX 37134 37135# Set to yes if linker adds runtime paths of dependent libraries 37136# to runtime path list. 37137inherit_rpath=$inherit_rpath_CXX 37138 37139# Whether libtool must link a program against all its dependency libraries. 37140link_all_deplibs=$link_all_deplibs_CXX 37141 37142# Set to "yes" if exported symbols are required. 37143always_export_symbols=$always_export_symbols_CXX 37144 37145# The commands to list exported symbols. 37146export_symbols_cmds=$lt_export_symbols_cmds_CXX 37147 37148# Symbols that should not be listed in the preloaded symbols. 37149exclude_expsyms=$lt_exclude_expsyms_CXX 37150 37151# Symbols that must always be exported. 37152include_expsyms=$lt_include_expsyms_CXX 37153 37154# Commands necessary for linking programs (against libraries) with templates. 37155prelink_cmds=$lt_prelink_cmds_CXX 37156 37157# Commands necessary for finishing linking programs. 37158postlink_cmds=$lt_postlink_cmds_CXX 37159 37160# Specify filename containing input files. 37161file_list_spec=$lt_file_list_spec_CXX 37162 37163# How to hardcode a shared library path into an executable. 37164hardcode_action=$hardcode_action_CXX 37165 37166# The directories searched by this compiler when creating a shared library. 37167compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 37168 37169# Dependencies to place before and after the objects being linked to 37170# create a shared library. 37171predep_objects=$lt_predep_objects_CXX 37172postdep_objects=$lt_postdep_objects_CXX 37173predeps=$lt_predeps_CXX 37174postdeps=$lt_postdeps_CXX 37175 37176# The library search path used internally by the compiler when linking 37177# a shared library. 37178compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 37179 37180# ### END LIBTOOL TAG CONFIG: CXX 37181_LT_EOF 37182 37183 ;; 37184 37185 esac 37186done # for ac_tag 37187 37188 37189as_fn_exit 0 37190_ACEOF 37191ac_clean_files=$ac_clean_files_save 37192 37193test $ac_write_fail = 0 || 37194 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 37195 37196 37197# configure is writing to config.log, and then calls config.status. 37198# config.status does its own redirection, appending to config.log. 37199# Unfortunately, on DOS this fails, as config.log is still kept open 37200# by configure, so config.status won't be able to write to it; its 37201# output is simply discarded. So we exec the FD to /dev/null, 37202# effectively closing config.log, so it can be properly (re)opened and 37203# appended to by config.status. When coming back to configure, we 37204# need to make the FD available again. 37205if test "$no_create" != yes; then 37206 ac_cs_success=: 37207 ac_config_status_args= 37208 test "$silent" = yes && 37209 ac_config_status_args="$ac_config_status_args --quiet" 37210 exec 5>/dev/null 37211 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 37212 exec 5>>config.log 37213 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 37214 # would make configure fail if this is the last instruction. 37215 $ac_cs_success || as_fn_exit 1 37216fi 37217 37218# 37219# CONFIG_SUBDIRS section. 37220# 37221if test "$no_recursion" != yes; then 37222 37223 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 37224 # so they do not pile up. 37225 ac_sub_configure_args= 37226 ac_prev= 37227 eval "set x $ac_configure_args" 37228 shift 37229 for ac_arg 37230 do 37231 if test -n "$ac_prev"; then 37232 ac_prev= 37233 continue 37234 fi 37235 case $ac_arg in 37236 -cache-file | --cache-file | --cache-fil | --cache-fi \ 37237 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 37238 ac_prev=cache_file ;; 37239 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 37240 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 37241 | --c=*) 37242 ;; 37243 --config-cache | -C) 37244 ;; 37245 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 37246 ac_prev=srcdir ;; 37247 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 37248 ;; 37249 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 37250 ac_prev=prefix ;; 37251 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 37252 ;; 37253 --disable-option-checking) 37254 ;; 37255 *) 37256 case $ac_arg in 37257 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 37258 esac 37259 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; 37260 esac 37261 done 37262 37263 # Always prepend --prefix to ensure using the same prefix 37264 # in subdir configurations. 37265 ac_arg="--prefix=$prefix" 37266 case $ac_arg in 37267 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 37268 esac 37269 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 37270 37271 # Pass --silent 37272 if test "$silent" = yes; then 37273 ac_sub_configure_args="--silent $ac_sub_configure_args" 37274 fi 37275 37276 # Always prepend --disable-option-checking to silence warnings, since 37277 # different subdirs can have different --enable and --with options. 37278 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 37279 37280 ac_popdir=`pwd` 37281 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 37282 37283 # Do not complain, so a configure script can configure whichever 37284 # parts of a large source tree are present. 37285 test -d "$srcdir/$ac_dir" || continue 37286 37287 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 37288 printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 37289 printf "%s\n" "$ac_msg" >&6 37290 as_dir="$ac_dir"; as_fn_mkdir_p 37291 ac_builddir=. 37292 37293case "$ac_dir" in 37294.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 37295*) 37296 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 37297 # A ".." for each directory in $ac_dir_suffix. 37298 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 37299 case $ac_top_builddir_sub in 37300 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 37301 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 37302 esac ;; 37303esac 37304ac_abs_top_builddir=$ac_pwd 37305ac_abs_builddir=$ac_pwd$ac_dir_suffix 37306# for backward compatibility: 37307ac_top_builddir=$ac_top_build_prefix 37308 37309case $srcdir in 37310 .) # We are building in place. 37311 ac_srcdir=. 37312 ac_top_srcdir=$ac_top_builddir_sub 37313 ac_abs_top_srcdir=$ac_pwd ;; 37314 [\\/]* | ?:[\\/]* ) # Absolute name. 37315 ac_srcdir=$srcdir$ac_dir_suffix; 37316 ac_top_srcdir=$srcdir 37317 ac_abs_top_srcdir=$srcdir ;; 37318 *) # Relative name. 37319 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 37320 ac_top_srcdir=$ac_top_build_prefix$srcdir 37321 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 37322esac 37323ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 37324 37325 37326 cd "$ac_dir" 37327 37328 # Check for configure.gnu first; this name is used for a wrapper for 37329 # Metaconfig's "Configure" on case-insensitive file systems. 37330 if test -f "$ac_srcdir/configure.gnu"; then 37331 ac_sub_configure=$ac_srcdir/configure.gnu 37332 elif test -f "$ac_srcdir/configure"; then 37333 ac_sub_configure=$ac_srcdir/configure 37334 else 37335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 37336printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 37337 ac_sub_configure= 37338 fi 37339 37340 # The recursion is here. 37341 if test -n "$ac_sub_configure"; then 37342 # Make the cache file name correct relative to the subdirectory. 37343 case $cache_file in 37344 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 37345 *) # Relative name. 37346 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 37347 esac 37348 37349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 37350printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 37351 # The eval makes quoting arguments work. 37352 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 37353 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 37354 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 37355 fi 37356 37357 cd "$ac_popdir" 37358 done 37359fi 37360if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 37361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 37362printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 37363fi 37364 37365 37366## ---------------------------------- ## 37367## Start of distclean amending code ## 37368## ---------------------------------- ## 37369 37370for xc_subdir in '.' 37371do 37372 37373if test ! -f "$xc_subdir/Makefile"; then 37374 echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2 37375 exit 1 37376fi 37377 37378# Fetch dependency tracking file list from Makefile include lines. 37379 37380xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null` 37381xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"` 37382 37383# --disable-dependency-tracking might have been used, consequently 37384# there is nothing to amend without a dependency tracking file list. 37385 37386if test $xc_cnt_words -gt 0; then 37387 37388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5 37389printf "%s\n" "$as_me: amending $xc_subdir/Makefile" >&6;} 37390 37391# Build Makefile specific patch hunk. 37392 37393xc_p="$xc_subdir/xc_patch.tmp" 37394 37395xc_rm_depfiles=`echo "$xc_inc_lines" \ 37396 | $SED 's%include% -rm -f%' 2>/dev/null` 37397 37398xc_dep_subdirs=`echo "$xc_inc_lines" \ 37399 | $SED 's%include[ ][ ]*%%' 2>/dev/null \ 37400 | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \ 37401 | sort | uniq` 37402 37403echo "$xc_rm_depfiles" >$xc_p 37404 37405for xc_dep_dir in $xc_dep_subdirs; do 37406 echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\" >>$xc_p 37407 echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\" >>$xc_p 37408 echo "${xc_tab} rm -rf $xc_dep_dir; \\" >>$xc_p 37409 echo "${xc_tab}fi" >>$xc_p 37410done 37411 37412# Build Makefile patching sed scripts. 37413 37414xc_s1="$xc_subdir/xc_script_1.tmp" 37415xc_s2="$xc_subdir/xc_script_2.tmp" 37416xc_s3="$xc_subdir/xc_script_3.tmp" 37417 37418cat >$xc_s1 <<\_EOT 37419/^distclean[ ]*:/,/^[^ ][^ ]*:/{ 37420 s/^.*(DEPDIR)/___xc_depdir_line___/ 37421} 37422/^maintainer-clean[ ]*:/,/^[^ ][^ ]*:/{ 37423 s/^.*(DEPDIR)/___xc_depdir_line___/ 37424} 37425_EOT 37426 37427cat >$xc_s2 <<\_EOT 37428/___xc_depdir_line___$/{ 37429 N 37430 /___xc_depdir_line___$/D 37431} 37432_EOT 37433 37434cat >$xc_s3 <<_EOT 37435/^___xc_depdir_line___/{ 37436 r $xc_p 37437 d 37438} 37439_EOT 37440 37441# Apply patch to Makefile and cleanup. 37442 37443$SED -f "$xc_s1" "$xc_subdir/Makefile" >"$xc_subdir/Makefile.tmp1" 37444$SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2" 37445$SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3" 37446 37447if test -f "$xc_subdir/Makefile.tmp3"; then 37448 mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile" 37449fi 37450 37451test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1" 37452test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2" 37453test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3" 37454 37455test -f "$xc_p" && rm -f "$xc_p" 37456test -f "$xc_s1" && rm -f "$xc_s1" 37457test -f "$xc_s2" && rm -f "$xc_s2" 37458test -f "$xc_s3" && rm -f "$xc_s3" 37459 37460fi 37461 37462done 37463 37464## -------------------------------- ## 37465## End of distclean amending code ## 37466## -------------------------------- ## 37467 37468 37469 37470