1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.69 for curl -. 4 # 5 # Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>. 6 # 7 # 8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9 # 10 # 11 # This configure script is free software; the Free Software Foundation 12 # gives unlimited permission to copy, distribute and modify it. 13 # 14 # Copyright (c) 1998 - 2019 Daniel Stenberg, <daniel (at] haxx.se> 15 # This configure script may be copied, distributed and modified under the 16 # terms of the curl license; see COPYING for more details 17 18 ## -------------------------------- ## 19 ## XC_CONFIGURE_PREAMBLE ver: 1.0 ## 20 ## -------------------------------- ## 21 22 xc_configure_preamble_ver_major='1' 23 xc_configure_preamble_ver_minor='0' 24 25 # 26 # Set IFS to space, tab and newline. 27 # 28 29 xc_space=' ' 30 xc_tab=' ' 31 xc_newline=' 32 ' 33 IFS="$xc_space$xc_tab$xc_newline" 34 35 # 36 # Set internationalization behavior variables. 37 # 38 39 LANG='C' 40 LC_ALL='C' 41 LANGUAGE='C' 42 export LANG 43 export LC_ALL 44 export LANGUAGE 45 46 # 47 # Some useful variables. 48 # 49 50 xc_msg_warn='configure: WARNING:' 51 xc_msg_abrt='Can not continue.' 52 xc_msg_err='configure: error:' 53 54 # 55 # Verify that 'echo' command is available, otherwise abort. 56 # 57 58 xc_tst_str='unknown' 59 (`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success' 60 case "x$xc_tst_str" in # (( 61 xsuccess) 62 : 63 ;; 64 *) 65 # Try built-in echo, and fail. 66 echo "$xc_msg_err 'echo' command not found. $xc_msg_abrt" >&2 67 exit 1 68 ;; 69 esac 70 71 # 72 # Verify that 'test' command is available, otherwise abort. 73 # 74 75 xc_tst_str='unknown' 76 (`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success' 77 case "x$xc_tst_str" in # (( 78 xsuccess) 79 : 80 ;; 81 *) 82 echo "$xc_msg_err 'test' command not found. $xc_msg_abrt" >&2 83 exit 1 84 ;; 85 esac 86 87 # 88 # Verify that 'PATH' variable is set, otherwise abort. 89 # 90 91 xc_tst_str='unknown' 92 (`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success' 93 case "x$xc_tst_str" in # (( 94 xsuccess) 95 : 96 ;; 97 *) 98 echo "$xc_msg_err 'PATH' variable not set. $xc_msg_abrt" >&2 99 exit 1 100 ;; 101 esac 102 103 # 104 # Verify that 'expr' command is available, otherwise abort. 105 # 106 107 xc_tst_str='unknown' 108 xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null` 109 case "x$xc_tst_str" in # (( 110 x7) 111 : 112 ;; 113 *) 114 echo "$xc_msg_err 'expr' command not found. $xc_msg_abrt" >&2 115 exit 1 116 ;; 117 esac 118 119 # 120 # Verify that 'sed' utility is found within 'PATH', otherwise abort. 121 # 122 123 xc_tst_str='unknown' 124 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \ 125 | sed -e 's:unknown:success:' 2>/dev/null` 126 case "x$xc_tst_str" in # (( 127 xsuccess) 128 : 129 ;; 130 *) 131 echo "$xc_msg_err 'sed' utility not found in 'PATH'. $xc_msg_abrt" >&2 132 exit 1 133 ;; 134 esac 135 136 # 137 # Verify that 'grep' utility is found within 'PATH', otherwise abort. 138 # 139 140 xc_tst_str='unknown' 141 (`echo "$xc_tst_str" 2>/dev/null \ 142 | grep 'unknown' >/dev/null 2>&1`) && xc_tst_str='success' 143 case "x$xc_tst_str" in # (( 144 xsuccess) 145 : 146 ;; 147 *) 148 echo "$xc_msg_err 'grep' utility not found in 'PATH'. $xc_msg_abrt" >&2 149 exit 1 150 ;; 151 esac 152 153 # 154 # Verify that 'tr' utility is found within 'PATH', otherwise abort. 155 # 156 157 xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10" 158 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \ 159 | tr -d "0123456789$xc_tab" 2>/dev/null` 160 case "x$xc_tst_str" in # (( 161 xsuccess) 162 : 163 ;; 164 *) 165 echo "$xc_msg_err 'tr' utility not found in 'PATH'. $xc_msg_abrt" >&2 166 exit 1 167 ;; 168 esac 169 170 # 171 # Verify that 'wc' utility is found within 'PATH', otherwise abort. 172 # 173 174 xc_tst_str='unknown unknown unknown unknown' 175 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \ 176 | wc -w 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null` 177 case "x$xc_tst_str" in # (( 178 x4) 179 : 180 ;; 181 *) 182 echo "$xc_msg_err 'wc' utility not found in 'PATH'. $xc_msg_abrt" >&2 183 exit 1 184 ;; 185 esac 186 187 # 188 # Verify that 'cat' utility is found within 'PATH', otherwise abort. 189 # 190 191 xc_tst_str='unknown' 192 xc_tst_str=`cat <<_EOT 2>/dev/null \ 193 | wc -l 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null 194 unknown 195 unknown 196 unknown 197 _EOT` 198 case "x$xc_tst_str" in # (( 199 x3) 200 : 201 ;; 202 *) 203 echo "$xc_msg_err 'cat' utility not found in 'PATH'. $xc_msg_abrt" >&2 204 exit 1 205 ;; 206 esac 207 208 # 209 # Auto-detect and set 'PATH_SEPARATOR', unless it is already non-empty set. 210 # 211 212 # Directory count in 'PATH' when using a colon separator. 213 xc_tst_dirs_col='x' 214 xc_tst_prev_IFS=$IFS; IFS=':' 215 for xc_tst_dir in $PATH; do 216 IFS=$xc_tst_prev_IFS 217 xc_tst_dirs_col="x$xc_tst_dirs_col" 218 done 219 IFS=$xc_tst_prev_IFS 220 xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'` 221 222 # Directory count in 'PATH' when using a semicolon separator. 223 xc_tst_dirs_sem='x' 224 xc_tst_prev_IFS=$IFS; IFS=';' 225 for xc_tst_dir in $PATH; do 226 IFS=$xc_tst_prev_IFS 227 xc_tst_dirs_sem="x$xc_tst_dirs_sem" 228 done 229 IFS=$xc_tst_prev_IFS 230 xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'` 231 232 if test $xc_tst_dirs_sem -eq $xc_tst_dirs_col; then 233 # When both counting methods give the same result we do not want to 234 # chose one over the other, and consider auto-detection not possible. 235 if test -z "$PATH_SEPARATOR"; then 236 # User should provide the correct 'PATH_SEPARATOR' definition. 237 # Until then, guess that it is colon! 238 echo "$xc_msg_warn path separator not determined, guessing colon" >&2 239 PATH_SEPARATOR=':' 240 fi 241 else 242 # Separator with the greater directory count is the auto-detected one. 243 if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then 244 xc_tst_auto_separator=';' 245 else 246 xc_tst_auto_separator=':' 247 fi 248 if test -z "$PATH_SEPARATOR"; then 249 # Simply use the auto-detected one when not already set. 250 PATH_SEPARATOR=$xc_tst_auto_separator 251 elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then 252 echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2 253 fi 254 fi 255 xc_PATH_SEPARATOR=$PATH_SEPARATOR 256 257 xc_configure_preamble_result='yes' 258 259 260 ## -------------------- ## 261 ## M4sh Initialization. ## 262 ## -------------------- ## 263 264 # Be more Bourne compatible 265 DUALCASE=1; export DUALCASE # for MKS sh 266 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 267 emulate sh 268 NULLCMD=: 269 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 270 # is contrary to our usage. Disable this feature. 271 alias -g '${1+"$@"}'='"$@"' 272 setopt NO_GLOB_SUBST 273 else 274 case `(set -o) 2>/dev/null` in #( 275 *posix*) : 276 set -o posix ;; #( 277 *) : 278 ;; 279 esac 280 fi 281 282 283 as_nl=' 284 ' 285 export as_nl 286 # Printing a long string crashes Solaris 7 /usr/bin/printf. 287 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 288 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 289 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 290 # Prefer a ksh shell builtin over an external printf program on Solaris, 291 # but without wasting forks for bash or zsh. 292 if test -z "$BASH_VERSION$ZSH_VERSION" \ 293 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 294 as_echo='print -r --' 295 as_echo_n='print -rn --' 296 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 297 as_echo='printf %s\n' 298 as_echo_n='printf %s' 299 else 300 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 301 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 302 as_echo_n='/usr/ucb/echo -n' 303 else 304 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 305 as_echo_n_body='eval 306 arg=$1; 307 case $arg in #( 308 *"$as_nl"*) 309 expr "X$arg" : "X\\(.*\\)$as_nl"; 310 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 311 esac; 312 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 313 ' 314 export as_echo_n_body 315 as_echo_n='sh -c $as_echo_n_body as_echo' 316 fi 317 export as_echo_body 318 as_echo='sh -c $as_echo_body as_echo' 319 fi 320 321 322 323 # IFS 324 # We need space, tab and new line, in precisely that order. Quoting is 325 # there to prevent editors from complaining about space-tab. 326 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 327 # splitting by setting IFS to empty value.) 328 IFS=" "" $as_nl" 329 330 # Find who we are. Look in the path if we contain no directory separator. 331 as_myself= 332 case $0 in #(( 333 *[\\/]* ) as_myself=$0 ;; 334 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 335 for as_dir in $PATH 336 do 337 IFS=$as_save_IFS 338 test -z "$as_dir" && as_dir=. 339 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 340 done 341 IFS=$as_save_IFS 342 343 ;; 344 esac 345 # We did not find ourselves, most probably we were run as `sh COMMAND' 346 # in which case we are not to be found in the path. 347 if test "x$as_myself" = x; then 348 as_myself=$0 349 fi 350 if test ! -f "$as_myself"; then 351 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 352 exit 1 353 fi 354 355 # Unset variables that we do not need and which cause bugs (e.g. in 356 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 357 # suppresses any "Segmentation fault" message there. '((' could 358 # trigger a bug in pdksh 5.2.14. 359 for as_var in BASH_ENV ENV MAIL MAILPATH 360 do eval test x\${$as_var+set} = xset \ 361 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 362 done 363 PS1='$ ' 364 PS2='> ' 365 PS4='+ ' 366 367 # NLS nuisances. 368 LC_ALL=C 369 export LC_ALL 370 LANGUAGE=C 371 export LANGUAGE 372 373 # CDPATH. 374 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 375 376 # Use a proper internal environment variable to ensure we don't fall 377 # into an infinite loop, continuously re-executing ourselves. 378 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 379 _as_can_reexec=no; export _as_can_reexec; 380 # We cannot yet assume a decent shell, so we have to provide a 381 # neutralization value for shells without unset; and this also 382 # works around shells that cannot unset nonexistent variables. 383 # Preserve -v and -x to the replacement shell. 384 BASH_ENV=/dev/null 385 ENV=/dev/null 386 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 387 case $- in # (((( 388 *v*x* | *x*v* ) as_opts=-vx ;; 389 *v* ) as_opts=-v ;; 390 *x* ) as_opts=-x ;; 391 * ) as_opts= ;; 392 esac 393 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 394 # Admittedly, this is quite paranoid, since all the known shells bail 395 # out after a failed `exec'. 396 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 397 as_fn_exit 255 398 fi 399 # We don't want this to propagate to other subprocesses. 400 { _as_can_reexec=; unset _as_can_reexec;} 401 if test "x$CONFIG_SHELL" = x; then 402 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 403 emulate sh 404 NULLCMD=: 405 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 406 # is contrary to our usage. Disable this feature. 407 alias -g '\${1+\"\$@\"}'='\"\$@\"' 408 setopt NO_GLOB_SUBST 409 else 410 case \`(set -o) 2>/dev/null\` in #( 411 *posix*) : 412 set -o posix ;; #( 413 *) : 414 ;; 415 esac 416 fi 417 " 418 as_required="as_fn_return () { (exit \$1); } 419 as_fn_success () { as_fn_return 0; } 420 as_fn_failure () { as_fn_return 1; } 421 as_fn_ret_success () { return 0; } 422 as_fn_ret_failure () { return 1; } 423 424 exitcode=0 425 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 426 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 427 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 428 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 429 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 430 431 else 432 exitcode=1; echo positional parameters were not saved. 433 fi 434 test x\$exitcode = x0 || exit 1 435 test -x / || exit 1" 436 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 437 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 438 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 439 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 440 test \$(( 1 + 1 )) = 2 || exit 1 441 442 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 443 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 444 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 445 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 446 PATH=/empty FPATH=/empty; export PATH FPATH 447 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 448 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 449 if (eval "$as_required") 2>/dev/null; then : 450 as_have_required=yes 451 else 452 as_have_required=no 453 fi 454 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 455 456 else 457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 458 as_found=false 459 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 460 do 461 IFS=$as_save_IFS 462 test -z "$as_dir" && as_dir=. 463 as_found=: 464 case $as_dir in #( 465 /*) 466 for as_base in sh bash ksh sh5; do 467 # Try only shells that exist, to save several forks. 468 as_shell=$as_dir/$as_base 469 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 470 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 471 CONFIG_SHELL=$as_shell as_have_required=yes 472 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 473 break 2 474 fi 475 fi 476 done;; 477 esac 478 as_found=false 479 done 480 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 481 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 482 CONFIG_SHELL=$SHELL as_have_required=yes 483 fi; } 484 IFS=$as_save_IFS 485 486 487 if test "x$CONFIG_SHELL" != x; then : 488 export CONFIG_SHELL 489 # We cannot yet assume a decent shell, so we have to provide a 490 # neutralization value for shells without unset; and this also 491 # works around shells that cannot unset nonexistent variables. 492 # Preserve -v and -x to the replacement shell. 493 BASH_ENV=/dev/null 494 ENV=/dev/null 495 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 496 case $- in # (((( 497 *v*x* | *x*v* ) as_opts=-vx ;; 498 *v* ) as_opts=-v ;; 499 *x* ) as_opts=-x ;; 500 * ) as_opts= ;; 501 esac 502 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 503 # Admittedly, this is quite paranoid, since all the known shells bail 504 # out after a failed `exec'. 505 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 506 exit 255 507 fi 508 509 if test x$as_have_required = xno; then : 510 $as_echo "$0: This script requires a shell more modern than all" 511 $as_echo "$0: the shells that I found on your system." 512 if test x${ZSH_VERSION+set} = xset ; then 513 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 514 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 515 else 516 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and a suitable curl 517 $0: mailing list: https://curl.haxx.se/mail/ about your 518 $0: system, including any error possibly output before this 519 $0: message. Then install a modern shell, or manually run 520 $0: the script under such a shell if you do have one." 521 fi 522 exit 1 523 fi 524 fi 525 fi 526 SHELL=${CONFIG_SHELL-/bin/sh} 527 export SHELL 528 # Unset more variables known to interfere with behavior of common tools. 529 CLICOLOR_FORCE= GREP_OPTIONS= 530 unset CLICOLOR_FORCE GREP_OPTIONS 531 532 ## --------------------- ## 533 ## M4sh Shell Functions. ## 534 ## --------------------- ## 535 # as_fn_unset VAR 536 # --------------- 537 # Portably unset VAR. 538 as_fn_unset () 539 { 540 { eval $1=; unset $1;} 541 } 542 as_unset=as_fn_unset 543 544 # as_fn_set_status STATUS 545 # ----------------------- 546 # Set $? to STATUS, without forking. 547 as_fn_set_status () 548 { 549 return $1 550 } # as_fn_set_status 551 552 # as_fn_exit STATUS 553 # ----------------- 554 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 555 as_fn_exit () 556 { 557 set +e 558 as_fn_set_status $1 559 exit $1 560 } # as_fn_exit 561 562 # as_fn_mkdir_p 563 # ------------- 564 # Create "$as_dir" as a directory, including parents if necessary. 565 as_fn_mkdir_p () 566 { 567 568 case $as_dir in #( 569 -*) as_dir=./$as_dir;; 570 esac 571 test -d "$as_dir" || eval $as_mkdir_p || { 572 as_dirs= 573 while :; do 574 case $as_dir in #( 575 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 576 *) as_qdir=$as_dir;; 577 esac 578 as_dirs="'$as_qdir' $as_dirs" 579 as_dir=`$as_dirname -- "$as_dir" || 580 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 581 X"$as_dir" : 'X\(//\)[^/]' \| \ 582 X"$as_dir" : 'X\(//\)$' \| \ 583 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 584 $as_echo X"$as_dir" | 585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 586 s//\1/ 587 q 588 } 589 /^X\(\/\/\)[^/].*/{ 590 s//\1/ 591 q 592 } 593 /^X\(\/\/\)$/{ 594 s//\1/ 595 q 596 } 597 /^X\(\/\).*/{ 598 s//\1/ 599 q 600 } 601 s/.*/./; q'` 602 test -d "$as_dir" && break 603 done 604 test -z "$as_dirs" || eval "mkdir $as_dirs" 605 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 606 607 608 } # as_fn_mkdir_p 609 610 # as_fn_executable_p FILE 611 # ----------------------- 612 # Test if FILE is an executable regular file. 613 as_fn_executable_p () 614 { 615 test -f "$1" && test -x "$1" 616 } # as_fn_executable_p 617 # as_fn_append VAR VALUE 618 # ---------------------- 619 # Append the text in VALUE to the end of the definition contained in VAR. Take 620 # advantage of any shell optimizations that allow amortized linear growth over 621 # repeated appends, instead of the typical quadratic growth present in naive 622 # implementations. 623 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 624 eval 'as_fn_append () 625 { 626 eval $1+=\$2 627 }' 628 else 629 as_fn_append () 630 { 631 eval $1=\$$1\$2 632 } 633 fi # as_fn_append 634 635 # as_fn_arith ARG... 636 # ------------------ 637 # Perform arithmetic evaluation on the ARGs, and store the result in the 638 # global $as_val. Take advantage of shells that can avoid forks. The arguments 639 # must be portable across $(()) and expr. 640 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 641 eval 'as_fn_arith () 642 { 643 as_val=$(( $* )) 644 }' 645 else 646 as_fn_arith () 647 { 648 as_val=`expr "$@" || test $? -eq 1` 649 } 650 fi # as_fn_arith 651 652 653 # as_fn_error STATUS ERROR [LINENO LOG_FD] 654 # ---------------------------------------- 655 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 656 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 657 # script with STATUS, using 1 if that was 0. 658 as_fn_error () 659 { 660 as_status=$1; test $as_status -eq 0 && as_status=1 661 if test "$4"; then 662 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 663 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 664 fi 665 $as_echo "$as_me: error: $2" >&2 666 as_fn_exit $as_status 667 } # as_fn_error 668 669 if expr a : '\(a\)' >/dev/null 2>&1 && 670 test "X`expr 00001 : '.*\(...\)'`" = X001; then 671 as_expr=expr 672 else 673 as_expr=false 674 fi 675 676 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 677 as_basename=basename 678 else 679 as_basename=false 680 fi 681 682 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 683 as_dirname=dirname 684 else 685 as_dirname=false 686 fi 687 688 as_me=`$as_basename -- "$0" || 689 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 690 X"$0" : 'X\(//\)$' \| \ 691 X"$0" : 'X\(/\)' \| . 2>/dev/null || 692 $as_echo X/"$0" | 693 sed '/^.*\/\([^/][^/]*\)\/*$/{ 694 s//\1/ 695 q 696 } 697 /^X\/\(\/\/\)$/{ 698 s//\1/ 699 q 700 } 701 /^X\/\(\/\).*/{ 702 s//\1/ 703 q 704 } 705 s/.*/./; q'` 706 707 # Avoid depending upon Character Ranges. 708 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 709 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 710 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 711 as_cr_digits='0123456789' 712 as_cr_alnum=$as_cr_Letters$as_cr_digits 713 714 715 as_lineno_1=$LINENO as_lineno_1a=$LINENO 716 as_lineno_2=$LINENO as_lineno_2a=$LINENO 717 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 718 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 719 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 720 sed -n ' 721 p 722 /[$]LINENO/= 723 ' <$as_myself | 724 sed ' 725 s/[$]LINENO.*/&-/ 726 t lineno 727 b 728 :lineno 729 N 730 :loop 731 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 732 t loop 733 s/-\n.*// 734 ' >$as_me.lineno && 735 chmod +x "$as_me.lineno" || 736 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 737 738 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 739 # already done that, so ensure we don't try to do so again and fall 740 # in an infinite loop. This has already happened in practice. 741 _as_can_reexec=no; export _as_can_reexec 742 # Don't try to exec as it changes $[0], causing all sort of problems 743 # (the dirname of $[0] is not the place where we might find the 744 # original and so on. Autoconf is especially sensitive to this). 745 . "./$as_me.lineno" 746 # Exit status is that of the last command. 747 exit 748 } 749 750 ECHO_C= ECHO_N= ECHO_T= 751 case `echo -n x` in #((((( 752 -n*) 753 case `echo 'xy\c'` in 754 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 755 xy) ECHO_C='\c';; 756 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 757 ECHO_T=' ';; 758 esac;; 759 *) 760 ECHO_N='-n';; 761 esac 762 763 rm -f conf$$ conf$$.exe conf$$.file 764 if test -d conf$$.dir; then 765 rm -f conf$$.dir/conf$$.file 766 else 767 rm -f conf$$.dir 768 mkdir conf$$.dir 2>/dev/null 769 fi 770 if (echo >conf$$.file) 2>/dev/null; then 771 if ln -s conf$$.file conf$$ 2>/dev/null; then 772 as_ln_s='ln -s' 773 # ... but there are two gotchas: 774 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 775 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 776 # In both cases, we have to default to `cp -pR'. 777 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 778 as_ln_s='cp -pR' 779 elif ln conf$$.file conf$$ 2>/dev/null; then 780 as_ln_s=ln 781 else 782 as_ln_s='cp -pR' 783 fi 784 else 785 as_ln_s='cp -pR' 786 fi 787 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 788 rmdir conf$$.dir 2>/dev/null 789 790 if mkdir -p . 2>/dev/null; then 791 as_mkdir_p='mkdir -p "$as_dir"' 792 else 793 test -d ./-p && rmdir ./-p 794 as_mkdir_p=false 795 fi 796 797 as_test_x='test -x' 798 as_executable_p=as_fn_executable_p 799 800 # Sed expression to map a string onto a valid CPP name. 801 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 802 803 # Sed expression to map a string onto a valid variable name. 804 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 805 806 SHELL=${CONFIG_SHELL-/bin/sh} 807 808 809 test -n "$DJDIR" || exec 7<&0 </dev/null 810 exec 6>&1 811 812 # Name of the host. 813 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 814 # so uname gets run too. 815 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 816 817 # 818 # Initializations. 819 # 820 ac_default_prefix=/usr/local 821 ac_clean_files= 822 ac_config_libobj_dir=. 823 LIBOBJS= 824 cross_compiling=no 825 subdirs= 826 MFLAGS= 827 MAKEFLAGS= 828 829 # Identity of this package. 830 PACKAGE_NAME='curl' 831 PACKAGE_TARNAME='curl' 832 PACKAGE_VERSION='-' 833 PACKAGE_STRING='curl -' 834 PACKAGE_BUGREPORT='a suitable curl mailing list: https://curl.haxx.se/mail/' 835 PACKAGE_URL='' 836 837 ac_unique_file="lib/urldata.h" 838 # Factoring default headers for most tests. 839 ac_includes_default="\ 840 #include <stdio.h> 841 #ifdef HAVE_SYS_TYPES_H 842 # include <sys/types.h> 843 #endif 844 #ifdef HAVE_SYS_STAT_H 845 # include <sys/stat.h> 846 #endif 847 #ifdef STDC_HEADERS 848 # include <stdlib.h> 849 # include <stddef.h> 850 #else 851 # ifdef HAVE_STDLIB_H 852 # include <stdlib.h> 853 # endif 854 #endif 855 #ifdef HAVE_STRING_H 856 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 857 # include <memory.h> 858 # endif 859 # include <string.h> 860 #endif 861 #ifdef HAVE_STRINGS_H 862 # include <strings.h> 863 #endif 864 #ifdef HAVE_INTTYPES_H 865 # include <inttypes.h> 866 #endif 867 #ifdef HAVE_STDINT_H 868 # include <stdint.h> 869 #endif 870 #ifdef HAVE_UNISTD_H 871 # include <unistd.h> 872 #endif" 873 874 enable_option_checking=no 875 ac_subst_vars='am__EXEEXT_FALSE 876 am__EXEEXT_TRUE 877 LTLIBOBJS 878 LIBOBJS 879 SSL_BACKENDS 880 SUPPORT_PROTOCOLS 881 SUPPORT_FEATURES 882 ENABLE_STATIC 883 ENABLE_SHARED 884 CROSSCOMPILING_FALSE 885 CROSSCOMPILING_TRUE 886 BLANK_AT_MAKETIME 887 CURL_NETWORK_AND_TIME_LIBS 888 CURL_NETWORK_LIBS 889 LIBCURL_LIBS 890 CFLAG_CURL_SYMBOL_HIDING 891 DOING_CURL_SYMBOL_HIDING_FALSE 892 DOING_CURL_SYMBOL_HIDING_TRUE 893 USE_UNIX_SOCKETS 894 BUILD_LIBHOSTNAME_FALSE 895 BUILD_LIBHOSTNAME_TRUE 896 USE_EMBEDDED_ARES_FALSE 897 USE_EMBEDDED_ARES_TRUE 898 USE_ARES 899 subdirs 900 USE_MANUAL_FALSE 901 USE_MANUAL_TRUE 902 MANOPT 903 NROFF 904 PERL 905 IPV6_ENABLED 906 FISH_FUNCTIONS_DIR 907 ZSH_FUNCTIONS_DIR 908 USE_NGHTTP2 909 IDN_ENABLED 910 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE 911 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE 912 CURL_LT_SHLIB_VERSIONED_FLAVOUR 913 USE_LIBRTMP 914 USE_LIBSSH 915 USE_LIBSSH2 916 LIBMETALINK_CPPFLAGS 917 LIBMETALINK_LDFLAGS 918 LIBMETALINK_LIBS 919 USE_LIBPSL_FALSE 920 USE_LIBPSL_TRUE 921 CURL_CA_BUNDLE 922 CURL_WITH_MULTI_SSL 923 SSL_ENABLED 924 NSS_LIBS 925 USE_NSS 926 USE_MESALINK 927 USE_CYASSL 928 USE_MBEDTLS 929 USE_POLARSSL 930 HAVE_GNUTLS_SRP 931 USE_GNUTLS_NETTLE 932 USE_GNUTLS 933 HAVE_OPENSSL_SRP 934 RANDOM_FILE 935 SSL_LIBS 936 USE_SECTRANSP 937 USE_WINDOWS_SSPI 938 USE_SCHANNEL 939 DEFAULT_SSL_BACKEND 940 BUILD_STUB_GSS_FALSE 941 BUILD_STUB_GSS_TRUE 942 USE_OPENLDAP 943 HAVE_BROTLI 944 ZLIB_LIBS 945 HAVE_LIBZ_FALSE 946 HAVE_LIBZ_TRUE 947 HAVE_LIBZ 948 PKGCONFIG 949 HAVE_PROTO_BSDSOCKET_H 950 CURL_DISABLE_GOPHER 951 CURL_DISABLE_SMTP 952 CURL_DISABLE_SMB 953 CURL_DISABLE_IMAP 954 CURL_DISABLE_POP3 955 CURL_DISABLE_TFTP 956 CURL_DISABLE_TELNET 957 CURL_DISABLE_DICT 958 CURL_DISABLE_PROXY 959 HAVE_LDAP_SSL 960 CURL_DISABLE_LDAPS 961 CURL_DISABLE_LDAP 962 CURL_DISABLE_FILE 963 CURL_DISABLE_FTP 964 CURL_DISABLE_RTSP 965 CURL_DISABLE_HTTP 966 DOING_NATIVE_WINDOWS_FALSE 967 DOING_NATIVE_WINDOWS_TRUE 968 BUILD_UNITTESTS_FALSE 969 BUILD_UNITTESTS_TRUE 970 CURLDEBUG_FALSE 971 CURLDEBUG_TRUE 972 USE_EXPLICIT_LIB_DEPS_FALSE 973 USE_EXPLICIT_LIB_DEPS_TRUE 974 REQUIRE_LIB_DEPS 975 CPPFLAG_CURL_STATICLIB 976 USE_CPPFLAG_CURL_STATICLIB_FALSE 977 USE_CPPFLAG_CURL_STATICLIB_TRUE 978 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE 979 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE 980 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE 981 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE 982 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE 983 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE 984 LT_SYS_LIBRARY_PATH 985 OTOOL64 986 OTOOL 987 LIPO 988 NMEDIT 989 DSYMUTIL 990 MANIFEST_TOOL 991 RANLIB 992 ac_ct_AR 993 LN_S 994 NM 995 ac_ct_DUMPBIN 996 DUMPBIN 997 LD 998 FGREP 999 LIBTOOL 1000 OBJDUMP 1001 DLLTOOL 1002 AS 1003 AR_FLAGS 1004 host_os 1005 host_vendor 1006 host_cpu 1007 host 1008 build_os 1009 build_vendor 1010 build_cpu 1011 build 1012 PKGADD_VENDOR 1013 PKGADD_NAME 1014 PKGADD_PKG 1015 VERSIONNUM 1016 CURLVERSION 1017 am__fastdepCC_FALSE 1018 am__fastdepCC_TRUE 1019 CCDEPMODE 1020 am__nodep 1021 AMDEPBACKSLASH 1022 AMDEP_FALSE 1023 AMDEP_TRUE 1024 am__quote 1025 am__include 1026 DEPDIR 1027 am__untar 1028 am__tar 1029 AMTAR 1030 am__leading_dot 1031 SET_MAKE 1032 AWK 1033 mkdir_p 1034 MKDIR_P 1035 INSTALL_STRIP_PROGRAM 1036 STRIP 1037 install_sh 1038 MAKEINFO 1039 AUTOHEADER 1040 AUTOMAKE 1041 AUTOCONF 1042 ACLOCAL 1043 VERSION 1044 PACKAGE 1045 CYGPATH_W 1046 am__isrc 1047 LCOV 1048 GCOV 1049 CPP 1050 OBJEXT 1051 EXEEXT 1052 ac_ct_CC 1053 CPPFLAGS 1054 LDFLAGS 1055 CFLAGS 1056 CC 1057 INSTALL_DATA 1058 INSTALL_SCRIPT 1059 INSTALL_PROGRAM 1060 libext 1061 AR 1062 EGREP 1063 GREP 1064 SED 1065 CURL_CFLAG_EXTRAS 1066 CONFIGURE_OPTIONS 1067 AM_BACKSLASH 1068 AM_DEFAULT_VERBOSITY 1069 AM_DEFAULT_V 1070 AM_V 1071 MAINT 1072 MAINTAINER_MODE_FALSE 1073 MAINTAINER_MODE_TRUE 1074 target_alias 1075 host_alias 1076 build_alias 1077 LIBS 1078 ECHO_T 1079 ECHO_N 1080 ECHO_C 1081 DEFS 1082 mandir 1083 localedir 1084 libdir 1085 psdir 1086 pdfdir 1087 dvidir 1088 htmldir 1089 infodir 1090 docdir 1091 oldincludedir 1092 includedir 1093 runstatedir 1094 localstatedir 1095 sharedstatedir 1096 sysconfdir 1097 datadir 1098 datarootdir 1099 libexecdir 1100 sbindir 1101 bindir 1102 program_transform_name 1103 prefix 1104 exec_prefix 1105 PACKAGE_URL 1106 PACKAGE_BUGREPORT 1107 PACKAGE_STRING 1108 PACKAGE_VERSION 1109 PACKAGE_TARNAME 1110 PACKAGE_NAME 1111 SHELL 1112 PATH_SEPARATOR' 1113 ac_subst_files='' 1114 ac_user_opts=' 1115 enable_option_checking 1116 enable_maintainer_mode 1117 enable_silent_rules 1118 enable_debug 1119 enable_optimize 1120 enable_warnings 1121 enable_werror 1122 enable_curldebug 1123 enable_symbol_hiding 1124 enable_hidden_symbols 1125 enable_ares 1126 enable_rt 1127 enable_code_coverage 1128 enable_dependency_tracking 1129 enable_largefile 1130 enable_shared 1131 enable_static 1132 with_pic 1133 enable_fast_install 1134 with_aix_soname 1135 with_gnu_ld 1136 with_sysroot 1137 enable_libtool_lock 1138 enable_http 1139 enable_ftp 1140 enable_file 1141 enable_ldap 1142 enable_ldaps 1143 enable_rtsp 1144 enable_proxy 1145 enable_dict 1146 enable_telnet 1147 enable_tftp 1148 enable_pop3 1149 enable_imap 1150 enable_smb 1151 enable_smtp 1152 enable_gopher 1153 enable_manual 1154 enable_libcurl_option 1155 enable_libgcc 1156 with_zlib 1157 with_brotli 1158 with_ldap_lib 1159 with_lber_lib 1160 enable_ipv6 1161 with_gssapi_includes 1162 with_gssapi_libs 1163 with_gssapi 1164 with_default_ssl_backend 1165 with_winssl 1166 with_schannel 1167 with_darwinssl 1168 with_secure_transport 1169 with_amissl 1170 with_ssl 1171 with_egd_socket 1172 with_random 1173 enable_openssl_auto_load_config 1174 with_gnutls 1175 with_polarssl 1176 with_mbedtls 1177 with_cyassl 1178 with_wolfssl 1179 with_mesalink 1180 with_nss 1181 with_ca_bundle 1182 with_ca_path 1183 with_ca_fallback 1184 with_libpsl 1185 with_libmetalink 1186 with_libssh2 1187 with_libssh 1188 with_librtmp 1189 enable_versioned_symbols 1190 with_winidn 1191 with_libidn2 1192 with_nghttp2 1193 with_zsh_functions_dir 1194 with_fish_functions_dir 1195 enable_threaded_resolver 1196 enable_pthreads 1197 enable_verbose 1198 enable_sspi 1199 enable_crypto_auth 1200 enable_ntlm_wb 1201 enable_tls_srp 1202 enable_unix_sockets 1203 enable_cookies 1204 enable_alt_svc 1205 ' 1206 ac_precious_vars='build_alias 1207 host_alias 1208 target_alias 1209 CC 1210 CFLAGS 1211 LDFLAGS 1212 LIBS 1213 CPPFLAGS 1214 CPP 1215 LT_SYS_LIBRARY_PATH' 1216 ac_subdirs_all='ares' 1217 1218 # Initialize some variables set by options. 1219 ac_init_help= 1220 ac_init_version=false 1221 ac_unrecognized_opts= 1222 ac_unrecognized_sep= 1223 # The variables have the same names as the options, with 1224 # dashes changed to underlines. 1225 cache_file=/dev/null 1226 exec_prefix=NONE 1227 no_create= 1228 no_recursion= 1229 prefix=NONE 1230 program_prefix=NONE 1231 program_suffix=NONE 1232 program_transform_name=s,x,x, 1233 silent= 1234 site= 1235 srcdir= 1236 verbose= 1237 x_includes=NONE 1238 x_libraries=NONE 1239 1240 # Installation directory options. 1241 # These are left unexpanded so users can "make install exec_prefix=/foo" 1242 # and all the variables that are supposed to be based on exec_prefix 1243 # by default will actually change. 1244 # Use braces instead of parens because sh, perl, etc. also accept them. 1245 # (The list follows the same order as the GNU Coding Standards.) 1246 bindir='${exec_prefix}/bin' 1247 sbindir='${exec_prefix}/sbin' 1248 libexecdir='${exec_prefix}/libexec' 1249 datarootdir='${prefix}/share' 1250 datadir='${datarootdir}' 1251 sysconfdir='${prefix}/etc' 1252 sharedstatedir='${prefix}/com' 1253 localstatedir='${prefix}/var' 1254 runstatedir='${localstatedir}/run' 1255 includedir='${prefix}/include' 1256 oldincludedir='/usr/include' 1257 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1258 infodir='${datarootdir}/info' 1259 htmldir='${docdir}' 1260 dvidir='${docdir}' 1261 pdfdir='${docdir}' 1262 psdir='${docdir}' 1263 libdir='${exec_prefix}/lib' 1264 localedir='${datarootdir}/locale' 1265 mandir='${datarootdir}/man' 1266 1267 ac_prev= 1268 ac_dashdash= 1269 for ac_option 1270 do 1271 # If the previous option needs an argument, assign it. 1272 if test -n "$ac_prev"; then 1273 eval $ac_prev=\$ac_option 1274 ac_prev= 1275 continue 1276 fi 1277 1278 case $ac_option in 1279 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1280 *=) ac_optarg= ;; 1281 *) ac_optarg=yes ;; 1282 esac 1283 1284 # Accept the important Cygnus configure options, so we can diagnose typos. 1285 1286 case $ac_dashdash$ac_option in 1287 --) 1288 ac_dashdash=yes ;; 1289 1290 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1291 ac_prev=bindir ;; 1292 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1293 bindir=$ac_optarg ;; 1294 1295 -build | --build | --buil | --bui | --bu) 1296 ac_prev=build_alias ;; 1297 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1298 build_alias=$ac_optarg ;; 1299 1300 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1301 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1302 ac_prev=cache_file ;; 1303 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1304 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1305 cache_file=$ac_optarg ;; 1306 1307 --config-cache | -C) 1308 cache_file=config.cache ;; 1309 1310 -datadir | --datadir | --datadi | --datad) 1311 ac_prev=datadir ;; 1312 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1313 datadir=$ac_optarg ;; 1314 1315 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1316 | --dataroo | --dataro | --datar) 1317 ac_prev=datarootdir ;; 1318 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1319 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1320 datarootdir=$ac_optarg ;; 1321 1322 -disable-* | --disable-*) 1323 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1324 # Reject names that are not valid shell variable names. 1325 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1326 as_fn_error $? "invalid feature name: $ac_useropt" 1327 ac_useropt_orig=$ac_useropt 1328 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1329 case $ac_user_opts in 1330 *" 1331 "enable_$ac_useropt" 1332 "*) ;; 1333 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1334 ac_unrecognized_sep=', ';; 1335 esac 1336 eval enable_$ac_useropt=no ;; 1337 1338 -docdir | --docdir | --docdi | --doc | --do) 1339 ac_prev=docdir ;; 1340 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1341 docdir=$ac_optarg ;; 1342 1343 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1344 ac_prev=dvidir ;; 1345 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1346 dvidir=$ac_optarg ;; 1347 1348 -enable-* | --enable-*) 1349 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1350 # Reject names that are not valid shell variable names. 1351 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1352 as_fn_error $? "invalid feature name: $ac_useropt" 1353 ac_useropt_orig=$ac_useropt 1354 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1355 case $ac_user_opts in 1356 *" 1357 "enable_$ac_useropt" 1358 "*) ;; 1359 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1360 ac_unrecognized_sep=', ';; 1361 esac 1362 eval enable_$ac_useropt=\$ac_optarg ;; 1363 1364 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1365 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1366 | --exec | --exe | --ex) 1367 ac_prev=exec_prefix ;; 1368 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1369 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1370 | --exec=* | --exe=* | --ex=*) 1371 exec_prefix=$ac_optarg ;; 1372 1373 -gas | --gas | --ga | --g) 1374 # Obsolete; use --with-gas. 1375 with_gas=yes ;; 1376 1377 -help | --help | --hel | --he | -h) 1378 ac_init_help=long ;; 1379 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1380 ac_init_help=recursive ;; 1381 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1382 ac_init_help=short ;; 1383 1384 -host | --host | --hos | --ho) 1385 ac_prev=host_alias ;; 1386 -host=* | --host=* | --hos=* | --ho=*) 1387 host_alias=$ac_optarg ;; 1388 1389 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1390 ac_prev=htmldir ;; 1391 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1392 | --ht=*) 1393 htmldir=$ac_optarg ;; 1394 1395 -includedir | --includedir | --includedi | --included | --include \ 1396 | --includ | --inclu | --incl | --inc) 1397 ac_prev=includedir ;; 1398 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1399 | --includ=* | --inclu=* | --incl=* | --inc=*) 1400 includedir=$ac_optarg ;; 1401 1402 -infodir | --infodir | --infodi | --infod | --info | --inf) 1403 ac_prev=infodir ;; 1404 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1405 infodir=$ac_optarg ;; 1406 1407 -libdir | --libdir | --libdi | --libd) 1408 ac_prev=libdir ;; 1409 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1410 libdir=$ac_optarg ;; 1411 1412 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1413 | --libexe | --libex | --libe) 1414 ac_prev=libexecdir ;; 1415 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1416 | --libexe=* | --libex=* | --libe=*) 1417 libexecdir=$ac_optarg ;; 1418 1419 -localedir | --localedir | --localedi | --localed | --locale) 1420 ac_prev=localedir ;; 1421 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1422 localedir=$ac_optarg ;; 1423 1424 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1425 | --localstate | --localstat | --localsta | --localst | --locals) 1426 ac_prev=localstatedir ;; 1427 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1428 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1429 localstatedir=$ac_optarg ;; 1430 1431 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1432 ac_prev=mandir ;; 1433 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1434 mandir=$ac_optarg ;; 1435 1436 -nfp | --nfp | --nf) 1437 # Obsolete; use --without-fp. 1438 with_fp=no ;; 1439 1440 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1441 | --no-cr | --no-c | -n) 1442 no_create=yes ;; 1443 1444 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1445 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1446 no_recursion=yes ;; 1447 1448 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1449 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1450 | --oldin | --oldi | --old | --ol | --o) 1451 ac_prev=oldincludedir ;; 1452 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1453 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1454 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1455 oldincludedir=$ac_optarg ;; 1456 1457 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1458 ac_prev=prefix ;; 1459 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1460 prefix=$ac_optarg ;; 1461 1462 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1463 | --program-pre | --program-pr | --program-p) 1464 ac_prev=program_prefix ;; 1465 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1466 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1467 program_prefix=$ac_optarg ;; 1468 1469 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1470 | --program-suf | --program-su | --program-s) 1471 ac_prev=program_suffix ;; 1472 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1473 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1474 program_suffix=$ac_optarg ;; 1475 1476 -program-transform-name | --program-transform-name \ 1477 | --program-transform-nam | --program-transform-na \ 1478 | --program-transform-n | --program-transform- \ 1479 | --program-transform | --program-transfor \ 1480 | --program-transfo | --program-transf \ 1481 | --program-trans | --program-tran \ 1482 | --progr-tra | --program-tr | --program-t) 1483 ac_prev=program_transform_name ;; 1484 -program-transform-name=* | --program-transform-name=* \ 1485 | --program-transform-nam=* | --program-transform-na=* \ 1486 | --program-transform-n=* | --program-transform-=* \ 1487 | --program-transform=* | --program-transfor=* \ 1488 | --program-transfo=* | --program-transf=* \ 1489 | --program-trans=* | --program-tran=* \ 1490 | --progr-tra=* | --program-tr=* | --program-t=*) 1491 program_transform_name=$ac_optarg ;; 1492 1493 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1494 ac_prev=pdfdir ;; 1495 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1496 pdfdir=$ac_optarg ;; 1497 1498 -psdir | --psdir | --psdi | --psd | --ps) 1499 ac_prev=psdir ;; 1500 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1501 psdir=$ac_optarg ;; 1502 1503 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1504 | -silent | --silent | --silen | --sile | --sil) 1505 silent=yes ;; 1506 1507 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1508 | --runstate | --runstat | --runsta | --runst | --runs \ 1509 | --run | --ru | --r) 1510 ac_prev=runstatedir ;; 1511 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1512 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1513 | --run=* | --ru=* | --r=*) 1514 runstatedir=$ac_optarg ;; 1515 1516 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1517 ac_prev=sbindir ;; 1518 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1519 | --sbi=* | --sb=*) 1520 sbindir=$ac_optarg ;; 1521 1522 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1523 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1524 | --sharedst | --shareds | --shared | --share | --shar \ 1525 | --sha | --sh) 1526 ac_prev=sharedstatedir ;; 1527 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1528 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1529 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1530 | --sha=* | --sh=*) 1531 sharedstatedir=$ac_optarg ;; 1532 1533 -site | --site | --sit) 1534 ac_prev=site ;; 1535 -site=* | --site=* | --sit=*) 1536 site=$ac_optarg ;; 1537 1538 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1539 ac_prev=srcdir ;; 1540 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1541 srcdir=$ac_optarg ;; 1542 1543 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1544 | --syscon | --sysco | --sysc | --sys | --sy) 1545 ac_prev=sysconfdir ;; 1546 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1547 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1548 sysconfdir=$ac_optarg ;; 1549 1550 -target | --target | --targe | --targ | --tar | --ta | --t) 1551 ac_prev=target_alias ;; 1552 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1553 target_alias=$ac_optarg ;; 1554 1555 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1556 verbose=yes ;; 1557 1558 -version | --version | --versio | --versi | --vers | -V) 1559 ac_init_version=: ;; 1560 1561 -with-* | --with-*) 1562 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1563 # Reject names that are not valid shell variable names. 1564 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1565 as_fn_error $? "invalid package name: $ac_useropt" 1566 ac_useropt_orig=$ac_useropt 1567 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1568 case $ac_user_opts in 1569 *" 1570 "with_$ac_useropt" 1571 "*) ;; 1572 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1573 ac_unrecognized_sep=', ';; 1574 esac 1575 eval with_$ac_useropt=\$ac_optarg ;; 1576 1577 -without-* | --without-*) 1578 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1579 # Reject names that are not valid shell variable names. 1580 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1581 as_fn_error $? "invalid package name: $ac_useropt" 1582 ac_useropt_orig=$ac_useropt 1583 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1584 case $ac_user_opts in 1585 *" 1586 "with_$ac_useropt" 1587 "*) ;; 1588 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1589 ac_unrecognized_sep=', ';; 1590 esac 1591 eval with_$ac_useropt=no ;; 1592 1593 --x) 1594 # Obsolete; use --with-x. 1595 with_x=yes ;; 1596 1597 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1598 | --x-incl | --x-inc | --x-in | --x-i) 1599 ac_prev=x_includes ;; 1600 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1601 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1602 x_includes=$ac_optarg ;; 1603 1604 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1605 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1606 ac_prev=x_libraries ;; 1607 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1608 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1609 x_libraries=$ac_optarg ;; 1610 1611 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1612 Try \`$0 --help' for more information" 1613 ;; 1614 1615 *=*) 1616 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1617 # Reject names that are not valid shell variable names. 1618 case $ac_envvar in #( 1619 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1620 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1621 esac 1622 eval $ac_envvar=\$ac_optarg 1623 export $ac_envvar ;; 1624 1625 *) 1626 # FIXME: should be removed in autoconf 3.0. 1627 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1628 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1629 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1630 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1631 ;; 1632 1633 esac 1634 done 1635 1636 if test -n "$ac_prev"; then 1637 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1638 as_fn_error $? "missing argument to $ac_option" 1639 fi 1640 1641 if test -n "$ac_unrecognized_opts"; then 1642 case $enable_option_checking in 1643 no) ;; 1644 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1645 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1646 esac 1647 fi 1648 1649 # Check all directory arguments for consistency. 1650 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1651 datadir sysconfdir sharedstatedir localstatedir includedir \ 1652 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1653 libdir localedir mandir runstatedir 1654 do 1655 eval ac_val=\$$ac_var 1656 # Remove trailing slashes. 1657 case $ac_val in 1658 */ ) 1659 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1660 eval $ac_var=\$ac_val;; 1661 esac 1662 # Be sure to have absolute directory names. 1663 case $ac_val in 1664 [\\/$]* | ?:[\\/]* ) continue;; 1665 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1666 esac 1667 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1668 done 1669 1670 # There might be people who depend on the old broken behavior: `$host' 1671 # used to hold the argument of --host etc. 1672 # FIXME: To remove some day. 1673 build=$build_alias 1674 host=$host_alias 1675 target=$target_alias 1676 1677 # FIXME: To remove some day. 1678 if test "x$host_alias" != x; then 1679 if test "x$build_alias" = x; then 1680 cross_compiling=maybe 1681 elif test "x$build_alias" != "x$host_alias"; then 1682 cross_compiling=yes 1683 fi 1684 fi 1685 1686 ac_tool_prefix= 1687 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1688 1689 test "$silent" = yes && exec 6>/dev/null 1690 1691 1692 ac_pwd=`pwd` && test -n "$ac_pwd" && 1693 ac_ls_di=`ls -di .` && 1694 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1695 as_fn_error $? "working directory cannot be determined" 1696 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1697 as_fn_error $? "pwd does not report name of working directory" 1698 1699 1700 # Find the source files, if location was not specified. 1701 if test -z "$srcdir"; then 1702 ac_srcdir_defaulted=yes 1703 # Try the directory containing this script, then the parent directory. 1704 ac_confdir=`$as_dirname -- "$as_myself" || 1705 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1706 X"$as_myself" : 'X\(//\)[^/]' \| \ 1707 X"$as_myself" : 'X\(//\)$' \| \ 1708 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1709 $as_echo X"$as_myself" | 1710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1711 s//\1/ 1712 q 1713 } 1714 /^X\(\/\/\)[^/].*/{ 1715 s//\1/ 1716 q 1717 } 1718 /^X\(\/\/\)$/{ 1719 s//\1/ 1720 q 1721 } 1722 /^X\(\/\).*/{ 1723 s//\1/ 1724 q 1725 } 1726 s/.*/./; q'` 1727 srcdir=$ac_confdir 1728 if test ! -r "$srcdir/$ac_unique_file"; then 1729 srcdir=.. 1730 fi 1731 else 1732 ac_srcdir_defaulted=no 1733 fi 1734 if test ! -r "$srcdir/$ac_unique_file"; then 1735 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1736 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1737 fi 1738 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1739 ac_abs_confdir=`( 1740 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1741 pwd)` 1742 # When building in place, set srcdir=. 1743 if test "$ac_abs_confdir" = "$ac_pwd"; then 1744 srcdir=. 1745 fi 1746 # Remove unnecessary trailing slashes from srcdir. 1747 # Double slashes in file names in object file debugging info 1748 # mess up M-x gdb in Emacs. 1749 case $srcdir in 1750 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1751 esac 1752 for ac_var in $ac_precious_vars; do 1753 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1754 eval ac_env_${ac_var}_value=\$${ac_var} 1755 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1756 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1757 done 1758 1759 # 1760 # Report the --help message. 1761 # 1762 if test "$ac_init_help" = "long"; then 1763 # Omit some internal or obsolete options to make the list less imposing. 1764 # This message is too long to be a string in the A/UX 3.1 sh. 1765 cat <<_ACEOF 1766 \`configure' configures curl - to adapt to many kinds of systems. 1767 1768 Usage: $0 [OPTION]... [VAR=VALUE]... 1769 1770 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1771 VAR=VALUE. See below for descriptions of some of the useful variables. 1772 1773 Defaults for the options are specified in brackets. 1774 1775 Configuration: 1776 -h, --help display this help and exit 1777 --help=short display options specific to this package 1778 --help=recursive display the short help of all the included packages 1779 -V, --version display version information and exit 1780 -q, --quiet, --silent do not print \`checking ...' messages 1781 --cache-file=FILE cache test results in FILE [disabled] 1782 -C, --config-cache alias for \`--cache-file=config.cache' 1783 -n, --no-create do not create output files 1784 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1785 1786 Installation directories: 1787 --prefix=PREFIX install architecture-independent files in PREFIX 1788 [$ac_default_prefix] 1789 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1790 [PREFIX] 1791 1792 By default, \`make install' will install all the files in 1793 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1794 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1795 for instance \`--prefix=\$HOME'. 1796 1797 For better control, use the options below. 1798 1799 Fine tuning of the installation directories: 1800 --bindir=DIR user executables [EPREFIX/bin] 1801 --sbindir=DIR system admin executables [EPREFIX/sbin] 1802 --libexecdir=DIR program executables [EPREFIX/libexec] 1803 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1804 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1805 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1806 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1807 --libdir=DIR object code libraries [EPREFIX/lib] 1808 --includedir=DIR C header files [PREFIX/include] 1809 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1810 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1811 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1812 --infodir=DIR info documentation [DATAROOTDIR/info] 1813 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1814 --mandir=DIR man documentation [DATAROOTDIR/man] 1815 --docdir=DIR documentation root [DATAROOTDIR/doc/curl] 1816 --htmldir=DIR html documentation [DOCDIR] 1817 --dvidir=DIR dvi documentation [DOCDIR] 1818 --pdfdir=DIR pdf documentation [DOCDIR] 1819 --psdir=DIR ps documentation [DOCDIR] 1820 _ACEOF 1821 1822 cat <<\_ACEOF 1823 1824 Program names: 1825 --program-prefix=PREFIX prepend PREFIX to installed program names 1826 --program-suffix=SUFFIX append SUFFIX to installed program names 1827 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1828 1829 System types: 1830 --build=BUILD configure for building on BUILD [guessed] 1831 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1832 _ACEOF 1833 fi 1834 1835 if test -n "$ac_init_help"; then 1836 case $ac_init_help in 1837 short | recursive ) echo "Configuration of curl -:";; 1838 esac 1839 cat <<\_ACEOF 1840 1841 Optional Features: 1842 --disable-option-checking ignore unrecognized --enable/--with options 1843 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1844 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1845 --enable-maintainer-mode 1846 enable make rules and dependencies not useful (and 1847 sometimes confusing) to the casual installer 1848 --enable-silent-rules less verbose build output (undo: "make V=1") 1849 --disable-silent-rules verbose build output (undo: "make V=0") 1850 --enable-debug Enable debug build options 1851 --disable-debug Disable debug build options 1852 --enable-optimize Enable compiler optimizations 1853 --disable-optimize Disable compiler optimizations 1854 --enable-warnings Enable strict compiler warnings 1855 --disable-warnings Disable strict compiler warnings 1856 --enable-werror Enable compiler warnings as errors 1857 --disable-werror Disable compiler warnings as errors 1858 --enable-curldebug Enable curl debug memory tracking 1859 --disable-curldebug Disable curl debug memory tracking 1860 --enable-symbol-hiding Enable hiding of library internal symbols 1861 --disable-symbol-hiding Disable hiding of library internal symbols 1862 --enable-hidden-symbols To be deprecated, use --enable-symbol-hiding 1863 --disable-hidden-symbols 1864 To be deprecated, use --disable-symbol-hiding 1865 --enable-ares[=PATH] Enable c-ares for DNS lookups 1866 --disable-ares Disable c-ares for DNS lookups 1867 --disable-rt disable dependency on -lrt 1868 --enable-code-coverage Provide code coverage 1869 --enable-dependency-tracking 1870 do not reject slow dependency extractors 1871 --disable-dependency-tracking 1872 speeds up one-time build 1873 --disable-largefile omit support for large files 1874 --enable-shared[=PKGS] build shared libraries [default=yes] 1875 --enable-static[=PKGS] build static libraries [default=yes] 1876 --enable-fast-install[=PKGS] 1877 optimize for fast installation [default=yes] 1878 --disable-libtool-lock avoid locking (might break parallel builds) 1879 --enable-http Enable HTTP support 1880 --disable-http Disable HTTP support 1881 --enable-ftp Enable FTP support 1882 --disable-ftp Disable FTP support 1883 --enable-file Enable FILE support 1884 --disable-file Disable FILE support 1885 --enable-ldap Enable LDAP support 1886 --disable-ldap Disable LDAP support 1887 --enable-ldaps Enable LDAPS support 1888 --disable-ldaps Disable LDAPS support 1889 --enable-rtsp Enable RTSP support 1890 --disable-rtsp Disable RTSP support 1891 --enable-proxy Enable proxy support 1892 --disable-proxy Disable proxy support 1893 --enable-dict Enable DICT support 1894 --disable-dict Disable DICT support 1895 --enable-telnet Enable TELNET support 1896 --disable-telnet Disable TELNET support 1897 --enable-tftp Enable TFTP support 1898 --disable-tftp Disable TFTP support 1899 --enable-pop3 Enable POP3 support 1900 --disable-pop3 Disable POP3 support 1901 --enable-imap Enable IMAP support 1902 --disable-imap Disable IMAP support 1903 --enable-smb Enable SMB/CIFS support 1904 --disable-smb Disable SMB/CIFS support 1905 --enable-smtp Enable SMTP support 1906 --disable-smtp Disable SMTP support 1907 --enable-gopher Enable Gopher support 1908 --disable-gopher Disable Gopher support 1909 --enable-manual Enable built-in manual 1910 --disable-manual Disable built-in manual 1911 --enable-libcurl-option Enable --libcurl C code generation support 1912 --disable-libcurl-option 1913 Disable --libcurl C code generation support 1914 --enable-libgcc use libgcc when linking 1915 --enable-ipv6 Enable IPv6 (with IPv4) support 1916 --disable-ipv6 Disable IPv6 support 1917 --enable-openssl-auto-load-config 1918 Enable automatic loading of OpenSSL configuration 1919 --disable-openssl-auto-load-config 1920 Disable automatic loading of OpenSSL configuration 1921 --enable-versioned-symbols 1922 Enable versioned symbols in shared library 1923 --disable-versioned-symbols 1924 Disable versioned symbols in shared library 1925 --enable-threaded-resolver 1926 Enable threaded resolver 1927 --disable-threaded-resolver 1928 Disable threaded resolver 1929 --enable-pthreads Enable POSIX threads (default for threaded resolver) 1930 --disable-pthreads Disable POSIX threads 1931 --enable-verbose Enable verbose strings 1932 --disable-verbose Disable verbose strings 1933 --enable-sspi Enable SSPI 1934 --disable-sspi Disable SSPI 1935 --enable-crypto-auth Enable cryptographic authentication 1936 --disable-crypto-auth Disable cryptographic authentication 1937 --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth 1938 helper, where FILE is ntlm_auth's absolute filename 1939 (default: /usr/bin/ntlm_auth) 1940 --disable-ntlm-wb Disable NTLM delegation to winbind's ntlm_auth 1941 helper 1942 --enable-tls-srp Enable TLS-SRP authentication 1943 --disable-tls-srp Disable TLS-SRP authentication 1944 --enable-unix-sockets Enable Unix domain sockets 1945 --disable-unix-sockets Disable Unix domain sockets 1946 --enable-cookies Enable cookies support 1947 --disable-cookies Disable cookies support 1948 --enable-alt-svc Enable alt-svc support 1949 --disable-alt-svc Disable alt-svc support 1950 1951 Optional Packages: 1952 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1953 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1954 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1955 both] 1956 --with-aix-soname=aix|svr4|both 1957 shared library versioning (aka "SONAME") variant to 1958 provide on AIX, [default=aix]. 1959 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1960 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1961 compiler's sysroot if not specified). 1962 --with-zlib=PATH search for zlib in PATH 1963 --without-zlib disable use of zlib 1964 --with-brotli=PATH Where to look for brotli, PATH points to the BROTLI 1965 installation; when possible, set the PKG_CONFIG_PATH 1966 environment variable instead of using this option 1967 --without-brotli disable BROTLI 1968 --with-ldap-lib=libname Specify name of ldap lib file 1969 --with-lber-lib=libname Specify name of lber lib file 1970 --with-gssapi-includes=DIR 1971 Specify location of GSS-API headers 1972 --with-gssapi-libs=DIR Specify location of GSS-API libs 1973 --with-gssapi=DIR Where to look for GSS-API 1974 --with-default-ssl-backend=NAME 1975 Use NAME as default SSL backend 1976 --without-default-ssl-backend 1977 Use implicit default SSL backend 1978 --with-winssl enable Windows native SSL/TLS 1979 --without-winssl disable Windows native SSL/TLS 1980 --with-schannel enable Windows native SSL/TLS 1981 --without-schannel disable Windows native SSL/TLS 1982 --with-darwinssl enable Apple OS native SSL/TLS 1983 --without-darwinssl disable Apple OS native SSL/TLS 1984 --with-secure-transport enable Apple OS native SSL/TLS 1985 --without-secure-transport 1986 disable Apple OS native SSL/TLS 1987 --with-amissl enable Amiga native SSL/TLS (AmiSSL) 1988 --without-amissl disable Amiga native SSL/TLS (AmiSSL) 1989 --with-ssl=PATH Where to look for OpenSSL, PATH points to the SSL 1990 installation (default: /usr/local/ssl); when 1991 possible, set the PKG_CONFIG_PATH environment 1992 variable instead of using this option 1993 --without-ssl disable OpenSSL 1994 --with-egd-socket=FILE Entropy Gathering Daemon socket pathname 1995 --with-random=FILE read randomness from FILE (default=/dev/urandom) 1996 --with-gnutls=PATH where to look for GnuTLS, PATH points to the 1997 installation root 1998 --without-gnutls disable GnuTLS detection 1999 --with-polarssl=PATH where to look for PolarSSL, PATH points to the 2000 installation root 2001 --without-polarssl disable PolarSSL detection 2002 --with-mbedtls=PATH where to look for mbedTLS, PATH points to the 2003 installation root 2004 --without-mbedtls disable mbedTLS detection 2005 --with-cyassl=PATH where to look for CyaSSL, PATH points to the 2006 installation root (default: system lib default) 2007 --without-cyassl disable CyaSSL detection 2008 --with-wolfssl=PATH where to look for WolfSSL, PATH points to the 2009 installation root (default: system lib default) 2010 --without-wolfssl disable WolfSSL detection 2011 --with-mesalink=PATH where to look for MesaLink, PATH points to the 2012 installation root 2013 --without-mesalink disable MesaLink detection 2014 --with-nss=PATH where to look for NSS, PATH points to the 2015 installation root 2016 --without-nss disable NSS detection 2017 --with-ca-bundle=FILE Path to a file containing CA certificates (example: 2018 /etc/ca-bundle.crt) 2019 --without-ca-bundle Don't use a default CA bundle 2020 --with-ca-path=DIRECTORY 2021 Path to a directory containing CA certificates 2022 stored individually, with their filenames in a hash 2023 format. This option can be used with OpenSSL, GnuTLS 2024 and PolarSSL backends. Refer to OpenSSL c_rehash for 2025 details. (example: /etc/certificates) 2026 --without-ca-path Don't use a default CA path 2027 --with-ca-fallback Use the built in CA store of the SSL library 2028 --without-ca-fallback Don't use the built in CA store of the SSL library 2029 --without-libpsl disable support for libpsl cookie checking 2030 --with-libmetalink=PATH where to look for libmetalink, PATH points to the 2031 installation root 2032 --without-libmetalink disable libmetalink detection 2033 --with-libssh2=PATH Where to look for libssh2, PATH points to the 2034 LIBSSH2 installation; when possible, set the 2035 PKG_CONFIG_PATH environment variable instead of 2036 using this option 2037 --with-libssh2 enable LIBSSH2 2038 --with-libssh=PATH Where to look for libssh, PATH points to the LIBSSH 2039 installation; when possible, set the PKG_CONFIG_PATH 2040 environment variable instead of using this option 2041 --with-libssh enable LIBSSH 2042 --with-librtmp=PATH Where to look for librtmp, PATH points to the 2043 LIBRTMP installation; when possible, set the 2044 PKG_CONFIG_PATH environment variable instead of 2045 using this option 2046 --without-librtmp disable LIBRTMP 2047 --with-winidn=PATH enable Windows native IDN 2048 --without-winidn disable Windows native IDN 2049 --with-libidn2=PATH Enable libidn2 usage 2050 --without-libidn2 Disable libidn2 usage 2051 --with-nghttp2=PATH Enable nghttp2 usage 2052 --without-nghttp2 Disable nghttp2 usage 2053 --with-zsh-functions-dir=PATH 2054 Install zsh completions to PATH 2055 --without-zsh-functions-dir 2056 Do not install zsh completions 2057 --with-fish-functions-dir=PATH 2058 Install fish completions to PATH 2059 --without-fish-functions-dir 2060 Do not install fish completions 2061 2062 Some influential environment variables: 2063 CC C compiler command 2064 CFLAGS C compiler flags 2065 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2066 nonstandard directory <lib dir> 2067 LIBS libraries to pass to the linker, e.g. -l<library> 2068 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2069 you have headers in a nonstandard directory <include dir> 2070 CPP C preprocessor 2071 LT_SYS_LIBRARY_PATH 2072 User-defined run-time library search path. 2073 2074 Use these variables to override the choices made by `configure' or to help 2075 it to find libraries and programs with nonstandard names/locations. 2076 2077 Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>. 2078 _ACEOF 2079 ac_status=$? 2080 fi 2081 2082 if test "$ac_init_help" = "recursive"; then 2083 # If there are subdirs, report their specific --help. 2084 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2085 test -d "$ac_dir" || 2086 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2087 continue 2088 ac_builddir=. 2089 2090 case "$ac_dir" in 2091 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2092 *) 2093 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2094 # A ".." for each directory in $ac_dir_suffix. 2095 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2096 case $ac_top_builddir_sub in 2097 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2098 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2099 esac ;; 2100 esac 2101 ac_abs_top_builddir=$ac_pwd 2102 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2103 # for backward compatibility: 2104 ac_top_builddir=$ac_top_build_prefix 2105 2106 case $srcdir in 2107 .) # We are building in place. 2108 ac_srcdir=. 2109 ac_top_srcdir=$ac_top_builddir_sub 2110 ac_abs_top_srcdir=$ac_pwd ;; 2111 [\\/]* | ?:[\\/]* ) # Absolute name. 2112 ac_srcdir=$srcdir$ac_dir_suffix; 2113 ac_top_srcdir=$srcdir 2114 ac_abs_top_srcdir=$srcdir ;; 2115 *) # Relative name. 2116 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2117 ac_top_srcdir=$ac_top_build_prefix$srcdir 2118 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2119 esac 2120 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2121 2122 cd "$ac_dir" || { ac_status=$?; continue; } 2123 # Check for guested configure. 2124 if test -f "$ac_srcdir/configure.gnu"; then 2125 echo && 2126 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2127 elif test -f "$ac_srcdir/configure"; then 2128 echo && 2129 $SHELL "$ac_srcdir/configure" --help=recursive 2130 else 2131 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2132 fi || ac_status=$? 2133 cd "$ac_pwd" || { ac_status=$?; break; } 2134 done 2135 fi 2136 2137 test -n "$ac_init_help" && exit $ac_status 2138 if $ac_init_version; then 2139 cat <<\_ACEOF 2140 curl configure - 2141 generated by GNU Autoconf 2.69 2142 2143 Copyright (C) 2012 Free Software Foundation, Inc. 2144 This configure script is free software; the Free Software Foundation 2145 gives unlimited permission to copy, distribute and modify it. 2146 2147 Copyright (c) 1998 - 2019 Daniel Stenberg, <daniel (at] haxx.se> 2148 This configure script may be copied, distributed and modified under the 2149 terms of the curl license; see COPYING for more details 2150 _ACEOF 2151 exit 2152 fi 2153 2154 ## ------------------------ ## 2155 ## Autoconf initialization. ## 2156 ## ------------------------ ## 2157 2158 # ac_fn_c_try_compile LINENO 2159 # -------------------------- 2160 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2161 ac_fn_c_try_compile () 2162 { 2163 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2164 rm -f conftest.$ac_objext 2165 if { { ac_try="$ac_compile" 2166 case "(($ac_try" in 2167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2168 *) ac_try_echo=$ac_try;; 2169 esac 2170 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2171 $as_echo "$ac_try_echo"; } >&5 2172 (eval "$ac_compile") 2>conftest.err 2173 ac_status=$? 2174 if test -s conftest.err; then 2175 grep -v '^ *+' conftest.err >conftest.er1 2176 cat conftest.er1 >&5 2177 mv -f conftest.er1 conftest.err 2178 fi 2179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2180 test $ac_status = 0; } && { 2181 test -z "$ac_c_werror_flag" || 2182 test ! -s conftest.err 2183 } && test -s conftest.$ac_objext; then : 2184 ac_retval=0 2185 else 2186 $as_echo "$as_me: failed program was:" >&5 2187 sed 's/^/| /' conftest.$ac_ext >&5 2188 2189 ac_retval=1 2190 fi 2191 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2192 as_fn_set_status $ac_retval 2193 2194 } # ac_fn_c_try_compile 2195 2196 # ac_fn_c_try_cpp LINENO 2197 # ---------------------- 2198 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2199 ac_fn_c_try_cpp () 2200 { 2201 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2202 if { { ac_try="$ac_cpp conftest.$ac_ext" 2203 case "(($ac_try" in 2204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2205 *) ac_try_echo=$ac_try;; 2206 esac 2207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2208 $as_echo "$ac_try_echo"; } >&5 2209 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2210 ac_status=$? 2211 if test -s conftest.err; then 2212 grep -v '^ *+' conftest.err >conftest.er1 2213 cat conftest.er1 >&5 2214 mv -f conftest.er1 conftest.err 2215 fi 2216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2217 test $ac_status = 0; } > conftest.i && { 2218 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2219 test ! -s conftest.err 2220 }; then : 2221 ac_retval=0 2222 else 2223 $as_echo "$as_me: failed program was:" >&5 2224 sed 's/^/| /' conftest.$ac_ext >&5 2225 2226 ac_retval=1 2227 fi 2228 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2229 as_fn_set_status $ac_retval 2230 2231 } # ac_fn_c_try_cpp 2232 2233 # ac_fn_c_try_link LINENO 2234 # ----------------------- 2235 # Try to link conftest.$ac_ext, and return whether this succeeded. 2236 ac_fn_c_try_link () 2237 { 2238 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2239 rm -f conftest.$ac_objext conftest$ac_exeext 2240 if { { ac_try="$ac_link" 2241 case "(($ac_try" in 2242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2243 *) ac_try_echo=$ac_try;; 2244 esac 2245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2246 $as_echo "$ac_try_echo"; } >&5 2247 (eval "$ac_link") 2>conftest.err 2248 ac_status=$? 2249 if test -s conftest.err; then 2250 grep -v '^ *+' conftest.err >conftest.er1 2251 cat conftest.er1 >&5 2252 mv -f conftest.er1 conftest.err 2253 fi 2254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2255 test $ac_status = 0; } && { 2256 test -z "$ac_c_werror_flag" || 2257 test ! -s conftest.err 2258 } && test -s conftest$ac_exeext && { 2259 test "$cross_compiling" = yes || 2260 test -x conftest$ac_exeext 2261 }; then : 2262 ac_retval=0 2263 else 2264 $as_echo "$as_me: failed program was:" >&5 2265 sed 's/^/| /' conftest.$ac_ext >&5 2266 2267 ac_retval=1 2268 fi 2269 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2270 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2271 # interfere with the next link command; also delete a directory that is 2272 # left behind by Apple's compiler. We do this before executing the actions. 2273 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2274 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2275 as_fn_set_status $ac_retval 2276 2277 } # ac_fn_c_try_link 2278 2279 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2280 # ------------------------------------------------------- 2281 # Tests whether HEADER exists and can be compiled using the include files in 2282 # INCLUDES, setting the cache variable VAR accordingly. 2283 ac_fn_c_check_header_compile () 2284 { 2285 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2287 $as_echo_n "checking for $2... " >&6; } 2288 if eval \${$3+:} false; then : 2289 $as_echo_n "(cached) " >&6 2290 else 2291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2292 /* end confdefs.h. */ 2293 $4 2294 #include <$2> 2295 _ACEOF 2296 if ac_fn_c_try_compile "$LINENO"; then : 2297 eval "$3=yes" 2298 else 2299 eval "$3=no" 2300 fi 2301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2302 fi 2303 eval ac_res=\$$3 2304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2305 $as_echo "$ac_res" >&6; } 2306 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2307 2308 } # ac_fn_c_check_header_compile 2309 2310 # ac_fn_c_try_run LINENO 2311 # ---------------------- 2312 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2313 # that executables *can* be run. 2314 ac_fn_c_try_run () 2315 { 2316 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2317 if { { ac_try="$ac_link" 2318 case "(($ac_try" in 2319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2320 *) ac_try_echo=$ac_try;; 2321 esac 2322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2323 $as_echo "$ac_try_echo"; } >&5 2324 (eval "$ac_link") 2>&5 2325 ac_status=$? 2326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2327 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2328 { { case "(($ac_try" in 2329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2330 *) ac_try_echo=$ac_try;; 2331 esac 2332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2333 $as_echo "$ac_try_echo"; } >&5 2334 (eval "$ac_try") 2>&5 2335 ac_status=$? 2336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2337 test $ac_status = 0; }; }; then : 2338 ac_retval=0 2339 else 2340 $as_echo "$as_me: program exited with status $ac_status" >&5 2341 $as_echo "$as_me: failed program was:" >&5 2342 sed 's/^/| /' conftest.$ac_ext >&5 2343 2344 ac_retval=$ac_status 2345 fi 2346 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2347 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2348 as_fn_set_status $ac_retval 2349 2350 } # ac_fn_c_try_run 2351 2352 # ac_fn_c_check_func LINENO FUNC VAR 2353 # ---------------------------------- 2354 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2355 ac_fn_c_check_func () 2356 { 2357 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2359 $as_echo_n "checking for $2... " >&6; } 2360 if eval \${$3+:} false; then : 2361 $as_echo_n "(cached) " >&6 2362 else 2363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2364 /* end confdefs.h. */ 2365 2366 #define $2 innocuous_$2 2367 #ifdef __STDC__ 2368 # include <limits.h> 2369 #else 2370 # include <assert.h> 2371 #endif 2372 #undef $2 2373 #ifdef __cplusplus 2374 extern "C" 2375 #endif 2376 char $2 (); 2377 #if defined __stub_$2 || defined __stub___$2 2378 choke me 2379 #endif 2380 2381 int main (void) 2382 { 2383 return $2 (); 2384 ; 2385 return 0; 2386 } 2387 _ACEOF 2388 if ac_fn_c_try_link "$LINENO"; then : 2389 eval "$3=yes" 2390 else 2391 eval "$3=no" 2392 fi 2393 rm -f core conftest.err conftest.$ac_objext \ 2394 conftest$ac_exeext conftest.$ac_ext 2395 fi 2396 eval ac_res=\$$3 2397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2398 $as_echo "$ac_res" >&6; } 2399 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2400 2401 } # ac_fn_c_check_func 2402 2403 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2404 # ------------------------------------------------------- 2405 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2406 # the include files in INCLUDES and setting the cache variable VAR 2407 # accordingly. 2408 ac_fn_c_check_header_mongrel () 2409 { 2410 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2411 if eval \${$3+:} false; then : 2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2413 $as_echo_n "checking for $2... " >&6; } 2414 if eval \${$3+:} false; then : 2415 $as_echo_n "(cached) " >&6 2416 fi 2417 eval ac_res=\$$3 2418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2419 $as_echo "$ac_res" >&6; } 2420 else 2421 # Is the header compilable? 2422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2423 $as_echo_n "checking $2 usability... " >&6; } 2424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2425 /* end confdefs.h. */ 2426 $4 2427 #include <$2> 2428 _ACEOF 2429 if ac_fn_c_try_compile "$LINENO"; then : 2430 ac_header_compiler=yes 2431 else 2432 ac_header_compiler=no 2433 fi 2434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2436 $as_echo "$ac_header_compiler" >&6; } 2437 2438 # Is the header present? 2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2440 $as_echo_n "checking $2 presence... " >&6; } 2441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2442 /* end confdefs.h. */ 2443 #include <$2> 2444 _ACEOF 2445 if ac_fn_c_try_cpp "$LINENO"; then : 2446 ac_header_preproc=yes 2447 else 2448 ac_header_preproc=no 2449 fi 2450 rm -f conftest.err conftest.i conftest.$ac_ext 2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2452 $as_echo "$ac_header_preproc" >&6; } 2453 2454 # So? What about this header? 2455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2456 yes:no: ) 2457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2458 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2460 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2461 ;; 2462 no:yes:* ) 2463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2464 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2466 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2468 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2470 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2472 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2473 ( $as_echo "## ----------------------------------------------------------------------- ## 2474 ## Report this to a suitable curl mailing list: https://curl.haxx.se/mail/ ## 2475 ## ----------------------------------------------------------------------- ##" 2476 ) | sed "s/^/$as_me: WARNING: /" >&2 2477 ;; 2478 esac 2479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2480 $as_echo_n "checking for $2... " >&6; } 2481 if eval \${$3+:} false; then : 2482 $as_echo_n "(cached) " >&6 2483 else 2484 eval "$3=\$ac_header_compiler" 2485 fi 2486 eval ac_res=\$$3 2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2488 $as_echo "$ac_res" >&6; } 2489 fi 2490 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2491 2492 } # ac_fn_c_check_header_mongrel 2493 2494 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2495 # ------------------------------------------- 2496 # Tests whether TYPE exists after having included INCLUDES, setting cache 2497 # variable VAR accordingly. 2498 ac_fn_c_check_type () 2499 { 2500 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2502 $as_echo_n "checking for $2... " >&6; } 2503 if eval \${$3+:} false; then : 2504 $as_echo_n "(cached) " >&6 2505 else 2506 eval "$3=no" 2507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2508 /* end confdefs.h. */ 2509 $4 2510 int main (void) 2511 { 2512 if (sizeof ($2)) 2513 return 0; 2514 ; 2515 return 0; 2516 } 2517 _ACEOF 2518 if ac_fn_c_try_compile "$LINENO"; then : 2519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2520 /* end confdefs.h. */ 2521 $4 2522 int main (void) 2523 { 2524 if (sizeof (($2))) 2525 return 0; 2526 ; 2527 return 0; 2528 } 2529 _ACEOF 2530 if ac_fn_c_try_compile "$LINENO"; then : 2531 2532 else 2533 eval "$3=yes" 2534 fi 2535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2536 fi 2537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2538 fi 2539 eval ac_res=\$$3 2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2541 $as_echo "$ac_res" >&6; } 2542 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2543 2544 } # ac_fn_c_check_type 2545 2546 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2547 # --------------------------------------------- 2548 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2549 # accordingly. 2550 ac_fn_c_check_decl () 2551 { 2552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2553 as_decl_name=`echo $2|sed 's/ *(.*//'` 2554 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2556 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2557 if eval \${$3+:} false; then : 2558 $as_echo_n "(cached) " >&6 2559 else 2560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2561 /* end confdefs.h. */ 2562 $4 2563 int main (void) 2564 { 2565 #ifndef $as_decl_name 2566 #ifdef __cplusplus 2567 (void) $as_decl_use; 2568 #else 2569 (void) $as_decl_name; 2570 #endif 2571 #endif 2572 2573 ; 2574 return 0; 2575 } 2576 _ACEOF 2577 if ac_fn_c_try_compile "$LINENO"; then : 2578 eval "$3=yes" 2579 else 2580 eval "$3=no" 2581 fi 2582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2583 fi 2584 eval ac_res=\$$3 2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2586 $as_echo "$ac_res" >&6; } 2587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2588 2589 } # ac_fn_c_check_decl 2590 2591 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2592 # ---------------------------------------------------- 2593 # Tries to find if the field MEMBER exists in type AGGR, after including 2594 # INCLUDES, setting cache variable VAR accordingly. 2595 ac_fn_c_check_member () 2596 { 2597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2599 $as_echo_n "checking for $2.$3... " >&6; } 2600 if eval \${$4+:} false; then : 2601 $as_echo_n "(cached) " >&6 2602 else 2603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2604 /* end confdefs.h. */ 2605 $5 2606 int main (void) 2607 { 2608 static $2 ac_aggr; 2609 if (ac_aggr.$3) 2610 return 0; 2611 ; 2612 return 0; 2613 } 2614 _ACEOF 2615 if ac_fn_c_try_compile "$LINENO"; then : 2616 eval "$4=yes" 2617 else 2618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2619 /* end confdefs.h. */ 2620 $5 2621 int main (void) 2622 { 2623 static $2 ac_aggr; 2624 if (sizeof ac_aggr.$3) 2625 return 0; 2626 ; 2627 return 0; 2628 } 2629 _ACEOF 2630 if ac_fn_c_try_compile "$LINENO"; then : 2631 eval "$4=yes" 2632 else 2633 eval "$4=no" 2634 fi 2635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2636 fi 2637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2638 fi 2639 eval ac_res=\$$4 2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2641 $as_echo "$ac_res" >&6; } 2642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2643 2644 } # ac_fn_c_check_member 2645 cat >config.log <<_ACEOF 2646 This file contains any messages produced by compilers while 2647 running configure, to aid debugging if configure makes a mistake. 2648 2649 It was created by curl $as_me -, which was 2650 generated by GNU Autoconf 2.69. Invocation command line was 2651 2652 $ $0 $@ 2653 2654 _ACEOF 2655 exec 5>>config.log 2656 { 2657 cat <<_ASUNAME 2658 ## --------- ## 2659 ## Platform. ## 2660 ## --------- ## 2661 2662 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2663 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2664 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2665 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2666 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2667 2668 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2669 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2670 2671 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2672 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2673 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2674 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2675 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2676 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2677 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2678 2679 _ASUNAME 2680 2681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2682 for as_dir in $PATH 2683 do 2684 IFS=$as_save_IFS 2685 test -z "$as_dir" && as_dir=. 2686 $as_echo "PATH: $as_dir" 2687 done 2688 IFS=$as_save_IFS 2689 2690 } >&5 2691 2692 cat >&5 <<_ACEOF 2693 2694 2695 ## ----------- ## 2696 ## Core tests. ## 2697 ## ----------- ## 2698 2699 _ACEOF 2700 2701 2702 # Keep a trace of the command line. 2703 # Strip out --no-create and --no-recursion so they do not pile up. 2704 # Strip out --silent because we don't want to record it for future runs. 2705 # Also quote any args containing shell meta-characters. 2706 # Make two passes to allow for proper duplicate-argument suppression. 2707 ac_configure_args= 2708 ac_configure_args0= 2709 ac_configure_args1= 2710 ac_must_keep_next=false 2711 for ac_pass in 1 2 2712 do 2713 for ac_arg 2714 do 2715 case $ac_arg in 2716 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2717 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2718 | -silent | --silent | --silen | --sile | --sil) 2719 continue ;; 2720 *\'*) 2721 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2722 esac 2723 case $ac_pass in 2724 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2725 2) 2726 as_fn_append ac_configure_args1 " '$ac_arg'" 2727 if test $ac_must_keep_next = true; then 2728 ac_must_keep_next=false # Got value, back to normal. 2729 else 2730 case $ac_arg in 2731 *=* | --config-cache | -C | -disable-* | --disable-* \ 2732 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2733 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2734 | -with-* | --with-* | -without-* | --without-* | --x) 2735 case "$ac_configure_args0 " in 2736 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2737 esac 2738 ;; 2739 -* ) ac_must_keep_next=true ;; 2740 esac 2741 fi 2742 as_fn_append ac_configure_args " '$ac_arg'" 2743 ;; 2744 esac 2745 done 2746 done 2747 { ac_configure_args0=; unset ac_configure_args0;} 2748 { ac_configure_args1=; unset ac_configure_args1;} 2749 2750 # When interrupted or exit'd, cleanup temporary files, and complete 2751 # config.log. We remove comments because anyway the quotes in there 2752 # would cause problems or look ugly. 2753 # WARNING: Use '\'' to represent an apostrophe within the trap. 2754 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2755 trap 'exit_status=$? 2756 # Save into config.log some information that might help in debugging. 2757 { 2758 echo 2759 2760 $as_echo "## ---------------- ## 2761 ## Cache variables. ## 2762 ## ---------------- ##" 2763 echo 2764 # The following way of writing the cache mishandles newlines in values, 2765 ( 2766 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2767 eval ac_val=\$$ac_var 2768 case $ac_val in #( 2769 *${as_nl}*) 2770 case $ac_var in #( 2771 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2772 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2773 esac 2774 case $ac_var in #( 2775 _ | IFS | as_nl) ;; #( 2776 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2777 *) { eval $ac_var=; unset $ac_var;} ;; 2778 esac ;; 2779 esac 2780 done 2781 (set) 2>&1 | 2782 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2783 *${as_nl}ac_space=\ *) 2784 sed -n \ 2785 "s/'\''/'\''\\\\'\'''\''/g; 2786 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2787 ;; #( 2788 *) 2789 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2790 ;; 2791 esac | 2792 sort 2793 ) 2794 echo 2795 2796 $as_echo "## ----------------- ## 2797 ## Output variables. ## 2798 ## ----------------- ##" 2799 echo 2800 for ac_var in $ac_subst_vars 2801 do 2802 eval ac_val=\$$ac_var 2803 case $ac_val in 2804 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2805 esac 2806 $as_echo "$ac_var='\''$ac_val'\''" 2807 done | sort 2808 echo 2809 2810 if test -n "$ac_subst_files"; then 2811 $as_echo "## ------------------- ## 2812 ## File substitutions. ## 2813 ## ------------------- ##" 2814 echo 2815 for ac_var in $ac_subst_files 2816 do 2817 eval ac_val=\$$ac_var 2818 case $ac_val in 2819 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2820 esac 2821 $as_echo "$ac_var='\''$ac_val'\''" 2822 done | sort 2823 echo 2824 fi 2825 2826 if test -s confdefs.h; then 2827 $as_echo "## ----------- ## 2828 ## confdefs.h. ## 2829 ## ----------- ##" 2830 echo 2831 cat confdefs.h 2832 echo 2833 fi 2834 test "$ac_signal" != 0 && 2835 $as_echo "$as_me: caught signal $ac_signal" 2836 $as_echo "$as_me: exit $exit_status" 2837 } >&5 2838 rm -f core *.core core.conftest.* && 2839 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2840 exit $exit_status 2841 ' 0 2842 for ac_signal in 1 2 13 15; do 2843 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2844 done 2845 ac_signal=0 2846 2847 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2848 rm -f -r conftest* confdefs.h 2849 2850 $as_echo "/* confdefs.h */" > confdefs.h 2851 2852 # Predefined preprocessor variables. 2853 2854 cat >>confdefs.h <<_ACEOF 2855 #define PACKAGE_NAME "$PACKAGE_NAME" 2856 _ACEOF 2857 2858 cat >>confdefs.h <<_ACEOF 2859 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2860 _ACEOF 2861 2862 cat >>confdefs.h <<_ACEOF 2863 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2864 _ACEOF 2865 2866 cat >>confdefs.h <<_ACEOF 2867 #define PACKAGE_STRING "$PACKAGE_STRING" 2868 _ACEOF 2869 2870 cat >>confdefs.h <<_ACEOF 2871 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2872 _ACEOF 2873 2874 cat >>confdefs.h <<_ACEOF 2875 #define PACKAGE_URL "$PACKAGE_URL" 2876 _ACEOF 2877 2878 2879 # Let the site file select an alternate cache file if it wants to. 2880 # Prefer an explicitly selected file to automatically selected ones. 2881 ac_site_file1=NONE 2882 ac_site_file2=NONE 2883 if test -n "$CONFIG_SITE"; then 2884 # We do not want a PATH search for config.site. 2885 case $CONFIG_SITE in #(( 2886 -*) ac_site_file1=./$CONFIG_SITE;; 2887 */*) ac_site_file1=$CONFIG_SITE;; 2888 *) ac_site_file1=./$CONFIG_SITE;; 2889 esac 2890 elif test "x$prefix" != xNONE; then 2891 ac_site_file1=$prefix/share/config.site 2892 ac_site_file2=$prefix/etc/config.site 2893 else 2894 ac_site_file1=$ac_default_prefix/share/config.site 2895 ac_site_file2=$ac_default_prefix/etc/config.site 2896 fi 2897 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2898 do 2899 test "x$ac_site_file" = xNONE && continue 2900 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2901 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2902 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2903 sed 's/^/| /' "$ac_site_file" >&5 2904 . "$ac_site_file" \ 2905 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2907 as_fn_error $? "failed to load site script $ac_site_file 2908 See \`config.log' for more details" "$LINENO" 5; } 2909 fi 2910 done 2911 2912 if test -r "$cache_file"; then 2913 # Some versions of bash will fail to source /dev/null (special files 2914 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2915 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2916 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2917 $as_echo "$as_me: loading cache $cache_file" >&6;} 2918 case $cache_file in 2919 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2920 *) . "./$cache_file";; 2921 esac 2922 fi 2923 else 2924 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2925 $as_echo "$as_me: creating cache $cache_file" >&6;} 2926 >$cache_file 2927 fi 2928 2929 # Check that the precious variables saved in the cache have kept the same 2930 # value. 2931 ac_cache_corrupted=false 2932 for ac_var in $ac_precious_vars; do 2933 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2934 eval ac_new_set=\$ac_env_${ac_var}_set 2935 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2936 eval ac_new_val=\$ac_env_${ac_var}_value 2937 case $ac_old_set,$ac_new_set in 2938 set,) 2939 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2940 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2941 ac_cache_corrupted=: ;; 2942 ,set) 2943 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2944 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2945 ac_cache_corrupted=: ;; 2946 ,);; 2947 *) 2948 if test "x$ac_old_val" != "x$ac_new_val"; then 2949 # differences in whitespace do not lead to failure. 2950 ac_old_val_w=`echo x $ac_old_val` 2951 ac_new_val_w=`echo x $ac_new_val` 2952 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2953 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2954 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2955 ac_cache_corrupted=: 2956 else 2957 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2958 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2959 eval $ac_var=\$ac_old_val 2960 fi 2961 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2962 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2963 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2964 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2965 fi;; 2966 esac 2967 # Pass precious variables to config.status. 2968 if test "$ac_new_set" = set; then 2969 case $ac_new_val in 2970 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2971 *) ac_arg=$ac_var=$ac_new_val ;; 2972 esac 2973 case " $ac_configure_args " in 2974 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2975 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2976 esac 2977 fi 2978 done 2979 if $ac_cache_corrupted; then 2980 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2982 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2983 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2984 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2985 fi 2986 ## -------------------- ## 2987 ## Main body of script. ## 2988 ## -------------------- ## 2989 2990 ac_ext=c 2991 ac_cpp='$CPP $CPPFLAGS' 2992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2994 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2995 2996 2997 2998 2999 3000 3001 3002 # using curl-override.m4 3003 3004 3005 3006 3007 3008 ac_config_headers="$ac_config_headers lib/curl_config.h" 3009 3010 3011 3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3013 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3014 # Check whether --enable-maintainer-mode was given. 3015 if test "${enable_maintainer_mode+set}" = set; then : 3016 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3017 else 3018 USE_MAINTAINER_MODE=no 3019 fi 3020 3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3022 $as_echo "$USE_MAINTAINER_MODE" >&6; } 3023 if test $USE_MAINTAINER_MODE = yes; then 3024 MAINTAINER_MODE_TRUE= 3025 MAINTAINER_MODE_FALSE='#' 3026 else 3027 MAINTAINER_MODE_TRUE='#' 3028 MAINTAINER_MODE_FALSE= 3029 fi 3030 3031 MAINT=$MAINTAINER_MODE_TRUE 3032 3033 3034 # Check whether --enable-silent-rules was given. 3035 if test "${enable_silent_rules+set}" = set; then : 3036 enableval=$enable_silent_rules; 3037 fi 3038 3039 case $enable_silent_rules in # ((( 3040 yes) AM_DEFAULT_VERBOSITY=0;; 3041 no) AM_DEFAULT_VERBOSITY=1;; 3042 *) AM_DEFAULT_VERBOSITY=0;; 3043 esac 3044 am_make=${MAKE-make} 3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3046 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3047 if ${am_cv_make_support_nested_variables+:} false; then : 3048 $as_echo_n "(cached) " >&6 3049 else 3050 if $as_echo 'TRUE=$(BAR$(V)) 3051 BAR0=false 3052 BAR1=true 3053 V=1 3054 am__doit: 3055 @$(TRUE) 3056 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3057 am_cv_make_support_nested_variables=yes 3058 else 3059 am_cv_make_support_nested_variables=no 3060 fi 3061 fi 3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3063 $as_echo "$am_cv_make_support_nested_variables" >&6; } 3064 if test $am_cv_make_support_nested_variables = yes; then 3065 AM_V='$(V)' 3066 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3067 else 3068 AM_V=$AM_DEFAULT_VERBOSITY 3069 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3070 fi 3071 AM_BACKSLASH='\' 3072 3073 3074 3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5 3076 $as_echo_n "checking whether to enable debug build options... " >&6; } 3077 OPT_DEBUG_BUILD="default" 3078 # Check whether --enable-debug was given. 3079 if test "${enable_debug+set}" = set; then : 3080 enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval 3081 fi 3082 3083 case "$OPT_DEBUG_BUILD" in 3084 no) 3085 want_debug="no" 3086 ;; 3087 default) 3088 want_debug="no" 3089 ;; 3090 *) 3091 want_debug="yes" 3092 3093 $as_echo "#define DEBUGBUILD 1" >>confdefs.h 3094 3095 ;; 3096 esac 3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5 3098 $as_echo "$want_debug" >&6; } 3099 3100 3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5 3102 $as_echo_n "checking whether to enable compiler optimizer... " >&6; } 3103 OPT_COMPILER_OPTIMIZE="default" 3104 # Check whether --enable-optimize was given. 3105 if test "${enable_optimize+set}" = set; then : 3106 enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval 3107 fi 3108 3109 case "$OPT_COMPILER_OPTIMIZE" in 3110 no) 3111 want_optimize="no" 3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3113 $as_echo "no" >&6; } 3114 ;; 3115 default) 3116 if test "$want_debug" = "yes"; then 3117 want_optimize="assume_no" 3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5 3119 $as_echo "(assumed) no" >&6; } 3120 else 3121 want_optimize="assume_yes" 3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5 3123 $as_echo "(assumed) yes" >&6; } 3124 fi 3125 ;; 3126 *) 3127 want_optimize="yes" 3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3129 $as_echo "yes" >&6; } 3130 ;; 3131 esac 3132 3133 3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5 3135 $as_echo_n "checking whether to enable strict compiler warnings... " >&6; } 3136 OPT_COMPILER_WARNINGS="default" 3137 # Check whether --enable-warnings was given. 3138 if test "${enable_warnings+set}" = set; then : 3139 enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval 3140 fi 3141 3142 case "$OPT_COMPILER_WARNINGS" in 3143 no) 3144 want_warnings="no" 3145 ;; 3146 default) 3147 want_warnings="$want_debug" 3148 ;; 3149 *) 3150 want_warnings="yes" 3151 ;; 3152 esac 3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5 3154 $as_echo "$want_warnings" >&6; } 3155 3156 3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5 3158 $as_echo_n "checking whether to enable compiler warnings as errors... " >&6; } 3159 OPT_COMPILER_WERROR="default" 3160 # Check whether --enable-werror was given. 3161 if test "${enable_werror+set}" = set; then : 3162 enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval 3163 fi 3164 3165 case "$OPT_COMPILER_WERROR" in 3166 no) 3167 want_werror="no" 3168 ;; 3169 default) 3170 want_werror="no" 3171 ;; 3172 *) 3173 want_werror="yes" 3174 ;; 3175 esac 3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5 3177 $as_echo "$want_werror" >&6; } 3178 3179 3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5 3181 $as_echo_n "checking whether to enable curl debug memory tracking... " >&6; } 3182 OPT_CURLDEBUG_BUILD="default" 3183 # Check whether --enable-curldebug was given. 3184 if test "${enable_curldebug+set}" = set; then : 3185 enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval 3186 fi 3187 3188 case "$OPT_CURLDEBUG_BUILD" in 3189 no) 3190 want_curldebug="no" 3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3192 $as_echo "no" >&6; } 3193 ;; 3194 default) 3195 if test "$want_debug" = "yes"; then 3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5 3197 $as_echo "(assumed) yes" >&6; } 3198 3199 $as_echo "#define CURLDEBUG 1" >>confdefs.h 3200 3201 else 3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3203 $as_echo "no" >&6; } 3204 fi 3205 want_curldebug_assumed="yes" 3206 want_curldebug="$want_debug" 3207 ;; 3208 *) 3209 want_curldebug="yes" 3210 3211 $as_echo "#define CURLDEBUG 1" >>confdefs.h 3212 3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3214 $as_echo "yes" >&6; } 3215 ;; 3216 esac 3217 3218 3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5 3220 $as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; } 3221 OPT_SYMBOL_HIDING="default" 3222 # Check whether --enable-symbol-hiding was given. 3223 if test "${enable_symbol_hiding+set}" = set; then : 3224 enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval 3225 fi 3226 3227 # Check whether --enable-hidden-symbols was given. 3228 if test "${enable_hidden_symbols+set}" = set; then : 3229 enableval=$enable_hidden_symbols; OPT_SYMBOL_HIDING=$enableval 3230 fi 3231 3232 case "$OPT_SYMBOL_HIDING" in 3233 no) 3234 want_symbol_hiding="no" 3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3236 $as_echo "no" >&6; } 3237 ;; 3238 default) 3239 want_symbol_hiding="yes" 3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3241 $as_echo "yes" >&6; } 3242 ;; 3243 *) 3244 want_symbol_hiding="yes" 3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3246 $as_echo "yes" >&6; } 3247 ;; 3248 esac 3249 3250 3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5 3252 $as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; } 3253 OPT_ARES="default" 3254 # Check whether --enable-ares was given. 3255 if test "${enable_ares+set}" = set; then : 3256 enableval=$enable_ares; OPT_ARES=$enableval 3257 fi 3258 3259 case "$OPT_ARES" in 3260 no) 3261 want_ares="no" 3262 ;; 3263 default) 3264 want_ares="no" 3265 ;; 3266 *) 3267 want_ares="yes" 3268 if test -n "$enableval" && test "$enableval" != "yes"; then 3269 want_ares_path="$enableval" 3270 fi 3271 ;; 3272 esac 3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5 3274 $as_echo "$want_ares" >&6; } 3275 3276 3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5 3278 $as_echo_n "checking whether to disable dependency on -lrt... " >&6; } 3279 OPT_RT="default" 3280 # Check whether --enable-rt was given. 3281 if test "${enable_rt+set}" = set; then : 3282 enableval=$enable_rt; OPT_RT=$enableval 3283 fi 3284 3285 case "$OPT_RT" in 3286 no) 3287 dontwant_rt="yes" 3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3289 $as_echo "yes" >&6; } 3290 ;; 3291 default) 3292 dontwant_rt="no" 3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5 3294 $as_echo "(assumed no)" >&6; } 3295 ;; 3296 *) 3297 dontwant_rt="no" 3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3299 $as_echo "no" >&6; } 3300 ;; 3301 esac 3302 3303 3304 # 3305 # Check that 'XC_CONFIGURE_PREAMBLE' has already run. 3306 # 3307 3308 if test -z "$xc_configure_preamble_result"; then 3309 as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5 3310 fi 3311 3312 # 3313 # Check that 'PATH_SEPARATOR' has already been set. 3314 # 3315 3316 if test -z "$xc_PATH_SEPARATOR"; then 3317 as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5 3318 fi 3319 if test -z "$PATH_SEPARATOR"; then 3320 as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5 3321 fi 3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5 3323 $as_echo_n "checking for path separator... " >&6; } 3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5 3325 $as_echo "$PATH_SEPARATOR" >&6; } 3326 if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then 3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5 3328 $as_echo_n "checking for initial path separator... " >&6; } 3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5 3330 $as_echo "$xc_PATH_SEPARATOR" >&6; } 3331 as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5 3332 fi 3333 3334 3335 # 3336 # save the configure arguments 3337 # 3338 CONFIGURE_OPTIONS="\"$ac_configure_args\"" 3339 3340 3341 CURL_CFLAG_EXTRAS="" 3342 if test X"$want_werror" = Xyes; then 3343 CURL_CFLAG_EXTRAS="-Werror" 3344 if test "$compiler_id" = "GNU_C"; then 3345 if test "$compiler_num" -ge "500"; then 3346 CURL_CFLAG_EXTRAS="$CURL_CFLAG_EXTRAS -pedantic-errors" 3347 fi 3348 fi 3349 fi 3350 3351 3352 if test -z "$SED"; then 3353 # Extract the first word of "sed", so it can be a program name with args. 3354 set dummy sed; ac_word=$2 3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3356 $as_echo_n "checking for $ac_word... " >&6; } 3357 if ${ac_cv_path_SED+:} false; then : 3358 $as_echo_n "(cached) " >&6 3359 else 3360 case $SED in 3361 [\\/]* | ?:[\\/]*) 3362 ac_cv_path_SED="$SED" # Let the user override the test with a path. 3363 ;; 3364 *) 3365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3366 as_dummy="$PATH:/usr/bin:/usr/local/bin" 3367 for as_dir in $as_dummy 3368 do 3369 IFS=$as_save_IFS 3370 test -z "$as_dir" && as_dir=. 3371 for ac_exec_ext in '' $ac_executable_extensions; do 3372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3373 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 3374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3375 break 2 3376 fi 3377 done 3378 done 3379 IFS=$as_save_IFS 3380 3381 test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found" 3382 ;; 3383 esac 3384 fi 3385 SED=$ac_cv_path_SED 3386 if test -n "$SED"; then 3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 3388 $as_echo "$SED" >&6; } 3389 else 3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3391 $as_echo "no" >&6; } 3392 fi 3393 3394 3395 if test -z "$SED" || test "$SED" = "not_found"; then 3396 as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5 3397 fi 3398 fi 3399 3400 3401 if test -z "$GREP"; then 3402 # Extract the first word of "grep", so it can be a program name with args. 3403 set dummy grep; ac_word=$2 3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3405 $as_echo_n "checking for $ac_word... " >&6; } 3406 if ${ac_cv_path_GREP+:} false; then : 3407 $as_echo_n "(cached) " >&6 3408 else 3409 case $GREP in 3410 [\\/]* | ?:[\\/]*) 3411 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 3412 ;; 3413 *) 3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3415 as_dummy="$PATH:/usr/bin:/usr/local/bin" 3416 for as_dir in $as_dummy 3417 do 3418 IFS=$as_save_IFS 3419 test -z "$as_dir" && as_dir=. 3420 for ac_exec_ext in '' $ac_executable_extensions; do 3421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3422 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 3423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3424 break 2 3425 fi 3426 done 3427 done 3428 IFS=$as_save_IFS 3429 3430 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found" 3431 ;; 3432 esac 3433 fi 3434 GREP=$ac_cv_path_GREP 3435 if test -n "$GREP"; then 3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 3437 $as_echo "$GREP" >&6; } 3438 else 3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3440 $as_echo "no" >&6; } 3441 fi 3442 3443 3444 if test -z "$GREP" || test "$GREP" = "not_found"; then 3445 as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5 3446 fi 3447 fi 3448 3449 3450 if test -z "$EGREP"; then 3451 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then 3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3453 $as_echo_n "checking for egrep... " >&6; } 3454 EGREP="$GREP -E" 3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 3456 $as_echo "$EGREP" >&6; } 3457 else 3458 # Extract the first word of "egrep", so it can be a program name with args. 3459 set dummy egrep; ac_word=$2 3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3461 $as_echo_n "checking for $ac_word... " >&6; } 3462 if ${ac_cv_path_EGREP+:} false; then : 3463 $as_echo_n "(cached) " >&6 3464 else 3465 case $EGREP in 3466 [\\/]* | ?:[\\/]*) 3467 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 3468 ;; 3469 *) 3470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3471 as_dummy="$PATH:/usr/bin:/usr/local/bin" 3472 for as_dir in $as_dummy 3473 do 3474 IFS=$as_save_IFS 3475 test -z "$as_dir" && as_dir=. 3476 for ac_exec_ext in '' $ac_executable_extensions; do 3477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3478 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext" 3479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3480 break 2 3481 fi 3482 done 3483 done 3484 IFS=$as_save_IFS 3485 3486 test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found" 3487 ;; 3488 esac 3489 fi 3490 EGREP=$ac_cv_path_EGREP 3491 if test -n "$EGREP"; then 3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 3493 $as_echo "$EGREP" >&6; } 3494 else 3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3496 $as_echo "no" >&6; } 3497 fi 3498 3499 3500 fi 3501 fi 3502 if test -z "$EGREP" || test "$EGREP" = "not_found"; then 3503 as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5 3504 fi 3505 3506 3507 if test -z "$AR"; then 3508 if test -n "$ac_tool_prefix"; then 3509 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 3510 set dummy ${ac_tool_prefix}ar; ac_word=$2 3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3512 $as_echo_n "checking for $ac_word... " >&6; } 3513 if ${ac_cv_path_AR+:} false; then : 3514 $as_echo_n "(cached) " >&6 3515 else 3516 case $AR in 3517 [\\/]* | ?:[\\/]*) 3518 ac_cv_path_AR="$AR" # Let the user override the test with a path. 3519 ;; 3520 *) 3521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3522 as_dummy="$PATH:/usr/bin:/usr/local/bin" 3523 for as_dir in $as_dummy 3524 do 3525 IFS=$as_save_IFS 3526 test -z "$as_dir" && as_dir=. 3527 for ac_exec_ext in '' $ac_executable_extensions; do 3528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3529 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 3530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3531 break 2 3532 fi 3533 done 3534 done 3535 IFS=$as_save_IFS 3536 3537 ;; 3538 esac 3539 fi 3540 AR=$ac_cv_path_AR 3541 if test -n "$AR"; then 3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 3543 $as_echo "$AR" >&6; } 3544 else 3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3546 $as_echo "no" >&6; } 3547 fi 3548 3549 3550 fi 3551 if test -z "$ac_cv_path_AR"; then 3552 ac_pt_AR=$AR 3553 # Extract the first word of "ar", so it can be a program name with args. 3554 set dummy ar; ac_word=$2 3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3556 $as_echo_n "checking for $ac_word... " >&6; } 3557 if ${ac_cv_path_ac_pt_AR+:} false; then : 3558 $as_echo_n "(cached) " >&6 3559 else 3560 case $ac_pt_AR in 3561 [\\/]* | ?:[\\/]*) 3562 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path. 3563 ;; 3564 *) 3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3566 as_dummy="$PATH:/usr/bin:/usr/local/bin" 3567 for as_dir in $as_dummy 3568 do 3569 IFS=$as_save_IFS 3570 test -z "$as_dir" && as_dir=. 3571 for ac_exec_ext in '' $ac_executable_extensions; do 3572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3573 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext" 3574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3575 break 2 3576 fi 3577 done 3578 done 3579 IFS=$as_save_IFS 3580 3581 ;; 3582 esac 3583 fi 3584 ac_pt_AR=$ac_cv_path_ac_pt_AR 3585 if test -n "$ac_pt_AR"; then 3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5 3587 $as_echo "$ac_pt_AR" >&6; } 3588 else 3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3590 $as_echo "no" >&6; } 3591 fi 3592 3593 if test "x$ac_pt_AR" = x; then 3594 AR="not_found" 3595 else 3596 case $cross_compiling:$ac_tool_warned in 3597 yes:) 3598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3600 ac_tool_warned=yes ;; 3601 esac 3602 AR=$ac_pt_AR 3603 fi 3604 else 3605 AR="$ac_cv_path_AR" 3606 fi 3607 3608 if test -z "$AR" || test "$AR" = "not_found"; then 3609 as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5 3610 fi 3611 fi 3612 3613 3614 3615 3616 CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' ${srcdir}/include/curl/curlver.h` 3617 3618 xc_prog_cc_prev_IFS=$IFS 3619 xc_prog_cc_prev_LIBS=$LIBS 3620 xc_prog_cc_prev_CFLAGS=$CFLAGS 3621 xc_prog_cc_prev_LDFLAGS=$LDFLAGS 3622 xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS 3623 3624 3625 3626 xc_bad_var_libs=no 3627 for xc_word in $LIBS; do 3628 case "$xc_word" in 3629 -l* | --library=*) 3630 : 3631 ;; 3632 *) 3633 xc_bad_var_libs=yes 3634 ;; 3635 esac 3636 done 3637 if test $xc_bad_var_libs = yes; then 3638 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5 3639 $as_echo "$as_me: using LIBS: $LIBS" >&6;} 3640 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5 3641 $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;} 3642 fi 3643 3644 3645 xc_bad_var_ldflags=no 3646 for xc_word in $LDFLAGS; do 3647 case "$xc_word" in 3648 -D*) 3649 xc_bad_var_ldflags=yes 3650 ;; 3651 -U*) 3652 xc_bad_var_ldflags=yes 3653 ;; 3654 -I*) 3655 xc_bad_var_ldflags=yes 3656 ;; 3657 -l* | --library=*) 3658 xc_bad_var_ldflags=yes 3659 ;; 3660 esac 3661 done 3662 if test $xc_bad_var_ldflags = yes; then 3663 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5 3664 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;} 3665 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not" 3666 for xc_word in $LDFLAGS; do 3667 case "$xc_word" in 3668 -D*) 3669 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5 3670 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;} 3671 ;; 3672 -U*) 3673 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5 3674 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;} 3675 ;; 3676 -I*) 3677 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5 3678 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;} 3679 ;; 3680 -l* | --library=*) 3681 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5 3682 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;} 3683 ;; 3684 esac 3685 done 3686 fi 3687 3688 3689 xc_bad_var_cppflags=no 3690 for xc_word in $CPPFLAGS; do 3691 case "$xc_word" in 3692 -rpath*) 3693 xc_bad_var_cppflags=yes 3694 ;; 3695 -L* | --library-path=*) 3696 xc_bad_var_cppflags=yes 3697 ;; 3698 -l* | --library=*) 3699 xc_bad_var_cppflags=yes 3700 ;; 3701 esac 3702 done 3703 if test $xc_bad_var_cppflags = yes; then 3704 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5 3705 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;} 3706 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not" 3707 for xc_word in $CPPFLAGS; do 3708 case "$xc_word" in 3709 -rpath*) 3710 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5 3711 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;} 3712 ;; 3713 -L* | --library-path=*) 3714 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5 3715 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;} 3716 ;; 3717 -l* | --library=*) 3718 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5 3719 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;} 3720 ;; 3721 esac 3722 done 3723 fi 3724 3725 3726 xc_bad_var_cflags=no 3727 for xc_word in $CFLAGS; do 3728 case "$xc_word" in 3729 -D*) 3730 xc_bad_var_cflags=yes 3731 ;; 3732 -U*) 3733 xc_bad_var_cflags=yes 3734 ;; 3735 -I*) 3736 xc_bad_var_cflags=yes 3737 ;; 3738 -rpath*) 3739 xc_bad_var_cflags=yes 3740 ;; 3741 -L* | --library-path=*) 3742 xc_bad_var_cflags=yes 3743 ;; 3744 -l* | --library=*) 3745 xc_bad_var_cflags=yes 3746 ;; 3747 esac 3748 done 3749 if test $xc_bad_var_cflags = yes; then 3750 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5 3751 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;} 3752 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not" 3753 for xc_word in $CFLAGS; do 3754 case "$xc_word" in 3755 -D*) 3756 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5 3757 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;} 3758 ;; 3759 -U*) 3760 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5 3761 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;} 3762 ;; 3763 -I*) 3764 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5 3765 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;} 3766 ;; 3767 -rpath*) 3768 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5 3769 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;} 3770 ;; 3771 -L* | --library-path=*) 3772 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5 3773 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;} 3774 ;; 3775 -l* | --library=*) 3776 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5 3777 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;} 3778 ;; 3779 esac 3780 done 3781 fi 3782 3783 if test $xc_bad_var_libs = yes || 3784 test $xc_bad_var_cflags = yes || 3785 test $xc_bad_var_ldflags = yes || 3786 test $xc_bad_var_cppflags = yes; then 3787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5 3788 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;} 3789 fi 3790 3791 ac_aux_dir= 3792 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3793 if test -f "$ac_dir/install-sh"; then 3794 ac_aux_dir=$ac_dir 3795 ac_install_sh="$ac_aux_dir/install-sh -c" 3796 break 3797 elif test -f "$ac_dir/install.sh"; then 3798 ac_aux_dir=$ac_dir 3799 ac_install_sh="$ac_aux_dir/install.sh -c" 3800 break 3801 elif test -f "$ac_dir/shtool"; then 3802 ac_aux_dir=$ac_dir 3803 ac_install_sh="$ac_aux_dir/shtool install -c" 3804 break 3805 fi 3806 done 3807 if test -z "$ac_aux_dir"; then 3808 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3809 fi 3810 3811 # These three variables are undocumented and unsupported, 3812 # and are intended to be withdrawn in a future Autoconf release. 3813 # They can cause serious problems if a builder's source tree is in a directory 3814 # whose full name contains unusual characters. 3815 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3816 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3817 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3818 3819 3820 # Find a good install program. We prefer a C program (faster), 3821 # so one script is as good as another. But avoid the broken or 3822 # incompatible versions: 3823 # SysV /etc/install, /usr/sbin/install 3824 # SunOS /usr/etc/install 3825 # IRIX /sbin/install 3826 # AIX /bin/install 3827 # AmigaOS /C/install, which installs bootblocks on floppy discs 3828 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3829 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3830 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3831 # OS/2's system install, which has a completely different semantic 3832 # ./install, which can be erroneously created by make from ./install.sh. 3833 # Reject install programs that cannot install multiple files. 3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3835 $as_echo_n "checking for a BSD-compatible install... " >&6; } 3836 if test -z "$INSTALL"; then 3837 if ${ac_cv_path_install+:} false; then : 3838 $as_echo_n "(cached) " >&6 3839 else 3840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3841 for as_dir in $PATH 3842 do 3843 IFS=$as_save_IFS 3844 test -z "$as_dir" && as_dir=. 3845 # Account for people who put trailing slashes in PATH elements. 3846 case $as_dir/ in #(( 3847 ./ | .// | /[cC]/* | \ 3848 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3849 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3850 /usr/ucb/* ) ;; 3851 *) 3852 # OSF1 and SCO ODT 3.0 have their own names for install. 3853 # Don't use installbsd from OSF since it installs stuff as root 3854 # by default. 3855 for ac_prog in ginstall scoinst install; do 3856 for ac_exec_ext in '' $ac_executable_extensions; do 3857 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3858 if test $ac_prog = install && 3859 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3860 # AIX install. It has an incompatible calling convention. 3861 : 3862 elif test $ac_prog = install && 3863 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3864 # program-specific install script used by HP pwplus--don't use. 3865 : 3866 else 3867 rm -rf conftest.one conftest.two conftest.dir 3868 echo one > conftest.one 3869 echo two > conftest.two 3870 mkdir conftest.dir 3871 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3872 test -s conftest.one && test -s conftest.two && 3873 test -s conftest.dir/conftest.one && 3874 test -s conftest.dir/conftest.two 3875 then 3876 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3877 break 3 3878 fi 3879 fi 3880 fi 3881 done 3882 done 3883 ;; 3884 esac 3885 3886 done 3887 IFS=$as_save_IFS 3888 3889 rm -rf conftest.one conftest.two conftest.dir 3890 3891 fi 3892 if test "${ac_cv_path_install+set}" = set; then 3893 INSTALL=$ac_cv_path_install 3894 else 3895 # As a last resort, use the slow shell script. Don't cache a 3896 # value for INSTALL within a source directory, because that will 3897 # break other packages using the cache if that directory is 3898 # removed, or if the value is a relative name. 3899 INSTALL=$ac_install_sh 3900 fi 3901 fi 3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3903 $as_echo "$INSTALL" >&6; } 3904 3905 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3906 # It thinks the first close brace ends the variable substitution. 3907 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3908 3909 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3910 3911 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3912 3913 # Expand $ac_aux_dir to an absolute path. 3914 am_aux_dir=`cd "$ac_aux_dir" && pwd` 3915 3916 ac_ext=c 3917 ac_cpp='$CPP $CPPFLAGS' 3918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3920 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3921 if test -n "$ac_tool_prefix"; then 3922 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3923 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3925 $as_echo_n "checking for $ac_word... " >&6; } 3926 if ${ac_cv_prog_CC+:} false; then : 3927 $as_echo_n "(cached) " >&6 3928 else 3929 if test -n "$CC"; then 3930 ac_cv_prog_CC="$CC" # Let the user override the test. 3931 else 3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3933 for as_dir in $PATH 3934 do 3935 IFS=$as_save_IFS 3936 test -z "$as_dir" && as_dir=. 3937 for ac_exec_ext in '' $ac_executable_extensions; do 3938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3939 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3941 break 2 3942 fi 3943 done 3944 done 3945 IFS=$as_save_IFS 3946 3947 fi 3948 fi 3949 CC=$ac_cv_prog_CC 3950 if test -n "$CC"; then 3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3952 $as_echo "$CC" >&6; } 3953 else 3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3955 $as_echo "no" >&6; } 3956 fi 3957 3958 3959 fi 3960 if test -z "$ac_cv_prog_CC"; then 3961 ac_ct_CC=$CC 3962 # Extract the first word of "gcc", so it can be a program name with args. 3963 set dummy gcc; ac_word=$2 3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3965 $as_echo_n "checking for $ac_word... " >&6; } 3966 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3967 $as_echo_n "(cached) " >&6 3968 else 3969 if test -n "$ac_ct_CC"; then 3970 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3971 else 3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3973 for as_dir in $PATH 3974 do 3975 IFS=$as_save_IFS 3976 test -z "$as_dir" && as_dir=. 3977 for ac_exec_ext in '' $ac_executable_extensions; do 3978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3979 ac_cv_prog_ac_ct_CC="gcc" 3980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3981 break 2 3982 fi 3983 done 3984 done 3985 IFS=$as_save_IFS 3986 3987 fi 3988 fi 3989 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3990 if test -n "$ac_ct_CC"; then 3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3992 $as_echo "$ac_ct_CC" >&6; } 3993 else 3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3995 $as_echo "no" >&6; } 3996 fi 3997 3998 if test "x$ac_ct_CC" = x; then 3999 CC="" 4000 else 4001 case $cross_compiling:$ac_tool_warned in 4002 yes:) 4003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4005 ac_tool_warned=yes ;; 4006 esac 4007 CC=$ac_ct_CC 4008 fi 4009 else 4010 CC="$ac_cv_prog_CC" 4011 fi 4012 4013 if test -z "$CC"; then 4014 if test -n "$ac_tool_prefix"; then 4015 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4016 set dummy ${ac_tool_prefix}cc; ac_word=$2 4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4018 $as_echo_n "checking for $ac_word... " >&6; } 4019 if ${ac_cv_prog_CC+:} false; then : 4020 $as_echo_n "(cached) " >&6 4021 else 4022 if test -n "$CC"; then 4023 ac_cv_prog_CC="$CC" # Let the user override the test. 4024 else 4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4026 for as_dir in $PATH 4027 do 4028 IFS=$as_save_IFS 4029 test -z "$as_dir" && as_dir=. 4030 for ac_exec_ext in '' $ac_executable_extensions; do 4031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4032 ac_cv_prog_CC="${ac_tool_prefix}cc" 4033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4034 break 2 4035 fi 4036 done 4037 done 4038 IFS=$as_save_IFS 4039 4040 fi 4041 fi 4042 CC=$ac_cv_prog_CC 4043 if test -n "$CC"; then 4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4045 $as_echo "$CC" >&6; } 4046 else 4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4048 $as_echo "no" >&6; } 4049 fi 4050 4051 4052 fi 4053 fi 4054 if test -z "$CC"; then 4055 # Extract the first word of "cc", so it can be a program name with args. 4056 set dummy cc; ac_word=$2 4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4058 $as_echo_n "checking for $ac_word... " >&6; } 4059 if ${ac_cv_prog_CC+:} false; then : 4060 $as_echo_n "(cached) " >&6 4061 else 4062 if test -n "$CC"; then 4063 ac_cv_prog_CC="$CC" # Let the user override the test. 4064 else 4065 ac_prog_rejected=no 4066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4067 for as_dir in $PATH 4068 do 4069 IFS=$as_save_IFS 4070 test -z "$as_dir" && as_dir=. 4071 for ac_exec_ext in '' $ac_executable_extensions; do 4072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4073 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4074 ac_prog_rejected=yes 4075 continue 4076 fi 4077 ac_cv_prog_CC="cc" 4078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4079 break 2 4080 fi 4081 done 4082 done 4083 IFS=$as_save_IFS 4084 4085 if test $ac_prog_rejected = yes; then 4086 # We found a bogon in the path, so make sure we never use it. 4087 set dummy $ac_cv_prog_CC 4088 shift 4089 if test $# != 0; then 4090 # We chose a different compiler from the bogus one. 4091 # However, it has the same basename, so the bogon will be chosen 4092 # first if we set CC to just the basename; use the full file name. 4093 shift 4094 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4095 fi 4096 fi 4097 fi 4098 fi 4099 CC=$ac_cv_prog_CC 4100 if test -n "$CC"; then 4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4102 $as_echo "$CC" >&6; } 4103 else 4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4105 $as_echo "no" >&6; } 4106 fi 4107 4108 4109 fi 4110 if test -z "$CC"; then 4111 if test -n "$ac_tool_prefix"; then 4112 for ac_prog in cl.exe 4113 do 4114 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4115 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4117 $as_echo_n "checking for $ac_word... " >&6; } 4118 if ${ac_cv_prog_CC+:} false; then : 4119 $as_echo_n "(cached) " >&6 4120 else 4121 if test -n "$CC"; then 4122 ac_cv_prog_CC="$CC" # Let the user override the test. 4123 else 4124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4125 for as_dir in $PATH 4126 do 4127 IFS=$as_save_IFS 4128 test -z "$as_dir" && as_dir=. 4129 for ac_exec_ext in '' $ac_executable_extensions; do 4130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4131 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4133 break 2 4134 fi 4135 done 4136 done 4137 IFS=$as_save_IFS 4138 4139 fi 4140 fi 4141 CC=$ac_cv_prog_CC 4142 if test -n "$CC"; then 4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4144 $as_echo "$CC" >&6; } 4145 else 4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4147 $as_echo "no" >&6; } 4148 fi 4149 4150 4151 test -n "$CC" && break 4152 done 4153 fi 4154 if test -z "$CC"; then 4155 ac_ct_CC=$CC 4156 for ac_prog in cl.exe 4157 do 4158 # Extract the first word of "$ac_prog", so it can be a program name with args. 4159 set dummy $ac_prog; ac_word=$2 4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4161 $as_echo_n "checking for $ac_word... " >&6; } 4162 if ${ac_cv_prog_ac_ct_CC+:} false; then : 4163 $as_echo_n "(cached) " >&6 4164 else 4165 if test -n "$ac_ct_CC"; then 4166 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4167 else 4168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4169 for as_dir in $PATH 4170 do 4171 IFS=$as_save_IFS 4172 test -z "$as_dir" && as_dir=. 4173 for ac_exec_ext in '' $ac_executable_extensions; do 4174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4175 ac_cv_prog_ac_ct_CC="$ac_prog" 4176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4177 break 2 4178 fi 4179 done 4180 done 4181 IFS=$as_save_IFS 4182 4183 fi 4184 fi 4185 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4186 if test -n "$ac_ct_CC"; then 4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4188 $as_echo "$ac_ct_CC" >&6; } 4189 else 4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4191 $as_echo "no" >&6; } 4192 fi 4193 4194 4195 test -n "$ac_ct_CC" && break 4196 done 4197 4198 if test "x$ac_ct_CC" = x; then 4199 CC="" 4200 else 4201 case $cross_compiling:$ac_tool_warned in 4202 yes:) 4203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4205 ac_tool_warned=yes ;; 4206 esac 4207 CC=$ac_ct_CC 4208 fi 4209 fi 4210 4211 fi 4212 4213 4214 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4216 as_fn_error $? "no acceptable C compiler found in \$PATH 4217 See \`config.log' for more details" "$LINENO" 5; } 4218 4219 # Provide some information about the compiler. 4220 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4221 set X $ac_compile 4222 ac_compiler=$2 4223 for ac_option in --version -v -V -qversion; do 4224 { { ac_try="$ac_compiler $ac_option >&5" 4225 case "(($ac_try" in 4226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4227 *) ac_try_echo=$ac_try;; 4228 esac 4229 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4230 $as_echo "$ac_try_echo"; } >&5 4231 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4232 ac_status=$? 4233 if test -s conftest.err; then 4234 sed '10a\ 4235 ... rest of stderr output deleted ... 4236 10q' conftest.err >conftest.er1 4237 cat conftest.er1 >&5 4238 fi 4239 rm -f conftest.er1 conftest.err 4240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4241 test $ac_status = 0; } 4242 done 4243 4244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4245 /* end confdefs.h. */ 4246 4247 int main (void) 4248 { 4249 4250 ; 4251 return 0; 4252 } 4253 _ACEOF 4254 ac_clean_files_save=$ac_clean_files 4255 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4256 # Try to create an executable without -o first, disregard a.out. 4257 # It will help us diagnose broken compilers, and finding out an intuition 4258 # of exeext. 4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4260 $as_echo_n "checking whether the C compiler works... " >&6; } 4261 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4262 4263 # The possible output files: 4264 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4265 4266 ac_rmfiles= 4267 for ac_file in $ac_files 4268 do 4269 case $ac_file in 4270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4271 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4272 esac 4273 done 4274 rm -f $ac_rmfiles 4275 4276 if { { ac_try="$ac_link_default" 4277 case "(($ac_try" in 4278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4279 *) ac_try_echo=$ac_try;; 4280 esac 4281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4282 $as_echo "$ac_try_echo"; } >&5 4283 (eval "$ac_link_default") 2>&5 4284 ac_status=$? 4285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4286 test $ac_status = 0; }; then : 4287 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4288 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4289 # in a Makefile. We should not override ac_cv_exeext if it was cached, 4290 # so that the user can short-circuit this test for compilers unknown to 4291 # Autoconf. 4292 for ac_file in $ac_files '' 4293 do 4294 test -f "$ac_file" || continue 4295 case $ac_file in 4296 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4297 ;; 4298 [ab].out ) 4299 # We found the default executable, but exeext='' is most 4300 # certainly right. 4301 break;; 4302 *.* ) 4303 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4304 then :; else 4305 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4306 fi 4307 # We set ac_cv_exeext here because the later test for it is not 4308 # safe: cross compilers may not add the suffix if given an `-o' 4309 # argument, so we may need to know it at that point already. 4310 # Even if this section looks crufty: it has the advantage of 4311 # actually working. 4312 break;; 4313 * ) 4314 break;; 4315 esac 4316 done 4317 test "$ac_cv_exeext" = no && ac_cv_exeext= 4318 4319 else 4320 ac_file='' 4321 fi 4322 if test -z "$ac_file"; then : 4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4324 $as_echo "no" >&6; } 4325 $as_echo "$as_me: failed program was:" >&5 4326 sed 's/^/| /' conftest.$ac_ext >&5 4327 4328 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4330 as_fn_error 77 "C compiler cannot create executables 4331 See \`config.log' for more details" "$LINENO" 5; } 4332 else 4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4334 $as_echo "yes" >&6; } 4335 fi 4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4337 $as_echo_n "checking for C compiler default output file name... " >&6; } 4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4339 $as_echo "$ac_file" >&6; } 4340 ac_exeext=$ac_cv_exeext 4341 4342 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4343 ac_clean_files=$ac_clean_files_save 4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4345 $as_echo_n "checking for suffix of executables... " >&6; } 4346 if { { ac_try="$ac_link" 4347 case "(($ac_try" in 4348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4349 *) ac_try_echo=$ac_try;; 4350 esac 4351 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4352 $as_echo "$ac_try_echo"; } >&5 4353 (eval "$ac_link") 2>&5 4354 ac_status=$? 4355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4356 test $ac_status = 0; }; then : 4357 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4358 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4359 # work properly (i.e., refer to `conftest.exe'), while it won't with 4360 # `rm'. 4361 for ac_file in conftest.exe conftest conftest.*; do 4362 test -f "$ac_file" || continue 4363 case $ac_file in 4364 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4365 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4366 break;; 4367 * ) break;; 4368 esac 4369 done 4370 else 4371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4373 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4374 See \`config.log' for more details" "$LINENO" 5; } 4375 fi 4376 rm -f conftest conftest$ac_cv_exeext 4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4378 $as_echo "$ac_cv_exeext" >&6; } 4379 4380 rm -f conftest.$ac_ext 4381 EXEEXT=$ac_cv_exeext 4382 ac_exeext=$EXEEXT 4383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4384 /* end confdefs.h. */ 4385 #include <stdio.h> 4386 int main (void) 4387 { 4388 FILE *f = fopen ("conftest.out", "w"); 4389 return ferror (f) || fclose (f) != 0; 4390 4391 ; 4392 return 0; 4393 } 4394 _ACEOF 4395 ac_clean_files="$ac_clean_files conftest.out" 4396 # Check that the compiler produces executables we can run. If not, either 4397 # the compiler is broken, or we cross compile. 4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4399 $as_echo_n "checking whether we are cross compiling... " >&6; } 4400 if test "$cross_compiling" != yes; then 4401 { { ac_try="$ac_link" 4402 case "(($ac_try" in 4403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4404 *) ac_try_echo=$ac_try;; 4405 esac 4406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4407 $as_echo "$ac_try_echo"; } >&5 4408 (eval "$ac_link") 2>&5 4409 ac_status=$? 4410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4411 test $ac_status = 0; } 4412 if { ac_try='./conftest$ac_cv_exeext' 4413 { { case "(($ac_try" in 4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4415 *) ac_try_echo=$ac_try;; 4416 esac 4417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4418 $as_echo "$ac_try_echo"; } >&5 4419 (eval "$ac_try") 2>&5 4420 ac_status=$? 4421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4422 test $ac_status = 0; }; }; then 4423 cross_compiling=no 4424 else 4425 if test "$cross_compiling" = maybe; then 4426 cross_compiling=yes 4427 else 4428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4430 as_fn_error $? "cannot run C compiled programs. 4431 If you meant to cross compile, use \`--host'. 4432 See \`config.log' for more details" "$LINENO" 5; } 4433 fi 4434 fi 4435 fi 4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4437 $as_echo "$cross_compiling" >&6; } 4438 4439 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4440 ac_clean_files=$ac_clean_files_save 4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4442 $as_echo_n "checking for suffix of object files... " >&6; } 4443 if ${ac_cv_objext+:} false; then : 4444 $as_echo_n "(cached) " >&6 4445 else 4446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4447 /* end confdefs.h. */ 4448 4449 int main (void) 4450 { 4451 4452 ; 4453 return 0; 4454 } 4455 _ACEOF 4456 rm -f conftest.o conftest.obj 4457 if { { ac_try="$ac_compile" 4458 case "(($ac_try" in 4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4460 *) ac_try_echo=$ac_try;; 4461 esac 4462 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4463 $as_echo "$ac_try_echo"; } >&5 4464 (eval "$ac_compile") 2>&5 4465 ac_status=$? 4466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4467 test $ac_status = 0; }; then : 4468 for ac_file in conftest.o conftest.obj conftest.*; do 4469 test -f "$ac_file" || continue; 4470 case $ac_file in 4471 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4472 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4473 break;; 4474 esac 4475 done 4476 else 4477 $as_echo "$as_me: failed program was:" >&5 4478 sed 's/^/| /' conftest.$ac_ext >&5 4479 4480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4482 as_fn_error $? "cannot compute suffix of object files: cannot compile 4483 See \`config.log' for more details" "$LINENO" 5; } 4484 fi 4485 rm -f conftest.$ac_cv_objext conftest.$ac_ext 4486 fi 4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4488 $as_echo "$ac_cv_objext" >&6; } 4489 OBJEXT=$ac_cv_objext 4490 ac_objext=$OBJEXT 4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4492 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4493 if ${ac_cv_c_compiler_gnu+:} false; then : 4494 $as_echo_n "(cached) " >&6 4495 else 4496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4497 /* end confdefs.h. */ 4498 4499 int main (void) 4500 { 4501 #ifndef __GNUC__ 4502 choke me 4503 #endif 4504 4505 ; 4506 return 0; 4507 } 4508 _ACEOF 4509 if ac_fn_c_try_compile "$LINENO"; then : 4510 ac_compiler_gnu=yes 4511 else 4512 ac_compiler_gnu=no 4513 fi 4514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4515 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4516 4517 fi 4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4519 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 4520 if test $ac_compiler_gnu = yes; then 4521 GCC=yes 4522 else 4523 GCC= 4524 fi 4525 ac_test_CFLAGS=${CFLAGS+set} 4526 ac_save_CFLAGS=$CFLAGS 4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4528 $as_echo_n "checking whether $CC accepts -g... " >&6; } 4529 if ${ac_cv_prog_cc_g+:} false; then : 4530 $as_echo_n "(cached) " >&6 4531 else 4532 ac_save_c_werror_flag=$ac_c_werror_flag 4533 ac_c_werror_flag=yes 4534 ac_cv_prog_cc_g=no 4535 CFLAGS="-g" 4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4537 /* end confdefs.h. */ 4538 4539 int main (void) 4540 { 4541 4542 ; 4543 return 0; 4544 } 4545 _ACEOF 4546 if ac_fn_c_try_compile "$LINENO"; then : 4547 ac_cv_prog_cc_g=yes 4548 else 4549 CFLAGS="" 4550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4551 /* end confdefs.h. */ 4552 4553 int main (void) 4554 { 4555 4556 ; 4557 return 0; 4558 } 4559 _ACEOF 4560 if ac_fn_c_try_compile "$LINENO"; then : 4561 4562 else 4563 ac_c_werror_flag=$ac_save_c_werror_flag 4564 CFLAGS="-g" 4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4566 /* end confdefs.h. */ 4567 4568 int main (void) 4569 { 4570 4571 ; 4572 return 0; 4573 } 4574 _ACEOF 4575 if ac_fn_c_try_compile "$LINENO"; then : 4576 ac_cv_prog_cc_g=yes 4577 fi 4578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4579 fi 4580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4581 fi 4582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4583 ac_c_werror_flag=$ac_save_c_werror_flag 4584 fi 4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4586 $as_echo "$ac_cv_prog_cc_g" >&6; } 4587 if test "$ac_test_CFLAGS" = set; then 4588 CFLAGS=$ac_save_CFLAGS 4589 elif test $ac_cv_prog_cc_g = yes; then 4590 if test "$GCC" = yes; then 4591 CFLAGS="-g -O2" 4592 else 4593 CFLAGS="-g" 4594 fi 4595 else 4596 if test "$GCC" = yes; then 4597 CFLAGS="-O2" 4598 else 4599 CFLAGS= 4600 fi 4601 fi 4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4603 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4604 if ${ac_cv_prog_cc_c89+:} false; then : 4605 $as_echo_n "(cached) " >&6 4606 else 4607 ac_cv_prog_cc_c89=no 4608 ac_save_CC=$CC 4609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4610 /* end confdefs.h. */ 4611 #include <stdarg.h> 4612 #include <stdio.h> 4613 struct stat; 4614 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4615 struct buf { int x; }; 4616 FILE * (*rcsopen) (struct buf *, struct stat *, int); 4617 static char *e (p, i) 4618 char **p; 4619 int i; 4620 { 4621 return p[i]; 4622 } 4623 static char *f (char * (*g) (char **, int), char **p, ...) 4624 { 4625 char *s; 4626 va_list v; 4627 va_start (v,p); 4628 s = g (p, va_arg (v,int)); 4629 va_end (v); 4630 return s; 4631 } 4632 4633 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4634 function prototypes and stuff, but not '\xHH' hex character constants. 4635 These don't provoke an error unfortunately, instead are silently treated 4636 as 'x'. The following induces an error, until -std is added to get 4637 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4638 array size at least. It's necessary to write '\x00'==0 to get something 4639 that's true only with -std. */ 4640 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4641 4642 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4643 inside strings and character constants. */ 4644 #define FOO(x) 'x' 4645 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4646 4647 int test (int i, double x); 4648 struct s1 {int (*f) (int a);}; 4649 struct s2 {int (*f) (double a);}; 4650 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4651 int argc; 4652 char **argv; 4653 int main (void) 4654 { 4655 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4656 ; 4657 return 0; 4658 } 4659 _ACEOF 4660 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4661 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4662 do 4663 CC="$ac_save_CC $ac_arg" 4664 if ac_fn_c_try_compile "$LINENO"; then : 4665 ac_cv_prog_cc_c89=$ac_arg 4666 fi 4667 rm -f core conftest.err conftest.$ac_objext 4668 test "x$ac_cv_prog_cc_c89" != "xno" && break 4669 done 4670 rm -f conftest.$ac_ext 4671 CC=$ac_save_CC 4672 4673 fi 4674 # AC_CACHE_VAL 4675 case "x$ac_cv_prog_cc_c89" in 4676 x) 4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4678 $as_echo "none needed" >&6; } ;; 4679 xno) 4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4681 $as_echo "unsupported" >&6; } ;; 4682 *) 4683 CC="$CC $ac_cv_prog_cc_c89" 4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4685 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4686 esac 4687 if test "x$ac_cv_prog_cc_c89" != xno; then : 4688 4689 fi 4690 4691 ac_ext=c 4692 ac_cpp='$CPP $CPPFLAGS' 4693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4695 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4696 4697 ac_ext=c 4698 ac_cpp='$CPP $CPPFLAGS' 4699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4701 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4703 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4704 if ${am_cv_prog_cc_c_o+:} false; then : 4705 $as_echo_n "(cached) " >&6 4706 else 4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4708 /* end confdefs.h. */ 4709 4710 int main (void) 4711 { 4712 4713 ; 4714 return 0; 4715 } 4716 _ACEOF 4717 # Make sure it works both with $CC and with simple cc. 4718 # Following AC_PROG_CC_C_O, we do the test twice because some 4719 # compilers refuse to overwrite an existing .o file with -o, 4720 # though they will create one. 4721 am_cv_prog_cc_c_o=yes 4722 for am_i in 1 2; do 4723 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4724 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4725 ac_status=$? 4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4727 (exit $ac_status); } \ 4728 && test -f conftest2.$ac_objext; then 4729 : OK 4730 else 4731 am_cv_prog_cc_c_o=no 4732 break 4733 fi 4734 done 4735 rm -f core conftest* 4736 unset am_i 4737 fi 4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4739 $as_echo "$am_cv_prog_cc_c_o" >&6; } 4740 if test "$am_cv_prog_cc_c_o" != yes; then 4741 # Losing compiler, so override with the script. 4742 # FIXME: It is wrong to rewrite CC. 4743 # But if we don't then we get into trouble of one sort or another. 4744 # A longer-term fix would be to have automake use am__CC in this case, 4745 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4746 CC="$am_aux_dir/compile $CC" 4747 fi 4748 ac_ext=c 4749 ac_cpp='$CPP $CPPFLAGS' 4750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4752 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4753 4754 4755 4756 ac_ext=c 4757 ac_cpp='$CPP $CPPFLAGS' 4758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4760 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4762 $as_echo_n "checking how to run the C preprocessor... " >&6; } 4763 # On Suns, sometimes $CPP names a directory. 4764 if test -n "$CPP" && test -d "$CPP"; then 4765 CPP= 4766 fi 4767 if test -z "$CPP"; then 4768 if ${ac_cv_prog_CPP+:} false; then : 4769 $as_echo_n "(cached) " >&6 4770 else 4771 # Double quotes because CPP needs to be expanded 4772 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4773 do 4774 ac_preproc_ok=false 4775 for ac_c_preproc_warn_flag in '' yes 4776 do 4777 # Use a header file that comes with gcc, so configuring glibc 4778 # with a fresh cross-compiler works. 4779 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4780 # <limits.h> exists even on freestanding compilers. 4781 # On the NeXT, cc -E runs the code through the compiler's parser, 4782 # not just through cpp. "Syntax error" is here to catch this case. 4783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4784 /* end confdefs.h. */ 4785 #ifdef __STDC__ 4786 # include <limits.h> 4787 #else 4788 # include <assert.h> 4789 #endif 4790 Syntax error 4791 _ACEOF 4792 if ac_fn_c_try_cpp "$LINENO"; then : 4793 4794 else 4795 # Broken: fails on valid input. 4796 continue 4797 fi 4798 rm -f conftest.err conftest.i conftest.$ac_ext 4799 4800 # OK, works on sane cases. Now check whether nonexistent headers 4801 # can be detected and how. 4802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4803 /* end confdefs.h. */ 4804 #include <ac_nonexistent.h> 4805 _ACEOF 4806 if ac_fn_c_try_cpp "$LINENO"; then : 4807 # Broken: success on invalid input. 4808 continue 4809 else 4810 # Passes both tests. 4811 ac_preproc_ok=: 4812 break 4813 fi 4814 rm -f conftest.err conftest.i conftest.$ac_ext 4815 4816 done 4817 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4818 rm -f conftest.i conftest.err conftest.$ac_ext 4819 if $ac_preproc_ok; then : 4820 break 4821 fi 4822 4823 done 4824 ac_cv_prog_CPP=$CPP 4825 4826 fi 4827 CPP=$ac_cv_prog_CPP 4828 else 4829 ac_cv_prog_CPP=$CPP 4830 fi 4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4832 $as_echo "$CPP" >&6; } 4833 ac_preproc_ok=false 4834 for ac_c_preproc_warn_flag in '' yes 4835 do 4836 # Use a header file that comes with gcc, so configuring glibc 4837 # with a fresh cross-compiler works. 4838 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4839 # <limits.h> exists even on freestanding compilers. 4840 # On the NeXT, cc -E runs the code through the compiler's parser, 4841 # not just through cpp. "Syntax error" is here to catch this case. 4842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4843 /* end confdefs.h. */ 4844 #ifdef __STDC__ 4845 # include <limits.h> 4846 #else 4847 # include <assert.h> 4848 #endif 4849 Syntax error 4850 _ACEOF 4851 if ac_fn_c_try_cpp "$LINENO"; then : 4852 4853 else 4854 # Broken: fails on valid input. 4855 continue 4856 fi 4857 rm -f conftest.err conftest.i conftest.$ac_ext 4858 4859 # OK, works on sane cases. Now check whether nonexistent headers 4860 # can be detected and how. 4861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4862 /* end confdefs.h. */ 4863 #include <ac_nonexistent.h> 4864 _ACEOF 4865 if ac_fn_c_try_cpp "$LINENO"; then : 4866 # Broken: success on invalid input. 4867 continue 4868 else 4869 # Passes both tests. 4870 ac_preproc_ok=: 4871 break 4872 fi 4873 rm -f conftest.err conftest.i conftest.$ac_ext 4874 4875 done 4876 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4877 rm -f conftest.i conftest.err conftest.$ac_ext 4878 if $ac_preproc_ok; then : 4879 4880 else 4881 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4882 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4883 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4884 See \`config.log' for more details" "$LINENO" 5; } 4885 fi 4886 4887 ac_ext=c 4888 ac_cpp='$CPP $CPPFLAGS' 4889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4891 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4892 4893 4894 IFS=$xc_prog_cc_prev_IFS 4895 LIBS=$xc_prog_cc_prev_LIBS 4896 CFLAGS=$xc_prog_cc_prev_CFLAGS 4897 LDFLAGS=$xc_prog_cc_prev_LDFLAGS 4898 CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS 4899 4900 4901 4902 4903 4904 4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4906 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 4907 if ${ac_cv_path_SED+:} false; then : 4908 $as_echo_n "(cached) " >&6 4909 else 4910 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4911 for ac_i in 1 2 3 4 5 6 7; do 4912 ac_script="$ac_script$as_nl$ac_script" 4913 done 4914 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4915 { ac_script=; unset ac_script;} 4916 if test -z "$SED"; then 4917 ac_path_SED_found=false 4918 # Loop through the user's path and test for each of PROGNAME-LIST 4919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4920 for as_dir in $PATH 4921 do 4922 IFS=$as_save_IFS 4923 test -z "$as_dir" && as_dir=. 4924 for ac_prog in sed gsed; do 4925 for ac_exec_ext in '' $ac_executable_extensions; do 4926 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4927 as_fn_executable_p "$ac_path_SED" || continue 4928 # Check for GNU ac_path_SED and select it if it is found. 4929 # Check for GNU $ac_path_SED 4930 case `"$ac_path_SED" --version 2>&1` in 4931 *GNU*) 4932 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4933 *) 4934 ac_count=0 4935 $as_echo_n 0123456789 >"conftest.in" 4936 while : 4937 do 4938 cat "conftest.in" "conftest.in" >"conftest.tmp" 4939 mv "conftest.tmp" "conftest.in" 4940 cp "conftest.in" "conftest.nl" 4941 $as_echo '' >> "conftest.nl" 4942 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4943 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4944 as_fn_arith $ac_count + 1 && ac_count=$as_val 4945 if test $ac_count -gt ${ac_path_SED_max-0}; then 4946 # Best one so far, save it but keep looking for a better one 4947 ac_cv_path_SED="$ac_path_SED" 4948 ac_path_SED_max=$ac_count 4949 fi 4950 # 10*(2^10) chars as input seems more than enough 4951 test $ac_count -gt 10 && break 4952 done 4953 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4954 esac 4955 4956 $ac_path_SED_found && break 3 4957 done 4958 done 4959 done 4960 IFS=$as_save_IFS 4961 if test -z "$ac_cv_path_SED"; then 4962 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4963 fi 4964 else 4965 ac_cv_path_SED=$SED 4966 fi 4967 4968 fi 4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4970 $as_echo "$ac_cv_path_SED" >&6; } 4971 SED="$ac_cv_path_SED" 4972 rm -f conftest.sed 4973 4974 4975 4976 4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for code coverage support" >&5 4978 $as_echo_n "checking for code coverage support... " >&6; } 4979 coverage="no" 4980 curl_coverage_msg="disabled" 4981 4982 # Check whether --enable-code-coverage was given. 4983 if test "${enable_code_coverage+set}" = set; then : 4984 enableval=$enable_code_coverage; coverage="yes" 4985 else 4986 coverage="no" 4987 fi 4988 4989 4990 if test "$GCC" != "yes" ; then : 4991 coverage="no" 4992 fi 4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $coverage" >&5 4994 $as_echo "$coverage" >&6; } 4995 4996 if test "x$coverage" = "xyes"; then 4997 curl_coverage_msg="enabled" 4998 4999 if test -n "$ac_tool_prefix"; then 5000 # Extract the first word of "${ac_tool_prefix}gcov", so it can be a program name with args. 5001 set dummy ${ac_tool_prefix}gcov; ac_word=$2 5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5003 $as_echo_n "checking for $ac_word... " >&6; } 5004 if ${ac_cv_prog_GCOV+:} false; then : 5005 $as_echo_n "(cached) " >&6 5006 else 5007 if test -n "$GCOV"; then 5008 ac_cv_prog_GCOV="$GCOV" # Let the user override the test. 5009 else 5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5011 for as_dir in $PATH 5012 do 5013 IFS=$as_save_IFS 5014 test -z "$as_dir" && as_dir=. 5015 for ac_exec_ext in '' $ac_executable_extensions; do 5016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5017 ac_cv_prog_GCOV="${ac_tool_prefix}gcov" 5018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5019 break 2 5020 fi 5021 done 5022 done 5023 IFS=$as_save_IFS 5024 5025 fi 5026 fi 5027 GCOV=$ac_cv_prog_GCOV 5028 if test -n "$GCOV"; then 5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5 5030 $as_echo "$GCOV" >&6; } 5031 else 5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5033 $as_echo "no" >&6; } 5034 fi 5035 5036 5037 fi 5038 if test -z "$ac_cv_prog_GCOV"; then 5039 ac_ct_GCOV=$GCOV 5040 # Extract the first word of "gcov", so it can be a program name with args. 5041 set dummy gcov; ac_word=$2 5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5043 $as_echo_n "checking for $ac_word... " >&6; } 5044 if ${ac_cv_prog_ac_ct_GCOV+:} false; then : 5045 $as_echo_n "(cached) " >&6 5046 else 5047 if test -n "$ac_ct_GCOV"; then 5048 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test. 5049 else 5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5051 for as_dir in $PATH 5052 do 5053 IFS=$as_save_IFS 5054 test -z "$as_dir" && as_dir=. 5055 for ac_exec_ext in '' $ac_executable_extensions; do 5056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5057 ac_cv_prog_ac_ct_GCOV="gcov" 5058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5059 break 2 5060 fi 5061 done 5062 done 5063 IFS=$as_save_IFS 5064 5065 fi 5066 fi 5067 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV 5068 if test -n "$ac_ct_GCOV"; then 5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5 5070 $as_echo "$ac_ct_GCOV" >&6; } 5071 else 5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5073 $as_echo "no" >&6; } 5074 fi 5075 5076 if test "x$ac_ct_GCOV" = x; then 5077 GCOV="gcov" 5078 else 5079 case $cross_compiling:$ac_tool_warned in 5080 yes:) 5081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5083 ac_tool_warned=yes ;; 5084 esac 5085 GCOV=$ac_ct_GCOV 5086 fi 5087 else 5088 GCOV="$ac_cv_prog_GCOV" 5089 fi 5090 5091 if test -z "$GCOV"; then 5092 as_fn_error $? "needs gcov for code coverage" "$LINENO" 5 5093 fi 5094 # Extract the first word of "lcov", so it can be a program name with args. 5095 set dummy lcov; ac_word=$2 5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5097 $as_echo_n "checking for $ac_word... " >&6; } 5098 if ${ac_cv_prog_LCOV+:} false; then : 5099 $as_echo_n "(cached) " >&6 5100 else 5101 if test -n "$LCOV"; then 5102 ac_cv_prog_LCOV="$LCOV" # Let the user override the test. 5103 else 5104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5105 for as_dir in $PATH 5106 do 5107 IFS=$as_save_IFS 5108 test -z "$as_dir" && as_dir=. 5109 for ac_exec_ext in '' $ac_executable_extensions; do 5110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5111 ac_cv_prog_LCOV="lcov" 5112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5113 break 2 5114 fi 5115 done 5116 done 5117 IFS=$as_save_IFS 5118 5119 fi 5120 fi 5121 LCOV=$ac_cv_prog_LCOV 5122 if test -n "$LCOV"; then 5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5 5124 $as_echo "$LCOV" >&6; } 5125 else 5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5127 $as_echo "no" >&6; } 5128 fi 5129 5130 5131 if test -z "$LCOV"; then 5132 as_fn_error $? "needs lcov for code coverage" "$LINENO" 5 5133 fi 5134 5135 CPPFLAGS="$CPPFLAGS -DNDEBUG" 5136 CFLAGS="$CLAGS -O0 -g -fprofile-arcs -ftest-coverage" 5137 LIBS="$LIBS -lgcov" 5138 fi 5139 5140 5141 am__api_version='1.15' 5142 5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 5144 $as_echo_n "checking whether build environment is sane... " >&6; } 5145 # Reject unsafe characters in $srcdir or the absolute working directory 5146 # name. Accept space and tab only in the latter. 5147 am_lf=' 5148 ' 5149 case `pwd` in 5150 *[\\\"\#\$\&\'\`$am_lf]*) 5151 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 5152 esac 5153 case $srcdir in 5154 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 5155 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 5156 esac 5157 5158 # Do 'set' in a subshell so we don't clobber the current shell's 5159 # arguments. Must try -L first in case configure is actually a 5160 # symlink; some systems play weird games with the mod time of symlinks 5161 # (eg FreeBSD returns the mod time of the symlink's containing 5162 # directory). 5163 if ( 5164 am_has_slept=no 5165 for am_try in 1 2; do 5166 echo "timestamp, slept: $am_has_slept" > conftest.file 5167 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 5168 if test "$*" = "X"; then 5169 # -L didn't work. 5170 set X `ls -t "$srcdir/configure" conftest.file` 5171 fi 5172 if test "$*" != "X $srcdir/configure conftest.file" \ 5173 && test "$*" != "X conftest.file $srcdir/configure"; then 5174 5175 # If neither matched, then we have a broken ls. This can happen 5176 # if, for instance, CONFIG_SHELL is bash and it inherits a 5177 # broken ls alias from the environment. This has actually 5178 # happened. Such a system could not be considered "sane". 5179 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 5180 alias in your environment" "$LINENO" 5 5181 fi 5182 if test "$2" = conftest.file || test $am_try -eq 2; then 5183 break 5184 fi 5185 # Just in case. 5186 sleep 1 5187 am_has_slept=yes 5188 done 5189 test "$2" = conftest.file 5190 ) 5191 then 5192 # Ok. 5193 : 5194 else 5195 as_fn_error $? "newly created file is older than distributed files! 5196 Check your system clock" "$LINENO" 5 5197 fi 5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5199 $as_echo "yes" >&6; } 5200 # If we didn't sleep, we still need to ensure time stamps of config.status and 5201 # generated files are strictly newer. 5202 am_sleep_pid= 5203 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 5204 ( sleep 1 ) & 5205 am_sleep_pid=$! 5206 fi 5207 5208 rm -f conftest.file 5209 5210 test "$program_prefix" != NONE && 5211 program_transform_name="s&^&$program_prefix&;$program_transform_name" 5212 # Use a double $ so make ignores it. 5213 test "$program_suffix" != NONE && 5214 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 5215 # Double any \ or $. 5216 # By default was `s,x,x', remove it if useless. 5217 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 5218 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 5219 5220 if test x"${MISSING+set}" != xset; then 5221 case $am_aux_dir in 5222 *\ * | *\ *) 5223 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 5224 *) 5225 MISSING="\${SHELL} $am_aux_dir/missing" ;; 5226 esac 5227 fi 5228 # Use eval to expand $SHELL 5229 if eval "$MISSING --is-lightweight"; then 5230 am_missing_run="$MISSING " 5231 else 5232 am_missing_run= 5233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 5234 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 5235 fi 5236 5237 if test x"${install_sh+set}" != xset; then 5238 case $am_aux_dir in 5239 *\ * | *\ *) 5240 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 5241 *) 5242 install_sh="\${SHELL} $am_aux_dir/install-sh" 5243 esac 5244 fi 5245 5246 # Installed binaries are usually stripped using 'strip' when the user 5247 # run "make install-strip". However 'strip' might not be the right 5248 # tool to use in cross-compilation environments, therefore Automake 5249 # will honor the 'STRIP' environment variable to overrule this program. 5250 if test "$cross_compiling" != no; then 5251 if test -n "$ac_tool_prefix"; then 5252 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5253 set dummy ${ac_tool_prefix}strip; ac_word=$2 5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5255 $as_echo_n "checking for $ac_word... " >&6; } 5256 if ${ac_cv_prog_STRIP+:} false; then : 5257 $as_echo_n "(cached) " >&6 5258 else 5259 if test -n "$STRIP"; then 5260 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5261 else 5262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5263 for as_dir in $PATH 5264 do 5265 IFS=$as_save_IFS 5266 test -z "$as_dir" && as_dir=. 5267 for ac_exec_ext in '' $ac_executable_extensions; do 5268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5269 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5271 break 2 5272 fi 5273 done 5274 done 5275 IFS=$as_save_IFS 5276 5277 fi 5278 fi 5279 STRIP=$ac_cv_prog_STRIP 5280 if test -n "$STRIP"; then 5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5282 $as_echo "$STRIP" >&6; } 5283 else 5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5285 $as_echo "no" >&6; } 5286 fi 5287 5288 5289 fi 5290 if test -z "$ac_cv_prog_STRIP"; then 5291 ac_ct_STRIP=$STRIP 5292 # Extract the first word of "strip", so it can be a program name with args. 5293 set dummy strip; ac_word=$2 5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5295 $as_echo_n "checking for $ac_word... " >&6; } 5296 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5297 $as_echo_n "(cached) " >&6 5298 else 5299 if test -n "$ac_ct_STRIP"; then 5300 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5301 else 5302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5303 for as_dir in $PATH 5304 do 5305 IFS=$as_save_IFS 5306 test -z "$as_dir" && as_dir=. 5307 for ac_exec_ext in '' $ac_executable_extensions; do 5308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5309 ac_cv_prog_ac_ct_STRIP="strip" 5310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5311 break 2 5312 fi 5313 done 5314 done 5315 IFS=$as_save_IFS 5316 5317 fi 5318 fi 5319 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5320 if test -n "$ac_ct_STRIP"; then 5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5322 $as_echo "$ac_ct_STRIP" >&6; } 5323 else 5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5325 $as_echo "no" >&6; } 5326 fi 5327 5328 if test "x$ac_ct_STRIP" = x; then 5329 STRIP=":" 5330 else 5331 case $cross_compiling:$ac_tool_warned in 5332 yes:) 5333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5335 ac_tool_warned=yes ;; 5336 esac 5337 STRIP=$ac_ct_STRIP 5338 fi 5339 else 5340 STRIP="$ac_cv_prog_STRIP" 5341 fi 5342 5343 fi 5344 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 5345 5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 5347 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 5348 if test -z "$MKDIR_P"; then 5349 if ${ac_cv_path_mkdir+:} false; then : 5350 $as_echo_n "(cached) " >&6 5351 else 5352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5353 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 5354 do 5355 IFS=$as_save_IFS 5356 test -z "$as_dir" && as_dir=. 5357 for ac_prog in mkdir gmkdir; do 5358 for ac_exec_ext in '' $ac_executable_extensions; do 5359 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 5360 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 5361 'mkdir (GNU coreutils) '* | \ 5362 'mkdir (coreutils) '* | \ 5363 'mkdir (fileutils) '4.1*) 5364 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 5365 break 3;; 5366 esac 5367 done 5368 done 5369 done 5370 IFS=$as_save_IFS 5371 5372 fi 5373 5374 test -d ./--version && rmdir ./--version 5375 if test "${ac_cv_path_mkdir+set}" = set; then 5376 MKDIR_P="$ac_cv_path_mkdir -p" 5377 else 5378 # As a last resort, use the slow shell script. Don't cache a 5379 # value for MKDIR_P within a source directory, because that will 5380 # break other packages using the cache if that directory is 5381 # removed, or if the value is a relative name. 5382 MKDIR_P="$ac_install_sh -d" 5383 fi 5384 fi 5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 5386 $as_echo "$MKDIR_P" >&6; } 5387 5388 for ac_prog in gawk mawk nawk awk 5389 do 5390 # Extract the first word of "$ac_prog", so it can be a program name with args. 5391 set dummy $ac_prog; ac_word=$2 5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5393 $as_echo_n "checking for $ac_word... " >&6; } 5394 if ${ac_cv_prog_AWK+:} false; then : 5395 $as_echo_n "(cached) " >&6 5396 else 5397 if test -n "$AWK"; then 5398 ac_cv_prog_AWK="$AWK" # Let the user override the test. 5399 else 5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5401 for as_dir in $PATH 5402 do 5403 IFS=$as_save_IFS 5404 test -z "$as_dir" && as_dir=. 5405 for ac_exec_ext in '' $ac_executable_extensions; do 5406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5407 ac_cv_prog_AWK="$ac_prog" 5408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5409 break 2 5410 fi 5411 done 5412 done 5413 IFS=$as_save_IFS 5414 5415 fi 5416 fi 5417 AWK=$ac_cv_prog_AWK 5418 if test -n "$AWK"; then 5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 5420 $as_echo "$AWK" >&6; } 5421 else 5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5423 $as_echo "no" >&6; } 5424 fi 5425 5426 5427 test -n "$AWK" && break 5428 done 5429 5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 5431 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 5432 set x ${MAKE-make} 5433 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 5434 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 5435 $as_echo_n "(cached) " >&6 5436 else 5437 cat >conftest.make <<\_ACEOF 5438 SHELL = /bin/sh 5439 all: 5440 @echo '@@@%%%=$(MAKE)=@@@%%%' 5441 _ACEOF 5442 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 5443 case `${MAKE-make} -f conftest.make 2>/dev/null` in 5444 *@@@%%%=?*=@@@%%%*) 5445 eval ac_cv_prog_make_${ac_make}_set=yes;; 5446 *) 5447 eval ac_cv_prog_make_${ac_make}_set=no;; 5448 esac 5449 rm -f conftest.make 5450 fi 5451 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5453 $as_echo "yes" >&6; } 5454 SET_MAKE= 5455 else 5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5457 $as_echo "no" >&6; } 5458 SET_MAKE="MAKE=${MAKE-make}" 5459 fi 5460 5461 rm -rf .tst 2>/dev/null 5462 mkdir .tst 2>/dev/null 5463 if test -d .tst; then 5464 am__leading_dot=. 5465 else 5466 am__leading_dot=_ 5467 fi 5468 rmdir .tst 2>/dev/null 5469 5470 DEPDIR="${am__leading_dot}deps" 5471 5472 ac_config_commands="$ac_config_commands depfiles" 5473 5474 5475 am_make=${MAKE-make} 5476 cat > confinc << 'END' 5477 am__doit: 5478 @echo this is the am__doit target 5479 .PHONY: am__doit 5480 END 5481 # If we don't find an include directive, just comment out the code. 5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 5483 $as_echo_n "checking for style of include used by $am_make... " >&6; } 5484 am__include="#" 5485 am__quote= 5486 _am_result=none 5487 # First try GNU make style include. 5488 echo "include confinc" > confmf 5489 # Ignore all kinds of additional output from 'make'. 5490 case `$am_make -s -f confmf 2> /dev/null` in #( 5491 *the\ am__doit\ target*) 5492 am__include=include 5493 am__quote= 5494 _am_result=GNU 5495 ;; 5496 esac 5497 # Now try BSD make style include. 5498 if test "$am__include" = "#"; then 5499 echo '.include "confinc"' > confmf 5500 case `$am_make -s -f confmf 2> /dev/null` in #( 5501 *the\ am__doit\ target*) 5502 am__include=.include 5503 am__quote="\"" 5504 _am_result=BSD 5505 ;; 5506 esac 5507 fi 5508 5509 5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 5511 $as_echo "$_am_result" >&6; } 5512 rm -f confinc confmf 5513 5514 # Check whether --enable-dependency-tracking was given. 5515 if test "${enable_dependency_tracking+set}" = set; then : 5516 enableval=$enable_dependency_tracking; 5517 fi 5518 5519 if test "x$enable_dependency_tracking" != xno; then 5520 am_depcomp="$ac_aux_dir/depcomp" 5521 AMDEPBACKSLASH='\' 5522 am__nodep='_no' 5523 fi 5524 if test "x$enable_dependency_tracking" != xno; then 5525 AMDEP_TRUE= 5526 AMDEP_FALSE='#' 5527 else 5528 AMDEP_TRUE='#' 5529 AMDEP_FALSE= 5530 fi 5531 5532 5533 ## --------------------------------------- ## 5534 ## Start of automake initialization code ## 5535 ## --------------------------------------- ## 5536 5537 if test "`cd $srcdir && pwd`" != "`pwd`"; then 5538 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 5539 # is not polluted with repeated "-I." 5540 am__isrc=' -I$(srcdir)' 5541 # test to see if srcdir already configured 5542 if test -f $srcdir/config.status; then 5543 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 5544 fi 5545 fi 5546 5547 # test whether we have cygpath 5548 if test -z "$CYGPATH_W"; then 5549 if (cygpath --version) >/dev/null 2>/dev/null; then 5550 CYGPATH_W='cygpath -w' 5551 else 5552 CYGPATH_W=echo 5553 fi 5554 fi 5555 5556 5557 # Define the identity of the package. 5558 PACKAGE='curl' 5559 VERSION='-' 5560 5561 5562 cat >>confdefs.h <<_ACEOF 5563 #define PACKAGE "$PACKAGE" 5564 _ACEOF 5565 5566 5567 cat >>confdefs.h <<_ACEOF 5568 #define VERSION "$VERSION" 5569 _ACEOF 5570 5571 # Some tools Automake needs. 5572 5573 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 5574 5575 5576 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 5577 5578 5579 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 5580 5581 5582 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 5583 5584 5585 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 5586 5587 # For better backward compatibility. To be removed once Automake 1.9.x 5588 # dies out for good. For more background, see: 5589 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 5590 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 5591 mkdir_p='$(MKDIR_P)' 5592 5593 # We need awk for the "check" target (and possibly the TAP driver). The 5594 # system "awk" is bad on some platforms. 5595 # Always define AMTAR for backward compatibility. Yes, it's still used 5596 # in the wild :-( We should find a proper way to deprecate it ... 5597 AMTAR='$${TAR-tar}' 5598 5599 5600 # We'll loop over all known methods to create a tar archive until one works. 5601 _am_tools='gnutar pax cpio none' 5602 5603 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 5604 5605 5606 5607 5608 5609 depcc="$CC" am_compiler_list= 5610 5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5612 $as_echo_n "checking dependency style of $depcc... " >&6; } 5613 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5614 $as_echo_n "(cached) " >&6 5615 else 5616 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5617 # We make a subdir and do the tests there. Otherwise we can end up 5618 # making bogus files that we don't know about and never remove. For 5619 # instance it was reported that on HP-UX the gcc test will end up 5620 # making a dummy file named 'D' -- because '-MD' means "put the output 5621 # in D". 5622 rm -rf conftest.dir 5623 mkdir conftest.dir 5624 # Copy depcomp to subdir because otherwise we won't find it if we're 5625 # using a relative directory. 5626 cp "$am_depcomp" conftest.dir 5627 cd conftest.dir 5628 # We will build objects and dependencies in a subdirectory because 5629 # it helps to detect inapplicable dependency modes. For instance 5630 # both Tru64's cc and ICC support -MD to output dependencies as a 5631 # side effect of compilation, but ICC will put the dependencies in 5632 # the current directory while Tru64 will put them in the object 5633 # directory. 5634 mkdir sub 5635 5636 am_cv_CC_dependencies_compiler_type=none 5637 if test "$am_compiler_list" = ""; then 5638 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5639 fi 5640 am__universal=false 5641 case " $depcc " in #( 5642 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5643 esac 5644 5645 for depmode in $am_compiler_list; do 5646 # Setup a source with many dependencies, because some compilers 5647 # like to wrap large dependency lists on column 80 (with \), and 5648 # we should not choose a depcomp mode which is confused by this. 5649 # 5650 # We need to recreate these files for each test, as the compiler may 5651 # overwrite some of them when testing with obscure command lines. 5652 # This happens at least with the AIX C compiler. 5653 : > sub/conftest.c 5654 for i in 1 2 3 4 5 6; do 5655 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5656 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5657 # Solaris 10 /bin/sh. 5658 echo '/* dummy */' > sub/conftst$i.h 5659 done 5660 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5661 5662 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5663 # mode. It turns out that the SunPro C++ compiler does not properly 5664 # handle '-M -o', and we need to detect this. Also, some Intel 5665 # versions had trouble with output in subdirs. 5666 am__obj=sub/conftest.${OBJEXT-o} 5667 am__minus_obj="-o $am__obj" 5668 case $depmode in 5669 gcc) 5670 # This depmode causes a compiler race in universal mode. 5671 test "$am__universal" = false || continue 5672 ;; 5673 nosideeffect) 5674 # After this tag, mechanisms are not by side-effect, so they'll 5675 # only be used when explicitly requested. 5676 if test "x$enable_dependency_tracking" = xyes; then 5677 continue 5678 else 5679 break 5680 fi 5681 ;; 5682 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5683 # This compiler won't grok '-c -o', but also, the minuso test has 5684 # not run yet. These depmodes are late enough in the game, and 5685 # so weak that their functioning should not be impacted. 5686 am__obj=conftest.${OBJEXT-o} 5687 am__minus_obj= 5688 ;; 5689 none) break ;; 5690 esac 5691 if depmode=$depmode \ 5692 source=sub/conftest.c object=$am__obj \ 5693 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5694 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5695 >/dev/null 2>conftest.err && 5696 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5697 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5698 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5699 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5700 # icc doesn't choke on unknown options, it will just issue warnings 5701 # or remarks (even with -Werror). So we grep stderr for any message 5702 # that says an option was ignored or not supported. 5703 # When given -MP, icc 7.0 and 7.1 complain thusly: 5704 # icc: Command line warning: ignoring option '-M'; no argument required 5705 # The diagnosis changed in icc 8.0: 5706 # icc: Command line remark: option '-MP' not supported 5707 if (grep 'ignoring option' conftest.err || 5708 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5709 am_cv_CC_dependencies_compiler_type=$depmode 5710 break 5711 fi 5712 fi 5713 done 5714 5715 cd .. 5716 rm -rf conftest.dir 5717 else 5718 am_cv_CC_dependencies_compiler_type=none 5719 fi 5720 5721 fi 5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5723 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5724 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5725 5726 if 5727 test "x$enable_dependency_tracking" != xno \ 5728 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5729 am__fastdepCC_TRUE= 5730 am__fastdepCC_FALSE='#' 5731 else 5732 am__fastdepCC_TRUE='#' 5733 am__fastdepCC_FALSE= 5734 fi 5735 5736 5737 5738 # POSIX will say in a future version that running "rm -f" with no argument 5739 # is OK; and we want to be able to make that assumption in our Makefile 5740 # recipes. So use an aggressive probe to check that the usage we want is 5741 # actually supported "in the wild" to an acceptable degree. 5742 # See automake bug#10828. 5743 # To make any issue more visible, cause the running configure to be aborted 5744 # by default if the 'rm' program in use doesn't match our expectations; the 5745 # user can still override this though. 5746 if rm -f && rm -fr && rm -rf; then : OK; else 5747 cat >&2 <<'END' 5748 Oops! 5749 5750 Your 'rm' program seems unable to run without file operands specified 5751 on the command line, even when the '-f' option is present. This is contrary 5752 to the behaviour of most rm programs out there, and not conforming with 5753 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 5754 5755 Please tell bug-automake@gnu.org about your system, including the value 5756 of your $PATH and any error possibly output before this message. This 5757 can help us improve future automake versions. 5758 5759 END 5760 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 5761 echo 'Configuration will proceed anyway, since you have set the' >&2 5762 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 5763 echo >&2 5764 else 5765 cat >&2 <<'END' 5766 Aborting the configuration process, to ensure you take notice of the issue. 5767 5768 You can download and install GNU coreutils to get an 'rm' implementation 5769 that behaves properly: <http://www.gnu.org/software/coreutils/>. 5770 5771 If you want to complete the configuration process using your problematic 5772 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 5773 to "yes", and re-run configure. 5774 5775 END 5776 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 5777 fi 5778 fi 5779 5780 ## ------------------------------------- ## 5781 ## End of automake initialization code ## 5782 ## ------------------------------------- ## 5783 5784 5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5 5786 $as_echo_n "checking curl version... " >&6; } 5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5 5788 $as_echo "$CURLVERSION" >&6; } 5789 5790 5791 5792 VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/curl/curlver.h` 5793 5794 5795 PKGADD_PKG="HAXXcurl" 5796 PKGADD_NAME="curl - a client that groks URLs" 5797 PKGADD_VENDOR="curl.haxx.se" 5798 5799 5800 5801 5802 curl_ssl_msg="no (--with-{ssl,gnutls,nss,polarssl,mbedtls,cyassl,schannel,secure-transport,mesalink,amissl} )" 5803 curl_ssh_msg="no (--with-libssh2)" 5804 curl_zlib_msg="no (--with-zlib)" 5805 curl_brotli_msg="no (--with-brotli)" 5806 curl_gss_msg="no (--with-gssapi)" 5807 curl_tls_srp_msg="no (--enable-tls-srp)" 5808 curl_res_msg="default (--enable-ares / --enable-threaded-resolver)" 5809 curl_ipv6_msg="no (--enable-ipv6)" 5810 curl_unix_sockets_msg="no (--enable-unix-sockets)" 5811 curl_idn_msg="no (--with-{libidn2,winidn})" 5812 curl_manual_msg="no (--enable-manual)" 5813 curl_libcurl_msg="enabled (--disable-libcurl-option)" 5814 curl_verbose_msg="enabled (--disable-verbose)" 5815 curl_sspi_msg="no (--enable-sspi)" 5816 curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)" 5817 curl_ldaps_msg="no (--enable-ldaps)" 5818 curl_rtsp_msg="no (--enable-rtsp)" 5819 curl_rtmp_msg="no (--with-librtmp)" 5820 curl_mtlnk_msg="no (--with-libmetalink)" 5821 curl_psl_msg="no (--with-libpsl)" 5822 5823 ssl_backends= 5824 5825 INITIAL_LDFLAGS=$LDFLAGS 5826 INITIAL_LIBS=$LIBS 5827 5828 5829 # Make sure we can run config.sub. 5830 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5831 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5832 5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5834 $as_echo_n "checking build system type... " >&6; } 5835 if ${ac_cv_build+:} false; then : 5836 $as_echo_n "(cached) " >&6 5837 else 5838 ac_build_alias=$build_alias 5839 test "x$ac_build_alias" = x && 5840 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5841 test "x$ac_build_alias" = x && 5842 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5843 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5844 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5845 5846 fi 5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5848 $as_echo "$ac_cv_build" >&6; } 5849 case $ac_cv_build in 5850 *-*-*) ;; 5851 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5852 esac 5853 build=$ac_cv_build 5854 ac_save_IFS=$IFS; IFS='-' 5855 set x $ac_cv_build 5856 shift 5857 build_cpu=$1 5858 build_vendor=$2 5859 shift; shift 5860 # Remember, the first character of IFS is used to create $*, 5861 # except with old shells: 5862 build_os=$* 5863 IFS=$ac_save_IFS 5864 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5865 5866 5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5868 $as_echo_n "checking host system type... " >&6; } 5869 if ${ac_cv_host+:} false; then : 5870 $as_echo_n "(cached) " >&6 5871 else 5872 if test "x$host_alias" = x; then 5873 ac_cv_host=$ac_cv_build 5874 else 5875 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5876 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5877 fi 5878 5879 fi 5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5881 $as_echo "$ac_cv_host" >&6; } 5882 case $ac_cv_host in 5883 *-*-*) ;; 5884 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5885 esac 5886 host=$ac_cv_host 5887 ac_save_IFS=$IFS; IFS='-' 5888 set x $ac_cv_host 5889 shift 5890 host_cpu=$1 5891 host_vendor=$2 5892 shift; shift 5893 # Remember, the first character of IFS is used to create $*, 5894 # except with old shells: 5895 host_os=$* 5896 IFS=$ac_save_IFS 5897 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5898 5899 5900 5901 cat >>confdefs.h <<_ACEOF 5902 #define OS "${host}" 5903 _ACEOF 5904 5905 5906 # Silence warning: ar: 'u' modifier ignored since 'D' is the default 5907 AR_FLAGS=cr 5908 5909 5910 5911 5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5913 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5914 if ${ac_cv_path_GREP+:} false; then : 5915 $as_echo_n "(cached) " >&6 5916 else 5917 if test -z "$GREP"; then 5918 ac_path_GREP_found=false 5919 # Loop through the user's path and test for each of PROGNAME-LIST 5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5921 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5922 do 5923 IFS=$as_save_IFS 5924 test -z "$as_dir" && as_dir=. 5925 for ac_prog in grep ggrep; do 5926 for ac_exec_ext in '' $ac_executable_extensions; do 5927 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5928 as_fn_executable_p "$ac_path_GREP" || continue 5929 # Check for GNU ac_path_GREP and select it if it is found. 5930 # Check for GNU $ac_path_GREP 5931 case `"$ac_path_GREP" --version 2>&1` in 5932 *GNU*) 5933 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5934 *) 5935 ac_count=0 5936 $as_echo_n 0123456789 >"conftest.in" 5937 while : 5938 do 5939 cat "conftest.in" "conftest.in" >"conftest.tmp" 5940 mv "conftest.tmp" "conftest.in" 5941 cp "conftest.in" "conftest.nl" 5942 $as_echo 'GREP' >> "conftest.nl" 5943 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5944 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5945 as_fn_arith $ac_count + 1 && ac_count=$as_val 5946 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5947 # Best one so far, save it but keep looking for a better one 5948 ac_cv_path_GREP="$ac_path_GREP" 5949 ac_path_GREP_max=$ac_count 5950 fi 5951 # 10*(2^10) chars as input seems more than enough 5952 test $ac_count -gt 10 && break 5953 done 5954 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5955 esac 5956 5957 $ac_path_GREP_found && break 3 5958 done 5959 done 5960 done 5961 IFS=$as_save_IFS 5962 if test -z "$ac_cv_path_GREP"; then 5963 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5964 fi 5965 else 5966 ac_cv_path_GREP=$GREP 5967 fi 5968 5969 fi 5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5971 $as_echo "$ac_cv_path_GREP" >&6; } 5972 GREP="$ac_cv_path_GREP" 5973 5974 5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5976 $as_echo_n "checking for egrep... " >&6; } 5977 if ${ac_cv_path_EGREP+:} false; then : 5978 $as_echo_n "(cached) " >&6 5979 else 5980 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5981 then ac_cv_path_EGREP="$GREP -E" 5982 else 5983 if test -z "$EGREP"; then 5984 ac_path_EGREP_found=false 5985 # Loop through the user's path and test for each of PROGNAME-LIST 5986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5987 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5988 do 5989 IFS=$as_save_IFS 5990 test -z "$as_dir" && as_dir=. 5991 for ac_prog in egrep; do 5992 for ac_exec_ext in '' $ac_executable_extensions; do 5993 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5994 as_fn_executable_p "$ac_path_EGREP" || continue 5995 # Check for GNU ac_path_EGREP and select it if it is found. 5996 # Check for GNU $ac_path_EGREP 5997 case `"$ac_path_EGREP" --version 2>&1` in 5998 *GNU*) 5999 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 6000 *) 6001 ac_count=0 6002 $as_echo_n 0123456789 >"conftest.in" 6003 while : 6004 do 6005 cat "conftest.in" "conftest.in" >"conftest.tmp" 6006 mv "conftest.tmp" "conftest.in" 6007 cp "conftest.in" "conftest.nl" 6008 $as_echo 'EGREP' >> "conftest.nl" 6009 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6010 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6011 as_fn_arith $ac_count + 1 && ac_count=$as_val 6012 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 6013 # Best one so far, save it but keep looking for a better one 6014 ac_cv_path_EGREP="$ac_path_EGREP" 6015 ac_path_EGREP_max=$ac_count 6016 fi 6017 # 10*(2^10) chars as input seems more than enough 6018 test $ac_count -gt 10 && break 6019 done 6020 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6021 esac 6022 6023 $ac_path_EGREP_found && break 3 6024 done 6025 done 6026 done 6027 IFS=$as_save_IFS 6028 if test -z "$ac_cv_path_EGREP"; then 6029 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6030 fi 6031 else 6032 ac_cv_path_EGREP=$EGREP 6033 fi 6034 6035 fi 6036 fi 6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 6038 $as_echo "$ac_cv_path_EGREP" >&6; } 6039 EGREP="$ac_cv_path_EGREP" 6040 6041 6042 6043 6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5 6045 $as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; } 6046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6047 /* end confdefs.h. */ 6048 6049 #ifdef _AIX 6050 yes_this_is_aix 6051 #endif 6052 6053 _ACEOF 6054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6055 $EGREP "yes_this_is_aix" >/dev/null 2>&1; then : 6056 6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6058 $as_echo "yes" >&6; } 6059 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 6060 6061 6062 else 6063 6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6065 $as_echo "no" >&6; } 6066 6067 fi 6068 rm -f conftest* 6069 6070 6071 6072 6073 # 6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5 6075 $as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; } 6076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6077 /* end confdefs.h. */ 6078 6079 6080 6081 int main (void) 6082 { 6083 6084 #ifdef _THREAD_SAFE 6085 int dummy=1; 6086 #else 6087 force compilation error 6088 #endif 6089 6090 ; 6091 return 0; 6092 } 6093 6094 _ACEOF 6095 if ac_fn_c_try_compile "$LINENO"; then : 6096 6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6098 $as_echo "yes" >&6; } 6099 tmp_thread_safe_initially_defined="yes" 6100 6101 else 6102 6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6104 $as_echo "no" >&6; } 6105 tmp_thread_safe_initially_defined="no" 6106 6107 fi 6108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6109 # 6110 if test "$tmp_thread_safe_initially_defined" = "no"; then 6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5 6112 $as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; } 6113 6114 case $host_os in 6115 aix[123].* | aix4.[012].*) 6116 tmp_need_thread_safe="no" 6117 ;; 6118 aix*) 6119 tmp_need_thread_safe="yes" 6120 ;; 6121 *) 6122 tmp_need_thread_safe="no" 6123 ;; 6124 esac 6125 6126 if test "$tmp_need_thread_safe" = "yes"; then 6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6128 $as_echo "yes" >&6; } 6129 else 6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6131 $as_echo "no" >&6; } 6132 fi 6133 fi 6134 # 6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5 6136 $as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; } 6137 if test "$tmp_thread_safe_initially_defined" = "yes" || 6138 test "$tmp_need_thread_safe" = "yes"; then 6139 6140 6141 $as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h 6142 6143 cat >>confdefs.h <<_EOF 6144 #ifndef _THREAD_SAFE 6145 # define _THREAD_SAFE 6146 #endif 6147 _EOF 6148 6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6150 $as_echo "yes" >&6; } 6151 else 6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6153 $as_echo "no" >&6; } 6154 fi 6155 # 6156 6157 6158 # 6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5 6160 $as_echo_n "checking if _REENTRANT is already defined... " >&6; } 6161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6162 /* end confdefs.h. */ 6163 6164 6165 6166 int main (void) 6167 { 6168 6169 #ifdef _REENTRANT 6170 int dummy=1; 6171 #else 6172 force compilation error 6173 #endif 6174 6175 ; 6176 return 0; 6177 } 6178 6179 _ACEOF 6180 if ac_fn_c_try_compile "$LINENO"; then : 6181 6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6183 $as_echo "yes" >&6; } 6184 tmp_reentrant_initially_defined="yes" 6185 6186 else 6187 6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6189 $as_echo "no" >&6; } 6190 tmp_reentrant_initially_defined="no" 6191 6192 fi 6193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6194 # 6195 if test "$tmp_reentrant_initially_defined" = "no"; then 6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5 6197 $as_echo_n "checking if _REENTRANT is actually needed... " >&6; } 6198 6199 case $host_os in 6200 solaris*) 6201 tmp_need_reentrant="yes" 6202 ;; 6203 *) 6204 tmp_need_reentrant="no" 6205 ;; 6206 esac 6207 6208 if test "$tmp_need_reentrant" = "no"; then 6209 6210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6211 /* end confdefs.h. */ 6212 6213 6214 #include <errno.h> 6215 6216 int main (void) 6217 { 6218 6219 if(0 != errno) 6220 return 1; 6221 6222 ; 6223 return 0; 6224 } 6225 6226 _ACEOF 6227 if ac_fn_c_try_compile "$LINENO"; then : 6228 6229 tmp_errno="yes" 6230 6231 else 6232 6233 tmp_errno="no" 6234 6235 fi 6236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6237 if test "$tmp_errno" = "yes"; then 6238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6239 /* end confdefs.h. */ 6240 6241 6242 #include <errno.h> 6243 6244 int main (void) 6245 { 6246 6247 #ifdef errno 6248 int dummy=1; 6249 #else 6250 force compilation error 6251 #endif 6252 6253 ; 6254 return 0; 6255 } 6256 6257 _ACEOF 6258 if ac_fn_c_try_compile "$LINENO"; then : 6259 6260 tmp_errno="errno_macro_defined" 6261 6262 else 6263 6264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6265 /* end confdefs.h. */ 6266 6267 6268 #define _REENTRANT 6269 #include <errno.h> 6270 6271 int main (void) 6272 { 6273 6274 #ifdef errno 6275 int dummy=1; 6276 #else 6277 force compilation error 6278 #endif 6279 6280 ; 6281 return 0; 6282 } 6283 6284 _ACEOF 6285 if ac_fn_c_try_compile "$LINENO"; then : 6286 6287 tmp_errno="errno_macro_needs_reentrant" 6288 tmp_need_reentrant="yes" 6289 6290 fi 6291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6292 6293 fi 6294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6295 fi 6296 6297 fi 6298 if test "$tmp_need_reentrant" = "no"; then 6299 6300 if test "$tmp_need_reentrant" = "no"; then 6301 6302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6303 /* end confdefs.h. */ 6304 6305 6306 #define gmtime_r innocuous_gmtime_r 6307 #ifdef __STDC__ 6308 # include <limits.h> 6309 #else 6310 # include <assert.h> 6311 #endif 6312 #undef gmtime_r 6313 #ifdef __cplusplus 6314 extern "C" 6315 #endif 6316 char gmtime_r (); 6317 #if defined __stub_gmtime_r || defined __stub___gmtime_r 6318 choke me 6319 #endif 6320 6321 int main (void) 6322 { 6323 return gmtime_r (); 6324 ; 6325 return 0; 6326 } 6327 6328 _ACEOF 6329 if ac_fn_c_try_link "$LINENO"; then : 6330 6331 tmp_gmtime_r="yes" 6332 6333 else 6334 6335 tmp_gmtime_r="no" 6336 6337 fi 6338 rm -f core conftest.err conftest.$ac_objext \ 6339 conftest$ac_exeext conftest.$ac_ext 6340 if test "$tmp_gmtime_r" = "yes"; then 6341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6342 /* end confdefs.h. */ 6343 6344 #include <sys/types.h> 6345 #include <time.h> 6346 6347 _ACEOF 6348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6349 $EGREP "gmtime_r" >/dev/null 2>&1; then : 6350 6351 tmp_gmtime_r="proto_declared" 6352 6353 else 6354 6355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6356 /* end confdefs.h. */ 6357 6358 #define _REENTRANT 6359 #include <sys/types.h> 6360 #include <time.h> 6361 6362 _ACEOF 6363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6364 $EGREP "gmtime_r" >/dev/null 2>&1; then : 6365 6366 tmp_gmtime_r="proto_needs_reentrant" 6367 tmp_need_reentrant="yes" 6368 6369 fi 6370 rm -f conftest* 6371 6372 6373 fi 6374 rm -f conftest* 6375 6376 fi 6377 6378 fi 6379 if test "$tmp_need_reentrant" = "no"; then 6380 6381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6382 /* end confdefs.h. */ 6383 6384 6385 #define localtime_r innocuous_localtime_r 6386 #ifdef __STDC__ 6387 # include <limits.h> 6388 #else 6389 # include <assert.h> 6390 #endif 6391 #undef localtime_r 6392 #ifdef __cplusplus 6393 extern "C" 6394 #endif 6395 char localtime_r (); 6396 #if defined __stub_localtime_r || defined __stub___localtime_r 6397 choke me 6398 #endif 6399 6400 int main (void) 6401 { 6402 return localtime_r (); 6403 ; 6404 return 0; 6405 } 6406 6407 _ACEOF 6408 if ac_fn_c_try_link "$LINENO"; then : 6409 6410 tmp_localtime_r="yes" 6411 6412 else 6413 6414 tmp_localtime_r="no" 6415 6416 fi 6417 rm -f core conftest.err conftest.$ac_objext \ 6418 conftest$ac_exeext conftest.$ac_ext 6419 if test "$tmp_localtime_r" = "yes"; then 6420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6421 /* end confdefs.h. */ 6422 6423 #include <sys/types.h> 6424 #include <time.h> 6425 6426 _ACEOF 6427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6428 $EGREP "localtime_r" >/dev/null 2>&1; then : 6429 6430 tmp_localtime_r="proto_declared" 6431 6432 else 6433 6434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6435 /* end confdefs.h. */ 6436 6437 #define _REENTRANT 6438 #include <sys/types.h> 6439 #include <time.h> 6440 6441 _ACEOF 6442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6443 $EGREP "localtime_r" >/dev/null 2>&1; then : 6444 6445 tmp_localtime_r="proto_needs_reentrant" 6446 tmp_need_reentrant="yes" 6447 6448 fi 6449 rm -f conftest* 6450 6451 6452 fi 6453 rm -f conftest* 6454 6455 fi 6456 6457 fi 6458 if test "$tmp_need_reentrant" = "no"; then 6459 6460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6461 /* end confdefs.h. */ 6462 6463 6464 #define strerror_r innocuous_strerror_r 6465 #ifdef __STDC__ 6466 # include <limits.h> 6467 #else 6468 # include <assert.h> 6469 #endif 6470 #undef strerror_r 6471 #ifdef __cplusplus 6472 extern "C" 6473 #endif 6474 char strerror_r (); 6475 #if defined __stub_strerror_r || defined __stub___strerror_r 6476 choke me 6477 #endif 6478 6479 int main (void) 6480 { 6481 return strerror_r (); 6482 ; 6483 return 0; 6484 } 6485 6486 _ACEOF 6487 if ac_fn_c_try_link "$LINENO"; then : 6488 6489 tmp_strerror_r="yes" 6490 6491 else 6492 6493 tmp_strerror_r="no" 6494 6495 fi 6496 rm -f core conftest.err conftest.$ac_objext \ 6497 conftest$ac_exeext conftest.$ac_ext 6498 if test "$tmp_strerror_r" = "yes"; then 6499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6500 /* end confdefs.h. */ 6501 6502 #include <sys/types.h> 6503 #include <string.h> 6504 6505 _ACEOF 6506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6507 $EGREP "strerror_r" >/dev/null 2>&1; then : 6508 6509 tmp_strerror_r="proto_declared" 6510 6511 else 6512 6513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6514 /* end confdefs.h. */ 6515 6516 #define _REENTRANT 6517 #include <sys/types.h> 6518 #include <string.h> 6519 6520 _ACEOF 6521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6522 $EGREP "strerror_r" >/dev/null 2>&1; then : 6523 6524 tmp_strerror_r="proto_needs_reentrant" 6525 tmp_need_reentrant="yes" 6526 6527 fi 6528 rm -f conftest* 6529 6530 6531 fi 6532 rm -f conftest* 6533 6534 fi 6535 6536 fi 6537 if test "$tmp_need_reentrant" = "no"; then 6538 6539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6540 /* end confdefs.h. */ 6541 6542 6543 #define strtok_r innocuous_strtok_r 6544 #ifdef __STDC__ 6545 # include <limits.h> 6546 #else 6547 # include <assert.h> 6548 #endif 6549 #undef strtok_r 6550 #ifdef __cplusplus 6551 extern "C" 6552 #endif 6553 char strtok_r (); 6554 #if defined __stub_strtok_r || defined __stub___strtok_r 6555 choke me 6556 #endif 6557 6558 int main (void) 6559 { 6560 return strtok_r (); 6561 ; 6562 return 0; 6563 } 6564 6565 _ACEOF 6566 if ac_fn_c_try_link "$LINENO"; then : 6567 6568 tmp_strtok_r="yes" 6569 6570 else 6571 6572 tmp_strtok_r="no" 6573 6574 fi 6575 rm -f core conftest.err conftest.$ac_objext \ 6576 conftest$ac_exeext conftest.$ac_ext 6577 if test "$tmp_strtok_r" = "yes"; then 6578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6579 /* end confdefs.h. */ 6580 6581 #include <sys/types.h> 6582 #include <string.h> 6583 6584 _ACEOF 6585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6586 $EGREP "strtok_r" >/dev/null 2>&1; then : 6587 6588 tmp_strtok_r="proto_declared" 6589 6590 else 6591 6592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6593 /* end confdefs.h. */ 6594 6595 #define _REENTRANT 6596 #include <sys/types.h> 6597 #include <string.h> 6598 6599 _ACEOF 6600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6601 $EGREP "strtok_r" >/dev/null 2>&1; then : 6602 6603 tmp_strtok_r="proto_needs_reentrant" 6604 tmp_need_reentrant="yes" 6605 6606 fi 6607 rm -f conftest* 6608 6609 6610 fi 6611 rm -f conftest* 6612 6613 fi 6614 6615 fi 6616 if test "$tmp_need_reentrant" = "no"; then 6617 6618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6619 /* end confdefs.h. */ 6620 6621 6622 #define inet_ntoa_r innocuous_inet_ntoa_r 6623 #ifdef __STDC__ 6624 # include <limits.h> 6625 #else 6626 # include <assert.h> 6627 #endif 6628 #undef inet_ntoa_r 6629 #ifdef __cplusplus 6630 extern "C" 6631 #endif 6632 char inet_ntoa_r (); 6633 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r 6634 choke me 6635 #endif 6636 6637 int main (void) 6638 { 6639 return inet_ntoa_r (); 6640 ; 6641 return 0; 6642 } 6643 6644 _ACEOF 6645 if ac_fn_c_try_link "$LINENO"; then : 6646 6647 tmp_inet_ntoa_r="yes" 6648 6649 else 6650 6651 tmp_inet_ntoa_r="no" 6652 6653 fi 6654 rm -f core conftest.err conftest.$ac_objext \ 6655 conftest$ac_exeext conftest.$ac_ext 6656 if test "$tmp_inet_ntoa_r" = "yes"; then 6657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6658 /* end confdefs.h. */ 6659 6660 #include <sys/types.h> 6661 #include <sys/socket.h> 6662 #include <netinet/in.h> 6663 #include <arpa/inet.h> 6664 6665 _ACEOF 6666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6667 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then : 6668 6669 tmp_inet_ntoa_r="proto_declared" 6670 6671 else 6672 6673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6674 /* end confdefs.h. */ 6675 6676 #define _REENTRANT 6677 #include <sys/types.h> 6678 #include <sys/socket.h> 6679 #include <netinet/in.h> 6680 #include <arpa/inet.h> 6681 6682 _ACEOF 6683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6684 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then : 6685 6686 tmp_inet_ntoa_r="proto_needs_reentrant" 6687 tmp_need_reentrant="yes" 6688 6689 fi 6690 rm -f conftest* 6691 6692 6693 fi 6694 rm -f conftest* 6695 6696 fi 6697 6698 fi 6699 if test "$tmp_need_reentrant" = "no"; then 6700 6701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6702 /* end confdefs.h. */ 6703 6704 6705 #define gethostbyaddr_r innocuous_gethostbyaddr_r 6706 #ifdef __STDC__ 6707 # include <limits.h> 6708 #else 6709 # include <assert.h> 6710 #endif 6711 #undef gethostbyaddr_r 6712 #ifdef __cplusplus 6713 extern "C" 6714 #endif 6715 char gethostbyaddr_r (); 6716 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r 6717 choke me 6718 #endif 6719 6720 int main (void) 6721 { 6722 return gethostbyaddr_r (); 6723 ; 6724 return 0; 6725 } 6726 6727 _ACEOF 6728 if ac_fn_c_try_link "$LINENO"; then : 6729 6730 tmp_gethostbyaddr_r="yes" 6731 6732 else 6733 6734 tmp_gethostbyaddr_r="no" 6735 6736 fi 6737 rm -f core conftest.err conftest.$ac_objext \ 6738 conftest$ac_exeext conftest.$ac_ext 6739 if test "$tmp_gethostbyaddr_r" = "yes"; then 6740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6741 /* end confdefs.h. */ 6742 6743 #include <sys/types.h> 6744 #include <netdb.h> 6745 6746 _ACEOF 6747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6748 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then : 6749 6750 tmp_gethostbyaddr_r="proto_declared" 6751 6752 else 6753 6754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6755 /* end confdefs.h. */ 6756 6757 #define _REENTRANT 6758 #include <sys/types.h> 6759 #include <netdb.h> 6760 6761 _ACEOF 6762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6763 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then : 6764 6765 tmp_gethostbyaddr_r="proto_needs_reentrant" 6766 tmp_need_reentrant="yes" 6767 6768 fi 6769 rm -f conftest* 6770 6771 6772 fi 6773 rm -f conftest* 6774 6775 fi 6776 6777 fi 6778 if test "$tmp_need_reentrant" = "no"; then 6779 6780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6781 /* end confdefs.h. */ 6782 6783 6784 #define gethostbyname_r innocuous_gethostbyname_r 6785 #ifdef __STDC__ 6786 # include <limits.h> 6787 #else 6788 # include <assert.h> 6789 #endif 6790 #undef gethostbyname_r 6791 #ifdef __cplusplus 6792 extern "C" 6793 #endif 6794 char gethostbyname_r (); 6795 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r 6796 choke me 6797 #endif 6798 6799 int main (void) 6800 { 6801 return gethostbyname_r (); 6802 ; 6803 return 0; 6804 } 6805 6806 _ACEOF 6807 if ac_fn_c_try_link "$LINENO"; then : 6808 6809 tmp_gethostbyname_r="yes" 6810 6811 else 6812 6813 tmp_gethostbyname_r="no" 6814 6815 fi 6816 rm -f core conftest.err conftest.$ac_objext \ 6817 conftest$ac_exeext conftest.$ac_ext 6818 if test "$tmp_gethostbyname_r" = "yes"; then 6819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6820 /* end confdefs.h. */ 6821 6822 #include <sys/types.h> 6823 #include <netdb.h> 6824 6825 _ACEOF 6826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6827 $EGREP "gethostbyname_r" >/dev/null 2>&1; then : 6828 6829 tmp_gethostbyname_r="proto_declared" 6830 6831 else 6832 6833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6834 /* end confdefs.h. */ 6835 6836 #define _REENTRANT 6837 #include <sys/types.h> 6838 #include <netdb.h> 6839 6840 _ACEOF 6841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6842 $EGREP "gethostbyname_r" >/dev/null 2>&1; then : 6843 6844 tmp_gethostbyname_r="proto_needs_reentrant" 6845 tmp_need_reentrant="yes" 6846 6847 fi 6848 rm -f conftest* 6849 6850 6851 fi 6852 rm -f conftest* 6853 6854 fi 6855 6856 fi 6857 if test "$tmp_need_reentrant" = "no"; then 6858 6859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6860 /* end confdefs.h. */ 6861 6862 6863 #define getprotobyname_r innocuous_getprotobyname_r 6864 #ifdef __STDC__ 6865 # include <limits.h> 6866 #else 6867 # include <assert.h> 6868 #endif 6869 #undef getprotobyname_r 6870 #ifdef __cplusplus 6871 extern "C" 6872 #endif 6873 char getprotobyname_r (); 6874 #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r 6875 choke me 6876 #endif 6877 6878 int main (void) 6879 { 6880 return getprotobyname_r (); 6881 ; 6882 return 0; 6883 } 6884 6885 _ACEOF 6886 if ac_fn_c_try_link "$LINENO"; then : 6887 6888 tmp_getprotobyname_r="yes" 6889 6890 else 6891 6892 tmp_getprotobyname_r="no" 6893 6894 fi 6895 rm -f core conftest.err conftest.$ac_objext \ 6896 conftest$ac_exeext conftest.$ac_ext 6897 if test "$tmp_getprotobyname_r" = "yes"; then 6898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6899 /* end confdefs.h. */ 6900 6901 #include <sys/types.h> 6902 #include <netdb.h> 6903 6904 _ACEOF 6905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6906 $EGREP "getprotobyname_r" >/dev/null 2>&1; then : 6907 6908 tmp_getprotobyname_r="proto_declared" 6909 6910 else 6911 6912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6913 /* end confdefs.h. */ 6914 6915 #define _REENTRANT 6916 #include <sys/types.h> 6917 #include <netdb.h> 6918 6919 _ACEOF 6920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6921 $EGREP "getprotobyname_r" >/dev/null 2>&1; then : 6922 6923 tmp_getprotobyname_r="proto_needs_reentrant" 6924 tmp_need_reentrant="yes" 6925 6926 fi 6927 rm -f conftest* 6928 6929 6930 fi 6931 rm -f conftest* 6932 6933 fi 6934 6935 fi 6936 if test "$tmp_need_reentrant" = "no"; then 6937 6938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6939 /* end confdefs.h. */ 6940 6941 6942 #define getservbyport_r innocuous_getservbyport_r 6943 #ifdef __STDC__ 6944 # include <limits.h> 6945 #else 6946 # include <assert.h> 6947 #endif 6948 #undef getservbyport_r 6949 #ifdef __cplusplus 6950 extern "C" 6951 #endif 6952 char getservbyport_r (); 6953 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r 6954 choke me 6955 #endif 6956 6957 int main (void) 6958 { 6959 return getservbyport_r (); 6960 ; 6961 return 0; 6962 } 6963 6964 _ACEOF 6965 if ac_fn_c_try_link "$LINENO"; then : 6966 6967 tmp_getservbyport_r="yes" 6968 6969 else 6970 6971 tmp_getservbyport_r="no" 6972 6973 fi 6974 rm -f core conftest.err conftest.$ac_objext \ 6975 conftest$ac_exeext conftest.$ac_ext 6976 if test "$tmp_getservbyport_r" = "yes"; then 6977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6978 /* end confdefs.h. */ 6979 6980 #include <sys/types.h> 6981 #include <netdb.h> 6982 6983 _ACEOF 6984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6985 $EGREP "getservbyport_r" >/dev/null 2>&1; then : 6986 6987 tmp_getservbyport_r="proto_declared" 6988 6989 else 6990 6991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6992 /* end confdefs.h. */ 6993 6994 #define _REENTRANT 6995 #include <sys/types.h> 6996 #include <netdb.h> 6997 6998 _ACEOF 6999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7000 $EGREP "getservbyport_r" >/dev/null 2>&1; then : 7001 7002 tmp_getservbyport_r="proto_needs_reentrant" 7003 tmp_need_reentrant="yes" 7004 7005 fi 7006 rm -f conftest* 7007 7008 7009 fi 7010 rm -f conftest* 7011 7012 fi 7013 7014 fi 7015 7016 fi 7017 if test "$tmp_need_reentrant" = "yes"; then 7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7019 $as_echo "yes" >&6; } 7020 else 7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7022 $as_echo "no" >&6; } 7023 fi 7024 fi 7025 # 7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5 7027 $as_echo_n "checking if _REENTRANT is onwards defined... " >&6; } 7028 if test "$tmp_reentrant_initially_defined" = "yes" || 7029 test "$tmp_need_reentrant" = "yes"; then 7030 7031 7032 $as_echo "#define NEED_REENTRANT 1" >>confdefs.h 7033 7034 cat >>confdefs.h <<_EOF 7035 #ifndef _REENTRANT 7036 # define _REENTRANT 7037 #endif 7038 _EOF 7039 7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7041 $as_echo "yes" >&6; } 7042 else 7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7044 $as_echo "no" >&6; } 7045 fi 7046 # 7047 7048 7049 # Check whether --enable-largefile was given. 7050 if test "${enable_largefile+set}" = set; then : 7051 enableval=$enable_largefile; 7052 fi 7053 7054 if test "$enable_largefile" != no; then 7055 7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 7057 $as_echo_n "checking for special C compiler options needed for large files... " >&6; } 7058 if ${ac_cv_sys_largefile_CC+:} false; then : 7059 $as_echo_n "(cached) " >&6 7060 else 7061 ac_cv_sys_largefile_CC=no 7062 if test "$GCC" != yes; then 7063 ac_save_CC=$CC 7064 while :; do 7065 # IRIX 6.2 and later do not support large files by default, 7066 # so use the C compiler's -n32 option if that helps. 7067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7068 /* end confdefs.h. */ 7069 #include <sys/types.h> 7070 /* Check that off_t can represent 2**63 - 1 correctly. 7071 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7072 since some C++ compilers masquerading as C compilers 7073 incorrectly reject 9223372036854775807. */ 7074 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 7075 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7076 && LARGE_OFF_T % 2147483647 == 1) 7077 ? 1 : -1]; 7078 int main (void) 7079 { 7080 7081 ; 7082 return 0; 7083 } 7084 _ACEOF 7085 if ac_fn_c_try_compile "$LINENO"; then : 7086 break 7087 fi 7088 rm -f core conftest.err conftest.$ac_objext 7089 CC="$CC -n32" 7090 if ac_fn_c_try_compile "$LINENO"; then : 7091 ac_cv_sys_largefile_CC=' -n32'; break 7092 fi 7093 rm -f core conftest.err conftest.$ac_objext 7094 break 7095 done 7096 CC=$ac_save_CC 7097 rm -f conftest.$ac_ext 7098 fi 7099 fi 7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 7101 $as_echo "$ac_cv_sys_largefile_CC" >&6; } 7102 if test "$ac_cv_sys_largefile_CC" != no; then 7103 CC=$CC$ac_cv_sys_largefile_CC 7104 fi 7105 7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 7107 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 7108 if ${ac_cv_sys_file_offset_bits+:} false; then : 7109 $as_echo_n "(cached) " >&6 7110 else 7111 while :; do 7112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7113 /* end confdefs.h. */ 7114 #include <sys/types.h> 7115 /* Check that off_t can represent 2**63 - 1 correctly. 7116 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7117 since some C++ compilers masquerading as C compilers 7118 incorrectly reject 9223372036854775807. */ 7119 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 7120 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7121 && LARGE_OFF_T % 2147483647 == 1) 7122 ? 1 : -1]; 7123 int main (void) 7124 { 7125 7126 ; 7127 return 0; 7128 } 7129 _ACEOF 7130 if ac_fn_c_try_compile "$LINENO"; then : 7131 ac_cv_sys_file_offset_bits=no; break 7132 fi 7133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7135 /* end confdefs.h. */ 7136 #define _FILE_OFFSET_BITS 64 7137 #include <sys/types.h> 7138 /* Check that off_t can represent 2**63 - 1 correctly. 7139 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7140 since some C++ compilers masquerading as C compilers 7141 incorrectly reject 9223372036854775807. */ 7142 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 7143 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7144 && LARGE_OFF_T % 2147483647 == 1) 7145 ? 1 : -1]; 7146 int main (void) 7147 { 7148 7149 ; 7150 return 0; 7151 } 7152 _ACEOF 7153 if ac_fn_c_try_compile "$LINENO"; then : 7154 ac_cv_sys_file_offset_bits=64; break 7155 fi 7156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7157 ac_cv_sys_file_offset_bits=unknown 7158 break 7159 done 7160 fi 7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 7162 $as_echo "$ac_cv_sys_file_offset_bits" >&6; } 7163 case $ac_cv_sys_file_offset_bits in #( 7164 no | unknown) ;; 7165 *) 7166 cat >>confdefs.h <<_ACEOF 7167 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 7168 _ACEOF 7169 ;; 7170 esac 7171 rm -rf conftest* 7172 if test $ac_cv_sys_file_offset_bits = unknown; then 7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 7174 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 7175 if ${ac_cv_sys_large_files+:} false; then : 7176 $as_echo_n "(cached) " >&6 7177 else 7178 while :; do 7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7180 /* end confdefs.h. */ 7181 #include <sys/types.h> 7182 /* Check that off_t can represent 2**63 - 1 correctly. 7183 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7184 since some C++ compilers masquerading as C compilers 7185 incorrectly reject 9223372036854775807. */ 7186 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 7187 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7188 && LARGE_OFF_T % 2147483647 == 1) 7189 ? 1 : -1]; 7190 int main (void) 7191 { 7192 7193 ; 7194 return 0; 7195 } 7196 _ACEOF 7197 if ac_fn_c_try_compile "$LINENO"; then : 7198 ac_cv_sys_large_files=no; break 7199 fi 7200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7202 /* end confdefs.h. */ 7203 #define _LARGE_FILES 1 7204 #include <sys/types.h> 7205 /* Check that off_t can represent 2**63 - 1 correctly. 7206 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7207 since some C++ compilers masquerading as C compilers 7208 incorrectly reject 9223372036854775807. */ 7209 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 7210 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7211 && LARGE_OFF_T % 2147483647 == 1) 7212 ? 1 : -1]; 7213 int main (void) 7214 { 7215 7216 ; 7217 return 0; 7218 } 7219 _ACEOF 7220 if ac_fn_c_try_compile "$LINENO"; then : 7221 ac_cv_sys_large_files=1; break 7222 fi 7223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7224 ac_cv_sys_large_files=unknown 7225 break 7226 done 7227 fi 7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 7229 $as_echo "$ac_cv_sys_large_files" >&6; } 7230 case $ac_cv_sys_large_files in #( 7231 no | unknown) ;; 7232 *) 7233 cat >>confdefs.h <<_ACEOF 7234 #define _LARGE_FILES $ac_cv_sys_large_files 7235 _ACEOF 7236 ;; 7237 esac 7238 rm -rf conftest* 7239 fi 7240 7241 7242 fi 7243 7244 7245 case `pwd` in 7246 *\ * | *\ *) 7247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 7248 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 7249 esac 7250 7251 7252 7253 macro_version='2.4.6' 7254 macro_revision='2.4.6' 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 ltmain=$ac_aux_dir/ltmain.sh 7269 7270 # Backslashify metacharacters that are still active within 7271 # double-quoted strings. 7272 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7273 7274 # Same as above, but do not quote variable references. 7275 double_quote_subst='s/\(["`\\]\)/\\\1/g' 7276 7277 # Sed substitution to delay expansion of an escaped shell variable in a 7278 # double_quote_subst'ed string. 7279 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7280 7281 # Sed substitution to delay expansion of an escaped single quote. 7282 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7283 7284 # Sed substitution to avoid accidental globbing in evaled expressions 7285 no_glob_subst='s/\*/\\\*/g' 7286 7287 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 7288 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 7289 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 7290 7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 7292 $as_echo_n "checking how to print strings... " >&6; } 7293 # Test print first, because it will be a builtin if present. 7294 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 7295 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 7296 ECHO='print -r --' 7297 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 7298 ECHO='printf %s\n' 7299 else 7300 # Use this function as a fallback that always works. 7301 func_fallback_echo () 7302 { 7303 eval 'cat <<_LTECHO_EOF 7304 $1 7305 _LTECHO_EOF' 7306 } 7307 ECHO='func_fallback_echo' 7308 fi 7309 7310 # func_echo_all arg... 7311 # Invoke $ECHO with all args, space-separated. 7312 func_echo_all () 7313 { 7314 $ECHO "" 7315 } 7316 7317 case $ECHO in 7318 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 7319 $as_echo "printf" >&6; } ;; 7320 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 7321 $as_echo "print -r" >&6; } ;; 7322 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 7323 $as_echo "cat" >&6; } ;; 7324 esac 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 7340 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 7341 if ${ac_cv_path_SED+:} false; then : 7342 $as_echo_n "(cached) " >&6 7343 else 7344 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 7345 for ac_i in 1 2 3 4 5 6 7; do 7346 ac_script="$ac_script$as_nl$ac_script" 7347 done 7348 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 7349 { ac_script=; unset ac_script;} 7350 if test -z "$SED"; then 7351 ac_path_SED_found=false 7352 # Loop through the user's path and test for each of PROGNAME-LIST 7353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7354 for as_dir in $PATH 7355 do 7356 IFS=$as_save_IFS 7357 test -z "$as_dir" && as_dir=. 7358 for ac_prog in sed gsed; do 7359 for ac_exec_ext in '' $ac_executable_extensions; do 7360 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 7361 as_fn_executable_p "$ac_path_SED" || continue 7362 # Check for GNU ac_path_SED and select it if it is found. 7363 # Check for GNU $ac_path_SED 7364 case `"$ac_path_SED" --version 2>&1` in 7365 *GNU*) 7366 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 7367 *) 7368 ac_count=0 7369 $as_echo_n 0123456789 >"conftest.in" 7370 while : 7371 do 7372 cat "conftest.in" "conftest.in" >"conftest.tmp" 7373 mv "conftest.tmp" "conftest.in" 7374 cp "conftest.in" "conftest.nl" 7375 $as_echo '' >> "conftest.nl" 7376 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 7377 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7378 as_fn_arith $ac_count + 1 && ac_count=$as_val 7379 if test $ac_count -gt ${ac_path_SED_max-0}; then 7380 # Best one so far, save it but keep looking for a better one 7381 ac_cv_path_SED="$ac_path_SED" 7382 ac_path_SED_max=$ac_count 7383 fi 7384 # 10*(2^10) chars as input seems more than enough 7385 test $ac_count -gt 10 && break 7386 done 7387 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7388 esac 7389 7390 $ac_path_SED_found && break 3 7391 done 7392 done 7393 done 7394 IFS=$as_save_IFS 7395 if test -z "$ac_cv_path_SED"; then 7396 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 7397 fi 7398 else 7399 ac_cv_path_SED=$SED 7400 fi 7401 7402 fi 7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 7404 $as_echo "$ac_cv_path_SED" >&6; } 7405 SED="$ac_cv_path_SED" 7406 rm -f conftest.sed 7407 7408 test -z "$SED" && SED=sed 7409 Xsed="$SED -e 1s/^X//" 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 7422 $as_echo_n "checking for fgrep... " >&6; } 7423 if ${ac_cv_path_FGREP+:} false; then : 7424 $as_echo_n "(cached) " >&6 7425 else 7426 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 7427 then ac_cv_path_FGREP="$GREP -F" 7428 else 7429 if test -z "$FGREP"; then 7430 ac_path_FGREP_found=false 7431 # Loop through the user's path and test for each of PROGNAME-LIST 7432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7433 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7434 do 7435 IFS=$as_save_IFS 7436 test -z "$as_dir" && as_dir=. 7437 for ac_prog in fgrep; do 7438 for ac_exec_ext in '' $ac_executable_extensions; do 7439 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 7440 as_fn_executable_p "$ac_path_FGREP" || continue 7441 # Check for GNU ac_path_FGREP and select it if it is found. 7442 # Check for GNU $ac_path_FGREP 7443 case `"$ac_path_FGREP" --version 2>&1` in 7444 *GNU*) 7445 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 7446 *) 7447 ac_count=0 7448 $as_echo_n 0123456789 >"conftest.in" 7449 while : 7450 do 7451 cat "conftest.in" "conftest.in" >"conftest.tmp" 7452 mv "conftest.tmp" "conftest.in" 7453 cp "conftest.in" "conftest.nl" 7454 $as_echo 'FGREP' >> "conftest.nl" 7455 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 7456 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7457 as_fn_arith $ac_count + 1 && ac_count=$as_val 7458 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 7459 # Best one so far, save it but keep looking for a better one 7460 ac_cv_path_FGREP="$ac_path_FGREP" 7461 ac_path_FGREP_max=$ac_count 7462 fi 7463 # 10*(2^10) chars as input seems more than enough 7464 test $ac_count -gt 10 && break 7465 done 7466 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7467 esac 7468 7469 $ac_path_FGREP_found && break 3 7470 done 7471 done 7472 done 7473 IFS=$as_save_IFS 7474 if test -z "$ac_cv_path_FGREP"; then 7475 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7476 fi 7477 else 7478 ac_cv_path_FGREP=$FGREP 7479 fi 7480 7481 fi 7482 fi 7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 7484 $as_echo "$ac_cv_path_FGREP" >&6; } 7485 FGREP="$ac_cv_path_FGREP" 7486 7487 7488 test -z "$GREP" && GREP=grep 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 # Check whether --with-gnu-ld was given. 7509 if test "${with_gnu_ld+set}" = set; then : 7510 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 7511 else 7512 with_gnu_ld=no 7513 fi 7514 7515 ac_prog=ld 7516 if test yes = "$GCC"; then 7517 # Check if gcc -print-prog-name=ld gives a path. 7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 7519 $as_echo_n "checking for ld used by $CC... " >&6; } 7520 case $host in 7521 *-*-mingw*) 7522 # gcc leaves a trailing carriage return, which upsets mingw 7523 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7524 *) 7525 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7526 esac 7527 case $ac_prog in 7528 # Accept absolute paths. 7529 [\\/]* | ?:[\\/]*) 7530 re_direlt='/[^/][^/]*/\.\./' 7531 # Canonicalize the pathname of ld 7532 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 7533 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 7534 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 7535 done 7536 test -z "$LD" && LD=$ac_prog 7537 ;; 7538 "") 7539 # If it fails, then pretend we aren't using GCC. 7540 ac_prog=ld 7541 ;; 7542 *) 7543 # If it is relative, then search for the first ld in PATH. 7544 with_gnu_ld=unknown 7545 ;; 7546 esac 7547 elif test yes = "$with_gnu_ld"; then 7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 7549 $as_echo_n "checking for GNU ld... " >&6; } 7550 else 7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 7552 $as_echo_n "checking for non-GNU ld... " >&6; } 7553 fi 7554 if ${lt_cv_path_LD+:} false; then : 7555 $as_echo_n "(cached) " >&6 7556 else 7557 if test -z "$LD"; then 7558 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7559 for ac_dir in $PATH; do 7560 IFS=$lt_save_ifs 7561 test -z "$ac_dir" && ac_dir=. 7562 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7563 lt_cv_path_LD=$ac_dir/$ac_prog 7564 # Check to see if the program is GNU ld. I'd rather use --version, 7565 # but apparently some variants of GNU ld only accept -v. 7566 # Break only if it was the GNU/non-GNU ld that we prefer. 7567 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 7568 *GNU* | *'with BFD'*) 7569 test no != "$with_gnu_ld" && break 7570 ;; 7571 *) 7572 test yes != "$with_gnu_ld" && break 7573 ;; 7574 esac 7575 fi 7576 done 7577 IFS=$lt_save_ifs 7578 else 7579 lt_cv_path_LD=$LD # Let the user override the test with a path. 7580 fi 7581 fi 7582 7583 LD=$lt_cv_path_LD 7584 if test -n "$LD"; then 7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 7586 $as_echo "$LD" >&6; } 7587 else 7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7589 $as_echo "no" >&6; } 7590 fi 7591 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 7593 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 7594 if ${lt_cv_prog_gnu_ld+:} false; then : 7595 $as_echo_n "(cached) " >&6 7596 else 7597 # I'd rather use --version here, but apparently some GNU lds only accept -v. 7598 case `$LD -v 2>&1 </dev/null` in 7599 *GNU* | *'with BFD'*) 7600 lt_cv_prog_gnu_ld=yes 7601 ;; 7602 *) 7603 lt_cv_prog_gnu_ld=no 7604 ;; 7605 esac 7606 fi 7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 7608 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 7609 with_gnu_ld=$lt_cv_prog_gnu_ld 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 7620 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 7621 if ${lt_cv_path_NM+:} false; then : 7622 $as_echo_n "(cached) " >&6 7623 else 7624 if test -n "$NM"; then 7625 # Let the user override the test. 7626 lt_cv_path_NM=$NM 7627 else 7628 lt_nm_to_check=${ac_tool_prefix}nm 7629 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 7630 lt_nm_to_check="$lt_nm_to_check nm" 7631 fi 7632 for lt_tmp_nm in $lt_nm_to_check; do 7633 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7634 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 7635 IFS=$lt_save_ifs 7636 test -z "$ac_dir" && ac_dir=. 7637 tmp_nm=$ac_dir/$lt_tmp_nm 7638 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 7639 # Check to see if the nm accepts a BSD-compat flag. 7640 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 7641 # nm: unknown option "B" ignored 7642 # Tru64's nm complains that /dev/null is an invalid object file 7643 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 7644 case $build_os in 7645 mingw*) lt_bad_file=conftest.nm/nofile ;; 7646 *) lt_bad_file=/dev/null ;; 7647 esac 7648 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 7649 *$lt_bad_file* | *'Invalid file or object type'*) 7650 lt_cv_path_NM="$tmp_nm -B" 7651 break 2 7652 ;; 7653 *) 7654 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 7655 */dev/null*) 7656 lt_cv_path_NM="$tmp_nm -p" 7657 break 2 7658 ;; 7659 *) 7660 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 7661 continue # so that we can try to find one that supports BSD flags 7662 ;; 7663 esac 7664 ;; 7665 esac 7666 fi 7667 done 7668 IFS=$lt_save_ifs 7669 done 7670 : ${lt_cv_path_NM=no} 7671 fi 7672 fi 7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 7674 $as_echo "$lt_cv_path_NM" >&6; } 7675 if test no != "$lt_cv_path_NM"; then 7676 NM=$lt_cv_path_NM 7677 else 7678 # Didn't find any BSD compatible name lister, look for dumpbin. 7679 if test -n "$DUMPBIN"; then : 7680 # Let the user override the test. 7681 else 7682 if test -n "$ac_tool_prefix"; then 7683 for ac_prog in dumpbin "link -dump" 7684 do 7685 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7686 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7688 $as_echo_n "checking for $ac_word... " >&6; } 7689 if ${ac_cv_prog_DUMPBIN+:} false; then : 7690 $as_echo_n "(cached) " >&6 7691 else 7692 if test -n "$DUMPBIN"; then 7693 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 7694 else 7695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7696 for as_dir in $PATH 7697 do 7698 IFS=$as_save_IFS 7699 test -z "$as_dir" && as_dir=. 7700 for ac_exec_ext in '' $ac_executable_extensions; do 7701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7702 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 7703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7704 break 2 7705 fi 7706 done 7707 done 7708 IFS=$as_save_IFS 7709 7710 fi 7711 fi 7712 DUMPBIN=$ac_cv_prog_DUMPBIN 7713 if test -n "$DUMPBIN"; then 7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 7715 $as_echo "$DUMPBIN" >&6; } 7716 else 7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7718 $as_echo "no" >&6; } 7719 fi 7720 7721 7722 test -n "$DUMPBIN" && break 7723 done 7724 fi 7725 if test -z "$DUMPBIN"; then 7726 ac_ct_DUMPBIN=$DUMPBIN 7727 for ac_prog in dumpbin "link -dump" 7728 do 7729 # Extract the first word of "$ac_prog", so it can be a program name with args. 7730 set dummy $ac_prog; ac_word=$2 7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7732 $as_echo_n "checking for $ac_word... " >&6; } 7733 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 7734 $as_echo_n "(cached) " >&6 7735 else 7736 if test -n "$ac_ct_DUMPBIN"; then 7737 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 7738 else 7739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7740 for as_dir in $PATH 7741 do 7742 IFS=$as_save_IFS 7743 test -z "$as_dir" && as_dir=. 7744 for ac_exec_ext in '' $ac_executable_extensions; do 7745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7746 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 7747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7748 break 2 7749 fi 7750 done 7751 done 7752 IFS=$as_save_IFS 7753 7754 fi 7755 fi 7756 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 7757 if test -n "$ac_ct_DUMPBIN"; then 7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 7759 $as_echo "$ac_ct_DUMPBIN" >&6; } 7760 else 7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7762 $as_echo "no" >&6; } 7763 fi 7764 7765 7766 test -n "$ac_ct_DUMPBIN" && break 7767 done 7768 7769 if test "x$ac_ct_DUMPBIN" = x; then 7770 DUMPBIN=":" 7771 else 7772 case $cross_compiling:$ac_tool_warned in 7773 yes:) 7774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7776 ac_tool_warned=yes ;; 7777 esac 7778 DUMPBIN=$ac_ct_DUMPBIN 7779 fi 7780 fi 7781 7782 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 7783 *COFF*) 7784 DUMPBIN="$DUMPBIN -symbols -headers" 7785 ;; 7786 *) 7787 DUMPBIN=: 7788 ;; 7789 esac 7790 fi 7791 7792 if test : != "$DUMPBIN"; then 7793 NM=$DUMPBIN 7794 fi 7795 fi 7796 test -z "$NM" && NM=nm 7797 7798 7799 7800 7801 7802 7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 7804 $as_echo_n "checking the name lister ($NM) interface... " >&6; } 7805 if ${lt_cv_nm_interface+:} false; then : 7806 $as_echo_n "(cached) " >&6 7807 else 7808 lt_cv_nm_interface="BSD nm" 7809 echo "int some_variable = 0;" > conftest.$ac_ext 7810 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 7811 (eval "$ac_compile" 2>conftest.err) 7812 cat conftest.err >&5 7813 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 7814 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 7815 cat conftest.err >&5 7816 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 7817 cat conftest.out >&5 7818 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 7819 lt_cv_nm_interface="MS dumpbin" 7820 fi 7821 rm -f conftest* 7822 fi 7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 7824 $as_echo "$lt_cv_nm_interface" >&6; } 7825 7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 7827 $as_echo_n "checking whether ln -s works... " >&6; } 7828 LN_S=$as_ln_s 7829 if test "$LN_S" = "ln -s"; then 7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7831 $as_echo "yes" >&6; } 7832 else 7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 7834 $as_echo "no, using $LN_S" >&6; } 7835 fi 7836 7837 # find the maximum length of command line arguments 7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 7839 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 7840 if ${lt_cv_sys_max_cmd_len+:} false; then : 7841 $as_echo_n "(cached) " >&6 7842 else 7843 i=0 7844 teststring=ABCD 7845 7846 case $build_os in 7847 msdosdjgpp*) 7848 # On DJGPP, this test can blow up pretty badly due to problems in libc 7849 # (any single argument exceeding 2000 bytes causes a buffer overrun 7850 # during glob expansion). Even if it were fixed, the result of this 7851 # check would be larger than it should be. 7852 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7853 ;; 7854 7855 gnu*) 7856 # Under GNU Hurd, this test is not required because there is 7857 # no limit to the length of command line arguments. 7858 # Libtool will interpret -1 as no limit whatsoever 7859 lt_cv_sys_max_cmd_len=-1; 7860 ;; 7861 7862 cygwin* | mingw* | cegcc*) 7863 # On Win9x/ME, this test blows up -- it succeeds, but takes 7864 # about 5 minutes as the teststring grows exponentially. 7865 # Worse, since 9x/ME are not pre-emptively multitasking, 7866 # you end up with a "frozen" computer, even though with patience 7867 # the test eventually succeeds (with a max line length of 256k). 7868 # Instead, let's just punt: use the minimum linelength reported by 7869 # all of the supported platforms: 8192 (on NT/2K/XP). 7870 lt_cv_sys_max_cmd_len=8192; 7871 ;; 7872 7873 mint*) 7874 # On MiNT this can take a long time and run out of memory. 7875 lt_cv_sys_max_cmd_len=8192; 7876 ;; 7877 7878 amigaos*) 7879 # On AmigaOS with pdksh, this test takes hours, literally. 7880 # So we just punt and use a minimum line length of 8192. 7881 lt_cv_sys_max_cmd_len=8192; 7882 ;; 7883 7884 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 7885 # This has been around since 386BSD, at least. Likely further. 7886 if test -x /sbin/sysctl; then 7887 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7888 elif test -x /usr/sbin/sysctl; then 7889 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7890 else 7891 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7892 fi 7893 # And add a safety zone 7894 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7895 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7896 ;; 7897 7898 interix*) 7899 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7900 lt_cv_sys_max_cmd_len=196608 7901 ;; 7902 7903 os2*) 7904 # The test takes a long time on OS/2. 7905 lt_cv_sys_max_cmd_len=8192 7906 ;; 7907 7908 osf*) 7909 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7910 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7911 # nice to cause kernel panics so lets avoid the loop below. 7912 # First set a reasonable default. 7913 lt_cv_sys_max_cmd_len=16384 7914 # 7915 if test -x /sbin/sysconfig; then 7916 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7917 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7918 esac 7919 fi 7920 ;; 7921 sco3.2v5*) 7922 lt_cv_sys_max_cmd_len=102400 7923 ;; 7924 sysv5* | sco5v6* | sysv4.2uw2*) 7925 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7926 if test -n "$kargmax"; then 7927 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7928 else 7929 lt_cv_sys_max_cmd_len=32768 7930 fi 7931 ;; 7932 *) 7933 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 7934 if test -n "$lt_cv_sys_max_cmd_len" && \ 7935 test undefined != "$lt_cv_sys_max_cmd_len"; then 7936 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7937 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7938 else 7939 # Make teststring a little bigger before we do anything with it. 7940 # a 1K string should be a reasonable start. 7941 for i in 1 2 3 4 5 6 7 8; do 7942 teststring=$teststring$teststring 7943 done 7944 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7945 # If test is not a shell built-in, we'll probably end up computing a 7946 # maximum length that is only half of the actual maximum length, but 7947 # we can't tell. 7948 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 7949 = "X$teststring$teststring"; } >/dev/null 2>&1 && 7950 test 17 != "$i" # 1/2 MB should be enough 7951 do 7952 i=`expr $i + 1` 7953 teststring=$teststring$teststring 7954 done 7955 # Only check the string length outside the loop. 7956 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 7957 teststring= 7958 # Add a significant safety factor because C++ compilers can tack on 7959 # massive amounts of additional arguments before passing them to the 7960 # linker. It appears as though 1/2 is a usable value. 7961 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7962 fi 7963 ;; 7964 esac 7965 7966 fi 7967 7968 if test -n "$lt_cv_sys_max_cmd_len"; then 7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 7970 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } 7971 else 7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 7973 $as_echo "none" >&6; } 7974 fi 7975 max_cmd_len=$lt_cv_sys_max_cmd_len 7976 7977 7978 7979 7980 7981 7982 : ${CP="cp -f"} 7983 : ${MV="mv -f"} 7984 : ${RM="rm -f"} 7985 7986 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7987 lt_unset=unset 7988 else 7989 lt_unset=false 7990 fi 7991 7992 7993 7994 7995 7996 # test EBCDIC or ASCII 7997 case `echo X|tr X '\101'` in 7998 A) # ASCII based system 7999 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 8000 lt_SP2NL='tr \040 \012' 8001 lt_NL2SP='tr \015\012 \040\040' 8002 ;; 8003 *) # EBCDIC based system 8004 lt_SP2NL='tr \100 \n' 8005 lt_NL2SP='tr \r\n \100\100' 8006 ;; 8007 esac 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 8018 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } 8019 if ${lt_cv_to_host_file_cmd+:} false; then : 8020 $as_echo_n "(cached) " >&6 8021 else 8022 case $host in 8023 *-*-mingw* ) 8024 case $build in 8025 *-*-mingw* ) # actually msys 8026 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 8027 ;; 8028 *-*-cygwin* ) 8029 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 8030 ;; 8031 * ) # otherwise, assume *nix 8032 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 8033 ;; 8034 esac 8035 ;; 8036 *-*-cygwin* ) 8037 case $build in 8038 *-*-mingw* ) # actually msys 8039 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 8040 ;; 8041 *-*-cygwin* ) 8042 lt_cv_to_host_file_cmd=func_convert_file_noop 8043 ;; 8044 * ) # otherwise, assume *nix 8045 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 8046 ;; 8047 esac 8048 ;; 8049 * ) # unhandled hosts (and "normal" native builds) 8050 lt_cv_to_host_file_cmd=func_convert_file_noop 8051 ;; 8052 esac 8053 8054 fi 8055 8056 to_host_file_cmd=$lt_cv_to_host_file_cmd 8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 8058 $as_echo "$lt_cv_to_host_file_cmd" >&6; } 8059 8060 8061 8062 8063 8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 8065 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 8066 if ${lt_cv_to_tool_file_cmd+:} false; then : 8067 $as_echo_n "(cached) " >&6 8068 else 8069 #assume ordinary cross tools, or native build. 8070 lt_cv_to_tool_file_cmd=func_convert_file_noop 8071 case $host in 8072 *-*-mingw* ) 8073 case $build in 8074 *-*-mingw* ) # actually msys 8075 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 8076 ;; 8077 esac 8078 ;; 8079 esac 8080 8081 fi 8082 8083 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 8085 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } 8086 8087 8088 8089 8090 8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 8092 $as_echo_n "checking for $LD option to reload object files... " >&6; } 8093 if ${lt_cv_ld_reload_flag+:} false; then : 8094 $as_echo_n "(cached) " >&6 8095 else 8096 lt_cv_ld_reload_flag='-r' 8097 fi 8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 8099 $as_echo "$lt_cv_ld_reload_flag" >&6; } 8100 reload_flag=$lt_cv_ld_reload_flag 8101 case $reload_flag in 8102 "" | " "*) ;; 8103 *) reload_flag=" $reload_flag" ;; 8104 esac 8105 reload_cmds='$LD$reload_flag -o $output$reload_objs' 8106 case $host_os in 8107 cygwin* | mingw* | pw32* | cegcc*) 8108 if test yes != "$GCC"; then 8109 reload_cmds=false 8110 fi 8111 ;; 8112 darwin*) 8113 if test yes = "$GCC"; then 8114 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 8115 else 8116 reload_cmds='$LD$reload_flag -o $output$reload_objs' 8117 fi 8118 ;; 8119 esac 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 if test -n "$ac_tool_prefix"; then 8130 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8131 set dummy ${ac_tool_prefix}objdump; ac_word=$2 8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8133 $as_echo_n "checking for $ac_word... " >&6; } 8134 if ${ac_cv_prog_OBJDUMP+:} false; then : 8135 $as_echo_n "(cached) " >&6 8136 else 8137 if test -n "$OBJDUMP"; then 8138 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8139 else 8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8141 for as_dir in $PATH 8142 do 8143 IFS=$as_save_IFS 8144 test -z "$as_dir" && as_dir=. 8145 for ac_exec_ext in '' $ac_executable_extensions; do 8146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8147 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8149 break 2 8150 fi 8151 done 8152 done 8153 IFS=$as_save_IFS 8154 8155 fi 8156 fi 8157 OBJDUMP=$ac_cv_prog_OBJDUMP 8158 if test -n "$OBJDUMP"; then 8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8160 $as_echo "$OBJDUMP" >&6; } 8161 else 8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8163 $as_echo "no" >&6; } 8164 fi 8165 8166 8167 fi 8168 if test -z "$ac_cv_prog_OBJDUMP"; then 8169 ac_ct_OBJDUMP=$OBJDUMP 8170 # Extract the first word of "objdump", so it can be a program name with args. 8171 set dummy objdump; ac_word=$2 8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8173 $as_echo_n "checking for $ac_word... " >&6; } 8174 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8175 $as_echo_n "(cached) " >&6 8176 else 8177 if test -n "$ac_ct_OBJDUMP"; then 8178 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8179 else 8180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8181 for as_dir in $PATH 8182 do 8183 IFS=$as_save_IFS 8184 test -z "$as_dir" && as_dir=. 8185 for ac_exec_ext in '' $ac_executable_extensions; do 8186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8187 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8189 break 2 8190 fi 8191 done 8192 done 8193 IFS=$as_save_IFS 8194 8195 fi 8196 fi 8197 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8198 if test -n "$ac_ct_OBJDUMP"; then 8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8200 $as_echo "$ac_ct_OBJDUMP" >&6; } 8201 else 8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8203 $as_echo "no" >&6; } 8204 fi 8205 8206 if test "x$ac_ct_OBJDUMP" = x; then 8207 OBJDUMP="false" 8208 else 8209 case $cross_compiling:$ac_tool_warned in 8210 yes:) 8211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8213 ac_tool_warned=yes ;; 8214 esac 8215 OBJDUMP=$ac_ct_OBJDUMP 8216 fi 8217 else 8218 OBJDUMP="$ac_cv_prog_OBJDUMP" 8219 fi 8220 8221 test -z "$OBJDUMP" && OBJDUMP=objdump 8222 8223 8224 8225 8226 8227 8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 8229 $as_echo_n "checking how to recognize dependent libraries... " >&6; } 8230 if ${lt_cv_deplibs_check_method+:} false; then : 8231 $as_echo_n "(cached) " >&6 8232 else 8233 lt_cv_file_magic_cmd='$MAGIC_CMD' 8234 lt_cv_file_magic_test_file= 8235 lt_cv_deplibs_check_method='unknown' 8236 # Need to set the preceding variable on all platforms that support 8237 # interlibrary dependencies. 8238 # 'none' -- dependencies not supported. 8239 # 'unknown' -- same as none, but documents that we really don't know. 8240 # 'pass_all' -- all dependencies passed with no checks. 8241 # 'test_compile' -- check by making test program. 8242 # 'file_magic [[regex]]' -- check by looking for files in library path 8243 # that responds to the $file_magic_cmd with a given extended regex. 8244 # If you have 'file' or equivalent on your system and you're not sure 8245 # whether 'pass_all' will *always* work, you probably want this one. 8246 8247 case $host_os in 8248 aix[4-9]*) 8249 lt_cv_deplibs_check_method=pass_all 8250 ;; 8251 8252 beos*) 8253 lt_cv_deplibs_check_method=pass_all 8254 ;; 8255 8256 bsdi[45]*) 8257 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 8258 lt_cv_file_magic_cmd='/usr/bin/file -L' 8259 lt_cv_file_magic_test_file=/shlib/libc.so 8260 ;; 8261 8262 cygwin*) 8263 # func_win32_libid is a shell function defined in ltmain.sh 8264 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8265 lt_cv_file_magic_cmd='func_win32_libid' 8266 ;; 8267 8268 mingw* | pw32*) 8269 # Base MSYS/MinGW do not provide the 'file' command needed by 8270 # func_win32_libid shell function, so use a weaker test based on 'objdump', 8271 # unless we find 'file', for example because we are cross-compiling. 8272 if ( file / ) >/dev/null 2>&1; then 8273 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8274 lt_cv_file_magic_cmd='func_win32_libid' 8275 else 8276 # Keep this pattern in sync with the one in func_win32_libid. 8277 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 8278 lt_cv_file_magic_cmd='$OBJDUMP -f' 8279 fi 8280 ;; 8281 8282 cegcc*) 8283 # use the weaker test based on 'objdump'. See mingw*. 8284 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 8285 lt_cv_file_magic_cmd='$OBJDUMP -f' 8286 ;; 8287 8288 darwin* | rhapsody*) 8289 lt_cv_deplibs_check_method=pass_all 8290 ;; 8291 8292 freebsd* | dragonfly*) 8293 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8294 case $host_cpu in 8295 i*86 ) 8296 # Not sure whether the presence of OpenBSD here was a mistake. 8297 # Let's accept both of them until this is cleared up. 8298 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 8299 lt_cv_file_magic_cmd=/usr/bin/file 8300 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 8301 ;; 8302 esac 8303 else 8304 lt_cv_deplibs_check_method=pass_all 8305 fi 8306 ;; 8307 8308 haiku*) 8309 lt_cv_deplibs_check_method=pass_all 8310 ;; 8311 8312 hpux10.20* | hpux11*) 8313 lt_cv_file_magic_cmd=/usr/bin/file 8314 case $host_cpu in 8315 ia64*) 8316 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 8317 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 8318 ;; 8319 hppa*64*) 8320 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]' 8321 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 8322 ;; 8323 *) 8324 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 8325 lt_cv_file_magic_test_file=/usr/lib/libc.sl 8326 ;; 8327 esac 8328 ;; 8329 8330 interix[3-9]*) 8331 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 8332 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 8333 ;; 8334 8335 irix5* | irix6* | nonstopux*) 8336 case $LD in 8337 *-32|*"-32 ") libmagic=32-bit;; 8338 *-n32|*"-n32 ") libmagic=N32;; 8339 *-64|*"-64 ") libmagic=64-bit;; 8340 *) libmagic=never-match;; 8341 esac 8342 lt_cv_deplibs_check_method=pass_all 8343 ;; 8344 8345 # This must be glibc/ELF. 8346 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8347 lt_cv_deplibs_check_method=pass_all 8348 ;; 8349 8350 netbsd* | netbsdelf*-gnu) 8351 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8352 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8353 else 8354 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 8355 fi 8356 ;; 8357 8358 newos6*) 8359 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 8360 lt_cv_file_magic_cmd=/usr/bin/file 8361 lt_cv_file_magic_test_file=/usr/lib/libnls.so 8362 ;; 8363 8364 *nto* | *qnx*) 8365 lt_cv_deplibs_check_method=pass_all 8366 ;; 8367 8368 openbsd* | bitrig*) 8369 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 8370 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 8371 else 8372 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8373 fi 8374 ;; 8375 8376 osf3* | osf4* | osf5*) 8377 lt_cv_deplibs_check_method=pass_all 8378 ;; 8379 8380 rdos*) 8381 lt_cv_deplibs_check_method=pass_all 8382 ;; 8383 8384 solaris*) 8385 lt_cv_deplibs_check_method=pass_all 8386 ;; 8387 8388 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8389 lt_cv_deplibs_check_method=pass_all 8390 ;; 8391 8392 sysv4 | sysv4.3*) 8393 case $host_vendor in 8394 motorola) 8395 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]' 8396 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 8397 ;; 8398 ncr) 8399 lt_cv_deplibs_check_method=pass_all 8400 ;; 8401 sequent) 8402 lt_cv_file_magic_cmd='/bin/file' 8403 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 8404 ;; 8405 sni) 8406 lt_cv_file_magic_cmd='/bin/file' 8407 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 8408 lt_cv_file_magic_test_file=/lib/libc.so 8409 ;; 8410 siemens) 8411 lt_cv_deplibs_check_method=pass_all 8412 ;; 8413 pc) 8414 lt_cv_deplibs_check_method=pass_all 8415 ;; 8416 esac 8417 ;; 8418 8419 tpf*) 8420 lt_cv_deplibs_check_method=pass_all 8421 ;; 8422 os2*) 8423 lt_cv_deplibs_check_method=pass_all 8424 ;; 8425 esac 8426 8427 fi 8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 8429 $as_echo "$lt_cv_deplibs_check_method" >&6; } 8430 8431 file_magic_glob= 8432 want_nocaseglob=no 8433 if test "$build" = "$host"; then 8434 case $host_os in 8435 mingw* | pw32*) 8436 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 8437 want_nocaseglob=yes 8438 else 8439 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 8440 fi 8441 ;; 8442 esac 8443 fi 8444 8445 file_magic_cmd=$lt_cv_file_magic_cmd 8446 deplibs_check_method=$lt_cv_deplibs_check_method 8447 test -z "$deplibs_check_method" && deplibs_check_method=unknown 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 if test -n "$ac_tool_prefix"; then 8471 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8472 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8474 $as_echo_n "checking for $ac_word... " >&6; } 8475 if ${ac_cv_prog_DLLTOOL+:} false; then : 8476 $as_echo_n "(cached) " >&6 8477 else 8478 if test -n "$DLLTOOL"; then 8479 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8480 else 8481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8482 for as_dir in $PATH 8483 do 8484 IFS=$as_save_IFS 8485 test -z "$as_dir" && as_dir=. 8486 for ac_exec_ext in '' $ac_executable_extensions; do 8487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8488 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8490 break 2 8491 fi 8492 done 8493 done 8494 IFS=$as_save_IFS 8495 8496 fi 8497 fi 8498 DLLTOOL=$ac_cv_prog_DLLTOOL 8499 if test -n "$DLLTOOL"; then 8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8501 $as_echo "$DLLTOOL" >&6; } 8502 else 8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8504 $as_echo "no" >&6; } 8505 fi 8506 8507 8508 fi 8509 if test -z "$ac_cv_prog_DLLTOOL"; then 8510 ac_ct_DLLTOOL=$DLLTOOL 8511 # Extract the first word of "dlltool", so it can be a program name with args. 8512 set dummy dlltool; ac_word=$2 8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8514 $as_echo_n "checking for $ac_word... " >&6; } 8515 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8516 $as_echo_n "(cached) " >&6 8517 else 8518 if test -n "$ac_ct_DLLTOOL"; then 8519 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8520 else 8521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8522 for as_dir in $PATH 8523 do 8524 IFS=$as_save_IFS 8525 test -z "$as_dir" && as_dir=. 8526 for ac_exec_ext in '' $ac_executable_extensions; do 8527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8528 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8530 break 2 8531 fi 8532 done 8533 done 8534 IFS=$as_save_IFS 8535 8536 fi 8537 fi 8538 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8539 if test -n "$ac_ct_DLLTOOL"; then 8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8541 $as_echo "$ac_ct_DLLTOOL" >&6; } 8542 else 8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8544 $as_echo "no" >&6; } 8545 fi 8546 8547 if test "x$ac_ct_DLLTOOL" = x; then 8548 DLLTOOL="false" 8549 else 8550 case $cross_compiling:$ac_tool_warned in 8551 yes:) 8552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8554 ac_tool_warned=yes ;; 8555 esac 8556 DLLTOOL=$ac_ct_DLLTOOL 8557 fi 8558 else 8559 DLLTOOL="$ac_cv_prog_DLLTOOL" 8560 fi 8561 8562 test -z "$DLLTOOL" && DLLTOOL=dlltool 8563 8564 8565 8566 8567 8568 8569 8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 8571 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } 8572 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 8573 $as_echo_n "(cached) " >&6 8574 else 8575 lt_cv_sharedlib_from_linklib_cmd='unknown' 8576 8577 case $host_os in 8578 cygwin* | mingw* | pw32* | cegcc*) 8579 # two different shell functions defined in ltmain.sh; 8580 # decide which one to use based on capabilities of $DLLTOOL 8581 case `$DLLTOOL --help 2>&1` in 8582 *--identify-strict*) 8583 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 8584 ;; 8585 *) 8586 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 8587 ;; 8588 esac 8589 ;; 8590 *) 8591 # fallback: assume linklib IS sharedlib 8592 lt_cv_sharedlib_from_linklib_cmd=$ECHO 8593 ;; 8594 esac 8595 8596 fi 8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 8598 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 8599 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 8600 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 8601 8602 8603 8604 8605 8606 8607 8608 if test -n "$ac_tool_prefix"; then 8609 for ac_prog in ar 8610 do 8611 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8612 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8614 $as_echo_n "checking for $ac_word... " >&6; } 8615 if ${ac_cv_prog_AR+:} false; then : 8616 $as_echo_n "(cached) " >&6 8617 else 8618 if test -n "$AR"; then 8619 ac_cv_prog_AR="$AR" # Let the user override the test. 8620 else 8621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8622 for as_dir in $PATH 8623 do 8624 IFS=$as_save_IFS 8625 test -z "$as_dir" && as_dir=. 8626 for ac_exec_ext in '' $ac_executable_extensions; do 8627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8628 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 8629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8630 break 2 8631 fi 8632 done 8633 done 8634 IFS=$as_save_IFS 8635 8636 fi 8637 fi 8638 AR=$ac_cv_prog_AR 8639 if test -n "$AR"; then 8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8641 $as_echo "$AR" >&6; } 8642 else 8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8644 $as_echo "no" >&6; } 8645 fi 8646 8647 8648 test -n "$AR" && break 8649 done 8650 fi 8651 if test -z "$AR"; then 8652 ac_ct_AR=$AR 8653 for ac_prog in ar 8654 do 8655 # Extract the first word of "$ac_prog", so it can be a program name with args. 8656 set dummy $ac_prog; ac_word=$2 8657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8658 $as_echo_n "checking for $ac_word... " >&6; } 8659 if ${ac_cv_prog_ac_ct_AR+:} false; then : 8660 $as_echo_n "(cached) " >&6 8661 else 8662 if test -n "$ac_ct_AR"; then 8663 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8664 else 8665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8666 for as_dir in $PATH 8667 do 8668 IFS=$as_save_IFS 8669 test -z "$as_dir" && as_dir=. 8670 for ac_exec_ext in '' $ac_executable_extensions; do 8671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8672 ac_cv_prog_ac_ct_AR="$ac_prog" 8673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8674 break 2 8675 fi 8676 done 8677 done 8678 IFS=$as_save_IFS 8679 8680 fi 8681 fi 8682 ac_ct_AR=$ac_cv_prog_ac_ct_AR 8683 if test -n "$ac_ct_AR"; then 8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8685 $as_echo "$ac_ct_AR" >&6; } 8686 else 8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8688 $as_echo "no" >&6; } 8689 fi 8690 8691 8692 test -n "$ac_ct_AR" && break 8693 done 8694 8695 if test "x$ac_ct_AR" = x; then 8696 AR="false" 8697 else 8698 case $cross_compiling:$ac_tool_warned in 8699 yes:) 8700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8702 ac_tool_warned=yes ;; 8703 esac 8704 AR=$ac_ct_AR 8705 fi 8706 fi 8707 8708 : ${AR=ar} 8709 : ${AR_FLAGS=cru} 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 8722 $as_echo_n "checking for archiver @FILE support... " >&6; } 8723 if ${lt_cv_ar_at_file+:} false; then : 8724 $as_echo_n "(cached) " >&6 8725 else 8726 lt_cv_ar_at_file=no 8727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8728 /* end confdefs.h. */ 8729 8730 int main (void) 8731 { 8732 8733 ; 8734 return 0; 8735 } 8736 _ACEOF 8737 if ac_fn_c_try_compile "$LINENO"; then : 8738 echo conftest.$ac_objext > conftest.lst 8739 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 8740 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8741 (eval $lt_ar_try) 2>&5 8742 ac_status=$? 8743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8744 test $ac_status = 0; } 8745 if test 0 -eq "$ac_status"; then 8746 # Ensure the archiver fails upon bogus file names. 8747 rm -f conftest.$ac_objext libconftest.a 8748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8749 (eval $lt_ar_try) 2>&5 8750 ac_status=$? 8751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8752 test $ac_status = 0; } 8753 if test 0 -ne "$ac_status"; then 8754 lt_cv_ar_at_file=@ 8755 fi 8756 fi 8757 rm -f conftest.* libconftest.a 8758 8759 fi 8760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8761 8762 fi 8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 8764 $as_echo "$lt_cv_ar_at_file" >&6; } 8765 8766 if test no = "$lt_cv_ar_at_file"; then 8767 archiver_list_spec= 8768 else 8769 archiver_list_spec=$lt_cv_ar_at_file 8770 fi 8771 8772 8773 8774 8775 8776 8777 8778 if test -n "$ac_tool_prefix"; then 8779 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8780 set dummy ${ac_tool_prefix}strip; ac_word=$2 8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8782 $as_echo_n "checking for $ac_word... " >&6; } 8783 if ${ac_cv_prog_STRIP+:} false; then : 8784 $as_echo_n "(cached) " >&6 8785 else 8786 if test -n "$STRIP"; then 8787 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8788 else 8789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8790 for as_dir in $PATH 8791 do 8792 IFS=$as_save_IFS 8793 test -z "$as_dir" && as_dir=. 8794 for ac_exec_ext in '' $ac_executable_extensions; do 8795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8796 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8798 break 2 8799 fi 8800 done 8801 done 8802 IFS=$as_save_IFS 8803 8804 fi 8805 fi 8806 STRIP=$ac_cv_prog_STRIP 8807 if test -n "$STRIP"; then 8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 8809 $as_echo "$STRIP" >&6; } 8810 else 8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8812 $as_echo "no" >&6; } 8813 fi 8814 8815 8816 fi 8817 if test -z "$ac_cv_prog_STRIP"; then 8818 ac_ct_STRIP=$STRIP 8819 # Extract the first word of "strip", so it can be a program name with args. 8820 set dummy strip; ac_word=$2 8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8822 $as_echo_n "checking for $ac_word... " >&6; } 8823 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 8824 $as_echo_n "(cached) " >&6 8825 else 8826 if test -n "$ac_ct_STRIP"; then 8827 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8828 else 8829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8830 for as_dir in $PATH 8831 do 8832 IFS=$as_save_IFS 8833 test -z "$as_dir" && as_dir=. 8834 for ac_exec_ext in '' $ac_executable_extensions; do 8835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8836 ac_cv_prog_ac_ct_STRIP="strip" 8837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8838 break 2 8839 fi 8840 done 8841 done 8842 IFS=$as_save_IFS 8843 8844 fi 8845 fi 8846 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8847 if test -n "$ac_ct_STRIP"; then 8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 8849 $as_echo "$ac_ct_STRIP" >&6; } 8850 else 8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8852 $as_echo "no" >&6; } 8853 fi 8854 8855 if test "x$ac_ct_STRIP" = x; then 8856 STRIP=":" 8857 else 8858 case $cross_compiling:$ac_tool_warned in 8859 yes:) 8860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8862 ac_tool_warned=yes ;; 8863 esac 8864 STRIP=$ac_ct_STRIP 8865 fi 8866 else 8867 STRIP="$ac_cv_prog_STRIP" 8868 fi 8869 8870 test -z "$STRIP" && STRIP=: 8871 8872 8873 8874 8875 8876 8877 if test -n "$ac_tool_prefix"; then 8878 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8879 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8881 $as_echo_n "checking for $ac_word... " >&6; } 8882 if ${ac_cv_prog_RANLIB+:} false; then : 8883 $as_echo_n "(cached) " >&6 8884 else 8885 if test -n "$RANLIB"; then 8886 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8887 else 8888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8889 for as_dir in $PATH 8890 do 8891 IFS=$as_save_IFS 8892 test -z "$as_dir" && as_dir=. 8893 for ac_exec_ext in '' $ac_executable_extensions; do 8894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8895 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8897 break 2 8898 fi 8899 done 8900 done 8901 IFS=$as_save_IFS 8902 8903 fi 8904 fi 8905 RANLIB=$ac_cv_prog_RANLIB 8906 if test -n "$RANLIB"; then 8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8908 $as_echo "$RANLIB" >&6; } 8909 else 8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8911 $as_echo "no" >&6; } 8912 fi 8913 8914 8915 fi 8916 if test -z "$ac_cv_prog_RANLIB"; then 8917 ac_ct_RANLIB=$RANLIB 8918 # Extract the first word of "ranlib", so it can be a program name with args. 8919 set dummy ranlib; ac_word=$2 8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8921 $as_echo_n "checking for $ac_word... " >&6; } 8922 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 8923 $as_echo_n "(cached) " >&6 8924 else 8925 if test -n "$ac_ct_RANLIB"; then 8926 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8927 else 8928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8929 for as_dir in $PATH 8930 do 8931 IFS=$as_save_IFS 8932 test -z "$as_dir" && as_dir=. 8933 for ac_exec_ext in '' $ac_executable_extensions; do 8934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8935 ac_cv_prog_ac_ct_RANLIB="ranlib" 8936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8937 break 2 8938 fi 8939 done 8940 done 8941 IFS=$as_save_IFS 8942 8943 fi 8944 fi 8945 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8946 if test -n "$ac_ct_RANLIB"; then 8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8948 $as_echo "$ac_ct_RANLIB" >&6; } 8949 else 8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8951 $as_echo "no" >&6; } 8952 fi 8953 8954 if test "x$ac_ct_RANLIB" = x; then 8955 RANLIB=":" 8956 else 8957 case $cross_compiling:$ac_tool_warned in 8958 yes:) 8959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8961 ac_tool_warned=yes ;; 8962 esac 8963 RANLIB=$ac_ct_RANLIB 8964 fi 8965 else 8966 RANLIB="$ac_cv_prog_RANLIB" 8967 fi 8968 8969 test -z "$RANLIB" && RANLIB=: 8970 8971 8972 8973 8974 8975 8976 # Determine commands to create old-style static archives. 8977 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 8978 old_postinstall_cmds='chmod 644 $oldlib' 8979 old_postuninstall_cmds= 8980 8981 if test -n "$RANLIB"; then 8982 case $host_os in 8983 bitrig* | openbsd*) 8984 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 8985 ;; 8986 *) 8987 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 8988 ;; 8989 esac 8990 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 8991 fi 8992 8993 case $host_os in 8994 darwin*) 8995 lock_old_archive_extraction=yes ;; 8996 *) 8997 lock_old_archive_extraction=no ;; 8998 esac 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 # If no C compiler was specified, use CC. 9039 LTCC=${LTCC-"$CC"} 9040 9041 # If no C compiler flags were specified, use CFLAGS. 9042 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9043 9044 # Allow CC to be a program name with arguments. 9045 compiler=$CC 9046 9047 9048 # Check for command to grab the raw symbol name followed by C symbol from nm. 9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 9050 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 9051 if ${lt_cv_sys_global_symbol_pipe+:} false; then : 9052 $as_echo_n "(cached) " >&6 9053 else 9054 9055 # These are sane defaults that work on at least a few old systems. 9056 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 9057 9058 # Character class describing NM global symbol codes. 9059 symcode='[BCDEGRST]' 9060 9061 # Regexp to match symbols that can be accessed directly from C. 9062 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 9063 9064 # Define system-specific variables. 9065 case $host_os in 9066 aix*) 9067 symcode='[BCDT]' 9068 ;; 9069 cygwin* | mingw* | pw32* | cegcc*) 9070 symcode='[ABCDGISTW]' 9071 ;; 9072 hpux*) 9073 if test ia64 = "$host_cpu"; then 9074 symcode='[ABCDEGRST]' 9075 fi 9076 ;; 9077 irix* | nonstopux*) 9078 symcode='[BCDEGRST]' 9079 ;; 9080 osf*) 9081 symcode='[BCDEGQRST]' 9082 ;; 9083 solaris*) 9084 symcode='[BDRT]' 9085 ;; 9086 sco3.2v5*) 9087 symcode='[DT]' 9088 ;; 9089 sysv4.2uw2*) 9090 symcode='[DT]' 9091 ;; 9092 sysv5* | sco5v6* | unixware* | OpenUNIX*) 9093 symcode='[ABDT]' 9094 ;; 9095 sysv4) 9096 symcode='[DFNSTU]' 9097 ;; 9098 esac 9099 9100 # If we're using GNU nm, then use its standard symbol codes. 9101 case `$NM -V 2>&1` in 9102 *GNU* | *'with BFD'*) 9103 symcode='[ABCDGIRSTW]' ;; 9104 esac 9105 9106 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9107 # Gets list of data symbols to import. 9108 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 9109 # Adjust the below global symbol transforms to fixup imported variables. 9110 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 9111 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 9112 lt_c_name_lib_hook="\ 9113 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 9114 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 9115 else 9116 # Disable hooks by default. 9117 lt_cv_sys_global_symbol_to_import= 9118 lt_cdecl_hook= 9119 lt_c_name_hook= 9120 lt_c_name_lib_hook= 9121 fi 9122 9123 # Transform an extracted symbol line into a proper C declaration. 9124 # Some systems (esp. on ia64) link data and code symbols differently, 9125 # so use this general approach. 9126 lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 9127 $lt_cdecl_hook\ 9128 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 9129 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 9130 9131 # Transform an extracted symbol line into symbol name and symbol address 9132 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 9133 $lt_c_name_hook\ 9134 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 9135 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 9136 9137 # Transform an extracted symbol line into symbol name with lib prefix and 9138 # symbol address. 9139 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 9140 $lt_c_name_lib_hook\ 9141 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 9142 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 9143 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 9144 9145 # Handle CRLF in mingw tool chain 9146 opt_cr= 9147 case $build_os in 9148 mingw*) 9149 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 9150 ;; 9151 esac 9152 9153 # Try without a prefix underscore, then with it. 9154 for ac_symprfx in "" "_"; do 9155 9156 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 9157 symxfrm="\\1 $ac_symprfx\\2 \\2" 9158 9159 # Write the raw and C identifiers. 9160 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9161 # Fake it for dumpbin and say T for any non-static function, 9162 # D for any global variable and I for any imported variable. 9163 # Also find C++ and __fastcall symbols from MSVC++, 9164 # which start with @ or ?. 9165 lt_cv_sys_global_symbol_pipe="$AWK '"\ 9166 " {last_section=section; section=\$ 3};"\ 9167 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 9168 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 9169 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 9170 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 9171 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 9172 " \$ 0!~/External *\|/{next};"\ 9173 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 9174 " {if(hide[section]) next};"\ 9175 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 9176 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 9177 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 9178 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 9179 " ' prfx=^$ac_symprfx" 9180 else 9181 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 9182 fi 9183 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 9184 9185 # Check to see that the pipe works correctly. 9186 pipe_works=no 9187 9188 rm -f conftest* 9189 cat > conftest.$ac_ext <<_LT_EOF 9190 #ifdef __cplusplus 9191 extern "C" { 9192 #endif 9193 char nm_test_var; 9194 void nm_test_func(void); 9195 void nm_test_func(void){} 9196 #ifdef __cplusplus 9197 } 9198 #endif 9199 int main(){nm_test_var='a';nm_test_func();return(0);} 9200 _LT_EOF 9201 9202 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9203 (eval $ac_compile) 2>&5 9204 ac_status=$? 9205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9206 test $ac_status = 0; }; then 9207 # Now try to grab the symbols. 9208 nlist=conftest.nm 9209 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 9210 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 9211 ac_status=$? 9212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9213 test $ac_status = 0; } && test -s "$nlist"; then 9214 # Try sorting and uniquifying the output. 9215 if sort "$nlist" | uniq > "$nlist"T; then 9216 mv -f "$nlist"T "$nlist" 9217 else 9218 rm -f "$nlist"T 9219 fi 9220 9221 # Make sure that we snagged all the symbols we need. 9222 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 9223 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 9224 cat <<_LT_EOF > conftest.$ac_ext 9225 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 9226 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 9227 /* DATA imports from DLLs on WIN32 can't be const, because runtime 9228 relocations are performed -- see ld's documentation on pseudo-relocs. */ 9229 # define LT_DLSYM_CONST 9230 #elif defined __osf__ 9231 /* This system does not cope well with relocations in const data. */ 9232 # define LT_DLSYM_CONST 9233 #else 9234 # define LT_DLSYM_CONST const 9235 #endif 9236 9237 #ifdef __cplusplus 9238 extern "C" { 9239 #endif 9240 9241 _LT_EOF 9242 # Now generate the symbol file. 9243 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 9244 9245 cat <<_LT_EOF >> conftest.$ac_ext 9246 9247 /* The mapping between symbol names and symbols. */ 9248 LT_DLSYM_CONST struct { 9249 const char *name; 9250 void *address; 9251 } 9252 lt__PROGRAM__LTX_preloaded_symbols[] = 9253 { 9254 { "@PROGRAM@", (void *) 0 }, 9255 _LT_EOF 9256 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 9257 cat <<\_LT_EOF >> conftest.$ac_ext 9258 {0, (void *) 0} 9259 }; 9260 9261 /* This works around a problem in FreeBSD linker */ 9262 #ifdef FREEBSD_WORKAROUND 9263 static const void *lt_preloaded_setup() { 9264 return lt__PROGRAM__LTX_preloaded_symbols; 9265 } 9266 #endif 9267 9268 #ifdef __cplusplus 9269 } 9270 #endif 9271 _LT_EOF 9272 # Now try linking the two files. 9273 mv -f conftest.$ac_objext conftstm.$ac_objext 9274 lt_globsym_save_LIBS=$LIBS 9275 lt_globsym_save_CFLAGS=$CFLAGS 9276 LIBS=conftstm.$ac_objext 9277 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9278 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 9279 (eval $ac_link) 2>&5 9280 ac_status=$? 9281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9282 test $ac_status = 0; } && test -s conftest$ac_exeext; then 9283 pipe_works=yes 9284 fi 9285 LIBS=$lt_globsym_save_LIBS 9286 CFLAGS=$lt_globsym_save_CFLAGS 9287 else 9288 echo "cannot find nm_test_func in $nlist" >&5 9289 fi 9290 else 9291 echo "cannot find nm_test_var in $nlist" >&5 9292 fi 9293 else 9294 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9295 fi 9296 else 9297 echo "$progname: failed program was:" >&5 9298 cat conftest.$ac_ext >&5 9299 fi 9300 rm -rf conftest* conftst* 9301 9302 # Do not use the global_symbol_pipe unless it works. 9303 if test yes = "$pipe_works"; then 9304 break 9305 else 9306 lt_cv_sys_global_symbol_pipe= 9307 fi 9308 done 9309 9310 fi 9311 9312 if test -z "$lt_cv_sys_global_symbol_pipe"; then 9313 lt_cv_sys_global_symbol_to_cdecl= 9314 fi 9315 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 9317 $as_echo "failed" >&6; } 9318 else 9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 9320 $as_echo "ok" >&6; } 9321 fi 9322 9323 # Response file support. 9324 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9325 nm_file_list_spec='@' 9326 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 9327 nm_file_list_spec='@' 9328 fi 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 9367 $as_echo_n "checking for sysroot... " >&6; } 9368 9369 # Check whether --with-sysroot was given. 9370 if test "${with_sysroot+set}" = set; then : 9371 withval=$with_sysroot; 9372 else 9373 with_sysroot=no 9374 fi 9375 9376 9377 lt_sysroot= 9378 case $with_sysroot in #( 9379 yes) 9380 if test yes = "$GCC"; then 9381 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 9382 fi 9383 ;; #( 9384 /*) 9385 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 9386 ;; #( 9387 no|'') 9388 ;; #( 9389 *) 9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 9391 $as_echo "$with_sysroot" >&6; } 9392 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 9393 ;; 9394 esac 9395 9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 9397 $as_echo "${lt_sysroot:-no}" >&6; } 9398 9399 9400 9401 9402 9403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 9404 $as_echo_n "checking for a working dd... " >&6; } 9405 if ${ac_cv_path_lt_DD+:} false; then : 9406 $as_echo_n "(cached) " >&6 9407 else 9408 printf 0123456789abcdef0123456789abcdef >conftest.i 9409 cat conftest.i conftest.i >conftest2.i 9410 : ${lt_DD:=$DD} 9411 if test -z "$lt_DD"; then 9412 ac_path_lt_DD_found=false 9413 # Loop through the user's path and test for each of PROGNAME-LIST 9414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9415 for as_dir in $PATH 9416 do 9417 IFS=$as_save_IFS 9418 test -z "$as_dir" && as_dir=. 9419 for ac_prog in dd; do 9420 for ac_exec_ext in '' $ac_executable_extensions; do 9421 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 9422 as_fn_executable_p "$ac_path_lt_DD" || continue 9423 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 9424 cmp -s conftest.i conftest.out \ 9425 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 9426 fi 9427 $ac_path_lt_DD_found && break 3 9428 done 9429 done 9430 done 9431 IFS=$as_save_IFS 9432 if test -z "$ac_cv_path_lt_DD"; then 9433 : 9434 fi 9435 else 9436 ac_cv_path_lt_DD=$lt_DD 9437 fi 9438 9439 rm -f conftest.i conftest2.i conftest.out 9440 fi 9441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 9442 $as_echo "$ac_cv_path_lt_DD" >&6; } 9443 9444 9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 9446 $as_echo_n "checking how to truncate binary pipes... " >&6; } 9447 if ${lt_cv_truncate_bin+:} false; then : 9448 $as_echo_n "(cached) " >&6 9449 else 9450 printf 0123456789abcdef0123456789abcdef >conftest.i 9451 cat conftest.i conftest.i >conftest2.i 9452 lt_cv_truncate_bin= 9453 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 9454 cmp -s conftest.i conftest.out \ 9455 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 9456 fi 9457 rm -f conftest.i conftest2.i conftest.out 9458 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 9459 fi 9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 9461 $as_echo "$lt_cv_truncate_bin" >&6; } 9462 9463 9464 9465 9466 9467 9468 9469 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 9470 func_cc_basename () 9471 { 9472 for cc_temp in $*""; do 9473 case $cc_temp in 9474 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9475 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9476 \-*) ;; 9477 *) break;; 9478 esac 9479 done 9480 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 9481 } 9482 9483 # Check whether --enable-libtool-lock was given. 9484 if test "${enable_libtool_lock+set}" = set; then : 9485 enableval=$enable_libtool_lock; 9486 fi 9487 9488 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 9489 9490 # Some flags need to be propagated to the compiler or linker for good 9491 # libtool support. 9492 case $host in 9493 ia64-*-hpux*) 9494 # Find out what ABI is being produced by ac_compile, and set mode 9495 # options accordingly. 9496 echo 'int i;' > conftest.$ac_ext 9497 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9498 (eval $ac_compile) 2>&5 9499 ac_status=$? 9500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9501 test $ac_status = 0; }; then 9502 case `/usr/bin/file conftest.$ac_objext` in 9503 *ELF-32*) 9504 HPUX_IA64_MODE=32 9505 ;; 9506 *ELF-64*) 9507 HPUX_IA64_MODE=64 9508 ;; 9509 esac 9510 fi 9511 rm -rf conftest* 9512 ;; 9513 *-*-irix6*) 9514 # Find out what ABI is being produced by ac_compile, and set linker 9515 # options accordingly. 9516 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9517 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9518 (eval $ac_compile) 2>&5 9519 ac_status=$? 9520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9521 test $ac_status = 0; }; then 9522 if test yes = "$lt_cv_prog_gnu_ld"; then 9523 case `/usr/bin/file conftest.$ac_objext` in 9524 *32-bit*) 9525 LD="${LD-ld} -melf32bsmip" 9526 ;; 9527 *N32*) 9528 LD="${LD-ld} -melf32bmipn32" 9529 ;; 9530 *64-bit*) 9531 LD="${LD-ld} -melf64bmip" 9532 ;; 9533 esac 9534 else 9535 case `/usr/bin/file conftest.$ac_objext` in 9536 *32-bit*) 9537 LD="${LD-ld} -32" 9538 ;; 9539 *N32*) 9540 LD="${LD-ld} -n32" 9541 ;; 9542 *64-bit*) 9543 LD="${LD-ld} -64" 9544 ;; 9545 esac 9546 fi 9547 fi 9548 rm -rf conftest* 9549 ;; 9550 9551 mips64*-*linux*) 9552 # Find out what ABI is being produced by ac_compile, and set linker 9553 # options accordingly. 9554 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9556 (eval $ac_compile) 2>&5 9557 ac_status=$? 9558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9559 test $ac_status = 0; }; then 9560 emul=elf 9561 case `/usr/bin/file conftest.$ac_objext` in 9562 *32-bit*) 9563 emul="${emul}32" 9564 ;; 9565 *64-bit*) 9566 emul="${emul}64" 9567 ;; 9568 esac 9569 case `/usr/bin/file conftest.$ac_objext` in 9570 *MSB*) 9571 emul="${emul}btsmip" 9572 ;; 9573 *LSB*) 9574 emul="${emul}ltsmip" 9575 ;; 9576 esac 9577 case `/usr/bin/file conftest.$ac_objext` in 9578 *N32*) 9579 emul="${emul}n32" 9580 ;; 9581 esac 9582 LD="${LD-ld} -m $emul" 9583 fi 9584 rm -rf conftest* 9585 ;; 9586 9587 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 9588 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 9589 # Find out what ABI is being produced by ac_compile, and set linker 9590 # options accordingly. Note that the listed cases only cover the 9591 # situations where additional linker options are needed (such as when 9592 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 9593 # vice versa); the common cases where no linker options are needed do 9594 # not appear in the list. 9595 echo 'int i;' > conftest.$ac_ext 9596 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9597 (eval $ac_compile) 2>&5 9598 ac_status=$? 9599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9600 test $ac_status = 0; }; then 9601 case `/usr/bin/file conftest.o` in 9602 *32-bit*) 9603 case $host in 9604 x86_64-*kfreebsd*-gnu) 9605 LD="${LD-ld} -m elf_i386_fbsd" 9606 ;; 9607 x86_64-*linux*) 9608 case `/usr/bin/file conftest.o` in 9609 *x86-64*) 9610 LD="${LD-ld} -m elf32_x86_64" 9611 ;; 9612 *) 9613 LD="${LD-ld} -m elf_i386" 9614 ;; 9615 esac 9616 ;; 9617 powerpc64le-*linux*) 9618 LD="${LD-ld} -m elf32lppclinux" 9619 ;; 9620 powerpc64-*linux*) 9621 LD="${LD-ld} -m elf32ppclinux" 9622 ;; 9623 s390x-*linux*) 9624 LD="${LD-ld} -m elf_s390" 9625 ;; 9626 sparc64-*linux*) 9627 LD="${LD-ld} -m elf32_sparc" 9628 ;; 9629 esac 9630 ;; 9631 *64-bit*) 9632 case $host in 9633 x86_64-*kfreebsd*-gnu) 9634 LD="${LD-ld} -m elf_x86_64_fbsd" 9635 ;; 9636 x86_64-*linux*) 9637 LD="${LD-ld} -m elf_x86_64" 9638 ;; 9639 powerpcle-*linux*) 9640 LD="${LD-ld} -m elf64lppc" 9641 ;; 9642 powerpc-*linux*) 9643 LD="${LD-ld} -m elf64ppc" 9644 ;; 9645 s390*-*linux*|s390*-*tpf*) 9646 LD="${LD-ld} -m elf64_s390" 9647 ;; 9648 sparc*-*linux*) 9649 LD="${LD-ld} -m elf64_sparc" 9650 ;; 9651 esac 9652 ;; 9653 esac 9654 fi 9655 rm -rf conftest* 9656 ;; 9657 9658 *-*-sco3.2v5*) 9659 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 9660 SAVE_CFLAGS=$CFLAGS 9661 CFLAGS="$CFLAGS -belf" 9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 9663 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } 9664 if ${lt_cv_cc_needs_belf+:} false; then : 9665 $as_echo_n "(cached) " >&6 9666 else 9667 ac_ext=c 9668 ac_cpp='$CPP $CPPFLAGS' 9669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9671 ac_compiler_gnu=$ac_cv_c_compiler_gnu 9672 9673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9674 /* end confdefs.h. */ 9675 9676 int main (void) 9677 { 9678 9679 ; 9680 return 0; 9681 } 9682 _ACEOF 9683 if ac_fn_c_try_link "$LINENO"; then : 9684 lt_cv_cc_needs_belf=yes 9685 else 9686 lt_cv_cc_needs_belf=no 9687 fi 9688 rm -f core conftest.err conftest.$ac_objext \ 9689 conftest$ac_exeext conftest.$ac_ext 9690 ac_ext=c 9691 ac_cpp='$CPP $CPPFLAGS' 9692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9694 ac_compiler_gnu=$ac_cv_c_compiler_gnu 9695 9696 fi 9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 9698 $as_echo "$lt_cv_cc_needs_belf" >&6; } 9699 if test yes != "$lt_cv_cc_needs_belf"; then 9700 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 9701 CFLAGS=$SAVE_CFLAGS 9702 fi 9703 ;; 9704 *-*solaris*) 9705 # Find out what ABI is being produced by ac_compile, and set linker 9706 # options accordingly. 9707 echo 'int i;' > conftest.$ac_ext 9708 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9709 (eval $ac_compile) 2>&5 9710 ac_status=$? 9711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9712 test $ac_status = 0; }; then 9713 case `/usr/bin/file conftest.o` in 9714 *64-bit*) 9715 case $lt_cv_prog_gnu_ld in 9716 yes*) 9717 case $host in 9718 i?86-*-solaris*|x86_64-*-solaris*) 9719 LD="${LD-ld} -m elf_x86_64" 9720 ;; 9721 sparc*-*-solaris*) 9722 LD="${LD-ld} -m elf64_sparc" 9723 ;; 9724 esac 9725 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 9726 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 9727 LD=${LD-ld}_sol2 9728 fi 9729 ;; 9730 *) 9731 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 9732 LD="${LD-ld} -64" 9733 fi 9734 ;; 9735 esac 9736 ;; 9737 esac 9738 fi 9739 rm -rf conftest* 9740 ;; 9741 esac 9742 9743 need_locks=$enable_libtool_lock 9744 9745 if test -n "$ac_tool_prefix"; then 9746 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 9747 set dummy ${ac_tool_prefix}mt; ac_word=$2 9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9749 $as_echo_n "checking for $ac_word... " >&6; } 9750 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 9751 $as_echo_n "(cached) " >&6 9752 else 9753 if test -n "$MANIFEST_TOOL"; then 9754 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 9755 else 9756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9757 for as_dir in $PATH 9758 do 9759 IFS=$as_save_IFS 9760 test -z "$as_dir" && as_dir=. 9761 for ac_exec_ext in '' $ac_executable_extensions; do 9762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9763 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 9764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9765 break 2 9766 fi 9767 done 9768 done 9769 IFS=$as_save_IFS 9770 9771 fi 9772 fi 9773 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 9774 if test -n "$MANIFEST_TOOL"; then 9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 9776 $as_echo "$MANIFEST_TOOL" >&6; } 9777 else 9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9779 $as_echo "no" >&6; } 9780 fi 9781 9782 9783 fi 9784 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 9785 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 9786 # Extract the first word of "mt", so it can be a program name with args. 9787 set dummy mt; ac_word=$2 9788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9789 $as_echo_n "checking for $ac_word... " >&6; } 9790 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 9791 $as_echo_n "(cached) " >&6 9792 else 9793 if test -n "$ac_ct_MANIFEST_TOOL"; then 9794 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 9795 else 9796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9797 for as_dir in $PATH 9798 do 9799 IFS=$as_save_IFS 9800 test -z "$as_dir" && as_dir=. 9801 for ac_exec_ext in '' $ac_executable_extensions; do 9802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9803 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 9804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9805 break 2 9806 fi 9807 done 9808 done 9809 IFS=$as_save_IFS 9810 9811 fi 9812 fi 9813 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 9814 if test -n "$ac_ct_MANIFEST_TOOL"; then 9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 9816 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 9817 else 9818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9819 $as_echo "no" >&6; } 9820 fi 9821 9822 if test "x$ac_ct_MANIFEST_TOOL" = x; then 9823 MANIFEST_TOOL=":" 9824 else 9825 case $cross_compiling:$ac_tool_warned in 9826 yes:) 9827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9829 ac_tool_warned=yes ;; 9830 esac 9831 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 9832 fi 9833 else 9834 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 9835 fi 9836 9837 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 9838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 9839 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 9840 if ${lt_cv_path_mainfest_tool+:} false; then : 9841 $as_echo_n "(cached) " >&6 9842 else 9843 lt_cv_path_mainfest_tool=no 9844 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 9845 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 9846 cat conftest.err >&5 9847 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 9848 lt_cv_path_mainfest_tool=yes 9849 fi 9850 rm -f conftest* 9851 fi 9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 9853 $as_echo "$lt_cv_path_mainfest_tool" >&6; } 9854 if test yes != "$lt_cv_path_mainfest_tool"; then 9855 MANIFEST_TOOL=: 9856 fi 9857 9858 9859 9860 9861 9862 9863 case $host_os in 9864 rhapsody* | darwin*) 9865 if test -n "$ac_tool_prefix"; then 9866 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 9867 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 9868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9869 $as_echo_n "checking for $ac_word... " >&6; } 9870 if ${ac_cv_prog_DSYMUTIL+:} false; then : 9871 $as_echo_n "(cached) " >&6 9872 else 9873 if test -n "$DSYMUTIL"; then 9874 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 9875 else 9876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9877 for as_dir in $PATH 9878 do 9879 IFS=$as_save_IFS 9880 test -z "$as_dir" && as_dir=. 9881 for ac_exec_ext in '' $ac_executable_extensions; do 9882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9883 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 9884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9885 break 2 9886 fi 9887 done 9888 done 9889 IFS=$as_save_IFS 9890 9891 fi 9892 fi 9893 DSYMUTIL=$ac_cv_prog_DSYMUTIL 9894 if test -n "$DSYMUTIL"; then 9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 9896 $as_echo "$DSYMUTIL" >&6; } 9897 else 9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9899 $as_echo "no" >&6; } 9900 fi 9901 9902 9903 fi 9904 if test -z "$ac_cv_prog_DSYMUTIL"; then 9905 ac_ct_DSYMUTIL=$DSYMUTIL 9906 # Extract the first word of "dsymutil", so it can be a program name with args. 9907 set dummy dsymutil; ac_word=$2 9908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9909 $as_echo_n "checking for $ac_word... " >&6; } 9910 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 9911 $as_echo_n "(cached) " >&6 9912 else 9913 if test -n "$ac_ct_DSYMUTIL"; then 9914 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 9915 else 9916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9917 for as_dir in $PATH 9918 do 9919 IFS=$as_save_IFS 9920 test -z "$as_dir" && as_dir=. 9921 for ac_exec_ext in '' $ac_executable_extensions; do 9922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9923 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 9924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9925 break 2 9926 fi 9927 done 9928 done 9929 IFS=$as_save_IFS 9930 9931 fi 9932 fi 9933 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 9934 if test -n "$ac_ct_DSYMUTIL"; then 9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 9936 $as_echo "$ac_ct_DSYMUTIL" >&6; } 9937 else 9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9939 $as_echo "no" >&6; } 9940 fi 9941 9942 if test "x$ac_ct_DSYMUTIL" = x; then 9943 DSYMUTIL=":" 9944 else 9945 case $cross_compiling:$ac_tool_warned in 9946 yes:) 9947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9949 ac_tool_warned=yes ;; 9950 esac 9951 DSYMUTIL=$ac_ct_DSYMUTIL 9952 fi 9953 else 9954 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 9955 fi 9956 9957 if test -n "$ac_tool_prefix"; then 9958 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 9959 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 9960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9961 $as_echo_n "checking for $ac_word... " >&6; } 9962 if ${ac_cv_prog_NMEDIT+:} false; then : 9963 $as_echo_n "(cached) " >&6 9964 else 9965 if test -n "$NMEDIT"; then 9966 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 9967 else 9968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9969 for as_dir in $PATH 9970 do 9971 IFS=$as_save_IFS 9972 test -z "$as_dir" && as_dir=. 9973 for ac_exec_ext in '' $ac_executable_extensions; do 9974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9975 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 9976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9977 break 2 9978 fi 9979 done 9980 done 9981 IFS=$as_save_IFS 9982 9983 fi 9984 fi 9985 NMEDIT=$ac_cv_prog_NMEDIT 9986 if test -n "$NMEDIT"; then 9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 9988 $as_echo "$NMEDIT" >&6; } 9989 else 9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9991 $as_echo "no" >&6; } 9992 fi 9993 9994 9995 fi 9996 if test -z "$ac_cv_prog_NMEDIT"; then 9997 ac_ct_NMEDIT=$NMEDIT 9998 # Extract the first word of "nmedit", so it can be a program name with args. 9999 set dummy nmedit; ac_word=$2 10000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10001 $as_echo_n "checking for $ac_word... " >&6; } 10002 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 10003 $as_echo_n "(cached) " >&6 10004 else 10005 if test -n "$ac_ct_NMEDIT"; then 10006 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 10007 else 10008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10009 for as_dir in $PATH 10010 do 10011 IFS=$as_save_IFS 10012 test -z "$as_dir" && as_dir=. 10013 for ac_exec_ext in '' $ac_executable_extensions; do 10014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10015 ac_cv_prog_ac_ct_NMEDIT="nmedit" 10016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10017 break 2 10018 fi 10019 done 10020 done 10021 IFS=$as_save_IFS 10022 10023 fi 10024 fi 10025 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 10026 if test -n "$ac_ct_NMEDIT"; then 10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 10028 $as_echo "$ac_ct_NMEDIT" >&6; } 10029 else 10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10031 $as_echo "no" >&6; } 10032 fi 10033 10034 if test "x$ac_ct_NMEDIT" = x; then 10035 NMEDIT=":" 10036 else 10037 case $cross_compiling:$ac_tool_warned in 10038 yes:) 10039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10041 ac_tool_warned=yes ;; 10042 esac 10043 NMEDIT=$ac_ct_NMEDIT 10044 fi 10045 else 10046 NMEDIT="$ac_cv_prog_NMEDIT" 10047 fi 10048 10049 if test -n "$ac_tool_prefix"; then 10050 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 10051 set dummy ${ac_tool_prefix}lipo; ac_word=$2 10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10053 $as_echo_n "checking for $ac_word... " >&6; } 10054 if ${ac_cv_prog_LIPO+:} false; then : 10055 $as_echo_n "(cached) " >&6 10056 else 10057 if test -n "$LIPO"; then 10058 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 10059 else 10060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10061 for as_dir in $PATH 10062 do 10063 IFS=$as_save_IFS 10064 test -z "$as_dir" && as_dir=. 10065 for ac_exec_ext in '' $ac_executable_extensions; do 10066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10067 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 10068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10069 break 2 10070 fi 10071 done 10072 done 10073 IFS=$as_save_IFS 10074 10075 fi 10076 fi 10077 LIPO=$ac_cv_prog_LIPO 10078 if test -n "$LIPO"; then 10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 10080 $as_echo "$LIPO" >&6; } 10081 else 10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10083 $as_echo "no" >&6; } 10084 fi 10085 10086 10087 fi 10088 if test -z "$ac_cv_prog_LIPO"; then 10089 ac_ct_LIPO=$LIPO 10090 # Extract the first word of "lipo", so it can be a program name with args. 10091 set dummy lipo; ac_word=$2 10092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10093 $as_echo_n "checking for $ac_word... " >&6; } 10094 if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 10095 $as_echo_n "(cached) " >&6 10096 else 10097 if test -n "$ac_ct_LIPO"; then 10098 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 10099 else 10100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10101 for as_dir in $PATH 10102 do 10103 IFS=$as_save_IFS 10104 test -z "$as_dir" && as_dir=. 10105 for ac_exec_ext in '' $ac_executable_extensions; do 10106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10107 ac_cv_prog_ac_ct_LIPO="lipo" 10108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10109 break 2 10110 fi 10111 done 10112 done 10113 IFS=$as_save_IFS 10114 10115 fi 10116 fi 10117 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 10118 if test -n "$ac_ct_LIPO"; then 10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 10120 $as_echo "$ac_ct_LIPO" >&6; } 10121 else 10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10123 $as_echo "no" >&6; } 10124 fi 10125 10126 if test "x$ac_ct_LIPO" = x; then 10127 LIPO=":" 10128 else 10129 case $cross_compiling:$ac_tool_warned in 10130 yes:) 10131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10132 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10133 ac_tool_warned=yes ;; 10134 esac 10135 LIPO=$ac_ct_LIPO 10136 fi 10137 else 10138 LIPO="$ac_cv_prog_LIPO" 10139 fi 10140 10141 if test -n "$ac_tool_prefix"; then 10142 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 10143 set dummy ${ac_tool_prefix}otool; ac_word=$2 10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10145 $as_echo_n "checking for $ac_word... " >&6; } 10146 if ${ac_cv_prog_OTOOL+:} false; then : 10147 $as_echo_n "(cached) " >&6 10148 else 10149 if test -n "$OTOOL"; then 10150 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 10151 else 10152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10153 for as_dir in $PATH 10154 do 10155 IFS=$as_save_IFS 10156 test -z "$as_dir" && as_dir=. 10157 for ac_exec_ext in '' $ac_executable_extensions; do 10158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10159 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 10160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10161 break 2 10162 fi 10163 done 10164 done 10165 IFS=$as_save_IFS 10166 10167 fi 10168 fi 10169 OTOOL=$ac_cv_prog_OTOOL 10170 if test -n "$OTOOL"; then 10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 10172 $as_echo "$OTOOL" >&6; } 10173 else 10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10175 $as_echo "no" >&6; } 10176 fi 10177 10178 10179 fi 10180 if test -z "$ac_cv_prog_OTOOL"; then 10181 ac_ct_OTOOL=$OTOOL 10182 # Extract the first word of "otool", so it can be a program name with args. 10183 set dummy otool; ac_word=$2 10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10185 $as_echo_n "checking for $ac_word... " >&6; } 10186 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 10187 $as_echo_n "(cached) " >&6 10188 else 10189 if test -n "$ac_ct_OTOOL"; then 10190 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 10191 else 10192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10193 for as_dir in $PATH 10194 do 10195 IFS=$as_save_IFS 10196 test -z "$as_dir" && as_dir=. 10197 for ac_exec_ext in '' $ac_executable_extensions; do 10198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10199 ac_cv_prog_ac_ct_OTOOL="otool" 10200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10201 break 2 10202 fi 10203 done 10204 done 10205 IFS=$as_save_IFS 10206 10207 fi 10208 fi 10209 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 10210 if test -n "$ac_ct_OTOOL"; then 10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 10212 $as_echo "$ac_ct_OTOOL" >&6; } 10213 else 10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10215 $as_echo "no" >&6; } 10216 fi 10217 10218 if test "x$ac_ct_OTOOL" = x; then 10219 OTOOL=":" 10220 else 10221 case $cross_compiling:$ac_tool_warned in 10222 yes:) 10223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10225 ac_tool_warned=yes ;; 10226 esac 10227 OTOOL=$ac_ct_OTOOL 10228 fi 10229 else 10230 OTOOL="$ac_cv_prog_OTOOL" 10231 fi 10232 10233 if test -n "$ac_tool_prefix"; then 10234 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 10235 set dummy ${ac_tool_prefix}otool64; ac_word=$2 10236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10237 $as_echo_n "checking for $ac_word... " >&6; } 10238 if ${ac_cv_prog_OTOOL64+:} false; then : 10239 $as_echo_n "(cached) " >&6 10240 else 10241 if test -n "$OTOOL64"; then 10242 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 10243 else 10244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10245 for as_dir in $PATH 10246 do 10247 IFS=$as_save_IFS 10248 test -z "$as_dir" && as_dir=. 10249 for ac_exec_ext in '' $ac_executable_extensions; do 10250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10251 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 10252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10253 break 2 10254 fi 10255 done 10256 done 10257 IFS=$as_save_IFS 10258 10259 fi 10260 fi 10261 OTOOL64=$ac_cv_prog_OTOOL64 10262 if test -n "$OTOOL64"; then 10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 10264 $as_echo "$OTOOL64" >&6; } 10265 else 10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10267 $as_echo "no" >&6; } 10268 fi 10269 10270 10271 fi 10272 if test -z "$ac_cv_prog_OTOOL64"; then 10273 ac_ct_OTOOL64=$OTOOL64 10274 # Extract the first word of "otool64", so it can be a program name with args. 10275 set dummy otool64; ac_word=$2 10276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10277 $as_echo_n "checking for $ac_word... " >&6; } 10278 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 10279 $as_echo_n "(cached) " >&6 10280 else 10281 if test -n "$ac_ct_OTOOL64"; then 10282 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 10283 else 10284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10285 for as_dir in $PATH 10286 do 10287 IFS=$as_save_IFS 10288 test -z "$as_dir" && as_dir=. 10289 for ac_exec_ext in '' $ac_executable_extensions; do 10290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10291 ac_cv_prog_ac_ct_OTOOL64="otool64" 10292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10293 break 2 10294 fi 10295 done 10296 done 10297 IFS=$as_save_IFS 10298 10299 fi 10300 fi 10301 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 10302 if test -n "$ac_ct_OTOOL64"; then 10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 10304 $as_echo "$ac_ct_OTOOL64" >&6; } 10305 else 10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10307 $as_echo "no" >&6; } 10308 fi 10309 10310 if test "x$ac_ct_OTOOL64" = x; then 10311 OTOOL64=":" 10312 else 10313 case $cross_compiling:$ac_tool_warned in 10314 yes:) 10315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10317 ac_tool_warned=yes ;; 10318 esac 10319 OTOOL64=$ac_ct_OTOOL64 10320 fi 10321 else 10322 OTOOL64="$ac_cv_prog_OTOOL64" 10323 fi 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 10352 $as_echo_n "checking for -single_module linker flag... " >&6; } 10353 if ${lt_cv_apple_cc_single_mod+:} false; then : 10354 $as_echo_n "(cached) " >&6 10355 else 10356 lt_cv_apple_cc_single_mod=no 10357 if test -z "$LT_MULTI_MODULE"; then 10358 # By default we will add the -single_module flag. You can override 10359 # by either setting the environment variable LT_MULTI_MODULE 10360 # non-empty at configure time, or by adding -multi_module to the 10361 # link flags. 10362 rm -rf libconftest.dylib* 10363 echo "int foo(void){return 1;}" > conftest.c 10364 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10365 -dynamiclib -Wl,-single_module conftest.c" >&5 10366 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10367 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 10368 _lt_result=$? 10369 # If there is a non-empty error log, and "single_module" 10370 # appears in it, assume the flag caused a linker warning 10371 if test -s conftest.err && $GREP single_module conftest.err; then 10372 cat conftest.err >&5 10373 # Otherwise, if the output was created with a 0 exit code from 10374 # the compiler, it worked. 10375 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 10376 lt_cv_apple_cc_single_mod=yes 10377 else 10378 cat conftest.err >&5 10379 fi 10380 rm -rf libconftest.dylib* 10381 rm -f conftest.* 10382 fi 10383 fi 10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 10385 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } 10386 10387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 10388 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 10389 if ${lt_cv_ld_exported_symbols_list+:} false; then : 10390 $as_echo_n "(cached) " >&6 10391 else 10392 lt_cv_ld_exported_symbols_list=no 10393 save_LDFLAGS=$LDFLAGS 10394 echo "_main" > conftest.sym 10395 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 10396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10397 /* end confdefs.h. */ 10398 10399 int main (void) 10400 { 10401 10402 ; 10403 return 0; 10404 } 10405 _ACEOF 10406 if ac_fn_c_try_link "$LINENO"; then : 10407 lt_cv_ld_exported_symbols_list=yes 10408 else 10409 lt_cv_ld_exported_symbols_list=no 10410 fi 10411 rm -f core conftest.err conftest.$ac_objext \ 10412 conftest$ac_exeext conftest.$ac_ext 10413 LDFLAGS=$save_LDFLAGS 10414 10415 fi 10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 10417 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 10418 10419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 10420 $as_echo_n "checking for -force_load linker flag... " >&6; } 10421 if ${lt_cv_ld_force_load+:} false; then : 10422 $as_echo_n "(cached) " >&6 10423 else 10424 lt_cv_ld_force_load=no 10425 cat > conftest.c << _LT_EOF 10426 int forced_loaded() { return 2;} 10427 _LT_EOF 10428 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 10429 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 10430 echo "$AR cru libconftest.a conftest.o" >&5 10431 $AR cru libconftest.a conftest.o 2>&5 10432 echo "$RANLIB libconftest.a" >&5 10433 $RANLIB libconftest.a 2>&5 10434 cat > conftest.c << _LT_EOF 10435 int main() { return 0;} 10436 _LT_EOF 10437 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 10438 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 10439 _lt_result=$? 10440 if test -s conftest.err && $GREP force_load conftest.err; then 10441 cat conftest.err >&5 10442 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 10443 lt_cv_ld_force_load=yes 10444 else 10445 cat conftest.err >&5 10446 fi 10447 rm -f conftest.err libconftest.a conftest conftest.c 10448 rm -rf conftest.dSYM 10449 10450 fi 10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 10452 $as_echo "$lt_cv_ld_force_load" >&6; } 10453 case $host_os in 10454 rhapsody* | darwin1.[012]) 10455 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 10456 darwin1.*) 10457 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10458 darwin*) # darwin 5.x on 10459 # if running on 10.5 or later, the deployment target defaults 10460 # to the OS version, if on x86, and 10.4, the deployment 10461 # target defaults to 10.4. Don't you love it? 10462 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10463 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 10464 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10465 10.[012][,.]*) 10466 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10467 10.*) 10468 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10469 esac 10470 ;; 10471 esac 10472 if test yes = "$lt_cv_apple_cc_single_mod"; then 10473 _lt_dar_single_mod='$single_module' 10474 fi 10475 if test yes = "$lt_cv_ld_exported_symbols_list"; then 10476 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 10477 else 10478 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 10479 fi 10480 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 10481 _lt_dsymutil='~$DSYMUTIL $lib || :' 10482 else 10483 _lt_dsymutil= 10484 fi 10485 ;; 10486 esac 10487 10488 # func_munge_path_list VARIABLE PATH 10489 # ----------------------------------- 10490 # VARIABLE is name of variable containing _space_ separated list of 10491 # directories to be munged by the contents of PATH, which is string 10492 # having a format: 10493 # "DIR[:DIR]:" 10494 # string "DIR[ DIR]" will be prepended to VARIABLE 10495 # ":DIR[:DIR]" 10496 # string "DIR[ DIR]" will be appended to VARIABLE 10497 # "DIRP[:DIRP]::[DIRA:]DIRA" 10498 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 10499 # "DIRA[ DIRA]" will be appended to VARIABLE 10500 # "DIR[:DIR]" 10501 # VARIABLE will be replaced by "DIR[ DIR]" 10502 func_munge_path_list () 10503 { 10504 case x$2 in 10505 x) 10506 ;; 10507 *:) 10508 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 10509 ;; 10510 x:*) 10511 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 10512 ;; 10513 *::*) 10514 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 10515 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 10516 ;; 10517 *) 10518 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 10519 ;; 10520 esac 10521 } 10522 10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 10524 $as_echo_n "checking for ANSI C header files... " >&6; } 10525 if ${ac_cv_header_stdc+:} false; then : 10526 $as_echo_n "(cached) " >&6 10527 else 10528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10529 /* end confdefs.h. */ 10530 #include <stdlib.h> 10531 #include <stdarg.h> 10532 #include <string.h> 10533 #include <float.h> 10534 10535 int main (void) 10536 { 10537 10538 ; 10539 return 0; 10540 } 10541 _ACEOF 10542 if ac_fn_c_try_compile "$LINENO"; then : 10543 ac_cv_header_stdc=yes 10544 else 10545 ac_cv_header_stdc=no 10546 fi 10547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10548 10549 if test $ac_cv_header_stdc = yes; then 10550 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 10551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10552 /* end confdefs.h. */ 10553 #include <string.h> 10554 10555 _ACEOF 10556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10557 $EGREP "memchr" >/dev/null 2>&1; then : 10558 10559 else 10560 ac_cv_header_stdc=no 10561 fi 10562 rm -f conftest* 10563 10564 fi 10565 10566 if test $ac_cv_header_stdc = yes; then 10567 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 10568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10569 /* end confdefs.h. */ 10570 #include <stdlib.h> 10571 10572 _ACEOF 10573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10574 $EGREP "free" >/dev/null 2>&1; then : 10575 10576 else 10577 ac_cv_header_stdc=no 10578 fi 10579 rm -f conftest* 10580 10581 fi 10582 10583 if test $ac_cv_header_stdc = yes; then 10584 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 10585 if test "$cross_compiling" = yes; then : 10586 : 10587 else 10588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10589 /* end confdefs.h. */ 10590 #include <ctype.h> 10591 #include <stdlib.h> 10592 #if ((' ' & 0x0FF) == 0x020) 10593 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 10594 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 10595 #else 10596 # define ISLOWER(c) \ 10597 (('a' <= (c) && (c) <= 'i') \ 10598 || ('j' <= (c) && (c) <= 'r') \ 10599 || ('s' <= (c) && (c) <= 'z')) 10600 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 10601 #endif 10602 10603 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 10604 int 10605 main () 10606 { 10607 int i; 10608 for (i = 0; i < 256; i++) 10609 if (XOR (islower (i), ISLOWER (i)) 10610 || toupper (i) != TOUPPER (i)) 10611 return 2; 10612 return 0; 10613 } 10614 _ACEOF 10615 if ac_fn_c_try_run "$LINENO"; then : 10616 10617 else 10618 ac_cv_header_stdc=no 10619 fi 10620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10621 conftest.$ac_objext conftest.beam conftest.$ac_ext 10622 fi 10623 10624 fi 10625 fi 10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 10627 $as_echo "$ac_cv_header_stdc" >&6; } 10628 if test $ac_cv_header_stdc = yes; then 10629 10630 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 10631 10632 fi 10633 10634 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 10635 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 10636 inttypes.h stdint.h unistd.h 10637 do : 10638 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10639 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 10640 " 10641 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10642 cat >>confdefs.h <<_ACEOF 10643 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10644 _ACEOF 10645 10646 fi 10647 10648 done 10649 10650 10651 for ac_header in dlfcn.h 10652 do : 10653 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 10654 " 10655 if test "x$ac_cv_header_dlfcn_h" = xyes; then : 10656 cat >>confdefs.h <<_ACEOF 10657 #define HAVE_DLFCN_H 1 10658 _ACEOF 10659 10660 fi 10661 10662 done 10663 10664 # ------------------------------------ # 10665 # Determine libtool default behavior # 10666 # ------------------------------------ # 10667 10668 # 10669 # Default behavior is to enable shared and static libraries on systems 10670 # where libtool knows how to build both library versions, and does not 10671 # require separate configuration and build runs for each flavor. 10672 # 10673 10674 xc_lt_want_enable_shared='yes' 10675 xc_lt_want_enable_static='yes' 10676 10677 # 10678 # User may have disabled shared or static libraries. 10679 # 10680 case "x$enable_shared" in # ( 10681 xno) 10682 xc_lt_want_enable_shared='no' 10683 ;; 10684 esac 10685 case "x$enable_static" in # ( 10686 xno) 10687 xc_lt_want_enable_static='no' 10688 ;; 10689 esac 10690 if test "x$xc_lt_want_enable_shared" = 'xno' && 10691 test "x$xc_lt_want_enable_static" = 'xno'; then 10692 as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5 10693 fi 10694 10695 # 10696 # Default behavior on systems that require independent configuration 10697 # and build runs for shared and static is to enable shared libraries 10698 # and disable static ones. On these systems option '--disable-shared' 10699 # must be used in order to build a proper static library. 10700 # 10701 10702 if test "x$xc_lt_want_enable_shared" = 'xyes' && 10703 test "x$xc_lt_want_enable_static" = 'xyes'; then 10704 case $host_os in # ( 10705 pw32* | cegcc* | os2* | aix*) 10706 xc_lt_want_enable_static='no' 10707 ;; 10708 esac 10709 fi 10710 10711 # 10712 # Make libtool aware of current shared and static library preferences 10713 # taking in account that, depending on host characteristics, libtool 10714 # may modify these option preferences later in this configure script. 10715 # 10716 10717 enable_shared=$xc_lt_want_enable_shared 10718 enable_static=$xc_lt_want_enable_static 10719 10720 # 10721 # Default behavior is to build PIC objects for shared libraries and 10722 # non-PIC objects for static libraries. 10723 # 10724 10725 xc_lt_want_with_pic='default' 10726 10727 # 10728 # User may have specified PIC preference. 10729 # 10730 10731 case "x$with_pic" in # (( 10732 xno) 10733 xc_lt_want_with_pic='no' 10734 ;; 10735 xyes) 10736 xc_lt_want_with_pic='yes' 10737 ;; 10738 esac 10739 10740 # 10741 # Default behavior on some systems where building a shared library out 10742 # of non-PIC compiled objects will fail with following linker error 10743 # "relocation R_X86_64_32 can not be used when making a shared object" 10744 # is to build PIC objects even for static libraries. This behavior may 10745 # be overridden using 'configure --disable-shared --without-pic'. 10746 # 10747 10748 if test "x$xc_lt_want_with_pic" = 'xdefault'; then 10749 case $host_cpu in # ( 10750 x86_64 | amd64 | ia64) 10751 case $host_os in # ( 10752 linux* | freebsd*) 10753 xc_lt_want_with_pic='yes' 10754 ;; 10755 esac 10756 ;; 10757 esac 10758 fi 10759 10760 # 10761 # Make libtool aware of current PIC preference taking in account that, 10762 # depending on host characteristics, libtool may modify PIC default 10763 # behavior to fit host system idiosyncrasies later in this script. 10764 # 10765 10766 with_pic=$xc_lt_want_with_pic 10767 10768 ## ----------------------- ## 10769 ## Start of libtool code ## 10770 ## ----------------------- ## 10771 10772 10773 10774 10775 # Set options 10776 enable_win32_dll=yes 10777 10778 case $host in 10779 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 10780 if test -n "$ac_tool_prefix"; then 10781 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 10782 set dummy ${ac_tool_prefix}as; ac_word=$2 10783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10784 $as_echo_n "checking for $ac_word... " >&6; } 10785 if ${ac_cv_prog_AS+:} false; then : 10786 $as_echo_n "(cached) " >&6 10787 else 10788 if test -n "$AS"; then 10789 ac_cv_prog_AS="$AS" # Let the user override the test. 10790 else 10791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10792 for as_dir in $PATH 10793 do 10794 IFS=$as_save_IFS 10795 test -z "$as_dir" && as_dir=. 10796 for ac_exec_ext in '' $ac_executable_extensions; do 10797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10798 ac_cv_prog_AS="${ac_tool_prefix}as" 10799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10800 break 2 10801 fi 10802 done 10803 done 10804 IFS=$as_save_IFS 10805 10806 fi 10807 fi 10808 AS=$ac_cv_prog_AS 10809 if test -n "$AS"; then 10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 10811 $as_echo "$AS" >&6; } 10812 else 10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10814 $as_echo "no" >&6; } 10815 fi 10816 10817 10818 fi 10819 if test -z "$ac_cv_prog_AS"; then 10820 ac_ct_AS=$AS 10821 # Extract the first word of "as", so it can be a program name with args. 10822 set dummy as; ac_word=$2 10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10824 $as_echo_n "checking for $ac_word... " >&6; } 10825 if ${ac_cv_prog_ac_ct_AS+:} false; then : 10826 $as_echo_n "(cached) " >&6 10827 else 10828 if test -n "$ac_ct_AS"; then 10829 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 10830 else 10831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10832 for as_dir in $PATH 10833 do 10834 IFS=$as_save_IFS 10835 test -z "$as_dir" && as_dir=. 10836 for ac_exec_ext in '' $ac_executable_extensions; do 10837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10838 ac_cv_prog_ac_ct_AS="as" 10839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10840 break 2 10841 fi 10842 done 10843 done 10844 IFS=$as_save_IFS 10845 10846 fi 10847 fi 10848 ac_ct_AS=$ac_cv_prog_ac_ct_AS 10849 if test -n "$ac_ct_AS"; then 10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 10851 $as_echo "$ac_ct_AS" >&6; } 10852 else 10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10854 $as_echo "no" >&6; } 10855 fi 10856 10857 if test "x$ac_ct_AS" = x; then 10858 AS="false" 10859 else 10860 case $cross_compiling:$ac_tool_warned in 10861 yes:) 10862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10864 ac_tool_warned=yes ;; 10865 esac 10866 AS=$ac_ct_AS 10867 fi 10868 else 10869 AS="$ac_cv_prog_AS" 10870 fi 10871 10872 if test -n "$ac_tool_prefix"; then 10873 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 10874 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10876 $as_echo_n "checking for $ac_word... " >&6; } 10877 if ${ac_cv_prog_DLLTOOL+:} false; then : 10878 $as_echo_n "(cached) " >&6 10879 else 10880 if test -n "$DLLTOOL"; then 10881 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 10882 else 10883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10884 for as_dir in $PATH 10885 do 10886 IFS=$as_save_IFS 10887 test -z "$as_dir" && as_dir=. 10888 for ac_exec_ext in '' $ac_executable_extensions; do 10889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10890 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 10891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10892 break 2 10893 fi 10894 done 10895 done 10896 IFS=$as_save_IFS 10897 10898 fi 10899 fi 10900 DLLTOOL=$ac_cv_prog_DLLTOOL 10901 if test -n "$DLLTOOL"; then 10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 10903 $as_echo "$DLLTOOL" >&6; } 10904 else 10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10906 $as_echo "no" >&6; } 10907 fi 10908 10909 10910 fi 10911 if test -z "$ac_cv_prog_DLLTOOL"; then 10912 ac_ct_DLLTOOL=$DLLTOOL 10913 # Extract the first word of "dlltool", so it can be a program name with args. 10914 set dummy dlltool; ac_word=$2 10915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10916 $as_echo_n "checking for $ac_word... " >&6; } 10917 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 10918 $as_echo_n "(cached) " >&6 10919 else 10920 if test -n "$ac_ct_DLLTOOL"; then 10921 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 10922 else 10923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10924 for as_dir in $PATH 10925 do 10926 IFS=$as_save_IFS 10927 test -z "$as_dir" && as_dir=. 10928 for ac_exec_ext in '' $ac_executable_extensions; do 10929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10930 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 10931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10932 break 2 10933 fi 10934 done 10935 done 10936 IFS=$as_save_IFS 10937 10938 fi 10939 fi 10940 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 10941 if test -n "$ac_ct_DLLTOOL"; then 10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 10943 $as_echo "$ac_ct_DLLTOOL" >&6; } 10944 else 10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10946 $as_echo "no" >&6; } 10947 fi 10948 10949 if test "x$ac_ct_DLLTOOL" = x; then 10950 DLLTOOL="false" 10951 else 10952 case $cross_compiling:$ac_tool_warned in 10953 yes:) 10954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10956 ac_tool_warned=yes ;; 10957 esac 10958 DLLTOOL=$ac_ct_DLLTOOL 10959 fi 10960 else 10961 DLLTOOL="$ac_cv_prog_DLLTOOL" 10962 fi 10963 10964 if test -n "$ac_tool_prefix"; then 10965 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 10966 set dummy ${ac_tool_prefix}objdump; ac_word=$2 10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10968 $as_echo_n "checking for $ac_word... " >&6; } 10969 if ${ac_cv_prog_OBJDUMP+:} false; then : 10970 $as_echo_n "(cached) " >&6 10971 else 10972 if test -n "$OBJDUMP"; then 10973 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 10974 else 10975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10976 for as_dir in $PATH 10977 do 10978 IFS=$as_save_IFS 10979 test -z "$as_dir" && as_dir=. 10980 for ac_exec_ext in '' $ac_executable_extensions; do 10981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10982 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 10983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10984 break 2 10985 fi 10986 done 10987 done 10988 IFS=$as_save_IFS 10989 10990 fi 10991 fi 10992 OBJDUMP=$ac_cv_prog_OBJDUMP 10993 if test -n "$OBJDUMP"; then 10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 10995 $as_echo "$OBJDUMP" >&6; } 10996 else 10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10998 $as_echo "no" >&6; } 10999 fi 11000 11001 11002 fi 11003 if test -z "$ac_cv_prog_OBJDUMP"; then 11004 ac_ct_OBJDUMP=$OBJDUMP 11005 # Extract the first word of "objdump", so it can be a program name with args. 11006 set dummy objdump; ac_word=$2 11007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11008 $as_echo_n "checking for $ac_word... " >&6; } 11009 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 11010 $as_echo_n "(cached) " >&6 11011 else 11012 if test -n "$ac_ct_OBJDUMP"; then 11013 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 11014 else 11015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11016 for as_dir in $PATH 11017 do 11018 IFS=$as_save_IFS 11019 test -z "$as_dir" && as_dir=. 11020 for ac_exec_ext in '' $ac_executable_extensions; do 11021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11022 ac_cv_prog_ac_ct_OBJDUMP="objdump" 11023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11024 break 2 11025 fi 11026 done 11027 done 11028 IFS=$as_save_IFS 11029 11030 fi 11031 fi 11032 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 11033 if test -n "$ac_ct_OBJDUMP"; then 11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 11035 $as_echo "$ac_ct_OBJDUMP" >&6; } 11036 else 11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11038 $as_echo "no" >&6; } 11039 fi 11040 11041 if test "x$ac_ct_OBJDUMP" = x; then 11042 OBJDUMP="false" 11043 else 11044 case $cross_compiling:$ac_tool_warned in 11045 yes:) 11046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11048 ac_tool_warned=yes ;; 11049 esac 11050 OBJDUMP=$ac_ct_OBJDUMP 11051 fi 11052 else 11053 OBJDUMP="$ac_cv_prog_OBJDUMP" 11054 fi 11055 11056 ;; 11057 esac 11058 11059 test -z "$AS" && AS=as 11060 11061 11062 11063 11064 11065 test -z "$DLLTOOL" && DLLTOOL=dlltool 11066 11067 11068 11069 11070 11071 test -z "$OBJDUMP" && OBJDUMP=objdump 11072 11073 11074 11075 11076 11077 11078 11079 enable_dlopen=no 11080 11081 11082 11083 # Check whether --enable-shared was given. 11084 if test "${enable_shared+set}" = set; then : 11085 enableval=$enable_shared; p=${PACKAGE-default} 11086 case $enableval in 11087 yes) enable_shared=yes ;; 11088 no) enable_shared=no ;; 11089 *) 11090 enable_shared=no 11091 # Look at the argument we got. We use all the common list separators. 11092 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11093 for pkg in $enableval; do 11094 IFS=$lt_save_ifs 11095 if test "X$pkg" = "X$p"; then 11096 enable_shared=yes 11097 fi 11098 done 11099 IFS=$lt_save_ifs 11100 ;; 11101 esac 11102 else 11103 enable_shared=yes 11104 fi 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 # Check whether --enable-static was given. 11115 if test "${enable_static+set}" = set; then : 11116 enableval=$enable_static; p=${PACKAGE-default} 11117 case $enableval in 11118 yes) enable_static=yes ;; 11119 no) enable_static=no ;; 11120 *) 11121 enable_static=no 11122 # Look at the argument we got. We use all the common list separators. 11123 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11124 for pkg in $enableval; do 11125 IFS=$lt_save_ifs 11126 if test "X$pkg" = "X$p"; then 11127 enable_static=yes 11128 fi 11129 done 11130 IFS=$lt_save_ifs 11131 ;; 11132 esac 11133 else 11134 enable_static=yes 11135 fi 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 # Check whether --with-pic was given. 11147 if test "${with_pic+set}" = set; then : 11148 withval=$with_pic; lt_p=${PACKAGE-default} 11149 case $withval in 11150 yes|no) pic_mode=$withval ;; 11151 *) 11152 pic_mode=default 11153 # Look at the argument we got. We use all the common list separators. 11154 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11155 for lt_pkg in $withval; do 11156 IFS=$lt_save_ifs 11157 if test "X$lt_pkg" = "X$lt_p"; then 11158 pic_mode=yes 11159 fi 11160 done 11161 IFS=$lt_save_ifs 11162 ;; 11163 esac 11164 else 11165 pic_mode=default 11166 fi 11167 11168 11169 11170 11171 11172 11173 11174 11175 # Check whether --enable-fast-install was given. 11176 if test "${enable_fast_install+set}" = set; then : 11177 enableval=$enable_fast_install; p=${PACKAGE-default} 11178 case $enableval in 11179 yes) enable_fast_install=yes ;; 11180 no) enable_fast_install=no ;; 11181 *) 11182 enable_fast_install=no 11183 # Look at the argument we got. We use all the common list separators. 11184 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11185 for pkg in $enableval; do 11186 IFS=$lt_save_ifs 11187 if test "X$pkg" = "X$p"; then 11188 enable_fast_install=yes 11189 fi 11190 done 11191 IFS=$lt_save_ifs 11192 ;; 11193 esac 11194 else 11195 enable_fast_install=yes 11196 fi 11197 11198 11199 11200 11201 11202 11203 11204 11205 shared_archive_member_spec= 11206 case $host,$enable_shared in 11207 power*-*-aix[5-9]*,yes) 11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 11209 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 11210 11211 # Check whether --with-aix-soname was given. 11212 if test "${with_aix_soname+set}" = set; then : 11213 withval=$with_aix_soname; case $withval in 11214 aix|svr4|both) 11215 ;; 11216 *) 11217 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 11218 ;; 11219 esac 11220 lt_cv_with_aix_soname=$with_aix_soname 11221 else 11222 if ${lt_cv_with_aix_soname+:} false; then : 11223 $as_echo_n "(cached) " >&6 11224 else 11225 lt_cv_with_aix_soname=aix 11226 fi 11227 11228 with_aix_soname=$lt_cv_with_aix_soname 11229 fi 11230 11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 11232 $as_echo "$with_aix_soname" >&6; } 11233 if test aix != "$with_aix_soname"; then 11234 # For the AIX way of multilib, we name the shared archive member 11235 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 11236 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 11237 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 11238 # the AIX toolchain works better with OBJECT_MODE set (default 32). 11239 if test 64 = "${OBJECT_MODE-32}"; then 11240 shared_archive_member_spec=shr_64 11241 else 11242 shared_archive_member_spec=shr 11243 fi 11244 fi 11245 ;; 11246 *) 11247 with_aix_soname=aix 11248 ;; 11249 esac 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 # This can be used to rebuild libtool when needed 11261 LIBTOOL_DEPS=$ltmain 11262 11263 # Always use our own libtool. 11264 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 test -z "$LN_S" && LN_S="ln -s" 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 if test -n "${ZSH_VERSION+set}"; then 11311 setopt NO_GLOB_SUBST 11312 fi 11313 11314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 11315 $as_echo_n "checking for objdir... " >&6; } 11316 if ${lt_cv_objdir+:} false; then : 11317 $as_echo_n "(cached) " >&6 11318 else 11319 rm -f .libs 2>/dev/null 11320 mkdir .libs 2>/dev/null 11321 if test -d .libs; then 11322 lt_cv_objdir=.libs 11323 else 11324 # MS-DOS does not allow filenames that begin with a dot. 11325 lt_cv_objdir=_libs 11326 fi 11327 rmdir .libs 2>/dev/null 11328 fi 11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 11330 $as_echo "$lt_cv_objdir" >&6; } 11331 objdir=$lt_cv_objdir 11332 11333 11334 11335 11336 11337 cat >>confdefs.h <<_ACEOF 11338 #define LT_OBJDIR "$lt_cv_objdir/" 11339 _ACEOF 11340 11341 11342 11343 11344 case $host_os in 11345 aix3*) 11346 # AIX sometimes has problems with the GCC collect2 program. For some 11347 # reason, if we set the COLLECT_NAMES environment variable, the problems 11348 # vanish in a puff of smoke. 11349 if test set != "${COLLECT_NAMES+set}"; then 11350 COLLECT_NAMES= 11351 export COLLECT_NAMES 11352 fi 11353 ;; 11354 esac 11355 11356 # Global variables: 11357 ofile=libtool 11358 can_build_shared=yes 11359 11360 # All known linkers require a '.a' archive for static linking (except MSVC, 11361 # which needs '.lib'). 11362 libext=a 11363 11364 with_gnu_ld=$lt_cv_prog_gnu_ld 11365 11366 old_CC=$CC 11367 old_CFLAGS=$CFLAGS 11368 11369 # Set sane defaults for various variables 11370 test -z "$CC" && CC=cc 11371 test -z "$LTCC" && LTCC=$CC 11372 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 11373 test -z "$LD" && LD=ld 11374 test -z "$ac_objext" && ac_objext=o 11375 11376 func_cc_basename $compiler 11377 cc_basename=$func_cc_basename_result 11378 11379 11380 # Only perform the check for file, if the check method requires it 11381 test -z "$MAGIC_CMD" && MAGIC_CMD=file 11382 case $deplibs_check_method in 11383 file_magic*) 11384 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 11386 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 11387 if ${lt_cv_path_MAGIC_CMD+:} false; then : 11388 $as_echo_n "(cached) " >&6 11389 else 11390 case $MAGIC_CMD in 11391 [\\/*] | ?:[\\/]*) 11392 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 11393 ;; 11394 *) 11395 lt_save_MAGIC_CMD=$MAGIC_CMD 11396 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11397 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11398 for ac_dir in $ac_dummy; do 11399 IFS=$lt_save_ifs 11400 test -z "$ac_dir" && ac_dir=. 11401 if test -f "$ac_dir/${ac_tool_prefix}file"; then 11402 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 11403 if test -n "$file_magic_test_file"; then 11404 case $deplibs_check_method in 11405 "file_magic "*) 11406 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 11407 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11408 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 11409 $EGREP "$file_magic_regex" > /dev/null; then 11410 : 11411 else 11412 cat <<_LT_EOF 1>&2 11413 11414 *** Warning: the command libtool uses to detect shared libraries, 11415 *** $file_magic_cmd, produces output that libtool cannot recognize. 11416 *** The result is that libtool may fail to recognize shared libraries 11417 *** as such. This will affect the creation of libtool libraries that 11418 *** depend on shared libraries, but programs linked with such libtool 11419 *** libraries will work regardless of this problem. Nevertheless, you 11420 *** may want to report the problem to your system manager and/or to 11421 *** bug-libtool (at] gnu.org 11422 11423 _LT_EOF 11424 fi ;; 11425 esac 11426 fi 11427 break 11428 fi 11429 done 11430 IFS=$lt_save_ifs 11431 MAGIC_CMD=$lt_save_MAGIC_CMD 11432 ;; 11433 esac 11434 fi 11435 11436 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11437 if test -n "$MAGIC_CMD"; then 11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 11439 $as_echo "$MAGIC_CMD" >&6; } 11440 else 11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11442 $as_echo "no" >&6; } 11443 fi 11444 11445 11446 11447 11448 11449 if test -z "$lt_cv_path_MAGIC_CMD"; then 11450 if test -n "$ac_tool_prefix"; then 11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 11452 $as_echo_n "checking for file... " >&6; } 11453 if ${lt_cv_path_MAGIC_CMD+:} false; then : 11454 $as_echo_n "(cached) " >&6 11455 else 11456 case $MAGIC_CMD in 11457 [\\/*] | ?:[\\/]*) 11458 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 11459 ;; 11460 *) 11461 lt_save_MAGIC_CMD=$MAGIC_CMD 11462 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11463 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11464 for ac_dir in $ac_dummy; do 11465 IFS=$lt_save_ifs 11466 test -z "$ac_dir" && ac_dir=. 11467 if test -f "$ac_dir/file"; then 11468 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 11469 if test -n "$file_magic_test_file"; then 11470 case $deplibs_check_method in 11471 "file_magic "*) 11472 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 11473 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11474 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 11475 $EGREP "$file_magic_regex" > /dev/null; then 11476 : 11477 else 11478 cat <<_LT_EOF 1>&2 11479 11480 *** Warning: the command libtool uses to detect shared libraries, 11481 *** $file_magic_cmd, produces output that libtool cannot recognize. 11482 *** The result is that libtool may fail to recognize shared libraries 11483 *** as such. This will affect the creation of libtool libraries that 11484 *** depend on shared libraries, but programs linked with such libtool 11485 *** libraries will work regardless of this problem. Nevertheless, you 11486 *** may want to report the problem to your system manager and/or to 11487 *** bug-libtool (at] gnu.org 11488 11489 _LT_EOF 11490 fi ;; 11491 esac 11492 fi 11493 break 11494 fi 11495 done 11496 IFS=$lt_save_ifs 11497 MAGIC_CMD=$lt_save_MAGIC_CMD 11498 ;; 11499 esac 11500 fi 11501 11502 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11503 if test -n "$MAGIC_CMD"; then 11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 11505 $as_echo "$MAGIC_CMD" >&6; } 11506 else 11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11508 $as_echo "no" >&6; } 11509 fi 11510 11511 11512 else 11513 MAGIC_CMD=: 11514 fi 11515 fi 11516 11517 fi 11518 ;; 11519 esac 11520 11521 # Use C for the default configuration in the libtool script 11522 11523 lt_save_CC=$CC 11524 ac_ext=c 11525 ac_cpp='$CPP $CPPFLAGS' 11526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11528 ac_compiler_gnu=$ac_cv_c_compiler_gnu 11529 11530 11531 # Source file extension for C test sources. 11532 ac_ext=c 11533 11534 # Object file extension for compiled C test sources. 11535 objext=o 11536 objext=$objext 11537 11538 # Code to be used in simple compile tests 11539 lt_simple_compile_test_code="int some_variable = 0;" 11540 11541 # Code to be used in simple link tests 11542 lt_simple_link_test_code='int main(){return(0);}' 11543 11544 11545 11546 11547 11548 11549 11550 # If no C compiler was specified, use CC. 11551 LTCC=${LTCC-"$CC"} 11552 11553 # If no C compiler flags were specified, use CFLAGS. 11554 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11555 11556 # Allow CC to be a program name with arguments. 11557 compiler=$CC 11558 11559 # Save the default compiler, since it gets overwritten when the other 11560 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 11561 compiler_DEFAULT=$CC 11562 11563 # save warnings/boilerplate of simple test code 11564 ac_outfile=conftest.$ac_objext 11565 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11566 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11567 _lt_compiler_boilerplate=`cat conftest.err` 11568 $RM conftest* 11569 11570 ac_outfile=conftest.$ac_objext 11571 echo "$lt_simple_link_test_code" >conftest.$ac_ext 11572 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11573 _lt_linker_boilerplate=`cat conftest.err` 11574 $RM -r conftest* 11575 11576 11577 ## CAVEAT EMPTOR: 11578 ## There is no encapsulation within the following macros, do not change 11579 ## the running order or otherwise move them around unless you know exactly 11580 ## what you are doing... 11581 if test -n "$compiler"; then 11582 11583 lt_prog_compiler_no_builtin_flag= 11584 11585 if test yes = "$GCC"; then 11586 case $cc_basename in 11587 nvcc*) 11588 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 11589 *) 11590 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 11591 esac 11592 11593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 11594 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 11595 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 11596 $as_echo_n "(cached) " >&6 11597 else 11598 lt_cv_prog_compiler_rtti_exceptions=no 11599 ac_outfile=conftest.$ac_objext 11600 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11601 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 11602 # Insert the option either (1) after the last *FLAGS variable, or 11603 # (2) before a word containing "conftest.", or (3) at the end. 11604 # Note that $ac_compile itself does not contain backslashes and begins 11605 # with a dollar sign (not a hyphen), so the echo should work correctly. 11606 # The option is referenced via a variable to avoid confusing sed. 11607 lt_compile=`echo "$ac_compile" | $SED \ 11608 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11609 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11610 -e 's:$: $lt_compiler_flag:'` 11611 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11612 (eval "$lt_compile" 2>conftest.err) 11613 ac_status=$? 11614 cat conftest.err >&5 11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11616 if (exit $ac_status) && test -s "$ac_outfile"; then 11617 # The compiler can only warn and ignore the option if not recognized 11618 # So say no if there are warnings other than the usual output. 11619 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11620 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11621 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11622 lt_cv_prog_compiler_rtti_exceptions=yes 11623 fi 11624 fi 11625 $RM conftest* 11626 11627 fi 11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 11629 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 11630 11631 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 11632 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 11633 else 11634 : 11635 fi 11636 11637 fi 11638 11639 11640 11641 11642 11643 11644 lt_prog_compiler_wl= 11645 lt_prog_compiler_pic= 11646 lt_prog_compiler_static= 11647 11648 11649 if test yes = "$GCC"; then 11650 lt_prog_compiler_wl='-Wl,' 11651 lt_prog_compiler_static='-static' 11652 11653 case $host_os in 11654 aix*) 11655 # All AIX code is PIC. 11656 if test ia64 = "$host_cpu"; then 11657 # AIX 5 now supports IA64 processor 11658 lt_prog_compiler_static='-Bstatic' 11659 fi 11660 lt_prog_compiler_pic='-fPIC' 11661 ;; 11662 11663 amigaos*) 11664 case $host_cpu in 11665 powerpc) 11666 # see comment about AmigaOS4 .so support 11667 lt_prog_compiler_pic='-fPIC' 11668 ;; 11669 m68k) 11670 # FIXME: we need at least 68020 code to build shared libraries, but 11671 # adding the '-m68020' flag to GCC prevents building anything better, 11672 # like '-m68040'. 11673 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 11674 ;; 11675 esac 11676 ;; 11677 11678 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11679 # PIC is the default for these OSes. 11680 ;; 11681 11682 mingw* | cygwin* | pw32* | os2* | cegcc*) 11683 # This hack is so that the source file can tell whether it is being 11684 # built for inclusion in a dll (and should export symbols for example). 11685 # Although the cygwin gcc ignores -fPIC, still need this for old-style 11686 # (--disable-auto-import) libraries 11687 lt_prog_compiler_pic='-DDLL_EXPORT' 11688 case $host_os in 11689 os2*) 11690 lt_prog_compiler_static='$wl-static' 11691 ;; 11692 esac 11693 ;; 11694 11695 darwin* | rhapsody*) 11696 # PIC is the default on this platform 11697 # Common symbols not allowed in MH_DYLIB files 11698 lt_prog_compiler_pic='-fno-common' 11699 ;; 11700 11701 haiku*) 11702 # PIC is the default for Haiku. 11703 # The "-static" flag exists, but is broken. 11704 lt_prog_compiler_static= 11705 ;; 11706 11707 hpux*) 11708 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 11709 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 11710 # sets the default TLS model and affects inlining. 11711 case $host_cpu in 11712 hppa*64*) 11713 # +Z the default 11714 ;; 11715 *) 11716 lt_prog_compiler_pic='-fPIC' 11717 ;; 11718 esac 11719 ;; 11720 11721 interix[3-9]*) 11722 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11723 # Instead, we relocate shared libraries at runtime. 11724 ;; 11725 11726 msdosdjgpp*) 11727 # Just because we use GCC doesn't mean we suddenly get shared libraries 11728 # on systems that don't support them. 11729 lt_prog_compiler_can_build_shared=no 11730 enable_shared=no 11731 ;; 11732 11733 *nto* | *qnx*) 11734 # QNX uses GNU C++, but need to define -shared option too, otherwise 11735 # it will coredump. 11736 lt_prog_compiler_pic='-fPIC -shared' 11737 ;; 11738 11739 sysv4*MP*) 11740 if test -d /usr/nec; then 11741 lt_prog_compiler_pic=-Kconform_pic 11742 fi 11743 ;; 11744 11745 *) 11746 lt_prog_compiler_pic='-fPIC' 11747 ;; 11748 esac 11749 11750 case $cc_basename in 11751 nvcc*) # Cuda Compiler Driver 2.2 11752 lt_prog_compiler_wl='-Xlinker ' 11753 if test -n "$lt_prog_compiler_pic"; then 11754 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 11755 fi 11756 ;; 11757 esac 11758 else 11759 # PORTME Check for flag to pass linker flags through the system compiler. 11760 case $host_os in 11761 aix*) 11762 lt_prog_compiler_wl='-Wl,' 11763 if test ia64 = "$host_cpu"; then 11764 # AIX 5 now supports IA64 processor 11765 lt_prog_compiler_static='-Bstatic' 11766 else 11767 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 11768 fi 11769 ;; 11770 11771 darwin* | rhapsody*) 11772 # PIC is the default on this platform 11773 # Common symbols not allowed in MH_DYLIB files 11774 lt_prog_compiler_pic='-fno-common' 11775 case $cc_basename in 11776 nagfor*) 11777 # NAG Fortran compiler 11778 lt_prog_compiler_wl='-Wl,-Wl,,' 11779 lt_prog_compiler_pic='-PIC' 11780 lt_prog_compiler_static='-Bstatic' 11781 ;; 11782 esac 11783 ;; 11784 11785 mingw* | cygwin* | pw32* | os2* | cegcc*) 11786 # This hack is so that the source file can tell whether it is being 11787 # built for inclusion in a dll (and should export symbols for example). 11788 lt_prog_compiler_pic='-DDLL_EXPORT' 11789 case $host_os in 11790 os2*) 11791 lt_prog_compiler_static='$wl-static' 11792 ;; 11793 esac 11794 ;; 11795 11796 hpux9* | hpux10* | hpux11*) 11797 lt_prog_compiler_wl='-Wl,' 11798 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11799 # not for PA HP-UX. 11800 case $host_cpu in 11801 hppa*64*|ia64*) 11802 # +Z the default 11803 ;; 11804 *) 11805 lt_prog_compiler_pic='+Z' 11806 ;; 11807 esac 11808 # Is there a better lt_prog_compiler_static that works with the bundled CC? 11809 lt_prog_compiler_static='$wl-a ${wl}archive' 11810 ;; 11811 11812 irix5* | irix6* | nonstopux*) 11813 lt_prog_compiler_wl='-Wl,' 11814 # PIC (with -KPIC) is the default. 11815 lt_prog_compiler_static='-non_shared' 11816 ;; 11817 11818 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11819 case $cc_basename in 11820 # old Intel for x86_64, which still supported -KPIC. 11821 ecc*) 11822 lt_prog_compiler_wl='-Wl,' 11823 lt_prog_compiler_pic='-KPIC' 11824 lt_prog_compiler_static='-static' 11825 ;; 11826 # icc used to be incompatible with GCC. 11827 # ICC 10 doesn't accept -KPIC any more. 11828 icc* | ifort*) 11829 lt_prog_compiler_wl='-Wl,' 11830 lt_prog_compiler_pic='-fPIC' 11831 lt_prog_compiler_static='-static' 11832 ;; 11833 # Lahey Fortran 8.1. 11834 lf95*) 11835 lt_prog_compiler_wl='-Wl,' 11836 lt_prog_compiler_pic='--shared' 11837 lt_prog_compiler_static='--static' 11838 ;; 11839 nagfor*) 11840 # NAG Fortran compiler 11841 lt_prog_compiler_wl='-Wl,-Wl,,' 11842 lt_prog_compiler_pic='-PIC' 11843 lt_prog_compiler_static='-Bstatic' 11844 ;; 11845 tcc*) 11846 # Fabrice Bellard et al's Tiny C Compiler 11847 lt_prog_compiler_wl='-Wl,' 11848 lt_prog_compiler_pic='-fPIC' 11849 lt_prog_compiler_static='-static' 11850 ;; 11851 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 11852 # Portland Group compilers (*not* the Pentium gcc compiler, 11853 # which looks to be a dead project) 11854 lt_prog_compiler_wl='-Wl,' 11855 lt_prog_compiler_pic='-fpic' 11856 lt_prog_compiler_static='-Bstatic' 11857 ;; 11858 ccc*) 11859 lt_prog_compiler_wl='-Wl,' 11860 # All Alpha code is PIC. 11861 lt_prog_compiler_static='-non_shared' 11862 ;; 11863 xl* | bgxl* | bgf* | mpixl*) 11864 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 11865 lt_prog_compiler_wl='-Wl,' 11866 lt_prog_compiler_pic='-qpic' 11867 lt_prog_compiler_static='-qstaticlink' 11868 ;; 11869 *) 11870 case `$CC -V 2>&1 | sed 5q` in 11871 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 11872 # Sun Fortran 8.3 passes all unrecognized flags to the linker 11873 lt_prog_compiler_pic='-KPIC' 11874 lt_prog_compiler_static='-Bstatic' 11875 lt_prog_compiler_wl='' 11876 ;; 11877 *Sun\ F* | *Sun*Fortran*) 11878 lt_prog_compiler_pic='-KPIC' 11879 lt_prog_compiler_static='-Bstatic' 11880 lt_prog_compiler_wl='-Qoption ld ' 11881 ;; 11882 *Sun\ C*) 11883 # Sun C 5.9 11884 lt_prog_compiler_pic='-KPIC' 11885 lt_prog_compiler_static='-Bstatic' 11886 lt_prog_compiler_wl='-Wl,' 11887 ;; 11888 *Intel*\ [CF]*Compiler*) 11889 lt_prog_compiler_wl='-Wl,' 11890 lt_prog_compiler_pic='-fPIC' 11891 lt_prog_compiler_static='-static' 11892 ;; 11893 *Portland\ Group*) 11894 lt_prog_compiler_wl='-Wl,' 11895 lt_prog_compiler_pic='-fpic' 11896 lt_prog_compiler_static='-Bstatic' 11897 ;; 11898 esac 11899 ;; 11900 esac 11901 ;; 11902 11903 newsos6) 11904 lt_prog_compiler_pic='-KPIC' 11905 lt_prog_compiler_static='-Bstatic' 11906 ;; 11907 11908 *nto* | *qnx*) 11909 # QNX uses GNU C++, but need to define -shared option too, otherwise 11910 # it will coredump. 11911 lt_prog_compiler_pic='-fPIC -shared' 11912 ;; 11913 11914 osf3* | osf4* | osf5*) 11915 lt_prog_compiler_wl='-Wl,' 11916 # All OSF/1 code is PIC. 11917 lt_prog_compiler_static='-non_shared' 11918 ;; 11919 11920 rdos*) 11921 lt_prog_compiler_static='-non_shared' 11922 ;; 11923 11924 solaris*) 11925 lt_prog_compiler_pic='-KPIC' 11926 lt_prog_compiler_static='-Bstatic' 11927 case $cc_basename in 11928 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 11929 lt_prog_compiler_wl='-Qoption ld ';; 11930 *) 11931 lt_prog_compiler_wl='-Wl,';; 11932 esac 11933 ;; 11934 11935 sunos4*) 11936 lt_prog_compiler_wl='-Qoption ld ' 11937 lt_prog_compiler_pic='-PIC' 11938 lt_prog_compiler_static='-Bstatic' 11939 ;; 11940 11941 sysv4 | sysv4.2uw2* | sysv4.3*) 11942 lt_prog_compiler_wl='-Wl,' 11943 lt_prog_compiler_pic='-KPIC' 11944 lt_prog_compiler_static='-Bstatic' 11945 ;; 11946 11947 sysv4*MP*) 11948 if test -d /usr/nec; then 11949 lt_prog_compiler_pic='-Kconform_pic' 11950 lt_prog_compiler_static='-Bstatic' 11951 fi 11952 ;; 11953 11954 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11955 lt_prog_compiler_wl='-Wl,' 11956 lt_prog_compiler_pic='-KPIC' 11957 lt_prog_compiler_static='-Bstatic' 11958 ;; 11959 11960 unicos*) 11961 lt_prog_compiler_wl='-Wl,' 11962 lt_prog_compiler_can_build_shared=no 11963 ;; 11964 11965 uts4*) 11966 lt_prog_compiler_pic='-pic' 11967 lt_prog_compiler_static='-Bstatic' 11968 ;; 11969 11970 *) 11971 lt_prog_compiler_can_build_shared=no 11972 ;; 11973 esac 11974 fi 11975 11976 case $host_os in 11977 # For platforms that do not support PIC, -DPIC is meaningless: 11978 *djgpp*) 11979 lt_prog_compiler_pic= 11980 ;; 11981 *) 11982 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 11983 ;; 11984 esac 11985 11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 11987 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 11988 if ${lt_cv_prog_compiler_pic+:} false; then : 11989 $as_echo_n "(cached) " >&6 11990 else 11991 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 11992 fi 11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 11994 $as_echo "$lt_cv_prog_compiler_pic" >&6; } 11995 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 11996 11997 # 11998 # Check to make sure the PIC flag actually works. 11999 # 12000 if test -n "$lt_prog_compiler_pic"; then 12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 12002 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 12003 if ${lt_cv_prog_compiler_pic_works+:} false; then : 12004 $as_echo_n "(cached) " >&6 12005 else 12006 lt_cv_prog_compiler_pic_works=no 12007 ac_outfile=conftest.$ac_objext 12008 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12009 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 12010 # Insert the option either (1) after the last *FLAGS variable, or 12011 # (2) before a word containing "conftest.", or (3) at the end. 12012 # Note that $ac_compile itself does not contain backslashes and begins 12013 # with a dollar sign (not a hyphen), so the echo should work correctly. 12014 # The option is referenced via a variable to avoid confusing sed. 12015 lt_compile=`echo "$ac_compile" | $SED \ 12016 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12017 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12018 -e 's:$: $lt_compiler_flag:'` 12019 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12020 (eval "$lt_compile" 2>conftest.err) 12021 ac_status=$? 12022 cat conftest.err >&5 12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12024 if (exit $ac_status) && test -s "$ac_outfile"; then 12025 # The compiler can only warn and ignore the option if not recognized 12026 # So say no if there are warnings other than the usual output. 12027 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 12028 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12029 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12030 lt_cv_prog_compiler_pic_works=yes 12031 fi 12032 fi 12033 $RM conftest* 12034 12035 fi 12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 12037 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 12038 12039 if test yes = "$lt_cv_prog_compiler_pic_works"; then 12040 case $lt_prog_compiler_pic in 12041 "" | " "*) ;; 12042 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 12043 esac 12044 else 12045 lt_prog_compiler_pic= 12046 lt_prog_compiler_can_build_shared=no 12047 fi 12048 12049 fi 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 # 12062 # Check to make sure the static flag actually works. 12063 # 12064 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12066 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 12067 if ${lt_cv_prog_compiler_static_works+:} false; then : 12068 $as_echo_n "(cached) " >&6 12069 else 12070 lt_cv_prog_compiler_static_works=no 12071 save_LDFLAGS=$LDFLAGS 12072 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12073 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12074 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12075 # The linker can only warn and ignore the option if not recognized 12076 # So say no if there are warnings 12077 if test -s conftest.err; then 12078 # Append any errors to the config.log. 12079 cat conftest.err 1>&5 12080 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12081 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12082 if diff conftest.exp conftest.er2 >/dev/null; then 12083 lt_cv_prog_compiler_static_works=yes 12084 fi 12085 else 12086 lt_cv_prog_compiler_static_works=yes 12087 fi 12088 fi 12089 $RM -r conftest* 12090 LDFLAGS=$save_LDFLAGS 12091 12092 fi 12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 12094 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } 12095 12096 if test yes = "$lt_cv_prog_compiler_static_works"; then 12097 : 12098 else 12099 lt_prog_compiler_static= 12100 fi 12101 12102 12103 12104 12105 12106 12107 12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12109 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12110 if ${lt_cv_prog_compiler_c_o+:} false; then : 12111 $as_echo_n "(cached) " >&6 12112 else 12113 lt_cv_prog_compiler_c_o=no 12114 $RM -r conftest 2>/dev/null 12115 mkdir conftest 12116 cd conftest 12117 mkdir out 12118 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12119 12120 lt_compiler_flag="-o out/conftest2.$ac_objext" 12121 # Insert the option either (1) after the last *FLAGS variable, or 12122 # (2) before a word containing "conftest.", or (3) at the end. 12123 # Note that $ac_compile itself does not contain backslashes and begins 12124 # with a dollar sign (not a hyphen), so the echo should work correctly. 12125 lt_compile=`echo "$ac_compile" | $SED \ 12126 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12127 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12128 -e 's:$: $lt_compiler_flag:'` 12129 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12130 (eval "$lt_compile" 2>out/conftest.err) 12131 ac_status=$? 12132 cat out/conftest.err >&5 12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12134 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12135 then 12136 # The compiler can only warn and ignore the option if not recognized 12137 # So say no if there are warnings 12138 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 12139 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12140 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12141 lt_cv_prog_compiler_c_o=yes 12142 fi 12143 fi 12144 chmod u+w . 2>&5 12145 $RM conftest* 12146 # SGI C++ compiler will create directory out/ii_files/ for 12147 # template instantiation 12148 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 12149 $RM out/* && rmdir out 12150 cd .. 12151 $RM -r conftest 12152 $RM conftest* 12153 12154 fi 12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 12156 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 12157 12158 12159 12160 12161 12162 12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12164 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12165 if ${lt_cv_prog_compiler_c_o+:} false; then : 12166 $as_echo_n "(cached) " >&6 12167 else 12168 lt_cv_prog_compiler_c_o=no 12169 $RM -r conftest 2>/dev/null 12170 mkdir conftest 12171 cd conftest 12172 mkdir out 12173 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12174 12175 lt_compiler_flag="-o out/conftest2.$ac_objext" 12176 # Insert the option either (1) after the last *FLAGS variable, or 12177 # (2) before a word containing "conftest.", or (3) at the end. 12178 # Note that $ac_compile itself does not contain backslashes and begins 12179 # with a dollar sign (not a hyphen), so the echo should work correctly. 12180 lt_compile=`echo "$ac_compile" | $SED \ 12181 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12182 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12183 -e 's:$: $lt_compiler_flag:'` 12184 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12185 (eval "$lt_compile" 2>out/conftest.err) 12186 ac_status=$? 12187 cat out/conftest.err >&5 12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12189 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12190 then 12191 # The compiler can only warn and ignore the option if not recognized 12192 # So say no if there are warnings 12193 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 12194 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12195 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12196 lt_cv_prog_compiler_c_o=yes 12197 fi 12198 fi 12199 chmod u+w . 2>&5 12200 $RM conftest* 12201 # SGI C++ compiler will create directory out/ii_files/ for 12202 # template instantiation 12203 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 12204 $RM out/* && rmdir out 12205 cd .. 12206 $RM -r conftest 12207 $RM conftest* 12208 12209 fi 12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 12211 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 12212 12213 12214 12215 12216 hard_links=nottested 12217 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 12218 # do not overwrite the value of need_locks provided by the user 12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 12220 $as_echo_n "checking if we can lock with hard links... " >&6; } 12221 hard_links=yes 12222 $RM conftest* 12223 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12224 touch conftest.a 12225 ln conftest.a conftest.b 2>&5 || hard_links=no 12226 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 12228 $as_echo "$hard_links" >&6; } 12229 if test no = "$hard_links"; then 12230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 12231 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 12232 need_locks=warn 12233 fi 12234 else 12235 need_locks=no 12236 fi 12237 12238 12239 12240 12241 12242 12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12244 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12245 12246 runpath_var= 12247 allow_undefined_flag= 12248 always_export_symbols=no 12249 archive_cmds= 12250 archive_expsym_cmds= 12251 compiler_needs_object=no 12252 enable_shared_with_static_runtimes=no 12253 export_dynamic_flag_spec= 12254 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12255 hardcode_automatic=no 12256 hardcode_direct=no 12257 hardcode_direct_absolute=no 12258 hardcode_libdir_flag_spec= 12259 hardcode_libdir_separator= 12260 hardcode_minus_L=no 12261 hardcode_shlibpath_var=unsupported 12262 inherit_rpath=no 12263 link_all_deplibs=unknown 12264 module_cmds= 12265 module_expsym_cmds= 12266 old_archive_from_new_cmds= 12267 old_archive_from_expsyms_cmds= 12268 thread_safe_flag_spec= 12269 whole_archive_flag_spec= 12270 # include_expsyms should be a list of space-separated symbols to be *always* 12271 # included in the symbol list 12272 include_expsyms= 12273 # exclude_expsyms can be an extended regexp of symbols to exclude 12274 # it will be wrapped by ' (' and ')$', so one must not match beginning or 12275 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 12276 # as well as any symbol that contains 'd'. 12277 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 12278 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 12279 # platforms (ab)use it in PIC code, but their linkers get confused if 12280 # the symbol is explicitly referenced. Since portable code cannot 12281 # rely on this symbol name, it's probably fine to never include it in 12282 # preloaded symbol tables. 12283 # Exclude shared library initialization/finalization symbols. 12284 extract_expsyms_cmds= 12285 12286 case $host_os in 12287 cygwin* | mingw* | pw32* | cegcc*) 12288 # FIXME: the MSVC++ port hasn't been tested in a loooong time 12289 # When not using gcc, we currently assume that we are using 12290 # Microsoft Visual C++. 12291 if test yes != "$GCC"; then 12292 with_gnu_ld=no 12293 fi 12294 ;; 12295 interix*) 12296 # we just hope/assume this is gcc and not c89 (= MSVC++) 12297 with_gnu_ld=yes 12298 ;; 12299 openbsd* | bitrig*) 12300 with_gnu_ld=no 12301 ;; 12302 linux* | k*bsd*-gnu | gnu*) 12303 link_all_deplibs=no 12304 ;; 12305 esac 12306 12307 ld_shlibs=yes 12308 12309 # On some targets, GNU ld is compatible enough with the native linker 12310 # that we're better off using the native interface for both. 12311 lt_use_gnu_ld_interface=no 12312 if test yes = "$with_gnu_ld"; then 12313 case $host_os in 12314 aix*) 12315 # The AIX port of GNU ld has always aspired to compatibility 12316 # with the native linker. However, as the warning in the GNU ld 12317 # block says, versions before 2.19.5* couldn't really create working 12318 # shared libraries, regardless of the interface used. 12319 case `$LD -v 2>&1` in 12320 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 12321 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 12322 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 12323 *) 12324 lt_use_gnu_ld_interface=yes 12325 ;; 12326 esac 12327 ;; 12328 *) 12329 lt_use_gnu_ld_interface=yes 12330 ;; 12331 esac 12332 fi 12333 12334 if test yes = "$lt_use_gnu_ld_interface"; then 12335 # If archive_cmds runs LD, not CC, wlarc should be empty 12336 wlarc='$wl' 12337 12338 # Set some defaults for GNU ld with shared library support. These 12339 # are reset later if shared libraries are not supported. Putting them 12340 # here allows them to be overridden if necessary. 12341 runpath_var=LD_RUN_PATH 12342 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12343 export_dynamic_flag_spec='$wl--export-dynamic' 12344 # ancient GNU ld didn't support --whole-archive et. al. 12345 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 12346 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 12347 else 12348 whole_archive_flag_spec= 12349 fi 12350 supports_anon_versioning=no 12351 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 12352 *GNU\ gold*) supports_anon_versioning=yes ;; 12353 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 12354 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 12355 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 12356 *\ 2.11.*) ;; # other 2.11 versions 12357 *) supports_anon_versioning=yes ;; 12358 esac 12359 12360 # See if GNU ld supports shared libraries. 12361 case $host_os in 12362 aix[3-9]*) 12363 # On AIX/PPC, the GNU linker is very broken 12364 if test ia64 != "$host_cpu"; then 12365 ld_shlibs=no 12366 cat <<_LT_EOF 1>&2 12367 12368 *** Warning: the GNU linker, at least up to release 2.19, is reported 12369 *** to be unable to reliably create shared libraries on AIX. 12370 *** Therefore, libtool is disabling shared libraries support. If you 12371 *** really care for shared libraries, you may want to install binutils 12372 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 12373 *** You will then need to restart the configuration process. 12374 12375 _LT_EOF 12376 fi 12377 ;; 12378 12379 amigaos*) 12380 case $host_cpu in 12381 powerpc) 12382 # see comment about AmigaOS4 .so support 12383 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12384 archive_expsym_cmds='' 12385 ;; 12386 m68k) 12387 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)' 12388 hardcode_libdir_flag_spec='-L$libdir' 12389 hardcode_minus_L=yes 12390 ;; 12391 esac 12392 ;; 12393 12394 beos*) 12395 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12396 allow_undefined_flag=unsupported 12397 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 12398 # support --undefined. This deserves some investigation. FIXME 12399 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12400 else 12401 ld_shlibs=no 12402 fi 12403 ;; 12404 12405 cygwin* | mingw* | pw32* | cegcc*) 12406 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 12407 # as there is no search path for DLLs. 12408 hardcode_libdir_flag_spec='-L$libdir' 12409 export_dynamic_flag_spec='$wl--export-all-symbols' 12410 allow_undefined_flag=unsupported 12411 always_export_symbols=no 12412 enable_shared_with_static_runtimes=yes 12413 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' 12414 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 12415 12416 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12417 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12418 # If the export-symbols file already is a .def file, use it as 12419 # is; otherwise, prepend EXPORTS... 12420 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 12421 cp $export_symbols $output_objdir/$soname.def; 12422 else 12423 echo EXPORTS > $output_objdir/$soname.def; 12424 cat $export_symbols >> $output_objdir/$soname.def; 12425 fi~ 12426 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12427 else 12428 ld_shlibs=no 12429 fi 12430 ;; 12431 12432 haiku*) 12433 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12434 link_all_deplibs=yes 12435 ;; 12436 12437 os2*) 12438 hardcode_libdir_flag_spec='-L$libdir' 12439 hardcode_minus_L=yes 12440 allow_undefined_flag=unsupported 12441 shrext_cmds=.dll 12442 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12443 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12444 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12445 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12446 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 12447 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12448 emximp -o $lib $output_objdir/$libname.def' 12449 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12450 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12451 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12452 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12453 prefix_cmds="$SED"~ 12454 if test EXPORTS = "`$SED 1q $export_symbols`"; then 12455 prefix_cmds="$prefix_cmds -e 1d"; 12456 fi~ 12457 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 12458 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 12459 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12460 emximp -o $lib $output_objdir/$libname.def' 12461 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 12462 enable_shared_with_static_runtimes=yes 12463 ;; 12464 12465 interix[3-9]*) 12466 hardcode_direct=no 12467 hardcode_shlibpath_var=no 12468 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12469 export_dynamic_flag_spec='$wl-E' 12470 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12471 # Instead, shared libraries are loaded at an image base (0x10000000 by 12472 # default) and relocated if they conflict, which is a slow very memory 12473 # consuming and fragmenting process. To avoid this, we pick a random, 12474 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12475 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12476 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 12477 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' 12478 ;; 12479 12480 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 12481 tmp_diet=no 12482 if test linux-dietlibc = "$host_os"; then 12483 case $cc_basename in 12484 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 12485 esac 12486 fi 12487 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 12488 && test no = "$tmp_diet" 12489 then 12490 tmp_addflag=' $pic_flag' 12491 tmp_sharedflag='-shared' 12492 case $cc_basename,$host_cpu in 12493 pgcc*) # Portland Group C compiler 12494 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' 12495 tmp_addflag=' $pic_flag' 12496 ;; 12497 pgf77* | pgf90* | pgf95* | pgfortran*) 12498 # Portland Group f77 and f90 compilers 12499 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' 12500 tmp_addflag=' $pic_flag -Mnomain' ;; 12501 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 12502 tmp_addflag=' -i_dynamic' ;; 12503 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 12504 tmp_addflag=' -i_dynamic -nofor_main' ;; 12505 ifc* | ifort*) # Intel Fortran compiler 12506 tmp_addflag=' -nofor_main' ;; 12507 lf95*) # Lahey Fortran 8.1 12508 whole_archive_flag_spec= 12509 tmp_sharedflag='--shared' ;; 12510 nagfor*) # NAGFOR 5.3 12511 tmp_sharedflag='-Wl,-shared' ;; 12512 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 12513 tmp_sharedflag='-qmkshrobj' 12514 tmp_addflag= ;; 12515 nvcc*) # Cuda Compiler Driver 2.2 12516 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' 12517 compiler_needs_object=yes 12518 ;; 12519 esac 12520 case `$CC -V 2>&1 | sed 5q` in 12521 *Sun\ C*) # Sun C 5.9 12522 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' 12523 compiler_needs_object=yes 12524 tmp_sharedflag='-G' ;; 12525 *Sun\ F*) # Sun Fortran 8.3 12526 tmp_sharedflag='-G' ;; 12527 esac 12528 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12529 12530 if test yes = "$supports_anon_versioning"; then 12531 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 12532 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12533 echo "local: *; };" >> $output_objdir/$libname.ver~ 12534 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 12535 fi 12536 12537 case $cc_basename in 12538 tcc*) 12539 export_dynamic_flag_spec='-rdynamic' 12540 ;; 12541 xlf* | bgf* | bgxlf* | mpixlf*) 12542 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 12543 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 12544 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12545 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 12546 if test yes = "$supports_anon_versioning"; then 12547 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 12548 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12549 echo "local: *; };" >> $output_objdir/$libname.ver~ 12550 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 12551 fi 12552 ;; 12553 esac 12554 else 12555 ld_shlibs=no 12556 fi 12557 ;; 12558 12559 netbsd* | netbsdelf*-gnu) 12560 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12561 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 12562 wlarc= 12563 else 12564 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12565 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12566 fi 12567 ;; 12568 12569 solaris*) 12570 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 12571 ld_shlibs=no 12572 cat <<_LT_EOF 1>&2 12573 12574 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 12575 *** create shared libraries on Solaris systems. Therefore, libtool 12576 *** is disabling shared libraries support. We urge you to upgrade GNU 12577 *** binutils to release 2.9.1 or newer. Another option is to modify 12578 *** your PATH or compiler configuration so that the native linker is 12579 *** used, and then restart. 12580 12581 _LT_EOF 12582 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12583 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12584 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12585 else 12586 ld_shlibs=no 12587 fi 12588 ;; 12589 12590 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 12591 case `$LD -v 2>&1` in 12592 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 12593 ld_shlibs=no 12594 cat <<_LT_EOF 1>&2 12595 12596 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 12597 *** reliably create shared libraries on SCO systems. Therefore, libtool 12598 *** is disabling shared libraries support. We urge you to upgrade GNU 12599 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 12600 *** your PATH or compiler configuration so that the native linker is 12601 *** used, and then restart. 12602 12603 _LT_EOF 12604 ;; 12605 *) 12606 # For security reasons, it is highly recommended that you always 12607 # use absolute paths for naming shared libraries, and exclude the 12608 # DT_RUNPATH tag from executables and libraries. But doing so 12609 # requires that you compile everything twice, which is a pain. 12610 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12611 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12612 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12613 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12614 else 12615 ld_shlibs=no 12616 fi 12617 ;; 12618 esac 12619 ;; 12620 12621 sunos4*) 12622 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12623 wlarc= 12624 hardcode_direct=yes 12625 hardcode_shlibpath_var=no 12626 ;; 12627 12628 *) 12629 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12630 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12631 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12632 else 12633 ld_shlibs=no 12634 fi 12635 ;; 12636 esac 12637 12638 if test no = "$ld_shlibs"; then 12639 runpath_var= 12640 hardcode_libdir_flag_spec= 12641 export_dynamic_flag_spec= 12642 whole_archive_flag_spec= 12643 fi 12644 else 12645 # PORTME fill in a description of your system's linker (not GNU ld) 12646 case $host_os in 12647 aix3*) 12648 allow_undefined_flag=unsupported 12649 always_export_symbols=yes 12650 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' 12651 # Note: this linker hardcodes the directories in LIBPATH if there 12652 # are no directories specified by -L. 12653 hardcode_minus_L=yes 12654 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 12655 # Neither direct hardcoding nor static linking is supported with a 12656 # broken collect2. 12657 hardcode_direct=unsupported 12658 fi 12659 ;; 12660 12661 aix[4-9]*) 12662 if test ia64 = "$host_cpu"; then 12663 # On IA64, the linker does run time linking by default, so we don't 12664 # have to do anything special. 12665 aix_use_runtimelinking=no 12666 exp_sym_flag='-Bexport' 12667 no_entry_flag= 12668 else 12669 # If we're using GNU nm, then we don't want the "-C" option. 12670 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 12671 # Without the "-l" option, or with the "-B" option, AIX nm treats 12672 # weak defined symbols like other global defined symbols, whereas 12673 # GNU nm marks them as "W". 12674 # While the 'weak' keyword is ignored in the Export File, we need 12675 # it in the Import File for the 'aix-soname' feature, so we have 12676 # to replace the "-B" option with "-P" for AIX nm. 12677 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 12678 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' 12679 else 12680 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 == "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' 12681 fi 12682 aix_use_runtimelinking=no 12683 12684 # Test if we are trying to use run time linking or normal 12685 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12686 # have runtime linking enabled, and use it for executables. 12687 # For shared libraries, we enable/disable runtime linking 12688 # depending on the kind of the shared library created - 12689 # when "with_aix_soname,aix_use_runtimelinking" is: 12690 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 12691 # "aix,yes" lib.so shared, rtl:yes, for executables 12692 # lib.a static archive 12693 # "both,no" lib.so.V(shr.o) shared, rtl:yes 12694 # lib.a(lib.so.V) shared, rtl:no, for executables 12695 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 12696 # lib.a(lib.so.V) shared, rtl:no 12697 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 12698 # lib.a static archive 12699 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12700 for ld_flag in $LDFLAGS; do 12701 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 12702 aix_use_runtimelinking=yes 12703 break 12704 fi 12705 done 12706 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 12707 # With aix-soname=svr4, we create the lib.so.V shared archives only, 12708 # so we don't have lib.a shared libs to link our executables. 12709 # We have to force runtime linking in this case. 12710 aix_use_runtimelinking=yes 12711 LDFLAGS="$LDFLAGS -Wl,-brtl" 12712 fi 12713 ;; 12714 esac 12715 12716 exp_sym_flag='-bexport' 12717 no_entry_flag='-bnoentry' 12718 fi 12719 12720 # When large executables or shared objects are built, AIX ld can 12721 # have problems creating the table of contents. If linking a library 12722 # or program results in "error TOC overflow" add -mminimal-toc to 12723 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12724 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12725 12726 archive_cmds='' 12727 hardcode_direct=yes 12728 hardcode_direct_absolute=yes 12729 hardcode_libdir_separator=':' 12730 link_all_deplibs=yes 12731 file_list_spec='$wl-f,' 12732 case $with_aix_soname,$aix_use_runtimelinking in 12733 aix,*) ;; # traditional, no import file 12734 svr4,* | *,yes) # use import file 12735 # The Import File defines what to hardcode. 12736 hardcode_direct=no 12737 hardcode_direct_absolute=no 12738 ;; 12739 esac 12740 12741 if test yes = "$GCC"; then 12742 case $host_os in aix4.[012]|aix4.[012].*) 12743 # We only want to do this on AIX 4.2 and lower, the check 12744 # below for broken collect2 doesn't work under 4.3+ 12745 collect2name=`$CC -print-prog-name=collect2` 12746 if test -f "$collect2name" && 12747 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12748 then 12749 # We have reworked collect2 12750 : 12751 else 12752 # We have old collect2 12753 hardcode_direct=unsupported 12754 # It fails to find uninstalled libraries when the uninstalled 12755 # path is not listed in the libpath. Setting hardcode_minus_L 12756 # to unsupported forces relinking 12757 hardcode_minus_L=yes 12758 hardcode_libdir_flag_spec='-L$libdir' 12759 hardcode_libdir_separator= 12760 fi 12761 ;; 12762 esac 12763 shared_flag='-shared' 12764 if test yes = "$aix_use_runtimelinking"; then 12765 shared_flag="$shared_flag "'$wl-G' 12766 fi 12767 # Need to ensure runtime linking is disabled for the traditional 12768 # shared library, or the linker may eventually find shared libraries 12769 # /with/ Import File - we do not want to mix them. 12770 shared_flag_aix='-shared' 12771 shared_flag_svr4='-shared $wl-G' 12772 else 12773 # not using gcc 12774 if test ia64 = "$host_cpu"; then 12775 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12776 # chokes on -Wl,-G. The following line is correct: 12777 shared_flag='-G' 12778 else 12779 if test yes = "$aix_use_runtimelinking"; then 12780 shared_flag='$wl-G' 12781 else 12782 shared_flag='$wl-bM:SRE' 12783 fi 12784 shared_flag_aix='$wl-bM:SRE' 12785 shared_flag_svr4='$wl-G' 12786 fi 12787 fi 12788 12789 export_dynamic_flag_spec='$wl-bexpall' 12790 # It seems that -bexpall does not export symbols beginning with 12791 # underscore (_), so it is better to generate a list of symbols to export. 12792 always_export_symbols=yes 12793 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 12794 # Warning - without using the other runtime loading flags (-brtl), 12795 # -berok will link without error, but may produce a broken library. 12796 allow_undefined_flag='-berok' 12797 # Determine the default libpath from the value encoded in an 12798 # empty executable. 12799 if test set = "${lt_cv_aix_libpath+set}"; then 12800 aix_libpath=$lt_cv_aix_libpath 12801 else 12802 if ${lt_cv_aix_libpath_+:} false; then : 12803 $as_echo_n "(cached) " >&6 12804 else 12805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12806 /* end confdefs.h. */ 12807 12808 int main (void) 12809 { 12810 12811 ; 12812 return 0; 12813 } 12814 _ACEOF 12815 if ac_fn_c_try_link "$LINENO"; then : 12816 12817 lt_aix_libpath_sed=' 12818 /Import File Strings/,/^$/ { 12819 /^0/ { 12820 s/^0 *\([^ ]*\) *$/\1/ 12821 p 12822 } 12823 }' 12824 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12825 # Check for a 64-bit object if we didn't find anything. 12826 if test -z "$lt_cv_aix_libpath_"; then 12827 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12828 fi 12829 fi 12830 rm -f core conftest.err conftest.$ac_objext \ 12831 conftest$ac_exeext conftest.$ac_ext 12832 if test -z "$lt_cv_aix_libpath_"; then 12833 lt_cv_aix_libpath_=/usr/lib:/lib 12834 fi 12835 12836 fi 12837 12838 aix_libpath=$lt_cv_aix_libpath_ 12839 fi 12840 12841 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 12842 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 12843 else 12844 if test ia64 = "$host_cpu"; then 12845 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 12846 allow_undefined_flag="-z nodefs" 12847 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" 12848 else 12849 # Determine the default libpath from the value encoded in an 12850 # empty executable. 12851 if test set = "${lt_cv_aix_libpath+set}"; then 12852 aix_libpath=$lt_cv_aix_libpath 12853 else 12854 if ${lt_cv_aix_libpath_+:} false; then : 12855 $as_echo_n "(cached) " >&6 12856 else 12857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12858 /* end confdefs.h. */ 12859 12860 int main (void) 12861 { 12862 12863 ; 12864 return 0; 12865 } 12866 _ACEOF 12867 if ac_fn_c_try_link "$LINENO"; then : 12868 12869 lt_aix_libpath_sed=' 12870 /Import File Strings/,/^$/ { 12871 /^0/ { 12872 s/^0 *\([^ ]*\) *$/\1/ 12873 p 12874 } 12875 }' 12876 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12877 # Check for a 64-bit object if we didn't find anything. 12878 if test -z "$lt_cv_aix_libpath_"; then 12879 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12880 fi 12881 fi 12882 rm -f core conftest.err conftest.$ac_objext \ 12883 conftest$ac_exeext conftest.$ac_ext 12884 if test -z "$lt_cv_aix_libpath_"; then 12885 lt_cv_aix_libpath_=/usr/lib:/lib 12886 fi 12887 12888 fi 12889 12890 aix_libpath=$lt_cv_aix_libpath_ 12891 fi 12892 12893 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 12894 # Warning - without using the other run time loading flags, 12895 # -berok will link without error, but may produce a broken library. 12896 no_undefined_flag=' $wl-bernotok' 12897 allow_undefined_flag=' $wl-berok' 12898 if test yes = "$with_gnu_ld"; then 12899 # We only use this code for GNU lds that support --whole-archive. 12900 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 12901 else 12902 # Exported symbols can be pulled into shared objects from archives 12903 whole_archive_flag_spec='$convenience' 12904 fi 12905 archive_cmds_need_lc=yes 12906 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 12907 # -brtl affects multiple linker settings, -berok does not and is overridden later 12908 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 12909 if test svr4 != "$with_aix_soname"; then 12910 # This is similar to how AIX traditionally builds its shared libraries. 12911 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' 12912 fi 12913 if test aix != "$with_aix_soname"; then 12914 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' 12915 else 12916 # used by -dlpreopen to get the symbols 12917 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 12918 fi 12919 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 12920 fi 12921 fi 12922 ;; 12923 12924 amigaos*) 12925 case $host_cpu in 12926 powerpc) 12927 # see comment about AmigaOS4 .so support 12928 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12929 archive_expsym_cmds='' 12930 ;; 12931 m68k) 12932 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)' 12933 hardcode_libdir_flag_spec='-L$libdir' 12934 hardcode_minus_L=yes 12935 ;; 12936 esac 12937 ;; 12938 12939 bsdi[45]*) 12940 export_dynamic_flag_spec=-rdynamic 12941 ;; 12942 12943 cygwin* | mingw* | pw32* | cegcc*) 12944 # When not using gcc, we currently assume that we are using 12945 # Microsoft Visual C++. 12946 # hardcode_libdir_flag_spec is actually meaningless, as there is 12947 # no search path for DLLs. 12948 case $cc_basename in 12949 cl*) 12950 # Native MSVC 12951 hardcode_libdir_flag_spec=' ' 12952 allow_undefined_flag=unsupported 12953 always_export_symbols=yes 12954 file_list_spec='@' 12955 # Tell ltmain to make .lib files, not .a files. 12956 libext=lib 12957 # Tell ltmain to make .dll files, not .so files. 12958 shrext_cmds=.dll 12959 # FIXME: Setting linknames here is a bad hack. 12960 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 12961 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 12962 cp "$export_symbols" "$output_objdir/$soname.def"; 12963 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 12964 else 12965 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 12966 fi~ 12967 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 12968 linknames=' 12969 # The linker will not automatically build a static lib if we build a DLL. 12970 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 12971 enable_shared_with_static_runtimes=yes 12972 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 12973 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 12974 # Don't use ranlib 12975 old_postinstall_cmds='chmod 644 $oldlib' 12976 postlink_cmds='lt_outputfile="@OUTPUT@"~ 12977 lt_tool_outputfile="@TOOL_OUTPUT@"~ 12978 case $lt_outputfile in 12979 *.exe|*.EXE) ;; 12980 *) 12981 lt_outputfile=$lt_outputfile.exe 12982 lt_tool_outputfile=$lt_tool_outputfile.exe 12983 ;; 12984 esac~ 12985 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 12986 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 12987 $RM "$lt_outputfile.manifest"; 12988 fi' 12989 ;; 12990 *) 12991 # Assume MSVC wrapper 12992 hardcode_libdir_flag_spec=' ' 12993 allow_undefined_flag=unsupported 12994 # Tell ltmain to make .lib files, not .a files. 12995 libext=lib 12996 # Tell ltmain to make .dll files, not .so files. 12997 shrext_cmds=.dll 12998 # FIXME: Setting linknames here is a bad hack. 12999 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 13000 # The linker will automatically build a .lib file if we build a DLL. 13001 old_archive_from_new_cmds='true' 13002 # FIXME: Should let the user specify the lib program. 13003 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 13004 enable_shared_with_static_runtimes=yes 13005 ;; 13006 esac 13007 ;; 13008 13009 darwin* | rhapsody*) 13010 13011 13012 archive_cmds_need_lc=no 13013 hardcode_direct=no 13014 hardcode_automatic=yes 13015 hardcode_shlibpath_var=unsupported 13016 if test yes = "$lt_cv_ld_force_load"; then 13017 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\"`' 13018 13019 else 13020 whole_archive_flag_spec='' 13021 fi 13022 link_all_deplibs=yes 13023 allow_undefined_flag=$_lt_dar_allow_undefined 13024 case $cc_basename in 13025 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 13026 *) _lt_dar_can_shared=$GCC ;; 13027 esac 13028 if test yes = "$_lt_dar_can_shared"; then 13029 output_verbose_link_cmd=func_echo_all 13030 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 13031 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 13032 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" 13033 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" 13034 13035 else 13036 ld_shlibs=no 13037 fi 13038 13039 ;; 13040 13041 dgux*) 13042 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13043 hardcode_libdir_flag_spec='-L$libdir' 13044 hardcode_shlibpath_var=no 13045 ;; 13046 13047 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 13048 # support. Future versions do this automatically, but an explicit c++rt0.o 13049 # does not break anything, and helps significantly (at the cost of a little 13050 # extra space). 13051 freebsd2.2*) 13052 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 13053 hardcode_libdir_flag_spec='-R$libdir' 13054 hardcode_direct=yes 13055 hardcode_shlibpath_var=no 13056 ;; 13057 13058 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 13059 freebsd2.*) 13060 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13061 hardcode_direct=yes 13062 hardcode_minus_L=yes 13063 hardcode_shlibpath_var=no 13064 ;; 13065 13066 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 13067 freebsd* | dragonfly*) 13068 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13069 hardcode_libdir_flag_spec='-R$libdir' 13070 hardcode_direct=yes 13071 hardcode_shlibpath_var=no 13072 ;; 13073 13074 hpux9*) 13075 if test yes = "$GCC"; then 13076 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 -f $output_objdir/$soname $lib' 13077 else 13078 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 -f $output_objdir/$soname $lib' 13079 fi 13080 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 13081 hardcode_libdir_separator=: 13082 hardcode_direct=yes 13083 13084 # hardcode_minus_L: Not really in the search PATH, 13085 # but as the default location of the library. 13086 hardcode_minus_L=yes 13087 export_dynamic_flag_spec='$wl-E' 13088 ;; 13089 13090 hpux10*) 13091 if test yes,no = "$GCC,$with_gnu_ld"; then 13092 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13093 else 13094 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13095 fi 13096 if test no = "$with_gnu_ld"; then 13097 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 13098 hardcode_libdir_separator=: 13099 hardcode_direct=yes 13100 hardcode_direct_absolute=yes 13101 export_dynamic_flag_spec='$wl-E' 13102 # hardcode_minus_L: Not really in the search PATH, 13103 # but as the default location of the library. 13104 hardcode_minus_L=yes 13105 fi 13106 ;; 13107 13108 hpux11*) 13109 if test yes,no = "$GCC,$with_gnu_ld"; then 13110 case $host_cpu in 13111 hppa*64*) 13112 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 13113 ;; 13114 ia64*) 13115 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13116 ;; 13117 *) 13118 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13119 ;; 13120 esac 13121 else 13122 case $host_cpu in 13123 hppa*64*) 13124 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 13125 ;; 13126 ia64*) 13127 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13128 ;; 13129 *) 13130 13131 # Older versions of the 11.00 compiler do not understand -b yet 13132 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 13134 $as_echo_n "checking if $CC understands -b... " >&6; } 13135 if ${lt_cv_prog_compiler__b+:} false; then : 13136 $as_echo_n "(cached) " >&6 13137 else 13138 lt_cv_prog_compiler__b=no 13139 save_LDFLAGS=$LDFLAGS 13140 LDFLAGS="$LDFLAGS -b" 13141 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13142 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13143 # The linker can only warn and ignore the option if not recognized 13144 # So say no if there are warnings 13145 if test -s conftest.err; then 13146 # Append any errors to the config.log. 13147 cat conftest.err 1>&5 13148 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13149 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13150 if diff conftest.exp conftest.er2 >/dev/null; then 13151 lt_cv_prog_compiler__b=yes 13152 fi 13153 else 13154 lt_cv_prog_compiler__b=yes 13155 fi 13156 fi 13157 $RM -r conftest* 13158 LDFLAGS=$save_LDFLAGS 13159 13160 fi 13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 13162 $as_echo "$lt_cv_prog_compiler__b" >&6; } 13163 13164 if test yes = "$lt_cv_prog_compiler__b"; then 13165 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13166 else 13167 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13168 fi 13169 13170 ;; 13171 esac 13172 fi 13173 if test no = "$with_gnu_ld"; then 13174 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 13175 hardcode_libdir_separator=: 13176 13177 case $host_cpu in 13178 hppa*64*|ia64*) 13179 hardcode_direct=no 13180 hardcode_shlibpath_var=no 13181 ;; 13182 *) 13183 hardcode_direct=yes 13184 hardcode_direct_absolute=yes 13185 export_dynamic_flag_spec='$wl-E' 13186 13187 # hardcode_minus_L: Not really in the search PATH, 13188 # but as the default location of the library. 13189 hardcode_minus_L=yes 13190 ;; 13191 esac 13192 fi 13193 ;; 13194 13195 irix5* | irix6* | nonstopux*) 13196 if test yes = "$GCC"; then 13197 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' 13198 # Try to use the -exported_symbol ld option, if it does not 13199 # work, assume that -exports_file does not work either and 13200 # implicitly export all symbols. 13201 # This should be the same for all languages, so no per-tag cache variable. 13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 13203 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 13204 if ${lt_cv_irix_exported_symbol+:} false; then : 13205 $as_echo_n "(cached) " >&6 13206 else 13207 save_LDFLAGS=$LDFLAGS 13208 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 13209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13210 /* end confdefs.h. */ 13211 int foo (void) { return 0; } 13212 _ACEOF 13213 if ac_fn_c_try_link "$LINENO"; then : 13214 lt_cv_irix_exported_symbol=yes 13215 else 13216 lt_cv_irix_exported_symbol=no 13217 fi 13218 rm -f core conftest.err conftest.$ac_objext \ 13219 conftest$ac_exeext conftest.$ac_ext 13220 LDFLAGS=$save_LDFLAGS 13221 fi 13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 13223 $as_echo "$lt_cv_irix_exported_symbol" >&6; } 13224 if test yes = "$lt_cv_irix_exported_symbol"; then 13225 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' 13226 fi 13227 link_all_deplibs=no 13228 else 13229 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' 13230 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' 13231 fi 13232 archive_cmds_need_lc='no' 13233 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13234 hardcode_libdir_separator=: 13235 inherit_rpath=yes 13236 link_all_deplibs=yes 13237 ;; 13238 13239 linux*) 13240 case $cc_basename in 13241 tcc*) 13242 # Fabrice Bellard et al's Tiny C Compiler 13243 ld_shlibs=yes 13244 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13245 ;; 13246 esac 13247 ;; 13248 13249 netbsd* | netbsdelf*-gnu) 13250 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13251 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 13252 else 13253 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 13254 fi 13255 hardcode_libdir_flag_spec='-R$libdir' 13256 hardcode_direct=yes 13257 hardcode_shlibpath_var=no 13258 ;; 13259 13260 newsos6) 13261 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13262 hardcode_direct=yes 13263 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13264 hardcode_libdir_separator=: 13265 hardcode_shlibpath_var=no 13266 ;; 13267 13268 *nto* | *qnx*) 13269 ;; 13270 13271 openbsd* | bitrig*) 13272 if test -f /usr/libexec/ld.so; then 13273 hardcode_direct=yes 13274 hardcode_shlibpath_var=no 13275 hardcode_direct_absolute=yes 13276 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 13277 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13278 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 13279 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 13280 export_dynamic_flag_spec='$wl-E' 13281 else 13282 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13283 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 13284 fi 13285 else 13286 ld_shlibs=no 13287 fi 13288 ;; 13289 13290 os2*) 13291 hardcode_libdir_flag_spec='-L$libdir' 13292 hardcode_minus_L=yes 13293 allow_undefined_flag=unsupported 13294 shrext_cmds=.dll 13295 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13296 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13297 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13298 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13299 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 13300 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13301 emximp -o $lib $output_objdir/$libname.def' 13302 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13303 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13304 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13305 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13306 prefix_cmds="$SED"~ 13307 if test EXPORTS = "`$SED 1q $export_symbols`"; then 13308 prefix_cmds="$prefix_cmds -e 1d"; 13309 fi~ 13310 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 13311 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 13312 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13313 emximp -o $lib $output_objdir/$libname.def' 13314 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13315 enable_shared_with_static_runtimes=yes 13316 ;; 13317 13318 osf3*) 13319 if test yes = "$GCC"; then 13320 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 13321 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' 13322 else 13323 allow_undefined_flag=' -expect_unresolved \*' 13324 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' 13325 fi 13326 archive_cmds_need_lc='no' 13327 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13328 hardcode_libdir_separator=: 13329 ;; 13330 13331 osf4* | osf5*) # as osf3* with the addition of -msym flag 13332 if test yes = "$GCC"; then 13333 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 13334 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' 13335 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13336 else 13337 allow_undefined_flag=' -expect_unresolved \*' 13338 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' 13339 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~ 13340 $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' 13341 13342 # Both c and cxx compiler support -rpath directly 13343 hardcode_libdir_flag_spec='-rpath $libdir' 13344 fi 13345 archive_cmds_need_lc='no' 13346 hardcode_libdir_separator=: 13347 ;; 13348 13349 solaris*) 13350 no_undefined_flag=' -z defs' 13351 if test yes = "$GCC"; then 13352 wlarc='$wl' 13353 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 13354 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13355 $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' 13356 else 13357 case `$CC -V 2>&1` in 13358 *"Compilers 5.0"*) 13359 wlarc='' 13360 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 13361 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13362 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 13363 ;; 13364 *) 13365 wlarc='$wl' 13366 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 13367 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13368 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 13369 ;; 13370 esac 13371 fi 13372 hardcode_libdir_flag_spec='-R$libdir' 13373 hardcode_shlibpath_var=no 13374 case $host_os in 13375 solaris2.[0-5] | solaris2.[0-5].*) ;; 13376 *) 13377 # The compiler driver will combine and reorder linker options, 13378 # but understands '-z linker_flag'. GCC discards it without '$wl', 13379 # but is careful enough not to reorder. 13380 # Supported since Solaris 2.6 (maybe 2.5.1?) 13381 if test yes = "$GCC"; then 13382 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 13383 else 13384 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 13385 fi 13386 ;; 13387 esac 13388 link_all_deplibs=yes 13389 ;; 13390 13391 sunos4*) 13392 if test sequent = "$host_vendor"; then 13393 # Use $CC to link under sequent, because it throws in some extra .o 13394 # files that make .init and .fini sections work. 13395 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 13396 else 13397 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 13398 fi 13399 hardcode_libdir_flag_spec='-L$libdir' 13400 hardcode_direct=yes 13401 hardcode_minus_L=yes 13402 hardcode_shlibpath_var=no 13403 ;; 13404 13405 sysv4) 13406 case $host_vendor in 13407 sni) 13408 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13409 hardcode_direct=yes # is this really true??? 13410 ;; 13411 siemens) 13412 ## LD is ld it makes a PLAMLIB 13413 ## CC just makes a GrossModule. 13414 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 13415 reload_cmds='$CC -r -o $output$reload_objs' 13416 hardcode_direct=no 13417 ;; 13418 motorola) 13419 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13420 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 13421 ;; 13422 esac 13423 runpath_var='LD_RUN_PATH' 13424 hardcode_shlibpath_var=no 13425 ;; 13426 13427 sysv4.3*) 13428 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13429 hardcode_shlibpath_var=no 13430 export_dynamic_flag_spec='-Bexport' 13431 ;; 13432 13433 sysv4*MP*) 13434 if test -d /usr/nec; then 13435 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13436 hardcode_shlibpath_var=no 13437 runpath_var=LD_RUN_PATH 13438 hardcode_runpath_var=yes 13439 ld_shlibs=yes 13440 fi 13441 ;; 13442 13443 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13444 no_undefined_flag='$wl-z,text' 13445 archive_cmds_need_lc=no 13446 hardcode_shlibpath_var=no 13447 runpath_var='LD_RUN_PATH' 13448 13449 if test yes = "$GCC"; then 13450 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13451 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13452 else 13453 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13454 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13455 fi 13456 ;; 13457 13458 sysv5* | sco3.2v5* | sco5v6*) 13459 # Note: We CANNOT use -z defs as we might desire, because we do not 13460 # link with -lc, and that would cause any symbols used from libc to 13461 # always be unresolved, which means just about no library would 13462 # ever link correctly. If we're not using GNU ld we use -z text 13463 # though, which does catch some bad symbols but isn't as heavy-handed 13464 # as -z defs. 13465 no_undefined_flag='$wl-z,text' 13466 allow_undefined_flag='$wl-z,nodefs' 13467 archive_cmds_need_lc=no 13468 hardcode_shlibpath_var=no 13469 hardcode_libdir_flag_spec='$wl-R,$libdir' 13470 hardcode_libdir_separator=':' 13471 link_all_deplibs=yes 13472 export_dynamic_flag_spec='$wl-Bexport' 13473 runpath_var='LD_RUN_PATH' 13474 13475 if test yes = "$GCC"; then 13476 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13477 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13478 else 13479 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13480 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13481 fi 13482 ;; 13483 13484 uts4*) 13485 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13486 hardcode_libdir_flag_spec='-L$libdir' 13487 hardcode_shlibpath_var=no 13488 ;; 13489 13490 *) 13491 ld_shlibs=no 13492 ;; 13493 esac 13494 13495 if test sni = "$host_vendor"; then 13496 case $host in 13497 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13498 export_dynamic_flag_spec='$wl-Blargedynsym' 13499 ;; 13500 esac 13501 fi 13502 fi 13503 13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 13505 $as_echo "$ld_shlibs" >&6; } 13506 test no = "$ld_shlibs" && can_build_shared=no 13507 13508 with_gnu_ld=$with_gnu_ld 13509 13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 13523 13524 # 13525 # Do we need to explicitly link libc? 13526 # 13527 case "x$archive_cmds_need_lc" in 13528 x|xyes) 13529 # Assume -lc should be added 13530 archive_cmds_need_lc=yes 13531 13532 if test yes,yes = "$GCC,$enable_shared"; then 13533 case $archive_cmds in 13534 *'~'*) 13535 # FIXME: we may have to deal with multi-command sequences. 13536 ;; 13537 '$CC '*) 13538 # Test whether the compiler implicitly links with -lc since on some 13539 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13540 # to ld, don't add -lc before -lgcc. 13541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 13542 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13543 if ${lt_cv_archive_cmds_need_lc+:} false; then : 13544 $as_echo_n "(cached) " >&6 13545 else 13546 $RM conftest* 13547 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13548 13549 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13550 (eval $ac_compile) 2>&5 13551 ac_status=$? 13552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13553 test $ac_status = 0; } 2>conftest.err; then 13554 soname=conftest 13555 lib=conftest 13556 libobjs=conftest.$ac_objext 13557 deplibs= 13558 wl=$lt_prog_compiler_wl 13559 pic_flag=$lt_prog_compiler_pic 13560 compiler_flags=-v 13561 linker_flags=-v 13562 verstring= 13563 output_objdir=. 13564 libname=conftest 13565 lt_save_allow_undefined_flag=$allow_undefined_flag 13566 allow_undefined_flag= 13567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 13568 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 13569 ac_status=$? 13570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13571 test $ac_status = 0; } 13572 then 13573 lt_cv_archive_cmds_need_lc=no 13574 else 13575 lt_cv_archive_cmds_need_lc=yes 13576 fi 13577 allow_undefined_flag=$lt_save_allow_undefined_flag 13578 else 13579 cat conftest.err 1>&5 13580 fi 13581 $RM conftest* 13582 13583 fi 13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 13585 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 13586 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 13587 ;; 13588 esac 13589 fi 13590 ;; 13591 esac 13592 13593 13594 13595 13596 13597 13598 13599 13600 13601 13602 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616 13617 13618 13619 13620 13621 13622 13623 13624 13625 13626 13627 13628 13629 13630 13631 13632 13633 13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 13644 13645 13646 13647 13648 13649 13650 13651 13652 13653 13654 13655 13656 13657 13658 13659 13660 13661 13662 13663 13664 13665 13666 13667 13668 13669 13670 13671 13672 13673 13674 13675 13676 13677 13678 13679 13680 13681 13682 13683 13684 13685 13686 13687 13688 13689 13690 13691 13692 13693 13694 13695 13696 13697 13698 13699 13700 13701 13702 13703 13704 13705 13706 13707 13708 13709 13710 13711 13712 13713 13714 13715 13716 13717 13718 13719 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 13732 13733 13734 13735 13736 13737 13738 13739 13740 13741 13742 13743 13744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 13745 $as_echo_n "checking dynamic linker characteristics... " >&6; } 13746 13747 if test yes = "$GCC"; then 13748 case $host_os in 13749 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 13750 *) lt_awk_arg='/^libraries:/' ;; 13751 esac 13752 case $host_os in 13753 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 13754 *) lt_sed_strip_eq='s|=/|/|g' ;; 13755 esac 13756 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 13757 case $lt_search_path_spec in 13758 *\;*) 13759 # if the path contains ";" then we assume it to be the separator 13760 # otherwise default to the standard path separator (i.e. ":") - it is 13761 # assumed that no part of a normal pathname contains ";" but that should 13762 # okay in the real world where ";" in dirpaths is itself problematic. 13763 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 13764 ;; 13765 *) 13766 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 13767 ;; 13768 esac 13769 # Ok, now we have the path, separated by spaces, we can step through it 13770 # and add multilib dir if necessary... 13771 lt_tmp_lt_search_path_spec= 13772 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 13773 # ...but if some path component already ends with the multilib dir we assume 13774 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 13775 case "$lt_multi_os_dir; $lt_search_path_spec " in 13776 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 13777 lt_multi_os_dir= 13778 ;; 13779 esac 13780 for lt_sys_path in $lt_search_path_spec; do 13781 if test -d "$lt_sys_path$lt_multi_os_dir"; then 13782 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 13783 elif test -n "$lt_multi_os_dir"; then 13784 test -d "$lt_sys_path" && \ 13785 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 13786 fi 13787 done 13788 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 13789 BEGIN {RS = " "; FS = "/|\n";} { 13790 lt_foo = ""; 13791 lt_count = 0; 13792 for (lt_i = NF; lt_i > 0; lt_i--) { 13793 if ($lt_i != "" && $lt_i != ".") { 13794 if ($lt_i == "..") { 13795 lt_count++; 13796 } else { 13797 if (lt_count == 0) { 13798 lt_foo = "/" $lt_i lt_foo; 13799 } else { 13800 lt_count--; 13801 } 13802 } 13803 } 13804 } 13805 if (lt_foo != "") { lt_freq[lt_foo]++; } 13806 if (lt_freq[lt_foo] == 1) { print lt_foo; } 13807 }'` 13808 # AWK program above erroneously prepends '/' to C:/dos/paths 13809 # for these hosts. 13810 case $host_os in 13811 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 13812 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 13813 esac 13814 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 13815 else 13816 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13817 fi 13818 library_names_spec= 13819 libname_spec='lib$name' 13820 soname_spec= 13821 shrext_cmds=.so 13822 postinstall_cmds= 13823 postuninstall_cmds= 13824 finish_cmds= 13825 finish_eval= 13826 shlibpath_var= 13827 shlibpath_overrides_runpath=unknown 13828 version_type=none 13829 dynamic_linker="$host_os ld.so" 13830 sys_lib_dlsearch_path_spec="/lib /usr/lib" 13831 need_lib_prefix=unknown 13832 hardcode_into_libs=no 13833 13834 # when you set need_version to no, make sure it does not cause -set_version 13835 # flags to be left without arguments 13836 need_version=unknown 13837 13838 13839 13840 case $host_os in 13841 aix3*) 13842 version_type=linux # correct to gnu/linux during the next big refactor 13843 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 13844 shlibpath_var=LIBPATH 13845 13846 # AIX 3 has no versioning support, so we append a major version to the name. 13847 soname_spec='$libname$release$shared_ext$major' 13848 ;; 13849 13850 aix[4-9]*) 13851 version_type=linux # correct to gnu/linux during the next big refactor 13852 need_lib_prefix=no 13853 need_version=no 13854 hardcode_into_libs=yes 13855 if test ia64 = "$host_cpu"; then 13856 # AIX 5 supports IA64 13857 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 13858 shlibpath_var=LD_LIBRARY_PATH 13859 else 13860 # With GCC up to 2.95.x, collect2 would create an import file 13861 # for dependence libraries. The import file would start with 13862 # the line '#! .'. This would cause the generated library to 13863 # depend on '.', always an invalid library. This was fixed in 13864 # development snapshots of GCC prior to 3.0. 13865 case $host_os in 13866 aix4 | aix4.[01] | aix4.[01].*) 13867 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13868 echo ' yes ' 13869 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 13870 : 13871 else 13872 can_build_shared=no 13873 fi 13874 ;; 13875 esac 13876 # Using Import Files as archive members, it is possible to support 13877 # filename-based versioning of shared library archives on AIX. While 13878 # this would work for both with and without runtime linking, it will 13879 # prevent static linking of such archives. So we do filename-based 13880 # shared library versioning with .so extension only, which is used 13881 # when both runtime linking and shared linking is enabled. 13882 # Unfortunately, runtime linking may impact performance, so we do 13883 # not want this to be the default eventually. Also, we use the 13884 # versioned .so libs for executables only if there is the -brtl 13885 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 13886 # To allow for filename-based versioning support, we need to create 13887 # libNAME.so.V as an archive file, containing: 13888 # *) an Import File, referring to the versioned filename of the 13889 # archive as well as the shared archive member, telling the 13890 # bitwidth (32 or 64) of that shared object, and providing the 13891 # list of exported symbols of that shared object, eventually 13892 # decorated with the 'weak' keyword 13893 # *) the shared object with the F_LOADONLY flag set, to really avoid 13894 # it being seen by the linker. 13895 # At run time we better use the real file rather than another symlink, 13896 # but for link time we create the symlink libNAME.so -> libNAME.so.V 13897 13898 case $with_aix_soname,$aix_use_runtimelinking in 13899 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 13900 # soname into executable. Probably we can add versioning support to 13901 # collect2, so additional links can be useful in future. 13902 aix,yes) # traditional libtool 13903 dynamic_linker='AIX unversionable lib.so' 13904 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13905 # instead of lib<name>.a to let people know that these are not 13906 # typical AIX shared libraries. 13907 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13908 ;; 13909 aix,no) # traditional AIX only 13910 dynamic_linker='AIX lib.a(lib.so.V)' 13911 # We preserve .a as extension for shared libraries through AIX4.2 13912 # and later when we are not doing run time linking. 13913 library_names_spec='$libname$release.a $libname.a' 13914 soname_spec='$libname$release$shared_ext$major' 13915 ;; 13916 svr4,*) # full svr4 only 13917 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 13918 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 13919 # We do not specify a path in Import Files, so LIBPATH fires. 13920 shlibpath_overrides_runpath=yes 13921 ;; 13922 *,yes) # both, prefer svr4 13923 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 13924 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 13925 # unpreferred sharedlib libNAME.a needs extra handling 13926 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"' 13927 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"' 13928 # We do not specify a path in Import Files, so LIBPATH fires. 13929 shlibpath_overrides_runpath=yes 13930 ;; 13931 *,no) # both, prefer aix 13932 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 13933 library_names_spec='$libname$release.a $libname.a' 13934 soname_spec='$libname$release$shared_ext$major' 13935 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 13936 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)' 13937 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"' 13938 ;; 13939 esac 13940 shlibpath_var=LIBPATH 13941 fi 13942 ;; 13943 13944 amigaos*) 13945 case $host_cpu in 13946 powerpc) 13947 # Since July 2007 AmigaOS4 officially supports .so libraries. 13948 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 13949 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13950 ;; 13951 m68k) 13952 library_names_spec='$libname.ixlibrary $libname.a' 13953 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13954 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' 13955 ;; 13956 esac 13957 ;; 13958 13959 beos*) 13960 library_names_spec='$libname$shared_ext' 13961 dynamic_linker="$host_os ld.so" 13962 shlibpath_var=LIBRARY_PATH 13963 ;; 13964 13965 bsdi[45]*) 13966 version_type=linux # correct to gnu/linux during the next big refactor 13967 need_version=no 13968 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13969 soname_spec='$libname$release$shared_ext$major' 13970 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13971 shlibpath_var=LD_LIBRARY_PATH 13972 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13973 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13974 # the default ld.so.conf also contains /usr/contrib/lib and 13975 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13976 # libtool to hard-code these into programs 13977 ;; 13978 13979 cygwin* | mingw* | pw32* | cegcc*) 13980 version_type=windows 13981 shrext_cmds=.dll 13982 need_version=no 13983 need_lib_prefix=no 13984 13985 case $GCC,$cc_basename in 13986 yes,*) 13987 # gcc 13988 library_names_spec='$libname.dll.a' 13989 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13990 postinstall_cmds='base_file=`basename \$file`~ 13991 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 13992 dldir=$destdir/`dirname \$dlpath`~ 13993 test -d \$dldir || mkdir -p \$dldir~ 13994 $install_prog $dir/$dlname \$dldir/$dlname~ 13995 chmod a+x \$dldir/$dlname~ 13996 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13997 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13998 fi' 13999 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14000 dlpath=$dir/\$dldll~ 14001 $RM \$dlpath' 14002 shlibpath_overrides_runpath=yes 14003 14004 case $host_os in 14005 cygwin*) 14006 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14007 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14008 14009 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 14010 ;; 14011 mingw* | cegcc*) 14012 # MinGW DLLs use traditional 'lib' prefix 14013 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14014 ;; 14015 pw32*) 14016 # pw32 DLLs use 'pw' prefix rather than 'lib' 14017 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14018 ;; 14019 esac 14020 dynamic_linker='Win32 ld.exe' 14021 ;; 14022 14023 *,cl*) 14024 # Native MSVC 14025 libname_spec='$name' 14026 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14027 library_names_spec='$libname.dll.lib' 14028 14029 case $build_os in 14030 mingw*) 14031 sys_lib_search_path_spec= 14032 lt_save_ifs=$IFS 14033 IFS=';' 14034 for lt_path in $LIB 14035 do 14036 IFS=$lt_save_ifs 14037 # Let DOS variable expansion print the short 8.3 style file name. 14038 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 14039 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 14040 done 14041 IFS=$lt_save_ifs 14042 # Convert to MSYS style. 14043 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 14044 ;; 14045 cygwin*) 14046 # Convert to unix form, then to dos form, then back to unix form 14047 # but this time dos style (no spaces!) so that the unix form looks 14048 # like /cygdrive/c/PROGRA~1:/cygdr... 14049 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 14050 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 14051 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14052 ;; 14053 *) 14054 sys_lib_search_path_spec=$LIB 14055 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 14056 # It is most probably a Windows format PATH. 14057 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14058 else 14059 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14060 fi 14061 # FIXME: find the short name or the path components, as spaces are 14062 # common. (e.g. "Program Files" -> "PROGRA~1") 14063 ;; 14064 esac 14065 14066 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14067 postinstall_cmds='base_file=`basename \$file`~ 14068 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 14069 dldir=$destdir/`dirname \$dlpath`~ 14070 test -d \$dldir || mkdir -p \$dldir~ 14071 $install_prog $dir/$dlname \$dldir/$dlname' 14072 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14073 dlpath=$dir/\$dldll~ 14074 $RM \$dlpath' 14075 shlibpath_overrides_runpath=yes 14076 dynamic_linker='Win32 link.exe' 14077 ;; 14078 14079 *) 14080 # Assume MSVC wrapper 14081 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 14082 dynamic_linker='Win32 ld.exe' 14083 ;; 14084 esac 14085 # FIXME: first we should search . and the directory the executable is in 14086 shlibpath_var=PATH 14087 ;; 14088 14089 darwin* | rhapsody*) 14090 dynamic_linker="$host_os dyld" 14091 version_type=darwin 14092 need_lib_prefix=no 14093 need_version=no 14094 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 14095 soname_spec='$libname$release$major$shared_ext' 14096 shlibpath_overrides_runpath=yes 14097 shlibpath_var=DYLD_LIBRARY_PATH 14098 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14099 14100 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 14101 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14102 ;; 14103 14104 dgux*) 14105 version_type=linux # correct to gnu/linux during the next big refactor 14106 need_lib_prefix=no 14107 need_version=no 14108 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14109 soname_spec='$libname$release$shared_ext$major' 14110 shlibpath_var=LD_LIBRARY_PATH 14111 ;; 14112 14113 freebsd* | dragonfly*) 14114 # DragonFly does not have aout. When/if they implement a new 14115 # versioning mechanism, adjust this. 14116 if test -x /usr/bin/objformat; then 14117 objformat=`/usr/bin/objformat` 14118 else 14119 case $host_os in 14120 freebsd[23].*) objformat=aout ;; 14121 *) objformat=elf ;; 14122 esac 14123 fi 14124 version_type=freebsd-$objformat 14125 case $version_type in 14126 freebsd-elf*) 14127 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14128 soname_spec='$libname$release$shared_ext$major' 14129 need_version=no 14130 need_lib_prefix=no 14131 ;; 14132 freebsd-*) 14133 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14134 need_version=yes 14135 ;; 14136 esac 14137 shlibpath_var=LD_LIBRARY_PATH 14138 case $host_os in 14139 freebsd2.*) 14140 shlibpath_overrides_runpath=yes 14141 ;; 14142 freebsd3.[01]* | freebsdelf3.[01]*) 14143 shlibpath_overrides_runpath=yes 14144 hardcode_into_libs=yes 14145 ;; 14146 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14147 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14148 shlibpath_overrides_runpath=no 14149 hardcode_into_libs=yes 14150 ;; 14151 *) # from 4.6 on, and DragonFly 14152 shlibpath_overrides_runpath=yes 14153 hardcode_into_libs=yes 14154 ;; 14155 esac 14156 ;; 14157 14158 haiku*) 14159 version_type=linux # correct to gnu/linux during the next big refactor 14160 need_lib_prefix=no 14161 need_version=no 14162 dynamic_linker="$host_os runtime_loader" 14163 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14164 soname_spec='$libname$release$shared_ext$major' 14165 shlibpath_var=LIBRARY_PATH 14166 shlibpath_overrides_runpath=no 14167 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 14168 hardcode_into_libs=yes 14169 ;; 14170 14171 hpux9* | hpux10* | hpux11*) 14172 # Give a soname corresponding to the major version so that dld.sl refuses to 14173 # link against other versions. 14174 version_type=sunos 14175 need_lib_prefix=no 14176 need_version=no 14177 case $host_cpu in 14178 ia64*) 14179 shrext_cmds='.so' 14180 hardcode_into_libs=yes 14181 dynamic_linker="$host_os dld.so" 14182 shlibpath_var=LD_LIBRARY_PATH 14183 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14184 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14185 soname_spec='$libname$release$shared_ext$major' 14186 if test 32 = "$HPUX_IA64_MODE"; then 14187 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14188 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 14189 else 14190 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14191 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 14192 fi 14193 ;; 14194 hppa*64*) 14195 shrext_cmds='.sl' 14196 hardcode_into_libs=yes 14197 dynamic_linker="$host_os dld.sl" 14198 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14199 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14200 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14201 soname_spec='$libname$release$shared_ext$major' 14202 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14203 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14204 ;; 14205 *) 14206 shrext_cmds='.sl' 14207 dynamic_linker="$host_os dld.sl" 14208 shlibpath_var=SHLIB_PATH 14209 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14210 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14211 soname_spec='$libname$release$shared_ext$major' 14212 ;; 14213 esac 14214 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 14215 postinstall_cmds='chmod 555 $lib' 14216 # or fails outright, so override atomically: 14217 install_override_mode=555 14218 ;; 14219 14220 interix[3-9]*) 14221 version_type=linux # correct to gnu/linux during the next big refactor 14222 need_lib_prefix=no 14223 need_version=no 14224 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14225 soname_spec='$libname$release$shared_ext$major' 14226 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14227 shlibpath_var=LD_LIBRARY_PATH 14228 shlibpath_overrides_runpath=no 14229 hardcode_into_libs=yes 14230 ;; 14231 14232 irix5* | irix6* | nonstopux*) 14233 case $host_os in 14234 nonstopux*) version_type=nonstopux ;; 14235 *) 14236 if test yes = "$lt_cv_prog_gnu_ld"; then 14237 version_type=linux # correct to gnu/linux during the next big refactor 14238 else 14239 version_type=irix 14240 fi ;; 14241 esac 14242 need_lib_prefix=no 14243 need_version=no 14244 soname_spec='$libname$release$shared_ext$major' 14245 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 14246 case $host_os in 14247 irix5* | nonstopux*) 14248 libsuff= shlibsuff= 14249 ;; 14250 *) 14251 case $LD in # libtool.m4 will add one of these switches to LD 14252 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14253 libsuff= shlibsuff= libmagic=32-bit;; 14254 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14255 libsuff=32 shlibsuff=N32 libmagic=N32;; 14256 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14257 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14258 *) libsuff= shlibsuff= libmagic=never-match;; 14259 esac 14260 ;; 14261 esac 14262 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14263 shlibpath_overrides_runpath=no 14264 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 14265 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 14266 hardcode_into_libs=yes 14267 ;; 14268 14269 # No shared lib support for Linux oldld, aout, or coff. 14270 linux*oldld* | linux*aout* | linux*coff*) 14271 dynamic_linker=no 14272 ;; 14273 14274 linux*android*) 14275 version_type=none # Android doesn't support versioned libraries. 14276 need_lib_prefix=no 14277 need_version=no 14278 library_names_spec='$libname$release$shared_ext' 14279 soname_spec='$libname$release$shared_ext' 14280 finish_cmds= 14281 shlibpath_var=LD_LIBRARY_PATH 14282 shlibpath_overrides_runpath=yes 14283 14284 # This implies no fast_install, which is unacceptable. 14285 # Some rework will be needed to allow for fast_install 14286 # before this can be enabled. 14287 hardcode_into_libs=yes 14288 14289 dynamic_linker='Android linker' 14290 # Don't embed -rpath directories since the linker doesn't support them. 14291 hardcode_libdir_flag_spec='-L$libdir' 14292 ;; 14293 14294 # This must be glibc/ELF. 14295 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14296 version_type=linux # correct to gnu/linux during the next big refactor 14297 need_lib_prefix=no 14298 need_version=no 14299 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14300 soname_spec='$libname$release$shared_ext$major' 14301 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14302 shlibpath_var=LD_LIBRARY_PATH 14303 shlibpath_overrides_runpath=no 14304 14305 # Some binutils ld are patched to set DT_RUNPATH 14306 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 14307 $as_echo_n "(cached) " >&6 14308 else 14309 lt_cv_shlibpath_overrides_runpath=no 14310 save_LDFLAGS=$LDFLAGS 14311 save_libdir=$libdir 14312 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 14313 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 14314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14315 /* end confdefs.h. */ 14316 14317 int main (void) 14318 { 14319 14320 ; 14321 return 0; 14322 } 14323 _ACEOF 14324 if ac_fn_c_try_link "$LINENO"; then : 14325 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 14326 lt_cv_shlibpath_overrides_runpath=yes 14327 fi 14328 fi 14329 rm -f core conftest.err conftest.$ac_objext \ 14330 conftest$ac_exeext conftest.$ac_ext 14331 LDFLAGS=$save_LDFLAGS 14332 libdir=$save_libdir 14333 14334 fi 14335 14336 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 14337 14338 # This implies no fast_install, which is unacceptable. 14339 # Some rework will be needed to allow for fast_install 14340 # before this can be enabled. 14341 hardcode_into_libs=yes 14342 14343 # Ideally, we could use ldconfig to report *all* directores which are 14344 # searched for libraries, however this is still not possible. Aside from not 14345 # being certain /sbin/ldconfig is available, command 14346 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 14347 # even though it is searched at run-time. Try to do the best guess by 14348 # appending ld.so.conf contents (and includes) to the search path. 14349 if test -f /etc/ld.so.conf; then 14350 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' ' '` 14351 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14352 fi 14353 14354 # We used to test for /lib/ld.so.1 and disable shared libraries on 14355 # powerpc, because MkLinux only supported shared libraries with the 14356 # GNU dynamic linker. Since this was broken with cross compilers, 14357 # most powerpc-linux boxes support dynamic linking these days and 14358 # people can always --disable-shared, the test was removed, and we 14359 # assume the GNU/Linux dynamic linker is in use. 14360 dynamic_linker='GNU/Linux ld.so' 14361 ;; 14362 14363 netbsdelf*-gnu) 14364 version_type=linux 14365 need_lib_prefix=no 14366 need_version=no 14367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14368 soname_spec='${libname}${release}${shared_ext}$major' 14369 shlibpath_var=LD_LIBRARY_PATH 14370 shlibpath_overrides_runpath=no 14371 hardcode_into_libs=yes 14372 dynamic_linker='NetBSD ld.elf_so' 14373 ;; 14374 14375 netbsd*) 14376 version_type=sunos 14377 need_lib_prefix=no 14378 need_version=no 14379 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14380 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14381 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14382 dynamic_linker='NetBSD (a.out) ld.so' 14383 else 14384 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14385 soname_spec='$libname$release$shared_ext$major' 14386 dynamic_linker='NetBSD ld.elf_so' 14387 fi 14388 shlibpath_var=LD_LIBRARY_PATH 14389 shlibpath_overrides_runpath=yes 14390 hardcode_into_libs=yes 14391 ;; 14392 14393 newsos6) 14394 version_type=linux # correct to gnu/linux during the next big refactor 14395 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14396 shlibpath_var=LD_LIBRARY_PATH 14397 shlibpath_overrides_runpath=yes 14398 ;; 14399 14400 *nto* | *qnx*) 14401 version_type=qnx 14402 need_lib_prefix=no 14403 need_version=no 14404 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14405 soname_spec='$libname$release$shared_ext$major' 14406 shlibpath_var=LD_LIBRARY_PATH 14407 shlibpath_overrides_runpath=no 14408 hardcode_into_libs=yes 14409 dynamic_linker='ldqnx.so' 14410 ;; 14411 14412 openbsd* | bitrig*) 14413 version_type=sunos 14414 sys_lib_dlsearch_path_spec=/usr/lib 14415 need_lib_prefix=no 14416 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 14417 need_version=no 14418 else 14419 need_version=yes 14420 fi 14421 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14422 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14423 shlibpath_var=LD_LIBRARY_PATH 14424 shlibpath_overrides_runpath=yes 14425 ;; 14426 14427 os2*) 14428 libname_spec='$name' 14429 version_type=windows 14430 shrext_cmds=.dll 14431 need_version=no 14432 need_lib_prefix=no 14433 # OS/2 can only load a DLL with a base name of 8 characters or less. 14434 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 14435 v=$($ECHO $release$versuffix | tr -d .-); 14436 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 14437 $ECHO $n$v`$shared_ext' 14438 library_names_spec='${libname}_dll.$libext' 14439 dynamic_linker='OS/2 ld.exe' 14440 shlibpath_var=BEGINLIBPATH 14441 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14442 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14443 postinstall_cmds='base_file=`basename \$file`~ 14444 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 14445 dldir=$destdir/`dirname \$dlpath`~ 14446 test -d \$dldir || mkdir -p \$dldir~ 14447 $install_prog $dir/$dlname \$dldir/$dlname~ 14448 chmod a+x \$dldir/$dlname~ 14449 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14450 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14451 fi' 14452 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 14453 dlpath=$dir/\$dldll~ 14454 $RM \$dlpath' 14455 ;; 14456 14457 osf3* | osf4* | osf5*) 14458 version_type=osf 14459 need_lib_prefix=no 14460 need_version=no 14461 soname_spec='$libname$release$shared_ext$major' 14462 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14463 shlibpath_var=LD_LIBRARY_PATH 14464 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14465 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14466 ;; 14467 14468 rdos*) 14469 dynamic_linker=no 14470 ;; 14471 14472 solaris*) 14473 version_type=linux # correct to gnu/linux during the next big refactor 14474 need_lib_prefix=no 14475 need_version=no 14476 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14477 soname_spec='$libname$release$shared_ext$major' 14478 shlibpath_var=LD_LIBRARY_PATH 14479 shlibpath_overrides_runpath=yes 14480 hardcode_into_libs=yes 14481 # ldd complains unless libraries are executable 14482 postinstall_cmds='chmod +x $lib' 14483 ;; 14484 14485 sunos4*) 14486 version_type=sunos 14487 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14488 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14489 shlibpath_var=LD_LIBRARY_PATH 14490 shlibpath_overrides_runpath=yes 14491 if test yes = "$with_gnu_ld"; then 14492 need_lib_prefix=no 14493 fi 14494 need_version=yes 14495 ;; 14496 14497 sysv4 | sysv4.3*) 14498 version_type=linux # correct to gnu/linux during the next big refactor 14499 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14500 soname_spec='$libname$release$shared_ext$major' 14501 shlibpath_var=LD_LIBRARY_PATH 14502 case $host_vendor in 14503 sni) 14504 shlibpath_overrides_runpath=no 14505 need_lib_prefix=no 14506 runpath_var=LD_RUN_PATH 14507 ;; 14508 siemens) 14509 need_lib_prefix=no 14510 ;; 14511 motorola) 14512 need_lib_prefix=no 14513 need_version=no 14514 shlibpath_overrides_runpath=no 14515 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14516 ;; 14517 esac 14518 ;; 14519 14520 sysv4*MP*) 14521 if test -d /usr/nec; then 14522 version_type=linux # correct to gnu/linux during the next big refactor 14523 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 14524 soname_spec='$libname$shared_ext.$major' 14525 shlibpath_var=LD_LIBRARY_PATH 14526 fi 14527 ;; 14528 14529 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14530 version_type=sco 14531 need_lib_prefix=no 14532 need_version=no 14533 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 14534 soname_spec='$libname$release$shared_ext$major' 14535 shlibpath_var=LD_LIBRARY_PATH 14536 shlibpath_overrides_runpath=yes 14537 hardcode_into_libs=yes 14538 if test yes = "$with_gnu_ld"; then 14539 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14540 else 14541 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14542 case $host_os in 14543 sco3.2v5*) 14544 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14545 ;; 14546 esac 14547 fi 14548 sys_lib_dlsearch_path_spec='/usr/lib' 14549 ;; 14550 14551 tpf*) 14552 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14553 version_type=linux # correct to gnu/linux during the next big refactor 14554 need_lib_prefix=no 14555 need_version=no 14556 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14557 shlibpath_var=LD_LIBRARY_PATH 14558 shlibpath_overrides_runpath=no 14559 hardcode_into_libs=yes 14560 ;; 14561 14562 uts4*) 14563 version_type=linux # correct to gnu/linux during the next big refactor 14564 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14565 soname_spec='$libname$release$shared_ext$major' 14566 shlibpath_var=LD_LIBRARY_PATH 14567 ;; 14568 14569 *) 14570 dynamic_linker=no 14571 ;; 14572 esac 14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 14574 $as_echo "$dynamic_linker" >&6; } 14575 test no = "$dynamic_linker" && can_build_shared=no 14576 14577 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14578 if test yes = "$GCC"; then 14579 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14580 fi 14581 14582 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 14583 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 14584 fi 14585 14586 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 14587 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 14588 fi 14589 14590 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 14591 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 14592 14593 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 14594 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 14595 14596 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 14597 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 14598 14599 14600 14601 14602 14603 14604 14605 14606 14607 14608 14609 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 14621 14622 14623 14624 14625 14626 14627 14628 14629 14630 14631 14632 14633 14634 14635 14636 14637 14638 14639 14640 14641 14642 14643 14644 14645 14646 14647 14648 14649 14650 14651 14652 14653 14654 14655 14656 14657 14658 14659 14660 14661 14662 14663 14664 14665 14666 14667 14668 14669 14670 14671 14672 14673 14674 14675 14676 14677 14678 14679 14680 14681 14682 14683 14684 14685 14686 14687 14688 14689 14690 14691 14692 14693 14694 14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 14696 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 14697 hardcode_action= 14698 if test -n "$hardcode_libdir_flag_spec" || 14699 test -n "$runpath_var" || 14700 test yes = "$hardcode_automatic"; then 14701 14702 # We can hardcode non-existent directories. 14703 if test no != "$hardcode_direct" && 14704 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14705 # have to relink, otherwise we might link with an installed library 14706 # when we should be linking with a yet-to-be-installed one 14707 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 14708 test no != "$hardcode_minus_L"; then 14709 # Linking always hardcodes the temporary library directory. 14710 hardcode_action=relink 14711 else 14712 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14713 hardcode_action=immediate 14714 fi 14715 else 14716 # We cannot hardcode anything, or else we can only hardcode existing 14717 # directories. 14718 hardcode_action=unsupported 14719 fi 14720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 14721 $as_echo "$hardcode_action" >&6; } 14722 14723 if test relink = "$hardcode_action" || 14724 test yes = "$inherit_rpath"; then 14725 # Fast installation is not supported 14726 enable_fast_install=no 14727 elif test yes = "$shlibpath_overrides_runpath" || 14728 test no = "$enable_shared"; then 14729 # Fast installation is not necessary 14730 enable_fast_install=needless 14731 fi 14732 14733 14734 14735 14736 14737 14738 if test yes != "$enable_dlopen"; then 14739 enable_dlopen=unknown 14740 enable_dlopen_self=unknown 14741 enable_dlopen_self_static=unknown 14742 else 14743 lt_cv_dlopen=no 14744 lt_cv_dlopen_libs= 14745 14746 case $host_os in 14747 beos*) 14748 lt_cv_dlopen=load_add_on 14749 lt_cv_dlopen_libs= 14750 lt_cv_dlopen_self=yes 14751 ;; 14752 14753 mingw* | pw32* | cegcc*) 14754 lt_cv_dlopen=LoadLibrary 14755 lt_cv_dlopen_libs= 14756 ;; 14757 14758 cygwin*) 14759 lt_cv_dlopen=dlopen 14760 lt_cv_dlopen_libs= 14761 ;; 14762 14763 darwin*) 14764 # if libdl is installed we need to link against it 14765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14766 $as_echo_n "checking for dlopen in -ldl... " >&6; } 14767 if ${ac_cv_lib_dl_dlopen+:} false; then : 14768 $as_echo_n "(cached) " >&6 14769 else 14770 ac_check_lib_save_LIBS=$LIBS 14771 LIBS="-ldl $LIBS" 14772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14773 /* end confdefs.h. */ 14774 14775 14776 #ifdef __cplusplus 14777 extern "C" 14778 #endif 14779 char dlopen (); 14780 int main (void) 14781 { 14782 return dlopen (); 14783 ; 14784 return 0; 14785 } 14786 _ACEOF 14787 if ac_fn_c_try_link "$LINENO"; then : 14788 ac_cv_lib_dl_dlopen=yes 14789 else 14790 ac_cv_lib_dl_dlopen=no 14791 fi 14792 rm -f core conftest.err conftest.$ac_objext \ 14793 conftest$ac_exeext conftest.$ac_ext 14794 LIBS=$ac_check_lib_save_LIBS 14795 fi 14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14797 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 14798 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 14799 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 14800 else 14801 14802 lt_cv_dlopen=dyld 14803 lt_cv_dlopen_libs= 14804 lt_cv_dlopen_self=yes 14805 14806 fi 14807 14808 ;; 14809 14810 tpf*) 14811 # Don't try to run any link tests for TPF. We know it's impossible 14812 # because TPF is a cross-compiler, and we know how we open DSOs. 14813 lt_cv_dlopen=dlopen 14814 lt_cv_dlopen_libs= 14815 lt_cv_dlopen_self=no 14816 ;; 14817 14818 *) 14819 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 14820 if test "x$ac_cv_func_shl_load" = xyes; then : 14821 lt_cv_dlopen=shl_load 14822 else 14823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 14824 $as_echo_n "checking for shl_load in -ldld... " >&6; } 14825 if ${ac_cv_lib_dld_shl_load+:} false; then : 14826 $as_echo_n "(cached) " >&6 14827 else 14828 ac_check_lib_save_LIBS=$LIBS 14829 LIBS="-ldld $LIBS" 14830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14831 /* end confdefs.h. */ 14832 14833 14834 #ifdef __cplusplus 14835 extern "C" 14836 #endif 14837 char shl_load (); 14838 int main (void) 14839 { 14840 return shl_load (); 14841 ; 14842 return 0; 14843 } 14844 _ACEOF 14845 if ac_fn_c_try_link "$LINENO"; then : 14846 ac_cv_lib_dld_shl_load=yes 14847 else 14848 ac_cv_lib_dld_shl_load=no 14849 fi 14850 rm -f core conftest.err conftest.$ac_objext \ 14851 conftest$ac_exeext conftest.$ac_ext 14852 LIBS=$ac_check_lib_save_LIBS 14853 fi 14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 14855 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 14856 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 14857 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 14858 else 14859 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 14860 if test "x$ac_cv_func_dlopen" = xyes; then : 14861 lt_cv_dlopen=dlopen 14862 else 14863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14864 $as_echo_n "checking for dlopen in -ldl... " >&6; } 14865 if ${ac_cv_lib_dl_dlopen+:} false; then : 14866 $as_echo_n "(cached) " >&6 14867 else 14868 ac_check_lib_save_LIBS=$LIBS 14869 LIBS="-ldl $LIBS" 14870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14871 /* end confdefs.h. */ 14872 14873 14874 #ifdef __cplusplus 14875 extern "C" 14876 #endif 14877 char dlopen (); 14878 int main (void) 14879 { 14880 return dlopen (); 14881 ; 14882 return 0; 14883 } 14884 _ACEOF 14885 if ac_fn_c_try_link "$LINENO"; then : 14886 ac_cv_lib_dl_dlopen=yes 14887 else 14888 ac_cv_lib_dl_dlopen=no 14889 fi 14890 rm -f core conftest.err conftest.$ac_objext \ 14891 conftest$ac_exeext conftest.$ac_ext 14892 LIBS=$ac_check_lib_save_LIBS 14893 fi 14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14895 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 14896 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 14897 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 14898 else 14899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 14900 $as_echo_n "checking for dlopen in -lsvld... " >&6; } 14901 if ${ac_cv_lib_svld_dlopen+:} false; then : 14902 $as_echo_n "(cached) " >&6 14903 else 14904 ac_check_lib_save_LIBS=$LIBS 14905 LIBS="-lsvld $LIBS" 14906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14907 /* end confdefs.h. */ 14908 14909 14910 #ifdef __cplusplus 14911 extern "C" 14912 #endif 14913 char dlopen (); 14914 int main (void) 14915 { 14916 return dlopen (); 14917 ; 14918 return 0; 14919 } 14920 _ACEOF 14921 if ac_fn_c_try_link "$LINENO"; then : 14922 ac_cv_lib_svld_dlopen=yes 14923 else 14924 ac_cv_lib_svld_dlopen=no 14925 fi 14926 rm -f core conftest.err conftest.$ac_objext \ 14927 conftest$ac_exeext conftest.$ac_ext 14928 LIBS=$ac_check_lib_save_LIBS 14929 fi 14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 14931 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } 14932 if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 14933 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 14934 else 14935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 14936 $as_echo_n "checking for dld_link in -ldld... " >&6; } 14937 if ${ac_cv_lib_dld_dld_link+:} false; then : 14938 $as_echo_n "(cached) " >&6 14939 else 14940 ac_check_lib_save_LIBS=$LIBS 14941 LIBS="-ldld $LIBS" 14942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14943 /* end confdefs.h. */ 14944 14945 14946 #ifdef __cplusplus 14947 extern "C" 14948 #endif 14949 char dld_link (); 14950 int main (void) 14951 { 14952 return dld_link (); 14953 ; 14954 return 0; 14955 } 14956 _ACEOF 14957 if ac_fn_c_try_link "$LINENO"; then : 14958 ac_cv_lib_dld_dld_link=yes 14959 else 14960 ac_cv_lib_dld_dld_link=no 14961 fi 14962 rm -f core conftest.err conftest.$ac_objext \ 14963 conftest$ac_exeext conftest.$ac_ext 14964 LIBS=$ac_check_lib_save_LIBS 14965 fi 14966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 14967 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } 14968 if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 14969 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 14970 fi 14971 14972 14973 fi 14974 14975 14976 fi 14977 14978 14979 fi 14980 14981 14982 fi 14983 14984 14985 fi 14986 14987 ;; 14988 esac 14989 14990 if test no = "$lt_cv_dlopen"; then 14991 enable_dlopen=no 14992 else 14993 enable_dlopen=yes 14994 fi 14995 14996 case $lt_cv_dlopen in 14997 dlopen) 14998 save_CPPFLAGS=$CPPFLAGS 14999 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 15000 15001 save_LDFLAGS=$LDFLAGS 15002 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 15003 15004 save_LIBS=$LIBS 15005 LIBS="$lt_cv_dlopen_libs $LIBS" 15006 15007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 15008 $as_echo_n "checking whether a program can dlopen itself... " >&6; } 15009 if ${lt_cv_dlopen_self+:} false; then : 15010 $as_echo_n "(cached) " >&6 15011 else 15012 if test yes = "$cross_compiling"; then : 15013 lt_cv_dlopen_self=cross 15014 else 15015 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 15016 lt_status=$lt_dlunknown 15017 cat > conftest.$ac_ext <<_LT_EOF 15018 #line $LINENO "configure" 15019 #include "confdefs.h" 15020 15021 #if HAVE_DLFCN_H 15022 #include <dlfcn.h> 15023 #endif 15024 15025 #include <stdio.h> 15026 15027 #ifdef RTLD_GLOBAL 15028 # define LT_DLGLOBAL RTLD_GLOBAL 15029 #else 15030 # ifdef DL_GLOBAL 15031 # define LT_DLGLOBAL DL_GLOBAL 15032 # else 15033 # define LT_DLGLOBAL 0 15034 # endif 15035 #endif 15036 15037 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 15038 find out it does not work in some platform. */ 15039 #ifndef LT_DLLAZY_OR_NOW 15040 # ifdef RTLD_LAZY 15041 # define LT_DLLAZY_OR_NOW RTLD_LAZY 15042 # else 15043 # ifdef DL_LAZY 15044 # define LT_DLLAZY_OR_NOW DL_LAZY 15045 # else 15046 # ifdef RTLD_NOW 15047 # define LT_DLLAZY_OR_NOW RTLD_NOW 15048 # else 15049 # ifdef DL_NOW 15050 # define LT_DLLAZY_OR_NOW DL_NOW 15051 # else 15052 # define LT_DLLAZY_OR_NOW 0 15053 # endif 15054 # endif 15055 # endif 15056 # endif 15057 #endif 15058 15059 /* When -fvisibility=hidden is used, assume the code has been annotated 15060 correspondingly for the symbols needed. */ 15061 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 15062 int fnord () __attribute__((visibility("default"))); 15063 #endif 15064 15065 int fnord () { return 42; } 15066 int main () 15067 { 15068 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 15069 int status = $lt_dlunknown; 15070 15071 if (self) 15072 { 15073 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 15074 else 15075 { 15076 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 15077 else puts (dlerror ()); 15078 } 15079 /* dlclose (self); */ 15080 } 15081 else 15082 puts (dlerror ()); 15083 15084 return status; 15085 } 15086 _LT_EOF 15087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 15088 (eval $ac_link) 2>&5 15089 ac_status=$? 15090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15091 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 15092 (./conftest; exit; ) >&5 2>/dev/null 15093 lt_status=$? 15094 case x$lt_status in 15095 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 15096 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 15097 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 15098 esac 15099 else : 15100 # compilation failed 15101 lt_cv_dlopen_self=no 15102 fi 15103 fi 15104 rm -fr conftest* 15105 15106 15107 fi 15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 15109 $as_echo "$lt_cv_dlopen_self" >&6; } 15110 15111 if test yes = "$lt_cv_dlopen_self"; then 15112 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 15113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 15114 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 15115 if ${lt_cv_dlopen_self_static+:} false; then : 15116 $as_echo_n "(cached) " >&6 15117 else 15118 if test yes = "$cross_compiling"; then : 15119 lt_cv_dlopen_self_static=cross 15120 else 15121 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 15122 lt_status=$lt_dlunknown 15123 cat > conftest.$ac_ext <<_LT_EOF 15124 #line $LINENO "configure" 15125 #include "confdefs.h" 15126 15127 #if HAVE_DLFCN_H 15128 #include <dlfcn.h> 15129 #endif 15130 15131 #include <stdio.h> 15132 15133 #ifdef RTLD_GLOBAL 15134 # define LT_DLGLOBAL RTLD_GLOBAL 15135 #else 15136 # ifdef DL_GLOBAL 15137 # define LT_DLGLOBAL DL_GLOBAL 15138 # else 15139 # define LT_DLGLOBAL 0 15140 # endif 15141 #endif 15142 15143 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 15144 find out it does not work in some platform. */ 15145 #ifndef LT_DLLAZY_OR_NOW 15146 # ifdef RTLD_LAZY 15147 # define LT_DLLAZY_OR_NOW RTLD_LAZY 15148 # else 15149 # ifdef DL_LAZY 15150 # define LT_DLLAZY_OR_NOW DL_LAZY 15151 # else 15152 # ifdef RTLD_NOW 15153 # define LT_DLLAZY_OR_NOW RTLD_NOW 15154 # else 15155 # ifdef DL_NOW 15156 # define LT_DLLAZY_OR_NOW DL_NOW 15157 # else 15158 # define LT_DLLAZY_OR_NOW 0 15159 # endif 15160 # endif 15161 # endif 15162 # endif 15163 #endif 15164 15165 /* When -fvisibility=hidden is used, assume the code has been annotated 15166 correspondingly for the symbols needed. */ 15167 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 15168 int fnord () __attribute__((visibility("default"))); 15169 #endif 15170 15171 int fnord () { return 42; } 15172 int main () 15173 { 15174 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 15175 int status = $lt_dlunknown; 15176 15177 if (self) 15178 { 15179 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 15180 else 15181 { 15182 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 15183 else puts (dlerror ()); 15184 } 15185 /* dlclose (self); */ 15186 } 15187 else 15188 puts (dlerror ()); 15189 15190 return status; 15191 } 15192 _LT_EOF 15193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 15194 (eval $ac_link) 2>&5 15195 ac_status=$? 15196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15197 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 15198 (./conftest; exit; ) >&5 2>/dev/null 15199 lt_status=$? 15200 case x$lt_status in 15201 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 15202 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 15203 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 15204 esac 15205 else : 15206 # compilation failed 15207 lt_cv_dlopen_self_static=no 15208 fi 15209 fi 15210 rm -fr conftest* 15211 15212 15213 fi 15214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 15215 $as_echo "$lt_cv_dlopen_self_static" >&6; } 15216 fi 15217 15218 CPPFLAGS=$save_CPPFLAGS 15219 LDFLAGS=$save_LDFLAGS 15220 LIBS=$save_LIBS 15221 ;; 15222 esac 15223 15224 case $lt_cv_dlopen_self in 15225 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 15226 *) enable_dlopen_self=unknown ;; 15227 esac 15228 15229 case $lt_cv_dlopen_self_static in 15230 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 15231 *) enable_dlopen_self_static=unknown ;; 15232 esac 15233 fi 15234 15235 15236 15237 15238 15239 15240 15241 15242 15243 15244 15245 15246 15247 15248 15249 15250 15251 striplib= 15252 old_striplib= 15253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 15254 $as_echo_n "checking whether stripping libraries is possible... " >&6; } 15255 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 15256 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 15257 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 15258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15259 $as_echo "yes" >&6; } 15260 else 15261 # FIXME - insert some real tests, host_os isn't really good enough 15262 case $host_os in 15263 darwin*) 15264 if test -n "$STRIP"; then 15265 striplib="$STRIP -x" 15266 old_striplib="$STRIP -S" 15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15268 $as_echo "yes" >&6; } 15269 else 15270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15271 $as_echo "no" >&6; } 15272 fi 15273 ;; 15274 *) 15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15276 $as_echo "no" >&6; } 15277 ;; 15278 esac 15279 fi 15280 15281 15282 15283 15284 15285 15286 15287 15288 15289 15290 15291 15292 # Report what library types will actually be built 15293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 15294 $as_echo_n "checking if libtool supports shared libraries... " >&6; } 15295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 15296 $as_echo "$can_build_shared" >&6; } 15297 15298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 15299 $as_echo_n "checking whether to build shared libraries... " >&6; } 15300 test no = "$can_build_shared" && enable_shared=no 15301 15302 # On AIX, shared libraries and static libraries use the same namespace, and 15303 # are all built from PIC. 15304 case $host_os in 15305 aix3*) 15306 test yes = "$enable_shared" && enable_static=no 15307 if test -n "$RANLIB"; then 15308 archive_cmds="$archive_cmds~\$RANLIB \$lib" 15309 postinstall_cmds='$RANLIB $lib' 15310 fi 15311 ;; 15312 15313 aix[4-9]*) 15314 if test ia64 != "$host_cpu"; then 15315 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 15316 yes,aix,yes) ;; # shared object as lib.so file only 15317 yes,svr4,*) ;; # shared object as lib.so archive member only 15318 yes,*) enable_static=no ;; # shared object in lib.a archive as well 15319 esac 15320 fi 15321 ;; 15322 esac 15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 15324 $as_echo "$enable_shared" >&6; } 15325 15326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 15327 $as_echo_n "checking whether to build static libraries... " >&6; } 15328 # Make sure either enable_shared or enable_static is yes. 15329 test yes = "$enable_shared" || enable_static=yes 15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 15331 $as_echo "$enable_static" >&6; } 15332 15333 15334 15335 15336 fi 15337 ac_ext=c 15338 ac_cpp='$CPP $CPPFLAGS' 15339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15341 ac_compiler_gnu=$ac_cv_c_compiler_gnu 15342 15343 CC=$lt_save_CC 15344 15345 15346 15347 15348 15349 15350 15351 15352 15353 15354 15355 15356 15357 15358 15359 ac_config_commands="$ac_config_commands libtool" 15360 15361 15362 15363 15364 # Only expand once: 15365 15366 15367 ## --------------------- ## 15368 ## End of libtool code ## 15369 ## --------------------- ## 15370 15371 # 15372 # Verify if finally libtool shared libraries will be built 15373 # 15374 15375 case "x$enable_shared" in # (( 15376 xyes | xno) 15377 xc_lt_build_shared=$enable_shared 15378 ;; 15379 *) 15380 as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5 15381 ;; 15382 esac 15383 15384 # 15385 # Verify if finally libtool static libraries will be built 15386 # 15387 15388 case "x$enable_static" in # (( 15389 xyes | xno) 15390 xc_lt_build_static=$enable_static 15391 ;; 15392 *) 15393 as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5 15394 ;; 15395 esac 15396 15397 # 15398 # Verify if libtool shared libraries should be linked using flag -version-info 15399 # 15400 15401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5 15402 $as_echo_n "checking whether to build shared libraries with -version-info... " >&6; } 15403 xc_lt_shlib_use_version_info='yes' 15404 if test "x$version_type" = 'xnone'; then 15405 xc_lt_shlib_use_version_info='no' 15406 fi 15407 case $host_os in # ( 15408 amigaos*) 15409 xc_lt_shlib_use_version_info='yes' 15410 ;; 15411 esac 15412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5 15413 $as_echo "$xc_lt_shlib_use_version_info" >&6; } 15414 15415 # 15416 # Verify if libtool shared libraries should be linked using flag -no-undefined 15417 # 15418 15419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5 15420 $as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; } 15421 xc_lt_shlib_use_no_undefined='no' 15422 if test "x$allow_undefined" = 'xno'; then 15423 xc_lt_shlib_use_no_undefined='yes' 15424 elif test "x$allow_undefined_flag" = 'xunsupported'; then 15425 xc_lt_shlib_use_no_undefined='yes' 15426 fi 15427 case $host_os in # ( 15428 cygwin* | mingw* | pw32* | cegcc* | os2* | aix*) 15429 xc_lt_shlib_use_no_undefined='yes' 15430 ;; 15431 esac 15432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5 15433 $as_echo "$xc_lt_shlib_use_no_undefined" >&6; } 15434 15435 # 15436 # Verify if libtool shared libraries should be linked using flag -mimpure-text 15437 # 15438 15439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5 15440 $as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; } 15441 xc_lt_shlib_use_mimpure_text='no' 15442 case $host_os in # ( 15443 solaris2*) 15444 if test "x$GCC" = 'xyes'; then 15445 xc_lt_shlib_use_mimpure_text='yes' 15446 fi 15447 ;; 15448 esac 15449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5 15450 $as_echo "$xc_lt_shlib_use_mimpure_text" >&6; } 15451 15452 # 15453 # Find out whether libtool libraries would be built wit PIC 15454 # 15455 15456 case "x$pic_mode" in # (((( 15457 xdefault) 15458 xc_lt_build_shared_with_pic='yes' 15459 xc_lt_build_static_with_pic='no' 15460 ;; 15461 xyes) 15462 xc_lt_build_shared_with_pic='yes' 15463 xc_lt_build_static_with_pic='yes' 15464 ;; 15465 xno) 15466 xc_lt_build_shared_with_pic='no' 15467 xc_lt_build_static_with_pic='no' 15468 ;; 15469 *) 15470 xc_lt_build_shared_with_pic='unknown' 15471 xc_lt_build_static_with_pic='unknown' 15472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5 15473 $as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;} 15474 ;; 15475 esac 15476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5 15477 $as_echo_n "checking whether to build shared libraries with PIC... " >&6; } 15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5 15479 $as_echo "$xc_lt_build_shared_with_pic" >&6; } 15480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5 15481 $as_echo_n "checking whether to build static libraries with PIC... " >&6; } 15482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5 15483 $as_echo "$xc_lt_build_static_with_pic" >&6; } 15484 15485 # 15486 # Verify if libtool shared libraries will be built while static not built 15487 # 15488 15489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5 15490 $as_echo_n "checking whether to build shared libraries only... " >&6; } 15491 if test "$xc_lt_build_shared" = 'yes' && 15492 test "$xc_lt_build_static" = 'no'; then 15493 xc_lt_build_shared_only='yes' 15494 else 15495 xc_lt_build_shared_only='no' 15496 fi 15497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5 15498 $as_echo "$xc_lt_build_shared_only" >&6; } 15499 15500 # 15501 # Verify if libtool static libraries will be built while shared not built 15502 # 15503 15504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5 15505 $as_echo_n "checking whether to build static libraries only... " >&6; } 15506 if test "$xc_lt_build_static" = 'yes' && 15507 test "$xc_lt_build_shared" = 'no'; then 15508 xc_lt_build_static_only='yes' 15509 else 15510 xc_lt_build_static_only='no' 15511 fi 15512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5 15513 $as_echo "$xc_lt_build_static_only" >&6; } 15514 15515 15516 15517 15518 # 15519 # Automake conditionals based on libtool related checks 15520 # 15521 15522 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then 15523 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE= 15524 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#' 15525 else 15526 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#' 15527 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE= 15528 fi 15529 15530 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then 15531 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE= 15532 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#' 15533 else 15534 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#' 15535 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE= 15536 fi 15537 15538 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then 15539 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE= 15540 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#' 15541 else 15542 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#' 15543 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE= 15544 fi 15545 15546 15547 # 15548 # Due to libtool and automake machinery limitations of not allowing 15549 # specifying separate CPPFLAGS or CFLAGS when compiling objects for 15550 # inclusion of these in shared or static libraries, we are forced to 15551 # build using separate configure runs for shared and static libraries 15552 # on systems where different CPPFLAGS or CFLAGS are mandatory in order 15553 # to compile objects for each kind of library. Notice that relying on 15554 # the '-DPIC' CFLAG that libtool provides is not valid given that the 15555 # user might for example choose to build static libraries with PIC. 15556 # 15557 15558 # 15559 # Make our Makefile.am files use the staticlib CPPFLAG only when strictly 15560 # targeting a static library and not building its shared counterpart. 15561 # 15562 15563 if test "x$xc_lt_build_static_only" = 'xyes'; then 15564 USE_CPPFLAG_CURL_STATICLIB_TRUE= 15565 USE_CPPFLAG_CURL_STATICLIB_FALSE='#' 15566 else 15567 USE_CPPFLAG_CURL_STATICLIB_TRUE='#' 15568 USE_CPPFLAG_CURL_STATICLIB_FALSE= 15569 fi 15570 15571 15572 # 15573 # Make staticlib CPPFLAG variable and its definition visible in output 15574 # files unconditionally, providing an empty definition unless strictly 15575 # targeting a static library and not building its shared counterpart. 15576 # 15577 15578 CPPFLAG_CURL_STATICLIB= 15579 if test "x$xc_lt_build_static_only" = 'xyes'; then 15580 CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB' 15581 fi 15582 15583 15584 15585 # Determine whether all dependent libraries must be specified when linking 15586 if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno" 15587 then 15588 REQUIRE_LIB_DEPS=no 15589 else 15590 REQUIRE_LIB_DEPS=yes 15591 fi 15592 15593 if test x$REQUIRE_LIB_DEPS = xyes; then 15594 USE_EXPLICIT_LIB_DEPS_TRUE= 15595 USE_EXPLICIT_LIB_DEPS_FALSE='#' 15596 else 15597 USE_EXPLICIT_LIB_DEPS_TRUE='#' 15598 USE_EXPLICIT_LIB_DEPS_FALSE= 15599 fi 15600 15601 15602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 15603 $as_echo_n "checking for inline... " >&6; } 15604 if ${ac_cv_c_inline+:} false; then : 15605 $as_echo_n "(cached) " >&6 15606 else 15607 ac_cv_c_inline=no 15608 for ac_kw in inline __inline__ __inline; do 15609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15610 /* end confdefs.h. */ 15611 #ifndef __cplusplus 15612 typedef int foo_t; 15613 static $ac_kw foo_t static_foo () {return 0; } 15614 $ac_kw foo_t foo () {return 0; } 15615 #endif 15616 15617 _ACEOF 15618 if ac_fn_c_try_compile "$LINENO"; then : 15619 ac_cv_c_inline=$ac_kw 15620 fi 15621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15622 test "$ac_cv_c_inline" != no && break 15623 done 15624 15625 fi 15626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 15627 $as_echo "$ac_cv_c_inline" >&6; } 15628 15629 case $ac_cv_c_inline in 15630 inline | yes) ;; 15631 *) 15632 case $ac_cv_c_inline in 15633 no) ac_val=;; 15634 *) ac_val=$ac_cv_c_inline;; 15635 esac 15636 cat >>confdefs.h <<_ACEOF 15637 #ifndef __cplusplus 15638 #define inline $ac_val 15639 #endif 15640 _ACEOF 15641 ;; 15642 esac 15643 15644 15645 15646 15647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5 15648 $as_echo_n "checking if cpp -P is needed... " >&6; } 15649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15650 /* end confdefs.h. */ 15651 15652 #include <errno.h> 15653 TEST EINVAL TEST 15654 15655 _ACEOF 15656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15657 $EGREP "TEST.*TEST" >/dev/null 2>&1; then : 15658 cpp=no 15659 else 15660 cpp=yes 15661 fi 15662 rm -f conftest* 15663 15664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5 15665 $as_echo "$cpp" >&6; } 15666 15667 if test "x$cpp" = "xyes"; then 15668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5 15669 $as_echo_n "checking if cpp -P works... " >&6; } 15670 OLDCPPFLAGS=$CPPFLAGS 15671 CPPFLAGS="$CPPFLAGS -P" 15672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15673 /* end confdefs.h. */ 15674 15675 #include <errno.h> 15676 TEST EINVAL TEST 15677 15678 _ACEOF 15679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15680 $EGREP "TEST.*TEST" >/dev/null 2>&1; then : 15681 cpp_p=yes 15682 else 15683 cpp_p=no 15684 fi 15685 rm -f conftest* 15686 15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5 15688 $as_echo "$cpp_p" >&6; } 15689 15690 if test "x$cpp_p" = "xno"; then 15691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5 15692 $as_echo "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;} 15693 # without -P 15694 CPPPFLAG="" 15695 else 15696 # with -P 15697 CPPPFLAG="-P" 15698 fi 15699 CPPFLAGS=$OLDCPPFLAGS 15700 else 15701 # without -P 15702 CPPPFLAG="" 15703 fi 15704 15705 15706 # 15707 compiler_id="unknown" 15708 compiler_num="0" 15709 # 15710 flags_dbg_all="unknown" 15711 flags_dbg_yes="unknown" 15712 flags_dbg_off="unknown" 15713 flags_opt_all="unknown" 15714 flags_opt_yes="unknown" 15715 flags_opt_off="unknown" 15716 # 15717 flags_prefer_cppflags="no" 15718 # 15719 15720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5 15721 $as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; } 15722 15723 OLDCPPFLAGS=$CPPFLAGS 15724 # CPPPFLAG comes from CURL_CPP_P 15725 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 15726 if test -z "$SED"; then 15727 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 15728 fi 15729 if test -z "$GREP"; then 15730 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 15731 fi 15732 15733 tmp_exp="" 15734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15735 /* end confdefs.h. */ 15736 15737 15738 #ifdef __DECC 15739 CURL_DEF_TOKEN __DECC 15740 #endif 15741 15742 15743 _ACEOF 15744 if ac_fn_c_try_cpp "$LINENO"; then : 15745 15746 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 15747 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 15748 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 15749 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 15750 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then 15751 tmp_exp="" 15752 fi 15753 15754 fi 15755 rm -f conftest.err conftest.i conftest.$ac_ext 15756 if test -z "$tmp_exp"; then 15757 curl_cv_have_def___DECC=no 15758 15759 else 15760 curl_cv_have_def___DECC=yes 15761 curl_cv_def___DECC=$tmp_exp 15762 15763 fi 15764 CPPFLAGS=$OLDCPPFLAGS 15765 15766 15767 OLDCPPFLAGS=$CPPFLAGS 15768 # CPPPFLAG comes from CURL_CPP_P 15769 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 15770 if test -z "$SED"; then 15771 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 15772 fi 15773 if test -z "$GREP"; then 15774 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 15775 fi 15776 15777 tmp_exp="" 15778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15779 /* end confdefs.h. */ 15780 15781 15782 #ifdef __DECC_VER 15783 CURL_DEF_TOKEN __DECC_VER 15784 #endif 15785 15786 15787 _ACEOF 15788 if ac_fn_c_try_cpp "$LINENO"; then : 15789 15790 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 15791 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 15792 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 15793 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 15794 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then 15795 tmp_exp="" 15796 fi 15797 15798 fi 15799 rm -f conftest.err conftest.i conftest.$ac_ext 15800 if test -z "$tmp_exp"; then 15801 curl_cv_have_def___DECC_VER=no 15802 15803 else 15804 curl_cv_have_def___DECC_VER=yes 15805 curl_cv_def___DECC_VER=$tmp_exp 15806 15807 fi 15808 CPPFLAGS=$OLDCPPFLAGS 15809 15810 if test "$curl_cv_have_def___DECC" = "yes" && 15811 test "$curl_cv_have_def___DECC_VER" = "yes"; then 15812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15813 $as_echo "yes" >&6; } 15814 compiler_id="DEC_C" 15815 flags_dbg_all="-g -g0 -g1 -g2 -g3" 15816 flags_dbg_yes="-g2" 15817 flags_dbg_off="" 15818 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4" 15819 flags_opt_yes="-O1" 15820 flags_opt_off="-O0" 15821 else 15822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15823 $as_echo "no" >&6; } 15824 fi 15825 15826 15827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5 15828 $as_echo_n "checking if compiler is HP-UX C... " >&6; } 15829 15830 OLDCPPFLAGS=$CPPFLAGS 15831 # CPPPFLAG comes from CURL_CPP_P 15832 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 15833 if test -z "$SED"; then 15834 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 15835 fi 15836 if test -z "$GREP"; then 15837 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 15838 fi 15839 15840 tmp_exp="" 15841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15842 /* end confdefs.h. */ 15843 15844 15845 #ifdef __HP_cc 15846 CURL_DEF_TOKEN __HP_cc 15847 #endif 15848 15849 15850 _ACEOF 15851 if ac_fn_c_try_cpp "$LINENO"; then : 15852 15853 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 15854 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 15855 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 15856 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 15857 if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then 15858 tmp_exp="" 15859 fi 15860 15861 fi 15862 rm -f conftest.err conftest.i conftest.$ac_ext 15863 if test -z "$tmp_exp"; then 15864 curl_cv_have_def___HP_cc=no 15865 15866 else 15867 curl_cv_have_def___HP_cc=yes 15868 curl_cv_def___HP_cc=$tmp_exp 15869 15870 fi 15871 CPPFLAGS=$OLDCPPFLAGS 15872 15873 if test "$curl_cv_have_def___HP_cc" = "yes"; then 15874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15875 $as_echo "yes" >&6; } 15876 compiler_id="HP_UX_C" 15877 flags_dbg_all="-g -s" 15878 flags_dbg_yes="-g" 15879 flags_dbg_off="-s" 15880 flags_opt_all="-O +O0 +O1 +O2 +O3 +O4" 15881 flags_opt_yes="+O2" 15882 flags_opt_off="+O0" 15883 else 15884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15885 $as_echo "no" >&6; } 15886 fi 15887 15888 15889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5 15890 $as_echo_n "checking if compiler is IBM C... " >&6; } 15891 15892 OLDCPPFLAGS=$CPPFLAGS 15893 # CPPPFLAG comes from CURL_CPP_P 15894 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 15895 if test -z "$SED"; then 15896 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 15897 fi 15898 if test -z "$GREP"; then 15899 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 15900 fi 15901 15902 tmp_exp="" 15903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15904 /* end confdefs.h. */ 15905 15906 15907 #ifdef __IBMC__ 15908 CURL_DEF_TOKEN __IBMC__ 15909 #endif 15910 15911 15912 _ACEOF 15913 if ac_fn_c_try_cpp "$LINENO"; then : 15914 15915 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 15916 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 15917 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 15918 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 15919 if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then 15920 tmp_exp="" 15921 fi 15922 15923 fi 15924 rm -f conftest.err conftest.i conftest.$ac_ext 15925 if test -z "$tmp_exp"; then 15926 curl_cv_have_def___IBMC__=no 15927 15928 else 15929 curl_cv_have_def___IBMC__=yes 15930 curl_cv_def___IBMC__=$tmp_exp 15931 15932 fi 15933 CPPFLAGS=$OLDCPPFLAGS 15934 15935 if test "$curl_cv_have_def___IBMC__" = "yes"; then 15936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15937 $as_echo "yes" >&6; } 15938 compiler_id="IBM_C" 15939 flags_dbg_all="-g -g0 -g1 -g2 -g3" 15940 flags_dbg_yes="-g" 15941 flags_dbg_off="" 15942 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5" 15943 flags_opt_all="$flags_opt_all -qnooptimize" 15944 flags_opt_all="$flags_opt_all -qoptimize=0" 15945 flags_opt_all="$flags_opt_all -qoptimize=1" 15946 flags_opt_all="$flags_opt_all -qoptimize=2" 15947 flags_opt_all="$flags_opt_all -qoptimize=3" 15948 flags_opt_all="$flags_opt_all -qoptimize=4" 15949 flags_opt_all="$flags_opt_all -qoptimize=5" 15950 flags_opt_yes="-O2" 15951 flags_opt_off="-qnooptimize" 15952 flags_prefer_cppflags="yes" 15953 else 15954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15955 $as_echo "no" >&6; } 15956 fi 15957 15958 15959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5 15960 $as_echo_n "checking if compiler is Intel C... " >&6; } 15961 15962 OLDCPPFLAGS=$CPPFLAGS 15963 # CPPPFLAG comes from CURL_CPP_P 15964 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 15965 if test -z "$SED"; then 15966 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 15967 fi 15968 if test -z "$GREP"; then 15969 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 15970 fi 15971 15972 tmp_exp="" 15973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15974 /* end confdefs.h. */ 15975 15976 15977 #ifdef __INTEL_COMPILER 15978 CURL_DEF_TOKEN __INTEL_COMPILER 15979 #endif 15980 15981 15982 _ACEOF 15983 if ac_fn_c_try_cpp "$LINENO"; then : 15984 15985 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 15986 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 15987 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 15988 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 15989 if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then 15990 tmp_exp="" 15991 fi 15992 15993 fi 15994 rm -f conftest.err conftest.i conftest.$ac_ext 15995 if test -z "$tmp_exp"; then 15996 curl_cv_have_def___INTEL_COMPILER=no 15997 15998 else 15999 curl_cv_have_def___INTEL_COMPILER=yes 16000 curl_cv_def___INTEL_COMPILER=$tmp_exp 16001 16002 fi 16003 CPPFLAGS=$OLDCPPFLAGS 16004 16005 if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then 16006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16007 $as_echo "yes" >&6; } 16008 compiler_num="$curl_cv_def___INTEL_COMPILER" 16009 16010 OLDCPPFLAGS=$CPPFLAGS 16011 # CPPPFLAG comes from CURL_CPP_P 16012 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 16013 if test -z "$SED"; then 16014 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 16015 fi 16016 if test -z "$GREP"; then 16017 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 16018 fi 16019 16020 tmp_exp="" 16021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16022 /* end confdefs.h. */ 16023 16024 16025 #ifdef __unix__ 16026 CURL_DEF_TOKEN __unix__ 16027 #endif 16028 16029 16030 _ACEOF 16031 if ac_fn_c_try_cpp "$LINENO"; then : 16032 16033 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 16034 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 16035 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 16036 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 16037 if test -z "$tmp_exp" || test "$tmp_exp" = ""; then 16038 tmp_exp="" 16039 fi 16040 16041 fi 16042 rm -f conftest.err conftest.i conftest.$ac_ext 16043 if test -z "$tmp_exp"; then 16044 curl_cv_have_def___unix__=no 16045 16046 else 16047 curl_cv_have_def___unix__=yes 16048 curl_cv_def___unix__=$tmp_exp 16049 16050 fi 16051 CPPFLAGS=$OLDCPPFLAGS 16052 16053 if test "$curl_cv_have_def___unix__" = "yes"; then 16054 compiler_id="INTEL_UNIX_C" 16055 flags_dbg_all="-g -g0" 16056 flags_dbg_yes="-g" 16057 flags_dbg_off="" 16058 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os" 16059 flags_opt_yes="-O2" 16060 flags_opt_off="-O0" 16061 else 16062 compiler_id="INTEL_WINDOWS_C" 16063 flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-" 16064 flags_dbg_all="$flags_dbg_all /debug" 16065 flags_dbg_all="$flags_dbg_all /debug:none" 16066 flags_dbg_all="$flags_dbg_all /debug:minimal" 16067 flags_dbg_all="$flags_dbg_all /debug:partial" 16068 flags_dbg_all="$flags_dbg_all /debug:full" 16069 flags_dbg_all="$flags_dbg_all /debug:semantic_stepping" 16070 flags_dbg_all="$flags_dbg_all /debug:extended" 16071 flags_dbg_yes="/Zi /Oy-" 16072 flags_dbg_off="/debug:none /Oy-" 16073 flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-" 16074 flags_opt_yes="/O2" 16075 flags_opt_off="/Od" 16076 fi 16077 else 16078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16079 $as_echo "no" >&6; } 16080 fi 16081 16082 16083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5 16084 $as_echo_n "checking if compiler is clang... " >&6; } 16085 16086 OLDCPPFLAGS=$CPPFLAGS 16087 # CPPPFLAG comes from CURL_CPP_P 16088 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 16089 if test -z "$SED"; then 16090 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 16091 fi 16092 if test -z "$GREP"; then 16093 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 16094 fi 16095 16096 tmp_exp="" 16097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16098 /* end confdefs.h. */ 16099 16100 16101 #ifdef __clang__ 16102 CURL_DEF_TOKEN __clang__ 16103 #endif 16104 16105 16106 _ACEOF 16107 if ac_fn_c_try_cpp "$LINENO"; then : 16108 16109 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 16110 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 16111 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 16112 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 16113 if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then 16114 tmp_exp="" 16115 fi 16116 16117 fi 16118 rm -f conftest.err conftest.i conftest.$ac_ext 16119 if test -z "$tmp_exp"; then 16120 curl_cv_have_def___clang__=no 16121 16122 else 16123 curl_cv_have_def___clang__=yes 16124 curl_cv_def___clang__=$tmp_exp 16125 16126 fi 16127 CPPFLAGS=$OLDCPPFLAGS 16128 16129 if test "$curl_cv_have_def___clang__" = "yes"; then 16130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16131 $as_echo "yes" >&6; } 16132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is xlclang" >&5 16133 $as_echo_n "checking if compiler is xlclang... " >&6; } 16134 16135 OLDCPPFLAGS=$CPPFLAGS 16136 # CPPPFLAG comes from CURL_CPP_P 16137 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 16138 if test -z "$SED"; then 16139 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 16140 fi 16141 if test -z "$GREP"; then 16142 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 16143 fi 16144 16145 tmp_exp="" 16146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16147 /* end confdefs.h. */ 16148 16149 16150 #ifdef __ibmxl__ 16151 CURL_DEF_TOKEN __ibmxl__ 16152 #endif 16153 16154 16155 _ACEOF 16156 if ac_fn_c_try_cpp "$LINENO"; then : 16157 16158 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 16159 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 16160 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 16161 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 16162 if test -z "$tmp_exp" || test "$tmp_exp" = "__ibmxl__"; then 16163 tmp_exp="" 16164 fi 16165 16166 fi 16167 rm -f conftest.err conftest.i conftest.$ac_ext 16168 if test -z "$tmp_exp"; then 16169 curl_cv_have_def___ibmxl__=no 16170 16171 else 16172 curl_cv_have_def___ibmxl__=yes 16173 curl_cv_def___ibmxl__=$tmp_exp 16174 16175 fi 16176 CPPFLAGS=$OLDCPPFLAGS 16177 16178 if test "$curl_cv_have_def___ibmxl__" = "yes" ; then 16179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16180 $as_echo "yes" >&6; } 16181 compiler_id="XLCLANG" 16182 else 16183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16184 $as_echo "no" >&6; } 16185 compiler_id="CLANG" 16186 fi 16187 fullclangver=`$CC -v 2>&1 | grep version` 16188 clangver=`echo $fullclangver | grep "based on LLVM " | "$SED" 's/.*(based on LLVM \([0-9]*\.[0-9]*\).*)/\1/'` 16189 if test -z "$clangver"; then 16190 if echo $fullclangver | grep "Apple LLVM version " >/dev/null; then 16191 clangver="3.7" 16192 else 16193 clangver=`echo $fullclangver | "$SED" 's/.*version \([0-9]*\.[0-9]*\).*/\1/'` 16194 fi 16195 fi 16196 clangvhi=`echo $clangver | cut -d . -f1` 16197 clangvlo=`echo $clangver | cut -d . -f2` 16198 compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null` 16199 flags_dbg_all="-g -g0 -g1 -g2 -g3" 16200 flags_dbg_all="$flags_dbg_all -ggdb" 16201 flags_dbg_all="$flags_dbg_all -gstabs" 16202 flags_dbg_all="$flags_dbg_all -gstabs+" 16203 flags_dbg_all="$flags_dbg_all -gcoff" 16204 flags_dbg_all="$flags_dbg_all -gxcoff" 16205 flags_dbg_all="$flags_dbg_all -gdwarf-2" 16206 flags_dbg_all="$flags_dbg_all -gvms" 16207 flags_dbg_yes="-g" 16208 flags_dbg_off="" 16209 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4" 16210 flags_opt_yes="-Os" 16211 flags_opt_off="-O0" 16212 else 16213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16214 $as_echo "no" >&6; } 16215 fi 16216 16217 16218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5 16219 $as_echo_n "checking if compiler is GNU C... " >&6; } 16220 16221 OLDCPPFLAGS=$CPPFLAGS 16222 # CPPPFLAG comes from CURL_CPP_P 16223 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 16224 if test -z "$SED"; then 16225 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 16226 fi 16227 if test -z "$GREP"; then 16228 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 16229 fi 16230 16231 tmp_exp="" 16232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16233 /* end confdefs.h. */ 16234 16235 16236 #ifdef __GNUC__ 16237 CURL_DEF_TOKEN __GNUC__ 16238 #endif 16239 16240 16241 _ACEOF 16242 if ac_fn_c_try_cpp "$LINENO"; then : 16243 16244 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 16245 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 16246 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 16247 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 16248 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then 16249 tmp_exp="" 16250 fi 16251 16252 fi 16253 rm -f conftest.err conftest.i conftest.$ac_ext 16254 if test -z "$tmp_exp"; then 16255 curl_cv_have_def___GNUC__=no 16256 16257 else 16258 curl_cv_have_def___GNUC__=yes 16259 curl_cv_def___GNUC__=$tmp_exp 16260 16261 fi 16262 CPPFLAGS=$OLDCPPFLAGS 16263 16264 if test "$curl_cv_have_def___GNUC__" = "yes" && 16265 test "$compiler_id" = "unknown"; then 16266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16267 $as_echo "yes" >&6; } 16268 compiler_id="GNU_C" 16269 gccver=`$CC -dumpversion` 16270 gccvhi=`echo $gccver | cut -d . -f1` 16271 gccvlo=`echo $gccver | cut -d . -f2` 16272 compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null` 16273 flags_dbg_all="-g -g0 -g1 -g2 -g3" 16274 flags_dbg_all="$flags_dbg_all -ggdb" 16275 flags_dbg_all="$flags_dbg_all -gstabs" 16276 flags_dbg_all="$flags_dbg_all -gstabs+" 16277 flags_dbg_all="$flags_dbg_all -gcoff" 16278 flags_dbg_all="$flags_dbg_all -gxcoff" 16279 flags_dbg_all="$flags_dbg_all -gdwarf-2" 16280 flags_dbg_all="$flags_dbg_all -gvms" 16281 flags_dbg_yes="-g" 16282 flags_dbg_off="" 16283 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast" 16284 flags_opt_yes="-O2" 16285 flags_opt_off="-O0" 16286 16287 OLDCPPFLAGS=$CPPFLAGS 16288 # CPPPFLAG comes from CURL_CPP_P 16289 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 16290 if test -z "$SED"; then 16291 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 16292 fi 16293 if test -z "$GREP"; then 16294 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 16295 fi 16296 16297 tmp_exp="" 16298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16299 /* end confdefs.h. */ 16300 16301 16302 #ifdef _WIN32 16303 CURL_DEF_TOKEN _WIN32 16304 #endif 16305 16306 16307 _ACEOF 16308 if ac_fn_c_try_cpp "$LINENO"; then : 16309 16310 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 16311 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 16312 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 16313 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 16314 if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then 16315 tmp_exp="" 16316 fi 16317 16318 fi 16319 rm -f conftest.err conftest.i conftest.$ac_ext 16320 if test -z "$tmp_exp"; then 16321 curl_cv_have_def__WIN32=no 16322 16323 else 16324 curl_cv_have_def__WIN32=yes 16325 curl_cv_def__WIN32=$tmp_exp 16326 16327 fi 16328 CPPFLAGS=$OLDCPPFLAGS 16329 16330 else 16331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16332 $as_echo "no" >&6; } 16333 fi 16334 16335 16336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5 16337 $as_echo_n "checking if compiler is LCC... " >&6; } 16338 16339 OLDCPPFLAGS=$CPPFLAGS 16340 # CPPPFLAG comes from CURL_CPP_P 16341 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 16342 if test -z "$SED"; then 16343 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 16344 fi 16345 if test -z "$GREP"; then 16346 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 16347 fi 16348 16349 tmp_exp="" 16350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16351 /* end confdefs.h. */ 16352 16353 16354 #ifdef __LCC__ 16355 CURL_DEF_TOKEN __LCC__ 16356 #endif 16357 16358 16359 _ACEOF 16360 if ac_fn_c_try_cpp "$LINENO"; then : 16361 16362 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 16363 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 16364 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 16365 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 16366 if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then 16367 tmp_exp="" 16368 fi 16369 16370 fi 16371 rm -f conftest.err conftest.i conftest.$ac_ext 16372 if test -z "$tmp_exp"; then 16373 curl_cv_have_def___LCC__=no 16374 16375 else 16376 curl_cv_have_def___LCC__=yes 16377 curl_cv_def___LCC__=$tmp_exp 16378 16379 fi 16380 CPPFLAGS=$OLDCPPFLAGS 16381 16382 if test "$curl_cv_have_def___LCC__" = "yes"; then 16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16384 $as_echo "yes" >&6; } 16385 compiler_id="LCC" 16386 flags_dbg_all="-g" 16387 flags_dbg_yes="-g" 16388 flags_dbg_off="" 16389 flags_opt_all="" 16390 flags_opt_yes="" 16391 flags_opt_off="" 16392 else 16393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16394 $as_echo "no" >&6; } 16395 fi 16396 16397 16398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5 16399 $as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; } 16400 16401 OLDCPPFLAGS=$CPPFLAGS 16402 # CPPPFLAG comes from CURL_CPP_P 16403 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 16404 if test -z "$SED"; then 16405 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 16406 fi 16407 if test -z "$GREP"; then 16408 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 16409 fi 16410 16411 tmp_exp="" 16412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16413 /* end confdefs.h. */ 16414 16415 16416 #ifdef __GNUC__ 16417 CURL_DEF_TOKEN __GNUC__ 16418 #endif 16419 16420 16421 _ACEOF 16422 if ac_fn_c_try_cpp "$LINENO"; then : 16423 16424 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 16425 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 16426 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 16427 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 16428 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then 16429 tmp_exp="" 16430 fi 16431 16432 fi 16433 rm -f conftest.err conftest.i conftest.$ac_ext 16434 if test -z "$tmp_exp"; then 16435 curl_cv_have_def___GNUC__=no 16436 16437 else 16438 curl_cv_have_def___GNUC__=yes 16439 curl_cv_def___GNUC__=$tmp_exp 16440 16441 fi 16442 CPPFLAGS=$OLDCPPFLAGS 16443 16444 16445 OLDCPPFLAGS=$CPPFLAGS 16446 # CPPPFLAG comes from CURL_CPP_P 16447 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 16448 if test -z "$SED"; then 16449 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 16450 fi 16451 if test -z "$GREP"; then 16452 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 16453 fi 16454 16455 tmp_exp="" 16456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16457 /* end confdefs.h. */ 16458 16459 16460 #ifdef _COMPILER_VERSION 16461 CURL_DEF_TOKEN _COMPILER_VERSION 16462 #endif 16463 16464 16465 _ACEOF 16466 if ac_fn_c_try_cpp "$LINENO"; then : 16467 16468 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 16469 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 16470 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 16471 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 16472 if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then 16473 tmp_exp="" 16474 fi 16475 16476 fi 16477 rm -f conftest.err conftest.i conftest.$ac_ext 16478 if test -z "$tmp_exp"; then 16479 curl_cv_have_def__COMPILER_VERSION=no 16480 16481 else 16482 curl_cv_have_def__COMPILER_VERSION=yes 16483 curl_cv_def__COMPILER_VERSION=$tmp_exp 16484 16485 fi 16486 CPPFLAGS=$OLDCPPFLAGS 16487 16488 16489 OLDCPPFLAGS=$CPPFLAGS 16490 # CPPPFLAG comes from CURL_CPP_P 16491 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 16492 if test -z "$SED"; then 16493 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 16494 fi 16495 if test -z "$GREP"; then 16496 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 16497 fi 16498 16499 tmp_exp="" 16500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16501 /* end confdefs.h. */ 16502 16503 16504 #ifdef _SGI_COMPILER_VERSION 16505 CURL_DEF_TOKEN _SGI_COMPILER_VERSION 16506 #endif 16507 16508 16509 _ACEOF 16510 if ac_fn_c_try_cpp "$LINENO"; then : 16511 16512 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 16513 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 16514 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 16515 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 16516 if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then 16517 tmp_exp="" 16518 fi 16519 16520 fi 16521 rm -f conftest.err conftest.i conftest.$ac_ext 16522 if test -z "$tmp_exp"; then 16523 curl_cv_have_def__SGI_COMPILER_VERSION=no 16524 16525 else 16526 curl_cv_have_def__SGI_COMPILER_VERSION=yes 16527 curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp 16528 16529 fi 16530 CPPFLAGS=$OLDCPPFLAGS 16531 16532 if test "$curl_cv_have_def___GNUC__" = "no" && 16533 (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" || 16534 test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then 16535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16536 $as_echo "yes" >&6; } 16537 compiler_id="SGI_MIPSPRO_C" 16538 flags_dbg_all="-g -g0 -g1 -g2 -g3" 16539 flags_dbg_yes="-g" 16540 flags_dbg_off="" 16541 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast" 16542 flags_opt_yes="-O2" 16543 flags_opt_off="-O0" 16544 else 16545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16546 $as_echo "no" >&6; } 16547 fi 16548 16549 16550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5 16551 $as_echo_n "checking if compiler is SGI MIPS C... " >&6; } 16552 16553 OLDCPPFLAGS=$CPPFLAGS 16554 # CPPPFLAG comes from CURL_CPP_P 16555 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 16556 if test -z "$SED"; then 16557 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 16558 fi 16559 if test -z "$GREP"; then 16560 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 16561 fi 16562 16563 tmp_exp="" 16564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16565 /* end confdefs.h. */ 16566 16567 16568 #ifdef __GNUC__ 16569 CURL_DEF_TOKEN __GNUC__ 16570 #endif 16571 16572 16573 _ACEOF 16574 if ac_fn_c_try_cpp "$LINENO"; then : 16575 16576 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 16577 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 16578 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 16579 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 16580 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then 16581 tmp_exp="" 16582 fi 16583 16584 fi 16585 rm -f conftest.err conftest.i conftest.$ac_ext 16586 if test -z "$tmp_exp"; then 16587 curl_cv_have_def___GNUC__=no 16588 16589 else 16590 curl_cv_have_def___GNUC__=yes 16591 curl_cv_def___GNUC__=$tmp_exp 16592 16593 fi 16594 CPPFLAGS=$OLDCPPFLAGS 16595 16596 16597 OLDCPPFLAGS=$CPPFLAGS 16598 # CPPPFLAG comes from CURL_CPP_P 16599 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 16600 if test -z "$SED"; then 16601 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 16602 fi 16603 if test -z "$GREP"; then 16604 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 16605 fi 16606 16607 tmp_exp="" 16608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16609 /* end confdefs.h. */ 16610 16611 16612 #ifdef __sgi 16613 CURL_DEF_TOKEN __sgi 16614 #endif 16615 16616 16617 _ACEOF 16618 if ac_fn_c_try_cpp "$LINENO"; then : 16619 16620 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 16621 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 16622 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 16623 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 16624 if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then 16625 tmp_exp="" 16626 fi 16627 16628 fi 16629 rm -f conftest.err conftest.i conftest.$ac_ext 16630 if test -z "$tmp_exp"; then 16631 curl_cv_have_def___sgi=no 16632 16633 else 16634 curl_cv_have_def___sgi=yes 16635 curl_cv_def___sgi=$tmp_exp 16636 16637 fi 16638 CPPFLAGS=$OLDCPPFLAGS 16639 16640 if test "$curl_cv_have_def___GNUC__" = "no" && 16641 test "$curl_cv_have_def___sgi" = "yes" && 16642 test "$compiler_id" = "unknown"; then 16643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16644 $as_echo "yes" >&6; } 16645 compiler_id="SGI_MIPS_C" 16646 flags_dbg_all="-g -g0 -g1 -g2 -g3" 16647 flags_dbg_yes="-g" 16648 flags_dbg_off="" 16649 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast" 16650 flags_opt_yes="-O2" 16651 flags_opt_off="-O0" 16652 else 16653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16654 $as_echo "no" >&6; } 16655 fi 16656 16657 16658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5 16659 $as_echo_n "checking if compiler is SunPro C... " >&6; } 16660 16661 OLDCPPFLAGS=$CPPFLAGS 16662 # CPPPFLAG comes from CURL_CPP_P 16663 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 16664 if test -z "$SED"; then 16665 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 16666 fi 16667 if test -z "$GREP"; then 16668 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 16669 fi 16670 16671 tmp_exp="" 16672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16673 /* end confdefs.h. */ 16674 16675 16676 #ifdef __SUNPRO_C 16677 CURL_DEF_TOKEN __SUNPRO_C 16678 #endif 16679 16680 16681 _ACEOF 16682 if ac_fn_c_try_cpp "$LINENO"; then : 16683 16684 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 16685 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 16686 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 16687 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 16688 if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then 16689 tmp_exp="" 16690 fi 16691 16692 fi 16693 rm -f conftest.err conftest.i conftest.$ac_ext 16694 if test -z "$tmp_exp"; then 16695 curl_cv_have_def___SUNPRO_C=no 16696 16697 else 16698 curl_cv_have_def___SUNPRO_C=yes 16699 curl_cv_def___SUNPRO_C=$tmp_exp 16700 16701 fi 16702 CPPFLAGS=$OLDCPPFLAGS 16703 16704 if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then 16705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16706 $as_echo "yes" >&6; } 16707 compiler_id="SUNPRO_C" 16708 flags_dbg_all="-g -s" 16709 flags_dbg_yes="-g" 16710 flags_dbg_off="-s" 16711 flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5" 16712 flags_opt_yes="-xO2" 16713 flags_opt_off="" 16714 else 16715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16716 $as_echo "no" >&6; } 16717 fi 16718 16719 16720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5 16721 $as_echo_n "checking if compiler is Tiny C... " >&6; } 16722 16723 OLDCPPFLAGS=$CPPFLAGS 16724 # CPPPFLAG comes from CURL_CPP_P 16725 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 16726 if test -z "$SED"; then 16727 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 16728 fi 16729 if test -z "$GREP"; then 16730 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 16731 fi 16732 16733 tmp_exp="" 16734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16735 /* end confdefs.h. */ 16736 16737 16738 #ifdef __TINYC__ 16739 CURL_DEF_TOKEN __TINYC__ 16740 #endif 16741 16742 16743 _ACEOF 16744 if ac_fn_c_try_cpp "$LINENO"; then : 16745 16746 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 16747 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 16748 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 16749 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 16750 if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then 16751 tmp_exp="" 16752 fi 16753 16754 fi 16755 rm -f conftest.err conftest.i conftest.$ac_ext 16756 if test -z "$tmp_exp"; then 16757 curl_cv_have_def___TINYC__=no 16758 16759 else 16760 curl_cv_have_def___TINYC__=yes 16761 curl_cv_def___TINYC__=$tmp_exp 16762 16763 fi 16764 CPPFLAGS=$OLDCPPFLAGS 16765 16766 if test "$curl_cv_have_def___TINYC__" = "yes"; then 16767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16768 $as_echo "yes" >&6; } 16769 compiler_id="TINY_C" 16770 flags_dbg_all="-g -b" 16771 flags_dbg_yes="-g" 16772 flags_dbg_off="" 16773 flags_opt_all="" 16774 flags_opt_yes="" 16775 flags_opt_off="" 16776 else 16777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16778 $as_echo "no" >&6; } 16779 fi 16780 16781 16782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5 16783 $as_echo_n "checking if compiler is Watcom C... " >&6; } 16784 16785 OLDCPPFLAGS=$CPPFLAGS 16786 # CPPPFLAG comes from CURL_CPP_P 16787 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 16788 if test -z "$SED"; then 16789 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 16790 fi 16791 if test -z "$GREP"; then 16792 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 16793 fi 16794 16795 tmp_exp="" 16796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16797 /* end confdefs.h. */ 16798 16799 16800 #ifdef __WATCOMC__ 16801 CURL_DEF_TOKEN __WATCOMC__ 16802 #endif 16803 16804 16805 _ACEOF 16806 if ac_fn_c_try_cpp "$LINENO"; then : 16807 16808 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 16809 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 16810 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 16811 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 16812 if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then 16813 tmp_exp="" 16814 fi 16815 16816 fi 16817 rm -f conftest.err conftest.i conftest.$ac_ext 16818 if test -z "$tmp_exp"; then 16819 curl_cv_have_def___WATCOMC__=no 16820 16821 else 16822 curl_cv_have_def___WATCOMC__=yes 16823 curl_cv_def___WATCOMC__=$tmp_exp 16824 16825 fi 16826 CPPFLAGS=$OLDCPPFLAGS 16827 16828 if test "$curl_cv_have_def___WATCOMC__" = "yes"; then 16829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16830 $as_echo "yes" >&6; } 16831 16832 OLDCPPFLAGS=$CPPFLAGS 16833 # CPPPFLAG comes from CURL_CPP_P 16834 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 16835 if test -z "$SED"; then 16836 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 16837 fi 16838 if test -z "$GREP"; then 16839 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 16840 fi 16841 16842 tmp_exp="" 16843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16844 /* end confdefs.h. */ 16845 16846 16847 #ifdef __UNIX__ 16848 CURL_DEF_TOKEN __UNIX__ 16849 #endif 16850 16851 16852 _ACEOF 16853 if ac_fn_c_try_cpp "$LINENO"; then : 16854 16855 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 16856 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 16857 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 16858 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 16859 if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then 16860 tmp_exp="" 16861 fi 16862 16863 fi 16864 rm -f conftest.err conftest.i conftest.$ac_ext 16865 if test -z "$tmp_exp"; then 16866 curl_cv_have_def___UNIX__=no 16867 16868 else 16869 curl_cv_have_def___UNIX__=yes 16870 curl_cv_def___UNIX__=$tmp_exp 16871 16872 fi 16873 CPPFLAGS=$OLDCPPFLAGS 16874 16875 if test "$curl_cv_have_def___UNIX__" = "yes"; then 16876 compiler_id="WATCOM_UNIX_C" 16877 flags_dbg_all="-g1 -g1+ -g2 -g3" 16878 flags_dbg_yes="-g2" 16879 flags_dbg_off="" 16880 flags_opt_all="-O0 -O1 -O2 -O3" 16881 flags_opt_yes="-O2" 16882 flags_opt_off="-O0" 16883 else 16884 compiler_id="WATCOM_WINDOWS_C" 16885 flags_dbg_all="" 16886 flags_dbg_yes="" 16887 flags_dbg_off="" 16888 flags_opt_all="" 16889 flags_opt_yes="" 16890 flags_opt_off="" 16891 fi 16892 else 16893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16894 $as_echo "no" >&6; } 16895 fi 16896 16897 # 16898 if test "$compiler_id" = "unknown"; then 16899 cat <<_EOF 1>&2 16900 *** 16901 *** Warning: This configure script does not have information about the 16902 *** compiler you are using, relative to the flags required to enable or 16903 *** disable generation of debug info, optimization options or warnings. 16904 *** 16905 *** Whatever settings are present in CFLAGS will be used for this run. 16906 *** 16907 *** If you wish to help the curl project to better support your compiler 16908 *** you can report this and the required info on the libcurl development 16909 *** mailing list: https://cool.haxx.se/mailman/listinfo/curl-library/ 16910 *** 16911 _EOF 16912 fi 16913 16914 16915 squeeze() { 16916 _sqz_result="" 16917 eval _sqz_input=\$$1 16918 for _sqz_token in $_sqz_input; do 16919 if test -z "$_sqz_result"; then 16920 _sqz_result="$_sqz_token" 16921 else 16922 _sqz_result="$_sqz_result $_sqz_token" 16923 fi 16924 done 16925 eval $1=\$_sqz_result 16926 return 0 16927 } 16928 16929 16930 # 16931 if test "$compiler_id" != "unknown"; then 16932 # 16933 if test "$compiler_id" = "GNU_C" || 16934 test "$compiler_id" = "CLANG"; then 16935 16936 if test "$compiler_id" = "GNU_C" || 16937 test "$compiler_id" = "CLANG"; then 16938 tmp_has_include="no" 16939 tmp_chg_FLAGS="$CFLAGS" 16940 for word1 in $tmp_chg_FLAGS; do 16941 case "$word1" in 16942 -I*) 16943 tmp_has_include="yes" 16944 ;; 16945 esac 16946 done 16947 if test "$tmp_has_include" = "yes"; then 16948 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'` 16949 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'` 16950 CFLAGS="$tmp_chg_FLAGS" 16951 squeeze CFLAGS 16952 fi 16953 tmp_has_include="no" 16954 tmp_chg_FLAGS="$CPPFLAGS" 16955 for word1 in $tmp_chg_FLAGS; do 16956 case "$word1" in 16957 -I*) 16958 tmp_has_include="yes" 16959 ;; 16960 esac 16961 done 16962 if test "$tmp_has_include" = "yes"; then 16963 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'` 16964 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'` 16965 CPPFLAGS="$tmp_chg_FLAGS" 16966 squeeze CPPFLAGS 16967 fi 16968 fi 16969 16970 fi 16971 # 16972 tmp_save_CPPFLAGS="$CPPFLAGS" 16973 tmp_save_CFLAGS="$CFLAGS" 16974 tmp_CPPFLAGS="" 16975 tmp_CFLAGS="" 16976 # 16977 case "$compiler_id" in 16978 # 16979 CLANG) 16980 # 16981 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments" 16982 ;; 16983 # 16984 DEC_C) 16985 # 16986 tmp_CFLAGS="$tmp_CFLAGS -std1" 16987 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias" 16988 tmp_CFLAGS="$tmp_CFLAGS -warnprotos" 16989 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs" 16990 ;; 16991 # 16992 GNU_C) 16993 # 16994 if test "$compiler_num" -ge "295"; then 16995 tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration" 16996 fi 16997 ;; 16998 # 16999 HP_UX_C) 17000 # 17001 tmp_CFLAGS="$tmp_CFLAGS -z" 17002 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255" 17003 ;; 17004 # 17005 IBM_C) 17006 # 17007 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded" 17008 tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias" 17009 tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e" 17010 ;; 17011 # 17012 INTEL_UNIX_C) 17013 # 17014 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89" 17015 tmp_CPPFLAGS="$tmp_CPPFLAGS -we140,147,165,266" 17016 tmp_CPPFLAGS="$tmp_CPPFLAGS -wd279,981,1469" 17017 ;; 17018 # 17019 INTEL_WINDOWS_C) 17020 # 17021 tmp_CFLAGS="$tmp_CFLAGS" 17022 ;; 17023 # 17024 LCC) 17025 # 17026 tmp_CFLAGS="$tmp_CFLAGS -n" 17027 ;; 17028 # 17029 SGI_MIPS_C) 17030 # 17031 tmp_CFLAGS="$tmp_CFLAGS" 17032 ;; 17033 # 17034 SGI_MIPSPRO_C) 17035 # 17036 tmp_CFLAGS="$tmp_CFLAGS" 17037 ;; 17038 # 17039 SUNPRO_C) 17040 # 17041 tmp_CFLAGS="$tmp_CFLAGS" 17042 ;; 17043 # 17044 TINY_C) 17045 # 17046 tmp_CFLAGS="$tmp_CFLAGS" 17047 ;; 17048 # 17049 WATCOM_UNIX_C) 17050 # 17051 tmp_CFLAGS="$tmp_CFLAGS" 17052 ;; 17053 # 17054 WATCOM_WINDOWS_C) 17055 # 17056 tmp_CFLAGS="$tmp_CFLAGS" 17057 ;; 17058 # 17059 esac 17060 # 17061 squeeze tmp_CPPFLAGS 17062 squeeze tmp_CFLAGS 17063 # 17064 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then 17065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5 17066 $as_echo_n "checking if compiler accepts some basic options... " >&6; } 17067 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS" 17068 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS" 17069 squeeze CPPFLAGS 17070 squeeze CFLAGS 17071 17072 tmp_compiler_works="unknown" 17073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17074 /* end confdefs.h. */ 17075 17076 17077 17078 int main (void) 17079 { 17080 17081 int i = 1; 17082 return i; 17083 17084 ; 17085 return 0; 17086 } 17087 17088 _ACEOF 17089 if ac_fn_c_try_compile "$LINENO"; then : 17090 17091 tmp_compiler_works="yes" 17092 17093 else 17094 17095 tmp_compiler_works="no" 17096 echo " " >&6 17097 sed 's/^/cc-fail: /' conftest.err >&6 17098 echo " " >&6 17099 17100 fi 17101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17102 if test "$tmp_compiler_works" = "yes"; then 17103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17104 /* end confdefs.h. */ 17105 17106 17107 17108 int main (void) 17109 { 17110 17111 int i = 1; 17112 return i; 17113 17114 ; 17115 return 0; 17116 } 17117 17118 _ACEOF 17119 if ac_fn_c_try_link "$LINENO"; then : 17120 17121 tmp_compiler_works="yes" 17122 17123 else 17124 17125 tmp_compiler_works="no" 17126 echo " " >&6 17127 sed 's/^/link-fail: /' conftest.err >&6 17128 echo " " >&6 17129 17130 fi 17131 rm -f core conftest.err conftest.$ac_objext \ 17132 conftest$ac_exeext conftest.$ac_ext 17133 fi 17134 if test "x$cross_compiling" != "xyes" && 17135 test "$tmp_compiler_works" = "yes"; then 17136 17137 17138 old=$LD_LIBRARY_PATH 17139 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 17140 export LD_LIBRARY_PATH 17141 if test "$cross_compiling" = yes; then : 17142 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17144 as_fn_error $? "cannot run test program while cross compiling 17145 See \`config.log' for more details" "$LINENO" 5; } 17146 else 17147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17148 /* end confdefs.h. */ 17149 17150 17151 # ifdef __STDC__ 17152 # include <stdlib.h> 17153 # endif 17154 17155 int main (void) 17156 { 17157 17158 int i = 0; 17159 exit(i); 17160 17161 ; 17162 return 0; 17163 } 17164 17165 _ACEOF 17166 if ac_fn_c_try_run "$LINENO"; then : 17167 tmp_compiler_works="yes" 17168 17169 else 17170 tmp_compiler_works="no" 17171 echo " " >&6 17172 echo "run-fail: test program exited with status $ac_status" >&6 17173 echo " " >&6 17174 17175 fi 17176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17177 conftest.$ac_objext conftest.beam conftest.$ac_ext 17178 fi 17179 17180 LD_LIBRARY_PATH=$old # restore 17181 17182 fi 17183 if test "$tmp_compiler_works" = "yes"; then 17184 17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17186 $as_echo "yes" >&6; } 17187 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5 17188 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;} 17189 17190 else 17191 17192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17193 $as_echo "no" >&6; } 17194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5 17195 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;} 17196 CPPFLAGS="$tmp_save_CPPFLAGS" 17197 CFLAGS="$tmp_save_CFLAGS" 17198 17199 fi 17200 17201 fi 17202 # 17203 fi 17204 17205 17206 # 17207 if test "$compiler_id" != "unknown"; then 17208 # 17209 tmp_save_CFLAGS="$CFLAGS" 17210 tmp_save_CPPFLAGS="$CPPFLAGS" 17211 # 17212 tmp_options="" 17213 tmp_CFLAGS="$CFLAGS" 17214 tmp_CPPFLAGS="$CPPFLAGS" 17215 17216 ac_var_stripped="" 17217 for word1 in $tmp_CFLAGS; do 17218 ac_var_strip_word="no" 17219 for word2 in $flags_dbg_all; do 17220 if test "$word1" = "$word2"; then 17221 ac_var_strip_word="yes" 17222 fi 17223 done 17224 if test "$ac_var_strip_word" = "no"; then 17225 ac_var_stripped="$ac_var_stripped $word1" 17226 fi 17227 done 17228 tmp_CFLAGS="$ac_var_stripped" 17229 squeeze tmp_CFLAGS 17230 17231 17232 ac_var_stripped="" 17233 for word1 in $tmp_CPPFLAGS; do 17234 ac_var_strip_word="no" 17235 for word2 in $flags_dbg_all; do 17236 if test "$word1" = "$word2"; then 17237 ac_var_strip_word="yes" 17238 fi 17239 done 17240 if test "$ac_var_strip_word" = "no"; then 17241 ac_var_stripped="$ac_var_stripped $word1" 17242 fi 17243 done 17244 tmp_CPPFLAGS="$ac_var_stripped" 17245 squeeze tmp_CPPFLAGS 17246 17247 # 17248 if test "$want_debug" = "yes"; then 17249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5 17250 $as_echo_n "checking if compiler accepts debug enabling options... " >&6; } 17251 tmp_options="$flags_dbg_yes" 17252 fi 17253 if test "$want_debug" = "no"; then 17254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5 17255 $as_echo_n "checking if compiler accepts debug disabling options... " >&6; } 17256 tmp_options="$flags_dbg_off" 17257 fi 17258 # 17259 if test "$flags_prefer_cppflags" = "yes"; then 17260 CPPFLAGS="$tmp_CPPFLAGS $tmp_options" 17261 CFLAGS="$tmp_CFLAGS" 17262 else 17263 CPPFLAGS="$tmp_CPPFLAGS" 17264 CFLAGS="$tmp_CFLAGS $tmp_options" 17265 fi 17266 squeeze CPPFLAGS 17267 squeeze CFLAGS 17268 17269 tmp_compiler_works="unknown" 17270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17271 /* end confdefs.h. */ 17272 17273 17274 17275 int main (void) 17276 { 17277 17278 int i = 1; 17279 return i; 17280 17281 ; 17282 return 0; 17283 } 17284 17285 _ACEOF 17286 if ac_fn_c_try_compile "$LINENO"; then : 17287 17288 tmp_compiler_works="yes" 17289 17290 else 17291 17292 tmp_compiler_works="no" 17293 echo " " >&6 17294 sed 's/^/cc-fail: /' conftest.err >&6 17295 echo " " >&6 17296 17297 fi 17298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17299 if test "$tmp_compiler_works" = "yes"; then 17300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17301 /* end confdefs.h. */ 17302 17303 17304 17305 int main (void) 17306 { 17307 17308 int i = 1; 17309 return i; 17310 17311 ; 17312 return 0; 17313 } 17314 17315 _ACEOF 17316 if ac_fn_c_try_link "$LINENO"; then : 17317 17318 tmp_compiler_works="yes" 17319 17320 else 17321 17322 tmp_compiler_works="no" 17323 echo " " >&6 17324 sed 's/^/link-fail: /' conftest.err >&6 17325 echo " " >&6 17326 17327 fi 17328 rm -f core conftest.err conftest.$ac_objext \ 17329 conftest$ac_exeext conftest.$ac_ext 17330 fi 17331 if test "x$cross_compiling" != "xyes" && 17332 test "$tmp_compiler_works" = "yes"; then 17333 17334 17335 old=$LD_LIBRARY_PATH 17336 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 17337 export LD_LIBRARY_PATH 17338 if test "$cross_compiling" = yes; then : 17339 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17341 as_fn_error $? "cannot run test program while cross compiling 17342 See \`config.log' for more details" "$LINENO" 5; } 17343 else 17344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17345 /* end confdefs.h. */ 17346 17347 17348 # ifdef __STDC__ 17349 # include <stdlib.h> 17350 # endif 17351 17352 int main (void) 17353 { 17354 17355 int i = 0; 17356 exit(i); 17357 17358 ; 17359 return 0; 17360 } 17361 17362 _ACEOF 17363 if ac_fn_c_try_run "$LINENO"; then : 17364 tmp_compiler_works="yes" 17365 17366 else 17367 tmp_compiler_works="no" 17368 echo " " >&6 17369 echo "run-fail: test program exited with status $ac_status" >&6 17370 echo " " >&6 17371 17372 fi 17373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17374 conftest.$ac_objext conftest.beam conftest.$ac_ext 17375 fi 17376 17377 LD_LIBRARY_PATH=$old # restore 17378 17379 fi 17380 if test "$tmp_compiler_works" = "yes"; then 17381 17382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17383 $as_echo "yes" >&6; } 17384 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5 17385 $as_echo "$as_me: compiler options added: $tmp_options" >&6;} 17386 17387 else 17388 17389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17390 $as_echo "no" >&6; } 17391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5 17392 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;} 17393 CPPFLAGS="$tmp_save_CPPFLAGS" 17394 CFLAGS="$tmp_save_CFLAGS" 17395 17396 fi 17397 17398 # 17399 fi 17400 17401 17402 # 17403 if test "$compiler_id" != "unknown"; then 17404 # 17405 tmp_save_CFLAGS="$CFLAGS" 17406 tmp_save_CPPFLAGS="$CPPFLAGS" 17407 # 17408 tmp_options="" 17409 tmp_CFLAGS="$CFLAGS" 17410 tmp_CPPFLAGS="$CPPFLAGS" 17411 honor_optimize_option="yes" 17412 # 17413 # 17414 if test "$want_optimize" = "assume_no" || 17415 test "$want_optimize" = "assume_yes"; then 17416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5 17417 $as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; } 17418 17419 17420 ac_var_match_word="no" 17421 for word1 in $tmp_CFLAGS; do 17422 for word2 in $flags_opt_all; do 17423 if test "$word1" = "$word2"; then 17424 ac_var_match_word="yes" 17425 fi 17426 done 17427 done 17428 17429 if test "$ac_var_match_word" = "yes"; then 17430 17431 honor_optimize_option="no" 17432 17433 17434 fi 17435 17436 17437 17438 ac_var_match_word="no" 17439 for word1 in $tmp_CPPFLAGS; do 17440 for word2 in $flags_opt_all; do 17441 if test "$word1" = "$word2"; then 17442 ac_var_match_word="yes" 17443 fi 17444 done 17445 done 17446 17447 if test "$ac_var_match_word" = "yes"; then 17448 17449 honor_optimize_option="no" 17450 17451 17452 fi 17453 17454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5 17455 $as_echo "$honor_optimize_option" >&6; } 17456 if test "$honor_optimize_option" = "yes"; then 17457 if test "$want_optimize" = "assume_yes"; then 17458 want_optimize="yes" 17459 fi 17460 if test "$want_optimize" = "assume_no"; then 17461 want_optimize="no" 17462 fi 17463 fi 17464 fi 17465 # 17466 if test "$honor_optimize_option" = "yes"; then 17467 17468 ac_var_stripped="" 17469 for word1 in $tmp_CFLAGS; do 17470 ac_var_strip_word="no" 17471 for word2 in $flags_opt_all; do 17472 if test "$word1" = "$word2"; then 17473 ac_var_strip_word="yes" 17474 fi 17475 done 17476 if test "$ac_var_strip_word" = "no"; then 17477 ac_var_stripped="$ac_var_stripped $word1" 17478 fi 17479 done 17480 tmp_CFLAGS="$ac_var_stripped" 17481 squeeze tmp_CFLAGS 17482 17483 17484 ac_var_stripped="" 17485 for word1 in $tmp_CPPFLAGS; do 17486 ac_var_strip_word="no" 17487 for word2 in $flags_opt_all; do 17488 if test "$word1" = "$word2"; then 17489 ac_var_strip_word="yes" 17490 fi 17491 done 17492 if test "$ac_var_strip_word" = "no"; then 17493 ac_var_stripped="$ac_var_stripped $word1" 17494 fi 17495 done 17496 tmp_CPPFLAGS="$ac_var_stripped" 17497 squeeze tmp_CPPFLAGS 17498 17499 if test "$want_optimize" = "yes"; then 17500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5 17501 $as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; } 17502 tmp_options="$flags_opt_yes" 17503 fi 17504 if test "$want_optimize" = "no"; then 17505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5 17506 $as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; } 17507 tmp_options="$flags_opt_off" 17508 fi 17509 if test "$flags_prefer_cppflags" = "yes"; then 17510 CPPFLAGS="$tmp_CPPFLAGS $tmp_options" 17511 CFLAGS="$tmp_CFLAGS" 17512 else 17513 CPPFLAGS="$tmp_CPPFLAGS" 17514 CFLAGS="$tmp_CFLAGS $tmp_options" 17515 fi 17516 squeeze CPPFLAGS 17517 squeeze CFLAGS 17518 17519 tmp_compiler_works="unknown" 17520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17521 /* end confdefs.h. */ 17522 17523 17524 17525 int main (void) 17526 { 17527 17528 int i = 1; 17529 return i; 17530 17531 ; 17532 return 0; 17533 } 17534 17535 _ACEOF 17536 if ac_fn_c_try_compile "$LINENO"; then : 17537 17538 tmp_compiler_works="yes" 17539 17540 else 17541 17542 tmp_compiler_works="no" 17543 echo " " >&6 17544 sed 's/^/cc-fail: /' conftest.err >&6 17545 echo " " >&6 17546 17547 fi 17548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17549 if test "$tmp_compiler_works" = "yes"; then 17550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17551 /* end confdefs.h. */ 17552 17553 17554 17555 int main (void) 17556 { 17557 17558 int i = 1; 17559 return i; 17560 17561 ; 17562 return 0; 17563 } 17564 17565 _ACEOF 17566 if ac_fn_c_try_link "$LINENO"; then : 17567 17568 tmp_compiler_works="yes" 17569 17570 else 17571 17572 tmp_compiler_works="no" 17573 echo " " >&6 17574 sed 's/^/link-fail: /' conftest.err >&6 17575 echo " " >&6 17576 17577 fi 17578 rm -f core conftest.err conftest.$ac_objext \ 17579 conftest$ac_exeext conftest.$ac_ext 17580 fi 17581 if test "x$cross_compiling" != "xyes" && 17582 test "$tmp_compiler_works" = "yes"; then 17583 17584 17585 old=$LD_LIBRARY_PATH 17586 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 17587 export LD_LIBRARY_PATH 17588 if test "$cross_compiling" = yes; then : 17589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17591 as_fn_error $? "cannot run test program while cross compiling 17592 See \`config.log' for more details" "$LINENO" 5; } 17593 else 17594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17595 /* end confdefs.h. */ 17596 17597 17598 # ifdef __STDC__ 17599 # include <stdlib.h> 17600 # endif 17601 17602 int main (void) 17603 { 17604 17605 int i = 0; 17606 exit(i); 17607 17608 ; 17609 return 0; 17610 } 17611 17612 _ACEOF 17613 if ac_fn_c_try_run "$LINENO"; then : 17614 tmp_compiler_works="yes" 17615 17616 else 17617 tmp_compiler_works="no" 17618 echo " " >&6 17619 echo "run-fail: test program exited with status $ac_status" >&6 17620 echo " " >&6 17621 17622 fi 17623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17624 conftest.$ac_objext conftest.beam conftest.$ac_ext 17625 fi 17626 17627 LD_LIBRARY_PATH=$old # restore 17628 17629 fi 17630 if test "$tmp_compiler_works" = "yes"; then 17631 17632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17633 $as_echo "yes" >&6; } 17634 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5 17635 $as_echo "$as_me: compiler options added: $tmp_options" >&6;} 17636 17637 else 17638 17639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17640 $as_echo "no" >&6; } 17641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5 17642 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;} 17643 CPPFLAGS="$tmp_save_CPPFLAGS" 17644 CFLAGS="$tmp_save_CFLAGS" 17645 17646 fi 17647 17648 fi 17649 # 17650 fi 17651 17652 17653 # 17654 if test "$compiler_id" != "unknown"; then 17655 # 17656 tmp_save_CPPFLAGS="$CPPFLAGS" 17657 tmp_save_CFLAGS="$CFLAGS" 17658 tmp_CPPFLAGS="" 17659 tmp_CFLAGS="" 17660 # 17661 case "$compiler_id" in 17662 # 17663 CLANG) 17664 # 17665 if test "$want_warnings" = "yes"; then 17666 tmp_CFLAGS="$tmp_CFLAGS -pedantic" 17667 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra" 17668 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings" 17669 tmp_CFLAGS="$tmp_CFLAGS -Wshadow" 17670 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs" 17671 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations" 17672 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes" 17673 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long" 17674 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal" 17675 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare" 17676 tmp_CFLAGS="$tmp_CFLAGS -Wundef" 17677 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral" 17678 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes" 17679 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement" 17680 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align" 17681 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers" 17682 tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32" 17683 # 17684 if test "$compiler_num" -ge "101"; then 17685 tmp_CFLAGS="$tmp_CFLAGS -Wunused" 17686 fi 17687 # 17688 if test "$compiler_num" -ge "208"; then 17689 tmp_CFLAGS="$tmp_CFLAGS -Wvla" 17690 fi 17691 # 17692 if test "$compiler_num" -ge "209"; then 17693 tmp_CFLAGS="$tmp_CFLAGS -Wshift-sign-overflow" 17694 fi 17695 # 17696 if test "$compiler_num" -ge "302"; then 17697 case $host_os in 17698 cygwin* | mingw*) 17699 ;; 17700 *) 17701 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-variable-declarations" 17702 ;; 17703 esac 17704 fi 17705 # 17706 if test "$compiler_num" -ge "306"; then 17707 tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion" 17708 fi 17709 # 17710 if test "$compiler_num" -ge "309"; then 17711 tmp_CFLAGS="$tmp_CFLAGS -Wcomma" 17712 # avoid the varargs warning, fixed in 4.0 17713 # https://bugs.llvm.org/show_bug.cgi?id=29140 17714 if test "$compiler_num" -lt "400"; then 17715 tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs" 17716 fi 17717 fi 17718 fi 17719 ;; 17720 # 17721 DEC_C) 17722 # 17723 if test "$want_warnings" = "yes"; then 17724 tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3" 17725 fi 17726 ;; 17727 # 17728 GNU_C) 17729 # 17730 if test "$want_warnings" = "yes"; then 17731 # 17732 if test "x$cross_compiling" != "xyes" || 17733 test "$compiler_num" -ge "300"; then 17734 tmp_CFLAGS="$tmp_CFLAGS -pedantic" 17735 fi 17736 # 17737 tmp_CFLAGS="$tmp_CFLAGS -Wall -W" 17738 # 17739 if test "$compiler_num" -ge "104"; then 17740 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings" 17741 if test "x$cross_compiling" != "xyes" || 17742 test "$compiler_num" -ge "300"; then 17743 tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow" 17744 fi 17745 fi 17746 # 17747 if test "$compiler_num" -ge "207"; then 17748 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs" 17749 if test "x$cross_compiling" != "xyes" || 17750 test "$compiler_num" -ge "300"; then 17751 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations" 17752 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes" 17753 fi 17754 fi 17755 # 17756 if test "$compiler_num" -ge "295"; then 17757 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long" 17758 tmp_CFLAGS="$tmp_CFLAGS -Wbad-function-cast" 17759 fi 17760 # 17761 if test "$compiler_num" -ge "296"; then 17762 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal" 17763 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare" 17764 tmp_CFLAGS="$tmp_CFLAGS -Wundef" 17765 fi 17766 # 17767 if test "$compiler_num" -ge "297"; then 17768 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral" 17769 fi 17770 # 17771 if test "$compiler_num" -ge "300"; then 17772 tmp_CFLAGS="$tmp_CFLAGS" 17773 fi 17774 # 17775 if test "$compiler_num" -ge "303"; then 17776 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes" 17777 fi 17778 # 17779 if test "$compiler_num" -ge "304"; then 17780 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement" 17781 tmp_CFLAGS="$tmp_CFLAGS -Wold-style-definition" 17782 fi 17783 # 17784 if test "$compiler_num" -ge "400"; then 17785 tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3" 17786 fi 17787 # 17788 if test "$compiler_num" -ge "402"; then 17789 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align" 17790 fi 17791 # 17792 if test "$compiler_num" -ge "403"; then 17793 tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration" 17794 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body" 17795 tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers" 17796 tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla" 17797 tmp_CFLAGS="$tmp_CFLAGS -ftree-vrp" 17798 fi 17799 # 17800 if test "$compiler_num" -ge "405"; then 17801 if test "$curl_cv_have_def__WIN32" = "yes"; then 17802 tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format" 17803 fi 17804 fi 17805 # 17806 if test "$compiler_num" -ge "406"; then 17807 tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion" 17808 fi 17809 # 17810 if test "$compiler_num" -ge "408"; then 17811 tmp_CFLAGS="$tmp_CFLAGS -Wformat=2" 17812 fi 17813 # 17814 if test "$compiler_num" -ge "500"; then 17815 tmp_CFLAGS="$tmp_CFLAGS -Warray-bounds=2" 17816 fi 17817 # 17818 if test "$compiler_num" -ge "600"; then 17819 tmp_CFLAGS="$tmp_CFLAGS -Wshift-negative-value" 17820 tmp_CFLAGS="$tmp_CFLAGS -Wshift-overflow=2" 17821 tmp_CFLAGS="$tmp_CFLAGS -Wnull-dereference -fdelete-null-pointer-checks" 17822 tmp_CFLAGS="$tmp_CFLAGS -Wduplicated-cond" 17823 tmp_CFLAGS="$tmp_CFLAGS -Wunused-const-variable" 17824 fi 17825 # 17826 if test "$compiler_num" -ge "700"; then 17827 tmp_CFLAGS="$tmp_CFLAGS -Wduplicated-branches" 17828 tmp_CFLAGS="$tmp_CFLAGS -Wrestrict" 17829 tmp_CFLAGS="$tmp_CFLAGS -Walloc-zero" 17830 tmp_CFLAGS="$tmp_CFLAGS -Wformat-overflow=2" 17831 tmp_CFLAGS="$tmp_CFLAGS -Wformat-truncation=2" 17832 tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough=4" 17833 fi 17834 # 17835 fi 17836 # 17837 if test "$compiler_num" -ge "300"; then 17838 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers" 17839 else 17840 if test "x$cross_compiling" = "xyes"; then 17841 if test "$compiler_num" -ge "104"; then 17842 tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow" 17843 fi 17844 if test "$compiler_num" -ge "207"; then 17845 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations" 17846 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes" 17847 fi 17848 fi 17849 fi 17850 ;; 17851 # 17852 HP_UX_C) 17853 # 17854 if test "$want_warnings" = "yes"; then 17855 tmp_CFLAGS="$tmp_CFLAGS +w1" 17856 fi 17857 ;; 17858 # 17859 IBM_C) 17860 # 17861 tmp_CFLAGS="$tmp_CFLAGS" 17862 ;; 17863 # 17864 INTEL_UNIX_C) 17865 # 17866 if test "$want_warnings" = "yes"; then 17867 if test "$compiler_num" -gt "600"; then 17868 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2" 17869 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck" 17870 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment" 17871 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated" 17872 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes" 17873 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64" 17874 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith" 17875 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type" 17876 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow" 17877 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized" 17878 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function" 17879 fi 17880 fi 17881 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer" 17882 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing" 17883 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise" 17884 if test "$compiler_num" -ge "1000"; then 17885 tmp_CFLAGS="$tmp_CFLAGS -vec-report0" 17886 fi 17887 ;; 17888 # 17889 INTEL_WINDOWS_C) 17890 # 17891 tmp_CFLAGS="$tmp_CFLAGS" 17892 ;; 17893 # 17894 LCC) 17895 # 17896 if test "$want_warnings" = "yes"; then 17897 tmp_CFLAGS="$tmp_CFLAGS" 17898 fi 17899 ;; 17900 # 17901 SGI_MIPS_C) 17902 # 17903 if test "$want_warnings" = "yes"; then 17904 tmp_CFLAGS="$tmp_CFLAGS -fullwarn" 17905 fi 17906 ;; 17907 # 17908 SGI_MIPSPRO_C) 17909 # 17910 if test "$want_warnings" = "yes"; then 17911 tmp_CFLAGS="$tmp_CFLAGS -fullwarn" 17912 tmp_CFLAGS="$tmp_CFLAGS -woff 1209" 17913 fi 17914 ;; 17915 # 17916 SUNPRO_C) 17917 # 17918 if test "$want_warnings" = "yes"; then 17919 tmp_CFLAGS="$tmp_CFLAGS -v" 17920 fi 17921 ;; 17922 # 17923 TINY_C) 17924 # 17925 if test "$want_warnings" = "yes"; then 17926 tmp_CFLAGS="$tmp_CFLAGS -Wall" 17927 tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings" 17928 tmp_CFLAGS="$tmp_CFLAGS -Wunsupported" 17929 fi 17930 ;; 17931 # 17932 WATCOM_UNIX_C) 17933 # 17934 if test "$want_warnings" = "yes"; then 17935 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra" 17936 fi 17937 ;; 17938 # 17939 WATCOM_WINDOWS_C) 17940 # 17941 tmp_CFLAGS="$tmp_CFLAGS" 17942 ;; 17943 # 17944 esac 17945 # 17946 squeeze tmp_CPPFLAGS 17947 squeeze tmp_CFLAGS 17948 # 17949 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then 17950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5 17951 $as_echo_n "checking if compiler accepts strict warning options... " >&6; } 17952 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS" 17953 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS" 17954 squeeze CPPFLAGS 17955 squeeze CFLAGS 17956 17957 tmp_compiler_works="unknown" 17958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17959 /* end confdefs.h. */ 17960 17961 17962 17963 int main (void) 17964 { 17965 17966 int i = 1; 17967 return i; 17968 17969 ; 17970 return 0; 17971 } 17972 17973 _ACEOF 17974 if ac_fn_c_try_compile "$LINENO"; then : 17975 17976 tmp_compiler_works="yes" 17977 17978 else 17979 17980 tmp_compiler_works="no" 17981 echo " " >&6 17982 sed 's/^/cc-fail: /' conftest.err >&6 17983 echo " " >&6 17984 17985 fi 17986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17987 if test "$tmp_compiler_works" = "yes"; then 17988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17989 /* end confdefs.h. */ 17990 17991 17992 17993 int main (void) 17994 { 17995 17996 int i = 1; 17997 return i; 17998 17999 ; 18000 return 0; 18001 } 18002 18003 _ACEOF 18004 if ac_fn_c_try_link "$LINENO"; then : 18005 18006 tmp_compiler_works="yes" 18007 18008 else 18009 18010 tmp_compiler_works="no" 18011 echo " " >&6 18012 sed 's/^/link-fail: /' conftest.err >&6 18013 echo " " >&6 18014 18015 fi 18016 rm -f core conftest.err conftest.$ac_objext \ 18017 conftest$ac_exeext conftest.$ac_ext 18018 fi 18019 if test "x$cross_compiling" != "xyes" && 18020 test "$tmp_compiler_works" = "yes"; then 18021 18022 18023 old=$LD_LIBRARY_PATH 18024 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 18025 export LD_LIBRARY_PATH 18026 if test "$cross_compiling" = yes; then : 18027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18029 as_fn_error $? "cannot run test program while cross compiling 18030 See \`config.log' for more details" "$LINENO" 5; } 18031 else 18032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18033 /* end confdefs.h. */ 18034 18035 18036 # ifdef __STDC__ 18037 # include <stdlib.h> 18038 # endif 18039 18040 int main (void) 18041 { 18042 18043 int i = 0; 18044 exit(i); 18045 18046 ; 18047 return 0; 18048 } 18049 18050 _ACEOF 18051 if ac_fn_c_try_run "$LINENO"; then : 18052 tmp_compiler_works="yes" 18053 18054 else 18055 tmp_compiler_works="no" 18056 echo " " >&6 18057 echo "run-fail: test program exited with status $ac_status" >&6 18058 echo " " >&6 18059 18060 fi 18061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18062 conftest.$ac_objext conftest.beam conftest.$ac_ext 18063 fi 18064 18065 LD_LIBRARY_PATH=$old # restore 18066 18067 fi 18068 if test "$tmp_compiler_works" = "yes"; then 18069 18070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18071 $as_echo "yes" >&6; } 18072 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5 18073 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;} 18074 18075 else 18076 18077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18078 $as_echo "no" >&6; } 18079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5 18080 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;} 18081 CPPFLAGS="$tmp_save_CPPFLAGS" 18082 CFLAGS="$tmp_save_CFLAGS" 18083 18084 fi 18085 18086 fi 18087 # 18088 fi 18089 18090 18091 if test "$compiler_id" = "INTEL_UNIX_C"; then 18092 # 18093 if test "$compiler_num" -ge "1000"; then 18094 CFLAGS="$CFLAGS -shared-intel" 18095 elif test "$compiler_num" -ge "900"; then 18096 CFLAGS="$CFLAGS -i-dynamic" 18097 fi 18098 # 18099 fi 18100 18101 18102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5 18103 $as_echo_n "checking if compiler halts on compilation errors... " >&6; } 18104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18105 /* end confdefs.h. */ 18106 18107 18108 18109 int main (void) 18110 { 18111 18112 force compilation error 18113 18114 ; 18115 return 0; 18116 } 18117 18118 _ACEOF 18119 if ac_fn_c_try_compile "$LINENO"; then : 18120 18121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18122 $as_echo "no" >&6; } 18123 as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5 18124 18125 else 18126 18127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18128 $as_echo "yes" >&6; } 18129 18130 fi 18131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18132 18133 18134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5 18135 $as_echo_n "checking if compiler halts on negative sized arrays... " >&6; } 18136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18137 /* end confdefs.h. */ 18138 18139 18140 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ]; 18141 18142 int main (void) 18143 { 18144 18145 bad_t dummy; 18146 18147 ; 18148 return 0; 18149 } 18150 18151 _ACEOF 18152 if ac_fn_c_try_compile "$LINENO"; then : 18153 18154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18155 $as_echo "no" >&6; } 18156 as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5 18157 18158 else 18159 18160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18161 $as_echo "yes" >&6; } 18162 18163 fi 18164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18165 18166 18167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5 18168 $as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; } 18169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18170 /* end confdefs.h. */ 18171 18172 18173 # include <stdlib.h> 18174 int rand(int n); 18175 int rand(int n) 18176 { 18177 if(n) 18178 return ++n; 18179 else 18180 return n; 18181 } 18182 18183 int main (void) 18184 { 18185 18186 int i[2]={0,0}; 18187 int j = rand(i[0]); 18188 if(j) 18189 return j; 18190 18191 ; 18192 return 0; 18193 } 18194 18195 _ACEOF 18196 if ac_fn_c_try_compile "$LINENO"; then : 18197 18198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18199 $as_echo "no" >&6; } 18200 as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5 18201 18202 else 18203 18204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18205 $as_echo "yes" >&6; } 18206 18207 fi 18208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18209 18210 18211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5 18212 $as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; } 18213 supports_symbol_hiding="no" 18214 symbol_hiding_CFLAGS="" 18215 symbol_hiding_EXTERN="" 18216 tmp_CFLAGS="" 18217 tmp_EXTERN="" 18218 case "$compiler_id" in 18219 CLANG) 18220 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))" 18221 tmp_CFLAGS="-fvisibility=hidden" 18222 supports_symbol_hiding="yes" 18223 ;; 18224 GNU_C) 18225 if test "$compiler_num" -ge "304"; then 18226 if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then 18227 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))" 18228 tmp_CFLAGS="-fvisibility=hidden" 18229 supports_symbol_hiding="yes" 18230 fi 18231 fi 18232 ;; 18233 INTEL_UNIX_C) 18234 if test "$compiler_num" -ge "900"; then 18235 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then 18236 tmp_save_CFLAGS="$CFLAGS" 18237 CFLAGS="$CFLAGS -fvisibility=hidden" 18238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18239 /* end confdefs.h. */ 18240 18241 18242 # include <stdio.h> 18243 18244 int main (void) 18245 { 18246 18247 printf("icc fvisibility bug test"); 18248 18249 ; 18250 return 0; 18251 } 18252 18253 _ACEOF 18254 if ac_fn_c_try_link "$LINENO"; then : 18255 18256 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))" 18257 tmp_CFLAGS="-fvisibility=hidden" 18258 supports_symbol_hiding="yes" 18259 18260 fi 18261 rm -f core conftest.err conftest.$ac_objext \ 18262 conftest$ac_exeext conftest.$ac_ext 18263 CFLAGS="$tmp_save_CFLAGS" 18264 fi 18265 fi 18266 ;; 18267 SUNPRO_C) 18268 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then 18269 tmp_EXTERN="__global" 18270 tmp_CFLAGS="-xldscope=hidden" 18271 supports_symbol_hiding="yes" 18272 fi 18273 ;; 18274 esac 18275 if test "$supports_symbol_hiding" = "yes"; then 18276 tmp_save_CFLAGS="$CFLAGS" 18277 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS" 18278 squeeze CFLAGS 18279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18280 /* end confdefs.h. */ 18281 18282 18283 $tmp_EXTERN char *dummy(char *buff); 18284 char *dummy(char *buff) 18285 { 18286 if(buff) 18287 return ++buff; 18288 else 18289 return buff; 18290 } 18291 18292 int main (void) 18293 { 18294 18295 char b[16]; 18296 char *r = dummy(&b[0]); 18297 if(r) 18298 return (int)*r; 18299 18300 ; 18301 return 0; 18302 } 18303 18304 _ACEOF 18305 if ac_fn_c_try_compile "$LINENO"; then : 18306 18307 supports_symbol_hiding="yes" 18308 if test -f conftest.err; then 18309 grep 'visibility' conftest.err >/dev/null 18310 if test "$?" -eq "0"; then 18311 supports_symbol_hiding="no" 18312 fi 18313 fi 18314 18315 else 18316 18317 supports_symbol_hiding="no" 18318 echo " " >&6 18319 sed 's/^/cc-src: /' conftest.$ac_ext >&6 18320 sed 's/^/cc-err: /' conftest.err >&6 18321 echo " " >&6 18322 18323 fi 18324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18325 CFLAGS="$tmp_save_CFLAGS" 18326 fi 18327 if test "$supports_symbol_hiding" = "yes"; then 18328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18329 $as_echo "yes" >&6; } 18330 symbol_hiding_CFLAGS="$tmp_CFLAGS" 18331 symbol_hiding_EXTERN="$tmp_EXTERN" 18332 else 18333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18334 $as_echo "no" >&6; } 18335 fi 18336 18337 18338 18339 supports_curldebug="unknown" 18340 if test "$want_curldebug" = "yes"; then 18341 if test "x$enable_shared" != "xno" && 18342 test "x$enable_shared" != "xyes"; then 18343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5 18344 $as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;} 18345 supports_curldebug="no" 18346 fi 18347 if test "x$enable_static" != "xno" && 18348 test "x$enable_static" != "xyes"; then 18349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5 18350 $as_echo "$as_me: WARNING: unknown enable_static setting." >&2;} 18351 supports_curldebug="no" 18352 fi 18353 if test "$supports_curldebug" != "no"; then 18354 if test "$enable_shared" = "yes" && 18355 test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then 18356 supports_curldebug="no" 18357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5 18358 $as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;} 18359 fi 18360 fi 18361 fi 18362 # 18363 if test "$want_curldebug" = "yes"; then 18364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5 18365 $as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; } 18366 test "$supports_curldebug" = "no" || supports_curldebug="yes" 18367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5 18368 $as_echo "$supports_curldebug" >&6; } 18369 if test "$supports_curldebug" = "no"; then 18370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5 18371 $as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;} 18372 want_curldebug="no" 18373 fi 18374 fi 18375 18376 if test x$want_curldebug = xyes; then 18377 CURLDEBUG_TRUE= 18378 CURLDEBUG_FALSE='#' 18379 else 18380 CURLDEBUG_TRUE='#' 18381 CURLDEBUG_FALSE= 18382 fi 18383 18384 18385 supports_unittests=yes 18386 # cross-compilation of unit tests static library/programs fails when 18387 # libcurl shared library is built. This might be due to a libtool or 18388 # automake issue. In this case we disable unit tests. 18389 if test "x$cross_compiling" != "xno" && 18390 test "x$enable_shared" != "xno"; then 18391 supports_unittests=no 18392 fi 18393 18394 # IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to 18395 # a problem related with OpenSSL headers and library versions not matching. 18396 # Disable unit tests while time to further investigate this is found. 18397 case $host in 18398 mips-sgi-irix6.5) 18399 if test "$compiler_id" = "GNU_C"; then 18400 supports_unittests=no 18401 fi 18402 ;; 18403 esac 18404 18405 # All AIX autobuilds fails unit tests linking against unittests library 18406 # due to unittests library being built with no symbols or members. Libtool ? 18407 # Disable unit tests while time to further investigate this is found. 18408 case $host_os in 18409 aix*) 18410 supports_unittests=no 18411 ;; 18412 esac 18413 18414 if test "x$want_debug" = "xyes" && 18415 test "x$supports_unittests" = "xyes"; then 18416 want_unittests=yes 18417 else 18418 want_unittests=no 18419 fi 18420 if test x$want_unittests = xyes; then 18421 BUILD_UNITTESTS_TRUE= 18422 BUILD_UNITTESTS_FALSE='#' 18423 else 18424 BUILD_UNITTESTS_TRUE='#' 18425 BUILD_UNITTESTS_FALSE= 18426 fi 18427 18428 18429 18430 18431 18432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5 18433 $as_echo_n "checking for windows.h... " >&6; } 18434 if ${curl_cv_header_windows_h+:} false; then : 18435 $as_echo_n "(cached) " >&6 18436 else 18437 18438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18439 /* end confdefs.h. */ 18440 18441 18442 #undef inline 18443 #ifndef WIN32_LEAN_AND_MEAN 18444 #define WIN32_LEAN_AND_MEAN 18445 #endif 18446 #include <windows.h> 18447 18448 int main (void) 18449 { 18450 18451 #if defined(__CYGWIN__) || defined(__CEGCC__) 18452 HAVE_WINDOWS_H shall not be defined. 18453 #else 18454 int dummy=2*WINVER; 18455 #endif 18456 18457 ; 18458 return 0; 18459 } 18460 18461 _ACEOF 18462 if ac_fn_c_try_compile "$LINENO"; then : 18463 18464 curl_cv_header_windows_h="yes" 18465 18466 else 18467 18468 curl_cv_header_windows_h="no" 18469 18470 fi 18471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18472 18473 fi 18474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5 18475 $as_echo "$curl_cv_header_windows_h" >&6; } 18476 case "$curl_cv_header_windows_h" in 18477 yes) 18478 18479 cat >>confdefs.h <<_ACEOF 18480 #define HAVE_WINDOWS_H 1 18481 _ACEOF 18482 18483 ;; 18484 esac 18485 18486 18487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5 18488 $as_echo_n "checking whether build target is a native Windows one... " >&6; } 18489 if ${curl_cv_native_windows+:} false; then : 18490 $as_echo_n "(cached) " >&6 18491 else 18492 18493 if test "$curl_cv_header_windows_h" = "no"; then 18494 curl_cv_native_windows="no" 18495 else 18496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18497 /* end confdefs.h. */ 18498 18499 18500 18501 int main (void) 18502 { 18503 18504 #if defined(__MINGW32__) || defined(__MINGW32CE__) || \ 18505 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))) 18506 int dummy=1; 18507 #else 18508 Not a native Windows build target. 18509 #endif 18510 18511 ; 18512 return 0; 18513 } 18514 18515 _ACEOF 18516 if ac_fn_c_try_compile "$LINENO"; then : 18517 18518 curl_cv_native_windows="yes" 18519 18520 else 18521 18522 curl_cv_native_windows="no" 18523 18524 fi 18525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18526 fi 18527 18528 fi 18529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5 18530 $as_echo "$curl_cv_native_windows" >&6; } 18531 if test "x$curl_cv_native_windows" = xyes; then 18532 DOING_NATIVE_WINDOWS_TRUE= 18533 DOING_NATIVE_WINDOWS_FALSE='#' 18534 else 18535 DOING_NATIVE_WINDOWS_TRUE='#' 18536 DOING_NATIVE_WINDOWS_FALSE= 18537 fi 18538 18539 18540 case X-"$curl_cv_native_windows" in 18541 X-yes) 18542 18543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5 18544 $as_echo_n "checking for winsock.h... " >&6; } 18545 if ${curl_cv_header_winsock_h+:} false; then : 18546 $as_echo_n "(cached) " >&6 18547 else 18548 18549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18550 /* end confdefs.h. */ 18551 18552 18553 #undef inline 18554 #ifndef WIN32_LEAN_AND_MEAN 18555 #define WIN32_LEAN_AND_MEAN 18556 #endif 18557 #include <windows.h> 18558 #include <winsock.h> 18559 18560 int main (void) 18561 { 18562 18563 #if defined(__CYGWIN__) || defined(__CEGCC__) 18564 HAVE_WINSOCK_H shall not be defined. 18565 #else 18566 int dummy=WSACleanup(); 18567 #endif 18568 18569 ; 18570 return 0; 18571 } 18572 18573 _ACEOF 18574 if ac_fn_c_try_compile "$LINENO"; then : 18575 18576 curl_cv_header_winsock_h="yes" 18577 18578 else 18579 18580 curl_cv_header_winsock_h="no" 18581 18582 fi 18583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18584 18585 fi 18586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5 18587 $as_echo "$curl_cv_header_winsock_h" >&6; } 18588 case "$curl_cv_header_winsock_h" in 18589 yes) 18590 18591 cat >>confdefs.h <<_ACEOF 18592 #define HAVE_WINSOCK_H 1 18593 _ACEOF 18594 18595 ;; 18596 esac 18597 18598 18599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5 18600 $as_echo_n "checking for winsock2.h... " >&6; } 18601 if ${curl_cv_header_winsock2_h+:} false; then : 18602 $as_echo_n "(cached) " >&6 18603 else 18604 18605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18606 /* end confdefs.h. */ 18607 18608 18609 #undef inline 18610 #ifndef WIN32_LEAN_AND_MEAN 18611 #define WIN32_LEAN_AND_MEAN 18612 #endif 18613 #include <windows.h> 18614 #include <winsock2.h> 18615 18616 int main (void) 18617 { 18618 18619 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__) 18620 HAVE_WINSOCK2_H shall not be defined. 18621 #else 18622 int dummy=2*IPPROTO_ESP; 18623 #endif 18624 18625 ; 18626 return 0; 18627 } 18628 18629 _ACEOF 18630 if ac_fn_c_try_compile "$LINENO"; then : 18631 18632 curl_cv_header_winsock2_h="yes" 18633 18634 else 18635 18636 curl_cv_header_winsock2_h="no" 18637 18638 fi 18639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18640 18641 fi 18642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5 18643 $as_echo "$curl_cv_header_winsock2_h" >&6; } 18644 case "$curl_cv_header_winsock2_h" in 18645 yes) 18646 18647 cat >>confdefs.h <<_ACEOF 18648 #define HAVE_WINSOCK2_H 1 18649 _ACEOF 18650 18651 ;; 18652 esac 18653 18654 18655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5 18656 $as_echo_n "checking for ws2tcpip.h... " >&6; } 18657 if ${curl_cv_header_ws2tcpip_h+:} false; then : 18658 $as_echo_n "(cached) " >&6 18659 else 18660 18661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18662 /* end confdefs.h. */ 18663 18664 18665 #undef inline 18666 #ifndef WIN32_LEAN_AND_MEAN 18667 #define WIN32_LEAN_AND_MEAN 18668 #endif 18669 #include <windows.h> 18670 #include <winsock2.h> 18671 #include <ws2tcpip.h> 18672 18673 int main (void) 18674 { 18675 18676 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__) 18677 HAVE_WS2TCPIP_H shall not be defined. 18678 #else 18679 int dummy=2*IP_PKTINFO; 18680 #endif 18681 18682 ; 18683 return 0; 18684 } 18685 18686 _ACEOF 18687 if ac_fn_c_try_compile "$LINENO"; then : 18688 18689 curl_cv_header_ws2tcpip_h="yes" 18690 18691 else 18692 18693 curl_cv_header_ws2tcpip_h="no" 18694 18695 fi 18696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18697 18698 fi 18699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5 18700 $as_echo "$curl_cv_header_ws2tcpip_h" >&6; } 18701 case "$curl_cv_header_ws2tcpip_h" in 18702 yes) 18703 18704 cat >>confdefs.h <<_ACEOF 18705 #define HAVE_WS2TCPIP_H 1 18706 _ACEOF 18707 18708 ;; 18709 esac 18710 18711 18712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5 18713 $as_echo_n "checking for winldap.h... " >&6; } 18714 if ${curl_cv_header_winldap_h+:} false; then : 18715 $as_echo_n "(cached) " >&6 18716 else 18717 18718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18719 /* end confdefs.h. */ 18720 18721 18722 #undef inline 18723 #ifdef HAVE_WINDOWS_H 18724 #ifndef WIN32_LEAN_AND_MEAN 18725 #define WIN32_LEAN_AND_MEAN 18726 #endif 18727 #include <windows.h> 18728 #endif 18729 #include <winldap.h> 18730 18731 int main (void) 18732 { 18733 18734 #if defined(__CYGWIN__) || defined(__CEGCC__) 18735 HAVE_WINLDAP_H shall not be defined. 18736 #else 18737 LDAP *ldp = ldap_init("dummy", LDAP_PORT); 18738 ULONG res = ldap_unbind(ldp); 18739 #endif 18740 18741 ; 18742 return 0; 18743 } 18744 18745 _ACEOF 18746 if ac_fn_c_try_compile "$LINENO"; then : 18747 18748 curl_cv_header_winldap_h="yes" 18749 18750 else 18751 18752 curl_cv_header_winldap_h="no" 18753 18754 fi 18755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18756 18757 fi 18758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winldap_h" >&5 18759 $as_echo "$curl_cv_header_winldap_h" >&6; } 18760 case "$curl_cv_header_winldap_h" in 18761 yes) 18762 18763 cat >>confdefs.h <<_ACEOF 18764 #define HAVE_WINLDAP_H 1 18765 _ACEOF 18766 18767 ;; 18768 esac 18769 18770 18771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5 18772 $as_echo_n "checking for winber.h... " >&6; } 18773 if ${curl_cv_header_winber_h+:} false; then : 18774 $as_echo_n "(cached) " >&6 18775 else 18776 18777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18778 /* end confdefs.h. */ 18779 18780 18781 #undef inline 18782 #ifdef HAVE_WINDOWS_H 18783 #ifndef WIN32_LEAN_AND_MEAN 18784 #define WIN32_LEAN_AND_MEAN 18785 #endif 18786 #include <windows.h> 18787 #endif 18788 #include <winldap.h> 18789 #include <winber.h> 18790 18791 int main (void) 18792 { 18793 18794 #if defined(__CYGWIN__) || defined(__CEGCC__) 18795 HAVE_WINBER_H shall not be defined. 18796 #else 18797 BERVAL *bvp = NULL; 18798 BerElement *bep = ber_init(bvp); 18799 ber_free(bep, 1); 18800 #endif 18801 18802 ; 18803 return 0; 18804 } 18805 18806 _ACEOF 18807 if ac_fn_c_try_compile "$LINENO"; then : 18808 18809 curl_cv_header_winber_h="yes" 18810 18811 else 18812 18813 curl_cv_header_winber_h="no" 18814 18815 fi 18816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18817 18818 fi 18819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winber_h" >&5 18820 $as_echo "$curl_cv_header_winber_h" >&6; } 18821 case "$curl_cv_header_winber_h" in 18822 yes) 18823 18824 cat >>confdefs.h <<_ACEOF 18825 #define HAVE_WINBER_H 1 18826 _ACEOF 18827 18828 ;; 18829 esac 18830 18831 ;; 18832 *) 18833 curl_cv_header_winsock_h="no" 18834 curl_cv_header_winsock2_h="no" 18835 curl_cv_header_ws2tcpip_h="no" 18836 curl_cv_header_winldap_h="no" 18837 curl_cv_header_winber_h="no" 18838 ;; 18839 esac 18840 18841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5 18842 $as_echo_n "checking whether build target supports WIN32 file API... " >&6; } 18843 curl_win32_file_api="no" 18844 if test "$curl_cv_header_windows_h" = "yes"; then 18845 if test x"$enable_largefile" != "xno"; then 18846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18847 /* end confdefs.h. */ 18848 18849 18850 18851 int main (void) 18852 { 18853 18854 #if !defined(_WIN32_WCE) && \ 18855 (defined(__MINGW32__) || \ 18856 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))) 18857 int dummy=1; 18858 #else 18859 WIN32 large file API not supported. 18860 #endif 18861 18862 ; 18863 return 0; 18864 } 18865 18866 _ACEOF 18867 if ac_fn_c_try_compile "$LINENO"; then : 18868 18869 curl_win32_file_api="win32_large_files" 18870 18871 fi 18872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18873 fi 18874 if test "$curl_win32_file_api" = "no"; then 18875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18876 /* end confdefs.h. */ 18877 18878 18879 18880 int main (void) 18881 { 18882 18883 #if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER) 18884 int dummy=1; 18885 #else 18886 WIN32 small file API not supported. 18887 #endif 18888 18889 ; 18890 return 0; 18891 } 18892 18893 _ACEOF 18894 if ac_fn_c_try_compile "$LINENO"; then : 18895 18896 curl_win32_file_api="win32_small_files" 18897 18898 fi 18899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18900 fi 18901 fi 18902 case "$curl_win32_file_api" in 18903 win32_large_files) 18904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5 18905 $as_echo "yes (large file enabled)" >&6; } 18906 18907 cat >>confdefs.h <<_ACEOF 18908 #define USE_WIN32_LARGE_FILES 1 18909 _ACEOF 18910 18911 ;; 18912 win32_small_files) 18913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5 18914 $as_echo "yes (large file disabled)" >&6; } 18915 18916 cat >>confdefs.h <<_ACEOF 18917 #define USE_WIN32_SMALL_FILES 1 18918 _ACEOF 18919 18920 ;; 18921 *) 18922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18923 $as_echo "no" >&6; } 18924 ;; 18925 esac 18926 18927 18928 18929 18930 tst_cflags="no" 18931 case $host_os in 18932 darwin*) 18933 tst_cflags="yes" 18934 ;; 18935 esac 18936 18937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good-to-use Mac CFLAGS" >&5 18938 $as_echo_n "checking for good-to-use Mac CFLAGS... " >&6; } 18939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_cflags" >&5 18940 $as_echo "$tst_cflags" >&6; }; 18941 18942 if test "$tst_cflags" = "yes"; then 18943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for *version-min in CFLAGS" >&5 18944 $as_echo_n "checking for *version-min in CFLAGS... " >&6; } 18945 min="" 18946 if test -z "$(echo $CFLAGS | grep m.*os.*-version-min)"; then 18947 min="-mmacosx-version-min=10.8" 18948 CFLAGS="$CFLAGS $min" 18949 fi 18950 if test -z "$min"; then 18951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set by user" >&5 18952 $as_echo "set by user" >&6; } 18953 else 18954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $min set" >&5 18955 $as_echo "$min set" >&6; } 18956 fi 18957 18958 old_CFLAGS=$CFLAGS 18959 CFLAGS="$CFLAGS -Werror=partial-availability" 18960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=partial-availability" >&5 18961 $as_echo_n "checking whether $CC accepts -Werror=partial-availability... " >&6; } 18962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18963 /* end confdefs.h. */ 18964 18965 int main (void) 18966 { 18967 18968 ; 18969 return 0; 18970 } 18971 _ACEOF 18972 if ac_fn_c_try_compile "$LINENO"; then : 18973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18974 $as_echo "yes" >&6; } 18975 else 18976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18977 $as_echo "no" >&6; } 18978 CFLAGS=$old_CFLAGS 18979 fi 18980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18981 fi 18982 18983 18984 18985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if the compiler supports __builtin_available()" >&5 18986 $as_echo_n "checking to see if the compiler supports __builtin_available()... " >&6; } 18987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18988 /* end confdefs.h. */ 18989 18990 18991 #include <stdlib.h> 18992 18993 int main (void) 18994 { 18995 18996 if (__builtin_available(macOS 10.8, iOS 5.0, *)) {} 18997 18998 ; 18999 return 0; 19000 } 19001 19002 _ACEOF 19003 if ac_fn_c_try_compile "$LINENO"; then : 19004 19005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19006 $as_echo "yes" >&6; } 19007 19008 cat >>confdefs.h <<_ACEOF 19009 #define HAVE_BUILTIN_AVAILABLE 1 19010 _ACEOF 19011 19012 19013 else 19014 19015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19016 $as_echo "no" >&6; } 19017 19018 fi 19019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19020 19021 19022 19023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5 19024 $as_echo_n "checking whether to support http... " >&6; } 19025 # Check whether --enable-http was given. 19026 if test "${enable_http+set}" = set; then : 19027 enableval=$enable_http; case "$enableval" in 19028 no) 19029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19030 $as_echo "no" >&6; } 19031 19032 $as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h 19033 19034 disable_http="yes" 19035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5 19036 $as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;} 19037 CURL_DISABLE_HTTP=1 19038 19039 19040 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h 19041 19042 CURL_DISABLE_RTSP=1 19043 19044 ;; 19045 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19046 $as_echo "yes" >&6; } 19047 ;; 19048 esac 19049 else 19050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19051 $as_echo "yes" >&6; } 19052 19053 fi 19054 19055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5 19056 $as_echo_n "checking whether to support ftp... " >&6; } 19057 # Check whether --enable-ftp was given. 19058 if test "${enable_ftp+set}" = set; then : 19059 enableval=$enable_ftp; case "$enableval" in 19060 no) 19061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19062 $as_echo "no" >&6; } 19063 19064 $as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h 19065 19066 CURL_DISABLE_FTP=1 19067 19068 ;; 19069 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19070 $as_echo "yes" >&6; } 19071 ;; 19072 esac 19073 else 19074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19075 $as_echo "yes" >&6; } 19076 19077 fi 19078 19079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5 19080 $as_echo_n "checking whether to support file... " >&6; } 19081 # Check whether --enable-file was given. 19082 if test "${enable_file+set}" = set; then : 19083 enableval=$enable_file; case "$enableval" in 19084 no) 19085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19086 $as_echo "no" >&6; } 19087 19088 $as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h 19089 19090 CURL_DISABLE_FILE=1 19091 19092 ;; 19093 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19094 $as_echo "yes" >&6; } 19095 ;; 19096 esac 19097 else 19098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19099 $as_echo "yes" >&6; } 19100 19101 fi 19102 19103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5 19104 $as_echo_n "checking whether to support ldap... " >&6; } 19105 # Check whether --enable-ldap was given. 19106 if test "${enable_ldap+set}" = set; then : 19107 enableval=$enable_ldap; case "$enableval" in 19108 no) 19109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19110 $as_echo "no" >&6; } 19111 19112 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h 19113 19114 CURL_DISABLE_LDAP=1 19115 19116 ;; 19117 *) 19118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19119 $as_echo "yes" >&6; } 19120 ;; 19121 esac 19122 else 19123 19124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19125 $as_echo "yes" >&6; } 19126 19127 fi 19128 19129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5 19130 $as_echo_n "checking whether to support ldaps... " >&6; } 19131 # Check whether --enable-ldaps was given. 19132 if test "${enable_ldaps+set}" = set; then : 19133 enableval=$enable_ldaps; case "$enableval" in 19134 no) 19135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19136 $as_echo "no" >&6; } 19137 19138 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h 19139 19140 CURL_DISABLE_LDAPS=1 19141 19142 ;; 19143 *) if test "x$CURL_DISABLE_LDAP" = "x1" ; then 19144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5 19145 $as_echo "LDAP needs to be enabled to support LDAPS" >&6; } 19146 19147 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h 19148 19149 CURL_DISABLE_LDAPS=1 19150 19151 else 19152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19153 $as_echo "yes" >&6; } 19154 19155 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h 19156 19157 HAVE_LDAP_SSL=1 19158 19159 fi 19160 ;; 19161 esac 19162 else 19163 19164 if test "x$CURL_DISABLE_LDAP" = "x1" ; then 19165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19166 $as_echo "no" >&6; } 19167 19168 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h 19169 19170 CURL_DISABLE_LDAPS=1 19171 19172 else 19173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19174 $as_echo "yes" >&6; } 19175 19176 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h 19177 19178 HAVE_LDAP_SSL=1 19179 19180 fi 19181 19182 fi 19183 19184 19185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5 19186 $as_echo_n "checking whether to support rtsp... " >&6; } 19187 # Check whether --enable-rtsp was given. 19188 if test "${enable_rtsp+set}" = set; then : 19189 enableval=$enable_rtsp; case "$enableval" in 19190 no) 19191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19192 $as_echo "no" >&6; } 19193 19194 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h 19195 19196 CURL_DISABLE_RTSP=1 19197 19198 ;; 19199 *) if test x$CURL_DISABLE_HTTP = x1 ; then 19200 as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5 19201 else 19202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19203 $as_echo "yes" >&6; } 19204 curl_rtsp_msg="enabled" 19205 fi 19206 ;; 19207 esac 19208 else 19209 if test "x$CURL_DISABLE_HTTP" != "x1"; then 19210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19211 $as_echo "yes" >&6; } 19212 curl_rtsp_msg="enabled" 19213 else 19214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19215 $as_echo "no" >&6; } 19216 fi 19217 19218 fi 19219 19220 19221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5 19222 $as_echo_n "checking whether to support proxies... " >&6; } 19223 # Check whether --enable-proxy was given. 19224 if test "${enable_proxy+set}" = set; then : 19225 enableval=$enable_proxy; case "$enableval" in 19226 no) 19227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19228 $as_echo "no" >&6; } 19229 19230 $as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h 19231 19232 CURL_DISABLE_PROXY=1 19233 19234 ;; 19235 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19236 $as_echo "yes" >&6; } 19237 ;; 19238 esac 19239 else 19240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19241 $as_echo "yes" >&6; } 19242 19243 fi 19244 19245 19246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5 19247 $as_echo_n "checking whether to support dict... " >&6; } 19248 # Check whether --enable-dict was given. 19249 if test "${enable_dict+set}" = set; then : 19250 enableval=$enable_dict; case "$enableval" in 19251 no) 19252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19253 $as_echo "no" >&6; } 19254 19255 $as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h 19256 19257 CURL_DISABLE_DICT=1 19258 19259 ;; 19260 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19261 $as_echo "yes" >&6; } 19262 ;; 19263 esac 19264 else 19265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19266 $as_echo "yes" >&6; } 19267 19268 fi 19269 19270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5 19271 $as_echo_n "checking whether to support telnet... " >&6; } 19272 # Check whether --enable-telnet was given. 19273 if test "${enable_telnet+set}" = set; then : 19274 enableval=$enable_telnet; case "$enableval" in 19275 no) 19276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19277 $as_echo "no" >&6; } 19278 19279 $as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h 19280 19281 CURL_DISABLE_TELNET=1 19282 19283 ;; 19284 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19285 $as_echo "yes" >&6; } 19286 ;; 19287 esac 19288 else 19289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19290 $as_echo "yes" >&6; } 19291 19292 fi 19293 19294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5 19295 $as_echo_n "checking whether to support tftp... " >&6; } 19296 # Check whether --enable-tftp was given. 19297 if test "${enable_tftp+set}" = set; then : 19298 enableval=$enable_tftp; case "$enableval" in 19299 no) 19300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19301 $as_echo "no" >&6; } 19302 19303 $as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h 19304 19305 CURL_DISABLE_TFTP=1 19306 19307 ;; 19308 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19309 $as_echo "yes" >&6; } 19310 ;; 19311 esac 19312 else 19313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19314 $as_echo "yes" >&6; } 19315 19316 fi 19317 19318 19319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5 19320 $as_echo_n "checking whether to support pop3... " >&6; } 19321 # Check whether --enable-pop3 was given. 19322 if test "${enable_pop3+set}" = set; then : 19323 enableval=$enable_pop3; case "$enableval" in 19324 no) 19325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19326 $as_echo "no" >&6; } 19327 19328 $as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h 19329 19330 CURL_DISABLE_POP3=1 19331 19332 ;; 19333 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19334 $as_echo "yes" >&6; } 19335 ;; 19336 esac 19337 else 19338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19339 $as_echo "yes" >&6; } 19340 19341 fi 19342 19343 19344 19345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5 19346 $as_echo_n "checking whether to support imap... " >&6; } 19347 # Check whether --enable-imap was given. 19348 if test "${enable_imap+set}" = set; then : 19349 enableval=$enable_imap; case "$enableval" in 19350 no) 19351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19352 $as_echo "no" >&6; } 19353 19354 $as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h 19355 19356 CURL_DISABLE_IMAP=1 19357 19358 ;; 19359 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19360 $as_echo "yes" >&6; } 19361 ;; 19362 esac 19363 else 19364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19365 $as_echo "yes" >&6; } 19366 19367 fi 19368 19369 19370 19371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5 19372 $as_echo_n "checking whether to support smb... " >&6; } 19373 # Check whether --enable-smb was given. 19374 if test "${enable_smb+set}" = set; then : 19375 enableval=$enable_smb; case "$enableval" in 19376 no) 19377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19378 $as_echo "no" >&6; } 19379 19380 $as_echo "#define CURL_DISABLE_SMB 1" >>confdefs.h 19381 19382 CURL_DISABLE_SMB=1 19383 19384 ;; 19385 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19386 $as_echo "yes" >&6; } 19387 ;; 19388 esac 19389 else 19390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19391 $as_echo "yes" >&6; } 19392 19393 fi 19394 19395 19396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5 19397 $as_echo_n "checking whether to support smtp... " >&6; } 19398 # Check whether --enable-smtp was given. 19399 if test "${enable_smtp+set}" = set; then : 19400 enableval=$enable_smtp; case "$enableval" in 19401 no) 19402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19403 $as_echo "no" >&6; } 19404 19405 $as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h 19406 19407 CURL_DISABLE_SMTP=1 19408 19409 ;; 19410 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19411 $as_echo "yes" >&6; } 19412 ;; 19413 esac 19414 else 19415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19416 $as_echo "yes" >&6; } 19417 19418 fi 19419 19420 19421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5 19422 $as_echo_n "checking whether to support gopher... " >&6; } 19423 # Check whether --enable-gopher was given. 19424 if test "${enable_gopher+set}" = set; then : 19425 enableval=$enable_gopher; case "$enableval" in 19426 no) 19427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19428 $as_echo "no" >&6; } 19429 19430 $as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h 19431 19432 CURL_DISABLE_GOPHER=1 19433 19434 ;; 19435 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19436 $as_echo "yes" >&6; } 19437 ;; 19438 esac 19439 else 19440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19441 $as_echo "yes" >&6; } 19442 19443 fi 19444 19445 19446 19447 19448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5 19449 $as_echo_n "checking whether to provide built-in manual... " >&6; } 19450 # Check whether --enable-manual was given. 19451 if test "${enable_manual+set}" = set; then : 19452 enableval=$enable_manual; case "$enableval" in 19453 no) 19454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19455 $as_echo "no" >&6; } 19456 ;; 19457 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19458 $as_echo "yes" >&6; } 19459 USE_MANUAL="1" 19460 ;; 19461 esac 19462 else 19463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19464 $as_echo "yes" >&6; } 19465 USE_MANUAL="1" 19466 19467 fi 19468 19469 19470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5 19471 $as_echo_n "checking whether to enable generation of C code... " >&6; } 19472 # Check whether --enable-libcurl_option was given. 19473 if test "${enable_libcurl_option+set}" = set; then : 19474 enableval=$enable_libcurl_option; case "$enableval" in 19475 no) 19476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19477 $as_echo "no" >&6; } 19478 19479 $as_echo "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h 19480 19481 curl_libcurl_msg="no" 19482 ;; 19483 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19484 $as_echo "yes" >&6; } 19485 ;; 19486 esac 19487 else 19488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19489 $as_echo "yes" >&6; } 19490 19491 fi 19492 19493 19494 19495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5 19496 $as_echo_n "checking whether to use libgcc... " >&6; } 19497 # Check whether --enable-libgcc was given. 19498 if test "${enable_libgcc+set}" = set; then : 19499 enableval=$enable_libgcc; case "$enableval" in 19500 yes) 19501 LIBS="-lgcc $LIBS" 19502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19503 $as_echo "yes" >&6; } 19504 ;; 19505 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19506 $as_echo "no" >&6; } 19507 ;; 19508 esac 19509 else 19510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19511 $as_echo "no" >&6; } 19512 19513 fi 19514 19515 19516 19517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5 19518 $as_echo_n "checking if X/Open network library is required... " >&6; } 19519 tst_lib_xnet_required="no" 19520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19521 /* end confdefs.h. */ 19522 19523 19524 int main (void) 19525 { 19526 #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600) 19527 return 0; 19528 #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED) 19529 return 0; 19530 #else 19531 force compilation error 19532 #endif 19533 } 19534 19535 19536 _ACEOF 19537 if ac_fn_c_try_compile "$LINENO"; then : 19538 19539 tst_lib_xnet_required="yes" 19540 LIBS="-lxnet $LIBS" 19541 19542 fi 19543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5 19545 $as_echo "$tst_lib_xnet_required" >&6; } 19546 19547 19548 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 19549 if test "x$ac_cv_func_gethostbyname" = xyes; then : 19550 HAVE_GETHOSTBYNAME="1" 19551 19552 else 19553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 19554 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 19555 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 19556 $as_echo_n "(cached) " >&6 19557 else 19558 ac_check_lib_save_LIBS=$LIBS 19559 LIBS="-lnsl $LIBS" 19560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19561 /* end confdefs.h. */ 19562 19563 19564 #ifdef __cplusplus 19565 extern "C" 19566 #endif 19567 char gethostbyname (); 19568 int main (void) 19569 { 19570 return gethostbyname (); 19571 ; 19572 return 0; 19573 } 19574 _ACEOF 19575 if ac_fn_c_try_link "$LINENO"; then : 19576 ac_cv_lib_nsl_gethostbyname=yes 19577 else 19578 ac_cv_lib_nsl_gethostbyname=no 19579 fi 19580 rm -f core conftest.err conftest.$ac_objext \ 19581 conftest$ac_exeext conftest.$ac_ext 19582 LIBS=$ac_check_lib_save_LIBS 19583 fi 19584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 19585 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 19586 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 19587 HAVE_GETHOSTBYNAME="1" 19588 LIBS="-lnsl $LIBS" 19589 19590 fi 19591 19592 19593 fi 19594 19595 19596 if test "$HAVE_GETHOSTBYNAME" != "1" 19597 then 19598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5 19599 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; } 19600 if ${ac_cv_lib_socket_gethostbyname+:} false; then : 19601 $as_echo_n "(cached) " >&6 19602 else 19603 ac_check_lib_save_LIBS=$LIBS 19604 LIBS="-lsocket $LIBS" 19605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19606 /* end confdefs.h. */ 19607 19608 19609 #ifdef __cplusplus 19610 extern "C" 19611 #endif 19612 char gethostbyname (); 19613 int main (void) 19614 { 19615 return gethostbyname (); 19616 ; 19617 return 0; 19618 } 19619 _ACEOF 19620 if ac_fn_c_try_link "$LINENO"; then : 19621 ac_cv_lib_socket_gethostbyname=yes 19622 else 19623 ac_cv_lib_socket_gethostbyname=no 19624 fi 19625 rm -f core conftest.err conftest.$ac_objext \ 19626 conftest$ac_exeext conftest.$ac_ext 19627 LIBS=$ac_check_lib_save_LIBS 19628 fi 19629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5 19630 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; } 19631 if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then : 19632 HAVE_GETHOSTBYNAME="1" 19633 LIBS="-lsocket $LIBS" 19634 19635 fi 19636 19637 fi 19638 19639 if test "$HAVE_GETHOSTBYNAME" != "1" 19640 then 19641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5 19642 $as_echo_n "checking for gethostbyname in -lwatt... " >&6; } 19643 if ${ac_cv_lib_watt_gethostbyname+:} false; then : 19644 $as_echo_n "(cached) " >&6 19645 else 19646 ac_check_lib_save_LIBS=$LIBS 19647 LIBS="-lwatt $LIBS" 19648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19649 /* end confdefs.h. */ 19650 19651 19652 #ifdef __cplusplus 19653 extern "C" 19654 #endif 19655 char gethostbyname (); 19656 int main (void) 19657 { 19658 return gethostbyname (); 19659 ; 19660 return 0; 19661 } 19662 _ACEOF 19663 if ac_fn_c_try_link "$LINENO"; then : 19664 ac_cv_lib_watt_gethostbyname=yes 19665 else 19666 ac_cv_lib_watt_gethostbyname=no 19667 fi 19668 rm -f core conftest.err conftest.$ac_objext \ 19669 conftest$ac_exeext conftest.$ac_ext 19670 LIBS=$ac_check_lib_save_LIBS 19671 fi 19672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5 19673 $as_echo "$ac_cv_lib_watt_gethostbyname" >&6; } 19674 if test "x$ac_cv_lib_watt_gethostbyname" = xyes; then : 19675 HAVE_GETHOSTBYNAME="1" 19676 CPPFLAGS="-I/dev/env/WATT_ROOT/inc" 19677 LDFLAGS="-L/dev/env/WATT_ROOT/lib" 19678 LIBS="-lwatt $LIBS" 19679 19680 fi 19681 19682 fi 19683 19684 if test "$HAVE_GETHOSTBYNAME" != "1" 19685 then 19686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5 19687 $as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; } 19688 my_ac_save_LIBS=$LIBS 19689 LIBS="-lnsl -lsocket $LIBS" 19690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19691 /* end confdefs.h. */ 19692 19693 19694 19695 int main (void) 19696 { 19697 19698 gethostbyname(); 19699 19700 ; 19701 return 0; 19702 } 19703 19704 _ACEOF 19705 if ac_fn_c_try_link "$LINENO"; then : 19706 19707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19708 $as_echo "yes" >&6; } 19709 HAVE_GETHOSTBYNAME="1" 19710 19711 else 19712 19713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19714 $as_echo "no" >&6; } 19715 LIBS=$my_ac_save_LIBS 19716 19717 fi 19718 rm -f core conftest.err conftest.$ac_objext \ 19719 conftest$ac_exeext conftest.$ac_ext 19720 fi 19721 19722 if test "$HAVE_GETHOSTBYNAME" != "1" 19723 then 19724 if test "$curl_cv_header_windows_h" = "yes"; then 19725 if test "$curl_cv_header_winsock_h" = "yes"; then 19726 case $host in 19727 *-*-mingw32ce*) 19728 winsock_LIB="-lwinsock" 19729 ;; 19730 *) 19731 winsock_LIB="-lwsock32" 19732 ;; 19733 esac 19734 fi 19735 if test "$curl_cv_header_winsock2_h" = "yes"; then 19736 winsock_LIB="-lws2_32" 19737 fi 19738 if test ! -z "$winsock_LIB"; then 19739 my_ac_save_LIBS=$LIBS 19740 LIBS="$winsock_LIB $LIBS" 19741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5 19742 $as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; } 19743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19744 /* end confdefs.h. */ 19745 19746 19747 #ifdef HAVE_WINDOWS_H 19748 #ifndef WIN32_LEAN_AND_MEAN 19749 #define WIN32_LEAN_AND_MEAN 19750 #endif 19751 #include <windows.h> 19752 #ifdef HAVE_WINSOCK2_H 19753 #include <winsock2.h> 19754 #else 19755 #ifdef HAVE_WINSOCK_H 19756 #include <winsock.h> 19757 #endif 19758 #endif 19759 #endif 19760 19761 int main (void) 19762 { 19763 19764 gethostbyname("www.dummysite.com"); 19765 19766 ; 19767 return 0; 19768 } 19769 19770 _ACEOF 19771 if ac_fn_c_try_link "$LINENO"; then : 19772 19773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19774 $as_echo "yes" >&6; } 19775 HAVE_GETHOSTBYNAME="1" 19776 19777 else 19778 19779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19780 $as_echo "no" >&6; } 19781 winsock_LIB="" 19782 LIBS=$my_ac_save_LIBS 19783 19784 fi 19785 rm -f core conftest.err conftest.$ac_objext \ 19786 conftest$ac_exeext conftest.$ac_ext 19787 fi 19788 fi 19789 fi 19790 19791 if test "$HAVE_GETHOSTBYNAME" != "1" 19792 then 19793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5 19794 $as_echo_n "checking for gethostbyname for Minix 3... " >&6; } 19795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19796 /* end confdefs.h. */ 19797 19798 19799 /* Older Minix versions may need <net/gen/netdb.h> here instead */ 19800 #include <netdb.h> 19801 19802 int main (void) 19803 { 19804 19805 gethostbyname("www.dummysite.com"); 19806 19807 ; 19808 return 0; 19809 } 19810 19811 _ACEOF 19812 if ac_fn_c_try_link "$LINENO"; then : 19813 19814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19815 $as_echo "yes" >&6; } 19816 HAVE_GETHOSTBYNAME="1" 19817 19818 else 19819 19820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19821 $as_echo "no" >&6; } 19822 19823 fi 19824 rm -f core conftest.err conftest.$ac_objext \ 19825 conftest$ac_exeext conftest.$ac_ext 19826 fi 19827 19828 if test "$HAVE_GETHOSTBYNAME" != "1" 19829 then 19830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5 19831 $as_echo_n "checking for gethostbyname for eCos... " >&6; } 19832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19833 /* end confdefs.h. */ 19834 19835 19836 #include <stdio.h> 19837 #include <netdb.h> 19838 19839 int main (void) 19840 { 19841 19842 gethostbyname("www.dummysite.com"); 19843 19844 ; 19845 return 0; 19846 } 19847 19848 _ACEOF 19849 if ac_fn_c_try_link "$LINENO"; then : 19850 19851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19852 $as_echo "yes" >&6; } 19853 HAVE_GETHOSTBYNAME="1" 19854 19855 else 19856 19857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19858 $as_echo "no" >&6; } 19859 19860 fi 19861 rm -f core conftest.err conftest.$ac_objext \ 19862 conftest$ac_exeext conftest.$ac_ext 19863 fi 19864 19865 if test "$HAVE_GETHOSTBYNAME" != "1" 19866 then 19867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for AmigaOS bsdsocket.library" >&5 19868 $as_echo_n "checking for gethostbyname for AmigaOS bsdsocket.library... " >&6; } 19869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19870 /* end confdefs.h. */ 19871 19872 19873 #include <proto/bsdsocket.h> 19874 struct Library *SocketBase = NULL; 19875 19876 int main (void) 19877 { 19878 19879 gethostbyname("www.dummysite.com"); 19880 19881 ; 19882 return 0; 19883 } 19884 19885 _ACEOF 19886 if ac_fn_c_try_link "$LINENO"; then : 19887 19888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19889 $as_echo "yes" >&6; } 19890 HAVE_GETHOSTBYNAME="1" 19891 HAVE_PROTO_BSDSOCKET_H="1" 19892 19893 $as_echo "#define HAVE_PROTO_BSDSOCKET_H 1" >>confdefs.h 19894 19895 HAVE_PROTO_BSDSOCKET_H=1 19896 19897 19898 else 19899 19900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19901 $as_echo "no" >&6; } 19902 19903 fi 19904 rm -f core conftest.err conftest.$ac_objext \ 19905 conftest$ac_exeext conftest.$ac_ext 19906 fi 19907 19908 if test "$HAVE_GETHOSTBYNAME" != "1" 19909 then 19910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5 19911 $as_echo_n "checking for gethostbyname in -lnetwork... " >&6; } 19912 if ${ac_cv_lib_network_gethostbyname+:} false; then : 19913 $as_echo_n "(cached) " >&6 19914 else 19915 ac_check_lib_save_LIBS=$LIBS 19916 LIBS="-lnetwork $LIBS" 19917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19918 /* end confdefs.h. */ 19919 19920 19921 #ifdef __cplusplus 19922 extern "C" 19923 #endif 19924 char gethostbyname (); 19925 int main (void) 19926 { 19927 return gethostbyname (); 19928 ; 19929 return 0; 19930 } 19931 _ACEOF 19932 if ac_fn_c_try_link "$LINENO"; then : 19933 ac_cv_lib_network_gethostbyname=yes 19934 else 19935 ac_cv_lib_network_gethostbyname=no 19936 fi 19937 rm -f core conftest.err conftest.$ac_objext \ 19938 conftest$ac_exeext conftest.$ac_ext 19939 LIBS=$ac_check_lib_save_LIBS 19940 fi 19941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5 19942 $as_echo "$ac_cv_lib_network_gethostbyname" >&6; } 19943 if test "x$ac_cv_lib_network_gethostbyname" = xyes; then : 19944 HAVE_GETHOSTBYNAME="1" 19945 LIBS="-lnetwork $LIBS" 19946 19947 fi 19948 19949 fi 19950 19951 if test "$HAVE_GETHOSTBYNAME" != "1" 19952 then 19953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5 19954 $as_echo_n "checking for gethostbyname in -lnet... " >&6; } 19955 if ${ac_cv_lib_net_gethostbyname+:} false; then : 19956 $as_echo_n "(cached) " >&6 19957 else 19958 ac_check_lib_save_LIBS=$LIBS 19959 LIBS="-lnet $LIBS" 19960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19961 /* end confdefs.h. */ 19962 19963 19964 #ifdef __cplusplus 19965 extern "C" 19966 #endif 19967 char gethostbyname (); 19968 int main (void) 19969 { 19970 return gethostbyname (); 19971 ; 19972 return 0; 19973 } 19974 _ACEOF 19975 if ac_fn_c_try_link "$LINENO"; then : 19976 ac_cv_lib_net_gethostbyname=yes 19977 else 19978 ac_cv_lib_net_gethostbyname=no 19979 fi 19980 rm -f core conftest.err conftest.$ac_objext \ 19981 conftest$ac_exeext conftest.$ac_ext 19982 LIBS=$ac_check_lib_save_LIBS 19983 fi 19984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5 19985 $as_echo "$ac_cv_lib_net_gethostbyname" >&6; } 19986 if test "x$ac_cv_lib_net_gethostbyname" = xyes; then : 19987 HAVE_GETHOSTBYNAME="1" 19988 LIBS="-lnet $LIBS" 19989 19990 fi 19991 19992 fi 19993 19994 19995 if test "$HAVE_GETHOSTBYNAME" != "1"; then 19996 as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5 19997 fi 19998 19999 20000 curl_includes_winsock2="\ 20001 /* includes start */ 20002 #ifdef HAVE_WINDOWS_H 20003 # ifndef WIN32_LEAN_AND_MEAN 20004 # define WIN32_LEAN_AND_MEAN 20005 # endif 20006 # include <windows.h> 20007 # ifdef HAVE_WINSOCK2_H 20008 # include <winsock2.h> 20009 # else 20010 # ifdef HAVE_WINSOCK_H 20011 # include <winsock.h> 20012 # endif 20013 # endif 20014 #endif 20015 /* includes end */" 20016 20017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5 20018 $as_echo_n "checking for windows.h... " >&6; } 20019 if ${curl_cv_header_windows_h+:} false; then : 20020 $as_echo_n "(cached) " >&6 20021 else 20022 20023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20024 /* end confdefs.h. */ 20025 20026 20027 #undef inline 20028 #ifndef WIN32_LEAN_AND_MEAN 20029 #define WIN32_LEAN_AND_MEAN 20030 #endif 20031 #include <windows.h> 20032 20033 int main (void) 20034 { 20035 20036 #if defined(__CYGWIN__) || defined(__CEGCC__) 20037 HAVE_WINDOWS_H shall not be defined. 20038 #else 20039 int dummy=2*WINVER; 20040 #endif 20041 20042 ; 20043 return 0; 20044 } 20045 20046 _ACEOF 20047 if ac_fn_c_try_compile "$LINENO"; then : 20048 20049 curl_cv_header_windows_h="yes" 20050 20051 else 20052 20053 curl_cv_header_windows_h="no" 20054 20055 fi 20056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20057 20058 fi 20059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5 20060 $as_echo "$curl_cv_header_windows_h" >&6; } 20061 case "$curl_cv_header_windows_h" in 20062 yes) 20063 20064 cat >>confdefs.h <<_ACEOF 20065 #define HAVE_WINDOWS_H 1 20066 _ACEOF 20067 20068 ;; 20069 esac 20070 20071 20072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5 20073 $as_echo_n "checking for winsock.h... " >&6; } 20074 if ${curl_cv_header_winsock_h+:} false; then : 20075 $as_echo_n "(cached) " >&6 20076 else 20077 20078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20079 /* end confdefs.h. */ 20080 20081 20082 #undef inline 20083 #ifndef WIN32_LEAN_AND_MEAN 20084 #define WIN32_LEAN_AND_MEAN 20085 #endif 20086 #include <windows.h> 20087 #include <winsock.h> 20088 20089 int main (void) 20090 { 20091 20092 #if defined(__CYGWIN__) || defined(__CEGCC__) 20093 HAVE_WINSOCK_H shall not be defined. 20094 #else 20095 int dummy=WSACleanup(); 20096 #endif 20097 20098 ; 20099 return 0; 20100 } 20101 20102 _ACEOF 20103 if ac_fn_c_try_compile "$LINENO"; then : 20104 20105 curl_cv_header_winsock_h="yes" 20106 20107 else 20108 20109 curl_cv_header_winsock_h="no" 20110 20111 fi 20112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20113 20114 fi 20115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5 20116 $as_echo "$curl_cv_header_winsock_h" >&6; } 20117 case "$curl_cv_header_winsock_h" in 20118 yes) 20119 20120 cat >>confdefs.h <<_ACEOF 20121 #define HAVE_WINSOCK_H 1 20122 _ACEOF 20123 20124 ;; 20125 esac 20126 20127 20128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5 20129 $as_echo_n "checking for winsock2.h... " >&6; } 20130 if ${curl_cv_header_winsock2_h+:} false; then : 20131 $as_echo_n "(cached) " >&6 20132 else 20133 20134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20135 /* end confdefs.h. */ 20136 20137 20138 #undef inline 20139 #ifndef WIN32_LEAN_AND_MEAN 20140 #define WIN32_LEAN_AND_MEAN 20141 #endif 20142 #include <windows.h> 20143 #include <winsock2.h> 20144 20145 int main (void) 20146 { 20147 20148 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__) 20149 HAVE_WINSOCK2_H shall not be defined. 20150 #else 20151 int dummy=2*IPPROTO_ESP; 20152 #endif 20153 20154 ; 20155 return 0; 20156 } 20157 20158 _ACEOF 20159 if ac_fn_c_try_compile "$LINENO"; then : 20160 20161 curl_cv_header_winsock2_h="yes" 20162 20163 else 20164 20165 curl_cv_header_winsock2_h="no" 20166 20167 fi 20168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20169 20170 fi 20171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5 20172 $as_echo "$curl_cv_header_winsock2_h" >&6; } 20173 case "$curl_cv_header_winsock2_h" in 20174 yes) 20175 20176 cat >>confdefs.h <<_ACEOF 20177 #define HAVE_WINSOCK2_H 1 20178 _ACEOF 20179 20180 ;; 20181 esac 20182 20183 20184 20185 curl_includes_bsdsocket="\ 20186 /* includes start */ 20187 #ifdef HAVE_PROTO_BSDSOCKET_H 20188 # include <proto/bsdsocket.h> 20189 struct Library *SocketBase = NULL; 20190 #endif 20191 /* includes end */" 20192 for ac_header in proto/bsdsocket.h 20193 do : 20194 ac_fn_c_check_header_compile "$LINENO" "proto/bsdsocket.h" "ac_cv_header_proto_bsdsocket_h" " $curl_includes_bsdsocket 20195 " 20196 if test "x$ac_cv_header_proto_bsdsocket_h" = xyes; then : 20197 cat >>confdefs.h <<_ACEOF 20198 #define HAVE_PROTO_BSDSOCKET_H 1 20199 _ACEOF 20200 20201 fi 20202 20203 done 20204 20205 20206 20207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5 20208 $as_echo_n "checking for connect in libraries... " >&6; } 20209 tst_connect_save_LIBS="$LIBS" 20210 tst_connect_need_LIBS="unknown" 20211 for tst_lib in '' '-lsocket' ; do 20212 if test "$tst_connect_need_LIBS" = "unknown"; then 20213 LIBS="$tst_lib $tst_connect_save_LIBS" 20214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20215 /* end confdefs.h. */ 20216 20217 20218 $curl_includes_winsock2 20219 $curl_includes_bsdsocket 20220 #if !defined(HAVE_WINDOWS_H) && !defined(HAVE_PROTO_BSDSOCKET_H) 20221 int connect(int, void*, int); 20222 #endif 20223 20224 int main (void) 20225 { 20226 20227 if(0 != connect(0, 0, 0)) 20228 return 1; 20229 20230 ; 20231 return 0; 20232 } 20233 20234 _ACEOF 20235 if ac_fn_c_try_link "$LINENO"; then : 20236 20237 tst_connect_need_LIBS="$tst_lib" 20238 20239 fi 20240 rm -f core conftest.err conftest.$ac_objext \ 20241 conftest$ac_exeext conftest.$ac_ext 20242 fi 20243 done 20244 LIBS="$tst_connect_save_LIBS" 20245 # 20246 case X-"$tst_connect_need_LIBS" in 20247 X-unknown) 20248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5 20249 $as_echo "cannot find connect" >&6; } 20250 as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5 20251 ;; 20252 X-) 20253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20254 $as_echo "yes" >&6; } 20255 ;; 20256 *) 20257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5 20258 $as_echo "$tst_connect_need_LIBS" >&6; } 20259 LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS" 20260 ;; 20261 esac 20262 20263 20264 CURL_NETWORK_LIBS=$LIBS 20265 20266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 20267 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 20268 if ${ac_cv_header_time+:} false; then : 20269 $as_echo_n "(cached) " >&6 20270 else 20271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20272 /* end confdefs.h. */ 20273 #include <sys/types.h> 20274 #include <sys/time.h> 20275 #include <time.h> 20276 20277 int main (void) 20278 { 20279 if ((struct tm *) 0) 20280 return 0; 20281 ; 20282 return 0; 20283 } 20284 _ACEOF 20285 if ac_fn_c_try_compile "$LINENO"; then : 20286 ac_cv_header_time=yes 20287 else 20288 ac_cv_header_time=no 20289 fi 20290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20291 fi 20292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 20293 $as_echo "$ac_cv_header_time" >&6; } 20294 if test $ac_cv_header_time = yes; then 20295 20296 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 20297 20298 fi 20299 20300 20301 for ac_header in sys/types.h sys/time.h time.h 20302 do : 20303 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20304 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 20305 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20306 cat >>confdefs.h <<_ACEOF 20307 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20308 _ACEOF 20309 20310 fi 20311 20312 done 20313 20314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5 20315 $as_echo_n "checking for monotonic clock_gettime... " >&6; } 20316 # 20317 if test "x$dontwant_rt" = "xno" ; then 20318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20319 /* end confdefs.h. */ 20320 20321 20322 #ifdef HAVE_SYS_TYPES_H 20323 #include <sys/types.h> 20324 #endif 20325 #ifdef HAVE_SYS_TIME_H 20326 #include <sys/time.h> 20327 #ifdef TIME_WITH_SYS_TIME 20328 #include <time.h> 20329 #endif 20330 #else 20331 #ifdef HAVE_TIME_H 20332 #include <time.h> 20333 #endif 20334 #endif 20335 20336 int main (void) 20337 { 20338 20339 struct timespec ts; 20340 (void)clock_gettime(CLOCK_MONOTONIC, &ts); 20341 20342 ; 20343 return 0; 20344 } 20345 20346 _ACEOF 20347 if ac_fn_c_try_compile "$LINENO"; then : 20348 20349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20350 $as_echo "yes" >&6; } 20351 curl_func_clock_gettime="yes" 20352 20353 else 20354 20355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20356 $as_echo "no" >&6; } 20357 curl_func_clock_gettime="no" 20358 20359 fi 20360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20361 fi 20362 20363 20364 # 20365 if test "$curl_func_clock_gettime" = "yes"; then 20366 # 20367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5 20368 $as_echo_n "checking for clock_gettime in libraries... " >&6; } 20369 # 20370 curl_cv_save_LIBS="$LIBS" 20371 curl_cv_gclk_LIBS="unknown" 20372 # 20373 for x_xlibs in '' '-lrt' '-lposix4' ; do 20374 if test "$curl_cv_gclk_LIBS" = "unknown"; then 20375 if test -z "$x_xlibs"; then 20376 LIBS="$curl_cv_save_LIBS" 20377 else 20378 LIBS="$x_xlibs $curl_cv_save_LIBS" 20379 fi 20380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20381 /* end confdefs.h. */ 20382 20383 20384 #ifdef HAVE_SYS_TYPES_H 20385 #include <sys/types.h> 20386 #endif 20387 #ifdef HAVE_SYS_TIME_H 20388 #include <sys/time.h> 20389 #ifdef TIME_WITH_SYS_TIME 20390 #include <time.h> 20391 #endif 20392 #else 20393 #ifdef HAVE_TIME_H 20394 #include <time.h> 20395 #endif 20396 #endif 20397 20398 int main (void) 20399 { 20400 20401 struct timespec ts; 20402 (void)clock_gettime(CLOCK_MONOTONIC, &ts); 20403 20404 ; 20405 return 0; 20406 } 20407 20408 _ACEOF 20409 if ac_fn_c_try_link "$LINENO"; then : 20410 20411 curl_cv_gclk_LIBS="$x_xlibs" 20412 20413 fi 20414 rm -f core conftest.err conftest.$ac_objext \ 20415 conftest$ac_exeext conftest.$ac_ext 20416 fi 20417 done 20418 # 20419 LIBS="$curl_cv_save_LIBS" 20420 # 20421 case X-"$curl_cv_gclk_LIBS" in 20422 X-unknown) 20423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5 20424 $as_echo "cannot find clock_gettime" >&6; } 20425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5 20426 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;} 20427 curl_func_clock_gettime="no" 20428 ;; 20429 X-) 20430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5 20431 $as_echo "no additional lib required" >&6; } 20432 curl_func_clock_gettime="yes" 20433 ;; 20434 *) 20435 if test -z "$curl_cv_save_LIBS"; then 20436 LIBS="$curl_cv_gclk_LIBS" 20437 else 20438 LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS" 20439 fi 20440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5 20441 $as_echo "$curl_cv_gclk_LIBS" >&6; } 20442 curl_func_clock_gettime="yes" 20443 ;; 20444 esac 20445 # 20446 if test "x$cross_compiling" != "xyes" && 20447 test "$curl_func_clock_gettime" = "yes"; then 20448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5 20449 $as_echo_n "checking if monotonic clock_gettime works... " >&6; } 20450 20451 20452 old=$LD_LIBRARY_PATH 20453 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 20454 export LD_LIBRARY_PATH 20455 if test "$cross_compiling" = yes; then : 20456 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20458 as_fn_error $? "cannot run test program while cross compiling 20459 See \`config.log' for more details" "$LINENO" 5; } 20460 else 20461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20462 /* end confdefs.h. */ 20463 20464 20465 #ifdef HAVE_STDLIB_H 20466 #include <stdlib.h> 20467 #endif 20468 #ifdef HAVE_SYS_TYPES_H 20469 #include <sys/types.h> 20470 #endif 20471 #ifdef HAVE_SYS_TIME_H 20472 #include <sys/time.h> 20473 #ifdef TIME_WITH_SYS_TIME 20474 #include <time.h> 20475 #endif 20476 #else 20477 #ifdef HAVE_TIME_H 20478 #include <time.h> 20479 #endif 20480 #endif 20481 20482 int main (void) 20483 { 20484 20485 struct timespec ts; 20486 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts)) 20487 exit(0); 20488 else 20489 exit(1); 20490 20491 ; 20492 return 0; 20493 } 20494 20495 _ACEOF 20496 if ac_fn_c_try_run "$LINENO"; then : 20497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20498 $as_echo "yes" >&6; } 20499 20500 else 20501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20502 $as_echo "no" >&6; } 20503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5 20504 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;} 20505 curl_func_clock_gettime="no" 20506 LIBS="$curl_cv_save_LIBS" 20507 20508 fi 20509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20510 conftest.$ac_objext conftest.beam conftest.$ac_ext 20511 fi 20512 20513 LD_LIBRARY_PATH=$old # restore 20514 20515 fi 20516 # 20517 case "$curl_func_clock_gettime" in 20518 yes) 20519 20520 cat >>confdefs.h <<_ACEOF 20521 #define HAVE_CLOCK_GETTIME_MONOTONIC 1 20522 _ACEOF 20523 20524 ;; 20525 esac 20526 # 20527 fi 20528 # 20529 20530 20531 CURL_NETWORK_AND_TIME_LIBS=$LIBS 20532 20533 20534 20535 clean_CPPFLAGS=$CPPFLAGS 20536 clean_LDFLAGS=$LDFLAGS 20537 clean_LIBS=$LIBS 20538 ZLIB_LIBS="" 20539 20540 # Check whether --with-zlib was given. 20541 if test "${with_zlib+set}" = set; then : 20542 withval=$with_zlib; OPT_ZLIB="$withval" 20543 fi 20544 20545 20546 if test "$OPT_ZLIB" = "no" ; then 20547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5 20548 $as_echo "$as_me: WARNING: zlib disabled" >&2;} 20549 else 20550 if test "$OPT_ZLIB" = "yes" ; then 20551 OPT_ZLIB="" 20552 fi 20553 20554 if test -z "$OPT_ZLIB" ; then 20555 20556 if test -n "$PKG_CONFIG"; then 20557 PKGCONFIG="$PKG_CONFIG" 20558 else 20559 if test -n "$ac_tool_prefix"; then 20560 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 20561 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 20562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20563 $as_echo_n "checking for $ac_word... " >&6; } 20564 if ${ac_cv_path_PKGCONFIG+:} false; then : 20565 $as_echo_n "(cached) " >&6 20566 else 20567 case $PKGCONFIG in 20568 [\\/]* | ?:[\\/]*) 20569 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 20570 ;; 20571 *) 20572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20573 as_dummy="$PATH:/usr/bin:/usr/local/bin" 20574 for as_dir in $as_dummy 20575 do 20576 IFS=$as_save_IFS 20577 test -z "$as_dir" && as_dir=. 20578 for ac_exec_ext in '' $ac_executable_extensions; do 20579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20580 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 20581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20582 break 2 20583 fi 20584 done 20585 done 20586 IFS=$as_save_IFS 20587 20588 ;; 20589 esac 20590 fi 20591 PKGCONFIG=$ac_cv_path_PKGCONFIG 20592 if test -n "$PKGCONFIG"; then 20593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 20594 $as_echo "$PKGCONFIG" >&6; } 20595 else 20596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20597 $as_echo "no" >&6; } 20598 fi 20599 20600 20601 fi 20602 if test -z "$ac_cv_path_PKGCONFIG"; then 20603 ac_pt_PKGCONFIG=$PKGCONFIG 20604 # Extract the first word of "pkg-config", so it can be a program name with args. 20605 set dummy pkg-config; ac_word=$2 20606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20607 $as_echo_n "checking for $ac_word... " >&6; } 20608 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : 20609 $as_echo_n "(cached) " >&6 20610 else 20611 case $ac_pt_PKGCONFIG in 20612 [\\/]* | ?:[\\/]*) 20613 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 20614 ;; 20615 *) 20616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20617 as_dummy="$PATH:/usr/bin:/usr/local/bin" 20618 for as_dir in $as_dummy 20619 do 20620 IFS=$as_save_IFS 20621 test -z "$as_dir" && as_dir=. 20622 for ac_exec_ext in '' $ac_executable_extensions; do 20623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20624 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 20625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20626 break 2 20627 fi 20628 done 20629 done 20630 IFS=$as_save_IFS 20631 20632 ;; 20633 esac 20634 fi 20635 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 20636 if test -n "$ac_pt_PKGCONFIG"; then 20637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 20638 $as_echo "$ac_pt_PKGCONFIG" >&6; } 20639 else 20640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20641 $as_echo "no" >&6; } 20642 fi 20643 20644 if test "x$ac_pt_PKGCONFIG" = x; then 20645 PKGCONFIG="no" 20646 else 20647 case $cross_compiling:$ac_tool_warned in 20648 yes:) 20649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 20650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20651 ac_tool_warned=yes ;; 20652 esac 20653 PKGCONFIG=$ac_pt_PKGCONFIG 20654 fi 20655 else 20656 PKGCONFIG="$ac_cv_path_PKGCONFIG" 20657 fi 20658 20659 fi 20660 20661 if test "x$PKGCONFIG" != "xno"; then 20662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5 20663 $as_echo_n "checking for zlib options with pkg-config... " >&6; } 20664 itexists=` 20665 if test -n ""; then 20666 PKG_CONFIG_LIBDIR="" 20667 export PKG_CONFIG_LIBDIR 20668 fi 20669 $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1` 20670 20671 if test -z "$itexists"; then 20672 PKGCONFIG="no" 20673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20674 $as_echo "no" >&6; } 20675 else 20676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 20677 $as_echo "found" >&6; } 20678 fi 20679 fi 20680 20681 20682 if test "$PKGCONFIG" != "no" ; then 20683 LIBS="`$PKGCONFIG --libs-only-l zlib` $LIBS" 20684 LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`" 20685 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags-only-I zlib`" 20686 OPT_ZLIB="" 20687 HAVE_LIBZ="1" 20688 fi 20689 20690 if test -z "$HAVE_LIBZ"; then 20691 20692 20693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5 20694 $as_echo_n "checking for inflateEnd in -lz... " >&6; } 20695 if ${ac_cv_lib_z_inflateEnd+:} false; then : 20696 $as_echo_n "(cached) " >&6 20697 else 20698 ac_check_lib_save_LIBS=$LIBS 20699 LIBS="-lz $LIBS" 20700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20701 /* end confdefs.h. */ 20702 20703 20704 #ifdef __cplusplus 20705 extern "C" 20706 #endif 20707 char inflateEnd (); 20708 int main (void) 20709 { 20710 return inflateEnd (); 20711 ; 20712 return 0; 20713 } 20714 _ACEOF 20715 if ac_fn_c_try_link "$LINENO"; then : 20716 ac_cv_lib_z_inflateEnd=yes 20717 else 20718 ac_cv_lib_z_inflateEnd=no 20719 fi 20720 rm -f core conftest.err conftest.$ac_objext \ 20721 conftest$ac_exeext conftest.$ac_ext 20722 LIBS=$ac_check_lib_save_LIBS 20723 fi 20724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5 20725 $as_echo "$ac_cv_lib_z_inflateEnd" >&6; } 20726 if test "x$ac_cv_lib_z_inflateEnd" = xyes; then : 20727 HAVE_LIBZ="1" 20728 LIBS="-lz $LIBS" 20729 else 20730 OPT_ZLIB="/usr/local" 20731 fi 20732 20733 fi 20734 fi 20735 20736 if test -n "$OPT_ZLIB"; then 20737 CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include" 20738 LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff" 20739 fi 20740 20741 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 20742 if test "x$ac_cv_header_zlib_h" = xyes; then : 20743 20744 HAVE_ZLIB_H="1" 20745 if test "$HAVE_LIBZ" != "1"; then 20746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5 20747 $as_echo_n "checking for gzread in -lz... " >&6; } 20748 if ${ac_cv_lib_z_gzread+:} false; then : 20749 $as_echo_n "(cached) " >&6 20750 else 20751 ac_check_lib_save_LIBS=$LIBS 20752 LIBS="-lz $LIBS" 20753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20754 /* end confdefs.h. */ 20755 20756 20757 #ifdef __cplusplus 20758 extern "C" 20759 #endif 20760 char gzread (); 20761 int main (void) 20762 { 20763 return gzread (); 20764 ; 20765 return 0; 20766 } 20767 _ACEOF 20768 if ac_fn_c_try_link "$LINENO"; then : 20769 ac_cv_lib_z_gzread=yes 20770 else 20771 ac_cv_lib_z_gzread=no 20772 fi 20773 rm -f core conftest.err conftest.$ac_objext \ 20774 conftest$ac_exeext conftest.$ac_ext 20775 LIBS=$ac_check_lib_save_LIBS 20776 fi 20777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5 20778 $as_echo "$ac_cv_lib_z_gzread" >&6; } 20779 if test "x$ac_cv_lib_z_gzread" = xyes; then : 20780 20781 HAVE_LIBZ="1" 20782 LIBS="-lz $LIBS" 20783 20784 else 20785 CPPFLAGS=$clean_CPPFLAGS 20786 LDFLAGS=$clean_LDFLAGS 20787 fi 20788 20789 fi 20790 20791 else 20792 20793 CPPFLAGS=$clean_CPPFLAGS 20794 LDFLAGS=$clean_LDFLAGS 20795 20796 fi 20797 20798 20799 20800 if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1" 20801 then 20802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5 20803 $as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;} 20804 HAVE_LIBZ="" 20805 CPPFLAGS=$clean_CPPFLAGS 20806 LDFLAGS=$clean_LDFLAGS 20807 LIBS=$clean_LIBS 20808 elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1" 20809 then 20810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5 20811 $as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;} 20812 CPPFLAGS=$clean_CPPFLAGS 20813 LDFLAGS=$clean_LDFLAGS 20814 LIBS=$clean_LIBS 20815 elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1" 20816 then 20817 20818 20819 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h 20820 20821 20822 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h 20823 20824 20825 ZLIB_LIBS="-lz" 20826 LIBS="-lz $clean_LIBS" 20827 20828 AMFIXLIB="1" 20829 { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5 20830 $as_echo "$as_me: found both libz and libz.h header" >&6;} 20831 curl_zlib_msg="enabled" 20832 fi 20833 fi 20834 20835 if test x"$AMFIXLIB" = x1; then 20836 HAVE_LIBZ_TRUE= 20837 HAVE_LIBZ_FALSE='#' 20838 else 20839 HAVE_LIBZ_TRUE='#' 20840 HAVE_LIBZ_FALSE= 20841 fi 20842 20843 20844 20845 20846 20847 OPT_BROTLI=off 20848 20849 # Check whether --with-brotli was given. 20850 if test "${with_brotli+set}" = set; then : 20851 withval=$with_brotli; OPT_BROTLI=$withval 20852 fi 20853 20854 20855 if test X"$OPT_BROTLI" != Xno; then 20856 CLEANLDFLAGS="$LDFLAGS" 20857 CLEANCPPFLAGS="$CPPFLAGS" 20858 CLEANLIBS="$LIBS" 20859 20860 case "$OPT_BROTLI" in 20861 yes) 20862 20863 if test -n "$PKG_CONFIG"; then 20864 PKGCONFIG="$PKG_CONFIG" 20865 else 20866 if test -n "$ac_tool_prefix"; then 20867 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 20868 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 20869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20870 $as_echo_n "checking for $ac_word... " >&6; } 20871 if ${ac_cv_path_PKGCONFIG+:} false; then : 20872 $as_echo_n "(cached) " >&6 20873 else 20874 case $PKGCONFIG in 20875 [\\/]* | ?:[\\/]*) 20876 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 20877 ;; 20878 *) 20879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20880 as_dummy="$PATH:/usr/bin:/usr/local/bin" 20881 for as_dir in $as_dummy 20882 do 20883 IFS=$as_save_IFS 20884 test -z "$as_dir" && as_dir=. 20885 for ac_exec_ext in '' $ac_executable_extensions; do 20886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20887 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 20888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20889 break 2 20890 fi 20891 done 20892 done 20893 IFS=$as_save_IFS 20894 20895 ;; 20896 esac 20897 fi 20898 PKGCONFIG=$ac_cv_path_PKGCONFIG 20899 if test -n "$PKGCONFIG"; then 20900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 20901 $as_echo "$PKGCONFIG" >&6; } 20902 else 20903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20904 $as_echo "no" >&6; } 20905 fi 20906 20907 20908 fi 20909 if test -z "$ac_cv_path_PKGCONFIG"; then 20910 ac_pt_PKGCONFIG=$PKGCONFIG 20911 # Extract the first word of "pkg-config", so it can be a program name with args. 20912 set dummy pkg-config; ac_word=$2 20913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20914 $as_echo_n "checking for $ac_word... " >&6; } 20915 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : 20916 $as_echo_n "(cached) " >&6 20917 else 20918 case $ac_pt_PKGCONFIG in 20919 [\\/]* | ?:[\\/]*) 20920 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 20921 ;; 20922 *) 20923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20924 as_dummy="$PATH:/usr/bin:/usr/local/bin" 20925 for as_dir in $as_dummy 20926 do 20927 IFS=$as_save_IFS 20928 test -z "$as_dir" && as_dir=. 20929 for ac_exec_ext in '' $ac_executable_extensions; do 20930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20931 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 20932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20933 break 2 20934 fi 20935 done 20936 done 20937 IFS=$as_save_IFS 20938 20939 ;; 20940 esac 20941 fi 20942 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 20943 if test -n "$ac_pt_PKGCONFIG"; then 20944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 20945 $as_echo "$ac_pt_PKGCONFIG" >&6; } 20946 else 20947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20948 $as_echo "no" >&6; } 20949 fi 20950 20951 if test "x$ac_pt_PKGCONFIG" = x; then 20952 PKGCONFIG="no" 20953 else 20954 case $cross_compiling:$ac_tool_warned in 20955 yes:) 20956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 20957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20958 ac_tool_warned=yes ;; 20959 esac 20960 PKGCONFIG=$ac_pt_PKGCONFIG 20961 fi 20962 else 20963 PKGCONFIG="$ac_cv_path_PKGCONFIG" 20964 fi 20965 20966 fi 20967 20968 if test "x$PKGCONFIG" != "xno"; then 20969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbrotlidec options with pkg-config" >&5 20970 $as_echo_n "checking for libbrotlidec options with pkg-config... " >&6; } 20971 itexists=` 20972 if test -n ""; then 20973 PKG_CONFIG_LIBDIR="" 20974 export PKG_CONFIG_LIBDIR 20975 fi 20976 $PKGCONFIG --exists libbrotlidec >/dev/null 2>&1 && echo 1` 20977 20978 if test -z "$itexists"; then 20979 PKGCONFIG="no" 20980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20981 $as_echo "no" >&6; } 20982 else 20983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 20984 $as_echo "found" >&6; } 20985 fi 20986 fi 20987 20988 20989 if test "$PKGCONFIG" != "no" ; then 20990 LIB_BROTLI=`$PKGCONFIG --libs-only-l libbrotlidec` 20991 LD_BROTLI=`$PKGCONFIG --libs-only-L libbrotlidec` 20992 CPP_BROTLI=`$PKGCONFIG --cflags-only-I libbrotlidec` 20993 version=`$PKGCONFIG --modversion libbrotlidec` 20994 DIR_BROTLI=`echo $LD_BROTLI | $SED -e 's/-L//'` 20995 fi 20996 20997 ;; 20998 off) 20999 ;; 21000 *) 21001 PREFIX_BROTLI=$OPT_BROTLI 21002 ;; 21003 esac 21004 21005 if test -n "$PREFIX_BROTLI"; then 21006 LIB_BROTLI="-lbrotlidec" 21007 LD_BROTLI=-L${PREFIX_BROTLI}/lib$libsuff 21008 CPP_BROTLI=-I${PREFIX_BROTLI}/include 21009 DIR_BROTLI=${PREFIX_BROTLI}/lib$libsuff 21010 fi 21011 21012 LDFLAGS="$LDFLAGS $LD_BROTLI" 21013 CPPFLAGS="$CPPFLAGS $CPP_BROTLI" 21014 LIBS="$LIB_BROTLI $LIBS" 21015 21016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BrotliDecoderDecompress in -lbrotlidec" >&5 21017 $as_echo_n "checking for BrotliDecoderDecompress in -lbrotlidec... " >&6; } 21018 if ${ac_cv_lib_brotlidec_BrotliDecoderDecompress+:} false; then : 21019 $as_echo_n "(cached) " >&6 21020 else 21021 ac_check_lib_save_LIBS=$LIBS 21022 LIBS="-lbrotlidec $LIBS" 21023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21024 /* end confdefs.h. */ 21025 21026 21027 #ifdef __cplusplus 21028 extern "C" 21029 #endif 21030 char BrotliDecoderDecompress (); 21031 int main (void) 21032 { 21033 return BrotliDecoderDecompress (); 21034 ; 21035 return 0; 21036 } 21037 _ACEOF 21038 if ac_fn_c_try_link "$LINENO"; then : 21039 ac_cv_lib_brotlidec_BrotliDecoderDecompress=yes 21040 else 21041 ac_cv_lib_brotlidec_BrotliDecoderDecompress=no 21042 fi 21043 rm -f core conftest.err conftest.$ac_objext \ 21044 conftest$ac_exeext conftest.$ac_ext 21045 LIBS=$ac_check_lib_save_LIBS 21046 fi 21047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&5 21048 $as_echo "$ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&6; } 21049 if test "x$ac_cv_lib_brotlidec_BrotliDecoderDecompress" = xyes; then : 21050 cat >>confdefs.h <<_ACEOF 21051 #define HAVE_LIBBROTLIDEC 1 21052 _ACEOF 21053 21054 LIBS="-lbrotlidec $LIBS" 21055 21056 fi 21057 21058 21059 for ac_header in brotli/decode.h 21060 do : 21061 ac_fn_c_check_header_mongrel "$LINENO" "brotli/decode.h" "ac_cv_header_brotli_decode_h" "$ac_includes_default" 21062 if test "x$ac_cv_header_brotli_decode_h" = xyes; then : 21063 cat >>confdefs.h <<_ACEOF 21064 #define HAVE_BROTLI_DECODE_H 1 21065 _ACEOF 21066 curl_brotli_msg="enabled (libbrotlidec)" 21067 HAVE_BROTLI=1 21068 21069 $as_echo "#define HAVE_BROTLI 1" >>confdefs.h 21070 21071 HAVE_BROTLI=1 21072 21073 21074 fi 21075 21076 done 21077 21078 21079 if test X"$OPT_BROTLI" != Xoff && 21080 test "$HAVE_BROTLI" != "1"; then 21081 as_fn_error $? "BROTLI libs and/or directories were not found where specified!" "$LINENO" 5 21082 fi 21083 21084 if test "$HAVE_BROTLI" = "1"; then 21085 if test -n "$DIR_BROTLI"; then 21086 21087 if test "x$cross_compiling" != "xyes"; then 21088 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_BROTLI" 21089 export CURL_LIBRARY_PATH 21090 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&5 21091 $as_echo "$as_me: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&6;} 21092 fi 21093 fi 21094 else 21095 LDFLAGS=$CLEANLDFLAGS 21096 CPPFLAGS=$CLEANCPPFLAGS 21097 LIBS=$CLEANLIBS 21098 fi 21099 fi 21100 21101 21102 LDAPLIBNAME="" 21103 21104 # Check whether --with-ldap-lib was given. 21105 if test "${with_ldap_lib+set}" = set; then : 21106 withval=$with_ldap_lib; LDAPLIBNAME="$withval" 21107 fi 21108 21109 21110 LBERLIBNAME="" 21111 21112 # Check whether --with-lber-lib was given. 21113 if test "${with_lber_lib+set}" = set; then : 21114 withval=$with_lber_lib; LBERLIBNAME="$withval" 21115 fi 21116 21117 21118 if test x$CURL_DISABLE_LDAP != x1 ; then 21119 21120 21121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5 21122 $as_echo_n "checking for lber.h... " >&6; } 21123 if ${curl_cv_header_lber_h+:} false; then : 21124 $as_echo_n "(cached) " >&6 21125 else 21126 21127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21128 /* end confdefs.h. */ 21129 21130 21131 #undef inline 21132 #ifdef HAVE_WINDOWS_H 21133 #ifndef WIN32_LEAN_AND_MEAN 21134 #define WIN32_LEAN_AND_MEAN 21135 #endif 21136 #include <windows.h> 21137 #else 21138 #ifdef HAVE_SYS_TYPES_H 21139 #include <sys/types.h> 21140 #endif 21141 #endif 21142 #ifndef NULL 21143 #define NULL (void *)0 21144 #endif 21145 #include <lber.h> 21146 21147 int main (void) 21148 { 21149 21150 BerValue *bvp = NULL; 21151 BerElement *bep = ber_init(bvp); 21152 ber_free(bep, 1); 21153 21154 ; 21155 return 0; 21156 } 21157 21158 _ACEOF 21159 if ac_fn_c_try_compile "$LINENO"; then : 21160 21161 curl_cv_header_lber_h="yes" 21162 21163 else 21164 21165 curl_cv_header_lber_h="no" 21166 21167 fi 21168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21169 21170 fi 21171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5 21172 $as_echo "$curl_cv_header_lber_h" >&6; } 21173 if test "$curl_cv_header_lber_h" = "yes"; then 21174 21175 cat >>confdefs.h <<_ACEOF 21176 #define HAVE_LBER_H 1 21177 _ACEOF 21178 21179 # 21180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21181 /* end confdefs.h. */ 21182 21183 21184 #undef inline 21185 #ifdef HAVE_WINDOWS_H 21186 #ifndef WIN32_LEAN_AND_MEAN 21187 #define WIN32_LEAN_AND_MEAN 21188 #endif 21189 #include <windows.h> 21190 #else 21191 #ifdef HAVE_SYS_TYPES_H 21192 #include <sys/types.h> 21193 #endif 21194 #endif 21195 #ifndef NULL 21196 #define NULL (void *)0 21197 #endif 21198 #ifndef LDAP_DEPRECATED 21199 #define LDAP_DEPRECATED 1 21200 #endif 21201 #include <ldap.h> 21202 21203 int main (void) 21204 { 21205 21206 BerValue *bvp = NULL; 21207 BerElement *bep = ber_init(bvp); 21208 ber_free(bep, 1); 21209 21210 ; 21211 return 0; 21212 } 21213 21214 _ACEOF 21215 if ac_fn_c_try_compile "$LINENO"; then : 21216 21217 curl_cv_need_header_lber_h="no" 21218 21219 else 21220 21221 curl_cv_need_header_lber_h="yes" 21222 21223 fi 21224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21225 # 21226 case "$curl_cv_need_header_lber_h" in 21227 yes) 21228 21229 cat >>confdefs.h <<_ACEOF 21230 #define NEED_LBER_H 1 21231 _ACEOF 21232 21233 ;; 21234 esac 21235 fi 21236 21237 21238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5 21239 $as_echo_n "checking for ldap.h... " >&6; } 21240 if ${curl_cv_header_ldap_h+:} false; then : 21241 $as_echo_n "(cached) " >&6 21242 else 21243 21244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21245 /* end confdefs.h. */ 21246 21247 21248 #undef inline 21249 #ifdef HAVE_WINDOWS_H 21250 #ifndef WIN32_LEAN_AND_MEAN 21251 #define WIN32_LEAN_AND_MEAN 21252 #endif 21253 #include <windows.h> 21254 #else 21255 #ifdef HAVE_SYS_TYPES_H 21256 #include <sys/types.h> 21257 #endif 21258 #endif 21259 #ifndef LDAP_DEPRECATED 21260 #define LDAP_DEPRECATED 1 21261 #endif 21262 #ifdef NEED_LBER_H 21263 #include <lber.h> 21264 #endif 21265 #include <ldap.h> 21266 21267 int main (void) 21268 { 21269 21270 LDAP *ldp = ldap_init("dummy", LDAP_PORT); 21271 int res = ldap_unbind(ldp); 21272 21273 ; 21274 return 0; 21275 } 21276 21277 _ACEOF 21278 if ac_fn_c_try_compile "$LINENO"; then : 21279 21280 curl_cv_header_ldap_h="yes" 21281 21282 else 21283 21284 curl_cv_header_ldap_h="no" 21285 21286 fi 21287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21288 21289 fi 21290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5 21291 $as_echo "$curl_cv_header_ldap_h" >&6; } 21292 case "$curl_cv_header_ldap_h" in 21293 yes) 21294 21295 cat >>confdefs.h <<_ACEOF 21296 #define HAVE_LDAP_H 1 21297 _ACEOF 21298 21299 ;; 21300 esac 21301 21302 21303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5 21304 $as_echo_n "checking for ldapssl.h... " >&6; } 21305 if ${curl_cv_header_ldapssl_h+:} false; then : 21306 $as_echo_n "(cached) " >&6 21307 else 21308 21309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21310 /* end confdefs.h. */ 21311 21312 21313 #undef inline 21314 #ifdef HAVE_WINDOWS_H 21315 #ifndef WIN32_LEAN_AND_MEAN 21316 #define WIN32_LEAN_AND_MEAN 21317 #endif 21318 #include <windows.h> 21319 #else 21320 #ifdef HAVE_SYS_TYPES_H 21321 #include <sys/types.h> 21322 #endif 21323 #endif 21324 #ifndef NULL 21325 #define NULL (void *)0 21326 #endif 21327 #ifndef LDAP_DEPRECATED 21328 #define LDAP_DEPRECATED 1 21329 #endif 21330 #ifdef NEED_LBER_H 21331 #include <lber.h> 21332 #endif 21333 #ifdef HAVE_LDAP_H 21334 #include <ldap.h> 21335 #endif 21336 #include <ldapssl.h> 21337 21338 int main (void) 21339 { 21340 21341 char *cert_label = NULL; 21342 LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label); 21343 21344 ; 21345 return 0; 21346 } 21347 21348 _ACEOF 21349 if ac_fn_c_try_compile "$LINENO"; then : 21350 21351 curl_cv_header_ldapssl_h="yes" 21352 21353 else 21354 21355 curl_cv_header_ldapssl_h="no" 21356 21357 fi 21358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21359 21360 fi 21361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldapssl_h" >&5 21362 $as_echo "$curl_cv_header_ldapssl_h" >&6; } 21363 case "$curl_cv_header_ldapssl_h" in 21364 yes) 21365 21366 cat >>confdefs.h <<_ACEOF 21367 #define HAVE_LDAPSSL_H 1 21368 _ACEOF 21369 21370 ;; 21371 esac 21372 21373 21374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5 21375 $as_echo_n "checking for ldap_ssl.h... " >&6; } 21376 if ${curl_cv_header_ldap_ssl_h+:} false; then : 21377 $as_echo_n "(cached) " >&6 21378 else 21379 21380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21381 /* end confdefs.h. */ 21382 21383 21384 #undef inline 21385 #ifdef HAVE_WINDOWS_H 21386 #ifndef WIN32_LEAN_AND_MEAN 21387 #define WIN32_LEAN_AND_MEAN 21388 #endif 21389 #include <windows.h> 21390 #else 21391 #ifdef HAVE_SYS_TYPES_H 21392 #include <sys/types.h> 21393 #endif 21394 #endif 21395 #ifndef LDAP_DEPRECATED 21396 #define LDAP_DEPRECATED 1 21397 #endif 21398 #ifdef NEED_LBER_H 21399 #include <lber.h> 21400 #endif 21401 #ifdef HAVE_LDAP_H 21402 #include <ldap.h> 21403 #endif 21404 #include <ldap_ssl.h> 21405 21406 int main (void) 21407 { 21408 21409 LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1); 21410 21411 ; 21412 return 0; 21413 } 21414 21415 _ACEOF 21416 if ac_fn_c_try_compile "$LINENO"; then : 21417 21418 curl_cv_header_ldap_ssl_h="yes" 21419 21420 else 21421 21422 curl_cv_header_ldap_ssl_h="no" 21423 21424 fi 21425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21426 21427 fi 21428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5 21429 $as_echo "$curl_cv_header_ldap_ssl_h" >&6; } 21430 case "$curl_cv_header_ldap_ssl_h" in 21431 yes) 21432 21433 cat >>confdefs.h <<_ACEOF 21434 #define HAVE_LDAP_SSL_H 1 21435 _ACEOF 21436 21437 ;; 21438 esac 21439 21440 21441 if test -z "$LDAPLIBNAME" ; then 21442 if test "$curl_cv_native_windows" = "yes"; then 21443 LDAPLIBNAME="wldap32" 21444 LBERLIBNAME="no" 21445 fi 21446 fi 21447 21448 if test "$LDAPLIBNAME" ; then 21449 as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh` 21450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5 21451 $as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; } 21452 if eval \${$as_ac_Lib+:} false; then : 21453 $as_echo_n "(cached) " >&6 21454 else 21455 ac_check_lib_save_LIBS=$LIBS 21456 LIBS="-l"$LDAPLIBNAME" $LIBS" 21457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21458 /* end confdefs.h. */ 21459 21460 21461 #ifdef __cplusplus 21462 extern "C" 21463 #endif 21464 char ldap_init (); 21465 int main (void) 21466 { 21467 return ldap_init (); 21468 ; 21469 return 0; 21470 } 21471 _ACEOF 21472 if ac_fn_c_try_link "$LINENO"; then : 21473 eval "$as_ac_Lib=yes" 21474 else 21475 eval "$as_ac_Lib=no" 21476 fi 21477 rm -f core conftest.err conftest.$ac_objext \ 21478 conftest$ac_exeext conftest.$ac_ext 21479 LIBS=$ac_check_lib_save_LIBS 21480 fi 21481 eval ac_res=\$$as_ac_Lib 21482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 21483 $as_echo "$ac_res" >&6; } 21484 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 21485 cat >>confdefs.h <<_ACEOF 21486 #define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1 21487 _ACEOF 21488 21489 LIBS="-l"$LDAPLIBNAME" $LIBS" 21490 21491 else 21492 21493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5 21494 $as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;} 21495 21496 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h 21497 21498 CURL_DISABLE_LDAP=1 21499 21500 21501 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h 21502 21503 CURL_DISABLE_LDAPS=1 21504 21505 fi 21506 21507 else 21508 21509 # 21510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5 21511 $as_echo_n "checking for LDAP libraries... " >&6; } 21512 # 21513 u_libs="" 21514 # 21515 21516 # 21517 curl_cv_save_LIBS="$LIBS" 21518 curl_cv_ldap_LIBS="unknown" 21519 # 21520 for x_nlibs in '' "$u_libs" \ 21521 '-lldap' \ 21522 '-lldap -llber' \ 21523 '-llber -lldap' \ 21524 '-lldapssl -lldapx -lldapsdk' \ 21525 '-lldapsdk -lldapx -lldapssl' \ 21526 '-lldap -llber -lssl -lcrypto' ; do 21527 21528 if test "$curl_cv_ldap_LIBS" = "unknown"; then 21529 if test -z "$x_nlibs"; then 21530 LIBS="$curl_cv_save_LIBS" 21531 else 21532 LIBS="$x_nlibs $curl_cv_save_LIBS" 21533 fi 21534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21535 /* end confdefs.h. */ 21536 21537 21538 #undef inline 21539 #ifdef HAVE_WINDOWS_H 21540 #ifndef WIN32_LEAN_AND_MEAN 21541 #define WIN32_LEAN_AND_MEAN 21542 #endif 21543 #include <windows.h> 21544 #else 21545 #ifdef HAVE_SYS_TYPES_H 21546 #include <sys/types.h> 21547 #endif 21548 #endif 21549 #ifndef NULL 21550 #define NULL (void *)0 21551 #endif 21552 #ifndef LDAP_DEPRECATED 21553 #define LDAP_DEPRECATED 1 21554 #endif 21555 #ifdef NEED_LBER_H 21556 #include <lber.h> 21557 #endif 21558 #ifdef HAVE_LDAP_H 21559 #include <ldap.h> 21560 #endif 21561 21562 int main (void) 21563 { 21564 21565 BerValue *bvp = NULL; 21566 BerElement *bep = ber_init(bvp); 21567 LDAP *ldp = ldap_init("dummy", LDAP_PORT); 21568 int res = ldap_unbind(ldp); 21569 ber_free(bep, 1); 21570 21571 ; 21572 return 0; 21573 } 21574 21575 _ACEOF 21576 if ac_fn_c_try_link "$LINENO"; then : 21577 21578 curl_cv_ldap_LIBS="$x_nlibs" 21579 21580 fi 21581 rm -f core conftest.err conftest.$ac_objext \ 21582 conftest$ac_exeext conftest.$ac_ext 21583 fi 21584 done 21585 # 21586 LIBS="$curl_cv_save_LIBS" 21587 # 21588 case X-"$curl_cv_ldap_LIBS" in 21589 X-unknown) 21590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5 21591 $as_echo "cannot find LDAP libraries" >&6; } 21592 ;; 21593 X-) 21594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5 21595 $as_echo "no additional lib required" >&6; } 21596 ;; 21597 *) 21598 if test -z "$curl_cv_save_LIBS"; then 21599 LIBS="$curl_cv_ldap_LIBS" 21600 else 21601 LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS" 21602 fi 21603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5 21604 $as_echo "$curl_cv_ldap_LIBS" >&6; } 21605 ;; 21606 esac 21607 # 21608 21609 case X-"$curl_cv_ldap_LIBS" in 21610 X-unknown) 21611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5 21612 $as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;} 21613 21614 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h 21615 21616 CURL_DISABLE_LDAP=1 21617 21618 21619 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h 21620 21621 CURL_DISABLE_LDAPS=1 21622 21623 ;; 21624 esac 21625 fi 21626 fi 21627 21628 if test x$CURL_DISABLE_LDAP != x1 ; then 21629 21630 if test "$LBERLIBNAME" ; then 21631 if test "$LBERLIBNAME" != "no" ; then 21632 as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh` 21633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5 21634 $as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; } 21635 if eval \${$as_ac_Lib+:} false; then : 21636 $as_echo_n "(cached) " >&6 21637 else 21638 ac_check_lib_save_LIBS=$LIBS 21639 LIBS="-l"$LBERLIBNAME" $LIBS" 21640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21641 /* end confdefs.h. */ 21642 21643 21644 #ifdef __cplusplus 21645 extern "C" 21646 #endif 21647 char ber_free (); 21648 int main (void) 21649 { 21650 return ber_free (); 21651 ; 21652 return 0; 21653 } 21654 _ACEOF 21655 if ac_fn_c_try_link "$LINENO"; then : 21656 eval "$as_ac_Lib=yes" 21657 else 21658 eval "$as_ac_Lib=no" 21659 fi 21660 rm -f core conftest.err conftest.$ac_objext \ 21661 conftest$ac_exeext conftest.$ac_ext 21662 LIBS=$ac_check_lib_save_LIBS 21663 fi 21664 eval ac_res=\$$as_ac_Lib 21665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 21666 $as_echo "$ac_res" >&6; } 21667 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 21668 cat >>confdefs.h <<_ACEOF 21669 #define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1 21670 _ACEOF 21671 21672 LIBS="-l"$LBERLIBNAME" $LIBS" 21673 21674 else 21675 21676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5 21677 $as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;} 21678 21679 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h 21680 21681 CURL_DISABLE_LDAP=1 21682 21683 21684 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h 21685 21686 CURL_DISABLE_LDAPS=1 21687 21688 fi 21689 21690 fi 21691 fi 21692 fi 21693 21694 if test x$CURL_DISABLE_LDAP != x1 ; then 21695 for ac_func in ldap_url_parse ldap_init_fd 21696 do : 21697 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 21698 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 21699 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 21700 cat >>confdefs.h <<_ACEOF 21701 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 21702 _ACEOF 21703 21704 fi 21705 done 21706 21707 21708 if test "$LDAPLIBNAME" = "wldap32"; then 21709 curl_ldap_msg="enabled (winldap)" 21710 21711 $as_echo "#define USE_WIN32_LDAP 1" >>confdefs.h 21712 21713 else 21714 curl_ldap_msg="enabled (OpenLDAP)" 21715 if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then 21716 21717 $as_echo "#define USE_OPENLDAP 1" >>confdefs.h 21718 21719 USE_OPENLDAP=1 21720 21721 fi 21722 fi 21723 fi 21724 21725 if test x$CURL_DISABLE_LDAPS != x1 ; then 21726 curl_ldaps_msg="enabled" 21727 fi 21728 21729 21730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5 21731 $as_echo_n "checking whether to enable IPv6... " >&6; } 21732 # Check whether --enable-ipv6 was given. 21733 if test "${enable_ipv6+set}" = set; then : 21734 enableval=$enable_ipv6; case "$enableval" in 21735 no) 21736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21737 $as_echo "no" >&6; } 21738 ipv6=no 21739 ;; 21740 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21741 $as_echo "yes" >&6; } 21742 ipv6=yes 21743 ;; 21744 esac 21745 else 21746 if test "$cross_compiling" = yes; then : 21747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21748 $as_echo "yes" >&6; } 21749 ipv6=yes 21750 21751 else 21752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21753 /* end confdefs.h. */ 21754 /* is AF_INET6 available? */ 21755 #include <sys/types.h> 21756 #ifdef HAVE_WINSOCK2_H 21757 #include <winsock2.h> 21758 #else 21759 #include <sys/socket.h> 21760 #endif 21761 #include <stdlib.h> /* for exit() */ 21762 main() 21763 { 21764 if (socket(AF_INET6, SOCK_STREAM, 0) < 0) 21765 exit(1); 21766 else 21767 exit(0); 21768 } 21769 21770 _ACEOF 21771 if ac_fn_c_try_run "$LINENO"; then : 21772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21773 $as_echo "yes" >&6; } 21774 ipv6=yes 21775 else 21776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21777 $as_echo "no" >&6; } 21778 ipv6=no 21779 fi 21780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21781 conftest.$ac_objext conftest.beam conftest.$ac_ext 21782 fi 21783 21784 fi 21785 21786 21787 if test "$ipv6" = "yes"; then 21788 curl_ipv6_msg="enabled" 21789 fi 21790 21791 # Check if struct sockaddr_in6 have sin6_scope_id member 21792 if test "$ipv6" = yes; then 21793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5 21794 $as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; } 21795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21796 /* end confdefs.h. */ 21797 21798 #include <sys/types.h> 21799 #ifdef HAVE_WINSOCK2_H 21800 #include <winsock2.h> 21801 #include <ws2tcpip.h> 21802 #else 21803 #include <netinet/in.h> 21804 #if defined (__TANDEM) 21805 # include <netinet/in6.h> 21806 #endif 21807 #endif 21808 int main (void) 21809 { 21810 struct sockaddr_in6 s; s.sin6_scope_id = 0; 21811 ; 21812 return 0; 21813 } 21814 _ACEOF 21815 if ac_fn_c_try_compile "$LINENO"; then : 21816 have_sin6_scope_id=yes 21817 fi 21818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21819 if test "$have_sin6_scope_id" = yes; then 21820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21821 $as_echo "yes" >&6; } 21822 21823 $as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h 21824 21825 else 21826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21827 $as_echo "no" >&6; } 21828 fi 21829 fi 21830 21831 21832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5 21833 $as_echo_n "checking if argv can be written to... " >&6; } 21834 21835 21836 old=$LD_LIBRARY_PATH 21837 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 21838 export LD_LIBRARY_PATH 21839 if test "$cross_compiling" = yes; then : 21840 curl_cv_writable_argv=cross 21841 21842 else 21843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21844 /* end confdefs.h. */ 21845 21846 int main(int argc, char ** argv) { 21847 argv00 = ' '; 21848 return (argv00 == ' ')?0:1; 21849 } 21850 21851 _ACEOF 21852 if ac_fn_c_try_run "$LINENO"; then : 21853 curl_cv_writable_argv=yes 21854 21855 else 21856 curl_cv_writable_argv=no 21857 21858 fi 21859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21860 conftest.$ac_objext conftest.beam conftest.$ac_ext 21861 fi 21862 21863 LD_LIBRARY_PATH=$old # restore 21864 21865 case $curl_cv_writable_argv in 21866 yes) 21867 21868 $as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h 21869 21870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21871 $as_echo "yes" >&6; } 21872 ;; 21873 no) 21874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21875 $as_echo "no" >&6; } 21876 ;; 21877 *) 21878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21879 $as_echo "no" >&6; } 21880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5 21881 $as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;} 21882 ;; 21883 esac 21884 21885 21886 21887 GSSAPI_ROOT="/usr" 21888 21889 # Check whether --with-gssapi-includes was given. 21890 if test "${with_gssapi_includes+set}" = set; then : 21891 withval=$with_gssapi_includes; GSSAPI_INCS="-I$withval" 21892 want_gss="yes" 21893 21894 fi 21895 21896 21897 21898 # Check whether --with-gssapi-libs was given. 21899 if test "${with_gssapi_libs+set}" = set; then : 21900 withval=$with_gssapi_libs; GSSAPI_LIB_DIR="-L$withval" 21901 want_gss="yes" 21902 21903 fi 21904 21905 21906 21907 # Check whether --with-gssapi was given. 21908 if test "${with_gssapi+set}" = set; then : 21909 withval=$with_gssapi; 21910 GSSAPI_ROOT="$withval" 21911 if test x"$GSSAPI_ROOT" != xno; then 21912 want_gss="yes" 21913 if test x"$GSSAPI_ROOT" = xyes; then 21914 GSSAPI_ROOT="/usr" 21915 fi 21916 fi 21917 21918 fi 21919 21920 21921 : ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"} 21922 21923 save_CPPFLAGS="$CPPFLAGS" 21924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5 21925 $as_echo_n "checking if GSS-API support is requested... " >&6; } 21926 if test x"$want_gss" = xyes; then 21927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21928 $as_echo "yes" >&6; } 21929 21930 if test -z "$GSSAPI_INCS"; then 21931 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then 21932 GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi` 21933 elif test -f "$KRB5CONFIG"; then 21934 GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi` 21935 elif test "$GSSAPI_ROOT" != "yes"; then 21936 GSSAPI_INCS="-I$GSSAPI_ROOT/include" 21937 fi 21938 fi 21939 21940 CPPFLAGS="$CPPFLAGS $GSSAPI_INCS" 21941 21942 ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default" 21943 if test "x$ac_cv_header_gss_h" = xyes; then : 21944 21945 21946 $as_echo "#define HAVE_GSSGNU 1" >>confdefs.h 21947 21948 gnu_gss=yes 21949 21950 else 21951 21952 for ac_header in gssapi/gssapi.h 21953 do : 21954 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default" 21955 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then : 21956 cat >>confdefs.h <<_ACEOF 21957 #define HAVE_GSSAPI_GSSAPI_H 1 21958 _ACEOF 21959 21960 else 21961 not_mit=1 21962 fi 21963 21964 done 21965 21966 for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h 21967 do : 21968 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 21969 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 21970 $ac_includes_default 21971 #ifdef HAVE_GSSAPI_GSSAPI_H 21972 #include <gssapi/gssapi.h> 21973 #endif 21974 21975 " 21976 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 21977 cat >>confdefs.h <<_ACEOF 21978 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 21979 _ACEOF 21980 21981 else 21982 not_mit=1 21983 fi 21984 21985 done 21986 21987 if test "x$not_mit" = "x1"; then 21988 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" 21989 if test "x$ac_cv_header_gssapi_h" = xyes; then : 21990 21991 21992 $as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h 21993 21994 21995 else 21996 21997 want_gss=no 21998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5 21999 $as_echo "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;} 22000 22001 22002 fi 22003 22004 22005 else 22006 22007 $as_echo "#define HAVE_GSSMIT 1" >>confdefs.h 22008 22009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5 22010 $as_echo_n "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; } 22011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22012 /* end confdefs.h. */ 22013 22014 22015 #include <gssapi/gssapi.h> 22016 #include <gssapi/gssapi_generic.h> 22017 #include <gssapi/gssapi_krb5.h> 22018 22019 int main (void) 22020 { 22021 22022 gss_import_name( 22023 (OM_uint32 *)0, 22024 (gss_buffer_t)0, 22025 GSS_C_NT_HOSTBASED_SERVICE, 22026 (gss_name_t *)0); 22027 22028 ; 22029 return 0; 22030 } 22031 22032 _ACEOF 22033 if ac_fn_c_try_compile "$LINENO"; then : 22034 22035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22036 $as_echo "yes" >&6; } 22037 22038 else 22039 22040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22041 $as_echo "no" >&6; } 22042 22043 $as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h 22044 22045 22046 fi 22047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22048 fi 22049 22050 22051 fi 22052 22053 22054 else 22055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22056 $as_echo "no" >&6; } 22057 fi 22058 if test x"$want_gss" = xyes; then 22059 22060 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h 22061 22062 HAVE_GSSAPI=1 22063 curl_gss_msg="enabled (MIT Kerberos/Heimdal)" 22064 22065 if test -n "$gnu_gss"; then 22066 curl_gss_msg="enabled (GNU GSS)" 22067 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR" 22068 LIBS="-lgss $LIBS" 22069 elif test -z "$GSSAPI_LIB_DIR"; then 22070 case $host in 22071 *-*-darwin*) 22072 LIBS="-lgssapi_krb5 -lresolv $LIBS" 22073 ;; 22074 *) 22075 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then 22076 gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi` 22077 LIBS="$gss_libs $LIBS" 22078 elif test -f "$KRB5CONFIG"; then 22079 gss_libs=`$KRB5CONFIG --libs gssapi` 22080 LIBS="$gss_libs $LIBS" 22081 else 22082 case $host in 22083 *-hp-hpux*) 22084 gss_libname="gss" 22085 ;; 22086 *) 22087 gss_libname="gssapi" 22088 ;; 22089 esac 22090 22091 if test "$GSSAPI_ROOT" != "yes"; then 22092 LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff" 22093 LIBS="-l$gss_libname $LIBS" 22094 else 22095 LIBS="-l$gss_libname $LIBS" 22096 fi 22097 fi 22098 ;; 22099 esac 22100 else 22101 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR" 22102 case $host in 22103 *-hp-hpux*) 22104 LIBS="-lgss $LIBS" 22105 ;; 22106 *) 22107 LIBS="-lgssapi $LIBS" 22108 ;; 22109 esac 22110 fi 22111 else 22112 CPPFLAGS="$save_CPPFLAGS" 22113 fi 22114 22115 build_libstubgss=no 22116 if test x"$want_gss" = "xyes"; then 22117 build_libstubgss=yes 22118 fi 22119 22120 if test "x$build_libstubgss" = "xyes"; then 22121 BUILD_STUB_GSS_TRUE= 22122 BUILD_STUB_GSS_FALSE='#' 22123 else 22124 BUILD_STUB_GSS_TRUE='#' 22125 BUILD_STUB_GSS_FALSE= 22126 fi 22127 22128 22129 22130 DEFAULT_SSL_BACKEND=no 22131 VALID_DEFAULT_SSL_BACKEND= 22132 22133 # Check whether --with-default-ssl-backend was given. 22134 if test "${with_default_ssl_backend+set}" = set; then : 22135 withval=$with_default_ssl_backend; DEFAULT_SSL_BACKEND=$withval 22136 fi 22137 22138 case "$DEFAULT_SSL_BACKEND" in 22139 no) 22140 ;; 22141 default|yes) 22142 as_fn_error $? "The name of the default SSL backend is required." "$LINENO" 5 22143 ;; 22144 *) 22145 22146 VALID_DEFAULT_SSL_BACKEND=no 22147 ;; 22148 esac 22149 22150 22151 22152 OPT_WINSSL=no 22153 22154 # Check whether --with-winssl was given. 22155 if test "${with_winssl+set}" = set; then : 22156 withval=$with_winssl; OPT_WINSSL=$withval 22157 fi 22158 22159 22160 22161 # Check whether --with-schannel was given. 22162 if test "${with_schannel+set}" = set; then : 22163 withval=$with_schannel; OPT_WINSSL=$withval 22164 fi 22165 22166 22167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS (Windows native builds only)" >&5 22168 $as_echo_n "checking whether to enable Windows native SSL/TLS (Windows native builds only)... " >&6; } 22169 if test -z "$ssl_backends" -o "x$OPT_WINSSL" != xno; then 22170 ssl_msg= 22171 if test "x$OPT_WINSSL" != "xno" && 22172 test "x$curl_cv_native_windows" = "xyes"; then 22173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22174 $as_echo "yes" >&6; } 22175 22176 $as_echo "#define USE_SCHANNEL 1" >>confdefs.h 22177 22178 USE_SCHANNEL=1 22179 22180 ssl_msg="Windows-native" 22181 test schannel != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 22182 WINSSL_ENABLED=1 22183 # --with-winssl implies --enable-sspi 22184 22185 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h 22186 22187 USE_WINDOWS_SSPI=1 22188 22189 curl_sspi_msg="enabled" 22190 LIBS="-lcrypt32 $LIBS" 22191 else 22192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22193 $as_echo "no" >&6; } 22194 fi 22195 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg" 22196 else 22197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22198 $as_echo "no" >&6; } 22199 fi 22200 22201 OPT_SECURETRANSPORT=no 22202 22203 # Check whether --with-darwinssl was given. 22204 if test "${with_darwinssl+set}" = set; then : 22205 withval=$with_darwinssl; OPT_SECURETRANSPORT=$withval 22206 fi 22207 22208 22209 22210 # Check whether --with-secure-transport was given. 22211 if test "${with_secure_transport+set}" = set; then : 22212 withval=$with_secure_transport; OPT_SECURETRANSPORT=$withval 22213 fi 22214 22215 22216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Secure Transport" >&5 22217 $as_echo_n "checking whether to enable Secure Transport... " >&6; } 22218 if test -z "$ssl_backends" -o "x$OPT_SECURETRANSPORT" != xno; then 22219 if test "x$OPT_SECURETRANSPORT" != "xno" && 22220 test -d "/System/Library/Frameworks/Security.framework"; then 22221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22222 $as_echo "yes" >&6; } 22223 22224 $as_echo "#define USE_SECTRANSP 1" >>confdefs.h 22225 22226 USE_SECTRANSP=1 22227 22228 ssl_msg="Secure Transport" 22229 test secure-transport != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 22230 SECURETRANSPORT_ENABLED=1 22231 LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security" 22232 else 22233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22234 $as_echo "no" >&6; } 22235 fi 22236 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg" 22237 else 22238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22239 $as_echo "no" >&6; } 22240 fi 22241 22242 OPT_AMISSL=no 22243 22244 # Check whether --with-amissl was given. 22245 if test "${with_amissl+set}" = set; then : 22246 withval=$with_amissl; OPT_AMISSL=$withval 22247 fi 22248 22249 22250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Amiga native SSL/TLS (AmiSSL)" >&5 22251 $as_echo_n "checking whether to enable Amiga native SSL/TLS (AmiSSL)... " >&6; } 22252 if test "$HAVE_PROTO_BSDSOCKET_H" == "1"; then 22253 if test -z "$ssl_backends" -o "x$OPT_AMISSL" != xno; then 22254 ssl_msg= 22255 if test "x$OPT_AMISSL" != "xno"; then 22256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22257 $as_echo "yes" >&6; } 22258 ssl_msg="AmiSSL" 22259 test amissl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 22260 AMISSL_ENABLED=1 22261 LIBS="-lamisslauto $LIBS" 22262 22263 $as_echo "#define USE_AMISSL 1" >>confdefs.h 22264 22265 22266 $as_echo "#define USE_OPENSSL 1" >>confdefs.h 22267 22268 else 22269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22270 $as_echo "no" >&6; } 22271 fi 22272 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg" 22273 else 22274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22275 $as_echo "no" >&6; } 22276 fi 22277 else 22278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22279 $as_echo "no" >&6; } 22280 fi 22281 22282 22283 OPT_SSL=off 22284 ca="no" 22285 22286 # Check whether --with-ssl was given. 22287 if test "${with_ssl+set}" = set; then : 22288 withval=$with_ssl; OPT_SSL=$withval 22289 fi 22290 22291 22292 if test -z "$ssl_backends" -o "x$OPT_SSL" != xno && 22293 test X"$OPT_SSL" != Xno; then 22294 ssl_msg= 22295 22296 CLEANLDFLAGS="$LDFLAGS" 22297 CLEANCPPFLAGS="$CPPFLAGS" 22298 CLEANLIBS="$LIBS" 22299 22300 case $host in 22301 *-*-msys* | *-*-mingw*) 22302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5 22303 $as_echo_n "checking for gdi32... " >&6; } 22304 my_ac_save_LIBS=$LIBS 22305 LIBS="-lgdi32 $LIBS" 22306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22307 /* end confdefs.h. */ 22308 #include <windef.h> 22309 #include <wingdi.h> 22310 int main (void) 22311 { 22312 GdiFlush(); 22313 ; 22314 return 0; 22315 } 22316 _ACEOF 22317 if ac_fn_c_try_link "$LINENO"; then : 22318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22319 $as_echo "yes" >&6; } 22320 else 22321 LIBS=$my_ac_save_LIBS 22322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22323 $as_echo "no" >&6; } 22324 22325 fi 22326 rm -f core conftest.err conftest.$ac_objext \ 22327 conftest$ac_exeext conftest.$ac_ext 22328 ;; 22329 esac 22330 22331 case "$OPT_SSL" in 22332 yes) 22333 if test x$cross_compiling != xyes; then 22334 PKGTEST="yes" 22335 fi 22336 PREFIX_OPENSSL=/usr/local/ssl 22337 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff" 22338 ;; 22339 off) 22340 if test x$cross_compiling != xyes; then 22341 PKGTEST="yes" 22342 fi 22343 PREFIX_OPENSSL= 22344 ;; 22345 *) 22346 PKGTEST="no" 22347 PREFIX_OPENSSL=$OPT_SSL 22348 22349 OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig" 22350 if test -f "$OPENSSL_PCDIR/openssl.pc"; then 22351 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5 22352 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;} 22353 PKGTEST="yes" 22354 elif test ! -f "$PREFIX_OPENSSL/include/openssl/ssl.h"; then 22355 as_fn_error $? "$PREFIX_OPENSSL is a bad --with-ssl prefix!" "$LINENO" 5 22356 fi 22357 22358 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff" 22359 if test "$PREFIX_OPENSSL" != "/usr" ; then 22360 SSL_LDFLAGS="-L$LIB_OPENSSL" 22361 SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include" 22362 fi 22363 SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl" 22364 ;; 22365 esac 22366 22367 if test "$PKGTEST" = "yes"; then 22368 22369 22370 if test -n "$PKG_CONFIG"; then 22371 PKGCONFIG="$PKG_CONFIG" 22372 else 22373 if test -n "$ac_tool_prefix"; then 22374 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 22375 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 22376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22377 $as_echo_n "checking for $ac_word... " >&6; } 22378 if ${ac_cv_path_PKGCONFIG+:} false; then : 22379 $as_echo_n "(cached) " >&6 22380 else 22381 case $PKGCONFIG in 22382 [\\/]* | ?:[\\/]*) 22383 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 22384 ;; 22385 *) 22386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22387 as_dummy="$PATH:/usr/bin:/usr/local/bin" 22388 for as_dir in $as_dummy 22389 do 22390 IFS=$as_save_IFS 22391 test -z "$as_dir" && as_dir=. 22392 for ac_exec_ext in '' $ac_executable_extensions; do 22393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22394 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 22395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22396 break 2 22397 fi 22398 done 22399 done 22400 IFS=$as_save_IFS 22401 22402 ;; 22403 esac 22404 fi 22405 PKGCONFIG=$ac_cv_path_PKGCONFIG 22406 if test -n "$PKGCONFIG"; then 22407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 22408 $as_echo "$PKGCONFIG" >&6; } 22409 else 22410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22411 $as_echo "no" >&6; } 22412 fi 22413 22414 22415 fi 22416 if test -z "$ac_cv_path_PKGCONFIG"; then 22417 ac_pt_PKGCONFIG=$PKGCONFIG 22418 # Extract the first word of "pkg-config", so it can be a program name with args. 22419 set dummy pkg-config; ac_word=$2 22420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22421 $as_echo_n "checking for $ac_word... " >&6; } 22422 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : 22423 $as_echo_n "(cached) " >&6 22424 else 22425 case $ac_pt_PKGCONFIG in 22426 [\\/]* | ?:[\\/]*) 22427 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 22428 ;; 22429 *) 22430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22431 as_dummy="$PATH:/usr/bin:/usr/local/bin" 22432 for as_dir in $as_dummy 22433 do 22434 IFS=$as_save_IFS 22435 test -z "$as_dir" && as_dir=. 22436 for ac_exec_ext in '' $ac_executable_extensions; do 22437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22438 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 22439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22440 break 2 22441 fi 22442 done 22443 done 22444 IFS=$as_save_IFS 22445 22446 ;; 22447 esac 22448 fi 22449 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 22450 if test -n "$ac_pt_PKGCONFIG"; then 22451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 22452 $as_echo "$ac_pt_PKGCONFIG" >&6; } 22453 else 22454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22455 $as_echo "no" >&6; } 22456 fi 22457 22458 if test "x$ac_pt_PKGCONFIG" = x; then 22459 PKGCONFIG="no" 22460 else 22461 case $cross_compiling:$ac_tool_warned in 22462 yes:) 22463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 22464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 22465 ac_tool_warned=yes ;; 22466 esac 22467 PKGCONFIG=$ac_pt_PKGCONFIG 22468 fi 22469 else 22470 PKGCONFIG="$ac_cv_path_PKGCONFIG" 22471 fi 22472 22473 fi 22474 22475 if test "x$PKGCONFIG" != "xno"; then 22476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5 22477 $as_echo_n "checking for openssl options with pkg-config... " >&6; } 22478 itexists=` 22479 if test -n "$OPENSSL_PCDIR"; then 22480 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR" 22481 export PKG_CONFIG_LIBDIR 22482 fi 22483 $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1` 22484 22485 if test -z "$itexists"; then 22486 PKGCONFIG="no" 22487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22488 $as_echo "no" >&6; } 22489 else 22490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 22491 $as_echo "found" >&6; } 22492 fi 22493 fi 22494 22495 22496 if test "$PKGCONFIG" != "no" ; then 22497 SSL_LIBS=` 22498 if test -n "$OPENSSL_PCDIR"; then 22499 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR" 22500 export PKG_CONFIG_LIBDIR 22501 fi 22502 $PKGCONFIG --libs-only-l --libs-only-other openssl 2>/dev/null` 22503 22504 SSL_LDFLAGS=` 22505 if test -n "$OPENSSL_PCDIR"; then 22506 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR" 22507 export PKG_CONFIG_LIBDIR 22508 fi 22509 $PKGCONFIG --libs-only-L openssl 2>/dev/null` 22510 22511 SSL_CPPFLAGS=` 22512 if test -n "$OPENSSL_PCDIR"; then 22513 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR" 22514 export PKG_CONFIG_LIBDIR 22515 fi 22516 $PKGCONFIG --cflags-only-I openssl 2>/dev/null` 22517 22518 22519 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5 22520 $as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;} 22521 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5 22522 $as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;} 22523 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5 22524 $as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;} 22525 22526 LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'` 22527 22528 LIBS="$SSL_LIBS $LIBS" 22529 fi 22530 fi 22531 22532 CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS" 22533 LDFLAGS="$LDFLAGS $SSL_LDFLAGS" 22534 22535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5 22536 $as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; } 22537 if ${ac_cv_lib_crypto_HMAC_Update+:} false; then : 22538 $as_echo_n "(cached) " >&6 22539 else 22540 ac_check_lib_save_LIBS=$LIBS 22541 LIBS="-lcrypto $LIBS" 22542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22543 /* end confdefs.h. */ 22544 22545 22546 #ifdef __cplusplus 22547 extern "C" 22548 #endif 22549 char HMAC_Update (); 22550 int main (void) 22551 { 22552 return HMAC_Update (); 22553 ; 22554 return 0; 22555 } 22556 _ACEOF 22557 if ac_fn_c_try_link "$LINENO"; then : 22558 ac_cv_lib_crypto_HMAC_Update=yes 22559 else 22560 ac_cv_lib_crypto_HMAC_Update=no 22561 fi 22562 rm -f core conftest.err conftest.$ac_objext \ 22563 conftest$ac_exeext conftest.$ac_ext 22564 LIBS=$ac_check_lib_save_LIBS 22565 fi 22566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5 22567 $as_echo "$ac_cv_lib_crypto_HMAC_Update" >&6; } 22568 if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes; then : 22569 22570 HAVECRYPTO="yes" 22571 LIBS="-lcrypto $LIBS" 22572 22573 else 22574 22575 LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL" 22576 if test "$PKGCONFIG" = "no" ; then 22577 # only set this if pkg-config wasn't used 22578 CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include" 22579 fi 22580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5 22581 $as_echo_n "checking for HMAC_Init_ex in -lcrypto... " >&6; } 22582 if ${ac_cv_lib_crypto_HMAC_Init_ex+:} false; then : 22583 $as_echo_n "(cached) " >&6 22584 else 22585 ac_check_lib_save_LIBS=$LIBS 22586 LIBS="-lcrypto $LIBS" 22587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22588 /* end confdefs.h. */ 22589 22590 22591 #ifdef __cplusplus 22592 extern "C" 22593 #endif 22594 char HMAC_Init_ex (); 22595 int main (void) 22596 { 22597 return HMAC_Init_ex (); 22598 ; 22599 return 0; 22600 } 22601 _ACEOF 22602 if ac_fn_c_try_link "$LINENO"; then : 22603 ac_cv_lib_crypto_HMAC_Init_ex=yes 22604 else 22605 ac_cv_lib_crypto_HMAC_Init_ex=no 22606 fi 22607 rm -f core conftest.err conftest.$ac_objext \ 22608 conftest$ac_exeext conftest.$ac_ext 22609 LIBS=$ac_check_lib_save_LIBS 22610 fi 22611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5 22612 $as_echo "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; } 22613 if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes; then : 22614 22615 HAVECRYPTO="yes" 22616 LIBS="-lcrypto $LIBS" 22617 else 22618 22619 22620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5 22621 $as_echo_n "checking OpenSSL linking with -ldl... " >&6; } 22622 LIBS="$CLEANLIBS -lcrypto -ldl" 22623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22624 /* end confdefs.h. */ 22625 22626 #include <openssl/err.h> 22627 22628 int main (void) 22629 { 22630 22631 ERR_clear_error(); 22632 22633 ; 22634 return 0; 22635 } 22636 _ACEOF 22637 if ac_fn_c_try_link "$LINENO"; then : 22638 22639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22640 $as_echo "yes" >&6; } 22641 HAVECRYPTO="yes" 22642 22643 else 22644 22645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22646 $as_echo "no" >&6; } 22647 22648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5 22649 $as_echo_n "checking OpenSSL linking with -ldl and -lpthread... " >&6; } 22650 LIBS="$CLEANLIBS -lcrypto -ldl -lpthread" 22651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22652 /* end confdefs.h. */ 22653 22654 #include <openssl/err.h> 22655 22656 int main (void) 22657 { 22658 22659 ERR_clear_error(); 22660 22661 ; 22662 return 0; 22663 } 22664 _ACEOF 22665 if ac_fn_c_try_link "$LINENO"; then : 22666 22667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22668 $as_echo "yes" >&6; } 22669 HAVECRYPTO="yes" 22670 22671 else 22672 22673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22674 $as_echo "no" >&6; } 22675 LDFLAGS="$CLEANLDFLAGS" 22676 CPPFLAGS="$CLEANCPPFLAGS" 22677 LIBS="$CLEANLIBS" 22678 22679 22680 fi 22681 rm -f core conftest.err conftest.$ac_objext \ 22682 conftest$ac_exeext conftest.$ac_ext 22683 22684 22685 fi 22686 rm -f core conftest.err conftest.$ac_objext \ 22687 conftest$ac_exeext conftest.$ac_ext 22688 22689 22690 fi 22691 22692 22693 fi 22694 22695 22696 if test X"$HAVECRYPTO" = X"yes"; then 22697 22698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5 22699 $as_echo_n "checking for SSL_connect in -lssl... " >&6; } 22700 if ${ac_cv_lib_ssl_SSL_connect+:} false; then : 22701 $as_echo_n "(cached) " >&6 22702 else 22703 ac_check_lib_save_LIBS=$LIBS 22704 LIBS="-lssl $LIBS" 22705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22706 /* end confdefs.h. */ 22707 22708 22709 #ifdef __cplusplus 22710 extern "C" 22711 #endif 22712 char SSL_connect (); 22713 int main (void) 22714 { 22715 return SSL_connect (); 22716 ; 22717 return 0; 22718 } 22719 _ACEOF 22720 if ac_fn_c_try_link "$LINENO"; then : 22721 ac_cv_lib_ssl_SSL_connect=yes 22722 else 22723 ac_cv_lib_ssl_SSL_connect=no 22724 fi 22725 rm -f core conftest.err conftest.$ac_objext \ 22726 conftest$ac_exeext conftest.$ac_ext 22727 LIBS=$ac_check_lib_save_LIBS 22728 fi 22729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5 22730 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; } 22731 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then : 22732 cat >>confdefs.h <<_ACEOF 22733 #define HAVE_LIBSSL 1 22734 _ACEOF 22735 22736 LIBS="-lssl $LIBS" 22737 22738 fi 22739 22740 22741 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then 22742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5 22743 $as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; }; 22744 OLIBS=$LIBS 22745 LIBS="-lRSAglue -lrsaref $LIBS" 22746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5 22747 $as_echo_n "checking for SSL_connect in -lssl... " >&6; } 22748 if ${ac_cv_lib_ssl_SSL_connect+:} false; then : 22749 $as_echo_n "(cached) " >&6 22750 else 22751 ac_check_lib_save_LIBS=$LIBS 22752 LIBS="-lssl $LIBS" 22753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22754 /* end confdefs.h. */ 22755 22756 22757 #ifdef __cplusplus 22758 extern "C" 22759 #endif 22760 char SSL_connect (); 22761 int main (void) 22762 { 22763 return SSL_connect (); 22764 ; 22765 return 0; 22766 } 22767 _ACEOF 22768 if ac_fn_c_try_link "$LINENO"; then : 22769 ac_cv_lib_ssl_SSL_connect=yes 22770 else 22771 ac_cv_lib_ssl_SSL_connect=no 22772 fi 22773 rm -f core conftest.err conftest.$ac_objext \ 22774 conftest$ac_exeext conftest.$ac_ext 22775 LIBS=$ac_check_lib_save_LIBS 22776 fi 22777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5 22778 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; } 22779 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then : 22780 cat >>confdefs.h <<_ACEOF 22781 #define HAVE_LIBSSL 1 22782 _ACEOF 22783 22784 LIBS="-lssl $LIBS" 22785 22786 fi 22787 22788 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then 22789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22790 $as_echo "no" >&6; } 22791 LIBS=$OLIBS 22792 else 22793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22794 $as_echo "yes" >&6; } 22795 fi 22796 22797 else 22798 22799 for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \ 22800 openssl/pem.h openssl/ssl.h openssl/err.h 22801 do : 22802 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 22803 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 22804 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 22805 cat >>confdefs.h <<_ACEOF 22806 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 22807 _ACEOF 22808 ssl_msg="OpenSSL" 22809 test openssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 22810 OPENSSL_ENABLED=1 22811 22812 $as_echo "#define USE_OPENSSL 1" >>confdefs.h 22813 22814 fi 22815 22816 done 22817 22818 22819 if test $ac_cv_header_openssl_x509_h = no; then 22820 for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h 22821 do : 22822 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 22823 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 22824 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 22825 cat >>confdefs.h <<_ACEOF 22826 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 22827 _ACEOF 22828 22829 fi 22830 22831 done 22832 22833 22834 if test $ac_cv_header_x509_h = yes && 22835 test $ac_cv_header_crypto_h = yes && 22836 test $ac_cv_header_ssl_h = yes; then 22837 ssl_msg="OpenSSL" 22838 OPENSSL_ENABLED=1 22839 fi 22840 fi 22841 fi 22842 22843 if test X"$OPENSSL_ENABLED" != X"1"; then 22844 LIBS="$CLEANLIBS" 22845 fi 22846 22847 if test X"$OPT_SSL" != Xoff && 22848 test "$OPENSSL_ENABLED" != "1"; then 22849 as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5 22850 fi 22851 fi 22852 22853 if test X"$OPENSSL_ENABLED" = X"1"; then 22854 22855 for ac_func in RAND_egd \ 22856 SSL_get_shutdown \ 22857 SSLv2_client_method \ 22858 OpenSSL_version 22859 do : 22860 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22861 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 22862 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 22863 cat >>confdefs.h <<_ACEOF 22864 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 22865 _ACEOF 22866 22867 fi 22868 done 22869 22870 22871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5 22872 $as_echo_n "checking for BoringSSL... " >&6; } 22873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22874 /* end confdefs.h. */ 22875 22876 22877 #include <openssl/base.h> 22878 22879 int main (void) 22880 { 22881 22882 #ifndef OPENSSL_IS_BORINGSSL 22883 #error not boringssl 22884 #endif 22885 22886 ; 22887 return 0; 22888 } 22889 22890 _ACEOF 22891 if ac_fn_c_try_compile "$LINENO"; then : 22892 22893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22894 $as_echo "yes" >&6; } 22895 22896 cat >>confdefs.h <<_ACEOF 22897 #define HAVE_BORINGSSL 1 22898 _ACEOF 22899 22900 ssl_msg="BoringSSL" 22901 22902 else 22903 22904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22905 $as_echo "no" >&6; } 22906 22907 fi 22908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22909 22910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5 22911 $as_echo_n "checking for libressl... " >&6; } 22912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22913 /* end confdefs.h. */ 22914 22915 22916 #include <openssl/opensslv.h> 22917 22918 int main (void) 22919 { 22920 22921 int dummy = LIBRESSL_VERSION_NUMBER; 22922 22923 ; 22924 return 0; 22925 } 22926 22927 _ACEOF 22928 if ac_fn_c_try_compile "$LINENO"; then : 22929 22930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22931 $as_echo "yes" >&6; } 22932 22933 cat >>confdefs.h <<_ACEOF 22934 #define HAVE_LIBRESSL 1 22935 _ACEOF 22936 22937 ssl_msg="libressl" 22938 22939 else 22940 22941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22942 $as_echo "no" >&6; } 22943 22944 fi 22945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22946 fi 22947 22948 if test "$OPENSSL_ENABLED" = "1"; then 22949 if test -n "$LIB_OPENSSL"; then 22950 if test "x$cross_compiling" != "xyes"; then 22951 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$LIB_OPENSSL" 22952 export CURL_LIBRARY_PATH 22953 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&5 22954 $as_echo "$as_me: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&6;} 22955 fi 22956 fi 22957 22958 # 22959 22960 # 22961 tst_api="unknown" 22962 # 22963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5 22964 $as_echo_n "checking for OpenSSL headers version... " >&6; } 22965 22966 OLDCPPFLAGS=$CPPFLAGS 22967 # CPPPFLAG comes from CURL_CPP_P 22968 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 22969 if test -z "$SED"; then 22970 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 22971 fi 22972 if test -z "$GREP"; then 22973 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 22974 fi 22975 22976 tmp_exp="" 22977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22978 /* end confdefs.h. */ 22979 22980 22981 # ifdef USE_OPENSSL 22982 # include <openssl/crypto.h> 22983 # else 22984 # include <crypto.h> 22985 # endif 22986 22987 #ifdef OPENSSL_VERSION_NUMBER 22988 CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER 22989 #endif 22990 22991 22992 _ACEOF 22993 if ac_fn_c_try_cpp "$LINENO"; then : 22994 22995 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 22996 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 22997 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 22998 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 22999 if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then 23000 tmp_exp="" 23001 fi 23002 23003 fi 23004 rm -f conftest.err conftest.i conftest.$ac_ext 23005 if test -z "$tmp_exp"; then 23006 curl_cv_have_def_OPENSSL_VERSION_NUMBER=no 23007 23008 else 23009 curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes 23010 curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp 23011 23012 fi 23013 CPPFLAGS=$OLDCPPFLAGS 23014 23015 if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then 23016 tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'` 23017 case "x$tst_verlen" in 23018 x6) 23019 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3` 23020 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4` 23021 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5` 23022 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix 23023 ;; 23024 x11|x10) 23025 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3` 23026 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5` 23027 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7` 23028 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix 23029 ;; 23030 *) 23031 tst_api="unknown" 23032 ;; 23033 esac 23034 case $tst_api in 23035 0x111) tst_show="1.1.1" ;; 23036 0x110) tst_show="1.1.0" ;; 23037 0x102) tst_show="1.0.2" ;; 23038 0x101) tst_show="1.0.1" ;; 23039 0x100) tst_show="1.0.0" ;; 23040 0x099) tst_show="0.9.9" ;; 23041 0x098) tst_show="0.9.8" ;; 23042 0x097) tst_show="0.9.7" ;; 23043 0x096) tst_show="0.9.6" ;; 23044 0x095) tst_show="0.9.5" ;; 23045 0x094) tst_show="0.9.4" ;; 23046 0x093) tst_show="0.9.3" ;; 23047 0x092) tst_show="0.9.2" ;; 23048 0x091) tst_show="0.9.1" ;; 23049 *) tst_show="unknown" ;; 23050 esac 23051 tst_show="$tst_show - $curl_cv_def_OPENSSL_VERSION_NUMBER" 23052 else 23053 tst_show="unknown" 23054 fi 23055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5 23056 $as_echo "$tst_show" >&6; } 23057 # 23058 curl_openssl_api_headers=$tst_api 23059 23060 23061 # 23062 tst_api="unknown" 23063 # 23064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5 23065 $as_echo_n "checking for OpenSSL library version... " >&6; } 23066 if test "$tst_api" = "unknown"; then 23067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23068 /* end confdefs.h. */ 23069 23070 23071 #define ERR_clear_last_mark innocuous_ERR_clear_last_mark 23072 #ifdef __STDC__ 23073 # include <limits.h> 23074 #else 23075 # include <assert.h> 23076 #endif 23077 #undef ERR_clear_last_mark 23078 #ifdef __cplusplus 23079 extern "C" 23080 #endif 23081 char ERR_clear_last_mark (); 23082 #if defined __stub_ERR_clear_last_mark || defined __stub___ERR_clear_last_mark 23083 choke me 23084 #endif 23085 23086 int main (void) 23087 { 23088 return ERR_clear_last_mark (); 23089 ; 23090 return 0; 23091 } 23092 23093 _ACEOF 23094 if ac_fn_c_try_link "$LINENO"; then : 23095 23096 tst_api="0x111" 23097 23098 fi 23099 rm -f core conftest.err conftest.$ac_objext \ 23100 conftest$ac_exeext conftest.$ac_ext 23101 fi 23102 if test "$tst_api" = "unknown"; then 23103 case $host in 23104 *-*-vms*) 23105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23106 /* end confdefs.h. */ 23107 23108 23109 #define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb 23110 #ifdef __STDC__ 23111 # include <limits.h> 23112 #else 23113 # include <assert.h> 23114 #endif 23115 #undef SSL_CTX_set_not_resumbl_sess_cb 23116 #ifdef __cplusplus 23117 extern "C" 23118 #endif 23119 char SSL_CTX_set_not_resumbl_sess_cb (); 23120 #if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb 23121 choke me 23122 #endif 23123 23124 int main (void) 23125 { 23126 return SSL_CTX_set_not_resumbl_sess_cb (); 23127 ; 23128 return 0; 23129 } 23130 23131 _ACEOF 23132 if ac_fn_c_try_link "$LINENO"; then : 23133 23134 tst_api="0x110" 23135 23136 fi 23137 rm -f core conftest.err conftest.$ac_objext \ 23138 conftest$ac_exeext conftest.$ac_ext 23139 ;; 23140 *) 23141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23142 /* end confdefs.h. */ 23143 23144 23145 #define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback 23146 #ifdef __STDC__ 23147 # include <limits.h> 23148 #else 23149 # include <assert.h> 23150 #endif 23151 #undef SSL_CTX_set_not_resumable_session_callback 23152 #ifdef __cplusplus 23153 extern "C" 23154 #endif 23155 char SSL_CTX_set_not_resumable_session_callback (); 23156 #if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback 23157 choke me 23158 #endif 23159 23160 int main (void) 23161 { 23162 return SSL_CTX_set_not_resumable_session_callback (); 23163 ; 23164 return 0; 23165 } 23166 23167 _ACEOF 23168 if ac_fn_c_try_link "$LINENO"; then : 23169 23170 tst_api="0x110" 23171 23172 fi 23173 rm -f core conftest.err conftest.$ac_objext \ 23174 conftest$ac_exeext conftest.$ac_ext 23175 ;; 23176 esac 23177 fi 23178 if test "$tst_api" = "unknown"; then 23179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23180 /* end confdefs.h. */ 23181 23182 23183 #define SSL_CONF_CTX_new innocuous_SSL_CONF_CTX_new 23184 #ifdef __STDC__ 23185 # include <limits.h> 23186 #else 23187 # include <assert.h> 23188 #endif 23189 #undef SSL_CONF_CTX_new 23190 #ifdef __cplusplus 23191 extern "C" 23192 #endif 23193 char SSL_CONF_CTX_new (); 23194 #if defined __stub_SSL_CONF_CTX_new || defined __stub___SSL_CONF_CTX_new 23195 choke me 23196 #endif 23197 23198 int main (void) 23199 { 23200 return SSL_CONF_CTX_new (); 23201 ; 23202 return 0; 23203 } 23204 23205 _ACEOF 23206 if ac_fn_c_try_link "$LINENO"; then : 23207 23208 tst_api="0x102" 23209 23210 fi 23211 rm -f core conftest.err conftest.$ac_objext \ 23212 conftest$ac_exeext conftest.$ac_ext 23213 fi 23214 if test "$tst_api" = "unknown"; then 23215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23216 /* end confdefs.h. */ 23217 23218 23219 #define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated 23220 #ifdef __STDC__ 23221 # include <limits.h> 23222 #else 23223 # include <assert.h> 23224 #endif 23225 #undef SSL_renegotiate_abbreviated 23226 #ifdef __cplusplus 23227 extern "C" 23228 #endif 23229 char SSL_renegotiate_abbreviated (); 23230 #if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated 23231 choke me 23232 #endif 23233 23234 int main (void) 23235 { 23236 return SSL_renegotiate_abbreviated (); 23237 ; 23238 return 0; 23239 } 23240 23241 _ACEOF 23242 if ac_fn_c_try_link "$LINENO"; then : 23243 23244 tst_api="0x101" 23245 23246 fi 23247 rm -f core conftest.err conftest.$ac_objext \ 23248 conftest$ac_exeext conftest.$ac_ext 23249 fi 23250 if test "$tst_api" = "unknown"; then 23251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23252 /* end confdefs.h. */ 23253 23254 23255 #define OBJ_add_sigid innocuous_OBJ_add_sigid 23256 #ifdef __STDC__ 23257 # include <limits.h> 23258 #else 23259 # include <assert.h> 23260 #endif 23261 #undef OBJ_add_sigid 23262 #ifdef __cplusplus 23263 extern "C" 23264 #endif 23265 char OBJ_add_sigid (); 23266 #if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid 23267 choke me 23268 #endif 23269 23270 int main (void) 23271 { 23272 return OBJ_add_sigid (); 23273 ; 23274 return 0; 23275 } 23276 23277 _ACEOF 23278 if ac_fn_c_try_link "$LINENO"; then : 23279 23280 tst_api="0x100" 23281 23282 fi 23283 rm -f core conftest.err conftest.$ac_objext \ 23284 conftest$ac_exeext conftest.$ac_ext 23285 fi 23286 if test "$tst_api" = "unknown"; then 23287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23288 /* end confdefs.h. */ 23289 23290 23291 #define ERR_set_mark innocuous_ERR_set_mark 23292 #ifdef __STDC__ 23293 # include <limits.h> 23294 #else 23295 # include <assert.h> 23296 #endif 23297 #undef ERR_set_mark 23298 #ifdef __cplusplus 23299 extern "C" 23300 #endif 23301 char ERR_set_mark (); 23302 #if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark 23303 choke me 23304 #endif 23305 23306 int main (void) 23307 { 23308 return ERR_set_mark (); 23309 ; 23310 return 0; 23311 } 23312 23313 _ACEOF 23314 if ac_fn_c_try_link "$LINENO"; then : 23315 23316 tst_api="0x098" 23317 23318 fi 23319 rm -f core conftest.err conftest.$ac_objext \ 23320 conftest$ac_exeext conftest.$ac_ext 23321 fi 23322 if test "$tst_api" = "unknown"; then 23323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23324 /* end confdefs.h. */ 23325 23326 23327 #define ERR_peek_last_error innocuous_ERR_peek_last_error 23328 #ifdef __STDC__ 23329 # include <limits.h> 23330 #else 23331 # include <assert.h> 23332 #endif 23333 #undef ERR_peek_last_error 23334 #ifdef __cplusplus 23335 extern "C" 23336 #endif 23337 char ERR_peek_last_error (); 23338 #if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error 23339 choke me 23340 #endif 23341 23342 int main (void) 23343 { 23344 return ERR_peek_last_error (); 23345 ; 23346 return 0; 23347 } 23348 23349 _ACEOF 23350 if ac_fn_c_try_link "$LINENO"; then : 23351 23352 tst_api="0x097" 23353 23354 fi 23355 rm -f core conftest.err conftest.$ac_objext \ 23356 conftest$ac_exeext conftest.$ac_ext 23357 fi 23358 if test "$tst_api" = "unknown"; then 23359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23360 /* end confdefs.h. */ 23361 23362 23363 #define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT 23364 #ifdef __STDC__ 23365 # include <limits.h> 23366 #else 23367 # include <assert.h> 23368 #endif 23369 #undef c2i_ASN1_OBJECT 23370 #ifdef __cplusplus 23371 extern "C" 23372 #endif 23373 char c2i_ASN1_OBJECT (); 23374 #if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT 23375 choke me 23376 #endif 23377 23378 int main (void) 23379 { 23380 return c2i_ASN1_OBJECT (); 23381 ; 23382 return 0; 23383 } 23384 23385 _ACEOF 23386 if ac_fn_c_try_link "$LINENO"; then : 23387 23388 tst_api="0x096" 23389 23390 fi 23391 rm -f core conftest.err conftest.$ac_objext \ 23392 conftest$ac_exeext conftest.$ac_ext 23393 fi 23394 if test "$tst_api" = "unknown"; then 23395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23396 /* end confdefs.h. */ 23397 23398 23399 #define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose 23400 #ifdef __STDC__ 23401 # include <limits.h> 23402 #else 23403 # include <assert.h> 23404 #endif 23405 #undef SSL_CTX_set_purpose 23406 #ifdef __cplusplus 23407 extern "C" 23408 #endif 23409 char SSL_CTX_set_purpose (); 23410 #if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose 23411 choke me 23412 #endif 23413 23414 int main (void) 23415 { 23416 return SSL_CTX_set_purpose (); 23417 ; 23418 return 0; 23419 } 23420 23421 _ACEOF 23422 if ac_fn_c_try_link "$LINENO"; then : 23423 23424 tst_api="0x095" 23425 23426 fi 23427 rm -f core conftest.err conftest.$ac_objext \ 23428 conftest$ac_exeext conftest.$ac_ext 23429 fi 23430 if test "$tst_api" = "unknown"; then 23431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23432 /* end confdefs.h. */ 23433 23434 23435 #define OBJ_obj2txt innocuous_OBJ_obj2txt 23436 #ifdef __STDC__ 23437 # include <limits.h> 23438 #else 23439 # include <assert.h> 23440 #endif 23441 #undef OBJ_obj2txt 23442 #ifdef __cplusplus 23443 extern "C" 23444 #endif 23445 char OBJ_obj2txt (); 23446 #if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt 23447 choke me 23448 #endif 23449 23450 int main (void) 23451 { 23452 return OBJ_obj2txt (); 23453 ; 23454 return 0; 23455 } 23456 23457 _ACEOF 23458 if ac_fn_c_try_link "$LINENO"; then : 23459 23460 tst_api="0x094" 23461 23462 fi 23463 rm -f core conftest.err conftest.$ac_objext \ 23464 conftest$ac_exeext conftest.$ac_ext 23465 fi 23466 if test "$tst_api" = "unknown"; then 23467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23468 /* end confdefs.h. */ 23469 23470 23471 #define SSL_get_verify_depth innocuous_SSL_get_verify_depth 23472 #ifdef __STDC__ 23473 # include <limits.h> 23474 #else 23475 # include <assert.h> 23476 #endif 23477 #undef SSL_get_verify_depth 23478 #ifdef __cplusplus 23479 extern "C" 23480 #endif 23481 char SSL_get_verify_depth (); 23482 #if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth 23483 choke me 23484 #endif 23485 23486 int main (void) 23487 { 23488 return SSL_get_verify_depth (); 23489 ; 23490 return 0; 23491 } 23492 23493 _ACEOF 23494 if ac_fn_c_try_link "$LINENO"; then : 23495 23496 tst_api="0x093" 23497 23498 fi 23499 rm -f core conftest.err conftest.$ac_objext \ 23500 conftest$ac_exeext conftest.$ac_ext 23501 fi 23502 if test "$tst_api" = "unknown"; then 23503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23504 /* end confdefs.h. */ 23505 23506 23507 #define SSL_library_init innocuous_SSL_library_init 23508 #ifdef __STDC__ 23509 # include <limits.h> 23510 #else 23511 # include <assert.h> 23512 #endif 23513 #undef SSL_library_init 23514 #ifdef __cplusplus 23515 extern "C" 23516 #endif 23517 char SSL_library_init (); 23518 #if defined __stub_SSL_library_init || defined __stub___SSL_library_init 23519 choke me 23520 #endif 23521 23522 int main (void) 23523 { 23524 return SSL_library_init (); 23525 ; 23526 return 0; 23527 } 23528 23529 _ACEOF 23530 if ac_fn_c_try_link "$LINENO"; then : 23531 23532 tst_api="0x092" 23533 23534 fi 23535 rm -f core conftest.err conftest.$ac_objext \ 23536 conftest$ac_exeext conftest.$ac_ext 23537 fi 23538 if test "$tst_api" = "unknown"; then 23539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23540 /* end confdefs.h. */ 23541 23542 23543 #define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list 23544 #ifdef __STDC__ 23545 # include <limits.h> 23546 #else 23547 # include <assert.h> 23548 #endif 23549 #undef SSL_CTX_set_cipher_list 23550 #ifdef __cplusplus 23551 extern "C" 23552 #endif 23553 char SSL_CTX_set_cipher_list (); 23554 #if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list 23555 choke me 23556 #endif 23557 23558 int main (void) 23559 { 23560 return SSL_CTX_set_cipher_list (); 23561 ; 23562 return 0; 23563 } 23564 23565 _ACEOF 23566 if ac_fn_c_try_link "$LINENO"; then : 23567 23568 tst_api="0x091" 23569 23570 fi 23571 rm -f core conftest.err conftest.$ac_objext \ 23572 conftest$ac_exeext conftest.$ac_ext 23573 fi 23574 case $tst_api in 23575 0x111) tst_show="1.1.1" ;; 23576 0x110) tst_show="1.1.0" ;; 23577 0x102) tst_show="1.0.2" ;; 23578 0x101) tst_show="1.0.1" ;; 23579 0x100) tst_show="1.0.0" ;; 23580 0x099) tst_show="0.9.9" ;; 23581 0x098) tst_show="0.9.8" ;; 23582 0x097) tst_show="0.9.7" ;; 23583 0x096) tst_show="0.9.6" ;; 23584 0x095) tst_show="0.9.5" ;; 23585 0x094) tst_show="0.9.4" ;; 23586 0x093) tst_show="0.9.3" ;; 23587 0x092) tst_show="0.9.2" ;; 23588 0x091) tst_show="0.9.1" ;; 23589 *) tst_show="unknown" ;; 23590 esac 23591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5 23592 $as_echo "$tst_show" >&6; } 23593 # 23594 curl_openssl_api_library=$tst_api 23595 23596 # 23597 tst_match="yes" 23598 # 23599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5 23600 $as_echo_n "checking for OpenSSL headers and library versions matching... " >&6; } 23601 if test "$curl_openssl_api_headers" = "unknown" || 23602 test "$curl_openssl_api_library" = "unknown"; then 23603 tst_match="fail" 23604 tst_warns="Can not compare OpenSSL headers and library versions." 23605 elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then 23606 tst_match="no" 23607 tst_warns="OpenSSL headers and library versions do not match." 23608 fi 23609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5 23610 $as_echo "$tst_match" >&6; } 23611 if test "$tst_match" != "yes"; then 23612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5 23613 $as_echo "$as_me: WARNING: $tst_warns" >&2;} 23614 fi 23615 23616 check_for_ca_bundle=1 23617 fi 23618 23619 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg" 23620 fi 23621 23622 23623 if test X"$OPENSSL_ENABLED" = X"1"; then 23624 23625 # Check whether --with-egd-socket was given. 23626 if test "${with_egd_socket+set}" = set; then : 23627 withval=$with_egd_socket; EGD_SOCKET="$withval" 23628 23629 fi 23630 23631 if test -n "$EGD_SOCKET" ; then 23632 23633 cat >>confdefs.h <<_ACEOF 23634 #define EGD_SOCKET "$EGD_SOCKET" 23635 _ACEOF 23636 23637 fi 23638 23639 23640 # Check whether --with-random was given. 23641 if test "${with_random+set}" = set; then : 23642 withval=$with_random; RANDOM_FILE="$withval" 23643 else 23644 23645 if test x$cross_compiling != xyes; then 23646 as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh` 23647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5 23648 $as_echo_n "checking for \"/dev/urandom\"... " >&6; } 23649 if eval \${$as_ac_File+:} false; then : 23650 $as_echo_n "(cached) " >&6 23651 else 23652 test "$cross_compiling" = yes && 23653 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 23654 if test -r ""/dev/urandom""; then 23655 eval "$as_ac_File=yes" 23656 else 23657 eval "$as_ac_File=no" 23658 fi 23659 fi 23660 eval ac_res=\$$as_ac_File 23661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 23662 $as_echo "$ac_res" >&6; } 23663 if eval test \"x\$"$as_ac_File"\" = x"yes"; then : 23664 RANDOM_FILE="/dev/urandom" 23665 fi 23666 23667 else 23668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5 23669 $as_echo "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;} 23670 fi 23671 23672 23673 fi 23674 23675 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then 23676 23677 23678 cat >>confdefs.h <<_ACEOF 23679 #define RANDOM_FILE "$RANDOM_FILE" 23680 _ACEOF 23681 23682 fi 23683 fi 23684 23685 if test "$OPENSSL_ENABLED" = "1"; then 23686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5 23687 $as_echo_n "checking for SRP_Calc_client_key in -lcrypto... " >&6; } 23688 if ${ac_cv_lib_crypto_SRP_Calc_client_key+:} false; then : 23689 $as_echo_n "(cached) " >&6 23690 else 23691 ac_check_lib_save_LIBS=$LIBS 23692 LIBS="-lcrypto $LIBS" 23693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23694 /* end confdefs.h. */ 23695 23696 23697 #ifdef __cplusplus 23698 extern "C" 23699 #endif 23700 char SRP_Calc_client_key (); 23701 int main (void) 23702 { 23703 return SRP_Calc_client_key (); 23704 ; 23705 return 0; 23706 } 23707 _ACEOF 23708 if ac_fn_c_try_link "$LINENO"; then : 23709 ac_cv_lib_crypto_SRP_Calc_client_key=yes 23710 else 23711 ac_cv_lib_crypto_SRP_Calc_client_key=no 23712 fi 23713 rm -f core conftest.err conftest.$ac_objext \ 23714 conftest$ac_exeext conftest.$ac_ext 23715 LIBS=$ac_check_lib_save_LIBS 23716 fi 23717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5 23718 $as_echo "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; } 23719 if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes; then : 23720 23721 23722 $as_echo "#define HAVE_OPENSSL_SRP 1" >>confdefs.h 23723 23724 HAVE_OPENSSL_SRP=1 23725 23726 23727 fi 23728 23729 fi 23730 23731 if test X"$OPENSSL_ENABLED" = X"1"; then 23732 # Check whether --enable-openssl-auto-load-config was given. 23733 if test "${enable_openssl_auto_load_config+set}" = set; then : 23734 enableval=$enable_openssl_auto_load_config; if test X"$enableval" = X"no"; then 23735 { $as_echo "$as_me:${as_lineno-$LINENO}: automatic loading of OpenSSL configuration disabled" >&5 23736 $as_echo "$as_me: automatic loading of OpenSSL configuration disabled" >&6;} 23737 23738 $as_echo "#define CURL_DISABLE_OPENSSL_AUTO_LOAD_CONFIG 1" >>confdefs.h 23739 23740 fi 23741 23742 fi 23743 23744 fi 23745 23746 23747 OPT_GNUTLS=no 23748 23749 23750 # Check whether --with-gnutls was given. 23751 if test "${with_gnutls+set}" = set; then : 23752 withval=$with_gnutls; OPT_GNUTLS=$withval 23753 fi 23754 23755 23756 if test -z "$ssl_backends" -o "x$OPT_GNUTLS" != xno; then 23757 ssl_msg= 23758 23759 if test X"$OPT_GNUTLS" != Xno; then 23760 23761 addld="" 23762 addlib="" 23763 gtlslib="" 23764 version="" 23765 addcflags="" 23766 23767 if test "x$OPT_GNUTLS" = "xyes"; then 23768 23769 if test -n "$PKG_CONFIG"; then 23770 PKGCONFIG="$PKG_CONFIG" 23771 else 23772 if test -n "$ac_tool_prefix"; then 23773 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 23774 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 23775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23776 $as_echo_n "checking for $ac_word... " >&6; } 23777 if ${ac_cv_path_PKGCONFIG+:} false; then : 23778 $as_echo_n "(cached) " >&6 23779 else 23780 case $PKGCONFIG in 23781 [\\/]* | ?:[\\/]*) 23782 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 23783 ;; 23784 *) 23785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23786 as_dummy="$PATH:/usr/bin:/usr/local/bin" 23787 for as_dir in $as_dummy 23788 do 23789 IFS=$as_save_IFS 23790 test -z "$as_dir" && as_dir=. 23791 for ac_exec_ext in '' $ac_executable_extensions; do 23792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23793 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 23794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23795 break 2 23796 fi 23797 done 23798 done 23799 IFS=$as_save_IFS 23800 23801 ;; 23802 esac 23803 fi 23804 PKGCONFIG=$ac_cv_path_PKGCONFIG 23805 if test -n "$PKGCONFIG"; then 23806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 23807 $as_echo "$PKGCONFIG" >&6; } 23808 else 23809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23810 $as_echo "no" >&6; } 23811 fi 23812 23813 23814 fi 23815 if test -z "$ac_cv_path_PKGCONFIG"; then 23816 ac_pt_PKGCONFIG=$PKGCONFIG 23817 # Extract the first word of "pkg-config", so it can be a program name with args. 23818 set dummy pkg-config; ac_word=$2 23819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23820 $as_echo_n "checking for $ac_word... " >&6; } 23821 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : 23822 $as_echo_n "(cached) " >&6 23823 else 23824 case $ac_pt_PKGCONFIG in 23825 [\\/]* | ?:[\\/]*) 23826 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 23827 ;; 23828 *) 23829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23830 as_dummy="$PATH:/usr/bin:/usr/local/bin" 23831 for as_dir in $as_dummy 23832 do 23833 IFS=$as_save_IFS 23834 test -z "$as_dir" && as_dir=. 23835 for ac_exec_ext in '' $ac_executable_extensions; do 23836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23837 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 23838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23839 break 2 23840 fi 23841 done 23842 done 23843 IFS=$as_save_IFS 23844 23845 ;; 23846 esac 23847 fi 23848 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 23849 if test -n "$ac_pt_PKGCONFIG"; then 23850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 23851 $as_echo "$ac_pt_PKGCONFIG" >&6; } 23852 else 23853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23854 $as_echo "no" >&6; } 23855 fi 23856 23857 if test "x$ac_pt_PKGCONFIG" = x; then 23858 PKGCONFIG="no" 23859 else 23860 case $cross_compiling:$ac_tool_warned in 23861 yes:) 23862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 23863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 23864 ac_tool_warned=yes ;; 23865 esac 23866 PKGCONFIG=$ac_pt_PKGCONFIG 23867 fi 23868 else 23869 PKGCONFIG="$ac_cv_path_PKGCONFIG" 23870 fi 23871 23872 fi 23873 23874 if test "x$PKGCONFIG" != "xno"; then 23875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5 23876 $as_echo_n "checking for gnutls options with pkg-config... " >&6; } 23877 itexists=` 23878 if test -n ""; then 23879 PKG_CONFIG_LIBDIR="" 23880 export PKG_CONFIG_LIBDIR 23881 fi 23882 $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1` 23883 23884 if test -z "$itexists"; then 23885 PKGCONFIG="no" 23886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23887 $as_echo "no" >&6; } 23888 else 23889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 23890 $as_echo "found" >&6; } 23891 fi 23892 fi 23893 23894 23895 if test "$PKGCONFIG" != "no" ; then 23896 addlib=`$PKGCONFIG --libs-only-l gnutls` 23897 addld=`$PKGCONFIG --libs-only-L gnutls` 23898 addcflags=`$PKGCONFIG --cflags-only-I gnutls` 23899 version=`$PKGCONFIG --modversion gnutls` 23900 gtlslib=`echo $addld | $SED -e 's/-L//'` 23901 else 23902 check=`libgnutls-config --version 2>/dev/null` 23903 if test -n "$check"; then 23904 addlib=`libgnutls-config --libs` 23905 addcflags=`libgnutls-config --cflags` 23906 version=`libgnutls-config --version` 23907 gtlslib=`libgnutls-config --prefix`/lib$libsuff 23908 fi 23909 fi 23910 else 23911 cfg=$OPT_GNUTLS/bin/libgnutls-config 23912 check=`$cfg --version 2>/dev/null` 23913 if test -n "$check"; then 23914 addlib=`$cfg --libs` 23915 addcflags=`$cfg --cflags` 23916 version=`$cfg --version` 23917 gtlslib=`$cfg --prefix`/lib$libsuff 23918 else 23919 addlib=-lgnutls 23920 addld=-L$OPT_GNUTLS/lib$libsuff 23921 addcflags=-I$OPT_GNUTLS/include 23922 version="" # we just don't know 23923 gtlslib=$OPT_GNUTLS/lib$libsuff 23924 fi 23925 fi 23926 23927 if test -z "$version"; then 23928 version="unknown" 23929 fi 23930 23931 if test -n "$addlib"; then 23932 23933 CLEANLIBS="$LIBS" 23934 CLEANCPPFLAGS="$CPPFLAGS" 23935 CLEANLDFLAGS="$LDFLAGS" 23936 23937 LIBS="$addlib $LIBS" 23938 LDFLAGS="$LDFLAGS $addld" 23939 if test "$addcflags" != "-I/usr/include"; then 23940 CPPFLAGS="$CPPFLAGS $addcflags" 23941 fi 23942 23943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5 23944 $as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; } 23945 if ${ac_cv_lib_gnutls_gnutls_check_version+:} false; then : 23946 $as_echo_n "(cached) " >&6 23947 else 23948 ac_check_lib_save_LIBS=$LIBS 23949 LIBS="-lgnutls $LIBS" 23950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23951 /* end confdefs.h. */ 23952 23953 23954 #ifdef __cplusplus 23955 extern "C" 23956 #endif 23957 char gnutls_check_version (); 23958 int main (void) 23959 { 23960 return gnutls_check_version (); 23961 ; 23962 return 0; 23963 } 23964 _ACEOF 23965 if ac_fn_c_try_link "$LINENO"; then : 23966 ac_cv_lib_gnutls_gnutls_check_version=yes 23967 else 23968 ac_cv_lib_gnutls_gnutls_check_version=no 23969 fi 23970 rm -f core conftest.err conftest.$ac_objext \ 23971 conftest$ac_exeext conftest.$ac_ext 23972 LIBS=$ac_check_lib_save_LIBS 23973 fi 23974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5 23975 $as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; } 23976 if test "x$ac_cv_lib_gnutls_gnutls_check_version" = xyes; then : 23977 23978 23979 $as_echo "#define USE_GNUTLS 1" >>confdefs.h 23980 23981 USE_GNUTLS=1 23982 23983 GNUTLS_ENABLED=1 23984 USE_GNUTLS="yes" 23985 ssl_msg="GnuTLS" 23986 test gnutls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 23987 23988 else 23989 23990 LIBS="$CLEANLIBS" 23991 CPPFLAGS="$CLEANCPPFLAGS" 23992 23993 fi 23994 23995 23996 if test "x$USE_GNUTLS" = "xyes"; then 23997 { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5 23998 $as_echo "$as_me: detected GnuTLS version $version" >&6;} 23999 check_for_ca_bundle=1 24000 if test -n "$gtlslib"; then 24001 if test "x$cross_compiling" != "xyes"; then 24002 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$gtlslib" 24003 export CURL_LIBRARY_PATH 24004 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to CURL_LIBRARY_PATH" >&5 24005 $as_echo "$as_me: Added $gtlslib to CURL_LIBRARY_PATH" >&6;} 24006 fi 24007 fi 24008 for ac_func in gnutls_certificate_set_x509_key_file2 gnutls_alpn_set_protocols gnutls_ocsp_req_init 24009 do : 24010 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 24011 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 24012 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 24013 cat >>confdefs.h <<_ACEOF 24014 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 24015 _ACEOF 24016 24017 fi 24018 done 24019 24020 fi 24021 24022 fi 24023 24024 fi 24025 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg" 24026 fi 24027 24028 24029 if test "$GNUTLS_ENABLED" = "1"; then 24030 USE_GNUTLS_NETTLE= 24031 # First check if we can detect either crypto library via transitive linking 24032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5 24033 $as_echo_n "checking for nettle_MD5Init in -lgnutls... " >&6; } 24034 if ${ac_cv_lib_gnutls_nettle_MD5Init+:} false; then : 24035 $as_echo_n "(cached) " >&6 24036 else 24037 ac_check_lib_save_LIBS=$LIBS 24038 LIBS="-lgnutls $LIBS" 24039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24040 /* end confdefs.h. */ 24041 24042 24043 #ifdef __cplusplus 24044 extern "C" 24045 #endif 24046 char nettle_MD5Init (); 24047 int main (void) 24048 { 24049 return nettle_MD5Init (); 24050 ; 24051 return 0; 24052 } 24053 _ACEOF 24054 if ac_fn_c_try_link "$LINENO"; then : 24055 ac_cv_lib_gnutls_nettle_MD5Init=yes 24056 else 24057 ac_cv_lib_gnutls_nettle_MD5Init=no 24058 fi 24059 rm -f core conftest.err conftest.$ac_objext \ 24060 conftest$ac_exeext conftest.$ac_ext 24061 LIBS=$ac_check_lib_save_LIBS 24062 fi 24063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5 24064 $as_echo "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; } 24065 if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes; then : 24066 USE_GNUTLS_NETTLE=1 24067 fi 24068 24069 if test "$USE_GNUTLS_NETTLE" = ""; then 24070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgnutls" >&5 24071 $as_echo_n "checking for gcry_control in -lgnutls... " >&6; } 24072 if ${ac_cv_lib_gnutls_gcry_control+:} false; then : 24073 $as_echo_n "(cached) " >&6 24074 else 24075 ac_check_lib_save_LIBS=$LIBS 24076 LIBS="-lgnutls $LIBS" 24077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24078 /* end confdefs.h. */ 24079 24080 24081 #ifdef __cplusplus 24082 extern "C" 24083 #endif 24084 char gcry_control (); 24085 int main (void) 24086 { 24087 return gcry_control (); 24088 ; 24089 return 0; 24090 } 24091 _ACEOF 24092 if ac_fn_c_try_link "$LINENO"; then : 24093 ac_cv_lib_gnutls_gcry_control=yes 24094 else 24095 ac_cv_lib_gnutls_gcry_control=no 24096 fi 24097 rm -f core conftest.err conftest.$ac_objext \ 24098 conftest$ac_exeext conftest.$ac_ext 24099 LIBS=$ac_check_lib_save_LIBS 24100 fi 24101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gcry_control" >&5 24102 $as_echo "$ac_cv_lib_gnutls_gcry_control" >&6; } 24103 if test "x$ac_cv_lib_gnutls_gcry_control" = xyes; then : 24104 USE_GNUTLS_NETTLE=0 24105 fi 24106 24107 fi 24108 # If not, try linking directly to both of them to see if they are available 24109 if test "$USE_GNUTLS_NETTLE" = ""; then 24110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5 24111 $as_echo_n "checking for nettle_MD5Init in -lnettle... " >&6; } 24112 if ${ac_cv_lib_nettle_nettle_MD5Init+:} false; then : 24113 $as_echo_n "(cached) " >&6 24114 else 24115 ac_check_lib_save_LIBS=$LIBS 24116 LIBS="-lnettle $LIBS" 24117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24118 /* end confdefs.h. */ 24119 24120 24121 #ifdef __cplusplus 24122 extern "C" 24123 #endif 24124 char nettle_MD5Init (); 24125 int main (void) 24126 { 24127 return nettle_MD5Init (); 24128 ; 24129 return 0; 24130 } 24131 _ACEOF 24132 if ac_fn_c_try_link "$LINENO"; then : 24133 ac_cv_lib_nettle_nettle_MD5Init=yes 24134 else 24135 ac_cv_lib_nettle_nettle_MD5Init=no 24136 fi 24137 rm -f core conftest.err conftest.$ac_objext \ 24138 conftest$ac_exeext conftest.$ac_ext 24139 LIBS=$ac_check_lib_save_LIBS 24140 fi 24141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5 24142 $as_echo "$ac_cv_lib_nettle_nettle_MD5Init" >&6; } 24143 if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes; then : 24144 USE_GNUTLS_NETTLE=1 24145 fi 24146 24147 fi 24148 if test "$USE_GNUTLS_NETTLE" = ""; then 24149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5 24150 $as_echo_n "checking for gcry_control in -lgcrypt... " >&6; } 24151 if ${ac_cv_lib_gcrypt_gcry_control+:} false; then : 24152 $as_echo_n "(cached) " >&6 24153 else 24154 ac_check_lib_save_LIBS=$LIBS 24155 LIBS="-lgcrypt $LIBS" 24156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24157 /* end confdefs.h. */ 24158 24159 24160 #ifdef __cplusplus 24161 extern "C" 24162 #endif 24163 char gcry_control (); 24164 int main (void) 24165 { 24166 return gcry_control (); 24167 ; 24168 return 0; 24169 } 24170 _ACEOF 24171 if ac_fn_c_try_link "$LINENO"; then : 24172 ac_cv_lib_gcrypt_gcry_control=yes 24173 else 24174 ac_cv_lib_gcrypt_gcry_control=no 24175 fi 24176 rm -f core conftest.err conftest.$ac_objext \ 24177 conftest$ac_exeext conftest.$ac_ext 24178 LIBS=$ac_check_lib_save_LIBS 24179 fi 24180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5 24181 $as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; } 24182 if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then : 24183 USE_GNUTLS_NETTLE=0 24184 fi 24185 24186 fi 24187 if test "$USE_GNUTLS_NETTLE" = ""; then 24188 as_fn_error $? "GnuTLS found, but neither gcrypt nor nettle found" "$LINENO" 5 24189 fi 24190 if test "$USE_GNUTLS_NETTLE" = "1"; then 24191 24192 $as_echo "#define USE_GNUTLS_NETTLE 1" >>confdefs.h 24193 24194 USE_GNUTLS_NETTLE=1 24195 24196 LIBS="-lnettle $LIBS" 24197 else 24198 LIBS="-lgcrypt $LIBS" 24199 fi 24200 fi 24201 24202 if test "$GNUTLS_ENABLED" = "1"; then 24203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5 24204 $as_echo_n "checking for gnutls_srp_verifier in -lgnutls... " >&6; } 24205 if ${ac_cv_lib_gnutls_gnutls_srp_verifier+:} false; then : 24206 $as_echo_n "(cached) " >&6 24207 else 24208 ac_check_lib_save_LIBS=$LIBS 24209 LIBS="-lgnutls $LIBS" 24210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24211 /* end confdefs.h. */ 24212 24213 24214 #ifdef __cplusplus 24215 extern "C" 24216 #endif 24217 char gnutls_srp_verifier (); 24218 int main (void) 24219 { 24220 return gnutls_srp_verifier (); 24221 ; 24222 return 0; 24223 } 24224 _ACEOF 24225 if ac_fn_c_try_link "$LINENO"; then : 24226 ac_cv_lib_gnutls_gnutls_srp_verifier=yes 24227 else 24228 ac_cv_lib_gnutls_gnutls_srp_verifier=no 24229 fi 24230 rm -f core conftest.err conftest.$ac_objext \ 24231 conftest$ac_exeext conftest.$ac_ext 24232 LIBS=$ac_check_lib_save_LIBS 24233 fi 24234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5 24235 $as_echo "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; } 24236 if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes; then : 24237 24238 24239 $as_echo "#define HAVE_GNUTLS_SRP 1" >>confdefs.h 24240 24241 HAVE_GNUTLS_SRP=1 24242 24243 24244 fi 24245 24246 fi 24247 24248 24249 OPT_POLARSSL=no 24250 24251 _cppflags=$CPPFLAGS 24252 _ldflags=$LDFLAGS 24253 24254 # Check whether --with-polarssl was given. 24255 if test "${with_polarssl+set}" = set; then : 24256 withval=$with_polarssl; OPT_POLARSSL=$withval 24257 fi 24258 24259 24260 if test -z "$ssl_backends" -o "x$OPT_POLARSSL" != xno; then 24261 ssl_msg= 24262 24263 if test X"$OPT_POLARSSL" != Xno; then 24264 24265 if test "$OPT_POLARSSL" = "yes"; then 24266 OPT_POLARSSL="" 24267 fi 24268 24269 if test -z "$OPT_POLARSSL" ; then 24270 24271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for havege_init in -lpolarssl" >&5 24272 $as_echo_n "checking for havege_init in -lpolarssl... " >&6; } 24273 if ${ac_cv_lib_polarssl_havege_init+:} false; then : 24274 $as_echo_n "(cached) " >&6 24275 else 24276 ac_check_lib_save_LIBS=$LIBS 24277 LIBS="-lpolarssl $LIBS" 24278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24279 /* end confdefs.h. */ 24280 24281 24282 #ifdef __cplusplus 24283 extern "C" 24284 #endif 24285 char havege_init (); 24286 int main (void) 24287 { 24288 return havege_init (); 24289 ; 24290 return 0; 24291 } 24292 _ACEOF 24293 if ac_fn_c_try_link "$LINENO"; then : 24294 ac_cv_lib_polarssl_havege_init=yes 24295 else 24296 ac_cv_lib_polarssl_havege_init=no 24297 fi 24298 rm -f core conftest.err conftest.$ac_objext \ 24299 conftest$ac_exeext conftest.$ac_ext 24300 LIBS=$ac_check_lib_save_LIBS 24301 fi 24302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_havege_init" >&5 24303 $as_echo "$ac_cv_lib_polarssl_havege_init" >&6; } 24304 if test "x$ac_cv_lib_polarssl_havege_init" = xyes; then : 24305 24306 24307 $as_echo "#define USE_POLARSSL 1" >>confdefs.h 24308 24309 USE_POLARSSL=1 24310 24311 POLARSSL_ENABLED=1 24312 USE_POLARSSL="yes" 24313 ssl_msg="PolarSSL" 24314 test polarssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 24315 24316 fi 24317 24318 fi 24319 24320 addld="" 24321 addlib="" 24322 addcflags="" 24323 polarssllib="" 24324 24325 if test "x$USE_POLARSSL" != "xyes"; then 24326 addld=-L$OPT_POLARSSL/lib$libsuff 24327 addcflags=-I$OPT_POLARSSL/include 24328 polarssllib=$OPT_POLARSSL/lib$libsuff 24329 24330 LDFLAGS="$LDFLAGS $addld" 24331 if test "$addcflags" != "-I/usr/include"; then 24332 CPPFLAGS="$CPPFLAGS $addcflags" 24333 fi 24334 24335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5 24336 $as_echo_n "checking for ssl_init in -lpolarssl... " >&6; } 24337 if ${ac_cv_lib_polarssl_ssl_init+:} false; then : 24338 $as_echo_n "(cached) " >&6 24339 else 24340 ac_check_lib_save_LIBS=$LIBS 24341 LIBS="-lpolarssl $LIBS" 24342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24343 /* end confdefs.h. */ 24344 24345 24346 #ifdef __cplusplus 24347 extern "C" 24348 #endif 24349 char ssl_init (); 24350 int main (void) 24351 { 24352 return ssl_init (); 24353 ; 24354 return 0; 24355 } 24356 _ACEOF 24357 if ac_fn_c_try_link "$LINENO"; then : 24358 ac_cv_lib_polarssl_ssl_init=yes 24359 else 24360 ac_cv_lib_polarssl_ssl_init=no 24361 fi 24362 rm -f core conftest.err conftest.$ac_objext \ 24363 conftest$ac_exeext conftest.$ac_ext 24364 LIBS=$ac_check_lib_save_LIBS 24365 fi 24366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5 24367 $as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; } 24368 if test "x$ac_cv_lib_polarssl_ssl_init" = xyes; then : 24369 24370 24371 $as_echo "#define USE_POLARSSL 1" >>confdefs.h 24372 24373 USE_POLARSSL=1 24374 24375 POLARSSL_ENABLED=1 24376 USE_POLARSSL="yes" 24377 ssl_msg="PolarSSL" 24378 test polarssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 24379 24380 else 24381 24382 CPPFLAGS=$_cppflags 24383 LDFLAGS=$_ldflags 24384 24385 fi 24386 24387 fi 24388 24389 if test "x$USE_POLARSSL" = "xyes"; then 24390 { $as_echo "$as_me:${as_lineno-$LINENO}: detected PolarSSL" >&5 24391 $as_echo "$as_me: detected PolarSSL" >&6;} 24392 check_for_ca_bundle=1 24393 LIBS="-lpolarssl $LIBS" 24394 24395 if test -n "$polarssllib"; then 24396 if test "x$cross_compiling" != "xyes"; then 24397 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$polarssllib" 24398 export CURL_LIBRARY_PATH 24399 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $polarssllib to CURL_LIBRARY_PATH" >&5 24400 $as_echo "$as_me: Added $polarssllib to CURL_LIBRARY_PATH" >&6;} 24401 fi 24402 fi 24403 fi 24404 24405 fi 24406 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg" 24407 fi 24408 24409 24410 OPT_MBEDTLS=no 24411 24412 _cppflags=$CPPFLAGS 24413 _ldflags=$LDFLAGS 24414 24415 # Check whether --with-mbedtls was given. 24416 if test "${with_mbedtls+set}" = set; then : 24417 withval=$with_mbedtls; OPT_MBEDTLS=$withval 24418 fi 24419 24420 24421 if test -z "$ssl_backends" -o "x$OPT_MBEDTLS" != xno; then 24422 ssl_msg= 24423 24424 if test X"$OPT_MBEDTLS" != Xno; then 24425 24426 if test "$OPT_MBEDTLS" = "yes"; then 24427 OPT_MBEDTLS="" 24428 fi 24429 24430 if test -z "$OPT_MBEDTLS" ; then 24431 24432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5 24433 $as_echo_n "checking for mbedtls_havege_init in -lmbedtls... " >&6; } 24434 if ${ac_cv_lib_mbedtls_mbedtls_havege_init+:} false; then : 24435 $as_echo_n "(cached) " >&6 24436 else 24437 ac_check_lib_save_LIBS=$LIBS 24438 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS" 24439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24440 /* end confdefs.h. */ 24441 24442 24443 #ifdef __cplusplus 24444 extern "C" 24445 #endif 24446 char mbedtls_havege_init (); 24447 int main (void) 24448 { 24449 return mbedtls_havege_init (); 24450 ; 24451 return 0; 24452 } 24453 _ACEOF 24454 if ac_fn_c_try_link "$LINENO"; then : 24455 ac_cv_lib_mbedtls_mbedtls_havege_init=yes 24456 else 24457 ac_cv_lib_mbedtls_mbedtls_havege_init=no 24458 fi 24459 rm -f core conftest.err conftest.$ac_objext \ 24460 conftest$ac_exeext conftest.$ac_ext 24461 LIBS=$ac_check_lib_save_LIBS 24462 fi 24463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5 24464 $as_echo "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; } 24465 if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes; then : 24466 24467 24468 $as_echo "#define USE_MBEDTLS 1" >>confdefs.h 24469 24470 USE_MBEDTLS=1 24471 24472 MBEDTLS_ENABLED=1 24473 USE_MBEDTLS="yes" 24474 ssl_msg="mbedTLS" 24475 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 24476 24477 fi 24478 24479 fi 24480 24481 addld="" 24482 addlib="" 24483 addcflags="" 24484 mbedtlslib="" 24485 24486 if test "x$USE_MBEDTLS" != "xyes"; then 24487 addld=-L$OPT_MBEDTLS/lib$libsuff 24488 addcflags=-I$OPT_MBEDTLS/include 24489 mbedtlslib=$OPT_MBEDTLS/lib$libsuff 24490 24491 LDFLAGS="$LDFLAGS $addld" 24492 if test "$addcflags" != "-I/usr/include"; then 24493 CPPFLAGS="$CPPFLAGS $addcflags" 24494 fi 24495 24496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5 24497 $as_echo_n "checking for mbedtls_ssl_init in -lmbedtls... " >&6; } 24498 if ${ac_cv_lib_mbedtls_mbedtls_ssl_init+:} false; then : 24499 $as_echo_n "(cached) " >&6 24500 else 24501 ac_check_lib_save_LIBS=$LIBS 24502 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS" 24503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24504 /* end confdefs.h. */ 24505 24506 24507 #ifdef __cplusplus 24508 extern "C" 24509 #endif 24510 char mbedtls_ssl_init (); 24511 int main (void) 24512 { 24513 return mbedtls_ssl_init (); 24514 ; 24515 return 0; 24516 } 24517 _ACEOF 24518 if ac_fn_c_try_link "$LINENO"; then : 24519 ac_cv_lib_mbedtls_mbedtls_ssl_init=yes 24520 else 24521 ac_cv_lib_mbedtls_mbedtls_ssl_init=no 24522 fi 24523 rm -f core conftest.err conftest.$ac_objext \ 24524 conftest$ac_exeext conftest.$ac_ext 24525 LIBS=$ac_check_lib_save_LIBS 24526 fi 24527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5 24528 $as_echo "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; } 24529 if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes; then : 24530 24531 24532 $as_echo "#define USE_MBEDTLS 1" >>confdefs.h 24533 24534 USE_MBEDTLS=1 24535 24536 MBEDTLS_ENABLED=1 24537 USE_MBEDTLS="yes" 24538 ssl_msg="mbedTLS" 24539 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 24540 24541 else 24542 24543 CPPFLAGS=$_cppflags 24544 LDFLAGS=$_ldflags 24545 24546 fi 24547 24548 fi 24549 24550 if test "x$USE_MBEDTLS" = "xyes"; then 24551 { $as_echo "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5 24552 $as_echo "$as_me: detected mbedTLS" >&6;} 24553 check_for_ca_bundle=1 24554 24555 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS" 24556 24557 if test -n "$mbedtlslib"; then 24558 if test "x$cross_compiling" != "xyes"; then 24559 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$mbedtlslib" 24560 export CURL_LIBRARY_PATH 24561 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to CURL_LIBRARY_PATH" >&5 24562 $as_echo "$as_me: Added $mbedtlslib to CURL_LIBRARY_PATH" >&6;} 24563 fi 24564 fi 24565 fi 24566 24567 fi 24568 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg" 24569 fi 24570 24571 24572 OPT_CYASSL=no 24573 24574 _cppflags=$CPPFLAGS 24575 _ldflags=$LDFLAGS 24576 24577 # Check whether --with-cyassl was given. 24578 if test "${with_cyassl+set}" = set; then : 24579 withval=$with_cyassl; OPT_CYASSL=$withval 24580 fi 24581 24582 24583 24584 # Check whether --with-wolfssl was given. 24585 if test "${with_wolfssl+set}" = set; then : 24586 withval=$with_wolfssl; OPT_CYASSL=$withval 24587 fi 24588 24589 24590 if test -z "$ssl_backends" -o "x$OPT_CYASSL" != xno; then 24591 ssl_msg= 24592 24593 if test X"$OPT_CYASSL" != Xno; then 24594 24595 if test "$OPT_CYASSL" = "yes"; then 24596 OPT_CYASSL="" 24597 fi 24598 24599 24600 cyassllibname=cyassl 24601 24602 if test -z "$OPT_CYASSL" ; then 24603 24604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5 24605 $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; } 24606 if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then : 24607 $as_echo_n "(cached) " >&6 24608 else 24609 ac_check_lib_save_LIBS=$LIBS 24610 LIBS="-lcyassl $LIBS" 24611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24612 /* end confdefs.h. */ 24613 24614 24615 #ifdef __cplusplus 24616 extern "C" 24617 #endif 24618 char CyaSSL_Init (); 24619 int main (void) 24620 { 24621 return CyaSSL_Init (); 24622 ; 24623 return 0; 24624 } 24625 _ACEOF 24626 if ac_fn_c_try_link "$LINENO"; then : 24627 ac_cv_lib_cyassl_CyaSSL_Init=yes 24628 else 24629 ac_cv_lib_cyassl_CyaSSL_Init=no 24630 fi 24631 rm -f core conftest.err conftest.$ac_objext \ 24632 conftest$ac_exeext conftest.$ac_ext 24633 LIBS=$ac_check_lib_save_LIBS 24634 fi 24635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5 24636 $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; } 24637 if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then : 24638 24639 24640 $as_echo "#define USE_CYASSL 1" >>confdefs.h 24641 24642 USE_CYASSL=1 24643 24644 CYASSL_ENABLED=1 24645 USE_CYASSL="yes" 24646 ssl_msg="CyaSSL" 24647 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 24648 24649 fi 24650 24651 fi 24652 24653 addld="" 24654 addlib="" 24655 addcflags="" 24656 cyassllib="" 24657 24658 if test "x$USE_CYASSL" != "xyes"; then 24659 addld=-L$OPT_CYASSL/lib$libsuff 24660 addcflags=-I$OPT_CYASSL/include 24661 cyassllib=$OPT_CYASSL/lib$libsuff 24662 24663 LDFLAGS="$LDFLAGS $addld" 24664 if test "$addcflags" != "-I/usr/include"; then 24665 CPPFLAGS="$CPPFLAGS $addcflags" 24666 fi 24667 24668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5 24669 $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; } 24670 if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then : 24671 $as_echo_n "(cached) " >&6 24672 else 24673 ac_check_lib_save_LIBS=$LIBS 24674 LIBS="-lcyassl $LIBS" 24675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24676 /* end confdefs.h. */ 24677 24678 24679 #ifdef __cplusplus 24680 extern "C" 24681 #endif 24682 char CyaSSL_Init (); 24683 int main (void) 24684 { 24685 return CyaSSL_Init (); 24686 ; 24687 return 0; 24688 } 24689 _ACEOF 24690 if ac_fn_c_try_link "$LINENO"; then : 24691 ac_cv_lib_cyassl_CyaSSL_Init=yes 24692 else 24693 ac_cv_lib_cyassl_CyaSSL_Init=no 24694 fi 24695 rm -f core conftest.err conftest.$ac_objext \ 24696 conftest$ac_exeext conftest.$ac_ext 24697 LIBS=$ac_check_lib_save_LIBS 24698 fi 24699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5 24700 $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; } 24701 if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then : 24702 24703 24704 $as_echo "#define USE_CYASSL 1" >>confdefs.h 24705 24706 USE_CYASSL=1 24707 24708 CYASSL_ENABLED=1 24709 USE_CYASSL="yes" 24710 ssl_msg="CyaSSL" 24711 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 24712 24713 else 24714 24715 CPPFLAGS=$_cppflags 24716 LDFLAGS=$_ldflags 24717 cyassllib="" 24718 24719 fi 24720 24721 fi 24722 24723 addld="" 24724 addlib="" 24725 addcflags="" 24726 24727 if test "x$USE_CYASSL" != "xyes"; then 24728 addld=-L$OPT_CYASSL/lib$libsuff 24729 addcflags=-I$OPT_CYASSL/include 24730 cyassllib=$OPT_CYASSL/lib$libsuff 24731 24732 LDFLAGS="$LDFLAGS $addld" 24733 if test "$addcflags" != "-I/usr/include"; then 24734 CPPFLAGS="$CPPFLAGS $addcflags" 24735 fi 24736 24737 cyassllibname=wolfssl 24738 my_ac_save_LIBS="$LIBS" 24739 LIBS="-l$cyassllibname -lm $LIBS" 24740 24741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lwolfssl" >&5 24742 $as_echo_n "checking for CyaSSL_Init in -lwolfssl... " >&6; } 24743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24744 /* end confdefs.h. */ 24745 24746 24747 /* These aren't needed for detection and confuse WolfSSL. 24748 They are set up properly later if it is detected. */ 24749 #undef SIZEOF_LONG 24750 #undef SIZEOF_LONG_LONG 24751 #include <cyassl/ssl.h> 24752 24753 int main (void) 24754 { 24755 24756 return CyaSSL_Init(); 24757 24758 ; 24759 return 0; 24760 } 24761 24762 _ACEOF 24763 if ac_fn_c_try_link "$LINENO"; then : 24764 24765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24766 $as_echo "yes" >&6; } 24767 24768 $as_echo "#define USE_CYASSL 1" >>confdefs.h 24769 24770 USE_CYASSL=1 24771 24772 CYASSL_ENABLED=1 24773 USE_CYASSL="yes" 24774 ssl_msg="WolfSSL" 24775 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 24776 24777 else 24778 24779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24780 $as_echo "no" >&6; } 24781 CPPFLAGS=$_cppflags 24782 LDFLAGS=$_ldflags 24783 cyassllib="" 24784 24785 fi 24786 rm -f core conftest.err conftest.$ac_objext \ 24787 conftest$ac_exeext conftest.$ac_ext 24788 LIBS="$my_ac_save_LIBS" 24789 fi 24790 24791 if test "x$USE_CYASSL" = "xyes"; then 24792 { $as_echo "$as_me:${as_lineno-$LINENO}: detected $cyassllibname" >&5 24793 $as_echo "$as_me: detected $cyassllibname" >&6;} 24794 check_for_ca_bundle=1 24795 24796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 24797 $as_echo_n "checking size of long long... " >&6; } 24798 if ${ac_cv_sizeof_long_long+:} false; then : 24799 $as_echo_n "(cached) " >&6 24800 else 24801 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence. 24802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24803 /* end confdefs.h. */ 24804 24805 #include <sys/types.h> 24806 24807 24808 int main (void) 24809 { 24810 switch (0) case 0: case (sizeof (long long) == $ac_size):; 24811 ; 24812 return 0; 24813 } 24814 _ACEOF 24815 if ac_fn_c_try_compile "$LINENO"; then : 24816 ac_cv_sizeof_long_long=$ac_size 24817 fi 24818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24819 if test x$ac_cv_sizeof_long_long != x ; then break; fi 24820 done 24821 24822 fi 24823 24824 if test x$ac_cv_sizeof_long_long = x ; then 24825 as_fn_error $? "cannot determine a size for long long" "$LINENO" 5 24826 fi 24827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 24828 $as_echo "$ac_cv_sizeof_long_long" >&6; } 24829 24830 cat >>confdefs.h <<_ACEOF 24831 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 24832 _ACEOF 24833 24834 24835 24836 for ac_header in cyassl/options.h 24837 do : 24838 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/options.h" "ac_cv_header_cyassl_options_h" "$ac_includes_default" 24839 if test "x$ac_cv_header_cyassl_options_h" = xyes; then : 24840 cat >>confdefs.h <<_ACEOF 24841 #define HAVE_CYASSL_OPTIONS_H 1 24842 _ACEOF 24843 24844 fi 24845 24846 done 24847 24848 24849 for ac_header in cyassl/error-ssl.h 24850 do : 24851 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/error-ssl.h" "ac_cv_header_cyassl_error_ssl_h" "$ac_includes_default" 24852 if test "x$ac_cv_header_cyassl_error_ssl_h" = xyes; then : 24853 cat >>confdefs.h <<_ACEOF 24854 #define HAVE_CYASSL_ERROR_SSL_H 1 24855 _ACEOF 24856 24857 fi 24858 24859 done 24860 24861 24862 LIBS="-l$cyassllibname -lm $LIBS" 24863 24864 if test "x$cyassllibname" = "xwolfssl"; then 24865 for ac_func in wolfSSLv3_client_method \ 24866 wolfSSL_get_peer_certificate \ 24867 wolfSSL_UseALPN 24868 do : 24869 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 24870 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 24871 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 24872 cat >>confdefs.h <<_ACEOF 24873 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 24874 _ACEOF 24875 24876 fi 24877 done 24878 24879 else 24880 for ac_func in CyaSSL_CTX_UseSupportedCurve \ 24881 CyaSSL_get_peer_certificate 24882 do : 24883 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 24884 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 24885 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 24886 cat >>confdefs.h <<_ACEOF 24887 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 24888 _ACEOF 24889 24890 fi 24891 done 24892 24893 fi 24894 24895 if test -n "$cyassllib"; then 24896 if test "x$cross_compiling" != "xyes"; then 24897 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$cyassllib" 24898 export CURL_LIBRARY_PATH 24899 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $cyassllib to CURL_LIBRARY_PATH" >&5 24900 $as_echo "$as_me: Added $cyassllib to CURL_LIBRARY_PATH" >&6;} 24901 fi 24902 fi 24903 24904 fi 24905 24906 fi 24907 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg" 24908 fi 24909 24910 24911 OPT_MESALINK=no 24912 24913 _cppflags=$CPPFLAGS 24914 _ldflags=$LDFLAGS 24915 24916 # Check whether --with-mesalink was given. 24917 if test "${with_mesalink+set}" = set; then : 24918 withval=$with_mesalink; OPT_MESALINK=$withval 24919 fi 24920 24921 24922 if test -z "$ssl_backends" -o "x$OPT_MESALINK" != xno; then 24923 ssl_msg= 24924 24925 if test X"$OPT_MESALINK" != Xno; then 24926 24927 if test "$OPT_MESALINK" = "yes"; then 24928 OPT_MESALINK="" 24929 fi 24930 24931 if test -z "$OPT_MESALINK" ; then 24932 24933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mesalink_library_init in -lmesalink" >&5 24934 $as_echo_n "checking for mesalink_library_init in -lmesalink... " >&6; } 24935 if ${ac_cv_lib_mesalink_mesalink_library_init+:} false; then : 24936 $as_echo_n "(cached) " >&6 24937 else 24938 ac_check_lib_save_LIBS=$LIBS 24939 LIBS="-lmesalink $LIBS" 24940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24941 /* end confdefs.h. */ 24942 24943 24944 #ifdef __cplusplus 24945 extern "C" 24946 #endif 24947 char mesalink_library_init (); 24948 int main (void) 24949 { 24950 return mesalink_library_init (); 24951 ; 24952 return 0; 24953 } 24954 _ACEOF 24955 if ac_fn_c_try_link "$LINENO"; then : 24956 ac_cv_lib_mesalink_mesalink_library_init=yes 24957 else 24958 ac_cv_lib_mesalink_mesalink_library_init=no 24959 fi 24960 rm -f core conftest.err conftest.$ac_objext \ 24961 conftest$ac_exeext conftest.$ac_ext 24962 LIBS=$ac_check_lib_save_LIBS 24963 fi 24964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mesalink_mesalink_library_init" >&5 24965 $as_echo "$ac_cv_lib_mesalink_mesalink_library_init" >&6; } 24966 if test "x$ac_cv_lib_mesalink_mesalink_library_init" = xyes; then : 24967 24968 24969 $as_echo "#define USE_MESALINK 1" >>confdefs.h 24970 24971 USE_MESALINK=1 24972 24973 MESALINK_ENABLED=1 24974 USE_MESALINK="yes" 24975 ssl_msg="MesaLink" 24976 test mesalink != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 24977 24978 fi 24979 24980 fi 24981 24982 addld="" 24983 addlib="" 24984 addcflags="" 24985 mesalinklib="" 24986 24987 if test "x$USE_MESALINK" != "xyes"; then 24988 addld=-L$OPT_MESALINK/lib$libsuff 24989 addcflags=-I$OPT_MESALINK/include 24990 mesalinklib=$OPT_MESALINK/lib$libsuff 24991 24992 LDFLAGS="$LDFLAGS $addld" 24993 if test "$addcflags" != "-I/usr/include"; then 24994 CPPFLAGS="$CPPFLAGS $addcflags" 24995 fi 24996 24997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mesalink_library_init in -lmesalink" >&5 24998 $as_echo_n "checking for mesalink_library_init in -lmesalink... " >&6; } 24999 if ${ac_cv_lib_mesalink_mesalink_library_init+:} false; then : 25000 $as_echo_n "(cached) " >&6 25001 else 25002 ac_check_lib_save_LIBS=$LIBS 25003 LIBS="-lmesalink $LIBS" 25004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25005 /* end confdefs.h. */ 25006 25007 25008 #ifdef __cplusplus 25009 extern "C" 25010 #endif 25011 char mesalink_library_init (); 25012 int main (void) 25013 { 25014 return mesalink_library_init (); 25015 ; 25016 return 0; 25017 } 25018 _ACEOF 25019 if ac_fn_c_try_link "$LINENO"; then : 25020 ac_cv_lib_mesalink_mesalink_library_init=yes 25021 else 25022 ac_cv_lib_mesalink_mesalink_library_init=no 25023 fi 25024 rm -f core conftest.err conftest.$ac_objext \ 25025 conftest$ac_exeext conftest.$ac_ext 25026 LIBS=$ac_check_lib_save_LIBS 25027 fi 25028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mesalink_mesalink_library_init" >&5 25029 $as_echo "$ac_cv_lib_mesalink_mesalink_library_init" >&6; } 25030 if test "x$ac_cv_lib_mesalink_mesalink_library_init" = xyes; then : 25031 25032 25033 $as_echo "#define USE_MESALINK 1" >>confdefs.h 25034 25035 USE_MESALINK=1 25036 25037 MESALINK_ENABLED=1 25038 USE_MESALINK="yes" 25039 ssl_msg="MesaLink" 25040 test mesalink != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 25041 25042 else 25043 25044 CPPFLAGS=$_cppflags 25045 LDFLAGS=$_ldflags 25046 25047 fi 25048 25049 fi 25050 25051 if test "x$USE_MESALINK" = "xyes"; then 25052 { $as_echo "$as_me:${as_lineno-$LINENO}: detected MesaLink" >&5 25053 $as_echo "$as_me: detected MesaLink" >&6;} 25054 25055 LIBS="-lmesalink $LIBS" 25056 25057 if test -n "$mesalinklib"; then 25058 if test "x$cross_compiling" != "xyes"; then 25059 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$mesalinklib" 25060 export LD_LIBRARY_PATH 25061 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mesalinklib to LD_LIBRARY_PATH" >&5 25062 $as_echo "$as_me: Added $mesalinklib to LD_LIBRARY_PATH" >&6;} 25063 fi 25064 fi 25065 fi 25066 25067 fi 25068 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg" 25069 fi 25070 25071 25072 OPT_NSS=no 25073 25074 25075 # Check whether --with-nss was given. 25076 if test "${with_nss+set}" = set; then : 25077 withval=$with_nss; OPT_NSS=$withval 25078 fi 25079 25080 25081 if test -z "$ssl_backends" -o "x$OPT_NSS" != xno; then 25082 ssl_msg= 25083 25084 if test X"$OPT_NSS" != Xno; then 25085 25086 addld="" 25087 addlib="" 25088 addcflags="" 25089 nssprefix="" 25090 version="" 25091 25092 if test "x$OPT_NSS" = "xyes"; then 25093 25094 25095 if test -n "$PKG_CONFIG"; then 25096 PKGCONFIG="$PKG_CONFIG" 25097 else 25098 if test -n "$ac_tool_prefix"; then 25099 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 25100 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 25101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25102 $as_echo_n "checking for $ac_word... " >&6; } 25103 if ${ac_cv_path_PKGCONFIG+:} false; then : 25104 $as_echo_n "(cached) " >&6 25105 else 25106 case $PKGCONFIG in 25107 [\\/]* | ?:[\\/]*) 25108 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 25109 ;; 25110 *) 25111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25112 as_dummy="$PATH:/usr/bin:/usr/local/bin" 25113 for as_dir in $as_dummy 25114 do 25115 IFS=$as_save_IFS 25116 test -z "$as_dir" && as_dir=. 25117 for ac_exec_ext in '' $ac_executable_extensions; do 25118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25119 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 25120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25121 break 2 25122 fi 25123 done 25124 done 25125 IFS=$as_save_IFS 25126 25127 ;; 25128 esac 25129 fi 25130 PKGCONFIG=$ac_cv_path_PKGCONFIG 25131 if test -n "$PKGCONFIG"; then 25132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 25133 $as_echo "$PKGCONFIG" >&6; } 25134 else 25135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25136 $as_echo "no" >&6; } 25137 fi 25138 25139 25140 fi 25141 if test -z "$ac_cv_path_PKGCONFIG"; then 25142 ac_pt_PKGCONFIG=$PKGCONFIG 25143 # Extract the first word of "pkg-config", so it can be a program name with args. 25144 set dummy pkg-config; ac_word=$2 25145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25146 $as_echo_n "checking for $ac_word... " >&6; } 25147 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : 25148 $as_echo_n "(cached) " >&6 25149 else 25150 case $ac_pt_PKGCONFIG in 25151 [\\/]* | ?:[\\/]*) 25152 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 25153 ;; 25154 *) 25155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25156 as_dummy="$PATH:/usr/bin:/usr/local/bin" 25157 for as_dir in $as_dummy 25158 do 25159 IFS=$as_save_IFS 25160 test -z "$as_dir" && as_dir=. 25161 for ac_exec_ext in '' $ac_executable_extensions; do 25162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25163 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 25164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25165 break 2 25166 fi 25167 done 25168 done 25169 IFS=$as_save_IFS 25170 25171 ;; 25172 esac 25173 fi 25174 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 25175 if test -n "$ac_pt_PKGCONFIG"; then 25176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 25177 $as_echo "$ac_pt_PKGCONFIG" >&6; } 25178 else 25179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25180 $as_echo "no" >&6; } 25181 fi 25182 25183 if test "x$ac_pt_PKGCONFIG" = x; then 25184 PKGCONFIG="no" 25185 else 25186 case $cross_compiling:$ac_tool_warned in 25187 yes:) 25188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 25189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 25190 ac_tool_warned=yes ;; 25191 esac 25192 PKGCONFIG=$ac_pt_PKGCONFIG 25193 fi 25194 else 25195 PKGCONFIG="$ac_cv_path_PKGCONFIG" 25196 fi 25197 25198 fi 25199 25200 if test "x$PKGCONFIG" != "xno"; then 25201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5 25202 $as_echo_n "checking for nss options with pkg-config... " >&6; } 25203 itexists=` 25204 if test -n ""; then 25205 PKG_CONFIG_LIBDIR="" 25206 export PKG_CONFIG_LIBDIR 25207 fi 25208 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1` 25209 25210 if test -z "$itexists"; then 25211 PKGCONFIG="no" 25212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25213 $as_echo "no" >&6; } 25214 else 25215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 25216 $as_echo "found" >&6; } 25217 fi 25218 fi 25219 25220 25221 if test "$PKGCONFIG" != "no" ; then 25222 addlib=`$PKGCONFIG --libs nss` 25223 addcflags=`$PKGCONFIG --cflags nss` 25224 version=`$PKGCONFIG --modversion nss` 25225 nssprefix=`$PKGCONFIG --variable=prefix nss` 25226 else 25227 25228 check=`nss-config --version 2>/dev/null` 25229 if test -n "$check"; then 25230 addlib=`nss-config --libs` 25231 addcflags=`nss-config --cflags` 25232 version=`nss-config --version` 25233 nssprefix=`nss-config --prefix` 25234 else 25235 addlib="-lnss3" 25236 addcflags="" 25237 version="unknown" 25238 fi 25239 fi 25240 else 25241 NSS_PCDIR="$OPT_NSS/lib/pkgconfig" 25242 if test -f "$NSS_PCDIR/nss.pc"; then 25243 25244 if test -n "$PKG_CONFIG"; then 25245 PKGCONFIG="$PKG_CONFIG" 25246 else 25247 if test -n "$ac_tool_prefix"; then 25248 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 25249 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 25250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25251 $as_echo_n "checking for $ac_word... " >&6; } 25252 if ${ac_cv_path_PKGCONFIG+:} false; then : 25253 $as_echo_n "(cached) " >&6 25254 else 25255 case $PKGCONFIG in 25256 [\\/]* | ?:[\\/]*) 25257 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 25258 ;; 25259 *) 25260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25261 as_dummy="$PATH:/usr/bin:/usr/local/bin" 25262 for as_dir in $as_dummy 25263 do 25264 IFS=$as_save_IFS 25265 test -z "$as_dir" && as_dir=. 25266 for ac_exec_ext in '' $ac_executable_extensions; do 25267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25268 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 25269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25270 break 2 25271 fi 25272 done 25273 done 25274 IFS=$as_save_IFS 25275 25276 ;; 25277 esac 25278 fi 25279 PKGCONFIG=$ac_cv_path_PKGCONFIG 25280 if test -n "$PKGCONFIG"; then 25281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 25282 $as_echo "$PKGCONFIG" >&6; } 25283 else 25284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25285 $as_echo "no" >&6; } 25286 fi 25287 25288 25289 fi 25290 if test -z "$ac_cv_path_PKGCONFIG"; then 25291 ac_pt_PKGCONFIG=$PKGCONFIG 25292 # Extract the first word of "pkg-config", so it can be a program name with args. 25293 set dummy pkg-config; ac_word=$2 25294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25295 $as_echo_n "checking for $ac_word... " >&6; } 25296 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : 25297 $as_echo_n "(cached) " >&6 25298 else 25299 case $ac_pt_PKGCONFIG in 25300 [\\/]* | ?:[\\/]*) 25301 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 25302 ;; 25303 *) 25304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25305 as_dummy="$PATH:/usr/bin:/usr/local/bin" 25306 for as_dir in $as_dummy 25307 do 25308 IFS=$as_save_IFS 25309 test -z "$as_dir" && as_dir=. 25310 for ac_exec_ext in '' $ac_executable_extensions; do 25311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25312 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 25313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25314 break 2 25315 fi 25316 done 25317 done 25318 IFS=$as_save_IFS 25319 25320 ;; 25321 esac 25322 fi 25323 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 25324 if test -n "$ac_pt_PKGCONFIG"; then 25325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 25326 $as_echo "$ac_pt_PKGCONFIG" >&6; } 25327 else 25328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25329 $as_echo "no" >&6; } 25330 fi 25331 25332 if test "x$ac_pt_PKGCONFIG" = x; then 25333 PKGCONFIG="no" 25334 else 25335 case $cross_compiling:$ac_tool_warned in 25336 yes:) 25337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 25338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 25339 ac_tool_warned=yes ;; 25340 esac 25341 PKGCONFIG=$ac_pt_PKGCONFIG 25342 fi 25343 else 25344 PKGCONFIG="$ac_cv_path_PKGCONFIG" 25345 fi 25346 25347 fi 25348 25349 if test "x$PKGCONFIG" != "xno"; then 25350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5 25351 $as_echo_n "checking for nss options with pkg-config... " >&6; } 25352 itexists=` 25353 if test -n "$NSS_PCDIR"; then 25354 PKG_CONFIG_LIBDIR="$NSS_PCDIR" 25355 export PKG_CONFIG_LIBDIR 25356 fi 25357 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1` 25358 25359 if test -z "$itexists"; then 25360 PKGCONFIG="no" 25361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25362 $as_echo "no" >&6; } 25363 else 25364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 25365 $as_echo "found" >&6; } 25366 fi 25367 fi 25368 25369 if test "$PKGCONFIG" != "no" ; then 25370 addld=` 25371 if test -n "$NSS_PCDIR"; then 25372 PKG_CONFIG_LIBDIR="$NSS_PCDIR" 25373 export PKG_CONFIG_LIBDIR 25374 fi 25375 $PKGCONFIG --libs-only-L nss` 25376 addlib=` 25377 if test -n "$NSS_PCDIR"; then 25378 PKG_CONFIG_LIBDIR="$NSS_PCDIR" 25379 export PKG_CONFIG_LIBDIR 25380 fi 25381 $PKGCONFIG --libs-only-l nss` 25382 addcflags=` 25383 if test -n "$NSS_PCDIR"; then 25384 PKG_CONFIG_LIBDIR="$NSS_PCDIR" 25385 export PKG_CONFIG_LIBDIR 25386 fi 25387 $PKGCONFIG --cflags nss` 25388 version=` 25389 if test -n "$NSS_PCDIR"; then 25390 PKG_CONFIG_LIBDIR="$NSS_PCDIR" 25391 export PKG_CONFIG_LIBDIR 25392 fi 25393 $PKGCONFIG --modversion nss` 25394 nssprefix=` 25395 if test -n "$NSS_PCDIR"; then 25396 PKG_CONFIG_LIBDIR="$NSS_PCDIR" 25397 export PKG_CONFIG_LIBDIR 25398 fi 25399 $PKGCONFIG --variable=prefix nss` 25400 fi 25401 fi 25402 fi 25403 25404 if test -z "$addlib"; then 25405 # Without pkg-config, we'll kludge in some defaults 25406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using hard-wired libraries and compilation flags for NSS." >&5 25407 $as_echo "$as_me: WARNING: Using hard-wired libraries and compilation flags for NSS." >&2;} 25408 addld="-L$OPT_NSS/lib" 25409 addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4" 25410 addcflags="-I$OPT_NSS/include" 25411 version="unknown" 25412 nssprefix=$OPT_NSS 25413 fi 25414 25415 CLEANLDFLAGS="$LDFLAGS" 25416 CLEANLIBS="$LIBS" 25417 CLEANCPPFLAGS="$CPPFLAGS" 25418 25419 LDFLAGS="$addld $LDFLAGS" 25420 LIBS="$addlib $LIBS" 25421 if test "$addcflags" != "-I/usr/include"; then 25422 CPPFLAGS="$CPPFLAGS $addcflags" 25423 fi 25424 25425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5 25426 $as_echo_n "checking for SSL_VersionRangeSet in -lnss3... " >&6; } 25427 if ${ac_cv_lib_nss3_SSL_VersionRangeSet+:} false; then : 25428 $as_echo_n "(cached) " >&6 25429 else 25430 ac_check_lib_save_LIBS=$LIBS 25431 LIBS="-lnss3 $LIBS" 25432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25433 /* end confdefs.h. */ 25434 25435 25436 #ifdef __cplusplus 25437 extern "C" 25438 #endif 25439 char SSL_VersionRangeSet (); 25440 int main (void) 25441 { 25442 return SSL_VersionRangeSet (); 25443 ; 25444 return 0; 25445 } 25446 _ACEOF 25447 if ac_fn_c_try_link "$LINENO"; then : 25448 ac_cv_lib_nss3_SSL_VersionRangeSet=yes 25449 else 25450 ac_cv_lib_nss3_SSL_VersionRangeSet=no 25451 fi 25452 rm -f core conftest.err conftest.$ac_objext \ 25453 conftest$ac_exeext conftest.$ac_ext 25454 LIBS=$ac_check_lib_save_LIBS 25455 fi 25456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5 25457 $as_echo "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; } 25458 if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes; then : 25459 25460 25461 $as_echo "#define USE_NSS 1" >>confdefs.h 25462 25463 USE_NSS=1 25464 25465 USE_NSS="yes" 25466 NSS_ENABLED=1 25467 ssl_msg="NSS" 25468 test nss != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 25469 25470 else 25471 25472 LDFLAGS="$CLEANLDFLAGS" 25473 LIBS="$CLEANLIBS" 25474 CPPFLAGS="$CLEANCPPFLAGS" 25475 25476 fi 25477 25478 25479 if test "x$USE_NSS" = "xyes"; then 25480 { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5 25481 $as_echo "$as_me: detected NSS version $version" >&6;} 25482 25483 ac_fn_c_check_func "$LINENO" "PK11_CreateManagedGenericObject" "ac_cv_func_PK11_CreateManagedGenericObject" 25484 if test "x$ac_cv_func_PK11_CreateManagedGenericObject" = xyes; then : 25485 25486 25487 $as_echo "#define HAVE_PK11_CREATEMANAGEDGENERICOBJECT 1" >>confdefs.h 25488 25489 25490 fi 25491 25492 25493 NSS_LIBS=$addlib 25494 25495 25496 if test "x$cross_compiling" != "xyes"; then 25497 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$nssprefix/lib$libsuff" 25498 export CURL_LIBRARY_PATH 25499 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&5 25500 $as_echo "$as_me: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&6;} 25501 fi 25502 25503 fi 25504 fi 25505 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg" 25506 fi 25507 25508 case "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED$MBEDTLS_ENABLED$CYASSL_ENABLED$WINSSL_ENABLED$SECURETRANSPORT_ENABLED$MESALINK_ENABLED$AMISSL_ENABLED" in 25509 x) 25510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5 25511 $as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;} 25512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-schannel, --with-secure-transport, --with-mesalink or --with-amissl to address this." >&5 25513 $as_echo "$as_me: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-schannel, --with-secure-transport, --with-mesalink or --with-amissl to address this." >&2;} 25514 ;; 25515 x1) 25516 # one SSL backend is enabled 25517 25518 SSL_ENABLED="1" 25519 { $as_echo "$as_me:${as_lineno-$LINENO}: built with one SSL backend" >&5 25520 $as_echo "$as_me: built with one SSL backend" >&6;} 25521 ;; 25522 *) 25523 # more than one SSL backend is enabled 25524 25525 SSL_ENABLED="1" 25526 25527 CURL_WITH_MULTI_SSL="1" 25528 25529 $as_echo "#define CURL_WITH_MULTI_SSL 1" >>confdefs.h 25530 25531 { $as_echo "$as_me:${as_lineno-$LINENO}: built with multiple SSL backends" >&5 25532 $as_echo "$as_me: built with multiple SSL backends" >&6;} 25533 ;; 25534 esac 25535 25536 if test -n "$ssl_backends"; then 25537 curl_ssl_msg="enabled ($ssl_backends)" 25538 fi 25539 25540 if test no = "$VALID_DEFAULT_SSL_BACKEND" 25541 then 25542 if test -n "$SSL_ENABLED" 25543 then 25544 as_fn_error $? "Default SSL backend $DEFAULT_SSL_BACKEND not enabled!" "$LINENO" 5 25545 else 25546 as_fn_error $? "Default SSL backend requires SSL!" "$LINENO" 5 25547 fi 25548 elif test yes = "$VALID_DEFAULT_SSL_BACKEND" 25549 then 25550 25551 cat >>confdefs.h <<_ACEOF 25552 #define CURL_DEFAULT_SSL_BACKEND "$DEFAULT_SSL_BACKEND" 25553 _ACEOF 25554 25555 fi 25556 25557 25558 if test "$check_for_ca_bundle" -gt 0; then 25559 25560 25561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5 25562 $as_echo_n "checking default CA cert bundle/path... " >&6; } 25563 25564 25565 # Check whether --with-ca-bundle was given. 25566 if test "${with_ca_bundle+set}" = set; then : 25567 withval=$with_ca_bundle; 25568 want_ca="$withval" 25569 if test "x$want_ca" = "xyes"; then 25570 as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5 25571 fi 25572 25573 else 25574 want_ca="unset" 25575 fi 25576 25577 25578 # Check whether --with-ca-path was given. 25579 if test "${with_ca_path+set}" = set; then : 25580 withval=$with_ca_path; 25581 want_capath="$withval" 25582 if test "x$want_capath" = "xyes"; then 25583 as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5 25584 fi 25585 25586 else 25587 want_capath="unset" 25588 fi 25589 25590 25591 ca_warning=" (warning: certs not found)" 25592 capath_warning=" (warning: certs not found)" 25593 check_capath="" 25594 25595 if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \ 25596 "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then 25597 ca="$want_ca" 25598 capath="$want_capath" 25599 elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then 25600 ca="$want_ca" 25601 capath="no" 25602 elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then 25603 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1" -a "x$POLARSSL_ENABLED" != "x1"; then 25604 as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS or PolarSSL" "$LINENO" 5 25605 fi 25606 capath="$want_capath" 25607 ca="no" 25608 else 25609 ca="no" 25610 capath="no" 25611 if test "x$cross_compiling" != "xyes"; then 25612 if test "x$want_ca" = "xunset"; then 25613 if test "x$prefix" != xNONE; then 25614 cac="${prefix}/share/curl/curl-ca-bundle.crt" 25615 else 25616 cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt" 25617 fi 25618 25619 for a in /etc/ssl/certs/ca-certificates.crt \ 25620 /etc/pki/tls/certs/ca-bundle.crt \ 25621 /usr/share/ssl/certs/ca-bundle.crt \ 25622 /usr/local/share/certs/ca-root-nss.crt \ 25623 /etc/ssl/cert.pem \ 25624 "$cac"; do 25625 if test -f "$a"; then 25626 ca="$a" 25627 break 25628 fi 25629 done 25630 fi 25631 if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \ 25632 "x$OPENSSL_ENABLED" = "x1"; then 25633 check_capath="/etc/ssl/certs/" 25634 fi 25635 else 25636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5 25637 $as_echo "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;} 25638 fi 25639 fi 25640 25641 if test "x$ca" = "xno" || test -f "$ca"; then 25642 ca_warning="" 25643 fi 25644 25645 if test "x$capath" != "xno"; then 25646 check_capath="$capath" 25647 fi 25648 25649 if test ! -z "$check_capath"; then 25650 for a in "$check_capath"; do 25651 if test -d "$a" && ls "$a"/[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f].0 >/dev/null 2>/dev/null; then 25652 if test "x$capath" = "xno"; then 25653 capath="$a" 25654 fi 25655 capath_warning="" 25656 break 25657 fi 25658 done 25659 fi 25660 25661 if test "x$capath" = "xno"; then 25662 capath_warning="" 25663 fi 25664 25665 if test "x$ca" != "xno"; then 25666 CURL_CA_BUNDLE='"'$ca'"' 25667 25668 cat >>confdefs.h <<_ACEOF 25669 #define CURL_CA_BUNDLE "$ca" 25670 _ACEOF 25671 25672 25673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5 25674 $as_echo "$ca" >&6; } 25675 fi 25676 if test "x$capath" != "xno"; then 25677 CURL_CA_PATH="\"$capath\"" 25678 25679 cat >>confdefs.h <<_ACEOF 25680 #define CURL_CA_PATH "$capath" 25681 _ACEOF 25682 25683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5 25684 $as_echo "$capath (capath)" >&6; } 25685 fi 25686 if test "x$ca" = "xno" && test "x$capath" = "xno"; then 25687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25688 $as_echo "no" >&6; } 25689 fi 25690 25691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5 25692 $as_echo_n "checking whether to use builtin CA store of SSL library... " >&6; } 25693 25694 # Check whether --with-ca-fallback was given. 25695 if test "${with_ca_fallback+set}" = set; then : 25696 withval=$with_ca_fallback; 25697 if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then 25698 as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5 25699 fi 25700 25701 else 25702 with_ca_fallback="no" 25703 fi 25704 25705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5 25706 $as_echo "$with_ca_fallback" >&6; } 25707 if test "x$with_ca_fallback" = "xyes"; then 25708 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then 25709 as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5 25710 fi 25711 25712 cat >>confdefs.h <<_ACEOF 25713 #define CURL_CA_FALLBACK 1 25714 _ACEOF 25715 25716 fi 25717 25718 fi 25719 25720 25721 25722 # Check whether --with-libpsl was given. 25723 if test "${with_libpsl+set}" = set; then : 25724 withval=$with_libpsl; with_libpsl=$withval 25725 else 25726 with_libpsl=yes 25727 fi 25728 25729 if test $with_libpsl != "no"; then 25730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing psl_builtin" >&5 25731 $as_echo_n "checking for library containing psl_builtin... " >&6; } 25732 if ${ac_cv_search_psl_builtin+:} false; then : 25733 $as_echo_n "(cached) " >&6 25734 else 25735 ac_func_search_save_LIBS=$LIBS 25736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25737 /* end confdefs.h. */ 25738 25739 25740 #ifdef __cplusplus 25741 extern "C" 25742 #endif 25743 char psl_builtin (); 25744 int main (void) 25745 { 25746 return psl_builtin (); 25747 ; 25748 return 0; 25749 } 25750 _ACEOF 25751 for ac_lib in '' psl; do 25752 if test -z "$ac_lib"; then 25753 ac_res="none required" 25754 else 25755 ac_res=-l$ac_lib 25756 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 25757 fi 25758 if ac_fn_c_try_link "$LINENO"; then : 25759 ac_cv_search_psl_builtin=$ac_res 25760 fi 25761 rm -f core conftest.err conftest.$ac_objext \ 25762 conftest$ac_exeext 25763 if ${ac_cv_search_psl_builtin+:} false; then : 25764 break 25765 fi 25766 done 25767 if ${ac_cv_search_psl_builtin+:} false; then : 25768 25769 else 25770 ac_cv_search_psl_builtin=no 25771 fi 25772 rm conftest.$ac_ext 25773 LIBS=$ac_func_search_save_LIBS 25774 fi 25775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psl_builtin" >&5 25776 $as_echo "$ac_cv_search_psl_builtin" >&6; } 25777 ac_res=$ac_cv_search_psl_builtin 25778 if test "$ac_res" != no; then : 25779 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 25780 curl_psl_msg="enabled"; 25781 25782 $as_echo "#define USE_LIBPSL 1" >>confdefs.h 25783 25784 25785 else 25786 curl_psl_msg="no (libpsl not found)"; 25787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libpsl was not found" >&5 25788 $as_echo "$as_me: WARNING: libpsl was not found" >&2;} 25789 25790 25791 fi 25792 25793 fi 25794 if test "$curl_psl_msg" = "enabled"; then 25795 USE_LIBPSL_TRUE= 25796 USE_LIBPSL_FALSE='#' 25797 else 25798 USE_LIBPSL_TRUE='#' 25799 USE_LIBPSL_FALSE= 25800 fi 25801 25802 25803 25804 OPT_LIBMETALINK=no 25805 25806 25807 # Check whether --with-libmetalink was given. 25808 if test "${with_libmetalink+set}" = set; then : 25809 withval=$with_libmetalink; OPT_LIBMETALINK=$withval 25810 fi 25811 25812 25813 if test X"$OPT_LIBMETALINK" != Xno; then 25814 25815 addld="" 25816 addlib="" 25817 addcflags="" 25818 version="" 25819 libmetalinklib="" 25820 25821 PKGTEST="no" 25822 if test "x$OPT_LIBMETALINK" = "xyes"; then 25823 PKGTEST="yes" 25824 25825 if test -n "$PKG_CONFIG"; then 25826 PKGCONFIG="$PKG_CONFIG" 25827 else 25828 if test -n "$ac_tool_prefix"; then 25829 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 25830 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 25831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25832 $as_echo_n "checking for $ac_word... " >&6; } 25833 if ${ac_cv_path_PKGCONFIG+:} false; then : 25834 $as_echo_n "(cached) " >&6 25835 else 25836 case $PKGCONFIG in 25837 [\\/]* | ?:[\\/]*) 25838 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 25839 ;; 25840 *) 25841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25842 as_dummy="$PATH:/usr/bin:/usr/local/bin" 25843 for as_dir in $as_dummy 25844 do 25845 IFS=$as_save_IFS 25846 test -z "$as_dir" && as_dir=. 25847 for ac_exec_ext in '' $ac_executable_extensions; do 25848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25849 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 25850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25851 break 2 25852 fi 25853 done 25854 done 25855 IFS=$as_save_IFS 25856 25857 ;; 25858 esac 25859 fi 25860 PKGCONFIG=$ac_cv_path_PKGCONFIG 25861 if test -n "$PKGCONFIG"; then 25862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 25863 $as_echo "$PKGCONFIG" >&6; } 25864 else 25865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25866 $as_echo "no" >&6; } 25867 fi 25868 25869 25870 fi 25871 if test -z "$ac_cv_path_PKGCONFIG"; then 25872 ac_pt_PKGCONFIG=$PKGCONFIG 25873 # Extract the first word of "pkg-config", so it can be a program name with args. 25874 set dummy pkg-config; ac_word=$2 25875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25876 $as_echo_n "checking for $ac_word... " >&6; } 25877 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : 25878 $as_echo_n "(cached) " >&6 25879 else 25880 case $ac_pt_PKGCONFIG in 25881 [\\/]* | ?:[\\/]*) 25882 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 25883 ;; 25884 *) 25885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25886 as_dummy="$PATH:/usr/bin:/usr/local/bin" 25887 for as_dir in $as_dummy 25888 do 25889 IFS=$as_save_IFS 25890 test -z "$as_dir" && as_dir=. 25891 for ac_exec_ext in '' $ac_executable_extensions; do 25892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25893 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 25894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25895 break 2 25896 fi 25897 done 25898 done 25899 IFS=$as_save_IFS 25900 25901 ;; 25902 esac 25903 fi 25904 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 25905 if test -n "$ac_pt_PKGCONFIG"; then 25906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 25907 $as_echo "$ac_pt_PKGCONFIG" >&6; } 25908 else 25909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25910 $as_echo "no" >&6; } 25911 fi 25912 25913 if test "x$ac_pt_PKGCONFIG" = x; then 25914 PKGCONFIG="no" 25915 else 25916 case $cross_compiling:$ac_tool_warned in 25917 yes:) 25918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 25919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 25920 ac_tool_warned=yes ;; 25921 esac 25922 PKGCONFIG=$ac_pt_PKGCONFIG 25923 fi 25924 else 25925 PKGCONFIG="$ac_cv_path_PKGCONFIG" 25926 fi 25927 25928 fi 25929 25930 if test "x$PKGCONFIG" != "xno"; then 25931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5 25932 $as_echo_n "checking for libmetalink options with pkg-config... " >&6; } 25933 itexists=` 25934 if test -n ""; then 25935 PKG_CONFIG_LIBDIR="" 25936 export PKG_CONFIG_LIBDIR 25937 fi 25938 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1` 25939 25940 if test -z "$itexists"; then 25941 PKGCONFIG="no" 25942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25943 $as_echo "no" >&6; } 25944 else 25945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 25946 $as_echo "found" >&6; } 25947 fi 25948 fi 25949 25950 else 25951 LIBMETALINK_PCDIR="$OPT_LIBMETALINK/lib/pkgconfig" 25952 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&5 25953 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&6;} 25954 if test -f "$LIBMETALINK_PCDIR/libmetalink.pc"; then 25955 PKGTEST="yes" 25956 fi 25957 if test "$PKGTEST" = "yes"; then 25958 25959 if test -n "$PKG_CONFIG"; then 25960 PKGCONFIG="$PKG_CONFIG" 25961 else 25962 if test -n "$ac_tool_prefix"; then 25963 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 25964 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 25965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25966 $as_echo_n "checking for $ac_word... " >&6; } 25967 if ${ac_cv_path_PKGCONFIG+:} false; then : 25968 $as_echo_n "(cached) " >&6 25969 else 25970 case $PKGCONFIG in 25971 [\\/]* | ?:[\\/]*) 25972 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 25973 ;; 25974 *) 25975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25976 as_dummy="$PATH:/usr/bin:/usr/local/bin" 25977 for as_dir in $as_dummy 25978 do 25979 IFS=$as_save_IFS 25980 test -z "$as_dir" && as_dir=. 25981 for ac_exec_ext in '' $ac_executable_extensions; do 25982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25983 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 25984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25985 break 2 25986 fi 25987 done 25988 done 25989 IFS=$as_save_IFS 25990 25991 ;; 25992 esac 25993 fi 25994 PKGCONFIG=$ac_cv_path_PKGCONFIG 25995 if test -n "$PKGCONFIG"; then 25996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 25997 $as_echo "$PKGCONFIG" >&6; } 25998 else 25999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26000 $as_echo "no" >&6; } 26001 fi 26002 26003 26004 fi 26005 if test -z "$ac_cv_path_PKGCONFIG"; then 26006 ac_pt_PKGCONFIG=$PKGCONFIG 26007 # Extract the first word of "pkg-config", so it can be a program name with args. 26008 set dummy pkg-config; ac_word=$2 26009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26010 $as_echo_n "checking for $ac_word... " >&6; } 26011 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : 26012 $as_echo_n "(cached) " >&6 26013 else 26014 case $ac_pt_PKGCONFIG in 26015 [\\/]* | ?:[\\/]*) 26016 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 26017 ;; 26018 *) 26019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26020 as_dummy="$PATH:/usr/bin:/usr/local/bin" 26021 for as_dir in $as_dummy 26022 do 26023 IFS=$as_save_IFS 26024 test -z "$as_dir" && as_dir=. 26025 for ac_exec_ext in '' $ac_executable_extensions; do 26026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26027 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 26028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26029 break 2 26030 fi 26031 done 26032 done 26033 IFS=$as_save_IFS 26034 26035 ;; 26036 esac 26037 fi 26038 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 26039 if test -n "$ac_pt_PKGCONFIG"; then 26040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 26041 $as_echo "$ac_pt_PKGCONFIG" >&6; } 26042 else 26043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26044 $as_echo "no" >&6; } 26045 fi 26046 26047 if test "x$ac_pt_PKGCONFIG" = x; then 26048 PKGCONFIG="no" 26049 else 26050 case $cross_compiling:$ac_tool_warned in 26051 yes:) 26052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 26053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 26054 ac_tool_warned=yes ;; 26055 esac 26056 PKGCONFIG=$ac_pt_PKGCONFIG 26057 fi 26058 else 26059 PKGCONFIG="$ac_cv_path_PKGCONFIG" 26060 fi 26061 26062 fi 26063 26064 if test "x$PKGCONFIG" != "xno"; then 26065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5 26066 $as_echo_n "checking for libmetalink options with pkg-config... " >&6; } 26067 itexists=` 26068 if test -n "$LIBMETALINK_PCDIR"; then 26069 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR" 26070 export PKG_CONFIG_LIBDIR 26071 fi 26072 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1` 26073 26074 if test -z "$itexists"; then 26075 PKGCONFIG="no" 26076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26077 $as_echo "no" >&6; } 26078 else 26079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 26080 $as_echo "found" >&6; } 26081 fi 26082 fi 26083 26084 fi 26085 fi 26086 if test "$PKGTEST" = "yes" && test "$PKGCONFIG" != "no"; then 26087 addlib=` 26088 if test -n "$LIBMETALINK_PCDIR"; then 26089 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR" 26090 export PKG_CONFIG_LIBDIR 26091 fi 26092 $PKGCONFIG --libs-only-l libmetalink` 26093 addld=` 26094 if test -n "$LIBMETALINK_PCDIR"; then 26095 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR" 26096 export PKG_CONFIG_LIBDIR 26097 fi 26098 $PKGCONFIG --libs-only-L libmetalink` 26099 addcflags=` 26100 if test -n "$LIBMETALINK_PCDIR"; then 26101 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR" 26102 export PKG_CONFIG_LIBDIR 26103 fi 26104 $PKGCONFIG --cflags-only-I libmetalink` 26105 version=` 26106 if test -n "$LIBMETALINK_PCDIR"; then 26107 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR" 26108 export PKG_CONFIG_LIBDIR 26109 fi 26110 $PKGCONFIG --modversion libmetalink` 26111 libmetalinklib=`echo $addld | $SED -e 's/-L//'` 26112 fi 26113 if test -n "$addlib"; then 26114 26115 clean_CPPFLAGS="$CPPFLAGS" 26116 clean_LDFLAGS="$LDFLAGS" 26117 clean_LIBS="$LIBS" 26118 CPPFLAGS="$clean_CPPFLAGS $addcflags" 26119 LDFLAGS="$clean_LDFLAGS $addld" 26120 LIBS="$addlib $clean_LIBS" 26121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libmetalink is recent enough" >&5 26122 $as_echo_n "checking if libmetalink is recent enough... " >&6; } 26123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26124 /* end confdefs.h. */ 26125 26126 26127 # include <metalink/metalink.h> 26128 26129 int main (void) 26130 { 26131 26132 if(0 != metalink_strerror(0)) /* added in 0.1.0 */ 26133 return 1; 26134 26135 ; 26136 return 0; 26137 } 26138 26139 _ACEOF 26140 if ac_fn_c_try_link "$LINENO"; then : 26141 26142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($version)" >&5 26143 $as_echo "yes ($version)" >&6; } 26144 want_metalink="yes" 26145 26146 else 26147 26148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($version)" >&5 26149 $as_echo "no ($version)" >&6; } 26150 { $as_echo "$as_me:${as_lineno-$LINENO}: libmetalink library defective or too old" >&5 26151 $as_echo "$as_me: libmetalink library defective or too old" >&6;} 26152 want_metalink="no" 26153 26154 fi 26155 rm -f core conftest.err conftest.$ac_objext \ 26156 conftest$ac_exeext conftest.$ac_ext 26157 CPPFLAGS="$clean_CPPFLAGS" 26158 LDFLAGS="$clean_LDFLAGS" 26159 LIBS="$clean_LIBS" 26160 if test "$want_metalink" = "yes"; then 26161 26162 $as_echo "#define USE_METALINK 1" >>confdefs.h 26163 26164 LIBMETALINK_LIBS=$addlib 26165 LIBMETALINK_LDFLAGS=$addld 26166 LIBMETALINK_CPPFLAGS=$addcflags 26167 26168 26169 26170 curl_mtlnk_msg="enabled" 26171 fi 26172 26173 fi 26174 fi 26175 26176 26177 OPT_LIBSSH2=off 26178 26179 # Check whether --with-libssh2 was given. 26180 if test "${with_libssh2+set}" = set; then : 26181 withval=$with_libssh2; OPT_LIBSSH2=$withval 26182 else 26183 OPT_LIBSSH2=no 26184 fi 26185 26186 26187 26188 OPT_LIBSSH=off 26189 26190 # Check whether --with-libssh was given. 26191 if test "${with_libssh+set}" = set; then : 26192 withval=$with_libssh; OPT_LIBSSH=$withval 26193 else 26194 OPT_LIBSSH=no 26195 fi 26196 26197 26198 if test X"$OPT_LIBSSH2" != Xno; then 26199 CLEANLDFLAGS="$LDFLAGS" 26200 CLEANCPPFLAGS="$CPPFLAGS" 26201 CLEANLIBS="$LIBS" 26202 26203 case "$OPT_LIBSSH2" in 26204 yes) 26205 26206 if test -n "$PKG_CONFIG"; then 26207 PKGCONFIG="$PKG_CONFIG" 26208 else 26209 if test -n "$ac_tool_prefix"; then 26210 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 26211 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 26212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26213 $as_echo_n "checking for $ac_word... " >&6; } 26214 if ${ac_cv_path_PKGCONFIG+:} false; then : 26215 $as_echo_n "(cached) " >&6 26216 else 26217 case $PKGCONFIG in 26218 [\\/]* | ?:[\\/]*) 26219 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 26220 ;; 26221 *) 26222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26223 as_dummy="$PATH:/usr/bin:/usr/local/bin" 26224 for as_dir in $as_dummy 26225 do 26226 IFS=$as_save_IFS 26227 test -z "$as_dir" && as_dir=. 26228 for ac_exec_ext in '' $ac_executable_extensions; do 26229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26230 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 26231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26232 break 2 26233 fi 26234 done 26235 done 26236 IFS=$as_save_IFS 26237 26238 ;; 26239 esac 26240 fi 26241 PKGCONFIG=$ac_cv_path_PKGCONFIG 26242 if test -n "$PKGCONFIG"; then 26243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 26244 $as_echo "$PKGCONFIG" >&6; } 26245 else 26246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26247 $as_echo "no" >&6; } 26248 fi 26249 26250 26251 fi 26252 if test -z "$ac_cv_path_PKGCONFIG"; then 26253 ac_pt_PKGCONFIG=$PKGCONFIG 26254 # Extract the first word of "pkg-config", so it can be a program name with args. 26255 set dummy pkg-config; ac_word=$2 26256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26257 $as_echo_n "checking for $ac_word... " >&6; } 26258 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : 26259 $as_echo_n "(cached) " >&6 26260 else 26261 case $ac_pt_PKGCONFIG in 26262 [\\/]* | ?:[\\/]*) 26263 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 26264 ;; 26265 *) 26266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26267 as_dummy="$PATH:/usr/bin:/usr/local/bin" 26268 for as_dir in $as_dummy 26269 do 26270 IFS=$as_save_IFS 26271 test -z "$as_dir" && as_dir=. 26272 for ac_exec_ext in '' $ac_executable_extensions; do 26273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26274 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 26275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26276 break 2 26277 fi 26278 done 26279 done 26280 IFS=$as_save_IFS 26281 26282 ;; 26283 esac 26284 fi 26285 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 26286 if test -n "$ac_pt_PKGCONFIG"; then 26287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 26288 $as_echo "$ac_pt_PKGCONFIG" >&6; } 26289 else 26290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26291 $as_echo "no" >&6; } 26292 fi 26293 26294 if test "x$ac_pt_PKGCONFIG" = x; then 26295 PKGCONFIG="no" 26296 else 26297 case $cross_compiling:$ac_tool_warned in 26298 yes:) 26299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 26300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 26301 ac_tool_warned=yes ;; 26302 esac 26303 PKGCONFIG=$ac_pt_PKGCONFIG 26304 fi 26305 else 26306 PKGCONFIG="$ac_cv_path_PKGCONFIG" 26307 fi 26308 26309 fi 26310 26311 if test "x$PKGCONFIG" != "xno"; then 26312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5 26313 $as_echo_n "checking for libssh2 options with pkg-config... " >&6; } 26314 itexists=` 26315 if test -n ""; then 26316 PKG_CONFIG_LIBDIR="" 26317 export PKG_CONFIG_LIBDIR 26318 fi 26319 $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1` 26320 26321 if test -z "$itexists"; then 26322 PKGCONFIG="no" 26323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26324 $as_echo "no" >&6; } 26325 else 26326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 26327 $as_echo "found" >&6; } 26328 fi 26329 fi 26330 26331 26332 if test "$PKGCONFIG" != "no" ; then 26333 LIB_SSH2=`$PKGCONFIG --libs libssh2` 26334 LD_SSH2=`$PKGCONFIG --libs-only-L libssh2` 26335 CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2` 26336 version=`$PKGCONFIG --modversion libssh2` 26337 DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/-L//'` 26338 fi 26339 26340 ;; 26341 off) 26342 ;; 26343 *) 26344 PREFIX_SSH2=$OPT_LIBSSH2 26345 ;; 26346 esac 26347 26348 if test -n "$PREFIX_SSH2"; then 26349 LIB_SSH2="-lssh2" 26350 LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff 26351 CPP_SSH2=-I${PREFIX_SSH2}/include 26352 DIR_SSH2=${PREFIX_SSH2}/lib$libsuff 26353 fi 26354 26355 LDFLAGS="$LDFLAGS $LD_SSH2" 26356 CPPFLAGS="$CPPFLAGS $CPP_SSH2" 26357 LIBS="$LIB_SSH2 $LIBS" 26358 26359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5 26360 $as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; } 26361 if ${ac_cv_lib_ssh2_libssh2_channel_open_ex+:} false; then : 26362 $as_echo_n "(cached) " >&6 26363 else 26364 ac_check_lib_save_LIBS=$LIBS 26365 LIBS="-lssh2 $LIBS" 26366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26367 /* end confdefs.h. */ 26368 26369 26370 #ifdef __cplusplus 26371 extern "C" 26372 #endif 26373 char libssh2_channel_open_ex (); 26374 int main (void) 26375 { 26376 return libssh2_channel_open_ex (); 26377 ; 26378 return 0; 26379 } 26380 _ACEOF 26381 if ac_fn_c_try_link "$LINENO"; then : 26382 ac_cv_lib_ssh2_libssh2_channel_open_ex=yes 26383 else 26384 ac_cv_lib_ssh2_libssh2_channel_open_ex=no 26385 fi 26386 rm -f core conftest.err conftest.$ac_objext \ 26387 conftest$ac_exeext conftest.$ac_ext 26388 LIBS=$ac_check_lib_save_LIBS 26389 fi 26390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5 26391 $as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; } 26392 if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = xyes; then : 26393 cat >>confdefs.h <<_ACEOF 26394 #define HAVE_LIBSSH2 1 26395 _ACEOF 26396 26397 LIBS="-lssh2 $LIBS" 26398 26399 fi 26400 26401 26402 for ac_header in libssh2.h 26403 do : 26404 ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default" 26405 if test "x$ac_cv_header_libssh2_h" = xyes; then : 26406 cat >>confdefs.h <<_ACEOF 26407 #define HAVE_LIBSSH2_H 1 26408 _ACEOF 26409 curl_ssh_msg="enabled (libSSH2)" 26410 LIBSSH2_ENABLED=1 26411 26412 $as_echo "#define USE_LIBSSH2 1" >>confdefs.h 26413 26414 USE_LIBSSH2=1 26415 26416 26417 fi 26418 26419 done 26420 26421 26422 if test X"$OPT_LIBSSH2" != Xoff && 26423 test "$LIBSSH2_ENABLED" != "1"; then 26424 as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5 26425 fi 26426 26427 if test "$LIBSSH2_ENABLED" = "1"; then 26428 if test -n "$DIR_SSH2"; then 26429 26430 if test "x$cross_compiling" != "xyes"; then 26431 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH2" 26432 export CURL_LIBRARY_PATH 26433 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&5 26434 $as_echo "$as_me: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&6;} 26435 fi 26436 fi 26437 else 26438 LDFLAGS=$CLEANLDFLAGS 26439 CPPFLAGS=$CLEANCPPFLAGS 26440 LIBS=$CLEANLIBS 26441 fi 26442 elif test X"$OPT_LIBSSH" != Xno; then 26443 CLEANLDFLAGS="$LDFLAGS" 26444 CLEANCPPFLAGS="$CPPFLAGS" 26445 CLEANLIBS="$LIBS" 26446 26447 case "$OPT_LIBSSH" in 26448 yes) 26449 26450 if test -n "$PKG_CONFIG"; then 26451 PKGCONFIG="$PKG_CONFIG" 26452 else 26453 if test -n "$ac_tool_prefix"; then 26454 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 26455 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 26456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26457 $as_echo_n "checking for $ac_word... " >&6; } 26458 if ${ac_cv_path_PKGCONFIG+:} false; then : 26459 $as_echo_n "(cached) " >&6 26460 else 26461 case $PKGCONFIG in 26462 [\\/]* | ?:[\\/]*) 26463 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 26464 ;; 26465 *) 26466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26467 as_dummy="$PATH:/usr/bin:/usr/local/bin" 26468 for as_dir in $as_dummy 26469 do 26470 IFS=$as_save_IFS 26471 test -z "$as_dir" && as_dir=. 26472 for ac_exec_ext in '' $ac_executable_extensions; do 26473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26474 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 26475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26476 break 2 26477 fi 26478 done 26479 done 26480 IFS=$as_save_IFS 26481 26482 ;; 26483 esac 26484 fi 26485 PKGCONFIG=$ac_cv_path_PKGCONFIG 26486 if test -n "$PKGCONFIG"; then 26487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 26488 $as_echo "$PKGCONFIG" >&6; } 26489 else 26490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26491 $as_echo "no" >&6; } 26492 fi 26493 26494 26495 fi 26496 if test -z "$ac_cv_path_PKGCONFIG"; then 26497 ac_pt_PKGCONFIG=$PKGCONFIG 26498 # Extract the first word of "pkg-config", so it can be a program name with args. 26499 set dummy pkg-config; ac_word=$2 26500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26501 $as_echo_n "checking for $ac_word... " >&6; } 26502 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : 26503 $as_echo_n "(cached) " >&6 26504 else 26505 case $ac_pt_PKGCONFIG in 26506 [\\/]* | ?:[\\/]*) 26507 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 26508 ;; 26509 *) 26510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26511 as_dummy="$PATH:/usr/bin:/usr/local/bin" 26512 for as_dir in $as_dummy 26513 do 26514 IFS=$as_save_IFS 26515 test -z "$as_dir" && as_dir=. 26516 for ac_exec_ext in '' $ac_executable_extensions; do 26517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26518 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 26519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26520 break 2 26521 fi 26522 done 26523 done 26524 IFS=$as_save_IFS 26525 26526 ;; 26527 esac 26528 fi 26529 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 26530 if test -n "$ac_pt_PKGCONFIG"; then 26531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 26532 $as_echo "$ac_pt_PKGCONFIG" >&6; } 26533 else 26534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26535 $as_echo "no" >&6; } 26536 fi 26537 26538 if test "x$ac_pt_PKGCONFIG" = x; then 26539 PKGCONFIG="no" 26540 else 26541 case $cross_compiling:$ac_tool_warned in 26542 yes:) 26543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 26544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 26545 ac_tool_warned=yes ;; 26546 esac 26547 PKGCONFIG=$ac_pt_PKGCONFIG 26548 fi 26549 else 26550 PKGCONFIG="$ac_cv_path_PKGCONFIG" 26551 fi 26552 26553 fi 26554 26555 if test "x$PKGCONFIG" != "xno"; then 26556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh options with pkg-config" >&5 26557 $as_echo_n "checking for libssh options with pkg-config... " >&6; } 26558 itexists=` 26559 if test -n ""; then 26560 PKG_CONFIG_LIBDIR="" 26561 export PKG_CONFIG_LIBDIR 26562 fi 26563 $PKGCONFIG --exists libssh >/dev/null 2>&1 && echo 1` 26564 26565 if test -z "$itexists"; then 26566 PKGCONFIG="no" 26567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26568 $as_echo "no" >&6; } 26569 else 26570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 26571 $as_echo "found" >&6; } 26572 fi 26573 fi 26574 26575 26576 if test "$PKGCONFIG" != "no" ; then 26577 LIB_SSH=`$PKGCONFIG --libs-only-l libssh` 26578 LD_SSH=`$PKGCONFIG --libs-only-L libssh` 26579 CPP_SSH=`$PKGCONFIG --cflags-only-I libssh` 26580 version=`$PKGCONFIG --modversion libssh` 26581 DIR_SSH=`echo $LD_SSH | $SED -e 's/-L//'` 26582 fi 26583 26584 ;; 26585 off) 26586 ;; 26587 *) 26588 PREFIX_SSH=$OPT_LIBSSH 26589 ;; 26590 esac 26591 26592 if test -n "$PREFIX_SSH"; then 26593 LIB_SSH="-lssh" 26594 LD_SSH=-L${PREFIX_SSH}/lib$libsuff 26595 CPP_SSH=-I${PREFIX_SSH}/include 26596 DIR_SSH=${PREFIX_SSH}/lib$libsuff 26597 fi 26598 26599 LDFLAGS="$LDFLAGS $LD_SSH" 26600 CPPFLAGS="$CPPFLAGS $CPP_SSH" 26601 LIBS="$LIB_SSH $LIBS" 26602 26603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssh_new in -lssh" >&5 26604 $as_echo_n "checking for ssh_new in -lssh... " >&6; } 26605 if ${ac_cv_lib_ssh_ssh_new+:} false; then : 26606 $as_echo_n "(cached) " >&6 26607 else 26608 ac_check_lib_save_LIBS=$LIBS 26609 LIBS="-lssh $LIBS" 26610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26611 /* end confdefs.h. */ 26612 26613 26614 #ifdef __cplusplus 26615 extern "C" 26616 #endif 26617 char ssh_new (); 26618 int main (void) 26619 { 26620 return ssh_new (); 26621 ; 26622 return 0; 26623 } 26624 _ACEOF 26625 if ac_fn_c_try_link "$LINENO"; then : 26626 ac_cv_lib_ssh_ssh_new=yes 26627 else 26628 ac_cv_lib_ssh_ssh_new=no 26629 fi 26630 rm -f core conftest.err conftest.$ac_objext \ 26631 conftest$ac_exeext conftest.$ac_ext 26632 LIBS=$ac_check_lib_save_LIBS 26633 fi 26634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh_ssh_new" >&5 26635 $as_echo "$ac_cv_lib_ssh_ssh_new" >&6; } 26636 if test "x$ac_cv_lib_ssh_ssh_new" = xyes; then : 26637 cat >>confdefs.h <<_ACEOF 26638 #define HAVE_LIBSSH 1 26639 _ACEOF 26640 26641 LIBS="-lssh $LIBS" 26642 26643 fi 26644 26645 26646 for ac_header in libssh/libssh.h 26647 do : 26648 ac_fn_c_check_header_mongrel "$LINENO" "libssh/libssh.h" "ac_cv_header_libssh_libssh_h" "$ac_includes_default" 26649 if test "x$ac_cv_header_libssh_libssh_h" = xyes; then : 26650 cat >>confdefs.h <<_ACEOF 26651 #define HAVE_LIBSSH_LIBSSH_H 1 26652 _ACEOF 26653 curl_ssh_msg="enabled (libSSH)" 26654 LIBSSH_ENABLED=1 26655 26656 $as_echo "#define USE_LIBSSH 1" >>confdefs.h 26657 26658 USE_LIBSSH=1 26659 26660 26661 fi 26662 26663 done 26664 26665 26666 if test X"$OPT_LIBSSH" != Xoff && 26667 test "$LIBSSH_ENABLED" != "1"; then 26668 as_fn_error $? "libSSH libs and/or directories were not found where specified!" "$LINENO" 5 26669 fi 26670 26671 if test "$LIBSSH_ENABLED" = "1"; then 26672 if test -n "$DIR_SSH"; then 26673 26674 if test "x$cross_compiling" != "xyes"; then 26675 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH" 26676 export CURL_LIBRARY_PATH 26677 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH to CURL_LIBRARY_PATH" >&5 26678 $as_echo "$as_me: Added $DIR_SSH to CURL_LIBRARY_PATH" >&6;} 26679 fi 26680 fi 26681 else 26682 LDFLAGS=$CLEANLDFLAGS 26683 CPPFLAGS=$CLEANCPPFLAGS 26684 LIBS=$CLEANLIBS 26685 fi 26686 fi 26687 26688 26689 OPT_LIBRTMP=off 26690 26691 # Check whether --with-librtmp was given. 26692 if test "${with_librtmp+set}" = set; then : 26693 withval=$with_librtmp; OPT_LIBRTMP=$withval 26694 fi 26695 26696 26697 if test X"$OPT_LIBRTMP" != Xno; then 26698 CLEANLDFLAGS="$LDFLAGS" 26699 CLEANCPPFLAGS="$CPPFLAGS" 26700 CLEANLIBS="$LIBS" 26701 26702 case "$OPT_LIBRTMP" in 26703 yes) 26704 26705 if test -n "$PKG_CONFIG"; then 26706 PKGCONFIG="$PKG_CONFIG" 26707 else 26708 if test -n "$ac_tool_prefix"; then 26709 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 26710 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 26711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26712 $as_echo_n "checking for $ac_word... " >&6; } 26713 if ${ac_cv_path_PKGCONFIG+:} false; then : 26714 $as_echo_n "(cached) " >&6 26715 else 26716 case $PKGCONFIG in 26717 [\\/]* | ?:[\\/]*) 26718 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 26719 ;; 26720 *) 26721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26722 as_dummy="$PATH:/usr/bin:/usr/local/bin" 26723 for as_dir in $as_dummy 26724 do 26725 IFS=$as_save_IFS 26726 test -z "$as_dir" && as_dir=. 26727 for ac_exec_ext in '' $ac_executable_extensions; do 26728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26729 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 26730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26731 break 2 26732 fi 26733 done 26734 done 26735 IFS=$as_save_IFS 26736 26737 ;; 26738 esac 26739 fi 26740 PKGCONFIG=$ac_cv_path_PKGCONFIG 26741 if test -n "$PKGCONFIG"; then 26742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 26743 $as_echo "$PKGCONFIG" >&6; } 26744 else 26745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26746 $as_echo "no" >&6; } 26747 fi 26748 26749 26750 fi 26751 if test -z "$ac_cv_path_PKGCONFIG"; then 26752 ac_pt_PKGCONFIG=$PKGCONFIG 26753 # Extract the first word of "pkg-config", so it can be a program name with args. 26754 set dummy pkg-config; ac_word=$2 26755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26756 $as_echo_n "checking for $ac_word... " >&6; } 26757 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : 26758 $as_echo_n "(cached) " >&6 26759 else 26760 case $ac_pt_PKGCONFIG in 26761 [\\/]* | ?:[\\/]*) 26762 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 26763 ;; 26764 *) 26765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26766 as_dummy="$PATH:/usr/bin:/usr/local/bin" 26767 for as_dir in $as_dummy 26768 do 26769 IFS=$as_save_IFS 26770 test -z "$as_dir" && as_dir=. 26771 for ac_exec_ext in '' $ac_executable_extensions; do 26772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26773 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 26774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26775 break 2 26776 fi 26777 done 26778 done 26779 IFS=$as_save_IFS 26780 26781 ;; 26782 esac 26783 fi 26784 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 26785 if test -n "$ac_pt_PKGCONFIG"; then 26786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 26787 $as_echo "$ac_pt_PKGCONFIG" >&6; } 26788 else 26789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26790 $as_echo "no" >&6; } 26791 fi 26792 26793 if test "x$ac_pt_PKGCONFIG" = x; then 26794 PKGCONFIG="no" 26795 else 26796 case $cross_compiling:$ac_tool_warned in 26797 yes:) 26798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 26799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 26800 ac_tool_warned=yes ;; 26801 esac 26802 PKGCONFIG=$ac_pt_PKGCONFIG 26803 fi 26804 else 26805 PKGCONFIG="$ac_cv_path_PKGCONFIG" 26806 fi 26807 26808 fi 26809 26810 if test "x$PKGCONFIG" != "xno"; then 26811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5 26812 $as_echo_n "checking for librtmp options with pkg-config... " >&6; } 26813 itexists=` 26814 if test -n ""; then 26815 PKG_CONFIG_LIBDIR="" 26816 export PKG_CONFIG_LIBDIR 26817 fi 26818 $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1` 26819 26820 if test -z "$itexists"; then 26821 PKGCONFIG="no" 26822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26823 $as_echo "no" >&6; } 26824 else 26825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 26826 $as_echo "found" >&6; } 26827 fi 26828 fi 26829 26830 26831 if test "$PKGCONFIG" != "no" ; then 26832 LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp` 26833 LD_RTMP=`$PKGCONFIG --libs-only-L librtmp` 26834 CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp` 26835 version=`$PKGCONFIG --modversion librtmp` 26836 DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'` 26837 else 26838 as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5 26839 fi 26840 26841 ;; 26842 off) 26843 LIB_RTMP="-lrtmp" 26844 ;; 26845 *) 26846 LIB_RTMP="-lrtmp" 26847 PREFIX_RTMP=$OPT_LIBRTMP 26848 ;; 26849 esac 26850 26851 if test -n "$PREFIX_RTMP"; then 26852 LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff 26853 CPP_RTMP=-I${PREFIX_RTMP}/include 26854 DIR_RTMP=${PREFIX_RTMP}/lib$libsuff 26855 fi 26856 26857 LDFLAGS="$LDFLAGS $LD_RTMP" 26858 CPPFLAGS="$CPPFLAGS $CPP_RTMP" 26859 LIBS="$LIB_RTMP $LIBS" 26860 26861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5 26862 $as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; } 26863 if ${ac_cv_lib_rtmp_RTMP_Init+:} false; then : 26864 $as_echo_n "(cached) " >&6 26865 else 26866 ac_check_lib_save_LIBS=$LIBS 26867 LIBS="-lrtmp $LIBS" 26868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26869 /* end confdefs.h. */ 26870 26871 26872 #ifdef __cplusplus 26873 extern "C" 26874 #endif 26875 char RTMP_Init (); 26876 int main (void) 26877 { 26878 return RTMP_Init (); 26879 ; 26880 return 0; 26881 } 26882 _ACEOF 26883 if ac_fn_c_try_link "$LINENO"; then : 26884 ac_cv_lib_rtmp_RTMP_Init=yes 26885 else 26886 ac_cv_lib_rtmp_RTMP_Init=no 26887 fi 26888 rm -f core conftest.err conftest.$ac_objext \ 26889 conftest$ac_exeext conftest.$ac_ext 26890 LIBS=$ac_check_lib_save_LIBS 26891 fi 26892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5 26893 $as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; } 26894 if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes; then : 26895 26896 for ac_header in librtmp/rtmp.h 26897 do : 26898 ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default" 26899 if test "x$ac_cv_header_librtmp_rtmp_h" = xyes; then : 26900 cat >>confdefs.h <<_ACEOF 26901 #define HAVE_LIBRTMP_RTMP_H 1 26902 _ACEOF 26903 curl_rtmp_msg="enabled (librtmp)" 26904 LIBRTMP_ENABLED=1 26905 26906 $as_echo "#define USE_LIBRTMP 1" >>confdefs.h 26907 26908 USE_LIBRTMP=1 26909 26910 26911 fi 26912 26913 done 26914 26915 26916 else 26917 LDFLAGS=$CLEANLDFLAGS 26918 CPPFLAGS=$CLEANCPPFLAGS 26919 LIBS=$CLEANLIBS 26920 26921 fi 26922 26923 26924 if test X"$OPT_LIBRTMP" != Xoff && 26925 test "$LIBRTMP_ENABLED" != "1"; then 26926 as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5 26927 fi 26928 26929 fi 26930 26931 26932 versioned_symbols_flavour= 26933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5 26934 $as_echo_n "checking whether versioned symbols are wanted... " >&6; } 26935 # Check whether --enable-versioned-symbols was given. 26936 if test "${enable_versioned_symbols+set}" = set; then : 26937 enableval=$enable_versioned_symbols; case "$enableval" in 26938 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26939 $as_echo "yes" >&6; } 26940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5 26941 $as_echo_n "checking if libraries can be versioned... " >&6; } 26942 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script` 26943 if test -z "$GLD"; then 26944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26945 $as_echo "no" >&6; } 26946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5 26947 $as_echo "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;} 26948 else 26949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26950 $as_echo "yes" >&6; } 26951 if test "x$CURL_WITH_MULTI_SSL" = "x1"; then 26952 versioned_symbols_flavour="MULTISSL_" 26953 elif test "x$OPENSSL_ENABLED" = "x1"; then 26954 versioned_symbols_flavour="OPENSSL_" 26955 elif test "x$GNUTLS_ENABLED" = "x1"; then 26956 versioned_symbols_flavour="GNUTLS_" 26957 elif test "x$NSS_ENABLED" = "x1"; then 26958 versioned_symbols_flavour="NSS_" 26959 elif test "x$POLARSSL_ENABLED" = "x1"; then 26960 versioned_symbols_flavour="POLARSSL_" 26961 elif test "x$CYASSL_ENABLED" = "x1"; then 26962 versioned_symbols_flavour="CYASSL_" 26963 elif test "x$WINSSL_ENABLED" = "x1"; then 26964 versioned_symbols_flavour="SCHANNEL_" 26965 elif test "x$SECURETRANSPORT_ENABLED" = "x1"; then 26966 versioned_symbols_flavour="SECURE_TRANSPORT_" 26967 else 26968 versioned_symbols_flavour="" 26969 fi 26970 versioned_symbols="yes" 26971 fi 26972 ;; 26973 26974 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26975 $as_echo "no" >&6; } 26976 ;; 26977 esac 26978 26979 else 26980 26981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26982 $as_echo "no" >&6; } 26983 26984 26985 fi 26986 26987 26988 CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour" 26989 26990 if test "x$versioned_symbols" = 'xyes'; then 26991 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE= 26992 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#' 26993 else 26994 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#' 26995 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE= 26996 fi 26997 26998 26999 27000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5 27001 $as_echo_n "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; } 27002 OPT_WINIDN="default" 27003 27004 # Check whether --with-winidn was given. 27005 if test "${with_winidn+set}" = set; then : 27006 withval=$with_winidn; OPT_WINIDN=$withval 27007 fi 27008 27009 case "$OPT_WINIDN" in 27010 no|default) 27011 want_winidn="no" 27012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27013 $as_echo "no" >&6; } 27014 ;; 27015 yes) 27016 want_winidn="yes" 27017 want_winidn_path="default" 27018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27019 $as_echo "yes" >&6; } 27020 ;; 27021 *) 27022 want_winidn="yes" 27023 want_winidn_path="$withval" 27024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5 27025 $as_echo "yes ($withval)" >&6; } 27026 ;; 27027 esac 27028 27029 if test "$want_winidn" = "yes"; then 27030 clean_CPPFLAGS="$CPPFLAGS" 27031 clean_LDFLAGS="$LDFLAGS" 27032 clean_LIBS="$LIBS" 27033 WINIDN_LIBS="-lnormaliz" 27034 WINIDN_CPPFLAGS="-DWINVER=0x0600" 27035 # 27036 if test "$want_winidn_path" != "default"; then 27037 WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff" 27038 WINIDN_CPPFLAGS="-I$want_winidn_path/include" 27039 WINIDN_DIR="$want_winidn_path/lib$libsuff" 27040 fi 27041 # 27042 CPPFLAGS="$CPPFLAGS $WINIDN_CPPFLAGS" 27043 LDFLAGS="$LDFLAGS $WINIDN_LDFLAGS" 27044 LIBS="$WINIDN_LIBS $LIBS" 27045 # 27046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5 27047 $as_echo_n "checking if IdnToUnicode can be linked... " >&6; } 27048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27049 /* end confdefs.h. */ 27050 27051 27052 #include <windows.h> 27053 27054 int main (void) 27055 { 27056 27057 IdnToUnicode(0, NULL, 0, NULL, 0); 27058 27059 ; 27060 return 0; 27061 } 27062 27063 _ACEOF 27064 if ac_fn_c_try_link "$LINENO"; then : 27065 27066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27067 $as_echo "yes" >&6; } 27068 tst_links_winidn="yes" 27069 27070 else 27071 27072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27073 $as_echo "no" >&6; } 27074 tst_links_winidn="no" 27075 27076 fi 27077 rm -f core conftest.err conftest.$ac_objext \ 27078 conftest$ac_exeext conftest.$ac_ext 27079 # 27080 if test "$tst_links_winidn" = "yes"; then 27081 27082 $as_echo "#define USE_WIN32_IDN 1" >>confdefs.h 27083 27084 27085 $as_echo "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h 27086 27087 IDN_ENABLED=1 27088 27089 curl_idn_msg="enabled (Windows-native)" 27090 else 27091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5 27092 $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;} 27093 CPPFLAGS="$clean_CPPFLAGS" 27094 LDFLAGS="$clean_LDFLAGS" 27095 LIBS="$clean_LIBS" 27096 fi 27097 fi 27098 27099 27100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn2" >&5 27101 $as_echo_n "checking whether to build with libidn2... " >&6; } 27102 OPT_IDN="default" 27103 27104 # Check whether --with-libidn2 was given. 27105 if test "${with_libidn2+set}" = set; then : 27106 withval=$with_libidn2; OPT_IDN=$withval 27107 fi 27108 27109 case "$OPT_IDN" in 27110 no) 27111 want_idn="no" 27112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27113 $as_echo "no" >&6; } 27114 ;; 27115 default) 27116 want_idn="yes" 27117 want_idn_path="default" 27118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5 27119 $as_echo "(assumed) yes" >&6; } 27120 ;; 27121 yes) 27122 want_idn="yes" 27123 want_idn_path="default" 27124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27125 $as_echo "yes" >&6; } 27126 ;; 27127 *) 27128 want_idn="yes" 27129 want_idn_path="$withval" 27130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5 27131 $as_echo "yes ($withval)" >&6; } 27132 ;; 27133 esac 27134 27135 if test "$want_idn" = "yes"; then 27136 clean_CPPFLAGS="$CPPFLAGS" 27137 clean_LDFLAGS="$LDFLAGS" 27138 clean_LIBS="$LIBS" 27139 PKGCONFIG="no" 27140 # 27141 if test "$want_idn_path" != "default"; then 27142 IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig" 27143 27144 if test -n "$PKG_CONFIG"; then 27145 PKGCONFIG="$PKG_CONFIG" 27146 else 27147 if test -n "$ac_tool_prefix"; then 27148 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 27149 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 27150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27151 $as_echo_n "checking for $ac_word... " >&6; } 27152 if ${ac_cv_path_PKGCONFIG+:} false; then : 27153 $as_echo_n "(cached) " >&6 27154 else 27155 case $PKGCONFIG in 27156 [\\/]* | ?:[\\/]*) 27157 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 27158 ;; 27159 *) 27160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27161 as_dummy="$PATH:/usr/bin:/usr/local/bin" 27162 for as_dir in $as_dummy 27163 do 27164 IFS=$as_save_IFS 27165 test -z "$as_dir" && as_dir=. 27166 for ac_exec_ext in '' $ac_executable_extensions; do 27167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27168 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 27169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27170 break 2 27171 fi 27172 done 27173 done 27174 IFS=$as_save_IFS 27175 27176 ;; 27177 esac 27178 fi 27179 PKGCONFIG=$ac_cv_path_PKGCONFIG 27180 if test -n "$PKGCONFIG"; then 27181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 27182 $as_echo "$PKGCONFIG" >&6; } 27183 else 27184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27185 $as_echo "no" >&6; } 27186 fi 27187 27188 27189 fi 27190 if test -z "$ac_cv_path_PKGCONFIG"; then 27191 ac_pt_PKGCONFIG=$PKGCONFIG 27192 # Extract the first word of "pkg-config", so it can be a program name with args. 27193 set dummy pkg-config; ac_word=$2 27194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27195 $as_echo_n "checking for $ac_word... " >&6; } 27196 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : 27197 $as_echo_n "(cached) " >&6 27198 else 27199 case $ac_pt_PKGCONFIG in 27200 [\\/]* | ?:[\\/]*) 27201 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 27202 ;; 27203 *) 27204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27205 as_dummy="$PATH:/usr/bin:/usr/local/bin" 27206 for as_dir in $as_dummy 27207 do 27208 IFS=$as_save_IFS 27209 test -z "$as_dir" && as_dir=. 27210 for ac_exec_ext in '' $ac_executable_extensions; do 27211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27212 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 27213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27214 break 2 27215 fi 27216 done 27217 done 27218 IFS=$as_save_IFS 27219 27220 ;; 27221 esac 27222 fi 27223 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 27224 if test -n "$ac_pt_PKGCONFIG"; then 27225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 27226 $as_echo "$ac_pt_PKGCONFIG" >&6; } 27227 else 27228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27229 $as_echo "no" >&6; } 27230 fi 27231 27232 if test "x$ac_pt_PKGCONFIG" = x; then 27233 PKGCONFIG="no" 27234 else 27235 case $cross_compiling:$ac_tool_warned in 27236 yes:) 27237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 27238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 27239 ac_tool_warned=yes ;; 27240 esac 27241 PKGCONFIG=$ac_pt_PKGCONFIG 27242 fi 27243 else 27244 PKGCONFIG="$ac_cv_path_PKGCONFIG" 27245 fi 27246 27247 fi 27248 27249 if test "x$PKGCONFIG" != "xno"; then 27250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5 27251 $as_echo_n "checking for libidn2 options with pkg-config... " >&6; } 27252 itexists=` 27253 if test -n "$IDN_PCDIR"; then 27254 PKG_CONFIG_LIBDIR="$IDN_PCDIR" 27255 export PKG_CONFIG_LIBDIR 27256 fi 27257 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1` 27258 27259 if test -z "$itexists"; then 27260 PKGCONFIG="no" 27261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27262 $as_echo "no" >&6; } 27263 else 27264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 27265 $as_echo "found" >&6; } 27266 fi 27267 fi 27268 27269 if test "$PKGCONFIG" != "no"; then 27270 IDN_LIBS=` 27271 if test -n "$IDN_PCDIR"; then 27272 PKG_CONFIG_LIBDIR="$IDN_PCDIR" 27273 export PKG_CONFIG_LIBDIR 27274 fi 27275 $PKGCONFIG --libs-only-l libidn2 2>/dev/null` 27276 IDN_LDFLAGS=` 27277 if test -n "$IDN_PCDIR"; then 27278 PKG_CONFIG_LIBDIR="$IDN_PCDIR" 27279 export PKG_CONFIG_LIBDIR 27280 fi 27281 $PKGCONFIG --libs-only-L libidn2 2>/dev/null` 27282 IDN_CPPFLAGS=` 27283 if test -n "$IDN_PCDIR"; then 27284 PKG_CONFIG_LIBDIR="$IDN_PCDIR" 27285 export PKG_CONFIG_LIBDIR 27286 fi 27287 $PKGCONFIG --cflags-only-I libidn2 2>/dev/null` 27288 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'` 27289 else 27290 IDN_LIBS="-lidn2" 27291 IDN_LDFLAGS="-L$want_idn_path/lib$libsuff" 27292 IDN_CPPFLAGS="-I$want_idn_path/include" 27293 IDN_DIR="$want_idn_path/lib$libsuff" 27294 fi 27295 else 27296 27297 if test -n "$PKG_CONFIG"; then 27298 PKGCONFIG="$PKG_CONFIG" 27299 else 27300 if test -n "$ac_tool_prefix"; then 27301 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 27302 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 27303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27304 $as_echo_n "checking for $ac_word... " >&6; } 27305 if ${ac_cv_path_PKGCONFIG+:} false; then : 27306 $as_echo_n "(cached) " >&6 27307 else 27308 case $PKGCONFIG in 27309 [\\/]* | ?:[\\/]*) 27310 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 27311 ;; 27312 *) 27313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27314 as_dummy="$PATH:/usr/bin:/usr/local/bin" 27315 for as_dir in $as_dummy 27316 do 27317 IFS=$as_save_IFS 27318 test -z "$as_dir" && as_dir=. 27319 for ac_exec_ext in '' $ac_executable_extensions; do 27320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27321 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 27322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27323 break 2 27324 fi 27325 done 27326 done 27327 IFS=$as_save_IFS 27328 27329 ;; 27330 esac 27331 fi 27332 PKGCONFIG=$ac_cv_path_PKGCONFIG 27333 if test -n "$PKGCONFIG"; then 27334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 27335 $as_echo "$PKGCONFIG" >&6; } 27336 else 27337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27338 $as_echo "no" >&6; } 27339 fi 27340 27341 27342 fi 27343 if test -z "$ac_cv_path_PKGCONFIG"; then 27344 ac_pt_PKGCONFIG=$PKGCONFIG 27345 # Extract the first word of "pkg-config", so it can be a program name with args. 27346 set dummy pkg-config; ac_word=$2 27347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27348 $as_echo_n "checking for $ac_word... " >&6; } 27349 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : 27350 $as_echo_n "(cached) " >&6 27351 else 27352 case $ac_pt_PKGCONFIG in 27353 [\\/]* | ?:[\\/]*) 27354 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 27355 ;; 27356 *) 27357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27358 as_dummy="$PATH:/usr/bin:/usr/local/bin" 27359 for as_dir in $as_dummy 27360 do 27361 IFS=$as_save_IFS 27362 test -z "$as_dir" && as_dir=. 27363 for ac_exec_ext in '' $ac_executable_extensions; do 27364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27365 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 27366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27367 break 2 27368 fi 27369 done 27370 done 27371 IFS=$as_save_IFS 27372 27373 ;; 27374 esac 27375 fi 27376 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 27377 if test -n "$ac_pt_PKGCONFIG"; then 27378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 27379 $as_echo "$ac_pt_PKGCONFIG" >&6; } 27380 else 27381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27382 $as_echo "no" >&6; } 27383 fi 27384 27385 if test "x$ac_pt_PKGCONFIG" = x; then 27386 PKGCONFIG="no" 27387 else 27388 case $cross_compiling:$ac_tool_warned in 27389 yes:) 27390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 27391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 27392 ac_tool_warned=yes ;; 27393 esac 27394 PKGCONFIG=$ac_pt_PKGCONFIG 27395 fi 27396 else 27397 PKGCONFIG="$ac_cv_path_PKGCONFIG" 27398 fi 27399 27400 fi 27401 27402 if test "x$PKGCONFIG" != "xno"; then 27403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5 27404 $as_echo_n "checking for libidn2 options with pkg-config... " >&6; } 27405 itexists=` 27406 if test -n ""; then 27407 PKG_CONFIG_LIBDIR="" 27408 export PKG_CONFIG_LIBDIR 27409 fi 27410 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1` 27411 27412 if test -z "$itexists"; then 27413 PKGCONFIG="no" 27414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27415 $as_echo "no" >&6; } 27416 else 27417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 27418 $as_echo "found" >&6; } 27419 fi 27420 fi 27421 27422 if test "$PKGCONFIG" != "no"; then 27423 IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null` 27424 IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null` 27425 IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null` 27426 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'` 27427 else 27428 IDN_LIBS="-lidn2" 27429 fi 27430 fi 27431 # 27432 if test "$PKGCONFIG" != "no"; then 27433 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5 27434 $as_echo "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;} 27435 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5 27436 $as_echo "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;} 27437 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5 27438 $as_echo "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;} 27439 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5 27440 $as_echo "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;} 27441 else 27442 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5 27443 $as_echo "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;} 27444 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5 27445 $as_echo "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;} 27446 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5 27447 $as_echo "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;} 27448 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5 27449 $as_echo "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;} 27450 fi 27451 # 27452 CPPFLAGS="$CPPFLAGS $IDN_CPPFLAGS" 27453 LDFLAGS="$LDFLAGS $IDN_LDFLAGS" 27454 LIBS="$IDN_LIBS $LIBS" 27455 # 27456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idn2_lookup_ul can be linked" >&5 27457 $as_echo_n "checking if idn2_lookup_ul can be linked... " >&6; } 27458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27459 /* end confdefs.h. */ 27460 27461 27462 #define idn2_lookup_ul innocuous_idn2_lookup_ul 27463 #ifdef __STDC__ 27464 # include <limits.h> 27465 #else 27466 # include <assert.h> 27467 #endif 27468 #undef idn2_lookup_ul 27469 #ifdef __cplusplus 27470 extern "C" 27471 #endif 27472 char idn2_lookup_ul (); 27473 #if defined __stub_idn2_lookup_ul || defined __stub___idn2_lookup_ul 27474 choke me 27475 #endif 27476 27477 int main (void) 27478 { 27479 return idn2_lookup_ul (); 27480 ; 27481 return 0; 27482 } 27483 27484 _ACEOF 27485 if ac_fn_c_try_link "$LINENO"; then : 27486 27487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27488 $as_echo "yes" >&6; } 27489 tst_links_libidn="yes" 27490 27491 else 27492 27493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27494 $as_echo "no" >&6; } 27495 tst_links_libidn="no" 27496 27497 fi 27498 rm -f core conftest.err conftest.$ac_objext \ 27499 conftest$ac_exeext conftest.$ac_ext 27500 # 27501 for ac_header in idn2.h 27502 do : 27503 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 27504 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 27505 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 27506 cat >>confdefs.h <<_ACEOF 27507 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 27508 _ACEOF 27509 27510 fi 27511 27512 done 27513 27514 27515 if test "$tst_links_libidn" = "yes"; then 27516 27517 $as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h 27518 27519 27520 IDN_ENABLED=1 27521 27522 curl_idn_msg="enabled (libidn2)" 27523 if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then 27524 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$IDN_DIR" 27525 export CURL_LIBRARY_PATH 27526 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to CURL_LIBRARY_PATH" >&5 27527 $as_echo "$as_me: Added $IDN_DIR to CURL_LIBRARY_PATH" >&6;} 27528 fi 27529 else 27530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5 27531 $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;} 27532 CPPFLAGS="$clean_CPPFLAGS" 27533 LDFLAGS="$clean_LDFLAGS" 27534 LIBS="$clean_LIBS" 27535 fi 27536 fi 27537 27538 27539 27540 27541 27542 OPT_H2="yes" 27543 27544 if test "x$disable_http" = "xyes"; then 27545 # without HTTP, nghttp2 is no use 27546 OPT_H2="no" 27547 fi 27548 27549 27550 # Check whether --with-nghttp2 was given. 27551 if test "${with_nghttp2+set}" = set; then : 27552 withval=$with_nghttp2; OPT_H2=$withval 27553 fi 27554 27555 case "$OPT_H2" in 27556 no) 27557 want_h2="no" 27558 ;; 27559 yes) 27560 want_h2="default" 27561 want_h2_path="" 27562 ;; 27563 *) 27564 want_h2="yes" 27565 want_h2_path="$withval/lib/pkgconfig" 27566 ;; 27567 esac 27568 27569 curl_h2_msg="disabled (--with-nghttp2)" 27570 if test X"$want_h2" != Xno; then 27571 CLEANLDFLAGS="$LDFLAGS" 27572 CLEANCPPFLAGS="$CPPFLAGS" 27573 CLEANLIBS="$LIBS" 27574 27575 27576 if test -n "$PKG_CONFIG"; then 27577 PKGCONFIG="$PKG_CONFIG" 27578 else 27579 if test -n "$ac_tool_prefix"; then 27580 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 27581 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 27582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27583 $as_echo_n "checking for $ac_word... " >&6; } 27584 if ${ac_cv_path_PKGCONFIG+:} false; then : 27585 $as_echo_n "(cached) " >&6 27586 else 27587 case $PKGCONFIG in 27588 [\\/]* | ?:[\\/]*) 27589 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 27590 ;; 27591 *) 27592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27593 as_dummy="$PATH:/usr/bin:/usr/local/bin" 27594 for as_dir in $as_dummy 27595 do 27596 IFS=$as_save_IFS 27597 test -z "$as_dir" && as_dir=. 27598 for ac_exec_ext in '' $ac_executable_extensions; do 27599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27600 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 27601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27602 break 2 27603 fi 27604 done 27605 done 27606 IFS=$as_save_IFS 27607 27608 ;; 27609 esac 27610 fi 27611 PKGCONFIG=$ac_cv_path_PKGCONFIG 27612 if test -n "$PKGCONFIG"; then 27613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 27614 $as_echo "$PKGCONFIG" >&6; } 27615 else 27616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27617 $as_echo "no" >&6; } 27618 fi 27619 27620 27621 fi 27622 if test -z "$ac_cv_path_PKGCONFIG"; then 27623 ac_pt_PKGCONFIG=$PKGCONFIG 27624 # Extract the first word of "pkg-config", so it can be a program name with args. 27625 set dummy pkg-config; ac_word=$2 27626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27627 $as_echo_n "checking for $ac_word... " >&6; } 27628 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : 27629 $as_echo_n "(cached) " >&6 27630 else 27631 case $ac_pt_PKGCONFIG in 27632 [\\/]* | ?:[\\/]*) 27633 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 27634 ;; 27635 *) 27636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27637 as_dummy="$PATH:/usr/bin:/usr/local/bin" 27638 for as_dir in $as_dummy 27639 do 27640 IFS=$as_save_IFS 27641 test -z "$as_dir" && as_dir=. 27642 for ac_exec_ext in '' $ac_executable_extensions; do 27643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27644 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 27645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27646 break 2 27647 fi 27648 done 27649 done 27650 IFS=$as_save_IFS 27651 27652 ;; 27653 esac 27654 fi 27655 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 27656 if test -n "$ac_pt_PKGCONFIG"; then 27657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 27658 $as_echo "$ac_pt_PKGCONFIG" >&6; } 27659 else 27660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27661 $as_echo "no" >&6; } 27662 fi 27663 27664 if test "x$ac_pt_PKGCONFIG" = x; then 27665 PKGCONFIG="no" 27666 else 27667 case $cross_compiling:$ac_tool_warned in 27668 yes:) 27669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 27670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 27671 ac_tool_warned=yes ;; 27672 esac 27673 PKGCONFIG=$ac_pt_PKGCONFIG 27674 fi 27675 else 27676 PKGCONFIG="$ac_cv_path_PKGCONFIG" 27677 fi 27678 27679 fi 27680 27681 if test "x$PKGCONFIG" != "xno"; then 27682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5 27683 $as_echo_n "checking for libnghttp2 options with pkg-config... " >&6; } 27684 itexists=` 27685 if test -n "$want_h2_path"; then 27686 PKG_CONFIG_LIBDIR="$want_h2_path" 27687 export PKG_CONFIG_LIBDIR 27688 fi 27689 $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1` 27690 27691 if test -z "$itexists"; then 27692 PKGCONFIG="no" 27693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27694 $as_echo "no" >&6; } 27695 else 27696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 27697 $as_echo "found" >&6; } 27698 fi 27699 fi 27700 27701 27702 if test "$PKGCONFIG" != "no" ; then 27703 LIB_H2=` 27704 if test -n "$want_h2_path"; then 27705 PKG_CONFIG_LIBDIR="$want_h2_path" 27706 export PKG_CONFIG_LIBDIR 27707 fi 27708 27709 $PKGCONFIG --libs-only-l libnghttp2` 27710 { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5 27711 $as_echo "$as_me: -l is $LIB_H2" >&6;} 27712 27713 CPP_H2=` 27714 if test -n "$want_h2_path"; then 27715 PKG_CONFIG_LIBDIR="$want_h2_path" 27716 export PKG_CONFIG_LIBDIR 27717 fi 27718 $PKGCONFIG --cflags-only-I libnghttp2` 27719 { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5 27720 $as_echo "$as_me: -I is $CPP_H2" >&6;} 27721 27722 LD_H2=` 27723 if test -n "$want_h2_path"; then 27724 PKG_CONFIG_LIBDIR="$want_h2_path" 27725 export PKG_CONFIG_LIBDIR 27726 fi 27727 27728 $PKGCONFIG --libs-only-L libnghttp2` 27729 { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5 27730 $as_echo "$as_me: -L is $LD_H2" >&6;} 27731 27732 LDFLAGS="$LDFLAGS $LD_H2" 27733 CPPFLAGS="$CPPFLAGS $CPP_H2" 27734 LIBS="$LIB_H2 $LIBS" 27735 27736 # use nghttp2_option_set_no_recv_client_magic to require nghttp2 27737 # >= 1.0.0 27738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2" >&5 27739 $as_echo_n "checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2... " >&6; } 27740 if ${ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic+:} false; then : 27741 $as_echo_n "(cached) " >&6 27742 else 27743 ac_check_lib_save_LIBS=$LIBS 27744 LIBS="-lnghttp2 $LIBS" 27745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27746 /* end confdefs.h. */ 27747 27748 27749 #ifdef __cplusplus 27750 extern "C" 27751 #endif 27752 char nghttp2_option_set_no_recv_client_magic (); 27753 int main (void) 27754 { 27755 return nghttp2_option_set_no_recv_client_magic (); 27756 ; 27757 return 0; 27758 } 27759 _ACEOF 27760 if ac_fn_c_try_link "$LINENO"; then : 27761 ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=yes 27762 else 27763 ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=no 27764 fi 27765 rm -f core conftest.err conftest.$ac_objext \ 27766 conftest$ac_exeext conftest.$ac_ext 27767 LIBS=$ac_check_lib_save_LIBS 27768 fi 27769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&5 27770 $as_echo "$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&6; } 27771 if test "x$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" = xyes; then : 27772 27773 for ac_header in nghttp2/nghttp2.h 27774 do : 27775 ac_fn_c_check_header_mongrel "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default" 27776 if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then : 27777 cat >>confdefs.h <<_ACEOF 27778 #define HAVE_NGHTTP2_NGHTTP2_H 1 27779 _ACEOF 27780 curl_h2_msg="enabled (nghttp2)" 27781 NGHTTP2_ENABLED=1 27782 27783 $as_echo "#define USE_NGHTTP2 1" >>confdefs.h 27784 27785 USE_NGHTTP2=1 27786 27787 27788 fi 27789 27790 done 27791 27792 27793 else 27794 LDFLAGS=$CLEANLDFLAGS 27795 CPPFLAGS=$CLEANCPPFLAGS 27796 LIBS=$CLEANLIBS 27797 27798 fi 27799 27800 27801 else 27802 if test X"$want_h2" != Xdefault; then 27803 as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5 27804 fi 27805 fi 27806 27807 fi 27808 27809 27810 OPT_ZSH_FPATH=default 27811 27812 # Check whether --with-zsh-functions-dir was given. 27813 if test "${with_zsh_functions_dir+set}" = set; then : 27814 withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval 27815 fi 27816 27817 case "$OPT_ZSH_FPATH" in 27818 no) 27819 ;; 27820 default|yes) 27821 ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions" 27822 27823 ;; 27824 *) 27825 ZSH_FUNCTIONS_DIR="$withval" 27826 27827 ;; 27828 esac 27829 27830 27831 OPT_FISH_FPATH=default 27832 27833 # Check whether --with-fish-functions-dir was given. 27834 if test "${with_fish_functions_dir+set}" = set; then : 27835 withval=$with_fish_functions_dir; OPT_FISH_FPATH=$withval 27836 fi 27837 27838 case "$OPT_FISH_FPATH" in 27839 no) 27840 ;; 27841 default|yes) 27842 FISH_FUNCTIONS_DIR="$datarootdir/fish/completions" 27843 27844 ;; 27845 *) 27846 FISH_FUNCTIONS_DIR="$withval" 27847 27848 ;; 27849 esac 27850 27851 27852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 27853 $as_echo_n "checking for ANSI C header files... " >&6; } 27854 if ${ac_cv_header_stdc+:} false; then : 27855 $as_echo_n "(cached) " >&6 27856 else 27857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27858 /* end confdefs.h. */ 27859 #include <stdlib.h> 27860 #include <stdarg.h> 27861 #include <string.h> 27862 #include <float.h> 27863 27864 int main (void) 27865 { 27866 27867 ; 27868 return 0; 27869 } 27870 _ACEOF 27871 if ac_fn_c_try_compile "$LINENO"; then : 27872 ac_cv_header_stdc=yes 27873 else 27874 ac_cv_header_stdc=no 27875 fi 27876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27877 27878 if test $ac_cv_header_stdc = yes; then 27879 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 27880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27881 /* end confdefs.h. */ 27882 #include <string.h> 27883 27884 _ACEOF 27885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 27886 $EGREP "memchr" >/dev/null 2>&1; then : 27887 27888 else 27889 ac_cv_header_stdc=no 27890 fi 27891 rm -f conftest* 27892 27893 fi 27894 27895 if test $ac_cv_header_stdc = yes; then 27896 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 27897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27898 /* end confdefs.h. */ 27899 #include <stdlib.h> 27900 27901 _ACEOF 27902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 27903 $EGREP "free" >/dev/null 2>&1; then : 27904 27905 else 27906 ac_cv_header_stdc=no 27907 fi 27908 rm -f conftest* 27909 27910 fi 27911 27912 if test $ac_cv_header_stdc = yes; then 27913 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 27914 if test "$cross_compiling" = yes; then : 27915 : 27916 else 27917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27918 /* end confdefs.h. */ 27919 #include <ctype.h> 27920 #include <stdlib.h> 27921 #if ((' ' & 0x0FF) == 0x020) 27922 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 27923 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 27924 #else 27925 # define ISLOWER(c) \ 27926 (('a' <= (c) && (c) <= 'i') \ 27927 || ('j' <= (c) && (c) <= 'r') \ 27928 || ('s' <= (c) && (c) <= 'z')) 27929 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 27930 #endif 27931 27932 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 27933 int 27934 main () 27935 { 27936 int i; 27937 for (i = 0; i < 256; i++) 27938 if (XOR (islower (i), ISLOWER (i)) 27939 || toupper (i) != TOUPPER (i)) 27940 return 2; 27941 return 0; 27942 } 27943 _ACEOF 27944 if ac_fn_c_try_run "$LINENO"; then : 27945 27946 else 27947 ac_cv_header_stdc=no 27948 fi 27949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27950 conftest.$ac_objext conftest.beam conftest.$ac_ext 27951 fi 27952 27953 fi 27954 fi 27955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 27956 $as_echo "$ac_cv_header_stdc" >&6; } 27957 if test $ac_cv_header_stdc = yes; then 27958 27959 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 27960 27961 fi 27962 27963 27964 27965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5 27966 $as_echo_n "checking for malloc.h... " >&6; } 27967 if ${curl_cv_header_malloc_h+:} false; then : 27968 $as_echo_n "(cached) " >&6 27969 else 27970 27971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27972 /* end confdefs.h. */ 27973 27974 27975 #include <malloc.h> 27976 27977 int main (void) 27978 { 27979 27980 void *p = malloc(10); 27981 void *q = calloc(10,10); 27982 free(p); 27983 free(q); 27984 27985 ; 27986 return 0; 27987 } 27988 27989 _ACEOF 27990 if ac_fn_c_try_compile "$LINENO"; then : 27991 27992 curl_cv_header_malloc_h="yes" 27993 27994 else 27995 27996 curl_cv_header_malloc_h="no" 27997 27998 fi 27999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28000 28001 fi 28002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_malloc_h" >&5 28003 $as_echo "$curl_cv_header_malloc_h" >&6; } 28004 if test "$curl_cv_header_malloc_h" = "yes"; then 28005 28006 cat >>confdefs.h <<_ACEOF 28007 #define HAVE_MALLOC_H 1 28008 _ACEOF 28009 28010 # 28011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28012 /* end confdefs.h. */ 28013 28014 28015 #include <stdlib.h> 28016 28017 int main (void) 28018 { 28019 28020 void *p = malloc(10); 28021 void *q = calloc(10,10); 28022 free(p); 28023 free(q); 28024 28025 ; 28026 return 0; 28027 } 28028 28029 _ACEOF 28030 if ac_fn_c_try_compile "$LINENO"; then : 28031 28032 curl_cv_need_header_malloc_h="no" 28033 28034 else 28035 28036 curl_cv_need_header_malloc_h="yes" 28037 28038 fi 28039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28040 # 28041 case "$curl_cv_need_header_malloc_h" in 28042 yes) 28043 28044 cat >>confdefs.h <<_ACEOF 28045 #define NEED_MALLOC_H 1 28046 _ACEOF 28047 28048 ;; 28049 esac 28050 fi 28051 28052 28053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5 28054 $as_echo_n "checking for memory.h... " >&6; } 28055 if ${curl_cv_header_memory_h+:} false; then : 28056 $as_echo_n "(cached) " >&6 28057 else 28058 28059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28060 /* end confdefs.h. */ 28061 28062 28063 #include <memory.h> 28064 28065 int main (void) 28066 { 28067 28068 void *p = malloc(10); 28069 void *q = calloc(10,10); 28070 free(p); 28071 free(q); 28072 28073 ; 28074 return 0; 28075 } 28076 28077 _ACEOF 28078 if ac_fn_c_try_compile "$LINENO"; then : 28079 28080 curl_cv_header_memory_h="yes" 28081 28082 else 28083 28084 curl_cv_header_memory_h="no" 28085 28086 fi 28087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28088 28089 fi 28090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_memory_h" >&5 28091 $as_echo "$curl_cv_header_memory_h" >&6; } 28092 if test "$curl_cv_header_memory_h" = "yes"; then 28093 28094 cat >>confdefs.h <<_ACEOF 28095 #define HAVE_MEMORY_H 1 28096 _ACEOF 28097 28098 # 28099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28100 /* end confdefs.h. */ 28101 28102 28103 #include <stdlib.h> 28104 28105 int main (void) 28106 { 28107 28108 void *p = malloc(10); 28109 void *q = calloc(10,10); 28110 free(p); 28111 free(q); 28112 28113 ; 28114 return 0; 28115 } 28116 28117 _ACEOF 28118 if ac_fn_c_try_compile "$LINENO"; then : 28119 28120 curl_cv_need_header_memory_h="no" 28121 28122 else 28123 28124 curl_cv_need_header_memory_h="yes" 28125 28126 fi 28127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28128 # 28129 case "$curl_cv_need_header_memory_h" in 28130 yes) 28131 28132 cat >>confdefs.h <<_ACEOF 28133 #define NEED_MEMORY_H 1 28134 _ACEOF 28135 28136 ;; 28137 esac 28138 fi 28139 28140 28141 for ac_header in sys/types.h \ 28142 sys/time.h \ 28143 sys/select.h \ 28144 sys/socket.h \ 28145 sys/ioctl.h \ 28146 sys/uio.h \ 28147 assert.h \ 28148 unistd.h \ 28149 stdlib.h \ 28150 arpa/inet.h \ 28151 net/if.h \ 28152 netinet/in.h \ 28153 netinet/in6.h \ 28154 sys/un.h \ 28155 linux/tcp.h \ 28156 netinet/tcp.h \ 28157 netdb.h \ 28158 sys/sockio.h \ 28159 sys/stat.h \ 28160 sys/param.h \ 28161 termios.h \ 28162 termio.h \ 28163 sgtty.h \ 28164 fcntl.h \ 28165 alloca.h \ 28166 time.h \ 28167 io.h \ 28168 pwd.h \ 28169 utime.h \ 28170 sys/utime.h \ 28171 sys/poll.h \ 28172 poll.h \ 28173 socket.h \ 28174 sys/resource.h \ 28175 libgen.h \ 28176 locale.h \ 28177 errno.h \ 28178 stdbool.h \ 28179 arpa/tftp.h \ 28180 sys/filio.h \ 28181 sys/wait.h \ 28182 setjmp.h 28183 do : 28184 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 28185 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 28186 #ifdef HAVE_SYS_TYPES_H 28187 #include <sys/types.h> 28188 #endif 28189 #ifdef HAVE_SYS_TIME_H 28190 #include <sys/time.h> 28191 #endif 28192 #ifdef HAVE_SYS_SELECT_H 28193 #include <sys/select.h> 28194 #endif 28195 #ifdef HAVE_SYS_SOCKET_H 28196 #include <sys/socket.h> 28197 #endif 28198 #ifdef HAVE_NETINET_IN_H 28199 #include <netinet/in.h> 28200 #endif 28201 #ifdef HAVE_NETINET_IN6_H 28202 #include <netinet/in6.h> 28203 #endif 28204 #ifdef HAVE_SYS_UN_H 28205 #include <sys/un.h> 28206 #endif 28207 28208 28209 " 28210 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 28211 cat >>confdefs.h <<_ACEOF 28212 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 28213 _ACEOF 28214 28215 fi 28216 28217 done 28218 28219 28220 28221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 28222 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } 28223 if ${ac_cv_c_const+:} false; then : 28224 $as_echo_n "(cached) " >&6 28225 else 28226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28227 /* end confdefs.h. */ 28228 28229 int main (void) 28230 { 28231 28232 #ifndef __cplusplus 28233 /* Ultrix mips cc rejects this sort of thing. */ 28234 typedef int charset[2]; 28235 const charset cs = { 0, 0 }; 28236 /* SunOS 4.1.1 cc rejects this. */ 28237 char const *const *pcpcc; 28238 char **ppc; 28239 /* NEC SVR4.0.2 mips cc rejects this. */ 28240 struct point {int x, y;}; 28241 static struct point const zero = {0,0}; 28242 /* AIX XL C 1.02.0.0 rejects this. 28243 It does not let you subtract one const X* pointer from another in 28244 an arm of an if-expression whose if-part is not a constant 28245 expression */ 28246 const char *g = "string"; 28247 pcpcc = &g + (g ? g-g : 0); 28248 /* HPUX 7.0 cc rejects these. */ 28249 ++pcpcc; 28250 ppc = (char**) pcpcc; 28251 pcpcc = (char const *const *) ppc; 28252 { /* SCO 3.2v4 cc rejects this sort of thing. */ 28253 char tx; 28254 char *t = &tx; 28255 char const *s = 0 ? (char *) 0 : (char const *) 0; 28256 28257 *t++ = 0; 28258 if (s) return 0; 28259 } 28260 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 28261 int x[] = {25, 17}; 28262 const int *foo = &x[0]; 28263 ++foo; 28264 } 28265 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 28266 typedef const int *iptr; 28267 iptr p = 0; 28268 ++p; 28269 } 28270 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 28271 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 28272 struct s { int j; const int *ap[3]; } bx; 28273 struct s *b = &bx; b->j = 5; 28274 } 28275 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 28276 const int foo = 10; 28277 if (!foo) return 0; 28278 } 28279 return !cs[0] && !zero.x; 28280 #endif 28281 28282 ; 28283 return 0; 28284 } 28285 _ACEOF 28286 if ac_fn_c_try_compile "$LINENO"; then : 28287 ac_cv_c_const=yes 28288 else 28289 ac_cv_c_const=no 28290 fi 28291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28292 fi 28293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 28294 $as_echo "$ac_cv_c_const" >&6; } 28295 if test $ac_cv_c_const = no; then 28296 28297 $as_echo "#define const /**/" >>confdefs.h 28298 28299 fi 28300 28301 28302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5 28303 $as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; } 28304 if ${curl_cv_variadic_macros_c99+:} false; then : 28305 $as_echo_n "(cached) " >&6 28306 else 28307 28308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28309 /* end confdefs.h. */ 28310 28311 28312 #define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__) 28313 #define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__) 28314 int fun3(int arg1, int arg2, int arg3); 28315 int fun2(int arg1, int arg2); 28316 int fun3(int arg1, int arg2, int arg3) 28317 { return arg1 + arg2 + arg3; } 28318 int fun2(int arg1, int arg2) 28319 { return arg1 + arg2; } 28320 28321 int main (void) 28322 { 28323 28324 int res3 = c99_vmacro3(1, 2, 3); 28325 int res2 = c99_vmacro2(1, 2); 28326 28327 ; 28328 return 0; 28329 } 28330 28331 _ACEOF 28332 if ac_fn_c_try_compile "$LINENO"; then : 28333 28334 curl_cv_variadic_macros_c99="yes" 28335 28336 else 28337 28338 curl_cv_variadic_macros_c99="no" 28339 28340 fi 28341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28342 28343 fi 28344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5 28345 $as_echo "$curl_cv_variadic_macros_c99" >&6; } 28346 case "$curl_cv_variadic_macros_c99" in 28347 yes) 28348 28349 cat >>confdefs.h <<_ACEOF 28350 #define HAVE_VARIADIC_MACROS_C99 1 28351 _ACEOF 28352 28353 ;; 28354 esac 28355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5 28356 $as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; } 28357 if ${curl_cv_variadic_macros_gcc+:} false; then : 28358 $as_echo_n "(cached) " >&6 28359 else 28360 28361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28362 /* end confdefs.h. */ 28363 28364 28365 #define gcc_vmacro3(first, args...) fun3(first, args) 28366 #define gcc_vmacro2(first, args...) fun2(first, args) 28367 int fun3(int arg1, int arg2, int arg3); 28368 int fun2(int arg1, int arg2); 28369 int fun3(int arg1, int arg2, int arg3) 28370 { return arg1 + arg2 + arg3; } 28371 int fun2(int arg1, int arg2) 28372 { return arg1 + arg2; } 28373 28374 int main (void) 28375 { 28376 28377 int res3 = gcc_vmacro3(1, 2, 3); 28378 int res2 = gcc_vmacro2(1, 2); 28379 28380 ; 28381 return 0; 28382 } 28383 28384 _ACEOF 28385 if ac_fn_c_try_compile "$LINENO"; then : 28386 28387 curl_cv_variadic_macros_gcc="yes" 28388 28389 else 28390 28391 curl_cv_variadic_macros_gcc="no" 28392 28393 fi 28394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28395 28396 fi 28397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5 28398 $as_echo "$curl_cv_variadic_macros_gcc" >&6; } 28399 case "$curl_cv_variadic_macros_gcc" in 28400 yes) 28401 28402 cat >>confdefs.h <<_ACEOF 28403 #define HAVE_VARIADIC_MACROS_GCC 1 28404 _ACEOF 28405 28406 ;; 28407 esac 28408 28409 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 28410 if test "x$ac_cv_type_size_t" = xyes; then : 28411 28412 else 28413 28414 cat >>confdefs.h <<_ACEOF 28415 #define size_t unsigned int 28416 _ACEOF 28417 28418 fi 28419 28420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 28421 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 28422 if ${ac_cv_header_time+:} false; then : 28423 $as_echo_n "(cached) " >&6 28424 else 28425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28426 /* end confdefs.h. */ 28427 #include <sys/types.h> 28428 #include <sys/time.h> 28429 #include <time.h> 28430 28431 int main (void) 28432 { 28433 if ((struct tm *) 0) 28434 return 0; 28435 ; 28436 return 0; 28437 } 28438 _ACEOF 28439 if ac_fn_c_try_compile "$LINENO"; then : 28440 ac_cv_header_time=yes 28441 else 28442 ac_cv_header_time=no 28443 fi 28444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28445 fi 28446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 28447 $as_echo "$ac_cv_header_time" >&6; } 28448 if test $ac_cv_header_time = yes; then 28449 28450 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 28451 28452 fi 28453 28454 28455 for ac_header in sys/types.h sys/time.h time.h sys/socket.h 28456 do : 28457 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 28458 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 28459 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 28460 cat >>confdefs.h <<_ACEOF 28461 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 28462 _ACEOF 28463 28464 fi 28465 28466 done 28467 28468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 28469 $as_echo_n "checking for struct timeval... " >&6; } 28470 if ${curl_cv_struct_timeval+:} false; then : 28471 $as_echo_n "(cached) " >&6 28472 else 28473 28474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28475 /* end confdefs.h. */ 28476 28477 28478 #undef inline 28479 #ifdef HAVE_WINDOWS_H 28480 #ifndef WIN32_LEAN_AND_MEAN 28481 #define WIN32_LEAN_AND_MEAN 28482 #endif 28483 #include <windows.h> 28484 #ifdef HAVE_WINSOCK2_H 28485 #include <winsock2.h> 28486 #else 28487 #ifdef HAVE_WINSOCK_H 28488 #include <winsock.h> 28489 #endif 28490 #endif 28491 #endif 28492 #ifdef HAVE_SYS_TYPES_H 28493 #include <sys/types.h> 28494 #endif 28495 #ifdef HAVE_SYS_TIME_H 28496 #include <sys/time.h> 28497 #ifdef TIME_WITH_SYS_TIME 28498 #include <time.h> 28499 #endif 28500 #else 28501 #ifdef HAVE_TIME_H 28502 #include <time.h> 28503 #endif 28504 #endif 28505 #ifdef HAVE_SYS_SOCKET_H 28506 #include <sys/socket.h> 28507 #endif 28508 28509 int main (void) 28510 { 28511 28512 struct timeval ts; 28513 ts.tv_sec = 0; 28514 ts.tv_usec = 0; 28515 28516 ; 28517 return 0; 28518 } 28519 28520 _ACEOF 28521 if ac_fn_c_try_compile "$LINENO"; then : 28522 28523 curl_cv_struct_timeval="yes" 28524 28525 else 28526 28527 curl_cv_struct_timeval="no" 28528 28529 fi 28530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28531 28532 fi 28533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5 28534 $as_echo "$curl_cv_struct_timeval" >&6; } 28535 case "$curl_cv_struct_timeval" in 28536 yes) 28537 28538 cat >>confdefs.h <<_ACEOF 28539 #define HAVE_STRUCT_TIMEVAL 1 28540 _ACEOF 28541 28542 ;; 28543 esac 28544 28545 28546 28547 if test "x$cross_compiling" != xyes; then 28548 28549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5 28550 $as_echo_n "checking run-time libs availability... " >&6; } 28551 28552 28553 old=$LD_LIBRARY_PATH 28554 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 28555 export LD_LIBRARY_PATH 28556 if test "$cross_compiling" = yes; then : 28557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28559 as_fn_error $? "cannot run test program while cross compiling 28560 See \`config.log' for more details" "$LINENO" 5; } 28561 else 28562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28563 /* end confdefs.h. */ 28564 28565 int main() 28566 { 28567 return 0; 28568 } 28569 28570 _ACEOF 28571 if ac_fn_c_try_run "$LINENO"; then : 28572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5 28573 $as_echo "fine" >&6; } 28574 else 28575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 28576 $as_echo "failed" >&6; } 28577 as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5 28578 28579 fi 28580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 28581 conftest.$ac_objext conftest.beam conftest.$ac_ext 28582 fi 28583 28584 LD_LIBRARY_PATH=$old # restore 28585 28586 28587 fi 28588 28589 28590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 28591 $as_echo_n "checking size of size_t... " >&6; } 28592 if ${ac_cv_sizeof_size_t+:} false; then : 28593 $as_echo_n "(cached) " >&6 28594 else 28595 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence. 28596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28597 /* end confdefs.h. */ 28598 28599 #include <sys/types.h> 28600 28601 28602 int main (void) 28603 { 28604 switch (0) case 0: case (sizeof (size_t) == $ac_size):; 28605 ; 28606 return 0; 28607 } 28608 _ACEOF 28609 if ac_fn_c_try_compile "$LINENO"; then : 28610 ac_cv_sizeof_size_t=$ac_size 28611 fi 28612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28613 if test x$ac_cv_sizeof_size_t != x ; then break; fi 28614 done 28615 28616 fi 28617 28618 if test x$ac_cv_sizeof_size_t = x ; then 28619 as_fn_error $? "cannot determine a size for size_t" "$LINENO" 5 28620 fi 28621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 28622 $as_echo "$ac_cv_sizeof_size_t" >&6; } 28623 28624 cat >>confdefs.h <<_ACEOF 28625 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 28626 _ACEOF 28627 28628 28629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 28630 $as_echo_n "checking size of long... " >&6; } 28631 if ${ac_cv_sizeof_long+:} false; then : 28632 $as_echo_n "(cached) " >&6 28633 else 28634 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence. 28635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28636 /* end confdefs.h. */ 28637 28638 #include <sys/types.h> 28639 28640 28641 int main (void) 28642 { 28643 switch (0) case 0: case (sizeof (long) == $ac_size):; 28644 ; 28645 return 0; 28646 } 28647 _ACEOF 28648 if ac_fn_c_try_compile "$LINENO"; then : 28649 ac_cv_sizeof_long=$ac_size 28650 fi 28651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28652 if test x$ac_cv_sizeof_long != x ; then break; fi 28653 done 28654 28655 fi 28656 28657 if test x$ac_cv_sizeof_long = x ; then 28658 as_fn_error $? "cannot determine a size for long" "$LINENO" 5 28659 fi 28660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 28661 $as_echo "$ac_cv_sizeof_long" >&6; } 28662 28663 cat >>confdefs.h <<_ACEOF 28664 #define SIZEOF_LONG $ac_cv_sizeof_long 28665 _ACEOF 28666 28667 28668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 28669 $as_echo_n "checking size of int... " >&6; } 28670 if ${ac_cv_sizeof_int+:} false; then : 28671 $as_echo_n "(cached) " >&6 28672 else 28673 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence. 28674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28675 /* end confdefs.h. */ 28676 28677 #include <sys/types.h> 28678 28679 28680 int main (void) 28681 { 28682 switch (0) case 0: case (sizeof (int) == $ac_size):; 28683 ; 28684 return 0; 28685 } 28686 _ACEOF 28687 if ac_fn_c_try_compile "$LINENO"; then : 28688 ac_cv_sizeof_int=$ac_size 28689 fi 28690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28691 if test x$ac_cv_sizeof_int != x ; then break; fi 28692 done 28693 28694 fi 28695 28696 if test x$ac_cv_sizeof_int = x ; then 28697 as_fn_error $? "cannot determine a size for int" "$LINENO" 5 28698 fi 28699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 28700 $as_echo "$ac_cv_sizeof_int" >&6; } 28701 28702 cat >>confdefs.h <<_ACEOF 28703 #define SIZEOF_INT $ac_cv_sizeof_int 28704 _ACEOF 28705 28706 28707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 28708 $as_echo_n "checking size of short... " >&6; } 28709 if ${ac_cv_sizeof_short+:} false; then : 28710 $as_echo_n "(cached) " >&6 28711 else 28712 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence. 28713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28714 /* end confdefs.h. */ 28715 28716 #include <sys/types.h> 28717 28718 28719 int main (void) 28720 { 28721 switch (0) case 0: case (sizeof (short) == $ac_size):; 28722 ; 28723 return 0; 28724 } 28725 _ACEOF 28726 if ac_fn_c_try_compile "$LINENO"; then : 28727 ac_cv_sizeof_short=$ac_size 28728 fi 28729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28730 if test x$ac_cv_sizeof_short != x ; then break; fi 28731 done 28732 28733 fi 28734 28735 if test x$ac_cv_sizeof_short = x ; then 28736 as_fn_error $? "cannot determine a size for short" "$LINENO" 5 28737 fi 28738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 28739 $as_echo "$ac_cv_sizeof_short" >&6; } 28740 28741 cat >>confdefs.h <<_ACEOF 28742 #define SIZEOF_SHORT $ac_cv_sizeof_short 28743 _ACEOF 28744 28745 28746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 28747 $as_echo_n "checking size of time_t... " >&6; } 28748 if ${ac_cv_sizeof_time_t+:} false; then : 28749 $as_echo_n "(cached) " >&6 28750 else 28751 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence. 28752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28753 /* end confdefs.h. */ 28754 28755 #include <sys/types.h> 28756 28757 28758 int main (void) 28759 { 28760 switch (0) case 0: case (sizeof (time_t) == $ac_size):; 28761 ; 28762 return 0; 28763 } 28764 _ACEOF 28765 if ac_fn_c_try_compile "$LINENO"; then : 28766 ac_cv_sizeof_time_t=$ac_size 28767 fi 28768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28769 if test x$ac_cv_sizeof_time_t != x ; then break; fi 28770 done 28771 28772 fi 28773 28774 if test x$ac_cv_sizeof_time_t = x ; then 28775 as_fn_error $? "cannot determine a size for time_t" "$LINENO" 5 28776 fi 28777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 28778 $as_echo "$ac_cv_sizeof_time_t" >&6; } 28779 28780 cat >>confdefs.h <<_ACEOF 28781 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t 28782 _ACEOF 28783 28784 28785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 28786 $as_echo_n "checking size of off_t... " >&6; } 28787 if ${ac_cv_sizeof_off_t+:} false; then : 28788 $as_echo_n "(cached) " >&6 28789 else 28790 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence. 28791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28792 /* end confdefs.h. */ 28793 28794 #include <sys/types.h> 28795 28796 28797 int main (void) 28798 { 28799 switch (0) case 0: case (sizeof (off_t) == $ac_size):; 28800 ; 28801 return 0; 28802 } 28803 _ACEOF 28804 if ac_fn_c_try_compile "$LINENO"; then : 28805 ac_cv_sizeof_off_t=$ac_size 28806 fi 28807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28808 if test x$ac_cv_sizeof_off_t != x ; then break; fi 28809 done 28810 28811 fi 28812 28813 if test x$ac_cv_sizeof_off_t = x ; then 28814 as_fn_error $? "cannot determine a size for off_t" "$LINENO" 5 28815 fi 28816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 28817 $as_echo "$ac_cv_sizeof_off_t" >&6; } 28818 28819 cat >>confdefs.h <<_ACEOF 28820 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t 28821 _ACEOF 28822 28823 28824 28825 o=$CPPFLAGS 28826 CPPFLAGS="-I$srcdir/include $CPPFLAGS" 28827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5 28828 $as_echo_n "checking size of curl_off_t... " >&6; } 28829 if ${ac_cv_sizeof_curl_off_t+:} false; then : 28830 $as_echo_n "(cached) " >&6 28831 else 28832 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence. 28833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28834 /* end confdefs.h. */ 28835 28836 #include <sys/types.h> 28837 28838 #include <curl/system.h> 28839 28840 28841 int main (void) 28842 { 28843 switch (0) case 0: case (sizeof (curl_off_t) == $ac_size):; 28844 ; 28845 return 0; 28846 } 28847 _ACEOF 28848 if ac_fn_c_try_compile "$LINENO"; then : 28849 ac_cv_sizeof_curl_off_t=$ac_size 28850 fi 28851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28852 if test x$ac_cv_sizeof_curl_off_t != x ; then break; fi 28853 done 28854 28855 fi 28856 28857 if test x$ac_cv_sizeof_curl_off_t = x ; then 28858 as_fn_error $? "cannot determine a size for curl_off_t" "$LINENO" 5 28859 fi 28860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_curl_off_t" >&5 28861 $as_echo "$ac_cv_sizeof_curl_off_t" >&6; } 28862 28863 cat >>confdefs.h <<_ACEOF 28864 #define SIZEOF_CURL_OFF_T $ac_cv_sizeof_curl_off_t 28865 _ACEOF 28866 28867 28868 CPPFLAGS=$o 28869 28870 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 28871 if test "x$ac_cv_type_long_long" = xyes; then : 28872 28873 $as_echo "#define HAVE_LONGLONG 1" >>confdefs.h 28874 28875 longlong="yes" 28876 28877 fi 28878 28879 28880 if test "xyes" = "x$longlong"; then 28881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5 28882 $as_echo_n "checking if numberLL works... " >&6; } 28883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28884 /* end confdefs.h. */ 28885 28886 28887 28888 int main (void) 28889 { 28890 28891 long long val = 1000LL; 28892 28893 ; 28894 return 0; 28895 } 28896 28897 _ACEOF 28898 if ac_fn_c_try_compile "$LINENO"; then : 28899 28900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28901 $as_echo "yes" >&6; } 28902 28903 $as_echo "#define HAVE_LL 1" >>confdefs.h 28904 28905 28906 else 28907 28908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28909 $as_echo "no" >&6; } 28910 28911 fi 28912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28913 fi 28914 28915 28916 # check for ssize_t 28917 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 28918 if test "x$ac_cv_type_ssize_t" = xyes; then : 28919 28920 else 28921 28922 $as_echo "#define ssize_t int" >>confdefs.h 28923 28924 fi 28925 28926 28927 # check for bool type 28928 ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" " 28929 #ifdef HAVE_SYS_TYPES_H 28930 #include <sys/types.h> 28931 #endif 28932 #ifdef HAVE_STDBOOL_H 28933 #include <stdbool.h> 28934 #endif 28935 28936 " 28937 if test "x$ac_cv_type_bool" = xyes; then : 28938 28939 28940 $as_echo "#define HAVE_BOOL_T 1" >>confdefs.h 28941 28942 28943 fi 28944 28945 28946 # check for sa_family_t 28947 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" " 28948 #ifdef HAVE_SYS_SOCKET_H 28949 #include <sys/socket.h> 28950 #endif 28951 28952 " 28953 if test "x$ac_cv_type_sa_family_t" = xyes; then : 28954 28955 $as_echo "#define CURL_SA_FAMILY_T sa_family_t" >>confdefs.h 28956 28957 else 28958 28959 # The windows name? 28960 ac_fn_c_check_type "$LINENO" "ADDRESS_FAMILY" "ac_cv_type_ADDRESS_FAMILY" " 28961 #ifdef HAVE_SYS_SOCKET_H 28962 #include <sys/socket.h> 28963 #endif 28964 28965 " 28966 if test "x$ac_cv_type_ADDRESS_FAMILY" = xyes; then : 28967 28968 $as_echo "#define CURL_SA_FAMILY_T ADDRESS_FAMILY" >>confdefs.h 28969 28970 else 28971 28972 $as_echo "#define CURL_SA_FAMILY_T unsigned short" >>confdefs.h 28973 28974 fi 28975 28976 28977 fi 28978 28979 28980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if time_t is unsigned" >&5 28981 $as_echo_n "checking if time_t is unsigned... " >&6; } 28982 28983 28984 old=$LD_LIBRARY_PATH 28985 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 28986 export LD_LIBRARY_PATH 28987 if test "$cross_compiling" = yes; then : 28988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28989 $as_echo "no" >&6; } 28990 28991 else 28992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28993 /* end confdefs.h. */ 28994 28995 #include <time.h> 28996 #include <limits.h> 28997 time_t t = -1; 28998 return (t > 0); 28999 29000 _ACEOF 29001 if ac_fn_c_try_run "$LINENO"; then : 29002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29003 $as_echo "yes" >&6; } 29004 29005 $as_echo "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h 29006 29007 29008 else 29009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29010 $as_echo "no" >&6; } 29011 29012 fi 29013 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 29014 conftest.$ac_objext conftest.beam conftest.$ac_ext 29015 fi 29016 29017 LD_LIBRARY_PATH=$old # restore 29018 29019 29020 29021 curl_includes_poll="\ 29022 /* includes start */ 29023 #ifdef HAVE_SYS_TYPES_H 29024 # include <sys/types.h> 29025 #endif 29026 #ifdef HAVE_POLL_H 29027 # include <poll.h> 29028 #endif 29029 #ifdef HAVE_SYS_POLL_H 29030 # include <sys/poll.h> 29031 #endif 29032 /* includes end */" 29033 for ac_header in sys/types.h poll.h sys/poll.h 29034 do : 29035 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 29036 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll 29037 " 29038 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 29039 cat >>confdefs.h <<_ACEOF 29040 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 29041 _ACEOF 29042 29043 fi 29044 29045 done 29046 29047 29048 29049 # 29050 tst_poll_events_macro_defined="unknown" 29051 # 29052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29053 /* end confdefs.h. */ 29054 29055 29056 $curl_includes_poll 29057 29058 int main (void) 29059 { 29060 29061 #if defined(events) || defined(revents) 29062 return 0; 29063 #else 29064 force compilation error 29065 #endif 29066 29067 ; 29068 return 0; 29069 } 29070 29071 _ACEOF 29072 if ac_fn_c_try_compile "$LINENO"; then : 29073 29074 tst_poll_events_macro_defined="yes" 29075 29076 else 29077 29078 tst_poll_events_macro_defined="no" 29079 29080 fi 29081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29082 # 29083 if test "$tst_poll_events_macro_defined" = "yes"; then 29084 if test "x$ac_cv_header_sys_poll_h" = "xyes"; then 29085 29086 cat >>confdefs.h <<_EOF 29087 #define CURL_PULL_SYS_POLL_H 1 29088 _EOF 29089 29090 fi 29091 fi 29092 # 29093 29094 29095 29096 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" " 29097 #undef inline 29098 #ifdef HAVE_WINDOWS_H 29099 #ifndef WIN32_LEAN_AND_MEAN 29100 #define WIN32_LEAN_AND_MEAN 29101 #endif 29102 #include <windows.h> 29103 #ifdef HAVE_WINSOCK2_H 29104 #include <winsock2.h> 29105 #else 29106 #ifdef HAVE_WINSOCK_H 29107 #include <winsock.h> 29108 #endif 29109 #endif 29110 #else 29111 #ifdef HAVE_SYS_TYPES_H 29112 #include <sys/types.h> 29113 #endif 29114 #ifdef HAVE_SYS_SOCKET_H 29115 #include <sys/socket.h> 29116 #endif 29117 #ifdef HAVE_NETINET_IN_H 29118 #include <netinet/in.h> 29119 #endif 29120 #ifdef HAVE_ARPA_INET_H 29121 #include <arpa/inet.h> 29122 #endif 29123 #endif 29124 29125 " 29126 if test "x$ac_cv_type_in_addr_t" = xyes; then : 29127 29128 else 29129 29130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5 29131 $as_echo_n "checking for in_addr_t equivalent... " >&6; } 29132 if ${curl_cv_in_addr_t_equiv+:} false; then : 29133 $as_echo_n "(cached) " >&6 29134 else 29135 29136 curl_cv_in_addr_t_equiv="unknown" 29137 for t in "unsigned long" int size_t unsigned long; do 29138 if test "$curl_cv_in_addr_t_equiv" = "unknown"; then 29139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29140 /* end confdefs.h. */ 29141 29142 29143 #undef inline 29144 #ifdef HAVE_WINDOWS_H 29145 #ifndef WIN32_LEAN_AND_MEAN 29146 #define WIN32_LEAN_AND_MEAN 29147 #endif 29148 #include <windows.h> 29149 #ifdef HAVE_WINSOCK2_H 29150 #include <winsock2.h> 29151 #else 29152 #ifdef HAVE_WINSOCK_H 29153 #include <winsock.h> 29154 #endif 29155 #endif 29156 #else 29157 #ifdef HAVE_SYS_TYPES_H 29158 #include <sys/types.h> 29159 #endif 29160 #ifdef HAVE_SYS_SOCKET_H 29161 #include <sys/socket.h> 29162 #endif 29163 #ifdef HAVE_NETINET_IN_H 29164 #include <netinet/in.h> 29165 #endif 29166 #ifdef HAVE_ARPA_INET_H 29167 #include <arpa/inet.h> 29168 #endif 29169 #endif 29170 29171 int main (void) 29172 { 29173 29174 $t data = inet_addr ("1.2.3.4"); 29175 29176 ; 29177 return 0; 29178 } 29179 29180 _ACEOF 29181 if ac_fn_c_try_link "$LINENO"; then : 29182 29183 curl_cv_in_addr_t_equiv="$t" 29184 29185 fi 29186 rm -f core conftest.err conftest.$ac_objext \ 29187 conftest$ac_exeext conftest.$ac_ext 29188 fi 29189 done 29190 29191 fi 29192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5 29193 $as_echo "$curl_cv_in_addr_t_equiv" >&6; } 29194 case "$curl_cv_in_addr_t_equiv" in 29195 unknown) 29196 as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5 29197 ;; 29198 *) 29199 29200 cat >>confdefs.h <<_ACEOF 29201 #define in_addr_t $curl_cv_in_addr_t_equiv 29202 _ACEOF 29203 29204 ;; 29205 esac 29206 29207 fi 29208 29209 29210 29211 29212 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" " 29213 #undef inline 29214 #ifdef HAVE_WINDOWS_H 29215 #ifndef WIN32_LEAN_AND_MEAN 29216 #define WIN32_LEAN_AND_MEAN 29217 #endif 29218 #include <windows.h> 29219 #ifdef HAVE_WINSOCK2_H 29220 #include <winsock2.h> 29221 #endif 29222 #else 29223 #ifdef HAVE_SYS_TYPES_H 29224 #include <sys/types.h> 29225 #endif 29226 #ifdef HAVE_SYS_SOCKET_H 29227 #include <sys/socket.h> 29228 #endif 29229 #ifdef HAVE_NETINET_IN_H 29230 #include <netinet/in.h> 29231 #endif 29232 #ifdef HAVE_ARPA_INET_H 29233 #include <arpa/inet.h> 29234 #endif 29235 #endif 29236 29237 " 29238 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then : 29239 29240 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h 29241 29242 fi 29243 29244 29245 29246 29247 for ac_header in signal.h 29248 do : 29249 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default" 29250 if test "x$ac_cv_header_signal_h" = xyes; then : 29251 cat >>confdefs.h <<_ACEOF 29252 #define HAVE_SIGNAL_H 1 29253 _ACEOF 29254 29255 fi 29256 29257 done 29258 29259 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" " 29260 #ifdef HAVE_SIGNAL_H 29261 #include <signal.h> 29262 #endif 29263 29264 " 29265 if test "x$ac_cv_type_sig_atomic_t" = xyes; then : 29266 29267 29268 $as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h 29269 29270 29271 fi 29272 29273 case "$ac_cv_type_sig_atomic_t" in 29274 yes) 29275 # 29276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5 29277 $as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; } 29278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29279 /* end confdefs.h. */ 29280 29281 29282 #ifdef HAVE_SIGNAL_H 29283 #include <signal.h> 29284 #endif 29285 29286 int main (void) 29287 { 29288 29289 static volatile sig_atomic_t dummy = 0; 29290 29291 ; 29292 return 0; 29293 } 29294 29295 _ACEOF 29296 if ac_fn_c_try_link "$LINENO"; then : 29297 29298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29299 $as_echo "no" >&6; } 29300 curl_cv_sig_atomic_t_volatile="no" 29301 29302 else 29303 29304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29305 $as_echo "yes" >&6; } 29306 curl_cv_sig_atomic_t_volatile="yes" 29307 29308 fi 29309 rm -f core conftest.err conftest.$ac_objext \ 29310 conftest$ac_exeext conftest.$ac_ext 29311 # 29312 if test "$curl_cv_sig_atomic_t_volatile" = "yes"; then 29313 29314 $as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h 29315 29316 fi 29317 ;; 29318 esac 29319 29320 29321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 29322 $as_echo_n "checking return type of signal handlers... " >&6; } 29323 if ${ac_cv_type_signal+:} false; then : 29324 $as_echo_n "(cached) " >&6 29325 else 29326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29327 /* end confdefs.h. */ 29328 #include <sys/types.h> 29329 #include <signal.h> 29330 29331 int main (void) 29332 { 29333 return *(signal (0, 0)) (0) == 1; 29334 ; 29335 return 0; 29336 } 29337 _ACEOF 29338 if ac_fn_c_try_compile "$LINENO"; then : 29339 ac_cv_type_signal=int 29340 else 29341 ac_cv_type_signal=void 29342 fi 29343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29344 fi 29345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 29346 $as_echo "$ac_cv_type_signal" >&6; } 29347 29348 cat >>confdefs.h <<_ACEOF 29349 #define RETSIGTYPE $ac_cv_type_signal 29350 _ACEOF 29351 29352 29353 29354 29355 for ac_header in sys/select.h sys/socket.h 29356 do : 29357 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 29358 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 29359 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 29360 cat >>confdefs.h <<_ACEOF 29361 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 29362 _ACEOF 29363 29364 fi 29365 29366 done 29367 29368 # 29369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5 29370 $as_echo_n "checking for select... " >&6; } 29371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29372 /* end confdefs.h. */ 29373 29374 29375 #undef inline 29376 #ifdef HAVE_WINDOWS_H 29377 #ifndef WIN32_LEAN_AND_MEAN 29378 #define WIN32_LEAN_AND_MEAN 29379 #endif 29380 #include <windows.h> 29381 #ifdef HAVE_WINSOCK2_H 29382 #include <winsock2.h> 29383 #else 29384 #ifdef HAVE_WINSOCK_H 29385 #include <winsock.h> 29386 #endif 29387 #endif 29388 #endif 29389 #ifdef HAVE_SYS_TYPES_H 29390 #include <sys/types.h> 29391 #endif 29392 #ifdef HAVE_SYS_TIME_H 29393 #include <sys/time.h> 29394 #ifdef TIME_WITH_SYS_TIME 29395 #include <time.h> 29396 #endif 29397 #else 29398 #ifdef HAVE_TIME_H 29399 #include <time.h> 29400 #endif 29401 #endif 29402 #ifndef HAVE_WINDOWS_H 29403 #ifdef HAVE_PROTO_BSDSOCKET_H 29404 #include <proto/bsdsocket.h> 29405 struct Library *SocketBase = NULL; 29406 #define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,0) 29407 #endif 29408 #ifdef HAVE_SYS_SELECT_H 29409 #include <sys/select.h> 29410 #endif 29411 #ifdef HAVE_SYS_SOCKET_H 29412 #include <sys/socket.h> 29413 #endif 29414 #endif 29415 29416 int main (void) 29417 { 29418 29419 select(0, 0, 0, 0, 0); 29420 29421 ; 29422 return 0; 29423 } 29424 29425 _ACEOF 29426 if ac_fn_c_try_link "$LINENO"; then : 29427 29428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29429 $as_echo "yes" >&6; } 29430 curl_cv_select="yes" 29431 29432 else 29433 29434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29435 $as_echo "no" >&6; } 29436 curl_cv_select="no" 29437 29438 fi 29439 rm -f core conftest.err conftest.$ac_objext \ 29440 conftest$ac_exeext conftest.$ac_ext 29441 # 29442 if test "$curl_cv_select" = "yes"; then 29443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5 29444 $as_echo_n "checking types of args and return type for select... " >&6; } 29445 if ${curl_cv_func_select_args+:} false; then : 29446 $as_echo_n "(cached) " >&6 29447 else 29448 29449 curl_cv_func_select_args="unknown" 29450 for sel_retv in 'int' 'ssize_t'; do 29451 for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do 29452 for sel_arg234 in 'fd_set *' 'int *' 'void *'; do 29453 for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do 29454 if test "$curl_cv_func_select_args" = "unknown"; then 29455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29456 /* end confdefs.h. */ 29457 29458 29459 #undef inline 29460 #ifdef HAVE_WINDOWS_H 29461 #ifndef WIN32_LEAN_AND_MEAN 29462 #define WIN32_LEAN_AND_MEAN 29463 #endif 29464 #include <windows.h> 29465 #ifdef HAVE_WINSOCK2_H 29466 #include <winsock2.h> 29467 #else 29468 #ifdef HAVE_WINSOCK_H 29469 #include <winsock.h> 29470 #endif 29471 #endif 29472 #define SELECTCALLCONV PASCAL 29473 #endif 29474 #ifdef HAVE_SYS_TYPES_H 29475 #include <sys/types.h> 29476 #endif 29477 #ifdef HAVE_SYS_TIME_H 29478 #include <sys/time.h> 29479 #ifdef TIME_WITH_SYS_TIME 29480 #include <time.h> 29481 #endif 29482 #else 29483 #ifdef HAVE_TIME_H 29484 #include <time.h> 29485 #endif 29486 #endif 29487 #ifndef HAVE_WINDOWS_H 29488 #ifdef HAVE_PROTO_BSDSOCKET_H 29489 #include <proto/bsdsocket.h> 29490 struct Library *SocketBase = NULL; 29491 #define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,0) 29492 #endif 29493 #ifdef HAVE_SYS_SELECT_H 29494 #include <sys/select.h> 29495 #endif 29496 #ifdef HAVE_SYS_SOCKET_H 29497 #include <sys/socket.h> 29498 #endif 29499 #define SELECTCALLCONV 29500 #endif 29501 #ifndef HAVE_STRUCT_TIMEVAL 29502 struct timeval { 29503 long tv_sec; 29504 long tv_usec; 29505 }; 29506 #endif 29507 #ifndef HAVE_PROTO_BSDSOCKET_H 29508 extern $sel_retv SELECTCALLCONV 29509 select($sel_arg1, 29510 $sel_arg234, 29511 $sel_arg234, 29512 $sel_arg234, 29513 $sel_arg5); 29514 #endif 29515 29516 int main (void) 29517 { 29518 29519 $sel_arg1 nfds=0; 29520 $sel_arg234 rfds=0; 29521 $sel_arg234 wfds=0; 29522 $sel_arg234 efds=0; 29523 $sel_retv res = select(nfds, rfds, wfds, efds, 0); 29524 29525 ; 29526 return 0; 29527 } 29528 29529 _ACEOF 29530 if ac_fn_c_try_compile "$LINENO"; then : 29531 29532 curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv" 29533 29534 fi 29535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29536 fi 29537 done 29538 done 29539 done 29540 done 29541 29542 fi 29543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5 29544 $as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK 29545 if test "$curl_cv_func_select_args" = "unknown"; then 29546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5 29547 $as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;} 29548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5 29549 $as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;} 29550 else 29551 select_prev_IFS=$IFS; IFS=',' 29552 set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'` 29553 IFS=$select_prev_IFS 29554 shift 29555 # 29556 sel_qual_type_arg5=$3 29557 # 29558 29559 cat >>confdefs.h <<_ACEOF 29560 #define SELECT_TYPE_ARG1 $1 29561 _ACEOF 29562 29563 29564 cat >>confdefs.h <<_ACEOF 29565 #define SELECT_TYPE_ARG234 $2 29566 _ACEOF 29567 29568 29569 cat >>confdefs.h <<_ACEOF 29570 #define SELECT_TYPE_RETV $4 29571 _ACEOF 29572 29573 # 29574 prev_sh_opts=$- 29575 # 29576 case $prev_sh_opts in 29577 *f*) 29578 ;; 29579 *) 29580 set -f 29581 ;; 29582 esac 29583 # 29584 case "$sel_qual_type_arg5" in 29585 const*) 29586 sel_qual_arg5=const 29587 sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'` 29588 ;; 29589 *) 29590 sel_qual_arg5= 29591 sel_type_arg5=$sel_qual_type_arg5 29592 ;; 29593 esac 29594 # 29595 29596 cat >>confdefs.h <<_ACEOF 29597 #define SELECT_QUAL_ARG5 $sel_qual_arg5 29598 _ACEOF 29599 29600 29601 cat >>confdefs.h <<_ACEOF 29602 #define SELECT_TYPE_ARG5 $sel_type_arg5 29603 _ACEOF 29604 29605 # 29606 case $prev_sh_opts in 29607 *f*) 29608 ;; 29609 *) 29610 set +f 29611 ;; 29612 esac 29613 # 29614 29615 cat >>confdefs.h <<_ACEOF 29616 #define HAVE_SELECT 1 29617 _ACEOF 29618 29619 curl_cv_func_select="yes" 29620 fi 29621 fi 29622 29623 29624 29625 for ac_header in sys/types.h sys/socket.h 29626 do : 29627 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 29628 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 29629 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 29630 cat >>confdefs.h <<_ACEOF 29631 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 29632 _ACEOF 29633 29634 fi 29635 29636 done 29637 29638 # 29639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5 29640 $as_echo_n "checking for recv... " >&6; } 29641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29642 /* end confdefs.h. */ 29643 29644 29645 #undef inline 29646 #ifdef HAVE_WINDOWS_H 29647 #ifndef WIN32_LEAN_AND_MEAN 29648 #define WIN32_LEAN_AND_MEAN 29649 #endif 29650 #include <windows.h> 29651 #ifdef HAVE_WINSOCK2_H 29652 #include <winsock2.h> 29653 #else 29654 #ifdef HAVE_WINSOCK_H 29655 #include <winsock.h> 29656 #endif 29657 #endif 29658 #else 29659 #ifdef HAVE_PROTO_BSDSOCKET_H 29660 #include <proto/bsdsocket.h> 29661 struct Library *SocketBase = NULL; 29662 #endif 29663 #ifdef HAVE_SYS_TYPES_H 29664 #include <sys/types.h> 29665 #endif 29666 #ifdef HAVE_SYS_SOCKET_H 29667 #include <sys/socket.h> 29668 #endif 29669 #endif 29670 29671 int main (void) 29672 { 29673 29674 recv(0, 0, 0, 0); 29675 29676 ; 29677 return 0; 29678 } 29679 29680 _ACEOF 29681 if ac_fn_c_try_link "$LINENO"; then : 29682 29683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29684 $as_echo "yes" >&6; } 29685 curl_cv_recv="yes" 29686 29687 else 29688 29689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29690 $as_echo "no" >&6; } 29691 curl_cv_recv="no" 29692 29693 fi 29694 rm -f core conftest.err conftest.$ac_objext \ 29695 conftest$ac_exeext conftest.$ac_ext 29696 # 29697 if test "$curl_cv_recv" = "yes"; then 29698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5 29699 $as_echo_n "checking types of args and return type for recv... " >&6; } 29700 if ${curl_cv_func_recv_args+:} false; then : 29701 $as_echo_n "(cached) " >&6 29702 else 29703 29704 curl_cv_func_recv_args="unknown" 29705 for recv_retv in 'int' 'ssize_t'; do 29706 for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do 29707 for recv_arg2 in 'char *' 'void *'; do 29708 for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do 29709 for recv_arg4 in 'int' 'unsigned int'; do 29710 if test "$curl_cv_func_recv_args" = "unknown"; then 29711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29712 /* end confdefs.h. */ 29713 29714 29715 #undef inline 29716 #ifdef HAVE_WINDOWS_H 29717 #ifndef WIN32_LEAN_AND_MEAN 29718 #define WIN32_LEAN_AND_MEAN 29719 #endif 29720 #include <windows.h> 29721 #ifdef HAVE_WINSOCK2_H 29722 #include <winsock2.h> 29723 #else 29724 #ifdef HAVE_WINSOCK_H 29725 #include <winsock.h> 29726 #endif 29727 #endif 29728 #define RECVCALLCONV PASCAL 29729 #else 29730 #ifdef HAVE_PROTO_BSDSOCKET_H 29731 #include <proto/bsdsocket.h> 29732 struct Library *SocketBase = NULL; 29733 #endif 29734 #ifdef HAVE_SYS_TYPES_H 29735 #include <sys/types.h> 29736 #endif 29737 #ifdef HAVE_SYS_SOCKET_H 29738 #include <sys/socket.h> 29739 #endif 29740 #define RECVCALLCONV 29741 #endif 29742 #ifndef HAVE_PROTO_BSDSOCKET_H 29743 extern $recv_retv RECVCALLCONV 29744 recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4); 29745 #endif 29746 29747 int main (void) 29748 { 29749 29750 $recv_arg1 s=0; 29751 $recv_arg2 buf=0; 29752 $recv_arg3 len=0; 29753 $recv_arg4 flags=0; 29754 $recv_retv res = recv(s, buf, len, flags); 29755 29756 ; 29757 return 0; 29758 } 29759 29760 _ACEOF 29761 if ac_fn_c_try_compile "$LINENO"; then : 29762 29763 curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv" 29764 29765 fi 29766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29767 fi 29768 done 29769 done 29770 done 29771 done 29772 done 29773 29774 fi 29775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5 29776 $as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK 29777 if test "$curl_cv_func_recv_args" = "unknown"; then 29778 as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5 29779 else 29780 recv_prev_IFS=$IFS; IFS=',' 29781 set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'` 29782 IFS=$recv_prev_IFS 29783 shift 29784 # 29785 29786 cat >>confdefs.h <<_ACEOF 29787 #define RECV_TYPE_ARG1 $1 29788 _ACEOF 29789 29790 29791 cat >>confdefs.h <<_ACEOF 29792 #define RECV_TYPE_ARG2 $2 29793 _ACEOF 29794 29795 29796 cat >>confdefs.h <<_ACEOF 29797 #define RECV_TYPE_ARG3 $3 29798 _ACEOF 29799 29800 29801 cat >>confdefs.h <<_ACEOF 29802 #define RECV_TYPE_ARG4 $4 29803 _ACEOF 29804 29805 29806 cat >>confdefs.h <<_ACEOF 29807 #define RECV_TYPE_RETV $5 29808 _ACEOF 29809 29810 # 29811 29812 cat >>confdefs.h <<_ACEOF 29813 #define HAVE_RECV 1 29814 _ACEOF 29815 29816 curl_cv_func_recv="yes" 29817 fi 29818 else 29819 as_fn_error $? "Unable to link function recv" "$LINENO" 5 29820 fi 29821 29822 29823 for ac_header in sys/types.h sys/socket.h 29824 do : 29825 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 29826 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 29827 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 29828 cat >>confdefs.h <<_ACEOF 29829 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 29830 _ACEOF 29831 29832 fi 29833 29834 done 29835 29836 # 29837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5 29838 $as_echo_n "checking for send... " >&6; } 29839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29840 /* end confdefs.h. */ 29841 29842 29843 #undef inline 29844 #ifdef HAVE_WINDOWS_H 29845 #ifndef WIN32_LEAN_AND_MEAN 29846 #define WIN32_LEAN_AND_MEAN 29847 #endif 29848 #include <windows.h> 29849 #ifdef HAVE_WINSOCK2_H 29850 #include <winsock2.h> 29851 #else 29852 #ifdef HAVE_WINSOCK_H 29853 #include <winsock.h> 29854 #endif 29855 #endif 29856 #else 29857 #ifdef HAVE_PROTO_BSDSOCKET_H 29858 #include <proto/bsdsocket.h> 29859 struct Library *SocketBase = NULL; 29860 #endif 29861 #ifdef HAVE_SYS_TYPES_H 29862 #include <sys/types.h> 29863 #endif 29864 #ifdef HAVE_SYS_SOCKET_H 29865 #include <sys/socket.h> 29866 #endif 29867 #endif 29868 29869 int main (void) 29870 { 29871 29872 send(0, 0, 0, 0); 29873 29874 ; 29875 return 0; 29876 } 29877 29878 _ACEOF 29879 if ac_fn_c_try_link "$LINENO"; then : 29880 29881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29882 $as_echo "yes" >&6; } 29883 curl_cv_send="yes" 29884 29885 else 29886 29887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29888 $as_echo "no" >&6; } 29889 curl_cv_send="no" 29890 29891 fi 29892 rm -f core conftest.err conftest.$ac_objext \ 29893 conftest$ac_exeext conftest.$ac_ext 29894 # 29895 if test "$curl_cv_send" = "yes"; then 29896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5 29897 $as_echo_n "checking types of args and return type for send... " >&6; } 29898 if ${curl_cv_func_send_args+:} false; then : 29899 $as_echo_n "(cached) " >&6 29900 else 29901 29902 curl_cv_func_send_args="unknown" 29903 for send_retv in 'int' 'ssize_t'; do 29904 for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do 29905 for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do 29906 for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do 29907 for send_arg4 in 'int' 'unsigned int'; do 29908 if test "$curl_cv_func_send_args" = "unknown"; then 29909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29910 /* end confdefs.h. */ 29911 29912 29913 #undef inline 29914 #ifdef HAVE_WINDOWS_H 29915 #ifndef WIN32_LEAN_AND_MEAN 29916 #define WIN32_LEAN_AND_MEAN 29917 #endif 29918 #include <windows.h> 29919 #ifdef HAVE_WINSOCK2_H 29920 #include <winsock2.h> 29921 #else 29922 #ifdef HAVE_WINSOCK_H 29923 #include <winsock.h> 29924 #endif 29925 #endif 29926 #define SENDCALLCONV PASCAL 29927 #else 29928 #ifdef HAVE_PROTO_BSDSOCKET_H 29929 #include <proto/bsdsocket.h> 29930 struct Library *SocketBase = NULL; 29931 #endif 29932 #ifdef HAVE_SYS_TYPES_H 29933 #include <sys/types.h> 29934 #endif 29935 #ifdef HAVE_SYS_SOCKET_H 29936 #include <sys/socket.h> 29937 #endif 29938 #define SENDCALLCONV 29939 #endif 29940 #ifndef HAVE_PROTO_BSDSOCKET_H 29941 extern $send_retv SENDCALLCONV 29942 send($send_arg1, $send_arg2, $send_arg3, $send_arg4); 29943 #endif 29944 29945 int main (void) 29946 { 29947 29948 $send_arg1 s=0; 29949 $send_arg3 len=0; 29950 $send_arg4 flags=0; 29951 $send_retv res = send(s, 0, len, flags); 29952 29953 ; 29954 return 0; 29955 } 29956 29957 _ACEOF 29958 if ac_fn_c_try_compile "$LINENO"; then : 29959 29960 curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv" 29961 29962 fi 29963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29964 fi 29965 done 29966 done 29967 done 29968 done 29969 done 29970 29971 fi 29972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5 29973 $as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK 29974 if test "$curl_cv_func_send_args" = "unknown"; then 29975 as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5 29976 else 29977 send_prev_IFS=$IFS; IFS=',' 29978 set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'` 29979 IFS=$send_prev_IFS 29980 shift 29981 # 29982 send_qual_type_arg2=$2 29983 # 29984 29985 cat >>confdefs.h <<_ACEOF 29986 #define SEND_TYPE_ARG1 $1 29987 _ACEOF 29988 29989 29990 cat >>confdefs.h <<_ACEOF 29991 #define SEND_TYPE_ARG3 $3 29992 _ACEOF 29993 29994 29995 cat >>confdefs.h <<_ACEOF 29996 #define SEND_TYPE_ARG4 $4 29997 _ACEOF 29998 29999 30000 cat >>confdefs.h <<_ACEOF 30001 #define SEND_TYPE_RETV $5 30002 _ACEOF 30003 30004 # 30005 prev_sh_opts=$- 30006 # 30007 case $prev_sh_opts in 30008 *f*) 30009 ;; 30010 *) 30011 set -f 30012 ;; 30013 esac 30014 # 30015 case "$send_qual_type_arg2" in 30016 const*) 30017 send_qual_arg2=const 30018 send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'` 30019 ;; 30020 *) 30021 send_qual_arg2= 30022 send_type_arg2=$send_qual_type_arg2 30023 ;; 30024 esac 30025 # 30026 30027 cat >>confdefs.h <<_ACEOF 30028 #define SEND_QUAL_ARG2 $send_qual_arg2 30029 _ACEOF 30030 30031 30032 cat >>confdefs.h <<_ACEOF 30033 #define SEND_TYPE_ARG2 $send_type_arg2 30034 _ACEOF 30035 30036 # 30037 case $prev_sh_opts in 30038 *f*) 30039 ;; 30040 *) 30041 set +f 30042 ;; 30043 esac 30044 # 30045 30046 cat >>confdefs.h <<_ACEOF 30047 #define HAVE_SEND 1 30048 _ACEOF 30049 30050 curl_cv_func_send="yes" 30051 fi 30052 else 30053 as_fn_error $? "Unable to link function send" "$LINENO" 5 30054 fi 30055 30056 30057 for ac_header in sys/types.h sys/socket.h 30058 do : 30059 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 30060 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 30061 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 30062 cat >>confdefs.h <<_ACEOF 30063 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 30064 _ACEOF 30065 30066 fi 30067 30068 done 30069 30070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5 30071 $as_echo_n "checking for MSG_NOSIGNAL... " >&6; } 30072 if ${curl_cv_msg_nosignal+:} false; then : 30073 $as_echo_n "(cached) " >&6 30074 else 30075 30076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30077 /* end confdefs.h. */ 30078 30079 30080 #undef inline 30081 #ifdef HAVE_WINDOWS_H 30082 #ifndef WIN32_LEAN_AND_MEAN 30083 #define WIN32_LEAN_AND_MEAN 30084 #endif 30085 #include <windows.h> 30086 #ifdef HAVE_WINSOCK2_H 30087 #include <winsock2.h> 30088 #else 30089 #ifdef HAVE_WINSOCK_H 30090 #include <winsock.h> 30091 #endif 30092 #endif 30093 #else 30094 #ifdef HAVE_PROTO_BSDSOCKET_H 30095 #include <proto/bsdsocket.h> 30096 struct Library *SocketBase = NULL; 30097 #endif 30098 #ifdef HAVE_SYS_TYPES_H 30099 #include <sys/types.h> 30100 #endif 30101 #ifdef HAVE_SYS_SOCKET_H 30102 #include <sys/socket.h> 30103 #endif 30104 #endif 30105 30106 int main (void) 30107 { 30108 30109 int flag=MSG_NOSIGNAL; 30110 30111 ; 30112 return 0; 30113 } 30114 30115 _ACEOF 30116 if ac_fn_c_try_compile "$LINENO"; then : 30117 30118 curl_cv_msg_nosignal="yes" 30119 30120 else 30121 30122 curl_cv_msg_nosignal="no" 30123 30124 fi 30125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30126 30127 fi 30128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5 30129 $as_echo "$curl_cv_msg_nosignal" >&6; } 30130 case "$curl_cv_msg_nosignal" in 30131 yes) 30132 30133 cat >>confdefs.h <<_ACEOF 30134 #define HAVE_MSG_NOSIGNAL 1 30135 _ACEOF 30136 30137 ;; 30138 esac 30139 30140 30141 30142 curl_includes_unistd="\ 30143 /* includes start */ 30144 #ifdef HAVE_SYS_TYPES_H 30145 # include <sys/types.h> 30146 #endif 30147 #ifdef HAVE_UNISTD_H 30148 # include <unistd.h> 30149 #endif 30150 /* includes end */" 30151 for ac_header in sys/types.h unistd.h 30152 do : 30153 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 30154 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd 30155 " 30156 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 30157 cat >>confdefs.h <<_ACEOF 30158 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 30159 _ACEOF 30160 30161 fi 30162 30163 done 30164 30165 30166 30167 # 30168 tst_links_alarm="unknown" 30169 tst_proto_alarm="unknown" 30170 tst_compi_alarm="unknown" 30171 tst_allow_alarm="unknown" 30172 # 30173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5 30174 $as_echo_n "checking if alarm can be linked... " >&6; } 30175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30176 /* end confdefs.h. */ 30177 30178 30179 #define alarm innocuous_alarm 30180 #ifdef __STDC__ 30181 # include <limits.h> 30182 #else 30183 # include <assert.h> 30184 #endif 30185 #undef alarm 30186 #ifdef __cplusplus 30187 extern "C" 30188 #endif 30189 char alarm (); 30190 #if defined __stub_alarm || defined __stub___alarm 30191 choke me 30192 #endif 30193 30194 int main (void) 30195 { 30196 return alarm (); 30197 ; 30198 return 0; 30199 } 30200 30201 _ACEOF 30202 if ac_fn_c_try_link "$LINENO"; then : 30203 30204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30205 $as_echo "yes" >&6; } 30206 tst_links_alarm="yes" 30207 30208 else 30209 30210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30211 $as_echo "no" >&6; } 30212 tst_links_alarm="no" 30213 30214 fi 30215 rm -f core conftest.err conftest.$ac_objext \ 30216 conftest$ac_exeext conftest.$ac_ext 30217 # 30218 if test "$tst_links_alarm" = "yes"; then 30219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5 30220 $as_echo_n "checking if alarm is prototyped... " >&6; } 30221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30222 /* end confdefs.h. */ 30223 30224 $curl_includes_unistd 30225 30226 _ACEOF 30227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 30228 $EGREP "alarm" >/dev/null 2>&1; then : 30229 30230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30231 $as_echo "yes" >&6; } 30232 tst_proto_alarm="yes" 30233 30234 else 30235 30236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30237 $as_echo "no" >&6; } 30238 tst_proto_alarm="no" 30239 30240 fi 30241 rm -f conftest* 30242 30243 fi 30244 # 30245 if test "$tst_proto_alarm" = "yes"; then 30246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5 30247 $as_echo_n "checking if alarm is compilable... " >&6; } 30248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30249 /* end confdefs.h. */ 30250 30251 30252 $curl_includes_unistd 30253 30254 int main (void) 30255 { 30256 30257 if(0 != alarm(0)) 30258 return 1; 30259 30260 ; 30261 return 0; 30262 } 30263 30264 _ACEOF 30265 if ac_fn_c_try_compile "$LINENO"; then : 30266 30267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30268 $as_echo "yes" >&6; } 30269 tst_compi_alarm="yes" 30270 30271 else 30272 30273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30274 $as_echo "no" >&6; } 30275 tst_compi_alarm="no" 30276 30277 fi 30278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30279 fi 30280 # 30281 if test "$tst_compi_alarm" = "yes"; then 30282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5 30283 $as_echo_n "checking if alarm usage allowed... " >&6; } 30284 if test "x$curl_disallow_alarm" != "xyes"; then 30285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30286 $as_echo "yes" >&6; } 30287 tst_allow_alarm="yes" 30288 else 30289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30290 $as_echo "no" >&6; } 30291 tst_allow_alarm="no" 30292 fi 30293 fi 30294 # 30295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5 30296 $as_echo_n "checking if alarm might be used... " >&6; } 30297 if test "$tst_links_alarm" = "yes" && 30298 test "$tst_proto_alarm" = "yes" && 30299 test "$tst_compi_alarm" = "yes" && 30300 test "$tst_allow_alarm" = "yes"; then 30301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30302 $as_echo "yes" >&6; } 30303 30304 cat >>confdefs.h <<_ACEOF 30305 #define HAVE_ALARM 1 30306 _ACEOF 30307 30308 curl_cv_func_alarm="yes" 30309 else 30310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30311 $as_echo "no" >&6; } 30312 curl_cv_func_alarm="no" 30313 fi 30314 30315 30316 curl_includes_string="\ 30317 /* includes start */ 30318 #ifdef HAVE_SYS_TYPES_H 30319 # include <sys/types.h> 30320 #endif 30321 #ifdef HAVE_STRING_H 30322 # include <string.h> 30323 #endif 30324 #ifdef HAVE_STRINGS_H 30325 # include <strings.h> 30326 #endif 30327 /* includes end */" 30328 for ac_header in sys/types.h string.h strings.h 30329 do : 30330 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 30331 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string 30332 " 30333 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 30334 cat >>confdefs.h <<_ACEOF 30335 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 30336 _ACEOF 30337 30338 fi 30339 30340 done 30341 30342 30343 30344 curl_includes_libgen="\ 30345 /* includes start */ 30346 #ifdef HAVE_SYS_TYPES_H 30347 # include <sys/types.h> 30348 #endif 30349 #ifdef HAVE_LIBGEN_H 30350 # include <libgen.h> 30351 #endif 30352 /* includes end */" 30353 for ac_header in sys/types.h libgen.h 30354 do : 30355 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 30356 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen 30357 " 30358 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 30359 cat >>confdefs.h <<_ACEOF 30360 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 30361 _ACEOF 30362 30363 fi 30364 30365 done 30366 30367 30368 30369 # 30370 tst_links_basename="unknown" 30371 tst_proto_basename="unknown" 30372 tst_compi_basename="unknown" 30373 tst_allow_basename="unknown" 30374 # 30375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5 30376 $as_echo_n "checking if basename can be linked... " >&6; } 30377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30378 /* end confdefs.h. */ 30379 30380 30381 #define basename innocuous_basename 30382 #ifdef __STDC__ 30383 # include <limits.h> 30384 #else 30385 # include <assert.h> 30386 #endif 30387 #undef basename 30388 #ifdef __cplusplus 30389 extern "C" 30390 #endif 30391 char basename (); 30392 #if defined __stub_basename || defined __stub___basename 30393 choke me 30394 #endif 30395 30396 int main (void) 30397 { 30398 return basename (); 30399 ; 30400 return 0; 30401 } 30402 30403 _ACEOF 30404 if ac_fn_c_try_link "$LINENO"; then : 30405 30406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30407 $as_echo "yes" >&6; } 30408 tst_links_basename="yes" 30409 30410 else 30411 30412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30413 $as_echo "no" >&6; } 30414 tst_links_basename="no" 30415 30416 fi 30417 rm -f core conftest.err conftest.$ac_objext \ 30418 conftest$ac_exeext conftest.$ac_ext 30419 # 30420 if test "$tst_links_basename" = "yes"; then 30421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5 30422 $as_echo_n "checking if basename is prototyped... " >&6; } 30423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30424 /* end confdefs.h. */ 30425 30426 $curl_includes_string 30427 $curl_includes_libgen 30428 $curl_includes_unistd 30429 30430 _ACEOF 30431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 30432 $EGREP "basename" >/dev/null 2>&1; then : 30433 30434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30435 $as_echo "yes" >&6; } 30436 tst_proto_basename="yes" 30437 30438 else 30439 30440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30441 $as_echo "no" >&6; } 30442 tst_proto_basename="no" 30443 30444 fi 30445 rm -f conftest* 30446 30447 fi 30448 # 30449 if test "$tst_proto_basename" = "yes"; then 30450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5 30451 $as_echo_n "checking if basename is compilable... " >&6; } 30452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30453 /* end confdefs.h. */ 30454 30455 30456 $curl_includes_string 30457 $curl_includes_libgen 30458 $curl_includes_unistd 30459 30460 int main (void) 30461 { 30462 30463 if(0 != basename(0)) 30464 return 1; 30465 30466 ; 30467 return 0; 30468 } 30469 30470 _ACEOF 30471 if ac_fn_c_try_compile "$LINENO"; then : 30472 30473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30474 $as_echo "yes" >&6; } 30475 tst_compi_basename="yes" 30476 30477 else 30478 30479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30480 $as_echo "no" >&6; } 30481 tst_compi_basename="no" 30482 30483 fi 30484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30485 fi 30486 # 30487 if test "$tst_compi_basename" = "yes"; then 30488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5 30489 $as_echo_n "checking if basename usage allowed... " >&6; } 30490 if test "x$curl_disallow_basename" != "xyes"; then 30491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30492 $as_echo "yes" >&6; } 30493 tst_allow_basename="yes" 30494 else 30495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30496 $as_echo "no" >&6; } 30497 tst_allow_basename="no" 30498 fi 30499 fi 30500 # 30501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5 30502 $as_echo_n "checking if basename might be used... " >&6; } 30503 if test "$tst_links_basename" = "yes" && 30504 test "$tst_proto_basename" = "yes" && 30505 test "$tst_compi_basename" = "yes" && 30506 test "$tst_allow_basename" = "yes"; then 30507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30508 $as_echo "yes" >&6; } 30509 30510 cat >>confdefs.h <<_ACEOF 30511 #define HAVE_BASENAME 1 30512 _ACEOF 30513 30514 curl_cv_func_basename="yes" 30515 else 30516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30517 $as_echo "no" >&6; } 30518 curl_cv_func_basename="no" 30519 fi 30520 30521 30522 curl_includes_socket="\ 30523 /* includes start */ 30524 #ifdef HAVE_SYS_TYPES_H 30525 # include <sys/types.h> 30526 #endif 30527 #ifdef HAVE_SOCKET_H 30528 # include <socket.h> 30529 #endif 30530 /* includes end */" 30531 for ac_header in sys/types.h socket.h 30532 do : 30533 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 30534 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket 30535 " 30536 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 30537 cat >>confdefs.h <<_ACEOF 30538 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 30539 _ACEOF 30540 30541 fi 30542 30543 done 30544 30545 30546 30547 # 30548 tst_links_closesocket="unknown" 30549 tst_proto_closesocket="unknown" 30550 tst_compi_closesocket="unknown" 30551 tst_allow_closesocket="unknown" 30552 # 30553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5 30554 $as_echo_n "checking if closesocket can be linked... " >&6; } 30555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30556 /* end confdefs.h. */ 30557 30558 30559 $curl_includes_winsock2 30560 $curl_includes_bsdsocket 30561 $curl_includes_socket 30562 30563 int main (void) 30564 { 30565 30566 if(0 != closesocket(0)) 30567 return 1; 30568 30569 ; 30570 return 0; 30571 } 30572 30573 _ACEOF 30574 if ac_fn_c_try_link "$LINENO"; then : 30575 30576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30577 $as_echo "yes" >&6; } 30578 tst_links_closesocket="yes" 30579 30580 else 30581 30582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30583 $as_echo "no" >&6; } 30584 tst_links_closesocket="no" 30585 30586 fi 30587 rm -f core conftest.err conftest.$ac_objext \ 30588 conftest$ac_exeext conftest.$ac_ext 30589 # 30590 if test "$tst_links_closesocket" = "yes"; then 30591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5 30592 $as_echo_n "checking if closesocket is prototyped... " >&6; } 30593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30594 /* end confdefs.h. */ 30595 30596 $curl_includes_winsock2 30597 $curl_includes_bsdsocket 30598 $curl_includes_socket 30599 30600 _ACEOF 30601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 30602 $EGREP "closesocket" >/dev/null 2>&1; then : 30603 30604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30605 $as_echo "yes" >&6; } 30606 tst_proto_closesocket="yes" 30607 30608 else 30609 30610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30611 $as_echo "no" >&6; } 30612 tst_proto_closesocket="no" 30613 30614 fi 30615 rm -f conftest* 30616 30617 fi 30618 # 30619 if test "$tst_proto_closesocket" = "yes"; then 30620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5 30621 $as_echo_n "checking if closesocket is compilable... " >&6; } 30622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30623 /* end confdefs.h. */ 30624 30625 30626 $curl_includes_winsock2 30627 $curl_includes_bsdsocket 30628 $curl_includes_socket 30629 30630 int main (void) 30631 { 30632 30633 if(0 != closesocket(0)) 30634 return 1; 30635 30636 ; 30637 return 0; 30638 } 30639 30640 _ACEOF 30641 if ac_fn_c_try_compile "$LINENO"; then : 30642 30643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30644 $as_echo "yes" >&6; } 30645 tst_compi_closesocket="yes" 30646 30647 else 30648 30649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30650 $as_echo "no" >&6; } 30651 tst_compi_closesocket="no" 30652 30653 fi 30654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30655 fi 30656 # 30657 if test "$tst_compi_closesocket" = "yes"; then 30658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5 30659 $as_echo_n "checking if closesocket usage allowed... " >&6; } 30660 if test "x$curl_disallow_closesocket" != "xyes"; then 30661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30662 $as_echo "yes" >&6; } 30663 tst_allow_closesocket="yes" 30664 else 30665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30666 $as_echo "no" >&6; } 30667 tst_allow_closesocket="no" 30668 fi 30669 fi 30670 # 30671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5 30672 $as_echo_n "checking if closesocket might be used... " >&6; } 30673 if test "$tst_links_closesocket" = "yes" && 30674 test "$tst_proto_closesocket" = "yes" && 30675 test "$tst_compi_closesocket" = "yes" && 30676 test "$tst_allow_closesocket" = "yes"; then 30677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30678 $as_echo "yes" >&6; } 30679 30680 cat >>confdefs.h <<_ACEOF 30681 #define HAVE_CLOSESOCKET 1 30682 _ACEOF 30683 30684 curl_cv_func_closesocket="yes" 30685 else 30686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30687 $as_echo "no" >&6; } 30688 curl_cv_func_closesocket="no" 30689 fi 30690 30691 30692 curl_includes_sys_socket="\ 30693 /* includes start */ 30694 #ifdef HAVE_SYS_TYPES_H 30695 # include <sys/types.h> 30696 #endif 30697 #ifdef HAVE_SYS_SOCKET_H 30698 # include <sys/socket.h> 30699 #endif 30700 /* includes end */" 30701 for ac_header in sys/types.h sys/socket.h 30702 do : 30703 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 30704 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket 30705 " 30706 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 30707 cat >>confdefs.h <<_ACEOF 30708 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 30709 _ACEOF 30710 30711 fi 30712 30713 done 30714 30715 30716 30717 # 30718 tst_links_closesocket_camel="unknown" 30719 tst_proto_closesocket_camel="unknown" 30720 tst_compi_closesocket_camel="unknown" 30721 tst_allow_closesocket_camel="unknown" 30722 # 30723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5 30724 $as_echo_n "checking if CloseSocket can be linked... " >&6; } 30725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30726 /* end confdefs.h. */ 30727 30728 30729 $curl_includes_sys_socket 30730 30731 int main (void) 30732 { 30733 30734 if(0 != CloseSocket(0)) 30735 return 1; 30736 30737 ; 30738 return 0; 30739 } 30740 30741 _ACEOF 30742 if ac_fn_c_try_link "$LINENO"; then : 30743 30744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30745 $as_echo "yes" >&6; } 30746 tst_links_closesocket_camel="yes" 30747 30748 else 30749 30750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30751 $as_echo "no" >&6; } 30752 tst_links_closesocket_camel="no" 30753 30754 fi 30755 rm -f core conftest.err conftest.$ac_objext \ 30756 conftest$ac_exeext conftest.$ac_ext 30757 # 30758 if test "$tst_links_closesocket_camel" = "yes"; then 30759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5 30760 $as_echo_n "checking if CloseSocket is prototyped... " >&6; } 30761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30762 /* end confdefs.h. */ 30763 30764 $curl_includes_sys_socket 30765 30766 _ACEOF 30767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 30768 $EGREP "CloseSocket" >/dev/null 2>&1; then : 30769 30770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30771 $as_echo "yes" >&6; } 30772 tst_proto_closesocket_camel="yes" 30773 30774 else 30775 30776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30777 $as_echo "no" >&6; } 30778 tst_proto_closesocket_camel="no" 30779 30780 fi 30781 rm -f conftest* 30782 30783 fi 30784 # 30785 if test "$tst_proto_closesocket_camel" = "yes"; then 30786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5 30787 $as_echo_n "checking if CloseSocket is compilable... " >&6; } 30788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30789 /* end confdefs.h. */ 30790 30791 30792 $curl_includes_sys_socket 30793 30794 int main (void) 30795 { 30796 30797 if(0 != CloseSocket(0)) 30798 return 1; 30799 30800 ; 30801 return 0; 30802 } 30803 30804 _ACEOF 30805 if ac_fn_c_try_compile "$LINENO"; then : 30806 30807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30808 $as_echo "yes" >&6; } 30809 tst_compi_closesocket_camel="yes" 30810 30811 else 30812 30813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30814 $as_echo "no" >&6; } 30815 tst_compi_closesocket_camel="no" 30816 30817 fi 30818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30819 fi 30820 # 30821 if test "$tst_compi_closesocket_camel" = "yes"; then 30822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5 30823 $as_echo_n "checking if CloseSocket usage allowed... " >&6; } 30824 if test "x$curl_disallow_closesocket_camel" != "xyes"; then 30825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30826 $as_echo "yes" >&6; } 30827 tst_allow_closesocket_camel="yes" 30828 else 30829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30830 $as_echo "no" >&6; } 30831 tst_allow_closesocket_camel="no" 30832 fi 30833 fi 30834 # 30835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5 30836 $as_echo_n "checking if CloseSocket might be used... " >&6; } 30837 if test "$tst_links_closesocket_camel" = "yes" && 30838 test "$tst_proto_closesocket_camel" = "yes" && 30839 test "$tst_compi_closesocket_camel" = "yes" && 30840 test "$tst_allow_closesocket_camel" = "yes"; then 30841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30842 $as_echo "yes" >&6; } 30843 30844 cat >>confdefs.h <<_ACEOF 30845 #define HAVE_CLOSESOCKET_CAMEL 1 30846 _ACEOF 30847 30848 curl_cv_func_closesocket_camel="yes" 30849 else 30850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30851 $as_echo "no" >&6; } 30852 curl_cv_func_closesocket_camel="no" 30853 fi 30854 30855 30856 # 30857 tst_links_connect="unknown" 30858 tst_proto_connect="unknown" 30859 tst_compi_connect="unknown" 30860 tst_allow_connect="unknown" 30861 # 30862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5 30863 $as_echo_n "checking if connect can be linked... " >&6; } 30864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30865 /* end confdefs.h. */ 30866 30867 30868 $curl_includes_winsock2 30869 $curl_includes_bsdsocket 30870 $curl_includes_sys_socket 30871 $curl_includes_socket 30872 30873 int main (void) 30874 { 30875 30876 if(0 != connect(0, 0, 0)) 30877 return 1; 30878 30879 ; 30880 return 0; 30881 } 30882 30883 _ACEOF 30884 if ac_fn_c_try_link "$LINENO"; then : 30885 30886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30887 $as_echo "yes" >&6; } 30888 tst_links_connect="yes" 30889 30890 else 30891 30892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30893 $as_echo "no" >&6; } 30894 tst_links_connect="no" 30895 30896 fi 30897 rm -f core conftest.err conftest.$ac_objext \ 30898 conftest$ac_exeext conftest.$ac_ext 30899 # 30900 if test "$tst_links_connect" = "yes"; then 30901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5 30902 $as_echo_n "checking if connect is prototyped... " >&6; } 30903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30904 /* end confdefs.h. */ 30905 30906 $curl_includes_winsock2 30907 $curl_includes_bsdsocket 30908 $curl_includes_sys_socket 30909 $curl_includes_socket 30910 30911 _ACEOF 30912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 30913 $EGREP "connect" >/dev/null 2>&1; then : 30914 30915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30916 $as_echo "yes" >&6; } 30917 tst_proto_connect="yes" 30918 30919 else 30920 30921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30922 $as_echo "no" >&6; } 30923 tst_proto_connect="no" 30924 30925 fi 30926 rm -f conftest* 30927 30928 fi 30929 # 30930 if test "$tst_proto_connect" = "yes"; then 30931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5 30932 $as_echo_n "checking if connect is compilable... " >&6; } 30933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30934 /* end confdefs.h. */ 30935 30936 30937 $curl_includes_winsock2 30938 $curl_includes_bsdsocket 30939 $curl_includes_sys_socket 30940 $curl_includes_socket 30941 30942 int main (void) 30943 { 30944 30945 if(0 != connect(0, 0, 0)) 30946 return 1; 30947 30948 ; 30949 return 0; 30950 } 30951 30952 _ACEOF 30953 if ac_fn_c_try_compile "$LINENO"; then : 30954 30955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30956 $as_echo "yes" >&6; } 30957 tst_compi_connect="yes" 30958 30959 else 30960 30961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30962 $as_echo "no" >&6; } 30963 tst_compi_connect="no" 30964 30965 fi 30966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30967 fi 30968 # 30969 if test "$tst_compi_connect" = "yes"; then 30970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5 30971 $as_echo_n "checking if connect usage allowed... " >&6; } 30972 if test "x$curl_disallow_connect" != "xyes"; then 30973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30974 $as_echo "yes" >&6; } 30975 tst_allow_connect="yes" 30976 else 30977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30978 $as_echo "no" >&6; } 30979 tst_allow_connect="no" 30980 fi 30981 fi 30982 # 30983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5 30984 $as_echo_n "checking if connect might be used... " >&6; } 30985 if test "$tst_links_connect" = "yes" && 30986 test "$tst_proto_connect" = "yes" && 30987 test "$tst_compi_connect" = "yes" && 30988 test "$tst_allow_connect" = "yes"; then 30989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30990 $as_echo "yes" >&6; } 30991 30992 cat >>confdefs.h <<_ACEOF 30993 #define HAVE_CONNECT 1 30994 _ACEOF 30995 30996 curl_cv_func_connect="yes" 30997 else 30998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30999 $as_echo "no" >&6; } 31000 curl_cv_func_connect="no" 31001 fi 31002 31003 31004 curl_includes_fcntl="\ 31005 /* includes start */ 31006 #ifdef HAVE_SYS_TYPES_H 31007 # include <sys/types.h> 31008 #endif 31009 #ifdef HAVE_UNISTD_H 31010 # include <unistd.h> 31011 #endif 31012 #ifdef HAVE_FCNTL_H 31013 # include <fcntl.h> 31014 #endif 31015 /* includes end */" 31016 for ac_header in sys/types.h unistd.h fcntl.h 31017 do : 31018 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 31019 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl 31020 " 31021 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 31022 cat >>confdefs.h <<_ACEOF 31023 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 31024 _ACEOF 31025 31026 fi 31027 31028 done 31029 31030 31031 31032 # 31033 tst_links_fcntl="unknown" 31034 tst_proto_fcntl="unknown" 31035 tst_compi_fcntl="unknown" 31036 tst_allow_fcntl="unknown" 31037 # 31038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5 31039 $as_echo_n "checking if fcntl can be linked... " >&6; } 31040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31041 /* end confdefs.h. */ 31042 31043 31044 #define fcntl innocuous_fcntl 31045 #ifdef __STDC__ 31046 # include <limits.h> 31047 #else 31048 # include <assert.h> 31049 #endif 31050 #undef fcntl 31051 #ifdef __cplusplus 31052 extern "C" 31053 #endif 31054 char fcntl (); 31055 #if defined __stub_fcntl || defined __stub___fcntl 31056 choke me 31057 #endif 31058 31059 int main (void) 31060 { 31061 return fcntl (); 31062 ; 31063 return 0; 31064 } 31065 31066 _ACEOF 31067 if ac_fn_c_try_link "$LINENO"; then : 31068 31069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31070 $as_echo "yes" >&6; } 31071 tst_links_fcntl="yes" 31072 31073 else 31074 31075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31076 $as_echo "no" >&6; } 31077 tst_links_fcntl="no" 31078 31079 fi 31080 rm -f core conftest.err conftest.$ac_objext \ 31081 conftest$ac_exeext conftest.$ac_ext 31082 # 31083 if test "$tst_links_fcntl" = "yes"; then 31084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5 31085 $as_echo_n "checking if fcntl is prototyped... " >&6; } 31086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31087 /* end confdefs.h. */ 31088 31089 $curl_includes_fcntl 31090 31091 _ACEOF 31092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 31093 $EGREP "fcntl" >/dev/null 2>&1; then : 31094 31095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31096 $as_echo "yes" >&6; } 31097 tst_proto_fcntl="yes" 31098 31099 else 31100 31101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31102 $as_echo "no" >&6; } 31103 tst_proto_fcntl="no" 31104 31105 fi 31106 rm -f conftest* 31107 31108 fi 31109 # 31110 if test "$tst_proto_fcntl" = "yes"; then 31111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5 31112 $as_echo_n "checking if fcntl is compilable... " >&6; } 31113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31114 /* end confdefs.h. */ 31115 31116 31117 $curl_includes_fcntl 31118 31119 int main (void) 31120 { 31121 31122 if(0 != fcntl(0, 0, 0)) 31123 return 1; 31124 31125 ; 31126 return 0; 31127 } 31128 31129 _ACEOF 31130 if ac_fn_c_try_compile "$LINENO"; then : 31131 31132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31133 $as_echo "yes" >&6; } 31134 tst_compi_fcntl="yes" 31135 31136 else 31137 31138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31139 $as_echo "no" >&6; } 31140 tst_compi_fcntl="no" 31141 31142 fi 31143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31144 fi 31145 # 31146 if test "$tst_compi_fcntl" = "yes"; then 31147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5 31148 $as_echo_n "checking if fcntl usage allowed... " >&6; } 31149 if test "x$curl_disallow_fcntl" != "xyes"; then 31150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31151 $as_echo "yes" >&6; } 31152 tst_allow_fcntl="yes" 31153 else 31154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31155 $as_echo "no" >&6; } 31156 tst_allow_fcntl="no" 31157 fi 31158 fi 31159 # 31160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5 31161 $as_echo_n "checking if fcntl might be used... " >&6; } 31162 if test "$tst_links_fcntl" = "yes" && 31163 test "$tst_proto_fcntl" = "yes" && 31164 test "$tst_compi_fcntl" = "yes" && 31165 test "$tst_allow_fcntl" = "yes"; then 31166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31167 $as_echo "yes" >&6; } 31168 31169 cat >>confdefs.h <<_ACEOF 31170 #define HAVE_FCNTL 1 31171 _ACEOF 31172 31173 curl_cv_func_fcntl="yes" 31174 31175 # 31176 tst_compi_fcntl_o_nonblock="unknown" 31177 tst_allow_fcntl_o_nonblock="unknown" 31178 # 31179 case $host_os in 31180 sunos4* | aix3* | beos*) 31181 curl_disallow_fcntl_o_nonblock="yes" 31182 ;; 31183 esac 31184 # 31185 if test "$curl_cv_func_fcntl" = "yes"; then 31186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5 31187 $as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; } 31188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31189 /* end confdefs.h. */ 31190 31191 31192 $curl_includes_fcntl 31193 31194 int main (void) 31195 { 31196 31197 int flags = 0; 31198 if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK)) 31199 return 1; 31200 31201 ; 31202 return 0; 31203 } 31204 31205 _ACEOF 31206 if ac_fn_c_try_compile "$LINENO"; then : 31207 31208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31209 $as_echo "yes" >&6; } 31210 tst_compi_fcntl_o_nonblock="yes" 31211 31212 else 31213 31214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31215 $as_echo "no" >&6; } 31216 tst_compi_fcntl_o_nonblock="no" 31217 31218 fi 31219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31220 fi 31221 # 31222 if test "$tst_compi_fcntl_o_nonblock" = "yes"; then 31223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5 31224 $as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; } 31225 if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then 31226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31227 $as_echo "yes" >&6; } 31228 tst_allow_fcntl_o_nonblock="yes" 31229 else 31230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31231 $as_echo "no" >&6; } 31232 tst_allow_fcntl_o_nonblock="no" 31233 fi 31234 fi 31235 # 31236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5 31237 $as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; } 31238 if test "$tst_compi_fcntl_o_nonblock" = "yes" && 31239 test "$tst_allow_fcntl_o_nonblock" = "yes"; then 31240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31241 $as_echo "yes" >&6; } 31242 31243 cat >>confdefs.h <<_ACEOF 31244 #define HAVE_FCNTL_O_NONBLOCK 1 31245 _ACEOF 31246 31247 curl_cv_func_fcntl_o_nonblock="yes" 31248 else 31249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31250 $as_echo "no" >&6; } 31251 curl_cv_func_fcntl_o_nonblock="no" 31252 fi 31253 31254 else 31255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31256 $as_echo "no" >&6; } 31257 curl_cv_func_fcntl="no" 31258 fi 31259 31260 31261 curl_includes_ws2tcpip="\ 31262 /* includes start */ 31263 #ifdef HAVE_WINDOWS_H 31264 # ifndef WIN32_LEAN_AND_MEAN 31265 # define WIN32_LEAN_AND_MEAN 31266 # endif 31267 # include <windows.h> 31268 # ifdef HAVE_WINSOCK2_H 31269 # include <winsock2.h> 31270 # ifdef HAVE_WS2TCPIP_H 31271 # include <ws2tcpip.h> 31272 # endif 31273 # endif 31274 #endif 31275 /* includes end */" 31276 31277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5 31278 $as_echo_n "checking for windows.h... " >&6; } 31279 if ${curl_cv_header_windows_h+:} false; then : 31280 $as_echo_n "(cached) " >&6 31281 else 31282 31283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31284 /* end confdefs.h. */ 31285 31286 31287 #undef inline 31288 #ifndef WIN32_LEAN_AND_MEAN 31289 #define WIN32_LEAN_AND_MEAN 31290 #endif 31291 #include <windows.h> 31292 31293 int main (void) 31294 { 31295 31296 #if defined(__CYGWIN__) || defined(__CEGCC__) 31297 HAVE_WINDOWS_H shall not be defined. 31298 #else 31299 int dummy=2*WINVER; 31300 #endif 31301 31302 ; 31303 return 0; 31304 } 31305 31306 _ACEOF 31307 if ac_fn_c_try_compile "$LINENO"; then : 31308 31309 curl_cv_header_windows_h="yes" 31310 31311 else 31312 31313 curl_cv_header_windows_h="no" 31314 31315 fi 31316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31317 31318 fi 31319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5 31320 $as_echo "$curl_cv_header_windows_h" >&6; } 31321 case "$curl_cv_header_windows_h" in 31322 yes) 31323 31324 cat >>confdefs.h <<_ACEOF 31325 #define HAVE_WINDOWS_H 1 31326 _ACEOF 31327 31328 ;; 31329 esac 31330 31331 31332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5 31333 $as_echo_n "checking for winsock2.h... " >&6; } 31334 if ${curl_cv_header_winsock2_h+:} false; then : 31335 $as_echo_n "(cached) " >&6 31336 else 31337 31338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31339 /* end confdefs.h. */ 31340 31341 31342 #undef inline 31343 #ifndef WIN32_LEAN_AND_MEAN 31344 #define WIN32_LEAN_AND_MEAN 31345 #endif 31346 #include <windows.h> 31347 #include <winsock2.h> 31348 31349 int main (void) 31350 { 31351 31352 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__) 31353 HAVE_WINSOCK2_H shall not be defined. 31354 #else 31355 int dummy=2*IPPROTO_ESP; 31356 #endif 31357 31358 ; 31359 return 0; 31360 } 31361 31362 _ACEOF 31363 if ac_fn_c_try_compile "$LINENO"; then : 31364 31365 curl_cv_header_winsock2_h="yes" 31366 31367 else 31368 31369 curl_cv_header_winsock2_h="no" 31370 31371 fi 31372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31373 31374 fi 31375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5 31376 $as_echo "$curl_cv_header_winsock2_h" >&6; } 31377 case "$curl_cv_header_winsock2_h" in 31378 yes) 31379 31380 cat >>confdefs.h <<_ACEOF 31381 #define HAVE_WINSOCK2_H 1 31382 _ACEOF 31383 31384 ;; 31385 esac 31386 31387 31388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5 31389 $as_echo_n "checking for ws2tcpip.h... " >&6; } 31390 if ${curl_cv_header_ws2tcpip_h+:} false; then : 31391 $as_echo_n "(cached) " >&6 31392 else 31393 31394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31395 /* end confdefs.h. */ 31396 31397 31398 #undef inline 31399 #ifndef WIN32_LEAN_AND_MEAN 31400 #define WIN32_LEAN_AND_MEAN 31401 #endif 31402 #include <windows.h> 31403 #include <winsock2.h> 31404 #include <ws2tcpip.h> 31405 31406 int main (void) 31407 { 31408 31409 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__) 31410 HAVE_WS2TCPIP_H shall not be defined. 31411 #else 31412 int dummy=2*IP_PKTINFO; 31413 #endif 31414 31415 ; 31416 return 0; 31417 } 31418 31419 _ACEOF 31420 if ac_fn_c_try_compile "$LINENO"; then : 31421 31422 curl_cv_header_ws2tcpip_h="yes" 31423 31424 else 31425 31426 curl_cv_header_ws2tcpip_h="no" 31427 31428 fi 31429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31430 31431 fi 31432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5 31433 $as_echo "$curl_cv_header_ws2tcpip_h" >&6; } 31434 case "$curl_cv_header_ws2tcpip_h" in 31435 yes) 31436 31437 cat >>confdefs.h <<_ACEOF 31438 #define HAVE_WS2TCPIP_H 1 31439 _ACEOF 31440 31441 ;; 31442 esac 31443 31444 31445 31446 curl_includes_netdb="\ 31447 /* includes start */ 31448 #ifdef HAVE_SYS_TYPES_H 31449 # include <sys/types.h> 31450 #endif 31451 #ifdef HAVE_NETDB_H 31452 # include <netdb.h> 31453 #endif 31454 /* includes end */" 31455 for ac_header in sys/types.h netdb.h 31456 do : 31457 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 31458 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb 31459 " 31460 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 31461 cat >>confdefs.h <<_ACEOF 31462 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 31463 _ACEOF 31464 31465 fi 31466 31467 done 31468 31469 31470 31471 # 31472 tst_links_freeaddrinfo="unknown" 31473 tst_proto_freeaddrinfo="unknown" 31474 tst_compi_freeaddrinfo="unknown" 31475 tst_allow_freeaddrinfo="unknown" 31476 # 31477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5 31478 $as_echo_n "checking if freeaddrinfo can be linked... " >&6; } 31479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31480 /* end confdefs.h. */ 31481 31482 31483 $curl_includes_ws2tcpip 31484 $curl_includes_sys_socket 31485 $curl_includes_netdb 31486 31487 int main (void) 31488 { 31489 31490 freeaddrinfo(0); 31491 31492 ; 31493 return 0; 31494 } 31495 31496 _ACEOF 31497 if ac_fn_c_try_link "$LINENO"; then : 31498 31499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31500 $as_echo "yes" >&6; } 31501 tst_links_freeaddrinfo="yes" 31502 31503 else 31504 31505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31506 $as_echo "no" >&6; } 31507 tst_links_freeaddrinfo="no" 31508 31509 fi 31510 rm -f core conftest.err conftest.$ac_objext \ 31511 conftest$ac_exeext conftest.$ac_ext 31512 # 31513 if test "$tst_links_freeaddrinfo" = "yes"; then 31514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5 31515 $as_echo_n "checking if freeaddrinfo is prototyped... " >&6; } 31516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31517 /* end confdefs.h. */ 31518 31519 $curl_includes_ws2tcpip 31520 $curl_includes_sys_socket 31521 $curl_includes_netdb 31522 31523 _ACEOF 31524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 31525 $EGREP "freeaddrinfo" >/dev/null 2>&1; then : 31526 31527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31528 $as_echo "yes" >&6; } 31529 tst_proto_freeaddrinfo="yes" 31530 31531 else 31532 31533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31534 $as_echo "no" >&6; } 31535 tst_proto_freeaddrinfo="no" 31536 31537 fi 31538 rm -f conftest* 31539 31540 fi 31541 # 31542 if test "$tst_proto_freeaddrinfo" = "yes"; then 31543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5 31544 $as_echo_n "checking if freeaddrinfo is compilable... " >&6; } 31545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31546 /* end confdefs.h. */ 31547 31548 31549 $curl_includes_ws2tcpip 31550 $curl_includes_sys_socket 31551 $curl_includes_netdb 31552 31553 int main (void) 31554 { 31555 31556 freeaddrinfo(0); 31557 31558 ; 31559 return 0; 31560 } 31561 31562 _ACEOF 31563 if ac_fn_c_try_compile "$LINENO"; then : 31564 31565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31566 $as_echo "yes" >&6; } 31567 tst_compi_freeaddrinfo="yes" 31568 31569 else 31570 31571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31572 $as_echo "no" >&6; } 31573 tst_compi_freeaddrinfo="no" 31574 31575 fi 31576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31577 fi 31578 # 31579 if test "$tst_compi_freeaddrinfo" = "yes"; then 31580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5 31581 $as_echo_n "checking if freeaddrinfo usage allowed... " >&6; } 31582 if test "x$curl_disallow_freeaddrinfo" != "xyes"; then 31583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31584 $as_echo "yes" >&6; } 31585 tst_allow_freeaddrinfo="yes" 31586 else 31587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31588 $as_echo "no" >&6; } 31589 tst_allow_freeaddrinfo="no" 31590 fi 31591 fi 31592 # 31593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5 31594 $as_echo_n "checking if freeaddrinfo might be used... " >&6; } 31595 if test "$tst_links_freeaddrinfo" = "yes" && 31596 test "$tst_proto_freeaddrinfo" = "yes" && 31597 test "$tst_compi_freeaddrinfo" = "yes" && 31598 test "$tst_allow_freeaddrinfo" = "yes"; then 31599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31600 $as_echo "yes" >&6; } 31601 31602 cat >>confdefs.h <<_ACEOF 31603 #define HAVE_FREEADDRINFO 1 31604 _ACEOF 31605 31606 curl_cv_func_freeaddrinfo="yes" 31607 else 31608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31609 $as_echo "no" >&6; } 31610 curl_cv_func_freeaddrinfo="no" 31611 fi 31612 31613 31614 curl_includes_ifaddrs="\ 31615 /* includes start */ 31616 #ifdef HAVE_SYS_TYPES_H 31617 # include <sys/types.h> 31618 #endif 31619 #ifdef HAVE_SYS_SOCKET_H 31620 # include <sys/socket.h> 31621 #endif 31622 #ifdef HAVE_NETINET_IN_H 31623 # include <netinet/in.h> 31624 #endif 31625 #ifdef HAVE_IFADDRS_H 31626 # include <ifaddrs.h> 31627 #endif 31628 /* includes end */" 31629 for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h 31630 do : 31631 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 31632 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs 31633 " 31634 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 31635 cat >>confdefs.h <<_ACEOF 31636 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 31637 _ACEOF 31638 31639 fi 31640 31641 done 31642 31643 31644 31645 # 31646 tst_links_freeifaddrs="unknown" 31647 tst_proto_freeifaddrs="unknown" 31648 tst_compi_freeifaddrs="unknown" 31649 tst_allow_freeifaddrs="unknown" 31650 # 31651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5 31652 $as_echo_n "checking if freeifaddrs can be linked... " >&6; } 31653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31654 /* end confdefs.h. */ 31655 31656 31657 #define freeifaddrs innocuous_freeifaddrs 31658 #ifdef __STDC__ 31659 # include <limits.h> 31660 #else 31661 # include <assert.h> 31662 #endif 31663 #undef freeifaddrs 31664 #ifdef __cplusplus 31665 extern "C" 31666 #endif 31667 char freeifaddrs (); 31668 #if defined __stub_freeifaddrs || defined __stub___freeifaddrs 31669 choke me 31670 #endif 31671 31672 int main (void) 31673 { 31674 return freeifaddrs (); 31675 ; 31676 return 0; 31677 } 31678 31679 _ACEOF 31680 if ac_fn_c_try_link "$LINENO"; then : 31681 31682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31683 $as_echo "yes" >&6; } 31684 tst_links_freeifaddrs="yes" 31685 31686 else 31687 31688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31689 $as_echo "no" >&6; } 31690 tst_links_freeifaddrs="no" 31691 31692 fi 31693 rm -f core conftest.err conftest.$ac_objext \ 31694 conftest$ac_exeext conftest.$ac_ext 31695 # 31696 if test "$tst_links_freeifaddrs" = "yes"; then 31697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5 31698 $as_echo_n "checking if freeifaddrs is prototyped... " >&6; } 31699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31700 /* end confdefs.h. */ 31701 31702 $curl_includes_ifaddrs 31703 31704 _ACEOF 31705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 31706 $EGREP "freeifaddrs" >/dev/null 2>&1; then : 31707 31708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31709 $as_echo "yes" >&6; } 31710 tst_proto_freeifaddrs="yes" 31711 31712 else 31713 31714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31715 $as_echo "no" >&6; } 31716 tst_proto_freeifaddrs="no" 31717 31718 fi 31719 rm -f conftest* 31720 31721 fi 31722 # 31723 if test "$tst_proto_freeifaddrs" = "yes"; then 31724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5 31725 $as_echo_n "checking if freeifaddrs is compilable... " >&6; } 31726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31727 /* end confdefs.h. */ 31728 31729 31730 $curl_includes_ifaddrs 31731 31732 int main (void) 31733 { 31734 31735 freeifaddrs(0); 31736 31737 ; 31738 return 0; 31739 } 31740 31741 _ACEOF 31742 if ac_fn_c_try_compile "$LINENO"; then : 31743 31744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31745 $as_echo "yes" >&6; } 31746 tst_compi_freeifaddrs="yes" 31747 31748 else 31749 31750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31751 $as_echo "no" >&6; } 31752 tst_compi_freeifaddrs="no" 31753 31754 fi 31755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31756 fi 31757 # 31758 if test "$tst_compi_freeifaddrs" = "yes"; then 31759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5 31760 $as_echo_n "checking if freeifaddrs usage allowed... " >&6; } 31761 if test "x$curl_disallow_freeifaddrs" != "xyes"; then 31762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31763 $as_echo "yes" >&6; } 31764 tst_allow_freeifaddrs="yes" 31765 else 31766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31767 $as_echo "no" >&6; } 31768 tst_allow_freeifaddrs="no" 31769 fi 31770 fi 31771 # 31772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5 31773 $as_echo_n "checking if freeifaddrs might be used... " >&6; } 31774 if test "$tst_links_freeifaddrs" = "yes" && 31775 test "$tst_proto_freeifaddrs" = "yes" && 31776 test "$tst_compi_freeifaddrs" = "yes" && 31777 test "$tst_allow_freeifaddrs" = "yes"; then 31778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31779 $as_echo "yes" >&6; } 31780 31781 cat >>confdefs.h <<_ACEOF 31782 #define HAVE_FREEIFADDRS 1 31783 _ACEOF 31784 31785 curl_cv_func_freeifaddrs="yes" 31786 else 31787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31788 $as_echo "no" >&6; } 31789 curl_cv_func_freeifaddrs="no" 31790 fi 31791 31792 31793 curl_includes_sys_xattr="\ 31794 /* includes start */ 31795 #ifdef HAVE_SYS_TYPES_H 31796 # include <sys/types.h> 31797 #endif 31798 #ifdef HAVE_SYS_XATTR_H 31799 # include <sys/xattr.h> 31800 #endif 31801 /* includes end */" 31802 for ac_header in sys/types.h sys/xattr.h 31803 do : 31804 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 31805 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr 31806 " 31807 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 31808 cat >>confdefs.h <<_ACEOF 31809 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 31810 _ACEOF 31811 31812 fi 31813 31814 done 31815 31816 31817 31818 # 31819 tst_links_fsetxattr="unknown" 31820 tst_proto_fsetxattr="unknown" 31821 tst_compi_fsetxattr="unknown" 31822 tst_allow_fsetxattr="unknown" 31823 tst_nargs_fsetxattr="unknown" 31824 # 31825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5 31826 $as_echo_n "checking if fsetxattr can be linked... " >&6; } 31827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31828 /* end confdefs.h. */ 31829 31830 31831 #define fsetxattr innocuous_fsetxattr 31832 #ifdef __STDC__ 31833 # include <limits.h> 31834 #else 31835 # include <assert.h> 31836 #endif 31837 #undef fsetxattr 31838 #ifdef __cplusplus 31839 extern "C" 31840 #endif 31841 char fsetxattr (); 31842 #if defined __stub_fsetxattr || defined __stub___fsetxattr 31843 choke me 31844 #endif 31845 31846 int main (void) 31847 { 31848 return fsetxattr (); 31849 ; 31850 return 0; 31851 } 31852 31853 _ACEOF 31854 if ac_fn_c_try_link "$LINENO"; then : 31855 31856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31857 $as_echo "yes" >&6; } 31858 tst_links_fsetxattr="yes" 31859 31860 else 31861 31862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31863 $as_echo "no" >&6; } 31864 tst_links_fsetxattr="no" 31865 31866 fi 31867 rm -f core conftest.err conftest.$ac_objext \ 31868 conftest$ac_exeext conftest.$ac_ext 31869 # 31870 if test "$tst_links_fsetxattr" = "yes"; then 31871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5 31872 $as_echo_n "checking if fsetxattr is prototyped... " >&6; } 31873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31874 /* end confdefs.h. */ 31875 31876 $curl_includes_sys_xattr 31877 31878 _ACEOF 31879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 31880 $EGREP "fsetxattr" >/dev/null 2>&1; then : 31881 31882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31883 $as_echo "yes" >&6; } 31884 tst_proto_fsetxattr="yes" 31885 31886 else 31887 31888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31889 $as_echo "no" >&6; } 31890 tst_proto_fsetxattr="no" 31891 31892 fi 31893 rm -f conftest* 31894 31895 fi 31896 # 31897 if test "$tst_proto_fsetxattr" = "yes"; then 31898 if test "$tst_nargs_fsetxattr" = "unknown"; then 31899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5 31900 $as_echo_n "checking if fsetxattr takes 5 args.... " >&6; } 31901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31902 /* end confdefs.h. */ 31903 31904 31905 $curl_includes_sys_xattr 31906 31907 int main (void) 31908 { 31909 31910 if(0 != fsetxattr(0, 0, 0, 0, 0)) 31911 return 1; 31912 31913 ; 31914 return 0; 31915 } 31916 31917 _ACEOF 31918 if ac_fn_c_try_compile "$LINENO"; then : 31919 31920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31921 $as_echo "yes" >&6; } 31922 tst_compi_fsetxattr="yes" 31923 tst_nargs_fsetxattr="5" 31924 31925 else 31926 31927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31928 $as_echo "no" >&6; } 31929 tst_compi_fsetxattr="no" 31930 31931 fi 31932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31933 fi 31934 if test "$tst_nargs_fsetxattr" = "unknown"; then 31935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5 31936 $as_echo_n "checking if fsetxattr takes 6 args.... " >&6; } 31937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31938 /* end confdefs.h. */ 31939 31940 31941 $curl_includes_sys_xattr 31942 31943 int main (void) 31944 { 31945 31946 if(0 != fsetxattr(0, 0, 0, 0, 0, 0)) 31947 return 1; 31948 31949 ; 31950 return 0; 31951 } 31952 31953 _ACEOF 31954 if ac_fn_c_try_compile "$LINENO"; then : 31955 31956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31957 $as_echo "yes" >&6; } 31958 tst_compi_fsetxattr="yes" 31959 tst_nargs_fsetxattr="6" 31960 31961 else 31962 31963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31964 $as_echo "no" >&6; } 31965 tst_compi_fsetxattr="no" 31966 31967 fi 31968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31969 fi 31970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5 31971 $as_echo_n "checking if fsetxattr is compilable... " >&6; } 31972 if test "$tst_compi_fsetxattr" = "yes"; then 31973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31974 $as_echo "yes" >&6; } 31975 else 31976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31977 $as_echo "no" >&6; } 31978 fi 31979 fi 31980 # 31981 if test "$tst_compi_fsetxattr" = "yes"; then 31982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5 31983 $as_echo_n "checking if fsetxattr usage allowed... " >&6; } 31984 if test "x$curl_disallow_fsetxattr" != "xyes"; then 31985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31986 $as_echo "yes" >&6; } 31987 tst_allow_fsetxattr="yes" 31988 else 31989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31990 $as_echo "no" >&6; } 31991 tst_allow_fsetxattr="no" 31992 fi 31993 fi 31994 # 31995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5 31996 $as_echo_n "checking if fsetxattr might be used... " >&6; } 31997 if test "$tst_links_fsetxattr" = "yes" && 31998 test "$tst_proto_fsetxattr" = "yes" && 31999 test "$tst_compi_fsetxattr" = "yes" && 32000 test "$tst_allow_fsetxattr" = "yes"; then 32001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32002 $as_echo "yes" >&6; } 32003 32004 cat >>confdefs.h <<_ACEOF 32005 #define HAVE_FSETXATTR 1 32006 _ACEOF 32007 32008 # 32009 if test "$tst_nargs_fsetxattr" -eq "5"; then 32010 32011 $as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h 32012 32013 elif test "$tst_nargs_fsetxattr" -eq "6"; then 32014 32015 $as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h 32016 32017 fi 32018 # 32019 curl_cv_func_fsetxattr="yes" 32020 else 32021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32022 $as_echo "no" >&6; } 32023 curl_cv_func_fsetxattr="no" 32024 fi 32025 32026 32027 # 32028 tst_links_ftruncate="unknown" 32029 tst_proto_ftruncate="unknown" 32030 tst_compi_ftruncate="unknown" 32031 tst_allow_ftruncate="unknown" 32032 # 32033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5 32034 $as_echo_n "checking if ftruncate can be linked... " >&6; } 32035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32036 /* end confdefs.h. */ 32037 32038 32039 #define ftruncate innocuous_ftruncate 32040 #ifdef __STDC__ 32041 # include <limits.h> 32042 #else 32043 # include <assert.h> 32044 #endif 32045 #undef ftruncate 32046 #ifdef __cplusplus 32047 extern "C" 32048 #endif 32049 char ftruncate (); 32050 #if defined __stub_ftruncate || defined __stub___ftruncate 32051 choke me 32052 #endif 32053 32054 int main (void) 32055 { 32056 return ftruncate (); 32057 ; 32058 return 0; 32059 } 32060 32061 _ACEOF 32062 if ac_fn_c_try_link "$LINENO"; then : 32063 32064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32065 $as_echo "yes" >&6; } 32066 tst_links_ftruncate="yes" 32067 32068 else 32069 32070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32071 $as_echo "no" >&6; } 32072 tst_links_ftruncate="no" 32073 32074 fi 32075 rm -f core conftest.err conftest.$ac_objext \ 32076 conftest$ac_exeext conftest.$ac_ext 32077 # 32078 if test "$tst_links_ftruncate" = "yes"; then 32079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5 32080 $as_echo_n "checking if ftruncate is prototyped... " >&6; } 32081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32082 /* end confdefs.h. */ 32083 32084 $curl_includes_unistd 32085 32086 _ACEOF 32087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 32088 $EGREP "ftruncate" >/dev/null 2>&1; then : 32089 32090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32091 $as_echo "yes" >&6; } 32092 tst_proto_ftruncate="yes" 32093 32094 else 32095 32096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32097 $as_echo "no" >&6; } 32098 tst_proto_ftruncate="no" 32099 32100 fi 32101 rm -f conftest* 32102 32103 fi 32104 # 32105 if test "$tst_proto_ftruncate" = "yes"; then 32106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5 32107 $as_echo_n "checking if ftruncate is compilable... " >&6; } 32108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32109 /* end confdefs.h. */ 32110 32111 32112 $curl_includes_unistd 32113 32114 int main (void) 32115 { 32116 32117 if(0 != ftruncate(0, 0)) 32118 return 1; 32119 32120 ; 32121 return 0; 32122 } 32123 32124 _ACEOF 32125 if ac_fn_c_try_compile "$LINENO"; then : 32126 32127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32128 $as_echo "yes" >&6; } 32129 tst_compi_ftruncate="yes" 32130 32131 else 32132 32133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32134 $as_echo "no" >&6; } 32135 tst_compi_ftruncate="no" 32136 32137 fi 32138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32139 fi 32140 # 32141 if test "$tst_compi_ftruncate" = "yes"; then 32142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5 32143 $as_echo_n "checking if ftruncate usage allowed... " >&6; } 32144 if test "x$curl_disallow_ftruncate" != "xyes"; then 32145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32146 $as_echo "yes" >&6; } 32147 tst_allow_ftruncate="yes" 32148 else 32149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32150 $as_echo "no" >&6; } 32151 tst_allow_ftruncate="no" 32152 fi 32153 fi 32154 # 32155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5 32156 $as_echo_n "checking if ftruncate might be used... " >&6; } 32157 if test "$tst_links_ftruncate" = "yes" && 32158 test "$tst_proto_ftruncate" = "yes" && 32159 test "$tst_compi_ftruncate" = "yes" && 32160 test "$tst_allow_ftruncate" = "yes"; then 32161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32162 $as_echo "yes" >&6; } 32163 32164 cat >>confdefs.h <<_ACEOF 32165 #define HAVE_FTRUNCATE 1 32166 _ACEOF 32167 32168 curl_cv_func_ftruncate="yes" 32169 else 32170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32171 $as_echo "no" >&6; } 32172 curl_cv_func_ftruncate="no" 32173 fi 32174 32175 32176 curl_includes_stdlib="\ 32177 /* includes start */ 32178 #ifdef HAVE_SYS_TYPES_H 32179 # include <sys/types.h> 32180 #endif 32181 #ifdef HAVE_STDLIB_H 32182 # include <stdlib.h> 32183 #endif 32184 /* includes end */" 32185 for ac_header in sys/types.h stdlib.h 32186 do : 32187 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 32188 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib 32189 " 32190 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 32191 cat >>confdefs.h <<_ACEOF 32192 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 32193 _ACEOF 32194 32195 fi 32196 32197 done 32198 32199 32200 32201 # 32202 tst_links_getaddrinfo="unknown" 32203 tst_proto_getaddrinfo="unknown" 32204 tst_compi_getaddrinfo="unknown" 32205 tst_works_getaddrinfo="unknown" 32206 tst_allow_getaddrinfo="unknown" 32207 tst_tsafe_getaddrinfo="unknown" 32208 # 32209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5 32210 $as_echo_n "checking if getaddrinfo can be linked... " >&6; } 32211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32212 /* end confdefs.h. */ 32213 32214 32215 $curl_includes_ws2tcpip 32216 $curl_includes_sys_socket 32217 $curl_includes_netdb 32218 32219 int main (void) 32220 { 32221 32222 if(0 != getaddrinfo(0, 0, 0, 0)) 32223 return 1; 32224 32225 ; 32226 return 0; 32227 } 32228 32229 _ACEOF 32230 if ac_fn_c_try_link "$LINENO"; then : 32231 32232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32233 $as_echo "yes" >&6; } 32234 tst_links_getaddrinfo="yes" 32235 32236 else 32237 32238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32239 $as_echo "no" >&6; } 32240 tst_links_getaddrinfo="no" 32241 32242 fi 32243 rm -f core conftest.err conftest.$ac_objext \ 32244 conftest$ac_exeext conftest.$ac_ext 32245 # 32246 if test "$tst_links_getaddrinfo" = "yes"; then 32247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5 32248 $as_echo_n "checking if getaddrinfo is prototyped... " >&6; } 32249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32250 /* end confdefs.h. */ 32251 32252 $curl_includes_ws2tcpip 32253 $curl_includes_sys_socket 32254 $curl_includes_netdb 32255 32256 _ACEOF 32257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 32258 $EGREP "getaddrinfo" >/dev/null 2>&1; then : 32259 32260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32261 $as_echo "yes" >&6; } 32262 tst_proto_getaddrinfo="yes" 32263 32264 else 32265 32266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32267 $as_echo "no" >&6; } 32268 tst_proto_getaddrinfo="no" 32269 32270 fi 32271 rm -f conftest* 32272 32273 fi 32274 # 32275 if test "$tst_proto_getaddrinfo" = "yes"; then 32276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5 32277 $as_echo_n "checking if getaddrinfo is compilable... " >&6; } 32278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32279 /* end confdefs.h. */ 32280 32281 32282 $curl_includes_ws2tcpip 32283 $curl_includes_sys_socket 32284 $curl_includes_netdb 32285 32286 int main (void) 32287 { 32288 32289 if(0 != getaddrinfo(0, 0, 0, 0)) 32290 return 1; 32291 32292 ; 32293 return 0; 32294 } 32295 32296 _ACEOF 32297 if ac_fn_c_try_compile "$LINENO"; then : 32298 32299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32300 $as_echo "yes" >&6; } 32301 tst_compi_getaddrinfo="yes" 32302 32303 else 32304 32305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32306 $as_echo "no" >&6; } 32307 tst_compi_getaddrinfo="no" 32308 32309 fi 32310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32311 fi 32312 # 32313 if test "x$cross_compiling" != "xyes" && 32314 test "$tst_compi_getaddrinfo" = "yes"; then 32315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5 32316 $as_echo_n "checking if getaddrinfo seems to work... " >&6; } 32317 32318 32319 old=$LD_LIBRARY_PATH 32320 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 32321 export LD_LIBRARY_PATH 32322 if test "$cross_compiling" = yes; then : 32323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 32325 as_fn_error $? "cannot run test program while cross compiling 32326 See \`config.log' for more details" "$LINENO" 5; } 32327 else 32328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32329 /* end confdefs.h. */ 32330 32331 32332 $curl_includes_ws2tcpip 32333 $curl_includes_stdlib 32334 $curl_includes_string 32335 $curl_includes_sys_socket 32336 $curl_includes_netdb 32337 32338 int main (void) 32339 { 32340 32341 struct addrinfo hints; 32342 struct addrinfo *ai = 0; 32343 int error; 32344 32345 #ifdef HAVE_WINSOCK2_H 32346 WSADATA wsa; 32347 if (WSAStartup(MAKEWORD(2,2), &wsa)) 32348 exit(2); 32349 #endif 32350 32351 memset(&hints, 0, sizeof(hints)); 32352 hints.ai_flags = AI_NUMERICHOST; 32353 hints.ai_family = AF_UNSPEC; 32354 hints.ai_socktype = SOCK_STREAM; 32355 error = getaddrinfo("127.0.0.1", 0, &hints, &ai); 32356 if(error || !ai) 32357 exit(1); /* fail */ 32358 else 32359 exit(0); 32360 32361 ; 32362 return 0; 32363 } 32364 32365 _ACEOF 32366 if ac_fn_c_try_run "$LINENO"; then : 32367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32368 $as_echo "yes" >&6; } 32369 tst_works_getaddrinfo="yes" 32370 32371 else 32372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32373 $as_echo "no" >&6; } 32374 tst_works_getaddrinfo="no" 32375 32376 fi 32377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 32378 conftest.$ac_objext conftest.beam conftest.$ac_ext 32379 fi 32380 32381 LD_LIBRARY_PATH=$old # restore 32382 32383 fi 32384 # 32385 if test "$tst_compi_getaddrinfo" = "yes" && 32386 test "$tst_works_getaddrinfo" != "no"; then 32387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5 32388 $as_echo_n "checking if getaddrinfo usage allowed... " >&6; } 32389 if test "x$curl_disallow_getaddrinfo" != "xyes"; then 32390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32391 $as_echo "yes" >&6; } 32392 tst_allow_getaddrinfo="yes" 32393 else 32394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32395 $as_echo "no" >&6; } 32396 tst_allow_getaddrinfo="no" 32397 fi 32398 fi 32399 # 32400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5 32401 $as_echo_n "checking if getaddrinfo might be used... " >&6; } 32402 if test "$tst_links_getaddrinfo" = "yes" && 32403 test "$tst_proto_getaddrinfo" = "yes" && 32404 test "$tst_compi_getaddrinfo" = "yes" && 32405 test "$tst_allow_getaddrinfo" = "yes" && 32406 test "$tst_works_getaddrinfo" != "no"; then 32407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32408 $as_echo "yes" >&6; } 32409 32410 cat >>confdefs.h <<_ACEOF 32411 #define HAVE_GETADDRINFO 1 32412 _ACEOF 32413 32414 curl_cv_func_getaddrinfo="yes" 32415 else 32416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32417 $as_echo "no" >&6; } 32418 curl_cv_func_getaddrinfo="no" 32419 curl_cv_func_getaddrinfo_threadsafe="no" 32420 fi 32421 # 32422 if test "$curl_cv_func_getaddrinfo" = "yes"; then 32423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5 32424 $as_echo_n "checking if getaddrinfo is threadsafe... " >&6; } 32425 case $host_os in 32426 aix[1234].* | aix5.[01].*) 32427 tst_tsafe_getaddrinfo="no" 32428 ;; 32429 aix*) 32430 tst_tsafe_getaddrinfo="yes" 32431 ;; 32432 darwin[12345].*) 32433 tst_tsafe_getaddrinfo="no" 32434 ;; 32435 darwin*) 32436 tst_tsafe_getaddrinfo="yes" 32437 ;; 32438 freebsd[1234].* | freebsd5.[1234]*) 32439 tst_tsafe_getaddrinfo="no" 32440 ;; 32441 freebsd*) 32442 tst_tsafe_getaddrinfo="yes" 32443 ;; 32444 hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*) 32445 tst_tsafe_getaddrinfo="no" 32446 ;; 32447 hpux*) 32448 tst_tsafe_getaddrinfo="yes" 32449 ;; 32450 netbsd[123].*) 32451 tst_tsafe_getaddrinfo="no" 32452 ;; 32453 netbsd*) 32454 tst_tsafe_getaddrinfo="yes" 32455 ;; 32456 *bsd*) 32457 tst_tsafe_getaddrinfo="no" 32458 ;; 32459 solaris2*) 32460 tst_tsafe_getaddrinfo="yes" 32461 ;; 32462 esac 32463 if test "$tst_tsafe_getaddrinfo" = "unknown" && 32464 test "$curl_cv_native_windows" = "yes"; then 32465 tst_tsafe_getaddrinfo="yes" 32466 fi 32467 if test "$tst_tsafe_getaddrinfo" = "unknown"; then 32468 32469 32470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32471 /* end confdefs.h. */ 32472 32473 32474 $curl_includes_sys_socket 32475 $curl_includes_netdb 32476 32477 int main (void) 32478 { 32479 #ifdef h_errno 32480 return 0; 32481 #else 32482 force compilation error 32483 #endif 32484 } 32485 32486 32487 _ACEOF 32488 if ac_fn_c_try_compile "$LINENO"; then : 32489 32490 tst_symbol_defined="yes" 32491 32492 else 32493 32494 tst_symbol_defined="no" 32495 32496 fi 32497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32498 if test "$tst_symbol_defined" = "yes"; then 32499 curl_cv_have_def_h_errno=yes 32500 32501 else 32502 curl_cv_have_def_h_errno=no 32503 32504 fi 32505 32506 if test "$curl_cv_have_def_h_errno" = "yes"; then 32507 tst_h_errno_macro="yes" 32508 else 32509 tst_h_errno_macro="no" 32510 fi 32511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32512 /* end confdefs.h. */ 32513 32514 32515 $curl_includes_sys_socket 32516 $curl_includes_netdb 32517 32518 int main (void) 32519 { 32520 32521 h_errno = 2; 32522 if(0 != h_errno) 32523 return 1; 32524 32525 ; 32526 return 0; 32527 } 32528 32529 _ACEOF 32530 if ac_fn_c_try_compile "$LINENO"; then : 32531 32532 tst_h_errno_modifiable_lvalue="yes" 32533 32534 else 32535 32536 tst_h_errno_modifiable_lvalue="no" 32537 32538 fi 32539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32541 /* end confdefs.h. */ 32542 32543 32544 32545 int main (void) 32546 { 32547 32548 #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L) 32549 return 0; 32550 #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700) 32551 return 0; 32552 #else 32553 force compilation error 32554 #endif 32555 32556 ; 32557 return 0; 32558 } 32559 32560 _ACEOF 32561 if ac_fn_c_try_compile "$LINENO"; then : 32562 32563 tst_h_errno_sbs_issue_7="yes" 32564 32565 else 32566 32567 tst_h_errno_sbs_issue_7="no" 32568 32569 fi 32570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32571 if test "$tst_h_errno_macro" = "no" && 32572 test "$tst_h_errno_modifiable_lvalue" = "no" && 32573 test "$tst_h_errno_sbs_issue_7" = "no"; then 32574 tst_tsafe_getaddrinfo="no" 32575 else 32576 tst_tsafe_getaddrinfo="yes" 32577 fi 32578 fi 32579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5 32580 $as_echo "$tst_tsafe_getaddrinfo" >&6; } 32581 if test "$tst_tsafe_getaddrinfo" = "yes"; then 32582 32583 cat >>confdefs.h <<_ACEOF 32584 #define HAVE_GETADDRINFO_THREADSAFE 1 32585 _ACEOF 32586 32587 curl_cv_func_getaddrinfo_threadsafe="yes" 32588 else 32589 curl_cv_func_getaddrinfo_threadsafe="no" 32590 fi 32591 fi 32592 32593 32594 # 32595 tst_links_gai_strerror="unknown" 32596 tst_proto_gai_strerror="unknown" 32597 tst_compi_gai_strerror="unknown" 32598 tst_allow_gai_strerror="unknown" 32599 # 32600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror can be linked" >&5 32601 $as_echo_n "checking if gai_strerror can be linked... " >&6; } 32602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32603 /* end confdefs.h. */ 32604 32605 32606 $curl_includes_winsock2 32607 $curl_includes_bsdsocket 32608 $curl_includes_netdb 32609 32610 int main (void) 32611 { 32612 32613 if(0 != gai_strerror(0)) 32614 return 1; 32615 32616 ; 32617 return 0; 32618 } 32619 32620 _ACEOF 32621 if ac_fn_c_try_link "$LINENO"; then : 32622 32623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32624 $as_echo "yes" >&6; } 32625 tst_links_gai_strerror="yes" 32626 32627 else 32628 32629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32630 $as_echo "no" >&6; } 32631 tst_links_gai_strerror="no" 32632 32633 fi 32634 rm -f core conftest.err conftest.$ac_objext \ 32635 conftest$ac_exeext conftest.$ac_ext 32636 # 32637 if test "$tst_links_gai_strerror" = "yes"; then 32638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is prototyped" >&5 32639 $as_echo_n "checking if gai_strerror is prototyped... " >&6; } 32640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32641 /* end confdefs.h. */ 32642 32643 $curl_includes_winsock2 32644 $curl_includes_bsdsocket 32645 $curl_includes_netdb 32646 32647 _ACEOF 32648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 32649 $EGREP "gai_strerror" >/dev/null 2>&1; then : 32650 32651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32652 $as_echo "yes" >&6; } 32653 tst_proto_gai_strerror="yes" 32654 32655 else 32656 32657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32658 $as_echo "no" >&6; } 32659 tst_proto_gai_strerror="no" 32660 32661 fi 32662 rm -f conftest* 32663 32664 fi 32665 # 32666 if test "$tst_proto_gai_strerror" = "yes"; then 32667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is compilable" >&5 32668 $as_echo_n "checking if gai_strerror is compilable... " >&6; } 32669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32670 /* end confdefs.h. */ 32671 32672 32673 $curl_includes_winsock2 32674 $curl_includes_bsdsocket 32675 $curl_includes_netdb 32676 32677 int main (void) 32678 { 32679 32680 if(0 != gai_strerror(0)) 32681 return 1; 32682 32683 ; 32684 return 0; 32685 } 32686 32687 _ACEOF 32688 if ac_fn_c_try_compile "$LINENO"; then : 32689 32690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32691 $as_echo "yes" >&6; } 32692 tst_compi_gai_strerror="yes" 32693 32694 else 32695 32696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32697 $as_echo "no" >&6; } 32698 tst_compi_gai_strerror="no" 32699 32700 fi 32701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32702 fi 32703 # 32704 if test "$tst_compi_gai_strerror" = "yes"; then 32705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror usage allowed" >&5 32706 $as_echo_n "checking if gai_strerror usage allowed... " >&6; } 32707 if test "x$curl_disallow_gai_strerror" != "xyes"; then 32708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32709 $as_echo "yes" >&6; } 32710 tst_allow_gai_strerror="yes" 32711 else 32712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32713 $as_echo "no" >&6; } 32714 tst_allow_gai_strerror="no" 32715 fi 32716 fi 32717 # 32718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror might be used" >&5 32719 $as_echo_n "checking if gai_strerror might be used... " >&6; } 32720 if test "$tst_links_gai_strerror" = "yes" && 32721 test "$tst_proto_gai_strerror" = "yes" && 32722 test "$tst_compi_gai_strerror" = "yes" && 32723 test "$tst_allow_gai_strerror" = "yes"; then 32724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32725 $as_echo "yes" >&6; } 32726 32727 cat >>confdefs.h <<_ACEOF 32728 #define HAVE_GAI_STRERROR 1 32729 _ACEOF 32730 32731 curl_cv_func_gai_strerror="yes" 32732 else 32733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32734 $as_echo "no" >&6; } 32735 curl_cv_func_gai_strerror="no" 32736 fi 32737 32738 32739 # 32740 tst_links_gethostbyaddr="unknown" 32741 tst_proto_gethostbyaddr="unknown" 32742 tst_compi_gethostbyaddr="unknown" 32743 tst_allow_gethostbyaddr="unknown" 32744 # 32745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5 32746 $as_echo_n "checking if gethostbyaddr can be linked... " >&6; } 32747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32748 /* end confdefs.h. */ 32749 32750 32751 $curl_includes_winsock2 32752 $curl_includes_bsdsocket 32753 $curl_includes_netdb 32754 32755 int main (void) 32756 { 32757 32758 if(0 != gethostbyaddr(0, 0, 0)) 32759 return 1; 32760 32761 ; 32762 return 0; 32763 } 32764 32765 _ACEOF 32766 if ac_fn_c_try_link "$LINENO"; then : 32767 32768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32769 $as_echo "yes" >&6; } 32770 tst_links_gethostbyaddr="yes" 32771 32772 else 32773 32774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32775 $as_echo "no" >&6; } 32776 tst_links_gethostbyaddr="no" 32777 32778 fi 32779 rm -f core conftest.err conftest.$ac_objext \ 32780 conftest$ac_exeext conftest.$ac_ext 32781 # 32782 if test "$tst_links_gethostbyaddr" = "yes"; then 32783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5 32784 $as_echo_n "checking if gethostbyaddr is prototyped... " >&6; } 32785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32786 /* end confdefs.h. */ 32787 32788 $curl_includes_winsock2 32789 $curl_includes_bsdsocket 32790 $curl_includes_netdb 32791 32792 _ACEOF 32793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 32794 $EGREP "gethostbyaddr" >/dev/null 2>&1; then : 32795 32796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32797 $as_echo "yes" >&6; } 32798 tst_proto_gethostbyaddr="yes" 32799 32800 else 32801 32802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32803 $as_echo "no" >&6; } 32804 tst_proto_gethostbyaddr="no" 32805 32806 fi 32807 rm -f conftest* 32808 32809 fi 32810 # 32811 if test "$tst_proto_gethostbyaddr" = "yes"; then 32812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5 32813 $as_echo_n "checking if gethostbyaddr is compilable... " >&6; } 32814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32815 /* end confdefs.h. */ 32816 32817 32818 $curl_includes_winsock2 32819 $curl_includes_bsdsocket 32820 $curl_includes_netdb 32821 32822 int main (void) 32823 { 32824 32825 if(0 != gethostbyaddr(0, 0, 0)) 32826 return 1; 32827 32828 ; 32829 return 0; 32830 } 32831 32832 _ACEOF 32833 if ac_fn_c_try_compile "$LINENO"; then : 32834 32835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32836 $as_echo "yes" >&6; } 32837 tst_compi_gethostbyaddr="yes" 32838 32839 else 32840 32841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32842 $as_echo "no" >&6; } 32843 tst_compi_gethostbyaddr="no" 32844 32845 fi 32846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32847 fi 32848 # 32849 if test "$tst_compi_gethostbyaddr" = "yes"; then 32850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5 32851 $as_echo_n "checking if gethostbyaddr usage allowed... " >&6; } 32852 if test "x$curl_disallow_gethostbyaddr" != "xyes"; then 32853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32854 $as_echo "yes" >&6; } 32855 tst_allow_gethostbyaddr="yes" 32856 else 32857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32858 $as_echo "no" >&6; } 32859 tst_allow_gethostbyaddr="no" 32860 fi 32861 fi 32862 # 32863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5 32864 $as_echo_n "checking if gethostbyaddr might be used... " >&6; } 32865 if test "$tst_links_gethostbyaddr" = "yes" && 32866 test "$tst_proto_gethostbyaddr" = "yes" && 32867 test "$tst_compi_gethostbyaddr" = "yes" && 32868 test "$tst_allow_gethostbyaddr" = "yes"; then 32869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32870 $as_echo "yes" >&6; } 32871 32872 cat >>confdefs.h <<_ACEOF 32873 #define HAVE_GETHOSTBYADDR 1 32874 _ACEOF 32875 32876 curl_cv_func_gethostbyaddr="yes" 32877 else 32878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32879 $as_echo "no" >&6; } 32880 curl_cv_func_gethostbyaddr="no" 32881 fi 32882 32883 32884 # 32885 tst_links_gethostbyaddr_r="unknown" 32886 tst_proto_gethostbyaddr_r="unknown" 32887 tst_compi_gethostbyaddr_r="unknown" 32888 tst_allow_gethostbyaddr_r="unknown" 32889 tst_nargs_gethostbyaddr_r="unknown" 32890 # 32891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5 32892 $as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; } 32893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32894 /* end confdefs.h. */ 32895 32896 32897 #define gethostbyaddr_r innocuous_gethostbyaddr_r 32898 #ifdef __STDC__ 32899 # include <limits.h> 32900 #else 32901 # include <assert.h> 32902 #endif 32903 #undef gethostbyaddr_r 32904 #ifdef __cplusplus 32905 extern "C" 32906 #endif 32907 char gethostbyaddr_r (); 32908 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r 32909 choke me 32910 #endif 32911 32912 int main (void) 32913 { 32914 return gethostbyaddr_r (); 32915 ; 32916 return 0; 32917 } 32918 32919 _ACEOF 32920 if ac_fn_c_try_link "$LINENO"; then : 32921 32922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32923 $as_echo "yes" >&6; } 32924 tst_links_gethostbyaddr_r="yes" 32925 32926 else 32927 32928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32929 $as_echo "no" >&6; } 32930 tst_links_gethostbyaddr_r="no" 32931 32932 fi 32933 rm -f core conftest.err conftest.$ac_objext \ 32934 conftest$ac_exeext conftest.$ac_ext 32935 # 32936 if test "$tst_links_gethostbyaddr_r" = "yes"; then 32937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5 32938 $as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; } 32939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32940 /* end confdefs.h. */ 32941 32942 $curl_includes_netdb 32943 32944 _ACEOF 32945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 32946 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then : 32947 32948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32949 $as_echo "yes" >&6; } 32950 tst_proto_gethostbyaddr_r="yes" 32951 32952 else 32953 32954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32955 $as_echo "no" >&6; } 32956 tst_proto_gethostbyaddr_r="no" 32957 32958 fi 32959 rm -f conftest* 32960 32961 fi 32962 # 32963 if test "$tst_proto_gethostbyaddr_r" = "yes"; then 32964 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then 32965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5 32966 $as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; } 32967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32968 /* end confdefs.h. */ 32969 32970 32971 $curl_includes_netdb 32972 32973 int main (void) 32974 { 32975 32976 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0)) 32977 return 1; 32978 32979 ; 32980 return 0; 32981 } 32982 32983 _ACEOF 32984 if ac_fn_c_try_compile "$LINENO"; then : 32985 32986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32987 $as_echo "yes" >&6; } 32988 tst_compi_gethostbyaddr_r="yes" 32989 tst_nargs_gethostbyaddr_r="5" 32990 32991 else 32992 32993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32994 $as_echo "no" >&6; } 32995 tst_compi_gethostbyaddr_r="no" 32996 32997 fi 32998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32999 fi 33000 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then 33001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5 33002 $as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; } 33003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33004 /* end confdefs.h. */ 33005 33006 33007 $curl_includes_netdb 33008 33009 int main (void) 33010 { 33011 33012 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0)) 33013 return 1; 33014 33015 ; 33016 return 0; 33017 } 33018 33019 _ACEOF 33020 if ac_fn_c_try_compile "$LINENO"; then : 33021 33022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33023 $as_echo "yes" >&6; } 33024 tst_compi_gethostbyaddr_r="yes" 33025 tst_nargs_gethostbyaddr_r="7" 33026 33027 else 33028 33029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33030 $as_echo "no" >&6; } 33031 tst_compi_gethostbyaddr_r="no" 33032 33033 fi 33034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33035 fi 33036 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then 33037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5 33038 $as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; } 33039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33040 /* end confdefs.h. */ 33041 33042 33043 $curl_includes_netdb 33044 33045 int main (void) 33046 { 33047 33048 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0)) 33049 return 1; 33050 33051 ; 33052 return 0; 33053 } 33054 33055 _ACEOF 33056 if ac_fn_c_try_compile "$LINENO"; then : 33057 33058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33059 $as_echo "yes" >&6; } 33060 tst_compi_gethostbyaddr_r="yes" 33061 tst_nargs_gethostbyaddr_r="8" 33062 33063 else 33064 33065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33066 $as_echo "no" >&6; } 33067 tst_compi_gethostbyaddr_r="no" 33068 33069 fi 33070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33071 fi 33072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5 33073 $as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; } 33074 if test "$tst_compi_gethostbyaddr_r" = "yes"; then 33075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33076 $as_echo "yes" >&6; } 33077 else 33078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33079 $as_echo "no" >&6; } 33080 fi 33081 fi 33082 # 33083 if test "$tst_compi_gethostbyaddr_r" = "yes"; then 33084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5 33085 $as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; } 33086 if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then 33087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33088 $as_echo "yes" >&6; } 33089 tst_allow_gethostbyaddr_r="yes" 33090 else 33091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33092 $as_echo "no" >&6; } 33093 tst_allow_gethostbyaddr_r="no" 33094 fi 33095 fi 33096 # 33097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5 33098 $as_echo_n "checking if gethostbyaddr_r might be used... " >&6; } 33099 if test "$tst_links_gethostbyaddr_r" = "yes" && 33100 test "$tst_proto_gethostbyaddr_r" = "yes" && 33101 test "$tst_compi_gethostbyaddr_r" = "yes" && 33102 test "$tst_allow_gethostbyaddr_r" = "yes"; then 33103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33104 $as_echo "yes" >&6; } 33105 33106 cat >>confdefs.h <<_ACEOF 33107 #define HAVE_GETHOSTBYADDR_R 1 33108 _ACEOF 33109 33110 # 33111 if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then 33112 33113 $as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h 33114 33115 elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then 33116 33117 $as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h 33118 33119 elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then 33120 33121 $as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h 33122 33123 fi 33124 # 33125 curl_cv_func_gethostbyaddr_r="yes" 33126 else 33127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33128 $as_echo "no" >&6; } 33129 curl_cv_func_gethostbyaddr_r="no" 33130 fi 33131 33132 33133 # 33134 tst_links_gethostbyname="unknown" 33135 tst_proto_gethostbyname="unknown" 33136 tst_compi_gethostbyname="unknown" 33137 tst_allow_gethostbyname="unknown" 33138 # 33139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5 33140 $as_echo_n "checking if gethostbyname can be linked... " >&6; } 33141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33142 /* end confdefs.h. */ 33143 33144 33145 $curl_includes_winsock2 33146 $curl_includes_bsdsocket 33147 $curl_includes_netdb 33148 33149 int main (void) 33150 { 33151 33152 if(0 != gethostbyname(0)) 33153 return 1; 33154 33155 ; 33156 return 0; 33157 } 33158 33159 _ACEOF 33160 if ac_fn_c_try_link "$LINENO"; then : 33161 33162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33163 $as_echo "yes" >&6; } 33164 tst_links_gethostbyname="yes" 33165 33166 else 33167 33168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33169 $as_echo "no" >&6; } 33170 tst_links_gethostbyname="no" 33171 33172 fi 33173 rm -f core conftest.err conftest.$ac_objext \ 33174 conftest$ac_exeext conftest.$ac_ext 33175 # 33176 if test "$tst_links_gethostbyname" = "yes"; then 33177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5 33178 $as_echo_n "checking if gethostbyname is prototyped... " >&6; } 33179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33180 /* end confdefs.h. */ 33181 33182 $curl_includes_winsock2 33183 $curl_includes_bsdsocket 33184 $curl_includes_netdb 33185 33186 _ACEOF 33187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 33188 $EGREP "gethostbyname" >/dev/null 2>&1; then : 33189 33190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33191 $as_echo "yes" >&6; } 33192 tst_proto_gethostbyname="yes" 33193 33194 else 33195 33196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33197 $as_echo "no" >&6; } 33198 tst_proto_gethostbyname="no" 33199 33200 fi 33201 rm -f conftest* 33202 33203 fi 33204 # 33205 if test "$tst_proto_gethostbyname" = "yes"; then 33206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5 33207 $as_echo_n "checking if gethostbyname is compilable... " >&6; } 33208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33209 /* end confdefs.h. */ 33210 33211 33212 $curl_includes_winsock2 33213 $curl_includes_bsdsocket 33214 $curl_includes_netdb 33215 33216 int main (void) 33217 { 33218 33219 if(0 != gethostbyname(0)) 33220 return 1; 33221 33222 ; 33223 return 0; 33224 } 33225 33226 _ACEOF 33227 if ac_fn_c_try_compile "$LINENO"; then : 33228 33229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33230 $as_echo "yes" >&6; } 33231 tst_compi_gethostbyname="yes" 33232 33233 else 33234 33235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33236 $as_echo "no" >&6; } 33237 tst_compi_gethostbyname="no" 33238 33239 fi 33240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33241 fi 33242 # 33243 if test "$tst_compi_gethostbyname" = "yes"; then 33244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5 33245 $as_echo_n "checking if gethostbyname usage allowed... " >&6; } 33246 if test "x$curl_disallow_gethostbyname" != "xyes"; then 33247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33248 $as_echo "yes" >&6; } 33249 tst_allow_gethostbyname="yes" 33250 else 33251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33252 $as_echo "no" >&6; } 33253 tst_allow_gethostbyname="no" 33254 fi 33255 fi 33256 # 33257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5 33258 $as_echo_n "checking if gethostbyname might be used... " >&6; } 33259 if test "$tst_links_gethostbyname" = "yes" && 33260 test "$tst_proto_gethostbyname" = "yes" && 33261 test "$tst_compi_gethostbyname" = "yes" && 33262 test "$tst_allow_gethostbyname" = "yes"; then 33263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33264 $as_echo "yes" >&6; } 33265 33266 cat >>confdefs.h <<_ACEOF 33267 #define HAVE_GETHOSTBYNAME 1 33268 _ACEOF 33269 33270 curl_cv_func_gethostbyname="yes" 33271 else 33272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33273 $as_echo "no" >&6; } 33274 curl_cv_func_gethostbyname="no" 33275 fi 33276 33277 33278 # 33279 tst_links_gethostbyname_r="unknown" 33280 tst_proto_gethostbyname_r="unknown" 33281 tst_compi_gethostbyname_r="unknown" 33282 tst_allow_gethostbyname_r="unknown" 33283 tst_nargs_gethostbyname_r="unknown" 33284 # 33285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5 33286 $as_echo_n "checking if gethostbyname_r can be linked... " >&6; } 33287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33288 /* end confdefs.h. */ 33289 33290 33291 #define gethostbyname_r innocuous_gethostbyname_r 33292 #ifdef __STDC__ 33293 # include <limits.h> 33294 #else 33295 # include <assert.h> 33296 #endif 33297 #undef gethostbyname_r 33298 #ifdef __cplusplus 33299 extern "C" 33300 #endif 33301 char gethostbyname_r (); 33302 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r 33303 choke me 33304 #endif 33305 33306 int main (void) 33307 { 33308 return gethostbyname_r (); 33309 ; 33310 return 0; 33311 } 33312 33313 _ACEOF 33314 if ac_fn_c_try_link "$LINENO"; then : 33315 33316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33317 $as_echo "yes" >&6; } 33318 tst_links_gethostbyname_r="yes" 33319 33320 else 33321 33322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33323 $as_echo "no" >&6; } 33324 tst_links_gethostbyname_r="no" 33325 33326 fi 33327 rm -f core conftest.err conftest.$ac_objext \ 33328 conftest$ac_exeext conftest.$ac_ext 33329 # 33330 if test "$tst_links_gethostbyname_r" = "yes"; then 33331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5 33332 $as_echo_n "checking if gethostbyname_r is prototyped... " >&6; } 33333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33334 /* end confdefs.h. */ 33335 33336 $curl_includes_netdb 33337 33338 _ACEOF 33339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 33340 $EGREP "gethostbyname_r" >/dev/null 2>&1; then : 33341 33342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33343 $as_echo "yes" >&6; } 33344 tst_proto_gethostbyname_r="yes" 33345 33346 else 33347 33348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33349 $as_echo "no" >&6; } 33350 tst_proto_gethostbyname_r="no" 33351 33352 fi 33353 rm -f conftest* 33354 33355 fi 33356 # 33357 if test "$tst_proto_gethostbyname_r" = "yes"; then 33358 if test "$tst_nargs_gethostbyname_r" = "unknown"; then 33359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5 33360 $as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; } 33361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33362 /* end confdefs.h. */ 33363 33364 33365 $curl_includes_netdb 33366 33367 int main (void) 33368 { 33369 33370 if(0 != gethostbyname_r(0, 0, 0)) 33371 return 1; 33372 33373 ; 33374 return 0; 33375 } 33376 33377 _ACEOF 33378 if ac_fn_c_try_compile "$LINENO"; then : 33379 33380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33381 $as_echo "yes" >&6; } 33382 tst_compi_gethostbyname_r="yes" 33383 tst_nargs_gethostbyname_r="3" 33384 33385 else 33386 33387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33388 $as_echo "no" >&6; } 33389 tst_compi_gethostbyname_r="no" 33390 33391 fi 33392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33393 fi 33394 if test "$tst_nargs_gethostbyname_r" = "unknown"; then 33395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5 33396 $as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; } 33397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33398 /* end confdefs.h. */ 33399 33400 33401 $curl_includes_netdb 33402 33403 int main (void) 33404 { 33405 33406 if(0 != gethostbyname_r(0, 0, 0, 0, 0)) 33407 return 1; 33408 33409 ; 33410 return 0; 33411 } 33412 33413 _ACEOF 33414 if ac_fn_c_try_compile "$LINENO"; then : 33415 33416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33417 $as_echo "yes" >&6; } 33418 tst_compi_gethostbyname_r="yes" 33419 tst_nargs_gethostbyname_r="5" 33420 33421 else 33422 33423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33424 $as_echo "no" >&6; } 33425 tst_compi_gethostbyname_r="no" 33426 33427 fi 33428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33429 fi 33430 if test "$tst_nargs_gethostbyname_r" = "unknown"; then 33431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5 33432 $as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; } 33433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33434 /* end confdefs.h. */ 33435 33436 33437 $curl_includes_netdb 33438 33439 int main (void) 33440 { 33441 33442 if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0)) 33443 return 1; 33444 33445 ; 33446 return 0; 33447 } 33448 33449 _ACEOF 33450 if ac_fn_c_try_compile "$LINENO"; then : 33451 33452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33453 $as_echo "yes" >&6; } 33454 tst_compi_gethostbyname_r="yes" 33455 tst_nargs_gethostbyname_r="6" 33456 33457 else 33458 33459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33460 $as_echo "no" >&6; } 33461 tst_compi_gethostbyname_r="no" 33462 33463 fi 33464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33465 fi 33466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5 33467 $as_echo_n "checking if gethostbyname_r is compilable... " >&6; } 33468 if test "$tst_compi_gethostbyname_r" = "yes"; then 33469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33470 $as_echo "yes" >&6; } 33471 else 33472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33473 $as_echo "no" >&6; } 33474 fi 33475 fi 33476 # 33477 if test "$tst_compi_gethostbyname_r" = "yes"; then 33478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5 33479 $as_echo_n "checking if gethostbyname_r usage allowed... " >&6; } 33480 if test "x$curl_disallow_gethostbyname_r" != "xyes"; then 33481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33482 $as_echo "yes" >&6; } 33483 tst_allow_gethostbyname_r="yes" 33484 else 33485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33486 $as_echo "no" >&6; } 33487 tst_allow_gethostbyname_r="no" 33488 fi 33489 fi 33490 # 33491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5 33492 $as_echo_n "checking if gethostbyname_r might be used... " >&6; } 33493 if test "$tst_links_gethostbyname_r" = "yes" && 33494 test "$tst_proto_gethostbyname_r" = "yes" && 33495 test "$tst_compi_gethostbyname_r" = "yes" && 33496 test "$tst_allow_gethostbyname_r" = "yes"; then 33497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33498 $as_echo "yes" >&6; } 33499 33500 cat >>confdefs.h <<_ACEOF 33501 #define HAVE_GETHOSTBYNAME_R 1 33502 _ACEOF 33503 33504 # 33505 if test "$tst_nargs_gethostbyname_r" -eq "3"; then 33506 33507 $as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h 33508 33509 elif test "$tst_nargs_gethostbyname_r" -eq "5"; then 33510 33511 $as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h 33512 33513 elif test "$tst_nargs_gethostbyname_r" -eq "6"; then 33514 33515 $as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h 33516 33517 fi 33518 # 33519 curl_cv_func_gethostbyname_r="yes" 33520 else 33521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33522 $as_echo "no" >&6; } 33523 curl_cv_func_gethostbyname_r="no" 33524 fi 33525 33526 33527 curl_preprocess_callconv="\ 33528 /* preprocess start */ 33529 #ifdef HAVE_WINDOWS_H 33530 # define FUNCALLCONV __stdcall 33531 #else 33532 # define FUNCALLCONV 33533 #endif 33534 /* preprocess end */" 33535 33536 33537 # 33538 tst_links_gethostname="unknown" 33539 tst_proto_gethostname="unknown" 33540 tst_compi_gethostname="unknown" 33541 tst_allow_gethostname="unknown" 33542 # 33543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5 33544 $as_echo_n "checking if gethostname can be linked... " >&6; } 33545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33546 /* end confdefs.h. */ 33547 33548 33549 $curl_includes_winsock2 33550 $curl_includes_bsdsocket 33551 $curl_includes_unistd 33552 33553 int main (void) 33554 { 33555 33556 if(0 != gethostname(0, 0)) 33557 return 1; 33558 33559 ; 33560 return 0; 33561 } 33562 33563 _ACEOF 33564 if ac_fn_c_try_link "$LINENO"; then : 33565 33566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33567 $as_echo "yes" >&6; } 33568 tst_links_gethostname="yes" 33569 33570 else 33571 33572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33573 $as_echo "no" >&6; } 33574 tst_links_gethostname="no" 33575 33576 fi 33577 rm -f core conftest.err conftest.$ac_objext \ 33578 conftest$ac_exeext conftest.$ac_ext 33579 # 33580 if test "$tst_links_gethostname" = "yes"; then 33581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5 33582 $as_echo_n "checking if gethostname is prototyped... " >&6; } 33583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33584 /* end confdefs.h. */ 33585 33586 $curl_includes_winsock2 33587 $curl_includes_bsdsocket 33588 $curl_includes_unistd 33589 33590 _ACEOF 33591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 33592 $EGREP "gethostname" >/dev/null 2>&1; then : 33593 33594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33595 $as_echo "yes" >&6; } 33596 tst_proto_gethostname="yes" 33597 33598 else 33599 33600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33601 $as_echo "no" >&6; } 33602 tst_proto_gethostname="no" 33603 33604 fi 33605 rm -f conftest* 33606 33607 fi 33608 # 33609 if test "$tst_proto_gethostname" = "yes"; then 33610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5 33611 $as_echo_n "checking if gethostname is compilable... " >&6; } 33612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33613 /* end confdefs.h. */ 33614 33615 33616 $curl_includes_winsock2 33617 $curl_includes_bsdsocket 33618 $curl_includes_unistd 33619 33620 int main (void) 33621 { 33622 33623 if(0 != gethostname(0, 0)) 33624 return 1; 33625 33626 ; 33627 return 0; 33628 } 33629 33630 _ACEOF 33631 if ac_fn_c_try_compile "$LINENO"; then : 33632 33633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33634 $as_echo "yes" >&6; } 33635 tst_compi_gethostname="yes" 33636 33637 else 33638 33639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33640 $as_echo "no" >&6; } 33641 tst_compi_gethostname="no" 33642 33643 fi 33644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33645 fi 33646 # 33647 if test "$tst_compi_gethostname" = "yes"; then 33648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5 33649 $as_echo_n "checking for gethostname arg 2 data type... " >&6; } 33650 tst_gethostname_type_arg2="unknown" 33651 for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do 33652 for tst_arg2 in 'int' 'unsigned int' 'size_t'; do 33653 if test "$tst_gethostname_type_arg2" = "unknown"; then 33654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33655 /* end confdefs.h. */ 33656 33657 33658 $curl_includes_winsock2 33659 $curl_includes_bsdsocket 33660 $curl_includes_unistd 33661 $curl_preprocess_callconv 33662 extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2); 33663 33664 int main (void) 33665 { 33666 33667 if(0 != gethostname(0, 0)) 33668 return 1; 33669 33670 ; 33671 return 0; 33672 } 33673 33674 _ACEOF 33675 if ac_fn_c_try_compile "$LINENO"; then : 33676 33677 tst_gethostname_type_arg2="$tst_arg2" 33678 33679 fi 33680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33681 fi 33682 done 33683 done 33684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5 33685 $as_echo "$tst_gethostname_type_arg2" >&6; } 33686 if test "$tst_gethostname_type_arg2" != "unknown"; then 33687 33688 cat >>confdefs.h <<_ACEOF 33689 #define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2 33690 _ACEOF 33691 33692 fi 33693 fi 33694 # 33695 if test "$tst_compi_gethostname" = "yes"; then 33696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5 33697 $as_echo_n "checking if gethostname usage allowed... " >&6; } 33698 if test "x$curl_disallow_gethostname" != "xyes"; then 33699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33700 $as_echo "yes" >&6; } 33701 tst_allow_gethostname="yes" 33702 else 33703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33704 $as_echo "no" >&6; } 33705 tst_allow_gethostname="no" 33706 fi 33707 fi 33708 # 33709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5 33710 $as_echo_n "checking if gethostname might be used... " >&6; } 33711 if test "$tst_links_gethostname" = "yes" && 33712 test "$tst_proto_gethostname" = "yes" && 33713 test "$tst_compi_gethostname" = "yes" && 33714 test "$tst_allow_gethostname" = "yes"; then 33715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33716 $as_echo "yes" >&6; } 33717 33718 cat >>confdefs.h <<_ACEOF 33719 #define HAVE_GETHOSTNAME 1 33720 _ACEOF 33721 33722 curl_cv_func_gethostname="yes" 33723 else 33724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33725 $as_echo "no" >&6; } 33726 curl_cv_func_gethostname="no" 33727 fi 33728 33729 33730 # 33731 tst_links_getifaddrs="unknown" 33732 tst_proto_getifaddrs="unknown" 33733 tst_compi_getifaddrs="unknown" 33734 tst_works_getifaddrs="unknown" 33735 tst_allow_getifaddrs="unknown" 33736 # 33737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5 33738 $as_echo_n "checking if getifaddrs can be linked... " >&6; } 33739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33740 /* end confdefs.h. */ 33741 33742 33743 #define getifaddrs innocuous_getifaddrs 33744 #ifdef __STDC__ 33745 # include <limits.h> 33746 #else 33747 # include <assert.h> 33748 #endif 33749 #undef getifaddrs 33750 #ifdef __cplusplus 33751 extern "C" 33752 #endif 33753 char getifaddrs (); 33754 #if defined __stub_getifaddrs || defined __stub___getifaddrs 33755 choke me 33756 #endif 33757 33758 int main (void) 33759 { 33760 return getifaddrs (); 33761 ; 33762 return 0; 33763 } 33764 33765 _ACEOF 33766 if ac_fn_c_try_link "$LINENO"; then : 33767 33768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33769 $as_echo "yes" >&6; } 33770 tst_links_getifaddrs="yes" 33771 33772 else 33773 33774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33775 $as_echo "no" >&6; } 33776 tst_links_getifaddrs="no" 33777 33778 fi 33779 rm -f core conftest.err conftest.$ac_objext \ 33780 conftest$ac_exeext conftest.$ac_ext 33781 # 33782 if test "$tst_links_getifaddrs" = "yes"; then 33783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5 33784 $as_echo_n "checking if getifaddrs is prototyped... " >&6; } 33785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33786 /* end confdefs.h. */ 33787 33788 $curl_includes_ifaddrs 33789 33790 _ACEOF 33791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 33792 $EGREP "getifaddrs" >/dev/null 2>&1; then : 33793 33794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33795 $as_echo "yes" >&6; } 33796 tst_proto_getifaddrs="yes" 33797 33798 else 33799 33800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33801 $as_echo "no" >&6; } 33802 tst_proto_getifaddrs="no" 33803 33804 fi 33805 rm -f conftest* 33806 33807 fi 33808 # 33809 if test "$tst_proto_getifaddrs" = "yes"; then 33810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5 33811 $as_echo_n "checking if getifaddrs is compilable... " >&6; } 33812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33813 /* end confdefs.h. */ 33814 33815 33816 $curl_includes_ifaddrs 33817 33818 int main (void) 33819 { 33820 33821 if(0 != getifaddrs(0)) 33822 return 1; 33823 33824 ; 33825 return 0; 33826 } 33827 33828 _ACEOF 33829 if ac_fn_c_try_compile "$LINENO"; then : 33830 33831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33832 $as_echo "yes" >&6; } 33833 tst_compi_getifaddrs="yes" 33834 33835 else 33836 33837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33838 $as_echo "no" >&6; } 33839 tst_compi_getifaddrs="no" 33840 33841 fi 33842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33843 fi 33844 # 33845 if test "x$cross_compiling" != "xyes" && 33846 test "$tst_compi_getifaddrs" = "yes"; then 33847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5 33848 $as_echo_n "checking if getifaddrs seems to work... " >&6; } 33849 33850 33851 old=$LD_LIBRARY_PATH 33852 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 33853 export LD_LIBRARY_PATH 33854 if test "$cross_compiling" = yes; then : 33855 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 33856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 33857 as_fn_error $? "cannot run test program while cross compiling 33858 See \`config.log' for more details" "$LINENO" 5; } 33859 else 33860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33861 /* end confdefs.h. */ 33862 33863 33864 $curl_includes_stdlib 33865 $curl_includes_ifaddrs 33866 33867 int main (void) 33868 { 33869 33870 struct ifaddrs *ifa = 0; 33871 int error; 33872 33873 error = getifaddrs(&ifa); 33874 if(error || !ifa) 33875 exit(1); /* fail */ 33876 else 33877 exit(0); 33878 33879 ; 33880 return 0; 33881 } 33882 33883 _ACEOF 33884 if ac_fn_c_try_run "$LINENO"; then : 33885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33886 $as_echo "yes" >&6; } 33887 tst_works_getifaddrs="yes" 33888 33889 else 33890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33891 $as_echo "no" >&6; } 33892 tst_works_getifaddrs="no" 33893 33894 fi 33895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 33896 conftest.$ac_objext conftest.beam conftest.$ac_ext 33897 fi 33898 33899 LD_LIBRARY_PATH=$old # restore 33900 33901 fi 33902 # 33903 if test "$tst_compi_getifaddrs" = "yes" && 33904 test "$tst_works_getifaddrs" != "no"; then 33905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5 33906 $as_echo_n "checking if getifaddrs usage allowed... " >&6; } 33907 if test "x$curl_disallow_getifaddrs" != "xyes"; then 33908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33909 $as_echo "yes" >&6; } 33910 tst_allow_getifaddrs="yes" 33911 else 33912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33913 $as_echo "no" >&6; } 33914 tst_allow_getifaddrs="no" 33915 fi 33916 fi 33917 # 33918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5 33919 $as_echo_n "checking if getifaddrs might be used... " >&6; } 33920 if test "$tst_links_getifaddrs" = "yes" && 33921 test "$tst_proto_getifaddrs" = "yes" && 33922 test "$tst_compi_getifaddrs" = "yes" && 33923 test "$tst_allow_getifaddrs" = "yes" && 33924 test "$tst_works_getifaddrs" != "no"; then 33925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33926 $as_echo "yes" >&6; } 33927 33928 cat >>confdefs.h <<_ACEOF 33929 #define HAVE_GETIFADDRS 1 33930 _ACEOF 33931 33932 curl_cv_func_getifaddrs="yes" 33933 else 33934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33935 $as_echo "no" >&6; } 33936 curl_cv_func_getifaddrs="no" 33937 fi 33938 33939 33940 # 33941 tst_links_getservbyport_r="unknown" 33942 tst_proto_getservbyport_r="unknown" 33943 tst_compi_getservbyport_r="unknown" 33944 tst_allow_getservbyport_r="unknown" 33945 tst_nargs_getservbyport_r="unknown" 33946 # 33947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5 33948 $as_echo_n "checking if getservbyport_r can be linked... " >&6; } 33949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33950 /* end confdefs.h. */ 33951 33952 33953 #define getservbyport_r innocuous_getservbyport_r 33954 #ifdef __STDC__ 33955 # include <limits.h> 33956 #else 33957 # include <assert.h> 33958 #endif 33959 #undef getservbyport_r 33960 #ifdef __cplusplus 33961 extern "C" 33962 #endif 33963 char getservbyport_r (); 33964 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r 33965 choke me 33966 #endif 33967 33968 int main (void) 33969 { 33970 return getservbyport_r (); 33971 ; 33972 return 0; 33973 } 33974 33975 _ACEOF 33976 if ac_fn_c_try_link "$LINENO"; then : 33977 33978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33979 $as_echo "yes" >&6; } 33980 tst_links_getservbyport_r="yes" 33981 33982 else 33983 33984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33985 $as_echo "no" >&6; } 33986 tst_links_getservbyport_r="no" 33987 33988 fi 33989 rm -f core conftest.err conftest.$ac_objext \ 33990 conftest$ac_exeext conftest.$ac_ext 33991 # 33992 if test "$tst_links_getservbyport_r" = "yes"; then 33993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5 33994 $as_echo_n "checking if getservbyport_r is prototyped... " >&6; } 33995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33996 /* end confdefs.h. */ 33997 33998 $curl_includes_netdb 33999 34000 _ACEOF 34001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 34002 $EGREP "getservbyport_r" >/dev/null 2>&1; then : 34003 34004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34005 $as_echo "yes" >&6; } 34006 tst_proto_getservbyport_r="yes" 34007 34008 else 34009 34010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34011 $as_echo "no" >&6; } 34012 tst_proto_getservbyport_r="no" 34013 34014 fi 34015 rm -f conftest* 34016 34017 fi 34018 # 34019 if test "$tst_proto_getservbyport_r" = "yes"; then 34020 if test "$tst_nargs_getservbyport_r" = "unknown"; then 34021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5 34022 $as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; } 34023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34024 /* end confdefs.h. */ 34025 34026 34027 $curl_includes_netdb 34028 34029 int main (void) 34030 { 34031 34032 if(0 != getservbyport_r(0, 0, 0, 0)) 34033 return 1; 34034 34035 ; 34036 return 0; 34037 } 34038 34039 _ACEOF 34040 if ac_fn_c_try_compile "$LINENO"; then : 34041 34042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34043 $as_echo "yes" >&6; } 34044 tst_compi_getservbyport_r="yes" 34045 tst_nargs_getservbyport_r="4" 34046 34047 else 34048 34049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34050 $as_echo "no" >&6; } 34051 tst_compi_getservbyport_r="no" 34052 34053 fi 34054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34055 fi 34056 if test "$tst_nargs_getservbyport_r" = "unknown"; then 34057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5 34058 $as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; } 34059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34060 /* end confdefs.h. */ 34061 34062 34063 $curl_includes_netdb 34064 34065 int main (void) 34066 { 34067 34068 if(0 != getservbyport_r(0, 0, 0, 0, 0)) 34069 return 1; 34070 34071 ; 34072 return 0; 34073 } 34074 34075 _ACEOF 34076 if ac_fn_c_try_compile "$LINENO"; then : 34077 34078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34079 $as_echo "yes" >&6; } 34080 tst_compi_getservbyport_r="yes" 34081 tst_nargs_getservbyport_r="5" 34082 34083 else 34084 34085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34086 $as_echo "no" >&6; } 34087 tst_compi_getservbyport_r="no" 34088 34089 fi 34090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34091 fi 34092 if test "$tst_nargs_getservbyport_r" = "unknown"; then 34093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5 34094 $as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; } 34095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34096 /* end confdefs.h. */ 34097 34098 34099 $curl_includes_netdb 34100 34101 int main (void) 34102 { 34103 34104 if(0 != getservbyport_r(0, 0, 0, 0, 0, 0)) 34105 return 1; 34106 34107 ; 34108 return 0; 34109 } 34110 34111 _ACEOF 34112 if ac_fn_c_try_compile "$LINENO"; then : 34113 34114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34115 $as_echo "yes" >&6; } 34116 tst_compi_getservbyport_r="yes" 34117 tst_nargs_getservbyport_r="6" 34118 34119 else 34120 34121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34122 $as_echo "no" >&6; } 34123 tst_compi_getservbyport_r="no" 34124 34125 fi 34126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34127 fi 34128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5 34129 $as_echo_n "checking if getservbyport_r is compilable... " >&6; } 34130 if test "$tst_compi_getservbyport_r" = "yes"; then 34131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34132 $as_echo "yes" >&6; } 34133 else 34134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34135 $as_echo "no" >&6; } 34136 fi 34137 fi 34138 # 34139 if test "$tst_compi_getservbyport_r" = "yes"; then 34140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5 34141 $as_echo_n "checking if getservbyport_r usage allowed... " >&6; } 34142 if test "x$curl_disallow_getservbyport_r" != "xyes"; then 34143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34144 $as_echo "yes" >&6; } 34145 tst_allow_getservbyport_r="yes" 34146 else 34147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34148 $as_echo "no" >&6; } 34149 tst_allow_getservbyport_r="no" 34150 fi 34151 fi 34152 # 34153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5 34154 $as_echo_n "checking if getservbyport_r might be used... " >&6; } 34155 if test "$tst_links_getservbyport_r" = "yes" && 34156 test "$tst_proto_getservbyport_r" = "yes" && 34157 test "$tst_compi_getservbyport_r" = "yes" && 34158 test "$tst_allow_getservbyport_r" = "yes"; then 34159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34160 $as_echo "yes" >&6; } 34161 34162 cat >>confdefs.h <<_ACEOF 34163 #define HAVE_GETSERVBYPORT_R 1 34164 _ACEOF 34165 34166 34167 cat >>confdefs.h <<_ACEOF 34168 #define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r 34169 _ACEOF 34170 34171 if test "$tst_nargs_getservbyport_r" -eq "4"; then 34172 34173 $as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h 34174 34175 else 34176 34177 $as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h 34178 34179 fi 34180 curl_cv_func_getservbyport_r="yes" 34181 else 34182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34183 $as_echo "no" >&6; } 34184 curl_cv_func_getservbyport_r="no" 34185 fi 34186 34187 34188 curl_includes_time="\ 34189 /* includes start */ 34190 #ifdef HAVE_SYS_TYPES_H 34191 # include <sys/types.h> 34192 #endif 34193 #ifdef HAVE_SYS_TIME_H 34194 # include <sys/time.h> 34195 # ifdef TIME_WITH_SYS_TIME 34196 # include <time.h> 34197 # endif 34198 #else 34199 # ifdef HAVE_TIME_H 34200 # include <time.h> 34201 # endif 34202 #endif 34203 /* includes end */" 34204 for ac_header in sys/types.h sys/time.h time.h 34205 do : 34206 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 34207 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time 34208 " 34209 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 34210 cat >>confdefs.h <<_ACEOF 34211 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 34212 _ACEOF 34213 34214 fi 34215 34216 done 34217 34218 34219 34220 # 34221 tst_links_gmtime_r="unknown" 34222 tst_proto_gmtime_r="unknown" 34223 tst_compi_gmtime_r="unknown" 34224 tst_works_gmtime_r="unknown" 34225 tst_allow_gmtime_r="unknown" 34226 # 34227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5 34228 $as_echo_n "checking if gmtime_r can be linked... " >&6; } 34229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34230 /* end confdefs.h. */ 34231 34232 34233 #define gmtime_r innocuous_gmtime_r 34234 #ifdef __STDC__ 34235 # include <limits.h> 34236 #else 34237 # include <assert.h> 34238 #endif 34239 #undef gmtime_r 34240 #ifdef __cplusplus 34241 extern "C" 34242 #endif 34243 char gmtime_r (); 34244 #if defined __stub_gmtime_r || defined __stub___gmtime_r 34245 choke me 34246 #endif 34247 34248 int main (void) 34249 { 34250 return gmtime_r (); 34251 ; 34252 return 0; 34253 } 34254 34255 _ACEOF 34256 if ac_fn_c_try_link "$LINENO"; then : 34257 34258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34259 $as_echo "yes" >&6; } 34260 tst_links_gmtime_r="yes" 34261 34262 else 34263 34264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34265 $as_echo "no" >&6; } 34266 tst_links_gmtime_r="no" 34267 34268 fi 34269 rm -f core conftest.err conftest.$ac_objext \ 34270 conftest$ac_exeext conftest.$ac_ext 34271 # 34272 if test "$tst_links_gmtime_r" = "yes"; then 34273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5 34274 $as_echo_n "checking if gmtime_r is prototyped... " >&6; } 34275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34276 /* end confdefs.h. */ 34277 34278 $curl_includes_time 34279 34280 _ACEOF 34281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 34282 $EGREP "gmtime_r" >/dev/null 2>&1; then : 34283 34284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34285 $as_echo "yes" >&6; } 34286 tst_proto_gmtime_r="yes" 34287 34288 else 34289 34290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34291 $as_echo "no" >&6; } 34292 tst_proto_gmtime_r="no" 34293 34294 fi 34295 rm -f conftest* 34296 34297 fi 34298 # 34299 if test "$tst_proto_gmtime_r" = "yes"; then 34300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5 34301 $as_echo_n "checking if gmtime_r is compilable... " >&6; } 34302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34303 /* end confdefs.h. */ 34304 34305 34306 $curl_includes_time 34307 34308 int main (void) 34309 { 34310 34311 if(0 != gmtime_r(0, 0)) 34312 return 1; 34313 34314 ; 34315 return 0; 34316 } 34317 34318 _ACEOF 34319 if ac_fn_c_try_compile "$LINENO"; then : 34320 34321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34322 $as_echo "yes" >&6; } 34323 tst_compi_gmtime_r="yes" 34324 34325 else 34326 34327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34328 $as_echo "no" >&6; } 34329 tst_compi_gmtime_r="no" 34330 34331 fi 34332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34333 fi 34334 # 34335 if test "x$cross_compiling" != "xyes" && 34336 test "$tst_compi_gmtime_r" = "yes"; then 34337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5 34338 $as_echo_n "checking if gmtime_r seems to work... " >&6; } 34339 34340 34341 old=$LD_LIBRARY_PATH 34342 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 34343 export LD_LIBRARY_PATH 34344 if test "$cross_compiling" = yes; then : 34345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34347 as_fn_error $? "cannot run test program while cross compiling 34348 See \`config.log' for more details" "$LINENO" 5; } 34349 else 34350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34351 /* end confdefs.h. */ 34352 34353 34354 $curl_includes_stdlib 34355 $curl_includes_time 34356 34357 int main (void) 34358 { 34359 34360 time_t local = 1170352587; 34361 struct tm *gmt = 0; 34362 struct tm result; 34363 gmt = gmtime_r(&local, &result); 34364 if(gmt) 34365 exit(0); 34366 else 34367 exit(1); 34368 34369 ; 34370 return 0; 34371 } 34372 34373 _ACEOF 34374 if ac_fn_c_try_run "$LINENO"; then : 34375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34376 $as_echo "yes" >&6; } 34377 tst_works_gmtime_r="yes" 34378 34379 else 34380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34381 $as_echo "no" >&6; } 34382 tst_works_gmtime_r="no" 34383 34384 fi 34385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 34386 conftest.$ac_objext conftest.beam conftest.$ac_ext 34387 fi 34388 34389 LD_LIBRARY_PATH=$old # restore 34390 34391 fi 34392 # 34393 if test "$tst_compi_gmtime_r" = "yes" && 34394 test "$tst_works_gmtime_r" != "no"; then 34395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5 34396 $as_echo_n "checking if gmtime_r usage allowed... " >&6; } 34397 if test "x$curl_disallow_gmtime_r" != "xyes"; then 34398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34399 $as_echo "yes" >&6; } 34400 tst_allow_gmtime_r="yes" 34401 else 34402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34403 $as_echo "no" >&6; } 34404 tst_allow_gmtime_r="no" 34405 fi 34406 fi 34407 # 34408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5 34409 $as_echo_n "checking if gmtime_r might be used... " >&6; } 34410 if test "$tst_links_gmtime_r" = "yes" && 34411 test "$tst_proto_gmtime_r" = "yes" && 34412 test "$tst_compi_gmtime_r" = "yes" && 34413 test "$tst_allow_gmtime_r" = "yes" && 34414 test "$tst_works_gmtime_r" != "no"; then 34415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34416 $as_echo "yes" >&6; } 34417 34418 cat >>confdefs.h <<_ACEOF 34419 #define HAVE_GMTIME_R 1 34420 _ACEOF 34421 34422 curl_cv_func_gmtime_r="yes" 34423 else 34424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34425 $as_echo "no" >&6; } 34426 curl_cv_func_gmtime_r="no" 34427 fi 34428 34429 34430 curl_includes_arpa_inet="\ 34431 /* includes start */ 34432 #ifdef HAVE_SYS_TYPES_H 34433 # include <sys/types.h> 34434 #endif 34435 #ifdef HAVE_SYS_SOCKET_H 34436 # include <sys/socket.h> 34437 #endif 34438 #ifdef HAVE_NETINET_IN_H 34439 # include <netinet/in.h> 34440 #endif 34441 #ifdef HAVE_ARPA_INET_H 34442 # include <arpa/inet.h> 34443 #endif 34444 #ifdef HAVE_WINSOCK2_H 34445 #include <winsock2.h> 34446 #include <ws2tcpip.h> 34447 #endif 34448 /* includes end */" 34449 for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h 34450 do : 34451 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 34452 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet 34453 " 34454 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 34455 cat >>confdefs.h <<_ACEOF 34456 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 34457 _ACEOF 34458 34459 fi 34460 34461 done 34462 34463 34464 34465 # 34466 tst_links_inet_ntoa_r="unknown" 34467 tst_proto_inet_ntoa_r="unknown" 34468 tst_compi_inet_ntoa_r="unknown" 34469 tst_allow_inet_ntoa_r="unknown" 34470 tst_nargs_inet_ntoa_r="unknown" 34471 # 34472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5 34473 $as_echo_n "checking if inet_ntoa_r can be linked... " >&6; } 34474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34475 /* end confdefs.h. */ 34476 34477 34478 #define inet_ntoa_r innocuous_inet_ntoa_r 34479 #ifdef __STDC__ 34480 # include <limits.h> 34481 #else 34482 # include <assert.h> 34483 #endif 34484 #undef inet_ntoa_r 34485 #ifdef __cplusplus 34486 extern "C" 34487 #endif 34488 char inet_ntoa_r (); 34489 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r 34490 choke me 34491 #endif 34492 34493 int main (void) 34494 { 34495 return inet_ntoa_r (); 34496 ; 34497 return 0; 34498 } 34499 34500 _ACEOF 34501 if ac_fn_c_try_link "$LINENO"; then : 34502 34503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34504 $as_echo "yes" >&6; } 34505 tst_links_inet_ntoa_r="yes" 34506 34507 else 34508 34509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34510 $as_echo "no" >&6; } 34511 tst_links_inet_ntoa_r="no" 34512 34513 fi 34514 rm -f core conftest.err conftest.$ac_objext \ 34515 conftest$ac_exeext conftest.$ac_ext 34516 # 34517 if test "$tst_links_inet_ntoa_r" = "yes"; then 34518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5 34519 $as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; } 34520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34521 /* end confdefs.h. */ 34522 34523 $curl_includes_arpa_inet 34524 34525 _ACEOF 34526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 34527 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then : 34528 34529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34530 $as_echo "yes" >&6; } 34531 tst_proto_inet_ntoa_r="yes" 34532 34533 else 34534 34535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34536 $as_echo "no" >&6; } 34537 tst_proto_inet_ntoa_r="no" 34538 34539 fi 34540 rm -f conftest* 34541 34542 fi 34543 # 34544 if test "$tst_proto_inet_ntoa_r" = "yes"; then 34545 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then 34546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5 34547 $as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; } 34548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34549 /* end confdefs.h. */ 34550 34551 34552 $curl_includes_arpa_inet 34553 34554 int main (void) 34555 { 34556 34557 struct in_addr addr; 34558 if(0 != inet_ntoa_r(addr, 0)) 34559 return 1; 34560 34561 ; 34562 return 0; 34563 } 34564 34565 _ACEOF 34566 if ac_fn_c_try_compile "$LINENO"; then : 34567 34568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34569 $as_echo "yes" >&6; } 34570 tst_compi_inet_ntoa_r="yes" 34571 tst_nargs_inet_ntoa_r="2" 34572 34573 else 34574 34575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34576 $as_echo "no" >&6; } 34577 tst_compi_inet_ntoa_r="no" 34578 34579 fi 34580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34581 fi 34582 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then 34583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5 34584 $as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; } 34585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34586 /* end confdefs.h. */ 34587 34588 34589 $curl_includes_arpa_inet 34590 34591 int main (void) 34592 { 34593 34594 struct in_addr addr; 34595 if(0 != inet_ntoa_r(addr, 0, 0)) 34596 return 1; 34597 34598 ; 34599 return 0; 34600 } 34601 34602 _ACEOF 34603 if ac_fn_c_try_compile "$LINENO"; then : 34604 34605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34606 $as_echo "yes" >&6; } 34607 tst_compi_inet_ntoa_r="yes" 34608 tst_nargs_inet_ntoa_r="3" 34609 34610 else 34611 34612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34613 $as_echo "no" >&6; } 34614 tst_compi_inet_ntoa_r="no" 34615 34616 fi 34617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34618 fi 34619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5 34620 $as_echo_n "checking if inet_ntoa_r is compilable... " >&6; } 34621 if test "$tst_compi_inet_ntoa_r" = "yes"; then 34622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34623 $as_echo "yes" >&6; } 34624 else 34625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34626 $as_echo "no" >&6; } 34627 fi 34628 fi 34629 # 34630 if test "$tst_compi_inet_ntoa_r" = "yes"; then 34631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5 34632 $as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; } 34633 if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then 34634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34635 $as_echo "yes" >&6; } 34636 tst_allow_inet_ntoa_r="yes" 34637 else 34638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34639 $as_echo "no" >&6; } 34640 tst_allow_inet_ntoa_r="no" 34641 fi 34642 fi 34643 # 34644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5 34645 $as_echo_n "checking if inet_ntoa_r might be used... " >&6; } 34646 if test "$tst_links_inet_ntoa_r" = "yes" && 34647 test "$tst_proto_inet_ntoa_r" = "yes" && 34648 test "$tst_compi_inet_ntoa_r" = "yes" && 34649 test "$tst_allow_inet_ntoa_r" = "yes"; then 34650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34651 $as_echo "yes" >&6; } 34652 34653 cat >>confdefs.h <<_ACEOF 34654 #define HAVE_INET_NTOA_R 1 34655 _ACEOF 34656 34657 # 34658 if test "$tst_nargs_inet_ntoa_r" -eq "2"; then 34659 34660 $as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h 34661 34662 elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then 34663 34664 $as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h 34665 34666 fi 34667 # 34668 curl_cv_func_inet_ntoa_r="yes" 34669 else 34670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34671 $as_echo "no" >&6; } 34672 curl_cv_func_inet_ntoa_r="no" 34673 fi 34674 34675 34676 # 34677 tst_links_inet_ntop="unknown" 34678 tst_proto_inet_ntop="unknown" 34679 tst_compi_inet_ntop="unknown" 34680 tst_works_inet_ntop="unknown" 34681 tst_allow_inet_ntop="unknown" 34682 # 34683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5 34684 $as_echo_n "checking if inet_ntop can be linked... " >&6; } 34685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34686 /* end confdefs.h. */ 34687 34688 34689 #define inet_ntop innocuous_inet_ntop 34690 #ifdef __STDC__ 34691 # include <limits.h> 34692 #else 34693 # include <assert.h> 34694 #endif 34695 #undef inet_ntop 34696 #ifdef __cplusplus 34697 extern "C" 34698 #endif 34699 char inet_ntop (); 34700 #if defined __stub_inet_ntop || defined __stub___inet_ntop 34701 choke me 34702 #endif 34703 34704 int main (void) 34705 { 34706 return inet_ntop (); 34707 ; 34708 return 0; 34709 } 34710 34711 _ACEOF 34712 if ac_fn_c_try_link "$LINENO"; then : 34713 34714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34715 $as_echo "yes" >&6; } 34716 tst_links_inet_ntop="yes" 34717 34718 else 34719 34720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34721 $as_echo "no" >&6; } 34722 tst_links_inet_ntop="no" 34723 34724 fi 34725 rm -f core conftest.err conftest.$ac_objext \ 34726 conftest$ac_exeext conftest.$ac_ext 34727 # 34728 if test "$tst_links_inet_ntop" = "yes"; then 34729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5 34730 $as_echo_n "checking if inet_ntop is prototyped... " >&6; } 34731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34732 /* end confdefs.h. */ 34733 34734 $curl_includes_arpa_inet 34735 34736 _ACEOF 34737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 34738 $EGREP "inet_ntop" >/dev/null 2>&1; then : 34739 34740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34741 $as_echo "yes" >&6; } 34742 tst_proto_inet_ntop="yes" 34743 34744 else 34745 34746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34747 $as_echo "no" >&6; } 34748 tst_proto_inet_ntop="no" 34749 34750 fi 34751 rm -f conftest* 34752 34753 fi 34754 # 34755 if test "$tst_proto_inet_ntop" = "yes"; then 34756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5 34757 $as_echo_n "checking if inet_ntop is compilable... " >&6; } 34758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34759 /* end confdefs.h. */ 34760 34761 34762 $curl_includes_arpa_inet 34763 34764 int main (void) 34765 { 34766 34767 if(0 != inet_ntop(0, 0, 0, 0)) 34768 return 1; 34769 34770 ; 34771 return 0; 34772 } 34773 34774 _ACEOF 34775 if ac_fn_c_try_compile "$LINENO"; then : 34776 34777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34778 $as_echo "yes" >&6; } 34779 tst_compi_inet_ntop="yes" 34780 34781 else 34782 34783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34784 $as_echo "no" >&6; } 34785 tst_compi_inet_ntop="no" 34786 34787 fi 34788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34789 fi 34790 # 34791 if test "x$cross_compiling" != "xyes" && 34792 test "$tst_compi_inet_ntop" = "yes"; then 34793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5 34794 $as_echo_n "checking if inet_ntop seems to work... " >&6; } 34795 34796 34797 old=$LD_LIBRARY_PATH 34798 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 34799 export LD_LIBRARY_PATH 34800 if test "$cross_compiling" = yes; then : 34801 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34802 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34803 as_fn_error $? "cannot run test program while cross compiling 34804 See \`config.log' for more details" "$LINENO" 5; } 34805 else 34806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34807 /* end confdefs.h. */ 34808 34809 34810 $curl_includes_stdlib 34811 $curl_includes_arpa_inet 34812 $curl_includes_string 34813 34814 int main (void) 34815 { 34816 34817 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")]; 34818 char ipv4res[sizeof "255.255.255.255"]; 34819 unsigned char ipv6a[26]; 34820 unsigned char ipv4a[5]; 34821 char *ipv6ptr = 0; 34822 char *ipv4ptr = 0; 34823 /* - */ 34824 ipv4res[0] = '\0'; 34825 ipv4a[0] = 0xc0; 34826 ipv4a[1] = 0xa8; 34827 ipv4a[2] = 0x64; 34828 ipv4a[3] = 0x01; 34829 ipv4a[4] = 0x01; 34830 /* - */ 34831 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res)); 34832 if(!ipv4ptr) 34833 exit(1); /* fail */ 34834 if(ipv4ptr != ipv4res) 34835 exit(1); /* fail */ 34836 if(!ipv4ptr[0]) 34837 exit(1); /* fail */ 34838 if(memcmp(ipv4res, "192.168.100.1", 13) != 0) 34839 exit(1); /* fail */ 34840 /* - */ 34841 ipv6res[0] = '\0'; 34842 memset(ipv6a, 0, sizeof(ipv6a)); 34843 ipv6a[0] = 0xfe; 34844 ipv6a[1] = 0x80; 34845 ipv6a[8] = 0x02; 34846 ipv6a[9] = 0x14; 34847 ipv6a[10] = 0x4f; 34848 ipv6a[11] = 0xff; 34849 ipv6a[12] = 0xfe; 34850 ipv6a[13] = 0x0b; 34851 ipv6a[14] = 0x76; 34852 ipv6a[15] = 0xc8; 34853 ipv6a[25] = 0x01; 34854 /* - */ 34855 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res)); 34856 if(!ipv6ptr) 34857 exit(1); /* fail */ 34858 if(ipv6ptr != ipv6res) 34859 exit(1); /* fail */ 34860 if(!ipv6ptr[0]) 34861 exit(1); /* fail */ 34862 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0) 34863 exit(1); /* fail */ 34864 /* - */ 34865 exit(0); 34866 34867 ; 34868 return 0; 34869 } 34870 34871 _ACEOF 34872 if ac_fn_c_try_run "$LINENO"; then : 34873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34874 $as_echo "yes" >&6; } 34875 tst_works_inet_ntop="yes" 34876 34877 else 34878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34879 $as_echo "no" >&6; } 34880 tst_works_inet_ntop="no" 34881 34882 fi 34883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 34884 conftest.$ac_objext conftest.beam conftest.$ac_ext 34885 fi 34886 34887 LD_LIBRARY_PATH=$old # restore 34888 34889 fi 34890 # 34891 if test "$tst_compi_inet_ntop" = "yes" && 34892 test "$tst_works_inet_ntop" != "no"; then 34893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5 34894 $as_echo_n "checking if inet_ntop usage allowed... " >&6; } 34895 if test "x$curl_disallow_inet_ntop" != "xyes"; then 34896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34897 $as_echo "yes" >&6; } 34898 tst_allow_inet_ntop="yes" 34899 else 34900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34901 $as_echo "no" >&6; } 34902 tst_allow_inet_ntop="no" 34903 fi 34904 fi 34905 # 34906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5 34907 $as_echo_n "checking if inet_ntop might be used... " >&6; } 34908 if test "$tst_links_inet_ntop" = "yes" && 34909 test "$tst_proto_inet_ntop" = "yes" && 34910 test "$tst_compi_inet_ntop" = "yes" && 34911 test "$tst_allow_inet_ntop" = "yes" && 34912 test "$tst_works_inet_ntop" != "no"; then 34913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34914 $as_echo "yes" >&6; } 34915 34916 cat >>confdefs.h <<_ACEOF 34917 #define HAVE_INET_NTOP 1 34918 _ACEOF 34919 34920 curl_cv_func_inet_ntop="yes" 34921 else 34922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34923 $as_echo "no" >&6; } 34924 curl_cv_func_inet_ntop="no" 34925 fi 34926 34927 34928 # 34929 tst_links_inet_pton="unknown" 34930 tst_proto_inet_pton="unknown" 34931 tst_compi_inet_pton="unknown" 34932 tst_works_inet_pton="unknown" 34933 tst_allow_inet_pton="unknown" 34934 # 34935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5 34936 $as_echo_n "checking if inet_pton can be linked... " >&6; } 34937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34938 /* end confdefs.h. */ 34939 34940 34941 #define inet_pton innocuous_inet_pton 34942 #ifdef __STDC__ 34943 # include <limits.h> 34944 #else 34945 # include <assert.h> 34946 #endif 34947 #undef inet_pton 34948 #ifdef __cplusplus 34949 extern "C" 34950 #endif 34951 char inet_pton (); 34952 #if defined __stub_inet_pton || defined __stub___inet_pton 34953 choke me 34954 #endif 34955 34956 int main (void) 34957 { 34958 return inet_pton (); 34959 ; 34960 return 0; 34961 } 34962 34963 _ACEOF 34964 if ac_fn_c_try_link "$LINENO"; then : 34965 34966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34967 $as_echo "yes" >&6; } 34968 tst_links_inet_pton="yes" 34969 34970 else 34971 34972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34973 $as_echo "no" >&6; } 34974 tst_links_inet_pton="no" 34975 34976 fi 34977 rm -f core conftest.err conftest.$ac_objext \ 34978 conftest$ac_exeext conftest.$ac_ext 34979 # 34980 if test "$tst_links_inet_pton" = "yes"; then 34981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5 34982 $as_echo_n "checking if inet_pton is prototyped... " >&6; } 34983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34984 /* end confdefs.h. */ 34985 34986 $curl_includes_arpa_inet 34987 34988 _ACEOF 34989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 34990 $EGREP "inet_pton" >/dev/null 2>&1; then : 34991 34992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34993 $as_echo "yes" >&6; } 34994 tst_proto_inet_pton="yes" 34995 34996 else 34997 34998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34999 $as_echo "no" >&6; } 35000 tst_proto_inet_pton="no" 35001 35002 fi 35003 rm -f conftest* 35004 35005 fi 35006 # 35007 if test "$tst_proto_inet_pton" = "yes"; then 35008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5 35009 $as_echo_n "checking if inet_pton is compilable... " >&6; } 35010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35011 /* end confdefs.h. */ 35012 35013 35014 $curl_includes_arpa_inet 35015 35016 int main (void) 35017 { 35018 35019 if(0 != inet_pton(0, 0, 0)) 35020 return 1; 35021 35022 ; 35023 return 0; 35024 } 35025 35026 _ACEOF 35027 if ac_fn_c_try_compile "$LINENO"; then : 35028 35029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35030 $as_echo "yes" >&6; } 35031 tst_compi_inet_pton="yes" 35032 35033 else 35034 35035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35036 $as_echo "no" >&6; } 35037 tst_compi_inet_pton="no" 35038 35039 fi 35040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35041 fi 35042 # 35043 if test "x$cross_compiling" != "xyes" && 35044 test "$tst_compi_inet_pton" = "yes"; then 35045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5 35046 $as_echo_n "checking if inet_pton seems to work... " >&6; } 35047 35048 35049 old=$LD_LIBRARY_PATH 35050 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 35051 export LD_LIBRARY_PATH 35052 if test "$cross_compiling" = yes; then : 35053 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 35054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 35055 as_fn_error $? "cannot run test program while cross compiling 35056 See \`config.log' for more details" "$LINENO" 5; } 35057 else 35058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35059 /* end confdefs.h. */ 35060 35061 35062 $curl_includes_stdlib 35063 $curl_includes_arpa_inet 35064 $curl_includes_string 35065 35066 int main (void) 35067 { 35068 35069 unsigned char ipv6a[16+1]; 35070 unsigned char ipv4a[4+1]; 35071 const char *ipv6src = "fe80::214:4fff:fe0b:76c8"; 35072 const char *ipv4src = "192.168.100.1"; 35073 /* - */ 35074 memset(ipv4a, 1, sizeof(ipv4a)); 35075 if(1 != inet_pton(AF_INET, ipv4src, ipv4a)) 35076 exit(1); /* fail */ 35077 /* - */ 35078 if( (ipv4a[0] != 0xc0) || 35079 (ipv4a[1] != 0xa8) || 35080 (ipv4a[2] != 0x64) || 35081 (ipv4a[3] != 0x01) || 35082 (ipv4a[4] != 0x01) ) 35083 exit(1); /* fail */ 35084 /* - */ 35085 memset(ipv6a, 1, sizeof(ipv6a)); 35086 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a)) 35087 exit(1); /* fail */ 35088 /* - */ 35089 if( (ipv6a[0] != 0xfe) || 35090 (ipv6a[1] != 0x80) || 35091 (ipv6a[8] != 0x02) || 35092 (ipv6a[9] != 0x14) || 35093 (ipv6a[10] != 0x4f) || 35094 (ipv6a[11] != 0xff) || 35095 (ipv6a[12] != 0xfe) || 35096 (ipv6a[13] != 0x0b) || 35097 (ipv6a[14] != 0x76) || 35098 (ipv6a[15] != 0xc8) || 35099 (ipv6a[16] != 0x01) ) 35100 exit(1); /* fail */ 35101 /* - */ 35102 if( (ipv6a[2] != 0x0) || 35103 (ipv6a[3] != 0x0) || 35104 (ipv6a[4] != 0x0) || 35105 (ipv6a[5] != 0x0) || 35106 (ipv6a[6] != 0x0) || 35107 (ipv6a[7] != 0x0) ) 35108 exit(1); /* fail */ 35109 /* - */ 35110 exit(0); 35111 35112 ; 35113 return 0; 35114 } 35115 35116 _ACEOF 35117 if ac_fn_c_try_run "$LINENO"; then : 35118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35119 $as_echo "yes" >&6; } 35120 tst_works_inet_pton="yes" 35121 35122 else 35123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35124 $as_echo "no" >&6; } 35125 tst_works_inet_pton="no" 35126 35127 fi 35128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 35129 conftest.$ac_objext conftest.beam conftest.$ac_ext 35130 fi 35131 35132 LD_LIBRARY_PATH=$old # restore 35133 35134 fi 35135 # 35136 if test "$tst_compi_inet_pton" = "yes" && 35137 test "$tst_works_inet_pton" != "no"; then 35138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5 35139 $as_echo_n "checking if inet_pton usage allowed... " >&6; } 35140 if test "x$curl_disallow_inet_pton" != "xyes"; then 35141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35142 $as_echo "yes" >&6; } 35143 tst_allow_inet_pton="yes" 35144 else 35145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35146 $as_echo "no" >&6; } 35147 tst_allow_inet_pton="no" 35148 fi 35149 fi 35150 # 35151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5 35152 $as_echo_n "checking if inet_pton might be used... " >&6; } 35153 if test "$tst_links_inet_pton" = "yes" && 35154 test "$tst_proto_inet_pton" = "yes" && 35155 test "$tst_compi_inet_pton" = "yes" && 35156 test "$tst_allow_inet_pton" = "yes" && 35157 test "$tst_works_inet_pton" != "no"; then 35158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35159 $as_echo "yes" >&6; } 35160 35161 cat >>confdefs.h <<_ACEOF 35162 #define HAVE_INET_PTON 1 35163 _ACEOF 35164 35165 curl_cv_func_inet_pton="yes" 35166 else 35167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35168 $as_echo "no" >&6; } 35169 curl_cv_func_inet_pton="no" 35170 fi 35171 35172 35173 curl_includes_stropts="\ 35174 /* includes start */ 35175 #ifdef HAVE_SYS_TYPES_H 35176 # include <sys/types.h> 35177 #endif 35178 #ifdef HAVE_UNISTD_H 35179 # include <unistd.h> 35180 #endif 35181 #ifdef HAVE_SYS_SOCKET_H 35182 # include <sys/socket.h> 35183 #endif 35184 #ifdef HAVE_SYS_IOCTL_H 35185 # include <sys/ioctl.h> 35186 #endif 35187 #ifdef HAVE_STROPTS_H 35188 # include <stropts.h> 35189 #endif 35190 /* includes end */" 35191 for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h 35192 do : 35193 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 35194 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stropts 35195 " 35196 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 35197 cat >>confdefs.h <<_ACEOF 35198 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 35199 _ACEOF 35200 35201 fi 35202 35203 done 35204 35205 35206 35207 # 35208 tst_links_ioctl="unknown" 35209 tst_proto_ioctl="unknown" 35210 tst_compi_ioctl="unknown" 35211 tst_allow_ioctl="unknown" 35212 # 35213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5 35214 $as_echo_n "checking if ioctl can be linked... " >&6; } 35215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35216 /* end confdefs.h. */ 35217 35218 35219 #define ioctl innocuous_ioctl 35220 #ifdef __STDC__ 35221 # include <limits.h> 35222 #else 35223 # include <assert.h> 35224 #endif 35225 #undef ioctl 35226 #ifdef __cplusplus 35227 extern "C" 35228 #endif 35229 char ioctl (); 35230 #if defined __stub_ioctl || defined __stub___ioctl 35231 choke me 35232 #endif 35233 35234 int main (void) 35235 { 35236 return ioctl (); 35237 ; 35238 return 0; 35239 } 35240 35241 _ACEOF 35242 if ac_fn_c_try_link "$LINENO"; then : 35243 35244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35245 $as_echo "yes" >&6; } 35246 tst_links_ioctl="yes" 35247 35248 else 35249 35250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35251 $as_echo "no" >&6; } 35252 tst_links_ioctl="no" 35253 35254 fi 35255 rm -f core conftest.err conftest.$ac_objext \ 35256 conftest$ac_exeext conftest.$ac_ext 35257 # 35258 if test "$tst_links_ioctl" = "yes"; then 35259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5 35260 $as_echo_n "checking if ioctl is prototyped... " >&6; } 35261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35262 /* end confdefs.h. */ 35263 35264 $curl_includes_stropts 35265 35266 _ACEOF 35267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 35268 $EGREP "ioctl" >/dev/null 2>&1; then : 35269 35270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35271 $as_echo "yes" >&6; } 35272 tst_proto_ioctl="yes" 35273 35274 else 35275 35276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35277 $as_echo "no" >&6; } 35278 tst_proto_ioctl="no" 35279 35280 fi 35281 rm -f conftest* 35282 35283 fi 35284 # 35285 if test "$tst_proto_ioctl" = "yes"; then 35286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5 35287 $as_echo_n "checking if ioctl is compilable... " >&6; } 35288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35289 /* end confdefs.h. */ 35290 35291 35292 $curl_includes_stropts 35293 35294 int main (void) 35295 { 35296 35297 if(0 != ioctl(0, 0, 0)) 35298 return 1; 35299 35300 ; 35301 return 0; 35302 } 35303 35304 _ACEOF 35305 if ac_fn_c_try_compile "$LINENO"; then : 35306 35307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35308 $as_echo "yes" >&6; } 35309 tst_compi_ioctl="yes" 35310 35311 else 35312 35313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35314 $as_echo "no" >&6; } 35315 tst_compi_ioctl="no" 35316 35317 fi 35318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35319 fi 35320 # 35321 if test "$tst_compi_ioctl" = "yes"; then 35322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5 35323 $as_echo_n "checking if ioctl usage allowed... " >&6; } 35324 if test "x$curl_disallow_ioctl" != "xyes"; then 35325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35326 $as_echo "yes" >&6; } 35327 tst_allow_ioctl="yes" 35328 else 35329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35330 $as_echo "no" >&6; } 35331 tst_allow_ioctl="no" 35332 fi 35333 fi 35334 # 35335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5 35336 $as_echo_n "checking if ioctl might be used... " >&6; } 35337 if test "$tst_links_ioctl" = "yes" && 35338 test "$tst_proto_ioctl" = "yes" && 35339 test "$tst_compi_ioctl" = "yes" && 35340 test "$tst_allow_ioctl" = "yes"; then 35341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35342 $as_echo "yes" >&6; } 35343 35344 cat >>confdefs.h <<_ACEOF 35345 #define HAVE_IOCTL 1 35346 _ACEOF 35347 35348 curl_cv_func_ioctl="yes" 35349 35350 # 35351 tst_compi_ioctl_fionbio="unknown" 35352 tst_allow_ioctl_fionbio="unknown" 35353 # 35354 if test "$curl_cv_func_ioctl" = "yes"; then 35355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5 35356 $as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; } 35357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35358 /* end confdefs.h. */ 35359 35360 35361 $curl_includes_stropts 35362 35363 int main (void) 35364 { 35365 35366 int flags = 0; 35367 if(0 != ioctl(0, FIONBIO, &flags)) 35368 return 1; 35369 35370 ; 35371 return 0; 35372 } 35373 35374 _ACEOF 35375 if ac_fn_c_try_compile "$LINENO"; then : 35376 35377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35378 $as_echo "yes" >&6; } 35379 tst_compi_ioctl_fionbio="yes" 35380 35381 else 35382 35383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35384 $as_echo "no" >&6; } 35385 tst_compi_ioctl_fionbio="no" 35386 35387 fi 35388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35389 fi 35390 # 35391 if test "$tst_compi_ioctl_fionbio" = "yes"; then 35392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5 35393 $as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; } 35394 if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then 35395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35396 $as_echo "yes" >&6; } 35397 tst_allow_ioctl_fionbio="yes" 35398 else 35399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35400 $as_echo "no" >&6; } 35401 tst_allow_ioctl_fionbio="no" 35402 fi 35403 fi 35404 # 35405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5 35406 $as_echo_n "checking if ioctl FIONBIO might be used... " >&6; } 35407 if test "$tst_compi_ioctl_fionbio" = "yes" && 35408 test "$tst_allow_ioctl_fionbio" = "yes"; then 35409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35410 $as_echo "yes" >&6; } 35411 35412 cat >>confdefs.h <<_ACEOF 35413 #define HAVE_IOCTL_FIONBIO 1 35414 _ACEOF 35415 35416 curl_cv_func_ioctl_fionbio="yes" 35417 else 35418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35419 $as_echo "no" >&6; } 35420 curl_cv_func_ioctl_fionbio="no" 35421 fi 35422 35423 35424 # 35425 tst_compi_ioctl_siocgifaddr="unknown" 35426 tst_allow_ioctl_siocgifaddr="unknown" 35427 # 35428 if test "$curl_cv_func_ioctl" = "yes"; then 35429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5 35430 $as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; } 35431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35432 /* end confdefs.h. */ 35433 35434 35435 $curl_includes_stropts 35436 #include <net/if.h> 35437 35438 int main (void) 35439 { 35440 35441 struct ifreq ifr; 35442 if(0 != ioctl(0, SIOCGIFADDR, &ifr)) 35443 return 1; 35444 35445 ; 35446 return 0; 35447 } 35448 35449 _ACEOF 35450 if ac_fn_c_try_compile "$LINENO"; then : 35451 35452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35453 $as_echo "yes" >&6; } 35454 tst_compi_ioctl_siocgifaddr="yes" 35455 35456 else 35457 35458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35459 $as_echo "no" >&6; } 35460 tst_compi_ioctl_siocgifaddr="no" 35461 35462 fi 35463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35464 fi 35465 # 35466 if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then 35467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5 35468 $as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; } 35469 if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then 35470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35471 $as_echo "yes" >&6; } 35472 tst_allow_ioctl_siocgifaddr="yes" 35473 else 35474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35475 $as_echo "no" >&6; } 35476 tst_allow_ioctl_siocgifaddr="no" 35477 fi 35478 fi 35479 # 35480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5 35481 $as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; } 35482 if test "$tst_compi_ioctl_siocgifaddr" = "yes" && 35483 test "$tst_allow_ioctl_siocgifaddr" = "yes"; then 35484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35485 $as_echo "yes" >&6; } 35486 35487 cat >>confdefs.h <<_ACEOF 35488 #define HAVE_IOCTL_SIOCGIFADDR 1 35489 _ACEOF 35490 35491 curl_cv_func_ioctl_siocgifaddr="yes" 35492 else 35493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35494 $as_echo "no" >&6; } 35495 curl_cv_func_ioctl_siocgifaddr="no" 35496 fi 35497 35498 else 35499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35500 $as_echo "no" >&6; } 35501 curl_cv_func_ioctl="no" 35502 fi 35503 35504 35505 # 35506 tst_links_ioctlsocket="unknown" 35507 tst_proto_ioctlsocket="unknown" 35508 tst_compi_ioctlsocket="unknown" 35509 tst_allow_ioctlsocket="unknown" 35510 # 35511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5 35512 $as_echo_n "checking if ioctlsocket can be linked... " >&6; } 35513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35514 /* end confdefs.h. */ 35515 35516 35517 $curl_includes_winsock2 35518 $curl_includes_bsdsocket 35519 35520 int main (void) 35521 { 35522 35523 if(0 != ioctlsocket(0, 0, 0)) 35524 return 1; 35525 35526 ; 35527 return 0; 35528 } 35529 35530 _ACEOF 35531 if ac_fn_c_try_link "$LINENO"; then : 35532 35533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35534 $as_echo "yes" >&6; } 35535 tst_links_ioctlsocket="yes" 35536 35537 else 35538 35539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35540 $as_echo "no" >&6; } 35541 tst_links_ioctlsocket="no" 35542 35543 fi 35544 rm -f core conftest.err conftest.$ac_objext \ 35545 conftest$ac_exeext conftest.$ac_ext 35546 # 35547 if test "$tst_links_ioctlsocket" = "yes"; then 35548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5 35549 $as_echo_n "checking if ioctlsocket is prototyped... " >&6; } 35550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35551 /* end confdefs.h. */ 35552 35553 $curl_includes_winsock2 35554 $curl_includes_bsdsocket 35555 35556 _ACEOF 35557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 35558 $EGREP "ioctlsocket" >/dev/null 2>&1; then : 35559 35560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35561 $as_echo "yes" >&6; } 35562 tst_proto_ioctlsocket="yes" 35563 35564 else 35565 35566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35567 $as_echo "no" >&6; } 35568 tst_proto_ioctlsocket="no" 35569 35570 fi 35571 rm -f conftest* 35572 35573 fi 35574 # 35575 if test "$tst_proto_ioctlsocket" = "yes"; then 35576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5 35577 $as_echo_n "checking if ioctlsocket is compilable... " >&6; } 35578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35579 /* end confdefs.h. */ 35580 35581 35582 $curl_includes_winsock2 35583 $curl_includes_bsdsocket 35584 35585 int main (void) 35586 { 35587 35588 if(0 != ioctlsocket(0, 0, 0)) 35589 return 1; 35590 35591 ; 35592 return 0; 35593 } 35594 35595 _ACEOF 35596 if ac_fn_c_try_compile "$LINENO"; then : 35597 35598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35599 $as_echo "yes" >&6; } 35600 tst_compi_ioctlsocket="yes" 35601 35602 else 35603 35604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35605 $as_echo "no" >&6; } 35606 tst_compi_ioctlsocket="no" 35607 35608 fi 35609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35610 fi 35611 # 35612 if test "$tst_compi_ioctlsocket" = "yes"; then 35613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5 35614 $as_echo_n "checking if ioctlsocket usage allowed... " >&6; } 35615 if test "x$curl_disallow_ioctlsocket" != "xyes"; then 35616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35617 $as_echo "yes" >&6; } 35618 tst_allow_ioctlsocket="yes" 35619 else 35620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35621 $as_echo "no" >&6; } 35622 tst_allow_ioctlsocket="no" 35623 fi 35624 fi 35625 # 35626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5 35627 $as_echo_n "checking if ioctlsocket might be used... " >&6; } 35628 if test "$tst_links_ioctlsocket" = "yes" && 35629 test "$tst_proto_ioctlsocket" = "yes" && 35630 test "$tst_compi_ioctlsocket" = "yes" && 35631 test "$tst_allow_ioctlsocket" = "yes"; then 35632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35633 $as_echo "yes" >&6; } 35634 35635 cat >>confdefs.h <<_ACEOF 35636 #define HAVE_IOCTLSOCKET 1 35637 _ACEOF 35638 35639 curl_cv_func_ioctlsocket="yes" 35640 35641 # 35642 tst_compi_ioctlsocket_fionbio="unknown" 35643 tst_allow_ioctlsocket_fionbio="unknown" 35644 # 35645 if test "$curl_cv_func_ioctlsocket" = "yes"; then 35646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5 35647 $as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; } 35648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35649 /* end confdefs.h. */ 35650 35651 35652 $curl_includes_winsock2 35653 $curl_includes_bsdsocket 35654 35655 int main (void) 35656 { 35657 35658 int flags = 0; 35659 if(0 != ioctlsocket(0, FIONBIO, &flags)) 35660 return 1; 35661 35662 ; 35663 return 0; 35664 } 35665 35666 _ACEOF 35667 if ac_fn_c_try_compile "$LINENO"; then : 35668 35669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35670 $as_echo "yes" >&6; } 35671 tst_compi_ioctlsocket_fionbio="yes" 35672 35673 else 35674 35675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35676 $as_echo "no" >&6; } 35677 tst_compi_ioctlsocket_fionbio="no" 35678 35679 fi 35680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35681 fi 35682 # 35683 if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then 35684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5 35685 $as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; } 35686 if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then 35687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35688 $as_echo "yes" >&6; } 35689 tst_allow_ioctlsocket_fionbio="yes" 35690 else 35691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35692 $as_echo "no" >&6; } 35693 tst_allow_ioctlsocket_fionbio="no" 35694 fi 35695 fi 35696 # 35697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5 35698 $as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; } 35699 if test "$tst_compi_ioctlsocket_fionbio" = "yes" && 35700 test "$tst_allow_ioctlsocket_fionbio" = "yes"; then 35701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35702 $as_echo "yes" >&6; } 35703 35704 cat >>confdefs.h <<_ACEOF 35705 #define HAVE_IOCTLSOCKET_FIONBIO 1 35706 _ACEOF 35707 35708 curl_cv_func_ioctlsocket_fionbio="yes" 35709 else 35710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35711 $as_echo "no" >&6; } 35712 curl_cv_func_ioctlsocket_fionbio="no" 35713 fi 35714 35715 else 35716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35717 $as_echo "no" >&6; } 35718 curl_cv_func_ioctlsocket="no" 35719 fi 35720 35721 35722 # 35723 tst_links_ioctlsocket_camel="unknown" 35724 tst_proto_ioctlsocket_camel="unknown" 35725 tst_compi_ioctlsocket_camel="unknown" 35726 tst_allow_ioctlsocket_camel="unknown" 35727 # 35728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5 35729 $as_echo_n "checking if IoctlSocket can be linked... " >&6; } 35730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35731 /* end confdefs.h. */ 35732 35733 35734 #define IoctlSocket innocuous_IoctlSocket 35735 #ifdef __STDC__ 35736 # include <limits.h> 35737 #else 35738 # include <assert.h> 35739 #endif 35740 #undef IoctlSocket 35741 #ifdef __cplusplus 35742 extern "C" 35743 #endif 35744 char IoctlSocket (); 35745 #if defined __stub_IoctlSocket || defined __stub___IoctlSocket 35746 choke me 35747 #endif 35748 35749 int main (void) 35750 { 35751 return IoctlSocket (); 35752 ; 35753 return 0; 35754 } 35755 35756 _ACEOF 35757 if ac_fn_c_try_link "$LINENO"; then : 35758 35759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35760 $as_echo "yes" >&6; } 35761 tst_links_ioctlsocket_camel="yes" 35762 35763 else 35764 35765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35766 $as_echo "no" >&6; } 35767 tst_links_ioctlsocket_camel="no" 35768 35769 fi 35770 rm -f core conftest.err conftest.$ac_objext \ 35771 conftest$ac_exeext conftest.$ac_ext 35772 # 35773 if test "$tst_links_ioctlsocket_camel" = "yes"; then 35774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5 35775 $as_echo_n "checking if IoctlSocket is prototyped... " >&6; } 35776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35777 /* end confdefs.h. */ 35778 35779 $curl_includes_stropts 35780 35781 _ACEOF 35782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 35783 $EGREP "IoctlSocket" >/dev/null 2>&1; then : 35784 35785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35786 $as_echo "yes" >&6; } 35787 tst_proto_ioctlsocket_camel="yes" 35788 35789 else 35790 35791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35792 $as_echo "no" >&6; } 35793 tst_proto_ioctlsocket_camel="no" 35794 35795 fi 35796 rm -f conftest* 35797 35798 fi 35799 # 35800 if test "$tst_proto_ioctlsocket_camel" = "yes"; then 35801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5 35802 $as_echo_n "checking if IoctlSocket is compilable... " >&6; } 35803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35804 /* end confdefs.h. */ 35805 35806 35807 $curl_includes_stropts 35808 35809 int main (void) 35810 { 35811 35812 if(0 != IoctlSocket(0, 0, 0)) 35813 return 1; 35814 35815 ; 35816 return 0; 35817 } 35818 35819 _ACEOF 35820 if ac_fn_c_try_compile "$LINENO"; then : 35821 35822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35823 $as_echo "yes" >&6; } 35824 tst_compi_ioctlsocket_camel="yes" 35825 35826 else 35827 35828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35829 $as_echo "no" >&6; } 35830 tst_compi_ioctlsocket_camel="no" 35831 35832 fi 35833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35834 fi 35835 # 35836 if test "$tst_compi_ioctlsocket_camel" = "yes"; then 35837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5 35838 $as_echo_n "checking if IoctlSocket usage allowed... " >&6; } 35839 if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then 35840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35841 $as_echo "yes" >&6; } 35842 tst_allow_ioctlsocket_camel="yes" 35843 else 35844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35845 $as_echo "no" >&6; } 35846 tst_allow_ioctlsocket_camel="no" 35847 fi 35848 fi 35849 # 35850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5 35851 $as_echo_n "checking if IoctlSocket might be used... " >&6; } 35852 if test "$tst_links_ioctlsocket_camel" = "yes" && 35853 test "$tst_proto_ioctlsocket_camel" = "yes" && 35854 test "$tst_compi_ioctlsocket_camel" = "yes" && 35855 test "$tst_allow_ioctlsocket_camel" = "yes"; then 35856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35857 $as_echo "yes" >&6; } 35858 35859 cat >>confdefs.h <<_ACEOF 35860 #define HAVE_IOCTLSOCKET_CAMEL 1 35861 _ACEOF 35862 35863 curl_cv_func_ioctlsocket_camel="yes" 35864 35865 # 35866 tst_compi_ioctlsocket_camel_fionbio="unknown" 35867 tst_allow_ioctlsocket_camel_fionbio="unknown" 35868 # 35869 if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then 35870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5 35871 $as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; } 35872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35873 /* end confdefs.h. */ 35874 35875 35876 $curl_includes_stropts 35877 35878 int main (void) 35879 { 35880 35881 long flags = 0; 35882 if(0 != ioctlsocket(0, FIONBIO, &flags)) 35883 return 1; 35884 35885 ; 35886 return 0; 35887 } 35888 35889 _ACEOF 35890 if ac_fn_c_try_compile "$LINENO"; then : 35891 35892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35893 $as_echo "yes" >&6; } 35894 tst_compi_ioctlsocket_camel_fionbio="yes" 35895 35896 else 35897 35898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35899 $as_echo "no" >&6; } 35900 tst_compi_ioctlsocket_camel_fionbio="no" 35901 35902 fi 35903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35904 fi 35905 # 35906 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then 35907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5 35908 $as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; } 35909 if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then 35910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35911 $as_echo "yes" >&6; } 35912 tst_allow_ioctlsocket_camel_fionbio="yes" 35913 else 35914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35915 $as_echo "no" >&6; } 35916 tst_allow_ioctlsocket_camel_fionbio="no" 35917 fi 35918 fi 35919 # 35920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5 35921 $as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; } 35922 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" && 35923 test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then 35924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35925 $as_echo "yes" >&6; } 35926 35927 cat >>confdefs.h <<_ACEOF 35928 #define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1 35929 _ACEOF 35930 35931 curl_cv_func_ioctlsocket_camel_fionbio="yes" 35932 else 35933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35934 $as_echo "no" >&6; } 35935 curl_cv_func_ioctlsocket_camel_fionbio="no" 35936 fi 35937 35938 else 35939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35940 $as_echo "no" >&6; } 35941 curl_cv_func_ioctlsocket_camel="no" 35942 fi 35943 35944 35945 # 35946 tst_links_localtime_r="unknown" 35947 tst_proto_localtime_r="unknown" 35948 tst_compi_localtime_r="unknown" 35949 tst_works_localtime_r="unknown" 35950 tst_allow_localtime_r="unknown" 35951 # 35952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5 35953 $as_echo_n "checking if localtime_r can be linked... " >&6; } 35954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35955 /* end confdefs.h. */ 35956 35957 35958 #define localtime_r innocuous_localtime_r 35959 #ifdef __STDC__ 35960 # include <limits.h> 35961 #else 35962 # include <assert.h> 35963 #endif 35964 #undef localtime_r 35965 #ifdef __cplusplus 35966 extern "C" 35967 #endif 35968 char localtime_r (); 35969 #if defined __stub_localtime_r || defined __stub___localtime_r 35970 choke me 35971 #endif 35972 35973 int main (void) 35974 { 35975 return localtime_r (); 35976 ; 35977 return 0; 35978 } 35979 35980 _ACEOF 35981 if ac_fn_c_try_link "$LINENO"; then : 35982 35983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35984 $as_echo "yes" >&6; } 35985 tst_links_localtime_r="yes" 35986 35987 else 35988 35989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35990 $as_echo "no" >&6; } 35991 tst_links_localtime_r="no" 35992 35993 fi 35994 rm -f core conftest.err conftest.$ac_objext \ 35995 conftest$ac_exeext conftest.$ac_ext 35996 # 35997 if test "$tst_links_localtime_r" = "yes"; then 35998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5 35999 $as_echo_n "checking if localtime_r is prototyped... " >&6; } 36000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36001 /* end confdefs.h. */ 36002 36003 $curl_includes_time 36004 36005 _ACEOF 36006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 36007 $EGREP "localtime_r" >/dev/null 2>&1; then : 36008 36009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36010 $as_echo "yes" >&6; } 36011 tst_proto_localtime_r="yes" 36012 36013 else 36014 36015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36016 $as_echo "no" >&6; } 36017 tst_proto_localtime_r="no" 36018 36019 fi 36020 rm -f conftest* 36021 36022 fi 36023 # 36024 if test "$tst_proto_localtime_r" = "yes"; then 36025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5 36026 $as_echo_n "checking if localtime_r is compilable... " >&6; } 36027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36028 /* end confdefs.h. */ 36029 36030 36031 $curl_includes_time 36032 36033 int main (void) 36034 { 36035 36036 if(0 != localtime_r(0, 0)) 36037 return 1; 36038 36039 ; 36040 return 0; 36041 } 36042 36043 _ACEOF 36044 if ac_fn_c_try_compile "$LINENO"; then : 36045 36046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36047 $as_echo "yes" >&6; } 36048 tst_compi_localtime_r="yes" 36049 36050 else 36051 36052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36053 $as_echo "no" >&6; } 36054 tst_compi_localtime_r="no" 36055 36056 fi 36057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36058 fi 36059 # 36060 if test "x$cross_compiling" != "xyes" && 36061 test "$tst_compi_localtime_r" = "yes"; then 36062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5 36063 $as_echo_n "checking if localtime_r seems to work... " >&6; } 36064 36065 36066 old=$LD_LIBRARY_PATH 36067 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 36068 export LD_LIBRARY_PATH 36069 if test "$cross_compiling" = yes; then : 36070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 36071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 36072 as_fn_error $? "cannot run test program while cross compiling 36073 See \`config.log' for more details" "$LINENO" 5; } 36074 else 36075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36076 /* end confdefs.h. */ 36077 36078 36079 $curl_includes_stdlib 36080 $curl_includes_time 36081 36082 int main (void) 36083 { 36084 36085 time_t clock = 1170352587; 36086 struct tm *tmp = 0; 36087 struct tm result; 36088 tmp = localtime_r(&clock, &result); 36089 if(tmp) 36090 exit(0); 36091 else 36092 exit(1); 36093 36094 ; 36095 return 0; 36096 } 36097 36098 _ACEOF 36099 if ac_fn_c_try_run "$LINENO"; then : 36100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36101 $as_echo "yes" >&6; } 36102 tst_works_localtime_r="yes" 36103 36104 else 36105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36106 $as_echo "no" >&6; } 36107 tst_works_localtime_r="no" 36108 36109 fi 36110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 36111 conftest.$ac_objext conftest.beam conftest.$ac_ext 36112 fi 36113 36114 LD_LIBRARY_PATH=$old # restore 36115 36116 fi 36117 # 36118 if test "$tst_compi_localtime_r" = "yes" && 36119 test "$tst_works_localtime_r" != "no"; then 36120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5 36121 $as_echo_n "checking if localtime_r usage allowed... " >&6; } 36122 if test "x$curl_disallow_localtime_r" != "xyes"; then 36123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36124 $as_echo "yes" >&6; } 36125 tst_allow_localtime_r="yes" 36126 else 36127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36128 $as_echo "no" >&6; } 36129 tst_allow_localtime_r="no" 36130 fi 36131 fi 36132 # 36133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5 36134 $as_echo_n "checking if localtime_r might be used... " >&6; } 36135 if test "$tst_links_localtime_r" = "yes" && 36136 test "$tst_proto_localtime_r" = "yes" && 36137 test "$tst_compi_localtime_r" = "yes" && 36138 test "$tst_allow_localtime_r" = "yes" && 36139 test "$tst_works_localtime_r" != "no"; then 36140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36141 $as_echo "yes" >&6; } 36142 36143 cat >>confdefs.h <<_ACEOF 36144 #define HAVE_LOCALTIME_R 1 36145 _ACEOF 36146 36147 curl_cv_func_localtime_r="yes" 36148 else 36149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36150 $as_echo "no" >&6; } 36151 curl_cv_func_localtime_r="no" 36152 fi 36153 36154 36155 # 36156 tst_links_memrchr="unknown" 36157 tst_macro_memrchr="unknown" 36158 tst_proto_memrchr="unknown" 36159 tst_compi_memrchr="unknown" 36160 tst_allow_memrchr="unknown" 36161 # 36162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5 36163 $as_echo_n "checking if memrchr can be linked... " >&6; } 36164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36165 /* end confdefs.h. */ 36166 36167 36168 #define memrchr innocuous_memrchr 36169 #ifdef __STDC__ 36170 # include <limits.h> 36171 #else 36172 # include <assert.h> 36173 #endif 36174 #undef memrchr 36175 #ifdef __cplusplus 36176 extern "C" 36177 #endif 36178 char memrchr (); 36179 #if defined __stub_memrchr || defined __stub___memrchr 36180 choke me 36181 #endif 36182 36183 int main (void) 36184 { 36185 return memrchr (); 36186 ; 36187 return 0; 36188 } 36189 36190 _ACEOF 36191 if ac_fn_c_try_link "$LINENO"; then : 36192 36193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36194 $as_echo "yes" >&6; } 36195 tst_links_memrchr="yes" 36196 36197 else 36198 36199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36200 $as_echo "no" >&6; } 36201 tst_links_memrchr="no" 36202 36203 fi 36204 rm -f core conftest.err conftest.$ac_objext \ 36205 conftest$ac_exeext conftest.$ac_ext 36206 # 36207 if test "$tst_links_memrchr" = "no"; then 36208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5 36209 $as_echo_n "checking if memrchr seems a macro... " >&6; } 36210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36211 /* end confdefs.h. */ 36212 36213 36214 $curl_includes_string 36215 36216 int main (void) 36217 { 36218 36219 if(0 != memrchr(0, 0, 0)) 36220 return 1; 36221 36222 ; 36223 return 0; 36224 } 36225 36226 _ACEOF 36227 if ac_fn_c_try_link "$LINENO"; then : 36228 36229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36230 $as_echo "yes" >&6; } 36231 tst_macro_memrchr="yes" 36232 36233 else 36234 36235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36236 $as_echo "no" >&6; } 36237 tst_macro_memrchr="no" 36238 36239 fi 36240 rm -f core conftest.err conftest.$ac_objext \ 36241 conftest$ac_exeext conftest.$ac_ext 36242 fi 36243 # 36244 if test "$tst_links_memrchr" = "yes"; then 36245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5 36246 $as_echo_n "checking if memrchr is prototyped... " >&6; } 36247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36248 /* end confdefs.h. */ 36249 36250 $curl_includes_string 36251 36252 _ACEOF 36253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 36254 $EGREP "memrchr" >/dev/null 2>&1; then : 36255 36256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36257 $as_echo "yes" >&6; } 36258 tst_proto_memrchr="yes" 36259 36260 else 36261 36262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36263 $as_echo "no" >&6; } 36264 tst_proto_memrchr="no" 36265 36266 fi 36267 rm -f conftest* 36268 36269 fi 36270 # 36271 if test "$tst_proto_memrchr" = "yes" || 36272 test "$tst_macro_memrchr" = "yes"; then 36273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5 36274 $as_echo_n "checking if memrchr is compilable... " >&6; } 36275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36276 /* end confdefs.h. */ 36277 36278 36279 $curl_includes_string 36280 36281 int main (void) 36282 { 36283 36284 if(0 != memrchr(0, 0, 0)) 36285 return 1; 36286 36287 ; 36288 return 0; 36289 } 36290 36291 _ACEOF 36292 if ac_fn_c_try_compile "$LINENO"; then : 36293 36294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36295 $as_echo "yes" >&6; } 36296 tst_compi_memrchr="yes" 36297 36298 else 36299 36300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36301 $as_echo "no" >&6; } 36302 tst_compi_memrchr="no" 36303 36304 fi 36305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36306 fi 36307 # 36308 if test "$tst_compi_memrchr" = "yes"; then 36309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5 36310 $as_echo_n "checking if memrchr usage allowed... " >&6; } 36311 if test "x$curl_disallow_memrchr" != "xyes"; then 36312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36313 $as_echo "yes" >&6; } 36314 tst_allow_memrchr="yes" 36315 else 36316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36317 $as_echo "no" >&6; } 36318 tst_allow_memrchr="no" 36319 fi 36320 fi 36321 # 36322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5 36323 $as_echo_n "checking if memrchr might be used... " >&6; } 36324 if (test "$tst_proto_memrchr" = "yes" || 36325 test "$tst_macro_memrchr" = "yes") && 36326 test "$tst_compi_memrchr" = "yes" && 36327 test "$tst_allow_memrchr" = "yes"; then 36328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36329 $as_echo "yes" >&6; } 36330 36331 cat >>confdefs.h <<_ACEOF 36332 #define HAVE_MEMRCHR 1 36333 _ACEOF 36334 36335 curl_cv_func_memrchr="yes" 36336 else 36337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36338 $as_echo "no" >&6; } 36339 curl_cv_func_memrchr="no" 36340 fi 36341 36342 36343 # 36344 tst_links_poll="unknown" 36345 tst_proto_poll="unknown" 36346 tst_compi_poll="unknown" 36347 tst_works_poll="unknown" 36348 tst_allow_poll="unknown" 36349 # 36350 case $host_os in 36351 darwin*|interix*) 36352 curl_disallow_poll="yes" 36353 tst_compi_poll="no" 36354 ;; 36355 esac 36356 # 36357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5 36358 $as_echo_n "checking if poll can be linked... " >&6; } 36359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36360 /* end confdefs.h. */ 36361 36362 36363 $curl_includes_poll 36364 36365 int main (void) 36366 { 36367 36368 if(0 != poll(0, 0, 0)) 36369 return 1; 36370 36371 ; 36372 return 0; 36373 } 36374 36375 _ACEOF 36376 if ac_fn_c_try_link "$LINENO"; then : 36377 36378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36379 $as_echo "yes" >&6; } 36380 tst_links_poll="yes" 36381 36382 else 36383 36384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36385 $as_echo "no" >&6; } 36386 tst_links_poll="no" 36387 36388 fi 36389 rm -f core conftest.err conftest.$ac_objext \ 36390 conftest$ac_exeext conftest.$ac_ext 36391 # 36392 if test "$tst_links_poll" = "yes"; then 36393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5 36394 $as_echo_n "checking if poll is prototyped... " >&6; } 36395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36396 /* end confdefs.h. */ 36397 36398 $curl_includes_poll 36399 36400 _ACEOF 36401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 36402 $EGREP "poll" >/dev/null 2>&1; then : 36403 36404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36405 $as_echo "yes" >&6; } 36406 tst_proto_poll="yes" 36407 36408 else 36409 36410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36411 $as_echo "no" >&6; } 36412 tst_proto_poll="no" 36413 36414 fi 36415 rm -f conftest* 36416 36417 fi 36418 # 36419 if test "$tst_proto_poll" = "yes"; then 36420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5 36421 $as_echo_n "checking if poll is compilable... " >&6; } 36422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36423 /* end confdefs.h. */ 36424 36425 36426 $curl_includes_poll 36427 36428 int main (void) 36429 { 36430 36431 if(0 != poll(0, 0, 0)) 36432 return 1; 36433 36434 ; 36435 return 0; 36436 } 36437 36438 _ACEOF 36439 if ac_fn_c_try_compile "$LINENO"; then : 36440 36441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36442 $as_echo "yes" >&6; } 36443 tst_compi_poll="yes" 36444 36445 else 36446 36447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36448 $as_echo "no" >&6; } 36449 tst_compi_poll="no" 36450 36451 fi 36452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36453 fi 36454 # 36455 if test "x$cross_compiling" != "xyes" && 36456 test "$tst_compi_poll" = "yes"; then 36457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5 36458 $as_echo_n "checking if poll seems to work... " >&6; } 36459 36460 36461 old=$LD_LIBRARY_PATH 36462 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 36463 export LD_LIBRARY_PATH 36464 if test "$cross_compiling" = yes; then : 36465 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 36466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 36467 as_fn_error $? "cannot run test program while cross compiling 36468 See \`config.log' for more details" "$LINENO" 5; } 36469 else 36470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36471 /* end confdefs.h. */ 36472 36473 36474 $curl_includes_stdlib 36475 $curl_includes_poll 36476 $curl_includes_time 36477 36478 int main (void) 36479 { 36480 36481 /* detect the original poll() breakage */ 36482 if(0 != poll(0, 0, 10)) 36483 exit(1); /* fail */ 36484 else { 36485 /* detect the 10.12 poll() breakage */ 36486 struct timeval before, after; 36487 int rc; 36488 size_t us; 36489 36490 gettimeofday(&before, NULL); 36491 rc = poll(NULL, 0, 500); 36492 gettimeofday(&after, NULL); 36493 36494 us = (after.tv_sec - before.tv_sec) * 1000000 + 36495 (after.tv_usec - before.tv_usec); 36496 36497 if(us < 400000) 36498 exit(1); 36499 } 36500 36501 ; 36502 return 0; 36503 } 36504 36505 _ACEOF 36506 if ac_fn_c_try_run "$LINENO"; then : 36507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36508 $as_echo "yes" >&6; } 36509 tst_works_poll="yes" 36510 36511 else 36512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36513 $as_echo "no" >&6; } 36514 tst_works_poll="no" 36515 36516 fi 36517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 36518 conftest.$ac_objext conftest.beam conftest.$ac_ext 36519 fi 36520 36521 LD_LIBRARY_PATH=$old # restore 36522 36523 fi 36524 # 36525 if test "$tst_compi_poll" = "yes" && 36526 test "$tst_works_poll" != "no"; then 36527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5 36528 $as_echo_n "checking if poll usage allowed... " >&6; } 36529 if test "x$curl_disallow_poll" != "xyes"; then 36530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36531 $as_echo "yes" >&6; } 36532 tst_allow_poll="yes" 36533 else 36534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36535 $as_echo "no" >&6; } 36536 tst_allow_poll="no" 36537 fi 36538 fi 36539 # 36540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5 36541 $as_echo_n "checking if poll might be used... " >&6; } 36542 if test "$tst_links_poll" = "yes" && 36543 test "$tst_proto_poll" = "yes" && 36544 test "$tst_compi_poll" = "yes" && 36545 test "$tst_allow_poll" = "yes" && 36546 test "$tst_works_poll" != "no"; then 36547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36548 $as_echo "yes" >&6; } 36549 36550 cat >>confdefs.h <<_ACEOF 36551 #define HAVE_POLL 1 36552 _ACEOF 36553 36554 36555 cat >>confdefs.h <<_ACEOF 36556 #define HAVE_POLL_FINE 1 36557 _ACEOF 36558 36559 curl_cv_func_poll="yes" 36560 else 36561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36562 $as_echo "no" >&6; } 36563 curl_cv_func_poll="no" 36564 fi 36565 36566 36567 # 36568 tst_links_setsockopt="unknown" 36569 tst_proto_setsockopt="unknown" 36570 tst_compi_setsockopt="unknown" 36571 tst_allow_setsockopt="unknown" 36572 # 36573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5 36574 $as_echo_n "checking if setsockopt can be linked... " >&6; } 36575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36576 /* end confdefs.h. */ 36577 36578 36579 $curl_includes_winsock2 36580 $curl_includes_bsdsocket 36581 $curl_includes_sys_socket 36582 36583 int main (void) 36584 { 36585 36586 if(0 != setsockopt(0, 0, 0, 0, 0)) 36587 return 1; 36588 36589 ; 36590 return 0; 36591 } 36592 36593 _ACEOF 36594 if ac_fn_c_try_link "$LINENO"; then : 36595 36596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36597 $as_echo "yes" >&6; } 36598 tst_links_setsockopt="yes" 36599 36600 else 36601 36602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36603 $as_echo "no" >&6; } 36604 tst_links_setsockopt="no" 36605 36606 fi 36607 rm -f core conftest.err conftest.$ac_objext \ 36608 conftest$ac_exeext conftest.$ac_ext 36609 # 36610 if test "$tst_links_setsockopt" = "yes"; then 36611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5 36612 $as_echo_n "checking if setsockopt is prototyped... " >&6; } 36613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36614 /* end confdefs.h. */ 36615 36616 $curl_includes_winsock2 36617 $curl_includes_bsdsocket 36618 $curl_includes_sys_socket 36619 36620 _ACEOF 36621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 36622 $EGREP "setsockopt" >/dev/null 2>&1; then : 36623 36624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36625 $as_echo "yes" >&6; } 36626 tst_proto_setsockopt="yes" 36627 36628 else 36629 36630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36631 $as_echo "no" >&6; } 36632 tst_proto_setsockopt="no" 36633 36634 fi 36635 rm -f conftest* 36636 36637 fi 36638 # 36639 if test "$tst_proto_setsockopt" = "yes"; then 36640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5 36641 $as_echo_n "checking if setsockopt is compilable... " >&6; } 36642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36643 /* end confdefs.h. */ 36644 36645 36646 $curl_includes_winsock2 36647 $curl_includes_bsdsocket 36648 $curl_includes_sys_socket 36649 36650 int main (void) 36651 { 36652 36653 if(0 != setsockopt(0, 0, 0, 0, 0)) 36654 return 1; 36655 36656 ; 36657 return 0; 36658 } 36659 36660 _ACEOF 36661 if ac_fn_c_try_compile "$LINENO"; then : 36662 36663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36664 $as_echo "yes" >&6; } 36665 tst_compi_setsockopt="yes" 36666 36667 else 36668 36669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36670 $as_echo "no" >&6; } 36671 tst_compi_setsockopt="no" 36672 36673 fi 36674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36675 fi 36676 # 36677 if test "$tst_compi_setsockopt" = "yes"; then 36678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5 36679 $as_echo_n "checking if setsockopt usage allowed... " >&6; } 36680 if test "x$curl_disallow_setsockopt" != "xyes"; then 36681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36682 $as_echo "yes" >&6; } 36683 tst_allow_setsockopt="yes" 36684 else 36685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36686 $as_echo "no" >&6; } 36687 tst_allow_setsockopt="no" 36688 fi 36689 fi 36690 # 36691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5 36692 $as_echo_n "checking if setsockopt might be used... " >&6; } 36693 if test "$tst_links_setsockopt" = "yes" && 36694 test "$tst_proto_setsockopt" = "yes" && 36695 test "$tst_compi_setsockopt" = "yes" && 36696 test "$tst_allow_setsockopt" = "yes"; then 36697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36698 $as_echo "yes" >&6; } 36699 36700 cat >>confdefs.h <<_ACEOF 36701 #define HAVE_SETSOCKOPT 1 36702 _ACEOF 36703 36704 curl_cv_func_setsockopt="yes" 36705 36706 # 36707 tst_compi_setsockopt_so_nonblock="unknown" 36708 tst_allow_setsockopt_so_nonblock="unknown" 36709 # 36710 if test "$curl_cv_func_setsockopt" = "yes"; then 36711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5 36712 $as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; } 36713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36714 /* end confdefs.h. */ 36715 36716 36717 $curl_includes_winsock2 36718 $curl_includes_bsdsocket 36719 $curl_includes_sys_socket 36720 36721 int main (void) 36722 { 36723 36724 if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0)) 36725 return 1; 36726 36727 ; 36728 return 0; 36729 } 36730 36731 _ACEOF 36732 if ac_fn_c_try_compile "$LINENO"; then : 36733 36734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36735 $as_echo "yes" >&6; } 36736 tst_compi_setsockopt_so_nonblock="yes" 36737 36738 else 36739 36740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36741 $as_echo "no" >&6; } 36742 tst_compi_setsockopt_so_nonblock="no" 36743 36744 fi 36745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36746 fi 36747 # 36748 if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then 36749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5 36750 $as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; } 36751 if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then 36752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36753 $as_echo "yes" >&6; } 36754 tst_allow_setsockopt_so_nonblock="yes" 36755 else 36756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36757 $as_echo "no" >&6; } 36758 tst_allow_setsockopt_so_nonblock="no" 36759 fi 36760 fi 36761 # 36762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5 36763 $as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; } 36764 if test "$tst_compi_setsockopt_so_nonblock" = "yes" && 36765 test "$tst_allow_setsockopt_so_nonblock" = "yes"; then 36766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36767 $as_echo "yes" >&6; } 36768 36769 cat >>confdefs.h <<_ACEOF 36770 #define HAVE_SETSOCKOPT_SO_NONBLOCK 1 36771 _ACEOF 36772 36773 curl_cv_func_setsockopt_so_nonblock="yes" 36774 else 36775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36776 $as_echo "no" >&6; } 36777 curl_cv_func_setsockopt_so_nonblock="no" 36778 fi 36779 36780 else 36781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36782 $as_echo "no" >&6; } 36783 curl_cv_func_setsockopt="no" 36784 fi 36785 36786 36787 curl_includes_signal="\ 36788 /* includes start */ 36789 #ifdef HAVE_SYS_TYPES_H 36790 # include <sys/types.h> 36791 #endif 36792 #ifdef HAVE_SIGNAL_H 36793 # include <signal.h> 36794 #endif 36795 /* includes end */" 36796 for ac_header in sys/types.h signal.h 36797 do : 36798 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 36799 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal 36800 " 36801 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 36802 cat >>confdefs.h <<_ACEOF 36803 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 36804 _ACEOF 36805 36806 fi 36807 36808 done 36809 36810 36811 36812 # 36813 tst_links_sigaction="unknown" 36814 tst_proto_sigaction="unknown" 36815 tst_compi_sigaction="unknown" 36816 tst_allow_sigaction="unknown" 36817 # 36818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5 36819 $as_echo_n "checking if sigaction can be linked... " >&6; } 36820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36821 /* end confdefs.h. */ 36822 36823 36824 #define sigaction innocuous_sigaction 36825 #ifdef __STDC__ 36826 # include <limits.h> 36827 #else 36828 # include <assert.h> 36829 #endif 36830 #undef sigaction 36831 #ifdef __cplusplus 36832 extern "C" 36833 #endif 36834 char sigaction (); 36835 #if defined __stub_sigaction || defined __stub___sigaction 36836 choke me 36837 #endif 36838 36839 int main (void) 36840 { 36841 return sigaction (); 36842 ; 36843 return 0; 36844 } 36845 36846 _ACEOF 36847 if ac_fn_c_try_link "$LINENO"; then : 36848 36849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36850 $as_echo "yes" >&6; } 36851 tst_links_sigaction="yes" 36852 36853 else 36854 36855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36856 $as_echo "no" >&6; } 36857 tst_links_sigaction="no" 36858 36859 fi 36860 rm -f core conftest.err conftest.$ac_objext \ 36861 conftest$ac_exeext conftest.$ac_ext 36862 # 36863 if test "$tst_links_sigaction" = "yes"; then 36864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5 36865 $as_echo_n "checking if sigaction is prototyped... " >&6; } 36866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36867 /* end confdefs.h. */ 36868 36869 $curl_includes_signal 36870 36871 _ACEOF 36872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 36873 $EGREP "sigaction" >/dev/null 2>&1; then : 36874 36875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36876 $as_echo "yes" >&6; } 36877 tst_proto_sigaction="yes" 36878 36879 else 36880 36881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36882 $as_echo "no" >&6; } 36883 tst_proto_sigaction="no" 36884 36885 fi 36886 rm -f conftest* 36887 36888 fi 36889 # 36890 if test "$tst_proto_sigaction" = "yes"; then 36891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5 36892 $as_echo_n "checking if sigaction is compilable... " >&6; } 36893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36894 /* end confdefs.h. */ 36895 36896 36897 $curl_includes_signal 36898 36899 int main (void) 36900 { 36901 36902 if(0 != sigaction(0, 0, 0)) 36903 return 1; 36904 36905 ; 36906 return 0; 36907 } 36908 36909 _ACEOF 36910 if ac_fn_c_try_compile "$LINENO"; then : 36911 36912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36913 $as_echo "yes" >&6; } 36914 tst_compi_sigaction="yes" 36915 36916 else 36917 36918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36919 $as_echo "no" >&6; } 36920 tst_compi_sigaction="no" 36921 36922 fi 36923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36924 fi 36925 # 36926 if test "$tst_compi_sigaction" = "yes"; then 36927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5 36928 $as_echo_n "checking if sigaction usage allowed... " >&6; } 36929 if test "x$curl_disallow_sigaction" != "xyes"; then 36930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36931 $as_echo "yes" >&6; } 36932 tst_allow_sigaction="yes" 36933 else 36934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36935 $as_echo "no" >&6; } 36936 tst_allow_sigaction="no" 36937 fi 36938 fi 36939 # 36940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5 36941 $as_echo_n "checking if sigaction might be used... " >&6; } 36942 if test "$tst_links_sigaction" = "yes" && 36943 test "$tst_proto_sigaction" = "yes" && 36944 test "$tst_compi_sigaction" = "yes" && 36945 test "$tst_allow_sigaction" = "yes"; then 36946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36947 $as_echo "yes" >&6; } 36948 36949 cat >>confdefs.h <<_ACEOF 36950 #define HAVE_SIGACTION 1 36951 _ACEOF 36952 36953 curl_cv_func_sigaction="yes" 36954 else 36955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36956 $as_echo "no" >&6; } 36957 curl_cv_func_sigaction="no" 36958 fi 36959 36960 36961 # 36962 tst_links_siginterrupt="unknown" 36963 tst_proto_siginterrupt="unknown" 36964 tst_compi_siginterrupt="unknown" 36965 tst_allow_siginterrupt="unknown" 36966 # 36967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5 36968 $as_echo_n "checking if siginterrupt can be linked... " >&6; } 36969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36970 /* end confdefs.h. */ 36971 36972 36973 #define siginterrupt innocuous_siginterrupt 36974 #ifdef __STDC__ 36975 # include <limits.h> 36976 #else 36977 # include <assert.h> 36978 #endif 36979 #undef siginterrupt 36980 #ifdef __cplusplus 36981 extern "C" 36982 #endif 36983 char siginterrupt (); 36984 #if defined __stub_siginterrupt || defined __stub___siginterrupt 36985 choke me 36986 #endif 36987 36988 int main (void) 36989 { 36990 return siginterrupt (); 36991 ; 36992 return 0; 36993 } 36994 36995 _ACEOF 36996 if ac_fn_c_try_link "$LINENO"; then : 36997 36998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36999 $as_echo "yes" >&6; } 37000 tst_links_siginterrupt="yes" 37001 37002 else 37003 37004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37005 $as_echo "no" >&6; } 37006 tst_links_siginterrupt="no" 37007 37008 fi 37009 rm -f core conftest.err conftest.$ac_objext \ 37010 conftest$ac_exeext conftest.$ac_ext 37011 # 37012 if test "$tst_links_siginterrupt" = "yes"; then 37013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5 37014 $as_echo_n "checking if siginterrupt is prototyped... " >&6; } 37015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37016 /* end confdefs.h. */ 37017 37018 $curl_includes_signal 37019 37020 _ACEOF 37021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 37022 $EGREP "siginterrupt" >/dev/null 2>&1; then : 37023 37024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37025 $as_echo "yes" >&6; } 37026 tst_proto_siginterrupt="yes" 37027 37028 else 37029 37030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37031 $as_echo "no" >&6; } 37032 tst_proto_siginterrupt="no" 37033 37034 fi 37035 rm -f conftest* 37036 37037 fi 37038 # 37039 if test "$tst_proto_siginterrupt" = "yes"; then 37040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5 37041 $as_echo_n "checking if siginterrupt is compilable... " >&6; } 37042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37043 /* end confdefs.h. */ 37044 37045 37046 $curl_includes_signal 37047 37048 int main (void) 37049 { 37050 37051 if(0 != siginterrupt(0, 0)) 37052 return 1; 37053 37054 ; 37055 return 0; 37056 } 37057 37058 _ACEOF 37059 if ac_fn_c_try_compile "$LINENO"; then : 37060 37061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37062 $as_echo "yes" >&6; } 37063 tst_compi_siginterrupt="yes" 37064 37065 else 37066 37067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37068 $as_echo "no" >&6; } 37069 tst_compi_siginterrupt="no" 37070 37071 fi 37072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 37073 fi 37074 # 37075 if test "$tst_compi_siginterrupt" = "yes"; then 37076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5 37077 $as_echo_n "checking if siginterrupt usage allowed... " >&6; } 37078 if test "x$curl_disallow_siginterrupt" != "xyes"; then 37079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37080 $as_echo "yes" >&6; } 37081 tst_allow_siginterrupt="yes" 37082 else 37083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37084 $as_echo "no" >&6; } 37085 tst_allow_siginterrupt="no" 37086 fi 37087 fi 37088 # 37089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5 37090 $as_echo_n "checking if siginterrupt might be used... " >&6; } 37091 if test "$tst_links_siginterrupt" = "yes" && 37092 test "$tst_proto_siginterrupt" = "yes" && 37093 test "$tst_compi_siginterrupt" = "yes" && 37094 test "$tst_allow_siginterrupt" = "yes"; then 37095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37096 $as_echo "yes" >&6; } 37097 37098 cat >>confdefs.h <<_ACEOF 37099 #define HAVE_SIGINTERRUPT 1 37100 _ACEOF 37101 37102 curl_cv_func_siginterrupt="yes" 37103 else 37104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37105 $as_echo "no" >&6; } 37106 curl_cv_func_siginterrupt="no" 37107 fi 37108 37109 37110 # 37111 tst_links_signal="unknown" 37112 tst_proto_signal="unknown" 37113 tst_compi_signal="unknown" 37114 tst_allow_signal="unknown" 37115 # 37116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5 37117 $as_echo_n "checking if signal can be linked... " >&6; } 37118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37119 /* end confdefs.h. */ 37120 37121 37122 #define signal innocuous_signal 37123 #ifdef __STDC__ 37124 # include <limits.h> 37125 #else 37126 # include <assert.h> 37127 #endif 37128 #undef signal 37129 #ifdef __cplusplus 37130 extern "C" 37131 #endif 37132 char signal (); 37133 #if defined __stub_signal || defined __stub___signal 37134 choke me 37135 #endif 37136 37137 int main (void) 37138 { 37139 return signal (); 37140 ; 37141 return 0; 37142 } 37143 37144 _ACEOF 37145 if ac_fn_c_try_link "$LINENO"; then : 37146 37147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37148 $as_echo "yes" >&6; } 37149 tst_links_signal="yes" 37150 37151 else 37152 37153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37154 $as_echo "no" >&6; } 37155 tst_links_signal="no" 37156 37157 fi 37158 rm -f core conftest.err conftest.$ac_objext \ 37159 conftest$ac_exeext conftest.$ac_ext 37160 # 37161 if test "$tst_links_signal" = "yes"; then 37162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5 37163 $as_echo_n "checking if signal is prototyped... " >&6; } 37164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37165 /* end confdefs.h. */ 37166 37167 $curl_includes_signal 37168 37169 _ACEOF 37170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 37171 $EGREP "signal" >/dev/null 2>&1; then : 37172 37173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37174 $as_echo "yes" >&6; } 37175 tst_proto_signal="yes" 37176 37177 else 37178 37179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37180 $as_echo "no" >&6; } 37181 tst_proto_signal="no" 37182 37183 fi 37184 rm -f conftest* 37185 37186 fi 37187 # 37188 if test "$tst_proto_signal" = "yes"; then 37189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5 37190 $as_echo_n "checking if signal is compilable... " >&6; } 37191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37192 /* end confdefs.h. */ 37193 37194 37195 $curl_includes_signal 37196 37197 int main (void) 37198 { 37199 37200 if(0 != signal(0, 0)) 37201 return 1; 37202 37203 ; 37204 return 0; 37205 } 37206 37207 _ACEOF 37208 if ac_fn_c_try_compile "$LINENO"; then : 37209 37210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37211 $as_echo "yes" >&6; } 37212 tst_compi_signal="yes" 37213 37214 else 37215 37216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37217 $as_echo "no" >&6; } 37218 tst_compi_signal="no" 37219 37220 fi 37221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 37222 fi 37223 # 37224 if test "$tst_compi_signal" = "yes"; then 37225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5 37226 $as_echo_n "checking if signal usage allowed... " >&6; } 37227 if test "x$curl_disallow_signal" != "xyes"; then 37228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37229 $as_echo "yes" >&6; } 37230 tst_allow_signal="yes" 37231 else 37232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37233 $as_echo "no" >&6; } 37234 tst_allow_signal="no" 37235 fi 37236 fi 37237 # 37238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5 37239 $as_echo_n "checking if signal might be used... " >&6; } 37240 if test "$tst_links_signal" = "yes" && 37241 test "$tst_proto_signal" = "yes" && 37242 test "$tst_compi_signal" = "yes" && 37243 test "$tst_allow_signal" = "yes"; then 37244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37245 $as_echo "yes" >&6; } 37246 37247 cat >>confdefs.h <<_ACEOF 37248 #define HAVE_SIGNAL 1 37249 _ACEOF 37250 37251 curl_cv_func_signal="yes" 37252 else 37253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37254 $as_echo "no" >&6; } 37255 curl_cv_func_signal="no" 37256 fi 37257 37258 37259 curl_includes_setjmp="\ 37260 /* includes start */ 37261 #ifdef HAVE_SYS_TYPES_H 37262 # include <sys/types.h> 37263 #endif 37264 #ifdef HAVE_SETJMP_H 37265 # include <setjmp.h> 37266 #endif 37267 /* includes end */" 37268 for ac_header in sys/types.h setjmp.h 37269 do : 37270 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 37271 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp 37272 " 37273 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 37274 cat >>confdefs.h <<_ACEOF 37275 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 37276 _ACEOF 37277 37278 fi 37279 37280 done 37281 37282 37283 37284 # 37285 tst_links_sigsetjmp="unknown" 37286 tst_macro_sigsetjmp="unknown" 37287 tst_proto_sigsetjmp="unknown" 37288 tst_compi_sigsetjmp="unknown" 37289 tst_allow_sigsetjmp="unknown" 37290 # 37291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5 37292 $as_echo_n "checking if sigsetjmp can be linked... " >&6; } 37293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37294 /* end confdefs.h. */ 37295 37296 37297 #define sigsetjmp innocuous_sigsetjmp 37298 #ifdef __STDC__ 37299 # include <limits.h> 37300 #else 37301 # include <assert.h> 37302 #endif 37303 #undef sigsetjmp 37304 #ifdef __cplusplus 37305 extern "C" 37306 #endif 37307 char sigsetjmp (); 37308 #if defined __stub_sigsetjmp || defined __stub___sigsetjmp 37309 choke me 37310 #endif 37311 37312 int main (void) 37313 { 37314 return sigsetjmp (); 37315 ; 37316 return 0; 37317 } 37318 37319 _ACEOF 37320 if ac_fn_c_try_link "$LINENO"; then : 37321 37322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37323 $as_echo "yes" >&6; } 37324 tst_links_sigsetjmp="yes" 37325 37326 else 37327 37328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37329 $as_echo "no" >&6; } 37330 tst_links_sigsetjmp="no" 37331 37332 fi 37333 rm -f core conftest.err conftest.$ac_objext \ 37334 conftest$ac_exeext conftest.$ac_ext 37335 # 37336 if test "$tst_links_sigsetjmp" = "no"; then 37337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5 37338 $as_echo_n "checking if sigsetjmp seems a macro... " >&6; } 37339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37340 /* end confdefs.h. */ 37341 37342 37343 $curl_includes_setjmp 37344 37345 int main (void) 37346 { 37347 37348 sigjmp_buf env; 37349 if(0 != sigsetjmp(env, 0)) 37350 return 1; 37351 37352 ; 37353 return 0; 37354 } 37355 37356 _ACEOF 37357 if ac_fn_c_try_link "$LINENO"; then : 37358 37359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37360 $as_echo "yes" >&6; } 37361 tst_macro_sigsetjmp="yes" 37362 37363 else 37364 37365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37366 $as_echo "no" >&6; } 37367 tst_macro_sigsetjmp="no" 37368 37369 fi 37370 rm -f core conftest.err conftest.$ac_objext \ 37371 conftest$ac_exeext conftest.$ac_ext 37372 fi 37373 # 37374 if test "$tst_links_sigsetjmp" = "yes"; then 37375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5 37376 $as_echo_n "checking if sigsetjmp is prototyped... " >&6; } 37377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37378 /* end confdefs.h. */ 37379 37380 $curl_includes_setjmp 37381 37382 _ACEOF 37383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 37384 $EGREP "sigsetjmp" >/dev/null 2>&1; then : 37385 37386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37387 $as_echo "yes" >&6; } 37388 tst_proto_sigsetjmp="yes" 37389 37390 else 37391 37392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37393 $as_echo "no" >&6; } 37394 tst_proto_sigsetjmp="no" 37395 37396 fi 37397 rm -f conftest* 37398 37399 fi 37400 # 37401 if test "$tst_proto_sigsetjmp" = "yes" || 37402 test "$tst_macro_sigsetjmp" = "yes"; then 37403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5 37404 $as_echo_n "checking if sigsetjmp is compilable... " >&6; } 37405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37406 /* end confdefs.h. */ 37407 37408 37409 $curl_includes_setjmp 37410 37411 int main (void) 37412 { 37413 37414 sigjmp_buf env; 37415 if(0 != sigsetjmp(env, 0)) 37416 return 1; 37417 37418 ; 37419 return 0; 37420 } 37421 37422 _ACEOF 37423 if ac_fn_c_try_compile "$LINENO"; then : 37424 37425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37426 $as_echo "yes" >&6; } 37427 tst_compi_sigsetjmp="yes" 37428 37429 else 37430 37431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37432 $as_echo "no" >&6; } 37433 tst_compi_sigsetjmp="no" 37434 37435 fi 37436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 37437 fi 37438 # 37439 if test "$tst_compi_sigsetjmp" = "yes"; then 37440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5 37441 $as_echo_n "checking if sigsetjmp usage allowed... " >&6; } 37442 if test "x$curl_disallow_sigsetjmp" != "xyes"; then 37443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37444 $as_echo "yes" >&6; } 37445 tst_allow_sigsetjmp="yes" 37446 else 37447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37448 $as_echo "no" >&6; } 37449 tst_allow_sigsetjmp="no" 37450 fi 37451 fi 37452 # 37453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5 37454 $as_echo_n "checking if sigsetjmp might be used... " >&6; } 37455 if (test "$tst_proto_sigsetjmp" = "yes" || 37456 test "$tst_macro_sigsetjmp" = "yes") && 37457 test "$tst_compi_sigsetjmp" = "yes" && 37458 test "$tst_allow_sigsetjmp" = "yes"; then 37459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37460 $as_echo "yes" >&6; } 37461 37462 cat >>confdefs.h <<_ACEOF 37463 #define HAVE_SIGSETJMP 1 37464 _ACEOF 37465 37466 curl_cv_func_sigsetjmp="yes" 37467 else 37468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37469 $as_echo "no" >&6; } 37470 curl_cv_func_sigsetjmp="no" 37471 fi 37472 37473 37474 # 37475 tst_links_socket="unknown" 37476 tst_proto_socket="unknown" 37477 tst_compi_socket="unknown" 37478 tst_allow_socket="unknown" 37479 # 37480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5 37481 $as_echo_n "checking if socket can be linked... " >&6; } 37482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37483 /* end confdefs.h. */ 37484 37485 37486 $curl_includes_winsock2 37487 $curl_includes_bsdsocket 37488 $curl_includes_sys_socket 37489 $curl_includes_socket 37490 37491 int main (void) 37492 { 37493 37494 if(0 != socket(0, 0, 0)) 37495 return 1; 37496 37497 ; 37498 return 0; 37499 } 37500 37501 _ACEOF 37502 if ac_fn_c_try_link "$LINENO"; then : 37503 37504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37505 $as_echo "yes" >&6; } 37506 tst_links_socket="yes" 37507 37508 else 37509 37510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37511 $as_echo "no" >&6; } 37512 tst_links_socket="no" 37513 37514 fi 37515 rm -f core conftest.err conftest.$ac_objext \ 37516 conftest$ac_exeext conftest.$ac_ext 37517 # 37518 if test "$tst_links_socket" = "yes"; then 37519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5 37520 $as_echo_n "checking if socket is prototyped... " >&6; } 37521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37522 /* end confdefs.h. */ 37523 37524 $curl_includes_winsock2 37525 $curl_includes_bsdsocket 37526 $curl_includes_sys_socket 37527 $curl_includes_socket 37528 37529 _ACEOF 37530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 37531 $EGREP "socket" >/dev/null 2>&1; then : 37532 37533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37534 $as_echo "yes" >&6; } 37535 tst_proto_socket="yes" 37536 37537 else 37538 37539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37540 $as_echo "no" >&6; } 37541 tst_proto_socket="no" 37542 37543 fi 37544 rm -f conftest* 37545 37546 fi 37547 # 37548 if test "$tst_proto_socket" = "yes"; then 37549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5 37550 $as_echo_n "checking if socket is compilable... " >&6; } 37551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37552 /* end confdefs.h. */ 37553 37554 37555 $curl_includes_winsock2 37556 $curl_includes_bsdsocket 37557 $curl_includes_sys_socket 37558 $curl_includes_socket 37559 37560 int main (void) 37561 { 37562 37563 if(0 != socket(0, 0, 0)) 37564 return 1; 37565 37566 ; 37567 return 0; 37568 } 37569 37570 _ACEOF 37571 if ac_fn_c_try_compile "$LINENO"; then : 37572 37573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37574 $as_echo "yes" >&6; } 37575 tst_compi_socket="yes" 37576 37577 else 37578 37579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37580 $as_echo "no" >&6; } 37581 tst_compi_socket="no" 37582 37583 fi 37584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 37585 fi 37586 # 37587 if test "$tst_compi_socket" = "yes"; then 37588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5 37589 $as_echo_n "checking if socket usage allowed... " >&6; } 37590 if test "x$curl_disallow_socket" != "xyes"; then 37591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37592 $as_echo "yes" >&6; } 37593 tst_allow_socket="yes" 37594 else 37595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37596 $as_echo "no" >&6; } 37597 tst_allow_socket="no" 37598 fi 37599 fi 37600 # 37601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5 37602 $as_echo_n "checking if socket might be used... " >&6; } 37603 if test "$tst_links_socket" = "yes" && 37604 test "$tst_proto_socket" = "yes" && 37605 test "$tst_compi_socket" = "yes" && 37606 test "$tst_allow_socket" = "yes"; then 37607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37608 $as_echo "yes" >&6; } 37609 37610 cat >>confdefs.h <<_ACEOF 37611 #define HAVE_SOCKET 1 37612 _ACEOF 37613 37614 curl_cv_func_socket="yes" 37615 else 37616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37617 $as_echo "no" >&6; } 37618 curl_cv_func_socket="no" 37619 fi 37620 37621 37622 # 37623 tst_links_socketpair="unknown" 37624 tst_proto_socketpair="unknown" 37625 tst_compi_socketpair="unknown" 37626 tst_allow_socketpair="unknown" 37627 # 37628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5 37629 $as_echo_n "checking if socketpair can be linked... " >&6; } 37630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37631 /* end confdefs.h. */ 37632 37633 37634 #define socketpair innocuous_socketpair 37635 #ifdef __STDC__ 37636 # include <limits.h> 37637 #else 37638 # include <assert.h> 37639 #endif 37640 #undef socketpair 37641 #ifdef __cplusplus 37642 extern "C" 37643 #endif 37644 char socketpair (); 37645 #if defined __stub_socketpair || defined __stub___socketpair 37646 choke me 37647 #endif 37648 37649 int main (void) 37650 { 37651 return socketpair (); 37652 ; 37653 return 0; 37654 } 37655 37656 _ACEOF 37657 if ac_fn_c_try_link "$LINENO"; then : 37658 37659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37660 $as_echo "yes" >&6; } 37661 tst_links_socketpair="yes" 37662 37663 else 37664 37665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37666 $as_echo "no" >&6; } 37667 tst_links_socketpair="no" 37668 37669 fi 37670 rm -f core conftest.err conftest.$ac_objext \ 37671 conftest$ac_exeext conftest.$ac_ext 37672 # 37673 if test "$tst_links_socketpair" = "yes"; then 37674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5 37675 $as_echo_n "checking if socketpair is prototyped... " >&6; } 37676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37677 /* end confdefs.h. */ 37678 37679 $curl_includes_sys_socket 37680 $curl_includes_socket 37681 37682 _ACEOF 37683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 37684 $EGREP "socketpair" >/dev/null 2>&1; then : 37685 37686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37687 $as_echo "yes" >&6; } 37688 tst_proto_socketpair="yes" 37689 37690 else 37691 37692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37693 $as_echo "no" >&6; } 37694 tst_proto_socketpair="no" 37695 37696 fi 37697 rm -f conftest* 37698 37699 fi 37700 # 37701 if test "$tst_proto_socketpair" = "yes"; then 37702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5 37703 $as_echo_n "checking if socketpair is compilable... " >&6; } 37704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37705 /* end confdefs.h. */ 37706 37707 37708 $curl_includes_sys_socket 37709 $curl_includes_socket 37710 37711 int main (void) 37712 { 37713 37714 int sv[2]; 37715 if(0 != socketpair(0, 0, 0, sv)) 37716 return 1; 37717 37718 ; 37719 return 0; 37720 } 37721 37722 _ACEOF 37723 if ac_fn_c_try_compile "$LINENO"; then : 37724 37725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37726 $as_echo "yes" >&6; } 37727 tst_compi_socketpair="yes" 37728 37729 else 37730 37731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37732 $as_echo "no" >&6; } 37733 tst_compi_socketpair="no" 37734 37735 fi 37736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 37737 fi 37738 # 37739 if test "$tst_compi_socketpair" = "yes"; then 37740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5 37741 $as_echo_n "checking if socketpair usage allowed... " >&6; } 37742 if test "x$curl_disallow_socketpair" != "xyes"; then 37743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37744 $as_echo "yes" >&6; } 37745 tst_allow_socketpair="yes" 37746 else 37747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37748 $as_echo "no" >&6; } 37749 tst_allow_socketpair="no" 37750 fi 37751 fi 37752 # 37753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5 37754 $as_echo_n "checking if socketpair might be used... " >&6; } 37755 if test "$tst_links_socketpair" = "yes" && 37756 test "$tst_proto_socketpair" = "yes" && 37757 test "$tst_compi_socketpair" = "yes" && 37758 test "$tst_allow_socketpair" = "yes"; then 37759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37760 $as_echo "yes" >&6; } 37761 37762 cat >>confdefs.h <<_ACEOF 37763 #define HAVE_SOCKETPAIR 1 37764 _ACEOF 37765 37766 curl_cv_func_socketpair="yes" 37767 else 37768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37769 $as_echo "no" >&6; } 37770 curl_cv_func_socketpair="no" 37771 fi 37772 37773 37774 # 37775 tst_links_strcasecmp="unknown" 37776 tst_proto_strcasecmp="unknown" 37777 tst_compi_strcasecmp="unknown" 37778 tst_allow_strcasecmp="unknown" 37779 # 37780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5 37781 $as_echo_n "checking if strcasecmp can be linked... " >&6; } 37782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37783 /* end confdefs.h. */ 37784 37785 37786 #define strcasecmp innocuous_strcasecmp 37787 #ifdef __STDC__ 37788 # include <limits.h> 37789 #else 37790 # include <assert.h> 37791 #endif 37792 #undef strcasecmp 37793 #ifdef __cplusplus 37794 extern "C" 37795 #endif 37796 char strcasecmp (); 37797 #if defined __stub_strcasecmp || defined __stub___strcasecmp 37798 choke me 37799 #endif 37800 37801 int main (void) 37802 { 37803 return strcasecmp (); 37804 ; 37805 return 0; 37806 } 37807 37808 _ACEOF 37809 if ac_fn_c_try_link "$LINENO"; then : 37810 37811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37812 $as_echo "yes" >&6; } 37813 tst_links_strcasecmp="yes" 37814 37815 else 37816 37817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37818 $as_echo "no" >&6; } 37819 tst_links_strcasecmp="no" 37820 37821 fi 37822 rm -f core conftest.err conftest.$ac_objext \ 37823 conftest$ac_exeext conftest.$ac_ext 37824 # 37825 if test "$tst_links_strcasecmp" = "yes"; then 37826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5 37827 $as_echo_n "checking if strcasecmp is prototyped... " >&6; } 37828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37829 /* end confdefs.h. */ 37830 37831 $curl_includes_string 37832 37833 _ACEOF 37834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 37835 $EGREP "strcasecmp" >/dev/null 2>&1; then : 37836 37837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37838 $as_echo "yes" >&6; } 37839 tst_proto_strcasecmp="yes" 37840 37841 else 37842 37843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37844 $as_echo "no" >&6; } 37845 tst_proto_strcasecmp="no" 37846 37847 fi 37848 rm -f conftest* 37849 37850 fi 37851 # 37852 if test "$tst_proto_strcasecmp" = "yes"; then 37853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5 37854 $as_echo_n "checking if strcasecmp is compilable... " >&6; } 37855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37856 /* end confdefs.h. */ 37857 37858 37859 $curl_includes_string 37860 37861 int main (void) 37862 { 37863 37864 if(0 != strcasecmp(0, 0)) 37865 return 1; 37866 37867 ; 37868 return 0; 37869 } 37870 37871 _ACEOF 37872 if ac_fn_c_try_compile "$LINENO"; then : 37873 37874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37875 $as_echo "yes" >&6; } 37876 tst_compi_strcasecmp="yes" 37877 37878 else 37879 37880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37881 $as_echo "no" >&6; } 37882 tst_compi_strcasecmp="no" 37883 37884 fi 37885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 37886 fi 37887 # 37888 if test "$tst_compi_strcasecmp" = "yes"; then 37889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5 37890 $as_echo_n "checking if strcasecmp usage allowed... " >&6; } 37891 if test "x$curl_disallow_strcasecmp" != "xyes"; then 37892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37893 $as_echo "yes" >&6; } 37894 tst_allow_strcasecmp="yes" 37895 else 37896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37897 $as_echo "no" >&6; } 37898 tst_allow_strcasecmp="no" 37899 fi 37900 fi 37901 # 37902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5 37903 $as_echo_n "checking if strcasecmp might be used... " >&6; } 37904 if test "$tst_links_strcasecmp" = "yes" && 37905 test "$tst_proto_strcasecmp" = "yes" && 37906 test "$tst_compi_strcasecmp" = "yes" && 37907 test "$tst_allow_strcasecmp" = "yes"; then 37908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37909 $as_echo "yes" >&6; } 37910 37911 cat >>confdefs.h <<_ACEOF 37912 #define HAVE_STRCASECMP 1 37913 _ACEOF 37914 37915 curl_cv_func_strcasecmp="yes" 37916 else 37917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37918 $as_echo "no" >&6; } 37919 curl_cv_func_strcasecmp="no" 37920 fi 37921 37922 37923 # 37924 tst_links_strcmpi="unknown" 37925 tst_proto_strcmpi="unknown" 37926 tst_compi_strcmpi="unknown" 37927 tst_allow_strcmpi="unknown" 37928 # 37929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5 37930 $as_echo_n "checking if strcmpi can be linked... " >&6; } 37931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37932 /* end confdefs.h. */ 37933 37934 37935 #define strcmpi innocuous_strcmpi 37936 #ifdef __STDC__ 37937 # include <limits.h> 37938 #else 37939 # include <assert.h> 37940 #endif 37941 #undef strcmpi 37942 #ifdef __cplusplus 37943 extern "C" 37944 #endif 37945 char strcmpi (); 37946 #if defined __stub_strcmpi || defined __stub___strcmpi 37947 choke me 37948 #endif 37949 37950 int main (void) 37951 { 37952 return strcmpi (); 37953 ; 37954 return 0; 37955 } 37956 37957 _ACEOF 37958 if ac_fn_c_try_link "$LINENO"; then : 37959 37960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37961 $as_echo "yes" >&6; } 37962 tst_links_strcmpi="yes" 37963 37964 else 37965 37966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37967 $as_echo "no" >&6; } 37968 tst_links_strcmpi="no" 37969 37970 fi 37971 rm -f core conftest.err conftest.$ac_objext \ 37972 conftest$ac_exeext conftest.$ac_ext 37973 # 37974 if test "$tst_links_strcmpi" = "yes"; then 37975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5 37976 $as_echo_n "checking if strcmpi is prototyped... " >&6; } 37977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37978 /* end confdefs.h. */ 37979 37980 $curl_includes_string 37981 37982 _ACEOF 37983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 37984 $EGREP "strcmpi" >/dev/null 2>&1; then : 37985 37986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37987 $as_echo "yes" >&6; } 37988 tst_proto_strcmpi="yes" 37989 37990 else 37991 37992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37993 $as_echo "no" >&6; } 37994 tst_proto_strcmpi="no" 37995 37996 fi 37997 rm -f conftest* 37998 37999 fi 38000 # 38001 if test "$tst_proto_strcmpi" = "yes"; then 38002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5 38003 $as_echo_n "checking if strcmpi is compilable... " >&6; } 38004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38005 /* end confdefs.h. */ 38006 38007 38008 $curl_includes_string 38009 38010 int main (void) 38011 { 38012 38013 if(0 != strcmpi(0, 0)) 38014 return 1; 38015 38016 ; 38017 return 0; 38018 } 38019 38020 _ACEOF 38021 if ac_fn_c_try_compile "$LINENO"; then : 38022 38023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38024 $as_echo "yes" >&6; } 38025 tst_compi_strcmpi="yes" 38026 38027 else 38028 38029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38030 $as_echo "no" >&6; } 38031 tst_compi_strcmpi="no" 38032 38033 fi 38034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 38035 fi 38036 # 38037 if test "$tst_compi_strcmpi" = "yes"; then 38038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5 38039 $as_echo_n "checking if strcmpi usage allowed... " >&6; } 38040 if test "x$curl_disallow_strcmpi" != "xyes"; then 38041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38042 $as_echo "yes" >&6; } 38043 tst_allow_strcmpi="yes" 38044 else 38045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38046 $as_echo "no" >&6; } 38047 tst_allow_strcmpi="no" 38048 fi 38049 fi 38050 # 38051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5 38052 $as_echo_n "checking if strcmpi might be used... " >&6; } 38053 if test "$tst_links_strcmpi" = "yes" && 38054 test "$tst_proto_strcmpi" = "yes" && 38055 test "$tst_compi_strcmpi" = "yes" && 38056 test "$tst_allow_strcmpi" = "yes"; then 38057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38058 $as_echo "yes" >&6; } 38059 38060 cat >>confdefs.h <<_ACEOF 38061 #define HAVE_STRCMPI 1 38062 _ACEOF 38063 38064 curl_cv_func_strcmpi="yes" 38065 else 38066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38067 $as_echo "no" >&6; } 38068 curl_cv_func_strcmpi="no" 38069 fi 38070 38071 38072 # 38073 tst_links_strdup="unknown" 38074 tst_proto_strdup="unknown" 38075 tst_compi_strdup="unknown" 38076 tst_allow_strdup="unknown" 38077 # 38078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5 38079 $as_echo_n "checking if strdup can be linked... " >&6; } 38080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38081 /* end confdefs.h. */ 38082 38083 38084 #define strdup innocuous_strdup 38085 #ifdef __STDC__ 38086 # include <limits.h> 38087 #else 38088 # include <assert.h> 38089 #endif 38090 #undef strdup 38091 #ifdef __cplusplus 38092 extern "C" 38093 #endif 38094 char strdup (); 38095 #if defined __stub_strdup || defined __stub___strdup 38096 choke me 38097 #endif 38098 38099 int main (void) 38100 { 38101 return strdup (); 38102 ; 38103 return 0; 38104 } 38105 38106 _ACEOF 38107 if ac_fn_c_try_link "$LINENO"; then : 38108 38109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38110 $as_echo "yes" >&6; } 38111 tst_links_strdup="yes" 38112 38113 else 38114 38115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38116 $as_echo "no" >&6; } 38117 tst_links_strdup="no" 38118 38119 fi 38120 rm -f core conftest.err conftest.$ac_objext \ 38121 conftest$ac_exeext conftest.$ac_ext 38122 # 38123 if test "$tst_links_strdup" = "yes"; then 38124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5 38125 $as_echo_n "checking if strdup is prototyped... " >&6; } 38126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38127 /* end confdefs.h. */ 38128 38129 $curl_includes_string 38130 38131 _ACEOF 38132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 38133 $EGREP "strdup" >/dev/null 2>&1; then : 38134 38135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38136 $as_echo "yes" >&6; } 38137 tst_proto_strdup="yes" 38138 38139 else 38140 38141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38142 $as_echo "no" >&6; } 38143 tst_proto_strdup="no" 38144 38145 fi 38146 rm -f conftest* 38147 38148 fi 38149 # 38150 if test "$tst_proto_strdup" = "yes"; then 38151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5 38152 $as_echo_n "checking if strdup is compilable... " >&6; } 38153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38154 /* end confdefs.h. */ 38155 38156 38157 $curl_includes_string 38158 38159 int main (void) 38160 { 38161 38162 if(0 != strdup(0)) 38163 return 1; 38164 38165 ; 38166 return 0; 38167 } 38168 38169 _ACEOF 38170 if ac_fn_c_try_compile "$LINENO"; then : 38171 38172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38173 $as_echo "yes" >&6; } 38174 tst_compi_strdup="yes" 38175 38176 else 38177 38178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38179 $as_echo "no" >&6; } 38180 tst_compi_strdup="no" 38181 38182 fi 38183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 38184 fi 38185 # 38186 if test "$tst_compi_strdup" = "yes"; then 38187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5 38188 $as_echo_n "checking if strdup usage allowed... " >&6; } 38189 if test "x$curl_disallow_strdup" != "xyes"; then 38190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38191 $as_echo "yes" >&6; } 38192 tst_allow_strdup="yes" 38193 else 38194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38195 $as_echo "no" >&6; } 38196 tst_allow_strdup="no" 38197 fi 38198 fi 38199 # 38200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5 38201 $as_echo_n "checking if strdup might be used... " >&6; } 38202 if test "$tst_links_strdup" = "yes" && 38203 test "$tst_proto_strdup" = "yes" && 38204 test "$tst_compi_strdup" = "yes" && 38205 test "$tst_allow_strdup" = "yes"; then 38206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38207 $as_echo "yes" >&6; } 38208 38209 cat >>confdefs.h <<_ACEOF 38210 #define HAVE_STRDUP 1 38211 _ACEOF 38212 38213 curl_cv_func_strdup="yes" 38214 else 38215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38216 $as_echo "no" >&6; } 38217 curl_cv_func_strdup="no" 38218 fi 38219 38220 38221 # 38222 tst_links_strerror_r="unknown" 38223 tst_proto_strerror_r="unknown" 38224 tst_compi_strerror_r="unknown" 38225 tst_glibc_strerror_r="unknown" 38226 tst_posix_strerror_r="unknown" 38227 tst_allow_strerror_r="unknown" 38228 tst_works_glibc_strerror_r="unknown" 38229 tst_works_posix_strerror_r="unknown" 38230 tst_glibc_strerror_r_type_arg3="unknown" 38231 tst_posix_strerror_r_type_arg3="unknown" 38232 # 38233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5 38234 $as_echo_n "checking if strerror_r can be linked... " >&6; } 38235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38236 /* end confdefs.h. */ 38237 38238 38239 #define strerror_r innocuous_strerror_r 38240 #ifdef __STDC__ 38241 # include <limits.h> 38242 #else 38243 # include <assert.h> 38244 #endif 38245 #undef strerror_r 38246 #ifdef __cplusplus 38247 extern "C" 38248 #endif 38249 char strerror_r (); 38250 #if defined __stub_strerror_r || defined __stub___strerror_r 38251 choke me 38252 #endif 38253 38254 int main (void) 38255 { 38256 return strerror_r (); 38257 ; 38258 return 0; 38259 } 38260 38261 _ACEOF 38262 if ac_fn_c_try_link "$LINENO"; then : 38263 38264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38265 $as_echo "yes" >&6; } 38266 tst_links_strerror_r="yes" 38267 38268 else 38269 38270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38271 $as_echo "no" >&6; } 38272 tst_links_strerror_r="no" 38273 38274 fi 38275 rm -f core conftest.err conftest.$ac_objext \ 38276 conftest$ac_exeext conftest.$ac_ext 38277 # 38278 if test "$tst_links_strerror_r" = "yes"; then 38279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5 38280 $as_echo_n "checking if strerror_r is prototyped... " >&6; } 38281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38282 /* end confdefs.h. */ 38283 38284 $curl_includes_string 38285 38286 _ACEOF 38287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 38288 $EGREP "strerror_r" >/dev/null 2>&1; then : 38289 38290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38291 $as_echo "yes" >&6; } 38292 tst_proto_strerror_r="yes" 38293 38294 else 38295 38296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38297 $as_echo "no" >&6; } 38298 tst_proto_strerror_r="no" 38299 38300 fi 38301 rm -f conftest* 38302 38303 fi 38304 # 38305 if test "$tst_proto_strerror_r" = "yes"; then 38306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5 38307 $as_echo_n "checking if strerror_r is compilable... " >&6; } 38308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38309 /* end confdefs.h. */ 38310 38311 38312 $curl_includes_string 38313 38314 int main (void) 38315 { 38316 38317 if(0 != strerror_r(0, 0, 0)) 38318 return 1; 38319 38320 ; 38321 return 0; 38322 } 38323 38324 _ACEOF 38325 if ac_fn_c_try_compile "$LINENO"; then : 38326 38327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38328 $as_echo "yes" >&6; } 38329 tst_compi_strerror_r="yes" 38330 38331 else 38332 38333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38334 $as_echo "no" >&6; } 38335 tst_compi_strerror_r="no" 38336 38337 fi 38338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 38339 fi 38340 # 38341 if test "$tst_compi_strerror_r" = "yes"; then 38342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5 38343 $as_echo_n "checking if strerror_r is glibc like... " >&6; } 38344 tst_glibc_strerror_r_type_arg3="unknown" 38345 for arg3 in 'size_t' 'int' 'unsigned int'; do 38346 if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then 38347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38348 /* end confdefs.h. */ 38349 38350 38351 $curl_includes_string 38352 char *strerror_r(int errnum, char *workbuf, $arg3 bufsize); 38353 38354 int main (void) 38355 { 38356 38357 if(0 != strerror_r(0, 0, 0)) 38358 return 1; 38359 38360 ; 38361 return 0; 38362 } 38363 38364 _ACEOF 38365 if ac_fn_c_try_compile "$LINENO"; then : 38366 38367 tst_glibc_strerror_r_type_arg3="$arg3" 38368 38369 fi 38370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 38371 fi 38372 done 38373 case "$tst_glibc_strerror_r_type_arg3" in 38374 unknown) 38375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38376 $as_echo "no" >&6; } 38377 tst_glibc_strerror_r="no" 38378 ;; 38379 *) 38380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38381 $as_echo "yes" >&6; } 38382 tst_glibc_strerror_r="yes" 38383 ;; 38384 esac 38385 fi 38386 # 38387 if test "x$cross_compiling" != "xyes" && 38388 test "$tst_glibc_strerror_r" = "yes"; then 38389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5 38390 $as_echo_n "checking if strerror_r seems to work... " >&6; } 38391 38392 38393 old=$LD_LIBRARY_PATH 38394 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 38395 export LD_LIBRARY_PATH 38396 if test "$cross_compiling" = yes; then : 38397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 38398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 38399 as_fn_error $? "cannot run test program while cross compiling 38400 See \`config.log' for more details" "$LINENO" 5; } 38401 else 38402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38403 /* end confdefs.h. */ 38404 38405 38406 $curl_includes_stdlib 38407 $curl_includes_string 38408 # include <errno.h> 38409 38410 int main (void) 38411 { 38412 38413 char buffer[1024]; 38414 char *string = 0; 38415 buffer[0] = '\0'; 38416 string = strerror_r(EACCES, buffer, sizeof(buffer)); 38417 if(!string) 38418 exit(1); /* fail */ 38419 if(!string[0]) 38420 exit(1); /* fail */ 38421 else 38422 exit(0); 38423 38424 ; 38425 return 0; 38426 } 38427 38428 _ACEOF 38429 if ac_fn_c_try_run "$LINENO"; then : 38430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38431 $as_echo "yes" >&6; } 38432 tst_works_glibc_strerror_r="yes" 38433 38434 else 38435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38436 $as_echo "no" >&6; } 38437 tst_works_glibc_strerror_r="no" 38438 38439 fi 38440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 38441 conftest.$ac_objext conftest.beam conftest.$ac_ext 38442 fi 38443 38444 LD_LIBRARY_PATH=$old # restore 38445 38446 fi 38447 # 38448 if test "$tst_compi_strerror_r" = "yes" && 38449 test "$tst_works_glibc_strerror_r" != "yes"; then 38450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5 38451 $as_echo_n "checking if strerror_r is POSIX like... " >&6; } 38452 tst_posix_strerror_r_type_arg3="unknown" 38453 for arg3 in 'size_t' 'int' 'unsigned int'; do 38454 if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then 38455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38456 /* end confdefs.h. */ 38457 38458 38459 $curl_includes_string 38460 int strerror_r(int errnum, char *resultbuf, $arg3 bufsize); 38461 38462 int main (void) 38463 { 38464 38465 if(0 != strerror_r(0, 0, 0)) 38466 return 1; 38467 38468 ; 38469 return 0; 38470 } 38471 38472 _ACEOF 38473 if ac_fn_c_try_compile "$LINENO"; then : 38474 38475 tst_posix_strerror_r_type_arg3="$arg3" 38476 38477 fi 38478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 38479 fi 38480 done 38481 case "$tst_posix_strerror_r_type_arg3" in 38482 unknown) 38483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38484 $as_echo "no" >&6; } 38485 tst_posix_strerror_r="no" 38486 ;; 38487 *) 38488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38489 $as_echo "yes" >&6; } 38490 tst_posix_strerror_r="yes" 38491 ;; 38492 esac 38493 fi 38494 # 38495 if test "x$cross_compiling" != "xyes" && 38496 test "$tst_posix_strerror_r" = "yes"; then 38497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5 38498 $as_echo_n "checking if strerror_r seems to work... " >&6; } 38499 38500 38501 old=$LD_LIBRARY_PATH 38502 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 38503 export LD_LIBRARY_PATH 38504 if test "$cross_compiling" = yes; then : 38505 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 38506 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 38507 as_fn_error $? "cannot run test program while cross compiling 38508 See \`config.log' for more details" "$LINENO" 5; } 38509 else 38510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38511 /* end confdefs.h. */ 38512 38513 38514 $curl_includes_stdlib 38515 $curl_includes_string 38516 # include <errno.h> 38517 38518 int main (void) 38519 { 38520 38521 char buffer[1024]; 38522 int error = 1; 38523 buffer[0] = '\0'; 38524 error = strerror_r(EACCES, buffer, sizeof(buffer)); 38525 if(error) 38526 exit(1); /* fail */ 38527 if(buffer[0] == '\0') 38528 exit(1); /* fail */ 38529 else 38530 exit(0); 38531 38532 ; 38533 return 0; 38534 } 38535 38536 _ACEOF 38537 if ac_fn_c_try_run "$LINENO"; then : 38538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38539 $as_echo "yes" >&6; } 38540 tst_works_posix_strerror_r="yes" 38541 38542 else 38543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38544 $as_echo "no" >&6; } 38545 tst_works_posix_strerror_r="no" 38546 38547 fi 38548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 38549 conftest.$ac_objext conftest.beam conftest.$ac_ext 38550 fi 38551 38552 LD_LIBRARY_PATH=$old # restore 38553 38554 fi 38555 # 38556 if test "$tst_works_glibc_strerror_r" = "yes"; then 38557 tst_posix_strerror_r="no" 38558 fi 38559 if test "$tst_works_posix_strerror_r" = "yes"; then 38560 tst_glibc_strerror_r="no" 38561 fi 38562 if test "$tst_glibc_strerror_r" = "yes" && 38563 test "$tst_works_glibc_strerror_r" != "no" && 38564 test "$tst_posix_strerror_r" != "yes"; then 38565 tst_allow_strerror_r="check" 38566 fi 38567 if test "$tst_posix_strerror_r" = "yes" && 38568 test "$tst_works_posix_strerror_r" != "no" && 38569 test "$tst_glibc_strerror_r" != "yes"; then 38570 tst_allow_strerror_r="check" 38571 fi 38572 if test "$tst_allow_strerror_r" = "check"; then 38573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5 38574 $as_echo_n "checking if strerror_r usage allowed... " >&6; } 38575 if test "x$curl_disallow_strerror_r" != "xyes"; then 38576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38577 $as_echo "yes" >&6; } 38578 tst_allow_strerror_r="yes" 38579 else 38580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38581 $as_echo "no" >&6; } 38582 tst_allow_strerror_r="no" 38583 fi 38584 fi 38585 # 38586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5 38587 $as_echo_n "checking if strerror_r might be used... " >&6; } 38588 if test "$tst_links_strerror_r" = "yes" && 38589 test "$tst_proto_strerror_r" = "yes" && 38590 test "$tst_compi_strerror_r" = "yes" && 38591 test "$tst_allow_strerror_r" = "yes"; then 38592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38593 $as_echo "yes" >&6; } 38594 if test "$tst_glibc_strerror_r" = "yes"; then 38595 38596 cat >>confdefs.h <<_ACEOF 38597 #define HAVE_STRERROR_R 1 38598 _ACEOF 38599 38600 38601 cat >>confdefs.h <<_ACEOF 38602 #define HAVE_GLIBC_STRERROR_R 1 38603 _ACEOF 38604 38605 38606 cat >>confdefs.h <<_ACEOF 38607 #define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3 38608 _ACEOF 38609 38610 fi 38611 if test "$tst_posix_strerror_r" = "yes"; then 38612 38613 cat >>confdefs.h <<_ACEOF 38614 #define HAVE_STRERROR_R 1 38615 _ACEOF 38616 38617 38618 cat >>confdefs.h <<_ACEOF 38619 #define HAVE_POSIX_STRERROR_R 1 38620 _ACEOF 38621 38622 38623 cat >>confdefs.h <<_ACEOF 38624 #define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3 38625 _ACEOF 38626 38627 fi 38628 curl_cv_func_strerror_r="yes" 38629 else 38630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38631 $as_echo "no" >&6; } 38632 curl_cv_func_strerror_r="no" 38633 fi 38634 # 38635 if test "$tst_compi_strerror_r" = "yes" && 38636 test "$tst_allow_strerror_r" = "unknown"; then 38637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5 38638 $as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;} 38639 fi 38640 # 38641 38642 38643 # 38644 tst_links_stricmp="unknown" 38645 tst_proto_stricmp="unknown" 38646 tst_compi_stricmp="unknown" 38647 tst_allow_stricmp="unknown" 38648 # 38649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5 38650 $as_echo_n "checking if stricmp can be linked... " >&6; } 38651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38652 /* end confdefs.h. */ 38653 38654 38655 #define stricmp innocuous_stricmp 38656 #ifdef __STDC__ 38657 # include <limits.h> 38658 #else 38659 # include <assert.h> 38660 #endif 38661 #undef stricmp 38662 #ifdef __cplusplus 38663 extern "C" 38664 #endif 38665 char stricmp (); 38666 #if defined __stub_stricmp || defined __stub___stricmp 38667 choke me 38668 #endif 38669 38670 int main (void) 38671 { 38672 return stricmp (); 38673 ; 38674 return 0; 38675 } 38676 38677 _ACEOF 38678 if ac_fn_c_try_link "$LINENO"; then : 38679 38680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38681 $as_echo "yes" >&6; } 38682 tst_links_stricmp="yes" 38683 38684 else 38685 38686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38687 $as_echo "no" >&6; } 38688 tst_links_stricmp="no" 38689 38690 fi 38691 rm -f core conftest.err conftest.$ac_objext \ 38692 conftest$ac_exeext conftest.$ac_ext 38693 # 38694 if test "$tst_links_stricmp" = "yes"; then 38695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5 38696 $as_echo_n "checking if stricmp is prototyped... " >&6; } 38697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38698 /* end confdefs.h. */ 38699 38700 $curl_includes_string 38701 38702 _ACEOF 38703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 38704 $EGREP "stricmp" >/dev/null 2>&1; then : 38705 38706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38707 $as_echo "yes" >&6; } 38708 tst_proto_stricmp="yes" 38709 38710 else 38711 38712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38713 $as_echo "no" >&6; } 38714 tst_proto_stricmp="no" 38715 38716 fi 38717 rm -f conftest* 38718 38719 fi 38720 # 38721 if test "$tst_proto_stricmp" = "yes"; then 38722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5 38723 $as_echo_n "checking if stricmp is compilable... " >&6; } 38724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38725 /* end confdefs.h. */ 38726 38727 38728 $curl_includes_string 38729 38730 int main (void) 38731 { 38732 38733 if(0 != stricmp(0, 0)) 38734 return 1; 38735 38736 ; 38737 return 0; 38738 } 38739 38740 _ACEOF 38741 if ac_fn_c_try_compile "$LINENO"; then : 38742 38743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38744 $as_echo "yes" >&6; } 38745 tst_compi_stricmp="yes" 38746 38747 else 38748 38749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38750 $as_echo "no" >&6; } 38751 tst_compi_stricmp="no" 38752 38753 fi 38754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 38755 fi 38756 # 38757 if test "$tst_compi_stricmp" = "yes"; then 38758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5 38759 $as_echo_n "checking if stricmp usage allowed... " >&6; } 38760 if test "x$curl_disallow_stricmp" != "xyes"; then 38761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38762 $as_echo "yes" >&6; } 38763 tst_allow_stricmp="yes" 38764 else 38765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38766 $as_echo "no" >&6; } 38767 tst_allow_stricmp="no" 38768 fi 38769 fi 38770 # 38771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5 38772 $as_echo_n "checking if stricmp might be used... " >&6; } 38773 if test "$tst_links_stricmp" = "yes" && 38774 test "$tst_proto_stricmp" = "yes" && 38775 test "$tst_compi_stricmp" = "yes" && 38776 test "$tst_allow_stricmp" = "yes"; then 38777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38778 $as_echo "yes" >&6; } 38779 38780 cat >>confdefs.h <<_ACEOF 38781 #define HAVE_STRICMP 1 38782 _ACEOF 38783 38784 curl_cv_func_stricmp="yes" 38785 else 38786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38787 $as_echo "no" >&6; } 38788 curl_cv_func_stricmp="no" 38789 fi 38790 38791 38792 # 38793 tst_links_strncasecmp="unknown" 38794 tst_proto_strncasecmp="unknown" 38795 tst_compi_strncasecmp="unknown" 38796 tst_allow_strncasecmp="unknown" 38797 # 38798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5 38799 $as_echo_n "checking if strncasecmp can be linked... " >&6; } 38800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38801 /* end confdefs.h. */ 38802 38803 38804 #define strncasecmp innocuous_strncasecmp 38805 #ifdef __STDC__ 38806 # include <limits.h> 38807 #else 38808 # include <assert.h> 38809 #endif 38810 #undef strncasecmp 38811 #ifdef __cplusplus 38812 extern "C" 38813 #endif 38814 char strncasecmp (); 38815 #if defined __stub_strncasecmp || defined __stub___strncasecmp 38816 choke me 38817 #endif 38818 38819 int main (void) 38820 { 38821 return strncasecmp (); 38822 ; 38823 return 0; 38824 } 38825 38826 _ACEOF 38827 if ac_fn_c_try_link "$LINENO"; then : 38828 38829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38830 $as_echo "yes" >&6; } 38831 tst_links_strncasecmp="yes" 38832 38833 else 38834 38835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38836 $as_echo "no" >&6; } 38837 tst_links_strncasecmp="no" 38838 38839 fi 38840 rm -f core conftest.err conftest.$ac_objext \ 38841 conftest$ac_exeext conftest.$ac_ext 38842 # 38843 if test "$tst_links_strncasecmp" = "yes"; then 38844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5 38845 $as_echo_n "checking if strncasecmp is prototyped... " >&6; } 38846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38847 /* end confdefs.h. */ 38848 38849 $curl_includes_string 38850 38851 _ACEOF 38852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 38853 $EGREP "strncasecmp" >/dev/null 2>&1; then : 38854 38855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38856 $as_echo "yes" >&6; } 38857 tst_proto_strncasecmp="yes" 38858 38859 else 38860 38861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38862 $as_echo "no" >&6; } 38863 tst_proto_strncasecmp="no" 38864 38865 fi 38866 rm -f conftest* 38867 38868 fi 38869 # 38870 if test "$tst_proto_strncasecmp" = "yes"; then 38871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5 38872 $as_echo_n "checking if strncasecmp is compilable... " >&6; } 38873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38874 /* end confdefs.h. */ 38875 38876 38877 $curl_includes_string 38878 38879 int main (void) 38880 { 38881 38882 if(0 != strncasecmp(0, 0, 0)) 38883 return 1; 38884 38885 ; 38886 return 0; 38887 } 38888 38889 _ACEOF 38890 if ac_fn_c_try_compile "$LINENO"; then : 38891 38892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38893 $as_echo "yes" >&6; } 38894 tst_compi_strncasecmp="yes" 38895 38896 else 38897 38898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38899 $as_echo "no" >&6; } 38900 tst_compi_strncasecmp="no" 38901 38902 fi 38903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 38904 fi 38905 # 38906 if test "$tst_compi_strncasecmp" = "yes"; then 38907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5 38908 $as_echo_n "checking if strncasecmp usage allowed... " >&6; } 38909 if test "x$curl_disallow_strncasecmp" != "xyes"; then 38910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38911 $as_echo "yes" >&6; } 38912 tst_allow_strncasecmp="yes" 38913 else 38914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38915 $as_echo "no" >&6; } 38916 tst_allow_strncasecmp="no" 38917 fi 38918 fi 38919 # 38920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5 38921 $as_echo_n "checking if strncasecmp might be used... " >&6; } 38922 if test "$tst_links_strncasecmp" = "yes" && 38923 test "$tst_proto_strncasecmp" = "yes" && 38924 test "$tst_compi_strncasecmp" = "yes" && 38925 test "$tst_allow_strncasecmp" = "yes"; then 38926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38927 $as_echo "yes" >&6; } 38928 38929 cat >>confdefs.h <<_ACEOF 38930 #define HAVE_STRNCASECMP 1 38931 _ACEOF 38932 38933 curl_cv_func_strncasecmp="yes" 38934 else 38935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38936 $as_echo "no" >&6; } 38937 curl_cv_func_strncasecmp="no" 38938 fi 38939 38940 38941 # 38942 tst_links_strncmpi="unknown" 38943 tst_proto_strncmpi="unknown" 38944 tst_compi_strncmpi="unknown" 38945 tst_allow_strncmpi="unknown" 38946 # 38947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5 38948 $as_echo_n "checking if strncmpi can be linked... " >&6; } 38949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38950 /* end confdefs.h. */ 38951 38952 38953 #define strncmpi innocuous_strncmpi 38954 #ifdef __STDC__ 38955 # include <limits.h> 38956 #else 38957 # include <assert.h> 38958 #endif 38959 #undef strncmpi 38960 #ifdef __cplusplus 38961 extern "C" 38962 #endif 38963 char strncmpi (); 38964 #if defined __stub_strncmpi || defined __stub___strncmpi 38965 choke me 38966 #endif 38967 38968 int main (void) 38969 { 38970 return strncmpi (); 38971 ; 38972 return 0; 38973 } 38974 38975 _ACEOF 38976 if ac_fn_c_try_link "$LINENO"; then : 38977 38978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38979 $as_echo "yes" >&6; } 38980 tst_links_strncmpi="yes" 38981 38982 else 38983 38984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38985 $as_echo "no" >&6; } 38986 tst_links_strncmpi="no" 38987 38988 fi 38989 rm -f core conftest.err conftest.$ac_objext \ 38990 conftest$ac_exeext conftest.$ac_ext 38991 # 38992 if test "$tst_links_strncmpi" = "yes"; then 38993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5 38994 $as_echo_n "checking if strncmpi is prototyped... " >&6; } 38995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38996 /* end confdefs.h. */ 38997 38998 $curl_includes_string 38999 39000 _ACEOF 39001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 39002 $EGREP "strncmpi" >/dev/null 2>&1; then : 39003 39004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39005 $as_echo "yes" >&6; } 39006 tst_proto_strncmpi="yes" 39007 39008 else 39009 39010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39011 $as_echo "no" >&6; } 39012 tst_proto_strncmpi="no" 39013 39014 fi 39015 rm -f conftest* 39016 39017 fi 39018 # 39019 if test "$tst_proto_strncmpi" = "yes"; then 39020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5 39021 $as_echo_n "checking if strncmpi is compilable... " >&6; } 39022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39023 /* end confdefs.h. */ 39024 39025 39026 $curl_includes_string 39027 39028 int main (void) 39029 { 39030 39031 if(0 != strncmpi(0, 0)) 39032 return 1; 39033 39034 ; 39035 return 0; 39036 } 39037 39038 _ACEOF 39039 if ac_fn_c_try_compile "$LINENO"; then : 39040 39041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39042 $as_echo "yes" >&6; } 39043 tst_compi_strncmpi="yes" 39044 39045 else 39046 39047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39048 $as_echo "no" >&6; } 39049 tst_compi_strncmpi="no" 39050 39051 fi 39052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 39053 fi 39054 # 39055 if test "$tst_compi_strncmpi" = "yes"; then 39056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5 39057 $as_echo_n "checking if strncmpi usage allowed... " >&6; } 39058 if test "x$curl_disallow_strncmpi" != "xyes"; then 39059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39060 $as_echo "yes" >&6; } 39061 tst_allow_strncmpi="yes" 39062 else 39063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39064 $as_echo "no" >&6; } 39065 tst_allow_strncmpi="no" 39066 fi 39067 fi 39068 # 39069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5 39070 $as_echo_n "checking if strncmpi might be used... " >&6; } 39071 if test "$tst_links_strncmpi" = "yes" && 39072 test "$tst_proto_strncmpi" = "yes" && 39073 test "$tst_compi_strncmpi" = "yes" && 39074 test "$tst_allow_strncmpi" = "yes"; then 39075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39076 $as_echo "yes" >&6; } 39077 39078 cat >>confdefs.h <<_ACEOF 39079 #define HAVE_STRNCMPI 1 39080 _ACEOF 39081 39082 curl_cv_func_strncmpi="yes" 39083 else 39084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39085 $as_echo "no" >&6; } 39086 curl_cv_func_strncmpi="no" 39087 fi 39088 39089 39090 # 39091 tst_links_strnicmp="unknown" 39092 tst_proto_strnicmp="unknown" 39093 tst_compi_strnicmp="unknown" 39094 tst_allow_strnicmp="unknown" 39095 # 39096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5 39097 $as_echo_n "checking if strnicmp can be linked... " >&6; } 39098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39099 /* end confdefs.h. */ 39100 39101 39102 #define strnicmp innocuous_strnicmp 39103 #ifdef __STDC__ 39104 # include <limits.h> 39105 #else 39106 # include <assert.h> 39107 #endif 39108 #undef strnicmp 39109 #ifdef __cplusplus 39110 extern "C" 39111 #endif 39112 char strnicmp (); 39113 #if defined __stub_strnicmp || defined __stub___strnicmp 39114 choke me 39115 #endif 39116 39117 int main (void) 39118 { 39119 return strnicmp (); 39120 ; 39121 return 0; 39122 } 39123 39124 _ACEOF 39125 if ac_fn_c_try_link "$LINENO"; then : 39126 39127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39128 $as_echo "yes" >&6; } 39129 tst_links_strnicmp="yes" 39130 39131 else 39132 39133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39134 $as_echo "no" >&6; } 39135 tst_links_strnicmp="no" 39136 39137 fi 39138 rm -f core conftest.err conftest.$ac_objext \ 39139 conftest$ac_exeext conftest.$ac_ext 39140 # 39141 if test "$tst_links_strnicmp" = "yes"; then 39142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5 39143 $as_echo_n "checking if strnicmp is prototyped... " >&6; } 39144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39145 /* end confdefs.h. */ 39146 39147 $curl_includes_string 39148 39149 _ACEOF 39150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 39151 $EGREP "strnicmp" >/dev/null 2>&1; then : 39152 39153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39154 $as_echo "yes" >&6; } 39155 tst_proto_strnicmp="yes" 39156 39157 else 39158 39159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39160 $as_echo "no" >&6; } 39161 tst_proto_strnicmp="no" 39162 39163 fi 39164 rm -f conftest* 39165 39166 fi 39167 # 39168 if test "$tst_proto_strnicmp" = "yes"; then 39169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5 39170 $as_echo_n "checking if strnicmp is compilable... " >&6; } 39171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39172 /* end confdefs.h. */ 39173 39174 39175 $curl_includes_string 39176 39177 int main (void) 39178 { 39179 39180 if(0 != strnicmp(0, 0)) 39181 return 1; 39182 39183 ; 39184 return 0; 39185 } 39186 39187 _ACEOF 39188 if ac_fn_c_try_compile "$LINENO"; then : 39189 39190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39191 $as_echo "yes" >&6; } 39192 tst_compi_strnicmp="yes" 39193 39194 else 39195 39196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39197 $as_echo "no" >&6; } 39198 tst_compi_strnicmp="no" 39199 39200 fi 39201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 39202 fi 39203 # 39204 if test "$tst_compi_strnicmp" = "yes"; then 39205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5 39206 $as_echo_n "checking if strnicmp usage allowed... " >&6; } 39207 if test "x$curl_disallow_strnicmp" != "xyes"; then 39208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39209 $as_echo "yes" >&6; } 39210 tst_allow_strnicmp="yes" 39211 else 39212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39213 $as_echo "no" >&6; } 39214 tst_allow_strnicmp="no" 39215 fi 39216 fi 39217 # 39218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5 39219 $as_echo_n "checking if strnicmp might be used... " >&6; } 39220 if test "$tst_links_strnicmp" = "yes" && 39221 test "$tst_proto_strnicmp" = "yes" && 39222 test "$tst_compi_strnicmp" = "yes" && 39223 test "$tst_allow_strnicmp" = "yes"; then 39224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39225 $as_echo "yes" >&6; } 39226 39227 cat >>confdefs.h <<_ACEOF 39228 #define HAVE_STRNICMP 1 39229 _ACEOF 39230 39231 curl_cv_func_strnicmp="yes" 39232 else 39233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39234 $as_echo "no" >&6; } 39235 curl_cv_func_strnicmp="no" 39236 fi 39237 39238 39239 # 39240 tst_links_strstr="unknown" 39241 tst_proto_strstr="unknown" 39242 tst_compi_strstr="unknown" 39243 tst_allow_strstr="unknown" 39244 # 39245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5 39246 $as_echo_n "checking if strstr can be linked... " >&6; } 39247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39248 /* end confdefs.h. */ 39249 39250 39251 #define strstr innocuous_strstr 39252 #ifdef __STDC__ 39253 # include <limits.h> 39254 #else 39255 # include <assert.h> 39256 #endif 39257 #undef strstr 39258 #ifdef __cplusplus 39259 extern "C" 39260 #endif 39261 char strstr (); 39262 #if defined __stub_strstr || defined __stub___strstr 39263 choke me 39264 #endif 39265 39266 int main (void) 39267 { 39268 return strstr (); 39269 ; 39270 return 0; 39271 } 39272 39273 _ACEOF 39274 if ac_fn_c_try_link "$LINENO"; then : 39275 39276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39277 $as_echo "yes" >&6; } 39278 tst_links_strstr="yes" 39279 39280 else 39281 39282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39283 $as_echo "no" >&6; } 39284 tst_links_strstr="no" 39285 39286 fi 39287 rm -f core conftest.err conftest.$ac_objext \ 39288 conftest$ac_exeext conftest.$ac_ext 39289 # 39290 if test "$tst_links_strstr" = "yes"; then 39291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5 39292 $as_echo_n "checking if strstr is prototyped... " >&6; } 39293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39294 /* end confdefs.h. */ 39295 39296 $curl_includes_string 39297 39298 _ACEOF 39299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 39300 $EGREP "strstr" >/dev/null 2>&1; then : 39301 39302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39303 $as_echo "yes" >&6; } 39304 tst_proto_strstr="yes" 39305 39306 else 39307 39308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39309 $as_echo "no" >&6; } 39310 tst_proto_strstr="no" 39311 39312 fi 39313 rm -f conftest* 39314 39315 fi 39316 # 39317 if test "$tst_proto_strstr" = "yes"; then 39318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5 39319 $as_echo_n "checking if strstr is compilable... " >&6; } 39320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39321 /* end confdefs.h. */ 39322 39323 39324 $curl_includes_string 39325 39326 int main (void) 39327 { 39328 39329 if(0 != strstr(0, 0)) 39330 return 1; 39331 39332 ; 39333 return 0; 39334 } 39335 39336 _ACEOF 39337 if ac_fn_c_try_compile "$LINENO"; then : 39338 39339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39340 $as_echo "yes" >&6; } 39341 tst_compi_strstr="yes" 39342 39343 else 39344 39345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39346 $as_echo "no" >&6; } 39347 tst_compi_strstr="no" 39348 39349 fi 39350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 39351 fi 39352 # 39353 if test "$tst_compi_strstr" = "yes"; then 39354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5 39355 $as_echo_n "checking if strstr usage allowed... " >&6; } 39356 if test "x$curl_disallow_strstr" != "xyes"; then 39357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39358 $as_echo "yes" >&6; } 39359 tst_allow_strstr="yes" 39360 else 39361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39362 $as_echo "no" >&6; } 39363 tst_allow_strstr="no" 39364 fi 39365 fi 39366 # 39367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5 39368 $as_echo_n "checking if strstr might be used... " >&6; } 39369 if test "$tst_links_strstr" = "yes" && 39370 test "$tst_proto_strstr" = "yes" && 39371 test "$tst_compi_strstr" = "yes" && 39372 test "$tst_allow_strstr" = "yes"; then 39373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39374 $as_echo "yes" >&6; } 39375 39376 cat >>confdefs.h <<_ACEOF 39377 #define HAVE_STRSTR 1 39378 _ACEOF 39379 39380 curl_cv_func_strstr="yes" 39381 else 39382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39383 $as_echo "no" >&6; } 39384 curl_cv_func_strstr="no" 39385 fi 39386 39387 39388 # 39389 tst_links_strtok_r="unknown" 39390 tst_proto_strtok_r="unknown" 39391 tst_compi_strtok_r="unknown" 39392 tst_allow_strtok_r="unknown" 39393 # 39394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5 39395 $as_echo_n "checking if strtok_r can be linked... " >&6; } 39396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39397 /* end confdefs.h. */ 39398 39399 39400 #define strtok_r innocuous_strtok_r 39401 #ifdef __STDC__ 39402 # include <limits.h> 39403 #else 39404 # include <assert.h> 39405 #endif 39406 #undef strtok_r 39407 #ifdef __cplusplus 39408 extern "C" 39409 #endif 39410 char strtok_r (); 39411 #if defined __stub_strtok_r || defined __stub___strtok_r 39412 choke me 39413 #endif 39414 39415 int main (void) 39416 { 39417 return strtok_r (); 39418 ; 39419 return 0; 39420 } 39421 39422 _ACEOF 39423 if ac_fn_c_try_link "$LINENO"; then : 39424 39425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39426 $as_echo "yes" >&6; } 39427 tst_links_strtok_r="yes" 39428 39429 else 39430 39431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39432 $as_echo "no" >&6; } 39433 tst_links_strtok_r="no" 39434 39435 fi 39436 rm -f core conftest.err conftest.$ac_objext \ 39437 conftest$ac_exeext conftest.$ac_ext 39438 # 39439 if test "$tst_links_strtok_r" = "yes"; then 39440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5 39441 $as_echo_n "checking if strtok_r is prototyped... " >&6; } 39442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39443 /* end confdefs.h. */ 39444 39445 $curl_includes_string 39446 39447 _ACEOF 39448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 39449 $EGREP "strtok_r" >/dev/null 2>&1; then : 39450 39451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39452 $as_echo "yes" >&6; } 39453 tst_proto_strtok_r="yes" 39454 39455 else 39456 39457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39458 $as_echo "no" >&6; } 39459 tst_proto_strtok_r="no" 39460 39461 fi 39462 rm -f conftest* 39463 39464 fi 39465 # 39466 if test "$tst_proto_strtok_r" = "yes"; then 39467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5 39468 $as_echo_n "checking if strtok_r is compilable... " >&6; } 39469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39470 /* end confdefs.h. */ 39471 39472 39473 $curl_includes_string 39474 39475 int main (void) 39476 { 39477 39478 if(0 != strtok_r(0, 0, 0)) 39479 return 1; 39480 39481 ; 39482 return 0; 39483 } 39484 39485 _ACEOF 39486 if ac_fn_c_try_compile "$LINENO"; then : 39487 39488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39489 $as_echo "yes" >&6; } 39490 tst_compi_strtok_r="yes" 39491 39492 else 39493 39494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39495 $as_echo "no" >&6; } 39496 tst_compi_strtok_r="no" 39497 39498 fi 39499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 39500 fi 39501 # 39502 if test "$tst_compi_strtok_r" = "yes"; then 39503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5 39504 $as_echo_n "checking if strtok_r usage allowed... " >&6; } 39505 if test "x$curl_disallow_strtok_r" != "xyes"; then 39506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39507 $as_echo "yes" >&6; } 39508 tst_allow_strtok_r="yes" 39509 else 39510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39511 $as_echo "no" >&6; } 39512 tst_allow_strtok_r="no" 39513 fi 39514 fi 39515 # 39516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5 39517 $as_echo_n "checking if strtok_r might be used... " >&6; } 39518 if test "$tst_links_strtok_r" = "yes" && 39519 test "$tst_proto_strtok_r" = "yes" && 39520 test "$tst_compi_strtok_r" = "yes" && 39521 test "$tst_allow_strtok_r" = "yes"; then 39522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39523 $as_echo "yes" >&6; } 39524 39525 cat >>confdefs.h <<_ACEOF 39526 #define HAVE_STRTOK_R 1 39527 _ACEOF 39528 39529 curl_cv_func_strtok_r="yes" 39530 else 39531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39532 $as_echo "no" >&6; } 39533 curl_cv_func_strtok_r="no" 39534 fi 39535 39536 39537 # 39538 tst_links_strtoll="unknown" 39539 tst_proto_strtoll="unknown" 39540 tst_compi_strtoll="unknown" 39541 tst_allow_strtoll="unknown" 39542 # 39543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5 39544 $as_echo_n "checking if strtoll can be linked... " >&6; } 39545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39546 /* end confdefs.h. */ 39547 39548 39549 #define strtoll innocuous_strtoll 39550 #ifdef __STDC__ 39551 # include <limits.h> 39552 #else 39553 # include <assert.h> 39554 #endif 39555 #undef strtoll 39556 #ifdef __cplusplus 39557 extern "C" 39558 #endif 39559 char strtoll (); 39560 #if defined __stub_strtoll || defined __stub___strtoll 39561 choke me 39562 #endif 39563 39564 int main (void) 39565 { 39566 return strtoll (); 39567 ; 39568 return 0; 39569 } 39570 39571 _ACEOF 39572 if ac_fn_c_try_link "$LINENO"; then : 39573 39574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39575 $as_echo "yes" >&6; } 39576 tst_links_strtoll="yes" 39577 39578 else 39579 39580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39581 $as_echo "no" >&6; } 39582 tst_links_strtoll="no" 39583 39584 fi 39585 rm -f core conftest.err conftest.$ac_objext \ 39586 conftest$ac_exeext conftest.$ac_ext 39587 # 39588 if test "$tst_links_strtoll" = "yes"; then 39589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5 39590 $as_echo_n "checking if strtoll is prototyped... " >&6; } 39591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39592 /* end confdefs.h. */ 39593 39594 $curl_includes_stdlib 39595 39596 _ACEOF 39597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 39598 $EGREP "strtoll" >/dev/null 2>&1; then : 39599 39600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39601 $as_echo "yes" >&6; } 39602 tst_proto_strtoll="yes" 39603 39604 else 39605 39606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39607 $as_echo "no" >&6; } 39608 tst_proto_strtoll="no" 39609 39610 fi 39611 rm -f conftest* 39612 39613 fi 39614 # 39615 if test "$tst_proto_strtoll" = "yes"; then 39616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5 39617 $as_echo_n "checking if strtoll is compilable... " >&6; } 39618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39619 /* end confdefs.h. */ 39620 39621 39622 $curl_includes_stdlib 39623 39624 int main (void) 39625 { 39626 39627 if(0 != strtoll(0, 0, 0)) 39628 return 1; 39629 39630 ; 39631 return 0; 39632 } 39633 39634 _ACEOF 39635 if ac_fn_c_try_compile "$LINENO"; then : 39636 39637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39638 $as_echo "yes" >&6; } 39639 tst_compi_strtoll="yes" 39640 39641 else 39642 39643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39644 $as_echo "no" >&6; } 39645 tst_compi_strtoll="no" 39646 39647 fi 39648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 39649 fi 39650 # 39651 if test "$tst_compi_strtoll" = "yes"; then 39652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5 39653 $as_echo_n "checking if strtoll usage allowed... " >&6; } 39654 if test "x$curl_disallow_strtoll" != "xyes"; then 39655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39656 $as_echo "yes" >&6; } 39657 tst_allow_strtoll="yes" 39658 else 39659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39660 $as_echo "no" >&6; } 39661 tst_allow_strtoll="no" 39662 fi 39663 fi 39664 # 39665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5 39666 $as_echo_n "checking if strtoll might be used... " >&6; } 39667 if test "$tst_links_strtoll" = "yes" && 39668 test "$tst_proto_strtoll" = "yes" && 39669 test "$tst_compi_strtoll" = "yes" && 39670 test "$tst_allow_strtoll" = "yes"; then 39671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39672 $as_echo "yes" >&6; } 39673 39674 cat >>confdefs.h <<_ACEOF 39675 #define HAVE_STRTOLL 1 39676 _ACEOF 39677 39678 curl_cv_func_strtoll="yes" 39679 else 39680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39681 $as_echo "no" >&6; } 39682 curl_cv_func_strtoll="no" 39683 fi 39684 39685 39686 curl_includes_sys_uio="\ 39687 /* includes start */ 39688 #ifdef HAVE_SYS_TYPES_H 39689 # include <sys/types.h> 39690 #endif 39691 #ifdef HAVE_SYS_UIO_H 39692 # include <sys/uio.h> 39693 #endif 39694 /* includes end */" 39695 for ac_header in sys/types.h sys/uio.h 39696 do : 39697 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 39698 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio 39699 " 39700 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 39701 cat >>confdefs.h <<_ACEOF 39702 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 39703 _ACEOF 39704 39705 fi 39706 39707 done 39708 39709 39710 39711 # 39712 tst_links_writev="unknown" 39713 tst_proto_writev="unknown" 39714 tst_compi_writev="unknown" 39715 tst_allow_writev="unknown" 39716 # 39717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5 39718 $as_echo_n "checking if writev can be linked... " >&6; } 39719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39720 /* end confdefs.h. */ 39721 39722 39723 #define writev innocuous_writev 39724 #ifdef __STDC__ 39725 # include <limits.h> 39726 #else 39727 # include <assert.h> 39728 #endif 39729 #undef writev 39730 #ifdef __cplusplus 39731 extern "C" 39732 #endif 39733 char writev (); 39734 #if defined __stub_writev || defined __stub___writev 39735 choke me 39736 #endif 39737 39738 int main (void) 39739 { 39740 return writev (); 39741 ; 39742 return 0; 39743 } 39744 39745 _ACEOF 39746 if ac_fn_c_try_link "$LINENO"; then : 39747 39748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39749 $as_echo "yes" >&6; } 39750 tst_links_writev="yes" 39751 39752 else 39753 39754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39755 $as_echo "no" >&6; } 39756 tst_links_writev="no" 39757 39758 fi 39759 rm -f core conftest.err conftest.$ac_objext \ 39760 conftest$ac_exeext conftest.$ac_ext 39761 # 39762 if test "$tst_links_writev" = "yes"; then 39763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5 39764 $as_echo_n "checking if writev is prototyped... " >&6; } 39765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39766 /* end confdefs.h. */ 39767 39768 $curl_includes_sys_uio 39769 39770 _ACEOF 39771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 39772 $EGREP "writev" >/dev/null 2>&1; then : 39773 39774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39775 $as_echo "yes" >&6; } 39776 tst_proto_writev="yes" 39777 39778 else 39779 39780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39781 $as_echo "no" >&6; } 39782 tst_proto_writev="no" 39783 39784 fi 39785 rm -f conftest* 39786 39787 fi 39788 # 39789 if test "$tst_proto_writev" = "yes"; then 39790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5 39791 $as_echo_n "checking if writev is compilable... " >&6; } 39792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39793 /* end confdefs.h. */ 39794 39795 39796 $curl_includes_sys_uio 39797 39798 int main (void) 39799 { 39800 39801 if(0 != writev(0, 0, 0)) 39802 return 1; 39803 39804 ; 39805 return 0; 39806 } 39807 39808 _ACEOF 39809 if ac_fn_c_try_compile "$LINENO"; then : 39810 39811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39812 $as_echo "yes" >&6; } 39813 tst_compi_writev="yes" 39814 39815 else 39816 39817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39818 $as_echo "no" >&6; } 39819 tst_compi_writev="no" 39820 39821 fi 39822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 39823 fi 39824 # 39825 if test "$tst_compi_writev" = "yes"; then 39826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5 39827 $as_echo_n "checking if writev usage allowed... " >&6; } 39828 if test "x$curl_disallow_writev" != "xyes"; then 39829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39830 $as_echo "yes" >&6; } 39831 tst_allow_writev="yes" 39832 else 39833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39834 $as_echo "no" >&6; } 39835 tst_allow_writev="no" 39836 fi 39837 fi 39838 # 39839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5 39840 $as_echo_n "checking if writev might be used... " >&6; } 39841 if test "$tst_links_writev" = "yes" && 39842 test "$tst_proto_writev" = "yes" && 39843 test "$tst_compi_writev" = "yes" && 39844 test "$tst_allow_writev" = "yes"; then 39845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39846 $as_echo "yes" >&6; } 39847 39848 cat >>confdefs.h <<_ACEOF 39849 #define HAVE_WRITEV 1 39850 _ACEOF 39851 39852 curl_cv_func_writev="yes" 39853 else 39854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39855 $as_echo "no" >&6; } 39856 curl_cv_func_writev="no" 39857 fi 39858 39859 39860 case $host in 39861 *msdosdjgpp) 39862 ac_cv_func_pipe=no 39863 skipcheck_pipe=yes 39864 { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5 39865 $as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;} 39866 ;; 39867 esac 39868 39869 ac_fn_c_check_decl "$LINENO" "getpwuid_r" "ac_cv_have_decl_getpwuid_r" "#include <pwd.h> 39870 #include <sys/types.h> 39871 " 39872 if test "x$ac_cv_have_decl_getpwuid_r" = xyes; then : 39873 ac_have_decl=1 39874 else 39875 ac_have_decl=0 39876 fi 39877 39878 cat >>confdefs.h <<_ACEOF 39879 #define HAVE_DECL_GETPWUID_R $ac_have_decl 39880 _ACEOF 39881 if test $ac_have_decl = 1; then : 39882 39883 else 39884 39885 $as_echo "#define HAVE_DECL_GETPWUID_R_MISSING 1" >>confdefs.h 39886 39887 fi 39888 39889 39890 39891 for ac_func in fnmatch \ 39892 geteuid \ 39893 getpass_r \ 39894 getppid \ 39895 getpwuid \ 39896 getpwuid_r \ 39897 getrlimit \ 39898 gettimeofday \ 39899 if_nametoindex \ 39900 mach_absolute_time \ 39901 pipe \ 39902 setlocale \ 39903 setmode \ 39904 setrlimit \ 39905 utime \ 39906 utimes 39907 39908 do : 39909 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 39910 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 39911 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 39912 cat >>confdefs.h <<_ACEOF 39913 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 39914 _ACEOF 39915 39916 39917 else 39918 39919 func="$ac_func" 39920 eval skipcheck=\$skipcheck_$func 39921 if test "x$skipcheck" != "xyes"; then 39922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5 39923 $as_echo_n "checking deeper for $func... " >&6; } 39924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39925 /* end confdefs.h. */ 39926 39927 39928 39929 int main (void) 39930 { 39931 39932 $func (); 39933 39934 ; 39935 return 0; 39936 } 39937 39938 _ACEOF 39939 if ac_fn_c_try_link "$LINENO"; then : 39940 39941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39942 $as_echo "yes" >&6; } 39943 eval "ac_cv_func_$func=yes" 39944 39945 cat >>confdefs.h <<_ACEOF 39946 #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1 39947 _ACEOF 39948 39949 39950 else 39951 39952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5 39953 $as_echo "but still no" >&6; } 39954 39955 fi 39956 rm -f core conftest.err conftest.$ac_objext \ 39957 conftest$ac_exeext conftest.$ac_ext 39958 fi 39959 39960 fi 39961 done 39962 39963 39964 if test "$ipv6" = "yes"; then 39965 if test "$curl_cv_func_getaddrinfo" = "yes"; then 39966 39967 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h 39968 39969 IPV6_ENABLED=1 39970 39971 fi 39972 fi 39973 39974 39975 # 39976 tst_method="unknown" 39977 39978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5 39979 $as_echo_n "checking how to set a socket into non-blocking mode... " >&6; } 39980 if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then 39981 tst_method="fcntl O_NONBLOCK" 39982 elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then 39983 tst_method="ioctl FIONBIO" 39984 elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then 39985 tst_method="ioctlsocket FIONBIO" 39986 elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then 39987 tst_method="IoctlSocket FIONBIO" 39988 elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then 39989 tst_method="setsockopt SO_NONBLOCK" 39990 fi 39991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5 39992 $as_echo "$tst_method" >&6; } 39993 if test "$tst_method" = "unknown"; then 39994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5 39995 $as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;} 39996 fi 39997 39998 39999 40000 # Extract the first word of "perl", so it can be a program name with args. 40001 set dummy perl; ac_word=$2 40002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40003 $as_echo_n "checking for $ac_word... " >&6; } 40004 if ${ac_cv_path_PERL+:} false; then : 40005 $as_echo_n "(cached) " >&6 40006 else 40007 case $PERL in 40008 [\\/]* | ?:[\\/]*) 40009 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 40010 ;; 40011 *) 40012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40013 as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin " 40014 for as_dir in $as_dummy 40015 do 40016 IFS=$as_save_IFS 40017 test -z "$as_dir" && as_dir=. 40018 for ac_exec_ext in '' $ac_executable_extensions; do 40019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40020 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 40021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40022 break 2 40023 fi 40024 done 40025 done 40026 IFS=$as_save_IFS 40027 40028 ;; 40029 esac 40030 fi 40031 PERL=$ac_cv_path_PERL 40032 if test -n "$PERL"; then 40033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 40034 $as_echo "$PERL" >&6; } 40035 else 40036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40037 $as_echo "no" >&6; } 40038 fi 40039 40040 40041 40042 40043 for ac_prog in gnroff nroff 40044 do 40045 # Extract the first word of "$ac_prog", so it can be a program name with args. 40046 set dummy $ac_prog; ac_word=$2 40047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40048 $as_echo_n "checking for $ac_word... " >&6; } 40049 if ${ac_cv_path_NROFF+:} false; then : 40050 $as_echo_n "(cached) " >&6 40051 else 40052 case $NROFF in 40053 [\\/]* | ?:[\\/]*) 40054 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. 40055 ;; 40056 *) 40057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40058 as_dummy="$PATH:/usr/bin/:/usr/local/bin " 40059 for as_dir in $as_dummy 40060 do 40061 IFS=$as_save_IFS 40062 test -z "$as_dir" && as_dir=. 40063 for ac_exec_ext in '' $ac_executable_extensions; do 40064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40065 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" 40066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40067 break 2 40068 fi 40069 done 40070 done 40071 IFS=$as_save_IFS 40072 40073 ;; 40074 esac 40075 fi 40076 NROFF=$ac_cv_path_NROFF 40077 if test -n "$NROFF"; then 40078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5 40079 $as_echo "$NROFF" >&6; } 40080 else 40081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40082 $as_echo "no" >&6; } 40083 fi 40084 40085 40086 test -n "$NROFF" && break 40087 done 40088 40089 40090 40091 if test -n "$NROFF"; then 40092 40093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5 40094 $as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; } 40095 MANOPT="-man" 40096 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null` 40097 if test -z "$mancheck"; then 40098 MANOPT="-mandoc" 40099 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null` 40100 if test -z "$mancheck"; then 40101 MANOPT="" 40102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 40103 $as_echo "failed" >&6; } 40104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5 40105 $as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;} 40106 else 40107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5 40108 $as_echo "$MANOPT" >&6; } 40109 fi 40110 else 40111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5 40112 $as_echo "$MANOPT" >&6; } 40113 fi 40114 40115 fi 40116 40117 if test -z "$MANOPT" 40118 then 40119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5 40120 $as_echo "$as_me: WARNING: disabling built-in manual" >&2;} 40121 USE_MANUAL="no"; 40122 fi 40123 40124 40125 if test "$USE_MANUAL" = "1"; then 40126 40127 $as_echo "#define USE_MANUAL 1" >>confdefs.h 40128 40129 curl_manual_msg="enabled" 40130 fi 40131 40132 if test x"$USE_MANUAL" = x1; then 40133 USE_MANUAL_TRUE= 40134 USE_MANUAL_FALSE='#' 40135 else 40136 USE_MANUAL_TRUE='#' 40137 USE_MANUAL_FALSE= 40138 fi 40139 40140 40141 40142 40143 40144 # 40145 if test "$want_ares" = "yes"; then 40146 clean_CPPFLAGS="$CPPFLAGS" 40147 clean_LDFLAGS="$LDFLAGS" 40148 clean_LIBS="$LIBS" 40149 embedded_ares="unknown" 40150 configure_runpath=`pwd` 40151 embedded_ares_builddir="$configure_runpath/ares" 40152 if test -n "$want_ares_path"; then 40153 ARES_PCDIR="$want_ares_path/lib/pkgconfig" 40154 40155 if test -n "$PKG_CONFIG"; then 40156 PKGCONFIG="$PKG_CONFIG" 40157 else 40158 if test -n "$ac_tool_prefix"; then 40159 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 40160 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 40161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40162 $as_echo_n "checking for $ac_word... " >&6; } 40163 if ${ac_cv_path_PKGCONFIG+:} false; then : 40164 $as_echo_n "(cached) " >&6 40165 else 40166 case $PKGCONFIG in 40167 [\\/]* | ?:[\\/]*) 40168 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 40169 ;; 40170 *) 40171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40172 as_dummy="$PATH:/usr/bin:/usr/local/bin" 40173 for as_dir in $as_dummy 40174 do 40175 IFS=$as_save_IFS 40176 test -z "$as_dir" && as_dir=. 40177 for ac_exec_ext in '' $ac_executable_extensions; do 40178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40179 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 40180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40181 break 2 40182 fi 40183 done 40184 done 40185 IFS=$as_save_IFS 40186 40187 ;; 40188 esac 40189 fi 40190 PKGCONFIG=$ac_cv_path_PKGCONFIG 40191 if test -n "$PKGCONFIG"; then 40192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 40193 $as_echo "$PKGCONFIG" >&6; } 40194 else 40195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40196 $as_echo "no" >&6; } 40197 fi 40198 40199 40200 fi 40201 if test -z "$ac_cv_path_PKGCONFIG"; then 40202 ac_pt_PKGCONFIG=$PKGCONFIG 40203 # Extract the first word of "pkg-config", so it can be a program name with args. 40204 set dummy pkg-config; ac_word=$2 40205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40206 $as_echo_n "checking for $ac_word... " >&6; } 40207 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : 40208 $as_echo_n "(cached) " >&6 40209 else 40210 case $ac_pt_PKGCONFIG in 40211 [\\/]* | ?:[\\/]*) 40212 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 40213 ;; 40214 *) 40215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40216 as_dummy="$PATH:/usr/bin:/usr/local/bin" 40217 for as_dir in $as_dummy 40218 do 40219 IFS=$as_save_IFS 40220 test -z "$as_dir" && as_dir=. 40221 for ac_exec_ext in '' $ac_executable_extensions; do 40222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40223 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 40224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40225 break 2 40226 fi 40227 done 40228 done 40229 IFS=$as_save_IFS 40230 40231 ;; 40232 esac 40233 fi 40234 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 40235 if test -n "$ac_pt_PKGCONFIG"; then 40236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 40237 $as_echo "$ac_pt_PKGCONFIG" >&6; } 40238 else 40239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40240 $as_echo "no" >&6; } 40241 fi 40242 40243 if test "x$ac_pt_PKGCONFIG" = x; then 40244 PKGCONFIG="no" 40245 else 40246 case $cross_compiling:$ac_tool_warned in 40247 yes:) 40248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 40249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 40250 ac_tool_warned=yes ;; 40251 esac 40252 PKGCONFIG=$ac_pt_PKGCONFIG 40253 fi 40254 else 40255 PKGCONFIG="$ac_cv_path_PKGCONFIG" 40256 fi 40257 40258 fi 40259 40260 if test "x$PKGCONFIG" != "xno"; then 40261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5 40262 $as_echo_n "checking for libcares options with pkg-config... " >&6; } 40263 itexists=` 40264 if test -n "$ARES_PCDIR"; then 40265 PKG_CONFIG_LIBDIR="$ARES_PCDIR" 40266 export PKG_CONFIG_LIBDIR 40267 fi 40268 $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1` 40269 40270 if test -z "$itexists"; then 40271 PKGCONFIG="no" 40272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40273 $as_echo "no" >&6; } 40274 else 40275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 40276 $as_echo "found" >&6; } 40277 fi 40278 fi 40279 40280 if test "$PKGCONFIG" != "no" ; then 40281 ares_LIBS=` 40282 if test -n "$ARES_PCDIR"; then 40283 PKG_CONFIG_LIBDIR="$ARES_PCDIR" 40284 export PKG_CONFIG_LIBDIR 40285 fi 40286 40287 $PKGCONFIG --libs-only-l libcares` 40288 ares_LDFLAGS=` 40289 if test -n "$ARES_PCDIR"; then 40290 PKG_CONFIG_LIBDIR="$ARES_PCDIR" 40291 export PKG_CONFIG_LIBDIR 40292 fi 40293 40294 $PKGCONFIG --libs-only-L libcares` 40295 ares_CPPFLAGS=` 40296 if test -n "$ARES_PCDIR"; then 40297 PKG_CONFIG_LIBDIR="$ARES_PCDIR" 40298 export PKG_CONFIG_LIBDIR 40299 fi 40300 40301 $PKGCONFIG --cflags-only-I libcares` 40302 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares LIBS: \"$ares_LIBS\"" >&5 40303 $as_echo "$as_me: pkg-config: ares LIBS: \"$ares_LIBS\"" >&6;} 40304 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&5 40305 $as_echo "$as_me: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&6;} 40306 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&5 40307 $as_echo "$as_me: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;} 40308 else 40309 ares_CPPFLAGS="-I$want_ares_path/include" 40310 ares_LDFLAGS="-L$want_ares_path/lib" 40311 ares_LIBS="-lcares" 40312 fi 40313 else 40314 if test -d "$srcdir/ares"; then 40315 embedded_ares="yes" 40316 subdirs="$subdirs ares" 40317 40318 ares_CPPFLAGS="" 40319 ares_LDFLAGS="-L$embedded_ares_builddir" 40320 ares_LIBS="-lcares" 40321 else 40322 40323 if test -n "$PKG_CONFIG"; then 40324 PKGCONFIG="$PKG_CONFIG" 40325 else 40326 if test -n "$ac_tool_prefix"; then 40327 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 40328 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 40329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40330 $as_echo_n "checking for $ac_word... " >&6; } 40331 if ${ac_cv_path_PKGCONFIG+:} false; then : 40332 $as_echo_n "(cached) " >&6 40333 else 40334 case $PKGCONFIG in 40335 [\\/]* | ?:[\\/]*) 40336 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 40337 ;; 40338 *) 40339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40340 as_dummy="$PATH:/usr/bin:/usr/local/bin" 40341 for as_dir in $as_dummy 40342 do 40343 IFS=$as_save_IFS 40344 test -z "$as_dir" && as_dir=. 40345 for ac_exec_ext in '' $ac_executable_extensions; do 40346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40347 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 40348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40349 break 2 40350 fi 40351 done 40352 done 40353 IFS=$as_save_IFS 40354 40355 ;; 40356 esac 40357 fi 40358 PKGCONFIG=$ac_cv_path_PKGCONFIG 40359 if test -n "$PKGCONFIG"; then 40360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 40361 $as_echo "$PKGCONFIG" >&6; } 40362 else 40363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40364 $as_echo "no" >&6; } 40365 fi 40366 40367 40368 fi 40369 if test -z "$ac_cv_path_PKGCONFIG"; then 40370 ac_pt_PKGCONFIG=$PKGCONFIG 40371 # Extract the first word of "pkg-config", so it can be a program name with args. 40372 set dummy pkg-config; ac_word=$2 40373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40374 $as_echo_n "checking for $ac_word... " >&6; } 40375 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : 40376 $as_echo_n "(cached) " >&6 40377 else 40378 case $ac_pt_PKGCONFIG in 40379 [\\/]* | ?:[\\/]*) 40380 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 40381 ;; 40382 *) 40383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40384 as_dummy="$PATH:/usr/bin:/usr/local/bin" 40385 for as_dir in $as_dummy 40386 do 40387 IFS=$as_save_IFS 40388 test -z "$as_dir" && as_dir=. 40389 for ac_exec_ext in '' $ac_executable_extensions; do 40390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40391 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 40392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40393 break 2 40394 fi 40395 done 40396 done 40397 IFS=$as_save_IFS 40398 40399 ;; 40400 esac 40401 fi 40402 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 40403 if test -n "$ac_pt_PKGCONFIG"; then 40404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 40405 $as_echo "$ac_pt_PKGCONFIG" >&6; } 40406 else 40407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40408 $as_echo "no" >&6; } 40409 fi 40410 40411 if test "x$ac_pt_PKGCONFIG" = x; then 40412 PKGCONFIG="no" 40413 else 40414 case $cross_compiling:$ac_tool_warned in 40415 yes:) 40416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 40417 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 40418 ac_tool_warned=yes ;; 40419 esac 40420 PKGCONFIG=$ac_pt_PKGCONFIG 40421 fi 40422 else 40423 PKGCONFIG="$ac_cv_path_PKGCONFIG" 40424 fi 40425 40426 fi 40427 40428 if test "x$PKGCONFIG" != "xno"; then 40429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5 40430 $as_echo_n "checking for libcares options with pkg-config... " >&6; } 40431 itexists=` 40432 if test -n ""; then 40433 PKG_CONFIG_LIBDIR="" 40434 export PKG_CONFIG_LIBDIR 40435 fi 40436 $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1` 40437 40438 if test -z "$itexists"; then 40439 PKGCONFIG="no" 40440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40441 $as_echo "no" >&6; } 40442 else 40443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 40444 $as_echo "found" >&6; } 40445 fi 40446 fi 40447 40448 if test "$PKGCONFIG" != "no" ; then 40449 ares_LIBS=`$PKGCONFIG --libs-only-l libcares` 40450 ares_LDFLAGS=`$PKGCONFIG --libs-only-L libcares` 40451 ares_CPPFLAGS=`$PKGCONFIG --cflags-only-I libcares` 40452 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&5 40453 $as_echo "$as_me: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&6;} 40454 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&5 40455 $as_echo "$as_me: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&6;} 40456 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&5 40457 $as_echo "$as_me: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;} 40458 else 40459 ares_CPPFLAGS="" 40460 ares_LDFLAGS="" 40461 ares_LIBS="-lcares" 40462 fi 40463 fi 40464 fi 40465 # 40466 CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS" 40467 LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS" 40468 LIBS="$ares_LIBS $clean_LIBS" 40469 # 40470 if test "$embedded_ares" != "yes"; then 40471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5 40472 $as_echo_n "checking that c-ares is good and recent enough... " >&6; } 40473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40474 /* end confdefs.h. */ 40475 40476 40477 #include <ares.h> 40478 /* set of dummy functions in case c-ares was built with debug */ 40479 void curl_dofree() { } 40480 void curl_sclose() { } 40481 void curl_domalloc() { } 40482 void curl_docalloc() { } 40483 void curl_socket() { } 40484 40485 int main (void) 40486 { 40487 40488 ares_channel channel; 40489 ares_cancel(channel); /* added in 1.2.0 */ 40490 ares_process_fd(channel, 0, 0); /* added in 1.4.0 */ 40491 ares_dup(&channel, channel); /* added in 1.6.0 */ 40492 40493 ; 40494 return 0; 40495 } 40496 40497 _ACEOF 40498 if ac_fn_c_try_link "$LINENO"; then : 40499 40500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40501 $as_echo "yes" >&6; } 40502 40503 else 40504 40505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40506 $as_echo "no" >&6; } 40507 as_fn_error $? "c-ares library defective or too old" "$LINENO" 5 40508 CPPFLAGS="$clean_CPPFLAGS" 40509 LDFLAGS="$clean_LDFLAGS" 40510 LIBS="$clean_LIBS" 40511 # prevent usage 40512 want_ares="no" 40513 40514 fi 40515 rm -f core conftest.err conftest.$ac_objext \ 40516 conftest$ac_exeext conftest.$ac_ext 40517 fi 40518 if test "$want_ares" = "yes"; then 40519 40520 $as_echo "#define USE_ARES 1" >>confdefs.h 40521 40522 USE_ARES=1 40523 40524 curl_res_msg="c-ares" 40525 fi 40526 fi 40527 40528 if test x$embedded_ares = xyes; then 40529 USE_EMBEDDED_ARES_TRUE= 40530 USE_EMBEDDED_ARES_FALSE='#' 40531 else 40532 USE_EMBEDDED_ARES_TRUE='#' 40533 USE_EMBEDDED_ARES_FALSE= 40534 fi 40535 40536 40537 if test "x$curl_cv_native_windows" != "xyes" && 40538 test "x$enable_shared" = "xyes"; then 40539 build_libhostname=yes 40540 else 40541 build_libhostname=no 40542 fi 40543 if test x$build_libhostname = xyes; then 40544 BUILD_LIBHOSTNAME_TRUE= 40545 BUILD_LIBHOSTNAME_FALSE='#' 40546 else 40547 BUILD_LIBHOSTNAME_TRUE='#' 40548 BUILD_LIBHOSTNAME_FALSE= 40549 fi 40550 40551 40552 if test "x$want_ares" != xyes; then 40553 40554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5 40555 $as_echo_n "checking whether to enable the threaded resolver... " >&6; } 40556 OPT_THRES="default" 40557 # Check whether --enable-threaded_resolver was given. 40558 if test "${enable_threaded_resolver+set}" = set; then : 40559 enableval=$enable_threaded_resolver; OPT_THRES=$enableval 40560 fi 40561 40562 case "$OPT_THRES" in 40563 no) 40564 want_thres="no" 40565 ;; 40566 *) 40567 want_thres="yes" 40568 ;; 40569 esac 40570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5 40571 $as_echo "$want_thres" >&6; } 40572 40573 fi 40574 40575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use POSIX threads for threaded resolver" >&5 40576 $as_echo_n "checking whether to use POSIX threads for threaded resolver... " >&6; } 40577 # Check whether --enable-pthreads was given. 40578 if test "${enable_pthreads+set}" = set; then : 40579 enableval=$enable_pthreads; case "$enableval" in 40580 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40581 $as_echo "no" >&6; } 40582 want_pthreads=no 40583 ;; 40584 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40585 $as_echo "yes" >&6; } 40586 want_pthreads=yes 40587 ;; 40588 esac 40589 else 40590 40591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5 40592 $as_echo "auto" >&6; } 40593 want_pthreads=auto 40594 40595 40596 fi 40597 40598 40599 if test "$want_pthreads" != "no"; then 40600 if test "$want_pthreads" = "yes" && test "$dontwant_rt" = "yes"; then 40601 as_fn_error $? "options --enable-pthreads and --disable-rt are mutually exclusive" "$LINENO" 5 40602 fi 40603 if test "$dontwant_rt" != "no"; then 40604 if test "$want_pthreads" = "yes"; then 40605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-pthreads Ignored since librt is disabled." >&5 40606 $as_echo "$as_me: WARNING: --enable-pthreads Ignored since librt is disabled." >&2;} 40607 fi 40608 want_pthreads=no 40609 fi 40610 fi 40611 40612 if test "$want_pthreads" != "no" && test "$want_thres" != "yes"; then 40613 want_pthreads=no 40614 fi 40615 40616 if test "$want_pthreads" != "no"; then 40617 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 40618 if test "x$ac_cv_header_pthread_h" = xyes; then : 40619 40620 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h 40621 40622 save_CFLAGS="$CFLAGS" 40623 40624 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create" 40625 if test "x$ac_cv_func_pthread_create" = xyes; then : 40626 USE_THREADS_POSIX=1 40627 fi 40628 40629 40630 case $host in 40631 *-hp-hpux*) 40632 USE_THREADS_POSIX="" 40633 ;; 40634 *) 40635 ;; 40636 esac 40637 40638 if test "$USE_THREADS_POSIX" != "1" 40639 then 40640 CFLAGS="$CFLAGS -pthread" 40641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 40642 $as_echo_n "checking for pthread_create in -lpthread... " >&6; } 40643 if ${ac_cv_lib_pthread_pthread_create+:} false; then : 40644 $as_echo_n "(cached) " >&6 40645 else 40646 ac_check_lib_save_LIBS=$LIBS 40647 LIBS="-lpthread $LIBS" 40648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40649 /* end confdefs.h. */ 40650 40651 40652 #ifdef __cplusplus 40653 extern "C" 40654 #endif 40655 char pthread_create (); 40656 int main (void) 40657 { 40658 return pthread_create (); 40659 ; 40660 return 0; 40661 } 40662 _ACEOF 40663 if ac_fn_c_try_link "$LINENO"; then : 40664 ac_cv_lib_pthread_pthread_create=yes 40665 else 40666 ac_cv_lib_pthread_pthread_create=no 40667 fi 40668 rm -f core conftest.err conftest.$ac_objext \ 40669 conftest$ac_exeext conftest.$ac_ext 40670 LIBS=$ac_check_lib_save_LIBS 40671 fi 40672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 40673 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } 40674 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : 40675 USE_THREADS_POSIX=1 40676 else 40677 CFLAGS="$save_CFLAGS" 40678 fi 40679 40680 fi 40681 40682 if test "x$USE_THREADS_POSIX" = "x1" 40683 then 40684 40685 $as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h 40686 40687 curl_res_msg="POSIX threaded" 40688 fi 40689 40690 fi 40691 40692 40693 fi 40694 40695 if test "$want_thres" = "yes" && test "x$USE_THREADS_POSIX" != "x1"; then 40696 if test "$want_pthreads" = "yes"; then 40697 as_fn_error $? "--enable-pthreads but pthreads was not found" "$LINENO" 5 40698 fi 40699 if test "$curl_cv_native_windows" = "yes"; then 40700 USE_THREADS_WIN32=1 40701 40702 $as_echo "#define USE_THREADS_WIN32 1" >>confdefs.h 40703 40704 curl_res_msg="Win32 threaded" 40705 else 40706 as_fn_error $? "Threaded resolver enabled but no thread library found" "$LINENO" 5 40707 fi 40708 fi 40709 40710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5 40711 $as_echo_n "checking whether to enable verbose strings... " >&6; } 40712 # Check whether --enable-verbose was given. 40713 if test "${enable_verbose+set}" = set; then : 40714 enableval=$enable_verbose; case "$enableval" in 40715 no) 40716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40717 $as_echo "no" >&6; } 40718 40719 $as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h 40720 40721 curl_verbose_msg="no" 40722 ;; 40723 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40724 $as_echo "yes" >&6; } 40725 ;; 40726 esac 40727 else 40728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40729 $as_echo "yes" >&6; } 40730 40731 fi 40732 40733 40734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5 40735 $as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; } 40736 # Check whether --enable-sspi was given. 40737 if test "${enable_sspi+set}" = set; then : 40738 enableval=$enable_sspi; case "$enableval" in 40739 yes) 40740 if test "$curl_cv_native_windows" = "yes"; then 40741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40742 $as_echo "yes" >&6; } 40743 40744 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h 40745 40746 USE_WINDOWS_SSPI=1 40747 40748 curl_sspi_msg="enabled" 40749 else 40750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40751 $as_echo "no" >&6; } 40752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5 40753 $as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;} 40754 fi 40755 ;; 40756 *) 40757 if test "x$WINSSL_ENABLED" = "x1"; then 40758 # --with-winssl implies --enable-sspi 40759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40760 $as_echo "yes" >&6; } 40761 else 40762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40763 $as_echo "no" >&6; } 40764 fi 40765 ;; 40766 esac 40767 else 40768 if test "x$WINSSL_ENABLED" = "x1"; then 40769 # --with-winssl implies --enable-sspi 40770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40771 $as_echo "yes" >&6; } 40772 else 40773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40774 $as_echo "no" >&6; } 40775 fi 40776 40777 fi 40778 40779 40780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5 40781 $as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; } 40782 # Check whether --enable-crypto-auth was given. 40783 if test "${enable_crypto_auth+set}" = set; then : 40784 enableval=$enable_crypto_auth; case "$enableval" in 40785 no) 40786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40787 $as_echo "no" >&6; } 40788 40789 $as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h 40790 40791 CURL_DISABLE_CRYPTO_AUTH=1 40792 ;; 40793 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40794 $as_echo "yes" >&6; } 40795 ;; 40796 esac 40797 else 40798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40799 $as_echo "yes" >&6; } 40800 40801 fi 40802 40803 40804 40805 OPT_NTLM_WB="default" 40806 # Check whether --enable-ntlm-wb was given. 40807 if test "${enable_ntlm_wb+set}" = set; then : 40808 enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval 40809 fi 40810 40811 want_ntlm_wb_file="/usr/bin/ntlm_auth" 40812 case "$OPT_NTLM_WB" in 40813 no) 40814 want_ntlm_wb="no" 40815 ;; 40816 default) 40817 want_ntlm_wb="yes" 40818 ;; 40819 *) 40820 want_ntlm_wb="yes" 40821 if test -n "$enableval" && test "$enableval" != "yes"; then 40822 want_ntlm_wb_file="$enableval" 40823 fi 40824 ;; 40825 esac 40826 40827 40828 40829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5 40830 $as_echo_n "checking whether to enable NTLM delegation to winbind's helper... " >&6; } 40831 if test "$curl_cv_native_windows" = "yes" || 40832 test "x$SSL_ENABLED" = "x"; then 40833 want_ntlm_wb_file="" 40834 want_ntlm_wb="no" 40835 fi 40836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5 40837 $as_echo "$want_ntlm_wb" >&6; } 40838 if test "$want_ntlm_wb" = "yes"; then 40839 40840 $as_echo "#define NTLM_WB_ENABLED 1" >>confdefs.h 40841 40842 40843 cat >>confdefs.h <<_ACEOF 40844 #define NTLM_WB_FILE "$want_ntlm_wb_file" 40845 _ACEOF 40846 40847 NTLM_WB_ENABLED=1 40848 fi 40849 40850 40851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5 40852 $as_echo_n "checking whether to enable TLS-SRP authentication... " >&6; } 40853 # Check whether --enable-tls-srp was given. 40854 if test "${enable_tls_srp+set}" = set; then : 40855 enableval=$enable_tls_srp; case "$enableval" in 40856 no) 40857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40858 $as_echo "no" >&6; } 40859 40860 $as_echo "#define CURL_DISABLE_TLS_SRP 1" >>confdefs.h 40861 40862 want_tls_srp=no 40863 ;; 40864 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40865 $as_echo "yes" >&6; } 40866 want_tls_srp=yes 40867 ;; 40868 esac 40869 else 40870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40871 $as_echo "yes" >&6; } 40872 want_tls_srp=yes 40873 40874 fi 40875 40876 40877 if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then 40878 40879 $as_echo "#define USE_TLS_SRP 1" >>confdefs.h 40880 40881 USE_TLS_SRP=1 40882 curl_tls_srp_msg="enabled" 40883 fi 40884 40885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5 40886 $as_echo_n "checking whether to enable Unix domain sockets... " >&6; } 40887 # Check whether --enable-unix-sockets was given. 40888 if test "${enable_unix_sockets+set}" = set; then : 40889 enableval=$enable_unix_sockets; case "$enableval" in 40890 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40891 $as_echo "no" >&6; } 40892 want_unix_sockets=no 40893 ;; 40894 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40895 $as_echo "yes" >&6; } 40896 want_unix_sockets=yes 40897 ;; 40898 esac 40899 else 40900 40901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5 40902 $as_echo "auto" >&6; } 40903 want_unix_sockets=auto 40904 40905 40906 fi 40907 40908 if test "x$want_unix_sockets" != "xno"; then 40909 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" " 40910 #include <sys/un.h> 40911 40912 " 40913 if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes; then : 40914 40915 40916 $as_echo "#define USE_UNIX_SOCKETS 1" >>confdefs.h 40917 40918 USE_UNIX_SOCKETS=1 40919 40920 curl_unix_sockets_msg="enabled" 40921 40922 else 40923 40924 if test "x$want_unix_sockets" = "xyes"; then 40925 as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5 40926 fi 40927 40928 fi 40929 40930 fi 40931 40932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable support for cookies" >&5 40933 $as_echo_n "checking whether to enable support for cookies... " >&6; } 40934 # Check whether --enable-cookies was given. 40935 if test "${enable_cookies+set}" = set; then : 40936 enableval=$enable_cookies; case "$enableval" in 40937 no) 40938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40939 $as_echo "no" >&6; } 40940 40941 $as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h 40942 40943 ;; 40944 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40945 $as_echo "yes" >&6; } 40946 ;; 40947 esac 40948 else 40949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40950 $as_echo "yes" >&6; } 40951 40952 fi 40953 40954 40955 curl_altsvc_msg="no (--enable-alt-svc)"; 40956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support alt-svc" >&5 40957 $as_echo_n "checking whether to support alt-svc... " >&6; } 40958 # Check whether --enable-alt-svc was given. 40959 if test "${enable_alt_svc+set}" = set; then : 40960 enableval=$enable_alt_svc; case "$enableval" in 40961 no) 40962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40963 $as_echo "no" >&6; } 40964 ;; 40965 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40966 $as_echo "yes" >&6; } 40967 curl_altsvc_msg="enabled"; 40968 enable_altsvc="yes" 40969 experimental="alt-svc" 40970 ;; 40971 esac 40972 else 40973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40974 $as_echo "no" >&6; } 40975 40976 fi 40977 40978 40979 if test "$enable_altsvc" = "yes"; then 40980 40981 $as_echo "#define USE_ALTSVC 1" >>confdefs.h 40982 40983 experimental="alt-svc" 40984 fi 40985 40986 40987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5 40988 $as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; } 40989 CFLAG_CURL_SYMBOL_HIDING="" 40990 doing_symbol_hiding="no" 40991 if test x"$curl_cv_native_windows" != "xyes" && 40992 test "$want_symbol_hiding" = "yes" && 40993 test "$supports_symbol_hiding" = "yes"; then 40994 doing_symbol_hiding="yes" 40995 CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS" 40996 40997 cat >>confdefs.h <<_ACEOF 40998 #define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN 40999 _ACEOF 41000 41001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41002 $as_echo "yes" >&6; } 41003 else 41004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41005 $as_echo "no" >&6; } 41006 fi 41007 if test x$doing_symbol_hiding = xyes; then 41008 DOING_CURL_SYMBOL_HIDING_TRUE= 41009 DOING_CURL_SYMBOL_HIDING_FALSE='#' 41010 else 41011 DOING_CURL_SYMBOL_HIDING_TRUE='#' 41012 DOING_CURL_SYMBOL_HIDING_FALSE= 41013 fi 41014 41015 41016 41017 41018 LIBCURL_LIBS=$LIBS 41019 41020 41021 41022 41023 41024 BLANK_AT_MAKETIME= 41025 41026 41027 if test x$cross_compiling = xyes; then 41028 CROSSCOMPILING_TRUE= 41029 CROSSCOMPILING_FALSE='#' 41030 else 41031 CROSSCOMPILING_TRUE='#' 41032 CROSSCOMPILING_FALSE= 41033 fi 41034 41035 41036 ENABLE_SHARED="$enable_shared" 41037 41038 41039 ENABLE_STATIC="$enable_static" 41040 41041 41042 41043 41044 if test "x$OPENSSL_ENABLED" = "x1"; then 41045 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL" 41046 elif test -n "$SSL_ENABLED"; then 41047 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL" 41048 fi 41049 if test "x$IPV6_ENABLED" = "x1"; then 41050 SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6" 41051 fi 41052 if test "x$USE_UNIX_SOCKETS" = "x1"; then 41053 SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets" 41054 fi 41055 if test "x$HAVE_LIBZ" = "x1"; then 41056 SUPPORT_FEATURES="$SUPPORT_FEATURES libz" 41057 fi 41058 if test "x$HAVE_BROTLI" = "x1"; then 41059 SUPPORT_FEATURES="$SUPPORT_FEATURES brotli" 41060 fi 41061 if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \ 41062 -o "x$USE_THREADS_WIN32" = "x1"; then 41063 SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS" 41064 fi 41065 if test "x$IDN_ENABLED" = "x1"; then 41066 SUPPORT_FEATURES="$SUPPORT_FEATURES IDN" 41067 fi 41068 if test "x$USE_WINDOWS_SSPI" = "x1"; then 41069 SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI" 41070 fi 41071 41072 if test "x$HAVE_GSSAPI" = "x1"; then 41073 SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API" 41074 fi 41075 41076 if test "x$curl_psl_msg" = "xenabled"; then 41077 SUPPORT_FEATURES="$SUPPORT_FEATURES PSL" 41078 fi 41079 41080 if test "x$enable_altsvc" = "xyes"; then 41081 SUPPORT_FEATURES="$SUPPORT_FEATURES alt-svc" 41082 fi 41083 41084 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \ 41085 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then 41086 SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO" 41087 fi 41088 41089 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \ 41090 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then 41091 SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos" 41092 fi 41093 41094 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1"; then 41095 if test "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \ 41096 -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \ 41097 -o "x$NSS_ENABLED" = "x1" -o "x$SECURETRANSPORT_ENABLED" = "x1"; then 41098 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM" 41099 41100 if test "x$CURL_DISABLE_HTTP" != "x1" -a \ 41101 "x$NTLM_WB_ENABLED" = "x1"; then 41102 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB" 41103 fi 41104 fi 41105 fi 41106 41107 if test "x$USE_TLS_SRP" = "x1"; then 41108 SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP" 41109 fi 41110 41111 if test "x$USE_NGHTTP2" = "x1"; then 41112 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2" 41113 fi 41114 41115 if test "x$CURL_WITH_MULTI_SSL" = "x1"; then 41116 SUPPORT_FEATURES="$SUPPORT_FEATURES MultiSSL" 41117 fi 41118 41119 if test "x$OPENSSL_ENABLED" = "x1" -o "x$GNUTLS_ENABLED" = "x1" \ 41120 -o "x$NSS_ENABLED" = "x1"; then 41121 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy" 41122 fi 41123 41124 41125 41126 if test "x$CURL_DISABLE_HTTP" != "x1"; then 41127 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP" 41128 if test "x$SSL_ENABLED" = "x1"; then 41129 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS" 41130 fi 41131 fi 41132 if test "x$CURL_DISABLE_FTP" != "x1"; then 41133 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP" 41134 if test "x$SSL_ENABLED" = "x1"; then 41135 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS" 41136 fi 41137 fi 41138 if test "x$CURL_DISABLE_FILE" != "x1"; then 41139 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE" 41140 fi 41141 if test "x$CURL_DISABLE_TELNET" != "x1"; then 41142 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET" 41143 fi 41144 if test "x$CURL_DISABLE_LDAP" != "x1"; then 41145 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP" 41146 if test "x$CURL_DISABLE_LDAPS" != "x1"; then 41147 if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") || 41148 (test "x$USE_OPENLDAP" != "x1" && test "x$HAVE_LDAP_SSL" = "x1"); then 41149 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS" 41150 fi 41151 fi 41152 fi 41153 if test "x$CURL_DISABLE_DICT" != "x1"; then 41154 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT" 41155 fi 41156 if test "x$CURL_DISABLE_TFTP" != "x1"; then 41157 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP" 41158 fi 41159 if test "x$CURL_DISABLE_GOPHER" != "x1"; then 41160 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER" 41161 fi 41162 if test "x$CURL_DISABLE_POP3" != "x1"; then 41163 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3" 41164 if test "x$SSL_ENABLED" = "x1"; then 41165 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S" 41166 fi 41167 fi 41168 if test "x$CURL_DISABLE_IMAP" != "x1"; then 41169 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP" 41170 if test "x$SSL_ENABLED" = "x1"; then 41171 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS" 41172 fi 41173 fi 41174 if test "x$CURL_DISABLE_SMB" != "x1" \ 41175 -a "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" \ 41176 -a \( "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \ 41177 -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \ 41178 -o "x$NSS_ENABLED" = "x1" -o "x$SECURETRANSPORT_ENABLED" = "x1" \); then 41179 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB" 41180 if test "x$SSL_ENABLED" = "x1"; then 41181 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS" 41182 fi 41183 fi 41184 if test "x$CURL_DISABLE_SMTP" != "x1"; then 41185 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP" 41186 if test "x$SSL_ENABLED" = "x1"; then 41187 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS" 41188 fi 41189 fi 41190 if test "x$USE_LIBSSH2" = "x1"; then 41191 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP" 41192 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP" 41193 fi 41194 if test "x$USE_LIBSSH" = "x1"; then 41195 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP" 41196 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP" 41197 fi 41198 if test "x$CURL_DISABLE_RTSP" != "x1"; then 41199 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP" 41200 fi 41201 if test "x$USE_LIBRTMP" = "x1"; then 41202 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP" 41203 fi 41204 41205 SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '` 41206 41207 41208 41209 41210 squeeze CFLAGS 41211 squeeze CPPFLAGS 41212 squeeze DEFS 41213 squeeze LDFLAGS 41214 squeeze LIBS 41215 41216 squeeze LIBCURL_LIBS 41217 squeeze CURL_NETWORK_LIBS 41218 squeeze CURL_NETWORK_AND_TIME_LIBS 41219 41220 squeeze SUPPORT_FEATURES 41221 squeeze SUPPORT_PROTOCOLS 41222 41223 41224 41225 xc_bad_var_libs=no 41226 for xc_word in $LIBS; do 41227 case "$xc_word" in 41228 -l* | --library=*) 41229 : 41230 ;; 41231 *) 41232 xc_bad_var_libs=yes 41233 ;; 41234 esac 41235 done 41236 if test $xc_bad_var_libs = yes; then 41237 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5 41238 $as_echo "$as_me: using LIBS: $LIBS" >&6;} 41239 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5 41240 $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;} 41241 fi 41242 41243 41244 xc_bad_var_ldflags=no 41245 for xc_word in $LDFLAGS; do 41246 case "$xc_word" in 41247 -D*) 41248 xc_bad_var_ldflags=yes 41249 ;; 41250 -U*) 41251 xc_bad_var_ldflags=yes 41252 ;; 41253 -I*) 41254 xc_bad_var_ldflags=yes 41255 ;; 41256 -l* | --library=*) 41257 xc_bad_var_ldflags=yes 41258 ;; 41259 esac 41260 done 41261 if test $xc_bad_var_ldflags = yes; then 41262 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5 41263 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;} 41264 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not" 41265 for xc_word in $LDFLAGS; do 41266 case "$xc_word" in 41267 -D*) 41268 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5 41269 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;} 41270 ;; 41271 -U*) 41272 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5 41273 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;} 41274 ;; 41275 -I*) 41276 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5 41277 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;} 41278 ;; 41279 -l* | --library=*) 41280 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5 41281 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;} 41282 ;; 41283 esac 41284 done 41285 fi 41286 41287 41288 xc_bad_var_cppflags=no 41289 for xc_word in $CPPFLAGS; do 41290 case "$xc_word" in 41291 -rpath*) 41292 xc_bad_var_cppflags=yes 41293 ;; 41294 -L* | --library-path=*) 41295 xc_bad_var_cppflags=yes 41296 ;; 41297 -l* | --library=*) 41298 xc_bad_var_cppflags=yes 41299 ;; 41300 esac 41301 done 41302 if test $xc_bad_var_cppflags = yes; then 41303 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5 41304 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;} 41305 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not" 41306 for xc_word in $CPPFLAGS; do 41307 case "$xc_word" in 41308 -rpath*) 41309 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5 41310 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;} 41311 ;; 41312 -L* | --library-path=*) 41313 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5 41314 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;} 41315 ;; 41316 -l* | --library=*) 41317 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5 41318 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;} 41319 ;; 41320 esac 41321 done 41322 fi 41323 41324 41325 xc_bad_var_cflags=no 41326 for xc_word in $CFLAGS; do 41327 case "$xc_word" in 41328 -D*) 41329 xc_bad_var_cflags=yes 41330 ;; 41331 -U*) 41332 xc_bad_var_cflags=yes 41333 ;; 41334 -I*) 41335 xc_bad_var_cflags=yes 41336 ;; 41337 -rpath*) 41338 xc_bad_var_cflags=yes 41339 ;; 41340 -L* | --library-path=*) 41341 xc_bad_var_cflags=yes 41342 ;; 41343 -l* | --library=*) 41344 xc_bad_var_cflags=yes 41345 ;; 41346 esac 41347 done 41348 if test $xc_bad_var_cflags = yes; then 41349 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5 41350 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;} 41351 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not" 41352 for xc_word in $CFLAGS; do 41353 case "$xc_word" in 41354 -D*) 41355 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5 41356 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;} 41357 ;; 41358 -U*) 41359 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5 41360 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;} 41361 ;; 41362 -I*) 41363 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5 41364 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;} 41365 ;; 41366 -rpath*) 41367 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5 41368 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;} 41369 ;; 41370 -L* | --library-path=*) 41371 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5 41372 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;} 41373 ;; 41374 -l* | --library=*) 41375 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5 41376 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;} 41377 ;; 41378 esac 41379 done 41380 fi 41381 41382 if test $xc_bad_var_libs = yes || 41383 test $xc_bad_var_cflags = yes || 41384 test $xc_bad_var_ldflags = yes || 41385 test $xc_bad_var_cppflags = yes; then 41386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5 41387 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;} 41388 fi 41389 41390 41391 SSL_BACKENDS=${ssl_backends} 41392 41393 41394 if test "x$want_curldebug_assumed" = "xyes" && 41395 test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then 41396 ac_configure_args="$ac_configure_args --enable-curldebug" 41397 fi 41398 41399 ac_config_files="$ac_config_files Makefile docs/Makefile docs/examples/Makefile docs/libcurl/Makefile docs/libcurl/opts/Makefile docs/cmdline-opts/Makefile include/Makefile include/curl/Makefile src/Makefile lib/Makefile scripts/Makefile lib/libcurl.vers tests/Makefile tests/certs/Makefile tests/certs/scripts/Makefile tests/data/Makefile tests/server/Makefile tests/libtest/Makefile tests/unit/Makefile packages/Makefile packages/vms/Makefile curl-config libcurl.pc" 41400 41401 cat >confcache <<\_ACEOF 41402 # This file is a shell script that caches the results of configure 41403 # tests run on this system so they can be shared between configure 41404 # scripts and configure runs, see configure's option --config-cache. 41405 # It is not useful on other systems. If it contains results you don't 41406 # want to keep, you may remove or edit it. 41407 # 41408 # config.status only pays attention to the cache file if you give it 41409 # the --recheck option to rerun configure. 41410 # 41411 # `ac_cv_env_foo' variables (set or unset) will be overridden when 41412 # loading this file, other *unset* `ac_cv_foo' will be assigned the 41413 # following values. 41414 41415 _ACEOF 41416 41417 # The following way of writing the cache mishandles newlines in values, 41418 # but we know of no workaround that is simple, portable, and efficient. 41419 # So, we kill variables containing newlines. 41420 # Ultrix sh set writes to stderr and can't be redirected directly, 41421 # and sets the high bit in the cache file unless we assign to the vars. 41422 ( 41423 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 41424 eval ac_val=\$$ac_var 41425 case $ac_val in #( 41426 *${as_nl}*) 41427 case $ac_var in #( 41428 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 41429 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 41430 esac 41431 case $ac_var in #( 41432 _ | IFS | as_nl) ;; #( 41433 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 41434 *) { eval $ac_var=; unset $ac_var;} ;; 41435 esac ;; 41436 esac 41437 done 41438 41439 (set) 2>&1 | 41440 case $as_nl`(ac_space=' '; set) 2>&1` in #( 41441 *${as_nl}ac_space=\ *) 41442 # `set' does not quote correctly, so add quotes: double-quote 41443 # substitution turns \\\\ into \\, and sed turns \\ into \. 41444 sed -n \ 41445 "s/'/'\\\\''/g; 41446 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 41447 ;; #( 41448 *) 41449 # `set' quotes correctly as required by POSIX, so do not add quotes. 41450 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 41451 ;; 41452 esac | 41453 sort 41454 ) | 41455 sed ' 41456 /^ac_cv_env_/b end 41457 t clear 41458 :clear 41459 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 41460 t end 41461 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 41462 :end' >>confcache 41463 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 41464 if test -w "$cache_file"; then 41465 if test "x$cache_file" != "x/dev/null"; then 41466 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 41467 $as_echo "$as_me: updating cache $cache_file" >&6;} 41468 if test ! -f "$cache_file" || test -h "$cache_file"; then 41469 cat confcache >"$cache_file" 41470 else 41471 case $cache_file in #( 41472 */* | ?:*) 41473 mv -f confcache "$cache_file"$$ && 41474 mv -f "$cache_file"$$ "$cache_file" ;; #( 41475 *) 41476 mv -f confcache "$cache_file" ;; 41477 esac 41478 fi 41479 fi 41480 else 41481 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 41482 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 41483 fi 41484 fi 41485 rm -f confcache 41486 41487 test "x$prefix" = xNONE && prefix=$ac_default_prefix 41488 # Let make expand exec_prefix. 41489 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 41490 41491 DEFS=-DHAVE_CONFIG_H 41492 41493 ac_libobjs= 41494 ac_ltlibobjs= 41495 U= 41496 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 41497 # 1. Remove the extension, and $U if already installed. 41498 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 41499 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 41500 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 41501 # will be set to the directory where LIBOBJS objects are built. 41502 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 41503 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 41504 done 41505 LIBOBJS=$ac_libobjs 41506 41507 LTLIBOBJS=$ac_ltlibobjs 41508 41509 41510 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 41511 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 41512 Usually this means the macro was only invoked conditionally." "$LINENO" 5 41513 fi 41514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 41515 $as_echo_n "checking that generated files are newer than configure... " >&6; } 41516 if test -n "$am_sleep_pid"; then 41517 # Hide warnings about reused PIDs. 41518 wait $am_sleep_pid 2>/dev/null 41519 fi 41520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 41521 $as_echo "done" >&6; } 41522 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 41523 as_fn_error $? "conditional \"AMDEP\" was never defined. 41524 Usually this means the macro was only invoked conditionally." "$LINENO" 5 41525 fi 41526 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 41527 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 41528 Usually this means the macro was only invoked conditionally." "$LINENO" 5 41529 fi 41530 if test -n "$EXEEXT"; then 41531 am__EXEEXT_TRUE= 41532 am__EXEEXT_FALSE='#' 41533 else 41534 am__EXEEXT_TRUE='#' 41535 am__EXEEXT_FALSE= 41536 fi 41537 41538 if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then 41539 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined. 41540 Usually this means the macro was only invoked conditionally." "$LINENO" 5 41541 fi 41542 if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then 41543 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined. 41544 Usually this means the macro was only invoked conditionally." "$LINENO" 5 41545 fi 41546 if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then 41547 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined. 41548 Usually this means the macro was only invoked conditionally." "$LINENO" 5 41549 fi 41550 if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then 41551 as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined. 41552 Usually this means the macro was only invoked conditionally." "$LINENO" 5 41553 fi 41554 if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then 41555 as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined. 41556 Usually this means the macro was only invoked conditionally." "$LINENO" 5 41557 fi 41558 if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then 41559 as_fn_error $? "conditional \"CURLDEBUG\" was never defined. 41560 Usually this means the macro was only invoked conditionally." "$LINENO" 5 41561 fi 41562 if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then 41563 as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined. 41564 Usually this means the macro was only invoked conditionally." "$LINENO" 5 41565 fi 41566 if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then 41567 as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined. 41568 Usually this means the macro was only invoked conditionally." "$LINENO" 5 41569 fi 41570 if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then 41571 as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined. 41572 Usually this means the macro was only invoked conditionally." "$LINENO" 5 41573 fi 41574 if test -z "${BUILD_STUB_GSS_TRUE}" && test -z "${BUILD_STUB_GSS_FALSE}"; then 41575 as_fn_error $? "conditional \"BUILD_STUB_GSS\" was never defined. 41576 Usually this means the macro was only invoked conditionally." "$LINENO" 5 41577 fi 41578 if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then 41579 as_fn_error $? "conditional \"USE_LIBPSL\" was never defined. 41580 Usually this means the macro was only invoked conditionally." "$LINENO" 5 41581 fi 41582 if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then 41583 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined. 41584 Usually this means the macro was only invoked conditionally." "$LINENO" 5 41585 fi 41586 if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then 41587 as_fn_error $? "conditional \"USE_MANUAL\" was never defined. 41588 Usually this means the macro was only invoked conditionally." "$LINENO" 5 41589 fi 41590 if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then 41591 as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined. 41592 Usually this means the macro was only invoked conditionally." "$LINENO" 5 41593 fi 41594 if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then 41595 as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined. 41596 Usually this means the macro was only invoked conditionally." "$LINENO" 5 41597 fi 41598 if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then 41599 as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined. 41600 Usually this means the macro was only invoked conditionally." "$LINENO" 5 41601 fi 41602 if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then 41603 as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined. 41604 Usually this means the macro was only invoked conditionally." "$LINENO" 5 41605 fi 41606 41607 : "${CONFIG_STATUS=./config.status}" 41608 ac_write_fail=0 41609 ac_clean_files_save=$ac_clean_files 41610 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 41611 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 41612 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 41613 as_write_fail=0 41614 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 41615 #! $SHELL 41616 # Generated by $as_me. 41617 # Run this file to recreate the current configuration. 41618 # Compiler output produced by configure, useful for debugging 41619 # configure, is in config.log if it exists. 41620 41621 debug=false 41622 ac_cs_recheck=false 41623 ac_cs_silent=false 41624 41625 SHELL=\${CONFIG_SHELL-$SHELL} 41626 export SHELL 41627 _ASEOF 41628 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 41629 ## -------------------- ## 41630 ## M4sh Initialization. ## 41631 ## -------------------- ## 41632 41633 # Be more Bourne compatible 41634 DUALCASE=1; export DUALCASE # for MKS sh 41635 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 41636 emulate sh 41637 NULLCMD=: 41638 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 41639 # is contrary to our usage. Disable this feature. 41640 alias -g '${1+"$@"}'='"$@"' 41641 setopt NO_GLOB_SUBST 41642 else 41643 case `(set -o) 2>/dev/null` in #( 41644 *posix*) : 41645 set -o posix ;; #( 41646 *) : 41647 ;; 41648 esac 41649 fi 41650 41651 41652 as_nl=' 41653 ' 41654 export as_nl 41655 # Printing a long string crashes Solaris 7 /usr/bin/printf. 41656 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41657 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 41658 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41659 # Prefer a ksh shell builtin over an external printf program on Solaris, 41660 # but without wasting forks for bash or zsh. 41661 if test -z "$BASH_VERSION$ZSH_VERSION" \ 41662 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 41663 as_echo='print -r --' 41664 as_echo_n='print -rn --' 41665 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 41666 as_echo='printf %s\n' 41667 as_echo_n='printf %s' 41668 else 41669 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 41670 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 41671 as_echo_n='/usr/ucb/echo -n' 41672 else 41673 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 41674 as_echo_n_body='eval 41675 arg=$1; 41676 case $arg in #( 41677 *"$as_nl"*) 41678 expr "X$arg" : "X\\(.*\\)$as_nl"; 41679 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 41680 esac; 41681 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 41682 ' 41683 export as_echo_n_body 41684 as_echo_n='sh -c $as_echo_n_body as_echo' 41685 fi 41686 export as_echo_body 41687 as_echo='sh -c $as_echo_body as_echo' 41688 fi 41689 41690 41691 41692 # IFS 41693 # We need space, tab and new line, in precisely that order. Quoting is 41694 # there to prevent editors from complaining about space-tab. 41695 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 41696 # splitting by setting IFS to empty value.) 41697 IFS=" "" $as_nl" 41698 41699 # Find who we are. Look in the path if we contain no directory separator. 41700 as_myself= 41701 case $0 in #(( 41702 *[\\/]* ) as_myself=$0 ;; 41703 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41704 for as_dir in $PATH 41705 do 41706 IFS=$as_save_IFS 41707 test -z "$as_dir" && as_dir=. 41708 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 41709 done 41710 IFS=$as_save_IFS 41711 41712 ;; 41713 esac 41714 # We did not find ourselves, most probably we were run as `sh COMMAND' 41715 # in which case we are not to be found in the path. 41716 if test "x$as_myself" = x; then 41717 as_myself=$0 41718 fi 41719 if test ! -f "$as_myself"; then 41720 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 41721 exit 1 41722 fi 41723 41724 # Unset variables that we do not need and which cause bugs (e.g. in 41725 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 41726 # suppresses any "Segmentation fault" message there. '((' could 41727 # trigger a bug in pdksh 5.2.14. 41728 for as_var in BASH_ENV ENV MAIL MAILPATH 41729 do eval test x\${$as_var+set} = xset \ 41730 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 41731 done 41732 PS1='$ ' 41733 PS2='> ' 41734 PS4='+ ' 41735 41736 # NLS nuisances. 41737 LC_ALL=C 41738 export LC_ALL 41739 LANGUAGE=C 41740 export LANGUAGE 41741 41742 # CDPATH. 41743 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 41744 41745 41746 # as_fn_error STATUS ERROR [LINENO LOG_FD] 41747 # ---------------------------------------- 41748 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 41749 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 41750 # script with STATUS, using 1 if that was 0. 41751 as_fn_error () 41752 { 41753 as_status=$1; test $as_status -eq 0 && as_status=1 41754 if test "$4"; then 41755 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 41756 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 41757 fi 41758 $as_echo "$as_me: error: $2" >&2 41759 as_fn_exit $as_status 41760 } # as_fn_error 41761 41762 41763 # as_fn_set_status STATUS 41764 # ----------------------- 41765 # Set $? to STATUS, without forking. 41766 as_fn_set_status () 41767 { 41768 return $1 41769 } # as_fn_set_status 41770 41771 # as_fn_exit STATUS 41772 # ----------------- 41773 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 41774 as_fn_exit () 41775 { 41776 set +e 41777 as_fn_set_status $1 41778 exit $1 41779 } # as_fn_exit 41780 41781 # as_fn_unset VAR 41782 # --------------- 41783 # Portably unset VAR. 41784 as_fn_unset () 41785 { 41786 { eval $1=; unset $1;} 41787 } 41788 as_unset=as_fn_unset 41789 # as_fn_append VAR VALUE 41790 # ---------------------- 41791 # Append the text in VALUE to the end of the definition contained in VAR. Take 41792 # advantage of any shell optimizations that allow amortized linear growth over 41793 # repeated appends, instead of the typical quadratic growth present in naive 41794 # implementations. 41795 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 41796 eval 'as_fn_append () 41797 { 41798 eval $1+=\$2 41799 }' 41800 else 41801 as_fn_append () 41802 { 41803 eval $1=\$$1\$2 41804 } 41805 fi # as_fn_append 41806 41807 # as_fn_arith ARG... 41808 # ------------------ 41809 # Perform arithmetic evaluation on the ARGs, and store the result in the 41810 # global $as_val. Take advantage of shells that can avoid forks. The arguments 41811 # must be portable across $(()) and expr. 41812 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 41813 eval 'as_fn_arith () 41814 { 41815 as_val=$(( $* )) 41816 }' 41817 else 41818 as_fn_arith () 41819 { 41820 as_val=`expr "$@" || test $? -eq 1` 41821 } 41822 fi # as_fn_arith 41823 41824 41825 if expr a : '\(a\)' >/dev/null 2>&1 && 41826 test "X`expr 00001 : '.*\(...\)'`" = X001; then 41827 as_expr=expr 41828 else 41829 as_expr=false 41830 fi 41831 41832 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 41833 as_basename=basename 41834 else 41835 as_basename=false 41836 fi 41837 41838 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 41839 as_dirname=dirname 41840 else 41841 as_dirname=false 41842 fi 41843 41844 as_me=`$as_basename -- "$0" || 41845 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 41846 X"$0" : 'X\(//\)$' \| \ 41847 X"$0" : 'X\(/\)' \| . 2>/dev/null || 41848 $as_echo X/"$0" | 41849 sed '/^.*\/\([^/][^/]*\)\/*$/{ 41850 s//\1/ 41851 q 41852 } 41853 /^X\/\(\/\/\)$/{ 41854 s//\1/ 41855 q 41856 } 41857 /^X\/\(\/\).*/{ 41858 s//\1/ 41859 q 41860 } 41861 s/.*/./; q'` 41862 41863 # Avoid depending upon Character Ranges. 41864 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 41865 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 41866 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 41867 as_cr_digits='0123456789' 41868 as_cr_alnum=$as_cr_Letters$as_cr_digits 41869 41870 ECHO_C= ECHO_N= ECHO_T= 41871 case `echo -n x` in #((((( 41872 -n*) 41873 case `echo 'xy\c'` in 41874 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 41875 xy) ECHO_C='\c';; 41876 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 41877 ECHO_T=' ';; 41878 esac;; 41879 *) 41880 ECHO_N='-n';; 41881 esac 41882 41883 rm -f conf$$ conf$$.exe conf$$.file 41884 if test -d conf$$.dir; then 41885 rm -f conf$$.dir/conf$$.file 41886 else 41887 rm -f conf$$.dir 41888 mkdir conf$$.dir 2>/dev/null 41889 fi 41890 if (echo >conf$$.file) 2>/dev/null; then 41891 if ln -s conf$$.file conf$$ 2>/dev/null; then 41892 as_ln_s='ln -s' 41893 # ... but there are two gotchas: 41894 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 41895 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 41896 # In both cases, we have to default to `cp -pR'. 41897 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 41898 as_ln_s='cp -pR' 41899 elif ln conf$$.file conf$$ 2>/dev/null; then 41900 as_ln_s=ln 41901 else 41902 as_ln_s='cp -pR' 41903 fi 41904 else 41905 as_ln_s='cp -pR' 41906 fi 41907 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 41908 rmdir conf$$.dir 2>/dev/null 41909 41910 41911 # as_fn_mkdir_p 41912 # ------------- 41913 # Create "$as_dir" as a directory, including parents if necessary. 41914 as_fn_mkdir_p () 41915 { 41916 41917 case $as_dir in #( 41918 -*) as_dir=./$as_dir;; 41919 esac 41920 test -d "$as_dir" || eval $as_mkdir_p || { 41921 as_dirs= 41922 while :; do 41923 case $as_dir in #( 41924 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 41925 *) as_qdir=$as_dir;; 41926 esac 41927 as_dirs="'$as_qdir' $as_dirs" 41928 as_dir=`$as_dirname -- "$as_dir" || 41929 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 41930 X"$as_dir" : 'X\(//\)[^/]' \| \ 41931 X"$as_dir" : 'X\(//\)$' \| \ 41932 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 41933 $as_echo X"$as_dir" | 41934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 41935 s//\1/ 41936 q 41937 } 41938 /^X\(\/\/\)[^/].*/{ 41939 s//\1/ 41940 q 41941 } 41942 /^X\(\/\/\)$/{ 41943 s//\1/ 41944 q 41945 } 41946 /^X\(\/\).*/{ 41947 s//\1/ 41948 q 41949 } 41950 s/.*/./; q'` 41951 test -d "$as_dir" && break 41952 done 41953 test -z "$as_dirs" || eval "mkdir $as_dirs" 41954 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 41955 41956 41957 } # as_fn_mkdir_p 41958 if mkdir -p . 2>/dev/null; then 41959 as_mkdir_p='mkdir -p "$as_dir"' 41960 else 41961 test -d ./-p && rmdir ./-p 41962 as_mkdir_p=false 41963 fi 41964 41965 41966 # as_fn_executable_p FILE 41967 # ----------------------- 41968 # Test if FILE is an executable regular file. 41969 as_fn_executable_p () 41970 { 41971 test -f "$1" && test -x "$1" 41972 } # as_fn_executable_p 41973 as_test_x='test -x' 41974 as_executable_p=as_fn_executable_p 41975 41976 # Sed expression to map a string onto a valid CPP name. 41977 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 41978 41979 # Sed expression to map a string onto a valid variable name. 41980 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 41981 41982 41983 exec 6>&1 41984 ## ----------------------------------- ## 41985 ## Main body of $CONFIG_STATUS script. ## 41986 ## ----------------------------------- ## 41987 _ASEOF 41988 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 41989 41990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 41991 # Save the log message, to keep $0 and so on meaningful, and to 41992 # report actual input values of CONFIG_FILES etc. instead of their 41993 # values after options handling. 41994 ac_log=" 41995 This file was extended by curl $as_me -, which was 41996 generated by GNU Autoconf 2.69. Invocation command line was 41997 41998 CONFIG_FILES = $CONFIG_FILES 41999 CONFIG_HEADERS = $CONFIG_HEADERS 42000 CONFIG_LINKS = $CONFIG_LINKS 42001 CONFIG_COMMANDS = $CONFIG_COMMANDS 42002 $ $0 $@ 42003 42004 on `(hostname || uname -n) 2>/dev/null | sed 1q` 42005 " 42006 42007 _ACEOF 42008 42009 case $ac_config_files in *" 42010 "*) set x $ac_config_files; shift; ac_config_files=$*;; 42011 esac 42012 42013 case $ac_config_headers in *" 42014 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 42015 esac 42016 42017 42018 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 42019 # Files that config.status was made for. 42020 config_files="$ac_config_files" 42021 config_headers="$ac_config_headers" 42022 config_commands="$ac_config_commands" 42023 42024 _ACEOF 42025 42026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 42027 ac_cs_usage="\ 42028 \`$as_me' instantiates files and other configuration actions 42029 from templates according to the current configuration. Unless the files 42030 and actions are specified as TAGs, all are instantiated by default. 42031 42032 Usage: $0 [OPTION]... [TAG]... 42033 42034 -h, --help print this help, then exit 42035 -V, --version print version number and configuration settings, then exit 42036 --config print configuration, then exit 42037 -q, --quiet, --silent 42038 do not print progress messages 42039 -d, --debug don't remove temporary files 42040 --recheck update $as_me by reconfiguring in the same conditions 42041 --file=FILE[:TEMPLATE] 42042 instantiate the configuration file FILE 42043 --header=FILE[:TEMPLATE] 42044 instantiate the configuration header FILE 42045 42046 Configuration files: 42047 $config_files 42048 42049 Configuration headers: 42050 $config_headers 42051 42052 Configuration commands: 42053 $config_commands 42054 42055 Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>." 42056 42057 _ACEOF 42058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 42059 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 42060 ac_cs_version="\\ 42061 curl config.status - 42062 configured by $0, generated by GNU Autoconf 2.69, 42063 with options \\"\$ac_cs_config\\" 42064 42065 Copyright (C) 2012 Free Software Foundation, Inc. 42066 This config.status script is free software; the Free Software Foundation 42067 gives unlimited permission to copy, distribute and modify it." 42068 42069 ac_pwd='$ac_pwd' 42070 srcdir='$srcdir' 42071 INSTALL='$INSTALL' 42072 MKDIR_P='$MKDIR_P' 42073 AWK='$AWK' 42074 test -n "\$AWK" || AWK=awk 42075 _ACEOF 42076 42077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 42078 # The default lists apply if the user does not specify any file. 42079 ac_need_defaults=: 42080 while test $# != 0 42081 do 42082 case $1 in 42083 --*=?*) 42084 ac_option=`expr "X$1" : 'X\([^=]*\)='` 42085 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 42086 ac_shift=: 42087 ;; 42088 --*=) 42089 ac_option=`expr "X$1" : 'X\([^=]*\)='` 42090 ac_optarg= 42091 ac_shift=: 42092 ;; 42093 *) 42094 ac_option=$1 42095 ac_optarg=$2 42096 ac_shift=shift 42097 ;; 42098 esac 42099 42100 case $ac_option in 42101 # Handling of the options. 42102 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 42103 ac_cs_recheck=: ;; 42104 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 42105 $as_echo "$ac_cs_version"; exit ;; 42106 --config | --confi | --conf | --con | --co | --c ) 42107 $as_echo "$ac_cs_config"; exit ;; 42108 --debug | --debu | --deb | --de | --d | -d ) 42109 debug=: ;; 42110 --file | --fil | --fi | --f ) 42111 $ac_shift 42112 case $ac_optarg in 42113 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 42114 '') as_fn_error $? "missing file argument" ;; 42115 esac 42116 as_fn_append CONFIG_FILES " '$ac_optarg'" 42117 ac_need_defaults=false;; 42118 --header | --heade | --head | --hea ) 42119 $ac_shift 42120 case $ac_optarg in 42121 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 42122 esac 42123 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 42124 ac_need_defaults=false;; 42125 --he | --h) 42126 # Conflict between --help and --header 42127 as_fn_error $? "ambiguous option: \`$1' 42128 Try \`$0 --help' for more information.";; 42129 --help | --hel | -h ) 42130 $as_echo "$ac_cs_usage"; exit ;; 42131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 42132 | -silent | --silent | --silen | --sile | --sil | --si | --s) 42133 ac_cs_silent=: ;; 42134 42135 # This is an error. 42136 -*) as_fn_error $? "unrecognized option: \`$1' 42137 Try \`$0 --help' for more information." ;; 42138 42139 *) as_fn_append ac_config_targets " $1" 42140 ac_need_defaults=false ;; 42141 42142 esac 42143 shift 42144 done 42145 42146 ac_configure_extra_args= 42147 42148 if $ac_cs_silent; then 42149 exec 6>/dev/null 42150 ac_configure_extra_args="$ac_configure_extra_args --silent" 42151 fi 42152 42153 _ACEOF 42154 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 42155 if \$ac_cs_recheck; then 42156 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 42157 shift 42158 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 42159 CONFIG_SHELL='$SHELL' 42160 export CONFIG_SHELL 42161 exec "\$@" 42162 fi 42163 42164 _ACEOF 42165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 42166 exec 5>>config.log 42167 { 42168 echo 42169 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 42170 ## Running $as_me. ## 42171 _ASBOX 42172 $as_echo "$ac_log" 42173 } >&5 42174 42175 _ACEOF 42176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 42177 # 42178 # INIT-COMMANDS 42179 # 42180 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 42181 42182 42183 # The HP-UX ksh and POSIX shell print the target directory to stdout 42184 # if CDPATH is set. 42185 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 42186 42187 sed_quote_subst='$sed_quote_subst' 42188 double_quote_subst='$double_quote_subst' 42189 delay_variable_subst='$delay_variable_subst' 42190 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 42191 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 42192 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 42193 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 42194 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 42195 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 42196 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 42197 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 42198 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 42199 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 42200 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 42201 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 42202 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 42203 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 42204 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 42205 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 42206 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 42207 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 42208 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 42209 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 42210 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 42211 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 42212 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 42213 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 42214 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 42215 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 42216 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 42217 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 42218 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 42219 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 42220 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 42221 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 42222 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 42223 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 42224 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 42225 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 42226 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 42227 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 42228 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 42229 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 42230 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 42231 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 42232 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 42233 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 42234 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 42235 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 42236 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 42237 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 42238 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 42239 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 42240 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 42241 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 42242 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 42243 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 42244 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 42245 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 42246 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 42247 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 42248 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 42249 lt_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"`' 42250 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 42251 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 42252 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 42253 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 42254 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 42255 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 42256 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 42257 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 42258 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 42259 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 42260 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 42261 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 42262 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 42263 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 42264 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 42265 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 42266 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 42267 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 42268 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 42269 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 42270 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 42271 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 42272 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 42273 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 42274 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 42275 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 42276 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 42277 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 42278 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 42279 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 42280 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 42281 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 42282 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 42283 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 42284 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 42285 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 42286 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 42287 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 42288 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 42289 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 42290 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 42291 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 42292 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 42293 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 42294 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 42295 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 42296 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 42297 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 42298 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 42299 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 42300 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 42301 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 42302 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 42303 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 42304 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 42305 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 42306 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 42307 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 42308 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 42309 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 42310 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 42311 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 42312 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 42313 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 42314 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 42315 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 42316 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 42317 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 42318 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 42319 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 42320 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 42321 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 42322 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 42323 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 42324 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 42325 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 42326 42327 LTCC='$LTCC' 42328 LTCFLAGS='$LTCFLAGS' 42329 compiler='$compiler_DEFAULT' 42330 42331 # A function that is used when there is no print builtin or printf. 42332 func_fallback_echo () 42333 { 42334 eval 'cat <<_LTECHO_EOF 42335 \$1 42336 _LTECHO_EOF' 42337 } 42338 42339 # Quote evaled strings. 42340 for var in AS \ 42341 DLLTOOL \ 42342 OBJDUMP \ 42343 SHELL \ 42344 ECHO \ 42345 PATH_SEPARATOR \ 42346 SED \ 42347 GREP \ 42348 EGREP \ 42349 FGREP \ 42350 LD \ 42351 NM \ 42352 LN_S \ 42353 lt_SP2NL \ 42354 lt_NL2SP \ 42355 reload_flag \ 42356 deplibs_check_method \ 42357 file_magic_cmd \ 42358 file_magic_glob \ 42359 want_nocaseglob \ 42360 sharedlib_from_linklib_cmd \ 42361 AR \ 42362 AR_FLAGS \ 42363 archiver_list_spec \ 42364 STRIP \ 42365 RANLIB \ 42366 CC \ 42367 CFLAGS \ 42368 compiler \ 42369 lt_cv_sys_global_symbol_pipe \ 42370 lt_cv_sys_global_symbol_to_cdecl \ 42371 lt_cv_sys_global_symbol_to_import \ 42372 lt_cv_sys_global_symbol_to_c_name_address \ 42373 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 42374 lt_cv_nm_interface \ 42375 nm_file_list_spec \ 42376 lt_cv_truncate_bin \ 42377 lt_prog_compiler_no_builtin_flag \ 42378 lt_prog_compiler_pic \ 42379 lt_prog_compiler_wl \ 42380 lt_prog_compiler_static \ 42381 lt_cv_prog_compiler_c_o \ 42382 need_locks \ 42383 MANIFEST_TOOL \ 42384 DSYMUTIL \ 42385 NMEDIT \ 42386 LIPO \ 42387 OTOOL \ 42388 OTOOL64 \ 42389 shrext_cmds \ 42390 export_dynamic_flag_spec \ 42391 whole_archive_flag_spec \ 42392 compiler_needs_object \ 42393 with_gnu_ld \ 42394 allow_undefined_flag \ 42395 no_undefined_flag \ 42396 hardcode_libdir_flag_spec \ 42397 hardcode_libdir_separator \ 42398 exclude_expsyms \ 42399 include_expsyms \ 42400 file_list_spec \ 42401 variables_saved_for_relink \ 42402 libname_spec \ 42403 library_names_spec \ 42404 soname_spec \ 42405 install_override_mode \ 42406 finish_eval \ 42407 old_striplib \ 42408 striplib; do 42409 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 42410 *[\\\\\\\`\\"\\\$]*) 42411 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 42412 ;; 42413 *) 42414 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 42415 ;; 42416 esac 42417 done 42418 42419 # Double-quote double-evaled strings. 42420 for var in reload_cmds \ 42421 old_postinstall_cmds \ 42422 old_postuninstall_cmds \ 42423 old_archive_cmds \ 42424 extract_expsyms_cmds \ 42425 old_archive_from_new_cmds \ 42426 old_archive_from_expsyms_cmds \ 42427 archive_cmds \ 42428 archive_expsym_cmds \ 42429 module_cmds \ 42430 module_expsym_cmds \ 42431 export_symbols_cmds \ 42432 prelink_cmds \ 42433 postlink_cmds \ 42434 postinstall_cmds \ 42435 postuninstall_cmds \ 42436 finish_cmds \ 42437 sys_lib_search_path_spec \ 42438 configure_time_dlsearch_path \ 42439 configure_time_lt_sys_library_path; do 42440 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 42441 *[\\\\\\\`\\"\\\$]*) 42442 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 42443 ;; 42444 *) 42445 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 42446 ;; 42447 esac 42448 done 42449 42450 ac_aux_dir='$ac_aux_dir' 42451 42452 # See if we are running on zsh, and set the options that allow our 42453 # commands through without removal of \ escapes INIT. 42454 if test -n "\${ZSH_VERSION+set}"; then 42455 setopt NO_GLOB_SUBST 42456 fi 42457 42458 42459 PACKAGE='$PACKAGE' 42460 VERSION='$VERSION' 42461 RM='$RM' 42462 ofile='$ofile' 42463 42464 42465 42466 42467 _ACEOF 42468 42469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 42470 42471 # Handling of arguments. 42472 for ac_config_target in $ac_config_targets 42473 do 42474 case $ac_config_target in 42475 "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;; 42476 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 42477 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 42478 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 42479 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;; 42480 "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;; 42481 "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;; 42482 "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;; 42483 "docs/cmdline-opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/cmdline-opts/Makefile" ;; 42484 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 42485 "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;; 42486 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 42487 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 42488 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; 42489 "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;; 42490 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 42491 "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;; 42492 "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;; 42493 "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;; 42494 "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;; 42495 "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;; 42496 "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;; 42497 "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;; 42498 "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;; 42499 "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;; 42500 "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;; 42501 42502 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 42503 esac 42504 done 42505 42506 42507 # If the user did not use the arguments to specify the items to instantiate, 42508 # then the envvar interface is used. Set only those that are not. 42509 # We use the long form for the default assignment because of an extremely 42510 # bizarre bug on SunOS 4.1.3. 42511 if $ac_need_defaults; then 42512 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 42513 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 42514 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 42515 fi 42516 42517 # Have a temporary directory for convenience. Make it in the build tree 42518 # simply because there is no reason against having it here, and in addition, 42519 # creating and moving files from /tmp can sometimes cause problems. 42520 # Hook for its removal unless debugging. 42521 # Note that there is a small window in which the directory will not be cleaned: 42522 # after its creation but before its name has been assigned to `$tmp'. 42523 $debug || 42524 { 42525 tmp= ac_tmp= 42526 trap 'exit_status=$? 42527 : "${ac_tmp:=$tmp}" 42528 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 42529 ' 0 42530 trap 'as_fn_exit 1' 1 2 13 15 42531 } 42532 # Create a (secure) tmp directory for tmp files. 42533 42534 { 42535 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 42536 test -d "$tmp" 42537 } || 42538 { 42539 tmp=./conf$$-$RANDOM 42540 (umask 077 && mkdir "$tmp") 42541 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 42542 ac_tmp=$tmp 42543 42544 # Set up the scripts for CONFIG_FILES section. 42545 # No need to generate them if there are no CONFIG_FILES. 42546 # This happens for instance with `./config.status config.h'. 42547 if test -n "$CONFIG_FILES"; then 42548 42549 42550 ac_cr=`echo X | tr X '\015'` 42551 # On cygwin, bash can eat \r inside `` if the user requested igncr. 42552 # But we know of no other shell where ac_cr would be empty at this 42553 # point, so we can use a bashism as a fallback. 42554 if test "x$ac_cr" = x; then 42555 eval ac_cr=\$\'\\r\' 42556 fi 42557 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 42558 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 42559 ac_cs_awk_cr='\\r' 42560 else 42561 ac_cs_awk_cr=$ac_cr 42562 fi 42563 42564 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 42565 _ACEOF 42566 42567 42568 { 42569 echo "cat >conf$$subs.awk <<_ACEOF" && 42570 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 42571 echo "_ACEOF" 42572 } >conf$$subs.sh || 42573 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 42574 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 42575 ac_delim='%!_!# ' 42576 for ac_last_try in false false false false false :; do 42577 . ./conf$$subs.sh || 42578 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 42579 42580 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 42581 if test $ac_delim_n = $ac_delim_num; then 42582 break 42583 elif $ac_last_try; then 42584 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 42585 else 42586 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 42587 fi 42588 done 42589 rm -f conf$$subs.sh 42590 42591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 42592 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 42593 _ACEOF 42594 sed -n ' 42595 h 42596 s/^/S["/; s/!.*/"]=/ 42597 p 42598 g 42599 s/^[^!]*!// 42600 :repl 42601 t repl 42602 s/'"$ac_delim"'$// 42603 t delim 42604 :nl 42605 h 42606 s/\(.\{148\}\)..*/\1/ 42607 t more1 42608 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 42609 p 42610 n 42611 b repl 42612 :more1 42613 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 42614 p 42615 g 42616 s/.\{148\}// 42617 t nl 42618 :delim 42619 h 42620 s/\(.\{148\}\)..*/\1/ 42621 t more2 42622 s/["\\]/\\&/g; s/^/"/; s/$/"/ 42623 p 42624 b 42625 :more2 42626 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 42627 p 42628 g 42629 s/.\{148\}// 42630 t delim 42631 ' <conf$$subs.awk | sed ' 42632 /^[^""]/{ 42633 N 42634 s/\n// 42635 } 42636 ' >>$CONFIG_STATUS || ac_write_fail=1 42637 rm -f conf$$subs.awk 42638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 42639 _ACAWK 42640 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 42641 for (key in S) S_is_set[key] = 1 42642 FS = "" 42643 42644 } 42645 { 42646 line = $ 0 42647 nfields = split(line, field, "@") 42648 substed = 0 42649 len = length(field[1]) 42650 for (i = 2; i < nfields; i++) { 42651 key = field[i] 42652 keylen = length(key) 42653 if (S_is_set[key]) { 42654 value = S[key] 42655 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 42656 len += length(value) + length(field[++i]) 42657 substed = 1 42658 } else 42659 len += 1 + keylen 42660 } 42661 42662 print line 42663 } 42664 42665 _ACAWK 42666 _ACEOF 42667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 42668 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 42669 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 42670 else 42671 cat 42672 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 42673 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 42674 _ACEOF 42675 42676 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 42677 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 42678 # trailing colons and then remove the whole line if VPATH becomes empty 42679 # (actually we leave an empty line to preserve line numbers). 42680 if test "x$srcdir" = x.; then 42681 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 42682 h 42683 s/// 42684 s/^/:/ 42685 s/[ ]*$/:/ 42686 s/:\$(srcdir):/:/g 42687 s/:\${srcdir}:/:/g 42688 s/:@srcdir@:/:/g 42689 s/^:*// 42690 s/:*$// 42691 x 42692 s/\(=[ ]*\).*/\1/ 42693 G 42694 s/\n// 42695 s/^[^=]*=[ ]*$// 42696 }' 42697 fi 42698 42699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 42700 fi # test -n "$CONFIG_FILES" 42701 42702 # Set up the scripts for CONFIG_HEADERS section. 42703 # No need to generate them if there are no CONFIG_HEADERS. 42704 # This happens for instance with `./config.status Makefile'. 42705 if test -n "$CONFIG_HEADERS"; then 42706 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 42707 BEGIN { 42708 _ACEOF 42709 42710 # Transform confdefs.h into an awk script `defines.awk', embedded as 42711 # here-document in config.status, that substitutes the proper values into 42712 # config.h.in to produce config.h. 42713 42714 # Create a delimiter string that does not exist in confdefs.h, to ease 42715 # handling of long lines. 42716 ac_delim='%!_!# ' 42717 for ac_last_try in false false :; do 42718 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 42719 if test -z "$ac_tt"; then 42720 break 42721 elif $ac_last_try; then 42722 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 42723 else 42724 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 42725 fi 42726 done 42727 42728 # For the awk script, D is an array of macro values keyed by name, 42729 # likewise P contains macro parameters if any. Preserve backslash 42730 # newline sequences. 42731 42732 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 42733 sed -n ' 42734 s/.\{148\}/&'"$ac_delim"'/g 42735 t rset 42736 :rset 42737 s/^[ ]*#[ ]*define[ ][ ]*/ / 42738 t def 42739 d 42740 :def 42741 s/\\$// 42742 t bsnl 42743 s/["\\]/\\&/g 42744 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 42745 D["\1"]=" \3"/p 42746 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 42747 d 42748 :bsnl 42749 s/["\\]/\\&/g 42750 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 42751 D["\1"]=" \3\\\\\\n"\\/p 42752 t cont 42753 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 42754 t cont 42755 d 42756 :cont 42757 n 42758 s/.\{148\}/&'"$ac_delim"'/g 42759 t clear 42760 :clear 42761 s/\\$// 42762 t bsnlc 42763 s/["\\]/\\&/g; s/^/"/; s/$/"/p 42764 d 42765 :bsnlc 42766 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 42767 b cont 42768 ' <confdefs.h | sed ' 42769 s/'"$ac_delim"'/"\\\ 42770 "/g' >>$CONFIG_STATUS || ac_write_fail=1 42771 42772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 42773 for (key in D) D_is_set[key] = 1 42774 FS = "" 42775 } 42776 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 42777 line = \$ 0 42778 split(line, arg, " ") 42779 if (arg[1] == "#") { 42780 defundef = arg[2] 42781 mac1 = arg[3] 42782 } else { 42783 defundef = substr(arg[1], 2) 42784 mac1 = arg[2] 42785 } 42786 split(mac1, mac2, "(") #) 42787 macro = mac2[1] 42788 prefix = substr(line, 1, index(line, defundef) - 1) 42789 if (D_is_set[macro]) { 42790 # Preserve the white space surrounding the "#". 42791 print prefix "define", macro P[macro] D[macro] 42792 next 42793 } else { 42794 # Replace #undef with comments. This is necessary, for example, 42795 # in the case of _POSIX_SOURCE, which is predefined and required 42796 # on some systems where configure will not decide to define it. 42797 if (defundef == "undef") { 42798 print "/*", prefix defundef, macro, "*/" 42799 next 42800 } 42801 } 42802 } 42803 { print } 42804 _ACAWK 42805 _ACEOF 42806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 42807 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 42808 fi # test -n "$CONFIG_HEADERS" 42809 42810 42811 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 42812 shift 42813 for ac_tag 42814 do 42815 case $ac_tag in 42816 :[FHLC]) ac_mode=$ac_tag; continue;; 42817 esac 42818 case $ac_mode$ac_tag in 42819 :[FHL]*:*);; 42820 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 42821 :[FH]-) ac_tag=-:-;; 42822 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 42823 esac 42824 ac_save_IFS=$IFS 42825 IFS=: 42826 set x $ac_tag 42827 IFS=$ac_save_IFS 42828 shift 42829 ac_file=$1 42830 shift 42831 42832 case $ac_mode in 42833 :L) ac_source=$1;; 42834 :[FH]) 42835 ac_file_inputs= 42836 for ac_f 42837 do 42838 case $ac_f in 42839 -) ac_f="$ac_tmp/stdin";; 42840 *) # Look for the file first in the build tree, then in the source tree 42841 # (if the path is not absolute). The absolute path cannot be DOS-style, 42842 # because $ac_f cannot contain `:'. 42843 test -f "$ac_f" || 42844 case $ac_f in 42845 [\\/$]*) false;; 42846 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 42847 esac || 42848 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 42849 esac 42850 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 42851 as_fn_append ac_file_inputs " '$ac_f'" 42852 done 42853 42854 # Let's still pretend it is `configure' which instantiates (i.e., don't 42855 # use $as_me), people would be surprised to read: 42856 # /* config.h. Generated by config.status. */ 42857 configure_input='Generated from '` 42858 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 42859 `' by configure.' 42860 if test x"$ac_file" != x-; then 42861 configure_input="$ac_file. $configure_input" 42862 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 42863 $as_echo "$as_me: creating $ac_file" >&6;} 42864 fi 42865 # Neutralize special characters interpreted by sed in replacement strings. 42866 case $configure_input in #( 42867 *\&* | *\|* | *\\* ) 42868 ac_sed_conf_input=`$as_echo "$configure_input" | 42869 sed 's/[\\\\&|]/\\\\&/g'`;; #( 42870 *) ac_sed_conf_input=$configure_input;; 42871 esac 42872 42873 case $ac_tag in 42874 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 42875 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 42876 esac 42877 ;; 42878 esac 42879 42880 ac_dir=`$as_dirname -- "$ac_file" || 42881 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 42882 X"$ac_file" : 'X\(//\)[^/]' \| \ 42883 X"$ac_file" : 'X\(//\)$' \| \ 42884 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 42885 $as_echo X"$ac_file" | 42886 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 42887 s//\1/ 42888 q 42889 } 42890 /^X\(\/\/\)[^/].*/{ 42891 s//\1/ 42892 q 42893 } 42894 /^X\(\/\/\)$/{ 42895 s//\1/ 42896 q 42897 } 42898 /^X\(\/\).*/{ 42899 s//\1/ 42900 q 42901 } 42902 s/.*/./; q'` 42903 as_dir="$ac_dir"; as_fn_mkdir_p 42904 ac_builddir=. 42905 42906 case "$ac_dir" in 42907 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 42908 *) 42909 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 42910 # A ".." for each directory in $ac_dir_suffix. 42911 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 42912 case $ac_top_builddir_sub in 42913 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 42914 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 42915 esac ;; 42916 esac 42917 ac_abs_top_builddir=$ac_pwd 42918 ac_abs_builddir=$ac_pwd$ac_dir_suffix 42919 # for backward compatibility: 42920 ac_top_builddir=$ac_top_build_prefix 42921 42922 case $srcdir in 42923 .) # We are building in place. 42924 ac_srcdir=. 42925 ac_top_srcdir=$ac_top_builddir_sub 42926 ac_abs_top_srcdir=$ac_pwd ;; 42927 [\\/]* | ?:[\\/]* ) # Absolute name. 42928 ac_srcdir=$srcdir$ac_dir_suffix; 42929 ac_top_srcdir=$srcdir 42930 ac_abs_top_srcdir=$srcdir ;; 42931 *) # Relative name. 42932 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 42933 ac_top_srcdir=$ac_top_build_prefix$srcdir 42934 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 42935 esac 42936 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 42937 42938 42939 case $ac_mode in 42940 :F) 42941 # 42942 # CONFIG_FILE 42943 # 42944 42945 case $INSTALL in 42946 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 42947 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 42948 esac 42949 ac_MKDIR_P=$MKDIR_P 42950 case $MKDIR_P in 42951 [\\/$]* | ?:[\\/]* ) ;; 42952 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 42953 esac 42954 _ACEOF 42955 42956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 42957 # If the template does not know about datarootdir, expand it. 42958 # FIXME: This hack should be removed a few years after 2.60. 42959 ac_datarootdir_hack=; ac_datarootdir_seen= 42960 ac_sed_dataroot=' 42961 /datarootdir/ { 42962 p 42963 q 42964 } 42965 /@datadir@/p 42966 /@docdir@/p 42967 /@infodir@/p 42968 /@localedir@/p 42969 /@mandir@/p' 42970 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 42971 *datarootdir*) ac_datarootdir_seen=yes;; 42972 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 42973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 42974 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 42975 _ACEOF 42976 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 42977 ac_datarootdir_hack=' 42978 s&@datadir@&$datadir&g 42979 s&@docdir@&$docdir&g 42980 s&@infodir@&$infodir&g 42981 s&@localedir@&$localedir&g 42982 s&@mandir@&$mandir&g 42983 s&\\\${datarootdir}&$datarootdir&g' ;; 42984 esac 42985 _ACEOF 42986 42987 # Neutralize VPATH when `$srcdir' = `.'. 42988 # Shell code in configure.ac might set extrasub. 42989 # FIXME: do we really want to maintain this feature? 42990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 42991 ac_sed_extra="$ac_vpsub 42992 $extrasub 42993 _ACEOF 42994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 42995 :t 42996 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 42997 s|@configure_input@|$ac_sed_conf_input|;t t 42998 s&@top_builddir@&$ac_top_builddir_sub&;t t 42999 s&@top_build_prefix@&$ac_top_build_prefix&;t t 43000 s&@srcdir@&$ac_srcdir&;t t 43001 s&@abs_srcdir@&$ac_abs_srcdir&;t t 43002 s&@top_srcdir@&$ac_top_srcdir&;t t 43003 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 43004 s&@builddir@&$ac_builddir&;t t 43005 s&@abs_builddir@&$ac_abs_builddir&;t t 43006 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 43007 s&@INSTALL@&$ac_INSTALL&;t t 43008 s&@MKDIR_P@&$ac_MKDIR_P&;t t 43009 $ac_datarootdir_hack 43010 " 43011 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 43012 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 43013 43014 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 43015 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 43016 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 43017 "$ac_tmp/out"`; test -z "$ac_out"; } && 43018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 43019 which seems to be undefined. Please make sure it is defined" >&5 43020 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 43021 which seems to be undefined. Please make sure it is defined" >&2;} 43022 43023 rm -f "$ac_tmp/stdin" 43024 case $ac_file in 43025 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 43026 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 43027 esac \ 43028 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 43029 ;; 43030 :H) 43031 # 43032 # CONFIG_HEADER 43033 # 43034 if test x"$ac_file" != x-; then 43035 { 43036 $as_echo "/* $configure_input */" \ 43037 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 43038 } >"$ac_tmp/config.h" \ 43039 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 43040 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 43041 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 43042 $as_echo "$as_me: $ac_file is unchanged" >&6;} 43043 else 43044 rm -f "$ac_file" 43045 mv "$ac_tmp/config.h" "$ac_file" \ 43046 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 43047 fi 43048 else 43049 $as_echo "/* $configure_input */" \ 43050 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 43051 || as_fn_error $? "could not create -" "$LINENO" 5 43052 fi 43053 # Compute "$ac_file"'s index in $config_headers. 43054 _am_arg="$ac_file" 43055 _am_stamp_count=1 43056 for _am_header in $config_headers :; do 43057 case $_am_header in 43058 $_am_arg | $_am_arg:* ) 43059 break ;; 43060 * ) 43061 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 43062 esac 43063 done 43064 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 43065 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 43066 X"$_am_arg" : 'X\(//\)[^/]' \| \ 43067 X"$_am_arg" : 'X\(//\)$' \| \ 43068 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 43069 $as_echo X"$_am_arg" | 43070 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 43071 s//\1/ 43072 q 43073 } 43074 /^X\(\/\/\)[^/].*/{ 43075 s//\1/ 43076 q 43077 } 43078 /^X\(\/\/\)$/{ 43079 s//\1/ 43080 q 43081 } 43082 /^X\(\/\).*/{ 43083 s//\1/ 43084 q 43085 } 43086 s/.*/./; q'`/stamp-h$_am_stamp_count 43087 ;; 43088 43089 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 43090 $as_echo "$as_me: executing $ac_file commands" >&6;} 43091 ;; 43092 esac 43093 43094 43095 case $ac_file$ac_mode in 43096 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 43097 # Older Autoconf quotes --file arguments for eval, but not when files 43098 # are listed without --file. Let's play safe and only enable the eval 43099 # if we detect the quoting. 43100 case $CONFIG_FILES in 43101 *\'*) eval set x "$CONFIG_FILES" ;; 43102 *) set x $CONFIG_FILES ;; 43103 esac 43104 shift 43105 for mf 43106 do 43107 # Strip MF so we end up with the name of the file. 43108 mf=`echo "$mf" | sed -e 's/:.*$//'` 43109 # Check whether this is an Automake generated Makefile or not. 43110 # We used to match only the files named 'Makefile.in', but 43111 # some people rename them; so instead we look at the file content. 43112 # Grep'ing the first line is not enough: some people post-process 43113 # each Makefile.in and add a new line on top of each file to say so. 43114 # Grep'ing the whole file is not good either: AIX grep has a line 43115 # limit of 2048, but all sed's we know have understand at least 4000. 43116 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 43117 dirpart=`$as_dirname -- "$mf" || 43118 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 43119 X"$mf" : 'X\(//\)[^/]' \| \ 43120 X"$mf" : 'X\(//\)$' \| \ 43121 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 43122 $as_echo X"$mf" | 43123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 43124 s//\1/ 43125 q 43126 } 43127 /^X\(\/\/\)[^/].*/{ 43128 s//\1/ 43129 q 43130 } 43131 /^X\(\/\/\)$/{ 43132 s//\1/ 43133 q 43134 } 43135 /^X\(\/\).*/{ 43136 s//\1/ 43137 q 43138 } 43139 s/.*/./; q'` 43140 else 43141 continue 43142 fi 43143 # Extract the definition of DEPDIR, am__include, and am__quote 43144 # from the Makefile without running 'make'. 43145 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 43146 test -z "$DEPDIR" && continue 43147 am__include=`sed -n 's/^am__include = //p' < "$mf"` 43148 test -z "$am__include" && continue 43149 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 43150 # Find all dependency output files, they are included files with 43151 # $(DEPDIR) in their names. We invoke sed twice because it is the 43152 # simplest approach to changing $(DEPDIR) to its actual value in the 43153 # expansion. 43154 for file in `sed -n " 43155 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 43156 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 43157 # Make sure the directory exists. 43158 test -f "$dirpart/$file" && continue 43159 fdir=`$as_dirname -- "$file" || 43160 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 43161 X"$file" : 'X\(//\)[^/]' \| \ 43162 X"$file" : 'X\(//\)$' \| \ 43163 X"$file" : 'X\(/\)' \| . 2>/dev/null || 43164 $as_echo X"$file" | 43165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 43166 s//\1/ 43167 q 43168 } 43169 /^X\(\/\/\)[^/].*/{ 43170 s//\1/ 43171 q 43172 } 43173 /^X\(\/\/\)$/{ 43174 s//\1/ 43175 q 43176 } 43177 /^X\(\/\).*/{ 43178 s//\1/ 43179 q 43180 } 43181 s/.*/./; q'` 43182 as_dir=$dirpart/$fdir; as_fn_mkdir_p 43183 # echo "creating $dirpart/$file" 43184 echo '# dummy' > "$dirpart/$file" 43185 done 43186 done 43187 } 43188 ;; 43189 "libtool":C) 43190 43191 # See if we are running on zsh, and set the options that allow our 43192 # commands through without removal of \ escapes. 43193 if test -n "${ZSH_VERSION+set}"; then 43194 setopt NO_GLOB_SUBST 43195 fi 43196 43197 cfgfile=${ofile}T 43198 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 43199 $RM "$cfgfile" 43200 43201 cat <<_LT_EOF >> "$cfgfile" 43202 #! $SHELL 43203 # Generated automatically by $as_me ($PACKAGE) $VERSION 43204 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 43205 43206 # Provide generalized library-building support services. 43207 # Written by Gordon Matzigkeit, 1996 43208 43209 # Copyright (C) 2014 Free Software Foundation, Inc. 43210 # This is free software; see the source for copying conditions. There is NO 43211 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 43212 43213 # GNU Libtool is free software; you can redistribute it and/or modify 43214 # it under the terms of the GNU General Public License as published by 43215 # the Free Software Foundation; either version 2 of of the License, or 43216 # (at your option) any later version. 43217 # 43218 # As a special exception to the GNU General Public License, if you 43219 # distribute this file as part of a program or library that is built 43220 # using GNU Libtool, you may include this file under the same 43221 # distribution terms that you use for the rest of that program. 43222 # 43223 # GNU Libtool is distributed in the hope that it will be useful, but 43224 # WITHOUT ANY WARRANTY; without even the implied warranty of 43225 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 43226 # GNU General Public License for more details. 43227 # 43228 # You should have received a copy of the GNU General Public License 43229 # along with this program. If not, see <http://www.gnu.org/licenses/>. 43230 43231 43232 # The names of the tagged configurations supported by this script. 43233 available_tags='' 43234 43235 # Configured defaults for sys_lib_dlsearch_path munging. 43236 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 43237 43238 # ### BEGIN LIBTOOL CONFIG 43239 43240 # Which release of libtool.m4 was used? 43241 macro_version=$macro_version 43242 macro_revision=$macro_revision 43243 43244 # Assembler program. 43245 AS=$lt_AS 43246 43247 # DLL creation program. 43248 DLLTOOL=$lt_DLLTOOL 43249 43250 # Object dumper program. 43251 OBJDUMP=$lt_OBJDUMP 43252 43253 # Whether or not to build shared libraries. 43254 build_libtool_libs=$enable_shared 43255 43256 # Whether or not to build static libraries. 43257 build_old_libs=$enable_static 43258 43259 # What type of objects to build. 43260 pic_mode=$pic_mode 43261 43262 # Whether or not to optimize for fast installation. 43263 fast_install=$enable_fast_install 43264 43265 # Shared archive member basename,for filename based shared library versioning on AIX. 43266 shared_archive_member_spec=$shared_archive_member_spec 43267 43268 # Shell to use when invoking shell scripts. 43269 SHELL=$lt_SHELL 43270 43271 # An echo program that protects backslashes. 43272 ECHO=$lt_ECHO 43273 43274 # The PATH separator for the build system. 43275 PATH_SEPARATOR=$lt_PATH_SEPARATOR 43276 43277 # The host system. 43278 host_alias=$host_alias 43279 host=$host 43280 host_os=$host_os 43281 43282 # The build system. 43283 build_alias=$build_alias 43284 build=$build 43285 build_os=$build_os 43286 43287 # A sed program that does not truncate output. 43288 SED=$lt_SED 43289 43290 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 43291 Xsed="\$SED -e 1s/^X//" 43292 43293 # A grep program that handles long lines. 43294 GREP=$lt_GREP 43295 43296 # An ERE matcher. 43297 EGREP=$lt_EGREP 43298 43299 # A literal string matcher. 43300 FGREP=$lt_FGREP 43301 43302 # A BSD- or MS-compatible name lister. 43303 NM=$lt_NM 43304 43305 # Whether we need soft or hard links. 43306 LN_S=$lt_LN_S 43307 43308 # What is the maximum length of a command? 43309 max_cmd_len=$max_cmd_len 43310 43311 # Object file suffix (normally "o"). 43312 objext=$ac_objext 43313 43314 # Executable file suffix (normally ""). 43315 exeext=$exeext 43316 43317 # whether the shell understands "unset". 43318 lt_unset=$lt_unset 43319 43320 # turn spaces into newlines. 43321 SP2NL=$lt_lt_SP2NL 43322 43323 # turn newlines into spaces. 43324 NL2SP=$lt_lt_NL2SP 43325 43326 # convert \$build file names to \$host format. 43327 to_host_file_cmd=$lt_cv_to_host_file_cmd 43328 43329 # convert \$build files to toolchain format. 43330 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 43331 43332 # Method to check whether dependent libraries are shared objects. 43333 deplibs_check_method=$lt_deplibs_check_method 43334 43335 # Command to use when deplibs_check_method = "file_magic". 43336 file_magic_cmd=$lt_file_magic_cmd 43337 43338 # How to find potential files when deplibs_check_method = "file_magic". 43339 file_magic_glob=$lt_file_magic_glob 43340 43341 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 43342 want_nocaseglob=$lt_want_nocaseglob 43343 43344 # Command to associate shared and link libraries. 43345 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 43346 43347 # The archiver. 43348 AR=$lt_AR 43349 43350 # Flags to create an archive. 43351 AR_FLAGS=$lt_AR_FLAGS 43352 43353 # How to feed a file listing to the archiver. 43354 archiver_list_spec=$lt_archiver_list_spec 43355 43356 # A symbol stripping program. 43357 STRIP=$lt_STRIP 43358 43359 # Commands used to install an old-style archive. 43360 RANLIB=$lt_RANLIB 43361 old_postinstall_cmds=$lt_old_postinstall_cmds 43362 old_postuninstall_cmds=$lt_old_postuninstall_cmds 43363 43364 # Whether to use a lock for old archive extraction. 43365 lock_old_archive_extraction=$lock_old_archive_extraction 43366 43367 # A C compiler. 43368 LTCC=$lt_CC 43369 43370 # LTCC compiler flags. 43371 LTCFLAGS=$lt_CFLAGS 43372 43373 # Take the output of nm and produce a listing of raw symbols and C names. 43374 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 43375 43376 # Transform the output of nm in a proper C declaration. 43377 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 43378 43379 # Transform the output of nm into a list of symbols to manually relocate. 43380 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 43381 43382 # Transform the output of nm in a C name address pair. 43383 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 43384 43385 # Transform the output of nm in a C name address pair when lib prefix is needed. 43386 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 43387 43388 # The name lister interface. 43389 nm_interface=$lt_lt_cv_nm_interface 43390 43391 # Specify filename containing input files for \$NM. 43392 nm_file_list_spec=$lt_nm_file_list_spec 43393 43394 # The root where to search for dependent libraries,and where our libraries should be installed. 43395 lt_sysroot=$lt_sysroot 43396 43397 # Command to truncate a binary pipe. 43398 lt_truncate_bin=$lt_lt_cv_truncate_bin 43399 43400 # The name of the directory that contains temporary libtool files. 43401 objdir=$objdir 43402 43403 # Used to examine libraries when file_magic_cmd begins with "file". 43404 MAGIC_CMD=$MAGIC_CMD 43405 43406 # Must we lock files when doing compilation? 43407 need_locks=$lt_need_locks 43408 43409 # Manifest tool. 43410 MANIFEST_TOOL=$lt_MANIFEST_TOOL 43411 43412 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 43413 DSYMUTIL=$lt_DSYMUTIL 43414 43415 # Tool to change global to local symbols on Mac OS X. 43416 NMEDIT=$lt_NMEDIT 43417 43418 # Tool to manipulate fat objects and archives on Mac OS X. 43419 LIPO=$lt_LIPO 43420 43421 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 43422 OTOOL=$lt_OTOOL 43423 43424 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 43425 OTOOL64=$lt_OTOOL64 43426 43427 # Old archive suffix (normally "a"). 43428 libext=$libext 43429 43430 # Shared library suffix (normally ".so"). 43431 shrext_cmds=$lt_shrext_cmds 43432 43433 # The commands to extract the exported symbol list from a shared archive. 43434 extract_expsyms_cmds=$lt_extract_expsyms_cmds 43435 43436 # Variables whose values should be saved in libtool wrapper scripts and 43437 # restored at link time. 43438 variables_saved_for_relink=$lt_variables_saved_for_relink 43439 43440 # Do we need the "lib" prefix for modules? 43441 need_lib_prefix=$need_lib_prefix 43442 43443 # Do we need a version for libraries? 43444 need_version=$need_version 43445 43446 # Library versioning type. 43447 version_type=$version_type 43448 43449 # Shared library runtime path variable. 43450 runpath_var=$runpath_var 43451 43452 # Shared library path variable. 43453 shlibpath_var=$shlibpath_var 43454 43455 # Is shlibpath searched before the hard-coded library search path? 43456 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 43457 43458 # Format of library name prefix. 43459 libname_spec=$lt_libname_spec 43460 43461 # List of archive names. First name is the real one, the rest are links. 43462 # The last name is the one that the linker finds with -lNAME 43463 library_names_spec=$lt_library_names_spec 43464 43465 # The coded name of the library, if different from the real name. 43466 soname_spec=$lt_soname_spec 43467 43468 # Permission mode override for installation of shared libraries. 43469 install_override_mode=$lt_install_override_mode 43470 43471 # Command to use after installation of a shared archive. 43472 postinstall_cmds=$lt_postinstall_cmds 43473 43474 # Command to use after uninstallation of a shared archive. 43475 postuninstall_cmds=$lt_postuninstall_cmds 43476 43477 # Commands used to finish a libtool library installation in a directory. 43478 finish_cmds=$lt_finish_cmds 43479 43480 # As "finish_cmds", except a single script fragment to be evaled but 43481 # not shown. 43482 finish_eval=$lt_finish_eval 43483 43484 # Whether we should hardcode library paths into libraries. 43485 hardcode_into_libs=$hardcode_into_libs 43486 43487 # Compile-time system search path for libraries. 43488 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 43489 43490 # Detected run-time system search path for libraries. 43491 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 43492 43493 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 43494 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 43495 43496 # Whether dlopen is supported. 43497 dlopen_support=$enable_dlopen 43498 43499 # Whether dlopen of programs is supported. 43500 dlopen_self=$enable_dlopen_self 43501 43502 # Whether dlopen of statically linked programs is supported. 43503 dlopen_self_static=$enable_dlopen_self_static 43504 43505 # Commands to strip libraries. 43506 old_striplib=$lt_old_striplib 43507 striplib=$lt_striplib 43508 43509 43510 # The linker used to build libraries. 43511 LD=$lt_LD 43512 43513 # How to create reloadable object files. 43514 reload_flag=$lt_reload_flag 43515 reload_cmds=$lt_reload_cmds 43516 43517 # Commands used to build an old-style archive. 43518 old_archive_cmds=$lt_old_archive_cmds 43519 43520 # A language specific compiler. 43521 CC=$lt_compiler 43522 43523 # Is the compiler the GNU compiler? 43524 with_gcc=$GCC 43525 43526 # Compiler flag to turn off builtin functions. 43527 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 43528 43529 # Additional compiler flags for building library objects. 43530 pic_flag=$lt_lt_prog_compiler_pic 43531 43532 # How to pass a linker flag through the compiler. 43533 wl=$lt_lt_prog_compiler_wl 43534 43535 # Compiler flag to prevent dynamic linking. 43536 link_static_flag=$lt_lt_prog_compiler_static 43537 43538 # Does compiler simultaneously support -c and -o options? 43539 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 43540 43541 # Whether or not to add -lc for building shared libraries. 43542 build_libtool_need_lc=$archive_cmds_need_lc 43543 43544 # Whether or not to disallow shared libs when runtime libs are static. 43545 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 43546 43547 # Compiler flag to allow reflexive dlopens. 43548 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 43549 43550 # Compiler flag to generate shared objects directly from archives. 43551 whole_archive_flag_spec=$lt_whole_archive_flag_spec 43552 43553 # Whether the compiler copes with passing no objects directly. 43554 compiler_needs_object=$lt_compiler_needs_object 43555 43556 # Create an old-style archive from a shared archive. 43557 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 43558 43559 # Create a temporary old-style archive to link instead of a shared archive. 43560 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 43561 43562 # Commands used to build a shared archive. 43563 archive_cmds=$lt_archive_cmds 43564 archive_expsym_cmds=$lt_archive_expsym_cmds 43565 43566 # Commands used to build a loadable module if different from building 43567 # a shared archive. 43568 module_cmds=$lt_module_cmds 43569 module_expsym_cmds=$lt_module_expsym_cmds 43570 43571 # Whether we are building with GNU ld or not. 43572 with_gnu_ld=$lt_with_gnu_ld 43573 43574 # Flag that allows shared libraries with undefined symbols to be built. 43575 allow_undefined_flag=$lt_allow_undefined_flag 43576 43577 # Flag that enforces no undefined symbols. 43578 no_undefined_flag=$lt_no_undefined_flag 43579 43580 # Flag to hardcode \$libdir into a binary during linking. 43581 # This must work even if \$libdir does not exist 43582 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 43583 43584 # Whether we need a single "-rpath" flag with a separated argument. 43585 hardcode_libdir_separator=$lt_hardcode_libdir_separator 43586 43587 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 43588 # DIR into the resulting binary. 43589 hardcode_direct=$hardcode_direct 43590 43591 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 43592 # DIR into the resulting binary and the resulting library dependency is 43593 # "absolute",i.e impossible to change by setting \$shlibpath_var if the 43594 # library is relocated. 43595 hardcode_direct_absolute=$hardcode_direct_absolute 43596 43597 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 43598 # into the resulting binary. 43599 hardcode_minus_L=$hardcode_minus_L 43600 43601 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 43602 # into the resulting binary. 43603 hardcode_shlibpath_var=$hardcode_shlibpath_var 43604 43605 # Set to "yes" if building a shared library automatically hardcodes DIR 43606 # into the library and all subsequent libraries and executables linked 43607 # against it. 43608 hardcode_automatic=$hardcode_automatic 43609 43610 # Set to yes if linker adds runtime paths of dependent libraries 43611 # to runtime path list. 43612 inherit_rpath=$inherit_rpath 43613 43614 # Whether libtool must link a program against all its dependency libraries. 43615 link_all_deplibs=$link_all_deplibs 43616 43617 # Set to "yes" if exported symbols are required. 43618 always_export_symbols=$always_export_symbols 43619 43620 # The commands to list exported symbols. 43621 export_symbols_cmds=$lt_export_symbols_cmds 43622 43623 # Symbols that should not be listed in the preloaded symbols. 43624 exclude_expsyms=$lt_exclude_expsyms 43625 43626 # Symbols that must always be exported. 43627 include_expsyms=$lt_include_expsyms 43628 43629 # Commands necessary for linking programs (against libraries) with templates. 43630 prelink_cmds=$lt_prelink_cmds 43631 43632 # Commands necessary for finishing linking programs. 43633 postlink_cmds=$lt_postlink_cmds 43634 43635 # Specify filename containing input files. 43636 file_list_spec=$lt_file_list_spec 43637 43638 # How to hardcode a shared library path into an executable. 43639 hardcode_action=$hardcode_action 43640 43641 # ### END LIBTOOL CONFIG 43642 43643 _LT_EOF 43644 43645 cat <<'_LT_EOF' >> "$cfgfile" 43646 43647 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 43648 43649 # func_munge_path_list VARIABLE PATH 43650 # ----------------------------------- 43651 # VARIABLE is name of variable containing _space_ separated list of 43652 # directories to be munged by the contents of PATH, which is string 43653 # having a format: 43654 # "DIR[:DIR]:" 43655 # string "DIR[ DIR]" will be prepended to VARIABLE 43656 # ":DIR[:DIR]" 43657 # string "DIR[ DIR]" will be appended to VARIABLE 43658 # "DIRP[:DIRP]::[DIRA:]DIRA" 43659 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 43660 # "DIRA[ DIRA]" will be appended to VARIABLE 43661 # "DIR[:DIR]" 43662 # VARIABLE will be replaced by "DIR[ DIR]" 43663 func_munge_path_list () 43664 { 43665 case x$2 in 43666 x) 43667 ;; 43668 *:) 43669 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 43670 ;; 43671 x:*) 43672 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 43673 ;; 43674 *::*) 43675 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 43676 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 43677 ;; 43678 *) 43679 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 43680 ;; 43681 esac 43682 } 43683 43684 43685 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 43686 func_cc_basename () 43687 { 43688 for cc_temp in $*""; do 43689 case $cc_temp in 43690 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 43691 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 43692 \-*) ;; 43693 *) break;; 43694 esac 43695 done 43696 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 43697 } 43698 43699 43700 # ### END FUNCTIONS SHARED WITH CONFIGURE 43701 43702 _LT_EOF 43703 43704 case $host_os in 43705 aix3*) 43706 cat <<\_LT_EOF >> "$cfgfile" 43707 # AIX sometimes has problems with the GCC collect2 program. For some 43708 # reason, if we set the COLLECT_NAMES environment variable, the problems 43709 # vanish in a puff of smoke. 43710 if test set != "${COLLECT_NAMES+set}"; then 43711 COLLECT_NAMES= 43712 export COLLECT_NAMES 43713 fi 43714 _LT_EOF 43715 ;; 43716 esac 43717 43718 43719 ltmain=$ac_aux_dir/ltmain.sh 43720 43721 43722 # We use sed instead of cat because bash on DJGPP gets confused if 43723 # if finds mixed CR/LF and LF-only lines. Since sed operates in 43724 # text mode, it properly converts lines to CR/LF. This bash problem 43725 # is reportedly fixed, but why not run on old versions too? 43726 sed '$q' "$ltmain" >> "$cfgfile" \ 43727 || (rm -f "$cfgfile"; exit 1) 43728 43729 mv -f "$cfgfile" "$ofile" || 43730 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 43731 chmod +x "$ofile" 43732 43733 ;; 43734 43735 esac 43736 done # for ac_tag 43737 43738 43739 as_fn_exit 0 43740 _ACEOF 43741 ac_clean_files=$ac_clean_files_save 43742 43743 test $ac_write_fail = 0 || 43744 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 43745 43746 43747 # configure is writing to config.log, and then calls config.status. 43748 # config.status does its own redirection, appending to config.log. 43749 # Unfortunately, on DOS this fails, as config.log is still kept open 43750 # by configure, so config.status won't be able to write to it; its 43751 # output is simply discarded. So we exec the FD to /dev/null, 43752 # effectively closing config.log, so it can be properly (re)opened and 43753 # appended to by config.status. When coming back to configure, we 43754 # need to make the FD available again. 43755 if test "$no_create" != yes; then 43756 ac_cs_success=: 43757 ac_config_status_args= 43758 test "$silent" = yes && 43759 ac_config_status_args="$ac_config_status_args --quiet" 43760 exec 5>/dev/null 43761 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 43762 exec 5>>config.log 43763 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 43764 # would make configure fail if this is the last instruction. 43765 $ac_cs_success || as_fn_exit 1 43766 fi 43767 43768 # 43769 # CONFIG_SUBDIRS section. 43770 # 43771 if test "$no_recursion" != yes; then 43772 43773 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 43774 # so they do not pile up. 43775 ac_sub_configure_args= 43776 ac_prev= 43777 eval "set x $ac_configure_args" 43778 shift 43779 for ac_arg 43780 do 43781 if test -n "$ac_prev"; then 43782 ac_prev= 43783 continue 43784 fi 43785 case $ac_arg in 43786 -cache-file | --cache-file | --cache-fil | --cache-fi \ 43787 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 43788 ac_prev=cache_file ;; 43789 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 43790 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 43791 | --c=*) 43792 ;; 43793 --config-cache | -C) 43794 ;; 43795 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 43796 ac_prev=srcdir ;; 43797 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 43798 ;; 43799 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 43800 ac_prev=prefix ;; 43801 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 43802 ;; 43803 --disable-option-checking) 43804 ;; 43805 *) 43806 case $ac_arg in 43807 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 43808 esac 43809 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; 43810 esac 43811 done 43812 43813 # Always prepend --prefix to ensure using the same prefix 43814 # in subdir configurations. 43815 ac_arg="--prefix=$prefix" 43816 case $ac_arg in 43817 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 43818 esac 43819 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 43820 43821 # Pass --silent 43822 if test "$silent" = yes; then 43823 ac_sub_configure_args="--silent $ac_sub_configure_args" 43824 fi 43825 43826 # Always prepend --disable-option-checking to silence warnings, since 43827 # different subdirs can have different --enable and --with options. 43828 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 43829 43830 ac_popdir=`pwd` 43831 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 43832 43833 # Do not complain, so a configure script can configure whichever 43834 # parts of a large source tree are present. 43835 test -d "$srcdir/$ac_dir" || continue 43836 43837 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 43838 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 43839 $as_echo "$ac_msg" >&6 43840 as_dir="$ac_dir"; as_fn_mkdir_p 43841 ac_builddir=. 43842 43843 case "$ac_dir" in 43844 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 43845 *) 43846 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 43847 # A ".." for each directory in $ac_dir_suffix. 43848 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 43849 case $ac_top_builddir_sub in 43850 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 43851 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 43852 esac ;; 43853 esac 43854 ac_abs_top_builddir=$ac_pwd 43855 ac_abs_builddir=$ac_pwd$ac_dir_suffix 43856 # for backward compatibility: 43857 ac_top_builddir=$ac_top_build_prefix 43858 43859 case $srcdir in 43860 .) # We are building in place. 43861 ac_srcdir=. 43862 ac_top_srcdir=$ac_top_builddir_sub 43863 ac_abs_top_srcdir=$ac_pwd ;; 43864 [\\/]* | ?:[\\/]* ) # Absolute name. 43865 ac_srcdir=$srcdir$ac_dir_suffix; 43866 ac_top_srcdir=$srcdir 43867 ac_abs_top_srcdir=$srcdir ;; 43868 *) # Relative name. 43869 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 43870 ac_top_srcdir=$ac_top_build_prefix$srcdir 43871 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 43872 esac 43873 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 43874 43875 43876 cd "$ac_dir" 43877 43878 # Check for guested configure; otherwise get Cygnus style configure. 43879 if test -f "$ac_srcdir/configure.gnu"; then 43880 ac_sub_configure=$ac_srcdir/configure.gnu 43881 elif test -f "$ac_srcdir/configure"; then 43882 ac_sub_configure=$ac_srcdir/configure 43883 elif test -f "$ac_srcdir/configure.in"; then 43884 # This should be Cygnus configure. 43885 ac_sub_configure=$ac_aux_dir/configure 43886 else 43887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 43888 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 43889 ac_sub_configure= 43890 fi 43891 43892 # The recursion is here. 43893 if test -n "$ac_sub_configure"; then 43894 # Make the cache file name correct relative to the subdirectory. 43895 case $cache_file in 43896 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 43897 *) # Relative name. 43898 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 43899 esac 43900 43901 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 43902 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 43903 # The eval makes quoting arguments work. 43904 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 43905 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 43906 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 43907 fi 43908 43909 cd "$ac_popdir" 43910 done 43911 fi 43912 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 43913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 43914 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 43915 fi 43916 43917 43918 43919 tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null` 43920 if test -z "$tmp_cpp"; then 43921 tmp_cpp='cpp' 43922 fi 43923 cat >./tests/configurehelp.pm <<_EOF 43924 # This is a generated file. Do not edit. 43925 43926 package configurehelp; 43927 43928 use strict; 43929 use warnings; 43930 use Exporter; 43931 43932 use vars qw( 43933 @ISA 43934 @EXPORT_OK 43935 \$Cpreprocessor 43936 ); 43937 43938 @ISA = qw(Exporter); 43939 43940 @EXPORT_OK = qw( 43941 \$Cpreprocessor 43942 ); 43943 43944 \$Cpreprocessor = '$tmp_cpp'; 43945 43946 1; 43947 _EOF 43948 43949 43950 43951 ## ---------------------------------- ## 43952 ## Start of distclean amending code ## 43953 ## ---------------------------------- ## 43954 43955 for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples 43956 do 43957 43958 if test ! -f "$xc_subdir/Makefile"; then 43959 echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2 43960 exit 1 43961 fi 43962 43963 # Fetch dependency tracking file list from Makefile include lines. 43964 43965 xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null` 43966 xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"` 43967 43968 # --disable-dependency-tracking might have been used, consequently 43969 # there is nothing to amend without a dependency tracking file list. 43970 43971 if test $xc_cnt_words -gt 0; then 43972 43973 { $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5 43974 $as_echo "$as_me: amending $xc_subdir/Makefile" >&6;} 43975 43976 # Build Makefile specific patch hunk. 43977 43978 xc_p="$xc_subdir/xc_patch.tmp" 43979 43980 xc_rm_depfiles=`echo "$xc_inc_lines" \ 43981 | $SED 's%include% -rm -f%' 2>/dev/null` 43982 43983 xc_dep_subdirs=`echo "$xc_inc_lines" \ 43984 | $SED 's%include[ ][ ]*%%' 2>/dev/null \ 43985 | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \ 43986 | sort | uniq` 43987 43988 echo "$xc_rm_depfiles" >$xc_p 43989 43990 for xc_dep_dir in $xc_dep_subdirs; do 43991 echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\" >>$xc_p 43992 echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\" >>$xc_p 43993 echo "${xc_tab} rm -rf $xc_dep_dir; \\" >>$xc_p 43994 echo "${xc_tab}fi" >>$xc_p 43995 done 43996 43997 # Build Makefile patching sed scripts. 43998 43999 xc_s1="$xc_subdir/xc_script_1.tmp" 44000 xc_s2="$xc_subdir/xc_script_2.tmp" 44001 xc_s3="$xc_subdir/xc_script_3.tmp" 44002 44003 cat >$xc_s1 <<\_EOT 44004 /^distclean[ ]*:/,/^[^ ][^ ]*:/{ 44005 s/^.*(DEPDIR)/___xc_depdir_line___/ 44006 } 44007 /^maintainer-clean[ ]*:/,/^[^ ][^ ]*:/{ 44008 s/^.*(DEPDIR)/___xc_depdir_line___/ 44009 } 44010 _EOT 44011 44012 cat >$xc_s2 <<\_EOT 44013 /___xc_depdir_line___$/{ 44014 N 44015 /___xc_depdir_line___$/D 44016 } 44017 _EOT 44018 44019 cat >$xc_s3 <<_EOT 44020 /^___xc_depdir_line___/{ 44021 r $xc_p 44022 d 44023 } 44024 _EOT 44025 44026 # Apply patch to Makefile and cleanup. 44027 44028 $SED -f "$xc_s1" "$xc_subdir/Makefile" >"$xc_subdir/Makefile.tmp1" 44029 $SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2" 44030 $SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3" 44031 44032 if test -f "$xc_subdir/Makefile.tmp3"; then 44033 mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile" 44034 fi 44035 44036 test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1" 44037 test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2" 44038 test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3" 44039 44040 test -f "$xc_p" && rm -f "$xc_p" 44041 test -f "$xc_s1" && rm -f "$xc_s1" 44042 test -f "$xc_s2" && rm -f "$xc_s2" 44043 test -f "$xc_s3" && rm -f "$xc_s3" 44044 44045 fi 44046 44047 done 44048 44049 ## -------------------------------- ## 44050 ## End of distclean amending code ## 44051 ## -------------------------------- ## 44052 44053 44054 44055 { $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl: 44056 44057 Host setup: ${host} 44058 Install prefix: ${prefix} 44059 Compiler: ${CC} 44060 CFLAGS: ${CFLAGS} 44061 CPPFLAGS: ${CPPFLAGS} 44062 LDFLAGS: ${LDFLAGS} 44063 LIBS: ${LIBS} 44064 44065 curl version: ${CURLVERSION} 44066 SSL: ${curl_ssl_msg} 44067 SSH: ${curl_ssh_msg} 44068 zlib: ${curl_zlib_msg} 44069 brotli: ${curl_brotli_msg} 44070 GSS-API: ${curl_gss_msg} 44071 TLS-SRP: ${curl_tls_srp_msg} 44072 resolver: ${curl_res_msg} 44073 IPv6: ${curl_ipv6_msg} 44074 Unix sockets: ${curl_unix_sockets_msg} 44075 IDN: ${curl_idn_msg} 44076 Build libcurl: Shared=${enable_shared}, Static=${enable_static} 44077 Built-in manual: ${curl_manual_msg} 44078 --libcurl option: ${curl_libcurl_msg} 44079 Verbose errors: ${curl_verbose_msg} 44080 Code coverage: ${curl_coverage_msg} 44081 SSPI: ${curl_sspi_msg} 44082 ca cert bundle: ${ca}${ca_warning} 44083 ca cert path: ${capath}${capath_warning} 44084 ca fallback: ${with_ca_fallback} 44085 LDAP: ${curl_ldap_msg} 44086 LDAPS: ${curl_ldaps_msg} 44087 RTSP: ${curl_rtsp_msg} 44088 RTMP: ${curl_rtmp_msg} 44089 Metalink: ${curl_mtlnk_msg} 44090 PSL: ${curl_psl_msg} 44091 Alt-svc: ${curl_altsvc_msg} 44092 HTTP2: ${curl_h2_msg} 44093 Protocols: ${SUPPORT_PROTOCOLS} 44094 Features: ${SUPPORT_FEATURES} 44095 " >&5 44096 $as_echo "$as_me: Configured to build curl/libcurl: 44097 44098 Host setup: ${host} 44099 Install prefix: ${prefix} 44100 Compiler: ${CC} 44101 CFLAGS: ${CFLAGS} 44102 CPPFLAGS: ${CPPFLAGS} 44103 LDFLAGS: ${LDFLAGS} 44104 LIBS: ${LIBS} 44105 44106 curl version: ${CURLVERSION} 44107 SSL: ${curl_ssl_msg} 44108 SSH: ${curl_ssh_msg} 44109 zlib: ${curl_zlib_msg} 44110 brotli: ${curl_brotli_msg} 44111 GSS-API: ${curl_gss_msg} 44112 TLS-SRP: ${curl_tls_srp_msg} 44113 resolver: ${curl_res_msg} 44114 IPv6: ${curl_ipv6_msg} 44115 Unix sockets: ${curl_unix_sockets_msg} 44116 IDN: ${curl_idn_msg} 44117 Build libcurl: Shared=${enable_shared}, Static=${enable_static} 44118 Built-in manual: ${curl_manual_msg} 44119 --libcurl option: ${curl_libcurl_msg} 44120 Verbose errors: ${curl_verbose_msg} 44121 Code coverage: ${curl_coverage_msg} 44122 SSPI: ${curl_sspi_msg} 44123 ca cert bundle: ${ca}${ca_warning} 44124 ca cert path: ${capath}${capath_warning} 44125 ca fallback: ${with_ca_fallback} 44126 LDAP: ${curl_ldap_msg} 44127 LDAPS: ${curl_ldaps_msg} 44128 RTSP: ${curl_rtsp_msg} 44129 RTMP: ${curl_rtmp_msg} 44130 Metalink: ${curl_mtlnk_msg} 44131 PSL: ${curl_psl_msg} 44132 Alt-svc: ${curl_altsvc_msg} 44133 HTTP2: ${curl_h2_msg} 44134 Protocols: ${SUPPORT_PROTOCOLS} 44135 Features: ${SUPPORT_FEATURES} 44136 " >&6;} 44137 if test -n "$experimental"; then 44138 cat >&2 << _EOF 44139 WARNING: $experimental is enabled but marked EXPERIMENTAL. Use with caution! 44140 _EOF 44141 fi 44142