1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for curl -. 4# 5# Report bugs to <a suitable curl mailing list: https://curl.se/mail/>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14# 15# Copyright (C) Daniel Stenberg, <[email protected]> 16# This configure script may be copied, distributed and modified under the 17# terms of the curl license; see COPYING for more details 18 19## -------------------------------- ## 20## XC_CONFIGURE_PREAMBLE ver: 1.0 ## 21## -------------------------------- ## 22 23xc_configure_preamble_ver_major='1' 24xc_configure_preamble_ver_minor='0' 25 26# 27# Set IFS to space, tab and newline. 28# 29 30xc_space=' ' 31xc_tab=' ' 32xc_newline=' 33' 34IFS="$xc_space$xc_tab$xc_newline" 35 36# 37# Set internationalization behavior variables. 38# 39 40LANG='C' 41LC_ALL='C' 42LANGUAGE='C' 43export LANG 44export LC_ALL 45export LANGUAGE 46 47# 48# Some useful variables. 49# 50 51xc_msg_warn='configure: WARNING:' 52xc_msg_abrt='Can not continue.' 53xc_msg_err='configure: error:' 54 55# 56# Verify that 'echo' command is available, otherwise abort. 57# 58 59xc_tst_str='unknown' 60(`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success' 61case "x$xc_tst_str" in # (( 62 xsuccess) 63 : 64 ;; 65 *) 66 # Try built-in echo, and fail. 67 echo "$xc_msg_err 'echo' command not found. $xc_msg_abrt" >&2 68 exit 1 69 ;; 70esac 71 72# 73# Verify that 'test' command is available, otherwise abort. 74# 75 76xc_tst_str='unknown' 77(`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success' 78case "x$xc_tst_str" in # (( 79 xsuccess) 80 : 81 ;; 82 *) 83 echo "$xc_msg_err 'test' command not found. $xc_msg_abrt" >&2 84 exit 1 85 ;; 86esac 87 88# 89# Verify that 'PATH' variable is set, otherwise abort. 90# 91 92xc_tst_str='unknown' 93(`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success' 94case "x$xc_tst_str" in # (( 95 xsuccess) 96 : 97 ;; 98 *) 99 echo "$xc_msg_err 'PATH' variable not set. $xc_msg_abrt" >&2 100 exit 1 101 ;; 102esac 103 104# 105# Verify that 'expr' command is available, otherwise abort. 106# 107 108xc_tst_str='unknown' 109xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null` 110case "x$xc_tst_str" in # (( 111 x7) 112 : 113 ;; 114 *) 115 echo "$xc_msg_err 'expr' command not found. $xc_msg_abrt" >&2 116 exit 1 117 ;; 118esac 119 120# 121# Verify that 'sed' utility is found within 'PATH', otherwise abort. 122# 123 124xc_tst_str='unknown' 125xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \ 126 | sed -e 's:unknown:success:' 2>/dev/null` 127case "x$xc_tst_str" in # (( 128 xsuccess) 129 : 130 ;; 131 *) 132 echo "$xc_msg_err 'sed' utility not found in 'PATH'. $xc_msg_abrt" >&2 133 exit 1 134 ;; 135esac 136 137# 138# Verify that 'grep' utility is found within 'PATH', otherwise abort. 139# 140 141xc_tst_str='unknown' 142(`echo "$xc_tst_str" 2>/dev/null \ 143 | grep 'unknown' >/dev/null 2>&1`) && xc_tst_str='success' 144case "x$xc_tst_str" in # (( 145 xsuccess) 146 : 147 ;; 148 *) 149 echo "$xc_msg_err 'grep' utility not found in 'PATH'. $xc_msg_abrt" >&2 150 exit 1 151 ;; 152esac 153 154# 155# Verify that 'tr' utility is found within 'PATH', otherwise abort. 156# 157 158xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10" 159xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \ 160 | tr -d "0123456789$xc_tab" 2>/dev/null` 161case "x$xc_tst_str" in # (( 162 xsuccess) 163 : 164 ;; 165 *) 166 echo "$xc_msg_err 'tr' utility not found in 'PATH'. $xc_msg_abrt" >&2 167 exit 1 168 ;; 169esac 170 171# 172# Verify that 'wc' utility is found within 'PATH', otherwise abort. 173# 174 175xc_tst_str='unknown unknown unknown unknown' 176xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \ 177 | wc -w 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null` 178case "x$xc_tst_str" in # (( 179 x4) 180 : 181 ;; 182 *) 183 echo "$xc_msg_err 'wc' utility not found in 'PATH'. $xc_msg_abrt" >&2 184 exit 1 185 ;; 186esac 187 188# 189# Verify that 'cat' utility is found within 'PATH', otherwise abort. 190# 191 192xc_tst_str='unknown' 193xc_tst_str=`cat <<_EOT 2>/dev/null \ 194 | wc -l 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null 195unknown 196unknown 197unknown 198_EOT` 199case "x$xc_tst_str" in # (( 200 x3) 201 : 202 ;; 203 *) 204 echo "$xc_msg_err 'cat' utility not found in 'PATH'. $xc_msg_abrt" >&2 205 exit 1 206 ;; 207esac 208 209# 210# Auto-detect and set 'PATH_SEPARATOR', unless it is already non-empty set. 211# 212 213# Directory count in 'PATH' when using a colon separator. 214xc_tst_dirs_col='x' 215xc_tst_prev_IFS=$IFS; IFS=':' 216for xc_tst_dir in $PATH; do 217 IFS=$xc_tst_prev_IFS 218 xc_tst_dirs_col="x$xc_tst_dirs_col" 219done 220IFS=$xc_tst_prev_IFS 221xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'` 222 223# Directory count in 'PATH' when using a semicolon separator. 224xc_tst_dirs_sem='x' 225xc_tst_prev_IFS=$IFS; IFS=';' 226for xc_tst_dir in $PATH; do 227 IFS=$xc_tst_prev_IFS 228 xc_tst_dirs_sem="x$xc_tst_dirs_sem" 229done 230IFS=$xc_tst_prev_IFS 231xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'` 232 233if test $xc_tst_dirs_sem -eq $xc_tst_dirs_col; then 234 # When both counting methods give the same result we do not want to 235 # chose one over the other, and consider auto-detection not possible. 236 if test -z "$PATH_SEPARATOR"; then 237 # User should provide the correct 'PATH_SEPARATOR' definition. 238 # Until then, guess that it is colon! 239 echo "$xc_msg_warn path separator not determined, guessing colon" >&2 240 PATH_SEPARATOR=':' 241 fi 242else 243 # Separator with the greater directory count is the auto-detected one. 244 if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then 245 xc_tst_auto_separator=';' 246 else 247 xc_tst_auto_separator=':' 248 fi 249 if test -z "$PATH_SEPARATOR"; then 250 # Simply use the auto-detected one when not already set. 251 PATH_SEPARATOR=$xc_tst_auto_separator 252 elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then 253 echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2 254 fi 255fi 256xc_PATH_SEPARATOR=$PATH_SEPARATOR 257 258xc_configure_preamble_result='yes' 259 260 261## -------------------- ## 262## M4sh Initialization. ## 263## -------------------- ## 264 265# Be more Bourne compatible 266DUALCASE=1; export DUALCASE # for MKS sh 267as_nop=: 268if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 269then : 270 emulate sh 271 NULLCMD=: 272 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 273 # is contrary to our usage. Disable this feature. 274 alias -g '${1+"$@"}'='"$@"' 275 setopt NO_GLOB_SUBST 276else $as_nop 277 case `(set -o) 2>/dev/null` in #( 278 *posix*) : 279 set -o posix ;; #( 280 *) : 281 ;; 282esac 283fi 284 285 286 287# Reset variables that may have inherited troublesome values from 288# the environment. 289 290# IFS needs to be set, to space, tab, and newline, in precisely that order. 291# (If _AS_PATH_WALK were called with IFS unset, it would have the 292# side effect of setting IFS to empty, thus disabling word splitting.) 293# Quoting is to prevent editors from complaining about space-tab. 294as_nl=' 295' 296export as_nl 297IFS=" "" $as_nl" 298 299PS1='$ ' 300PS2='> ' 301PS4='+ ' 302 303# Ensure predictable behavior from utilities with locale-dependent output. 304LC_ALL=C 305export LC_ALL 306LANGUAGE=C 307export LANGUAGE 308 309# We cannot yet rely on "unset" to work, but we need these variables 310# to be unset--not just set to an empty or harmless value--now, to 311# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 312# also avoids known problems related to "unset" and subshell syntax 313# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 314for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 315do eval test \${$as_var+y} \ 316 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 317done 318 319# Ensure that fds 0, 1, and 2 are open. 320if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 321if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 322if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 323 324 325 326# Find who we are. Look in the path if we contain no directory separator. 327as_myself= 328case $0 in #(( 329 *[\\/]* ) as_myself=$0 ;; 330 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 331for as_dir in $PATH 332do 333 IFS=$as_save_IFS 334 case $as_dir in #((( 335 '') as_dir=./ ;; 336 */) ;; 337 *) as_dir=$as_dir/ ;; 338 esac 339 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 340 done 341IFS=$as_save_IFS 342 343 ;; 344esac 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. 347if test "x$as_myself" = x; then 348 as_myself=$0 349fi 350if test ! -f "$as_myself"; then 351 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 352 exit 1 353fi 354 355 356# Use a proper internal environment variable to ensure we don't fall 357 # into an infinite loop, continuously re-executing ourselves. 358 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 359 _as_can_reexec=no; export _as_can_reexec; 360 # We cannot yet assume a decent shell, so we have to provide a 361# neutralization value for shells without unset; and this also 362# works around shells that cannot unset nonexistent variables. 363# Preserve -v and -x to the replacement shell. 364BASH_ENV=/dev/null 365ENV=/dev/null 366(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 367case $- in # (((( 368 *v*x* | *x*v* ) as_opts=-vx ;; 369 *v* ) as_opts=-v ;; 370 *x* ) as_opts=-x ;; 371 * ) as_opts= ;; 372esac 373exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 374# Admittedly, this is quite paranoid, since all the known shells bail 375# out after a failed `exec'. 376printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 377exit 255 378 fi 379 # We don't want this to propagate to other subprocesses. 380 { _as_can_reexec=; unset _as_can_reexec;} 381if test "x$CONFIG_SHELL" = x; then 382 as_bourne_compatible="as_nop=: 383if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 384then : 385 emulate sh 386 NULLCMD=: 387 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 388 # is contrary to our usage. Disable this feature. 389 alias -g '\${1+\"\$@\"}'='\"\$@\"' 390 setopt NO_GLOB_SUBST 391else \$as_nop 392 case \`(set -o) 2>/dev/null\` in #( 393 *posix*) : 394 set -o posix ;; #( 395 *) : 396 ;; 397esac 398fi 399" 400 as_required="as_fn_return () { (exit \$1); } 401as_fn_success () { as_fn_return 0; } 402as_fn_failure () { as_fn_return 1; } 403as_fn_ret_success () { return 0; } 404as_fn_ret_failure () { return 1; } 405 406exitcode=0 407as_fn_success || { exitcode=1; echo as_fn_success failed.; } 408as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 409as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 410as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 411if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 412then : 413 414else \$as_nop 415 exitcode=1; echo positional parameters were not saved. 416fi 417test x\$exitcode = x0 || exit 1 418blah=\$(echo \$(echo blah)) 419test x\"\$blah\" = xblah || exit 1 420test -x / || exit 1" 421 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 422 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 423 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 424 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 425test \$(( 1 + 1 )) = 2 || exit 1 426 427 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 428 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 429 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 430 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 431 PATH=/empty FPATH=/empty; export PATH FPATH 432 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 433 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 434 if (eval "$as_required") 2>/dev/null 435then : 436 as_have_required=yes 437else $as_nop 438 as_have_required=no 439fi 440 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 441then : 442 443else $as_nop 444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 445as_found=false 446for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 447do 448 IFS=$as_save_IFS 449 case $as_dir in #((( 450 '') as_dir=./ ;; 451 */) ;; 452 *) as_dir=$as_dir/ ;; 453 esac 454 as_found=: 455 case $as_dir in #( 456 /*) 457 for as_base in sh bash ksh sh5; do 458 # Try only shells that exist, to save several forks. 459 as_shell=$as_dir$as_base 460 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 461 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 462then : 463 CONFIG_SHELL=$as_shell as_have_required=yes 464 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 465then : 466 break 2 467fi 468fi 469 done;; 470 esac 471 as_found=false 472done 473IFS=$as_save_IFS 474if $as_found 475then : 476 477else $as_nop 478 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 479 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 480then : 481 CONFIG_SHELL=$SHELL as_have_required=yes 482fi 483fi 484 485 486 if test "x$CONFIG_SHELL" != x 487then : 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. 493BASH_ENV=/dev/null 494ENV=/dev/null 495(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 496case $- in # (((( 497 *v*x* | *x*v* ) as_opts=-vx ;; 498 *v* ) as_opts=-v ;; 499 *x* ) as_opts=-x ;; 500 * ) as_opts= ;; 501esac 502exec $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'. 505printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 506exit 255 507fi 508 509 if test x$as_have_required = xno 510then : 511 printf "%s\n" "$0: This script requires a shell more modern than all" 512 printf "%s\n" "$0: the shells that I found on your system." 513 if test ${ZSH_VERSION+y} ; then 514 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 515 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 516 else 517 printf "%s\n" "$0: Please tell [email protected] and a suitable curl 518$0: mailing list: https://curl.se/mail/ about your system, 519$0: including any error possibly output before this 520$0: message. Then install a modern shell, or manually run 521$0: the script under such a shell if you do have one." 522 fi 523 exit 1 524fi 525fi 526fi 527SHELL=${CONFIG_SHELL-/bin/sh} 528export SHELL 529# Unset more variables known to interfere with behavior of common tools. 530CLICOLOR_FORCE= GREP_OPTIONS= 531unset CLICOLOR_FORCE GREP_OPTIONS 532 533## --------------------- ## 534## M4sh Shell Functions. ## 535## --------------------- ## 536# as_fn_unset VAR 537# --------------- 538# Portably unset VAR. 539as_fn_unset () 540{ 541 { eval $1=; unset $1;} 542} 543as_unset=as_fn_unset 544 545 546# as_fn_set_status STATUS 547# ----------------------- 548# Set $? to STATUS, without forking. 549as_fn_set_status () 550{ 551 return $1 552} # as_fn_set_status 553 554# as_fn_exit STATUS 555# ----------------- 556# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 557as_fn_exit () 558{ 559 set +e 560 as_fn_set_status $1 561 exit $1 562} # as_fn_exit 563# as_fn_nop 564# --------- 565# Do nothing but, unlike ":", preserve the value of $?. 566as_fn_nop () 567{ 568 return $? 569} 570as_nop=as_fn_nop 571 572# as_fn_mkdir_p 573# ------------- 574# Create "$as_dir" as a directory, including parents if necessary. 575as_fn_mkdir_p () 576{ 577 578 case $as_dir in #( 579 -*) as_dir=./$as_dir;; 580 esac 581 test -d "$as_dir" || eval $as_mkdir_p || { 582 as_dirs= 583 while :; do 584 case $as_dir in #( 585 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 586 *) as_qdir=$as_dir;; 587 esac 588 as_dirs="'$as_qdir' $as_dirs" 589 as_dir=`$as_dirname -- "$as_dir" || 590$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 591 X"$as_dir" : 'X\(//\)[^/]' \| \ 592 X"$as_dir" : 'X\(//\)$' \| \ 593 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 594printf "%s\n" X"$as_dir" | 595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 596 s//\1/ 597 q 598 } 599 /^X\(\/\/\)[^/].*/{ 600 s//\1/ 601 q 602 } 603 /^X\(\/\/\)$/{ 604 s//\1/ 605 q 606 } 607 /^X\(\/\).*/{ 608 s//\1/ 609 q 610 } 611 s/.*/./; q'` 612 test -d "$as_dir" && break 613 done 614 test -z "$as_dirs" || eval "mkdir $as_dirs" 615 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 616 617 618} # as_fn_mkdir_p 619 620# as_fn_executable_p FILE 621# ----------------------- 622# Test if FILE is an executable regular file. 623as_fn_executable_p () 624{ 625 test -f "$1" && test -x "$1" 626} # as_fn_executable_p 627# as_fn_append VAR VALUE 628# ---------------------- 629# Append the text in VALUE to the end of the definition contained in VAR. Take 630# advantage of any shell optimizations that allow amortized linear growth over 631# repeated appends, instead of the typical quadratic growth present in naive 632# implementations. 633if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 634then : 635 eval 'as_fn_append () 636 { 637 eval $1+=\$2 638 }' 639else $as_nop 640 as_fn_append () 641 { 642 eval $1=\$$1\$2 643 } 644fi # as_fn_append 645 646# as_fn_arith ARG... 647# ------------------ 648# Perform arithmetic evaluation on the ARGs, and store the result in the 649# global $as_val. Take advantage of shells that can avoid forks. The arguments 650# must be portable across $(()) and expr. 651if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 652then : 653 eval 'as_fn_arith () 654 { 655 as_val=$(( $* )) 656 }' 657else $as_nop 658 as_fn_arith () 659 { 660 as_val=`expr "$@" || test $? -eq 1` 661 } 662fi # as_fn_arith 663 664# as_fn_nop 665# --------- 666# Do nothing but, unlike ":", preserve the value of $?. 667as_fn_nop () 668{ 669 return $? 670} 671as_nop=as_fn_nop 672 673# as_fn_error STATUS ERROR [LINENO LOG_FD] 674# ---------------------------------------- 675# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 676# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 677# script with STATUS, using 1 if that was 0. 678as_fn_error () 679{ 680 as_status=$1; test $as_status -eq 0 && as_status=1 681 if test "$4"; then 682 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 684 fi 685 printf "%s\n" "$as_me: error: $2" >&2 686 as_fn_exit $as_status 687} # as_fn_error 688 689if expr a : '\(a\)' >/dev/null 2>&1 && 690 test "X`expr 00001 : '.*\(...\)'`" = X001; then 691 as_expr=expr 692else 693 as_expr=false 694fi 695 696if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 697 as_basename=basename 698else 699 as_basename=false 700fi 701 702if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 703 as_dirname=dirname 704else 705 as_dirname=false 706fi 707 708as_me=`$as_basename -- "$0" || 709$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 710 X"$0" : 'X\(//\)$' \| \ 711 X"$0" : 'X\(/\)' \| . 2>/dev/null || 712printf "%s\n" X/"$0" | 713 sed '/^.*\/\([^/][^/]*\)\/*$/{ 714 s//\1/ 715 q 716 } 717 /^X\/\(\/\/\)$/{ 718 s//\1/ 719 q 720 } 721 /^X\/\(\/\).*/{ 722 s//\1/ 723 q 724 } 725 s/.*/./; q'` 726 727# Avoid depending upon Character Ranges. 728as_cr_letters='abcdefghijklmnopqrstuvwxyz' 729as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 730as_cr_Letters=$as_cr_letters$as_cr_LETTERS 731as_cr_digits='0123456789' 732as_cr_alnum=$as_cr_Letters$as_cr_digits 733 734 735 as_lineno_1=$LINENO as_lineno_1a=$LINENO 736 as_lineno_2=$LINENO as_lineno_2a=$LINENO 737 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 738 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 739 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 740 sed -n ' 741 p 742 /[$]LINENO/= 743 ' <$as_myself | 744 sed ' 745 s/[$]LINENO.*/&-/ 746 t lineno 747 b 748 :lineno 749 N 750 :loop 751 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 752 t loop 753 s/-\n.*// 754 ' >$as_me.lineno && 755 chmod +x "$as_me.lineno" || 756 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 757 758 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 759 # already done that, so ensure we don't try to do so again and fall 760 # in an infinite loop. This has already happened in practice. 761 _as_can_reexec=no; export _as_can_reexec 762 # Don't try to exec as it changes $[0], causing all sort of problems 763 # (the dirname of $[0] is not the place where we might find the 764 # original and so on. Autoconf is especially sensitive to this). 765 . "./$as_me.lineno" 766 # Exit status is that of the last command. 767 exit 768} 769 770 771# Determine whether it's possible to make 'echo' print without a newline. 772# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 773# for compatibility with existing Makefiles. 774ECHO_C= ECHO_N= ECHO_T= 775case `echo -n x` in #((((( 776-n*) 777 case `echo 'xy\c'` in 778 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 779 xy) ECHO_C='\c';; 780 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 781 ECHO_T=' ';; 782 esac;; 783*) 784 ECHO_N='-n';; 785esac 786 787# For backward compatibility with old third-party macros, we provide 788# the shell variables $as_echo and $as_echo_n. New code should use 789# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 790as_echo='printf %s\n' 791as_echo_n='printf %s' 792 793 794rm -f conf$$ conf$$.exe conf$$.file 795if test -d conf$$.dir; then 796 rm -f conf$$.dir/conf$$.file 797else 798 rm -f conf$$.dir 799 mkdir conf$$.dir 2>/dev/null 800fi 801if (echo >conf$$.file) 2>/dev/null; then 802 if ln -s conf$$.file conf$$ 2>/dev/null; then 803 as_ln_s='ln -s' 804 # ... but there are two gotchas: 805 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 806 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 807 # In both cases, we have to default to `cp -pR'. 808 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 809 as_ln_s='cp -pR' 810 elif ln conf$$.file conf$$ 2>/dev/null; then 811 as_ln_s=ln 812 else 813 as_ln_s='cp -pR' 814 fi 815else 816 as_ln_s='cp -pR' 817fi 818rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 819rmdir conf$$.dir 2>/dev/null 820 821if mkdir -p . 2>/dev/null; then 822 as_mkdir_p='mkdir -p "$as_dir"' 823else 824 test -d ./-p && rmdir ./-p 825 as_mkdir_p=false 826fi 827 828as_test_x='test -x' 829as_executable_p=as_fn_executable_p 830 831# Sed expression to map a string onto a valid CPP name. 832as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 833 834# Sed expression to map a string onto a valid variable name. 835as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 836 837SHELL=${CONFIG_SHELL-/bin/sh} 838 839 840test -n "$DJDIR" || exec 7<&0 </dev/null 841exec 6>&1 842 843# Name of the host. 844# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 845# so uname gets run too. 846ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 847 848# 849# Initializations. 850# 851ac_default_prefix=/usr/local 852ac_clean_files= 853ac_config_libobj_dir=. 854LIBOBJS= 855cross_compiling=no 856subdirs= 857MFLAGS= 858MAKEFLAGS= 859 860# Identity of this package. 861PACKAGE_NAME='curl' 862PACKAGE_TARNAME='curl' 863PACKAGE_VERSION='-' 864PACKAGE_STRING='curl -' 865PACKAGE_BUGREPORT='a suitable curl mailing list: https://curl.se/mail/' 866PACKAGE_URL='' 867 868ac_unique_file="lib/urldata.h" 869# Factoring default headers for most tests. 870ac_includes_default="\ 871#include <stddef.h> 872#ifdef HAVE_STDIO_H 873# include <stdio.h> 874#endif 875#ifdef HAVE_STDLIB_H 876# include <stdlib.h> 877#endif 878#ifdef HAVE_STRING_H 879# include <string.h> 880#endif 881#ifdef HAVE_INTTYPES_H 882# include <inttypes.h> 883#endif 884#ifdef HAVE_STDINT_H 885# include <stdint.h> 886#endif 887#ifdef HAVE_STRINGS_H 888# include <strings.h> 889#endif 890#ifdef HAVE_SYS_TYPES_H 891# include <sys/types.h> 892#endif 893#ifdef HAVE_SYS_STAT_H 894# include <sys/stat.h> 895#endif 896#ifdef HAVE_UNISTD_H 897# include <unistd.h> 898#endif" 899 900ac_header_c_list= 901ac_subst_vars='am__EXEEXT_FALSE 902am__EXEEXT_TRUE 903LTLIBOBJS 904LIBOBJS 905CURL_CPP 906SSL_BACKENDS 907SUPPORT_PROTOCOLS 908SUPPORT_FEATURES 909LIBCURL_PC_LIBS 910LIBCURL_PC_REQUIRES 911LIBCURL_PC_REQUIRES_PRIVATE 912ENABLE_STATIC 913ENABLE_SHARED 914CROSSCOMPILING_FALSE 915CROSSCOMPILING_TRUE 916BLANK_AT_MAKETIME 917CURL_NETWORK_AND_TIME_LIBS 918CURL_NETWORK_LIBS 919LIBCURL_PC_LIBS_PRIVATE 920CFLAG_CURL_SYMBOL_HIDING 921DOING_CURL_SYMBOL_HIDING_FALSE 922DOING_CURL_SYMBOL_HIDING_TRUE 923CURL_DISABLE_WEBSOCKETS 924USE_UNIX_SOCKETS 925USE_ARES 926USE_MANUAL_FALSE 927USE_MANUAL_TRUE 928BUILD_DOCS_FALSE 929BUILD_DOCS_TRUE 930PERL 931USE_FISH_COMPLETION_FALSE 932USE_FISH_COMPLETION_TRUE 933FISH_FUNCTIONS_DIR 934USE_ZSH_COMPLETION_FALSE 935USE_ZSH_COMPLETION_TRUE 936ZSH_FUNCTIONS_DIR 937USE_LIBUV 938USE_MSH3 939USE_QUICHE 940USE_OPENSSL_H3 941USE_NGTCP2_H3 942USE_NGHTTP3 943USE_OPENSSL_QUIC 944USE_NGTCP2_CRYPTO_WOLFSSL 945USE_NGTCP2_CRYPTO_GNUTLS 946USE_NGTCP2_CRYPTO_BORINGSSL 947USE_NGTCP2_CRYPTO_QUICTLS 948USE_NGTCP2 949USE_NGHTTP2 950USE_APPLE_IDN 951IDN_ENABLED 952USE_UNICODE_FALSE 953USE_UNICODE_TRUE 954CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE 955CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE 956CURL_LIBCURL_VERSIONED_SYMBOLS_SONAME 957CURL_LIBCURL_VERSIONED_SYMBOLS_PREFIX 958USE_LIBRTMP 959USE_WOLFSSH 960USE_LIBSSH 961USE_LIBSSH2 962USE_GSASL_FALSE 963USE_GSASL_TRUE 964USE_LIBPSL_FALSE 965USE_LIBPSL_TRUE 966USE_LIBPSL 967CURL_CA_EMBED_SET_FALSE 968CURL_CA_EMBED_SET_TRUE 969CURL_CA_EMBED 970CURL_CA_BUNDLE 971CURL_WITH_MULTI_SSL 972SSL_ENABLED 973USE_RUSTLS 974USE_BEARSSL 975USE_WOLFSSL 976USE_MBEDTLS 977HAVE_GNUTLS_SRP 978USE_GNUTLS 979HAVE_OPENSSL_SRP 980SSL_LIBS 981USE_SECTRANSP 982USE_WINDOWS_SSPI 983USE_SCHANNEL 984DEFAULT_SSL_BACKEND 985BUILD_STUB_GSS_FALSE 986BUILD_STUB_GSS_TRUE 987IPV6_ENABLED 988USE_OPENLDAP 989HAVE_ZSTD 990HAVE_BROTLI 991ZLIB_LIBS 992HAVE_LIBZ_FALSE 993HAVE_LIBZ_TRUE 994HAVE_LIBZ 995HAVE_PROTO_BSDSOCKET_H 996CURL_DISABLE_MQTT 997CURL_DISABLE_GOPHER 998CURL_DISABLE_SMTP 999CURL_DISABLE_SMB 1000CURL_DISABLE_IMAP 1001CURL_DISABLE_POP3 1002CURL_DISABLE_TFTP 1003CURL_DISABLE_TELNET 1004CURL_DISABLE_DICT 1005CURL_DISABLE_PROXY 1006USE_HYPER 1007PKGCONFIG 1008HAVE_LDAP_SSL 1009CURL_DISABLE_LDAPS 1010CURL_DISABLE_LDAP 1011CURL_DISABLE_FILE 1012CURL_DISABLE_FTP 1013CURL_DISABLE_RTSP 1014CURL_DISABLE_IPFS 1015CURL_DISABLE_HTTP 1016USE_TEST_BUNDLES_FALSE 1017USE_TEST_BUNDLES_TRUE 1018USE_UNITY_FALSE 1019USE_UNITY_TRUE 1020HAVE_WINDRES_FALSE 1021HAVE_WINDRES_TRUE 1022USE_WIN32_CRYPTO 1023USE_WIN32_SMALL_FILES 1024USE_WIN32_LARGE_FILES 1025BUILD_UNITTESTS_FALSE 1026BUILD_UNITTESTS_TRUE 1027CURL_CFLAG_EXTRAS 1028DOING_NATIVE_WINDOWS_FALSE 1029DOING_NATIVE_WINDOWS_TRUE 1030LIBCURL_PC_CFLAGS 1031LIBCURL_PC_CFLAGS_PRIVATE 1032USE_CPPFLAG_CURL_STATICLIB_FALSE 1033USE_CPPFLAG_CURL_STATICLIB_TRUE 1034CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE 1035CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE 1036CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE 1037CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE 1038CURL_LT_SHLIB_USE_VERSION_INFO_FALSE 1039CURL_LT_SHLIB_USE_VERSION_INFO_TRUE 1040RC 1041LT_SYS_LIBRARY_PATH 1042OTOOL64 1043OTOOL 1044LIPO 1045NMEDIT 1046DSYMUTIL 1047MANIFEST_TOOL 1048RANLIB 1049ac_ct_AR 1050FILECMD 1051LN_S 1052NM 1053ac_ct_DUMPBIN 1054DUMPBIN 1055LD 1056FGREP 1057LIBTOOL 1058OBJDUMP 1059DLLTOOL 1060AS 1061AR_FLAGS 1062host_os 1063host_vendor 1064host_cpu 1065host 1066build_os 1067build_vendor 1068build_cpu 1069build 1070HTTPD_NGHTTPX 1071APACHECTL 1072HTTPD 1073APXS 1074VSFTPD 1075CADDY 1076TEST_NGHTTPX 1077PKGADD_VENDOR 1078PKGADD_NAME 1079PKGADD_PKG 1080VERSIONNUM 1081CURLVERSION 1082CSCOPE 1083ETAGS 1084CTAGS 1085am__fastdepCC_FALSE 1086am__fastdepCC_TRUE 1087CCDEPMODE 1088am__nodep 1089AMDEPBACKSLASH 1090AMDEP_FALSE 1091AMDEP_TRUE 1092am__include 1093DEPDIR 1094am__untar 1095am__tar 1096AMTAR 1097am__leading_dot 1098SET_MAKE 1099AWK 1100mkdir_p 1101MKDIR_P 1102INSTALL_STRIP_PROGRAM 1103STRIP 1104install_sh 1105MAKEINFO 1106AUTOHEADER 1107AUTOMAKE 1108AUTOCONF 1109ACLOCAL 1110VERSION 1111PACKAGE 1112CYGPATH_W 1113am__isrc 1114LCOV 1115GCOV 1116CPP 1117OBJEXT 1118EXEEXT 1119ac_ct_CC 1120CPPFLAGS 1121LDFLAGS 1122CFLAGS 1123CC 1124INSTALL_DATA 1125INSTALL_SCRIPT 1126INSTALL_PROGRAM 1127libext 1128AR 1129EGREP 1130GREP 1131SED 1132CONFIGURE_OPTIONS 1133DEBUGBUILD_FALSE 1134DEBUGBUILD_TRUE 1135AM_BACKSLASH 1136AM_DEFAULT_VERBOSITY 1137AM_DEFAULT_V 1138AM_V 1139MAINT 1140MAINTAINER_MODE_FALSE 1141MAINTAINER_MODE_TRUE 1142target_alias 1143host_alias 1144build_alias 1145LIBS 1146ECHO_T 1147ECHO_N 1148ECHO_C 1149DEFS 1150mandir 1151localedir 1152libdir 1153psdir 1154pdfdir 1155dvidir 1156htmldir 1157infodir 1158docdir 1159oldincludedir 1160includedir 1161runstatedir 1162localstatedir 1163sharedstatedir 1164sysconfdir 1165datadir 1166datarootdir 1167libexecdir 1168sbindir 1169bindir 1170program_transform_name 1171prefix 1172exec_prefix 1173PACKAGE_URL 1174PACKAGE_BUGREPORT 1175PACKAGE_STRING 1176PACKAGE_VERSION 1177PACKAGE_TARNAME 1178PACKAGE_NAME 1179SHELL 1180PATH_SEPARATOR 1181am__quote' 1182ac_subst_files='' 1183ac_user_opts=' 1184enable_option_checking 1185enable_maintainer_mode 1186enable_silent_rules 1187enable_debug 1188enable_optimize 1189enable_warnings 1190enable_werror 1191enable_curldebug 1192enable_symbol_hiding 1193enable_ares 1194enable_rt 1195enable_httpsrr 1196enable_ech 1197enable_code_coverage 1198enable_dependency_tracking 1199with_schannel 1200with_secure_transport 1201with_amissl 1202with_ssl 1203with_openssl 1204with_gnutls 1205with_mbedtls 1206with_wolfssl 1207with_bearssl 1208with_rustls 1209with_test_nghttpx 1210with_test_caddy 1211with_test_vsftpd 1212with_test_httpd 1213with_darwinssl 1214enable_largefile 1215enable_shared 1216enable_static 1217with_pic 1218enable_fast_install 1219with_aix_soname 1220with_gnu_ld 1221with_sysroot 1222enable_libtool_lock 1223enable_unity 1224enable_test_bundles 1225enable_http 1226enable_ftp 1227enable_file 1228enable_ipfs 1229enable_ldap 1230enable_ldaps 1231with_hyper 1232enable_rtsp 1233enable_proxy 1234enable_dict 1235enable_telnet 1236enable_tftp 1237enable_pop3 1238enable_imap 1239enable_smb 1240enable_smtp 1241enable_gopher 1242enable_mqtt 1243enable_manual 1244enable_docs 1245enable_libcurl_option 1246enable_libgcc 1247with_zlib 1248with_brotli 1249with_zstd 1250with_ldap_lib 1251with_lber_lib 1252enable_ipv6 1253with_gssapi_includes 1254with_gssapi_libs 1255with_gssapi 1256with_default_ssl_backend 1257enable_openssl_auto_load_config 1258with_ca_bundle 1259with_ca_path 1260with_ca_fallback 1261with_ca_embed 1262enable_ca_search 1263enable_ca_search_safe 1264with_libpsl 1265with_libgsasl 1266with_libmetalink 1267with_libssh2 1268with_libssh 1269with_wolfssh 1270with_librtmp 1271enable_versioned_symbols 1272enable_windows_unicode 1273with_winidn 1274with_apple_idn 1275with_libidn2 1276with_nghttp2 1277with_ngtcp2 1278with_openssl_quic 1279with_nghttp3 1280with_quiche 1281with_msh3 1282with_libuv 1283with_zsh_functions_dir 1284with_fish_functions_dir 1285enable_threaded_resolver 1286enable_pthreads 1287enable_verbose 1288enable_sspi 1289enable_basic_auth 1290enable_bearer_auth 1291enable_digest_auth 1292enable_kerberos_auth 1293enable_negotiate_auth 1294enable_aws 1295enable_ntlm 1296enable_tls_srp 1297enable_unix_sockets 1298enable_cookies 1299enable_socketpair 1300enable_http_auth 1301enable_doh 1302enable_mime 1303enable_bindlocal 1304enable_form_api 1305enable_dateparse 1306enable_netrc 1307enable_progress_meter 1308enable_sha512_256 1309enable_dnsshuffle 1310enable_get_easy_options 1311enable_alt_svc 1312enable_headers_api 1313enable_hsts 1314enable_websockets 1315' 1316 ac_precious_vars='build_alias 1317host_alias 1318target_alias 1319CC 1320CFLAGS 1321LDFLAGS 1322LIBS 1323CPPFLAGS 1324CPP 1325LT_SYS_LIBRARY_PATH' 1326 1327 1328# Initialize some variables set by options. 1329ac_init_help= 1330ac_init_version=false 1331ac_unrecognized_opts= 1332ac_unrecognized_sep= 1333# The variables have the same names as the options, with 1334# dashes changed to underlines. 1335cache_file=/dev/null 1336exec_prefix=NONE 1337no_create= 1338no_recursion= 1339prefix=NONE 1340program_prefix=NONE 1341program_suffix=NONE 1342program_transform_name=s,x,x, 1343silent= 1344site= 1345srcdir= 1346verbose= 1347x_includes=NONE 1348x_libraries=NONE 1349 1350# Installation directory options. 1351# These are left unexpanded so users can "make install exec_prefix=/foo" 1352# and all the variables that are supposed to be based on exec_prefix 1353# by default will actually change. 1354# Use braces instead of parens because sh, perl, etc. also accept them. 1355# (The list follows the same order as the GNU Coding Standards.) 1356bindir='${exec_prefix}/bin' 1357sbindir='${exec_prefix}/sbin' 1358libexecdir='${exec_prefix}/libexec' 1359datarootdir='${prefix}/share' 1360datadir='${datarootdir}' 1361sysconfdir='${prefix}/etc' 1362sharedstatedir='${prefix}/com' 1363localstatedir='${prefix}/var' 1364runstatedir='${localstatedir}/run' 1365includedir='${prefix}/include' 1366oldincludedir='/usr/include' 1367docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1368infodir='${datarootdir}/info' 1369htmldir='${docdir}' 1370dvidir='${docdir}' 1371pdfdir='${docdir}' 1372psdir='${docdir}' 1373libdir='${exec_prefix}/lib' 1374localedir='${datarootdir}/locale' 1375mandir='${datarootdir}/man' 1376 1377ac_prev= 1378ac_dashdash= 1379for ac_option 1380do 1381 # If the previous option needs an argument, assign it. 1382 if test -n "$ac_prev"; then 1383 eval $ac_prev=\$ac_option 1384 ac_prev= 1385 continue 1386 fi 1387 1388 case $ac_option in 1389 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1390 *=) ac_optarg= ;; 1391 *) ac_optarg=yes ;; 1392 esac 1393 1394 case $ac_dashdash$ac_option in 1395 --) 1396 ac_dashdash=yes ;; 1397 1398 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1399 ac_prev=bindir ;; 1400 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1401 bindir=$ac_optarg ;; 1402 1403 -build | --build | --buil | --bui | --bu) 1404 ac_prev=build_alias ;; 1405 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1406 build_alias=$ac_optarg ;; 1407 1408 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1409 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1410 ac_prev=cache_file ;; 1411 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1412 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1413 cache_file=$ac_optarg ;; 1414 1415 --config-cache | -C) 1416 cache_file=config.cache ;; 1417 1418 -datadir | --datadir | --datadi | --datad) 1419 ac_prev=datadir ;; 1420 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1421 datadir=$ac_optarg ;; 1422 1423 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1424 | --dataroo | --dataro | --datar) 1425 ac_prev=datarootdir ;; 1426 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1427 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1428 datarootdir=$ac_optarg ;; 1429 1430 -disable-* | --disable-*) 1431 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1432 # Reject names that are not valid shell variable names. 1433 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1434 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1435 ac_useropt_orig=$ac_useropt 1436 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1437 case $ac_user_opts in 1438 *" 1439"enable_$ac_useropt" 1440"*) ;; 1441 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1442 ac_unrecognized_sep=', ';; 1443 esac 1444 eval enable_$ac_useropt=no ;; 1445 1446 -docdir | --docdir | --docdi | --doc | --do) 1447 ac_prev=docdir ;; 1448 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1449 docdir=$ac_optarg ;; 1450 1451 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1452 ac_prev=dvidir ;; 1453 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1454 dvidir=$ac_optarg ;; 1455 1456 -enable-* | --enable-*) 1457 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1458 # Reject names that are not valid shell variable names. 1459 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1460 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1461 ac_useropt_orig=$ac_useropt 1462 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1463 case $ac_user_opts in 1464 *" 1465"enable_$ac_useropt" 1466"*) ;; 1467 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1468 ac_unrecognized_sep=', ';; 1469 esac 1470 eval enable_$ac_useropt=\$ac_optarg ;; 1471 1472 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1473 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1474 | --exec | --exe | --ex) 1475 ac_prev=exec_prefix ;; 1476 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1477 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1478 | --exec=* | --exe=* | --ex=*) 1479 exec_prefix=$ac_optarg ;; 1480 1481 -gas | --gas | --ga | --g) 1482 # Obsolete; use --with-gas. 1483 with_gas=yes ;; 1484 1485 -help | --help | --hel | --he | -h) 1486 ac_init_help=long ;; 1487 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1488 ac_init_help=recursive ;; 1489 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1490 ac_init_help=short ;; 1491 1492 -host | --host | --hos | --ho) 1493 ac_prev=host_alias ;; 1494 -host=* | --host=* | --hos=* | --ho=*) 1495 host_alias=$ac_optarg ;; 1496 1497 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1498 ac_prev=htmldir ;; 1499 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1500 | --ht=*) 1501 htmldir=$ac_optarg ;; 1502 1503 -includedir | --includedir | --includedi | --included | --include \ 1504 | --includ | --inclu | --incl | --inc) 1505 ac_prev=includedir ;; 1506 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1507 | --includ=* | --inclu=* | --incl=* | --inc=*) 1508 includedir=$ac_optarg ;; 1509 1510 -infodir | --infodir | --infodi | --infod | --info | --inf) 1511 ac_prev=infodir ;; 1512 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1513 infodir=$ac_optarg ;; 1514 1515 -libdir | --libdir | --libdi | --libd) 1516 ac_prev=libdir ;; 1517 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1518 libdir=$ac_optarg ;; 1519 1520 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1521 | --libexe | --libex | --libe) 1522 ac_prev=libexecdir ;; 1523 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1524 | --libexe=* | --libex=* | --libe=*) 1525 libexecdir=$ac_optarg ;; 1526 1527 -localedir | --localedir | --localedi | --localed | --locale) 1528 ac_prev=localedir ;; 1529 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1530 localedir=$ac_optarg ;; 1531 1532 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1533 | --localstate | --localstat | --localsta | --localst | --locals) 1534 ac_prev=localstatedir ;; 1535 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1536 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1537 localstatedir=$ac_optarg ;; 1538 1539 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1540 ac_prev=mandir ;; 1541 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1542 mandir=$ac_optarg ;; 1543 1544 -nfp | --nfp | --nf) 1545 # Obsolete; use --without-fp. 1546 with_fp=no ;; 1547 1548 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1549 | --no-cr | --no-c | -n) 1550 no_create=yes ;; 1551 1552 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1553 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1554 no_recursion=yes ;; 1555 1556 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1557 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1558 | --oldin | --oldi | --old | --ol | --o) 1559 ac_prev=oldincludedir ;; 1560 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1561 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1562 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1563 oldincludedir=$ac_optarg ;; 1564 1565 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1566 ac_prev=prefix ;; 1567 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1568 prefix=$ac_optarg ;; 1569 1570 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1571 | --program-pre | --program-pr | --program-p) 1572 ac_prev=program_prefix ;; 1573 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1574 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1575 program_prefix=$ac_optarg ;; 1576 1577 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1578 | --program-suf | --program-su | --program-s) 1579 ac_prev=program_suffix ;; 1580 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1581 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1582 program_suffix=$ac_optarg ;; 1583 1584 -program-transform-name | --program-transform-name \ 1585 | --program-transform-nam | --program-transform-na \ 1586 | --program-transform-n | --program-transform- \ 1587 | --program-transform | --program-transfor \ 1588 | --program-transfo | --program-transf \ 1589 | --program-trans | --program-tran \ 1590 | --progr-tra | --program-tr | --program-t) 1591 ac_prev=program_transform_name ;; 1592 -program-transform-name=* | --program-transform-name=* \ 1593 | --program-transform-nam=* | --program-transform-na=* \ 1594 | --program-transform-n=* | --program-transform-=* \ 1595 | --program-transform=* | --program-transfor=* \ 1596 | --program-transfo=* | --program-transf=* \ 1597 | --program-trans=* | --program-tran=* \ 1598 | --progr-tra=* | --program-tr=* | --program-t=*) 1599 program_transform_name=$ac_optarg ;; 1600 1601 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1602 ac_prev=pdfdir ;; 1603 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1604 pdfdir=$ac_optarg ;; 1605 1606 -psdir | --psdir | --psdi | --psd | --ps) 1607 ac_prev=psdir ;; 1608 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1609 psdir=$ac_optarg ;; 1610 1611 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1612 | -silent | --silent | --silen | --sile | --sil) 1613 silent=yes ;; 1614 1615 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1616 | --runstate | --runstat | --runsta | --runst | --runs \ 1617 | --run | --ru | --r) 1618 ac_prev=runstatedir ;; 1619 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1620 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1621 | --run=* | --ru=* | --r=*) 1622 runstatedir=$ac_optarg ;; 1623 1624 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1625 ac_prev=sbindir ;; 1626 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1627 | --sbi=* | --sb=*) 1628 sbindir=$ac_optarg ;; 1629 1630 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1631 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1632 | --sharedst | --shareds | --shared | --share | --shar \ 1633 | --sha | --sh) 1634 ac_prev=sharedstatedir ;; 1635 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1636 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1637 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1638 | --sha=* | --sh=*) 1639 sharedstatedir=$ac_optarg ;; 1640 1641 -site | --site | --sit) 1642 ac_prev=site ;; 1643 -site=* | --site=* | --sit=*) 1644 site=$ac_optarg ;; 1645 1646 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1647 ac_prev=srcdir ;; 1648 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1649 srcdir=$ac_optarg ;; 1650 1651 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1652 | --syscon | --sysco | --sysc | --sys | --sy) 1653 ac_prev=sysconfdir ;; 1654 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1655 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1656 sysconfdir=$ac_optarg ;; 1657 1658 -target | --target | --targe | --targ | --tar | --ta | --t) 1659 ac_prev=target_alias ;; 1660 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1661 target_alias=$ac_optarg ;; 1662 1663 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1664 verbose=yes ;; 1665 1666 -version | --version | --versio | --versi | --vers | -V) 1667 ac_init_version=: ;; 1668 1669 -with-* | --with-*) 1670 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1671 # Reject names that are not valid shell variable names. 1672 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1673 as_fn_error $? "invalid package name: \`$ac_useropt'" 1674 ac_useropt_orig=$ac_useropt 1675 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1676 case $ac_user_opts in 1677 *" 1678"with_$ac_useropt" 1679"*) ;; 1680 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1681 ac_unrecognized_sep=', ';; 1682 esac 1683 eval with_$ac_useropt=\$ac_optarg ;; 1684 1685 -without-* | --without-*) 1686 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1687 # Reject names that are not valid shell variable names. 1688 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1689 as_fn_error $? "invalid package name: \`$ac_useropt'" 1690 ac_useropt_orig=$ac_useropt 1691 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1692 case $ac_user_opts in 1693 *" 1694"with_$ac_useropt" 1695"*) ;; 1696 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1697 ac_unrecognized_sep=', ';; 1698 esac 1699 eval with_$ac_useropt=no ;; 1700 1701 --x) 1702 # Obsolete; use --with-x. 1703 with_x=yes ;; 1704 1705 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1706 | --x-incl | --x-inc | --x-in | --x-i) 1707 ac_prev=x_includes ;; 1708 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1709 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1710 x_includes=$ac_optarg ;; 1711 1712 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1713 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1714 ac_prev=x_libraries ;; 1715 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1716 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1717 x_libraries=$ac_optarg ;; 1718 1719 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1720Try \`$0 --help' for more information" 1721 ;; 1722 1723 *=*) 1724 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1725 # Reject names that are not valid shell variable names. 1726 case $ac_envvar in #( 1727 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1728 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1729 esac 1730 eval $ac_envvar=\$ac_optarg 1731 export $ac_envvar ;; 1732 1733 *) 1734 # FIXME: should be removed in autoconf 3.0. 1735 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1736 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1737 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1738 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1739 ;; 1740 1741 esac 1742done 1743 1744if test -n "$ac_prev"; then 1745 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1746 as_fn_error $? "missing argument to $ac_option" 1747fi 1748 1749if test -n "$ac_unrecognized_opts"; then 1750 case $enable_option_checking in 1751 no) ;; 1752 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1753 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1754 esac 1755fi 1756 1757# Check all directory arguments for consistency. 1758for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1759 datadir sysconfdir sharedstatedir localstatedir includedir \ 1760 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1761 libdir localedir mandir runstatedir 1762do 1763 eval ac_val=\$$ac_var 1764 # Remove trailing slashes. 1765 case $ac_val in 1766 */ ) 1767 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1768 eval $ac_var=\$ac_val;; 1769 esac 1770 # Be sure to have absolute directory names. 1771 case $ac_val in 1772 [\\/$]* | ?:[\\/]* ) continue;; 1773 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1774 esac 1775 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1776done 1777 1778# There might be people who depend on the old broken behavior: `$host' 1779# used to hold the argument of --host etc. 1780# FIXME: To remove some day. 1781build=$build_alias 1782host=$host_alias 1783target=$target_alias 1784 1785# FIXME: To remove some day. 1786if test "x$host_alias" != x; then 1787 if test "x$build_alias" = x; then 1788 cross_compiling=maybe 1789 elif test "x$build_alias" != "x$host_alias"; then 1790 cross_compiling=yes 1791 fi 1792fi 1793 1794ac_tool_prefix= 1795test -n "$host_alias" && ac_tool_prefix=$host_alias- 1796 1797test "$silent" = yes && exec 6>/dev/null 1798 1799 1800ac_pwd=`pwd` && test -n "$ac_pwd" && 1801ac_ls_di=`ls -di .` && 1802ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1803 as_fn_error $? "working directory cannot be determined" 1804test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1805 as_fn_error $? "pwd does not report name of working directory" 1806 1807 1808# Find the source files, if location was not specified. 1809if test -z "$srcdir"; then 1810 ac_srcdir_defaulted=yes 1811 # Try the directory containing this script, then the parent directory. 1812 ac_confdir=`$as_dirname -- "$as_myself" || 1813$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1814 X"$as_myself" : 'X\(//\)[^/]' \| \ 1815 X"$as_myself" : 'X\(//\)$' \| \ 1816 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1817printf "%s\n" X"$as_myself" | 1818 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1819 s//\1/ 1820 q 1821 } 1822 /^X\(\/\/\)[^/].*/{ 1823 s//\1/ 1824 q 1825 } 1826 /^X\(\/\/\)$/{ 1827 s//\1/ 1828 q 1829 } 1830 /^X\(\/\).*/{ 1831 s//\1/ 1832 q 1833 } 1834 s/.*/./; q'` 1835 srcdir=$ac_confdir 1836 if test ! -r "$srcdir/$ac_unique_file"; then 1837 srcdir=.. 1838 fi 1839else 1840 ac_srcdir_defaulted=no 1841fi 1842if test ! -r "$srcdir/$ac_unique_file"; then 1843 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1844 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1845fi 1846ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1847ac_abs_confdir=`( 1848 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1849 pwd)` 1850# When building in place, set srcdir=. 1851if test "$ac_abs_confdir" = "$ac_pwd"; then 1852 srcdir=. 1853fi 1854# Remove unnecessary trailing slashes from srcdir. 1855# Double slashes in file names in object file debugging info 1856# mess up M-x gdb in Emacs. 1857case $srcdir in 1858*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1859esac 1860for ac_var in $ac_precious_vars; do 1861 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1862 eval ac_env_${ac_var}_value=\$${ac_var} 1863 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1864 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1865done 1866 1867# 1868# Report the --help message. 1869# 1870if test "$ac_init_help" = "long"; then 1871 # Omit some internal or obsolete options to make the list less imposing. 1872 # This message is too long to be a string in the A/UX 3.1 sh. 1873 cat <<_ACEOF 1874\`configure' configures curl - to adapt to many kinds of systems. 1875 1876Usage: $0 [OPTION]... [VAR=VALUE]... 1877 1878To assign environment variables (e.g., CC, CFLAGS...), specify them as 1879VAR=VALUE. See below for descriptions of some of the useful variables. 1880 1881Defaults for the options are specified in brackets. 1882 1883Configuration: 1884 -h, --help display this help and exit 1885 --help=short display options specific to this package 1886 --help=recursive display the short help of all the included packages 1887 -V, --version display version information and exit 1888 -q, --quiet, --silent do not print \`checking ...' messages 1889 --cache-file=FILE cache test results in FILE [disabled] 1890 -C, --config-cache alias for \`--cache-file=config.cache' 1891 -n, --no-create do not create output files 1892 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1893 1894Installation directories: 1895 --prefix=PREFIX install architecture-independent files in PREFIX 1896 [$ac_default_prefix] 1897 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1898 [PREFIX] 1899 1900By default, \`make install' will install all the files in 1901\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1902an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1903for instance \`--prefix=\$HOME'. 1904 1905For better control, use the options below. 1906 1907Fine tuning of the installation directories: 1908 --bindir=DIR user executables [EPREFIX/bin] 1909 --sbindir=DIR system admin executables [EPREFIX/sbin] 1910 --libexecdir=DIR program executables [EPREFIX/libexec] 1911 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1912 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1913 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1914 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1915 --libdir=DIR object code libraries [EPREFIX/lib] 1916 --includedir=DIR C header files [PREFIX/include] 1917 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1918 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1919 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1920 --infodir=DIR info documentation [DATAROOTDIR/info] 1921 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1922 --mandir=DIR man documentation [DATAROOTDIR/man] 1923 --docdir=DIR documentation root [DATAROOTDIR/doc/curl] 1924 --htmldir=DIR html documentation [DOCDIR] 1925 --dvidir=DIR dvi documentation [DOCDIR] 1926 --pdfdir=DIR pdf documentation [DOCDIR] 1927 --psdir=DIR ps documentation [DOCDIR] 1928_ACEOF 1929 1930 cat <<\_ACEOF 1931 1932Program names: 1933 --program-prefix=PREFIX prepend PREFIX to installed program names 1934 --program-suffix=SUFFIX append SUFFIX to installed program names 1935 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1936 1937System types: 1938 --build=BUILD configure for building on BUILD [guessed] 1939 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1940_ACEOF 1941fi 1942 1943if test -n "$ac_init_help"; then 1944 case $ac_init_help in 1945 short | recursive ) echo "Configuration of curl -:";; 1946 esac 1947 cat <<\_ACEOF 1948 1949Optional Features: 1950 --disable-option-checking ignore unrecognized --enable/--with options 1951 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1952 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1953 --enable-maintainer-mode 1954 enable make rules and dependencies not useful (and 1955 sometimes confusing) to the casual installer 1956 --enable-silent-rules less verbose build output (undo: "make V=1") 1957 --disable-silent-rules verbose build output (undo: "make V=0") 1958 --enable-debug Enable debug build options 1959 --disable-debug Disable debug build options 1960 --enable-optimize Enable compiler optimizations 1961 --disable-optimize Disable compiler optimizations 1962 --enable-warnings Enable strict compiler warnings 1963 --disable-warnings Disable strict compiler warnings 1964 --enable-werror Enable compiler warnings as errors 1965 --disable-werror Disable compiler warnings as errors 1966 --enable-curldebug Enable curl debug memory tracking 1967 --disable-curldebug Disable curl debug memory tracking 1968 --enable-symbol-hiding Enable hiding of library internal symbols 1969 --disable-symbol-hiding Disable hiding of library internal symbols 1970 --enable-ares[=PATH] Enable c-ares for DNS lookups 1971 --disable-ares Disable c-ares for DNS lookups 1972 --disable-rt disable dependency on -lrt 1973 --enable-httpsrr Enable HTTPSRR support 1974 --disable-httpsrr Disable HTTPSRR support 1975 --enable-ech Enable ECH support 1976 --disable-ech Disable ECH support 1977 --enable-code-coverage Provide code coverage 1978 --enable-dependency-tracking 1979 do not reject slow dependency extractors 1980 --disable-dependency-tracking 1981 speeds up one-time build 1982 --disable-largefile omit support for large files 1983 --enable-shared[=PKGS] build shared libraries [default=yes] 1984 --enable-static[=PKGS] build static libraries [default=yes] 1985 --enable-fast-install[=PKGS] 1986 optimize for fast installation [default=yes] 1987 --disable-libtool-lock avoid locking (might break parallel builds) 1988 --enable-unity Enable unity mode 1989 --disable-unity Disable unity (default) 1990 --enable-test-bundles Enable test bundles 1991 --disable-test-bundles Disable test bundles (default) 1992 --enable-http Enable HTTP support 1993 --disable-http Disable HTTP support 1994 --enable-ftp Enable FTP support 1995 --disable-ftp Disable FTP support 1996 --enable-file Enable FILE support 1997 --disable-file Disable FILE support 1998 --enable-ipfs Enable IPFS support 1999 --disable-ipfs Disable IPFS support 2000 --enable-ldap Enable LDAP support 2001 --disable-ldap Disable LDAP support 2002 --enable-ldaps Enable LDAPS support 2003 --disable-ldaps Disable LDAPS support 2004 --enable-rtsp Enable RTSP support 2005 --disable-rtsp Disable RTSP support 2006 --enable-proxy Enable proxy support 2007 --disable-proxy Disable proxy support 2008 --enable-dict Enable DICT support 2009 --disable-dict Disable DICT support 2010 --enable-telnet Enable TELNET support 2011 --disable-telnet Disable TELNET support 2012 --enable-tftp Enable TFTP support 2013 --disable-tftp Disable TFTP support 2014 --enable-pop3 Enable POP3 support 2015 --disable-pop3 Disable POP3 support 2016 --enable-imap Enable IMAP support 2017 --disable-imap Disable IMAP support 2018 --enable-smb Enable SMB/CIFS support 2019 --disable-smb Disable SMB/CIFS support 2020 --enable-smtp Enable SMTP support 2021 --disable-smtp Disable SMTP support 2022 --enable-gopher Enable Gopher support 2023 --disable-gopher Disable Gopher support 2024 --enable-mqtt Enable MQTT support 2025 --disable-mqtt Disable MQTT support 2026 --enable-manual Enable built-in manual 2027 --disable-manual Disable built-in manual 2028 --enable-docs Enable documentation 2029 --disable-docs Disable documentation 2030 --enable-libcurl-option Enable --libcurl C code generation support 2031 --disable-libcurl-option 2032 Disable --libcurl C code generation support 2033 --enable-libgcc use libgcc when linking 2034 --enable-ipv6 Enable IPv6 (with IPv4) support 2035 --disable-ipv6 Disable IPv6 support 2036 --enable-openssl-auto-load-config 2037 Enable automatic loading of OpenSSL configuration 2038 --disable-openssl-auto-load-config 2039 Disable automatic loading of OpenSSL configuration 2040 --enable-ca-search Enable unsafe CA bundle search in PATH on Windows 2041 (default) 2042 --disable-ca-search Disable unsafe CA bundle search in PATH on Windows 2043 --enable-ca-search-safe Enable safe CA bundle search 2044 --disable-ca-search-safe 2045 Disable safe CA bundle search (default) 2046 --enable-versioned-symbols 2047 Enable versioned symbols in shared library 2048 --disable-versioned-symbols 2049 Disable versioned symbols in shared library 2050 --enable-windows-unicode 2051 Enable Windows Unicode 2052 --disable-windows-unicode 2053 Disable Windows Unicode (default) 2054 --enable-threaded-resolver 2055 Enable threaded resolver 2056 --disable-threaded-resolver 2057 Disable threaded resolver 2058 --enable-pthreads Enable POSIX threads (default for threaded resolver) 2059 --disable-pthreads Disable POSIX threads 2060 --enable-verbose Enable verbose strings 2061 --disable-verbose Disable verbose strings 2062 --enable-sspi Enable SSPI 2063 --disable-sspi Disable SSPI 2064 --enable-basic-auth Enable basic authentication (default) 2065 --disable-basic-auth Disable basic authentication 2066 --enable-bearer-auth Enable bearer authentication (default) 2067 --disable-bearer-auth Disable bearer authentication 2068 --enable-digest-auth Enable digest authentication (default) 2069 --disable-digest-auth Disable digest authentication 2070 --enable-kerberos-auth Enable kerberos authentication (default) 2071 --disable-kerberos-auth Disable kerberos authentication 2072 --enable-negotiate-auth Enable negotiate authentication (default) 2073 --disable-negotiate-auth 2074 Disable negotiate authentication 2075 --enable-aws Enable AWS sig support (default) 2076 --disable-aws Disable AWS sig support 2077 --enable-ntlm Enable NTLM support 2078 --disable-ntlm Disable NTLM support 2079 --enable-tls-srp Enable TLS-SRP authentication 2080 --disable-tls-srp Disable TLS-SRP authentication 2081 --enable-unix-sockets Enable Unix domain sockets 2082 --disable-unix-sockets Disable Unix domain sockets 2083 --enable-cookies Enable cookies support 2084 --disable-cookies Disable cookies support 2085 --enable-socketpair Enable socketpair support 2086 --disable-socketpair Disable socketpair support 2087 --enable-http-auth Enable HTTP authentication support 2088 --disable-http-auth Disable HTTP authentication support 2089 --enable-doh Enable DoH support 2090 --disable-doh Disable DoH support 2091 --enable-mime Enable mime API support 2092 --disable-mime Disable mime API support 2093 --enable-bindlocal Enable local binding support 2094 --disable-bindlocal Disable local binding support 2095 --enable-form-api Enable form API support 2096 --disable-form-api Disable form API support 2097 --enable-dateparse Enable date parsing 2098 --disable-dateparse Disable date parsing 2099 --enable-netrc Enable netrc parsing 2100 --disable-netrc Disable netrc parsing 2101 --enable-progress-meter Enable progress-meter 2102 --disable-progress-meter 2103 Disable progress-meter 2104 --enable-sha512-256 Enable SHA-512/256 hash algorithm (default) 2105 --disable-sha512-256 Disable SHA-512/256 hash algorithm 2106 --enable-dnsshuffle Enable DNS shuffling 2107 --disable-dnsshuffle Disable DNS shuffling 2108 --enable-get-easy-options 2109 Enable curl_easy_options 2110 --disable-get-easy-options 2111 Disable curl_easy_options 2112 --enable-alt-svc Enable alt-svc support 2113 --disable-alt-svc Disable alt-svc support 2114 --enable-headers-api Enable headers-api support 2115 --disable-headers-api Disable headers-api support 2116 --enable-hsts Enable HSTS support 2117 --disable-hsts Disable HSTS support 2118 --enable-websockets Enable WebSockets support 2119 --disable-websockets Disable WebSockets support 2120 2121Optional Packages: 2122 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 2123 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 2124 --with-schannel enable Windows native SSL/TLS 2125 --with-secure-transport enable Apple OS native SSL/TLS 2126 --with-amissl enable Amiga native SSL/TLS (AmiSSL) 2127 --with-ssl=PATH old version of --with-openssl 2128 --without-ssl build without any TLS library 2129 --with-openssl=PATH Where to look for OpenSSL, PATH points to the SSL 2130 installation (default: /usr/local/ssl); when 2131 possible, set the PKG_CONFIG_PATH environment 2132 variable instead of using this option 2133 --with-gnutls=PATH where to look for GnuTLS, PATH points to the 2134 installation root 2135 --with-mbedtls=PATH where to look for mbedTLS, PATH points to the 2136 installation root 2137 --with-wolfssl=PATH where to look for wolfSSL, PATH points to the 2138 installation root (default: system lib default) 2139 --with-bearssl=PATH where to look for BearSSL, PATH points to the 2140 installation root 2141 --with-rustls=PATH where to look for Rustls, PATH points to the 2142 installation root 2143 --with-test-nghttpx=PATH 2144 where to find nghttpx for testing 2145 --with-test-caddy=PATH where to find caddy for testing 2146 --with-test-vsftpd=PATH where to find vsftpd for testing 2147 --with-test-httpd=PATH where to find httpd/apache2 for testing 2148 2149 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 2150 both] 2151 --with-aix-soname=aix|svr4|both 2152 shared library versioning (aka "SONAME") variant to 2153 provide on AIX, [default=aix]. 2154 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 2155 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 2156 compiler's sysroot if not specified). 2157 --with-hyper=PATH Enable hyper usage 2158 --without-hyper Disable hyper usage 2159 --with-zlib=PATH search for zlib in PATH 2160 --without-zlib disable use of zlib 2161 --with-brotli=PATH Where to look for brotli, PATH points to the BROTLI 2162 installation; when possible, set the PKG_CONFIG_PATH 2163 environment variable instead of using this option 2164 --without-brotli disable BROTLI 2165 --with-zstd=PATH Where to look for libzstd, PATH points to the 2166 libzstd installation; when possible, set the 2167 PKG_CONFIG_PATH environment variable instead of 2168 using this option 2169 --without-zstd disable libzstd 2170 --with-ldap-lib=libname Specify name of ldap lib file 2171 --with-lber-lib=libname Specify name of lber lib file 2172 --with-gssapi-includes=DIR 2173 Specify location of GSS-API headers 2174 --with-gssapi-libs=DIR Specify location of GSS-API libs 2175 --with-gssapi=DIR Where to look for GSS-API 2176 --with-default-ssl-backend=NAME 2177 Use NAME as default SSL backend 2178 --without-default-ssl-backend 2179 Use implicit default SSL backend 2180 --with-ca-bundle=FILE Absolute path to a file containing CA certificates 2181 (example: /etc/ca-bundle.crt) 2182 --without-ca-bundle Don't use a default CA bundle 2183 --with-ca-path=DIRECTORY 2184 Absolute path to a directory containing CA 2185 certificates stored individually, with their 2186 filenames in a hash format. This option can be used 2187 with the OpenSSL, GnuTLS, mbedTLS and wolfSSL 2188 backends. Refer to OpenSSL c_rehash for details. 2189 (example: /etc/certificates) 2190 --without-ca-path Don't use a default CA path 2191 --with-ca-fallback Use the built-in CA store of the SSL library 2192 --without-ca-fallback Don't use the built-in CA store of the SSL library 2193 --with-ca-embed=FILE Absolute path to a file containing CA certificates 2194 to embed in the curl tool (example: 2195 /etc/ca-bundle.crt) 2196 --without-ca-embed Don't embed a default CA bundle in the curl tool 2197 --with-libpsl=PATH Where to look for libpsl, PATH points to the LIBPSL 2198 installation; when possible, set the PKG_CONFIG_PATH 2199 environment variable instead of using this option 2200 --without-libpsl disable LIBPSL 2201 --without-libgsasl disable libgsasl support for SCRAM 2202 --with-libssh2=PATH Where to look for libssh2, PATH points to the 2203 libssh2 installation; when possible, set the 2204 PKG_CONFIG_PATH environment variable instead of 2205 using this option 2206 --with-libssh2 enable libssh2 2207 --with-libssh=PATH Where to look for libssh, PATH points to the libssh 2208 installation; when possible, set the PKG_CONFIG_PATH 2209 environment variable instead of using this option 2210 --with-libssh enable libssh 2211 --with-wolfssh=PATH Where to look for wolfssh, PATH points to the 2212 wolfSSH installation; when possible, set the 2213 PKG_CONFIG_PATH environment variable instead of 2214 using this option 2215 --with-wolfssh enable wolfssh 2216 --with-librtmp=PATH Where to look for librtmp, PATH points to the 2217 LIBRTMP installation; when possible, set the 2218 PKG_CONFIG_PATH environment variable instead of 2219 using this option 2220 --without-librtmp disable LIBRTMP 2221 --with-winidn=PATH enable Windows native IDN 2222 --without-winidn disable Windows native IDN 2223 --with-apple-idn Enable AppleIDN 2224 --without-apple-idn Disable AppleIDN 2225 --with-libidn2=PATH Enable libidn2 usage 2226 --without-libidn2 Disable libidn2 usage 2227 --with-nghttp2=PATH Enable nghttp2 usage 2228 --without-nghttp2 Disable nghttp2 usage 2229 --with-ngtcp2=PATH Enable ngtcp2 usage 2230 --without-ngtcp2 Disable ngtcp2 usage 2231 --with-openssl-quic Enable OpenSSL QUIC usage 2232 --without-openssl-quic Disable OpenSSL QUIC usage 2233 --with-nghttp3=PATH Enable nghttp3 usage 2234 --without-nghttp3 Disable nghttp3 usage 2235 --with-quiche=PATH Enable quiche usage 2236 --without-quiche Disable quiche usage 2237 --with-msh3=PATH Enable msh3 usage 2238 --without-msh3 Disable msh3 usage 2239 --with-libuv=PATH Enable libuv 2240 --without-libuv Disable libuv 2241 --with-zsh-functions-dir=PATH 2242 Install zsh completions to PATH 2243 --without-zsh-functions-dir 2244 Do not install zsh completions 2245 --with-fish-functions-dir=PATH 2246 Install fish completions to PATH 2247 --without-fish-functions-dir 2248 Do not install fish completions 2249 2250Some influential environment variables: 2251 CC C compiler command 2252 CFLAGS C compiler flags 2253 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2254 nonstandard directory <lib dir> 2255 LIBS libraries to pass to the linker, e.g. -l<library> 2256 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2257 you have headers in a nonstandard directory <include dir> 2258 CPP C preprocessor 2259 LT_SYS_LIBRARY_PATH 2260 User-defined run-time library search path. 2261 2262Use these variables to override the choices made by `configure' or to help 2263it to find libraries and programs with nonstandard names/locations. 2264 2265Report bugs to <a suitable curl mailing list: https://curl.se/mail/>. 2266_ACEOF 2267ac_status=$? 2268fi 2269 2270if test "$ac_init_help" = "recursive"; then 2271 # If there are subdirs, report their specific --help. 2272 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2273 test -d "$ac_dir" || 2274 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2275 continue 2276 ac_builddir=. 2277 2278case "$ac_dir" in 2279.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2280*) 2281 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 2282 # A ".." for each directory in $ac_dir_suffix. 2283 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2284 case $ac_top_builddir_sub in 2285 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2286 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2287 esac ;; 2288esac 2289ac_abs_top_builddir=$ac_pwd 2290ac_abs_builddir=$ac_pwd$ac_dir_suffix 2291# for backward compatibility: 2292ac_top_builddir=$ac_top_build_prefix 2293 2294case $srcdir in 2295 .) # We are building in place. 2296 ac_srcdir=. 2297 ac_top_srcdir=$ac_top_builddir_sub 2298 ac_abs_top_srcdir=$ac_pwd ;; 2299 [\\/]* | ?:[\\/]* ) # Absolute name. 2300 ac_srcdir=$srcdir$ac_dir_suffix; 2301 ac_top_srcdir=$srcdir 2302 ac_abs_top_srcdir=$srcdir ;; 2303 *) # Relative name. 2304 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2305 ac_top_srcdir=$ac_top_build_prefix$srcdir 2306 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2307esac 2308ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2309 2310 cd "$ac_dir" || { ac_status=$?; continue; } 2311 # Check for configure.gnu first; this name is used for a wrapper for 2312 # Metaconfig's "Configure" on case-insensitive file systems. 2313 if test -f "$ac_srcdir/configure.gnu"; then 2314 echo && 2315 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2316 elif test -f "$ac_srcdir/configure"; then 2317 echo && 2318 $SHELL "$ac_srcdir/configure" --help=recursive 2319 else 2320 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2321 fi || ac_status=$? 2322 cd "$ac_pwd" || { ac_status=$?; break; } 2323 done 2324fi 2325 2326test -n "$ac_init_help" && exit $ac_status 2327if $ac_init_version; then 2328 cat <<\_ACEOF 2329curl configure - 2330generated by GNU Autoconf 2.71 2331 2332Copyright (C) 2021 Free Software Foundation, Inc. 2333This configure script is free software; the Free Software Foundation 2334gives unlimited permission to copy, distribute and modify it. 2335 2336Copyright (C) Daniel Stenberg, <[email protected]> 2337This configure script may be copied, distributed and modified under the 2338terms of the curl license; see COPYING for more details 2339_ACEOF 2340 exit 2341fi 2342 2343## ------------------------ ## 2344## Autoconf initialization. ## 2345## ------------------------ ## 2346 2347# ac_fn_c_try_compile LINENO 2348# -------------------------- 2349# Try to compile conftest.$ac_ext, and return whether this succeeded. 2350ac_fn_c_try_compile () 2351{ 2352 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2353 rm -f conftest.$ac_objext conftest.beam 2354 if { { ac_try="$ac_compile" 2355case "(($ac_try" in 2356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2357 *) ac_try_echo=$ac_try;; 2358esac 2359eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2360printf "%s\n" "$ac_try_echo"; } >&5 2361 (eval "$ac_compile") 2>conftest.err 2362 ac_status=$? 2363 if test -s conftest.err; then 2364 grep -v '^ *+' conftest.err >conftest.er1 2365 cat conftest.er1 >&5 2366 mv -f conftest.er1 conftest.err 2367 fi 2368 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2369 test $ac_status = 0; } && { 2370 test -z "$ac_c_werror_flag" || 2371 test ! -s conftest.err 2372 } && test -s conftest.$ac_objext 2373then : 2374 ac_retval=0 2375else $as_nop 2376 printf "%s\n" "$as_me: failed program was:" >&5 2377sed 's/^/| /' conftest.$ac_ext >&5 2378 2379 ac_retval=1 2380fi 2381 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2382 as_fn_set_status $ac_retval 2383 2384} # ac_fn_c_try_compile 2385 2386# ac_fn_c_try_cpp LINENO 2387# ---------------------- 2388# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2389ac_fn_c_try_cpp () 2390{ 2391 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2392 if { { ac_try="$ac_cpp conftest.$ac_ext" 2393case "(($ac_try" in 2394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2395 *) ac_try_echo=$ac_try;; 2396esac 2397eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2398printf "%s\n" "$ac_try_echo"; } >&5 2399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2400 ac_status=$? 2401 if test -s conftest.err; then 2402 grep -v '^ *+' conftest.err >conftest.er1 2403 cat conftest.er1 >&5 2404 mv -f conftest.er1 conftest.err 2405 fi 2406 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2407 test $ac_status = 0; } > conftest.i && { 2408 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2409 test ! -s conftest.err 2410 } 2411then : 2412 ac_retval=0 2413else $as_nop 2414 printf "%s\n" "$as_me: failed program was:" >&5 2415sed 's/^/| /' conftest.$ac_ext >&5 2416 2417 ac_retval=1 2418fi 2419 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2420 as_fn_set_status $ac_retval 2421 2422} # ac_fn_c_try_cpp 2423 2424# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2425# ------------------------------------------------------- 2426# Tests whether HEADER exists and can be compiled using the include files in 2427# INCLUDES, setting the cache variable VAR accordingly. 2428ac_fn_c_check_header_compile () 2429{ 2430 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2432printf %s "checking for $2... " >&6; } 2433if eval test \${$3+y} 2434then : 2435 printf %s "(cached) " >&6 2436else $as_nop 2437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2438/* end confdefs.h. */ 2439$4 2440#include <$2> 2441_ACEOF 2442if ac_fn_c_try_compile "$LINENO" 2443then : 2444 eval "$3=yes" 2445else $as_nop 2446 eval "$3=no" 2447fi 2448rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2449fi 2450eval ac_res=\$$3 2451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2452printf "%s\n" "$ac_res" >&6; } 2453 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2454 2455} # ac_fn_c_check_header_compile 2456 2457# ac_fn_c_try_link LINENO 2458# ----------------------- 2459# Try to link conftest.$ac_ext, and return whether this succeeded. 2460ac_fn_c_try_link () 2461{ 2462 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2463 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 2464 if { { ac_try="$ac_link" 2465case "(($ac_try" in 2466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2467 *) ac_try_echo=$ac_try;; 2468esac 2469eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2470printf "%s\n" "$ac_try_echo"; } >&5 2471 (eval "$ac_link") 2>conftest.err 2472 ac_status=$? 2473 if test -s conftest.err; then 2474 grep -v '^ *+' conftest.err >conftest.er1 2475 cat conftest.er1 >&5 2476 mv -f conftest.er1 conftest.err 2477 fi 2478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2479 test $ac_status = 0; } && { 2480 test -z "$ac_c_werror_flag" || 2481 test ! -s conftest.err 2482 } && test -s conftest$ac_exeext && { 2483 test "$cross_compiling" = yes || 2484 test -x conftest$ac_exeext 2485 } 2486then : 2487 ac_retval=0 2488else $as_nop 2489 printf "%s\n" "$as_me: failed program was:" >&5 2490sed 's/^/| /' conftest.$ac_ext >&5 2491 2492 ac_retval=1 2493fi 2494 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2495 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2496 # interfere with the next link command; also delete a directory that is 2497 # left behind by Apple's compiler. We do this before executing the actions. 2498 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2499 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2500 as_fn_set_status $ac_retval 2501 2502} # ac_fn_c_try_link 2503 2504# ac_fn_c_check_func LINENO FUNC VAR 2505# ---------------------------------- 2506# Tests whether FUNC exists, setting the cache variable VAR accordingly 2507ac_fn_c_check_func () 2508{ 2509 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2511printf %s "checking for $2... " >&6; } 2512if eval test \${$3+y} 2513then : 2514 printf %s "(cached) " >&6 2515else $as_nop 2516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2517/* end confdefs.h. */ 2518 2519#define $2 innocuous_$2 2520#ifdef __STDC__ 2521# include <limits.h> 2522#else 2523# include <assert.h> 2524#endif 2525#undef $2 2526#ifdef __cplusplus 2527extern "C" 2528#endif 2529char $2 (); 2530#if defined __stub_$2 || defined __stub___$2 2531#error force compilation error 2532#endif 2533 2534int main(void) 2535{ 2536return $2 (); 2537 ; 2538 return 0; 2539} 2540_ACEOF 2541if ac_fn_c_try_link "$LINENO" 2542then : 2543 eval "$3=yes" 2544else $as_nop 2545 eval "$3=no" 2546fi 2547rm -f core conftest.err conftest.$ac_objext conftest.beam \ 2548 conftest$ac_exeext conftest.$ac_ext 2549fi 2550eval ac_res=\$$3 2551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2552printf "%s\n" "$ac_res" >&6; } 2553 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2554 2555} # ac_fn_c_check_func 2556 2557# ac_fn_c_try_run LINENO 2558# ---------------------- 2559# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 2560# executables *can* be run. 2561ac_fn_c_try_run () 2562{ 2563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2564 if { { ac_try="$ac_link" 2565case "(($ac_try" in 2566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2567 *) ac_try_echo=$ac_try;; 2568esac 2569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2570printf "%s\n" "$ac_try_echo"; } >&5 2571 (eval "$ac_link") 2>&5 2572 ac_status=$? 2573 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2574 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2575 { { case "(($ac_try" in 2576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2577 *) ac_try_echo=$ac_try;; 2578esac 2579eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2580printf "%s\n" "$ac_try_echo"; } >&5 2581 (eval "$ac_try") 2>&5 2582 ac_status=$? 2583 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2584 test $ac_status = 0; }; } 2585then : 2586 ac_retval=0 2587else $as_nop 2588 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 2589 printf "%s\n" "$as_me: failed program was:" >&5 2590sed 's/^/| /' conftest.$ac_ext >&5 2591 2592 ac_retval=$ac_status 2593fi 2594 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2596 as_fn_set_status $ac_retval 2597 2598} # ac_fn_c_try_run 2599 2600# ac_fn_c_check_type LINENO SIZEOF_LONG_LONG VAR INCLUDES 2601# ------------------------------------------------------- 2602# Tests whether TYPE exists after having included INCLUDES, setting cache 2603# variable VAR accordingly. 2604ac_fn_c_check_type () 2605{ 2606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2608printf %s "checking for $2... " >&6; } 2609if eval test \${$3+y} 2610then : 2611 printf %s "(cached) " >&6 2612else $as_nop 2613 eval "$3=no" 2614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2615/* end confdefs.h. */ 2616$4 2617int main(void) 2618{ 2619if (sizeof ($2)) 2620 return 0; 2621 ; 2622 return 0; 2623} 2624_ACEOF 2625if ac_fn_c_try_compile "$LINENO" 2626then : 2627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2628/* end confdefs.h. */ 2629$4 2630int main(void) 2631{ 2632if (sizeof (($2))) 2633 return 0; 2634 ; 2635 return 0; 2636} 2637_ACEOF 2638if ac_fn_c_try_compile "$LINENO" 2639then : 2640 2641else $as_nop 2642 eval "$3=yes" 2643fi 2644rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2645fi 2646rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2647fi 2648eval ac_res=\$$3 2649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2650printf "%s\n" "$ac_res" >&6; } 2651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2652 2653} # ac_fn_c_check_type 2654 2655# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 2656# ------------------------------------------------------------------ 2657# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2658# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 2659ac_fn_check_decl () 2660{ 2661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2662 as_decl_name=`echo $2|sed 's/ *(.*//'` 2663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2664printf %s "checking whether $as_decl_name is declared... " >&6; } 2665if eval test \${$3+y} 2666then : 2667 printf %s "(cached) " >&6 2668else $as_nop 2669 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2670 eval ac_save_FLAGS=\$$6 2671 as_fn_append $6 " $5" 2672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2673/* end confdefs.h. */ 2674$4 2675int main(void) 2676{ 2677#ifndef $as_decl_name 2678#ifdef __cplusplus 2679 (void) $as_decl_use; 2680#else 2681 (void) $as_decl_name; 2682#endif 2683#endif 2684 2685 ; 2686 return 0; 2687} 2688_ACEOF 2689if ac_fn_c_try_compile "$LINENO" 2690then : 2691 eval "$3=yes" 2692else $as_nop 2693 eval "$3=no" 2694fi 2695rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2696 eval $6=\$ac_save_FLAGS 2697 2698fi 2699eval ac_res=\$$3 2700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2701printf "%s\n" "$ac_res" >&6; } 2702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2703 2704} # ac_fn_check_decl 2705 2706# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2707# ---------------------------------------------------- 2708# Tries to find if the field MEMBER exists in type AGGR, after including 2709# INCLUDES, setting cache variable VAR accordingly. 2710ac_fn_c_check_member () 2711{ 2712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2714printf %s "checking for $2.$3... " >&6; } 2715if eval test \${$4+y} 2716then : 2717 printf %s "(cached) " >&6 2718else $as_nop 2719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2720/* end confdefs.h. */ 2721$5 2722int main(void) 2723{ 2724static $2 ac_aggr; 2725if (ac_aggr.$3) 2726return 0; 2727 ; 2728 return 0; 2729} 2730_ACEOF 2731if ac_fn_c_try_compile "$LINENO" 2732then : 2733 eval "$4=yes" 2734else $as_nop 2735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2736/* end confdefs.h. */ 2737$5 2738int main(void) 2739{ 2740static $2 ac_aggr; 2741if (sizeof ac_aggr.$3) 2742return 0; 2743 ; 2744 return 0; 2745} 2746_ACEOF 2747if ac_fn_c_try_compile "$LINENO" 2748then : 2749 eval "$4=yes" 2750else $as_nop 2751 eval "$4=no" 2752fi 2753rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2754fi 2755rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2756fi 2757eval ac_res=\$$4 2758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2759printf "%s\n" "$ac_res" >&6; } 2760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2761 2762} # ac_fn_c_check_member 2763ac_configure_args_raw= 2764for ac_arg 2765do 2766 case $ac_arg in 2767 *\'*) 2768 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2769 esac 2770 as_fn_append ac_configure_args_raw " '$ac_arg'" 2771done 2772 2773case $ac_configure_args_raw in 2774 *$as_nl*) 2775 ac_safe_unquote= ;; 2776 *) 2777 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2778 ac_unsafe_a="$ac_unsafe_z#~" 2779 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2780 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2781esac 2782 2783cat >config.log <<_ACEOF 2784This file contains any messages produced by compilers while 2785running configure, to aid debugging if configure makes a mistake. 2786 2787It was created by curl $as_me -, which was 2788generated by GNU Autoconf 2.71. Invocation command line was 2789 2790 $ $0$ac_configure_args_raw 2791 2792_ACEOF 2793exec 5>>config.log 2794{ 2795cat <<_ASUNAME 2796## --------- ## 2797## Platform. ## 2798## --------- ## 2799 2800hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2801uname -m = `(uname -m) 2>/dev/null || echo unknown` 2802uname -r = `(uname -r) 2>/dev/null || echo unknown` 2803uname -s = `(uname -s) 2>/dev/null || echo unknown` 2804uname -v = `(uname -v) 2>/dev/null || echo unknown` 2805 2806/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2807/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2808 2809/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2810/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2811/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2812/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2813/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2814/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2815/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2816 2817_ASUNAME 2818 2819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2820for as_dir in $PATH 2821do 2822 IFS=$as_save_IFS 2823 case $as_dir in #((( 2824 '') as_dir=./ ;; 2825 */) ;; 2826 *) as_dir=$as_dir/ ;; 2827 esac 2828 printf "%s\n" "PATH: $as_dir" 2829 done 2830IFS=$as_save_IFS 2831 2832} >&5 2833 2834cat >&5 <<_ACEOF 2835 2836 2837## ----------- ## 2838## Core tests. ## 2839## ----------- ## 2840 2841_ACEOF 2842 2843 2844# Keep a trace of the command line. 2845# Strip out --no-create and --no-recursion so they do not pile up. 2846# Strip out --silent because we don't want to record it for future runs. 2847# Also quote any args containing shell meta-characters. 2848# Make two passes to allow for proper duplicate-argument suppression. 2849ac_configure_args= 2850ac_configure_args0= 2851ac_configure_args1= 2852ac_must_keep_next=false 2853for ac_pass in 1 2 2854do 2855 for ac_arg 2856 do 2857 case $ac_arg in 2858 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2859 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2860 | -silent | --silent | --silen | --sile | --sil) 2861 continue ;; 2862 *\'*) 2863 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2864 esac 2865 case $ac_pass in 2866 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2867 2) 2868 as_fn_append ac_configure_args1 " '$ac_arg'" 2869 if test $ac_must_keep_next = true; then 2870 ac_must_keep_next=false # Got value, back to normal. 2871 else 2872 case $ac_arg in 2873 *=* | --config-cache | -C | -disable-* | --disable-* \ 2874 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2875 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2876 | -with-* | --with-* | -without-* | --without-* | --x) 2877 case "$ac_configure_args0 " in 2878 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2879 esac 2880 ;; 2881 -* ) ac_must_keep_next=true ;; 2882 esac 2883 fi 2884 as_fn_append ac_configure_args " '$ac_arg'" 2885 ;; 2886 esac 2887 done 2888done 2889{ ac_configure_args0=; unset ac_configure_args0;} 2890{ ac_configure_args1=; unset ac_configure_args1;} 2891 2892# When interrupted or exit'd, cleanup temporary files, and complete 2893# config.log. We remove comments because anyway the quotes in there 2894# would cause problems or look ugly. 2895# WARNING: Use '\'' to represent an apostrophe within the trap. 2896# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2897trap 'exit_status=$? 2898 # Sanitize IFS. 2899 IFS=" "" $as_nl" 2900 # Save into config.log some information that might help in debugging. 2901 { 2902 echo 2903 2904 printf "%s\n" "## ---------------- ## 2905## Cache variables. ## 2906## ---------------- ##" 2907 echo 2908 # The following way of writing the cache mishandles newlines in values, 2909( 2910 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2911 eval ac_val=\$$ac_var 2912 case $ac_val in #( 2913 *${as_nl}*) 2914 case $ac_var in #( 2915 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2916printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2917 esac 2918 case $ac_var in #( 2919 _ | IFS | as_nl) ;; #( 2920 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2921 *) { eval $ac_var=; unset $ac_var;} ;; 2922 esac ;; 2923 esac 2924 done 2925 (set) 2>&1 | 2926 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2927 *${as_nl}ac_space=\ *) 2928 sed -n \ 2929 "s/'\''/'\''\\\\'\'''\''/g; 2930 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2931 ;; #( 2932 *) 2933 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2934 ;; 2935 esac | 2936 sort 2937) 2938 echo 2939 2940 printf "%s\n" "## ----------------- ## 2941## Output variables. ## 2942## ----------------- ##" 2943 echo 2944 for ac_var in $ac_subst_vars 2945 do 2946 eval ac_val=\$$ac_var 2947 case $ac_val in 2948 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2949 esac 2950 printf "%s\n" "$ac_var='\''$ac_val'\''" 2951 done | sort 2952 echo 2953 2954 if test -n "$ac_subst_files"; then 2955 printf "%s\n" "## ------------------- ## 2956## File substitutions. ## 2957## ------------------- ##" 2958 echo 2959 for ac_var in $ac_subst_files 2960 do 2961 eval ac_val=\$$ac_var 2962 case $ac_val in 2963 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2964 esac 2965 printf "%s\n" "$ac_var='\''$ac_val'\''" 2966 done | sort 2967 echo 2968 fi 2969 2970 if test -s confdefs.h; then 2971 printf "%s\n" "## ----------- ## 2972## confdefs.h. ## 2973## ----------- ##" 2974 echo 2975 cat confdefs.h 2976 echo 2977 fi 2978 test "$ac_signal" != 0 && 2979 printf "%s\n" "$as_me: caught signal $ac_signal" 2980 printf "%s\n" "$as_me: exit $exit_status" 2981 } >&5 2982 rm -f core *.core core.conftest.* && 2983 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2984 exit $exit_status 2985' 0 2986for ac_signal in 1 2 13 15; do 2987 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2988done 2989ac_signal=0 2990 2991# confdefs.h avoids OS command line length limits that DEFS can exceed. 2992rm -f -r conftest* confdefs.h 2993 2994printf "%s\n" "/* confdefs.h */" > confdefs.h 2995 2996# Predefined preprocessor variables. 2997 2998printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2999 3000printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 3001 3002printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 3003 3004printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 3005 3006printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 3007 3008printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 3009 3010 3011# Let the site file select an alternate cache file if it wants to. 3012# Prefer an explicitly selected file to automatically selected ones. 3013if test -n "$CONFIG_SITE"; then 3014 ac_site_files="$CONFIG_SITE" 3015elif test "x$prefix" != xNONE; then 3016 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 3017else 3018 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 3019fi 3020 3021for ac_site_file in $ac_site_files 3022do 3023 case $ac_site_file in #( 3024 */*) : 3025 ;; #( 3026 *) : 3027 ac_site_file=./$ac_site_file ;; 3028esac 3029 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 3030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3031printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 3032 sed 's/^/| /' "$ac_site_file" >&5 3033 . "$ac_site_file" \ 3034 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3035printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3036as_fn_error $? "failed to load site script $ac_site_file 3037See \`config.log' for more details" "$LINENO" 5; } 3038 fi 3039done 3040 3041if test -r "$cache_file"; then 3042 # Some versions of bash will fail to source /dev/null (special files 3043 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3044 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3046printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 3047 case $cache_file in 3048 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3049 *) . "./$cache_file";; 3050 esac 3051 fi 3052else 3053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3054printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 3055 >$cache_file 3056fi 3057 3058# Test code for whether the C compiler supports C89 (global declarations) 3059ac_c_conftest_c89_globals=' 3060/* Does the compiler advertise C89 conformance? 3061 Do not test the value of __STDC__, because some compilers set it to 0 3062 while being otherwise adequately conformant. */ 3063#if !defined __STDC__ 3064# error "Compiler does not advertise C89 conformance" 3065#endif 3066 3067#include <stddef.h> 3068#include <stdarg.h> 3069struct stat; 3070/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 3071struct buf { int x; }; 3072struct buf * (*rcsopen) (struct buf *, struct stat *, int); 3073static char *e (p, i) 3074 char **p; 3075 int i; 3076{ 3077 return p[i]; 3078} 3079static char *f (char * (*g) (char **, int), char **p, ...) 3080{ 3081 char *s; 3082 va_list v; 3083 va_start (v,p); 3084 s = g (p, va_arg (v,int)); 3085 va_end (v); 3086 return s; 3087} 3088 3089/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3090 function prototypes and stuff, but not \xHH hex character constants. 3091 These do not provoke an error unfortunately, instead are silently treated 3092 as an "x". The following induces an error, until -std is added to get 3093 proper ANSI mode. Curiously \x00 != x always comes out true, for an 3094 array size at least. It is necessary to write \x00 == 0 to get something 3095 that is true only with -std. */ 3096int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 3097 3098/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3099 inside strings and character constants. */ 3100#define FOO(x) '\''x'\'' 3101int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 3102 3103int test (int i, double x); 3104struct s1 {int (*f) (int a);}; 3105struct s2 {int (*f) (double a);}; 3106int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 3107 int, int);' 3108 3109# Test code for whether the C compiler supports C89 (body of main). 3110ac_c_conftest_c89_main=' 3111ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 3112' 3113 3114# Test code for whether the C compiler supports C99 (global declarations) 3115ac_c_conftest_c99_globals=' 3116// Does the compiler advertise C99 conformance? 3117#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 3118# error "Compiler does not advertise C99 conformance" 3119#endif 3120 3121#include <stdbool.h> 3122extern int puts (const char *); 3123extern int printf (const char *, ...); 3124extern int dprintf (int, const char *, ...); 3125extern void *malloc (size_t); 3126 3127// Check varargs macros. These examples are taken from C99 6.10.3.5. 3128// dprintf is used instead of fprintf to avoid needing to declare 3129// FILE and stderr. 3130#define debug(...) dprintf (2, __VA_ARGS__) 3131#define showlist(...) puts (#__VA_ARGS__) 3132#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3133static void 3134test_varargs_macros (void) 3135{ 3136 int x = 1234; 3137 int y = 5678; 3138 debug ("Flag"); 3139 debug ("X = %d\n", x); 3140 showlist (The first, second, and third items.); 3141 report (x>y, "x is %d but y is %d", x, y); 3142} 3143 3144// Check long long types. 3145#define BIG64 18446744073709551615ull 3146#define BIG32 4294967295ul 3147#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3148#if !BIG_OK 3149 #error "your preprocessor is broken" 3150#endif 3151#if BIG_OK 3152#else 3153 #error "your preprocessor is broken" 3154#endif 3155static long long int bignum = -9223372036854775807LL; 3156static unsigned long long int ubignum = BIG64; 3157 3158struct incomplete_array 3159{ 3160 int datasize; 3161 double data[]; 3162}; 3163 3164struct named_init { 3165 int number; 3166 const wchar_t *name; 3167 double average; 3168}; 3169 3170typedef const char *ccp; 3171 3172static inline int 3173test_restrict (ccp restrict text) 3174{ 3175 // See if C++-style comments work. 3176 // Iterate through items via the restricted pointer. 3177 // Also check for declarations in for loops. 3178 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 3179 continue; 3180 return 0; 3181} 3182 3183// Check varargs and va_copy. 3184static bool 3185test_varargs (const char *format, ...) 3186{ 3187 va_list args; 3188 va_start (args, format); 3189 va_list args_copy; 3190 va_copy (args_copy, args); 3191 3192 const char *str = ""; 3193 int number = 0; 3194 float fnumber = 0; 3195 3196 while (*format) 3197 { 3198 switch (*format++) 3199 { 3200 case '\''s'\'': // string 3201 str = va_arg (args_copy, const char *); 3202 break; 3203 case '\''d'\'': // int 3204 number = va_arg (args_copy, int); 3205 break; 3206 case '\''f'\'': // float 3207 fnumber = va_arg (args_copy, double); 3208 break; 3209 default: 3210 break; 3211 } 3212 } 3213 va_end (args_copy); 3214 va_end (args); 3215 3216 return *str && number && fnumber; 3217} 3218' 3219 3220# Test code for whether the C compiler supports C99 (body of main). 3221ac_c_conftest_c99_main=' 3222 // Check bool. 3223 _Bool success = false; 3224 success |= (argc != 0); 3225 3226 // Check restrict. 3227 if (test_restrict ("String literal") == 0) 3228 success = true; 3229 char *restrict newvar = "Another string"; 3230 3231 // Check varargs. 3232 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 3233 test_varargs_macros (); 3234 3235 // Check flexible array members. 3236 struct incomplete_array *ia = 3237 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3238 ia->datasize = 10; 3239 for (int i = 0; i < ia->datasize; ++i) 3240 ia->data[i] = i * 1.234; 3241 3242 // Check named initializers. 3243 struct named_init ni = { 3244 .number = 34, 3245 .name = L"Test wide string", 3246 .average = 543.34343, 3247 }; 3248 3249 ni.number = 58; 3250 3251 int dynamic_array[ni.number]; 3252 dynamic_array[0] = argv[0][0]; 3253 dynamic_array[ni.number - 1] = 543; 3254 3255 // work around unused variable warnings 3256 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 3257 || dynamic_array[ni.number - 1] != 543); 3258' 3259 3260# Test code for whether the C compiler supports C11 (global declarations) 3261ac_c_conftest_c11_globals=' 3262// Does the compiler advertise C11 conformance? 3263#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 3264# error "Compiler does not advertise C11 conformance" 3265#endif 3266 3267// Check _Alignas. 3268char _Alignas (double) aligned_as_double; 3269char _Alignas (0) no_special_alignment; 3270extern char aligned_as_int; 3271char _Alignas (0) _Alignas (int) aligned_as_int; 3272 3273// Check _Alignof. 3274enum 3275{ 3276 int_alignment = _Alignof (int), 3277 int_array_alignment = _Alignof (int[100]), 3278 char_alignment = _Alignof (char) 3279}; 3280_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 3281 3282// Check _Noreturn. 3283int _Noreturn does_not_return (void) { for (;;) continue; } 3284 3285// Check _Static_assert. 3286struct test_static_assert 3287{ 3288 int x; 3289 _Static_assert (sizeof (int) <= sizeof (long int), 3290 "_Static_assert does not work in struct"); 3291 long int y; 3292}; 3293 3294// Check UTF-8 literals. 3295#define u8 syntax error! 3296char const utf8_literal[] = u8"happens to be ASCII" "another string"; 3297 3298// Check duplicate typedefs. 3299typedef long *long_ptr; 3300typedef long int *long_ptr; 3301typedef long_ptr long_ptr; 3302 3303// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 3304struct anonymous 3305{ 3306 union { 3307 struct { int i; int j; }; 3308 struct { int k; long int l; } w; 3309 }; 3310 int m; 3311} v1; 3312' 3313 3314# Test code for whether the C compiler supports C11 (body of main). 3315ac_c_conftest_c11_main=' 3316 _Static_assert ((offsetof (struct anonymous, i) 3317 == offsetof (struct anonymous, w.k)), 3318 "Anonymous union alignment botch"); 3319 v1.i = 2; 3320 v1.w.k = 5; 3321 ok |= v1.i != 5; 3322' 3323 3324# Test code for whether the C compiler supports C11 (complete). 3325ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 3326${ac_c_conftest_c99_globals} 3327${ac_c_conftest_c11_globals} 3328 3329int 3330main (int argc, char **argv) 3331{ 3332 int ok = 0; 3333 ${ac_c_conftest_c89_main} 3334 ${ac_c_conftest_c99_main} 3335 ${ac_c_conftest_c11_main} 3336 return ok; 3337} 3338" 3339 3340# Test code for whether the C compiler supports C99 (complete). 3341ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 3342${ac_c_conftest_c99_globals} 3343 3344int 3345main (int argc, char **argv) 3346{ 3347 int ok = 0; 3348 ${ac_c_conftest_c89_main} 3349 ${ac_c_conftest_c99_main} 3350 return ok; 3351} 3352" 3353 3354# Test code for whether the C compiler supports C89 (complete). 3355ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 3356 3357int 3358main (int argc, char **argv) 3359{ 3360 int ok = 0; 3361 ${ac_c_conftest_c89_main} 3362 return ok; 3363} 3364" 3365 3366as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 3367as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 3368as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 3369as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 3370as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 3371as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 3372as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 3373as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 3374as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 3375 3376# Auxiliary files required by this configure script. 3377ac_aux_files="ltmain.sh config.guess config.sub missing compile install-sh" 3378 3379# Locations in which to look for auxiliary files. 3380ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 3381 3382# Search for a directory containing all of the required auxiliary files, 3383# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 3384# If we don't find one directory that contains all the files we need, 3385# we report the set of missing files from the *first* directory in 3386# $ac_aux_dir_candidates and give up. 3387ac_missing_aux_files="" 3388ac_first_candidate=: 3389printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 3390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3391as_found=false 3392for as_dir in $ac_aux_dir_candidates 3393do 3394 IFS=$as_save_IFS 3395 case $as_dir in #((( 3396 '') as_dir=./ ;; 3397 */) ;; 3398 *) as_dir=$as_dir/ ;; 3399 esac 3400 as_found=: 3401 3402 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 3403 ac_aux_dir_found=yes 3404 ac_install_sh= 3405 for ac_aux in $ac_aux_files 3406 do 3407 # As a special case, if "install-sh" is required, that requirement 3408 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 3409 # and $ac_install_sh is set appropriately for whichever one is found. 3410 if test x"$ac_aux" = x"install-sh" 3411 then 3412 if test -f "${as_dir}install-sh"; then 3413 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 3414 ac_install_sh="${as_dir}install-sh -c" 3415 elif test -f "${as_dir}install.sh"; then 3416 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 3417 ac_install_sh="${as_dir}install.sh -c" 3418 elif test -f "${as_dir}shtool"; then 3419 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 3420 ac_install_sh="${as_dir}shtool install -c" 3421 else 3422 ac_aux_dir_found=no 3423 if $ac_first_candidate; then 3424 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 3425 else 3426 break 3427 fi 3428 fi 3429 else 3430 if test -f "${as_dir}${ac_aux}"; then 3431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 3432 else 3433 ac_aux_dir_found=no 3434 if $ac_first_candidate; then 3435 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 3436 else 3437 break 3438 fi 3439 fi 3440 fi 3441 done 3442 if test "$ac_aux_dir_found" = yes; then 3443 ac_aux_dir="$as_dir" 3444 break 3445 fi 3446 ac_first_candidate=false 3447 3448 as_found=false 3449done 3450IFS=$as_save_IFS 3451if $as_found 3452then : 3453 3454else $as_nop 3455 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 3456fi 3457 3458 3459# These three variables are undocumented and unsupported, 3460# and are intended to be withdrawn in a future Autoconf release. 3461# They can cause serious problems if a builder's source tree is in a directory 3462# whose full name contains unusual characters. 3463if test -f "${ac_aux_dir}config.guess"; then 3464 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 3465fi 3466if test -f "${ac_aux_dir}config.sub"; then 3467 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 3468fi 3469if test -f "$ac_aux_dir/configure"; then 3470 ac_configure="$SHELL ${ac_aux_dir}configure" 3471fi 3472 3473# Check that the precious variables saved in the cache have kept the same 3474# value. 3475ac_cache_corrupted=false 3476for ac_var in $ac_precious_vars; do 3477 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3478 eval ac_new_set=\$ac_env_${ac_var}_set 3479 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3480 eval ac_new_val=\$ac_env_${ac_var}_value 3481 case $ac_old_set,$ac_new_set in 3482 set,) 3483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3484printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3485 ac_cache_corrupted=: ;; 3486 ,set) 3487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3488printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3489 ac_cache_corrupted=: ;; 3490 ,);; 3491 *) 3492 if test "x$ac_old_val" != "x$ac_new_val"; then 3493 # differences in whitespace do not lead to failure. 3494 ac_old_val_w=`echo x $ac_old_val` 3495 ac_new_val_w=`echo x $ac_new_val` 3496 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3498printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3499 ac_cache_corrupted=: 3500 else 3501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3502printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3503 eval $ac_var=\$ac_old_val 3504 fi 3505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3506printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 3507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3508printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 3509 fi;; 3510 esac 3511 # Pass precious variables to config.status. 3512 if test "$ac_new_set" = set; then 3513 case $ac_new_val in 3514 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3515 *) ac_arg=$ac_var=$ac_new_val ;; 3516 esac 3517 case " $ac_configure_args " in 3518 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3519 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3520 esac 3521 fi 3522done 3523if $ac_cache_corrupted; then 3524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3525printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3527printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 3528 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 3529 and start over" "$LINENO" 5 3530fi 3531## -------------------- ## 3532## Main body of script. ## 3533## -------------------- ## 3534 3535ac_ext=c 3536ac_cpp='$CPP $CPPFLAGS' 3537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3539ac_compiler_gnu=$ac_cv_c_compiler_gnu 3540 3541 3542 3543 3544 3545 3546 3547# using curl-override.m4 3548 3549 3550 3551 3552 3553ac_config_headers="$ac_config_headers lib/curl_config.h" 3554 3555 3556 3557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3558printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3559 # Check whether --enable-maintainer-mode was given. 3560if test ${enable_maintainer_mode+y} 3561then : 3562 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3563else $as_nop 3564 USE_MAINTAINER_MODE=no 3565fi 3566 3567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3568printf "%s\n" "$USE_MAINTAINER_MODE" >&6; } 3569 if test $USE_MAINTAINER_MODE = yes; then 3570 MAINTAINER_MODE_TRUE= 3571 MAINTAINER_MODE_FALSE='#' 3572else 3573 MAINTAINER_MODE_TRUE='#' 3574 MAINTAINER_MODE_FALSE= 3575fi 3576 3577 MAINT=$MAINTAINER_MODE_TRUE 3578 3579 3580# Check whether --enable-silent-rules was given. 3581if test ${enable_silent_rules+y} 3582then : 3583 enableval=$enable_silent_rules; 3584fi 3585 3586case $enable_silent_rules in # ((( 3587 yes) AM_DEFAULT_VERBOSITY=0;; 3588 no) AM_DEFAULT_VERBOSITY=1;; 3589 *) AM_DEFAULT_VERBOSITY=0;; 3590esac 3591am_make=${MAKE-make} 3592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3593printf %s "checking whether $am_make supports nested variables... " >&6; } 3594if test ${am_cv_make_support_nested_variables+y} 3595then : 3596 printf %s "(cached) " >&6 3597else $as_nop 3598 if printf "%s\n" 'TRUE=$(BAR$(V)) 3599BAR0=false 3600BAR1=true 3601V=1 3602am__doit: 3603 @$(TRUE) 3604.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3605 am_cv_make_support_nested_variables=yes 3606else 3607 am_cv_make_support_nested_variables=no 3608fi 3609fi 3610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3611printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3612if test $am_cv_make_support_nested_variables = yes; then 3613 AM_V='$(V)' 3614 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3615else 3616 AM_V=$AM_DEFAULT_VERBOSITY 3617 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3618fi 3619AM_BACKSLASH='\' 3620 3621 3622 3623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5 3624printf %s "checking whether to enable debug build options... " >&6; } 3625 OPT_DEBUG_BUILD="default" 3626 # Check whether --enable-debug was given. 3627if test ${enable_debug+y} 3628then : 3629 enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval 3630fi 3631 3632 case "$OPT_DEBUG_BUILD" in 3633 no) 3634 want_debug="no" 3635 ;; 3636 default) 3637 want_debug="no" 3638 ;; 3639 *) 3640 want_debug="yes" 3641 3642printf "%s\n" "#define DEBUGBUILD 1" >>confdefs.h 3643 3644 ;; 3645 esac 3646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5 3647printf "%s\n" "$want_debug" >&6; } 3648 3649 if test x$want_debug = xyes; then 3650 DEBUGBUILD_TRUE= 3651 DEBUGBUILD_FALSE='#' 3652else 3653 DEBUGBUILD_TRUE='#' 3654 DEBUGBUILD_FALSE= 3655fi 3656 3657 3658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5 3659printf %s "checking whether to enable compiler optimizer... " >&6; } 3660 OPT_COMPILER_OPTIMIZE="default" 3661 # Check whether --enable-optimize was given. 3662if test ${enable_optimize+y} 3663then : 3664 enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval 3665fi 3666 3667 case "$OPT_COMPILER_OPTIMIZE" in 3668 no) 3669 want_optimize="no" 3670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3671printf "%s\n" "no" >&6; } 3672 ;; 3673 default) 3674 if test "$want_debug" = "yes"; then 3675 want_optimize="assume_no" 3676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5 3677printf "%s\n" "(assumed) no" >&6; } 3678 else 3679 want_optimize="assume_yes" 3680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5 3681printf "%s\n" "(assumed) yes" >&6; } 3682 fi 3683 ;; 3684 *) 3685 want_optimize="yes" 3686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3687printf "%s\n" "yes" >&6; } 3688 ;; 3689 esac 3690 3691 3692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5 3693printf %s "checking whether to enable strict compiler warnings... " >&6; } 3694 OPT_COMPILER_WARNINGS="default" 3695 # Check whether --enable-warnings was given. 3696if test ${enable_warnings+y} 3697then : 3698 enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval 3699fi 3700 3701 case "$OPT_COMPILER_WARNINGS" in 3702 no) 3703 want_warnings="no" 3704 ;; 3705 default) 3706 want_warnings="$want_debug" 3707 ;; 3708 *) 3709 want_warnings="yes" 3710 ;; 3711 esac 3712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5 3713printf "%s\n" "$want_warnings" >&6; } 3714 3715 3716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5 3717printf %s "checking whether to enable compiler warnings as errors... " >&6; } 3718 OPT_COMPILER_WERROR="default" 3719 # Check whether --enable-werror was given. 3720if test ${enable_werror+y} 3721then : 3722 enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval 3723fi 3724 3725 case "$OPT_COMPILER_WERROR" in 3726 no) 3727 want_werror="no" 3728 ;; 3729 default) 3730 want_werror="no" 3731 ;; 3732 *) 3733 want_werror="yes" 3734 ;; 3735 esac 3736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5 3737printf "%s\n" "$want_werror" >&6; } 3738 3739 3740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5 3741printf %s "checking whether to enable curl debug memory tracking... " >&6; } 3742 OPT_CURLDEBUG_BUILD="default" 3743 # Check whether --enable-curldebug was given. 3744if test ${enable_curldebug+y} 3745then : 3746 enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval 3747fi 3748 3749 case "$OPT_CURLDEBUG_BUILD" in 3750 no) 3751 want_curldebug="no" 3752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3753printf "%s\n" "no" >&6; } 3754 ;; 3755 default) 3756 if test "$want_debug" = "yes"; then 3757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5 3758printf "%s\n" "(assumed) yes" >&6; } 3759 3760printf "%s\n" "#define CURLDEBUG 1" >>confdefs.h 3761 3762 else 3763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3764printf "%s\n" "no" >&6; } 3765 fi 3766 want_curldebug_assumed="yes" 3767 want_curldebug="$want_debug" 3768 ;; 3769 *) 3770 want_curldebug="yes" 3771 3772printf "%s\n" "#define CURLDEBUG 1" >>confdefs.h 3773 3774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3775printf "%s\n" "yes" >&6; } 3776 ;; 3777 esac 3778 3779 3780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5 3781printf %s "checking whether to enable hiding of library internal symbols... " >&6; } 3782 OPT_SYMBOL_HIDING="default" 3783 # Check whether --enable-symbol-hiding was given. 3784if test ${enable_symbol_hiding+y} 3785then : 3786 enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval 3787fi 3788 3789 case "$OPT_SYMBOL_HIDING" in 3790 no) 3791 want_symbol_hiding="no" 3792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3793printf "%s\n" "no" >&6; } 3794 ;; 3795 default) 3796 want_symbol_hiding="yes" 3797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3798printf "%s\n" "yes" >&6; } 3799 ;; 3800 *) 3801 want_symbol_hiding="yes" 3802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3803printf "%s\n" "yes" >&6; } 3804 ;; 3805 esac 3806 3807 3808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5 3809printf %s "checking whether to enable c-ares for DNS lookups... " >&6; } 3810 OPT_ARES="default" 3811 # Check whether --enable-ares was given. 3812if test ${enable_ares+y} 3813then : 3814 enableval=$enable_ares; OPT_ARES=$enableval 3815fi 3816 3817 case "$OPT_ARES" in 3818 no) 3819 want_ares="no" 3820 ;; 3821 default) 3822 want_ares="no" 3823 ;; 3824 *) 3825 want_ares="yes" 3826 if test -n "$enableval" && test "$enableval" != "yes"; then 3827 want_ares_path="$enableval" 3828 fi 3829 ;; 3830 esac 3831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5 3832printf "%s\n" "$want_ares" >&6; } 3833 3834 3835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5 3836printf %s "checking whether to disable dependency on -lrt... " >&6; } 3837 OPT_RT="default" 3838 # Check whether --enable-rt was given. 3839if test ${enable_rt+y} 3840then : 3841 enableval=$enable_rt; OPT_RT=$enableval 3842fi 3843 3844 case "$OPT_RT" in 3845 no) 3846 dontwant_rt="yes" 3847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3848printf "%s\n" "yes" >&6; } 3849 ;; 3850 default) 3851 dontwant_rt="no" 3852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5 3853printf "%s\n" "(assumed no)" >&6; } 3854 ;; 3855 *) 3856 dontwant_rt="no" 3857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3858printf "%s\n" "no" >&6; } 3859 ;; 3860 esac 3861 3862 3863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable HTTPSRR support" >&5 3864printf %s "checking whether to enable HTTPSRR support... " >&6; } 3865 OPT_HTTPSRR="default" 3866 # Check whether --enable-httpsrr was given. 3867if test ${enable_httpsrr+y} 3868then : 3869 enableval=$enable_httpsrr; OPT_HTTPSRR=$enableval 3870fi 3871 3872 case "$OPT_HTTPSRR" in 3873 no) 3874 want_httpsrr="no" 3875 curl_httpsrr_msg="no (--enable-httpsrr)" 3876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3877printf "%s\n" "no" >&6; } 3878 ;; 3879 default) 3880 want_httpsrr="no" 3881 curl_httpsrr_msg="no (--enable-httpsrr)" 3882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3883printf "%s\n" "no" >&6; } 3884 ;; 3885 *) 3886 want_httpsrr="yes" 3887 curl_httpsrr_msg="enabled (--disable-httpsrr)" 3888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3889printf "%s\n" "yes" >&6; } 3890 ;; 3891 esac 3892 3893 3894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable ECH support" >&5 3895printf %s "checking whether to enable ECH support... " >&6; } 3896 OPT_ECH="default" 3897 # Check whether --enable-ech was given. 3898if test ${enable_ech+y} 3899then : 3900 enableval=$enable_ech; OPT_ECH=$enableval 3901fi 3902 3903 case "$OPT_ECH" in 3904 no) 3905 want_ech="no" 3906 curl_ech_msg="no (--enable-ech)" 3907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3908printf "%s\n" "no" >&6; } 3909 ;; 3910 default) 3911 want_ech="no" 3912 curl_ech_msg="no (--enable-ech)" 3913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3914printf "%s\n" "no" >&6; } 3915 ;; 3916 *) 3917 want_ech="yes" 3918 curl_ech_msg="enabled (--disable-ech)" 3919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3920printf "%s\n" "yes" >&6; } 3921 ;; 3922 esac 3923 3924 3925# 3926# Check that 'XC_CONFIGURE_PREAMBLE' has already run. 3927# 3928 3929if test -z "$xc_configure_preamble_result"; then 3930 as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5 3931fi 3932 3933# 3934# Check that 'PATH_SEPARATOR' has already been set. 3935# 3936 3937if test -z "$xc_PATH_SEPARATOR"; then 3938 as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5 3939fi 3940if test -z "$PATH_SEPARATOR"; then 3941 as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5 3942fi 3943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5 3944printf %s "checking for path separator... " >&6; } 3945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5 3946printf "%s\n" "$PATH_SEPARATOR" >&6; } 3947if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then 3948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5 3949printf %s "checking for initial path separator... " >&6; } 3950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5 3951printf "%s\n" "$xc_PATH_SEPARATOR" >&6; } 3952 as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5 3953fi 3954 3955 3956# 3957# save the configure arguments 3958# 3959CONFIGURE_OPTIONS="\"$ac_configure_args\"" 3960 3961 3962if test -z "$SED"; then 3963 # Extract the first word of "sed", so it can be a program name with args. 3964set dummy sed; ac_word=$2 3965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3966printf %s "checking for $ac_word... " >&6; } 3967if test ${ac_cv_path_SED+y} 3968then : 3969 printf %s "(cached) " >&6 3970else $as_nop 3971 case $SED in 3972 [\\/]* | ?:[\\/]*) 3973 ac_cv_path_SED="$SED" # Let the user override the test with a path. 3974 ;; 3975 *) 3976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3977as_dummy="$PATH:/usr/bin:/usr/local/bin" 3978for as_dir in $as_dummy 3979do 3980 IFS=$as_save_IFS 3981 case $as_dir in #((( 3982 '') as_dir=./ ;; 3983 */) ;; 3984 *) as_dir=$as_dir/ ;; 3985 esac 3986 for ac_exec_ext in '' $ac_executable_extensions; do 3987 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3988 ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext" 3989 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3990 break 2 3991 fi 3992done 3993 done 3994IFS=$as_save_IFS 3995 3996 test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found" 3997 ;; 3998esac 3999fi 4000SED=$ac_cv_path_SED 4001if test -n "$SED"; then 4002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 4003printf "%s\n" "$SED" >&6; } 4004else 4005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4006printf "%s\n" "no" >&6; } 4007fi 4008 4009 4010 if test -z "$SED" || test "$SED" = "not_found"; then 4011 as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5 4012 fi 4013fi 4014 4015 4016if test -z "$GREP"; then 4017 # Extract the first word of "grep", so it can be a program name with args. 4018set dummy grep; ac_word=$2 4019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4020printf %s "checking for $ac_word... " >&6; } 4021if test ${ac_cv_path_GREP+y} 4022then : 4023 printf %s "(cached) " >&6 4024else $as_nop 4025 case $GREP in 4026 [\\/]* | ?:[\\/]*) 4027 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 4028 ;; 4029 *) 4030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4031as_dummy="$PATH:/usr/bin:/usr/local/bin" 4032for as_dir in $as_dummy 4033do 4034 IFS=$as_save_IFS 4035 case $as_dir in #((( 4036 '') as_dir=./ ;; 4037 */) ;; 4038 *) as_dir=$as_dir/ ;; 4039 esac 4040 for ac_exec_ext in '' $ac_executable_extensions; do 4041 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4042 ac_cv_path_GREP="$as_dir$ac_word$ac_exec_ext" 4043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4044 break 2 4045 fi 4046done 4047 done 4048IFS=$as_save_IFS 4049 4050 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found" 4051 ;; 4052esac 4053fi 4054GREP=$ac_cv_path_GREP 4055if test -n "$GREP"; then 4056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 4057printf "%s\n" "$GREP" >&6; } 4058else 4059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4060printf "%s\n" "no" >&6; } 4061fi 4062 4063 4064 if test -z "$GREP" || test "$GREP" = "not_found"; then 4065 as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5 4066 fi 4067fi 4068 4069 4070if test -z "$EGREP"; then 4071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that grep -E works" >&5 4072printf %s "checking that grep -E works... " >&6; } 4073 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then 4074 EGREP="$GREP -E" 4075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4076printf "%s\n" "yes" >&6; } 4077 else 4078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4079printf "%s\n" "no" >&6; } 4080 # Extract the first word of "egrep", so it can be a program name with args. 4081set dummy egrep; ac_word=$2 4082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4083printf %s "checking for $ac_word... " >&6; } 4084if test ${ac_cv_path_EGREP+y} 4085then : 4086 printf %s "(cached) " >&6 4087else $as_nop 4088 case $EGREP in 4089 [\\/]* | ?:[\\/]*) 4090 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 4091 ;; 4092 *) 4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4094as_dummy="$PATH:/usr/bin:/usr/local/bin" 4095for as_dir in $as_dummy 4096do 4097 IFS=$as_save_IFS 4098 case $as_dir in #((( 4099 '') as_dir=./ ;; 4100 */) ;; 4101 *) as_dir=$as_dir/ ;; 4102 esac 4103 for ac_exec_ext in '' $ac_executable_extensions; do 4104 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4105 ac_cv_path_EGREP="$as_dir$ac_word$ac_exec_ext" 4106 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4107 break 2 4108 fi 4109done 4110 done 4111IFS=$as_save_IFS 4112 4113 test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found" 4114 ;; 4115esac 4116fi 4117EGREP=$ac_cv_path_EGREP 4118if test -n "$EGREP"; then 4119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 4120printf "%s\n" "$EGREP" >&6; } 4121else 4122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4123printf "%s\n" "no" >&6; } 4124fi 4125 4126 4127 fi 4128fi 4129if test -z "$EGREP" || test "$EGREP" = "not_found"; then 4130 as_fn_error $? "grep -E is not working and egrep is not found in PATH. Cannot continue." "$LINENO" 5 4131fi 4132 4133 4134if test -z "$AR"; then 4135 if test -n "$ac_tool_prefix"; then 4136 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4137set dummy ${ac_tool_prefix}ar; ac_word=$2 4138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4139printf %s "checking for $ac_word... " >&6; } 4140if test ${ac_cv_path_AR+y} 4141then : 4142 printf %s "(cached) " >&6 4143else $as_nop 4144 case $AR in 4145 [\\/]* | ?:[\\/]*) 4146 ac_cv_path_AR="$AR" # Let the user override the test with a path. 4147 ;; 4148 *) 4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4150as_dummy="$PATH:/usr/bin:/usr/local/bin" 4151for as_dir in $as_dummy 4152do 4153 IFS=$as_save_IFS 4154 case $as_dir in #((( 4155 '') as_dir=./ ;; 4156 */) ;; 4157 *) as_dir=$as_dir/ ;; 4158 esac 4159 for ac_exec_ext in '' $ac_executable_extensions; do 4160 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4161 ac_cv_path_AR="$as_dir$ac_word$ac_exec_ext" 4162 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4163 break 2 4164 fi 4165done 4166 done 4167IFS=$as_save_IFS 4168 4169 ;; 4170esac 4171fi 4172AR=$ac_cv_path_AR 4173if test -n "$AR"; then 4174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4175printf "%s\n" "$AR" >&6; } 4176else 4177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4178printf "%s\n" "no" >&6; } 4179fi 4180 4181 4182fi 4183if test -z "$ac_cv_path_AR"; then 4184 ac_pt_AR=$AR 4185 # Extract the first word of "ar", so it can be a program name with args. 4186set dummy ar; ac_word=$2 4187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4188printf %s "checking for $ac_word... " >&6; } 4189if test ${ac_cv_path_ac_pt_AR+y} 4190then : 4191 printf %s "(cached) " >&6 4192else $as_nop 4193 case $ac_pt_AR in 4194 [\\/]* | ?:[\\/]*) 4195 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path. 4196 ;; 4197 *) 4198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4199as_dummy="$PATH:/usr/bin:/usr/local/bin" 4200for as_dir in $as_dummy 4201do 4202 IFS=$as_save_IFS 4203 case $as_dir in #((( 4204 '') as_dir=./ ;; 4205 */) ;; 4206 *) as_dir=$as_dir/ ;; 4207 esac 4208 for ac_exec_ext in '' $ac_executable_extensions; do 4209 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4210 ac_cv_path_ac_pt_AR="$as_dir$ac_word$ac_exec_ext" 4211 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4212 break 2 4213 fi 4214done 4215 done 4216IFS=$as_save_IFS 4217 4218 ;; 4219esac 4220fi 4221ac_pt_AR=$ac_cv_path_ac_pt_AR 4222if test -n "$ac_pt_AR"; then 4223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5 4224printf "%s\n" "$ac_pt_AR" >&6; } 4225else 4226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4227printf "%s\n" "no" >&6; } 4228fi 4229 4230 if test "x$ac_pt_AR" = x; then 4231 AR="not_found" 4232 else 4233 case $cross_compiling:$ac_tool_warned in 4234yes:) 4235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4236printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4237ac_tool_warned=yes ;; 4238esac 4239 AR=$ac_pt_AR 4240 fi 4241else 4242 AR="$ac_cv_path_AR" 4243fi 4244 4245 if test -z "$AR" || test "$AR" = "not_found"; then 4246 as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5 4247 fi 4248fi 4249 4250 4251 4252 4253CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' ${srcdir}/include/curl/curlver.h` 4254 4255 xc_prog_cc_prev_IFS=$IFS 4256 xc_prog_cc_prev_LIBS=$LIBS 4257 xc_prog_cc_prev_CFLAGS=$CFLAGS 4258 xc_prog_cc_prev_LDFLAGS=$LDFLAGS 4259 xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS 4260 4261 4262 4263 xc_bad_var_libs=no 4264 for xc_word in $LIBS; do 4265 case "$xc_word" in 4266 -l* | --library=*) 4267 : 4268 ;; 4269 *) 4270 xc_bad_var_libs=yes 4271 ;; 4272 esac 4273 done 4274 if test $xc_bad_var_libs = yes; then 4275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5 4276printf "%s\n" "$as_me: using LIBS: $LIBS" >&6;} 4277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5 4278printf "%s\n" "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;} 4279 fi 4280 4281 4282 xc_bad_var_ldflags=no 4283 for xc_word in $LDFLAGS; do 4284 case "$xc_word" in 4285 -D*) 4286 xc_bad_var_ldflags=yes 4287 ;; 4288 -U*) 4289 xc_bad_var_ldflags=yes 4290 ;; 4291 -I*) 4292 xc_bad_var_ldflags=yes 4293 ;; 4294 -l* | --library=*) 4295 xc_bad_var_ldflags=yes 4296 ;; 4297 esac 4298 done 4299 if test $xc_bad_var_ldflags = yes; then 4300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5 4301printf "%s\n" "$as_me: using LDFLAGS: $LDFLAGS" >&6;} 4302 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not" 4303 for xc_word in $LDFLAGS; do 4304 case "$xc_word" in 4305 -D*) 4306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5 4307printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;} 4308 ;; 4309 -U*) 4310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5 4311printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;} 4312 ;; 4313 -I*) 4314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5 4315printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;} 4316 ;; 4317 -l* | --library=*) 4318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5 4319printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;} 4320 ;; 4321 esac 4322 done 4323 fi 4324 4325 4326 xc_bad_var_cppflags=no 4327 for xc_word in $CPPFLAGS; do 4328 case "$xc_word" in 4329 -rpath*) 4330 xc_bad_var_cppflags=yes 4331 ;; 4332 -L* | --library-path=*) 4333 xc_bad_var_cppflags=yes 4334 ;; 4335 -l* | --library=*) 4336 xc_bad_var_cppflags=yes 4337 ;; 4338 esac 4339 done 4340 if test $xc_bad_var_cppflags = yes; then 4341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5 4342printf "%s\n" "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;} 4343 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not" 4344 for xc_word in $CPPFLAGS; do 4345 case "$xc_word" in 4346 -rpath*) 4347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5 4348printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;} 4349 ;; 4350 -L* | --library-path=*) 4351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5 4352printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;} 4353 ;; 4354 -l* | --library=*) 4355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5 4356printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;} 4357 ;; 4358 esac 4359 done 4360 fi 4361 4362 4363 xc_bad_var_cflags=no 4364 for xc_word in $CFLAGS; do 4365 case "$xc_word" in 4366 -D*) 4367 xc_bad_var_cflags=yes 4368 ;; 4369 -U*) 4370 xc_bad_var_cflags=yes 4371 ;; 4372 -I*) 4373 xc_bad_var_cflags=yes 4374 ;; 4375 -rpath*) 4376 xc_bad_var_cflags=yes 4377 ;; 4378 -L* | --library-path=*) 4379 xc_bad_var_cflags=yes 4380 ;; 4381 -l* | --library=*) 4382 xc_bad_var_cflags=yes 4383 ;; 4384 esac 4385 done 4386 if test $xc_bad_var_cflags = yes; then 4387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5 4388printf "%s\n" "$as_me: using CFLAGS: $CFLAGS" >&6;} 4389 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not" 4390 for xc_word in $CFLAGS; do 4391 case "$xc_word" in 4392 -D*) 4393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5 4394printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;} 4395 ;; 4396 -U*) 4397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5 4398printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;} 4399 ;; 4400 -I*) 4401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5 4402printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;} 4403 ;; 4404 -rpath*) 4405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5 4406printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;} 4407 ;; 4408 -L* | --library-path=*) 4409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5 4410printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;} 4411 ;; 4412 -l* | --library=*) 4413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5 4414printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;} 4415 ;; 4416 esac 4417 done 4418 fi 4419 4420 if test $xc_bad_var_libs = yes || 4421 test $xc_bad_var_cflags = yes || 4422 test $xc_bad_var_ldflags = yes || 4423 test $xc_bad_var_cppflags = yes; then 4424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5 4425printf "%s\n" "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;} 4426 fi 4427 4428 4429 4430 # Find a good install program. We prefer a C program (faster), 4431# so one script is as good as another. But avoid the broken or 4432# incompatible versions: 4433# SysV /etc/install, /usr/sbin/install 4434# SunOS /usr/etc/install 4435# IRIX /sbin/install 4436# AIX /bin/install 4437# AmigaOS /C/install, which installs bootblocks on floppy discs 4438# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4439# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4440# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4441# OS/2's system install, which has a completely different semantic 4442# ./install, which can be erroneously created by make from ./install.sh. 4443# Reject install programs that cannot install multiple files. 4444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4445printf %s "checking for a BSD-compatible install... " >&6; } 4446if test -z "$INSTALL"; then 4447if test ${ac_cv_path_install+y} 4448then : 4449 printf %s "(cached) " >&6 4450else $as_nop 4451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4452for as_dir in $PATH 4453do 4454 IFS=$as_save_IFS 4455 case $as_dir in #((( 4456 '') as_dir=./ ;; 4457 */) ;; 4458 *) as_dir=$as_dir/ ;; 4459 esac 4460 # Account for fact that we put trailing slashes in our PATH walk. 4461case $as_dir in #(( 4462 ./ | /[cC]/* | \ 4463 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4464 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4465 /usr/ucb/* ) ;; 4466 *) 4467 # OSF1 and SCO ODT 3.0 have their own names for install. 4468 # Don't use installbsd from OSF since it installs stuff as root 4469 # by default. 4470 for ac_prog in ginstall scoinst install; do 4471 for ac_exec_ext in '' $ac_executable_extensions; do 4472 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 4473 if test $ac_prog = install && 4474 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4475 # AIX install. It has an incompatible calling convention. 4476 : 4477 elif test $ac_prog = install && 4478 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4479 # program-specific install script used by HP pwplus--don't use. 4480 : 4481 else 4482 rm -rf conftest.one conftest.two conftest.dir 4483 echo one > conftest.one 4484 echo two > conftest.two 4485 mkdir conftest.dir 4486 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 4487 test -s conftest.one && test -s conftest.two && 4488 test -s conftest.dir/conftest.one && 4489 test -s conftest.dir/conftest.two 4490 then 4491 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 4492 break 3 4493 fi 4494 fi 4495 fi 4496 done 4497 done 4498 ;; 4499esac 4500 4501 done 4502IFS=$as_save_IFS 4503 4504rm -rf conftest.one conftest.two conftest.dir 4505 4506fi 4507 if test ${ac_cv_path_install+y}; then 4508 INSTALL=$ac_cv_path_install 4509 else 4510 # As a last resort, use the slow shell script. Don't cache a 4511 # value for INSTALL within a source directory, because that will 4512 # break other packages using the cache if that directory is 4513 # removed, or if the value is a relative name. 4514 INSTALL=$ac_install_sh 4515 fi 4516fi 4517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4518printf "%s\n" "$INSTALL" >&6; } 4519 4520# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4521# It thinks the first close brace ends the variable substitution. 4522test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4523 4524test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4525 4526test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538# Expand $ac_aux_dir to an absolute path. 4539am_aux_dir=`cd "$ac_aux_dir" && pwd` 4540 4541ac_ext=c 4542ac_cpp='$CPP $CPPFLAGS' 4543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4545ac_compiler_gnu=$ac_cv_c_compiler_gnu 4546if test -n "$ac_tool_prefix"; then 4547 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4548set dummy ${ac_tool_prefix}gcc; ac_word=$2 4549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4550printf %s "checking for $ac_word... " >&6; } 4551if test ${ac_cv_prog_CC+y} 4552then : 4553 printf %s "(cached) " >&6 4554else $as_nop 4555 if test -n "$CC"; then 4556 ac_cv_prog_CC="$CC" # Let the user override the test. 4557else 4558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4559for as_dir in $PATH 4560do 4561 IFS=$as_save_IFS 4562 case $as_dir in #((( 4563 '') as_dir=./ ;; 4564 */) ;; 4565 *) as_dir=$as_dir/ ;; 4566 esac 4567 for ac_exec_ext in '' $ac_executable_extensions; do 4568 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4569 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4571 break 2 4572 fi 4573done 4574 done 4575IFS=$as_save_IFS 4576 4577fi 4578fi 4579CC=$ac_cv_prog_CC 4580if test -n "$CC"; then 4581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4582printf "%s\n" "$CC" >&6; } 4583else 4584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4585printf "%s\n" "no" >&6; } 4586fi 4587 4588 4589fi 4590if test -z "$ac_cv_prog_CC"; then 4591 ac_ct_CC=$CC 4592 # Extract the first word of "gcc", so it can be a program name with args. 4593set dummy gcc; ac_word=$2 4594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4595printf %s "checking for $ac_word... " >&6; } 4596if test ${ac_cv_prog_ac_ct_CC+y} 4597then : 4598 printf %s "(cached) " >&6 4599else $as_nop 4600 if test -n "$ac_ct_CC"; then 4601 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4602else 4603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4604for as_dir in $PATH 4605do 4606 IFS=$as_save_IFS 4607 case $as_dir in #((( 4608 '') as_dir=./ ;; 4609 */) ;; 4610 *) as_dir=$as_dir/ ;; 4611 esac 4612 for ac_exec_ext in '' $ac_executable_extensions; do 4613 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4614 ac_cv_prog_ac_ct_CC="gcc" 4615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4616 break 2 4617 fi 4618done 4619 done 4620IFS=$as_save_IFS 4621 4622fi 4623fi 4624ac_ct_CC=$ac_cv_prog_ac_ct_CC 4625if test -n "$ac_ct_CC"; then 4626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4627printf "%s\n" "$ac_ct_CC" >&6; } 4628else 4629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4630printf "%s\n" "no" >&6; } 4631fi 4632 4633 if test "x$ac_ct_CC" = x; then 4634 CC="" 4635 else 4636 case $cross_compiling:$ac_tool_warned in 4637yes:) 4638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4639printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4640ac_tool_warned=yes ;; 4641esac 4642 CC=$ac_ct_CC 4643 fi 4644else 4645 CC="$ac_cv_prog_CC" 4646fi 4647 4648if test -z "$CC"; then 4649 if test -n "$ac_tool_prefix"; then 4650 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4651set dummy ${ac_tool_prefix}cc; ac_word=$2 4652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4653printf %s "checking for $ac_word... " >&6; } 4654if test ${ac_cv_prog_CC+y} 4655then : 4656 printf %s "(cached) " >&6 4657else $as_nop 4658 if test -n "$CC"; then 4659 ac_cv_prog_CC="$CC" # Let the user override the test. 4660else 4661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4662for as_dir in $PATH 4663do 4664 IFS=$as_save_IFS 4665 case $as_dir in #((( 4666 '') as_dir=./ ;; 4667 */) ;; 4668 *) as_dir=$as_dir/ ;; 4669 esac 4670 for ac_exec_ext in '' $ac_executable_extensions; do 4671 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4672 ac_cv_prog_CC="${ac_tool_prefix}cc" 4673 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4674 break 2 4675 fi 4676done 4677 done 4678IFS=$as_save_IFS 4679 4680fi 4681fi 4682CC=$ac_cv_prog_CC 4683if test -n "$CC"; then 4684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4685printf "%s\n" "$CC" >&6; } 4686else 4687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4688printf "%s\n" "no" >&6; } 4689fi 4690 4691 4692 fi 4693fi 4694if test -z "$CC"; then 4695 # Extract the first word of "cc", so it can be a program name with args. 4696set dummy cc; ac_word=$2 4697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4698printf %s "checking for $ac_word... " >&6; } 4699if test ${ac_cv_prog_CC+y} 4700then : 4701 printf %s "(cached) " >&6 4702else $as_nop 4703 if test -n "$CC"; then 4704 ac_cv_prog_CC="$CC" # Let the user override the test. 4705else 4706 ac_prog_rejected=no 4707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4708for as_dir in $PATH 4709do 4710 IFS=$as_save_IFS 4711 case $as_dir in #((( 4712 '') as_dir=./ ;; 4713 */) ;; 4714 *) as_dir=$as_dir/ ;; 4715 esac 4716 for ac_exec_ext in '' $ac_executable_extensions; do 4717 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4718 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4719 ac_prog_rejected=yes 4720 continue 4721 fi 4722 ac_cv_prog_CC="cc" 4723 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4724 break 2 4725 fi 4726done 4727 done 4728IFS=$as_save_IFS 4729 4730if test $ac_prog_rejected = yes; then 4731 # We found a bogon in the path, so make sure we never use it. 4732 set dummy $ac_cv_prog_CC 4733 shift 4734 if test $# != 0; then 4735 # We chose a different compiler from the bogus one. 4736 # However, it has the same basename, so the bogon will be chosen 4737 # first if we set CC to just the basename; use the full file name. 4738 shift 4739 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 4740 fi 4741fi 4742fi 4743fi 4744CC=$ac_cv_prog_CC 4745if test -n "$CC"; then 4746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4747printf "%s\n" "$CC" >&6; } 4748else 4749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4750printf "%s\n" "no" >&6; } 4751fi 4752 4753 4754fi 4755if test -z "$CC"; then 4756 if test -n "$ac_tool_prefix"; then 4757 for ac_prog in cl.exe 4758 do 4759 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4760set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4762printf %s "checking for $ac_word... " >&6; } 4763if test ${ac_cv_prog_CC+y} 4764then : 4765 printf %s "(cached) " >&6 4766else $as_nop 4767 if test -n "$CC"; then 4768 ac_cv_prog_CC="$CC" # Let the user override the test. 4769else 4770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4771for as_dir in $PATH 4772do 4773 IFS=$as_save_IFS 4774 case $as_dir in #((( 4775 '') as_dir=./ ;; 4776 */) ;; 4777 *) as_dir=$as_dir/ ;; 4778 esac 4779 for ac_exec_ext in '' $ac_executable_extensions; do 4780 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4781 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4782 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4783 break 2 4784 fi 4785done 4786 done 4787IFS=$as_save_IFS 4788 4789fi 4790fi 4791CC=$ac_cv_prog_CC 4792if test -n "$CC"; then 4793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4794printf "%s\n" "$CC" >&6; } 4795else 4796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4797printf "%s\n" "no" >&6; } 4798fi 4799 4800 4801 test -n "$CC" && break 4802 done 4803fi 4804if test -z "$CC"; then 4805 ac_ct_CC=$CC 4806 for ac_prog in cl.exe 4807do 4808 # Extract the first word of "$ac_prog", so it can be a program name with args. 4809set dummy $ac_prog; ac_word=$2 4810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4811printf %s "checking for $ac_word... " >&6; } 4812if test ${ac_cv_prog_ac_ct_CC+y} 4813then : 4814 printf %s "(cached) " >&6 4815else $as_nop 4816 if test -n "$ac_ct_CC"; then 4817 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4818else 4819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4820for as_dir in $PATH 4821do 4822 IFS=$as_save_IFS 4823 case $as_dir in #((( 4824 '') as_dir=./ ;; 4825 */) ;; 4826 *) as_dir=$as_dir/ ;; 4827 esac 4828 for ac_exec_ext in '' $ac_executable_extensions; do 4829 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4830 ac_cv_prog_ac_ct_CC="$ac_prog" 4831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4832 break 2 4833 fi 4834done 4835 done 4836IFS=$as_save_IFS 4837 4838fi 4839fi 4840ac_ct_CC=$ac_cv_prog_ac_ct_CC 4841if test -n "$ac_ct_CC"; then 4842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4843printf "%s\n" "$ac_ct_CC" >&6; } 4844else 4845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4846printf "%s\n" "no" >&6; } 4847fi 4848 4849 4850 test -n "$ac_ct_CC" && break 4851done 4852 4853 if test "x$ac_ct_CC" = x; then 4854 CC="" 4855 else 4856 case $cross_compiling:$ac_tool_warned in 4857yes:) 4858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4859printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4860ac_tool_warned=yes ;; 4861esac 4862 CC=$ac_ct_CC 4863 fi 4864fi 4865 4866fi 4867if test -z "$CC"; then 4868 if test -n "$ac_tool_prefix"; then 4869 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 4870set dummy ${ac_tool_prefix}clang; ac_word=$2 4871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4872printf %s "checking for $ac_word... " >&6; } 4873if test ${ac_cv_prog_CC+y} 4874then : 4875 printf %s "(cached) " >&6 4876else $as_nop 4877 if test -n "$CC"; then 4878 ac_cv_prog_CC="$CC" # Let the user override the test. 4879else 4880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4881for as_dir in $PATH 4882do 4883 IFS=$as_save_IFS 4884 case $as_dir in #((( 4885 '') as_dir=./ ;; 4886 */) ;; 4887 *) as_dir=$as_dir/ ;; 4888 esac 4889 for ac_exec_ext in '' $ac_executable_extensions; do 4890 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4891 ac_cv_prog_CC="${ac_tool_prefix}clang" 4892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4893 break 2 4894 fi 4895done 4896 done 4897IFS=$as_save_IFS 4898 4899fi 4900fi 4901CC=$ac_cv_prog_CC 4902if test -n "$CC"; then 4903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4904printf "%s\n" "$CC" >&6; } 4905else 4906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4907printf "%s\n" "no" >&6; } 4908fi 4909 4910 4911fi 4912if test -z "$ac_cv_prog_CC"; then 4913 ac_ct_CC=$CC 4914 # Extract the first word of "clang", so it can be a program name with args. 4915set dummy clang; ac_word=$2 4916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4917printf %s "checking for $ac_word... " >&6; } 4918if test ${ac_cv_prog_ac_ct_CC+y} 4919then : 4920 printf %s "(cached) " >&6 4921else $as_nop 4922 if test -n "$ac_ct_CC"; then 4923 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4924else 4925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4926for as_dir in $PATH 4927do 4928 IFS=$as_save_IFS 4929 case $as_dir in #((( 4930 '') as_dir=./ ;; 4931 */) ;; 4932 *) as_dir=$as_dir/ ;; 4933 esac 4934 for ac_exec_ext in '' $ac_executable_extensions; do 4935 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4936 ac_cv_prog_ac_ct_CC="clang" 4937 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4938 break 2 4939 fi 4940done 4941 done 4942IFS=$as_save_IFS 4943 4944fi 4945fi 4946ac_ct_CC=$ac_cv_prog_ac_ct_CC 4947if test -n "$ac_ct_CC"; then 4948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4949printf "%s\n" "$ac_ct_CC" >&6; } 4950else 4951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4952printf "%s\n" "no" >&6; } 4953fi 4954 4955 if test "x$ac_ct_CC" = x; then 4956 CC="" 4957 else 4958 case $cross_compiling:$ac_tool_warned in 4959yes:) 4960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4961printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4962ac_tool_warned=yes ;; 4963esac 4964 CC=$ac_ct_CC 4965 fi 4966else 4967 CC="$ac_cv_prog_CC" 4968fi 4969 4970fi 4971 4972 4973test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4974printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4975as_fn_error $? "no acceptable C compiler found in \$PATH 4976See \`config.log' for more details" "$LINENO" 5; } 4977 4978# Provide some information about the compiler. 4979printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4980set X $ac_compile 4981ac_compiler=$2 4982for ac_option in --version -v -V -qversion -version; do 4983 { { ac_try="$ac_compiler $ac_option >&5" 4984case "(($ac_try" in 4985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4986 *) ac_try_echo=$ac_try;; 4987esac 4988eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4989printf "%s\n" "$ac_try_echo"; } >&5 4990 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4991 ac_status=$? 4992 if test -s conftest.err; then 4993 sed '10a\ 4994... rest of stderr output deleted ... 4995 10q' conftest.err >conftest.er1 4996 cat conftest.er1 >&5 4997 fi 4998 rm -f conftest.er1 conftest.err 4999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5000 test $ac_status = 0; } 5001done 5002 5003cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5004/* end confdefs.h. */ 5005 5006int main(void) 5007{ 5008 5009 ; 5010 return 0; 5011} 5012_ACEOF 5013ac_clean_files_save=$ac_clean_files 5014ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 5015# Try to create an executable without -o first, disregard a.out. 5016# It will help us diagnose broken compilers, and finding out an intuition 5017# of exeext. 5018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 5019printf %s "checking whether the C compiler works... " >&6; } 5020ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 5021 5022# The possible output files: 5023ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 5024 5025ac_rmfiles= 5026for ac_file in $ac_files 5027do 5028 case $ac_file in 5029 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 5030 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 5031 esac 5032done 5033rm -f $ac_rmfiles 5034 5035if { { ac_try="$ac_link_default" 5036case "(($ac_try" in 5037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5038 *) ac_try_echo=$ac_try;; 5039esac 5040eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5041printf "%s\n" "$ac_try_echo"; } >&5 5042 (eval "$ac_link_default") 2>&5 5043 ac_status=$? 5044 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5045 test $ac_status = 0; } 5046then : 5047 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 5048# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 5049# in a Makefile. We should not override ac_cv_exeext if it was cached, 5050# so that the user can short-circuit this test for compilers unknown to 5051# Autoconf. 5052for ac_file in $ac_files '' 5053do 5054 test -f "$ac_file" || continue 5055 case $ac_file in 5056 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 5057 ;; 5058 [ab].out ) 5059 # We found the default executable, but exeext='' is most 5060 # certainly right. 5061 break;; 5062 *.* ) 5063 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 5064 then :; else 5065 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5066 fi 5067 # We set ac_cv_exeext here because the later test for it is not 5068 # safe: cross compilers may not add the suffix if given an `-o' 5069 # argument, so we may need to know it at that point already. 5070 # Even if this section looks crufty: it has the advantage of 5071 # actually working. 5072 break;; 5073 * ) 5074 break;; 5075 esac 5076done 5077test "$ac_cv_exeext" = no && ac_cv_exeext= 5078 5079else $as_nop 5080 ac_file='' 5081fi 5082if test -z "$ac_file" 5083then : 5084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5085printf "%s\n" "no" >&6; } 5086printf "%s\n" "$as_me: failed program was:" >&5 5087sed 's/^/| /' conftest.$ac_ext >&5 5088 5089{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5090printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5091as_fn_error 77 "C compiler cannot create executables 5092See \`config.log' for more details" "$LINENO" 5; } 5093else $as_nop 5094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5095printf "%s\n" "yes" >&6; } 5096fi 5097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 5098printf %s "checking for C compiler default output file name... " >&6; } 5099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 5100printf "%s\n" "$ac_file" >&6; } 5101ac_exeext=$ac_cv_exeext 5102 5103rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 5104ac_clean_files=$ac_clean_files_save 5105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 5106printf %s "checking for suffix of executables... " >&6; } 5107if { { ac_try="$ac_link" 5108case "(($ac_try" in 5109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5110 *) ac_try_echo=$ac_try;; 5111esac 5112eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5113printf "%s\n" "$ac_try_echo"; } >&5 5114 (eval "$ac_link") 2>&5 5115 ac_status=$? 5116 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5117 test $ac_status = 0; } 5118then : 5119 # If both `conftest.exe' and `conftest' are `present' (well, observable) 5120# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 5121# work properly (i.e., refer to `conftest.exe'), while it won't with 5122# `rm'. 5123for ac_file in conftest.exe conftest conftest.*; do 5124 test -f "$ac_file" || continue 5125 case $ac_file in 5126 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 5127 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5128 break;; 5129 * ) break;; 5130 esac 5131done 5132else $as_nop 5133 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5134printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5135as_fn_error $? "cannot compute suffix of executables: cannot compile and link 5136See \`config.log' for more details" "$LINENO" 5; } 5137fi 5138rm -f conftest conftest$ac_cv_exeext 5139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 5140printf "%s\n" "$ac_cv_exeext" >&6; } 5141 5142rm -f conftest.$ac_ext 5143EXEEXT=$ac_cv_exeext 5144ac_exeext=$EXEEXT 5145cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5146/* end confdefs.h. */ 5147#include <stdio.h> 5148int main(void) 5149{ 5150FILE *f = fopen ("conftest.out", "w"); 5151 return ferror (f) || fclose (f) != 0; 5152 5153 ; 5154 return 0; 5155} 5156_ACEOF 5157ac_clean_files="$ac_clean_files conftest.out" 5158# Check that the compiler produces executables we can run. If not, either 5159# the compiler is broken, or we cross compile. 5160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 5161printf %s "checking whether we are cross compiling... " >&6; } 5162if test "$cross_compiling" != yes; then 5163 { { ac_try="$ac_link" 5164case "(($ac_try" in 5165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5166 *) ac_try_echo=$ac_try;; 5167esac 5168eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5169printf "%s\n" "$ac_try_echo"; } >&5 5170 (eval "$ac_link") 2>&5 5171 ac_status=$? 5172 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5173 test $ac_status = 0; } 5174 if { ac_try='./conftest$ac_cv_exeext' 5175 { { case "(($ac_try" in 5176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5177 *) ac_try_echo=$ac_try;; 5178esac 5179eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5180printf "%s\n" "$ac_try_echo"; } >&5 5181 (eval "$ac_try") 2>&5 5182 ac_status=$? 5183 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5184 test $ac_status = 0; }; }; then 5185 cross_compiling=no 5186 else 5187 if test "$cross_compiling" = maybe; then 5188 cross_compiling=yes 5189 else 5190 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5191printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5192as_fn_error 77 "cannot run C compiled programs. 5193If you meant to cross compile, use \`--host'. 5194See \`config.log' for more details" "$LINENO" 5; } 5195 fi 5196 fi 5197fi 5198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 5199printf "%s\n" "$cross_compiling" >&6; } 5200 5201rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 5202ac_clean_files=$ac_clean_files_save 5203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 5204printf %s "checking for suffix of object files... " >&6; } 5205if test ${ac_cv_objext+y} 5206then : 5207 printf %s "(cached) " >&6 5208else $as_nop 5209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5210/* end confdefs.h. */ 5211 5212int main(void) 5213{ 5214 5215 ; 5216 return 0; 5217} 5218_ACEOF 5219rm -f conftest.o conftest.obj 5220if { { ac_try="$ac_compile" 5221case "(($ac_try" in 5222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5223 *) ac_try_echo=$ac_try;; 5224esac 5225eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5226printf "%s\n" "$ac_try_echo"; } >&5 5227 (eval "$ac_compile") 2>&5 5228 ac_status=$? 5229 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5230 test $ac_status = 0; } 5231then : 5232 for ac_file in conftest.o conftest.obj conftest.*; do 5233 test -f "$ac_file" || continue; 5234 case $ac_file in 5235 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 5236 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 5237 break;; 5238 esac 5239done 5240else $as_nop 5241 printf "%s\n" "$as_me: failed program was:" >&5 5242sed 's/^/| /' conftest.$ac_ext >&5 5243 5244{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5245printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5246as_fn_error $? "cannot compute suffix of object files: cannot compile 5247See \`config.log' for more details" "$LINENO" 5; } 5248fi 5249rm -f conftest.$ac_cv_objext conftest.$ac_ext 5250fi 5251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 5252printf "%s\n" "$ac_cv_objext" >&6; } 5253OBJEXT=$ac_cv_objext 5254ac_objext=$OBJEXT 5255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 5256printf %s "checking whether the compiler supports GNU C... " >&6; } 5257if test ${ac_cv_c_compiler_gnu+y} 5258then : 5259 printf %s "(cached) " >&6 5260else $as_nop 5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5262/* end confdefs.h. */ 5263 5264int main(void) 5265{ 5266#ifndef __GNUC__ 5267 choke me 5268#endif 5269 5270 ; 5271 return 0; 5272} 5273_ACEOF 5274if ac_fn_c_try_compile "$LINENO" 5275then : 5276 ac_compiler_gnu=yes 5277else $as_nop 5278 ac_compiler_gnu=no 5279fi 5280rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5281ac_cv_c_compiler_gnu=$ac_compiler_gnu 5282 5283fi 5284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5285printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 5286ac_compiler_gnu=$ac_cv_c_compiler_gnu 5287 5288if test $ac_compiler_gnu = yes; then 5289 GCC=yes 5290else 5291 GCC= 5292fi 5293ac_test_CFLAGS=${CFLAGS+y} 5294ac_save_CFLAGS=$CFLAGS 5295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5296printf %s "checking whether $CC accepts -g... " >&6; } 5297if test ${ac_cv_prog_cc_g+y} 5298then : 5299 printf %s "(cached) " >&6 5300else $as_nop 5301 ac_save_c_werror_flag=$ac_c_werror_flag 5302 ac_c_werror_flag=yes 5303 ac_cv_prog_cc_g=no 5304 CFLAGS="-g" 5305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5306/* end confdefs.h. */ 5307 5308int main(void) 5309{ 5310 5311 ; 5312 return 0; 5313} 5314_ACEOF 5315if ac_fn_c_try_compile "$LINENO" 5316then : 5317 ac_cv_prog_cc_g=yes 5318else $as_nop 5319 CFLAGS="" 5320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5321/* end confdefs.h. */ 5322 5323int main(void) 5324{ 5325 5326 ; 5327 return 0; 5328} 5329_ACEOF 5330if ac_fn_c_try_compile "$LINENO" 5331then : 5332 5333else $as_nop 5334 ac_c_werror_flag=$ac_save_c_werror_flag 5335 CFLAGS="-g" 5336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5337/* end confdefs.h. */ 5338 5339int main(void) 5340{ 5341 5342 ; 5343 return 0; 5344} 5345_ACEOF 5346if ac_fn_c_try_compile "$LINENO" 5347then : 5348 ac_cv_prog_cc_g=yes 5349fi 5350rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5351fi 5352rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5353fi 5354rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5355 ac_c_werror_flag=$ac_save_c_werror_flag 5356fi 5357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5358printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 5359if test $ac_test_CFLAGS; then 5360 CFLAGS=$ac_save_CFLAGS 5361elif test $ac_cv_prog_cc_g = yes; then 5362 if test "$GCC" = yes; then 5363 CFLAGS="-g -O2" 5364 else 5365 CFLAGS="-g" 5366 fi 5367else 5368 if test "$GCC" = yes; then 5369 CFLAGS="-O2" 5370 else 5371 CFLAGS= 5372 fi 5373fi 5374ac_prog_cc_stdc=no 5375if test x$ac_prog_cc_stdc = xno 5376then : 5377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 5378printf %s "checking for $CC option to enable C11 features... " >&6; } 5379if test ${ac_cv_prog_cc_c11+y} 5380then : 5381 printf %s "(cached) " >&6 5382else $as_nop 5383 ac_cv_prog_cc_c11=no 5384ac_save_CC=$CC 5385cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5386/* end confdefs.h. */ 5387$ac_c_conftest_c11_program 5388_ACEOF 5389for ac_arg in '' -std=gnu11 5390do 5391 CC="$ac_save_CC $ac_arg" 5392 if ac_fn_c_try_compile "$LINENO" 5393then : 5394 ac_cv_prog_cc_c11=$ac_arg 5395fi 5396rm -f core conftest.err conftest.$ac_objext conftest.beam 5397 test "x$ac_cv_prog_cc_c11" != "xno" && break 5398done 5399rm -f conftest.$ac_ext 5400CC=$ac_save_CC 5401fi 5402 5403if test "x$ac_cv_prog_cc_c11" = xno 5404then : 5405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5406printf "%s\n" "unsupported" >&6; } 5407else $as_nop 5408 if test "x$ac_cv_prog_cc_c11" = x 5409then : 5410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5411printf "%s\n" "none needed" >&6; } 5412else $as_nop 5413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 5414printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 5415 CC="$CC $ac_cv_prog_cc_c11" 5416fi 5417 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 5418 ac_prog_cc_stdc=c11 5419fi 5420fi 5421if test x$ac_prog_cc_stdc = xno 5422then : 5423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 5424printf %s "checking for $CC option to enable C99 features... " >&6; } 5425if test ${ac_cv_prog_cc_c99+y} 5426then : 5427 printf %s "(cached) " >&6 5428else $as_nop 5429 ac_cv_prog_cc_c99=no 5430ac_save_CC=$CC 5431cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5432/* end confdefs.h. */ 5433$ac_c_conftest_c99_program 5434_ACEOF 5435for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 5436do 5437 CC="$ac_save_CC $ac_arg" 5438 if ac_fn_c_try_compile "$LINENO" 5439then : 5440 ac_cv_prog_cc_c99=$ac_arg 5441fi 5442rm -f core conftest.err conftest.$ac_objext conftest.beam 5443 test "x$ac_cv_prog_cc_c99" != "xno" && break 5444done 5445rm -f conftest.$ac_ext 5446CC=$ac_save_CC 5447fi 5448 5449if test "x$ac_cv_prog_cc_c99" = xno 5450then : 5451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5452printf "%s\n" "unsupported" >&6; } 5453else $as_nop 5454 if test "x$ac_cv_prog_cc_c99" = x 5455then : 5456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5457printf "%s\n" "none needed" >&6; } 5458else $as_nop 5459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5460printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 5461 CC="$CC $ac_cv_prog_cc_c99" 5462fi 5463 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 5464 ac_prog_cc_stdc=c99 5465fi 5466fi 5467if test x$ac_prog_cc_stdc = xno 5468then : 5469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 5470printf %s "checking for $CC option to enable C89 features... " >&6; } 5471if test ${ac_cv_prog_cc_c89+y} 5472then : 5473 printf %s "(cached) " >&6 5474else $as_nop 5475 ac_cv_prog_cc_c89=no 5476ac_save_CC=$CC 5477cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5478/* end confdefs.h. */ 5479$ac_c_conftest_c89_program 5480_ACEOF 5481for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5482do 5483 CC="$ac_save_CC $ac_arg" 5484 if ac_fn_c_try_compile "$LINENO" 5485then : 5486 ac_cv_prog_cc_c89=$ac_arg 5487fi 5488rm -f core conftest.err conftest.$ac_objext conftest.beam 5489 test "x$ac_cv_prog_cc_c89" != "xno" && break 5490done 5491rm -f conftest.$ac_ext 5492CC=$ac_save_CC 5493fi 5494 5495if test "x$ac_cv_prog_cc_c89" = xno 5496then : 5497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5498printf "%s\n" "unsupported" >&6; } 5499else $as_nop 5500 if test "x$ac_cv_prog_cc_c89" = x 5501then : 5502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5503printf "%s\n" "none needed" >&6; } 5504else $as_nop 5505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5506printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 5507 CC="$CC $ac_cv_prog_cc_c89" 5508fi 5509 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 5510 ac_prog_cc_stdc=c89 5511fi 5512fi 5513 5514ac_ext=c 5515ac_cpp='$CPP $CPPFLAGS' 5516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5518ac_compiler_gnu=$ac_cv_c_compiler_gnu 5519 5520 5521 ac_ext=c 5522ac_cpp='$CPP $CPPFLAGS' 5523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5525ac_compiler_gnu=$ac_cv_c_compiler_gnu 5526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5527printf %s "checking whether $CC understands -c and -o together... " >&6; } 5528if test ${am_cv_prog_cc_c_o+y} 5529then : 5530 printf %s "(cached) " >&6 5531else $as_nop 5532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5533/* end confdefs.h. */ 5534 5535int main(void) 5536{ 5537 5538 ; 5539 return 0; 5540} 5541_ACEOF 5542 # Make sure it works both with $CC and with simple cc. 5543 # Following AC_PROG_CC_C_O, we do the test twice because some 5544 # compilers refuse to overwrite an existing .o file with -o, 5545 # though they will create one. 5546 am_cv_prog_cc_c_o=yes 5547 for am_i in 1 2; do 5548 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5549 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5550 ac_status=$? 5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5552 (exit $ac_status); } \ 5553 && test -f conftest2.$ac_objext; then 5554 : OK 5555 else 5556 am_cv_prog_cc_c_o=no 5557 break 5558 fi 5559 done 5560 rm -f core conftest* 5561 unset am_i 5562fi 5563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5564printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 5565if test "$am_cv_prog_cc_c_o" != yes; then 5566 # Losing compiler, so override with the script. 5567 # FIXME: It is wrong to rewrite CC. 5568 # But if we don't then we get into trouble of one sort or another. 5569 # A longer-term fix would be to have automake use am__CC in this case, 5570 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5571 CC="$am_aux_dir/compile $CC" 5572fi 5573ac_ext=c 5574ac_cpp='$CPP $CPPFLAGS' 5575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5577ac_compiler_gnu=$ac_cv_c_compiler_gnu 5578 5579 5580 5581ac_ext=c 5582ac_cpp='$CPP $CPPFLAGS' 5583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5585ac_compiler_gnu=$ac_cv_c_compiler_gnu 5586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5587printf %s "checking how to run the C preprocessor... " >&6; } 5588# On Suns, sometimes $CPP names a directory. 5589if test -n "$CPP" && test -d "$CPP"; then 5590 CPP= 5591fi 5592if test -z "$CPP"; then 5593 if test ${ac_cv_prog_CPP+y} 5594then : 5595 printf %s "(cached) " >&6 5596else $as_nop 5597 # Double quotes because $CC needs to be expanded 5598 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 5599 do 5600 ac_preproc_ok=false 5601for ac_c_preproc_warn_flag in '' yes 5602do 5603 # Use a header file that comes with gcc, so configuring glibc 5604 # with a fresh cross-compiler works. 5605 # On the NeXT, cc -E runs the code through the compiler's parser, 5606 # not just through cpp. "Syntax error" is here to catch this case. 5607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5608/* end confdefs.h. */ 5609#include <limits.h> 5610 Syntax error 5611_ACEOF 5612if ac_fn_c_try_cpp "$LINENO" 5613then : 5614 5615else $as_nop 5616 # Broken: fails on valid input. 5617continue 5618fi 5619rm -f conftest.err conftest.i conftest.$ac_ext 5620 5621 # OK, works on sane cases. Now check whether nonexistent headers 5622 # can be detected and how. 5623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5624/* end confdefs.h. */ 5625#include <ac_nonexistent.h> 5626_ACEOF 5627if ac_fn_c_try_cpp "$LINENO" 5628then : 5629 # Broken: success on invalid input. 5630continue 5631else $as_nop 5632 # Passes both tests. 5633ac_preproc_ok=: 5634break 5635fi 5636rm -f conftest.err conftest.i conftest.$ac_ext 5637 5638done 5639# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5640rm -f conftest.i conftest.err conftest.$ac_ext 5641if $ac_preproc_ok 5642then : 5643 break 5644fi 5645 5646 done 5647 ac_cv_prog_CPP=$CPP 5648 5649fi 5650 CPP=$ac_cv_prog_CPP 5651else 5652 ac_cv_prog_CPP=$CPP 5653fi 5654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5655printf "%s\n" "$CPP" >&6; } 5656ac_preproc_ok=false 5657for ac_c_preproc_warn_flag in '' yes 5658do 5659 # Use a header file that comes with gcc, so configuring glibc 5660 # with a fresh cross-compiler works. 5661 # On the NeXT, cc -E runs the code through the compiler's parser, 5662 # not just through cpp. "Syntax error" is here to catch this case. 5663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5664/* end confdefs.h. */ 5665#include <limits.h> 5666 Syntax error 5667_ACEOF 5668if ac_fn_c_try_cpp "$LINENO" 5669then : 5670 5671else $as_nop 5672 # Broken: fails on valid input. 5673continue 5674fi 5675rm -f conftest.err conftest.i conftest.$ac_ext 5676 5677 # OK, works on sane cases. Now check whether nonexistent headers 5678 # can be detected and how. 5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5680/* end confdefs.h. */ 5681#include <ac_nonexistent.h> 5682_ACEOF 5683if ac_fn_c_try_cpp "$LINENO" 5684then : 5685 # Broken: success on invalid input. 5686continue 5687else $as_nop 5688 # Passes both tests. 5689ac_preproc_ok=: 5690break 5691fi 5692rm -f conftest.err conftest.i conftest.$ac_ext 5693 5694done 5695# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5696rm -f conftest.i conftest.err conftest.$ac_ext 5697if $ac_preproc_ok 5698then : 5699 5700else $as_nop 5701 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5702printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5703as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5704See \`config.log' for more details" "$LINENO" 5; } 5705fi 5706 5707ac_ext=c 5708ac_cpp='$CPP $CPPFLAGS' 5709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5711ac_compiler_gnu=$ac_cv_c_compiler_gnu 5712 5713 5714 IFS=$xc_prog_cc_prev_IFS 5715 LIBS=$xc_prog_cc_prev_LIBS 5716 CFLAGS=$xc_prog_cc_prev_CFLAGS 5717 LDFLAGS=$xc_prog_cc_prev_LDFLAGS 5718 CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS 5719 5720 5721 5722 5723 5724 5725ac_header= ac_cache= 5726for ac_item in $ac_header_c_list 5727do 5728 if test $ac_cache; then 5729 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 5730 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 5731 printf "%s\n" "#define $ac_item 1" >> confdefs.h 5732 fi 5733 ac_header= ac_cache= 5734 elif test $ac_header; then 5735 ac_cache=$ac_item 5736 else 5737 ac_header=$ac_item 5738 fi 5739done 5740 5741 5742 5743 5744 5745 5746 5747 5748if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 5749then : 5750 5751printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 5752 5753fi 5754 5755 for ac_header in stdatomic.h 5756do : 5757 ac_fn_c_check_header_compile "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default" 5758if test "x$ac_cv_header_stdatomic_h" = xyes 5759then : 5760 printf "%s\n" "#define HAVE_STDATOMIC_H 1" >>confdefs.h 5761 5762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _Atomic is available" >&5 5763printf %s "checking if _Atomic is available... " >&6; } 5764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5765/* end confdefs.h. */ 5766 5767 5768 $curl_includes_unistd 5769 5770int main(void) 5771{ 5772 5773 _Atomic int i = 0; 5774 i = 4; // Force an atomic-write operation. 5775 5776 ; 5777 return 0; 5778} 5779 5780_ACEOF 5781if ac_fn_c_try_link "$LINENO" 5782then : 5783 5784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5785printf "%s\n" "yes" >&6; } 5786 5787printf "%s\n" "#define HAVE_ATOMIC 1" >>confdefs.h 5788 5789 tst_atomic="yes" 5790 5791else $as_nop 5792 5793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5794printf "%s\n" "no" >&6; } 5795 tst_atomic="no" 5796 5797fi 5798rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5799 conftest$ac_exeext conftest.$ac_ext 5800 5801fi 5802 5803done 5804 5805 5806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5807printf %s "checking for a sed that does not truncate output... " >&6; } 5808if test ${ac_cv_path_SED+y} 5809then : 5810 printf %s "(cached) " >&6 5811else $as_nop 5812 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5813 for ac_i in 1 2 3 4 5 6 7; do 5814 ac_script="$ac_script$as_nl$ac_script" 5815 done 5816 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5817 { ac_script=; unset ac_script;} 5818 if test -z "$SED"; then 5819 ac_path_SED_found=false 5820 # Loop through the user's path and test for each of PROGNAME-LIST 5821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5822for as_dir in $PATH 5823do 5824 IFS=$as_save_IFS 5825 case $as_dir in #((( 5826 '') as_dir=./ ;; 5827 */) ;; 5828 *) as_dir=$as_dir/ ;; 5829 esac 5830 for ac_prog in sed gsed 5831 do 5832 for ac_exec_ext in '' $ac_executable_extensions; do 5833 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5834 as_fn_executable_p "$ac_path_SED" || continue 5835# Check for GNU ac_path_SED and select it if it is found. 5836 # Check for GNU $ac_path_SED 5837case `"$ac_path_SED" --version 2>&1` in 5838*GNU*) 5839 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5840*) 5841 ac_count=0 5842 printf %s 0123456789 >"conftest.in" 5843 while : 5844 do 5845 cat "conftest.in" "conftest.in" >"conftest.tmp" 5846 mv "conftest.tmp" "conftest.in" 5847 cp "conftest.in" "conftest.nl" 5848 printf "%s\n" '' >> "conftest.nl" 5849 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5850 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5851 as_fn_arith $ac_count + 1 && ac_count=$as_val 5852 if test $ac_count -gt ${ac_path_SED_max-0}; then 5853 # Best one so far, save it but keep looking for a better one 5854 ac_cv_path_SED="$ac_path_SED" 5855 ac_path_SED_max=$ac_count 5856 fi 5857 # 10*(2^10) chars as input seems more than enough 5858 test $ac_count -gt 10 && break 5859 done 5860 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5861esac 5862 5863 $ac_path_SED_found && break 3 5864 done 5865 done 5866 done 5867IFS=$as_save_IFS 5868 if test -z "$ac_cv_path_SED"; then 5869 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5870 fi 5871else 5872 ac_cv_path_SED=$SED 5873fi 5874 5875fi 5876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5877printf "%s\n" "$ac_cv_path_SED" >&6; } 5878 SED="$ac_cv_path_SED" 5879 rm -f conftest.sed 5880 5881 5882 5883 5884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for code coverage support" >&5 5885printf %s "checking for code coverage support... " >&6; } 5886 coverage="no" 5887 curl_coverage_msg="disabled" 5888 5889 # Check whether --enable-code-coverage was given. 5890if test ${enable_code_coverage+y} 5891then : 5892 enableval=$enable_code_coverage; coverage="$enableval" 5893fi 5894 5895 5896 if test "$GCC" != "yes" 5897then : 5898 coverage="no" 5899fi 5900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $coverage" >&5 5901printf "%s\n" "$coverage" >&6; } 5902 5903 if test "x$coverage" = "xyes"; then 5904 curl_coverage_msg="enabled" 5905 5906 if test -n "$ac_tool_prefix"; then 5907 # Extract the first word of "${ac_tool_prefix}gcov", so it can be a program name with args. 5908set dummy ${ac_tool_prefix}gcov; ac_word=$2 5909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5910printf %s "checking for $ac_word... " >&6; } 5911if test ${ac_cv_prog_GCOV+y} 5912then : 5913 printf %s "(cached) " >&6 5914else $as_nop 5915 if test -n "$GCOV"; then 5916 ac_cv_prog_GCOV="$GCOV" # Let the user override the test. 5917else 5918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5919for as_dir in $PATH 5920do 5921 IFS=$as_save_IFS 5922 case $as_dir in #((( 5923 '') as_dir=./ ;; 5924 */) ;; 5925 *) as_dir=$as_dir/ ;; 5926 esac 5927 for ac_exec_ext in '' $ac_executable_extensions; do 5928 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5929 ac_cv_prog_GCOV="${ac_tool_prefix}gcov" 5930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5931 break 2 5932 fi 5933done 5934 done 5935IFS=$as_save_IFS 5936 5937fi 5938fi 5939GCOV=$ac_cv_prog_GCOV 5940if test -n "$GCOV"; then 5941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5 5942printf "%s\n" "$GCOV" >&6; } 5943else 5944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5945printf "%s\n" "no" >&6; } 5946fi 5947 5948 5949fi 5950if test -z "$ac_cv_prog_GCOV"; then 5951 ac_ct_GCOV=$GCOV 5952 # Extract the first word of "gcov", so it can be a program name with args. 5953set dummy gcov; ac_word=$2 5954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5955printf %s "checking for $ac_word... " >&6; } 5956if test ${ac_cv_prog_ac_ct_GCOV+y} 5957then : 5958 printf %s "(cached) " >&6 5959else $as_nop 5960 if test -n "$ac_ct_GCOV"; then 5961 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test. 5962else 5963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5964for as_dir in $PATH 5965do 5966 IFS=$as_save_IFS 5967 case $as_dir in #((( 5968 '') as_dir=./ ;; 5969 */) ;; 5970 *) as_dir=$as_dir/ ;; 5971 esac 5972 for ac_exec_ext in '' $ac_executable_extensions; do 5973 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5974 ac_cv_prog_ac_ct_GCOV="gcov" 5975 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5976 break 2 5977 fi 5978done 5979 done 5980IFS=$as_save_IFS 5981 5982fi 5983fi 5984ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV 5985if test -n "$ac_ct_GCOV"; then 5986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5 5987printf "%s\n" "$ac_ct_GCOV" >&6; } 5988else 5989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5990printf "%s\n" "no" >&6; } 5991fi 5992 5993 if test "x$ac_ct_GCOV" = x; then 5994 GCOV="gcov" 5995 else 5996 case $cross_compiling:$ac_tool_warned in 5997yes:) 5998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5999printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6000ac_tool_warned=yes ;; 6001esac 6002 GCOV=$ac_ct_GCOV 6003 fi 6004else 6005 GCOV="$ac_cv_prog_GCOV" 6006fi 6007 6008 if test -z "$GCOV"; then 6009 as_fn_error $? "needs gcov for code coverage" "$LINENO" 5 6010 fi 6011 # Extract the first word of "lcov", so it can be a program name with args. 6012set dummy lcov; ac_word=$2 6013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6014printf %s "checking for $ac_word... " >&6; } 6015if test ${ac_cv_prog_LCOV+y} 6016then : 6017 printf %s "(cached) " >&6 6018else $as_nop 6019 if test -n "$LCOV"; then 6020 ac_cv_prog_LCOV="$LCOV" # Let the user override the test. 6021else 6022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6023for as_dir in $PATH 6024do 6025 IFS=$as_save_IFS 6026 case $as_dir in #((( 6027 '') as_dir=./ ;; 6028 */) ;; 6029 *) as_dir=$as_dir/ ;; 6030 esac 6031 for ac_exec_ext in '' $ac_executable_extensions; do 6032 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6033 ac_cv_prog_LCOV="lcov" 6034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6035 break 2 6036 fi 6037done 6038 done 6039IFS=$as_save_IFS 6040 6041fi 6042fi 6043LCOV=$ac_cv_prog_LCOV 6044if test -n "$LCOV"; then 6045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5 6046printf "%s\n" "$LCOV" >&6; } 6047else 6048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6049printf "%s\n" "no" >&6; } 6050fi 6051 6052 6053 if test -z "$LCOV"; then 6054 as_fn_error $? "needs lcov for code coverage" "$LINENO" 5 6055 fi 6056 6057 CPPFLAGS="$CPPFLAGS -DNDEBUG" 6058 CFLAGS="$CFLAGS -O0 -g -fprofile-arcs -ftest-coverage" 6059 LIBS="$LIBS -lgcov" 6060 fi 6061 6062 6063am__api_version='1.16' 6064 6065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 6066printf %s "checking whether build environment is sane... " >&6; } 6067# Reject unsafe characters in $srcdir or the absolute working directory 6068# name. Accept space and tab only in the latter. 6069am_lf=' 6070' 6071case `pwd` in 6072 *[\\\"\#\$\&\'\`$am_lf]*) 6073 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 6074esac 6075case $srcdir in 6076 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 6077 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 6078esac 6079 6080# Do 'set' in a subshell so we don't clobber the current shell's 6081# arguments. Must try -L first in case configure is actually a 6082# symlink; some systems play weird games with the mod time of symlinks 6083# (eg FreeBSD returns the mod time of the symlink's containing 6084# directory). 6085if ( 6086 am_has_slept=no 6087 for am_try in 1 2; do 6088 echo "timestamp, slept: $am_has_slept" > conftest.file 6089 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 6090 if test "$*" = "X"; then 6091 # -L didn't work. 6092 set X `ls -t "$srcdir/configure" conftest.file` 6093 fi 6094 if test "$*" != "X $srcdir/configure conftest.file" \ 6095 && test "$*" != "X conftest.file $srcdir/configure"; then 6096 6097 # If neither matched, then we have a broken ls. This can happen 6098 # if, for instance, CONFIG_SHELL is bash and it inherits a 6099 # broken ls alias from the environment. This has actually 6100 # happened. Such a system could not be considered "sane". 6101 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 6102 alias in your environment" "$LINENO" 5 6103 fi 6104 if test "$2" = conftest.file || test $am_try -eq 2; then 6105 break 6106 fi 6107 # Just in case. 6108 sleep 1 6109 am_has_slept=yes 6110 done 6111 test "$2" = conftest.file 6112 ) 6113then 6114 # Ok. 6115 : 6116else 6117 as_fn_error $? "newly created file is older than distributed files! 6118Check your system clock" "$LINENO" 5 6119fi 6120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6121printf "%s\n" "yes" >&6; } 6122# If we didn't sleep, we still need to ensure time stamps of config.status and 6123# generated files are strictly newer. 6124am_sleep_pid= 6125if grep 'slept: no' conftest.file >/dev/null 2>&1; then 6126 ( sleep 1 ) & 6127 am_sleep_pid=$! 6128fi 6129 6130rm -f conftest.file 6131 6132test "$program_prefix" != NONE && 6133 program_transform_name="s&^&$program_prefix&;$program_transform_name" 6134# Use a double $ so make ignores it. 6135test "$program_suffix" != NONE && 6136 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 6137# Double any \ or $. 6138# By default was `s,x,x', remove it if useless. 6139ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 6140program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 6141 6142 6143 if test x"${MISSING+set}" != xset; then 6144 MISSING="\${SHELL} '$am_aux_dir/missing'" 6145fi 6146# Use eval to expand $SHELL 6147if eval "$MISSING --is-lightweight"; then 6148 am_missing_run="$MISSING " 6149else 6150 am_missing_run= 6151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 6152printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 6153fi 6154 6155if test x"${install_sh+set}" != xset; then 6156 case $am_aux_dir in 6157 *\ * | *\ *) 6158 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 6159 *) 6160 install_sh="\${SHELL} $am_aux_dir/install-sh" 6161 esac 6162fi 6163 6164# Installed binaries are usually stripped using 'strip' when the user 6165# run "make install-strip". However 'strip' might not be the right 6166# tool to use in cross-compilation environments, therefore Automake 6167# will honor the 'STRIP' environment variable to overrule this program. 6168if test "$cross_compiling" != no; then 6169 if test -n "$ac_tool_prefix"; then 6170 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6171set dummy ${ac_tool_prefix}strip; ac_word=$2 6172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6173printf %s "checking for $ac_word... " >&6; } 6174if test ${ac_cv_prog_STRIP+y} 6175then : 6176 printf %s "(cached) " >&6 6177else $as_nop 6178 if test -n "$STRIP"; then 6179 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6180else 6181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6182for as_dir in $PATH 6183do 6184 IFS=$as_save_IFS 6185 case $as_dir in #((( 6186 '') as_dir=./ ;; 6187 */) ;; 6188 *) as_dir=$as_dir/ ;; 6189 esac 6190 for ac_exec_ext in '' $ac_executable_extensions; do 6191 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6192 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6193 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6194 break 2 6195 fi 6196done 6197 done 6198IFS=$as_save_IFS 6199 6200fi 6201fi 6202STRIP=$ac_cv_prog_STRIP 6203if test -n "$STRIP"; then 6204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6205printf "%s\n" "$STRIP" >&6; } 6206else 6207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6208printf "%s\n" "no" >&6; } 6209fi 6210 6211 6212fi 6213if test -z "$ac_cv_prog_STRIP"; then 6214 ac_ct_STRIP=$STRIP 6215 # Extract the first word of "strip", so it can be a program name with args. 6216set dummy strip; ac_word=$2 6217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6218printf %s "checking for $ac_word... " >&6; } 6219if test ${ac_cv_prog_ac_ct_STRIP+y} 6220then : 6221 printf %s "(cached) " >&6 6222else $as_nop 6223 if test -n "$ac_ct_STRIP"; then 6224 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6225else 6226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6227for as_dir in $PATH 6228do 6229 IFS=$as_save_IFS 6230 case $as_dir in #((( 6231 '') as_dir=./ ;; 6232 */) ;; 6233 *) as_dir=$as_dir/ ;; 6234 esac 6235 for ac_exec_ext in '' $ac_executable_extensions; do 6236 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6237 ac_cv_prog_ac_ct_STRIP="strip" 6238 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6239 break 2 6240 fi 6241done 6242 done 6243IFS=$as_save_IFS 6244 6245fi 6246fi 6247ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6248if test -n "$ac_ct_STRIP"; then 6249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6250printf "%s\n" "$ac_ct_STRIP" >&6; } 6251else 6252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6253printf "%s\n" "no" >&6; } 6254fi 6255 6256 if test "x$ac_ct_STRIP" = x; then 6257 STRIP=":" 6258 else 6259 case $cross_compiling:$ac_tool_warned in 6260yes:) 6261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6262printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6263ac_tool_warned=yes ;; 6264esac 6265 STRIP=$ac_ct_STRIP 6266 fi 6267else 6268 STRIP="$ac_cv_prog_STRIP" 6269fi 6270 6271fi 6272INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 6273 6274 6275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 6276printf %s "checking for a race-free mkdir -p... " >&6; } 6277if test -z "$MKDIR_P"; then 6278 if test ${ac_cv_path_mkdir+y} 6279then : 6280 printf %s "(cached) " >&6 6281else $as_nop 6282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6283for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 6284do 6285 IFS=$as_save_IFS 6286 case $as_dir in #((( 6287 '') as_dir=./ ;; 6288 */) ;; 6289 *) as_dir=$as_dir/ ;; 6290 esac 6291 for ac_prog in mkdir gmkdir; do 6292 for ac_exec_ext in '' $ac_executable_extensions; do 6293 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 6294 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 6295 'mkdir ('*'coreutils) '* | \ 6296 'BusyBox '* | \ 6297 'mkdir (fileutils) '4.1*) 6298 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 6299 break 3;; 6300 esac 6301 done 6302 done 6303 done 6304IFS=$as_save_IFS 6305 6306fi 6307 6308 test -d ./--version && rmdir ./--version 6309 if test ${ac_cv_path_mkdir+y}; then 6310 MKDIR_P="$ac_cv_path_mkdir -p" 6311 else 6312 # As a last resort, use the slow shell script. Don't cache a 6313 # value for MKDIR_P within a source directory, because that will 6314 # break other packages using the cache if that directory is 6315 # removed, or if the value is a relative name. 6316 MKDIR_P="$ac_install_sh -d" 6317 fi 6318fi 6319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 6320printf "%s\n" "$MKDIR_P" >&6; } 6321 6322for ac_prog in gawk mawk nawk awk 6323do 6324 # Extract the first word of "$ac_prog", so it can be a program name with args. 6325set dummy $ac_prog; ac_word=$2 6326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6327printf %s "checking for $ac_word... " >&6; } 6328if test ${ac_cv_prog_AWK+y} 6329then : 6330 printf %s "(cached) " >&6 6331else $as_nop 6332 if test -n "$AWK"; then 6333 ac_cv_prog_AWK="$AWK" # Let the user override the test. 6334else 6335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6336for as_dir in $PATH 6337do 6338 IFS=$as_save_IFS 6339 case $as_dir in #((( 6340 '') as_dir=./ ;; 6341 */) ;; 6342 *) as_dir=$as_dir/ ;; 6343 esac 6344 for ac_exec_ext in '' $ac_executable_extensions; do 6345 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6346 ac_cv_prog_AWK="$ac_prog" 6347 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6348 break 2 6349 fi 6350done 6351 done 6352IFS=$as_save_IFS 6353 6354fi 6355fi 6356AWK=$ac_cv_prog_AWK 6357if test -n "$AWK"; then 6358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 6359printf "%s\n" "$AWK" >&6; } 6360else 6361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6362printf "%s\n" "no" >&6; } 6363fi 6364 6365 6366 test -n "$AWK" && break 6367done 6368 6369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 6370printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 6371set x ${MAKE-make} 6372ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 6373if eval test \${ac_cv_prog_make_${ac_make}_set+y} 6374then : 6375 printf %s "(cached) " >&6 6376else $as_nop 6377 cat >conftest.make <<\_ACEOF 6378SHELL = /bin/sh 6379all: 6380 @echo '@@@%%%=$(MAKE)=@@@%%%' 6381_ACEOF 6382# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 6383case `${MAKE-make} -f conftest.make 2>/dev/null` in 6384 *@@@%%%=?*=@@@%%%*) 6385 eval ac_cv_prog_make_${ac_make}_set=yes;; 6386 *) 6387 eval ac_cv_prog_make_${ac_make}_set=no;; 6388esac 6389rm -f conftest.make 6390fi 6391if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 6392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6393printf "%s\n" "yes" >&6; } 6394 SET_MAKE= 6395else 6396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6397printf "%s\n" "no" >&6; } 6398 SET_MAKE="MAKE=${MAKE-make}" 6399fi 6400 6401rm -rf .tst 2>/dev/null 6402mkdir .tst 2>/dev/null 6403if test -d .tst; then 6404 am__leading_dot=. 6405else 6406 am__leading_dot=_ 6407fi 6408rmdir .tst 2>/dev/null 6409 6410DEPDIR="${am__leading_dot}deps" 6411 6412ac_config_commands="$ac_config_commands depfiles" 6413 6414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 6415printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 6416cat > confinc.mk << 'END' 6417am__doit: 6418 @echo this is the am__doit target >confinc.out 6419.PHONY: am__doit 6420END 6421am__include="#" 6422am__quote= 6423# BSD make does it like this. 6424echo '.include "confinc.mk" # ignored' > confmf.BSD 6425# Other make implementations (GNU, Solaris 10, AIX) do it like this. 6426echo 'include confinc.mk # ignored' > confmf.GNU 6427_am_result=no 6428for s in GNU BSD; do 6429 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 6430 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 6431 ac_status=$? 6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6433 (exit $ac_status); } 6434 case $?:`cat confinc.out 2>/dev/null` in #( 6435 '0:this is the am__doit target') : 6436 case $s in #( 6437 BSD) : 6438 am__include='.include' am__quote='"' ;; #( 6439 *) : 6440 am__include='include' am__quote='' ;; 6441esac ;; #( 6442 *) : 6443 ;; 6444esac 6445 if test "$am__include" != "#"; then 6446 _am_result="yes ($s style)" 6447 break 6448 fi 6449done 6450rm -f confinc.* confmf.* 6451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 6452printf "%s\n" "${_am_result}" >&6; } 6453 6454# Check whether --enable-dependency-tracking was given. 6455if test ${enable_dependency_tracking+y} 6456then : 6457 enableval=$enable_dependency_tracking; 6458fi 6459 6460if test "x$enable_dependency_tracking" != xno; then 6461 am_depcomp="$ac_aux_dir/depcomp" 6462 AMDEPBACKSLASH='\' 6463 am__nodep='_no' 6464fi 6465 if test "x$enable_dependency_tracking" != xno; then 6466 AMDEP_TRUE= 6467 AMDEP_FALSE='#' 6468else 6469 AMDEP_TRUE='#' 6470 AMDEP_FALSE= 6471fi 6472 6473 6474## --------------------------------------- ## 6475## Start of automake initialization code ## 6476## --------------------------------------- ## 6477 6478if test "`cd $srcdir && pwd`" != "`pwd`"; then 6479 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 6480 # is not polluted with repeated "-I." 6481 am__isrc=' -I$(srcdir)' 6482 # test to see if srcdir already configured 6483 if test -f $srcdir/config.status; then 6484 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 6485 fi 6486fi 6487 6488# test whether we have cygpath 6489if test -z "$CYGPATH_W"; then 6490 if (cygpath --version) >/dev/null 2>/dev/null; then 6491 CYGPATH_W='cygpath -w' 6492 else 6493 CYGPATH_W=echo 6494 fi 6495fi 6496 6497 6498# Define the identity of the package. 6499 PACKAGE='curl' 6500 VERSION='-' 6501 6502 6503printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 6504 6505 6506printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 6507 6508# Some tools Automake needs. 6509 6510ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 6511 6512 6513AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 6514 6515 6516AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 6517 6518 6519AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 6520 6521 6522MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 6523 6524# For better backward compatibility. To be removed once Automake 1.9.x 6525# dies out for good. For more background, see: 6526# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 6527# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 6528mkdir_p='$(MKDIR_P)' 6529 6530# We need awk for the "check" target (and possibly the TAP driver). The 6531# system "awk" is bad on some platforms. 6532# Always define AMTAR for backward compatibility. Yes, it's still used 6533# in the wild :-( We should find a proper way to deprecate it ... 6534AMTAR='$${TAR-tar}' 6535 6536 6537# We'll loop over all known methods to create a tar archive until one works. 6538_am_tools='gnutar pax cpio none' 6539 6540am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 6541 6542 6543 6544 6545 6546depcc="$CC" am_compiler_list= 6547 6548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6549printf %s "checking dependency style of $depcc... " >&6; } 6550if test ${am_cv_CC_dependencies_compiler_type+y} 6551then : 6552 printf %s "(cached) " >&6 6553else $as_nop 6554 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6555 # We make a subdir and do the tests there. Otherwise we can end up 6556 # making bogus files that we don't know about and never remove. For 6557 # instance it was reported that on HP-UX the gcc test will end up 6558 # making a dummy file named 'D' -- because '-MD' means "put the output 6559 # in D". 6560 rm -rf conftest.dir 6561 mkdir conftest.dir 6562 # Copy depcomp to subdir because otherwise we won't find it if we're 6563 # using a relative directory. 6564 cp "$am_depcomp" conftest.dir 6565 cd conftest.dir 6566 # We will build objects and dependencies in a subdirectory because 6567 # it helps to detect inapplicable dependency modes. For instance 6568 # both Tru64's cc and ICC support -MD to output dependencies as a 6569 # side effect of compilation, but ICC will put the dependencies in 6570 # the current directory while Tru64 will put them in the object 6571 # directory. 6572 mkdir sub 6573 6574 am_cv_CC_dependencies_compiler_type=none 6575 if test "$am_compiler_list" = ""; then 6576 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6577 fi 6578 am__universal=false 6579 case " $depcc " in #( 6580 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6581 esac 6582 6583 for depmode in $am_compiler_list; do 6584 # Setup a source with many dependencies, because some compilers 6585 # like to wrap large dependency lists on column 80 (with \), and 6586 # we should not choose a depcomp mode which is confused by this. 6587 # 6588 # We need to recreate these files for each test, as the compiler may 6589 # overwrite some of them when testing with obscure command lines. 6590 # This happens at least with the AIX C compiler. 6591 : > sub/conftest.c 6592 for i in 1 2 3 4 5 6; do 6593 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6594 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 6595 # Solaris 10 /bin/sh. 6596 echo '/* dummy */' > sub/conftst$i.h 6597 done 6598 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6599 6600 # We check with '-c' and '-o' for the sake of the "dashmstdout" 6601 # mode. It turns out that the SunPro C++ compiler does not properly 6602 # handle '-M -o', and we need to detect this. Also, some Intel 6603 # versions had trouble with output in subdirs. 6604 am__obj=sub/conftest.${OBJEXT-o} 6605 am__minus_obj="-o $am__obj" 6606 case $depmode in 6607 gcc) 6608 # This depmode causes a compiler race in universal mode. 6609 test "$am__universal" = false || continue 6610 ;; 6611 nosideeffect) 6612 # After this tag, mechanisms are not by side-effect, so they'll 6613 # only be used when explicitly requested. 6614 if test "x$enable_dependency_tracking" = xyes; then 6615 continue 6616 else 6617 break 6618 fi 6619 ;; 6620 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6621 # This compiler won't grok '-c -o', but also, the minuso test has 6622 # not run yet. These depmodes are late enough in the game, and 6623 # so weak that their functioning should not be impacted. 6624 am__obj=conftest.${OBJEXT-o} 6625 am__minus_obj= 6626 ;; 6627 none) break ;; 6628 esac 6629 if depmode=$depmode \ 6630 source=sub/conftest.c object=$am__obj \ 6631 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6632 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6633 >/dev/null 2>conftest.err && 6634 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6635 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6636 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6637 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6638 # icc doesn't choke on unknown options, it will just issue warnings 6639 # or remarks (even with -Werror). So we grep stderr for any message 6640 # that says an option was ignored or not supported. 6641 # When given -MP, icc 7.0 and 7.1 complain thusly: 6642 # icc: Command line warning: ignoring option '-M'; no argument required 6643 # The diagnosis changed in icc 8.0: 6644 # icc: Command line remark: option '-MP' not supported 6645 if (grep 'ignoring option' conftest.err || 6646 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6647 am_cv_CC_dependencies_compiler_type=$depmode 6648 break 6649 fi 6650 fi 6651 done 6652 6653 cd .. 6654 rm -rf conftest.dir 6655else 6656 am_cv_CC_dependencies_compiler_type=none 6657fi 6658 6659fi 6660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 6661printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 6662CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 6663 6664 if 6665 test "x$enable_dependency_tracking" != xno \ 6666 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 6667 am__fastdepCC_TRUE= 6668 am__fastdepCC_FALSE='#' 6669else 6670 am__fastdepCC_TRUE='#' 6671 am__fastdepCC_FALSE= 6672fi 6673 6674 6675# Variables for tags utilities; see am/tags.am 6676if test -z "$CTAGS"; then 6677 CTAGS=ctags 6678fi 6679 6680if test -z "$ETAGS"; then 6681 ETAGS=etags 6682fi 6683 6684if test -z "$CSCOPE"; then 6685 CSCOPE=cscope 6686fi 6687 6688 6689 6690# POSIX will say in a future version that running "rm -f" with no argument 6691# is OK; and we want to be able to make that assumption in our Makefile 6692# recipes. So use an aggressive probe to check that the usage we want is 6693# actually supported "in the wild" to an acceptable degree. 6694# See automake bug#10828. 6695# To make any issue more visible, cause the running configure to be aborted 6696# by default if the 'rm' program in use doesn't match our expectations; the 6697# user can still override this though. 6698if rm -f && rm -fr && rm -rf; then : OK; else 6699 cat >&2 <<'END' 6700Oops! 6701 6702Your 'rm' program seems unable to run without file operands specified 6703on the command line, even when the '-f' option is present. This is contrary 6704to the behaviour of most rm programs out there, and not conforming with 6705the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 6706 6707Please tell [email protected] about your system, including the value 6708of your $PATH and any error possibly output before this message. This 6709can help us improve future automake versions. 6710 6711END 6712 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 6713 echo 'Configuration will proceed anyway, since you have set the' >&2 6714 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 6715 echo >&2 6716 else 6717 cat >&2 <<'END' 6718Aborting the configuration process, to ensure you take notice of the issue. 6719 6720You can download and install GNU coreutils to get an 'rm' implementation 6721that behaves properly: <https://www.gnu.org/software/coreutils/>. 6722 6723If you want to complete the configuration process using your problematic 6724'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 6725to "yes", and re-run configure. 6726 6727END 6728 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 6729 fi 6730fi 6731 6732## ------------------------------------- ## 6733## End of automake initialization code ## 6734## ------------------------------------- ## 6735 6736 6737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking curl version" >&5 6738printf %s "checking curl version... " >&6; } 6739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5 6740printf "%s\n" "$CURLVERSION" >&6; } 6741 6742 6743 6744VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/curl/curlver.h` 6745 6746 6747PKGADD_PKG="HAXXcurl" 6748PKGADD_NAME="curl - a client that groks URLs" 6749PKGADD_VENDOR="curl.se" 6750 6751 6752 6753 6754 curl_ssl_msg="no (--with-{openssl,gnutls,mbedtls,wolfssl,schannel,secure-transport,amissl,bearssl,rustls} )" 6755 curl_ssh_msg="no (--with-{libssh,libssh2})" 6756 curl_zlib_msg="no (--with-zlib)" 6757 curl_brotli_msg="no (--with-brotli)" 6758 curl_zstd_msg="no (--with-zstd)" 6759 curl_gss_msg="no (--with-gssapi)" 6760 curl_gsasl_msg="no (--with-gsasl)" 6761curl_tls_srp_msg="no (--enable-tls-srp)" 6762 curl_res_msg="default (--enable-ares / --enable-threaded-resolver)" 6763 curl_ipv6_msg="no (--enable-ipv6)" 6764curl_unix_sockets_msg="no (--enable-unix-sockets)" 6765 curl_idn_msg="no (--with-{libidn2,winidn})" 6766 curl_docs_msg="enabled (--disable-docs)" 6767 curl_manual_msg="no (--enable-manual)" 6768curl_libcurl_msg="enabled (--disable-libcurl-option)" 6769curl_verbose_msg="enabled (--disable-verbose)" 6770 curl_sspi_msg="no (--enable-sspi)" 6771 curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)" 6772 curl_ldaps_msg="no (--enable-ldaps)" 6773 curl_ipfs_msg="no (--enable-ipfs)" 6774 curl_rtsp_msg="no (--enable-rtsp)" 6775 curl_rtmp_msg="no (--with-librtmp)" 6776 curl_psl_msg="no (--with-libpsl)" 6777 curl_altsvc_msg="enabled (--disable-alt-svc)" 6778curl_headers_msg="enabled (--disable-headers-api)" 6779 curl_hsts_msg="enabled (--disable-hsts)" 6780 ssl_backends= 6781 curl_h1_msg="enabled (internal)" 6782 curl_h2_msg="no (--with-nghttp2)" 6783 curl_h3_msg="no (--with-ngtcp2 --with-nghttp3, --with-quiche, --with-openssl-quic, --with-msh3)" 6784 6785enable_altsvc="yes" 6786hsts="yes" 6787 6788INITIAL_LDFLAGS=$LDFLAGS 6789INITIAL_LIBS=$LIBS 6790 6791compilersh="run-compiler" 6792CURL_SAVED_CC="$CC" 6793export CURL_SAVED_CC 6794CURL_SAVED_LD_LIBRARY_PATH="$LD_LIBRARY_PATH" 6795export CURL_SAVED_LD_LIBRARY_PATH 6796cat <<\EOF > "$compilersh" 6797CC="$CURL_SAVED_CC" 6798export CC 6799LD_LIBRARY_PATH="$CURL_SAVED_LD_LIBRARY_PATH" 6800export LD_LIBRARY_PATH 6801exec $CC "$@" 6802EOF 6803 6804OPT_SCHANNEL=no 6805 6806# Check whether --with-schannel was given. 6807if test ${with_schannel+y} 6808then : 6809 withval=$with_schannel; OPT_SCHANNEL=$withval 6810 TLSCHOICE="schannel" 6811fi 6812 6813 6814OPT_SECURETRANSPORT=no 6815 6816# Check whether --with-secure-transport was given. 6817if test ${with_secure_transport+y} 6818then : 6819 withval=$with_secure_transport; 6820 OPT_SECURETRANSPORT=$withval 6821 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }Secure-Transport" 6822 6823fi 6824 6825 6826OPT_AMISSL=no 6827 6828# Check whether --with-amissl was given. 6829if test ${with_amissl+y} 6830then : 6831 withval=$with_amissl; 6832 OPT_AMISSL=$withval 6833 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }AmiSSL" 6834 6835fi 6836 6837 6838OPT_OPENSSL=no 6839ca="no" 6840 6841# Check whether --with-ssl was given. 6842if test ${with_ssl+y} 6843then : 6844 withval=$with_ssl; 6845 OPT_SSL=$withval 6846 OPT_OPENSSL=$withval 6847 if test X"$withval" != Xno; then 6848 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }OpenSSL" 6849 else 6850 SSL_DISABLED="D" 6851 fi 6852 6853fi 6854 6855 6856 6857# Check whether --with-openssl was given. 6858if test ${with_openssl+y} 6859then : 6860 withval=$with_openssl; 6861 OPT_OPENSSL=$withval 6862 if test X"$withval" != Xno; then 6863 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }OpenSSL" 6864 fi 6865 6866fi 6867 6868 6869OPT_GNUTLS=no 6870 6871# Check whether --with-gnutls was given. 6872if test ${with_gnutls+y} 6873then : 6874 withval=$with_gnutls; 6875 OPT_GNUTLS=$withval 6876 if test X"$withval" != Xno; then 6877 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }GnuTLS" 6878 fi 6879 6880fi 6881 6882 6883OPT_MBEDTLS=no 6884 6885# Check whether --with-mbedtls was given. 6886if test ${with_mbedtls+y} 6887then : 6888 withval=$with_mbedtls; 6889 OPT_MBEDTLS=$withval 6890 if test X"$withval" != Xno; then 6891 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }mbedTLS" 6892 fi 6893 6894fi 6895 6896 6897OPT_WOLFSSL=no 6898 6899# Check whether --with-wolfssl was given. 6900if test ${with_wolfssl+y} 6901then : 6902 withval=$with_wolfssl; 6903 OPT_WOLFSSL=$withval 6904 if test X"$withval" != Xno; then 6905 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }wolfSSL" 6906 fi 6907 6908fi 6909 6910 6911OPT_BEARSSL=no 6912 6913# Check whether --with-bearssl was given. 6914if test ${with_bearssl+y} 6915then : 6916 withval=$with_bearssl; 6917 OPT_BEARSSL=$withval 6918 if test X"$withval" != Xno; then 6919 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }BearSSL" 6920 fi 6921 6922fi 6923 6924 6925OPT_RUSTLS=no 6926 6927# Check whether --with-rustls was given. 6928if test ${with_rustls+y} 6929then : 6930 withval=$with_rustls; 6931 OPT_RUSTLS=$withval 6932 if test X"$withval" != Xno; then 6933 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }rustls" 6934 experimental="$experimental rustls" 6935 fi 6936 6937fi 6938 6939 6940TEST_NGHTTPX=nghttpx 6941 6942# Check whether --with-test-nghttpx was given. 6943if test ${with_test_nghttpx+y} 6944then : 6945 withval=$with_test_nghttpx; TEST_NGHTTPX=$withval 6946 if test X"$OPT_TEST_NGHTTPX" = "Xno"; then 6947 TEST_NGHTTPX="" 6948 fi 6949 6950fi 6951 6952 6953 6954CADDY=/usr/bin/caddy 6955 6956# Check whether --with-test-caddy was given. 6957if test ${with_test_caddy+y} 6958then : 6959 withval=$with_test_caddy; CADDY=$withval 6960 if test X"$OPT_CADDY" = "Xno"; then 6961 CADDY="" 6962 fi 6963 6964fi 6965 6966 6967 6968VSFTPD=/usr/sbin/vsftpd 6969 6970# Check whether --with-test-vsftpd was given. 6971if test ${with_test_vsftpd+y} 6972then : 6973 withval=$with_test_vsftpd; VSFTPD=$withval 6974 if test X"$OPT_VSFTPD" = "Xno"; then 6975 VSFTPD="" 6976 fi 6977 6978fi 6979 6980 6981 6982HTTPD_ENABLED="maybe" 6983 6984# Check whether --with-test-httpd was given. 6985if test ${with_test_httpd+y} 6986then : 6987 withval=$with_test_httpd; request_httpd=$withval 6988else $as_nop 6989 request_httpd=check 6990fi 6991 6992if test x"$request_httpd" = "xcheck" -o x"$request_httpd" = "xyes"; then 6993 if test -x "/usr/sbin/apache2" -a -x "/usr/sbin/apache2ctl"; then 6994 # common location on distros (debian/ubuntu) 6995 HTTPD="/usr/sbin/apache2" 6996 APACHECTL="/usr/sbin/apache2ctl" 6997 # Extract the first word of "apxs", so it can be a program name with args. 6998set dummy apxs; ac_word=$2 6999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7000printf %s "checking for $ac_word... " >&6; } 7001if test ${ac_cv_path_APXS+y} 7002then : 7003 printf %s "(cached) " >&6 7004else $as_nop 7005 case $APXS in 7006 [\\/]* | ?:[\\/]*) 7007 ac_cv_path_APXS="$APXS" # Let the user override the test with a path. 7008 ;; 7009 *) 7010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7011for as_dir in $PATH 7012do 7013 IFS=$as_save_IFS 7014 case $as_dir in #((( 7015 '') as_dir=./ ;; 7016 */) ;; 7017 *) as_dir=$as_dir/ ;; 7018 esac 7019 for ac_exec_ext in '' $ac_executable_extensions; do 7020 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7021 ac_cv_path_APXS="$as_dir$ac_word$ac_exec_ext" 7022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7023 break 2 7024 fi 7025done 7026 done 7027IFS=$as_save_IFS 7028 7029 ;; 7030esac 7031fi 7032APXS=$ac_cv_path_APXS 7033if test -n "$APXS"; then 7034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APXS" >&5 7035printf "%s\n" "$APXS" >&6; } 7036else 7037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7038printf "%s\n" "no" >&6; } 7039fi 7040 7041 7042 if test "x$APXS" = "x"; then 7043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: apache2-dev not installed, httpd tests disabled" >&5 7044printf "%s\n" "$as_me: apache2-dev not installed, httpd tests disabled" >&6;} 7045 HTTPD_ENABLED="no" 7046 fi 7047 else 7048 # Extract the first word of "httpd", so it can be a program name with args. 7049set dummy httpd; ac_word=$2 7050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7051printf %s "checking for $ac_word... " >&6; } 7052if test ${ac_cv_path_HTTPD+y} 7053then : 7054 printf %s "(cached) " >&6 7055else $as_nop 7056 case $HTTPD in 7057 [\\/]* | ?:[\\/]*) 7058 ac_cv_path_HTTPD="$HTTPD" # Let the user override the test with a path. 7059 ;; 7060 *) 7061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7062for as_dir in $PATH 7063do 7064 IFS=$as_save_IFS 7065 case $as_dir in #((( 7066 '') as_dir=./ ;; 7067 */) ;; 7068 *) as_dir=$as_dir/ ;; 7069 esac 7070 for ac_exec_ext in '' $ac_executable_extensions; do 7071 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7072 ac_cv_path_HTTPD="$as_dir$ac_word$ac_exec_ext" 7073 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7074 break 2 7075 fi 7076done 7077 done 7078IFS=$as_save_IFS 7079 7080 ;; 7081esac 7082fi 7083HTTPD=$ac_cv_path_HTTPD 7084if test -n "$HTTPD"; then 7085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HTTPD" >&5 7086printf "%s\n" "$HTTPD" >&6; } 7087else 7088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7089printf "%s\n" "no" >&6; } 7090fi 7091 7092 7093 if test "x$HTTPD" = "x"; then 7094 # Extract the first word of "apache2", so it can be a program name with args. 7095set dummy apache2; ac_word=$2 7096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7097printf %s "checking for $ac_word... " >&6; } 7098if test ${ac_cv_path_HTTPD+y} 7099then : 7100 printf %s "(cached) " >&6 7101else $as_nop 7102 case $HTTPD in 7103 [\\/]* | ?:[\\/]*) 7104 ac_cv_path_HTTPD="$HTTPD" # Let the user override the test with a path. 7105 ;; 7106 *) 7107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7108for as_dir in $PATH 7109do 7110 IFS=$as_save_IFS 7111 case $as_dir in #((( 7112 '') as_dir=./ ;; 7113 */) ;; 7114 *) as_dir=$as_dir/ ;; 7115 esac 7116 for ac_exec_ext in '' $ac_executable_extensions; do 7117 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7118 ac_cv_path_HTTPD="$as_dir$ac_word$ac_exec_ext" 7119 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7120 break 2 7121 fi 7122done 7123 done 7124IFS=$as_save_IFS 7125 7126 ;; 7127esac 7128fi 7129HTTPD=$ac_cv_path_HTTPD 7130if test -n "$HTTPD"; then 7131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HTTPD" >&5 7132printf "%s\n" "$HTTPD" >&6; } 7133else 7134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7135printf "%s\n" "no" >&6; } 7136fi 7137 7138 7139 fi 7140 # Extract the first word of "apachectl", so it can be a program name with args. 7141set dummy apachectl; ac_word=$2 7142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7143printf %s "checking for $ac_word... " >&6; } 7144if test ${ac_cv_path_APACHECTL+y} 7145then : 7146 printf %s "(cached) " >&6 7147else $as_nop 7148 case $APACHECTL in 7149 [\\/]* | ?:[\\/]*) 7150 ac_cv_path_APACHECTL="$APACHECTL" # Let the user override the test with a path. 7151 ;; 7152 *) 7153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7154for as_dir in $PATH 7155do 7156 IFS=$as_save_IFS 7157 case $as_dir in #((( 7158 '') as_dir=./ ;; 7159 */) ;; 7160 *) as_dir=$as_dir/ ;; 7161 esac 7162 for ac_exec_ext in '' $ac_executable_extensions; do 7163 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7164 ac_cv_path_APACHECTL="$as_dir$ac_word$ac_exec_ext" 7165 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7166 break 2 7167 fi 7168done 7169 done 7170IFS=$as_save_IFS 7171 7172 ;; 7173esac 7174fi 7175APACHECTL=$ac_cv_path_APACHECTL 7176if test -n "$APACHECTL"; then 7177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APACHECTL" >&5 7178printf "%s\n" "$APACHECTL" >&6; } 7179else 7180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7181printf "%s\n" "no" >&6; } 7182fi 7183 7184 7185 # Extract the first word of "apxs", so it can be a program name with args. 7186set dummy apxs; ac_word=$2 7187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7188printf %s "checking for $ac_word... " >&6; } 7189if test ${ac_cv_path_APXS+y} 7190then : 7191 printf %s "(cached) " >&6 7192else $as_nop 7193 case $APXS in 7194 [\\/]* | ?:[\\/]*) 7195 ac_cv_path_APXS="$APXS" # Let the user override the test with a path. 7196 ;; 7197 *) 7198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7199for as_dir in $PATH 7200do 7201 IFS=$as_save_IFS 7202 case $as_dir in #((( 7203 '') as_dir=./ ;; 7204 */) ;; 7205 *) as_dir=$as_dir/ ;; 7206 esac 7207 for ac_exec_ext in '' $ac_executable_extensions; do 7208 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7209 ac_cv_path_APXS="$as_dir$ac_word$ac_exec_ext" 7210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7211 break 2 7212 fi 7213done 7214 done 7215IFS=$as_save_IFS 7216 7217 ;; 7218esac 7219fi 7220APXS=$ac_cv_path_APXS 7221if test -n "$APXS"; then 7222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APXS" >&5 7223printf "%s\n" "$APXS" >&6; } 7224else 7225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7226printf "%s\n" "no" >&6; } 7227fi 7228 7229 7230 if test "x$HTTPD" = "x" -o "x$APACHECTL" = "x"; then 7231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: httpd/apache2 not in PATH, http tests disabled" >&5 7232printf "%s\n" "$as_me: httpd/apache2 not in PATH, http tests disabled" >&6;} 7233 HTTPD_ENABLED="no" 7234 fi 7235 if test "x$APXS" = "x"; then 7236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: apxs not in PATH, http tests disabled" >&5 7237printf "%s\n" "$as_me: apxs not in PATH, http tests disabled" >&6;} 7238 HTTPD_ENABLED="no" 7239 fi 7240 fi 7241elif test x"$request_httpd" != "xno"; then 7242 HTTPD="${request_httpd}/bin/httpd" 7243 APACHECTL="${request_httpd}/bin/apachectl" 7244 APXS="${request_httpd}/bin/apxs" 7245 if test ! -x "${HTTPD}"; then 7246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: httpd not found as ${HTTPD}, http tests disabled" >&5 7247printf "%s\n" "$as_me: httpd not found as ${HTTPD}, http tests disabled" >&6;} 7248 HTTPD_ENABLED="no" 7249 elif test ! -x "${APACHECTL}"; then 7250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: apachectl not found as ${APACHECTL}, http tests disabled" >&5 7251printf "%s\n" "$as_me: apachectl not found as ${APACHECTL}, http tests disabled" >&6;} 7252 HTTPD_ENABLED="no" 7253 elif test ! -x "${APXS}"; then 7254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: apxs not found as ${APXS}, http tests disabled" >&5 7255printf "%s\n" "$as_me: apxs not found as ${APXS}, http tests disabled" >&6;} 7256 HTTPD_ENABLED="no" 7257 else 7258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using HTTPD=$HTTPD for tests" >&5 7259printf "%s\n" "$as_me: using HTTPD=$HTTPD for tests" >&6;} 7260 fi 7261fi 7262if test x"$HTTPD_ENABLED" = "xno"; then 7263 HTTPD="" 7264 APACHECTL="" 7265 APXS="" 7266fi 7267 7268 7269 7270 7271if test "x$TEST_NGHTTPX" != "x" -a "x$TEST_NGHTTPX" != "xnghttpx"; then 7272 HTTPD_NGHTTPX="$TEST_NGHTTPX" 7273else 7274 # Extract the first word of "nghttpx", so it can be a program name with args. 7275set dummy nghttpx; ac_word=$2 7276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7277printf %s "checking for $ac_word... " >&6; } 7278if test ${ac_cv_path_HTTPD_NGHTTPX+y} 7279then : 7280 printf %s "(cached) " >&6 7281else $as_nop 7282 case $HTTPD_NGHTTPX in 7283 [\\/]* | ?:[\\/]*) 7284 ac_cv_path_HTTPD_NGHTTPX="$HTTPD_NGHTTPX" # Let the user override the test with a path. 7285 ;; 7286 *) 7287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7288as_dummy="$PATH:/usr/bin:/usr/local/bin" 7289for as_dir in $as_dummy 7290do 7291 IFS=$as_save_IFS 7292 case $as_dir in #((( 7293 '') as_dir=./ ;; 7294 */) ;; 7295 *) as_dir=$as_dir/ ;; 7296 esac 7297 for ac_exec_ext in '' $ac_executable_extensions; do 7298 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7299 ac_cv_path_HTTPD_NGHTTPX="$as_dir$ac_word$ac_exec_ext" 7300 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7301 break 2 7302 fi 7303done 7304 done 7305IFS=$as_save_IFS 7306 7307 ;; 7308esac 7309fi 7310HTTPD_NGHTTPX=$ac_cv_path_HTTPD_NGHTTPX 7311if test -n "$HTTPD_NGHTTPX"; then 7312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HTTPD_NGHTTPX" >&5 7313printf "%s\n" "$HTTPD_NGHTTPX" >&6; } 7314else 7315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7316printf "%s\n" "no" >&6; } 7317fi 7318 7319 7320fi 7321 7322 7323if test "x$TEST_CADDY" != "x"; then 7324 CADDY="$TEST_CADDY" 7325else 7326 # Extract the first word of "caddy", so it can be a program name with args. 7327set dummy caddy; ac_word=$2 7328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7329printf %s "checking for $ac_word... " >&6; } 7330if test ${ac_cv_path_CADDY+y} 7331then : 7332 printf %s "(cached) " >&6 7333else $as_nop 7334 case $CADDY in 7335 [\\/]* | ?:[\\/]*) 7336 ac_cv_path_CADDY="$CADDY" # Let the user override the test with a path. 7337 ;; 7338 *) 7339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7340for as_dir in $PATH 7341do 7342 IFS=$as_save_IFS 7343 case $as_dir in #((( 7344 '') as_dir=./ ;; 7345 */) ;; 7346 *) as_dir=$as_dir/ ;; 7347 esac 7348 for ac_exec_ext in '' $ac_executable_extensions; do 7349 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7350 ac_cv_path_CADDY="$as_dir$ac_word$ac_exec_ext" 7351 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7352 break 2 7353 fi 7354done 7355 done 7356IFS=$as_save_IFS 7357 7358 ;; 7359esac 7360fi 7361CADDY=$ac_cv_path_CADDY 7362if test -n "$CADDY"; then 7363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CADDY" >&5 7364printf "%s\n" "$CADDY" >&6; } 7365else 7366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7367printf "%s\n" "no" >&6; } 7368fi 7369 7370 7371fi 7372 7373 7374if test -z "$TLSCHOICE"; then 7375 if test "x$OPT_SSL" != "xno"; then 7376 as_fn_error $? "select TLS backend(s) or disable TLS with --without-ssl. 7377 7378Select from these: 7379 7380 --with-amissl 7381 --with-bearssl 7382 --with-gnutls 7383 --with-mbedtls 7384 --with-openssl (also works for BoringSSL and LibreSSL) 7385 --with-rustls 7386 --with-schannel 7387 --with-secure-transport 7388 --with-wolfssl 7389" "$LINENO" 5 7390 fi 7391fi 7392 7393 7394# Check whether --with-darwinssl was given. 7395if test ${with_darwinssl+y} 7396then : 7397 withval=$with_darwinssl; as_fn_error $? "--with-darwin-ssl and --without-darwin-ssl no longer work!" "$LINENO" 5 7398fi 7399 7400 7401 7402 7403 7404 # Make sure we can run config.sub. 7405$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 7406 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 7407 7408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 7409printf %s "checking build system type... " >&6; } 7410if test ${ac_cv_build+y} 7411then : 7412 printf %s "(cached) " >&6 7413else $as_nop 7414 ac_build_alias=$build_alias 7415test "x$ac_build_alias" = x && 7416 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 7417test "x$ac_build_alias" = x && 7418 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 7419ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 7420 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 7421 7422fi 7423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 7424printf "%s\n" "$ac_cv_build" >&6; } 7425case $ac_cv_build in 7426*-*-*) ;; 7427*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 7428esac 7429build=$ac_cv_build 7430ac_save_IFS=$IFS; IFS='-' 7431set x $ac_cv_build 7432shift 7433build_cpu=$1 7434build_vendor=$2 7435shift; shift 7436# Remember, the first character of IFS is used to create $*, 7437# except with old shells: 7438build_os=$* 7439IFS=$ac_save_IFS 7440case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 7441 7442 7443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 7444printf %s "checking host system type... " >&6; } 7445if test ${ac_cv_host+y} 7446then : 7447 printf %s "(cached) " >&6 7448else $as_nop 7449 if test "x$host_alias" = x; then 7450 ac_cv_host=$ac_cv_build 7451else 7452 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 7453 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 7454fi 7455 7456fi 7457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 7458printf "%s\n" "$ac_cv_host" >&6; } 7459case $ac_cv_host in 7460*-*-*) ;; 7461*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 7462esac 7463host=$ac_cv_host 7464ac_save_IFS=$IFS; IFS='-' 7465set x $ac_cv_host 7466shift 7467host_cpu=$1 7468host_vendor=$2 7469shift; shift 7470# Remember, the first character of IFS is used to create $*, 7471# except with old shells: 7472host_os=$* 7473IFS=$ac_save_IFS 7474case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 7475 7476 7477 7478printf "%s\n" "#define CURL_OS \"${host}\"" >>confdefs.h 7479 7480 7481# Silence warning: ar: 'u' modifier ignored since 'D' is the default 7482AR_FLAGS=cr 7483 7484 7485 7486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 7487printf %s "checking for grep that handles long lines and -e... " >&6; } 7488if test ${ac_cv_path_GREP+y} 7489then : 7490 printf %s "(cached) " >&6 7491else $as_nop 7492 if test -z "$GREP"; then 7493 ac_path_GREP_found=false 7494 # Loop through the user's path and test for each of PROGNAME-LIST 7495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7496for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7497do 7498 IFS=$as_save_IFS 7499 case $as_dir in #((( 7500 '') as_dir=./ ;; 7501 */) ;; 7502 *) as_dir=$as_dir/ ;; 7503 esac 7504 for ac_prog in grep ggrep 7505 do 7506 for ac_exec_ext in '' $ac_executable_extensions; do 7507 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 7508 as_fn_executable_p "$ac_path_GREP" || continue 7509# Check for GNU ac_path_GREP and select it if it is found. 7510 # Check for GNU $ac_path_GREP 7511case `"$ac_path_GREP" --version 2>&1` in 7512*GNU*) 7513 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 7514*) 7515 ac_count=0 7516 printf %s 0123456789 >"conftest.in" 7517 while : 7518 do 7519 cat "conftest.in" "conftest.in" >"conftest.tmp" 7520 mv "conftest.tmp" "conftest.in" 7521 cp "conftest.in" "conftest.nl" 7522 printf "%s\n" 'GREP' >> "conftest.nl" 7523 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 7524 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7525 as_fn_arith $ac_count + 1 && ac_count=$as_val 7526 if test $ac_count -gt ${ac_path_GREP_max-0}; then 7527 # Best one so far, save it but keep looking for a better one 7528 ac_cv_path_GREP="$ac_path_GREP" 7529 ac_path_GREP_max=$ac_count 7530 fi 7531 # 10*(2^10) chars as input seems more than enough 7532 test $ac_count -gt 10 && break 7533 done 7534 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7535esac 7536 7537 $ac_path_GREP_found && break 3 7538 done 7539 done 7540 done 7541IFS=$as_save_IFS 7542 if test -z "$ac_cv_path_GREP"; then 7543 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7544 fi 7545else 7546 ac_cv_path_GREP=$GREP 7547fi 7548 7549fi 7550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 7551printf "%s\n" "$ac_cv_path_GREP" >&6; } 7552 GREP="$ac_cv_path_GREP" 7553 7554 7555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 7556printf %s "checking for egrep... " >&6; } 7557if test ${ac_cv_path_EGREP+y} 7558then : 7559 printf %s "(cached) " >&6 7560else $as_nop 7561 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 7562 then ac_cv_path_EGREP="$GREP -E" 7563 else 7564 if test -z "$EGREP"; then 7565 ac_path_EGREP_found=false 7566 # Loop through the user's path and test for each of PROGNAME-LIST 7567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7568for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7569do 7570 IFS=$as_save_IFS 7571 case $as_dir in #((( 7572 '') as_dir=./ ;; 7573 */) ;; 7574 *) as_dir=$as_dir/ ;; 7575 esac 7576 for ac_prog in egrep 7577 do 7578 for ac_exec_ext in '' $ac_executable_extensions; do 7579 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 7580 as_fn_executable_p "$ac_path_EGREP" || continue 7581# Check for GNU ac_path_EGREP and select it if it is found. 7582 # Check for GNU $ac_path_EGREP 7583case `"$ac_path_EGREP" --version 2>&1` in 7584*GNU*) 7585 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 7586*) 7587 ac_count=0 7588 printf %s 0123456789 >"conftest.in" 7589 while : 7590 do 7591 cat "conftest.in" "conftest.in" >"conftest.tmp" 7592 mv "conftest.tmp" "conftest.in" 7593 cp "conftest.in" "conftest.nl" 7594 printf "%s\n" 'EGREP' >> "conftest.nl" 7595 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 7596 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7597 as_fn_arith $ac_count + 1 && ac_count=$as_val 7598 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 7599 # Best one so far, save it but keep looking for a better one 7600 ac_cv_path_EGREP="$ac_path_EGREP" 7601 ac_path_EGREP_max=$ac_count 7602 fi 7603 # 10*(2^10) chars as input seems more than enough 7604 test $ac_count -gt 10 && break 7605 done 7606 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7607esac 7608 7609 $ac_path_EGREP_found && break 3 7610 done 7611 done 7612 done 7613IFS=$as_save_IFS 7614 if test -z "$ac_cv_path_EGREP"; then 7615 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7616 fi 7617else 7618 ac_cv_path_EGREP=$EGREP 7619fi 7620 7621 fi 7622fi 7623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 7624printf "%s\n" "$ac_cv_path_EGREP" >&6; } 7625 EGREP="$ac_cv_path_EGREP" 7626 7627 7628 7629 7630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5 7631printf %s "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; } 7632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7633/* end confdefs.h. */ 7634 7635#ifdef _AIX 7636 yes_this_is_aix 7637#endif 7638 7639_ACEOF 7640if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7641 $EGREP "yes_this_is_aix" >/dev/null 2>&1 7642then : 7643 7644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7645printf "%s\n" "yes" >&6; } 7646 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 7647 7648 7649else $as_nop 7650 7651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7652printf "%s\n" "no" >&6; } 7653 7654fi 7655rm -rf conftest* 7656 7657 7658 7659 7660 # 7661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5 7662printf %s "checking if _THREAD_SAFE is already defined... " >&6; } 7663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7664/* end confdefs.h. */ 7665 7666 7667 7668int main(void) 7669{ 7670 7671 #ifdef _THREAD_SAFE 7672 int dummy=1; 7673 #else 7674 #error force compilation error 7675 #endif 7676 7677 ; 7678 return 0; 7679} 7680 7681_ACEOF 7682if ac_fn_c_try_compile "$LINENO" 7683then : 7684 7685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7686printf "%s\n" "yes" >&6; } 7687 tmp_thread_safe_initially_defined="yes" 7688 7689else $as_nop 7690 7691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7692printf "%s\n" "no" >&6; } 7693 tmp_thread_safe_initially_defined="no" 7694 7695fi 7696rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7697 # 7698 if test "$tmp_thread_safe_initially_defined" = "no"; then 7699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5 7700printf %s "checking if _THREAD_SAFE is actually needed... " >&6; } 7701 7702 case $host_os in 7703 aix[123].* | aix4.[012].*) 7704 tmp_need_thread_safe="no" 7705 ;; 7706 aix*) 7707 tmp_need_thread_safe="yes" 7708 ;; 7709 *) 7710 tmp_need_thread_safe="no" 7711 ;; 7712 esac 7713 7714 if test "$tmp_need_thread_safe" = "yes"; then 7715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7716printf "%s\n" "yes" >&6; } 7717 else 7718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7719printf "%s\n" "no" >&6; } 7720 fi 7721 fi 7722 # 7723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5 7724printf %s "checking if _THREAD_SAFE is onwards defined... " >&6; } 7725 if test "$tmp_thread_safe_initially_defined" = "yes" || 7726 test "$tmp_need_thread_safe" = "yes"; then 7727 7728 7729printf "%s\n" "#define NEED_THREAD_SAFE 1" >>confdefs.h 7730 7731cat >>confdefs.h <<_EOF 7732#ifndef _THREAD_SAFE 7733# define _THREAD_SAFE 7734#endif 7735_EOF 7736 7737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7738printf "%s\n" "yes" >&6; } 7739 else 7740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7741printf "%s\n" "no" >&6; } 7742 fi 7743 # 7744 7745 7746 # 7747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5 7748printf %s "checking if _REENTRANT is already defined... " >&6; } 7749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7750/* end confdefs.h. */ 7751 7752 7753 7754int main(void) 7755{ 7756 7757 #ifdef _REENTRANT 7758 int dummy=1; 7759 #else 7760 #error force compilation error 7761 #endif 7762 7763 ; 7764 return 0; 7765} 7766 7767_ACEOF 7768if ac_fn_c_try_compile "$LINENO" 7769then : 7770 7771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7772printf "%s\n" "yes" >&6; } 7773 tmp_reentrant_initially_defined="yes" 7774 7775else $as_nop 7776 7777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7778printf "%s\n" "no" >&6; } 7779 tmp_reentrant_initially_defined="no" 7780 7781fi 7782rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7783 # 7784 if test "$tmp_reentrant_initially_defined" = "no"; then 7785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5 7786printf %s "checking if _REENTRANT is actually needed... " >&6; } 7787 7788 case $host_os in 7789 solaris*) 7790 tmp_need_reentrant="yes" 7791 ;; 7792 *) 7793 tmp_need_reentrant="no" 7794 ;; 7795 esac 7796 7797 if test "$tmp_need_reentrant" = "no"; then 7798 7799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7800/* end confdefs.h. */ 7801 7802 7803 #include <errno.h> 7804 7805int main(void) 7806{ 7807 7808 if(0 != errno) 7809 return 1; 7810 7811 ; 7812 return 0; 7813} 7814 7815_ACEOF 7816if ac_fn_c_try_compile "$LINENO" 7817then : 7818 7819 tmp_errno="yes" 7820 7821else $as_nop 7822 7823 tmp_errno="no" 7824 7825fi 7826rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7827 if test "$tmp_errno" = "yes"; then 7828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7829/* end confdefs.h. */ 7830 7831 7832 #include <errno.h> 7833 7834int main(void) 7835{ 7836 7837 #ifdef errno 7838 int dummy=1; 7839 #else 7840 #error force compilation error 7841 #endif 7842 7843 ; 7844 return 0; 7845} 7846 7847_ACEOF 7848if ac_fn_c_try_compile "$LINENO" 7849then : 7850 7851 tmp_errno="errno_macro_defined" 7852 7853else $as_nop 7854 7855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7856/* end confdefs.h. */ 7857 7858 7859 #define _REENTRANT 7860 #include <errno.h> 7861 7862int main(void) 7863{ 7864 7865 #ifdef errno 7866 int dummy=1; 7867 #else 7868 #error force compilation error 7869 #endif 7870 7871 ; 7872 return 0; 7873} 7874 7875_ACEOF 7876if ac_fn_c_try_compile "$LINENO" 7877then : 7878 7879 tmp_errno="errno_macro_needs_reentrant" 7880 tmp_need_reentrant="yes" 7881 7882fi 7883rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7884 7885fi 7886rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7887 fi 7888 7889 fi 7890 if test "$tmp_need_reentrant" = "no"; then 7891 7892 if test "$tmp_need_reentrant" = "no"; then 7893 7894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7895/* end confdefs.h. */ 7896 7897 7898#define gmtime_r innocuous_gmtime_r 7899#ifdef __STDC__ 7900# include <limits.h> 7901#else 7902# include <assert.h> 7903#endif 7904#undef gmtime_r 7905#ifdef __cplusplus 7906extern "C" 7907#endif 7908char gmtime_r (); 7909#if defined __stub_gmtime_r || defined __stub___gmtime_r 7910#error force compilation error 7911#endif 7912 7913int main(void) 7914{ 7915return gmtime_r (); 7916 ; 7917 return 0; 7918} 7919 7920_ACEOF 7921if ac_fn_c_try_link "$LINENO" 7922then : 7923 7924 tmp_gmtime_r="yes" 7925 7926else $as_nop 7927 7928 tmp_gmtime_r="no" 7929 7930fi 7931rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7932 conftest$ac_exeext conftest.$ac_ext 7933 if test "$tmp_gmtime_r" = "yes"; then 7934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7935/* end confdefs.h. */ 7936 7937 #include <sys/types.h> 7938 #include <time.h> 7939 7940_ACEOF 7941if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7942 $EGREP "gmtime_r" >/dev/null 2>&1 7943then : 7944 7945 tmp_gmtime_r="proto_declared" 7946 7947else $as_nop 7948 7949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7950/* end confdefs.h. */ 7951 7952 #define _REENTRANT 7953 #include <sys/types.h> 7954 #include <time.h> 7955 7956_ACEOF 7957if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7958 $EGREP "gmtime_r" >/dev/null 2>&1 7959then : 7960 7961 tmp_gmtime_r="proto_needs_reentrant" 7962 tmp_need_reentrant="yes" 7963 7964fi 7965rm -rf conftest* 7966 7967 7968fi 7969rm -rf conftest* 7970 7971 fi 7972 7973 fi 7974 if test "$tmp_need_reentrant" = "no"; then 7975 7976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7977/* end confdefs.h. */ 7978 7979 7980#define localtime_r innocuous_localtime_r 7981#ifdef __STDC__ 7982# include <limits.h> 7983#else 7984# include <assert.h> 7985#endif 7986#undef localtime_r 7987#ifdef __cplusplus 7988extern "C" 7989#endif 7990char localtime_r (); 7991#if defined __stub_localtime_r || defined __stub___localtime_r 7992#error force compilation error 7993#endif 7994 7995int main(void) 7996{ 7997return localtime_r (); 7998 ; 7999 return 0; 8000} 8001 8002_ACEOF 8003if ac_fn_c_try_link "$LINENO" 8004then : 8005 8006 tmp_localtime_r="yes" 8007 8008else $as_nop 8009 8010 tmp_localtime_r="no" 8011 8012fi 8013rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8014 conftest$ac_exeext conftest.$ac_ext 8015 if test "$tmp_localtime_r" = "yes"; then 8016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8017/* end confdefs.h. */ 8018 8019 #include <sys/types.h> 8020 #include <time.h> 8021 8022_ACEOF 8023if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8024 $EGREP "localtime_r" >/dev/null 2>&1 8025then : 8026 8027 tmp_localtime_r="proto_declared" 8028 8029else $as_nop 8030 8031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8032/* end confdefs.h. */ 8033 8034 #define _REENTRANT 8035 #include <sys/types.h> 8036 #include <time.h> 8037 8038_ACEOF 8039if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8040 $EGREP "localtime_r" >/dev/null 2>&1 8041then : 8042 8043 tmp_localtime_r="proto_needs_reentrant" 8044 tmp_need_reentrant="yes" 8045 8046fi 8047rm -rf conftest* 8048 8049 8050fi 8051rm -rf conftest* 8052 8053 fi 8054 8055 fi 8056 if test "$tmp_need_reentrant" = "no"; then 8057 8058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8059/* end confdefs.h. */ 8060 8061 8062#define strerror_r innocuous_strerror_r 8063#ifdef __STDC__ 8064# include <limits.h> 8065#else 8066# include <assert.h> 8067#endif 8068#undef strerror_r 8069#ifdef __cplusplus 8070extern "C" 8071#endif 8072char strerror_r (); 8073#if defined __stub_strerror_r || defined __stub___strerror_r 8074#error force compilation error 8075#endif 8076 8077int main(void) 8078{ 8079return strerror_r (); 8080 ; 8081 return 0; 8082} 8083 8084_ACEOF 8085if ac_fn_c_try_link "$LINENO" 8086then : 8087 8088 tmp_strerror_r="yes" 8089 8090else $as_nop 8091 8092 tmp_strerror_r="no" 8093 8094fi 8095rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8096 conftest$ac_exeext conftest.$ac_ext 8097 if test "$tmp_strerror_r" = "yes"; then 8098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8099/* end confdefs.h. */ 8100 8101 #include <sys/types.h> 8102 #include <string.h> 8103 8104_ACEOF 8105if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8106 $EGREP "strerror_r" >/dev/null 2>&1 8107then : 8108 8109 tmp_strerror_r="proto_declared" 8110 8111else $as_nop 8112 8113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8114/* end confdefs.h. */ 8115 8116 #define _REENTRANT 8117 #include <sys/types.h> 8118 #include <string.h> 8119 8120_ACEOF 8121if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8122 $EGREP "strerror_r" >/dev/null 2>&1 8123then : 8124 8125 tmp_strerror_r="proto_needs_reentrant" 8126 tmp_need_reentrant="yes" 8127 8128fi 8129rm -rf conftest* 8130 8131 8132fi 8133rm -rf conftest* 8134 8135 fi 8136 8137 fi 8138 if test "$tmp_need_reentrant" = "no"; then 8139 8140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8141/* end confdefs.h. */ 8142 8143 8144#define strtok_r innocuous_strtok_r 8145#ifdef __STDC__ 8146# include <limits.h> 8147#else 8148# include <assert.h> 8149#endif 8150#undef strtok_r 8151#ifdef __cplusplus 8152extern "C" 8153#endif 8154char strtok_r (); 8155#if defined __stub_strtok_r || defined __stub___strtok_r 8156#error force compilation error 8157#endif 8158 8159int main(void) 8160{ 8161return strtok_r (); 8162 ; 8163 return 0; 8164} 8165 8166_ACEOF 8167if ac_fn_c_try_link "$LINENO" 8168then : 8169 8170 tmp_strtok_r="yes" 8171 8172else $as_nop 8173 8174 tmp_strtok_r="no" 8175 8176fi 8177rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8178 conftest$ac_exeext conftest.$ac_ext 8179 if test "$tmp_strtok_r" = "yes"; then 8180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8181/* end confdefs.h. */ 8182 8183 #include <sys/types.h> 8184 #include <string.h> 8185 8186_ACEOF 8187if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8188 $EGREP "strtok_r" >/dev/null 2>&1 8189then : 8190 8191 tmp_strtok_r="proto_declared" 8192 8193else $as_nop 8194 8195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8196/* end confdefs.h. */ 8197 8198 #define _REENTRANT 8199 #include <sys/types.h> 8200 #include <string.h> 8201 8202_ACEOF 8203if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8204 $EGREP "strtok_r" >/dev/null 2>&1 8205then : 8206 8207 tmp_strtok_r="proto_needs_reentrant" 8208 tmp_need_reentrant="yes" 8209 8210fi 8211rm -rf conftest* 8212 8213 8214fi 8215rm -rf conftest* 8216 8217 fi 8218 8219 fi 8220 if test "$tmp_need_reentrant" = "no"; then 8221 8222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8223/* end confdefs.h. */ 8224 8225 8226#define gethostbyname_r innocuous_gethostbyname_r 8227#ifdef __STDC__ 8228# include <limits.h> 8229#else 8230# include <assert.h> 8231#endif 8232#undef gethostbyname_r 8233#ifdef __cplusplus 8234extern "C" 8235#endif 8236char gethostbyname_r (); 8237#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r 8238#error force compilation error 8239#endif 8240 8241int main(void) 8242{ 8243return gethostbyname_r (); 8244 ; 8245 return 0; 8246} 8247 8248_ACEOF 8249if ac_fn_c_try_link "$LINENO" 8250then : 8251 8252 tmp_gethostbyname_r="yes" 8253 8254else $as_nop 8255 8256 tmp_gethostbyname_r="no" 8257 8258fi 8259rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8260 conftest$ac_exeext conftest.$ac_ext 8261 if test "$tmp_gethostbyname_r" = "yes"; then 8262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8263/* end confdefs.h. */ 8264 8265 #include <sys/types.h> 8266 #include <netdb.h> 8267 8268_ACEOF 8269if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8270 $EGREP "gethostbyname_r" >/dev/null 2>&1 8271then : 8272 8273 tmp_gethostbyname_r="proto_declared" 8274 8275else $as_nop 8276 8277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8278/* end confdefs.h. */ 8279 8280 #define _REENTRANT 8281 #include <sys/types.h> 8282 #include <netdb.h> 8283 8284_ACEOF 8285if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8286 $EGREP "gethostbyname_r" >/dev/null 2>&1 8287then : 8288 8289 tmp_gethostbyname_r="proto_needs_reentrant" 8290 tmp_need_reentrant="yes" 8291 8292fi 8293rm -rf conftest* 8294 8295 8296fi 8297rm -rf conftest* 8298 8299 fi 8300 8301 fi 8302 if test "$tmp_need_reentrant" = "no"; then 8303 8304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8305/* end confdefs.h. */ 8306 8307 8308#define getprotobyname_r innocuous_getprotobyname_r 8309#ifdef __STDC__ 8310# include <limits.h> 8311#else 8312# include <assert.h> 8313#endif 8314#undef getprotobyname_r 8315#ifdef __cplusplus 8316extern "C" 8317#endif 8318char getprotobyname_r (); 8319#if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r 8320#error force compilation error 8321#endif 8322 8323int main(void) 8324{ 8325return getprotobyname_r (); 8326 ; 8327 return 0; 8328} 8329 8330_ACEOF 8331if ac_fn_c_try_link "$LINENO" 8332then : 8333 8334 tmp_getprotobyname_r="yes" 8335 8336else $as_nop 8337 8338 tmp_getprotobyname_r="no" 8339 8340fi 8341rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8342 conftest$ac_exeext conftest.$ac_ext 8343 if test "$tmp_getprotobyname_r" = "yes"; then 8344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8345/* end confdefs.h. */ 8346 8347 #include <sys/types.h> 8348 #include <netdb.h> 8349 8350_ACEOF 8351if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8352 $EGREP "getprotobyname_r" >/dev/null 2>&1 8353then : 8354 8355 tmp_getprotobyname_r="proto_declared" 8356 8357else $as_nop 8358 8359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8360/* end confdefs.h. */ 8361 8362 #define _REENTRANT 8363 #include <sys/types.h> 8364 #include <netdb.h> 8365 8366_ACEOF 8367if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8368 $EGREP "getprotobyname_r" >/dev/null 2>&1 8369then : 8370 8371 tmp_getprotobyname_r="proto_needs_reentrant" 8372 tmp_need_reentrant="yes" 8373 8374fi 8375rm -rf conftest* 8376 8377 8378fi 8379rm -rf conftest* 8380 8381 fi 8382 8383 fi 8384 8385 fi 8386 if test "$tmp_need_reentrant" = "yes"; then 8387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8388printf "%s\n" "yes" >&6; } 8389 else 8390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8391printf "%s\n" "no" >&6; } 8392 fi 8393 fi 8394 # 8395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5 8396printf %s "checking if _REENTRANT is onwards defined... " >&6; } 8397 if test "$tmp_reentrant_initially_defined" = "yes" || 8398 test "$tmp_need_reentrant" = "yes"; then 8399 8400 8401printf "%s\n" "#define NEED_REENTRANT 1" >>confdefs.h 8402 8403cat >>confdefs.h <<_EOF 8404#ifndef _REENTRANT 8405# define _REENTRANT 8406#endif 8407_EOF 8408 8409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8410printf "%s\n" "yes" >&6; } 8411 else 8412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8413printf "%s\n" "no" >&6; } 8414 fi 8415 # 8416 8417 8418# Check whether --enable-largefile was given. 8419if test ${enable_largefile+y} 8420then : 8421 enableval=$enable_largefile; 8422fi 8423 8424if test "$enable_largefile" != no; then 8425 8426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 8427printf %s "checking for special C compiler options needed for large files... " >&6; } 8428if test ${ac_cv_sys_largefile_CC+y} 8429then : 8430 printf %s "(cached) " >&6 8431else $as_nop 8432 ac_cv_sys_largefile_CC=no 8433 if test "$GCC" != yes; then 8434 ac_save_CC=$CC 8435 while :; do 8436 # IRIX 6.2 and later do not support large files by default, 8437 # so use the C compiler's -n32 option if that helps. 8438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8439/* end confdefs.h. */ 8440#include <sys/types.h> 8441 /* Check that off_t can represent 2**63 - 1 correctly. 8442 We can't simply define LARGE_OFF_T to be 9223372036854775807, 8443 since some C++ compilers masquerading as C compilers 8444 incorrectly reject 9223372036854775807. */ 8445#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 8446 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 8447 && LARGE_OFF_T % 2147483647 == 1) 8448 ? 1 : -1]; 8449int main(void) 8450{ 8451 8452 ; 8453 return 0; 8454} 8455_ACEOF 8456 if ac_fn_c_try_compile "$LINENO" 8457then : 8458 break 8459fi 8460rm -f core conftest.err conftest.$ac_objext conftest.beam 8461 CC="$CC -n32" 8462 if ac_fn_c_try_compile "$LINENO" 8463then : 8464 ac_cv_sys_largefile_CC=' -n32'; break 8465fi 8466rm -f core conftest.err conftest.$ac_objext conftest.beam 8467 break 8468 done 8469 CC=$ac_save_CC 8470 rm -f conftest.$ac_ext 8471 fi 8472fi 8473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 8474printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } 8475 if test "$ac_cv_sys_largefile_CC" != no; then 8476 CC=$CC$ac_cv_sys_largefile_CC 8477 fi 8478 8479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 8480printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 8481if test ${ac_cv_sys_file_offset_bits+y} 8482then : 8483 printf %s "(cached) " >&6 8484else $as_nop 8485 while :; do 8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8487/* end confdefs.h. */ 8488#include <sys/types.h> 8489 /* Check that off_t can represent 2**63 - 1 correctly. 8490 We can't simply define LARGE_OFF_T to be 9223372036854775807, 8491 since some C++ compilers masquerading as C compilers 8492 incorrectly reject 9223372036854775807. */ 8493#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 8494 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 8495 && LARGE_OFF_T % 2147483647 == 1) 8496 ? 1 : -1]; 8497int main(void) 8498{ 8499 8500 ; 8501 return 0; 8502} 8503_ACEOF 8504if ac_fn_c_try_compile "$LINENO" 8505then : 8506 ac_cv_sys_file_offset_bits=no; break 8507fi 8508rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8510/* end confdefs.h. */ 8511#define _FILE_OFFSET_BITS 64 8512#include <sys/types.h> 8513 /* Check that off_t can represent 2**63 - 1 correctly. 8514 We can't simply define LARGE_OFF_T to be 9223372036854775807, 8515 since some C++ compilers masquerading as C compilers 8516 incorrectly reject 9223372036854775807. */ 8517#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 8518 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 8519 && LARGE_OFF_T % 2147483647 == 1) 8520 ? 1 : -1]; 8521int main(void) 8522{ 8523 8524 ; 8525 return 0; 8526} 8527_ACEOF 8528if ac_fn_c_try_compile "$LINENO" 8529then : 8530 ac_cv_sys_file_offset_bits=64; break 8531fi 8532rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8533 ac_cv_sys_file_offset_bits=unknown 8534 break 8535done 8536fi 8537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 8538printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } 8539case $ac_cv_sys_file_offset_bits in #( 8540 no | unknown) ;; 8541 *) 8542printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h 8543;; 8544esac 8545rm -rf conftest* 8546 if test $ac_cv_sys_file_offset_bits = unknown; then 8547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 8548printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } 8549if test ${ac_cv_sys_large_files+y} 8550then : 8551 printf %s "(cached) " >&6 8552else $as_nop 8553 while :; do 8554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8555/* end confdefs.h. */ 8556#include <sys/types.h> 8557 /* Check that off_t can represent 2**63 - 1 correctly. 8558 We can't simply define LARGE_OFF_T to be 9223372036854775807, 8559 since some C++ compilers masquerading as C compilers 8560 incorrectly reject 9223372036854775807. */ 8561#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 8562 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 8563 && LARGE_OFF_T % 2147483647 == 1) 8564 ? 1 : -1]; 8565int main(void) 8566{ 8567 8568 ; 8569 return 0; 8570} 8571_ACEOF 8572if ac_fn_c_try_compile "$LINENO" 8573then : 8574 ac_cv_sys_large_files=no; break 8575fi 8576rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8578/* end confdefs.h. */ 8579#define _LARGE_FILES 1 8580#include <sys/types.h> 8581 /* Check that off_t can represent 2**63 - 1 correctly. 8582 We can't simply define LARGE_OFF_T to be 9223372036854775807, 8583 since some C++ compilers masquerading as C compilers 8584 incorrectly reject 9223372036854775807. */ 8585#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 8586 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 8587 && LARGE_OFF_T % 2147483647 == 1) 8588 ? 1 : -1]; 8589int main(void) 8590{ 8591 8592 ; 8593 return 0; 8594} 8595_ACEOF 8596if ac_fn_c_try_compile "$LINENO" 8597then : 8598 ac_cv_sys_large_files=1; break 8599fi 8600rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8601 ac_cv_sys_large_files=unknown 8602 break 8603done 8604fi 8605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 8606printf "%s\n" "$ac_cv_sys_large_files" >&6; } 8607case $ac_cv_sys_large_files in #( 8608 no | unknown) ;; 8609 *) 8610printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h 8611;; 8612esac 8613rm -rf conftest* 8614 fi 8615fi 8616 8617 8618case `pwd` in 8619 *\ * | *\ *) 8620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 8621printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 8622esac 8623 8624 8625 8626macro_version='2.4.7' 8627macro_revision='2.4.7' 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642ltmain=$ac_aux_dir/ltmain.sh 8643 8644# Backslashify metacharacters that are still active within 8645# double-quoted strings. 8646sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 8647 8648# Same as above, but do not quote variable references. 8649double_quote_subst='s/\(["`\\]\)/\\\1/g' 8650 8651# Sed substitution to delay expansion of an escaped shell variable in a 8652# double_quote_subst'ed string. 8653delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 8654 8655# Sed substitution to delay expansion of an escaped single quote. 8656delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 8657 8658# Sed substitution to avoid accidental globbing in evaled expressions 8659no_glob_subst='s/\*/\\\*/g' 8660 8661ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 8662ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 8663ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 8664 8665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 8666printf %s "checking how to print strings... " >&6; } 8667# Test print first, because it will be a builtin if present. 8668if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 8669 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 8670 ECHO='print -r --' 8671elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 8672 ECHO='printf %s\n' 8673else 8674 # Use this function as a fallback that always works. 8675 func_fallback_echo () 8676 { 8677 eval 'cat <<_LTECHO_EOF 8678$1 8679_LTECHO_EOF' 8680 } 8681 ECHO='func_fallback_echo' 8682fi 8683 8684# func_echo_all arg... 8685# Invoke $ECHO with all args, space-separated. 8686func_echo_all () 8687{ 8688 $ECHO "" 8689} 8690 8691case $ECHO in 8692 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 8693printf "%s\n" "printf" >&6; } ;; 8694 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 8695printf "%s\n" "print -r" >&6; } ;; 8696 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 8697printf "%s\n" "cat" >&6; } ;; 8698esac 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 8714printf %s "checking for a sed that does not truncate output... " >&6; } 8715if test ${ac_cv_path_SED+y} 8716then : 8717 printf %s "(cached) " >&6 8718else $as_nop 8719 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 8720 for ac_i in 1 2 3 4 5 6 7; do 8721 ac_script="$ac_script$as_nl$ac_script" 8722 done 8723 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 8724 { ac_script=; unset ac_script;} 8725 if test -z "$SED"; then 8726 ac_path_SED_found=false 8727 # Loop through the user's path and test for each of PROGNAME-LIST 8728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8729for as_dir in $PATH 8730do 8731 IFS=$as_save_IFS 8732 case $as_dir in #((( 8733 '') as_dir=./ ;; 8734 */) ;; 8735 *) as_dir=$as_dir/ ;; 8736 esac 8737 for ac_prog in sed gsed 8738 do 8739 for ac_exec_ext in '' $ac_executable_extensions; do 8740 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 8741 as_fn_executable_p "$ac_path_SED" || continue 8742# Check for GNU ac_path_SED and select it if it is found. 8743 # Check for GNU $ac_path_SED 8744case `"$ac_path_SED" --version 2>&1` in 8745*GNU*) 8746 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 8747*) 8748 ac_count=0 8749 printf %s 0123456789 >"conftest.in" 8750 while : 8751 do 8752 cat "conftest.in" "conftest.in" >"conftest.tmp" 8753 mv "conftest.tmp" "conftest.in" 8754 cp "conftest.in" "conftest.nl" 8755 printf "%s\n" '' >> "conftest.nl" 8756 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 8757 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8758 as_fn_arith $ac_count + 1 && ac_count=$as_val 8759 if test $ac_count -gt ${ac_path_SED_max-0}; then 8760 # Best one so far, save it but keep looking for a better one 8761 ac_cv_path_SED="$ac_path_SED" 8762 ac_path_SED_max=$ac_count 8763 fi 8764 # 10*(2^10) chars as input seems more than enough 8765 test $ac_count -gt 10 && break 8766 done 8767 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8768esac 8769 8770 $ac_path_SED_found && break 3 8771 done 8772 done 8773 done 8774IFS=$as_save_IFS 8775 if test -z "$ac_cv_path_SED"; then 8776 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 8777 fi 8778else 8779 ac_cv_path_SED=$SED 8780fi 8781 8782fi 8783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 8784printf "%s\n" "$ac_cv_path_SED" >&6; } 8785 SED="$ac_cv_path_SED" 8786 rm -f conftest.sed 8787 8788test -z "$SED" && SED=sed 8789Xsed="$SED -e 1s/^X//" 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 8802printf %s "checking for fgrep... " >&6; } 8803if test ${ac_cv_path_FGREP+y} 8804then : 8805 printf %s "(cached) " >&6 8806else $as_nop 8807 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 8808 then ac_cv_path_FGREP="$GREP -F" 8809 else 8810 if test -z "$FGREP"; then 8811 ac_path_FGREP_found=false 8812 # Loop through the user's path and test for each of PROGNAME-LIST 8813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8814for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 8815do 8816 IFS=$as_save_IFS 8817 case $as_dir in #((( 8818 '') as_dir=./ ;; 8819 */) ;; 8820 *) as_dir=$as_dir/ ;; 8821 esac 8822 for ac_prog in fgrep 8823 do 8824 for ac_exec_ext in '' $ac_executable_extensions; do 8825 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 8826 as_fn_executable_p "$ac_path_FGREP" || continue 8827# Check for GNU ac_path_FGREP and select it if it is found. 8828 # Check for GNU $ac_path_FGREP 8829case `"$ac_path_FGREP" --version 2>&1` in 8830*GNU*) 8831 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 8832*) 8833 ac_count=0 8834 printf %s 0123456789 >"conftest.in" 8835 while : 8836 do 8837 cat "conftest.in" "conftest.in" >"conftest.tmp" 8838 mv "conftest.tmp" "conftest.in" 8839 cp "conftest.in" "conftest.nl" 8840 printf "%s\n" 'FGREP' >> "conftest.nl" 8841 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 8842 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8843 as_fn_arith $ac_count + 1 && ac_count=$as_val 8844 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 8845 # Best one so far, save it but keep looking for a better one 8846 ac_cv_path_FGREP="$ac_path_FGREP" 8847 ac_path_FGREP_max=$ac_count 8848 fi 8849 # 10*(2^10) chars as input seems more than enough 8850 test $ac_count -gt 10 && break 8851 done 8852 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8853esac 8854 8855 $ac_path_FGREP_found && break 3 8856 done 8857 done 8858 done 8859IFS=$as_save_IFS 8860 if test -z "$ac_cv_path_FGREP"; then 8861 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 8862 fi 8863else 8864 ac_cv_path_FGREP=$FGREP 8865fi 8866 8867 fi 8868fi 8869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 8870printf "%s\n" "$ac_cv_path_FGREP" >&6; } 8871 FGREP="$ac_cv_path_FGREP" 8872 8873 8874test -z "$GREP" && GREP=grep 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894# Check whether --with-gnu-ld was given. 8895if test ${with_gnu_ld+y} 8896then : 8897 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 8898else $as_nop 8899 with_gnu_ld=no 8900fi 8901 8902ac_prog=ld 8903if test yes = "$GCC"; then 8904 # Check if gcc -print-prog-name=ld gives a path. 8905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 8906printf %s "checking for ld used by $CC... " >&6; } 8907 case $host in 8908 *-*-mingw*) 8909 # gcc leaves a trailing carriage return, which upsets mingw 8910 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 8911 *) 8912 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 8913 esac 8914 case $ac_prog in 8915 # Accept absolute paths. 8916 [\\/]* | ?:[\\/]*) 8917 re_direlt='/[^/][^/]*/\.\./' 8918 # Canonicalize the pathname of ld 8919 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 8920 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 8921 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 8922 done 8923 test -z "$LD" && LD=$ac_prog 8924 ;; 8925 "") 8926 # If it fails, then pretend we aren't using GCC. 8927 ac_prog=ld 8928 ;; 8929 *) 8930 # If it is relative, then search for the first ld in PATH. 8931 with_gnu_ld=unknown 8932 ;; 8933 esac 8934elif test yes = "$with_gnu_ld"; then 8935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 8936printf %s "checking for GNU ld... " >&6; } 8937else 8938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 8939printf %s "checking for non-GNU ld... " >&6; } 8940fi 8941if test ${lt_cv_path_LD+y} 8942then : 8943 printf %s "(cached) " >&6 8944else $as_nop 8945 if test -z "$LD"; then 8946 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8947 for ac_dir in $PATH; do 8948 IFS=$lt_save_ifs 8949 test -z "$ac_dir" && ac_dir=. 8950 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 8951 lt_cv_path_LD=$ac_dir/$ac_prog 8952 # Check to see if the program is GNU ld. I'd rather use --version, 8953 # but apparently some variants of GNU ld only accept -v. 8954 # Break only if it was the GNU/non-GNU ld that we prefer. 8955 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 8956 *GNU* | *'with BFD'*) 8957 test no != "$with_gnu_ld" && break 8958 ;; 8959 *) 8960 test yes != "$with_gnu_ld" && break 8961 ;; 8962 esac 8963 fi 8964 done 8965 IFS=$lt_save_ifs 8966else 8967 lt_cv_path_LD=$LD # Let the user override the test with a path. 8968fi 8969fi 8970 8971LD=$lt_cv_path_LD 8972if test -n "$LD"; then 8973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 8974printf "%s\n" "$LD" >&6; } 8975else 8976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8977printf "%s\n" "no" >&6; } 8978fi 8979test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 8980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 8981printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 8982if test ${lt_cv_prog_gnu_ld+y} 8983then : 8984 printf %s "(cached) " >&6 8985else $as_nop 8986 # I'd rather use --version here, but apparently some GNU lds only accept -v. 8987case `$LD -v 2>&1 </dev/null` in 8988*GNU* | *'with BFD'*) 8989 lt_cv_prog_gnu_ld=yes 8990 ;; 8991*) 8992 lt_cv_prog_gnu_ld=no 8993 ;; 8994esac 8995fi 8996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 8997printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 8998with_gnu_ld=$lt_cv_prog_gnu_ld 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 9009printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 9010if test ${lt_cv_path_NM+y} 9011then : 9012 printf %s "(cached) " >&6 9013else $as_nop 9014 if test -n "$NM"; then 9015 # Let the user override the test. 9016 lt_cv_path_NM=$NM 9017else 9018 lt_nm_to_check=${ac_tool_prefix}nm 9019 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 9020 lt_nm_to_check="$lt_nm_to_check nm" 9021 fi 9022 for lt_tmp_nm in $lt_nm_to_check; do 9023 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9024 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 9025 IFS=$lt_save_ifs 9026 test -z "$ac_dir" && ac_dir=. 9027 tmp_nm=$ac_dir/$lt_tmp_nm 9028 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 9029 # Check to see if the nm accepts a BSD-compat flag. 9030 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 9031 # nm: unknown option "B" ignored 9032 # Tru64's nm complains that /dev/null is an invalid object file 9033 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 9034 case $build_os in 9035 mingw*) lt_bad_file=conftest.nm/nofile ;; 9036 *) lt_bad_file=/dev/null ;; 9037 esac 9038 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 9039 *$lt_bad_file* | *'Invalid file or object type'*) 9040 lt_cv_path_NM="$tmp_nm -B" 9041 break 2 9042 ;; 9043 *) 9044 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 9045 */dev/null*) 9046 lt_cv_path_NM="$tmp_nm -p" 9047 break 2 9048 ;; 9049 *) 9050 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 9051 continue # so that we can try to find one that supports BSD flags 9052 ;; 9053 esac 9054 ;; 9055 esac 9056 fi 9057 done 9058 IFS=$lt_save_ifs 9059 done 9060 : ${lt_cv_path_NM=no} 9061fi 9062fi 9063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 9064printf "%s\n" "$lt_cv_path_NM" >&6; } 9065if test no != "$lt_cv_path_NM"; then 9066 NM=$lt_cv_path_NM 9067else 9068 # Didn't find any BSD compatible name lister, look for dumpbin. 9069 if test -n "$DUMPBIN"; then : 9070 # Let the user override the test. 9071 else 9072 if test -n "$ac_tool_prefix"; then 9073 for ac_prog in dumpbin "link -dump" 9074 do 9075 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 9076set dummy $ac_tool_prefix$ac_prog; ac_word=$2 9077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9078printf %s "checking for $ac_word... " >&6; } 9079if test ${ac_cv_prog_DUMPBIN+y} 9080then : 9081 printf %s "(cached) " >&6 9082else $as_nop 9083 if test -n "$DUMPBIN"; then 9084 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 9085else 9086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9087for as_dir in $PATH 9088do 9089 IFS=$as_save_IFS 9090 case $as_dir in #((( 9091 '') as_dir=./ ;; 9092 */) ;; 9093 *) as_dir=$as_dir/ ;; 9094 esac 9095 for ac_exec_ext in '' $ac_executable_extensions; do 9096 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9097 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 9098 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9099 break 2 9100 fi 9101done 9102 done 9103IFS=$as_save_IFS 9104 9105fi 9106fi 9107DUMPBIN=$ac_cv_prog_DUMPBIN 9108if test -n "$DUMPBIN"; then 9109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 9110printf "%s\n" "$DUMPBIN" >&6; } 9111else 9112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9113printf "%s\n" "no" >&6; } 9114fi 9115 9116 9117 test -n "$DUMPBIN" && break 9118 done 9119fi 9120if test -z "$DUMPBIN"; then 9121 ac_ct_DUMPBIN=$DUMPBIN 9122 for ac_prog in dumpbin "link -dump" 9123do 9124 # Extract the first word of "$ac_prog", so it can be a program name with args. 9125set dummy $ac_prog; ac_word=$2 9126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9127printf %s "checking for $ac_word... " >&6; } 9128if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 9129then : 9130 printf %s "(cached) " >&6 9131else $as_nop 9132 if test -n "$ac_ct_DUMPBIN"; then 9133 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 9134else 9135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9136for as_dir in $PATH 9137do 9138 IFS=$as_save_IFS 9139 case $as_dir in #((( 9140 '') as_dir=./ ;; 9141 */) ;; 9142 *) as_dir=$as_dir/ ;; 9143 esac 9144 for ac_exec_ext in '' $ac_executable_extensions; do 9145 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9146 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 9147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9148 break 2 9149 fi 9150done 9151 done 9152IFS=$as_save_IFS 9153 9154fi 9155fi 9156ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 9157if test -n "$ac_ct_DUMPBIN"; then 9158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 9159printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 9160else 9161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9162printf "%s\n" "no" >&6; } 9163fi 9164 9165 9166 test -n "$ac_ct_DUMPBIN" && break 9167done 9168 9169 if test "x$ac_ct_DUMPBIN" = x; then 9170 DUMPBIN=":" 9171 else 9172 case $cross_compiling:$ac_tool_warned in 9173yes:) 9174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9175printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9176ac_tool_warned=yes ;; 9177esac 9178 DUMPBIN=$ac_ct_DUMPBIN 9179 fi 9180fi 9181 9182 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 9183 *COFF*) 9184 DUMPBIN="$DUMPBIN -symbols -headers" 9185 ;; 9186 *) 9187 DUMPBIN=: 9188 ;; 9189 esac 9190 fi 9191 9192 if test : != "$DUMPBIN"; then 9193 NM=$DUMPBIN 9194 fi 9195fi 9196test -z "$NM" && NM=nm 9197 9198 9199 9200 9201 9202 9203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 9204printf %s "checking the name lister ($NM) interface... " >&6; } 9205if test ${lt_cv_nm_interface+y} 9206then : 9207 printf %s "(cached) " >&6 9208else $as_nop 9209 lt_cv_nm_interface="BSD nm" 9210 echo "int some_variable = 0;" > conftest.$ac_ext 9211 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 9212 (eval "$ac_compile" 2>conftest.err) 9213 cat conftest.err >&5 9214 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 9215 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 9216 cat conftest.err >&5 9217 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 9218 cat conftest.out >&5 9219 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 9220 lt_cv_nm_interface="MS dumpbin" 9221 fi 9222 rm -f conftest* 9223fi 9224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 9225printf "%s\n" "$lt_cv_nm_interface" >&6; } 9226 9227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 9228printf %s "checking whether ln -s works... " >&6; } 9229LN_S=$as_ln_s 9230if test "$LN_S" = "ln -s"; then 9231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9232printf "%s\n" "yes" >&6; } 9233else 9234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 9235printf "%s\n" "no, using $LN_S" >&6; } 9236fi 9237 9238# find the maximum length of command line arguments 9239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 9240printf %s "checking the maximum length of command line arguments... " >&6; } 9241if test ${lt_cv_sys_max_cmd_len+y} 9242then : 9243 printf %s "(cached) " >&6 9244else $as_nop 9245 i=0 9246 teststring=ABCD 9247 9248 case $build_os in 9249 msdosdjgpp*) 9250 # On DJGPP, this test can blow up pretty badly due to problems in libc 9251 # (any single argument exceeding 2000 bytes causes a buffer overrun 9252 # during glob expansion). Even if it were fixed, the result of this 9253 # check would be larger than it should be. 9254 lt_cv_sys_max_cmd_len=12288; # 12K is about right 9255 ;; 9256 9257 gnu*) 9258 # Under GNU Hurd, this test is not required because there is 9259 # no limit to the length of command line arguments. 9260 # Libtool will interpret -1 as no limit whatsoever 9261 lt_cv_sys_max_cmd_len=-1; 9262 ;; 9263 9264 cygwin* | mingw* | cegcc*) 9265 # On Win9x/ME, this test blows up -- it succeeds, but takes 9266 # about 5 minutes as the teststring grows exponentially. 9267 # Worse, since 9x/ME are not pre-emptively multitasking, 9268 # you end up with a "frozen" computer, even though with patience 9269 # the test eventually succeeds (with a max line length of 256k). 9270 # Instead, let's just punt: use the minimum linelength reported by 9271 # all of the supported platforms: 8192 (on NT/2K/XP). 9272 lt_cv_sys_max_cmd_len=8192; 9273 ;; 9274 9275 mint*) 9276 # On MiNT this can take a long time and run out of memory. 9277 lt_cv_sys_max_cmd_len=8192; 9278 ;; 9279 9280 amigaos*) 9281 # On AmigaOS with pdksh, this test takes hours, literally. 9282 # So we just punt and use a minimum line length of 8192. 9283 lt_cv_sys_max_cmd_len=8192; 9284 ;; 9285 9286 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 9287 # This has been around since 386BSD, at least. Likely further. 9288 if test -x /sbin/sysctl; then 9289 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 9290 elif test -x /usr/sbin/sysctl; then 9291 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 9292 else 9293 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 9294 fi 9295 # And add a safety zone 9296 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 9297 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 9298 ;; 9299 9300 interix*) 9301 # We know the value 262144 and hardcode it with a safety zone (like BSD) 9302 lt_cv_sys_max_cmd_len=196608 9303 ;; 9304 9305 os2*) 9306 # The test takes a long time on OS/2. 9307 lt_cv_sys_max_cmd_len=8192 9308 ;; 9309 9310 osf*) 9311 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 9312 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 9313 # nice to cause kernel panics so lets avoid the loop below. 9314 # First set a reasonable default. 9315 lt_cv_sys_max_cmd_len=16384 9316 # 9317 if test -x /sbin/sysconfig; then 9318 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 9319 *1*) lt_cv_sys_max_cmd_len=-1 ;; 9320 esac 9321 fi 9322 ;; 9323 sco3.2v5*) 9324 lt_cv_sys_max_cmd_len=102400 9325 ;; 9326 sysv5* | sco5v6* | sysv4.2uw2*) 9327 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 9328 if test -n "$kargmax"; then 9329 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 9330 else 9331 lt_cv_sys_max_cmd_len=32768 9332 fi 9333 ;; 9334 *) 9335 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 9336 if test -n "$lt_cv_sys_max_cmd_len" && \ 9337 test undefined != "$lt_cv_sys_max_cmd_len"; then 9338 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 9339 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 9340 else 9341 # Make teststring a little bigger before we do anything with it. 9342 # a 1K string should be a reasonable start. 9343 for i in 1 2 3 4 5 6 7 8; do 9344 teststring=$teststring$teststring 9345 done 9346 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 9347 # If test is not a shell built-in, we'll probably end up computing a 9348 # maximum length that is only half of the actual maximum length, but 9349 # we can't tell. 9350 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 9351 = "X$teststring$teststring"; } >/dev/null 2>&1 && 9352 test 17 != "$i" # 1/2 MB should be enough 9353 do 9354 i=`expr $i + 1` 9355 teststring=$teststring$teststring 9356 done 9357 # Only check the string length outside the loop. 9358 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 9359 teststring= 9360 # Add a significant safety factor because C++ compilers can tack on 9361 # massive amounts of additional arguments before passing them to the 9362 # linker. It appears as though 1/2 is a usable value. 9363 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 9364 fi 9365 ;; 9366 esac 9367 9368fi 9369 9370if test -n "$lt_cv_sys_max_cmd_len"; then 9371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 9372printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 9373else 9374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 9375printf "%s\n" "none" >&6; } 9376fi 9377max_cmd_len=$lt_cv_sys_max_cmd_len 9378 9379 9380 9381 9382 9383 9384: ${CP="cp -f"} 9385: ${MV="mv -f"} 9386: ${RM="rm -f"} 9387 9388if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 9389 lt_unset=unset 9390else 9391 lt_unset=false 9392fi 9393 9394 9395 9396 9397 9398# test EBCDIC or ASCII 9399case `echo X|tr X '\101'` in 9400 A) # ASCII based system 9401 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 9402 lt_SP2NL='tr \040 \012' 9403 lt_NL2SP='tr \015\012 \040\040' 9404 ;; 9405 *) # EBCDIC based system 9406 lt_SP2NL='tr \100 \n' 9407 lt_NL2SP='tr \r\n \100\100' 9408 ;; 9409esac 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 9420printf %s "checking how to convert $build file names to $host format... " >&6; } 9421if test ${lt_cv_to_host_file_cmd+y} 9422then : 9423 printf %s "(cached) " >&6 9424else $as_nop 9425 case $host in 9426 *-*-mingw* ) 9427 case $build in 9428 *-*-mingw* ) # actually msys 9429 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 9430 ;; 9431 *-*-cygwin* ) 9432 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 9433 ;; 9434 * ) # otherwise, assume *nix 9435 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 9436 ;; 9437 esac 9438 ;; 9439 *-*-cygwin* ) 9440 case $build in 9441 *-*-mingw* ) # actually msys 9442 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 9443 ;; 9444 *-*-cygwin* ) 9445 lt_cv_to_host_file_cmd=func_convert_file_noop 9446 ;; 9447 * ) # otherwise, assume *nix 9448 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 9449 ;; 9450 esac 9451 ;; 9452 * ) # unhandled hosts (and "normal" native builds) 9453 lt_cv_to_host_file_cmd=func_convert_file_noop 9454 ;; 9455esac 9456 9457fi 9458 9459to_host_file_cmd=$lt_cv_to_host_file_cmd 9460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 9461printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 9462 9463 9464 9465 9466 9467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 9468printf %s "checking how to convert $build file names to toolchain format... " >&6; } 9469if test ${lt_cv_to_tool_file_cmd+y} 9470then : 9471 printf %s "(cached) " >&6 9472else $as_nop 9473 #assume ordinary cross tools, or native build. 9474lt_cv_to_tool_file_cmd=func_convert_file_noop 9475case $host in 9476 *-*-mingw* ) 9477 case $build in 9478 *-*-mingw* ) # actually msys 9479 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 9480 ;; 9481 esac 9482 ;; 9483esac 9484 9485fi 9486 9487to_tool_file_cmd=$lt_cv_to_tool_file_cmd 9488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 9489printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 9490 9491 9492 9493 9494 9495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 9496printf %s "checking for $LD option to reload object files... " >&6; } 9497if test ${lt_cv_ld_reload_flag+y} 9498then : 9499 printf %s "(cached) " >&6 9500else $as_nop 9501 lt_cv_ld_reload_flag='-r' 9502fi 9503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 9504printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 9505reload_flag=$lt_cv_ld_reload_flag 9506case $reload_flag in 9507"" | " "*) ;; 9508*) reload_flag=" $reload_flag" ;; 9509esac 9510reload_cmds='$LD$reload_flag -o $output$reload_objs' 9511case $host_os in 9512 cygwin* | mingw* | pw32* | cegcc*) 9513 if test yes != "$GCC"; then 9514 reload_cmds=false 9515 fi 9516 ;; 9517 darwin*) 9518 if test yes = "$GCC"; then 9519 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 9520 else 9521 reload_cmds='$LD$reload_flag -o $output$reload_objs' 9522 fi 9523 ;; 9524esac 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534if test -n "$ac_tool_prefix"; then 9535 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 9536set dummy ${ac_tool_prefix}file; ac_word=$2 9537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9538printf %s "checking for $ac_word... " >&6; } 9539if test ${ac_cv_prog_FILECMD+y} 9540then : 9541 printf %s "(cached) " >&6 9542else $as_nop 9543 if test -n "$FILECMD"; then 9544 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 9545else 9546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9547for as_dir in $PATH 9548do 9549 IFS=$as_save_IFS 9550 case $as_dir in #((( 9551 '') as_dir=./ ;; 9552 */) ;; 9553 *) as_dir=$as_dir/ ;; 9554 esac 9555 for ac_exec_ext in '' $ac_executable_extensions; do 9556 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9557 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 9558 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9559 break 2 9560 fi 9561done 9562 done 9563IFS=$as_save_IFS 9564 9565fi 9566fi 9567FILECMD=$ac_cv_prog_FILECMD 9568if test -n "$FILECMD"; then 9569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 9570printf "%s\n" "$FILECMD" >&6; } 9571else 9572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9573printf "%s\n" "no" >&6; } 9574fi 9575 9576 9577fi 9578if test -z "$ac_cv_prog_FILECMD"; then 9579 ac_ct_FILECMD=$FILECMD 9580 # Extract the first word of "file", so it can be a program name with args. 9581set dummy file; ac_word=$2 9582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9583printf %s "checking for $ac_word... " >&6; } 9584if test ${ac_cv_prog_ac_ct_FILECMD+y} 9585then : 9586 printf %s "(cached) " >&6 9587else $as_nop 9588 if test -n "$ac_ct_FILECMD"; then 9589 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 9590else 9591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9592for as_dir in $PATH 9593do 9594 IFS=$as_save_IFS 9595 case $as_dir in #((( 9596 '') as_dir=./ ;; 9597 */) ;; 9598 *) as_dir=$as_dir/ ;; 9599 esac 9600 for ac_exec_ext in '' $ac_executable_extensions; do 9601 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9602 ac_cv_prog_ac_ct_FILECMD="file" 9603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9604 break 2 9605 fi 9606done 9607 done 9608IFS=$as_save_IFS 9609 9610fi 9611fi 9612ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 9613if test -n "$ac_ct_FILECMD"; then 9614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 9615printf "%s\n" "$ac_ct_FILECMD" >&6; } 9616else 9617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9618printf "%s\n" "no" >&6; } 9619fi 9620 9621 if test "x$ac_ct_FILECMD" = x; then 9622 FILECMD=":" 9623 else 9624 case $cross_compiling:$ac_tool_warned in 9625yes:) 9626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9627printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9628ac_tool_warned=yes ;; 9629esac 9630 FILECMD=$ac_ct_FILECMD 9631 fi 9632else 9633 FILECMD="$ac_cv_prog_FILECMD" 9634fi 9635 9636 9637 9638 9639 9640 9641 9642if test -n "$ac_tool_prefix"; then 9643 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 9644set dummy ${ac_tool_prefix}objdump; ac_word=$2 9645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9646printf %s "checking for $ac_word... " >&6; } 9647if test ${ac_cv_prog_OBJDUMP+y} 9648then : 9649 printf %s "(cached) " >&6 9650else $as_nop 9651 if test -n "$OBJDUMP"; then 9652 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 9653else 9654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9655for as_dir in $PATH 9656do 9657 IFS=$as_save_IFS 9658 case $as_dir in #((( 9659 '') as_dir=./ ;; 9660 */) ;; 9661 *) as_dir=$as_dir/ ;; 9662 esac 9663 for ac_exec_ext in '' $ac_executable_extensions; do 9664 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9665 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 9666 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9667 break 2 9668 fi 9669done 9670 done 9671IFS=$as_save_IFS 9672 9673fi 9674fi 9675OBJDUMP=$ac_cv_prog_OBJDUMP 9676if test -n "$OBJDUMP"; then 9677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 9678printf "%s\n" "$OBJDUMP" >&6; } 9679else 9680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9681printf "%s\n" "no" >&6; } 9682fi 9683 9684 9685fi 9686if test -z "$ac_cv_prog_OBJDUMP"; then 9687 ac_ct_OBJDUMP=$OBJDUMP 9688 # Extract the first word of "objdump", so it can be a program name with args. 9689set dummy objdump; ac_word=$2 9690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9691printf %s "checking for $ac_word... " >&6; } 9692if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 9693then : 9694 printf %s "(cached) " >&6 9695else $as_nop 9696 if test -n "$ac_ct_OBJDUMP"; then 9697 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 9698else 9699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9700for as_dir in $PATH 9701do 9702 IFS=$as_save_IFS 9703 case $as_dir in #((( 9704 '') as_dir=./ ;; 9705 */) ;; 9706 *) as_dir=$as_dir/ ;; 9707 esac 9708 for ac_exec_ext in '' $ac_executable_extensions; do 9709 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9710 ac_cv_prog_ac_ct_OBJDUMP="objdump" 9711 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9712 break 2 9713 fi 9714done 9715 done 9716IFS=$as_save_IFS 9717 9718fi 9719fi 9720ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 9721if test -n "$ac_ct_OBJDUMP"; then 9722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 9723printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 9724else 9725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9726printf "%s\n" "no" >&6; } 9727fi 9728 9729 if test "x$ac_ct_OBJDUMP" = x; then 9730 OBJDUMP="false" 9731 else 9732 case $cross_compiling:$ac_tool_warned in 9733yes:) 9734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9735printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9736ac_tool_warned=yes ;; 9737esac 9738 OBJDUMP=$ac_ct_OBJDUMP 9739 fi 9740else 9741 OBJDUMP="$ac_cv_prog_OBJDUMP" 9742fi 9743 9744test -z "$OBJDUMP" && OBJDUMP=objdump 9745 9746 9747 9748 9749 9750 9751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 9752printf %s "checking how to recognize dependent libraries... " >&6; } 9753if test ${lt_cv_deplibs_check_method+y} 9754then : 9755 printf %s "(cached) " >&6 9756else $as_nop 9757 lt_cv_file_magic_cmd='$MAGIC_CMD' 9758lt_cv_file_magic_test_file= 9759lt_cv_deplibs_check_method='unknown' 9760# Need to set the preceding variable on all platforms that support 9761# interlibrary dependencies. 9762# 'none' -- dependencies not supported. 9763# 'unknown' -- same as none, but documents that we really don't know. 9764# 'pass_all' -- all dependencies passed with no checks. 9765# 'test_compile' -- check by making test program. 9766# 'file_magic [[regex]]' -- check by looking for files in library path 9767# that responds to the $file_magic_cmd with a given extended regex. 9768# If you have 'file' or equivalent on your system and you're not sure 9769# whether 'pass_all' will *always* work, you probably want this one. 9770 9771case $host_os in 9772aix[4-9]*) 9773 lt_cv_deplibs_check_method=pass_all 9774 ;; 9775 9776beos*) 9777 lt_cv_deplibs_check_method=pass_all 9778 ;; 9779 9780bsdi[45]*) 9781 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 9782 lt_cv_file_magic_cmd='$FILECMD -L' 9783 lt_cv_file_magic_test_file=/shlib/libc.so 9784 ;; 9785 9786cygwin*) 9787 # func_win32_libid is a shell function defined in ltmain.sh 9788 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 9789 lt_cv_file_magic_cmd='func_win32_libid' 9790 ;; 9791 9792mingw* | pw32*) 9793 # Base MSYS/MinGW do not provide the 'file' command needed by 9794 # func_win32_libid shell function, so use a weaker test based on 'objdump', 9795 # unless we find 'file', for example because we are cross-compiling. 9796 if ( file / ) >/dev/null 2>&1; then 9797 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 9798 lt_cv_file_magic_cmd='func_win32_libid' 9799 else 9800 # Keep this pattern in sync with the one in func_win32_libid. 9801 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 9802 lt_cv_file_magic_cmd='$OBJDUMP -f' 9803 fi 9804 ;; 9805 9806cegcc*) 9807 # use the weaker test based on 'objdump'. See mingw*. 9808 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 9809 lt_cv_file_magic_cmd='$OBJDUMP -f' 9810 ;; 9811 9812darwin* | rhapsody*) 9813 lt_cv_deplibs_check_method=pass_all 9814 ;; 9815 9816freebsd* | dragonfly* | midnightbsd*) 9817 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 9818 case $host_cpu in 9819 i*86 ) 9820 # Not sure whether the presence of OpenBSD here was a mistake. 9821 # Let's accept both of them until this is cleared up. 9822 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 9823 lt_cv_file_magic_cmd=$FILECMD 9824 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 9825 ;; 9826 esac 9827 else 9828 lt_cv_deplibs_check_method=pass_all 9829 fi 9830 ;; 9831 9832haiku*) 9833 lt_cv_deplibs_check_method=pass_all 9834 ;; 9835 9836hpux10.20* | hpux11*) 9837 lt_cv_file_magic_cmd=$FILECMD 9838 case $host_cpu in 9839 ia64*) 9840 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 9841 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 9842 ;; 9843 hppa*64*) 9844 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]' 9845 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 9846 ;; 9847 *) 9848 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 9849 lt_cv_file_magic_test_file=/usr/lib/libc.sl 9850 ;; 9851 esac 9852 ;; 9853 9854interix[3-9]*) 9855 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 9856 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 9857 ;; 9858 9859irix5* | irix6* | nonstopux*) 9860 case $LD in 9861 *-32|*"-32 ") libmagic=32-bit;; 9862 *-n32|*"-n32 ") libmagic=N32;; 9863 *-64|*"-64 ") libmagic=64-bit;; 9864 *) libmagic=never-match;; 9865 esac 9866 lt_cv_deplibs_check_method=pass_all 9867 ;; 9868 9869# This must be glibc/ELF. 9870linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9871 lt_cv_deplibs_check_method=pass_all 9872 ;; 9873 9874netbsd* | netbsdelf*-gnu) 9875 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 9876 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 9877 else 9878 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 9879 fi 9880 ;; 9881 9882newos6*) 9883 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 9884 lt_cv_file_magic_cmd=$FILECMD 9885 lt_cv_file_magic_test_file=/usr/lib/libnls.so 9886 ;; 9887 9888*nto* | *qnx*) 9889 lt_cv_deplibs_check_method=pass_all 9890 ;; 9891 9892openbsd* | bitrig*) 9893 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 9894 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 9895 else 9896 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 9897 fi 9898 ;; 9899 9900osf3* | osf4* | osf5*) 9901 lt_cv_deplibs_check_method=pass_all 9902 ;; 9903 9904rdos*) 9905 lt_cv_deplibs_check_method=pass_all 9906 ;; 9907 9908solaris*) 9909 lt_cv_deplibs_check_method=pass_all 9910 ;; 9911 9912sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9913 lt_cv_deplibs_check_method=pass_all 9914 ;; 9915 9916sysv4 | sysv4.3*) 9917 case $host_vendor in 9918 motorola) 9919 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]' 9920 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 9921 ;; 9922 ncr) 9923 lt_cv_deplibs_check_method=pass_all 9924 ;; 9925 sequent) 9926 lt_cv_file_magic_cmd='/bin/file' 9927 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 9928 ;; 9929 sni) 9930 lt_cv_file_magic_cmd='/bin/file' 9931 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 9932 lt_cv_file_magic_test_file=/lib/libc.so 9933 ;; 9934 siemens) 9935 lt_cv_deplibs_check_method=pass_all 9936 ;; 9937 pc) 9938 lt_cv_deplibs_check_method=pass_all 9939 ;; 9940 esac 9941 ;; 9942 9943tpf*) 9944 lt_cv_deplibs_check_method=pass_all 9945 ;; 9946os2*) 9947 lt_cv_deplibs_check_method=pass_all 9948 ;; 9949esac 9950 9951fi 9952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 9953printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 9954 9955file_magic_glob= 9956want_nocaseglob=no 9957if test "$build" = "$host"; then 9958 case $host_os in 9959 mingw* | pw32*) 9960 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 9961 want_nocaseglob=yes 9962 else 9963 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 9964 fi 9965 ;; 9966 esac 9967fi 9968 9969file_magic_cmd=$lt_cv_file_magic_cmd 9970deplibs_check_method=$lt_cv_deplibs_check_method 9971test -z "$deplibs_check_method" && deplibs_check_method=unknown 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994if test -n "$ac_tool_prefix"; then 9995 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 9996set dummy ${ac_tool_prefix}dlltool; ac_word=$2 9997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9998printf %s "checking for $ac_word... " >&6; } 9999if test ${ac_cv_prog_DLLTOOL+y} 10000then : 10001 printf %s "(cached) " >&6 10002else $as_nop 10003 if test -n "$DLLTOOL"; then 10004 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 10005else 10006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10007for as_dir in $PATH 10008do 10009 IFS=$as_save_IFS 10010 case $as_dir in #((( 10011 '') as_dir=./ ;; 10012 */) ;; 10013 *) as_dir=$as_dir/ ;; 10014 esac 10015 for ac_exec_ext in '' $ac_executable_extensions; do 10016 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10017 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 10018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10019 break 2 10020 fi 10021done 10022 done 10023IFS=$as_save_IFS 10024 10025fi 10026fi 10027DLLTOOL=$ac_cv_prog_DLLTOOL 10028if test -n "$DLLTOOL"; then 10029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 10030printf "%s\n" "$DLLTOOL" >&6; } 10031else 10032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10033printf "%s\n" "no" >&6; } 10034fi 10035 10036 10037fi 10038if test -z "$ac_cv_prog_DLLTOOL"; then 10039 ac_ct_DLLTOOL=$DLLTOOL 10040 # Extract the first word of "dlltool", so it can be a program name with args. 10041set dummy dlltool; ac_word=$2 10042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10043printf %s "checking for $ac_word... " >&6; } 10044if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 10045then : 10046 printf %s "(cached) " >&6 10047else $as_nop 10048 if test -n "$ac_ct_DLLTOOL"; then 10049 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 10050else 10051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10052for as_dir in $PATH 10053do 10054 IFS=$as_save_IFS 10055 case $as_dir in #((( 10056 '') as_dir=./ ;; 10057 */) ;; 10058 *) as_dir=$as_dir/ ;; 10059 esac 10060 for ac_exec_ext in '' $ac_executable_extensions; do 10061 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10062 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 10063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10064 break 2 10065 fi 10066done 10067 done 10068IFS=$as_save_IFS 10069 10070fi 10071fi 10072ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 10073if test -n "$ac_ct_DLLTOOL"; then 10074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 10075printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 10076else 10077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10078printf "%s\n" "no" >&6; } 10079fi 10080 10081 if test "x$ac_ct_DLLTOOL" = x; then 10082 DLLTOOL="false" 10083 else 10084 case $cross_compiling:$ac_tool_warned in 10085yes:) 10086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10087printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10088ac_tool_warned=yes ;; 10089esac 10090 DLLTOOL=$ac_ct_DLLTOOL 10091 fi 10092else 10093 DLLTOOL="$ac_cv_prog_DLLTOOL" 10094fi 10095 10096test -z "$DLLTOOL" && DLLTOOL=dlltool 10097 10098 10099 10100 10101 10102 10103 10104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 10105printf %s "checking how to associate runtime and link libraries... " >&6; } 10106if test ${lt_cv_sharedlib_from_linklib_cmd+y} 10107then : 10108 printf %s "(cached) " >&6 10109else $as_nop 10110 lt_cv_sharedlib_from_linklib_cmd='unknown' 10111 10112case $host_os in 10113cygwin* | mingw* | pw32* | cegcc*) 10114 # two different shell functions defined in ltmain.sh; 10115 # decide which one to use based on capabilities of $DLLTOOL 10116 case `$DLLTOOL --help 2>&1` in 10117 *--identify-strict*) 10118 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 10119 ;; 10120 *) 10121 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 10122 ;; 10123 esac 10124 ;; 10125*) 10126 # fallback: assume linklib IS sharedlib 10127 lt_cv_sharedlib_from_linklib_cmd=$ECHO 10128 ;; 10129esac 10130 10131fi 10132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 10133printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 10134sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 10135test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 10136 10137 10138 10139 10140 10141 10142 10143if test -n "$ac_tool_prefix"; then 10144 for ac_prog in ar 10145 do 10146 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 10147set dummy $ac_tool_prefix$ac_prog; ac_word=$2 10148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10149printf %s "checking for $ac_word... " >&6; } 10150if test ${ac_cv_prog_AR+y} 10151then : 10152 printf %s "(cached) " >&6 10153else $as_nop 10154 if test -n "$AR"; then 10155 ac_cv_prog_AR="$AR" # Let the user override the test. 10156else 10157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10158for as_dir in $PATH 10159do 10160 IFS=$as_save_IFS 10161 case $as_dir in #((( 10162 '') as_dir=./ ;; 10163 */) ;; 10164 *) as_dir=$as_dir/ ;; 10165 esac 10166 for ac_exec_ext in '' $ac_executable_extensions; do 10167 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10168 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 10169 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10170 break 2 10171 fi 10172done 10173 done 10174IFS=$as_save_IFS 10175 10176fi 10177fi 10178AR=$ac_cv_prog_AR 10179if test -n "$AR"; then 10180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 10181printf "%s\n" "$AR" >&6; } 10182else 10183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10184printf "%s\n" "no" >&6; } 10185fi 10186 10187 10188 test -n "$AR" && break 10189 done 10190fi 10191if test -z "$AR"; then 10192 ac_ct_AR=$AR 10193 for ac_prog in ar 10194do 10195 # Extract the first word of "$ac_prog", so it can be a program name with args. 10196set dummy $ac_prog; ac_word=$2 10197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10198printf %s "checking for $ac_word... " >&6; } 10199if test ${ac_cv_prog_ac_ct_AR+y} 10200then : 10201 printf %s "(cached) " >&6 10202else $as_nop 10203 if test -n "$ac_ct_AR"; then 10204 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 10205else 10206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10207for as_dir in $PATH 10208do 10209 IFS=$as_save_IFS 10210 case $as_dir in #((( 10211 '') as_dir=./ ;; 10212 */) ;; 10213 *) as_dir=$as_dir/ ;; 10214 esac 10215 for ac_exec_ext in '' $ac_executable_extensions; do 10216 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10217 ac_cv_prog_ac_ct_AR="$ac_prog" 10218 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10219 break 2 10220 fi 10221done 10222 done 10223IFS=$as_save_IFS 10224 10225fi 10226fi 10227ac_ct_AR=$ac_cv_prog_ac_ct_AR 10228if test -n "$ac_ct_AR"; then 10229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 10230printf "%s\n" "$ac_ct_AR" >&6; } 10231else 10232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10233printf "%s\n" "no" >&6; } 10234fi 10235 10236 10237 test -n "$ac_ct_AR" && break 10238done 10239 10240 if test "x$ac_ct_AR" = x; then 10241 AR="false" 10242 else 10243 case $cross_compiling:$ac_tool_warned in 10244yes:) 10245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10246printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10247ac_tool_warned=yes ;; 10248esac 10249 AR=$ac_ct_AR 10250 fi 10251fi 10252 10253: ${AR=ar} 10254 10255 10256 10257 10258 10259 10260# Use ARFLAGS variable as AR's operation code to sync the variable naming with 10261# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 10262# higher priority because thats what people were doing historically (setting 10263# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 10264# variable obsoleted/removed. 10265 10266test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 10267lt_ar_flags=$AR_FLAGS 10268 10269 10270 10271 10272 10273 10274# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 10275# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 10276 10277 10278 10279 10280 10281 10282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 10283printf %s "checking for archiver @FILE support... " >&6; } 10284if test ${lt_cv_ar_at_file+y} 10285then : 10286 printf %s "(cached) " >&6 10287else $as_nop 10288 lt_cv_ar_at_file=no 10289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10290/* end confdefs.h. */ 10291 10292int main(void) 10293{ 10294 10295 ; 10296 return 0; 10297} 10298_ACEOF 10299if ac_fn_c_try_compile "$LINENO" 10300then : 10301 echo conftest.$ac_objext > conftest.lst 10302 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 10303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 10304 (eval $lt_ar_try) 2>&5 10305 ac_status=$? 10306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10307 test $ac_status = 0; } 10308 if test 0 -eq "$ac_status"; then 10309 # Ensure the archiver fails upon bogus file names. 10310 rm -f conftest.$ac_objext libconftest.a 10311 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 10312 (eval $lt_ar_try) 2>&5 10313 ac_status=$? 10314 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10315 test $ac_status = 0; } 10316 if test 0 -ne "$ac_status"; then 10317 lt_cv_ar_at_file=@ 10318 fi 10319 fi 10320 rm -f conftest.* libconftest.a 10321 10322fi 10323rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10324 10325fi 10326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 10327printf "%s\n" "$lt_cv_ar_at_file" >&6; } 10328 10329if test no = "$lt_cv_ar_at_file"; then 10330 archiver_list_spec= 10331else 10332 archiver_list_spec=$lt_cv_ar_at_file 10333fi 10334 10335 10336 10337 10338 10339 10340 10341if test -n "$ac_tool_prefix"; then 10342 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 10343set dummy ${ac_tool_prefix}strip; ac_word=$2 10344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10345printf %s "checking for $ac_word... " >&6; } 10346if test ${ac_cv_prog_STRIP+y} 10347then : 10348 printf %s "(cached) " >&6 10349else $as_nop 10350 if test -n "$STRIP"; then 10351 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 10352else 10353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10354for as_dir in $PATH 10355do 10356 IFS=$as_save_IFS 10357 case $as_dir in #((( 10358 '') as_dir=./ ;; 10359 */) ;; 10360 *) as_dir=$as_dir/ ;; 10361 esac 10362 for ac_exec_ext in '' $ac_executable_extensions; do 10363 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10364 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 10365 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10366 break 2 10367 fi 10368done 10369 done 10370IFS=$as_save_IFS 10371 10372fi 10373fi 10374STRIP=$ac_cv_prog_STRIP 10375if test -n "$STRIP"; then 10376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 10377printf "%s\n" "$STRIP" >&6; } 10378else 10379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10380printf "%s\n" "no" >&6; } 10381fi 10382 10383 10384fi 10385if test -z "$ac_cv_prog_STRIP"; then 10386 ac_ct_STRIP=$STRIP 10387 # Extract the first word of "strip", so it can be a program name with args. 10388set dummy strip; ac_word=$2 10389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10390printf %s "checking for $ac_word... " >&6; } 10391if test ${ac_cv_prog_ac_ct_STRIP+y} 10392then : 10393 printf %s "(cached) " >&6 10394else $as_nop 10395 if test -n "$ac_ct_STRIP"; then 10396 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 10397else 10398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10399for as_dir in $PATH 10400do 10401 IFS=$as_save_IFS 10402 case $as_dir in #((( 10403 '') as_dir=./ ;; 10404 */) ;; 10405 *) as_dir=$as_dir/ ;; 10406 esac 10407 for ac_exec_ext in '' $ac_executable_extensions; do 10408 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10409 ac_cv_prog_ac_ct_STRIP="strip" 10410 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10411 break 2 10412 fi 10413done 10414 done 10415IFS=$as_save_IFS 10416 10417fi 10418fi 10419ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 10420if test -n "$ac_ct_STRIP"; then 10421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 10422printf "%s\n" "$ac_ct_STRIP" >&6; } 10423else 10424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10425printf "%s\n" "no" >&6; } 10426fi 10427 10428 if test "x$ac_ct_STRIP" = x; then 10429 STRIP=":" 10430 else 10431 case $cross_compiling:$ac_tool_warned in 10432yes:) 10433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10434printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10435ac_tool_warned=yes ;; 10436esac 10437 STRIP=$ac_ct_STRIP 10438 fi 10439else 10440 STRIP="$ac_cv_prog_STRIP" 10441fi 10442 10443test -z "$STRIP" && STRIP=: 10444 10445 10446 10447 10448 10449 10450if test -n "$ac_tool_prefix"; then 10451 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 10452set dummy ${ac_tool_prefix}ranlib; ac_word=$2 10453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10454printf %s "checking for $ac_word... " >&6; } 10455if test ${ac_cv_prog_RANLIB+y} 10456then : 10457 printf %s "(cached) " >&6 10458else $as_nop 10459 if test -n "$RANLIB"; then 10460 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 10461else 10462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10463for as_dir in $PATH 10464do 10465 IFS=$as_save_IFS 10466 case $as_dir in #((( 10467 '') as_dir=./ ;; 10468 */) ;; 10469 *) as_dir=$as_dir/ ;; 10470 esac 10471 for ac_exec_ext in '' $ac_executable_extensions; do 10472 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10473 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 10474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10475 break 2 10476 fi 10477done 10478 done 10479IFS=$as_save_IFS 10480 10481fi 10482fi 10483RANLIB=$ac_cv_prog_RANLIB 10484if test -n "$RANLIB"; then 10485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 10486printf "%s\n" "$RANLIB" >&6; } 10487else 10488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10489printf "%s\n" "no" >&6; } 10490fi 10491 10492 10493fi 10494if test -z "$ac_cv_prog_RANLIB"; then 10495 ac_ct_RANLIB=$RANLIB 10496 # Extract the first word of "ranlib", so it can be a program name with args. 10497set dummy ranlib; ac_word=$2 10498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10499printf %s "checking for $ac_word... " >&6; } 10500if test ${ac_cv_prog_ac_ct_RANLIB+y} 10501then : 10502 printf %s "(cached) " >&6 10503else $as_nop 10504 if test -n "$ac_ct_RANLIB"; then 10505 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 10506else 10507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10508for as_dir in $PATH 10509do 10510 IFS=$as_save_IFS 10511 case $as_dir in #((( 10512 '') as_dir=./ ;; 10513 */) ;; 10514 *) as_dir=$as_dir/ ;; 10515 esac 10516 for ac_exec_ext in '' $ac_executable_extensions; do 10517 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10518 ac_cv_prog_ac_ct_RANLIB="ranlib" 10519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10520 break 2 10521 fi 10522done 10523 done 10524IFS=$as_save_IFS 10525 10526fi 10527fi 10528ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 10529if test -n "$ac_ct_RANLIB"; then 10530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 10531printf "%s\n" "$ac_ct_RANLIB" >&6; } 10532else 10533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10534printf "%s\n" "no" >&6; } 10535fi 10536 10537 if test "x$ac_ct_RANLIB" = x; then 10538 RANLIB=":" 10539 else 10540 case $cross_compiling:$ac_tool_warned in 10541yes:) 10542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10543printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10544ac_tool_warned=yes ;; 10545esac 10546 RANLIB=$ac_ct_RANLIB 10547 fi 10548else 10549 RANLIB="$ac_cv_prog_RANLIB" 10550fi 10551 10552test -z "$RANLIB" && RANLIB=: 10553 10554 10555 10556 10557 10558 10559# Determine commands to create old-style static archives. 10560old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 10561old_postinstall_cmds='chmod 644 $oldlib' 10562old_postuninstall_cmds= 10563 10564if test -n "$RANLIB"; then 10565 case $host_os in 10566 bitrig* | openbsd*) 10567 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 10568 ;; 10569 *) 10570 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 10571 ;; 10572 esac 10573 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 10574fi 10575 10576case $host_os in 10577 darwin*) 10578 lock_old_archive_extraction=yes ;; 10579 *) 10580 lock_old_archive_extraction=no ;; 10581esac 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621# If no C compiler was specified, use CC. 10622LTCC=${LTCC-"$CC"} 10623 10624# If no C compiler flags were specified, use CFLAGS. 10625LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10626 10627# Allow CC to be a program name with arguments. 10628compiler=$CC 10629 10630 10631# Check for command to grab the raw symbol name followed by C symbol from nm. 10632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 10633printf %s "checking command to parse $NM output from $compiler object... " >&6; } 10634if test ${lt_cv_sys_global_symbol_pipe+y} 10635then : 10636 printf %s "(cached) " >&6 10637else $as_nop 10638 10639# These are sane defaults that work on at least a few old systems. 10640# [They come from Ultrix. What could be older than Ultrix?!! ;)] 10641 10642# Character class describing NM global symbol codes. 10643symcode='[BCDEGRST]' 10644 10645# Regexp to match symbols that can be accessed directly from C. 10646sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 10647 10648# Define system-specific variables. 10649case $host_os in 10650aix*) 10651 symcode='[BCDT]' 10652 ;; 10653cygwin* | mingw* | pw32* | cegcc*) 10654 symcode='[ABCDGISTW]' 10655 ;; 10656hpux*) 10657 if test ia64 = "$host_cpu"; then 10658 symcode='[ABCDEGRST]' 10659 fi 10660 ;; 10661irix* | nonstopux*) 10662 symcode='[BCDEGRST]' 10663 ;; 10664osf*) 10665 symcode='[BCDEGQRST]' 10666 ;; 10667solaris*) 10668 symcode='[BDRT]' 10669 ;; 10670sco3.2v5*) 10671 symcode='[DT]' 10672 ;; 10673sysv4.2uw2*) 10674 symcode='[DT]' 10675 ;; 10676sysv5* | sco5v6* | unixware* | OpenUNIX*) 10677 symcode='[ABDT]' 10678 ;; 10679sysv4) 10680 symcode='[DFNSTU]' 10681 ;; 10682esac 10683 10684# If we're using GNU nm, then use its standard symbol codes. 10685case `$NM -V 2>&1` in 10686*GNU* | *'with BFD'*) 10687 symcode='[ABCDGIRSTW]' ;; 10688esac 10689 10690if test "$lt_cv_nm_interface" = "MS dumpbin"; then 10691 # Gets list of data symbols to import. 10692 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 10693 # Adjust the below global symbol transforms to fixup imported variables. 10694 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 10695 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 10696 lt_c_name_lib_hook="\ 10697 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 10698 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 10699else 10700 # Disable hooks by default. 10701 lt_cv_sys_global_symbol_to_import= 10702 lt_cdecl_hook= 10703 lt_c_name_hook= 10704 lt_c_name_lib_hook= 10705fi 10706 10707# Transform an extracted symbol line into a proper C declaration. 10708# Some systems (esp. on ia64) link data and code symbols differently, 10709# so use this general approach. 10710lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 10711$lt_cdecl_hook\ 10712" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 10713" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 10714 10715# Transform an extracted symbol line into symbol name and symbol address 10716lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 10717$lt_c_name_hook\ 10718" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 10719" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 10720 10721# Transform an extracted symbol line into symbol name with lib prefix and 10722# symbol address. 10723lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 10724$lt_c_name_lib_hook\ 10725" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 10726" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 10727" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 10728 10729# Handle CRLF in mingw tool chain 10730opt_cr= 10731case $build_os in 10732mingw*) 10733 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 10734 ;; 10735esac 10736 10737# Try without a prefix underscore, then with it. 10738for ac_symprfx in "" "_"; do 10739 10740 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 10741 symxfrm="\\1 $ac_symprfx\\2 \\2" 10742 10743 # Write the raw and C identifiers. 10744 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 10745 # Fake it for dumpbin and say T for any non-static function, 10746 # D for any global variable and I for any imported variable. 10747 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 10748 # which start with @ or ?. 10749 lt_cv_sys_global_symbol_pipe="$AWK '"\ 10750" {last_section=section; section=\$ 3};"\ 10751" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 10752" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 10753" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 10754" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 10755" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 10756" \$ 0!~/External *\|/{next};"\ 10757" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 10758" {if(hide[section]) next};"\ 10759" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 10760" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 10761" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 10762" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 10763" ' prfx=^$ac_symprfx" 10764 else 10765 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 10766 fi 10767 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 10768 10769 # Check to see that the pipe works correctly. 10770 pipe_works=no 10771 10772 rm -f conftest* 10773 cat > conftest.$ac_ext <<_LT_EOF 10774#ifdef __cplusplus 10775extern "C" { 10776#endif 10777char nm_test_var; 10778void nm_test_func(void); 10779void nm_test_func(void){} 10780#ifdef __cplusplus 10781} 10782#endif 10783int main(){nm_test_var='a';nm_test_func();return(0);} 10784_LT_EOF 10785 10786 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10787 (eval $ac_compile) 2>&5 10788 ac_status=$? 10789 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10790 test $ac_status = 0; }; then 10791 # Now try to grab the symbols. 10792 nlist=conftest.nm 10793 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 10794 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 10795 # Try sorting and uniquifying the output. 10796 if sort "$nlist" | uniq > "$nlist"T; then 10797 mv -f "$nlist"T "$nlist" 10798 else 10799 rm -f "$nlist"T 10800 fi 10801 10802 # Make sure that we snagged all the symbols we need. 10803 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 10804 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 10805 cat <<_LT_EOF > conftest.$ac_ext 10806/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 10807#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 10808/* DATA imports from DLLs on WIN32 can't be const, because runtime 10809 relocations are performed -- see ld's documentation on pseudo-relocs. */ 10810# define LT_DLSYM_CONST 10811#elif defined __osf__ 10812/* This system does not cope well with relocations in const data. */ 10813# define LT_DLSYM_CONST 10814#else 10815# define LT_DLSYM_CONST const 10816#endif 10817 10818#ifdef __cplusplus 10819extern "C" { 10820#endif 10821 10822_LT_EOF 10823 # Now generate the symbol file. 10824 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 10825 10826 cat <<_LT_EOF >> conftest.$ac_ext 10827 10828/* The mapping between symbol names and symbols. */ 10829LT_DLSYM_CONST struct { 10830 const char *name; 10831 void *address; 10832} 10833lt__PROGRAM__LTX_preloaded_symbols[] = 10834{ 10835 { "@PROGRAM@", (void *) 0 }, 10836_LT_EOF 10837 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 10838 cat <<\_LT_EOF >> conftest.$ac_ext 10839 {0, (void *) 0} 10840}; 10841 10842/* This works around a problem in FreeBSD linker */ 10843#ifdef FREEBSD_WORKAROUND 10844static const void *lt_preloaded_setup() { 10845 return lt__PROGRAM__LTX_preloaded_symbols; 10846} 10847#endif 10848 10849#ifdef __cplusplus 10850} 10851#endif 10852_LT_EOF 10853 # Now try linking the two files. 10854 mv conftest.$ac_objext conftstm.$ac_objext 10855 lt_globsym_save_LIBS=$LIBS 10856 lt_globsym_save_CFLAGS=$CFLAGS 10857 LIBS=conftstm.$ac_objext 10858 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 10859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10860 (eval $ac_link) 2>&5 10861 ac_status=$? 10862 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10863 test $ac_status = 0; } && test -s conftest$ac_exeext; then 10864 pipe_works=yes 10865 fi 10866 LIBS=$lt_globsym_save_LIBS 10867 CFLAGS=$lt_globsym_save_CFLAGS 10868 else 10869 echo "cannot find nm_test_func in $nlist" >&5 10870 fi 10871 else 10872 echo "cannot find nm_test_var in $nlist" >&5 10873 fi 10874 else 10875 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 10876 fi 10877 else 10878 echo "$progname: failed program was:" >&5 10879 cat conftest.$ac_ext >&5 10880 fi 10881 rm -rf conftest* conftst* 10882 10883 # Do not use the global_symbol_pipe unless it works. 10884 if test yes = "$pipe_works"; then 10885 break 10886 else 10887 lt_cv_sys_global_symbol_pipe= 10888 fi 10889done 10890 10891fi 10892 10893if test -z "$lt_cv_sys_global_symbol_pipe"; then 10894 lt_cv_sys_global_symbol_to_cdecl= 10895fi 10896if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 10897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 10898printf "%s\n" "failed" >&6; } 10899else 10900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 10901printf "%s\n" "ok" >&6; } 10902fi 10903 10904# Response file support. 10905if test "$lt_cv_nm_interface" = "MS dumpbin"; then 10906 nm_file_list_spec='@' 10907elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 10908 nm_file_list_spec='@' 10909fi 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 10948printf %s "checking for sysroot... " >&6; } 10949 10950# Check whether --with-sysroot was given. 10951if test ${with_sysroot+y} 10952then : 10953 withval=$with_sysroot; 10954else $as_nop 10955 with_sysroot=no 10956fi 10957 10958 10959lt_sysroot= 10960case $with_sysroot in #( 10961 yes) 10962 if test yes = "$GCC"; then 10963 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 10964 fi 10965 ;; #( 10966 /*) 10967 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 10968 ;; #( 10969 no|'') 10970 ;; #( 10971 *) 10972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 10973printf "%s\n" "$with_sysroot" >&6; } 10974 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 10975 ;; 10976esac 10977 10978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 10979printf "%s\n" "${lt_sysroot:-no}" >&6; } 10980 10981 10982 10983 10984 10985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 10986printf %s "checking for a working dd... " >&6; } 10987if test ${ac_cv_path_lt_DD+y} 10988then : 10989 printf %s "(cached) " >&6 10990else $as_nop 10991 printf 0123456789abcdef0123456789abcdef >conftest.i 10992cat conftest.i conftest.i >conftest2.i 10993: ${lt_DD:=$DD} 10994if test -z "$lt_DD"; then 10995 ac_path_lt_DD_found=false 10996 # Loop through the user's path and test for each of PROGNAME-LIST 10997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10998for as_dir in $PATH 10999do 11000 IFS=$as_save_IFS 11001 case $as_dir in #((( 11002 '') as_dir=./ ;; 11003 */) ;; 11004 *) as_dir=$as_dir/ ;; 11005 esac 11006 for ac_prog in dd 11007 do 11008 for ac_exec_ext in '' $ac_executable_extensions; do 11009 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 11010 as_fn_executable_p "$ac_path_lt_DD" || continue 11011if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 11012 cmp -s conftest.i conftest.out \ 11013 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 11014fi 11015 $ac_path_lt_DD_found && break 3 11016 done 11017 done 11018 done 11019IFS=$as_save_IFS 11020 if test -z "$ac_cv_path_lt_DD"; then 11021 : 11022 fi 11023else 11024 ac_cv_path_lt_DD=$lt_DD 11025fi 11026 11027rm -f conftest.i conftest2.i conftest.out 11028fi 11029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 11030printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 11031 11032 11033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 11034printf %s "checking how to truncate binary pipes... " >&6; } 11035if test ${lt_cv_truncate_bin+y} 11036then : 11037 printf %s "(cached) " >&6 11038else $as_nop 11039 printf 0123456789abcdef0123456789abcdef >conftest.i 11040cat conftest.i conftest.i >conftest2.i 11041lt_cv_truncate_bin= 11042if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 11043 cmp -s conftest.i conftest.out \ 11044 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 11045fi 11046rm -f conftest.i conftest2.i conftest.out 11047test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 11048fi 11049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 11050printf "%s\n" "$lt_cv_truncate_bin" >&6; } 11051 11052 11053 11054 11055 11056 11057 11058# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 11059func_cc_basename () 11060{ 11061 for cc_temp in $*""; do 11062 case $cc_temp in 11063 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11064 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11065 \-*) ;; 11066 *) break;; 11067 esac 11068 done 11069 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 11070} 11071 11072# Check whether --enable-libtool-lock was given. 11073if test ${enable_libtool_lock+y} 11074then : 11075 enableval=$enable_libtool_lock; 11076fi 11077 11078test no = "$enable_libtool_lock" || enable_libtool_lock=yes 11079 11080# Some flags need to be propagated to the compiler or linker for good 11081# libtool support. 11082case $host in 11083ia64-*-hpux*) 11084 # Find out what ABI is being produced by ac_compile, and set mode 11085 # options accordingly. 11086 echo 'int i;' > conftest.$ac_ext 11087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11088 (eval $ac_compile) 2>&5 11089 ac_status=$? 11090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11091 test $ac_status = 0; }; then 11092 case `$FILECMD conftest.$ac_objext` in 11093 *ELF-32*) 11094 HPUX_IA64_MODE=32 11095 ;; 11096 *ELF-64*) 11097 HPUX_IA64_MODE=64 11098 ;; 11099 esac 11100 fi 11101 rm -rf conftest* 11102 ;; 11103*-*-irix6*) 11104 # Find out what ABI is being produced by ac_compile, and set linker 11105 # options accordingly. 11106 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 11107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11108 (eval $ac_compile) 2>&5 11109 ac_status=$? 11110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11111 test $ac_status = 0; }; then 11112 if test yes = "$lt_cv_prog_gnu_ld"; then 11113 case `$FILECMD conftest.$ac_objext` in 11114 *32-bit*) 11115 LD="${LD-ld} -melf32bsmip" 11116 ;; 11117 *N32*) 11118 LD="${LD-ld} -melf32bmipn32" 11119 ;; 11120 *64-bit*) 11121 LD="${LD-ld} -melf64bmip" 11122 ;; 11123 esac 11124 else 11125 case `$FILECMD conftest.$ac_objext` in 11126 *32-bit*) 11127 LD="${LD-ld} -32" 11128 ;; 11129 *N32*) 11130 LD="${LD-ld} -n32" 11131 ;; 11132 *64-bit*) 11133 LD="${LD-ld} -64" 11134 ;; 11135 esac 11136 fi 11137 fi 11138 rm -rf conftest* 11139 ;; 11140 11141mips64*-*linux*) 11142 # Find out what ABI is being produced by ac_compile, and set linker 11143 # options accordingly. 11144 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 11145 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11146 (eval $ac_compile) 2>&5 11147 ac_status=$? 11148 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11149 test $ac_status = 0; }; then 11150 emul=elf 11151 case `$FILECMD conftest.$ac_objext` in 11152 *32-bit*) 11153 emul="${emul}32" 11154 ;; 11155 *64-bit*) 11156 emul="${emul}64" 11157 ;; 11158 esac 11159 case `$FILECMD conftest.$ac_objext` in 11160 *MSB*) 11161 emul="${emul}btsmip" 11162 ;; 11163 *LSB*) 11164 emul="${emul}ltsmip" 11165 ;; 11166 esac 11167 case `$FILECMD conftest.$ac_objext` in 11168 *N32*) 11169 emul="${emul}n32" 11170 ;; 11171 esac 11172 LD="${LD-ld} -m $emul" 11173 fi 11174 rm -rf conftest* 11175 ;; 11176 11177x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 11178s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 11179 # Find out what ABI is being produced by ac_compile, and set linker 11180 # options accordingly. Note that the listed cases only cover the 11181 # situations where additional linker options are needed (such as when 11182 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 11183 # vice versa); the common cases where no linker options are needed do 11184 # not appear in the list. 11185 echo 'int i;' > conftest.$ac_ext 11186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11187 (eval $ac_compile) 2>&5 11188 ac_status=$? 11189 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11190 test $ac_status = 0; }; then 11191 case `$FILECMD conftest.o` in 11192 *32-bit*) 11193 case $host in 11194 x86_64-*kfreebsd*-gnu) 11195 LD="${LD-ld} -m elf_i386_fbsd" 11196 ;; 11197 x86_64-*linux*) 11198 case `$FILECMD conftest.o` in 11199 *x86-64*) 11200 LD="${LD-ld} -m elf32_x86_64" 11201 ;; 11202 *) 11203 LD="${LD-ld} -m elf_i386" 11204 ;; 11205 esac 11206 ;; 11207 powerpc64le-*linux*) 11208 LD="${LD-ld} -m elf32lppclinux" 11209 ;; 11210 powerpc64-*linux*) 11211 LD="${LD-ld} -m elf32ppclinux" 11212 ;; 11213 s390x-*linux*) 11214 LD="${LD-ld} -m elf_s390" 11215 ;; 11216 sparc64-*linux*) 11217 LD="${LD-ld} -m elf32_sparc" 11218 ;; 11219 esac 11220 ;; 11221 *64-bit*) 11222 case $host in 11223 x86_64-*kfreebsd*-gnu) 11224 LD="${LD-ld} -m elf_x86_64_fbsd" 11225 ;; 11226 x86_64-*linux*) 11227 LD="${LD-ld} -m elf_x86_64" 11228 ;; 11229 powerpcle-*linux*) 11230 LD="${LD-ld} -m elf64lppc" 11231 ;; 11232 powerpc-*linux*) 11233 LD="${LD-ld} -m elf64ppc" 11234 ;; 11235 s390*-*linux*|s390*-*tpf*) 11236 LD="${LD-ld} -m elf64_s390" 11237 ;; 11238 sparc*-*linux*) 11239 LD="${LD-ld} -m elf64_sparc" 11240 ;; 11241 esac 11242 ;; 11243 esac 11244 fi 11245 rm -rf conftest* 11246 ;; 11247 11248*-*-sco3.2v5*) 11249 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 11250 SAVE_CFLAGS=$CFLAGS 11251 CFLAGS="$CFLAGS -belf" 11252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 11253printf %s "checking whether the C compiler needs -belf... " >&6; } 11254if test ${lt_cv_cc_needs_belf+y} 11255then : 11256 printf %s "(cached) " >&6 11257else $as_nop 11258 ac_ext=c 11259ac_cpp='$CPP $CPPFLAGS' 11260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11262ac_compiler_gnu=$ac_cv_c_compiler_gnu 11263 11264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11265/* end confdefs.h. */ 11266 11267int main(void) 11268{ 11269 11270 ; 11271 return 0; 11272} 11273_ACEOF 11274if ac_fn_c_try_link "$LINENO" 11275then : 11276 lt_cv_cc_needs_belf=yes 11277else $as_nop 11278 lt_cv_cc_needs_belf=no 11279fi 11280rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11281 conftest$ac_exeext conftest.$ac_ext 11282 ac_ext=c 11283ac_cpp='$CPP $CPPFLAGS' 11284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11286ac_compiler_gnu=$ac_cv_c_compiler_gnu 11287 11288fi 11289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 11290printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 11291 if test yes != "$lt_cv_cc_needs_belf"; then 11292 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 11293 CFLAGS=$SAVE_CFLAGS 11294 fi 11295 ;; 11296*-*solaris*) 11297 # Find out what ABI is being produced by ac_compile, and set linker 11298 # options accordingly. 11299 echo 'int i;' > conftest.$ac_ext 11300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11301 (eval $ac_compile) 2>&5 11302 ac_status=$? 11303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11304 test $ac_status = 0; }; then 11305 case `$FILECMD conftest.o` in 11306 *64-bit*) 11307 case $lt_cv_prog_gnu_ld in 11308 yes*) 11309 case $host in 11310 i?86-*-solaris*|x86_64-*-solaris*) 11311 LD="${LD-ld} -m elf_x86_64" 11312 ;; 11313 sparc*-*-solaris*) 11314 LD="${LD-ld} -m elf64_sparc" 11315 ;; 11316 esac 11317 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 11318 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 11319 LD=${LD-ld}_sol2 11320 fi 11321 ;; 11322 *) 11323 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 11324 LD="${LD-ld} -64" 11325 fi 11326 ;; 11327 esac 11328 ;; 11329 esac 11330 fi 11331 rm -rf conftest* 11332 ;; 11333esac 11334 11335need_locks=$enable_libtool_lock 11336 11337if test -n "$ac_tool_prefix"; then 11338 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 11339set dummy ${ac_tool_prefix}mt; ac_word=$2 11340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11341printf %s "checking for $ac_word... " >&6; } 11342if test ${ac_cv_prog_MANIFEST_TOOL+y} 11343then : 11344 printf %s "(cached) " >&6 11345else $as_nop 11346 if test -n "$MANIFEST_TOOL"; then 11347 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 11348else 11349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11350for as_dir in $PATH 11351do 11352 IFS=$as_save_IFS 11353 case $as_dir in #((( 11354 '') as_dir=./ ;; 11355 */) ;; 11356 *) as_dir=$as_dir/ ;; 11357 esac 11358 for ac_exec_ext in '' $ac_executable_extensions; do 11359 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11360 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 11361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11362 break 2 11363 fi 11364done 11365 done 11366IFS=$as_save_IFS 11367 11368fi 11369fi 11370MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 11371if test -n "$MANIFEST_TOOL"; then 11372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 11373printf "%s\n" "$MANIFEST_TOOL" >&6; } 11374else 11375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11376printf "%s\n" "no" >&6; } 11377fi 11378 11379 11380fi 11381if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 11382 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 11383 # Extract the first word of "mt", so it can be a program name with args. 11384set dummy mt; ac_word=$2 11385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11386printf %s "checking for $ac_word... " >&6; } 11387if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 11388then : 11389 printf %s "(cached) " >&6 11390else $as_nop 11391 if test -n "$ac_ct_MANIFEST_TOOL"; then 11392 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 11393else 11394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11395for as_dir in $PATH 11396do 11397 IFS=$as_save_IFS 11398 case $as_dir in #((( 11399 '') as_dir=./ ;; 11400 */) ;; 11401 *) as_dir=$as_dir/ ;; 11402 esac 11403 for ac_exec_ext in '' $ac_executable_extensions; do 11404 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11405 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 11406 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11407 break 2 11408 fi 11409done 11410 done 11411IFS=$as_save_IFS 11412 11413fi 11414fi 11415ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 11416if test -n "$ac_ct_MANIFEST_TOOL"; then 11417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 11418printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 11419else 11420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11421printf "%s\n" "no" >&6; } 11422fi 11423 11424 if test "x$ac_ct_MANIFEST_TOOL" = x; then 11425 MANIFEST_TOOL=":" 11426 else 11427 case $cross_compiling:$ac_tool_warned in 11428yes:) 11429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11430printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11431ac_tool_warned=yes ;; 11432esac 11433 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 11434 fi 11435else 11436 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 11437fi 11438 11439test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 11440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 11441printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 11442if test ${lt_cv_path_mainfest_tool+y} 11443then : 11444 printf %s "(cached) " >&6 11445else $as_nop 11446 lt_cv_path_mainfest_tool=no 11447 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 11448 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 11449 cat conftest.err >&5 11450 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 11451 lt_cv_path_mainfest_tool=yes 11452 fi 11453 rm -f conftest* 11454fi 11455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 11456printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 11457if test yes != "$lt_cv_path_mainfest_tool"; then 11458 MANIFEST_TOOL=: 11459fi 11460 11461 11462 11463 11464 11465 11466 case $host_os in 11467 rhapsody* | darwin*) 11468 if test -n "$ac_tool_prefix"; then 11469 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 11470set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 11471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11472printf %s "checking for $ac_word... " >&6; } 11473if test ${ac_cv_prog_DSYMUTIL+y} 11474then : 11475 printf %s "(cached) " >&6 11476else $as_nop 11477 if test -n "$DSYMUTIL"; then 11478 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 11479else 11480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11481for as_dir in $PATH 11482do 11483 IFS=$as_save_IFS 11484 case $as_dir in #((( 11485 '') as_dir=./ ;; 11486 */) ;; 11487 *) as_dir=$as_dir/ ;; 11488 esac 11489 for ac_exec_ext in '' $ac_executable_extensions; do 11490 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11491 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 11492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11493 break 2 11494 fi 11495done 11496 done 11497IFS=$as_save_IFS 11498 11499fi 11500fi 11501DSYMUTIL=$ac_cv_prog_DSYMUTIL 11502if test -n "$DSYMUTIL"; then 11503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 11504printf "%s\n" "$DSYMUTIL" >&6; } 11505else 11506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11507printf "%s\n" "no" >&6; } 11508fi 11509 11510 11511fi 11512if test -z "$ac_cv_prog_DSYMUTIL"; then 11513 ac_ct_DSYMUTIL=$DSYMUTIL 11514 # Extract the first word of "dsymutil", so it can be a program name with args. 11515set dummy dsymutil; ac_word=$2 11516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11517printf %s "checking for $ac_word... " >&6; } 11518if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 11519then : 11520 printf %s "(cached) " >&6 11521else $as_nop 11522 if test -n "$ac_ct_DSYMUTIL"; then 11523 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 11524else 11525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11526for as_dir in $PATH 11527do 11528 IFS=$as_save_IFS 11529 case $as_dir in #((( 11530 '') as_dir=./ ;; 11531 */) ;; 11532 *) as_dir=$as_dir/ ;; 11533 esac 11534 for ac_exec_ext in '' $ac_executable_extensions; do 11535 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11536 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 11537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11538 break 2 11539 fi 11540done 11541 done 11542IFS=$as_save_IFS 11543 11544fi 11545fi 11546ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 11547if test -n "$ac_ct_DSYMUTIL"; then 11548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 11549printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 11550else 11551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11552printf "%s\n" "no" >&6; } 11553fi 11554 11555 if test "x$ac_ct_DSYMUTIL" = x; then 11556 DSYMUTIL=":" 11557 else 11558 case $cross_compiling:$ac_tool_warned in 11559yes:) 11560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11561printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11562ac_tool_warned=yes ;; 11563esac 11564 DSYMUTIL=$ac_ct_DSYMUTIL 11565 fi 11566else 11567 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 11568fi 11569 11570 if test -n "$ac_tool_prefix"; then 11571 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 11572set dummy ${ac_tool_prefix}nmedit; ac_word=$2 11573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11574printf %s "checking for $ac_word... " >&6; } 11575if test ${ac_cv_prog_NMEDIT+y} 11576then : 11577 printf %s "(cached) " >&6 11578else $as_nop 11579 if test -n "$NMEDIT"; then 11580 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 11581else 11582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11583for as_dir in $PATH 11584do 11585 IFS=$as_save_IFS 11586 case $as_dir in #((( 11587 '') as_dir=./ ;; 11588 */) ;; 11589 *) as_dir=$as_dir/ ;; 11590 esac 11591 for ac_exec_ext in '' $ac_executable_extensions; do 11592 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11593 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 11594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11595 break 2 11596 fi 11597done 11598 done 11599IFS=$as_save_IFS 11600 11601fi 11602fi 11603NMEDIT=$ac_cv_prog_NMEDIT 11604if test -n "$NMEDIT"; then 11605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 11606printf "%s\n" "$NMEDIT" >&6; } 11607else 11608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11609printf "%s\n" "no" >&6; } 11610fi 11611 11612 11613fi 11614if test -z "$ac_cv_prog_NMEDIT"; then 11615 ac_ct_NMEDIT=$NMEDIT 11616 # Extract the first word of "nmedit", so it can be a program name with args. 11617set dummy nmedit; ac_word=$2 11618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11619printf %s "checking for $ac_word... " >&6; } 11620if test ${ac_cv_prog_ac_ct_NMEDIT+y} 11621then : 11622 printf %s "(cached) " >&6 11623else $as_nop 11624 if test -n "$ac_ct_NMEDIT"; then 11625 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 11626else 11627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11628for as_dir in $PATH 11629do 11630 IFS=$as_save_IFS 11631 case $as_dir in #((( 11632 '') as_dir=./ ;; 11633 */) ;; 11634 *) as_dir=$as_dir/ ;; 11635 esac 11636 for ac_exec_ext in '' $ac_executable_extensions; do 11637 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11638 ac_cv_prog_ac_ct_NMEDIT="nmedit" 11639 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11640 break 2 11641 fi 11642done 11643 done 11644IFS=$as_save_IFS 11645 11646fi 11647fi 11648ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 11649if test -n "$ac_ct_NMEDIT"; then 11650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 11651printf "%s\n" "$ac_ct_NMEDIT" >&6; } 11652else 11653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11654printf "%s\n" "no" >&6; } 11655fi 11656 11657 if test "x$ac_ct_NMEDIT" = x; then 11658 NMEDIT=":" 11659 else 11660 case $cross_compiling:$ac_tool_warned in 11661yes:) 11662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11663printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11664ac_tool_warned=yes ;; 11665esac 11666 NMEDIT=$ac_ct_NMEDIT 11667 fi 11668else 11669 NMEDIT="$ac_cv_prog_NMEDIT" 11670fi 11671 11672 if test -n "$ac_tool_prefix"; then 11673 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 11674set dummy ${ac_tool_prefix}lipo; ac_word=$2 11675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11676printf %s "checking for $ac_word... " >&6; } 11677if test ${ac_cv_prog_LIPO+y} 11678then : 11679 printf %s "(cached) " >&6 11680else $as_nop 11681 if test -n "$LIPO"; then 11682 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 11683else 11684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11685for as_dir in $PATH 11686do 11687 IFS=$as_save_IFS 11688 case $as_dir in #((( 11689 '') as_dir=./ ;; 11690 */) ;; 11691 *) as_dir=$as_dir/ ;; 11692 esac 11693 for ac_exec_ext in '' $ac_executable_extensions; do 11694 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11695 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 11696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11697 break 2 11698 fi 11699done 11700 done 11701IFS=$as_save_IFS 11702 11703fi 11704fi 11705LIPO=$ac_cv_prog_LIPO 11706if test -n "$LIPO"; then 11707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 11708printf "%s\n" "$LIPO" >&6; } 11709else 11710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11711printf "%s\n" "no" >&6; } 11712fi 11713 11714 11715fi 11716if test -z "$ac_cv_prog_LIPO"; then 11717 ac_ct_LIPO=$LIPO 11718 # Extract the first word of "lipo", so it can be a program name with args. 11719set dummy lipo; ac_word=$2 11720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11721printf %s "checking for $ac_word... " >&6; } 11722if test ${ac_cv_prog_ac_ct_LIPO+y} 11723then : 11724 printf %s "(cached) " >&6 11725else $as_nop 11726 if test -n "$ac_ct_LIPO"; then 11727 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 11728else 11729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11730for as_dir in $PATH 11731do 11732 IFS=$as_save_IFS 11733 case $as_dir in #((( 11734 '') as_dir=./ ;; 11735 */) ;; 11736 *) as_dir=$as_dir/ ;; 11737 esac 11738 for ac_exec_ext in '' $ac_executable_extensions; do 11739 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11740 ac_cv_prog_ac_ct_LIPO="lipo" 11741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11742 break 2 11743 fi 11744done 11745 done 11746IFS=$as_save_IFS 11747 11748fi 11749fi 11750ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 11751if test -n "$ac_ct_LIPO"; then 11752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 11753printf "%s\n" "$ac_ct_LIPO" >&6; } 11754else 11755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11756printf "%s\n" "no" >&6; } 11757fi 11758 11759 if test "x$ac_ct_LIPO" = x; then 11760 LIPO=":" 11761 else 11762 case $cross_compiling:$ac_tool_warned in 11763yes:) 11764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11765printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11766ac_tool_warned=yes ;; 11767esac 11768 LIPO=$ac_ct_LIPO 11769 fi 11770else 11771 LIPO="$ac_cv_prog_LIPO" 11772fi 11773 11774 if test -n "$ac_tool_prefix"; then 11775 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 11776set dummy ${ac_tool_prefix}otool; ac_word=$2 11777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11778printf %s "checking for $ac_word... " >&6; } 11779if test ${ac_cv_prog_OTOOL+y} 11780then : 11781 printf %s "(cached) " >&6 11782else $as_nop 11783 if test -n "$OTOOL"; then 11784 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 11785else 11786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11787for as_dir in $PATH 11788do 11789 IFS=$as_save_IFS 11790 case $as_dir in #((( 11791 '') as_dir=./ ;; 11792 */) ;; 11793 *) as_dir=$as_dir/ ;; 11794 esac 11795 for ac_exec_ext in '' $ac_executable_extensions; do 11796 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11797 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 11798 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11799 break 2 11800 fi 11801done 11802 done 11803IFS=$as_save_IFS 11804 11805fi 11806fi 11807OTOOL=$ac_cv_prog_OTOOL 11808if test -n "$OTOOL"; then 11809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 11810printf "%s\n" "$OTOOL" >&6; } 11811else 11812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11813printf "%s\n" "no" >&6; } 11814fi 11815 11816 11817fi 11818if test -z "$ac_cv_prog_OTOOL"; then 11819 ac_ct_OTOOL=$OTOOL 11820 # Extract the first word of "otool", so it can be a program name with args. 11821set dummy otool; ac_word=$2 11822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11823printf %s "checking for $ac_word... " >&6; } 11824if test ${ac_cv_prog_ac_ct_OTOOL+y} 11825then : 11826 printf %s "(cached) " >&6 11827else $as_nop 11828 if test -n "$ac_ct_OTOOL"; then 11829 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 11830else 11831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11832for as_dir in $PATH 11833do 11834 IFS=$as_save_IFS 11835 case $as_dir in #((( 11836 '') as_dir=./ ;; 11837 */) ;; 11838 *) as_dir=$as_dir/ ;; 11839 esac 11840 for ac_exec_ext in '' $ac_executable_extensions; do 11841 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11842 ac_cv_prog_ac_ct_OTOOL="otool" 11843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11844 break 2 11845 fi 11846done 11847 done 11848IFS=$as_save_IFS 11849 11850fi 11851fi 11852ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 11853if test -n "$ac_ct_OTOOL"; then 11854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 11855printf "%s\n" "$ac_ct_OTOOL" >&6; } 11856else 11857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11858printf "%s\n" "no" >&6; } 11859fi 11860 11861 if test "x$ac_ct_OTOOL" = x; then 11862 OTOOL=":" 11863 else 11864 case $cross_compiling:$ac_tool_warned in 11865yes:) 11866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11867printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11868ac_tool_warned=yes ;; 11869esac 11870 OTOOL=$ac_ct_OTOOL 11871 fi 11872else 11873 OTOOL="$ac_cv_prog_OTOOL" 11874fi 11875 11876 if test -n "$ac_tool_prefix"; then 11877 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 11878set dummy ${ac_tool_prefix}otool64; ac_word=$2 11879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11880printf %s "checking for $ac_word... " >&6; } 11881if test ${ac_cv_prog_OTOOL64+y} 11882then : 11883 printf %s "(cached) " >&6 11884else $as_nop 11885 if test -n "$OTOOL64"; then 11886 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 11887else 11888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11889for as_dir in $PATH 11890do 11891 IFS=$as_save_IFS 11892 case $as_dir in #((( 11893 '') as_dir=./ ;; 11894 */) ;; 11895 *) as_dir=$as_dir/ ;; 11896 esac 11897 for ac_exec_ext in '' $ac_executable_extensions; do 11898 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11899 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 11900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11901 break 2 11902 fi 11903done 11904 done 11905IFS=$as_save_IFS 11906 11907fi 11908fi 11909OTOOL64=$ac_cv_prog_OTOOL64 11910if test -n "$OTOOL64"; then 11911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 11912printf "%s\n" "$OTOOL64" >&6; } 11913else 11914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11915printf "%s\n" "no" >&6; } 11916fi 11917 11918 11919fi 11920if test -z "$ac_cv_prog_OTOOL64"; then 11921 ac_ct_OTOOL64=$OTOOL64 11922 # Extract the first word of "otool64", so it can be a program name with args. 11923set dummy otool64; ac_word=$2 11924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11925printf %s "checking for $ac_word... " >&6; } 11926if test ${ac_cv_prog_ac_ct_OTOOL64+y} 11927then : 11928 printf %s "(cached) " >&6 11929else $as_nop 11930 if test -n "$ac_ct_OTOOL64"; then 11931 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 11932else 11933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11934for as_dir in $PATH 11935do 11936 IFS=$as_save_IFS 11937 case $as_dir in #((( 11938 '') as_dir=./ ;; 11939 */) ;; 11940 *) as_dir=$as_dir/ ;; 11941 esac 11942 for ac_exec_ext in '' $ac_executable_extensions; do 11943 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11944 ac_cv_prog_ac_ct_OTOOL64="otool64" 11945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11946 break 2 11947 fi 11948done 11949 done 11950IFS=$as_save_IFS 11951 11952fi 11953fi 11954ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 11955if test -n "$ac_ct_OTOOL64"; then 11956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 11957printf "%s\n" "$ac_ct_OTOOL64" >&6; } 11958else 11959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11960printf "%s\n" "no" >&6; } 11961fi 11962 11963 if test "x$ac_ct_OTOOL64" = x; then 11964 OTOOL64=":" 11965 else 11966 case $cross_compiling:$ac_tool_warned in 11967yes:) 11968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11969printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11970ac_tool_warned=yes ;; 11971esac 11972 OTOOL64=$ac_ct_OTOOL64 11973 fi 11974else 11975 OTOOL64="$ac_cv_prog_OTOOL64" 11976fi 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 12005printf %s "checking for -single_module linker flag... " >&6; } 12006if test ${lt_cv_apple_cc_single_mod+y} 12007then : 12008 printf %s "(cached) " >&6 12009else $as_nop 12010 lt_cv_apple_cc_single_mod=no 12011 if test -z "$LT_MULTI_MODULE"; then 12012 # By default we will add the -single_module flag. You can override 12013 # by either setting the environment variable LT_MULTI_MODULE 12014 # non-empty at configure time, or by adding -multi_module to the 12015 # link flags. 12016 rm -rf libconftest.dylib* 12017 echo "int foo(void){return 1;}" > conftest.c 12018 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 12019-dynamiclib -Wl,-single_module conftest.c" >&5 12020 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 12021 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 12022 _lt_result=$? 12023 # If there is a non-empty error log, and "single_module" 12024 # appears in it, assume the flag caused a linker warning 12025 if test -s conftest.err && $GREP single_module conftest.err; then 12026 cat conftest.err >&5 12027 # Otherwise, if the output was created with a 0 exit code from 12028 # the compiler, it worked. 12029 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 12030 lt_cv_apple_cc_single_mod=yes 12031 else 12032 cat conftest.err >&5 12033 fi 12034 rm -rf libconftest.dylib* 12035 rm -f conftest.* 12036 fi 12037fi 12038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 12039printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 12040 12041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 12042printf %s "checking for -exported_symbols_list linker flag... " >&6; } 12043if test ${lt_cv_ld_exported_symbols_list+y} 12044then : 12045 printf %s "(cached) " >&6 12046else $as_nop 12047 lt_cv_ld_exported_symbols_list=no 12048 save_LDFLAGS=$LDFLAGS 12049 echo "_main" > conftest.sym 12050 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 12051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12052/* end confdefs.h. */ 12053 12054int main(void) 12055{ 12056 12057 ; 12058 return 0; 12059} 12060_ACEOF 12061if ac_fn_c_try_link "$LINENO" 12062then : 12063 lt_cv_ld_exported_symbols_list=yes 12064else $as_nop 12065 lt_cv_ld_exported_symbols_list=no 12066fi 12067rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12068 conftest$ac_exeext conftest.$ac_ext 12069 LDFLAGS=$save_LDFLAGS 12070 12071fi 12072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 12073printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 12074 12075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 12076printf %s "checking for -force_load linker flag... " >&6; } 12077if test ${lt_cv_ld_force_load+y} 12078then : 12079 printf %s "(cached) " >&6 12080else $as_nop 12081 lt_cv_ld_force_load=no 12082 cat > conftest.c << _LT_EOF 12083int forced_loaded() { return 2;} 12084_LT_EOF 12085 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 12086 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 12087 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 12088 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 12089 echo "$RANLIB libconftest.a" >&5 12090 $RANLIB libconftest.a 2>&5 12091 cat > conftest.c << _LT_EOF 12092int main() { return 0;} 12093_LT_EOF 12094 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 12095 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 12096 _lt_result=$? 12097 if test -s conftest.err && $GREP force_load conftest.err; then 12098 cat conftest.err >&5 12099 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 12100 lt_cv_ld_force_load=yes 12101 else 12102 cat conftest.err >&5 12103 fi 12104 rm -f conftest.err libconftest.a conftest conftest.c 12105 rm -rf conftest.dSYM 12106 12107fi 12108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 12109printf "%s\n" "$lt_cv_ld_force_load" >&6; } 12110 case $host_os in 12111 rhapsody* | darwin1.[012]) 12112 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 12113 darwin1.*) 12114 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 12115 darwin*) 12116 case $MACOSX_DEPLOYMENT_TARGET,$host in 12117 10.[012],*|,*powerpc*-darwin[5-8]*) 12118 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 12119 *) 12120 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 12121 esac 12122 ;; 12123 esac 12124 if test yes = "$lt_cv_apple_cc_single_mod"; then 12125 _lt_dar_single_mod='$single_module' 12126 fi 12127 if test yes = "$lt_cv_ld_exported_symbols_list"; then 12128 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 12129 else 12130 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 12131 fi 12132 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 12133 _lt_dsymutil='~$DSYMUTIL $lib || :' 12134 else 12135 _lt_dsymutil= 12136 fi 12137 ;; 12138 esac 12139 12140# func_munge_path_list VARIABLE PATH 12141# ----------------------------------- 12142# VARIABLE is name of variable containing _space_ separated list of 12143# directories to be munged by the contents of PATH, which is string 12144# having a format: 12145# "DIR[:DIR]:" 12146# string "DIR[ DIR]" will be prepended to VARIABLE 12147# ":DIR[:DIR]" 12148# string "DIR[ DIR]" will be appended to VARIABLE 12149# "DIRP[:DIRP]::[DIRA:]DIRA" 12150# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 12151# "DIRA[ DIRA]" will be appended to VARIABLE 12152# "DIR[:DIR]" 12153# VARIABLE will be replaced by "DIR[ DIR]" 12154func_munge_path_list () 12155{ 12156 case x$2 in 12157 x) 12158 ;; 12159 *:) 12160 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 12161 ;; 12162 x:*) 12163 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 12164 ;; 12165 *::*) 12166 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 12167 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 12168 ;; 12169 *) 12170 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 12171 ;; 12172 esac 12173} 12174 12175ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 12176" 12177if test "x$ac_cv_header_dlfcn_h" = xyes 12178then : 12179 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 12180 12181fi 12182 12183# ------------------------------------ # 12184# Determine libtool default behavior # 12185# ------------------------------------ # 12186 12187# 12188# Default behavior is to enable shared and static libraries on systems 12189# where libtool knows how to build both library versions, and does not 12190# require separate configuration and build runs for each flavor. 12191# 12192 12193xc_lt_want_enable_shared='yes' 12194xc_lt_want_enable_static='yes' 12195 12196# 12197# User may have disabled shared or static libraries. 12198# 12199case "x$enable_shared" in # ( 12200 xno) 12201 xc_lt_want_enable_shared='no' 12202 ;; 12203esac 12204case "x$enable_static" in # ( 12205 xno) 12206 xc_lt_want_enable_static='no' 12207 ;; 12208esac 12209if test "x$xc_lt_want_enable_shared" = 'xno' && 12210 test "x$xc_lt_want_enable_static" = 'xno'; then 12211 as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5 12212fi 12213 12214# 12215# Default behavior on systems that require independent configuration 12216# and build runs for shared and static is to enable shared libraries 12217# and disable static ones. On these systems option '--disable-shared' 12218# must be used in order to build a proper static library. 12219# 12220 12221if test "x$xc_lt_want_enable_shared" = 'xyes' && 12222 test "x$xc_lt_want_enable_static" = 'xyes'; then 12223 case $host_os in # ( 12224 pw32* | cegcc* | os2* | aix*) 12225 xc_lt_want_enable_static='no' 12226 ;; 12227 esac 12228fi 12229 12230# 12231# Make libtool aware of current shared and static library preferences 12232# taking in account that, depending on host characteristics, libtool 12233# may modify these option preferences later in this configure script. 12234# 12235 12236enable_shared=$xc_lt_want_enable_shared 12237enable_static=$xc_lt_want_enable_static 12238 12239# 12240# Default behavior is to build PIC objects for shared libraries and 12241# non-PIC objects for static libraries. 12242# 12243 12244xc_lt_want_with_pic='default' 12245 12246# 12247# User may have specified PIC preference. 12248# 12249 12250case "x$with_pic" in # (( 12251 xno) 12252 xc_lt_want_with_pic='no' 12253 ;; 12254 xyes) 12255 xc_lt_want_with_pic='yes' 12256 ;; 12257esac 12258 12259# 12260# Default behavior on some systems where building a shared library out 12261# of non-PIC compiled objects will fail with following linker error 12262# "relocation R_X86_64_32 can not be used when making a shared object" 12263# is to build PIC objects even for static libraries. This behavior may 12264# be overridden using 'configure --disable-shared --without-pic'. 12265# 12266 12267if test "x$xc_lt_want_with_pic" = 'xdefault'; then 12268 case $host_cpu in # ( 12269 x86_64 | amd64 | ia64) 12270 case $host_os in # ( 12271 linux* | freebsd* | midnightbsd*) 12272 xc_lt_want_with_pic='yes' 12273 ;; 12274 esac 12275 ;; 12276 esac 12277fi 12278 12279# 12280# Make libtool aware of current PIC preference taking in account that, 12281# depending on host characteristics, libtool may modify PIC default 12282# behavior to fit host system idiosyncrasies later in this script. 12283# 12284 12285with_pic=$xc_lt_want_with_pic 12286 12287## ----------------------- ## 12288## Start of libtool code ## 12289## ----------------------- ## 12290 12291 12292 12293 12294# Set options 12295enable_win32_dll=yes 12296 12297case $host in 12298*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 12299 if test -n "$ac_tool_prefix"; then 12300 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 12301set dummy ${ac_tool_prefix}as; ac_word=$2 12302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12303printf %s "checking for $ac_word... " >&6; } 12304if test ${ac_cv_prog_AS+y} 12305then : 12306 printf %s "(cached) " >&6 12307else $as_nop 12308 if test -n "$AS"; then 12309 ac_cv_prog_AS="$AS" # Let the user override the test. 12310else 12311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12312for as_dir in $PATH 12313do 12314 IFS=$as_save_IFS 12315 case $as_dir in #((( 12316 '') as_dir=./ ;; 12317 */) ;; 12318 *) as_dir=$as_dir/ ;; 12319 esac 12320 for ac_exec_ext in '' $ac_executable_extensions; do 12321 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12322 ac_cv_prog_AS="${ac_tool_prefix}as" 12323 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12324 break 2 12325 fi 12326done 12327 done 12328IFS=$as_save_IFS 12329 12330fi 12331fi 12332AS=$ac_cv_prog_AS 12333if test -n "$AS"; then 12334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 12335printf "%s\n" "$AS" >&6; } 12336else 12337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12338printf "%s\n" "no" >&6; } 12339fi 12340 12341 12342fi 12343if test -z "$ac_cv_prog_AS"; then 12344 ac_ct_AS=$AS 12345 # Extract the first word of "as", so it can be a program name with args. 12346set dummy as; ac_word=$2 12347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12348printf %s "checking for $ac_word... " >&6; } 12349if test ${ac_cv_prog_ac_ct_AS+y} 12350then : 12351 printf %s "(cached) " >&6 12352else $as_nop 12353 if test -n "$ac_ct_AS"; then 12354 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 12355else 12356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12357for as_dir in $PATH 12358do 12359 IFS=$as_save_IFS 12360 case $as_dir in #((( 12361 '') as_dir=./ ;; 12362 */) ;; 12363 *) as_dir=$as_dir/ ;; 12364 esac 12365 for ac_exec_ext in '' $ac_executable_extensions; do 12366 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12367 ac_cv_prog_ac_ct_AS="as" 12368 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12369 break 2 12370 fi 12371done 12372 done 12373IFS=$as_save_IFS 12374 12375fi 12376fi 12377ac_ct_AS=$ac_cv_prog_ac_ct_AS 12378if test -n "$ac_ct_AS"; then 12379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 12380printf "%s\n" "$ac_ct_AS" >&6; } 12381else 12382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12383printf "%s\n" "no" >&6; } 12384fi 12385 12386 if test "x$ac_ct_AS" = x; then 12387 AS="false" 12388 else 12389 case $cross_compiling:$ac_tool_warned in 12390yes:) 12391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12392printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12393ac_tool_warned=yes ;; 12394esac 12395 AS=$ac_ct_AS 12396 fi 12397else 12398 AS="$ac_cv_prog_AS" 12399fi 12400 12401 if test -n "$ac_tool_prefix"; then 12402 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12403set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12405printf %s "checking for $ac_word... " >&6; } 12406if test ${ac_cv_prog_DLLTOOL+y} 12407then : 12408 printf %s "(cached) " >&6 12409else $as_nop 12410 if test -n "$DLLTOOL"; then 12411 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12412else 12413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12414for as_dir in $PATH 12415do 12416 IFS=$as_save_IFS 12417 case $as_dir in #((( 12418 '') as_dir=./ ;; 12419 */) ;; 12420 *) as_dir=$as_dir/ ;; 12421 esac 12422 for ac_exec_ext in '' $ac_executable_extensions; do 12423 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12424 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12426 break 2 12427 fi 12428done 12429 done 12430IFS=$as_save_IFS 12431 12432fi 12433fi 12434DLLTOOL=$ac_cv_prog_DLLTOOL 12435if test -n "$DLLTOOL"; then 12436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12437printf "%s\n" "$DLLTOOL" >&6; } 12438else 12439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12440printf "%s\n" "no" >&6; } 12441fi 12442 12443 12444fi 12445if test -z "$ac_cv_prog_DLLTOOL"; then 12446 ac_ct_DLLTOOL=$DLLTOOL 12447 # Extract the first word of "dlltool", so it can be a program name with args. 12448set dummy dlltool; ac_word=$2 12449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12450printf %s "checking for $ac_word... " >&6; } 12451if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 12452then : 12453 printf %s "(cached) " >&6 12454else $as_nop 12455 if test -n "$ac_ct_DLLTOOL"; then 12456 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12457else 12458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12459for as_dir in $PATH 12460do 12461 IFS=$as_save_IFS 12462 case $as_dir in #((( 12463 '') as_dir=./ ;; 12464 */) ;; 12465 *) as_dir=$as_dir/ ;; 12466 esac 12467 for ac_exec_ext in '' $ac_executable_extensions; do 12468 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12469 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12470 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12471 break 2 12472 fi 12473done 12474 done 12475IFS=$as_save_IFS 12476 12477fi 12478fi 12479ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12480if test -n "$ac_ct_DLLTOOL"; then 12481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12482printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 12483else 12484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12485printf "%s\n" "no" >&6; } 12486fi 12487 12488 if test "x$ac_ct_DLLTOOL" = x; then 12489 DLLTOOL="false" 12490 else 12491 case $cross_compiling:$ac_tool_warned in 12492yes:) 12493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12494printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12495ac_tool_warned=yes ;; 12496esac 12497 DLLTOOL=$ac_ct_DLLTOOL 12498 fi 12499else 12500 DLLTOOL="$ac_cv_prog_DLLTOOL" 12501fi 12502 12503 if test -n "$ac_tool_prefix"; then 12504 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 12505set dummy ${ac_tool_prefix}objdump; ac_word=$2 12506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12507printf %s "checking for $ac_word... " >&6; } 12508if test ${ac_cv_prog_OBJDUMP+y} 12509then : 12510 printf %s "(cached) " >&6 12511else $as_nop 12512 if test -n "$OBJDUMP"; then 12513 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 12514else 12515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12516for as_dir in $PATH 12517do 12518 IFS=$as_save_IFS 12519 case $as_dir in #((( 12520 '') as_dir=./ ;; 12521 */) ;; 12522 *) as_dir=$as_dir/ ;; 12523 esac 12524 for ac_exec_ext in '' $ac_executable_extensions; do 12525 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12526 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 12527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12528 break 2 12529 fi 12530done 12531 done 12532IFS=$as_save_IFS 12533 12534fi 12535fi 12536OBJDUMP=$ac_cv_prog_OBJDUMP 12537if test -n "$OBJDUMP"; then 12538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 12539printf "%s\n" "$OBJDUMP" >&6; } 12540else 12541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12542printf "%s\n" "no" >&6; } 12543fi 12544 12545 12546fi 12547if test -z "$ac_cv_prog_OBJDUMP"; then 12548 ac_ct_OBJDUMP=$OBJDUMP 12549 # Extract the first word of "objdump", so it can be a program name with args. 12550set dummy objdump; ac_word=$2 12551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12552printf %s "checking for $ac_word... " >&6; } 12553if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 12554then : 12555 printf %s "(cached) " >&6 12556else $as_nop 12557 if test -n "$ac_ct_OBJDUMP"; then 12558 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 12559else 12560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12561for as_dir in $PATH 12562do 12563 IFS=$as_save_IFS 12564 case $as_dir in #((( 12565 '') as_dir=./ ;; 12566 */) ;; 12567 *) as_dir=$as_dir/ ;; 12568 esac 12569 for ac_exec_ext in '' $ac_executable_extensions; do 12570 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12571 ac_cv_prog_ac_ct_OBJDUMP="objdump" 12572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12573 break 2 12574 fi 12575done 12576 done 12577IFS=$as_save_IFS 12578 12579fi 12580fi 12581ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 12582if test -n "$ac_ct_OBJDUMP"; then 12583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 12584printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 12585else 12586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12587printf "%s\n" "no" >&6; } 12588fi 12589 12590 if test "x$ac_ct_OBJDUMP" = x; then 12591 OBJDUMP="false" 12592 else 12593 case $cross_compiling:$ac_tool_warned in 12594yes:) 12595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12596printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12597ac_tool_warned=yes ;; 12598esac 12599 OBJDUMP=$ac_ct_OBJDUMP 12600 fi 12601else 12602 OBJDUMP="$ac_cv_prog_OBJDUMP" 12603fi 12604 12605 ;; 12606esac 12607 12608test -z "$AS" && AS=as 12609 12610 12611 12612 12613 12614test -z "$DLLTOOL" && DLLTOOL=dlltool 12615 12616 12617 12618 12619 12620test -z "$OBJDUMP" && OBJDUMP=objdump 12621 12622 12623 12624 12625 12626 12627 12628 enable_dlopen=no 12629 12630 12631 12632 # Check whether --enable-shared was given. 12633if test ${enable_shared+y} 12634then : 12635 enableval=$enable_shared; p=${PACKAGE-default} 12636 case $enableval in 12637 yes) enable_shared=yes ;; 12638 no) enable_shared=no ;; 12639 *) 12640 enable_shared=no 12641 # Look at the argument we got. We use all the common list separators. 12642 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 12643 for pkg in $enableval; do 12644 IFS=$lt_save_ifs 12645 if test "X$pkg" = "X$p"; then 12646 enable_shared=yes 12647 fi 12648 done 12649 IFS=$lt_save_ifs 12650 ;; 12651 esac 12652else $as_nop 12653 enable_shared=yes 12654fi 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 # Check whether --enable-static was given. 12665if test ${enable_static+y} 12666then : 12667 enableval=$enable_static; p=${PACKAGE-default} 12668 case $enableval in 12669 yes) enable_static=yes ;; 12670 no) enable_static=no ;; 12671 *) 12672 enable_static=no 12673 # Look at the argument we got. We use all the common list separators. 12674 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 12675 for pkg in $enableval; do 12676 IFS=$lt_save_ifs 12677 if test "X$pkg" = "X$p"; then 12678 enable_static=yes 12679 fi 12680 done 12681 IFS=$lt_save_ifs 12682 ;; 12683 esac 12684else $as_nop 12685 enable_static=yes 12686fi 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697# Check whether --with-pic was given. 12698if test ${with_pic+y} 12699then : 12700 withval=$with_pic; lt_p=${PACKAGE-default} 12701 case $withval in 12702 yes|no) pic_mode=$withval ;; 12703 *) 12704 pic_mode=default 12705 # Look at the argument we got. We use all the common list separators. 12706 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 12707 for lt_pkg in $withval; do 12708 IFS=$lt_save_ifs 12709 if test "X$lt_pkg" = "X$lt_p"; then 12710 pic_mode=yes 12711 fi 12712 done 12713 IFS=$lt_save_ifs 12714 ;; 12715 esac 12716else $as_nop 12717 pic_mode=default 12718fi 12719 12720 12721 12722 12723 12724 12725 12726 12727 # Check whether --enable-fast-install was given. 12728if test ${enable_fast_install+y} 12729then : 12730 enableval=$enable_fast_install; p=${PACKAGE-default} 12731 case $enableval in 12732 yes) enable_fast_install=yes ;; 12733 no) enable_fast_install=no ;; 12734 *) 12735 enable_fast_install=no 12736 # Look at the argument we got. We use all the common list separators. 12737 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 12738 for pkg in $enableval; do 12739 IFS=$lt_save_ifs 12740 if test "X$pkg" = "X$p"; then 12741 enable_fast_install=yes 12742 fi 12743 done 12744 IFS=$lt_save_ifs 12745 ;; 12746 esac 12747else $as_nop 12748 enable_fast_install=yes 12749fi 12750 12751 12752 12753 12754 12755 12756 12757 12758 shared_archive_member_spec= 12759case $host,$enable_shared in 12760power*-*-aix[5-9]*,yes) 12761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 12762printf %s "checking which variant of shared library versioning to provide... " >&6; } 12763 12764# Check whether --with-aix-soname was given. 12765if test ${with_aix_soname+y} 12766then : 12767 withval=$with_aix_soname; case $withval in 12768 aix|svr4|both) 12769 ;; 12770 *) 12771 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 12772 ;; 12773 esac 12774 lt_cv_with_aix_soname=$with_aix_soname 12775else $as_nop 12776 if test ${lt_cv_with_aix_soname+y} 12777then : 12778 printf %s "(cached) " >&6 12779else $as_nop 12780 lt_cv_with_aix_soname=aix 12781fi 12782 12783 with_aix_soname=$lt_cv_with_aix_soname 12784fi 12785 12786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 12787printf "%s\n" "$with_aix_soname" >&6; } 12788 if test aix != "$with_aix_soname"; then 12789 # For the AIX way of multilib, we name the shared archive member 12790 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 12791 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 12792 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 12793 # the AIX toolchain works better with OBJECT_MODE set (default 32). 12794 if test 64 = "${OBJECT_MODE-32}"; then 12795 shared_archive_member_spec=shr_64 12796 else 12797 shared_archive_member_spec=shr 12798 fi 12799 fi 12800 ;; 12801*) 12802 with_aix_soname=aix 12803 ;; 12804esac 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815# This can be used to rebuild libtool when needed 12816LIBTOOL_DEPS=$ltmain 12817 12818# Always use our own libtool. 12819LIBTOOL='$(SHELL) $(top_builddir)/libtool' 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850test -z "$LN_S" && LN_S="ln -s" 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864 12865if test -n "${ZSH_VERSION+set}"; then 12866 setopt NO_GLOB_SUBST 12867fi 12868 12869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 12870printf %s "checking for objdir... " >&6; } 12871if test ${lt_cv_objdir+y} 12872then : 12873 printf %s "(cached) " >&6 12874else $as_nop 12875 rm -f .libs 2>/dev/null 12876mkdir .libs 2>/dev/null 12877if test -d .libs; then 12878 lt_cv_objdir=.libs 12879else 12880 # MS-DOS does not allow filenames that begin with a dot. 12881 lt_cv_objdir=_libs 12882fi 12883rmdir .libs 2>/dev/null 12884fi 12885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 12886printf "%s\n" "$lt_cv_objdir" >&6; } 12887objdir=$lt_cv_objdir 12888 12889 12890 12891 12892 12893printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 12894 12895 12896 12897 12898case $host_os in 12899aix3*) 12900 # AIX sometimes has problems with the GCC collect2 program. For some 12901 # reason, if we set the COLLECT_NAMES environment variable, the problems 12902 # vanish in a puff of smoke. 12903 if test set != "${COLLECT_NAMES+set}"; then 12904 COLLECT_NAMES= 12905 export COLLECT_NAMES 12906 fi 12907 ;; 12908esac 12909 12910# Global variables: 12911ofile=libtool 12912can_build_shared=yes 12913 12914# All known linkers require a '.a' archive for static linking (except MSVC and 12915# ICC, which need '.lib'). 12916libext=a 12917 12918with_gnu_ld=$lt_cv_prog_gnu_ld 12919 12920old_CC=$CC 12921old_CFLAGS=$CFLAGS 12922 12923# Set sane defaults for various variables 12924test -z "$CC" && CC=cc 12925test -z "$LTCC" && LTCC=$CC 12926test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 12927test -z "$LD" && LD=ld 12928test -z "$ac_objext" && ac_objext=o 12929 12930func_cc_basename $compiler 12931cc_basename=$func_cc_basename_result 12932 12933 12934# Only perform the check for file, if the check method requires it 12935test -z "$MAGIC_CMD" && MAGIC_CMD=file 12936case $deplibs_check_method in 12937file_magic*) 12938 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 12939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 12940printf %s "checking for ${ac_tool_prefix}file... " >&6; } 12941if test ${lt_cv_path_MAGIC_CMD+y} 12942then : 12943 printf %s "(cached) " >&6 12944else $as_nop 12945 case $MAGIC_CMD in 12946[\\/*] | ?:[\\/]*) 12947 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 12948 ;; 12949*) 12950 lt_save_MAGIC_CMD=$MAGIC_CMD 12951 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12952 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 12953 for ac_dir in $ac_dummy; do 12954 IFS=$lt_save_ifs 12955 test -z "$ac_dir" && ac_dir=. 12956 if test -f "$ac_dir/${ac_tool_prefix}file"; then 12957 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 12958 if test -n "$file_magic_test_file"; then 12959 case $deplibs_check_method in 12960 "file_magic "*) 12961 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 12962 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 12963 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 12964 $EGREP "$file_magic_regex" > /dev/null; then 12965 : 12966 else 12967 cat <<_LT_EOF 1>&2 12968 12969*** Warning: the command libtool uses to detect shared libraries, 12970*** $file_magic_cmd, produces output that libtool cannot recognize. 12971*** The result is that libtool may fail to recognize shared libraries 12972*** as such. This will affect the creation of libtool libraries that 12973*** depend on shared libraries, but programs linked with such libtool 12974*** libraries will work regardless of this problem. Nevertheless, you 12975*** may want to report the problem to your system manager and/or to 12976*** [email protected] 12977 12978_LT_EOF 12979 fi ;; 12980 esac 12981 fi 12982 break 12983 fi 12984 done 12985 IFS=$lt_save_ifs 12986 MAGIC_CMD=$lt_save_MAGIC_CMD 12987 ;; 12988esac 12989fi 12990 12991MAGIC_CMD=$lt_cv_path_MAGIC_CMD 12992if test -n "$MAGIC_CMD"; then 12993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 12994printf "%s\n" "$MAGIC_CMD" >&6; } 12995else 12996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12997printf "%s\n" "no" >&6; } 12998fi 12999 13000 13001 13002 13003 13004if test -z "$lt_cv_path_MAGIC_CMD"; then 13005 if test -n "$ac_tool_prefix"; then 13006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 13007printf %s "checking for file... " >&6; } 13008if test ${lt_cv_path_MAGIC_CMD+y} 13009then : 13010 printf %s "(cached) " >&6 13011else $as_nop 13012 case $MAGIC_CMD in 13013[\\/*] | ?:[\\/]*) 13014 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 13015 ;; 13016*) 13017 lt_save_MAGIC_CMD=$MAGIC_CMD 13018 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13019 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 13020 for ac_dir in $ac_dummy; do 13021 IFS=$lt_save_ifs 13022 test -z "$ac_dir" && ac_dir=. 13023 if test -f "$ac_dir/file"; then 13024 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 13025 if test -n "$file_magic_test_file"; then 13026 case $deplibs_check_method in 13027 "file_magic "*) 13028 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 13029 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 13030 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 13031 $EGREP "$file_magic_regex" > /dev/null; then 13032 : 13033 else 13034 cat <<_LT_EOF 1>&2 13035 13036*** Warning: the command libtool uses to detect shared libraries, 13037*** $file_magic_cmd, produces output that libtool cannot recognize. 13038*** The result is that libtool may fail to recognize shared libraries 13039*** as such. This will affect the creation of libtool libraries that 13040*** depend on shared libraries, but programs linked with such libtool 13041*** libraries will work regardless of this problem. Nevertheless, you 13042*** may want to report the problem to your system manager and/or to 13043*** [email protected] 13044 13045_LT_EOF 13046 fi ;; 13047 esac 13048 fi 13049 break 13050 fi 13051 done 13052 IFS=$lt_save_ifs 13053 MAGIC_CMD=$lt_save_MAGIC_CMD 13054 ;; 13055esac 13056fi 13057 13058MAGIC_CMD=$lt_cv_path_MAGIC_CMD 13059if test -n "$MAGIC_CMD"; then 13060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 13061printf "%s\n" "$MAGIC_CMD" >&6; } 13062else 13063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13064printf "%s\n" "no" >&6; } 13065fi 13066 13067 13068 else 13069 MAGIC_CMD=: 13070 fi 13071fi 13072 13073 fi 13074 ;; 13075esac 13076 13077# Use C for the default configuration in the libtool script 13078 13079lt_save_CC=$CC 13080ac_ext=c 13081ac_cpp='$CPP $CPPFLAGS' 13082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13084ac_compiler_gnu=$ac_cv_c_compiler_gnu 13085 13086 13087# Source file extension for C test sources. 13088ac_ext=c 13089 13090# Object file extension for compiled C test sources. 13091objext=o 13092objext=$objext 13093 13094# Code to be used in simple compile tests 13095lt_simple_compile_test_code="int some_variable = 0;" 13096 13097# Code to be used in simple link tests 13098lt_simple_link_test_code='int main(){return(0);}' 13099 13100 13101 13102 13103 13104 13105 13106# If no C compiler was specified, use CC. 13107LTCC=${LTCC-"$CC"} 13108 13109# If no C compiler flags were specified, use CFLAGS. 13110LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13111 13112# Allow CC to be a program name with arguments. 13113compiler=$CC 13114 13115# Save the default compiler, since it gets overwritten when the other 13116# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 13117compiler_DEFAULT=$CC 13118 13119# save warnings/boilerplate of simple test code 13120ac_outfile=conftest.$ac_objext 13121echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13122eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13123_lt_compiler_boilerplate=`cat conftest.err` 13124$RM conftest* 13125 13126ac_outfile=conftest.$ac_objext 13127echo "$lt_simple_link_test_code" >conftest.$ac_ext 13128eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13129_lt_linker_boilerplate=`cat conftest.err` 13130$RM -r conftest* 13131 13132 13133## CAVEAT EMPTOR: 13134## There is no encapsulation within the following macros, do not change 13135## the running order or otherwise move them around unless you know exactly 13136## what you are doing... 13137if test -n "$compiler"; then 13138 13139lt_prog_compiler_no_builtin_flag= 13140 13141if test yes = "$GCC"; then 13142 case $cc_basename in 13143 nvcc*) 13144 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 13145 *) 13146 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 13147 esac 13148 13149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 13150printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 13151if test ${lt_cv_prog_compiler_rtti_exceptions+y} 13152then : 13153 printf %s "(cached) " >&6 13154else $as_nop 13155 lt_cv_prog_compiler_rtti_exceptions=no 13156 ac_outfile=conftest.$ac_objext 13157 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13158 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 13159 # Insert the option either (1) after the last *FLAGS variable, or 13160 # (2) before a word containing "conftest.", or (3) at the end. 13161 # Note that $ac_compile itself does not contain backslashes and begins 13162 # with a dollar sign (not a hyphen), so the echo should work correctly. 13163 # The option is referenced via a variable to avoid confusing sed. 13164 lt_compile=`echo "$ac_compile" | $SED \ 13165 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13166 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13167 -e 's:$: $lt_compiler_flag:'` 13168 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13169 (eval "$lt_compile" 2>conftest.err) 13170 ac_status=$? 13171 cat conftest.err >&5 13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13173 if (exit $ac_status) && test -s "$ac_outfile"; then 13174 # The compiler can only warn and ignore the option if not recognized 13175 # So say no if there are warnings other than the usual output. 13176 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 13177 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13178 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13179 lt_cv_prog_compiler_rtti_exceptions=yes 13180 fi 13181 fi 13182 $RM conftest* 13183 13184fi 13185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 13186printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 13187 13188if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 13189 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 13190else 13191 : 13192fi 13193 13194fi 13195 13196 13197 13198 13199 13200 13201 lt_prog_compiler_wl= 13202lt_prog_compiler_pic= 13203lt_prog_compiler_static= 13204 13205 13206 if test yes = "$GCC"; then 13207 lt_prog_compiler_wl='-Wl,' 13208 lt_prog_compiler_static='-static' 13209 13210 case $host_os in 13211 aix*) 13212 # All AIX code is PIC. 13213 if test ia64 = "$host_cpu"; then 13214 # AIX 5 now supports IA64 processor 13215 lt_prog_compiler_static='-Bstatic' 13216 fi 13217 lt_prog_compiler_pic='-fPIC' 13218 ;; 13219 13220 amigaos*) 13221 case $host_cpu in 13222 powerpc) 13223 # see comment about AmigaOS4 .so support 13224 lt_prog_compiler_pic='-fPIC' 13225 ;; 13226 m68k) 13227 # FIXME: we need at least 68020 code to build shared libraries, but 13228 # adding the '-m68020' flag to GCC prevents building anything better, 13229 # like '-m68040'. 13230 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 13231 ;; 13232 esac 13233 ;; 13234 13235 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13236 # PIC is the default for these OSes. 13237 ;; 13238 13239 mingw* | cygwin* | pw32* | os2* | cegcc*) 13240 # This hack is so that the source file can tell whether it is being 13241 # built for inclusion in a dll (and should export symbols for example). 13242 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13243 # (--disable-auto-import) libraries 13244 lt_prog_compiler_pic='-DDLL_EXPORT' 13245 case $host_os in 13246 os2*) 13247 lt_prog_compiler_static='$wl-static' 13248 ;; 13249 esac 13250 ;; 13251 13252 darwin* | rhapsody*) 13253 # PIC is the default on this platform 13254 # Common symbols not allowed in MH_DYLIB files 13255 lt_prog_compiler_pic='-fno-common' 13256 ;; 13257 13258 haiku*) 13259 # PIC is the default for Haiku. 13260 # The "-static" flag exists, but is broken. 13261 lt_prog_compiler_static= 13262 ;; 13263 13264 hpux*) 13265 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 13266 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 13267 # sets the default TLS model and affects inlining. 13268 case $host_cpu in 13269 hppa*64*) 13270 # +Z the default 13271 ;; 13272 *) 13273 lt_prog_compiler_pic='-fPIC' 13274 ;; 13275 esac 13276 ;; 13277 13278 interix[3-9]*) 13279 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13280 # Instead, we relocate shared libraries at runtime. 13281 ;; 13282 13283 msdosdjgpp*) 13284 # Just because we use GCC doesn't mean we suddenly get shared libraries 13285 # on systems that don't support them. 13286 lt_prog_compiler_can_build_shared=no 13287 enable_shared=no 13288 ;; 13289 13290 *nto* | *qnx*) 13291 # QNX uses GNU C++, but need to define -shared option too, otherwise 13292 # it will coredump. 13293 lt_prog_compiler_pic='-fPIC -shared' 13294 ;; 13295 13296 sysv4*MP*) 13297 if test -d /usr/nec; then 13298 lt_prog_compiler_pic=-Kconform_pic 13299 fi 13300 ;; 13301 13302 *) 13303 lt_prog_compiler_pic='-fPIC' 13304 ;; 13305 esac 13306 13307 case $cc_basename in 13308 nvcc*) # Cuda Compiler Driver 2.2 13309 lt_prog_compiler_wl='-Xlinker ' 13310 if test -n "$lt_prog_compiler_pic"; then 13311 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 13312 fi 13313 ;; 13314 esac 13315 else 13316 # PORTME Check for flag to pass linker flags through the system compiler. 13317 case $host_os in 13318 aix*) 13319 lt_prog_compiler_wl='-Wl,' 13320 if test ia64 = "$host_cpu"; then 13321 # AIX 5 now supports IA64 processor 13322 lt_prog_compiler_static='-Bstatic' 13323 else 13324 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 13325 fi 13326 ;; 13327 13328 darwin* | rhapsody*) 13329 # PIC is the default on this platform 13330 # Common symbols not allowed in MH_DYLIB files 13331 lt_prog_compiler_pic='-fno-common' 13332 case $cc_basename in 13333 nagfor*) 13334 # NAG Fortran compiler 13335 lt_prog_compiler_wl='-Wl,-Wl,,' 13336 lt_prog_compiler_pic='-PIC' 13337 lt_prog_compiler_static='-Bstatic' 13338 ;; 13339 esac 13340 ;; 13341 13342 mingw* | cygwin* | pw32* | os2* | cegcc*) 13343 # This hack is so that the source file can tell whether it is being 13344 # built for inclusion in a dll (and should export symbols for example). 13345 lt_prog_compiler_pic='-DDLL_EXPORT' 13346 case $host_os in 13347 os2*) 13348 lt_prog_compiler_static='$wl-static' 13349 ;; 13350 esac 13351 ;; 13352 13353 hpux9* | hpux10* | hpux11*) 13354 lt_prog_compiler_wl='-Wl,' 13355 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13356 # not for PA HP-UX. 13357 case $host_cpu in 13358 hppa*64*|ia64*) 13359 # +Z the default 13360 ;; 13361 *) 13362 lt_prog_compiler_pic='+Z' 13363 ;; 13364 esac 13365 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13366 lt_prog_compiler_static='$wl-a ${wl}archive' 13367 ;; 13368 13369 irix5* | irix6* | nonstopux*) 13370 lt_prog_compiler_wl='-Wl,' 13371 # PIC (with -KPIC) is the default. 13372 lt_prog_compiler_static='-non_shared' 13373 ;; 13374 13375 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13376 case $cc_basename in 13377 # old Intel for x86_64, which still supported -KPIC. 13378 ecc*) 13379 lt_prog_compiler_wl='-Wl,' 13380 lt_prog_compiler_pic='-KPIC' 13381 lt_prog_compiler_static='-static' 13382 ;; 13383 # flang / f18. f95 an alias for gfortran or flang on Debian 13384 flang* | f18* | f95*) 13385 lt_prog_compiler_wl='-Wl,' 13386 lt_prog_compiler_pic='-fPIC' 13387 lt_prog_compiler_static='-static' 13388 ;; 13389 # icc used to be incompatible with GCC. 13390 # ICC 10 doesn't accept -KPIC any more. 13391 icc* | ifort*) 13392 lt_prog_compiler_wl='-Wl,' 13393 lt_prog_compiler_pic='-fPIC' 13394 lt_prog_compiler_static='-static' 13395 ;; 13396 # Lahey Fortran 8.1. 13397 lf95*) 13398 lt_prog_compiler_wl='-Wl,' 13399 lt_prog_compiler_pic='--shared' 13400 lt_prog_compiler_static='--static' 13401 ;; 13402 nagfor*) 13403 # NAG Fortran compiler 13404 lt_prog_compiler_wl='-Wl,-Wl,,' 13405 lt_prog_compiler_pic='-PIC' 13406 lt_prog_compiler_static='-Bstatic' 13407 ;; 13408 tcc*) 13409 # Fabrice Bellard et al's Tiny C Compiler 13410 lt_prog_compiler_wl='-Wl,' 13411 lt_prog_compiler_pic='-fPIC' 13412 lt_prog_compiler_static='-static' 13413 ;; 13414 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 13415 # Portland Group compilers (*not* the Pentium gcc compiler, 13416 # which looks to be a dead project) 13417 lt_prog_compiler_wl='-Wl,' 13418 lt_prog_compiler_pic='-fpic' 13419 lt_prog_compiler_static='-Bstatic' 13420 ;; 13421 ccc*) 13422 lt_prog_compiler_wl='-Wl,' 13423 # All Alpha code is PIC. 13424 lt_prog_compiler_static='-non_shared' 13425 ;; 13426 xl* | bgxl* | bgf* | mpixl*) 13427 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 13428 lt_prog_compiler_wl='-Wl,' 13429 lt_prog_compiler_pic='-qpic' 13430 lt_prog_compiler_static='-qstaticlink' 13431 ;; 13432 *) 13433 case `$CC -V 2>&1 | $SED 5q` in 13434 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 13435 # Sun Fortran 8.3 passes all unrecognized flags to the linker 13436 lt_prog_compiler_pic='-KPIC' 13437 lt_prog_compiler_static='-Bstatic' 13438 lt_prog_compiler_wl='' 13439 ;; 13440 *Sun\ F* | *Sun*Fortran*) 13441 lt_prog_compiler_pic='-KPIC' 13442 lt_prog_compiler_static='-Bstatic' 13443 lt_prog_compiler_wl='-Qoption ld ' 13444 ;; 13445 *Sun\ C*) 13446 # Sun C 5.9 13447 lt_prog_compiler_pic='-KPIC' 13448 lt_prog_compiler_static='-Bstatic' 13449 lt_prog_compiler_wl='-Wl,' 13450 ;; 13451 *Intel*\ [CF]*Compiler*) 13452 lt_prog_compiler_wl='-Wl,' 13453 lt_prog_compiler_pic='-fPIC' 13454 lt_prog_compiler_static='-static' 13455 ;; 13456 *Portland\ Group*) 13457 lt_prog_compiler_wl='-Wl,' 13458 lt_prog_compiler_pic='-fpic' 13459 lt_prog_compiler_static='-Bstatic' 13460 ;; 13461 esac 13462 ;; 13463 esac 13464 ;; 13465 13466 newsos6) 13467 lt_prog_compiler_pic='-KPIC' 13468 lt_prog_compiler_static='-Bstatic' 13469 ;; 13470 13471 *nto* | *qnx*) 13472 # QNX uses GNU C++, but need to define -shared option too, otherwise 13473 # it will coredump. 13474 lt_prog_compiler_pic='-fPIC -shared' 13475 ;; 13476 13477 osf3* | osf4* | osf5*) 13478 lt_prog_compiler_wl='-Wl,' 13479 # All OSF/1 code is PIC. 13480 lt_prog_compiler_static='-non_shared' 13481 ;; 13482 13483 rdos*) 13484 lt_prog_compiler_static='-non_shared' 13485 ;; 13486 13487 solaris*) 13488 lt_prog_compiler_pic='-KPIC' 13489 lt_prog_compiler_static='-Bstatic' 13490 case $cc_basename in 13491 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 13492 lt_prog_compiler_wl='-Qoption ld ';; 13493 *) 13494 lt_prog_compiler_wl='-Wl,';; 13495 esac 13496 ;; 13497 13498 sunos4*) 13499 lt_prog_compiler_wl='-Qoption ld ' 13500 lt_prog_compiler_pic='-PIC' 13501 lt_prog_compiler_static='-Bstatic' 13502 ;; 13503 13504 sysv4 | sysv4.2uw2* | sysv4.3*) 13505 lt_prog_compiler_wl='-Wl,' 13506 lt_prog_compiler_pic='-KPIC' 13507 lt_prog_compiler_static='-Bstatic' 13508 ;; 13509 13510 sysv4*MP*) 13511 if test -d /usr/nec; then 13512 lt_prog_compiler_pic='-Kconform_pic' 13513 lt_prog_compiler_static='-Bstatic' 13514 fi 13515 ;; 13516 13517 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13518 lt_prog_compiler_wl='-Wl,' 13519 lt_prog_compiler_pic='-KPIC' 13520 lt_prog_compiler_static='-Bstatic' 13521 ;; 13522 13523 unicos*) 13524 lt_prog_compiler_wl='-Wl,' 13525 lt_prog_compiler_can_build_shared=no 13526 ;; 13527 13528 uts4*) 13529 lt_prog_compiler_pic='-pic' 13530 lt_prog_compiler_static='-Bstatic' 13531 ;; 13532 13533 *) 13534 lt_prog_compiler_can_build_shared=no 13535 ;; 13536 esac 13537 fi 13538 13539case $host_os in 13540 # For platforms that do not support PIC, -DPIC is meaningless: 13541 *djgpp*) 13542 lt_prog_compiler_pic= 13543 ;; 13544 *) 13545 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 13546 ;; 13547esac 13548 13549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 13550printf %s "checking for $compiler option to produce PIC... " >&6; } 13551if test ${lt_cv_prog_compiler_pic+y} 13552then : 13553 printf %s "(cached) " >&6 13554else $as_nop 13555 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 13556fi 13557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 13558printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 13559lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 13560 13561# 13562# Check to make sure the PIC flag actually works. 13563# 13564if test -n "$lt_prog_compiler_pic"; then 13565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 13566printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 13567if test ${lt_cv_prog_compiler_pic_works+y} 13568then : 13569 printf %s "(cached) " >&6 13570else $as_nop 13571 lt_cv_prog_compiler_pic_works=no 13572 ac_outfile=conftest.$ac_objext 13573 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13574 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 13575 # Insert the option either (1) after the last *FLAGS variable, or 13576 # (2) before a word containing "conftest.", or (3) at the end. 13577 # Note that $ac_compile itself does not contain backslashes and begins 13578 # with a dollar sign (not a hyphen), so the echo should work correctly. 13579 # The option is referenced via a variable to avoid confusing sed. 13580 lt_compile=`echo "$ac_compile" | $SED \ 13581 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13582 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13583 -e 's:$: $lt_compiler_flag:'` 13584 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13585 (eval "$lt_compile" 2>conftest.err) 13586 ac_status=$? 13587 cat conftest.err >&5 13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13589 if (exit $ac_status) && test -s "$ac_outfile"; then 13590 # The compiler can only warn and ignore the option if not recognized 13591 # So say no if there are warnings other than the usual output. 13592 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 13593 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13594 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13595 lt_cv_prog_compiler_pic_works=yes 13596 fi 13597 fi 13598 $RM conftest* 13599 13600fi 13601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 13602printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 13603 13604if test yes = "$lt_cv_prog_compiler_pic_works"; then 13605 case $lt_prog_compiler_pic in 13606 "" | " "*) ;; 13607 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 13608 esac 13609else 13610 lt_prog_compiler_pic= 13611 lt_prog_compiler_can_build_shared=no 13612fi 13613 13614fi 13615 13616 13617 13618 13619 13620 13621 13622 13623 13624 13625 13626# 13627# Check to make sure the static flag actually works. 13628# 13629wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 13630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13631printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13632if test ${lt_cv_prog_compiler_static_works+y} 13633then : 13634 printf %s "(cached) " >&6 13635else $as_nop 13636 lt_cv_prog_compiler_static_works=no 13637 save_LDFLAGS=$LDFLAGS 13638 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13639 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13640 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13641 # The linker can only warn and ignore the option if not recognized 13642 # So say no if there are warnings 13643 if test -s conftest.err; then 13644 # Append any errors to the config.log. 13645 cat conftest.err 1>&5 13646 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13647 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13648 if diff conftest.exp conftest.er2 >/dev/null; then 13649 lt_cv_prog_compiler_static_works=yes 13650 fi 13651 else 13652 lt_cv_prog_compiler_static_works=yes 13653 fi 13654 fi 13655 $RM -r conftest* 13656 LDFLAGS=$save_LDFLAGS 13657 13658fi 13659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 13660printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 13661 13662if test yes = "$lt_cv_prog_compiler_static_works"; then 13663 : 13664else 13665 lt_prog_compiler_static= 13666fi 13667 13668 13669 13670 13671 13672 13673 13674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13675printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13676if test ${lt_cv_prog_compiler_c_o+y} 13677then : 13678 printf %s "(cached) " >&6 13679else $as_nop 13680 lt_cv_prog_compiler_c_o=no 13681 $RM -r conftest 2>/dev/null 13682 mkdir conftest 13683 cd conftest 13684 mkdir out 13685 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13686 13687 lt_compiler_flag="-o out/conftest2.$ac_objext" 13688 # Insert the option either (1) after the last *FLAGS variable, or 13689 # (2) before a word containing "conftest.", or (3) at the end. 13690 # Note that $ac_compile itself does not contain backslashes and begins 13691 # with a dollar sign (not a hyphen), so the echo should work correctly. 13692 lt_compile=`echo "$ac_compile" | $SED \ 13693 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13694 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13695 -e 's:$: $lt_compiler_flag:'` 13696 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13697 (eval "$lt_compile" 2>out/conftest.err) 13698 ac_status=$? 13699 cat out/conftest.err >&5 13700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13701 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13702 then 13703 # The compiler can only warn and ignore the option if not recognized 13704 # So say no if there are warnings 13705 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13706 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13707 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13708 lt_cv_prog_compiler_c_o=yes 13709 fi 13710 fi 13711 chmod u+w . 2>&5 13712 $RM conftest* 13713 # SGI C++ compiler will create directory out/ii_files/ for 13714 # template instantiation 13715 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13716 $RM out/* && rmdir out 13717 cd .. 13718 $RM -r conftest 13719 $RM conftest* 13720 13721fi 13722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 13723printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 13724 13725 13726 13727 13728 13729 13730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13731printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13732if test ${lt_cv_prog_compiler_c_o+y} 13733then : 13734 printf %s "(cached) " >&6 13735else $as_nop 13736 lt_cv_prog_compiler_c_o=no 13737 $RM -r conftest 2>/dev/null 13738 mkdir conftest 13739 cd conftest 13740 mkdir out 13741 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13742 13743 lt_compiler_flag="-o out/conftest2.$ac_objext" 13744 # Insert the option either (1) after the last *FLAGS variable, or 13745 # (2) before a word containing "conftest.", or (3) at the end. 13746 # Note that $ac_compile itself does not contain backslashes and begins 13747 # with a dollar sign (not a hyphen), so the echo should work correctly. 13748 lt_compile=`echo "$ac_compile" | $SED \ 13749 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13750 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13751 -e 's:$: $lt_compiler_flag:'` 13752 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13753 (eval "$lt_compile" 2>out/conftest.err) 13754 ac_status=$? 13755 cat out/conftest.err >&5 13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13757 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13758 then 13759 # The compiler can only warn and ignore the option if not recognized 13760 # So say no if there are warnings 13761 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13762 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13763 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13764 lt_cv_prog_compiler_c_o=yes 13765 fi 13766 fi 13767 chmod u+w . 2>&5 13768 $RM conftest* 13769 # SGI C++ compiler will create directory out/ii_files/ for 13770 # template instantiation 13771 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13772 $RM out/* && rmdir out 13773 cd .. 13774 $RM -r conftest 13775 $RM conftest* 13776 13777fi 13778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 13779printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 13780 13781 13782 13783 13784hard_links=nottested 13785if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 13786 # do not overwrite the value of need_locks provided by the user 13787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 13788printf %s "checking if we can lock with hard links... " >&6; } 13789 hard_links=yes 13790 $RM conftest* 13791 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13792 touch conftest.a 13793 ln conftest.a conftest.b 2>&5 || hard_links=no 13794 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 13796printf "%s\n" "$hard_links" >&6; } 13797 if test no = "$hard_links"; then 13798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 13799printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 13800 need_locks=warn 13801 fi 13802else 13803 need_locks=no 13804fi 13805 13806 13807 13808 13809 13810 13811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13812printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13813 13814 runpath_var= 13815 allow_undefined_flag= 13816 always_export_symbols=no 13817 archive_cmds= 13818 archive_expsym_cmds= 13819 compiler_needs_object=no 13820 enable_shared_with_static_runtimes=no 13821 export_dynamic_flag_spec= 13822 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13823 hardcode_automatic=no 13824 hardcode_direct=no 13825 hardcode_direct_absolute=no 13826 hardcode_libdir_flag_spec= 13827 hardcode_libdir_separator= 13828 hardcode_minus_L=no 13829 hardcode_shlibpath_var=unsupported 13830 inherit_rpath=no 13831 link_all_deplibs=unknown 13832 module_cmds= 13833 module_expsym_cmds= 13834 old_archive_from_new_cmds= 13835 old_archive_from_expsyms_cmds= 13836 thread_safe_flag_spec= 13837 whole_archive_flag_spec= 13838 # include_expsyms should be a list of space-separated symbols to be *always* 13839 # included in the symbol list 13840 include_expsyms= 13841 # exclude_expsyms can be an extended regexp of symbols to exclude 13842 # it will be wrapped by ' (' and ')$', so one must not match beginning or 13843 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 13844 # as well as any symbol that contains 'd'. 13845 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13846 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 13847 # platforms (ab)use it in PIC code, but their linkers get confused if 13848 # the symbol is explicitly referenced. Since portable code cannot 13849 # rely on this symbol name, it's probably fine to never include it in 13850 # preloaded symbol tables. 13851 # Exclude shared library initialization/finalization symbols. 13852 extract_expsyms_cmds= 13853 13854 case $host_os in 13855 cygwin* | mingw* | pw32* | cegcc*) 13856 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 13857 # When not using gcc, we currently assume that we are using 13858 # Microsoft Visual C++ or Intel C++ Compiler. 13859 if test yes != "$GCC"; then 13860 with_gnu_ld=no 13861 fi 13862 ;; 13863 interix*) 13864 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 13865 with_gnu_ld=yes 13866 ;; 13867 openbsd* | bitrig*) 13868 with_gnu_ld=no 13869 ;; 13870 linux* | k*bsd*-gnu | gnu*) 13871 link_all_deplibs=no 13872 ;; 13873 esac 13874 13875 ld_shlibs=yes 13876 13877 # On some targets, GNU ld is compatible enough with the native linker 13878 # that we're better off using the native interface for both. 13879 lt_use_gnu_ld_interface=no 13880 if test yes = "$with_gnu_ld"; then 13881 case $host_os in 13882 aix*) 13883 # The AIX port of GNU ld has always aspired to compatibility 13884 # with the native linker. However, as the warning in the GNU ld 13885 # block says, versions before 2.19.5* couldn't really create working 13886 # shared libraries, regardless of the interface used. 13887 case `$LD -v 2>&1` in 13888 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 13889 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 13890 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 13891 *) 13892 lt_use_gnu_ld_interface=yes 13893 ;; 13894 esac 13895 ;; 13896 *) 13897 lt_use_gnu_ld_interface=yes 13898 ;; 13899 esac 13900 fi 13901 13902 if test yes = "$lt_use_gnu_ld_interface"; then 13903 # If archive_cmds runs LD, not CC, wlarc should be empty 13904 wlarc='$wl' 13905 13906 # Set some defaults for GNU ld with shared library support. These 13907 # are reset later if shared libraries are not supported. Putting them 13908 # here allows them to be overridden if necessary. 13909 runpath_var=LD_RUN_PATH 13910 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13911 export_dynamic_flag_spec='$wl--export-dynamic' 13912 # ancient GNU ld didn't support --whole-archive et. al. 13913 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 13914 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 13915 else 13916 whole_archive_flag_spec= 13917 fi 13918 supports_anon_versioning=no 13919 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 13920 *GNU\ gold*) supports_anon_versioning=yes ;; 13921 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 13922 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 13923 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 13924 *\ 2.11.*) ;; # other 2.11 versions 13925 *) supports_anon_versioning=yes ;; 13926 esac 13927 13928 # See if GNU ld supports shared libraries. 13929 case $host_os in 13930 aix[3-9]*) 13931 # On AIX/PPC, the GNU linker is very broken 13932 if test ia64 != "$host_cpu"; then 13933 ld_shlibs=no 13934 cat <<_LT_EOF 1>&2 13935 13936*** Warning: the GNU linker, at least up to release 2.19, is reported 13937*** to be unable to reliably create shared libraries on AIX. 13938*** Therefore, libtool is disabling shared libraries support. If you 13939*** really care for shared libraries, you may want to install binutils 13940*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 13941*** You will then need to restart the configuration process. 13942 13943_LT_EOF 13944 fi 13945 ;; 13946 13947 amigaos*) 13948 case $host_cpu in 13949 powerpc) 13950 # see comment about AmigaOS4 .so support 13951 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13952 archive_expsym_cmds='' 13953 ;; 13954 m68k) 13955 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)' 13956 hardcode_libdir_flag_spec='-L$libdir' 13957 hardcode_minus_L=yes 13958 ;; 13959 esac 13960 ;; 13961 13962 beos*) 13963 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13964 allow_undefined_flag=unsupported 13965 # Joseph Beckenbach <[email protected]> says some releases of gcc 13966 # support --undefined. This deserves some investigation. FIXME 13967 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13968 else 13969 ld_shlibs=no 13970 fi 13971 ;; 13972 13973 cygwin* | mingw* | pw32* | cegcc*) 13974 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 13975 # as there is no search path for DLLs. 13976 hardcode_libdir_flag_spec='-L$libdir' 13977 export_dynamic_flag_spec='$wl--export-all-symbols' 13978 allow_undefined_flag=unsupported 13979 always_export_symbols=no 13980 enable_shared_with_static_runtimes=yes 13981 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' 13982 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 13983 13984 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13985 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13986 # If the export-symbols file already is a .def file, use it as 13987 # is; otherwise, prepend EXPORTS... 13988 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13989 cp $export_symbols $output_objdir/$soname.def; 13990 else 13991 echo EXPORTS > $output_objdir/$soname.def; 13992 cat $export_symbols >> $output_objdir/$soname.def; 13993 fi~ 13994 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13995 else 13996 ld_shlibs=no 13997 fi 13998 ;; 13999 14000 haiku*) 14001 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14002 link_all_deplibs=yes 14003 ;; 14004 14005 os2*) 14006 hardcode_libdir_flag_spec='-L$libdir' 14007 hardcode_minus_L=yes 14008 allow_undefined_flag=unsupported 14009 shrext_cmds=.dll 14010 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14011 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14012 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14013 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14014 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 14015 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14016 emximp -o $lib $output_objdir/$libname.def' 14017 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14018 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14019 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14020 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14021 prefix_cmds="$SED"~ 14022 if test EXPORTS = "`$SED 1q $export_symbols`"; then 14023 prefix_cmds="$prefix_cmds -e 1d"; 14024 fi~ 14025 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 14026 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 14027 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14028 emximp -o $lib $output_objdir/$libname.def' 14029 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 14030 enable_shared_with_static_runtimes=yes 14031 file_list_spec='@' 14032 ;; 14033 14034 interix[3-9]*) 14035 hardcode_direct=no 14036 hardcode_shlibpath_var=no 14037 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 14038 export_dynamic_flag_spec='$wl-E' 14039 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14040 # Instead, shared libraries are loaded at an image base (0x10000000 by 14041 # default) and relocated if they conflict, which is a slow very memory 14042 # consuming and fragmenting process. To avoid this, we pick a random, 14043 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14044 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14045 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14046 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' 14047 ;; 14048 14049 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 14050 tmp_diet=no 14051 if test linux-dietlibc = "$host_os"; then 14052 case $cc_basename in 14053 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 14054 esac 14055 fi 14056 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 14057 && test no = "$tmp_diet" 14058 then 14059 tmp_addflag=' $pic_flag' 14060 tmp_sharedflag='-shared' 14061 case $cc_basename,$host_cpu in 14062 pgcc*) # Portland Group C compiler 14063 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' 14064 tmp_addflag=' $pic_flag' 14065 ;; 14066 pgf77* | pgf90* | pgf95* | pgfortran*) 14067 # Portland Group f77 and f90 compilers 14068 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' 14069 tmp_addflag=' $pic_flag -Mnomain' ;; 14070 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14071 tmp_addflag=' -i_dynamic' ;; 14072 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14073 tmp_addflag=' -i_dynamic -nofor_main' ;; 14074 ifc* | ifort*) # Intel Fortran compiler 14075 tmp_addflag=' -nofor_main' ;; 14076 lf95*) # Lahey Fortran 8.1 14077 whole_archive_flag_spec= 14078 tmp_sharedflag='--shared' ;; 14079 nagfor*) # NAGFOR 5.3 14080 tmp_sharedflag='-Wl,-shared' ;; 14081 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 14082 tmp_sharedflag='-qmkshrobj' 14083 tmp_addflag= ;; 14084 nvcc*) # Cuda Compiler Driver 2.2 14085 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' 14086 compiler_needs_object=yes 14087 ;; 14088 esac 14089 case `$CC -V 2>&1 | $SED 5q` in 14090 *Sun\ C*) # Sun C 5.9 14091 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' 14092 compiler_needs_object=yes 14093 tmp_sharedflag='-G' ;; 14094 *Sun\ F*) # Sun Fortran 8.3 14095 tmp_sharedflag='-G' ;; 14096 esac 14097 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14098 14099 if test yes = "$supports_anon_versioning"; then 14100 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 14101 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14102 echo "local: *; };" >> $output_objdir/$libname.ver~ 14103 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 14104 fi 14105 14106 case $cc_basename in 14107 tcc*) 14108 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 14109 export_dynamic_flag_spec='-rdynamic' 14110 ;; 14111 xlf* | bgf* | bgxlf* | mpixlf*) 14112 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 14113 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 14114 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 14115 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 14116 if test yes = "$supports_anon_versioning"; then 14117 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 14118 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14119 echo "local: *; };" >> $output_objdir/$libname.ver~ 14120 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 14121 fi 14122 ;; 14123 esac 14124 else 14125 ld_shlibs=no 14126 fi 14127 ;; 14128 14129 netbsd* | netbsdelf*-gnu) 14130 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14131 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14132 wlarc= 14133 else 14134 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14135 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14136 fi 14137 ;; 14138 14139 solaris*) 14140 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 14141 ld_shlibs=no 14142 cat <<_LT_EOF 1>&2 14143 14144*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14145*** create shared libraries on Solaris systems. Therefore, libtool 14146*** is disabling shared libraries support. We urge you to upgrade GNU 14147*** binutils to release 2.9.1 or newer. Another option is to modify 14148*** your PATH or compiler configuration so that the native linker is 14149*** used, and then restart. 14150 14151_LT_EOF 14152 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14153 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14154 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14155 else 14156 ld_shlibs=no 14157 fi 14158 ;; 14159 14160 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14161 case `$LD -v 2>&1` in 14162 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14163 ld_shlibs=no 14164 cat <<_LT_EOF 1>&2 14165 14166*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 14167*** reliably create shared libraries on SCO systems. Therefore, libtool 14168*** is disabling shared libraries support. We urge you to upgrade GNU 14169*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14170*** your PATH or compiler configuration so that the native linker is 14171*** used, and then restart. 14172 14173_LT_EOF 14174 ;; 14175 *) 14176 # For security reasons, it is highly recommended that you always 14177 # use absolute paths for naming shared libraries, and exclude the 14178 # DT_RUNPATH tag from executables and libraries. But doing so 14179 # requires that you compile everything twice, which is a pain. 14180 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14181 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 14182 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14183 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14184 else 14185 ld_shlibs=no 14186 fi 14187 ;; 14188 esac 14189 ;; 14190 14191 sunos4*) 14192 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14193 wlarc= 14194 hardcode_direct=yes 14195 hardcode_shlibpath_var=no 14196 ;; 14197 14198 *) 14199 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14200 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14201 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14202 else 14203 ld_shlibs=no 14204 fi 14205 ;; 14206 esac 14207 14208 if test no = "$ld_shlibs"; then 14209 runpath_var= 14210 hardcode_libdir_flag_spec= 14211 export_dynamic_flag_spec= 14212 whole_archive_flag_spec= 14213 fi 14214 else 14215 # PORTME fill in a description of your system's linker (not GNU ld) 14216 case $host_os in 14217 aix3*) 14218 allow_undefined_flag=unsupported 14219 always_export_symbols=yes 14220 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' 14221 # Note: this linker hardcodes the directories in LIBPATH if there 14222 # are no directories specified by -L. 14223 hardcode_minus_L=yes 14224 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 14225 # Neither direct hardcoding nor static linking is supported with a 14226 # broken collect2. 14227 hardcode_direct=unsupported 14228 fi 14229 ;; 14230 14231 aix[4-9]*) 14232 if test ia64 = "$host_cpu"; then 14233 # On IA64, the linker does run time linking by default, so we don't 14234 # have to do anything special. 14235 aix_use_runtimelinking=no 14236 exp_sym_flag='-Bexport' 14237 no_entry_flag= 14238 else 14239 # If we're using GNU nm, then we don't want the "-C" option. 14240 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 14241 # Without the "-l" option, or with the "-B" option, AIX nm treats 14242 # weak defined symbols like other global defined symbols, whereas 14243 # GNU nm marks them as "W". 14244 # While the 'weak' keyword is ignored in the Export File, we need 14245 # it in the Import File for the 'aix-soname' feature, so we have 14246 # to replace the "-B" option with "-P" for AIX nm. 14247 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14248 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' 14249 else 14250 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 14251 fi 14252 aix_use_runtimelinking=no 14253 14254 # Test if we are trying to use run time linking or normal 14255 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14256 # have runtime linking enabled, and use it for executables. 14257 # For shared libraries, we enable/disable runtime linking 14258 # depending on the kind of the shared library created - 14259 # when "with_aix_soname,aix_use_runtimelinking" is: 14260 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 14261 # "aix,yes" lib.so shared, rtl:yes, for executables 14262 # lib.a static archive 14263 # "both,no" lib.so.V(shr.o) shared, rtl:yes 14264 # lib.a(lib.so.V) shared, rtl:no, for executables 14265 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 14266 # lib.a(lib.so.V) shared, rtl:no 14267 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 14268 # lib.a static archive 14269 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14270 for ld_flag in $LDFLAGS; do 14271 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 14272 aix_use_runtimelinking=yes 14273 break 14274 fi 14275 done 14276 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 14277 # With aix-soname=svr4, we create the lib.so.V shared archives only, 14278 # so we don't have lib.a shared libs to link our executables. 14279 # We have to force runtime linking in this case. 14280 aix_use_runtimelinking=yes 14281 LDFLAGS="$LDFLAGS -Wl,-brtl" 14282 fi 14283 ;; 14284 esac 14285 14286 exp_sym_flag='-bexport' 14287 no_entry_flag='-bnoentry' 14288 fi 14289 14290 # When large executables or shared objects are built, AIX ld can 14291 # have problems creating the table of contents. If linking a library 14292 # or program results in "error TOC overflow" add -mminimal-toc to 14293 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14294 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14295 14296 archive_cmds='' 14297 hardcode_direct=yes 14298 hardcode_direct_absolute=yes 14299 hardcode_libdir_separator=':' 14300 link_all_deplibs=yes 14301 file_list_spec='$wl-f,' 14302 case $with_aix_soname,$aix_use_runtimelinking in 14303 aix,*) ;; # traditional, no import file 14304 svr4,* | *,yes) # use import file 14305 # The Import File defines what to hardcode. 14306 hardcode_direct=no 14307 hardcode_direct_absolute=no 14308 ;; 14309 esac 14310 14311 if test yes = "$GCC"; then 14312 case $host_os in aix4.[012]|aix4.[012].*) 14313 # We only want to do this on AIX 4.2 and lower, the check 14314 # below for broken collect2 doesn't work under 4.3+ 14315 collect2name=`$CC -print-prog-name=collect2` 14316 if test -f "$collect2name" && 14317 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 14318 then 14319 # We have reworked collect2 14320 : 14321 else 14322 # We have old collect2 14323 hardcode_direct=unsupported 14324 # It fails to find uninstalled libraries when the uninstalled 14325 # path is not listed in the libpath. Setting hardcode_minus_L 14326 # to unsupported forces relinking 14327 hardcode_minus_L=yes 14328 hardcode_libdir_flag_spec='-L$libdir' 14329 hardcode_libdir_separator= 14330 fi 14331 ;; 14332 esac 14333 shared_flag='-shared' 14334 if test yes = "$aix_use_runtimelinking"; then 14335 shared_flag="$shared_flag "'$wl-G' 14336 fi 14337 # Need to ensure runtime linking is disabled for the traditional 14338 # shared library, or the linker may eventually find shared libraries 14339 # /with/ Import File - we do not want to mix them. 14340 shared_flag_aix='-shared' 14341 shared_flag_svr4='-shared $wl-G' 14342 else 14343 # not using gcc 14344 if test ia64 = "$host_cpu"; then 14345 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14346 # chokes on -Wl,-G. The following line is correct: 14347 shared_flag='-G' 14348 else 14349 if test yes = "$aix_use_runtimelinking"; then 14350 shared_flag='$wl-G' 14351 else 14352 shared_flag='$wl-bM:SRE' 14353 fi 14354 shared_flag_aix='$wl-bM:SRE' 14355 shared_flag_svr4='$wl-G' 14356 fi 14357 fi 14358 14359 export_dynamic_flag_spec='$wl-bexpall' 14360 # It seems that -bexpall does not export symbols beginning with 14361 # underscore (_), so it is better to generate a list of symbols to export. 14362 always_export_symbols=yes 14363 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 14364 # Warning - without using the other runtime loading flags (-brtl), 14365 # -berok will link without error, but may produce a broken library. 14366 allow_undefined_flag='-berok' 14367 # Determine the default libpath from the value encoded in an 14368 # empty executable. 14369 if test set = "${lt_cv_aix_libpath+set}"; then 14370 aix_libpath=$lt_cv_aix_libpath 14371else 14372 if test ${lt_cv_aix_libpath_+y} 14373then : 14374 printf %s "(cached) " >&6 14375else $as_nop 14376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14377/* end confdefs.h. */ 14378 14379int main(void) 14380{ 14381 14382 ; 14383 return 0; 14384} 14385_ACEOF 14386if ac_fn_c_try_link "$LINENO" 14387then : 14388 14389 lt_aix_libpath_sed=' 14390 /Import File Strings/,/^$/ { 14391 /^0/ { 14392 s/^0 *\([^ ]*\) *$/\1/ 14393 p 14394 } 14395 }' 14396 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14397 # Check for a 64-bit object if we didn't find anything. 14398 if test -z "$lt_cv_aix_libpath_"; then 14399 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14400 fi 14401fi 14402rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14403 conftest$ac_exeext conftest.$ac_ext 14404 if test -z "$lt_cv_aix_libpath_"; then 14405 lt_cv_aix_libpath_=/usr/lib:/lib 14406 fi 14407 14408fi 14409 14410 aix_libpath=$lt_cv_aix_libpath_ 14411fi 14412 14413 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 14414 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 14415 else 14416 if test ia64 = "$host_cpu"; then 14417 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 14418 allow_undefined_flag="-z nodefs" 14419 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" 14420 else 14421 # Determine the default libpath from the value encoded in an 14422 # empty executable. 14423 if test set = "${lt_cv_aix_libpath+set}"; then 14424 aix_libpath=$lt_cv_aix_libpath 14425else 14426 if test ${lt_cv_aix_libpath_+y} 14427then : 14428 printf %s "(cached) " >&6 14429else $as_nop 14430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14431/* end confdefs.h. */ 14432 14433int main(void) 14434{ 14435 14436 ; 14437 return 0; 14438} 14439_ACEOF 14440if ac_fn_c_try_link "$LINENO" 14441then : 14442 14443 lt_aix_libpath_sed=' 14444 /Import File Strings/,/^$/ { 14445 /^0/ { 14446 s/^0 *\([^ ]*\) *$/\1/ 14447 p 14448 } 14449 }' 14450 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14451 # Check for a 64-bit object if we didn't find anything. 14452 if test -z "$lt_cv_aix_libpath_"; then 14453 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14454 fi 14455fi 14456rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14457 conftest$ac_exeext conftest.$ac_ext 14458 if test -z "$lt_cv_aix_libpath_"; then 14459 lt_cv_aix_libpath_=/usr/lib:/lib 14460 fi 14461 14462fi 14463 14464 aix_libpath=$lt_cv_aix_libpath_ 14465fi 14466 14467 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 14468 # Warning - without using the other run time loading flags, 14469 # -berok will link without error, but may produce a broken library. 14470 no_undefined_flag=' $wl-bernotok' 14471 allow_undefined_flag=' $wl-berok' 14472 if test yes = "$with_gnu_ld"; then 14473 # We only use this code for GNU lds that support --whole-archive. 14474 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 14475 else 14476 # Exported symbols can be pulled into shared objects from archives 14477 whole_archive_flag_spec='$convenience' 14478 fi 14479 archive_cmds_need_lc=yes 14480 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 14481 # -brtl affects multiple linker settings, -berok does not and is overridden later 14482 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 14483 if test svr4 != "$with_aix_soname"; then 14484 # This is similar to how AIX traditionally builds its shared libraries. 14485 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' 14486 fi 14487 if test aix != "$with_aix_soname"; then 14488 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' 14489 else 14490 # used by -dlpreopen to get the symbols 14491 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 14492 fi 14493 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 14494 fi 14495 fi 14496 ;; 14497 14498 amigaos*) 14499 case $host_cpu in 14500 powerpc) 14501 # see comment about AmigaOS4 .so support 14502 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14503 archive_expsym_cmds='' 14504 ;; 14505 m68k) 14506 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)' 14507 hardcode_libdir_flag_spec='-L$libdir' 14508 hardcode_minus_L=yes 14509 ;; 14510 esac 14511 ;; 14512 14513 bsdi[45]*) 14514 export_dynamic_flag_spec=-rdynamic 14515 ;; 14516 14517 cygwin* | mingw* | pw32* | cegcc*) 14518 # When not using gcc, we currently assume that we are using 14519 # Microsoft Visual C++ or Intel C++ Compiler. 14520 # hardcode_libdir_flag_spec is actually meaningless, as there is 14521 # no search path for DLLs. 14522 case $cc_basename in 14523 cl* | icl*) 14524 # Native MSVC or ICC 14525 hardcode_libdir_flag_spec=' ' 14526 allow_undefined_flag=unsupported 14527 always_export_symbols=yes 14528 file_list_spec='@' 14529 # Tell ltmain to make .lib files, not .a files. 14530 libext=lib 14531 # Tell ltmain to make .dll files, not .so files. 14532 shrext_cmds=.dll 14533 # FIXME: Setting linknames here is a bad hack. 14534 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 14535 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14536 cp "$export_symbols" "$output_objdir/$soname.def"; 14537 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 14538 else 14539 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 14540 fi~ 14541 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14542 linknames=' 14543 # The linker will not automatically build a static lib if we build a DLL. 14544 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 14545 enable_shared_with_static_runtimes=yes 14546 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 14547 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14548 # Don't use ranlib 14549 old_postinstall_cmds='chmod 644 $oldlib' 14550 postlink_cmds='lt_outputfile="@OUTPUT@"~ 14551 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14552 case $lt_outputfile in 14553 *.exe|*.EXE) ;; 14554 *) 14555 lt_outputfile=$lt_outputfile.exe 14556 lt_tool_outputfile=$lt_tool_outputfile.exe 14557 ;; 14558 esac~ 14559 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 14560 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14561 $RM "$lt_outputfile.manifest"; 14562 fi' 14563 ;; 14564 *) 14565 # Assume MSVC and ICC wrapper 14566 hardcode_libdir_flag_spec=' ' 14567 allow_undefined_flag=unsupported 14568 # Tell ltmain to make .lib files, not .a files. 14569 libext=lib 14570 # Tell ltmain to make .dll files, not .so files. 14571 shrext_cmds=.dll 14572 # FIXME: Setting linknames here is a bad hack. 14573 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 14574 # The linker will automatically build a .lib file if we build a DLL. 14575 old_archive_from_new_cmds='true' 14576 # FIXME: Should let the user specify the lib program. 14577 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 14578 enable_shared_with_static_runtimes=yes 14579 ;; 14580 esac 14581 ;; 14582 14583 darwin* | rhapsody*) 14584 14585 14586 archive_cmds_need_lc=no 14587 hardcode_direct=no 14588 hardcode_automatic=yes 14589 hardcode_shlibpath_var=unsupported 14590 if test yes = "$lt_cv_ld_force_load"; then 14591 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\"`' 14592 14593 else 14594 whole_archive_flag_spec='' 14595 fi 14596 link_all_deplibs=yes 14597 allow_undefined_flag=$_lt_dar_allow_undefined 14598 case $cc_basename in 14599 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 14600 *) _lt_dar_can_shared=$GCC ;; 14601 esac 14602 if test yes = "$_lt_dar_can_shared"; then 14603 output_verbose_link_cmd=func_echo_all 14604 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 14605 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 14606 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" 14607 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" 14608 14609 else 14610 ld_shlibs=no 14611 fi 14612 14613 ;; 14614 14615 dgux*) 14616 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14617 hardcode_libdir_flag_spec='-L$libdir' 14618 hardcode_shlibpath_var=no 14619 ;; 14620 14621 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14622 # support. Future versions do this automatically, but an explicit c++rt0.o 14623 # does not break anything, and helps significantly (at the cost of a little 14624 # extra space). 14625 freebsd2.2*) 14626 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14627 hardcode_libdir_flag_spec='-R$libdir' 14628 hardcode_direct=yes 14629 hardcode_shlibpath_var=no 14630 ;; 14631 14632 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14633 freebsd2.*) 14634 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14635 hardcode_direct=yes 14636 hardcode_minus_L=yes 14637 hardcode_shlibpath_var=no 14638 ;; 14639 14640 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14641 freebsd* | dragonfly* | midnightbsd*) 14642 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14643 hardcode_libdir_flag_spec='-R$libdir' 14644 hardcode_direct=yes 14645 hardcode_shlibpath_var=no 14646 ;; 14647 14648 hpux9*) 14649 if test yes = "$GCC"; then 14650 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 14651 else 14652 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 14653 fi 14654 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 14655 hardcode_libdir_separator=: 14656 hardcode_direct=yes 14657 14658 # hardcode_minus_L: Not really in the search PATH, 14659 # but as the default location of the library. 14660 hardcode_minus_L=yes 14661 export_dynamic_flag_spec='$wl-E' 14662 ;; 14663 14664 hpux10*) 14665 if test yes,no = "$GCC,$with_gnu_ld"; then 14666 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14667 else 14668 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14669 fi 14670 if test no = "$with_gnu_ld"; then 14671 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 14672 hardcode_libdir_separator=: 14673 hardcode_direct=yes 14674 hardcode_direct_absolute=yes 14675 export_dynamic_flag_spec='$wl-E' 14676 # hardcode_minus_L: Not really in the search PATH, 14677 # but as the default location of the library. 14678 hardcode_minus_L=yes 14679 fi 14680 ;; 14681 14682 hpux11*) 14683 if test yes,no = "$GCC,$with_gnu_ld"; then 14684 case $host_cpu in 14685 hppa*64*) 14686 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 14687 ;; 14688 ia64*) 14689 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14690 ;; 14691 *) 14692 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14693 ;; 14694 esac 14695 else 14696 case $host_cpu in 14697 hppa*64*) 14698 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 14699 ;; 14700 ia64*) 14701 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14702 ;; 14703 *) 14704 14705 # Older versions of the 11.00 compiler do not understand -b yet 14706 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 14707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 14708printf %s "checking if $CC understands -b... " >&6; } 14709if test ${lt_cv_prog_compiler__b+y} 14710then : 14711 printf %s "(cached) " >&6 14712else $as_nop 14713 lt_cv_prog_compiler__b=no 14714 save_LDFLAGS=$LDFLAGS 14715 LDFLAGS="$LDFLAGS -b" 14716 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14717 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14718 # The linker can only warn and ignore the option if not recognized 14719 # So say no if there are warnings 14720 if test -s conftest.err; then 14721 # Append any errors to the config.log. 14722 cat conftest.err 1>&5 14723 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14724 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14725 if diff conftest.exp conftest.er2 >/dev/null; then 14726 lt_cv_prog_compiler__b=yes 14727 fi 14728 else 14729 lt_cv_prog_compiler__b=yes 14730 fi 14731 fi 14732 $RM -r conftest* 14733 LDFLAGS=$save_LDFLAGS 14734 14735fi 14736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 14737printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 14738 14739if test yes = "$lt_cv_prog_compiler__b"; then 14740 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14741else 14742 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14743fi 14744 14745 ;; 14746 esac 14747 fi 14748 if test no = "$with_gnu_ld"; then 14749 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 14750 hardcode_libdir_separator=: 14751 14752 case $host_cpu in 14753 hppa*64*|ia64*) 14754 hardcode_direct=no 14755 hardcode_shlibpath_var=no 14756 ;; 14757 *) 14758 hardcode_direct=yes 14759 hardcode_direct_absolute=yes 14760 export_dynamic_flag_spec='$wl-E' 14761 14762 # hardcode_minus_L: Not really in the search PATH, 14763 # but as the default location of the library. 14764 hardcode_minus_L=yes 14765 ;; 14766 esac 14767 fi 14768 ;; 14769 14770 irix5* | irix6* | nonstopux*) 14771 if test yes = "$GCC"; then 14772 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' 14773 # Try to use the -exported_symbol ld option, if it does not 14774 # work, assume that -exports_file does not work either and 14775 # implicitly export all symbols. 14776 # This should be the same for all languages, so no per-tag cache variable. 14777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 14778printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 14779if test ${lt_cv_irix_exported_symbol+y} 14780then : 14781 printf %s "(cached) " >&6 14782else $as_nop 14783 save_LDFLAGS=$LDFLAGS 14784 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 14785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14786/* end confdefs.h. */ 14787int foo (void) { return 0; } 14788_ACEOF 14789if ac_fn_c_try_link "$LINENO" 14790then : 14791 lt_cv_irix_exported_symbol=yes 14792else $as_nop 14793 lt_cv_irix_exported_symbol=no 14794fi 14795rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14796 conftest$ac_exeext conftest.$ac_ext 14797 LDFLAGS=$save_LDFLAGS 14798fi 14799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 14800printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 14801 if test yes = "$lt_cv_irix_exported_symbol"; then 14802 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' 14803 fi 14804 link_all_deplibs=no 14805 else 14806 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' 14807 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' 14808 fi 14809 archive_cmds_need_lc='no' 14810 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 14811 hardcode_libdir_separator=: 14812 inherit_rpath=yes 14813 link_all_deplibs=yes 14814 ;; 14815 14816 linux*) 14817 case $cc_basename in 14818 tcc*) 14819 # Fabrice Bellard et al's Tiny C Compiler 14820 ld_shlibs=yes 14821 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14822 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 14823 ;; 14824 esac 14825 ;; 14826 14827 netbsd* | netbsdelf*-gnu) 14828 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14829 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14830 else 14831 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14832 fi 14833 hardcode_libdir_flag_spec='-R$libdir' 14834 hardcode_direct=yes 14835 hardcode_shlibpath_var=no 14836 ;; 14837 14838 newsos6) 14839 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14840 hardcode_direct=yes 14841 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 14842 hardcode_libdir_separator=: 14843 hardcode_shlibpath_var=no 14844 ;; 14845 14846 *nto* | *qnx*) 14847 ;; 14848 14849 openbsd* | bitrig*) 14850 if test -f /usr/libexec/ld.so; then 14851 hardcode_direct=yes 14852 hardcode_shlibpath_var=no 14853 hardcode_direct_absolute=yes 14854 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 14855 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14856 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 14857 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 14858 export_dynamic_flag_spec='$wl-E' 14859 else 14860 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14861 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 14862 fi 14863 else 14864 ld_shlibs=no 14865 fi 14866 ;; 14867 14868 os2*) 14869 hardcode_libdir_flag_spec='-L$libdir' 14870 hardcode_minus_L=yes 14871 allow_undefined_flag=unsupported 14872 shrext_cmds=.dll 14873 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14874 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14875 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14876 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14877 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 14878 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14879 emximp -o $lib $output_objdir/$libname.def' 14880 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14881 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14882 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14883 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14884 prefix_cmds="$SED"~ 14885 if test EXPORTS = "`$SED 1q $export_symbols`"; then 14886 prefix_cmds="$prefix_cmds -e 1d"; 14887 fi~ 14888 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 14889 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 14890 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14891 emximp -o $lib $output_objdir/$libname.def' 14892 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 14893 enable_shared_with_static_runtimes=yes 14894 file_list_spec='@' 14895 ;; 14896 14897 osf3*) 14898 if test yes = "$GCC"; then 14899 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 14900 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' 14901 else 14902 allow_undefined_flag=' -expect_unresolved \*' 14903 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' 14904 fi 14905 archive_cmds_need_lc='no' 14906 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 14907 hardcode_libdir_separator=: 14908 ;; 14909 14910 osf4* | osf5*) # as osf3* with the addition of -msym flag 14911 if test yes = "$GCC"; then 14912 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 14913 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' 14914 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 14915 else 14916 allow_undefined_flag=' -expect_unresolved \*' 14917 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' 14918 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~ 14919 $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' 14920 14921 # Both c and cxx compiler support -rpath directly 14922 hardcode_libdir_flag_spec='-rpath $libdir' 14923 fi 14924 archive_cmds_need_lc='no' 14925 hardcode_libdir_separator=: 14926 ;; 14927 14928 solaris*) 14929 no_undefined_flag=' -z defs' 14930 if test yes = "$GCC"; then 14931 wlarc='$wl' 14932 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 14933 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14934 $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' 14935 else 14936 case `$CC -V 2>&1` in 14937 *"Compilers 5.0"*) 14938 wlarc='' 14939 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 14940 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14941 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 14942 ;; 14943 *) 14944 wlarc='$wl' 14945 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 14946 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14947 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 14948 ;; 14949 esac 14950 fi 14951 hardcode_libdir_flag_spec='-R$libdir' 14952 hardcode_shlibpath_var=no 14953 case $host_os in 14954 solaris2.[0-5] | solaris2.[0-5].*) ;; 14955 *) 14956 # The compiler driver will combine and reorder linker options, 14957 # but understands '-z linker_flag'. GCC discards it without '$wl', 14958 # but is careful enough not to reorder. 14959 # Supported since Solaris 2.6 (maybe 2.5.1?) 14960 if test yes = "$GCC"; then 14961 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 14962 else 14963 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 14964 fi 14965 ;; 14966 esac 14967 link_all_deplibs=yes 14968 ;; 14969 14970 sunos4*) 14971 if test sequent = "$host_vendor"; then 14972 # Use $CC to link under sequent, because it throws in some extra .o 14973 # files that make .init and .fini sections work. 14974 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14975 else 14976 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14977 fi 14978 hardcode_libdir_flag_spec='-L$libdir' 14979 hardcode_direct=yes 14980 hardcode_minus_L=yes 14981 hardcode_shlibpath_var=no 14982 ;; 14983 14984 sysv4) 14985 case $host_vendor in 14986 sni) 14987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14988 hardcode_direct=yes # is this really true??? 14989 ;; 14990 siemens) 14991 ## LD is ld it makes a PLAMLIB 14992 ## CC just makes a GrossModule. 14993 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14994 reload_cmds='$CC -r -o $output$reload_objs' 14995 hardcode_direct=no 14996 ;; 14997 motorola) 14998 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14999 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 15000 ;; 15001 esac 15002 runpath_var='LD_RUN_PATH' 15003 hardcode_shlibpath_var=no 15004 ;; 15005 15006 sysv4.3*) 15007 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15008 hardcode_shlibpath_var=no 15009 export_dynamic_flag_spec='-Bexport' 15010 ;; 15011 15012 sysv4*MP*) 15013 if test -d /usr/nec; then 15014 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15015 hardcode_shlibpath_var=no 15016 runpath_var=LD_RUN_PATH 15017 hardcode_runpath_var=yes 15018 ld_shlibs=yes 15019 fi 15020 ;; 15021 15022 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15023 no_undefined_flag='$wl-z,text' 15024 archive_cmds_need_lc=no 15025 hardcode_shlibpath_var=no 15026 runpath_var='LD_RUN_PATH' 15027 15028 if test yes = "$GCC"; then 15029 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15030 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15031 else 15032 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15033 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15034 fi 15035 ;; 15036 15037 sysv5* | sco3.2v5* | sco5v6*) 15038 # Note: We CANNOT use -z defs as we might desire, because we do not 15039 # link with -lc, and that would cause any symbols used from libc to 15040 # always be unresolved, which means just about no library would 15041 # ever link correctly. If we're not using GNU ld we use -z text 15042 # though, which does catch some bad symbols but isn't as heavy-handed 15043 # as -z defs. 15044 no_undefined_flag='$wl-z,text' 15045 allow_undefined_flag='$wl-z,nodefs' 15046 archive_cmds_need_lc=no 15047 hardcode_shlibpath_var=no 15048 hardcode_libdir_flag_spec='$wl-R,$libdir' 15049 hardcode_libdir_separator=':' 15050 link_all_deplibs=yes 15051 export_dynamic_flag_spec='$wl-Bexport' 15052 runpath_var='LD_RUN_PATH' 15053 15054 if test yes = "$GCC"; then 15055 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15056 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15057 else 15058 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15059 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15060 fi 15061 ;; 15062 15063 uts4*) 15064 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15065 hardcode_libdir_flag_spec='-L$libdir' 15066 hardcode_shlibpath_var=no 15067 ;; 15068 15069 *) 15070 ld_shlibs=no 15071 ;; 15072 esac 15073 15074 if test sni = "$host_vendor"; then 15075 case $host in 15076 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15077 export_dynamic_flag_spec='$wl-Blargedynsym' 15078 ;; 15079 esac 15080 fi 15081 fi 15082 15083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 15084printf "%s\n" "$ld_shlibs" >&6; } 15085test no = "$ld_shlibs" && can_build_shared=no 15086 15087with_gnu_ld=$with_gnu_ld 15088 15089 15090 15091 15092 15093 15094 15095 15096 15097 15098 15099 15100 15101 15102 15103# 15104# Do we need to explicitly link libc? 15105# 15106case "x$archive_cmds_need_lc" in 15107x|xyes) 15108 # Assume -lc should be added 15109 archive_cmds_need_lc=yes 15110 15111 if test yes,yes = "$GCC,$enable_shared"; then 15112 case $archive_cmds in 15113 *'~'*) 15114 # FIXME: we may have to deal with multi-command sequences. 15115 ;; 15116 '$CC '*) 15117 # Test whether the compiler implicitly links with -lc since on some 15118 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15119 # to ld, don't add -lc before -lgcc. 15120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15121printf %s "checking whether -lc should be explicitly linked in... " >&6; } 15122if test ${lt_cv_archive_cmds_need_lc+y} 15123then : 15124 printf %s "(cached) " >&6 15125else $as_nop 15126 $RM conftest* 15127 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15128 15129 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15130 (eval $ac_compile) 2>&5 15131 ac_status=$? 15132 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15133 test $ac_status = 0; } 2>conftest.err; then 15134 soname=conftest 15135 lib=conftest 15136 libobjs=conftest.$ac_objext 15137 deplibs= 15138 wl=$lt_prog_compiler_wl 15139 pic_flag=$lt_prog_compiler_pic 15140 compiler_flags=-v 15141 linker_flags=-v 15142 verstring= 15143 output_objdir=. 15144 libname=conftest 15145 lt_save_allow_undefined_flag=$allow_undefined_flag 15146 allow_undefined_flag= 15147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15148 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15149 ac_status=$? 15150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15151 test $ac_status = 0; } 15152 then 15153 lt_cv_archive_cmds_need_lc=no 15154 else 15155 lt_cv_archive_cmds_need_lc=yes 15156 fi 15157 allow_undefined_flag=$lt_save_allow_undefined_flag 15158 else 15159 cat conftest.err 1>&5 15160 fi 15161 $RM conftest* 15162 15163fi 15164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 15165printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 15166 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 15167 ;; 15168 esac 15169 fi 15170 ;; 15171esac 15172 15173 15174 15175 15176 15177 15178 15179 15180 15181 15182 15183 15184 15185 15186 15187 15188 15189 15190 15191 15192 15193 15194 15195 15196 15197 15198 15199 15200 15201 15202 15203 15204 15205 15206 15207 15208 15209 15210 15211 15212 15213 15214 15215 15216 15217 15218 15219 15220 15221 15222 15223 15224 15225 15226 15227 15228 15229 15230 15231 15232 15233 15234 15235 15236 15237 15238 15239 15240 15241 15242 15243 15244 15245 15246 15247 15248 15249 15250 15251 15252 15253 15254 15255 15256 15257 15258 15259 15260 15261 15262 15263 15264 15265 15266 15267 15268 15269 15270 15271 15272 15273 15274 15275 15276 15277 15278 15279 15280 15281 15282 15283 15284 15285 15286 15287 15288 15289 15290 15291 15292 15293 15294 15295 15296 15297 15298 15299 15300 15301 15302 15303 15304 15305 15306 15307 15308 15309 15310 15311 15312 15313 15314 15315 15316 15317 15318 15319 15320 15321 15322 15323 15324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15325printf %s "checking dynamic linker characteristics... " >&6; } 15326 15327if test yes = "$GCC"; then 15328 case $host_os in 15329 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 15330 *) lt_awk_arg='/^libraries:/' ;; 15331 esac 15332 case $host_os in 15333 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 15334 *) lt_sed_strip_eq='s|=/|/|g' ;; 15335 esac 15336 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 15337 case $lt_search_path_spec in 15338 *\;*) 15339 # if the path contains ";" then we assume it to be the separator 15340 # otherwise default to the standard path separator (i.e. ":") - it is 15341 # assumed that no part of a normal pathname contains ";" but that should 15342 # okay in the real world where ";" in dirpaths is itself problematic. 15343 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 15344 ;; 15345 *) 15346 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 15347 ;; 15348 esac 15349 # Ok, now we have the path, separated by spaces, we can step through it 15350 # and add multilib dir if necessary... 15351 lt_tmp_lt_search_path_spec= 15352 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 15353 # ...but if some path component already ends with the multilib dir we assume 15354 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 15355 case "$lt_multi_os_dir; $lt_search_path_spec " in 15356 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 15357 lt_multi_os_dir= 15358 ;; 15359 esac 15360 for lt_sys_path in $lt_search_path_spec; do 15361 if test -d "$lt_sys_path$lt_multi_os_dir"; then 15362 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 15363 elif test -n "$lt_multi_os_dir"; then 15364 test -d "$lt_sys_path" && \ 15365 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 15366 fi 15367 done 15368 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 15369BEGIN {RS = " "; FS = "/|\n";} { 15370 lt_foo = ""; 15371 lt_count = 0; 15372 for (lt_i = NF; lt_i > 0; lt_i--) { 15373 if ($lt_i != "" && $lt_i != ".") { 15374 if ($lt_i == "..") { 15375 lt_count++; 15376 } else { 15377 if (lt_count == 0) { 15378 lt_foo = "/" $lt_i lt_foo; 15379 } else { 15380 lt_count--; 15381 } 15382 } 15383 } 15384 } 15385 if (lt_foo != "") { lt_freq[lt_foo]++; } 15386 if (lt_freq[lt_foo] == 1) { print lt_foo; } 15387}'` 15388 # AWK program above erroneously prepends '/' to C:/dos/paths 15389 # for these hosts. 15390 case $host_os in 15391 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 15392 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 15393 esac 15394 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 15395else 15396 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15397fi 15398library_names_spec= 15399libname_spec='lib$name' 15400soname_spec= 15401shrext_cmds=.so 15402postinstall_cmds= 15403postuninstall_cmds= 15404finish_cmds= 15405finish_eval= 15406shlibpath_var= 15407shlibpath_overrides_runpath=unknown 15408version_type=none 15409dynamic_linker="$host_os ld.so" 15410sys_lib_dlsearch_path_spec="/lib /usr/lib" 15411need_lib_prefix=unknown 15412hardcode_into_libs=no 15413 15414# when you set need_version to no, make sure it does not cause -set_version 15415# flags to be left without arguments 15416need_version=unknown 15417 15418 15419 15420case $host_os in 15421aix3*) 15422 version_type=linux # correct to gnu/linux during the next big refactor 15423 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 15424 shlibpath_var=LIBPATH 15425 15426 # AIX 3 has no versioning support, so we append a major version to the name. 15427 soname_spec='$libname$release$shared_ext$major' 15428 ;; 15429 15430aix[4-9]*) 15431 version_type=linux # correct to gnu/linux during the next big refactor 15432 need_lib_prefix=no 15433 need_version=no 15434 hardcode_into_libs=yes 15435 if test ia64 = "$host_cpu"; then 15436 # AIX 5 supports IA64 15437 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 15438 shlibpath_var=LD_LIBRARY_PATH 15439 else 15440 # With GCC up to 2.95.x, collect2 would create an import file 15441 # for dependence libraries. The import file would start with 15442 # the line '#! .'. This would cause the generated library to 15443 # depend on '.', always an invalid library. This was fixed in 15444 # development snapshots of GCC prior to 3.0. 15445 case $host_os in 15446 aix4 | aix4.[01] | aix4.[01].*) 15447 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15448 echo ' yes ' 15449 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 15450 : 15451 else 15452 can_build_shared=no 15453 fi 15454 ;; 15455 esac 15456 # Using Import Files as archive members, it is possible to support 15457 # filename-based versioning of shared library archives on AIX. While 15458 # this would work for both with and without runtime linking, it will 15459 # prevent static linking of such archives. So we do filename-based 15460 # shared library versioning with .so extension only, which is used 15461 # when both runtime linking and shared linking is enabled. 15462 # Unfortunately, runtime linking may impact performance, so we do 15463 # not want this to be the default eventually. Also, we use the 15464 # versioned .so libs for executables only if there is the -brtl 15465 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 15466 # To allow for filename-based versioning support, we need to create 15467 # libNAME.so.V as an archive file, containing: 15468 # *) an Import File, referring to the versioned filename of the 15469 # archive as well as the shared archive member, telling the 15470 # bitwidth (32 or 64) of that shared object, and providing the 15471 # list of exported symbols of that shared object, eventually 15472 # decorated with the 'weak' keyword 15473 # *) the shared object with the F_LOADONLY flag set, to really avoid 15474 # it being seen by the linker. 15475 # At run time we better use the real file rather than another symlink, 15476 # but for link time we create the symlink libNAME.so -> libNAME.so.V 15477 15478 case $with_aix_soname,$aix_use_runtimelinking in 15479 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 15480 # soname into executable. Probably we can add versioning support to 15481 # collect2, so additional links can be useful in future. 15482 aix,yes) # traditional libtool 15483 dynamic_linker='AIX unversionable lib.so' 15484 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15485 # instead of lib<name>.a to let people know that these are not 15486 # typical AIX shared libraries. 15487 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15488 ;; 15489 aix,no) # traditional AIX only 15490 dynamic_linker='AIX lib.a(lib.so.V)' 15491 # We preserve .a as extension for shared libraries through AIX4.2 15492 # and later when we are not doing run time linking. 15493 library_names_spec='$libname$release.a $libname.a' 15494 soname_spec='$libname$release$shared_ext$major' 15495 ;; 15496 svr4,*) # full svr4 only 15497 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 15498 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15499 # We do not specify a path in Import Files, so LIBPATH fires. 15500 shlibpath_overrides_runpath=yes 15501 ;; 15502 *,yes) # both, prefer svr4 15503 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 15504 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15505 # unpreferred sharedlib libNAME.a needs extra handling 15506 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"' 15507 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"' 15508 # We do not specify a path in Import Files, so LIBPATH fires. 15509 shlibpath_overrides_runpath=yes 15510 ;; 15511 *,no) # both, prefer aix 15512 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 15513 library_names_spec='$libname$release.a $libname.a' 15514 soname_spec='$libname$release$shared_ext$major' 15515 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 15516 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)' 15517 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"' 15518 ;; 15519 esac 15520 shlibpath_var=LIBPATH 15521 fi 15522 ;; 15523 15524amigaos*) 15525 case $host_cpu in 15526 powerpc) 15527 # Since July 2007 AmigaOS4 officially supports .so libraries. 15528 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15529 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15530 ;; 15531 m68k) 15532 library_names_spec='$libname.ixlibrary $libname.a' 15533 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15534 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' 15535 ;; 15536 esac 15537 ;; 15538 15539beos*) 15540 library_names_spec='$libname$shared_ext' 15541 dynamic_linker="$host_os ld.so" 15542 shlibpath_var=LIBRARY_PATH 15543 ;; 15544 15545bsdi[45]*) 15546 version_type=linux # correct to gnu/linux during the next big refactor 15547 need_version=no 15548 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15549 soname_spec='$libname$release$shared_ext$major' 15550 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15551 shlibpath_var=LD_LIBRARY_PATH 15552 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15553 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15554 # the default ld.so.conf also contains /usr/contrib/lib and 15555 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15556 # libtool to hard-code these into programs 15557 ;; 15558 15559cygwin* | mingw* | pw32* | cegcc*) 15560 version_type=windows 15561 shrext_cmds=.dll 15562 need_version=no 15563 need_lib_prefix=no 15564 15565 case $GCC,$cc_basename in 15566 yes,*) 15567 # gcc 15568 library_names_spec='$libname.dll.a' 15569 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15570 postinstall_cmds='base_file=`basename \$file`~ 15571 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15572 dldir=$destdir/`dirname \$dlpath`~ 15573 test -d \$dldir || mkdir -p \$dldir~ 15574 $install_prog $dir/$dlname \$dldir/$dlname~ 15575 chmod a+x \$dldir/$dlname~ 15576 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15577 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15578 fi' 15579 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15580 dlpath=$dir/\$dldll~ 15581 $RM \$dlpath' 15582 shlibpath_overrides_runpath=yes 15583 15584 case $host_os in 15585 cygwin*) 15586 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15587 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15588 15589 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 15590 ;; 15591 mingw* | cegcc*) 15592 # MinGW DLLs use traditional 'lib' prefix 15593 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15594 ;; 15595 pw32*) 15596 # pw32 DLLs use 'pw' prefix rather than 'lib' 15597 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15598 ;; 15599 esac 15600 dynamic_linker='Win32 ld.exe' 15601 ;; 15602 15603 *,cl* | *,icl*) 15604 # Native MSVC or ICC 15605 libname_spec='$name' 15606 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15607 library_names_spec='$libname.dll.lib' 15608 15609 case $build_os in 15610 mingw*) 15611 sys_lib_search_path_spec= 15612 lt_save_ifs=$IFS 15613 IFS=';' 15614 for lt_path in $LIB 15615 do 15616 IFS=$lt_save_ifs 15617 # Let DOS variable expansion print the short 8.3 style file name. 15618 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15619 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15620 done 15621 IFS=$lt_save_ifs 15622 # Convert to MSYS style. 15623 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15624 ;; 15625 cygwin*) 15626 # Convert to unix form, then to dos form, then back to unix form 15627 # but this time dos style (no spaces!) so that the unix form looks 15628 # like /cygdrive/c/PROGRA~1:/cygdr... 15629 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15630 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15631 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15632 ;; 15633 *) 15634 sys_lib_search_path_spec=$LIB 15635 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15636 # It is most probably a Windows format PATH. 15637 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15638 else 15639 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15640 fi 15641 # FIXME: find the short name or the path components, as spaces are 15642 # common. (e.g. "Program Files" -> "PROGRA~1") 15643 ;; 15644 esac 15645 15646 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15647 postinstall_cmds='base_file=`basename \$file`~ 15648 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15649 dldir=$destdir/`dirname \$dlpath`~ 15650 test -d \$dldir || mkdir -p \$dldir~ 15651 $install_prog $dir/$dlname \$dldir/$dlname' 15652 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15653 dlpath=$dir/\$dldll~ 15654 $RM \$dlpath' 15655 shlibpath_overrides_runpath=yes 15656 dynamic_linker='Win32 link.exe' 15657 ;; 15658 15659 *) 15660 # Assume MSVC and ICC wrapper 15661 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 15662 dynamic_linker='Win32 ld.exe' 15663 ;; 15664 esac 15665 # FIXME: first we should search . and the directory the executable is in 15666 shlibpath_var=PATH 15667 ;; 15668 15669darwin* | rhapsody*) 15670 dynamic_linker="$host_os dyld" 15671 version_type=darwin 15672 need_lib_prefix=no 15673 need_version=no 15674 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 15675 soname_spec='$libname$release$major$shared_ext' 15676 shlibpath_overrides_runpath=yes 15677 shlibpath_var=DYLD_LIBRARY_PATH 15678 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15679 15680 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 15681 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15682 ;; 15683 15684dgux*) 15685 version_type=linux # correct to gnu/linux during the next big refactor 15686 need_lib_prefix=no 15687 need_version=no 15688 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15689 soname_spec='$libname$release$shared_ext$major' 15690 shlibpath_var=LD_LIBRARY_PATH 15691 ;; 15692 15693freebsd* | dragonfly* | midnightbsd*) 15694 # DragonFly does not have aout. When/if they implement a new 15695 # versioning mechanism, adjust this. 15696 if test -x /usr/bin/objformat; then 15697 objformat=`/usr/bin/objformat` 15698 else 15699 case $host_os in 15700 freebsd[23].*) objformat=aout ;; 15701 *) objformat=elf ;; 15702 esac 15703 fi 15704 version_type=freebsd-$objformat 15705 case $version_type in 15706 freebsd-elf*) 15707 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15708 soname_spec='$libname$release$shared_ext$major' 15709 need_version=no 15710 need_lib_prefix=no 15711 ;; 15712 freebsd-*) 15713 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15714 need_version=yes 15715 ;; 15716 esac 15717 shlibpath_var=LD_LIBRARY_PATH 15718 case $host_os in 15719 freebsd2.*) 15720 shlibpath_overrides_runpath=yes 15721 ;; 15722 freebsd3.[01]* | freebsdelf3.[01]*) 15723 shlibpath_overrides_runpath=yes 15724 hardcode_into_libs=yes 15725 ;; 15726 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15727 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15728 shlibpath_overrides_runpath=no 15729 hardcode_into_libs=yes 15730 ;; 15731 *) # from 4.6 on, and DragonFly 15732 shlibpath_overrides_runpath=yes 15733 hardcode_into_libs=yes 15734 ;; 15735 esac 15736 ;; 15737 15738haiku*) 15739 version_type=linux # correct to gnu/linux during the next big refactor 15740 need_lib_prefix=no 15741 need_version=no 15742 dynamic_linker="$host_os runtime_loader" 15743 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15744 soname_spec='$libname$release$shared_ext$major' 15745 shlibpath_var=LIBRARY_PATH 15746 shlibpath_overrides_runpath=no 15747 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15748 hardcode_into_libs=yes 15749 ;; 15750 15751hpux9* | hpux10* | hpux11*) 15752 # Give a soname corresponding to the major version so that dld.sl refuses to 15753 # link against other versions. 15754 version_type=sunos 15755 need_lib_prefix=no 15756 need_version=no 15757 case $host_cpu in 15758 ia64*) 15759 shrext_cmds='.so' 15760 hardcode_into_libs=yes 15761 dynamic_linker="$host_os dld.so" 15762 shlibpath_var=LD_LIBRARY_PATH 15763 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15764 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15765 soname_spec='$libname$release$shared_ext$major' 15766 if test 32 = "$HPUX_IA64_MODE"; then 15767 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15768 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 15769 else 15770 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15771 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 15772 fi 15773 ;; 15774 hppa*64*) 15775 shrext_cmds='.sl' 15776 hardcode_into_libs=yes 15777 dynamic_linker="$host_os dld.sl" 15778 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15779 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15780 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15781 soname_spec='$libname$release$shared_ext$major' 15782 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15783 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15784 ;; 15785 *) 15786 shrext_cmds='.sl' 15787 dynamic_linker="$host_os dld.sl" 15788 shlibpath_var=SHLIB_PATH 15789 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15790 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15791 soname_spec='$libname$release$shared_ext$major' 15792 ;; 15793 esac 15794 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15795 postinstall_cmds='chmod 555 $lib' 15796 # or fails outright, so override atomically: 15797 install_override_mode=555 15798 ;; 15799 15800interix[3-9]*) 15801 version_type=linux # correct to gnu/linux during the next big refactor 15802 need_lib_prefix=no 15803 need_version=no 15804 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15805 soname_spec='$libname$release$shared_ext$major' 15806 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15807 shlibpath_var=LD_LIBRARY_PATH 15808 shlibpath_overrides_runpath=no 15809 hardcode_into_libs=yes 15810 ;; 15811 15812irix5* | irix6* | nonstopux*) 15813 case $host_os in 15814 nonstopux*) version_type=nonstopux ;; 15815 *) 15816 if test yes = "$lt_cv_prog_gnu_ld"; then 15817 version_type=linux # correct to gnu/linux during the next big refactor 15818 else 15819 version_type=irix 15820 fi ;; 15821 esac 15822 need_lib_prefix=no 15823 need_version=no 15824 soname_spec='$libname$release$shared_ext$major' 15825 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 15826 case $host_os in 15827 irix5* | nonstopux*) 15828 libsuff= shlibsuff= 15829 ;; 15830 *) 15831 case $LD in # libtool.m4 will add one of these switches to LD 15832 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15833 libsuff= shlibsuff= libmagic=32-bit;; 15834 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15835 libsuff=32 shlibsuff=N32 libmagic=N32;; 15836 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15837 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15838 *) libsuff= shlibsuff= libmagic=never-match;; 15839 esac 15840 ;; 15841 esac 15842 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15843 shlibpath_overrides_runpath=no 15844 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 15845 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 15846 hardcode_into_libs=yes 15847 ;; 15848 15849# No shared lib support for Linux oldld, aout, or coff. 15850linux*oldld* | linux*aout* | linux*coff*) 15851 dynamic_linker=no 15852 ;; 15853 15854linux*android*) 15855 version_type=none # Android doesn't support versioned libraries. 15856 need_lib_prefix=no 15857 need_version=no 15858 library_names_spec='$libname$release$shared_ext' 15859 soname_spec='$libname$release$shared_ext' 15860 finish_cmds= 15861 shlibpath_var=LD_LIBRARY_PATH 15862 shlibpath_overrides_runpath=yes 15863 15864 # This implies no fast_install, which is unacceptable. 15865 # Some rework will be needed to allow for fast_install 15866 # before this can be enabled. 15867 hardcode_into_libs=yes 15868 15869 dynamic_linker='Android linker' 15870 # Don't embed -rpath directories since the linker doesn't support them. 15871 hardcode_libdir_flag_spec='-L$libdir' 15872 ;; 15873 15874# This must be glibc/ELF. 15875linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15876 version_type=linux # correct to gnu/linux during the next big refactor 15877 need_lib_prefix=no 15878 need_version=no 15879 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15880 soname_spec='$libname$release$shared_ext$major' 15881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15882 shlibpath_var=LD_LIBRARY_PATH 15883 shlibpath_overrides_runpath=no 15884 15885 # Some binutils ld are patched to set DT_RUNPATH 15886 if test ${lt_cv_shlibpath_overrides_runpath+y} 15887then : 15888 printf %s "(cached) " >&6 15889else $as_nop 15890 lt_cv_shlibpath_overrides_runpath=no 15891 save_LDFLAGS=$LDFLAGS 15892 save_libdir=$libdir 15893 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 15894 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 15895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15896/* end confdefs.h. */ 15897 15898int main(void) 15899{ 15900 15901 ; 15902 return 0; 15903} 15904_ACEOF 15905if ac_fn_c_try_link "$LINENO" 15906then : 15907 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 15908then : 15909 lt_cv_shlibpath_overrides_runpath=yes 15910fi 15911fi 15912rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15913 conftest$ac_exeext conftest.$ac_ext 15914 LDFLAGS=$save_LDFLAGS 15915 libdir=$save_libdir 15916 15917fi 15918 15919 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15920 15921 # This implies no fast_install, which is unacceptable. 15922 # Some rework will be needed to allow for fast_install 15923 # before this can be enabled. 15924 hardcode_into_libs=yes 15925 15926 # Ideally, we could use ldconfig to report *all* directores which are 15927 # searched for libraries, however this is still not possible. Aside from not 15928 # being certain /sbin/ldconfig is available, command 15929 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 15930 # even though it is searched at run-time. Try to do the best guess by 15931 # appending ld.so.conf contents (and includes) to the search path. 15932 if test -f /etc/ld.so.conf; then 15933 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' ' '` 15934 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15935 fi 15936 15937 # We used to test for /lib/ld.so.1 and disable shared libraries on 15938 # powerpc, because MkLinux only supported shared libraries with the 15939 # GNU dynamic linker. Since this was broken with cross compilers, 15940 # most powerpc-linux boxes support dynamic linking these days and 15941 # people can always --disable-shared, the test was removed, and we 15942 # assume the GNU/Linux dynamic linker is in use. 15943 dynamic_linker='GNU/Linux ld.so' 15944 ;; 15945 15946netbsdelf*-gnu) 15947 version_type=linux 15948 need_lib_prefix=no 15949 need_version=no 15950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15951 soname_spec='${libname}${release}${shared_ext}$major' 15952 shlibpath_var=LD_LIBRARY_PATH 15953 shlibpath_overrides_runpath=no 15954 hardcode_into_libs=yes 15955 dynamic_linker='NetBSD ld.elf_so' 15956 ;; 15957 15958netbsd*) 15959 version_type=sunos 15960 need_lib_prefix=no 15961 need_version=no 15962 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15963 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15964 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15965 dynamic_linker='NetBSD (a.out) ld.so' 15966 else 15967 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15968 soname_spec='$libname$release$shared_ext$major' 15969 dynamic_linker='NetBSD ld.elf_so' 15970 fi 15971 shlibpath_var=LD_LIBRARY_PATH 15972 shlibpath_overrides_runpath=yes 15973 hardcode_into_libs=yes 15974 ;; 15975 15976newsos6) 15977 version_type=linux # correct to gnu/linux during the next big refactor 15978 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15979 shlibpath_var=LD_LIBRARY_PATH 15980 shlibpath_overrides_runpath=yes 15981 ;; 15982 15983*nto* | *qnx*) 15984 version_type=qnx 15985 need_lib_prefix=no 15986 need_version=no 15987 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15988 soname_spec='$libname$release$shared_ext$major' 15989 shlibpath_var=LD_LIBRARY_PATH 15990 shlibpath_overrides_runpath=no 15991 hardcode_into_libs=yes 15992 dynamic_linker='ldqnx.so' 15993 ;; 15994 15995openbsd* | bitrig*) 15996 version_type=sunos 15997 sys_lib_dlsearch_path_spec=/usr/lib 15998 need_lib_prefix=no 15999 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16000 need_version=no 16001 else 16002 need_version=yes 16003 fi 16004 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16005 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16006 shlibpath_var=LD_LIBRARY_PATH 16007 shlibpath_overrides_runpath=yes 16008 ;; 16009 16010os2*) 16011 libname_spec='$name' 16012 version_type=windows 16013 shrext_cmds=.dll 16014 need_version=no 16015 need_lib_prefix=no 16016 # OS/2 can only load a DLL with a base name of 8 characters or less. 16017 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 16018 v=$($ECHO $release$versuffix | tr -d .-); 16019 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 16020 $ECHO $n$v`$shared_ext' 16021 library_names_spec='${libname}_dll.$libext' 16022 dynamic_linker='OS/2 ld.exe' 16023 shlibpath_var=BEGINLIBPATH 16024 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16025 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16026 postinstall_cmds='base_file=`basename \$file`~ 16027 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 16028 dldir=$destdir/`dirname \$dlpath`~ 16029 test -d \$dldir || mkdir -p \$dldir~ 16030 $install_prog $dir/$dlname \$dldir/$dlname~ 16031 chmod a+x \$dldir/$dlname~ 16032 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16033 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16034 fi' 16035 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 16036 dlpath=$dir/\$dldll~ 16037 $RM \$dlpath' 16038 ;; 16039 16040osf3* | osf4* | osf5*) 16041 version_type=osf 16042 need_lib_prefix=no 16043 need_version=no 16044 soname_spec='$libname$release$shared_ext$major' 16045 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16046 shlibpath_var=LD_LIBRARY_PATH 16047 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16048 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16049 ;; 16050 16051rdos*) 16052 dynamic_linker=no 16053 ;; 16054 16055solaris*) 16056 version_type=linux # correct to gnu/linux during the next big refactor 16057 need_lib_prefix=no 16058 need_version=no 16059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16060 soname_spec='$libname$release$shared_ext$major' 16061 shlibpath_var=LD_LIBRARY_PATH 16062 shlibpath_overrides_runpath=yes 16063 hardcode_into_libs=yes 16064 # ldd complains unless libraries are executable 16065 postinstall_cmds='chmod +x $lib' 16066 ;; 16067 16068sunos4*) 16069 version_type=sunos 16070 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16071 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16072 shlibpath_var=LD_LIBRARY_PATH 16073 shlibpath_overrides_runpath=yes 16074 if test yes = "$with_gnu_ld"; then 16075 need_lib_prefix=no 16076 fi 16077 need_version=yes 16078 ;; 16079 16080sysv4 | sysv4.3*) 16081 version_type=linux # correct to gnu/linux during the next big refactor 16082 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16083 soname_spec='$libname$release$shared_ext$major' 16084 shlibpath_var=LD_LIBRARY_PATH 16085 case $host_vendor in 16086 sni) 16087 shlibpath_overrides_runpath=no 16088 need_lib_prefix=no 16089 runpath_var=LD_RUN_PATH 16090 ;; 16091 siemens) 16092 need_lib_prefix=no 16093 ;; 16094 motorola) 16095 need_lib_prefix=no 16096 need_version=no 16097 shlibpath_overrides_runpath=no 16098 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16099 ;; 16100 esac 16101 ;; 16102 16103sysv4*MP*) 16104 if test -d /usr/nec; then 16105 version_type=linux # correct to gnu/linux during the next big refactor 16106 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 16107 soname_spec='$libname$shared_ext.$major' 16108 shlibpath_var=LD_LIBRARY_PATH 16109 fi 16110 ;; 16111 16112sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16113 version_type=sco 16114 need_lib_prefix=no 16115 need_version=no 16116 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 16117 soname_spec='$libname$release$shared_ext$major' 16118 shlibpath_var=LD_LIBRARY_PATH 16119 shlibpath_overrides_runpath=yes 16120 hardcode_into_libs=yes 16121 if test yes = "$with_gnu_ld"; then 16122 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16123 else 16124 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16125 case $host_os in 16126 sco3.2v5*) 16127 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16128 ;; 16129 esac 16130 fi 16131 sys_lib_dlsearch_path_spec='/usr/lib' 16132 ;; 16133 16134tpf*) 16135 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16136 version_type=linux # correct to gnu/linux during the next big refactor 16137 need_lib_prefix=no 16138 need_version=no 16139 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16140 shlibpath_var=LD_LIBRARY_PATH 16141 shlibpath_overrides_runpath=no 16142 hardcode_into_libs=yes 16143 ;; 16144 16145uts4*) 16146 version_type=linux # correct to gnu/linux during the next big refactor 16147 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16148 soname_spec='$libname$release$shared_ext$major' 16149 shlibpath_var=LD_LIBRARY_PATH 16150 ;; 16151 16152*) 16153 dynamic_linker=no 16154 ;; 16155esac 16156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16157printf "%s\n" "$dynamic_linker" >&6; } 16158test no = "$dynamic_linker" && can_build_shared=no 16159 16160variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16161if test yes = "$GCC"; then 16162 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16163fi 16164 16165if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 16166 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 16167fi 16168 16169if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 16170 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 16171fi 16172 16173# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 16174configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 16175 16176# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 16177func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 16178 16179# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 16180configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 16181 16182 16183 16184 16185 16186 16187 16188 16189 16190 16191 16192 16193 16194 16195 16196 16197 16198 16199 16200 16201 16202 16203 16204 16205 16206 16207 16208 16209 16210 16211 16212 16213 16214 16215 16216 16217 16218 16219 16220 16221 16222 16223 16224 16225 16226 16227 16228 16229 16230 16231 16232 16233 16234 16235 16236 16237 16238 16239 16240 16241 16242 16243 16244 16245 16246 16247 16248 16249 16250 16251 16252 16253 16254 16255 16256 16257 16258 16259 16260 16261 16262 16263 16264 16265 16266 16267 16268 16269 16270 16271 16272 16273 16274 16275 16276 16277 16278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16279printf %s "checking how to hardcode library paths into programs... " >&6; } 16280hardcode_action= 16281if test -n "$hardcode_libdir_flag_spec" || 16282 test -n "$runpath_var" || 16283 test yes = "$hardcode_automatic"; then 16284 16285 # We can hardcode non-existent directories. 16286 if test no != "$hardcode_direct" && 16287 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16288 # have to relink, otherwise we might link with an installed library 16289 # when we should be linking with a yet-to-be-installed one 16290 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 16291 test no != "$hardcode_minus_L"; then 16292 # Linking always hardcodes the temporary library directory. 16293 hardcode_action=relink 16294 else 16295 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16296 hardcode_action=immediate 16297 fi 16298else 16299 # We cannot hardcode anything, or else we can only hardcode existing 16300 # directories. 16301 hardcode_action=unsupported 16302fi 16303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 16304printf "%s\n" "$hardcode_action" >&6; } 16305 16306if test relink = "$hardcode_action" || 16307 test yes = "$inherit_rpath"; then 16308 # Fast installation is not supported 16309 enable_fast_install=no 16310elif test yes = "$shlibpath_overrides_runpath" || 16311 test no = "$enable_shared"; then 16312 # Fast installation is not necessary 16313 enable_fast_install=needless 16314fi 16315 16316 16317 16318 16319 16320 16321 if test yes != "$enable_dlopen"; then 16322 enable_dlopen=unknown 16323 enable_dlopen_self=unknown 16324 enable_dlopen_self_static=unknown 16325else 16326 lt_cv_dlopen=no 16327 lt_cv_dlopen_libs= 16328 16329 case $host_os in 16330 beos*) 16331 lt_cv_dlopen=load_add_on 16332 lt_cv_dlopen_libs= 16333 lt_cv_dlopen_self=yes 16334 ;; 16335 16336 mingw* | pw32* | cegcc*) 16337 lt_cv_dlopen=LoadLibrary 16338 lt_cv_dlopen_libs= 16339 ;; 16340 16341 cygwin*) 16342 lt_cv_dlopen=dlopen 16343 lt_cv_dlopen_libs= 16344 ;; 16345 16346 darwin*) 16347 # if libdl is installed we need to link against it 16348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 16349printf %s "checking for dlopen in -ldl... " >&6; } 16350if test ${ac_cv_lib_dl_dlopen+y} 16351then : 16352 printf %s "(cached) " >&6 16353else $as_nop 16354 ac_check_lib_save_LIBS=$LIBS 16355LIBS="-ldl $LIBS" 16356cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16357/* end confdefs.h. */ 16358 16359 16360#ifdef __cplusplus 16361extern "C" 16362#endif 16363char dlopen (); 16364int main(void) 16365{ 16366return dlopen (); 16367 ; 16368 return 0; 16369} 16370_ACEOF 16371if ac_fn_c_try_link "$LINENO" 16372then : 16373 ac_cv_lib_dl_dlopen=yes 16374else $as_nop 16375 ac_cv_lib_dl_dlopen=no 16376fi 16377rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16378 conftest$ac_exeext conftest.$ac_ext 16379LIBS=$ac_check_lib_save_LIBS 16380fi 16381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 16382printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 16383if test "x$ac_cv_lib_dl_dlopen" = xyes 16384then : 16385 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 16386else $as_nop 16387 16388 lt_cv_dlopen=dyld 16389 lt_cv_dlopen_libs= 16390 lt_cv_dlopen_self=yes 16391 16392fi 16393 16394 ;; 16395 16396 tpf*) 16397 # Don't try to run any link tests for TPF. We know it's impossible 16398 # because TPF is a cross-compiler, and we know how we open DSOs. 16399 lt_cv_dlopen=dlopen 16400 lt_cv_dlopen_libs= 16401 lt_cv_dlopen_self=no 16402 ;; 16403 16404 *) 16405 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 16406if test "x$ac_cv_func_shl_load" = xyes 16407then : 16408 lt_cv_dlopen=shl_load 16409else $as_nop 16410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 16411printf %s "checking for shl_load in -ldld... " >&6; } 16412if test ${ac_cv_lib_dld_shl_load+y} 16413then : 16414 printf %s "(cached) " >&6 16415else $as_nop 16416 ac_check_lib_save_LIBS=$LIBS 16417LIBS="-ldld $LIBS" 16418cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16419/* end confdefs.h. */ 16420 16421 16422#ifdef __cplusplus 16423extern "C" 16424#endif 16425char shl_load (); 16426int main(void) 16427{ 16428return shl_load (); 16429 ; 16430 return 0; 16431} 16432_ACEOF 16433if ac_fn_c_try_link "$LINENO" 16434then : 16435 ac_cv_lib_dld_shl_load=yes 16436else $as_nop 16437 ac_cv_lib_dld_shl_load=no 16438fi 16439rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16440 conftest$ac_exeext conftest.$ac_ext 16441LIBS=$ac_check_lib_save_LIBS 16442fi 16443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 16444printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 16445if test "x$ac_cv_lib_dld_shl_load" = xyes 16446then : 16447 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 16448else $as_nop 16449 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 16450if test "x$ac_cv_func_dlopen" = xyes 16451then : 16452 lt_cv_dlopen=dlopen 16453else $as_nop 16454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 16455printf %s "checking for dlopen in -ldl... " >&6; } 16456if test ${ac_cv_lib_dl_dlopen+y} 16457then : 16458 printf %s "(cached) " >&6 16459else $as_nop 16460 ac_check_lib_save_LIBS=$LIBS 16461LIBS="-ldl $LIBS" 16462cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16463/* end confdefs.h. */ 16464 16465 16466#ifdef __cplusplus 16467extern "C" 16468#endif 16469char dlopen (); 16470int main(void) 16471{ 16472return dlopen (); 16473 ; 16474 return 0; 16475} 16476_ACEOF 16477if ac_fn_c_try_link "$LINENO" 16478then : 16479 ac_cv_lib_dl_dlopen=yes 16480else $as_nop 16481 ac_cv_lib_dl_dlopen=no 16482fi 16483rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16484 conftest$ac_exeext conftest.$ac_ext 16485LIBS=$ac_check_lib_save_LIBS 16486fi 16487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 16488printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 16489if test "x$ac_cv_lib_dl_dlopen" = xyes 16490then : 16491 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 16492else $as_nop 16493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 16494printf %s "checking for dlopen in -lsvld... " >&6; } 16495if test ${ac_cv_lib_svld_dlopen+y} 16496then : 16497 printf %s "(cached) " >&6 16498else $as_nop 16499 ac_check_lib_save_LIBS=$LIBS 16500LIBS="-lsvld $LIBS" 16501cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16502/* end confdefs.h. */ 16503 16504 16505#ifdef __cplusplus 16506extern "C" 16507#endif 16508char dlopen (); 16509int main(void) 16510{ 16511return dlopen (); 16512 ; 16513 return 0; 16514} 16515_ACEOF 16516if ac_fn_c_try_link "$LINENO" 16517then : 16518 ac_cv_lib_svld_dlopen=yes 16519else $as_nop 16520 ac_cv_lib_svld_dlopen=no 16521fi 16522rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16523 conftest$ac_exeext conftest.$ac_ext 16524LIBS=$ac_check_lib_save_LIBS 16525fi 16526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 16527printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 16528if test "x$ac_cv_lib_svld_dlopen" = xyes 16529then : 16530 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 16531else $as_nop 16532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 16533printf %s "checking for dld_link in -ldld... " >&6; } 16534if test ${ac_cv_lib_dld_dld_link+y} 16535then : 16536 printf %s "(cached) " >&6 16537else $as_nop 16538 ac_check_lib_save_LIBS=$LIBS 16539LIBS="-ldld $LIBS" 16540cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16541/* end confdefs.h. */ 16542 16543 16544#ifdef __cplusplus 16545extern "C" 16546#endif 16547char dld_link (); 16548int main(void) 16549{ 16550return dld_link (); 16551 ; 16552 return 0; 16553} 16554_ACEOF 16555if ac_fn_c_try_link "$LINENO" 16556then : 16557 ac_cv_lib_dld_dld_link=yes 16558else $as_nop 16559 ac_cv_lib_dld_dld_link=no 16560fi 16561rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16562 conftest$ac_exeext conftest.$ac_ext 16563LIBS=$ac_check_lib_save_LIBS 16564fi 16565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 16566printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 16567if test "x$ac_cv_lib_dld_dld_link" = xyes 16568then : 16569 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 16570fi 16571 16572 16573fi 16574 16575 16576fi 16577 16578 16579fi 16580 16581 16582fi 16583 16584 16585fi 16586 16587 ;; 16588 esac 16589 16590 if test no = "$lt_cv_dlopen"; then 16591 enable_dlopen=no 16592 else 16593 enable_dlopen=yes 16594 fi 16595 16596 case $lt_cv_dlopen in 16597 dlopen) 16598 save_CPPFLAGS=$CPPFLAGS 16599 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 16600 16601 save_LDFLAGS=$LDFLAGS 16602 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 16603 16604 save_LIBS=$LIBS 16605 LIBS="$lt_cv_dlopen_libs $LIBS" 16606 16607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 16608printf %s "checking whether a program can dlopen itself... " >&6; } 16609if test ${lt_cv_dlopen_self+y} 16610then : 16611 printf %s "(cached) " >&6 16612else $as_nop 16613 if test yes = "$cross_compiling"; then : 16614 lt_cv_dlopen_self=cross 16615else 16616 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 16617 lt_status=$lt_dlunknown 16618 cat > conftest.$ac_ext <<_LT_EOF 16619#line $LINENO "configure" 16620#include "confdefs.h" 16621 16622#if HAVE_DLFCN_H 16623#include <dlfcn.h> 16624#endif 16625 16626#include <stdio.h> 16627 16628#ifdef RTLD_GLOBAL 16629# define LT_DLGLOBAL RTLD_GLOBAL 16630#else 16631# ifdef DL_GLOBAL 16632# define LT_DLGLOBAL DL_GLOBAL 16633# else 16634# define LT_DLGLOBAL 0 16635# endif 16636#endif 16637 16638/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 16639 find out it does not work in some platform. */ 16640#ifndef LT_DLLAZY_OR_NOW 16641# ifdef RTLD_LAZY 16642# define LT_DLLAZY_OR_NOW RTLD_LAZY 16643# else 16644# ifdef DL_LAZY 16645# define LT_DLLAZY_OR_NOW DL_LAZY 16646# else 16647# ifdef RTLD_NOW 16648# define LT_DLLAZY_OR_NOW RTLD_NOW 16649# else 16650# ifdef DL_NOW 16651# define LT_DLLAZY_OR_NOW DL_NOW 16652# else 16653# define LT_DLLAZY_OR_NOW 0 16654# endif 16655# endif 16656# endif 16657# endif 16658#endif 16659 16660/* When -fvisibility=hidden is used, assume the code has been annotated 16661 correspondingly for the symbols needed. */ 16662#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 16663int fnord () __attribute__((visibility("default"))); 16664#endif 16665 16666int fnord () { return 42; } 16667int main () 16668{ 16669 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 16670 int status = $lt_dlunknown; 16671 16672 if (self) 16673 { 16674 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 16675 else 16676 { 16677 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 16678 else puts (dlerror ()); 16679 } 16680 /* dlclose (self); */ 16681 } 16682 else 16683 puts (dlerror ()); 16684 16685 return status; 16686} 16687_LT_EOF 16688 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 16689 (eval $ac_link) 2>&5 16690 ac_status=$? 16691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16692 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 16693 (./conftest; exit; ) >&5 2>/dev/null 16694 lt_status=$? 16695 case x$lt_status in 16696 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 16697 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 16698 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 16699 esac 16700 else : 16701 # compilation failed 16702 lt_cv_dlopen_self=no 16703 fi 16704fi 16705rm -fr conftest* 16706 16707 16708fi 16709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 16710printf "%s\n" "$lt_cv_dlopen_self" >&6; } 16711 16712 if test yes = "$lt_cv_dlopen_self"; then 16713 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 16714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 16715printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 16716if test ${lt_cv_dlopen_self_static+y} 16717then : 16718 printf %s "(cached) " >&6 16719else $as_nop 16720 if test yes = "$cross_compiling"; then : 16721 lt_cv_dlopen_self_static=cross 16722else 16723 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 16724 lt_status=$lt_dlunknown 16725 cat > conftest.$ac_ext <<_LT_EOF 16726#line $LINENO "configure" 16727#include "confdefs.h" 16728 16729#if HAVE_DLFCN_H 16730#include <dlfcn.h> 16731#endif 16732 16733#include <stdio.h> 16734 16735#ifdef RTLD_GLOBAL 16736# define LT_DLGLOBAL RTLD_GLOBAL 16737#else 16738# ifdef DL_GLOBAL 16739# define LT_DLGLOBAL DL_GLOBAL 16740# else 16741# define LT_DLGLOBAL 0 16742# endif 16743#endif 16744 16745/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 16746 find out it does not work in some platform. */ 16747#ifndef LT_DLLAZY_OR_NOW 16748# ifdef RTLD_LAZY 16749# define LT_DLLAZY_OR_NOW RTLD_LAZY 16750# else 16751# ifdef DL_LAZY 16752# define LT_DLLAZY_OR_NOW DL_LAZY 16753# else 16754# ifdef RTLD_NOW 16755# define LT_DLLAZY_OR_NOW RTLD_NOW 16756# else 16757# ifdef DL_NOW 16758# define LT_DLLAZY_OR_NOW DL_NOW 16759# else 16760# define LT_DLLAZY_OR_NOW 0 16761# endif 16762# endif 16763# endif 16764# endif 16765#endif 16766 16767/* When -fvisibility=hidden is used, assume the code has been annotated 16768 correspondingly for the symbols needed. */ 16769#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 16770int fnord () __attribute__((visibility("default"))); 16771#endif 16772 16773int fnord () { return 42; } 16774int main () 16775{ 16776 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 16777 int status = $lt_dlunknown; 16778 16779 if (self) 16780 { 16781 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 16782 else 16783 { 16784 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 16785 else puts (dlerror ()); 16786 } 16787 /* dlclose (self); */ 16788 } 16789 else 16790 puts (dlerror ()); 16791 16792 return status; 16793} 16794_LT_EOF 16795 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 16796 (eval $ac_link) 2>&5 16797 ac_status=$? 16798 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16799 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 16800 (./conftest; exit; ) >&5 2>/dev/null 16801 lt_status=$? 16802 case x$lt_status in 16803 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 16804 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 16805 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 16806 esac 16807 else : 16808 # compilation failed 16809 lt_cv_dlopen_self_static=no 16810 fi 16811fi 16812rm -fr conftest* 16813 16814 16815fi 16816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 16817printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 16818 fi 16819 16820 CPPFLAGS=$save_CPPFLAGS 16821 LDFLAGS=$save_LDFLAGS 16822 LIBS=$save_LIBS 16823 ;; 16824 esac 16825 16826 case $lt_cv_dlopen_self in 16827 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 16828 *) enable_dlopen_self=unknown ;; 16829 esac 16830 16831 case $lt_cv_dlopen_self_static in 16832 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 16833 *) enable_dlopen_self_static=unknown ;; 16834 esac 16835fi 16836 16837 16838 16839 16840 16841 16842 16843 16844 16845 16846 16847 16848 16849 16850 16851 16852 16853striplib= 16854old_striplib= 16855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 16856printf %s "checking whether stripping libraries is possible... " >&6; } 16857if test -z "$STRIP"; then 16858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16859printf "%s\n" "no" >&6; } 16860else 16861 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 16862 old_striplib="$STRIP --strip-debug" 16863 striplib="$STRIP --strip-unneeded" 16864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16865printf "%s\n" "yes" >&6; } 16866 else 16867 case $host_os in 16868 darwin*) 16869 # FIXME - insert some real tests, host_os isn't really good enough 16870 striplib="$STRIP -x" 16871 old_striplib="$STRIP -S" 16872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16873printf "%s\n" "yes" >&6; } 16874 ;; 16875 freebsd*) 16876 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 16877 old_striplib="$STRIP --strip-debug" 16878 striplib="$STRIP --strip-unneeded" 16879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16880printf "%s\n" "yes" >&6; } 16881 else 16882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16883printf "%s\n" "no" >&6; } 16884 fi 16885 ;; 16886 *) 16887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16888printf "%s\n" "no" >&6; } 16889 ;; 16890 esac 16891 fi 16892fi 16893 16894 16895 16896 16897 16898 16899 16900 16901 16902 16903 16904 16905 # Report what library types will actually be built 16906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 16907printf %s "checking if libtool supports shared libraries... " >&6; } 16908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 16909printf "%s\n" "$can_build_shared" >&6; } 16910 16911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 16912printf %s "checking whether to build shared libraries... " >&6; } 16913 test no = "$can_build_shared" && enable_shared=no 16914 16915 # On AIX, shared libraries and static libraries use the same namespace, and 16916 # are all built from PIC. 16917 case $host_os in 16918 aix3*) 16919 test yes = "$enable_shared" && enable_static=no 16920 if test -n "$RANLIB"; then 16921 archive_cmds="$archive_cmds~\$RANLIB \$lib" 16922 postinstall_cmds='$RANLIB $lib' 16923 fi 16924 ;; 16925 16926 aix[4-9]*) 16927 if test ia64 != "$host_cpu"; then 16928 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 16929 yes,aix,yes) ;; # shared object as lib.so file only 16930 yes,svr4,*) ;; # shared object as lib.so archive member only 16931 yes,*) enable_static=no ;; # shared object in lib.a archive as well 16932 esac 16933 fi 16934 ;; 16935 esac 16936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 16937printf "%s\n" "$enable_shared" >&6; } 16938 16939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 16940printf %s "checking whether to build static libraries... " >&6; } 16941 # Make sure either enable_shared or enable_static is yes. 16942 test yes = "$enable_shared" || enable_static=yes 16943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 16944printf "%s\n" "$enable_static" >&6; } 16945 16946 16947 16948 16949fi 16950ac_ext=c 16951ac_cpp='$CPP $CPPFLAGS' 16952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16954ac_compiler_gnu=$ac_cv_c_compiler_gnu 16955 16956CC=$lt_save_CC 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 ac_config_commands="$ac_config_commands libtool" 16973 16974 16975 16976 16977# Only expand once: 16978 16979 16980## --------------------- ## 16981## End of libtool code ## 16982## --------------------- ## 16983 16984# 16985# Verify if finally libtool shared libraries will be built 16986# 16987 16988case "x$enable_shared" in # (( 16989 xyes | xno) 16990 xc_lt_build_shared=$enable_shared 16991 ;; 16992 *) 16993 as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5 16994 ;; 16995esac 16996 16997# 16998# Verify if finally libtool static libraries will be built 16999# 17000 17001case "x$enable_static" in # (( 17002 xyes | xno) 17003 xc_lt_build_static=$enable_static 17004 ;; 17005 *) 17006 as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5 17007 ;; 17008esac 17009 17010# 17011# Verify if libtool shared libraries should be linked using flag -version-info 17012# 17013 17014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5 17015printf %s "checking whether to build shared libraries with -version-info... " >&6; } 17016xc_lt_shlib_use_version_info='yes' 17017if test "x$version_type" = 'xnone'; then 17018 xc_lt_shlib_use_version_info='no' 17019fi 17020case $host_os in # ( 17021 amigaos*) 17022 xc_lt_shlib_use_version_info='yes' 17023 ;; 17024esac 17025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5 17026printf "%s\n" "$xc_lt_shlib_use_version_info" >&6; } 17027 17028# 17029# Verify if libtool shared libraries should be linked using flag -no-undefined 17030# 17031 17032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5 17033printf %s "checking whether to build shared libraries with -no-undefined... " >&6; } 17034xc_lt_shlib_use_no_undefined='no' 17035if test "x$allow_undefined" = 'xno'; then 17036 xc_lt_shlib_use_no_undefined='yes' 17037elif test "x$allow_undefined_flag" = 'xunsupported'; then 17038 xc_lt_shlib_use_no_undefined='yes' 17039fi 17040case $host_os in # ( 17041 cygwin* | mingw* | pw32* | cegcc* | os2* | aix*) 17042 xc_lt_shlib_use_no_undefined='yes' 17043 ;; 17044esac 17045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5 17046printf "%s\n" "$xc_lt_shlib_use_no_undefined" >&6; } 17047 17048# 17049# Verify if libtool shared libraries should be linked using flag -mimpure-text 17050# 17051 17052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5 17053printf %s "checking whether to build shared libraries with -mimpure-text... " >&6; } 17054xc_lt_shlib_use_mimpure_text='no' 17055case $host_os in # ( 17056 solaris2*) 17057 if test "x$GCC" = 'xyes'; then 17058 xc_lt_shlib_use_mimpure_text='yes' 17059 fi 17060 ;; 17061esac 17062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5 17063printf "%s\n" "$xc_lt_shlib_use_mimpure_text" >&6; } 17064 17065# 17066# Find out whether libtool libraries would be built with PIC 17067# 17068 17069case "x$pic_mode" in # (((( 17070 xdefault) 17071 xc_lt_build_shared_with_pic='yes' 17072 xc_lt_build_static_with_pic='no' 17073 ;; 17074 xyes) 17075 xc_lt_build_shared_with_pic='yes' 17076 xc_lt_build_static_with_pic='yes' 17077 ;; 17078 xno) 17079 xc_lt_build_shared_with_pic='no' 17080 xc_lt_build_static_with_pic='no' 17081 ;; 17082 *) 17083 xc_lt_build_shared_with_pic='unknown' 17084 xc_lt_build_static_with_pic='unknown' 17085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5 17086printf "%s\n" "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;} 17087 ;; 17088esac 17089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5 17090printf %s "checking whether to build shared libraries with PIC... " >&6; } 17091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5 17092printf "%s\n" "$xc_lt_build_shared_with_pic" >&6; } 17093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5 17094printf %s "checking whether to build static libraries with PIC... " >&6; } 17095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5 17096printf "%s\n" "$xc_lt_build_static_with_pic" >&6; } 17097 17098# 17099# Verify if libtool shared libraries will be built while static not built 17100# 17101 17102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5 17103printf %s "checking whether to build shared libraries only... " >&6; } 17104if test "$xc_lt_build_shared" = 'yes' && 17105 test "$xc_lt_build_static" = 'no'; then 17106 xc_lt_build_shared_only='yes' 17107else 17108 xc_lt_build_shared_only='no' 17109fi 17110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5 17111printf "%s\n" "$xc_lt_build_shared_only" >&6; } 17112 17113# 17114# Verify if libtool static libraries will be built while shared not built 17115# 17116 17117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5 17118printf %s "checking whether to build static libraries only... " >&6; } 17119if test "$xc_lt_build_static" = 'yes' && 17120 test "$xc_lt_build_shared" = 'no'; then 17121 xc_lt_build_static_only='yes' 17122else 17123 xc_lt_build_static_only='no' 17124fi 17125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5 17126printf "%s\n" "$xc_lt_build_static_only" >&6; } 17127 17128 17129 17130 17131if test -n "$ac_tool_prefix"; then 17132 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 17133set dummy ${ac_tool_prefix}windres; ac_word=$2 17134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17135printf %s "checking for $ac_word... " >&6; } 17136if test ${ac_cv_prog_RC+y} 17137then : 17138 printf %s "(cached) " >&6 17139else $as_nop 17140 if test -n "$RC"; then 17141 ac_cv_prog_RC="$RC" # Let the user override the test. 17142else 17143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17144for as_dir in $PATH 17145do 17146 IFS=$as_save_IFS 17147 case $as_dir in #((( 17148 '') as_dir=./ ;; 17149 */) ;; 17150 *) as_dir=$as_dir/ ;; 17151 esac 17152 for ac_exec_ext in '' $ac_executable_extensions; do 17153 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17154 ac_cv_prog_RC="${ac_tool_prefix}windres" 17155 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17156 break 2 17157 fi 17158done 17159 done 17160IFS=$as_save_IFS 17161 17162fi 17163fi 17164RC=$ac_cv_prog_RC 17165if test -n "$RC"; then 17166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 17167printf "%s\n" "$RC" >&6; } 17168else 17169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17170printf "%s\n" "no" >&6; } 17171fi 17172 17173 17174fi 17175if test -z "$ac_cv_prog_RC"; then 17176 ac_ct_RC=$RC 17177 # Extract the first word of "windres", so it can be a program name with args. 17178set dummy windres; ac_word=$2 17179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17180printf %s "checking for $ac_word... " >&6; } 17181if test ${ac_cv_prog_ac_ct_RC+y} 17182then : 17183 printf %s "(cached) " >&6 17184else $as_nop 17185 if test -n "$ac_ct_RC"; then 17186 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test. 17187else 17188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17189for as_dir in $PATH 17190do 17191 IFS=$as_save_IFS 17192 case $as_dir in #((( 17193 '') as_dir=./ ;; 17194 */) ;; 17195 *) as_dir=$as_dir/ ;; 17196 esac 17197 for ac_exec_ext in '' $ac_executable_extensions; do 17198 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17199 ac_cv_prog_ac_ct_RC="windres" 17200 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17201 break 2 17202 fi 17203done 17204 done 17205IFS=$as_save_IFS 17206 17207fi 17208fi 17209ac_ct_RC=$ac_cv_prog_ac_ct_RC 17210if test -n "$ac_ct_RC"; then 17211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5 17212printf "%s\n" "$ac_ct_RC" >&6; } 17213else 17214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17215printf "%s\n" "no" >&6; } 17216fi 17217 17218 if test "x$ac_ct_RC" = x; then 17219 RC="" 17220 else 17221 case $cross_compiling:$ac_tool_warned in 17222yes:) 17223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17224printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17225ac_tool_warned=yes ;; 17226esac 17227 RC=$ac_ct_RC 17228 fi 17229else 17230 RC="$ac_cv_prog_RC" 17231fi 17232 17233 17234 17235 17236# Source file extension for RC test sources. 17237ac_ext=rc 17238 17239# Object file extension for compiled RC test sources. 17240objext=o 17241objext_RC=$objext 17242 17243# Code to be used in simple compile tests 17244lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 17245 17246# Code to be used in simple link tests 17247lt_simple_link_test_code=$lt_simple_compile_test_code 17248 17249# ltmain only uses $CC for tagged configurations so make sure $CC is set. 17250 17251 17252 17253 17254 17255 17256# If no C compiler was specified, use CC. 17257LTCC=${LTCC-"$CC"} 17258 17259# If no C compiler flags were specified, use CFLAGS. 17260LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 17261 17262# Allow CC to be a program name with arguments. 17263compiler=$CC 17264 17265 17266# save warnings/boilerplate of simple test code 17267ac_outfile=conftest.$ac_objext 17268echo "$lt_simple_compile_test_code" >conftest.$ac_ext 17269eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17270_lt_compiler_boilerplate=`cat conftest.err` 17271$RM conftest* 17272 17273ac_outfile=conftest.$ac_objext 17274echo "$lt_simple_link_test_code" >conftest.$ac_ext 17275eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17276_lt_linker_boilerplate=`cat conftest.err` 17277$RM -r conftest* 17278 17279 17280# Allow CC to be a program name with arguments. 17281lt_save_CC=$CC 17282lt_save_CFLAGS=$CFLAGS 17283lt_save_GCC=$GCC 17284GCC= 17285CC=${RC-"windres"} 17286CFLAGS= 17287compiler=$CC 17288compiler_RC=$CC 17289func_cc_basename $compiler 17290cc_basename=$func_cc_basename_result 17291 17292lt_cv_prog_compiler_c_o_RC=yes 17293 17294if test -n "$compiler"; then 17295 : 17296 17297 17298 17299fi 17300 17301GCC=$lt_save_GCC 17302ac_ext=c 17303ac_cpp='$CPP $CPPFLAGS' 17304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17306ac_compiler_gnu=$ac_cv_c_compiler_gnu 17307 17308CC=$lt_save_CC 17309CFLAGS=$lt_save_CFLAGS 17310 17311 17312# 17313# Automake conditionals based on libtool related checks 17314# 17315 17316 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then 17317 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE= 17318 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#' 17319else 17320 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#' 17321 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE= 17322fi 17323 17324 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then 17325 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE= 17326 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#' 17327else 17328 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#' 17329 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE= 17330fi 17331 17332 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then 17333 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE= 17334 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#' 17335else 17336 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#' 17337 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE= 17338fi 17339 17340 17341# 17342# Due to libtool and automake machinery limitations of not allowing 17343# specifying separate CPPFLAGS or CFLAGS when compiling objects for 17344# inclusion of these in shared or static libraries, we are forced to 17345# build using separate configure runs for shared and static libraries 17346# on systems where different CPPFLAGS or CFLAGS are mandatory in order 17347# to compile objects for each kind of library. Notice that relying on 17348# the '-DPIC' CFLAG that libtool provides is not valid given that the 17349# user might for example choose to build static libraries with PIC. 17350# 17351 17352# 17353# Make our Makefile.am files use the staticlib CPPFLAG only when strictly 17354# targeting a static library and not building its shared counterpart. 17355# 17356 17357 if test "x$xc_lt_build_static_only" = 'xyes'; then 17358 USE_CPPFLAG_CURL_STATICLIB_TRUE= 17359 USE_CPPFLAG_CURL_STATICLIB_FALSE='#' 17360else 17361 USE_CPPFLAG_CURL_STATICLIB_TRUE='#' 17362 USE_CPPFLAG_CURL_STATICLIB_FALSE= 17363fi 17364 17365 17366# 17367# Make staticlib CPPFLAG variable and its definition visible in output 17368# files unconditionally, providing an empty definition unless strictly 17369# targeting a static library and not building its shared counterpart. 17370# 17371 17372LIBCURL_PC_CFLAGS_PRIVATE='-DCURL_STATICLIB' 17373 17374 17375LIBCURL_PC_CFLAGS= 17376if test "x$xc_lt_build_static_only" = 'xyes'; then 17377 LIBCURL_PC_CFLAGS="${LIBCURL_PC_CFLAGS_PRIVATE}" 17378fi 17379 17380 17381 17382 17383 17384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5 17385printf %s "checking if cpp -P is needed... " >&6; } 17386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17387/* end confdefs.h. */ 17388 17389 #include <errno.h> 17390TEST EINVAL TEST 17391 17392_ACEOF 17393if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17394 $EGREP "TEST.*TEST" >/dev/null 2>&1 17395then : 17396 cpp=no 17397else $as_nop 17398 cpp=yes 17399fi 17400rm -rf conftest* 17401 17402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5 17403printf "%s\n" "$cpp" >&6; } 17404 17405 if test "x$cpp" = "xyes"; then 17406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5 17407printf %s "checking if cpp -P works... " >&6; } 17408 OLDCPPFLAGS=$CPPFLAGS 17409 CPPFLAGS="$CPPFLAGS -P" 17410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17411/* end confdefs.h. */ 17412 17413 #include <errno.h> 17414TEST EINVAL TEST 17415 17416_ACEOF 17417if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17418 $EGREP "TEST.*TEST" >/dev/null 2>&1 17419then : 17420 cpp_p=yes 17421else $as_nop 17422 cpp_p=no 17423fi 17424rm -rf conftest* 17425 17426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5 17427printf "%s\n" "$cpp_p" >&6; } 17428 17429 if test "x$cpp_p" = "xno"; then 17430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5 17431printf "%s\n" "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;} 17432 # without -P 17433 CPPPFLAG="" 17434 else 17435 # with -P 17436 CPPPFLAG="-P" 17437 fi 17438 CPPFLAGS=$OLDCPPFLAGS 17439 else 17440 # without -P 17441 CPPPFLAG="" 17442 fi 17443 17444 17445 # 17446 compiler_id="unknown" 17447 compiler_ver="" 17448 compiler_num="0" 17449 # 17450 flags_dbg_yes="unknown" 17451 flags_opt_all="unknown" 17452 flags_opt_yes="unknown" 17453 flags_opt_off="unknown" 17454 # 17455 flags_prefer_cppflags="no" 17456 # 17457 17458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5 17459printf %s "checking if compiler is DEC/Compaq/HP C... " >&6; } 17460 17461 OLDCPPFLAGS=$CPPFLAGS 17462 # CPPPFLAG comes from CURL_CPP_P 17463 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 17464 if test -z "$SED"; then 17465 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 17466 fi 17467 if test -z "$GREP"; then 17468 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 17469 fi 17470 17471 tmp_exp="" 17472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17473/* end confdefs.h. */ 17474 17475 17476 #ifdef __DECC 17477 CURL_DEF_TOKEN __DECC 17478 #endif 17479 17480 17481_ACEOF 17482if ac_fn_c_try_cpp "$LINENO" 17483then : 17484 17485 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 17486 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 17487 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 17488 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 17489 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then 17490 tmp_exp="" 17491 fi 17492 17493fi 17494rm -f conftest.err conftest.i conftest.$ac_ext 17495 if test -z "$tmp_exp"; then 17496 curl_cv_have_def___DECC=no 17497 17498 else 17499 curl_cv_have_def___DECC=yes 17500 curl_cv_def___DECC=$tmp_exp 17501 17502 fi 17503 CPPFLAGS=$OLDCPPFLAGS 17504 17505 17506 OLDCPPFLAGS=$CPPFLAGS 17507 # CPPPFLAG comes from CURL_CPP_P 17508 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 17509 if test -z "$SED"; then 17510 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 17511 fi 17512 if test -z "$GREP"; then 17513 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 17514 fi 17515 17516 tmp_exp="" 17517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17518/* end confdefs.h. */ 17519 17520 17521 #ifdef __DECC_VER 17522 CURL_DEF_TOKEN __DECC_VER 17523 #endif 17524 17525 17526_ACEOF 17527if ac_fn_c_try_cpp "$LINENO" 17528then : 17529 17530 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 17531 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 17532 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 17533 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 17534 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then 17535 tmp_exp="" 17536 fi 17537 17538fi 17539rm -f conftest.err conftest.i conftest.$ac_ext 17540 if test -z "$tmp_exp"; then 17541 curl_cv_have_def___DECC_VER=no 17542 17543 else 17544 curl_cv_have_def___DECC_VER=yes 17545 curl_cv_def___DECC_VER=$tmp_exp 17546 17547 fi 17548 CPPFLAGS=$OLDCPPFLAGS 17549 17550 if test "$curl_cv_have_def___DECC" = "yes" && 17551 test "$curl_cv_have_def___DECC_VER" = "yes"; then 17552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17553printf "%s\n" "yes" >&6; } 17554 compiler_id="DEC_C" 17555 flags_dbg_yes="-g2" 17556 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4" 17557 flags_opt_yes="-O1" 17558 flags_opt_off="-O0" 17559 else 17560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17561printf "%s\n" "no" >&6; } 17562 fi 17563 17564 17565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5 17566printf %s "checking if compiler is HP-UX C... " >&6; } 17567 17568 OLDCPPFLAGS=$CPPFLAGS 17569 # CPPPFLAG comes from CURL_CPP_P 17570 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 17571 if test -z "$SED"; then 17572 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 17573 fi 17574 if test -z "$GREP"; then 17575 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 17576 fi 17577 17578 tmp_exp="" 17579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17580/* end confdefs.h. */ 17581 17582 17583 #ifdef __HP_cc 17584 CURL_DEF_TOKEN __HP_cc 17585 #endif 17586 17587 17588_ACEOF 17589if ac_fn_c_try_cpp "$LINENO" 17590then : 17591 17592 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 17593 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 17594 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 17595 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 17596 if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then 17597 tmp_exp="" 17598 fi 17599 17600fi 17601rm -f conftest.err conftest.i conftest.$ac_ext 17602 if test -z "$tmp_exp"; then 17603 curl_cv_have_def___HP_cc=no 17604 17605 else 17606 curl_cv_have_def___HP_cc=yes 17607 curl_cv_def___HP_cc=$tmp_exp 17608 17609 fi 17610 CPPFLAGS=$OLDCPPFLAGS 17611 17612 if test "$curl_cv_have_def___HP_cc" = "yes"; then 17613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17614printf "%s\n" "yes" >&6; } 17615 compiler_id="HP_UX_C" 17616 flags_dbg_yes="-g" 17617 flags_opt_all="-O +O0 +O1 +O2 +O3 +O4" 17618 flags_opt_yes="+O2" 17619 flags_opt_off="+O0" 17620 else 17621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17622printf "%s\n" "no" >&6; } 17623 fi 17624 17625 17626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5 17627printf %s "checking if compiler is IBM C... " >&6; } 17628 17629 OLDCPPFLAGS=$CPPFLAGS 17630 # CPPPFLAG comes from CURL_CPP_P 17631 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 17632 if test -z "$SED"; then 17633 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 17634 fi 17635 if test -z "$GREP"; then 17636 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 17637 fi 17638 17639 tmp_exp="" 17640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17641/* end confdefs.h. */ 17642 17643 17644 #ifdef __IBMC__ 17645 CURL_DEF_TOKEN __IBMC__ 17646 #endif 17647 17648 17649_ACEOF 17650if ac_fn_c_try_cpp "$LINENO" 17651then : 17652 17653 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 17654 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 17655 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 17656 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 17657 if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then 17658 tmp_exp="" 17659 fi 17660 17661fi 17662rm -f conftest.err conftest.i conftest.$ac_ext 17663 if test -z "$tmp_exp"; then 17664 curl_cv_have_def___IBMC__=no 17665 17666 else 17667 curl_cv_have_def___IBMC__=yes 17668 curl_cv_def___IBMC__=$tmp_exp 17669 17670 fi 17671 CPPFLAGS=$OLDCPPFLAGS 17672 17673 if test "$curl_cv_have_def___IBMC__" = "yes"; then 17674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17675printf "%s\n" "yes" >&6; } 17676 compiler_id="IBM_C" 17677 flags_dbg_yes="-g" 17678 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5" 17679 flags_opt_all="$flags_opt_all -qnooptimize" 17680 flags_opt_all="$flags_opt_all -qoptimize=0" 17681 flags_opt_all="$flags_opt_all -qoptimize=1" 17682 flags_opt_all="$flags_opt_all -qoptimize=2" 17683 flags_opt_all="$flags_opt_all -qoptimize=3" 17684 flags_opt_all="$flags_opt_all -qoptimize=4" 17685 flags_opt_all="$flags_opt_all -qoptimize=5" 17686 flags_opt_yes="-O2" 17687 flags_opt_off="-qnooptimize" 17688 flags_prefer_cppflags="yes" 17689 else 17690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17691printf "%s\n" "no" >&6; } 17692 fi 17693 17694 17695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5 17696printf %s "checking if compiler is Intel C... " >&6; } 17697 17698 OLDCPPFLAGS=$CPPFLAGS 17699 # CPPPFLAG comes from CURL_CPP_P 17700 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 17701 if test -z "$SED"; then 17702 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 17703 fi 17704 if test -z "$GREP"; then 17705 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 17706 fi 17707 17708 tmp_exp="" 17709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17710/* end confdefs.h. */ 17711 17712 17713 #ifdef __INTEL_COMPILER 17714 CURL_DEF_TOKEN __INTEL_COMPILER 17715 #endif 17716 17717 17718_ACEOF 17719if ac_fn_c_try_cpp "$LINENO" 17720then : 17721 17722 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 17723 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 17724 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 17725 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 17726 if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then 17727 tmp_exp="" 17728 fi 17729 17730fi 17731rm -f conftest.err conftest.i conftest.$ac_ext 17732 if test -z "$tmp_exp"; then 17733 curl_cv_have_def___INTEL_COMPILER=no 17734 17735 else 17736 curl_cv_have_def___INTEL_COMPILER=yes 17737 curl_cv_def___INTEL_COMPILER=$tmp_exp 17738 17739 fi 17740 CPPFLAGS=$OLDCPPFLAGS 17741 17742 if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then 17743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17744printf "%s\n" "yes" >&6; } 17745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler version" >&5 17746printf %s "checking compiler version... " >&6; } 17747 compiler_num="$curl_cv_def___INTEL_COMPILER" 17748 compiler_ver=`echo "$compiler_num" | cut -c -2 | $SED 's/^0//'`.`echo "$compiler_num" | cut -c 3-4 | $SED 's/^0//'` 17749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Intel C '$compiler_num'" >&5 17750printf "%s\n" "Intel C '$compiler_num'" >&6; } 17751 17752 OLDCPPFLAGS=$CPPFLAGS 17753 # CPPPFLAG comes from CURL_CPP_P 17754 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 17755 if test -z "$SED"; then 17756 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 17757 fi 17758 if test -z "$GREP"; then 17759 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 17760 fi 17761 17762 tmp_exp="" 17763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17764/* end confdefs.h. */ 17765 17766 17767 #ifdef __unix__ 17768 CURL_DEF_TOKEN __unix__ 17769 #endif 17770 17771 17772_ACEOF 17773if ac_fn_c_try_cpp "$LINENO" 17774then : 17775 17776 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 17777 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 17778 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 17779 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 17780 if test -z "$tmp_exp" || test "$tmp_exp" = ""; then 17781 tmp_exp="" 17782 fi 17783 17784fi 17785rm -f conftest.err conftest.i conftest.$ac_ext 17786 if test -z "$tmp_exp"; then 17787 curl_cv_have_def___unix__=no 17788 17789 else 17790 curl_cv_have_def___unix__=yes 17791 curl_cv_def___unix__=$tmp_exp 17792 17793 fi 17794 CPPFLAGS=$OLDCPPFLAGS 17795 17796 if test "$curl_cv_have_def___unix__" = "yes"; then 17797 compiler_id="INTEL_UNIX_C" 17798 flags_dbg_yes="-g" 17799 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os" 17800 flags_opt_yes="-O2" 17801 flags_opt_off="-O0" 17802 else 17803 compiler_id="INTEL_WINDOWS_C" 17804 flags_dbg_yes="/Zi /Oy-" 17805 flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-" 17806 flags_opt_yes="/O2" 17807 flags_opt_off="/Od" 17808 fi 17809 else 17810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17811printf "%s\n" "no" >&6; } 17812 fi 17813 17814 17815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5 17816printf %s "checking if compiler is clang... " >&6; } 17817 17818 OLDCPPFLAGS=$CPPFLAGS 17819 # CPPPFLAG comes from CURL_CPP_P 17820 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 17821 if test -z "$SED"; then 17822 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 17823 fi 17824 if test -z "$GREP"; then 17825 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 17826 fi 17827 17828 tmp_exp="" 17829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17830/* end confdefs.h. */ 17831 17832 17833 #ifdef __clang__ 17834 CURL_DEF_TOKEN __clang__ 17835 #endif 17836 17837 17838_ACEOF 17839if ac_fn_c_try_cpp "$LINENO" 17840then : 17841 17842 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 17843 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 17844 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 17845 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 17846 if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then 17847 tmp_exp="" 17848 fi 17849 17850fi 17851rm -f conftest.err conftest.i conftest.$ac_ext 17852 if test -z "$tmp_exp"; then 17853 curl_cv_have_def___clang__=no 17854 17855 else 17856 curl_cv_have_def___clang__=yes 17857 curl_cv_def___clang__=$tmp_exp 17858 17859 fi 17860 CPPFLAGS=$OLDCPPFLAGS 17861 17862 if test "$curl_cv_have_def___clang__" = "yes"; then 17863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17864printf "%s\n" "yes" >&6; } 17865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is xlclang" >&5 17866printf %s "checking if compiler is xlclang... " >&6; } 17867 17868 OLDCPPFLAGS=$CPPFLAGS 17869 # CPPPFLAG comes from CURL_CPP_P 17870 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 17871 if test -z "$SED"; then 17872 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 17873 fi 17874 if test -z "$GREP"; then 17875 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 17876 fi 17877 17878 tmp_exp="" 17879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17880/* end confdefs.h. */ 17881 17882 17883 #ifdef __ibmxl__ 17884 CURL_DEF_TOKEN __ibmxl__ 17885 #endif 17886 17887 17888_ACEOF 17889if ac_fn_c_try_cpp "$LINENO" 17890then : 17891 17892 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 17893 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 17894 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 17895 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 17896 if test -z "$tmp_exp" || test "$tmp_exp" = "__ibmxl__"; then 17897 tmp_exp="" 17898 fi 17899 17900fi 17901rm -f conftest.err conftest.i conftest.$ac_ext 17902 if test -z "$tmp_exp"; then 17903 curl_cv_have_def___ibmxl__=no 17904 17905 else 17906 curl_cv_have_def___ibmxl__=yes 17907 curl_cv_def___ibmxl__=$tmp_exp 17908 17909 fi 17910 CPPFLAGS=$OLDCPPFLAGS 17911 17912 if test "$curl_cv_have_def___ibmxl__" = "yes" ; then 17913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17914printf "%s\n" "yes" >&6; } 17915 compiler_id="XLCLANG" 17916 else 17917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17918printf "%s\n" "no" >&6; } 17919 compiler_id="CLANG" 17920 fi 17921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Apple clang" >&5 17922printf %s "checking if compiler is Apple clang... " >&6; } 17923 fullclangver=`$CC -v 2>&1 | grep version` 17924 if echo $fullclangver | grep 'Apple' >/dev/null; then 17925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17926printf "%s\n" "yes" >&6; } 17927 appleclang=1 17928 compiler_id="APPLECLANG" 17929 else 17930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17931printf "%s\n" "no" >&6; } 17932 appleclang=0 17933 fi 17934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler version" >&5 17935printf %s "checking compiler version... " >&6; } 17936 clangver=`echo $fullclangver | grep "based on LLVM " | "$SED" 's/.*(based on LLVM \([0-9]*\.[0-9]*\).*)/\1/'` 17937 if test -z "$clangver"; then 17938 clangver=`echo $fullclangver | "$SED" 's/.*version \([0-9]*\.[0-9]*\).*/\1/'` 17939 oldapple=0 17940 else 17941 oldapple=1 17942 fi 17943 clangvhi=`echo $clangver | cut -d . -f1` 17944 clangvlo=`echo $clangver | cut -d . -f2` 17945 compiler_ver="$clangver" 17946 compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null` 17947 if test "$appleclang" = '1' && test "$oldapple" = '0'; then 17948 if test "$compiler_num" -ge '1300'; then compiler_num='1200' 17949 elif test "$compiler_num" -ge '1205'; then compiler_num='1101' 17950 elif test "$compiler_num" -ge '1204'; then compiler_num='1000' 17951 elif test "$compiler_num" -ge '1107'; then compiler_num='900' 17952 elif test "$compiler_num" -ge '1103'; then compiler_num='800' 17953 elif test "$compiler_num" -ge '1003'; then compiler_num='700' 17954 elif test "$compiler_num" -ge '1001'; then compiler_num='600' 17955 elif test "$compiler_num" -ge '904'; then compiler_num='500' 17956 elif test "$compiler_num" -ge '902'; then compiler_num='400' 17957 elif test "$compiler_num" -ge '803'; then compiler_num='309' 17958 elif test "$compiler_num" -ge '703'; then compiler_num='308' 17959 else compiler_num='307' 17960 fi 17961 fi 17962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: clang '$compiler_num' (raw: '$fullclangver' / '$clangver')" >&5 17963printf "%s\n" "clang '$compiler_num' (raw: '$fullclangver' / '$clangver')" >&6; } 17964 flags_dbg_yes="-g" 17965 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4" 17966 flags_opt_yes="-O2" 17967 flags_opt_off="-O0" 17968 else 17969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17970printf "%s\n" "no" >&6; } 17971 fi 17972 17973 17974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5 17975printf %s "checking if compiler is GNU C... " >&6; } 17976 17977 OLDCPPFLAGS=$CPPFLAGS 17978 # CPPPFLAG comes from CURL_CPP_P 17979 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 17980 if test -z "$SED"; then 17981 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 17982 fi 17983 if test -z "$GREP"; then 17984 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 17985 fi 17986 17987 tmp_exp="" 17988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17989/* end confdefs.h. */ 17990 17991 17992 #ifdef __GNUC__ 17993 CURL_DEF_TOKEN __GNUC__ 17994 #endif 17995 17996 17997_ACEOF 17998if ac_fn_c_try_cpp "$LINENO" 17999then : 18000 18001 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 18002 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 18003 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 18004 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 18005 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then 18006 tmp_exp="" 18007 fi 18008 18009fi 18010rm -f conftest.err conftest.i conftest.$ac_ext 18011 if test -z "$tmp_exp"; then 18012 curl_cv_have_def___GNUC__=no 18013 18014 else 18015 curl_cv_have_def___GNUC__=yes 18016 curl_cv_def___GNUC__=$tmp_exp 18017 18018 fi 18019 CPPFLAGS=$OLDCPPFLAGS 18020 18021 if test "$curl_cv_have_def___GNUC__" = "yes" && 18022 test "$compiler_id" = "unknown"; then 18023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18024printf "%s\n" "yes" >&6; } 18025 compiler_id="GNU_C" 18026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking compiler version" >&5 18027printf %s "checking compiler version... " >&6; } 18028 # strip '-suffix' parts, e.g. Ubuntu Windows cross-gcc returns '10-win32' 18029 gccver=`$CC -dumpversion | "$SED" 's/-.\{1,\}$//'` 18030 gccvhi=`echo $gccver | cut -d . -f1` 18031 if echo $gccver | grep -F '.' >/dev/null; then 18032 gccvlo=`echo $gccver | cut -d . -f2` 18033 else 18034 gccvlo="0" 18035 fi 18036 compiler_ver="$gccver" 18037 compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null` 18038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: gcc '$compiler_num' (raw: '$gccver')" >&5 18039printf "%s\n" "gcc '$compiler_num' (raw: '$gccver')" >&6; } 18040 flags_dbg_yes="-g" 18041 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast" 18042 flags_opt_yes="-O2" 18043 flags_opt_off="-O0" 18044 else 18045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18046printf "%s\n" "no" >&6; } 18047 fi 18048 18049 case $host in 18050 mips-sgi-irix*) 18051 18052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5 18053printf %s "checking if compiler is SGI MIPSpro C... " >&6; } 18054 18055 OLDCPPFLAGS=$CPPFLAGS 18056 # CPPPFLAG comes from CURL_CPP_P 18057 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 18058 if test -z "$SED"; then 18059 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 18060 fi 18061 if test -z "$GREP"; then 18062 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 18063 fi 18064 18065 tmp_exp="" 18066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18067/* end confdefs.h. */ 18068 18069 18070 #ifdef __GNUC__ 18071 CURL_DEF_TOKEN __GNUC__ 18072 #endif 18073 18074 18075_ACEOF 18076if ac_fn_c_try_cpp "$LINENO" 18077then : 18078 18079 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 18080 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 18081 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 18082 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 18083 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then 18084 tmp_exp="" 18085 fi 18086 18087fi 18088rm -f conftest.err conftest.i conftest.$ac_ext 18089 if test -z "$tmp_exp"; then 18090 curl_cv_have_def___GNUC__=no 18091 18092 else 18093 curl_cv_have_def___GNUC__=yes 18094 curl_cv_def___GNUC__=$tmp_exp 18095 18096 fi 18097 CPPFLAGS=$OLDCPPFLAGS 18098 18099 18100 OLDCPPFLAGS=$CPPFLAGS 18101 # CPPPFLAG comes from CURL_CPP_P 18102 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 18103 if test -z "$SED"; then 18104 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 18105 fi 18106 if test -z "$GREP"; then 18107 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 18108 fi 18109 18110 tmp_exp="" 18111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18112/* end confdefs.h. */ 18113 18114 18115 #ifdef _COMPILER_VERSION 18116 CURL_DEF_TOKEN _COMPILER_VERSION 18117 #endif 18118 18119 18120_ACEOF 18121if ac_fn_c_try_cpp "$LINENO" 18122then : 18123 18124 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 18125 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 18126 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 18127 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 18128 if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then 18129 tmp_exp="" 18130 fi 18131 18132fi 18133rm -f conftest.err conftest.i conftest.$ac_ext 18134 if test -z "$tmp_exp"; then 18135 curl_cv_have_def__COMPILER_VERSION=no 18136 18137 else 18138 curl_cv_have_def__COMPILER_VERSION=yes 18139 curl_cv_def__COMPILER_VERSION=$tmp_exp 18140 18141 fi 18142 CPPFLAGS=$OLDCPPFLAGS 18143 18144 18145 OLDCPPFLAGS=$CPPFLAGS 18146 # CPPPFLAG comes from CURL_CPP_P 18147 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 18148 if test -z "$SED"; then 18149 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 18150 fi 18151 if test -z "$GREP"; then 18152 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 18153 fi 18154 18155 tmp_exp="" 18156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18157/* end confdefs.h. */ 18158 18159 18160 #ifdef _SGI_COMPILER_VERSION 18161 CURL_DEF_TOKEN _SGI_COMPILER_VERSION 18162 #endif 18163 18164 18165_ACEOF 18166if ac_fn_c_try_cpp "$LINENO" 18167then : 18168 18169 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 18170 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 18171 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 18172 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 18173 if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then 18174 tmp_exp="" 18175 fi 18176 18177fi 18178rm -f conftest.err conftest.i conftest.$ac_ext 18179 if test -z "$tmp_exp"; then 18180 curl_cv_have_def__SGI_COMPILER_VERSION=no 18181 18182 else 18183 curl_cv_have_def__SGI_COMPILER_VERSION=yes 18184 curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp 18185 18186 fi 18187 CPPFLAGS=$OLDCPPFLAGS 18188 18189 if test "$curl_cv_have_def___GNUC__" = "no" && 18190 (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" || 18191 test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then 18192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18193printf "%s\n" "yes" >&6; } 18194 compiler_id="SGI_MIPSPRO_C" 18195 flags_dbg_yes="-g" 18196 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast" 18197 flags_opt_yes="-O2" 18198 flags_opt_off="-O0" 18199 else 18200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18201printf "%s\n" "no" >&6; } 18202 fi 18203 18204 18205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5 18206printf %s "checking if compiler is SGI MIPS C... " >&6; } 18207 18208 OLDCPPFLAGS=$CPPFLAGS 18209 # CPPPFLAG comes from CURL_CPP_P 18210 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 18211 if test -z "$SED"; then 18212 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 18213 fi 18214 if test -z "$GREP"; then 18215 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 18216 fi 18217 18218 tmp_exp="" 18219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18220/* end confdefs.h. */ 18221 18222 18223 #ifdef __GNUC__ 18224 CURL_DEF_TOKEN __GNUC__ 18225 #endif 18226 18227 18228_ACEOF 18229if ac_fn_c_try_cpp "$LINENO" 18230then : 18231 18232 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 18233 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 18234 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 18235 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 18236 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then 18237 tmp_exp="" 18238 fi 18239 18240fi 18241rm -f conftest.err conftest.i conftest.$ac_ext 18242 if test -z "$tmp_exp"; then 18243 curl_cv_have_def___GNUC__=no 18244 18245 else 18246 curl_cv_have_def___GNUC__=yes 18247 curl_cv_def___GNUC__=$tmp_exp 18248 18249 fi 18250 CPPFLAGS=$OLDCPPFLAGS 18251 18252 18253 OLDCPPFLAGS=$CPPFLAGS 18254 # CPPPFLAG comes from CURL_CPP_P 18255 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 18256 if test -z "$SED"; then 18257 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 18258 fi 18259 if test -z "$GREP"; then 18260 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 18261 fi 18262 18263 tmp_exp="" 18264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18265/* end confdefs.h. */ 18266 18267 18268 #ifdef __sgi 18269 CURL_DEF_TOKEN __sgi 18270 #endif 18271 18272 18273_ACEOF 18274if ac_fn_c_try_cpp "$LINENO" 18275then : 18276 18277 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 18278 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 18279 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 18280 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 18281 if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then 18282 tmp_exp="" 18283 fi 18284 18285fi 18286rm -f conftest.err conftest.i conftest.$ac_ext 18287 if test -z "$tmp_exp"; then 18288 curl_cv_have_def___sgi=no 18289 18290 else 18291 curl_cv_have_def___sgi=yes 18292 curl_cv_def___sgi=$tmp_exp 18293 18294 fi 18295 CPPFLAGS=$OLDCPPFLAGS 18296 18297 if test "$curl_cv_have_def___GNUC__" = "no" && 18298 test "$curl_cv_have_def___sgi" = "yes" && 18299 test "$compiler_id" = "unknown"; then 18300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18301printf "%s\n" "yes" >&6; } 18302 compiler_id="SGI_MIPS_C" 18303 flags_dbg_yes="-g" 18304 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast" 18305 flags_opt_yes="-O2" 18306 flags_opt_off="-O0" 18307 else 18308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18309printf "%s\n" "no" >&6; } 18310 fi 18311 18312 ;; 18313 esac 18314 18315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5 18316printf %s "checking if compiler is SunPro C... " >&6; } 18317 18318 OLDCPPFLAGS=$CPPFLAGS 18319 # CPPPFLAG comes from CURL_CPP_P 18320 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 18321 if test -z "$SED"; then 18322 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 18323 fi 18324 if test -z "$GREP"; then 18325 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 18326 fi 18327 18328 tmp_exp="" 18329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18330/* end confdefs.h. */ 18331 18332 18333 #ifdef __SUNPRO_C 18334 CURL_DEF_TOKEN __SUNPRO_C 18335 #endif 18336 18337 18338_ACEOF 18339if ac_fn_c_try_cpp "$LINENO" 18340then : 18341 18342 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 18343 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 18344 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 18345 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 18346 if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then 18347 tmp_exp="" 18348 fi 18349 18350fi 18351rm -f conftest.err conftest.i conftest.$ac_ext 18352 if test -z "$tmp_exp"; then 18353 curl_cv_have_def___SUNPRO_C=no 18354 18355 else 18356 curl_cv_have_def___SUNPRO_C=yes 18357 curl_cv_def___SUNPRO_C=$tmp_exp 18358 18359 fi 18360 CPPFLAGS=$OLDCPPFLAGS 18361 18362 if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then 18363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18364printf "%s\n" "yes" >&6; } 18365 compiler_id="SUNPRO_C" 18366 flags_dbg_yes="-g" 18367 flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5" 18368 flags_opt_yes="-xO2" 18369 flags_opt_off="" 18370 else 18371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18372printf "%s\n" "no" >&6; } 18373 fi 18374 18375 18376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5 18377printf %s "checking if compiler is Tiny C... " >&6; } 18378 18379 OLDCPPFLAGS=$CPPFLAGS 18380 # CPPPFLAG comes from CURL_CPP_P 18381 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 18382 if test -z "$SED"; then 18383 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 18384 fi 18385 if test -z "$GREP"; then 18386 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 18387 fi 18388 18389 tmp_exp="" 18390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18391/* end confdefs.h. */ 18392 18393 18394 #ifdef __TINYC__ 18395 CURL_DEF_TOKEN __TINYC__ 18396 #endif 18397 18398 18399_ACEOF 18400if ac_fn_c_try_cpp "$LINENO" 18401then : 18402 18403 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 18404 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 18405 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 18406 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 18407 if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then 18408 tmp_exp="" 18409 fi 18410 18411fi 18412rm -f conftest.err conftest.i conftest.$ac_ext 18413 if test -z "$tmp_exp"; then 18414 curl_cv_have_def___TINYC__=no 18415 18416 else 18417 curl_cv_have_def___TINYC__=yes 18418 curl_cv_def___TINYC__=$tmp_exp 18419 18420 fi 18421 CPPFLAGS=$OLDCPPFLAGS 18422 18423 if test "$curl_cv_have_def___TINYC__" = "yes"; then 18424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18425printf "%s\n" "yes" >&6; } 18426 compiler_id="TINY_C" 18427 flags_dbg_yes="-g" 18428 flags_opt_all="" 18429 flags_opt_yes="" 18430 flags_opt_off="" 18431 else 18432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18433printf "%s\n" "no" >&6; } 18434 fi 18435 18436 # 18437 if test "$compiler_id" = "unknown"; then 18438 cat <<_EOF 1>&2 18439*** 18440*** Warning: This configure script does not have information about the 18441*** compiler you are using, relative to the flags required to enable or 18442*** disable generation of debug info, optimization options or warnings. 18443*** 18444*** Whatever settings are present in CFLAGS will be used for this run. 18445*** 18446*** If you wish to help the curl project to better support your compiler 18447*** you can report this and the required info on the libcurl development 18448*** mailing list: https://lists.haxx.selistinfo/curl-library/ 18449*** 18450_EOF 18451 fi 18452 18453 18454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5 18455printf %s "checking whether build target is a native Windows one... " >&6; } 18456if test ${curl_cv_native_windows+y} 18457then : 18458 printf %s "(cached) " >&6 18459else $as_nop 18460 18461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18462/* end confdefs.h. */ 18463 18464 18465 18466int main(void) 18467{ 18468 18469 #ifdef _WIN32 18470 int dummy=1; 18471 #else 18472 #error Not a native Windows build target. 18473 #endif 18474 18475 ; 18476 return 0; 18477} 18478 18479_ACEOF 18480if ac_fn_c_try_compile "$LINENO" 18481then : 18482 18483 curl_cv_native_windows="yes" 18484 18485else $as_nop 18486 18487 curl_cv_native_windows="no" 18488 18489fi 18490rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18491 18492fi 18493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5 18494printf "%s\n" "$curl_cv_native_windows" >&6; } 18495 if test "x$curl_cv_native_windows" = xyes; then 18496 DOING_NATIVE_WINDOWS_TRUE= 18497 DOING_NATIVE_WINDOWS_FALSE='#' 18498else 18499 DOING_NATIVE_WINDOWS_TRUE='#' 18500 DOING_NATIVE_WINDOWS_FALSE= 18501fi 18502 18503 18504 18505squeeze() { 18506 _sqz_result="" 18507 eval _sqz_input=\$$1 18508 for _sqz_token in $_sqz_input; do 18509 if test -z "$_sqz_result"; then 18510 _sqz_result="$_sqz_token" 18511 else 18512 _sqz_result="$_sqz_result $_sqz_token" 18513 fi 18514 done 18515 eval $1=\$_sqz_result 18516 return 0 18517} 18518 18519 18520 # 18521 if test "$compiler_id" != "unknown"; then 18522 # 18523 tmp_save_CPPFLAGS="$CPPFLAGS" 18524 tmp_save_CFLAGS="$CFLAGS" 18525 tmp_CPPFLAGS="" 18526 tmp_CFLAGS="" 18527 # 18528 case "$compiler_id" in 18529 # 18530 CLANG|APPLECLANG) 18531 # 18532 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments" 18533 tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration" 18534 ;; 18535 # 18536 DEC_C) 18537 # 18538 tmp_CFLAGS="$tmp_CFLAGS -std1" 18539 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias" 18540 tmp_CFLAGS="$tmp_CFLAGS -warnprotos" 18541 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs" 18542 ;; 18543 # 18544 GNU_C) 18545 # 18546 if test "$compiler_num" -ge "295"; then 18547 tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration" 18548 fi 18549 ;; 18550 # 18551 HP_UX_C) 18552 # 18553 tmp_CFLAGS="$tmp_CFLAGS -z" 18554 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255" 18555 ;; 18556 # 18557 IBM_C) 18558 # 18559 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded" 18560 tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias" 18561 tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e" 18562 ;; 18563 # 18564 INTEL_UNIX_C) 18565 # 18566 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89" 18567 tmp_CPPFLAGS="$tmp_CPPFLAGS -diag-error 140,147,165,266" 18568 tmp_CPPFLAGS="$tmp_CPPFLAGS -diag-disable 279,981,1025,1469,2259" 18569 ;; 18570 # 18571 INTEL_WINDOWS_C) 18572 # 18573 tmp_CFLAGS="$tmp_CFLAGS" 18574 ;; 18575 # 18576 SGI_MIPS_C) 18577 # 18578 tmp_CFLAGS="$tmp_CFLAGS" 18579 ;; 18580 # 18581 SGI_MIPSPRO_C) 18582 # 18583 tmp_CFLAGS="$tmp_CFLAGS" 18584 ;; 18585 # 18586 SUNPRO_C) 18587 # 18588 tmp_CFLAGS="$tmp_CFLAGS" 18589 ;; 18590 # 18591 TINY_C) 18592 # 18593 tmp_CFLAGS="$tmp_CFLAGS" 18594 ;; 18595 # 18596 esac 18597 # 18598 squeeze tmp_CPPFLAGS 18599 squeeze tmp_CFLAGS 18600 # 18601 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then 18602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5 18603printf %s "checking if compiler accepts some basic options... " >&6; } 18604 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS" 18605 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS" 18606 squeeze CPPFLAGS 18607 squeeze CFLAGS 18608 18609 tmp_compiler_works="unknown" 18610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18611/* end confdefs.h. */ 18612 18613 18614 18615int main(void) 18616{ 18617 18618 int i = 1; 18619 return i; 18620 18621 ; 18622 return 0; 18623} 18624 18625_ACEOF 18626if ac_fn_c_try_compile "$LINENO" 18627then : 18628 18629 tmp_compiler_works="yes" 18630 18631else $as_nop 18632 18633 tmp_compiler_works="no" 18634 echo " " >&6 18635 sed 's/^/cc-fail: /' conftest.err >&6 18636 echo " " >&6 18637 18638fi 18639rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18640 if test "$tmp_compiler_works" = "yes"; then 18641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18642/* end confdefs.h. */ 18643 18644 18645 18646int main(void) 18647{ 18648 18649 int i = 1; 18650 return i; 18651 18652 ; 18653 return 0; 18654} 18655 18656_ACEOF 18657if ac_fn_c_try_link "$LINENO" 18658then : 18659 18660 tmp_compiler_works="yes" 18661 18662else $as_nop 18663 18664 tmp_compiler_works="no" 18665 echo " " >&6 18666 sed 's/^/link-fail: /' conftest.err >&6 18667 echo " " >&6 18668 18669fi 18670rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18671 conftest$ac_exeext conftest.$ac_ext 18672 fi 18673 if test "x$cross_compiling" != "xyes" && 18674 test "$tmp_compiler_works" = "yes"; then 18675 18676 case $host in 18677 *-apple-*) 18678 if test "$cross_compiling" = yes 18679then : 18680 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18681printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 18682as_fn_error $? "cannot run test program while cross compiling 18683See \`config.log' for more details" "$LINENO" 5; } 18684else $as_nop 18685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18686/* end confdefs.h. */ 18687 18688 18689 #ifdef __STDC__ 18690 # include <stdlib.h> 18691 #endif 18692 18693int main(void) 18694{ 18695 18696 int i = 0; 18697 exit(i); 18698 18699 ; 18700 return 0; 18701} 18702 18703_ACEOF 18704if ac_fn_c_try_run "$LINENO" 18705then : 18706 tmp_compiler_works="yes" 18707 18708else $as_nop 18709 tmp_compiler_works="no" 18710 echo " " >&6 18711 echo "run-fail: test program exited with status $ac_status" >&6 18712 echo " " >&6 18713 18714fi 18715rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18716 conftest.$ac_objext conftest.beam conftest.$ac_ext 18717fi 18718 18719 ;; 18720 *) 18721 oldcc=$CC 18722 old=$LD_LIBRARY_PATH 18723 CC="sh ./run-compiler" 18724 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 18725 export LD_LIBRARY_PATH 18726 if test "$cross_compiling" = yes 18727then : 18728 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18729printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 18730as_fn_error $? "cannot run test program while cross compiling 18731See \`config.log' for more details" "$LINENO" 5; } 18732else $as_nop 18733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18734/* end confdefs.h. */ 18735 18736 18737 #ifdef __STDC__ 18738 # include <stdlib.h> 18739 #endif 18740 18741int main(void) 18742{ 18743 18744 int i = 0; 18745 exit(i); 18746 18747 ; 18748 return 0; 18749} 18750 18751_ACEOF 18752if ac_fn_c_try_run "$LINENO" 18753then : 18754 tmp_compiler_works="yes" 18755 18756else $as_nop 18757 tmp_compiler_works="no" 18758 echo " " >&6 18759 echo "run-fail: test program exited with status $ac_status" >&6 18760 echo " " >&6 18761 18762fi 18763rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18764 conftest.$ac_objext conftest.beam conftest.$ac_ext 18765fi 18766 18767 LD_LIBRARY_PATH=$old # restore 18768 CC=$oldcc 18769 ;; 18770 esac 18771 18772 fi 18773 if test "$tmp_compiler_works" = "yes"; then 18774 18775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18776printf "%s\n" "yes" >&6; } 18777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5 18778printf "%s\n" "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;} 18779 18780 else 18781 18782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18783printf "%s\n" "no" >&6; } 18784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5 18785printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;} 18786 CPPFLAGS="$tmp_save_CPPFLAGS" 18787 CFLAGS="$tmp_save_CFLAGS" 18788 18789 fi 18790 18791 fi 18792 # 18793 fi 18794 18795 18796 # 18797 if test "$compiler_id" != "unknown"; then 18798 # 18799 tmp_save_CFLAGS="$CFLAGS" 18800 tmp_save_CPPFLAGS="$CPPFLAGS" 18801 # 18802 tmp_options="" 18803 tmp_CFLAGS="$CFLAGS" 18804 tmp_CPPFLAGS="$CPPFLAGS" 18805 # 18806 if test "$want_debug" = "yes"; then 18807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5 18808printf %s "checking if compiler accepts debug enabling options... " >&6; } 18809 tmp_options="$flags_dbg_yes" 18810 fi 18811 # 18812 if test "$flags_prefer_cppflags" = "yes"; then 18813 CPPFLAGS="$tmp_CPPFLAGS $tmp_options" 18814 CFLAGS="$tmp_CFLAGS" 18815 else 18816 CPPFLAGS="$tmp_CPPFLAGS" 18817 CFLAGS="$tmp_CFLAGS $tmp_options" 18818 fi 18819 squeeze CPPFLAGS 18820 squeeze CFLAGS 18821 fi 18822 18823 18824 # 18825 if test "$compiler_id" != "unknown"; then 18826 # 18827 tmp_save_CFLAGS="$CFLAGS" 18828 tmp_save_CPPFLAGS="$CPPFLAGS" 18829 # 18830 tmp_options="" 18831 tmp_CFLAGS="$CFLAGS" 18832 tmp_CPPFLAGS="$CPPFLAGS" 18833 honor_optimize_option="yes" 18834 # 18835 # 18836 if test "$want_optimize" = "assume_no" || 18837 test "$want_optimize" = "assume_yes"; then 18838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5 18839printf %s "checking if compiler optimizer assumed setting might be used... " >&6; } 18840 18841 18842 ac_var_match_word="no" 18843 for word1 in $tmp_CFLAGS; do 18844 for word2 in $flags_opt_all; do 18845 if test "$word1" = "$word2"; then 18846 ac_var_match_word="yes" 18847 fi 18848 done 18849 done 18850 18851 if test "$ac_var_match_word" = "yes"; then 18852 18853 honor_optimize_option="no" 18854 18855 18856 fi 18857 18858 18859 18860 ac_var_match_word="no" 18861 for word1 in $tmp_CPPFLAGS; do 18862 for word2 in $flags_opt_all; do 18863 if test "$word1" = "$word2"; then 18864 ac_var_match_word="yes" 18865 fi 18866 done 18867 done 18868 18869 if test "$ac_var_match_word" = "yes"; then 18870 18871 honor_optimize_option="no" 18872 18873 18874 fi 18875 18876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5 18877printf "%s\n" "$honor_optimize_option" >&6; } 18878 if test "$honor_optimize_option" = "yes"; then 18879 if test "$want_optimize" = "assume_yes"; then 18880 want_optimize="yes" 18881 fi 18882 if test "$want_optimize" = "assume_no"; then 18883 want_optimize="no" 18884 fi 18885 fi 18886 fi 18887 # 18888 if test "$honor_optimize_option" = "yes"; then 18889 18890 ac_var_stripped="" 18891 for word1 in $tmp_CFLAGS; do 18892 ac_var_strip_word="no" 18893 for word2 in $flags_opt_all; do 18894 if test "$word1" = "$word2"; then 18895 ac_var_strip_word="yes" 18896 fi 18897 done 18898 if test "$ac_var_strip_word" = "no"; then 18899 ac_var_stripped="$ac_var_stripped $word1" 18900 fi 18901 done 18902 tmp_CFLAGS="$ac_var_stripped" 18903 squeeze tmp_CFLAGS 18904 18905 18906 ac_var_stripped="" 18907 for word1 in $tmp_CPPFLAGS; do 18908 ac_var_strip_word="no" 18909 for word2 in $flags_opt_all; do 18910 if test "$word1" = "$word2"; then 18911 ac_var_strip_word="yes" 18912 fi 18913 done 18914 if test "$ac_var_strip_word" = "no"; then 18915 ac_var_stripped="$ac_var_stripped $word1" 18916 fi 18917 done 18918 tmp_CPPFLAGS="$ac_var_stripped" 18919 squeeze tmp_CPPFLAGS 18920 18921 if test "$want_optimize" = "yes"; then 18922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5 18923printf %s "checking if compiler accepts optimizer enabling options... " >&6; } 18924 tmp_options="$flags_opt_yes" 18925 fi 18926 if test "$want_optimize" = "no"; then 18927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5 18928printf %s "checking if compiler accepts optimizer disabling options... " >&6; } 18929 tmp_options="$flags_opt_off" 18930 fi 18931 if test "$flags_prefer_cppflags" = "yes"; then 18932 CPPFLAGS="$tmp_CPPFLAGS $tmp_options" 18933 CFLAGS="$tmp_CFLAGS" 18934 else 18935 CPPFLAGS="$tmp_CPPFLAGS" 18936 CFLAGS="$tmp_CFLAGS $tmp_options" 18937 fi 18938 squeeze CPPFLAGS 18939 squeeze CFLAGS 18940 18941 tmp_compiler_works="unknown" 18942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18943/* end confdefs.h. */ 18944 18945 18946 18947int main(void) 18948{ 18949 18950 int i = 1; 18951 return i; 18952 18953 ; 18954 return 0; 18955} 18956 18957_ACEOF 18958if ac_fn_c_try_compile "$LINENO" 18959then : 18960 18961 tmp_compiler_works="yes" 18962 18963else $as_nop 18964 18965 tmp_compiler_works="no" 18966 echo " " >&6 18967 sed 's/^/cc-fail: /' conftest.err >&6 18968 echo " " >&6 18969 18970fi 18971rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18972 if test "$tmp_compiler_works" = "yes"; then 18973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18974/* end confdefs.h. */ 18975 18976 18977 18978int main(void) 18979{ 18980 18981 int i = 1; 18982 return i; 18983 18984 ; 18985 return 0; 18986} 18987 18988_ACEOF 18989if ac_fn_c_try_link "$LINENO" 18990then : 18991 18992 tmp_compiler_works="yes" 18993 18994else $as_nop 18995 18996 tmp_compiler_works="no" 18997 echo " " >&6 18998 sed 's/^/link-fail: /' conftest.err >&6 18999 echo " " >&6 19000 19001fi 19002rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19003 conftest$ac_exeext conftest.$ac_ext 19004 fi 19005 if test "x$cross_compiling" != "xyes" && 19006 test "$tmp_compiler_works" = "yes"; then 19007 19008 case $host in 19009 *-apple-*) 19010 if test "$cross_compiling" = yes 19011then : 19012 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19013printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19014as_fn_error $? "cannot run test program while cross compiling 19015See \`config.log' for more details" "$LINENO" 5; } 19016else $as_nop 19017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19018/* end confdefs.h. */ 19019 19020 19021 #ifdef __STDC__ 19022 # include <stdlib.h> 19023 #endif 19024 19025int main(void) 19026{ 19027 19028 int i = 0; 19029 exit(i); 19030 19031 ; 19032 return 0; 19033} 19034 19035_ACEOF 19036if ac_fn_c_try_run "$LINENO" 19037then : 19038 tmp_compiler_works="yes" 19039 19040else $as_nop 19041 tmp_compiler_works="no" 19042 echo " " >&6 19043 echo "run-fail: test program exited with status $ac_status" >&6 19044 echo " " >&6 19045 19046fi 19047rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19048 conftest.$ac_objext conftest.beam conftest.$ac_ext 19049fi 19050 19051 ;; 19052 *) 19053 oldcc=$CC 19054 old=$LD_LIBRARY_PATH 19055 CC="sh ./run-compiler" 19056 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 19057 export LD_LIBRARY_PATH 19058 if test "$cross_compiling" = yes 19059then : 19060 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19061printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19062as_fn_error $? "cannot run test program while cross compiling 19063See \`config.log' for more details" "$LINENO" 5; } 19064else $as_nop 19065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19066/* end confdefs.h. */ 19067 19068 19069 #ifdef __STDC__ 19070 # include <stdlib.h> 19071 #endif 19072 19073int main(void) 19074{ 19075 19076 int i = 0; 19077 exit(i); 19078 19079 ; 19080 return 0; 19081} 19082 19083_ACEOF 19084if ac_fn_c_try_run "$LINENO" 19085then : 19086 tmp_compiler_works="yes" 19087 19088else $as_nop 19089 tmp_compiler_works="no" 19090 echo " " >&6 19091 echo "run-fail: test program exited with status $ac_status" >&6 19092 echo " " >&6 19093 19094fi 19095rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19096 conftest.$ac_objext conftest.beam conftest.$ac_ext 19097fi 19098 19099 LD_LIBRARY_PATH=$old # restore 19100 CC=$oldcc 19101 ;; 19102 esac 19103 19104 fi 19105 if test "$tmp_compiler_works" = "yes"; then 19106 19107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19108printf "%s\n" "yes" >&6; } 19109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5 19110printf "%s\n" "$as_me: compiler options added: $tmp_options" >&6;} 19111 19112 else 19113 19114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19115printf "%s\n" "no" >&6; } 19116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5 19117printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;} 19118 CPPFLAGS="$tmp_save_CPPFLAGS" 19119 CFLAGS="$tmp_save_CFLAGS" 19120 19121 fi 19122 19123 fi 19124 # 19125 fi 19126 19127 19128 # 19129 if test "$compiler_id" != "unknown"; then 19130 # 19131 tmp_save_CPPFLAGS="$CPPFLAGS" 19132 tmp_save_CFLAGS="$CFLAGS" 19133 tmp_CPPFLAGS="" 19134 tmp_CFLAGS="" 19135 # 19136 case "$compiler_id" in 19137 # 19138 CLANG|APPLECLANG) 19139 # 19140 if test "$want_warnings" = "yes"; then 19141 tmp_CFLAGS="$tmp_CFLAGS -pedantic" 19142 19143 ac_var_added_warnings="" 19144 for warning in all extra; do 19145 19146 ac_var_match_word="no" 19147 for word1 in $CFLAGS; do 19148 for word2 in -Wno-$warning -W$warning; do 19149 if test "$word1" = "$word2"; then 19150 ac_var_match_word="yes" 19151 fi 19152 done 19153 done 19154 19155 if test "$ac_var_match_word" = "no"; then 19156 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19157 fi 19158 done 19159 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19160 squeeze tmp_CFLAGS 19161 19162 19163 ac_var_added_warnings="" 19164 for warning in pointer-arith write-strings; do 19165 19166 ac_var_match_word="no" 19167 for word1 in $CFLAGS; do 19168 for word2 in -Wno-$warning -W$warning; do 19169 if test "$word1" = "$word2"; then 19170 ac_var_match_word="yes" 19171 fi 19172 done 19173 done 19174 19175 if test "$ac_var_match_word" = "no"; then 19176 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19177 fi 19178 done 19179 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19180 squeeze tmp_CFLAGS 19181 19182 19183 ac_var_added_warnings="" 19184 for warning in shadow; do 19185 19186 ac_var_match_word="no" 19187 for word1 in $CFLAGS; do 19188 for word2 in -Wno-$warning -W$warning; do 19189 if test "$word1" = "$word2"; then 19190 ac_var_match_word="yes" 19191 fi 19192 done 19193 done 19194 19195 if test "$ac_var_match_word" = "no"; then 19196 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19197 fi 19198 done 19199 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19200 squeeze tmp_CFLAGS 19201 19202 19203 ac_var_added_warnings="" 19204 for warning in inline nested-externs; do 19205 19206 ac_var_match_word="no" 19207 for word1 in $CFLAGS; do 19208 for word2 in -Wno-$warning -W$warning; do 19209 if test "$word1" = "$word2"; then 19210 ac_var_match_word="yes" 19211 fi 19212 done 19213 done 19214 19215 if test "$ac_var_match_word" = "no"; then 19216 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19217 fi 19218 done 19219 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19220 squeeze tmp_CFLAGS 19221 19222 19223 ac_var_added_warnings="" 19224 for warning in missing-declarations; do 19225 19226 ac_var_match_word="no" 19227 for word1 in $CFLAGS; do 19228 for word2 in -Wno-$warning -W$warning; do 19229 if test "$word1" = "$word2"; then 19230 ac_var_match_word="yes" 19231 fi 19232 done 19233 done 19234 19235 if test "$ac_var_match_word" = "no"; then 19236 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19237 fi 19238 done 19239 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19240 squeeze tmp_CFLAGS 19241 19242 19243 ac_var_added_warnings="" 19244 for warning in missing-prototypes; do 19245 19246 ac_var_match_word="no" 19247 for word1 in $CFLAGS; do 19248 for word2 in -Wno-$warning -W$warning; do 19249 if test "$word1" = "$word2"; then 19250 ac_var_match_word="yes" 19251 fi 19252 done 19253 done 19254 19255 if test "$ac_var_match_word" = "no"; then 19256 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19257 fi 19258 done 19259 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19260 squeeze tmp_CFLAGS 19261 19262 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long" 19263 19264 ac_var_added_warnings="" 19265 for warning in float-equal; do 19266 19267 ac_var_match_word="no" 19268 for word1 in $CFLAGS; do 19269 for word2 in -Wno-$warning -W$warning; do 19270 if test "$word1" = "$word2"; then 19271 ac_var_match_word="yes" 19272 fi 19273 done 19274 done 19275 19276 if test "$ac_var_match_word" = "no"; then 19277 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19278 fi 19279 done 19280 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19281 squeeze tmp_CFLAGS 19282 19283 19284 ac_var_added_warnings="" 19285 for warning in sign-compare; do 19286 19287 ac_var_match_word="no" 19288 for word1 in $CFLAGS; do 19289 for word2 in -Wno-$warning -W$warning; do 19290 if test "$word1" = "$word2"; then 19291 ac_var_match_word="yes" 19292 fi 19293 done 19294 done 19295 19296 if test "$ac_var_match_word" = "no"; then 19297 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19298 fi 19299 done 19300 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19301 squeeze tmp_CFLAGS 19302 19303 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar" 19304 19305 ac_var_added_warnings="" 19306 for warning in undef; do 19307 19308 ac_var_match_word="no" 19309 for word1 in $CFLAGS; do 19310 for word2 in -Wno-$warning -W$warning; do 19311 if test "$word1" = "$word2"; then 19312 ac_var_match_word="yes" 19313 fi 19314 done 19315 done 19316 19317 if test "$ac_var_match_word" = "no"; then 19318 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19319 fi 19320 done 19321 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19322 squeeze tmp_CFLAGS 19323 19324 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral" 19325 19326 ac_var_added_warnings="" 19327 for warning in endif-labels strict-prototypes; do 19328 19329 ac_var_match_word="no" 19330 for word1 in $CFLAGS; do 19331 for word2 in -Wno-$warning -W$warning; do 19332 if test "$word1" = "$word2"; then 19333 ac_var_match_word="yes" 19334 fi 19335 done 19336 done 19337 19338 if test "$ac_var_match_word" = "no"; then 19339 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19340 fi 19341 done 19342 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19343 squeeze tmp_CFLAGS 19344 19345 19346 ac_var_added_warnings="" 19347 for warning in declaration-after-statement; do 19348 19349 ac_var_match_word="no" 19350 for word1 in $CFLAGS; do 19351 for word2 in -Wno-$warning -W$warning; do 19352 if test "$word1" = "$word2"; then 19353 ac_var_match_word="yes" 19354 fi 19355 done 19356 done 19357 19358 if test "$ac_var_match_word" = "no"; then 19359 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19360 fi 19361 done 19362 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19363 squeeze tmp_CFLAGS 19364 19365 19366 ac_var_added_warnings="" 19367 for warning in cast-align; do 19368 19369 ac_var_match_word="no" 19370 for word1 in $CFLAGS; do 19371 for word2 in -Wno-$warning -W$warning; do 19372 if test "$word1" = "$word2"; then 19373 ac_var_match_word="yes" 19374 fi 19375 done 19376 done 19377 19378 if test "$ac_var_match_word" = "no"; then 19379 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19380 fi 19381 done 19382 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19383 squeeze tmp_CFLAGS 19384 19385 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers" 19386 19387 ac_var_added_warnings="" 19388 for warning in shorten-64-to-32; do 19389 19390 ac_var_match_word="no" 19391 for word1 in $CFLAGS; do 19392 for word2 in -Wno-$warning -W$warning; do 19393 if test "$word1" = "$word2"; then 19394 ac_var_match_word="yes" 19395 fi 19396 done 19397 done 19398 19399 if test "$ac_var_match_word" = "no"; then 19400 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19401 fi 19402 done 19403 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19404 squeeze tmp_CFLAGS 19405 19406 # 19407 if test "$compiler_num" -ge "101"; then 19408 19409 ac_var_added_warnings="" 19410 for warning in unused; do 19411 19412 ac_var_match_word="no" 19413 for word1 in $CFLAGS; do 19414 for word2 in -Wno-$warning -W$warning; do 19415 if test "$word1" = "$word2"; then 19416 ac_var_match_word="yes" 19417 fi 19418 done 19419 done 19420 19421 if test "$ac_var_match_word" = "no"; then 19422 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19423 fi 19424 done 19425 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19426 squeeze tmp_CFLAGS 19427 19428 fi 19429 # 19430 if test "$compiler_num" -ge "207"; then 19431 19432 ac_var_added_warnings="" 19433 for warning in address; do 19434 19435 ac_var_match_word="no" 19436 for word1 in $CFLAGS; do 19437 for word2 in -Wno-$warning -W$warning; do 19438 if test "$word1" = "$word2"; then 19439 ac_var_match_word="yes" 19440 fi 19441 done 19442 done 19443 19444 if test "$ac_var_match_word" = "no"; then 19445 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19446 fi 19447 done 19448 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19449 squeeze tmp_CFLAGS 19450 19451 19452 ac_var_added_warnings="" 19453 for warning in attributes; do 19454 19455 ac_var_match_word="no" 19456 for word1 in $CFLAGS; do 19457 for word2 in -Wno-$warning -W$warning; do 19458 if test "$word1" = "$word2"; then 19459 ac_var_match_word="yes" 19460 fi 19461 done 19462 done 19463 19464 if test "$ac_var_match_word" = "no"; then 19465 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19466 fi 19467 done 19468 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19469 squeeze tmp_CFLAGS 19470 19471 19472 ac_var_added_warnings="" 19473 for warning in bad-function-cast; do 19474 19475 ac_var_match_word="no" 19476 for word1 in $CFLAGS; do 19477 for word2 in -Wno-$warning -W$warning; do 19478 if test "$word1" = "$word2"; then 19479 ac_var_match_word="yes" 19480 fi 19481 done 19482 done 19483 19484 if test "$ac_var_match_word" = "no"; then 19485 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19486 fi 19487 done 19488 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19489 squeeze tmp_CFLAGS 19490 19491 19492 ac_var_added_warnings="" 19493 for warning in conversion; do 19494 19495 ac_var_match_word="no" 19496 for word1 in $CFLAGS; do 19497 for word2 in -Wno-$warning -W$warning; do 19498 if test "$word1" = "$word2"; then 19499 ac_var_match_word="yes" 19500 fi 19501 done 19502 done 19503 19504 if test "$ac_var_match_word" = "no"; then 19505 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19506 fi 19507 done 19508 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19509 squeeze tmp_CFLAGS 19510 19511 19512 ac_var_added_warnings="" 19513 for warning in div-by-zero format-security; do 19514 19515 ac_var_match_word="no" 19516 for word1 in $CFLAGS; do 19517 for word2 in -Wno-$warning -W$warning; do 19518 if test "$word1" = "$word2"; then 19519 ac_var_match_word="yes" 19520 fi 19521 done 19522 done 19523 19524 if test "$ac_var_match_word" = "no"; then 19525 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19526 fi 19527 done 19528 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19529 squeeze tmp_CFLAGS 19530 19531 19532 ac_var_added_warnings="" 19533 for warning in empty-body; do 19534 19535 ac_var_match_word="no" 19536 for word1 in $CFLAGS; do 19537 for word2 in -Wno-$warning -W$warning; do 19538 if test "$word1" = "$word2"; then 19539 ac_var_match_word="yes" 19540 fi 19541 done 19542 done 19543 19544 if test "$ac_var_match_word" = "no"; then 19545 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19546 fi 19547 done 19548 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19549 squeeze tmp_CFLAGS 19550 19551 19552 ac_var_added_warnings="" 19553 for warning in missing-field-initializers; do 19554 19555 ac_var_match_word="no" 19556 for word1 in $CFLAGS; do 19557 for word2 in -Wno-$warning -W$warning; do 19558 if test "$word1" = "$word2"; then 19559 ac_var_match_word="yes" 19560 fi 19561 done 19562 done 19563 19564 if test "$ac_var_match_word" = "no"; then 19565 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19566 fi 19567 done 19568 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19569 squeeze tmp_CFLAGS 19570 19571 19572 ac_var_added_warnings="" 19573 for warning in missing-noreturn; do 19574 19575 ac_var_match_word="no" 19576 for word1 in $CFLAGS; do 19577 for word2 in -Wno-$warning -W$warning; do 19578 if test "$word1" = "$word2"; then 19579 ac_var_match_word="yes" 19580 fi 19581 done 19582 done 19583 19584 if test "$ac_var_match_word" = "no"; then 19585 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19586 fi 19587 done 19588 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19589 squeeze tmp_CFLAGS 19590 19591 19592 ac_var_added_warnings="" 19593 for warning in old-style-definition; do 19594 19595 ac_var_match_word="no" 19596 for word1 in $CFLAGS; do 19597 for word2 in -Wno-$warning -W$warning; do 19598 if test "$word1" = "$word2"; then 19599 ac_var_match_word="yes" 19600 fi 19601 done 19602 done 19603 19604 if test "$ac_var_match_word" = "no"; then 19605 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19606 fi 19607 done 19608 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19609 squeeze tmp_CFLAGS 19610 19611 19612 ac_var_added_warnings="" 19613 for warning in redundant-decls; do 19614 19615 ac_var_match_word="no" 19616 for word1 in $CFLAGS; do 19617 for word2 in -Wno-$warning -W$warning; do 19618 if test "$word1" = "$word2"; then 19619 ac_var_match_word="yes" 19620 fi 19621 done 19622 done 19623 19624 if test "$ac_var_match_word" = "no"; then 19625 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19626 fi 19627 done 19628 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19629 squeeze tmp_CFLAGS 19630 19631 # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [switch-enum]) # Not used because this basically disallows default case 19632 19633 ac_var_added_warnings="" 19634 for warning in type-limits; do 19635 19636 ac_var_match_word="no" 19637 for word1 in $CFLAGS; do 19638 for word2 in -Wno-$warning -W$warning; do 19639 if test "$word1" = "$word2"; then 19640 ac_var_match_word="yes" 19641 fi 19642 done 19643 done 19644 19645 if test "$ac_var_match_word" = "no"; then 19646 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19647 fi 19648 done 19649 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19650 squeeze tmp_CFLAGS 19651 19652 # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unused-macros]) # Not practical 19653 19654 ac_var_added_warnings="" 19655 for warning in unreachable-code unused-parameter; do 19656 19657 ac_var_match_word="no" 19658 for word1 in $CFLAGS; do 19659 for word2 in -Wno-$warning -W$warning; do 19660 if test "$word1" = "$word2"; then 19661 ac_var_match_word="yes" 19662 fi 19663 done 19664 done 19665 19666 if test "$ac_var_match_word" = "no"; then 19667 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19668 fi 19669 done 19670 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19671 squeeze tmp_CFLAGS 19672 19673 fi 19674 # 19675 if test "$compiler_num" -ge "208"; then 19676 19677 ac_var_added_warnings="" 19678 for warning in ignored-qualifiers; do 19679 19680 ac_var_match_word="no" 19681 for word1 in $CFLAGS; do 19682 for word2 in -Wno-$warning -W$warning; do 19683 if test "$word1" = "$word2"; then 19684 ac_var_match_word="yes" 19685 fi 19686 done 19687 done 19688 19689 if test "$ac_var_match_word" = "no"; then 19690 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19691 fi 19692 done 19693 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19694 squeeze tmp_CFLAGS 19695 19696 19697 ac_var_added_warnings="" 19698 for warning in vla; do 19699 19700 ac_var_match_word="no" 19701 for word1 in $CFLAGS; do 19702 for word2 in -Wno-$warning -W$warning; do 19703 if test "$word1" = "$word2"; then 19704 ac_var_match_word="yes" 19705 fi 19706 done 19707 done 19708 19709 if test "$ac_var_match_word" = "no"; then 19710 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19711 fi 19712 done 19713 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19714 squeeze tmp_CFLAGS 19715 19716 fi 19717 # 19718 if test "$compiler_num" -ge "209"; then 19719 19720 ac_var_added_warnings="" 19721 for warning in sign-conversion; do 19722 19723 ac_var_match_word="no" 19724 for word1 in $CFLAGS; do 19725 for word2 in -Wno-$warning -W$warning; do 19726 if test "$word1" = "$word2"; then 19727 ac_var_match_word="yes" 19728 fi 19729 done 19730 done 19731 19732 if test "$ac_var_match_word" = "no"; then 19733 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19734 fi 19735 done 19736 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19737 squeeze tmp_CFLAGS 19738 19739 tmp_CFLAGS="$tmp_CFLAGS -Wno-error=sign-conversion" # FIXME 19740 19741 ac_var_added_warnings="" 19742 for warning in shift-sign-overflow; do 19743 19744 ac_var_match_word="no" 19745 for word1 in $CFLAGS; do 19746 for word2 in -Wno-$warning -W$warning; do 19747 if test "$word1" = "$word2"; then 19748 ac_var_match_word="yes" 19749 fi 19750 done 19751 done 19752 19753 if test "$ac_var_match_word" = "no"; then 19754 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19755 fi 19756 done 19757 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19758 squeeze tmp_CFLAGS 19759 19760 # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [padded]) # Not used because we cannot change public structs 19761 fi 19762 # 19763 if test "$compiler_num" -ge "300"; then 19764 19765 ac_var_added_warnings="" 19766 for warning in language-extension-token; do 19767 19768 ac_var_match_word="no" 19769 for word1 in $CFLAGS; do 19770 for word2 in -Wno-$warning -W$warning; do 19771 if test "$word1" = "$word2"; then 19772 ac_var_match_word="yes" 19773 fi 19774 done 19775 done 19776 19777 if test "$ac_var_match_word" = "no"; then 19778 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19779 fi 19780 done 19781 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19782 squeeze tmp_CFLAGS 19783 19784 tmp_CFLAGS="$tmp_CFLAGS -Wformat=2" 19785 fi 19786 # 19787 if test "$compiler_num" -ge "302"; then 19788 19789 ac_var_added_warnings="" 19790 for warning in enum-conversion; do 19791 19792 ac_var_match_word="no" 19793 for word1 in $CFLAGS; do 19794 for word2 in -Wno-$warning -W$warning; do 19795 if test "$word1" = "$word2"; then 19796 ac_var_match_word="yes" 19797 fi 19798 done 19799 done 19800 19801 if test "$ac_var_match_word" = "no"; then 19802 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19803 fi 19804 done 19805 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19806 squeeze tmp_CFLAGS 19807 19808 19809 ac_var_added_warnings="" 19810 for warning in sometimes-uninitialized; do 19811 19812 ac_var_match_word="no" 19813 for word1 in $CFLAGS; do 19814 for word2 in -Wno-$warning -W$warning; do 19815 if test "$word1" = "$word2"; then 19816 ac_var_match_word="yes" 19817 fi 19818 done 19819 done 19820 19821 if test "$ac_var_match_word" = "no"; then 19822 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19823 fi 19824 done 19825 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19826 squeeze tmp_CFLAGS 19827 19828 case $host_os in 19829 cygwin* | mingw*) 19830 ;; 19831 *) 19832 19833 ac_var_added_warnings="" 19834 for warning in missing-variable-declarations; do 19835 19836 ac_var_match_word="no" 19837 for word1 in $CFLAGS; do 19838 for word2 in -Wno-$warning -W$warning; do 19839 if test "$word1" = "$word2"; then 19840 ac_var_match_word="yes" 19841 fi 19842 done 19843 done 19844 19845 if test "$ac_var_match_word" = "no"; then 19846 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19847 fi 19848 done 19849 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19850 squeeze tmp_CFLAGS 19851 19852 ;; 19853 esac 19854 fi 19855 # 19856 if test "$compiler_num" -ge "304"; then 19857 19858 ac_var_added_warnings="" 19859 for warning in header-guard; do 19860 19861 ac_var_match_word="no" 19862 for word1 in $CFLAGS; do 19863 for word2 in -Wno-$warning -W$warning; do 19864 if test "$word1" = "$word2"; then 19865 ac_var_match_word="yes" 19866 fi 19867 done 19868 done 19869 19870 if test "$ac_var_match_word" = "no"; then 19871 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19872 fi 19873 done 19874 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19875 squeeze tmp_CFLAGS 19876 19877 19878 ac_var_added_warnings="" 19879 for warning in unused-const-variable; do 19880 19881 ac_var_match_word="no" 19882 for word1 in $CFLAGS; do 19883 for word2 in -Wno-$warning -W$warning; do 19884 if test "$word1" = "$word2"; then 19885 ac_var_match_word="yes" 19886 fi 19887 done 19888 done 19889 19890 if test "$ac_var_match_word" = "no"; then 19891 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19892 fi 19893 done 19894 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19895 squeeze tmp_CFLAGS 19896 19897 fi 19898 # 19899 if test "$compiler_num" -ge "305"; then 19900 19901 ac_var_added_warnings="" 19902 for warning in pragmas; do 19903 19904 ac_var_match_word="no" 19905 for word1 in $CFLAGS; do 19906 for word2 in -Wno-$warning -W$warning; do 19907 if test "$word1" = "$word2"; then 19908 ac_var_match_word="yes" 19909 fi 19910 done 19911 done 19912 19913 if test "$ac_var_match_word" = "no"; then 19914 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19915 fi 19916 done 19917 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19918 squeeze tmp_CFLAGS 19919 19920 # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unreachable-code-break]) # Not used: Silent in "unity" builds 19921 fi 19922 # 19923 if test "$compiler_num" -ge "306"; then 19924 19925 ac_var_added_warnings="" 19926 for warning in double-promotion; do 19927 19928 ac_var_match_word="no" 19929 for word1 in $CFLAGS; do 19930 for word2 in -Wno-$warning -W$warning; do 19931 if test "$word1" = "$word2"; then 19932 ac_var_match_word="yes" 19933 fi 19934 done 19935 done 19936 19937 if test "$ac_var_match_word" = "no"; then 19938 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19939 fi 19940 done 19941 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19942 squeeze tmp_CFLAGS 19943 19944 fi 19945 # 19946 if test "$compiler_num" -ge "309"; then 19947 19948 ac_var_added_warnings="" 19949 for warning in comma; do 19950 19951 ac_var_match_word="no" 19952 for word1 in $CFLAGS; do 19953 for word2 in -Wno-$warning -W$warning; do 19954 if test "$word1" = "$word2"; then 19955 ac_var_match_word="yes" 19956 fi 19957 done 19958 done 19959 19960 if test "$ac_var_match_word" = "no"; then 19961 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19962 fi 19963 done 19964 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19965 squeeze tmp_CFLAGS 19966 19967 # avoid the varargs warning, fixed in 4.0 19968 # https://bugs.llvm.org/show_bug.cgi?id=29140 19969 if test "$compiler_num" -lt "400"; then 19970 tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs" 19971 fi 19972 fi 19973 if test "$compiler_num" -ge "700"; then 19974 19975 ac_var_added_warnings="" 19976 for warning in assign-enum; do 19977 19978 ac_var_match_word="no" 19979 for word1 in $CFLAGS; do 19980 for word2 in -Wno-$warning -W$warning; do 19981 if test "$word1" = "$word2"; then 19982 ac_var_match_word="yes" 19983 fi 19984 done 19985 done 19986 19987 if test "$ac_var_match_word" = "no"; then 19988 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 19989 fi 19990 done 19991 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 19992 squeeze tmp_CFLAGS 19993 19994 19995 ac_var_added_warnings="" 19996 for warning in extra-semi-stmt; do 19997 19998 ac_var_match_word="no" 19999 for word1 in $CFLAGS; do 20000 for word2 in -Wno-$warning -W$warning; do 20001 if test "$word1" = "$word2"; then 20002 ac_var_match_word="yes" 20003 fi 20004 done 20005 done 20006 20007 if test "$ac_var_match_word" = "no"; then 20008 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20009 fi 20010 done 20011 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20012 squeeze tmp_CFLAGS 20013 20014 fi 20015 if test "$compiler_num" -ge "1000"; then 20016 tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough" # we have silencing markup for clang 10.0 and above only 20017 fi 20018 fi 20019 ;; 20020 # 20021 DEC_C) 20022 # 20023 if test "$want_warnings" = "yes"; then 20024 tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3" 20025 fi 20026 ;; 20027 # 20028 GNU_C) 20029 # 20030 if test "$want_warnings" = "yes"; then 20031 # 20032 if test "x$cross_compiling" != "xyes" || 20033 test "$compiler_num" -ge "300"; then 20034 tmp_CFLAGS="$tmp_CFLAGS -pedantic" 20035 fi 20036 # 20037 20038 ac_var_added_warnings="" 20039 for warning in all; do 20040 20041 ac_var_match_word="no" 20042 for word1 in $CFLAGS; do 20043 for word2 in -Wno-$warning -W$warning; do 20044 if test "$word1" = "$word2"; then 20045 ac_var_match_word="yes" 20046 fi 20047 done 20048 done 20049 20050 if test "$ac_var_match_word" = "no"; then 20051 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20052 fi 20053 done 20054 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20055 squeeze tmp_CFLAGS 20056 20057 tmp_CFLAGS="$tmp_CFLAGS -W" 20058 # 20059 if test "$compiler_num" -ge "104"; then 20060 20061 ac_var_added_warnings="" 20062 for warning in pointer-arith write-strings; do 20063 20064 ac_var_match_word="no" 20065 for word1 in $CFLAGS; do 20066 for word2 in -Wno-$warning -W$warning; do 20067 if test "$word1" = "$word2"; then 20068 ac_var_match_word="yes" 20069 fi 20070 done 20071 done 20072 20073 if test "$ac_var_match_word" = "no"; then 20074 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20075 fi 20076 done 20077 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20078 squeeze tmp_CFLAGS 20079 20080 if test "x$cross_compiling" != "xyes" || 20081 test "$compiler_num" -ge "300"; then 20082 20083 ac_var_added_warnings="" 20084 for warning in unused shadow; do 20085 20086 ac_var_match_word="no" 20087 for word1 in $CFLAGS; do 20088 for word2 in -Wno-$warning -W$warning; do 20089 if test "$word1" = "$word2"; then 20090 ac_var_match_word="yes" 20091 fi 20092 done 20093 done 20094 20095 if test "$ac_var_match_word" = "no"; then 20096 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20097 fi 20098 done 20099 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20100 squeeze tmp_CFLAGS 20101 20102 fi 20103 fi 20104 # 20105 if test "$compiler_num" -ge "207"; then 20106 20107 ac_var_added_warnings="" 20108 for warning in inline nested-externs; do 20109 20110 ac_var_match_word="no" 20111 for word1 in $CFLAGS; do 20112 for word2 in -Wno-$warning -W$warning; do 20113 if test "$word1" = "$word2"; then 20114 ac_var_match_word="yes" 20115 fi 20116 done 20117 done 20118 20119 if test "$ac_var_match_word" = "no"; then 20120 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20121 fi 20122 done 20123 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20124 squeeze tmp_CFLAGS 20125 20126 if test "x$cross_compiling" != "xyes" || 20127 test "$compiler_num" -ge "300"; then 20128 20129 ac_var_added_warnings="" 20130 for warning in missing-declarations; do 20131 20132 ac_var_match_word="no" 20133 for word1 in $CFLAGS; do 20134 for word2 in -Wno-$warning -W$warning; do 20135 if test "$word1" = "$word2"; then 20136 ac_var_match_word="yes" 20137 fi 20138 done 20139 done 20140 20141 if test "$ac_var_match_word" = "no"; then 20142 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20143 fi 20144 done 20145 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20146 squeeze tmp_CFLAGS 20147 20148 20149 ac_var_added_warnings="" 20150 for warning in missing-prototypes; do 20151 20152 ac_var_match_word="no" 20153 for word1 in $CFLAGS; do 20154 for word2 in -Wno-$warning -W$warning; do 20155 if test "$word1" = "$word2"; then 20156 ac_var_match_word="yes" 20157 fi 20158 done 20159 done 20160 20161 if test "$ac_var_match_word" = "no"; then 20162 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20163 fi 20164 done 20165 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20166 squeeze tmp_CFLAGS 20167 20168 fi 20169 fi 20170 # 20171 if test "$compiler_num" -ge "295"; then 20172 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long" 20173 20174 ac_var_added_warnings="" 20175 for warning in bad-function-cast; do 20176 20177 ac_var_match_word="no" 20178 for word1 in $CFLAGS; do 20179 for word2 in -Wno-$warning -W$warning; do 20180 if test "$word1" = "$word2"; then 20181 ac_var_match_word="yes" 20182 fi 20183 done 20184 done 20185 20186 if test "$ac_var_match_word" = "no"; then 20187 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20188 fi 20189 done 20190 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20191 squeeze tmp_CFLAGS 20192 20193 fi 20194 # 20195 if test "$compiler_num" -ge "296"; then 20196 20197 ac_var_added_warnings="" 20198 for warning in float-equal; do 20199 20200 ac_var_match_word="no" 20201 for word1 in $CFLAGS; do 20202 for word2 in -Wno-$warning -W$warning; do 20203 if test "$word1" = "$word2"; then 20204 ac_var_match_word="yes" 20205 fi 20206 done 20207 done 20208 20209 if test "$ac_var_match_word" = "no"; then 20210 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20211 fi 20212 done 20213 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20214 squeeze tmp_CFLAGS 20215 20216 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar" 20217 20218 ac_var_added_warnings="" 20219 for warning in sign-compare; do 20220 20221 ac_var_match_word="no" 20222 for word1 in $CFLAGS; do 20223 for word2 in -Wno-$warning -W$warning; do 20224 if test "$word1" = "$word2"; then 20225 ac_var_match_word="yes" 20226 fi 20227 done 20228 done 20229 20230 if test "$ac_var_match_word" = "no"; then 20231 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20232 fi 20233 done 20234 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20235 squeeze tmp_CFLAGS 20236 20237 20238 ac_var_added_warnings="" 20239 for warning in undef; do 20240 20241 ac_var_match_word="no" 20242 for word1 in $CFLAGS; do 20243 for word2 in -Wno-$warning -W$warning; do 20244 if test "$word1" = "$word2"; then 20245 ac_var_match_word="yes" 20246 fi 20247 done 20248 done 20249 20250 if test "$ac_var_match_word" = "no"; then 20251 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20252 fi 20253 done 20254 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20255 squeeze tmp_CFLAGS 20256 20257 fi 20258 # 20259 if test "$compiler_num" -ge "297"; then 20260 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral" 20261 fi 20262 # 20263 if test "$compiler_num" -ge "300"; then 20264 tmp_CFLAGS="$tmp_CFLAGS" 20265 fi 20266 # 20267 if test "$compiler_num" -ge "303"; then 20268 20269 ac_var_added_warnings="" 20270 for warning in endif-labels strict-prototypes; do 20271 20272 ac_var_match_word="no" 20273 for word1 in $CFLAGS; do 20274 for word2 in -Wno-$warning -W$warning; do 20275 if test "$word1" = "$word2"; then 20276 ac_var_match_word="yes" 20277 fi 20278 done 20279 done 20280 20281 if test "$ac_var_match_word" = "no"; then 20282 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20283 fi 20284 done 20285 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20286 squeeze tmp_CFLAGS 20287 20288 fi 20289 # 20290 if test "$compiler_num" -ge "304"; then 20291 20292 ac_var_added_warnings="" 20293 for warning in declaration-after-statement; do 20294 20295 ac_var_match_word="no" 20296 for word1 in $CFLAGS; do 20297 for word2 in -Wno-$warning -W$warning; do 20298 if test "$word1" = "$word2"; then 20299 ac_var_match_word="yes" 20300 fi 20301 done 20302 done 20303 20304 if test "$ac_var_match_word" = "no"; then 20305 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20306 fi 20307 done 20308 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20309 squeeze tmp_CFLAGS 20310 20311 20312 ac_var_added_warnings="" 20313 for warning in old-style-definition; do 20314 20315 ac_var_match_word="no" 20316 for word1 in $CFLAGS; do 20317 for word2 in -Wno-$warning -W$warning; do 20318 if test "$word1" = "$word2"; then 20319 ac_var_match_word="yes" 20320 fi 20321 done 20322 done 20323 20324 if test "$ac_var_match_word" = "no"; then 20325 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20326 fi 20327 done 20328 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20329 squeeze tmp_CFLAGS 20330 20331 fi 20332 # 20333 if test "$compiler_num" -ge "400"; then 20334 tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3" 20335 fi 20336 # 20337 if test "$compiler_num" -ge "401"; then 20338 20339 ac_var_added_warnings="" 20340 for warning in attributes; do 20341 20342 ac_var_match_word="no" 20343 for word1 in $CFLAGS; do 20344 for word2 in -Wno-$warning -W$warning; do 20345 if test "$word1" = "$word2"; then 20346 ac_var_match_word="yes" 20347 fi 20348 done 20349 done 20350 20351 if test "$ac_var_match_word" = "no"; then 20352 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20353 fi 20354 done 20355 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20356 squeeze tmp_CFLAGS 20357 20358 20359 ac_var_added_warnings="" 20360 for warning in div-by-zero format-security; do 20361 20362 ac_var_match_word="no" 20363 for word1 in $CFLAGS; do 20364 for word2 in -Wno-$warning -W$warning; do 20365 if test "$word1" = "$word2"; then 20366 ac_var_match_word="yes" 20367 fi 20368 done 20369 done 20370 20371 if test "$ac_var_match_word" = "no"; then 20372 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20373 fi 20374 done 20375 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20376 squeeze tmp_CFLAGS 20377 20378 20379 ac_var_added_warnings="" 20380 for warning in missing-field-initializers; do 20381 20382 ac_var_match_word="no" 20383 for word1 in $CFLAGS; do 20384 for word2 in -Wno-$warning -W$warning; do 20385 if test "$word1" = "$word2"; then 20386 ac_var_match_word="yes" 20387 fi 20388 done 20389 done 20390 20391 if test "$ac_var_match_word" = "no"; then 20392 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20393 fi 20394 done 20395 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20396 squeeze tmp_CFLAGS 20397 20398 case $host in 20399 *-*-msys*) 20400 ;; 20401 *) 20402 20403 ac_var_added_warnings="" 20404 for warning in missing-noreturn; do 20405 20406 ac_var_match_word="no" 20407 for word1 in $CFLAGS; do 20408 for word2 in -Wno-$warning -W$warning; do 20409 if test "$word1" = "$word2"; then 20410 ac_var_match_word="yes" 20411 fi 20412 done 20413 done 20414 20415 if test "$ac_var_match_word" = "no"; then 20416 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20417 fi 20418 done 20419 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20420 squeeze tmp_CFLAGS 20421 # Seen to clash with libtool-generated stub code 20422 ;; 20423 esac 20424 20425 ac_var_added_warnings="" 20426 for warning in unreachable-code unused-parameter; do 20427 20428 ac_var_match_word="no" 20429 for word1 in $CFLAGS; do 20430 for word2 in -Wno-$warning -W$warning; do 20431 if test "$word1" = "$word2"; then 20432 ac_var_match_word="yes" 20433 fi 20434 done 20435 done 20436 20437 if test "$ac_var_match_word" = "no"; then 20438 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20439 fi 20440 done 20441 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20442 squeeze tmp_CFLAGS 20443 20444 # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [padded]) # Not used because we cannot change public structs 20445 20446 ac_var_added_warnings="" 20447 for warning in pragmas; do 20448 20449 ac_var_match_word="no" 20450 for word1 in $CFLAGS; do 20451 for word2 in -Wno-$warning -W$warning; do 20452 if test "$word1" = "$word2"; then 20453 ac_var_match_word="yes" 20454 fi 20455 done 20456 done 20457 20458 if test "$ac_var_match_word" = "no"; then 20459 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20460 fi 20461 done 20462 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20463 squeeze tmp_CFLAGS 20464 20465 20466 ac_var_added_warnings="" 20467 for warning in redundant-decls; do 20468 20469 ac_var_match_word="no" 20470 for word1 in $CFLAGS; do 20471 for word2 in -Wno-$warning -W$warning; do 20472 if test "$word1" = "$word2"; then 20473 ac_var_match_word="yes" 20474 fi 20475 done 20476 done 20477 20478 if test "$ac_var_match_word" = "no"; then 20479 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20480 fi 20481 done 20482 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20483 squeeze tmp_CFLAGS 20484 20485 # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [switch-enum]) # Not used because this basically disallows default case 20486 # CURL_ADD_COMPILER_WARNINGS([tmp_CFLAGS], [unused-macros]) # Not practical 20487 fi 20488 # 20489 if test "$compiler_num" -ge "402"; then 20490 20491 ac_var_added_warnings="" 20492 for warning in cast-align; do 20493 20494 ac_var_match_word="no" 20495 for word1 in $CFLAGS; do 20496 for word2 in -Wno-$warning -W$warning; do 20497 if test "$word1" = "$word2"; then 20498 ac_var_match_word="yes" 20499 fi 20500 done 20501 done 20502 20503 if test "$ac_var_match_word" = "no"; then 20504 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20505 fi 20506 done 20507 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20508 squeeze tmp_CFLAGS 20509 20510 fi 20511 # 20512 if test "$compiler_num" -ge "403"; then 20513 20514 ac_var_added_warnings="" 20515 for warning in address; do 20516 20517 ac_var_match_word="no" 20518 for word1 in $CFLAGS; do 20519 for word2 in -Wno-$warning -W$warning; do 20520 if test "$word1" = "$word2"; then 20521 ac_var_match_word="yes" 20522 fi 20523 done 20524 done 20525 20526 if test "$ac_var_match_word" = "no"; then 20527 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20528 fi 20529 done 20530 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20531 squeeze tmp_CFLAGS 20532 20533 20534 ac_var_added_warnings="" 20535 for warning in type-limits old-style-declaration; do 20536 20537 ac_var_match_word="no" 20538 for word1 in $CFLAGS; do 20539 for word2 in -Wno-$warning -W$warning; do 20540 if test "$word1" = "$word2"; then 20541 ac_var_match_word="yes" 20542 fi 20543 done 20544 done 20545 20546 if test "$ac_var_match_word" = "no"; then 20547 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20548 fi 20549 done 20550 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20551 squeeze tmp_CFLAGS 20552 20553 20554 ac_var_added_warnings="" 20555 for warning in missing-parameter-type empty-body; do 20556 20557 ac_var_match_word="no" 20558 for word1 in $CFLAGS; do 20559 for word2 in -Wno-$warning -W$warning; do 20560 if test "$word1" = "$word2"; then 20561 ac_var_match_word="yes" 20562 fi 20563 done 20564 done 20565 20566 if test "$ac_var_match_word" = "no"; then 20567 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20568 fi 20569 done 20570 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20571 squeeze tmp_CFLAGS 20572 20573 20574 ac_var_added_warnings="" 20575 for warning in clobbered ignored-qualifiers; do 20576 20577 ac_var_match_word="no" 20578 for word1 in $CFLAGS; do 20579 for word2 in -Wno-$warning -W$warning; do 20580 if test "$word1" = "$word2"; then 20581 ac_var_match_word="yes" 20582 fi 20583 done 20584 done 20585 20586 if test "$ac_var_match_word" = "no"; then 20587 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20588 fi 20589 done 20590 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20591 squeeze tmp_CFLAGS 20592 20593 20594 ac_var_added_warnings="" 20595 for warning in conversion trampolines; do 20596 20597 ac_var_match_word="no" 20598 for word1 in $CFLAGS; do 20599 for word2 in -Wno-$warning -W$warning; do 20600 if test "$word1" = "$word2"; then 20601 ac_var_match_word="yes" 20602 fi 20603 done 20604 done 20605 20606 if test "$ac_var_match_word" = "no"; then 20607 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20608 fi 20609 done 20610 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20611 squeeze tmp_CFLAGS 20612 20613 20614 ac_var_added_warnings="" 20615 for warning in sign-conversion; do 20616 20617 ac_var_match_word="no" 20618 for word1 in $CFLAGS; do 20619 for word2 in -Wno-$warning -W$warning; do 20620 if test "$word1" = "$word2"; then 20621 ac_var_match_word="yes" 20622 fi 20623 done 20624 done 20625 20626 if test "$ac_var_match_word" = "no"; then 20627 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20628 fi 20629 done 20630 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20631 squeeze tmp_CFLAGS 20632 20633 tmp_CFLAGS="$tmp_CFLAGS -Wno-error=sign-conversion" # FIXME 20634 20635 ac_var_added_warnings="" 20636 for warning in vla; do 20637 20638 ac_var_match_word="no" 20639 for word1 in $CFLAGS; do 20640 for word2 in -Wno-$warning -W$warning; do 20641 if test "$word1" = "$word2"; then 20642 ac_var_match_word="yes" 20643 fi 20644 done 20645 done 20646 20647 if test "$ac_var_match_word" = "no"; then 20648 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20649 fi 20650 done 20651 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20652 squeeze tmp_CFLAGS 20653 20654 tmp_CFLAGS="$tmp_CFLAGS -ftree-vrp" 20655 fi 20656 # 20657 if test "$compiler_num" -ge "405"; then 20658 if test "$curl_cv_native_windows" = "yes"; then 20659 tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format" 20660 fi 20661 fi 20662 # 20663 if test "$compiler_num" -ge "406"; then 20664 20665 ac_var_added_warnings="" 20666 for warning in double-promotion; do 20667 20668 ac_var_match_word="no" 20669 for word1 in $CFLAGS; do 20670 for word2 in -Wno-$warning -W$warning; do 20671 if test "$word1" = "$word2"; then 20672 ac_var_match_word="yes" 20673 fi 20674 done 20675 done 20676 20677 if test "$ac_var_match_word" = "no"; then 20678 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20679 fi 20680 done 20681 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20682 squeeze tmp_CFLAGS 20683 20684 fi 20685 # 20686 if test "$compiler_num" -ge "408"; then 20687 tmp_CFLAGS="$tmp_CFLAGS -Wformat=2" 20688 fi 20689 # 20690 if test "$compiler_num" -ge "500"; then 20691 tmp_CFLAGS="$tmp_CFLAGS -Warray-bounds=2" 20692 fi 20693 # 20694 if test "$compiler_num" -ge "600"; then 20695 20696 ac_var_added_warnings="" 20697 for warning in shift-negative-value; do 20698 20699 ac_var_match_word="no" 20700 for word1 in $CFLAGS; do 20701 for word2 in -Wno-$warning -W$warning; do 20702 if test "$word1" = "$word2"; then 20703 ac_var_match_word="yes" 20704 fi 20705 done 20706 done 20707 20708 if test "$ac_var_match_word" = "no"; then 20709 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20710 fi 20711 done 20712 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20713 squeeze tmp_CFLAGS 20714 20715 tmp_CFLAGS="$tmp_CFLAGS -Wshift-overflow=2" 20716 20717 ac_var_added_warnings="" 20718 for warning in null-dereference; do 20719 20720 ac_var_match_word="no" 20721 for word1 in $CFLAGS; do 20722 for word2 in -Wno-$warning -W$warning; do 20723 if test "$word1" = "$word2"; then 20724 ac_var_match_word="yes" 20725 fi 20726 done 20727 done 20728 20729 if test "$ac_var_match_word" = "no"; then 20730 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20731 fi 20732 done 20733 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20734 squeeze tmp_CFLAGS 20735 20736 tmp_CFLAGS="$tmp_CFLAGS -fdelete-null-pointer-checks" 20737 20738 ac_var_added_warnings="" 20739 for warning in duplicated-cond; do 20740 20741 ac_var_match_word="no" 20742 for word1 in $CFLAGS; do 20743 for word2 in -Wno-$warning -W$warning; do 20744 if test "$word1" = "$word2"; then 20745 ac_var_match_word="yes" 20746 fi 20747 done 20748 done 20749 20750 if test "$ac_var_match_word" = "no"; then 20751 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20752 fi 20753 done 20754 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20755 squeeze tmp_CFLAGS 20756 20757 20758 ac_var_added_warnings="" 20759 for warning in unused-const-variable; do 20760 20761 ac_var_match_word="no" 20762 for word1 in $CFLAGS; do 20763 for word2 in -Wno-$warning -W$warning; do 20764 if test "$word1" = "$word2"; then 20765 ac_var_match_word="yes" 20766 fi 20767 done 20768 done 20769 20770 if test "$ac_var_match_word" = "no"; then 20771 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20772 fi 20773 done 20774 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20775 squeeze tmp_CFLAGS 20776 20777 fi 20778 # 20779 if test "$compiler_num" -ge "700"; then 20780 20781 ac_var_added_warnings="" 20782 for warning in duplicated-branches; do 20783 20784 ac_var_match_word="no" 20785 for word1 in $CFLAGS; do 20786 for word2 in -Wno-$warning -W$warning; do 20787 if test "$word1" = "$word2"; then 20788 ac_var_match_word="yes" 20789 fi 20790 done 20791 done 20792 20793 if test "$ac_var_match_word" = "no"; then 20794 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20795 fi 20796 done 20797 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20798 squeeze tmp_CFLAGS 20799 20800 20801 ac_var_added_warnings="" 20802 for warning in restrict; do 20803 20804 ac_var_match_word="no" 20805 for word1 in $CFLAGS; do 20806 for word2 in -Wno-$warning -W$warning; do 20807 if test "$word1" = "$word2"; then 20808 ac_var_match_word="yes" 20809 fi 20810 done 20811 done 20812 20813 if test "$ac_var_match_word" = "no"; then 20814 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20815 fi 20816 done 20817 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20818 squeeze tmp_CFLAGS 20819 20820 20821 ac_var_added_warnings="" 20822 for warning in alloc-zero; do 20823 20824 ac_var_match_word="no" 20825 for word1 in $CFLAGS; do 20826 for word2 in -Wno-$warning -W$warning; do 20827 if test "$word1" = "$word2"; then 20828 ac_var_match_word="yes" 20829 fi 20830 done 20831 done 20832 20833 if test "$ac_var_match_word" = "no"; then 20834 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20835 fi 20836 done 20837 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20838 squeeze tmp_CFLAGS 20839 20840 tmp_CFLAGS="$tmp_CFLAGS -Wformat-truncation=2" 20841 tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough" 20842 fi 20843 # 20844 if test "$compiler_num" -ge "1000"; then 20845 20846 ac_var_added_warnings="" 20847 for warning in arith-conversion; do 20848 20849 ac_var_match_word="no" 20850 for word1 in $CFLAGS; do 20851 for word2 in -Wno-$warning -W$warning; do 20852 if test "$word1" = "$word2"; then 20853 ac_var_match_word="yes" 20854 fi 20855 done 20856 done 20857 20858 if test "$ac_var_match_word" = "no"; then 20859 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20860 fi 20861 done 20862 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20863 squeeze tmp_CFLAGS 20864 20865 20866 ac_var_added_warnings="" 20867 for warning in enum-conversion; do 20868 20869 ac_var_match_word="no" 20870 for word1 in $CFLAGS; do 20871 for word2 in -Wno-$warning -W$warning; do 20872 if test "$word1" = "$word2"; then 20873 ac_var_match_word="yes" 20874 fi 20875 done 20876 done 20877 20878 if test "$ac_var_match_word" = "no"; then 20879 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20880 fi 20881 done 20882 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20883 squeeze tmp_CFLAGS 20884 20885 fi 20886 # 20887 fi 20888 # 20889 if test "$compiler_num" -ge "300"; then 20890 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers" 20891 else 20892 if test "x$cross_compiling" = "xyes"; then 20893 if test "$compiler_num" -ge "104"; then 20894 tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow" 20895 fi 20896 if test "$compiler_num" -ge "207"; then 20897 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations" 20898 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes" 20899 fi 20900 fi 20901 fi 20902 ;; 20903 # 20904 HP_UX_C) 20905 # 20906 if test "$want_warnings" = "yes"; then 20907 tmp_CFLAGS="$tmp_CFLAGS +w1" 20908 fi 20909 ;; 20910 # 20911 IBM_C) 20912 # 20913 tmp_CFLAGS="$tmp_CFLAGS" 20914 ;; 20915 # 20916 INTEL_UNIX_C) 20917 # 20918 if test "$want_warnings" = "yes"; then 20919 if test "$compiler_num" -gt "600"; then 20920 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2" 20921 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck" 20922 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment" 20923 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated" 20924 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes" 20925 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64" 20926 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith" 20927 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type" 20928 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow" 20929 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized" 20930 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function" 20931 fi 20932 fi 20933 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer" 20934 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing" 20935 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise" 20936 ;; 20937 # 20938 INTEL_WINDOWS_C) 20939 # 20940 tmp_CFLAGS="$tmp_CFLAGS" 20941 ;; 20942 # 20943 SGI_MIPS_C) 20944 # 20945 if test "$want_warnings" = "yes"; then 20946 tmp_CFLAGS="$tmp_CFLAGS -fullwarn" 20947 fi 20948 ;; 20949 # 20950 SGI_MIPSPRO_C) 20951 # 20952 if test "$want_warnings" = "yes"; then 20953 tmp_CFLAGS="$tmp_CFLAGS -fullwarn" 20954 tmp_CFLAGS="$tmp_CFLAGS -woff 1209" 20955 fi 20956 ;; 20957 # 20958 SUNPRO_C) 20959 # 20960 if test "$want_warnings" = "yes"; then 20961 tmp_CFLAGS="$tmp_CFLAGS -v" 20962 fi 20963 ;; 20964 # 20965 TINY_C) 20966 # 20967 if test "$want_warnings" = "yes"; then 20968 20969 ac_var_added_warnings="" 20970 for warning in all; do 20971 20972 ac_var_match_word="no" 20973 for word1 in $CFLAGS; do 20974 for word2 in -Wno-$warning -W$warning; do 20975 if test "$word1" = "$word2"; then 20976 ac_var_match_word="yes" 20977 fi 20978 done 20979 done 20980 20981 if test "$ac_var_match_word" = "no"; then 20982 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 20983 fi 20984 done 20985 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 20986 squeeze tmp_CFLAGS 20987 20988 20989 ac_var_added_warnings="" 20990 for warning in write-strings; do 20991 20992 ac_var_match_word="no" 20993 for word1 in $CFLAGS; do 20994 for word2 in -Wno-$warning -W$warning; do 20995 if test "$word1" = "$word2"; then 20996 ac_var_match_word="yes" 20997 fi 20998 done 20999 done 21000 21001 if test "$ac_var_match_word" = "no"; then 21002 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 21003 fi 21004 done 21005 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 21006 squeeze tmp_CFLAGS 21007 21008 21009 ac_var_added_warnings="" 21010 for warning in unsupported; do 21011 21012 ac_var_match_word="no" 21013 for word1 in $CFLAGS; do 21014 for word2 in -Wno-$warning -W$warning; do 21015 if test "$word1" = "$word2"; then 21016 ac_var_match_word="yes" 21017 fi 21018 done 21019 done 21020 21021 if test "$ac_var_match_word" = "no"; then 21022 ac_var_added_warnings="$ac_var_added_warnings -W$warning" 21023 fi 21024 done 21025 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings" 21026 squeeze tmp_CFLAGS 21027 21028 fi 21029 ;; 21030 # 21031 esac 21032 # 21033 squeeze tmp_CPPFLAGS 21034 squeeze tmp_CFLAGS 21035 # 21036 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then 21037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5 21038printf %s "checking if compiler accepts strict warning options... " >&6; } 21039 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS" 21040 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS" 21041 squeeze CPPFLAGS 21042 squeeze CFLAGS 21043 21044 tmp_compiler_works="unknown" 21045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21046/* end confdefs.h. */ 21047 21048 21049 21050int main(void) 21051{ 21052 21053 int i = 1; 21054 return i; 21055 21056 ; 21057 return 0; 21058} 21059 21060_ACEOF 21061if ac_fn_c_try_compile "$LINENO" 21062then : 21063 21064 tmp_compiler_works="yes" 21065 21066else $as_nop 21067 21068 tmp_compiler_works="no" 21069 echo " " >&6 21070 sed 's/^/cc-fail: /' conftest.err >&6 21071 echo " " >&6 21072 21073fi 21074rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21075 if test "$tmp_compiler_works" = "yes"; then 21076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21077/* end confdefs.h. */ 21078 21079 21080 21081int main(void) 21082{ 21083 21084 int i = 1; 21085 return i; 21086 21087 ; 21088 return 0; 21089} 21090 21091_ACEOF 21092if ac_fn_c_try_link "$LINENO" 21093then : 21094 21095 tmp_compiler_works="yes" 21096 21097else $as_nop 21098 21099 tmp_compiler_works="no" 21100 echo " " >&6 21101 sed 's/^/link-fail: /' conftest.err >&6 21102 echo " " >&6 21103 21104fi 21105rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21106 conftest$ac_exeext conftest.$ac_ext 21107 fi 21108 if test "x$cross_compiling" != "xyes" && 21109 test "$tmp_compiler_works" = "yes"; then 21110 21111 case $host in 21112 *-apple-*) 21113 if test "$cross_compiling" = yes 21114then : 21115 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21116printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21117as_fn_error $? "cannot run test program while cross compiling 21118See \`config.log' for more details" "$LINENO" 5; } 21119else $as_nop 21120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21121/* end confdefs.h. */ 21122 21123 21124 #ifdef __STDC__ 21125 # include <stdlib.h> 21126 #endif 21127 21128int main(void) 21129{ 21130 21131 int i = 0; 21132 exit(i); 21133 21134 ; 21135 return 0; 21136} 21137 21138_ACEOF 21139if ac_fn_c_try_run "$LINENO" 21140then : 21141 tmp_compiler_works="yes" 21142 21143else $as_nop 21144 tmp_compiler_works="no" 21145 echo " " >&6 21146 echo "run-fail: test program exited with status $ac_status" >&6 21147 echo " " >&6 21148 21149fi 21150rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21151 conftest.$ac_objext conftest.beam conftest.$ac_ext 21152fi 21153 21154 ;; 21155 *) 21156 oldcc=$CC 21157 old=$LD_LIBRARY_PATH 21158 CC="sh ./run-compiler" 21159 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 21160 export LD_LIBRARY_PATH 21161 if test "$cross_compiling" = yes 21162then : 21163 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21164printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21165as_fn_error $? "cannot run test program while cross compiling 21166See \`config.log' for more details" "$LINENO" 5; } 21167else $as_nop 21168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21169/* end confdefs.h. */ 21170 21171 21172 #ifdef __STDC__ 21173 # include <stdlib.h> 21174 #endif 21175 21176int main(void) 21177{ 21178 21179 int i = 0; 21180 exit(i); 21181 21182 ; 21183 return 0; 21184} 21185 21186_ACEOF 21187if ac_fn_c_try_run "$LINENO" 21188then : 21189 tmp_compiler_works="yes" 21190 21191else $as_nop 21192 tmp_compiler_works="no" 21193 echo " " >&6 21194 echo "run-fail: test program exited with status $ac_status" >&6 21195 echo " " >&6 21196 21197fi 21198rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21199 conftest.$ac_objext conftest.beam conftest.$ac_ext 21200fi 21201 21202 LD_LIBRARY_PATH=$old # restore 21203 CC=$oldcc 21204 ;; 21205 esac 21206 21207 fi 21208 if test "$tmp_compiler_works" = "yes"; then 21209 21210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21211printf "%s\n" "yes" >&6; } 21212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5 21213printf "%s\n" "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;} 21214 21215 else 21216 21217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21218printf "%s\n" "no" >&6; } 21219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5 21220printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;} 21221 CPPFLAGS="$tmp_save_CPPFLAGS" 21222 CFLAGS="$tmp_save_CFLAGS" 21223 21224 fi 21225 21226 fi 21227 # 21228 fi 21229 21230 21231if test "$compiler_id" = "INTEL_UNIX_C"; then 21232 # 21233 if test "$compiler_num" -ge "1000"; then 21234 CFLAGS="$CFLAGS -shared-intel" 21235 elif test "$compiler_num" -ge "900"; then 21236 CFLAGS="$CFLAGS -i-dynamic" 21237 fi 21238 # 21239fi 21240 21241CURL_CFLAG_EXTRAS="" 21242if test X"$want_werror" = Xyes; then 21243 CURL_CFLAG_EXTRAS="-Werror" 21244 if test "$compiler_id" = "GNU_C"; then 21245 if test "$compiler_num" -ge "500"; then 21246 CURL_CFLAG_EXTRAS="$CURL_CFLAG_EXTRAS -pedantic-errors" 21247 fi 21248 elif test "$compiler_id" = "CLANG" -o "$compiler_id" = "APPLECLANG"; then 21249 CURL_CFLAG_EXTRAS="$CURL_CFLAG_EXTRAS -pedantic-errors" 21250 fi 21251fi 21252 21253 21254 21255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5 21256printf %s "checking if compiler halts on compilation errors... " >&6; } 21257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21258/* end confdefs.h. */ 21259 21260 21261 21262int main(void) 21263{ 21264 21265 #error force compilation error 21266 21267 ; 21268 return 0; 21269} 21270 21271_ACEOF 21272if ac_fn_c_try_compile "$LINENO" 21273then : 21274 21275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21276printf "%s\n" "no" >&6; } 21277 as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5 21278 21279else $as_nop 21280 21281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21282printf "%s\n" "yes" >&6; } 21283 21284fi 21285rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21286 21287 21288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5 21289printf %s "checking if compiler halts on negative sized arrays... " >&6; } 21290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21291/* end confdefs.h. */ 21292 21293 21294 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ]; 21295 21296int main(void) 21297{ 21298 21299 bad_t dummy; 21300 21301 ; 21302 return 0; 21303} 21304 21305_ACEOF 21306if ac_fn_c_try_compile "$LINENO" 21307then : 21308 21309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21310printf "%s\n" "no" >&6; } 21311 as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5 21312 21313else $as_nop 21314 21315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21316printf "%s\n" "yes" >&6; } 21317 21318fi 21319rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21320 21321 21322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5 21323printf %s "checking if compiler halts on function prototype mismatch... " >&6; } 21324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21325/* end confdefs.h. */ 21326 21327 21328 #include <stdlib.h> 21329 int rand(int n); 21330 int rand(int n) 21331 { 21332 if(n) 21333 return ++n; 21334 else 21335 return n; 21336 } 21337 21338int main(void) 21339{ 21340 21341 int i[2]={0,0}; 21342 int j = rand(i[0]); 21343 if(j) 21344 return j; 21345 21346 ; 21347 return 0; 21348} 21349 21350_ACEOF 21351if ac_fn_c_try_compile "$LINENO" 21352then : 21353 21354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21355printf "%s\n" "no" >&6; } 21356 as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5 21357 21358else $as_nop 21359 21360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21361printf "%s\n" "yes" >&6; } 21362 21363fi 21364rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21365 21366 21367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5 21368printf %s "checking if compiler supports hiding library internal symbols... " >&6; } 21369 supports_symbol_hiding="no" 21370 symbol_hiding_CFLAGS="" 21371 symbol_hiding_EXTERN="" 21372 tmp_CFLAGS="" 21373 tmp_EXTERN="" 21374 case "$compiler_id" in 21375 CLANG|APPLECLANG) 21376 tmp_EXTERN="__attribute__((__visibility__(\"default\")))" 21377 tmp_CFLAGS="-fvisibility=hidden" 21378 supports_symbol_hiding="yes" 21379 ;; 21380 GNU_C) 21381 if test "$compiler_num" -ge "304"; then 21382 if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then 21383 tmp_EXTERN="__attribute__((__visibility__(\"default\")))" 21384 tmp_CFLAGS="-fvisibility=hidden" 21385 supports_symbol_hiding="yes" 21386 fi 21387 fi 21388 ;; 21389 INTEL_UNIX_C) 21390 if test "$compiler_num" -ge "900"; then 21391 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then 21392 tmp_save_CFLAGS="$CFLAGS" 21393 CFLAGS="$CFLAGS -fvisibility=hidden" 21394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21395/* end confdefs.h. */ 21396 21397 21398 #include <stdio.h> 21399 21400int main(void) 21401{ 21402 21403 printf("icc fvisibility bug test"); 21404 21405 ; 21406 return 0; 21407} 21408 21409_ACEOF 21410if ac_fn_c_try_link "$LINENO" 21411then : 21412 21413 tmp_EXTERN="__attribute__((__visibility__(\"default\")))" 21414 tmp_CFLAGS="-fvisibility=hidden" 21415 supports_symbol_hiding="yes" 21416 21417fi 21418rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21419 conftest$ac_exeext conftest.$ac_ext 21420 CFLAGS="$tmp_save_CFLAGS" 21421 fi 21422 fi 21423 ;; 21424 SUNPRO_C) 21425 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then 21426 tmp_EXTERN="__global" 21427 tmp_CFLAGS="-xldscope=hidden" 21428 supports_symbol_hiding="yes" 21429 fi 21430 ;; 21431 esac 21432 if test "$supports_symbol_hiding" = "yes"; then 21433 tmp_save_CFLAGS="$CFLAGS" 21434 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS" 21435 squeeze CFLAGS 21436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21437/* end confdefs.h. */ 21438 21439 21440 $tmp_EXTERN char *dummy(char *buff); 21441 char *dummy(char *buff) 21442 { 21443 if(buff) 21444 return ++buff; 21445 else 21446 return buff; 21447 } 21448 21449int main(void) 21450{ 21451 21452 char b[16]; 21453 char *r = dummy(&b[0]); 21454 if(r) 21455 return (int)*r; 21456 21457 ; 21458 return 0; 21459} 21460 21461_ACEOF 21462if ac_fn_c_try_compile "$LINENO" 21463then : 21464 21465 supports_symbol_hiding="yes" 21466 if test -f conftest.err; then 21467 grep 'visibility' conftest.err >/dev/null 21468 if test "$?" -eq "0"; then 21469 supports_symbol_hiding="no" 21470 fi 21471 fi 21472 21473else $as_nop 21474 21475 supports_symbol_hiding="no" 21476 echo " " >&6 21477 sed 's/^/cc-src: /' conftest.$ac_ext >&6 21478 sed 's/^/cc-err: /' conftest.err >&6 21479 echo " " >&6 21480 21481fi 21482rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21483 CFLAGS="$tmp_save_CFLAGS" 21484 fi 21485 if test "$supports_symbol_hiding" = "yes"; then 21486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21487printf "%s\n" "yes" >&6; } 21488 symbol_hiding_CFLAGS="$tmp_CFLAGS" 21489 symbol_hiding_EXTERN="$tmp_EXTERN" 21490 else 21491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21492printf "%s\n" "no" >&6; } 21493 fi 21494 21495 21496supports_unittests=yes 21497# cross-compilation of unit tests static library/programs fails when 21498# libcurl shared library is built. This might be due to a libtool or 21499# automake issue. In this case we disable unit tests. 21500if test "x$cross_compiling" != "xno" && 21501 test "x$enable_shared" != "xno"; then 21502 supports_unittests=no 21503fi 21504 21505# IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to 21506# a problem related with OpenSSL headers and library versions not matching. 21507# Disable unit tests while time to further investigate this is found. 21508case $host in 21509 mips-sgi-irix6.5) 21510 if test "$compiler_id" = "GNU_C"; then 21511 supports_unittests=no 21512 fi 21513 ;; 21514esac 21515 21516# All AIX autobuilds fails unit tests linking against unittests library 21517# due to unittests library being built with no symbols or members. Libtool ? 21518# Disable unit tests while time to further investigate this is found. 21519case $host_os in 21520 aix*) 21521 supports_unittests=no 21522 ;; 21523esac 21524 21525# In order to detect support of sendmmsg(), we need to escape the POSIX 21526# jail by defining _GNU_SOURCE or <sys/socket.h> will not expose it. 21527case $host_os in 21528 linux*) 21529 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" 21530 ;; 21531esac 21532 21533if test "x$want_debug" = "xyes" && 21534 test "x$supports_unittests" = "xyes"; then 21535 want_unittests=yes 21536else 21537 want_unittests=no 21538fi 21539 if test x$want_unittests = xyes; then 21540 BUILD_UNITTESTS_TRUE= 21541 BUILD_UNITTESTS_FALSE='#' 21542else 21543 BUILD_UNITTESTS_TRUE='#' 21544 BUILD_UNITTESTS_FALSE= 21545fi 21546 21547 21548 21549 21550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target supports Win32 file API" >&5 21551printf %s "checking whether build target supports Win32 file API... " >&6; } 21552 curl_win32_file_api="no" 21553 if test "$curl_cv_native_windows" = "yes"; then 21554 if test x"$enable_largefile" != "xno"; then 21555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21556/* end confdefs.h. */ 21557 21558 21559 21560int main(void) 21561{ 21562 21563 #if !defined(_WIN32_WCE) && (defined(__MINGW32__) || defined(_MSC_VER)) 21564 int dummy=1; 21565 #else 21566 #error Win32 large file API not supported. 21567 #endif 21568 21569 ; 21570 return 0; 21571} 21572 21573_ACEOF 21574if ac_fn_c_try_compile "$LINENO" 21575then : 21576 21577 curl_win32_file_api="win32_large_files" 21578 21579fi 21580rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21581 fi 21582 if test "$curl_win32_file_api" = "no"; then 21583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21584/* end confdefs.h. */ 21585 21586 21587 21588int main(void) 21589{ 21590 21591 #if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER) 21592 int dummy=1; 21593 #else 21594 #error Win32 small file API not supported. 21595 #endif 21596 21597 ; 21598 return 0; 21599} 21600 21601_ACEOF 21602if ac_fn_c_try_compile "$LINENO" 21603then : 21604 21605 curl_win32_file_api="win32_small_files" 21606 21607fi 21608rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21609 fi 21610 fi 21611 case "$curl_win32_file_api" in 21612 win32_large_files) 21613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5 21614printf "%s\n" "yes (large file enabled)" >&6; } 21615 21616printf "%s\n" "#define USE_WIN32_LARGE_FILES 1" >>confdefs.h 21617 21618 USE_WIN32_LARGE_FILES=1 21619 21620 ;; 21621 win32_small_files) 21622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5 21623printf "%s\n" "yes (large file disabled)" >&6; } 21624 21625printf "%s\n" "#define USE_WIN32_SMALL_FILES 1" >>confdefs.h 21626 21627 USE_WIN32_SMALL_FILES=1 21628 21629 ;; 21630 *) 21631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21632printf "%s\n" "no" >&6; } 21633 ;; 21634 esac 21635 21636 21637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target supports Win32 crypto API" >&5 21638printf %s "checking whether build target supports Win32 crypto API... " >&6; } 21639 curl_win32_crypto_api="no" 21640 if test "$curl_cv_native_windows" = "yes"; then 21641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21642/* end confdefs.h. */ 21643 21644 21645 #undef inline 21646 #ifndef WIN32_LEAN_AND_MEAN 21647 #define WIN32_LEAN_AND_MEAN 21648 #endif 21649 #include <windows.h> 21650 #include <wincrypt.h> 21651 21652int main(void) 21653{ 21654 21655 HCRYPTPROV hCryptProv; 21656 if(CryptAcquireContext(&hCryptProv, NULL, NULL, PROV_RSA_FULL, 21657 CRYPT_VERIFYCONTEXT | CRYPT_SILENT)) { 21658 CryptReleaseContext(hCryptProv, 0); 21659 } 21660 21661 ; 21662 return 0; 21663} 21664 21665_ACEOF 21666if ac_fn_c_try_compile "$LINENO" 21667then : 21668 21669 curl_win32_crypto_api="yes" 21670 21671fi 21672rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21673 fi 21674 case "$curl_win32_crypto_api" in 21675 yes) 21676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21677printf "%s\n" "yes" >&6; } 21678 21679printf "%s\n" "#define USE_WIN32_CRYPTO 1" >>confdefs.h 21680 21681 USE_WIN32_CRYPTO=1 21682 21683 ;; 21684 *) 21685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21686printf "%s\n" "no" >&6; } 21687 ;; 21688 esac 21689 21690 21691 21692 21693 tst_cflags="no" 21694 case $host in 21695 *-apple-*) 21696 tst_cflags="yes" 21697 ;; 21698 esac 21699 21700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for good-to-use Darwin CFLAGS" >&5 21701printf %s "checking for good-to-use Darwin CFLAGS... " >&6; } 21702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_cflags" >&5 21703printf "%s\n" "$tst_cflags" >&6; }; 21704 21705 if test "$tst_cflags" = "yes"; then 21706 old_CFLAGS=$CFLAGS 21707 CFLAGS="$CFLAGS -Werror=partial-availability" 21708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=partial-availability" >&5 21709printf %s "checking whether $CC accepts -Werror=partial-availability... " >&6; } 21710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21711/* end confdefs.h. */ 21712 21713int main(void) 21714{ 21715 21716 ; 21717 return 0; 21718} 21719_ACEOF 21720if ac_fn_c_try_compile "$LINENO" 21721then : 21722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21723printf "%s\n" "yes" >&6; } 21724else $as_nop 21725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21726printf "%s\n" "no" >&6; } 21727 CFLAGS=$old_CFLAGS 21728fi 21729rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21730 fi 21731 21732 21733 21734case $host in 21735 *-apple-*) 21736 21737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if the compiler supports __builtin_available()" >&5 21738printf %s "checking to see if the compiler supports __builtin_available()... " >&6; } 21739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21740/* end confdefs.h. */ 21741 21742 21743 21744int main(void) 21745{ 21746 21747 if(__builtin_available(macOS 10.12, iOS 5.0, *)) {} 21748 21749 ; 21750 return 0; 21751} 21752 21753_ACEOF 21754if ac_fn_c_try_compile "$LINENO" 21755then : 21756 21757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21758printf "%s\n" "yes" >&6; } 21759 21760printf "%s\n" "#define HAVE_BUILTIN_AVAILABLE 1" >>confdefs.h 21761 21762 21763else $as_nop 21764 21765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21766printf "%s\n" "no" >&6; } 21767 21768fi 21769rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21770 21771 ;; 21772esac 21773 21774curl_cv_cygwin='no' 21775case $host_os in 21776 cygwin*|msys*) curl_cv_cygwin='yes';; 21777esac 21778 21779 if test "$curl_cv_native_windows" = "yes" && test -n "${RC}"; then 21780 HAVE_WINDRES_TRUE= 21781 HAVE_WINDRES_FALSE='#' 21782else 21783 HAVE_WINDRES_TRUE='#' 21784 HAVE_WINDRES_FALSE= 21785fi 21786 21787 21788if test "$curl_cv_native_windows" = "yes"; then 21789 if test -z "$HAVE_WINDRES_TRUE"; then : 21790 else 21791 as_fn_error $? "windres not found in PATH. Windows builds require windres. Cannot continue." "$LINENO" 5 21792fi 21793fi 21794 21795 21796want_unity='no' 21797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build libcurl and curl in \"unity\" mode" >&5 21798printf %s "checking whether to build libcurl and curl in \"unity\" mode... " >&6; } 21799# Check whether --enable-unity was given. 21800if test ${enable_unity+y} 21801then : 21802 enableval=$enable_unity; case "$enableval" in 21803 yes) 21804 want_unity='yes' 21805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21806printf "%s\n" "yes" >&6; } 21807 ;; 21808 *) 21809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21810printf "%s\n" "no" >&6; } 21811 ;; 21812 esac 21813else $as_nop 21814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21815printf "%s\n" "no" >&6; } 21816 21817fi 21818 21819 21820 if test "$want_unity" = 'yes'; then 21821 USE_UNITY_TRUE= 21822 USE_UNITY_FALSE='#' 21823else 21824 USE_UNITY_TRUE='#' 21825 USE_UNITY_FALSE= 21826fi 21827 21828 21829 21830want_test_bundles='no' 21831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build tests into single-binary bundles" >&5 21832printf %s "checking whether to build tests into single-binary bundles... " >&6; } 21833# Check whether --enable-test-bundles was given. 21834if test ${enable_test_bundles+y} 21835then : 21836 enableval=$enable_test_bundles; case "$enableval" in 21837 yes) 21838 want_test_bundles='yes' 21839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21840printf "%s\n" "yes" >&6; } 21841 ;; 21842 *) 21843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21844printf "%s\n" "no" >&6; } 21845 ;; 21846 esac 21847else $as_nop 21848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21849printf "%s\n" "no" >&6; } 21850 21851fi 21852 21853 21854 if test "$want_test_bundles" = 'yes'; then 21855 USE_TEST_BUNDLES_TRUE= 21856 USE_TEST_BUNDLES_FALSE='#' 21857else 21858 USE_TEST_BUNDLES_TRUE='#' 21859 USE_TEST_BUNDLES_FALSE= 21860fi 21861 21862 21863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5 21864printf %s "checking whether to support http... " >&6; } 21865# Check whether --enable-http was given. 21866if test ${enable_http+y} 21867then : 21868 enableval=$enable_http; case "$enableval" in 21869 no) 21870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21871printf "%s\n" "no" >&6; } 21872 21873printf "%s\n" "#define CURL_DISABLE_HTTP 1" >>confdefs.h 21874 21875 disable_http="yes" 21876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy, IPFS and RTSP" >&5 21877printf "%s\n" "$as_me: WARNING: disable HTTP disables FTP over proxy, IPFS and RTSP" >&2;} 21878 CURL_DISABLE_HTTP=1 21879 21880 21881printf "%s\n" "#define CURL_DISABLE_IPFS 1" >>confdefs.h 21882 21883 CURL_DISABLE_IPFS=1 21884 21885 21886printf "%s\n" "#define CURL_DISABLE_RTSP 1" >>confdefs.h 21887 21888 CURL_DISABLE_RTSP=1 21889 21890 21891printf "%s\n" "#define CURL_DISABLE_ALTSVC 1" >>confdefs.h 21892 21893 21894printf "%s\n" "#define CURL_DISABLE_HSTS 1" >>confdefs.h 21895 21896 curl_h1_msg="no (--enable-http, --with-hyper)" 21897 curl_altsvc_msg="no"; 21898 curl_hsts_msg="no (--enable-hsts)"; 21899 enable_altsvc="no" 21900 hsts="no" 21901 ;; 21902 *) 21903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21904printf "%s\n" "yes" >&6; } 21905 ;; 21906 esac 21907else $as_nop 21908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21909printf "%s\n" "yes" >&6; } 21910 21911fi 21912 21913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5 21914printf %s "checking whether to support ftp... " >&6; } 21915# Check whether --enable-ftp was given. 21916if test ${enable_ftp+y} 21917then : 21918 enableval=$enable_ftp; case "$enableval" in 21919 no) 21920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21921printf "%s\n" "no" >&6; } 21922 21923printf "%s\n" "#define CURL_DISABLE_FTP 1" >>confdefs.h 21924 21925 CURL_DISABLE_FTP=1 21926 21927 ;; 21928 *) 21929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21930printf "%s\n" "yes" >&6; } 21931 ;; 21932 esac 21933else $as_nop 21934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21935printf "%s\n" "yes" >&6; } 21936 21937fi 21938 21939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5 21940printf %s "checking whether to support file... " >&6; } 21941# Check whether --enable-file was given. 21942if test ${enable_file+y} 21943then : 21944 enableval=$enable_file; case "$enableval" in 21945 no) 21946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21947printf "%s\n" "no" >&6; } 21948 21949printf "%s\n" "#define CURL_DISABLE_FILE 1" >>confdefs.h 21950 21951 CURL_DISABLE_FILE=1 21952 21953 ;; 21954 *) 21955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21956printf "%s\n" "yes" >&6; } 21957 ;; 21958 esac 21959else $as_nop 21960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21961printf "%s\n" "yes" >&6; } 21962 21963fi 21964 21965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support IPFS" >&5 21966printf %s "checking whether to support IPFS... " >&6; } 21967# Check whether --enable-ipfs was given. 21968if test ${enable_ipfs+y} 21969then : 21970 enableval=$enable_ipfs; case "$enableval" in 21971 no) 21972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21973printf "%s\n" "no" >&6; } 21974 21975printf "%s\n" "#define CURL_DISABLE_IPFS 1" >>confdefs.h 21976 21977 CURL_DISABLE_IPFS=1 21978 21979 ;; 21980 *) 21981 if test x$CURL_DISABLE_HTTP = x1; then 21982 as_fn_error $? "HTTP support needs to be enabled in order to enable IPFS support!" "$LINENO" 5 21983 else 21984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21985printf "%s\n" "yes" >&6; } 21986 curl_ipfs_msg="enabled" 21987 fi 21988 ;; 21989 esac 21990else $as_nop 21991 if test "x$CURL_DISABLE_HTTP" != "x1"; then 21992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21993printf "%s\n" "yes" >&6; } 21994 curl_ipfs_msg="enabled" 21995 else 21996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21997printf "%s\n" "no" >&6; } 21998 fi 21999 22000fi 22001 22002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5 22003printf %s "checking whether to support ldap... " >&6; } 22004# Check whether --enable-ldap was given. 22005if test ${enable_ldap+y} 22006then : 22007 enableval=$enable_ldap; case "$enableval" in 22008 no) 22009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22010printf "%s\n" "no" >&6; } 22011 22012printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h 22013 22014 CURL_DISABLE_LDAP=1 22015 22016 ;; 22017 yes) 22018 ldap_askedfor="yes" 22019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22020printf "%s\n" "yes" >&6; } 22021 ;; 22022 *) 22023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22024printf "%s\n" "yes" >&6; } 22025 ;; 22026 esac 22027else $as_nop 22028 22029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22030printf "%s\n" "yes" >&6; } 22031 22032fi 22033 22034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5 22035printf %s "checking whether to support ldaps... " >&6; } 22036# Check whether --enable-ldaps was given. 22037if test ${enable_ldaps+y} 22038then : 22039 enableval=$enable_ldaps; case "$enableval" in 22040 no) 22041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22042printf "%s\n" "no" >&6; } 22043 22044printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h 22045 22046 CURL_DISABLE_LDAPS=1 22047 22048 ;; 22049 *) 22050 if test "x$CURL_DISABLE_LDAP" = "x1"; then 22051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5 22052printf "%s\n" "LDAP needs to be enabled to support LDAPS" >&6; } 22053 22054printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h 22055 22056 CURL_DISABLE_LDAPS=1 22057 22058 else 22059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22060printf "%s\n" "yes" >&6; } 22061 22062printf "%s\n" "#define HAVE_LDAP_SSL 1" >>confdefs.h 22063 22064 HAVE_LDAP_SSL=1 22065 22066 fi 22067 ;; 22068 esac 22069else $as_nop 22070 22071 if test "x$CURL_DISABLE_LDAP" = "x1"; then 22072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22073printf "%s\n" "no" >&6; } 22074 22075printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h 22076 22077 CURL_DISABLE_LDAPS=1 22078 22079 else 22080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22081printf "%s\n" "yes" >&6; } 22082 22083printf "%s\n" "#define HAVE_LDAP_SSL 1" >>confdefs.h 22084 22085 HAVE_LDAP_SSL=1 22086 22087 fi 22088 22089fi 22090 22091 22092 22093OPT_HYPER="no" 22094 22095 22096# Check whether --with-hyper was given. 22097if test ${with_hyper+y} 22098then : 22099 withval=$with_hyper; OPT_HYPER=$withval 22100fi 22101 22102case "$OPT_HYPER" in 22103 no) 22104 want_hyper="no" 22105 ;; 22106 yes) 22107 want_hyper="default" 22108 want_hyper_path="" 22109 ;; 22110 *) 22111 want_hyper="yes" 22112 want_hyper_path="$withval" 22113 ;; 22114esac 22115 22116if test X"$want_hyper" != Xno; then 22117 if test "x$disable_http" = "xyes"; then 22118 as_fn_error $? "--with-hyper is not compatible with --disable-http" "$LINENO" 5 22119 fi 22120 22121 CLEANLDFLAGS="$LDFLAGS" 22122 CLEANCPPFLAGS="$CPPFLAGS" 22123 CLEANLIBS="$LIBS" 22124 22125 22126 if test -n "$PKG_CONFIG"; then 22127 PKGCONFIG="$PKG_CONFIG" 22128 else 22129 if test -n "$ac_tool_prefix"; then 22130 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 22131set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 22132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22133printf %s "checking for $ac_word... " >&6; } 22134if test ${ac_cv_path_PKGCONFIG+y} 22135then : 22136 printf %s "(cached) " >&6 22137else $as_nop 22138 case $PKGCONFIG in 22139 [\\/]* | ?:[\\/]*) 22140 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 22141 ;; 22142 *) 22143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22144as_dummy="$PATH:/usr/bin:/usr/local/bin" 22145for as_dir in $as_dummy 22146do 22147 IFS=$as_save_IFS 22148 case $as_dir in #((( 22149 '') as_dir=./ ;; 22150 */) ;; 22151 *) as_dir=$as_dir/ ;; 22152 esac 22153 for ac_exec_ext in '' $ac_executable_extensions; do 22154 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 22155 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 22156 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 22157 break 2 22158 fi 22159done 22160 done 22161IFS=$as_save_IFS 22162 22163 ;; 22164esac 22165fi 22166PKGCONFIG=$ac_cv_path_PKGCONFIG 22167if test -n "$PKGCONFIG"; then 22168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 22169printf "%s\n" "$PKGCONFIG" >&6; } 22170else 22171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22172printf "%s\n" "no" >&6; } 22173fi 22174 22175 22176fi 22177if test -z "$ac_cv_path_PKGCONFIG"; then 22178 ac_pt_PKGCONFIG=$PKGCONFIG 22179 # Extract the first word of "pkg-config", so it can be a program name with args. 22180set dummy pkg-config; ac_word=$2 22181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22182printf %s "checking for $ac_word... " >&6; } 22183if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 22184then : 22185 printf %s "(cached) " >&6 22186else $as_nop 22187 case $ac_pt_PKGCONFIG in 22188 [\\/]* | ?:[\\/]*) 22189 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 22190 ;; 22191 *) 22192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22193as_dummy="$PATH:/usr/bin:/usr/local/bin" 22194for as_dir in $as_dummy 22195do 22196 IFS=$as_save_IFS 22197 case $as_dir in #((( 22198 '') as_dir=./ ;; 22199 */) ;; 22200 *) as_dir=$as_dir/ ;; 22201 esac 22202 for ac_exec_ext in '' $ac_executable_extensions; do 22203 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 22204 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 22205 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 22206 break 2 22207 fi 22208done 22209 done 22210IFS=$as_save_IFS 22211 22212 ;; 22213esac 22214fi 22215ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 22216if test -n "$ac_pt_PKGCONFIG"; then 22217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 22218printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 22219else 22220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22221printf "%s\n" "no" >&6; } 22222fi 22223 22224 if test "x$ac_pt_PKGCONFIG" = x; then 22225 PKGCONFIG="no" 22226 else 22227 case $cross_compiling:$ac_tool_warned in 22228yes:) 22229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 22230printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 22231ac_tool_warned=yes ;; 22232esac 22233 PKGCONFIG=$ac_pt_PKGCONFIG 22234 fi 22235else 22236 PKGCONFIG="$ac_cv_path_PKGCONFIG" 22237fi 22238 22239 fi 22240 22241 if test "x$PKGCONFIG" != "xno"; then 22242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hyper options with pkg-config" >&5 22243printf %s "checking for hyper options with pkg-config... " >&6; } 22244 itexists=` 22245 if test -n "$want_hyper_path"; then 22246 PKG_CONFIG_LIBDIR="$want_hyper_path" 22247 export PKG_CONFIG_LIBDIR 22248 fi 22249 $PKGCONFIG --exists hyper >/dev/null 2>&1 && echo 1` 22250 22251 if test -z "$itexists"; then 22252 PKGCONFIG="no" 22253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22254printf "%s\n" "no" >&6; } 22255 else 22256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 22257printf "%s\n" "found" >&6; } 22258 fi 22259 fi 22260 22261 22262 if test "$PKGCONFIG" != "no"; then 22263 LIB_HYPER=` 22264 if test -n "$want_hyper_path"; then 22265 PKG_CONFIG_LIBDIR="$want_hyper_path" 22266 export PKG_CONFIG_LIBDIR 22267 fi 22268 22269 $PKGCONFIG --libs-only-l hyper` 22270 CPP_HYPER=` 22271 if test -n "$want_hyper_path"; then 22272 PKG_CONFIG_LIBDIR="$want_hyper_path" 22273 export PKG_CONFIG_LIBDIR 22274 fi 22275 $PKGCONFIG --cflags-only-I hyper` 22276 LD_HYPER=` 22277 if test -n "$want_hyper_path"; then 22278 PKG_CONFIG_LIBDIR="$want_hyper_path" 22279 export PKG_CONFIG_LIBDIR 22280 fi 22281 22282 $PKGCONFIG --libs-only-L hyper` 22283 else 22284 LIB_HYPER="-lhyper -ldl -lpthread -lm" 22285 if test X"$want_hyper" != Xdefault; then 22286 CPP_HYPER=-I"$want_hyper_path/capi/include" 22287 LD_HYPER="-L$want_hyper_path/target/release -L$want_hyper_path/target/debug" 22288 fi 22289 fi 22290 if test -n "$LIB_HYPER"; then 22291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_HYPER" >&5 22292printf "%s\n" "$as_me: -l is $LIB_HYPER" >&6;} 22293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_HYPER" >&5 22294printf "%s\n" "$as_me: -I is $CPP_HYPER" >&6;} 22295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_HYPER" >&5 22296printf "%s\n" "$as_me: -L is $LD_HYPER" >&6;} 22297 22298 LDFLAGS="$LDFLAGS $LD_HYPER" 22299 CPPFLAGS="$CPPFLAGS $CPP_HYPER" 22300 LIBS="$LIB_HYPER $LIBS" 22301 22302 if test "x$cross_compiling" != "xyes"; then 22303 DIR_HYPER=`echo $LD_HYPER | $SED -e 's/^-L//' -e 's/ -L/:/g'` 22304 fi 22305 22306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hyper_io_new in -lhyper" >&5 22307printf %s "checking for hyper_io_new in -lhyper... " >&6; } 22308if test ${ac_cv_lib_hyper_hyper_io_new+y} 22309then : 22310 printf %s "(cached) " >&6 22311else $as_nop 22312 ac_check_lib_save_LIBS=$LIBS 22313LIBS="-lhyper $LIBS" 22314cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22315/* end confdefs.h. */ 22316 22317 22318#ifdef __cplusplus 22319extern "C" 22320#endif 22321char hyper_io_new (); 22322int main(void) 22323{ 22324return hyper_io_new (); 22325 ; 22326 return 0; 22327} 22328_ACEOF 22329if ac_fn_c_try_link "$LINENO" 22330then : 22331 ac_cv_lib_hyper_hyper_io_new=yes 22332else $as_nop 22333 ac_cv_lib_hyper_hyper_io_new=no 22334fi 22335rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22336 conftest$ac_exeext conftest.$ac_ext 22337LIBS=$ac_check_lib_save_LIBS 22338fi 22339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hyper_hyper_io_new" >&5 22340printf "%s\n" "$ac_cv_lib_hyper_hyper_io_new" >&6; } 22341if test "x$ac_cv_lib_hyper_hyper_io_new" = xyes 22342then : 22343 22344 for ac_header in hyper.h 22345do : 22346 ac_fn_c_check_header_compile "$LINENO" "hyper.h" "ac_cv_header_hyper_h" "$ac_includes_default" 22347if test "x$ac_cv_header_hyper_h" = xyes 22348then : 22349 printf "%s\n" "#define HAVE_HYPER_H 1" >>confdefs.h 22350 experimental="$experimental Hyper" 22351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Hyper support is experimental" >&5 22352printf "%s\n" "$as_me: Hyper support is experimental" >&6;} 22353 curl_h1_msg="enabled (Hyper)" 22354 HYPER_ENABLED=1 22355 22356printf "%s\n" "#define USE_HYPER 1" >>confdefs.h 22357 22358 USE_HYPER=1 22359 22360 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_HYPER" 22361 export CURL_LIBRARY_PATH 22362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_HYPER to CURL_LIBRARY_PATH" >&5 22363printf "%s\n" "$as_me: Added $DIR_HYPER to CURL_LIBRARY_PATH" >&6;} 22364 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE hyper" 22365 22366fi 22367 22368done 22369 22370else $as_nop 22371 for d in `echo $DIR_HYPER | $SED -e 's/:/ /'`; do 22372 if test -f "$d/libhyper.a"; then 22373 as_fn_error $? "hyper was found in $d but was probably built with wrong flags. See docs/HYPER.md." "$LINENO" 5 22374 fi 22375 done 22376 as_fn_error $? "--with-hyper but hyper was not found. See docs/HYPER.md." "$LINENO" 5 22377 22378fi 22379 22380 fi 22381fi 22382 22383if test X"$want_hyper" != Xno; then 22384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Disable RTSP support with hyper" >&5 22385printf "%s\n" "$as_me: Disable RTSP support with hyper" >&6;} 22386 22387printf "%s\n" "#define CURL_DISABLE_RTSP 1" >>confdefs.h 22388 22389 CURL_DISABLE_RTSP=1 22390 22391else 22392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5 22393printf %s "checking whether to support rtsp... " >&6; } 22394 # Check whether --enable-rtsp was given. 22395if test ${enable_rtsp+y} 22396then : 22397 enableval=$enable_rtsp; case "$enableval" in 22398 no) 22399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22400printf "%s\n" "no" >&6; } 22401 22402printf "%s\n" "#define CURL_DISABLE_RTSP 1" >>confdefs.h 22403 22404 CURL_DISABLE_RTSP=1 22405 22406 ;; 22407 *) 22408 if test x$CURL_DISABLE_HTTP = x1; then 22409 as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5 22410 else 22411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22412printf "%s\n" "yes" >&6; } 22413 curl_rtsp_msg="enabled" 22414 fi 22415 ;; 22416 esac 22417else $as_nop 22418 if test "x$CURL_DISABLE_HTTP" != "x1"; then 22419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22420printf "%s\n" "yes" >&6; } 22421 curl_rtsp_msg="enabled" 22422 else 22423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22424printf "%s\n" "no" >&6; } 22425 fi 22426 22427fi 22428 22429fi 22430 22431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5 22432printf %s "checking whether to support proxies... " >&6; } 22433# Check whether --enable-proxy was given. 22434if test ${enable_proxy+y} 22435then : 22436 enableval=$enable_proxy; case "$enableval" in 22437 no) 22438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22439printf "%s\n" "no" >&6; } 22440 22441printf "%s\n" "#define CURL_DISABLE_PROXY 1" >>confdefs.h 22442 22443 CURL_DISABLE_PROXY=1 22444 22445 https_proxy="no" 22446 ;; 22447 *) 22448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22449printf "%s\n" "yes" >&6; } 22450 ;; 22451 esac 22452else $as_nop 22453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22454printf "%s\n" "yes" >&6; } 22455 22456fi 22457 22458 22459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5 22460printf %s "checking whether to support dict... " >&6; } 22461# Check whether --enable-dict was given. 22462if test ${enable_dict+y} 22463then : 22464 enableval=$enable_dict; case "$enableval" in 22465 no) 22466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22467printf "%s\n" "no" >&6; } 22468 22469printf "%s\n" "#define CURL_DISABLE_DICT 1" >>confdefs.h 22470 22471 CURL_DISABLE_DICT=1 22472 22473 ;; 22474 *) 22475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22476printf "%s\n" "yes" >&6; } 22477 ;; 22478 esac 22479else $as_nop 22480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22481printf "%s\n" "yes" >&6; } 22482 22483fi 22484 22485 22486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5 22487printf %s "checking whether to support telnet... " >&6; } 22488# Check whether --enable-telnet was given. 22489if test ${enable_telnet+y} 22490then : 22491 enableval=$enable_telnet; case "$enableval" in 22492 no) 22493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22494printf "%s\n" "no" >&6; } 22495 22496printf "%s\n" "#define CURL_DISABLE_TELNET 1" >>confdefs.h 22497 22498 CURL_DISABLE_TELNET=1 22499 22500 ;; 22501 *) 22502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22503printf "%s\n" "yes" >&6; } 22504 ;; 22505 esac 22506else $as_nop 22507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22508printf "%s\n" "yes" >&6; } 22509 22510fi 22511 22512 22513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5 22514printf %s "checking whether to support tftp... " >&6; } 22515# Check whether --enable-tftp was given. 22516if test ${enable_tftp+y} 22517then : 22518 enableval=$enable_tftp; case "$enableval" in 22519 no) 22520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22521printf "%s\n" "no" >&6; } 22522 22523printf "%s\n" "#define CURL_DISABLE_TFTP 1" >>confdefs.h 22524 22525 CURL_DISABLE_TFTP=1 22526 22527 ;; 22528 *) 22529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22530printf "%s\n" "yes" >&6; } 22531 ;; 22532 esac 22533else $as_nop 22534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22535printf "%s\n" "yes" >&6; } 22536 22537fi 22538 22539 22540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5 22541printf %s "checking whether to support pop3... " >&6; } 22542# Check whether --enable-pop3 was given. 22543if test ${enable_pop3+y} 22544then : 22545 enableval=$enable_pop3; case "$enableval" in 22546 no) 22547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22548printf "%s\n" "no" >&6; } 22549 22550printf "%s\n" "#define CURL_DISABLE_POP3 1" >>confdefs.h 22551 22552 CURL_DISABLE_POP3=1 22553 22554 ;; 22555 *) 22556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22557printf "%s\n" "yes" >&6; } 22558 ;; 22559 esac 22560else $as_nop 22561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22562printf "%s\n" "yes" >&6; } 22563 22564fi 22565 22566 22567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5 22568printf %s "checking whether to support imap... " >&6; } 22569# Check whether --enable-imap was given. 22570if test ${enable_imap+y} 22571then : 22572 enableval=$enable_imap; case "$enableval" in 22573 no) 22574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22575printf "%s\n" "no" >&6; } 22576 22577printf "%s\n" "#define CURL_DISABLE_IMAP 1" >>confdefs.h 22578 22579 CURL_DISABLE_IMAP=1 22580 22581 ;; 22582 *) 22583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22584printf "%s\n" "yes" >&6; } 22585 ;; 22586 esac 22587else $as_nop 22588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22589printf "%s\n" "yes" >&6; } 22590 22591fi 22592 22593 22594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5 22595printf %s "checking whether to support smb... " >&6; } 22596# Check whether --enable-smb was given. 22597if test ${enable_smb+y} 22598then : 22599 enableval=$enable_smb; case "$enableval" in 22600 no) 22601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22602printf "%s\n" "no" >&6; } 22603 22604printf "%s\n" "#define CURL_DISABLE_SMB 1" >>confdefs.h 22605 22606 CURL_DISABLE_SMB=1 22607 22608 ;; 22609 *) 22610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22611printf "%s\n" "yes" >&6; } 22612 ;; 22613 esac 22614else $as_nop 22615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22616printf "%s\n" "yes" >&6; } 22617 22618fi 22619 22620 22621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5 22622printf %s "checking whether to support smtp... " >&6; } 22623# Check whether --enable-smtp was given. 22624if test ${enable_smtp+y} 22625then : 22626 enableval=$enable_smtp; case "$enableval" in 22627 no) 22628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22629printf "%s\n" "no" >&6; } 22630 22631printf "%s\n" "#define CURL_DISABLE_SMTP 1" >>confdefs.h 22632 22633 CURL_DISABLE_SMTP=1 22634 22635 ;; 22636 *) 22637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22638printf "%s\n" "yes" >&6; } 22639 ;; 22640 esac 22641else $as_nop 22642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22643printf "%s\n" "yes" >&6; } 22644 22645fi 22646 22647 22648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5 22649printf %s "checking whether to support gopher... " >&6; } 22650# Check whether --enable-gopher was given. 22651if test ${enable_gopher+y} 22652then : 22653 enableval=$enable_gopher; case "$enableval" in 22654 no) 22655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22656printf "%s\n" "no" >&6; } 22657 22658printf "%s\n" "#define CURL_DISABLE_GOPHER 1" >>confdefs.h 22659 22660 CURL_DISABLE_GOPHER=1 22661 22662 ;; 22663 *) 22664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22665printf "%s\n" "yes" >&6; } 22666 ;; 22667 esac 22668else $as_nop 22669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22670printf "%s\n" "yes" >&6; } 22671 22672fi 22673 22674 22675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support mqtt" >&5 22676printf %s "checking whether to support mqtt... " >&6; } 22677# Check whether --enable-mqtt was given. 22678if test ${enable_mqtt+y} 22679then : 22680 enableval=$enable_mqtt; case "$enableval" in 22681 no) 22682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22683printf "%s\n" "no" >&6; } 22684 22685printf "%s\n" "#define CURL_DISABLE_MQTT 1" >>confdefs.h 22686 22687 CURL_DISABLE_MQTT=1 22688 22689 ;; 22690 *) 22691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22692printf "%s\n" "yes" >&6; } 22693 ;; 22694 esac 22695else $as_nop 22696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22697printf "%s\n" "no" >&6; } 22698 22699fi 22700 22701 22702 22703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5 22704printf %s "checking whether to provide built-in manual... " >&6; } 22705# Check whether --enable-manual was given. 22706if test ${enable_manual+y} 22707then : 22708 enableval=$enable_manual; case "$enableval" in 22709 no) 22710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22711printf "%s\n" "no" >&6; } 22712 ;; 22713 *) 22714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22715printf "%s\n" "yes" >&6; } 22716 USE_MANUAL="1" 22717 ;; 22718 esac 22719else $as_nop 22720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22721printf "%s\n" "yes" >&6; } 22722 USE_MANUAL="1" 22723 22724fi 22725 22726 22727 22728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 22729printf %s "checking whether to build documentation... " >&6; } 22730# Check whether --enable-docs was given. 22731if test ${enable_docs+y} 22732then : 22733 enableval=$enable_docs; case "$enableval" in 22734 no) 22735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22736printf "%s\n" "no" >&6; } 22737 BUILD_DOCS=0 22738 USE_MANUAL=0 22739 curl_docs_msg="no" 22740 ;; 22741 *) 22742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22743printf "%s\n" "yes" >&6; } 22744 BUILD_DOCS=1 22745 ;; 22746 esac 22747else $as_nop 22748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22749printf "%s\n" "yes" >&6; } 22750 BUILD_DOCS=1 22751 22752fi 22753 22754 22755 22756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5 22757printf %s "checking whether to enable generation of C code... " >&6; } 22758# Check whether --enable-libcurl_option was given. 22759if test ${enable_libcurl_option+y} 22760then : 22761 enableval=$enable_libcurl_option; case "$enableval" in 22762 no) 22763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22764printf "%s\n" "no" >&6; } 22765 22766printf "%s\n" "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h 22767 22768 curl_libcurl_msg="no" 22769 ;; 22770 *) 22771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22772printf "%s\n" "yes" >&6; } 22773 ;; 22774 esac 22775else $as_nop 22776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22777printf "%s\n" "yes" >&6; } 22778 22779fi 22780 22781 22782 22783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5 22784printf %s "checking whether to use libgcc... " >&6; } 22785# Check whether --enable-libgcc was given. 22786if test ${enable_libgcc+y} 22787then : 22788 enableval=$enable_libgcc; case "$enableval" in 22789 yes) 22790 LIBS="-lgcc $LIBS" 22791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22792printf "%s\n" "yes" >&6; } 22793 ;; 22794 *) 22795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22796printf "%s\n" "no" >&6; } 22797 ;; 22798 esac 22799else $as_nop 22800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 22801printf "%s\n" "no" >&6; } 22802 22803fi 22804 22805 22806 22807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5 22808printf %s "checking if X/Open network library is required... " >&6; } 22809 tst_lib_xnet_required="no" 22810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22811/* end confdefs.h. */ 22812 22813 22814 int main(void) 22815 { 22816 #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600) 22817 return 0; 22818 #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED) 22819 return 0; 22820 #else 22821 #error force compilation error 22822 #endif 22823 } 22824 22825 22826_ACEOF 22827if ac_fn_c_try_compile "$LINENO" 22828then : 22829 22830 tst_lib_xnet_required="yes" 22831 LIBS="-lxnet $LIBS" 22832 22833fi 22834rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5 22836printf "%s\n" "$tst_lib_xnet_required" >&6; } 22837 22838 22839ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 22840if test "x$ac_cv_func_gethostbyname" = xyes 22841then : 22842 22843 HAVE_GETHOSTBYNAME="1" 22844 22845else $as_nop 22846 22847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 22848printf %s "checking for gethostbyname in -lnsl... " >&6; } 22849if test ${ac_cv_lib_nsl_gethostbyname+y} 22850then : 22851 printf %s "(cached) " >&6 22852else $as_nop 22853 ac_check_lib_save_LIBS=$LIBS 22854LIBS="-lnsl $LIBS" 22855cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22856/* end confdefs.h. */ 22857 22858 22859#ifdef __cplusplus 22860extern "C" 22861#endif 22862char gethostbyname (); 22863int main(void) 22864{ 22865return gethostbyname (); 22866 ; 22867 return 0; 22868} 22869_ACEOF 22870if ac_fn_c_try_link "$LINENO" 22871then : 22872 ac_cv_lib_nsl_gethostbyname=yes 22873else $as_nop 22874 ac_cv_lib_nsl_gethostbyname=no 22875fi 22876rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22877 conftest$ac_exeext conftest.$ac_ext 22878LIBS=$ac_check_lib_save_LIBS 22879fi 22880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 22881printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; } 22882if test "x$ac_cv_lib_nsl_gethostbyname" = xyes 22883then : 22884 22885 HAVE_GETHOSTBYNAME="1" 22886 LIBS="-lnsl $LIBS" 22887 22888 22889fi 22890 22891 22892 22893fi 22894 22895 22896if test "$HAVE_GETHOSTBYNAME" != "1"; then 22897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5 22898printf %s "checking for gethostbyname in -lsocket... " >&6; } 22899if test ${ac_cv_lib_socket_gethostbyname+y} 22900then : 22901 printf %s "(cached) " >&6 22902else $as_nop 22903 ac_check_lib_save_LIBS=$LIBS 22904LIBS="-lsocket $LIBS" 22905cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22906/* end confdefs.h. */ 22907 22908 22909#ifdef __cplusplus 22910extern "C" 22911#endif 22912char gethostbyname (); 22913int main(void) 22914{ 22915return gethostbyname (); 22916 ; 22917 return 0; 22918} 22919_ACEOF 22920if ac_fn_c_try_link "$LINENO" 22921then : 22922 ac_cv_lib_socket_gethostbyname=yes 22923else $as_nop 22924 ac_cv_lib_socket_gethostbyname=no 22925fi 22926rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22927 conftest$ac_exeext conftest.$ac_ext 22928LIBS=$ac_check_lib_save_LIBS 22929fi 22930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5 22931printf "%s\n" "$ac_cv_lib_socket_gethostbyname" >&6; } 22932if test "x$ac_cv_lib_socket_gethostbyname" = xyes 22933then : 22934 22935 HAVE_GETHOSTBYNAME="1" 22936 LIBS="-lsocket $LIBS" 22937 22938 22939fi 22940 22941fi 22942 22943if test "$HAVE_GETHOSTBYNAME" != "1"; then 22944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5 22945printf %s "checking for gethostbyname in -lwatt... " >&6; } 22946if test ${ac_cv_lib_watt_gethostbyname+y} 22947then : 22948 printf %s "(cached) " >&6 22949else $as_nop 22950 ac_check_lib_save_LIBS=$LIBS 22951LIBS="-lwatt $LIBS" 22952cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22953/* end confdefs.h. */ 22954 22955 22956#ifdef __cplusplus 22957extern "C" 22958#endif 22959char gethostbyname (); 22960int main(void) 22961{ 22962return gethostbyname (); 22963 ; 22964 return 0; 22965} 22966_ACEOF 22967if ac_fn_c_try_link "$LINENO" 22968then : 22969 ac_cv_lib_watt_gethostbyname=yes 22970else $as_nop 22971 ac_cv_lib_watt_gethostbyname=no 22972fi 22973rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22974 conftest$ac_exeext conftest.$ac_ext 22975LIBS=$ac_check_lib_save_LIBS 22976fi 22977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5 22978printf "%s\n" "$ac_cv_lib_watt_gethostbyname" >&6; } 22979if test "x$ac_cv_lib_watt_gethostbyname" = xyes 22980then : 22981 22982 HAVE_GETHOSTBYNAME="1" 22983 CPPFLAGS="-I${WATT_ROOT}/inc" 22984 LDFLAGS="-L${WATT_ROOT}/lib" 22985 LIBS="-lwatt $LIBS" 22986 22987 22988fi 22989 22990fi 22991 22992if test "$HAVE_GETHOSTBYNAME" != "1"; then 22993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5 22994printf %s "checking for gethostbyname with both nsl and socket libs... " >&6; } 22995 my_ac_save_LIBS=$LIBS 22996 LIBS="-lnsl -lsocket $LIBS" 22997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22998/* end confdefs.h. */ 22999 23000 23001 23002int main(void) 23003{ 23004 23005 gethostbyname(); 23006 23007 ; 23008 return 0; 23009} 23010 23011_ACEOF 23012if ac_fn_c_try_link "$LINENO" 23013then : 23014 23015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23016printf "%s\n" "yes" >&6; } 23017 HAVE_GETHOSTBYNAME="1" 23018 23019else $as_nop 23020 23021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23022printf "%s\n" "no" >&6; } 23023 LIBS=$my_ac_save_LIBS 23024 23025fi 23026rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23027 conftest$ac_exeext conftest.$ac_ext 23028fi 23029 23030if test "$HAVE_GETHOSTBYNAME" != "1"; then 23031 if test "$curl_cv_native_windows" = "yes"; then 23032 winsock_LIB="-lws2_32" 23033 if test ! -z "$winsock_LIB"; then 23034 my_ac_save_LIBS=$LIBS 23035 LIBS="$winsock_LIB $LIBS" 23036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5 23037printf %s "checking for gethostbyname in $winsock_LIB... " >&6; } 23038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23039/* end confdefs.h. */ 23040 23041 23042 #ifdef _WIN32 23043 #ifndef WIN32_LEAN_AND_MEAN 23044 #define WIN32_LEAN_AND_MEAN 23045 #endif 23046 #include <winsock2.h> 23047 #endif 23048 23049int main(void) 23050{ 23051 23052 gethostbyname("localhost"); 23053 23054 ; 23055 return 0; 23056} 23057 23058_ACEOF 23059if ac_fn_c_try_link "$LINENO" 23060then : 23061 23062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23063printf "%s\n" "yes" >&6; } 23064 HAVE_GETHOSTBYNAME="1" 23065 23066else $as_nop 23067 23068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23069printf "%s\n" "no" >&6; } 23070 winsock_LIB="" 23071 LIBS=$my_ac_save_LIBS 23072 23073fi 23074rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23075 conftest$ac_exeext conftest.$ac_ext 23076 fi 23077 fi 23078fi 23079 23080if test "$HAVE_GETHOSTBYNAME" != "1"; then 23081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5 23082printf %s "checking for gethostbyname for Minix 3... " >&6; } 23083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23084/* end confdefs.h. */ 23085 23086 23087 /* Older Minix versions may need <net/gen/netdb.h> here instead */ 23088 #include <netdb.h> 23089 23090int main(void) 23091{ 23092 23093 gethostbyname("localhost"); 23094 23095 ; 23096 return 0; 23097} 23098 23099_ACEOF 23100if ac_fn_c_try_link "$LINENO" 23101then : 23102 23103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23104printf "%s\n" "yes" >&6; } 23105 HAVE_GETHOSTBYNAME="1" 23106 23107else $as_nop 23108 23109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23110printf "%s\n" "no" >&6; } 23111 23112fi 23113rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23114 conftest$ac_exeext conftest.$ac_ext 23115fi 23116 23117if test "$HAVE_GETHOSTBYNAME" != "1"; then 23118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5 23119printf %s "checking for gethostbyname for eCos... " >&6; } 23120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23121/* end confdefs.h. */ 23122 23123 23124 #include <stdio.h> 23125 #include <netdb.h> 23126 23127int main(void) 23128{ 23129 23130 gethostbyname("localhost"); 23131 23132 ; 23133 return 0; 23134} 23135 23136_ACEOF 23137if ac_fn_c_try_link "$LINENO" 23138then : 23139 23140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23141printf "%s\n" "yes" >&6; } 23142 HAVE_GETHOSTBYNAME="1" 23143 23144else $as_nop 23145 23146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23147printf "%s\n" "no" >&6; } 23148 23149fi 23150rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23151 conftest$ac_exeext conftest.$ac_ext 23152fi 23153 23154if test "$HAVE_GETHOSTBYNAME" != "1" -o "${with_amissl+set}" = set; then 23155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for AmigaOS bsdsocket.library" >&5 23156printf %s "checking for gethostbyname for AmigaOS bsdsocket.library... " >&6; } 23157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23158/* end confdefs.h. */ 23159 23160 23161 #define __USE_INLINE__ 23162 #include <proto/bsdsocket.h> 23163 #ifdef __amigaos4__ 23164 struct SocketIFace *ISocket = NULL; 23165 #else 23166 struct Library *SocketBase = NULL; 23167 #endif 23168 23169int main(void) 23170{ 23171 23172 gethostbyname("localhost"); 23173 23174 ; 23175 return 0; 23176} 23177 23178_ACEOF 23179if ac_fn_c_try_link "$LINENO" 23180then : 23181 23182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23183printf "%s\n" "yes" >&6; } 23184 HAVE_GETHOSTBYNAME="1" 23185 HAVE_PROTO_BSDSOCKET_H="1" 23186 23187printf "%s\n" "#define HAVE_PROTO_BSDSOCKET_H 1" >>confdefs.h 23188 23189 HAVE_PROTO_BSDSOCKET_H=1 23190 23191 23192else $as_nop 23193 23194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23195printf "%s\n" "no" >&6; } 23196 23197fi 23198rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23199 conftest$ac_exeext conftest.$ac_ext 23200fi 23201 23202if test "$HAVE_GETHOSTBYNAME" != "1"; then 23203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5 23204printf %s "checking for gethostbyname in -lnetwork... " >&6; } 23205if test ${ac_cv_lib_network_gethostbyname+y} 23206then : 23207 printf %s "(cached) " >&6 23208else $as_nop 23209 ac_check_lib_save_LIBS=$LIBS 23210LIBS="-lnetwork $LIBS" 23211cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23212/* end confdefs.h. */ 23213 23214 23215#ifdef __cplusplus 23216extern "C" 23217#endif 23218char gethostbyname (); 23219int main(void) 23220{ 23221return gethostbyname (); 23222 ; 23223 return 0; 23224} 23225_ACEOF 23226if ac_fn_c_try_link "$LINENO" 23227then : 23228 ac_cv_lib_network_gethostbyname=yes 23229else $as_nop 23230 ac_cv_lib_network_gethostbyname=no 23231fi 23232rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23233 conftest$ac_exeext conftest.$ac_ext 23234LIBS=$ac_check_lib_save_LIBS 23235fi 23236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5 23237printf "%s\n" "$ac_cv_lib_network_gethostbyname" >&6; } 23238if test "x$ac_cv_lib_network_gethostbyname" = xyes 23239then : 23240 23241 HAVE_GETHOSTBYNAME="1" 23242 LIBS="-lnetwork $LIBS" 23243 23244 23245fi 23246 23247fi 23248 23249 23250curl_includes_winsock2="\ 23251/* includes start */ 23252#ifdef _WIN32 23253# ifndef WIN32_LEAN_AND_MEAN 23254# define WIN32_LEAN_AND_MEAN 23255# endif 23256# include <winsock2.h> 23257#endif 23258/* includes end */" 23259 23260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5 23261printf %s "checking whether build target is a native Windows one... " >&6; } 23262if test ${curl_cv_native_windows+y} 23263then : 23264 printf %s "(cached) " >&6 23265else $as_nop 23266 23267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23268/* end confdefs.h. */ 23269 23270 23271 23272int main(void) 23273{ 23274 23275 #ifdef _WIN32 23276 int dummy=1; 23277 #else 23278 #error Not a native Windows build target. 23279 #endif 23280 23281 ; 23282 return 0; 23283} 23284 23285_ACEOF 23286if ac_fn_c_try_compile "$LINENO" 23287then : 23288 23289 curl_cv_native_windows="yes" 23290 23291else $as_nop 23292 23293 curl_cv_native_windows="no" 23294 23295fi 23296rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23297 23298fi 23299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5 23300printf "%s\n" "$curl_cv_native_windows" >&6; } 23301 if test "x$curl_cv_native_windows" = xyes; then 23302 DOING_NATIVE_WINDOWS_TRUE= 23303 DOING_NATIVE_WINDOWS_FALSE='#' 23304else 23305 DOING_NATIVE_WINDOWS_TRUE='#' 23306 DOING_NATIVE_WINDOWS_FALSE= 23307fi 23308 23309 23310 23311 23312curl_includes_bsdsocket="\ 23313/* includes start */ 23314#if defined(HAVE_PROTO_BSDSOCKET_H) 23315# define __NO_NET_API 23316# define __USE_INLINE__ 23317# include <proto/bsdsocket.h> 23318# ifdef HAVE_SYS_IOCTL_H 23319# include <sys/ioctl.h> 23320# endif 23321# ifdef __amigaos4__ 23322struct SocketIFace *ISocket = NULL; 23323# else 23324struct Library *SocketBase = NULL; 23325# endif 23326# define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,0) 23327#endif 23328/* includes end */" 23329 ac_fn_c_check_header_compile "$LINENO" "proto/bsdsocket.h" "ac_cv_header_proto_bsdsocket_h" "$curl_includes_bsdsocket 23330" 23331if test "x$ac_cv_header_proto_bsdsocket_h" = xyes 23332then : 23333 printf "%s\n" "#define HAVE_PROTO_BSDSOCKET_H 1" >>confdefs.h 23334 23335fi 23336 23337 23338 23339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5 23340printf %s "checking for connect in libraries... " >&6; } 23341 tst_connect_save_LIBS="$LIBS" 23342 tst_connect_need_LIBS="unknown" 23343 for tst_lib in '' '-lsocket' ; do 23344 if test "$tst_connect_need_LIBS" = "unknown"; then 23345 LIBS="$tst_lib $tst_connect_save_LIBS" 23346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23347/* end confdefs.h. */ 23348 23349 23350 $curl_includes_winsock2 23351 $curl_includes_bsdsocket 23352 #if !defined(_WIN32) && !defined(HAVE_PROTO_BSDSOCKET_H) 23353 int connect(int, void*, int); 23354 #endif 23355 23356int main(void) 23357{ 23358 23359 if(0 != connect(0, 0, 0)) 23360 return 1; 23361 23362 ; 23363 return 0; 23364} 23365 23366_ACEOF 23367if ac_fn_c_try_link "$LINENO" 23368then : 23369 23370 tst_connect_need_LIBS="$tst_lib" 23371 23372fi 23373rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23374 conftest$ac_exeext conftest.$ac_ext 23375 fi 23376 done 23377 LIBS="$tst_connect_save_LIBS" 23378 # 23379 case X-"$tst_connect_need_LIBS" in 23380 X-unknown) 23381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5 23382printf "%s\n" "cannot find connect" >&6; } 23383 as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5 23384 ;; 23385 X-) 23386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23387printf "%s\n" "yes" >&6; } 23388 ;; 23389 *) 23390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5 23391printf "%s\n" "$tst_connect_need_LIBS" >&6; } 23392 LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS" 23393 ;; 23394 esac 23395 23396 23397CURL_NETWORK_LIBS=$LIBS 23398 23399 23400 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 23401if test "x$ac_cv_header_sys_types_h" = xyes 23402then : 23403 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 23404 23405fi 23406ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" 23407if test "x$ac_cv_header_sys_time_h" = xyes 23408then : 23409 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h 23410 23411fi 23412 23413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5 23414printf %s "checking for monotonic clock_gettime... " >&6; } 23415 # 23416 if test "x$dontwant_rt" = "xno" ; then 23417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23418/* end confdefs.h. */ 23419 23420 23421 #ifdef HAVE_SYS_TYPES_H 23422 #include <sys/types.h> 23423 #endif 23424 #ifdef HAVE_SYS_TIME_H 23425 #include <sys/time.h> 23426 #endif 23427 #include <time.h> 23428 23429int main(void) 23430{ 23431 23432 struct timespec ts; 23433 (void)clock_gettime(CLOCK_MONOTONIC, &ts); 23434 23435 ; 23436 return 0; 23437} 23438 23439_ACEOF 23440if ac_fn_c_try_compile "$LINENO" 23441then : 23442 23443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23444printf "%s\n" "yes" >&6; } 23445 curl_func_clock_gettime="yes" 23446 23447else $as_nop 23448 23449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23450printf "%s\n" "no" >&6; } 23451 curl_func_clock_gettime="no" 23452 23453fi 23454rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23455 fi 23456 23457 23458 # 23459 if test "$curl_func_clock_gettime" = "yes"; then 23460 # 23461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5 23462printf %s "checking for clock_gettime in libraries... " >&6; } 23463 # 23464 curl_cv_save_LIBS="$LIBS" 23465 curl_cv_gclk_LIBS="unknown" 23466 # 23467 for x_xlibs in '' '-lrt' '-lposix4' ; do 23468 if test "$curl_cv_gclk_LIBS" = "unknown"; then 23469 if test -z "$x_xlibs"; then 23470 LIBS="$curl_cv_save_LIBS" 23471 else 23472 LIBS="$x_xlibs $curl_cv_save_LIBS" 23473 fi 23474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23475/* end confdefs.h. */ 23476 23477 23478 #ifdef HAVE_SYS_TYPES_H 23479 #include <sys/types.h> 23480 #endif 23481 #ifdef HAVE_SYS_TIME_H 23482 #include <sys/time.h> 23483 #endif 23484 #include <time.h> 23485 23486int main(void) 23487{ 23488 23489 struct timespec ts; 23490 (void)clock_gettime(CLOCK_MONOTONIC, &ts); 23491 23492 ; 23493 return 0; 23494} 23495 23496_ACEOF 23497if ac_fn_c_try_link "$LINENO" 23498then : 23499 23500 curl_cv_gclk_LIBS="$x_xlibs" 23501 23502fi 23503rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23504 conftest$ac_exeext conftest.$ac_ext 23505 fi 23506 done 23507 # 23508 LIBS="$curl_cv_save_LIBS" 23509 # 23510 case X-"$curl_cv_gclk_LIBS" in 23511 X-unknown) 23512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5 23513printf "%s\n" "cannot find clock_gettime" >&6; } 23514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5 23515printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;} 23516 curl_func_clock_gettime="no" 23517 ;; 23518 X-) 23519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5 23520printf "%s\n" "no additional lib required" >&6; } 23521 curl_func_clock_gettime="yes" 23522 ;; 23523 *) 23524 if test -z "$curl_cv_save_LIBS"; then 23525 LIBS="$curl_cv_gclk_LIBS" 23526 else 23527 LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS" 23528 fi 23529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5 23530printf "%s\n" "$curl_cv_gclk_LIBS" >&6; } 23531 curl_func_clock_gettime="yes" 23532 ;; 23533 esac 23534 # 23535 if test "x$cross_compiling" != "xyes" && 23536 test "$curl_func_clock_gettime" = "yes"; then 23537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5 23538printf %s "checking if monotonic clock_gettime works... " >&6; } 23539 23540 case $host in 23541 *-apple-*) 23542 if test "$cross_compiling" = yes 23543then : 23544 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23545printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 23546as_fn_error $? "cannot run test program while cross compiling 23547See \`config.log' for more details" "$LINENO" 5; } 23548else $as_nop 23549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23550/* end confdefs.h. */ 23551 23552 23553 #include <stdlib.h> 23554 #ifdef HAVE_SYS_TYPES_H 23555 #include <sys/types.h> 23556 #endif 23557 #ifdef HAVE_SYS_TIME_H 23558 #include <sys/time.h> 23559 #endif 23560 #include <time.h> 23561 23562int main(void) 23563{ 23564 23565 struct timespec ts; 23566 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts)) 23567 exit(0); 23568 else 23569 exit(1); 23570 23571 ; 23572 return 0; 23573} 23574 23575_ACEOF 23576if ac_fn_c_try_run "$LINENO" 23577then : 23578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23579printf "%s\n" "yes" >&6; } 23580 23581else $as_nop 23582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23583printf "%s\n" "no" >&6; } 23584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5 23585printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;} 23586 curl_func_clock_gettime="no" 23587 LIBS="$curl_cv_save_LIBS" 23588 23589fi 23590rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23591 conftest.$ac_objext conftest.beam conftest.$ac_ext 23592fi 23593 23594 ;; 23595 *) 23596 oldcc=$CC 23597 old=$LD_LIBRARY_PATH 23598 CC="sh ./run-compiler" 23599 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 23600 export LD_LIBRARY_PATH 23601 if test "$cross_compiling" = yes 23602then : 23603 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23604printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 23605as_fn_error $? "cannot run test program while cross compiling 23606See \`config.log' for more details" "$LINENO" 5; } 23607else $as_nop 23608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23609/* end confdefs.h. */ 23610 23611 23612 #include <stdlib.h> 23613 #ifdef HAVE_SYS_TYPES_H 23614 #include <sys/types.h> 23615 #endif 23616 #ifdef HAVE_SYS_TIME_H 23617 #include <sys/time.h> 23618 #endif 23619 #include <time.h> 23620 23621int main(void) 23622{ 23623 23624 struct timespec ts; 23625 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts)) 23626 exit(0); 23627 else 23628 exit(1); 23629 23630 ; 23631 return 0; 23632} 23633 23634_ACEOF 23635if ac_fn_c_try_run "$LINENO" 23636then : 23637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23638printf "%s\n" "yes" >&6; } 23639 23640else $as_nop 23641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23642printf "%s\n" "no" >&6; } 23643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5 23644printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;} 23645 curl_func_clock_gettime="no" 23646 LIBS="$curl_cv_save_LIBS" 23647 23648fi 23649rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23650 conftest.$ac_objext conftest.beam conftest.$ac_ext 23651fi 23652 23653 LD_LIBRARY_PATH=$old # restore 23654 CC=$oldcc 23655 ;; 23656 esac 23657 23658 fi 23659 # 23660 case "$curl_func_clock_gettime" in 23661 yes) 23662 23663printf "%s\n" "#define HAVE_CLOCK_GETTIME_MONOTONIC 1" >>confdefs.h 23664 23665 ;; 23666 esac 23667 # 23668 fi 23669 # 23670 23671 23672 23673 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 23674if test "x$ac_cv_header_sys_types_h" = xyes 23675then : 23676 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 23677 23678fi 23679ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" 23680if test "x$ac_cv_header_sys_time_h" = xyes 23681then : 23682 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h 23683 23684fi 23685 23686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for raw monotonic clock_gettime" >&5 23687printf %s "checking for raw monotonic clock_gettime... " >&6; } 23688 # 23689 if test "x$dontwant_rt" = "xno" ; then 23690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23691/* end confdefs.h. */ 23692 23693 23694 #ifdef HAVE_SYS_TYPES_H 23695 #include <sys/types.h> 23696 #endif 23697 #ifdef HAVE_SYS_TIME_H 23698 #include <sys/time.h> 23699 #endif 23700 #include <time.h> 23701 23702int main(void) 23703{ 23704 23705 struct timespec ts; 23706 (void)clock_gettime(CLOCK_MONOTONIC_RAW, &ts); 23707 23708 ; 23709 return 0; 23710} 23711 23712_ACEOF 23713if ac_fn_c_try_compile "$LINENO" 23714then : 23715 23716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23717printf "%s\n" "yes" >&6; } 23718 23719printf "%s\n" "#define HAVE_CLOCK_GETTIME_MONOTONIC_RAW 1" >>confdefs.h 23720 23721 23722else $as_nop 23723 23724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23725printf "%s\n" "no" >&6; } 23726 23727fi 23728rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23729 fi 23730 23731 23732CURL_NETWORK_AND_TIME_LIBS=$LIBS 23733 23734 23735 23736clean_CPPFLAGS=$CPPFLAGS 23737clean_LDFLAGS=$LDFLAGS 23738clean_LIBS=$LIBS 23739ZLIB_LIBS="" 23740 23741# Check whether --with-zlib was given. 23742if test ${with_zlib+y} 23743then : 23744 withval=$with_zlib; OPT_ZLIB="$withval" 23745fi 23746 23747 23748if test "$OPT_ZLIB" = "no"; then 23749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5 23750printf "%s\n" "$as_me: WARNING: zlib disabled" >&2;} 23751else 23752 if test "$OPT_ZLIB" = "yes"; then 23753 OPT_ZLIB="" 23754 fi 23755 23756 if test -z "$OPT_ZLIB"; then 23757 23758 if test -n "$PKG_CONFIG"; then 23759 PKGCONFIG="$PKG_CONFIG" 23760 else 23761 if test -n "$ac_tool_prefix"; then 23762 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 23763set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 23764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23765printf %s "checking for $ac_word... " >&6; } 23766if test ${ac_cv_path_PKGCONFIG+y} 23767then : 23768 printf %s "(cached) " >&6 23769else $as_nop 23770 case $PKGCONFIG in 23771 [\\/]* | ?:[\\/]*) 23772 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 23773 ;; 23774 *) 23775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23776as_dummy="$PATH:/usr/bin:/usr/local/bin" 23777for as_dir in $as_dummy 23778do 23779 IFS=$as_save_IFS 23780 case $as_dir in #((( 23781 '') as_dir=./ ;; 23782 */) ;; 23783 *) as_dir=$as_dir/ ;; 23784 esac 23785 for ac_exec_ext in '' $ac_executable_extensions; do 23786 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 23787 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 23788 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 23789 break 2 23790 fi 23791done 23792 done 23793IFS=$as_save_IFS 23794 23795 ;; 23796esac 23797fi 23798PKGCONFIG=$ac_cv_path_PKGCONFIG 23799if test -n "$PKGCONFIG"; then 23800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 23801printf "%s\n" "$PKGCONFIG" >&6; } 23802else 23803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23804printf "%s\n" "no" >&6; } 23805fi 23806 23807 23808fi 23809if test -z "$ac_cv_path_PKGCONFIG"; then 23810 ac_pt_PKGCONFIG=$PKGCONFIG 23811 # Extract the first word of "pkg-config", so it can be a program name with args. 23812set dummy pkg-config; ac_word=$2 23813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23814printf %s "checking for $ac_word... " >&6; } 23815if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 23816then : 23817 printf %s "(cached) " >&6 23818else $as_nop 23819 case $ac_pt_PKGCONFIG in 23820 [\\/]* | ?:[\\/]*) 23821 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 23822 ;; 23823 *) 23824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23825as_dummy="$PATH:/usr/bin:/usr/local/bin" 23826for as_dir in $as_dummy 23827do 23828 IFS=$as_save_IFS 23829 case $as_dir in #((( 23830 '') as_dir=./ ;; 23831 */) ;; 23832 *) as_dir=$as_dir/ ;; 23833 esac 23834 for ac_exec_ext in '' $ac_executable_extensions; do 23835 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 23836 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 23837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 23838 break 2 23839 fi 23840done 23841 done 23842IFS=$as_save_IFS 23843 23844 ;; 23845esac 23846fi 23847ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 23848if test -n "$ac_pt_PKGCONFIG"; then 23849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 23850printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 23851else 23852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23853printf "%s\n" "no" >&6; } 23854fi 23855 23856 if test "x$ac_pt_PKGCONFIG" = x; then 23857 PKGCONFIG="no" 23858 else 23859 case $cross_compiling:$ac_tool_warned in 23860yes:) 23861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 23862printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 23863ac_tool_warned=yes ;; 23864esac 23865 PKGCONFIG=$ac_pt_PKGCONFIG 23866 fi 23867else 23868 PKGCONFIG="$ac_cv_path_PKGCONFIG" 23869fi 23870 23871 fi 23872 23873 if test "x$PKGCONFIG" != "xno"; then 23874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5 23875printf %s "checking for zlib options with pkg-config... " >&6; } 23876 itexists=` 23877 if test -n ""; then 23878 PKG_CONFIG_LIBDIR="" 23879 export PKG_CONFIG_LIBDIR 23880 fi 23881 $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1` 23882 23883 if test -z "$itexists"; then 23884 PKGCONFIG="no" 23885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23886printf "%s\n" "no" >&6; } 23887 else 23888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 23889printf "%s\n" "found" >&6; } 23890 fi 23891 fi 23892 23893 23894 if test "$PKGCONFIG" != "no"; then 23895 ZLIB_LIBS="`$PKGCONFIG --libs-only-l zlib`" 23896 if test -n "$ZLIB_LIBS"; then 23897 LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`" 23898 else 23899 ZLIB_LIBS="`$PKGCONFIG --libs zlib`" 23900 fi 23901 LIBS="$ZLIB_LIBS $LIBS" 23902 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags zlib`" 23903 OPT_ZLIB="" 23904 HAVE_LIBZ="1" 23905 fi 23906 23907 if test -z "$HAVE_LIBZ"; then 23908 23909 23910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5 23911printf %s "checking for inflateEnd in -lz... " >&6; } 23912if test ${ac_cv_lib_z_inflateEnd+y} 23913then : 23914 printf %s "(cached) " >&6 23915else $as_nop 23916 ac_check_lib_save_LIBS=$LIBS 23917LIBS="-lz $LIBS" 23918cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23919/* end confdefs.h. */ 23920 23921 23922#ifdef __cplusplus 23923extern "C" 23924#endif 23925char inflateEnd (); 23926int main(void) 23927{ 23928return inflateEnd (); 23929 ; 23930 return 0; 23931} 23932_ACEOF 23933if ac_fn_c_try_link "$LINENO" 23934then : 23935 ac_cv_lib_z_inflateEnd=yes 23936else $as_nop 23937 ac_cv_lib_z_inflateEnd=no 23938fi 23939rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23940 conftest$ac_exeext conftest.$ac_ext 23941LIBS=$ac_check_lib_save_LIBS 23942fi 23943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5 23944printf "%s\n" "$ac_cv_lib_z_inflateEnd" >&6; } 23945if test "x$ac_cv_lib_z_inflateEnd" = xyes 23946then : 23947 23948 HAVE_LIBZ="1" 23949 ZLIB_LIBS="-lz" 23950 LIBS="$ZLIB_LIBS $LIBS" 23951 23952else $as_nop 23953 23954 OPT_ZLIB="/usr/local" 23955 23956 23957fi 23958 23959 fi 23960 fi 23961 23962 if test -n "$OPT_ZLIB"; then 23963 CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include" 23964 LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff" 23965 fi 23966 23967 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 23968if test "x$ac_cv_header_zlib_h" = xyes 23969then : 23970 23971 HAVE_ZLIB_H="1" 23972 if test "$HAVE_LIBZ" != "1"; then 23973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5 23974printf %s "checking for gzread in -lz... " >&6; } 23975if test ${ac_cv_lib_z_gzread+y} 23976then : 23977 printf %s "(cached) " >&6 23978else $as_nop 23979 ac_check_lib_save_LIBS=$LIBS 23980LIBS="-lz $LIBS" 23981cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23982/* end confdefs.h. */ 23983 23984 23985#ifdef __cplusplus 23986extern "C" 23987#endif 23988char gzread (); 23989int main(void) 23990{ 23991return gzread (); 23992 ; 23993 return 0; 23994} 23995_ACEOF 23996if ac_fn_c_try_link "$LINENO" 23997then : 23998 ac_cv_lib_z_gzread=yes 23999else $as_nop 24000 ac_cv_lib_z_gzread=no 24001fi 24002rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24003 conftest$ac_exeext conftest.$ac_ext 24004LIBS=$ac_check_lib_save_LIBS 24005fi 24006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5 24007printf "%s\n" "$ac_cv_lib_z_gzread" >&6; } 24008if test "x$ac_cv_lib_z_gzread" = xyes 24009then : 24010 24011 HAVE_LIBZ="1" 24012 ZLIB_LIBS="-lz" 24013 LIBS="$ZLIB_LIBS $LIBS" 24014 24015else $as_nop 24016 24017 CPPFLAGS=$clean_CPPFLAGS 24018 LDFLAGS=$clean_LDFLAGS 24019 24020 24021fi 24022 24023 fi 24024 24025else $as_nop 24026 24027 CPPFLAGS=$clean_CPPFLAGS 24028 LDFLAGS=$clean_LDFLAGS 24029 24030fi 24031 24032 24033 if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"; then 24034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5 24035printf "%s\n" "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;} 24036 HAVE_LIBZ="" 24037 CPPFLAGS=$clean_CPPFLAGS 24038 LDFLAGS=$clean_LDFLAGS 24039 LIBS=$clean_LIBS 24040 ZLIB_LIBS="" 24041 elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"; then 24042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5 24043printf "%s\n" "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;} 24044 CPPFLAGS=$clean_CPPFLAGS 24045 LDFLAGS=$clean_LDFLAGS 24046 LIBS=$clean_LIBS 24047 ZLIB_LIBS="" 24048 elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"; then 24049 24050 24051printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h 24052 24053 LIBS="$ZLIB_LIBS $clean_LIBS" 24054 24055 AMFIXLIB="1" 24056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5 24057printf "%s\n" "$as_me: found both libz and libz.h header" >&6;} 24058 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE zlib" 24059 curl_zlib_msg="enabled" 24060 fi 24061fi 24062 24063 if test x"$AMFIXLIB" = x1; then 24064 HAVE_LIBZ_TRUE= 24065 HAVE_LIBZ_FALSE='#' 24066else 24067 HAVE_LIBZ_TRUE='#' 24068 HAVE_LIBZ_FALSE= 24069fi 24070 24071 24072 24073 24074 24075OPT_BROTLI=off 24076 24077# Check whether --with-brotli was given. 24078if test ${with_brotli+y} 24079then : 24080 withval=$with_brotli; OPT_BROTLI=$withval 24081fi 24082 24083 24084if test X"$OPT_BROTLI" != Xno; then 24085 CLEANLDFLAGS="$LDFLAGS" 24086 CLEANCPPFLAGS="$CPPFLAGS" 24087 CLEANLIBS="$LIBS" 24088 24089 case "$OPT_BROTLI" in 24090 yes) 24091 24092 if test -n "$PKG_CONFIG"; then 24093 PKGCONFIG="$PKG_CONFIG" 24094 else 24095 if test -n "$ac_tool_prefix"; then 24096 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 24097set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 24098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24099printf %s "checking for $ac_word... " >&6; } 24100if test ${ac_cv_path_PKGCONFIG+y} 24101then : 24102 printf %s "(cached) " >&6 24103else $as_nop 24104 case $PKGCONFIG in 24105 [\\/]* | ?:[\\/]*) 24106 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 24107 ;; 24108 *) 24109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24110as_dummy="$PATH:/usr/bin:/usr/local/bin" 24111for as_dir in $as_dummy 24112do 24113 IFS=$as_save_IFS 24114 case $as_dir in #((( 24115 '') as_dir=./ ;; 24116 */) ;; 24117 *) as_dir=$as_dir/ ;; 24118 esac 24119 for ac_exec_ext in '' $ac_executable_extensions; do 24120 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 24121 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 24122 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 24123 break 2 24124 fi 24125done 24126 done 24127IFS=$as_save_IFS 24128 24129 ;; 24130esac 24131fi 24132PKGCONFIG=$ac_cv_path_PKGCONFIG 24133if test -n "$PKGCONFIG"; then 24134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 24135printf "%s\n" "$PKGCONFIG" >&6; } 24136else 24137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24138printf "%s\n" "no" >&6; } 24139fi 24140 24141 24142fi 24143if test -z "$ac_cv_path_PKGCONFIG"; then 24144 ac_pt_PKGCONFIG=$PKGCONFIG 24145 # Extract the first word of "pkg-config", so it can be a program name with args. 24146set dummy pkg-config; ac_word=$2 24147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24148printf %s "checking for $ac_word... " >&6; } 24149if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 24150then : 24151 printf %s "(cached) " >&6 24152else $as_nop 24153 case $ac_pt_PKGCONFIG in 24154 [\\/]* | ?:[\\/]*) 24155 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 24156 ;; 24157 *) 24158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24159as_dummy="$PATH:/usr/bin:/usr/local/bin" 24160for as_dir in $as_dummy 24161do 24162 IFS=$as_save_IFS 24163 case $as_dir in #((( 24164 '') as_dir=./ ;; 24165 */) ;; 24166 *) as_dir=$as_dir/ ;; 24167 esac 24168 for ac_exec_ext in '' $ac_executable_extensions; do 24169 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 24170 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 24171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 24172 break 2 24173 fi 24174done 24175 done 24176IFS=$as_save_IFS 24177 24178 ;; 24179esac 24180fi 24181ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 24182if test -n "$ac_pt_PKGCONFIG"; then 24183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 24184printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 24185else 24186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24187printf "%s\n" "no" >&6; } 24188fi 24189 24190 if test "x$ac_pt_PKGCONFIG" = x; then 24191 PKGCONFIG="no" 24192 else 24193 case $cross_compiling:$ac_tool_warned in 24194yes:) 24195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 24196printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 24197ac_tool_warned=yes ;; 24198esac 24199 PKGCONFIG=$ac_pt_PKGCONFIG 24200 fi 24201else 24202 PKGCONFIG="$ac_cv_path_PKGCONFIG" 24203fi 24204 24205 fi 24206 24207 if test "x$PKGCONFIG" != "xno"; then 24208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbrotlidec options with pkg-config" >&5 24209printf %s "checking for libbrotlidec options with pkg-config... " >&6; } 24210 itexists=` 24211 if test -n ""; then 24212 PKG_CONFIG_LIBDIR="" 24213 export PKG_CONFIG_LIBDIR 24214 fi 24215 $PKGCONFIG --exists libbrotlidec >/dev/null 2>&1 && echo 1` 24216 24217 if test -z "$itexists"; then 24218 PKGCONFIG="no" 24219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24220printf "%s\n" "no" >&6; } 24221 else 24222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 24223printf "%s\n" "found" >&6; } 24224 fi 24225 fi 24226 24227 24228 if test "$PKGCONFIG" != "no"; then 24229 LIB_BROTLI=`$PKGCONFIG --libs-only-l libbrotlidec` 24230 LD_BROTLI=`$PKGCONFIG --libs-only-L libbrotlidec` 24231 CPP_BROTLI=`$PKGCONFIG --cflags-only-I libbrotlidec` 24232 version=`$PKGCONFIG --modversion libbrotlidec` 24233 DIR_BROTLI=`echo $LD_BROTLI | $SED -e 's/^-L//'` 24234 fi 24235 24236 ;; 24237 off) 24238 ;; 24239 *) 24240 PREFIX_BROTLI=$OPT_BROTLI 24241 ;; 24242 esac 24243 24244 if test -n "$PREFIX_BROTLI"; then 24245 LIB_BROTLI="-lbrotlidec" 24246 LD_BROTLI=-L${PREFIX_BROTLI}/lib$libsuff 24247 CPP_BROTLI=-I${PREFIX_BROTLI}/include 24248 DIR_BROTLI=${PREFIX_BROTLI}/lib$libsuff 24249 fi 24250 24251 LDFLAGS="$LDFLAGS $LD_BROTLI" 24252 CPPFLAGS="$CPPFLAGS $CPP_BROTLI" 24253 LIBS="$LIB_BROTLI $LIBS" 24254 24255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BrotliDecoderDecompress in -lbrotlidec" >&5 24256printf %s "checking for BrotliDecoderDecompress in -lbrotlidec... " >&6; } 24257if test ${ac_cv_lib_brotlidec_BrotliDecoderDecompress+y} 24258then : 24259 printf %s "(cached) " >&6 24260else $as_nop 24261 ac_check_lib_save_LIBS=$LIBS 24262LIBS="-lbrotlidec $LIBS" 24263cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24264/* end confdefs.h. */ 24265 24266 24267#ifdef __cplusplus 24268extern "C" 24269#endif 24270char BrotliDecoderDecompress (); 24271int main(void) 24272{ 24273return BrotliDecoderDecompress (); 24274 ; 24275 return 0; 24276} 24277_ACEOF 24278if ac_fn_c_try_link "$LINENO" 24279then : 24280 ac_cv_lib_brotlidec_BrotliDecoderDecompress=yes 24281else $as_nop 24282 ac_cv_lib_brotlidec_BrotliDecoderDecompress=no 24283fi 24284rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24285 conftest$ac_exeext conftest.$ac_ext 24286LIBS=$ac_check_lib_save_LIBS 24287fi 24288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&5 24289printf "%s\n" "$ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&6; } 24290if test "x$ac_cv_lib_brotlidec_BrotliDecoderDecompress" = xyes 24291then : 24292 printf "%s\n" "#define HAVE_LIBBROTLIDEC 1" >>confdefs.h 24293 24294 LIBS="-lbrotlidec $LIBS" 24295 24296fi 24297 24298 24299 for ac_header in brotli/decode.h 24300do : 24301 ac_fn_c_check_header_compile "$LINENO" "brotli/decode.h" "ac_cv_header_brotli_decode_h" "$ac_includes_default" 24302if test "x$ac_cv_header_brotli_decode_h" = xyes 24303then : 24304 printf "%s\n" "#define HAVE_BROTLI_DECODE_H 1" >>confdefs.h 24305 curl_brotli_msg="enabled (libbrotlidec)" 24306 HAVE_BROTLI=1 24307 24308printf "%s\n" "#define HAVE_BROTLI 1" >>confdefs.h 24309 24310 HAVE_BROTLI=1 24311 24312 24313fi 24314 24315done 24316 24317 if test X"$OPT_BROTLI" != Xoff && 24318 test "$HAVE_BROTLI" != "1"; then 24319 as_fn_error $? "BROTLI libs and/or directories were not found where specified!" "$LINENO" 5 24320 fi 24321 24322 if test "$HAVE_BROTLI" = "1"; then 24323 if test -n "$DIR_BROTLI"; then 24324 24325 if test "x$cross_compiling" != "xyes"; then 24326 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_BROTLI" 24327 export CURL_LIBRARY_PATH 24328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&5 24329printf "%s\n" "$as_me: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&6;} 24330 fi 24331 fi 24332 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE libbrotlidec" 24333 else 24334 LDFLAGS=$CLEANLDFLAGS 24335 CPPFLAGS=$CLEANCPPFLAGS 24336 LIBS=$CLEANLIBS 24337 fi 24338fi 24339 24340 24341OPT_ZSTD=off 24342 24343# Check whether --with-zstd was given. 24344if test ${with_zstd+y} 24345then : 24346 withval=$with_zstd; OPT_ZSTD=$withval 24347fi 24348 24349 24350if test X"$OPT_ZSTD" != Xno; then 24351 CLEANLDFLAGS="$LDFLAGS" 24352 CLEANCPPFLAGS="$CPPFLAGS" 24353 CLEANLIBS="$LIBS" 24354 24355 case "$OPT_ZSTD" in 24356 yes) 24357 24358 if test -n "$PKG_CONFIG"; then 24359 PKGCONFIG="$PKG_CONFIG" 24360 else 24361 if test -n "$ac_tool_prefix"; then 24362 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 24363set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 24364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24365printf %s "checking for $ac_word... " >&6; } 24366if test ${ac_cv_path_PKGCONFIG+y} 24367then : 24368 printf %s "(cached) " >&6 24369else $as_nop 24370 case $PKGCONFIG in 24371 [\\/]* | ?:[\\/]*) 24372 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 24373 ;; 24374 *) 24375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24376as_dummy="$PATH:/usr/bin:/usr/local/bin" 24377for as_dir in $as_dummy 24378do 24379 IFS=$as_save_IFS 24380 case $as_dir in #((( 24381 '') as_dir=./ ;; 24382 */) ;; 24383 *) as_dir=$as_dir/ ;; 24384 esac 24385 for ac_exec_ext in '' $ac_executable_extensions; do 24386 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 24387 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 24388 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 24389 break 2 24390 fi 24391done 24392 done 24393IFS=$as_save_IFS 24394 24395 ;; 24396esac 24397fi 24398PKGCONFIG=$ac_cv_path_PKGCONFIG 24399if test -n "$PKGCONFIG"; then 24400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 24401printf "%s\n" "$PKGCONFIG" >&6; } 24402else 24403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24404printf "%s\n" "no" >&6; } 24405fi 24406 24407 24408fi 24409if test -z "$ac_cv_path_PKGCONFIG"; then 24410 ac_pt_PKGCONFIG=$PKGCONFIG 24411 # Extract the first word of "pkg-config", so it can be a program name with args. 24412set dummy pkg-config; ac_word=$2 24413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24414printf %s "checking for $ac_word... " >&6; } 24415if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 24416then : 24417 printf %s "(cached) " >&6 24418else $as_nop 24419 case $ac_pt_PKGCONFIG in 24420 [\\/]* | ?:[\\/]*) 24421 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 24422 ;; 24423 *) 24424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24425as_dummy="$PATH:/usr/bin:/usr/local/bin" 24426for as_dir in $as_dummy 24427do 24428 IFS=$as_save_IFS 24429 case $as_dir in #((( 24430 '') as_dir=./ ;; 24431 */) ;; 24432 *) as_dir=$as_dir/ ;; 24433 esac 24434 for ac_exec_ext in '' $ac_executable_extensions; do 24435 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 24436 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 24437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 24438 break 2 24439 fi 24440done 24441 done 24442IFS=$as_save_IFS 24443 24444 ;; 24445esac 24446fi 24447ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 24448if test -n "$ac_pt_PKGCONFIG"; then 24449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 24450printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 24451else 24452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24453printf "%s\n" "no" >&6; } 24454fi 24455 24456 if test "x$ac_pt_PKGCONFIG" = x; then 24457 PKGCONFIG="no" 24458 else 24459 case $cross_compiling:$ac_tool_warned in 24460yes:) 24461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 24462printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 24463ac_tool_warned=yes ;; 24464esac 24465 PKGCONFIG=$ac_pt_PKGCONFIG 24466 fi 24467else 24468 PKGCONFIG="$ac_cv_path_PKGCONFIG" 24469fi 24470 24471 fi 24472 24473 if test "x$PKGCONFIG" != "xno"; then 24474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libzstd options with pkg-config" >&5 24475printf %s "checking for libzstd options with pkg-config... " >&6; } 24476 itexists=` 24477 if test -n ""; then 24478 PKG_CONFIG_LIBDIR="" 24479 export PKG_CONFIG_LIBDIR 24480 fi 24481 $PKGCONFIG --exists libzstd >/dev/null 2>&1 && echo 1` 24482 24483 if test -z "$itexists"; then 24484 PKGCONFIG="no" 24485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24486printf "%s\n" "no" >&6; } 24487 else 24488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 24489printf "%s\n" "found" >&6; } 24490 fi 24491 fi 24492 24493 24494 if test "$PKGCONFIG" != "no"; then 24495 LIB_ZSTD=`$PKGCONFIG --libs-only-l libzstd` 24496 LD_ZSTD=`$PKGCONFIG --libs-only-L libzstd` 24497 CPP_ZSTD=`$PKGCONFIG --cflags-only-I libzstd` 24498 version=`$PKGCONFIG --modversion libzstd` 24499 DIR_ZSTD=`echo $LD_ZSTD | $SED -e 's/-L//'` 24500 fi 24501 24502 ;; 24503 off) 24504 ;; 24505 *) 24506 PREFIX_ZSTD=$OPT_ZSTD 24507 ;; 24508 esac 24509 24510 if test -n "$PREFIX_ZSTD"; then 24511 LIB_ZSTD="-lzstd" 24512 LD_ZSTD=-L${PREFIX_ZSTD}/lib$libsuff 24513 CPP_ZSTD=-I${PREFIX_ZSTD}/include 24514 DIR_ZSTD=${PREFIX_ZSTD}/lib$libsuff 24515 fi 24516 24517 LDFLAGS="$LDFLAGS $LD_ZSTD" 24518 CPPFLAGS="$CPPFLAGS $CPP_ZSTD" 24519 LIBS="$LIB_ZSTD $LIBS" 24520 24521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZSTD_createDStream in -lzstd" >&5 24522printf %s "checking for ZSTD_createDStream in -lzstd... " >&6; } 24523if test ${ac_cv_lib_zstd_ZSTD_createDStream+y} 24524then : 24525 printf %s "(cached) " >&6 24526else $as_nop 24527 ac_check_lib_save_LIBS=$LIBS 24528LIBS="-lzstd $LIBS" 24529cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24530/* end confdefs.h. */ 24531 24532 24533#ifdef __cplusplus 24534extern "C" 24535#endif 24536char ZSTD_createDStream (); 24537int main(void) 24538{ 24539return ZSTD_createDStream (); 24540 ; 24541 return 0; 24542} 24543_ACEOF 24544if ac_fn_c_try_link "$LINENO" 24545then : 24546 ac_cv_lib_zstd_ZSTD_createDStream=yes 24547else $as_nop 24548 ac_cv_lib_zstd_ZSTD_createDStream=no 24549fi 24550rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24551 conftest$ac_exeext conftest.$ac_ext 24552LIBS=$ac_check_lib_save_LIBS 24553fi 24554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_createDStream" >&5 24555printf "%s\n" "$ac_cv_lib_zstd_ZSTD_createDStream" >&6; } 24556if test "x$ac_cv_lib_zstd_ZSTD_createDStream" = xyes 24557then : 24558 printf "%s\n" "#define HAVE_LIBZSTD 1" >>confdefs.h 24559 24560 LIBS="-lzstd $LIBS" 24561 24562fi 24563 24564 24565 for ac_header in zstd.h 24566do : 24567 ac_fn_c_check_header_compile "$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default" 24568if test "x$ac_cv_header_zstd_h" = xyes 24569then : 24570 printf "%s\n" "#define HAVE_ZSTD_H 1" >>confdefs.h 24571 curl_zstd_msg="enabled (libzstd)" 24572 HAVE_ZSTD=1 24573 24574printf "%s\n" "#define HAVE_ZSTD 1" >>confdefs.h 24575 24576 HAVE_ZSTD=1 24577 24578 24579fi 24580 24581done 24582 24583 if test X"$OPT_ZSTD" != Xoff && 24584 test "$HAVE_ZSTD" != "1"; then 24585 as_fn_error $? "libzstd was not found where specified!" "$LINENO" 5 24586 fi 24587 24588 if test "$HAVE_ZSTD" = "1"; then 24589 if test -n "$DIR_ZSTD"; then 24590 24591 if test "x$cross_compiling" != "xyes"; then 24592 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_ZSTD" 24593 export CURL_LIBRARY_PATH 24594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_ZSTD to CURL_LIBRARY_PATH" >&5 24595printf "%s\n" "$as_me: Added $DIR_ZSTD to CURL_LIBRARY_PATH" >&6;} 24596 fi 24597 fi 24598 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE libzstd" 24599 else 24600 LDFLAGS=$CLEANLDFLAGS 24601 CPPFLAGS=$CLEANCPPFLAGS 24602 LIBS=$CLEANLIBS 24603 fi 24604fi 24605 24606 24607LDAPLIBNAME="" 24608 24609# Check whether --with-ldap-lib was given. 24610if test ${with_ldap_lib+y} 24611then : 24612 withval=$with_ldap_lib; LDAPLIBNAME="$withval" 24613fi 24614 24615 24616LBERLIBNAME="" 24617 24618# Check whether --with-lber-lib was given. 24619if test ${with_lber_lib+y} 24620then : 24621 withval=$with_lber_lib; LBERLIBNAME="$withval" 24622fi 24623 24624 24625if test x$CURL_DISABLE_LDAP != x1; then 24626 24627 24628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5 24629printf %s "checking for lber.h... " >&6; } 24630if test ${curl_cv_header_lber_h+y} 24631then : 24632 printf %s "(cached) " >&6 24633else $as_nop 24634 24635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24636/* end confdefs.h. */ 24637 24638 24639 #undef inline 24640 #ifdef _WIN32 24641 #ifndef WIN32_LEAN_AND_MEAN 24642 #define WIN32_LEAN_AND_MEAN 24643 #endif 24644 #include <windows.h> 24645 #else 24646 #ifdef HAVE_SYS_TYPES_H 24647 #include <sys/types.h> 24648 #endif 24649 #endif 24650 #ifndef NULL 24651 #define NULL (void *)0 24652 #endif 24653 #include <lber.h> 24654 24655int main(void) 24656{ 24657 24658 BerValue *bvp = NULL; 24659 BerElement *bep = ber_init(bvp); 24660 ber_free(bep, 1); 24661 24662 ; 24663 return 0; 24664} 24665 24666_ACEOF 24667if ac_fn_c_try_compile "$LINENO" 24668then : 24669 24670 curl_cv_header_lber_h="yes" 24671 24672else $as_nop 24673 24674 curl_cv_header_lber_h="no" 24675 24676fi 24677rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24678 24679fi 24680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5 24681printf "%s\n" "$curl_cv_header_lber_h" >&6; } 24682 if test "$curl_cv_header_lber_h" = "yes"; then 24683 24684printf "%s\n" "#define HAVE_LBER_H 1" >>confdefs.h 24685 24686 # 24687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24688/* end confdefs.h. */ 24689 24690 24691 #undef inline 24692 #ifdef _WIN32 24693 #ifndef WIN32_LEAN_AND_MEAN 24694 #define WIN32_LEAN_AND_MEAN 24695 #endif 24696 #include <windows.h> 24697 #else 24698 #ifdef HAVE_SYS_TYPES_H 24699 #include <sys/types.h> 24700 #endif 24701 #endif 24702 #ifndef NULL 24703 #define NULL (void *)0 24704 #endif 24705 #ifndef LDAP_DEPRECATED 24706 #define LDAP_DEPRECATED 1 24707 #endif 24708 #include <ldap.h> 24709 24710int main(void) 24711{ 24712 24713 BerValue *bvp = NULL; 24714 BerElement *bep = ber_init(bvp); 24715 ber_free(bep, 1); 24716 24717 ; 24718 return 0; 24719} 24720 24721_ACEOF 24722if ac_fn_c_try_compile "$LINENO" 24723then : 24724 24725 curl_cv_need_header_lber_h="no" 24726 24727else $as_nop 24728 24729 curl_cv_need_header_lber_h="yes" 24730 24731fi 24732rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24733 # 24734 case "$curl_cv_need_header_lber_h" in 24735 yes) 24736 24737printf "%s\n" "#define NEED_LBER_H 1" >>confdefs.h 24738 24739 ;; 24740 esac 24741 fi 24742 24743 24744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5 24745printf %s "checking for ldap.h... " >&6; } 24746if test ${curl_cv_header_ldap_h+y} 24747then : 24748 printf %s "(cached) " >&6 24749else $as_nop 24750 24751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24752/* end confdefs.h. */ 24753 24754 24755 #undef inline 24756 #ifdef _WIN32 24757 #ifndef WIN32_LEAN_AND_MEAN 24758 #define WIN32_LEAN_AND_MEAN 24759 #endif 24760 #include <windows.h> 24761 #else 24762 #ifdef HAVE_SYS_TYPES_H 24763 #include <sys/types.h> 24764 #endif 24765 #endif 24766 #ifndef LDAP_DEPRECATED 24767 #define LDAP_DEPRECATED 1 24768 #endif 24769 #ifdef NEED_LBER_H 24770 #include <lber.h> 24771 #endif 24772 #include <ldap.h> 24773 24774int main(void) 24775{ 24776 24777 LDAP *ldp = ldap_init("0.0.0.0", LDAP_PORT); 24778 int res = ldap_unbind(ldp); 24779 24780 ; 24781 return 0; 24782} 24783 24784_ACEOF 24785if ac_fn_c_try_compile "$LINENO" 24786then : 24787 24788 curl_cv_header_ldap_h="yes" 24789 24790else $as_nop 24791 24792 curl_cv_header_ldap_h="no" 24793 24794fi 24795rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24796 24797fi 24798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5 24799printf "%s\n" "$curl_cv_header_ldap_h" >&6; } 24800 case "$curl_cv_header_ldap_h" in 24801 yes) 24802 24803printf "%s\n" "#define HAVE_LDAP_H 1" >>confdefs.h 24804 24805 ;; 24806 esac 24807 24808 24809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5 24810printf %s "checking for ldap_ssl.h... " >&6; } 24811if test ${curl_cv_header_ldap_ssl_h+y} 24812then : 24813 printf %s "(cached) " >&6 24814else $as_nop 24815 24816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24817/* end confdefs.h. */ 24818 24819 24820 #undef inline 24821 #ifdef _WIN32 24822 #ifndef WIN32_LEAN_AND_MEAN 24823 #define WIN32_LEAN_AND_MEAN 24824 #endif 24825 #include <windows.h> 24826 #else 24827 #ifdef HAVE_SYS_TYPES_H 24828 #include <sys/types.h> 24829 #endif 24830 #endif 24831 #ifndef LDAP_DEPRECATED 24832 #define LDAP_DEPRECATED 1 24833 #endif 24834 #ifdef NEED_LBER_H 24835 #include <lber.h> 24836 #endif 24837 #ifdef HAVE_LDAP_H 24838 #include <ldap.h> 24839 #endif 24840 #include <ldap_ssl.h> 24841 24842int main(void) 24843{ 24844 24845 LDAP *ldp = ldapssl_init("0.0.0.0", LDAPS_PORT, 1); 24846 24847 ; 24848 return 0; 24849} 24850 24851_ACEOF 24852if ac_fn_c_try_compile "$LINENO" 24853then : 24854 24855 curl_cv_header_ldap_ssl_h="yes" 24856 24857else $as_nop 24858 24859 curl_cv_header_ldap_ssl_h="no" 24860 24861fi 24862rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24863 24864fi 24865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5 24866printf "%s\n" "$curl_cv_header_ldap_ssl_h" >&6; } 24867 case "$curl_cv_header_ldap_ssl_h" in 24868 yes) 24869 24870printf "%s\n" "#define HAVE_LDAP_SSL_H 1" >>confdefs.h 24871 24872 ;; 24873 esac 24874 24875 24876 if test -z "$LDAPLIBNAME"; then 24877 if test "$curl_cv_native_windows" = "yes"; then 24878 LDAPLIBNAME="wldap32" 24879 LBERLIBNAME="no" 24880 fi 24881 fi 24882 24883 if test "$LDAPLIBNAME"; then 24884 as_ac_Lib=`printf "%s\n" "ac_cv_lib_"$LDAPLIBNAME"""_ldap_init" | $as_tr_sh` 24885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5 24886printf %s "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; } 24887if eval test \${$as_ac_Lib+y} 24888then : 24889 printf %s "(cached) " >&6 24890else $as_nop 24891 ac_check_lib_save_LIBS=$LIBS 24892LIBS="-l"$LDAPLIBNAME" $LIBS" 24893cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24894/* end confdefs.h. */ 24895 24896 24897#ifdef __cplusplus 24898extern "C" 24899#endif 24900char ldap_init (); 24901int main(void) 24902{ 24903return ldap_init (); 24904 ; 24905 return 0; 24906} 24907_ACEOF 24908if ac_fn_c_try_link "$LINENO" 24909then : 24910 eval "$as_ac_Lib=yes" 24911else $as_nop 24912 eval "$as_ac_Lib=no" 24913fi 24914rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24915 conftest$ac_exeext conftest.$ac_ext 24916LIBS=$ac_check_lib_save_LIBS 24917fi 24918eval ac_res=\$$as_ac_Lib 24919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 24920printf "%s\n" "$ac_res" >&6; } 24921if eval test \"x\$"$as_ac_Lib"\" = x"yes" 24922then : 24923 cat >>confdefs.h <<_ACEOF 24924#define `printf "%s\n" "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1 24925_ACEOF 24926 24927 LIBS="-l"$LDAPLIBNAME" $LIBS" 24928 24929else $as_nop 24930 24931 if test -n "$ldap_askedfor"; then 24932 as_fn_error $? "couldn't detect the LDAP libraries" "$LINENO" 5 24933 fi 24934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5 24935printf "%s\n" "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;} 24936 24937printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h 24938 24939 CURL_DISABLE_LDAP=1 24940 24941 24942printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h 24943 24944 CURL_DISABLE_LDAPS=1 24945 24946fi 24947 24948 else 24949 24950 # 24951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5 24952printf %s "checking for LDAP libraries... " >&6; } 24953 # 24954 u_libs="" 24955 # 24956 24957 # 24958 curl_cv_save_LIBS="$LIBS" 24959 curl_cv_ldap_LIBS="unknown" 24960 # 24961 for x_nlibs in '' "$u_libs" \ 24962 '-lldap' \ 24963 '-lldap -llber' \ 24964 '-llber -lldap' \ 24965 '-lldapssl -lldapx -lldapsdk' \ 24966 '-lldapsdk -lldapx -lldapssl' \ 24967 '-lldap -llber -lssl -lcrypto'; do 24968 24969 if test "$curl_cv_ldap_LIBS" = "unknown"; then 24970 if test -z "$x_nlibs"; then 24971 LIBS="$curl_cv_save_LIBS" 24972 else 24973 LIBS="$x_nlibs $curl_cv_save_LIBS" 24974 fi 24975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24976/* end confdefs.h. */ 24977 24978 24979 #undef inline 24980 #ifdef _WIN32 24981 #ifndef WIN32_LEAN_AND_MEAN 24982 #define WIN32_LEAN_AND_MEAN 24983 #endif 24984 #include <windows.h> 24985 #else 24986 #ifdef HAVE_SYS_TYPES_H 24987 #include <sys/types.h> 24988 #endif 24989 #endif 24990 #ifndef NULL 24991 #define NULL (void *)0 24992 #endif 24993 #ifndef LDAP_DEPRECATED 24994 #define LDAP_DEPRECATED 1 24995 #endif 24996 #ifdef NEED_LBER_H 24997 #include <lber.h> 24998 #endif 24999 #ifdef HAVE_LDAP_H 25000 #include <ldap.h> 25001 #endif 25002 25003int main(void) 25004{ 25005 25006 BerValue *bvp = NULL; 25007 BerElement *bep = ber_init(bvp); 25008 LDAP *ldp = ldap_init("0.0.0.0", LDAP_PORT); 25009 int res = ldap_unbind(ldp); 25010 ber_free(bep, 1); 25011 25012 ; 25013 return 0; 25014} 25015 25016_ACEOF 25017if ac_fn_c_try_link "$LINENO" 25018then : 25019 25020 curl_cv_ldap_LIBS="$x_nlibs" 25021 25022fi 25023rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25024 conftest$ac_exeext conftest.$ac_ext 25025 fi 25026 done 25027 # 25028 LIBS="$curl_cv_save_LIBS" 25029 # 25030 case X-"$curl_cv_ldap_LIBS" in 25031 X-unknown) 25032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5 25033printf "%s\n" "cannot find LDAP libraries" >&6; } 25034 ;; 25035 X-) 25036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5 25037printf "%s\n" "no additional lib required" >&6; } 25038 ;; 25039 *) 25040 if test -z "$curl_cv_save_LIBS"; then 25041 LIBS="$curl_cv_ldap_LIBS" 25042 else 25043 LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS" 25044 fi 25045 LIBCURL_PC_REQUIRES_PRIVATE="ldap $LIBCURL_PC_REQUIRES_PRIVATE" 25046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5 25047printf "%s\n" "$curl_cv_ldap_LIBS" >&6; } 25048 ;; 25049 esac 25050 # 25051 25052 case X-"$curl_cv_ldap_LIBS" in 25053 X-unknown) 25054 if test -n "$ldap_askedfor"; then 25055 as_fn_error $? "couldn't detect the LDAP libraries" "$LINENO" 5 25056 fi 25057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5 25058printf "%s\n" "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;} 25059 25060printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h 25061 25062 CURL_DISABLE_LDAP=1 25063 25064 25065printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h 25066 25067 CURL_DISABLE_LDAPS=1 25068 25069 ;; 25070 esac 25071 fi 25072fi 25073 25074if test x$CURL_DISABLE_LDAP != x1; then 25075 25076 if test "$LBERLIBNAME"; then 25077 if test "$LBERLIBNAME" != "no"; then 25078 as_ac_Lib=`printf "%s\n" "ac_cv_lib_"$LBERLIBNAME"""_ber_free" | $as_tr_sh` 25079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5 25080printf %s "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; } 25081if eval test \${$as_ac_Lib+y} 25082then : 25083 printf %s "(cached) " >&6 25084else $as_nop 25085 ac_check_lib_save_LIBS=$LIBS 25086LIBS="-l"$LBERLIBNAME" $LIBS" 25087cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25088/* end confdefs.h. */ 25089 25090 25091#ifdef __cplusplus 25092extern "C" 25093#endif 25094char ber_free (); 25095int main(void) 25096{ 25097return ber_free (); 25098 ; 25099 return 0; 25100} 25101_ACEOF 25102if ac_fn_c_try_link "$LINENO" 25103then : 25104 eval "$as_ac_Lib=yes" 25105else $as_nop 25106 eval "$as_ac_Lib=no" 25107fi 25108rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25109 conftest$ac_exeext conftest.$ac_ext 25110LIBS=$ac_check_lib_save_LIBS 25111fi 25112eval ac_res=\$$as_ac_Lib 25113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 25114printf "%s\n" "$ac_res" >&6; } 25115if eval test \"x\$"$as_ac_Lib"\" = x"yes" 25116then : 25117 cat >>confdefs.h <<_ACEOF 25118#define `printf "%s\n" "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1 25119_ACEOF 25120 25121 LIBS="-l"$LBERLIBNAME" $LIBS" 25122 25123else $as_nop 25124 25125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5 25126printf "%s\n" "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;} 25127 25128printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h 25129 25130 CURL_DISABLE_LDAP=1 25131 25132 25133printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h 25134 25135 CURL_DISABLE_LDAPS=1 25136 25137fi 25138 25139 fi 25140 fi 25141fi 25142 25143if test x$CURL_DISABLE_LDAP != x1; then 25144 ac_fn_c_check_func "$LINENO" "ldap_url_parse" "ac_cv_func_ldap_url_parse" 25145if test "x$ac_cv_func_ldap_url_parse" = xyes 25146then : 25147 printf "%s\n" "#define HAVE_LDAP_URL_PARSE 1" >>confdefs.h 25148 25149fi 25150ac_fn_c_check_func "$LINENO" "ldap_init_fd" "ac_cv_func_ldap_init_fd" 25151if test "x$ac_cv_func_ldap_init_fd" = xyes 25152then : 25153 printf "%s\n" "#define HAVE_LDAP_INIT_FD 1" >>confdefs.h 25154 25155fi 25156 25157 25158 if test "$LDAPLIBNAME" = "wldap32"; then 25159 curl_ldap_msg="enabled (winldap)" 25160 25161printf "%s\n" "#define USE_WIN32_LDAP 1" >>confdefs.h 25162 25163 else 25164 if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then 25165 curl_ldap_msg="enabled (OpenLDAP)" 25166 25167printf "%s\n" "#define USE_OPENLDAP 1" >>confdefs.h 25168 25169 USE_OPENLDAP=1 25170 25171 else 25172 curl_ldap_msg="enabled (ancient OpenLDAP)" 25173 fi 25174 fi 25175fi 25176 25177if test x$CURL_DISABLE_LDAPS != x1; then 25178 curl_ldaps_msg="enabled" 25179fi 25180 25181 25182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5 25183printf %s "checking whether to enable IPv6... " >&6; } 25184# Check whether --enable-ipv6 was given. 25185if test ${enable_ipv6+y} 25186then : 25187 enableval=$enable_ipv6; case "$enableval" in 25188 no) 25189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25190printf "%s\n" "no" >&6; } 25191 ipv6=no 25192 ;; 25193 *) 25194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25195printf "%s\n" "yes" >&6; } 25196 ipv6=yes 25197 ;; 25198 esac 25199else $as_nop 25200 if test "$cross_compiling" = yes 25201then : 25202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25203printf "%s\n" "yes" >&6; } 25204 ipv6=yes 25205 25206else $as_nop 25207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25208/* end confdefs.h. */ 25209 25210 /* are AF_INET6 and sockaddr_in6 available? */ 25211 #include <sys/types.h> 25212 #ifdef _WIN32 25213 #include <winsock2.h> 25214 #include <ws2tcpip.h> 25215 #else 25216 #include <sys/socket.h> 25217 #include <netinet/in.h> 25218 #if defined (__TANDEM) 25219 # include <netinet/in6.h> 25220 #endif 25221 #endif 25222 25223 int main(void) 25224 { 25225 struct sockaddr_in6 s; 25226 (void)s; 25227 return socket(AF_INET6, SOCK_STREAM, 0) < 0; 25228 } 25229 25230 25231_ACEOF 25232if ac_fn_c_try_run "$LINENO" 25233then : 25234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25235printf "%s\n" "yes" >&6; } 25236 ipv6=yes 25237else $as_nop 25238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25239printf "%s\n" "no" >&6; } 25240 ipv6=no 25241fi 25242rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25243 conftest.$ac_objext conftest.beam conftest.$ac_ext 25244fi 25245 25246fi 25247 25248 25249if test "$ipv6" = yes; then 25250 curl_ipv6_msg="enabled" 25251 25252printf "%s\n" "#define USE_IPV6 1" >>confdefs.h 25253 25254 IPV6_ENABLED=1 25255 25256 25257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5 25258printf %s "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; } 25259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25260/* end confdefs.h. */ 25261 25262 #include <sys/types.h> 25263 #ifdef _WIN32 25264 #include <winsock2.h> 25265 #include <ws2tcpip.h> 25266 #else 25267 #include <netinet/in.h> 25268 #if defined (__TANDEM) 25269 # include <netinet/in6.h> 25270 #endif 25271 #endif 25272 25273int main(void) 25274{ 25275 25276 struct sockaddr_in6 s; 25277 s.sin6_scope_id = 0; 25278 25279 ; 25280 return 0; 25281} 25282_ACEOF 25283if ac_fn_c_try_compile "$LINENO" 25284then : 25285 25286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25287printf "%s\n" "yes" >&6; } 25288 25289printf "%s\n" "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h 25290 25291 25292else $as_nop 25293 25294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25295printf "%s\n" "no" >&6; } 25296 25297fi 25298rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25299fi 25300 25301 25302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5 25303printf %s "checking if argv can be written to... " >&6; } 25304 25305 case $host in 25306 *-apple-*) 25307 if test "$cross_compiling" = yes 25308then : 25309 curl_cv_writable_argv=cross 25310 25311else $as_nop 25312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25313/* end confdefs.h. */ 25314 25315int main(int argc, char **argv) 25316{ 25317#ifdef _WIN32 25318 /* on Windows, writing to the argv does not hide the argument in 25319 process lists so it can just be skipped */ 25320 (void)argc; 25321 (void)argv; 25322 return 1; 25323#else 25324 (void)argc; 25325 argv[0][0] = ' '; 25326 return (argv[0][0] == ' ')?0:1; 25327#endif 25328} 25329 25330_ACEOF 25331if ac_fn_c_try_run "$LINENO" 25332then : 25333 curl_cv_writable_argv=yes 25334 25335else $as_nop 25336 curl_cv_writable_argv=no 25337 25338fi 25339rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25340 conftest.$ac_objext conftest.beam conftest.$ac_ext 25341fi 25342 25343 ;; 25344 *) 25345 oldcc=$CC 25346 old=$LD_LIBRARY_PATH 25347 CC="sh ./run-compiler" 25348 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 25349 export LD_LIBRARY_PATH 25350 if test "$cross_compiling" = yes 25351then : 25352 curl_cv_writable_argv=cross 25353 25354else $as_nop 25355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25356/* end confdefs.h. */ 25357 25358int main(int argc, char **argv) 25359{ 25360#ifdef _WIN32 25361 /* on Windows, writing to the argv does not hide the argument in 25362 process lists so it can just be skipped */ 25363 (void)argc; 25364 (void)argv; 25365 return 1; 25366#else 25367 (void)argc; 25368 argv[0][0] = ' '; 25369 return (argv[0][0] == ' ')?0:1; 25370#endif 25371} 25372 25373_ACEOF 25374if ac_fn_c_try_run "$LINENO" 25375then : 25376 curl_cv_writable_argv=yes 25377 25378else $as_nop 25379 curl_cv_writable_argv=no 25380 25381fi 25382rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25383 conftest.$ac_objext conftest.beam conftest.$ac_ext 25384fi 25385 25386 LD_LIBRARY_PATH=$old # restore 25387 CC=$oldcc 25388 ;; 25389 esac 25390 25391case $curl_cv_writable_argv in 25392 yes) 25393 25394printf "%s\n" "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h 25395 25396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25397printf "%s\n" "yes" >&6; } 25398 ;; 25399 no) 25400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25401printf "%s\n" "no" >&6; } 25402 ;; 25403 *) 25404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25405printf "%s\n" "no" >&6; } 25406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5 25407printf "%s\n" "$as_me: WARNING: the previous check could not be made default was used" >&2;} 25408 ;; 25409esac 25410 25411 25412 25413GSSAPI_ROOT="/usr" 25414 25415# Check whether --with-gssapi-includes was given. 25416if test ${with_gssapi_includes+y} 25417then : 25418 withval=$with_gssapi_includes; 25419 GSSAPI_INCS="-I$withval" 25420 want_gss="yes" 25421 25422 25423fi 25424 25425 25426 25427# Check whether --with-gssapi-libs was given. 25428if test ${with_gssapi_libs+y} 25429then : 25430 withval=$with_gssapi_libs; 25431 GSSAPI_LIB_DIR="-L$withval" 25432 want_gss="yes" 25433 25434 25435fi 25436 25437 25438 25439# Check whether --with-gssapi was given. 25440if test ${with_gssapi+y} 25441then : 25442 withval=$with_gssapi; 25443 GSSAPI_ROOT="$withval" 25444 if test x"$GSSAPI_ROOT" != xno; then 25445 want_gss="yes" 25446 if test x"$GSSAPI_ROOT" = xyes; then 25447 GSSAPI_ROOT="/usr" 25448 fi 25449 fi 25450 25451 25452fi 25453 25454 25455: ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"} 25456 25457save_CPPFLAGS="$CPPFLAGS" 25458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5 25459printf %s "checking if GSS-API support is requested... " >&6; } 25460if test x"$want_gss" = xyes; then 25461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25462printf "%s\n" "yes" >&6; } 25463 25464 if test $GSSAPI_ROOT != "/usr"; then 25465 25466 if test -n "$PKG_CONFIG"; then 25467 PKGCONFIG="$PKG_CONFIG" 25468 else 25469 if test -n "$ac_tool_prefix"; then 25470 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 25471set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 25472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25473printf %s "checking for $ac_word... " >&6; } 25474if test ${ac_cv_path_PKGCONFIG+y} 25475then : 25476 printf %s "(cached) " >&6 25477else $as_nop 25478 case $PKGCONFIG in 25479 [\\/]* | ?:[\\/]*) 25480 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 25481 ;; 25482 *) 25483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25484as_dummy="$PATH:/usr/bin:/usr/local/bin" 25485for as_dir in $as_dummy 25486do 25487 IFS=$as_save_IFS 25488 case $as_dir in #((( 25489 '') as_dir=./ ;; 25490 */) ;; 25491 *) as_dir=$as_dir/ ;; 25492 esac 25493 for ac_exec_ext in '' $ac_executable_extensions; do 25494 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 25495 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 25496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 25497 break 2 25498 fi 25499done 25500 done 25501IFS=$as_save_IFS 25502 25503 ;; 25504esac 25505fi 25506PKGCONFIG=$ac_cv_path_PKGCONFIG 25507if test -n "$PKGCONFIG"; then 25508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 25509printf "%s\n" "$PKGCONFIG" >&6; } 25510else 25511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25512printf "%s\n" "no" >&6; } 25513fi 25514 25515 25516fi 25517if test -z "$ac_cv_path_PKGCONFIG"; then 25518 ac_pt_PKGCONFIG=$PKGCONFIG 25519 # Extract the first word of "pkg-config", so it can be a program name with args. 25520set dummy pkg-config; ac_word=$2 25521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25522printf %s "checking for $ac_word... " >&6; } 25523if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 25524then : 25525 printf %s "(cached) " >&6 25526else $as_nop 25527 case $ac_pt_PKGCONFIG in 25528 [\\/]* | ?:[\\/]*) 25529 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 25530 ;; 25531 *) 25532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25533as_dummy="$PATH:/usr/bin:/usr/local/bin" 25534for as_dir in $as_dummy 25535do 25536 IFS=$as_save_IFS 25537 case $as_dir in #((( 25538 '') as_dir=./ ;; 25539 */) ;; 25540 *) as_dir=$as_dir/ ;; 25541 esac 25542 for ac_exec_ext in '' $ac_executable_extensions; do 25543 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 25544 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 25545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 25546 break 2 25547 fi 25548done 25549 done 25550IFS=$as_save_IFS 25551 25552 ;; 25553esac 25554fi 25555ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 25556if test -n "$ac_pt_PKGCONFIG"; then 25557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 25558printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 25559else 25560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25561printf "%s\n" "no" >&6; } 25562fi 25563 25564 if test "x$ac_pt_PKGCONFIG" = x; then 25565 PKGCONFIG="no" 25566 else 25567 case $cross_compiling:$ac_tool_warned in 25568yes:) 25569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 25570printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 25571ac_tool_warned=yes ;; 25572esac 25573 PKGCONFIG=$ac_pt_PKGCONFIG 25574 fi 25575else 25576 PKGCONFIG="$ac_cv_path_PKGCONFIG" 25577fi 25578 25579 fi 25580 25581 if test "x$PKGCONFIG" != "xno"; then 25582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5 25583printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; } 25584 itexists=` 25585 if test -n "$GSSAPI_ROOT/lib/pkgconfig"; then 25586 PKG_CONFIG_LIBDIR="$GSSAPI_ROOT/lib/pkgconfig" 25587 export PKG_CONFIG_LIBDIR 25588 fi 25589 $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1` 25590 25591 if test -z "$itexists"; then 25592 PKGCONFIG="no" 25593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25594printf "%s\n" "no" >&6; } 25595 else 25596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 25597printf "%s\n" "found" >&6; } 25598 fi 25599 fi 25600 25601 else 25602 25603 if test -n "$PKG_CONFIG"; then 25604 PKGCONFIG="$PKG_CONFIG" 25605 else 25606 if test -n "$ac_tool_prefix"; then 25607 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 25608set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 25609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25610printf %s "checking for $ac_word... " >&6; } 25611if test ${ac_cv_path_PKGCONFIG+y} 25612then : 25613 printf %s "(cached) " >&6 25614else $as_nop 25615 case $PKGCONFIG in 25616 [\\/]* | ?:[\\/]*) 25617 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 25618 ;; 25619 *) 25620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25621as_dummy="$PATH:/usr/bin:/usr/local/bin" 25622for as_dir in $as_dummy 25623do 25624 IFS=$as_save_IFS 25625 case $as_dir in #((( 25626 '') as_dir=./ ;; 25627 */) ;; 25628 *) as_dir=$as_dir/ ;; 25629 esac 25630 for ac_exec_ext in '' $ac_executable_extensions; do 25631 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 25632 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 25633 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 25634 break 2 25635 fi 25636done 25637 done 25638IFS=$as_save_IFS 25639 25640 ;; 25641esac 25642fi 25643PKGCONFIG=$ac_cv_path_PKGCONFIG 25644if test -n "$PKGCONFIG"; then 25645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 25646printf "%s\n" "$PKGCONFIG" >&6; } 25647else 25648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25649printf "%s\n" "no" >&6; } 25650fi 25651 25652 25653fi 25654if test -z "$ac_cv_path_PKGCONFIG"; then 25655 ac_pt_PKGCONFIG=$PKGCONFIG 25656 # Extract the first word of "pkg-config", so it can be a program name with args. 25657set dummy pkg-config; ac_word=$2 25658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25659printf %s "checking for $ac_word... " >&6; } 25660if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 25661then : 25662 printf %s "(cached) " >&6 25663else $as_nop 25664 case $ac_pt_PKGCONFIG in 25665 [\\/]* | ?:[\\/]*) 25666 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 25667 ;; 25668 *) 25669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25670as_dummy="$PATH:/usr/bin:/usr/local/bin" 25671for as_dir in $as_dummy 25672do 25673 IFS=$as_save_IFS 25674 case $as_dir in #((( 25675 '') as_dir=./ ;; 25676 */) ;; 25677 *) as_dir=$as_dir/ ;; 25678 esac 25679 for ac_exec_ext in '' $ac_executable_extensions; do 25680 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 25681 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 25682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 25683 break 2 25684 fi 25685done 25686 done 25687IFS=$as_save_IFS 25688 25689 ;; 25690esac 25691fi 25692ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 25693if test -n "$ac_pt_PKGCONFIG"; then 25694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 25695printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 25696else 25697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25698printf "%s\n" "no" >&6; } 25699fi 25700 25701 if test "x$ac_pt_PKGCONFIG" = x; then 25702 PKGCONFIG="no" 25703 else 25704 case $cross_compiling:$ac_tool_warned in 25705yes:) 25706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 25707printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 25708ac_tool_warned=yes ;; 25709esac 25710 PKGCONFIG=$ac_pt_PKGCONFIG 25711 fi 25712else 25713 PKGCONFIG="$ac_cv_path_PKGCONFIG" 25714fi 25715 25716 fi 25717 25718 if test "x$PKGCONFIG" != "xno"; then 25719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5 25720printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; } 25721 itexists=` 25722 if test -n ""; then 25723 PKG_CONFIG_LIBDIR="" 25724 export PKG_CONFIG_LIBDIR 25725 fi 25726 $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1` 25727 25728 if test -z "$itexists"; then 25729 PKGCONFIG="no" 25730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25731printf "%s\n" "no" >&6; } 25732 else 25733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 25734printf "%s\n" "found" >&6; } 25735 fi 25736 fi 25737 25738 fi 25739 if test -z "$GSSAPI_INCS"; then 25740 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then 25741 GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi` 25742 elif test "$PKGCONFIG" != "no"; then 25743 GSSAPI_INCS=`$PKGCONFIG --cflags mit-krb5-gssapi` 25744 elif test -f "$KRB5CONFIG"; then 25745 GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi` 25746 elif test "$GSSAPI_ROOT" != "yes"; then 25747 GSSAPI_INCS="-I$GSSAPI_ROOT/include" 25748 fi 25749 fi 25750 25751 CPPFLAGS="$CPPFLAGS $GSSAPI_INCS" 25752 25753 ac_fn_c_check_header_compile "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default" 25754if test "x$ac_cv_header_gss_h" = xyes 25755then : 25756 25757 25758printf "%s\n" "#define HAVE_GSSGNU 1" >>confdefs.h 25759 25760 gnu_gss=yes 25761 25762else $as_nop 25763 25764 for ac_header in gssapi/gssapi.h 25765do : 25766 ac_fn_c_check_header_compile "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default" 25767if test "x$ac_cv_header_gssapi_gssapi_h" = xyes 25768then : 25769 printf "%s\n" "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h 25770 25771else $as_nop 25772 not_mit=1 25773fi 25774 25775done 25776 for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h 25777do : 25778 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh` 25779ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 25780 $ac_includes_default 25781 #ifdef HAVE_GSSAPI_GSSAPI_H 25782 #include <gssapi/gssapi.h> 25783 #endif 25784 25785" 25786if eval test \"x\$"$as_ac_Header"\" = x"yes" 25787then : 25788 cat >>confdefs.h <<_ACEOF 25789#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1 25790_ACEOF 25791 25792else $as_nop 25793 not_mit=1 25794fi 25795 25796done 25797 if test "x$not_mit" = "x1"; then 25798 ac_fn_c_check_header_compile "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" 25799if test "x$ac_cv_header_gssapi_h" = xyes 25800then : 25801 25802else $as_nop 25803 25804 want_gss=no 25805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5 25806printf "%s\n" "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;} 25807 25808 25809fi 25810 25811 else 25812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5 25813printf %s "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; } 25814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25815/* end confdefs.h. */ 25816 25817 25818 #include <gssapi/gssapi.h> 25819 #include <gssapi/gssapi_generic.h> 25820 #include <gssapi/gssapi_krb5.h> 25821 25822int main(void) 25823{ 25824 25825 gss_import_name( 25826 (OM_uint32 *)0, 25827 (gss_buffer_t)0, 25828 GSS_C_NT_HOSTBASED_SERVICE, 25829 (gss_name_t *)0); 25830 25831 ; 25832 return 0; 25833} 25834 25835_ACEOF 25836if ac_fn_c_try_compile "$LINENO" 25837then : 25838 25839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25840printf "%s\n" "yes" >&6; } 25841 25842else $as_nop 25843 25844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25845printf "%s\n" "no" >&6; } 25846 25847printf "%s\n" "#define HAVE_OLD_GSSMIT 1" >>confdefs.h 25848 25849 25850fi 25851rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25852 fi 25853 25854 25855fi 25856 25857else 25858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25859printf "%s\n" "no" >&6; } 25860fi 25861if test x"$want_gss" = xyes; then 25862 25863printf "%s\n" "#define HAVE_GSSAPI 1" >>confdefs.h 25864 25865 HAVE_GSSAPI=1 25866 curl_gss_msg="enabled (MIT Kerberos/Heimdal)" 25867 25868 if test -n "$gnu_gss"; then 25869 curl_gss_msg="enabled (GNU GSS)" 25870 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR" 25871 LIBS="-lgss $LIBS" 25872 elif test -z "$GSSAPI_LIB_DIR"; then 25873 case $host in 25874 *-apple-*) 25875 LIBS="-lgssapi_krb5 -lresolv $LIBS" 25876 ;; 25877 *) 25878 if test $GSSAPI_ROOT != "/usr"; then 25879 25880 if test -n "$PKG_CONFIG"; then 25881 PKGCONFIG="$PKG_CONFIG" 25882 else 25883 if test -n "$ac_tool_prefix"; then 25884 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 25885set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 25886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25887printf %s "checking for $ac_word... " >&6; } 25888if test ${ac_cv_path_PKGCONFIG+y} 25889then : 25890 printf %s "(cached) " >&6 25891else $as_nop 25892 case $PKGCONFIG in 25893 [\\/]* | ?:[\\/]*) 25894 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 25895 ;; 25896 *) 25897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25898as_dummy="$PATH:/usr/bin:/usr/local/bin" 25899for as_dir in $as_dummy 25900do 25901 IFS=$as_save_IFS 25902 case $as_dir in #((( 25903 '') as_dir=./ ;; 25904 */) ;; 25905 *) as_dir=$as_dir/ ;; 25906 esac 25907 for ac_exec_ext in '' $ac_executable_extensions; do 25908 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 25909 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 25910 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 25911 break 2 25912 fi 25913done 25914 done 25915IFS=$as_save_IFS 25916 25917 ;; 25918esac 25919fi 25920PKGCONFIG=$ac_cv_path_PKGCONFIG 25921if test -n "$PKGCONFIG"; then 25922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 25923printf "%s\n" "$PKGCONFIG" >&6; } 25924else 25925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25926printf "%s\n" "no" >&6; } 25927fi 25928 25929 25930fi 25931if test -z "$ac_cv_path_PKGCONFIG"; then 25932 ac_pt_PKGCONFIG=$PKGCONFIG 25933 # Extract the first word of "pkg-config", so it can be a program name with args. 25934set dummy pkg-config; ac_word=$2 25935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25936printf %s "checking for $ac_word... " >&6; } 25937if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 25938then : 25939 printf %s "(cached) " >&6 25940else $as_nop 25941 case $ac_pt_PKGCONFIG in 25942 [\\/]* | ?:[\\/]*) 25943 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 25944 ;; 25945 *) 25946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25947as_dummy="$PATH:/usr/bin:/usr/local/bin" 25948for as_dir in $as_dummy 25949do 25950 IFS=$as_save_IFS 25951 case $as_dir in #((( 25952 '') as_dir=./ ;; 25953 */) ;; 25954 *) as_dir=$as_dir/ ;; 25955 esac 25956 for ac_exec_ext in '' $ac_executable_extensions; do 25957 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 25958 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 25959 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 25960 break 2 25961 fi 25962done 25963 done 25964IFS=$as_save_IFS 25965 25966 ;; 25967esac 25968fi 25969ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 25970if test -n "$ac_pt_PKGCONFIG"; then 25971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 25972printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 25973else 25974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25975printf "%s\n" "no" >&6; } 25976fi 25977 25978 if test "x$ac_pt_PKGCONFIG" = x; then 25979 PKGCONFIG="no" 25980 else 25981 case $cross_compiling:$ac_tool_warned in 25982yes:) 25983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 25984printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 25985ac_tool_warned=yes ;; 25986esac 25987 PKGCONFIG=$ac_pt_PKGCONFIG 25988 fi 25989else 25990 PKGCONFIG="$ac_cv_path_PKGCONFIG" 25991fi 25992 25993 fi 25994 25995 if test "x$PKGCONFIG" != "xno"; then 25996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5 25997printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; } 25998 itexists=` 25999 if test -n "$GSSAPI_ROOT/lib/pkgconfig"; then 26000 PKG_CONFIG_LIBDIR="$GSSAPI_ROOT/lib/pkgconfig" 26001 export PKG_CONFIG_LIBDIR 26002 fi 26003 $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1` 26004 26005 if test -z "$itexists"; then 26006 PKGCONFIG="no" 26007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26008printf "%s\n" "no" >&6; } 26009 else 26010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 26011printf "%s\n" "found" >&6; } 26012 fi 26013 fi 26014 26015 else 26016 26017 if test -n "$PKG_CONFIG"; then 26018 PKGCONFIG="$PKG_CONFIG" 26019 else 26020 if test -n "$ac_tool_prefix"; then 26021 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 26022set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 26023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26024printf %s "checking for $ac_word... " >&6; } 26025if test ${ac_cv_path_PKGCONFIG+y} 26026then : 26027 printf %s "(cached) " >&6 26028else $as_nop 26029 case $PKGCONFIG in 26030 [\\/]* | ?:[\\/]*) 26031 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 26032 ;; 26033 *) 26034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26035as_dummy="$PATH:/usr/bin:/usr/local/bin" 26036for as_dir in $as_dummy 26037do 26038 IFS=$as_save_IFS 26039 case $as_dir in #((( 26040 '') as_dir=./ ;; 26041 */) ;; 26042 *) as_dir=$as_dir/ ;; 26043 esac 26044 for ac_exec_ext in '' $ac_executable_extensions; do 26045 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 26046 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 26047 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 26048 break 2 26049 fi 26050done 26051 done 26052IFS=$as_save_IFS 26053 26054 ;; 26055esac 26056fi 26057PKGCONFIG=$ac_cv_path_PKGCONFIG 26058if test -n "$PKGCONFIG"; then 26059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 26060printf "%s\n" "$PKGCONFIG" >&6; } 26061else 26062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26063printf "%s\n" "no" >&6; } 26064fi 26065 26066 26067fi 26068if test -z "$ac_cv_path_PKGCONFIG"; then 26069 ac_pt_PKGCONFIG=$PKGCONFIG 26070 # Extract the first word of "pkg-config", so it can be a program name with args. 26071set dummy pkg-config; ac_word=$2 26072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26073printf %s "checking for $ac_word... " >&6; } 26074if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 26075then : 26076 printf %s "(cached) " >&6 26077else $as_nop 26078 case $ac_pt_PKGCONFIG in 26079 [\\/]* | ?:[\\/]*) 26080 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 26081 ;; 26082 *) 26083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26084as_dummy="$PATH:/usr/bin:/usr/local/bin" 26085for as_dir in $as_dummy 26086do 26087 IFS=$as_save_IFS 26088 case $as_dir in #((( 26089 '') as_dir=./ ;; 26090 */) ;; 26091 *) as_dir=$as_dir/ ;; 26092 esac 26093 for ac_exec_ext in '' $ac_executable_extensions; do 26094 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 26095 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 26096 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 26097 break 2 26098 fi 26099done 26100 done 26101IFS=$as_save_IFS 26102 26103 ;; 26104esac 26105fi 26106ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 26107if test -n "$ac_pt_PKGCONFIG"; then 26108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 26109printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 26110else 26111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26112printf "%s\n" "no" >&6; } 26113fi 26114 26115 if test "x$ac_pt_PKGCONFIG" = x; then 26116 PKGCONFIG="no" 26117 else 26118 case $cross_compiling:$ac_tool_warned in 26119yes:) 26120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 26121printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 26122ac_tool_warned=yes ;; 26123esac 26124 PKGCONFIG=$ac_pt_PKGCONFIG 26125 fi 26126else 26127 PKGCONFIG="$ac_cv_path_PKGCONFIG" 26128fi 26129 26130 fi 26131 26132 if test "x$PKGCONFIG" != "xno"; then 26133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5 26134printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; } 26135 itexists=` 26136 if test -n ""; then 26137 PKG_CONFIG_LIBDIR="" 26138 export PKG_CONFIG_LIBDIR 26139 fi 26140 $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1` 26141 26142 if test -z "$itexists"; then 26143 PKGCONFIG="no" 26144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26145printf "%s\n" "no" >&6; } 26146 else 26147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 26148printf "%s\n" "found" >&6; } 26149 fi 26150 fi 26151 26152 fi 26153 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then 26154 gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi` 26155 LIBS="$gss_libs $LIBS" 26156 elif test "$PKGCONFIG" != "no"; then 26157 gss_libs=`$PKGCONFIG --libs mit-krb5-gssapi` 26158 LIBS="$gss_libs $LIBS" 26159 elif test -f "$KRB5CONFIG"; then 26160 gss_libs=`$KRB5CONFIG --libs gssapi` 26161 LIBS="$gss_libs $LIBS" 26162 else 26163 case $host in 26164 *-hp-hpux*) 26165 gss_libname="gss" 26166 ;; 26167 *) 26168 gss_libname="gssapi" 26169 ;; 26170 esac 26171 26172 if test "$GSSAPI_ROOT" != "yes"; then 26173 LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff" 26174 LIBS="-l$gss_libname $LIBS" 26175 else 26176 LIBS="-l$gss_libname $LIBS" 26177 fi 26178 fi 26179 ;; 26180 esac 26181 else 26182 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR" 26183 case $host in 26184 *-hp-hpux*) 26185 LIBS="-lgss $LIBS" 26186 ;; 26187 *) 26188 LIBS="-lgssapi $LIBS" 26189 ;; 26190 esac 26191 fi 26192 if test -n "$gnu_gss"; then 26193 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE gss" 26194 elif test "x$not_mit" = "x1"; then 26195 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE heimdal-gssapi" 26196 else 26197 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE mit-krb5-gssapi" 26198 fi 26199else 26200 CPPFLAGS="$save_CPPFLAGS" 26201fi 26202 26203if test x"$want_gss" = xyes; then 26204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can link against GSS-API library" >&5 26205printf %s "checking if we can link against GSS-API library... " >&6; } 26206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26207/* end confdefs.h. */ 26208 26209 26210#define gss_init_sec_context innocuous_gss_init_sec_context 26211#ifdef __STDC__ 26212# include <limits.h> 26213#else 26214# include <assert.h> 26215#endif 26216#undef gss_init_sec_context 26217#ifdef __cplusplus 26218extern "C" 26219#endif 26220char gss_init_sec_context (); 26221#if defined __stub_gss_init_sec_context || defined __stub___gss_init_sec_context 26222#error force compilation error 26223#endif 26224 26225int main(void) 26226{ 26227return gss_init_sec_context (); 26228 ; 26229 return 0; 26230} 26231 26232_ACEOF 26233if ac_fn_c_try_link "$LINENO" 26234then : 26235 26236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26237printf "%s\n" "yes" >&6; } 26238 26239else $as_nop 26240 26241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26242printf "%s\n" "no" >&6; } 26243 as_fn_error $? "--with-gssapi was specified, but a GSS-API library was not found." "$LINENO" 5 26244 26245fi 26246rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26247 conftest$ac_exeext conftest.$ac_ext 26248fi 26249 26250build_libstubgss=no 26251if test x"$want_gss" = "xyes"; then 26252 build_libstubgss=yes 26253fi 26254 26255 if test "x$build_libstubgss" = "xyes"; then 26256 BUILD_STUB_GSS_TRUE= 26257 BUILD_STUB_GSS_FALSE='#' 26258else 26259 BUILD_STUB_GSS_TRUE='#' 26260 BUILD_STUB_GSS_FALSE= 26261fi 26262 26263 26264 26265DEFAULT_SSL_BACKEND=no 26266VALID_DEFAULT_SSL_BACKEND= 26267 26268# Check whether --with-default-ssl-backend was given. 26269if test ${with_default_ssl_backend+y} 26270then : 26271 withval=$with_default_ssl_backend; DEFAULT_SSL_BACKEND=$withval 26272fi 26273 26274case "$DEFAULT_SSL_BACKEND" in 26275 no) 26276 ;; 26277 default|yes) 26278 as_fn_error $? "The name of the default SSL backend is required." "$LINENO" 5 26279 ;; 26280 *) 26281 26282 VALID_DEFAULT_SSL_BACKEND=no 26283 ;; 26284esac 26285 26286 26287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS" >&5 26288printf %s "checking whether to enable Windows native SSL/TLS... " >&6; } 26289if test "x$OPT_SCHANNEL" != xno; then 26290 ssl_msg= 26291 if test "x$OPT_SCHANNEL" != "xno" && 26292 test "x$curl_cv_native_windows" = "xyes"; then 26293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26294printf "%s\n" "yes" >&6; } 26295 26296printf "%s\n" "#define USE_SCHANNEL 1" >>confdefs.h 26297 26298 USE_SCHANNEL=1 26299 26300 ssl_msg="Schannel" 26301 test schannel != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 26302 SCHANNEL_ENABLED=1 26303 # --with-schannel implies --enable-sspi 26304 26305printf "%s\n" "#define USE_WINDOWS_SSPI 1" >>confdefs.h 26306 26307 USE_WINDOWS_SSPI=1 26308 26309 curl_sspi_msg="enabled" 26310 else 26311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26312printf "%s\n" "no" >&6; } 26313 fi 26314 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg" 26315else 26316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26317printf "%s\n" "no" >&6; } 26318fi 26319 26320 26321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Secure Transport" >&5 26322printf %s "checking whether to enable Secure Transport... " >&6; } 26323if test "x$OPT_SECURETRANSPORT" != xno; then 26324 if test "x$OPT_SECURETRANSPORT" != "xno" && 26325 (test "x$cross_compiling" != "xno" || test -d "/System/Library/Frameworks/Security.framework"); then 26326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26327printf "%s\n" "yes" >&6; } 26328 26329printf "%s\n" "#define USE_SECTRANSP 1" >>confdefs.h 26330 26331 USE_SECTRANSP=1 26332 26333 ssl_msg="Secure Transport" 26334 test secure-transport != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 26335 SECURETRANSPORT_ENABLED=1 26336 LDFLAGS="$LDFLAGS -framework CoreFoundation -framework CoreServices -framework Security" 26337 else 26338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26339printf "%s\n" "no" >&6; } 26340 fi 26341 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg" 26342else 26343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26344printf "%s\n" "no" >&6; } 26345fi 26346 26347 26348 26349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Amiga native SSL/TLS (AmiSSL v5)" >&5 26350printf %s "checking whether to enable Amiga native SSL/TLS (AmiSSL v5)... " >&6; } 26351if test "$HAVE_PROTO_BSDSOCKET_H" = "1"; then 26352 if test "x$OPT_AMISSL" != xno; then 26353 ssl_msg= 26354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26355/* end confdefs.h. */ 26356 26357 26358 #include <libraries/amisslmaster.h> 26359 #include <openssl/opensslv.h> 26360 26361int main(void) 26362{ 26363 26364 #if defined(AMISSL_CURRENT_VERSION) && defined(AMISSL_V3xx) && \ 26365 (OPENSSL_VERSION_NUMBER >= 0x30000000L) && \ 26366 defined(PROTO_AMISSL_H) 26367 return 0; 26368 #else 26369 #error not AmiSSL v5 / OpenSSL 3 26370 #endif 26371 26372 ; 26373 return 0; 26374} 26375 26376_ACEOF 26377if ac_fn_c_try_compile "$LINENO" 26378then : 26379 26380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26381printf "%s\n" "yes" >&6; } 26382 ssl_msg="AmiSSL" 26383 test amissl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 26384 AMISSL_ENABLED=1 26385 OPENSSL_ENABLED=1 26386 # Use AmiSSL's built-in ca bundle 26387 check_for_ca_bundle=1 26388 with_ca_fallback=yes 26389 LIBS="-lamisslstubs -lamisslauto $LIBS" 26390 26391printf "%s\n" "#define USE_AMISSL 1" >>confdefs.h 26392 26393 26394printf "%s\n" "#define USE_OPENSSL 1" >>confdefs.h 26395 26396 ac_fn_c_check_header_compile "$LINENO" "openssl/x509.h" "ac_cv_header_openssl_x509_h" "$ac_includes_default" 26397if test "x$ac_cv_header_openssl_x509_h" = xyes 26398then : 26399 printf "%s\n" "#define HAVE_OPENSSL_X509_H 1" >>confdefs.h 26400 26401fi 26402ac_fn_c_check_header_compile "$LINENO" "openssl/rsa.h" "ac_cv_header_openssl_rsa_h" "$ac_includes_default" 26403if test "x$ac_cv_header_openssl_rsa_h" = xyes 26404then : 26405 printf "%s\n" "#define HAVE_OPENSSL_RSA_H 1" >>confdefs.h 26406 26407fi 26408ac_fn_c_check_header_compile "$LINENO" "openssl/crypto.h" "ac_cv_header_openssl_crypto_h" "$ac_includes_default" 26409if test "x$ac_cv_header_openssl_crypto_h" = xyes 26410then : 26411 printf "%s\n" "#define HAVE_OPENSSL_CRYPTO_H 1" >>confdefs.h 26412 26413fi 26414ac_fn_c_check_header_compile "$LINENO" "openssl/pem.h" "ac_cv_header_openssl_pem_h" "$ac_includes_default" 26415if test "x$ac_cv_header_openssl_pem_h" = xyes 26416then : 26417 printf "%s\n" "#define HAVE_OPENSSL_PEM_H 1" >>confdefs.h 26418 26419fi 26420ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default" 26421if test "x$ac_cv_header_openssl_ssl_h" = xyes 26422then : 26423 printf "%s\n" "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h 26424 26425fi 26426ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default" 26427if test "x$ac_cv_header_openssl_err_h" = xyes 26428then : 26429 printf "%s\n" "#define HAVE_OPENSSL_ERR_H 1" >>confdefs.h 26430 26431fi 26432 26433 26434else $as_nop 26435 26436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26437printf "%s\n" "no" >&6; } 26438 26439fi 26440rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26441 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg" 26442 else 26443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26444printf "%s\n" "no" >&6; } 26445 fi 26446else 26447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26448printf "%s\n" "no" >&6; } 26449fi 26450 26451 26452 26453if test "x$OPT_OPENSSL" != xno; then 26454 ssl_msg= 26455 26456 CLEANLDFLAGS="$LDFLAGS" 26457 CLEANCPPFLAGS="$CPPFLAGS" 26458 CLEANLIBS="$LIBS" 26459 26460 case $host in 26461 *-*-msys* | *-*-mingw*) 26462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5 26463printf %s "checking for gdi32... " >&6; } 26464 my_ac_save_LIBS=$LIBS 26465 LIBS="-lgdi32 $LIBS" 26466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26467/* end confdefs.h. */ 26468 26469 #include <windef.h> 26470 #include <wingdi.h> 26471 26472int main(void) 26473{ 26474 26475 GdiFlush(); 26476 26477 ; 26478 return 0; 26479} 26480_ACEOF 26481if ac_fn_c_try_link "$LINENO" 26482then : 26483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26484printf "%s\n" "yes" >&6; } 26485else $as_nop 26486 LIBS=$my_ac_save_LIBS 26487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26488printf "%s\n" "no" >&6; } 26489 26490fi 26491rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26492 conftest$ac_exeext conftest.$ac_ext 26493 ;; 26494 esac 26495 26496 case "$OPT_OPENSSL" in 26497 yes) 26498 PKGTEST="yes" 26499 PREFIX_OPENSSL= 26500 ;; 26501 *) 26502 PKGTEST="no" 26503 PREFIX_OPENSSL=$OPT_OPENSSL 26504 26505 OPENSSL_PCDIR="$OPT_OPENSSL/lib/pkgconfig" 26506 if test -f "$OPENSSL_PCDIR/openssl.pc"; then 26507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5 26508printf "%s\n" "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;} 26509 PKGTEST="yes" 26510 fi 26511 26512 if test "$PKGTEST" != "yes"; then 26513 # try lib64 instead 26514 OPENSSL_PCDIR="$OPT_OPENSSL/lib64/pkgconfig" 26515 if test -f "$OPENSSL_PCDIR/openssl.pc"; then 26516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5 26517printf "%s\n" "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;} 26518 PKGTEST="yes" 26519 fi 26520 fi 26521 26522 if test "$PKGTEST" != "yes"; then 26523 if test ! -f "$PREFIX_OPENSSL/include/openssl/ssl.h"; then 26524 as_fn_error $? "$PREFIX_OPENSSL is a bad --with-openssl prefix!" "$LINENO" 5 26525 fi 26526 fi 26527 26528 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff" 26529 if test "$PREFIX_OPENSSL" != "/usr" ; then 26530 SSL_LDFLAGS="-L$LIB_OPENSSL" 26531 SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include" 26532 fi 26533 ;; 26534 esac 26535 26536 if test "$PKGTEST" = "yes"; then 26537 26538 26539 if test -n "$PKG_CONFIG"; then 26540 PKGCONFIG="$PKG_CONFIG" 26541 else 26542 if test -n "$ac_tool_prefix"; then 26543 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 26544set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 26545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26546printf %s "checking for $ac_word... " >&6; } 26547if test ${ac_cv_path_PKGCONFIG+y} 26548then : 26549 printf %s "(cached) " >&6 26550else $as_nop 26551 case $PKGCONFIG in 26552 [\\/]* | ?:[\\/]*) 26553 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 26554 ;; 26555 *) 26556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26557as_dummy="$PATH:/usr/bin:/usr/local/bin" 26558for as_dir in $as_dummy 26559do 26560 IFS=$as_save_IFS 26561 case $as_dir in #((( 26562 '') as_dir=./ ;; 26563 */) ;; 26564 *) as_dir=$as_dir/ ;; 26565 esac 26566 for ac_exec_ext in '' $ac_executable_extensions; do 26567 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 26568 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 26569 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 26570 break 2 26571 fi 26572done 26573 done 26574IFS=$as_save_IFS 26575 26576 ;; 26577esac 26578fi 26579PKGCONFIG=$ac_cv_path_PKGCONFIG 26580if test -n "$PKGCONFIG"; then 26581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 26582printf "%s\n" "$PKGCONFIG" >&6; } 26583else 26584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26585printf "%s\n" "no" >&6; } 26586fi 26587 26588 26589fi 26590if test -z "$ac_cv_path_PKGCONFIG"; then 26591 ac_pt_PKGCONFIG=$PKGCONFIG 26592 # Extract the first word of "pkg-config", so it can be a program name with args. 26593set dummy pkg-config; ac_word=$2 26594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26595printf %s "checking for $ac_word... " >&6; } 26596if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 26597then : 26598 printf %s "(cached) " >&6 26599else $as_nop 26600 case $ac_pt_PKGCONFIG in 26601 [\\/]* | ?:[\\/]*) 26602 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 26603 ;; 26604 *) 26605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26606as_dummy="$PATH:/usr/bin:/usr/local/bin" 26607for as_dir in $as_dummy 26608do 26609 IFS=$as_save_IFS 26610 case $as_dir in #((( 26611 '') as_dir=./ ;; 26612 */) ;; 26613 *) as_dir=$as_dir/ ;; 26614 esac 26615 for ac_exec_ext in '' $ac_executable_extensions; do 26616 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 26617 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 26618 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 26619 break 2 26620 fi 26621done 26622 done 26623IFS=$as_save_IFS 26624 26625 ;; 26626esac 26627fi 26628ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 26629if test -n "$ac_pt_PKGCONFIG"; then 26630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 26631printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 26632else 26633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26634printf "%s\n" "no" >&6; } 26635fi 26636 26637 if test "x$ac_pt_PKGCONFIG" = x; then 26638 PKGCONFIG="no" 26639 else 26640 case $cross_compiling:$ac_tool_warned in 26641yes:) 26642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 26643printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 26644ac_tool_warned=yes ;; 26645esac 26646 PKGCONFIG=$ac_pt_PKGCONFIG 26647 fi 26648else 26649 PKGCONFIG="$ac_cv_path_PKGCONFIG" 26650fi 26651 26652 fi 26653 26654 if test "x$PKGCONFIG" != "xno"; then 26655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5 26656printf %s "checking for openssl options with pkg-config... " >&6; } 26657 itexists=` 26658 if test -n "$OPENSSL_PCDIR"; then 26659 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR" 26660 export PKG_CONFIG_LIBDIR 26661 fi 26662 $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1` 26663 26664 if test -z "$itexists"; then 26665 PKGCONFIG="no" 26666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26667printf "%s\n" "no" >&6; } 26668 else 26669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 26670printf "%s\n" "found" >&6; } 26671 fi 26672 fi 26673 26674 26675 if test "$PKGCONFIG" != "no" ; then 26676 SSL_LIBS=` 26677 if test -n "$OPENSSL_PCDIR"; then 26678 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR" 26679 export PKG_CONFIG_LIBDIR 26680 fi 26681 $PKGCONFIG --libs-only-l --libs-only-other openssl 2>/dev/null` 26682 26683 SSL_LDFLAGS=` 26684 if test -n "$OPENSSL_PCDIR"; then 26685 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR" 26686 export PKG_CONFIG_LIBDIR 26687 fi 26688 $PKGCONFIG --libs-only-L openssl 2>/dev/null` 26689 26690 SSL_CPPFLAGS=` 26691 if test -n "$OPENSSL_PCDIR"; then 26692 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR" 26693 export PKG_CONFIG_LIBDIR 26694 fi 26695 $PKGCONFIG --cflags-only-I openssl 2>/dev/null` 26696 26697 26698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5 26699printf "%s\n" "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;} 26700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5 26701printf "%s\n" "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;} 26702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5 26703printf "%s\n" "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;} 26704 26705 LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/^-L//'` 26706 26707 LIBS="$SSL_LIBS $LIBS" 26708 fi 26709 fi 26710 26711 CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS" 26712 LDFLAGS="$LDFLAGS $SSL_LDFLAGS" 26713 26714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5 26715printf %s "checking for HMAC_Update in -lcrypto... " >&6; } 26716if test ${ac_cv_lib_crypto_HMAC_Update+y} 26717then : 26718 printf %s "(cached) " >&6 26719else $as_nop 26720 ac_check_lib_save_LIBS=$LIBS 26721LIBS="-lcrypto $LIBS" 26722cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26723/* end confdefs.h. */ 26724 26725 26726#ifdef __cplusplus 26727extern "C" 26728#endif 26729char HMAC_Update (); 26730int main(void) 26731{ 26732return HMAC_Update (); 26733 ; 26734 return 0; 26735} 26736_ACEOF 26737if ac_fn_c_try_link "$LINENO" 26738then : 26739 ac_cv_lib_crypto_HMAC_Update=yes 26740else $as_nop 26741 ac_cv_lib_crypto_HMAC_Update=no 26742fi 26743rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26744 conftest$ac_exeext conftest.$ac_ext 26745LIBS=$ac_check_lib_save_LIBS 26746fi 26747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5 26748printf "%s\n" "$ac_cv_lib_crypto_HMAC_Update" >&6; } 26749if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes 26750then : 26751 26752 HAVECRYPTO="yes" 26753 LIBS="-lcrypto $LIBS" 26754 26755else $as_nop 26756 26757 if test -n "$LIB_OPENSSL" ; then 26758 LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL" 26759 fi 26760 if test "$PKGCONFIG" = "no" -a -n "$PREFIX_OPENSSL" ; then 26761 # only set this if pkg-config wasn't used 26762 CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include" 26763 fi 26764 # Linking previously failed, try extra paths from --with-openssl or 26765 # pkg-config. Use a different function name to avoid reusing the earlier 26766 # cached result. 26767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5 26768printf %s "checking for HMAC_Init_ex in -lcrypto... " >&6; } 26769if test ${ac_cv_lib_crypto_HMAC_Init_ex+y} 26770then : 26771 printf %s "(cached) " >&6 26772else $as_nop 26773 ac_check_lib_save_LIBS=$LIBS 26774LIBS="-lcrypto $LIBS" 26775cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26776/* end confdefs.h. */ 26777 26778 26779#ifdef __cplusplus 26780extern "C" 26781#endif 26782char HMAC_Init_ex (); 26783int main(void) 26784{ 26785return HMAC_Init_ex (); 26786 ; 26787 return 0; 26788} 26789_ACEOF 26790if ac_fn_c_try_link "$LINENO" 26791then : 26792 ac_cv_lib_crypto_HMAC_Init_ex=yes 26793else $as_nop 26794 ac_cv_lib_crypto_HMAC_Init_ex=no 26795fi 26796rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26797 conftest$ac_exeext conftest.$ac_ext 26798LIBS=$ac_check_lib_save_LIBS 26799fi 26800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5 26801printf "%s\n" "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; } 26802if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes 26803then : 26804 26805 HAVECRYPTO="yes" 26806 LIBS="-lcrypto $LIBS" 26807else $as_nop 26808 26809 26810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5 26811printf %s "checking OpenSSL linking with -ldl... " >&6; } 26812 LIBS="-lcrypto $CLEANLIBS -ldl" 26813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26814/* end confdefs.h. */ 26815 26816 #include <openssl/err.h> 26817 26818int main(void) 26819{ 26820 26821 ERR_clear_error(); 26822 26823 ; 26824 return 0; 26825} 26826_ACEOF 26827if ac_fn_c_try_link "$LINENO" 26828then : 26829 26830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26831printf "%s\n" "yes" >&6; } 26832 HAVECRYPTO="yes" 26833 26834else $as_nop 26835 26836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26837printf "%s\n" "no" >&6; } 26838 26839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5 26840printf %s "checking OpenSSL linking with -ldl and -lpthread... " >&6; } 26841 LIBS="-lcrypto $CLEANLIBS -ldl -lpthread" 26842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26843/* end confdefs.h. */ 26844 26845 26846 #include <openssl/err.h> 26847 26848int main(void) 26849{ 26850 26851 ERR_clear_error(); 26852 26853 ; 26854 return 0; 26855} 26856_ACEOF 26857if ac_fn_c_try_link "$LINENO" 26858then : 26859 26860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26861printf "%s\n" "yes" >&6; } 26862 HAVECRYPTO="yes" 26863 26864else $as_nop 26865 26866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26867printf "%s\n" "no" >&6; } 26868 LDFLAGS="$CLEANLDFLAGS" 26869 CPPFLAGS="$CLEANCPPFLAGS" 26870 LIBS="$CLEANLIBS" 26871 26872fi 26873rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26874 conftest$ac_exeext conftest.$ac_ext 26875 26876fi 26877rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26878 conftest$ac_exeext conftest.$ac_ext 26879 26880fi 26881 26882 26883fi 26884 26885 26886 if test X"$HAVECRYPTO" = X"yes"; then 26887 26888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5 26889printf %s "checking for SSL_connect in -lssl... " >&6; } 26890if test ${ac_cv_lib_ssl_SSL_connect+y} 26891then : 26892 printf %s "(cached) " >&6 26893else $as_nop 26894 ac_check_lib_save_LIBS=$LIBS 26895LIBS="-lssl $LIBS" 26896cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26897/* end confdefs.h. */ 26898 26899 26900#ifdef __cplusplus 26901extern "C" 26902#endif 26903char SSL_connect (); 26904int main(void) 26905{ 26906return SSL_connect (); 26907 ; 26908 return 0; 26909} 26910_ACEOF 26911if ac_fn_c_try_link "$LINENO" 26912then : 26913 ac_cv_lib_ssl_SSL_connect=yes 26914else $as_nop 26915 ac_cv_lib_ssl_SSL_connect=no 26916fi 26917rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26918 conftest$ac_exeext conftest.$ac_ext 26919LIBS=$ac_check_lib_save_LIBS 26920fi 26921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5 26922printf "%s\n" "$ac_cv_lib_ssl_SSL_connect" >&6; } 26923if test "x$ac_cv_lib_ssl_SSL_connect" = xyes 26924then : 26925 printf "%s\n" "#define HAVE_LIBSSL 1" >>confdefs.h 26926 26927 LIBS="-lssl $LIBS" 26928 26929fi 26930 26931 26932 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then 26933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5 26934printf %s "checking for ssl with RSAglue/rsaref libs in use... " >&6; }; 26935 OLIBS=$LIBS 26936 LIBS="-lRSAglue -lrsaref $LIBS" 26937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5 26938printf %s "checking for SSL_connect in -lssl... " >&6; } 26939if test ${ac_cv_lib_ssl_SSL_connect+y} 26940then : 26941 printf %s "(cached) " >&6 26942else $as_nop 26943 ac_check_lib_save_LIBS=$LIBS 26944LIBS="-lssl $LIBS" 26945cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26946/* end confdefs.h. */ 26947 26948 26949#ifdef __cplusplus 26950extern "C" 26951#endif 26952char SSL_connect (); 26953int main(void) 26954{ 26955return SSL_connect (); 26956 ; 26957 return 0; 26958} 26959_ACEOF 26960if ac_fn_c_try_link "$LINENO" 26961then : 26962 ac_cv_lib_ssl_SSL_connect=yes 26963else $as_nop 26964 ac_cv_lib_ssl_SSL_connect=no 26965fi 26966rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26967 conftest$ac_exeext conftest.$ac_ext 26968LIBS=$ac_check_lib_save_LIBS 26969fi 26970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5 26971printf "%s\n" "$ac_cv_lib_ssl_SSL_connect" >&6; } 26972if test "x$ac_cv_lib_ssl_SSL_connect" = xyes 26973then : 26974 printf "%s\n" "#define HAVE_LIBSSL 1" >>confdefs.h 26975 26976 LIBS="-lssl $LIBS" 26977 26978fi 26979 26980 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then 26981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26982printf "%s\n" "no" >&6; } 26983 LIBS=$OLIBS 26984 else 26985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26986printf "%s\n" "yes" >&6; } 26987 fi 26988 26989 else 26990 26991 for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h openssl/pem.h openssl/ssl.h openssl/err.h 26992do : 26993 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh` 26994ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 26995if eval test \"x\$"$as_ac_Header"\" = x"yes" 26996then : 26997 cat >>confdefs.h <<_ACEOF 26998#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1 26999_ACEOF 27000 ssl_msg="OpenSSL" 27001 test openssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 27002 OPENSSL_ENABLED=1 27003 27004printf "%s\n" "#define USE_OPENSSL 1" >>confdefs.h 27005 27006fi 27007 27008done 27009 27010 if test $ac_cv_header_openssl_x509_h = no; then 27011 ac_fn_c_check_header_compile "$LINENO" "x509.h" "ac_cv_header_x509_h" "$ac_includes_default" 27012if test "x$ac_cv_header_x509_h" = xyes 27013then : 27014 printf "%s\n" "#define HAVE_X509_H 1" >>confdefs.h 27015 27016fi 27017ac_fn_c_check_header_compile "$LINENO" "rsa.h" "ac_cv_header_rsa_h" "$ac_includes_default" 27018if test "x$ac_cv_header_rsa_h" = xyes 27019then : 27020 printf "%s\n" "#define HAVE_RSA_H 1" >>confdefs.h 27021 27022fi 27023ac_fn_c_check_header_compile "$LINENO" "crypto.h" "ac_cv_header_crypto_h" "$ac_includes_default" 27024if test "x$ac_cv_header_crypto_h" = xyes 27025then : 27026 printf "%s\n" "#define HAVE_CRYPTO_H 1" >>confdefs.h 27027 27028fi 27029ac_fn_c_check_header_compile "$LINENO" "pem.h" "ac_cv_header_pem_h" "$ac_includes_default" 27030if test "x$ac_cv_header_pem_h" = xyes 27031then : 27032 printf "%s\n" "#define HAVE_PEM_H 1" >>confdefs.h 27033 27034fi 27035ac_fn_c_check_header_compile "$LINENO" "ssl.h" "ac_cv_header_ssl_h" "$ac_includes_default" 27036if test "x$ac_cv_header_ssl_h" = xyes 27037then : 27038 printf "%s\n" "#define HAVE_SSL_H 1" >>confdefs.h 27039 27040fi 27041ac_fn_c_check_header_compile "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default" 27042if test "x$ac_cv_header_err_h" = xyes 27043then : 27044 printf "%s\n" "#define HAVE_ERR_H 1" >>confdefs.h 27045 27046fi 27047 27048 27049 if test $ac_cv_header_x509_h = yes && 27050 test $ac_cv_header_crypto_h = yes && 27051 test $ac_cv_header_ssl_h = yes; then 27052 ssl_msg="OpenSSL" 27053 OPENSSL_ENABLED=1 27054 fi 27055 fi 27056 fi 27057 27058 if test X"$OPENSSL_ENABLED" != X"1"; then 27059 LIBS="$CLEANLIBS" 27060 fi 27061 27062 if test X"$OPT_OPENSSL" != Xoff && 27063 test "$OPENSSL_ENABLED" != "1"; then 27064 as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5 27065 fi 27066 fi 27067 27068 if test X"$OPENSSL_ENABLED" = X"1"; then 27069 27070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5 27071printf %s "checking for BoringSSL... " >&6; } 27072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27073/* end confdefs.h. */ 27074 27075 27076 #include <openssl/base.h> 27077 27078int main(void) 27079{ 27080 27081 #ifndef OPENSSL_IS_BORINGSSL 27082 #error not boringssl 27083 #endif 27084 27085 ; 27086 return 0; 27087} 27088 27089_ACEOF 27090if ac_fn_c_try_compile "$LINENO" 27091then : 27092 27093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27094printf "%s\n" "yes" >&6; } 27095 ssl_msg="BoringSSL" 27096 OPENSSL_IS_BORINGSSL=1 27097 27098else $as_nop 27099 27100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27101printf "%s\n" "no" >&6; } 27102 27103fi 27104rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 27105 27106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AWS-LC" >&5 27107printf %s "checking for AWS-LC... " >&6; } 27108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27109/* end confdefs.h. */ 27110 27111 27112 #include <openssl/base.h> 27113 27114int main(void) 27115{ 27116 27117 #ifndef OPENSSL_IS_AWSLC 27118 #error not AWS-LC 27119 #endif 27120 27121 ; 27122 return 0; 27123} 27124 27125_ACEOF 27126if ac_fn_c_try_compile "$LINENO" 27127then : 27128 27129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27130printf "%s\n" "yes" >&6; } 27131 ssl_msg="AWS-LC" 27132 OPENSSL_IS_BORINGSSL=1 27133 27134else $as_nop 27135 27136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27137printf "%s\n" "no" >&6; } 27138 27139fi 27140rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 27141 27142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LibreSSL" >&5 27143printf %s "checking for LibreSSL... " >&6; } 27144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27145/* end confdefs.h. */ 27146 27147 27148 #include <openssl/opensslv.h> 27149 27150int main(void) 27151{ 27152 27153 int dummy = LIBRESSL_VERSION_NUMBER; 27154 27155 ; 27156 return 0; 27157} 27158 27159_ACEOF 27160if ac_fn_c_try_compile "$LINENO" 27161then : 27162 27163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27164printf "%s\n" "yes" >&6; } 27165 27166printf "%s\n" "#define HAVE_LIBRESSL 1" >>confdefs.h 27167 27168 ssl_msg="LibreSSL" 27169 27170else $as_nop 27171 27172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27173printf "%s\n" "no" >&6; } 27174 27175fi 27176rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 27177 27178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL >= v3" >&5 27179printf %s "checking for OpenSSL >= v3... " >&6; } 27180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27181/* end confdefs.h. */ 27182 27183 27184 #include <openssl/opensslv.h> 27185 27186int main(void) 27187{ 27188 27189 #if (OPENSSL_VERSION_NUMBER >= 0x30000000L) 27190 return 0; 27191 #else 27192 #error older than 3 27193 #endif 27194 27195 ; 27196 return 0; 27197} 27198 27199_ACEOF 27200if ac_fn_c_try_compile "$LINENO" 27201then : 27202 27203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27204printf "%s\n" "yes" >&6; } 27205 ssl_msg="OpenSSL v3+" 27206 27207else $as_nop 27208 27209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27210printf "%s\n" "no" >&6; } 27211 27212fi 27213rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 27214 fi 27215 27216 27217 for ac_func in SSL_set_quic_use_legacy_codepoint 27218do : 27219 ac_fn_c_check_func "$LINENO" "SSL_set_quic_use_legacy_codepoint" "ac_cv_func_SSL_set_quic_use_legacy_codepoint" 27220if test "x$ac_cv_func_SSL_set_quic_use_legacy_codepoint" = xyes 27221then : 27222 printf "%s\n" "#define HAVE_SSL_SET_QUIC_USE_LEGACY_CODEPOINT 1" >>confdefs.h 27223 QUIC_ENABLED=yes 27224fi 27225 27226done 27227 if test "$QUIC_ENABLED" = "yes"; then 27228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OpenSSL fork speaks QUIC API" >&5 27229printf "%s\n" "$as_me: OpenSSL fork speaks QUIC API" >&6;} 27230 else 27231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OpenSSL version does not speak QUIC API" >&5 27232printf "%s\n" "$as_me: OpenSSL version does not speak QUIC API" >&6;} 27233 fi 27234 27235 if test "$OPENSSL_ENABLED" = "1"; then 27236 if test -n "$LIB_OPENSSL"; then 27237 if test "x$cross_compiling" != "xyes"; then 27238 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$LIB_OPENSSL" 27239 export CURL_LIBRARY_PATH 27240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&5 27241printf "%s\n" "$as_me: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&6;} 27242 fi 27243 fi 27244 check_for_ca_bundle=1 27245 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE openssl" 27246 fi 27247 27248 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg" 27249fi 27250 27251if test X"$OPT_OPENSSL" != Xno && 27252 test "$OPENSSL_ENABLED" != "1"; then 27253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OPT_OPENSSL: $OPT_OPENSSL" >&5 27254printf "%s\n" "$as_me: OPT_OPENSSL: $OPT_OPENSSL" >&6;} 27255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OPENSSL_ENABLED: $OPENSSL_ENABLED" >&5 27256printf "%s\n" "$as_me: OPENSSL_ENABLED: $OPENSSL_ENABLED" >&6;} 27257 as_fn_error $? "--with-openssl was given but OpenSSL could not be detected" "$LINENO" 5 27258fi 27259 27260if test "$OPENSSL_ENABLED" = "1"; then 27261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SRP support in OpenSSL" >&5 27262printf %s "checking for SRP support in OpenSSL... " >&6; } 27263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27264/* end confdefs.h. */ 27265 27266 27267 #include <openssl/ssl.h> 27268 27269int main(void) 27270{ 27271 27272 SSL_CTX_set_srp_username(NULL, ""); 27273 SSL_CTX_set_srp_password(NULL, ""); 27274 27275 ; 27276 return 0; 27277} 27278 27279_ACEOF 27280if ac_fn_c_try_link "$LINENO" 27281then : 27282 27283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27284printf "%s\n" "yes" >&6; } 27285 27286printf "%s\n" "#define HAVE_OPENSSL_SRP 1" >>confdefs.h 27287 27288 HAVE_OPENSSL_SRP=1 27289 27290 27291else $as_nop 27292 27293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27294printf "%s\n" "no" >&6; } 27295 27296fi 27297rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27298 conftest$ac_exeext conftest.$ac_ext 27299fi 27300 27301if test X"$OPENSSL_ENABLED" = X"1"; then 27302 # Check whether --enable-openssl-auto-load-config was given. 27303if test ${enable_openssl_auto_load_config+y} 27304then : 27305 enableval=$enable_openssl_auto_load_config; if test X"$enableval" = X"no"; then 27306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: automatic loading of OpenSSL configuration disabled" >&5 27307printf "%s\n" "$as_me: automatic loading of OpenSSL configuration disabled" >&6;} 27308 27309printf "%s\n" "#define CURL_DISABLE_OPENSSL_AUTO_LOAD_CONFIG 1" >>confdefs.h 27310 27311 fi 27312 27313fi 27314 27315fi 27316 27317if test "$OPENSSL_ENABLED" = "1"; then 27318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for QUIC support and OpenSSL >= 3.3" >&5 27319printf %s "checking for QUIC support and OpenSSL >= 3.3... " >&6; } 27320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27321/* end confdefs.h. */ 27322 27323 27324 #include <openssl/ssl.h> 27325 27326int main(void) 27327{ 27328 27329 #if (OPENSSL_VERSION_NUMBER < 0x30300000L) 27330 #error need at least version 3.3.0 27331 #endif 27332 OSSL_QUIC_client_method(); 27333 27334 ; 27335 return 0; 27336} 27337 27338_ACEOF 27339if ac_fn_c_try_link "$LINENO" 27340then : 27341 27342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27343printf "%s\n" "yes" >&6; } 27344 have_openssl_quic=1 27345 27346else $as_nop 27347 27348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27349printf "%s\n" "no" >&6; } 27350 27351fi 27352rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27353 conftest$ac_exeext conftest.$ac_ext 27354fi 27355 27356 27357if test "x$OPT_GNUTLS" != xno; then 27358 ssl_msg= 27359 27360 if test X"$OPT_GNUTLS" != Xno; then 27361 27362 addld="" 27363 addlib="" 27364 gtlslib="" 27365 version="" 27366 addcflags="" 27367 27368 if test "x$OPT_GNUTLS" = "xyes"; then 27369 27370 if test -n "$PKG_CONFIG"; then 27371 PKGCONFIG="$PKG_CONFIG" 27372 else 27373 if test -n "$ac_tool_prefix"; then 27374 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 27375set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 27376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27377printf %s "checking for $ac_word... " >&6; } 27378if test ${ac_cv_path_PKGCONFIG+y} 27379then : 27380 printf %s "(cached) " >&6 27381else $as_nop 27382 case $PKGCONFIG in 27383 [\\/]* | ?:[\\/]*) 27384 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 27385 ;; 27386 *) 27387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27388as_dummy="$PATH:/usr/bin:/usr/local/bin" 27389for as_dir in $as_dummy 27390do 27391 IFS=$as_save_IFS 27392 case $as_dir in #((( 27393 '') as_dir=./ ;; 27394 */) ;; 27395 *) as_dir=$as_dir/ ;; 27396 esac 27397 for ac_exec_ext in '' $ac_executable_extensions; do 27398 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 27399 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 27400 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 27401 break 2 27402 fi 27403done 27404 done 27405IFS=$as_save_IFS 27406 27407 ;; 27408esac 27409fi 27410PKGCONFIG=$ac_cv_path_PKGCONFIG 27411if test -n "$PKGCONFIG"; then 27412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 27413printf "%s\n" "$PKGCONFIG" >&6; } 27414else 27415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27416printf "%s\n" "no" >&6; } 27417fi 27418 27419 27420fi 27421if test -z "$ac_cv_path_PKGCONFIG"; then 27422 ac_pt_PKGCONFIG=$PKGCONFIG 27423 # Extract the first word of "pkg-config", so it can be a program name with args. 27424set dummy pkg-config; ac_word=$2 27425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27426printf %s "checking for $ac_word... " >&6; } 27427if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 27428then : 27429 printf %s "(cached) " >&6 27430else $as_nop 27431 case $ac_pt_PKGCONFIG in 27432 [\\/]* | ?:[\\/]*) 27433 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 27434 ;; 27435 *) 27436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27437as_dummy="$PATH:/usr/bin:/usr/local/bin" 27438for as_dir in $as_dummy 27439do 27440 IFS=$as_save_IFS 27441 case $as_dir in #((( 27442 '') as_dir=./ ;; 27443 */) ;; 27444 *) as_dir=$as_dir/ ;; 27445 esac 27446 for ac_exec_ext in '' $ac_executable_extensions; do 27447 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 27448 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 27449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 27450 break 2 27451 fi 27452done 27453 done 27454IFS=$as_save_IFS 27455 27456 ;; 27457esac 27458fi 27459ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 27460if test -n "$ac_pt_PKGCONFIG"; then 27461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 27462printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 27463else 27464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27465printf "%s\n" "no" >&6; } 27466fi 27467 27468 if test "x$ac_pt_PKGCONFIG" = x; then 27469 PKGCONFIG="no" 27470 else 27471 case $cross_compiling:$ac_tool_warned in 27472yes:) 27473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 27474printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 27475ac_tool_warned=yes ;; 27476esac 27477 PKGCONFIG=$ac_pt_PKGCONFIG 27478 fi 27479else 27480 PKGCONFIG="$ac_cv_path_PKGCONFIG" 27481fi 27482 27483 fi 27484 27485 if test "x$PKGCONFIG" != "xno"; then 27486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5 27487printf %s "checking for gnutls options with pkg-config... " >&6; } 27488 itexists=` 27489 if test -n ""; then 27490 PKG_CONFIG_LIBDIR="" 27491 export PKG_CONFIG_LIBDIR 27492 fi 27493 $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1` 27494 27495 if test -z "$itexists"; then 27496 PKGCONFIG="no" 27497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27498printf "%s\n" "no" >&6; } 27499 else 27500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 27501printf "%s\n" "found" >&6; } 27502 fi 27503 fi 27504 27505 27506 if test "$PKGCONFIG" != "no" ; then 27507 addlib=`$PKGCONFIG --libs-only-l gnutls` 27508 addld=`$PKGCONFIG --libs-only-L gnutls` 27509 addcflags=`$PKGCONFIG --cflags-only-I gnutls` 27510 version=`$PKGCONFIG --modversion gnutls` 27511 gtlslib=`echo $addld | $SED -e 's/^-L//'` 27512 else 27513 check=`libgnutls-config --version 2>/dev/null` 27514 if test -n "$check"; then 27515 addlib=`libgnutls-config --libs` 27516 addcflags=`libgnutls-config --cflags` 27517 version=`libgnutls-config --version` 27518 gtlslib=`libgnutls-config --prefix`/lib$libsuff 27519 fi 27520 fi 27521 else 27522 cfg=$OPT_GNUTLS/bin/libgnutls-config 27523 check=`$cfg --version 2>/dev/null` 27524 if test -n "$check"; then 27525 addlib=`$cfg --libs` 27526 addcflags=`$cfg --cflags` 27527 version=`$cfg --version` 27528 gtlslib=`$cfg --prefix`/lib$libsuff 27529 else 27530 addlib=-lgnutls 27531 addld=-L$OPT_GNUTLS/lib$libsuff 27532 addcflags=-I$OPT_GNUTLS/include 27533 version="" # we just don't know 27534 gtlslib=$OPT_GNUTLS/lib$libsuff 27535 fi 27536 fi 27537 27538 if test -z "$version"; then 27539 version="unknown" 27540 fi 27541 27542 if test -n "$addlib"; then 27543 27544 CLEANLIBS="$LIBS" 27545 CLEANCPPFLAGS="$CPPFLAGS" 27546 CLEANLDFLAGS="$LDFLAGS" 27547 27548 LIBS="$addlib $LIBS" 27549 LDFLAGS="$LDFLAGS $addld" 27550 if test "$addcflags" != "-I/usr/include"; then 27551 CPPFLAGS="$CPPFLAGS $addcflags" 27552 fi 27553 27554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_x509_crt_get_dn2 in -lgnutls" >&5 27555printf %s "checking for gnutls_x509_crt_get_dn2 in -lgnutls... " >&6; } 27556if test ${ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2+y} 27557then : 27558 printf %s "(cached) " >&6 27559else $as_nop 27560 ac_check_lib_save_LIBS=$LIBS 27561LIBS="-lgnutls $LIBS" 27562cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27563/* end confdefs.h. */ 27564 27565 27566#ifdef __cplusplus 27567extern "C" 27568#endif 27569char gnutls_x509_crt_get_dn2 (); 27570int main(void) 27571{ 27572return gnutls_x509_crt_get_dn2 (); 27573 ; 27574 return 0; 27575} 27576_ACEOF 27577if ac_fn_c_try_link "$LINENO" 27578then : 27579 ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2=yes 27580else $as_nop 27581 ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2=no 27582fi 27583rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27584 conftest$ac_exeext conftest.$ac_ext 27585LIBS=$ac_check_lib_save_LIBS 27586fi 27587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" >&5 27588printf "%s\n" "$ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" >&6; } 27589if test "x$ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" = xyes 27590then : 27591 27592 27593printf "%s\n" "#define USE_GNUTLS 1" >>confdefs.h 27594 27595 USE_GNUTLS=1 27596 27597 GNUTLS_ENABLED=1 27598 USE_GNUTLS="yes" 27599 ssl_msg="GnuTLS" 27600 QUIC_ENABLED=yes 27601 test gnutls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 27602 27603else $as_nop 27604 27605 LIBS="$CLEANLIBS" 27606 CPPFLAGS="$CLEANCPPFLAGS" 27607 27608fi 27609 27610 27611 if test "x$USE_GNUTLS" = "xyes"; then 27612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5 27613printf "%s\n" "$as_me: detected GnuTLS version $version" >&6;} 27614 check_for_ca_bundle=1 27615 if test -n "$gtlslib"; then 27616 if test "x$cross_compiling" != "xyes"; then 27617 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$gtlslib" 27618 export CURL_LIBRARY_PATH 27619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $gtlslib to CURL_LIBRARY_PATH" >&5 27620printf "%s\n" "$as_me: Added $gtlslib to CURL_LIBRARY_PATH" >&6;} 27621 fi 27622 fi 27623 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE gnutls nettle" 27624 fi 27625 27626 fi 27627 27628 fi 27629 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg" 27630fi 27631 27632 27633if test "$GNUTLS_ENABLED" = "1"; then 27634 USE_GNUTLS_NETTLE= 27635 # First check if we can detect either crypto library via transitive linking 27636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5 27637printf %s "checking for nettle_MD5Init in -lgnutls... " >&6; } 27638if test ${ac_cv_lib_gnutls_nettle_MD5Init+y} 27639then : 27640 printf %s "(cached) " >&6 27641else $as_nop 27642 ac_check_lib_save_LIBS=$LIBS 27643LIBS="-lgnutls $LIBS" 27644cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27645/* end confdefs.h. */ 27646 27647 27648#ifdef __cplusplus 27649extern "C" 27650#endif 27651char nettle_MD5Init (); 27652int main(void) 27653{ 27654return nettle_MD5Init (); 27655 ; 27656 return 0; 27657} 27658_ACEOF 27659if ac_fn_c_try_link "$LINENO" 27660then : 27661 ac_cv_lib_gnutls_nettle_MD5Init=yes 27662else $as_nop 27663 ac_cv_lib_gnutls_nettle_MD5Init=no 27664fi 27665rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27666 conftest$ac_exeext conftest.$ac_ext 27667LIBS=$ac_check_lib_save_LIBS 27668fi 27669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5 27670printf "%s\n" "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; } 27671if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes 27672then : 27673 USE_GNUTLS_NETTLE=1 27674fi 27675 27676 27677 # If not, try linking directly to both of them to see if they are available 27678 if test "$USE_GNUTLS_NETTLE" = ""; then 27679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5 27680printf %s "checking for nettle_MD5Init in -lnettle... " >&6; } 27681if test ${ac_cv_lib_nettle_nettle_MD5Init+y} 27682then : 27683 printf %s "(cached) " >&6 27684else $as_nop 27685 ac_check_lib_save_LIBS=$LIBS 27686LIBS="-lnettle $LIBS" 27687cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27688/* end confdefs.h. */ 27689 27690 27691#ifdef __cplusplus 27692extern "C" 27693#endif 27694char nettle_MD5Init (); 27695int main(void) 27696{ 27697return nettle_MD5Init (); 27698 ; 27699 return 0; 27700} 27701_ACEOF 27702if ac_fn_c_try_link "$LINENO" 27703then : 27704 ac_cv_lib_nettle_nettle_MD5Init=yes 27705else $as_nop 27706 ac_cv_lib_nettle_nettle_MD5Init=no 27707fi 27708rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27709 conftest$ac_exeext conftest.$ac_ext 27710LIBS=$ac_check_lib_save_LIBS 27711fi 27712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5 27713printf "%s\n" "$ac_cv_lib_nettle_nettle_MD5Init" >&6; } 27714if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes 27715then : 27716 USE_GNUTLS_NETTLE=1 27717fi 27718 27719 fi 27720 if test "$USE_GNUTLS_NETTLE" = ""; then 27721 as_fn_error $? "GnuTLS found, but nettle was not found" "$LINENO" 5 27722 fi 27723 LIBS="-lnettle $LIBS" 27724fi 27725 27726if test "$GNUTLS_ENABLED" = "1"; then 27727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5 27728printf %s "checking for gnutls_srp_verifier in -lgnutls... " >&6; } 27729if test ${ac_cv_lib_gnutls_gnutls_srp_verifier+y} 27730then : 27731 printf %s "(cached) " >&6 27732else $as_nop 27733 ac_check_lib_save_LIBS=$LIBS 27734LIBS="-lgnutls $LIBS" 27735cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27736/* end confdefs.h. */ 27737 27738 27739#ifdef __cplusplus 27740extern "C" 27741#endif 27742char gnutls_srp_verifier (); 27743int main(void) 27744{ 27745return gnutls_srp_verifier (); 27746 ; 27747 return 0; 27748} 27749_ACEOF 27750if ac_fn_c_try_link "$LINENO" 27751then : 27752 ac_cv_lib_gnutls_gnutls_srp_verifier=yes 27753else $as_nop 27754 ac_cv_lib_gnutls_gnutls_srp_verifier=no 27755fi 27756rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27757 conftest$ac_exeext conftest.$ac_ext 27758LIBS=$ac_check_lib_save_LIBS 27759fi 27760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5 27761printf "%s\n" "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; } 27762if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes 27763then : 27764 27765 27766printf "%s\n" "#define HAVE_GNUTLS_SRP 1" >>confdefs.h 27767 27768 HAVE_GNUTLS_SRP=1 27769 27770 27771fi 27772 27773fi 27774 27775 27776 27777 27778if test "x$OPT_MBEDTLS" != xno; then 27779 _cppflags=$CPPFLAGS 27780 _ldflags=$LDFLAGS 27781 ssl_msg= 27782 27783 if test X"$OPT_MBEDTLS" != Xno; then 27784 27785 if test "$OPT_MBEDTLS" = "yes"; then 27786 OPT_MBEDTLS="" 27787 fi 27788 27789 if test -z "$OPT_MBEDTLS" ; then 27790 27791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5 27792printf %s "checking for mbedtls_havege_init in -lmbedtls... " >&6; } 27793if test ${ac_cv_lib_mbedtls_mbedtls_havege_init+y} 27794then : 27795 printf %s "(cached) " >&6 27796else $as_nop 27797 ac_check_lib_save_LIBS=$LIBS 27798LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS" 27799cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27800/* end confdefs.h. */ 27801 27802 27803#ifdef __cplusplus 27804extern "C" 27805#endif 27806char mbedtls_havege_init (); 27807int main(void) 27808{ 27809return mbedtls_havege_init (); 27810 ; 27811 return 0; 27812} 27813_ACEOF 27814if ac_fn_c_try_link "$LINENO" 27815then : 27816 ac_cv_lib_mbedtls_mbedtls_havege_init=yes 27817else $as_nop 27818 ac_cv_lib_mbedtls_mbedtls_havege_init=no 27819fi 27820rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27821 conftest$ac_exeext conftest.$ac_ext 27822LIBS=$ac_check_lib_save_LIBS 27823fi 27824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5 27825printf "%s\n" "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; } 27826if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes 27827then : 27828 27829 27830printf "%s\n" "#define USE_MBEDTLS 1" >>confdefs.h 27831 27832 USE_MBEDTLS=1 27833 27834 MBEDTLS_ENABLED=1 27835 USE_MBEDTLS="yes" 27836 ssl_msg="mbedTLS" 27837 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 27838 27839fi 27840 27841 fi 27842 27843 addld="" 27844 addlib="" 27845 addcflags="" 27846 mbedtlslib="" 27847 27848 if test "x$USE_MBEDTLS" != "xyes"; then 27849 addld=-L$OPT_MBEDTLS/lib$libsuff 27850 addcflags=-I$OPT_MBEDTLS/include 27851 mbedtlslib=$OPT_MBEDTLS/lib$libsuff 27852 27853 LDFLAGS="$LDFLAGS $addld" 27854 if test "$addcflags" != "-I/usr/include"; then 27855 CPPFLAGS="$CPPFLAGS $addcflags" 27856 fi 27857 27858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5 27859printf %s "checking for mbedtls_ssl_init in -lmbedtls... " >&6; } 27860if test ${ac_cv_lib_mbedtls_mbedtls_ssl_init+y} 27861then : 27862 printf %s "(cached) " >&6 27863else $as_nop 27864 ac_check_lib_save_LIBS=$LIBS 27865LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS" 27866cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27867/* end confdefs.h. */ 27868 27869 27870#ifdef __cplusplus 27871extern "C" 27872#endif 27873char mbedtls_ssl_init (); 27874int main(void) 27875{ 27876return mbedtls_ssl_init (); 27877 ; 27878 return 0; 27879} 27880_ACEOF 27881if ac_fn_c_try_link "$LINENO" 27882then : 27883 ac_cv_lib_mbedtls_mbedtls_ssl_init=yes 27884else $as_nop 27885 ac_cv_lib_mbedtls_mbedtls_ssl_init=no 27886fi 27887rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27888 conftest$ac_exeext conftest.$ac_ext 27889LIBS=$ac_check_lib_save_LIBS 27890fi 27891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5 27892printf "%s\n" "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; } 27893if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes 27894then : 27895 27896 27897printf "%s\n" "#define USE_MBEDTLS 1" >>confdefs.h 27898 27899 USE_MBEDTLS=1 27900 27901 MBEDTLS_ENABLED=1 27902 USE_MBEDTLS="yes" 27903 ssl_msg="mbedTLS" 27904 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 27905 27906else $as_nop 27907 27908 CPPFLAGS=$_cppflags 27909 LDFLAGS=$_ldflags 27910 27911fi 27912 27913 fi 27914 27915 if test "x$USE_MBEDTLS" = "xyes"; then 27916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5 27917printf "%s\n" "$as_me: detected mbedTLS" >&6;} 27918 check_for_ca_bundle=1 27919 27920 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS" 27921 27922 if test -n "$mbedtlslib"; then 27923 if test "x$cross_compiling" != "xyes"; then 27924 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$mbedtlslib" 27925 export CURL_LIBRARY_PATH 27926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to CURL_LIBRARY_PATH" >&5 27927printf "%s\n" "$as_me: Added $mbedtlslib to CURL_LIBRARY_PATH" >&6;} 27928 fi 27929 fi 27930 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE mbedtls" 27931 fi 27932 27933 fi 27934 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg" 27935fi 27936 27937 27938 27939 27940case "$OPT_WOLFSSL" in 27941 yes|no) 27942 wolfpkg="" 27943 ;; 27944 *) 27945 wolfpkg="$withval/lib/pkgconfig" 27946 ;; 27947esac 27948 27949if test "x$OPT_WOLFSSL" != xno; then 27950 _cppflags=$CPPFLAGS 27951 _ldflags=$LDFLAGS 27952 27953 ssl_msg= 27954 27955 if test X"$OPT_WOLFSSL" != Xno; then 27956 27957 if test "$OPT_WOLFSSL" = "yes"; then 27958 OPT_WOLFSSL="" 27959 fi 27960 27961 27962 if test -n "$PKG_CONFIG"; then 27963 PKGCONFIG="$PKG_CONFIG" 27964 else 27965 if test -n "$ac_tool_prefix"; then 27966 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 27967set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 27968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27969printf %s "checking for $ac_word... " >&6; } 27970if test ${ac_cv_path_PKGCONFIG+y} 27971then : 27972 printf %s "(cached) " >&6 27973else $as_nop 27974 case $PKGCONFIG in 27975 [\\/]* | ?:[\\/]*) 27976 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 27977 ;; 27978 *) 27979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27980as_dummy="$PATH:/usr/bin:/usr/local/bin" 27981for as_dir in $as_dummy 27982do 27983 IFS=$as_save_IFS 27984 case $as_dir in #((( 27985 '') as_dir=./ ;; 27986 */) ;; 27987 *) as_dir=$as_dir/ ;; 27988 esac 27989 for ac_exec_ext in '' $ac_executable_extensions; do 27990 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 27991 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 27992 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 27993 break 2 27994 fi 27995done 27996 done 27997IFS=$as_save_IFS 27998 27999 ;; 28000esac 28001fi 28002PKGCONFIG=$ac_cv_path_PKGCONFIG 28003if test -n "$PKGCONFIG"; then 28004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 28005printf "%s\n" "$PKGCONFIG" >&6; } 28006else 28007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28008printf "%s\n" "no" >&6; } 28009fi 28010 28011 28012fi 28013if test -z "$ac_cv_path_PKGCONFIG"; then 28014 ac_pt_PKGCONFIG=$PKGCONFIG 28015 # Extract the first word of "pkg-config", so it can be a program name with args. 28016set dummy pkg-config; ac_word=$2 28017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28018printf %s "checking for $ac_word... " >&6; } 28019if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 28020then : 28021 printf %s "(cached) " >&6 28022else $as_nop 28023 case $ac_pt_PKGCONFIG in 28024 [\\/]* | ?:[\\/]*) 28025 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 28026 ;; 28027 *) 28028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28029as_dummy="$PATH:/usr/bin:/usr/local/bin" 28030for as_dir in $as_dummy 28031do 28032 IFS=$as_save_IFS 28033 case $as_dir in #((( 28034 '') as_dir=./ ;; 28035 */) ;; 28036 *) as_dir=$as_dir/ ;; 28037 esac 28038 for ac_exec_ext in '' $ac_executable_extensions; do 28039 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 28040 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 28041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 28042 break 2 28043 fi 28044done 28045 done 28046IFS=$as_save_IFS 28047 28048 ;; 28049esac 28050fi 28051ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 28052if test -n "$ac_pt_PKGCONFIG"; then 28053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 28054printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 28055else 28056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28057printf "%s\n" "no" >&6; } 28058fi 28059 28060 if test "x$ac_pt_PKGCONFIG" = x; then 28061 PKGCONFIG="no" 28062 else 28063 case $cross_compiling:$ac_tool_warned in 28064yes:) 28065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28066printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28067ac_tool_warned=yes ;; 28068esac 28069 PKGCONFIG=$ac_pt_PKGCONFIG 28070 fi 28071else 28072 PKGCONFIG="$ac_cv_path_PKGCONFIG" 28073fi 28074 28075 fi 28076 28077 if test "x$PKGCONFIG" != "xno"; then 28078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfssl options with pkg-config" >&5 28079printf %s "checking for wolfssl options with pkg-config... " >&6; } 28080 itexists=` 28081 if test -n "$wolfpkg"; then 28082 PKG_CONFIG_LIBDIR="$wolfpkg" 28083 export PKG_CONFIG_LIBDIR 28084 fi 28085 $PKGCONFIG --exists wolfssl >/dev/null 2>&1 && echo 1` 28086 28087 if test -z "$itexists"; then 28088 PKGCONFIG="no" 28089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28090printf "%s\n" "no" >&6; } 28091 else 28092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 28093printf "%s\n" "found" >&6; } 28094 fi 28095 fi 28096 28097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Check dir $wolfpkg" >&5 28098printf "%s\n" "$as_me: Check dir $wolfpkg" >&6;} 28099 28100 addld="" 28101 addlib="" 28102 addcflags="" 28103 if test "$PKGCONFIG" != "no" ; then 28104 addlib=` 28105 if test -n "$wolfpkg"; then 28106 PKG_CONFIG_LIBDIR="$wolfpkg" 28107 export PKG_CONFIG_LIBDIR 28108 fi 28109 28110 $PKGCONFIG --libs-only-l wolfssl` 28111 addld=` 28112 if test -n "$wolfpkg"; then 28113 PKG_CONFIG_LIBDIR="$wolfpkg" 28114 export PKG_CONFIG_LIBDIR 28115 fi 28116 28117 $PKGCONFIG --libs-only-L wolfssl` 28118 addcflags=` 28119 if test -n "$wolfpkg"; then 28120 PKG_CONFIG_LIBDIR="$wolfpkg" 28121 export PKG_CONFIG_LIBDIR 28122 fi 28123 28124 $PKGCONFIG --cflags-only-I wolfssl` 28125 version=` 28126 if test -n "$wolfpkg"; then 28127 PKG_CONFIG_LIBDIR="$wolfpkg" 28128 export PKG_CONFIG_LIBDIR 28129 fi 28130 28131 $PKGCONFIG --modversion wolfssl` 28132 wolfssllibpath=`echo $addld | $SED -e 's/^-L//'` 28133 else 28134 addlib=-lwolfssl 28135 if test -n "$OPT_WOLFSSL"; then 28136 addld=-L$OPT_WOLFSSL/lib$libsuff 28137 addcflags=-I$OPT_WOLFSSL/include 28138 wolfssllibpath=$OPT_WOLFSSL/lib$libsuff 28139 fi 28140 fi 28141 28142 if test "x$USE_WOLFSSL" != "xyes"; then 28143 28144 LDFLAGS="$LDFLAGS $addld" 28145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addld to LDFLAGS" >&5 28146printf "%s\n" "$as_me: Add $addld to LDFLAGS" >&6;} 28147 if test "$addcflags" != "-I/usr/include"; then 28148 CPPFLAGS="$CPPFLAGS $addcflags" 28149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addcflags to CPPFLAGS" >&5 28150printf "%s\n" "$as_me: Add $addcflags to CPPFLAGS" >&6;} 28151 fi 28152 28153 my_ac_save_LIBS="$LIBS" 28154 LIBS="$addlib $LIBS" 28155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addlib to LIBS" >&5 28156printf "%s\n" "$as_me: Add $addlib to LIBS" >&6;} 28157 28158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfSSL_Init in -lwolfssl" >&5 28159printf %s "checking for wolfSSL_Init in -lwolfssl... " >&6; } 28160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28161/* end confdefs.h. */ 28162 28163 28164 /* These are not needed for detection and confuse wolfSSL. 28165 They are set up properly later if it is detected. */ 28166 #undef SIZEOF_LONG 28167 #undef SIZEOF_LONG_LONG 28168 #include <wolfssl/options.h> 28169 #include <wolfssl/ssl.h> 28170 28171int main(void) 28172{ 28173 28174 return wolfSSL_Init(); 28175 28176 ; 28177 return 0; 28178} 28179 28180_ACEOF 28181if ac_fn_c_try_link "$LINENO" 28182then : 28183 28184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28185printf "%s\n" "yes" >&6; } 28186 28187printf "%s\n" "#define USE_WOLFSSL 1" >>confdefs.h 28188 28189 USE_WOLFSSL=1 28190 28191 WOLFSSL_ENABLED=1 28192 USE_WOLFSSL="yes" 28193 ssl_msg="wolfSSL" 28194 QUIC_ENABLED=yes 28195 test wolfssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 28196 28197else $as_nop 28198 28199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28200printf "%s\n" "no" >&6; } 28201 CPPFLAGS=$_cppflags 28202 LDFLAGS=$_ldflags 28203 wolfssllibpath="" 28204 28205fi 28206rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28207 conftest$ac_exeext conftest.$ac_ext 28208 LIBS="$my_ac_save_LIBS" 28209 fi 28210 28211 if test "x$USE_WOLFSSL" = "xyes"; then 28212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected wolfSSL" >&5 28213printf "%s\n" "$as_me: detected wolfSSL" >&6;} 28214 check_for_ca_bundle=1 28215 28216 28217 28218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 28219printf %s "checking size of long long... " >&6; } 28220 r=0 28221 for typesize in 8 4 2 16 1; do 28222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28223/* end confdefs.h. */ 28224 28225#include <sys/types.h> 28226 28227 28228int main(void) 28229{ 28230switch(0) { 28231 case 0: 28232 case (sizeof(long long) == $typesize):; 28233 } 28234 28235 ; 28236 return 0; 28237} 28238_ACEOF 28239if ac_fn_c_try_compile "$LINENO" 28240then : 28241 28242 r=$typesize 28243else $as_nop 28244 28245 r=0 28246fi 28247rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 28248 if test $r -gt 0; then 28249 break; 28250 fi 28251 done 28252 if test $r -eq 0; then 28253 as_fn_error $? "Failed to find size of long long" "$LINENO" 5 28254 fi 28255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5 28256printf "%s\n" "$r" >&6; } 28257 tname=`echo "ac_cv_sizeof_long long" | tr A-Z a-z | tr " " "_"` 28258 eval "$tname=$r" 28259 28260 28261printf "%s\n" "#define SIZEOF_LONG_LONG $r" >>confdefs.h 28262 28263 28264 28265 28266 LIBS="$addlib -lm $LIBS" 28267 28268 ac_fn_c_check_func "$LINENO" "wolfSSL_get_peer_certificate" "ac_cv_func_wolfSSL_get_peer_certificate" 28269if test "x$ac_cv_func_wolfSSL_get_peer_certificate" = xyes 28270then : 28271 printf "%s\n" "#define HAVE_WOLFSSL_GET_PEER_CERTIFICATE 1" >>confdefs.h 28272 28273fi 28274ac_fn_c_check_func "$LINENO" "wolfSSL_UseALPN" "ac_cv_func_wolfSSL_UseALPN" 28275if test "x$ac_cv_func_wolfSSL_UseALPN" = xyes 28276then : 28277 printf "%s\n" "#define HAVE_WOLFSSL_USEALPN 1" >>confdefs.h 28278 28279fi 28280 28281 28282 ac_fn_c_check_func "$LINENO" "wolfSSL_DES_ecb_encrypt" "ac_cv_func_wolfSSL_DES_ecb_encrypt" 28283if test "x$ac_cv_func_wolfSSL_DES_ecb_encrypt" = xyes 28284then : 28285 28286 28287printf "%s\n" "#define HAVE_WOLFSSL_DES_ECB_ENCRYPT 1" >>confdefs.h 28288 28289 WOLFSSL_NTLM=1 28290 28291 28292fi 28293 28294 28295 ac_fn_c_check_func "$LINENO" "wolfSSL_BIO_new" "ac_cv_func_wolfSSL_BIO_new" 28296if test "x$ac_cv_func_wolfSSL_BIO_new" = xyes 28297then : 28298 28299 28300printf "%s\n" "#define HAVE_WOLFSSL_BIO 1" >>confdefs.h 28301 28302 WOLFSSL_BIO=1 28303 28304 28305fi 28306 28307 ac_fn_c_check_func "$LINENO" "wolfSSL_BIO_set_shutdown" "ac_cv_func_wolfSSL_BIO_set_shutdown" 28308if test "x$ac_cv_func_wolfSSL_BIO_set_shutdown" = xyes 28309then : 28310 28311 28312printf "%s\n" "#define HAVE_WOLFSSL_FULL_BIO 1" >>confdefs.h 28313 28314 WOLFSSL_FULL_BIO=1 28315 28316 28317fi 28318 28319 28320 if test -n "$wolfssllibpath"; then 28321 if test "x$cross_compiling" != "xyes"; then 28322 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$wolfssllibpath" 28323 export CURL_LIBRARY_PATH 28324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $wolfssllibpath to CURL_LIBRARY_PATH" >&5 28325printf "%s\n" "$as_me: Added $wolfssllibpath to CURL_LIBRARY_PATH" >&6;} 28326 fi 28327 fi 28328 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE wolfssl" 28329 else 28330 as_fn_error $? "--with-wolfssl but wolfSSL was not found or doesn't work" "$LINENO" 5 28331 fi 28332 28333 fi 28334 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg" 28335fi 28336 28337 28338 28339 28340if test "x$OPT_BEARSSL" != xno; then 28341 _cppflags=$CPPFLAGS 28342 _ldflags=$LDFLAGS 28343 ssl_msg= 28344 28345 if test X"$OPT_BEARSSL" != Xno; then 28346 28347 if test "$OPT_BEARSSL" = "yes"; then 28348 OPT_BEARSSL="" 28349 fi 28350 28351 if test -z "$OPT_BEARSSL" ; then 28352 28353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for br_ssl_client_init_full in -lbearssl" >&5 28354printf %s "checking for br_ssl_client_init_full in -lbearssl... " >&6; } 28355if test ${ac_cv_lib_bearssl_br_ssl_client_init_full+y} 28356then : 28357 printf %s "(cached) " >&6 28358else $as_nop 28359 ac_check_lib_save_LIBS=$LIBS 28360LIBS="-lbearssl -lbearssl $LIBS" 28361cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28362/* end confdefs.h. */ 28363 28364 28365#ifdef __cplusplus 28366extern "C" 28367#endif 28368char br_ssl_client_init_full (); 28369int main(void) 28370{ 28371return br_ssl_client_init_full (); 28372 ; 28373 return 0; 28374} 28375_ACEOF 28376if ac_fn_c_try_link "$LINENO" 28377then : 28378 ac_cv_lib_bearssl_br_ssl_client_init_full=yes 28379else $as_nop 28380 ac_cv_lib_bearssl_br_ssl_client_init_full=no 28381fi 28382rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28383 conftest$ac_exeext conftest.$ac_ext 28384LIBS=$ac_check_lib_save_LIBS 28385fi 28386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bearssl_br_ssl_client_init_full" >&5 28387printf "%s\n" "$ac_cv_lib_bearssl_br_ssl_client_init_full" >&6; } 28388if test "x$ac_cv_lib_bearssl_br_ssl_client_init_full" = xyes 28389then : 28390 28391 28392printf "%s\n" "#define USE_BEARSSL 1" >>confdefs.h 28393 28394 USE_BEARSSL=1 28395 28396 BEARSSL_ENABLED=1 28397 USE_BEARSSL="yes" 28398 ssl_msg="BearSSL" 28399 test bearssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 28400 28401fi 28402 28403 fi 28404 28405 addld="" 28406 addlib="" 28407 addcflags="" 28408 bearssllib="" 28409 28410 if test "x$USE_BEARSSL" != "xyes"; then 28411 addld=-L$OPT_BEARSSL/lib$libsuff 28412 addcflags=-I$OPT_BEARSSL/include 28413 bearssllib=$OPT_BEARSSL/lib$libsuff 28414 28415 LDFLAGS="$LDFLAGS $addld" 28416 if test "$addcflags" != "-I/usr/include"; then 28417 CPPFLAGS="$CPPFLAGS $addcflags" 28418 fi 28419 28420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for br_ssl_client_init_full in -lbearssl" >&5 28421printf %s "checking for br_ssl_client_init_full in -lbearssl... " >&6; } 28422if test ${ac_cv_lib_bearssl_br_ssl_client_init_full+y} 28423then : 28424 printf %s "(cached) " >&6 28425else $as_nop 28426 ac_check_lib_save_LIBS=$LIBS 28427LIBS="-lbearssl -lbearssl $LIBS" 28428cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28429/* end confdefs.h. */ 28430 28431 28432#ifdef __cplusplus 28433extern "C" 28434#endif 28435char br_ssl_client_init_full (); 28436int main(void) 28437{ 28438return br_ssl_client_init_full (); 28439 ; 28440 return 0; 28441} 28442_ACEOF 28443if ac_fn_c_try_link "$LINENO" 28444then : 28445 ac_cv_lib_bearssl_br_ssl_client_init_full=yes 28446else $as_nop 28447 ac_cv_lib_bearssl_br_ssl_client_init_full=no 28448fi 28449rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28450 conftest$ac_exeext conftest.$ac_ext 28451LIBS=$ac_check_lib_save_LIBS 28452fi 28453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bearssl_br_ssl_client_init_full" >&5 28454printf "%s\n" "$ac_cv_lib_bearssl_br_ssl_client_init_full" >&6; } 28455if test "x$ac_cv_lib_bearssl_br_ssl_client_init_full" = xyes 28456then : 28457 28458 28459printf "%s\n" "#define USE_BEARSSL 1" >>confdefs.h 28460 28461 USE_BEARSSL=1 28462 28463 BEARSSL_ENABLED=1 28464 USE_BEARSSL="yes" 28465 ssl_msg="BearSSL" 28466 test bearssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 28467 28468else $as_nop 28469 28470 CPPFLAGS=$_cppflags 28471 LDFLAGS=$_ldflags 28472 28473fi 28474 28475 fi 28476 28477 if test "x$USE_BEARSSL" = "xyes"; then 28478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected BearSSL" >&5 28479printf "%s\n" "$as_me: detected BearSSL" >&6;} 28480 check_for_ca_bundle=1 28481 28482 LIBS="-lbearssl $LIBS" 28483 28484 if test -n "$bearssllib"; then 28485 if test "x$cross_compiling" != "xyes"; then 28486 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$bearssllib" 28487 export CURL_LIBRARY_PATH 28488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $bearssllib to CURL_LIBRARY_PATH" >&5 28489printf "%s\n" "$as_me: Added $bearssllib to CURL_LIBRARY_PATH" >&6;} 28490 fi 28491 fi 28492 fi 28493 28494 fi 28495 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg" 28496fi 28497 28498 28499 28500if test "x$OPT_RUSTLS" != xno; then 28501 ssl_msg= 28502 28503 CLEANLDFLAGS="$LDFLAGS" 28504 CLEANCPPFLAGS="$CPPFLAGS" 28505 28506 ## NEW CODE 28507 28508 28509 case "$OPT_RUSTLS" in 28510 yes) 28511 PKGTEST="yes" 28512 PREFIX_RUSTLS= 28513 ;; 28514 *) 28515 PKGTEST="no" 28516 PREFIX_RUSTLS=$OPT_RUSTLS 28517 28518 28519 RUSTLS_PCDIR="$PREFIX_RUSTLS/lib/pkgconfig" 28520 if test -f "$RUSTLS_PCDIR/rustls.pc"; then 28521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$RUSTLS_PCDIR\"" >&5 28522printf "%s\n" "$as_me: PKG_CONFIG_LIBDIR will be set to \"$RUSTLS_PCDIR\"" >&6;} 28523 PKGTEST="yes" 28524 fi 28525 28526 if test "$PKGTEST" != "yes"; then 28527 # try lib64 instead 28528 RUSTLS_PCDIR="$PREFIX_RUSTLS/lib64/pkgconfig" 28529 if test -f "$RUSTLS_PCDIR/rustls.pc"; then 28530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$RUSTLS_PCDIR\"" >&5 28531printf "%s\n" "$as_me: PKG_CONFIG_LIBDIR will be set to \"$RUSTLS_PCDIR\"" >&6;} 28532 PKGTEST="yes" 28533 fi 28534 fi 28535 28536 if test "$PKGTEST" != "yes"; then 28537 28538 addld=-L$PREFIX_RUSTLS/lib$libsuff 28539 addcflags=-I$PREFIX_RUSTLS/include 28540 28541 LDFLAGS="$LDFLAGS $addld" 28542 if test "$addcflags" != "-I/usr/include"; then 28543 CPPFLAGS="$CPPFLAGS $addcflags" 28544 fi 28545 28546 case $host in 28547 *-apple-*) 28548 RUSTLS_LDFLAGS="-framework Security -framework Foundation" 28549 ;; 28550 *) 28551 RUSTLS_LDFLAGS="-lpthread -ldl -lm" 28552 ;; 28553 esac 28554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rustls_connection_read in -lrustls" >&5 28555printf %s "checking for rustls_connection_read in -lrustls... " >&6; } 28556if test ${ac_cv_lib_rustls_rustls_connection_read+y} 28557then : 28558 printf %s "(cached) " >&6 28559else $as_nop 28560 ac_check_lib_save_LIBS=$LIBS 28561LIBS="-lrustls $RUSTLS_LDFLAGS $LIBS" 28562cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28563/* end confdefs.h. */ 28564 28565 28566#ifdef __cplusplus 28567extern "C" 28568#endif 28569char rustls_connection_read (); 28570int main(void) 28571{ 28572return rustls_connection_read (); 28573 ; 28574 return 0; 28575} 28576_ACEOF 28577if ac_fn_c_try_link "$LINENO" 28578then : 28579 ac_cv_lib_rustls_rustls_connection_read=yes 28580else $as_nop 28581 ac_cv_lib_rustls_rustls_connection_read=no 28582fi 28583rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28584 conftest$ac_exeext conftest.$ac_ext 28585LIBS=$ac_check_lib_save_LIBS 28586fi 28587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rustls_rustls_connection_read" >&5 28588printf "%s\n" "$ac_cv_lib_rustls_rustls_connection_read" >&6; } 28589if test "x$ac_cv_lib_rustls_rustls_connection_read" = xyes 28590then : 28591 28592 28593printf "%s\n" "#define USE_RUSTLS 1" >>confdefs.h 28594 28595 USE_RUSTLS=1 28596 28597 RUSTLS_ENABLED=1 28598 USE_RUSTLS="yes" 28599 ssl_msg="rustls" 28600 test rustls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 28601 28602else $as_nop 28603 as_fn_error $? "--with-rustls was specified but could not find Rustls." "$LINENO" 5 28604fi 28605 28606 28607 LIB_RUSTLS="$PREFIX_RUSTLS/lib$libsuff" 28608 if test "$PREFIX_RUSTLS" != "/usr" ; then 28609 SSL_LDFLAGS="-L$LIB_RUSTLS $RUSTLS_LDFLAGS" 28610 SSL_CPPFLAGS="-I$PREFIX_RUSTLS/include" 28611 fi 28612 fi 28613 ;; 28614 esac 28615 28616 if test "$PKGTEST" = "yes"; then 28617 28618 28619 if test -n "$PKG_CONFIG"; then 28620 PKGCONFIG="$PKG_CONFIG" 28621 else 28622 if test -n "$ac_tool_prefix"; then 28623 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 28624set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 28625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28626printf %s "checking for $ac_word... " >&6; } 28627if test ${ac_cv_path_PKGCONFIG+y} 28628then : 28629 printf %s "(cached) " >&6 28630else $as_nop 28631 case $PKGCONFIG in 28632 [\\/]* | ?:[\\/]*) 28633 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 28634 ;; 28635 *) 28636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28637as_dummy="$PATH:/usr/bin:/usr/local/bin" 28638for as_dir in $as_dummy 28639do 28640 IFS=$as_save_IFS 28641 case $as_dir in #((( 28642 '') as_dir=./ ;; 28643 */) ;; 28644 *) as_dir=$as_dir/ ;; 28645 esac 28646 for ac_exec_ext in '' $ac_executable_extensions; do 28647 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 28648 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 28649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 28650 break 2 28651 fi 28652done 28653 done 28654IFS=$as_save_IFS 28655 28656 ;; 28657esac 28658fi 28659PKGCONFIG=$ac_cv_path_PKGCONFIG 28660if test -n "$PKGCONFIG"; then 28661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 28662printf "%s\n" "$PKGCONFIG" >&6; } 28663else 28664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28665printf "%s\n" "no" >&6; } 28666fi 28667 28668 28669fi 28670if test -z "$ac_cv_path_PKGCONFIG"; then 28671 ac_pt_PKGCONFIG=$PKGCONFIG 28672 # Extract the first word of "pkg-config", so it can be a program name with args. 28673set dummy pkg-config; ac_word=$2 28674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28675printf %s "checking for $ac_word... " >&6; } 28676if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 28677then : 28678 printf %s "(cached) " >&6 28679else $as_nop 28680 case $ac_pt_PKGCONFIG in 28681 [\\/]* | ?:[\\/]*) 28682 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 28683 ;; 28684 *) 28685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28686as_dummy="$PATH:/usr/bin:/usr/local/bin" 28687for as_dir in $as_dummy 28688do 28689 IFS=$as_save_IFS 28690 case $as_dir in #((( 28691 '') as_dir=./ ;; 28692 */) ;; 28693 *) as_dir=$as_dir/ ;; 28694 esac 28695 for ac_exec_ext in '' $ac_executable_extensions; do 28696 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 28697 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 28698 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 28699 break 2 28700 fi 28701done 28702 done 28703IFS=$as_save_IFS 28704 28705 ;; 28706esac 28707fi 28708ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 28709if test -n "$ac_pt_PKGCONFIG"; then 28710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 28711printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 28712else 28713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28714printf "%s\n" "no" >&6; } 28715fi 28716 28717 if test "x$ac_pt_PKGCONFIG" = x; then 28718 PKGCONFIG="no" 28719 else 28720 case $cross_compiling:$ac_tool_warned in 28721yes:) 28722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28723printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28724ac_tool_warned=yes ;; 28725esac 28726 PKGCONFIG=$ac_pt_PKGCONFIG 28727 fi 28728else 28729 PKGCONFIG="$ac_cv_path_PKGCONFIG" 28730fi 28731 28732 fi 28733 28734 if test "x$PKGCONFIG" != "xno"; then 28735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rustls options with pkg-config" >&5 28736printf %s "checking for rustls options with pkg-config... " >&6; } 28737 itexists=` 28738 if test -n "$RUSTLS_PCDIR"; then 28739 PKG_CONFIG_LIBDIR="$RUSTLS_PCDIR" 28740 export PKG_CONFIG_LIBDIR 28741 fi 28742 $PKGCONFIG --exists rustls >/dev/null 2>&1 && echo 1` 28743 28744 if test -z "$itexists"; then 28745 PKGCONFIG="no" 28746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28747printf "%s\n" "no" >&6; } 28748 else 28749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 28750printf "%s\n" "found" >&6; } 28751 fi 28752 fi 28753 28754 28755 if test "$PKGCONFIG" != "no" ; then 28756 SSL_LIBS=` 28757 if test -n "$RUSTLS_PCDIR"; then 28758 PKG_CONFIG_LIBDIR="$RUSTLS_PCDIR" 28759 export PKG_CONFIG_LIBDIR 28760 fi 28761 $PKGCONFIG --libs-only-l --libs-only-other rustls 2>/dev/null` 28762 28763 SSL_LDFLAGS=` 28764 if test -n "$RUSTLS_PCDIR"; then 28765 PKG_CONFIG_LIBDIR="$RUSTLS_PCDIR" 28766 export PKG_CONFIG_LIBDIR 28767 fi 28768 $PKGCONFIG --libs-only-L rustls 2>/dev/null` 28769 28770 SSL_CPPFLAGS=` 28771 if test -n "$RUSTLS_PCDIR"; then 28772 PKG_CONFIG_LIBDIR="$RUSTLS_PCDIR" 28773 export PKG_CONFIG_LIBDIR 28774 fi 28775 $PKGCONFIG --cflags-only-I rustls 2>/dev/null` 28776 28777 28778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5 28779printf "%s\n" "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;} 28780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5 28781printf "%s\n" "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;} 28782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5 28783printf "%s\n" "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;} 28784 28785 LIB_RUSTLS=`echo $SSL_LDFLAGS | sed -e 's/^-L//'` 28786 28787 LIBS="$SSL_LIBS $LIBS" 28788 ssl_msg="rustls" 28789 28790printf "%s\n" "#define USE_RUSTLS 1" >>confdefs.h 28791 28792 USE_RUSTLS=1 28793 28794 USE_RUSTLS="yes" 28795 RUSTLS_ENABLED=1 28796 test rustls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 28797 else 28798 as_fn_error $? "pkg-config: Could not find Rustls" "$LINENO" 5 28799 fi 28800 28801 else 28802 LIBS="-lrustls -lpthread -ldl -lm $LIBS" 28803 fi 28804 28805 CPPFLAGS="$CLEAN_CPPFLAGS $SSL_CPPFLAGS" 28806 LDFLAGS="$CLAN_LDFLAGS $SSL_LDFLAGS" 28807 28808 if test "x$USE_RUSTLS" = "xyes"; then 28809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected Rustls" >&5 28810printf "%s\n" "$as_me: detected Rustls" >&6;} 28811 check_for_ca_bundle=1 28812 28813 if test -n "$LIB_RUSTLS"; then 28814 if test "x$cross_compiling" != "xyes"; then 28815 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$LIB_RUSTLS" 28816 export CURL_LIBRARY_PATH 28817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $LIB_RUSTLS to CURL_LIBRARY_PATH" >&5 28818printf "%s\n" "$as_me: Added $LIB_RUSTLS to CURL_LIBRARY_PATH" >&6;} 28819 fi 28820 fi 28821 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE rustls" 28822 fi 28823 28824 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg" 28825 28826 if test X"$OPT_RUSTLS" != Xno && 28827 test "$RUSTLS_ENABLED" != "1"; then 28828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OPT_RUSTLS: $OPT_RUSTLS" >&5 28829printf "%s\n" "$as_me: OPT_RUSTLS: $OPT_RUSTLS" >&6;} 28830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: RUSTLS_ENABLED: $RUSTLS_ENABLED" >&5 28831printf "%s\n" "$as_me: RUSTLS_ENABLED: $RUSTLS_ENABLED" >&6;} 28832 as_fn_error $? "--with-rustls was given but Rustls could not be detected" "$LINENO" 5 28833 fi 28834fi 28835 28836 28837if test "x$USE_WIN32_CRYPTO" = "x1" -o "x$USE_SCHANNEL" = "x1"; then 28838 LIBS="-ladvapi32 -lcrypt32 $LIBS" 28839fi 28840 28841if test "x$curl_cv_native_windows" = "xyes"; then 28842 LIBS="-lbcrypt $LIBS" 28843fi 28844 28845case "x$SSL_DISABLED$OPENSSL_ENABLED$GNUTLS_ENABLED$MBEDTLS_ENABLED$WOLFSSL_ENABLED$SCHANNEL_ENABLED$SECURETRANSPORT_ENABLED$BEARSSL_ENABLED$RUSTLS_ENABLED" in 28846 x) 28847 as_fn_error $? "TLS not detected, you will not be able to use HTTPS, FTPS, NTLM and more. 28848Use --with-openssl, --with-gnutls, --with-wolfssl, --with-mbedtls, --with-schannel, --with-secure-transport, --with-amissl, --with-bearssl or --with-rustls to address this." "$LINENO" 5 28849 ;; 28850 x1) 28851 # one SSL backend is enabled 28852 28853 SSL_ENABLED="1" 28854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: built with one SSL backend" >&5 28855printf "%s\n" "$as_me: built with one SSL backend" >&6;} 28856 ;; 28857 xD) 28858 # explicitly built without TLS 28859 ;; 28860 xD*) 28861 as_fn_error $? "--without-ssl has been set together with an explicit option to use an ssl library 28862(e.g. --with-openssl, --with-gnutls, --with-wolfssl, --with-mbedtls, --with-schannel, --with-secure-transport, --with-amissl, --with-bearssl, --with-rustls). 28863Since these are conflicting parameters, verify which is the desired one and drop the other." "$LINENO" 5 28864 ;; 28865 *) 28866 # more than one SSL backend is enabled 28867 28868 SSL_ENABLED="1" 28869 28870 CURL_WITH_MULTI_SSL="1" 28871 28872printf "%s\n" "#define CURL_WITH_MULTI_SSL 1" >>confdefs.h 28873 28874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: built with multiple SSL backends" >&5 28875printf "%s\n" "$as_me: built with multiple SSL backends" >&6;} 28876 ;; 28877esac 28878 28879if test -n "$ssl_backends"; then 28880 curl_ssl_msg="enabled ($ssl_backends)" 28881fi 28882 28883if test no = "$VALID_DEFAULT_SSL_BACKEND"; then 28884 if test -n "$SSL_ENABLED"; then 28885 as_fn_error $? "Default SSL backend $DEFAULT_SSL_BACKEND not enabled!" "$LINENO" 5 28886 else 28887 as_fn_error $? "Default SSL backend requires SSL!" "$LINENO" 5 28888 fi 28889elif test yes = "$VALID_DEFAULT_SSL_BACKEND"; then 28890 28891printf "%s\n" "#define CURL_DEFAULT_SSL_BACKEND \"$DEFAULT_SSL_BACKEND\"" >>confdefs.h 28892 28893fi 28894 28895 28896if test -n "$check_for_ca_bundle"; then 28897 28898 28899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5 28900printf %s "checking default CA cert bundle/path... " >&6; } 28901 28902 28903# Check whether --with-ca-bundle was given. 28904if test ${with_ca_bundle+y} 28905then : 28906 withval=$with_ca_bundle; 28907 want_ca="$withval" 28908 if test "x$want_ca" = "xyes"; then 28909 as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5 28910 fi 28911 28912else $as_nop 28913 want_ca="unset" 28914fi 28915 28916 28917# Check whether --with-ca-path was given. 28918if test ${with_ca_path+y} 28919then : 28920 withval=$with_ca_path; 28921 want_capath="$withval" 28922 if test "x$want_capath" = "xyes"; then 28923 as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5 28924 fi 28925 28926else $as_nop 28927 want_capath="unset" 28928fi 28929 28930 28931 ca_warning=" (warning: certs not found)" 28932 capath_warning=" (warning: certs not found)" 28933 check_capath="" 28934 28935 if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \ 28936 "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then 28937 ca="$want_ca" 28938 capath="$want_capath" 28939 elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then 28940 ca="$want_ca" 28941 capath="no" 28942 elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then 28943 capath="$want_capath" 28944 ca="no" 28945 else 28946 ca="no" 28947 capath="no" 28948 if test "x$cross_compiling" != "xyes" -a \ 28949 "x$curl_cv_native_windows" != "xyes"; then 28950 if test "x$want_ca" = "xunset"; then 28951 if test "x$prefix" != xNONE; then 28952 cac="${prefix}/share/curl/curl-ca-bundle.crt" 28953 else 28954 cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt" 28955 fi 28956 28957 for a in /etc/ssl/certs/ca-certificates.crt \ 28958 /etc/pki/tls/certs/ca-bundle.crt \ 28959 /usr/share/ssl/certs/ca-bundle.crt \ 28960 /usr/local/share/certs/ca-root-nss.crt \ 28961 /etc/ssl/cert.pem \ 28962 "$cac"; do 28963 if test -f "$a"; then 28964 ca="$a" 28965 break 28966 fi 28967 done 28968 fi 28969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: want $want_capath ca $ca" >&5 28970printf "%s\n" "$as_me: want $want_capath ca $ca" >&6;} 28971 if test "x$want_capath" = "xunset"; then 28972 check_capath="/etc/ssl/certs" 28973 fi 28974 else 28975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5 28976printf "%s\n" "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;} 28977 fi 28978 fi 28979 28980 if test "x$ca" = "xno" || test -f "$ca"; then 28981 ca_warning="" 28982 fi 28983 28984 if test "x$capath" != "xno"; then 28985 check_capath="$capath" 28986 fi 28987 28988 if test ! -z "$check_capath"; then 28989 for a in "$check_capath"; do 28990 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 28991 if test "x$capath" = "xno"; then 28992 capath="$a" 28993 fi 28994 capath_warning="" 28995 break 28996 fi 28997 done 28998 fi 28999 29000 if test "x$capath" = "xno"; then 29001 capath_warning="" 29002 fi 29003 29004 if test "x$ca" != "xno"; then 29005 CURL_CA_BUNDLE="$ca" 29006 29007printf "%s\n" "#define CURL_CA_BUNDLE \"$ca\"" >>confdefs.h 29008 29009 29010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ca" >&5 29011printf "%s\n" "$ca" >&6; } 29012 fi 29013 if test "x$capath" != "xno"; then 29014 CURL_CA_PATH="\"$capath\"" 29015 29016printf "%s\n" "#define CURL_CA_PATH \"$capath\"" >>confdefs.h 29017 29018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5 29019printf "%s\n" "$capath (capath)" >&6; } 29020 fi 29021 if test "x$ca" = "xno" && test "x$capath" = "xno"; then 29022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29023printf "%s\n" "no" >&6; } 29024 fi 29025 29026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use built-in CA store of SSL library" >&5 29027printf %s "checking whether to use built-in CA store of SSL library... " >&6; } 29028 29029# Check whether --with-ca-fallback was given. 29030if test ${with_ca_fallback+y} 29031then : 29032 withval=$with_ca_fallback; 29033 if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then 29034 as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5 29035 fi 29036 29037else $as_nop 29038 with_ca_fallback="no" 29039fi 29040 29041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5 29042printf "%s\n" "$with_ca_fallback" >&6; } 29043 if test "x$with_ca_fallback" = "xyes"; then 29044 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then 29045 as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5 29046 fi 29047 29048printf "%s\n" "#define CURL_CA_FALLBACK 1" >>confdefs.h 29049 29050 fi 29051 29052 29053 29054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CA cert bundle path to embed in the curl tool" >&5 29055printf %s "checking CA cert bundle path to embed in the curl tool... " >&6; } 29056 29057 29058# Check whether --with-ca-embed was given. 29059if test ${with_ca_embed+y} 29060then : 29061 withval=$with_ca_embed; 29062 want_ca_embed="$withval" 29063 if test "x$want_ca_embed" = "xyes"; then 29064 as_fn_error $? "--with-ca-embed=FILE requires a path to the CA bundle" "$LINENO" 5 29065 fi 29066 29067else $as_nop 29068 want_ca_embed="unset" 29069fi 29070 29071 29072 CURL_CA_EMBED='' 29073 if test "x$want_ca_embed" != "xno" -a "x$want_ca_embed" != "xunset" -a -f "$want_ca_embed"; then 29074 CURL_CA_EMBED="$want_ca_embed" 29075 29076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_ca_embed" >&5 29077printf "%s\n" "$want_ca_embed" >&6; } 29078 else 29079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29080printf "%s\n" "no" >&6; } 29081 fi 29082 29083fi 29084 29085 if test "x$CURL_CA_EMBED" != "x"; then 29086 CURL_CA_EMBED_SET_TRUE= 29087 CURL_CA_EMBED_SET_FALSE='#' 29088else 29089 CURL_CA_EMBED_SET_TRUE='#' 29090 CURL_CA_EMBED_SET_FALSE= 29091fi 29092 29093 29094 29095if test "$curl_cv_native_windows" = "yes"; then 29096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable unsafe CA bundle search in PATH on Windows" >&5 29097printf %s "checking whether to enable unsafe CA bundle search in PATH on Windows... " >&6; } 29098 # Check whether --enable-ca-search was given. 29099if test ${enable_ca_search+y} 29100then : 29101 enableval=$enable_ca_search; case "$enableval" in 29102 no) 29103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29104printf "%s\n" "no" >&6; } 29105 29106printf "%s\n" "#define CURL_DISABLE_CA_SEARCH 1" >>confdefs.h 29107 29108 ;; 29109 *) 29110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29111printf "%s\n" "yes" >&6; } 29112 ;; 29113 esac 29114else $as_nop 29115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29116printf "%s\n" "yes" >&6; } 29117 29118fi 29119 29120fi 29121 29122 29123if test "$curl_cv_native_windows" = "yes"; then 29124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable safe CA bundle search (within the curl tool directory) on Windows" >&5 29125printf %s "checking whether to enable safe CA bundle search (within the curl tool directory) on Windows... " >&6; } 29126 # Check whether --enable-ca-search-safe was given. 29127if test ${enable_ca_search_safe+y} 29128then : 29129 enableval=$enable_ca_search_safe; case "$enableval" in 29130 yes) 29131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29132printf "%s\n" "yes" >&6; } 29133 29134printf "%s\n" "#define CURL_CA_SEARCH_SAFE 1" >>confdefs.h 29135 29136 ;; 29137 *) 29138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29139printf "%s\n" "no" >&6; } 29140 ;; 29141 esac 29142else $as_nop 29143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29144printf "%s\n" "no" >&6; } 29145 29146fi 29147 29148fi 29149 29150 29151OPT_LIBPSL=off 29152 29153# Check whether --with-libpsl was given. 29154if test ${with_libpsl+y} 29155then : 29156 withval=$with_libpsl; OPT_LIBPSL=$withval 29157fi 29158 29159 29160if test X"$OPT_LIBPSL" != Xno; then 29161 CLEANLDFLAGS="$LDFLAGS" 29162 CLEANCPPFLAGS="$CPPFLAGS" 29163 CLEANLIBS="$LIBS" 29164 29165 case "$OPT_LIBPSL" in 29166 yes|off) 29167 29168 if test -n "$PKG_CONFIG"; then 29169 PKGCONFIG="$PKG_CONFIG" 29170 else 29171 if test -n "$ac_tool_prefix"; then 29172 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 29173set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 29174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29175printf %s "checking for $ac_word... " >&6; } 29176if test ${ac_cv_path_PKGCONFIG+y} 29177then : 29178 printf %s "(cached) " >&6 29179else $as_nop 29180 case $PKGCONFIG in 29181 [\\/]* | ?:[\\/]*) 29182 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 29183 ;; 29184 *) 29185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29186as_dummy="$PATH:/usr/bin:/usr/local/bin" 29187for as_dir in $as_dummy 29188do 29189 IFS=$as_save_IFS 29190 case $as_dir in #((( 29191 '') as_dir=./ ;; 29192 */) ;; 29193 *) as_dir=$as_dir/ ;; 29194 esac 29195 for ac_exec_ext in '' $ac_executable_extensions; do 29196 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 29197 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 29198 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 29199 break 2 29200 fi 29201done 29202 done 29203IFS=$as_save_IFS 29204 29205 ;; 29206esac 29207fi 29208PKGCONFIG=$ac_cv_path_PKGCONFIG 29209if test -n "$PKGCONFIG"; then 29210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 29211printf "%s\n" "$PKGCONFIG" >&6; } 29212else 29213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29214printf "%s\n" "no" >&6; } 29215fi 29216 29217 29218fi 29219if test -z "$ac_cv_path_PKGCONFIG"; then 29220 ac_pt_PKGCONFIG=$PKGCONFIG 29221 # Extract the first word of "pkg-config", so it can be a program name with args. 29222set dummy pkg-config; ac_word=$2 29223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29224printf %s "checking for $ac_word... " >&6; } 29225if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 29226then : 29227 printf %s "(cached) " >&6 29228else $as_nop 29229 case $ac_pt_PKGCONFIG in 29230 [\\/]* | ?:[\\/]*) 29231 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 29232 ;; 29233 *) 29234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29235as_dummy="$PATH:/usr/bin:/usr/local/bin" 29236for as_dir in $as_dummy 29237do 29238 IFS=$as_save_IFS 29239 case $as_dir in #((( 29240 '') as_dir=./ ;; 29241 */) ;; 29242 *) as_dir=$as_dir/ ;; 29243 esac 29244 for ac_exec_ext in '' $ac_executable_extensions; do 29245 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 29246 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 29247 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 29248 break 2 29249 fi 29250done 29251 done 29252IFS=$as_save_IFS 29253 29254 ;; 29255esac 29256fi 29257ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 29258if test -n "$ac_pt_PKGCONFIG"; then 29259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 29260printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 29261else 29262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29263printf "%s\n" "no" >&6; } 29264fi 29265 29266 if test "x$ac_pt_PKGCONFIG" = x; then 29267 PKGCONFIG="no" 29268 else 29269 case $cross_compiling:$ac_tool_warned in 29270yes:) 29271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 29272printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 29273ac_tool_warned=yes ;; 29274esac 29275 PKGCONFIG=$ac_pt_PKGCONFIG 29276 fi 29277else 29278 PKGCONFIG="$ac_cv_path_PKGCONFIG" 29279fi 29280 29281 fi 29282 29283 if test "x$PKGCONFIG" != "xno"; then 29284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpsl options with pkg-config" >&5 29285printf %s "checking for libpsl options with pkg-config... " >&6; } 29286 itexists=` 29287 if test -n ""; then 29288 PKG_CONFIG_LIBDIR="" 29289 export PKG_CONFIG_LIBDIR 29290 fi 29291 $PKGCONFIG --exists libpsl >/dev/null 2>&1 && echo 1` 29292 29293 if test -z "$itexists"; then 29294 PKGCONFIG="no" 29295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29296printf "%s\n" "no" >&6; } 29297 else 29298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 29299printf "%s\n" "found" >&6; } 29300 fi 29301 fi 29302 29303 29304 if test "$PKGCONFIG" != "no"; then 29305 LIB_PSL=`$PKGCONFIG --libs-only-l libpsl` 29306 LD_PSL=`$PKGCONFIG --libs-only-L libpsl` 29307 CPP_PSL=`$PKGCONFIG --cflags-only-I libpsl` 29308 else 29309 LIB_PSL="-lpsl" 29310 fi 29311 29312 ;; 29313 *) 29314 LIB_PSL="-lpsl" 29315 PREFIX_PSL=$OPT_LIBPSL 29316 ;; 29317 esac 29318 29319 if test -n "$PREFIX_PSL"; then 29320 LD_PSL=-L${PREFIX_PSL}/lib$libsuff 29321 CPP_PSL=-I${PREFIX_PSL}/include 29322 fi 29323 29324 LDFLAGS="$LDFLAGS $LD_PSL" 29325 CPPFLAGS="$CPPFLAGS $CPP_PSL" 29326 LIBS="$LIB_PSL $LIBS" 29327 29328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for psl_builtin in -lpsl" >&5 29329printf %s "checking for psl_builtin in -lpsl... " >&6; } 29330if test ${ac_cv_lib_psl_psl_builtin+y} 29331then : 29332 printf %s "(cached) " >&6 29333else $as_nop 29334 ac_check_lib_save_LIBS=$LIBS 29335LIBS="-lpsl $LIBS" 29336cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29337/* end confdefs.h. */ 29338 29339 29340#ifdef __cplusplus 29341extern "C" 29342#endif 29343char psl_builtin (); 29344int main(void) 29345{ 29346return psl_builtin (); 29347 ; 29348 return 0; 29349} 29350_ACEOF 29351if ac_fn_c_try_link "$LINENO" 29352then : 29353 ac_cv_lib_psl_psl_builtin=yes 29354else $as_nop 29355 ac_cv_lib_psl_psl_builtin=no 29356fi 29357rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29358 conftest$ac_exeext conftest.$ac_ext 29359LIBS=$ac_check_lib_save_LIBS 29360fi 29361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psl_psl_builtin" >&5 29362printf "%s\n" "$ac_cv_lib_psl_psl_builtin" >&6; } 29363if test "x$ac_cv_lib_psl_psl_builtin" = xyes 29364then : 29365 29366 for ac_header in libpsl.h 29367do : 29368 ac_fn_c_check_header_compile "$LINENO" "libpsl.h" "ac_cv_header_libpsl_h" "$ac_includes_default" 29369if test "x$ac_cv_header_libpsl_h" = xyes 29370then : 29371 printf "%s\n" "#define HAVE_LIBPSL_H 1" >>confdefs.h 29372 curl_psl_msg="enabled" 29373 LIBPSL_ENABLED=1 29374 29375printf "%s\n" "#define USE_LIBPSL 1" >>confdefs.h 29376 29377 USE_LIBPSL=1 29378 29379 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE libpsl" 29380 29381fi 29382 29383done 29384 29385else $as_nop 29386 LDFLAGS=$CLEANLDFLAGS 29387 CPPFLAGS=$CLEANCPPFLAGS 29388 LIBS=$CLEANLIBS 29389 29390fi 29391 29392 29393 if test "$LIBPSL_ENABLED" != "1"; then 29394 as_fn_error $? "libpsl libs and/or directories were not found where specified!" "$LINENO" 5 29395 fi 29396fi 29397 if test "$curl_psl_msg" = "enabled"; then 29398 USE_LIBPSL_TRUE= 29399 USE_LIBPSL_FALSE='#' 29400else 29401 USE_LIBPSL_TRUE='#' 29402 USE_LIBPSL_FALSE= 29403fi 29404 29405 29406 29407 29408 29409# Check whether --with-libgsasl was given. 29410if test ${with_libgsasl+y} 29411then : 29412 withval=$with_libgsasl; with_libgsasl=$withval 29413else $as_nop 29414 with_libgsasl=yes 29415fi 29416 29417if test $with_libgsasl != "no"; then 29418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gsasl_init" >&5 29419printf %s "checking for library containing gsasl_init... " >&6; } 29420if test ${ac_cv_search_gsasl_init+y} 29421then : 29422 printf %s "(cached) " >&6 29423else $as_nop 29424 ac_func_search_save_LIBS=$LIBS 29425cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29426/* end confdefs.h. */ 29427 29428 29429#ifdef __cplusplus 29430extern "C" 29431#endif 29432char gsasl_init (); 29433int main(void) 29434{ 29435return gsasl_init (); 29436 ; 29437 return 0; 29438} 29439_ACEOF 29440for ac_lib in '' gsasl 29441do 29442 if test -z "$ac_lib"; then 29443 ac_res="none required" 29444 else 29445 ac_res=-l$ac_lib 29446 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 29447 fi 29448 if ac_fn_c_try_link "$LINENO" 29449then : 29450 ac_cv_search_gsasl_init=$ac_res 29451fi 29452rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29453 conftest$ac_exeext 29454 if test ${ac_cv_search_gsasl_init+y} 29455then : 29456 break 29457fi 29458done 29459if test ${ac_cv_search_gsasl_init+y} 29460then : 29461 29462else $as_nop 29463 ac_cv_search_gsasl_init=no 29464fi 29465rm conftest.$ac_ext 29466LIBS=$ac_func_search_save_LIBS 29467fi 29468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gsasl_init" >&5 29469printf "%s\n" "$ac_cv_search_gsasl_init" >&6; } 29470ac_res=$ac_cv_search_gsasl_init 29471if test "$ac_res" != no 29472then : 29473 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 29474 curl_gsasl_msg="enabled"; 29475 29476printf "%s\n" "#define USE_GSASL 1" >>confdefs.h 29477 29478 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE libgsasl" 29479 29480else $as_nop 29481 curl_gsasl_msg="no (libgsasl not found)"; 29482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libgsasl was not found" >&5 29483printf "%s\n" "$as_me: WARNING: libgsasl was not found" >&2;} 29484 29485 29486fi 29487 29488fi 29489 if test "$curl_gsasl_msg" = "enabled"; then 29490 USE_GSASL_TRUE= 29491 USE_GSASL_FALSE='#' 29492else 29493 USE_GSASL_TRUE='#' 29494 USE_GSASL_FALSE= 29495fi 29496 29497 29498 29499# Check whether --with-libmetalink was given. 29500if test ${with_libmetalink+y} 29501then : 29502 withval=$with_libmetalink; as_fn_error $? "--with-libmetalink and --without-libmetalink no longer work!" "$LINENO" 5 29503fi 29504 29505 29506 29507OPT_LIBSSH2=off 29508 29509# Check whether --with-libssh2 was given. 29510if test ${with_libssh2+y} 29511then : 29512 withval=$with_libssh2; OPT_LIBSSH2=$withval 29513else $as_nop 29514 OPT_LIBSSH2=no 29515fi 29516 29517 29518 29519OPT_LIBSSH=off 29520 29521# Check whether --with-libssh was given. 29522if test ${with_libssh+y} 29523then : 29524 withval=$with_libssh; OPT_LIBSSH=$withval 29525else $as_nop 29526 OPT_LIBSSH=no 29527fi 29528 29529 29530OPT_WOLFSSH=off 29531 29532# Check whether --with-wolfssh was given. 29533if test ${with_wolfssh+y} 29534then : 29535 withval=$with_wolfssh; OPT_WOLFSSH=$withval 29536else $as_nop 29537 OPT_WOLFSSH=no 29538fi 29539 29540 29541if test X"$OPT_LIBSSH2" != Xno; then 29542 CLEANLDFLAGS="$LDFLAGS" 29543 CLEANCPPFLAGS="$CPPFLAGS" 29544 CLEANLIBS="$LIBS" 29545 29546 case "$OPT_LIBSSH2" in 29547 yes) 29548 29549 if test -n "$PKG_CONFIG"; then 29550 PKGCONFIG="$PKG_CONFIG" 29551 else 29552 if test -n "$ac_tool_prefix"; then 29553 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 29554set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 29555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29556printf %s "checking for $ac_word... " >&6; } 29557if test ${ac_cv_path_PKGCONFIG+y} 29558then : 29559 printf %s "(cached) " >&6 29560else $as_nop 29561 case $PKGCONFIG in 29562 [\\/]* | ?:[\\/]*) 29563 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 29564 ;; 29565 *) 29566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29567as_dummy="$PATH:/usr/bin:/usr/local/bin" 29568for as_dir in $as_dummy 29569do 29570 IFS=$as_save_IFS 29571 case $as_dir in #((( 29572 '') as_dir=./ ;; 29573 */) ;; 29574 *) as_dir=$as_dir/ ;; 29575 esac 29576 for ac_exec_ext in '' $ac_executable_extensions; do 29577 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 29578 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 29579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 29580 break 2 29581 fi 29582done 29583 done 29584IFS=$as_save_IFS 29585 29586 ;; 29587esac 29588fi 29589PKGCONFIG=$ac_cv_path_PKGCONFIG 29590if test -n "$PKGCONFIG"; then 29591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 29592printf "%s\n" "$PKGCONFIG" >&6; } 29593else 29594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29595printf "%s\n" "no" >&6; } 29596fi 29597 29598 29599fi 29600if test -z "$ac_cv_path_PKGCONFIG"; then 29601 ac_pt_PKGCONFIG=$PKGCONFIG 29602 # Extract the first word of "pkg-config", so it can be a program name with args. 29603set dummy pkg-config; ac_word=$2 29604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29605printf %s "checking for $ac_word... " >&6; } 29606if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 29607then : 29608 printf %s "(cached) " >&6 29609else $as_nop 29610 case $ac_pt_PKGCONFIG in 29611 [\\/]* | ?:[\\/]*) 29612 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 29613 ;; 29614 *) 29615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29616as_dummy="$PATH:/usr/bin:/usr/local/bin" 29617for as_dir in $as_dummy 29618do 29619 IFS=$as_save_IFS 29620 case $as_dir in #((( 29621 '') as_dir=./ ;; 29622 */) ;; 29623 *) as_dir=$as_dir/ ;; 29624 esac 29625 for ac_exec_ext in '' $ac_executable_extensions; do 29626 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 29627 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 29628 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 29629 break 2 29630 fi 29631done 29632 done 29633IFS=$as_save_IFS 29634 29635 ;; 29636esac 29637fi 29638ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 29639if test -n "$ac_pt_PKGCONFIG"; then 29640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 29641printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 29642else 29643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29644printf "%s\n" "no" >&6; } 29645fi 29646 29647 if test "x$ac_pt_PKGCONFIG" = x; then 29648 PKGCONFIG="no" 29649 else 29650 case $cross_compiling:$ac_tool_warned in 29651yes:) 29652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 29653printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 29654ac_tool_warned=yes ;; 29655esac 29656 PKGCONFIG=$ac_pt_PKGCONFIG 29657 fi 29658else 29659 PKGCONFIG="$ac_cv_path_PKGCONFIG" 29660fi 29661 29662 fi 29663 29664 if test "x$PKGCONFIG" != "xno"; then 29665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5 29666printf %s "checking for libssh2 options with pkg-config... " >&6; } 29667 itexists=` 29668 if test -n ""; then 29669 PKG_CONFIG_LIBDIR="" 29670 export PKG_CONFIG_LIBDIR 29671 fi 29672 $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1` 29673 29674 if test -z "$itexists"; then 29675 PKGCONFIG="no" 29676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29677printf "%s\n" "no" >&6; } 29678 else 29679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 29680printf "%s\n" "found" >&6; } 29681 fi 29682 fi 29683 29684 29685 if test "$PKGCONFIG" != "no"; then 29686 LIB_SSH2=`$PKGCONFIG --libs-only-l libssh2` 29687 LD_SSH2=`$PKGCONFIG --libs-only-L libssh2` 29688 CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2` 29689 version=`$PKGCONFIG --modversion libssh2` 29690 DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/^-L//'` 29691 fi 29692 29693 ;; 29694 off) 29695 ;; 29696 *) 29697 PREFIX_SSH2=$OPT_LIBSSH2 29698 ;; 29699 esac 29700 29701 if test -n "$PREFIX_SSH2"; then 29702 LIB_SSH2="-lssh2" 29703 LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff 29704 CPP_SSH2=-I${PREFIX_SSH2}/include 29705 DIR_SSH2=${PREFIX_SSH2}/lib$libsuff 29706 fi 29707 29708 LDFLAGS="$LDFLAGS $LD_SSH2" 29709 CPPFLAGS="$CPPFLAGS $CPP_SSH2" 29710 LIBS="$LIB_SSH2 $LIBS" 29711 29712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh2_session_block_directions in -lssh2" >&5 29713printf %s "checking for libssh2_session_block_directions in -lssh2... " >&6; } 29714if test ${ac_cv_lib_ssh2_libssh2_session_block_directions+y} 29715then : 29716 printf %s "(cached) " >&6 29717else $as_nop 29718 ac_check_lib_save_LIBS=$LIBS 29719LIBS="-lssh2 $LIBS" 29720cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29721/* end confdefs.h. */ 29722 29723 29724#ifdef __cplusplus 29725extern "C" 29726#endif 29727char libssh2_session_block_directions (); 29728int main(void) 29729{ 29730return libssh2_session_block_directions (); 29731 ; 29732 return 0; 29733} 29734_ACEOF 29735if ac_fn_c_try_link "$LINENO" 29736then : 29737 ac_cv_lib_ssh2_libssh2_session_block_directions=yes 29738else $as_nop 29739 ac_cv_lib_ssh2_libssh2_session_block_directions=no 29740fi 29741rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29742 conftest$ac_exeext conftest.$ac_ext 29743LIBS=$ac_check_lib_save_LIBS 29744fi 29745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_session_block_directions" >&5 29746printf "%s\n" "$ac_cv_lib_ssh2_libssh2_session_block_directions" >&6; } 29747if test "x$ac_cv_lib_ssh2_libssh2_session_block_directions" = xyes 29748then : 29749 printf "%s\n" "#define HAVE_LIBSSH2 1" >>confdefs.h 29750 29751 LIBS="-lssh2 $LIBS" 29752 29753fi 29754 29755 29756 ac_fn_c_check_header_compile "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default" 29757if test "x$ac_cv_header_libssh2_h" = xyes 29758then : 29759 curl_ssh_msg="enabled (libssh2)" 29760 LIBSSH2_ENABLED=1 29761 29762printf "%s\n" "#define USE_LIBSSH2 1" >>confdefs.h 29763 29764 USE_LIBSSH2=1 29765 29766 29767fi 29768 29769 29770 if test X"$OPT_LIBSSH2" != Xoff && 29771 test "$LIBSSH2_ENABLED" != "1"; then 29772 as_fn_error $? "libssh2 libs and/or directories were not found where specified!" "$LINENO" 5 29773 fi 29774 29775 if test "$LIBSSH2_ENABLED" = "1"; then 29776 if test -n "$DIR_SSH2"; then 29777 29778 if test "x$cross_compiling" != "xyes"; then 29779 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH2" 29780 export CURL_LIBRARY_PATH 29781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&5 29782printf "%s\n" "$as_me: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&6;} 29783 fi 29784 fi 29785 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE libssh2" 29786 else 29787 LDFLAGS=$CLEANLDFLAGS 29788 CPPFLAGS=$CLEANCPPFLAGS 29789 LIBS=$CLEANLIBS 29790 fi 29791elif test X"$OPT_LIBSSH" != Xno; then 29792 CLEANLDFLAGS="$LDFLAGS" 29793 CLEANCPPFLAGS="$CPPFLAGS" 29794 CLEANLIBS="$LIBS" 29795 29796 case "$OPT_LIBSSH" in 29797 yes) 29798 29799 if test -n "$PKG_CONFIG"; then 29800 PKGCONFIG="$PKG_CONFIG" 29801 else 29802 if test -n "$ac_tool_prefix"; then 29803 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 29804set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 29805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29806printf %s "checking for $ac_word... " >&6; } 29807if test ${ac_cv_path_PKGCONFIG+y} 29808then : 29809 printf %s "(cached) " >&6 29810else $as_nop 29811 case $PKGCONFIG in 29812 [\\/]* | ?:[\\/]*) 29813 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 29814 ;; 29815 *) 29816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29817as_dummy="$PATH:/usr/bin:/usr/local/bin" 29818for as_dir in $as_dummy 29819do 29820 IFS=$as_save_IFS 29821 case $as_dir in #((( 29822 '') as_dir=./ ;; 29823 */) ;; 29824 *) as_dir=$as_dir/ ;; 29825 esac 29826 for ac_exec_ext in '' $ac_executable_extensions; do 29827 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 29828 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 29829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 29830 break 2 29831 fi 29832done 29833 done 29834IFS=$as_save_IFS 29835 29836 ;; 29837esac 29838fi 29839PKGCONFIG=$ac_cv_path_PKGCONFIG 29840if test -n "$PKGCONFIG"; then 29841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 29842printf "%s\n" "$PKGCONFIG" >&6; } 29843else 29844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29845printf "%s\n" "no" >&6; } 29846fi 29847 29848 29849fi 29850if test -z "$ac_cv_path_PKGCONFIG"; then 29851 ac_pt_PKGCONFIG=$PKGCONFIG 29852 # Extract the first word of "pkg-config", so it can be a program name with args. 29853set dummy pkg-config; ac_word=$2 29854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29855printf %s "checking for $ac_word... " >&6; } 29856if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 29857then : 29858 printf %s "(cached) " >&6 29859else $as_nop 29860 case $ac_pt_PKGCONFIG in 29861 [\\/]* | ?:[\\/]*) 29862 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 29863 ;; 29864 *) 29865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29866as_dummy="$PATH:/usr/bin:/usr/local/bin" 29867for as_dir in $as_dummy 29868do 29869 IFS=$as_save_IFS 29870 case $as_dir in #((( 29871 '') as_dir=./ ;; 29872 */) ;; 29873 *) as_dir=$as_dir/ ;; 29874 esac 29875 for ac_exec_ext in '' $ac_executable_extensions; do 29876 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 29877 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 29878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 29879 break 2 29880 fi 29881done 29882 done 29883IFS=$as_save_IFS 29884 29885 ;; 29886esac 29887fi 29888ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 29889if test -n "$ac_pt_PKGCONFIG"; then 29890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 29891printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 29892else 29893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29894printf "%s\n" "no" >&6; } 29895fi 29896 29897 if test "x$ac_pt_PKGCONFIG" = x; then 29898 PKGCONFIG="no" 29899 else 29900 case $cross_compiling:$ac_tool_warned in 29901yes:) 29902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 29903printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 29904ac_tool_warned=yes ;; 29905esac 29906 PKGCONFIG=$ac_pt_PKGCONFIG 29907 fi 29908else 29909 PKGCONFIG="$ac_cv_path_PKGCONFIG" 29910fi 29911 29912 fi 29913 29914 if test "x$PKGCONFIG" != "xno"; then 29915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh options with pkg-config" >&5 29916printf %s "checking for libssh options with pkg-config... " >&6; } 29917 itexists=` 29918 if test -n ""; then 29919 PKG_CONFIG_LIBDIR="" 29920 export PKG_CONFIG_LIBDIR 29921 fi 29922 $PKGCONFIG --exists libssh >/dev/null 2>&1 && echo 1` 29923 29924 if test -z "$itexists"; then 29925 PKGCONFIG="no" 29926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 29927printf "%s\n" "no" >&6; } 29928 else 29929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 29930printf "%s\n" "found" >&6; } 29931 fi 29932 fi 29933 29934 29935 if test "$PKGCONFIG" != "no"; then 29936 LIB_SSH=`$PKGCONFIG --libs-only-l libssh` 29937 LD_SSH=`$PKGCONFIG --libs-only-L libssh` 29938 CPP_SSH=`$PKGCONFIG --cflags-only-I libssh` 29939 version=`$PKGCONFIG --modversion libssh` 29940 DIR_SSH=`echo $LD_SSH | $SED -e 's/^-L//'` 29941 fi 29942 29943 ;; 29944 off) 29945 ;; 29946 *) 29947 PREFIX_SSH=$OPT_LIBSSH 29948 ;; 29949 esac 29950 29951 if test -n "$PREFIX_SSH"; then 29952 LIB_SSH="-lssh" 29953 LD_SSH=-L${PREFIX_SSH}/lib$libsuff 29954 CPP_SSH=-I${PREFIX_SSH}/include 29955 DIR_SSH=${PREFIX_SSH}/lib$libsuff 29956 fi 29957 29958 LDFLAGS="$LDFLAGS $LD_SSH" 29959 CPPFLAGS="$CPPFLAGS $CPP_SSH" 29960 LIBS="$LIB_SSH $LIBS" 29961 29962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssh_new in -lssh" >&5 29963printf %s "checking for ssh_new in -lssh... " >&6; } 29964if test ${ac_cv_lib_ssh_ssh_new+y} 29965then : 29966 printf %s "(cached) " >&6 29967else $as_nop 29968 ac_check_lib_save_LIBS=$LIBS 29969LIBS="-lssh $LIBS" 29970cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29971/* end confdefs.h. */ 29972 29973 29974#ifdef __cplusplus 29975extern "C" 29976#endif 29977char ssh_new (); 29978int main(void) 29979{ 29980return ssh_new (); 29981 ; 29982 return 0; 29983} 29984_ACEOF 29985if ac_fn_c_try_link "$LINENO" 29986then : 29987 ac_cv_lib_ssh_ssh_new=yes 29988else $as_nop 29989 ac_cv_lib_ssh_ssh_new=no 29990fi 29991rm -f core conftest.err conftest.$ac_objext conftest.beam \ 29992 conftest$ac_exeext conftest.$ac_ext 29993LIBS=$ac_check_lib_save_LIBS 29994fi 29995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh_ssh_new" >&5 29996printf "%s\n" "$ac_cv_lib_ssh_ssh_new" >&6; } 29997if test "x$ac_cv_lib_ssh_ssh_new" = xyes 29998then : 29999 printf "%s\n" "#define HAVE_LIBSSH 1" >>confdefs.h 30000 30001 LIBS="-lssh $LIBS" 30002 30003fi 30004 30005 30006 ac_fn_c_check_header_compile "$LINENO" "libssh/libssh.h" "ac_cv_header_libssh_libssh_h" "$ac_includes_default" 30007if test "x$ac_cv_header_libssh_libssh_h" = xyes 30008then : 30009 curl_ssh_msg="enabled (libssh)" 30010 LIBSSH_ENABLED=1 30011 30012printf "%s\n" "#define USE_LIBSSH 1" >>confdefs.h 30013 30014 USE_LIBSSH=1 30015 30016 30017fi 30018 30019 30020 if test X"$OPT_LIBSSH" != Xoff && 30021 test "$LIBSSH_ENABLED" != "1"; then 30022 as_fn_error $? "libssh libs and/or directories were not found where specified!" "$LINENO" 5 30023 fi 30024 30025 if test "$LIBSSH_ENABLED" = "1"; then 30026 if test "$curl_cv_native_windows" = "yes"; then 30027 LIBS="-liphlpapi $LIBS" 30028 fi 30029 if test -n "$DIR_SSH"; then 30030 30031 if test "x$cross_compiling" != "xyes"; then 30032 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH" 30033 export CURL_LIBRARY_PATH 30034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH to CURL_LIBRARY_PATH" >&5 30035printf "%s\n" "$as_me: Added $DIR_SSH to CURL_LIBRARY_PATH" >&6;} 30036 fi 30037 fi 30038 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE libssh" 30039 else 30040 LDFLAGS=$CLEANLDFLAGS 30041 CPPFLAGS=$CLEANCPPFLAGS 30042 LIBS=$CLEANLIBS 30043 fi 30044elif test X"$OPT_WOLFSSH" != Xno; then 30045 CLEANLDFLAGS="$LDFLAGS" 30046 CLEANCPPFLAGS="$CPPFLAGS" 30047 CLEANLIBS="$LIBS" 30048 30049 if test "$OPT_WOLFSSH" != yes; then 30050 WOLFCONFIG="$OPT_WOLFSSH/bin/wolfssh-config" 30051 LDFLAGS="$LDFLAGS `$WOLFCONFIG --libs`" 30052 CPPFLAGS="$CPPFLAGS `$WOLFCONFIG --cflags`" 30053 fi 30054 30055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfSSH_Init in -lwolfssh" >&5 30056printf %s "checking for wolfSSH_Init in -lwolfssh... " >&6; } 30057if test ${ac_cv_lib_wolfssh_wolfSSH_Init+y} 30058then : 30059 printf %s "(cached) " >&6 30060else $as_nop 30061 ac_check_lib_save_LIBS=$LIBS 30062LIBS="-lwolfssh $LIBS" 30063cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30064/* end confdefs.h. */ 30065 30066 30067#ifdef __cplusplus 30068extern "C" 30069#endif 30070char wolfSSH_Init (); 30071int main(void) 30072{ 30073return wolfSSH_Init (); 30074 ; 30075 return 0; 30076} 30077_ACEOF 30078if ac_fn_c_try_link "$LINENO" 30079then : 30080 ac_cv_lib_wolfssh_wolfSSH_Init=yes 30081else $as_nop 30082 ac_cv_lib_wolfssh_wolfSSH_Init=no 30083fi 30084rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30085 conftest$ac_exeext conftest.$ac_ext 30086LIBS=$ac_check_lib_save_LIBS 30087fi 30088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wolfssh_wolfSSH_Init" >&5 30089printf "%s\n" "$ac_cv_lib_wolfssh_wolfSSH_Init" >&6; } 30090if test "x$ac_cv_lib_wolfssh_wolfSSH_Init" = xyes 30091then : 30092 printf "%s\n" "#define HAVE_LIBWOLFSSH 1" >>confdefs.h 30093 30094 LIBS="-lwolfssh $LIBS" 30095 30096fi 30097 30098 30099 for ac_header in wolfssh/ssh.h 30100do : 30101 ac_fn_c_check_header_compile "$LINENO" "wolfssh/ssh.h" "ac_cv_header_wolfssh_ssh_h" "$ac_includes_default" 30102if test "x$ac_cv_header_wolfssh_ssh_h" = xyes 30103then : 30104 printf "%s\n" "#define HAVE_WOLFSSH_SSH_H 1" >>confdefs.h 30105 curl_ssh_msg="enabled (wolfSSH)" 30106 WOLFSSH_ENABLED=1 30107 30108printf "%s\n" "#define USE_WOLFSSH 1" >>confdefs.h 30109 30110 USE_WOLFSSH=1 30111 30112 30113fi 30114 30115done 30116fi 30117 30118 30119OPT_LIBRTMP=off 30120 30121# Check whether --with-librtmp was given. 30122if test ${with_librtmp+y} 30123then : 30124 withval=$with_librtmp; OPT_LIBRTMP=$withval 30125fi 30126 30127 30128if test X"$OPT_LIBRTMP" != Xno; then 30129 CLEANLDFLAGS="$LDFLAGS" 30130 CLEANCPPFLAGS="$CPPFLAGS" 30131 CLEANLIBS="$LIBS" 30132 30133 case "$OPT_LIBRTMP" in 30134 yes) 30135 30136 if test -n "$PKG_CONFIG"; then 30137 PKGCONFIG="$PKG_CONFIG" 30138 else 30139 if test -n "$ac_tool_prefix"; then 30140 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 30141set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 30142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30143printf %s "checking for $ac_word... " >&6; } 30144if test ${ac_cv_path_PKGCONFIG+y} 30145then : 30146 printf %s "(cached) " >&6 30147else $as_nop 30148 case $PKGCONFIG in 30149 [\\/]* | ?:[\\/]*) 30150 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 30151 ;; 30152 *) 30153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30154as_dummy="$PATH:/usr/bin:/usr/local/bin" 30155for as_dir in $as_dummy 30156do 30157 IFS=$as_save_IFS 30158 case $as_dir in #((( 30159 '') as_dir=./ ;; 30160 */) ;; 30161 *) as_dir=$as_dir/ ;; 30162 esac 30163 for ac_exec_ext in '' $ac_executable_extensions; do 30164 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 30165 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 30166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 30167 break 2 30168 fi 30169done 30170 done 30171IFS=$as_save_IFS 30172 30173 ;; 30174esac 30175fi 30176PKGCONFIG=$ac_cv_path_PKGCONFIG 30177if test -n "$PKGCONFIG"; then 30178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 30179printf "%s\n" "$PKGCONFIG" >&6; } 30180else 30181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30182printf "%s\n" "no" >&6; } 30183fi 30184 30185 30186fi 30187if test -z "$ac_cv_path_PKGCONFIG"; then 30188 ac_pt_PKGCONFIG=$PKGCONFIG 30189 # Extract the first word of "pkg-config", so it can be a program name with args. 30190set dummy pkg-config; ac_word=$2 30191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30192printf %s "checking for $ac_word... " >&6; } 30193if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 30194then : 30195 printf %s "(cached) " >&6 30196else $as_nop 30197 case $ac_pt_PKGCONFIG in 30198 [\\/]* | ?:[\\/]*) 30199 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 30200 ;; 30201 *) 30202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30203as_dummy="$PATH:/usr/bin:/usr/local/bin" 30204for as_dir in $as_dummy 30205do 30206 IFS=$as_save_IFS 30207 case $as_dir in #((( 30208 '') as_dir=./ ;; 30209 */) ;; 30210 *) as_dir=$as_dir/ ;; 30211 esac 30212 for ac_exec_ext in '' $ac_executable_extensions; do 30213 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 30214 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 30215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 30216 break 2 30217 fi 30218done 30219 done 30220IFS=$as_save_IFS 30221 30222 ;; 30223esac 30224fi 30225ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 30226if test -n "$ac_pt_PKGCONFIG"; then 30227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 30228printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 30229else 30230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30231printf "%s\n" "no" >&6; } 30232fi 30233 30234 if test "x$ac_pt_PKGCONFIG" = x; then 30235 PKGCONFIG="no" 30236 else 30237 case $cross_compiling:$ac_tool_warned in 30238yes:) 30239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 30240printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 30241ac_tool_warned=yes ;; 30242esac 30243 PKGCONFIG=$ac_pt_PKGCONFIG 30244 fi 30245else 30246 PKGCONFIG="$ac_cv_path_PKGCONFIG" 30247fi 30248 30249 fi 30250 30251 if test "x$PKGCONFIG" != "xno"; then 30252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5 30253printf %s "checking for librtmp options with pkg-config... " >&6; } 30254 itexists=` 30255 if test -n ""; then 30256 PKG_CONFIG_LIBDIR="" 30257 export PKG_CONFIG_LIBDIR 30258 fi 30259 $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1` 30260 30261 if test -z "$itexists"; then 30262 PKGCONFIG="no" 30263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30264printf "%s\n" "no" >&6; } 30265 else 30266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 30267printf "%s\n" "found" >&6; } 30268 fi 30269 fi 30270 30271 30272 if test "$PKGCONFIG" != "no"; then 30273 LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp` 30274 LD_RTMP=`$PKGCONFIG --libs-only-L librtmp` 30275 CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp` 30276 version=`$PKGCONFIG --modversion librtmp` 30277 DIR_RTMP=`echo $LD_RTMP | $SED -e 's/^-L//'` 30278 else 30279 as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5 30280 fi 30281 30282 ;; 30283 off) 30284 LIB_RTMP="-lrtmp" 30285 ;; 30286 *) 30287 LIB_RTMP="-lrtmp" 30288 PREFIX_RTMP=$OPT_LIBRTMP 30289 ;; 30290 esac 30291 30292 if test -n "$PREFIX_RTMP"; then 30293 LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff 30294 CPP_RTMP=-I${PREFIX_RTMP}/include 30295 DIR_RTMP=${PREFIX_RTMP}/lib$libsuff 30296 fi 30297 30298 LDFLAGS="$LDFLAGS $LD_RTMP" 30299 CPPFLAGS="$CPPFLAGS $CPP_RTMP" 30300 LIBS="$LIB_RTMP $LIBS" 30301 30302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5 30303printf %s "checking for RTMP_Init in -lrtmp... " >&6; } 30304if test ${ac_cv_lib_rtmp_RTMP_Init+y} 30305then : 30306 printf %s "(cached) " >&6 30307else $as_nop 30308 ac_check_lib_save_LIBS=$LIBS 30309LIBS="-lrtmp $LIBS" 30310cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30311/* end confdefs.h. */ 30312 30313 30314#ifdef __cplusplus 30315extern "C" 30316#endif 30317char RTMP_Init (); 30318int main(void) 30319{ 30320return RTMP_Init (); 30321 ; 30322 return 0; 30323} 30324_ACEOF 30325if ac_fn_c_try_link "$LINENO" 30326then : 30327 ac_cv_lib_rtmp_RTMP_Init=yes 30328else $as_nop 30329 ac_cv_lib_rtmp_RTMP_Init=no 30330fi 30331rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30332 conftest$ac_exeext conftest.$ac_ext 30333LIBS=$ac_check_lib_save_LIBS 30334fi 30335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5 30336printf "%s\n" "$ac_cv_lib_rtmp_RTMP_Init" >&6; } 30337if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes 30338then : 30339 30340 for ac_header in librtmp/rtmp.h 30341do : 30342 ac_fn_c_check_header_compile "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default" 30343if test "x$ac_cv_header_librtmp_rtmp_h" = xyes 30344then : 30345 printf "%s\n" "#define HAVE_LIBRTMP_RTMP_H 1" >>confdefs.h 30346 curl_rtmp_msg="enabled (librtmp)" 30347 LIBRTMP_ENABLED=1 30348 30349printf "%s\n" "#define USE_LIBRTMP 1" >>confdefs.h 30350 30351 USE_LIBRTMP=1 30352 30353 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE librtmp" 30354 30355fi 30356 30357done 30358 30359else $as_nop 30360 LDFLAGS=$CLEANLDFLAGS 30361 CPPFLAGS=$CLEANCPPFLAGS 30362 LIBS=$CLEANLIBS 30363 30364fi 30365 30366 30367 if test X"$OPT_LIBRTMP" != Xoff && 30368 test "$LIBRTMP_ENABLED" != "1"; then 30369 as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5 30370 fi 30371fi 30372 30373 30374versioned_symbols_flavour= 30375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5 30376printf %s "checking whether versioned symbols are wanted... " >&6; } 30377# Check whether --enable-versioned-symbols was given. 30378if test ${enable_versioned_symbols+y} 30379then : 30380 enableval=$enable_versioned_symbols; case "$enableval" in 30381 no) 30382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30383printf "%s\n" "no" >&6; } 30384 ;; 30385 *) 30386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30387printf "%s\n" "yes" >&6; } 30388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5 30389printf %s "checking if libraries can be versioned... " >&6; } 30390 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script` 30391 if test -z "$GLD"; then 30392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30393printf "%s\n" "no" >&6; } 30394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5 30395printf "%s\n" "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;} 30396 else 30397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30398printf "%s\n" "yes" >&6; } 30399 if test "x$enableval" != "xyes"; then 30400 versioned_symbols_flavour="$enableval" 30401 elif test "x$CURL_WITH_MULTI_SSL" = "x1"; then 30402 versioned_symbols_flavour="MULTISSL_" 30403 elif test "x$OPENSSL_ENABLED" = "x1"; then 30404 versioned_symbols_flavour="OPENSSL_" 30405 elif test "x$MBEDTLS_ENABLED" = "x1"; then 30406 versioned_symbols_flavour="MBEDTLS_" 30407 elif test "x$BEARSSL_ENABLED" = "x1"; then 30408 versioned_symbols_flavour="BEARSSL_" 30409 elif test "x$WOLFSSL_ENABLED" = "x1"; then 30410 versioned_symbols_flavour="WOLFSSL_" 30411 elif test "x$GNUTLS_ENABLED" = "x1"; then 30412 versioned_symbols_flavour="GNUTLS_" 30413 elif test "x$RUSTLS_ENABLED" = "x1"; then 30414 versioned_symbols_flavour="RUSTLS_" 30415 else 30416 versioned_symbols_flavour="" 30417 fi 30418 versioned_symbols="yes" 30419 fi 30420 ;; 30421 30422 esac 30423 30424else $as_nop 30425 30426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30427printf "%s\n" "no" >&6; } 30428 30429 30430fi 30431 30432 30433CURL_LIBCURL_VERSIONED_SYMBOLS_PREFIX="$versioned_symbols_flavour" 30434 30435CURL_LIBCURL_VERSIONED_SYMBOLS_SONAME="4" 30436 if test "x$versioned_symbols" = 'xyes'; then 30437 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE= 30438 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#' 30439else 30440 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#' 30441 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE= 30442fi 30443 30444 30445 30446want_winuni="no" 30447if test "$curl_cv_native_windows" = "yes"; then 30448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows Unicode (Windows native builds only)" >&5 30449printf %s "checking whether to enable Windows Unicode (Windows native builds only)... " >&6; } 30450 # Check whether --enable-windows-unicode was given. 30451if test ${enable_windows_unicode+y} 30452then : 30453 enableval=$enable_windows_unicode; case "$enableval" in 30454 yes) 30455 CPPFLAGS="${CPPFLAGS} -DUNICODE -D_UNICODE" 30456 want_winuni="yes" 30457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30458printf "%s\n" "yes" >&6; } 30459 ;; 30460 *) 30461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30462printf "%s\n" "no" >&6; } 30463 ;; 30464 esac 30465else $as_nop 30466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30467printf "%s\n" "no" >&6; } 30468 30469fi 30470 30471fi 30472 30473 if test "$want_winuni" = "yes"; then 30474 USE_UNICODE_TRUE= 30475 USE_UNICODE_FALSE='#' 30476else 30477 USE_UNICODE_TRUE='#' 30478 USE_UNICODE_FALSE= 30479fi 30480 30481 30482 30483tst_links_winidn='no' 30484if test "$curl_cv_native_windows" = 'yes'; then 30485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5 30486printf %s "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; } 30487 OPT_WINIDN="default" 30488 30489# Check whether --with-winidn was given. 30490if test ${with_winidn+y} 30491then : 30492 withval=$with_winidn; OPT_WINIDN=$withval 30493fi 30494 30495 case "$OPT_WINIDN" in 30496 no|default) 30497 want_winidn="no" 30498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30499printf "%s\n" "no" >&6; } 30500 ;; 30501 yes) 30502 want_winidn="yes" 30503 want_winidn_path="default" 30504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30505printf "%s\n" "yes" >&6; } 30506 ;; 30507 *) 30508 want_winidn="yes" 30509 want_winidn_path="$withval" 30510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5 30511printf "%s\n" "yes ($withval)" >&6; } 30512 ;; 30513 esac 30514 30515 if test "$want_winidn" = "yes"; then 30516 clean_CPPFLAGS="$CPPFLAGS" 30517 clean_LDFLAGS="$LDFLAGS" 30518 clean_LIBS="$LIBS" 30519 WINIDN_LIBS="-lnormaliz" 30520 WINIDN_CPPFLAGS="" 30521 # 30522 if test "$want_winidn_path" != "default"; then 30523 WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff" 30524 WINIDN_CPPFLAGS="-I$want_winidn_path/include" 30525 fi 30526 # 30527 CPPFLAGS="$CPPFLAGS $WINIDN_CPPFLAGS" 30528 LDFLAGS="$LDFLAGS $WINIDN_LDFLAGS" 30529 LIBS="$WINIDN_LIBS $LIBS" 30530 # 30531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5 30532printf %s "checking if IdnToUnicode can be linked... " >&6; } 30533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30534/* end confdefs.h. */ 30535 30536 30537 #include <windows.h> 30538 30539int main(void) 30540{ 30541 30542 #if (!defined(_WIN32_WINNT) || _WIN32_WINNT < 0x600) && \ 30543 (!defined(WINVER) || WINVER < 0x600) 30544 WINBASEAPI int WINAPI IdnToUnicode(DWORD dwFlags, 30545 const WCHAR *lpASCIICharStr, 30546 int cchASCIIChar, 30547 WCHAR *lpUnicodeCharStr, 30548 int cchUnicodeChar); 30549 #endif 30550 IdnToUnicode(0, NULL, 0, NULL, 0); 30551 30552 ; 30553 return 0; 30554} 30555 30556_ACEOF 30557if ac_fn_c_try_link "$LINENO" 30558then : 30559 30560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30561printf "%s\n" "yes" >&6; } 30562 tst_links_winidn="yes" 30563 30564else $as_nop 30565 30566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30567printf "%s\n" "no" >&6; } 30568 tst_links_winidn="no" 30569 30570fi 30571rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30572 conftest$ac_exeext conftest.$ac_ext 30573 # 30574 if test "$tst_links_winidn" = "yes"; then 30575 30576printf "%s\n" "#define USE_WIN32_IDN 1" >>confdefs.h 30577 30578 IDN_ENABLED=1 30579 30580 curl_idn_msg="enabled (Windows-native)" 30581 else 30582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5 30583printf "%s\n" "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;} 30584 CPPFLAGS="$clean_CPPFLAGS" 30585 LDFLAGS="$clean_LDFLAGS" 30586 LIBS="$clean_LIBS" 30587 fi 30588 fi 30589fi 30590 30591 30592tst_links_appleidn='no' 30593case $host in 30594 *-apple-*) 30595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with Apple IDN" >&5 30596printf %s "checking whether to build with Apple IDN... " >&6; } 30597 OPT_IDN="default" 30598 30599# Check whether --with-apple-idn was given. 30600if test ${with_apple_idn+y} 30601then : 30602 withval=$with_apple_idn; OPT_IDN=$withval 30603fi 30604 30605 case "$OPT_IDN" in 30606 yes) 30607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, check" >&5 30608printf "%s\n" "yes, check" >&6; } 30609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uidna_openUTS46 in -licucore" >&5 30610printf %s "checking for uidna_openUTS46 in -licucore... " >&6; } 30611if test ${ac_cv_lib_icucore_uidna_openUTS46+y} 30612then : 30613 printf %s "(cached) " >&6 30614else $as_nop 30615 ac_check_lib_save_LIBS=$LIBS 30616LIBS="-licucore $LIBS" 30617cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30618/* end confdefs.h. */ 30619 30620 30621#ifdef __cplusplus 30622extern "C" 30623#endif 30624char uidna_openUTS46 (); 30625int main(void) 30626{ 30627return uidna_openUTS46 (); 30628 ; 30629 return 0; 30630} 30631_ACEOF 30632if ac_fn_c_try_link "$LINENO" 30633then : 30634 ac_cv_lib_icucore_uidna_openUTS46=yes 30635else $as_nop 30636 ac_cv_lib_icucore_uidna_openUTS46=no 30637fi 30638rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30639 conftest$ac_exeext conftest.$ac_ext 30640LIBS=$ac_check_lib_save_LIBS 30641fi 30642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_icucore_uidna_openUTS46" >&5 30643printf "%s\n" "$ac_cv_lib_icucore_uidna_openUTS46" >&6; } 30644if test "x$ac_cv_lib_icucore_uidna_openUTS46" = xyes 30645then : 30646 30647 for ac_header in unicode/uidna.h 30648do : 30649 ac_fn_c_check_header_compile "$LINENO" "unicode/uidna.h" "ac_cv_header_unicode_uidna_h" "$ac_includes_default" 30650if test "x$ac_cv_header_unicode_uidna_h" = xyes 30651then : 30652 printf "%s\n" "#define HAVE_UNICODE_UIDNA_H 1" >>confdefs.h 30653 curl_idn_msg="enabled (AppleIDN)" 30654 30655printf "%s\n" "#define USE_APPLE_IDN 1" >>confdefs.h 30656 30657 USE_APPLE_IDN=1 30658 30659 IDN_ENABLED=1 30660 30661 LIBS="-licucore -liconv $LIBS" 30662 tst_links_appleidn='yes' 30663 30664fi 30665 30666done 30667 30668fi 30669 30670 ;; 30671 *) 30672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30673printf "%s\n" "no" >&6; } 30674 ;; 30675 esac 30676 ;; 30677esac 30678 30679 30680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn2" >&5 30681printf %s "checking whether to build with libidn2... " >&6; } 30682OPT_IDN="default" 30683 30684# Check whether --with-libidn2 was given. 30685if test ${with_libidn2+y} 30686then : 30687 withval=$with_libidn2; OPT_IDN=$withval 30688fi 30689 30690if test "x$tst_links_winidn" = "xyes"; then 30691 want_idn="no" 30692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (using WinIDN instead)" >&5 30693printf "%s\n" "no (using WinIDN instead)" >&6; } 30694elif test "x$tst_links_appleidn" = "xyes"; then 30695 want_idn="no" 30696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (using AppleIDN instead)" >&5 30697printf "%s\n" "no (using AppleIDN instead)" >&6; } 30698else 30699 case "$OPT_IDN" in 30700 no) 30701 want_idn="no" 30702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30703printf "%s\n" "no" >&6; } 30704 ;; 30705 default) 30706 want_idn="yes" 30707 want_idn_path="default" 30708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5 30709printf "%s\n" "(assumed) yes" >&6; } 30710 ;; 30711 yes) 30712 want_idn="yes" 30713 want_idn_path="default" 30714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30715printf "%s\n" "yes" >&6; } 30716 ;; 30717 *) 30718 want_idn="yes" 30719 want_idn_path="$withval" 30720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5 30721printf "%s\n" "yes ($withval)" >&6; } 30722 ;; 30723 esac 30724fi 30725 30726if test "$want_idn" = "yes"; then 30727 clean_CPPFLAGS="$CPPFLAGS" 30728 clean_LDFLAGS="$LDFLAGS" 30729 clean_LIBS="$LIBS" 30730 PKGCONFIG="no" 30731 # 30732 if test "$want_idn_path" != "default"; then 30733 IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig" 30734 30735 if test -n "$PKG_CONFIG"; then 30736 PKGCONFIG="$PKG_CONFIG" 30737 else 30738 if test -n "$ac_tool_prefix"; then 30739 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 30740set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 30741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30742printf %s "checking for $ac_word... " >&6; } 30743if test ${ac_cv_path_PKGCONFIG+y} 30744then : 30745 printf %s "(cached) " >&6 30746else $as_nop 30747 case $PKGCONFIG in 30748 [\\/]* | ?:[\\/]*) 30749 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 30750 ;; 30751 *) 30752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30753as_dummy="$PATH:/usr/bin:/usr/local/bin" 30754for as_dir in $as_dummy 30755do 30756 IFS=$as_save_IFS 30757 case $as_dir in #((( 30758 '') as_dir=./ ;; 30759 */) ;; 30760 *) as_dir=$as_dir/ ;; 30761 esac 30762 for ac_exec_ext in '' $ac_executable_extensions; do 30763 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 30764 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 30765 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 30766 break 2 30767 fi 30768done 30769 done 30770IFS=$as_save_IFS 30771 30772 ;; 30773esac 30774fi 30775PKGCONFIG=$ac_cv_path_PKGCONFIG 30776if test -n "$PKGCONFIG"; then 30777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 30778printf "%s\n" "$PKGCONFIG" >&6; } 30779else 30780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30781printf "%s\n" "no" >&6; } 30782fi 30783 30784 30785fi 30786if test -z "$ac_cv_path_PKGCONFIG"; then 30787 ac_pt_PKGCONFIG=$PKGCONFIG 30788 # Extract the first word of "pkg-config", so it can be a program name with args. 30789set dummy pkg-config; ac_word=$2 30790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30791printf %s "checking for $ac_word... " >&6; } 30792if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 30793then : 30794 printf %s "(cached) " >&6 30795else $as_nop 30796 case $ac_pt_PKGCONFIG in 30797 [\\/]* | ?:[\\/]*) 30798 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 30799 ;; 30800 *) 30801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30802as_dummy="$PATH:/usr/bin:/usr/local/bin" 30803for as_dir in $as_dummy 30804do 30805 IFS=$as_save_IFS 30806 case $as_dir in #((( 30807 '') as_dir=./ ;; 30808 */) ;; 30809 *) as_dir=$as_dir/ ;; 30810 esac 30811 for ac_exec_ext in '' $ac_executable_extensions; do 30812 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 30813 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 30814 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 30815 break 2 30816 fi 30817done 30818 done 30819IFS=$as_save_IFS 30820 30821 ;; 30822esac 30823fi 30824ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 30825if test -n "$ac_pt_PKGCONFIG"; then 30826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 30827printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 30828else 30829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30830printf "%s\n" "no" >&6; } 30831fi 30832 30833 if test "x$ac_pt_PKGCONFIG" = x; then 30834 PKGCONFIG="no" 30835 else 30836 case $cross_compiling:$ac_tool_warned in 30837yes:) 30838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 30839printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 30840ac_tool_warned=yes ;; 30841esac 30842 PKGCONFIG=$ac_pt_PKGCONFIG 30843 fi 30844else 30845 PKGCONFIG="$ac_cv_path_PKGCONFIG" 30846fi 30847 30848 fi 30849 30850 if test "x$PKGCONFIG" != "xno"; then 30851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5 30852printf %s "checking for libidn2 options with pkg-config... " >&6; } 30853 itexists=` 30854 if test -n "$IDN_PCDIR"; then 30855 PKG_CONFIG_LIBDIR="$IDN_PCDIR" 30856 export PKG_CONFIG_LIBDIR 30857 fi 30858 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1` 30859 30860 if test -z "$itexists"; then 30861 PKGCONFIG="no" 30862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30863printf "%s\n" "no" >&6; } 30864 else 30865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 30866printf "%s\n" "found" >&6; } 30867 fi 30868 fi 30869 30870 if test "$PKGCONFIG" != "no"; then 30871 IDN_LIBS=` 30872 if test -n "$IDN_PCDIR"; then 30873 PKG_CONFIG_LIBDIR="$IDN_PCDIR" 30874 export PKG_CONFIG_LIBDIR 30875 fi 30876 $PKGCONFIG --libs-only-l libidn2 2>/dev/null` 30877 IDN_LDFLAGS=` 30878 if test -n "$IDN_PCDIR"; then 30879 PKG_CONFIG_LIBDIR="$IDN_PCDIR" 30880 export PKG_CONFIG_LIBDIR 30881 fi 30882 $PKGCONFIG --libs-only-L libidn2 2>/dev/null` 30883 IDN_CPPFLAGS=` 30884 if test -n "$IDN_PCDIR"; then 30885 PKG_CONFIG_LIBDIR="$IDN_PCDIR" 30886 export PKG_CONFIG_LIBDIR 30887 fi 30888 $PKGCONFIG --cflags-only-I libidn2 2>/dev/null` 30889 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/^-L//'` 30890 else 30891 IDN_LIBS="-lidn2" 30892 IDN_LDFLAGS="-L$want_idn_path/lib$libsuff" 30893 IDN_CPPFLAGS="-I$want_idn_path/include" 30894 IDN_DIR="$want_idn_path/lib$libsuff" 30895 fi 30896 else 30897 30898 if test -n "$PKG_CONFIG"; then 30899 PKGCONFIG="$PKG_CONFIG" 30900 else 30901 if test -n "$ac_tool_prefix"; then 30902 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 30903set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 30904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30905printf %s "checking for $ac_word... " >&6; } 30906if test ${ac_cv_path_PKGCONFIG+y} 30907then : 30908 printf %s "(cached) " >&6 30909else $as_nop 30910 case $PKGCONFIG in 30911 [\\/]* | ?:[\\/]*) 30912 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 30913 ;; 30914 *) 30915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30916as_dummy="$PATH:/usr/bin:/usr/local/bin" 30917for as_dir in $as_dummy 30918do 30919 IFS=$as_save_IFS 30920 case $as_dir in #((( 30921 '') as_dir=./ ;; 30922 */) ;; 30923 *) as_dir=$as_dir/ ;; 30924 esac 30925 for ac_exec_ext in '' $ac_executable_extensions; do 30926 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 30927 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 30928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 30929 break 2 30930 fi 30931done 30932 done 30933IFS=$as_save_IFS 30934 30935 ;; 30936esac 30937fi 30938PKGCONFIG=$ac_cv_path_PKGCONFIG 30939if test -n "$PKGCONFIG"; then 30940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 30941printf "%s\n" "$PKGCONFIG" >&6; } 30942else 30943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30944printf "%s\n" "no" >&6; } 30945fi 30946 30947 30948fi 30949if test -z "$ac_cv_path_PKGCONFIG"; then 30950 ac_pt_PKGCONFIG=$PKGCONFIG 30951 # Extract the first word of "pkg-config", so it can be a program name with args. 30952set dummy pkg-config; ac_word=$2 30953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30954printf %s "checking for $ac_word... " >&6; } 30955if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 30956then : 30957 printf %s "(cached) " >&6 30958else $as_nop 30959 case $ac_pt_PKGCONFIG in 30960 [\\/]* | ?:[\\/]*) 30961 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 30962 ;; 30963 *) 30964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30965as_dummy="$PATH:/usr/bin:/usr/local/bin" 30966for as_dir in $as_dummy 30967do 30968 IFS=$as_save_IFS 30969 case $as_dir in #((( 30970 '') as_dir=./ ;; 30971 */) ;; 30972 *) as_dir=$as_dir/ ;; 30973 esac 30974 for ac_exec_ext in '' $ac_executable_extensions; do 30975 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 30976 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 30977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 30978 break 2 30979 fi 30980done 30981 done 30982IFS=$as_save_IFS 30983 30984 ;; 30985esac 30986fi 30987ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 30988if test -n "$ac_pt_PKGCONFIG"; then 30989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 30990printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 30991else 30992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 30993printf "%s\n" "no" >&6; } 30994fi 30995 30996 if test "x$ac_pt_PKGCONFIG" = x; then 30997 PKGCONFIG="no" 30998 else 30999 case $cross_compiling:$ac_tool_warned in 31000yes:) 31001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 31002printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 31003ac_tool_warned=yes ;; 31004esac 31005 PKGCONFIG=$ac_pt_PKGCONFIG 31006 fi 31007else 31008 PKGCONFIG="$ac_cv_path_PKGCONFIG" 31009fi 31010 31011 fi 31012 31013 if test "x$PKGCONFIG" != "xno"; then 31014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5 31015printf %s "checking for libidn2 options with pkg-config... " >&6; } 31016 itexists=` 31017 if test -n ""; then 31018 PKG_CONFIG_LIBDIR="" 31019 export PKG_CONFIG_LIBDIR 31020 fi 31021 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1` 31022 31023 if test -z "$itexists"; then 31024 PKGCONFIG="no" 31025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31026printf "%s\n" "no" >&6; } 31027 else 31028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 31029printf "%s\n" "found" >&6; } 31030 fi 31031 fi 31032 31033 if test "$PKGCONFIG" != "no"; then 31034 IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null` 31035 IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null` 31036 IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null` 31037 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/^-L//'` 31038 else 31039 IDN_LIBS="-lidn2" 31040 fi 31041 fi 31042 # 31043 if test "$PKGCONFIG" != "no"; then 31044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5 31045printf "%s\n" "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;} 31046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5 31047printf "%s\n" "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;} 31048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5 31049printf "%s\n" "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;} 31050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5 31051printf "%s\n" "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;} 31052 else 31053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5 31054printf "%s\n" "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;} 31055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5 31056printf "%s\n" "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;} 31057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5 31058printf "%s\n" "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;} 31059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5 31060printf "%s\n" "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;} 31061 fi 31062 # 31063 CPPFLAGS="$CPPFLAGS $IDN_CPPFLAGS" 31064 LDFLAGS="$LDFLAGS $IDN_LDFLAGS" 31065 LIBS="$IDN_LIBS $LIBS" 31066 # 31067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if idn2_lookup_ul can be linked" >&5 31068printf %s "checking if idn2_lookup_ul can be linked... " >&6; } 31069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31070/* end confdefs.h. */ 31071 31072 31073#define idn2_lookup_ul innocuous_idn2_lookup_ul 31074#ifdef __STDC__ 31075# include <limits.h> 31076#else 31077# include <assert.h> 31078#endif 31079#undef idn2_lookup_ul 31080#ifdef __cplusplus 31081extern "C" 31082#endif 31083char idn2_lookup_ul (); 31084#if defined __stub_idn2_lookup_ul || defined __stub___idn2_lookup_ul 31085#error force compilation error 31086#endif 31087 31088int main(void) 31089{ 31090return idn2_lookup_ul (); 31091 ; 31092 return 0; 31093} 31094 31095_ACEOF 31096if ac_fn_c_try_link "$LINENO" 31097then : 31098 31099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31100printf "%s\n" "yes" >&6; } 31101 tst_links_libidn="yes" 31102 31103else $as_nop 31104 31105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31106printf "%s\n" "no" >&6; } 31107 tst_links_libidn="no" 31108 31109fi 31110rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31111 conftest$ac_exeext conftest.$ac_ext 31112 # 31113 ac_fn_c_check_header_compile "$LINENO" "idn2.h" "ac_cv_header_idn2_h" "$ac_includes_default" 31114if test "x$ac_cv_header_idn2_h" = xyes 31115then : 31116 printf "%s\n" "#define HAVE_IDN2_H 1" >>confdefs.h 31117 31118fi 31119 31120 31121 if test "$tst_links_libidn" = "yes"; then 31122 31123printf "%s\n" "#define HAVE_LIBIDN2 1" >>confdefs.h 31124 31125 31126 IDN_ENABLED=1 31127 31128 curl_idn_msg="enabled (libidn2)" 31129 if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then 31130 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$IDN_DIR" 31131 export CURL_LIBRARY_PATH 31132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to CURL_LIBRARY_PATH" >&5 31133printf "%s\n" "$as_me: Added $IDN_DIR to CURL_LIBRARY_PATH" >&6;} 31134 fi 31135 LIBCURL_PC_REQUIRES_PRIVATE="libidn2 $LIBCURL_PC_REQUIRES_PRIVATE" 31136 else 31137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libidn2" >&5 31138printf "%s\n" "$as_me: WARNING: Cannot find libidn2" >&2;} 31139 CPPFLAGS="$clean_CPPFLAGS" 31140 LDFLAGS="$clean_LDFLAGS" 31141 LIBS="$clean_LIBS" 31142 want_idn="no" 31143 fi 31144fi 31145 31146 31147OPT_H2="yes" 31148 31149if test "x$disable_http" = "xyes" -o X"$want_hyper" != Xno; then 31150 # without HTTP or with Hyper, nghttp2 is no use 31151 OPT_H2="no" 31152fi 31153 31154 31155# Check whether --with-nghttp2 was given. 31156if test ${with_nghttp2+y} 31157then : 31158 withval=$with_nghttp2; OPT_H2=$withval 31159fi 31160 31161case "$OPT_H2" in 31162 no) 31163 want_nghttp2="no" 31164 ;; 31165 yes) 31166 want_nghttp2="default" 31167 want_nghttp2_path="" 31168 want_nghttp2_pkg_config_path="" 31169 ;; 31170 *) 31171 want_nghttp2="yes" 31172 want_nghttp2_path="$withval" 31173 want_nghttp2_pkg_config_path="$withval/lib/pkgconfig" 31174 ;; 31175esac 31176 31177if test X"$want_nghttp2" != Xno; then 31178 CLEANLDFLAGS="$LDFLAGS" 31179 CLEANCPPFLAGS="$CPPFLAGS" 31180 CLEANLIBS="$LIBS" 31181 31182 31183 if test -n "$PKG_CONFIG"; then 31184 PKGCONFIG="$PKG_CONFIG" 31185 else 31186 if test -n "$ac_tool_prefix"; then 31187 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 31188set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 31189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31190printf %s "checking for $ac_word... " >&6; } 31191if test ${ac_cv_path_PKGCONFIG+y} 31192then : 31193 printf %s "(cached) " >&6 31194else $as_nop 31195 case $PKGCONFIG in 31196 [\\/]* | ?:[\\/]*) 31197 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 31198 ;; 31199 *) 31200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31201as_dummy="$PATH:/usr/bin:/usr/local/bin" 31202for as_dir in $as_dummy 31203do 31204 IFS=$as_save_IFS 31205 case $as_dir in #((( 31206 '') as_dir=./ ;; 31207 */) ;; 31208 *) as_dir=$as_dir/ ;; 31209 esac 31210 for ac_exec_ext in '' $ac_executable_extensions; do 31211 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 31212 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 31213 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 31214 break 2 31215 fi 31216done 31217 done 31218IFS=$as_save_IFS 31219 31220 ;; 31221esac 31222fi 31223PKGCONFIG=$ac_cv_path_PKGCONFIG 31224if test -n "$PKGCONFIG"; then 31225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 31226printf "%s\n" "$PKGCONFIG" >&6; } 31227else 31228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31229printf "%s\n" "no" >&6; } 31230fi 31231 31232 31233fi 31234if test -z "$ac_cv_path_PKGCONFIG"; then 31235 ac_pt_PKGCONFIG=$PKGCONFIG 31236 # Extract the first word of "pkg-config", so it can be a program name with args. 31237set dummy pkg-config; ac_word=$2 31238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31239printf %s "checking for $ac_word... " >&6; } 31240if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 31241then : 31242 printf %s "(cached) " >&6 31243else $as_nop 31244 case $ac_pt_PKGCONFIG in 31245 [\\/]* | ?:[\\/]*) 31246 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 31247 ;; 31248 *) 31249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31250as_dummy="$PATH:/usr/bin:/usr/local/bin" 31251for as_dir in $as_dummy 31252do 31253 IFS=$as_save_IFS 31254 case $as_dir in #((( 31255 '') as_dir=./ ;; 31256 */) ;; 31257 *) as_dir=$as_dir/ ;; 31258 esac 31259 for ac_exec_ext in '' $ac_executable_extensions; do 31260 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 31261 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 31262 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 31263 break 2 31264 fi 31265done 31266 done 31267IFS=$as_save_IFS 31268 31269 ;; 31270esac 31271fi 31272ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 31273if test -n "$ac_pt_PKGCONFIG"; then 31274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 31275printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 31276else 31277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31278printf "%s\n" "no" >&6; } 31279fi 31280 31281 if test "x$ac_pt_PKGCONFIG" = x; then 31282 PKGCONFIG="no" 31283 else 31284 case $cross_compiling:$ac_tool_warned in 31285yes:) 31286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 31287printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 31288ac_tool_warned=yes ;; 31289esac 31290 PKGCONFIG=$ac_pt_PKGCONFIG 31291 fi 31292else 31293 PKGCONFIG="$ac_cv_path_PKGCONFIG" 31294fi 31295 31296 fi 31297 31298 if test "x$PKGCONFIG" != "xno"; then 31299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5 31300printf %s "checking for libnghttp2 options with pkg-config... " >&6; } 31301 itexists=` 31302 if test -n "$want_nghttp2_pkg_config_path"; then 31303 PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path" 31304 export PKG_CONFIG_LIBDIR 31305 fi 31306 $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1` 31307 31308 if test -z "$itexists"; then 31309 PKGCONFIG="no" 31310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31311printf "%s\n" "no" >&6; } 31312 else 31313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 31314printf "%s\n" "found" >&6; } 31315 fi 31316 fi 31317 31318 31319 if test "$PKGCONFIG" != "no"; then 31320 LIB_H2=` 31321 if test -n "$want_nghttp2_pkg_config_path"; then 31322 PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path" 31323 export PKG_CONFIG_LIBDIR 31324 fi 31325 31326 $PKGCONFIG --libs-only-l libnghttp2` 31327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5 31328printf "%s\n" "$as_me: -l is $LIB_H2" >&6;} 31329 31330 CPP_H2=` 31331 if test -n "$want_nghttp2_pkg_config_path"; then 31332 PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path" 31333 export PKG_CONFIG_LIBDIR 31334 fi 31335 $PKGCONFIG --cflags-only-I libnghttp2` 31336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5 31337printf "%s\n" "$as_me: -I is $CPP_H2" >&6;} 31338 31339 LD_H2=` 31340 if test -n "$want_nghttp2_pkg_config_path"; then 31341 PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path" 31342 export PKG_CONFIG_LIBDIR 31343 fi 31344 31345 $PKGCONFIG --libs-only-L libnghttp2` 31346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5 31347printf "%s\n" "$as_me: -L is $LD_H2" >&6;} 31348 31349 DIR_H2=`echo $LD_H2 | $SED -e 's/^-L//'` 31350 elif test x"$want_nghttp2_path" != x; then 31351 LIB_H2="-lnghttp2" 31352 LD_H2=-L${want_nghttp2_path}/lib$libsuff 31353 CPP_H2=-I${want_nghttp2_path}/include 31354 DIR_H2=${want_nghttp2_path}/lib$libsuff 31355 elif test X"$want_nghttp2" != Xdefault; then 31356 as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5 31357 else 31358 LIB_H2="-lnghttp2" 31359 fi 31360 31361 LDFLAGS="$LDFLAGS $LD_H2" 31362 CPPFLAGS="$CPPFLAGS $CPP_H2" 31363 LIBS="$LIB_H2 $LIBS" 31364 31365 # use nghttp2_session_get_stream_local_window_size to require nghttp2 31366 # >= 1.15.0 31367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nghttp2_session_get_stream_local_window_size in -lnghttp2" >&5 31368printf %s "checking for nghttp2_session_get_stream_local_window_size in -lnghttp2... " >&6; } 31369if test ${ac_cv_lib_nghttp2_nghttp2_session_get_stream_local_window_size+y} 31370then : 31371 printf %s "(cached) " >&6 31372else $as_nop 31373 ac_check_lib_save_LIBS=$LIBS 31374LIBS="-lnghttp2 $LIBS" 31375cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31376/* end confdefs.h. */ 31377 31378 31379#ifdef __cplusplus 31380extern "C" 31381#endif 31382char nghttp2_session_get_stream_local_window_size (); 31383int main(void) 31384{ 31385return nghttp2_session_get_stream_local_window_size (); 31386 ; 31387 return 0; 31388} 31389_ACEOF 31390if ac_fn_c_try_link "$LINENO" 31391then : 31392 ac_cv_lib_nghttp2_nghttp2_session_get_stream_local_window_size=yes 31393else $as_nop 31394 ac_cv_lib_nghttp2_nghttp2_session_get_stream_local_window_size=no 31395fi 31396rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31397 conftest$ac_exeext conftest.$ac_ext 31398LIBS=$ac_check_lib_save_LIBS 31399fi 31400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_session_get_stream_local_window_size" >&5 31401printf "%s\n" "$ac_cv_lib_nghttp2_nghttp2_session_get_stream_local_window_size" >&6; } 31402if test "x$ac_cv_lib_nghttp2_nghttp2_session_get_stream_local_window_size" = xyes 31403then : 31404 31405 for ac_header in nghttp2/nghttp2.h 31406do : 31407 ac_fn_c_check_header_compile "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default" 31408if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes 31409then : 31410 printf "%s\n" "#define HAVE_NGHTTP2_NGHTTP2_H 1" >>confdefs.h 31411 curl_h2_msg="enabled (nghttp2)" 31412 NGHTTP2_ENABLED=1 31413 31414printf "%s\n" "#define USE_NGHTTP2 1" >>confdefs.h 31415 31416 USE_NGHTTP2=1 31417 31418 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE libnghttp2" 31419 31420fi 31421 31422done 31423 31424 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_H2" 31425 export CURL_LIBRARY_PATH 31426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_H2 to CURL_LIBRARY_PATH" >&5 31427printf "%s\n" "$as_me: Added $DIR_H2 to CURL_LIBRARY_PATH" >&6;} 31428 31429else $as_nop 31430 LDFLAGS=$CLEANLDFLAGS 31431 CPPFLAGS=$CLEANCPPFLAGS 31432 LIBS=$CLEANLIBS 31433 31434fi 31435 31436fi 31437 31438 31439OPT_TCP2="no" 31440 31441if test "x$disable_http" = "xyes"; then 31442 # without HTTP, ngtcp2 is no use 31443 OPT_TCP2="no" 31444fi 31445 31446 31447# Check whether --with-ngtcp2 was given. 31448if test ${with_ngtcp2+y} 31449then : 31450 withval=$with_ngtcp2; OPT_TCP2=$withval 31451fi 31452 31453case "$OPT_TCP2" in 31454 no) 31455 want_tcp2="no" 31456 ;; 31457 yes) 31458 want_tcp2="default" 31459 want_tcp2_path="" 31460 ;; 31461 *) 31462 want_tcp2="yes" 31463 want_tcp2_path="$withval/lib/pkgconfig" 31464 ;; 31465esac 31466 31467curl_tcp2_msg="no (--with-ngtcp2)" 31468if test X"$want_tcp2" != Xno; then 31469 31470 if test "$QUIC_ENABLED" != "yes"; then 31471 as_fn_error $? "the detected TLS library does not support QUIC, making --with-ngtcp2 a no-no" "$LINENO" 5 31472 fi 31473 31474 CLEANLDFLAGS="$LDFLAGS" 31475 CLEANCPPFLAGS="$CPPFLAGS" 31476 CLEANLIBS="$LIBS" 31477 31478 31479 if test -n "$PKG_CONFIG"; then 31480 PKGCONFIG="$PKG_CONFIG" 31481 else 31482 if test -n "$ac_tool_prefix"; then 31483 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 31484set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 31485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31486printf %s "checking for $ac_word... " >&6; } 31487if test ${ac_cv_path_PKGCONFIG+y} 31488then : 31489 printf %s "(cached) " >&6 31490else $as_nop 31491 case $PKGCONFIG in 31492 [\\/]* | ?:[\\/]*) 31493 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 31494 ;; 31495 *) 31496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31497as_dummy="$PATH:/usr/bin:/usr/local/bin" 31498for as_dir in $as_dummy 31499do 31500 IFS=$as_save_IFS 31501 case $as_dir in #((( 31502 '') as_dir=./ ;; 31503 */) ;; 31504 *) as_dir=$as_dir/ ;; 31505 esac 31506 for ac_exec_ext in '' $ac_executable_extensions; do 31507 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 31508 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 31509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 31510 break 2 31511 fi 31512done 31513 done 31514IFS=$as_save_IFS 31515 31516 ;; 31517esac 31518fi 31519PKGCONFIG=$ac_cv_path_PKGCONFIG 31520if test -n "$PKGCONFIG"; then 31521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 31522printf "%s\n" "$PKGCONFIG" >&6; } 31523else 31524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31525printf "%s\n" "no" >&6; } 31526fi 31527 31528 31529fi 31530if test -z "$ac_cv_path_PKGCONFIG"; then 31531 ac_pt_PKGCONFIG=$PKGCONFIG 31532 # Extract the first word of "pkg-config", so it can be a program name with args. 31533set dummy pkg-config; ac_word=$2 31534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31535printf %s "checking for $ac_word... " >&6; } 31536if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 31537then : 31538 printf %s "(cached) " >&6 31539else $as_nop 31540 case $ac_pt_PKGCONFIG in 31541 [\\/]* | ?:[\\/]*) 31542 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 31543 ;; 31544 *) 31545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31546as_dummy="$PATH:/usr/bin:/usr/local/bin" 31547for as_dir in $as_dummy 31548do 31549 IFS=$as_save_IFS 31550 case $as_dir in #((( 31551 '') as_dir=./ ;; 31552 */) ;; 31553 *) as_dir=$as_dir/ ;; 31554 esac 31555 for ac_exec_ext in '' $ac_executable_extensions; do 31556 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 31557 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 31558 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 31559 break 2 31560 fi 31561done 31562 done 31563IFS=$as_save_IFS 31564 31565 ;; 31566esac 31567fi 31568ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 31569if test -n "$ac_pt_PKGCONFIG"; then 31570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 31571printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 31572else 31573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31574printf "%s\n" "no" >&6; } 31575fi 31576 31577 if test "x$ac_pt_PKGCONFIG" = x; then 31578 PKGCONFIG="no" 31579 else 31580 case $cross_compiling:$ac_tool_warned in 31581yes:) 31582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 31583printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 31584ac_tool_warned=yes ;; 31585esac 31586 PKGCONFIG=$ac_pt_PKGCONFIG 31587 fi 31588else 31589 PKGCONFIG="$ac_cv_path_PKGCONFIG" 31590fi 31591 31592 fi 31593 31594 if test "x$PKGCONFIG" != "xno"; then 31595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2 options with pkg-config" >&5 31596printf %s "checking for libngtcp2 options with pkg-config... " >&6; } 31597 itexists=` 31598 if test -n "$want_tcp2_path"; then 31599 PKG_CONFIG_LIBDIR="$want_tcp2_path" 31600 export PKG_CONFIG_LIBDIR 31601 fi 31602 $PKGCONFIG --exists libngtcp2 >/dev/null 2>&1 && echo 1` 31603 31604 if test -z "$itexists"; then 31605 PKGCONFIG="no" 31606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31607printf "%s\n" "no" >&6; } 31608 else 31609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 31610printf "%s\n" "found" >&6; } 31611 fi 31612 fi 31613 31614 31615 if test "$PKGCONFIG" != "no"; then 31616 LIB_TCP2=` 31617 if test -n "$want_tcp2_path"; then 31618 PKG_CONFIG_LIBDIR="$want_tcp2_path" 31619 export PKG_CONFIG_LIBDIR 31620 fi 31621 31622 $PKGCONFIG --libs-only-l libngtcp2` 31623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_TCP2" >&5 31624printf "%s\n" "$as_me: -l is $LIB_TCP2" >&6;} 31625 31626 CPP_TCP2=` 31627 if test -n "$want_tcp2_path"; then 31628 PKG_CONFIG_LIBDIR="$want_tcp2_path" 31629 export PKG_CONFIG_LIBDIR 31630 fi 31631 $PKGCONFIG --cflags-only-I libngtcp2` 31632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_TCP2" >&5 31633printf "%s\n" "$as_me: -I is $CPP_TCP2" >&6;} 31634 31635 LD_TCP2=` 31636 if test -n "$want_tcp2_path"; then 31637 PKG_CONFIG_LIBDIR="$want_tcp2_path" 31638 export PKG_CONFIG_LIBDIR 31639 fi 31640 31641 $PKGCONFIG --libs-only-L libngtcp2` 31642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_TCP2" >&5 31643printf "%s\n" "$as_me: -L is $LD_TCP2" >&6;} 31644 31645 LDFLAGS="$LDFLAGS $LD_TCP2" 31646 CPPFLAGS="$CPPFLAGS $CPP_TCP2" 31647 LIBS="$LIB_TCP2 $LIBS" 31648 31649 if test "x$cross_compiling" != "xyes"; then 31650 DIR_TCP2=`echo $LD_TCP2 | $SED -e 's/^-L//'` 31651 fi 31652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_conn_client_new_versioned in -lngtcp2" >&5 31653printf %s "checking for ngtcp2_conn_client_new_versioned in -lngtcp2... " >&6; } 31654if test ${ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned+y} 31655then : 31656 printf %s "(cached) " >&6 31657else $as_nop 31658 ac_check_lib_save_LIBS=$LIBS 31659LIBS="-lngtcp2 $LIBS" 31660cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31661/* end confdefs.h. */ 31662 31663 31664#ifdef __cplusplus 31665extern "C" 31666#endif 31667char ngtcp2_conn_client_new_versioned (); 31668int main(void) 31669{ 31670return ngtcp2_conn_client_new_versioned (); 31671 ; 31672 return 0; 31673} 31674_ACEOF 31675if ac_fn_c_try_link "$LINENO" 31676then : 31677 ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned=yes 31678else $as_nop 31679 ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned=no 31680fi 31681rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31682 conftest$ac_exeext conftest.$ac_ext 31683LIBS=$ac_check_lib_save_LIBS 31684fi 31685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" >&5 31686printf "%s\n" "$ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" >&6; } 31687if test "x$ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" = xyes 31688then : 31689 31690 for ac_header in ngtcp2/ngtcp2.h 31691do : 31692 ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2.h" "ac_cv_header_ngtcp2_ngtcp2_h" "$ac_includes_default" 31693if test "x$ac_cv_header_ngtcp2_ngtcp2_h" = xyes 31694then : 31695 printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_H 1" >>confdefs.h 31696 NGTCP2_ENABLED=1 31697 31698printf "%s\n" "#define USE_NGTCP2 1" >>confdefs.h 31699 31700 USE_NGTCP2=1 31701 31702 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_TCP2" 31703 export CURL_LIBRARY_PATH 31704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_TCP2 to CURL_LIBRARY_PATH" >&5 31705printf "%s\n" "$as_me: Added $DIR_TCP2 to CURL_LIBRARY_PATH" >&6;} 31706 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE libngtcp2" 31707 31708fi 31709 31710done 31711 31712else $as_nop 31713 LDFLAGS=$CLEANLDFLAGS 31714 CPPFLAGS=$CLEANCPPFLAGS 31715 LIBS=$CLEANLIBS 31716 31717fi 31718 31719 31720 else 31721 if test X"$want_tcp2" != Xdefault; then 31722 as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2 pkg-config file." "$LINENO" 5 31723 fi 31724 fi 31725fi 31726 31727if test "x$NGTCP2_ENABLED" = "x1" -a "x$OPENSSL_ENABLED" = "x1" -a "x$OPENSSL_IS_BORINGSSL" != "x1"; then 31728 CLEANLDFLAGS="$LDFLAGS" 31729 CLEANCPPFLAGS="$CPPFLAGS" 31730 CLEANLIBS="$LIBS" 31731 31732 31733 if test -n "$PKG_CONFIG"; then 31734 PKGCONFIG="$PKG_CONFIG" 31735 else 31736 if test -n "$ac_tool_prefix"; then 31737 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 31738set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 31739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31740printf %s "checking for $ac_word... " >&6; } 31741if test ${ac_cv_path_PKGCONFIG+y} 31742then : 31743 printf %s "(cached) " >&6 31744else $as_nop 31745 case $PKGCONFIG in 31746 [\\/]* | ?:[\\/]*) 31747 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 31748 ;; 31749 *) 31750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31751as_dummy="$PATH:/usr/bin:/usr/local/bin" 31752for as_dir in $as_dummy 31753do 31754 IFS=$as_save_IFS 31755 case $as_dir in #((( 31756 '') as_dir=./ ;; 31757 */) ;; 31758 *) as_dir=$as_dir/ ;; 31759 esac 31760 for ac_exec_ext in '' $ac_executable_extensions; do 31761 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 31762 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 31763 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 31764 break 2 31765 fi 31766done 31767 done 31768IFS=$as_save_IFS 31769 31770 ;; 31771esac 31772fi 31773PKGCONFIG=$ac_cv_path_PKGCONFIG 31774if test -n "$PKGCONFIG"; then 31775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 31776printf "%s\n" "$PKGCONFIG" >&6; } 31777else 31778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31779printf "%s\n" "no" >&6; } 31780fi 31781 31782 31783fi 31784if test -z "$ac_cv_path_PKGCONFIG"; then 31785 ac_pt_PKGCONFIG=$PKGCONFIG 31786 # Extract the first word of "pkg-config", so it can be a program name with args. 31787set dummy pkg-config; ac_word=$2 31788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31789printf %s "checking for $ac_word... " >&6; } 31790if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 31791then : 31792 printf %s "(cached) " >&6 31793else $as_nop 31794 case $ac_pt_PKGCONFIG in 31795 [\\/]* | ?:[\\/]*) 31796 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 31797 ;; 31798 *) 31799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31800as_dummy="$PATH:/usr/bin:/usr/local/bin" 31801for as_dir in $as_dummy 31802do 31803 IFS=$as_save_IFS 31804 case $as_dir in #((( 31805 '') as_dir=./ ;; 31806 */) ;; 31807 *) as_dir=$as_dir/ ;; 31808 esac 31809 for ac_exec_ext in '' $ac_executable_extensions; do 31810 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 31811 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 31812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 31813 break 2 31814 fi 31815done 31816 done 31817IFS=$as_save_IFS 31818 31819 ;; 31820esac 31821fi 31822ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 31823if test -n "$ac_pt_PKGCONFIG"; then 31824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 31825printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 31826else 31827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31828printf "%s\n" "no" >&6; } 31829fi 31830 31831 if test "x$ac_pt_PKGCONFIG" = x; then 31832 PKGCONFIG="no" 31833 else 31834 case $cross_compiling:$ac_tool_warned in 31835yes:) 31836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 31837printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 31838ac_tool_warned=yes ;; 31839esac 31840 PKGCONFIG=$ac_pt_PKGCONFIG 31841 fi 31842else 31843 PKGCONFIG="$ac_cv_path_PKGCONFIG" 31844fi 31845 31846 fi 31847 31848 if test "x$PKGCONFIG" != "xno"; then 31849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_quictls options with pkg-config" >&5 31850printf %s "checking for libngtcp2_crypto_quictls options with pkg-config... " >&6; } 31851 itexists=` 31852 if test -n "$want_tcp2_path"; then 31853 PKG_CONFIG_LIBDIR="$want_tcp2_path" 31854 export PKG_CONFIG_LIBDIR 31855 fi 31856 $PKGCONFIG --exists libngtcp2_crypto_quictls >/dev/null 2>&1 && echo 1` 31857 31858 if test -z "$itexists"; then 31859 PKGCONFIG="no" 31860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 31861printf "%s\n" "no" >&6; } 31862 else 31863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 31864printf "%s\n" "found" >&6; } 31865 fi 31866 fi 31867 31868 31869 if test "$PKGCONFIG" != "no"; then 31870 LIB_NGTCP2_CRYPTO_QUICTLS=` 31871 if test -n "$want_tcp2_path"; then 31872 PKG_CONFIG_LIBDIR="$want_tcp2_path" 31873 export PKG_CONFIG_LIBDIR 31874 fi 31875 31876 $PKGCONFIG --libs-only-l libngtcp2_crypto_quictls` 31877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_QUICTLS" >&5 31878printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_QUICTLS" >&6;} 31879 31880 CPP_NGTCP2_CRYPTO_QUICTLS=` 31881 if test -n "$want_tcp2_path"; then 31882 PKG_CONFIG_LIBDIR="$want_tcp2_path" 31883 export PKG_CONFIG_LIBDIR 31884 fi 31885 $PKGCONFIG --cflags-only-I libngtcp2_crypto_quictls` 31886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_QUICTLS" >&5 31887printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_QUICTLS" >&6;} 31888 31889 LD_NGTCP2_CRYPTO_QUICTLS=` 31890 if test -n "$want_tcp2_path"; then 31891 PKG_CONFIG_LIBDIR="$want_tcp2_path" 31892 export PKG_CONFIG_LIBDIR 31893 fi 31894 31895 $PKGCONFIG --libs-only-L libngtcp2_crypto_quictls` 31896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_QUICTLS" >&5 31897printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_QUICTLS" >&6;} 31898 31899 LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_QUICTLS" 31900 CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_QUICTLS" 31901 LIBS="$LIB_NGTCP2_CRYPTO_QUICTLS $LIBS" 31902 31903 if test "x$cross_compiling" != "xyes"; then 31904 DIR_NGTCP2_CRYPTO_QUICTLS=`echo $LD_NGTCP2_CRYPTO_QUICTLS | $SED -e 's/^-L//'` 31905 fi 31906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_quictls" >&5 31907printf %s "checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_quictls... " >&6; } 31908if test ${ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_recv_client_initial_cb+y} 31909then : 31910 printf %s "(cached) " >&6 31911else $as_nop 31912 ac_check_lib_save_LIBS=$LIBS 31913LIBS="-lngtcp2_crypto_quictls $LIBS" 31914cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31915/* end confdefs.h. */ 31916 31917 31918#ifdef __cplusplus 31919extern "C" 31920#endif 31921char ngtcp2_crypto_recv_client_initial_cb (); 31922int main(void) 31923{ 31924return ngtcp2_crypto_recv_client_initial_cb (); 31925 ; 31926 return 0; 31927} 31928_ACEOF 31929if ac_fn_c_try_link "$LINENO" 31930then : 31931 ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_recv_client_initial_cb=yes 31932else $as_nop 31933 ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_recv_client_initial_cb=no 31934fi 31935rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31936 conftest$ac_exeext conftest.$ac_ext 31937LIBS=$ac_check_lib_save_LIBS 31938fi 31939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_recv_client_initial_cb" >&5 31940printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_recv_client_initial_cb" >&6; } 31941if test "x$ac_cv_lib_ngtcp2_crypto_quictls_ngtcp2_crypto_recv_client_initial_cb" = xyes 31942then : 31943 31944 for ac_header in ngtcp2/ngtcp2_crypto.h 31945do : 31946 ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default" 31947if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes 31948then : 31949 printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h 31950 NGTCP2_ENABLED=1 31951 31952printf "%s\n" "#define USE_NGTCP2_CRYPTO_QUICTLS 1" >>confdefs.h 31953 31954 USE_NGTCP2_CRYPTO_QUICTLS=1 31955 31956 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_QUICTLS" 31957 export CURL_LIBRARY_PATH 31958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_QUICTLS to CURL_LIBRARY_PATH" >&5 31959printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_QUICTLS to CURL_LIBRARY_PATH" >&6;} 31960 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE libngtcp2_crypto_quictls" 31961 31962fi 31963 31964done 31965 31966else $as_nop 31967 LDFLAGS=$CLEANLDFLAGS 31968 CPPFLAGS=$CLEANCPPFLAGS 31969 LIBS=$CLEANLIBS 31970 31971fi 31972 31973 31974 else 31975 if test X"$want_tcp2" != Xdefault; then 31976 as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_quictls pkg-config file." "$LINENO" 5 31977 fi 31978 fi 31979fi 31980 31981if test "x$NGTCP2_ENABLED" = "x1" -a "x$OPENSSL_ENABLED" = "x1" -a "x$OPENSSL_IS_BORINGSSL" = "x1"; then 31982 CLEANLDFLAGS="$LDFLAGS" 31983 CLEANCPPFLAGS="$CPPFLAGS" 31984 CLEANLIBS="$LIBS" 31985 31986 31987 if test -n "$PKG_CONFIG"; then 31988 PKGCONFIG="$PKG_CONFIG" 31989 else 31990 if test -n "$ac_tool_prefix"; then 31991 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 31992set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 31993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31994printf %s "checking for $ac_word... " >&6; } 31995if test ${ac_cv_path_PKGCONFIG+y} 31996then : 31997 printf %s "(cached) " >&6 31998else $as_nop 31999 case $PKGCONFIG in 32000 [\\/]* | ?:[\\/]*) 32001 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 32002 ;; 32003 *) 32004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32005as_dummy="$PATH:/usr/bin:/usr/local/bin" 32006for as_dir in $as_dummy 32007do 32008 IFS=$as_save_IFS 32009 case $as_dir in #((( 32010 '') as_dir=./ ;; 32011 */) ;; 32012 *) as_dir=$as_dir/ ;; 32013 esac 32014 for ac_exec_ext in '' $ac_executable_extensions; do 32015 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 32016 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 32017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 32018 break 2 32019 fi 32020done 32021 done 32022IFS=$as_save_IFS 32023 32024 ;; 32025esac 32026fi 32027PKGCONFIG=$ac_cv_path_PKGCONFIG 32028if test -n "$PKGCONFIG"; then 32029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 32030printf "%s\n" "$PKGCONFIG" >&6; } 32031else 32032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32033printf "%s\n" "no" >&6; } 32034fi 32035 32036 32037fi 32038if test -z "$ac_cv_path_PKGCONFIG"; then 32039 ac_pt_PKGCONFIG=$PKGCONFIG 32040 # Extract the first word of "pkg-config", so it can be a program name with args. 32041set dummy pkg-config; ac_word=$2 32042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32043printf %s "checking for $ac_word... " >&6; } 32044if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 32045then : 32046 printf %s "(cached) " >&6 32047else $as_nop 32048 case $ac_pt_PKGCONFIG in 32049 [\\/]* | ?:[\\/]*) 32050 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 32051 ;; 32052 *) 32053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32054as_dummy="$PATH:/usr/bin:/usr/local/bin" 32055for as_dir in $as_dummy 32056do 32057 IFS=$as_save_IFS 32058 case $as_dir in #((( 32059 '') as_dir=./ ;; 32060 */) ;; 32061 *) as_dir=$as_dir/ ;; 32062 esac 32063 for ac_exec_ext in '' $ac_executable_extensions; do 32064 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 32065 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 32066 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 32067 break 2 32068 fi 32069done 32070 done 32071IFS=$as_save_IFS 32072 32073 ;; 32074esac 32075fi 32076ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 32077if test -n "$ac_pt_PKGCONFIG"; then 32078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 32079printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 32080else 32081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32082printf "%s\n" "no" >&6; } 32083fi 32084 32085 if test "x$ac_pt_PKGCONFIG" = x; then 32086 PKGCONFIG="no" 32087 else 32088 case $cross_compiling:$ac_tool_warned in 32089yes:) 32090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32091printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32092ac_tool_warned=yes ;; 32093esac 32094 PKGCONFIG=$ac_pt_PKGCONFIG 32095 fi 32096else 32097 PKGCONFIG="$ac_cv_path_PKGCONFIG" 32098fi 32099 32100 fi 32101 32102 if test "x$PKGCONFIG" != "xno"; then 32103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_boringssl options with pkg-config" >&5 32104printf %s "checking for libngtcp2_crypto_boringssl options with pkg-config... " >&6; } 32105 itexists=` 32106 if test -n "$want_tcp2_path"; then 32107 PKG_CONFIG_LIBDIR="$want_tcp2_path" 32108 export PKG_CONFIG_LIBDIR 32109 fi 32110 $PKGCONFIG --exists libngtcp2_crypto_boringssl >/dev/null 2>&1 && echo 1` 32111 32112 if test -z "$itexists"; then 32113 PKGCONFIG="no" 32114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32115printf "%s\n" "no" >&6; } 32116 else 32117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 32118printf "%s\n" "found" >&6; } 32119 fi 32120 fi 32121 32122 32123 if test "$PKGCONFIG" != "no"; then 32124 LIB_NGTCP2_CRYPTO_BORINGSSL=` 32125 if test -n "$want_tcp2_path"; then 32126 PKG_CONFIG_LIBDIR="$want_tcp2_path" 32127 export PKG_CONFIG_LIBDIR 32128 fi 32129 32130 $PKGCONFIG --libs-only-l libngtcp2_crypto_boringssl` 32131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_BORINGSSL" >&5 32132printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_BORINGSSL" >&6;} 32133 32134 CPP_NGTCP2_CRYPTO_BORINGSSL=` 32135 if test -n "$want_tcp2_path"; then 32136 PKG_CONFIG_LIBDIR="$want_tcp2_path" 32137 export PKG_CONFIG_LIBDIR 32138 fi 32139 $PKGCONFIG --cflags-only-I libngtcp2_crypto_boringssl` 32140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_BORINGSSL" >&5 32141printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_BORINGSSL" >&6;} 32142 32143 LD_NGTCP2_CRYPTO_BORINGSSL=` 32144 if test -n "$want_tcp2_path"; then 32145 PKG_CONFIG_LIBDIR="$want_tcp2_path" 32146 export PKG_CONFIG_LIBDIR 32147 fi 32148 32149 $PKGCONFIG --libs-only-L libngtcp2_crypto_boringssl` 32150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_BORINGSSL" >&5 32151printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_BORINGSSL" >&6;} 32152 32153 LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_BORINGSSL" 32154 CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_BORINGSSL" 32155 LIBS="$LIB_NGTCP2_CRYPTO_BORINGSSL $LIBS" 32156 32157 if test "x$cross_compiling" != "xyes"; then 32158 DIR_NGTCP2_CRYPTO_BORINGSSL=`echo $LD_NGTCP2_CRYPTO_BORINGSSL | $SED -e 's/^-L//'` 32159 fi 32160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_boringssl" >&5 32161printf %s "checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_boringssl... " >&6; } 32162if test ${ac_cv_lib_ngtcp2_crypto_boringssl_ngtcp2_crypto_recv_client_initial_cb+y} 32163then : 32164 printf %s "(cached) " >&6 32165else $as_nop 32166 ac_check_lib_save_LIBS=$LIBS 32167LIBS="-lngtcp2_crypto_boringssl $LIBS" 32168cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32169/* end confdefs.h. */ 32170 32171 32172#ifdef __cplusplus 32173extern "C" 32174#endif 32175char ngtcp2_crypto_recv_client_initial_cb (); 32176int main(void) 32177{ 32178return ngtcp2_crypto_recv_client_initial_cb (); 32179 ; 32180 return 0; 32181} 32182_ACEOF 32183if ac_fn_c_try_link "$LINENO" 32184then : 32185 ac_cv_lib_ngtcp2_crypto_boringssl_ngtcp2_crypto_recv_client_initial_cb=yes 32186else $as_nop 32187 ac_cv_lib_ngtcp2_crypto_boringssl_ngtcp2_crypto_recv_client_initial_cb=no 32188fi 32189rm -f core conftest.err conftest.$ac_objext conftest.beam \ 32190 conftest$ac_exeext conftest.$ac_ext 32191LIBS=$ac_check_lib_save_LIBS 32192fi 32193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_boringssl_ngtcp2_crypto_recv_client_initial_cb" >&5 32194printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_boringssl_ngtcp2_crypto_recv_client_initial_cb" >&6; } 32195if test "x$ac_cv_lib_ngtcp2_crypto_boringssl_ngtcp2_crypto_recv_client_initial_cb" = xyes 32196then : 32197 32198 for ac_header in ngtcp2/ngtcp2_crypto.h 32199do : 32200 ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default" 32201if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes 32202then : 32203 printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h 32204 NGTCP2_ENABLED=1 32205 32206printf "%s\n" "#define USE_NGTCP2_CRYPTO_BORINGSSL 1" >>confdefs.h 32207 32208 USE_NGTCP2_CRYPTO_BORINGSSL=1 32209 32210 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_BORINGSSL" 32211 export CURL_LIBRARY_PATH 32212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_BORINGSSL to CURL_LIBRARY_PATH" >&5 32213printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_BORINGSSL to CURL_LIBRARY_PATH" >&6;} 32214 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE libngtcp2_crypto_boringssl" 32215 32216fi 32217 32218done 32219 32220else $as_nop 32221 LDFLAGS=$CLEANLDFLAGS 32222 CPPFLAGS=$CLEANCPPFLAGS 32223 LIBS=$CLEANLIBS 32224 32225fi 32226 32227 32228 else 32229 if test X"$want_tcp2" != Xdefault; then 32230 as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_boringssl pkg-config file." "$LINENO" 5 32231 fi 32232 fi 32233fi 32234 32235if test "x$NGTCP2_ENABLED" = "x1" -a "x$GNUTLS_ENABLED" = "x1"; then 32236 CLEANLDFLAGS="$LDFLAGS" 32237 CLEANCPPFLAGS="$CPPFLAGS" 32238 CLEANLIBS="$LIBS" 32239 32240 32241 if test -n "$PKG_CONFIG"; then 32242 PKGCONFIG="$PKG_CONFIG" 32243 else 32244 if test -n "$ac_tool_prefix"; then 32245 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 32246set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 32247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32248printf %s "checking for $ac_word... " >&6; } 32249if test ${ac_cv_path_PKGCONFIG+y} 32250then : 32251 printf %s "(cached) " >&6 32252else $as_nop 32253 case $PKGCONFIG in 32254 [\\/]* | ?:[\\/]*) 32255 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 32256 ;; 32257 *) 32258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32259as_dummy="$PATH:/usr/bin:/usr/local/bin" 32260for as_dir in $as_dummy 32261do 32262 IFS=$as_save_IFS 32263 case $as_dir in #((( 32264 '') as_dir=./ ;; 32265 */) ;; 32266 *) as_dir=$as_dir/ ;; 32267 esac 32268 for ac_exec_ext in '' $ac_executable_extensions; do 32269 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 32270 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 32271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 32272 break 2 32273 fi 32274done 32275 done 32276IFS=$as_save_IFS 32277 32278 ;; 32279esac 32280fi 32281PKGCONFIG=$ac_cv_path_PKGCONFIG 32282if test -n "$PKGCONFIG"; then 32283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 32284printf "%s\n" "$PKGCONFIG" >&6; } 32285else 32286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32287printf "%s\n" "no" >&6; } 32288fi 32289 32290 32291fi 32292if test -z "$ac_cv_path_PKGCONFIG"; then 32293 ac_pt_PKGCONFIG=$PKGCONFIG 32294 # Extract the first word of "pkg-config", so it can be a program name with args. 32295set dummy pkg-config; ac_word=$2 32296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32297printf %s "checking for $ac_word... " >&6; } 32298if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 32299then : 32300 printf %s "(cached) " >&6 32301else $as_nop 32302 case $ac_pt_PKGCONFIG in 32303 [\\/]* | ?:[\\/]*) 32304 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 32305 ;; 32306 *) 32307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32308as_dummy="$PATH:/usr/bin:/usr/local/bin" 32309for as_dir in $as_dummy 32310do 32311 IFS=$as_save_IFS 32312 case $as_dir in #((( 32313 '') as_dir=./ ;; 32314 */) ;; 32315 *) as_dir=$as_dir/ ;; 32316 esac 32317 for ac_exec_ext in '' $ac_executable_extensions; do 32318 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 32319 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 32320 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 32321 break 2 32322 fi 32323done 32324 done 32325IFS=$as_save_IFS 32326 32327 ;; 32328esac 32329fi 32330ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 32331if test -n "$ac_pt_PKGCONFIG"; then 32332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 32333printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 32334else 32335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32336printf "%s\n" "no" >&6; } 32337fi 32338 32339 if test "x$ac_pt_PKGCONFIG" = x; then 32340 PKGCONFIG="no" 32341 else 32342 case $cross_compiling:$ac_tool_warned in 32343yes:) 32344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32345printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32346ac_tool_warned=yes ;; 32347esac 32348 PKGCONFIG=$ac_pt_PKGCONFIG 32349 fi 32350else 32351 PKGCONFIG="$ac_cv_path_PKGCONFIG" 32352fi 32353 32354 fi 32355 32356 if test "x$PKGCONFIG" != "xno"; then 32357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_gnutls options with pkg-config" >&5 32358printf %s "checking for libngtcp2_crypto_gnutls options with pkg-config... " >&6; } 32359 itexists=` 32360 if test -n "$want_tcp2_path"; then 32361 PKG_CONFIG_LIBDIR="$want_tcp2_path" 32362 export PKG_CONFIG_LIBDIR 32363 fi 32364 $PKGCONFIG --exists libngtcp2_crypto_gnutls >/dev/null 2>&1 && echo 1` 32365 32366 if test -z "$itexists"; then 32367 PKGCONFIG="no" 32368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32369printf "%s\n" "no" >&6; } 32370 else 32371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 32372printf "%s\n" "found" >&6; } 32373 fi 32374 fi 32375 32376 32377 if test "$PKGCONFIG" != "no"; then 32378 LIB_NGTCP2_CRYPTO_GNUTLS=` 32379 if test -n "$want_tcp2_path"; then 32380 PKG_CONFIG_LIBDIR="$want_tcp2_path" 32381 export PKG_CONFIG_LIBDIR 32382 fi 32383 32384 $PKGCONFIG --libs-only-l libngtcp2_crypto_gnutls` 32385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_GNUTLS" >&5 32386printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_GNUTLS" >&6;} 32387 32388 CPP_NGTCP2_CRYPTO_GNUTLS=` 32389 if test -n "$want_tcp2_path"; then 32390 PKG_CONFIG_LIBDIR="$want_tcp2_path" 32391 export PKG_CONFIG_LIBDIR 32392 fi 32393 $PKGCONFIG --cflags-only-I libngtcp2_crypto_gnutls` 32394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_GNUTLS" >&5 32395printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_GNUTLS" >&6;} 32396 32397 LD_NGTCP2_CRYPTO_GNUTLS=` 32398 if test -n "$want_tcp2_path"; then 32399 PKG_CONFIG_LIBDIR="$want_tcp2_path" 32400 export PKG_CONFIG_LIBDIR 32401 fi 32402 32403 $PKGCONFIG --libs-only-L libngtcp2_crypto_gnutls` 32404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_GNUTLS" >&5 32405printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_GNUTLS" >&6;} 32406 32407 LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_GNUTLS" 32408 CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_GNUTLS" 32409 LIBS="$LIB_NGTCP2_CRYPTO_GNUTLS $LIBS" 32410 32411 if test "x$cross_compiling" != "xyes"; then 32412 DIR_NGTCP2_CRYPTO_GNUTLS=`echo $LD_NGTCP2_CRYPTO_GNUTLS | $SED -e 's/^-L//'` 32413 fi 32414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_gnutls" >&5 32415printf %s "checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_gnutls... " >&6; } 32416if test ${ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb+y} 32417then : 32418 printf %s "(cached) " >&6 32419else $as_nop 32420 ac_check_lib_save_LIBS=$LIBS 32421LIBS="-lngtcp2_crypto_gnutls $LIBS" 32422cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32423/* end confdefs.h. */ 32424 32425 32426#ifdef __cplusplus 32427extern "C" 32428#endif 32429char ngtcp2_crypto_recv_client_initial_cb (); 32430int main(void) 32431{ 32432return ngtcp2_crypto_recv_client_initial_cb (); 32433 ; 32434 return 0; 32435} 32436_ACEOF 32437if ac_fn_c_try_link "$LINENO" 32438then : 32439 ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb=yes 32440else $as_nop 32441 ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb=no 32442fi 32443rm -f core conftest.err conftest.$ac_objext conftest.beam \ 32444 conftest$ac_exeext conftest.$ac_ext 32445LIBS=$ac_check_lib_save_LIBS 32446fi 32447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb" >&5 32448printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb" >&6; } 32449if test "x$ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb" = xyes 32450then : 32451 32452 for ac_header in ngtcp2/ngtcp2_crypto.h 32453do : 32454 ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default" 32455if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes 32456then : 32457 printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h 32458 NGTCP2_ENABLED=1 32459 32460printf "%s\n" "#define USE_NGTCP2_CRYPTO_GNUTLS 1" >>confdefs.h 32461 32462 USE_NGTCP2_CRYPTO_GNUTLS=1 32463 32464 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_GNUTLS" 32465 export CURL_LIBRARY_PATH 32466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_GNUTLS to CURL_LIBRARY_PATH" >&5 32467printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_GNUTLS to CURL_LIBRARY_PATH" >&6;} 32468 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE libngtcp2_crypto_gnutls" 32469 32470fi 32471 32472done 32473 32474else $as_nop 32475 LDFLAGS=$CLEANLDFLAGS 32476 CPPFLAGS=$CLEANCPPFLAGS 32477 LIBS=$CLEANLIBS 32478 32479fi 32480 32481 32482 else 32483 if test X"$want_tcp2" != Xdefault; then 32484 as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_gnutls pkg-config file." "$LINENO" 5 32485 fi 32486 fi 32487fi 32488 32489if test "x$NGTCP2_ENABLED" = "x1" -a "x$WOLFSSL_ENABLED" = "x1"; then 32490 CLEANLDFLAGS="$LDFLAGS" 32491 CLEANCPPFLAGS="$CPPFLAGS" 32492 CLEANLIBS="$LIBS" 32493 32494 32495 if test -n "$PKG_CONFIG"; then 32496 PKGCONFIG="$PKG_CONFIG" 32497 else 32498 if test -n "$ac_tool_prefix"; then 32499 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 32500set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 32501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32502printf %s "checking for $ac_word... " >&6; } 32503if test ${ac_cv_path_PKGCONFIG+y} 32504then : 32505 printf %s "(cached) " >&6 32506else $as_nop 32507 case $PKGCONFIG in 32508 [\\/]* | ?:[\\/]*) 32509 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 32510 ;; 32511 *) 32512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32513as_dummy="$PATH:/usr/bin:/usr/local/bin" 32514for as_dir in $as_dummy 32515do 32516 IFS=$as_save_IFS 32517 case $as_dir in #((( 32518 '') as_dir=./ ;; 32519 */) ;; 32520 *) as_dir=$as_dir/ ;; 32521 esac 32522 for ac_exec_ext in '' $ac_executable_extensions; do 32523 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 32524 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 32525 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 32526 break 2 32527 fi 32528done 32529 done 32530IFS=$as_save_IFS 32531 32532 ;; 32533esac 32534fi 32535PKGCONFIG=$ac_cv_path_PKGCONFIG 32536if test -n "$PKGCONFIG"; then 32537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 32538printf "%s\n" "$PKGCONFIG" >&6; } 32539else 32540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32541printf "%s\n" "no" >&6; } 32542fi 32543 32544 32545fi 32546if test -z "$ac_cv_path_PKGCONFIG"; then 32547 ac_pt_PKGCONFIG=$PKGCONFIG 32548 # Extract the first word of "pkg-config", so it can be a program name with args. 32549set dummy pkg-config; ac_word=$2 32550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32551printf %s "checking for $ac_word... " >&6; } 32552if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 32553then : 32554 printf %s "(cached) " >&6 32555else $as_nop 32556 case $ac_pt_PKGCONFIG in 32557 [\\/]* | ?:[\\/]*) 32558 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 32559 ;; 32560 *) 32561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32562as_dummy="$PATH:/usr/bin:/usr/local/bin" 32563for as_dir in $as_dummy 32564do 32565 IFS=$as_save_IFS 32566 case $as_dir in #((( 32567 '') as_dir=./ ;; 32568 */) ;; 32569 *) as_dir=$as_dir/ ;; 32570 esac 32571 for ac_exec_ext in '' $ac_executable_extensions; do 32572 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 32573 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 32574 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 32575 break 2 32576 fi 32577done 32578 done 32579IFS=$as_save_IFS 32580 32581 ;; 32582esac 32583fi 32584ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 32585if test -n "$ac_pt_PKGCONFIG"; then 32586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 32587printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 32588else 32589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32590printf "%s\n" "no" >&6; } 32591fi 32592 32593 if test "x$ac_pt_PKGCONFIG" = x; then 32594 PKGCONFIG="no" 32595 else 32596 case $cross_compiling:$ac_tool_warned in 32597yes:) 32598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32599printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32600ac_tool_warned=yes ;; 32601esac 32602 PKGCONFIG=$ac_pt_PKGCONFIG 32603 fi 32604else 32605 PKGCONFIG="$ac_cv_path_PKGCONFIG" 32606fi 32607 32608 fi 32609 32610 if test "x$PKGCONFIG" != "xno"; then 32611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_wolfssl options with pkg-config" >&5 32612printf %s "checking for libngtcp2_crypto_wolfssl options with pkg-config... " >&6; } 32613 itexists=` 32614 if test -n "$want_tcp2_path"; then 32615 PKG_CONFIG_LIBDIR="$want_tcp2_path" 32616 export PKG_CONFIG_LIBDIR 32617 fi 32618 $PKGCONFIG --exists libngtcp2_crypto_wolfssl >/dev/null 2>&1 && echo 1` 32619 32620 if test -z "$itexists"; then 32621 PKGCONFIG="no" 32622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32623printf "%s\n" "no" >&6; } 32624 else 32625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 32626printf "%s\n" "found" >&6; } 32627 fi 32628 fi 32629 32630 32631 if test "$PKGCONFIG" != "no"; then 32632 LIB_NGTCP2_CRYPTO_WOLFSSL=` 32633 if test -n "$want_tcp2_path"; then 32634 PKG_CONFIG_LIBDIR="$want_tcp2_path" 32635 export PKG_CONFIG_LIBDIR 32636 fi 32637 32638 $PKGCONFIG --libs-only-l libngtcp2_crypto_wolfssl` 32639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_WOLFSSL" >&5 32640printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_WOLFSSL" >&6;} 32641 32642 CPP_NGTCP2_CRYPTO_WOLFSSL=` 32643 if test -n "$want_tcp2_path"; then 32644 PKG_CONFIG_LIBDIR="$want_tcp2_path" 32645 export PKG_CONFIG_LIBDIR 32646 fi 32647 $PKGCONFIG --cflags-only-I libngtcp2_crypto_wolfssl` 32648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_WOLFSSL" >&5 32649printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_WOLFSSL" >&6;} 32650 32651 LD_NGTCP2_CRYPTO_WOLFSSL=` 32652 if test -n "$want_tcp2_path"; then 32653 PKG_CONFIG_LIBDIR="$want_tcp2_path" 32654 export PKG_CONFIG_LIBDIR 32655 fi 32656 32657 $PKGCONFIG --libs-only-L libngtcp2_crypto_wolfssl` 32658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_WOLFSSL" >&5 32659printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_WOLFSSL" >&6;} 32660 32661 LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_WOLFSSL" 32662 CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_WOLFSSL" 32663 LIBS="$LIB_NGTCP2_CRYPTO_WOLFSSL $LIBS" 32664 32665 if test "x$cross_compiling" != "xyes"; then 32666 DIR_NGTCP2_CRYPTO_WOLFSSL=`echo $LD_NGTCP2_CRYPTO_WOLFSSL | $SED -e 's/^-L//'` 32667 fi 32668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_wolfssl" >&5 32669printf %s "checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_wolfssl... " >&6; } 32670if test ${ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb+y} 32671then : 32672 printf %s "(cached) " >&6 32673else $as_nop 32674 ac_check_lib_save_LIBS=$LIBS 32675LIBS="-lngtcp2_crypto_wolfssl $LIBS" 32676cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32677/* end confdefs.h. */ 32678 32679 32680#ifdef __cplusplus 32681extern "C" 32682#endif 32683char ngtcp2_crypto_recv_client_initial_cb (); 32684int main(void) 32685{ 32686return ngtcp2_crypto_recv_client_initial_cb (); 32687 ; 32688 return 0; 32689} 32690_ACEOF 32691if ac_fn_c_try_link "$LINENO" 32692then : 32693 ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb=yes 32694else $as_nop 32695 ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb=no 32696fi 32697rm -f core conftest.err conftest.$ac_objext conftest.beam \ 32698 conftest$ac_exeext conftest.$ac_ext 32699LIBS=$ac_check_lib_save_LIBS 32700fi 32701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb" >&5 32702printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb" >&6; } 32703if test "x$ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb" = xyes 32704then : 32705 32706 for ac_header in ngtcp2/ngtcp2_crypto.h 32707do : 32708 ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default" 32709if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes 32710then : 32711 printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h 32712 NGTCP2_ENABLED=1 32713 32714printf "%s\n" "#define USE_NGTCP2_CRYPTO_WOLFSSL 1" >>confdefs.h 32715 32716 USE_NGTCP2_CRYPTO_WOLFSSL=1 32717 32718 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_WOLFSSL" 32719 export CURL_LIBRARY_PATH 32720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_WOLFSSL to CURL_LIBRARY_PATH" >&5 32721printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_WOLFSSL to CURL_LIBRARY_PATH" >&6;} 32722 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE libngtcp2_crypto_wolfssl" 32723 32724fi 32725 32726done 32727 32728else $as_nop 32729 LDFLAGS=$CLEANLDFLAGS 32730 CPPFLAGS=$CLEANCPPFLAGS 32731 LIBS=$CLEANLIBS 32732 32733fi 32734 32735 32736 else 32737 if test X"$want_tcp2" != Xdefault; then 32738 as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_wolfssl pkg-config file." "$LINENO" 5 32739 fi 32740 fi 32741fi 32742 32743 32744OPT_OPENSSL_QUIC="no" 32745 32746if test "x$disable_http" = "xyes" -o "x$OPENSSL_ENABLED" != "x1"; then 32747 # without HTTP or without openssl, no use 32748 OPT_OPENSSL_QUIC="no" 32749fi 32750 32751 32752# Check whether --with-openssl-quic was given. 32753if test ${with_openssl_quic+y} 32754then : 32755 withval=$with_openssl_quic; OPT_OPENSSL_QUIC=$withval 32756fi 32757 32758case "$OPT_OPENSSL_QUIC" in 32759 no) 32760 want_openssl_quic="no" 32761 ;; 32762 yes) 32763 want_openssl_quic="yes" 32764 ;; 32765esac 32766 32767curl_openssl_quic_msg="no (--with-openssl-quic)" 32768if test "x$want_openssl_quic" = "xyes"; then 32769 32770 if test "$NGTCP2_ENABLED" = 1; then 32771 as_fn_error $? "--with-openssl-quic and --with-ngtcp2 are mutually exclusive" "$LINENO" 5 32772 fi 32773 if test "$have_openssl_quic" != 1; then 32774 as_fn_error $? "--with-openssl-quic requires quic support and OpenSSL >= 3.3.0" "$LINENO" 5 32775 fi 32776 32777printf "%s\n" "#define USE_OPENSSL_QUIC 1" >>confdefs.h 32778 32779 USE_OPENSSL_QUIC=1 32780 32781fi 32782 32783 32784OPT_NGHTTP3="yes" 32785 32786if test "x$USE_NGTCP2" != "x1" -a "x$USE_OPENSSL_QUIC" != "x1"; then 32787 # without ngtcp2 or openssl quic, nghttp3 is of no use for us 32788 OPT_NGHTTP3="no" 32789 want_nghttp3="no" 32790fi 32791 32792 32793# Check whether --with-nghttp3 was given. 32794if test ${with_nghttp3+y} 32795then : 32796 withval=$with_nghttp3; OPT_NGHTTP3=$withval 32797fi 32798 32799case "$OPT_NGHTTP3" in 32800 no) 32801 want_nghttp3="no" 32802 ;; 32803 yes) 32804 want_nghttp3="default" 32805 want_nghttp3_path="" 32806 ;; 32807 *) 32808 want_nghttp3="yes" 32809 want_nghttp3_path="$withval/lib/pkgconfig" 32810 ;; 32811esac 32812 32813curl_http3_msg="no (--with-nghttp3)" 32814if test X"$want_nghttp3" != Xno; then 32815 32816 if test "x$USE_NGTCP2" != "x1" -a "x$USE_OPENSSL_QUIC" != "x1"; then 32817 # without ngtcp2 or openssl quic, nghttp3 is of no use for us 32818 as_fn_error $? "nghttp3 enabled without a QUIC library; enable ngtcp2 or OpenSSL-QUIC" "$LINENO" 5 32819 fi 32820 32821 CLEANLDFLAGS="$LDFLAGS" 32822 CLEANCPPFLAGS="$CPPFLAGS" 32823 CLEANLIBS="$LIBS" 32824 32825 32826 if test -n "$PKG_CONFIG"; then 32827 PKGCONFIG="$PKG_CONFIG" 32828 else 32829 if test -n "$ac_tool_prefix"; then 32830 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 32831set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 32832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32833printf %s "checking for $ac_word... " >&6; } 32834if test ${ac_cv_path_PKGCONFIG+y} 32835then : 32836 printf %s "(cached) " >&6 32837else $as_nop 32838 case $PKGCONFIG in 32839 [\\/]* | ?:[\\/]*) 32840 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 32841 ;; 32842 *) 32843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32844as_dummy="$PATH:/usr/bin:/usr/local/bin" 32845for as_dir in $as_dummy 32846do 32847 IFS=$as_save_IFS 32848 case $as_dir in #((( 32849 '') as_dir=./ ;; 32850 */) ;; 32851 *) as_dir=$as_dir/ ;; 32852 esac 32853 for ac_exec_ext in '' $ac_executable_extensions; do 32854 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 32855 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 32856 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 32857 break 2 32858 fi 32859done 32860 done 32861IFS=$as_save_IFS 32862 32863 ;; 32864esac 32865fi 32866PKGCONFIG=$ac_cv_path_PKGCONFIG 32867if test -n "$PKGCONFIG"; then 32868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 32869printf "%s\n" "$PKGCONFIG" >&6; } 32870else 32871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32872printf "%s\n" "no" >&6; } 32873fi 32874 32875 32876fi 32877if test -z "$ac_cv_path_PKGCONFIG"; then 32878 ac_pt_PKGCONFIG=$PKGCONFIG 32879 # Extract the first word of "pkg-config", so it can be a program name with args. 32880set dummy pkg-config; ac_word=$2 32881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32882printf %s "checking for $ac_word... " >&6; } 32883if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 32884then : 32885 printf %s "(cached) " >&6 32886else $as_nop 32887 case $ac_pt_PKGCONFIG in 32888 [\\/]* | ?:[\\/]*) 32889 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 32890 ;; 32891 *) 32892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32893as_dummy="$PATH:/usr/bin:/usr/local/bin" 32894for as_dir in $as_dummy 32895do 32896 IFS=$as_save_IFS 32897 case $as_dir in #((( 32898 '') as_dir=./ ;; 32899 */) ;; 32900 *) as_dir=$as_dir/ ;; 32901 esac 32902 for ac_exec_ext in '' $ac_executable_extensions; do 32903 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 32904 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 32905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 32906 break 2 32907 fi 32908done 32909 done 32910IFS=$as_save_IFS 32911 32912 ;; 32913esac 32914fi 32915ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 32916if test -n "$ac_pt_PKGCONFIG"; then 32917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 32918printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 32919else 32920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32921printf "%s\n" "no" >&6; } 32922fi 32923 32924 if test "x$ac_pt_PKGCONFIG" = x; then 32925 PKGCONFIG="no" 32926 else 32927 case $cross_compiling:$ac_tool_warned in 32928yes:) 32929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32930printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32931ac_tool_warned=yes ;; 32932esac 32933 PKGCONFIG=$ac_pt_PKGCONFIG 32934 fi 32935else 32936 PKGCONFIG="$ac_cv_path_PKGCONFIG" 32937fi 32938 32939 fi 32940 32941 if test "x$PKGCONFIG" != "xno"; then 32942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnghttp3 options with pkg-config" >&5 32943printf %s "checking for libnghttp3 options with pkg-config... " >&6; } 32944 itexists=` 32945 if test -n "$want_nghttp3_path"; then 32946 PKG_CONFIG_LIBDIR="$want_nghttp3_path" 32947 export PKG_CONFIG_LIBDIR 32948 fi 32949 $PKGCONFIG --exists libnghttp3 >/dev/null 2>&1 && echo 1` 32950 32951 if test -z "$itexists"; then 32952 PKGCONFIG="no" 32953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 32954printf "%s\n" "no" >&6; } 32955 else 32956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 32957printf "%s\n" "found" >&6; } 32958 fi 32959 fi 32960 32961 32962 if test "$PKGCONFIG" != "no"; then 32963 LIB_NGHTTP3=` 32964 if test -n "$want_nghttp3_path"; then 32965 PKG_CONFIG_LIBDIR="$want_nghttp3_path" 32966 export PKG_CONFIG_LIBDIR 32967 fi 32968 32969 $PKGCONFIG --libs-only-l libnghttp3` 32970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGHTTP3" >&5 32971printf "%s\n" "$as_me: -l is $LIB_NGHTTP3" >&6;} 32972 32973 CPP_NGHTTP3=` 32974 if test -n "$want_nghttp3_path"; then 32975 PKG_CONFIG_LIBDIR="$want_nghttp3_path" 32976 export PKG_CONFIG_LIBDIR 32977 fi 32978 $PKGCONFIG --cflags-only-I libnghttp3` 32979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGHTTP3" >&5 32980printf "%s\n" "$as_me: -I is $CPP_NGHTTP3" >&6;} 32981 32982 LD_NGHTTP3=` 32983 if test -n "$want_nghttp3_path"; then 32984 PKG_CONFIG_LIBDIR="$want_nghttp3_path" 32985 export PKG_CONFIG_LIBDIR 32986 fi 32987 32988 $PKGCONFIG --libs-only-L libnghttp3` 32989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGHTTP3" >&5 32990printf "%s\n" "$as_me: -L is $LD_NGHTTP3" >&6;} 32991 32992 LDFLAGS="$LDFLAGS $LD_NGHTTP3" 32993 CPPFLAGS="$CPPFLAGS $CPP_NGHTTP3" 32994 LIBS="$LIB_NGHTTP3 $LIBS" 32995 32996 if test "x$cross_compiling" != "xyes"; then 32997 DIR_NGHTTP3=`echo $LD_NGHTTP3 | $SED -e 's/^-L//'` 32998 fi 32999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nghttp3_conn_client_new_versioned in -lnghttp3" >&5 33000printf %s "checking for nghttp3_conn_client_new_versioned in -lnghttp3... " >&6; } 33001if test ${ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned+y} 33002then : 33003 printf %s "(cached) " >&6 33004else $as_nop 33005 ac_check_lib_save_LIBS=$LIBS 33006LIBS="-lnghttp3 $LIBS" 33007cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33008/* end confdefs.h. */ 33009 33010 33011#ifdef __cplusplus 33012extern "C" 33013#endif 33014char nghttp3_conn_client_new_versioned (); 33015int main(void) 33016{ 33017return nghttp3_conn_client_new_versioned (); 33018 ; 33019 return 0; 33020} 33021_ACEOF 33022if ac_fn_c_try_link "$LINENO" 33023then : 33024 ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned=yes 33025else $as_nop 33026 ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned=no 33027fi 33028rm -f core conftest.err conftest.$ac_objext conftest.beam \ 33029 conftest$ac_exeext conftest.$ac_ext 33030LIBS=$ac_check_lib_save_LIBS 33031fi 33032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" >&5 33033printf "%s\n" "$ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" >&6; } 33034if test "x$ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" = xyes 33035then : 33036 33037 for ac_header in nghttp3/nghttp3.h 33038do : 33039 ac_fn_c_check_header_compile "$LINENO" "nghttp3/nghttp3.h" "ac_cv_header_nghttp3_nghttp3_h" "$ac_includes_default" 33040if test "x$ac_cv_header_nghttp3_nghttp3_h" = xyes 33041then : 33042 printf "%s\n" "#define HAVE_NGHTTP3_NGHTTP3_H 1" >>confdefs.h 33043 33044printf "%s\n" "#define USE_NGHTTP3 1" >>confdefs.h 33045 33046 USE_NGHTTP3=1 33047 33048 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGHTTP3" 33049 export CURL_LIBRARY_PATH 33050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGHTTP3 to CURL_LIBRARY_PATH" >&5 33051printf "%s\n" "$as_me: Added $DIR_NGHTTP3 to CURL_LIBRARY_PATH" >&6;} 33052 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE libnghttp3" 33053 33054fi 33055 33056done 33057 33058else $as_nop 33059 LDFLAGS=$CLEANLDFLAGS 33060 CPPFLAGS=$CLEANCPPFLAGS 33061 LIBS=$CLEANLIBS 33062 33063fi 33064 33065 33066 else 33067 if test X"$want_nghttp3" != Xdefault; then 33068 as_fn_error $? "--with-nghttp3 was specified but could not find nghttp3 pkg-config file." "$LINENO" 5 33069 fi 33070 fi 33071fi 33072 33073 33074if test "x$NGTCP2_ENABLED" = "x1" -a "x$USE_NGHTTP3" = "x1"; then 33075 33076printf "%s\n" "#define USE_NGTCP2_H3 1" >>confdefs.h 33077 33078 USE_NGTCP2_H3=1 33079 33080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: HTTP3 support is experimental" >&5 33081printf "%s\n" "$as_me: HTTP3 support is experimental" >&6;} 33082 curl_h3_msg="enabled (ngtcp2 + nghttp3)" 33083fi 33084 33085 33086if test "x$USE_OPENSSL_QUIC" = "x1" -a "x$USE_NGHTTP3" = "x1"; then 33087 experimental="$experimental HTTP3" 33088 33089printf "%s\n" "#define USE_OPENSSL_H3 1" >>confdefs.h 33090 33091 USE_OPENSSL_H3=1 33092 33093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: HTTP3 support is experimental" >&5 33094printf "%s\n" "$as_me: HTTP3 support is experimental" >&6;} 33095 curl_h3_msg="enabled (openssl + nghttp3)" 33096fi 33097 33098 33099OPT_QUICHE="no" 33100 33101if test "x$disable_http" = "xyes" -o "x$USE_NGTCP" = "x1"; then 33102 # without HTTP or with ngtcp2, quiche is no use 33103 OPT_QUICHE="no" 33104fi 33105 33106 33107# Check whether --with-quiche was given. 33108if test ${with_quiche+y} 33109then : 33110 withval=$with_quiche; OPT_QUICHE=$withval 33111fi 33112 33113case "$OPT_QUICHE" in 33114 no) 33115 want_quiche="no" 33116 ;; 33117 yes) 33118 want_quiche="default" 33119 want_quiche_path="" 33120 ;; 33121 *) 33122 want_quiche="yes" 33123 want_quiche_path="$withval" 33124 ;; 33125esac 33126 33127if test X"$want_quiche" != Xno; then 33128 33129 if test "$QUIC_ENABLED" != "yes"; then 33130 as_fn_error $? "the detected TLS library does not support QUIC, making --with-quiche a no-no" "$LINENO" 5 33131 fi 33132 33133 if test "$NGHTTP3_ENABLED" = 1; then 33134 as_fn_error $? "--with-quiche and --with-ngtcp2 are mutually exclusive" "$LINENO" 5 33135 fi 33136 33137 CLEANLDFLAGS="$LDFLAGS" 33138 CLEANCPPFLAGS="$CPPFLAGS" 33139 CLEANLIBS="$LIBS" 33140 33141 33142 if test -n "$PKG_CONFIG"; then 33143 PKGCONFIG="$PKG_CONFIG" 33144 else 33145 if test -n "$ac_tool_prefix"; then 33146 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 33147set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 33148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33149printf %s "checking for $ac_word... " >&6; } 33150if test ${ac_cv_path_PKGCONFIG+y} 33151then : 33152 printf %s "(cached) " >&6 33153else $as_nop 33154 case $PKGCONFIG in 33155 [\\/]* | ?:[\\/]*) 33156 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 33157 ;; 33158 *) 33159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33160as_dummy="$PATH:/usr/bin:/usr/local/bin" 33161for as_dir in $as_dummy 33162do 33163 IFS=$as_save_IFS 33164 case $as_dir in #((( 33165 '') as_dir=./ ;; 33166 */) ;; 33167 *) as_dir=$as_dir/ ;; 33168 esac 33169 for ac_exec_ext in '' $ac_executable_extensions; do 33170 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 33171 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 33172 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 33173 break 2 33174 fi 33175done 33176 done 33177IFS=$as_save_IFS 33178 33179 ;; 33180esac 33181fi 33182PKGCONFIG=$ac_cv_path_PKGCONFIG 33183if test -n "$PKGCONFIG"; then 33184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 33185printf "%s\n" "$PKGCONFIG" >&6; } 33186else 33187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33188printf "%s\n" "no" >&6; } 33189fi 33190 33191 33192fi 33193if test -z "$ac_cv_path_PKGCONFIG"; then 33194 ac_pt_PKGCONFIG=$PKGCONFIG 33195 # Extract the first word of "pkg-config", so it can be a program name with args. 33196set dummy pkg-config; ac_word=$2 33197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33198printf %s "checking for $ac_word... " >&6; } 33199if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 33200then : 33201 printf %s "(cached) " >&6 33202else $as_nop 33203 case $ac_pt_PKGCONFIG in 33204 [\\/]* | ?:[\\/]*) 33205 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 33206 ;; 33207 *) 33208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33209as_dummy="$PATH:/usr/bin:/usr/local/bin" 33210for as_dir in $as_dummy 33211do 33212 IFS=$as_save_IFS 33213 case $as_dir in #((( 33214 '') as_dir=./ ;; 33215 */) ;; 33216 *) as_dir=$as_dir/ ;; 33217 esac 33218 for ac_exec_ext in '' $ac_executable_extensions; do 33219 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 33220 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 33221 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 33222 break 2 33223 fi 33224done 33225 done 33226IFS=$as_save_IFS 33227 33228 ;; 33229esac 33230fi 33231ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 33232if test -n "$ac_pt_PKGCONFIG"; then 33233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 33234printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 33235else 33236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33237printf "%s\n" "no" >&6; } 33238fi 33239 33240 if test "x$ac_pt_PKGCONFIG" = x; then 33241 PKGCONFIG="no" 33242 else 33243 case $cross_compiling:$ac_tool_warned in 33244yes:) 33245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33246printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33247ac_tool_warned=yes ;; 33248esac 33249 PKGCONFIG=$ac_pt_PKGCONFIG 33250 fi 33251else 33252 PKGCONFIG="$ac_cv_path_PKGCONFIG" 33253fi 33254 33255 fi 33256 33257 if test "x$PKGCONFIG" != "xno"; then 33258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for quiche options with pkg-config" >&5 33259printf %s "checking for quiche options with pkg-config... " >&6; } 33260 itexists=` 33261 if test -n "$want_quiche_path"; then 33262 PKG_CONFIG_LIBDIR="$want_quiche_path" 33263 export PKG_CONFIG_LIBDIR 33264 fi 33265 $PKGCONFIG --exists quiche >/dev/null 2>&1 && echo 1` 33266 33267 if test -z "$itexists"; then 33268 PKGCONFIG="no" 33269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33270printf "%s\n" "no" >&6; } 33271 else 33272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 33273printf "%s\n" "found" >&6; } 33274 fi 33275 fi 33276 33277 33278 if test "$PKGCONFIG" != "no"; then 33279 LIB_QUICHE=` 33280 if test -n "$want_quiche_path"; then 33281 PKG_CONFIG_LIBDIR="$want_quiche_path" 33282 export PKG_CONFIG_LIBDIR 33283 fi 33284 33285 $PKGCONFIG --libs-only-l quiche` 33286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_QUICHE" >&5 33287printf "%s\n" "$as_me: -l is $LIB_QUICHE" >&6;} 33288 33289 CPP_QUICHE=` 33290 if test -n "$want_quiche_path"; then 33291 PKG_CONFIG_LIBDIR="$want_quiche_path" 33292 export PKG_CONFIG_LIBDIR 33293 fi 33294 $PKGCONFIG --cflags-only-I quiche` 33295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_QUICHE" >&5 33296printf "%s\n" "$as_me: -I is $CPP_QUICHE" >&6;} 33297 33298 LD_QUICHE=` 33299 if test -n "$want_quiche_path"; then 33300 PKG_CONFIG_LIBDIR="$want_quiche_path" 33301 export PKG_CONFIG_LIBDIR 33302 fi 33303 33304 $PKGCONFIG --libs-only-L quiche` 33305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_QUICHE" >&5 33306printf "%s\n" "$as_me: -L is $LD_QUICHE" >&6;} 33307 33308 LDFLAGS="$LDFLAGS $LD_QUICHE" 33309 CPPFLAGS="$CPPFLAGS $CPP_QUICHE" 33310 LIBS="$LIB_QUICHE $LIBS" 33311 33312 if test "x$cross_compiling" != "xyes"; then 33313 DIR_QUICHE=`echo $LD_QUICHE | $SED -e 's/^-L//'` 33314 fi 33315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for quiche_conn_send_ack_eliciting in -lquiche" >&5 33316printf %s "checking for quiche_conn_send_ack_eliciting in -lquiche... " >&6; } 33317if test ${ac_cv_lib_quiche_quiche_conn_send_ack_eliciting+y} 33318then : 33319 printf %s "(cached) " >&6 33320else $as_nop 33321 ac_check_lib_save_LIBS=$LIBS 33322LIBS="-lquiche $LIBS" 33323cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33324/* end confdefs.h. */ 33325 33326 33327#ifdef __cplusplus 33328extern "C" 33329#endif 33330char quiche_conn_send_ack_eliciting (); 33331int main(void) 33332{ 33333return quiche_conn_send_ack_eliciting (); 33334 ; 33335 return 0; 33336} 33337_ACEOF 33338if ac_fn_c_try_link "$LINENO" 33339then : 33340 ac_cv_lib_quiche_quiche_conn_send_ack_eliciting=yes 33341else $as_nop 33342 ac_cv_lib_quiche_quiche_conn_send_ack_eliciting=no 33343fi 33344rm -f core conftest.err conftest.$ac_objext conftest.beam \ 33345 conftest$ac_exeext conftest.$ac_ext 33346LIBS=$ac_check_lib_save_LIBS 33347fi 33348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_quiche_quiche_conn_send_ack_eliciting" >&5 33349printf "%s\n" "$ac_cv_lib_quiche_quiche_conn_send_ack_eliciting" >&6; } 33350if test "x$ac_cv_lib_quiche_quiche_conn_send_ack_eliciting" = xyes 33351then : 33352 33353 for ac_header in quiche.h 33354do : 33355 ac_fn_c_check_header_compile "$LINENO" "quiche.h" "ac_cv_header_quiche_h" " 33356 $ac_includes_default 33357 #include <sys/socket.h> 33358 33359 33360" 33361if test "x$ac_cv_header_quiche_h" = xyes 33362then : 33363 printf "%s\n" "#define HAVE_QUICHE_H 1" >>confdefs.h 33364 experimental="$experimental HTTP3" 33365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: HTTP3 support is experimental" >&5 33366printf "%s\n" "$as_me: HTTP3 support is experimental" >&6;} 33367 curl_h3_msg="enabled (quiche)" 33368 QUICHE_ENABLED=1 33369 33370printf "%s\n" "#define USE_QUICHE 1" >>confdefs.h 33371 33372 USE_QUICHE=1 33373 33374 ac_fn_c_check_func "$LINENO" "quiche_conn_set_qlog_fd" "ac_cv_func_quiche_conn_set_qlog_fd" 33375if test "x$ac_cv_func_quiche_conn_set_qlog_fd" = xyes 33376then : 33377 printf "%s\n" "#define HAVE_QUICHE_CONN_SET_QLOG_FD 1" >>confdefs.h 33378 33379fi 33380 33381 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_QUICHE" 33382 export CURL_LIBRARY_PATH 33383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_QUICHE to CURL_LIBRARY_PATH" >&5 33384printf "%s\n" "$as_me: Added $DIR_QUICHE to CURL_LIBRARY_PATH" >&6;} 33385 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE quiche" 33386fi 33387 33388done 33389 33390else $as_nop 33391 as_fn_error $? "couldn't use quiche" "$LINENO" 5 33392 33393fi 33394 33395 else 33396 if test X"$want_quiche" != Xdefault; then 33397 as_fn_error $? "--with-quiche was specified but could not find quiche pkg-config file." "$LINENO" 5 33398 fi 33399 fi 33400fi 33401 33402 33403OPT_MSH3="no" 33404 33405if test "x$disable_http" = "xyes" -o "x$USE_NGTCP" = "x1"; then 33406 # without HTTP or with ngtcp2, msh3 is no use 33407 OPT_MSH3="no" 33408fi 33409 33410 33411# Check whether --with-msh3 was given. 33412if test ${with_msh3+y} 33413then : 33414 withval=$with_msh3; OPT_MSH3=$withval 33415fi 33416 33417case "$OPT_MSH3" in 33418 no) 33419 want_msh3="no" 33420 ;; 33421 yes) 33422 want_msh3="default" 33423 want_msh3_path="" 33424 ;; 33425 *) 33426 want_msh3="yes" 33427 want_msh3_path="$withval" 33428 ;; 33429esac 33430 33431if test X"$want_msh3" != Xno; then 33432 33433 if test "$curl_cv_native_windows" != "yes"; then 33434 if test "$QUIC_ENABLED" != "yes"; then 33435 as_fn_error $? "the detected TLS library does not support QUIC, making --with-msh3 a no-no" "$LINENO" 5 33436 fi 33437 if test "$OPENSSL_ENABLED" != "1"; then 33438 as_fn_error $? "msh3/msquic requires OpenSSL" "$LINENO" 5 33439 fi 33440 fi 33441 33442 if test "$NGHTTP3_ENABLED" = 1; then 33443 as_fn_error $? "--with-msh3 and --with-ngtcp2 are mutually exclusive" "$LINENO" 5 33444 fi 33445 if test "$QUICHE_ENABLED" = 1; then 33446 as_fn_error $? "--with-msh3 and --with-quiche are mutually exclusive" "$LINENO" 5 33447 fi 33448 33449 CLEANLDFLAGS="$LDFLAGS" 33450 CLEANCPPFLAGS="$CPPFLAGS" 33451 CLEANLIBS="$LIBS" 33452 33453 if test -n "$want_msh3_path"; then 33454 LD_MSH3="-L$want_msh3_path/lib" 33455 CPP_MSH3="-I$want_msh3_path/include" 33456 DIR_MSH3="$want_msh3_path/lib" 33457 LDFLAGS="$LDFLAGS $LD_MSH3" 33458 CPPFLAGS="$CPPFLAGS $CPP_MSH3" 33459 fi 33460 LIBS="-lmsh3 $LIBS" 33461 33462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MsH3ApiOpen in -lmsh3" >&5 33463printf %s "checking for MsH3ApiOpen in -lmsh3... " >&6; } 33464if test ${ac_cv_lib_msh3_MsH3ApiOpen+y} 33465then : 33466 printf %s "(cached) " >&6 33467else $as_nop 33468 ac_check_lib_save_LIBS=$LIBS 33469LIBS="-lmsh3 $LIBS" 33470cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33471/* end confdefs.h. */ 33472 33473 33474#ifdef __cplusplus 33475extern "C" 33476#endif 33477char MsH3ApiOpen (); 33478int main(void) 33479{ 33480return MsH3ApiOpen (); 33481 ; 33482 return 0; 33483} 33484_ACEOF 33485if ac_fn_c_try_link "$LINENO" 33486then : 33487 ac_cv_lib_msh3_MsH3ApiOpen=yes 33488else $as_nop 33489 ac_cv_lib_msh3_MsH3ApiOpen=no 33490fi 33491rm -f core conftest.err conftest.$ac_objext conftest.beam \ 33492 conftest$ac_exeext conftest.$ac_ext 33493LIBS=$ac_check_lib_save_LIBS 33494fi 33495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_msh3_MsH3ApiOpen" >&5 33496printf "%s\n" "$ac_cv_lib_msh3_MsH3ApiOpen" >&6; } 33497if test "x$ac_cv_lib_msh3_MsH3ApiOpen" = xyes 33498then : 33499 33500 for ac_header in msh3.h 33501do : 33502 ac_fn_c_check_header_compile "$LINENO" "msh3.h" "ac_cv_header_msh3_h" "$ac_includes_default" 33503if test "x$ac_cv_header_msh3_h" = xyes 33504then : 33505 printf "%s\n" "#define HAVE_MSH3_H 1" >>confdefs.h 33506 curl_h3_msg="enabled (msh3)" 33507 MSH3_ENABLED=1 33508 33509printf "%s\n" "#define USE_MSH3 1" >>confdefs.h 33510 33511 USE_MSH3=1 33512 33513 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_MSH3" 33514 export CURL_LIBRARY_PATH 33515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_MSH3 to CURL_LIBRARY_PATH" >&5 33516printf "%s\n" "$as_me: Added $DIR_MSH3 to CURL_LIBRARY_PATH" >&6;} 33517 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE libmsh3" 33518 experimental="$experimental HTTP3" 33519 33520fi 33521 33522done 33523 33524else $as_nop 33525 LDFLAGS=$CLEANLDFLAGS 33526 CPPFLAGS=$CLEANCPPFLAGS 33527 LIBS=$CLEANLIBS 33528 33529fi 33530 33531fi 33532 33533 33534OPT_LIBUV=no 33535 33536# Check whether --with-libuv was given. 33537if test ${with_libuv+y} 33538then : 33539 withval=$with_libuv; OPT_LIBUV=$withval 33540fi 33541 33542case "$OPT_LIBUV" in 33543 no) 33544 want_libuv="no" 33545 ;; 33546 yes) 33547 want_libuv="default" 33548 want_libuv_path="" 33549 ;; 33550 *) 33551 want_libuv="yes" 33552 want_libuv_path="$withval" 33553 ;; 33554esac 33555 33556if test X"$want_libuv" != Xno; then 33557 if test x$want_debug != xyes; then 33558 as_fn_error $? "Using libuv without debug support enabled is useless" "$LINENO" 5 33559 fi 33560 33561 CLEANLDFLAGS="$LDFLAGS" 33562 CLEANCPPFLAGS="$CPPFLAGS" 33563 CLEANLIBS="$LIBS" 33564 33565 33566 if test -n "$PKG_CONFIG"; then 33567 PKGCONFIG="$PKG_CONFIG" 33568 else 33569 if test -n "$ac_tool_prefix"; then 33570 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 33571set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 33572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33573printf %s "checking for $ac_word... " >&6; } 33574if test ${ac_cv_path_PKGCONFIG+y} 33575then : 33576 printf %s "(cached) " >&6 33577else $as_nop 33578 case $PKGCONFIG in 33579 [\\/]* | ?:[\\/]*) 33580 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 33581 ;; 33582 *) 33583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33584as_dummy="$PATH:/usr/bin:/usr/local/bin" 33585for as_dir in $as_dummy 33586do 33587 IFS=$as_save_IFS 33588 case $as_dir in #((( 33589 '') as_dir=./ ;; 33590 */) ;; 33591 *) as_dir=$as_dir/ ;; 33592 esac 33593 for ac_exec_ext in '' $ac_executable_extensions; do 33594 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 33595 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 33596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 33597 break 2 33598 fi 33599done 33600 done 33601IFS=$as_save_IFS 33602 33603 ;; 33604esac 33605fi 33606PKGCONFIG=$ac_cv_path_PKGCONFIG 33607if test -n "$PKGCONFIG"; then 33608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 33609printf "%s\n" "$PKGCONFIG" >&6; } 33610else 33611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33612printf "%s\n" "no" >&6; } 33613fi 33614 33615 33616fi 33617if test -z "$ac_cv_path_PKGCONFIG"; then 33618 ac_pt_PKGCONFIG=$PKGCONFIG 33619 # Extract the first word of "pkg-config", so it can be a program name with args. 33620set dummy pkg-config; ac_word=$2 33621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33622printf %s "checking for $ac_word... " >&6; } 33623if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 33624then : 33625 printf %s "(cached) " >&6 33626else $as_nop 33627 case $ac_pt_PKGCONFIG in 33628 [\\/]* | ?:[\\/]*) 33629 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 33630 ;; 33631 *) 33632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33633as_dummy="$PATH:/usr/bin:/usr/local/bin" 33634for as_dir in $as_dummy 33635do 33636 IFS=$as_save_IFS 33637 case $as_dir in #((( 33638 '') as_dir=./ ;; 33639 */) ;; 33640 *) as_dir=$as_dir/ ;; 33641 esac 33642 for ac_exec_ext in '' $ac_executable_extensions; do 33643 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 33644 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 33645 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 33646 break 2 33647 fi 33648done 33649 done 33650IFS=$as_save_IFS 33651 33652 ;; 33653esac 33654fi 33655ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 33656if test -n "$ac_pt_PKGCONFIG"; then 33657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 33658printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 33659else 33660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33661printf "%s\n" "no" >&6; } 33662fi 33663 33664 if test "x$ac_pt_PKGCONFIG" = x; then 33665 PKGCONFIG="no" 33666 else 33667 case $cross_compiling:$ac_tool_warned in 33668yes:) 33669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33670printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33671ac_tool_warned=yes ;; 33672esac 33673 PKGCONFIG=$ac_pt_PKGCONFIG 33674 fi 33675else 33676 PKGCONFIG="$ac_cv_path_PKGCONFIG" 33677fi 33678 33679 fi 33680 33681 if test "x$PKGCONFIG" != "xno"; then 33682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuv options with pkg-config" >&5 33683printf %s "checking for libuv options with pkg-config... " >&6; } 33684 itexists=` 33685 if test -n "$want_libuv_path"; then 33686 PKG_CONFIG_LIBDIR="$want_libuv_path" 33687 export PKG_CONFIG_LIBDIR 33688 fi 33689 $PKGCONFIG --exists libuv >/dev/null 2>&1 && echo 1` 33690 33691 if test -z "$itexists"; then 33692 PKGCONFIG="no" 33693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33694printf "%s\n" "no" >&6; } 33695 else 33696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 33697printf "%s\n" "found" >&6; } 33698 fi 33699 fi 33700 33701 33702 if test "$PKGCONFIG" != "no"; then 33703 LIB_LIBUV=` 33704 if test -n "$want_libuv_path"; then 33705 PKG_CONFIG_LIBDIR="$want_libuv_path" 33706 export PKG_CONFIG_LIBDIR 33707 fi 33708 33709 $PKGCONFIG --libs-only-l libuv` 33710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_LIBUV" >&5 33711printf "%s\n" "$as_me: -l is $LIB_LIBUV" >&6;} 33712 33713 CPP_LIBUV=` 33714 if test -n "$want_libuv_path"; then 33715 PKG_CONFIG_LIBDIR="$want_libuv_path" 33716 export PKG_CONFIG_LIBDIR 33717 fi 33718 $PKGCONFIG --cflags-only-I libuv` 33719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_LIBUV" >&5 33720printf "%s\n" "$as_me: -I is $CPP_LIBUV" >&6;} 33721 33722 LD_LIBUV=` 33723 if test -n "$want_libuv_path"; then 33724 PKG_CONFIG_LIBDIR="$want_libuv_path" 33725 export PKG_CONFIG_LIBDIR 33726 fi 33727 33728 $PKGCONFIG --libs-only-L libuv` 33729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_LIBUV" >&5 33730printf "%s\n" "$as_me: -L is $LD_LIBUV" >&6;} 33731 33732 LDFLAGS="$LDFLAGS $LD_LIBUV" 33733 CPPFLAGS="$CPPFLAGS $CPP_LIBUV" 33734 LIBS="$LIB_LIBUV $LIBS" 33735 33736 if test "x$cross_compiling" != "xyes"; then 33737 DIR_LIBUV=`echo $LD_LIBUV | $SED -e 's/^-L//'` 33738 fi 33739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uv_default_loop in -luv" >&5 33740printf %s "checking for uv_default_loop in -luv... " >&6; } 33741if test ${ac_cv_lib_uv_uv_default_loop+y} 33742then : 33743 printf %s "(cached) " >&6 33744else $as_nop 33745 ac_check_lib_save_LIBS=$LIBS 33746LIBS="-luv $LIBS" 33747cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33748/* end confdefs.h. */ 33749 33750 33751#ifdef __cplusplus 33752extern "C" 33753#endif 33754char uv_default_loop (); 33755int main(void) 33756{ 33757return uv_default_loop (); 33758 ; 33759 return 0; 33760} 33761_ACEOF 33762if ac_fn_c_try_link "$LINENO" 33763then : 33764 ac_cv_lib_uv_uv_default_loop=yes 33765else $as_nop 33766 ac_cv_lib_uv_uv_default_loop=no 33767fi 33768rm -f core conftest.err conftest.$ac_objext conftest.beam \ 33769 conftest$ac_exeext conftest.$ac_ext 33770LIBS=$ac_check_lib_save_LIBS 33771fi 33772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uv_uv_default_loop" >&5 33773printf "%s\n" "$ac_cv_lib_uv_uv_default_loop" >&6; } 33774if test "x$ac_cv_lib_uv_uv_default_loop" = xyes 33775then : 33776 33777 for ac_header in uv.h 33778do : 33779 ac_fn_c_check_header_compile "$LINENO" "uv.h" "ac_cv_header_uv_h" "$ac_includes_default" 33780if test "x$ac_cv_header_uv_h" = xyes 33781then : 33782 printf "%s\n" "#define HAVE_UV_H 1" >>confdefs.h 33783 LIBUV_ENABLED=1 33784 33785printf "%s\n" "#define USE_LIBUV 1" >>confdefs.h 33786 33787 USE_LIBUV=1 33788 33789 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_LIBUV" 33790 export CURL_LIBRARY_PATH 33791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_LIBUV to CURL_LIBRARY_PATH" >&5 33792printf "%s\n" "$as_me: Added $DIR_LIBUV to CURL_LIBRARY_PATH" >&6;} 33793 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE libuv" 33794 33795fi 33796 33797done 33798 33799else $as_nop 33800 LDFLAGS=$CLEANLDFLAGS 33801 CPPFLAGS=$CLEANCPPFLAGS 33802 LIBS=$CLEANLIBS 33803 33804fi 33805 33806 33807 else 33808 if test X"$want_libuv" != Xdefault; then 33809 as_fn_error $? "--with-libuv was specified but could not find libuv pkg-config file." "$LINENO" 5 33810 fi 33811 fi 33812 33813fi 33814 33815 33816OPT_ZSH_FPATH=default 33817 33818# Check whether --with-zsh-functions-dir was given. 33819if test ${with_zsh_functions_dir+y} 33820then : 33821 withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval 33822fi 33823 33824case "$OPT_ZSH_FPATH" in 33825 default|no) 33826 ;; 33827 yes) 33828 ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions" 33829 33830 ;; 33831 *) 33832 ZSH_FUNCTIONS_DIR="$withval" 33833 33834 ;; 33835esac 33836 if test x"$ZSH_FUNCTIONS_DIR" != x; then 33837 USE_ZSH_COMPLETION_TRUE= 33838 USE_ZSH_COMPLETION_FALSE='#' 33839else 33840 USE_ZSH_COMPLETION_TRUE='#' 33841 USE_ZSH_COMPLETION_FALSE= 33842fi 33843 33844 33845 33846OPT_FISH_FPATH=default 33847 33848# Check whether --with-fish-functions-dir was given. 33849if test ${with_fish_functions_dir+y} 33850then : 33851 withval=$with_fish_functions_dir; OPT_FISH_FPATH=$withval 33852fi 33853 33854case "$OPT_FISH_FPATH" in 33855 default|no) 33856 ;; 33857 yes) 33858 33859 if test -n "$PKG_CONFIG"; then 33860 PKGCONFIG="$PKG_CONFIG" 33861 else 33862 if test -n "$ac_tool_prefix"; then 33863 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 33864set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 33865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33866printf %s "checking for $ac_word... " >&6; } 33867if test ${ac_cv_path_PKGCONFIG+y} 33868then : 33869 printf %s "(cached) " >&6 33870else $as_nop 33871 case $PKGCONFIG in 33872 [\\/]* | ?:[\\/]*) 33873 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 33874 ;; 33875 *) 33876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33877as_dummy="$PATH:/usr/bin:/usr/local/bin" 33878for as_dir in $as_dummy 33879do 33880 IFS=$as_save_IFS 33881 case $as_dir in #((( 33882 '') as_dir=./ ;; 33883 */) ;; 33884 *) as_dir=$as_dir/ ;; 33885 esac 33886 for ac_exec_ext in '' $ac_executable_extensions; do 33887 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 33888 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 33889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 33890 break 2 33891 fi 33892done 33893 done 33894IFS=$as_save_IFS 33895 33896 ;; 33897esac 33898fi 33899PKGCONFIG=$ac_cv_path_PKGCONFIG 33900if test -n "$PKGCONFIG"; then 33901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 33902printf "%s\n" "$PKGCONFIG" >&6; } 33903else 33904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33905printf "%s\n" "no" >&6; } 33906fi 33907 33908 33909fi 33910if test -z "$ac_cv_path_PKGCONFIG"; then 33911 ac_pt_PKGCONFIG=$PKGCONFIG 33912 # Extract the first word of "pkg-config", so it can be a program name with args. 33913set dummy pkg-config; ac_word=$2 33914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33915printf %s "checking for $ac_word... " >&6; } 33916if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 33917then : 33918 printf %s "(cached) " >&6 33919else $as_nop 33920 case $ac_pt_PKGCONFIG in 33921 [\\/]* | ?:[\\/]*) 33922 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 33923 ;; 33924 *) 33925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33926as_dummy="$PATH:/usr/bin:/usr/local/bin" 33927for as_dir in $as_dummy 33928do 33929 IFS=$as_save_IFS 33930 case $as_dir in #((( 33931 '') as_dir=./ ;; 33932 */) ;; 33933 *) as_dir=$as_dir/ ;; 33934 esac 33935 for ac_exec_ext in '' $ac_executable_extensions; do 33936 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 33937 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 33938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 33939 break 2 33940 fi 33941done 33942 done 33943IFS=$as_save_IFS 33944 33945 ;; 33946esac 33947fi 33948ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 33949if test -n "$ac_pt_PKGCONFIG"; then 33950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 33951printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 33952else 33953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33954printf "%s\n" "no" >&6; } 33955fi 33956 33957 if test "x$ac_pt_PKGCONFIG" = x; then 33958 PKGCONFIG="no" 33959 else 33960 case $cross_compiling:$ac_tool_warned in 33961yes:) 33962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33963printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33964ac_tool_warned=yes ;; 33965esac 33966 PKGCONFIG=$ac_pt_PKGCONFIG 33967 fi 33968else 33969 PKGCONFIG="$ac_cv_path_PKGCONFIG" 33970fi 33971 33972 fi 33973 33974 if test "x$PKGCONFIG" != "xno"; then 33975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fish options with pkg-config" >&5 33976printf %s "checking for fish options with pkg-config... " >&6; } 33977 itexists=` 33978 if test -n ""; then 33979 PKG_CONFIG_LIBDIR="" 33980 export PKG_CONFIG_LIBDIR 33981 fi 33982 $PKGCONFIG --exists fish >/dev/null 2>&1 && echo 1` 33983 33984 if test -z "$itexists"; then 33985 PKGCONFIG="no" 33986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 33987printf "%s\n" "no" >&6; } 33988 else 33989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 33990printf "%s\n" "found" >&6; } 33991 fi 33992 fi 33993 33994 if test "$PKGCONFIG" != "no"; then 33995 FISH_FUNCTIONS_DIR=`$PKGCONFIG --variable completionsdir fish` 33996 else 33997 FISH_FUNCTIONS_DIR="$datarootdir/fish/vendor_completions.d" 33998 fi 33999 34000 ;; 34001 *) 34002 FISH_FUNCTIONS_DIR="$withval" 34003 34004 ;; 34005esac 34006 if test x"$FISH_FUNCTIONS_DIR" != x; then 34007 USE_FISH_COMPLETION_TRUE= 34008 USE_FISH_COMPLETION_FALSE='#' 34009else 34010 USE_FISH_COMPLETION_TRUE='#' 34011 USE_FISH_COMPLETION_FALSE= 34012fi 34013 34014 34015ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" " 34016#ifdef HAVE_SYS_TYPES_H 34017#include <sys/types.h> 34018#endif 34019#ifdef HAVE_SYS_TIME_H 34020#include <sys/time.h> 34021#endif 34022#ifdef HAVE_SYS_SELECT_H 34023#include <sys/select.h> 34024#elif defined(HAVE_UNISTD_H) 34025#include <unistd.h> 34026#endif 34027#ifdef HAVE_SYS_SOCKET_H 34028#include <sys/socket.h> 34029#endif 34030#ifdef HAVE_NETINET_IN_H 34031#include <netinet/in.h> 34032#endif 34033#ifdef HAVE_NETINET_IN6_H 34034#include <netinet/in6.h> /* is this really required to detect other headers? */ 34035#endif 34036#ifdef HAVE_SYS_UN_H 34037#include <sys/un.h> /* is this really required to detect other headers? */ 34038#endif 34039 34040 34041" 34042if test "x$ac_cv_header_sys_types_h" = xyes 34043then : 34044 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 34045 34046fi 34047ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" " 34048#ifdef HAVE_SYS_TYPES_H 34049#include <sys/types.h> 34050#endif 34051#ifdef HAVE_SYS_TIME_H 34052#include <sys/time.h> 34053#endif 34054#ifdef HAVE_SYS_SELECT_H 34055#include <sys/select.h> 34056#elif defined(HAVE_UNISTD_H) 34057#include <unistd.h> 34058#endif 34059#ifdef HAVE_SYS_SOCKET_H 34060#include <sys/socket.h> 34061#endif 34062#ifdef HAVE_NETINET_IN_H 34063#include <netinet/in.h> 34064#endif 34065#ifdef HAVE_NETINET_IN6_H 34066#include <netinet/in6.h> /* is this really required to detect other headers? */ 34067#endif 34068#ifdef HAVE_SYS_UN_H 34069#include <sys/un.h> /* is this really required to detect other headers? */ 34070#endif 34071 34072 34073" 34074if test "x$ac_cv_header_sys_time_h" = xyes 34075then : 34076 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h 34077 34078fi 34079ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" " 34080#ifdef HAVE_SYS_TYPES_H 34081#include <sys/types.h> 34082#endif 34083#ifdef HAVE_SYS_TIME_H 34084#include <sys/time.h> 34085#endif 34086#ifdef HAVE_SYS_SELECT_H 34087#include <sys/select.h> 34088#elif defined(HAVE_UNISTD_H) 34089#include <unistd.h> 34090#endif 34091#ifdef HAVE_SYS_SOCKET_H 34092#include <sys/socket.h> 34093#endif 34094#ifdef HAVE_NETINET_IN_H 34095#include <netinet/in.h> 34096#endif 34097#ifdef HAVE_NETINET_IN6_H 34098#include <netinet/in6.h> /* is this really required to detect other headers? */ 34099#endif 34100#ifdef HAVE_SYS_UN_H 34101#include <sys/un.h> /* is this really required to detect other headers? */ 34102#endif 34103 34104 34105" 34106if test "x$ac_cv_header_sys_select_h" = xyes 34107then : 34108 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h 34109 34110fi 34111ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" " 34112#ifdef HAVE_SYS_TYPES_H 34113#include <sys/types.h> 34114#endif 34115#ifdef HAVE_SYS_TIME_H 34116#include <sys/time.h> 34117#endif 34118#ifdef HAVE_SYS_SELECT_H 34119#include <sys/select.h> 34120#elif defined(HAVE_UNISTD_H) 34121#include <unistd.h> 34122#endif 34123#ifdef HAVE_SYS_SOCKET_H 34124#include <sys/socket.h> 34125#endif 34126#ifdef HAVE_NETINET_IN_H 34127#include <netinet/in.h> 34128#endif 34129#ifdef HAVE_NETINET_IN6_H 34130#include <netinet/in6.h> /* is this really required to detect other headers? */ 34131#endif 34132#ifdef HAVE_SYS_UN_H 34133#include <sys/un.h> /* is this really required to detect other headers? */ 34134#endif 34135 34136 34137" 34138if test "x$ac_cv_header_sys_socket_h" = xyes 34139then : 34140 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 34141 34142fi 34143ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" " 34144#ifdef HAVE_SYS_TYPES_H 34145#include <sys/types.h> 34146#endif 34147#ifdef HAVE_SYS_TIME_H 34148#include <sys/time.h> 34149#endif 34150#ifdef HAVE_SYS_SELECT_H 34151#include <sys/select.h> 34152#elif defined(HAVE_UNISTD_H) 34153#include <unistd.h> 34154#endif 34155#ifdef HAVE_SYS_SOCKET_H 34156#include <sys/socket.h> 34157#endif 34158#ifdef HAVE_NETINET_IN_H 34159#include <netinet/in.h> 34160#endif 34161#ifdef HAVE_NETINET_IN6_H 34162#include <netinet/in6.h> /* is this really required to detect other headers? */ 34163#endif 34164#ifdef HAVE_SYS_UN_H 34165#include <sys/un.h> /* is this really required to detect other headers? */ 34166#endif 34167 34168 34169" 34170if test "x$ac_cv_header_sys_ioctl_h" = xyes 34171then : 34172 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h 34173 34174fi 34175ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" " 34176#ifdef HAVE_SYS_TYPES_H 34177#include <sys/types.h> 34178#endif 34179#ifdef HAVE_SYS_TIME_H 34180#include <sys/time.h> 34181#endif 34182#ifdef HAVE_SYS_SELECT_H 34183#include <sys/select.h> 34184#elif defined(HAVE_UNISTD_H) 34185#include <unistd.h> 34186#endif 34187#ifdef HAVE_SYS_SOCKET_H 34188#include <sys/socket.h> 34189#endif 34190#ifdef HAVE_NETINET_IN_H 34191#include <netinet/in.h> 34192#endif 34193#ifdef HAVE_NETINET_IN6_H 34194#include <netinet/in6.h> /* is this really required to detect other headers? */ 34195#endif 34196#ifdef HAVE_SYS_UN_H 34197#include <sys/un.h> /* is this really required to detect other headers? */ 34198#endif 34199 34200 34201" 34202if test "x$ac_cv_header_unistd_h" = xyes 34203then : 34204 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h 34205 34206fi 34207ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" " 34208#ifdef HAVE_SYS_TYPES_H 34209#include <sys/types.h> 34210#endif 34211#ifdef HAVE_SYS_TIME_H 34212#include <sys/time.h> 34213#endif 34214#ifdef HAVE_SYS_SELECT_H 34215#include <sys/select.h> 34216#elif defined(HAVE_UNISTD_H) 34217#include <unistd.h> 34218#endif 34219#ifdef HAVE_SYS_SOCKET_H 34220#include <sys/socket.h> 34221#endif 34222#ifdef HAVE_NETINET_IN_H 34223#include <netinet/in.h> 34224#endif 34225#ifdef HAVE_NETINET_IN6_H 34226#include <netinet/in6.h> /* is this really required to detect other headers? */ 34227#endif 34228#ifdef HAVE_SYS_UN_H 34229#include <sys/un.h> /* is this really required to detect other headers? */ 34230#endif 34231 34232 34233" 34234if test "x$ac_cv_header_stdlib_h" = xyes 34235then : 34236 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h 34237 34238fi 34239ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" " 34240#ifdef HAVE_SYS_TYPES_H 34241#include <sys/types.h> 34242#endif 34243#ifdef HAVE_SYS_TIME_H 34244#include <sys/time.h> 34245#endif 34246#ifdef HAVE_SYS_SELECT_H 34247#include <sys/select.h> 34248#elif defined(HAVE_UNISTD_H) 34249#include <unistd.h> 34250#endif 34251#ifdef HAVE_SYS_SOCKET_H 34252#include <sys/socket.h> 34253#endif 34254#ifdef HAVE_NETINET_IN_H 34255#include <netinet/in.h> 34256#endif 34257#ifdef HAVE_NETINET_IN6_H 34258#include <netinet/in6.h> /* is this really required to detect other headers? */ 34259#endif 34260#ifdef HAVE_SYS_UN_H 34261#include <sys/un.h> /* is this really required to detect other headers? */ 34262#endif 34263 34264 34265" 34266if test "x$ac_cv_header_arpa_inet_h" = xyes 34267then : 34268 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h 34269 34270fi 34271ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " 34272#ifdef HAVE_SYS_TYPES_H 34273#include <sys/types.h> 34274#endif 34275#ifdef HAVE_SYS_TIME_H 34276#include <sys/time.h> 34277#endif 34278#ifdef HAVE_SYS_SELECT_H 34279#include <sys/select.h> 34280#elif defined(HAVE_UNISTD_H) 34281#include <unistd.h> 34282#endif 34283#ifdef HAVE_SYS_SOCKET_H 34284#include <sys/socket.h> 34285#endif 34286#ifdef HAVE_NETINET_IN_H 34287#include <netinet/in.h> 34288#endif 34289#ifdef HAVE_NETINET_IN6_H 34290#include <netinet/in6.h> /* is this really required to detect other headers? */ 34291#endif 34292#ifdef HAVE_SYS_UN_H 34293#include <sys/un.h> /* is this really required to detect other headers? */ 34294#endif 34295 34296 34297" 34298if test "x$ac_cv_header_net_if_h" = xyes 34299then : 34300 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h 34301 34302fi 34303ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" " 34304#ifdef HAVE_SYS_TYPES_H 34305#include <sys/types.h> 34306#endif 34307#ifdef HAVE_SYS_TIME_H 34308#include <sys/time.h> 34309#endif 34310#ifdef HAVE_SYS_SELECT_H 34311#include <sys/select.h> 34312#elif defined(HAVE_UNISTD_H) 34313#include <unistd.h> 34314#endif 34315#ifdef HAVE_SYS_SOCKET_H 34316#include <sys/socket.h> 34317#endif 34318#ifdef HAVE_NETINET_IN_H 34319#include <netinet/in.h> 34320#endif 34321#ifdef HAVE_NETINET_IN6_H 34322#include <netinet/in6.h> /* is this really required to detect other headers? */ 34323#endif 34324#ifdef HAVE_SYS_UN_H 34325#include <sys/un.h> /* is this really required to detect other headers? */ 34326#endif 34327 34328 34329" 34330if test "x$ac_cv_header_netinet_in_h" = xyes 34331then : 34332 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h 34333 34334fi 34335ac_fn_c_check_header_compile "$LINENO" "netinet/in6.h" "ac_cv_header_netinet_in6_h" " 34336#ifdef HAVE_SYS_TYPES_H 34337#include <sys/types.h> 34338#endif 34339#ifdef HAVE_SYS_TIME_H 34340#include <sys/time.h> 34341#endif 34342#ifdef HAVE_SYS_SELECT_H 34343#include <sys/select.h> 34344#elif defined(HAVE_UNISTD_H) 34345#include <unistd.h> 34346#endif 34347#ifdef HAVE_SYS_SOCKET_H 34348#include <sys/socket.h> 34349#endif 34350#ifdef HAVE_NETINET_IN_H 34351#include <netinet/in.h> 34352#endif 34353#ifdef HAVE_NETINET_IN6_H 34354#include <netinet/in6.h> /* is this really required to detect other headers? */ 34355#endif 34356#ifdef HAVE_SYS_UN_H 34357#include <sys/un.h> /* is this really required to detect other headers? */ 34358#endif 34359 34360 34361" 34362if test "x$ac_cv_header_netinet_in6_h" = xyes 34363then : 34364 printf "%s\n" "#define HAVE_NETINET_IN6_H 1" >>confdefs.h 34365 34366fi 34367ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" " 34368#ifdef HAVE_SYS_TYPES_H 34369#include <sys/types.h> 34370#endif 34371#ifdef HAVE_SYS_TIME_H 34372#include <sys/time.h> 34373#endif 34374#ifdef HAVE_SYS_SELECT_H 34375#include <sys/select.h> 34376#elif defined(HAVE_UNISTD_H) 34377#include <unistd.h> 34378#endif 34379#ifdef HAVE_SYS_SOCKET_H 34380#include <sys/socket.h> 34381#endif 34382#ifdef HAVE_NETINET_IN_H 34383#include <netinet/in.h> 34384#endif 34385#ifdef HAVE_NETINET_IN6_H 34386#include <netinet/in6.h> /* is this really required to detect other headers? */ 34387#endif 34388#ifdef HAVE_SYS_UN_H 34389#include <sys/un.h> /* is this really required to detect other headers? */ 34390#endif 34391 34392 34393" 34394if test "x$ac_cv_header_sys_un_h" = xyes 34395then : 34396 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h 34397 34398fi 34399ac_fn_c_check_header_compile "$LINENO" "linux/tcp.h" "ac_cv_header_linux_tcp_h" " 34400#ifdef HAVE_SYS_TYPES_H 34401#include <sys/types.h> 34402#endif 34403#ifdef HAVE_SYS_TIME_H 34404#include <sys/time.h> 34405#endif 34406#ifdef HAVE_SYS_SELECT_H 34407#include <sys/select.h> 34408#elif defined(HAVE_UNISTD_H) 34409#include <unistd.h> 34410#endif 34411#ifdef HAVE_SYS_SOCKET_H 34412#include <sys/socket.h> 34413#endif 34414#ifdef HAVE_NETINET_IN_H 34415#include <netinet/in.h> 34416#endif 34417#ifdef HAVE_NETINET_IN6_H 34418#include <netinet/in6.h> /* is this really required to detect other headers? */ 34419#endif 34420#ifdef HAVE_SYS_UN_H 34421#include <sys/un.h> /* is this really required to detect other headers? */ 34422#endif 34423 34424 34425" 34426if test "x$ac_cv_header_linux_tcp_h" = xyes 34427then : 34428 printf "%s\n" "#define HAVE_LINUX_TCP_H 1" >>confdefs.h 34429 34430fi 34431ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" " 34432#ifdef HAVE_SYS_TYPES_H 34433#include <sys/types.h> 34434#endif 34435#ifdef HAVE_SYS_TIME_H 34436#include <sys/time.h> 34437#endif 34438#ifdef HAVE_SYS_SELECT_H 34439#include <sys/select.h> 34440#elif defined(HAVE_UNISTD_H) 34441#include <unistd.h> 34442#endif 34443#ifdef HAVE_SYS_SOCKET_H 34444#include <sys/socket.h> 34445#endif 34446#ifdef HAVE_NETINET_IN_H 34447#include <netinet/in.h> 34448#endif 34449#ifdef HAVE_NETINET_IN6_H 34450#include <netinet/in6.h> /* is this really required to detect other headers? */ 34451#endif 34452#ifdef HAVE_SYS_UN_H 34453#include <sys/un.h> /* is this really required to detect other headers? */ 34454#endif 34455 34456 34457" 34458if test "x$ac_cv_header_netinet_tcp_h" = xyes 34459then : 34460 printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h 34461 34462fi 34463ac_fn_c_check_header_compile "$LINENO" "netinet/udp.h" "ac_cv_header_netinet_udp_h" " 34464#ifdef HAVE_SYS_TYPES_H 34465#include <sys/types.h> 34466#endif 34467#ifdef HAVE_SYS_TIME_H 34468#include <sys/time.h> 34469#endif 34470#ifdef HAVE_SYS_SELECT_H 34471#include <sys/select.h> 34472#elif defined(HAVE_UNISTD_H) 34473#include <unistd.h> 34474#endif 34475#ifdef HAVE_SYS_SOCKET_H 34476#include <sys/socket.h> 34477#endif 34478#ifdef HAVE_NETINET_IN_H 34479#include <netinet/in.h> 34480#endif 34481#ifdef HAVE_NETINET_IN6_H 34482#include <netinet/in6.h> /* is this really required to detect other headers? */ 34483#endif 34484#ifdef HAVE_SYS_UN_H 34485#include <sys/un.h> /* is this really required to detect other headers? */ 34486#endif 34487 34488 34489" 34490if test "x$ac_cv_header_netinet_udp_h" = xyes 34491then : 34492 printf "%s\n" "#define HAVE_NETINET_UDP_H 1" >>confdefs.h 34493 34494fi 34495ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" " 34496#ifdef HAVE_SYS_TYPES_H 34497#include <sys/types.h> 34498#endif 34499#ifdef HAVE_SYS_TIME_H 34500#include <sys/time.h> 34501#endif 34502#ifdef HAVE_SYS_SELECT_H 34503#include <sys/select.h> 34504#elif defined(HAVE_UNISTD_H) 34505#include <unistd.h> 34506#endif 34507#ifdef HAVE_SYS_SOCKET_H 34508#include <sys/socket.h> 34509#endif 34510#ifdef HAVE_NETINET_IN_H 34511#include <netinet/in.h> 34512#endif 34513#ifdef HAVE_NETINET_IN6_H 34514#include <netinet/in6.h> /* is this really required to detect other headers? */ 34515#endif 34516#ifdef HAVE_SYS_UN_H 34517#include <sys/un.h> /* is this really required to detect other headers? */ 34518#endif 34519 34520 34521" 34522if test "x$ac_cv_header_netdb_h" = xyes 34523then : 34524 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h 34525 34526fi 34527ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" " 34528#ifdef HAVE_SYS_TYPES_H 34529#include <sys/types.h> 34530#endif 34531#ifdef HAVE_SYS_TIME_H 34532#include <sys/time.h> 34533#endif 34534#ifdef HAVE_SYS_SELECT_H 34535#include <sys/select.h> 34536#elif defined(HAVE_UNISTD_H) 34537#include <unistd.h> 34538#endif 34539#ifdef HAVE_SYS_SOCKET_H 34540#include <sys/socket.h> 34541#endif 34542#ifdef HAVE_NETINET_IN_H 34543#include <netinet/in.h> 34544#endif 34545#ifdef HAVE_NETINET_IN6_H 34546#include <netinet/in6.h> /* is this really required to detect other headers? */ 34547#endif 34548#ifdef HAVE_SYS_UN_H 34549#include <sys/un.h> /* is this really required to detect other headers? */ 34550#endif 34551 34552 34553" 34554if test "x$ac_cv_header_sys_sockio_h" = xyes 34555then : 34556 printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h 34557 34558fi 34559ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" " 34560#ifdef HAVE_SYS_TYPES_H 34561#include <sys/types.h> 34562#endif 34563#ifdef HAVE_SYS_TIME_H 34564#include <sys/time.h> 34565#endif 34566#ifdef HAVE_SYS_SELECT_H 34567#include <sys/select.h> 34568#elif defined(HAVE_UNISTD_H) 34569#include <unistd.h> 34570#endif 34571#ifdef HAVE_SYS_SOCKET_H 34572#include <sys/socket.h> 34573#endif 34574#ifdef HAVE_NETINET_IN_H 34575#include <netinet/in.h> 34576#endif 34577#ifdef HAVE_NETINET_IN6_H 34578#include <netinet/in6.h> /* is this really required to detect other headers? */ 34579#endif 34580#ifdef HAVE_SYS_UN_H 34581#include <sys/un.h> /* is this really required to detect other headers? */ 34582#endif 34583 34584 34585" 34586if test "x$ac_cv_header_sys_stat_h" = xyes 34587then : 34588 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h 34589 34590fi 34591ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" " 34592#ifdef HAVE_SYS_TYPES_H 34593#include <sys/types.h> 34594#endif 34595#ifdef HAVE_SYS_TIME_H 34596#include <sys/time.h> 34597#endif 34598#ifdef HAVE_SYS_SELECT_H 34599#include <sys/select.h> 34600#elif defined(HAVE_UNISTD_H) 34601#include <unistd.h> 34602#endif 34603#ifdef HAVE_SYS_SOCKET_H 34604#include <sys/socket.h> 34605#endif 34606#ifdef HAVE_NETINET_IN_H 34607#include <netinet/in.h> 34608#endif 34609#ifdef HAVE_NETINET_IN6_H 34610#include <netinet/in6.h> /* is this really required to detect other headers? */ 34611#endif 34612#ifdef HAVE_SYS_UN_H 34613#include <sys/un.h> /* is this really required to detect other headers? */ 34614#endif 34615 34616 34617" 34618if test "x$ac_cv_header_sys_param_h" = xyes 34619then : 34620 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h 34621 34622fi 34623ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" " 34624#ifdef HAVE_SYS_TYPES_H 34625#include <sys/types.h> 34626#endif 34627#ifdef HAVE_SYS_TIME_H 34628#include <sys/time.h> 34629#endif 34630#ifdef HAVE_SYS_SELECT_H 34631#include <sys/select.h> 34632#elif defined(HAVE_UNISTD_H) 34633#include <unistd.h> 34634#endif 34635#ifdef HAVE_SYS_SOCKET_H 34636#include <sys/socket.h> 34637#endif 34638#ifdef HAVE_NETINET_IN_H 34639#include <netinet/in.h> 34640#endif 34641#ifdef HAVE_NETINET_IN6_H 34642#include <netinet/in6.h> /* is this really required to detect other headers? */ 34643#endif 34644#ifdef HAVE_SYS_UN_H 34645#include <sys/un.h> /* is this really required to detect other headers? */ 34646#endif 34647 34648 34649" 34650if test "x$ac_cv_header_termios_h" = xyes 34651then : 34652 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h 34653 34654fi 34655ac_fn_c_check_header_compile "$LINENO" "termio.h" "ac_cv_header_termio_h" " 34656#ifdef HAVE_SYS_TYPES_H 34657#include <sys/types.h> 34658#endif 34659#ifdef HAVE_SYS_TIME_H 34660#include <sys/time.h> 34661#endif 34662#ifdef HAVE_SYS_SELECT_H 34663#include <sys/select.h> 34664#elif defined(HAVE_UNISTD_H) 34665#include <unistd.h> 34666#endif 34667#ifdef HAVE_SYS_SOCKET_H 34668#include <sys/socket.h> 34669#endif 34670#ifdef HAVE_NETINET_IN_H 34671#include <netinet/in.h> 34672#endif 34673#ifdef HAVE_NETINET_IN6_H 34674#include <netinet/in6.h> /* is this really required to detect other headers? */ 34675#endif 34676#ifdef HAVE_SYS_UN_H 34677#include <sys/un.h> /* is this really required to detect other headers? */ 34678#endif 34679 34680 34681" 34682if test "x$ac_cv_header_termio_h" = xyes 34683then : 34684 printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h 34685 34686fi 34687ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" " 34688#ifdef HAVE_SYS_TYPES_H 34689#include <sys/types.h> 34690#endif 34691#ifdef HAVE_SYS_TIME_H 34692#include <sys/time.h> 34693#endif 34694#ifdef HAVE_SYS_SELECT_H 34695#include <sys/select.h> 34696#elif defined(HAVE_UNISTD_H) 34697#include <unistd.h> 34698#endif 34699#ifdef HAVE_SYS_SOCKET_H 34700#include <sys/socket.h> 34701#endif 34702#ifdef HAVE_NETINET_IN_H 34703#include <netinet/in.h> 34704#endif 34705#ifdef HAVE_NETINET_IN6_H 34706#include <netinet/in6.h> /* is this really required to detect other headers? */ 34707#endif 34708#ifdef HAVE_SYS_UN_H 34709#include <sys/un.h> /* is this really required to detect other headers? */ 34710#endif 34711 34712 34713" 34714if test "x$ac_cv_header_fcntl_h" = xyes 34715then : 34716 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h 34717 34718fi 34719ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" " 34720#ifdef HAVE_SYS_TYPES_H 34721#include <sys/types.h> 34722#endif 34723#ifdef HAVE_SYS_TIME_H 34724#include <sys/time.h> 34725#endif 34726#ifdef HAVE_SYS_SELECT_H 34727#include <sys/select.h> 34728#elif defined(HAVE_UNISTD_H) 34729#include <unistd.h> 34730#endif 34731#ifdef HAVE_SYS_SOCKET_H 34732#include <sys/socket.h> 34733#endif 34734#ifdef HAVE_NETINET_IN_H 34735#include <netinet/in.h> 34736#endif 34737#ifdef HAVE_NETINET_IN6_H 34738#include <netinet/in6.h> /* is this really required to detect other headers? */ 34739#endif 34740#ifdef HAVE_SYS_UN_H 34741#include <sys/un.h> /* is this really required to detect other headers? */ 34742#endif 34743 34744 34745" 34746if test "x$ac_cv_header_io_h" = xyes 34747then : 34748 printf "%s\n" "#define HAVE_IO_H 1" >>confdefs.h 34749 34750fi 34751ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" " 34752#ifdef HAVE_SYS_TYPES_H 34753#include <sys/types.h> 34754#endif 34755#ifdef HAVE_SYS_TIME_H 34756#include <sys/time.h> 34757#endif 34758#ifdef HAVE_SYS_SELECT_H 34759#include <sys/select.h> 34760#elif defined(HAVE_UNISTD_H) 34761#include <unistd.h> 34762#endif 34763#ifdef HAVE_SYS_SOCKET_H 34764#include <sys/socket.h> 34765#endif 34766#ifdef HAVE_NETINET_IN_H 34767#include <netinet/in.h> 34768#endif 34769#ifdef HAVE_NETINET_IN6_H 34770#include <netinet/in6.h> /* is this really required to detect other headers? */ 34771#endif 34772#ifdef HAVE_SYS_UN_H 34773#include <sys/un.h> /* is this really required to detect other headers? */ 34774#endif 34775 34776 34777" 34778if test "x$ac_cv_header_pwd_h" = xyes 34779then : 34780 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h 34781 34782fi 34783ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" " 34784#ifdef HAVE_SYS_TYPES_H 34785#include <sys/types.h> 34786#endif 34787#ifdef HAVE_SYS_TIME_H 34788#include <sys/time.h> 34789#endif 34790#ifdef HAVE_SYS_SELECT_H 34791#include <sys/select.h> 34792#elif defined(HAVE_UNISTD_H) 34793#include <unistd.h> 34794#endif 34795#ifdef HAVE_SYS_SOCKET_H 34796#include <sys/socket.h> 34797#endif 34798#ifdef HAVE_NETINET_IN_H 34799#include <netinet/in.h> 34800#endif 34801#ifdef HAVE_NETINET_IN6_H 34802#include <netinet/in6.h> /* is this really required to detect other headers? */ 34803#endif 34804#ifdef HAVE_SYS_UN_H 34805#include <sys/un.h> /* is this really required to detect other headers? */ 34806#endif 34807 34808 34809" 34810if test "x$ac_cv_header_utime_h" = xyes 34811then : 34812 printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h 34813 34814fi 34815ac_fn_c_check_header_compile "$LINENO" "sys/utime.h" "ac_cv_header_sys_utime_h" " 34816#ifdef HAVE_SYS_TYPES_H 34817#include <sys/types.h> 34818#endif 34819#ifdef HAVE_SYS_TIME_H 34820#include <sys/time.h> 34821#endif 34822#ifdef HAVE_SYS_SELECT_H 34823#include <sys/select.h> 34824#elif defined(HAVE_UNISTD_H) 34825#include <unistd.h> 34826#endif 34827#ifdef HAVE_SYS_SOCKET_H 34828#include <sys/socket.h> 34829#endif 34830#ifdef HAVE_NETINET_IN_H 34831#include <netinet/in.h> 34832#endif 34833#ifdef HAVE_NETINET_IN6_H 34834#include <netinet/in6.h> /* is this really required to detect other headers? */ 34835#endif 34836#ifdef HAVE_SYS_UN_H 34837#include <sys/un.h> /* is this really required to detect other headers? */ 34838#endif 34839 34840 34841" 34842if test "x$ac_cv_header_sys_utime_h" = xyes 34843then : 34844 printf "%s\n" "#define HAVE_SYS_UTIME_H 1" >>confdefs.h 34845 34846fi 34847ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" " 34848#ifdef HAVE_SYS_TYPES_H 34849#include <sys/types.h> 34850#endif 34851#ifdef HAVE_SYS_TIME_H 34852#include <sys/time.h> 34853#endif 34854#ifdef HAVE_SYS_SELECT_H 34855#include <sys/select.h> 34856#elif defined(HAVE_UNISTD_H) 34857#include <unistd.h> 34858#endif 34859#ifdef HAVE_SYS_SOCKET_H 34860#include <sys/socket.h> 34861#endif 34862#ifdef HAVE_NETINET_IN_H 34863#include <netinet/in.h> 34864#endif 34865#ifdef HAVE_NETINET_IN6_H 34866#include <netinet/in6.h> /* is this really required to detect other headers? */ 34867#endif 34868#ifdef HAVE_SYS_UN_H 34869#include <sys/un.h> /* is this really required to detect other headers? */ 34870#endif 34871 34872 34873" 34874if test "x$ac_cv_header_sys_poll_h" = xyes 34875then : 34876 printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h 34877 34878fi 34879ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" " 34880#ifdef HAVE_SYS_TYPES_H 34881#include <sys/types.h> 34882#endif 34883#ifdef HAVE_SYS_TIME_H 34884#include <sys/time.h> 34885#endif 34886#ifdef HAVE_SYS_SELECT_H 34887#include <sys/select.h> 34888#elif defined(HAVE_UNISTD_H) 34889#include <unistd.h> 34890#endif 34891#ifdef HAVE_SYS_SOCKET_H 34892#include <sys/socket.h> 34893#endif 34894#ifdef HAVE_NETINET_IN_H 34895#include <netinet/in.h> 34896#endif 34897#ifdef HAVE_NETINET_IN6_H 34898#include <netinet/in6.h> /* is this really required to detect other headers? */ 34899#endif 34900#ifdef HAVE_SYS_UN_H 34901#include <sys/un.h> /* is this really required to detect other headers? */ 34902#endif 34903 34904 34905" 34906if test "x$ac_cv_header_poll_h" = xyes 34907then : 34908 printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h 34909 34910fi 34911ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" " 34912#ifdef HAVE_SYS_TYPES_H 34913#include <sys/types.h> 34914#endif 34915#ifdef HAVE_SYS_TIME_H 34916#include <sys/time.h> 34917#endif 34918#ifdef HAVE_SYS_SELECT_H 34919#include <sys/select.h> 34920#elif defined(HAVE_UNISTD_H) 34921#include <unistd.h> 34922#endif 34923#ifdef HAVE_SYS_SOCKET_H 34924#include <sys/socket.h> 34925#endif 34926#ifdef HAVE_NETINET_IN_H 34927#include <netinet/in.h> 34928#endif 34929#ifdef HAVE_NETINET_IN6_H 34930#include <netinet/in6.h> /* is this really required to detect other headers? */ 34931#endif 34932#ifdef HAVE_SYS_UN_H 34933#include <sys/un.h> /* is this really required to detect other headers? */ 34934#endif 34935 34936 34937" 34938if test "x$ac_cv_header_sys_resource_h" = xyes 34939then : 34940 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h 34941 34942fi 34943ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" " 34944#ifdef HAVE_SYS_TYPES_H 34945#include <sys/types.h> 34946#endif 34947#ifdef HAVE_SYS_TIME_H 34948#include <sys/time.h> 34949#endif 34950#ifdef HAVE_SYS_SELECT_H 34951#include <sys/select.h> 34952#elif defined(HAVE_UNISTD_H) 34953#include <unistd.h> 34954#endif 34955#ifdef HAVE_SYS_SOCKET_H 34956#include <sys/socket.h> 34957#endif 34958#ifdef HAVE_NETINET_IN_H 34959#include <netinet/in.h> 34960#endif 34961#ifdef HAVE_NETINET_IN6_H 34962#include <netinet/in6.h> /* is this really required to detect other headers? */ 34963#endif 34964#ifdef HAVE_SYS_UN_H 34965#include <sys/un.h> /* is this really required to detect other headers? */ 34966#endif 34967 34968 34969" 34970if test "x$ac_cv_header_libgen_h" = xyes 34971then : 34972 printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h 34973 34974fi 34975ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" " 34976#ifdef HAVE_SYS_TYPES_H 34977#include <sys/types.h> 34978#endif 34979#ifdef HAVE_SYS_TIME_H 34980#include <sys/time.h> 34981#endif 34982#ifdef HAVE_SYS_SELECT_H 34983#include <sys/select.h> 34984#elif defined(HAVE_UNISTD_H) 34985#include <unistd.h> 34986#endif 34987#ifdef HAVE_SYS_SOCKET_H 34988#include <sys/socket.h> 34989#endif 34990#ifdef HAVE_NETINET_IN_H 34991#include <netinet/in.h> 34992#endif 34993#ifdef HAVE_NETINET_IN6_H 34994#include <netinet/in6.h> /* is this really required to detect other headers? */ 34995#endif 34996#ifdef HAVE_SYS_UN_H 34997#include <sys/un.h> /* is this really required to detect other headers? */ 34998#endif 34999 35000 35001" 35002if test "x$ac_cv_header_locale_h" = xyes 35003then : 35004 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h 35005 35006fi 35007ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" " 35008#ifdef HAVE_SYS_TYPES_H 35009#include <sys/types.h> 35010#endif 35011#ifdef HAVE_SYS_TIME_H 35012#include <sys/time.h> 35013#endif 35014#ifdef HAVE_SYS_SELECT_H 35015#include <sys/select.h> 35016#elif defined(HAVE_UNISTD_H) 35017#include <unistd.h> 35018#endif 35019#ifdef HAVE_SYS_SOCKET_H 35020#include <sys/socket.h> 35021#endif 35022#ifdef HAVE_NETINET_IN_H 35023#include <netinet/in.h> 35024#endif 35025#ifdef HAVE_NETINET_IN6_H 35026#include <netinet/in6.h> /* is this really required to detect other headers? */ 35027#endif 35028#ifdef HAVE_SYS_UN_H 35029#include <sys/un.h> /* is this really required to detect other headers? */ 35030#endif 35031 35032 35033" 35034if test "x$ac_cv_header_stdbool_h" = xyes 35035then : 35036 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h 35037 35038fi 35039ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" " 35040#ifdef HAVE_SYS_TYPES_H 35041#include <sys/types.h> 35042#endif 35043#ifdef HAVE_SYS_TIME_H 35044#include <sys/time.h> 35045#endif 35046#ifdef HAVE_SYS_SELECT_H 35047#include <sys/select.h> 35048#elif defined(HAVE_UNISTD_H) 35049#include <unistd.h> 35050#endif 35051#ifdef HAVE_SYS_SOCKET_H 35052#include <sys/socket.h> 35053#endif 35054#ifdef HAVE_NETINET_IN_H 35055#include <netinet/in.h> 35056#endif 35057#ifdef HAVE_NETINET_IN6_H 35058#include <netinet/in6.h> /* is this really required to detect other headers? */ 35059#endif 35060#ifdef HAVE_SYS_UN_H 35061#include <sys/un.h> /* is this really required to detect other headers? */ 35062#endif 35063 35064 35065" 35066if test "x$ac_cv_header_sys_filio_h" = xyes 35067then : 35068 printf "%s\n" "#define HAVE_SYS_FILIO_H 1" >>confdefs.h 35069 35070fi 35071ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" " 35072#ifdef HAVE_SYS_TYPES_H 35073#include <sys/types.h> 35074#endif 35075#ifdef HAVE_SYS_TIME_H 35076#include <sys/time.h> 35077#endif 35078#ifdef HAVE_SYS_SELECT_H 35079#include <sys/select.h> 35080#elif defined(HAVE_UNISTD_H) 35081#include <unistd.h> 35082#endif 35083#ifdef HAVE_SYS_SOCKET_H 35084#include <sys/socket.h> 35085#endif 35086#ifdef HAVE_NETINET_IN_H 35087#include <netinet/in.h> 35088#endif 35089#ifdef HAVE_NETINET_IN6_H 35090#include <netinet/in6.h> /* is this really required to detect other headers? */ 35091#endif 35092#ifdef HAVE_SYS_UN_H 35093#include <sys/un.h> /* is this really required to detect other headers? */ 35094#endif 35095 35096 35097" 35098if test "x$ac_cv_header_sys_wait_h" = xyes 35099then : 35100 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 35101 35102fi 35103ac_fn_c_check_header_compile "$LINENO" "sys/eventfd.h" "ac_cv_header_sys_eventfd_h" " 35104#ifdef HAVE_SYS_TYPES_H 35105#include <sys/types.h> 35106#endif 35107#ifdef HAVE_SYS_TIME_H 35108#include <sys/time.h> 35109#endif 35110#ifdef HAVE_SYS_SELECT_H 35111#include <sys/select.h> 35112#elif defined(HAVE_UNISTD_H) 35113#include <unistd.h> 35114#endif 35115#ifdef HAVE_SYS_SOCKET_H 35116#include <sys/socket.h> 35117#endif 35118#ifdef HAVE_NETINET_IN_H 35119#include <netinet/in.h> 35120#endif 35121#ifdef HAVE_NETINET_IN6_H 35122#include <netinet/in6.h> /* is this really required to detect other headers? */ 35123#endif 35124#ifdef HAVE_SYS_UN_H 35125#include <sys/un.h> /* is this really required to detect other headers? */ 35126#endif 35127 35128 35129" 35130if test "x$ac_cv_header_sys_eventfd_h" = xyes 35131then : 35132 printf "%s\n" "#define HAVE_SYS_EVENTFD_H 1" >>confdefs.h 35133 35134fi 35135ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" " 35136#ifdef HAVE_SYS_TYPES_H 35137#include <sys/types.h> 35138#endif 35139#ifdef HAVE_SYS_TIME_H 35140#include <sys/time.h> 35141#endif 35142#ifdef HAVE_SYS_SELECT_H 35143#include <sys/select.h> 35144#elif defined(HAVE_UNISTD_H) 35145#include <unistd.h> 35146#endif 35147#ifdef HAVE_SYS_SOCKET_H 35148#include <sys/socket.h> 35149#endif 35150#ifdef HAVE_NETINET_IN_H 35151#include <netinet/in.h> 35152#endif 35153#ifdef HAVE_NETINET_IN6_H 35154#include <netinet/in6.h> /* is this really required to detect other headers? */ 35155#endif 35156#ifdef HAVE_SYS_UN_H 35157#include <sys/un.h> /* is this really required to detect other headers? */ 35158#endif 35159 35160 35161" 35162if test "x$ac_cv_header_setjmp_h" = xyes 35163then : 35164 printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h 35165 35166fi 35167 35168 35169 35170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 35171printf %s "checking for an ANSI C-conforming const... " >&6; } 35172if test ${ac_cv_c_const+y} 35173then : 35174 printf %s "(cached) " >&6 35175else $as_nop 35176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35177/* end confdefs.h. */ 35178 35179int main(void) 35180{ 35181 35182#ifndef __cplusplus 35183 /* Ultrix mips cc rejects this sort of thing. */ 35184 typedef int charset[2]; 35185 const charset cs = { 0, 0 }; 35186 /* SunOS 4.1.1 cc rejects this. */ 35187 char const *const *pcpcc; 35188 char **ppc; 35189 /* NEC SVR4.0.2 mips cc rejects this. */ 35190 struct point {int x, y;}; 35191 static struct point const zero = {0,0}; 35192 /* IBM XL C 1.02.0.0 rejects this. 35193 It does not let you subtract one const X* pointer from another in 35194 an arm of an if-expression whose if-part is not a constant 35195 expression */ 35196 const char *g = "string"; 35197 pcpcc = &g + (g ? g-g : 0); 35198 /* HPUX 7.0 cc rejects these. */ 35199 ++pcpcc; 35200 ppc = (char**) pcpcc; 35201 pcpcc = (char const *const *) ppc; 35202 { /* SCO 3.2v4 cc rejects this sort of thing. */ 35203 char tx; 35204 char *t = &tx; 35205 char const *s = 0 ? (char *) 0 : (char const *) 0; 35206 35207 *t++ = 0; 35208 if (s) return 0; 35209 } 35210 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 35211 int x[] = {25, 17}; 35212 const int *foo = &x[0]; 35213 ++foo; 35214 } 35215 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 35216 typedef const int *iptr; 35217 iptr p = 0; 35218 ++p; 35219 } 35220 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying 35221 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 35222 struct s { int j; const int *ap[3]; } bx; 35223 struct s *b = &bx; b->j = 5; 35224 } 35225 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 35226 const int foo = 10; 35227 if (!foo) return 0; 35228 } 35229 return !cs[0] && !zero.x; 35230#endif 35231 35232 ; 35233 return 0; 35234} 35235_ACEOF 35236if ac_fn_c_try_compile "$LINENO" 35237then : 35238 ac_cv_c_const=yes 35239else $as_nop 35240 ac_cv_c_const=no 35241fi 35242rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 35243fi 35244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 35245printf "%s\n" "$ac_cv_c_const" >&6; } 35246if test $ac_cv_c_const = no; then 35247 35248printf "%s\n" "#define const /**/" >>confdefs.h 35249 35250fi 35251 35252ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 35253if test "x$ac_cv_type_size_t" = xyes 35254then : 35255 35256else $as_nop 35257 35258printf "%s\n" "#define size_t unsigned int" >>confdefs.h 35259 35260fi 35261 35262 35263 35264 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 35265if test "x$ac_cv_header_sys_types_h" = xyes 35266then : 35267 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 35268 35269fi 35270ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" 35271if test "x$ac_cv_header_sys_time_h" = xyes 35272then : 35273 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h 35274 35275fi 35276ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 35277if test "x$ac_cv_header_sys_socket_h" = xyes 35278then : 35279 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 35280 35281fi 35282 35283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 35284printf %s "checking for struct timeval... " >&6; } 35285if test ${curl_cv_struct_timeval+y} 35286then : 35287 printf %s "(cached) " >&6 35288else $as_nop 35289 35290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35291/* end confdefs.h. */ 35292 35293 35294 #undef inline 35295 #ifdef _WIN32 35296 #ifndef WIN32_LEAN_AND_MEAN 35297 #define WIN32_LEAN_AND_MEAN 35298 #endif 35299 #include <winsock2.h> 35300 #endif 35301 #ifdef HAVE_SYS_TYPES_H 35302 #include <sys/types.h> 35303 #endif 35304 #ifdef HAVE_SYS_TIME_H 35305 #include <sys/time.h> 35306 #endif 35307 #include <time.h> 35308 #ifdef HAVE_SYS_SOCKET_H 35309 #include <sys/socket.h> 35310 #endif 35311 35312int main(void) 35313{ 35314 35315 struct timeval ts; 35316 ts.tv_sec = 0; 35317 ts.tv_usec = 0; 35318 35319 ; 35320 return 0; 35321} 35322 35323_ACEOF 35324if ac_fn_c_try_compile "$LINENO" 35325then : 35326 35327 curl_cv_struct_timeval="yes" 35328 35329else $as_nop 35330 35331 curl_cv_struct_timeval="no" 35332 35333fi 35334rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 35335 35336fi 35337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5 35338printf "%s\n" "$curl_cv_struct_timeval" >&6; } 35339 case "$curl_cv_struct_timeval" in 35340 yes) 35341 35342printf "%s\n" "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h 35343 35344 ;; 35345 esac 35346 35347 35348 35349 if test "x$cross_compiling" != xyes; then 35350 35351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5 35352printf %s "checking run-time libs availability... " >&6; } 35353 35354 case $host in 35355 *-apple-*) 35356 if test "$cross_compiling" = yes 35357then : 35358 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 35359printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 35360as_fn_error $? "cannot run test program while cross compiling 35361See \`config.log' for more details" "$LINENO" 5; } 35362else $as_nop 35363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35364/* end confdefs.h. */ 35365 35366 int main() 35367 { 35368 return 0; 35369 } 35370 35371_ACEOF 35372if ac_fn_c_try_run "$LINENO" 35373then : 35374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fine" >&5 35375printf "%s\n" "fine" >&6; } 35376else $as_nop 35377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 35378printf "%s\n" "failed" >&6; } 35379 as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5 35380 35381fi 35382rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 35383 conftest.$ac_objext conftest.beam conftest.$ac_ext 35384fi 35385 35386 ;; 35387 *) 35388 oldcc=$CC 35389 old=$LD_LIBRARY_PATH 35390 CC="sh ./run-compiler" 35391 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 35392 export LD_LIBRARY_PATH 35393 if test "$cross_compiling" = yes 35394then : 35395 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 35396printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 35397as_fn_error $? "cannot run test program while cross compiling 35398See \`config.log' for more details" "$LINENO" 5; } 35399else $as_nop 35400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35401/* end confdefs.h. */ 35402 35403 int main() 35404 { 35405 return 0; 35406 } 35407 35408_ACEOF 35409if ac_fn_c_try_run "$LINENO" 35410then : 35411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fine" >&5 35412printf "%s\n" "fine" >&6; } 35413else $as_nop 35414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 35415printf "%s\n" "failed" >&6; } 35416 as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5 35417 35418fi 35419rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 35420 conftest.$ac_objext conftest.beam conftest.$ac_ext 35421fi 35422 35423 LD_LIBRARY_PATH=$old # restore 35424 CC=$oldcc 35425 ;; 35426 esac 35427 35428 35429 fi 35430 35431 35432 35433 35434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 35435printf %s "checking size of size_t... " >&6; } 35436 r=0 35437 for typesize in 8 4 2 16 1; do 35438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35439/* end confdefs.h. */ 35440 35441#include <sys/types.h> 35442 35443 35444int main(void) 35445{ 35446switch(0) { 35447 case 0: 35448 case (sizeof(size_t) == $typesize):; 35449 } 35450 35451 ; 35452 return 0; 35453} 35454_ACEOF 35455if ac_fn_c_try_compile "$LINENO" 35456then : 35457 35458 r=$typesize 35459else $as_nop 35460 35461 r=0 35462fi 35463rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 35464 if test $r -gt 0; then 35465 break; 35466 fi 35467 done 35468 if test $r -eq 0; then 35469 as_fn_error $? "Failed to find size of size_t" "$LINENO" 5 35470 fi 35471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5 35472printf "%s\n" "$r" >&6; } 35473 tname=`echo "ac_cv_sizeof_size_t" | tr A-Z a-z | tr " " "_"` 35474 eval "$tname=$r" 35475 35476 35477printf "%s\n" "#define SIZEOF_SIZE_T $r" >>confdefs.h 35478 35479 35480 35481 35482 35483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 35484printf %s "checking size of long... " >&6; } 35485 r=0 35486 for typesize in 8 4 2 16 1; do 35487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35488/* end confdefs.h. */ 35489 35490#include <sys/types.h> 35491 35492 35493int main(void) 35494{ 35495switch(0) { 35496 case 0: 35497 case (sizeof(long) == $typesize):; 35498 } 35499 35500 ; 35501 return 0; 35502} 35503_ACEOF 35504if ac_fn_c_try_compile "$LINENO" 35505then : 35506 35507 r=$typesize 35508else $as_nop 35509 35510 r=0 35511fi 35512rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 35513 if test $r -gt 0; then 35514 break; 35515 fi 35516 done 35517 if test $r -eq 0; then 35518 as_fn_error $? "Failed to find size of long" "$LINENO" 5 35519 fi 35520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5 35521printf "%s\n" "$r" >&6; } 35522 tname=`echo "ac_cv_sizeof_long" | tr A-Z a-z | tr " " "_"` 35523 eval "$tname=$r" 35524 35525 35526printf "%s\n" "#define SIZEOF_LONG $r" >>confdefs.h 35527 35528 35529 35530 35531 35532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 35533printf %s "checking size of int... " >&6; } 35534 r=0 35535 for typesize in 8 4 2 16 1; do 35536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35537/* end confdefs.h. */ 35538 35539#include <sys/types.h> 35540 35541 35542int main(void) 35543{ 35544switch(0) { 35545 case 0: 35546 case (sizeof(int) == $typesize):; 35547 } 35548 35549 ; 35550 return 0; 35551} 35552_ACEOF 35553if ac_fn_c_try_compile "$LINENO" 35554then : 35555 35556 r=$typesize 35557else $as_nop 35558 35559 r=0 35560fi 35561rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 35562 if test $r -gt 0; then 35563 break; 35564 fi 35565 done 35566 if test $r -eq 0; then 35567 as_fn_error $? "Failed to find size of int" "$LINENO" 5 35568 fi 35569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5 35570printf "%s\n" "$r" >&6; } 35571 tname=`echo "ac_cv_sizeof_int" | tr A-Z a-z | tr " " "_"` 35572 eval "$tname=$r" 35573 35574 35575printf "%s\n" "#define SIZEOF_INT $r" >>confdefs.h 35576 35577 35578 35579 35580 35581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 35582printf %s "checking size of time_t... " >&6; } 35583 r=0 35584 for typesize in 8 4 2 16 1; do 35585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35586/* end confdefs.h. */ 35587 35588#include <sys/types.h> 35589 35590 35591int main(void) 35592{ 35593switch(0) { 35594 case 0: 35595 case (sizeof(time_t) == $typesize):; 35596 } 35597 35598 ; 35599 return 0; 35600} 35601_ACEOF 35602if ac_fn_c_try_compile "$LINENO" 35603then : 35604 35605 r=$typesize 35606else $as_nop 35607 35608 r=0 35609fi 35610rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 35611 if test $r -gt 0; then 35612 break; 35613 fi 35614 done 35615 if test $r -eq 0; then 35616 as_fn_error $? "Failed to find size of time_t" "$LINENO" 5 35617 fi 35618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5 35619printf "%s\n" "$r" >&6; } 35620 tname=`echo "ac_cv_sizeof_time_t" | tr A-Z a-z | tr " " "_"` 35621 eval "$tname=$r" 35622 35623 35624printf "%s\n" "#define SIZEOF_TIME_T $r" >>confdefs.h 35625 35626 35627 35628 35629 35630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 35631printf %s "checking size of off_t... " >&6; } 35632 r=0 35633 for typesize in 8 4 2 16 1; do 35634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35635/* end confdefs.h. */ 35636 35637#include <sys/types.h> 35638 35639 35640int main(void) 35641{ 35642switch(0) { 35643 case 0: 35644 case (sizeof(off_t) == $typesize):; 35645 } 35646 35647 ; 35648 return 0; 35649} 35650_ACEOF 35651if ac_fn_c_try_compile "$LINENO" 35652then : 35653 35654 r=$typesize 35655else $as_nop 35656 35657 r=0 35658fi 35659rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 35660 if test $r -gt 0; then 35661 break; 35662 fi 35663 done 35664 if test $r -eq 0; then 35665 as_fn_error $? "Failed to find size of off_t" "$LINENO" 5 35666 fi 35667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5 35668printf "%s\n" "$r" >&6; } 35669 tname=`echo "ac_cv_sizeof_off_t" | tr A-Z a-z | tr " " "_"` 35670 eval "$tname=$r" 35671 35672 35673printf "%s\n" "#define SIZEOF_OFF_T $r" >>confdefs.h 35674 35675 35676 35677 35678o=$CPPFLAGS 35679CPPFLAGS="-I$srcdir/include $CPPFLAGS" 35680 35681 35682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5 35683printf %s "checking size of curl_off_t... " >&6; } 35684 r=0 35685 for typesize in 8 4 2 16 1; do 35686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35687/* end confdefs.h. */ 35688 35689#include <sys/types.h> 35690 35691#include <curl/system.h> 35692 35693 35694int main(void) 35695{ 35696switch(0) { 35697 case 0: 35698 case (sizeof(curl_off_t) == $typesize):; 35699 } 35700 35701 ; 35702 return 0; 35703} 35704_ACEOF 35705if ac_fn_c_try_compile "$LINENO" 35706then : 35707 35708 r=$typesize 35709else $as_nop 35710 35711 r=0 35712fi 35713rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 35714 if test $r -gt 0; then 35715 break; 35716 fi 35717 done 35718 if test $r -eq 0; then 35719 as_fn_error $? "Failed to find size of curl_off_t" "$LINENO" 5 35720 fi 35721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5 35722printf "%s\n" "$r" >&6; } 35723 tname=`echo "ac_cv_sizeof_curl_off_t" | tr A-Z a-z | tr " " "_"` 35724 eval "$tname=$r" 35725 35726 35727printf "%s\n" "#define SIZEOF_CURL_OFF_T $r" >>confdefs.h 35728 35729 35730 35731 35732 35733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of curl_socket_t" >&5 35734printf %s "checking size of curl_socket_t... " >&6; } 35735 r=0 35736 for typesize in 8 4 2 16 1; do 35737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35738/* end confdefs.h. */ 35739 35740#include <sys/types.h> 35741 35742#include <curl/curl.h> 35743 35744 35745int main(void) 35746{ 35747switch(0) { 35748 case 0: 35749 case (sizeof(curl_socket_t) == $typesize):; 35750 } 35751 35752 ; 35753 return 0; 35754} 35755_ACEOF 35756if ac_fn_c_try_compile "$LINENO" 35757then : 35758 35759 r=$typesize 35760else $as_nop 35761 35762 r=0 35763fi 35764rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 35765 if test $r -gt 0; then 35766 break; 35767 fi 35768 done 35769 if test $r -eq 0; then 35770 as_fn_error $? "Failed to find size of curl_socket_t" "$LINENO" 5 35771 fi 35772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5 35773printf "%s\n" "$r" >&6; } 35774 tname=`echo "ac_cv_sizeof_curl_socket_t" | tr A-Z a-z | tr " " "_"` 35775 eval "$tname=$r" 35776 35777 35778printf "%s\n" "#define SIZEOF_CURL_SOCKET_T $r" >>confdefs.h 35779 35780 35781 35782CPPFLAGS=$o 35783 35784ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 35785if test "x$ac_cv_type_long_long" = xyes 35786then : 35787 35788printf "%s\n" "#define HAVE_LONGLONG 1" >>confdefs.h 35789 35790 longlong="yes" 35791 35792fi 35793 35794 35795if test ${ac_cv_sizeof_curl_off_t} -lt 8; then 35796 as_fn_error $? "64 bit curl_off_t is required" "$LINENO" 5 35797fi 35798 35799# check for ssize_t 35800ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 35801if test "x$ac_cv_type_ssize_t" = xyes 35802then : 35803 35804else $as_nop 35805 35806printf "%s\n" "#define ssize_t int" >>confdefs.h 35807 35808fi 35809 35810 35811# check for bool type 35812ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" " 35813#ifdef HAVE_SYS_TYPES_H 35814#include <sys/types.h> 35815#endif 35816#ifdef HAVE_STDBOOL_H 35817#include <stdbool.h> 35818#endif 35819 35820" 35821if test "x$ac_cv_type_bool" = xyes 35822then : 35823 35824 35825printf "%s\n" "#define HAVE_BOOL_T 1" >>confdefs.h 35826 35827 35828fi 35829 35830 35831# check for sa_family_t 35832ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" " 35833#ifdef HAVE_SYS_SOCKET_H 35834#include <sys/socket.h> 35835#endif 35836 35837" 35838if test "x$ac_cv_type_sa_family_t" = xyes 35839then : 35840 35841printf "%s\n" "#define CURL_SA_FAMILY_T sa_family_t" >>confdefs.h 35842 35843else $as_nop 35844 35845 # The Windows name? 35846 ac_fn_c_check_type "$LINENO" "ADDRESS_FAMILY" "ac_cv_type_ADDRESS_FAMILY" " 35847#ifdef _WIN32 35848#ifndef WIN32_LEAN_AND_MEAN 35849#define WIN32_LEAN_AND_MEAN 35850#endif 35851#include <winsock2.h> 35852#endif 35853#ifdef HAVE_SYS_SOCKET_H 35854#include <sys/socket.h> 35855#endif 35856 35857" 35858if test "x$ac_cv_type_ADDRESS_FAMILY" = xyes 35859then : 35860 35861printf "%s\n" "#define CURL_SA_FAMILY_T ADDRESS_FAMILY" >>confdefs.h 35862 35863else $as_nop 35864 35865printf "%s\n" "#define CURL_SA_FAMILY_T unsigned short" >>confdefs.h 35866 35867fi 35868 35869 35870fi 35871 35872 35873# check for suseconds_t 35874ac_fn_c_check_type "$LINENO" "suseconds_t" "ac_cv_type_suseconds_t" " 35875#ifdef HAVE_SYS_TYPES_H 35876#include <sys/types.h> 35877#endif 35878#ifdef HAVE_SYS_TIME_H 35879#include <sys/time.h> 35880#endif 35881 35882" 35883if test "x$ac_cv_type_suseconds_t" = xyes 35884then : 35885 35886 35887printf "%s\n" "#define HAVE_SUSECONDS_T 1" >>confdefs.h 35888 35889 35890fi 35891 35892 35893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if time_t is unsigned" >&5 35894printf %s "checking if time_t is unsigned... " >&6; } 35895 35896 case $host in 35897 *-apple-*) 35898 if test "$cross_compiling" = yes 35899then : 35900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 35901printf "%s\n" "no" >&6; } 35902 35903else $as_nop 35904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35905/* end confdefs.h. */ 35906 35907 #include <time.h> 35908 #include <limits.h> 35909 int main(void) { 35910 time_t t = -1; 35911 return (t < 0); 35912 } 35913 35914_ACEOF 35915if ac_fn_c_try_run "$LINENO" 35916then : 35917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35918printf "%s\n" "yes" >&6; } 35919 35920printf "%s\n" "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h 35921 35922 35923else $as_nop 35924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 35925printf "%s\n" "no" >&6; } 35926 35927fi 35928rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 35929 conftest.$ac_objext conftest.beam conftest.$ac_ext 35930fi 35931 35932 ;; 35933 *) 35934 oldcc=$CC 35935 old=$LD_LIBRARY_PATH 35936 CC="sh ./run-compiler" 35937 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 35938 export LD_LIBRARY_PATH 35939 if test "$cross_compiling" = yes 35940then : 35941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 35942printf "%s\n" "no" >&6; } 35943 35944else $as_nop 35945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35946/* end confdefs.h. */ 35947 35948 #include <time.h> 35949 #include <limits.h> 35950 int main(void) { 35951 time_t t = -1; 35952 return (t < 0); 35953 } 35954 35955_ACEOF 35956if ac_fn_c_try_run "$LINENO" 35957then : 35958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35959printf "%s\n" "yes" >&6; } 35960 35961printf "%s\n" "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h 35962 35963 35964else $as_nop 35965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 35966printf "%s\n" "no" >&6; } 35967 35968fi 35969rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 35970 conftest.$ac_objext conftest.beam conftest.$ac_ext 35971fi 35972 35973 LD_LIBRARY_PATH=$old # restore 35974 CC=$oldcc 35975 ;; 35976 esac 35977 35978 35979 35980 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" " 35981 #undef inline 35982 #ifdef _WIN32 35983 #ifndef WIN32_LEAN_AND_MEAN 35984 #define WIN32_LEAN_AND_MEAN 35985 #endif 35986 #include <winsock2.h> 35987 #else 35988 #ifdef HAVE_SYS_TYPES_H 35989 #include <sys/types.h> 35990 #endif 35991 #ifdef HAVE_SYS_SOCKET_H 35992 #include <sys/socket.h> 35993 #endif 35994 #ifdef HAVE_NETINET_IN_H 35995 #include <netinet/in.h> 35996 #endif 35997 #ifdef HAVE_ARPA_INET_H 35998 #include <arpa/inet.h> 35999 #endif 36000 #endif 36001 36002" 36003if test "x$ac_cv_type_in_addr_t" = xyes 36004then : 36005 36006else $as_nop 36007 36008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5 36009printf %s "checking for in_addr_t equivalent... " >&6; } 36010if test ${curl_cv_in_addr_t_equiv+y} 36011then : 36012 printf %s "(cached) " >&6 36013else $as_nop 36014 36015 curl_cv_in_addr_t_equiv="unknown" 36016 for t in "unsigned long" int size_t unsigned long; do 36017 if test "$curl_cv_in_addr_t_equiv" = "unknown"; then 36018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36019/* end confdefs.h. */ 36020 36021 36022 #undef inline 36023 #ifdef _WIN32 36024 #ifndef WIN32_LEAN_AND_MEAN 36025 #define WIN32_LEAN_AND_MEAN 36026 #endif 36027 #include <winsock2.h> 36028 #else 36029 #ifdef HAVE_SYS_TYPES_H 36030 #include <sys/types.h> 36031 #endif 36032 #ifdef HAVE_SYS_SOCKET_H 36033 #include <sys/socket.h> 36034 #endif 36035 #ifdef HAVE_NETINET_IN_H 36036 #include <netinet/in.h> 36037 #endif 36038 #ifdef HAVE_ARPA_INET_H 36039 #include <arpa/inet.h> 36040 #endif 36041 #endif 36042 36043int main(void) 36044{ 36045 36046 $t data = inet_addr ("1.2.3.4"); 36047 36048 ; 36049 return 0; 36050} 36051 36052_ACEOF 36053if ac_fn_c_try_link "$LINENO" 36054then : 36055 36056 curl_cv_in_addr_t_equiv="$t" 36057 36058fi 36059rm -f core conftest.err conftest.$ac_objext conftest.beam \ 36060 conftest$ac_exeext conftest.$ac_ext 36061 fi 36062 done 36063 36064fi 36065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5 36066printf "%s\n" "$curl_cv_in_addr_t_equiv" >&6; } 36067 case "$curl_cv_in_addr_t_equiv" in 36068 unknown) 36069 as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5 36070 ;; 36071 *) 36072 36073printf "%s\n" "#define in_addr_t $curl_cv_in_addr_t_equiv" >>confdefs.h 36074 36075 ;; 36076 esac 36077 36078fi 36079 36080 36081 36082 36083 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" " 36084 #undef inline 36085 #ifdef _WIN32 36086 #ifndef WIN32_LEAN_AND_MEAN 36087 #define WIN32_LEAN_AND_MEAN 36088 #endif 36089 #include <winsock2.h> 36090 #else 36091 #ifdef HAVE_SYS_TYPES_H 36092 #include <sys/types.h> 36093 #endif 36094 #ifdef HAVE_SYS_SOCKET_H 36095 #include <sys/socket.h> 36096 #endif 36097 #ifdef HAVE_NETINET_IN_H 36098 #include <netinet/in.h> 36099 #endif 36100 #ifdef HAVE_ARPA_INET_H 36101 #include <arpa/inet.h> 36102 #endif 36103 #endif 36104 36105" 36106if test "x$ac_cv_type_struct_sockaddr_storage" = xyes 36107then : 36108 36109printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h 36110 36111fi 36112 36113 36114 36115 36116 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" 36117if test "x$ac_cv_header_sys_select_h" = xyes 36118then : 36119 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h 36120 36121fi 36122ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 36123if test "x$ac_cv_header_sys_socket_h" = xyes 36124then : 36125 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 36126 36127fi 36128 36129 # 36130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for select" >&5 36131printf %s "checking for select... " >&6; } 36132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36133/* end confdefs.h. */ 36134 36135 36136 #undef inline 36137 #ifdef _WIN32 36138 #ifndef WIN32_LEAN_AND_MEAN 36139 #define WIN32_LEAN_AND_MEAN 36140 #endif 36141 #include <winsock2.h> 36142 #endif 36143 #ifdef HAVE_SYS_TYPES_H 36144 #include <sys/types.h> 36145 #endif 36146 #ifdef HAVE_SYS_TIME_H 36147 #include <sys/time.h> 36148 #endif 36149 #include <time.h> 36150 #ifndef _WIN32 36151 #ifdef HAVE_SYS_SELECT_H 36152 #include <sys/select.h> 36153 #elif defined(HAVE_UNISTD_H) 36154 #include <unistd.h> 36155 #endif 36156 #ifdef HAVE_SYS_SOCKET_H 36157 #include <sys/socket.h> 36158 #endif 36159 $curl_includes_bsdsocket 36160 #endif 36161 36162int main(void) 36163{ 36164 36165 select(0, 0, 0, 0, 0); 36166 36167 ; 36168 return 0; 36169} 36170 36171_ACEOF 36172if ac_fn_c_try_link "$LINENO" 36173then : 36174 36175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36176printf "%s\n" "yes" >&6; } 36177 curl_cv_select="yes" 36178 36179else $as_nop 36180 36181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36182printf "%s\n" "no" >&6; } 36183 curl_cv_select="no" 36184 36185fi 36186rm -f core conftest.err conftest.$ac_objext conftest.beam \ 36187 conftest$ac_exeext conftest.$ac_ext 36188 # 36189 if test "$curl_cv_select" = "yes"; then 36190 36191printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h 36192 36193 curl_cv_func_select="yes" 36194 fi 36195 36196 36197 36198 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 36199if test "x$ac_cv_header_sys_types_h" = xyes 36200then : 36201 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 36202 36203fi 36204ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 36205if test "x$ac_cv_header_sys_socket_h" = xyes 36206then : 36207 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 36208 36209fi 36210 36211 # 36212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recv" >&5 36213printf %s "checking for recv... " >&6; } 36214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36215/* end confdefs.h. */ 36216 36217 36218 #undef inline 36219 #ifdef _WIN32 36220 #ifndef WIN32_LEAN_AND_MEAN 36221 #define WIN32_LEAN_AND_MEAN 36222 #endif 36223 #include <winsock2.h> 36224 #else 36225 $curl_includes_bsdsocket 36226 #ifdef HAVE_SYS_TYPES_H 36227 #include <sys/types.h> 36228 #endif 36229 #ifdef HAVE_SYS_SOCKET_H 36230 #include <sys/socket.h> 36231 #endif 36232 #endif 36233 36234int main(void) 36235{ 36236 36237 recv(0, 0, 0, 0); 36238 36239 ; 36240 return 0; 36241} 36242 36243_ACEOF 36244if ac_fn_c_try_link "$LINENO" 36245then : 36246 36247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36248printf "%s\n" "yes" >&6; } 36249 curl_cv_recv="yes" 36250 36251else $as_nop 36252 36253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36254printf "%s\n" "no" >&6; } 36255 curl_cv_recv="no" 36256 36257fi 36258rm -f core conftest.err conftest.$ac_objext conftest.beam \ 36259 conftest$ac_exeext conftest.$ac_ext 36260 # 36261 if test "$curl_cv_recv" = "yes"; then 36262 36263printf "%s\n" "#define HAVE_RECV 1" >>confdefs.h 36264 36265 curl_cv_func_recv="yes" 36266 else 36267 as_fn_error $? "Unable to link function recv" "$LINENO" 5 36268 fi 36269 36270 36271 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 36272if test "x$ac_cv_header_sys_types_h" = xyes 36273then : 36274 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 36275 36276fi 36277ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 36278if test "x$ac_cv_header_sys_socket_h" = xyes 36279then : 36280 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 36281 36282fi 36283 36284 # 36285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for send" >&5 36286printf %s "checking for send... " >&6; } 36287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36288/* end confdefs.h. */ 36289 36290 36291 #undef inline 36292 #ifdef _WIN32 36293 #ifndef WIN32_LEAN_AND_MEAN 36294 #define WIN32_LEAN_AND_MEAN 36295 #endif 36296 #include <winsock2.h> 36297 #else 36298 $curl_includes_bsdsocket 36299 #ifdef HAVE_SYS_TYPES_H 36300 #include <sys/types.h> 36301 #endif 36302 #ifdef HAVE_SYS_SOCKET_H 36303 #include <sys/socket.h> 36304 #endif 36305 #endif 36306 36307int main(void) 36308{ 36309 36310 send(0, 0, 0, 0); 36311 36312 ; 36313 return 0; 36314} 36315 36316_ACEOF 36317if ac_fn_c_try_link "$LINENO" 36318then : 36319 36320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36321printf "%s\n" "yes" >&6; } 36322 curl_cv_send="yes" 36323 36324else $as_nop 36325 36326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36327printf "%s\n" "no" >&6; } 36328 curl_cv_send="no" 36329 36330fi 36331rm -f core conftest.err conftest.$ac_objext conftest.beam \ 36332 conftest$ac_exeext conftest.$ac_ext 36333 # 36334 if test "$curl_cv_send" = "yes"; then 36335 36336printf "%s\n" "#define HAVE_SEND 1" >>confdefs.h 36337 36338 curl_cv_func_send="yes" 36339 else 36340 as_fn_error $? "Unable to link function send" "$LINENO" 5 36341 fi 36342 36343 36344 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 36345if test "x$ac_cv_header_sys_types_h" = xyes 36346then : 36347 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 36348 36349fi 36350ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 36351if test "x$ac_cv_header_sys_socket_h" = xyes 36352then : 36353 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 36354 36355fi 36356 36357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5 36358printf %s "checking for MSG_NOSIGNAL... " >&6; } 36359if test ${curl_cv_msg_nosignal+y} 36360then : 36361 printf %s "(cached) " >&6 36362else $as_nop 36363 36364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36365/* end confdefs.h. */ 36366 36367 36368 #undef inline 36369 #ifdef _WIN32 36370 #ifndef WIN32_LEAN_AND_MEAN 36371 #define WIN32_LEAN_AND_MEAN 36372 #endif 36373 #include <winsock2.h> 36374 #else 36375 #ifdef HAVE_SYS_TYPES_H 36376 #include <sys/types.h> 36377 #endif 36378 #ifdef HAVE_SYS_SOCKET_H 36379 #include <sys/socket.h> 36380 #endif 36381 #endif 36382 36383int main(void) 36384{ 36385 36386 int flag=MSG_NOSIGNAL; 36387 36388 ; 36389 return 0; 36390} 36391 36392_ACEOF 36393if ac_fn_c_try_compile "$LINENO" 36394then : 36395 36396 curl_cv_msg_nosignal="yes" 36397 36398else $as_nop 36399 36400 curl_cv_msg_nosignal="no" 36401 36402fi 36403rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 36404 36405fi 36406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5 36407printf "%s\n" "$curl_cv_msg_nosignal" >&6; } 36408 case "$curl_cv_msg_nosignal" in 36409 yes) 36410 36411printf "%s\n" "#define HAVE_MSG_NOSIGNAL 1" >>confdefs.h 36412 36413 ;; 36414 esac 36415 36416 36417 36418curl_includes_unistd="\ 36419/* includes start */ 36420#ifdef HAVE_SYS_TYPES_H 36421# include <sys/types.h> 36422#endif 36423#ifdef HAVE_UNISTD_H 36424# include <unistd.h> 36425#endif 36426/* includes end */" 36427 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_unistd 36428" 36429if test "x$ac_cv_header_sys_types_h" = xyes 36430then : 36431 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 36432 36433fi 36434ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$curl_includes_unistd 36435" 36436if test "x$ac_cv_header_unistd_h" = xyes 36437then : 36438 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h 36439 36440fi 36441 36442 36443 36444 # 36445 tst_links_alarm="unknown" 36446 tst_proto_alarm="unknown" 36447 tst_compi_alarm="unknown" 36448 tst_allow_alarm="unknown" 36449 # 36450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5 36451printf %s "checking if alarm can be linked... " >&6; } 36452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36453/* end confdefs.h. */ 36454 36455 36456#define alarm innocuous_alarm 36457#ifdef __STDC__ 36458# include <limits.h> 36459#else 36460# include <assert.h> 36461#endif 36462#undef alarm 36463#ifdef __cplusplus 36464extern "C" 36465#endif 36466char alarm (); 36467#if defined __stub_alarm || defined __stub___alarm 36468#error force compilation error 36469#endif 36470 36471int main(void) 36472{ 36473return alarm (); 36474 ; 36475 return 0; 36476} 36477 36478_ACEOF 36479if ac_fn_c_try_link "$LINENO" 36480then : 36481 36482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36483printf "%s\n" "yes" >&6; } 36484 tst_links_alarm="yes" 36485 36486else $as_nop 36487 36488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36489printf "%s\n" "no" >&6; } 36490 tst_links_alarm="no" 36491 36492fi 36493rm -f core conftest.err conftest.$ac_objext conftest.beam \ 36494 conftest$ac_exeext conftest.$ac_ext 36495 # 36496 if test "$tst_links_alarm" = "yes"; then 36497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5 36498printf %s "checking if alarm is prototyped... " >&6; } 36499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36500/* end confdefs.h. */ 36501 36502 $curl_includes_unistd 36503 36504_ACEOF 36505if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 36506 $EGREP "alarm" >/dev/null 2>&1 36507then : 36508 36509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36510printf "%s\n" "yes" >&6; } 36511 tst_proto_alarm="yes" 36512 36513else $as_nop 36514 36515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36516printf "%s\n" "no" >&6; } 36517 tst_proto_alarm="no" 36518 36519fi 36520rm -rf conftest* 36521 36522 fi 36523 # 36524 if test "$tst_proto_alarm" = "yes"; then 36525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5 36526printf %s "checking if alarm is compilable... " >&6; } 36527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36528/* end confdefs.h. */ 36529 36530 36531 $curl_includes_unistd 36532 36533int main(void) 36534{ 36535 36536 if(0 != alarm(0)) 36537 return 1; 36538 36539 ; 36540 return 0; 36541} 36542 36543_ACEOF 36544if ac_fn_c_try_compile "$LINENO" 36545then : 36546 36547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36548printf "%s\n" "yes" >&6; } 36549 tst_compi_alarm="yes" 36550 36551else $as_nop 36552 36553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36554printf "%s\n" "no" >&6; } 36555 tst_compi_alarm="no" 36556 36557fi 36558rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 36559 fi 36560 # 36561 if test "$tst_compi_alarm" = "yes"; then 36562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5 36563printf %s "checking if alarm usage allowed... " >&6; } 36564 if test "x$curl_disallow_alarm" != "xyes"; then 36565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36566printf "%s\n" "yes" >&6; } 36567 tst_allow_alarm="yes" 36568 else 36569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36570printf "%s\n" "no" >&6; } 36571 tst_allow_alarm="no" 36572 fi 36573 fi 36574 # 36575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5 36576printf %s "checking if alarm might be used... " >&6; } 36577 if test "$tst_links_alarm" = "yes" && 36578 test "$tst_proto_alarm" = "yes" && 36579 test "$tst_compi_alarm" = "yes" && 36580 test "$tst_allow_alarm" = "yes"; then 36581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36582printf "%s\n" "yes" >&6; } 36583 36584printf "%s\n" "#define HAVE_ALARM 1" >>confdefs.h 36585 36586 curl_cv_func_alarm="yes" 36587 else 36588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36589printf "%s\n" "no" >&6; } 36590 curl_cv_func_alarm="no" 36591 fi 36592 36593 36594curl_includes_string="\ 36595/* includes start */ 36596#ifdef HAVE_SYS_TYPES_H 36597# include <sys/types.h> 36598#endif 36599#include <string.h> 36600#ifdef HAVE_STRINGS_H 36601# include <strings.h> 36602#endif 36603/* includes end */" 36604 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_string 36605" 36606if test "x$ac_cv_header_sys_types_h" = xyes 36607then : 36608 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 36609 36610fi 36611ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$curl_includes_string 36612" 36613if test "x$ac_cv_header_strings_h" = xyes 36614then : 36615 printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h 36616 36617fi 36618 36619 36620 36621curl_includes_libgen="\ 36622/* includes start */ 36623#ifdef HAVE_SYS_TYPES_H 36624# include <sys/types.h> 36625#endif 36626#ifdef HAVE_LIBGEN_H 36627# include <libgen.h> 36628#endif 36629/* includes end */" 36630 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_libgen 36631" 36632if test "x$ac_cv_header_sys_types_h" = xyes 36633then : 36634 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 36635 36636fi 36637ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$curl_includes_libgen 36638" 36639if test "x$ac_cv_header_libgen_h" = xyes 36640then : 36641 printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h 36642 36643fi 36644 36645 36646 36647 # 36648 tst_links_basename="unknown" 36649 tst_proto_basename="unknown" 36650 tst_compi_basename="unknown" 36651 tst_allow_basename="unknown" 36652 # 36653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5 36654printf %s "checking if basename can be linked... " >&6; } 36655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36656/* end confdefs.h. */ 36657 36658 36659#define basename innocuous_basename 36660#ifdef __STDC__ 36661# include <limits.h> 36662#else 36663# include <assert.h> 36664#endif 36665#undef basename 36666#ifdef __cplusplus 36667extern "C" 36668#endif 36669char basename (); 36670#if defined __stub_basename || defined __stub___basename 36671#error force compilation error 36672#endif 36673 36674int main(void) 36675{ 36676return basename (); 36677 ; 36678 return 0; 36679} 36680 36681_ACEOF 36682if ac_fn_c_try_link "$LINENO" 36683then : 36684 36685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36686printf "%s\n" "yes" >&6; } 36687 tst_links_basename="yes" 36688 36689else $as_nop 36690 36691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36692printf "%s\n" "no" >&6; } 36693 tst_links_basename="no" 36694 36695fi 36696rm -f core conftest.err conftest.$ac_objext conftest.beam \ 36697 conftest$ac_exeext conftest.$ac_ext 36698 # 36699 if test "$tst_links_basename" = "yes"; then 36700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5 36701printf %s "checking if basename is prototyped... " >&6; } 36702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36703/* end confdefs.h. */ 36704 36705 $curl_includes_string 36706 $curl_includes_libgen 36707 $curl_includes_unistd 36708 36709_ACEOF 36710if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 36711 $EGREP "basename" >/dev/null 2>&1 36712then : 36713 36714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36715printf "%s\n" "yes" >&6; } 36716 tst_proto_basename="yes" 36717 36718else $as_nop 36719 36720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36721printf "%s\n" "no" >&6; } 36722 tst_proto_basename="no" 36723 36724fi 36725rm -rf conftest* 36726 36727 fi 36728 # 36729 if test "$tst_proto_basename" = "yes"; then 36730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5 36731printf %s "checking if basename is compilable... " >&6; } 36732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36733/* end confdefs.h. */ 36734 36735 36736 $curl_includes_string 36737 $curl_includes_libgen 36738 $curl_includes_unistd 36739 36740int main(void) 36741{ 36742 36743 if(0 != basename(0)) 36744 return 1; 36745 36746 ; 36747 return 0; 36748} 36749 36750_ACEOF 36751if ac_fn_c_try_compile "$LINENO" 36752then : 36753 36754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36755printf "%s\n" "yes" >&6; } 36756 tst_compi_basename="yes" 36757 36758else $as_nop 36759 36760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36761printf "%s\n" "no" >&6; } 36762 tst_compi_basename="no" 36763 36764fi 36765rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 36766 fi 36767 # 36768 if test "$tst_compi_basename" = "yes"; then 36769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5 36770printf %s "checking if basename usage allowed... " >&6; } 36771 if test "x$curl_disallow_basename" != "xyes"; then 36772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36773printf "%s\n" "yes" >&6; } 36774 tst_allow_basename="yes" 36775 else 36776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36777printf "%s\n" "no" >&6; } 36778 tst_allow_basename="no" 36779 fi 36780 fi 36781 # 36782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5 36783printf %s "checking if basename might be used... " >&6; } 36784 if test "$tst_links_basename" = "yes" && 36785 test "$tst_proto_basename" = "yes" && 36786 test "$tst_compi_basename" = "yes" && 36787 test "$tst_allow_basename" = "yes"; then 36788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36789printf "%s\n" "yes" >&6; } 36790 36791printf "%s\n" "#define HAVE_BASENAME 1" >>confdefs.h 36792 36793 curl_cv_func_basename="yes" 36794 else 36795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36796printf "%s\n" "no" >&6; } 36797 curl_cv_func_basename="no" 36798 fi 36799 36800 36801 # 36802 tst_links_closesocket="unknown" 36803 tst_proto_closesocket="unknown" 36804 tst_compi_closesocket="unknown" 36805 tst_allow_closesocket="unknown" 36806 # 36807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5 36808printf %s "checking if closesocket can be linked... " >&6; } 36809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36810/* end confdefs.h. */ 36811 36812 36813 $curl_includes_winsock2 36814 36815int main(void) 36816{ 36817 36818 if(0 != closesocket(0)) 36819 return 1; 36820 36821 ; 36822 return 0; 36823} 36824 36825_ACEOF 36826if ac_fn_c_try_link "$LINENO" 36827then : 36828 36829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36830printf "%s\n" "yes" >&6; } 36831 tst_links_closesocket="yes" 36832 36833else $as_nop 36834 36835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36836printf "%s\n" "no" >&6; } 36837 tst_links_closesocket="no" 36838 36839fi 36840rm -f core conftest.err conftest.$ac_objext conftest.beam \ 36841 conftest$ac_exeext conftest.$ac_ext 36842 # 36843 if test "$tst_links_closesocket" = "yes"; then 36844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5 36845printf %s "checking if closesocket is prototyped... " >&6; } 36846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36847/* end confdefs.h. */ 36848 36849 $curl_includes_winsock2 36850 36851_ACEOF 36852if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 36853 $EGREP "closesocket" >/dev/null 2>&1 36854then : 36855 36856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36857printf "%s\n" "yes" >&6; } 36858 tst_proto_closesocket="yes" 36859 36860else $as_nop 36861 36862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36863printf "%s\n" "no" >&6; } 36864 tst_proto_closesocket="no" 36865 36866fi 36867rm -rf conftest* 36868 36869 fi 36870 # 36871 if test "$tst_proto_closesocket" = "yes"; then 36872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5 36873printf %s "checking if closesocket is compilable... " >&6; } 36874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36875/* end confdefs.h. */ 36876 36877 36878 $curl_includes_winsock2 36879 36880int main(void) 36881{ 36882 36883 if(0 != closesocket(0)) 36884 return 1; 36885 36886 ; 36887 return 0; 36888} 36889 36890_ACEOF 36891if ac_fn_c_try_compile "$LINENO" 36892then : 36893 36894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36895printf "%s\n" "yes" >&6; } 36896 tst_compi_closesocket="yes" 36897 36898else $as_nop 36899 36900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36901printf "%s\n" "no" >&6; } 36902 tst_compi_closesocket="no" 36903 36904fi 36905rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 36906 fi 36907 # 36908 if test "$tst_compi_closesocket" = "yes"; then 36909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5 36910printf %s "checking if closesocket usage allowed... " >&6; } 36911 if test "x$curl_disallow_closesocket" != "xyes"; then 36912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36913printf "%s\n" "yes" >&6; } 36914 tst_allow_closesocket="yes" 36915 else 36916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36917printf "%s\n" "no" >&6; } 36918 tst_allow_closesocket="no" 36919 fi 36920 fi 36921 # 36922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5 36923printf %s "checking if closesocket might be used... " >&6; } 36924 if test "$tst_links_closesocket" = "yes" && 36925 test "$tst_proto_closesocket" = "yes" && 36926 test "$tst_compi_closesocket" = "yes" && 36927 test "$tst_allow_closesocket" = "yes"; then 36928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36929printf "%s\n" "yes" >&6; } 36930 36931printf "%s\n" "#define HAVE_CLOSESOCKET 1" >>confdefs.h 36932 36933 curl_cv_func_closesocket="yes" 36934 else 36935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 36936printf "%s\n" "no" >&6; } 36937 curl_cv_func_closesocket="no" 36938 fi 36939 36940 36941curl_includes_sys_socket="\ 36942/* includes start */ 36943#ifdef HAVE_SYS_TYPES_H 36944# include <sys/types.h> 36945#endif 36946#ifdef HAVE_SYS_SOCKET_H 36947# include <sys/socket.h> 36948#endif 36949/* includes end */" 36950 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_sys_socket 36951" 36952if test "x$ac_cv_header_sys_types_h" = xyes 36953then : 36954 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 36955 36956fi 36957ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_sys_socket 36958" 36959if test "x$ac_cv_header_sys_socket_h" = xyes 36960then : 36961 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 36962 36963fi 36964 36965 36966 36967 # 36968 tst_links_closesocket_camel="unknown" 36969 tst_proto_closesocket_camel="unknown" 36970 tst_compi_closesocket_camel="unknown" 36971 tst_allow_closesocket_camel="unknown" 36972 # 36973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5 36974printf %s "checking if CloseSocket can be linked... " >&6; } 36975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36976/* end confdefs.h. */ 36977 36978 36979 $curl_includes_bsdsocket 36980 $curl_includes_sys_socket 36981 36982int main(void) 36983{ 36984 36985 if(0 != CloseSocket(0)) 36986 return 1; 36987 36988 ; 36989 return 0; 36990} 36991 36992_ACEOF 36993if ac_fn_c_try_link "$LINENO" 36994then : 36995 36996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36997printf "%s\n" "yes" >&6; } 36998 tst_links_closesocket_camel="yes" 36999 37000else $as_nop 37001 37002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37003printf "%s\n" "no" >&6; } 37004 tst_links_closesocket_camel="no" 37005 37006fi 37007rm -f core conftest.err conftest.$ac_objext conftest.beam \ 37008 conftest$ac_exeext conftest.$ac_ext 37009 # 37010 if test "$tst_links_closesocket_camel" = "yes"; then 37011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5 37012printf %s "checking if CloseSocket is prototyped... " >&6; } 37013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37014/* end confdefs.h. */ 37015 37016 $curl_includes_bsdsocket 37017 $curl_includes_sys_socket 37018 37019_ACEOF 37020if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 37021 $EGREP "CloseSocket" >/dev/null 2>&1 37022then : 37023 37024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37025printf "%s\n" "yes" >&6; } 37026 tst_proto_closesocket_camel="yes" 37027 37028else $as_nop 37029 37030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37031printf "%s\n" "no" >&6; } 37032 tst_proto_closesocket_camel="no" 37033 37034fi 37035rm -rf conftest* 37036 37037 fi 37038 # 37039 if test "$tst_proto_closesocket_camel" = "yes"; then 37040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5 37041printf %s "checking if CloseSocket is compilable... " >&6; } 37042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37043/* end confdefs.h. */ 37044 37045 37046 $curl_includes_bsdsocket 37047 $curl_includes_sys_socket 37048 37049int main(void) 37050{ 37051 37052 if(0 != CloseSocket(0)) 37053 return 1; 37054 37055 ; 37056 return 0; 37057} 37058 37059_ACEOF 37060if ac_fn_c_try_compile "$LINENO" 37061then : 37062 37063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37064printf "%s\n" "yes" >&6; } 37065 tst_compi_closesocket_camel="yes" 37066 37067else $as_nop 37068 37069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37070printf "%s\n" "no" >&6; } 37071 tst_compi_closesocket_camel="no" 37072 37073fi 37074rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 37075 fi 37076 # 37077 if test "$tst_compi_closesocket_camel" = "yes"; then 37078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5 37079printf %s "checking if CloseSocket usage allowed... " >&6; } 37080 if test "x$curl_disallow_closesocket_camel" != "xyes"; then 37081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37082printf "%s\n" "yes" >&6; } 37083 tst_allow_closesocket_camel="yes" 37084 else 37085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37086printf "%s\n" "no" >&6; } 37087 tst_allow_closesocket_camel="no" 37088 fi 37089 fi 37090 # 37091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5 37092printf %s "checking if CloseSocket might be used... " >&6; } 37093 if test "$tst_links_closesocket_camel" = "yes" && 37094 test "$tst_proto_closesocket_camel" = "yes" && 37095 test "$tst_compi_closesocket_camel" = "yes" && 37096 test "$tst_allow_closesocket_camel" = "yes"; then 37097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37098printf "%s\n" "yes" >&6; } 37099 37100printf "%s\n" "#define HAVE_CLOSESOCKET_CAMEL 1" >>confdefs.h 37101 37102 curl_cv_func_closesocket_camel="yes" 37103 else 37104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37105printf "%s\n" "no" >&6; } 37106 curl_cv_func_closesocket_camel="no" 37107 fi 37108 37109 37110curl_includes_fcntl="\ 37111/* includes start */ 37112#ifdef HAVE_SYS_TYPES_H 37113# include <sys/types.h> 37114#endif 37115#ifdef HAVE_UNISTD_H 37116# include <unistd.h> 37117#endif 37118#ifdef HAVE_FCNTL_H 37119# include <fcntl.h> 37120#endif 37121/* includes end */" 37122 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_fcntl 37123" 37124if test "x$ac_cv_header_sys_types_h" = xyes 37125then : 37126 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 37127 37128fi 37129ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$curl_includes_fcntl 37130" 37131if test "x$ac_cv_header_unistd_h" = xyes 37132then : 37133 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h 37134 37135fi 37136ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$curl_includes_fcntl 37137" 37138if test "x$ac_cv_header_fcntl_h" = xyes 37139then : 37140 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h 37141 37142fi 37143 37144 37145 37146 # 37147 tst_links_fcntl="unknown" 37148 tst_proto_fcntl="unknown" 37149 tst_compi_fcntl="unknown" 37150 tst_allow_fcntl="unknown" 37151 # 37152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5 37153printf %s "checking if fcntl can be linked... " >&6; } 37154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37155/* end confdefs.h. */ 37156 37157 37158#define fcntl innocuous_fcntl 37159#ifdef __STDC__ 37160# include <limits.h> 37161#else 37162# include <assert.h> 37163#endif 37164#undef fcntl 37165#ifdef __cplusplus 37166extern "C" 37167#endif 37168char fcntl (); 37169#if defined __stub_fcntl || defined __stub___fcntl 37170#error force compilation error 37171#endif 37172 37173int main(void) 37174{ 37175return fcntl (); 37176 ; 37177 return 0; 37178} 37179 37180_ACEOF 37181if ac_fn_c_try_link "$LINENO" 37182then : 37183 37184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37185printf "%s\n" "yes" >&6; } 37186 tst_links_fcntl="yes" 37187 37188else $as_nop 37189 37190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37191printf "%s\n" "no" >&6; } 37192 tst_links_fcntl="no" 37193 37194fi 37195rm -f core conftest.err conftest.$ac_objext conftest.beam \ 37196 conftest$ac_exeext conftest.$ac_ext 37197 # 37198 if test "$tst_links_fcntl" = "yes"; then 37199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5 37200printf %s "checking if fcntl is prototyped... " >&6; } 37201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37202/* end confdefs.h. */ 37203 37204 $curl_includes_fcntl 37205 37206_ACEOF 37207if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 37208 $EGREP "fcntl" >/dev/null 2>&1 37209then : 37210 37211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37212printf "%s\n" "yes" >&6; } 37213 tst_proto_fcntl="yes" 37214 37215else $as_nop 37216 37217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37218printf "%s\n" "no" >&6; } 37219 tst_proto_fcntl="no" 37220 37221fi 37222rm -rf conftest* 37223 37224 fi 37225 # 37226 if test "$tst_proto_fcntl" = "yes"; then 37227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5 37228printf %s "checking if fcntl is compilable... " >&6; } 37229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37230/* end confdefs.h. */ 37231 37232 37233 $curl_includes_fcntl 37234 37235int main(void) 37236{ 37237 37238 if(0 != fcntl(0, 0, 0)) 37239 return 1; 37240 37241 ; 37242 return 0; 37243} 37244 37245_ACEOF 37246if ac_fn_c_try_compile "$LINENO" 37247then : 37248 37249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37250printf "%s\n" "yes" >&6; } 37251 tst_compi_fcntl="yes" 37252 37253else $as_nop 37254 37255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37256printf "%s\n" "no" >&6; } 37257 tst_compi_fcntl="no" 37258 37259fi 37260rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 37261 fi 37262 # 37263 if test "$tst_compi_fcntl" = "yes"; then 37264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5 37265printf %s "checking if fcntl usage allowed... " >&6; } 37266 if test "x$curl_disallow_fcntl" != "xyes"; then 37267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37268printf "%s\n" "yes" >&6; } 37269 tst_allow_fcntl="yes" 37270 else 37271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37272printf "%s\n" "no" >&6; } 37273 tst_allow_fcntl="no" 37274 fi 37275 fi 37276 # 37277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5 37278printf %s "checking if fcntl might be used... " >&6; } 37279 if test "$tst_links_fcntl" = "yes" && 37280 test "$tst_proto_fcntl" = "yes" && 37281 test "$tst_compi_fcntl" = "yes" && 37282 test "$tst_allow_fcntl" = "yes"; then 37283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37284printf "%s\n" "yes" >&6; } 37285 37286printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h 37287 37288 curl_cv_func_fcntl="yes" 37289 37290 # 37291 tst_compi_fcntl_o_nonblock="unknown" 37292 tst_allow_fcntl_o_nonblock="unknown" 37293 # 37294 case $host_os in 37295 sunos4* | aix3*) 37296 curl_disallow_fcntl_o_nonblock="yes" 37297 ;; 37298 esac 37299 # 37300 if test "$curl_cv_func_fcntl" = "yes"; then 37301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5 37302printf %s "checking if fcntl O_NONBLOCK is compilable... " >&6; } 37303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37304/* end confdefs.h. */ 37305 37306 37307 $curl_includes_fcntl 37308 37309int main(void) 37310{ 37311 37312 int flags = 0; 37313 if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK)) 37314 return 1; 37315 37316 ; 37317 return 0; 37318} 37319 37320_ACEOF 37321if ac_fn_c_try_compile "$LINENO" 37322then : 37323 37324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37325printf "%s\n" "yes" >&6; } 37326 tst_compi_fcntl_o_nonblock="yes" 37327 37328else $as_nop 37329 37330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37331printf "%s\n" "no" >&6; } 37332 tst_compi_fcntl_o_nonblock="no" 37333 37334fi 37335rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 37336 fi 37337 # 37338 if test "$tst_compi_fcntl_o_nonblock" = "yes"; then 37339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5 37340printf %s "checking if fcntl O_NONBLOCK usage allowed... " >&6; } 37341 if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then 37342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37343printf "%s\n" "yes" >&6; } 37344 tst_allow_fcntl_o_nonblock="yes" 37345 else 37346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37347printf "%s\n" "no" >&6; } 37348 tst_allow_fcntl_o_nonblock="no" 37349 fi 37350 fi 37351 # 37352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5 37353printf %s "checking if fcntl O_NONBLOCK might be used... " >&6; } 37354 if test "$tst_compi_fcntl_o_nonblock" = "yes" && 37355 test "$tst_allow_fcntl_o_nonblock" = "yes"; then 37356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37357printf "%s\n" "yes" >&6; } 37358 37359printf "%s\n" "#define HAVE_FCNTL_O_NONBLOCK 1" >>confdefs.h 37360 37361 curl_cv_func_fcntl_o_nonblock="yes" 37362 else 37363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37364printf "%s\n" "no" >&6; } 37365 curl_cv_func_fcntl_o_nonblock="no" 37366 fi 37367 37368 else 37369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37370printf "%s\n" "no" >&6; } 37371 curl_cv_func_fcntl="no" 37372 fi 37373 37374 37375curl_includes_ws2tcpip="\ 37376/* includes start */ 37377#ifdef _WIN32 37378# ifndef WIN32_LEAN_AND_MEAN 37379# define WIN32_LEAN_AND_MEAN 37380# endif 37381# include <winsock2.h> 37382# include <ws2tcpip.h> 37383#endif 37384/* includes end */" 37385 37386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5 37387printf %s "checking whether build target is a native Windows one... " >&6; } 37388if test ${curl_cv_native_windows+y} 37389then : 37390 printf %s "(cached) " >&6 37391else $as_nop 37392 37393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37394/* end confdefs.h. */ 37395 37396 37397 37398int main(void) 37399{ 37400 37401 #ifdef _WIN32 37402 int dummy=1; 37403 #else 37404 #error Not a native Windows build target. 37405 #endif 37406 37407 ; 37408 return 0; 37409} 37410 37411_ACEOF 37412if ac_fn_c_try_compile "$LINENO" 37413then : 37414 37415 curl_cv_native_windows="yes" 37416 37417else $as_nop 37418 37419 curl_cv_native_windows="no" 37420 37421fi 37422rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 37423 37424fi 37425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5 37426printf "%s\n" "$curl_cv_native_windows" >&6; } 37427 if test "x$curl_cv_native_windows" = xyes; then 37428 DOING_NATIVE_WINDOWS_TRUE= 37429 DOING_NATIVE_WINDOWS_FALSE='#' 37430else 37431 DOING_NATIVE_WINDOWS_TRUE='#' 37432 DOING_NATIVE_WINDOWS_FALSE= 37433fi 37434 37435 37436 37437 37438curl_includes_netdb="\ 37439/* includes start */ 37440#ifdef HAVE_SYS_TYPES_H 37441# include <sys/types.h> 37442#endif 37443#ifdef HAVE_NETDB_H 37444# include <netdb.h> 37445#endif 37446/* includes end */" 37447 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_netdb 37448" 37449if test "x$ac_cv_header_sys_types_h" = xyes 37450then : 37451 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 37452 37453fi 37454ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$curl_includes_netdb 37455" 37456if test "x$ac_cv_header_netdb_h" = xyes 37457then : 37458 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h 37459 37460fi 37461 37462 37463 37464 # 37465 tst_links_freeaddrinfo="unknown" 37466 tst_proto_freeaddrinfo="unknown" 37467 tst_compi_freeaddrinfo="unknown" 37468 tst_allow_freeaddrinfo="unknown" 37469 # 37470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5 37471printf %s "checking if freeaddrinfo can be linked... " >&6; } 37472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37473/* end confdefs.h. */ 37474 37475 37476 $curl_includes_ws2tcpip 37477 $curl_includes_sys_socket 37478 $curl_includes_netdb 37479 37480int main(void) 37481{ 37482 37483 freeaddrinfo(0); 37484 37485 ; 37486 return 0; 37487} 37488 37489_ACEOF 37490if ac_fn_c_try_link "$LINENO" 37491then : 37492 37493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37494printf "%s\n" "yes" >&6; } 37495 tst_links_freeaddrinfo="yes" 37496 37497else $as_nop 37498 37499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37500printf "%s\n" "no" >&6; } 37501 tst_links_freeaddrinfo="no" 37502 37503fi 37504rm -f core conftest.err conftest.$ac_objext conftest.beam \ 37505 conftest$ac_exeext conftest.$ac_ext 37506 # 37507 if test "$tst_links_freeaddrinfo" = "yes"; then 37508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5 37509printf %s "checking if freeaddrinfo is prototyped... " >&6; } 37510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37511/* end confdefs.h. */ 37512 37513 $curl_includes_ws2tcpip 37514 $curl_includes_sys_socket 37515 $curl_includes_netdb 37516 37517_ACEOF 37518if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 37519 $EGREP "freeaddrinfo" >/dev/null 2>&1 37520then : 37521 37522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37523printf "%s\n" "yes" >&6; } 37524 tst_proto_freeaddrinfo="yes" 37525 37526else $as_nop 37527 37528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37529printf "%s\n" "no" >&6; } 37530 tst_proto_freeaddrinfo="no" 37531 37532fi 37533rm -rf conftest* 37534 37535 fi 37536 # 37537 if test "$tst_proto_freeaddrinfo" = "yes"; then 37538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5 37539printf %s "checking if freeaddrinfo is compilable... " >&6; } 37540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37541/* end confdefs.h. */ 37542 37543 37544 $curl_includes_ws2tcpip 37545 $curl_includes_sys_socket 37546 $curl_includes_netdb 37547 37548int main(void) 37549{ 37550 37551 freeaddrinfo(0); 37552 37553 ; 37554 return 0; 37555} 37556 37557_ACEOF 37558if ac_fn_c_try_compile "$LINENO" 37559then : 37560 37561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37562printf "%s\n" "yes" >&6; } 37563 tst_compi_freeaddrinfo="yes" 37564 37565else $as_nop 37566 37567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37568printf "%s\n" "no" >&6; } 37569 tst_compi_freeaddrinfo="no" 37570 37571fi 37572rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 37573 fi 37574 # 37575 if test "$tst_compi_freeaddrinfo" = "yes"; then 37576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5 37577printf %s "checking if freeaddrinfo usage allowed... " >&6; } 37578 if test "x$curl_disallow_freeaddrinfo" != "xyes"; then 37579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37580printf "%s\n" "yes" >&6; } 37581 tst_allow_freeaddrinfo="yes" 37582 else 37583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37584printf "%s\n" "no" >&6; } 37585 tst_allow_freeaddrinfo="no" 37586 fi 37587 fi 37588 # 37589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5 37590printf %s "checking if freeaddrinfo might be used... " >&6; } 37591 if test "$tst_links_freeaddrinfo" = "yes" && 37592 test "$tst_proto_freeaddrinfo" = "yes" && 37593 test "$tst_compi_freeaddrinfo" = "yes" && 37594 test "$tst_allow_freeaddrinfo" = "yes"; then 37595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37596printf "%s\n" "yes" >&6; } 37597 37598printf "%s\n" "#define HAVE_FREEADDRINFO 1" >>confdefs.h 37599 37600 curl_cv_func_freeaddrinfo="yes" 37601 else 37602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37603printf "%s\n" "no" >&6; } 37604 curl_cv_func_freeaddrinfo="no" 37605 fi 37606 37607 37608curl_includes_sys_xattr="\ 37609/* includes start */ 37610#ifdef HAVE_SYS_TYPES_H 37611# include <sys/types.h> 37612#endif 37613#ifdef HAVE_SYS_XATTR_H 37614# include <sys/xattr.h> 37615#endif 37616/* includes end */" 37617 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_sys_xattr 37618" 37619if test "x$ac_cv_header_sys_types_h" = xyes 37620then : 37621 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 37622 37623fi 37624ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$curl_includes_sys_xattr 37625" 37626if test "x$ac_cv_header_sys_xattr_h" = xyes 37627then : 37628 printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h 37629 37630fi 37631 37632 37633 37634 # 37635 tst_links_fsetxattr="unknown" 37636 tst_proto_fsetxattr="unknown" 37637 tst_compi_fsetxattr="unknown" 37638 tst_allow_fsetxattr="unknown" 37639 tst_nargs_fsetxattr="unknown" 37640 # 37641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5 37642printf %s "checking if fsetxattr can be linked... " >&6; } 37643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37644/* end confdefs.h. */ 37645 37646 37647#define fsetxattr innocuous_fsetxattr 37648#ifdef __STDC__ 37649# include <limits.h> 37650#else 37651# include <assert.h> 37652#endif 37653#undef fsetxattr 37654#ifdef __cplusplus 37655extern "C" 37656#endif 37657char fsetxattr (); 37658#if defined __stub_fsetxattr || defined __stub___fsetxattr 37659#error force compilation error 37660#endif 37661 37662int main(void) 37663{ 37664return fsetxattr (); 37665 ; 37666 return 0; 37667} 37668 37669_ACEOF 37670if ac_fn_c_try_link "$LINENO" 37671then : 37672 37673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37674printf "%s\n" "yes" >&6; } 37675 tst_links_fsetxattr="yes" 37676 37677else $as_nop 37678 37679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37680printf "%s\n" "no" >&6; } 37681 tst_links_fsetxattr="no" 37682 37683fi 37684rm -f core conftest.err conftest.$ac_objext conftest.beam \ 37685 conftest$ac_exeext conftest.$ac_ext 37686 # 37687 if test "$tst_links_fsetxattr" = "yes"; then 37688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5 37689printf %s "checking if fsetxattr is prototyped... " >&6; } 37690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37691/* end confdefs.h. */ 37692 37693 $curl_includes_sys_xattr 37694 37695_ACEOF 37696if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 37697 $EGREP "fsetxattr" >/dev/null 2>&1 37698then : 37699 37700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37701printf "%s\n" "yes" >&6; } 37702 tst_proto_fsetxattr="yes" 37703 37704else $as_nop 37705 37706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37707printf "%s\n" "no" >&6; } 37708 tst_proto_fsetxattr="no" 37709 37710fi 37711rm -rf conftest* 37712 37713 fi 37714 # 37715 if test "$tst_proto_fsetxattr" = "yes"; then 37716 if test "$tst_nargs_fsetxattr" = "unknown"; then 37717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5 37718printf %s "checking if fsetxattr takes 5 args.... " >&6; } 37719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37720/* end confdefs.h. */ 37721 37722 37723 $curl_includes_sys_xattr 37724 37725int main(void) 37726{ 37727 37728 if(0 != fsetxattr(0, 0, 0, 0, 0)) 37729 return 1; 37730 37731 ; 37732 return 0; 37733} 37734 37735_ACEOF 37736if ac_fn_c_try_compile "$LINENO" 37737then : 37738 37739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37740printf "%s\n" "yes" >&6; } 37741 tst_compi_fsetxattr="yes" 37742 tst_nargs_fsetxattr="5" 37743 37744else $as_nop 37745 37746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37747printf "%s\n" "no" >&6; } 37748 tst_compi_fsetxattr="no" 37749 37750fi 37751rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 37752 fi 37753 if test "$tst_nargs_fsetxattr" = "unknown"; then 37754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5 37755printf %s "checking if fsetxattr takes 6 args.... " >&6; } 37756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37757/* end confdefs.h. */ 37758 37759 37760 $curl_includes_sys_xattr 37761 37762int main(void) 37763{ 37764 37765 if(0 != fsetxattr(0, 0, 0, 0, 0, 0)) 37766 return 1; 37767 37768 ; 37769 return 0; 37770} 37771 37772_ACEOF 37773if ac_fn_c_try_compile "$LINENO" 37774then : 37775 37776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37777printf "%s\n" "yes" >&6; } 37778 tst_compi_fsetxattr="yes" 37779 tst_nargs_fsetxattr="6" 37780 37781else $as_nop 37782 37783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37784printf "%s\n" "no" >&6; } 37785 tst_compi_fsetxattr="no" 37786 37787fi 37788rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 37789 fi 37790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5 37791printf %s "checking if fsetxattr is compilable... " >&6; } 37792 if test "$tst_compi_fsetxattr" = "yes"; then 37793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37794printf "%s\n" "yes" >&6; } 37795 else 37796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37797printf "%s\n" "no" >&6; } 37798 fi 37799 fi 37800 # 37801 if test "$tst_compi_fsetxattr" = "yes"; then 37802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5 37803printf %s "checking if fsetxattr usage allowed... " >&6; } 37804 if test "x$curl_disallow_fsetxattr" != "xyes"; then 37805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37806printf "%s\n" "yes" >&6; } 37807 tst_allow_fsetxattr="yes" 37808 else 37809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37810printf "%s\n" "no" >&6; } 37811 tst_allow_fsetxattr="no" 37812 fi 37813 fi 37814 # 37815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5 37816printf %s "checking if fsetxattr might be used... " >&6; } 37817 if test "$tst_links_fsetxattr" = "yes" && 37818 test "$tst_proto_fsetxattr" = "yes" && 37819 test "$tst_compi_fsetxattr" = "yes" && 37820 test "$tst_allow_fsetxattr" = "yes"; then 37821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37822printf "%s\n" "yes" >&6; } 37823 37824printf "%s\n" "#define HAVE_FSETXATTR 1" >>confdefs.h 37825 37826 # 37827 if test "$tst_nargs_fsetxattr" -eq "5"; then 37828 37829printf "%s\n" "#define HAVE_FSETXATTR_5 1" >>confdefs.h 37830 37831 elif test "$tst_nargs_fsetxattr" -eq "6"; then 37832 37833printf "%s\n" "#define HAVE_FSETXATTR_6 1" >>confdefs.h 37834 37835 fi 37836 # 37837 curl_cv_func_fsetxattr="yes" 37838 else 37839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37840printf "%s\n" "no" >&6; } 37841 curl_cv_func_fsetxattr="no" 37842 fi 37843 37844 37845 # 37846 tst_links_ftruncate="unknown" 37847 tst_proto_ftruncate="unknown" 37848 tst_compi_ftruncate="unknown" 37849 tst_allow_ftruncate="unknown" 37850 # 37851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5 37852printf %s "checking if ftruncate can be linked... " >&6; } 37853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37854/* end confdefs.h. */ 37855 37856 37857#define ftruncate innocuous_ftruncate 37858#ifdef __STDC__ 37859# include <limits.h> 37860#else 37861# include <assert.h> 37862#endif 37863#undef ftruncate 37864#ifdef __cplusplus 37865extern "C" 37866#endif 37867char ftruncate (); 37868#if defined __stub_ftruncate || defined __stub___ftruncate 37869#error force compilation error 37870#endif 37871 37872int main(void) 37873{ 37874return ftruncate (); 37875 ; 37876 return 0; 37877} 37878 37879_ACEOF 37880if ac_fn_c_try_link "$LINENO" 37881then : 37882 37883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37884printf "%s\n" "yes" >&6; } 37885 tst_links_ftruncate="yes" 37886 37887else $as_nop 37888 37889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37890printf "%s\n" "no" >&6; } 37891 tst_links_ftruncate="no" 37892 37893fi 37894rm -f core conftest.err conftest.$ac_objext conftest.beam \ 37895 conftest$ac_exeext conftest.$ac_ext 37896 # 37897 if test "$tst_links_ftruncate" = "yes"; then 37898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5 37899printf %s "checking if ftruncate is prototyped... " >&6; } 37900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37901/* end confdefs.h. */ 37902 37903 $curl_includes_unistd 37904 37905_ACEOF 37906if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 37907 $EGREP "ftruncate" >/dev/null 2>&1 37908then : 37909 37910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37911printf "%s\n" "yes" >&6; } 37912 tst_proto_ftruncate="yes" 37913 37914else $as_nop 37915 37916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37917printf "%s\n" "no" >&6; } 37918 tst_proto_ftruncate="no" 37919 37920fi 37921rm -rf conftest* 37922 37923 fi 37924 # 37925 if test "$tst_proto_ftruncate" = "yes"; then 37926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5 37927printf %s "checking if ftruncate is compilable... " >&6; } 37928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37929/* end confdefs.h. */ 37930 37931 37932 $curl_includes_unistd 37933 37934int main(void) 37935{ 37936 37937 if(0 != ftruncate(0, 0)) 37938 return 1; 37939 37940 ; 37941 return 0; 37942} 37943 37944_ACEOF 37945if ac_fn_c_try_compile "$LINENO" 37946then : 37947 37948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37949printf "%s\n" "yes" >&6; } 37950 tst_compi_ftruncate="yes" 37951 37952else $as_nop 37953 37954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37955printf "%s\n" "no" >&6; } 37956 tst_compi_ftruncate="no" 37957 37958fi 37959rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 37960 fi 37961 # 37962 if test "$tst_compi_ftruncate" = "yes"; then 37963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5 37964printf %s "checking if ftruncate usage allowed... " >&6; } 37965 if test "x$curl_disallow_ftruncate" != "xyes"; then 37966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37967printf "%s\n" "yes" >&6; } 37968 tst_allow_ftruncate="yes" 37969 else 37970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37971printf "%s\n" "no" >&6; } 37972 tst_allow_ftruncate="no" 37973 fi 37974 fi 37975 # 37976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5 37977printf %s "checking if ftruncate might be used... " >&6; } 37978 if test "$tst_links_ftruncate" = "yes" && 37979 test "$tst_proto_ftruncate" = "yes" && 37980 test "$tst_compi_ftruncate" = "yes" && 37981 test "$tst_allow_ftruncate" = "yes"; then 37982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37983printf "%s\n" "yes" >&6; } 37984 37985printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h 37986 37987 curl_cv_func_ftruncate="yes" 37988 else 37989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37990printf "%s\n" "no" >&6; } 37991 curl_cv_func_ftruncate="no" 37992 fi 37993 37994 37995curl_includes_stdlib="\ 37996/* includes start */ 37997#ifdef HAVE_SYS_TYPES_H 37998# include <sys/types.h> 37999#endif 38000#include <stdlib.h> 38001/* includes end */" 38002 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_stdlib 38003" 38004if test "x$ac_cv_header_sys_types_h" = xyes 38005then : 38006 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 38007 38008fi 38009 38010 38011 38012 # 38013 tst_links_getaddrinfo="unknown" 38014 tst_proto_getaddrinfo="unknown" 38015 tst_compi_getaddrinfo="unknown" 38016 tst_works_getaddrinfo="unknown" 38017 tst_allow_getaddrinfo="unknown" 38018 tst_tsafe_getaddrinfo="unknown" 38019 # 38020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5 38021printf %s "checking if getaddrinfo can be linked... " >&6; } 38022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38023/* end confdefs.h. */ 38024 38025 38026 $curl_includes_ws2tcpip 38027 $curl_includes_sys_socket 38028 $curl_includes_netdb 38029 38030int main(void) 38031{ 38032 38033 if(0 != getaddrinfo(0, 0, 0, 0)) 38034 return 1; 38035 38036 ; 38037 return 0; 38038} 38039 38040_ACEOF 38041if ac_fn_c_try_link "$LINENO" 38042then : 38043 38044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38045printf "%s\n" "yes" >&6; } 38046 tst_links_getaddrinfo="yes" 38047 38048else $as_nop 38049 38050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38051printf "%s\n" "no" >&6; } 38052 tst_links_getaddrinfo="no" 38053 38054fi 38055rm -f core conftest.err conftest.$ac_objext conftest.beam \ 38056 conftest$ac_exeext conftest.$ac_ext 38057 # 38058 if test "$tst_links_getaddrinfo" = "yes"; then 38059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5 38060printf %s "checking if getaddrinfo is prototyped... " >&6; } 38061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38062/* end confdefs.h. */ 38063 38064 $curl_includes_ws2tcpip 38065 $curl_includes_sys_socket 38066 $curl_includes_netdb 38067 38068_ACEOF 38069if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 38070 $EGREP "getaddrinfo" >/dev/null 2>&1 38071then : 38072 38073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38074printf "%s\n" "yes" >&6; } 38075 tst_proto_getaddrinfo="yes" 38076 38077else $as_nop 38078 38079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38080printf "%s\n" "no" >&6; } 38081 tst_proto_getaddrinfo="no" 38082 38083fi 38084rm -rf conftest* 38085 38086 fi 38087 # 38088 if test "$tst_proto_getaddrinfo" = "yes"; then 38089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5 38090printf %s "checking if getaddrinfo is compilable... " >&6; } 38091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38092/* end confdefs.h. */ 38093 38094 38095 $curl_includes_ws2tcpip 38096 $curl_includes_sys_socket 38097 $curl_includes_netdb 38098 38099int main(void) 38100{ 38101 38102 if(0 != getaddrinfo(0, 0, 0, 0)) 38103 return 1; 38104 38105 ; 38106 return 0; 38107} 38108 38109_ACEOF 38110if ac_fn_c_try_compile "$LINENO" 38111then : 38112 38113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38114printf "%s\n" "yes" >&6; } 38115 tst_compi_getaddrinfo="yes" 38116 38117else $as_nop 38118 38119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38120printf "%s\n" "no" >&6; } 38121 tst_compi_getaddrinfo="no" 38122 38123fi 38124rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 38125 fi 38126 # 38127 if test "x$cross_compiling" != "xyes" && 38128 test "$tst_compi_getaddrinfo" = "yes"; then 38129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5 38130printf %s "checking if getaddrinfo seems to work... " >&6; } 38131 38132 case $host in 38133 *-apple-*) 38134 if test "$cross_compiling" = yes 38135then : 38136 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 38137printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 38138as_fn_error $? "cannot run test program while cross compiling 38139See \`config.log' for more details" "$LINENO" 5; } 38140else $as_nop 38141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38142/* end confdefs.h. */ 38143 38144 38145 $curl_includes_ws2tcpip 38146 $curl_includes_stdlib 38147 $curl_includes_string 38148 $curl_includes_sys_socket 38149 $curl_includes_netdb 38150 38151int main(void) 38152{ 38153 38154 struct addrinfo hints; 38155 struct addrinfo *ai = 0; 38156 int error; 38157 38158 #ifdef _WIN32 38159 WSADATA wsa; 38160 if(WSAStartup(MAKEWORD(2, 2), &wsa)) 38161 exit(2); 38162 #endif 38163 38164 memset(&hints, 0, sizeof(hints)); 38165 hints.ai_flags = AI_NUMERICHOST; 38166 hints.ai_family = AF_UNSPEC; 38167 hints.ai_socktype = SOCK_STREAM; 38168 error = getaddrinfo("127.0.0.1", 0, &hints, &ai); 38169 if(error || !ai) 38170 exit(1); /* fail */ 38171 else 38172 exit(0); 38173 38174 ; 38175 return 0; 38176} 38177 38178_ACEOF 38179if ac_fn_c_try_run "$LINENO" 38180then : 38181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38182printf "%s\n" "yes" >&6; } 38183 tst_works_getaddrinfo="yes" 38184 38185else $as_nop 38186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38187printf "%s\n" "no" >&6; } 38188 tst_works_getaddrinfo="no" 38189 38190fi 38191rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 38192 conftest.$ac_objext conftest.beam conftest.$ac_ext 38193fi 38194 38195 ;; 38196 *) 38197 oldcc=$CC 38198 old=$LD_LIBRARY_PATH 38199 CC="sh ./run-compiler" 38200 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 38201 export LD_LIBRARY_PATH 38202 if test "$cross_compiling" = yes 38203then : 38204 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 38205printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 38206as_fn_error $? "cannot run test program while cross compiling 38207See \`config.log' for more details" "$LINENO" 5; } 38208else $as_nop 38209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38210/* end confdefs.h. */ 38211 38212 38213 $curl_includes_ws2tcpip 38214 $curl_includes_stdlib 38215 $curl_includes_string 38216 $curl_includes_sys_socket 38217 $curl_includes_netdb 38218 38219int main(void) 38220{ 38221 38222 struct addrinfo hints; 38223 struct addrinfo *ai = 0; 38224 int error; 38225 38226 #ifdef _WIN32 38227 WSADATA wsa; 38228 if(WSAStartup(MAKEWORD(2, 2), &wsa)) 38229 exit(2); 38230 #endif 38231 38232 memset(&hints, 0, sizeof(hints)); 38233 hints.ai_flags = AI_NUMERICHOST; 38234 hints.ai_family = AF_UNSPEC; 38235 hints.ai_socktype = SOCK_STREAM; 38236 error = getaddrinfo("127.0.0.1", 0, &hints, &ai); 38237 if(error || !ai) 38238 exit(1); /* fail */ 38239 else 38240 exit(0); 38241 38242 ; 38243 return 0; 38244} 38245 38246_ACEOF 38247if ac_fn_c_try_run "$LINENO" 38248then : 38249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38250printf "%s\n" "yes" >&6; } 38251 tst_works_getaddrinfo="yes" 38252 38253else $as_nop 38254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38255printf "%s\n" "no" >&6; } 38256 tst_works_getaddrinfo="no" 38257 38258fi 38259rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 38260 conftest.$ac_objext conftest.beam conftest.$ac_ext 38261fi 38262 38263 LD_LIBRARY_PATH=$old # restore 38264 CC=$oldcc 38265 ;; 38266 esac 38267 38268 fi 38269 # 38270 if test "$tst_compi_getaddrinfo" = "yes" && 38271 test "$tst_works_getaddrinfo" != "no"; then 38272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5 38273printf %s "checking if getaddrinfo usage allowed... " >&6; } 38274 if test "x$curl_disallow_getaddrinfo" != "xyes"; then 38275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38276printf "%s\n" "yes" >&6; } 38277 tst_allow_getaddrinfo="yes" 38278 else 38279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38280printf "%s\n" "no" >&6; } 38281 tst_allow_getaddrinfo="no" 38282 fi 38283 fi 38284 # 38285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5 38286printf %s "checking if getaddrinfo might be used... " >&6; } 38287 if test "$tst_links_getaddrinfo" = "yes" && 38288 test "$tst_proto_getaddrinfo" = "yes" && 38289 test "$tst_compi_getaddrinfo" = "yes" && 38290 test "$tst_allow_getaddrinfo" = "yes" && 38291 test "$tst_works_getaddrinfo" != "no"; then 38292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38293printf "%s\n" "yes" >&6; } 38294 38295printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h 38296 38297 curl_cv_func_getaddrinfo="yes" 38298 else 38299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38300printf "%s\n" "no" >&6; } 38301 curl_cv_func_getaddrinfo="no" 38302 curl_cv_func_getaddrinfo_threadsafe="no" 38303 fi 38304 # 38305 if test "$curl_cv_func_getaddrinfo" = "yes"; then 38306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5 38307printf %s "checking if getaddrinfo is threadsafe... " >&6; } 38308 case $host in 38309 *-apple-*) 38310 tst_tsafe_getaddrinfo="yes" 38311 esac 38312 case $host_os in 38313 aix[1234].* | aix5.[01].*) 38314 tst_tsafe_getaddrinfo="no" 38315 ;; 38316 aix*) 38317 tst_tsafe_getaddrinfo="yes" 38318 ;; 38319 darwin[12345].*) 38320 tst_tsafe_getaddrinfo="no" 38321 ;; 38322 freebsd[1234].* | freebsd5.[1234]*) 38323 tst_tsafe_getaddrinfo="no" 38324 ;; 38325 freebsd*) 38326 tst_tsafe_getaddrinfo="yes" 38327 ;; 38328 hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*) 38329 tst_tsafe_getaddrinfo="no" 38330 ;; 38331 hpux*) 38332 tst_tsafe_getaddrinfo="yes" 38333 ;; 38334 midnightbsd*) 38335 tst_tsafe_getaddrinfo="yes" 38336 ;; 38337 netbsd[123].*) 38338 tst_tsafe_getaddrinfo="no" 38339 ;; 38340 netbsd*) 38341 tst_tsafe_getaddrinfo="yes" 38342 ;; 38343 *bsd*) 38344 tst_tsafe_getaddrinfo="no" 38345 ;; 38346 solaris2*) 38347 tst_tsafe_getaddrinfo="yes" 38348 ;; 38349 esac 38350 if test "$tst_tsafe_getaddrinfo" = "unknown" && 38351 test "$curl_cv_native_windows" = "yes"; then 38352 tst_tsafe_getaddrinfo="yes" 38353 fi 38354 if test "$tst_tsafe_getaddrinfo" = "unknown"; then 38355 tst_tsafe_getaddrinfo="yes" 38356 fi 38357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5 38358printf "%s\n" "$tst_tsafe_getaddrinfo" >&6; } 38359 if test "$tst_tsafe_getaddrinfo" = "yes"; then 38360 38361printf "%s\n" "#define HAVE_GETADDRINFO_THREADSAFE 1" >>confdefs.h 38362 38363 curl_cv_func_getaddrinfo_threadsafe="yes" 38364 else 38365 curl_cv_func_getaddrinfo_threadsafe="no" 38366 fi 38367 fi 38368 38369 38370 # 38371 tst_links_gethostbyname="unknown" 38372 tst_proto_gethostbyname="unknown" 38373 tst_compi_gethostbyname="unknown" 38374 tst_allow_gethostbyname="unknown" 38375 # 38376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5 38377printf %s "checking if gethostbyname can be linked... " >&6; } 38378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38379/* end confdefs.h. */ 38380 38381 38382 $curl_includes_winsock2 38383 $curl_includes_bsdsocket 38384 $curl_includes_netdb 38385 38386int main(void) 38387{ 38388 38389 if(0 != gethostbyname(0)) 38390 return 1; 38391 38392 ; 38393 return 0; 38394} 38395 38396_ACEOF 38397if ac_fn_c_try_link "$LINENO" 38398then : 38399 38400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38401printf "%s\n" "yes" >&6; } 38402 tst_links_gethostbyname="yes" 38403 38404else $as_nop 38405 38406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38407printf "%s\n" "no" >&6; } 38408 tst_links_gethostbyname="no" 38409 38410fi 38411rm -f core conftest.err conftest.$ac_objext conftest.beam \ 38412 conftest$ac_exeext conftest.$ac_ext 38413 # 38414 if test "$tst_links_gethostbyname" = "yes"; then 38415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5 38416printf %s "checking if gethostbyname is prototyped... " >&6; } 38417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38418/* end confdefs.h. */ 38419 38420 $curl_includes_winsock2 38421 $curl_includes_bsdsocket 38422 $curl_includes_netdb 38423 38424_ACEOF 38425if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 38426 $EGREP "gethostbyname" >/dev/null 2>&1 38427then : 38428 38429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38430printf "%s\n" "yes" >&6; } 38431 tst_proto_gethostbyname="yes" 38432 38433else $as_nop 38434 38435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38436printf "%s\n" "no" >&6; } 38437 tst_proto_gethostbyname="no" 38438 38439fi 38440rm -rf conftest* 38441 38442 fi 38443 # 38444 if test "$tst_proto_gethostbyname" = "yes"; then 38445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5 38446printf %s "checking if gethostbyname is compilable... " >&6; } 38447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38448/* end confdefs.h. */ 38449 38450 38451 $curl_includes_winsock2 38452 $curl_includes_bsdsocket 38453 $curl_includes_netdb 38454 38455int main(void) 38456{ 38457 38458 if(0 != gethostbyname(0)) 38459 return 1; 38460 38461 ; 38462 return 0; 38463} 38464 38465_ACEOF 38466if ac_fn_c_try_compile "$LINENO" 38467then : 38468 38469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38470printf "%s\n" "yes" >&6; } 38471 tst_compi_gethostbyname="yes" 38472 38473else $as_nop 38474 38475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38476printf "%s\n" "no" >&6; } 38477 tst_compi_gethostbyname="no" 38478 38479fi 38480rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 38481 fi 38482 # 38483 if test "$tst_compi_gethostbyname" = "yes"; then 38484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5 38485printf %s "checking if gethostbyname usage allowed... " >&6; } 38486 if test "x$curl_disallow_gethostbyname" != "xyes"; then 38487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38488printf "%s\n" "yes" >&6; } 38489 tst_allow_gethostbyname="yes" 38490 else 38491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38492printf "%s\n" "no" >&6; } 38493 tst_allow_gethostbyname="no" 38494 fi 38495 fi 38496 # 38497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5 38498printf %s "checking if gethostbyname might be used... " >&6; } 38499 if test "$tst_links_gethostbyname" = "yes" && 38500 test "$tst_proto_gethostbyname" = "yes" && 38501 test "$tst_compi_gethostbyname" = "yes" && 38502 test "$tst_allow_gethostbyname" = "yes"; then 38503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38504printf "%s\n" "yes" >&6; } 38505 38506printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h 38507 38508 curl_cv_func_gethostbyname="yes" 38509 else 38510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38511printf "%s\n" "no" >&6; } 38512 curl_cv_func_gethostbyname="no" 38513 fi 38514 38515 38516 # 38517 tst_links_gethostbyname_r="unknown" 38518 tst_proto_gethostbyname_r="unknown" 38519 tst_compi_gethostbyname_r="unknown" 38520 tst_allow_gethostbyname_r="unknown" 38521 tst_nargs_gethostbyname_r="unknown" 38522 # 38523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5 38524printf %s "checking if gethostbyname_r can be linked... " >&6; } 38525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38526/* end confdefs.h. */ 38527 38528 38529#define gethostbyname_r innocuous_gethostbyname_r 38530#ifdef __STDC__ 38531# include <limits.h> 38532#else 38533# include <assert.h> 38534#endif 38535#undef gethostbyname_r 38536#ifdef __cplusplus 38537extern "C" 38538#endif 38539char gethostbyname_r (); 38540#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r 38541#error force compilation error 38542#endif 38543 38544int main(void) 38545{ 38546return gethostbyname_r (); 38547 ; 38548 return 0; 38549} 38550 38551_ACEOF 38552if ac_fn_c_try_link "$LINENO" 38553then : 38554 38555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38556printf "%s\n" "yes" >&6; } 38557 tst_links_gethostbyname_r="yes" 38558 38559else $as_nop 38560 38561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38562printf "%s\n" "no" >&6; } 38563 tst_links_gethostbyname_r="no" 38564 38565fi 38566rm -f core conftest.err conftest.$ac_objext conftest.beam \ 38567 conftest$ac_exeext conftest.$ac_ext 38568 # 38569 if test "$tst_links_gethostbyname_r" = "yes"; then 38570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5 38571printf %s "checking if gethostbyname_r is prototyped... " >&6; } 38572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38573/* end confdefs.h. */ 38574 38575 $curl_includes_netdb 38576 38577_ACEOF 38578if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 38579 $EGREP "gethostbyname_r" >/dev/null 2>&1 38580then : 38581 38582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38583printf "%s\n" "yes" >&6; } 38584 tst_proto_gethostbyname_r="yes" 38585 38586else $as_nop 38587 38588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38589printf "%s\n" "no" >&6; } 38590 tst_proto_gethostbyname_r="no" 38591 38592fi 38593rm -rf conftest* 38594 38595 fi 38596 # 38597 if test "$tst_proto_gethostbyname_r" = "yes"; then 38598 if test "$tst_nargs_gethostbyname_r" = "unknown"; then 38599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5 38600printf %s "checking if gethostbyname_r takes 3 args.... " >&6; } 38601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38602/* end confdefs.h. */ 38603 38604 38605 $curl_includes_netdb 38606 $curl_includes_bsdsocket 38607 38608int main(void) 38609{ 38610 38611 if(0 != gethostbyname_r(0, 0, 0)) 38612 return 1; 38613 38614 ; 38615 return 0; 38616} 38617 38618_ACEOF 38619if ac_fn_c_try_compile "$LINENO" 38620then : 38621 38622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38623printf "%s\n" "yes" >&6; } 38624 tst_compi_gethostbyname_r="yes" 38625 tst_nargs_gethostbyname_r="3" 38626 38627else $as_nop 38628 38629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38630printf "%s\n" "no" >&6; } 38631 tst_compi_gethostbyname_r="no" 38632 38633fi 38634rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 38635 fi 38636 if test "$tst_nargs_gethostbyname_r" = "unknown"; then 38637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5 38638printf %s "checking if gethostbyname_r takes 5 args.... " >&6; } 38639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38640/* end confdefs.h. */ 38641 38642 38643 $curl_includes_netdb 38644 $curl_includes_bsdsocket 38645 38646int main(void) 38647{ 38648 38649 if(0 != gethostbyname_r(0, 0, 0, 0, 0)) 38650 return 1; 38651 38652 ; 38653 return 0; 38654} 38655 38656_ACEOF 38657if ac_fn_c_try_compile "$LINENO" 38658then : 38659 38660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38661printf "%s\n" "yes" >&6; } 38662 tst_compi_gethostbyname_r="yes" 38663 tst_nargs_gethostbyname_r="5" 38664 38665else $as_nop 38666 38667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38668printf "%s\n" "no" >&6; } 38669 tst_compi_gethostbyname_r="no" 38670 38671fi 38672rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 38673 fi 38674 if test "$tst_nargs_gethostbyname_r" = "unknown"; then 38675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5 38676printf %s "checking if gethostbyname_r takes 6 args.... " >&6; } 38677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38678/* end confdefs.h. */ 38679 38680 38681 $curl_includes_netdb 38682 $curl_includes_bsdsocket 38683 38684int main(void) 38685{ 38686 38687 if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0)) 38688 return 1; 38689 38690 ; 38691 return 0; 38692} 38693 38694_ACEOF 38695if ac_fn_c_try_compile "$LINENO" 38696then : 38697 38698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38699printf "%s\n" "yes" >&6; } 38700 tst_compi_gethostbyname_r="yes" 38701 tst_nargs_gethostbyname_r="6" 38702 38703else $as_nop 38704 38705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38706printf "%s\n" "no" >&6; } 38707 tst_compi_gethostbyname_r="no" 38708 38709fi 38710rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 38711 fi 38712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5 38713printf %s "checking if gethostbyname_r is compilable... " >&6; } 38714 if test "$tst_compi_gethostbyname_r" = "yes"; then 38715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38716printf "%s\n" "yes" >&6; } 38717 else 38718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38719printf "%s\n" "no" >&6; } 38720 fi 38721 fi 38722 # 38723 if test "$tst_compi_gethostbyname_r" = "yes"; then 38724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5 38725printf %s "checking if gethostbyname_r usage allowed... " >&6; } 38726 if test "x$curl_disallow_gethostbyname_r" != "xyes"; then 38727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38728printf "%s\n" "yes" >&6; } 38729 tst_allow_gethostbyname_r="yes" 38730 else 38731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38732printf "%s\n" "no" >&6; } 38733 tst_allow_gethostbyname_r="no" 38734 fi 38735 fi 38736 # 38737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5 38738printf %s "checking if gethostbyname_r might be used... " >&6; } 38739 if test "$tst_links_gethostbyname_r" = "yes" && 38740 test "$tst_proto_gethostbyname_r" = "yes" && 38741 test "$tst_compi_gethostbyname_r" = "yes" && 38742 test "$tst_allow_gethostbyname_r" = "yes"; then 38743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38744printf "%s\n" "yes" >&6; } 38745 38746printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 38747 38748 # 38749 if test "$tst_nargs_gethostbyname_r" -eq "3"; then 38750 38751printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h 38752 38753 elif test "$tst_nargs_gethostbyname_r" -eq "5"; then 38754 38755printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h 38756 38757 elif test "$tst_nargs_gethostbyname_r" -eq "6"; then 38758 38759printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h 38760 38761 fi 38762 # 38763 curl_cv_func_gethostbyname_r="yes" 38764 else 38765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38766printf "%s\n" "no" >&6; } 38767 curl_cv_func_gethostbyname_r="no" 38768 fi 38769 38770 38771curl_preprocess_callconv="\ 38772/* preprocess start */ 38773#ifdef _WIN32 38774# define FUNCALLCONV __stdcall 38775#else 38776# define FUNCALLCONV 38777#endif 38778/* preprocess end */" 38779 38780 38781 # 38782 tst_links_gethostname="unknown" 38783 tst_proto_gethostname="unknown" 38784 tst_compi_gethostname="unknown" 38785 tst_allow_gethostname="unknown" 38786 # 38787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5 38788printf %s "checking if gethostname can be linked... " >&6; } 38789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38790/* end confdefs.h. */ 38791 38792 38793 $curl_includes_winsock2 38794 $curl_includes_unistd 38795 $curl_includes_bsdsocket 38796 38797int main(void) 38798{ 38799 38800 if(0 != gethostname(0, 0)) 38801 return 1; 38802 38803 ; 38804 return 0; 38805} 38806 38807_ACEOF 38808if ac_fn_c_try_link "$LINENO" 38809then : 38810 38811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38812printf "%s\n" "yes" >&6; } 38813 tst_links_gethostname="yes" 38814 38815else $as_nop 38816 38817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38818printf "%s\n" "no" >&6; } 38819 tst_links_gethostname="no" 38820 38821fi 38822rm -f core conftest.err conftest.$ac_objext conftest.beam \ 38823 conftest$ac_exeext conftest.$ac_ext 38824 # 38825 if test "$tst_links_gethostname" = "yes"; then 38826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5 38827printf %s "checking if gethostname is prototyped... " >&6; } 38828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38829/* end confdefs.h. */ 38830 38831 $curl_includes_winsock2 38832 $curl_includes_unistd 38833 $curl_includes_bsdsocket 38834 38835_ACEOF 38836if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 38837 $EGREP "gethostname" >/dev/null 2>&1 38838then : 38839 38840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38841printf "%s\n" "yes" >&6; } 38842 tst_proto_gethostname="yes" 38843 38844else $as_nop 38845 38846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38847printf "%s\n" "no" >&6; } 38848 tst_proto_gethostname="no" 38849 38850fi 38851rm -rf conftest* 38852 38853 fi 38854 # 38855 if test "$tst_proto_gethostname" = "yes"; then 38856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5 38857printf %s "checking if gethostname is compilable... " >&6; } 38858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38859/* end confdefs.h. */ 38860 38861 38862 $curl_includes_winsock2 38863 $curl_includes_unistd 38864 $curl_includes_bsdsocket 38865 38866int main(void) 38867{ 38868 38869 if(0 != gethostname(0, 0)) 38870 return 1; 38871 38872 ; 38873 return 0; 38874} 38875 38876_ACEOF 38877if ac_fn_c_try_compile "$LINENO" 38878then : 38879 38880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38881printf "%s\n" "yes" >&6; } 38882 tst_compi_gethostname="yes" 38883 38884else $as_nop 38885 38886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38887printf "%s\n" "no" >&6; } 38888 tst_compi_gethostname="no" 38889 38890fi 38891rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 38892 fi 38893 # 38894 if test "$tst_compi_gethostname" = "yes"; then 38895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5 38896printf %s "checking for gethostname arg 2 data type... " >&6; } 38897 tst_gethostname_type_arg2="unknown" 38898 for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do 38899 for tst_arg2 in 'int' 'unsigned int' 'size_t'; do 38900 if test "$tst_gethostname_type_arg2" = "unknown"; then 38901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38902/* end confdefs.h. */ 38903 38904 38905 $curl_includes_winsock2 38906 $curl_includes_unistd 38907 $curl_includes_bsdsocket 38908 $curl_preprocess_callconv 38909 extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2); 38910 38911int main(void) 38912{ 38913 38914 if(0 != gethostname(0, 0)) 38915 return 1; 38916 38917 ; 38918 return 0; 38919} 38920 38921_ACEOF 38922if ac_fn_c_try_compile "$LINENO" 38923then : 38924 38925 tst_gethostname_type_arg2="$tst_arg2" 38926 38927fi 38928rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 38929 fi 38930 done 38931 done 38932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5 38933printf "%s\n" "$tst_gethostname_type_arg2" >&6; } 38934 if test "$tst_gethostname_type_arg2" != "unknown"; then 38935 38936printf "%s\n" "#define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2" >>confdefs.h 38937 38938 fi 38939 fi 38940 # 38941 if test "$tst_compi_gethostname" = "yes"; then 38942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5 38943printf %s "checking if gethostname usage allowed... " >&6; } 38944 if test "x$curl_disallow_gethostname" != "xyes"; then 38945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38946printf "%s\n" "yes" >&6; } 38947 tst_allow_gethostname="yes" 38948 else 38949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38950printf "%s\n" "no" >&6; } 38951 tst_allow_gethostname="no" 38952 fi 38953 fi 38954 # 38955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5 38956printf %s "checking if gethostname might be used... " >&6; } 38957 if test "$tst_links_gethostname" = "yes" && 38958 test "$tst_proto_gethostname" = "yes" && 38959 test "$tst_compi_gethostname" = "yes" && 38960 test "$tst_allow_gethostname" = "yes"; then 38961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38962printf "%s\n" "yes" >&6; } 38963 38964printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h 38965 38966 curl_cv_func_gethostname="yes" 38967 else 38968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 38969printf "%s\n" "no" >&6; } 38970 curl_cv_func_gethostname="no" 38971 fi 38972 38973 38974 # 38975 tst_links_getpeername="unknown" 38976 tst_proto_getpeername="unknown" 38977 tst_compi_getpeername="unknown" 38978 tst_allow_getpeername="unknown" 38979 # 38980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername can be linked" >&5 38981printf %s "checking if getpeername can be linked... " >&6; } 38982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38983/* end confdefs.h. */ 38984 38985 38986 $curl_includes_winsock2 38987 $curl_includes_bsdsocket 38988 $curl_includes_sys_socket 38989 38990int main(void) 38991{ 38992 38993 if(0 != getpeername(0, (void *)0, (void *)0)) 38994 return 1; 38995 38996 ; 38997 return 0; 38998} 38999 39000_ACEOF 39001if ac_fn_c_try_link "$LINENO" 39002then : 39003 39004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39005printf "%s\n" "yes" >&6; } 39006 tst_links_getpeername="yes" 39007 39008else $as_nop 39009 39010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39011printf "%s\n" "no" >&6; } 39012 tst_links_getpeername="no" 39013 39014fi 39015rm -f core conftest.err conftest.$ac_objext conftest.beam \ 39016 conftest$ac_exeext conftest.$ac_ext 39017 # 39018 if test "$tst_links_getpeername" = "yes"; then 39019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername is prototyped" >&5 39020printf %s "checking if getpeername is prototyped... " >&6; } 39021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39022/* end confdefs.h. */ 39023 39024 $curl_includes_winsock2 39025 $curl_includes_bsdsocket 39026 $curl_includes_sys_socket 39027 39028_ACEOF 39029if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 39030 $EGREP "getpeername" >/dev/null 2>&1 39031then : 39032 39033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39034printf "%s\n" "yes" >&6; } 39035 tst_proto_getpeername="yes" 39036 39037else $as_nop 39038 39039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39040printf "%s\n" "no" >&6; } 39041 tst_proto_getpeername="no" 39042 39043fi 39044rm -rf conftest* 39045 39046 fi 39047 # 39048 if test "$tst_proto_getpeername" = "yes"; then 39049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername is compilable" >&5 39050printf %s "checking if getpeername is compilable... " >&6; } 39051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39052/* end confdefs.h. */ 39053 39054 39055 $curl_includes_winsock2 39056 $curl_includes_bsdsocket 39057 $curl_includes_sys_socket 39058 39059int main(void) 39060{ 39061 39062 if(0 != getpeername(0, (void *)0, (void *)0)) 39063 return 1; 39064 39065 ; 39066 return 0; 39067} 39068 39069_ACEOF 39070if ac_fn_c_try_compile "$LINENO" 39071then : 39072 39073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39074printf "%s\n" "yes" >&6; } 39075 tst_compi_getpeername="yes" 39076 39077else $as_nop 39078 39079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39080printf "%s\n" "no" >&6; } 39081 tst_compi_getpeername="no" 39082 39083fi 39084rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 39085 fi 39086 # 39087 if test "$tst_compi_getpeername" = "yes"; then 39088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername usage allowed" >&5 39089printf %s "checking if getpeername usage allowed... " >&6; } 39090 if test "x$curl_disallow_getpeername" != "xyes"; then 39091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39092printf "%s\n" "yes" >&6; } 39093 tst_allow_getpeername="yes" 39094 else 39095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39096printf "%s\n" "no" >&6; } 39097 tst_allow_getpeername="no" 39098 fi 39099 fi 39100 # 39101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername might be used" >&5 39102printf %s "checking if getpeername might be used... " >&6; } 39103 if test "$tst_links_getpeername" = "yes" && 39104 test "$tst_proto_getpeername" = "yes" && 39105 test "$tst_compi_getpeername" = "yes" && 39106 test "$tst_allow_getpeername" = "yes"; then 39107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39108printf "%s\n" "yes" >&6; } 39109 39110printf "%s\n" "#define HAVE_GETPEERNAME 1" >>confdefs.h 39111 39112 curl_cv_func_getpeername="yes" 39113 else 39114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39115printf "%s\n" "no" >&6; } 39116 curl_cv_func_getpeername="no" 39117 fi 39118 39119 39120 # 39121 tst_links_getsockname="unknown" 39122 tst_proto_getsockname="unknown" 39123 tst_compi_getsockname="unknown" 39124 tst_allow_getsockname="unknown" 39125 # 39126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname can be linked" >&5 39127printf %s "checking if getsockname can be linked... " >&6; } 39128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39129/* end confdefs.h. */ 39130 39131 39132 $curl_includes_winsock2 39133 $curl_includes_bsdsocket 39134 $curl_includes_sys_socket 39135 39136int main(void) 39137{ 39138 39139 if(0 != getsockname(0, (void *)0, (void *)0)) 39140 return 1; 39141 39142 ; 39143 return 0; 39144} 39145 39146_ACEOF 39147if ac_fn_c_try_link "$LINENO" 39148then : 39149 39150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39151printf "%s\n" "yes" >&6; } 39152 tst_links_getsockname="yes" 39153 39154else $as_nop 39155 39156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39157printf "%s\n" "no" >&6; } 39158 tst_links_getsockname="no" 39159 39160fi 39161rm -f core conftest.err conftest.$ac_objext conftest.beam \ 39162 conftest$ac_exeext conftest.$ac_ext 39163 # 39164 if test "$tst_links_getsockname" = "yes"; then 39165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname is prototyped" >&5 39166printf %s "checking if getsockname is prototyped... " >&6; } 39167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39168/* end confdefs.h. */ 39169 39170 $curl_includes_winsock2 39171 $curl_includes_bsdsocket 39172 $curl_includes_sys_socket 39173 39174_ACEOF 39175if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 39176 $EGREP "getsockname" >/dev/null 2>&1 39177then : 39178 39179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39180printf "%s\n" "yes" >&6; } 39181 tst_proto_getsockname="yes" 39182 39183else $as_nop 39184 39185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39186printf "%s\n" "no" >&6; } 39187 tst_proto_getsockname="no" 39188 39189fi 39190rm -rf conftest* 39191 39192 fi 39193 # 39194 if test "$tst_proto_getsockname" = "yes"; then 39195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname is compilable" >&5 39196printf %s "checking if getsockname is compilable... " >&6; } 39197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39198/* end confdefs.h. */ 39199 39200 39201 $curl_includes_winsock2 39202 $curl_includes_bsdsocket 39203 $curl_includes_sys_socket 39204 39205int main(void) 39206{ 39207 39208 if(0 != getsockname(0, (void *)0, (void *)0)) 39209 return 1; 39210 39211 ; 39212 return 0; 39213} 39214 39215_ACEOF 39216if ac_fn_c_try_compile "$LINENO" 39217then : 39218 39219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39220printf "%s\n" "yes" >&6; } 39221 tst_compi_getsockname="yes" 39222 39223else $as_nop 39224 39225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39226printf "%s\n" "no" >&6; } 39227 tst_compi_getsockname="no" 39228 39229fi 39230rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 39231 fi 39232 # 39233 if test "$tst_compi_getsockname" = "yes"; then 39234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname usage allowed" >&5 39235printf %s "checking if getsockname usage allowed... " >&6; } 39236 if test "x$curl_disallow_getsockname" != "xyes"; then 39237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39238printf "%s\n" "yes" >&6; } 39239 tst_allow_getsockname="yes" 39240 else 39241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39242printf "%s\n" "no" >&6; } 39243 tst_allow_getsockname="no" 39244 fi 39245 fi 39246 # 39247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname might be used" >&5 39248printf %s "checking if getsockname might be used... " >&6; } 39249 if test "$tst_links_getsockname" = "yes" && 39250 test "$tst_proto_getsockname" = "yes" && 39251 test "$tst_compi_getsockname" = "yes" && 39252 test "$tst_allow_getsockname" = "yes"; then 39253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39254printf "%s\n" "yes" >&6; } 39255 39256printf "%s\n" "#define HAVE_GETSOCKNAME 1" >>confdefs.h 39257 39258 curl_cv_func_getsockname="yes" 39259 else 39260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39261printf "%s\n" "no" >&6; } 39262 curl_cv_func_getsockname="no" 39263 fi 39264 39265 39266curl_includes_ifaddrs="\ 39267/* includes start */ 39268#ifdef HAVE_SYS_TYPES_H 39269# include <sys/types.h> 39270#endif 39271#ifdef HAVE_SYS_SOCKET_H 39272# include <sys/socket.h> 39273#endif 39274#ifdef HAVE_NETINET_IN_H 39275# include <netinet/in.h> 39276#endif 39277#ifdef HAVE_IFADDRS_H 39278# include <ifaddrs.h> 39279#endif 39280/* includes end */" 39281 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_ifaddrs 39282" 39283if test "x$ac_cv_header_sys_types_h" = xyes 39284then : 39285 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 39286 39287fi 39288ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_ifaddrs 39289" 39290if test "x$ac_cv_header_sys_socket_h" = xyes 39291then : 39292 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 39293 39294fi 39295ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$curl_includes_ifaddrs 39296" 39297if test "x$ac_cv_header_netinet_in_h" = xyes 39298then : 39299 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h 39300 39301fi 39302ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$curl_includes_ifaddrs 39303" 39304if test "x$ac_cv_header_ifaddrs_h" = xyes 39305then : 39306 printf "%s\n" "#define HAVE_IFADDRS_H 1" >>confdefs.h 39307 39308fi 39309 39310 39311 39312 # 39313 tst_links_getifaddrs="unknown" 39314 tst_proto_getifaddrs="unknown" 39315 tst_compi_getifaddrs="unknown" 39316 tst_works_getifaddrs="unknown" 39317 tst_allow_getifaddrs="unknown" 39318 # 39319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5 39320printf %s "checking if getifaddrs can be linked... " >&6; } 39321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39322/* end confdefs.h. */ 39323 39324 39325#define getifaddrs innocuous_getifaddrs 39326#ifdef __STDC__ 39327# include <limits.h> 39328#else 39329# include <assert.h> 39330#endif 39331#undef getifaddrs 39332#ifdef __cplusplus 39333extern "C" 39334#endif 39335char getifaddrs (); 39336#if defined __stub_getifaddrs || defined __stub___getifaddrs 39337#error force compilation error 39338#endif 39339 39340int main(void) 39341{ 39342return getifaddrs (); 39343 ; 39344 return 0; 39345} 39346 39347_ACEOF 39348if ac_fn_c_try_link "$LINENO" 39349then : 39350 39351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39352printf "%s\n" "yes" >&6; } 39353 tst_links_getifaddrs="yes" 39354 39355else $as_nop 39356 39357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39358printf "%s\n" "no" >&6; } 39359 tst_links_getifaddrs="no" 39360 39361fi 39362rm -f core conftest.err conftest.$ac_objext conftest.beam \ 39363 conftest$ac_exeext conftest.$ac_ext 39364 # 39365 if test "$tst_links_getifaddrs" = "yes"; then 39366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5 39367printf %s "checking if getifaddrs is prototyped... " >&6; } 39368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39369/* end confdefs.h. */ 39370 39371 $curl_includes_ifaddrs 39372 39373_ACEOF 39374if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 39375 $EGREP "getifaddrs" >/dev/null 2>&1 39376then : 39377 39378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39379printf "%s\n" "yes" >&6; } 39380 tst_proto_getifaddrs="yes" 39381 39382else $as_nop 39383 39384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39385printf "%s\n" "no" >&6; } 39386 tst_proto_getifaddrs="no" 39387 39388fi 39389rm -rf conftest* 39390 39391 fi 39392 # 39393 if test "$tst_proto_getifaddrs" = "yes"; then 39394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5 39395printf %s "checking if getifaddrs is compilable... " >&6; } 39396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39397/* end confdefs.h. */ 39398 39399 39400 $curl_includes_ifaddrs 39401 39402int main(void) 39403{ 39404 39405 if(0 != getifaddrs(0)) 39406 return 1; 39407 39408 ; 39409 return 0; 39410} 39411 39412_ACEOF 39413if ac_fn_c_try_compile "$LINENO" 39414then : 39415 39416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39417printf "%s\n" "yes" >&6; } 39418 tst_compi_getifaddrs="yes" 39419 39420else $as_nop 39421 39422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39423printf "%s\n" "no" >&6; } 39424 tst_compi_getifaddrs="no" 39425 39426fi 39427rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 39428 fi 39429 # 39430 if test "x$cross_compiling" != "xyes" && 39431 test "$tst_compi_getifaddrs" = "yes"; then 39432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5 39433printf %s "checking if getifaddrs seems to work... " >&6; } 39434 39435 case $host in 39436 *-apple-*) 39437 if test "$cross_compiling" = yes 39438then : 39439 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 39440printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 39441as_fn_error $? "cannot run test program while cross compiling 39442See \`config.log' for more details" "$LINENO" 5; } 39443else $as_nop 39444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39445/* end confdefs.h. */ 39446 39447 39448 $curl_includes_stdlib 39449 $curl_includes_ifaddrs 39450 39451int main(void) 39452{ 39453 39454 struct ifaddrs *ifa = 0; 39455 int error; 39456 39457 error = getifaddrs(&ifa); 39458 if(error || !ifa) 39459 exit(1); /* fail */ 39460 else 39461 exit(0); 39462 39463 ; 39464 return 0; 39465} 39466 39467_ACEOF 39468if ac_fn_c_try_run "$LINENO" 39469then : 39470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39471printf "%s\n" "yes" >&6; } 39472 tst_works_getifaddrs="yes" 39473 39474else $as_nop 39475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39476printf "%s\n" "no" >&6; } 39477 tst_works_getifaddrs="no" 39478 39479fi 39480rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 39481 conftest.$ac_objext conftest.beam conftest.$ac_ext 39482fi 39483 39484 ;; 39485 *) 39486 oldcc=$CC 39487 old=$LD_LIBRARY_PATH 39488 CC="sh ./run-compiler" 39489 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 39490 export LD_LIBRARY_PATH 39491 if test "$cross_compiling" = yes 39492then : 39493 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 39494printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 39495as_fn_error $? "cannot run test program while cross compiling 39496See \`config.log' for more details" "$LINENO" 5; } 39497else $as_nop 39498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39499/* end confdefs.h. */ 39500 39501 39502 $curl_includes_stdlib 39503 $curl_includes_ifaddrs 39504 39505int main(void) 39506{ 39507 39508 struct ifaddrs *ifa = 0; 39509 int error; 39510 39511 error = getifaddrs(&ifa); 39512 if(error || !ifa) 39513 exit(1); /* fail */ 39514 else 39515 exit(0); 39516 39517 ; 39518 return 0; 39519} 39520 39521_ACEOF 39522if ac_fn_c_try_run "$LINENO" 39523then : 39524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39525printf "%s\n" "yes" >&6; } 39526 tst_works_getifaddrs="yes" 39527 39528else $as_nop 39529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39530printf "%s\n" "no" >&6; } 39531 tst_works_getifaddrs="no" 39532 39533fi 39534rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 39535 conftest.$ac_objext conftest.beam conftest.$ac_ext 39536fi 39537 39538 LD_LIBRARY_PATH=$old # restore 39539 CC=$oldcc 39540 ;; 39541 esac 39542 39543 fi 39544 # 39545 if test "$tst_compi_getifaddrs" = "yes" && 39546 test "$tst_works_getifaddrs" != "no"; then 39547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5 39548printf %s "checking if getifaddrs usage allowed... " >&6; } 39549 if test "x$curl_disallow_getifaddrs" != "xyes"; then 39550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39551printf "%s\n" "yes" >&6; } 39552 tst_allow_getifaddrs="yes" 39553 else 39554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39555printf "%s\n" "no" >&6; } 39556 tst_allow_getifaddrs="no" 39557 fi 39558 fi 39559 # 39560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5 39561printf %s "checking if getifaddrs might be used... " >&6; } 39562 if test "$tst_links_getifaddrs" = "yes" && 39563 test "$tst_proto_getifaddrs" = "yes" && 39564 test "$tst_compi_getifaddrs" = "yes" && 39565 test "$tst_allow_getifaddrs" = "yes" && 39566 test "$tst_works_getifaddrs" != "no"; then 39567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39568printf "%s\n" "yes" >&6; } 39569 39570printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h 39571 39572 curl_cv_func_getifaddrs="yes" 39573 else 39574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39575printf "%s\n" "no" >&6; } 39576 curl_cv_func_getifaddrs="no" 39577 fi 39578 39579 39580curl_includes_time="\ 39581/* includes start */ 39582#ifdef HAVE_SYS_TYPES_H 39583# include <sys/types.h> 39584#endif 39585#ifdef HAVE_SYS_TIME_H 39586# include <sys/time.h> 39587#endif 39588#include <time.h> 39589/* includes end */" 39590 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_time 39591" 39592if test "x$ac_cv_header_sys_types_h" = xyes 39593then : 39594 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 39595 39596fi 39597ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$curl_includes_time 39598" 39599if test "x$ac_cv_header_sys_time_h" = xyes 39600then : 39601 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h 39602 39603fi 39604 39605 39606 39607 # 39608 tst_links_gmtime_r="unknown" 39609 tst_proto_gmtime_r="unknown" 39610 tst_compi_gmtime_r="unknown" 39611 tst_works_gmtime_r="unknown" 39612 tst_allow_gmtime_r="unknown" 39613 # 39614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5 39615printf %s "checking if gmtime_r can be linked... " >&6; } 39616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39617/* end confdefs.h. */ 39618 39619 39620#define gmtime_r innocuous_gmtime_r 39621#ifdef __STDC__ 39622# include <limits.h> 39623#else 39624# include <assert.h> 39625#endif 39626#undef gmtime_r 39627#ifdef __cplusplus 39628extern "C" 39629#endif 39630char gmtime_r (); 39631#if defined __stub_gmtime_r || defined __stub___gmtime_r 39632#error force compilation error 39633#endif 39634 39635int main(void) 39636{ 39637return gmtime_r (); 39638 ; 39639 return 0; 39640} 39641 39642_ACEOF 39643if ac_fn_c_try_link "$LINENO" 39644then : 39645 39646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39647printf "%s\n" "yes" >&6; } 39648 tst_links_gmtime_r="yes" 39649 39650else $as_nop 39651 39652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39653printf "%s\n" "no" >&6; } 39654 tst_links_gmtime_r="no" 39655 39656fi 39657rm -f core conftest.err conftest.$ac_objext conftest.beam \ 39658 conftest$ac_exeext conftest.$ac_ext 39659 # 39660 if test "$tst_links_gmtime_r" = "yes"; then 39661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5 39662printf %s "checking if gmtime_r is prototyped... " >&6; } 39663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39664/* end confdefs.h. */ 39665 39666 $curl_includes_time 39667 39668_ACEOF 39669if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 39670 $EGREP "gmtime_r" >/dev/null 2>&1 39671then : 39672 39673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39674printf "%s\n" "yes" >&6; } 39675 tst_proto_gmtime_r="yes" 39676 39677else $as_nop 39678 39679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39680printf "%s\n" "no" >&6; } 39681 tst_proto_gmtime_r="no" 39682 39683fi 39684rm -rf conftest* 39685 39686 fi 39687 # 39688 if test "$tst_proto_gmtime_r" = "yes"; then 39689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5 39690printf %s "checking if gmtime_r is compilable... " >&6; } 39691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39692/* end confdefs.h. */ 39693 39694 39695 $curl_includes_time 39696 39697int main(void) 39698{ 39699 39700 if(0 != gmtime_r(0, 0)) 39701 return 1; 39702 39703 ; 39704 return 0; 39705} 39706 39707_ACEOF 39708if ac_fn_c_try_compile "$LINENO" 39709then : 39710 39711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39712printf "%s\n" "yes" >&6; } 39713 tst_compi_gmtime_r="yes" 39714 39715else $as_nop 39716 39717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39718printf "%s\n" "no" >&6; } 39719 tst_compi_gmtime_r="no" 39720 39721fi 39722rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 39723 fi 39724 # 39725 if test "x$cross_compiling" != "xyes" && 39726 test "$tst_compi_gmtime_r" = "yes"; then 39727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5 39728printf %s "checking if gmtime_r seems to work... " >&6; } 39729 39730 case $host in 39731 *-apple-*) 39732 if test "$cross_compiling" = yes 39733then : 39734 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 39735printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 39736as_fn_error $? "cannot run test program while cross compiling 39737See \`config.log' for more details" "$LINENO" 5; } 39738else $as_nop 39739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39740/* end confdefs.h. */ 39741 39742 39743 $curl_includes_stdlib 39744 $curl_includes_time 39745 39746int main(void) 39747{ 39748 39749 time_t local = 1170352587; 39750 struct tm *gmt = 0; 39751 struct tm result; 39752 gmt = gmtime_r(&local, &result); 39753 if(gmt) 39754 exit(0); 39755 else 39756 exit(1); 39757 39758 ; 39759 return 0; 39760} 39761 39762_ACEOF 39763if ac_fn_c_try_run "$LINENO" 39764then : 39765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39766printf "%s\n" "yes" >&6; } 39767 tst_works_gmtime_r="yes" 39768 39769else $as_nop 39770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39771printf "%s\n" "no" >&6; } 39772 tst_works_gmtime_r="no" 39773 39774fi 39775rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 39776 conftest.$ac_objext conftest.beam conftest.$ac_ext 39777fi 39778 39779 ;; 39780 *) 39781 oldcc=$CC 39782 old=$LD_LIBRARY_PATH 39783 CC="sh ./run-compiler" 39784 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 39785 export LD_LIBRARY_PATH 39786 if test "$cross_compiling" = yes 39787then : 39788 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 39789printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 39790as_fn_error $? "cannot run test program while cross compiling 39791See \`config.log' for more details" "$LINENO" 5; } 39792else $as_nop 39793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39794/* end confdefs.h. */ 39795 39796 39797 $curl_includes_stdlib 39798 $curl_includes_time 39799 39800int main(void) 39801{ 39802 39803 time_t local = 1170352587; 39804 struct tm *gmt = 0; 39805 struct tm result; 39806 gmt = gmtime_r(&local, &result); 39807 if(gmt) 39808 exit(0); 39809 else 39810 exit(1); 39811 39812 ; 39813 return 0; 39814} 39815 39816_ACEOF 39817if ac_fn_c_try_run "$LINENO" 39818then : 39819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39820printf "%s\n" "yes" >&6; } 39821 tst_works_gmtime_r="yes" 39822 39823else $as_nop 39824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39825printf "%s\n" "no" >&6; } 39826 tst_works_gmtime_r="no" 39827 39828fi 39829rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 39830 conftest.$ac_objext conftest.beam conftest.$ac_ext 39831fi 39832 39833 LD_LIBRARY_PATH=$old # restore 39834 CC=$oldcc 39835 ;; 39836 esac 39837 39838 fi 39839 # 39840 if test "$tst_compi_gmtime_r" = "yes" && 39841 test "$tst_works_gmtime_r" != "no"; then 39842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5 39843printf %s "checking if gmtime_r usage allowed... " >&6; } 39844 if test "x$curl_disallow_gmtime_r" != "xyes"; then 39845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39846printf "%s\n" "yes" >&6; } 39847 tst_allow_gmtime_r="yes" 39848 else 39849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39850printf "%s\n" "no" >&6; } 39851 tst_allow_gmtime_r="no" 39852 fi 39853 fi 39854 # 39855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5 39856printf %s "checking if gmtime_r might be used... " >&6; } 39857 if test "$tst_links_gmtime_r" = "yes" && 39858 test "$tst_proto_gmtime_r" = "yes" && 39859 test "$tst_compi_gmtime_r" = "yes" && 39860 test "$tst_allow_gmtime_r" = "yes" && 39861 test "$tst_works_gmtime_r" != "no"; then 39862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39863printf "%s\n" "yes" >&6; } 39864 39865printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h 39866 39867 curl_cv_func_gmtime_r="yes" 39868 else 39869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39870printf "%s\n" "no" >&6; } 39871 curl_cv_func_gmtime_r="no" 39872 fi 39873 39874 39875curl_includes_arpa_inet="\ 39876/* includes start */ 39877#ifdef HAVE_SYS_TYPES_H 39878# include <sys/types.h> 39879#endif 39880#ifdef HAVE_SYS_SOCKET_H 39881# include <sys/socket.h> 39882#endif 39883#ifdef HAVE_NETINET_IN_H 39884# include <netinet/in.h> 39885#endif 39886#ifdef HAVE_ARPA_INET_H 39887# include <arpa/inet.h> 39888#endif 39889#ifdef _WIN32 39890#include <winsock2.h> 39891#include <ws2tcpip.h> 39892#endif 39893/* includes end */" 39894 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_arpa_inet 39895" 39896if test "x$ac_cv_header_sys_types_h" = xyes 39897then : 39898 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 39899 39900fi 39901ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_arpa_inet 39902" 39903if test "x$ac_cv_header_sys_socket_h" = xyes 39904then : 39905 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 39906 39907fi 39908ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$curl_includes_arpa_inet 39909" 39910if test "x$ac_cv_header_netinet_in_h" = xyes 39911then : 39912 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h 39913 39914fi 39915ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$curl_includes_arpa_inet 39916" 39917if test "x$ac_cv_header_arpa_inet_h" = xyes 39918then : 39919 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h 39920 39921fi 39922 39923 39924 39925 # 39926 tst_links_inet_ntop="unknown" 39927 tst_proto_inet_ntop="unknown" 39928 tst_compi_inet_ntop="unknown" 39929 tst_works_inet_ntop="unknown" 39930 tst_allow_inet_ntop="unknown" 39931 # 39932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5 39933printf %s "checking if inet_ntop can be linked... " >&6; } 39934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39935/* end confdefs.h. */ 39936 39937 39938#define inet_ntop innocuous_inet_ntop 39939#ifdef __STDC__ 39940# include <limits.h> 39941#else 39942# include <assert.h> 39943#endif 39944#undef inet_ntop 39945#ifdef __cplusplus 39946extern "C" 39947#endif 39948char inet_ntop (); 39949#if defined __stub_inet_ntop || defined __stub___inet_ntop 39950#error force compilation error 39951#endif 39952 39953int main(void) 39954{ 39955return inet_ntop (); 39956 ; 39957 return 0; 39958} 39959 39960_ACEOF 39961if ac_fn_c_try_link "$LINENO" 39962then : 39963 39964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39965printf "%s\n" "yes" >&6; } 39966 tst_links_inet_ntop="yes" 39967 39968else $as_nop 39969 39970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39971printf "%s\n" "no" >&6; } 39972 tst_links_inet_ntop="no" 39973 39974fi 39975rm -f core conftest.err conftest.$ac_objext conftest.beam \ 39976 conftest$ac_exeext conftest.$ac_ext 39977 # 39978 if test "$tst_links_inet_ntop" = "yes"; then 39979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5 39980printf %s "checking if inet_ntop is prototyped... " >&6; } 39981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39982/* end confdefs.h. */ 39983 39984 $curl_includes_arpa_inet 39985 39986_ACEOF 39987if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 39988 $EGREP "inet_ntop" >/dev/null 2>&1 39989then : 39990 39991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39992printf "%s\n" "yes" >&6; } 39993 tst_proto_inet_ntop="yes" 39994 39995else $as_nop 39996 39997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 39998printf "%s\n" "no" >&6; } 39999 tst_proto_inet_ntop="no" 40000 40001fi 40002rm -rf conftest* 40003 40004 fi 40005 # 40006 if test "$tst_proto_inet_ntop" = "yes"; then 40007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5 40008printf %s "checking if inet_ntop is compilable... " >&6; } 40009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40010/* end confdefs.h. */ 40011 40012 40013 $curl_includes_arpa_inet 40014 40015int main(void) 40016{ 40017 40018 if(0 != inet_ntop(0, 0, 0, 0)) 40019 return 1; 40020 40021 ; 40022 return 0; 40023} 40024 40025_ACEOF 40026if ac_fn_c_try_compile "$LINENO" 40027then : 40028 40029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40030printf "%s\n" "yes" >&6; } 40031 tst_compi_inet_ntop="yes" 40032 40033else $as_nop 40034 40035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40036printf "%s\n" "no" >&6; } 40037 tst_compi_inet_ntop="no" 40038 40039fi 40040rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 40041 fi 40042 # 40043 if test "x$cross_compiling" != "xyes" && 40044 test "$tst_compi_inet_ntop" = "yes"; then 40045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5 40046printf %s "checking if inet_ntop seems to work... " >&6; } 40047 40048 case $host in 40049 *-apple-*) 40050 if test "$cross_compiling" = yes 40051then : 40052 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 40053printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 40054as_fn_error $? "cannot run test program while cross compiling 40055See \`config.log' for more details" "$LINENO" 5; } 40056else $as_nop 40057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40058/* end confdefs.h. */ 40059 40060 40061 $curl_includes_stdlib 40062 $curl_includes_arpa_inet 40063 $curl_includes_string 40064 40065int main(void) 40066{ 40067 40068 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")]; 40069 char ipv4res[sizeof "255.255.255.255"]; 40070 unsigned char ipv6a[26]; 40071 unsigned char ipv4a[5]; 40072 char *ipv6ptr = 0; 40073 char *ipv4ptr = 0; 40074 /* - */ 40075 ipv4res[0] = '\0'; 40076 ipv4a[0] = 0xc0; 40077 ipv4a[1] = 0xa8; 40078 ipv4a[2] = 0x64; 40079 ipv4a[3] = 0x01; 40080 ipv4a[4] = 0x01; 40081 /* - */ 40082 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res)); 40083 if(!ipv4ptr) 40084 exit(1); /* fail */ 40085 if(ipv4ptr != ipv4res) 40086 exit(1); /* fail */ 40087 if(!ipv4ptr[0]) 40088 exit(1); /* fail */ 40089 if(memcmp(ipv4res, "192.168.100.1", 13) != 0) 40090 exit(1); /* fail */ 40091 /* - */ 40092 ipv6res[0] = '\0'; 40093 memset(ipv6a, 0, sizeof(ipv6a)); 40094 ipv6a[0] = 0xfe; 40095 ipv6a[1] = 0x80; 40096 ipv6a[8] = 0x02; 40097 ipv6a[9] = 0x14; 40098 ipv6a[10] = 0x4f; 40099 ipv6a[11] = 0xff; 40100 ipv6a[12] = 0xfe; 40101 ipv6a[13] = 0x0b; 40102 ipv6a[14] = 0x76; 40103 ipv6a[15] = 0xc8; 40104 ipv6a[25] = 0x01; 40105 /* - */ 40106 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res)); 40107 if(!ipv6ptr) 40108 exit(1); /* fail */ 40109 if(ipv6ptr != ipv6res) 40110 exit(1); /* fail */ 40111 if(!ipv6ptr[0]) 40112 exit(1); /* fail */ 40113 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0) 40114 exit(1); /* fail */ 40115 /* - */ 40116 exit(0); 40117 40118 ; 40119 return 0; 40120} 40121 40122_ACEOF 40123if ac_fn_c_try_run "$LINENO" 40124then : 40125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40126printf "%s\n" "yes" >&6; } 40127 tst_works_inet_ntop="yes" 40128 40129else $as_nop 40130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40131printf "%s\n" "no" >&6; } 40132 tst_works_inet_ntop="no" 40133 40134fi 40135rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 40136 conftest.$ac_objext conftest.beam conftest.$ac_ext 40137fi 40138 40139 ;; 40140 *) 40141 oldcc=$CC 40142 old=$LD_LIBRARY_PATH 40143 CC="sh ./run-compiler" 40144 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 40145 export LD_LIBRARY_PATH 40146 if test "$cross_compiling" = yes 40147then : 40148 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 40149printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 40150as_fn_error $? "cannot run test program while cross compiling 40151See \`config.log' for more details" "$LINENO" 5; } 40152else $as_nop 40153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40154/* end confdefs.h. */ 40155 40156 40157 $curl_includes_stdlib 40158 $curl_includes_arpa_inet 40159 $curl_includes_string 40160 40161int main(void) 40162{ 40163 40164 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")]; 40165 char ipv4res[sizeof "255.255.255.255"]; 40166 unsigned char ipv6a[26]; 40167 unsigned char ipv4a[5]; 40168 char *ipv6ptr = 0; 40169 char *ipv4ptr = 0; 40170 /* - */ 40171 ipv4res[0] = '\0'; 40172 ipv4a[0] = 0xc0; 40173 ipv4a[1] = 0xa8; 40174 ipv4a[2] = 0x64; 40175 ipv4a[3] = 0x01; 40176 ipv4a[4] = 0x01; 40177 /* - */ 40178 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res)); 40179 if(!ipv4ptr) 40180 exit(1); /* fail */ 40181 if(ipv4ptr != ipv4res) 40182 exit(1); /* fail */ 40183 if(!ipv4ptr[0]) 40184 exit(1); /* fail */ 40185 if(memcmp(ipv4res, "192.168.100.1", 13) != 0) 40186 exit(1); /* fail */ 40187 /* - */ 40188 ipv6res[0] = '\0'; 40189 memset(ipv6a, 0, sizeof(ipv6a)); 40190 ipv6a[0] = 0xfe; 40191 ipv6a[1] = 0x80; 40192 ipv6a[8] = 0x02; 40193 ipv6a[9] = 0x14; 40194 ipv6a[10] = 0x4f; 40195 ipv6a[11] = 0xff; 40196 ipv6a[12] = 0xfe; 40197 ipv6a[13] = 0x0b; 40198 ipv6a[14] = 0x76; 40199 ipv6a[15] = 0xc8; 40200 ipv6a[25] = 0x01; 40201 /* - */ 40202 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res)); 40203 if(!ipv6ptr) 40204 exit(1); /* fail */ 40205 if(ipv6ptr != ipv6res) 40206 exit(1); /* fail */ 40207 if(!ipv6ptr[0]) 40208 exit(1); /* fail */ 40209 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0) 40210 exit(1); /* fail */ 40211 /* - */ 40212 exit(0); 40213 40214 ; 40215 return 0; 40216} 40217 40218_ACEOF 40219if ac_fn_c_try_run "$LINENO" 40220then : 40221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40222printf "%s\n" "yes" >&6; } 40223 tst_works_inet_ntop="yes" 40224 40225else $as_nop 40226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40227printf "%s\n" "no" >&6; } 40228 tst_works_inet_ntop="no" 40229 40230fi 40231rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 40232 conftest.$ac_objext conftest.beam conftest.$ac_ext 40233fi 40234 40235 LD_LIBRARY_PATH=$old # restore 40236 CC=$oldcc 40237 ;; 40238 esac 40239 40240 fi 40241 # 40242 if test "$tst_compi_inet_ntop" = "yes" && 40243 test "$tst_works_inet_ntop" != "no"; then 40244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5 40245printf %s "checking if inet_ntop usage allowed... " >&6; } 40246 if test "x$curl_disallow_inet_ntop" != "xyes"; then 40247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40248printf "%s\n" "yes" >&6; } 40249 tst_allow_inet_ntop="yes" 40250 else 40251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40252printf "%s\n" "no" >&6; } 40253 tst_allow_inet_ntop="no" 40254 fi 40255 fi 40256 # 40257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5 40258printf %s "checking if inet_ntop might be used... " >&6; } 40259 if test "$tst_links_inet_ntop" = "yes" && 40260 test "$tst_proto_inet_ntop" = "yes" && 40261 test "$tst_compi_inet_ntop" = "yes" && 40262 test "$tst_allow_inet_ntop" = "yes" && 40263 test "$tst_works_inet_ntop" != "no"; then 40264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40265printf "%s\n" "yes" >&6; } 40266 40267printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h 40268 40269 curl_cv_func_inet_ntop="yes" 40270 else 40271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40272printf "%s\n" "no" >&6; } 40273 curl_cv_func_inet_ntop="no" 40274 fi 40275 40276 40277 # 40278 tst_links_inet_pton="unknown" 40279 tst_proto_inet_pton="unknown" 40280 tst_compi_inet_pton="unknown" 40281 tst_works_inet_pton="unknown" 40282 tst_allow_inet_pton="unknown" 40283 # 40284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5 40285printf %s "checking if inet_pton can be linked... " >&6; } 40286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40287/* end confdefs.h. */ 40288 40289 40290#define inet_pton innocuous_inet_pton 40291#ifdef __STDC__ 40292# include <limits.h> 40293#else 40294# include <assert.h> 40295#endif 40296#undef inet_pton 40297#ifdef __cplusplus 40298extern "C" 40299#endif 40300char inet_pton (); 40301#if defined __stub_inet_pton || defined __stub___inet_pton 40302#error force compilation error 40303#endif 40304 40305int main(void) 40306{ 40307return inet_pton (); 40308 ; 40309 return 0; 40310} 40311 40312_ACEOF 40313if ac_fn_c_try_link "$LINENO" 40314then : 40315 40316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40317printf "%s\n" "yes" >&6; } 40318 tst_links_inet_pton="yes" 40319 40320else $as_nop 40321 40322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40323printf "%s\n" "no" >&6; } 40324 tst_links_inet_pton="no" 40325 40326fi 40327rm -f core conftest.err conftest.$ac_objext conftest.beam \ 40328 conftest$ac_exeext conftest.$ac_ext 40329 # 40330 if test "$tst_links_inet_pton" = "yes"; then 40331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5 40332printf %s "checking if inet_pton is prototyped... " >&6; } 40333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40334/* end confdefs.h. */ 40335 40336 $curl_includes_arpa_inet 40337 40338_ACEOF 40339if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 40340 $EGREP "inet_pton" >/dev/null 2>&1 40341then : 40342 40343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40344printf "%s\n" "yes" >&6; } 40345 tst_proto_inet_pton="yes" 40346 40347else $as_nop 40348 40349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40350printf "%s\n" "no" >&6; } 40351 tst_proto_inet_pton="no" 40352 40353fi 40354rm -rf conftest* 40355 40356 fi 40357 # 40358 if test "$tst_proto_inet_pton" = "yes"; then 40359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5 40360printf %s "checking if inet_pton is compilable... " >&6; } 40361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40362/* end confdefs.h. */ 40363 40364 40365 $curl_includes_arpa_inet 40366 40367int main(void) 40368{ 40369 40370 if(0 != inet_pton(0, 0, 0)) 40371 return 1; 40372 40373 ; 40374 return 0; 40375} 40376 40377_ACEOF 40378if ac_fn_c_try_compile "$LINENO" 40379then : 40380 40381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40382printf "%s\n" "yes" >&6; } 40383 tst_compi_inet_pton="yes" 40384 40385else $as_nop 40386 40387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40388printf "%s\n" "no" >&6; } 40389 tst_compi_inet_pton="no" 40390 40391fi 40392rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 40393 fi 40394 # 40395 if test "x$cross_compiling" != "xyes" && 40396 test "$tst_compi_inet_pton" = "yes"; then 40397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5 40398printf %s "checking if inet_pton seems to work... " >&6; } 40399 40400 case $host in 40401 *-apple-*) 40402 if test "$cross_compiling" = yes 40403then : 40404 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 40405printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 40406as_fn_error $? "cannot run test program while cross compiling 40407See \`config.log' for more details" "$LINENO" 5; } 40408else $as_nop 40409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40410/* end confdefs.h. */ 40411 40412 40413 $curl_includes_stdlib 40414 $curl_includes_arpa_inet 40415 $curl_includes_string 40416 40417int main(void) 40418{ 40419 40420 unsigned char ipv6a[16+1]; 40421 unsigned char ipv4a[4+1]; 40422 const char *ipv6src = "fe80::214:4fff:fe0b:76c8"; 40423 const char *ipv4src = "192.168.100.1"; 40424 /* - */ 40425 memset(ipv4a, 1, sizeof(ipv4a)); 40426 if(1 != inet_pton(AF_INET, ipv4src, ipv4a)) 40427 exit(1); /* fail */ 40428 /* - */ 40429 if( (ipv4a[0] != 0xc0) || 40430 (ipv4a[1] != 0xa8) || 40431 (ipv4a[2] != 0x64) || 40432 (ipv4a[3] != 0x01) || 40433 (ipv4a[4] != 0x01) ) 40434 exit(1); /* fail */ 40435 /* - */ 40436 memset(ipv6a, 1, sizeof(ipv6a)); 40437 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a)) 40438 exit(1); /* fail */ 40439 /* - */ 40440 if( (ipv6a[0] != 0xfe) || 40441 (ipv6a[1] != 0x80) || 40442 (ipv6a[8] != 0x02) || 40443 (ipv6a[9] != 0x14) || 40444 (ipv6a[10] != 0x4f) || 40445 (ipv6a[11] != 0xff) || 40446 (ipv6a[12] != 0xfe) || 40447 (ipv6a[13] != 0x0b) || 40448 (ipv6a[14] != 0x76) || 40449 (ipv6a[15] != 0xc8) || 40450 (ipv6a[16] != 0x01) ) 40451 exit(1); /* fail */ 40452 /* - */ 40453 if( (ipv6a[2] != 0x0) || 40454 (ipv6a[3] != 0x0) || 40455 (ipv6a[4] != 0x0) || 40456 (ipv6a[5] != 0x0) || 40457 (ipv6a[6] != 0x0) || 40458 (ipv6a[7] != 0x0) ) 40459 exit(1); /* fail */ 40460 /* - */ 40461 exit(0); 40462 40463 ; 40464 return 0; 40465} 40466 40467_ACEOF 40468if ac_fn_c_try_run "$LINENO" 40469then : 40470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40471printf "%s\n" "yes" >&6; } 40472 tst_works_inet_pton="yes" 40473 40474else $as_nop 40475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40476printf "%s\n" "no" >&6; } 40477 tst_works_inet_pton="no" 40478 40479fi 40480rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 40481 conftest.$ac_objext conftest.beam conftest.$ac_ext 40482fi 40483 40484 ;; 40485 *) 40486 oldcc=$CC 40487 old=$LD_LIBRARY_PATH 40488 CC="sh ./run-compiler" 40489 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 40490 export LD_LIBRARY_PATH 40491 if test "$cross_compiling" = yes 40492then : 40493 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 40494printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 40495as_fn_error $? "cannot run test program while cross compiling 40496See \`config.log' for more details" "$LINENO" 5; } 40497else $as_nop 40498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40499/* end confdefs.h. */ 40500 40501 40502 $curl_includes_stdlib 40503 $curl_includes_arpa_inet 40504 $curl_includes_string 40505 40506int main(void) 40507{ 40508 40509 unsigned char ipv6a[16+1]; 40510 unsigned char ipv4a[4+1]; 40511 const char *ipv6src = "fe80::214:4fff:fe0b:76c8"; 40512 const char *ipv4src = "192.168.100.1"; 40513 /* - */ 40514 memset(ipv4a, 1, sizeof(ipv4a)); 40515 if(1 != inet_pton(AF_INET, ipv4src, ipv4a)) 40516 exit(1); /* fail */ 40517 /* - */ 40518 if( (ipv4a[0] != 0xc0) || 40519 (ipv4a[1] != 0xa8) || 40520 (ipv4a[2] != 0x64) || 40521 (ipv4a[3] != 0x01) || 40522 (ipv4a[4] != 0x01) ) 40523 exit(1); /* fail */ 40524 /* - */ 40525 memset(ipv6a, 1, sizeof(ipv6a)); 40526 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a)) 40527 exit(1); /* fail */ 40528 /* - */ 40529 if( (ipv6a[0] != 0xfe) || 40530 (ipv6a[1] != 0x80) || 40531 (ipv6a[8] != 0x02) || 40532 (ipv6a[9] != 0x14) || 40533 (ipv6a[10] != 0x4f) || 40534 (ipv6a[11] != 0xff) || 40535 (ipv6a[12] != 0xfe) || 40536 (ipv6a[13] != 0x0b) || 40537 (ipv6a[14] != 0x76) || 40538 (ipv6a[15] != 0xc8) || 40539 (ipv6a[16] != 0x01) ) 40540 exit(1); /* fail */ 40541 /* - */ 40542 if( (ipv6a[2] != 0x0) || 40543 (ipv6a[3] != 0x0) || 40544 (ipv6a[4] != 0x0) || 40545 (ipv6a[5] != 0x0) || 40546 (ipv6a[6] != 0x0) || 40547 (ipv6a[7] != 0x0) ) 40548 exit(1); /* fail */ 40549 /* - */ 40550 exit(0); 40551 40552 ; 40553 return 0; 40554} 40555 40556_ACEOF 40557if ac_fn_c_try_run "$LINENO" 40558then : 40559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40560printf "%s\n" "yes" >&6; } 40561 tst_works_inet_pton="yes" 40562 40563else $as_nop 40564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40565printf "%s\n" "no" >&6; } 40566 tst_works_inet_pton="no" 40567 40568fi 40569rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 40570 conftest.$ac_objext conftest.beam conftest.$ac_ext 40571fi 40572 40573 LD_LIBRARY_PATH=$old # restore 40574 CC=$oldcc 40575 ;; 40576 esac 40577 40578 fi 40579 # 40580 if test "$tst_compi_inet_pton" = "yes" && 40581 test "$tst_works_inet_pton" != "no"; then 40582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5 40583printf %s "checking if inet_pton usage allowed... " >&6; } 40584 if test "x$curl_disallow_inet_pton" != "xyes"; then 40585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40586printf "%s\n" "yes" >&6; } 40587 tst_allow_inet_pton="yes" 40588 else 40589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40590printf "%s\n" "no" >&6; } 40591 tst_allow_inet_pton="no" 40592 fi 40593 fi 40594 # 40595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5 40596printf %s "checking if inet_pton might be used... " >&6; } 40597 if test "$tst_links_inet_pton" = "yes" && 40598 test "$tst_proto_inet_pton" = "yes" && 40599 test "$tst_compi_inet_pton" = "yes" && 40600 test "$tst_allow_inet_pton" = "yes" && 40601 test "$tst_works_inet_pton" != "no"; then 40602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40603printf "%s\n" "yes" >&6; } 40604 40605printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h 40606 40607 curl_cv_func_inet_pton="yes" 40608 else 40609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40610printf "%s\n" "no" >&6; } 40611 curl_cv_func_inet_pton="no" 40612 fi 40613 40614 40615curl_includes_stropts="\ 40616/* includes start */ 40617#ifdef HAVE_SYS_TYPES_H 40618# include <sys/types.h> 40619#endif 40620#ifdef HAVE_UNISTD_H 40621# include <unistd.h> 40622#endif 40623#ifdef HAVE_SYS_SOCKET_H 40624# include <sys/socket.h> 40625#endif 40626#ifdef HAVE_SYS_IOCTL_H 40627# include <sys/ioctl.h> 40628#endif 40629#ifdef HAVE_STROPTS_H 40630# include <stropts.h> 40631#endif 40632/* includes end */" 40633 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_stropts 40634" 40635if test "x$ac_cv_header_sys_types_h" = xyes 40636then : 40637 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 40638 40639fi 40640ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$curl_includes_stropts 40641" 40642if test "x$ac_cv_header_unistd_h" = xyes 40643then : 40644 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h 40645 40646fi 40647ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_stropts 40648" 40649if test "x$ac_cv_header_sys_socket_h" = xyes 40650then : 40651 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 40652 40653fi 40654ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$curl_includes_stropts 40655" 40656if test "x$ac_cv_header_sys_ioctl_h" = xyes 40657then : 40658 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h 40659 40660fi 40661ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$curl_includes_stropts 40662" 40663if test "x$ac_cv_header_stropts_h" = xyes 40664then : 40665 printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h 40666 40667fi 40668 40669 40670 40671 # 40672 tst_links_ioctl="unknown" 40673 tst_proto_ioctl="unknown" 40674 tst_compi_ioctl="unknown" 40675 tst_allow_ioctl="unknown" 40676 # 40677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5 40678printf %s "checking if ioctl can be linked... " >&6; } 40679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40680/* end confdefs.h. */ 40681 40682 40683#define ioctl innocuous_ioctl 40684#ifdef __STDC__ 40685# include <limits.h> 40686#else 40687# include <assert.h> 40688#endif 40689#undef ioctl 40690#ifdef __cplusplus 40691extern "C" 40692#endif 40693char ioctl (); 40694#if defined __stub_ioctl || defined __stub___ioctl 40695#error force compilation error 40696#endif 40697 40698int main(void) 40699{ 40700return ioctl (); 40701 ; 40702 return 0; 40703} 40704 40705_ACEOF 40706if ac_fn_c_try_link "$LINENO" 40707then : 40708 40709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40710printf "%s\n" "yes" >&6; } 40711 tst_links_ioctl="yes" 40712 40713else $as_nop 40714 40715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40716printf "%s\n" "no" >&6; } 40717 tst_links_ioctl="no" 40718 40719fi 40720rm -f core conftest.err conftest.$ac_objext conftest.beam \ 40721 conftest$ac_exeext conftest.$ac_ext 40722 # 40723 if test "$tst_links_ioctl" = "yes"; then 40724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5 40725printf %s "checking if ioctl is prototyped... " >&6; } 40726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40727/* end confdefs.h. */ 40728 40729 $curl_includes_stropts 40730 40731_ACEOF 40732if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 40733 $EGREP "ioctl" >/dev/null 2>&1 40734then : 40735 40736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40737printf "%s\n" "yes" >&6; } 40738 tst_proto_ioctl="yes" 40739 40740else $as_nop 40741 40742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40743printf "%s\n" "no" >&6; } 40744 tst_proto_ioctl="no" 40745 40746fi 40747rm -rf conftest* 40748 40749 fi 40750 # 40751 if test "$tst_proto_ioctl" = "yes"; then 40752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5 40753printf %s "checking if ioctl is compilable... " >&6; } 40754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40755/* end confdefs.h. */ 40756 40757 40758 $curl_includes_stropts 40759 40760int main(void) 40761{ 40762 40763 if(0 != ioctl(0, 0, 0)) 40764 return 1; 40765 40766 ; 40767 return 0; 40768} 40769 40770_ACEOF 40771if ac_fn_c_try_compile "$LINENO" 40772then : 40773 40774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40775printf "%s\n" "yes" >&6; } 40776 tst_compi_ioctl="yes" 40777 40778else $as_nop 40779 40780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40781printf "%s\n" "no" >&6; } 40782 tst_compi_ioctl="no" 40783 40784fi 40785rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 40786 fi 40787 # 40788 if test "$tst_compi_ioctl" = "yes"; then 40789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5 40790printf %s "checking if ioctl usage allowed... " >&6; } 40791 if test "x$curl_disallow_ioctl" != "xyes"; then 40792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40793printf "%s\n" "yes" >&6; } 40794 tst_allow_ioctl="yes" 40795 else 40796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40797printf "%s\n" "no" >&6; } 40798 tst_allow_ioctl="no" 40799 fi 40800 fi 40801 # 40802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5 40803printf %s "checking if ioctl might be used... " >&6; } 40804 if test "$tst_links_ioctl" = "yes" && 40805 test "$tst_proto_ioctl" = "yes" && 40806 test "$tst_compi_ioctl" = "yes" && 40807 test "$tst_allow_ioctl" = "yes"; then 40808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40809printf "%s\n" "yes" >&6; } 40810 40811printf "%s\n" "#define HAVE_IOCTL 1" >>confdefs.h 40812 40813 curl_cv_func_ioctl="yes" 40814 40815 # 40816 tst_compi_ioctl_fionbio="unknown" 40817 tst_allow_ioctl_fionbio="unknown" 40818 # 40819 if test "$curl_cv_func_ioctl" = "yes"; then 40820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5 40821printf %s "checking if ioctl FIONBIO is compilable... " >&6; } 40822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40823/* end confdefs.h. */ 40824 40825 40826 $curl_includes_stropts 40827 40828int main(void) 40829{ 40830 40831 int flags = 0; 40832 if(0 != ioctl(0, FIONBIO, &flags)) 40833 return 1; 40834 40835 ; 40836 return 0; 40837} 40838 40839_ACEOF 40840if ac_fn_c_try_compile "$LINENO" 40841then : 40842 40843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40844printf "%s\n" "yes" >&6; } 40845 tst_compi_ioctl_fionbio="yes" 40846 40847else $as_nop 40848 40849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40850printf "%s\n" "no" >&6; } 40851 tst_compi_ioctl_fionbio="no" 40852 40853fi 40854rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 40855 fi 40856 # 40857 if test "$tst_compi_ioctl_fionbio" = "yes"; then 40858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5 40859printf %s "checking if ioctl FIONBIO usage allowed... " >&6; } 40860 if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then 40861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40862printf "%s\n" "yes" >&6; } 40863 tst_allow_ioctl_fionbio="yes" 40864 else 40865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40866printf "%s\n" "no" >&6; } 40867 tst_allow_ioctl_fionbio="no" 40868 fi 40869 fi 40870 # 40871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5 40872printf %s "checking if ioctl FIONBIO might be used... " >&6; } 40873 if test "$tst_compi_ioctl_fionbio" = "yes" && 40874 test "$tst_allow_ioctl_fionbio" = "yes"; then 40875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40876printf "%s\n" "yes" >&6; } 40877 40878printf "%s\n" "#define HAVE_IOCTL_FIONBIO 1" >>confdefs.h 40879 40880 curl_cv_func_ioctl_fionbio="yes" 40881 else 40882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40883printf "%s\n" "no" >&6; } 40884 curl_cv_func_ioctl_fionbio="no" 40885 fi 40886 40887 40888 # 40889 tst_compi_ioctl_siocgifaddr="unknown" 40890 tst_allow_ioctl_siocgifaddr="unknown" 40891 # 40892 if test "$curl_cv_func_ioctl" = "yes"; then 40893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5 40894printf %s "checking if ioctl SIOCGIFADDR is compilable... " >&6; } 40895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40896/* end confdefs.h. */ 40897 40898 40899 $curl_includes_stropts 40900 #include <net/if.h> 40901 40902int main(void) 40903{ 40904 40905 struct ifreq ifr; 40906 if(0 != ioctl(0, SIOCGIFADDR, &ifr)) 40907 return 1; 40908 40909 ; 40910 return 0; 40911} 40912 40913_ACEOF 40914if ac_fn_c_try_compile "$LINENO" 40915then : 40916 40917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40918printf "%s\n" "yes" >&6; } 40919 tst_compi_ioctl_siocgifaddr="yes" 40920 40921else $as_nop 40922 40923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40924printf "%s\n" "no" >&6; } 40925 tst_compi_ioctl_siocgifaddr="no" 40926 40927fi 40928rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 40929 fi 40930 # 40931 if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then 40932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5 40933printf %s "checking if ioctl SIOCGIFADDR usage allowed... " >&6; } 40934 if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then 40935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40936printf "%s\n" "yes" >&6; } 40937 tst_allow_ioctl_siocgifaddr="yes" 40938 else 40939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40940printf "%s\n" "no" >&6; } 40941 tst_allow_ioctl_siocgifaddr="no" 40942 fi 40943 fi 40944 # 40945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5 40946printf %s "checking if ioctl SIOCGIFADDR might be used... " >&6; } 40947 if test "$tst_compi_ioctl_siocgifaddr" = "yes" && 40948 test "$tst_allow_ioctl_siocgifaddr" = "yes"; then 40949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40950printf "%s\n" "yes" >&6; } 40951 40952printf "%s\n" "#define HAVE_IOCTL_SIOCGIFADDR 1" >>confdefs.h 40953 40954 curl_cv_func_ioctl_siocgifaddr="yes" 40955 else 40956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40957printf "%s\n" "no" >&6; } 40958 curl_cv_func_ioctl_siocgifaddr="no" 40959 fi 40960 40961 else 40962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 40963printf "%s\n" "no" >&6; } 40964 curl_cv_func_ioctl="no" 40965 fi 40966 40967 40968 # 40969 tst_links_ioctlsocket="unknown" 40970 tst_proto_ioctlsocket="unknown" 40971 tst_compi_ioctlsocket="unknown" 40972 tst_allow_ioctlsocket="unknown" 40973 # 40974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5 40975printf %s "checking if ioctlsocket can be linked... " >&6; } 40976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40977/* end confdefs.h. */ 40978 40979 40980 $curl_includes_winsock2 40981 40982int main(void) 40983{ 40984 40985 if(0 != ioctlsocket(0, 0, 0)) 40986 return 1; 40987 40988 ; 40989 return 0; 40990} 40991 40992_ACEOF 40993if ac_fn_c_try_link "$LINENO" 40994then : 40995 40996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40997printf "%s\n" "yes" >&6; } 40998 tst_links_ioctlsocket="yes" 40999 41000else $as_nop 41001 41002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41003printf "%s\n" "no" >&6; } 41004 tst_links_ioctlsocket="no" 41005 41006fi 41007rm -f core conftest.err conftest.$ac_objext conftest.beam \ 41008 conftest$ac_exeext conftest.$ac_ext 41009 # 41010 if test "$tst_links_ioctlsocket" = "yes"; then 41011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5 41012printf %s "checking if ioctlsocket is prototyped... " >&6; } 41013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41014/* end confdefs.h. */ 41015 41016 $curl_includes_winsock2 41017 41018_ACEOF 41019if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 41020 $EGREP "ioctlsocket" >/dev/null 2>&1 41021then : 41022 41023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41024printf "%s\n" "yes" >&6; } 41025 tst_proto_ioctlsocket="yes" 41026 41027else $as_nop 41028 41029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41030printf "%s\n" "no" >&6; } 41031 tst_proto_ioctlsocket="no" 41032 41033fi 41034rm -rf conftest* 41035 41036 fi 41037 # 41038 if test "$tst_proto_ioctlsocket" = "yes"; then 41039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5 41040printf %s "checking if ioctlsocket is compilable... " >&6; } 41041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41042/* end confdefs.h. */ 41043 41044 41045 $curl_includes_winsock2 41046 41047int main(void) 41048{ 41049 41050 if(0 != ioctlsocket(0, 0, 0)) 41051 return 1; 41052 41053 ; 41054 return 0; 41055} 41056 41057_ACEOF 41058if ac_fn_c_try_compile "$LINENO" 41059then : 41060 41061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41062printf "%s\n" "yes" >&6; } 41063 tst_compi_ioctlsocket="yes" 41064 41065else $as_nop 41066 41067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41068printf "%s\n" "no" >&6; } 41069 tst_compi_ioctlsocket="no" 41070 41071fi 41072rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 41073 fi 41074 # 41075 if test "$tst_compi_ioctlsocket" = "yes"; then 41076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5 41077printf %s "checking if ioctlsocket usage allowed... " >&6; } 41078 if test "x$curl_disallow_ioctlsocket" != "xyes"; then 41079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41080printf "%s\n" "yes" >&6; } 41081 tst_allow_ioctlsocket="yes" 41082 else 41083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41084printf "%s\n" "no" >&6; } 41085 tst_allow_ioctlsocket="no" 41086 fi 41087 fi 41088 # 41089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5 41090printf %s "checking if ioctlsocket might be used... " >&6; } 41091 if test "$tst_links_ioctlsocket" = "yes" && 41092 test "$tst_proto_ioctlsocket" = "yes" && 41093 test "$tst_compi_ioctlsocket" = "yes" && 41094 test "$tst_allow_ioctlsocket" = "yes"; then 41095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41096printf "%s\n" "yes" >&6; } 41097 41098printf "%s\n" "#define HAVE_IOCTLSOCKET 1" >>confdefs.h 41099 41100 curl_cv_func_ioctlsocket="yes" 41101 41102 # 41103 tst_compi_ioctlsocket_fionbio="unknown" 41104 tst_allow_ioctlsocket_fionbio="unknown" 41105 # 41106 if test "$curl_cv_func_ioctlsocket" = "yes"; then 41107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5 41108printf %s "checking if ioctlsocket FIONBIO is compilable... " >&6; } 41109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41110/* end confdefs.h. */ 41111 41112 41113 $curl_includes_winsock2 41114 41115int main(void) 41116{ 41117 41118 unsigned long flags = 0; 41119 if(0 != ioctlsocket(0, FIONBIO, &flags)) 41120 return 1; 41121 41122 ; 41123 return 0; 41124} 41125 41126_ACEOF 41127if ac_fn_c_try_compile "$LINENO" 41128then : 41129 41130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41131printf "%s\n" "yes" >&6; } 41132 tst_compi_ioctlsocket_fionbio="yes" 41133 41134else $as_nop 41135 41136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41137printf "%s\n" "no" >&6; } 41138 tst_compi_ioctlsocket_fionbio="no" 41139 41140fi 41141rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 41142 fi 41143 # 41144 if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then 41145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5 41146printf %s "checking if ioctlsocket FIONBIO usage allowed... " >&6; } 41147 if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then 41148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41149printf "%s\n" "yes" >&6; } 41150 tst_allow_ioctlsocket_fionbio="yes" 41151 else 41152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41153printf "%s\n" "no" >&6; } 41154 tst_allow_ioctlsocket_fionbio="no" 41155 fi 41156 fi 41157 # 41158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5 41159printf %s "checking if ioctlsocket FIONBIO might be used... " >&6; } 41160 if test "$tst_compi_ioctlsocket_fionbio" = "yes" && 41161 test "$tst_allow_ioctlsocket_fionbio" = "yes"; then 41162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41163printf "%s\n" "yes" >&6; } 41164 41165printf "%s\n" "#define HAVE_IOCTLSOCKET_FIONBIO 1" >>confdefs.h 41166 41167 curl_cv_func_ioctlsocket_fionbio="yes" 41168 else 41169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41170printf "%s\n" "no" >&6; } 41171 curl_cv_func_ioctlsocket_fionbio="no" 41172 fi 41173 41174 else 41175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41176printf "%s\n" "no" >&6; } 41177 curl_cv_func_ioctlsocket="no" 41178 fi 41179 41180 41181 # 41182 tst_links_ioctlsocket_camel="unknown" 41183 tst_proto_ioctlsocket_camel="unknown" 41184 tst_compi_ioctlsocket_camel="unknown" 41185 tst_allow_ioctlsocket_camel="unknown" 41186 # 41187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5 41188printf %s "checking if IoctlSocket can be linked... " >&6; } 41189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41190/* end confdefs.h. */ 41191 41192 41193 $curl_includes_bsdsocket 41194 41195int main(void) 41196{ 41197 41198 IoctlSocket(0, 0, 0); 41199 41200 ; 41201 return 0; 41202} 41203 41204_ACEOF 41205if ac_fn_c_try_link "$LINENO" 41206then : 41207 41208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41209printf "%s\n" "yes" >&6; } 41210 tst_links_ioctlsocket_camel="yes" 41211 41212else $as_nop 41213 41214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41215printf "%s\n" "no" >&6; } 41216 tst_links_ioctlsocket_camel="no" 41217 41218fi 41219rm -f core conftest.err conftest.$ac_objext conftest.beam \ 41220 conftest$ac_exeext conftest.$ac_ext 41221 # 41222 if test "$tst_links_ioctlsocket_camel" = "yes"; then 41223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5 41224printf %s "checking if IoctlSocket is prototyped... " >&6; } 41225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41226/* end confdefs.h. */ 41227 41228 $curl_includes_bsdsocket 41229 41230_ACEOF 41231if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 41232 $EGREP "IoctlSocket" >/dev/null 2>&1 41233then : 41234 41235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41236printf "%s\n" "yes" >&6; } 41237 tst_proto_ioctlsocket_camel="yes" 41238 41239else $as_nop 41240 41241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41242printf "%s\n" "no" >&6; } 41243 tst_proto_ioctlsocket_camel="no" 41244 41245fi 41246rm -rf conftest* 41247 41248 fi 41249 # 41250 if test "$tst_proto_ioctlsocket_camel" = "yes"; then 41251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5 41252printf %s "checking if IoctlSocket is compilable... " >&6; } 41253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41254/* end confdefs.h. */ 41255 41256 41257 $curl_includes_bsdsocket 41258 41259int main(void) 41260{ 41261 41262 if(0 != IoctlSocket(0, 0, 0)) 41263 return 1; 41264 41265 ; 41266 return 0; 41267} 41268 41269_ACEOF 41270if ac_fn_c_try_compile "$LINENO" 41271then : 41272 41273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41274printf "%s\n" "yes" >&6; } 41275 tst_compi_ioctlsocket_camel="yes" 41276 41277else $as_nop 41278 41279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41280printf "%s\n" "no" >&6; } 41281 tst_compi_ioctlsocket_camel="no" 41282 41283fi 41284rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 41285 fi 41286 # 41287 if test "$tst_compi_ioctlsocket_camel" = "yes"; then 41288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5 41289printf %s "checking if IoctlSocket usage allowed... " >&6; } 41290 if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then 41291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41292printf "%s\n" "yes" >&6; } 41293 tst_allow_ioctlsocket_camel="yes" 41294 else 41295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41296printf "%s\n" "no" >&6; } 41297 tst_allow_ioctlsocket_camel="no" 41298 fi 41299 fi 41300 # 41301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5 41302printf %s "checking if IoctlSocket might be used... " >&6; } 41303 if test "$tst_links_ioctlsocket_camel" = "yes" && 41304 test "$tst_proto_ioctlsocket_camel" = "yes" && 41305 test "$tst_compi_ioctlsocket_camel" = "yes" && 41306 test "$tst_allow_ioctlsocket_camel" = "yes"; then 41307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41308printf "%s\n" "yes" >&6; } 41309 41310printf "%s\n" "#define HAVE_IOCTLSOCKET_CAMEL 1" >>confdefs.h 41311 41312 curl_cv_func_ioctlsocket_camel="yes" 41313 41314 # 41315 tst_compi_ioctlsocket_camel_fionbio="unknown" 41316 tst_allow_ioctlsocket_camel_fionbio="unknown" 41317 # 41318 if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then 41319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5 41320printf %s "checking if IoctlSocket FIONBIO is compilable... " >&6; } 41321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41322/* end confdefs.h. */ 41323 41324 41325 $curl_includes_bsdsocket 41326 41327int main(void) 41328{ 41329 41330 long flags = 0; 41331 if(0 != IoctlSocket(0, FIONBIO, &flags)) 41332 return 1; 41333 41334 ; 41335 return 0; 41336} 41337 41338_ACEOF 41339if ac_fn_c_try_compile "$LINENO" 41340then : 41341 41342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41343printf "%s\n" "yes" >&6; } 41344 tst_compi_ioctlsocket_camel_fionbio="yes" 41345 41346else $as_nop 41347 41348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41349printf "%s\n" "no" >&6; } 41350 tst_compi_ioctlsocket_camel_fionbio="no" 41351 41352fi 41353rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 41354 fi 41355 # 41356 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then 41357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5 41358printf %s "checking if IoctlSocket FIONBIO usage allowed... " >&6; } 41359 if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then 41360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41361printf "%s\n" "yes" >&6; } 41362 tst_allow_ioctlsocket_camel_fionbio="yes" 41363 else 41364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41365printf "%s\n" "no" >&6; } 41366 tst_allow_ioctlsocket_camel_fionbio="no" 41367 fi 41368 fi 41369 # 41370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5 41371printf %s "checking if IoctlSocket FIONBIO might be used... " >&6; } 41372 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" && 41373 test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then 41374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41375printf "%s\n" "yes" >&6; } 41376 41377printf "%s\n" "#define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1" >>confdefs.h 41378 41379 curl_cv_func_ioctlsocket_camel_fionbio="yes" 41380 else 41381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41382printf "%s\n" "no" >&6; } 41383 curl_cv_func_ioctlsocket_camel_fionbio="no" 41384 fi 41385 41386 else 41387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41388printf "%s\n" "no" >&6; } 41389 curl_cv_func_ioctlsocket_camel="no" 41390 fi 41391 41392 41393 # 41394 tst_links_memrchr="unknown" 41395 tst_macro_memrchr="unknown" 41396 tst_proto_memrchr="unknown" 41397 tst_compi_memrchr="unknown" 41398 tst_allow_memrchr="unknown" 41399 # 41400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5 41401printf %s "checking if memrchr can be linked... " >&6; } 41402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41403/* end confdefs.h. */ 41404 41405 41406#define memrchr innocuous_memrchr 41407#ifdef __STDC__ 41408# include <limits.h> 41409#else 41410# include <assert.h> 41411#endif 41412#undef memrchr 41413#ifdef __cplusplus 41414extern "C" 41415#endif 41416char memrchr (); 41417#if defined __stub_memrchr || defined __stub___memrchr 41418#error force compilation error 41419#endif 41420 41421int main(void) 41422{ 41423return memrchr (); 41424 ; 41425 return 0; 41426} 41427 41428_ACEOF 41429if ac_fn_c_try_link "$LINENO" 41430then : 41431 41432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41433printf "%s\n" "yes" >&6; } 41434 tst_links_memrchr="yes" 41435 41436else $as_nop 41437 41438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41439printf "%s\n" "no" >&6; } 41440 tst_links_memrchr="no" 41441 41442fi 41443rm -f core conftest.err conftest.$ac_objext conftest.beam \ 41444 conftest$ac_exeext conftest.$ac_ext 41445 # 41446 if test "$tst_links_memrchr" = "no"; then 41447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5 41448printf %s "checking if memrchr seems a macro... " >&6; } 41449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41450/* end confdefs.h. */ 41451 41452 41453 $curl_includes_string 41454 41455int main(void) 41456{ 41457 41458 if(0 != memrchr(0, 0, 0)) 41459 return 1; 41460 41461 ; 41462 return 0; 41463} 41464 41465_ACEOF 41466if ac_fn_c_try_link "$LINENO" 41467then : 41468 41469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41470printf "%s\n" "yes" >&6; } 41471 tst_macro_memrchr="yes" 41472 41473else $as_nop 41474 41475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41476printf "%s\n" "no" >&6; } 41477 tst_macro_memrchr="no" 41478 41479fi 41480rm -f core conftest.err conftest.$ac_objext conftest.beam \ 41481 conftest$ac_exeext conftest.$ac_ext 41482 fi 41483 # 41484 if test "$tst_links_memrchr" = "yes"; then 41485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5 41486printf %s "checking if memrchr is prototyped... " >&6; } 41487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41488/* end confdefs.h. */ 41489 41490 $curl_includes_string 41491 41492_ACEOF 41493if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 41494 $EGREP "memrchr" >/dev/null 2>&1 41495then : 41496 41497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41498printf "%s\n" "yes" >&6; } 41499 tst_proto_memrchr="yes" 41500 41501else $as_nop 41502 41503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41504printf "%s\n" "no" >&6; } 41505 tst_proto_memrchr="no" 41506 41507fi 41508rm -rf conftest* 41509 41510 fi 41511 # 41512 if test "$tst_proto_memrchr" = "yes" || 41513 test "$tst_macro_memrchr" = "yes"; then 41514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5 41515printf %s "checking if memrchr is compilable... " >&6; } 41516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41517/* end confdefs.h. */ 41518 41519 41520 $curl_includes_string 41521 41522int main(void) 41523{ 41524 41525 if(0 != memrchr(0, 0, 0)) 41526 return 1; 41527 41528 ; 41529 return 0; 41530} 41531 41532_ACEOF 41533if ac_fn_c_try_compile "$LINENO" 41534then : 41535 41536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41537printf "%s\n" "yes" >&6; } 41538 tst_compi_memrchr="yes" 41539 41540else $as_nop 41541 41542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41543printf "%s\n" "no" >&6; } 41544 tst_compi_memrchr="no" 41545 41546fi 41547rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 41548 fi 41549 # 41550 if test "$tst_compi_memrchr" = "yes"; then 41551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5 41552printf %s "checking if memrchr usage allowed... " >&6; } 41553 if test "x$curl_disallow_memrchr" != "xyes"; then 41554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41555printf "%s\n" "yes" >&6; } 41556 tst_allow_memrchr="yes" 41557 else 41558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41559printf "%s\n" "no" >&6; } 41560 tst_allow_memrchr="no" 41561 fi 41562 fi 41563 # 41564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5 41565printf %s "checking if memrchr might be used... " >&6; } 41566 if (test "$tst_proto_memrchr" = "yes" || 41567 test "$tst_macro_memrchr" = "yes") && 41568 test "$tst_compi_memrchr" = "yes" && 41569 test "$tst_allow_memrchr" = "yes"; then 41570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41571printf "%s\n" "yes" >&6; } 41572 41573printf "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h 41574 41575 curl_cv_func_memrchr="yes" 41576 else 41577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41578printf "%s\n" "no" >&6; } 41579 curl_cv_func_memrchr="no" 41580 fi 41581 41582 41583curl_includes_signal="\ 41584/* includes start */ 41585#ifdef HAVE_SYS_TYPES_H 41586# include <sys/types.h> 41587#endif 41588#include <signal.h> 41589/* includes end */" 41590 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_signal 41591" 41592if test "x$ac_cv_header_sys_types_h" = xyes 41593then : 41594 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 41595 41596fi 41597 41598 41599 41600 # 41601 tst_links_sigaction="unknown" 41602 tst_proto_sigaction="unknown" 41603 tst_compi_sigaction="unknown" 41604 tst_allow_sigaction="unknown" 41605 # 41606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5 41607printf %s "checking if sigaction can be linked... " >&6; } 41608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41609/* end confdefs.h. */ 41610 41611 41612#define sigaction innocuous_sigaction 41613#ifdef __STDC__ 41614# include <limits.h> 41615#else 41616# include <assert.h> 41617#endif 41618#undef sigaction 41619#ifdef __cplusplus 41620extern "C" 41621#endif 41622char sigaction (); 41623#if defined __stub_sigaction || defined __stub___sigaction 41624#error force compilation error 41625#endif 41626 41627int main(void) 41628{ 41629return sigaction (); 41630 ; 41631 return 0; 41632} 41633 41634_ACEOF 41635if ac_fn_c_try_link "$LINENO" 41636then : 41637 41638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41639printf "%s\n" "yes" >&6; } 41640 tst_links_sigaction="yes" 41641 41642else $as_nop 41643 41644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41645printf "%s\n" "no" >&6; } 41646 tst_links_sigaction="no" 41647 41648fi 41649rm -f core conftest.err conftest.$ac_objext conftest.beam \ 41650 conftest$ac_exeext conftest.$ac_ext 41651 # 41652 if test "$tst_links_sigaction" = "yes"; then 41653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5 41654printf %s "checking if sigaction is prototyped... " >&6; } 41655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41656/* end confdefs.h. */ 41657 41658 $curl_includes_signal 41659 41660_ACEOF 41661if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 41662 $EGREP "sigaction" >/dev/null 2>&1 41663then : 41664 41665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41666printf "%s\n" "yes" >&6; } 41667 tst_proto_sigaction="yes" 41668 41669else $as_nop 41670 41671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41672printf "%s\n" "no" >&6; } 41673 tst_proto_sigaction="no" 41674 41675fi 41676rm -rf conftest* 41677 41678 fi 41679 # 41680 if test "$tst_proto_sigaction" = "yes"; then 41681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5 41682printf %s "checking if sigaction is compilable... " >&6; } 41683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41684/* end confdefs.h. */ 41685 41686 41687 $curl_includes_signal 41688 41689int main(void) 41690{ 41691 41692 if(0 != sigaction(0, 0, 0)) 41693 return 1; 41694 41695 ; 41696 return 0; 41697} 41698 41699_ACEOF 41700if ac_fn_c_try_compile "$LINENO" 41701then : 41702 41703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41704printf "%s\n" "yes" >&6; } 41705 tst_compi_sigaction="yes" 41706 41707else $as_nop 41708 41709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41710printf "%s\n" "no" >&6; } 41711 tst_compi_sigaction="no" 41712 41713fi 41714rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 41715 fi 41716 # 41717 if test "$tst_compi_sigaction" = "yes"; then 41718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5 41719printf %s "checking if sigaction usage allowed... " >&6; } 41720 if test "x$curl_disallow_sigaction" != "xyes"; then 41721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41722printf "%s\n" "yes" >&6; } 41723 tst_allow_sigaction="yes" 41724 else 41725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41726printf "%s\n" "no" >&6; } 41727 tst_allow_sigaction="no" 41728 fi 41729 fi 41730 # 41731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5 41732printf %s "checking if sigaction might be used... " >&6; } 41733 if test "$tst_links_sigaction" = "yes" && 41734 test "$tst_proto_sigaction" = "yes" && 41735 test "$tst_compi_sigaction" = "yes" && 41736 test "$tst_allow_sigaction" = "yes"; then 41737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41738printf "%s\n" "yes" >&6; } 41739 41740printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h 41741 41742 curl_cv_func_sigaction="yes" 41743 else 41744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41745printf "%s\n" "no" >&6; } 41746 curl_cv_func_sigaction="no" 41747 fi 41748 41749 41750 # 41751 tst_links_siginterrupt="unknown" 41752 tst_proto_siginterrupt="unknown" 41753 tst_compi_siginterrupt="unknown" 41754 tst_allow_siginterrupt="unknown" 41755 # 41756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5 41757printf %s "checking if siginterrupt can be linked... " >&6; } 41758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41759/* end confdefs.h. */ 41760 41761 41762#define siginterrupt innocuous_siginterrupt 41763#ifdef __STDC__ 41764# include <limits.h> 41765#else 41766# include <assert.h> 41767#endif 41768#undef siginterrupt 41769#ifdef __cplusplus 41770extern "C" 41771#endif 41772char siginterrupt (); 41773#if defined __stub_siginterrupt || defined __stub___siginterrupt 41774#error force compilation error 41775#endif 41776 41777int main(void) 41778{ 41779return siginterrupt (); 41780 ; 41781 return 0; 41782} 41783 41784_ACEOF 41785if ac_fn_c_try_link "$LINENO" 41786then : 41787 41788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41789printf "%s\n" "yes" >&6; } 41790 tst_links_siginterrupt="yes" 41791 41792else $as_nop 41793 41794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41795printf "%s\n" "no" >&6; } 41796 tst_links_siginterrupt="no" 41797 41798fi 41799rm -f core conftest.err conftest.$ac_objext conftest.beam \ 41800 conftest$ac_exeext conftest.$ac_ext 41801 # 41802 if test "$tst_links_siginterrupt" = "yes"; then 41803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5 41804printf %s "checking if siginterrupt is prototyped... " >&6; } 41805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41806/* end confdefs.h. */ 41807 41808 $curl_includes_signal 41809 41810_ACEOF 41811if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 41812 $EGREP "siginterrupt" >/dev/null 2>&1 41813then : 41814 41815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41816printf "%s\n" "yes" >&6; } 41817 tst_proto_siginterrupt="yes" 41818 41819else $as_nop 41820 41821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41822printf "%s\n" "no" >&6; } 41823 tst_proto_siginterrupt="no" 41824 41825fi 41826rm -rf conftest* 41827 41828 fi 41829 # 41830 if test "$tst_proto_siginterrupt" = "yes"; then 41831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5 41832printf %s "checking if siginterrupt is compilable... " >&6; } 41833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41834/* end confdefs.h. */ 41835 41836 41837 $curl_includes_signal 41838 41839int main(void) 41840{ 41841 41842 if(0 != siginterrupt(0, 0)) 41843 return 1; 41844 41845 ; 41846 return 0; 41847} 41848 41849_ACEOF 41850if ac_fn_c_try_compile "$LINENO" 41851then : 41852 41853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41854printf "%s\n" "yes" >&6; } 41855 tst_compi_siginterrupt="yes" 41856 41857else $as_nop 41858 41859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41860printf "%s\n" "no" >&6; } 41861 tst_compi_siginterrupt="no" 41862 41863fi 41864rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 41865 fi 41866 # 41867 if test "$tst_compi_siginterrupt" = "yes"; then 41868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5 41869printf %s "checking if siginterrupt usage allowed... " >&6; } 41870 if test "x$curl_disallow_siginterrupt" != "xyes"; then 41871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41872printf "%s\n" "yes" >&6; } 41873 tst_allow_siginterrupt="yes" 41874 else 41875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41876printf "%s\n" "no" >&6; } 41877 tst_allow_siginterrupt="no" 41878 fi 41879 fi 41880 # 41881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5 41882printf %s "checking if siginterrupt might be used... " >&6; } 41883 if test "$tst_links_siginterrupt" = "yes" && 41884 test "$tst_proto_siginterrupt" = "yes" && 41885 test "$tst_compi_siginterrupt" = "yes" && 41886 test "$tst_allow_siginterrupt" = "yes"; then 41887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41888printf "%s\n" "yes" >&6; } 41889 41890printf "%s\n" "#define HAVE_SIGINTERRUPT 1" >>confdefs.h 41891 41892 curl_cv_func_siginterrupt="yes" 41893 else 41894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41895printf "%s\n" "no" >&6; } 41896 curl_cv_func_siginterrupt="no" 41897 fi 41898 41899 41900 # 41901 tst_links_signal="unknown" 41902 tst_proto_signal="unknown" 41903 tst_compi_signal="unknown" 41904 tst_allow_signal="unknown" 41905 # 41906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5 41907printf %s "checking if signal can be linked... " >&6; } 41908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41909/* end confdefs.h. */ 41910 41911 41912#define signal innocuous_signal 41913#ifdef __STDC__ 41914# include <limits.h> 41915#else 41916# include <assert.h> 41917#endif 41918#undef signal 41919#ifdef __cplusplus 41920extern "C" 41921#endif 41922char signal (); 41923#if defined __stub_signal || defined __stub___signal 41924#error force compilation error 41925#endif 41926 41927int main(void) 41928{ 41929return signal (); 41930 ; 41931 return 0; 41932} 41933 41934_ACEOF 41935if ac_fn_c_try_link "$LINENO" 41936then : 41937 41938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41939printf "%s\n" "yes" >&6; } 41940 tst_links_signal="yes" 41941 41942else $as_nop 41943 41944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41945printf "%s\n" "no" >&6; } 41946 tst_links_signal="no" 41947 41948fi 41949rm -f core conftest.err conftest.$ac_objext conftest.beam \ 41950 conftest$ac_exeext conftest.$ac_ext 41951 # 41952 if test "$tst_links_signal" = "yes"; then 41953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5 41954printf %s "checking if signal is prototyped... " >&6; } 41955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41956/* end confdefs.h. */ 41957 41958 $curl_includes_signal 41959 41960_ACEOF 41961if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 41962 $EGREP "signal" >/dev/null 2>&1 41963then : 41964 41965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41966printf "%s\n" "yes" >&6; } 41967 tst_proto_signal="yes" 41968 41969else $as_nop 41970 41971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41972printf "%s\n" "no" >&6; } 41973 tst_proto_signal="no" 41974 41975fi 41976rm -rf conftest* 41977 41978 fi 41979 # 41980 if test "$tst_proto_signal" = "yes"; then 41981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5 41982printf %s "checking if signal is compilable... " >&6; } 41983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41984/* end confdefs.h. */ 41985 41986 41987 $curl_includes_signal 41988 41989int main(void) 41990{ 41991 41992 if(0 != signal(0, 0)) 41993 return 1; 41994 41995 ; 41996 return 0; 41997} 41998 41999_ACEOF 42000if ac_fn_c_try_compile "$LINENO" 42001then : 42002 42003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42004printf "%s\n" "yes" >&6; } 42005 tst_compi_signal="yes" 42006 42007else $as_nop 42008 42009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42010printf "%s\n" "no" >&6; } 42011 tst_compi_signal="no" 42012 42013fi 42014rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 42015 fi 42016 # 42017 if test "$tst_compi_signal" = "yes"; then 42018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5 42019printf %s "checking if signal usage allowed... " >&6; } 42020 if test "x$curl_disallow_signal" != "xyes"; then 42021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42022printf "%s\n" "yes" >&6; } 42023 tst_allow_signal="yes" 42024 else 42025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42026printf "%s\n" "no" >&6; } 42027 tst_allow_signal="no" 42028 fi 42029 fi 42030 # 42031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5 42032printf %s "checking if signal might be used... " >&6; } 42033 if test "$tst_links_signal" = "yes" && 42034 test "$tst_proto_signal" = "yes" && 42035 test "$tst_compi_signal" = "yes" && 42036 test "$tst_allow_signal" = "yes"; then 42037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42038printf "%s\n" "yes" >&6; } 42039 42040printf "%s\n" "#define HAVE_SIGNAL 1" >>confdefs.h 42041 42042 curl_cv_func_signal="yes" 42043 else 42044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42045printf "%s\n" "no" >&6; } 42046 curl_cv_func_signal="no" 42047 fi 42048 42049 42050curl_includes_setjmp="\ 42051/* includes start */ 42052#ifdef HAVE_SYS_TYPES_H 42053# include <sys/types.h> 42054#endif 42055#include <setjmp.h> 42056/* includes end */" 42057 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_setjmp 42058" 42059if test "x$ac_cv_header_sys_types_h" = xyes 42060then : 42061 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 42062 42063fi 42064 42065 42066 42067 # 42068 tst_links_sigsetjmp="unknown" 42069 tst_macro_sigsetjmp="unknown" 42070 tst_proto_sigsetjmp="unknown" 42071 tst_compi_sigsetjmp="unknown" 42072 tst_allow_sigsetjmp="unknown" 42073 # 42074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5 42075printf %s "checking if sigsetjmp can be linked... " >&6; } 42076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42077/* end confdefs.h. */ 42078 42079 42080#define sigsetjmp innocuous_sigsetjmp 42081#ifdef __STDC__ 42082# include <limits.h> 42083#else 42084# include <assert.h> 42085#endif 42086#undef sigsetjmp 42087#ifdef __cplusplus 42088extern "C" 42089#endif 42090char sigsetjmp (); 42091#if defined __stub_sigsetjmp || defined __stub___sigsetjmp 42092#error force compilation error 42093#endif 42094 42095int main(void) 42096{ 42097return sigsetjmp (); 42098 ; 42099 return 0; 42100} 42101 42102_ACEOF 42103if ac_fn_c_try_link "$LINENO" 42104then : 42105 42106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42107printf "%s\n" "yes" >&6; } 42108 tst_links_sigsetjmp="yes" 42109 42110else $as_nop 42111 42112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42113printf "%s\n" "no" >&6; } 42114 tst_links_sigsetjmp="no" 42115 42116fi 42117rm -f core conftest.err conftest.$ac_objext conftest.beam \ 42118 conftest$ac_exeext conftest.$ac_ext 42119 # 42120 if test "$tst_links_sigsetjmp" = "no"; then 42121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5 42122printf %s "checking if sigsetjmp seems a macro... " >&6; } 42123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42124/* end confdefs.h. */ 42125 42126 42127 $curl_includes_setjmp 42128 42129int main(void) 42130{ 42131 42132 sigjmp_buf env; 42133 if(0 != sigsetjmp(env, 0)) 42134 return 1; 42135 42136 ; 42137 return 0; 42138} 42139 42140_ACEOF 42141if ac_fn_c_try_link "$LINENO" 42142then : 42143 42144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42145printf "%s\n" "yes" >&6; } 42146 tst_macro_sigsetjmp="yes" 42147 42148else $as_nop 42149 42150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42151printf "%s\n" "no" >&6; } 42152 tst_macro_sigsetjmp="no" 42153 42154fi 42155rm -f core conftest.err conftest.$ac_objext conftest.beam \ 42156 conftest$ac_exeext conftest.$ac_ext 42157 fi 42158 # 42159 if test "$tst_links_sigsetjmp" = "yes"; then 42160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5 42161printf %s "checking if sigsetjmp is prototyped... " >&6; } 42162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42163/* end confdefs.h. */ 42164 42165 $curl_includes_setjmp 42166 42167_ACEOF 42168if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 42169 $EGREP "sigsetjmp" >/dev/null 2>&1 42170then : 42171 42172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42173printf "%s\n" "yes" >&6; } 42174 tst_proto_sigsetjmp="yes" 42175 42176else $as_nop 42177 42178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42179printf "%s\n" "no" >&6; } 42180 tst_proto_sigsetjmp="no" 42181 42182fi 42183rm -rf conftest* 42184 42185 fi 42186 # 42187 if test "$tst_proto_sigsetjmp" = "yes" || 42188 test "$tst_macro_sigsetjmp" = "yes"; then 42189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5 42190printf %s "checking if sigsetjmp is compilable... " >&6; } 42191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42192/* end confdefs.h. */ 42193 42194 42195 $curl_includes_setjmp 42196 42197int main(void) 42198{ 42199 42200 sigjmp_buf env; 42201 if(0 != sigsetjmp(env, 0)) 42202 return 1; 42203 42204 ; 42205 return 0; 42206} 42207 42208_ACEOF 42209if ac_fn_c_try_compile "$LINENO" 42210then : 42211 42212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42213printf "%s\n" "yes" >&6; } 42214 tst_compi_sigsetjmp="yes" 42215 42216else $as_nop 42217 42218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42219printf "%s\n" "no" >&6; } 42220 tst_compi_sigsetjmp="no" 42221 42222fi 42223rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 42224 fi 42225 # 42226 if test "$tst_compi_sigsetjmp" = "yes"; then 42227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5 42228printf %s "checking if sigsetjmp usage allowed... " >&6; } 42229 if test "x$curl_disallow_sigsetjmp" != "xyes"; then 42230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42231printf "%s\n" "yes" >&6; } 42232 tst_allow_sigsetjmp="yes" 42233 else 42234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42235printf "%s\n" "no" >&6; } 42236 tst_allow_sigsetjmp="no" 42237 fi 42238 fi 42239 # 42240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5 42241printf %s "checking if sigsetjmp might be used... " >&6; } 42242 if (test "$tst_proto_sigsetjmp" = "yes" || 42243 test "$tst_macro_sigsetjmp" = "yes") && 42244 test "$tst_compi_sigsetjmp" = "yes" && 42245 test "$tst_allow_sigsetjmp" = "yes"; then 42246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42247printf "%s\n" "yes" >&6; } 42248 42249printf "%s\n" "#define HAVE_SIGSETJMP 1" >>confdefs.h 42250 42251 curl_cv_func_sigsetjmp="yes" 42252 else 42253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42254printf "%s\n" "no" >&6; } 42255 curl_cv_func_sigsetjmp="no" 42256 fi 42257 42258 42259 # 42260 tst_links_socket="unknown" 42261 tst_proto_socket="unknown" 42262 tst_compi_socket="unknown" 42263 tst_allow_socket="unknown" 42264 # 42265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5 42266printf %s "checking if socket can be linked... " >&6; } 42267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42268/* end confdefs.h. */ 42269 42270 42271 $curl_includes_winsock2 42272 $curl_includes_bsdsocket 42273 $curl_includes_sys_socket 42274 42275int main(void) 42276{ 42277 42278 if(0 != socket(0, 0, 0)) 42279 return 1; 42280 42281 ; 42282 return 0; 42283} 42284 42285_ACEOF 42286if ac_fn_c_try_link "$LINENO" 42287then : 42288 42289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42290printf "%s\n" "yes" >&6; } 42291 tst_links_socket="yes" 42292 42293else $as_nop 42294 42295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42296printf "%s\n" "no" >&6; } 42297 tst_links_socket="no" 42298 42299fi 42300rm -f core conftest.err conftest.$ac_objext conftest.beam \ 42301 conftest$ac_exeext conftest.$ac_ext 42302 # 42303 if test "$tst_links_socket" = "yes"; then 42304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5 42305printf %s "checking if socket is prototyped... " >&6; } 42306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42307/* end confdefs.h. */ 42308 42309 $curl_includes_winsock2 42310 $curl_includes_bsdsocket 42311 $curl_includes_sys_socket 42312 42313_ACEOF 42314if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 42315 $EGREP "socket" >/dev/null 2>&1 42316then : 42317 42318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42319printf "%s\n" "yes" >&6; } 42320 tst_proto_socket="yes" 42321 42322else $as_nop 42323 42324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42325printf "%s\n" "no" >&6; } 42326 tst_proto_socket="no" 42327 42328fi 42329rm -rf conftest* 42330 42331 fi 42332 # 42333 if test "$tst_proto_socket" = "yes"; then 42334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5 42335printf %s "checking if socket is compilable... " >&6; } 42336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42337/* end confdefs.h. */ 42338 42339 42340 $curl_includes_winsock2 42341 $curl_includes_bsdsocket 42342 $curl_includes_sys_socket 42343 42344int main(void) 42345{ 42346 42347 if(0 != socket(0, 0, 0)) 42348 return 1; 42349 42350 ; 42351 return 0; 42352} 42353 42354_ACEOF 42355if ac_fn_c_try_compile "$LINENO" 42356then : 42357 42358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42359printf "%s\n" "yes" >&6; } 42360 tst_compi_socket="yes" 42361 42362else $as_nop 42363 42364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42365printf "%s\n" "no" >&6; } 42366 tst_compi_socket="no" 42367 42368fi 42369rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 42370 fi 42371 # 42372 if test "$tst_compi_socket" = "yes"; then 42373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5 42374printf %s "checking if socket usage allowed... " >&6; } 42375 if test "x$curl_disallow_socket" != "xyes"; then 42376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42377printf "%s\n" "yes" >&6; } 42378 tst_allow_socket="yes" 42379 else 42380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42381printf "%s\n" "no" >&6; } 42382 tst_allow_socket="no" 42383 fi 42384 fi 42385 # 42386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5 42387printf %s "checking if socket might be used... " >&6; } 42388 if test "$tst_links_socket" = "yes" && 42389 test "$tst_proto_socket" = "yes" && 42390 test "$tst_compi_socket" = "yes" && 42391 test "$tst_allow_socket" = "yes"; then 42392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42393printf "%s\n" "yes" >&6; } 42394 42395printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h 42396 42397 curl_cv_func_socket="yes" 42398 else 42399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42400printf "%s\n" "no" >&6; } 42401 curl_cv_func_socket="no" 42402 fi 42403 42404 42405 # 42406 tst_links_socketpair="unknown" 42407 tst_proto_socketpair="unknown" 42408 tst_compi_socketpair="unknown" 42409 tst_allow_socketpair="unknown" 42410 # 42411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5 42412printf %s "checking if socketpair can be linked... " >&6; } 42413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42414/* end confdefs.h. */ 42415 42416 42417#define socketpair innocuous_socketpair 42418#ifdef __STDC__ 42419# include <limits.h> 42420#else 42421# include <assert.h> 42422#endif 42423#undef socketpair 42424#ifdef __cplusplus 42425extern "C" 42426#endif 42427char socketpair (); 42428#if defined __stub_socketpair || defined __stub___socketpair 42429#error force compilation error 42430#endif 42431 42432int main(void) 42433{ 42434return socketpair (); 42435 ; 42436 return 0; 42437} 42438 42439_ACEOF 42440if ac_fn_c_try_link "$LINENO" 42441then : 42442 42443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42444printf "%s\n" "yes" >&6; } 42445 tst_links_socketpair="yes" 42446 42447else $as_nop 42448 42449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42450printf "%s\n" "no" >&6; } 42451 tst_links_socketpair="no" 42452 42453fi 42454rm -f core conftest.err conftest.$ac_objext conftest.beam \ 42455 conftest$ac_exeext conftest.$ac_ext 42456 # 42457 if test "$tst_links_socketpair" = "yes"; then 42458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5 42459printf %s "checking if socketpair is prototyped... " >&6; } 42460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42461/* end confdefs.h. */ 42462 42463 $curl_includes_sys_socket 42464 42465_ACEOF 42466if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 42467 $EGREP "socketpair" >/dev/null 2>&1 42468then : 42469 42470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42471printf "%s\n" "yes" >&6; } 42472 tst_proto_socketpair="yes" 42473 42474else $as_nop 42475 42476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42477printf "%s\n" "no" >&6; } 42478 tst_proto_socketpair="no" 42479 42480fi 42481rm -rf conftest* 42482 42483 fi 42484 # 42485 if test "$tst_proto_socketpair" = "yes"; then 42486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5 42487printf %s "checking if socketpair is compilable... " >&6; } 42488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42489/* end confdefs.h. */ 42490 42491 42492 $curl_includes_sys_socket 42493 42494int main(void) 42495{ 42496 42497 int sv[2]; 42498 if(0 != socketpair(0, 0, 0, sv)) 42499 return 1; 42500 42501 ; 42502 return 0; 42503} 42504 42505_ACEOF 42506if ac_fn_c_try_compile "$LINENO" 42507then : 42508 42509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42510printf "%s\n" "yes" >&6; } 42511 tst_compi_socketpair="yes" 42512 42513else $as_nop 42514 42515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42516printf "%s\n" "no" >&6; } 42517 tst_compi_socketpair="no" 42518 42519fi 42520rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 42521 fi 42522 # 42523 if test "$tst_compi_socketpair" = "yes"; then 42524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5 42525printf %s "checking if socketpair usage allowed... " >&6; } 42526 if test "x$curl_disallow_socketpair" != "xyes"; then 42527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42528printf "%s\n" "yes" >&6; } 42529 tst_allow_socketpair="yes" 42530 else 42531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42532printf "%s\n" "no" >&6; } 42533 tst_allow_socketpair="no" 42534 fi 42535 fi 42536 # 42537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5 42538printf %s "checking if socketpair might be used... " >&6; } 42539 if test "$tst_links_socketpair" = "yes" && 42540 test "$tst_proto_socketpair" = "yes" && 42541 test "$tst_compi_socketpair" = "yes" && 42542 test "$tst_allow_socketpair" = "yes"; then 42543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42544printf "%s\n" "yes" >&6; } 42545 42546printf "%s\n" "#define HAVE_SOCKETPAIR 1" >>confdefs.h 42547 42548 curl_cv_func_socketpair="yes" 42549 else 42550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42551printf "%s\n" "no" >&6; } 42552 curl_cv_func_socketpair="no" 42553 fi 42554 42555 42556 # 42557 tst_links_strcasecmp="unknown" 42558 tst_proto_strcasecmp="unknown" 42559 tst_compi_strcasecmp="unknown" 42560 tst_allow_strcasecmp="unknown" 42561 # 42562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5 42563printf %s "checking if strcasecmp can be linked... " >&6; } 42564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42565/* end confdefs.h. */ 42566 42567 42568#define strcasecmp innocuous_strcasecmp 42569#ifdef __STDC__ 42570# include <limits.h> 42571#else 42572# include <assert.h> 42573#endif 42574#undef strcasecmp 42575#ifdef __cplusplus 42576extern "C" 42577#endif 42578char strcasecmp (); 42579#if defined __stub_strcasecmp || defined __stub___strcasecmp 42580#error force compilation error 42581#endif 42582 42583int main(void) 42584{ 42585return strcasecmp (); 42586 ; 42587 return 0; 42588} 42589 42590_ACEOF 42591if ac_fn_c_try_link "$LINENO" 42592then : 42593 42594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42595printf "%s\n" "yes" >&6; } 42596 tst_links_strcasecmp="yes" 42597 42598else $as_nop 42599 42600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42601printf "%s\n" "no" >&6; } 42602 tst_links_strcasecmp="no" 42603 42604fi 42605rm -f core conftest.err conftest.$ac_objext conftest.beam \ 42606 conftest$ac_exeext conftest.$ac_ext 42607 # 42608 if test "$tst_links_strcasecmp" = "yes"; then 42609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5 42610printf %s "checking if strcasecmp is prototyped... " >&6; } 42611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42612/* end confdefs.h. */ 42613 42614 $curl_includes_string 42615 42616_ACEOF 42617if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 42618 $EGREP "strcasecmp" >/dev/null 2>&1 42619then : 42620 42621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42622printf "%s\n" "yes" >&6; } 42623 tst_proto_strcasecmp="yes" 42624 42625else $as_nop 42626 42627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42628printf "%s\n" "no" >&6; } 42629 tst_proto_strcasecmp="no" 42630 42631fi 42632rm -rf conftest* 42633 42634 fi 42635 # 42636 if test "$tst_proto_strcasecmp" = "yes"; then 42637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5 42638printf %s "checking if strcasecmp is compilable... " >&6; } 42639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42640/* end confdefs.h. */ 42641 42642 42643 $curl_includes_string 42644 42645int main(void) 42646{ 42647 42648 if(0 != strcasecmp(0, 0)) 42649 return 1; 42650 42651 ; 42652 return 0; 42653} 42654 42655_ACEOF 42656if ac_fn_c_try_compile "$LINENO" 42657then : 42658 42659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42660printf "%s\n" "yes" >&6; } 42661 tst_compi_strcasecmp="yes" 42662 42663else $as_nop 42664 42665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42666printf "%s\n" "no" >&6; } 42667 tst_compi_strcasecmp="no" 42668 42669fi 42670rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 42671 fi 42672 # 42673 if test "$tst_compi_strcasecmp" = "yes"; then 42674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5 42675printf %s "checking if strcasecmp usage allowed... " >&6; } 42676 if test "x$curl_disallow_strcasecmp" != "xyes"; then 42677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42678printf "%s\n" "yes" >&6; } 42679 tst_allow_strcasecmp="yes" 42680 else 42681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42682printf "%s\n" "no" >&6; } 42683 tst_allow_strcasecmp="no" 42684 fi 42685 fi 42686 # 42687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5 42688printf %s "checking if strcasecmp might be used... " >&6; } 42689 if test "$tst_links_strcasecmp" = "yes" && 42690 test "$tst_proto_strcasecmp" = "yes" && 42691 test "$tst_compi_strcasecmp" = "yes" && 42692 test "$tst_allow_strcasecmp" = "yes"; then 42693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42694printf "%s\n" "yes" >&6; } 42695 42696printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h 42697 42698 curl_cv_func_strcasecmp="yes" 42699 else 42700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42701printf "%s\n" "no" >&6; } 42702 curl_cv_func_strcasecmp="no" 42703 fi 42704 42705 42706 # 42707 tst_links_strcmpi="unknown" 42708 tst_proto_strcmpi="unknown" 42709 tst_compi_strcmpi="unknown" 42710 tst_allow_strcmpi="unknown" 42711 # 42712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5 42713printf %s "checking if strcmpi can be linked... " >&6; } 42714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42715/* end confdefs.h. */ 42716 42717 42718#define strcmpi innocuous_strcmpi 42719#ifdef __STDC__ 42720# include <limits.h> 42721#else 42722# include <assert.h> 42723#endif 42724#undef strcmpi 42725#ifdef __cplusplus 42726extern "C" 42727#endif 42728char strcmpi (); 42729#if defined __stub_strcmpi || defined __stub___strcmpi 42730#error force compilation error 42731#endif 42732 42733int main(void) 42734{ 42735return strcmpi (); 42736 ; 42737 return 0; 42738} 42739 42740_ACEOF 42741if ac_fn_c_try_link "$LINENO" 42742then : 42743 42744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42745printf "%s\n" "yes" >&6; } 42746 tst_links_strcmpi="yes" 42747 42748else $as_nop 42749 42750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42751printf "%s\n" "no" >&6; } 42752 tst_links_strcmpi="no" 42753 42754fi 42755rm -f core conftest.err conftest.$ac_objext conftest.beam \ 42756 conftest$ac_exeext conftest.$ac_ext 42757 # 42758 if test "$tst_links_strcmpi" = "yes"; then 42759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5 42760printf %s "checking if strcmpi is prototyped... " >&6; } 42761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42762/* end confdefs.h. */ 42763 42764 $curl_includes_string 42765 42766_ACEOF 42767if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 42768 $EGREP "strcmpi" >/dev/null 2>&1 42769then : 42770 42771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42772printf "%s\n" "yes" >&6; } 42773 tst_proto_strcmpi="yes" 42774 42775else $as_nop 42776 42777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42778printf "%s\n" "no" >&6; } 42779 tst_proto_strcmpi="no" 42780 42781fi 42782rm -rf conftest* 42783 42784 fi 42785 # 42786 if test "$tst_proto_strcmpi" = "yes"; then 42787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5 42788printf %s "checking if strcmpi is compilable... " >&6; } 42789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42790/* end confdefs.h. */ 42791 42792 42793 $curl_includes_string 42794 42795int main(void) 42796{ 42797 42798 if(0 != strcmpi(0, 0)) 42799 return 1; 42800 42801 ; 42802 return 0; 42803} 42804 42805_ACEOF 42806if ac_fn_c_try_compile "$LINENO" 42807then : 42808 42809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42810printf "%s\n" "yes" >&6; } 42811 tst_compi_strcmpi="yes" 42812 42813else $as_nop 42814 42815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42816printf "%s\n" "no" >&6; } 42817 tst_compi_strcmpi="no" 42818 42819fi 42820rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 42821 fi 42822 # 42823 if test "$tst_compi_strcmpi" = "yes"; then 42824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5 42825printf %s "checking if strcmpi usage allowed... " >&6; } 42826 if test "x$curl_disallow_strcmpi" != "xyes"; then 42827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42828printf "%s\n" "yes" >&6; } 42829 tst_allow_strcmpi="yes" 42830 else 42831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42832printf "%s\n" "no" >&6; } 42833 tst_allow_strcmpi="no" 42834 fi 42835 fi 42836 # 42837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5 42838printf %s "checking if strcmpi might be used... " >&6; } 42839 if test "$tst_links_strcmpi" = "yes" && 42840 test "$tst_proto_strcmpi" = "yes" && 42841 test "$tst_compi_strcmpi" = "yes" && 42842 test "$tst_allow_strcmpi" = "yes"; then 42843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42844printf "%s\n" "yes" >&6; } 42845 42846printf "%s\n" "#define HAVE_STRCMPI 1" >>confdefs.h 42847 42848 curl_cv_func_strcmpi="yes" 42849 else 42850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42851printf "%s\n" "no" >&6; } 42852 curl_cv_func_strcmpi="no" 42853 fi 42854 42855 42856 # 42857 tst_links_strdup="unknown" 42858 tst_proto_strdup="unknown" 42859 tst_compi_strdup="unknown" 42860 tst_allow_strdup="unknown" 42861 # 42862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5 42863printf %s "checking if strdup can be linked... " >&6; } 42864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42865/* end confdefs.h. */ 42866 42867 42868#define strdup innocuous_strdup 42869#ifdef __STDC__ 42870# include <limits.h> 42871#else 42872# include <assert.h> 42873#endif 42874#undef strdup 42875#ifdef __cplusplus 42876extern "C" 42877#endif 42878char strdup (); 42879#if defined __stub_strdup || defined __stub___strdup 42880#error force compilation error 42881#endif 42882 42883int main(void) 42884{ 42885return strdup (); 42886 ; 42887 return 0; 42888} 42889 42890_ACEOF 42891if ac_fn_c_try_link "$LINENO" 42892then : 42893 42894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42895printf "%s\n" "yes" >&6; } 42896 tst_links_strdup="yes" 42897 42898else $as_nop 42899 42900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42901printf "%s\n" "no" >&6; } 42902 tst_links_strdup="no" 42903 42904fi 42905rm -f core conftest.err conftest.$ac_objext conftest.beam \ 42906 conftest$ac_exeext conftest.$ac_ext 42907 # 42908 if test "$tst_links_strdup" = "yes"; then 42909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5 42910printf %s "checking if strdup is prototyped... " >&6; } 42911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42912/* end confdefs.h. */ 42913 42914 $curl_includes_string 42915 42916_ACEOF 42917if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 42918 $EGREP "strdup" >/dev/null 2>&1 42919then : 42920 42921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42922printf "%s\n" "yes" >&6; } 42923 tst_proto_strdup="yes" 42924 42925else $as_nop 42926 42927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42928printf "%s\n" "no" >&6; } 42929 tst_proto_strdup="no" 42930 42931fi 42932rm -rf conftest* 42933 42934 fi 42935 # 42936 if test "$tst_proto_strdup" = "yes"; then 42937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5 42938printf %s "checking if strdup is compilable... " >&6; } 42939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42940/* end confdefs.h. */ 42941 42942 42943 $curl_includes_string 42944 42945int main(void) 42946{ 42947 42948 if(0 != strdup(0)) 42949 return 1; 42950 42951 ; 42952 return 0; 42953} 42954 42955_ACEOF 42956if ac_fn_c_try_compile "$LINENO" 42957then : 42958 42959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42960printf "%s\n" "yes" >&6; } 42961 tst_compi_strdup="yes" 42962 42963else $as_nop 42964 42965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42966printf "%s\n" "no" >&6; } 42967 tst_compi_strdup="no" 42968 42969fi 42970rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 42971 fi 42972 # 42973 if test "$tst_compi_strdup" = "yes"; then 42974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5 42975printf %s "checking if strdup usage allowed... " >&6; } 42976 if test "x$curl_disallow_strdup" != "xyes"; then 42977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42978printf "%s\n" "yes" >&6; } 42979 tst_allow_strdup="yes" 42980 else 42981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 42982printf "%s\n" "no" >&6; } 42983 tst_allow_strdup="no" 42984 fi 42985 fi 42986 # 42987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5 42988printf %s "checking if strdup might be used... " >&6; } 42989 if test "$tst_links_strdup" = "yes" && 42990 test "$tst_proto_strdup" = "yes" && 42991 test "$tst_compi_strdup" = "yes" && 42992 test "$tst_allow_strdup" = "yes"; then 42993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42994printf "%s\n" "yes" >&6; } 42995 42996printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h 42997 42998 curl_cv_func_strdup="yes" 42999 else 43000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43001printf "%s\n" "no" >&6; } 43002 curl_cv_func_strdup="no" 43003 fi 43004 43005 43006 # 43007 tst_links_strerror_r="unknown" 43008 tst_proto_strerror_r="unknown" 43009 tst_compi_strerror_r="unknown" 43010 tst_glibc_strerror_r="unknown" 43011 tst_posix_strerror_r="unknown" 43012 tst_allow_strerror_r="unknown" 43013 tst_works_glibc_strerror_r="unknown" 43014 tst_works_posix_strerror_r="unknown" 43015 tst_glibc_strerror_r_type_arg3="unknown" 43016 tst_posix_strerror_r_type_arg3="unknown" 43017 # 43018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5 43019printf %s "checking if strerror_r can be linked... " >&6; } 43020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43021/* end confdefs.h. */ 43022 43023 43024#define strerror_r innocuous_strerror_r 43025#ifdef __STDC__ 43026# include <limits.h> 43027#else 43028# include <assert.h> 43029#endif 43030#undef strerror_r 43031#ifdef __cplusplus 43032extern "C" 43033#endif 43034char strerror_r (); 43035#if defined __stub_strerror_r || defined __stub___strerror_r 43036#error force compilation error 43037#endif 43038 43039int main(void) 43040{ 43041return strerror_r (); 43042 ; 43043 return 0; 43044} 43045 43046_ACEOF 43047if ac_fn_c_try_link "$LINENO" 43048then : 43049 43050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43051printf "%s\n" "yes" >&6; } 43052 tst_links_strerror_r="yes" 43053 43054else $as_nop 43055 43056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43057printf "%s\n" "no" >&6; } 43058 tst_links_strerror_r="no" 43059 43060fi 43061rm -f core conftest.err conftest.$ac_objext conftest.beam \ 43062 conftest$ac_exeext conftest.$ac_ext 43063 # 43064 if test "$tst_links_strerror_r" = "yes"; then 43065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5 43066printf %s "checking if strerror_r is prototyped... " >&6; } 43067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43068/* end confdefs.h. */ 43069 43070 $curl_includes_string 43071 43072_ACEOF 43073if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 43074 $EGREP "strerror_r" >/dev/null 2>&1 43075then : 43076 43077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43078printf "%s\n" "yes" >&6; } 43079 tst_proto_strerror_r="yes" 43080 43081else $as_nop 43082 43083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43084printf "%s\n" "no" >&6; } 43085 tst_proto_strerror_r="no" 43086 43087fi 43088rm -rf conftest* 43089 43090 fi 43091 # 43092 if test "$tst_proto_strerror_r" = "yes"; then 43093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5 43094printf %s "checking if strerror_r is compilable... " >&6; } 43095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43096/* end confdefs.h. */ 43097 43098 43099 $curl_includes_string 43100 43101int main(void) 43102{ 43103 43104 if(0 != strerror_r(0, 0, 0)) 43105 return 1; 43106 43107 ; 43108 return 0; 43109} 43110 43111_ACEOF 43112if ac_fn_c_try_compile "$LINENO" 43113then : 43114 43115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43116printf "%s\n" "yes" >&6; } 43117 tst_compi_strerror_r="yes" 43118 43119else $as_nop 43120 43121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43122printf "%s\n" "no" >&6; } 43123 tst_compi_strerror_r="no" 43124 43125fi 43126rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 43127 fi 43128 # 43129 if test "$tst_compi_strerror_r" = "yes"; then 43130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5 43131printf %s "checking if strerror_r is glibc like... " >&6; } 43132 tst_glibc_strerror_r_type_arg3="unknown" 43133 for arg3 in 'size_t' 'int' 'unsigned int'; do 43134 if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then 43135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43136/* end confdefs.h. */ 43137 43138 43139 $curl_includes_string 43140 char *strerror_r(int errnum, char *workbuf, $arg3 bufsize); 43141 43142int main(void) 43143{ 43144 43145 if(0 != strerror_r(0, 0, 0)) 43146 return 1; 43147 43148 ; 43149 return 0; 43150} 43151 43152_ACEOF 43153if ac_fn_c_try_compile "$LINENO" 43154then : 43155 43156 tst_glibc_strerror_r_type_arg3="$arg3" 43157 43158fi 43159rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 43160 fi 43161 done 43162 case "$tst_glibc_strerror_r_type_arg3" in 43163 unknown) 43164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43165printf "%s\n" "no" >&6; } 43166 tst_glibc_strerror_r="no" 43167 ;; 43168 *) 43169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43170printf "%s\n" "yes" >&6; } 43171 tst_glibc_strerror_r="yes" 43172 ;; 43173 esac 43174 fi 43175 # 43176 if test "x$cross_compiling" != "xyes" && 43177 test "$tst_glibc_strerror_r" = "yes"; then 43178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5 43179printf %s "checking if strerror_r seems to work... " >&6; } 43180 43181 case $host in 43182 *-apple-*) 43183 if test "$cross_compiling" = yes 43184then : 43185 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 43186printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 43187as_fn_error $? "cannot run test program while cross compiling 43188See \`config.log' for more details" "$LINENO" 5; } 43189else $as_nop 43190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43191/* end confdefs.h. */ 43192 43193 43194 $curl_includes_stdlib 43195 $curl_includes_string 43196# include <errno.h> 43197 43198int main(void) 43199{ 43200 43201 char buffer[1024]; 43202 char *string = 0; 43203 buffer[0] = '\0'; 43204 string = strerror_r(EACCES, buffer, sizeof(buffer)); 43205 if(!string) 43206 exit(1); /* fail */ 43207 if(!string[0]) 43208 exit(1); /* fail */ 43209 else 43210 exit(0); 43211 43212 ; 43213 return 0; 43214} 43215 43216_ACEOF 43217if ac_fn_c_try_run "$LINENO" 43218then : 43219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43220printf "%s\n" "yes" >&6; } 43221 tst_works_glibc_strerror_r="yes" 43222 43223else $as_nop 43224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43225printf "%s\n" "no" >&6; } 43226 tst_works_glibc_strerror_r="no" 43227 43228fi 43229rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 43230 conftest.$ac_objext conftest.beam conftest.$ac_ext 43231fi 43232 43233 ;; 43234 *) 43235 oldcc=$CC 43236 old=$LD_LIBRARY_PATH 43237 CC="sh ./run-compiler" 43238 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 43239 export LD_LIBRARY_PATH 43240 if test "$cross_compiling" = yes 43241then : 43242 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 43243printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 43244as_fn_error $? "cannot run test program while cross compiling 43245See \`config.log' for more details" "$LINENO" 5; } 43246else $as_nop 43247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43248/* end confdefs.h. */ 43249 43250 43251 $curl_includes_stdlib 43252 $curl_includes_string 43253# include <errno.h> 43254 43255int main(void) 43256{ 43257 43258 char buffer[1024]; 43259 char *string = 0; 43260 buffer[0] = '\0'; 43261 string = strerror_r(EACCES, buffer, sizeof(buffer)); 43262 if(!string) 43263 exit(1); /* fail */ 43264 if(!string[0]) 43265 exit(1); /* fail */ 43266 else 43267 exit(0); 43268 43269 ; 43270 return 0; 43271} 43272 43273_ACEOF 43274if ac_fn_c_try_run "$LINENO" 43275then : 43276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43277printf "%s\n" "yes" >&6; } 43278 tst_works_glibc_strerror_r="yes" 43279 43280else $as_nop 43281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43282printf "%s\n" "no" >&6; } 43283 tst_works_glibc_strerror_r="no" 43284 43285fi 43286rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 43287 conftest.$ac_objext conftest.beam conftest.$ac_ext 43288fi 43289 43290 LD_LIBRARY_PATH=$old # restore 43291 CC=$oldcc 43292 ;; 43293 esac 43294 43295 fi 43296 # 43297 if test "$tst_compi_strerror_r" = "yes" && 43298 test "$tst_works_glibc_strerror_r" != "yes"; then 43299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5 43300printf %s "checking if strerror_r is POSIX like... " >&6; } 43301 tst_posix_strerror_r_type_arg3="unknown" 43302 for arg3 in 'size_t' 'int' 'unsigned int'; do 43303 if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then 43304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43305/* end confdefs.h. */ 43306 43307 43308 $curl_includes_string 43309 int strerror_r(int errnum, char *resultbuf, $arg3 bufsize); 43310 43311int main(void) 43312{ 43313 43314 if(0 != strerror_r(0, 0, 0)) 43315 return 1; 43316 43317 ; 43318 return 0; 43319} 43320 43321_ACEOF 43322if ac_fn_c_try_compile "$LINENO" 43323then : 43324 43325 tst_posix_strerror_r_type_arg3="$arg3" 43326 43327fi 43328rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 43329 fi 43330 done 43331 case "$tst_posix_strerror_r_type_arg3" in 43332 unknown) 43333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43334printf "%s\n" "no" >&6; } 43335 tst_posix_strerror_r="no" 43336 ;; 43337 *) 43338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43339printf "%s\n" "yes" >&6; } 43340 tst_posix_strerror_r="yes" 43341 ;; 43342 esac 43343 fi 43344 # 43345 if test "x$cross_compiling" != "xyes" && 43346 test "$tst_posix_strerror_r" = "yes"; then 43347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5 43348printf %s "checking if strerror_r seems to work... " >&6; } 43349 43350 case $host in 43351 *-apple-*) 43352 if test "$cross_compiling" = yes 43353then : 43354 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 43355printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 43356as_fn_error $? "cannot run test program while cross compiling 43357See \`config.log' for more details" "$LINENO" 5; } 43358else $as_nop 43359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43360/* end confdefs.h. */ 43361 43362 43363 $curl_includes_stdlib 43364 $curl_includes_string 43365# include <errno.h> 43366 43367int main(void) 43368{ 43369 43370 char buffer[1024]; 43371 int error = 1; 43372 buffer[0] = '\0'; 43373 error = strerror_r(EACCES, buffer, sizeof(buffer)); 43374 if(error) 43375 exit(1); /* fail */ 43376 if(buffer[0] == '\0') 43377 exit(1); /* fail */ 43378 else 43379 exit(0); 43380 43381 ; 43382 return 0; 43383} 43384 43385_ACEOF 43386if ac_fn_c_try_run "$LINENO" 43387then : 43388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43389printf "%s\n" "yes" >&6; } 43390 tst_works_posix_strerror_r="yes" 43391 43392else $as_nop 43393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43394printf "%s\n" "no" >&6; } 43395 tst_works_posix_strerror_r="no" 43396 43397fi 43398rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 43399 conftest.$ac_objext conftest.beam conftest.$ac_ext 43400fi 43401 43402 ;; 43403 *) 43404 oldcc=$CC 43405 old=$LD_LIBRARY_PATH 43406 CC="sh ./run-compiler" 43407 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 43408 export LD_LIBRARY_PATH 43409 if test "$cross_compiling" = yes 43410then : 43411 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 43412printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 43413as_fn_error $? "cannot run test program while cross compiling 43414See \`config.log' for more details" "$LINENO" 5; } 43415else $as_nop 43416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43417/* end confdefs.h. */ 43418 43419 43420 $curl_includes_stdlib 43421 $curl_includes_string 43422# include <errno.h> 43423 43424int main(void) 43425{ 43426 43427 char buffer[1024]; 43428 int error = 1; 43429 buffer[0] = '\0'; 43430 error = strerror_r(EACCES, buffer, sizeof(buffer)); 43431 if(error) 43432 exit(1); /* fail */ 43433 if(buffer[0] == '\0') 43434 exit(1); /* fail */ 43435 else 43436 exit(0); 43437 43438 ; 43439 return 0; 43440} 43441 43442_ACEOF 43443if ac_fn_c_try_run "$LINENO" 43444then : 43445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43446printf "%s\n" "yes" >&6; } 43447 tst_works_posix_strerror_r="yes" 43448 43449else $as_nop 43450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43451printf "%s\n" "no" >&6; } 43452 tst_works_posix_strerror_r="no" 43453 43454fi 43455rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 43456 conftest.$ac_objext conftest.beam conftest.$ac_ext 43457fi 43458 43459 LD_LIBRARY_PATH=$old # restore 43460 CC=$oldcc 43461 ;; 43462 esac 43463 43464 fi 43465 # 43466 if test "$tst_works_glibc_strerror_r" = "yes"; then 43467 tst_posix_strerror_r="no" 43468 fi 43469 if test "$tst_works_posix_strerror_r" = "yes"; then 43470 tst_glibc_strerror_r="no" 43471 fi 43472 if test "$tst_glibc_strerror_r" = "yes" && 43473 test "$tst_works_glibc_strerror_r" != "no" && 43474 test "$tst_posix_strerror_r" != "yes"; then 43475 tst_allow_strerror_r="check" 43476 fi 43477 if test "$tst_posix_strerror_r" = "yes" && 43478 test "$tst_works_posix_strerror_r" != "no" && 43479 test "$tst_glibc_strerror_r" != "yes"; then 43480 tst_allow_strerror_r="check" 43481 fi 43482 if test "$tst_allow_strerror_r" = "check"; then 43483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5 43484printf %s "checking if strerror_r usage allowed... " >&6; } 43485 if test "x$curl_disallow_strerror_r" != "xyes"; then 43486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43487printf "%s\n" "yes" >&6; } 43488 tst_allow_strerror_r="yes" 43489 else 43490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43491printf "%s\n" "no" >&6; } 43492 tst_allow_strerror_r="no" 43493 fi 43494 fi 43495 # 43496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5 43497printf %s "checking if strerror_r might be used... " >&6; } 43498 if test "$tst_links_strerror_r" = "yes" && 43499 test "$tst_proto_strerror_r" = "yes" && 43500 test "$tst_compi_strerror_r" = "yes" && 43501 test "$tst_allow_strerror_r" = "yes"; then 43502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43503printf "%s\n" "yes" >&6; } 43504 if test "$tst_glibc_strerror_r" = "yes"; then 43505 43506printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h 43507 43508 43509printf "%s\n" "#define HAVE_GLIBC_STRERROR_R 1" >>confdefs.h 43510 43511 fi 43512 if test "$tst_posix_strerror_r" = "yes"; then 43513 43514printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h 43515 43516 43517printf "%s\n" "#define HAVE_POSIX_STRERROR_R 1" >>confdefs.h 43518 43519 fi 43520 curl_cv_func_strerror_r="yes" 43521 else 43522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43523printf "%s\n" "no" >&6; } 43524 curl_cv_func_strerror_r="no" 43525 fi 43526 # 43527 if test "$tst_compi_strerror_r" = "yes" && 43528 test "$tst_allow_strerror_r" = "unknown"; then 43529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5 43530printf "%s\n" "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;} 43531 fi 43532 # 43533 43534 43535 # 43536 tst_links_stricmp="unknown" 43537 tst_proto_stricmp="unknown" 43538 tst_compi_stricmp="unknown" 43539 tst_allow_stricmp="unknown" 43540 # 43541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5 43542printf %s "checking if stricmp can be linked... " >&6; } 43543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43544/* end confdefs.h. */ 43545 43546 43547#define stricmp innocuous_stricmp 43548#ifdef __STDC__ 43549# include <limits.h> 43550#else 43551# include <assert.h> 43552#endif 43553#undef stricmp 43554#ifdef __cplusplus 43555extern "C" 43556#endif 43557char stricmp (); 43558#if defined __stub_stricmp || defined __stub___stricmp 43559#error force compilation error 43560#endif 43561 43562int main(void) 43563{ 43564return stricmp (); 43565 ; 43566 return 0; 43567} 43568 43569_ACEOF 43570if ac_fn_c_try_link "$LINENO" 43571then : 43572 43573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43574printf "%s\n" "yes" >&6; } 43575 tst_links_stricmp="yes" 43576 43577else $as_nop 43578 43579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43580printf "%s\n" "no" >&6; } 43581 tst_links_stricmp="no" 43582 43583fi 43584rm -f core conftest.err conftest.$ac_objext conftest.beam \ 43585 conftest$ac_exeext conftest.$ac_ext 43586 # 43587 if test "$tst_links_stricmp" = "yes"; then 43588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5 43589printf %s "checking if stricmp is prototyped... " >&6; } 43590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43591/* end confdefs.h. */ 43592 43593 $curl_includes_string 43594 43595_ACEOF 43596if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 43597 $EGREP "stricmp" >/dev/null 2>&1 43598then : 43599 43600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43601printf "%s\n" "yes" >&6; } 43602 tst_proto_stricmp="yes" 43603 43604else $as_nop 43605 43606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43607printf "%s\n" "no" >&6; } 43608 tst_proto_stricmp="no" 43609 43610fi 43611rm -rf conftest* 43612 43613 fi 43614 # 43615 if test "$tst_proto_stricmp" = "yes"; then 43616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5 43617printf %s "checking if stricmp is compilable... " >&6; } 43618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43619/* end confdefs.h. */ 43620 43621 43622 $curl_includes_string 43623 43624int main(void) 43625{ 43626 43627 if(0 != stricmp(0, 0)) 43628 return 1; 43629 43630 ; 43631 return 0; 43632} 43633 43634_ACEOF 43635if ac_fn_c_try_compile "$LINENO" 43636then : 43637 43638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43639printf "%s\n" "yes" >&6; } 43640 tst_compi_stricmp="yes" 43641 43642else $as_nop 43643 43644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43645printf "%s\n" "no" >&6; } 43646 tst_compi_stricmp="no" 43647 43648fi 43649rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 43650 fi 43651 # 43652 if test "$tst_compi_stricmp" = "yes"; then 43653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5 43654printf %s "checking if stricmp usage allowed... " >&6; } 43655 if test "x$curl_disallow_stricmp" != "xyes"; then 43656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43657printf "%s\n" "yes" >&6; } 43658 tst_allow_stricmp="yes" 43659 else 43660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43661printf "%s\n" "no" >&6; } 43662 tst_allow_stricmp="no" 43663 fi 43664 fi 43665 # 43666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5 43667printf %s "checking if stricmp might be used... " >&6; } 43668 if test "$tst_links_stricmp" = "yes" && 43669 test "$tst_proto_stricmp" = "yes" && 43670 test "$tst_compi_stricmp" = "yes" && 43671 test "$tst_allow_stricmp" = "yes"; then 43672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43673printf "%s\n" "yes" >&6; } 43674 43675printf "%s\n" "#define HAVE_STRICMP 1" >>confdefs.h 43676 43677 curl_cv_func_stricmp="yes" 43678 else 43679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43680printf "%s\n" "no" >&6; } 43681 curl_cv_func_stricmp="no" 43682 fi 43683 43684 43685 # 43686 tst_links_strtok_r="unknown" 43687 tst_proto_strtok_r="unknown" 43688 tst_compi_strtok_r="unknown" 43689 tst_allow_strtok_r="unknown" 43690 # 43691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5 43692printf %s "checking if strtok_r can be linked... " >&6; } 43693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43694/* end confdefs.h. */ 43695 43696 43697#define strtok_r innocuous_strtok_r 43698#ifdef __STDC__ 43699# include <limits.h> 43700#else 43701# include <assert.h> 43702#endif 43703#undef strtok_r 43704#ifdef __cplusplus 43705extern "C" 43706#endif 43707char strtok_r (); 43708#if defined __stub_strtok_r || defined __stub___strtok_r 43709#error force compilation error 43710#endif 43711 43712int main(void) 43713{ 43714return strtok_r (); 43715 ; 43716 return 0; 43717} 43718 43719_ACEOF 43720if ac_fn_c_try_link "$LINENO" 43721then : 43722 43723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43724printf "%s\n" "yes" >&6; } 43725 tst_links_strtok_r="yes" 43726 43727else $as_nop 43728 43729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43730printf "%s\n" "no" >&6; } 43731 tst_links_strtok_r="no" 43732 43733fi 43734rm -f core conftest.err conftest.$ac_objext conftest.beam \ 43735 conftest$ac_exeext conftest.$ac_ext 43736 # 43737 if test "$tst_links_strtok_r" = "yes"; then 43738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5 43739printf %s "checking if strtok_r is prototyped... " >&6; } 43740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43741/* end confdefs.h. */ 43742 43743 $curl_includes_string 43744 43745_ACEOF 43746if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 43747 $EGREP "strtok_r" >/dev/null 2>&1 43748then : 43749 43750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43751printf "%s\n" "yes" >&6; } 43752 tst_proto_strtok_r="yes" 43753 43754else $as_nop 43755 43756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43757printf "%s\n" "no" >&6; } 43758 tst_proto_strtok_r="no" 43759 43760fi 43761rm -rf conftest* 43762 43763 fi 43764 # 43765 if test "$tst_proto_strtok_r" = "yes"; then 43766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5 43767printf %s "checking if strtok_r is compilable... " >&6; } 43768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43769/* end confdefs.h. */ 43770 43771 43772 $curl_includes_string 43773 43774int main(void) 43775{ 43776 43777 if(0 != strtok_r(0, 0, 0)) 43778 return 1; 43779 43780 ; 43781 return 0; 43782} 43783 43784_ACEOF 43785if ac_fn_c_try_compile "$LINENO" 43786then : 43787 43788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43789printf "%s\n" "yes" >&6; } 43790 tst_compi_strtok_r="yes" 43791 43792else $as_nop 43793 43794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43795printf "%s\n" "no" >&6; } 43796 tst_compi_strtok_r="no" 43797 43798fi 43799rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 43800 fi 43801 # 43802 if test "$tst_compi_strtok_r" = "yes"; then 43803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5 43804printf %s "checking if strtok_r usage allowed... " >&6; } 43805 if test "x$curl_disallow_strtok_r" != "xyes"; then 43806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43807printf "%s\n" "yes" >&6; } 43808 tst_allow_strtok_r="yes" 43809 else 43810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43811printf "%s\n" "no" >&6; } 43812 tst_allow_strtok_r="no" 43813 fi 43814 fi 43815 # 43816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5 43817printf %s "checking if strtok_r might be used... " >&6; } 43818 if test "$tst_links_strtok_r" = "yes" && 43819 test "$tst_proto_strtok_r" = "yes" && 43820 test "$tst_compi_strtok_r" = "yes" && 43821 test "$tst_allow_strtok_r" = "yes"; then 43822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43823printf "%s\n" "yes" >&6; } 43824 43825printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h 43826 43827 curl_cv_func_strtok_r="yes" 43828 else 43829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43830printf "%s\n" "no" >&6; } 43831 curl_cv_func_strtok_r="no" 43832 fi 43833 43834 43835 # 43836 tst_links_strtoll="unknown" 43837 tst_proto_strtoll="unknown" 43838 tst_compi_strtoll="unknown" 43839 tst_allow_strtoll="unknown" 43840 # 43841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5 43842printf %s "checking if strtoll can be linked... " >&6; } 43843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43844/* end confdefs.h. */ 43845 43846 43847#define strtoll innocuous_strtoll 43848#ifdef __STDC__ 43849# include <limits.h> 43850#else 43851# include <assert.h> 43852#endif 43853#undef strtoll 43854#ifdef __cplusplus 43855extern "C" 43856#endif 43857char strtoll (); 43858#if defined __stub_strtoll || defined __stub___strtoll 43859#error force compilation error 43860#endif 43861 43862int main(void) 43863{ 43864return strtoll (); 43865 ; 43866 return 0; 43867} 43868 43869_ACEOF 43870if ac_fn_c_try_link "$LINENO" 43871then : 43872 43873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43874printf "%s\n" "yes" >&6; } 43875 tst_links_strtoll="yes" 43876 43877else $as_nop 43878 43879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43880printf "%s\n" "no" >&6; } 43881 tst_links_strtoll="no" 43882 43883fi 43884rm -f core conftest.err conftest.$ac_objext conftest.beam \ 43885 conftest$ac_exeext conftest.$ac_ext 43886 # 43887 if test "$tst_links_strtoll" = "yes"; then 43888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5 43889printf %s "checking if strtoll is prototyped... " >&6; } 43890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43891/* end confdefs.h. */ 43892 43893 $curl_includes_stdlib 43894 43895_ACEOF 43896if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 43897 $EGREP "strtoll" >/dev/null 2>&1 43898then : 43899 43900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43901printf "%s\n" "yes" >&6; } 43902 tst_proto_strtoll="yes" 43903 43904else $as_nop 43905 43906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43907printf "%s\n" "no" >&6; } 43908 tst_proto_strtoll="no" 43909 43910fi 43911rm -rf conftest* 43912 43913 fi 43914 # 43915 if test "$tst_proto_strtoll" = "yes"; then 43916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5 43917printf %s "checking if strtoll is compilable... " >&6; } 43918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43919/* end confdefs.h. */ 43920 43921 43922 $curl_includes_stdlib 43923 43924int main(void) 43925{ 43926 43927 if(0 != strtoll(0, 0, 0)) 43928 return 1; 43929 43930 ; 43931 return 0; 43932} 43933 43934_ACEOF 43935if ac_fn_c_try_compile "$LINENO" 43936then : 43937 43938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43939printf "%s\n" "yes" >&6; } 43940 tst_compi_strtoll="yes" 43941 43942else $as_nop 43943 43944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43945printf "%s\n" "no" >&6; } 43946 tst_compi_strtoll="no" 43947 43948fi 43949rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 43950 fi 43951 # 43952 if test "$tst_compi_strtoll" = "yes"; then 43953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5 43954printf %s "checking if strtoll usage allowed... " >&6; } 43955 if test "x$curl_disallow_strtoll" != "xyes"; then 43956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43957printf "%s\n" "yes" >&6; } 43958 tst_allow_strtoll="yes" 43959 else 43960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43961printf "%s\n" "no" >&6; } 43962 tst_allow_strtoll="no" 43963 fi 43964 fi 43965 # 43966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5 43967printf %s "checking if strtoll might be used... " >&6; } 43968 if test "$tst_links_strtoll" = "yes" && 43969 test "$tst_proto_strtoll" = "yes" && 43970 test "$tst_compi_strtoll" = "yes" && 43971 test "$tst_allow_strtoll" = "yes"; then 43972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43973printf "%s\n" "yes" >&6; } 43974 43975printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h 43976 43977 curl_cv_func_strtoll="yes" 43978 else 43979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 43980printf "%s\n" "no" >&6; } 43981 curl_cv_func_strtoll="no" 43982 fi 43983 43984 43985case $host in 43986 *msdosdjgpp) 43987 ac_cv_func_pipe=no 43988 skipcheck_pipe=yes 43989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5 43990printf "%s\n" "$as_me: skip check for pipe on msdosdjgpp" >&6;} 43991 ;; 43992esac 43993 43994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 43995printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 43996if test ${ac_cv_c_undeclared_builtin_options+y} 43997then : 43998 printf %s "(cached) " >&6 43999else $as_nop 44000 ac_save_CFLAGS=$CFLAGS 44001 ac_cv_c_undeclared_builtin_options='cannot detect' 44002 for ac_arg in '' -fno-builtin; do 44003 CFLAGS="$ac_save_CFLAGS $ac_arg" 44004 # This test program should *not* compile successfully. 44005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 44006/* end confdefs.h. */ 44007 44008int main(void) 44009{ 44010(void) strchr; 44011 ; 44012 return 0; 44013} 44014_ACEOF 44015if ac_fn_c_try_compile "$LINENO" 44016then : 44017 44018else $as_nop 44019 # This test program should compile successfully. 44020 # No library function is consistently available on 44021 # freestanding implementations, so test against a dummy 44022 # declaration. Include always-available headers on the 44023 # off chance that they somehow elicit warnings. 44024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 44025/* end confdefs.h. */ 44026#include <float.h> 44027#include <limits.h> 44028#include <stdarg.h> 44029#include <stddef.h> 44030extern void ac_decl (int, char *); 44031 44032int main(void) 44033{ 44034(void) ac_decl (0, (char *) 0); 44035 (void) ac_decl; 44036 44037 ; 44038 return 0; 44039} 44040_ACEOF 44041if ac_fn_c_try_compile "$LINENO" 44042then : 44043 if test x"$ac_arg" = x 44044then : 44045 ac_cv_c_undeclared_builtin_options='none needed' 44046else $as_nop 44047 ac_cv_c_undeclared_builtin_options=$ac_arg 44048fi 44049 break 44050fi 44051rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 44052fi 44053rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 44054 done 44055 CFLAGS=$ac_save_CFLAGS 44056 44057fi 44058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 44059printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 44060 case $ac_cv_c_undeclared_builtin_options in #( 44061 'cannot detect') : 44062 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 44063printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 44064as_fn_error $? "cannot make $CC report undeclared builtins 44065See \`config.log' for more details" "$LINENO" 5; } ;; #( 44066 'none needed') : 44067 ac_c_undeclared_builtin_options='' ;; #( 44068 *) : 44069 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 44070esac 44071 44072ac_fn_check_decl "$LINENO" "getpwuid_r" "ac_cv_have_decl_getpwuid_r" "#include <pwd.h> 44073 #include <sys/types.h> 44074" "$ac_c_undeclared_builtin_options" "CFLAGS" 44075if test "x$ac_cv_have_decl_getpwuid_r" = xyes 44076then : 44077 ac_have_decl=1 44078else $as_nop 44079 ac_have_decl=0 44080fi 44081printf "%s\n" "#define HAVE_DECL_GETPWUID_R $ac_have_decl" >>confdefs.h 44082if test $ac_have_decl = 1 44083then : 44084 44085else $as_nop 44086 44087printf "%s\n" "#define HAVE_DECL_GETPWUID_R_MISSING 1" >>confdefs.h 44088 44089fi 44090 44091 44092ac_fn_c_check_func "$LINENO" "_fseeki64" "ac_cv_func__fseeki64" 44093if test "x$ac_cv_func__fseeki64" = xyes 44094then : 44095 printf "%s\n" "#define HAVE__FSEEKI64 1" >>confdefs.h 44096 44097fi 44098ac_fn_c_check_func "$LINENO" "eventfd" "ac_cv_func_eventfd" 44099if test "x$ac_cv_func_eventfd" = xyes 44100then : 44101 printf "%s\n" "#define HAVE_EVENTFD 1" >>confdefs.h 44102 44103fi 44104ac_fn_c_check_func "$LINENO" "fnmatch" "ac_cv_func_fnmatch" 44105if test "x$ac_cv_func_fnmatch" = xyes 44106then : 44107 printf "%s\n" "#define HAVE_FNMATCH 1" >>confdefs.h 44108 44109fi 44110ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid" 44111if test "x$ac_cv_func_geteuid" = xyes 44112then : 44113 printf "%s\n" "#define HAVE_GETEUID 1" >>confdefs.h 44114 44115fi 44116ac_fn_c_check_func "$LINENO" "getpass_r" "ac_cv_func_getpass_r" 44117if test "x$ac_cv_func_getpass_r" = xyes 44118then : 44119 printf "%s\n" "#define HAVE_GETPASS_R 1" >>confdefs.h 44120 44121fi 44122ac_fn_c_check_func "$LINENO" "getppid" "ac_cv_func_getppid" 44123if test "x$ac_cv_func_getppid" = xyes 44124then : 44125 printf "%s\n" "#define HAVE_GETPPID 1" >>confdefs.h 44126 44127fi 44128ac_fn_c_check_func "$LINENO" "getpwuid" "ac_cv_func_getpwuid" 44129if test "x$ac_cv_func_getpwuid" = xyes 44130then : 44131 printf "%s\n" "#define HAVE_GETPWUID 1" >>confdefs.h 44132 44133fi 44134ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r" 44135if test "x$ac_cv_func_getpwuid_r" = xyes 44136then : 44137 printf "%s\n" "#define HAVE_GETPWUID_R 1" >>confdefs.h 44138 44139fi 44140ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit" 44141if test "x$ac_cv_func_getrlimit" = xyes 44142then : 44143 printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h 44144 44145fi 44146ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" 44147if test "x$ac_cv_func_gettimeofday" = xyes 44148then : 44149 printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h 44150 44151fi 44152ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex" 44153if test "x$ac_cv_func_if_nametoindex" = xyes 44154then : 44155 printf "%s\n" "#define HAVE_IF_NAMETOINDEX 1" >>confdefs.h 44156 44157fi 44158ac_fn_c_check_func "$LINENO" "mach_absolute_time" "ac_cv_func_mach_absolute_time" 44159if test "x$ac_cv_func_mach_absolute_time" = xyes 44160then : 44161 printf "%s\n" "#define HAVE_MACH_ABSOLUTE_TIME 1" >>confdefs.h 44162 44163fi 44164ac_fn_c_check_func "$LINENO" "pipe" "ac_cv_func_pipe" 44165if test "x$ac_cv_func_pipe" = xyes 44166then : 44167 printf "%s\n" "#define HAVE_PIPE 1" >>confdefs.h 44168 44169fi 44170ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 44171if test "x$ac_cv_func_poll" = xyes 44172then : 44173 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h 44174 44175fi 44176ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield" 44177if test "x$ac_cv_func_sched_yield" = xyes 44178then : 44179 printf "%s\n" "#define HAVE_SCHED_YIELD 1" >>confdefs.h 44180 44181fi 44182ac_fn_c_check_func "$LINENO" "sendmsg" "ac_cv_func_sendmsg" 44183if test "x$ac_cv_func_sendmsg" = xyes 44184then : 44185 printf "%s\n" "#define HAVE_SENDMSG 1" >>confdefs.h 44186 44187fi 44188ac_fn_c_check_func "$LINENO" "sendmmsg" "ac_cv_func_sendmmsg" 44189if test "x$ac_cv_func_sendmmsg" = xyes 44190then : 44191 printf "%s\n" "#define HAVE_SENDMMSG 1" >>confdefs.h 44192 44193fi 44194ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" 44195if test "x$ac_cv_func_setlocale" = xyes 44196then : 44197 printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h 44198 44199fi 44200ac_fn_c_check_func "$LINENO" "setmode" "ac_cv_func_setmode" 44201if test "x$ac_cv_func_setmode" = xyes 44202then : 44203 printf "%s\n" "#define HAVE_SETMODE 1" >>confdefs.h 44204 44205fi 44206ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit" 44207if test "x$ac_cv_func_setrlimit" = xyes 44208then : 44209 printf "%s\n" "#define HAVE_SETRLIMIT 1" >>confdefs.h 44210 44211fi 44212ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 44213if test "x$ac_cv_func_snprintf" = xyes 44214then : 44215 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h 44216 44217fi 44218ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime" 44219if test "x$ac_cv_func_utime" = xyes 44220then : 44221 printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h 44222 44223fi 44224ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes" 44225if test "x$ac_cv_func_utimes" = xyes 44226then : 44227 printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h 44228 44229fi 44230 44231 44232if test "$curl_cv_native_windows" = 'yes' -o "$curl_cv_cygwin" = 'yes'; then 44233 ac_fn_c_check_func "$LINENO" "_setmode" "ac_cv_func__setmode" 44234if test "x$ac_cv_func__setmode" = xyes 44235then : 44236 printf "%s\n" "#define HAVE__SETMODE 1" >>confdefs.h 44237 44238fi 44239 44240fi 44241 44242if test -z "$ssl_backends"; then 44243 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random" 44244if test "x$ac_cv_func_arc4random" = xyes 44245then : 44246 printf "%s\n" "#define HAVE_ARC4RANDOM 1" >>confdefs.h 44247 44248fi 44249 44250fi 44251 44252if test "$curl_cv_native_windows" != 'yes'; then 44253 ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko" 44254if test "x$ac_cv_func_fseeko" = xyes 44255then : 44256 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h 44257 44258fi 44259 44260 44261 ac_fn_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "#include <stdio.h> 44262" "$ac_c_undeclared_builtin_options" "CFLAGS" 44263if test "x$ac_cv_have_decl_fseeko" = xyes 44264then : 44265 44266printf "%s\n" "#define HAVE_DECL_FSEEKO 1" >>confdefs.h 44267 44268fi 44269fi 44270 44271 44272 # 44273 tst_method="unknown" 44274 44275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5 44276printf %s "checking how to set a socket into non-blocking mode... " >&6; } 44277 if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then 44278 tst_method="fcntl O_NONBLOCK" 44279 elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then 44280 tst_method="ioctl FIONBIO" 44281 elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then 44282 tst_method="ioctlsocket FIONBIO" 44283 elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then 44284 tst_method="IoctlSocket FIONBIO" 44285 elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then 44286 tst_method="setsockopt SO_NONBLOCK" 44287 fi 44288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5 44289printf "%s\n" "$tst_method" >&6; } 44290 if test "$tst_method" = "unknown"; then 44291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5 44292printf "%s\n" "$as_me: WARNING: cannot determine non-blocking socket method." >&2;} 44293 fi 44294 44295 44296if test "x$BUILD_DOCS" != "x0" -o "x$USE_MANUAL" != "x0" -o "x$CURL_CA_EMBED" != "x"; then 44297 # Extract the first word of "perl", so it can be a program name with args. 44298set dummy perl; ac_word=$2 44299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44300printf %s "checking for $ac_word... " >&6; } 44301if test ${ac_cv_path_PERL+y} 44302then : 44303 printf %s "(cached) " >&6 44304else $as_nop 44305 case $PERL in 44306 [\\/]* | ?:[\\/]*) 44307 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 44308 ;; 44309 *) 44310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44311as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin" 44312for as_dir in $as_dummy 44313do 44314 IFS=$as_save_IFS 44315 case $as_dir in #((( 44316 '') as_dir=./ ;; 44317 */) ;; 44318 *) as_dir=$as_dir/ ;; 44319 esac 44320 for ac_exec_ext in '' $ac_executable_extensions; do 44321 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 44322 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext" 44323 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 44324 break 2 44325 fi 44326done 44327 done 44328IFS=$as_save_IFS 44329 44330 ;; 44331esac 44332fi 44333PERL=$ac_cv_path_PERL 44334if test -n "$PERL"; then 44335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 44336printf "%s\n" "$PERL" >&6; } 44337else 44338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44339printf "%s\n" "no" >&6; } 44340fi 44341 44342 44343 44344 44345 if test -z "$PERL"; then 44346 as_fn_error $? "perl was not found, needed for docs, manual and CA embed" "$LINENO" 5 44347 fi 44348fi 44349 44350 if test x"$BUILD_DOCS" = x1; then 44351 BUILD_DOCS_TRUE= 44352 BUILD_DOCS_FALSE='#' 44353else 44354 BUILD_DOCS_TRUE='#' 44355 BUILD_DOCS_FALSE= 44356fi 44357 44358 44359 44360if test "$USE_MANUAL" = "1"; then 44361 curl_manual_msg="enabled" 44362fi 44363 44364 if test x"$USE_MANUAL" = x1; then 44365 USE_MANUAL_TRUE= 44366 USE_MANUAL_FALSE='#' 44367else 44368 USE_MANUAL_TRUE='#' 44369 USE_MANUAL_FALSE= 44370fi 44371 44372 44373 44374 # 44375 if test "$want_ares" = "yes"; then 44376 clean_CPPFLAGS="$CPPFLAGS" 44377 clean_LDFLAGS="$LDFLAGS" 44378 clean_LIBS="$LIBS" 44379 configure_runpath=`pwd` 44380 if test -n "$want_ares_path"; then 44381 ARES_PCDIR="$want_ares_path/lib/pkgconfig" 44382 44383 if test -n "$PKG_CONFIG"; then 44384 PKGCONFIG="$PKG_CONFIG" 44385 else 44386 if test -n "$ac_tool_prefix"; then 44387 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 44388set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 44389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44390printf %s "checking for $ac_word... " >&6; } 44391if test ${ac_cv_path_PKGCONFIG+y} 44392then : 44393 printf %s "(cached) " >&6 44394else $as_nop 44395 case $PKGCONFIG in 44396 [\\/]* | ?:[\\/]*) 44397 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 44398 ;; 44399 *) 44400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44401as_dummy="$PATH:/usr/bin:/usr/local/bin" 44402for as_dir in $as_dummy 44403do 44404 IFS=$as_save_IFS 44405 case $as_dir in #((( 44406 '') as_dir=./ ;; 44407 */) ;; 44408 *) as_dir=$as_dir/ ;; 44409 esac 44410 for ac_exec_ext in '' $ac_executable_extensions; do 44411 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 44412 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 44413 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 44414 break 2 44415 fi 44416done 44417 done 44418IFS=$as_save_IFS 44419 44420 ;; 44421esac 44422fi 44423PKGCONFIG=$ac_cv_path_PKGCONFIG 44424if test -n "$PKGCONFIG"; then 44425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 44426printf "%s\n" "$PKGCONFIG" >&6; } 44427else 44428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44429printf "%s\n" "no" >&6; } 44430fi 44431 44432 44433fi 44434if test -z "$ac_cv_path_PKGCONFIG"; then 44435 ac_pt_PKGCONFIG=$PKGCONFIG 44436 # Extract the first word of "pkg-config", so it can be a program name with args. 44437set dummy pkg-config; ac_word=$2 44438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44439printf %s "checking for $ac_word... " >&6; } 44440if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 44441then : 44442 printf %s "(cached) " >&6 44443else $as_nop 44444 case $ac_pt_PKGCONFIG in 44445 [\\/]* | ?:[\\/]*) 44446 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 44447 ;; 44448 *) 44449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44450as_dummy="$PATH:/usr/bin:/usr/local/bin" 44451for as_dir in $as_dummy 44452do 44453 IFS=$as_save_IFS 44454 case $as_dir in #((( 44455 '') as_dir=./ ;; 44456 */) ;; 44457 *) as_dir=$as_dir/ ;; 44458 esac 44459 for ac_exec_ext in '' $ac_executable_extensions; do 44460 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 44461 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 44462 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 44463 break 2 44464 fi 44465done 44466 done 44467IFS=$as_save_IFS 44468 44469 ;; 44470esac 44471fi 44472ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 44473if test -n "$ac_pt_PKGCONFIG"; then 44474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 44475printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 44476else 44477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44478printf "%s\n" "no" >&6; } 44479fi 44480 44481 if test "x$ac_pt_PKGCONFIG" = x; then 44482 PKGCONFIG="no" 44483 else 44484 case $cross_compiling:$ac_tool_warned in 44485yes:) 44486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 44487printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 44488ac_tool_warned=yes ;; 44489esac 44490 PKGCONFIG=$ac_pt_PKGCONFIG 44491 fi 44492else 44493 PKGCONFIG="$ac_cv_path_PKGCONFIG" 44494fi 44495 44496 fi 44497 44498 if test "x$PKGCONFIG" != "xno"; then 44499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5 44500printf %s "checking for libcares options with pkg-config... " >&6; } 44501 itexists=` 44502 if test -n "$ARES_PCDIR"; then 44503 PKG_CONFIG_LIBDIR="$ARES_PCDIR" 44504 export PKG_CONFIG_LIBDIR 44505 fi 44506 $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1` 44507 44508 if test -z "$itexists"; then 44509 PKGCONFIG="no" 44510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44511printf "%s\n" "no" >&6; } 44512 else 44513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 44514printf "%s\n" "found" >&6; } 44515 fi 44516 fi 44517 44518 if test "$PKGCONFIG" != "no" ; then 44519 ares_LIBS=` 44520 if test -n "$ARES_PCDIR"; then 44521 PKG_CONFIG_LIBDIR="$ARES_PCDIR" 44522 export PKG_CONFIG_LIBDIR 44523 fi 44524 44525 $PKGCONFIG --libs-only-l libcares` 44526 ares_LDFLAGS=` 44527 if test -n "$ARES_PCDIR"; then 44528 PKG_CONFIG_LIBDIR="$ARES_PCDIR" 44529 export PKG_CONFIG_LIBDIR 44530 fi 44531 44532 $PKGCONFIG --libs-only-L libcares` 44533 ares_CPPFLAGS=` 44534 if test -n "$ARES_PCDIR"; then 44535 PKG_CONFIG_LIBDIR="$ARES_PCDIR" 44536 export PKG_CONFIG_LIBDIR 44537 fi 44538 44539 $PKGCONFIG --cflags-only-I libcares` 44540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares LIBS: \"$ares_LIBS\"" >&5 44541printf "%s\n" "$as_me: pkg-config: ares LIBS: \"$ares_LIBS\"" >&6;} 44542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&5 44543printf "%s\n" "$as_me: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&6;} 44544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&5 44545printf "%s\n" "$as_me: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;} 44546 else 44547 ares_CPPFLAGS="-I$want_ares_path/include" 44548 ares_LDFLAGS="-L$want_ares_path/lib" 44549 ares_LIBS="-lcares" 44550 fi 44551 else 44552 44553 if test -n "$PKG_CONFIG"; then 44554 PKGCONFIG="$PKG_CONFIG" 44555 else 44556 if test -n "$ac_tool_prefix"; then 44557 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 44558set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 44559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44560printf %s "checking for $ac_word... " >&6; } 44561if test ${ac_cv_path_PKGCONFIG+y} 44562then : 44563 printf %s "(cached) " >&6 44564else $as_nop 44565 case $PKGCONFIG in 44566 [\\/]* | ?:[\\/]*) 44567 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 44568 ;; 44569 *) 44570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44571as_dummy="$PATH:/usr/bin:/usr/local/bin" 44572for as_dir in $as_dummy 44573do 44574 IFS=$as_save_IFS 44575 case $as_dir in #((( 44576 '') as_dir=./ ;; 44577 */) ;; 44578 *) as_dir=$as_dir/ ;; 44579 esac 44580 for ac_exec_ext in '' $ac_executable_extensions; do 44581 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 44582 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 44583 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 44584 break 2 44585 fi 44586done 44587 done 44588IFS=$as_save_IFS 44589 44590 ;; 44591esac 44592fi 44593PKGCONFIG=$ac_cv_path_PKGCONFIG 44594if test -n "$PKGCONFIG"; then 44595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 44596printf "%s\n" "$PKGCONFIG" >&6; } 44597else 44598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44599printf "%s\n" "no" >&6; } 44600fi 44601 44602 44603fi 44604if test -z "$ac_cv_path_PKGCONFIG"; then 44605 ac_pt_PKGCONFIG=$PKGCONFIG 44606 # Extract the first word of "pkg-config", so it can be a program name with args. 44607set dummy pkg-config; ac_word=$2 44608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44609printf %s "checking for $ac_word... " >&6; } 44610if test ${ac_cv_path_ac_pt_PKGCONFIG+y} 44611then : 44612 printf %s "(cached) " >&6 44613else $as_nop 44614 case $ac_pt_PKGCONFIG in 44615 [\\/]* | ?:[\\/]*) 44616 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 44617 ;; 44618 *) 44619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44620as_dummy="$PATH:/usr/bin:/usr/local/bin" 44621for as_dir in $as_dummy 44622do 44623 IFS=$as_save_IFS 44624 case $as_dir in #((( 44625 '') as_dir=./ ;; 44626 */) ;; 44627 *) as_dir=$as_dir/ ;; 44628 esac 44629 for ac_exec_ext in '' $ac_executable_extensions; do 44630 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 44631 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext" 44632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 44633 break 2 44634 fi 44635done 44636 done 44637IFS=$as_save_IFS 44638 44639 ;; 44640esac 44641fi 44642ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 44643if test -n "$ac_pt_PKGCONFIG"; then 44644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 44645printf "%s\n" "$ac_pt_PKGCONFIG" >&6; } 44646else 44647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44648printf "%s\n" "no" >&6; } 44649fi 44650 44651 if test "x$ac_pt_PKGCONFIG" = x; then 44652 PKGCONFIG="no" 44653 else 44654 case $cross_compiling:$ac_tool_warned in 44655yes:) 44656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 44657printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 44658ac_tool_warned=yes ;; 44659esac 44660 PKGCONFIG=$ac_pt_PKGCONFIG 44661 fi 44662else 44663 PKGCONFIG="$ac_cv_path_PKGCONFIG" 44664fi 44665 44666 fi 44667 44668 if test "x$PKGCONFIG" != "xno"; then 44669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5 44670printf %s "checking for libcares options with pkg-config... " >&6; } 44671 itexists=` 44672 if test -n ""; then 44673 PKG_CONFIG_LIBDIR="" 44674 export PKG_CONFIG_LIBDIR 44675 fi 44676 $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1` 44677 44678 if test -z "$itexists"; then 44679 PKGCONFIG="no" 44680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44681printf "%s\n" "no" >&6; } 44682 else 44683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5 44684printf "%s\n" "found" >&6; } 44685 fi 44686 fi 44687 44688 if test "$PKGCONFIG" != "no" ; then 44689 ares_LIBS=`$PKGCONFIG --libs-only-l libcares` 44690 ares_LDFLAGS=`$PKGCONFIG --libs-only-L libcares` 44691 ares_CPPFLAGS=`$PKGCONFIG --cflags-only-I libcares` 44692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&5 44693printf "%s\n" "$as_me: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&6;} 44694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&5 44695printf "%s\n" "$as_me: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&6;} 44696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&5 44697printf "%s\n" "$as_me: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;} 44698 else 44699 ares_CPPFLAGS="" 44700 ares_LDFLAGS="" 44701 ares_LIBS="-lcares" 44702 fi 44703 fi 44704 # 44705 CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS" 44706 LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS" 44707 LIBS="$ares_LIBS $clean_LIBS" 44708 # 44709 44710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5 44711printf %s "checking that c-ares is good and recent enough... " >&6; } 44712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 44713/* end confdefs.h. */ 44714 44715 44716 #include <ares.h> 44717 /* set of dummy functions in case c-ares was built with debug */ 44718 void curl_dofree() { } 44719 void curl_sclose() { } 44720 void curl_domalloc() { } 44721 void curl_docalloc() { } 44722 void curl_socket() { } 44723 44724int main(void) 44725{ 44726 44727 ares_channel channel; 44728 ares_cancel(channel); /* added in 1.2.0 */ 44729 ares_process_fd(channel, 0, 0); /* added in 1.4.0 */ 44730 ares_dup(&channel, channel); /* added in 1.6.0 */ 44731 44732 ; 44733 return 0; 44734} 44735 44736_ACEOF 44737if ac_fn_c_try_link "$LINENO" 44738then : 44739 44740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44741printf "%s\n" "yes" >&6; } 44742 44743else $as_nop 44744 44745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44746printf "%s\n" "no" >&6; } 44747 as_fn_error $? "c-ares library defective or too old" "$LINENO" 5 44748 CPPFLAGS="$clean_CPPFLAGS" 44749 LDFLAGS="$clean_LDFLAGS" 44750 LIBS="$clean_LIBS" 44751 # prevent usage 44752 want_ares="no" 44753 44754fi 44755rm -f core conftest.err conftest.$ac_objext conftest.beam \ 44756 conftest$ac_exeext conftest.$ac_ext 44757 44758 if test "$want_ares" = "yes"; then 44759 44760printf "%s\n" "#define USE_ARES 1" >>confdefs.h 44761 44762 44763printf "%s\n" "#define CARES_NO_DEPRECATED 1" >>confdefs.h 44764 44765 USE_ARES=1 44766 44767 LIBCURL_PC_REQUIRES_PRIVATE="$LIBCURL_PC_REQUIRES_PRIVATE libcares" 44768 curl_res_msg="c-ares" 44769 fi 44770 fi 44771 44772 44773if test "x$want_ares" != xyes; then 44774 44775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5 44776printf %s "checking whether to enable the threaded resolver... " >&6; } 44777 OPT_THRES="default" 44778 # Check whether --enable-threaded_resolver was given. 44779if test ${enable_threaded_resolver+y} 44780then : 44781 enableval=$enable_threaded_resolver; OPT_THRES=$enableval 44782fi 44783 44784 case "$OPT_THRES" in 44785 no) 44786 want_thres="no" 44787 ;; 44788 *) 44789 want_thres="yes" 44790 ;; 44791 esac 44792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5 44793printf "%s\n" "$want_thres" >&6; } 44794 44795 44796 if test "$ipv6" = yes; then 44797 44798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to link macOS CoreFoundation, CoreServices, and SystemConfiguration frameworks" >&5 44799printf %s "checking whether to link macOS CoreFoundation, CoreServices, and SystemConfiguration frameworks... " >&6; } 44800case $host in 44801 *-apple-*) 44802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 44803/* end confdefs.h. */ 44804 44805 44806 #include <sys/types.h> 44807 #include <TargetConditionals.h> 44808 44809int main(void) 44810{ 44811 44812 #if TARGET_OS_MAC && !(defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE) 44813 return 0; 44814 #else 44815 #error Not macOS 44816 #endif 44817 44818 ; 44819 return 0; 44820} 44821 44822_ACEOF 44823if ac_fn_c_try_compile "$LINENO" 44824then : 44825 44826 build_for_macos="yes" 44827 44828else $as_nop 44829 44830 build_for_macos="no" 44831 44832fi 44833rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 44834 if test "x$build_for_macos" != xno; then 44835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44836printf "%s\n" "yes" >&6; } 44837 LDFLAGS="$LDFLAGS -framework CoreFoundation -framework CoreServices -framework SystemConfiguration" 44838 else 44839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44840printf "%s\n" "no" >&6; } 44841 fi 44842 ;; 44843 *) 44844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44845printf "%s\n" "no" >&6; } 44846esac 44847 44848 fi 44849fi 44850 44851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use POSIX threads for threaded resolver" >&5 44852printf %s "checking whether to use POSIX threads for threaded resolver... " >&6; } 44853# Check whether --enable-pthreads was given. 44854if test ${enable_pthreads+y} 44855then : 44856 enableval=$enable_pthreads; case "$enableval" in 44857 no) 44858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44859printf "%s\n" "no" >&6; } 44860 want_pthreads=no 44861 ;; 44862 *) 44863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44864printf "%s\n" "yes" >&6; } 44865 want_pthreads=yes 44866 ;; 44867 esac 44868else $as_nop 44869 44870 default_pthreads=1 44871 if test "$curl_cv_native_windows" = "yes"; then 44872 default_pthreads=0 44873 else 44874 case $host_os in 44875 msdos*) 44876 default_pthreads=0 44877 ;; 44878 esac 44879 fi 44880 if test "$default_pthreads" = '0'; then 44881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 44882printf "%s\n" "no" >&6; } 44883 want_pthreads=no 44884 else 44885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: auto" >&5 44886printf "%s\n" "auto" >&6; } 44887 want_pthreads=auto 44888 fi 44889 44890 44891fi 44892 44893 44894if test "$want_pthreads" != "no"; then 44895 if test "$want_pthreads" = "yes" && test "$dontwant_rt" = "yes"; then 44896 as_fn_error $? "options --enable-pthreads and --disable-rt are mutually exclusive" "$LINENO" 5 44897 fi 44898 if test "$dontwant_rt" != "no"; then 44899 if test "$want_pthreads" = "yes"; then 44900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-pthreads Ignored since librt is disabled." >&5 44901printf "%s\n" "$as_me: WARNING: --enable-pthreads Ignored since librt is disabled." >&2;} 44902 fi 44903 want_pthreads=no 44904 fi 44905fi 44906 44907if test "$want_pthreads" != "no" && test "$want_thres" != "yes"; then 44908 want_pthreads=no 44909fi 44910 44911if test "$want_pthreads" != "no"; then 44912 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 44913if test "x$ac_cv_header_pthread_h" = xyes 44914then : 44915 44916printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h 44917 44918 save_CFLAGS="$CFLAGS" 44919 save_LIBS="$LIBS" 44920 44921 LIBS= 44922 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create" 44923if test "x$ac_cv_func_pthread_create" = xyes 44924then : 44925 USE_THREADS_POSIX=1 44926fi 44927 44928 LIBS="$save_LIBS" 44929 44930 case $host in 44931 *-hp-hpux*) 44932 USE_THREADS_POSIX="" 44933 ;; 44934 *) 44935 ;; 44936 esac 44937 44938 if test "$USE_THREADS_POSIX" != "1"; then 44939 # assign PTHREAD for pkg-config use 44940 PTHREAD=" -pthread" 44941 44942 case $host in 44943 *-ibm-aix*) 44944 COMPILER_VERSION=`"$CC" -qversion 2>/dev/null` 44945 if test x"$COMPILER_VERSION" = "x"; then 44946 CFLAGS="$CFLAGS -pthread" 44947 else 44948 CFLAGS="$CFLAGS -qthreaded" 44949 fi 44950 ;; 44951 powerpc-*amigaos*) 44952 PTHREAD=" -lpthread" 44953 ;; 44954 *) 44955 CFLAGS="$CFLAGS -pthread" 44956 ;; 44957 esac 44958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 44959printf %s "checking for pthread_create in -lpthread... " >&6; } 44960if test ${ac_cv_lib_pthread_pthread_create+y} 44961then : 44962 printf %s "(cached) " >&6 44963else $as_nop 44964 ac_check_lib_save_LIBS=$LIBS 44965LIBS="-lpthread $LIBS" 44966cat confdefs.h - <<_ACEOF >conftest.$ac_ext 44967/* end confdefs.h. */ 44968 44969 44970#ifdef __cplusplus 44971extern "C" 44972#endif 44973char pthread_create (); 44974int main(void) 44975{ 44976return pthread_create (); 44977 ; 44978 return 0; 44979} 44980_ACEOF 44981if ac_fn_c_try_link "$LINENO" 44982then : 44983 ac_cv_lib_pthread_pthread_create=yes 44984else $as_nop 44985 ac_cv_lib_pthread_pthread_create=no 44986fi 44987rm -f core conftest.err conftest.$ac_objext conftest.beam \ 44988 conftest$ac_exeext conftest.$ac_ext 44989LIBS=$ac_check_lib_save_LIBS 44990fi 44991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 44992printf "%s\n" "$ac_cv_lib_pthread_pthread_create" >&6; } 44993if test "x$ac_cv_lib_pthread_pthread_create" = xyes 44994then : 44995 USE_THREADS_POSIX=1 44996else $as_nop 44997 CFLAGS="$save_CFLAGS" 44998fi 44999 45000 fi 45001 45002 if test "x$USE_THREADS_POSIX" = "x1"; then 45003 45004printf "%s\n" "#define USE_THREADS_POSIX 1" >>confdefs.h 45005 45006 curl_res_msg="POSIX threaded" 45007 fi 45008 45009fi 45010 45011fi 45012 45013if test "$want_thres" = "yes" && test "x$USE_THREADS_POSIX" != "x1"; then 45014 if test "$want_pthreads" = "yes"; then 45015 as_fn_error $? "--enable-pthreads but pthreads was not found" "$LINENO" 5 45016 fi 45017 if test "$curl_cv_native_windows" = "yes"; then 45018 USE_THREADS_WIN32=1 45019 45020printf "%s\n" "#define USE_THREADS_WIN32 1" >>confdefs.h 45021 45022 curl_res_msg="Win32 threaded" 45023 else 45024 as_fn_error $? "Threaded resolver enabled but no thread library found" "$LINENO" 5 45025 fi 45026fi 45027 45028ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default" 45029if test "x$ac_cv_header_dirent_h" = xyes 45030then : 45031 45032printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h 45033 45034 ac_fn_c_check_func "$LINENO" "opendir" "ac_cv_func_opendir" 45035if test "x$ac_cv_func_opendir" = xyes 45036then : 45037 45038printf "%s\n" "#define HAVE_OPENDIR 1" >>confdefs.h 45039 45040fi 45041 45042 45043 45044fi 45045 45046 45047 45048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking convert -I options to -isystem" >&5 45049printf %s "checking convert -I options to -isystem... " >&6; } 45050 if test "$compiler_id" = "GNU_C" || 45051 test "$compiler_id" = "CLANG" -o "$compiler_id" = "APPLECLANG"; then 45052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45053printf "%s\n" "yes" >&6; } 45054 tmp_has_include="no" 45055 tmp_chg_FLAGS="$CFLAGS" 45056 for word1 in $tmp_chg_FLAGS; do 45057 case "$word1" in 45058 -I*) 45059 tmp_has_include="yes" 45060 ;; 45061 esac 45062 done 45063 if test "$tmp_has_include" = "yes"; then 45064 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'` 45065 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'` 45066 CFLAGS="$tmp_chg_FLAGS" 45067 squeeze CFLAGS 45068 fi 45069 tmp_has_include="no" 45070 tmp_chg_FLAGS="$CPPFLAGS" 45071 for word1 in $tmp_chg_FLAGS; do 45072 case "$word1" in 45073 -I*) 45074 tmp_has_include="yes" 45075 ;; 45076 esac 45077 done 45078 if test "$tmp_has_include" = "yes"; then 45079 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'` 45080 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'` 45081 CPPFLAGS="$tmp_chg_FLAGS" 45082 squeeze CPPFLAGS 45083 fi 45084 else 45085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 45086printf "%s\n" "no" >&6; } 45087 fi 45088 45089 45090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5 45091printf %s "checking whether to enable verbose strings... " >&6; } 45092# Check whether --enable-verbose was given. 45093if test ${enable_verbose+y} 45094then : 45095 enableval=$enable_verbose; case "$enableval" in 45096 no) 45097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 45098printf "%s\n" "no" >&6; } 45099 45100printf "%s\n" "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h 45101 45102 curl_verbose_msg="no" 45103 ;; 45104 *) 45105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45106printf "%s\n" "yes" >&6; } 45107 ;; 45108 esac 45109else $as_nop 45110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45111printf "%s\n" "yes" >&6; } 45112 45113fi 45114 45115 45116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5 45117printf %s "checking whether to enable SSPI support (Windows native builds only)... " >&6; } 45118# Check whether --enable-sspi was given. 45119if test ${enable_sspi+y} 45120then : 45121 enableval=$enable_sspi; case "$enableval" in 45122 yes) 45123 if test "$curl_cv_native_windows" = "yes"; then 45124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45125printf "%s\n" "yes" >&6; } 45126 45127printf "%s\n" "#define USE_WINDOWS_SSPI 1" >>confdefs.h 45128 45129 USE_WINDOWS_SSPI=1 45130 45131 curl_sspi_msg="enabled" 45132 else 45133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 45134printf "%s\n" "no" >&6; } 45135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5 45136printf "%s\n" "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;} 45137 fi 45138 ;; 45139 *) 45140 if test "x$SCHANNEL_ENABLED" = "x1"; then 45141 # --with-schannel implies --enable-sspi 45142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45143printf "%s\n" "yes" >&6; } 45144 else 45145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 45146printf "%s\n" "no" >&6; } 45147 fi 45148 ;; 45149 esac 45150else $as_nop 45151 if test "x$SCHANNEL_ENABLED" = "x1"; then 45152 # --with-schannel implies --enable-sspi 45153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45154printf "%s\n" "yes" >&6; } 45155 else 45156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 45157printf "%s\n" "no" >&6; } 45158 fi 45159 45160fi 45161 45162 45163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable basic authentication method" >&5 45164printf %s "checking whether to enable basic authentication method... " >&6; } 45165# Check whether --enable-basic-auth was given. 45166if test ${enable_basic_auth+y} 45167then : 45168 enableval=$enable_basic_auth; case "$enableval" in 45169 no) 45170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 45171printf "%s\n" "no" >&6; } 45172 45173printf "%s\n" "#define CURL_DISABLE_BASIC_AUTH 1" >>confdefs.h 45174 45175 CURL_DISABLE_BASIC_AUTH=1 45176 ;; 45177 *) 45178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45179printf "%s\n" "yes" >&6; } 45180 ;; 45181 esac 45182else $as_nop 45183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45184printf "%s\n" "yes" >&6; } 45185 45186fi 45187 45188 45189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable bearer authentication method" >&5 45190printf %s "checking whether to enable bearer authentication method... " >&6; } 45191# Check whether --enable-bearer-auth was given. 45192if test ${enable_bearer_auth+y} 45193then : 45194 enableval=$enable_bearer_auth; case "$enableval" in 45195 no) 45196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 45197printf "%s\n" "no" >&6; } 45198 45199printf "%s\n" "#define CURL_DISABLE_BEARER_AUTH 1" >>confdefs.h 45200 45201 CURL_DISABLE_BEARER_AUTH=1 45202 ;; 45203 *) 45204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45205printf "%s\n" "yes" >&6; } 45206 ;; 45207 esac 45208else $as_nop 45209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45210printf "%s\n" "yes" >&6; } 45211 45212fi 45213 45214 45215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable digest authentication method" >&5 45216printf %s "checking whether to enable digest authentication method... " >&6; } 45217# Check whether --enable-digest-auth was given. 45218if test ${enable_digest_auth+y} 45219then : 45220 enableval=$enable_digest_auth; case "$enableval" in 45221 no) 45222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 45223printf "%s\n" "no" >&6; } 45224 45225printf "%s\n" "#define CURL_DISABLE_DIGEST_AUTH 1" >>confdefs.h 45226 45227 CURL_DISABLE_DIGEST_AUTH=1 45228 ;; 45229 *) 45230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45231printf "%s\n" "yes" >&6; } 45232 ;; 45233 esac 45234else $as_nop 45235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45236printf "%s\n" "yes" >&6; } 45237 45238fi 45239 45240 45241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable kerberos authentication method" >&5 45242printf %s "checking whether to enable kerberos authentication method... " >&6; } 45243# Check whether --enable-kerberos-auth was given. 45244if test ${enable_kerberos_auth+y} 45245then : 45246 enableval=$enable_kerberos_auth; case "$enableval" in 45247 no) 45248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 45249printf "%s\n" "no" >&6; } 45250 45251printf "%s\n" "#define CURL_DISABLE_KERBEROS_AUTH 1" >>confdefs.h 45252 45253 CURL_DISABLE_KERBEROS_AUTH=1 45254 ;; 45255 *) 45256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45257printf "%s\n" "yes" >&6; } 45258 ;; 45259 esac 45260else $as_nop 45261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45262printf "%s\n" "yes" >&6; } 45263 45264fi 45265 45266 45267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable negotiate authentication method" >&5 45268printf %s "checking whether to enable negotiate authentication method... " >&6; } 45269# Check whether --enable-negotiate-auth was given. 45270if test ${enable_negotiate_auth+y} 45271then : 45272 enableval=$enable_negotiate_auth; case "$enableval" in 45273 no) 45274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 45275printf "%s\n" "no" >&6; } 45276 45277printf "%s\n" "#define CURL_DISABLE_NEGOTIATE_AUTH 1" >>confdefs.h 45278 45279 CURL_DISABLE_NEGOTIATE_AUTH=1 45280 ;; 45281 *) 45282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45283printf "%s\n" "yes" >&6; } 45284 ;; 45285 esac 45286else $as_nop 45287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45288printf "%s\n" "yes" >&6; } 45289 45290fi 45291 45292 45293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable aws sig methods" >&5 45294printf %s "checking whether to enable aws sig methods... " >&6; } 45295# Check whether --enable-aws was given. 45296if test ${enable_aws+y} 45297then : 45298 enableval=$enable_aws; case "$enableval" in 45299 no) 45300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 45301printf "%s\n" "no" >&6; } 45302 45303printf "%s\n" "#define CURL_DISABLE_AWS 1" >>confdefs.h 45304 45305 CURL_DISABLE_AWS=1 45306 ;; 45307 *) 45308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45309printf "%s\n" "yes" >&6; } 45310 ;; 45311 esac 45312else $as_nop 45313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45314printf "%s\n" "yes" >&6; } 45315 45316fi 45317 45318 45319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support NTLM" >&5 45320printf %s "checking whether to support NTLM... " >&6; } 45321# Check whether --enable-ntlm was given. 45322if test ${enable_ntlm+y} 45323then : 45324 enableval=$enable_ntlm; case "$enableval" in 45325 no) 45326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 45327printf "%s\n" "no" >&6; } 45328 45329printf "%s\n" "#define CURL_DISABLE_NTLM 1" >>confdefs.h 45330 45331 CURL_DISABLE_NTLM=1 45332 ;; 45333 *) 45334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45335printf "%s\n" "yes" >&6; } 45336 ;; 45337 esac 45338else $as_nop 45339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45340printf "%s\n" "yes" >&6; } 45341 45342fi 45343 45344 45345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5 45346printf %s "checking whether to enable TLS-SRP authentication... " >&6; } 45347# Check whether --enable-tls-srp was given. 45348if test ${enable_tls_srp+y} 45349then : 45350 enableval=$enable_tls_srp; case "$enableval" in 45351 no) 45352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 45353printf "%s\n" "no" >&6; } 45354 want_tls_srp=no 45355 ;; 45356 *) 45357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45358printf "%s\n" "yes" >&6; } 45359 want_tls_srp=yes 45360 ;; 45361 esac 45362else $as_nop 45363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45364printf "%s\n" "yes" >&6; } 45365 want_tls_srp=yes 45366 45367fi 45368 45369 45370if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1"); then 45371 45372printf "%s\n" "#define USE_TLS_SRP 1" >>confdefs.h 45373 45374 USE_TLS_SRP=1 45375 curl_tls_srp_msg="enabled" 45376fi 45377 45378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5 45379printf %s "checking whether to enable Unix domain sockets... " >&6; } 45380# Check whether --enable-unix-sockets was given. 45381if test ${enable_unix_sockets+y} 45382then : 45383 enableval=$enable_unix_sockets; case "$enableval" in 45384 no) 45385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 45386printf "%s\n" "no" >&6; } 45387 want_unix_sockets=no 45388 ;; 45389 *) 45390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45391printf "%s\n" "yes" >&6; } 45392 want_unix_sockets=yes 45393 ;; 45394 esac 45395else $as_nop 45396 45397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: auto" >&5 45398printf "%s\n" "auto" >&6; } 45399 want_unix_sockets=auto 45400 45401 45402fi 45403 45404if test "x$want_unix_sockets" != "xno"; then 45405 if test "x$curl_cv_native_windows" = "xyes"; then 45406 USE_UNIX_SOCKETS=1 45407 45408printf "%s\n" "#define USE_UNIX_SOCKETS 1" >>confdefs.h 45409 45410 curl_unix_sockets_msg="enabled" 45411 else 45412 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" " 45413 #include <sys/un.h> 45414 45415" 45416if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes 45417then : 45418 45419 45420printf "%s\n" "#define USE_UNIX_SOCKETS 1" >>confdefs.h 45421 45422 USE_UNIX_SOCKETS=1 45423 45424 curl_unix_sockets_msg="enabled" 45425 45426else $as_nop 45427 45428 if test "x$want_unix_sockets" = "xyes"; then 45429 as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5 45430 fi 45431 45432fi 45433 45434 fi 45435fi 45436 45437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support cookies" >&5 45438printf %s "checking whether to support cookies... " >&6; } 45439# Check whether --enable-cookies was given. 45440if test ${enable_cookies+y} 45441then : 45442 enableval=$enable_cookies; case "$enableval" in 45443 no) 45444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 45445printf "%s\n" "no" >&6; } 45446 45447printf "%s\n" "#define CURL_DISABLE_COOKIES 1" >>confdefs.h 45448 45449 ;; 45450 *) 45451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45452printf "%s\n" "yes" >&6; } 45453 ;; 45454 esac 45455else $as_nop 45456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45457printf "%s\n" "yes" >&6; } 45458 45459fi 45460 45461 45462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support socketpair" >&5 45463printf %s "checking whether to support socketpair... " >&6; } 45464# Check whether --enable-socketpair was given. 45465if test ${enable_socketpair+y} 45466then : 45467 enableval=$enable_socketpair; case "$enableval" in 45468 no) 45469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 45470printf "%s\n" "no" >&6; } 45471 45472printf "%s\n" "#define CURL_DISABLE_SOCKETPAIR 1" >>confdefs.h 45473 45474 ;; 45475 *) 45476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45477printf "%s\n" "yes" >&6; } 45478 ;; 45479 esac 45480else $as_nop 45481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45482printf "%s\n" "yes" >&6; } 45483 45484fi 45485 45486 45487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support HTTP authentication" >&5 45488printf %s "checking whether to support HTTP authentication... " >&6; } 45489# Check whether --enable-http-auth was given. 45490if test ${enable_http_auth+y} 45491then : 45492 enableval=$enable_http_auth; case "$enableval" in 45493 no) 45494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 45495printf "%s\n" "no" >&6; } 45496 45497printf "%s\n" "#define CURL_DISABLE_HTTP_AUTH 1" >>confdefs.h 45498 45499 ;; 45500 *) 45501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45502printf "%s\n" "yes" >&6; } 45503 ;; 45504 esac 45505else $as_nop 45506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45507printf "%s\n" "yes" >&6; } 45508 45509fi 45510 45511 45512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support DoH" >&5 45513printf %s "checking whether to support DoH... " >&6; } 45514# Check whether --enable-doh was given. 45515if test ${enable_doh+y} 45516then : 45517 enableval=$enable_doh; case "$enableval" in 45518 no) 45519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 45520printf "%s\n" "no" >&6; } 45521 45522printf "%s\n" "#define CURL_DISABLE_DOH 1" >>confdefs.h 45523 45524 ;; 45525 *) 45526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45527printf "%s\n" "yes" >&6; } 45528 ;; 45529 esac 45530else $as_nop 45531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45532printf "%s\n" "yes" >&6; } 45533 45534fi 45535 45536 45537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support the MIME API" >&5 45538printf %s "checking whether to support the MIME API... " >&6; } 45539# Check whether --enable-mime was given. 45540if test ${enable_mime+y} 45541then : 45542 enableval=$enable_mime; case "$enableval" in 45543 no) 45544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 45545printf "%s\n" "no" >&6; } 45546 45547printf "%s\n" "#define CURL_DISABLE_MIME 1" >>confdefs.h 45548 45549 ;; 45550 *) 45551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45552printf "%s\n" "yes" >&6; } 45553 ;; 45554 esac 45555else $as_nop 45556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45557printf "%s\n" "yes" >&6; } 45558 45559fi 45560 45561 45562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support binding connections locally" >&5 45563printf %s "checking whether to support binding connections locally... " >&6; } 45564# Check whether --enable-bindlocal was given. 45565if test ${enable_bindlocal+y} 45566then : 45567 enableval=$enable_bindlocal; case "$enableval" in 45568 no) 45569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 45570printf "%s\n" "no" >&6; } 45571 45572printf "%s\n" "#define CURL_DISABLE_BINDLOCAL 1" >>confdefs.h 45573 45574 ;; 45575 *) 45576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45577printf "%s\n" "yes" >&6; } 45578 ;; 45579 esac 45580else $as_nop 45581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45582printf "%s\n" "yes" >&6; } 45583 45584fi 45585 45586 45587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support the form API" >&5 45588printf %s "checking whether to support the form API... " >&6; } 45589# Check whether --enable-form-api was given. 45590if test ${enable_form_api+y} 45591then : 45592 enableval=$enable_form_api; case "$enableval" in 45593 no) 45594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 45595printf "%s\n" "no" >&6; } 45596 45597printf "%s\n" "#define CURL_DISABLE_FORM_API 1" >>confdefs.h 45598 45599 ;; 45600 *) 45601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45602printf "%s\n" "yes" >&6; } 45603 test "$enable_mime" = no && 45604 as_fn_error $? "MIME support needs to be enabled in order to enable form API support" "$LINENO" 5 45605 ;; 45606 esac 45607else $as_nop 45608 45609 if test "$enable_mime" = no; then 45610 enable_form_api=no 45611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 45612printf "%s\n" "no" >&6; } 45613 45614printf "%s\n" "#define CURL_DISABLE_FORM_API 1" >>confdefs.h 45615 45616 else 45617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45618printf "%s\n" "yes" >&6; } 45619 fi 45620 45621fi 45622 45623 45624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support date parsing" >&5 45625printf %s "checking whether to support date parsing... " >&6; } 45626# Check whether --enable-dateparse was given. 45627if test ${enable_dateparse+y} 45628then : 45629 enableval=$enable_dateparse; case "$enableval" in 45630 no) 45631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 45632printf "%s\n" "no" >&6; } 45633 45634printf "%s\n" "#define CURL_DISABLE_PARSEDATE 1" >>confdefs.h 45635 45636 ;; 45637 *) 45638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45639printf "%s\n" "yes" >&6; } 45640 ;; 45641 esac 45642else $as_nop 45643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45644printf "%s\n" "yes" >&6; } 45645 45646fi 45647 45648 45649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support netrc parsing" >&5 45650printf %s "checking whether to support netrc parsing... " >&6; } 45651# Check whether --enable-netrc was given. 45652if test ${enable_netrc+y} 45653then : 45654 enableval=$enable_netrc; case "$enableval" in 45655 no) 45656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 45657printf "%s\n" "no" >&6; } 45658 45659printf "%s\n" "#define CURL_DISABLE_NETRC 1" >>confdefs.h 45660 45661 ;; 45662 *) 45663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45664printf "%s\n" "yes" >&6; } 45665 ;; 45666 esac 45667else $as_nop 45668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45669printf "%s\n" "yes" >&6; } 45670 45671fi 45672 45673 45674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support progress-meter" >&5 45675printf %s "checking whether to support progress-meter... " >&6; } 45676# Check whether --enable-progress-meter was given. 45677if test ${enable_progress_meter+y} 45678then : 45679 enableval=$enable_progress_meter; case "$enableval" in 45680 no) 45681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 45682printf "%s\n" "no" >&6; } 45683 45684printf "%s\n" "#define CURL_DISABLE_PROGRESS_METER 1" >>confdefs.h 45685 45686 ;; 45687 *) 45688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45689printf "%s\n" "yes" >&6; } 45690 ;; 45691 esac 45692else $as_nop 45693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45694printf "%s\n" "yes" >&6; } 45695 45696fi 45697 45698 45699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support the SHA-512/256 hash algorithm" >&5 45700printf %s "checking whether to support the SHA-512/256 hash algorithm... " >&6; } 45701# Check whether --enable-sha512-256 was given. 45702if test ${enable_sha512_256+y} 45703then : 45704 enableval=$enable_sha512_256; case "$enableval" in 45705 no) 45706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 45707printf "%s\n" "no" >&6; } 45708 45709printf "%s\n" "#define CURL_DISABLE_SHA512_256 1" >>confdefs.h 45710 45711 ;; 45712 *) 45713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45714printf "%s\n" "yes" >&6; } 45715 ;; 45716 esac 45717else $as_nop 45718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45719printf "%s\n" "yes" >&6; } 45720 45721fi 45722 45723 45724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support DNS shuffling" >&5 45725printf %s "checking whether to support DNS shuffling... " >&6; } 45726# Check whether --enable-dnsshuffle was given. 45727if test ${enable_dnsshuffle+y} 45728then : 45729 enableval=$enable_dnsshuffle; case "$enableval" in 45730 no) 45731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 45732printf "%s\n" "no" >&6; } 45733 45734printf "%s\n" "#define CURL_DISABLE_SHUFFLE_DNS 1" >>confdefs.h 45735 45736 ;; 45737 *) 45738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45739printf "%s\n" "yes" >&6; } 45740 ;; 45741 esac 45742else $as_nop 45743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45744printf "%s\n" "yes" >&6; } 45745 45746fi 45747 45748 45749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support curl_easy_option*" >&5 45750printf %s "checking whether to support curl_easy_option*... " >&6; } 45751# Check whether --enable-get-easy-options was given. 45752if test ${enable_get_easy_options+y} 45753then : 45754 enableval=$enable_get_easy_options; case "$enableval" in 45755 no) 45756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 45757printf "%s\n" "no" >&6; } 45758 45759printf "%s\n" "#define CURL_DISABLE_GETOPTIONS 1" >>confdefs.h 45760 45761 ;; 45762 *) 45763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45764printf "%s\n" "yes" >&6; } 45765 ;; 45766 esac 45767else $as_nop 45768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45769printf "%s\n" "yes" >&6; } 45770 45771fi 45772 45773 45774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support alt-svc" >&5 45775printf %s "checking whether to support alt-svc... " >&6; } 45776# Check whether --enable-alt-svc was given. 45777if test ${enable_alt_svc+y} 45778then : 45779 enableval=$enable_alt_svc; case "$enableval" in 45780 no) 45781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 45782printf "%s\n" "no" >&6; } 45783 45784printf "%s\n" "#define CURL_DISABLE_ALTSVC 1" >>confdefs.h 45785 45786 curl_altsvc_msg="no"; 45787 enable_altsvc="no" 45788 ;; 45789 *) 45790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45791printf "%s\n" "yes" >&6; } 45792 ;; 45793 esac 45794else $as_nop 45795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45796printf "%s\n" "yes" >&6; } 45797 45798fi 45799 45800 45801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support headers-api" >&5 45802printf %s "checking whether to support headers-api... " >&6; } 45803# Check whether --enable-headers-api was given. 45804if test ${enable_headers_api+y} 45805then : 45806 enableval=$enable_headers_api; case "$enableval" in 45807 no) 45808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 45809printf "%s\n" "no" >&6; } 45810 curl_headers_msg="no (--enable-headers-api)" 45811 45812printf "%s\n" "#define CURL_DISABLE_HEADERS_API 1" >>confdefs.h 45813 45814 ;; 45815 *) 45816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45817printf "%s\n" "yes" >&6; } 45818 ;; 45819 esac 45820else $as_nop 45821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45822printf "%s\n" "yes" >&6; } 45823 45824fi 45825 45826 45827if test -n "$SSL_ENABLED"; then 45828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support HSTS" >&5 45829printf %s "checking whether to support HSTS... " >&6; } 45830 # Check whether --enable-hsts was given. 45831if test ${enable_hsts+y} 45832then : 45833 enableval=$enable_hsts; case "$enableval" in 45834 no) 45835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 45836printf "%s\n" "no" >&6; } 45837 hsts="no" 45838 ;; 45839 *) 45840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45841printf "%s\n" "yes" >&6; } 45842 ;; 45843 esac 45844else $as_nop 45845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hsts" >&5 45846printf "%s\n" "$hsts" >&6; } 45847 45848fi 45849 45850else 45851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: disables HSTS due to lack of SSL" >&5 45852printf "%s\n" "$as_me: disables HSTS due to lack of SSL" >&6;} 45853 hsts="no" 45854fi 45855 45856if test "x$hsts" != "xyes"; then 45857 curl_hsts_msg="no (--enable-hsts)"; 45858 45859printf "%s\n" "#define CURL_DISABLE_HSTS 1" >>confdefs.h 45860 45861fi 45862 45863 45864if test "x$want_httpsrr" != "xno"; then 45865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: HTTPSRR support is available" >&5 45866printf "%s\n" "HTTPSRR support is available" >&6; } 45867 45868printf "%s\n" "#define USE_HTTPSRR 1" >>confdefs.h 45869 45870 experimental="$experimental HTTPSRR" 45871fi 45872 45873if test "x$want_ech" != "xno"; then 45874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ECH support is available" >&5 45875printf %s "checking whether ECH support is available... " >&6; } 45876 45877 ECH_ENABLED=0 45878 ECH_SUPPORT='' 45879 45880 if test "x$OPENSSL_ENABLED" = "x1"; then 45881 45882 for ac_func in SSL_ech_set1_echconfig 45883do : 45884 ac_fn_c_check_func "$LINENO" "SSL_ech_set1_echconfig" "ac_cv_func_SSL_ech_set1_echconfig" 45885if test "x$ac_cv_func_SSL_ech_set1_echconfig" = xyes 45886then : 45887 printf "%s\n" "#define HAVE_SSL_ECH_SET1_ECHCONFIG 1" >>confdefs.h 45888 ECH_SUPPORT="ECH support available via OpenSSL with SSL_ech_set1_echconfig" 45889 ECH_ENABLED=1 45890fi 45891 45892done 45893 fi 45894 if test "x$OPENSSL_ENABLED" = "x1"; then 45895 45896 for ac_func in SSL_set1_ech_config_list 45897do : 45898 ac_fn_c_check_func "$LINENO" "SSL_set1_ech_config_list" "ac_cv_func_SSL_set1_ech_config_list" 45899if test "x$ac_cv_func_SSL_set1_ech_config_list" = xyes 45900then : 45901 printf "%s\n" "#define HAVE_SSL_SET1_ECH_CONFIG_LIST 1" >>confdefs.h 45902 ECH_SUPPORT="ECH support available via BoringSSL with SSL_set1_ech_config_list" 45903 ECH_ENABLED=1 45904fi 45905 45906done 45907 fi 45908 if test "x$WOLFSSL_ENABLED" = "x1"; then 45909 45910 for ac_func in wolfSSL_CTX_GenerateEchConfig 45911do : 45912 ac_fn_c_check_func "$LINENO" "wolfSSL_CTX_GenerateEchConfig" "ac_cv_func_wolfSSL_CTX_GenerateEchConfig" 45913if test "x$ac_cv_func_wolfSSL_CTX_GenerateEchConfig" = xyes 45914then : 45915 printf "%s\n" "#define HAVE_WOLFSSL_CTX_GENERATEECHCONFIG 1" >>confdefs.h 45916 ECH_SUPPORT="ECH support available via wolfSSL with wolfSSL_CTX_GenerateEchConfig" 45917 ECH_ENABLED=1 45918fi 45919 45920done 45921 fi 45922 45923 if test "x$ECH_ENABLED" = "x1"; then 45924 45925printf "%s\n" "#define USE_HTTPSRR 1" >>confdefs.h 45926 45927 45928printf "%s\n" "#define USE_ECH 1" >>confdefs.h 45929 45930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ECH_SUPPORT" >&5 45931printf "%s\n" "$ECH_SUPPORT" >&6; } 45932 experimental="$experimental ECH" 45933 else 45934 as_fn_error $? "--enable-ech ignored: No ECH support found" "$LINENO" 5 45935 fi 45936fi 45937 45938if test "x$OPENSSL_ENABLED" = "x1"; then 45939 ac_fn_c_check_func "$LINENO" "SSL_set0_wbio" "ac_cv_func_SSL_set0_wbio" 45940if test "x$ac_cv_func_SSL_set0_wbio" = xyes 45941then : 45942 printf "%s\n" "#define HAVE_SSL_SET0_WBIO 1" >>confdefs.h 45943 45944fi 45945 45946fi 45947 45948if test "x$CURL_DISABLE_HTTP" != "x1"; then 45949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support WebSockets" >&5 45950printf %s "checking whether to support WebSockets... " >&6; } 45951 # Check whether --enable-websockets was given. 45952if test ${enable_websockets+y} 45953then : 45954 enableval=$enable_websockets; case "$enableval" in 45955 no) 45956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 45957printf "%s\n" "no" >&6; } 45958 45959printf "%s\n" "#define CURL_DISABLE_WEBSOCKETS 1" >>confdefs.h 45960 45961 CURL_DISABLE_WEBSOCKETS=1 45962 45963 ;; 45964 *) 45965 if test ${ac_cv_sizeof_curl_off_t} -gt 4; then 45966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45967printf "%s\n" "yes" >&6; } 45968 else 45969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 45970printf "%s\n" "no" >&6; } 45971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: WebSockets disabled due to lack of >32 bit curl_off_t" >&5 45972printf "%s\n" "$as_me: WARNING: WebSockets disabled due to lack of >32 bit curl_off_t" >&2;} 45973 45974printf "%s\n" "#define CURL_DISABLE_WEBSOCKETS 1" >>confdefs.h 45975 45976 CURL_DISABLE_WEBSOCKETS=1 45977 45978 fi 45979 ;; 45980 esac 45981else $as_nop 45982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45983printf "%s\n" "yes" >&6; } 45984 45985fi 45986 45987else 45988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: WebSockets disabled because HTTP is disabled" >&5 45989printf "%s\n" "$as_me: WARNING: WebSockets disabled because HTTP is disabled" >&2;} 45990 45991printf "%s\n" "#define CURL_DISABLE_WEBSOCKETS 1" >>confdefs.h 45992 45993 CURL_DISABLE_WEBSOCKETS=1 45994 45995fi 45996 45997 45998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5 45999printf %s "checking whether hiding of library internal symbols will actually happen... " >&6; } 46000 CFLAG_CURL_SYMBOL_HIDING="" 46001 doing_symbol_hiding="no" 46002 if test "$want_symbol_hiding" = "yes" && 46003 test "$supports_symbol_hiding" = "yes"; then 46004 doing_symbol_hiding="yes" 46005 CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS" 46006 46007printf "%s\n" "#define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN" >>confdefs.h 46008 46009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 46010printf "%s\n" "yes" >&6; } 46011 else 46012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 46013printf "%s\n" "no" >&6; } 46014 fi 46015 if test x$doing_symbol_hiding = xyes; then 46016 DOING_CURL_SYMBOL_HIDING_TRUE= 46017 DOING_CURL_SYMBOL_HIDING_FALSE='#' 46018else 46019 DOING_CURL_SYMBOL_HIDING_TRUE='#' 46020 DOING_CURL_SYMBOL_HIDING_FALSE= 46021fi 46022 46023 46024 46025 46026LIBCURL_PC_LIBS_PRIVATE="$LIBS$PTHREAD" 46027 46028 46029 46030 46031 46032BLANK_AT_MAKETIME= 46033 46034 46035 if test x$cross_compiling = xyes; then 46036 CROSSCOMPILING_TRUE= 46037 CROSSCOMPILING_FALSE='#' 46038else 46039 CROSSCOMPILING_TRUE='#' 46040 CROSSCOMPILING_FALSE= 46041fi 46042 46043 46044ENABLE_SHARED="$enable_shared" 46045 46046 46047ENABLE_STATIC="$enable_static" 46048 46049 46050squeeze LIBCURL_PC_REQUIRES_PRIVATE 46051LIBCURL_PC_REQUIRES_PRIVATE=`echo $LIBCURL_PC_REQUIRES_PRIVATE | tr ' ' ','` 46052 46053 46054 46055if test "x$enable_shared" = "xno"; then 46056 LIBCURL_PC_REQUIRES=$LIBCURL_PC_REQUIRES_PRIVATE 46057 LIBCURL_PC_LIBS=$LIBCURL_PC_LIBS_PRIVATE 46058else 46059 LIBCURL_PC_REQUIRES= 46060 LIBCURL_PC_LIBS= 46061fi 46062 46063 46064 46065rm $compilersh 46066 46067 46068if test "x$OPENSSL_ENABLED" = "x1"; then 46069 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL" 46070elif test -n "$SSL_ENABLED"; then 46071 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL" 46072fi 46073if test "x$IPV6_ENABLED" = "x1"; then 46074 SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6" 46075fi 46076if test "x$USE_UNIX_SOCKETS" = "x1"; then 46077 SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets" 46078fi 46079if test "x$HAVE_LIBZ" = "x1"; then 46080 SUPPORT_FEATURES="$SUPPORT_FEATURES libz" 46081fi 46082if test "x$HAVE_BROTLI" = "x1"; then 46083 SUPPORT_FEATURES="$SUPPORT_FEATURES brotli" 46084fi 46085if test "x$HAVE_ZSTD" = "x1"; then 46086 SUPPORT_FEATURES="$SUPPORT_FEATURES zstd" 46087fi 46088if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \ 46089 -o "x$USE_THREADS_WIN32" = "x1"; then 46090 SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS" 46091fi 46092if test "x$IDN_ENABLED" = "x1"; then 46093 SUPPORT_FEATURES="$SUPPORT_FEATURES IDN" 46094fi 46095if test "x$USE_WINDOWS_SSPI" = "x1"; then 46096 SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI" 46097fi 46098 46099if test "x$HAVE_GSSAPI" = "x1"; then 46100 SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API" 46101fi 46102 46103if test "x$curl_psl_msg" = "xenabled"; then 46104 SUPPORT_FEATURES="$SUPPORT_FEATURES PSL" 46105fi 46106 46107if test "x$curl_gsasl_msg" = "xenabled"; then 46108 SUPPORT_FEATURES="$SUPPORT_FEATURES gsasl" 46109fi 46110 46111if test "x$enable_altsvc" = "xyes"; then 46112 SUPPORT_FEATURES="$SUPPORT_FEATURES alt-svc" 46113fi 46114if test "x$hsts" = "xyes"; then 46115 SUPPORT_FEATURES="$SUPPORT_FEATURES HSTS" 46116fi 46117 46118if test "x$CURL_DISABLE_NEGOTIATE_AUTH" != "x1" -a \ 46119 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then 46120 SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO" 46121fi 46122 46123if test "x$CURL_DISABLE_KERBEROS_AUTH" != "x1" -a \ 46124 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then 46125 SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos" 46126fi 46127 46128use_curl_ntlm_core=no 46129 46130if test "x$CURL_DISABLE_NTLM" != "x1"; then 46131 if test "x$OPENSSL_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \ 46132 -o "x$GNUTLS_ENABLED" = "x1" \ 46133 -o "x$SECURETRANSPORT_ENABLED" = "x1" \ 46134 -o "x$USE_WIN32_CRYPTO" = "x1" \ 46135 -o "x$WOLFSSL_NTLM" = "x1"; then 46136 use_curl_ntlm_core=yes 46137 fi 46138 46139 if test "x$use_curl_ntlm_core" = "xyes" \ 46140 -o "x$USE_WINDOWS_SSPI" = "x1"; then 46141 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM" 46142 fi 46143fi 46144 46145if test "x$USE_TLS_SRP" = "x1"; then 46146 SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP" 46147fi 46148 46149if test "x$USE_NGHTTP2" = "x1"; then 46150 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2" 46151fi 46152 46153if test "x$USE_NGTCP2_H3" = "x1" -o "x$USE_QUICHE" = "x1" \ 46154 -o "x$USE_OPENSSL_H3" = "x1" -o "x$USE_MSH3" = "x1"; then 46155 if test "x$CURL_WITH_MULTI_SSL" = "x1"; then 46156 as_fn_error $? "MultiSSL cannot be enabled with HTTP/3 and vice versa" "$LINENO" 5 46157 fi 46158 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP3" 46159fi 46160 46161if test "x$CURL_WITH_MULTI_SSL" = "x1"; then 46162 SUPPORT_FEATURES="$SUPPORT_FEATURES MultiSSL" 46163fi 46164 46165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if this build supports HTTPS-proxy" >&5 46166printf %s "checking if this build supports HTTPS-proxy... " >&6; } 46167if test "x$CURL_DISABLE_HTTP" != "x1"; then 46168 if test "x$https_proxy" != "xno"; then 46169 if test "x$OPENSSL_ENABLED" = "x1" \ 46170 -o "x$GNUTLS_ENABLED" = "x1" \ 46171 -o "x$SECURETRANSPORT_ENABLED" = "x1" \ 46172 -o "x$RUSTLS_ENABLED" = "x1" \ 46173 -o "x$BEARSSL_ENABLED" = "x1" \ 46174 -o "x$SCHANNEL_ENABLED" = "x1" \ 46175 -o "x$GNUTLS_ENABLED" = "x1" \ 46176 -o "x$MBEDTLS_ENABLED" = "x1"; then 46177 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy" 46178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 46179printf "%s\n" "yes" >&6; } 46180 elif test "x$WOLFSSL_ENABLED" = "x1" -a "x$WOLFSSL_BIO" = "x1"; then 46181 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy" 46182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 46183printf "%s\n" "yes" >&6; } 46184 else 46185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 46186printf "%s\n" "no" >&6; } 46187 fi 46188 else 46189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 46190printf "%s\n" "no" >&6; } 46191 fi 46192else 46193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 46194printf "%s\n" "no" >&6; } 46195fi 46196 46197if test "x$OPENSSL_ENABLED" = "x1" -o -n "$SSL_ENABLED"; then 46198 if test "x$ECH_ENABLED" = "x1"; then 46199 SUPPORT_FEATURES="$SUPPORT_FEATURES ECH" 46200 fi 46201fi 46202 46203if test ${ac_cv_sizeof_curl_off_t} -gt 4; then 46204 if test ${ac_cv_sizeof_off_t} -gt 4 -o \ 46205 "$curl_win32_file_api" = "win32_large_files"; then 46206 SUPPORT_FEATURES="$SUPPORT_FEATURES Largefile" 46207 fi 46208fi 46209 46210if test "$tst_atomic" = "yes"; then 46211 SUPPORT_FEATURES="$SUPPORT_FEATURES threadsafe" 46212elif test "x$USE_THREADS_POSIX" = "x1" -a \ 46213 "x$ac_cv_header_pthread_h" = "xyes"; then 46214 SUPPORT_FEATURES="$SUPPORT_FEATURES threadsafe" 46215else 46216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46217/* end confdefs.h. */ 46218 46219 46220 #include <windows.h> 46221 46222int main(void) 46223{ 46224 46225 #if (WINVER < 0x600) && (_WIN32_WINNT < 0x600) 46226 #error 46227 #endif 46228 46229 ; 46230 return 0; 46231} 46232 46233_ACEOF 46234if ac_fn_c_try_compile "$LINENO" 46235then : 46236 46237 SUPPORT_FEATURES="$SUPPORT_FEATURES threadsafe" 46238 46239fi 46240rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 46241fi 46242 46243if test "x$want_winuni" = "xyes"; then 46244 SUPPORT_FEATURES="$SUPPORT_FEATURES Unicode" 46245fi 46246if test "x$want_debug" = "xyes"; then 46247 SUPPORT_FEATURES="$SUPPORT_FEATURES Debug" 46248fi 46249if test "x$want_curldebug" = "xyes"; then 46250 SUPPORT_FEATURES="$SUPPORT_FEATURES TrackMemory" 46251fi 46252if test "x$CURL_CA_EMBED" != "x"; then 46253 SUPPORT_FEATURES="$SUPPORT_FEATURES CAcert" 46254 CURL_CA_EMBED_msg="$CURL_CA_EMBED" 46255else 46256 CURL_CA_EMBED_msg='no' 46257fi 46258 46259if sort -f </dev/null >/dev/null 2>&1; then 46260 SUPPORT_FEATURES=`echo $SUPPORT_FEATURES | tr ' ' '\012' | sort -f | tr '\012' ' '` 46261else 46262 SUPPORT_FEATURES=`echo $SUPPORT_FEATURES | tr ' ' '\012' | sort | tr '\012' ' '` 46263fi 46264 46265 46266if test "x$CURL_DISABLE_HTTP" != "x1"; then 46267 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP" 46268 if test "x$SSL_ENABLED" = "x1"; then 46269 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS" 46270 fi 46271fi 46272if test "x$CURL_DISABLE_FTP" != "x1"; then 46273 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP" 46274 if test "x$SSL_ENABLED" = "x1"; then 46275 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS" 46276 fi 46277fi 46278if test "x$CURL_DISABLE_FILE" != "x1"; then 46279 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE" 46280fi 46281if test "x$CURL_DISABLE_TELNET" != "x1"; then 46282 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET" 46283fi 46284if test "x$CURL_DISABLE_LDAP" != "x1"; then 46285 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP" 46286 if test "x$CURL_DISABLE_LDAPS" != "x1"; then 46287 if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") || 46288 (test "x$USE_OPENLDAP" != "x1" && test "x$HAVE_LDAP_SSL" = "x1"); then 46289 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS" 46290 fi 46291 fi 46292fi 46293if test "x$CURL_DISABLE_DICT" != "x1"; then 46294 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT" 46295fi 46296if test "x$CURL_DISABLE_TFTP" != "x1"; then 46297 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP" 46298fi 46299if test "x$CURL_DISABLE_GOPHER" != "x1"; then 46300 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER" 46301 if test "x$SSL_ENABLED" = "x1"; then 46302 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHERS" 46303 fi 46304fi 46305if test "x$CURL_DISABLE_MQTT" != "x1"; then 46306 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS MQTT" 46307fi 46308if test "x$CURL_DISABLE_POP3" != "x1"; then 46309 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3" 46310 if test "x$SSL_ENABLED" = "x1"; then 46311 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S" 46312 fi 46313fi 46314if test "x$CURL_DISABLE_IMAP" != "x1"; then 46315 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP" 46316 if test "x$SSL_ENABLED" = "x1"; then 46317 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS" 46318 fi 46319fi 46320if test "x$CURL_DISABLE_SMB" != "x1" \ 46321 -a "x$use_curl_ntlm_core" = "xyes"; then 46322 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB" 46323 if test "x$SSL_ENABLED" = "x1"; then 46324 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS" 46325 fi 46326fi 46327if test "x$CURL_DISABLE_SMTP" != "x1"; then 46328 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP" 46329 if test "x$SSL_ENABLED" = "x1"; then 46330 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS" 46331 fi 46332fi 46333if test "x$USE_LIBSSH2" = "x1"; then 46334 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP" 46335 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP" 46336fi 46337if test "x$USE_LIBSSH" = "x1"; then 46338 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP" 46339 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP" 46340fi 46341if test "x$USE_WOLFSSH" = "x1"; then 46342 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP" 46343fi 46344if test "x$CURL_DISABLE_IPFS" != "x1"; then 46345 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IPFS IPNS" 46346fi 46347if test "x$CURL_DISABLE_RTSP" != "x1"; then 46348 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP" 46349fi 46350if test "x$USE_LIBRTMP" = "x1"; then 46351 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP" 46352fi 46353if test "x$CURL_DISABLE_WEBSOCKETS" != "x1"; then 46354 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS WS" 46355 if test "x$SSL_ENABLED" = "x1"; then 46356 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS WSS" 46357 fi 46358fi 46359 46360SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '` 46361 46362 46363 46364 46365squeeze CFLAGS 46366squeeze CPPFLAGS 46367squeeze DEFS 46368squeeze LDFLAGS 46369squeeze LIBS 46370 46371squeeze LIBCURL_PC_LIBS_PRIVATE 46372squeeze CURL_NETWORK_LIBS 46373squeeze CURL_NETWORK_AND_TIME_LIBS 46374 46375squeeze SUPPORT_FEATURES 46376squeeze SUPPORT_PROTOCOLS 46377 46378 46379 46380 xc_bad_var_libs=no 46381 for xc_word in $LIBS; do 46382 case "$xc_word" in 46383 -l* | --library=*) 46384 : 46385 ;; 46386 *) 46387 xc_bad_var_libs=yes 46388 ;; 46389 esac 46390 done 46391 if test $xc_bad_var_libs = yes; then 46392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5 46393printf "%s\n" "$as_me: using LIBS: $LIBS" >&6;} 46394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5 46395printf "%s\n" "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;} 46396 fi 46397 46398 46399 xc_bad_var_ldflags=no 46400 for xc_word in $LDFLAGS; do 46401 case "$xc_word" in 46402 -D*) 46403 xc_bad_var_ldflags=yes 46404 ;; 46405 -U*) 46406 xc_bad_var_ldflags=yes 46407 ;; 46408 -I*) 46409 xc_bad_var_ldflags=yes 46410 ;; 46411 -l* | --library=*) 46412 xc_bad_var_ldflags=yes 46413 ;; 46414 esac 46415 done 46416 if test $xc_bad_var_ldflags = yes; then 46417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5 46418printf "%s\n" "$as_me: using LDFLAGS: $LDFLAGS" >&6;} 46419 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not" 46420 for xc_word in $LDFLAGS; do 46421 case "$xc_word" in 46422 -D*) 46423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5 46424printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;} 46425 ;; 46426 -U*) 46427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5 46428printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;} 46429 ;; 46430 -I*) 46431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5 46432printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;} 46433 ;; 46434 -l* | --library=*) 46435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5 46436printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;} 46437 ;; 46438 esac 46439 done 46440 fi 46441 46442 46443 xc_bad_var_cppflags=no 46444 for xc_word in $CPPFLAGS; do 46445 case "$xc_word" in 46446 -rpath*) 46447 xc_bad_var_cppflags=yes 46448 ;; 46449 -L* | --library-path=*) 46450 xc_bad_var_cppflags=yes 46451 ;; 46452 -l* | --library=*) 46453 xc_bad_var_cppflags=yes 46454 ;; 46455 esac 46456 done 46457 if test $xc_bad_var_cppflags = yes; then 46458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5 46459printf "%s\n" "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;} 46460 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not" 46461 for xc_word in $CPPFLAGS; do 46462 case "$xc_word" in 46463 -rpath*) 46464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5 46465printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;} 46466 ;; 46467 -L* | --library-path=*) 46468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5 46469printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;} 46470 ;; 46471 -l* | --library=*) 46472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5 46473printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;} 46474 ;; 46475 esac 46476 done 46477 fi 46478 46479 46480 xc_bad_var_cflags=no 46481 for xc_word in $CFLAGS; do 46482 case "$xc_word" in 46483 -D*) 46484 xc_bad_var_cflags=yes 46485 ;; 46486 -U*) 46487 xc_bad_var_cflags=yes 46488 ;; 46489 -I*) 46490 xc_bad_var_cflags=yes 46491 ;; 46492 -rpath*) 46493 xc_bad_var_cflags=yes 46494 ;; 46495 -L* | --library-path=*) 46496 xc_bad_var_cflags=yes 46497 ;; 46498 -l* | --library=*) 46499 xc_bad_var_cflags=yes 46500 ;; 46501 esac 46502 done 46503 if test $xc_bad_var_cflags = yes; then 46504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5 46505printf "%s\n" "$as_me: using CFLAGS: $CFLAGS" >&6;} 46506 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not" 46507 for xc_word in $CFLAGS; do 46508 case "$xc_word" in 46509 -D*) 46510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5 46511printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;} 46512 ;; 46513 -U*) 46514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5 46515printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;} 46516 ;; 46517 -I*) 46518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5 46519printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;} 46520 ;; 46521 -rpath*) 46522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5 46523printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;} 46524 ;; 46525 -L* | --library-path=*) 46526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5 46527printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;} 46528 ;; 46529 -l* | --library=*) 46530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5 46531printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;} 46532 ;; 46533 esac 46534 done 46535 fi 46536 46537 if test $xc_bad_var_libs = yes || 46538 test $xc_bad_var_cflags = yes || 46539 test $xc_bad_var_ldflags = yes || 46540 test $xc_bad_var_cppflags = yes; then 46541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5 46542printf "%s\n" "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;} 46543 fi 46544 46545 46546SSL_BACKENDS=${ssl_backends} 46547 46548 46549if test "x$want_curldebug_assumed" = "xyes" && 46550 test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then 46551 ac_configure_args="$ac_configure_args --enable-curldebug" 46552fi 46553 46554 46555 tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null` 46556 if test -z "$tmp_cpp"; then 46557 tmp_cpp='cpp' 46558 fi 46559 CURL_CPP=$tmp_cpp 46560 46561 46562 46563ac_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/config tests/configurehelp.pm tests/certs/Makefile tests/certs/scripts/Makefile tests/data/Makefile tests/server/Makefile tests/libtest/Makefile tests/unit/Makefile tests/http/config.ini tests/http/Makefile tests/http/clients/Makefile packages/Makefile packages/vms/Makefile curl-config libcurl.pc" 46564 46565cat >confcache <<\_ACEOF 46566# This file is a shell script that caches the results of configure 46567# tests run on this system so they can be shared between configure 46568# scripts and configure runs, see configure's option --config-cache. 46569# It is not useful on other systems. If it contains results you don't 46570# want to keep, you may remove or edit it. 46571# 46572# config.status only pays attention to the cache file if you give it 46573# the --recheck option to rerun configure. 46574# 46575# `ac_cv_env_foo' variables (set or unset) will be overridden when 46576# loading this file, other *unset* `ac_cv_foo' will be assigned the 46577# following values. 46578 46579_ACEOF 46580 46581# The following way of writing the cache mishandles newlines in values, 46582# but we know of no workaround that is simple, portable, and efficient. 46583# So, we kill variables containing newlines. 46584# Ultrix sh set writes to stderr and can't be redirected directly, 46585# and sets the high bit in the cache file unless we assign to the vars. 46586( 46587 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 46588 eval ac_val=\$$ac_var 46589 case $ac_val in #( 46590 *${as_nl}*) 46591 case $ac_var in #( 46592 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 46593printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 46594 esac 46595 case $ac_var in #( 46596 _ | IFS | as_nl) ;; #( 46597 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 46598 *) { eval $ac_var=; unset $ac_var;} ;; 46599 esac ;; 46600 esac 46601 done 46602 46603 (set) 2>&1 | 46604 case $as_nl`(ac_space=' '; set) 2>&1` in #( 46605 *${as_nl}ac_space=\ *) 46606 # `set' does not quote correctly, so add quotes: double-quote 46607 # substitution turns \\\\ into \\, and sed turns \\ into \. 46608 sed -n \ 46609 "s/'/'\\\\''/g; 46610 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 46611 ;; #( 46612 *) 46613 # `set' quotes correctly as required by POSIX, so do not add quotes. 46614 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 46615 ;; 46616 esac | 46617 sort 46618) | 46619 sed ' 46620 /^ac_cv_env_/b end 46621 t clear 46622 :clear 46623 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 46624 t end 46625 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 46626 :end' >>confcache 46627if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 46628 if test -w "$cache_file"; then 46629 if test "x$cache_file" != "x/dev/null"; then 46630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 46631printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 46632 if test ! -f "$cache_file" || test -h "$cache_file"; then 46633 cat confcache >"$cache_file" 46634 else 46635 case $cache_file in #( 46636 */* | ?:*) 46637 mv -f confcache "$cache_file"$$ && 46638 mv -f "$cache_file"$$ "$cache_file" ;; #( 46639 *) 46640 mv -f confcache "$cache_file" ;; 46641 esac 46642 fi 46643 fi 46644 else 46645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 46646printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 46647 fi 46648fi 46649rm -f confcache 46650 46651test "x$prefix" = xNONE && prefix=$ac_default_prefix 46652# Let make expand exec_prefix. 46653test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 46654 46655DEFS=-DHAVE_CONFIG_H 46656 46657ac_libobjs= 46658ac_ltlibobjs= 46659U= 46660for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 46661 # 1. Remove the extension, and $U if already installed. 46662 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 46663 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 46664 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 46665 # will be set to the directory where LIBOBJS objects are built. 46666 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 46667 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 46668done 46669LIBOBJS=$ac_libobjs 46670 46671LTLIBOBJS=$ac_ltlibobjs 46672 46673 46674if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 46675 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 46676Usually this means the macro was only invoked conditionally." "$LINENO" 5 46677fi 46678if test -z "${DEBUGBUILD_TRUE}" && test -z "${DEBUGBUILD_FALSE}"; then 46679 as_fn_error $? "conditional \"DEBUGBUILD\" was never defined. 46680Usually this means the macro was only invoked conditionally." "$LINENO" 5 46681fi 46682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 46683printf %s "checking that generated files are newer than configure... " >&6; } 46684 if test -n "$am_sleep_pid"; then 46685 # Hide warnings about reused PIDs. 46686 wait $am_sleep_pid 2>/dev/null 46687 fi 46688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 46689printf "%s\n" "done" >&6; } 46690if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 46691 as_fn_error $? "conditional \"AMDEP\" was never defined. 46692Usually this means the macro was only invoked conditionally." "$LINENO" 5 46693fi 46694if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 46695 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 46696Usually this means the macro was only invoked conditionally." "$LINENO" 5 46697fi 46698 if test -n "$EXEEXT"; then 46699 am__EXEEXT_TRUE= 46700 am__EXEEXT_FALSE='#' 46701else 46702 am__EXEEXT_TRUE='#' 46703 am__EXEEXT_FALSE= 46704fi 46705 46706if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then 46707 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined. 46708Usually this means the macro was only invoked conditionally." "$LINENO" 5 46709fi 46710if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then 46711 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined. 46712Usually this means the macro was only invoked conditionally." "$LINENO" 5 46713fi 46714if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then 46715 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined. 46716Usually this means the macro was only invoked conditionally." "$LINENO" 5 46717fi 46718if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then 46719 as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined. 46720Usually this means the macro was only invoked conditionally." "$LINENO" 5 46721fi 46722if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then 46723 as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined. 46724Usually this means the macro was only invoked conditionally." "$LINENO" 5 46725fi 46726if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then 46727 as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined. 46728Usually this means the macro was only invoked conditionally." "$LINENO" 5 46729fi 46730if test -z "${HAVE_WINDRES_TRUE}" && test -z "${HAVE_WINDRES_FALSE}"; then 46731 as_fn_error $? "conditional \"HAVE_WINDRES\" was never defined. 46732Usually this means the macro was only invoked conditionally." "$LINENO" 5 46733fi 46734if test -z "${USE_UNITY_TRUE}" && test -z "${USE_UNITY_FALSE}"; then 46735 as_fn_error $? "conditional \"USE_UNITY\" was never defined. 46736Usually this means the macro was only invoked conditionally." "$LINENO" 5 46737fi 46738if test -z "${USE_TEST_BUNDLES_TRUE}" && test -z "${USE_TEST_BUNDLES_FALSE}"; then 46739 as_fn_error $? "conditional \"USE_TEST_BUNDLES\" was never defined. 46740Usually this means the macro was only invoked conditionally." "$LINENO" 5 46741fi 46742if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then 46743 as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined. 46744Usually this means the macro was only invoked conditionally." "$LINENO" 5 46745fi 46746if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then 46747 as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined. 46748Usually this means the macro was only invoked conditionally." "$LINENO" 5 46749fi 46750if test -z "${BUILD_STUB_GSS_TRUE}" && test -z "${BUILD_STUB_GSS_FALSE}"; then 46751 as_fn_error $? "conditional \"BUILD_STUB_GSS\" was never defined. 46752Usually this means the macro was only invoked conditionally." "$LINENO" 5 46753fi 46754if test -z "${CURL_CA_EMBED_SET_TRUE}" && test -z "${CURL_CA_EMBED_SET_FALSE}"; then 46755 as_fn_error $? "conditional \"CURL_CA_EMBED_SET\" was never defined. 46756Usually this means the macro was only invoked conditionally." "$LINENO" 5 46757fi 46758if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then 46759 as_fn_error $? "conditional \"USE_LIBPSL\" was never defined. 46760Usually this means the macro was only invoked conditionally." "$LINENO" 5 46761fi 46762if test -z "${USE_GSASL_TRUE}" && test -z "${USE_GSASL_FALSE}"; then 46763 as_fn_error $? "conditional \"USE_GSASL\" was never defined. 46764Usually this means the macro was only invoked conditionally." "$LINENO" 5 46765fi 46766if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then 46767 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined. 46768Usually this means the macro was only invoked conditionally." "$LINENO" 5 46769fi 46770if test -z "${USE_UNICODE_TRUE}" && test -z "${USE_UNICODE_FALSE}"; then 46771 as_fn_error $? "conditional \"USE_UNICODE\" was never defined. 46772Usually this means the macro was only invoked conditionally." "$LINENO" 5 46773fi 46774if test -z "${USE_ZSH_COMPLETION_TRUE}" && test -z "${USE_ZSH_COMPLETION_FALSE}"; then 46775 as_fn_error $? "conditional \"USE_ZSH_COMPLETION\" was never defined. 46776Usually this means the macro was only invoked conditionally." "$LINENO" 5 46777fi 46778if test -z "${USE_FISH_COMPLETION_TRUE}" && test -z "${USE_FISH_COMPLETION_FALSE}"; then 46779 as_fn_error $? "conditional \"USE_FISH_COMPLETION\" was never defined. 46780Usually this means the macro was only invoked conditionally." "$LINENO" 5 46781fi 46782if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then 46783 as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined. 46784Usually this means the macro was only invoked conditionally." "$LINENO" 5 46785fi 46786if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then 46787 as_fn_error $? "conditional \"BUILD_DOCS\" was never defined. 46788Usually this means the macro was only invoked conditionally." "$LINENO" 5 46789fi 46790if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then 46791 as_fn_error $? "conditional \"USE_MANUAL\" was never defined. 46792Usually this means the macro was only invoked conditionally." "$LINENO" 5 46793fi 46794if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then 46795 as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined. 46796Usually this means the macro was only invoked conditionally." "$LINENO" 5 46797fi 46798if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then 46799 as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined. 46800Usually this means the macro was only invoked conditionally." "$LINENO" 5 46801fi 46802 46803: "${CONFIG_STATUS=./config.status}" 46804ac_write_fail=0 46805ac_clean_files_save=$ac_clean_files 46806ac_clean_files="$ac_clean_files $CONFIG_STATUS" 46807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 46808printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 46809as_write_fail=0 46810cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 46811#! $SHELL 46812# Generated by $as_me. 46813# Run this file to recreate the current configuration. 46814# Compiler output produced by configure, useful for debugging 46815# configure, is in config.log if it exists. 46816 46817debug=false 46818ac_cs_recheck=false 46819ac_cs_silent=false 46820 46821SHELL=\${CONFIG_SHELL-$SHELL} 46822export SHELL 46823_ASEOF 46824cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 46825## -------------------- ## 46826## M4sh Initialization. ## 46827## -------------------- ## 46828 46829# Be more Bourne compatible 46830DUALCASE=1; export DUALCASE # for MKS sh 46831as_nop=: 46832if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 46833then : 46834 emulate sh 46835 NULLCMD=: 46836 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 46837 # is contrary to our usage. Disable this feature. 46838 alias -g '${1+"$@"}'='"$@"' 46839 setopt NO_GLOB_SUBST 46840else $as_nop 46841 case `(set -o) 2>/dev/null` in #( 46842 *posix*) : 46843 set -o posix ;; #( 46844 *) : 46845 ;; 46846esac 46847fi 46848 46849 46850 46851# Reset variables that may have inherited troublesome values from 46852# the environment. 46853 46854# IFS needs to be set, to space, tab, and newline, in precisely that order. 46855# (If _AS_PATH_WALK were called with IFS unset, it would have the 46856# side effect of setting IFS to empty, thus disabling word splitting.) 46857# Quoting is to prevent editors from complaining about space-tab. 46858as_nl=' 46859' 46860export as_nl 46861IFS=" "" $as_nl" 46862 46863PS1='$ ' 46864PS2='> ' 46865PS4='+ ' 46866 46867# Ensure predictable behavior from utilities with locale-dependent output. 46868LC_ALL=C 46869export LC_ALL 46870LANGUAGE=C 46871export LANGUAGE 46872 46873# We cannot yet rely on "unset" to work, but we need these variables 46874# to be unset--not just set to an empty or harmless value--now, to 46875# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 46876# also avoids known problems related to "unset" and subshell syntax 46877# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 46878for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 46879do eval test \${$as_var+y} \ 46880 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 46881done 46882 46883# Ensure that fds 0, 1, and 2 are open. 46884if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 46885if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 46886if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 46887 46888 46889 46890# Find who we are. Look in the path if we contain no directory separator. 46891as_myself= 46892case $0 in #(( 46893 *[\\/]* ) as_myself=$0 ;; 46894 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46895for as_dir in $PATH 46896do 46897 IFS=$as_save_IFS 46898 case $as_dir in #((( 46899 '') as_dir=./ ;; 46900 */) ;; 46901 *) as_dir=$as_dir/ ;; 46902 esac 46903 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 46904 done 46905IFS=$as_save_IFS 46906 46907 ;; 46908esac 46909# We did not find ourselves, most probably we were run as `sh COMMAND' 46910# in which case we are not to be found in the path. 46911if test "x$as_myself" = x; then 46912 as_myself=$0 46913fi 46914if test ! -f "$as_myself"; then 46915 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 46916 exit 1 46917fi 46918 46919 46920 46921# as_fn_error STATUS ERROR [LINENO LOG_FD] 46922# ---------------------------------------- 46923# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 46924# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 46925# script with STATUS, using 1 if that was 0. 46926as_fn_error () 46927{ 46928 as_status=$1; test $as_status -eq 0 && as_status=1 46929 if test "$4"; then 46930 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 46931 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 46932 fi 46933 printf "%s\n" "$as_me: error: $2" >&2 46934 as_fn_exit $as_status 46935} # as_fn_error 46936 46937 46938 46939# as_fn_set_status STATUS 46940# ----------------------- 46941# Set $? to STATUS, without forking. 46942as_fn_set_status () 46943{ 46944 return $1 46945} # as_fn_set_status 46946 46947# as_fn_exit STATUS 46948# ----------------- 46949# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 46950as_fn_exit () 46951{ 46952 set +e 46953 as_fn_set_status $1 46954 exit $1 46955} # as_fn_exit 46956 46957# as_fn_unset VAR 46958# --------------- 46959# Portably unset VAR. 46960as_fn_unset () 46961{ 46962 { eval $1=; unset $1;} 46963} 46964as_unset=as_fn_unset 46965 46966# as_fn_append VAR VALUE 46967# ---------------------- 46968# Append the text in VALUE to the end of the definition contained in VAR. Take 46969# advantage of any shell optimizations that allow amortized linear growth over 46970# repeated appends, instead of the typical quadratic growth present in naive 46971# implementations. 46972if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 46973then : 46974 eval 'as_fn_append () 46975 { 46976 eval $1+=\$2 46977 }' 46978else $as_nop 46979 as_fn_append () 46980 { 46981 eval $1=\$$1\$2 46982 } 46983fi # as_fn_append 46984 46985# as_fn_arith ARG... 46986# ------------------ 46987# Perform arithmetic evaluation on the ARGs, and store the result in the 46988# global $as_val. Take advantage of shells that can avoid forks. The arguments 46989# must be portable across $(()) and expr. 46990if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 46991then : 46992 eval 'as_fn_arith () 46993 { 46994 as_val=$(( $* )) 46995 }' 46996else $as_nop 46997 as_fn_arith () 46998 { 46999 as_val=`expr "$@" || test $? -eq 1` 47000 } 47001fi # as_fn_arith 47002 47003 47004if expr a : '\(a\)' >/dev/null 2>&1 && 47005 test "X`expr 00001 : '.*\(...\)'`" = X001; then 47006 as_expr=expr 47007else 47008 as_expr=false 47009fi 47010 47011if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 47012 as_basename=basename 47013else 47014 as_basename=false 47015fi 47016 47017if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 47018 as_dirname=dirname 47019else 47020 as_dirname=false 47021fi 47022 47023as_me=`$as_basename -- "$0" || 47024$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 47025 X"$0" : 'X\(//\)$' \| \ 47026 X"$0" : 'X\(/\)' \| . 2>/dev/null || 47027printf "%s\n" X/"$0" | 47028 sed '/^.*\/\([^/][^/]*\)\/*$/{ 47029 s//\1/ 47030 q 47031 } 47032 /^X\/\(\/\/\)$/{ 47033 s//\1/ 47034 q 47035 } 47036 /^X\/\(\/\).*/{ 47037 s//\1/ 47038 q 47039 } 47040 s/.*/./; q'` 47041 47042# Avoid depending upon Character Ranges. 47043as_cr_letters='abcdefghijklmnopqrstuvwxyz' 47044as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 47045as_cr_Letters=$as_cr_letters$as_cr_LETTERS 47046as_cr_digits='0123456789' 47047as_cr_alnum=$as_cr_Letters$as_cr_digits 47048 47049 47050# Determine whether it's possible to make 'echo' print without a newline. 47051# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 47052# for compatibility with existing Makefiles. 47053ECHO_C= ECHO_N= ECHO_T= 47054case `echo -n x` in #((((( 47055-n*) 47056 case `echo 'xy\c'` in 47057 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 47058 xy) ECHO_C='\c';; 47059 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 47060 ECHO_T=' ';; 47061 esac;; 47062*) 47063 ECHO_N='-n';; 47064esac 47065 47066# For backward compatibility with old third-party macros, we provide 47067# the shell variables $as_echo and $as_echo_n. New code should use 47068# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 47069as_echo='printf %s\n' 47070as_echo_n='printf %s' 47071 47072rm -f conf$$ conf$$.exe conf$$.file 47073if test -d conf$$.dir; then 47074 rm -f conf$$.dir/conf$$.file 47075else 47076 rm -f conf$$.dir 47077 mkdir conf$$.dir 2>/dev/null 47078fi 47079if (echo >conf$$.file) 2>/dev/null; then 47080 if ln -s conf$$.file conf$$ 2>/dev/null; then 47081 as_ln_s='ln -s' 47082 # ... but there are two gotchas: 47083 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 47084 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 47085 # In both cases, we have to default to `cp -pR'. 47086 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 47087 as_ln_s='cp -pR' 47088 elif ln conf$$.file conf$$ 2>/dev/null; then 47089 as_ln_s=ln 47090 else 47091 as_ln_s='cp -pR' 47092 fi 47093else 47094 as_ln_s='cp -pR' 47095fi 47096rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 47097rmdir conf$$.dir 2>/dev/null 47098 47099 47100# as_fn_mkdir_p 47101# ------------- 47102# Create "$as_dir" as a directory, including parents if necessary. 47103as_fn_mkdir_p () 47104{ 47105 47106 case $as_dir in #( 47107 -*) as_dir=./$as_dir;; 47108 esac 47109 test -d "$as_dir" || eval $as_mkdir_p || { 47110 as_dirs= 47111 while :; do 47112 case $as_dir in #( 47113 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 47114 *) as_qdir=$as_dir;; 47115 esac 47116 as_dirs="'$as_qdir' $as_dirs" 47117 as_dir=`$as_dirname -- "$as_dir" || 47118$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 47119 X"$as_dir" : 'X\(//\)[^/]' \| \ 47120 X"$as_dir" : 'X\(//\)$' \| \ 47121 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 47122printf "%s\n" X"$as_dir" | 47123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 47124 s//\1/ 47125 q 47126 } 47127 /^X\(\/\/\)[^/].*/{ 47128 s//\1/ 47129 q 47130 } 47131 /^X\(\/\/\)$/{ 47132 s//\1/ 47133 q 47134 } 47135 /^X\(\/\).*/{ 47136 s//\1/ 47137 q 47138 } 47139 s/.*/./; q'` 47140 test -d "$as_dir" && break 47141 done 47142 test -z "$as_dirs" || eval "mkdir $as_dirs" 47143 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 47144 47145 47146} # as_fn_mkdir_p 47147if mkdir -p . 2>/dev/null; then 47148 as_mkdir_p='mkdir -p "$as_dir"' 47149else 47150 test -d ./-p && rmdir ./-p 47151 as_mkdir_p=false 47152fi 47153 47154 47155# as_fn_executable_p FILE 47156# ----------------------- 47157# Test if FILE is an executable regular file. 47158as_fn_executable_p () 47159{ 47160 test -f "$1" && test -x "$1" 47161} # as_fn_executable_p 47162as_test_x='test -x' 47163as_executable_p=as_fn_executable_p 47164 47165# Sed expression to map a string onto a valid CPP name. 47166as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 47167 47168# Sed expression to map a string onto a valid variable name. 47169as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 47170 47171 47172exec 6>&1 47173## ----------------------------------- ## 47174## Main body of $CONFIG_STATUS script. ## 47175## ----------------------------------- ## 47176_ASEOF 47177test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 47178 47179cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 47180# Save the log message, to keep $0 and so on meaningful, and to 47181# report actual input values of CONFIG_FILES etc. instead of their 47182# values after options handling. 47183ac_log=" 47184This file was extended by curl $as_me -, which was 47185generated by GNU Autoconf 2.71. Invocation command line was 47186 47187 CONFIG_FILES = $CONFIG_FILES 47188 CONFIG_HEADERS = $CONFIG_HEADERS 47189 CONFIG_LINKS = $CONFIG_LINKS 47190 CONFIG_COMMANDS = $CONFIG_COMMANDS 47191 $ $0 $@ 47192 47193on `(hostname || uname -n) 2>/dev/null | sed 1q` 47194" 47195 47196_ACEOF 47197 47198case $ac_config_files in *" 47199"*) set x $ac_config_files; shift; ac_config_files=$*;; 47200esac 47201 47202case $ac_config_headers in *" 47203"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 47204esac 47205 47206 47207cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 47208# Files that config.status was made for. 47209config_files="$ac_config_files" 47210config_headers="$ac_config_headers" 47211config_commands="$ac_config_commands" 47212 47213_ACEOF 47214 47215cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 47216ac_cs_usage="\ 47217\`$as_me' instantiates files and other configuration actions 47218from templates according to the current configuration. Unless the files 47219and actions are specified as TAGs, all are instantiated by default. 47220 47221Usage: $0 [OPTION]... [TAG]... 47222 47223 -h, --help print this help, then exit 47224 -V, --version print version number and configuration settings, then exit 47225 --config print configuration, then exit 47226 -q, --quiet, --silent 47227 do not print progress messages 47228 -d, --debug don't remove temporary files 47229 --recheck update $as_me by reconfiguring in the same conditions 47230 --file=FILE[:TEMPLATE] 47231 instantiate the configuration file FILE 47232 --header=FILE[:TEMPLATE] 47233 instantiate the configuration header FILE 47234 47235Configuration files: 47236$config_files 47237 47238Configuration headers: 47239$config_headers 47240 47241Configuration commands: 47242$config_commands 47243 47244Report bugs to <a suitable curl mailing list: https://curl.se/mail/>." 47245 47246_ACEOF 47247ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 47248ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 47249cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 47250ac_cs_config='$ac_cs_config_escaped' 47251ac_cs_version="\\ 47252curl config.status - 47253configured by $0, generated by GNU Autoconf 2.71, 47254 with options \\"\$ac_cs_config\\" 47255 47256Copyright (C) 2021 Free Software Foundation, Inc. 47257This config.status script is free software; the Free Software Foundation 47258gives unlimited permission to copy, distribute and modify it." 47259 47260ac_pwd='$ac_pwd' 47261srcdir='$srcdir' 47262INSTALL='$INSTALL' 47263MKDIR_P='$MKDIR_P' 47264AWK='$AWK' 47265test -n "\$AWK" || AWK=awk 47266_ACEOF 47267 47268cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 47269# The default lists apply if the user does not specify any file. 47270ac_need_defaults=: 47271while test $# != 0 47272do 47273 case $1 in 47274 --*=?*) 47275 ac_option=`expr "X$1" : 'X\([^=]*\)='` 47276 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 47277 ac_shift=: 47278 ;; 47279 --*=) 47280 ac_option=`expr "X$1" : 'X\([^=]*\)='` 47281 ac_optarg= 47282 ac_shift=: 47283 ;; 47284 *) 47285 ac_option=$1 47286 ac_optarg=$2 47287 ac_shift=shift 47288 ;; 47289 esac 47290 47291 case $ac_option in 47292 # Handling of the options. 47293 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 47294 ac_cs_recheck=: ;; 47295 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 47296 printf "%s\n" "$ac_cs_version"; exit ;; 47297 --config | --confi | --conf | --con | --co | --c ) 47298 printf "%s\n" "$ac_cs_config"; exit ;; 47299 --debug | --debu | --deb | --de | --d | -d ) 47300 debug=: ;; 47301 --file | --fil | --fi | --f ) 47302 $ac_shift 47303 case $ac_optarg in 47304 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 47305 '') as_fn_error $? "missing file argument" ;; 47306 esac 47307 as_fn_append CONFIG_FILES " '$ac_optarg'" 47308 ac_need_defaults=false;; 47309 --header | --heade | --head | --hea ) 47310 $ac_shift 47311 case $ac_optarg in 47312 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 47313 esac 47314 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 47315 ac_need_defaults=false;; 47316 --he | --h) 47317 # Conflict between --help and --header 47318 as_fn_error $? "ambiguous option: \`$1' 47319Try \`$0 --help' for more information.";; 47320 --help | --hel | -h ) 47321 printf "%s\n" "$ac_cs_usage"; exit ;; 47322 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 47323 | -silent | --silent | --silen | --sile | --sil | --si | --s) 47324 ac_cs_silent=: ;; 47325 47326 # This is an error. 47327 -*) as_fn_error $? "unrecognized option: \`$1' 47328Try \`$0 --help' for more information." ;; 47329 47330 *) as_fn_append ac_config_targets " $1" 47331 ac_need_defaults=false ;; 47332 47333 esac 47334 shift 47335done 47336 47337ac_configure_extra_args= 47338 47339if $ac_cs_silent; then 47340 exec 6>/dev/null 47341 ac_configure_extra_args="$ac_configure_extra_args --silent" 47342fi 47343 47344_ACEOF 47345cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 47346if \$ac_cs_recheck; then 47347 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 47348 shift 47349 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 47350 CONFIG_SHELL='$SHELL' 47351 export CONFIG_SHELL 47352 exec "\$@" 47353fi 47354 47355_ACEOF 47356cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 47357exec 5>>config.log 47358{ 47359 echo 47360 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 47361## Running $as_me. ## 47362_ASBOX 47363 printf "%s\n" "$ac_log" 47364} >&5 47365 47366_ACEOF 47367cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 47368# 47369# INIT-COMMANDS 47370# 47371AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 47372 47373 47374# The HP-UX ksh and POSIX shell print the target directory to stdout 47375# if CDPATH is set. 47376(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 47377 47378sed_quote_subst='$sed_quote_subst' 47379double_quote_subst='$double_quote_subst' 47380delay_variable_subst='$delay_variable_subst' 47381macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 47382macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 47383AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 47384DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 47385OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 47386enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 47387enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 47388pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 47389enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 47390shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 47391SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 47392ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 47393PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 47394host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 47395host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 47396host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 47397build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 47398build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 47399build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 47400SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 47401Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 47402GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 47403EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 47404FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 47405LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 47406NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 47407LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 47408max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 47409ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 47410exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 47411lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 47412lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 47413lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 47414lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 47415lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 47416reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 47417reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 47418FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 47419deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 47420file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 47421file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 47422want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 47423sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 47424AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 47425lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 47426AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 47427archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 47428STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 47429RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 47430old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 47431old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 47432old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 47433lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 47434CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 47435CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 47436compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 47437GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 47438lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 47439lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 47440lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 47441lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 47442lt_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"`' 47443lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 47444nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 47445lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 47446lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 47447objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 47448MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 47449lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 47450lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 47451lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 47452lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 47453lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 47454need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 47455MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 47456DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 47457NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 47458LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 47459OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 47460OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 47461libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 47462shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 47463extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 47464archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 47465enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 47466export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 47467whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 47468compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 47469old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 47470old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 47471archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 47472archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 47473module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 47474module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 47475with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 47476allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 47477no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 47478hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 47479hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 47480hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 47481hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 47482hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 47483hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 47484hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 47485inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 47486link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 47487always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 47488export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 47489exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 47490include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 47491prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 47492postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 47493file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 47494variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 47495need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 47496need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 47497version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 47498runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 47499shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 47500shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 47501libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 47502library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 47503soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 47504install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 47505postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 47506postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 47507finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 47508finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 47509hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 47510sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 47511configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 47512configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 47513hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 47514enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 47515enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 47516enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 47517old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 47518striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 47519LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`' 47520reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`' 47521reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`' 47522old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`' 47523compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`' 47524GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`' 47525lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`' 47526lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`' 47527lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`' 47528lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`' 47529lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`' 47530archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`' 47531enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`' 47532export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`' 47533whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`' 47534compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`' 47535old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`' 47536old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`' 47537archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`' 47538archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`' 47539module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`' 47540module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`' 47541with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`' 47542allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`' 47543no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`' 47544hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`' 47545hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`' 47546hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`' 47547hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`' 47548hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`' 47549hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`' 47550hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`' 47551inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`' 47552link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`' 47553always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`' 47554export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`' 47555exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`' 47556include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`' 47557prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`' 47558postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`' 47559file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`' 47560hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`' 47561 47562LTCC='$LTCC' 47563LTCFLAGS='$LTCFLAGS' 47564compiler='$compiler_DEFAULT' 47565 47566# A function that is used when there is no print builtin or printf. 47567func_fallback_echo () 47568{ 47569 eval 'cat <<_LTECHO_EOF 47570\$1 47571_LTECHO_EOF' 47572} 47573 47574# Quote evaled strings. 47575for var in AS \ 47576DLLTOOL \ 47577OBJDUMP \ 47578SHELL \ 47579ECHO \ 47580PATH_SEPARATOR \ 47581SED \ 47582GREP \ 47583EGREP \ 47584FGREP \ 47585LD \ 47586NM \ 47587LN_S \ 47588lt_SP2NL \ 47589lt_NL2SP \ 47590reload_flag \ 47591FILECMD \ 47592deplibs_check_method \ 47593file_magic_cmd \ 47594file_magic_glob \ 47595want_nocaseglob \ 47596sharedlib_from_linklib_cmd \ 47597AR \ 47598archiver_list_spec \ 47599STRIP \ 47600RANLIB \ 47601CC \ 47602CFLAGS \ 47603compiler \ 47604lt_cv_sys_global_symbol_pipe \ 47605lt_cv_sys_global_symbol_to_cdecl \ 47606lt_cv_sys_global_symbol_to_import \ 47607lt_cv_sys_global_symbol_to_c_name_address \ 47608lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 47609lt_cv_nm_interface \ 47610nm_file_list_spec \ 47611lt_cv_truncate_bin \ 47612lt_prog_compiler_no_builtin_flag \ 47613lt_prog_compiler_pic \ 47614lt_prog_compiler_wl \ 47615lt_prog_compiler_static \ 47616lt_cv_prog_compiler_c_o \ 47617need_locks \ 47618MANIFEST_TOOL \ 47619DSYMUTIL \ 47620NMEDIT \ 47621LIPO \ 47622OTOOL \ 47623OTOOL64 \ 47624shrext_cmds \ 47625export_dynamic_flag_spec \ 47626whole_archive_flag_spec \ 47627compiler_needs_object \ 47628with_gnu_ld \ 47629allow_undefined_flag \ 47630no_undefined_flag \ 47631hardcode_libdir_flag_spec \ 47632hardcode_libdir_separator \ 47633exclude_expsyms \ 47634include_expsyms \ 47635file_list_spec \ 47636variables_saved_for_relink \ 47637libname_spec \ 47638library_names_spec \ 47639soname_spec \ 47640install_override_mode \ 47641finish_eval \ 47642old_striplib \ 47643striplib \ 47644LD_RC \ 47645reload_flag_RC \ 47646compiler_RC \ 47647lt_prog_compiler_no_builtin_flag_RC \ 47648lt_prog_compiler_pic_RC \ 47649lt_prog_compiler_wl_RC \ 47650lt_prog_compiler_static_RC \ 47651lt_cv_prog_compiler_c_o_RC \ 47652export_dynamic_flag_spec_RC \ 47653whole_archive_flag_spec_RC \ 47654compiler_needs_object_RC \ 47655with_gnu_ld_RC \ 47656allow_undefined_flag_RC \ 47657no_undefined_flag_RC \ 47658hardcode_libdir_flag_spec_RC \ 47659hardcode_libdir_separator_RC \ 47660exclude_expsyms_RC \ 47661include_expsyms_RC \ 47662file_list_spec_RC; do 47663 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 47664 *[\\\\\\\`\\"\\\$]*) 47665 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 47666 ;; 47667 *) 47668 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 47669 ;; 47670 esac 47671done 47672 47673# Double-quote double-evaled strings. 47674for var in reload_cmds \ 47675old_postinstall_cmds \ 47676old_postuninstall_cmds \ 47677old_archive_cmds \ 47678extract_expsyms_cmds \ 47679old_archive_from_new_cmds \ 47680old_archive_from_expsyms_cmds \ 47681archive_cmds \ 47682archive_expsym_cmds \ 47683module_cmds \ 47684module_expsym_cmds \ 47685export_symbols_cmds \ 47686prelink_cmds \ 47687postlink_cmds \ 47688postinstall_cmds \ 47689postuninstall_cmds \ 47690finish_cmds \ 47691sys_lib_search_path_spec \ 47692configure_time_dlsearch_path \ 47693configure_time_lt_sys_library_path \ 47694reload_cmds_RC \ 47695old_archive_cmds_RC \ 47696old_archive_from_new_cmds_RC \ 47697old_archive_from_expsyms_cmds_RC \ 47698archive_cmds_RC \ 47699archive_expsym_cmds_RC \ 47700module_cmds_RC \ 47701module_expsym_cmds_RC \ 47702export_symbols_cmds_RC \ 47703prelink_cmds_RC \ 47704postlink_cmds_RC; do 47705 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 47706 *[\\\\\\\`\\"\\\$]*) 47707 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 47708 ;; 47709 *) 47710 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 47711 ;; 47712 esac 47713done 47714 47715ac_aux_dir='$ac_aux_dir' 47716 47717# See if we are running on zsh, and set the options that allow our 47718# commands through without removal of \ escapes INIT. 47719if test -n "\${ZSH_VERSION+set}"; then 47720 setopt NO_GLOB_SUBST 47721fi 47722 47723 47724 PACKAGE='$PACKAGE' 47725 VERSION='$VERSION' 47726 RM='$RM' 47727 ofile='$ofile' 47728 47729 47730 47731 47732 47733 47734_ACEOF 47735 47736cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 47737 47738# Handling of arguments. 47739for ac_config_target in $ac_config_targets 47740do 47741 case $ac_config_target in 47742 "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;; 47743 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 47744 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 47745 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 47746 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;; 47747 "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;; 47748 "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;; 47749 "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;; 47750 "docs/cmdline-opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/cmdline-opts/Makefile" ;; 47751 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 47752 "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;; 47753 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 47754 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 47755 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; 47756 "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;; 47757 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 47758 "tests/config") CONFIG_FILES="$CONFIG_FILES tests/config" ;; 47759 "tests/configurehelp.pm") CONFIG_FILES="$CONFIG_FILES tests/configurehelp.pm" ;; 47760 "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;; 47761 "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;; 47762 "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;; 47763 "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;; 47764 "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;; 47765 "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;; 47766 "tests/http/config.ini") CONFIG_FILES="$CONFIG_FILES tests/http/config.ini" ;; 47767 "tests/http/Makefile") CONFIG_FILES="$CONFIG_FILES tests/http/Makefile" ;; 47768 "tests/http/clients/Makefile") CONFIG_FILES="$CONFIG_FILES tests/http/clients/Makefile" ;; 47769 "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;; 47770 "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;; 47771 "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;; 47772 "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;; 47773 47774 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 47775 esac 47776done 47777 47778 47779# If the user did not use the arguments to specify the items to instantiate, 47780# then the envvar interface is used. Set only those that are not. 47781# We use the long form for the default assignment because of an extremely 47782# bizarre bug on SunOS 4.1.3. 47783if $ac_need_defaults; then 47784 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 47785 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 47786 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 47787fi 47788 47789# Have a temporary directory for convenience. Make it in the build tree 47790# simply because there is no reason against having it here, and in addition, 47791# creating and moving files from /tmp can sometimes cause problems. 47792# Hook for its removal unless debugging. 47793# Note that there is a small window in which the directory will not be cleaned: 47794# after its creation but before its name has been assigned to `$tmp'. 47795$debug || 47796{ 47797 tmp= ac_tmp= 47798 trap 'exit_status=$? 47799 : "${ac_tmp:=$tmp}" 47800 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 47801' 0 47802 trap 'as_fn_exit 1' 1 2 13 15 47803} 47804# Create a (secure) tmp directory for tmp files. 47805 47806{ 47807 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 47808 test -d "$tmp" 47809} || 47810{ 47811 tmp=./conf$$-$RANDOM 47812 (umask 077 && mkdir "$tmp") 47813} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 47814ac_tmp=$tmp 47815 47816# Set up the scripts for CONFIG_FILES section. 47817# No need to generate them if there are no CONFIG_FILES. 47818# This happens for instance with `./config.status config.h'. 47819if test -n "$CONFIG_FILES"; then 47820 47821 47822ac_cr=`echo X | tr X '\015'` 47823# On cygwin, bash can eat \r inside `` if the user requested igncr. 47824# But we know of no other shell where ac_cr would be empty at this 47825# point, so we can use a bashism as a fallback. 47826if test "x$ac_cr" = x; then 47827 eval ac_cr=\$\'\\r\' 47828fi 47829ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 47830if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 47831 ac_cs_awk_cr='\\r' 47832else 47833 ac_cs_awk_cr=$ac_cr 47834fi 47835 47836echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 47837_ACEOF 47838 47839 47840{ 47841 echo "cat >conf$$subs.awk <<_ACEOF" && 47842 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 47843 echo "_ACEOF" 47844} >conf$$subs.sh || 47845 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 47846ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 47847ac_delim='%!_!# ' 47848for ac_last_try in false false false false false :; do 47849 . ./conf$$subs.sh || 47850 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 47851 47852 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 47853 if test $ac_delim_n = $ac_delim_num; then 47854 break 47855 elif $ac_last_try; then 47856 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 47857 else 47858 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 47859 fi 47860done 47861rm -f conf$$subs.sh 47862 47863cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 47864cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 47865_ACEOF 47866sed -n ' 47867h 47868s/^/S["/; s/!.*/"]=/ 47869p 47870g 47871s/^[^!]*!// 47872:repl 47873t repl 47874s/'"$ac_delim"'$// 47875t delim 47876:nl 47877h 47878s/\(.\{148\}\)..*/\1/ 47879t more1 47880s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 47881p 47882n 47883b repl 47884:more1 47885s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 47886p 47887g 47888s/.\{148\}// 47889t nl 47890:delim 47891h 47892s/\(.\{148\}\)..*/\1/ 47893t more2 47894s/["\\]/\\&/g; s/^/"/; s/$/"/ 47895p 47896b 47897:more2 47898s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 47899p 47900g 47901s/.\{148\}// 47902t delim 47903' <conf$$subs.awk | sed ' 47904/^[^""]/{ 47905 N 47906 s/\n// 47907} 47908' >>$CONFIG_STATUS || ac_write_fail=1 47909rm -f conf$$subs.awk 47910cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 47911_ACAWK 47912cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 47913 for (key in S) S_is_set[key] = 1 47914 FS = "" 47915 47916} 47917{ 47918 line = $ 0 47919 nfields = split(line, field, "@") 47920 substed = 0 47921 len = length(field[1]) 47922 for (i = 2; i < nfields; i++) { 47923 key = field[i] 47924 keylen = length(key) 47925 if (S_is_set[key]) { 47926 value = S[key] 47927 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 47928 len += length(value) + length(field[++i]) 47929 substed = 1 47930 } else 47931 len += 1 + keylen 47932 } 47933 47934 print line 47935} 47936 47937_ACAWK 47938_ACEOF 47939cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 47940if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 47941 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 47942else 47943 cat 47944fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 47945 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 47946_ACEOF 47947 47948# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 47949# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 47950# trailing colons and then remove the whole line if VPATH becomes empty 47951# (actually we leave an empty line to preserve line numbers). 47952if test "x$srcdir" = x.; then 47953 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 47954h 47955s/// 47956s/^/:/ 47957s/[ ]*$/:/ 47958s/:\$(srcdir):/:/g 47959s/:\${srcdir}:/:/g 47960s/:@srcdir@:/:/g 47961s/^:*// 47962s/:*$// 47963x 47964s/\(=[ ]*\).*/\1/ 47965G 47966s/\n// 47967s/^[^=]*=[ ]*$// 47968}' 47969fi 47970 47971cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 47972fi # test -n "$CONFIG_FILES" 47973 47974# Set up the scripts for CONFIG_HEADERS section. 47975# No need to generate them if there are no CONFIG_HEADERS. 47976# This happens for instance with `./config.status Makefile'. 47977if test -n "$CONFIG_HEADERS"; then 47978cat >"$ac_tmp/defines.awk" <<\_ACAWK || 47979BEGIN { 47980_ACEOF 47981 47982# Transform confdefs.h into an awk script `defines.awk', embedded as 47983# here-document in config.status, that substitutes the proper values into 47984# config.h.in to produce config.h. 47985 47986# Create a delimiter string that does not exist in confdefs.h, to ease 47987# handling of long lines. 47988ac_delim='%!_!# ' 47989for ac_last_try in false false :; do 47990 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 47991 if test -z "$ac_tt"; then 47992 break 47993 elif $ac_last_try; then 47994 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 47995 else 47996 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 47997 fi 47998done 47999 48000# For the awk script, D is an array of macro values keyed by name, 48001# likewise P contains macro parameters if any. Preserve backslash 48002# newline sequences. 48003 48004ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 48005sed -n ' 48006s/.\{148\}/&'"$ac_delim"'/g 48007t rset 48008:rset 48009s/^[ ]*#[ ]*define[ ][ ]*/ / 48010t def 48011d 48012:def 48013s/\\$// 48014t bsnl 48015s/["\\]/\\&/g 48016s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 48017D["\1"]=" \3"/p 48018s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 48019d 48020:bsnl 48021s/["\\]/\\&/g 48022s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 48023D["\1"]=" \3\\\\\\n"\\/p 48024t cont 48025s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 48026t cont 48027d 48028:cont 48029n 48030s/.\{148\}/&'"$ac_delim"'/g 48031t clear 48032:clear 48033s/\\$// 48034t bsnlc 48035s/["\\]/\\&/g; s/^/"/; s/$/"/p 48036d 48037:bsnlc 48038s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 48039b cont 48040' <confdefs.h | sed ' 48041s/'"$ac_delim"'/"\\\ 48042"/g' >>$CONFIG_STATUS || ac_write_fail=1 48043 48044cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 48045 for (key in D) D_is_set[key] = 1 48046 FS = "" 48047} 48048/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 48049 line = \$ 0 48050 split(line, arg, " ") 48051 if (arg[1] == "#") { 48052 defundef = arg[2] 48053 mac1 = arg[3] 48054 } else { 48055 defundef = substr(arg[1], 2) 48056 mac1 = arg[2] 48057 } 48058 split(mac1, mac2, "(") #) 48059 macro = mac2[1] 48060 prefix = substr(line, 1, index(line, defundef) - 1) 48061 if (D_is_set[macro]) { 48062 # Preserve the white space surrounding the "#". 48063 print prefix "define", macro P[macro] D[macro] 48064 next 48065 } else { 48066 # Replace #undef with comments. This is necessary, for example, 48067 # in the case of _POSIX_SOURCE, which is predefined and required 48068 # on some systems where configure will not decide to define it. 48069 if (defundef == "undef") { 48070 print "/*", prefix defundef, macro, "*/" 48071 next 48072 } 48073 } 48074} 48075{ print } 48076_ACAWK 48077_ACEOF 48078cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 48079 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 48080fi # test -n "$CONFIG_HEADERS" 48081 48082 48083eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 48084shift 48085for ac_tag 48086do 48087 case $ac_tag in 48088 :[FHLC]) ac_mode=$ac_tag; continue;; 48089 esac 48090 case $ac_mode$ac_tag in 48091 :[FHL]*:*);; 48092 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 48093 :[FH]-) ac_tag=-:-;; 48094 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 48095 esac 48096 ac_save_IFS=$IFS 48097 IFS=: 48098 set x $ac_tag 48099 IFS=$ac_save_IFS 48100 shift 48101 ac_file=$1 48102 shift 48103 48104 case $ac_mode in 48105 :L) ac_source=$1;; 48106 :[FH]) 48107 ac_file_inputs= 48108 for ac_f 48109 do 48110 case $ac_f in 48111 -) ac_f="$ac_tmp/stdin";; 48112 *) # Look for the file first in the build tree, then in the source tree 48113 # (if the path is not absolute). The absolute path cannot be DOS-style, 48114 # because $ac_f cannot contain `:'. 48115 test -f "$ac_f" || 48116 case $ac_f in 48117 [\\/$]*) false;; 48118 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 48119 esac || 48120 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 48121 esac 48122 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 48123 as_fn_append ac_file_inputs " '$ac_f'" 48124 done 48125 48126 # Let's still pretend it is `configure' which instantiates (i.e., don't 48127 # use $as_me), people would be surprised to read: 48128 # /* config.h. Generated by config.status. */ 48129 configure_input='Generated from '` 48130 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 48131 `' by configure.' 48132 if test x"$ac_file" != x-; then 48133 configure_input="$ac_file. $configure_input" 48134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 48135printf "%s\n" "$as_me: creating $ac_file" >&6;} 48136 fi 48137 # Neutralize special characters interpreted by sed in replacement strings. 48138 case $configure_input in #( 48139 *\&* | *\|* | *\\* ) 48140 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 48141 sed 's/[\\\\&|]/\\\\&/g'`;; #( 48142 *) ac_sed_conf_input=$configure_input;; 48143 esac 48144 48145 case $ac_tag in 48146 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 48147 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 48148 esac 48149 ;; 48150 esac 48151 48152 ac_dir=`$as_dirname -- "$ac_file" || 48153$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 48154 X"$ac_file" : 'X\(//\)[^/]' \| \ 48155 X"$ac_file" : 'X\(//\)$' \| \ 48156 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 48157printf "%s\n" X"$ac_file" | 48158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 48159 s//\1/ 48160 q 48161 } 48162 /^X\(\/\/\)[^/].*/{ 48163 s//\1/ 48164 q 48165 } 48166 /^X\(\/\/\)$/{ 48167 s//\1/ 48168 q 48169 } 48170 /^X\(\/\).*/{ 48171 s//\1/ 48172 q 48173 } 48174 s/.*/./; q'` 48175 as_dir="$ac_dir"; as_fn_mkdir_p 48176 ac_builddir=. 48177 48178case "$ac_dir" in 48179.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 48180*) 48181 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 48182 # A ".." for each directory in $ac_dir_suffix. 48183 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 48184 case $ac_top_builddir_sub in 48185 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 48186 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 48187 esac ;; 48188esac 48189ac_abs_top_builddir=$ac_pwd 48190ac_abs_builddir=$ac_pwd$ac_dir_suffix 48191# for backward compatibility: 48192ac_top_builddir=$ac_top_build_prefix 48193 48194case $srcdir in 48195 .) # We are building in place. 48196 ac_srcdir=. 48197 ac_top_srcdir=$ac_top_builddir_sub 48198 ac_abs_top_srcdir=$ac_pwd ;; 48199 [\\/]* | ?:[\\/]* ) # Absolute name. 48200 ac_srcdir=$srcdir$ac_dir_suffix; 48201 ac_top_srcdir=$srcdir 48202 ac_abs_top_srcdir=$srcdir ;; 48203 *) # Relative name. 48204 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 48205 ac_top_srcdir=$ac_top_build_prefix$srcdir 48206 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 48207esac 48208ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 48209 48210 48211 case $ac_mode in 48212 :F) 48213 # 48214 # CONFIG_FILE 48215 # 48216 48217 case $INSTALL in 48218 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 48219 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 48220 esac 48221 ac_MKDIR_P=$MKDIR_P 48222 case $MKDIR_P in 48223 [\\/$]* | ?:[\\/]* ) ;; 48224 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 48225 esac 48226_ACEOF 48227 48228cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 48229# If the template does not know about datarootdir, expand it. 48230# FIXME: This hack should be removed a few years after 2.60. 48231ac_datarootdir_hack=; ac_datarootdir_seen= 48232ac_sed_dataroot=' 48233/datarootdir/ { 48234 p 48235 q 48236} 48237/@datadir@/p 48238/@docdir@/p 48239/@infodir@/p 48240/@localedir@/p 48241/@mandir@/p' 48242case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 48243*datarootdir*) ac_datarootdir_seen=yes;; 48244*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 48245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 48246printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 48247_ACEOF 48248cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 48249 ac_datarootdir_hack=' 48250 s&@datadir@&$datadir&g 48251 s&@docdir@&$docdir&g 48252 s&@infodir@&$infodir&g 48253 s&@localedir@&$localedir&g 48254 s&@mandir@&$mandir&g 48255 s&\\\${datarootdir}&$datarootdir&g' ;; 48256esac 48257_ACEOF 48258 48259# Neutralize VPATH when `$srcdir' = `.'. 48260# Shell code in configure.ac might set extrasub. 48261# FIXME: do we really want to maintain this feature? 48262cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 48263ac_sed_extra="$ac_vpsub 48264$extrasub 48265_ACEOF 48266cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 48267:t 48268/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 48269s|@configure_input@|$ac_sed_conf_input|;t t 48270s&@top_builddir@&$ac_top_builddir_sub&;t t 48271s&@top_build_prefix@&$ac_top_build_prefix&;t t 48272s&@srcdir@&$ac_srcdir&;t t 48273s&@abs_srcdir@&$ac_abs_srcdir&;t t 48274s&@top_srcdir@&$ac_top_srcdir&;t t 48275s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 48276s&@builddir@&$ac_builddir&;t t 48277s&@abs_builddir@&$ac_abs_builddir&;t t 48278s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 48279s&@INSTALL@&$ac_INSTALL&;t t 48280s&@MKDIR_P@&$ac_MKDIR_P&;t t 48281$ac_datarootdir_hack 48282" 48283eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 48284 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 48285 48286test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 48287 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 48288 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 48289 "$ac_tmp/out"`; test -z "$ac_out"; } && 48290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 48291which seems to be undefined. Please make sure it is defined" >&5 48292printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 48293which seems to be undefined. Please make sure it is defined" >&2;} 48294 48295 rm -f "$ac_tmp/stdin" 48296 case $ac_file in 48297 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 48298 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 48299 esac \ 48300 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 48301 ;; 48302 :H) 48303 # 48304 # CONFIG_HEADER 48305 # 48306 if test x"$ac_file" != x-; then 48307 { 48308 printf "%s\n" "/* $configure_input */" >&1 \ 48309 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 48310 } >"$ac_tmp/config.h" \ 48311 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 48312 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 48313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 48314printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 48315 else 48316 rm -f "$ac_file" 48317 mv "$ac_tmp/config.h" "$ac_file" \ 48318 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 48319 fi 48320 else 48321 printf "%s\n" "/* $configure_input */" >&1 \ 48322 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 48323 || as_fn_error $? "could not create -" "$LINENO" 5 48324 fi 48325# Compute "$ac_file"'s index in $config_headers. 48326_am_arg="$ac_file" 48327_am_stamp_count=1 48328for _am_header in $config_headers :; do 48329 case $_am_header in 48330 $_am_arg | $_am_arg:* ) 48331 break ;; 48332 * ) 48333 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 48334 esac 48335done 48336echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 48337$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 48338 X"$_am_arg" : 'X\(//\)[^/]' \| \ 48339 X"$_am_arg" : 'X\(//\)$' \| \ 48340 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 48341printf "%s\n" X"$_am_arg" | 48342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 48343 s//\1/ 48344 q 48345 } 48346 /^X\(\/\/\)[^/].*/{ 48347 s//\1/ 48348 q 48349 } 48350 /^X\(\/\/\)$/{ 48351 s//\1/ 48352 q 48353 } 48354 /^X\(\/\).*/{ 48355 s//\1/ 48356 q 48357 } 48358 s/.*/./; q'`/stamp-h$_am_stamp_count 48359 ;; 48360 48361 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 48362printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 48363 ;; 48364 esac 48365 48366 48367 case $ac_file$ac_mode in 48368 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 48369 # Older Autoconf quotes --file arguments for eval, but not when files 48370 # are listed without --file. Let's play safe and only enable the eval 48371 # if we detect the quoting. 48372 # TODO: see whether this extra hack can be removed once we start 48373 # requiring Autoconf 2.70 or later. 48374 case $CONFIG_FILES in #( 48375 *\'*) : 48376 eval set x "$CONFIG_FILES" ;; #( 48377 *) : 48378 set x $CONFIG_FILES ;; #( 48379 *) : 48380 ;; 48381esac 48382 shift 48383 # Used to flag and report bootstrapping failures. 48384 am_rc=0 48385 for am_mf 48386 do 48387 # Strip MF so we end up with the name of the file. 48388 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 48389 # Check whether this is an Automake generated Makefile which includes 48390 # dependency-tracking related rules and includes. 48391 # Grep'ing the whole file directly is not great: AIX grep has a line 48392 # limit of 2048, but all sed's we know have understand at least 4000. 48393 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 48394 || continue 48395 am_dirpart=`$as_dirname -- "$am_mf" || 48396$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 48397 X"$am_mf" : 'X\(//\)[^/]' \| \ 48398 X"$am_mf" : 'X\(//\)$' \| \ 48399 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 48400printf "%s\n" X"$am_mf" | 48401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 48402 s//\1/ 48403 q 48404 } 48405 /^X\(\/\/\)[^/].*/{ 48406 s//\1/ 48407 q 48408 } 48409 /^X\(\/\/\)$/{ 48410 s//\1/ 48411 q 48412 } 48413 /^X\(\/\).*/{ 48414 s//\1/ 48415 q 48416 } 48417 s/.*/./; q'` 48418 am_filepart=`$as_basename -- "$am_mf" || 48419$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 48420 X"$am_mf" : 'X\(//\)$' \| \ 48421 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 48422printf "%s\n" X/"$am_mf" | 48423 sed '/^.*\/\([^/][^/]*\)\/*$/{ 48424 s//\1/ 48425 q 48426 } 48427 /^X\/\(\/\/\)$/{ 48428 s//\1/ 48429 q 48430 } 48431 /^X\/\(\/\).*/{ 48432 s//\1/ 48433 q 48434 } 48435 s/.*/./; q'` 48436 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 48437 && sed -e '/# am--include-marker/d' "$am_filepart" \ 48438 | $MAKE -f - am--depfiles" >&5 48439 (cd "$am_dirpart" \ 48440 && sed -e '/# am--include-marker/d' "$am_filepart" \ 48441 | $MAKE -f - am--depfiles) >&5 2>&5 48442 ac_status=$? 48443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 48444 (exit $ac_status); } || am_rc=$? 48445 done 48446 if test $am_rc -ne 0; then 48447 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 48448printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 48449as_fn_error $? "Something went wrong bootstrapping makefile fragments 48450 for automatic dependency tracking. If GNU make was not used, consider 48451 re-running the configure script with MAKE=\"gmake\" (or whatever is 48452 necessary). You can also try re-running configure with the 48453 '--disable-dependency-tracking' option to at least be able to build 48454 the package (albeit without support for automatic dependency tracking). 48455See \`config.log' for more details" "$LINENO" 5; } 48456 fi 48457 { am_dirpart=; unset am_dirpart;} 48458 { am_filepart=; unset am_filepart;} 48459 { am_mf=; unset am_mf;} 48460 { am_rc=; unset am_rc;} 48461 rm -f conftest-deps.mk 48462} 48463 ;; 48464 "libtool":C) 48465 48466 # See if we are running on zsh, and set the options that allow our 48467 # commands through without removal of \ escapes. 48468 if test -n "${ZSH_VERSION+set}"; then 48469 setopt NO_GLOB_SUBST 48470 fi 48471 48472 cfgfile=${ofile}T 48473 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 48474 $RM "$cfgfile" 48475 48476 cat <<_LT_EOF >> "$cfgfile" 48477#! $SHELL 48478# Generated automatically by $as_me ($PACKAGE) $VERSION 48479# NOTE: Changes made to this file will be lost: look at ltmain.sh. 48480 48481# Provide generalized library-building support services. 48482# Written by Gordon Matzigkeit, 1996 48483 48484# Copyright (C) 2014 Free Software Foundation, Inc. 48485# This is free software; see the source for copying conditions. There is NO 48486# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 48487 48488# GNU Libtool is free software; you can redistribute it and/or modify 48489# it under the terms of the GNU General Public License as published by 48490# the Free Software Foundation; either version 2 of of the License, or 48491# (at your option) any later version. 48492# 48493# As a special exception to the GNU General Public License, if you 48494# distribute this file as part of a program or library that is built 48495# using GNU Libtool, you may include this file under the same 48496# distribution terms that you use for the rest of that program. 48497# 48498# GNU Libtool is distributed in the hope that it will be useful, but 48499# WITHOUT ANY WARRANTY; without even the implied warranty of 48500# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 48501# GNU General Public License for more details. 48502# 48503# You should have received a copy of the GNU General Public License 48504# along with this program. If not, see <http://www.gnu.org/licenses/>. 48505 48506 48507# The names of the tagged configurations supported by this script. 48508available_tags='RC ' 48509 48510# Configured defaults for sys_lib_dlsearch_path munging. 48511: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 48512 48513# ### BEGIN LIBTOOL CONFIG 48514 48515# Which release of libtool.m4 was used? 48516macro_version=$macro_version 48517macro_revision=$macro_revision 48518 48519# Assembler program. 48520AS=$lt_AS 48521 48522# DLL creation program. 48523DLLTOOL=$lt_DLLTOOL 48524 48525# Object dumper program. 48526OBJDUMP=$lt_OBJDUMP 48527 48528# Whether or not to build shared libraries. 48529build_libtool_libs=$enable_shared 48530 48531# Whether or not to build static libraries. 48532build_old_libs=$enable_static 48533 48534# What type of objects to build. 48535pic_mode=$pic_mode 48536 48537# Whether or not to optimize for fast installation. 48538fast_install=$enable_fast_install 48539 48540# Shared archive member basename,for filename based shared library versioning on AIX. 48541shared_archive_member_spec=$shared_archive_member_spec 48542 48543# Shell to use when invoking shell scripts. 48544SHELL=$lt_SHELL 48545 48546# An echo program that protects backslashes. 48547ECHO=$lt_ECHO 48548 48549# The PATH separator for the build system. 48550PATH_SEPARATOR=$lt_PATH_SEPARATOR 48551 48552# The host system. 48553host_alias=$host_alias 48554host=$host 48555host_os=$host_os 48556 48557# The build system. 48558build_alias=$build_alias 48559build=$build 48560build_os=$build_os 48561 48562# A sed program that does not truncate output. 48563SED=$lt_SED 48564 48565# Sed that helps us avoid accidentally triggering echo(1) options like -n. 48566Xsed="\$SED -e 1s/^X//" 48567 48568# A grep program that handles long lines. 48569GREP=$lt_GREP 48570 48571# An ERE matcher. 48572EGREP=$lt_EGREP 48573 48574# A literal string matcher. 48575FGREP=$lt_FGREP 48576 48577# A BSD- or MS-compatible name lister. 48578NM=$lt_NM 48579 48580# Whether we need soft or hard links. 48581LN_S=$lt_LN_S 48582 48583# What is the maximum length of a command? 48584max_cmd_len=$max_cmd_len 48585 48586# Object file suffix (normally "o"). 48587objext=$ac_objext 48588 48589# Executable file suffix (normally ""). 48590exeext=$exeext 48591 48592# whether the shell understands "unset". 48593lt_unset=$lt_unset 48594 48595# turn spaces into newlines. 48596SP2NL=$lt_lt_SP2NL 48597 48598# turn newlines into spaces. 48599NL2SP=$lt_lt_NL2SP 48600 48601# convert \$build file names to \$host format. 48602to_host_file_cmd=$lt_cv_to_host_file_cmd 48603 48604# convert \$build files to toolchain format. 48605to_tool_file_cmd=$lt_cv_to_tool_file_cmd 48606 48607# A file(cmd) program that detects file types. 48608FILECMD=$lt_FILECMD 48609 48610# Method to check whether dependent libraries are shared objects. 48611deplibs_check_method=$lt_deplibs_check_method 48612 48613# Command to use when deplibs_check_method = "file_magic". 48614file_magic_cmd=$lt_file_magic_cmd 48615 48616# How to find potential files when deplibs_check_method = "file_magic". 48617file_magic_glob=$lt_file_magic_glob 48618 48619# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 48620want_nocaseglob=$lt_want_nocaseglob 48621 48622# Command to associate shared and link libraries. 48623sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 48624 48625# The archiver. 48626AR=$lt_AR 48627 48628# Flags to create an archive (by configure). 48629lt_ar_flags=$lt_ar_flags 48630 48631# Flags to create an archive. 48632AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 48633 48634# How to feed a file listing to the archiver. 48635archiver_list_spec=$lt_archiver_list_spec 48636 48637# A symbol stripping program. 48638STRIP=$lt_STRIP 48639 48640# Commands used to install an old-style archive. 48641RANLIB=$lt_RANLIB 48642old_postinstall_cmds=$lt_old_postinstall_cmds 48643old_postuninstall_cmds=$lt_old_postuninstall_cmds 48644 48645# Whether to use a lock for old archive extraction. 48646lock_old_archive_extraction=$lock_old_archive_extraction 48647 48648# A C compiler. 48649LTCC=$lt_CC 48650 48651# LTCC compiler flags. 48652LTCFLAGS=$lt_CFLAGS 48653 48654# Take the output of nm and produce a listing of raw symbols and C names. 48655global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 48656 48657# Transform the output of nm in a proper C declaration. 48658global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 48659 48660# Transform the output of nm into a list of symbols to manually relocate. 48661global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 48662 48663# Transform the output of nm in a C name address pair. 48664global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 48665 48666# Transform the output of nm in a C name address pair when lib prefix is needed. 48667global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 48668 48669# The name lister interface. 48670nm_interface=$lt_lt_cv_nm_interface 48671 48672# Specify filename containing input files for \$NM. 48673nm_file_list_spec=$lt_nm_file_list_spec 48674 48675# The root where to search for dependent libraries,and where our libraries should be installed. 48676lt_sysroot=$lt_sysroot 48677 48678# Command to truncate a binary pipe. 48679lt_truncate_bin=$lt_lt_cv_truncate_bin 48680 48681# The name of the directory that contains temporary libtool files. 48682objdir=$objdir 48683 48684# Used to examine libraries when file_magic_cmd begins with "file". 48685MAGIC_CMD=$MAGIC_CMD 48686 48687# Must we lock files when doing compilation? 48688need_locks=$lt_need_locks 48689 48690# Manifest tool. 48691MANIFEST_TOOL=$lt_MANIFEST_TOOL 48692 48693# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 48694DSYMUTIL=$lt_DSYMUTIL 48695 48696# Tool to change global to local symbols on Mac OS X. 48697NMEDIT=$lt_NMEDIT 48698 48699# Tool to manipulate fat objects and archives on Mac OS X. 48700LIPO=$lt_LIPO 48701 48702# ldd/readelf like tool for Mach-O binaries on Mac OS X. 48703OTOOL=$lt_OTOOL 48704 48705# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 48706OTOOL64=$lt_OTOOL64 48707 48708# Old archive suffix (normally "a"). 48709libext=$libext 48710 48711# Shared library suffix (normally ".so"). 48712shrext_cmds=$lt_shrext_cmds 48713 48714# The commands to extract the exported symbol list from a shared archive. 48715extract_expsyms_cmds=$lt_extract_expsyms_cmds 48716 48717# Variables whose values should be saved in libtool wrapper scripts and 48718# restored at link time. 48719variables_saved_for_relink=$lt_variables_saved_for_relink 48720 48721# Do we need the "lib" prefix for modules? 48722need_lib_prefix=$need_lib_prefix 48723 48724# Do we need a version for libraries? 48725need_version=$need_version 48726 48727# Library versioning type. 48728version_type=$version_type 48729 48730# Shared library runtime path variable. 48731runpath_var=$runpath_var 48732 48733# Shared library path variable. 48734shlibpath_var=$shlibpath_var 48735 48736# Is shlibpath searched before the hard-coded library search path? 48737shlibpath_overrides_runpath=$shlibpath_overrides_runpath 48738 48739# Format of library name prefix. 48740libname_spec=$lt_libname_spec 48741 48742# List of archive names. First name is the real one, the rest are links. 48743# The last name is the one that the linker finds with -lNAME 48744library_names_spec=$lt_library_names_spec 48745 48746# The coded name of the library, if different from the real name. 48747soname_spec=$lt_soname_spec 48748 48749# Permission mode override for installation of shared libraries. 48750install_override_mode=$lt_install_override_mode 48751 48752# Command to use after installation of a shared archive. 48753postinstall_cmds=$lt_postinstall_cmds 48754 48755# Command to use after uninstallation of a shared archive. 48756postuninstall_cmds=$lt_postuninstall_cmds 48757 48758# Commands used to finish a libtool library installation in a directory. 48759finish_cmds=$lt_finish_cmds 48760 48761# As "finish_cmds", except a single script fragment to be evaled but 48762# not shown. 48763finish_eval=$lt_finish_eval 48764 48765# Whether we should hardcode library paths into libraries. 48766hardcode_into_libs=$hardcode_into_libs 48767 48768# Compile-time system search path for libraries. 48769sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 48770 48771# Detected run-time system search path for libraries. 48772sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 48773 48774# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 48775configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 48776 48777# Whether dlopen is supported. 48778dlopen_support=$enable_dlopen 48779 48780# Whether dlopen of programs is supported. 48781dlopen_self=$enable_dlopen_self 48782 48783# Whether dlopen of statically linked programs is supported. 48784dlopen_self_static=$enable_dlopen_self_static 48785 48786# Commands to strip libraries. 48787old_striplib=$lt_old_striplib 48788striplib=$lt_striplib 48789 48790 48791# The linker used to build libraries. 48792LD=$lt_LD 48793 48794# How to create reloadable object files. 48795reload_flag=$lt_reload_flag 48796reload_cmds=$lt_reload_cmds 48797 48798# Commands used to build an old-style archive. 48799old_archive_cmds=$lt_old_archive_cmds 48800 48801# A language specific compiler. 48802CC=$lt_compiler 48803 48804# Is the compiler the GNU compiler? 48805with_gcc=$GCC 48806 48807# Compiler flag to turn off builtin functions. 48808no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 48809 48810# Additional compiler flags for building library objects. 48811pic_flag=$lt_lt_prog_compiler_pic 48812 48813# How to pass a linker flag through the compiler. 48814wl=$lt_lt_prog_compiler_wl 48815 48816# Compiler flag to prevent dynamic linking. 48817link_static_flag=$lt_lt_prog_compiler_static 48818 48819# Does compiler simultaneously support -c and -o options? 48820compiler_c_o=$lt_lt_cv_prog_compiler_c_o 48821 48822# Whether or not to add -lc for building shared libraries. 48823build_libtool_need_lc=$archive_cmds_need_lc 48824 48825# Whether or not to disallow shared libs when runtime libs are static. 48826allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 48827 48828# Compiler flag to allow reflexive dlopens. 48829export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 48830 48831# Compiler flag to generate shared objects directly from archives. 48832whole_archive_flag_spec=$lt_whole_archive_flag_spec 48833 48834# Whether the compiler copes with passing no objects directly. 48835compiler_needs_object=$lt_compiler_needs_object 48836 48837# Create an old-style archive from a shared archive. 48838old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 48839 48840# Create a temporary old-style archive to link instead of a shared archive. 48841old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 48842 48843# Commands used to build a shared archive. 48844archive_cmds=$lt_archive_cmds 48845archive_expsym_cmds=$lt_archive_expsym_cmds 48846 48847# Commands used to build a loadable module if different from building 48848# a shared archive. 48849module_cmds=$lt_module_cmds 48850module_expsym_cmds=$lt_module_expsym_cmds 48851 48852# Whether we are building with GNU ld or not. 48853with_gnu_ld=$lt_with_gnu_ld 48854 48855# Flag that allows shared libraries with undefined symbols to be built. 48856allow_undefined_flag=$lt_allow_undefined_flag 48857 48858# Flag that enforces no undefined symbols. 48859no_undefined_flag=$lt_no_undefined_flag 48860 48861# Flag to hardcode \$libdir into a binary during linking. 48862# This must work even if \$libdir does not exist 48863hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 48864 48865# Whether we need a single "-rpath" flag with a separated argument. 48866hardcode_libdir_separator=$lt_hardcode_libdir_separator 48867 48868# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 48869# DIR into the resulting binary. 48870hardcode_direct=$hardcode_direct 48871 48872# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 48873# DIR into the resulting binary and the resulting library dependency is 48874# "absolute",i.e impossible to change by setting \$shlibpath_var if the 48875# library is relocated. 48876hardcode_direct_absolute=$hardcode_direct_absolute 48877 48878# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 48879# into the resulting binary. 48880hardcode_minus_L=$hardcode_minus_L 48881 48882# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 48883# into the resulting binary. 48884hardcode_shlibpath_var=$hardcode_shlibpath_var 48885 48886# Set to "yes" if building a shared library automatically hardcodes DIR 48887# into the library and all subsequent libraries and executables linked 48888# against it. 48889hardcode_automatic=$hardcode_automatic 48890 48891# Set to yes if linker adds runtime paths of dependent libraries 48892# to runtime path list. 48893inherit_rpath=$inherit_rpath 48894 48895# Whether libtool must link a program against all its dependency libraries. 48896link_all_deplibs=$link_all_deplibs 48897 48898# Set to "yes" if exported symbols are required. 48899always_export_symbols=$always_export_symbols 48900 48901# The commands to list exported symbols. 48902export_symbols_cmds=$lt_export_symbols_cmds 48903 48904# Symbols that should not be listed in the preloaded symbols. 48905exclude_expsyms=$lt_exclude_expsyms 48906 48907# Symbols that must always be exported. 48908include_expsyms=$lt_include_expsyms 48909 48910# Commands necessary for linking programs (against libraries) with templates. 48911prelink_cmds=$lt_prelink_cmds 48912 48913# Commands necessary for finishing linking programs. 48914postlink_cmds=$lt_postlink_cmds 48915 48916# Specify filename containing input files. 48917file_list_spec=$lt_file_list_spec 48918 48919# How to hardcode a shared library path into an executable. 48920hardcode_action=$hardcode_action 48921 48922# ### END LIBTOOL CONFIG 48923 48924_LT_EOF 48925 48926 cat <<'_LT_EOF' >> "$cfgfile" 48927 48928# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 48929 48930# func_munge_path_list VARIABLE PATH 48931# ----------------------------------- 48932# VARIABLE is name of variable containing _space_ separated list of 48933# directories to be munged by the contents of PATH, which is string 48934# having a format: 48935# "DIR[:DIR]:" 48936# string "DIR[ DIR]" will be prepended to VARIABLE 48937# ":DIR[:DIR]" 48938# string "DIR[ DIR]" will be appended to VARIABLE 48939# "DIRP[:DIRP]::[DIRA:]DIRA" 48940# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 48941# "DIRA[ DIRA]" will be appended to VARIABLE 48942# "DIR[:DIR]" 48943# VARIABLE will be replaced by "DIR[ DIR]" 48944func_munge_path_list () 48945{ 48946 case x$2 in 48947 x) 48948 ;; 48949 *:) 48950 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 48951 ;; 48952 x:*) 48953 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 48954 ;; 48955 *::*) 48956 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 48957 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 48958 ;; 48959 *) 48960 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 48961 ;; 48962 esac 48963} 48964 48965 48966# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 48967func_cc_basename () 48968{ 48969 for cc_temp in $*""; do 48970 case $cc_temp in 48971 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 48972 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 48973 \-*) ;; 48974 *) break;; 48975 esac 48976 done 48977 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 48978} 48979 48980 48981# ### END FUNCTIONS SHARED WITH CONFIGURE 48982 48983_LT_EOF 48984 48985 case $host_os in 48986 aix3*) 48987 cat <<\_LT_EOF >> "$cfgfile" 48988# AIX sometimes has problems with the GCC collect2 program. For some 48989# reason, if we set the COLLECT_NAMES environment variable, the problems 48990# vanish in a puff of smoke. 48991if test set != "${COLLECT_NAMES+set}"; then 48992 COLLECT_NAMES= 48993 export COLLECT_NAMES 48994fi 48995_LT_EOF 48996 ;; 48997 esac 48998 48999 49000 49001ltmain=$ac_aux_dir/ltmain.sh 49002 49003 49004 # We use sed instead of cat because bash on DJGPP gets confused if 49005 # if finds mixed CR/LF and LF-only lines. Since sed operates in 49006 # text mode, it properly converts lines to CR/LF. This bash problem 49007 # is reportedly fixed, but why not run on old versions too? 49008 $SED '$q' "$ltmain" >> "$cfgfile" \ 49009 || (rm -f "$cfgfile"; exit 1) 49010 49011 mv -f "$cfgfile" "$ofile" || 49012 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 49013 chmod +x "$ofile" 49014 49015 49016 cat <<_LT_EOF >> "$ofile" 49017 49018# ### BEGIN LIBTOOL TAG CONFIG: RC 49019 49020# The linker used to build libraries. 49021LD=$lt_LD_RC 49022 49023# How to create reloadable object files. 49024reload_flag=$lt_reload_flag_RC 49025reload_cmds=$lt_reload_cmds_RC 49026 49027# Commands used to build an old-style archive. 49028old_archive_cmds=$lt_old_archive_cmds_RC 49029 49030# A language specific compiler. 49031CC=$lt_compiler_RC 49032 49033# Is the compiler the GNU compiler? 49034with_gcc=$GCC_RC 49035 49036# Compiler flag to turn off builtin functions. 49037no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 49038 49039# Additional compiler flags for building library objects. 49040pic_flag=$lt_lt_prog_compiler_pic_RC 49041 49042# How to pass a linker flag through the compiler. 49043wl=$lt_lt_prog_compiler_wl_RC 49044 49045# Compiler flag to prevent dynamic linking. 49046link_static_flag=$lt_lt_prog_compiler_static_RC 49047 49048# Does compiler simultaneously support -c and -o options? 49049compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 49050 49051# Whether or not to add -lc for building shared libraries. 49052build_libtool_need_lc=$archive_cmds_need_lc_RC 49053 49054# Whether or not to disallow shared libs when runtime libs are static. 49055allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 49056 49057# Compiler flag to allow reflexive dlopens. 49058export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 49059 49060# Compiler flag to generate shared objects directly from archives. 49061whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 49062 49063# Whether the compiler copes with passing no objects directly. 49064compiler_needs_object=$lt_compiler_needs_object_RC 49065 49066# Create an old-style archive from a shared archive. 49067old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 49068 49069# Create a temporary old-style archive to link instead of a shared archive. 49070old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 49071 49072# Commands used to build a shared archive. 49073archive_cmds=$lt_archive_cmds_RC 49074archive_expsym_cmds=$lt_archive_expsym_cmds_RC 49075 49076# Commands used to build a loadable module if different from building 49077# a shared archive. 49078module_cmds=$lt_module_cmds_RC 49079module_expsym_cmds=$lt_module_expsym_cmds_RC 49080 49081# Whether we are building with GNU ld or not. 49082with_gnu_ld=$lt_with_gnu_ld_RC 49083 49084# Flag that allows shared libraries with undefined symbols to be built. 49085allow_undefined_flag=$lt_allow_undefined_flag_RC 49086 49087# Flag that enforces no undefined symbols. 49088no_undefined_flag=$lt_no_undefined_flag_RC 49089 49090# Flag to hardcode \$libdir into a binary during linking. 49091# This must work even if \$libdir does not exist 49092hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 49093 49094# Whether we need a single "-rpath" flag with a separated argument. 49095hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 49096 49097# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 49098# DIR into the resulting binary. 49099hardcode_direct=$hardcode_direct_RC 49100 49101# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 49102# DIR into the resulting binary and the resulting library dependency is 49103# "absolute",i.e impossible to change by setting \$shlibpath_var if the 49104# library is relocated. 49105hardcode_direct_absolute=$hardcode_direct_absolute_RC 49106 49107# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 49108# into the resulting binary. 49109hardcode_minus_L=$hardcode_minus_L_RC 49110 49111# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 49112# into the resulting binary. 49113hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 49114 49115# Set to "yes" if building a shared library automatically hardcodes DIR 49116# into the library and all subsequent libraries and executables linked 49117# against it. 49118hardcode_automatic=$hardcode_automatic_RC 49119 49120# Set to yes if linker adds runtime paths of dependent libraries 49121# to runtime path list. 49122inherit_rpath=$inherit_rpath_RC 49123 49124# Whether libtool must link a program against all its dependency libraries. 49125link_all_deplibs=$link_all_deplibs_RC 49126 49127# Set to "yes" if exported symbols are required. 49128always_export_symbols=$always_export_symbols_RC 49129 49130# The commands to list exported symbols. 49131export_symbols_cmds=$lt_export_symbols_cmds_RC 49132 49133# Symbols that should not be listed in the preloaded symbols. 49134exclude_expsyms=$lt_exclude_expsyms_RC 49135 49136# Symbols that must always be exported. 49137include_expsyms=$lt_include_expsyms_RC 49138 49139# Commands necessary for linking programs (against libraries) with templates. 49140prelink_cmds=$lt_prelink_cmds_RC 49141 49142# Commands necessary for finishing linking programs. 49143postlink_cmds=$lt_postlink_cmds_RC 49144 49145# Specify filename containing input files. 49146file_list_spec=$lt_file_list_spec_RC 49147 49148# How to hardcode a shared library path into an executable. 49149hardcode_action=$hardcode_action_RC 49150 49151# ### END LIBTOOL TAG CONFIG: RC 49152_LT_EOF 49153 49154 ;; 49155 49156 esac 49157done # for ac_tag 49158 49159 49160as_fn_exit 0 49161_ACEOF 49162ac_clean_files=$ac_clean_files_save 49163 49164test $ac_write_fail = 0 || 49165 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 49166 49167 49168# configure is writing to config.log, and then calls config.status. 49169# config.status does its own redirection, appending to config.log. 49170# Unfortunately, on DOS this fails, as config.log is still kept open 49171# by configure, so config.status won't be able to write to it; its 49172# output is simply discarded. So we exec the FD to /dev/null, 49173# effectively closing config.log, so it can be properly (re)opened and 49174# appended to by config.status. When coming back to configure, we 49175# need to make the FD available again. 49176if test "$no_create" != yes; then 49177 ac_cs_success=: 49178 ac_config_status_args= 49179 test "$silent" = yes && 49180 ac_config_status_args="$ac_config_status_args --quiet" 49181 exec 5>/dev/null 49182 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 49183 exec 5>>config.log 49184 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 49185 # would make configure fail if this is the last instruction. 49186 $ac_cs_success || as_fn_exit 1 49187fi 49188if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 49189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 49190printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 49191fi 49192 49193 49194SUPPORT_PROTOCOLS_LOWER=`echo "$SUPPORT_PROTOCOLS" | tr A-Z a-z` 49195 49196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl: 49197 49198 Host setup: ${host} 49199 Install prefix: ${prefix} 49200 Compiler: ${CC} 49201 CFLAGS: ${CFLAGS} 49202 CFLAGS extras: ${CURL_CFLAG_EXTRAS} 49203 CPPFLAGS: ${CPPFLAGS} 49204 LDFLAGS: ${LDFLAGS} 49205 LIBS: ${LIBS} 49206 49207 curl version: ${CURLVERSION} 49208 SSL: ${curl_ssl_msg} 49209 SSH: ${curl_ssh_msg} 49210 zlib: ${curl_zlib_msg} 49211 brotli: ${curl_brotli_msg} 49212 zstd: ${curl_zstd_msg} 49213 GSS-API: ${curl_gss_msg} 49214 GSASL: ${curl_gsasl_msg} 49215 TLS-SRP: ${curl_tls_srp_msg} 49216 resolver: ${curl_res_msg} 49217 IPv6: ${curl_ipv6_msg} 49218 Unix sockets: ${curl_unix_sockets_msg} 49219 IDN: ${curl_idn_msg} 49220 Build docs: ${curl_docs_msg} 49221 Build libcurl: Shared=${enable_shared}, Static=${enable_static} 49222 Built-in manual: ${curl_manual_msg} 49223 --libcurl option: ${curl_libcurl_msg} 49224 Verbose errors: ${curl_verbose_msg} 49225 Code coverage: ${curl_coverage_msg} 49226 SSPI: ${curl_sspi_msg} 49227 ca cert bundle: ${ca}${ca_warning} 49228 ca cert path: ${capath}${capath_warning} 49229 ca cert embed: ${CURL_CA_EMBED_msg} 49230 ca fallback: ${with_ca_fallback} 49231 LDAP: ${curl_ldap_msg} 49232 LDAPS: ${curl_ldaps_msg} 49233 IPFS/IPNS: ${curl_ipfs_msg} 49234 RTSP: ${curl_rtsp_msg} 49235 RTMP: ${curl_rtmp_msg} 49236 PSL: ${curl_psl_msg} 49237 Alt-svc: ${curl_altsvc_msg} 49238 Headers API: ${curl_headers_msg} 49239 HSTS: ${curl_hsts_msg} 49240 HTTP1: ${curl_h1_msg} 49241 HTTP2: ${curl_h2_msg} 49242 HTTP3: ${curl_h3_msg} 49243 ECH: ${curl_ech_msg} 49244 Protocols: ${SUPPORT_PROTOCOLS_LOWER} 49245 Features: ${SUPPORT_FEATURES} 49246" >&5 49247printf "%s\n" "$as_me: Configured to build curl/libcurl: 49248 49249 Host setup: ${host} 49250 Install prefix: ${prefix} 49251 Compiler: ${CC} 49252 CFLAGS: ${CFLAGS} 49253 CFLAGS extras: ${CURL_CFLAG_EXTRAS} 49254 CPPFLAGS: ${CPPFLAGS} 49255 LDFLAGS: ${LDFLAGS} 49256 LIBS: ${LIBS} 49257 49258 curl version: ${CURLVERSION} 49259 SSL: ${curl_ssl_msg} 49260 SSH: ${curl_ssh_msg} 49261 zlib: ${curl_zlib_msg} 49262 brotli: ${curl_brotli_msg} 49263 zstd: ${curl_zstd_msg} 49264 GSS-API: ${curl_gss_msg} 49265 GSASL: ${curl_gsasl_msg} 49266 TLS-SRP: ${curl_tls_srp_msg} 49267 resolver: ${curl_res_msg} 49268 IPv6: ${curl_ipv6_msg} 49269 Unix sockets: ${curl_unix_sockets_msg} 49270 IDN: ${curl_idn_msg} 49271 Build docs: ${curl_docs_msg} 49272 Build libcurl: Shared=${enable_shared}, Static=${enable_static} 49273 Built-in manual: ${curl_manual_msg} 49274 --libcurl option: ${curl_libcurl_msg} 49275 Verbose errors: ${curl_verbose_msg} 49276 Code coverage: ${curl_coverage_msg} 49277 SSPI: ${curl_sspi_msg} 49278 ca cert bundle: ${ca}${ca_warning} 49279 ca cert path: ${capath}${capath_warning} 49280 ca cert embed: ${CURL_CA_EMBED_msg} 49281 ca fallback: ${with_ca_fallback} 49282 LDAP: ${curl_ldap_msg} 49283 LDAPS: ${curl_ldaps_msg} 49284 IPFS/IPNS: ${curl_ipfs_msg} 49285 RTSP: ${curl_rtsp_msg} 49286 RTMP: ${curl_rtmp_msg} 49287 PSL: ${curl_psl_msg} 49288 Alt-svc: ${curl_altsvc_msg} 49289 Headers API: ${curl_headers_msg} 49290 HSTS: ${curl_hsts_msg} 49291 HTTP1: ${curl_h1_msg} 49292 HTTP2: ${curl_h2_msg} 49293 HTTP3: ${curl_h3_msg} 49294 ECH: ${curl_ech_msg} 49295 Protocols: ${SUPPORT_PROTOCOLS_LOWER} 49296 Features: ${SUPPORT_FEATURES} 49297" >&6;} 49298 49299# grep -o would simplify this, but is nonportable 49300non13=`echo "$TLSCHOICE" | $AWK '{split("bearssl secure-transport", a); for (i in a) if(match(tolower($0), a[i])) print a[i];}'` 49301if test -n "$non13"; then 49302 for a in $non13; do 49303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $a is enabled for TLS but it does not support TLS 1.3" >&5 49304printf "%s\n" "$as_me: WARNING: $a is enabled for TLS but it does not support TLS 1.3" >&2;} 49305 done 49306fi 49307 49308if test -n "$experimental"; then 49309 for a in $experimental; do 49310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $a is enabled but marked EXPERIMENTAL. Use with caution!" >&5 49311printf "%s\n" "$as_me: WARNING: $a is enabled but marked EXPERIMENTAL. Use with caution!" >&2;} 49312 done 49313fi 49314 49315 49316 curl_pflags="" 49317 case $host in 49318 *-apple-*) curl_pflags="${curl_pflags} APPLE";; 49319 esac 49320 if test "$curl_cv_native_windows" = 'yes'; then 49321 curl_pflags="${curl_pflags} WIN32" 49322 else 49323 case $host in 49324 *-*-*bsd*|*-*-aix*|*-*-hpux*|*-*-interix*|*-*-irix*|*-*-linux*|*-*-solaris*|*-*-sunos*|*-apple-*|*-*-cygwin*|*-*-msys*) 49325 curl_pflags="${curl_pflags} UNIX";; 49326 esac 49327 case $host in 49328 *-*-*bsd*) 49329 curl_pflags="${curl_pflags} BSD";; 49330 esac 49331 fi 49332 if test "$curl_cv_cygwin" = 'yes'; then 49333 curl_pflags="${curl_pflags} CYGWIN" 49334 fi 49335 case $host_os in 49336 msys*) curl_pflags="${curl_pflags} MSYS";; 49337 esac 49338 if test "x$compiler_id" = 'xGNU_C'; then 49339 curl_pflags="${curl_pflags} GCC" 49340 fi 49341 case $host_os in 49342 mingw*) curl_pflags="${curl_pflags} MINGW";; 49343 esac 49344 if test "x$cross_compiling" = 'xyes'; then 49345 curl_pflags="${curl_pflags} CROSS" 49346 fi 49347 squeeze curl_pflags 49348 curl_buildinfo=" 49349buildinfo.configure.tool: configure 49350buildinfo.configure.args: $ac_configure_args 49351buildinfo.host: $build 49352buildinfo.host.cpu: $build_cpu 49353buildinfo.host.os: $build_os 49354buildinfo.target: $host 49355buildinfo.target.cpu: $host_cpu 49356buildinfo.target.os: $host_os 49357buildinfo.target.flags: $curl_pflags 49358buildinfo.compiler: $compiler_id 49359buildinfo.compiler.version: $compiler_ver 49360buildinfo.sysroot: $lt_sysroot" 49361 49362echo "# This is a generated file. Do not edit.${curl_buildinfo}" > ./buildinfo.txt 49363if test -n "$CURL_BUILDINFO$CURL_CI$CI"; then 49364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${curl_buildinfo}" >&5 49365printf "%s\n" "$as_me: ${curl_buildinfo}" >&6;} 49366fi 49367 49368