1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.69 for curl -. 4 # 5 # Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>. 6 # 7 # 8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9 # 10 # 11 # This configure script is free software; the Free Software Foundation 12 # gives unlimited permission to copy, distribute and modify it. 13 # 14 # Copyright (c) 1998 - 2019 Daniel Stenberg, <daniel (at] haxx.se> 15 # This configure script may be copied, distributed and modified under the 16 # terms of the curl license; see COPYING for more details 17 18 ## -------------------------------- ## 19 ## XC_CONFIGURE_PREAMBLE ver: 1.0 ## 20 ## -------------------------------- ## 21 22 xc_configure_preamble_ver_major='1' 23 xc_configure_preamble_ver_minor='0' 24 25 # 26 # Set IFS to space, tab and newline. 27 # 28 29 xc_space=' ' 30 xc_tab=' ' 31 xc_newline=' 32 ' 33 IFS="$xc_space$xc_tab$xc_newline" 34 35 # 36 # Set internationalization behavior variables. 37 # 38 39 LANG='C' 40 LC_ALL='C' 41 LANGUAGE='C' 42 export LANG 43 export LC_ALL 44 export LANGUAGE 45 46 # 47 # Some useful variables. 48 # 49 50 xc_msg_warn='configure: WARNING:' 51 xc_msg_abrt='Can not continue.' 52 xc_msg_err='configure: error:' 53 54 # 55 # Verify that 'echo' command is available, otherwise abort. 56 # 57 58 xc_tst_str='unknown' 59 (`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success' 60 case "x$xc_tst_str" in # (( 61 xsuccess) 62 : 63 ;; 64 *) 65 # Try built-in echo, and fail. 66 echo "$xc_msg_err 'echo' command not found. $xc_msg_abrt" >&2 67 exit 1 68 ;; 69 esac 70 71 # 72 # Verify that 'test' command is available, otherwise abort. 73 # 74 75 xc_tst_str='unknown' 76 (`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success' 77 case "x$xc_tst_str" in # (( 78 xsuccess) 79 : 80 ;; 81 *) 82 echo "$xc_msg_err 'test' command not found. $xc_msg_abrt" >&2 83 exit 1 84 ;; 85 esac 86 87 # 88 # Verify that 'PATH' variable is set, otherwise abort. 89 # 90 91 xc_tst_str='unknown' 92 (`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success' 93 case "x$xc_tst_str" in # (( 94 xsuccess) 95 : 96 ;; 97 *) 98 echo "$xc_msg_err 'PATH' variable not set. $xc_msg_abrt" >&2 99 exit 1 100 ;; 101 esac 102 103 # 104 # Verify that 'expr' command is available, otherwise abort. 105 # 106 107 xc_tst_str='unknown' 108 xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null` 109 case "x$xc_tst_str" in # (( 110 x7) 111 : 112 ;; 113 *) 114 echo "$xc_msg_err 'expr' command not found. $xc_msg_abrt" >&2 115 exit 1 116 ;; 117 esac 118 119 # 120 # Verify that 'sed' utility is found within 'PATH', otherwise abort. 121 # 122 123 xc_tst_str='unknown' 124 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \ 125 | sed -e 's:unknown:success:' 2>/dev/null` 126 case "x$xc_tst_str" in # (( 127 xsuccess) 128 : 129 ;; 130 *) 131 echo "$xc_msg_err 'sed' utility not found in 'PATH'. $xc_msg_abrt" >&2 132 exit 1 133 ;; 134 esac 135 136 # 137 # Verify that 'grep' utility is found within 'PATH', otherwise abort. 138 # 139 140 xc_tst_str='unknown' 141 (`echo "$xc_tst_str" 2>/dev/null \ 142 | grep 'unknown' >/dev/null 2>&1`) && xc_tst_str='success' 143 case "x$xc_tst_str" in # (( 144 xsuccess) 145 : 146 ;; 147 *) 148 echo "$xc_msg_err 'grep' utility not found in 'PATH'. $xc_msg_abrt" >&2 149 exit 1 150 ;; 151 esac 152 153 # 154 # Verify that 'tr' utility is found within 'PATH', otherwise abort. 155 # 156 157 xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10" 158 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \ 159 | tr -d "0123456789$xc_tab" 2>/dev/null` 160 case "x$xc_tst_str" in # (( 161 xsuccess) 162 : 163 ;; 164 *) 165 echo "$xc_msg_err 'tr' utility not found in 'PATH'. $xc_msg_abrt" >&2 166 exit 1 167 ;; 168 esac 169 170 # 171 # Verify that 'wc' utility is found within 'PATH', otherwise abort. 172 # 173 174 xc_tst_str='unknown unknown unknown unknown' 175 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \ 176 | wc -w 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null` 177 case "x$xc_tst_str" in # (( 178 x4) 179 : 180 ;; 181 *) 182 echo "$xc_msg_err 'wc' utility not found in 'PATH'. $xc_msg_abrt" >&2 183 exit 1 184 ;; 185 esac 186 187 # 188 # Verify that 'cat' utility is found within 'PATH', otherwise abort. 189 # 190 191 xc_tst_str='unknown' 192 xc_tst_str=`cat <<_EOT 2>/dev/null \ 193 | wc -l 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null 194 unknown 195 unknown 196 unknown 197 _EOT` 198 case "x$xc_tst_str" in # (( 199 x3) 200 : 201 ;; 202 *) 203 echo "$xc_msg_err 'cat' utility not found in 'PATH'. $xc_msg_abrt" >&2 204 exit 1 205 ;; 206 esac 207 208 # 209 # Auto-detect and set 'PATH_SEPARATOR', unless it is already non-empty set. 210 # 211 212 # Directory count in 'PATH' when using a colon separator. 213 xc_tst_dirs_col='x' 214 xc_tst_prev_IFS=$IFS; IFS=':' 215 for xc_tst_dir in $PATH; do 216 IFS=$xc_tst_prev_IFS 217 xc_tst_dirs_col="x$xc_tst_dirs_col" 218 done 219 IFS=$xc_tst_prev_IFS 220 xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'` 221 222 # Directory count in 'PATH' when using a semicolon separator. 223 xc_tst_dirs_sem='x' 224 xc_tst_prev_IFS=$IFS; IFS=';' 225 for xc_tst_dir in $PATH; do 226 IFS=$xc_tst_prev_IFS 227 xc_tst_dirs_sem="x$xc_tst_dirs_sem" 228 done 229 IFS=$xc_tst_prev_IFS 230 xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'` 231 232 if test $xc_tst_dirs_sem -eq $xc_tst_dirs_col; then 233 # When both counting methods give the same result we do not want to 234 # chose one over the other, and consider auto-detection not possible. 235 if test -z "$PATH_SEPARATOR"; then 236 # User should provide the correct 'PATH_SEPARATOR' definition. 237 # Until then, guess that it is colon! 238 echo "$xc_msg_warn path separator not determined, guessing colon" >&2 239 PATH_SEPARATOR=':' 240 fi 241 else 242 # Separator with the greater directory count is the auto-detected one. 243 if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then 244 xc_tst_auto_separator=';' 245 else 246 xc_tst_auto_separator=':' 247 fi 248 if test -z "$PATH_SEPARATOR"; then 249 # Simply use the auto-detected one when not already set. 250 PATH_SEPARATOR=$xc_tst_auto_separator 251 elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then 252 echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2 253 fi 254 fi 255 xc_PATH_SEPARATOR=$PATH_SEPARATOR 256 257 xc_configure_preamble_result='yes' 258 259 260 ## -------------------- ## 261 ## M4sh Initialization. ## 262 ## -------------------- ## 263 264 # Be more Bourne compatible 265 DUALCASE=1; export DUALCASE # for MKS sh 266 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 267 emulate sh 268 NULLCMD=: 269 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 270 # is contrary to our usage. Disable this feature. 271 alias -g '${1+"$@"}'='"$@"' 272 setopt NO_GLOB_SUBST 273 else 274 case `(set -o) 2>/dev/null` in #( 275 *posix*) : 276 set -o posix ;; #( 277 *) : 278 ;; 279 esac 280 fi 281 282 283 as_nl=' 284 ' 285 export as_nl 286 # Printing a long string crashes Solaris 7 /usr/bin/printf. 287 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 288 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 289 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 290 # Prefer a ksh shell builtin over an external printf program on Solaris, 291 # but without wasting forks for bash or zsh. 292 if test -z "$BASH_VERSION$ZSH_VERSION" \ 293 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 294 as_echo='print -r --' 295 as_echo_n='print -rn --' 296 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 297 as_echo='printf %s\n' 298 as_echo_n='printf %s' 299 else 300 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 301 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 302 as_echo_n='/usr/ucb/echo -n' 303 else 304 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 305 as_echo_n_body='eval 306 arg=$1; 307 case $arg in #( 308 *"$as_nl"*) 309 expr "X$arg" : "X\\(.*\\)$as_nl"; 310 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 311 esac; 312 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 313 ' 314 export as_echo_n_body 315 as_echo_n='sh -c $as_echo_n_body as_echo' 316 fi 317 export as_echo_body 318 as_echo='sh -c $as_echo_body as_echo' 319 fi 320 321 322 323 # IFS 324 # We need space, tab and new line, in precisely that order. Quoting is 325 # there to prevent editors from complaining about space-tab. 326 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 327 # splitting by setting IFS to empty value.) 328 IFS=" "" $as_nl" 329 330 # Find who we are. Look in the path if we contain no directory separator. 331 as_myself= 332 case $0 in #(( 333 *[\\/]* ) as_myself=$0 ;; 334 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 335 for as_dir in $PATH 336 do 337 IFS=$as_save_IFS 338 test -z "$as_dir" && as_dir=. 339 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 340 done 341 IFS=$as_save_IFS 342 343 ;; 344 esac 345 # We did not find ourselves, most probably we were run as `sh COMMAND' 346 # in which case we are not to be found in the path. 347 if test "x$as_myself" = x; then 348 as_myself=$0 349 fi 350 if test ! -f "$as_myself"; then 351 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 352 exit 1 353 fi 354 355 # Unset variables that we do not need and which cause bugs (e.g. in 356 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 357 # suppresses any "Segmentation fault" message there. '((' could 358 # trigger a bug in pdksh 5.2.14. 359 for as_var in BASH_ENV ENV MAIL MAILPATH 360 do eval test x\${$as_var+set} = xset \ 361 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 362 done 363 PS1='$ ' 364 PS2='> ' 365 PS4='+ ' 366 367 # NLS nuisances. 368 LC_ALL=C 369 export LC_ALL 370 LANGUAGE=C 371 export LANGUAGE 372 373 # CDPATH. 374 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 375 376 # Use a proper internal environment variable to ensure we don't fall 377 # into an infinite loop, continuously re-executing ourselves. 378 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 379 _as_can_reexec=no; export _as_can_reexec; 380 # We cannot yet assume a decent shell, so we have to provide a 381 # neutralization value for shells without unset; and this also 382 # works around shells that cannot unset nonexistent variables. 383 # Preserve -v and -x to the replacement shell. 384 BASH_ENV=/dev/null 385 ENV=/dev/null 386 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 387 case $- in # (((( 388 *v*x* | *x*v* ) as_opts=-vx ;; 389 *v* ) as_opts=-v ;; 390 *x* ) as_opts=-x ;; 391 * ) as_opts= ;; 392 esac 393 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 394 # Admittedly, this is quite paranoid, since all the known shells bail 395 # out after a failed `exec'. 396 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 397 as_fn_exit 255 398 fi 399 # We don't want this to propagate to other subprocesses. 400 { _as_can_reexec=; unset _as_can_reexec;} 401 if test "x$CONFIG_SHELL" = x; then 402 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 403 emulate sh 404 NULLCMD=: 405 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 406 # is contrary to our usage. Disable this feature. 407 alias -g '\${1+\"\$@\"}'='\"\$@\"' 408 setopt NO_GLOB_SUBST 409 else 410 case \`(set -o) 2>/dev/null\` in #( 411 *posix*) : 412 set -o posix ;; #( 413 *) : 414 ;; 415 esac 416 fi 417 " 418 as_required="as_fn_return () { (exit \$1); } 419 as_fn_success () { as_fn_return 0; } 420 as_fn_failure () { as_fn_return 1; } 421 as_fn_ret_success () { return 0; } 422 as_fn_ret_failure () { return 1; } 423 424 exitcode=0 425 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 426 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 427 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 428 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 429 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 430 431 else 432 exitcode=1; echo positional parameters were not saved. 433 fi 434 test x\$exitcode = x0 || exit 1 435 test -x / || exit 1" 436 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 437 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 438 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 439 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 440 test \$(( 1 + 1 )) = 2 || exit 1 441 442 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 443 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 444 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 445 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 446 PATH=/empty FPATH=/empty; export PATH FPATH 447 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 448 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 449 if (eval "$as_required") 2>/dev/null; then : 450 as_have_required=yes 451 else 452 as_have_required=no 453 fi 454 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 455 456 else 457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 458 as_found=false 459 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 460 do 461 IFS=$as_save_IFS 462 test -z "$as_dir" && as_dir=. 463 as_found=: 464 case $as_dir in #( 465 /*) 466 for as_base in sh bash ksh sh5; do 467 # Try only shells that exist, to save several forks. 468 as_shell=$as_dir/$as_base 469 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 470 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 471 CONFIG_SHELL=$as_shell as_have_required=yes 472 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 473 break 2 474 fi 475 fi 476 done;; 477 esac 478 as_found=false 479 done 480 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 481 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 482 CONFIG_SHELL=$SHELL as_have_required=yes 483 fi; } 484 IFS=$as_save_IFS 485 486 487 if test "x$CONFIG_SHELL" != x; then : 488 export CONFIG_SHELL 489 # We cannot yet assume a decent shell, so we have to provide a 490 # neutralization value for shells without unset; and this also 491 # works around shells that cannot unset nonexistent variables. 492 # Preserve -v and -x to the replacement shell. 493 BASH_ENV=/dev/null 494 ENV=/dev/null 495 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 496 case $- in # (((( 497 *v*x* | *x*v* ) as_opts=-vx ;; 498 *v* ) as_opts=-v ;; 499 *x* ) as_opts=-x ;; 500 * ) as_opts= ;; 501 esac 502 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 503 # Admittedly, this is quite paranoid, since all the known shells bail 504 # out after a failed `exec'. 505 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 506 exit 255 507 fi 508 509 if test x$as_have_required = xno; then : 510 $as_echo "$0: This script requires a shell more modern than all" 511 $as_echo "$0: the shells that I found on your system." 512 if test x${ZSH_VERSION+set} = xset ; then 513 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 514 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 515 else 516 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and a suitable curl 517 $0: mailing list: https://curl.haxx.se/mail/ about your 518 $0: system, including any error possibly output before this 519 $0: message. Then install a modern shell, or manually run 520 $0: the script under such a shell if you do have one." 521 fi 522 exit 1 523 fi 524 fi 525 fi 526 SHELL=${CONFIG_SHELL-/bin/sh} 527 export SHELL 528 # Unset more variables known to interfere with behavior of common tools. 529 CLICOLOR_FORCE= GREP_OPTIONS= 530 unset CLICOLOR_FORCE GREP_OPTIONS 531 532 ## --------------------- ## 533 ## M4sh Shell Functions. ## 534 ## --------------------- ## 535 # as_fn_unset VAR 536 # --------------- 537 # Portably unset VAR. 538 as_fn_unset () 539 { 540 { eval $1=; unset $1;} 541 } 542 as_unset=as_fn_unset 543 544 # as_fn_set_status STATUS 545 # ----------------------- 546 # Set $? to STATUS, without forking. 547 as_fn_set_status () 548 { 549 return $1 550 } # as_fn_set_status 551 552 # as_fn_exit STATUS 553 # ----------------- 554 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 555 as_fn_exit () 556 { 557 set +e 558 as_fn_set_status $1 559 exit $1 560 } # as_fn_exit 561 562 # as_fn_mkdir_p 563 # ------------- 564 # Create "$as_dir" as a directory, including parents if necessary. 565 as_fn_mkdir_p () 566 { 567 568 case $as_dir in #( 569 -*) as_dir=./$as_dir;; 570 esac 571 test -d "$as_dir" || eval $as_mkdir_p || { 572 as_dirs= 573 while :; do 574 case $as_dir in #( 575 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 576 *) as_qdir=$as_dir;; 577 esac 578 as_dirs="'$as_qdir' $as_dirs" 579 as_dir=`$as_dirname -- "$as_dir" || 580 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 581 X"$as_dir" : 'X\(//\)[^/]' \| \ 582 X"$as_dir" : 'X\(//\)$' \| \ 583 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 584 $as_echo X"$as_dir" | 585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 586 s//\1/ 587 q 588 } 589 /^X\(\/\/\)[^/].*/{ 590 s//\1/ 591 q 592 } 593 /^X\(\/\/\)$/{ 594 s//\1/ 595 q 596 } 597 /^X\(\/\).*/{ 598 s//\1/ 599 q 600 } 601 s/.*/./; q'` 602 test -d "$as_dir" && break 603 done 604 test -z "$as_dirs" || eval "mkdir $as_dirs" 605 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 606 607 608 } # as_fn_mkdir_p 609 610 # as_fn_executable_p FILE 611 # ----------------------- 612 # Test if FILE is an executable regular file. 613 as_fn_executable_p () 614 { 615 test -f "$1" && test -x "$1" 616 } # as_fn_executable_p 617 # as_fn_append VAR VALUE 618 # ---------------------- 619 # Append the text in VALUE to the end of the definition contained in VAR. Take 620 # advantage of any shell optimizations that allow amortized linear growth over 621 # repeated appends, instead of the typical quadratic growth present in naive 622 # implementations. 623 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 624 eval 'as_fn_append () 625 { 626 eval $1+=\$2 627 }' 628 else 629 as_fn_append () 630 { 631 eval $1=\$$1\$2 632 } 633 fi # as_fn_append 634 635 # as_fn_arith ARG... 636 # ------------------ 637 # Perform arithmetic evaluation on the ARGs, and store the result in the 638 # global $as_val. Take advantage of shells that can avoid forks. The arguments 639 # must be portable across $(()) and expr. 640 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 641 eval 'as_fn_arith () 642 { 643 as_val=$(( $* )) 644 }' 645 else 646 as_fn_arith () 647 { 648 as_val=`expr "$@" || test $? -eq 1` 649 } 650 fi # as_fn_arith 651 652 653 # as_fn_error STATUS ERROR [LINENO LOG_FD] 654 # ---------------------------------------- 655 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 656 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 657 # script with STATUS, using 1 if that was 0. 658 as_fn_error () 659 { 660 as_status=$1; test $as_status -eq 0 && as_status=1 661 if test "$4"; then 662 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 663 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 664 fi 665 $as_echo "$as_me: error: $2" >&2 666 as_fn_exit $as_status 667 } # as_fn_error 668 669 if expr a : '\(a\)' >/dev/null 2>&1 && 670 test "X`expr 00001 : '.*\(...\)'`" = X001; then 671 as_expr=expr 672 else 673 as_expr=false 674 fi 675 676 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 677 as_basename=basename 678 else 679 as_basename=false 680 fi 681 682 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 683 as_dirname=dirname 684 else 685 as_dirname=false 686 fi 687 688 as_me=`$as_basename -- "$0" || 689 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 690 X"$0" : 'X\(//\)$' \| \ 691 X"$0" : 'X\(/\)' \| . 2>/dev/null || 692 $as_echo X/"$0" | 693 sed '/^.*\/\([^/][^/]*\)\/*$/{ 694 s//\1/ 695 q 696 } 697 /^X\/\(\/\/\)$/{ 698 s//\1/ 699 q 700 } 701 /^X\/\(\/\).*/{ 702 s//\1/ 703 q 704 } 705 s/.*/./; q'` 706 707 # Avoid depending upon Character Ranges. 708 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 709 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 710 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 711 as_cr_digits='0123456789' 712 as_cr_alnum=$as_cr_Letters$as_cr_digits 713 714 715 as_lineno_1=$LINENO as_lineno_1a=$LINENO 716 as_lineno_2=$LINENO as_lineno_2a=$LINENO 717 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 718 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 719 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 720 sed -n ' 721 p 722 /[$]LINENO/= 723 ' <$as_myself | 724 sed ' 725 s/[$]LINENO.*/&-/ 726 t lineno 727 b 728 :lineno 729 N 730 :loop 731 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 732 t loop 733 s/-\n.*// 734 ' >$as_me.lineno && 735 chmod +x "$as_me.lineno" || 736 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 737 738 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 739 # already done that, so ensure we don't try to do so again and fall 740 # in an infinite loop. This has already happened in practice. 741 _as_can_reexec=no; export _as_can_reexec 742 # Don't try to exec as it changes $[0], causing all sort of problems 743 # (the dirname of $[0] is not the place where we might find the 744 # original and so on. Autoconf is especially sensitive to this). 745 . "./$as_me.lineno" 746 # Exit status is that of the last command. 747 exit 748 } 749 750 ECHO_C= ECHO_N= ECHO_T= 751 case `echo -n x` in #((((( 752 -n*) 753 case `echo 'xy\c'` in 754 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 755 xy) ECHO_C='\c';; 756 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 757 ECHO_T=' ';; 758 esac;; 759 *) 760 ECHO_N='-n';; 761 esac 762 763 rm -f conf$$ conf$$.exe conf$$.file 764 if test -d conf$$.dir; then 765 rm -f conf$$.dir/conf$$.file 766 else 767 rm -f conf$$.dir 768 mkdir conf$$.dir 2>/dev/null 769 fi 770 if (echo >conf$$.file) 2>/dev/null; then 771 if ln -s conf$$.file conf$$ 2>/dev/null; then 772 as_ln_s='ln -s' 773 # ... but there are two gotchas: 774 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 775 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 776 # In both cases, we have to default to `cp -pR'. 777 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 778 as_ln_s='cp -pR' 779 elif ln conf$$.file conf$$ 2>/dev/null; then 780 as_ln_s=ln 781 else 782 as_ln_s='cp -pR' 783 fi 784 else 785 as_ln_s='cp -pR' 786 fi 787 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 788 rmdir conf$$.dir 2>/dev/null 789 790 if mkdir -p . 2>/dev/null; then 791 as_mkdir_p='mkdir -p "$as_dir"' 792 else 793 test -d ./-p && rmdir ./-p 794 as_mkdir_p=false 795 fi 796 797 as_test_x='test -x' 798 as_executable_p=as_fn_executable_p 799 800 # Sed expression to map a string onto a valid CPP name. 801 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 802 803 # Sed expression to map a string onto a valid variable name. 804 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 805 806 SHELL=${CONFIG_SHELL-/bin/sh} 807 808 809 test -n "$DJDIR" || exec 7<&0 </dev/null 810 exec 6>&1 811 812 # Name of the host. 813 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 814 # so uname gets run too. 815 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 816 817 # 818 # Initializations. 819 # 820 ac_default_prefix=/usr/local 821 ac_clean_files= 822 ac_config_libobj_dir=. 823 LIBOBJS= 824 cross_compiling=no 825 subdirs= 826 MFLAGS= 827 MAKEFLAGS= 828 829 # Identity of this package. 830 PACKAGE_NAME='curl' 831 PACKAGE_TARNAME='curl' 832 PACKAGE_VERSION='-' 833 PACKAGE_STRING='curl -' 834 PACKAGE_BUGREPORT='a suitable curl mailing list: https://curl.haxx.se/mail/' 835 PACKAGE_URL='' 836 837 ac_unique_file="lib/urldata.h" 838 # Factoring default headers for most tests. 839 ac_includes_default="\ 840 #include <stdio.h> 841 #ifdef HAVE_SYS_TYPES_H 842 # include <sys/types.h> 843 #endif 844 #ifdef HAVE_SYS_STAT_H 845 # include <sys/stat.h> 846 #endif 847 #ifdef STDC_HEADERS 848 # include <stdlib.h> 849 # include <stddef.h> 850 #else 851 # ifdef HAVE_STDLIB_H 852 # include <stdlib.h> 853 # endif 854 #endif 855 #ifdef HAVE_STRING_H 856 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 857 # include <memory.h> 858 # endif 859 # include <string.h> 860 #endif 861 #ifdef HAVE_STRINGS_H 862 # include <strings.h> 863 #endif 864 #ifdef HAVE_INTTYPES_H 865 # include <inttypes.h> 866 #endif 867 #ifdef HAVE_STDINT_H 868 # include <stdint.h> 869 #endif 870 #ifdef HAVE_UNISTD_H 871 # include <unistd.h> 872 #endif" 873 874 enable_option_checking=no 875 ac_subst_vars='am__EXEEXT_FALSE 876 am__EXEEXT_TRUE 877 LTLIBOBJS 878 LIBOBJS 879 SSL_BACKENDS 880 SUPPORT_PROTOCOLS 881 SUPPORT_FEATURES 882 ENABLE_STATIC 883 ENABLE_SHARED 884 CROSSCOMPILING_FALSE 885 CROSSCOMPILING_TRUE 886 BLANK_AT_MAKETIME 887 CURL_NETWORK_AND_TIME_LIBS 888 CURL_NETWORK_LIBS 889 LIBCURL_LIBS 890 CFLAG_CURL_SYMBOL_HIDING 891 DOING_CURL_SYMBOL_HIDING_FALSE 892 DOING_CURL_SYMBOL_HIDING_TRUE 893 USE_UNIX_SOCKETS 894 BUILD_LIBHOSTNAME_FALSE 895 BUILD_LIBHOSTNAME_TRUE 896 USE_EMBEDDED_ARES_FALSE 897 USE_EMBEDDED_ARES_TRUE 898 USE_ARES 899 subdirs 900 USE_MANUAL_FALSE 901 USE_MANUAL_TRUE 902 MANOPT 903 NROFF 904 PERL 905 IPV6_ENABLED 906 FISH_FUNCTIONS_DIR 907 ZSH_FUNCTIONS_DIR 908 USE_NGHTTP2 909 IDN_ENABLED 910 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE 911 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE 912 CURL_LT_SHLIB_VERSIONED_FLAVOUR 913 USE_LIBRTMP 914 USE_LIBSSH 915 USE_LIBSSH2 916 LIBMETALINK_CPPFLAGS 917 LIBMETALINK_LDFLAGS 918 LIBMETALINK_LIBS 919 USE_LIBPSL_FALSE 920 USE_LIBPSL_TRUE 921 CURL_CA_BUNDLE 922 CURL_WITH_MULTI_SSL 923 SSL_ENABLED 924 NSS_LIBS 925 USE_NSS 926 USE_MESALINK 927 USE_CYASSL 928 USE_MBEDTLS 929 USE_POLARSSL 930 HAVE_GNUTLS_SRP 931 USE_GNUTLS_NETTLE 932 USE_GNUTLS 933 HAVE_OPENSSL_SRP 934 RANDOM_FILE 935 SSL_LIBS 936 USE_SECTRANSP 937 USE_WINDOWS_SSPI 938 USE_SCHANNEL 939 DEFAULT_SSL_BACKEND 940 BUILD_STUB_GSS_FALSE 941 BUILD_STUB_GSS_TRUE 942 USE_OPENLDAP 943 HAVE_BROTLI 944 ZLIB_LIBS 945 HAVE_LIBZ_FALSE 946 HAVE_LIBZ_TRUE 947 HAVE_LIBZ 948 PKGCONFIG 949 HAVE_PROTO_BSDSOCKET_H 950 CURL_DISABLE_GOPHER 951 CURL_DISABLE_SMTP 952 CURL_DISABLE_SMB 953 CURL_DISABLE_IMAP 954 CURL_DISABLE_POP3 955 CURL_DISABLE_TFTP 956 CURL_DISABLE_TELNET 957 CURL_DISABLE_DICT 958 CURL_DISABLE_PROXY 959 HAVE_LDAP_SSL 960 CURL_DISABLE_LDAPS 961 CURL_DISABLE_LDAP 962 CURL_DISABLE_FILE 963 CURL_DISABLE_FTP 964 CURL_DISABLE_RTSP 965 CURL_DISABLE_HTTP 966 DOING_NATIVE_WINDOWS_FALSE 967 DOING_NATIVE_WINDOWS_TRUE 968 BUILD_UNITTESTS_FALSE 969 BUILD_UNITTESTS_TRUE 970 CURLDEBUG_FALSE 971 CURLDEBUG_TRUE 972 USE_EXPLICIT_LIB_DEPS_FALSE 973 USE_EXPLICIT_LIB_DEPS_TRUE 974 REQUIRE_LIB_DEPS 975 CPPFLAG_CURL_STATICLIB 976 USE_CPPFLAG_CURL_STATICLIB_FALSE 977 USE_CPPFLAG_CURL_STATICLIB_TRUE 978 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE 979 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE 980 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE 981 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE 982 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE 983 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE 984 LT_SYS_LIBRARY_PATH 985 OTOOL64 986 OTOOL 987 LIPO 988 NMEDIT 989 DSYMUTIL 990 MANIFEST_TOOL 991 RANLIB 992 ac_ct_AR 993 LN_S 994 NM 995 ac_ct_DUMPBIN 996 DUMPBIN 997 LD 998 FGREP 999 LIBTOOL 1000 OBJDUMP 1001 DLLTOOL 1002 AS 1003 AR_FLAGS 1004 host_os 1005 host_vendor 1006 host_cpu 1007 host 1008 build_os 1009 build_vendor 1010 build_cpu 1011 build 1012 PKGADD_VENDOR 1013 PKGADD_NAME 1014 PKGADD_PKG 1015 VERSIONNUM 1016 CURLVERSION 1017 am__fastdepCC_FALSE 1018 am__fastdepCC_TRUE 1019 CCDEPMODE 1020 am__nodep 1021 AMDEPBACKSLASH 1022 AMDEP_FALSE 1023 AMDEP_TRUE 1024 am__quote 1025 am__include 1026 DEPDIR 1027 am__untar 1028 am__tar 1029 AMTAR 1030 am__leading_dot 1031 SET_MAKE 1032 AWK 1033 mkdir_p 1034 MKDIR_P 1035 INSTALL_STRIP_PROGRAM 1036 STRIP 1037 install_sh 1038 MAKEINFO 1039 AUTOHEADER 1040 AUTOMAKE 1041 AUTOCONF 1042 ACLOCAL 1043 VERSION 1044 PACKAGE 1045 CYGPATH_W 1046 am__isrc 1047 LCOV 1048 GCOV 1049 CPP 1050 OBJEXT 1051 EXEEXT 1052 ac_ct_CC 1053 CPPFLAGS 1054 LDFLAGS 1055 CFLAGS 1056 CC 1057 INSTALL_DATA 1058 INSTALL_SCRIPT 1059 INSTALL_PROGRAM 1060 libext 1061 AR 1062 EGREP 1063 GREP 1064 SED 1065 CURL_CFLAG_EXTRAS 1066 CONFIGURE_OPTIONS 1067 AM_BACKSLASH 1068 AM_DEFAULT_VERBOSITY 1069 AM_DEFAULT_V 1070 AM_V 1071 MAINT 1072 MAINTAINER_MODE_FALSE 1073 MAINTAINER_MODE_TRUE 1074 target_alias 1075 host_alias 1076 build_alias 1077 LIBS 1078 ECHO_T 1079 ECHO_N 1080 ECHO_C 1081 DEFS 1082 mandir 1083 localedir 1084 libdir 1085 psdir 1086 pdfdir 1087 dvidir 1088 htmldir 1089 infodir 1090 docdir 1091 oldincludedir 1092 includedir 1093 runstatedir 1094 localstatedir 1095 sharedstatedir 1096 sysconfdir 1097 datadir 1098 datarootdir 1099 libexecdir 1100 sbindir 1101 bindir 1102 program_transform_name 1103 prefix 1104 exec_prefix 1105 PACKAGE_URL 1106 PACKAGE_BUGREPORT 1107 PACKAGE_STRING 1108 PACKAGE_VERSION 1109 PACKAGE_TARNAME 1110 PACKAGE_NAME 1111 SHELL 1112 PATH_SEPARATOR' 1113 ac_subst_files='' 1114 ac_user_opts=' 1115 enable_option_checking 1116 enable_maintainer_mode 1117 enable_silent_rules 1118 enable_debug 1119 enable_optimize 1120 enable_warnings 1121 enable_werror 1122 enable_curldebug 1123 enable_symbol_hiding 1124 enable_hidden_symbols 1125 enable_ares 1126 enable_rt 1127 enable_code_coverage 1128 enable_dependency_tracking 1129 enable_largefile 1130 enable_shared 1131 enable_static 1132 with_pic 1133 enable_fast_install 1134 with_aix_soname 1135 with_gnu_ld 1136 with_sysroot 1137 enable_libtool_lock 1138 enable_http 1139 enable_ftp 1140 enable_file 1141 enable_ldap 1142 enable_ldaps 1143 enable_rtsp 1144 enable_proxy 1145 enable_dict 1146 enable_telnet 1147 enable_tftp 1148 enable_pop3 1149 enable_imap 1150 enable_smb 1151 enable_smtp 1152 enable_gopher 1153 enable_manual 1154 enable_libcurl_option 1155 enable_libgcc 1156 with_zlib 1157 with_brotli 1158 with_ldap_lib 1159 with_lber_lib 1160 enable_ipv6 1161 with_gssapi_includes 1162 with_gssapi_libs 1163 with_gssapi 1164 with_default_ssl_backend 1165 with_winssl 1166 with_schannel 1167 with_darwinssl 1168 with_secure_transport 1169 with_amissl 1170 with_ssl 1171 with_egd_socket 1172 with_random 1173 enable_openssl_auto_load_config 1174 with_gnutls 1175 with_polarssl 1176 with_mbedtls 1177 with_cyassl 1178 with_wolfssl 1179 with_mesalink 1180 with_nss 1181 with_ca_bundle 1182 with_ca_path 1183 with_ca_fallback 1184 with_libpsl 1185 with_libmetalink 1186 with_libssh2 1187 with_libssh 1188 with_librtmp 1189 enable_versioned_symbols 1190 with_winidn 1191 with_libidn2 1192 with_nghttp2 1193 with_zsh_functions_dir 1194 with_fish_functions_dir 1195 enable_threaded_resolver 1196 enable_pthreads 1197 enable_verbose 1198 enable_sspi 1199 enable_crypto_auth 1200 enable_ntlm_wb 1201 enable_tls_srp 1202 enable_unix_sockets 1203 enable_cookies 1204 enable_alt_svc 1205 ' 1206 ac_precious_vars='build_alias 1207 host_alias 1208 target_alias 1209 CC 1210 CFLAGS 1211 LDFLAGS 1212 LIBS 1213 CPPFLAGS 1214 CPP 1215 LT_SYS_LIBRARY_PATH' 1216 ac_subdirs_all='ares' 1217 1218 # Initialize some variables set by options. 1219 ac_init_help= 1220 ac_init_version=false 1221 ac_unrecognized_opts= 1222 ac_unrecognized_sep= 1223 # The variables have the same names as the options, with 1224 # dashes changed to underlines. 1225 cache_file=/dev/null 1226 exec_prefix=NONE 1227 no_create= 1228 no_recursion= 1229 prefix=NONE 1230 program_prefix=NONE 1231 program_suffix=NONE 1232 program_transform_name=s,x,x, 1233 silent= 1234 site= 1235 srcdir= 1236 verbose= 1237 x_includes=NONE 1238 x_libraries=NONE 1239 1240 # Installation directory options. 1241 # These are left unexpanded so users can "make install exec_prefix=/foo" 1242 # and all the variables that are supposed to be based on exec_prefix 1243 # by default will actually change. 1244 # Use braces instead of parens because sh, perl, etc. also accept them. 1245 # (The list follows the same order as the GNU Coding Standards.) 1246 bindir='${exec_prefix}/bin' 1247 sbindir='${exec_prefix}/sbin' 1248 libexecdir='${exec_prefix}/libexec' 1249 datarootdir='${prefix}/share' 1250 datadir='${datarootdir}' 1251 sysconfdir='${prefix}/etc' 1252 sharedstatedir='${prefix}/com' 1253 localstatedir='${prefix}/var' 1254 runstatedir='${localstatedir}/run' 1255 includedir='${prefix}/include' 1256 oldincludedir='/usr/include' 1257 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1258 infodir='${datarootdir}/info' 1259 htmldir='${docdir}' 1260 dvidir='${docdir}' 1261 pdfdir='${docdir}' 1262 psdir='${docdir}' 1263 libdir='${exec_prefix}/lib' 1264 localedir='${datarootdir}/locale' 1265 mandir='${datarootdir}/man' 1266 1267 ac_prev= 1268 ac_dashdash= 1269 for ac_option 1270 do 1271 # If the previous option needs an argument, assign it. 1272 if test -n "$ac_prev"; then 1273 eval $ac_prev=\$ac_option 1274 ac_prev= 1275 continue 1276 fi 1277 1278 case $ac_option in 1279 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1280 *=) ac_optarg= ;; 1281 *) ac_optarg=yes ;; 1282 esac 1283 1284 # Accept the important Cygnus configure options, so we can diagnose typos. 1285 1286 case $ac_dashdash$ac_option in 1287 --) 1288 ac_dashdash=yes ;; 1289 1290 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1291 ac_prev=bindir ;; 1292 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1293 bindir=$ac_optarg ;; 1294 1295 -build | --build | --buil | --bui | --bu) 1296 ac_prev=build_alias ;; 1297 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1298 build_alias=$ac_optarg ;; 1299 1300 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1301 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1302 ac_prev=cache_file ;; 1303 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1304 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1305 cache_file=$ac_optarg ;; 1306 1307 --config-cache | -C) 1308 cache_file=config.cache ;; 1309 1310 -datadir | --datadir | --datadi | --datad) 1311 ac_prev=datadir ;; 1312 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1313 datadir=$ac_optarg ;; 1314 1315 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1316 | --dataroo | --dataro | --datar) 1317 ac_prev=datarootdir ;; 1318 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1319 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1320 datarootdir=$ac_optarg ;; 1321 1322 -disable-* | --disable-*) 1323 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1324 # Reject names that are not valid shell variable names. 1325 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1326 as_fn_error $? "invalid feature name: $ac_useropt" 1327 ac_useropt_orig=$ac_useropt 1328 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1329 case $ac_user_opts in 1330 *" 1331 "enable_$ac_useropt" 1332 "*) ;; 1333 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1334 ac_unrecognized_sep=', ';; 1335 esac 1336 eval enable_$ac_useropt=no ;; 1337 1338 -docdir | --docdir | --docdi | --doc | --do) 1339 ac_prev=docdir ;; 1340 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1341 docdir=$ac_optarg ;; 1342 1343 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1344 ac_prev=dvidir ;; 1345 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1346 dvidir=$ac_optarg ;; 1347 1348 -enable-* | --enable-*) 1349 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1350 # Reject names that are not valid shell variable names. 1351 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1352 as_fn_error $? "invalid feature name: $ac_useropt" 1353 ac_useropt_orig=$ac_useropt 1354 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1355 case $ac_user_opts in 1356 *" 1357 "enable_$ac_useropt" 1358 "*) ;; 1359 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1360 ac_unrecognized_sep=', ';; 1361 esac 1362 eval enable_$ac_useropt=\$ac_optarg ;; 1363 1364 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1365 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1366 | --exec | --exe | --ex) 1367 ac_prev=exec_prefix ;; 1368 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1369 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1370 | --exec=* | --exe=* | --ex=*) 1371 exec_prefix=$ac_optarg ;; 1372 1373 -gas | --gas | --ga | --g) 1374 # Obsolete; use --with-gas. 1375 with_gas=yes ;; 1376 1377 -help | --help | --hel | --he | -h) 1378 ac_init_help=long ;; 1379 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1380 ac_init_help=recursive ;; 1381 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1382 ac_init_help=short ;; 1383 1384 -host | --host | --hos | --ho) 1385 ac_prev=host_alias ;; 1386 -host=* | --host=* | --hos=* | --ho=*) 1387 host_alias=$ac_optarg ;; 1388 1389 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1390 ac_prev=htmldir ;; 1391 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1392 | --ht=*) 1393 htmldir=$ac_optarg ;; 1394 1395 -includedir | --includedir | --includedi | --included | --include \ 1396 | --includ | --inclu | --incl | --inc) 1397 ac_prev=includedir ;; 1398 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1399 | --includ=* | --inclu=* | --incl=* | --inc=*) 1400 includedir=$ac_optarg ;; 1401 1402 -infodir | --infodir | --infodi | --infod | --info | --inf) 1403 ac_prev=infodir ;; 1404 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1405 infodir=$ac_optarg ;; 1406 1407 -libdir | --libdir | --libdi | --libd) 1408 ac_prev=libdir ;; 1409 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1410 libdir=$ac_optarg ;; 1411 1412 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1413 | --libexe | --libex | --libe) 1414 ac_prev=libexecdir ;; 1415 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1416 | --libexe=* | --libex=* | --libe=*) 1417 libexecdir=$ac_optarg ;; 1418 1419 -localedir | --localedir | --localedi | --localed | --locale) 1420 ac_prev=localedir ;; 1421 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1422 localedir=$ac_optarg ;; 1423 1424 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1425 | --localstate | --localstat | --localsta | --localst | --locals) 1426 ac_prev=localstatedir ;; 1427 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1428 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1429 localstatedir=$ac_optarg ;; 1430 1431 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1432 ac_prev=mandir ;; 1433 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1434 mandir=$ac_optarg ;; 1435 1436 -nfp | --nfp | --nf) 1437 # Obsolete; use --without-fp. 1438 with_fp=no ;; 1439 1440 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1441 | --no-cr | --no-c | -n) 1442 no_create=yes ;; 1443 1444 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1445 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1446 no_recursion=yes ;; 1447 1448 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1449 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1450 | --oldin | --oldi | --old | --ol | --o) 1451 ac_prev=oldincludedir ;; 1452 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1453 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1454 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1455 oldincludedir=$ac_optarg ;; 1456 1457 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1458 ac_prev=prefix ;; 1459 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1460 prefix=$ac_optarg ;; 1461 1462 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1463 | --program-pre | --program-pr | --program-p) 1464 ac_prev=program_prefix ;; 1465 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1466 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1467 program_prefix=$ac_optarg ;; 1468 1469 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1470 | --program-suf | --program-su | --program-s) 1471 ac_prev=program_suffix ;; 1472 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1473 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1474 program_suffix=$ac_optarg ;; 1475 1476 -program-transform-name | --program-transform-name \ 1477 | --program-transform-nam | --program-transform-na \ 1478 | --program-transform-n | --program-transform- \ 1479 | --program-transform | --program-transfor \ 1480 | --program-transfo | --program-transf \ 1481 | --program-trans | --program-tran \ 1482 | --progr-tra | --program-tr | --program-t) 1483 ac_prev=program_transform_name ;; 1484 -program-transform-name=* | --program-transform-name=* \ 1485 | --program-transform-nam=* | --program-transform-na=* \ 1486 | --program-transform-n=* | --program-transform-=* \ 1487 | --program-transform=* | --program-transfor=* \ 1488 | --program-transfo=* | --program-transf=* \ 1489 | --program-trans=* | --program-tran=* \ 1490 | --progr-tra=* | --program-tr=* | --program-t=*) 1491 program_transform_name=$ac_optarg ;; 1492 1493 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1494 ac_prev=pdfdir ;; 1495 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1496 pdfdir=$ac_optarg ;; 1497 1498 -psdir | --psdir | --psdi | --psd | --ps) 1499 ac_prev=psdir ;; 1500 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1501 psdir=$ac_optarg ;; 1502 1503 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1504 | -silent | --silent | --silen | --sile | --sil) 1505 silent=yes ;; 1506 1507 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1508 | --runstate | --runstat | --runsta | --runst | --runs \ 1509 | --run | --ru | --r) 1510 ac_prev=runstatedir ;; 1511 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1512 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1513 | --run=* | --ru=* | --r=*) 1514 runstatedir=$ac_optarg ;; 1515 1516 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1517 ac_prev=sbindir ;; 1518 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1519 | --sbi=* | --sb=*) 1520 sbindir=$ac_optarg ;; 1521 1522 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1523 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1524 | --sharedst | --shareds | --shared | --share | --shar \ 1525 | --sha | --sh) 1526 ac_prev=sharedstatedir ;; 1527 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1528 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1529 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1530 | --sha=* | --sh=*) 1531 sharedstatedir=$ac_optarg ;; 1532 1533 -site | --site | --sit) 1534 ac_prev=site ;; 1535 -site=* | --site=* | --sit=*) 1536 site=$ac_optarg ;; 1537 1538 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1539 ac_prev=srcdir ;; 1540 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1541 srcdir=$ac_optarg ;; 1542 1543 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1544 | --syscon | --sysco | --sysc | --sys | --sy) 1545 ac_prev=sysconfdir ;; 1546 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1547 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1548 sysconfdir=$ac_optarg ;; 1549 1550 -target | --target | --targe | --targ | --tar | --ta | --t) 1551 ac_prev=target_alias ;; 1552 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1553 target_alias=$ac_optarg ;; 1554 1555 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1556 verbose=yes ;; 1557 1558 -version | --version | --versio | --versi | --vers | -V) 1559 ac_init_version=: ;; 1560 1561 -with-* | --with-*) 1562 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1563 # Reject names that are not valid shell variable names. 1564 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1565 as_fn_error $? "invalid package name: $ac_useropt" 1566 ac_useropt_orig=$ac_useropt 1567 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1568 case $ac_user_opts in 1569 *" 1570 "with_$ac_useropt" 1571 "*) ;; 1572 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1573 ac_unrecognized_sep=', ';; 1574 esac 1575 eval with_$ac_useropt=\$ac_optarg ;; 1576 1577 -without-* | --without-*) 1578 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1579 # Reject names that are not valid shell variable names. 1580 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1581 as_fn_error $? "invalid package name: $ac_useropt" 1582 ac_useropt_orig=$ac_useropt 1583 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1584 case $ac_user_opts in 1585 *" 1586 "with_$ac_useropt" 1587 "*) ;; 1588 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1589 ac_unrecognized_sep=', ';; 1590 esac 1591 eval with_$ac_useropt=no ;; 1592 1593 --x) 1594 # Obsolete; use --with-x. 1595 with_x=yes ;; 1596 1597 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1598 | --x-incl | --x-inc | --x-in | --x-i) 1599 ac_prev=x_includes ;; 1600 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1601 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1602 x_includes=$ac_optarg ;; 1603 1604 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1605 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1606 ac_prev=x_libraries ;; 1607 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1608 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1609 x_libraries=$ac_optarg ;; 1610 1611 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1612 Try \`$0 --help' for more information" 1613 ;; 1614 1615 *=*) 1616 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1617 # Reject names that are not valid shell variable names. 1618 case $ac_envvar in #( 1619 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1620 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1621 esac 1622 eval $ac_envvar=\$ac_optarg 1623 export $ac_envvar ;; 1624 1625 *) 1626 # FIXME: should be removed in autoconf 3.0. 1627 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1628 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1629 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1630 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1631 ;; 1632 1633 esac 1634 done 1635 1636 if test -n "$ac_prev"; then 1637 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1638 as_fn_error $? "missing argument to $ac_option" 1639 fi 1640 1641 if test -n "$ac_unrecognized_opts"; then 1642 case $enable_option_checking in 1643 no) ;; 1644 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1645 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1646 esac 1647 fi 1648 1649 # Check all directory arguments for consistency. 1650 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1651 datadir sysconfdir sharedstatedir localstatedir includedir \ 1652 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1653 libdir localedir mandir runstatedir 1654 do 1655 eval ac_val=\$$ac_var 1656 # Remove trailing slashes. 1657 case $ac_val in 1658 */ ) 1659 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1660 eval $ac_var=\$ac_val;; 1661 esac 1662 # Be sure to have absolute directory names. 1663 case $ac_val in 1664 [\\/$]* | ?:[\\/]* ) continue;; 1665 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1666 esac 1667 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1668 done 1669 1670 # There might be people who depend on the old broken behavior: `$host' 1671 # used to hold the argument of --host etc. 1672 # FIXME: To remove some day. 1673 build=$build_alias 1674 host=$host_alias 1675 target=$target_alias 1676 1677 # FIXME: To remove some day. 1678 if test "x$host_alias" != x; then 1679 if test "x$build_alias" = x; then 1680 cross_compiling=maybe 1681 elif test "x$build_alias" != "x$host_alias"; then 1682 cross_compiling=yes 1683 fi 1684 fi 1685 1686 ac_tool_prefix= 1687 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1688 1689 test "$silent" = yes && exec 6>/dev/null 1690 1691 1692 ac_pwd=`pwd` && test -n "$ac_pwd" && 1693 ac_ls_di=`ls -di .` && 1694 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1695 as_fn_error $? "working directory cannot be determined" 1696 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1697 as_fn_error $? "pwd does not report name of working directory" 1698 1699 1700 # Find the source files, if location was not specified. 1701 if test -z "$srcdir"; then 1702 ac_srcdir_defaulted=yes 1703 # Try the directory containing this script, then the parent directory. 1704 ac_confdir=`$as_dirname -- "$as_myself" || 1705 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1706 X"$as_myself" : 'X\(//\)[^/]' \| \ 1707 X"$as_myself" : 'X\(//\)$' \| \ 1708 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1709 $as_echo X"$as_myself" | 1710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1711 s//\1/ 1712 q 1713 } 1714 /^X\(\/\/\)[^/].*/{ 1715 s//\1/ 1716 q 1717 } 1718 /^X\(\/\/\)$/{ 1719 s//\1/ 1720 q 1721 } 1722 /^X\(\/\).*/{ 1723 s//\1/ 1724 q 1725 } 1726 s/.*/./; q'` 1727 srcdir=$ac_confdir 1728 if test ! -r "$srcdir/$ac_unique_file"; then 1729 srcdir=.. 1730 fi 1731 else 1732 ac_srcdir_defaulted=no 1733 fi 1734 if test ! -r "$srcdir/$ac_unique_file"; then 1735 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1736 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1737 fi 1738 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1739 ac_abs_confdir=`( 1740 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1741 pwd)` 1742 # When building in place, set srcdir=. 1743 if test "$ac_abs_confdir" = "$ac_pwd"; then 1744 srcdir=. 1745 fi 1746 # Remove unnecessary trailing slashes from srcdir. 1747 # Double slashes in file names in object file debugging info 1748 # mess up M-x gdb in Emacs. 1749 case $srcdir in 1750 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1751 esac 1752 for ac_var in $ac_precious_vars; do 1753 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1754 eval ac_env_${ac_var}_value=\$${ac_var} 1755 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1756 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1757 done 1758 1759 # 1760 # Report the --help message. 1761 # 1762 if test "$ac_init_help" = "long"; then 1763 # Omit some internal or obsolete options to make the list less imposing. 1764 # This message is too long to be a string in the A/UX 3.1 sh. 1765 cat <<_ACEOF 1766 \`configure' configures curl - to adapt to many kinds of systems. 1767 1768 Usage: $0 [OPTION]... [VAR=VALUE]... 1769 1770 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1771 VAR=VALUE. See below for descriptions of some of the useful variables. 1772 1773 Defaults for the options are specified in brackets. 1774 1775 Configuration: 1776 -h, --help display this help and exit 1777 --help=short display options specific to this package 1778 --help=recursive display the short help of all the included packages 1779 -V, --version display version information and exit 1780 -q, --quiet, --silent do not print \`checking ...' messages 1781 --cache-file=FILE cache test results in FILE [disabled] 1782 -C, --config-cache alias for \`--cache-file=config.cache' 1783 -n, --no-create do not create output files 1784 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1785 1786 Installation directories: 1787 --prefix=PREFIX install architecture-independent files in PREFIX 1788 [$ac_default_prefix] 1789 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1790 [PREFIX] 1791 1792 By default, \`make install' will install all the files in 1793 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1794 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1795 for instance \`--prefix=\$HOME'. 1796 1797 For better control, use the options below. 1798 1799 Fine tuning of the installation directories: 1800 --bindir=DIR user executables [EPREFIX/bin] 1801 --sbindir=DIR system admin executables [EPREFIX/sbin] 1802 --libexecdir=DIR program executables [EPREFIX/libexec] 1803 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1804 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1805 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1806 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1807 --libdir=DIR object code libraries [EPREFIX/lib] 1808 --includedir=DIR C header files [PREFIX/include] 1809 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1810 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1811 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1812 --infodir=DIR info documentation [DATAROOTDIR/info] 1813 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1814 --mandir=DIR man documentation [DATAROOTDIR/man] 1815 --docdir=DIR documentation root [DATAROOTDIR/doc/curl] 1816 --htmldir=DIR html documentation [DOCDIR] 1817 --dvidir=DIR dvi documentation [DOCDIR] 1818 --pdfdir=DIR pdf documentation [DOCDIR] 1819 --psdir=DIR ps documentation [DOCDIR] 1820 _ACEOF 1821 1822 cat <<\_ACEOF 1823 1824 Program names: 1825 --program-prefix=PREFIX prepend PREFIX to installed program names 1826 --program-suffix=SUFFIX append SUFFIX to installed program names 1827 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1828 1829 System types: 1830 --build=BUILD configure for building on BUILD [guessed] 1831 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1832 _ACEOF 1833 fi 1834 1835 if test -n "$ac_init_help"; then 1836 case $ac_init_help in 1837 short | recursive ) echo "Configuration of curl -:";; 1838 esac 1839 cat <<\_ACEOF 1840 1841 Optional Features: 1842 --disable-option-checking ignore unrecognized --enable/--with options 1843 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1844 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1845 --enable-maintainer-mode 1846 enable make rules and dependencies not useful (and 1847 sometimes confusing) to the casual installer 1848 --enable-silent-rules less verbose build output (undo: "make V=1") 1849 --disable-silent-rules verbose build output (undo: "make V=0") 1850 --enable-debug Enable debug build options 1851 --disable-debug Disable debug build options 1852 --enable-optimize Enable compiler optimizations 1853 --disable-optimize Disable compiler optimizations 1854 --enable-warnings Enable strict compiler warnings 1855 --disable-warnings Disable strict compiler warnings 1856 --enable-werror Enable compiler warnings as errors 1857 --disable-werror Disable compiler warnings as errors 1858 --enable-curldebug Enable curl debug memory tracking 1859 --disable-curldebug Disable curl debug memory tracking 1860 --enable-symbol-hiding Enable hiding of library internal symbols 1861 --disable-symbol-hiding Disable hiding of library internal symbols 1862 --enable-hidden-symbols To be deprecated, use --enable-symbol-hiding 1863 --disable-hidden-symbols 1864 To be deprecated, use --disable-symbol-hiding 1865 --enable-ares[=PATH] Enable c-ares for DNS lookups 1866 --disable-ares Disable c-ares for DNS lookups 1867 --disable-rt disable dependency on -lrt 1868 --enable-code-coverage Provide code coverage 1869 --enable-dependency-tracking 1870 do not reject slow dependency extractors 1871 --disable-dependency-tracking 1872 speeds up one-time build 1873 --disable-largefile omit support for large files 1874 --enable-shared[=PKGS] build shared libraries [default=yes] 1875 --enable-static[=PKGS] build static libraries [default=yes] 1876 --enable-fast-install[=PKGS] 1877 optimize for fast installation [default=yes] 1878 --disable-libtool-lock avoid locking (might break parallel builds) 1879 --enable-http Enable HTTP support 1880 --disable-http Disable HTTP support 1881 --enable-ftp Enable FTP support 1882 --disable-ftp Disable FTP support 1883 --enable-file Enable FILE support 1884 --disable-file Disable FILE support 1885 --enable-ldap Enable LDAP support 1886 --disable-ldap Disable LDAP support 1887 --enable-ldaps Enable LDAPS support 1888 --disable-ldaps Disable LDAPS support 1889 --enable-rtsp Enable RTSP support 1890 --disable-rtsp Disable RTSP support 1891 --enable-proxy Enable proxy support 1892 --disable-proxy Disable proxy support 1893 --enable-dict Enable DICT support 1894 --disable-dict Disable DICT support 1895 --enable-telnet Enable TELNET support 1896 --disable-telnet Disable TELNET support 1897 --enable-tftp Enable TFTP support 1898 --disable-tftp Disable TFTP support 1899 --enable-pop3 Enable POP3 support 1900 --disable-pop3 Disable POP3 support 1901 --enable-imap Enable IMAP support 1902 --disable-imap Disable IMAP support 1903 --enable-smb Enable SMB/CIFS support 1904 --disable-smb Disable SMB/CIFS support 1905 --enable-smtp Enable SMTP support 1906 --disable-smtp Disable SMTP support 1907 --enable-gopher Enable Gopher support 1908 --disable-gopher Disable Gopher support 1909 --enable-manual Enable built-in manual 1910 --disable-manual Disable built-in manual 1911 --enable-libcurl-option Enable --libcurl C code generation support 1912 --disable-libcurl-option 1913 Disable --libcurl C code generation support 1914 --enable-libgcc use libgcc when linking 1915 --enable-ipv6 Enable IPv6 (with IPv4) support 1916 --disable-ipv6 Disable IPv6 support 1917 --enable-openssl-auto-load-config 1918 Enable automatic loading of OpenSSL configuration 1919 --disable-openssl-auto-load-config 1920 Disable automatic loading of OpenSSL configuration 1921 --enable-versioned-symbols 1922 Enable versioned symbols in shared library 1923 --disable-versioned-symbols 1924 Disable versioned symbols in shared library 1925 --enable-threaded-resolver 1926 Enable threaded resolver 1927 --disable-threaded-resolver 1928 Disable threaded resolver 1929 --enable-pthreads Enable POSIX threads (default for threaded resolver) 1930 --disable-pthreads Disable POSIX threads 1931 --enable-verbose Enable verbose strings 1932 --disable-verbose Disable verbose strings 1933 --enable-sspi Enable SSPI 1934 --disable-sspi Disable SSPI 1935 --enable-crypto-auth Enable cryptographic authentication 1936 --disable-crypto-auth Disable cryptographic authentication 1937 --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth 1938 helper, where FILE is ntlm_auth's absolute filename 1939 (default: /usr/bin/ntlm_auth) 1940 --disable-ntlm-wb Disable NTLM delegation to winbind's ntlm_auth 1941 helper 1942 --enable-tls-srp Enable TLS-SRP authentication 1943 --disable-tls-srp Disable TLS-SRP authentication 1944 --enable-unix-sockets Enable Unix domain sockets 1945 --disable-unix-sockets Disable Unix domain sockets 1946 --enable-cookies Enable cookies support 1947 --disable-cookies Disable cookies support 1948 --enable-alt-svc Enable alt-svc support 1949 --disable-alt-svc Disable alt-svc support 1950 1951 Optional Packages: 1952 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1953 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1954 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1955 both] 1956 --with-aix-soname=aix|svr4|both 1957 shared library versioning (aka "SONAME") variant to 1958 provide on AIX, [default=aix]. 1959 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1960 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1961 compiler's sysroot if not specified). 1962 --with-zlib=PATH search for zlib in PATH 1963 --without-zlib disable use of zlib 1964 --with-brotli=PATH Where to look for brotli, PATH points to the BROTLI 1965 installation; when possible, set the PKG_CONFIG_PATH 1966 environment variable instead of using this option 1967 --without-brotli disable BROTLI 1968 --with-ldap-lib=libname Specify name of ldap lib file 1969 --with-lber-lib=libname Specify name of lber lib file 1970 --with-gssapi-includes=DIR 1971 Specify location of GSS-API headers 1972 --with-gssapi-libs=DIR Specify location of GSS-API libs 1973 --with-gssapi=DIR Where to look for GSS-API 1974 --with-default-ssl-backend=NAME 1975 Use NAME as default SSL backend 1976 --without-default-ssl-backend 1977 Use implicit default SSL backend 1978 --with-winssl enable Windows native SSL/TLS 1979 --without-winssl disable Windows native SSL/TLS 1980 --with-schannel enable Windows native SSL/TLS 1981 --without-schannel disable Windows native SSL/TLS 1982 --with-darwinssl enable Apple OS native SSL/TLS 1983 --without-darwinssl disable Apple OS native SSL/TLS 1984 --with-secure-transport enable Apple OS native SSL/TLS 1985 --without-secure-transport 1986 disable Apple OS native SSL/TLS 1987 --with-amissl enable Amiga native SSL/TLS (AmiSSL) 1988 --without-amissl disable Amiga native SSL/TLS (AmiSSL) 1989 --with-ssl=PATH Where to look for OpenSSL, PATH points to the SSL 1990 installation (default: /usr/local/ssl); when 1991 possible, set the PKG_CONFIG_PATH environment 1992 variable instead of using this option 1993 --without-ssl disable OpenSSL 1994 --with-egd-socket=FILE Entropy Gathering Daemon socket pathname 1995 --with-random=FILE read randomness from FILE (default=/dev/urandom) 1996 --with-gnutls=PATH where to look for GnuTLS, PATH points to the 1997 installation root 1998 --without-gnutls disable GnuTLS detection 1999 --with-polarssl=PATH where to look for PolarSSL, PATH points to the 2000 installation root 2001 --without-polarssl disable PolarSSL detection 2002 --with-mbedtls=PATH where to look for mbedTLS, PATH points to the 2003 installation root 2004 --without-mbedtls disable mbedTLS detection 2005 --with-cyassl=PATH where to look for CyaSSL, PATH points to the 2006 installation root (default: system lib default) 2007 --without-cyassl disable CyaSSL detection 2008 --with-wolfssl=PATH where to look for WolfSSL, PATH points to the 2009 installation root (default: system lib default) 2010 --without-wolfssl disable WolfSSL detection 2011 --with-mesalink=PATH where to look for MesaLink, PATH points to the 2012 installation root 2013 --without-mesalink disable MesaLink detection 2014 --with-nss=PATH where to look for NSS, PATH points to the 2015 installation root 2016 --without-nss disable NSS detection 2017 --with-ca-bundle=FILE Path to a file containing CA certificates (example: 2018 /etc/ca-bundle.crt) 2019 --without-ca-bundle Don't use a default CA bundle 2020 --with-ca-path=DIRECTORY 2021 Path to a directory containing CA certificates 2022 stored individually, with their filenames in a hash 2023 format. This option can be used with OpenSSL, GnuTLS 2024 and PolarSSL backends. Refer to OpenSSL c_rehash for 2025 details. (example: /etc/certificates) 2026 --without-ca-path Don't use a default CA path 2027 --with-ca-fallback Use the built in CA store of the SSL library 2028 --without-ca-fallback Don't use the built in CA store of the SSL library 2029 --without-libpsl disable support for libpsl cookie checking 2030 --with-libmetalink=PATH where to look for libmetalink, PATH points to the 2031 installation root 2032 --without-libmetalink disable libmetalink detection 2033 --with-libssh2=PATH Where to look for libssh2, PATH points to the 2034 LIBSSH2 installation; when possible, set the 2035 PKG_CONFIG_PATH environment variable instead of 2036 using this option 2037 --with-libssh2 enable LIBSSH2 2038 --with-libssh=PATH Where to look for libssh, PATH points to the LIBSSH 2039 installation; when possible, set the PKG_CONFIG_PATH 2040 environment variable instead of using this option 2041 --with-libssh enable LIBSSH 2042 --with-librtmp=PATH Where to look for librtmp, PATH points to the 2043 LIBRTMP installation; when possible, set the 2044 PKG_CONFIG_PATH environment variable instead of 2045 using this option 2046 --without-librtmp disable LIBRTMP 2047 --with-winidn=PATH enable Windows native IDN 2048 --without-winidn disable Windows native IDN 2049 --with-libidn2=PATH Enable libidn2 usage 2050 --without-libidn2 Disable libidn2 usage 2051 --with-nghttp2=PATH Enable nghttp2 usage 2052 --without-nghttp2 Disable nghttp2 usage 2053 --with-zsh-functions-dir=PATH 2054 Install zsh completions to PATH 2055 --without-zsh-functions-dir 2056 Do not install zsh completions 2057 --with-fish-functions-dir=PATH 2058 Install fish completions to PATH 2059 --without-fish-functions-dir 2060 Do not install fish completions 2061 2062 Some influential environment variables: 2063 CC C compiler command 2064 CFLAGS C compiler flags 2065 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2066 nonstandard directory <lib dir> 2067 LIBS libraries to pass to the linker, e.g. -l<library> 2068 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2069 you have headers in a nonstandard directory <include dir> 2070 CPP C preprocessor 2071 LT_SYS_LIBRARY_PATH 2072 User-defined run-time library search path. 2073 2074 Use these variables to override the choices made by `configure' or to help 2075 it to find libraries and programs with nonstandard names/locations. 2076 2077 Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>. 2078 _ACEOF 2079 ac_status=$? 2080 fi 2081 2082 if test "$ac_init_help" = "recursive"; then 2083 # If there are subdirs, report their specific --help. 2084 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2085 test -d "$ac_dir" || 2086 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2087 continue 2088 ac_builddir=. 2089 2090 case "$ac_dir" in 2091 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2092 *) 2093 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2094 # A ".." for each directory in $ac_dir_suffix. 2095 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2096 case $ac_top_builddir_sub in 2097 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2098 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2099 esac ;; 2100 esac 2101 ac_abs_top_builddir=$ac_pwd 2102 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2103 # for backward compatibility: 2104 ac_top_builddir=$ac_top_build_prefix 2105 2106 case $srcdir in 2107 .) # We are building in place. 2108 ac_srcdir=. 2109 ac_top_srcdir=$ac_top_builddir_sub 2110 ac_abs_top_srcdir=$ac_pwd ;; 2111 [\\/]* | ?:[\\/]* ) # Absolute name. 2112 ac_srcdir=$srcdir$ac_dir_suffix; 2113 ac_top_srcdir=$srcdir 2114 ac_abs_top_srcdir=$srcdir ;; 2115 *) # Relative name. 2116 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2117 ac_top_srcdir=$ac_top_build_prefix$srcdir 2118 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2119 esac 2120 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2121 2122 cd "$ac_dir" || { ac_status=$?; continue; } 2123 # Check for guested configure. 2124 if test -f "$ac_srcdir/configure.gnu"; then 2125 echo && 2126 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2127 elif test -f "$ac_srcdir/configure"; then 2128 echo && 2129 $SHELL "$ac_srcdir/configure" --help=recursive 2130 else 2131 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2132 fi || ac_status=$? 2133 cd "$ac_pwd" || { ac_status=$?; break; } 2134 done 2135 fi 2136 2137 test -n "$ac_init_help" && exit $ac_status 2138 if $ac_init_version; then 2139 cat <<\_ACEOF 2140 curl configure - 2141 generated by GNU Autoconf 2.69 2142 2143 Copyright (C) 2012 Free Software Foundation, Inc. 2144 This configure script is free software; the Free Software Foundation 2145 gives unlimited permission to copy, distribute and modify it. 2146 2147 Copyright (c) 1998 - 2019 Daniel Stenberg, <daniel (at] haxx.se> 2148 This configure script may be copied, distributed and modified under the 2149 terms of the curl license; see COPYING for more details 2150 _ACEOF 2151 exit 2152 fi 2153 2154 ## ------------------------ ## 2155 ## Autoconf initialization. ## 2156 ## ------------------------ ## 2157 2158 # ac_fn_c_try_compile LINENO 2159 # -------------------------- 2160 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2161 ac_fn_c_try_compile () 2162 { 2163 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2164 rm -f conftest.$ac_objext 2165 if { { ac_try="$ac_compile" 2166 case "(($ac_try" in 2167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2168 *) ac_try_echo=$ac_try;; 2169 esac 2170 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2171 $as_echo "$ac_try_echo"; } >&5 2172 (eval "$ac_compile") 2>conftest.err 2173 ac_status=$? 2174 if test -s conftest.err; then 2175 grep -v '^ *+' conftest.err >conftest.er1 2176 cat conftest.er1 >&5 2177 mv -f conftest.er1 conftest.err 2178 fi 2179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2180 test $ac_status = 0; } && { 2181 test -z "$ac_c_werror_flag" || 2182 test ! -s conftest.err 2183 } && test -s conftest.$ac_objext; then : 2184 ac_retval=0 2185 else 2186 $as_echo "$as_me: failed program was:" >&5 2187 sed 's/^/| /' conftest.$ac_ext >&5 2188 2189 ac_retval=1 2190 fi 2191 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2192 as_fn_set_status $ac_retval 2193 2194 } # ac_fn_c_try_compile 2195 2196 # ac_fn_c_try_cpp LINENO 2197 # ---------------------- 2198 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2199 ac_fn_c_try_cpp () 2200 { 2201 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2202 if { { ac_try="$ac_cpp conftest.$ac_ext" 2203 case "(($ac_try" in 2204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2205 *) ac_try_echo=$ac_try;; 2206 esac 2207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2208 $as_echo "$ac_try_echo"; } >&5 2209 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2210 ac_status=$? 2211 if test -s conftest.err; then 2212 grep -v '^ *+' conftest.err >conftest.er1 2213 cat conftest.er1 >&5 2214 mv -f conftest.er1 conftest.err 2215 fi 2216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2217 test $ac_status = 0; } > conftest.i && { 2218 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2219 test ! -s conftest.err 2220 }; then : 2221 ac_retval=0 2222 else 2223 $as_echo "$as_me: failed program was:" >&5 2224 sed 's/^/| /' conftest.$ac_ext >&5 2225 2226 ac_retval=1 2227 fi 2228 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2229 as_fn_set_status $ac_retval 2230 2231 } # ac_fn_c_try_cpp 2232 2233 # ac_fn_c_try_link LINENO 2234 # ----------------------- 2235 # Try to link conftest.$ac_ext, and return whether this succeeded. 2236 ac_fn_c_try_link () 2237 { 2238 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2239 rm -f conftest.$ac_objext conftest$ac_exeext 2240 if { { ac_try="$ac_link" 2241 case "(($ac_try" in 2242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2243 *) ac_try_echo=$ac_try;; 2244 esac 2245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2246 $as_echo "$ac_try_echo"; } >&5 2247 (eval "$ac_link") 2>conftest.err 2248 ac_status=$? 2249 if test -s conftest.err; then 2250 grep -v '^ *+' conftest.err >conftest.er1 2251 cat conftest.er1 >&5 2252 mv -f conftest.er1 conftest.err 2253 fi 2254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2255 test $ac_status = 0; } && { 2256 test -z "$ac_c_werror_flag" || 2257 test ! -s conftest.err 2258 } && test -s conftest$ac_exeext && { 2259 test "$cross_compiling" = yes || 2260 test -x conftest$ac_exeext 2261 }; then : 2262 ac_retval=0 2263 else 2264 $as_echo "$as_me: failed program was:" >&5 2265 sed 's/^/| /' conftest.$ac_ext >&5 2266 2267 ac_retval=1 2268 fi 2269 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2270 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2271 # interfere with the next link command; also delete a directory that is 2272 # left behind by Apple's compiler. We do this before executing the actions. 2273 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2274 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2275 as_fn_set_status $ac_retval 2276 2277 } # ac_fn_c_try_link 2278 2279 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2280 # ------------------------------------------------------- 2281 # Tests whether HEADER exists and can be compiled using the include files in 2282 # INCLUDES, setting the cache variable VAR accordingly. 2283 ac_fn_c_check_header_compile () 2284 { 2285 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2287 $as_echo_n "checking for $2... " >&6; } 2288 if eval \${$3+:} false; then : 2289 $as_echo_n "(cached) " >&6 2290 else 2291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2292 /* end confdefs.h. */ 2293 $4 2294 #include <$2> 2295 _ACEOF 2296 if ac_fn_c_try_compile "$LINENO"; then : 2297 eval "$3=yes" 2298 else 2299 eval "$3=no" 2300 fi 2301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2302 fi 2303 eval ac_res=\$$3 2304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2305 $as_echo "$ac_res" >&6; } 2306 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2307 2308 } # ac_fn_c_check_header_compile 2309 2310 # ac_fn_c_try_run LINENO 2311 # ---------------------- 2312 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2313 # that executables *can* be run. 2314 ac_fn_c_try_run () 2315 { 2316 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2317 if { { ac_try="$ac_link" 2318 case "(($ac_try" in 2319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2320 *) ac_try_echo=$ac_try;; 2321 esac 2322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2323 $as_echo "$ac_try_echo"; } >&5 2324 (eval "$ac_link") 2>&5 2325 ac_status=$? 2326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2327 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2328 { { case "(($ac_try" in 2329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2330 *) ac_try_echo=$ac_try;; 2331 esac 2332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2333 $as_echo "$ac_try_echo"; } >&5 2334 (eval "$ac_try") 2>&5 2335 ac_status=$? 2336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2337 test $ac_status = 0; }; }; then : 2338 ac_retval=0 2339 else 2340 $as_echo "$as_me: program exited with status $ac_status" >&5 2341 $as_echo "$as_me: failed program was:" >&5 2342 sed 's/^/| /' conftest.$ac_ext >&5 2343 2344 ac_retval=$ac_status 2345 fi 2346 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2347 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2348 as_fn_set_status $ac_retval 2349 2350 } # ac_fn_c_try_run 2351 2352 # ac_fn_c_check_func LINENO FUNC VAR 2353 # ---------------------------------- 2354 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2355 ac_fn_c_check_func () 2356 { 2357 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2359 $as_echo_n "checking for $2... " >&6; } 2360 if eval \${$3+:} false; then : 2361 $as_echo_n "(cached) " >&6 2362 else 2363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2364 /* end confdefs.h. */ 2365 2366 #define $2 innocuous_$2 2367 #ifdef __STDC__ 2368 # include <limits.h> 2369 #else 2370 # include <assert.h> 2371 #endif 2372 #undef $2 2373 #ifdef __cplusplus 2374 extern "C" 2375 #endif 2376 char $2 (); 2377 #if defined __stub_$2 || defined __stub___$2 2378 choke me 2379 #endif 2380 2381 int main (void) 2382 { 2383 return $2 (); 2384 ; 2385 return 0; 2386 } 2387 _ACEOF 2388 if ac_fn_c_try_link "$LINENO"; then : 2389 eval "$3=yes" 2390 else 2391 eval "$3=no" 2392 fi 2393 rm -f core conftest.err conftest.$ac_objext \ 2394 conftest$ac_exeext conftest.$ac_ext 2395 fi 2396 eval ac_res=\$$3 2397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2398 $as_echo "$ac_res" >&6; } 2399 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2400 2401 } # ac_fn_c_check_func 2402 2403 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2404 # ------------------------------------------------------- 2405 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2406 # the include files in INCLUDES and setting the cache variable VAR 2407 # accordingly. 2408 ac_fn_c_check_header_mongrel () 2409 { 2410 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2411 if eval \${$3+:} false; then : 2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2413 $as_echo_n "checking for $2... " >&6; } 2414 if eval \${$3+:} false; then : 2415 $as_echo_n "(cached) " >&6 2416 fi 2417 eval ac_res=\$$3 2418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2419 $as_echo "$ac_res" >&6; } 2420 else 2421 # Is the header compilable? 2422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2423 $as_echo_n "checking $2 usability... " >&6; } 2424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2425 /* end confdefs.h. */ 2426 $4 2427 #include <$2> 2428 _ACEOF 2429 if ac_fn_c_try_compile "$LINENO"; then : 2430 ac_header_compiler=yes 2431 else 2432 ac_header_compiler=no 2433 fi 2434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2436 $as_echo "$ac_header_compiler" >&6; } 2437 2438 # Is the header present? 2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2440 $as_echo_n "checking $2 presence... " >&6; } 2441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2442 /* end confdefs.h. */ 2443 #include <$2> 2444 _ACEOF 2445 if ac_fn_c_try_cpp "$LINENO"; then : 2446 ac_header_preproc=yes 2447 else 2448 ac_header_preproc=no 2449 fi 2450 rm -f conftest.err conftest.i conftest.$ac_ext 2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2452 $as_echo "$ac_header_preproc" >&6; } 2453 2454 # So? What about this header? 2455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2456 yes:no: ) 2457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2458 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2460 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2461 ;; 2462 no:yes:* ) 2463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2464 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2466 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2468 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2470 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2472 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2473 ( $as_echo "## ----------------------------------------------------------------------- ## 2474 ## Report this to a suitable curl mailing list: https://curl.haxx.se/mail/ ## 2475 ## ----------------------------------------------------------------------- ##" 2476 ) | sed "s/^/$as_me: WARNING: /" >&2 2477 ;; 2478 esac 2479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2480 $as_echo_n "checking for $2... " >&6; } 2481 if eval \${$3+:} false; then : 2482 $as_echo_n "(cached) " >&6 2483 else 2484 eval "$3=\$ac_header_compiler" 2485 fi 2486 eval ac_res=\$$3 2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2488 $as_echo "$ac_res" >&6; } 2489 fi 2490 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2491 2492 } # ac_fn_c_check_header_mongrel 2493 2494 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2495 # ------------------------------------------- 2496 # Tests whether TYPE exists after having included INCLUDES, setting cache 2497 # variable VAR accordingly. 2498 ac_fn_c_check_type () 2499 { 2500 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2502 $as_echo_n "checking for $2... " >&6; } 2503 if eval \${$3+:} false; then : 2504 $as_echo_n "(cached) " >&6 2505 else 2506 eval "$3=no" 2507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2508 /* end confdefs.h. */ 2509 $4 2510 int main (void) 2511 { 2512 if (sizeof ($2)) 2513 return 0; 2514 ; 2515 return 0; 2516 } 2517 _ACEOF 2518 if ac_fn_c_try_compile "$LINENO"; then : 2519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2520 /* end confdefs.h. */ 2521 $4 2522 int main (void) 2523 { 2524 if (sizeof (($2))) 2525 return 0; 2526 ; 2527 return 0; 2528 } 2529 _ACEOF 2530 if ac_fn_c_try_compile "$LINENO"; then : 2531 2532 else 2533 eval "$3=yes" 2534 fi 2535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2536 fi 2537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2538 fi 2539 eval ac_res=\$$3 2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2541 $as_echo "$ac_res" >&6; } 2542 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2543 2544 } # ac_fn_c_check_type 2545 2546 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2547 # --------------------------------------------- 2548 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2549 # accordingly. 2550 ac_fn_c_check_decl () 2551 { 2552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2553 as_decl_name=`echo $2|sed 's/ *(.*//'` 2554 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2556 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2557 if eval \${$3+:} false; then : 2558 $as_echo_n "(cached) " >&6 2559 else 2560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2561 /* end confdefs.h. */ 2562 $4 2563 int main (void) 2564 { 2565 #ifndef $as_decl_name 2566 #ifdef __cplusplus 2567 (void) $as_decl_use; 2568 #else 2569 (void) $as_decl_name; 2570 #endif 2571 #endif 2572 2573 ; 2574 return 0; 2575 } 2576 _ACEOF 2577 if ac_fn_c_try_compile "$LINENO"; then : 2578 eval "$3=yes" 2579 else 2580 eval "$3=no" 2581 fi 2582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2583 fi 2584 eval ac_res=\$$3 2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2586 $as_echo "$ac_res" >&6; } 2587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2588 2589 } # ac_fn_c_check_decl 2590 2591 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2592 # ---------------------------------------------------- 2593 # Tries to find if the field MEMBER exists in type AGGR, after including 2594 # INCLUDES, setting cache variable VAR accordingly. 2595 ac_fn_c_check_member () 2596 { 2597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2599 $as_echo_n "checking for $2.$3... " >&6; } 2600 if eval \${$4+:} false; then : 2601 $as_echo_n "(cached) " >&6 2602 else 2603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2604 /* end confdefs.h. */ 2605 $5 2606 int main (void) 2607 { 2608 static $2 ac_aggr; 2609 if (ac_aggr.$3) 2610 return 0; 2611 ; 2612 return 0; 2613 } 2614 _ACEOF 2615 if ac_fn_c_try_compile "$LINENO"; then : 2616 eval "$4=yes" 2617 else 2618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2619 /* end confdefs.h. */ 2620 $5 2621 int main (void) 2622 { 2623 static $2 ac_aggr; 2624 if (sizeof ac_aggr.$3) 2625 return 0; 2626 ; 2627 return 0; 2628 } 2629 _ACEOF 2630 if ac_fn_c_try_compile "$LINENO"; then : 2631 eval "$4=yes" 2632 else 2633 eval "$4=no" 2634 fi 2635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2636 fi 2637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2638 fi 2639 eval ac_res=\$$4 2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2641 $as_echo "$ac_res" >&6; } 2642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2643 2644 } # ac_fn_c_check_member 2645 cat >config.log <<_ACEOF 2646 This file contains any messages produced by compilers while 2647 running configure, to aid debugging if configure makes a mistake. 2648 2649 It was created by curl $as_me -, which was 2650 generated by GNU Autoconf 2.69. Invocation command line was 2651 2652 $ $0 $@ 2653 2654 _ACEOF 2655 exec 5>>config.log 2656 { 2657 cat <<_ASUNAME 2658 ## --------- ## 2659 ## Platform. ## 2660 ## --------- ## 2661 2662 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2663 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2664 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2665 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2666 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2667 2668 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2669 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2670 2671 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2672 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2673 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2674 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2675 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2676 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2677 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2678 2679 _ASUNAME 2680 2681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2682 for as_dir in $PATH 2683 do 2684 IFS=$as_save_IFS 2685 test -z "$as_dir" && as_dir=. 2686 $as_echo "PATH: $as_dir" 2687 done 2688 IFS=$as_save_IFS 2689 2690 } >&5 2691 2692 cat >&5 <<_ACEOF 2693 2694 2695 ## ----------- ## 2696 ## Core tests. ## 2697 ## ----------- ## 2698 2699 _ACEOF 2700 2701 2702 # Keep a trace of the command line. 2703 # Strip out --no-create and --no-recursion so they do not pile up. 2704 # Strip out --silent because we don't want to record it for future runs. 2705 # Also quote any args containing shell meta-characters. 2706 # Make two passes to allow for proper duplicate-argument suppression. 2707 ac_configure_args= 2708 ac_configure_args0= 2709 ac_configure_args1= 2710 ac_must_keep_next=false 2711 for ac_pass in 1 2 2712 do 2713 for ac_arg 2714 do 2715 case $ac_arg in 2716 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2717 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2718 | -silent | --silent | --silen | --sile | --sil) 2719 continue ;; 2720 *\'*) 2721 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2722 esac 2723 case $ac_pass in 2724 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2725 2) 2726 as_fn_append ac_configure_args1 " '$ac_arg'" 2727 if test $ac_must_keep_next = true; then 2728 ac_must_keep_next=false # Got value, back to normal. 2729 else 2730 case $ac_arg in 2731 *=* | --config-cache | -C | -disable-* | --disable-* \ 2732 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2733 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2734 | -with-* | --with-* | -without-* | --without-* | --x) 2735 case "$ac_configure_args0 " in 2736 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2737 esac 2738 ;; 2739 -* ) ac_must_keep_next=true ;; 2740 esac 2741 fi 2742 as_fn_append ac_configure_args " '$ac_arg'" 2743 ;; 2744 esac 2745 done 2746 done 2747 { ac_configure_args0=; unset ac_configure_args0;} 2748 { ac_configure_args1=; unset ac_configure_args1;} 2749 2750 # When interrupted or exit'd, cleanup temporary files, and complete 2751 # config.log. We remove comments because anyway the quotes in there 2752 # would cause problems or look ugly. 2753 # WARNING: Use '\'' to represent an apostrophe within the trap. 2754 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2755 trap 'exit_status=$? 2756 # Save into config.log some information that might help in debugging. 2757 { 2758 echo 2759 2760 $as_echo "## ---------------- ## 2761 ## Cache variables. ## 2762 ## ---------------- ##" 2763 echo 2764 # The following way of writing the cache mishandles newlines in values, 2765 ( 2766 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2767 eval ac_val=\$$ac_var 2768 case $ac_val in #( 2769 *${as_nl}*) 2770 case $ac_var in #( 2771 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2772 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2773 esac 2774 case $ac_var in #( 2775 _ | IFS | as_nl) ;; #( 2776 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2777 *) { eval $ac_var=; unset $ac_var;} ;; 2778 esac ;; 2779 esac 2780 done 2781 (set) 2>&1 | 2782 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2783 *${as_nl}ac_space=\ *) 2784 sed -n \ 2785 "s/'\''/'\''\\\\'\'''\''/g; 2786 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2787 ;; #( 2788 *) 2789 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2790 ;; 2791 esac | 2792 sort 2793 ) 2794 echo 2795 2796 $as_echo "## ----------------- ## 2797 ## Output variables. ## 2798 ## ----------------- ##" 2799 echo 2800 for ac_var in $ac_subst_vars 2801 do 2802 eval ac_val=\$$ac_var 2803 case $ac_val in 2804 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2805 esac 2806 $as_echo "$ac_var='\''$ac_val'\''" 2807 done | sort 2808 echo 2809 2810 if test -n "$ac_subst_files"; then 2811 $as_echo "## ------------------- ## 2812 ## File substitutions. ## 2813 ## ------------------- ##" 2814 echo 2815 for ac_var in $ac_subst_files 2816 do 2817 eval ac_val=\$$ac_var 2818 case $ac_val in 2819 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2820 esac 2821 $as_echo "$ac_var='\''$ac_val'\''" 2822 done | sort 2823 echo 2824 fi 2825 2826 if test -s confdefs.h; then 2827 $as_echo "## ----------- ## 2828 ## confdefs.h. ## 2829 ## ----------- ##" 2830 echo 2831 cat confdefs.h 2832 echo 2833 fi 2834 test "$ac_signal" != 0 && 2835 $as_echo "$as_me: caught signal $ac_signal" 2836 $as_echo "$as_me: exit $exit_status" 2837 } >&5 2838 rm -f core *.core core.conftest.* && 2839 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2840 exit $exit_status 2841 ' 0 2842 for ac_signal in 1 2 13 15; do 2843 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2844 done 2845 ac_signal=0 2846 2847 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2848 rm -f -r conftest* confdefs.h 2849 2850 $as_echo "/* confdefs.h */" > confdefs.h 2851 2852 # Predefined preprocessor variables. 2853 2854 cat >>confdefs.h <<_ACEOF 2855 #define PACKAGE_NAME "$PACKAGE_NAME" 2856 _ACEOF 2857 2858 cat >>confdefs.h <<_ACEOF 2859 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2860 _ACEOF 2861 2862 cat >>confdefs.h <<_ACEOF 2863 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2864 _ACEOF 2865 2866 cat >>confdefs.h <<_ACEOF 2867 #define PACKAGE_STRING "$PACKAGE_STRING" 2868 _ACEOF 2869 2870 cat >>confdefs.h <<_ACEOF 2871 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2872 _ACEOF 2873 2874 cat >>confdefs.h <<_ACEOF 2875 #define PACKAGE_URL "$PACKAGE_URL" 2876 _ACEOF 2877 2878 2879 # Let the site file select an alternate cache file if it wants to. 2880 # Prefer an explicitly selected file to automatically selected ones. 2881 ac_site_file1=NONE 2882 ac_site_file2=NONE 2883 if test -n "$CONFIG_SITE"; then 2884 # We do not want a PATH search for config.site. 2885 case $CONFIG_SITE in #(( 2886 -*) ac_site_file1=./$CONFIG_SITE;; 2887 */*) ac_site_file1=$CONFIG_SITE;; 2888 *) ac_site_file1=./$CONFIG_SITE;; 2889 esac 2890 elif test "x$prefix" != xNONE; then 2891 ac_site_file1=$prefix/share/config.site 2892 ac_site_file2=$prefix/etc/config.site 2893 else 2894 ac_site_file1=$ac_default_prefix/share/config.site 2895 ac_site_file2=$ac_default_prefix/etc/config.site 2896 fi 2897 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2898 do 2899 test "x$ac_site_file" = xNONE && continue 2900 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2901 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2902 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2903 sed 's/^/| /' "$ac_site_file" >&5 2904 . "$ac_site_file" \ 2905 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2907 as_fn_error $? "failed to load site script $ac_site_file 2908 See \`config.log' for more details" "$LINENO" 5; } 2909 fi 2910 done 2911 2912 if test -r "$cache_file"; then 2913 # Some versions of bash will fail to source /dev/null (special files 2914 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2915 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2916 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2917 $as_echo "$as_me: loading cache $cache_file" >&6;} 2918 case $cache_file in 2919 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2920 *) . "./$cache_file";; 2921 esac 2922 fi 2923 else 2924 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2925 $as_echo "$as_me: creating cache $cache_file" >&6;} 2926 >$cache_file 2927 fi 2928 2929 # Check that the precious variables saved in the cache have kept the same 2930 # value. 2931 ac_cache_corrupted=false 2932 for ac_var in $ac_precious_vars; do 2933 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2934 eval ac_new_set=\$ac_env_${ac_var}_set 2935 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2936 eval ac_new_val=\$ac_env_${ac_var}_value 2937 case $ac_old_set,$ac_new_set in 2938 set,) 2939 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2940 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2941 ac_cache_corrupted=: ;; 2942 ,set) 2943 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2944 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2945 ac_cache_corrupted=: ;; 2946 ,);; 2947 *) 2948 if test "x$ac_old_val" != "x$ac_new_val"; then 2949 # differences in whitespace do not lead to failure. 2950 ac_old_val_w=`echo x $ac_old_val` 2951 ac_new_val_w=`echo x $ac_new_val` 2952 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2953 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2954 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2955 ac_cache_corrupted=: 2956 else 2957 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2958 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2959 eval $ac_var=\$ac_old_val 2960 fi 2961 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2962 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2963 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2964 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2965 fi;; 2966 esac 2967 # Pass precious variables to config.status. 2968 if test "$ac_new_set" = set; then 2969 case $ac_new_val in 2970 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2971 *) ac_arg=$ac_var=$ac_new_val ;; 2972 esac 2973 case " $ac_configure_args " in 2974 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2975 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2976 esac 2977 fi 2978 done 2979 if $ac_cache_corrupted; then 2980 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2982 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2983 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2984 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2985 fi 2986 ## -------------------- ## 2987 ## Main body of script. ## 2988 ## -------------------- ## 2989 2990 ac_ext=c 2991 ac_cpp='$CPP $CPPFLAGS' 2992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2994 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2995 2996 2997 2998 2999 3000 3001 3002 # using curl-override.m4 3003 3004 3005 3006 3007 3008 ac_config_headers="$ac_config_headers lib/curl_config.h" 3009 3010 3011 3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3013 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3014 # Check whether --enable-maintainer-mode was given. 3015 if test "${enable_maintainer_mode+set}" = set; then : 3016 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3017 else 3018 USE_MAINTAINER_MODE=no 3019 fi 3020 3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3022 $as_echo "$USE_MAINTAINER_MODE" >&6; } 3023 if test $USE_MAINTAINER_MODE = yes; then 3024 MAINTAINER_MODE_TRUE= 3025 MAINTAINER_MODE_FALSE='#' 3026 else 3027 MAINTAINER_MODE_TRUE='#' 3028 MAINTAINER_MODE_FALSE= 3029 fi 3030 3031 MAINT=$MAINTAINER_MODE_TRUE 3032 3033 3034 # Check whether --enable-silent-rules was given. 3035 if test "${enable_silent_rules+set}" = set; then : 3036 enableval=$enable_silent_rules; 3037 fi 3038 3039 case $enable_silent_rules in # ((( 3040 yes) AM_DEFAULT_VERBOSITY=0;; 3041 no) AM_DEFAULT_VERBOSITY=1;; 3042 *) AM_DEFAULT_VERBOSITY=0;; 3043 esac 3044 am_make=${MAKE-make} 3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3046 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3047 if ${am_cv_make_support_nested_variables+:} false; then : 3048 $as_echo_n "(cached) " >&6 3049 else 3050 if $as_echo 'TRUE=$(BAR$(V)) 3051 BAR0=false 3052 BAR1=true 3053 V=1 3054 am__doit: 3055 @$(TRUE) 3056 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3057 am_cv_make_support_nested_variables=yes 3058 else 3059 am_cv_make_support_nested_variables=no 3060 fi 3061 fi 3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3063 $as_echo "$am_cv_make_support_nested_variables" >&6; } 3064 if test $am_cv_make_support_nested_variables = yes; then 3065 AM_V='$(V)' 3066 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3067 else 3068 AM_V=$AM_DEFAULT_VERBOSITY 3069 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3070 fi 3071 AM_BACKSLASH='\' 3072 3073 3074 3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5 3076 $as_echo_n "checking whether to enable debug build options... " >&6; } 3077 OPT_DEBUG_BUILD="default" 3078 # Check whether --enable-debug was given. 3079 if test "${enable_debug+set}" = set; then : 3080 enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval 3081 fi 3082 3083 case "$OPT_DEBUG_BUILD" in 3084 no) 3085 want_debug="no" 3086 ;; 3087 default) 3088 want_debug="no" 3089 ;; 3090 *) 3091 want_debug="yes" 3092 3093 $as_echo "#define DEBUGBUILD 1" >>confdefs.h 3094 3095 ;; 3096 esac 3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5 3098 $as_echo "$want_debug" >&6; } 3099 3100 3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5 3102 $as_echo_n "checking whether to enable compiler optimizer... " >&6; } 3103 OPT_COMPILER_OPTIMIZE="default" 3104 # Check whether --enable-optimize was given. 3105 if test "${enable_optimize+set}" = set; then : 3106 enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval 3107 fi 3108 3109 case "$OPT_COMPILER_OPTIMIZE" in 3110 no) 3111 want_optimize="no" 3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3113 $as_echo "no" >&6; } 3114 ;; 3115 default) 3116 if test "$want_debug" = "yes"; then 3117 want_optimize="assume_no" 3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5 3119 $as_echo "(assumed) no" >&6; } 3120 else 3121 want_optimize="assume_yes" 3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5 3123 $as_echo "(assumed) yes" >&6; } 3124 fi 3125 ;; 3126 *) 3127 want_optimize="yes" 3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3129 $as_echo "yes" >&6; } 3130 ;; 3131 esac 3132 3133 3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5 3135 $as_echo_n "checking whether to enable strict compiler warnings... " >&6; } 3136 OPT_COMPILER_WARNINGS="default" 3137 # Check whether --enable-warnings was given. 3138 if test "${enable_warnings+set}" = set; then : 3139 enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval 3140 fi 3141 3142 case "$OPT_COMPILER_WARNINGS" in 3143 no) 3144 want_warnings="no" 3145 ;; 3146 default) 3147 want_warnings="$want_debug" 3148 ;; 3149 *) 3150 want_warnings="yes" 3151 ;; 3152 esac 3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5 3154 $as_echo "$want_warnings" >&6; } 3155 3156 3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5 3158 $as_echo_n "checking whether to enable compiler warnings as errors... " >&6; } 3159 OPT_COMPILER_WERROR="default" 3160 # Check whether --enable-werror was given. 3161 if test "${enable_werror+set}" = set; then : 3162 enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval 3163 fi 3164 3165 case "$OPT_COMPILER_WERROR" in 3166 no) 3167 want_werror="no" 3168 ;; 3169 default) 3170 want_werror="no" 3171 ;; 3172 *) 3173 want_werror="yes" 3174 ;; 3175 esac 3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5 3177 $as_echo "$want_werror" >&6; } 3178 3179 3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5 3181 $as_echo_n "checking whether to enable curl debug memory tracking... " >&6; } 3182 OPT_CURLDEBUG_BUILD="default" 3183 # Check whether --enable-curldebug was given. 3184 if test "${enable_curldebug+set}" = set; then : 3185 enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval 3186 fi 3187 3188 case "$OPT_CURLDEBUG_BUILD" in 3189 no) 3190 want_curldebug="no" 3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3192 $as_echo "no" >&6; } 3193 ;; 3194 default) 3195 if test "$want_debug" = "yes"; then 3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5 3197 $as_echo "(assumed) yes" >&6; } 3198 3199 $as_echo "#define CURLDEBUG 1" >>confdefs.h 3200 3201 else 3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3203 $as_echo "no" >&6; } 3204 fi 3205 want_curldebug_assumed="yes" 3206 want_curldebug="$want_debug" 3207 ;; 3208 *) 3209 want_curldebug="yes" 3210 3211 $as_echo "#define CURLDEBUG 1" >>confdefs.h 3212 3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3214 $as_echo "yes" >&6; } 3215 ;; 3216 esac 3217 3218 3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5 3220 $as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; } 3221 OPT_SYMBOL_HIDING="default" 3222 # Check whether --enable-symbol-hiding was given. 3223 if test "${enable_symbol_hiding+set}" = set; then : 3224 enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval 3225 fi 3226 3227 # Check whether --enable-hidden-symbols was given. 3228 if test "${enable_hidden_symbols+set}" = set; then : 3229 enableval=$enable_hidden_symbols; OPT_SYMBOL_HIDING=$enableval 3230 fi 3231 3232 case "$OPT_SYMBOL_HIDING" in 3233 no) 3234 want_symbol_hiding="no" 3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3236 $as_echo "no" >&6; } 3237 ;; 3238 default) 3239 want_symbol_hiding="yes" 3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3241 $as_echo "yes" >&6; } 3242 ;; 3243 *) 3244 want_symbol_hiding="yes" 3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3246 $as_echo "yes" >&6; } 3247 ;; 3248 esac 3249 3250 3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5 3252 $as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; } 3253 OPT_ARES="default" 3254 # Check whether --enable-ares was given. 3255 if test "${enable_ares+set}" = set; then : 3256 enableval=$enable_ares; OPT_ARES=$enableval 3257 fi 3258 3259 case "$OPT_ARES" in 3260 no) 3261 want_ares="no" 3262 ;; 3263 default) 3264 want_ares="no" 3265 ;; 3266 *) 3267 want_ares="yes" 3268 if test -n "$enableval" && test "$enableval" != "yes"; then 3269 want_ares_path="$enableval" 3270 fi 3271 ;; 3272 esac 3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5 3274 $as_echo "$want_ares" >&6; } 3275 3276 3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5 3278 $as_echo_n "checking whether to disable dependency on -lrt... " >&6; } 3279 OPT_RT="default" 3280 # Check whether --enable-rt was given. 3281 if test "${enable_rt+set}" = set; then : 3282 enableval=$enable_rt; OPT_RT=$enableval 3283 fi 3284 3285 case "$OPT_RT" in 3286 no) 3287 dontwant_rt="yes" 3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3289 $as_echo "yes" >&6; } 3290 ;; 3291 default) 3292 dontwant_rt="no" 3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5 3294 $as_echo "(assumed no)" >&6; } 3295 ;; 3296 *) 3297 dontwant_rt="no" 3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3299 $as_echo "no" >&6; } 3300 ;; 3301 esac 3302 3303 3304 # 3305 # Check that 'XC_CONFIGURE_PREAMBLE' has already run. 3306 # 3307 3308 if test -z "$xc_configure_preamble_result"; then 3309 as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5 3310 fi 3311 3312 # 3313 # Check that 'PATH_SEPARATOR' has already been set. 3314 # 3315 3316 if test -z "$xc_PATH_SEPARATOR"; then 3317 as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5 3318 fi 3319 if test -z "$PATH_SEPARATOR"; then 3320 as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5 3321 fi 3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5 3323 $as_echo_n "checking for path separator... " >&6; } 3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5 3325 $as_echo "$PATH_SEPARATOR" >&6; } 3326 if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then 3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5 3328 $as_echo_n "checking for initial path separator... " >&6; } 3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5 3330 $as_echo "$xc_PATH_SEPARATOR" >&6; } 3331 as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5 3332 fi 3333 3334 3335 # 3336 # save the configure arguments 3337 # 3338 CONFIGURE_OPTIONS="\"$ac_configure_args\"" 3339 3340 3341 CURL_CFLAG_EXTRAS="" 3342 if test X"$want_werror" = Xyes; then 3343 CURL_CFLAG_EXTRAS="-Werror" 3344 if test "$compiler_id" = "GNU_C"; then 3345 if test "$compiler_num" -ge "500"; then 3346 CURL_CFLAG_EXTRAS="$CURL_CFLAG_EXTRAS -pedantic-errors" 3347 fi 3348 fi 3349 fi 3350 3351 3352 if test -z "$SED"; then 3353 # Extract the first word of "sed", so it can be a program name with args. 3354 set dummy sed; ac_word=$2 3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3356 $as_echo_n "checking for $ac_word... " >&6; } 3357 if ${ac_cv_path_SED+:} false; then : 3358 $as_echo_n "(cached) " >&6 3359 else 3360 case $SED in 3361 [\\/]* | ?:[\\/]*) 3362 ac_cv_path_SED="$SED" # Let the user override the test with a path. 3363 ;; 3364 *) 3365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3366 as_dummy="$PATH:/usr/bin:/usr/local/bin" 3367 for as_dir in $as_dummy 3368 do 3369 IFS=$as_save_IFS 3370 test -z "$as_dir" && as_dir=. 3371 for ac_exec_ext in '' $ac_executable_extensions; do 3372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3373 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 3374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3375 break 2 3376 fi 3377 done 3378 done 3379 IFS=$as_save_IFS 3380 3381 test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found" 3382 ;; 3383 esac 3384 fi 3385 SED=$ac_cv_path_SED 3386 if test -n "$SED"; then 3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 3388 $as_echo "$SED" >&6; } 3389 else 3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3391 $as_echo "no" >&6; } 3392 fi 3393 3394 3395 if test -z "$SED" || test "$SED" = "not_found"; then 3396 as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5 3397 fi 3398 fi 3399 3400 3401 if test -z "$GREP"; then 3402 # Extract the first word of "grep", so it can be a program name with args. 3403 set dummy grep; ac_word=$2 3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3405 $as_echo_n "checking for $ac_word... " >&6; } 3406 if ${ac_cv_path_GREP+:} false; then : 3407 $as_echo_n "(cached) " >&6 3408 else 3409 case $GREP in 3410 [\\/]* | ?:[\\/]*) 3411 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 3412 ;; 3413 *) 3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3415 as_dummy="$PATH:/usr/bin:/usr/local/bin" 3416 for as_dir in $as_dummy 3417 do 3418 IFS=$as_save_IFS 3419 test -z "$as_dir" && as_dir=. 3420 for ac_exec_ext in '' $ac_executable_extensions; do 3421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3422 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 3423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3424 break 2 3425 fi 3426 done 3427 done 3428 IFS=$as_save_IFS 3429 3430 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found" 3431 ;; 3432 esac 3433 fi 3434 GREP=$ac_cv_path_GREP 3435 if test -n "$GREP"; then 3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 3437 $as_echo "$GREP" >&6; } 3438 else 3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3440 $as_echo "no" >&6; } 3441 fi 3442 3443 3444 if test -z "$GREP" || test "$GREP" = "not_found"; then 3445 as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5 3446 fi 3447 fi 3448 3449 3450 if test -z "$EGREP"; then 3451 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then 3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3453 $as_echo_n "checking for egrep... " >&6; } 3454 EGREP="$GREP -E" 3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 3456 $as_echo "$EGREP" >&6; } 3457 else 3458 # Extract the first word of "egrep", so it can be a program name with args. 3459 set dummy egrep; ac_word=$2 3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3461 $as_echo_n "checking for $ac_word... " >&6; } 3462 if ${ac_cv_path_EGREP+:} false; then : 3463 $as_echo_n "(cached) " >&6 3464 else 3465 case $EGREP in 3466 [\\/]* | ?:[\\/]*) 3467 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 3468 ;; 3469 *) 3470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3471 as_dummy="$PATH:/usr/bin:/usr/local/bin" 3472 for as_dir in $as_dummy 3473 do 3474 IFS=$as_save_IFS 3475 test -z "$as_dir" && as_dir=. 3476 for ac_exec_ext in '' $ac_executable_extensions; do 3477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3478 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext" 3479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3480 break 2 3481 fi 3482 done 3483 done 3484 IFS=$as_save_IFS 3485 3486 test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found" 3487 ;; 3488 esac 3489 fi 3490 EGREP=$ac_cv_path_EGREP 3491 if test -n "$EGREP"; then 3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 3493 $as_echo "$EGREP" >&6; } 3494 else 3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3496 $as_echo "no" >&6; } 3497 fi 3498 3499 3500 fi 3501 fi 3502 if test -z "$EGREP" || test "$EGREP" = "not_found"; then 3503 as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5 3504 fi 3505 3506 3507 if test -z "$AR"; then 3508 if test -n "$ac_tool_prefix"; then 3509 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 3510 set dummy ${ac_tool_prefix}ar; ac_word=$2 3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3512 $as_echo_n "checking for $ac_word... " >&6; } 3513 if ${ac_cv_path_AR+:} false; then : 3514 $as_echo_n "(cached) " >&6 3515 else 3516 case $AR in 3517 [\\/]* | ?:[\\/]*) 3518 ac_cv_path_AR="$AR" # Let the user override the test with a path. 3519 ;; 3520 *) 3521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3522 as_dummy="$PATH:/usr/bin:/usr/local/bin" 3523 for as_dir in $as_dummy 3524 do 3525 IFS=$as_save_IFS 3526 test -z "$as_dir" && as_dir=. 3527 for ac_exec_ext in '' $ac_executable_extensions; do 3528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3529 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 3530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3531 break 2 3532 fi 3533 done 3534 done 3535 IFS=$as_save_IFS 3536 3537 ;; 3538 esac 3539 fi 3540 AR=$ac_cv_path_AR 3541 if test -n "$AR"; then 3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 3543 $as_echo "$AR" >&6; } 3544 else 3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3546 $as_echo "no" >&6; } 3547 fi 3548 3549 3550 fi 3551 if test -z "$ac_cv_path_AR"; then 3552 ac_pt_AR=$AR 3553 # Extract the first word of "ar", so it can be a program name with args. 3554 set dummy ar; ac_word=$2 3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3556 $as_echo_n "checking for $ac_word... " >&6; } 3557 if ${ac_cv_path_ac_pt_AR+:} false; then : 3558 $as_echo_n "(cached) " >&6 3559 else 3560 case $ac_pt_AR in 3561 [\\/]* | ?:[\\/]*) 3562 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path. 3563 ;; 3564 *) 3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3566 as_dummy="$PATH:/usr/bin:/usr/local/bin" 3567 for as_dir in $as_dummy 3568 do 3569 IFS=$as_save_IFS 3570 test -z "$as_dir" && as_dir=. 3571 for ac_exec_ext in '' $ac_executable_extensions; do 3572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3573 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext" 3574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3575 break 2 3576 fi 3577 done 3578 done 3579 IFS=$as_save_IFS 3580 3581 ;; 3582 esac 3583 fi 3584 ac_pt_AR=$ac_cv_path_ac_pt_AR 3585 if test -n "$ac_pt_AR"; then 3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5 3587 $as_echo "$ac_pt_AR" >&6; } 3588 else 3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3590 $as_echo "no" >&6; } 3591 fi 3592 3593 if test "x$ac_pt_AR" = x; then 3594 AR="not_found" 3595 else 3596 case $cross_compiling:$ac_tool_warned in 3597 yes:) 3598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3600 ac_tool_warned=yes ;; 3601 esac 3602 AR=$ac_pt_AR 3603 fi 3604 else 3605 AR="$ac_cv_path_AR" 3606 fi 3607 3608 if test -z "$AR" || test "$AR" = "not_found"; then 3609 as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5 3610 fi 3611 fi 3612 3613 3614 3615 3616 CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' ${srcdir}/include/curl/curlver.h` 3617 3618 xc_prog_cc_prev_IFS=$IFS 3619 xc_prog_cc_prev_LIBS=$LIBS 3620 xc_prog_cc_prev_CFLAGS=$CFLAGS 3621 xc_prog_cc_prev_LDFLAGS=$LDFLAGS 3622 xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS 3623 3624 3625 3626 xc_bad_var_libs=no 3627 for xc_word in $LIBS; do 3628 case "$xc_word" in 3629 -l* | --library=*) 3630 : 3631 ;; 3632 *) 3633 xc_bad_var_libs=yes 3634 ;; 3635 esac 3636 done 3637 if test $xc_bad_var_libs = yes; then 3638 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5 3639 $as_echo "$as_me: using LIBS: $LIBS" >&6;} 3640 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5 3641 $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;} 3642 fi 3643 3644 3645 xc_bad_var_ldflags=no 3646 for xc_word in $LDFLAGS; do 3647 case "$xc_word" in 3648 -D*) 3649 xc_bad_var_ldflags=yes 3650 ;; 3651 -U*) 3652 xc_bad_var_ldflags=yes 3653 ;; 3654 -I*) 3655 xc_bad_var_ldflags=yes 3656 ;; 3657 -l* | --library=*) 3658 xc_bad_var_ldflags=yes 3659 ;; 3660 esac 3661 done 3662 if test $xc_bad_var_ldflags = yes; then 3663 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5 3664 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;} 3665 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not" 3666 for xc_word in $LDFLAGS; do 3667 case "$xc_word" in 3668 -D*) 3669 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5 3670 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;} 3671 ;; 3672 -U*) 3673 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5 3674 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;} 3675 ;; 3676 -I*) 3677 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5 3678 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;} 3679 ;; 3680 -l* | --library=*) 3681 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5 3682 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;} 3683 ;; 3684 esac 3685 done 3686 fi 3687 3688 3689 xc_bad_var_cppflags=no 3690 for xc_word in $CPPFLAGS; do 3691 case "$xc_word" in 3692 -rpath*) 3693 xc_bad_var_cppflags=yes 3694 ;; 3695 -L* | --library-path=*) 3696 xc_bad_var_cppflags=yes 3697 ;; 3698 -l* | --library=*) 3699 xc_bad_var_cppflags=yes 3700 ;; 3701 esac 3702 done 3703 if test $xc_bad_var_cppflags = yes; then 3704 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5 3705 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;} 3706 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not" 3707 for xc_word in $CPPFLAGS; do 3708 case "$xc_word" in 3709 -rpath*) 3710 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5 3711 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;} 3712 ;; 3713 -L* | --library-path=*) 3714 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5 3715 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;} 3716 ;; 3717 -l* | --library=*) 3718 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5 3719 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;} 3720 ;; 3721 esac 3722 done 3723 fi 3724 3725 3726 xc_bad_var_cflags=no 3727 for xc_word in $CFLAGS; do 3728 case "$xc_word" in 3729 -D*) 3730 xc_bad_var_cflags=yes 3731 ;; 3732 -U*) 3733 xc_bad_var_cflags=yes 3734 ;; 3735 -I*) 3736 xc_bad_var_cflags=yes 3737 ;; 3738 -rpath*) 3739 xc_bad_var_cflags=yes 3740 ;; 3741 -L* | --library-path=*) 3742 xc_bad_var_cflags=yes 3743 ;; 3744 -l* | --library=*) 3745 xc_bad_var_cflags=yes 3746 ;; 3747 esac 3748 done 3749 if test $xc_bad_var_cflags = yes; then 3750 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5 3751 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;} 3752 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not" 3753 for xc_word in $CFLAGS; do 3754 case "$xc_word" in 3755 -D*) 3756 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5 3757 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;} 3758 ;; 3759 -U*) 3760 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5 3761 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;} 3762 ;; 3763 -I*) 3764 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5 3765 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;} 3766 ;; 3767 -rpath*) 3768 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5 3769 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;} 3770 ;; 3771 -L* | --library-path=*) 3772 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5 3773 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;} 3774 ;; 3775 -l* | --library=*) 3776 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5 3777 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;} 3778 ;; 3779 esac 3780 done 3781 fi 3782 3783 if test $xc_bad_var_libs = yes || 3784 test $xc_bad_var_cflags = yes || 3785 test $xc_bad_var_ldflags = yes || 3786 test $xc_bad_var_cppflags = yes; then 3787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5 3788 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;} 3789 fi 3790 3791 ac_aux_dir= 3792 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3793 if test -f "$ac_dir/install-sh"; then 3794 ac_aux_dir=$ac_dir 3795 ac_install_sh="$ac_aux_dir/install-sh -c" 3796 break 3797 elif test -f "$ac_dir/install.sh"; then 3798 ac_aux_dir=$ac_dir 3799 ac_install_sh="$ac_aux_dir/install.sh -c" 3800 break 3801 elif test -f "$ac_dir/shtool"; then 3802 ac_aux_dir=$ac_dir 3803 ac_install_sh="$ac_aux_dir/shtool install -c" 3804 break 3805 fi 3806 done 3807 if test -z "$ac_aux_dir"; then 3808 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3809 fi 3810 3811 # These three variables are undocumented and unsupported, 3812 # and are intended to be withdrawn in a future Autoconf release. 3813 # They can cause serious problems if a builder's source tree is in a directory 3814 # whose full name contains unusual characters. 3815 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3816 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3817 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3818 3819 3820 # Find a good install program. We prefer a C program (faster), 3821 # so one script is as good as another. But avoid the broken or 3822 # incompatible versions: 3823 # SysV /etc/install, /usr/sbin/install 3824 # SunOS /usr/etc/install 3825 # IRIX /sbin/install 3826 # AIX /bin/install 3827 # AmigaOS /C/install, which installs bootblocks on floppy discs 3828 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3829 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3830 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3831 # OS/2's system install, which has a completely different semantic 3832 # ./install, which can be erroneously created by make from ./install.sh. 3833 # Reject install programs that cannot install multiple files. 3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3835 $as_echo_n "checking for a BSD-compatible install... " >&6; } 3836 if test -z "$INSTALL"; then 3837 if ${ac_cv_path_install+:} false; then : 3838 $as_echo_n "(cached) " >&6 3839 else 3840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3841 for as_dir in $PATH 3842 do 3843 IFS=$as_save_IFS 3844 test -z "$as_dir" && as_dir=. 3845 # Account for people who put trailing slashes in PATH elements. 3846 case $as_dir/ in #(( 3847 ./ | .// | /[cC]/* | \ 3848 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3849 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3850 /usr/ucb/* ) ;; 3851 *) 3852 # OSF1 and SCO ODT 3.0 have their own names for install. 3853 # Don't use installbsd from OSF since it installs stuff as root 3854 # by default. 3855 for ac_prog in ginstall scoinst install; do 3856 for ac_exec_ext in '' $ac_executable_extensions; do 3857 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3858 if test $ac_prog = install && 3859 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3860 # AIX install. It has an incompatible calling convention. 3861 : 3862 elif test $ac_prog = install && 3863 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3864 # program-specific install script used by HP pwplus--don't use. 3865 : 3866 else 3867 rm -rf conftest.one conftest.two conftest.dir 3868 echo one > conftest.one 3869 echo two > conftest.two 3870 mkdir conftest.dir 3871 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3872 test -s conftest.one && test -s conftest.two && 3873 test -s conftest.dir/conftest.one && 3874 test -s conftest.dir/conftest.two 3875 then 3876 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3877 break 3 3878 fi 3879 fi 3880 fi 3881 done 3882 done 3883 ;; 3884 esac 3885 3886 done 3887 IFS=$as_save_IFS 3888 3889 rm -rf conftest.one conftest.two conftest.dir 3890 3891 fi 3892 if test "${ac_cv_path_install+set}" = set; then 3893 INSTALL=$ac_cv_path_install 3894 else 3895 # As a last resort, use the slow shell script. Don't cache a 3896 # value for INSTALL within a source directory, because that will 3897 # break other packages using the cache if that directory is 3898 # removed, or if the value is a relative name. 3899 INSTALL=$ac_install_sh 3900 fi 3901 fi 3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3903 $as_echo "$INSTALL" >&6; } 3904 3905 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3906 # It thinks the first close brace ends the variable substitution. 3907 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3908 3909 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3910 3911 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3912 3913 # Expand $ac_aux_dir to an absolute path. 3914 am_aux_dir=`cd "$ac_aux_dir" && pwd` 3915 3916 ac_ext=c 3917 ac_cpp='$CPP $CPPFLAGS' 3918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3920 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3921 if test -n "$ac_tool_prefix"; then 3922 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3923 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3925 $as_echo_n "checking for $ac_word... " >&6; } 3926 if ${ac_cv_prog_CC+:} false; then : 3927 $as_echo_n "(cached) " >&6 3928 else 3929 if test -n "$CC"; then 3930 ac_cv_prog_CC="$CC" # Let the user override the test. 3931 else 3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3933 for as_dir in $PATH 3934 do 3935 IFS=$as_save_IFS 3936 test -z "$as_dir" && as_dir=. 3937 for ac_exec_ext in '' $ac_executable_extensions; do 3938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3939 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3941 break 2 3942 fi 3943 done 3944 done 3945 IFS=$as_save_IFS 3946 3947 fi 3948 fi 3949 CC=$ac_cv_prog_CC 3950 if test -n "$CC"; then 3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3952 $as_echo "$CC" >&6; } 3953 else 3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3955 $as_echo "no" >&6; } 3956 fi 3957 3958 3959 fi 3960 if test -z "$ac_cv_prog_CC"; then 3961 ac_ct_CC=$CC 3962 # Extract the first word of "gcc", so it can be a program name with args. 3963 set dummy gcc; ac_word=$2 3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3965 $as_echo_n "checking for $ac_word... " >&6; } 3966 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3967 $as_echo_n "(cached) " >&6 3968 else 3969 if test -n "$ac_ct_CC"; then 3970 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3971 else 3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3973 for as_dir in $PATH 3974 do 3975 IFS=$as_save_IFS 3976 test -z "$as_dir" && as_dir=. 3977 for ac_exec_ext in '' $ac_executable_extensions; do 3978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3979 ac_cv_prog_ac_ct_CC="gcc" 3980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3981 break 2 3982 fi 3983 done 3984 done 3985 IFS=$as_save_IFS 3986 3987 fi 3988 fi 3989 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3990 if test -n "$ac_ct_CC"; then 3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3992 $as_echo "$ac_ct_CC" >&6; } 3993 else 3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3995 $as_echo "no" >&6; } 3996 fi 3997 3998 if test "x$ac_ct_CC" = x; then 3999 CC="" 4000 else 4001 case $cross_compiling:$ac_tool_warned in 4002 yes:) 4003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4005 ac_tool_warned=yes ;; 4006 esac 4007 CC=$ac_ct_CC 4008 fi 4009 else 4010 CC="$ac_cv_prog_CC" 4011 fi 4012 4013 if test -z "$CC"; then 4014 if test -n "$ac_tool_prefix"; then 4015 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4016 set dummy ${ac_tool_prefix}cc; ac_word=$2 4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4018 $as_echo_n "checking for $ac_word... " >&6; } 4019 if ${ac_cv_prog_CC+:} false; then : 4020 $as_echo_n "(cached) " >&6 4021 else 4022 if test -n "$CC"; then 4023 ac_cv_prog_CC="$CC" # Let the user override the test. 4024 else 4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4026 for as_dir in $PATH 4027 do 4028 IFS=$as_save_IFS 4029 test -z "$as_dir" && as_dir=. 4030 for ac_exec_ext in '' $ac_executable_extensions; do 4031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4032 ac_cv_prog_CC="${ac_tool_prefix}cc" 4033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4034 break 2 4035 fi 4036 done 4037 done 4038 IFS=$as_save_IFS 4039 4040 fi 4041 fi 4042 CC=$ac_cv_prog_CC 4043 if test -n "$CC"; then 4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4045 $as_echo "$CC" >&6; } 4046 else 4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4048 $as_echo "no" >&6; } 4049 fi 4050 4051 4052 fi 4053 fi 4054 if test -z "$CC"; then 4055 # Extract the first word of "cc", so it can be a program name with args. 4056 set dummy cc; ac_word=$2 4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4058 $as_echo_n "checking for $ac_word... " >&6; } 4059 if ${ac_cv_prog_CC+:} false; then : 4060 $as_echo_n "(cached) " >&6 4061 else 4062 if test -n "$CC"; then 4063 ac_cv_prog_CC="$CC" # Let the user override the test. 4064 else 4065 ac_prog_rejected=no 4066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4067 for as_dir in $PATH 4068 do 4069 IFS=$as_save_IFS 4070 test -z "$as_dir" && as_dir=. 4071 for ac_exec_ext in '' $ac_executable_extensions; do 4072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4073 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4074 ac_prog_rejected=yes 4075 continue 4076 fi 4077 ac_cv_prog_CC="cc" 4078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4079 break 2 4080 fi 4081 done 4082 done 4083 IFS=$as_save_IFS 4084 4085 if test $ac_prog_rejected = yes; then 4086 # We found a bogon in the path, so make sure we never use it. 4087 set dummy $ac_cv_prog_CC 4088 shift 4089 if test $# != 0; then 4090 # We chose a different compiler from the bogus one. 4091 # However, it has the same basename, so the bogon will be chosen 4092 # first if we set CC to just the basename; use the full file name. 4093 shift 4094 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4095 fi 4096 fi 4097 fi 4098 fi 4099 CC=$ac_cv_prog_CC 4100 if test -n "$CC"; then 4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4102 $as_echo "$CC" >&6; } 4103 else 4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4105 $as_echo "no" >&6; } 4106 fi 4107 4108 4109 fi 4110 if test -z "$CC"; then 4111 if test -n "$ac_tool_prefix"; then 4112 for ac_prog in cl.exe 4113 do 4114 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4115 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4117 $as_echo_n "checking for $ac_word... " >&6; } 4118 if ${ac_cv_prog_CC+:} false; then : 4119 $as_echo_n "(cached) " >&6 4120 else 4121 if test -n "$CC"; then 4122 ac_cv_prog_CC="$CC" # Let the user override the test. 4123 else 4124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4125 for as_dir in $PATH 4126 do 4127 IFS=$as_save_IFS 4128 test -z "$as_dir" && as_dir=. 4129 for ac_exec_ext in '' $ac_executable_extensions; do 4130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4131 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4133 break 2 4134 fi 4135 done 4136 done 4137 IFS=$as_save_IFS 4138 4139 fi 4140 fi 4141 CC=$ac_cv_prog_CC 4142 if test -n "$CC"; then 4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4144 $as_echo "$CC" >&6; } 4145 else 4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4147 $as_echo "no" >&6; } 4148 fi 4149 4150 4151 test -n "$CC" && break 4152 done 4153 fi 4154 if test -z "$CC"; then 4155 ac_ct_CC=$CC 4156 for ac_prog in cl.exe 4157 do 4158 # Extract the first word of "$ac_prog", so it can be a program name with args. 4159 set dummy $ac_prog; ac_word=$2 4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4161 $as_echo_n "checking for $ac_word... " >&6; } 4162 if ${ac_cv_prog_ac_ct_CC+:} false; then : 4163 $as_echo_n "(cached) " >&6 4164 else 4165 if test -n "$ac_ct_CC"; then 4166 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4167 else 4168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4169 for as_dir in $PATH 4170 do 4171 IFS=$as_save_IFS 4172 test -z "$as_dir" && as_dir=. 4173 for ac_exec_ext in '' $ac_executable_extensions; do 4174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4175 ac_cv_prog_ac_ct_CC="$ac_prog" 4176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4177 break 2 4178 fi 4179 done 4180 done 4181 IFS=$as_save_IFS 4182 4183 fi 4184 fi 4185 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4186 if test -n "$ac_ct_CC"; then 4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4188 $as_echo "$ac_ct_CC" >&6; } 4189 else 4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4191 $as_echo "no" >&6; } 4192 fi 4193 4194 4195 test -n "$ac_ct_CC" && break 4196 done 4197 4198 if test "x$ac_ct_CC" = x; then 4199 CC="" 4200 else 4201 case $cross_compiling:$ac_tool_warned in 4202 yes:) 4203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4205 ac_tool_warned=yes ;; 4206 esac 4207 CC=$ac_ct_CC 4208 fi 4209 fi 4210 4211 fi 4212 4213 4214 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4216 as_fn_error $? "no acceptable C compiler found in \$PATH 4217 See \`config.log' for more details" "$LINENO" 5; } 4218 4219 # Provide some information about the compiler. 4220 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4221 set X $ac_compile 4222 ac_compiler=$2 4223 for ac_option in --version -v -V -qversion; do 4224 { { ac_try="$ac_compiler $ac_option >&5" 4225 case "(($ac_try" in 4226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4227 *) ac_try_echo=$ac_try;; 4228 esac 4229 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4230 $as_echo "$ac_try_echo"; } >&5 4231 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4232 ac_status=$? 4233 if test -s conftest.err; then 4234 sed '10a\ 4235 ... rest of stderr output deleted ... 4236 10q' conftest.err >conftest.er1 4237 cat conftest.er1 >&5 4238 fi 4239 rm -f conftest.er1 conftest.err 4240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4241 test $ac_status = 0; } 4242 done 4243 4244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4245 /* end confdefs.h. */ 4246 4247 int main (void) 4248 { 4249 4250 ; 4251 return 0; 4252 } 4253 _ACEOF 4254 ac_clean_files_save=$ac_clean_files 4255 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4256 # Try to create an executable without -o first, disregard a.out. 4257 # It will help us diagnose broken compilers, and finding out an intuition 4258 # of exeext. 4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4260 $as_echo_n "checking whether the C compiler works... " >&6; } 4261 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4262 4263 # The possible output files: 4264 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4265 4266 ac_rmfiles= 4267 for ac_file in $ac_files 4268 do 4269 case $ac_file in 4270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4271 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4272 esac 4273 done 4274 rm -f $ac_rmfiles 4275 4276 if { { ac_try="$ac_link_default" 4277 case "(($ac_try" in 4278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4279 *) ac_try_echo=$ac_try;; 4280 esac 4281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4282 $as_echo "$ac_try_echo"; } >&5 4283 (eval "$ac_link_default") 2>&5 4284 ac_status=$? 4285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4286 test $ac_status = 0; }; then : 4287 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4288 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4289 # in a Makefile. We should not override ac_cv_exeext if it was cached, 4290 # so that the user can short-circuit this test for compilers unknown to 4291 # Autoconf. 4292 for ac_file in $ac_files '' 4293 do 4294 test -f "$ac_file" || continue 4295 case $ac_file in 4296 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4297 ;; 4298 [ab].out ) 4299 # We found the default executable, but exeext='' is most 4300 # certainly right. 4301 break;; 4302 *.* ) 4303 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4304 then :; else 4305 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4306 fi 4307 # We set ac_cv_exeext here because the later test for it is not 4308 # safe: cross compilers may not add the suffix if given an `-o' 4309 # argument, so we may need to know it at that point already. 4310 # Even if this section looks crufty: it has the advantage of 4311 # actually working. 4312 break;; 4313 * ) 4314 break;; 4315 esac 4316 done 4317 test "$ac_cv_exeext" = no && ac_cv_exeext= 4318 4319 else 4320 ac_file='' 4321 fi 4322 if test -z "$ac_file"; then : 4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4324 $as_echo "no" >&6; } 4325 $as_echo "$as_me: failed program was:" >&5 4326 sed 's/^/| /' conftest.$ac_ext >&5 4327 4328 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4330 as_fn_error 77 "C compiler cannot create executables 4331 See \`config.log' for more details" "$LINENO" 5; } 4332 else 4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4334 $as_echo "yes" >&6; } 4335 fi 4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4337 $as_echo_n "checking for C compiler default output file name... " >&6; } 4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4339 $as_echo "$ac_file" >&6; } 4340 ac_exeext=$ac_cv_exeext 4341 4342 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4343 ac_clean_files=$ac_clean_files_save 4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4345 $as_echo_n "checking for suffix of executables... " >&6; } 4346 if { { ac_try="$ac_link" 4347 case "(($ac_try" in 4348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4349 *) ac_try_echo=$ac_try;; 4350 esac 4351 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4352 $as_echo "$ac_try_echo"; } >&5 4353 (eval "$ac_link") 2>&5 4354 ac_status=$? 4355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4356 test $ac_status = 0; }; then : 4357 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4358 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4359 # work properly (i.e., refer to `conftest.exe'), while it won't with 4360 # `rm'. 4361 for ac_file in conftest.exe conftest conftest.*; do 4362 test -f "$ac_file" || continue 4363 case $ac_file in 4364 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4365 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4366 break;; 4367 * ) break;; 4368 esac 4369 done 4370 else 4371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4373 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4374 See \`config.log' for more details" "$LINENO" 5; } 4375 fi 4376 rm -f conftest conftest$ac_cv_exeext 4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4378 $as_echo "$ac_cv_exeext" >&6; } 4379 4380 rm -f conftest.$ac_ext 4381 EXEEXT=$ac_cv_exeext 4382 ac_exeext=$EXEEXT 4383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4384 /* end confdefs.h. */ 4385 #include <stdio.h> 4386 int main (void) 4387 { 4388 FILE *f = fopen ("conftest.out", "w"); 4389 return ferror (f) || fclose (f) != 0; 4390 4391 ; 4392 return 0; 4393 } 4394 _ACEOF 4395 ac_clean_files="$ac_clean_files conftest.out" 4396 # Check that the compiler produces executables we can run. If not, either 4397 # the compiler is broken, or we cross compile. 4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4399 $as_echo_n "checking whether we are cross compiling... " >&6; } 4400 if test "$cross_compiling" != yes; then 4401 { { ac_try="$ac_link" 4402 case "(($ac_try" in 4403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4404 *) ac_try_echo=$ac_try;; 4405 esac 4406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4407 $as_echo "$ac_try_echo"; } >&5 4408 (eval "$ac_link") 2>&5 4409 ac_status=$? 4410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4411 test $ac_status = 0; } 4412 if { ac_try='./conftest$ac_cv_exeext' 4413 { { case "(($ac_try" in 4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4415 *) ac_try_echo=$ac_try;; 4416 esac 4417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4418 $as_echo "$ac_try_echo"; } >&5 4419 (eval "$ac_try") 2>&5 4420 ac_status=$? 4421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4422 test $ac_status = 0; }; }; then 4423 cross_compiling=no 4424 else 4425 if test "$cross_compiling" = maybe; then 4426 cross_compiling=yes 4427 else 4428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4430 as_fn_error $? "cannot run C compiled programs. 4431 If you meant to cross compile, use \`--host'. 4432 See \`config.log' for more details" "$LINENO" 5; } 4433 fi 4434 fi 4435 fi 4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4437 $as_echo "$cross_compiling" >&6; } 4438 4439 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4440 ac_clean_files=$ac_clean_files_save 4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4442 $as_echo_n "checking for suffix of object files... " >&6; } 4443 if ${ac_cv_objext+:} false; then : 4444 $as_echo_n "(cached) " >&6 4445 else 4446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4447 /* end confdefs.h. */ 4448 4449 int main (void) 4450 { 4451 4452 ; 4453 return 0; 4454 } 4455 _ACEOF 4456 rm -f conftest.o conftest.obj 4457 if { { ac_try="$ac_compile" 4458 case "(($ac_try" in 4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4460 *) ac_try_echo=$ac_try;; 4461 esac 4462 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4463 $as_echo "$ac_try_echo"; } >&5 4464 (eval "$ac_compile") 2>&5 4465 ac_status=$? 4466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4467 test $ac_status = 0; }; then : 4468 for ac_file in conftest.o conftest.obj conftest.*; do 4469 test -f "$ac_file" || continue; 4470 case $ac_file in 4471 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4472 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4473 break;; 4474 esac 4475 done 4476 else 4477 $as_echo "$as_me: failed program was:" >&5 4478 sed 's/^/| /' conftest.$ac_ext >&5 4479 4480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4482 as_fn_error $? "cannot compute suffix of object files: cannot compile 4483 See \`config.log' for more details" "$LINENO" 5; } 4484 fi 4485 rm -f conftest.$ac_cv_objext conftest.$ac_ext 4486 fi 4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4488 $as_echo "$ac_cv_objext" >&6; } 4489 OBJEXT=$ac_cv_objext 4490 ac_objext=$OBJEXT 4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4492 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4493 if ${ac_cv_c_compiler_gnu+:} false; then : 4494 $as_echo_n "(cached) " >&6 4495 else 4496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4497 /* end confdefs.h. */ 4498 4499 int main (void) 4500 { 4501 #ifndef __GNUC__ 4502 choke me 4503 #endif 4504 4505 ; 4506 return 0; 4507 } 4508 _ACEOF 4509 if ac_fn_c_try_compile "$LINENO"; then : 4510 ac_compiler_gnu=yes 4511 else 4512 ac_compiler_gnu=no 4513 fi 4514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4515 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4516 4517 fi 4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4519 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 4520 if test $ac_compiler_gnu = yes; then 4521 GCC=yes 4522 else 4523 GCC= 4524 fi 4525 ac_test_CFLAGS=${CFLAGS+set} 4526 ac_save_CFLAGS=$CFLAGS 4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4528 $as_echo_n "checking whether $CC accepts -g... " >&6; } 4529 if ${ac_cv_prog_cc_g+:} false; then : 4530 $as_echo_n "(cached) " >&6 4531 else 4532 ac_save_c_werror_flag=$ac_c_werror_flag 4533 ac_c_werror_flag=yes 4534 ac_cv_prog_cc_g=no 4535 CFLAGS="-g" 4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4537 /* end confdefs.h. */ 4538 4539 int main (void) 4540 { 4541 4542 ; 4543 return 0; 4544 } 4545 _ACEOF 4546 if ac_fn_c_try_compile "$LINENO"; then : 4547 ac_cv_prog_cc_g=yes 4548 else 4549 CFLAGS="" 4550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4551 /* end confdefs.h. */ 4552 4553 int main (void) 4554 { 4555 4556 ; 4557 return 0; 4558 } 4559 _ACEOF 4560 if ac_fn_c_try_compile "$LINENO"; then : 4561 4562 else 4563 ac_c_werror_flag=$ac_save_c_werror_flag 4564 CFLAGS="-g" 4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4566 /* end confdefs.h. */ 4567 4568 int main (void) 4569 { 4570 4571 ; 4572 return 0; 4573 } 4574 _ACEOF 4575 if ac_fn_c_try_compile "$LINENO"; then : 4576 ac_cv_prog_cc_g=yes 4577 fi 4578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4579 fi 4580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4581 fi 4582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4583 ac_c_werror_flag=$ac_save_c_werror_flag 4584 fi 4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4586 $as_echo "$ac_cv_prog_cc_g" >&6; } 4587 if test "$ac_test_CFLAGS" = set; then 4588 CFLAGS=$ac_save_CFLAGS 4589 elif test $ac_cv_prog_cc_g = yes; then 4590 if test "$GCC" = yes; then 4591 CFLAGS="-g -O2" 4592 else 4593 CFLAGS="-g" 4594 fi 4595 else 4596 if test "$GCC" = yes; then 4597 CFLAGS="-O2" 4598 else 4599 CFLAGS= 4600 fi 4601 fi 4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4603 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4604 if ${ac_cv_prog_cc_c89+:} false; then : 4605 $as_echo_n "(cached) " >&6 4606 else 4607 ac_cv_prog_cc_c89=no 4608 ac_save_CC=$CC 4609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4610 /* end confdefs.h. */ 4611 #include <stdarg.h> 4612 #include <stdio.h> 4613 struct stat; 4614 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4615 struct buf { int x; }; 4616 FILE * (*rcsopen) (struct buf *, struct stat *, int); 4617 static char *e (p, i) 4618 char **p; 4619 int i; 4620 { 4621 return p[i]; 4622 } 4623 static char *f (char * (*g) (char **, int), char **p, ...) 4624 { 4625 char *s; 4626 va_list v; 4627 va_start (v,p); 4628 s = g (p, va_arg (v,int)); 4629 va_end (v); 4630 return s; 4631 } 4632 4633 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4634 function prototypes and stuff, but not '\xHH' hex character constants. 4635 These don't provoke an error unfortunately, instead are silently treated 4636 as 'x'. The following induces an error, until -std is added to get 4637 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4638 array size at least. It's necessary to write '\x00'==0 to get something 4639 that's true only with -std. */ 4640 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4641 4642 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4643 inside strings and character constants. */ 4644 #define FOO(x) 'x' 4645 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4646 4647 int test (int i, double x); 4648 struct s1 {int (*f) (int a);}; 4649 struct s2 {int (*f) (double a);}; 4650 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4651 int argc; 4652 char **argv; 4653 int main (void) 4654 { 4655 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4656 ; 4657 return 0; 4658 } 4659 _ACEOF 4660 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4661 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4662 do 4663 CC="$ac_save_CC $ac_arg" 4664 if ac_fn_c_try_compile "$LINENO"; then : 4665 ac_cv_prog_cc_c89=$ac_arg 4666 fi 4667 rm -f core conftest.err conftest.$ac_objext 4668 test "x$ac_cv_prog_cc_c89" != "xno" && break 4669 done 4670 rm -f conftest.$ac_ext 4671 CC=$ac_save_CC 4672 4673 fi 4674 # AC_CACHE_VAL 4675 case "x$ac_cv_prog_cc_c89" in 4676 x) 4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4678 $as_echo "none needed" >&6; } ;; 4679 xno) 4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4681 $as_echo "unsupported" >&6; } ;; 4682 *) 4683 CC="$CC $ac_cv_prog_cc_c89" 4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4685 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4686 esac 4687 if test "x$ac_cv_prog_cc_c89" != xno; then : 4688 4689 fi 4690 4691 ac_ext=c 4692 ac_cpp='$CPP $CPPFLAGS' 4693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4695 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4696 4697 ac_ext=c 4698 ac_cpp='$CPP $CPPFLAGS' 4699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4701 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4703 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4704 if ${am_cv_prog_cc_c_o+:} false; then : 4705 $as_echo_n "(cached) " >&6 4706 else 4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4708 /* end confdefs.h. */ 4709 4710 int main (void) 4711 { 4712 4713 ; 4714 return 0; 4715 } 4716 _ACEOF 4717 # Make sure it works both with $CC and with simple cc. 4718 # Following AC_PROG_CC_C_O, we do the test twice because some 4719 # compilers refuse to overwrite an existing .o file with -o, 4720 # though they will create one. 4721 am_cv_prog_cc_c_o=yes 4722 for am_i in 1 2; do 4723 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4724 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4725 ac_status=$? 4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4727 (exit $ac_status); } \ 4728 && test -f conftest2.$ac_objext; then 4729 : OK 4730 else 4731 am_cv_prog_cc_c_o=no 4732 break 4733 fi 4734 done 4735 rm -f core conftest* 4736 unset am_i 4737 fi 4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4739 $as_echo "$am_cv_prog_cc_c_o" >&6; } 4740 if test "$am_cv_prog_cc_c_o" != yes; then 4741 # Losing compiler, so override with the script. 4742 # FIXME: It is wrong to rewrite CC. 4743 # But if we don't then we get into trouble of one sort or another. 4744 # A longer-term fix would be to have automake use am__CC in this case, 4745 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4746 CC="$am_aux_dir/compile $CC" 4747 fi 4748 ac_ext=c 4749 ac_cpp='$CPP $CPPFLAGS' 4750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4752 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4753 4754 4755 4756 ac_ext=c 4757 ac_cpp='$CPP $CPPFLAGS' 4758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4760 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4762 $as_echo_n "checking how to run the C preprocessor... " >&6; } 4763 # On Suns, sometimes $CPP names a directory. 4764 if test -n "$CPP" && test -d "$CPP"; then 4765 CPP= 4766 fi 4767 if test -z "$CPP"; then 4768 if ${ac_cv_prog_CPP+:} false; then : 4769 $as_echo_n "(cached) " >&6 4770 else 4771 # Double quotes because CPP needs to be expanded 4772 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4773 do 4774 ac_preproc_ok=false 4775 for ac_c_preproc_warn_flag in '' yes 4776 do 4777 # Use a header file that comes with gcc, so configuring glibc 4778 # with a fresh cross-compiler works. 4779 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4780 # <limits.h> exists even on freestanding compilers. 4781 # On the NeXT, cc -E runs the code through the compiler's parser, 4782 # not just through cpp. "Syntax error" is here to catch this case. 4783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4784 /* end confdefs.h. */ 4785 #ifdef __STDC__ 4786 # include <limits.h> 4787 #else 4788 # include <assert.h> 4789 #endif 4790 Syntax error 4791 _ACEOF 4792 if ac_fn_c_try_cpp "$LINENO"; then : 4793 4794 else 4795 # Broken: fails on valid input. 4796 continue 4797 fi 4798 rm -f conftest.err conftest.i conftest.$ac_ext 4799 4800 # OK, works on sane cases. Now check whether nonexistent headers 4801 # can be detected and how. 4802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4803 /* end confdefs.h. */ 4804 #include <ac_nonexistent.h> 4805 _ACEOF 4806 if ac_fn_c_try_cpp "$LINENO"; then : 4807 # Broken: success on invalid input. 4808 continue 4809 else 4810 # Passes both tests. 4811 ac_preproc_ok=: 4812 break 4813 fi 4814 rm -f conftest.err conftest.i conftest.$ac_ext 4815 4816 done 4817 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4818 rm -f conftest.i conftest.err conftest.$ac_ext 4819 if $ac_preproc_ok; then : 4820 break 4821 fi 4822 4823 done 4824 ac_cv_prog_CPP=$CPP 4825 4826 fi 4827 CPP=$ac_cv_prog_CPP 4828 else 4829 ac_cv_prog_CPP=$CPP 4830 fi 4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4832 $as_echo "$CPP" >&6; } 4833 ac_preproc_ok=false 4834 for ac_c_preproc_warn_flag in '' yes 4835 do 4836 # Use a header file that comes with gcc, so configuring glibc 4837 # with a fresh cross-compiler works. 4838 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4839 # <limits.h> exists even on freestanding compilers. 4840 # On the NeXT, cc -E runs the code through the compiler's parser, 4841 # not just through cpp. "Syntax error" is here to catch this case. 4842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4843 /* end confdefs.h. */ 4844 #ifdef __STDC__ 4845 # include <limits.h> 4846 #else 4847 # include <assert.h> 4848 #endif 4849 Syntax error 4850 _ACEOF 4851 if ac_fn_c_try_cpp "$LINENO"; then : 4852 4853 else 4854 # Broken: fails on valid input. 4855 continue 4856 fi 4857 rm -f conftest.err conftest.i conftest.$ac_ext 4858 4859 # OK, works on sane cases. Now check whether nonexistent headers 4860 # can be detected and how. 4861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4862 /* end confdefs.h. */ 4863 #include <ac_nonexistent.h> 4864 _ACEOF 4865 if ac_fn_c_try_cpp "$LINENO"; then : 4866 # Broken: success on invalid input. 4867 continue 4868 else 4869 # Passes both tests. 4870 ac_preproc_ok=: 4871 break 4872 fi 4873 rm -f conftest.err conftest.i conftest.$ac_ext 4874 4875 done 4876 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4877 rm -f conftest.i conftest.err conftest.$ac_ext 4878 if $ac_preproc_ok; then : 4879 4880 else 4881 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4882 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4883 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4884 See \`config.log' for more details" "$LINENO" 5; } 4885 fi 4886 4887 ac_ext=c 4888 ac_cpp='$CPP $CPPFLAGS' 4889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4891 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4892 4893 4894 IFS=$xc_prog_cc_prev_IFS 4895 LIBS=$xc_prog_cc_prev_LIBS 4896 CFLAGS=$xc_prog_cc_prev_CFLAGS 4897 LDFLAGS=$xc_prog_cc_prev_LDFLAGS 4898 CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS 4899 4900 4901 4902 4903 4904 4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4906 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 4907 if ${ac_cv_path_SED+:} false; then : 4908 $as_echo_n "(cached) " >&6 4909 else 4910 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4911 for ac_i in 1 2 3 4 5 6 7; do 4912 ac_script="$ac_script$as_nl$ac_script" 4913 done 4914 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4915 { ac_script=; unset ac_script;} 4916 if test -z "$SED"; then 4917 ac_path_SED_found=false 4918 # Loop through the user's path and test for each of PROGNAME-LIST 4919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4920 for as_dir in $PATH 4921 do 4922 IFS=$as_save_IFS 4923 test -z "$as_dir" && as_dir=. 4924 for ac_prog in sed gsed; do 4925 for ac_exec_ext in '' $ac_executable_extensions; do 4926 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4927 as_fn_executable_p "$ac_path_SED" || continue 4928 # Check for GNU ac_path_SED and select it if it is found. 4929 # Check for GNU $ac_path_SED 4930 case `"$ac_path_SED" --version 2>&1` in 4931 *GNU*) 4932 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4933 *) 4934 ac_count=0 4935 $as_echo_n 0123456789 >"conftest.in" 4936 while : 4937 do 4938 cat "conftest.in" "conftest.in" >"conftest.tmp" 4939 mv "conftest.tmp" "conftest.in" 4940 cp "conftest.in" "conftest.nl" 4941 $as_echo '' >> "conftest.nl" 4942 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4943 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4944 as_fn_arith $ac_count + 1 && ac_count=$as_val 4945 if test $ac_count -gt ${ac_path_SED_max-0}; then 4946 # Best one so far, save it but keep looking for a better one 4947 ac_cv_path_SED="$ac_path_SED" 4948 ac_path_SED_max=$ac_count 4949 fi 4950 # 10*(2^10) chars as input seems more than enough 4951 test $ac_count -gt 10 && break 4952 done 4953 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4954 esac 4955 4956 $ac_path_SED_found && break 3 4957 done 4958 done 4959 done 4960 IFS=$as_save_IFS 4961 if test -z "$ac_cv_path_SED"; then 4962 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4963 fi 4964 else 4965 ac_cv_path_SED=$SED 4966 fi 4967 4968 fi 4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4970 $as_echo "$ac_cv_path_SED" >&6; } 4971 SED="$ac_cv_path_SED" 4972 rm -f conftest.sed 4973 4974 4975 4976 4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for code coverage support" >&5 4978 $as_echo_n "checking for code coverage support... " >&6; } 4979 coverage="no" 4980 curl_coverage_msg="disabled" 4981 4982 # Check whether --enable-code-coverage was given. 4983 if test "${enable_code_coverage+set}" = set; then : 4984 enableval=$enable_code_coverage; coverage="yes" 4985 else 4986 coverage="no" 4987 fi 4988 4989 4990 if test "$GCC" != "yes" ; then : 4991 coverage="no" 4992 fi 4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $coverage" >&5 4994 $as_echo "$coverage" >&6; } 4995 4996 if test "x$coverage" = "xyes"; then 4997 curl_coverage_msg="enabled" 4998 4999 if test -n "$ac_tool_prefix"; then 5000 # Extract the first word of "${ac_tool_prefix}gcov", so it can be a program name with args. 5001 set dummy ${ac_tool_prefix}gcov; ac_word=$2 5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5003 $as_echo_n "checking for $ac_word... " >&6; } 5004 if ${ac_cv_prog_GCOV+:} false; then : 5005 $as_echo_n "(cached) " >&6 5006 else 5007 if test -n "$GCOV"; then 5008 ac_cv_prog_GCOV="$GCOV" # Let the user override the test. 5009 else 5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5011 for as_dir in $PATH 5012 do 5013 IFS=$as_save_IFS 5014 test -z "$as_dir" && as_dir=. 5015 for ac_exec_ext in '' $ac_executable_extensions; do 5016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5017 ac_cv_prog_GCOV="${ac_tool_prefix}gcov" 5018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5019 break 2 5020 fi 5021 done 5022 done 5023 IFS=$as_save_IFS 5024 5025 fi 5026 fi 5027 GCOV=$ac_cv_prog_GCOV 5028 if test -n "$GCOV"; then 5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5 5030 $as_echo "$GCOV" >&6; } 5031 else 5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5033 $as_echo "no" >&6; } 5034 fi 5035 5036 5037 fi 5038 if test -z "$ac_cv_prog_GCOV"; then 5039 ac_ct_GCOV=$GCOV 5040 # Extract the first word of "gcov", so it can be a program name with args. 5041 set dummy gcov; ac_word=$2 5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5043 $as_echo_n "checking for $ac_word... " >&6; } 5044 if ${ac_cv_prog_ac_ct_GCOV+:} false; then : 5045 $as_echo_n "(cached) " >&6 5046 else 5047 if test -n "$ac_ct_GCOV"; then 5048 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test. 5049 else 5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5051 for as_dir in $PATH 5052 do 5053 IFS=$as_save_IFS 5054 test -z "$as_dir" && as_dir=. 5055 for ac_exec_ext in '' $ac_executable_extensions; do 5056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5057 ac_cv_prog_ac_ct_GCOV="gcov" 5058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5059 break 2 5060 fi 5061 done 5062 done 5063 IFS=$as_save_IFS 5064 5065 fi 5066 fi 5067 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV 5068 if test -n "$ac_ct_GCOV"; then 5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5 5070 $as_echo "$ac_ct_GCOV" >&6; } 5071 else 5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5073 $as_echo "no" >&6; } 5074 fi 5075 5076 if test "x$ac_ct_GCOV" = x; then 5077 GCOV="gcov" 5078 else 5079 case $cross_compiling:$ac_tool_warned in 5080 yes:) 5081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5083 ac_tool_warned=yes ;; 5084 esac 5085 GCOV=$ac_ct_GCOV 5086 fi 5087 else 5088 GCOV="$ac_cv_prog_GCOV" 5089 fi 5090 5091 if test -z "$GCOV"; then 5092 as_fn_error $? "needs gcov for code coverage" "$LINENO" 5 5093 fi 5094 # Extract the first word of "lcov", so it can be a program name with args. 5095 set dummy lcov; ac_word=$2 5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5097 $as_echo_n "checking for $ac_word... " >&6; } 5098 if ${ac_cv_prog_LCOV+:} false; then : 5099 $as_echo_n "(cached) " >&6 5100 else 5101 if test -n "$LCOV"; then 5102 ac_cv_prog_LCOV="$LCOV" # Let the user override the test. 5103 else 5104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5105 for as_dir in $PATH 5106 do 5107 IFS=$as_save_IFS 5108 test -z "$as_dir" && as_dir=. 5109 for ac_exec_ext in '' $ac_executable_extensions; do 5110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5111 ac_cv_prog_LCOV="lcov" 5112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5113 break 2 5114 fi 5115 done 5116 done 5117 IFS=$as_save_IFS 5118 5119 fi 5120 fi 5121 LCOV=$ac_cv_prog_LCOV 5122 if test -n "$LCOV"; then 5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5 5124 $as_echo "$LCOV" >&6; } 5125 else 5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5127 $as_echo "no" >&6; } 5128 fi 5129 5130 5131 if test -z "$LCOV"; then 5132 as_fn_error $? "needs lcov for code coverage" "$LINENO" 5 5133 fi 5134 5135 CPPFLAGS="$CPPFLAGS -DNDEBUG" 5136 CFLAGS="$CLAGS -O0 -g -fprofile-arcs -ftest-coverage" 5137 LIBS="$LIBS -lgcov" 5138 fi 5139 5140 5141 am__api_version='1.15' 5142 5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 5144 $as_echo_n "checking whether build environment is sane... " >&6; } 5145 # Reject unsafe characters in $srcdir or the absolute working directory 5146 # name. Accept space and tab only in the latter. 5147 am_lf=' 5148 ' 5149 case `pwd` in 5150 *[\\\"\#\$\&\'\`$am_lf]*) 5151 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 5152 esac 5153 case $srcdir in 5154 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 5155 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 5156 esac 5157 5158 # Do 'set' in a subshell so we don't clobber the current shell's 5159 # arguments. Must try -L first in case configure is actually a 5160 # symlink; some systems play weird games with the mod time of symlinks 5161 # (eg FreeBSD returns the mod time of the symlink's containing 5162 # directory). 5163 if ( 5164 am_has_slept=no 5165 for am_try in 1 2; do 5166 echo "timestamp, slept: $am_has_slept" > conftest.file 5167 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 5168 if test "$*" = "X"; then 5169 # -L didn't work. 5170 set X `ls -t "$srcdir/configure" conftest.file` 5171 fi 5172 if test "$*" != "X $srcdir/configure conftest.file" \ 5173 && test "$*" != "X conftest.file $srcdir/configure"; then 5174 5175 # If neither matched, then we have a broken ls. This can happen 5176 # if, for instance, CONFIG_SHELL is bash and it inherits a 5177 # broken ls alias from the environment. This has actually 5178 # happened. Such a system could not be considered "sane". 5179 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 5180 alias in your environment" "$LINENO" 5 5181 fi 5182 if test "$2" = conftest.file || test $am_try -eq 2; then 5183 break 5184 fi 5185 # Just in case. 5186 sleep 1 5187 am_has_slept=yes 5188 done 5189 test "$2" = conftest.file 5190 ) 5191 then 5192 # Ok. 5193 : 5194 else 5195 as_fn_error $? "newly created file is older than distributed files! 5196 Check your system clock" "$LINENO" 5 5197 fi 5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5199 $as_echo "yes" >&6; } 5200 # If we didn't sleep, we still need to ensure time stamps of config.status and 5201 # generated files are strictly newer. 5202 am_sleep_pid= 5203 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 5204 ( sleep 1 ) & 5205 am_sleep_pid=$! 5206 fi 5207 5208 rm -f conftest.file 5209 5210 test "$program_prefix" != NONE && 5211 program_transform_name="s&^&$program_prefix&;$program_transform_name" 5212 # Use a double $ so make ignores it. 5213 test "$program_suffix" != NONE && 5214 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 5215 # Double any \ or $. 5216 # By default was `s,x,x', remove it if useless. 5217 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 5218 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 5219 5220 if test x"${MISSING+set}" != xset; then 5221 case $am_aux_dir in 5222 *\ * | *\ *) 5223 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 5224 *) 5225 MISSING="\${SHELL} $am_aux_dir/missing" ;; 5226 esac 5227 fi 5228 # Use eval to expand $SHELL 5229 if eval "$MISSING --is-lightweight"; then 5230 am_missing_run="$MISSING " 5231 else 5232 am_missing_run= 5233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 5234 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 5235 fi 5236 5237 if test x"${install_sh+set}" != xset; then 5238 case $am_aux_dir in 5239 *\ * | *\ *) 5240 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 5241 *) 5242 install_sh="\${SHELL} $am_aux_dir/install-sh" 5243 esac 5244 fi 5245 5246 # Installed binaries are usually stripped using 'strip' when the user 5247 # run "make install-strip". However 'strip' might not be the right 5248 # tool to use in cross-compilation environments, therefore Automake 5249 # will honor the 'STRIP' environment variable to overrule this program. 5250 if test "$cross_compiling" != no; then 5251 if test -n "$ac_tool_prefix"; then 5252 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5253 set dummy ${ac_tool_prefix}strip; ac_word=$2 5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5255 $as_echo_n "checking for $ac_word... " >&6; } 5256 if ${ac_cv_prog_STRIP+:} false; then : 5257 $as_echo_n "(cached) " >&6 5258 else 5259 if test -n "$STRIP"; then 5260 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5261 else 5262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5263 for as_dir in $PATH 5264 do 5265 IFS=$as_save_IFS 5266 test -z "$as_dir" && as_dir=. 5267 for ac_exec_ext in '' $ac_executable_extensions; do 5268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5269 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5271 break 2 5272 fi 5273 done 5274 done 5275 IFS=$as_save_IFS 5276 5277 fi 5278 fi 5279 STRIP=$ac_cv_prog_STRIP 5280 if test -n "$STRIP"; then 5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5282 $as_echo "$STRIP" >&6; } 5283 else 5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5285 $as_echo "no" >&6; } 5286 fi 5287 5288 5289 fi 5290 if test -z "$ac_cv_prog_STRIP"; then 5291 ac_ct_STRIP=$STRIP 5292 # Extract the first word of "strip", so it can be a program name with args. 5293 set dummy strip; ac_word=$2 5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5295 $as_echo_n "checking for $ac_word... " >&6; } 5296 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5297 $as_echo_n "(cached) " >&6 5298 else 5299 if test -n "$ac_ct_STRIP"; then 5300 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5301 else 5302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5303 for as_dir in $PATH 5304 do 5305 IFS=$as_save_IFS 5306 test -z "$as_dir" && as_dir=. 5307 for ac_exec_ext in '' $ac_executable_extensions; do 5308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5309 ac_cv_prog_ac_ct_STRIP="strip" 5310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5311 break 2 5312 fi 5313 done 5314 done 5315 IFS=$as_save_IFS 5316 5317 fi 5318 fi 5319 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5320 if test -n "$ac_ct_STRIP"; then 5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5322 $as_echo "$ac_ct_STRIP" >&6; } 5323 else 5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5325 $as_echo "no" >&6; } 5326 fi 5327 5328 if test "x$ac_ct_STRIP" = x; then 5329 STRIP=":" 5330 else 5331 case $cross_compiling:$ac_tool_warned in 5332 yes:) 5333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5335 ac_tool_warned=yes ;; 5336 esac 5337 STRIP=$ac_ct_STRIP 5338 fi 5339 else 5340 STRIP="$ac_cv_prog_STRIP" 5341 fi 5342 5343 fi 5344 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 5345 5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 5347 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 5348 if test -z "$MKDIR_P"; then 5349 if ${ac_cv_path_mkdir+:} false; then : 5350 $as_echo_n "(cached) " >&6 5351 else 5352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5353 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 5354 do 5355 IFS=$as_save_IFS 5356 test -z "$as_dir" && as_dir=. 5357 for ac_prog in mkdir gmkdir; do 5358 for ac_exec_ext in '' $ac_executable_extensions; do 5359 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 5360 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 5361 'mkdir (GNU coreutils) '* | \ 5362 'mkdir (coreutils) '* | \ 5363 'mkdir (fileutils) '4.1*) 5364 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 5365 break 3;; 5366 esac 5367 done 5368 done 5369 done 5370 IFS=$as_save_IFS 5371 5372 fi 5373 5374 test -d ./--version && rmdir ./--version 5375 if test "${ac_cv_path_mkdir+set}" = set; then 5376 MKDIR_P="$ac_cv_path_mkdir -p" 5377 else 5378 # As a last resort, use the slow shell script. Don't cache a 5379 # value for MKDIR_P within a source directory, because that will 5380 # break other packages using the cache if that directory is 5381 # removed, or if the value is a relative name. 5382 MKDIR_P="$ac_install_sh -d" 5383 fi 5384 fi 5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 5386 $as_echo "$MKDIR_P" >&6; } 5387 5388 for ac_prog in gawk mawk nawk awk 5389 do 5390 # Extract the first word of "$ac_prog", so it can be a program name with args. 5391 set dummy $ac_prog; ac_word=$2 5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5393 $as_echo_n "checking for $ac_word... " >&6; } 5394 if ${ac_cv_prog_AWK+:} false; then : 5395 $as_echo_n "(cached) " >&6 5396 else 5397 if test -n "$AWK"; then 5398 ac_cv_prog_AWK="$AWK" # Let the user override the test. 5399 else 5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5401 for as_dir in $PATH 5402 do 5403 IFS=$as_save_IFS 5404 test -z "$as_dir" && as_dir=. 5405 for ac_exec_ext in '' $ac_executable_extensions; do 5406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5407 ac_cv_prog_AWK="$ac_prog" 5408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5409 break 2 5410 fi 5411 done 5412 done 5413 IFS=$as_save_IFS 5414 5415 fi 5416 fi 5417 AWK=$ac_cv_prog_AWK 5418 if test -n "$AWK"; then 5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 5420 $as_echo "$AWK" >&6; } 5421 else 5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5423 $as_echo "no" >&6; } 5424 fi 5425 5426 5427 test -n "$AWK" && break 5428 done 5429 5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 5431 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 5432 set x ${MAKE-make} 5433 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 5434 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 5435 $as_echo_n "(cached) " >&6 5436 else 5437 cat >conftest.make <<\_ACEOF 5438 SHELL = /bin/sh 5439 all: 5440 @echo '@@@%%%=$(MAKE)=@@@%%%' 5441 _ACEOF 5442 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 5443 case `${MAKE-make} -f conftest.make 2>/dev/null` in 5444 *@@@%%%=?*=@@@%%%*) 5445 eval ac_cv_prog_make_${ac_make}_set=yes;; 5446 *) 5447 eval ac_cv_prog_make_${ac_make}_set=no;; 5448 esac 5449 rm -f conftest.make 5450 fi 5451 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5453 $as_echo "yes" >&6; } 5454 SET_MAKE= 5455 else 5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5457 $as_echo "no" >&6; } 5458 SET_MAKE="MAKE=${MAKE-make}" 5459 fi 5460 5461 rm -rf .tst 2>/dev/null 5462 mkdir .tst 2>/dev/null 5463 if test -d .tst; then 5464 am__leading_dot=. 5465 else 5466 am__leading_dot=_ 5467 fi 5468 rmdir .tst 2>/dev/null 5469 5470 DEPDIR="${am__leading_dot}deps" 5471 5472 ac_config_commands="$ac_config_commands depfiles" 5473 5474 5475 am_make=${MAKE-make} 5476 cat > confinc << 'END' 5477 am__doit: 5478 @echo this is the am__doit target 5479 .PHONY: am__doit 5480 END 5481 # If we don't find an include directive, just comment out the code. 5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 5483 $as_echo_n "checking for style of include used by $am_make... " >&6; } 5484 am__include="#" 5485 am__quote= 5486 _am_result=none 5487 # First try GNU make style include. 5488 echo "include confinc" > confmf 5489 # Ignore all kinds of additional output from 'make'. 5490 case `$am_make -s -f confmf 2> /dev/null` in #( 5491 *the\ am__doit\ target*) 5492 am__include=include 5493 am__quote= 5494 _am_result=GNU 5495 ;; 5496 esac 5497 # Now try BSD make style include. 5498 if test "$am__include" = "#"; then 5499 echo '.include "confinc"' > confmf 5500 case `$am_make -s -f confmf 2> /dev/null` in #( 5501 *the\ am__doit\ target*) 5502 am__include=.include 5503 am__quote="\"" 5504 _am_result=BSD 5505 ;; 5506 esac 5507 fi 5508 5509 5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 5511 $as_echo "$_am_result" >&6; } 5512 rm -f confinc confmf 5513 5514 # Check whether --enable-dependency-tracking was given. 5515 if test "${enable_dependency_tracking+set}" = set; then : 5516 enableval=$enable_dependency_tracking; 5517 fi 5518 5519 if test "x$enable_dependency_tracking" != xno; then 5520 am_depcomp="$ac_aux_dir/depcomp" 5521 AMDEPBACKSLASH='\' 5522 am__nodep='_no' 5523 fi 5524 if test "x$enable_dependency_tracking" != xno; then 5525 AMDEP_TRUE= 5526 AMDEP_FALSE='#' 5527 else 5528 AMDEP_TRUE='#' 5529 AMDEP_FALSE= 5530 fi 5531 5532 5533 ## --------------------------------------- ## 5534 ## Start of automake initialization code ## 5535 ## --------------------------------------- ## 5536 5537 if test "`cd $srcdir && pwd`" != "`pwd`"; then 5538 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 5539 # is not polluted with repeated "-I." 5540 am__isrc=' -I$(srcdir)' 5541 # test to see if srcdir already configured 5542 if test -f $srcdir/config.status; then 5543 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 5544 fi 5545 fi 5546 5547 # test whether we have cygpath 5548 if test -z "$CYGPATH_W"; then 5549 if (cygpath --version) >/dev/null 2>/dev/null; then 5550 CYGPATH_W='cygpath -w' 5551 else 5552 CYGPATH_W=echo 5553 fi 5554 fi 5555 5556 5557 # Define the identity of the package. 5558 PACKAGE='curl' 5559 VERSION='-' 5560 5561 5562 cat >>confdefs.h <<_ACEOF 5563 #define PACKAGE "$PACKAGE" 5564 _ACEOF 5565 5566 5567 cat >>confdefs.h <<_ACEOF 5568 #define VERSION "$VERSION" 5569 _ACEOF 5570 5571 # Some tools Automake needs. 5572 5573 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 5574 5575 5576 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 5577 5578 5579 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 5580 5581 5582 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 5583 5584 5585 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 5586 5587 # For better backward compatibility. To be removed once Automake 1.9.x 5588 # dies out for good. For more background, see: 5589 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 5590 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 5591 mkdir_p='$(MKDIR_P)' 5592 5593 # We need awk for the "check" target (and possibly the TAP driver). The 5594 # system "awk" is bad on some platforms. 5595 # Always define AMTAR for backward compatibility. Yes, it's still used 5596 # in the wild :-( We should find a proper way to deprecate it ... 5597 AMTAR='$${TAR-tar}' 5598 5599 5600 # We'll loop over all known methods to create a tar archive until one works. 5601 _am_tools='gnutar pax cpio none' 5602 5603 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 5604 5605 5606 5607 5608 5609 depcc="$CC" am_compiler_list= 5610 5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5612 $as_echo_n "checking dependency style of $depcc... " >&6; } 5613 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5614 $as_echo_n "(cached) " >&6 5615 else 5616 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5617 # We make a subdir and do the tests there. Otherwise we can end up 5618 # making bogus files that we don't know about and never remove. For 5619 # instance it was reported that on HP-UX the gcc test will end up 5620 # making a dummy file named 'D' -- because '-MD' means "put the output 5621 # in D". 5622 rm -rf conftest.dir 5623 mkdir conftest.dir 5624 # Copy depcomp to subdir because otherwise we won't find it if we're 5625 # using a relative directory. 5626 cp "$am_depcomp" conftest.dir 5627 cd conftest.dir 5628 # We will build objects and dependencies in a subdirectory because 5629 # it helps to detect inapplicable dependency modes. For instance 5630 # both Tru64's cc and ICC support -MD to output dependencies as a 5631 # side effect of compilation, but ICC will put the dependencies in 5632 # the current directory while Tru64 will put them in the object 5633 # directory. 5634 mkdir sub 5635 5636 am_cv_CC_dependencies_compiler_type=none 5637 if test "$am_compiler_list" = ""; then 5638 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5639 fi 5640 am__universal=false 5641 case " $depcc " in #( 5642 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5643 esac 5644 5645 for depmode in $am_compiler_list; do 5646 # Setup a source with many dependencies, because some compilers 5647 # like to wrap large dependency lists on column 80 (with \), and 5648 # we should not choose a depcomp mode which is confused by this. 5649 # 5650 # We need to recreate these files for each test, as the compiler may 5651 # overwrite some of them when testing with obscure command lines. 5652 # This happens at least with the AIX C compiler. 5653 : > sub/conftest.c 5654 for i in 1 2 3 4 5 6; do 5655 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5656 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5657 # Solaris 10 /bin/sh. 5658 echo '/* dummy */' > sub/conftst$i.h 5659 done 5660 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5661 5662 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5663 # mode. It turns out that the SunPro C++ compiler does not properly 5664 # handle '-M -o', and we need to detect this. Also, some Intel 5665 # versions had trouble with output in subdirs. 5666 am__obj=sub/conftest.${OBJEXT-o} 5667 am__minus_obj="-o $am__obj" 5668 case $depmode in 5669 gcc) 5670 # This depmode causes a compiler race in universal mode. 5671 test "$am__universal" = false || continue 5672 ;; 5673 nosideeffect) 5674 # After this tag, mechanisms are not by side-effect, so they'll 5675 # only be used when explicitly requested. 5676 if test "x$enable_dependency_tracking" = xyes; then 5677 continue 5678 else 5679 break 5680 fi 5681 ;; 5682 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5683 # This compiler won't grok '-c -o', but also, the minuso test has 5684 # not run yet. These depmodes are late enough in the game, and 5685 # so weak that their functioning should not be impacted. 5686 am__obj=conftest.${OBJEXT-o} 5687 am__minus_obj= 5688 ;; 5689 none) break ;; 5690 esac 5691 if depmode=$depmode \ 5692 source=sub/conftest.c object=$am__obj \ 5693 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5694 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5695 >/dev/null 2>conftest.err && 5696 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5697 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5698 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5699 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5700 # icc doesn't choke on unknown options, it will just issue warnings 5701 # or remarks (even with -Werror). So we grep stderr for any message 5702 # that says an option was ignored or not supported. 5703 # When given -MP, icc 7.0 and 7.1 complain thusly: 5704 # icc: Command line warning: ignoring option '-M'; no argument required 5705 # The diagnosis changed in icc 8.0: 5706 # icc: Command line remark: option '-MP' not supported 5707 if (grep 'ignoring option' conftest.err || 5708 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5709 am_cv_CC_dependencies_compiler_type=$depmode 5710 break 5711 fi 5712 fi 5713 done 5714 5715 cd .. 5716 rm -rf conftest.dir 5717 else 5718 am_cv_CC_dependencies_compiler_type=none 5719 fi 5720 5721 fi 5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5723 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5724 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5725 5726 if 5727 test "x$enable_dependency_tracking" != xno \ 5728 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5729 am__fastdepCC_TRUE= 5730 am__fastdepCC_FALSE='#' 5731 else 5732 am__fastdepCC_TRUE='#' 5733 am__fastdepCC_FALSE= 5734 fi 5735 5736 5737 5738 # POSIX will say in a future version that running "rm -f" with no argument 5739 # is OK; and we want to be able to make that assumption in our Makefile 5740 # recipes. So use an aggressive probe to check that the usage we want is 5741 # actually supported "in the wild" to an acceptable degree. 5742 # See automake bug#10828. 5743 # To make any issue more visible, cause the running configure to be aborted 5744 # by default if the 'rm' program in use doesn't match our expectations; the 5745 # user can still override this though. 5746 if rm -f && rm -fr && rm -rf; then : OK; else 5747 cat >&2 <<'END' 5748 Oops! 5749 5750 Your 'rm' program seems unable to run without file operands specified 5751 on the command line, even when the '-f' option is present. This is contrary 5752 to the behaviour of most rm programs out there, and not conforming with 5753 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 5754 5755 Please tell bug-automake@gnu.org about your system, including the value 5756 of your $PATH and any error possibly output before this message. This 5757 can help us improve future automake versions. 5758 5759 END 5760 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 5761 echo 'Configuration will proceed anyway, since you have set the' >&2 5762 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 5763 echo >&2 5764 else 5765 cat >&2 <<'END' 5766 Aborting the configuration process, to ensure you take notice of the issue. 5767 5768 You can download and install GNU coreutils to get an 'rm' implementation 5769 that behaves properly: <http://www.gnu.org/software/coreutils/>. 5770 5771 If you want to complete the configuration process using your problematic 5772 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 5773 to "yes", and re-run configure. 5774 5775 END 5776 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 5777 fi 5778 fi 5779 5780 ## ------------------------------------- ## 5781 ## End of automake initialization code ## 5782 ## ------------------------------------- ## 5783 5784 5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5 5786 $as_echo_n "checking curl version... " >&6; } 5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5 5788 $as_echo "$CURLVERSION" >&6; } 5789 5790 5791 5792 VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/curl/curlver.h` 5793 5794 5795 PKGADD_PKG="HAXXcurl" 5796 PKGADD_NAME="curl - a client that groks URLs" 5797 PKGADD_VENDOR="curl.haxx.se" 5798 5799 5800 5801 5802 curl_ssl_msg="no (--with-{ssl,gnutls,nss,polarssl,mbedtls,cyassl,schannel,secure-transport,mesalink,amissl} )" 5803 curl_ssh_msg="no (--with-libssh2)" 5804 curl_zlib_msg="no (--with-zlib)" 5805 curl_brotli_msg="no (--with-brotli)" 5806 curl_gss_msg="no (--with-gssapi)" 5807 curl_tls_srp_msg="no (--enable-tls-srp)" 5808 curl_res_msg="default (--enable-ares / --enable-threaded-resolver)" 5809 curl_ipv6_msg="no (--enable-ipv6)" 5810 curl_unix_sockets_msg="no (--enable-unix-sockets)" 5811 curl_idn_msg="no (--with-{libidn2,winidn})" 5812 curl_manual_msg="no (--enable-manual)" 5813 curl_libcurl_msg="enabled (--disable-libcurl-option)" 5814 curl_verbose_msg="enabled (--disable-verbose)" 5815 curl_sspi_msg="no (--enable-sspi)" 5816 curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)" 5817 curl_ldaps_msg="no (--enable-ldaps)" 5818 curl_rtsp_msg="no (--enable-rtsp)" 5819 curl_rtmp_msg="no (--with-librtmp)" 5820 curl_mtlnk_msg="no (--with-libmetalink)" 5821 curl_psl_msg="no (--with-libpsl)" 5822 5823 ssl_backends= 5824 5825 INITIAL_LDFLAGS=$LDFLAGS 5826 INITIAL_LIBS=$LIBS 5827 5828 5829 # Make sure we can run config.sub. 5830 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5831 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5832 5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5834 $as_echo_n "checking build system type... " >&6; } 5835 if ${ac_cv_build+:} false; then : 5836 $as_echo_n "(cached) " >&6 5837 else 5838 ac_build_alias=$build_alias 5839 test "x$ac_build_alias" = x && 5840 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5841 test "x$ac_build_alias" = x && 5842 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5843 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5844 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5845 5846 fi 5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5848 $as_echo "$ac_cv_build" >&6; } 5849 case $ac_cv_build in 5850 *-*-*) ;; 5851 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5852 esac 5853 build=$ac_cv_build 5854 ac_save_IFS=$IFS; IFS='-' 5855 set x $ac_cv_build 5856 shift 5857 build_cpu=$1 5858 build_vendor=$2 5859 shift; shift 5860 # Remember, the first character of IFS is used to create $*, 5861 # except with old shells: 5862 build_os=$* 5863 IFS=$ac_save_IFS 5864 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5865 5866 5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5868 $as_echo_n "checking host system type... " >&6; } 5869 if ${ac_cv_host+:} false; then : 5870 $as_echo_n "(cached) " >&6 5871 else 5872 if test "x$host_alias" = x; then 5873 ac_cv_host=$ac_cv_build 5874 else 5875 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5876 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5877 fi 5878 5879 fi 5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5881 $as_echo "$ac_cv_host" >&6; } 5882 case $ac_cv_host in 5883 *-*-*) ;; 5884 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5885 esac 5886 host=$ac_cv_host 5887 ac_save_IFS=$IFS; IFS='-' 5888 set x $ac_cv_host 5889 shift 5890 host_cpu=$1 5891 host_vendor=$2 5892 shift; shift 5893 # Remember, the first character of IFS is used to create $*, 5894 # except with old shells: 5895 host_os=$* 5896 IFS=$ac_save_IFS 5897 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5898 5899 5900 5901 cat >>confdefs.h <<_ACEOF 5902 #define OS "${host}" 5903 _ACEOF 5904 5905 5906 # Silence warning: ar: 'u' modifier ignored since 'D' is the default 5907 AR_FLAGS=cr 5908 5909 5910 5911 5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5913 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5914 if ${ac_cv_path_GREP+:} false; then : 5915 $as_echo_n "(cached) " >&6 5916 else 5917 if test -z "$GREP"; then 5918 ac_path_GREP_found=false 5919 # Loop through the user's path and test for each of PROGNAME-LIST 5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5921 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5922 do 5923 IFS=$as_save_IFS 5924 test -z "$as_dir" && as_dir=. 5925 for ac_prog in grep ggrep; do 5926 for ac_exec_ext in '' $ac_executable_extensions; do 5927 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5928 as_fn_executable_p "$ac_path_GREP" || continue 5929 # Check for GNU ac_path_GREP and select it if it is found. 5930 # Check for GNU $ac_path_GREP 5931 case `"$ac_path_GREP" --version 2>&1` in 5932 *GNU*) 5933 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5934 *) 5935 ac_count=0 5936 $as_echo_n 0123456789 >"conftest.in" 5937 while : 5938 do 5939 cat "conftest.in" "conftest.in" >"conftest.tmp" 5940 mv "conftest.tmp" "conftest.in" 5941 cp "conftest.in" "conftest.nl" 5942 $as_echo 'GREP' >> "conftest.nl" 5943 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5944 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5945 as_fn_arith $ac_count + 1 && ac_count=$as_val 5946 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5947 # Best one so far, save it but keep looking for a better one 5948 ac_cv_path_GREP="$ac_path_GREP" 5949 ac_path_GREP_max=$ac_count 5950 fi 5951 # 10*(2^10) chars as input seems more than enough 5952 test $ac_count -gt 10 && break 5953 done 5954 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5955 esac 5956 5957 $ac_path_GREP_found && break 3 5958 done 5959 done 5960 done 5961 IFS=$as_save_IFS 5962 if test -z "$ac_cv_path_GREP"; then 5963 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5964 fi 5965 else 5966 ac_cv_path_GREP=$GREP 5967 fi 5968 5969 fi 5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5971 $as_echo "$ac_cv_path_GREP" >&6; } 5972 GREP="$ac_cv_path_GREP" 5973 5974 5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5976 $as_echo_n "checking for egrep... " >&6; } 5977 if ${ac_cv_path_EGREP+:} false; then : 5978 $as_echo_n "(cached) " >&6 5979 else 5980 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5981 then ac_cv_path_EGREP="$GREP -E" 5982 else 5983 if test -z "$EGREP"; then 5984 ac_path_EGREP_found=false 5985 # Loop through the user's path and test for each of PROGNAME-LIST 5986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5987 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5988 do 5989 IFS=$as_save_IFS 5990 test -z "$as_dir" && as_dir=. 5991 for ac_prog in egrep; do 5992 for ac_exec_ext in '' $ac_executable_extensions; do 5993 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5994 as_fn_executable_p "$ac_path_EGREP" || continue 5995 # Check for GNU ac_path_EGREP and select it if it is found. 5996 # Check for GNU $ac_path_EGREP 5997 case `"$ac_path_EGREP" --version 2>&1` in 5998 *GNU*) 5999 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 6000 *) 6001 ac_count=0 6002 $as_echo_n 0123456789 >"conftest.in" 6003 while : 6004 do 6005 cat "conftest.in" "conftest.in" >"conftest.tmp" 6006 mv "conftest.tmp" "conftest.in" 6007 cp "conftest.in" "conftest.nl" 6008 $as_echo 'EGREP' >> "conftest.nl" 6009 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6010 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6011 as_fn_arith $ac_count + 1 && ac_count=$as_val 6012 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 6013 # Best one so far, save it but keep looking for a better one 6014 ac_cv_path_EGREP="$ac_path_EGREP" 6015 ac_path_EGREP_max=$ac_count 6016 fi 6017 # 10*(2^10) chars as input seems more than enough 6018 test $ac_count -gt 10 && break 6019 done 6020 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6021 esac 6022 6023 $ac_path_EGREP_found && break 3 6024 done 6025 done 6026 done 6027 IFS=$as_save_IFS 6028 if test -z "$ac_cv_path_EGREP"; then 6029 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6030 fi 6031 else 6032 ac_cv_path_EGREP=$EGREP 6033 fi 6034 6035 fi 6036 fi 6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 6038 $as_echo "$ac_cv_path_EGREP" >&6; } 6039 EGREP="$ac_cv_path_EGREP" 6040 6041 6042 6043 6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5 6045 $as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; } 6046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6047 /* end confdefs.h. */ 6048 6049 #ifdef _AIX 6050 yes_this_is_aix 6051 #endif 6052 6053 _ACEOF 6054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6055 $EGREP "yes_this_is_aix" >/dev/null 2>&1; then : 6056 6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6058 $as_echo "yes" >&6; } 6059 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 6060 6061 6062 else 6063 6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6065 $as_echo "no" >&6; } 6066 6067 fi 6068 rm -f conftest* 6069 6070 6071 6072 6073 # 6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5 6075 $as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; } 6076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6077 /* end confdefs.h. */ 6078 6079 6080 6081 int main (void) 6082 { 6083 6084 #ifdef _THREAD_SAFE 6085 int dummy=1; 6086 #else 6087 force compilation error 6088 #endif 6089 6090 ; 6091 return 0; 6092 } 6093 6094 _ACEOF 6095 if ac_fn_c_try_compile "$LINENO"; then : 6096 6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6098 $as_echo "yes" >&6; } 6099 tmp_thread_safe_initially_defined="yes" 6100 6101 else 6102 6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6104 $as_echo "no" >&6; } 6105 tmp_thread_safe_initially_defined="no" 6106 6107 fi 6108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6109 # 6110 if test "$tmp_thread_safe_initially_defined" = "no"; then 6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5 6112 $as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; } 6113 6114 case $host_os in 6115 aix[123].* | aix4.[012].*) 6116 tmp_need_thread_safe="no" 6117 ;; 6118 aix*) 6119 tmp_need_thread_safe="yes" 6120 ;; 6121 *) 6122 tmp_need_thread_safe="no" 6123 ;; 6124 esac 6125 6126 if test "$tmp_need_thread_safe" = "yes"; then 6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6128 $as_echo "yes" >&6; } 6129 else 6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6131 $as_echo "no" >&6; } 6132 fi 6133 fi 6134 # 6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5 6136 $as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; } 6137 if test "$tmp_thread_safe_initially_defined" = "yes" || 6138 test "$tmp_need_thread_safe" = "yes"; then 6139 6140 6141 $as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h 6142 6143 cat >>confdefs.h <<_EOF 6144 #ifndef _THREAD_SAFE 6145 # define _THREAD_SAFE 6146 #endif 6147 _EOF 6148 6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6150 $as_echo "yes" >&6; } 6151 else 6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6153 $as_echo "no" >&6; } 6154 fi 6155 # 6156 6157 6158 # 6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5 6160 $as_echo_n "checking if _REENTRANT is already defined... " >&6; } 6161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6162 /* end confdefs.h. */ 6163 6164 6165 6166 int main (void) 6167 { 6168 6169 #ifdef _REENTRANT 6170 int dummy=1; 6171 #else 6172 force compilation error 6173 #endif 6174 6175 ; 6176 return 0; 6177 } 6178 6179 _ACEOF 6180 if ac_fn_c_try_compile "$LINENO"; then : 6181 6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6183 $as_echo "yes" >&6; } 6184 tmp_reentrant_initially_defined="yes" 6185 6186 else 6187 6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6189 $as_echo "no" >&6; } 6190 tmp_reentrant_initially_defined="no" 6191 6192 fi 6193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6194 # 6195 if test "$tmp_reentrant_initially_defined" = "no"; then 6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5 6197 $as_echo_n "checking if _REENTRANT is actually needed... " >&6; } 6198 6199 case $host_os in 6200 solaris*) 6201 tmp_need_reentrant="yes" 6202 ;; 6203 *) 6204 tmp_need_reentrant="no" 6205 ;; 6206 esac 6207 6208 if test "$tmp_need_reentrant" = "no"; then 6209 6210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6211 /* end confdefs.h. */ 6212 6213 6214 #include <errno.h> 6215 6216 int main (void) 6217 { 6218 6219 if(0 != errno) 6220 return 1; 6221 6222 ; 6223 return 0; 6224 } 6225 6226 _ACEOF 6227 if ac_fn_c_try_compile "$LINENO"; then : 6228 6229 tmp_errno="yes" 6230 6231 else 6232 6233 tmp_errno="no" 6234 6235 fi 6236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6237 if test "$tmp_errno" = "yes"; then 6238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6239 /* end confdefs.h. */ 6240 6241 6242 #include <errno.h> 6243 6244 int main (void) 6245 { 6246 6247 #ifdef errno 6248 int dummy=1; 6249 #else 6250 force compilation error 6251 #endif 6252 6253 ; 6254 return 0; 6255 } 6256 6257 _ACEOF 6258 if ac_fn_c_try_compile "$LINENO"; then : 6259 6260 tmp_errno="errno_macro_defined" 6261 6262 else 6263 6264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6265 /* end confdefs.h. */ 6266 6267 6268 #define _REENTRANT 6269 #include <errno.h> 6270 6271 int main (void) 6272 { 6273 6274 #ifdef errno 6275 int dummy=1; 6276 #else 6277 force compilation error 6278 #endif 6279 6280 ; 6281 return 0; 6282 } 6283 6284 _ACEOF 6285 if ac_fn_c_try_compile "$LINENO"; then : 6286 6287 tmp_errno="errno_macro_needs_reentrant" 6288 tmp_need_reentrant="yes" 6289 6290 fi 6291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6292 6293 fi 6294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6295 fi 6296 6297 fi 6298 if test "$tmp_need_reentrant" = "no"; then 6299 6300 if test "$tmp_need_reentrant" = "no"; then 6301 6302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6303 /* end confdefs.h. */ 6304 6305 6306 #define gmtime_r innocuous_gmtime_r 6307 #ifdef __STDC__ 6308 # include <limits.h> 6309 #else 6310 # include <assert.h> 6311 #endif 6312 #undef gmtime_r 6313 #ifdef __cplusplus 6314 extern "C" 6315 #endif 6316 char gmtime_r (); 6317 #if defined __stub_gmtime_r || defined __stub___gmtime_r 6318 choke me 6319 #endif 6320 6321 int main (void) 6322 { 6323 return gmtime_r (); 6324 ; 6325 return 0; 6326 } 6327 6328 _ACEOF 6329 if ac_fn_c_try_link "$LINENO"; then : 6330 6331 tmp_gmtime_r="yes" 6332 6333 else 6334 6335 tmp_gmtime_r="no" 6336 6337 fi 6338 rm -f core conftest.err conftest.$ac_objext \ 6339 conftest$ac_exeext conftest.$ac_ext 6340 if test "$tmp_gmtime_r" = "yes"; then 6341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6342 /* end confdefs.h. */ 6343 6344 #include <sys/types.h> 6345 #include <time.h> 6346 6347 _ACEOF 6348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6349 $EGREP "gmtime_r" >/dev/null 2>&1; then : 6350 6351 tmp_gmtime_r="proto_declared" 6352 6353 else 6354 6355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6356 /* end confdefs.h. */ 6357 6358 #define _REENTRANT 6359 #include <sys/types.h> 6360 #include <time.h> 6361 6362 _ACEOF 6363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6364 $EGREP "gmtime_r" >/dev/null 2>&1; then : 6365 6366 tmp_gmtime_r="proto_needs_reentrant" 6367 tmp_need_reentrant="yes" 6368 6369 fi 6370 rm -f conftest* 6371 6372 6373 fi 6374 rm -f conftest* 6375 6376 fi 6377 6378 fi 6379 if test "$tmp_need_reentrant" = "no"; then 6380 6381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6382 /* end confdefs.h. */ 6383 6384 6385 #define localtime_r innocuous_localtime_r 6386 #ifdef __STDC__ 6387 # include <limits.h> 6388 #else 6389 # include <assert.h> 6390 #endif 6391 #undef localtime_r 6392 #ifdef __cplusplus 6393 extern "C" 6394 #endif 6395 char localtime_r (); 6396 #if defined __stub_localtime_r || defined __stub___localtime_r 6397 choke me 6398 #endif 6399 6400 int main (void) 6401 { 6402 return localtime_r (); 6403 ; 6404 return 0; 6405 } 6406 6407 _ACEOF 6408 if ac_fn_c_try_link "$LINENO"; then : 6409 6410 tmp_localtime_r="yes" 6411 6412 else 6413 6414 tmp_localtime_r="no" 6415 6416 fi 6417 rm -f core conftest.err conftest.$ac_objext \ 6418 conftest$ac_exeext conftest.$ac_ext 6419 if test "$tmp_localtime_r" = "yes"; then 6420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6421 /* end confdefs.h. */ 6422 6423 #include <sys/types.h> 6424 #include <time.h> 6425 6426 _ACEOF 6427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6428 $EGREP "localtime_r" >/dev/null 2>&1; then : 6429 6430 tmp_localtime_r="proto_declared" 6431 6432 else 6433 6434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6435 /* end confdefs.h. */ 6436 6437 #define _REENTRANT 6438 #include <sys/types.h> 6439 #include <time.h> 6440 6441 _ACEOF 6442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6443 $EGREP "localtime_r" >/dev/null 2>&1; then : 6444 6445 tmp_localtime_r="proto_needs_reentrant" 6446 tmp_need_reentrant="yes" 6447 6448 fi 6449 rm -f conftest* 6450 6451 6452 fi 6453 rm -f conftest* 6454 6455 fi 6456 6457 fi 6458 if test "$tmp_need_reentrant" = "no"; then 6459 6460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6461 /* end confdefs.h. */ 6462 6463 6464 #define strerror_r innocuous_strerror_r 6465 #ifdef __STDC__ 6466 # include <limits.h> 6467 #else 6468 # include <assert.h> 6469 #endif 6470 #undef strerror_r 6471 #ifdef __cplusplus 6472 extern "C" 6473 #endif 6474 char strerror_r (); 6475 #if defined __stub_strerror_r || defined __stub___strerror_r 6476 choke me 6477 #endif 6478 6479 int main (void) 6480 { 6481 return strerror_r (); 6482 ; 6483 return 0; 6484 } 6485 6486 _ACEOF 6487 if ac_fn_c_try_link "$LINENO"; then : 6488 6489 tmp_strerror_r="yes" 6490 6491 else 6492 6493 tmp_strerror_r="no" 6494 6495 fi 6496 rm -f core conftest.err conftest.$ac_objext \ 6497 conftest$ac_exeext conftest.$ac_ext 6498 if test "$tmp_strerror_r" = "yes"; then 6499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6500 /* end confdefs.h. */ 6501 6502 #include <sys/types.h> 6503 #include <string.h> 6504 6505 _ACEOF 6506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6507 $EGREP "strerror_r" >/dev/null 2>&1; then : 6508 6509 tmp_strerror_r="proto_declared" 6510 6511 else 6512 6513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6514 /* end confdefs.h. */ 6515 6516 #define _REENTRANT 6517 #include <sys/types.h> 6518 #include <string.h> 6519 6520 _ACEOF 6521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6522 $EGREP "strerror_r" >/dev/null 2>&1; then : 6523 6524 tmp_strerror_r="proto_needs_reentrant" 6525 tmp_need_reentrant="yes" 6526 6527 fi 6528 rm -f conftest* 6529 6530 6531 fi 6532 rm -f conftest* 6533 6534 fi 6535 6536 fi 6537 if test "$tmp_need_reentrant" = "no"; then 6538 6539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6540 /* end confdefs.h. */ 6541 6542 6543 #define strtok_r innocuous_strtok_r 6544 #ifdef __STDC__ 6545 # include <limits.h> 6546 #else 6547 # include <assert.h> 6548 #endif 6549 #undef strtok_r 6550 #ifdef __cplusplus 6551 extern "C" 6552 #endif 6553 char strtok_r (); 6554 #if defined __stub_strtok_r || defined __stub___strtok_r 6555 choke me 6556 #endif 6557 6558 int main (void) 6559 { 6560 return strtok_r (); 6561 ; 6562 return 0; 6563 } 6564 6565 _ACEOF 6566 if ac_fn_c_try_link "$LINENO"; then : 6567 6568 tmp_strtok_r="yes" 6569 6570 else 6571 6572 tmp_strtok_r="no" 6573 6574 fi 6575 rm -f core conftest.err conftest.$ac_objext \ 6576 conftest$ac_exeext conftest.$ac_ext 6577 if test "$tmp_strtok_r" = "yes"; then 6578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6579 /* end confdefs.h. */ 6580 6581 #include <sys/types.h> 6582 #include <string.h> 6583 6584 _ACEOF 6585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6586 $EGREP "strtok_r" >/dev/null 2>&1; then : 6587 6588 tmp_strtok_r="proto_declared" 6589 6590 else 6591 6592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6593 /* end confdefs.h. */ 6594 6595 #define _REENTRANT 6596 #include <sys/types.h> 6597 #include <string.h> 6598 6599 _ACEOF 6600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6601 $EGREP "strtok_r" >/dev/null 2>&1; then : 6602 6603 tmp_strtok_r="proto_needs_reentrant" 6604 tmp_need_reentrant="yes" 6605 6606 fi 6607 rm -f conftest* 6608 6609 6610 fi 6611 rm -f conftest* 6612 6613 fi 6614 6615 fi 6616 if test "$tmp_need_reentrant" = "no"; then 6617 6618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6619 /* end confdefs.h. */ 6620 6621 6622 #define inet_ntoa_r innocuous_inet_ntoa_r 6623 #ifdef __STDC__ 6624 # include <limits.h> 6625 #else 6626 # include <assert.h> 6627 #endif 6628 #undef inet_ntoa_r 6629 #ifdef __cplusplus 6630 extern "C" 6631 #endif 6632 char inet_ntoa_r (); 6633 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r 6634 choke me 6635 #endif 6636 6637 int main (void) 6638 { 6639 return inet_ntoa_r (); 6640 ; 6641 return 0; 6642 } 6643 6644 _ACEOF 6645 if ac_fn_c_try_link "$LINENO"; then : 6646 6647 tmp_inet_ntoa_r="yes" 6648 6649 else 6650 6651 tmp_inet_ntoa_r="no" 6652 6653 fi 6654 rm -f core conftest.err conftest.$ac_objext \ 6655 conftest$ac_exeext conftest.$ac_ext 6656 if test "$tmp_inet_ntoa_r" = "yes"; then 6657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6658 /* end confdefs.h. */ 6659 6660 #include <sys/types.h> 6661 #include <sys/socket.h> 6662 #include <netinet/in.h> 6663 #include <arpa/inet.h> 6664 6665 _ACEOF 6666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6667 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then : 6668 6669 tmp_inet_ntoa_r="proto_declared" 6670 6671 else 6672 6673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6674 /* end confdefs.h. */ 6675 6676 #define _REENTRANT 6677 #include <sys/types.h> 6678 #include <sys/socket.h> 6679 #include <netinet/in.h> 6680 #include <arpa/inet.h> 6681 6682 _ACEOF 6683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6684 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then : 6685 6686 tmp_inet_ntoa_r="proto_needs_reentrant" 6687 tmp_need_reentrant="yes" 6688 6689 fi 6690 rm -f conftest* 6691 6692 6693 fi 6694 rm -f conftest* 6695 6696 fi 6697 6698 fi 6699 if test "$tmp_need_reentrant" = "no"; then 6700 6701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6702 /* end confdefs.h. */ 6703 6704 6705 #define gethostbyaddr_r innocuous_gethostbyaddr_r 6706 #ifdef __STDC__ 6707 # include <limits.h> 6708 #else 6709 # include <assert.h> 6710 #endif 6711 #undef gethostbyaddr_r 6712 #ifdef __cplusplus 6713 extern "C" 6714 #endif 6715 char gethostbyaddr_r (); 6716 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r 6717 choke me 6718 #endif 6719 6720 int main (void) 6721 { 6722 return gethostbyaddr_r (); 6723 ; 6724 return 0; 6725 } 6726 6727 _ACEOF 6728 if ac_fn_c_try_link "$LINENO"; then : 6729 6730 tmp_gethostbyaddr_r="yes" 6731 6732 else 6733 6734 tmp_gethostbyaddr_r="no" 6735 6736 fi 6737 rm -f core conftest.err conftest.$ac_objext \ 6738 conftest$ac_exeext conftest.$ac_ext 6739 if test "$tmp_gethostbyaddr_r" = "yes"; then 6740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6741 /* end confdefs.h. */ 6742 6743 #include <sys/types.h> 6744 #include <netdb.h> 6745 6746 _ACEOF 6747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6748 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then : 6749 6750 tmp_gethostbyaddr_r="proto_declared" 6751 6752 else 6753 6754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6755 /* end confdefs.h. */ 6756 6757 #define _REENTRANT 6758 #include <sys/types.h> 6759 #include <netdb.h> 6760 6761 _ACEOF 6762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6763 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then : 6764 6765 tmp_gethostbyaddr_r="proto_needs_reentrant" 6766 tmp_need_reentrant="yes" 6767 6768 fi 6769 rm -f conftest* 6770 6771 6772 fi 6773 rm -f conftest* 6774 6775 fi 6776 6777 fi 6778 if test "$tmp_need_reentrant" = "no"; then 6779 6780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6781 /* end confdefs.h. */ 6782 6783 6784 #define gethostbyname_r innocuous_gethostbyname_r 6785 #ifdef __STDC__ 6786 # include <limits.h> 6787 #else 6788 # include <assert.h> 6789 #endif 6790 #undef gethostbyname_r 6791 #ifdef __cplusplus 6792 extern "C" 6793 #endif 6794 char gethostbyname_r (); 6795 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r 6796 choke me 6797 #endif 6798 6799 int main (void) 6800 { 6801 return gethostbyname_r (); 6802 ; 6803 return 0; 6804 } 6805 6806 _ACEOF 6807 if ac_fn_c_try_link "$LINENO"; then : 6808 6809 tmp_gethostbyname_r="yes" 6810 6811 else 6812 6813 tmp_gethostbyname_r="no" 6814 6815 fi 6816 rm -f core conftest.err conftest.$ac_objext \ 6817 conftest$ac_exeext conftest.$ac_ext 6818 if test "$tmp_gethostbyname_r" = "yes"; then 6819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6820 /* end confdefs.h. */ 6821 6822 #include <sys/types.h> 6823 #include <netdb.h> 6824 6825 _ACEOF 6826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6827 $EGREP "gethostbyname_r" >/dev/null 2>&1; then : 6828 6829 tmp_gethostbyname_r="proto_declared" 6830 6831 else 6832 6833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6834 /* end confdefs.h. */ 6835 6836 #define _REENTRANT 6837 #include <sys/types.h> 6838 #include <netdb.h> 6839 6840 _ACEOF 6841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6842 $EGREP "gethostbyname_r" >/dev/null 2>&1; then : 6843 6844 tmp_gethostbyname_r="proto_needs_reentrant" 6845 tmp_need_reentrant="yes" 6846 6847 fi 6848 rm -f conftest* 6849 6850 6851 fi 6852 rm -f conftest* 6853 6854 fi 6855 6856 fi 6857 if test "$tmp_need_reentrant" = "no"; then 6858 6859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6860 /* end confdefs.h. */ 6861 6862 6863 #define getprotobyname_r innocuous_getprotobyname_r 6864 #ifdef __STDC__ 6865 # include <limits.h> 6866 #else 6867 # include <assert.h> 6868 #endif 6869 #undef getprotobyname_r 6870 #ifdef __cplusplus 6871 extern "C" 6872 #endif 6873 char getprotobyname_r (); 6874 #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r 6875 choke me 6876 #endif 6877 6878 int main (void) 6879 { 6880 return getprotobyname_r (); 6881 ; 6882 return 0; 6883 } 6884 6885 _ACEOF 6886 if ac_fn_c_try_link "$LINENO"; then : 6887 6888 tmp_getprotobyname_r="yes" 6889 6890 else 6891 6892 tmp_getprotobyname_r="no" 6893 6894 fi 6895 rm -f core conftest.err conftest.$ac_objext \ 6896 conftest$ac_exeext conftest.$ac_ext 6897 if test "$tmp_getprotobyname_r" = "yes"; then 6898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6899 /* end confdefs.h. */ 6900 6901 #include <sys/types.h> 6902 #include <netdb.h> 6903 6904 _ACEOF 6905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6906 $EGREP "getprotobyname_r" >/dev/null 2>&1; then : 6907 6908 tmp_getprotobyname_r="proto_declared" 6909 6910 else 6911 6912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6913 /* end confdefs.h. */ 6914 6915 #define _REENTRANT 6916 #include <sys/types.h> 6917 #include <netdb.h> 6918 6919 _ACEOF 6920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6921 $EGREP "getprotobyname_r" >/dev/null 2>&1; then : 6922 6923 tmp_getprotobyname_r="proto_needs_reentrant" 6924 tmp_need_reentrant="yes" 6925 6926 fi 6927 rm -f conftest* 6928 6929 6930 fi 6931 rm -f conftest* 6932 6933 fi 6934 6935 fi 6936 if test "$tmp_need_reentrant" = "no"; then 6937 6938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6939 /* end confdefs.h. */ 6940 6941 6942 #define getservbyport_r innocuous_getservbyport_r 6943 #ifdef __STDC__ 6944 # include <limits.h> 6945 #else 6946 # include <assert.h> 6947 #endif 6948 #undef getservbyport_r 6949 #ifdef __cplusplus 6950 extern "C" 6951 #endif 6952 char getservbyport_r (); 6953 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r 6954 choke me 6955 #endif 6956 6957 int main (void) 6958 { 6959 return getservbyport_r (); 6960 ; 6961 return 0; 6962 } 6963 6964 _ACEOF 6965 if ac_fn_c_try_link "$LINENO"; then : 6966 6967 tmp_getservbyport_r="yes" 6968 6969 else 6970 6971 tmp_getservbyport_r="no" 6972 6973 fi 6974 rm -f core conftest.err conftest.$ac_objext \ 6975 conftest$ac_exeext conftest.$ac_ext 6976 if test "$tmp_getservbyport_r" = "yes"; then 6977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6978 /* end confdefs.h. */ 6979 6980 #include <sys/types.h> 6981 #include <netdb.h> 6982 6983 _ACEOF 6984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6985 $EGREP "getservbyport_r" >/dev/null 2>&1; then : 6986 6987 tmp_getservbyport_r="proto_declared" 6988 6989 else 6990 6991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6992 /* end confdefs.h. */ 6993 6994 #define _REENTRANT 6995 #include <sys/types.h> 6996 #include <netdb.h> 6997 6998 _ACEOF 6999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7000 $EGREP "getservbyport_r" >/dev/null 2>&1; then : 7001 7002 tmp_getservbyport_r="proto_needs_reentrant" 7003 tmp_need_reentrant="yes" 7004 7005 fi 7006 rm -f conftest* 7007 7008 7009 fi 7010 rm -f conftest* 7011 7012 fi 7013 7014 fi 7015 7016 fi 7017 if test "$tmp_need_reentrant" = "yes"; then 7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7019 $as_echo "yes" >&6; } 7020 else 7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7022 $as_echo "no" >&6; } 7023 fi 7024 fi 7025 # 7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5 7027 $as_echo_n "checking if _REENTRANT is onwards defined... " >&6; } 7028 if test "$tmp_reentrant_initially_defined" = "yes" || 7029 test "$tmp_need_reentrant" = "yes"; then 7030 7031 7032 $as_echo "#define NEED_REENTRANT 1" >>confdefs.h 7033 7034 cat >>confdefs.h <<_EOF 7035 #ifndef _REENTRANT 7036 # define _REENTRANT 7037 #endif 7038 _EOF 7039 7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7041 $as_echo "yes" >&6; } 7042 else 7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7044 $as_echo "no" >&6; } 7045 fi 7046 # 7047 7048 7049 # Check whether --enable-largefile was given. 7050 if test "${enable_largefile+set}" = set; then : 7051 enableval=$enable_largefile; 7052 fi 7053 7054 if test "$enable_largefile" != no; then 7055 7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 7057 $as_echo_n "checking for special C compiler options needed for large files... " >&6; } 7058 if ${ac_cv_sys_largefile_CC+:} false; then : 7059 $as_echo_n "(cached) " >&6 7060 else 7061 ac_cv_sys_largefile_CC=no 7062 if test "$GCC" != yes; then 7063 ac_save_CC=$CC 7064 while :; do 7065 # IRIX 6.2 and later do not support large files by default, 7066 # so use the C compiler's -n32 option if that helps. 7067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7068 /* end confdefs.h. */ 7069 #include <sys/types.h> 7070 /* Check that off_t can represent 2**63 - 1 correctly. 7071 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7072 since some C++ compilers masquerading as C compilers 7073 incorrectly reject 9223372036854775807. */ 7074 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 7075 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7076 && LARGE_OFF_T % 2147483647 == 1) 7077 ? 1 : -1]; 7078 int main (void) 7079 { 7080 7081 ; 7082 return 0; 7083 } 7084 _ACEOF 7085 if ac_fn_c_try_compile "$LINENO"; then : 7086 break 7087 fi 7088 rm -f core conftest.err conftest.$ac_objext 7089 CC="$CC -n32" 7090 if ac_fn_c_try_compile "$LINENO"; then : 7091 ac_cv_sys_largefile_CC=' -n32'; break 7092 fi 7093 rm -f core conftest.err conftest.$ac_objext 7094 break 7095 done 7096 CC=$ac_save_CC 7097 rm -f conftest.$ac_ext 7098 fi 7099 fi 7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 7101 $as_echo "$ac_cv_sys_largefile_CC" >&6; } 7102 if test "$ac_cv_sys_largefile_CC" != no; then 7103 CC=$CC$ac_cv_sys_largefile_CC 7104 fi 7105 7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 7107 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 7108 if ${ac_cv_sys_file_offset_bits+:} false; then : 7109 $as_echo_n "(cached) " >&6 7110 else 7111 while :; do 7112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7113 /* end confdefs.h. */ 7114 #include <sys/types.h> 7115 /* Check that off_t can represent 2**63 - 1 correctly. 7116 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7117 since some C++ compilers masquerading as C compilers 7118 incorrectly reject 9223372036854775807. */ 7119 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 7120 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7121 && LARGE_OFF_T % 2147483647 == 1) 7122 ? 1 : -1]; 7123 int main (void) 7124 { 7125 7126 ; 7127 return 0; 7128 } 7129 _ACEOF 7130 if ac_fn_c_try_compile "$LINENO"; then : 7131 ac_cv_sys_file_offset_bits=no; break 7132 fi 7133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7135 /* end confdefs.h. */ 7136 #define _FILE_OFFSET_BITS 64 7137 #include <sys/types.h> 7138 /* Check that off_t can represent 2**63 - 1 correctly. 7139 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7140 since some C++ compilers masquerading as C compilers 7141 incorrectly reject 9223372036854775807. */ 7142 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 7143 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7144 && LARGE_OFF_T % 2147483647 == 1) 7145 ? 1 : -1]; 7146 int main (void) 7147 { 7148 7149 ; 7150 return 0; 7151 } 7152 _ACEOF 7153 if ac_fn_c_try_compile "$LINENO"; then : 7154 ac_cv_sys_file_offset_bits=64; break 7155 fi 7156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7157 ac_cv_sys_file_offset_bits=unknown 7158 break 7159 done 7160 fi 7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 7162 $as_echo "$ac_cv_sys_file_offset_bits" >&6; } 7163 case $ac_cv_sys_file_offset_bits in #( 7164 no | unknown) ;; 7165 *) 7166 cat >>confdefs.h <<_ACEOF 7167 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 7168 _ACEOF 7169 ;; 7170 esac 7171 rm -rf conftest* 7172 if test $ac_cv_sys_file_offset_bits = unknown; then 7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 7174 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 7175 if ${ac_cv_sys_large_files+:} false; then : 7176 $as_echo_n "(cached) " >&6 7177 else 7178 while :; do 7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7180 /* end confdefs.h. */ 7181 #include <sys/types.h> 7182 /* Check that off_t can represent 2**63 - 1 correctly. 7183 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7184 since some C++ compilers masquerading as C compilers 7185 incorrectly reject 9223372036854775807. */ 7186 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 7187 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7188 && LARGE_OFF_T % 2147483647 == 1) 7189 ? 1 : -1]; 7190 int main (void) 7191 { 7192 7193 ; 7194 return 0; 7195 } 7196 _ACEOF 7197 if ac_fn_c_try_compile "$LINENO"; then : 7198 ac_cv_sys_large_files=no; break 7199 fi 7200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7202 /* end confdefs.h. */ 7203 #define _LARGE_FILES 1 7204 #include <sys/types.h> 7205 /* Check that off_t can represent 2**63 - 1 correctly. 7206 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7207 since some C++ compilers masquerading as C compilers 7208 incorrectly reject 9223372036854775807. */ 7209 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 7210 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7211 && LARGE_OFF_T % 2147483647 == 1) 7212 ? 1 : -1]; 7213 int main (void) 7214 { 7215 7216 ; 7217 return 0; 7218 } 7219 _ACEOF 7220 if ac_fn_c_try_compile "$LINENO"; then : 7221 ac_cv_sys_large_files=1; break 7222 fi 7223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7224 ac_cv_sys_large_files=unknown 7225 break 7226 done 7227 fi 7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 7229 $as_echo "$ac_cv_sys_large_files" >&6; } 7230 case $ac_cv_sys_large_files in #( 7231 no | unknown) ;; 7232 *) 7233 cat >>confdefs.h <<_ACEOF 7234 #define _LARGE_FILES $ac_cv_sys_large_files 7235 _ACEOF 7236 ;; 7237 esac 7238 rm -rf conftest* 7239 fi 7240 7241 7242 fi 7243 7244 7245 case `pwd` in 7246 *\ * | *\ *) 7247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 7248 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 7249 esac 7250 7251 7252 7253 macro_version='2.4.6' 7254 macro_revision='2.4.6' 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 ltmain=$ac_aux_dir/ltmain.sh 7269 7270 # Backslashify metacharacters that are still active within 7271 # double-quoted strings. 7272 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7273 7274 # Same as above, but do not quote variable references. 7275 double_quote_subst='s/\(["`\\]\)/\\\1/g' 7276 7277 # Sed substitution to delay expansion of an escaped shell variable in a 7278 # double_quote_subst'ed string. 7279 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7280 7281 # Sed substitution to delay expansion of an escaped single quote. 7282 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7283 7284 # Sed substitution to avoid accidental globbing in evaled expressions 7285 no_glob_subst='s/\*/\\\*/g' 7286 7287 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 7288 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 7289 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 7290 7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 7292 $as_echo_n "checking how to print strings... " >&6; } 7293 # Test print first, because it will be a builtin if present. 7294 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 7295 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 7296 ECHO='print -r --' 7297 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 7298 ECHO='printf %s\n' 7299 else 7300 # Use this function as a fallback that always works. 7301 func_fallback_echo () 7302 { 7303 eval 'cat <<_LTECHO_EOF 7304 $1 7305 _LTECHO_EOF' 7306 } 7307 ECHO='func_fallback_echo' 7308 fi 7309 7310 # func_echo_all arg... 7311 # Invoke $ECHO with all args, space-separated. 7312 func_echo_all () 7313 { 7314 $ECHO "" 7315 } 7316 7317 case $ECHO in 7318 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 7319 $as_echo "printf" >&6; } ;; 7320 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 7321 $as_echo "print -r" >&6; } ;; 7322 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 7323 $as_echo "cat" >&6; } ;; 7324 esac 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 7340 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 7341 if ${ac_cv_path_SED+:} false; then : 7342 $as_echo_n "(cached) " >&6 7343 else 7344 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 7345 for ac_i in 1 2 3 4 5 6 7; do 7346 ac_script="$ac_script$as_nl$ac_script" 7347 done 7348 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 7349 { ac_script=; unset ac_script;} 7350 if test -z "$SED"; then 7351 ac_path_SED_found=false 7352 # Loop through the user's path and test for each of PROGNAME-LIST 7353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7354 for as_dir in $PATH 7355 do 7356 IFS=$as_save_IFS 7357 test -z "$as_dir" && as_dir=. 7358 for ac_prog in sed gsed; do 7359 for ac_exec_ext in '' $ac_executable_extensions; do 7360 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 7361 as_fn_executable_p "$ac_path_SED" || continue 7362 # Check for GNU ac_path_SED and select it if it is found. 7363 # Check for GNU $ac_path_SED 7364 case `"$ac_path_SED" --version 2>&1` in 7365 *GNU*) 7366 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 7367 *) 7368 ac_count=0 7369 $as_echo_n 0123456789 >"conftest.in" 7370 while : 7371 do 7372 cat "conftest.in" "conftest.in" >"conftest.tmp" 7373 mv "conftest.tmp" "conftest.in" 7374 cp "conftest.in" "conftest.nl" 7375 $as_echo '' >> "conftest.nl" 7376 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 7377 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7378 as_fn_arith $ac_count + 1 && ac_count=$as_val 7379 if test $ac_count -gt ${ac_path_SED_max-0}; then 7380 # Best one so far, save it but keep looking for a better one 7381 ac_cv_path_SED="$ac_path_SED" 7382 ac_path_SED_max=$ac_count 7383 fi 7384 # 10*(2^10) chars as input seems more than enough 7385 test $ac_count -gt 10 && break 7386 done 7387 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7388 esac 7389 7390 $ac_path_SED_found && break 3 7391 done 7392 done 7393 done 7394 IFS=$as_save_IFS 7395 if test -z "$ac_cv_path_SED"; then 7396 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 7397 fi 7398 else 7399 ac_cv_path_SED=$SED 7400 fi 7401 7402 fi 7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 7404 $as_echo "$ac_cv_path_SED" >&6; } 7405 SED="$ac_cv_path_SED" 7406 rm -f conftest.sed 7407 7408 test -z "$SED" && SED=sed 7409 Xsed="$SED -e 1s/^X//" 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 7422 $as_echo_n "checking for fgrep... " >&6; } 7423 if ${ac_cv_path_FGREP+:} false; then : 7424 $as_echo_n "(cached) " >&6 7425 else 7426 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 7427 then ac_cv_path_FGREP="$GREP -F" 7428 else 7429 if test -z "$FGREP"; then 7430 ac_path_FGREP_found=false 7431 # Loop through the user's path and test for each of PROGNAME-LIST 7432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7433 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7434 do 7435 IFS=$as_save_IFS 7436 test -z "$as_dir" && as_dir=. 7437 for ac_prog in fgrep; do 7438 for ac_exec_ext in '' $ac_executable_extensions; do 7439 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 7440 as_fn_executable_p "$ac_path_FGREP" || continue 7441 # Check for GNU ac_path_FGREP and select it if it is found. 7442 # Check for GNU $ac_path_FGREP 7443 case `"$ac_path_FGREP" --version 2>&1` in 7444 *GNU*) 7445 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 7446 *) 7447 ac_count=0 7448 $as_echo_n 0123456789 >"conftest.in" 7449 while : 7450 do 7451 cat "conftest.in" "conftest.in" >"conftest.tmp" 7452 mv "conftest.tmp" "conftest.in" 7453 cp "conftest.in" "conftest.nl" 7454 $as_echo 'FGREP' >> "conftest.nl" 7455 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 7456 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7457 as_fn_arith $ac_count + 1 && ac_count=$as_val 7458 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 7459 # Best one so far, save it but keep looking for a better one 7460 ac_cv_path_FGREP="$ac_path_FGREP" 7461 ac_path_FGREP_max=$ac_count 7462 fi 7463 # 10*(2^10) chars as input seems more than enough 7464 test $ac_count -gt 10 && break 7465 done 7466 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7467 esac 7468 7469 $ac_path_FGREP_found && break 3 7470 done 7471 done 7472 done 7473 IFS=$as_save_IFS 7474 if test -z "$ac_cv_path_FGREP"; then 7475 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7476 fi 7477 else 7478 ac_cv_path_FGREP=$FGREP 7479 fi 7480 7481 fi 7482 fi 7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 7484 $as_echo "$ac_cv_path_FGREP" >&6; } 7485 FGREP="$ac_cv_path_FGREP" 7486 7487 7488 test -z "$GREP" && GREP=grep 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 # Check whether --with-gnu-ld was given. 7509 if test "${with_gnu_ld+set}" = set; then : 7510 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 7511 else 7512 with_gnu_ld=no 7513 fi 7514 7515 ac_prog=ld 7516 if test yes = "$GCC"; then 7517 # Check if gcc -print-prog-name=ld gives a path. 7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 7519 $as_echo_n "checking for ld used by $CC... " >&6; } 7520 case $host in 7521 *-*-mingw*) 7522 # gcc leaves a trailing carriage return, which upsets mingw 7523 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7524 *) 7525 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7526 esac 7527 case $ac_prog in 7528 # Accept absolute paths. 7529 [\\/]* | ?:[\\/]*) 7530 re_direlt='/[^/][^/]*/\.\./' 7531 # Canonicalize the pathname of ld 7532 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 7533 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 7534 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 7535 done 7536 test -z "$LD" && LD=$ac_prog 7537 ;; 7538 "") 7539 # If it fails, then pretend we aren't using GCC. 7540 ac_prog=ld 7541 ;; 7542 *) 7543 # If it is relative, then search for the first ld in PATH. 7544 with_gnu_ld=unknown 7545 ;; 7546 esac 7547 elif test yes = "$with_gnu_ld"; then 7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 7549 $as_echo_n "checking for GNU ld... " >&6; } 7550 else 7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 7552 $as_echo_n "checking for non-GNU ld... " >&6; } 7553 fi 7554 if ${lt_cv_path_LD+:} false; then : 7555 $as_echo_n "(cached) " >&6 7556 else 7557 if test -z "$LD"; then 7558 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7559 for ac_dir in $PATH; do 7560 IFS=$lt_save_ifs 7561 test -z "$ac_dir" && ac_dir=. 7562 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7563 lt_cv_path_LD=$ac_dir/$ac_prog 7564 # Check to see if the program is GNU ld. I'd rather use --version, 7565 # but apparently some variants of GNU ld only accept -v. 7566 # Break only if it was the GNU/non-GNU ld that we prefer. 7567 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 7568 *GNU* | *'with BFD'*) 7569 test no != "$with_gnu_ld" && break 7570 ;; 7571 *) 7572 test yes != "$with_gnu_ld" && break 7573 ;; 7574 esac 7575 fi 7576 done 7577 IFS=$lt_save_ifs 7578 else 7579 lt_cv_path_LD=$LD # Let the user override the test with a path. 7580 fi 7581 fi 7582 7583 LD=$lt_cv_path_LD 7584 if test -n "$LD"; then 7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 7586 $as_echo "$LD" >&6; } 7587 else 7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7589 $as_echo "no" >&6; } 7590 fi 7591 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 7593 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 7594 if ${lt_cv_prog_gnu_ld+:} false; then : 7595 $as_echo_n "(cached) " >&6 7596 else 7597 # I'd rather use --version here, but apparently some GNU lds only accept -v. 7598 case `$LD -v 2>&1 </dev/null` in 7599 *GNU* | *'with BFD'*) 7600 lt_cv_prog_gnu_ld=yes 7601 ;; 7602 *) 7603 lt_cv_prog_gnu_ld=no 7604 ;; 7605 esac 7606 fi 7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 7608 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 7609 with_gnu_ld=$lt_cv_prog_gnu_ld 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 7620 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 7621 if ${lt_cv_path_NM+:} false; then : 7622 $as_echo_n "(cached) " >&6 7623 else 7624 if test -n "$NM"; then 7625 # Let the user override the test. 7626 lt_cv_path_NM=$NM 7627 else 7628 lt_nm_to_check=${ac_tool_prefix}nm 7629 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 7630 lt_nm_to_check="$lt_nm_to_check nm" 7631 fi 7632 for lt_tmp_nm in $lt_nm_to_check; do 7633 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7634 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 7635 IFS=$lt_save_ifs 7636 test -z "$ac_dir" && ac_dir=. 7637 tmp_nm=$ac_dir/$lt_tmp_nm 7638 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 7639 # Check to see if the nm accepts a BSD-compat flag. 7640 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 7641 # nm: unknown option "B" ignored 7642 # Tru64's nm complains that /dev/null is an invalid object file 7643 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 7644 case $build_os in 7645 mingw*) lt_bad_file=conftest.nm/nofile ;; 7646 *) lt_bad_file=/dev/null ;; 7647 esac 7648 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 7649 *$lt_bad_file* | *'Invalid file or object type'*) 7650 lt_cv_path_NM="$tmp_nm -B" 7651 break 2 7652 ;; 7653 *) 7654 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 7655 */dev/null*) 7656 lt_cv_path_NM="$tmp_nm -p" 7657 break 2 7658 ;; 7659 *) 7660 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 7661 continue # so that we can try to find one that supports BSD flags 7662 ;; 7663 esac 7664 ;; 7665 esac 7666 fi 7667 done 7668 IFS=$lt_save_ifs 7669 done 7670 : ${lt_cv_path_NM=no} 7671 fi 7672 fi 7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 7674 $as_echo "$lt_cv_path_NM" >&6; } 7675 if test no != "$lt_cv_path_NM"; then 7676 NM=$lt_cv_path_NM 7677 else 7678 # Didn't find any BSD compatible name lister, look for dumpbin. 7679 if test -n "$DUMPBIN"; then : 7680 # Let the user override the test. 7681 else 7682 if test -n "$ac_tool_prefix"; then 7683 for ac_prog in dumpbin "link -dump" 7684 do 7685 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7686 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7688 $as_echo_n "checking for $ac_word... " >&6; } 7689 if ${ac_cv_prog_DUMPBIN+:} false; then : 7690 $as_echo_n "(cached) " >&6 7691 else 7692 if test -n "$DUMPBIN"; then 7693 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 7694 else 7695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7696 for as_dir in $PATH 7697 do 7698 IFS=$as_save_IFS 7699 test -z "$as_dir" && as_dir=. 7700 for ac_exec_ext in '' $ac_executable_extensions; do 7701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7702 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 7703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7704 break 2 7705 fi 7706 done 7707 done 7708 IFS=$as_save_IFS 7709 7710 fi 7711 fi 7712 DUMPBIN=$ac_cv_prog_DUMPBIN 7713 if test -n "$DUMPBIN"; then 7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 7715 $as_echo "$DUMPBIN" >&6; } 7716 else 7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7718 $as_echo "no" >&6; } 7719 fi 7720 7721 7722 test -n "$DUMPBIN" && break 7723 done 7724 fi 7725 if test -z "$DUMPBIN"; then 7726 ac_ct_DUMPBIN=$DUMPBIN 7727 for ac_prog in dumpbin "link -dump" 7728 do 7729 # Extract the first word of "$ac_prog", so it can be a program name with args. 7730 set dummy $ac_prog; ac_word=$2 7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7732 $as_echo_n "checking for $ac_word... " >&6; } 7733 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 7734 $as_echo_n "(cached) " >&6 7735 else 7736 if test -n "$ac_ct_DUMPBIN"; then 7737 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 7738 else 7739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7740 for as_dir in $PATH 7741 do 7742 IFS=$as_save_IFS 7743 test -z "$as_dir" && as_dir=. 7744 for ac_exec_ext in '' $ac_executable_extensions; do 7745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7746 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 7747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7748 break 2 7749 fi 7750 done 7751 done 7752 IFS=$as_save_IFS 7753 7754 fi 7755 fi 7756 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 7757 if test -n "$ac_ct_DUMPBIN"; then 7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 7759 $as_echo "$ac_ct_DUMPBIN" >&6; } 7760 else 7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7762 $as_echo "no" >&6; } 7763 fi 7764 7765 7766 test -n "$ac_ct_DUMPBIN" && break 7767 done 7768 7769 if test "x$ac_ct_DUMPBIN" = x; then 7770 DUMPBIN=":" 7771 else 7772 case $cross_compiling:$ac_tool_warned in 7773 yes:) 7774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7776 ac_tool_warned=yes ;; 7777 esac 7778 DUMPBIN=$ac_ct_DUMPBIN 7779 fi 7780 fi 7781 7782 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 7783 *COFF*) 7784 DUMPBIN="$DUMPBIN -symbols -headers" 7785 ;; 7786 *) 7787 DUMPBIN=: 7788 ;; 7789 esac 7790 fi 7791 7792 if test : != "$DUMPBIN"; then 7793 NM=$DUMPBIN 7794 fi 7795 fi 7796 test -z "$NM" && NM=nm 7797 7798 7799 7800 7801 7802 7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 7804 $as_echo_n "checking the name lister ($NM) interface... " >&6; } 7805 if ${lt_cv_nm_interface+:} false; then : 7806 $as_echo_n "(cached) " >&6 7807 else 7808 lt_cv_nm_interface="BSD nm" 7809 echo "int some_variable = 0;" > conftest.$ac_ext 7810 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 7811 (eval "$ac_compile" 2>conftest.err) 7812 cat conftest.err >&5 7813 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 7814 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 7815 cat conftest.err >&5 7816 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 7817 cat conftest.out >&5 7818 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 7819 lt_cv_nm_interface="MS dumpbin" 7820 fi 7821 rm -f conftest* 7822 fi 7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 7824 $as_echo "$lt_cv_nm_interface" >&6; } 7825 7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 7827 $as_echo_n "checking whether ln -s works... " >&6; } 7828 LN_S=$as_ln_s 7829 if test "$LN_S" = "ln -s"; then 7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7831 $as_echo "yes" >&6; } 7832 else 7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 7834 $as_echo "no, using $LN_S" >&6; } 7835 fi 7836 7837 # find the maximum length of command line arguments 7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 7839 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 7840 if ${lt_cv_sys_max_cmd_len+:} false; then : 7841 $as_echo_n "(cached) " >&6 7842 else 7843 i=0 7844 teststring=ABCD 7845 7846 case $build_os in 7847 msdosdjgpp*) 7848 # On DJGPP, this test can blow up pretty badly due to problems in libc 7849 # (any single argument exceeding 2000 bytes causes a buffer overrun 7850 # during glob expansion). Even if it were fixed, the result of this 7851 # check would be larger than it should be. 7852 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7853 ;; 7854 7855 gnu*) 7856 # Under GNU Hurd, this test is not required because there is 7857 # no limit to the length of command line arguments. 7858 # Libtool will interpret -1 as no limit whatsoever 7859 lt_cv_sys_max_cmd_len=-1; 7860 ;; 7861 7862 cygwin* | mingw* | cegcc*) 7863 # On Win9x/ME, this test blows up -- it succeeds, but takes 7864 # about 5 minutes as the teststring grows exponentially. 7865 # Worse, since 9x/ME are not pre-emptively multitasking, 7866 # you end up with a "frozen" computer, even though with patience 7867 # the test eventually succeeds (with a max line length of 256k). 7868 # Instead, let's just punt: use the minimum linelength reported by 7869 # all of the supported platforms: 8192 (on NT/2K/XP). 7870 lt_cv_sys_max_cmd_len=8192; 7871 ;; 7872 7873 mint*) 7874 # On MiNT this can take a long time and run out of memory. 7875 lt_cv_sys_max_cmd_len=8192; 7876 ;; 7877 7878 amigaos*) 7879 # On AmigaOS with pdksh, this test takes hours, literally. 7880 # So we just punt and use a minimum line length of 8192. 7881 lt_cv_sys_max_cmd_len=8192; 7882 ;; 7883 7884 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 7885 # This has been around since 386BSD, at least. Likely further. 7886 if test -x /sbin/sysctl; then 7887 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7888 elif test -x /usr/sbin/sysctl; then 7889 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7890 else 7891 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7892 fi 7893 # And add a safety zone 7894 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7895 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7896 ;; 7897 7898 interix*) 7899 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7900 lt_cv_sys_max_cmd_len=196608 7901 ;; 7902 7903 os2*) 7904 # The test takes a long time on OS/2. 7905 lt_cv_sys_max_cmd_len=8192 7906 ;; 7907 7908 osf*) 7909 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7910 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7911 # nice to cause kernel panics so lets avoid the loop below. 7912 # First set a reasonable default. 7913 lt_cv_sys_max_cmd_len=16384 7914 # 7915 if test -x /sbin/sysconfig; then 7916 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7917 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7918 esac 7919 fi 7920 ;; 7921 sco3.2v5*) 7922 lt_cv_sys_max_cmd_len=102400 7923 ;; 7924 sysv5* | sco5v6* | sysv4.2uw2*) 7925 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7926 if test -n "$kargmax"; then 7927 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7928 else 7929 lt_cv_sys_max_cmd_len=32768 7930 fi 7931 ;; 7932 *) 7933 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 7934 if test -n "$lt_cv_sys_max_cmd_len" && \ 7935 test undefined != "$lt_cv_sys_max_cmd_len"; then 7936 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7937 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7938 else 7939 # Make teststring a little bigger before we do anything with it. 7940 # a 1K string should be a reasonable start. 7941 for i in 1 2 3 4 5 6 7 8; do 7942 teststring=$teststring$teststring 7943 done 7944 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7945 # If test is not a shell built-in, we'll probably end up computing a 7946 # maximum length that is only half of the actual maximum length, but 7947 # we can't tell. 7948 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 7949 = "X$teststring$teststring"; } >/dev/null 2>&1 && 7950 test 17 != "$i" # 1/2 MB should be enough 7951 do 7952 i=`expr $i + 1` 7953 teststring=$teststring$teststring 7954 done 7955 # Only check the string length outside the loop. 7956 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 7957 teststring= 7958 # Add a significant safety factor because C++ compilers can tack on 7959 # massive amounts of additional arguments before passing them to the 7960 # linker. It appears as though 1/2 is a usable value. 7961 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7962 fi 7963 ;; 7964 esac 7965 7966 fi 7967 7968 if test -n "$lt_cv_sys_max_cmd_len"; then 7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 7970 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } 7971 else 7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 7973 $as_echo "none" >&6; } 7974 fi 7975 max_cmd_len=$lt_cv_sys_max_cmd_len 7976 7977 7978 7979 7980 7981 7982 : ${CP="cp -f"} 7983 : ${MV="mv -f"} 7984 : ${RM="rm -f"} 7985 7986 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7987 lt_unset=unset 7988 else 7989 lt_unset=false 7990 fi 7991 7992 7993 7994 7995 7996 # test EBCDIC or ASCII 7997 case `echo X|tr X '\101'` in 7998 A) # ASCII based system 7999 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 8000 lt_SP2NL='tr \040 \012' 8001 lt_NL2SP='tr \015\012 \040\040' 8002 ;; 8003 *) # EBCDIC based system 8004 lt_SP2NL='tr \100 \n' 8005 lt_NL2SP='tr \r\n \100\100' 8006 ;; 8007 esac 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 8018 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } 8019 if ${lt_cv_to_host_file_cmd+:} false; then : 8020 $as_echo_n "(cached) " >&6 8021 else 8022 case $host in 8023 *-*-mingw* ) 8024 case $build in 8025 *-*-mingw* ) # actually msys 8026 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 8027 ;; 8028 *-*-cygwin* ) 8029 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 8030 ;; 8031 * ) # otherwise, assume *nix 8032 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 8033 ;; 8034 esac 8035 ;; 8036 *-*-cygwin* ) 8037 case $build in 8038 *-*-mingw* ) # actually msys 8039 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 8040 ;; 8041 *-*-cygwin* ) 8042 lt_cv_to_host_file_cmd=func_convert_file_noop 8043 ;; 8044 * ) # otherwise, assume *nix 8045 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 8046 ;; 8047 esac 8048 ;; 8049 * ) # unhandled hosts (and "normal" native builds) 8050 lt_cv_to_host_file_cmd=func_convert_file_noop 8051 ;; 8052 esac 8053 8054 fi 8055 8056 to_host_file_cmd=$lt_cv_to_host_file_cmd 8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 8058 $as_echo "$lt_cv_to_host_file_cmd" >&6; } 8059 8060 8061 8062 8063 8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 8065 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 8066 if ${lt_cv_to_tool_file_cmd+:} false; then : 8067 $as_echo_n "(cached) " >&6 8068 else 8069 #assume ordinary cross tools, or native build. 8070 lt_cv_to_tool_file_cmd=func_convert_file_noop 8071 case $host in 8072 *-*-mingw* ) 8073 case $build in 8074 *-*-mingw* ) # actually msys 8075 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 8076 ;; 8077 esac 8078 ;; 8079 esac 8080 8081 fi 8082 8083 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 8085 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } 8086 8087 8088 8089 8090 8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 8092 $as_echo_n "checking for $LD option to reload object files... " >&6; } 8093 if ${lt_cv_ld_reload_flag+:} false; then : 8094 $as_echo_n "(cached) " >&6 8095 else 8096 lt_cv_ld_reload_flag='-r' 8097 fi 8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 8099 $as_echo "$lt_cv_ld_reload_flag" >&6; } 8100 reload_flag=$lt_cv_ld_reload_flag 8101 case $reload_flag in 8102 "" | " "*) ;; 8103 *) reload_flag=" $reload_flag" ;; 8104 esac 8105 reload_cmds='$LD$reload_flag -o $output$reload_objs' 8106 case $host_os in 8107 cygwin* | mingw* | pw32* | cegcc*) 8108 if test yes != "$GCC"; then 8109 reload_cmds=false 8110 fi 8111 ;; 8112 darwin*) 8113 if test yes = "$GCC"; then 8114 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 8115 else 8116 reload_cmds='$LD$reload_flag -o $output$reload_objs' 8117 fi 8118 ;; 8119 esac 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 if test -n "$ac_tool_prefix"; then 8130 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8131 set dummy ${ac_tool_prefix}objdump; ac_word=$2 8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8133 $as_echo_n "checking for $ac_word... " >&6; } 8134 if ${ac_cv_prog_OBJDUMP+:} false; then : 8135 $as_echo_n "(cached) " >&6 8136 else 8137 if test -n "$OBJDUMP"; then 8138 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8139 else 8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8141 for as_dir in $PATH 8142 do 8143 IFS=$as_save_IFS 8144 test -z "$as_dir" && as_dir=. 8145 for ac_exec_ext in '' $ac_executable_extensions; do 8146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8147 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8149 break 2 8150 fi 8151 done 8152 done 8153 IFS=$as_save_IFS 8154 8155 fi 8156 fi 8157 OBJDUMP=$ac_cv_prog_OBJDUMP 8158 if test -n "$OBJDUMP"; then 8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8160 $as_echo "$OBJDUMP" >&6; } 8161 else 8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8163 $as_echo "no" >&6; } 8164 fi 8165 8166 8167 fi 8168 if test -z "$ac_cv_prog_OBJDUMP"; then 8169 ac_ct_OBJDUMP=$OBJDUMP 8170 # Extract the first word of "objdump", so it can be a program name with args. 8171 set dummy objdump; ac_word=$2 8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8173 $as_echo_n "checking for $ac_word... " >&6; } 8174 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8175 $as_echo_n "(cached) " >&6 8176 else 8177 if test -n "$ac_ct_OBJDUMP"; then 8178 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8179 else 8180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8181 for as_dir in $PATH 8182 do 8183 IFS=$as_save_IFS 8184 test -z "$as_dir" && as_dir=. 8185 for ac_exec_ext in '' $ac_executable_extensions; do 8186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8187 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8189 break 2 8190 fi 8191 done 8192 done 8193 IFS=$as_save_IFS 8194 8195 fi 8196 fi 8197 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8198 if test -n "$ac_ct_OBJDUMP"; then 8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8200 $as_echo "$ac_ct_OBJDUMP" >&6; } 8201 else 8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8203 $as_echo "no" >&6; } 8204 fi 8205 8206 if test "x$ac_ct_OBJDUMP" = x; then 8207 OBJDUMP="false" 8208 else 8209 case $cross_compiling:$ac_tool_warned in 8210 yes:) 8211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8213 ac_tool_warned=yes ;; 8214 esac 8215 OBJDUMP=$ac_ct_OBJDUMP 8216 fi 8217 else 8218 OBJDUMP="$ac_cv_prog_OBJDUMP" 8219 fi 8220 8221 test -z "$OBJDUMP" && OBJDUMP=objdump 8222 8223 8224 8225 8226 8227 8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 8229 $as_echo_n "checking how to recognize dependent libraries... " >&6; } 8230 if ${lt_cv_deplibs_check_method+:} false; then : 8231 $as_echo_n "(cached) " >&6 8232 else 8233 lt_cv_file_magic_cmd='$MAGIC_CMD' 8234 lt_cv_file_magic_test_file= 8235 lt_cv_deplibs_check_method='unknown' 8236 # Need to set the preceding variable on all platforms that support 8237 # interlibrary dependencies. 8238 # 'none' -- dependencies not supported. 8239 # 'unknown' -- same as none, but documents that we really don't know. 8240 # 'pass_all' -- all dependencies passed with no checks. 8241 # 'test_compile' -- check by making test program. 8242 # 'file_magic [[regex]]' -- check by looking for files in library path 8243 # that responds to the $file_magic_cmd with a given extended regex. 8244 # If you have 'file' or equivalent on your system and you're not sure 8245 # whether 'pass_all' will *always* work, you probably want this one. 8246 8247 case $host_os in 8248 aix[4-9]*) 8249 lt_cv_deplibs_check_method=pass_all 8250 ;; 8251 8252 beos*) 8253 lt_cv_deplibs_check_method=pass_all 8254 ;; 8255 8256 bsdi[45]*) 8257 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 8258 lt_cv_file_magic_cmd='/usr/bin/file -L' 8259 lt_cv_file_magic_test_file=/shlib/libc.so 8260 ;; 8261 8262 cygwin*) 8263 # func_win32_libid is a shell function defined in ltmain.sh 8264 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8265 lt_cv_file_magic_cmd='func_win32_libid' 8266 ;; 8267 8268 mingw* | pw32*) 8269 # Base MSYS/MinGW do not provide the 'file' command needed by 8270 # func_win32_libid shell function, so use a weaker test based on 'objdump', 8271 # unless we find 'file', for example because we are cross-compiling. 8272 if ( file / ) >/dev/null 2>&1; then 8273 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8274 lt_cv_file_magic_cmd='func_win32_libid' 8275 else 8276 # Keep this pattern in sync with the one in func_win32_libid. 8277 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 8278 lt_cv_file_magic_cmd='$OBJDUMP -f' 8279 fi 8280 ;; 8281 8282 cegcc*) 8283 # use the weaker test based on 'objdump'. See mingw*. 8284 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 8285 lt_cv_file_magic_cmd='$OBJDUMP -f' 8286 ;; 8287 8288 darwin* | rhapsody*) 8289 lt_cv_deplibs_check_method=pass_all 8290 ;; 8291 8292 freebsd* | dragonfly*) 8293 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8294 case $host_cpu in 8295 i*86 ) 8296 # Not sure whether the presence of OpenBSD here was a mistake. 8297 # Let's accept both of them until this is cleared up. 8298 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 8299 lt_cv_file_magic_cmd=/usr/bin/file 8300 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 8301 ;; 8302 esac 8303 else 8304 lt_cv_deplibs_check_method=pass_all 8305 fi 8306 ;; 8307 8308 haiku*) 8309 lt_cv_deplibs_check_method=pass_all 8310 ;; 8311 8312 hpux10.20* | hpux11*) 8313 lt_cv_file_magic_cmd=/usr/bin/file 8314 case $host_cpu in 8315 ia64*) 8316 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 8317 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 8318 ;; 8319 hppa*64*) 8320 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 8321 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 8322 ;; 8323 *) 8324 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 8325 lt_cv_file_magic_test_file=/usr/lib/libc.sl 8326 ;; 8327 esac 8328 ;; 8329 8330 interix[3-9]*) 8331 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 8332 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 8333 ;; 8334 8335 irix5* | irix6* | nonstopux*) 8336 case $LD in 8337 *-32|*"-32 ") libmagic=32-bit;; 8338 *-n32|*"-n32 ") libmagic=N32;; 8339 *-64|*"-64 ") libmagic=64-bit;; 8340 *) libmagic=never-match;; 8341 esac 8342 lt_cv_deplibs_check_method=pass_all 8343 ;; 8344 8345 # This must be glibc/ELF. 8346 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8347 lt_cv_deplibs_check_method=pass_all 8348 ;; 8349 8350 netbsd* | netbsdelf*-gnu) 8351 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8352 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8353 else 8354 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 8355 fi 8356 ;; 8357 8358 newos6*) 8359 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 8360 lt_cv_file_magic_cmd=/usr/bin/file 8361 lt_cv_file_magic_test_file=/usr/lib/libnls.so 8362 ;; 8363 8364 *nto* | *qnx*) 8365 lt_cv_deplibs_check_method=pass_all 8366 ;; 8367 8368 openbsd* | bitrig*) 8369 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 8370 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 8371 else 8372 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8373 fi 8374 ;; 8375 8376 osf3* | osf4* | osf5*) 8377 lt_cv_deplibs_check_method=pass_all 8378 ;; 8379 8380 rdos*) 8381 lt_cv_deplibs_check_method=pass_all 8382 ;; 8383 8384 solaris*) 8385 lt_cv_deplibs_check_method=pass_all 8386 ;; 8387 8388 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8389 lt_cv_deplibs_check_method=pass_all 8390 ;; 8391 8392 sysv4 | sysv4.3*) 8393 case $host_vendor in 8394 motorola) 8395 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 8396 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 8397 ;; 8398 ncr) 8399 lt_cv_deplibs_check_method=pass_all 8400 ;; 8401 sequent) 8402 lt_cv_file_magic_cmd='/bin/file' 8403 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 8404 ;; 8405 sni) 8406 lt_cv_file_magic_cmd='/bin/file' 8407 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 8408 lt_cv_file_magic_test_file=/lib/libc.so 8409 ;; 8410 siemens) 8411 lt_cv_deplibs_check_method=pass_all 8412 ;; 8413 pc) 8414 lt_cv_deplibs_check_method=pass_all 8415 ;; 8416 esac 8417 ;; 8418 8419 tpf*) 8420 lt_cv_deplibs_check_method=pass_all 8421 ;; 8422 os2*) 8423 lt_cv_deplibs_check_method=pass_all 8424 ;; 8425 esac 8426 8427 fi 8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 8429 $as_echo "$lt_cv_deplibs_check_method" >&6; } 8430 8431 file_magic_glob= 8432 want_nocaseglob=no 8433 if test "$build" = "$host"; then 8434 case $host_os in 8435 mingw* | pw32*) 8436 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 8437 want_nocaseglob=yes 8438 else 8439 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 8440 fi 8441 ;; 8442 esac 8443 fi 8444 8445 file_magic_cmd=$lt_cv_file_magic_cmd 8446 deplibs_check_method=$lt_cv_deplibs_check_method 8447 test -z "$deplibs_check_method" && deplibs_check_method=unknown 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 if test -n "$ac_tool_prefix"; then 8471 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8472 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8474 $as_echo_n "checking for $ac_word... " >&6; } 8475 if ${ac_cv_prog_DLLTOOL+:} false; then : 8476 $as_echo_n "(cached) " >&6 8477 else 8478 if test -n "$DLLTOOL"; then 8479 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8480 else 8481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8482 for as_dir in $PATH 8483 do 8484 IFS=$as_save_IFS 8485 test -z "$as_dir" && as_dir=. 8486 for ac_exec_ext in '' $ac_executable_extensions; do 8487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8488 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8490 break 2 8491 fi 8492 done 8493 done 8494 IFS=$as_save_IFS 8495 8496 fi 8497 fi 8498 DLLTOOL=$ac_cv_prog_DLLTOOL 8499 if test -n "$DLLTOOL"; then 8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8501 $as_echo "$DLLTOOL" >&6; } 8502 else 8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8504 $as_echo "no" >&6; } 8505 fi 8506 8507 8508 fi 8509 if test -z "$ac_cv_prog_DLLTOOL"; then 8510 ac_ct_DLLTOOL=$DLLTOOL 8511 # Extract the first word of "dlltool", so it can be a program name with args. 8512 set dummy dlltool; ac_word=$2 8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8514 $as_echo_n "checking for $ac_word... " >&6; } 8515 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8516 $as_echo_n "(cached) " >&6 8517 else 8518 if test -n "$ac_ct_DLLTOOL"; then 8519 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8520 else 8521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8522 for as_dir in $PATH 8523 do 8524 IFS=$as_save_IFS 8525 test -z "$as_dir" && as_dir=. 8526 for ac_exec_ext in '' $ac_executable_extensions; do 8527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8528 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8530 break 2 8531 fi 8532 done 8533 done 8534 IFS=$as_save_IFS 8535 8536 fi 8537 fi 8538 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8539 if test -n "$ac_ct_DLLTOOL"; then 8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8541 $as_echo "$ac_ct_DLLTOOL" >&6; } 8542 else 8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8544 $as_echo "no" >&6; } 8545 fi 8546 8547 if test "x$ac_ct_DLLTOOL" = x; then 8548 DLLTOOL="false" 8549 else 8550 case $cross_compiling:$ac_tool_warned in 8551 yes:) 8552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8554 ac_tool_warned=yes ;; 8555 esac 8556 DLLTOOL=$ac_ct_DLLTOOL 8557 fi 8558 else 8559 DLLTOOL="$ac_cv_prog_DLLTOOL" 8560 fi 8561 8562 test -z "$DLLTOOL" && DLLTOOL=dlltool 8563 8564 8565 8566 8567 8568 8569 8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 8571 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } 8572 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 8573 $as_echo_n "(cached) " >&6 8574 else 8575 lt_cv_sharedlib_from_linklib_cmd='unknown' 8576 8577 case $host_os in 8578 cygwin* | mingw* | pw32* | cegcc*) 8579 # two different shell functions defined in ltmain.sh; 8580 # decide which one to use based on capabilities of $DLLTOOL 8581 case `$DLLTOOL --help 2>&1` in 8582 *--identify-strict*) 8583 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 8584 ;; 8585 *) 8586 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 8587 ;; 8588 esac 8589 ;; 8590 *) 8591 # fallback: assume linklib IS sharedlib 8592 lt_cv_sharedlib_from_linklib_cmd=$ECHO 8593 ;; 8594 esac 8595 8596 fi 8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 8598 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 8599 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 8600 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 8601 8602 8603 8604 8605 8606 8607 8608 if test -n "$ac_tool_prefix"; then 8609 for ac_prog in ar 8610 do 8611 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8612 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8614 $as_echo_n "checking for $ac_word... " >&6; } 8615 if ${ac_cv_prog_AR+:} false; then : 8616 $as_echo_n "(cached) " >&6 8617 else 8618 if test -n "$AR"; then 8619 ac_cv_prog_AR="$AR" # Let the user override the test. 8620 else 8621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8622 for as_dir in $PATH 8623 do 8624 IFS=$as_save_IFS 8625 test -z "$as_dir" && as_dir=. 8626 for ac_exec_ext in '' $ac_executable_extensions; do 8627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8628 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 8629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8630 break 2 8631 fi 8632 done 8633 done 8634 IFS=$as_save_IFS 8635 8636 fi 8637 fi 8638 AR=$ac_cv_prog_AR 8639 if test -n "$AR"; then 8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8641 $as_echo "$AR" >&6; } 8642 else 8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8644 $as_echo "no" >&6; } 8645 fi 8646 8647 8648 test -n "$AR" && break 8649 done 8650 fi 8651 if test -z "$AR"; then 8652 ac_ct_AR=$AR 8653 for ac_prog in ar 8654 do 8655 # Extract the first word of "$ac_prog", so it can be a program name with args. 8656 set dummy $ac_prog; ac_word=$2 8657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8658 $as_echo_n "checking for $ac_word... " >&6; } 8659 if ${ac_cv_prog_ac_ct_AR+:} false; then : 8660 $as_echo_n "(cached) " >&6 8661 else 8662 if test -n "$ac_ct_AR"; then 8663 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8664 else 8665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8666 for as_dir in $PATH 8667 do 8668 IFS=$as_save_IFS 8669 test -z "$as_dir" && as_dir=. 8670 for ac_exec_ext in '' $ac_executable_extensions; do 8671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8672 ac_cv_prog_ac_ct_AR="$ac_prog" 8673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8674 break 2 8675 fi 8676 done 8677 done 8678 IFS=$as_save_IFS 8679 8680 fi 8681 fi 8682 ac_ct_AR=$ac_cv_prog_ac_ct_AR 8683 if test -n "$ac_ct_AR"; then 8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8685 $as_echo "$ac_ct_AR" >&6; } 8686 else 8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8688 $as_echo "no" >&6; } 8689 fi 8690 8691 8692 test -n "$ac_ct_AR" && break 8693 done 8694 8695 if test "x$ac_ct_AR" = x; then 8696 AR="false" 8697 else 8698 case $cross_compiling:$ac_tool_warned in 8699 yes:) 8700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8702 ac_tool_warned=yes ;; 8703 esac 8704 AR=$ac_ct_AR 8705 fi 8706 fi 8707 8708 : ${AR=ar} 8709 : ${AR_FLAGS=cru} 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 8722 $as_echo_n "checking for archiver @FILE support... " >&6; } 8723 if ${lt_cv_ar_at_file+:} false; then : 8724 $as_echo_n "(cached) " >&6 8725 else 8726 lt_cv_ar_at_file=no 8727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8728 /* end confdefs.h. */ 8729 8730 int main (void) 8731 { 8732 8733 ; 8734 return 0; 8735 } 8736 _ACEOF 8737 if ac_fn_c_try_compile "$LINENO"; then : 8738 echo conftest.$ac_objext > conftest.lst 8739 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 8740 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8741 (eval $lt_ar_try) 2>&5 8742 ac_status=$? 8743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8744 test $ac_status = 0; } 8745 if test 0 -eq "$ac_status"; then 8746 # Ensure the archiver fails upon bogus file names. 8747 rm -f conftest.$ac_objext libconftest.a 8748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8749 (eval $lt_ar_try) 2>&5 8750 ac_status=$? 8751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8752 test $ac_status = 0; } 8753 if test 0 -ne "$ac_status"; then 8754 lt_cv_ar_at_file=@ 8755 fi 8756 fi 8757 rm -f conftest.* libconftest.a 8758 8759 fi 8760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8761 8762 fi 8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 8764 $as_echo "$lt_cv_ar_at_file" >&6; } 8765 8766 if test no = "$lt_cv_ar_at_file"; then 8767 archiver_list_spec= 8768 else 8769 archiver_list_spec=$lt_cv_ar_at_file 8770 fi 8771 8772 8773 8774 8775 8776 8777 8778 if test -n "$ac_tool_prefix"; then 8779 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8780 set dummy ${ac_tool_prefix}strip; ac_word=$2 8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8782 $as_echo_n "checking for $ac_word... " >&6; } 8783 if ${ac_cv_prog_STRIP+:} false; then : 8784 $as_echo_n "(cached) " >&6 8785 else 8786 if test -n "$STRIP"; then 8787 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8788 else 8789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8790 for as_dir in $PATH 8791 do 8792 IFS=$as_save_IFS 8793 test -z "$as_dir" && as_dir=. 8794 for ac_exec_ext in '' $ac_executable_extensions; do 8795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8796 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8798 break 2 8799 fi 8800 done 8801 done 8802 IFS=$as_save_IFS 8803 8804 fi 8805 fi 8806 STRIP=$ac_cv_prog_STRIP 8807 if test -n "$STRIP"; then 8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 8809 $as_echo "$STRIP" >&6; } 8810 else 8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8812 $as_echo "no" >&6; } 8813 fi 8814 8815 8816 fi 8817 if test -z "$ac_cv_prog_STRIP"; then 8818 ac_ct_STRIP=$STRIP 8819 # Extract the first word of "strip", so it can be a program name with args. 8820 set dummy strip; ac_word=$2 8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8822 $as_echo_n "checking for $ac_word... " >&6; } 8823 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 8824 $as_echo_n "(cached) " >&6 8825 else 8826 if test -n "$ac_ct_STRIP"; then 8827 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8828 else 8829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8830 for as_dir in $PATH 8831 do 8832 IFS=$as_save_IFS 8833 test -z "$as_dir" && as_dir=. 8834 for ac_exec_ext in '' $ac_executable_extensions; do 8835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8836 ac_cv_prog_ac_ct_STRIP="strip" 8837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8838 break 2 8839 fi 8840 done 8841 done 8842 IFS=$as_save_IFS 8843 8844 fi 8845 fi 8846 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8847 if test -n "$ac_ct_STRIP"; then 8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 8849 $as_echo "$ac_ct_STRIP" >&6; } 8850 else 8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8852 $as_echo "no" >&6; } 8853 fi 8854 8855 if test "x$ac_ct_STRIP" = x; then 8856 STRIP=":" 8857 else 8858 case $cross_compiling:$ac_tool_warned in 8859 yes:) 8860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8862 ac_tool_warned=yes ;; 8863 esac 8864 STRIP=$ac_ct_STRIP 8865 fi 8866 else 8867 STRIP="$ac_cv_prog_STRIP" 8868 fi 8869 8870 test -z "$STRIP" && STRIP=: 8871 8872 8873 8874 8875 8876 8877 if test -n "$ac_tool_prefix"; then 8878 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8879 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8881 $as_echo_n "checking for $ac_word... " >&6; } 8882 if ${ac_cv_prog_RANLIB+:} false; then : 8883 $as_echo_n "(cached) " >&6 8884 else 8885 if test -n "$RANLIB"; then 8886 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8887 else 8888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8889 for as_dir in $PATH 8890 do 8891 IFS=$as_save_IFS 8892 test -z "$as_dir" && as_dir=. 8893 for ac_exec_ext in '' $ac_executable_extensions; do 8894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8895 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8897 break 2 8898 fi 8899 done 8900 done 8901 IFS=$as_save_IFS 8902 8903 fi 8904 fi 8905 RANLIB=$ac_cv_prog_RANLIB 8906 if test -n "$RANLIB"; then 8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8908 $as_echo "$RANLIB" >&6; } 8909 else 8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8911 $as_echo "no" >&6; } 8912 fi 8913 8914 8915 fi 8916 if test -z "$ac_cv_prog_RANLIB"; then 8917 ac_ct_RANLIB=$RANLIB 8918 # Extract the first word of "ranlib", so it can be a program name with args. 8919 set dummy ranlib; ac_word=$2 8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8921 $as_echo_n "checking for $ac_word... " >&6; } 8922 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 8923 $as_echo_n "(cached) " >&6 8924 else 8925 if test -n "$ac_ct_RANLIB"; then 8926 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8927 else 8928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8929 for as_dir in $PATH 8930 do 8931 IFS=$as_save_IFS 8932 test -z "$as_dir" && as_dir=. 8933 for ac_exec_ext in '' $ac_executable_extensions; do 8934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8935 ac_cv_prog_ac_ct_RANLIB="ranlib" 8936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8937 break 2 8938 fi 8939 done 8940 done 8941 IFS=$as_save_IFS 8942 8943 fi 8944 fi 8945 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8946 if test -n "$ac_ct_RANLIB"; then 8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8948 $as_echo "$ac_ct_RANLIB" >&6; } 8949 else 8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8951 $as_echo "no" >&6; } 8952 fi 8953 8954 if test "x$ac_ct_RANLIB" = x; then 8955 RANLIB=":" 8956 else 8957 case $cross_compiling:$ac_tool_warned in 8958 yes:) 8959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8961 ac_tool_warned=yes ;; 8962 esac 8963 RANLIB=$ac_ct_RANLIB 8964 fi 8965 else 8966 RANLIB="$ac_cv_prog_RANLIB" 8967 fi 8968 8969 test -z "$RANLIB" && RANLIB=: 8970 8971 8972 8973 8974 8975 8976 # Determine commands to create old-style static archives. 8977 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 8978 old_postinstall_cmds='chmod 644 $oldlib' 8979 old_postuninstall_cmds= 8980 8981 if test -n "$RANLIB"; then 8982 case $host_os in 8983 bitrig* | openbsd*) 8984 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 8985 ;; 8986 *) 8987 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 8988 ;; 8989 esac 8990 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 8991 fi 8992 8993 case $host_os in 8994 darwin*) 8995 lock_old_archive_extraction=yes ;; 8996 *) 8997 lock_old_archive_extraction=no ;; 8998 esac 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 # If no C compiler was specified, use CC. 9039 LTCC=${LTCC-"$CC"} 9040 9041 # If no C compiler flags were specified, use CFLAGS. 9042 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9043 9044 # Allow CC to be a program name with arguments. 9045 compiler=$CC 9046 9047 9048 # Check for command to grab the raw symbol name followed by C symbol from nm. 9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 9050 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 9051 if ${lt_cv_sys_global_symbol_pipe+:} false; then : 9052 $as_echo_n "(cached) " >&6 9053 else 9054 9055 # These are sane defaults that work on at least a few old systems. 9056 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 9057 9058 # Character class describing NM global symbol codes. 9059 symcode='[BCDEGRST]' 9060 9061 # Regexp to match symbols that can be accessed directly from C. 9062 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 9063 9064 # Define system-specific variables. 9065 case $host_os in 9066 aix*) 9067 symcode='[BCDT]' 9068 ;; 9069 cygwin* | mingw* | pw32* | cegcc*) 9070 symcode='[ABCDGISTW]' 9071 ;; 9072 hpux*) 9073 if test ia64 = "$host_cpu"; then 9074 symcode='[ABCDEGRST]' 9075 fi 9076 ;; 9077 irix* | nonstopux*) 9078 symcode='[BCDEGRST]' 9079 ;; 9080 osf*) 9081 symcode='[BCDEGQRST]' 9082 ;; 9083 solaris*) 9084 symcode='[BDRT]' 9085 ;; 9086 sco3.2v5*) 9087 symcode='[DT]' 9088 ;; 9089 sysv4.2uw2*) 9090 symcode='[DT]' 9091 ;; 9092 sysv5* | sco5v6* | unixware* | OpenUNIX*) 9093 symcode='[ABDT]' 9094 ;; 9095 sysv4) 9096 symcode='[DFNSTU]' 9097 ;; 9098 esac 9099 9100 # If we're using GNU nm, then use its standard symbol codes. 9101 case `$NM -V 2>&1` in 9102 *GNU* | *'with BFD'*) 9103 symcode='[ABCDGIRSTW]' ;; 9104 esac 9105 9106 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9107 # Gets list of data symbols to import. 9108 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 9109 # Adjust the below global symbol transforms to fixup imported variables. 9110 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 9111 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 9112 lt_c_name_lib_hook="\ 9113 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 9114 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 9115 else 9116 # Disable hooks by default. 9117 lt_cv_sys_global_symbol_to_import= 9118 lt_cdecl_hook= 9119 lt_c_name_hook= 9120 lt_c_name_lib_hook= 9121 fi 9122 9123 # Transform an extracted symbol line into a proper C declaration. 9124 # Some systems (esp. on ia64) link data and code symbols differently, 9125 # so use this general approach. 9126 lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 9127 $lt_cdecl_hook\ 9128 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 9129 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 9130 9131 # Transform an extracted symbol line into symbol name and symbol address 9132 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 9133 $lt_c_name_hook\ 9134 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 9135 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 9136 9137 # Transform an extracted symbol line into symbol name with lib prefix and 9138 # symbol address. 9139 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 9140 $lt_c_name_lib_hook\ 9141 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 9142 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 9143 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 9144 9145 # Handle CRLF in mingw tool chain 9146 opt_cr= 9147 case $build_os in 9148 mingw*) 9149 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 9150 ;; 9151 esac 9152 9153 # Try without a prefix underscore, then with it. 9154 for ac_symprfx in "" "_"; do 9155 9156 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 9157 symxfrm="\\1 $ac_symprfx\\2 \\2" 9158 9159 # Write the raw and C identifiers. 9160 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9161 # Fake it for dumpbin and say T for any non-static function, 9162 # D for any global variable and I for any imported variable. 9163 # Also find C++ and __fastcall symbols from MSVC++, 9164 # which start with @ or ?. 9165 lt_cv_sys_global_symbol_pipe="$AWK '"\ 9166 " {last_section=section; section=\$ 3};"\ 9167 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 9168 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 9169 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 9170 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 9171 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 9172 " \$ 0!~/External *\|/{next};"\ 9173 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 9174 " {if(hide[section]) next};"\ 9175 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 9176 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 9177 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 9178 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 9179 " ' prfx=^$ac_symprfx" 9180 else 9181 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 9182 fi 9183 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 9184 9185 # Check to see that the pipe works correctly. 9186 pipe_works=no 9187 9188 rm -f conftest* 9189 cat > conftest.$ac_ext <<_LT_EOF 9190 #ifdef __cplusplus 9191 extern "C" { 9192 #endif 9193 char nm_test_var; 9194 void nm_test_func(void); 9195 void nm_test_func(void){} 9196 #ifdef __cplusplus 9197 } 9198 #endif 9199 int main(){nm_test_var='a';nm_test_func();return(0);} 9200 _LT_EOF 9201 9202 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9203 (eval $ac_compile) 2>&5 9204 ac_status=$? 9205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9206 test $ac_status = 0; }; then 9207 # Now try to grab the symbols. 9208 nlist=conftest.nm 9209 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 9210 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 9211 ac_status=$? 9212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9213 test $ac_status = 0; } && test -s "$nlist"; then 9214 # Try sorting and uniquifying the output. 9215 if sort "$nlist" | uniq > "$nlist"T; then 9216 mv -f "$nlist"T "$nlist" 9217 else 9218 rm -f "$nlist"T 9219 fi 9220 9221 # Make sure that we snagged all the symbols we need. 9222 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 9223 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 9224 cat <<_LT_EOF > conftest.$ac_ext 9225 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 9226 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 9227 /* DATA imports from DLLs on WIN32 can't be const, because runtime 9228 relocations are performed -- see ld's documentation on pseudo-relocs. */ 9229 # define LT_DLSYM_CONST 9230 #elif defined __osf__ 9231 /* This system does not cope well with relocations in const data. */ 9232 # define LT_DLSYM_CONST 9233 #else 9234 # define LT_DLSYM_CONST const 9235 #endif 9236 9237 #ifdef __cplusplus 9238 extern "C" { 9239 #endif 9240 9241 _LT_EOF 9242 # Now generate the symbol file. 9243 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 9244 9245 cat <<_LT_EOF >> conftest.$ac_ext 9246 9247 /* The mapping between symbol names and symbols. */ 9248 LT_DLSYM_CONST struct { 9249 const char *name; 9250 void *address; 9251 } 9252 lt__PROGRAM__LTX_preloaded_symbols[] = 9253 { 9254 { "@PROGRAM@", (void *) 0 }, 9255 _LT_EOF 9256 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 9257 cat <<\_LT_EOF >> conftest.$ac_ext 9258 {0, (void *) 0} 9259 }; 9260 9261 /* This works around a problem in FreeBSD linker */ 9262 #ifdef FREEBSD_WORKAROUND 9263 static const void *lt_preloaded_setup() { 9264 return lt__PROGRAM__LTX_preloaded_symbols; 9265 } 9266 #endif 9267 9268 #ifdef __cplusplus 9269 } 9270 #endif 9271 _LT_EOF 9272 # Now try linking the two files. 9273 mv -f conftest.$ac_objext conftstm.$ac_objext 9274 lt_globsym_save_LIBS=$LIBS 9275 lt_globsym_save_CFLAGS=$CFLAGS 9276 LIBS=conftstm.$ac_objext 9277 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9278 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 9279 (eval $ac_link) 2>&5 9280 ac_status=$? 9281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9282 test $ac_status = 0; } && test -s conftest$ac_exeext; then 9283 pipe_works=yes 9284 fi 9285 LIBS=$lt_globsym_save_LIBS 9286 CFLAGS=$lt_globsym_save_CFLAGS 9287 else 9288 echo "cannot find nm_test_func in $nlist" >&5 9289 fi 9290 else 9291 echo "cannot find nm_test_var in $nlist" >&5 9292 fi 9293 else 9294 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9295 fi 9296 else 9297 echo "$progname: failed program was:" >&5 9298 cat conftest.$ac_ext >&5 9299 fi 9300 rm -rf conftest* conftst* 9301 9302 # Do not use the global_symbol_pipe unless it works. 9303 if test yes = "$pipe_works"; then 9304 break 9305 else 9306 lt_cv_sys_global_symbol_pipe= 9307 fi 9308 done 9309 9310 fi 9311 9312 if test -z "$lt_cv_sys_global_symbol_pipe"; then 9313 lt_cv_sys_global_symbol_to_cdecl= 9314 fi 9315 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 9317 $as_echo "failed" >&6; } 9318 else 9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 9320 $as_echo "ok" >&6; } 9321 fi 9322 9323 # Response file support. 9324 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9325 nm_file_list_spec='@' 9326 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 9327 nm_file_list_spec='@' 9328 fi 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 9367 $as_echo_n "checking for sysroot... " >&6; } 9368 9369 # Check whether --with-sysroot was given. 9370 if test "${with_sysroot+set}" = set; then : 9371 withval=$with_sysroot; 9372 else 9373 with_sysroot=no 9374 fi 9375 9376 9377 lt_sysroot= 9378 case $with_sysroot in #( 9379 yes) 9380 if test yes = "$GCC"; then 9381 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 9382 fi 9383 ;; #( 9384 /*) 9385 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 9386 ;; #( 9387 no|'') 9388 ;; #( 9389 *) 9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 9391 $as_echo "$with_sysroot" >&6; } 9392 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 9393 ;; 9394 esac 9395 9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 9397 $as_echo "${lt_sysroot:-no}" >&6; } 9398 9399 9400 9401 9402 9403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 9404 $as_echo_n "checking for a working dd... " >&6; } 9405 if ${ac_cv_path_lt_DD+:} false; then : 9406 $as_echo_n "(cached) " >&6 9407 else 9408 printf 0123456789abcdef0123456789abcdef >conftest.i 9409 cat conftest.i conftest.i >conftest2.i 9410 : ${lt_DD:=$DD} 9411 if test -z "$lt_DD"; then 9412 ac_path_lt_DD_found=false 9413 # Loop through the user's path and test for each of PROGNAME-LIST 9414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9415 for as_dir in $PATH 9416 do 9417 IFS=$as_save_IFS 9418 test -z "$as_dir" && as_dir=. 9419 for ac_prog in dd; do 9420 for ac_exec_ext in '' $ac_executable_extensions; do 9421 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 9422 as_fn_executable_p "$ac_path_lt_DD" || continue 9423 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 9424 cmp -s conftest.i conftest.out \ 9425 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 9426 fi 9427 $ac_path_lt_DD_found && break 3 9428 done 9429 done 9430 done 9431 IFS=$as_save_IFS 9432 if test -z "$ac_cv_path_lt_DD"; then 9433 : 9434 fi 9435 else 9436 ac_cv_path_lt_DD=$lt_DD 9437 fi 9438 9439 rm -f conftest.i conftest2.i conftest.out 9440 fi 9441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 9442 $as_echo "$ac_cv_path_lt_DD" >&6; } 9443 9444 9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 9446 $as_echo_n "checking how to truncate binary pipes... " >&6; } 9447 if ${lt_cv_truncate_bin+:} false; then : 9448 $as_echo_n "(cached) " >&6 9449 else 9450 printf 0123456789abcdef0123456789abcdef >conftest.i 9451 cat conftest.i conftest.i >conftest2.i 9452 lt_cv_truncate_bin= 9453 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 9454 cmp -s conftest.i conftest.out \ 9455 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 9456 fi 9457 rm -f conftest.i conftest2.i conftest.out 9458 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 9459 fi 9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 9461 $as_echo "$lt_cv_truncate_bin" >&6; } 9462 9463 9464 9465 9466 9467 9468 9469 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 9470 func_cc_basename () 9471 { 9472 for cc_temp in $*""; do 9473 case $cc_temp in 9474 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9475 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9476 \-*) ;; 9477 *) break;; 9478 esac 9479 done 9480 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 9481 } 9482 9483 # Check whether --enable-libtool-lock was given. 9484 if test "${enable_libtool_lock+set}" = set; then : 9485 enableval=$enable_libtool_lock; 9486 fi 9487 9488 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 9489 9490 # Some flags need to be propagated to the compiler or linker for good 9491 # libtool support. 9492 case $host in 9493 ia64-*-hpux*) 9494 # Find out what ABI is being produced by ac_compile, and set mode 9495 # options accordingly. 9496 echo 'int i;' > conftest.$ac_ext 9497 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9498 (eval $ac_compile) 2>&5 9499 ac_status=$? 9500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9501 test $ac_status = 0; }; then 9502 case `/usr/bin/file conftest.$ac_objext` in 9503 *ELF-32*) 9504 HPUX_IA64_MODE=32 9505 ;; 9506 *ELF-64*) 9507 HPUX_IA64_MODE=64 9508 ;; 9509 esac 9510 fi 9511 rm -rf conftest* 9512 ;; 9513 *-*-irix6*) 9514 # Find out what ABI is being produced by ac_compile, and set linker 9515 # options accordingly. 9516 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9517 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9518 (eval $ac_compile) 2>&5 9519 ac_status=$? 9520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9521 test $ac_status = 0; }; then 9522 if test yes = "$lt_cv_prog_gnu_ld"; then 9523 case `/usr/bin/file conftest.$ac_objext` in 9524 *32-bit*) 9525 LD="${LD-ld} -melf32bsmip" 9526 ;; 9527 *N32*) 9528 LD="${LD-ld} -melf32bmipn32" 9529 ;; 9530 *64-bit*) 9531 LD="${LD-ld} -melf64bmip" 9532 ;; 9533 esac 9534 else 9535 case `/usr/bin/file conftest.$ac_objext` in 9536 *32-bit*) 9537 LD="${LD-ld} -32" 9538 ;; 9539 *N32*) 9540 LD="${LD-ld} -n32" 9541 ;; 9542 *64-bit*) 9543 LD="${LD-ld} -64" 9544 ;; 9545 esac 9546 fi 9547 fi 9548 rm -rf conftest* 9549 ;; 9550 9551 mips64*-*linux*) 9552 # Find out what ABI is being produced by ac_compile, and set linker 9553 # options accordingly. 9554 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9556 (eval $ac_compile) 2>&5 9557 ac_status=$? 9558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9559 test $ac_status = 0; }; then 9560 emul=elf 9561 case `/usr/bin/file conftest.$ac_objext` in 9562 *32-bit*) 9563 emul="${emul}32" 9564 ;; 9565 *64-bit*) 9566 emul="${emul}64" 9567 ;; 9568 esac 9569 case `/usr/bin/file conftest.$ac_objext` in 9570 *MSB*) 9571 emul="${emul}btsmip" 9572 ;; 9573 *LSB*) 9574 emul="${emul}ltsmip" 9575 ;; 9576 esac 9577 case `/usr/bin/file conftest.$ac_objext` in 9578 *N32*) 9579 emul="${emul}n32" 9580 ;; 9581 esac 9582 LD="${LD-ld} -m $emul" 9583 fi 9584 rm -rf conftest* 9585 ;; 9586 9587 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 9588 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 9589 # Find out what ABI is being produced by ac_compile, and set linker 9590 # options accordingly. Note that the listed cases only cover the 9591 # situations where additional linker options are needed (such as when 9592 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 9593 # vice versa); the common cases where no linker options are needed do 9594 # not appear in the list. 9595 echo 'int i;' > conftest.$ac_ext 9596 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9597 (eval $ac_compile) 2>&5 9598 ac_status=$? 9599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9600 test $ac_status = 0; }; then 9601 case `/usr/bin/file conftest.o` in 9602 *32-bit*) 9603 case $host in 9604 x86_64-*kfreebsd*-gnu) 9605 LD="${LD-ld} -m elf_i386_fbsd" 9606 ;; 9607 x86_64-*linux*) 9608 case `/usr/bin/file conftest.o` in 9609 *x86-64*) 9610 LD="${LD-ld} -m elf32_x86_64" 9611 ;; 9612 *) 9613 LD="${LD-ld} -m elf_i386" 9614 ;; 9615 esac 9616 ;; 9617 powerpc64le-*linux*) 9618 LD="${LD-ld} -m elf32lppclinux" 9619 ;; 9620 powerpc64-*linux*) 9621 LD="${LD-ld} -m elf32ppclinux" 9622 ;; 9623 s390x-*linux*) 9624 LD="${LD-ld} -m elf_s390" 9625 ;; 9626 sparc64-*linux*) 9627 LD="${LD-ld} -m elf32_sparc" 9628 ;; 9629 esac 9630 ;; 9631 *64-bit*) 9632 case $host in 9633 x86_64-*kfreebsd*-gnu) 9634 LD="${LD-ld} -m elf_x86_64_fbsd" 9635 ;; 9636 x86_64-*linux*) 9637 LD="${LD-ld} -m elf_x86_64" 9638 ;; 9639 powerpcle-*linux*) 9640 LD="${LD-ld} -m elf64lppc" 9641 ;; 9642 powerpc-*linux*) 9643 LD="${LD-ld} -m elf64ppc" 9644 ;; 9645 s390*-*linux*|s390*-*tpf*) 9646 LD="${LD-ld} -m elf64_s390" 9647 ;; 9648 sparc*-*linux*) 9649 LD="${LD-ld} -m elf64_sparc" 9650 ;; 9651 esac 9652 ;; 9653 esac 9654 fi 9655 rm -rf conftest* 9656 ;; 9657 9658 *-*-sco3.2v5*) 9659 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 9660 SAVE_CFLAGS=$CFLAGS 9661 CFLAGS="$CFLAGS -belf" 9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 9663 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } 9664 if ${lt_cv_cc_needs_belf+:} false; then : 9665 $as_echo_n "(cached) " >&6 9666 else 9667 ac_ext=c 9668 ac_cpp='$CPP $CPPFLAGS' 9669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9671 ac_compiler_gnu=$ac_cv_c_compiler_gnu 9672 9673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9674 /* end confdefs.h. */ 9675 9676 int main (void) 9677 { 9678 9679 ; 9680 return 0; 9681 } 9682 _ACEOF 9683 if ac_fn_c_try_link "$LINENO"; then : 9684 lt_cv_cc_needs_belf=yes 9685 else 9686 lt_cv_cc_needs_belf=no 9687 fi 9688 rm -f core conftest.err conftest.$ac_objext \ 9689 conftest$ac_exeext conftest.$ac_ext 9690 ac_ext=c 9691 ac_cpp='$CPP $CPPFLAGS' 9692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9694 ac_compiler_gnu=$ac_cv_c_compiler_gnu 9695 9696 fi 9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 9698 $as_echo "$lt_cv_cc_needs_belf" >&6; } 9699 if test yes != "$lt_cv_cc_needs_belf"; then 9700 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 9701 CFLAGS=$SAVE_CFLAGS 9702 fi 9703 ;; 9704 *-*solaris*) 9705 # Find out what ABI is being produced by ac_compile, and set linker 9706 # options accordingly. 9707 echo 'int i;' > conftest.$ac_ext 9708 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9709 (eval $ac_compile) 2>&5 9710 ac_status=$? 9711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9712 test $ac_status = 0; }; then 9713 case `/usr/bin/file conftest.o` in 9714 *64-bit*) 9715 case $lt_cv_prog_gnu_ld in 9716 yes*) 9717 case $host in 9718 i?86-*-solaris*|x86_64-*-solaris*) 9719 LD="${LD-ld} -m elf_x86_64" 9720 ;; 9721 sparc*-*-solaris*) 9722 LD="${LD-ld} -m elf64_sparc" 9723 ;; 9724 esac 9725 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 9726 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 9727 LD=${LD-ld}_sol2 9728 fi 9729 ;; 9730 *) 9731 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 9732 LD="${LD-ld} -64" 9733 fi 9734 ;; 9735 esac 9736 ;; 9737 esac 9738 fi 9739 rm -rf conftest* 9740 ;; 9741 esac 9742 9743 need_locks=$enable_libtool_lock 9744 9745 if test -n "$ac_tool_prefix"; then 9746 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 9747 set dummy ${ac_tool_prefix}mt; ac_word=$2 9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9749 $as_echo_n "checking for $ac_word... " >&6; } 9750 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 9751 $as_echo_n "(cached) " >&6 9752 else 9753 if test -n "$MANIFEST_TOOL"; then 9754 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 9755 else 9756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9757 for as_dir in $PATH 9758 do 9759 IFS=$as_save_IFS 9760 test -z "$as_dir" && as_dir=. 9761 for ac_exec_ext in '' $ac_executable_extensions; do 9762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9763 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 9764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9765 break 2 9766 fi 9767 done 9768 done 9769 IFS=$as_save_IFS 9770 9771 fi 9772 fi 9773 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 9774 if test -n "$MANIFEST_TOOL"; then 9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 9776 $as_echo "$MANIFEST_TOOL" >&6; } 9777 else 9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9779 $as_echo "no" >&6; } 9780 fi 9781 9782 9783 fi 9784 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 9785 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 9786 # Extract the first word of "mt", so it can be a program name with args. 9787 set dummy mt; ac_word=$2 9788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9789 $as_echo_n "checking for $ac_word... " >&6; } 9790 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 9791 $as_echo_n "(cached) " >&6 9792 else 9793 if test -n "$ac_ct_MANIFEST_TOOL"; then 9794 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 9795 else 9796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9797 for as_dir in $PATH 9798 do 9799 IFS=$as_save_IFS 9800 test -z "$as_dir" && as_dir=. 9801 for ac_exec_ext in '' $ac_executable_extensions; do 9802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9803 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 9804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9805 break 2 9806 fi 9807 done 9808 done 9809 IFS=$as_save_IFS 9810 9811 fi 9812 fi 9813 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 9814 if test -n "$ac_ct_MANIFEST_TOOL"; then 9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 9816 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 9817 else 9818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9819 $as_echo "no" >&6; } 9820 fi 9821 9822 if test "x$ac_ct_MANIFEST_TOOL" = x; then 9823 MANIFEST_TOOL=":" 9824 else 9825 case $cross_compiling:$ac_tool_warned in 9826 yes:) 9827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9829 ac_tool_warned=yes ;; 9830 esac 9831 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 9832 fi 9833 else 9834 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 9835 fi 9836 9837 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 9838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 9839 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 9840 if ${lt_cv_path_mainfest_tool+:} false; then : 9841 $as_echo_n "(cached) " >&6 9842 else 9843 lt_cv_path_mainfest_tool=no 9844 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 9845 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 9846 cat conftest.err >&5 9847 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 9848 lt_cv_path_mainfest_tool=yes 9849 fi 9850 rm -f conftest* 9851 fi 9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 9853 $as_echo "$lt_cv_path_mainfest_tool" >&6; } 9854 if test yes != "$lt_cv_path_mainfest_tool"; then 9855 MANIFEST_TOOL=: 9856 fi 9857 9858 9859 9860 9861 9862 9863 case $host_os in 9864 rhapsody* | darwin*) 9865 if test -n "$ac_tool_prefix"; then 9866 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 9867 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 9868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9869 $as_echo_n "checking for $ac_word... " >&6; } 9870 if ${ac_cv_prog_DSYMUTIL+:} false; then : 9871 $as_echo_n "(cached) " >&6 9872 else 9873 if test -n "$DSYMUTIL"; then 9874 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 9875 else 9876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9877 for as_dir in $PATH 9878 do 9879 IFS=$as_save_IFS 9880 test -z "$as_dir" && as_dir=. 9881 for ac_exec_ext in '' $ac_executable_extensions; do 9882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9883 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 9884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9885 break 2 9886 fi 9887 done 9888 done 9889 IFS=$as_save_IFS 9890 9891 fi 9892 fi 9893 DSYMUTIL=$ac_cv_prog_DSYMUTIL 9894 if test -n "$DSYMUTIL"; then 9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 9896 $as_echo "$DSYMUTIL" >&6; } 9897 else 9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9899 $as_echo "no" >&6; } 9900 fi 9901 9902 9903 fi 9904 if test -z "$ac_cv_prog_DSYMUTIL"; then 9905 ac_ct_DSYMUTIL=$DSYMUTIL 9906 # Extract the first word of "dsymutil", so it can be a program name with args. 9907 set dummy dsymutil; ac_word=$2 9908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9909 $as_echo_n "checking for $ac_word... " >&6; } 9910 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 9911 $as_echo_n "(cached) " >&6 9912 else 9913 if test -n "$ac_ct_DSYMUTIL"; then 9914 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 9915 else 9916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9917 for as_dir in $PATH 9918 do 9919 IFS=$as_save_IFS 9920 test -z "$as_dir" && as_dir=. 9921 for ac_exec_ext in '' $ac_executable_extensions; do 9922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9923 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 9924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9925 break 2 9926 fi 9927 done 9928 done 9929 IFS=$as_save_IFS 9930 9931 fi 9932 fi 9933 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 9934 if test -n "$ac_ct_DSYMUTIL"; then 9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 9936 $as_echo "$ac_ct_DSYMUTIL" >&6; } 9937 else 9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9939 $as_echo "no" >&6; } 9940 fi 9941 9942 if test "x$ac_ct_DSYMUTIL" = x; then 9943 DSYMUTIL=":" 9944 else 9945 case $cross_compiling:$ac_tool_warned in 9946 yes:) 9947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9949 ac_tool_warned=yes ;; 9950 esac 9951 DSYMUTIL=$ac_ct_DSYMUTIL 9952 fi 9953 else 9954 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 9955 fi 9956 9957 if test -n "$ac_tool_prefix"; then 9958 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 9959 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 9960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9961 $as_echo_n "checking for $ac_word... " >&6; } 9962 if ${ac_cv_prog_NMEDIT+:} false; then : 9963 $as_echo_n "(cached) " >&6 9964 else 9965 if test -n "$NMEDIT"; then 9966 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 9967 else 9968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9969 for as_dir in $PATH 9970 do 9971 IFS=$as_save_IFS 9972 test -z "$as_dir" && as_dir=. 9973 for ac_exec_ext in '' $ac_executable_extensions; do 9974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9975 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 9976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9977 break 2 9978 fi 9979 done 9980 done 9981 IFS=$as_save_IFS 9982 9983 fi 9984 fi 9985 NMEDIT=$ac_cv_prog_NMEDIT 9986 if test -n "$NMEDIT"; then 9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 9988 $as_echo "$NMEDIT" >&6; } 9989 else 9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9991 $as_echo "no" >&6; } 9992 fi 9993 9994 9995 fi 9996 if test -z "$ac_cv_prog_NMEDIT"; then 9997 ac_ct_NMEDIT=$NMEDIT 9998 # Extract the first word of "nmedit", so it can be a program name with args. 9999 set dummy nmedit; ac_word=$2 10000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10001 $as_echo_n "checking for $ac_word... " >&6; } 10002 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 10003 $as_echo_n "(cached) " >&6 10004 else 10005 if test -n "$ac_ct_NMEDIT"; then 10006 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 10007 else 10008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10009 for as_dir in $PATH 10010 do 10011 IFS=$as_save_IFS 10012 test -z "$as_dir" && as_dir=. 10013 for ac_exec_ext in '' $ac_executable_extensions; do 10014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10015 ac_cv_prog_ac_ct_NMEDIT="nmedit" 10016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10017 break 2 10018 fi 10019 done 10020 done 10021 IFS=$as_save_IFS 10022 10023 fi 10024 fi 10025 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 10026 if test -n "$ac_ct_NMEDIT"; then 10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 10028 $as_echo "$ac_ct_NMEDIT" >&6; } 10029 else 10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10031 $as_echo "no" >&6; } 10032 fi 10033 10034 if test "x$ac_ct_NMEDIT" = x; then 10035 NMEDIT=":" 10036 else 10037 case $cross_compiling:$ac_tool_warned in 10038 yes:) 10039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10041 ac_tool_warned=yes ;; 10042 esac 10043 NMEDIT=$ac_ct_NMEDIT 10044 fi 10045 else 10046 NMEDIT="$ac_cv_prog_NMEDIT" 10047 fi 10048 10049 if test -n "$ac_tool_prefix"; then 10050 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 10051 set dummy ${ac_tool_prefix}lipo; ac_word=$2 10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10053 $as_echo_n "checking for $ac_word... " >&6; } 10054 if ${ac_cv_prog_LIPO+:} false; then : 10055 $as_echo_n "(cached) " >&6 10056 else 10057 if test -n "$LIPO"; then 10058 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 10059 else 10060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10061 for as_dir in $PATH 10062 do 10063 IFS=$as_save_IFS 10064 test -z "$as_dir" && as_dir=. 10065 for ac_exec_ext in '' $ac_executable_extensions; do 10066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10067 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 10068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10069 break 2 10070 fi 10071 done 10072 done 10073 IFS=$as_save_IFS 10074 10075 fi 10076 fi 10077 LIPO=$ac_cv_prog_LIPO 10078 if test -n "$LIPO"; then 10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 10080 $as_echo "$LIPO" >&6; } 10081 else 10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10083 $as_echo "no" >&6; } 10084 fi 10085 10086 10087 fi 10088 if test -z "$ac_cv_prog_LIPO"; then 10089 ac_ct_LIPO=$LIPO 10090 # Extract the first word of "lipo", so it can be a program name with args. 10091 set dummy lipo; ac_word=$2 10092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10093 $as_echo_n "checking for $ac_word... " >&6; } 10094 if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 10095 $as_echo_n "(cached) " >&6 10096 else 10097 if test -n "$ac_ct_LIPO"; then 10098 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 10099 else 10100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10101 for as_dir in $PATH 10102 do 10103 IFS=$as_save_IFS 10104 test -z "$as_dir" && as_dir=. 10105 for ac_exec_ext in '' $ac_executable_extensions; do 10106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10107 ac_cv_prog_ac_ct_LIPO="lipo" 10108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10109 break 2 10110 fi 10111 done 10112 done 10113 IFS=$as_save_IFS 10114 10115 fi 10116 fi 10117 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 10118 if test -n "$ac_ct_LIPO"; then 10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 10120 $as_echo "$ac_ct_LIPO" >&6; } 10121 else 10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10123 $as_echo "no" >&6; } 10124 fi 10125 10126 if test "x$ac_ct_LIPO" = x; then 10127 LIPO=":" 10128 else 10129 case $cross_compiling:$ac_tool_warned in 10130 yes:) 10131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10132 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10133 ac_tool_warned=yes ;; 10134 esac 10135 LIPO=$ac_ct_LIPO 10136 fi 10137 else 10138 LIPO="$ac_cv_prog_LIPO" 10139 fi 10140 10141 if test -n "$ac_tool_prefix"; then 10142 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 10143 set dummy ${ac_tool_prefix}otool; ac_word=$2 10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10145 $as_echo_n "checking for $ac_word... " >&6; } 10146 if ${ac_cv_prog_OTOOL+:} false; then : 10147 $as_echo_n "(cached) " >&6 10148 else 10149 if test -n "$OTOOL"; then 10150 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 10151 else 10152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10153 for as_dir in $PATH 10154 do 10155 IFS=$as_save_IFS 10156 test -z "$as_dir" && as_dir=. 10157 for ac_exec_ext in '' $ac_executable_extensions; do 10158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10159 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 10160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10161 break 2 10162 fi 10163 done 10164 done 10165 IFS=$as_save_IFS 10166 10167 fi 10168 fi 10169 OTOOL=$ac_cv_prog_OTOOL 10170 if test -n "$OTOOL"; then 10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 10172 $as_echo "$OTOOL" >&6; } 10173 else 10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10175 $as_echo "no" >&6; } 10176 fi 10177 10178 10179 fi 10180 if test -z "$ac_cv_prog_OTOOL"; then 10181 ac_ct_OTOOL=$OTOOL 10182 # Extract the first word of "otool", so it can be a program name with args. 10183 set dummy otool; ac_word=$2 10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10185 $as_echo_n "checking for $ac_word... " >&6; } 10186 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 10187 $as_echo_n "(cached) " >&6 10188 else 10189 if test -n "$ac_ct_OTOOL"; then 10190 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 10191 else 10192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10193 for as_dir in $PATH 10194 do 10195 IFS=$as_save_IFS 10196 test -z "$as_dir" && as_dir=. 10197 for ac_exec_ext in '' $ac_executable_extensions; do 10198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10199 ac_cv_prog_ac_ct_OTOOL="otool" 10200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10201 break 2 10202 fi 10203 done 10204 done 10205 IFS=$as_save_IFS 10206 10207 fi 10208 fi 10209 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 10210 if test -n "$ac_ct_OTOOL"; then 10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 10212 $as_echo "$ac_ct_OTOOL" >&6; } 10213 else 10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10215 $as_echo "no" >&6; } 10216 fi 10217 10218 if test "x$ac_ct_OTOOL" = x; then 10219 OTOOL=":" 10220 else 10221 case $cross_compiling:$ac_tool_warned in 10222 yes:) 10223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10225 ac_tool_warned=yes ;; 10226 esac 10227 OTOOL=$ac_ct_OTOOL 10228 fi 10229 else 10230 OTOOL="$ac_cv_prog_OTOOL" 10231 fi 10232 10233 if test -n "$ac_tool_prefix"; then 10234 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 10235 set dummy ${ac_tool_prefix}otool64; ac_word=$2 10236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10237 $as_echo_n "checking for $ac_word... " >&6; } 10238 if ${ac_cv_prog_OTOOL64+:} false; then : 10239 $as_echo_n "(cached) " >&6 10240 else 10241 if test -n "$OTOOL64"; then 10242 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 10243 else 10244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10245 for as_dir in $PATH 10246 do 10247 IFS=$as_save_IFS 10248 test -z "$as_dir" && as_dir=. 10249 for ac_exec_ext in '' $ac_executable_extensions; do 10250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10251 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 10252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10253 break 2 10254 fi 10255 done 10256 done 10257 IFS=$as_save_IFS 10258 10259 fi 10260 fi 10261 OTOOL64=$ac_cv_prog_OTOOL64 10262 if test -n "$OTOOL64"; then 10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 10264 $as_echo "$OTOOL64" >&6; } 10265 else 10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10267 $as_echo "no" >&6; } 10268 fi 10269 10270 10271 fi 10272 if test -z "$ac_cv_prog_OTOOL64"; then 10273 ac_ct_OTOOL64=$OTOOL64 10274 # Extract the first word of "otool64", so it can be a program name with args. 10275 set dummy otool64; ac_word=$2 10276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10277 $as_echo_n "checking for $ac_word... " >&6; } 10278 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 10279 $as_echo_n "(cached) " >&6 10280 else 10281 if test -n "$ac_ct_OTOOL64"; then 10282 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 10283 else 10284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10285 for as_dir in $PATH 10286 do 10287 IFS=$as_save_IFS 10288 test -z "$as_dir" && as_dir=. 10289 for ac_exec_ext in '' $ac_executable_extensions; do 10290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10291 ac_cv_prog_ac_ct_OTOOL64="otool64" 10292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10293 break 2 10294 fi 10295 done 10296 done 10297 IFS=$as_save_IFS 10298 10299 fi 10300 fi 10301 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 10302 if test -n "$ac_ct_OTOOL64"; then 10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 10304 $as_echo "$ac_ct_OTOOL64" >&6; } 10305 else 10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10307 $as_echo "no" >&6; } 10308 fi 10309 10310 if test "x$ac_ct_OTOOL64" = x; then 10311 OTOOL64=":" 10312 else 10313 case $cross_compiling:$ac_tool_warned in 10314 yes:) 10315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10317 ac_tool_warned=yes ;; 10318 esac 10319 OTOOL64=$ac_ct_OTOOL64 10320 fi 10321 else 10322 OTOOL64="$ac_cv_prog_OTOOL64" 10323 fi 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 10352 $as_echo_n "checking for -single_module linker flag... " >&6; } 10353 if ${lt_cv_apple_cc_single_mod+:} false; then : 10354 $as_echo_n "(cached) " >&6 10355 else 10356 lt_cv_apple_cc_single_mod=no 10357 if test -z "$LT_MULTI_MODULE"; then 10358 # By default we will add the -single_module flag. You can override 10359 # by either setting the environment variable LT_MULTI_MODULE 10360 # non-empty at configure time, or by adding -multi_module to the 10361 # link flags. 10362 rm -rf libconftest.dylib* 10363 echo "int foo(void){return 1;}" > conftest.c 10364 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10365 -dynamiclib -Wl,-single_module conftest.c" >&5 10366 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10367 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 10368 _lt_result=$? 10369 # If there is a non-empty error log, and "single_module" 10370 # appears in it, assume the flag caused a linker warning 10371 if test -s conftest.err && $GREP single_module conftest.err; then 10372 cat conftest.err >&5 10373 # Otherwise, if the output was created with a 0 exit code from 10374 # the compiler, it worked. 10375 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 10376 lt_cv_apple_cc_single_mod=yes 10377 else 10378 cat conftest.err >&5 10379 fi 10380 rm -rf libconftest.dylib* 10381 rm -f conftest.* 10382 fi 10383 fi 10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 10385 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } 10386 10387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 10388 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 10389 if ${lt_cv_ld_exported_symbols_list+:} false; then : 10390 $as_echo_n "(cached) " >&6 10391 else 10392 lt_cv_ld_exported_symbols_list=no 10393 save_LDFLAGS=$LDFLAGS 10394 echo "_main" > conftest.sym 10395 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 10396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10397 /* end confdefs.h. */ 10398 10399 int main (void) 10400 { 10401 10402 ; 10403 return 0; 10404 } 10405 _ACEOF 10406 if ac_fn_c_try_link "$LINENO"; then : 10407 lt_cv_ld_exported_symbols_list=yes 10408 else 10409 lt_cv_ld_exported_symbols_list=no 10410 fi 10411 rm -f core conftest.err conftest.$ac_objext \ 10412 conftest$ac_exeext conftest.$ac_ext 10413 LDFLAGS=$save_LDFLAGS 10414 10415 fi 10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 10417 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 10418 10419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 10420 $as_echo_n "checking for -force_load linker flag... " >&6; } 10421 if ${lt_cv_ld_force_load+:} false; then : 10422 $as_echo_n "(cached) " >&6 10423 else 10424 lt_cv_ld_force_load=no 10425 cat > conftest.c << _LT_EOF 10426 int forced_loaded() { return 2;} 10427 _LT_EOF 10428 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 10429 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 10430 echo "$AR cru libconftest.a conftest.o" >&5 10431 $AR cru libconftest.a conftest.o 2>&5 10432 echo "$RANLIB libconftest.a" >&5 10433 $RANLIB libconftest.a 2>&5 10434 cat > conftest.c << _LT_EOF 10435 int main() { return 0;} 10436 _LT_EOF 10437 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 10438 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 10439 _lt_result=$? 10440 if test -s conftest.err && $GREP force_load conftest.err; then 10441 cat conftest.err >&5 10442 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 10443 lt_cv_ld_force_load=yes 10444 else 10445 cat conftest.err >&5 10446 fi 10447 rm -f conftest.err libconftest.a conftest conftest.c 10448 rm -rf conftest.dSYM 10449 10450 fi 10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 10452 $as_echo "$lt_cv_ld_force_load" >&6; } 10453 case $host_os in 10454 rhapsody* | darwin1.[012]) 10455 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 10456 darwin1.*) 10457 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10458 darwin*) # darwin 5.x on 10459 # if running on 10.5 or later, the deployment target defaults 10460 # to the OS version, if on x86, and 10.4, the deployment 10461 # target defaults to 10.4. Don't you love it? 10462 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10463 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 10464 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10465 10.[012][,.]*) 10466 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10467 10.*) 10468 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10469 esac 10470 ;; 10471 esac 10472 if test yes = "$lt_cv_apple_cc_single_mod"; then 10473 _lt_dar_single_mod='$single_module' 10474 fi 10475 if test yes = "$lt_cv_ld_exported_symbols_list"; then 10476 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 10477 else 10478 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 10479 fi 10480 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 10481 _lt_dsymutil='~$DSYMUTIL $lib || :' 10482 else 10483 _lt_dsymutil= 10484 fi 10485 ;; 10486 esac 10487 10488 # func_munge_path_list VARIABLE PATH 10489 # ----------------------------------- 10490 # VARIABLE is name of variable containing _space_ separated list of 10491 # directories to be munged by the contents of PATH, which is string 10492 # having a format: 10493 # "DIR[:DIR]:" 10494 # string "DIR[ DIR]" will be prepended to VARIABLE 10495 # ":DIR[:DIR]" 10496 # string "DIR[ DIR]" will be appended to VARIABLE 10497 # "DIRP[:DIRP]::[DIRA:]DIRA" 10498 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 10499 # "DIRA[ DIRA]" will be appended to VARIABLE 10500 # "DIR[:DIR]" 10501 # VARIABLE will be replaced by "DIR[ DIR]" 10502 func_munge_path_list () 10503 { 10504 case x$2 in 10505 x) 10506 ;; 10507 *:) 10508 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 10509 ;; 10510 x:*) 10511 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 10512 ;; 10513 *::*) 10514 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 10515 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 10516 ;; 10517 *) 10518 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 10519 ;; 10520 esac 10521 } 10522 10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 10524 $as_echo_n "checking for ANSI C header files... " >&6; } 10525 if ${ac_cv_header_stdc+:} false; then : 10526 $as_echo_n "(cached) " >&6 10527 else 10528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10529 /* end confdefs.h. */ 10530 #include <stdlib.h> 10531 #include <stdarg.h> 10532 #include <string.h> 10533 #include <float.h> 10534 10535 int main (void) 10536 { 10537 10538 ; 10539 return 0; 10540 } 10541 _ACEOF 10542 if ac_fn_c_try_compile "$LINENO"; then : 10543 ac_cv_header_stdc=yes 10544 else 10545 ac_cv_header_stdc=no 10546 fi 10547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10548 10549 if test $ac_cv_header_stdc = yes; then 10550 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 10551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10552 /* end confdefs.h. */ 10553 #include <string.h> 10554 10555 _ACEOF 10556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10557 $EGREP "memchr" >/dev/null 2>&1; then : 10558 10559 else 10560 ac_cv_header_stdc=no 10561 fi 10562 rm -f conftest* 10563 10564 fi 10565 10566 if test $ac_cv_header_stdc = yes; then 10567 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 10568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10569 /* end confdefs.h. */ 10570 #include <stdlib.h> 10571 10572 _ACEOF 10573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10574 $EGREP "free" >/dev/null 2>&1; then : 10575 10576 else 10577 ac_cv_header_stdc=no 10578 fi 10579 rm -f conftest* 10580 10581 fi 10582 10583 if test $ac_cv_header_stdc = yes; then 10584 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 10585 if test "$cross_compiling" = yes; then : 10586 : 10587 else 10588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10589 /* end confdefs.h. */ 10590 #include <ctype.h> 10591 #include <stdlib.h> 10592 #if ((' ' & 0x0FF) == 0x020) 10593 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 10594 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 10595 #else 10596 # define ISLOWER(c) \ 10597 (('a' <= (c) && (c) <= 'i') \ 10598 || ('j' <= (c) && (c) <= 'r') \ 10599 || ('s' <= (c) && (c) <= 'z')) 10600 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 10601 #endif 10602 10603 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 10604 int 10605 main () 10606 { 10607 int i; 10608 for (i = 0; i < 256; i++) 10609 if (XOR (islower (i), ISLOWER (i)) 10610 || toupper (i) != TOUPPER (i)) 10611 return 2; 10612 return 0; 10613 } 10614 _ACEOF 10615 if ac_fn_c_try_run "$LINENO"; then : 10616 10617 else 10618 ac_cv_header_stdc=no 10619 fi 10620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10621 conftest.$ac_objext conftest.beam conftest.$ac_ext 10622 fi 10623 10624 fi 10625 fi 10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 10627 $as_echo "$ac_cv_header_stdc" >&6; } 10628 if test $ac_cv_header_stdc = yes; then 10629 10630 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 10631 10632 fi 10633 10634 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 10635 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 10636 inttypes.h stdint.h unistd.h 10637 do : 10638 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10639 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 10640 " 10641 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10642 cat >>confdefs.h <<_ACEOF 10643 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10644 _ACEOF 10645 10646 fi 10647 10648 done 10649 10650 10651 for ac_header in dlfcn.h 10652 do : 10653 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 10654 " 10655 if test "x$ac_cv_header_dlfcn_h" = xyes; then : 10656 cat >>confdefs.h <<_ACEOF 10657 #define HAVE_DLFCN_H 1 10658 _ACEOF 10659 10660 fi 10661 10662 done 10663 10664 # ------------------------------------ # 10665 # Determine libtool default behavior # 10666 # ------------------------------------ # 10667 10668 # 10669 # Default behavior is to enable shared and static libraries on systems 10670 # where libtool knows how to build both library versions, and does not 10671 # require separate configuration and build runs for each flavor. 10672 # 10673 10674 xc_lt_want_enable_shared='yes' 10675 xc_lt_want_enable_static='yes' 10676 10677 # 10678 # User may have disabled shared or static libraries. 10679 # 10680 case "x$enable_shared" in # ( 10681 xno) 10682 xc_lt_want_enable_shared='no' 10683 ;; 10684 esac 10685 case "x$enable_static" in # ( 10686 xno) 10687 xc_lt_want_enable_static='no' 10688 ;; 10689 esac 10690 if test "x$xc_lt_want_enable_shared" = 'xno' && 10691 test "x$xc_lt_want_enable_static" = 'xno'; then 10692 as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5 10693 fi 10694 10695 # 10696 # Default behavior on systems that require independent configuration 10697 # and build runs for shared and static is to enable shared libraries 10698 # and disable static ones. On these systems option '--disable-shared' 10699 # must be used in order to build a proper static library. 10700 # 10701 10702 if test "x$xc_lt_want_enable_shared" = 'xyes' && 10703 test "x$xc_lt_want_enable_static" = 'xyes'; then 10704 case $host_os in # ( 10705 pw32* | cegcc* | os2* | aix*) 10706 xc_lt_want_enable_static='no' 10707 ;; 10708 esac 10709 fi 10710 10711 # 10712 # Make libtool aware of current shared and static library preferences 10713 # taking in account that, depending on host characteristics, libtool 10714 # may modify these option preferences later in this configure script. 10715 # 10716 10717 enable_shared=$xc_lt_want_enable_shared 10718 enable_static=$xc_lt_want_enable_static 10719 10720 # 10721 # Default behavior is to build PIC objects for shared libraries and 10722 # non-PIC objects for static libraries. 10723 # 10724 10725 xc_lt_want_with_pic='default' 10726 10727 # 10728 # User may have specified PIC preference. 10729 # 10730 10731 case "x$with_pic" in # (( 10732 xno) 10733 xc_lt_want_with_pic='no' 10734 ;; 10735 xyes) 10736 xc_lt_want_with_pic='yes' 10737 ;; 10738 esac 10739 10740 # 10741 # Default behavior on some systems where building a shared library out 10742 # of non-PIC compiled objects will fail with following linker error 10743 # "relocation R_X86_64_32 can not be used when making a shared object" 10744 # is to build PIC objects even for static libraries. This behavior may 10745 # be overridden using 'configure --disable-shared --without-pic'. 10746 # 10747 10748 if test "x$xc_lt_want_with_pic" = 'xdefault'; then 10749 case $host_cpu in # ( 10750 x86_64 | amd64 | ia64) 10751 case $host_os in # ( 10752 linux* | freebsd*) 10753 xc_lt_want_with_pic='yes' 10754 ;; 10755 esac 10756 ;; 10757 esac 10758 fi 10759 10760 # 10761 # Make libtool aware of current PIC preference taking in account that, 10762 # depending on host characteristics, libtool may modify PIC default 10763 # behavior to fit host system idiosyncrasies later in this script. 10764 # 10765 10766 with_pic=$xc_lt_want_with_pic 10767 10768 ## ----------------------- ## 10769 ## Start of libtool code ## 10770 ## ----------------------- ## 10771 10772 10773 10774 10775 # Set options 10776 enable_win32_dll=yes 10777 10778 case $host in 10779 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 10780 if test -n "$ac_tool_prefix"; then 10781 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 10782 set dummy ${ac_tool_prefix}as; ac_word=$2 10783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10784 $as_echo_n "checking for $ac_word... " >&6; } 10785 if ${ac_cv_prog_AS+:} false; then : 10786 $as_echo_n "(cached) " >&6 10787 else 10788 if test -n "$AS"; then 10789 ac_cv_prog_AS="$AS" # Let the user override the test. 10790 else 10791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10792 for as_dir in $PATH 10793 do 10794 IFS=$as_save_IFS 10795 test -z "$as_dir" && as_dir=. 10796 for ac_exec_ext in '' $ac_executable_extensions; do 10797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10798 ac_cv_prog_AS="${ac_tool_prefix}as" 10799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10800 break 2 10801 fi 10802 done 10803 done 10804 IFS=$as_save_IFS 10805 10806 fi 10807 fi 10808 AS=$ac_cv_prog_AS 10809 if test -n "$AS"; then 10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 10811 $as_echo "$AS" >&6; } 10812 else 10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10814 $as_echo "no" >&6; } 10815 fi 10816 10817 10818 fi 10819 if test -z "$ac_cv_prog_AS"; then 10820 ac_ct_AS=$AS 10821 # Extract the first word of "as", so it can be a program name with args. 10822 set dummy as; ac_word=$2 10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10824 $as_echo_n "checking for $ac_word... " >&6; } 10825 if ${ac_cv_prog_ac_ct_AS+:} false; then : 10826 $as_echo_n "(cached) " >&6 10827 else 10828 if test -n "$ac_ct_AS"; then 10829 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 10830 else 10831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10832 for as_dir in $PATH 10833 do 10834 IFS=$as_save_IFS 10835 test -z "$as_dir" && as_dir=. 10836 for ac_exec_ext in '' $ac_executable_extensions; do 10837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10838 ac_cv_prog_ac_ct_AS="as" 10839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10840 break 2 10841 fi 10842 done 10843 done 10844 IFS=$as_save_IFS 10845 10846 fi 10847 fi 10848 ac_ct_AS=$ac_cv_prog_ac_ct_AS 10849 if test -n "$ac_ct_AS"; then 10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 10851 $as_echo "$ac_ct_AS" >&6; } 10852 else 10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10854 $as_echo "no" >&6; } 10855 fi 10856 10857 if test "x$ac_ct_AS" = x; then 10858 AS="false" 10859 else 10860 case $cross_compiling:$ac_tool_warned in 10861 yes:) 10862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10864 ac_tool_warned=yes ;; 10865 esac 10866 AS=$ac_ct_AS 10867 fi 10868 else 10869 AS="$ac_cv_prog_AS" 10870 fi 10871 10872 if test -n "$ac_tool_prefix"; then 10873 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 10874 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10876 $as_echo_n "checking for $ac_word... " >&6; } 10877 if ${ac_cv_prog_DLLTOOL+:} false; then : 10878 $as_echo_n "(cached) " >&6 10879 else 10880 if test -n "$DLLTOOL"; then 10881 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 10882 else 10883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10884 for as_dir in $PATH 10885 do 10886 IFS=$as_save_IFS 10887 test -z "$as_dir" && as_dir=. 10888 for ac_exec_ext in '' $ac_executable_extensions; do 10889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10890 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 10891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10892 break 2 10893 fi 10894 done 10895 done 10896 IFS=$as_save_IFS 10897 10898 fi 10899 fi 10900 DLLTOOL=$ac_cv_prog_DLLTOOL 10901 if test -n "$DLLTOOL"; then 10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 10903 $as_echo "$DLLTOOL" >&6; } 10904 else 10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10906 $as_echo "no" >&6; } 10907 fi 10908 10909 10910 fi 10911 if test -z "$ac_cv_prog_DLLTOOL"; then 10912 ac_ct_DLLTOOL=$DLLTOOL 10913 # Extract the first word of "dlltool", so it can be a program name with args. 10914 set dummy dlltool; ac_word=$2 10915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10916 $as_echo_n "checking for $ac_word... " >&6; } 10917 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 10918 $as_echo_n "(cached) " >&6 10919 else 10920 if test -n "$ac_ct_DLLTOOL"; then 10921 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 10922 else 10923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10924 for as_dir in $PATH 10925 do 10926 IFS=$as_save_IFS 10927 test -z "$as_dir" && as_dir=. 10928 for ac_exec_ext in '' $ac_executable_extensions; do 10929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10930 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 10931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10932 break 2 10933 fi 10934 done 10935 done 10936 IFS=$as_save_IFS 10937 10938 fi 10939 fi 10940 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 10941 if test -n "$ac_ct_DLLTOOL"; then 10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 10943 $as_echo "$ac_ct_DLLTOOL" >&6; } 10944 else 10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10946 $as_echo "no" >&6; } 10947 fi 10948 10949 if test "x$ac_ct_DLLTOOL" = x; then 10950 DLLTOOL="false" 10951 else 10952 case $cross_compiling:$ac_tool_warned in 10953 yes:) 10954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10956 ac_tool_warned=yes ;; 10957 esac 10958 DLLTOOL=$ac_ct_DLLTOOL 10959 fi 10960 else 10961 DLLTOOL="$ac_cv_prog_DLLTOOL" 10962 fi 10963 10964 if test -n "$ac_tool_prefix"; then 10965 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 10966 set dummy ${ac_tool_prefix}objdump; ac_word=$2 10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10968 $as_echo_n "checking for $ac_word... " >&6; } 10969 if ${ac_cv_prog_OBJDUMP+:} false; then : 10970 $as_echo_n "(cached) " >&6 10971 else 10972 if test -n "$OBJDUMP"; then 10973 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 10974 else 10975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10976 for as_dir in $PATH 10977 do 10978 IFS=$as_save_IFS 10979 test -z "$as_dir" && as_dir=. 10980 for ac_exec_ext in '' $ac_executable_extensions; do 10981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10982 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 10983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10984 break 2 10985 fi 10986 done 10987 done 10988 IFS=$as_save_IFS 10989 10990 fi 10991 fi 10992 OBJDUMP=$ac_cv_prog_OBJDUMP 10993 if test -n "$OBJDUMP"; then 10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 10995 $as_echo "$OBJDUMP" >&6; } 10996 else 10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10998 $as_echo "no" >&6; } 10999 fi 11000 11001 11002 fi 11003 if test -z "$ac_cv_prog_OBJDUMP"; then 11004 ac_ct_OBJDUMP=$OBJDUMP 11005 # Extract the first word of "objdump", so it can be a program name with args. 11006 set dummy objdump; ac_word=$2 11007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11008 $as_echo_n "checking for $ac_word... " >&6; } 11009 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 11010 $as_echo_n "(cached) " >&6 11011 else 11012 if test -n "$ac_ct_OBJDUMP"; then 11013 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 11014 else 11015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11016 for as_dir in $PATH 11017 do 11018 IFS=$as_save_IFS 11019 test -z "$as_dir" && as_dir=. 11020 for ac_exec_ext in '' $ac_executable_extensions; do 11021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11022 ac_cv_prog_ac_ct_OBJDUMP="objdump" 11023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11024 break 2 11025 fi 11026 done 11027 done 11028 IFS=$as_save_IFS 11029 11030 fi 11031 fi 11032 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 11033 if test -n "$ac_ct_OBJDUMP"; then 11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 11035 $as_echo "$ac_ct_OBJDUMP" >&6; } 11036 else 11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11038 $as_echo "no" >&6; } 11039 fi 11040 11041 if test "x$ac_ct_OBJDUMP" = x; then 11042 OBJDUMP="false" 11043 else 11044 case $cross_compiling:$ac_tool_warned in 11045 yes:) 11046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11048 ac_tool_warned=yes ;; 11049 esac 11050 OBJDUMP=$ac_ct_OBJDUMP 11051 fi 11052 else 11053 OBJDUMP="$ac_cv_prog_OBJDUMP" 11054 fi 11055 11056 ;; 11057 esac 11058 11059 test -z "$AS" && AS=as 11060 11061 11062 11063 11064 11065 test -z "$DLLTOOL" && DLLTOOL=dlltool 11066 11067 11068 11069 11070 11071 test -z "$OBJDUMP" && OBJDUMP=objdump 11072 11073 11074 11075 11076 11077 11078 11079 enable_dlopen=no 11080 11081 11082 11083 # Check whether --enable-shared was given. 11084 if test "${enable_shared+set}" = set; then : 11085 enableval=$enable_shared; p=${PACKAGE-default} 11086 case $enableval in 11087 yes) enable_shared=yes ;; 11088 no) enable_shared=no ;; 11089 *) 11090 enable_shared=no 11091 # Look at the argument we got. We use all the common list separators. 11092 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11093 for pkg in $enableval; do 11094 IFS=$lt_save_ifs 11095 if test "X$pkg" = "X$p"; then 11096 enable_shared=yes 11097 fi 11098 done 11099 IFS=$lt_save_ifs 11100 ;; 11101 esac 11102 else 11103 enable_shared=yes 11104 fi 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 # Check whether --enable-static was given. 11115 if test "${enable_static+set}" = set; then : 11116 enableval=$enable_static; p=${PACKAGE-default} 11117 case $enableval in 11118 yes) enable_static=yes ;; 11119 no) enable_static=no ;; 11120 *) 11121 enable_static=no 11122 # Look at the argument we got. We use all the common list separators. 11123 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11124 for pkg in $enableval; do 11125 IFS=$lt_save_ifs 11126 if test "X$pkg" = "X$p"; then 11127 enable_static=yes 11128 fi 11129 done 11130 IFS=$lt_save_ifs 11131 ;; 11132 esac 11133 else 11134 enable_static=yes 11135 fi 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 # Check whether --with-pic was given. 11147 if test "${with_pic+set}" = set; then : 11148 withval=$with_pic; lt_p=${PACKAGE-default} 11149 case $withval in 11150 yes|no) pic_mode=$withval ;; 11151 *) 11152 pic_mode=default 11153 # Look at the argument we got. We use all the common list separators. 11154 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11155 for lt_pkg in $withval; do 11156 IFS=$lt_save_ifs 11157 if test "X$lt_pkg" = "X$lt_p"; then 11158 pic_mode=yes 11159 fi 11160 done 11161 IFS=$lt_save_ifs 11162 ;; 11163 esac 11164 else 11165 pic_mode=default 11166 fi 11167 11168 11169 11170 11171 11172 11173 11174 11175 # Check whether --enable-fast-install was given. 11176 if test "${enable_fast_install+set}" = set; then : 11177 enableval=$enable_fast_install; p=${PACKAGE-default} 11178 case $enableval in 11179 yes) enable_fast_install=yes ;; 11180 no) enable_fast_install=no ;; 11181 *) 11182 enable_fast_install=no 11183 # Look at the argument we got. We use all the common list separators. 11184 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11185 for pkg in $enableval; do 11186 IFS=$lt_save_ifs 11187 if test "X$pkg" = "X$p"; then 11188 enable_fast_install=yes 11189 fi 11190 done 11191 IFS=$lt_save_ifs 11192 ;; 11193 esac 11194 else 11195 enable_fast_install=yes 11196 fi 11197 11198 11199 11200 11201 11202 11203 11204 11205 shared_archive_member_spec= 11206 case $host,$enable_shared in 11207 power*-*-aix[5-9]*,yes) 11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 11209 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 11210 11211 # Check whether --with-aix-soname was given. 11212 if test "${with_aix_soname+set}" = set; then : 11213 withval=$with_aix_soname; case $withval in 11214 aix|svr4|both) 11215 ;; 11216 *) 11217 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 11218 ;; 11219 esac 11220 lt_cv_with_aix_soname=$with_aix_soname 11221 else 11222 if ${lt_cv_with_aix_soname+:} false; then : 11223 $as_echo_n "(cached) " >&6 11224 else 11225 lt_cv_with_aix_soname=aix 11226 fi 11227 11228 with_aix_soname=$lt_cv_with_aix_soname 11229 fi 11230 11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 11232 $as_echo "$with_aix_soname" >&6; } 11233 if test aix != "$with_aix_soname"; then 11234 # For the AIX way of multilib, we name the shared archive member 11235 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 11236 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 11237 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 11238 # the AIX toolchain works better with OBJECT_MODE set (default 32). 11239 if test 64 = "${OBJECT_MODE-32}"; then 11240 shared_archive_member_spec=shr_64 11241 else 11242 shared_archive_member_spec=shr 11243 fi 11244 fi 11245 ;; 11246 *) 11247 with_aix_soname=aix 11248 ;; 11249 esac 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 # This can be used to rebuild libtool when needed 11261 LIBTOOL_DEPS=$ltmain 11262 11263 # Always use our own libtool. 11264 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 test -z "$LN_S" && LN_S="ln -s" 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 if test -n "${ZSH_VERSION+set}"; then 11311 setopt NO_GLOB_SUBST 11312 fi 11313 11314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 11315 $as_echo_n "checking for objdir... " >&6; } 11316 if ${lt_cv_objdir+:} false; then : 11317 $as_echo_n "(cached) " >&6 11318 else 11319 rm -f .libs 2>/dev/null 11320 mkdir .libs 2>/dev/null 11321 if test -d .libs; then 11322 lt_cv_objdir=.libs 11323 else 11324 # MS-DOS does not allow filenames that begin with a dot. 11325 lt_cv_objdir=_libs 11326 fi 11327 rmdir .libs 2>/dev/null 11328 fi 11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 11330 $as_echo "$lt_cv_objdir" >&6; } 11331 objdir=$lt_cv_objdir 11332 11333 11334 11335 11336 11337 cat >>confdefs.h <<_ACEOF 11338 #define LT_OBJDIR "$lt_cv_objdir/" 11339 _ACEOF 11340 11341 11342 11343 11344 case $host_os in 11345 aix3*) 11346 # AIX sometimes has problems with the GCC collect2 program. For some 11347 # reason, if we set the COLLECT_NAMES environment variable, the problems 11348 # vanish in a puff of smoke. 11349 if test set != "${COLLECT_NAMES+set}"; then 11350 COLLECT_NAMES= 11351 export COLLECT_NAMES 11352 fi 11353 ;; 11354 esac 11355 11356 # Global variables: 11357 ofile=libtool 11358 can_build_shared=yes 11359 11360 # All known linkers require a '.a' archive for static linking (except MSVC, 11361 # which needs '.lib'). 11362 libext=a 11363 11364 with_gnu_ld=$lt_cv_prog_gnu_ld 11365 11366 old_CC=$CC 11367 old_CFLAGS=$CFLAGS 11368 11369 # Set sane defaults for various variables 11370 test -z "$CC" && CC=cc 11371 test -z "$LTCC" && LTCC=$CC 11372 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 11373 test -z "$LD" && LD=ld 11374 test -z "$ac_objext" && ac_objext=o 11375 11376 func_cc_basename $compiler 11377 cc_basename=$func_cc_basename_result 11378 11379 11380 # Only perform the check for file, if the check method requires it 11381 test -z "$MAGIC_CMD" && MAGIC_CMD=file 11382 case $deplibs_check_method in 11383 file_magic*) 11384 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 11386 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 11387 if ${lt_cv_path_MAGIC_CMD+:} false; then : 11388 $as_echo_n "(cached) " >&6 11389 else 11390 case $MAGIC_CMD in 11391 [\\/*] | ?:[\\/]*) 11392 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 11393 ;; 11394 *) 11395 lt_save_MAGIC_CMD=$MAGIC_CMD 11396 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11397 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11398 for ac_dir in $ac_dummy; do 11399 IFS=$lt_save_ifs 11400 test -z "$ac_dir" && ac_dir=. 11401 if test -f "$ac_dir/${ac_tool_prefix}file"; then 11402 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 11403 if test -n "$file_magic_test_file"; then 11404 case $deplibs_check_method in 11405 "file_magic "*) 11406 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 11407 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11408 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 11409 $EGREP "$file_magic_regex" > /dev/null; then 11410 : 11411 else 11412 cat <<_LT_EOF 1>&2 11413 11414 *** Warning: the command libtool uses to detect shared libraries, 11415 *** $file_magic_cmd, produces output that libtool cannot recognize. 11416 *** The result is that libtool may fail to recognize shared libraries 11417 *** as such. This will affect the creation of libtool libraries that 11418 *** depend on shared libraries, but programs linked with such libtool 11419 *** libraries will work regardless of this problem. Nevertheless, you 11420 *** may want to report the problem to your system manager and/or to 11421 *** bug-libtool (at] gnu.org 11422 11423 _LT_EOF 11424 fi ;; 11425 esac 11426 fi 11427 break 11428 fi 11429 done 11430 IFS=$lt_save_ifs 11431 MAGIC_CMD=$lt_save_MAGIC_CMD 11432 ;; 11433 esac 11434 fi 11435 11436 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11437 if test -n "$MAGIC_CMD"; then 11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 11439 $as_echo "$MAGIC_CMD" >&6; } 11440 else 11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11442 $as_echo "no" >&6; } 11443 fi 11444 11445 11446 11447 11448 11449 if test -z "$lt_cv_path_MAGIC_CMD"; then 11450 if test -n "$ac_tool_prefix"; then 11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 11452 $as_echo_n "checking for file... " >&6; } 11453 if ${lt_cv_path_MAGIC_CMD+:} false; then : 11454 $as_echo_n "(cached) " >&6 11455 else 11456 case $MAGIC_CMD in 11457 [\\/*] | ?:[\\/]*) 11458 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 11459 ;; 11460 *) 11461 lt_save_MAGIC_CMD=$MAGIC_CMD 11462 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11463 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11464 for ac_dir in $ac_dummy; do 11465 IFS=$lt_save_ifs 11466 test -z "$ac_dir" && ac_dir=. 11467 if test -f "$ac_dir/file"; then 11468 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 11469 if test -n "$file_magic_test_file"; then 11470 case $deplibs_check_method in 11471 "file_magic "*) 11472 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 11473 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11474 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 11475 $EGREP "$file_magic_regex" > /dev/null; then 11476 : 11477 else 11478 cat <<_LT_EOF 1>&2 11479 11480 *** Warning: the command libtool uses to detect shared libraries, 11481 *** $file_magic_cmd, produces output that libtool cannot recognize. 11482 *** The result is that libtool may fail to recognize shared libraries 11483 *** as such. This will affect the creation of libtool libraries that 11484 *** depend on shared libraries, but programs linked with such libtool 11485 *** libraries will work regardless of this problem. Nevertheless, you 11486 *** may want to report the problem to your system manager and/or to 11487 *** bug-libtool (at] gnu.org 11488 11489 _LT_EOF 11490 fi ;; 11491 esac 11492 fi 11493 break 11494 fi 11495 done 11496 IFS=$lt_save_ifs 11497 MAGIC_CMD=$lt_save_MAGIC_CMD 11498 ;; 11499 esac 11500 fi 11501 11502 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11503 if test -n "$MAGIC_CMD"; then 11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 11505 $as_echo "$MAGIC_CMD" >&6; } 11506 else 11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11508 $as_echo "no" >&6; } 11509 fi 11510 11511 11512 else 11513 MAGIC_CMD=: 11514 fi 11515 fi 11516 11517 fi 11518 ;; 11519 esac 11520 11521 # Use C for the default configuration in the libtool script 11522 11523 lt_save_CC=$CC 11524 ac_ext=c 11525 ac_cpp='$CPP $CPPFLAGS' 11526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11528 ac_compiler_gnu=$ac_cv_c_compiler_gnu 11529 11530 11531 # Source file extension for C test sources. 11532 ac_ext=c 11533 11534 # Object file extension for compiled C test sources. 11535 objext=o 11536 objext=$objext 11537 11538 # Code to be used in simple compile tests 11539 lt_simple_compile_test_code="int some_variable = 0;" 11540 11541 # Code to be used in simple link tests 11542 lt_simple_link_test_code='int main(){return(0);}' 11543 11544 11545 11546 11547 11548 11549 11550 # If no C compiler was specified, use CC. 11551 LTCC=${LTCC-"$CC"} 11552 11553 # If no C compiler flags were specified, use CFLAGS. 11554 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11555 11556 # Allow CC to be a program name with arguments. 11557 compiler=$CC 11558 11559 # Save the default compiler, since it gets overwritten when the other 11560 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 11561 compiler_DEFAULT=$CC 11562 11563 # save warnings/boilerplate of simple test code 11564 ac_outfile=conftest.$ac_objext 11565 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11566 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11567 _lt_compiler_boilerplate=`cat conftest.err` 11568 $RM conftest* 11569 11570 ac_outfile=conftest.$ac_objext 11571 echo "$lt_simple_link_test_code" >conftest.$ac_ext 11572 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11573 _lt_linker_boilerplate=`cat conftest.err` 11574 $RM -r conftest* 11575 11576 11577 ## CAVEAT EMPTOR: 11578 ## There is no encapsulation within the following macros, do not change 11579 ## the running order or otherwise move them around unless you know exactly 11580 ## what you are doing... 11581 if test -n "$compiler"; then 11582 11583 lt_prog_compiler_no_builtin_flag= 11584 11585 if test yes = "$GCC"; then 11586 case $cc_basename in 11587 nvcc*) 11588 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 11589 *) 11590 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 11591 esac 11592 11593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 11594 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 11595 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 11596 $as_echo_n "(cached) " >&6 11597 else 11598 lt_cv_prog_compiler_rtti_exceptions=no 11599 ac_outfile=conftest.$ac_objext 11600 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11601 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 11602 # Insert the option either (1) after the last *FLAGS variable, or 11603 # (2) before a word containing "conftest.", or (3) at the end. 11604 # Note that $ac_compile itself does not contain backslashes and begins 11605 # with a dollar sign (not a hyphen), so the echo should work correctly. 11606 # The option is referenced via a variable to avoid confusing sed. 11607 lt_compile=`echo "$ac_compile" | $SED \ 11608 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11609 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11610 -e 's:$: $lt_compiler_flag:'` 11611 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11612 (eval "$lt_compile" 2>conftest.err) 11613 ac_status=$? 11614 cat conftest.err >&5 11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11616 if (exit $ac_status) && test -s "$ac_outfile"; then 11617 # The compiler can only warn and ignore the option if not recognized 11618 # So say no if there are warnings other than the usual output. 11619 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11620 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11621 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11622 lt_cv_prog_compiler_rtti_exceptions=yes 11623 fi 11624 fi 11625 $RM conftest* 11626 11627 fi 11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 11629 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 11630 11631 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 11632 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 11633 else 11634 : 11635 fi 11636 11637 fi 11638 11639 11640 11641 11642 11643 11644 lt_prog_compiler_wl= 11645 lt_prog_compiler_pic= 11646 lt_prog_compiler_static= 11647 11648 11649 if test yes = "$GCC"; then 11650 lt_prog_compiler_wl='-Wl,' 11651 lt_prog_compiler_static='-static' 11652 11653 case $host_os in 11654 aix*) 11655 # All AIX code is PIC. 11656 if test ia64 = "$host_cpu"; then 11657 # AIX 5 now supports IA64 processor 11658 lt_prog_compiler_static='-Bstatic' 11659 fi 11660 lt_prog_compiler_pic='-fPIC' 11661 ;; 11662 11663 amigaos*) 11664 case $host_cpu in 11665 powerpc) 11666 # see comment about AmigaOS4 .so support 11667 lt_prog_compiler_pic='-fPIC' 11668 ;; 11669 m68k) 11670 # FIXME: we need at least 68020 code to build shared libraries, but 11671 # adding the '-m68020' flag to GCC prevents building anything better, 11672 # like '-m68040'. 11673 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 11674 ;; 11675 esac 11676 ;; 11677 11678 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11679 # PIC is the default for these OSes. 11680 ;; 11681 11682 mingw* | cygwin* | pw32* | os2* | cegcc*) 11683 # This hack is so that the source file can tell whether it is being 11684 # built for inclusion in a dll (and should export symbols for example). 11685 # Although the cygwin gcc ignores -fPIC, still need this for old-style 11686 # (--disable-auto-import) libraries 11687 lt_prog_compiler_pic='-DDLL_EXPORT' 11688 case $host_os in 11689 os2*) 11690 lt_prog_compiler_static='$wl-static' 11691 ;; 11692 esac 11693 ;; 11694 11695 darwin* | rhapsody*) 11696 # PIC is the default on this platform 11697 # Common symbols not allowed in MH_DYLIB files 11698 lt_prog_compiler_pic='-fno-common' 11699 ;; 11700 11701 haiku*) 11702 # PIC is the default for Haiku. 11703 # The "-static" flag exists, but is broken. 11704 lt_prog_compiler_static= 11705 ;; 11706 11707 hpux*) 11708 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 11709 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 11710 # sets the default TLS model and affects inlining. 11711 case $host_cpu in 11712 hppa*64*) 11713 # +Z the default 11714 ;; 11715 *) 11716 lt_prog_compiler_pic='-fPIC' 11717 ;; 11718 esac 11719 ;; 11720 11721 interix[3-9]*) 11722 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11723 # Instead, we relocate shared libraries at runtime. 11724 ;; 11725 11726 msdosdjgpp*) 11727 # Just because we use GCC doesn't mean we suddenly get shared libraries 11728 # on systems that don't support them. 11729 lt_prog_compiler_can_build_shared=no 11730 enable_shared=no 11731 ;; 11732 11733 *nto* | *qnx*) 11734 # QNX uses GNU C++, but need to define -shared option too, otherwise 11735 # it will coredump. 11736 lt_prog_compiler_pic='-fPIC -shared' 11737 ;; 11738 11739 sysv4*MP*) 11740 if test -d /usr/nec; then 11741 lt_prog_compiler_pic=-Kconform_pic 11742 fi 11743 ;; 11744 11745 *) 11746 lt_prog_compiler_pic='-fPIC' 11747 ;; 11748 esac 11749 11750 case $cc_basename in 11751 nvcc*) # Cuda Compiler Driver 2.2 11752 lt_prog_compiler_wl='-Xlinker ' 11753 if test -n "$lt_prog_compiler_pic"; then 11754 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 11755 fi 11756 ;; 11757 esac 11758 else 11759 # PORTME Check for flag to pass linker flags through the system compiler. 11760 case $host_os in 11761 aix*) 11762 lt_prog_compiler_wl='-Wl,' 11763 if test ia64 = "$host_cpu"; then 11764 # AIX 5 now supports IA64 processor 11765 lt_prog_compiler_static='-Bstatic' 11766 else 11767 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 11768 fi 11769 ;; 11770 11771 darwin* | rhapsody*) 11772 # PIC is the default on this platform 11773 # Common symbols not allowed in MH_DYLIB files 11774 lt_prog_compiler_pic='-fno-common' 11775 case $cc_basename in 11776 nagfor*) 11777 # NAG Fortran compiler 11778 lt_prog_compiler_wl='-Wl,-Wl,,' 11779 lt_prog_compiler_pic='-PIC' 11780 lt_prog_compiler_static='-Bstatic' 11781 ;; 11782 esac 11783 ;; 11784 11785 mingw* | cygwin* | pw32* | os2* | cegcc*) 11786 # This hack is so that the source file can tell whether it is being 11787 # built for inclusion in a dll (and should export symbols for example). 11788 lt_prog_compiler_pic='-DDLL_EXPORT' 11789 case $host_os in 11790 os2*) 11791 lt_prog_compiler_static='$wl-static' 11792 ;; 11793 esac 11794 ;; 11795 11796 hpux9* | hpux10* | hpux11*) 11797 lt_prog_compiler_wl='-Wl,' 11798 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11799 # not for PA HP-UX. 11800 case $host_cpu in 11801 hppa*64*|ia64*) 11802 # +Z the default 11803 ;; 11804 *) 11805 lt_prog_compiler_pic='+Z' 11806 ;; 11807 esac 11808 # Is there a better lt_prog_compiler_static that works with the bundled CC? 11809 lt_prog_compiler_static='$wl-a ${wl}archive' 11810 ;; 11811 11812 irix5* | irix6* | nonstopux*) 11813 lt_prog_compiler_wl='-Wl,' 11814 # PIC (with -KPIC) is the default. 11815 lt_prog_compiler_static='-non_shared' 11816 ;; 11817 11818 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11819 case $cc_basename in 11820 # old Intel for x86_64, which still supported -KPIC. 11821 ecc*) 11822 lt_prog_compiler_wl='-Wl,' 11823 lt_prog_compiler_pic='-KPIC' 11824 lt_prog_compiler_static='-static' 11825 ;; 11826 # icc used to be incompatible with GCC. 11827 # ICC 10 doesn't accept -KPIC any more. 11828 icc* | ifort*) 11829 lt_prog_compiler_wl='-Wl,' 11830 lt_prog_compiler_pic='-fPIC' 11831 lt_prog_compiler_static='-static' 11832 ;; 11833 # Lahey Fortran 8.1. 11834 lf95*) 11835 lt_prog_compiler_wl='-Wl,' 11836 lt_prog_compiler_pic='--shared' 11837 lt_prog_compiler_static='--static' 11838 ;; 11839 nagfor*) 11840 # NAG Fortran compiler 11841 lt_prog_compiler_wl='-Wl,-Wl,,' 11842 lt_prog_compiler_pic='-PIC' 11843 lt_prog_compiler_static='-Bstatic' 11844 ;; 11845 tcc*) 11846 # Fabrice Bellard et al's Tiny C Compiler 11847 lt_prog_compiler_wl='-Wl,' 11848 lt_prog_compiler_pic='-fPIC' 11849 lt_prog_compiler_static='-static' 11850 ;; 11851 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 11852 # Portland Group compilers (*not* the Pentium gcc compiler, 11853 # which looks to be a dead project) 11854 lt_prog_compiler_wl='-Wl,' 11855 lt_prog_compiler_pic='-fpic' 11856 lt_prog_compiler_static='-Bstatic' 11857 ;; 11858 ccc*) 11859 lt_prog_compiler_wl='-Wl,' 11860 # All Alpha code is PIC. 11861 lt_prog_compiler_static='-non_shared' 11862 ;; 11863 xl* | bgxl* | bgf* | mpixl*) 11864 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 11865 lt_prog_compiler_wl='-Wl,' 11866 lt_prog_compiler_pic='-qpic' 11867 lt_prog_compiler_static='-qstaticlink' 11868 ;; 11869 *) 11870 case `$CC -V 2>&1 | sed 5q` in 11871 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 11872 # Sun Fortran 8.3 passes all unrecognized flags to the linker 11873 lt_prog_compiler_pic='-KPIC' 11874 lt_prog_compiler_static='-Bstatic' 11875 lt_prog_compiler_wl='' 11876 ;; 11877 *Sun\ F* | *Sun*Fortran*) 11878 lt_prog_compiler_pic='-KPIC' 11879 lt_prog_compiler_static='-Bstatic' 11880 lt_prog_compiler_wl='-Qoption ld ' 11881 ;; 11882 *Sun\ C*) 11883 # Sun C 5.9 11884 lt_prog_compiler_pic='-KPIC' 11885 lt_prog_compiler_static='-Bstatic' 11886 lt_prog_compiler_wl='-Wl,' 11887 ;; 11888 *Intel*\ [CF]*Compiler*) 11889 lt_prog_compiler_wl='-Wl,' 11890 lt_prog_compiler_pic='-fPIC' 11891 lt_prog_compiler_static='-static' 11892 ;; 11893 *Portland\ Group*) 11894 lt_prog_compiler_wl='-Wl,' 11895 lt_prog_compiler_pic='-fpic' 11896 lt_prog_compiler_static='-Bstatic' 11897 ;; 11898 esac 11899 ;; 11900 esac 11901 ;; 11902 11903 newsos6) 11904 lt_prog_compiler_pic='-KPIC' 11905 lt_prog_compiler_static='-Bstatic' 11906 ;; 11907 11908 *nto* | *qnx*) 11909 # QNX uses GNU C++, but need to define -shared option too, otherwise 11910 # it will coredump. 11911 lt_prog_compiler_pic='-fPIC -shared' 11912 ;; 11913 11914 osf3* | osf4* | osf5*) 11915 lt_prog_compiler_wl='-Wl,' 11916 # All OSF/1 code is PIC. 11917 lt_prog_compiler_static='-non_shared' 11918 ;; 11919 11920 rdos*) 11921 lt_prog_compiler_static='-non_shared' 11922 ;; 11923 11924 solaris*) 11925 lt_prog_compiler_pic='-KPIC' 11926 lt_prog_compiler_static='-Bstatic' 11927 case $cc_basename in 11928 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 11929 lt_prog_compiler_wl='-Qoption ld ';; 11930 *) 11931 lt_prog_compiler_wl='-Wl,';; 11932 esac 11933 ;; 11934 11935 sunos4*) 11936 lt_prog_compiler_wl='-Qoption ld ' 11937 lt_prog_compiler_pic='-PIC' 11938 lt_prog_compiler_static='-Bstatic' 11939 ;; 11940 11941 sysv4 | sysv4.2uw2* | sysv4.3*) 11942 lt_prog_compiler_wl='-Wl,' 11943 lt_prog_compiler_pic='-KPIC' 11944 lt_prog_compiler_static='-Bstatic' 11945 ;; 11946 11947 sysv4*MP*) 11948 if test -d /usr/nec; then 11949 lt_prog_compiler_pic='-Kconform_pic' 11950 lt_prog_compiler_static='-Bstatic' 11951 fi 11952 ;; 11953 11954 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11955 lt_prog_compiler_wl='-Wl,' 11956 lt_prog_compiler_pic='-KPIC' 11957 lt_prog_compiler_static='-Bstatic' 11958 ;; 11959 11960 unicos*) 11961 lt_prog_compiler_wl='-Wl,' 11962 lt_prog_compiler_can_build_shared=no 11963 ;; 11964 11965 uts4*) 11966 lt_prog_compiler_pic='-pic' 11967 lt_prog_compiler_static='-Bstatic' 11968 ;; 11969 11970 *) 11971 lt_prog_compiler_can_build_shared=no 11972 ;; 11973 esac 11974 fi 11975 11976 case $host_os in 11977 # For platforms that do not support PIC, -DPIC is meaningless: 11978 *djgpp*) 11979 lt_prog_compiler_pic= 11980 ;; 11981 *) 11982 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 11983 ;; 11984 esac 11985 11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 11987 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 11988 if ${lt_cv_prog_compiler_pic+:} false; then : 11989 $as_echo_n "(cached) " >&6 11990 else 11991 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 11992 fi 11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 11994 $as_echo "$lt_cv_prog_compiler_pic" >&6; } 11995 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 11996 11997 # 11998 # Check to make sure the PIC flag actually works. 11999 # 12000 if test -n "$lt_prog_compiler_pic"; then 12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 12002 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 12003 if ${lt_cv_prog_compiler_pic_works+:} false; then : 12004 $as_echo_n "(cached) " >&6 12005 else 12006 lt_cv_prog_compiler_pic_works=no 12007 ac_outfile=conftest.$ac_objext 12008 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12009 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 12010 # Insert the option either (1) after the last *FLAGS variable, or 12011 # (2) before a word containing "conftest.", or (3) at the end. 12012 # Note that $ac_compile itself does not contain backslashes and begins 12013 # with a dollar sign (not a hyphen), so the echo should work correctly. 12014 # The option is referenced via a variable to avoid confusing sed. 12015 lt_compile=`echo "$ac_compile" | $SED \ 12016 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12017 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12018 -e 's:$: $lt_compiler_flag:'` 12019 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12020 (eval "$lt_compile" 2>conftest.err) 12021 ac_status=$? 12022 cat conftest.err >&5 12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12024 if (exit $ac_status) && test -s "$ac_outfile"; then 12025 # The compiler can only warn and ignore the option if not recognized 12026 # So say no if there are warnings other than the usual output. 12027 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 12028 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12029 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12030 lt_cv_prog_compiler_pic_works=yes 12031 fi 12032 fi 12033 $RM conftest* 12034 12035 fi 12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 12037 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 12038 12039 if test yes = "$lt_cv_prog_compiler_pic_works"; then 12040 case $lt_prog_compiler_pic in 12041 "" | " "*) ;; 12042 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 12043 esac 12044 else 12045 lt_prog_compiler_pic= 12046 lt_prog_compiler_can_build_shared=no 12047 fi 12048 12049 fi 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 # 12062 # Check to make sure the static flag actually works. 12063 # 12064 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12066 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 12067 if ${lt_cv_prog_compiler_static_works+:} false; then : 12068 $as_echo_n "(cached) " >&6 12069 else 12070 lt_cv_prog_compiler_static_works=no 12071 save_LDFLAGS=$LDFLAGS 12072 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12073 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12074 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12075 # The linker can only warn and ignore the option if not recognized 12076 # So say no if there are warnings 12077 if test -s conftest.err; then 12078 # Append any errors to the config.log. 12079 cat conftest.err 1>&5 12080 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12081 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12082 if diff conftest.exp conftest.er2 >/dev/null; then 12083 lt_cv_prog_compiler_static_works=yes 12084 fi 12085 else 12086 lt_cv_prog_compiler_static_works=yes 12087 fi 12088 fi 12089 $RM -r conftest* 12090 LDFLAGS=$save_LDFLAGS 12091 12092 fi 12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 12094 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } 12095 12096 if test yes = "$lt_cv_prog_compiler_static_works"; then 12097 : 12098 else 12099 lt_prog_compiler_static= 12100 fi 12101 12102 12103 12104 12105 12106 12107 12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12109 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12110 if ${lt_cv_prog_compiler_c_o+:} false; then : 12111 $as_echo_n "(cached) " >&6 12112 else 12113 lt_cv_prog_compiler_c_o=no 12114 $RM -r conftest 2>/dev/null 12115 mkdir conftest 12116 cd conftest 12117 mkdir out 12118 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12119 12120 lt_compiler_flag="-o out/conftest2.$ac_objext" 12121 # Insert the option either (1) after the last *FLAGS variable, or 12122 # (2) before a word containing "conftest.", or (3) at the end. 12123 # Note that $ac_compile itself does not contain backslashes and begins 12124 # with a dollar sign (not a hyphen), so the echo should work correctly. 12125 lt_compile=`echo "$ac_compile" | $SED \ 12126 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12127 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12128 -e 's:$: $lt_compiler_flag:'` 12129 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12130 (eval "$lt_compile" 2>out/conftest.err) 12131 ac_status=$? 12132 cat out/conftest.err >&5 12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12134 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12135 then 12136 # The compiler can only warn and ignore the option if not recognized 12137 # So say no if there are warnings 12138 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 12139 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12140 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12141 lt_cv_prog_compiler_c_o=yes 12142 fi 12143 fi 12144 chmod u+w . 2>&5 12145 $RM conftest* 12146 # SGI C++ compiler will create directory out/ii_files/ for 12147 # template instantiation 12148 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 12149 $RM out/* && rmdir out 12150 cd .. 12151 $RM -r conftest 12152 $RM conftest* 12153 12154 fi 12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 12156 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 12157 12158 12159 12160 12161 12162 12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12164 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12165 if ${lt_cv_prog_compiler_c_o+:} false; then : 12166 $as_echo_n "(cached) " >&6 12167 else 12168 lt_cv_prog_compiler_c_o=no 12169 $RM -r conftest 2>/dev/null 12170 mkdir conftest 12171 cd conftest 12172 mkdir out 12173 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12174 12175 lt_compiler_flag="-o out/conftest2.$ac_objext" 12176 # Insert the option either (1) after the last *FLAGS variable, or 12177 # (2) before a word containing "conftest.", or (3) at the end. 12178 # Note that $ac_compile itself does not contain backslashes and begins 12179 # with a dollar sign (not a hyphen), so the echo should work correctly. 12180 lt_compile=`echo "$ac_compile" | $SED \ 12181 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12182 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12183 -e 's:$: $lt_compiler_flag:'` 12184 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12185 (eval "$lt_compile" 2>out/conftest.err) 12186 ac_status=$? 12187 cat out/conftest.err >&5 12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12189 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12190 then 12191 # The compiler can only warn and ignore the option if not recognized 12192 # So say no if there are warnings 12193 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 12194 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12195 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12196 lt_cv_prog_compiler_c_o=yes 12197 fi 12198 fi 12199 chmod u+w . 2>&5 12200 $RM conftest* 12201 # SGI C++ compiler will create directory out/ii_files/ for 12202 # template instantiation 12203 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 12204 $RM out/* && rmdir out 12205 cd .. 12206 $RM -r conftest 12207 $RM conftest* 12208 12209 fi 12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 12211 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 12212 12213 12214 12215 12216 hard_links=nottested 12217 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 12218 # do not overwrite the value of need_locks provided by the user 12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 12220 $as_echo_n "checking if we can lock with hard links... " >&6; } 12221 hard_links=yes 12222 $RM conftest* 12223 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12224 touch conftest.a 12225 ln conftest.a conftest.b 2>&5 || hard_links=no 12226 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 12228 $as_echo "$hard_links" >&6; } 12229 if test no = "$hard_links"; then 12230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 12231 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 12232 need_locks=warn 12233 fi 12234 else 12235 need_locks=no 12236 fi 12237 12238 12239 12240 12241 12242 12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12244 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12245 12246 runpath_var= 12247 allow_undefined_flag= 12248 always_export_symbols=no 12249 archive_cmds= 12250 archive_expsym_cmds= 12251 compiler_needs_object=no 12252 enable_shared_with_static_runtimes=no 12253 export_dynamic_flag_spec= 12254 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12255 hardcode_automatic=no 12256 hardcode_direct=no 12257 hardcode_direct_absolute=no 12258 hardcode_libdir_flag_spec= 12259 hardcode_libdir_separator= 12260 hardcode_minus_L=no 12261 hardcode_shlibpath_var=unsupported 12262 inherit_rpath=no 12263 link_all_deplibs=unknown 12264 module_cmds= 12265 module_expsym_cmds= 12266 old_archive_from_new_cmds= 12267 old_archive_from_expsyms_cmds= 12268 thread_safe_flag_spec= 12269 whole_archive_flag_spec= 12270 # include_expsyms should be a list of space-separated symbols to be *always* 12271 # included in the symbol list 12272 include_expsyms= 12273 # exclude_expsyms can be an extended regexp of symbols to exclude 12274 # it will be wrapped by ' (' and ')$', so one must not match beginning or 12275 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 12276 # as well as any symbol that contains 'd'. 12277 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 12278 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 12279 # platforms (ab)use it in PIC code, but their linkers get confused if 12280 # the symbol is explicitly referenced. Since portable code cannot 12281 # rely on this symbol name, it's probably fine to never include it in 12282 # preloaded symbol tables. 12283 # Exclude shared library initialization/finalization symbols. 12284 extract_expsyms_cmds= 12285 12286 case $host_os in 12287 cygwin* | mingw* | pw32* | cegcc*) 12288 # FIXME: the MSVC++ port hasn't been tested in a loooong time 12289 # When not using gcc, we currently assume that we are using 12290 # Microsoft Visual C++. 12291 if test yes != "$GCC"; then 12292 with_gnu_ld=no 12293 fi 12294 ;; 12295 interix*) 12296 # we just hope/assume this is gcc and not c89 (= MSVC++) 12297 with_gnu_ld=yes 12298 ;; 12299 openbsd* | bitrig*) 12300 with_gnu_ld=no 12301 ;; 12302 linux* | k*bsd*-gnu | gnu*) 12303 link_all_deplibs=no 12304 ;; 12305 esac 12306 12307 ld_shlibs=yes 12308 12309 # On some targets, GNU ld is compatible enough with the native linker 12310 # that we're better off using the native interface for both. 12311 lt_use_gnu_ld_interface=no 12312 if test yes = "$with_gnu_ld"; then 12313 case $host_os in 12314 aix*) 12315 # The AIX port of GNU ld has always aspired to compatibility 12316 # with the native linker. However, as the warning in the GNU ld 12317 # block says, versions before 2.19.5* couldn't really create working 12318 # shared libraries, regardless of the interface used. 12319 case `$LD -v 2>&1` in 12320 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 12321 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 12322 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 12323 *) 12324 lt_use_gnu_ld_interface=yes 12325 ;; 12326 esac 12327 ;; 12328 *) 12329 lt_use_gnu_ld_interface=yes 12330 ;; 12331 esac 12332 fi 12333 12334 if test yes = "$lt_use_gnu_ld_interface"; then 12335 # If archive_cmds runs LD, not CC, wlarc should be empty 12336 wlarc='$wl' 12337 12338 # Set some defaults for GNU ld with shared library support. These 12339 # are reset later if shared libraries are not supported. Putting them 12340 # here allows them to be overridden if necessary. 12341 runpath_var=LD_RUN_PATH 12342 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12343 export_dynamic_flag_spec='$wl--export-dynamic' 12344 # ancient GNU ld didn't support --whole-archive et. al. 12345 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 12346 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 12347 else 12348 whole_archive_flag_spec= 12349 fi 12350 supports_anon_versioning=no 12351 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 12352 *GNU\ gold*) supports_anon_versioning=yes ;; 12353 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 12354 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 12355 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 12356 *\ 2.11.*) ;; # other 2.11 versions 12357 *) supports_anon_versioning=yes ;; 12358 esac 12359 12360 # See if GNU ld supports shared libraries. 12361 case $host_os in 12362 aix[3-9]*) 12363 # On AIX/PPC, the GNU linker is very broken 12364 if test ia64 != "$host_cpu"; then 12365 ld_shlibs=no 12366 cat <<_LT_EOF 1>&2 12367 12368 *** Warning: the GNU linker, at least up to release 2.19, is reported 12369 *** to be unable to reliably create shared libraries on AIX. 12370 *** Therefore, libtool is disabling shared libraries support. If you 12371 *** really care for shared libraries, you may want to install binutils 12372 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 12373 *** You will then need to restart the configuration process. 12374 12375 _LT_EOF 12376 fi 12377 ;; 12378 12379 amigaos*) 12380 case $host_cpu in 12381 powerpc) 12382 # see comment about AmigaOS4 .so support 12383 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12384 archive_expsym_cmds='' 12385 ;; 12386 m68k) 12387 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 12388 hardcode_libdir_flag_spec='-L$libdir' 12389 hardcode_minus_L=yes 12390 ;; 12391 esac 12392 ;; 12393 12394 beos*) 12395 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12396 allow_undefined_flag=unsupported 12397 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 12398 # support --undefined. This deserves some investigation. FIXME 12399 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12400 else 12401 ld_shlibs=no 12402 fi 12403 ;; 12404 12405 cygwin* | mingw* | pw32* | cegcc*) 12406 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 12407 # as there is no search path for DLLs. 12408 hardcode_libdir_flag_spec='-L$libdir' 12409 export_dynamic_flag_spec='$wl--export-all-symbols' 12410 allow_undefined_flag=unsupported 12411 always_export_symbols=no 12412 enable_shared_with_static_runtimes=yes 12413 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 12414 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 12415 12416 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12417 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12418 # If the export-symbols file already is a .def file, use it as 12419 # is; otherwise, prepend EXPORTS... 12420 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 12421 cp $export_symbols $output_objdir/$soname.def; 12422 else 12423 echo EXPORTS > $output_objdir/$soname.def; 12424 cat $export_symbols >> $output_objdir/$soname.def; 12425 fi~ 12426 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12427 else 12428 ld_shlibs=no 12429 fi 12430 ;; 12431 12432 haiku*) 12433 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12434 link_all_deplibs=yes 12435 ;; 12436 12437 os2*) 12438 hardcode_libdir_flag_spec='-L$libdir' 12439 hardcode_minus_L=yes 12440 allow_undefined_flag=unsupported 12441 shrext_cmds=.dll 12442 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12443 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12444 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12445 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12446 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 12447 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12448 emximp -o $lib $output_objdir/$libname.def' 12449 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12450 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12451 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12452 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12453 prefix_cmds="$SED"~ 12454 if test EXPORTS = "`$SED 1q $export_symbols`"; then 12455 prefix_cmds="$prefix_cmds -e 1d"; 12456 fi~ 12457 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 12458 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 12459 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12460 emximp -o $lib $output_objdir/$libname.def' 12461 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 12462 enable_shared_with_static_runtimes=yes 12463 ;; 12464 12465 interix[3-9]*) 12466 hardcode_direct=no 12467 hardcode_shlibpath_var=no 12468 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12469 export_dynamic_flag_spec='$wl-E' 12470 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12471 # Instead, shared libraries are loaded at an image base (0x10000000 by 12472 # default) and relocated if they conflict, which is a slow very memory 12473 # consuming and fragmenting process. To avoid this, we pick a random, 12474 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12475 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12476 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 12477 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 12478 ;; 12479 12480 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 12481 tmp_diet=no 12482 if test linux-dietlibc = "$host_os"; then 12483 case $cc_basename in 12484 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 12485 esac 12486 fi 12487 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 12488 && test no = "$tmp_diet" 12489 then 12490 tmp_addflag=' $pic_flag' 12491 tmp_sharedflag='-shared' 12492 case $cc_basename,$host_cpu in 12493 pgcc*) # Portland Group C compiler 12494 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 12495 tmp_addflag=' $pic_flag' 12496 ;; 12497 pgf77* | pgf90* | pgf95* | pgfortran*) 12498 # Portland Group f77 and f90 compilers 12499 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 12500 tmp_addflag=' $pic_flag -Mnomain' ;; 12501 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 12502 tmp_addflag=' -i_dynamic' ;; 12503 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 12504 tmp_addflag=' -i_dynamic -nofor_main' ;; 12505 ifc* | ifort*) # Intel Fortran compiler 12506 tmp_addflag=' -nofor_main' ;; 12507 lf95*) # Lahey Fortran 8.1 12508 whole_archive_flag_spec= 12509 tmp_sharedflag='--shared' ;; 12510 nagfor*) # NAGFOR 5.3 12511 tmp_sharedflag='-Wl,-shared' ;; 12512 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 12513 tmp_sharedflag='-qmkshrobj' 12514 tmp_addflag= ;; 12515 nvcc*) # Cuda Compiler Driver 2.2 12516 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 12517 compiler_needs_object=yes 12518 ;; 12519 esac 12520 case `$CC -V 2>&1 | sed 5q` in 12521 *Sun\ C*) # Sun C 5.9 12522 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 12523 compiler_needs_object=yes 12524 tmp_sharedflag='-G' ;; 12525 *Sun\ F*) # Sun Fortran 8.3 12526 tmp_sharedflag='-G' ;; 12527 esac 12528 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12529 12530 if test yes = "$supports_anon_versioning"; then 12531 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 12532 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12533 echo "local: *; };" >> $output_objdir/$libname.ver~ 12534 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 12535 fi 12536 12537 case $cc_basename in 12538 tcc*) 12539 export_dynamic_flag_spec='-rdynamic' 12540 ;; 12541 xlf* | bgf* | bgxlf* | mpixlf*) 12542 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 12543 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 12544 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12545 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 12546 if test yes = "$supports_anon_versioning"; then 12547 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 12548 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12549 echo "local: *; };" >> $output_objdir/$libname.ver~ 12550 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 12551 fi 12552 ;; 12553 esac 12554 else 12555 ld_shlibs=no 12556 fi 12557 ;; 12558 12559 netbsd* | netbsdelf*-gnu) 12560 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12561 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 12562 wlarc= 12563 else 12564 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12565 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12566 fi 12567 ;; 12568 12569 solaris*) 12570 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 12571 ld_shlibs=no 12572 cat <<_LT_EOF 1>&2 12573 12574 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 12575 *** create shared libraries on Solaris systems. Therefore, libtool 12576 *** is disabling shared libraries support. We urge you to upgrade GNU 12577 *** binutils to release 2.9.1 or newer. Another option is to modify 12578 *** your PATH or compiler configuration so that the native linker is 12579 *** used, and then restart. 12580 12581 _LT_EOF 12582 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12583 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12584 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12585 else 12586 ld_shlibs=no 12587 fi 12588 ;; 12589 12590 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 12591 case `$LD -v 2>&1` in 12592 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 12593 ld_shlibs=no 12594 cat <<_LT_EOF 1>&2 12595 12596 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 12597 *** reliably create shared libraries on SCO systems. Therefore, libtool 12598 *** is disabling shared libraries support. We urge you to upgrade GNU 12599 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 12600 *** your PATH or compiler configuration so that the native linker is 12601 *** used, and then restart. 12602 12603 _LT_EOF 12604 ;; 12605 *) 12606 # For security reasons, it is highly recommended that you always 12607 # use absolute paths for naming shared libraries, and exclude the 12608 # DT_RUNPATH tag from executables and libraries. But doing so 12609 # requires that you compile everything twice, which is a pain. 12610 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12611 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12612 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12613 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12614 else 12615 ld_shlibs=no 12616 fi 12617 ;; 12618 esac 12619 ;; 12620 12621 sunos4*) 12622 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12623 wlarc= 12624 hardcode_direct=yes 12625 hardcode_shlibpath_var=no 12626 ;; 12627 12628 *) 12629 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12630 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12631 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12632 else 12633 ld_shlibs=no 12634 fi 12635 ;; 12636 esac 12637 12638 if test no = "$ld_shlibs"; then 12639 runpath_var= 12640 hardcode_libdir_flag_spec= 12641 export_dynamic_flag_spec= 12642 whole_archive_flag_spec= 12643 fi 12644 else 12645 # PORTME fill in a description of your system's linker (not GNU ld) 12646 case $host_os in 12647 aix3*) 12648 allow_undefined_flag=unsupported 12649 always_export_symbols=yes 12650 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 12651 # Note: this linker hardcodes the directories in LIBPATH if there 12652 # are no directories specified by -L. 12653 hardcode_minus_L=yes 12654 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 12655 # Neither direct hardcoding nor static linking is supported with a 12656 # broken collect2. 12657 hardcode_direct=unsupported 12658 fi 12659 ;; 12660 12661 aix[4-9]*) 12662 if test ia64 = "$host_cpu"; then 12663 # On IA64, the linker does run time linking by default, so we don't 12664 # have to do anything special. 12665 aix_use_runtimelinking=no 12666 exp_sym_flag='-Bexport' 12667 no_entry_flag= 12668 else 12669 # If we're using GNU nm, then we don't want the "-C" option. 12670 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 12671 # Without the "-l" option, or with the "-B" option, AIX nm treats 12672 # weak defined symbols like other global defined symbols, whereas 12673 # GNU nm marks them as "W". 12674 # While the 'weak' keyword is ignored in the Export File, we need 12675 # it in the Import File for the 'aix-soname' feature, so we have 12676 # to replace the "-B" option with "-P" for AIX nm. 12677 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 12678 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 12679 else 12680 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 12681 fi 12682 aix_use_runtimelinking=no 12683 12684 # Test if we are trying to use run time linking or normal 12685 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12686 # have runtime linking enabled, and use it for executables. 12687 # For shared libraries, we enable/disable runtime linking 12688 # depending on the kind of the shared library created - 12689 # when "with_aix_soname,aix_use_runtimelinking" is: 12690 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 12691 # "aix,yes" lib.so shared, rtl:yes, for executables 12692 # lib.a static archive 12693 # "both,no" lib.so.V(shr.o) shared, rtl:yes 12694 # lib.a(lib.so.V) shared, rtl:no, for executables 12695 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 12696 # lib.a(lib.so.V) shared, rtl:no 12697 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 12698 # lib.a static archive 12699 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12700 for ld_flag in $LDFLAGS; do 12701 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 12702 aix_use_runtimelinking=yes 12703 break 12704 fi 12705 done 12706 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 12707 # With aix-soname=svr4, we create the lib.so.V shared archives only, 12708 # so we don't have lib.a shared libs to link our executables. 12709 # We have to force runtime linking in this case. 12710 aix_use_runtimelinking=yes 12711 LDFLAGS="$LDFLAGS -Wl,-brtl" 12712 fi 12713 ;; 12714 esac 12715 12716 exp_sym_flag='-bexport' 12717 no_entry_flag='-bnoentry' 12718 fi 12719 12720 # When large executables or shared objects are built, AIX ld can 12721 # have problems creating the table of contents. If linking a library 12722 # or program results in "error TOC overflow" add -mminimal-toc to 12723 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12724 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12725 12726 archive_cmds='' 12727 hardcode_direct=yes 12728 hardcode_direct_absolute=yes 12729 hardcode_libdir_separator=':' 12730 link_all_deplibs=yes 12731 file_list_spec='$wl-f,' 12732 case $with_aix_soname,$aix_use_runtimelinking in 12733 aix,*) ;; # traditional, no import file 12734 svr4,* | *,yes) # use import file 12735 # The Import File defines what to hardcode. 12736 hardcode_direct=no 12737 hardcode_direct_absolute=no 12738 ;; 12739 esac 12740 12741 if test yes = "$GCC"; then 12742 case $host_os in aix4.[012]|aix4.[012].*) 12743 # We only want to do this on AIX 4.2 and lower, the check 12744 # below for broken collect2 doesn't work under 4.3+ 12745 collect2name=`$CC -print-prog-name=collect2` 12746 if test -f "$collect2name" && 12747 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12748 then 12749 # We have reworked collect2 12750 : 12751 else 12752 # We have old collect2 12753 hardcode_direct=unsupported 12754 # It fails to find uninstalled libraries when the uninstalled 12755 # path is not listed in the libpath. Setting hardcode_minus_L 12756 # to unsupported forces relinking 12757 hardcode_minus_L=yes 12758 hardcode_libdir_flag_spec='-L$libdir' 12759 hardcode_libdir_separator= 12760 fi 12761 ;; 12762 esac 12763 shared_flag='-shared' 12764 if test yes = "$aix_use_runtimelinking"; then 12765 shared_flag="$shared_flag "'$wl-G' 12766 fi 12767 # Need to ensure runtime linking is disabled for the traditional 12768 # shared library, or the linker may eventually find shared libraries 12769 # /with/ Import File - we do not want to mix them. 12770 shared_flag_aix='-shared' 12771 shared_flag_svr4='-shared $wl-G' 12772 else 12773 # not using gcc 12774 if test ia64 = "$host_cpu"; then 12775 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12776 # chokes on -Wl,-G. The following line is correct: 12777 shared_flag='-G' 12778 else 12779 if test yes = "$aix_use_runtimelinking"; then 12780 shared_flag='$wl-G' 12781 else 12782 shared_flag='$wl-bM:SRE' 12783 fi 12784 shared_flag_aix='$wl-bM:SRE' 12785 shared_flag_svr4='$wl-G' 12786 fi 12787 fi 12788 12789 export_dynamic_flag_spec='$wl-bexpall' 12790 # It seems that -bexpall does not export symbols beginning with 12791 # underscore (_), so it is better to generate a list of symbols to export. 12792 always_export_symbols=yes 12793 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 12794 # Warning - without using the other runtime loading flags (-brtl), 12795 # -berok will link without error, but may produce a broken library. 12796 allow_undefined_flag='-berok' 12797 # Determine the default libpath from the value encoded in an 12798 # empty executable. 12799 if test set = "${lt_cv_aix_libpath+set}"; then 12800 aix_libpath=$lt_cv_aix_libpath 12801 else 12802 if ${lt_cv_aix_libpath_+:} false; then : 12803 $as_echo_n "(cached) " >&6 12804 else 12805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12806 /* end confdefs.h. */ 12807 12808 int main (void) 12809 { 12810 12811 ; 12812 return 0; 12813 } 12814 _ACEOF 12815 if ac_fn_c_try_link "$LINENO"; then : 12816 12817 lt_aix_libpath_sed=' 12818 /Import File Strings/,/^$/ { 12819 /^0/ { 12820 s/^0 *\([^ ]*\) *$/\1/ 12821 p 12822 } 12823 }' 12824 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12825 # Check for a 64-bit object if we didn't find anything. 12826 if test -z "$lt_cv_aix_libpath_"; then 12827 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12828 fi 12829 fi 12830 rm -f core conftest.err conftest.$ac_objext \ 12831 conftest$ac_exeext conftest.$ac_ext 12832 if test -z "$lt_cv_aix_libpath_"; then 12833 lt_cv_aix_libpath_=/usr/lib:/lib 12834 fi 12835 12836 fi 12837 12838 aix_libpath=$lt_cv_aix_libpath_ 12839 fi 12840 12841 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 12842 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 12843 else 12844 if test ia64 = "$host_cpu"; then 12845 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 12846 allow_undefined_flag="-z nodefs" 12847 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" 12848 else 12849 # Determine the default libpath from the value encoded in an 12850 # empty executable. 12851 if test set = "${lt_cv_aix_libpath+set}"; then 12852 aix_libpath=$lt_cv_aix_libpath 12853 else 12854 if ${lt_cv_aix_libpath_+:} false; then : 12855 $as_echo_n "(cached) " >&6 12856 else 12857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12858 /* end confdefs.h. */ 12859 12860 int main (void) 12861 { 12862 12863 ; 12864 return 0; 12865 } 12866 _ACEOF 12867 if ac_fn_c_try_link "$LINENO"; then : 12868 12869 lt_aix_libpath_sed=' 12870 /Import File Strings/,/^$/ { 12871 /^0/ { 12872 s/^0 *\([^ ]*\) *$/\1/ 12873 p 12874 } 12875 }' 12876 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12877 # Check for a 64-bit object if we didn't find anything. 12878 if test -z "$lt_cv_aix_libpath_"; then 12879 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12880 fi 12881 fi 12882 rm -f core conftest.err conftest.$ac_objext \ 12883 conftest$ac_exeext conftest.$ac_ext 12884 if test -z "$lt_cv_aix_libpath_"; then 12885 lt_cv_aix_libpath_=/usr/lib:/lib 12886 fi 12887 12888 fi 12889 12890 aix_libpath=$lt_cv_aix_libpath_ 12891 fi 12892 12893 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 12894 # Warning - without using the other run time loading flags, 12895 # -berok will link without error, but may produce a broken library. 12896 no_undefined_flag=' $wl-bernotok' 12897 allow_undefined_flag=' $wl-berok' 12898 if test yes = "$with_gnu_ld"; then 12899 # We only use this code for GNU lds that support --whole-archive. 12900 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 12901 else 12902 # Exported symbols can be pulled into shared objects from archives 12903 whole_archive_flag_spec='$convenience' 12904 fi 12905 archive_cmds_need_lc=yes 12906 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 12907 # -brtl affects multiple linker settings, -berok does not and is overridden later 12908 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 12909 if test svr4 != "$with_aix_soname"; then 12910 # This is similar to how AIX traditionally builds its shared libraries. 12911 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 12912 fi 12913 if test aix != "$with_aix_soname"; then 12914 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 12915 else 12916 # used by -dlpreopen to get the symbols 12917 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 12918 fi 12919 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 12920 fi 12921 fi 12922 ;; 12923 12924 amigaos*) 12925 case $host_cpu in 12926 powerpc) 12927 # see comment about AmigaOS4 .so support 12928 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12929 archive_expsym_cmds='' 12930 ;; 12931 m68k) 12932 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 12933 hardcode_libdir_flag_spec='-L$libdir' 12934 hardcode_minus_L=yes 12935 ;; 12936 esac 12937 ;; 12938 12939 bsdi[45]*) 12940 export_dynamic_flag_spec=-rdynamic 12941 ;; 12942 12943 cygwin* | mingw* | pw32* | cegcc*) 12944 # When not using gcc, we currently assume that we are using 12945 # Microsoft Visual C++. 12946 # hardcode_libdir_flag_spec is actually meaningless, as there is 12947 # no search path for DLLs. 12948 case $cc_basename in 12949 cl*) 12950 # Native MSVC 12951 hardcode_libdir_flag_spec=' ' 12952 allow_undefined_flag=unsupported 12953 always_export_symbols=yes 12954 file_list_spec='@' 12955 # Tell ltmain to make .lib files, not .a files. 12956 libext=lib 12957 # Tell ltmain to make .dll files, not .so files. 12958 shrext_cmds=.dll 12959 # FIXME: Setting linknames here is a bad hack. 12960 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 12961 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 12962 cp "$export_symbols" "$output_objdir/$soname.def"; 12963 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 12964 else 12965 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 12966 fi~ 12967 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 12968 linknames=' 12969 # The linker will not automatically build a static lib if we build a DLL. 12970 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 12971 enable_shared_with_static_runtimes=yes 12972 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 12973 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 12974 # Don't use ranlib 12975 old_postinstall_cmds='chmod 644 $oldlib' 12976 postlink_cmds='lt_outputfile="@OUTPUT@"~ 12977 lt_tool_outputfile="@TOOL_OUTPUT@"~ 12978 case $lt_outputfile in 12979 *.exe|*.EXE) ;; 12980 *) 12981 lt_outputfile=$lt_outputfile.exe 12982 lt_tool_outputfile=$lt_tool_outputfile.exe 12983 ;; 12984 esac~ 12985 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 12986 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 12987 $RM "$lt_outputfile.manifest"; 12988 fi' 12989 ;; 12990 *) 12991 # Assume MSVC wrapper 12992 hardcode_libdir_flag_spec=' ' 12993 allow_undefined_flag=unsupported 12994 # Tell ltmain to make .lib files, not .a files. 12995 libext=lib 12996 # Tell ltmain to make .dll files, not .so files. 12997 shrext_cmds=.dll 12998 # FIXME: Setting linknames here is a bad hack. 12999 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 13000 # The linker will automatically build a .lib file if we build a DLL. 13001 old_archive_from_new_cmds='true' 13002 # FIXME: Should let the user specify the lib program. 13003 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 13004 enable_shared_with_static_runtimes=yes 13005 ;; 13006 esac 13007 ;; 13008 13009 darwin* | rhapsody*) 13010 13011 13012 archive_cmds_need_lc=no 13013 hardcode_direct=no 13014 hardcode_automatic=yes 13015 hardcode_shlibpath_var=unsupported 13016 if test yes = "$lt_cv_ld_force_load"; then 13017 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 13018 13019 else 13020 whole_archive_flag_spec='' 13021 fi 13022 link_all_deplibs=yes 13023 allow_undefined_flag=$_lt_dar_allow_undefined 13024 case $cc_basename in 13025 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 13026 *) _lt_dar_can_shared=$GCC ;; 13027 esac 13028 if test yes = "$_lt_dar_can_shared"; then 13029 output_verbose_link_cmd=func_echo_all 13030 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 13031 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 13032 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" 13033 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" 13034 13035 else 13036 ld_shlibs=no 13037 fi 13038 13039 ;; 13040 13041 dgux*) 13042 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13043 hardcode_libdir_flag_spec='-L$libdir' 13044 hardcode_shlibpath_var=no 13045 ;; 13046 13047 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 13048 # support. Future versions do this automatically, but an explicit c++rt0.o 13049 # does not break anything, and helps significantly (at the cost of a little 13050 # extra space). 13051 freebsd2.2*) 13052 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 13053 hardcode_libdir_flag_spec='-R$libdir' 13054 hardcode_direct=yes 13055 hardcode_shlibpath_var=no 13056 ;; 13057 13058 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 13059 freebsd2.*) 13060 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13061 hardcode_direct=yes 13062 hardcode_minus_L=yes 13063 hardcode_shlibpath_var=no 13064 ;; 13065 13066 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 13067 freebsd* | dragonfly*) 13068 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13069 hardcode_libdir_flag_spec='-R$libdir' 13070 hardcode_direct=yes 13071 hardcode_shlibpath_var=no 13072 ;; 13073 13074 hpux9*) 13075 if test yes = "$GCC"; then 13076 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv -f $output_objdir/$soname $lib' 13077 else 13078 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv -f $output_objdir/$soname $lib' 13079 fi 13080 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 13081 hardcode_libdir_separator=: 13082 hardcode_direct=yes 13083 13084 # hardcode_minus_L: Not really in the search PATH, 13085 # but as the default location of the library. 13086 hardcode_minus_L=yes 13087 export_dynamic_flag_spec='$wl-E' 13088 ;; 13089 13090 hpux10*) 13091 if test yes,no = "$GCC,$with_gnu_ld"; then 13092 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13093 else 13094 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13095 fi 13096 if test no = "$with_gnu_ld"; then 13097 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 13098 hardcode_libdir_separator=: 13099 hardcode_direct=yes 13100 hardcode_direct_absolute=yes 13101 export_dynamic_flag_spec='$wl-E' 13102 # hardcode_minus_L: Not really in the search PATH, 13103 # but as the default location of the library. 13104 hardcode_minus_L=yes 13105 fi 13106 ;; 13107 13108 hpux11*) 13109 if test yes,no = "$GCC,$with_gnu_ld"; then 13110 case $host_cpu in 13111 hppa*64*) 13112 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 13113 ;; 13114 ia64*) 13115 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13116 ;; 13117 *) 13118 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13119 ;; 13120 esac 13121 else 13122 case $host_cpu in 13123 hppa*64*) 13124 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 13125 ;; 13126 ia64*) 13127 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13128 ;; 13129 *) 13130 13131 # Older versions of the 11.00 compiler do not understand -b yet 13132 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 13134 $as_echo_n "checking if $CC understands -b... " >&6; } 13135 if ${lt_cv_prog_compiler__b+:} false; then : 13136 $as_echo_n "(cached) " >&6 13137 else 13138 lt_cv_prog_compiler__b=no 13139 save_LDFLAGS=$LDFLAGS 13140 LDFLAGS="$LDFLAGS -b" 13141 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13142 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13143 # The linker can only warn and ignore the option if not recognized 13144 # So say no if there are warnings 13145 if test -s conftest.err; then 13146 # Append any errors to the config.log. 13147 cat conftest.err 1>&5 13148 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13149 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13150 if diff conftest.exp conftest.er2 >/dev/null; then 13151 lt_cv_prog_compiler__b=yes 13152 fi 13153 else 13154 lt_cv_prog_compiler__b=yes 13155 fi 13156 fi 13157 $RM -r conftest* 13158 LDFLAGS=$save_LDFLAGS 13159 13160 fi 13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 13162 $as_echo "$lt_cv_prog_compiler__b" >&6; } 13163 13164 if test yes = "$lt_cv_prog_compiler__b"; then 13165 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13166 else 13167 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13168 fi 13169 13170 ;; 13171 esac 13172 fi 13173 if test no = "$with_gnu_ld"; then 13174 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 13175 hardcode_libdir_separator=: 13176 13177 case $host_cpu in 13178 hppa*64*|ia64*) 13179 hardcode_direct=no 13180 hardcode_shlibpath_var=no 13181 ;; 13182 *) 13183 hardcode_direct=yes 13184 hardcode_direct_absolute=yes 13185 export_dynamic_flag_spec='$wl-E' 13186 13187 # hardcode_minus_L: Not really in the search PATH, 13188 # but as the default location of the library. 13189 hardcode_minus_L=yes 13190 ;; 13191 esac 13192 fi 13193 ;; 13194 13195 irix5* | irix6* | nonstopux*) 13196 if test yes = "$GCC"; then 13197 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 13198 # Try to use the -exported_symbol ld option, if it does not 13199 # work, assume that -exports_file does not work either and 13200 # implicitly export all symbols. 13201 # This should be the same for all languages, so no per-tag cache variable. 13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 13203 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 13204 if ${lt_cv_irix_exported_symbol+:} false; then : 13205 $as_echo_n "(cached) " >&6 13206 else 13207 save_LDFLAGS=$LDFLAGS 13208 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 13209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13210 /* end confdefs.h. */ 13211 int foo (void) { return 0; } 13212 _ACEOF 13213 if ac_fn_c_try_link "$LINENO"; then : 13214 lt_cv_irix_exported_symbol=yes 13215 else 13216 lt_cv_irix_exported_symbol=no 13217 fi 13218 rm -f core conftest.err conftest.$ac_objext \ 13219 conftest$ac_exeext conftest.$ac_ext 13220 LDFLAGS=$save_LDFLAGS 13221 fi 13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 13223 $as_echo "$lt_cv_irix_exported_symbol" >&6; } 13224 if test yes = "$lt_cv_irix_exported_symbol"; then 13225 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' 13226 fi 13227 link_all_deplibs=no 13228 else 13229 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 13230 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' 13231 fi 13232 archive_cmds_need_lc='no' 13233 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13234 hardcode_libdir_separator=: 13235 inherit_rpath=yes 13236 link_all_deplibs=yes 13237 ;; 13238 13239 linux*) 13240 case $cc_basename in 13241 tcc*) 13242 # Fabrice Bellard et al's Tiny C Compiler 13243 ld_shlibs=yes 13244 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13245 ;; 13246 esac 13247 ;; 13248 13249 netbsd* | netbsdelf*-gnu) 13250 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13251 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 13252 else 13253 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 13254 fi 13255 hardcode_libdir_flag_spec='-R$libdir' 13256 hardcode_direct=yes 13257 hardcode_shlibpath_var=no 13258 ;; 13259 13260 newsos6) 13261 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13262 hardcode_direct=yes 13263 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13264 hardcode_libdir_separator=: 13265 hardcode_shlibpath_var=no 13266 ;; 13267 13268 *nto* | *qnx*) 13269 ;; 13270 13271 openbsd* | bitrig*) 13272 if test -f /usr/libexec/ld.so; then 13273 hardcode_direct=yes 13274 hardcode_shlibpath_var=no 13275 hardcode_direct_absolute=yes 13276 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 13277 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13278 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 13279 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 13280 export_dynamic_flag_spec='$wl-E' 13281 else 13282 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13283 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 13284 fi 13285 else 13286 ld_shlibs=no 13287 fi 13288 ;; 13289 13290 os2*) 13291 hardcode_libdir_flag_spec='-L$libdir' 13292 hardcode_minus_L=yes 13293 allow_undefined_flag=unsupported 13294 shrext_cmds=.dll 13295 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13296 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13297 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13298 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13299 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 13300 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13301 emximp -o $lib $output_objdir/$libname.def' 13302 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13303 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13304 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13305 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13306 prefix_cmds="$SED"~ 13307 if test EXPORTS = "`$SED 1q $export_symbols`"; then 13308 prefix_cmds="$prefix_cmds -e 1d"; 13309 fi~ 13310 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 13311 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 13312 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13313 emximp -o $lib $output_objdir/$libname.def' 13314 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13315 enable_shared_with_static_runtimes=yes 13316 ;; 13317 13318 osf3*) 13319 if test yes = "$GCC"; then 13320 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 13321 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 13322 else 13323 allow_undefined_flag=' -expect_unresolved \*' 13324 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 13325 fi 13326 archive_cmds_need_lc='no' 13327 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13328 hardcode_libdir_separator=: 13329 ;; 13330 13331 osf4* | osf5*) # as osf3* with the addition of -msym flag 13332 if test yes = "$GCC"; then 13333 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 13334 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 13335 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13336 else 13337 allow_undefined_flag=' -expect_unresolved \*' 13338 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 13339 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 13340 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' 13341 13342 # Both c and cxx compiler support -rpath directly 13343 hardcode_libdir_flag_spec='-rpath $libdir' 13344 fi 13345 archive_cmds_need_lc='no' 13346 hardcode_libdir_separator=: 13347 ;; 13348 13349 solaris*) 13350 no_undefined_flag=' -z defs' 13351 if test yes = "$GCC"; then 13352 wlarc='$wl' 13353 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 13354 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13355 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 13356 else 13357 case `$CC -V 2>&1` in 13358 *"Compilers 5.0"*) 13359 wlarc='' 13360 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 13361 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13362 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 13363 ;; 13364 *) 13365 wlarc='$wl' 13366 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 13367 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13368 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 13369 ;; 13370 esac 13371 fi 13372 hardcode_libdir_flag_spec='-R$libdir' 13373 hardcode_shlibpath_var=no 13374 case $host_os in 13375 solaris2.[0-5] | solaris2.[0-5].*) ;; 13376 *) 13377 # The compiler driver will combine and reorder linker options, 13378 # but understands '-z linker_flag'. GCC discards it without '$wl', 13379 # but is careful enough not to reorder. 13380 # Supported since Solaris 2.6 (maybe 2.5.1?) 13381 if test yes = "$GCC"; then 13382 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 13383 else 13384 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 13385 fi 13386 ;; 13387 esac 13388 link_all_deplibs=yes 13389 ;; 13390 13391 sunos4*) 13392 if test sequent = "$host_vendor"; then 13393 # Use $CC to link under sequent, because it throws in some extra .o 13394 # files that make .init and .fini sections work. 13395 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 13396 else 13397 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 13398 fi 13399 hardcode_libdir_flag_spec='-L$libdir' 13400 hardcode_direct=yes 13401 hardcode_minus_L=yes 13402 hardcode_shlibpath_var=no 13403 ;; 13404 13405 sysv4) 13406 case $host_vendor in 13407 sni) 13408 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13409 hardcode_direct=yes # is this really true??? 13410 ;; 13411 siemens) 13412 ## LD is ld it makes a PLAMLIB 13413 ## CC just makes a GrossModule. 13414 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 13415 reload_cmds='$CC -r -o $output$reload_objs' 13416 hardcode_direct=no 13417 ;; 13418 motorola) 13419 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13420 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 13421 ;; 13422 esac 13423 runpath_var='LD_RUN_PATH' 13424 hardcode_shlibpath_var=no 13425 ;; 13426 13427 sysv4.3*) 13428 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13429 hardcode_shlibpath_var=no 13430 export_dynamic_flag_spec='-Bexport' 13431 ;; 13432 13433 sysv4*MP*) 13434 if test -d /usr/nec; then 13435 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13436 hardcode_shlibpath_var=no 13437 runpath_var=LD_RUN_PATH 13438 hardcode_runpath_var=yes 13439 ld_shlibs=yes 13440 fi 13441 ;; 13442 13443 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13444 no_undefined_flag='$wl-z,text' 13445 archive_cmds_need_lc=no 13446 hardcode_shlibpath_var=no 13447 runpath_var='LD_RUN_PATH' 13448 13449 if test yes = "$GCC"; then 13450 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13451 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13452 else 13453 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13454 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13455 fi 13456 ;; 13457 13458 sysv5* | sco3.2v5* | sco5v6*) 13459 # Note: We CANNOT use -z defs as we might desire, because we do not 13460 # link with -lc, and that would cause any symbols used from libc to 13461 # always be unresolved, which means just about no library would 13462 # ever link correctly. If we're not using GNU ld we use -z text 13463 # though, which does catch some bad symbols but isn't as heavy-handed 13464 # as -z defs. 13465 no_undefined_flag='$wl-z,text' 13466 allow_undefined_flag='$wl-z,nodefs' 13467 archive_cmds_need_lc=no 13468 hardcode_shlibpath_var=no 13469 hardcode_libdir_flag_spec='$wl-R,$libdir' 13470 hardcode_libdir_separator=':' 13471 link_all_deplibs=yes 13472 export_dynamic_flag_spec='$wl-Bexport' 13473 runpath_var='LD_RUN_PATH' 13474 13475 if test yes = "$GCC"; then 13476 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13477 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13478 else 13479 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13480 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13481 fi 13482 ;; 13483 13484 uts4*) 13485 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13486 hardcode_libdir_flag_spec='-L$libdir' 13487 hardcode_shlibpath_var=no 13488 ;; 13489 13490 *) 13491 ld_shlibs=no 13492 ;; 13493 esac 13494 13495 if test sni = "$host_vendor"; then 13496 case $host in 13497 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13498 export_dynamic_flag_spec='$wl-Blargedynsym' 13499 ;; 13500 esac 13501 fi 13502 fi 13503 13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 13505 $as_echo "$ld_shlibs" >&6; } 13506 test no = "$ld_shlibs" && can_build_shared=no 13507 13508 with_gnu_ld=$with_gnu_ld 13509 13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 13523 13524 # 13525 # Do we need to explicitly link libc? 13526 # 13527 case "x$archive_cmds_need_lc" in 13528 x|xyes) 13529 # Assume -lc should be added 13530 archive_cmds_need_lc=yes 13531 13532 if test yes,yes = "$GCC,$enable_shared"; then 13533 case $archive_cmds in 13534 *'~'*) 13535 # FIXME: we may have to deal with multi-command sequences. 13536 ;; 13537 '$CC '*) 13538 # Test whether the compiler implicitly links with -lc since on some 13539 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13540 # to ld, don't add -lc before -lgcc. 13541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 13542 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13543 if ${lt_cv_archive_cmds_need_lc+:} false; then : 13544 $as_echo_n "(cached) " >&6 13545 else 13546 $RM conftest* 13547 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13548 13549 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13550 (eval $ac_compile) 2>&5 13551 ac_status=$? 13552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13553 test $ac_status = 0; } 2>conftest.err; then 13554 soname=conftest 13555 lib=conftest 13556 libobjs=conftest.$ac_objext 13557 deplibs= 13558 wl=$lt_prog_compiler_wl 13559 pic_flag=$lt_prog_compiler_pic 13560 compiler_flags=-v 13561 linker_flags=-v 13562 verstring= 13563 output_objdir=. 13564 libname=conftest 13565 lt_save_allow_undefined_flag=$allow_undefined_flag 13566 allow_undefined_flag= 13567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 13568 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 13569 ac_status=$? 13570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13571 test $ac_status = 0; } 13572 then 13573 lt_cv_archive_cmds_need_lc=no 13574 else 13575 lt_cv_archive_cmds_need_lc=yes 13576 fi 13577 allow_undefined_flag=$lt_save_allow_undefined_flag 13578 else 13579 cat conftest.err 1>&5 13580 fi 13581 $RM conftest* 13582 13583 fi 13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 13585 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 13586 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 13587 ;; 13588 esac 13589 fi 13590 ;; 13591 esac 13592 13593 13594 13595 13596 13597 13598 13599 13600 13601 13602 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616 13617 13618 13619 13620 13621 13622 13623 13624 13625 13626 13627 13628 13629 13630 13631 13632 13633 13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 13644 13645 13646 13647 13648 13649 13650 13651 13652 13653 13654 13655 13656 13657 13658 13659 13660 13661 13662 13663 13664 13665 13666 13667 13668 13669 13670 13671 13672 13673 13674 13675 13676 13677 13678 13679 13680 13681 13682 13683 13684 13685 13686 13687 13688 13689 13690 13691 13692 13693 13694 13695 13696 13697 13698 13699 13700 13701 13702 13703 13704 13705 13706 13707 13708 13709 13710 13711 13712 13713 13714 13715 13716 13717 13718 13719 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 13732 13733 13734 13735 13736 13737 13738 13739 13740 13741 13742 13743 13744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 13745 $as_echo_n "checking dynamic linker characteristics... " >&6; } 13746 13747 if test yes = "$GCC"; then 13748 case $host_os in 13749 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 13750 *) lt_awk_arg='/^libraries:/' ;; 13751 esac 13752 case $host_os in 13753 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 13754 *) lt_sed_strip_eq='s|=/|/|g' ;; 13755 esac 13756 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 13757 case $lt_search_path_spec in 13758 *\;*) 13759 # if the path contains ";" then we assume it to be the separator 13760 # otherwise default to the standard path separator (i.e. ":") - it is 13761 # assumed that no part of a normal pathname contains ";" but that should 13762 # okay in the real world where ";" in dirpaths is itself problematic. 13763 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 13764 ;; 13765 *) 13766 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 13767 ;; 13768 esac 13769 # Ok, now we have the path, separated by spaces, we can step through it 13770 # and add multilib dir if necessary... 13771 lt_tmp_lt_search_path_spec= 13772 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 13773 # ...but if some path component already ends with the multilib dir we assume 13774 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 13775 case "$lt_multi_os_dir; $lt_search_path_spec " in 13776 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 13777 lt_multi_os_dir= 13778 ;; 13779 esac 13780 for lt_sys_path in $lt_search_path_spec; do 13781 if test -d "$lt_sys_path$lt_multi_os_dir"; then 13782 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 13783 elif test -n "$lt_multi_os_dir"; then 13784 test -d "$lt_sys_path" && \ 13785 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 13786 fi 13787 done 13788 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 13789 BEGIN {RS = " "; FS = "/|\n";} { 13790 lt_foo = ""; 13791 lt_count = 0; 13792 for (lt_i = NF; lt_i > 0; lt_i--) { 13793 if ($lt_i != "" && $lt_i != ".") { 13794 if ($lt_i == "..") { 13795 lt_count++; 13796 } else { 13797 if (lt_count == 0) { 13798 lt_foo = "/" $lt_i lt_foo; 13799 } else { 13800 lt_count--; 13801 } 13802 } 13803 } 13804 } 13805 if (lt_foo != "") { lt_freq[lt_foo]++; } 13806 if (lt_freq[lt_foo] == 1) { print lt_foo; } 13807 }'` 13808 # AWK program above erroneously prepends '/' to C:/dos/paths 13809 # for these hosts. 13810 case $host_os in 13811 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 13812 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 13813 esac 13814 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 13815 else 13816 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13817 fi 13818 library_names_spec= 13819 libname_spec='lib$name' 13820 soname_spec= 13821 shrext_cmds=.so 13822 postinstall_cmds= 13823 postuninstall_cmds= 13824 finish_cmds= 13825 finish_eval= 13826 shlibpath_var= 13827 shlibpath_overrides_runpath=unknown 13828 version_type=none 13829 dynamic_linker="$host_os ld.so" 13830 sys_lib_dlsearch_path_spec="/lib /usr/lib" 13831 need_lib_prefix=unknown 13832 hardcode_into_libs=no 13833 13834 # when you set need_version to no, make sure it does not cause -set_version 13835 # flags to be left without arguments 13836 need_version=unknown 13837 13838 13839 13840 case $host_os in 13841 aix3*) 13842 version_type=linux # correct to gnu/linux during the next big refactor 13843 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 13844 shlibpath_var=LIBPATH 13845 13846 # AIX 3 has no versioning support, so we append a major version to the name. 13847 soname_spec='$libname$release$shared_ext$major' 13848 ;; 13849 13850 aix[4-9]*) 13851 version_type=linux # correct to gnu/linux during the next big refactor 13852 need_lib_prefix=no 13853 need_version=no 13854 hardcode_into_libs=yes 13855 if test ia64 = "$host_cpu"; then 13856 # AIX 5 supports IA64 13857 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 13858 shlibpath_var=LD_LIBRARY_PATH 13859 else 13860 # With GCC up to 2.95.x, collect2 would create an import file 13861 # for dependence libraries. The import file would start with 13862 # the line '#! .'. This would cause the generated library to 13863 # depend on '.', always an invalid library. This was fixed in 13864 # development snapshots of GCC prior to 3.0. 13865 case $host_os in 13866 aix4 | aix4.[01] | aix4.[01].*) 13867 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13868 echo ' yes ' 13869 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 13870 : 13871 else 13872 can_build_shared=no 13873 fi 13874 ;; 13875 esac 13876 # Using Import Files as archive members, it is possible to support 13877 # filename-based versioning of shared library archives on AIX. While 13878 # this would work for both with and without runtime linking, it will 13879 # prevent static linking of such archives. So we do filename-based 13880 # shared library versioning with .so extension only, which is used 13881 # when both runtime linking and shared linking is enabled. 13882 # Unfortunately, runtime linking may impact performance, so we do 13883 # not want this to be the default eventually. Also, we use the 13884 # versioned .so libs for executables only if there is the -brtl 13885 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 13886 # To allow for filename-based versioning support, we need to create 13887 # libNAME.so.V as an archive file, containing: 13888 # *) an Import File, referring to the versioned filename of the 13889 # archive as well as the shared archive member, telling the 13890 # bitwidth (32 or 64) of that shared object, and providing the 13891 # list of exported symbols of that shared object, eventually 13892 # decorated with the 'weak' keyword 13893 # *) the shared object with the F_LOADONLY flag set, to really avoid 13894 # it being seen by the linker. 13895 # At run time we better use the real file rather than another symlink, 13896 # but for link time we create the symlink libNAME.so -> libNAME.so.V 13897 13898 case $with_aix_soname,$aix_use_runtimelinking in 13899 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 13900 # soname into executable. Probably we can add versioning support to 13901 # collect2, so additional links can be useful in future. 13902 aix,yes) # traditional libtool 13903 dynamic_linker='AIX unversionable lib.so' 13904 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13905 # instead of lib<name>.a to let people know that these are not 13906 # typical AIX shared libraries. 13907 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13908 ;; 13909 aix,no) # traditional AIX only 13910 dynamic_linker='AIX lib.a(lib.so.V)' 13911 # We preserve .a as extension for shared libraries through AIX4.2 13912 # and later when we are not doing run time linking. 13913 library_names_spec='$libname$release.a $libname.a' 13914 soname_spec='$libname$release$shared_ext$major' 13915 ;; 13916 svr4,*) # full svr4 only 13917 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 13918 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 13919 # We do not specify a path in Import Files, so LIBPATH fires. 13920 shlibpath_overrides_runpath=yes 13921 ;; 13922 *,yes) # both, prefer svr4 13923 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 13924 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 13925 # unpreferred sharedlib libNAME.a needs extra handling 13926 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 13927 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 13928 # We do not specify a path in Import Files, so LIBPATH fires. 13929 shlibpath_overrides_runpath=yes 13930 ;; 13931 *,no) # both, prefer aix 13932 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 13933 library_names_spec='$libname$release.a $libname.a' 13934 soname_spec='$libname$release$shared_ext$major' 13935 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 13936 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 13937 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 13938 ;; 13939 esac 13940 shlibpath_var=LIBPATH 13941 fi 13942 ;; 13943 13944 amigaos*) 13945 case $host_cpu in 13946 powerpc) 13947 # Since July 2007 AmigaOS4 officially supports .so libraries. 13948 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 13949 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13950 ;; 13951 m68k) 13952 library_names_spec='$libname.ixlibrary $libname.a' 13953 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13954 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 13955 ;; 13956 esac 13957 ;; 13958 13959 beos*) 13960 library_names_spec='$libname$shared_ext' 13961 dynamic_linker="$host_os ld.so" 13962 shlibpath_var=LIBRARY_PATH 13963 ;; 13964 13965 bsdi[45]*) 13966 version_type=linux # correct to gnu/linux during the next big refactor 13967 need_version=no 13968 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13969 soname_spec='$libname$release$shared_ext$major' 13970 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13971 shlibpath_var=LD_LIBRARY_PATH 13972 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13973 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13974 # the default ld.so.conf also contains /usr/contrib/lib and 13975 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13976 # libtool to hard-code these into programs 13977 ;; 13978 13979 cygwin* | mingw* | pw32* | cegcc*) 13980 version_type=windows 13981 shrext_cmds=.dll 13982 need_version=no 13983 need_lib_prefix=no 13984 13985 case $GCC,$cc_basename in 13986 yes,*) 13987 # gcc 13988 library_names_spec='$libname.dll.a' 13989 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13990 postinstall_cmds='base_file=`basename \$file`~ 13991 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 13992 dldir=$destdir/`dirname \$dlpath`~ 13993 test -d \$dldir || mkdir -p \$dldir~ 13994 $install_prog $dir/$dlname \$dldir/$dlname~ 13995 chmod a+x \$dldir/$dlname~ 13996 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13997 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13998 fi' 13999 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14000 dlpath=$dir/\$dldll~ 14001 $RM \$dlpath' 14002 shlibpath_overrides_runpath=yes 14003 14004 case $host_os in 14005 cygwin*) 14006 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14007 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14008 14009 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 14010 ;; 14011 mingw* | cegcc*) 14012 # MinGW DLLs use traditional 'lib' prefix 14013 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14014 ;; 14015 pw32*) 14016 # pw32 DLLs use 'pw' prefix rather than 'lib' 14017 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14018 ;; 14019 esac 14020 dynamic_linker='Win32 ld.exe' 14021 ;; 14022 14023 *,cl*) 14024 # Native MSVC 14025 libname_spec='$name' 14026 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14027 library_names_spec='$libname.dll.lib' 14028 14029 case $build_os in 14030 mingw*) 14031 sys_lib_search_path_spec= 14032 lt_save_ifs=$IFS 14033 IFS=';' 14034 for lt_path in $LIB 14035 do 14036 IFS=$lt_save_ifs 14037 # Let DOS variable expansion print the short 8.3 style file name. 14038 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 14039 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 14040 done 14041 IFS=$lt_save_ifs 14042 # Convert to MSYS style. 14043 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 14044 ;; 14045 cygwin*) 14046 # Convert to unix form, then to dos form, then back to unix form 14047 # but this time dos style (no spaces!) so that the unix form looks 14048 # like /cygdrive/c/PROGRA~1:/cygdr... 14049 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 14050 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 14051 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14052 ;; 14053 *) 14054 sys_lib_search_path_spec=$LIB 14055 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 14056 # It is most probably a Windows format PATH. 14057 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14058 else 14059 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14060 fi 14061 # FIXME: find the short name or the path components, as spaces are 14062 # common. (e.g. "Program Files" -> "PROGRA~1") 14063 ;; 14064 esac 14065 14066 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14067 postinstall_cmds='base_file=`basename \$file`~ 14068 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 14069 dldir=$destdir/`dirname \$dlpath`~ 14070 test -d \$dldir || mkdir -p \$dldir~ 14071 $install_prog $dir/$dlname \$dldir/$dlname' 14072 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14073 dlpath=$dir/\$dldll~ 14074 $RM \$dlpath' 14075 shlibpath_overrides_runpath=yes 14076 dynamic_linker='Win32 link.exe' 14077 ;; 14078 14079 *) 14080 # Assume MSVC wrapper 14081 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 14082 dynamic_linker='Win32 ld.exe' 14083 ;; 14084 esac 14085 # FIXME: first we should search . and the directory the executable is in 14086 shlibpath_var=PATH 14087 ;; 14088 14089 darwin* | rhapsody*) 14090 dynamic_linker="$host_os dyld" 14091 version_type=darwin 14092 need_lib_prefix=no 14093 need_version=no 14094 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 14095 soname_spec='$libname$release$major$shared_ext' 14096 shlibpath_overrides_runpath=yes 14097 shlibpath_var=DYLD_LIBRARY_PATH 14098 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14099 14100 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 14101 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14102 ;; 14103 14104 dgux*) 14105 version_type=linux # correct to gnu/linux during the next big refactor 14106 need_lib_prefix=no 14107 need_version=no 14108 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14109 soname_spec='$libname$release$shared_ext$major' 14110 shlibpath_var=LD_LIBRARY_PATH 14111 ;; 14112 14113 freebsd* | dragonfly*) 14114 # DragonFly does not have aout. When/if they implement a new 14115 # versioning mechanism, adjust this. 14116 if test -x /usr/bin/objformat; then 14117 objformat=`/usr/bin/objformat` 14118 else 14119 case $host_os in 14120 freebsd[23].*) objformat=aout ;; 14121 *) objformat=elf ;; 14122 esac 14123 fi 14124 version_type=freebsd-$objformat 14125 case $version_type in 14126 freebsd-elf*) 14127 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14128 soname_spec='$libname$release$shared_ext$major' 14129 need_version=no 14130 need_lib_prefix=no 14131 ;; 14132 freebsd-*) 14133 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14134 need_version=yes 14135 ;; 14136 esac 14137 shlibpath_var=LD_LIBRARY_PATH 14138 case $host_os in 14139 freebsd2.*) 14140 shlibpath_overrides_runpath=yes 14141 ;; 14142 freebsd3.[01]* | freebsdelf3.[01]*) 14143 shlibpath_overrides_runpath=yes 14144 hardcode_into_libs=yes 14145 ;; 14146 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14147 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14148 shlibpath_overrides_runpath=no 14149 hardcode_into_libs=yes 14150 ;; 14151 *) # from 4.6 on, and DragonFly 14152 shlibpath_overrides_runpath=yes 14153 hardcode_into_libs=yes 14154 ;; 14155 esac 14156 ;; 14157 14158 haiku*) 14159 version_type=linux # correct to gnu/linux during the next big refactor 14160 need_lib_prefix=no 14161 need_version=no 14162 dynamic_linker="$host_os runtime_loader" 14163 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14164 soname_spec='$libname$release$shared_ext$major' 14165 shlibpath_var=LIBRARY_PATH 14166 shlibpath_overrides_runpath=no 14167 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 14168 hardcode_into_libs=yes 14169 ;; 14170 14171 hpux9* | hpux10* | hpux11*) 14172 # Give a soname corresponding to the major version so that dld.sl refuses to 14173 # link against other versions. 14174 version_type=sunos 14175 need_lib_prefix=no 14176 need_version=no 14177 case $host_cpu in 14178 ia64*) 14179 shrext_cmds='.so' 14180 hardcode_into_libs=yes 14181 dynamic_linker="$host_os dld.so" 14182 shlibpath_var=LD_LIBRARY_PATH 14183 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14184 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14185 soname_spec='$libname$release$shared_ext$major' 14186 if test 32 = "$HPUX_IA64_MODE"; then 14187 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14188 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 14189 else 14190 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14191 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 14192 fi 14193 ;; 14194 hppa*64*) 14195 shrext_cmds='.sl' 14196 hardcode_into_libs=yes 14197 dynamic_linker="$host_os dld.sl" 14198 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14199 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14200 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14201 soname_spec='$libname$release$shared_ext$major' 14202 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14203 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14204 ;; 14205 *) 14206 shrext_cmds='.sl' 14207 dynamic_linker="$host_os dld.sl" 14208 shlibpath_var=SHLIB_PATH 14209 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14210 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14211 soname_spec='$libname$release$shared_ext$major' 14212 ;; 14213 esac 14214 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 14215 postinstall_cmds='chmod 555 $lib' 14216 # or fails outright, so override atomically: 14217 install_override_mode=555 14218 ;; 14219 14220 interix[3-9]*) 14221 version_type=linux # correct to gnu/linux during the next big refactor 14222 need_lib_prefix=no 14223 need_version=no 14224 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14225 soname_spec='$libname$release$shared_ext$major' 14226 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14227 shlibpath_var=LD_LIBRARY_PATH 14228 shlibpath_overrides_runpath=no 14229 hardcode_into_libs=yes 14230 ;; 14231 14232 irix5* | irix6* | nonstopux*) 14233 case $host_os in 14234 nonstopux*) version_type=nonstopux ;; 14235 *) 14236 if test yes = "$lt_cv_prog_gnu_ld"; then 14237 version_type=linux # correct to gnu/linux during the next big refactor 14238 else 14239 version_type=irix 14240 fi ;; 14241 esac 14242 need_lib_prefix=no 14243 need_version=no 14244 soname_spec='$libname$release$shared_ext$major' 14245 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 14246 case $host_os in 14247 irix5* | nonstopux*) 14248 libsuff= shlibsuff= 14249 ;; 14250 *) 14251 case $LD in # libtool.m4 will add one of these switches to LD 14252 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14253 libsuff= shlibsuff= libmagic=32-bit;; 14254 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14255 libsuff=32 shlibsuff=N32 libmagic=N32;; 14256 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14257 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14258 *) libsuff= shlibsuff= libmagic=never-match;; 14259 esac 14260 ;; 14261 esac 14262 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14263 shlibpath_overrides_runpath=no 14264 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 14265 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 14266 hardcode_into_libs=yes 14267 ;; 14268 14269 # No shared lib support for Linux oldld, aout, or coff. 14270 linux*oldld* | linux*aout* | linux*coff*) 14271 dynamic_linker=no 14272 ;; 14273 14274 linux*android*) 14275 version_type=none # Android doesn't support versioned libraries. 14276 need_lib_prefix=no 14277 need_version=no 14278 library_names_spec='$libname$release$shared_ext' 14279 soname_spec='$libname$release$shared_ext' 14280 finish_cmds= 14281 shlibpath_var=LD_LIBRARY_PATH 14282 shlibpath_overrides_runpath=yes 14283 14284 # This implies no fast_install, which is unacceptable. 14285 # Some rework will be needed to allow for fast_install 14286 # before this can be enabled. 14287 hardcode_into_libs=yes 14288 14289 dynamic_linker='Android linker' 14290 # Don't embed -rpath directories since the linker doesn't support them. 14291 hardcode_libdir_flag_spec='-L$libdir' 14292 ;; 14293 14294 # This must be glibc/ELF. 14295 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14296 version_type=linux # correct to gnu/linux during the next big refactor 14297 need_lib_prefix=no 14298 need_version=no 14299 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14300 soname_spec='$libname$release$shared_ext$major' 14301 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14302 shlibpath_var=LD_LIBRARY_PATH 14303 shlibpath_overrides_runpath=no 14304 14305 # Some binutils ld are patched to set DT_RUNPATH 14306 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 14307 $as_echo_n "(cached) " >&6 14308 else 14309 lt_cv_shlibpath_overrides_runpath=no 14310 save_LDFLAGS=$LDFLAGS 14311 save_libdir=$libdir 14312 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 14313 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 14314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14315 /* end confdefs.h. */ 14316 14317 int main (void) 14318 { 14319 14320 ; 14321 return 0; 14322 } 14323 _ACEOF 14324 if ac_fn_c_try_link "$LINENO"; then : 14325 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 14326 lt_cv_shlibpath_overrides_runpath=yes 14327 fi 14328 fi 14329 rm -f core conftest.err conftest.$ac_objext \ 14330 conftest$ac_exeext conftest.$ac_ext 14331 LDFLAGS=$save_LDFLAGS 14332 libdir=$save_libdir 14333 14334 fi 14335 14336 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 14337 14338 # This implies no fast_install, which is unacceptable. 14339 # Some rework will be needed to allow for fast_install 14340 # before this can be enabled. 14341 hardcode_into_libs=yes 14342 14343 # Ideally, we could use ldconfig to report *all* directores which are 14344 # searched for libraries, however this is still not possible. Aside from not 14345 # being certain /sbin/ldconfig is available, command 14346 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 14347 # even though it is searched at run-time. Try to do the best guess by 14348 # appending ld.so.conf contents (and includes) to the search path. 14349 if test -f /etc/ld.so.conf; then 14350 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 14351 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14352 fi 14353 14354 # We used to test for /lib/ld.so.1 and disable shared libraries on 14355 # powerpc, because MkLinux only supported shared libraries with the 14356 # GNU dynamic linker. Since this was broken with cross compilers, 14357 # most powerpc-linux boxes support dynamic linking these days and 14358 # people can always --disable-shared, the test was removed, and we 14359 # assume the GNU/Linux dynamic linker is in use. 14360 dynamic_linker='GNU/Linux ld.so' 14361 ;; 14362 14363 netbsdelf*-gnu) 14364 version_type=linux 14365 need_lib_prefix=no 14366 need_version=no 14367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14368 soname_spec='${libname}${release}${shared_ext}$major' 14369 shlibpath_var=LD_LIBRARY_PATH 14370 shlibpath_overrides_runpath=no 14371 hardcode_into_libs=yes 14372 dynamic_linker='NetBSD ld.elf_so' 14373 ;; 14374 14375 netbsd*) 14376 version_type=sunos 14377 need_lib_prefix=no 14378 need_version=no 14379 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14380 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14381 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14382 dynamic_linker='NetBSD (a.out) ld.so' 14383 else 14384 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14385 soname_spec='$libname$release$shared_ext$major' 14386 dynamic_linker='NetBSD ld.elf_so' 14387 fi 14388 shlibpath_var=LD_LIBRARY_PATH 14389 shlibpath_overrides_runpath=yes 14390 hardcode_into_libs=yes 14391 ;; 14392 14393 newsos6) 14394 version_type=linux # correct to gnu/linux during the next big refactor 14395 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14396 shlibpath_var=LD_LIBRARY_PATH 14397 shlibpath_overrides_runpath=yes 14398 ;; 14399 14400 *nto* | *qnx*) 14401 version_type=qnx 14402 need_lib_prefix=no 14403 need_version=no 14404 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14405 soname_spec='$libname$release$shared_ext$major' 14406 shlibpath_var=LD_LIBRARY_PATH 14407 shlibpath_overrides_runpath=no 14408 hardcode_into_libs=yes 14409 dynamic_linker='ldqnx.so' 14410 ;; 14411 14412 openbsd* | bitrig*) 14413 version_type=sunos 14414 sys_lib_dlsearch_path_spec=/usr/lib 14415 need_lib_prefix=no 14416 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 14417 need_version=no 14418 else 14419 need_version=yes 14420 fi 14421 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14422 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14423 shlibpath_var=LD_LIBRARY_PATH 14424 shlibpath_overrides_runpath=yes 14425 ;; 14426 14427 os2*) 14428 libname_spec='$name' 14429 version_type=windows 14430 shrext_cmds=.dll 14431 need_version=no 14432 need_lib_prefix=no 14433 # OS/2 can only load a DLL with a base name of 8 characters or less. 14434 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 14435 v=$($ECHO $release$versuffix | tr -d .-); 14436 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 14437 $ECHO $n$v`$shared_ext' 14438 library_names_spec='${libname}_dll.$libext' 14439 dynamic_linker='OS/2 ld.exe' 14440 shlibpath_var=BEGINLIBPATH 14441 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14442 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14443 postinstall_cmds='base_file=`basename \$file`~ 14444 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 14445 dldir=$destdir/`dirname \$dlpath`~ 14446 test -d \$dldir || mkdir -p \$dldir~ 14447 $install_prog $dir/$dlname \$dldir/$dlname~ 14448 chmod a+x \$dldir/$dlname~ 14449 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14450 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14451 fi' 14452 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 14453 dlpath=$dir/\$dldll~ 14454 $RM \$dlpath' 14455 ;; 14456 14457 osf3* | osf4* | osf5*) 14458 version_type=osf 14459 need_lib_prefix=no 14460 need_version=no 14461 soname_spec='$libname$release$shared_ext$major' 14462 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14463 shlibpath_var=LD_LIBRARY_PATH 14464 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14465 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14466 ;; 14467 14468 rdos*) 14469 dynamic_linker=no 14470 ;; 14471 14472 solaris*) 14473 version_type=linux # correct to gnu/linux during the next big refactor 14474 need_lib_prefix=no 14475 need_version=no 14476 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14477 soname_spec='$libname$release$shared_ext$major' 14478 shlibpath_var=LD_LIBRARY_PATH 14479 shlibpath_overrides_runpath=yes 14480 hardcode_into_libs=yes 14481 # ldd complains unless libraries are executable 14482 postinstall_cmds='chmod +x $lib' 14483 ;; 14484 14485 sunos4*) 14486 version_type=sunos 14487 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14488 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14489 shlibpath_var=LD_LIBRARY_PATH 14490 shlibpath_overrides_runpath=yes 14491 if test yes = "$with_gnu_ld"; then 14492 need_lib_prefix=no 14493 fi 14494 need_version=yes 14495 ;; 14496 14497 sysv4 | sysv4.3*) 14498 version_type=linux # correct to gnu/linux during the next big refactor 14499 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14500 soname_spec='$libname$release$shared_ext$major' 14501 shlibpath_var=LD_LIBRARY_PATH 14502 case $host_vendor in 14503 sni) 14504 shlibpath_overrides_runpath=no 14505 need_lib_prefix=no 14506 runpath_var=LD_RUN_PATH 14507 ;; 14508 siemens) 14509 need_lib_prefix=no 14510 ;; 14511 motorola) 14512 need_lib_prefix=no 14513 need_version=no 14514 shlibpath_overrides_runpath=no 14515 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14516 ;; 14517 esac 14518 ;; 14519 14520 sysv4*MP*) 14521 if test -d /usr/nec; then 14522 version_type=linux # correct to gnu/linux during the next big refactor 14523 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 14524 soname_spec='$libname$shared_ext.$major' 14525 shlibpath_var=LD_LIBRARY_PATH 14526 fi 14527 ;; 14528 14529 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14530 version_type=sco 14531 need_lib_prefix=no 14532 need_version=no 14533 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 14534 soname_spec='$libname$release$shared_ext$major' 14535 shlibpath_var=LD_LIBRARY_PATH 14536 shlibpath_overrides_runpath=yes 14537 hardcode_into_libs=yes 14538 if test yes = "$with_gnu_ld"; then 14539 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14540 else 14541 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14542 case $host_os in 14543 sco3.2v5*) 14544 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14545 ;; 14546 esac 14547 fi 14548 sys_lib_dlsearch_path_spec='/usr/lib' 14549 ;; 14550 14551 tpf*) 14552 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14553 version_type=linux # correct to gnu/linux during the next big refactor 14554 need_lib_prefix=no 14555 need_version=no 14556 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14557 shlibpath_var=LD_LIBRARY_PATH 14558 shlibpath_overrides_runpath=no 14559 hardcode_into_libs=yes 14560 ;; 14561 14562 uts4*) 14563 version_type=linux # correct to gnu/linux during the next big refactor 14564 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14565 soname_spec='$libname$release$shared_ext$major' 14566 shlibpath_var=LD_LIBRARY_PATH 14567 ;; 14568 14569 *) 14570 dynamic_linker=no 14571 ;; 14572 esac 14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 14574 $as_echo "$dynamic_linker" >&6; } 14575 test no = "$dynamic_linker" && can_build_shared=no 14576 14577 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14578 if test yes = "$GCC"; then 14579 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14580 fi 14581 14582 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 14583 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 14584 fi 14585 14586 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 14587 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 14588 fi 14589 14590 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 14591 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 14592 14593 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 14594 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 14595 14596 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 14597 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 14598 14599 14600 14601 14602 14603 14604 14605 14606 14607 14608 14609 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 14621 14622 14623 14624 14625 14626 14627 14628 14629 14630 14631 14632 14633 14634 14635 14636 14637 14638 14639 14640 14641 14642 14643 14644 14645 14646 14647 14648 14649 14650 14651 14652 14653 14654 14655 14656 14657 14658 14659 14660 14661 14662 14663 14664 14665 14666 14667 14668 14669 14670 14671 14672 14673 14674 14675 14676 14677 14678 14679 14680 14681 14682 14683 14684 14685 14686 14687 14688 14689 14690 14691 14692 14693 14694 14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 14696 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 14697 hardcode_action= 14698 if test -n "$hardcode_libdir_flag_spec" || 14699 test -n "$runpath_var" || 14700 test yes = "$hardcode_automatic"; then 14701 14702 # We can hardcode non-existent directories. 14703 if test no != "$hardcode_direct" && 14704 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14705 # have to relink, otherwise we might link with an installed library 14706 # when we should be linking with a yet-to-be-installed one 14707 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 14708 test no != "$hardcode_minus_L"; then 14709 # Linking always hardcodes the temporary library directory. 14710 hardcode_action=relink 14711 else 14712 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14713 hardcode_action=immediate 14714 fi 14715 else 14716 # We cannot hardcode anything, or else we can only hardcode existing 14717 # directories. 14718 hardcode_action=unsupported 14719 fi 14720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 14721 $as_echo "$hardcode_action" >&6; } 14722 14723 if test relink = "$hardcode_action" || 14724 test yes = "$inherit_rpath"; then 14725 # Fast installation is not supported 14726 enable_fast_install=no 14727 elif test yes = "$shlibpath_overrides_runpath" || 14728 test no = "$enable_shared"; then 14729 # Fast installation is not necessary 14730 enable_fast_install=needless 14731 fi 14732 14733 14734 14735 14736 14737 14738 if test yes != "$enable_dlopen"; then 14739 enable_dlopen=unknown 14740 enable_dlopen_self=unknown 14741 enable_dlopen_self_static=unknown 14742 else 14743 lt_cv_dlopen=no 14744 lt_cv_dlopen_libs= 14745 14746 case $host_os in 14747 beos*) 14748 lt_cv_dlopen=load_add_on 14749 lt_cv_dlopen_libs= 14750 lt_cv_dlopen_self=yes 14751 ;; 14752 14753 mingw* | pw32* | cegcc*) 14754 lt_cv_dlopen=LoadLibrary 14755 lt_cv_dlopen_libs= 14756 ;; 14757 14758 cygwin*) 14759 lt_cv_dlopen=dlopen 14760 lt_cv_dlopen_libs= 14761 ;; 14762 14763 darwin*) 14764 # if libdl is installed we need to link against it 14765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14766 $as_echo_n "checking for dlopen in -ldl... " >&6; } 14767 if ${ac_cv_lib_dl_dlopen+:} false; then : 14768 $as_echo_n "(cached) " >&6 14769 else 14770 ac_check_lib_save_LIBS=$LIBS 14771 LIBS="-ldl $LIBS" 14772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14773 /* end confdefs.h. */ 14774 14775 14776 #ifdef __cplusplus 14777 extern "C" 14778 #endif 14779 char dlopen (); 14780 int main (void) 14781 { 14782 return dlopen (); 14783 ; 14784 return 0; 14785 } 14786 _ACEOF 14787 if ac_fn_c_try_link "$LINENO"; then : 14788 ac_cv_lib_dl_dlopen=yes 14789 else 14790 ac_cv_lib_dl_dlopen=no 14791 fi 14792 rm -f core conftest.err conftest.$ac_objext \ 14793 conftest$ac_exeext conftest.$ac_ext 14794 LIBS=$ac_check_lib_save_LIBS 14795 fi 14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14797 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 14798 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 14799 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 14800 else 14801 14802 lt_cv_dlopen=dyld 14803 lt_cv_dlopen_libs= 14804 lt_cv_dlopen_self=yes 14805 14806 fi 14807 14808 ;; 14809 14810 tpf*) 14811 # Don't try to run any link tests for TPF. We know it's impossible 14812 # because TPF is a cross-compiler, and we know how we open DSOs. 14813 lt_cv_dlopen=dlopen 14814 lt_cv_dlopen_libs= 14815 lt_cv_dlopen_self=no 14816 ;; 14817 14818 *) 14819 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 14820 if test "x$ac_cv_func_shl_load" = xyes; then : 14821 lt_cv_dlopen=shl_load 14822 else 14823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 14824 $as_echo_n "checking for shl_load in -ldld... " >&6; } 14825 if ${ac_cv_lib_dld_shl_load+:} false; then : 14826 $as_echo_n "(cached) " >&6 14827 else 14828 ac_check_lib_save_LIBS=$LIBS 14829 LIBS="-ldld $LIBS" 14830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14831 /* end confdefs.h. */ 14832 14833 14834 #ifdef __cplusplus 14835 extern "C" 14836 #endif 14837 char shl_load (); 14838 int main (void) 14839 { 14840 return shl_load (); 14841 ; 14842 return 0; 14843 } 14844 _ACEOF 14845 if ac_fn_c_try_link "$LINENO"; then : 14846 ac_cv_lib_dld_shl_load=yes 14847 else 14848 ac_cv_lib_dld_shl_load=no 14849 fi 14850 rm -f core conftest.err conftest.$ac_objext \ 14851 conftest$ac_exeext conftest.$ac_ext 14852 LIBS=$ac_check_lib_save_LIBS 14853 fi 14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 14855 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 14856 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 14857 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 14858 else 14859 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 14860 if test "x$ac_cv_func_dlopen" = xyes; then : 14861 lt_cv_dlopen=dlopen 14862 else 14863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14864 $as_echo_n "checking for dlopen in -ldl... " >&6; } 14865 if ${ac_cv_lib_dl_dlopen+:} false; then : 14866 $as_echo_n "(cached) " >&6 14867 else 14868 ac_check_lib_save_LIBS=$LIBS 14869 LIBS="-ldl $LIBS" 14870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14871 /* end confdefs.h. */ 14872 14873 14874 #ifdef __cplusplus 14875 extern "C" 14876 #endif 14877 char dlopen (); 14878 int main (void) 14879 { 14880 return dlopen (); 14881 ; 14882 return 0; 14883 } 14884 _ACEOF 14885 if ac_fn_c_try_link "$LINENO"; then : 14886 ac_cv_lib_dl_dlopen=yes 14887 else 14888 ac_cv_lib_dl_dlopen=no 14889 fi 14890 rm -f core conftest.err conftest.$ac_objext \ 14891 conftest$ac_exeext conftest.$ac_ext 14892 LIBS=$ac_check_lib_save_LIBS 14893 fi 14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14895 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 14896 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 14897 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 14898 else 14899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 14900 $as_echo_n "checking for dlopen in -lsvld... " >&6; } 14901 if ${ac_cv_lib_svld_dlopen+:} false; then : 14902 $as_echo_n "(cached) " >&6 14903 else 14904 ac_check_lib_save_LIBS=$LIBS 14905 LIBS="-lsvld $LIBS" 14906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14907 /* end confdefs.h. */ 14908 14909 14910 #ifdef __cplusplus 14911 extern "C" 14912 #endif 14913 char dlopen (); 14914 int main (void) 14915 { 14916 return dlopen (); 14917 ; 14918 return 0; 14919 } 14920 _ACEOF 14921 if ac_fn_c_try_link "$LINENO"; then : 14922 ac_cv_lib_svld_dlopen=yes 14923 else 14924 ac_cv_lib_svld_dlopen=no 14925 fi 14926 rm -f core conftest.err conftest.$ac_objext \ 14927 conftest$ac_exeext conftest.$ac_ext 14928 LIBS=$ac_check_lib_save_LIBS 14929 fi 14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 14931 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } 14932 if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 14933 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 14934 else 14935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 14936 $as_echo_n "checking for dld_link in -ldld... " >&6; } 14937 if ${ac_cv_lib_dld_dld_link+:} false; then : 14938 $as_echo_n "(cached) " >&6 14939 else 14940 ac_check_lib_save_LIBS=$LIBS 14941 LIBS="-ldld $LIBS" 14942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14943 /* end confdefs.h. */ 14944 14945 14946 #ifdef __cplusplus 14947 extern "C" 14948 #endif 14949 char dld_link (); 14950 int main (void) 14951 { 14952 return dld_link (); 14953 ; 14954 return 0; 14955 } 14956 _ACEOF 14957 if ac_fn_c_try_link "$LINENO"; then : 14958 ac_cv_lib_dld_dld_link=yes 14959 else 14960 ac_cv_lib_dld_dld_link=no 14961 fi 14962 rm -f core conftest.err conftest.$ac_objext \ 14963 conftest$ac_exeext conftest.$ac_ext 14964 LIBS=$ac_check_lib_save_LIBS 14965 fi 14966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 14967 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } 14968 if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 14969 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 14970 fi 14971 14972 14973 fi 14974 14975 14976 fi 14977 14978 14979 fi 14980 14981 14982 fi 14983 14984 14985 fi 14986 14987 ;; 14988 esac 14989 14990 if test no = "$lt_cv_dlopen"; then 14991 enable_dlopen=no 14992 else 14993 enable_dlopen=yes 14994 fi 14995 14996 case $lt_cv_dlopen in 14997 dlopen) 14998 save_CPPFLAGS=$CPPFLAGS 14999 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 15000 15001 save_LDFLAGS=$LDFLAGS 15002 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 15003 15004 save_LIBS=$LIBS 15005 LIBS="$lt_cv_dlopen_libs $LIBS" 15006 15007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 15008 $as_echo_n "checking whether a program can dlopen itself... " >&6; } 15009 if ${lt_cv_dlopen_self+:} false; then : 15010 $as_echo_n "(cached) " >&6 15011 else 15012 if test yes = "$cross_compiling"; then : 15013 lt_cv_dlopen_self=cross 15014 else 15015 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 15016 lt_status=$lt_dlunknown 15017 cat > conftest.$ac_ext <<_LT_EOF 15018 #line $LINENO "configure" 15019 #include "confdefs.h" 15020 15021 #if HAVE_DLFCN_H 15022 #include <dlfcn.h> 15023 #endif 15024 15025 #include <stdio.h> 15026 15027 #ifdef RTLD_GLOBAL 15028 # define LT_DLGLOBAL RTLD_GLOBAL 15029 #else 15030 # ifdef DL_GLOBAL 15031 # define LT_DLGLOBAL DL_GLOBAL 15032 # else 15033 # define LT_DLGLOBAL 0 15034 # endif 15035 #endif 15036 15037 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 15038 find out it does not work in some platform. */ 15039 #ifndef LT_DLLAZY_OR_NOW 15040 # ifdef RTLD_LAZY 15041 # define LT_DLLAZY_OR_NOW RTLD_LAZY 15042 # else 15043 # ifdef DL_LAZY 15044 # define LT_DLLAZY_OR_NOW DL_LAZY 15045 # else 15046 # ifdef RTLD_NOW 15047 # define LT_DLLAZY_OR_NOW RTLD_NOW 15048 # else 15049 # ifdef DL_NOW 15050 # define LT_DLLAZY_OR_NOW DL_NOW 15051 # else 15052 # define LT_DLLAZY_OR_NOW 0 15053 # endif 15054 # endif 15055 # endif 15056 # endif 15057 #endif 15058 15059 /* When -fvisibility=hidden is used, assume the code has been annotated 15060 correspondingly for the symbols needed. */ 15061 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 15062 int fnord () __attribute__((visibility("default"))); 15063 #endif 15064 15065 int fnord () { return 42; } 15066 int main () 15067 { 15068 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 15069 int status = $lt_dlunknown; 15070 15071 if (self) 15072 { 15073 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 15074 else 15075 { 15076 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 15077 else puts (dlerror ()); 15078 } 15079 /* dlclose (self); */ 15080 } 15081 else 15082 puts (dlerror ()); 15083 15084 return status; 15085 } 15086 _LT_EOF 15087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 15088 (eval $ac_link) 2>&5 15089 ac_status=$? 15090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15091 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 15092 (./conftest; exit; ) >&5 2>/dev/null 15093 lt_status=$? 15094 case x$lt_status in 15095 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 15096 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 15097 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 15098 esac 15099 else : 15100 # compilation failed 15101 lt_cv_dlopen_self=no 15102 fi 15103 fi 15104 rm -fr conftest* 15105 15106 15107 fi 15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 15109 $as_echo "$lt_cv_dlopen_self" >&6; } 15110 15111 if test yes = "$lt_cv_dlopen_self"; then 15112 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 15113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 15114 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 15115 if ${lt_cv_dlopen_self_static+:} false; then : 15116 $as_echo_n "(cached) " >&6 15117 else 15118 if test yes = "$cross_compiling"; then : 15119 lt_cv_dlopen_self_static=cross 15120 else 15121 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 15122 lt_status=$lt_dlunknown 15123 cat > conftest.$ac_ext <<_LT_EOF 15124 #line $LINENO "configure" 15125 #include "confdefs.h" 15126 15127 #if HAVE_DLFCN_H 15128 #include <dlfcn.h> 15129 #endif 15130 15131 #include <stdio.h> 15132 15133 #ifdef RTLD_GLOBAL 15134 # define LT_DLGLOBAL RTLD_GLOBAL 15135 #else 15136 # ifdef DL_GLOBAL 15137 # define LT_DLGLOBAL DL_GLOBAL 15138 # else 15139 # define LT_DLGLOBAL 0 15140 # endif 15141 #endif 15142 15143 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 15144 find out it does not work in some platform. */ 15145 #ifndef LT_DLLAZY_OR_NOW 15146 # ifdef RTLD_LAZY 15147 # define LT_DLLAZY_OR_NOW RTLD_LAZY 15148 # else 15149 # ifdef DL_LAZY 15150 # define LT_DLLAZY_OR_NOW DL_LAZY 15151 # else 15152 # ifdef RTLD_NOW 15153 # define LT_DLLAZY_OR_NOW RTLD_NOW 15154 # else 15155 # ifdef DL_NOW 15156 # define LT_DLLAZY_OR_NOW DL_NOW 15157 # else 15158 # define LT_DLLAZY_OR_NOW 0 15159 # endif 15160 # endif 15161 # endif 15162 # endif 15163 #endif 15164 15165 /* When -fvisibility=hidden is used, assume the code has been annotated 15166 correspondingly for the symbols needed. */ 15167 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 15168 int fnord () __attribute__((visibility("default"))); 15169 #endif 15170 15171 int fnord () { return 42; } 15172 int main () 15173 { 15174 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 15175 int status = $lt_dlunknown; 15176 15177 if (self) 15178 { 15179 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 15180 else 15181 { 15182 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 15183 else puts (dlerror ()); 15184 } 15185 /* dlclose (self); */ 15186 } 15187 else 15188 puts (dlerror ()); 15189 15190 return status; 15191 } 15192 _LT_EOF 15193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 15194 (eval $ac_link) 2>&5 15195 ac_status=$? 15196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15197 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 15198 (./conftest; exit; ) >&5 2>/dev/null 15199 lt_status=$? 15200 case x$lt_status in 15201 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 15202 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 15203 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 15204 esac 15205 else : 15206 # compilation failed 15207 lt_cv_dlopen_self_static=no 15208 fi 15209 fi 15210 rm -fr conftest* 15211 15212 15213 fi 15214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 15215 $as_echo "$lt_cv_dlopen_self_static" >&6; } 15216 fi 15217 15218 CPPFLAGS=$save_CPPFLAGS 15219 LDFLAGS=$save_LDFLAGS 15220 LIBS=$save_LIBS 15221 ;; 15222 esac 15223 15224 case $lt_cv_dlopen_self in 15225 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 15226 *) enable_dlopen_self=unknown ;; 15227 esac 15228 15229 case $lt_cv_dlopen_self_static in 15230 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 15231 *) enable_dlopen_self_static=unknown ;; 15232 esac 15233 fi 15234 15235 15236 15237 15238 15239 15240 15241 15242 15243 15244 15245 15246 15247 15248 15249 15250 15251 striplib= 15252 old_striplib= 15253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 15254 $as_echo_n "checking whether stripping libraries is possible... " >&6; } 15255 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 15256 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 15257 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 15258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15259 $as_echo "yes" >&6; } 15260 else 15261 # FIXME - insert some real tests, host_os isn't really good enough 15262 case $host_os in 15263 darwin*) 15264 if test -n "$STRIP"; then 15265 striplib="$STRIP -x" 15266 old_striplib="$STRIP -S" 15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15268 $as_echo "yes" >&6; } 15269 else 15270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15271 $as_echo "no" >&6; } 15272 fi 15273 ;; 15274 *) 15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15276 $as_echo "no" >&6; } 15277 ;; 15278 esac 15279 fi 15280 15281 15282 15283 15284 15285 15286 15287 15288 15289 15290 15291 15292 # Report what library types will actually be built 15293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 15294 $as_echo_n "checking if libtool supports shared libraries... " >&6; } 15295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 15296 $as_echo "$can_build_shared" >&6; } 15297 15298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 15299 $as_echo_n "checking whether to build shared libraries... " >&6; } 15300 test no = "$can_build_shared" && enable_shared=no 15301 15302 # On AIX, shared libraries and static libraries use the same namespace, and 15303 # are all built from PIC. 15304 case $host_os in 15305 aix3*) 15306 test yes = "$enable_shared" && enable_static=no 15307 if test -n "$RANLIB"; then 15308 archive_cmds="$archive_cmds~\$RANLIB \$lib" 15309 postinstall_cmds='$RANLIB $lib' 15310 fi 15311 ;; 15312 15313 aix[4-9]*) 15314 if test ia64 != "$host_cpu"; then 15315 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 15316 yes,aix,yes) ;; # shared object as lib.so file only 15317 yes,svr4,*) ;; # shared object as lib.so archive member only 15318 yes,*) enable_static=no ;; # shared object in lib.a archive as well 15319 esac 15320 fi 15321 ;; 15322 esac 15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 15324 $as_echo "$enable_shared" >&6; } 15325 15326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 15327 $as_echo_n "checking whether to build static libraries... " >&6; } 15328 # Make sure either enable_shared or enable_static is yes. 15329 test yes = "$enable_shared" || enable_static=yes 15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 15331 $as_echo "$enable_static" >&6; } 15332 15333 15334 15335 15336 fi 15337 ac_ext=c 15338 ac_cpp='$CPP $CPPFLAGS' 15339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15341 ac_compiler_gnu=$ac_cv_c_compiler_gnu 15342 15343 CC=$lt_save_CC 15344 15345 15346 15347 15348 15349 15350 15351 15352 15353 15354 15355 15356 15357 15358 15359 ac_config_commands="$ac_config_commands libtool" 15360 15361 15362 15363 15364 # Only expand once: 15365 15366 15367 ## --------------------- ## 15368 ## End of libtool code ## 15369 ## --------------------- ## 15370 15371 # 15372 # Verify if finally libtool shared libraries will be built 15373 # 15374 15375 case "x$enable_shared" in # (( 15376 xyes | xno) 15377 xc_lt_build_shared=$enable_shared 15378 ;; 15379 *) 15380 as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5 15381 ;; 15382 esac 15383 15384 # 15385 # Verify if finally libtool static libraries will be built 15386 # 15387 15388 case "x$enable_static" in # (( 15389 xyes | xno) 15390 xc_lt_build_static=$enable_static 15391 ;; 15392 *) 15393 as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5 15394 ;; 15395 esac 15396 15397 # 15398 # Verify if libtool shared libraries should be linked using flag -version-info 15399 # 15400 15401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5 15402 $as_echo_n "checking whether to build shared libraries with -version-info... " >&6; } 15403 xc_lt_shlib_use_version_info='yes' 15404 if test "x$version_type" = 'xnone'; then 15405 xc_lt_shlib_use_version_info='no' 15406 fi 15407 case $host_os in # ( 15408 amigaos*) 15409 xc_lt_shlib_use_version_info='yes' 15410 ;; 15411 esac 15412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5 15413 $as_echo "$xc_lt_shlib_use_version_info" >&6; } 15414 15415 # 15416 # Verify if libtool shared libraries should be linked using flag -no-undefined 15417 # 15418 15419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5 15420 $as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; } 15421 xc_lt_shlib_use_no_undefined='no' 15422 if test "x$allow_undefined" = 'xno'; then 15423 xc_lt_shlib_use_no_undefined='yes' 15424 elif test "x$allow_undefined_flag" = 'xunsupported'; then 15425 xc_lt_shlib_use_no_undefined='yes' 15426 fi 15427 case $host_os in # ( 15428 cygwin* | mingw* | pw32* | cegcc* | os2* | aix*) 15429 xc_lt_shlib_use_no_undefined='yes' 15430 ;; 15431 esac 15432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5 15433 $as_echo "$xc_lt_shlib_use_no_undefined" >&6; } 15434 15435 # 15436 # Verify if libtool shared libraries should be linked using flag -mimpure-text 15437 # 15438 15439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5 15440 $as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; } 15441 xc_lt_shlib_use_mimpure_text='no' 15442 case $host_os in # ( 15443 solaris2*) 15444 if test "x$GCC" = 'xyes'; then 15445 xc_lt_shlib_use_mimpure_text='yes' 15446 fi 15447 ;; 15448 esac 15449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5 15450 $as_echo "$xc_lt_shlib_use_mimpure_text" >&6; } 15451 15452 # 15453 # Find out whether libtool libraries would be built wit PIC 15454 # 15455 15456 case "x$pic_mode" in # (((( 15457 xdefault) 15458 xc_lt_build_shared_with_pic='yes' 15459 xc_lt_build_static_with_pic='no' 15460 ;; 15461 xyes) 15462 xc_lt_build_shared_with_pic='yes' 15463 xc_lt_build_static_with_pic='yes' 15464 ;; 15465 xno) 15466 xc_lt_build_shared_with_pic='no' 15467 xc_lt_build_static_with_pic='no' 15468 ;; 15469 *) 15470 xc_lt_build_shared_with_pic='unknown' 15471 xc_lt_build_static_with_pic='unknown' 15472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5 15473 $as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;} 15474 ;; 15475 esac 15476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5 15477 $as_echo_n "checking whether to build shared libraries with PIC... " >&6; } 15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5 15479 $as_echo "$xc_lt_build_shared_with_pic" >&6; } 15480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5 15481 $as_echo_n "checking whether to build static libraries with PIC... " >&6; } 15482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5 15483 $as_echo "$xc_lt_build_static_with_pic" >&6; } 15484 15485 # 15486 # Verify if libtool shared libraries will be built while static not built 15487 # 15488 15489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5 15490 $as_echo_n "checking whether to build shared libraries only... " >&6; } 15491 if test "$xc_lt_build_shared" = 'yes' && 15492 test "$xc_lt_build_static" = 'no'; then 15493 xc_lt_build_shared_only='yes' 15494 else 15495 xc_lt_build_shared_only='no' 15496 fi 15497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5 15498 $as_echo "$xc_lt_build_shared_only" >&6; } 15499 15500 # 15501 # Verify if libtool static libraries will be built while shared not built 15502 # 15503 15504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5 15505 $as_echo_n "checking whether to build static libraries only... " >&6; } 15506 if test "$xc_lt_build_static" = 'yes' && 15507 test "$xc_lt_build_shared" = 'no'; then 15508 xc_lt_build_static_only='yes' 15509 else 15510 xc_lt_build_static_only='no' 15511 fi 15512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5 15513 $as_echo "$xc_lt_build_static_only" >&6; } 15514 15515 15516 15517 15518 # 15519 # Automake conditionals based on libtool related checks 15520 # 15521 15522 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then 15523 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE= 15524 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#' 15525 else 15526 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#' 15527 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE= 15528 fi 15529 15530 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then 15531 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE= 15532 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#' 15533 else 15534 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#' 15535 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE= 15536 fi 15537 15538 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then 15539 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE= 15540 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#' 15541 else 15542 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#' 15543 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE= 15544 fi 15545 15546 15547 # 15548 # Due to libtool and automake machinery limitations of not allowing 15549 # specifying separate CPPFLAGS or CFLAGS when compiling objects for 15550 # inclusion of these in shared or static libraries, we are forced to 15551 # build using separate configure runs for shared and static libraries 15552 # on systems where different CPPFLAGS or CFLAGS are mandatory in order 15553 # to compile objects for each kind of library. Notice that relying on 15554 # the '-DPIC' CFLAG that libtool provides is not valid given that the 15555 # user might for example choose to build static libraries with PIC. 15556 # 15557 15558 # 15559 # Make our Makefile.am files use the staticlib CPPFLAG only when strictly 15560 # targeting a static library and not building its shared counterpart. 15561 # 15562 15563 if test "x$xc_lt_build_static_only" = 'xyes'; then 15564 USE_CPPFLAG_CURL_STATICLIB_TRUE= 15565 USE_CPPFLAG_CURL_STATICLIB_FALSE='#' 15566 else 15567 USE_CPPFLAG_CURL_STATICLIB_TRUE='#' 15568 USE_CPPFLAG_CURL_STATICLIB_FALSE= 15569 fi 15570 15571 15572 # 15573 # Make staticlib CPPFLAG variable and its definition visible in output 15574 # files unconditionally, providing an empty definition unless strictly 15575 # targeting a static library and not building its shared counterpart. 15576 # 15577 15578 CPPFLAG_CURL_STATICLIB= 15579 if test "x$xc_lt_build_static_only" = 'xyes'; then 15580 CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB' 15581 fi 15582 15583 15584 15585 # Determine whether all dependent libraries must be specified when linking 15586 if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno" 15587 then 15588 REQUIRE_LIB_DEPS=no 15589 else 15590 REQUIRE_LIB_DEPS=yes 15591 fi 15592 15593 if test x$REQUIRE_LIB_DEPS = xyes; then 15594 USE_EXPLICIT_LIB_DEPS_TRUE= 15595 USE_EXPLICIT_LIB_DEPS_FALSE='#' 15596 else 15597 USE_EXPLICIT_LIB_DEPS_TRUE='#' 15598 USE_EXPLICIT_LIB_DEPS_FALSE= 15599 fi 15600 15601 15602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 15603 $as_echo_n "checking for inline... " >&6; } 15604 if ${ac_cv_c_inline+:} false; then : 15605 $as_echo_n "(cached) " >&6 15606 else 15607 ac_cv_c_inline=no 15608 for ac_kw in inline __inline__ __inline; do 15609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15610 /* end confdefs.h. */ 15611 #ifndef __cplusplus 15612 typedef int foo_t; 15613 static $ac_kw foo_t static_foo () {return 0; } 15614 $ac_kw foo_t foo () {return 0; } 15615 #endif 15616 15617 _ACEOF 15618 if ac_fn_c_try_compile "$LINENO"; then : 15619 ac_cv_c_inline=$ac_kw 15620 fi 15621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15622 test "$ac_cv_c_inline" != no && break 15623 done 15624 15625 fi 15626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 15627 $as_echo "$ac_cv_c_inline" >&6; } 15628 15629 case $ac_cv_c_inline in 15630 inline | yes) ;; 15631 *) 15632 case $ac_cv_c_inline in 15633 no) ac_val=;; 15634 *) ac_val=$ac_cv_c_inline;; 15635 esac 15636 cat >>confdefs.h <<_ACEOF 15637 #ifndef __cplusplus 15638 #define inline $ac_val 15639 #endif 15640 _ACEOF 15641 ;; 15642 esac 15643 15644 15645 15646 15647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5 15648 $as_echo_n "checking if cpp -P is needed... " >&6; } 15649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15650 /* end confdefs.h. */ 15651 15652 #include <errno.h> 15653 TEST EINVAL TEST 15654 15655 _ACEOF 15656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15657 $EGREP "TEST.*TEST" >/dev/null 2>&1; then : 15658 cpp=no 15659 else 15660 cpp=yes 15661 fi 15662 rm -f conftest* 15663 15664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5 15665 $as_echo "$cpp" >&6; } 15666 15667 if test "x$cpp" = "xyes"; then 15668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5 15669 $as_echo_n "checking if cpp -P works... " >&6; } 15670 OLDCPPFLAGS=$CPPFLAGS 15671 CPPFLAGS="$CPPFLAGS -P" 15672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15673 /* end confdefs.h. */ 15674 15675 #include <errno.h> 15676 TEST EINVAL TEST 15677 15678 _ACEOF 15679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15680 $EGREP "TEST.*TEST" >/dev/null 2>&1; then : 15681 cpp_p=yes 15682 else 15683 cpp_p=no 15684 fi 15685 rm -f conftest* 15686 15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5 15688 $as_echo "$cpp_p" >&6; } 15689 15690 if test "x$cpp_p" = "xno"; then 15691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5 15692 $as_echo "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;} 15693 # without -P 15694 CPPPFLAG="" 15695 else 15696 # with -P 15697 CPPPFLAG="-P" 15698 fi 15699 CPPFLAGS=$OLDCPPFLAGS 15700 else 15701 # without -P 15702 CPPPFLAG="" 15703 fi 15704 15705 15706 # 15707 compiler_id="unknown" 15708 compiler_num="0" 15709 # 15710 flags_dbg_all="unknown" 15711 flags_dbg_yes="unknown" 15712 flags_dbg_off="unknown" 15713 flags_opt_all="unknown" 15714 flags_opt_yes="unknown" 15715 flags_opt_off="unknown" 15716 # 15717 flags_prefer_cppflags="no" 15718 # 15719 15720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5 15721 $as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; } 15722 15723 OLDCPPFLAGS=$CPPFLAGS 15724 # CPPPFLAG comes from CURL_CPP_P 15725 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 15726 if test -z "$SED"; then 15727 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 15728 fi 15729 if test -z "$GREP"; then 15730 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 15731 fi 15732 15733 tmp_exp="" 15734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15735 /* end confdefs.h. */ 15736 15737 15738 #ifdef __DECC 15739 CURL_DEF_TOKEN __DECC 15740 #endif 15741 15742 15743 _ACEOF 15744 if ac_fn_c_try_cpp "$LINENO"; then : 15745 15746 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 15747 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 15748 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 15749 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 15750 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then 15751 tmp_exp="" 15752 fi 15753 15754 fi 15755 rm -f conftest.err conftest.i conftest.$ac_ext 15756 if test -z "$tmp_exp"; then 15757 curl_cv_have_def___DECC=no 15758 15759 else 15760 curl_cv_have_def___DECC=yes 15761 curl_cv_def___DECC=$tmp_exp 15762 15763 fi 15764 CPPFLAGS=$OLDCPPFLAGS 15765 15766 15767 OLDCPPFLAGS=$CPPFLAGS 15768 # CPPPFLAG comes from CURL_CPP_P 15769 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 15770 if test -z "$SED"; then 15771 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 15772 fi 15773 if test -z "$GREP"; then 15774 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 15775 fi 15776 15777 tmp_exp="" 15778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15779 /* end confdefs.h. */ 15780 15781 15782 #ifdef __DECC_VER 15783 CURL_DEF_TOKEN __DECC_VER 15784 #endif 15785 15786 15787 _ACEOF 15788 if ac_fn_c_try_cpp "$LINENO"; then : 15789 15790 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 15791 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 15792 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 15793 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 15794 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then 15795 tmp_exp="" 15796 fi 15797 15798 fi 15799 rm -f conftest.err conftest.i conftest.$ac_ext 15800 if test -z "$tmp_exp"; then 15801 curl_cv_have_def___DECC_VER=no 15802 15803 else 15804 curl_cv_have_def___DECC_VER=yes 15805 curl_cv_def___DECC_VER=$tmp_exp 15806 15807 fi 15808 CPPFLAGS=$OLDCPPFLAGS 15809 15810 if test "$curl_cv_have_def___DECC" = "yes" && 15811 test "$curl_cv_have_def___DECC_VER" = "yes"; then 15812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15813 $as_echo "yes" >&6; } 15814 compiler_id="DEC_C" 15815 flags_dbg_all="-g -g0 -g1 -g2 -g3" 15816 flags_dbg_yes="-g2" 15817 flags_dbg_off="" 15818 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4" 15819 flags_opt_yes="-O1" 15820 flags_opt_off="-O0" 15821 else 15822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15823 $as_echo "no" >&6; } 15824 fi 15825 15826 15827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5 15828 $as_echo_n "checking if compiler is HP-UX C... " >&6; } 15829 15830 OLDCPPFLAGS=$CPPFLAGS 15831 # CPPPFLAG comes from CURL_CPP_P 15832 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 15833 if test -z "$SED"; then 15834 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 15835 fi 15836 if test -z "$GREP"; then 15837 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 15838 fi 15839 15840 tmp_exp="" 15841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15842 /* end confdefs.h. */ 15843 15844 15845 #ifdef __HP_cc 15846 CURL_DEF_TOKEN __HP_cc 15847 #endif 15848 15849 15850 _ACEOF 15851 if ac_fn_c_try_cpp "$LINENO"; then : 15852 15853 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 15854 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 15855 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 15856 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 15857 if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then 15858 tmp_exp="" 15859 fi 15860 15861 fi 15862 rm -f conftest.err conftest.i conftest.$ac_ext 15863 if test -z "$tmp_exp"; then 15864 curl_cv_have_def___HP_cc=no 15865 15866 else 15867 curl_cv_have_def___HP_cc=yes 15868 curl_cv_def___HP_cc=$tmp_exp 15869 15870 fi 15871 CPPFLAGS=$OLDCPPFLAGS 15872 15873 if test "$curl_cv_have_def___HP_cc" = "yes"; then 15874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15875 $as_echo "yes" >&6; } 15876 compiler_id="HP_UX_C" 15877 flags_dbg_all="-g -s" 15878 flags_dbg_yes="-g" 15879 flags_dbg_off="-s" 15880 flags_opt_all="-O +O0 +O1 +O2 +O3 +O4" 15881 flags_opt_yes="+O2" 15882 flags_opt_off="+O0" 15883 else 15884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15885 $as_echo "no" >&6; } 15886 fi 15887 15888 15889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5 15890 $as_echo_n "checking if compiler is IBM C... " >&6; } 15891 15892 OLDCPPFLAGS=$CPPFLAGS 15893 # CPPPFLAG comes from CURL_CPP_P 15894 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 15895 if test -z "$SED"; then 15896 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 15897 fi 15898 if test -z "$GREP"; then 15899 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 15900 fi 15901 15902 tmp_exp="" 15903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15904 /* end confdefs.h. */ 15905 15906 15907 #ifdef __IBMC__ 15908 CURL_DEF_TOKEN __IBMC__ 15909 #endif 15910 15911 15912 _ACEOF 15913 if ac_fn_c_try_cpp "$LINENO"; then : 15914 15915 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 15916 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 15917 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 15918 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 15919 if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then 15920 tmp_exp="" 15921 fi 15922 15923 fi 15924 rm -f conftest.err conftest.i conftest.$ac_ext 15925 if test -z "$tmp_exp"; then 15926 curl_cv_have_def___IBMC__=no 15927 15928 else 15929 curl_cv_have_def___IBMC__=yes 15930 curl_cv_def___IBMC__=$tmp_exp 15931 15932 fi 15933 CPPFLAGS=$OLDCPPFLAGS 15934 15935 if test "$curl_cv_have_def___IBMC__" = "yes"; then 15936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15937 $as_echo "yes" >&6; } 15938 compiler_id="IBM_C" 15939 flags_dbg_all="-g -g0 -g1 -g2 -g3" 15940 flags_dbg_yes="-g" 15941 flags_dbg_off="" 15942 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5" 15943 flags_opt_all="$flags_opt_all -qnooptimize" 15944 flags_opt_all="$flags_opt_all -qoptimize=0" 15945 flags_opt_all="$flags_opt_all -qoptimize=1" 15946 flags_opt_all="$flags_opt_all -qoptimize=2" 15947 flags_opt_all="$flags_opt_all -qoptimize=3" 15948 flags_opt_all="$flags_opt_all -qoptimize=4" 15949 flags_opt_all="$flags_opt_all -qoptimize=5" 15950 flags_opt_yes="-O2" 15951 flags_opt_off="-qnooptimize" 15952 flags_prefer_cppflags="yes" 15953 else 15954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15955 $as_echo "no" >&6; } 15956 fi 15957 15958 15959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5 15960 $as_echo_n "checking if compiler is Intel C... " >&6; } 15961 15962 OLDCPPFLAGS=$CPPFLAGS 15963 # CPPPFLAG comes from CURL_CPP_P 15964 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 15965 if test -z "$SED"; then 15966 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 15967 fi 15968 if test -z "$GREP"; then 15969 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 15970 fi 15971 15972 tmp_exp="" 15973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15974 /* end confdefs.h. */ 15975 15976 15977 #ifdef __INTEL_COMPILER 15978 CURL_DEF_TOKEN __INTEL_COMPILER 15979 #endif 15980 15981 15982 _ACEOF 15983 if ac_fn_c_try_cpp "$LINENO"; then : 15984 15985 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 15986 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 15987 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 15988 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 15989 if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then 15990 tmp_exp="" 15991 fi 15992 15993 fi 15994 rm -f conftest.err conftest.i conftest.$ac_ext 15995 if test -z "$tmp_exp"; then 15996 curl_cv_have_def___INTEL_COMPILER=no 15997 15998 else 15999 curl_cv_have_def___INTEL_COMPILER=yes 16000 curl_cv_def___INTEL_COMPILER=$tmp_exp 16001 16002 fi 16003 CPPFLAGS=$OLDCPPFLAGS 16004 16005 if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then 16006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16007 $as_echo "yes" >&6; } 16008 compiler_num="$curl_cv_def___INTEL_COMPILER" 16009 16010 OLDCPPFLAGS=$CPPFLAGS 16011 # CPPPFLAG comes from CURL_CPP_P 16012 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 16013 if test -z "$SED"; then 16014 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 16015 fi 16016 if test -z "$GREP"; then 16017 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 16018 fi 16019 16020 tmp_exp="" 16021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16022 /* end confdefs.h. */ 16023 16024 16025 #ifdef __unix__ 16026 CURL_DEF_TOKEN __unix__ 16027 #endif 16028 16029 16030 _ACEOF 16031 if ac_fn_c_try_cpp "$LINENO"; then : 16032 16033 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 16034 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 16035 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 16036 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 16037 if test -z "$tmp_exp" || test "$tmp_exp" = ""; then 16038 tmp_exp="" 16039 fi 16040 16041 fi 16042 rm -f conftest.err conftest.i conftest.$ac_ext 16043 if test -z "$tmp_exp"; then 16044 curl_cv_have_def___unix__=no 16045 16046 else 16047 curl_cv_have_def___unix__=yes 16048 curl_cv_def___unix__=$tmp_exp 16049 16050 fi 16051 CPPFLAGS=$OLDCPPFLAGS 16052 16053 if test "$curl_cv_have_def___unix__" = "yes"; then 16054 compiler_id="INTEL_UNIX_C" 16055 flags_dbg_all="-g -g0" 16056 flags_dbg_yes="-g" 16057 flags_dbg_off="" 16058 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os" 16059 flags_opt_yes="-O2" 16060 flags_opt_off="-O0" 16061 else 16062 compiler_id="INTEL_WINDOWS_C" 16063 flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-" 16064 flags_dbg_all="$flags_dbg_all /debug" 16065 flags_dbg_all="$flags_dbg_all /debug:none" 16066 flags_dbg_all="$flags_dbg_all /debug:minimal" 16067 flags_dbg_all="$flags_dbg_all /debug:partial" 16068 flags_dbg_all="$flags_dbg_all /debug:full" 16069 flags_dbg_all="$flags_dbg_all /debug:semantic_stepping" 16070 flags_dbg_all="$flags_dbg_all /debug:extended" 16071 flags_dbg_yes="/Zi /Oy-" 16072 flags_dbg_off="/debug:none /Oy-" 16073 flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-" 16074 flags_opt_yes="/O2" 16075 flags_opt_off="/Od" 16076 fi 16077 else 16078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16079 $as_echo "no" >&6; } 16080 fi 16081 16082 16083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5 16084 $as_echo_n "checking if compiler is clang... " >&6; } 16085 16086 OLDCPPFLAGS=$CPPFLAGS 16087 # CPPPFLAG comes from CURL_CPP_P 16088 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 16089 if test -z "$SED"; then 16090 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 16091 fi 16092 if test -z "$GREP"; then 16093 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 16094 fi 16095 16096 tmp_exp="" 16097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16098 /* end confdefs.h. */ 16099 16100 16101 #ifdef __clang__ 16102 CURL_DEF_TOKEN __clang__ 16103 #endif 16104 16105 16106 _ACEOF 16107 if ac_fn_c_try_cpp "$LINENO"; then : 16108 16109 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 16110 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 16111 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 16112 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 16113 if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then 16114 tmp_exp="" 16115 fi 16116 16117 fi 16118 rm -f conftest.err conftest.i conftest.$ac_ext 16119 if test -z "$tmp_exp"; then 16120 curl_cv_have_def___clang__=no 16121 16122 else 16123 curl_cv_have_def___clang__=yes 16124 curl_cv_def___clang__=$tmp_exp 16125 16126 fi 16127 CPPFLAGS=$OLDCPPFLAGS 16128 16129 if test "$curl_cv_have_def___clang__" = "yes"; then 16130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16131 $as_echo "yes" >&6; } 16132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is xlclang" >&5 16133 $as_echo_n "checking if compiler is xlclang... " >&6; } 16134 16135 OLDCPPFLAGS=$CPPFLAGS 16136 # CPPPFLAG comes from CURL_CPP_P 16137 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 16138 if test -z "$SED"; then 16139 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 16140 fi 16141 if test -z "$GREP"; then 16142 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 16143 fi 16144 16145 tmp_exp="" 16146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16147 /* end confdefs.h. */ 16148 16149 16150 #ifdef __ibmxl__ 16151 CURL_DEF_TOKEN __ibmxl__ 16152 #endif 16153 16154 16155 _ACEOF 16156 if ac_fn_c_try_cpp "$LINENO"; then : 16157 16158 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 16159 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 16160 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 16161 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 16162 if test -z "$tmp_exp" || test "$tmp_exp" = "__ibmxl__"; then 16163 tmp_exp="" 16164 fi 16165 16166 fi 16167 rm -f conftest.err conftest.i conftest.$ac_ext 16168 if test -z "$tmp_exp"; then 16169 curl_cv_have_def___ibmxl__=no 16170 16171 else 16172 curl_cv_have_def___ibmxl__=yes 16173 curl_cv_def___ibmxl__=$tmp_exp 16174 16175 fi 16176 CPPFLAGS=$OLDCPPFLAGS 16177 16178 if test "$curl_cv_have_def___ibmxl__" = "yes" ; then 16179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16180 $as_echo "yes" >&6; } 16181 compiler_id="XLCLANG" 16182 else 16183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16184 $as_echo "no" >&6; } 16185 compiler_id="CLANG" 16186 fi 16187 fullclangver=`$CC -v 2>&1 | grep version` 16188 clangver=`echo $fullclangver | grep "based on LLVM " | "$SED" 's/.*(based on LLVM \([0-9]*\.[0-9]*\).*)/\1/'` 16189 if test -z "$clangver"; then 16190 if echo $fullclangver | grep "Apple LLVM version " >/dev/null; then 16191 clangver="3.7" 16192 else 16193 clangver=`echo $fullclangver | "$SED" 's/.*version \([0-9]*\.[0-9]*\).*/\1/'` 16194 fi 16195 fi 16196 clangvhi=`echo $clangver | cut -d . -f1` 16197 clangvlo=`echo $clangver | cut -d . -f2` 16198 compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null` 16199 flags_dbg_all="-g -g0 -g1 -g2 -g3" 16200 flags_dbg_all="$flags_dbg_all -ggdb" 16201 flags_dbg_all="$flags_dbg_all -gstabs" 16202 flags_dbg_all="$flags_dbg_all -gstabs+" 16203 flags_dbg_all="$flags_dbg_all -gcoff" 16204 flags_dbg_all="$flags_dbg_all -gxcoff" 16205 flags_dbg_all="$flags_dbg_all -gdwarf-2" 16206 flags_dbg_all="$flags_dbg_all -gvms" 16207 flags_dbg_yes="-g" 16208 flags_dbg_off="" 16209 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4" 16210 flags_opt_yes="-Os" 16211 flags_opt_off="-O0" 16212 else 16213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16214 $as_echo "no" >&6; } 16215 fi 16216 16217 16218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5 16219 $as_echo_n "checking if compiler is GNU C... " >&6; } 16220 16221 OLDCPPFLAGS=$CPPFLAGS 16222 # CPPPFLAG comes from CURL_CPP_P 16223 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 16224 if test -z "$SED"; then 16225 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 16226 fi 16227 if test -z "$GREP"; then 16228 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 16229 fi 16230 16231 tmp_exp="" 16232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16233 /* end confdefs.h. */ 16234 16235 16236 #ifdef __GNUC__ 16237 CURL_DEF_TOKEN __GNUC__ 16238 #endif 16239 16240 16241 _ACEOF 16242 if ac_fn_c_try_cpp "$LINENO"; then : 16243 16244 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 16245 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 16246 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 16247 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 16248 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then 16249 tmp_exp="" 16250 fi 16251 16252 fi 16253 rm -f conftest.err conftest.i conftest.$ac_ext 16254 if test -z "$tmp_exp"; then 16255 curl_cv_have_def___GNUC__=no 16256 16257 else 16258 curl_cv_have_def___GNUC__=yes 16259 curl_cv_def___GNUC__=$tmp_exp 16260 16261 fi 16262 CPPFLAGS=$OLDCPPFLAGS 16263 16264 if test "$curl_cv_have_def___GNUC__" = "yes" && 16265 test "$compiler_id" = "unknown"; then 16266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16267 $as_echo "yes" >&6; } 16268 compiler_id="GNU_C" 16269 gccver=`$CC -dumpversion` 16270 gccvhi=`echo $gccver | cut -d . -f1` 16271 gccvlo=`echo $gccver | cut -d . -f2` 16272 compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null` 16273 flags_dbg_all="-g -g0 -g1 -g2 -g3" 16274 flags_dbg_all="$flags_dbg_all -ggdb" 16275 flags_dbg_all="$flags_dbg_all -gstabs" 16276 flags_dbg_all="$flags_dbg_all -gstabs+" 16277 flags_dbg_all="$flags_dbg_all -gcoff" 16278 flags_dbg_all="$flags_dbg_all -gxcoff" 16279 flags_dbg_all="$flags_dbg_all -gdwarf-2" 16280 flags_dbg_all="$flags_dbg_all -gvms" 16281 flags_dbg_yes="-g" 16282 flags_dbg_off="" 16283 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast" 16284 flags_opt_yes="-O2" 16285 flags_opt_off="-O0" 16286 16287 OLDCPPFLAGS=$CPPFLAGS 16288 # CPPPFLAG comes from CURL_CPP_P 16289 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 16290 if test -z "$SED"; then 16291 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 16292 fi 16293 if test -z "$GREP"; then 16294 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 16295 fi 16296 16297 tmp_exp="" 16298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16299 /* end confdefs.h. */ 16300 16301 16302 #ifdef _WIN32 16303 CURL_DEF_TOKEN _WIN32 16304 #endif 16305 16306 16307 _ACEOF 16308 if ac_fn_c_try_cpp "$LINENO"; then : 16309 16310 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 16311 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 16312 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 16313 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 16314 if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then 16315 tmp_exp="" 16316 fi 16317 16318 fi 16319 rm -f conftest.err conftest.i conftest.$ac_ext 16320 if test -z "$tmp_exp"; then 16321 curl_cv_have_def__WIN32=no 16322 16323 else 16324 curl_cv_have_def__WIN32=yes 16325 curl_cv_def__WIN32=$tmp_exp 16326 16327 fi 16328 CPPFLAGS=$OLDCPPFLAGS 16329 16330 else 16331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16332 $as_echo "no" >&6; } 16333 fi 16334 16335 16336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5 16337 $as_echo_n "checking if compiler is LCC... " >&6; } 16338 16339 OLDCPPFLAGS=$CPPFLAGS 16340 # CPPPFLAG comes from CURL_CPP_P 16341 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 16342 if test -z "$SED"; then 16343 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 16344 fi 16345 if test -z "$GREP"; then 16346 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 16347 fi 16348 16349 tmp_exp="" 16350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16351 /* end confdefs.h. */ 16352 16353 16354 #ifdef __LCC__ 16355 CURL_DEF_TOKEN __LCC__ 16356 #endif 16357 16358 16359 _ACEOF 16360 if ac_fn_c_try_cpp "$LINENO"; then : 16361 16362 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 16363 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 16364 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 16365 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 16366 if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then 16367 tmp_exp="" 16368 fi 16369 16370 fi 16371 rm -f conftest.err conftest.i conftest.$ac_ext 16372 if test -z "$tmp_exp"; then 16373 curl_cv_have_def___LCC__=no 16374 16375 else 16376 curl_cv_have_def___LCC__=yes 16377 curl_cv_def___LCC__=$tmp_exp 16378 16379 fi 16380 CPPFLAGS=$OLDCPPFLAGS 16381 16382 if test "$curl_cv_have_def___LCC__" = "yes"; then 16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16384 $as_echo "yes" >&6; } 16385 compiler_id="LCC" 16386 flags_dbg_all="-g" 16387 flags_dbg_yes="-g" 16388 flags_dbg_off="" 16389 flags_opt_all="" 16390 flags_opt_yes="" 16391 flags_opt_off="" 16392 else 16393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16394 $as_echo "no" >&6; } 16395 fi 16396 16397 16398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5 16399 $as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; } 16400 16401 OLDCPPFLAGS=$CPPFLAGS 16402 # CPPPFLAG comes from CURL_CPP_P 16403 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 16404 if test -z "$SED"; then 16405 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 16406 fi 16407 if test -z "$GREP"; then 16408 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 16409 fi 16410 16411 tmp_exp="" 16412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16413 /* end confdefs.h. */ 16414 16415 16416 #ifdef __GNUC__ 16417 CURL_DEF_TOKEN __GNUC__ 16418 #endif 16419 16420 16421 _ACEOF 16422 if ac_fn_c_try_cpp "$LINENO"; then : 16423 16424 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 16425 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 16426 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 16427 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 16428 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then 16429 tmp_exp="" 16430 fi 16431 16432 fi 16433 rm -f conftest.err conftest.i conftest.$ac_ext 16434 if test -z "$tmp_exp"; then 16435 curl_cv_have_def___GNUC__=no 16436 16437 else 16438 curl_cv_have_def___GNUC__=yes 16439 curl_cv_def___GNUC__=$tmp_exp 16440 16441 fi 16442 CPPFLAGS=$OLDCPPFLAGS 16443 16444 16445 OLDCPPFLAGS=$CPPFLAGS 16446 # CPPPFLAG comes from CURL_CPP_P 16447 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 16448 if test -z "$SED"; then 16449 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 16450 fi 16451 if test -z "$GREP"; then 16452 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 16453 fi 16454 16455 tmp_exp="" 16456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16457 /* end confdefs.h. */ 16458 16459 16460 #ifdef _COMPILER_VERSION 16461 CURL_DEF_TOKEN _COMPILER_VERSION 16462 #endif 16463 16464 16465 _ACEOF 16466 if ac_fn_c_try_cpp "$LINENO"; then : 16467 16468 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 16469 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 16470 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 16471 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 16472 if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then 16473 tmp_exp="" 16474 fi 16475 16476 fi 16477 rm -f conftest.err conftest.i conftest.$ac_ext 16478 if test -z "$tmp_exp"; then 16479 curl_cv_have_def__COMPILER_VERSION=no 16480 16481 else 16482 curl_cv_have_def__COMPILER_VERSION=yes 16483 curl_cv_def__COMPILER_VERSION=$tmp_exp 16484 16485 fi 16486 CPPFLAGS=$OLDCPPFLAGS 16487 16488 16489 OLDCPPFLAGS=$CPPFLAGS 16490 # CPPPFLAG comes from CURL_CPP_P 16491 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 16492 if test -z "$SED"; then 16493 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 16494 fi 16495 if test -z "$GREP"; then 16496 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 16497 fi 16498 16499 tmp_exp="" 16500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16501 /* end confdefs.h. */ 16502 16503 16504 #ifdef _SGI_COMPILER_VERSION 16505 CURL_DEF_TOKEN _SGI_COMPILER_VERSION 16506 #endif 16507 16508 16509 _ACEOF 16510 if ac_fn_c_try_cpp "$LINENO"; then : 16511 16512 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 16513 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 16514 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 16515 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 16516 if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then 16517 tmp_exp="" 16518 fi 16519 16520 fi 16521 rm -f conftest.err conftest.i conftest.$ac_ext 16522 if test -z "$tmp_exp"; then 16523 curl_cv_have_def__SGI_COMPILER_VERSION=no 16524 16525 else 16526 curl_cv_have_def__SGI_COMPILER_VERSION=yes 16527 curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp 16528 16529 fi 16530 CPPFLAGS=$OLDCPPFLAGS 16531 16532 if test "$curl_cv_have_def___GNUC__" = "no" && 16533 (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" || 16534 test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then 16535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16536 $as_echo "yes" >&6; } 16537 compiler_id="SGI_MIPSPRO_C" 16538 flags_dbg_all="-g -g0 -g1 -g2 -g3" 16539 flags_dbg_yes="-g" 16540 flags_dbg_off="" 16541 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast" 16542 flags_opt_yes="-O2" 16543 flags_opt_off="-O0" 16544 else 16545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16546 $as_echo "no" >&6; } 16547 fi 16548 16549 16550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5 16551 $as_echo_n "checking if compiler is SGI MIPS C... " >&6; } 16552 16553 OLDCPPFLAGS=$CPPFLAGS 16554 # CPPPFLAG comes from CURL_CPP_P 16555 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 16556 if test -z "$SED"; then 16557 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 16558 fi 16559 if test -z "$GREP"; then 16560 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 16561 fi 16562 16563 tmp_exp="" 16564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16565 /* end confdefs.h. */ 16566 16567 16568 #ifdef __GNUC__ 16569 CURL_DEF_TOKEN __GNUC__ 16570 #endif 16571 16572 16573 _ACEOF 16574 if ac_fn_c_try_cpp "$LINENO"; then : 16575 16576 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 16577 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 16578 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 16579 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 16580 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then 16581 tmp_exp="" 16582 fi 16583 16584 fi 16585 rm -f conftest.err conftest.i conftest.$ac_ext 16586 if test -z "$tmp_exp"; then 16587 curl_cv_have_def___GNUC__=no 16588 16589 else 16590 curl_cv_have_def___GNUC__=yes 16591 curl_cv_def___GNUC__=$tmp_exp 16592 16593 fi 16594 CPPFLAGS=$OLDCPPFLAGS 16595 16596 16597 OLDCPPFLAGS=$CPPFLAGS 16598 # CPPPFLAG comes from CURL_CPP_P 16599 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 16600 if test -z "$SED"; then 16601 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 16602 fi 16603 if test -z "$GREP"; then 16604 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 16605 fi 16606 16607 tmp_exp="" 16608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16609 /* end confdefs.h. */ 16610 16611 16612 #ifdef __sgi 16613 CURL_DEF_TOKEN __sgi 16614 #endif 16615 16616 16617 _ACEOF 16618 if ac_fn_c_try_cpp "$LINENO"; then : 16619 16620 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 16621 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 16622 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 16623 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 16624 if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then 16625 tmp_exp="" 16626 fi 16627 16628 fi 16629 rm -f conftest.err conftest.i conftest.$ac_ext 16630 if test -z "$tmp_exp"; then 16631 curl_cv_have_def___sgi=no 16632 16633 else 16634 curl_cv_have_def___sgi=yes 16635 curl_cv_def___sgi=$tmp_exp 16636 16637 fi 16638 CPPFLAGS=$OLDCPPFLAGS 16639 16640 if test "$curl_cv_have_def___GNUC__" = "no" && 16641 test "$curl_cv_have_def___sgi" = "yes" && 16642 test "$compiler_id" = "unknown"; then 16643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16644 $as_echo "yes" >&6; } 16645 compiler_id="SGI_MIPS_C" 16646 flags_dbg_all="-g -g0 -g1 -g2 -g3" 16647 flags_dbg_yes="-g" 16648 flags_dbg_off="" 16649 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast" 16650 flags_opt_yes="-O2" 16651 flags_opt_off="-O0" 16652 else 16653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16654 $as_echo "no" >&6; } 16655 fi 16656 16657 16658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5 16659 $as_echo_n "checking if compiler is SunPro C... " >&6; } 16660 16661 OLDCPPFLAGS=$CPPFLAGS 16662 # CPPPFLAG comes from CURL_CPP_P 16663 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 16664 if test -z "$SED"; then 16665 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 16666 fi 16667 if test -z "$GREP"; then 16668 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 16669 fi 16670 16671 tmp_exp="" 16672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16673 /* end confdefs.h. */ 16674 16675 16676 #ifdef __SUNPRO_C 16677 CURL_DEF_TOKEN __SUNPRO_C 16678 #endif 16679 16680 16681 _ACEOF 16682 if ac_fn_c_try_cpp "$LINENO"; then : 16683 16684 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 16685 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 16686 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 16687 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 16688 if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then 16689 tmp_exp="" 16690 fi 16691 16692 fi 16693 rm -f conftest.err conftest.i conftest.$ac_ext 16694 if test -z "$tmp_exp"; then 16695 curl_cv_have_def___SUNPRO_C=no 16696 16697 else 16698 curl_cv_have_def___SUNPRO_C=yes 16699 curl_cv_def___SUNPRO_C=$tmp_exp 16700 16701 fi 16702 CPPFLAGS=$OLDCPPFLAGS 16703 16704 if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then 16705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16706 $as_echo "yes" >&6; } 16707 compiler_id="SUNPRO_C" 16708 flags_dbg_all="-g -s" 16709 flags_dbg_yes="-g" 16710 flags_dbg_off="-s" 16711 flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5" 16712 flags_opt_yes="-xO2" 16713 flags_opt_off="" 16714 else 16715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16716 $as_echo "no" >&6; } 16717 fi 16718 16719 16720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5 16721 $as_echo_n "checking if compiler is Tiny C... " >&6; } 16722 16723 OLDCPPFLAGS=$CPPFLAGS 16724 # CPPPFLAG comes from CURL_CPP_P 16725 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 16726 if test -z "$SED"; then 16727 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 16728 fi 16729 if test -z "$GREP"; then 16730 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 16731 fi 16732 16733 tmp_exp="" 16734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16735 /* end confdefs.h. */ 16736 16737 16738 #ifdef __TINYC__ 16739 CURL_DEF_TOKEN __TINYC__ 16740 #endif 16741 16742 16743 _ACEOF 16744 if ac_fn_c_try_cpp "$LINENO"; then : 16745 16746 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 16747 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 16748 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 16749 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 16750 if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then 16751 tmp_exp="" 16752 fi 16753 16754 fi 16755 rm -f conftest.err conftest.i conftest.$ac_ext 16756 if test -z "$tmp_exp"; then 16757 curl_cv_have_def___TINYC__=no 16758 16759 else 16760 curl_cv_have_def___TINYC__=yes 16761 curl_cv_def___TINYC__=$tmp_exp 16762 16763 fi 16764 CPPFLAGS=$OLDCPPFLAGS 16765 16766 if test "$curl_cv_have_def___TINYC__" = "yes"; then 16767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16768 $as_echo "yes" >&6; } 16769 compiler_id="TINY_C" 16770 flags_dbg_all="-g -b" 16771 flags_dbg_yes="-g" 16772 flags_dbg_off="" 16773 flags_opt_all="" 16774 flags_opt_yes="" 16775 flags_opt_off="" 16776 else 16777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16778 $as_echo "no" >&6; } 16779 fi 16780 16781 16782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5 16783 $as_echo_n "checking if compiler is Watcom C... " >&6; } 16784 16785 OLDCPPFLAGS=$CPPFLAGS 16786 # CPPPFLAG comes from CURL_CPP_P 16787 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 16788 if test -z "$SED"; then 16789 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 16790 fi 16791 if test -z "$GREP"; then 16792 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 16793 fi 16794 16795 tmp_exp="" 16796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16797 /* end confdefs.h. */ 16798 16799 16800 #ifdef __WATCOMC__ 16801 CURL_DEF_TOKEN __WATCOMC__ 16802 #endif 16803 16804 16805 _ACEOF 16806 if ac_fn_c_try_cpp "$LINENO"; then : 16807 16808 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 16809 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 16810 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 16811 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 16812 if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then 16813 tmp_exp="" 16814 fi 16815 16816 fi 16817 rm -f conftest.err conftest.i conftest.$ac_ext 16818 if test -z "$tmp_exp"; then 16819 curl_cv_have_def___WATCOMC__=no 16820 16821 else 16822 curl_cv_have_def___WATCOMC__=yes 16823 curl_cv_def___WATCOMC__=$tmp_exp 16824 16825 fi 16826 CPPFLAGS=$OLDCPPFLAGS 16827 16828 if test "$curl_cv_have_def___WATCOMC__" = "yes"; then 16829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16830 $as_echo "yes" >&6; } 16831 16832 OLDCPPFLAGS=$CPPFLAGS 16833 # CPPPFLAG comes from CURL_CPP_P 16834 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 16835 if test -z "$SED"; then 16836 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 16837 fi 16838 if test -z "$GREP"; then 16839 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 16840 fi 16841 16842 tmp_exp="" 16843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16844 /* end confdefs.h. */ 16845 16846 16847 #ifdef __UNIX__ 16848 CURL_DEF_TOKEN __UNIX__ 16849 #endif 16850 16851 16852 _ACEOF 16853 if ac_fn_c_try_cpp "$LINENO"; then : 16854 16855 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 16856 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 16857 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 16858 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 16859 if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then 16860 tmp_exp="" 16861 fi 16862 16863 fi 16864 rm -f conftest.err conftest.i conftest.$ac_ext 16865 if test -z "$tmp_exp"; then 16866 curl_cv_have_def___UNIX__=no 16867 16868 else 16869 curl_cv_have_def___UNIX__=yes 16870 curl_cv_def___UNIX__=$tmp_exp 16871 16872 fi 16873 CPPFLAGS=$OLDCPPFLAGS 16874 16875 if test "$curl_cv_have_def___UNIX__" = "yes"; then 16876 compiler_id="WATCOM_UNIX_C" 16877 flags_dbg_all="-g1 -g1+ -g2 -g3" 16878 flags_dbg_yes="-g2" 16879 flags_dbg_off="" 16880 flags_opt_all="-O0 -O1 -O2 -O3" 16881 flags_opt_yes="-O2" 16882 flags_opt_off="-O0" 16883 else 16884 compiler_id="WATCOM_WINDOWS_C" 16885 flags_dbg_all="" 16886 flags_dbg_yes="" 16887 flags_dbg_off="" 16888 flags_opt_all="" 16889 flags_opt_yes="" 16890 flags_opt_off="" 16891 fi 16892 else 16893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16894 $as_echo "no" >&6; } 16895 fi 16896 16897 # 16898 if test "$compiler_id" = "unknown"; then 16899 cat <<_EOF 1>&2 16900 *** 16901 *** Warning: This configure script does not have information about the 16902 *** compiler you are using, relative to the flags required to enable or 16903 *** disable generation of debug info, optimization options or warnings. 16904 *** 16905 *** Whatever settings are present in CFLAGS will be used for this run. 16906 *** 16907 *** If you wish to help the curl project to better support your compiler 16908 *** you can report this and the required info on the libcurl development 16909 *** mailing list: https://cool.haxx.se/mailman/listinfo/curl-library/ 16910 *** 16911 _EOF 16912 fi 16913 16914 16915 squeeze() { 16916 _sqz_result="" 16917 eval _sqz_input=\$$1 16918 for _sqz_token in $_sqz_input; do 16919 if test -z "$_sqz_result"; then 16920 _sqz_result="$_sqz_token" 16921 else 16922 _sqz_result="$_sqz_result $_sqz_token" 16923 fi 16924 done 16925 eval $1=\$_sqz_result 16926 return 0 16927 } 16928 16929 16930 # 16931 if test "$compiler_id" != "unknown"; then 16932 # 16933 if test "$compiler_id" = "GNU_C" || 16934 test "$compiler_id" = "CLANG"; then 16935 16936 if test "$compiler_id" = "GNU_C" || 16937 test "$compiler_id" = "CLANG"; then 16938 tmp_has_include="no" 16939 tmp_chg_FLAGS="$CFLAGS" 16940 for word1 in $tmp_chg_FLAGS; do 16941 case "$word1" in 16942 -I*) 16943 tmp_has_include="yes" 16944 ;; 16945 esac 16946 done 16947 if test "$tmp_has_include" = "yes"; then 16948 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'` 16949 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'` 16950 CFLAGS="$tmp_chg_FLAGS" 16951 squeeze CFLAGS 16952 fi 16953 tmp_has_include="no" 16954 tmp_chg_FLAGS="$CPPFLAGS" 16955 for word1 in $tmp_chg_FLAGS; do 16956 case "$word1" in 16957 -I*) 16958 tmp_has_include="yes" 16959 ;; 16960 esac 16961 done 16962 if test "$tmp_has_include" = "yes"; then 16963 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'` 16964 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'` 16965 CPPFLAGS="$tmp_chg_FLAGS" 16966 squeeze CPPFLAGS 16967 fi 16968 fi 16969 16970 fi 16971 # 16972 tmp_save_CPPFLAGS="$CPPFLAGS" 16973 tmp_save_CFLAGS="$CFLAGS" 16974 tmp_CPPFLAGS="" 16975 tmp_CFLAGS="" 16976 # 16977 case "$compiler_id" in 16978 # 16979 CLANG) 16980 # 16981 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments" 16982 ;; 16983 # 16984 DEC_C) 16985 # 16986 tmp_CFLAGS="$tmp_CFLAGS -std1" 16987 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias" 16988 tmp_CFLAGS="$tmp_CFLAGS -warnprotos" 16989 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs" 16990 ;; 16991 # 16992 GNU_C) 16993 # 16994 if test "$compiler_num" -ge "295"; then 16995 tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration" 16996 fi 16997 ;; 16998 # 16999 HP_UX_C) 17000 # 17001 tmp_CFLAGS="$tmp_CFLAGS -z" 17002 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255" 17003 ;; 17004 # 17005 IBM_C) 17006 # 17007 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded" 17008 tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias" 17009 tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e" 17010 ;; 17011 # 17012 INTEL_UNIX_C) 17013 # 17014 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89" 17015 tmp_CPPFLAGS="$tmp_CPPFLAGS -we140,147,165,266" 17016 tmp_CPPFLAGS="$tmp_CPPFLAGS -wd279,981,1469" 17017 ;; 17018 # 17019 INTEL_WINDOWS_C) 17020 # 17021 tmp_CFLAGS="$tmp_CFLAGS" 17022 ;; 17023 # 17024 LCC) 17025 # 17026 tmp_CFLAGS="$tmp_CFLAGS -n" 17027 ;; 17028 # 17029 SGI_MIPS_C) 17030 # 17031 tmp_CFLAGS="$tmp_CFLAGS" 17032 ;; 17033 # 17034 SGI_MIPSPRO_C) 17035 # 17036 tmp_CFLAGS="$tmp_CFLAGS" 17037 ;; 17038 # 17039 SUNPRO_C) 17040 # 17041 tmp_CFLAGS="$tmp_CFLAGS" 17042 ;; 17043 # 17044 TINY_C) 17045 # 17046 tmp_CFLAGS="$tmp_CFLAGS" 17047 ;; 17048 # 17049 WATCOM_UNIX_C) 17050 # 17051 tmp_CFLAGS="$tmp_CFLAGS" 17052 ;; 17053 # 17054 WATCOM_WINDOWS_C) 17055 # 17056 tmp_CFLAGS="$tmp_CFLAGS" 17057 ;; 17058 # 17059 esac 17060 # 17061 squeeze tmp_CPPFLAGS 17062 squeeze tmp_CFLAGS 17063 # 17064 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then 17065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5 17066 $as_echo_n "checking if compiler accepts some basic options... " >&6; } 17067 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS" 17068 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS" 17069 squeeze CPPFLAGS 17070 squeeze CFLAGS 17071 17072 tmp_compiler_works="unknown" 17073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17074 /* end confdefs.h. */ 17075 17076 17077 17078 int main (void) 17079 { 17080 17081 int i = 1; 17082 return i; 17083 17084 ; 17085 return 0; 17086 } 17087 17088 _ACEOF 17089 if ac_fn_c_try_compile "$LINENO"; then : 17090 17091 tmp_compiler_works="yes" 17092 17093 else 17094 17095 tmp_compiler_works="no" 17096 echo " " >&6 17097 sed 's/^/cc-fail: /' conftest.err >&6 17098 echo " " >&6 17099 17100 fi 17101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17102 if test "$tmp_compiler_works" = "yes"; then 17103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17104 /* end confdefs.h. */ 17105 17106 17107 17108 int main (void) 17109 { 17110 17111 int i = 1; 17112 return i; 17113 17114 ; 17115 return 0; 17116 } 17117 17118 _ACEOF 17119 if ac_fn_c_try_link "$LINENO"; then : 17120 17121 tmp_compiler_works="yes" 17122 17123 else 17124 17125 tmp_compiler_works="no" 17126 echo " " >&6 17127 sed 's/^/link-fail: /' conftest.err >&6 17128 echo " " >&6 17129 17130 fi 17131 rm -f core conftest.err conftest.$ac_objext \ 17132 conftest$ac_exeext conftest.$ac_ext 17133 fi 17134 if test "x$cross_compiling" != "xyes" && 17135 test "$tmp_compiler_works" = "yes"; then 17136 17137 17138 old=$LD_LIBRARY_PATH 17139 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 17140 export LD_LIBRARY_PATH 17141 if test "$cross_compiling" = yes; then : 17142 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17144 as_fn_error $? "cannot run test program while cross compiling 17145 See \`config.log' for more details" "$LINENO" 5; } 17146 else 17147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17148 /* end confdefs.h. */ 17149 17150 17151 # ifdef __STDC__ 17152 # include <stdlib.h> 17153 # endif 17154 17155 int main (void) 17156 { 17157 17158 int i = 0; 17159 exit(i); 17160 17161 ; 17162 return 0; 17163 } 17164 17165 _ACEOF 17166 if ac_fn_c_try_run "$LINENO"; then : 17167 tmp_compiler_works="yes" 17168 17169 else 17170 tmp_compiler_works="no" 17171 echo " " >&6 17172 echo "run-fail: test program exited with status $ac_status" >&6 17173 echo " " >&6 17174 17175 fi 17176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17177 conftest.$ac_objext conftest.beam conftest.$ac_ext 17178 fi 17179 17180 LD_LIBRARY_PATH=$old # restore 17181 17182 fi 17183 if test "$tmp_compiler_works" = "yes"; then 17184 17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17186 $as_echo "yes" >&6; } 17187 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5 17188 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;} 17189 17190 else 17191 17192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17193 $as_echo "no" >&6; } 17194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5 17195 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;} 17196 CPPFLAGS="$tmp_save_CPPFLAGS" 17197 CFLAGS="$tmp_save_CFLAGS" 17198 17199 fi 17200 17201 fi 17202 # 17203 fi 17204 17205 17206 # 17207 if test "$compiler_id" != "unknown"; then 17208 # 17209 tmp_save_CFLAGS="$CFLAGS" 17210 tmp_save_CPPFLAGS="$CPPFLAGS" 17211 # 17212 tmp_options="" 17213 tmp_CFLAGS="$CFLAGS" 17214 tmp_CPPFLAGS="$CPPFLAGS" 17215 17216 ac_var_stripped="" 17217 for word1 in $tmp_CFLAGS; do 17218 ac_var_strip_word="no" 17219 for word2 in $flags_dbg_all; do 17220 if test "$word1" = "$word2"; then 17221 ac_var_strip_word="yes" 17222 fi 17223 done 17224 if test "$ac_var_strip_word" = "no"; then 17225 ac_var_stripped="$ac_var_stripped $word1" 17226 fi 17227 done 17228 tmp_CFLAGS="$ac_var_stripped" 17229 squeeze tmp_CFLAGS 17230 17231 17232 ac_var_stripped="" 17233 for word1 in $tmp_CPPFLAGS; do 17234 ac_var_strip_word="no" 17235 for word2 in $flags_dbg_all; do 17236 if test "$word1" = "$word2"; then 17237 ac_var_strip_word="yes" 17238 fi 17239 done 17240 if test "$ac_var_strip_word" = "no"; then 17241 ac_var_stripped="$ac_var_stripped $word1" 17242 fi 17243 done 17244 tmp_CPPFLAGS="$ac_var_stripped" 17245 squeeze tmp_CPPFLAGS 17246 17247 # 17248 if test "$want_debug" = "yes"; then 17249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5 17250 $as_echo_n "checking if compiler accepts debug enabling options... " >&6; } 17251 tmp_options="$flags_dbg_yes" 17252 fi 17253 if test "$want_debug" = "no"; then 17254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5 17255 $as_echo_n "checking if compiler accepts debug disabling options... " >&6; } 17256 tmp_options="$flags_dbg_off" 17257 fi 17258 # 17259 if test "$flags_prefer_cppflags" = "yes"; then 17260 CPPFLAGS="$tmp_CPPFLAGS $tmp_options" 17261 CFLAGS="$tmp_CFLAGS" 17262 else 17263 CPPFLAGS="$tmp_CPPFLAGS" 17264 CFLAGS="$tmp_CFLAGS $tmp_options" 17265 fi 17266 squeeze CPPFLAGS 17267 squeeze CFLAGS 17268 17269 tmp_compiler_works="unknown" 17270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17271 /* end confdefs.h. */ 17272 17273 17274 17275 int main (void) 17276 { 17277 17278 int i = 1; 17279 return i; 17280 17281 ; 17282 return 0; 17283 } 17284 17285 _ACEOF 17286 if ac_fn_c_try_compile "$LINENO"; then : 17287 17288 tmp_compiler_works="yes" 17289 17290 else 17291 17292 tmp_compiler_works="no" 17293 echo " " >&6 17294 sed 's/^/cc-fail: /' conftest.err >&6 17295 echo " " >&6 17296 17297 fi 17298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17299 if test "$tmp_compiler_works" = "yes"; then 17300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17301 /* end confdefs.h. */ 17302 17303 17304 17305 int main (void) 17306 { 17307 17308 int i = 1; 17309 return i; 17310 17311 ; 17312 return 0; 17313 } 17314 17315 _ACEOF 17316 if ac_fn_c_try_link "$LINENO"; then : 17317 17318 tmp_compiler_works="yes" 17319 17320 else 17321 17322 tmp_compiler_works="no" 17323 echo " " >&6 17324 sed 's/^/link-fail: /' conftest.err >&6 17325 echo " " >&6 17326 17327 fi 17328 rm -f core conftest.err conftest.$ac_objext \ 17329 conftest$ac_exeext conftest.$ac_ext 17330 fi 17331 if test "x$cross_compiling" != "xyes" && 17332 test "$tmp_compiler_works" = "yes"; then 17333 17334 17335 old=$LD_LIBRARY_PATH 17336 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 17337 export LD_LIBRARY_PATH 17338 if test "$cross_compiling" = yes; then : 17339 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17341 as_fn_error $? "cannot run test program while cross compiling 17342 See \`config.log' for more details" "$LINENO" 5; } 17343 else 17344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17345 /* end confdefs.h. */ 17346 17347 17348 # ifdef __STDC__ 17349 # include <stdlib.h> 17350 # endif 17351 17352 int main (void) 17353 { 17354 17355 int i = 0; 17356 exit(i); 17357 17358 ; 17359 return 0; 17360 } 17361 17362 _ACEOF 17363 if ac_fn_c_try_run "$LINENO"; then : 17364 tmp_compiler_works="yes" 17365 17366 else 17367 tmp_compiler_works="no" 17368 echo " " >&6 17369 echo "run-fail: test program exited with status $ac_status" >&6 17370 echo " " >&6 17371 17372 fi 17373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17374 conftest.$ac_objext conftest.beam conftest.$ac_ext 17375 fi 17376 17377 LD_LIBRARY_PATH=$old # restore 17378 17379 fi 17380 if test "$tmp_compiler_works" = "yes"; then 17381 17382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17383 $as_echo "yes" >&6; } 17384 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5 17385 $as_echo "$as_me: compiler options added: $tmp_options" >&6;} 17386 17387 else 17388 17389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17390 $as_echo "no" >&6; } 17391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5 17392 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;} 17393 CPPFLAGS="$tmp_save_CPPFLAGS" 17394 CFLAGS="$tmp_save_CFLAGS" 17395 17396 fi 17397 17398 # 17399 fi 17400 17401 17402 # 17403 if test "$compiler_id" != "unknown"; then 17404 # 17405 tmp_save_CFLAGS="$CFLAGS" 17406 tmp_save_CPPFLAGS="$CPPFLAGS" 17407 # 17408 tmp_options="" 17409 tmp_CFLAGS="$CFLAGS" 17410 tmp_CPPFLAGS="$CPPFLAGS" 17411 honor_optimize_option="yes" 17412 # 17413 # 17414 if test "$want_optimize" = "assume_no" || 17415 test "$want_optimize" = "assume_yes"; then 17416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5 17417 $as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; } 17418 17419 17420 ac_var_match_word="no" 17421 for word1 in $tmp_CFLAGS; do 17422 for word2 in $flags_opt_all; do 17423 if test "$word1" = "$word2"; then 17424 ac_var_match_word="yes" 17425 fi 17426 done 17427 done 17428 17429 if test "$ac_var_match_word" = "yes"; then 17430 17431 honor_optimize_option="no" 17432 17433 17434 fi 17435 17436 17437 17438 ac_var_match_word="no" 17439 for word1 in $tmp_CPPFLAGS; do 17440 for word2 in $flags_opt_all; do 17441 if test "$word1" = "$word2"; then 17442 ac_var_match_word="yes" 17443 fi 17444 done 17445 done 17446 17447 if test "$ac_var_match_word" = "yes"; then 17448 17449 honor_optimize_option="no" 17450 17451 17452 fi 17453 17454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5 17455 $as_echo "$honor_optimize_option" >&6; } 17456 if test "$honor_optimize_option" = "yes"; then 17457 if test "$want_optimize" = "assume_yes"; then 17458 want_optimize="yes" 17459 fi 17460 if test "$want_optimize" = "assume_no"; then 17461 want_optimize="no" 17462 fi 17463 fi 17464 fi 17465 # 17466 if test "$honor_optimize_option" = "yes"; then 17467 17468 ac_var_stripped="" 17469 for word1 in $tmp_CFLAGS; do 17470 ac_var_strip_word="no" 17471 for word2 in $flags_opt_all; do 17472 if test "$word1" = "$word2"; then 17473 ac_var_strip_word="yes" 17474 fi 17475 done 17476 if test "$ac_var_strip_word" = "no"; then 17477 ac_var_stripped="$ac_var_stripped $word1" 17478 fi 17479 done 17480 tmp_CFLAGS="$ac_var_stripped" 17481 squeeze tmp_CFLAGS 17482 17483 17484 ac_var_stripped="" 17485 for word1 in $tmp_CPPFLAGS; do 17486 ac_var_strip_word="no" 17487 for word2 in $flags_opt_all; do 17488 if test "$word1" = "$word2"; then 17489 ac_var_strip_word="yes" 17490 fi 17491 done 17492 if test "$ac_var_strip_word" = "no"; then 17493 ac_var_stripped="$ac_var_stripped $word1" 17494 fi 17495 done 17496 tmp_CPPFLAGS="$ac_var_stripped" 17497 squeeze tmp_CPPFLAGS 17498 17499 if test "$want_optimize" = "yes"; then 17500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5 17501 $as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; } 17502 tmp_options="$flags_opt_yes" 17503 fi 17504 if test "$want_optimize" = "no"; then 17505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5 17506 $as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; } 17507 tmp_options="$flags_opt_off" 17508 fi 17509 if test "$flags_prefer_cppflags" = "yes"; then 17510 CPPFLAGS="$tmp_CPPFLAGS $tmp_options" 17511 CFLAGS="$tmp_CFLAGS" 17512 else 17513 CPPFLAGS="$tmp_CPPFLAGS" 17514 CFLAGS="$tmp_CFLAGS $tmp_options" 17515 fi 17516 squeeze CPPFLAGS 17517 squeeze CFLAGS 17518 17519 tmp_compiler_works="unknown" 17520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17521 /* end confdefs.h. */ 17522 17523 17524 17525 int main (void) 17526 { 17527 17528 int i = 1; 17529 return i; 17530 17531 ; 17532 return 0; 17533 } 17534 17535 _ACEOF 17536 if ac_fn_c_try_compile "$LINENO"; then : 17537 17538 tmp_compiler_works="yes" 17539 17540 else 17541 17542 tmp_compiler_works="no" 17543 echo " " >&6 17544 sed 's/^/cc-fail: /' conftest.err >&6 17545 echo " " >&6 17546 17547 fi 17548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17549 if test "$tmp_compiler_works" = "yes"; then 17550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17551 /* end confdefs.h. */ 17552 17553 17554 17555 int main (void) 17556 { 17557 17558 int i = 1; 17559 return i; 17560 17561 ; 17562 return 0; 17563 } 17564 17565 _ACEOF 17566 if ac_fn_c_try_link "$LINENO"; then : 17567 17568 tmp_compiler_works="yes" 17569 17570 else 17571 17572 tmp_compiler_works="no" 17573 echo " " >&6 17574 sed 's/^/link-fail: /' conftest.err >&6 17575 echo " " >&6 17576 17577 fi 17578 rm -f core conftest.err conftest.$ac_objext \ 17579 conftest$ac_exeext conftest.$ac_ext 17580 fi 17581 if test "x$cross_compiling" != "xyes" && 17582 test "$tmp_compiler_works" = "yes"; then 17583 17584 17585 old=$LD_LIBRARY_PATH 17586 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 17587 export LD_LIBRARY_PATH 17588 if test "$cross_compiling" = yes; then : 17589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17591 as_fn_error $? "cannot run test program while cross compiling 17592 See \`config.log' for more details" "$LINENO" 5; } 17593 else 17594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17595 /* end confdefs.h. */ 17596 17597 17598 # ifdef __STDC__ 17599 # include <stdlib.h> 17600 # endif 17601 17602 int main (void) 17603 { 17604 17605 int i = 0; 17606 exit(i); 17607 17608 ; 17609 return 0; 17610 } 17611 17612 _ACEOF 17613 if ac_fn_c_try_run "$LINENO"; then : 17614 tmp_compiler_works="yes" 17615 17616 else 17617 tmp_compiler_works="no" 17618 echo " " >&6 17619 echo "run-fail: test program exited with status $ac_status" >&6 17620 echo " " >&6 17621 17622 fi 17623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17624 conftest.$ac_objext conftest.beam conftest.$ac_ext 17625 fi 17626 17627 LD_LIBRARY_PATH=$old # restore 17628 17629 fi 17630 if test "$tmp_compiler_works" = "yes"; then 17631 17632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17633 $as_echo "yes" >&6; } 17634 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5 17635 $as_echo "$as_me: compiler options added: $tmp_options" >&6;} 17636 17637 else 17638 17639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17640 $as_echo "no" >&6; } 17641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5 17642 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;} 17643 CPPFLAGS="$tmp_save_CPPFLAGS" 17644 CFLAGS="$tmp_save_CFLAGS" 17645 17646 fi 17647 17648 fi 17649 # 17650 fi 17651 17652 17653 # 17654 if test "$compiler_id" != "unknown"; then 17655 # 17656 tmp_save_CPPFLAGS="$CPPFLAGS" 17657 tmp_save_CFLAGS="$CFLAGS" 17658 tmp_CPPFLAGS="" 17659 tmp_CFLAGS="" 17660 # 17661 case "$compiler_id" in 17662 # 17663 CLANG) 17664 # 17665 if test "$want_warnings" = "yes"; then 17666 tmp_CFLAGS="$tmp_CFLAGS -pedantic" 17667 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra" 17668 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings" 17669 tmp_CFLAGS="$tmp_CFLAGS -Wshadow" 17670 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs" 17671 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations" 17672 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes" 17673 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long" 17674 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal" 17675 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare" 17676 tmp_CFLAGS="$tmp_CFLAGS -Wundef" 17677 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral" 17678 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes" 17679 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement" 17680 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align" 17681 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers" 17682 tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32" 17683 # 17684 if test "$compiler_num" -ge "101"; then 17685 tmp_CFLAGS="$tmp_CFLAGS -Wunused" 17686 fi 17687 # 17688 if test "$compiler_num" -ge "208"; then 17689 tmp_CFLAGS="$tmp_CFLAGS -Wvla" 17690 fi 17691 # 17692 if test "$compiler_num" -ge "209"; then 17693 tmp_CFLAGS="$tmp_CFLAGS -Wshift-sign-overflow" 17694 fi 17695 # 17696 if test "$compiler_num" -ge "302"; then 17697 case $host_os in 17698 cygwin* | mingw*) 17699 ;; 17700 *) 17701 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-variable-declarations" 17702 ;; 17703 esac 17704 fi 17705 # 17706 if test "$compiler_num" -ge "306"; then 17707 tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion" 17708 fi 17709 # 17710 if test "$compiler_num" -ge "309"; then 17711 tmp_CFLAGS="$tmp_CFLAGS -Wcomma" 17712 # avoid the varargs warning, fixed in 4.0 17713 # https://bugs.llvm.org/show_bug.cgi?id=29140 17714 if test "$compiler_num" -lt "400"; then 17715 tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs" 17716 fi 17717 fi 17718 fi 17719 ;; 17720 # 17721 DEC_C) 17722 # 17723 if test "$want_warnings" = "yes"; then 17724 tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3" 17725 fi 17726 ;; 17727 # 17728 GNU_C) 17729 # 17730 if test "$want_warnings" = "yes"; then 17731 # 17732 if test "x$cross_compiling" != "xyes" || 17733 test "$compiler_num" -ge "300"; then 17734 tmp_CFLAGS="$tmp_CFLAGS -pedantic" 17735 fi 17736 # 17737 tmp_CFLAGS="$tmp_CFLAGS -Wall -W" 17738 # 17739 if test "$compiler_num" -ge "104"; then 17740 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings" 17741 if test "x$cross_compiling" != "xyes" || 17742 test "$compiler_num" -ge "300"; then 17743 tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow" 17744 fi 17745 fi 17746 # 17747 if test "$compiler_num" -ge "207"; then 17748 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs" 17749 if test "x$cross_compiling" != "xyes" || 17750 test "$compiler_num" -ge "300"; then 17751 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations" 17752 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes" 17753 fi 17754 fi 17755 # 17756 if test "$compiler_num" -ge "295"; then 17757 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long" 17758 tmp_CFLAGS="$tmp_CFLAGS -Wbad-function-cast" 17759 fi 17760 # 17761 if test "$compiler_num" -ge "296"; then 17762 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal" 17763 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare" 17764 tmp_CFLAGS="$tmp_CFLAGS -Wundef" 17765 fi 17766 # 17767 if test "$compiler_num" -ge "297"; then 17768 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral" 17769 fi 17770 # 17771 if test "$compiler_num" -ge "300"; then 17772 tmp_CFLAGS="$tmp_CFLAGS" 17773 fi 17774 # 17775 if test "$compiler_num" -ge "303"; then 17776 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes" 17777 fi 17778 # 17779 if test "$compiler_num" -ge "304"; then 17780 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement" 17781 tmp_CFLAGS="$tmp_CFLAGS -Wold-style-definition" 17782 fi 17783 # 17784 if test "$compiler_num" -ge "400"; then 17785 tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3" 17786 fi 17787 # 17788 if test "$compiler_num" -ge "402"; then 17789 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align" 17790 fi 17791 # 17792 if test "$compiler_num" -ge "403"; then 17793 tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration" 17794 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body" 17795 tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers" 17796 tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla" 17797 tmp_CFLAGS="$tmp_CFLAGS -ftree-vrp" 17798 fi 17799 # 17800 if test "$compiler_num" -ge "405"; then 17801 if test "$curl_cv_have_def__WIN32" = "yes"; then 17802 tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format" 17803 fi 17804 fi 17805 # 17806 if test "$compiler_num" -ge "406"; then 17807 tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion" 17808 fi 17809 # 17810 if test "$compiler_num" -ge "408"; then 17811 tmp_CFLAGS="$tmp_CFLAGS -Wformat=2" 17812 fi 17813 # 17814 if test "$compiler_num" -ge "500"; then 17815 tmp_CFLAGS="$tmp_CFLAGS -Warray-bounds=2" 17816 fi 17817 # 17818 if test "$compiler_num" -ge "600"; then 17819 tmp_CFLAGS="$tmp_CFLAGS -Wshift-negative-value" 17820 tmp_CFLAGS="$tmp_CFLAGS -Wshift-overflow=2" 17821 tmp_CFLAGS="$tmp_CFLAGS -Wnull-dereference -fdelete-null-pointer-checks" 17822 tmp_CFLAGS="$tmp_CFLAGS -Wduplicated-cond" 17823 tmp_CFLAGS="$tmp_CFLAGS -Wunused-const-variable" 17824 fi 17825 # 17826 if test "$compiler_num" -ge "700"; then 17827 tmp_CFLAGS="$tmp_CFLAGS -Wduplicated-branches" 17828 tmp_CFLAGS="$tmp_CFLAGS -Wrestrict" 17829 tmp_CFLAGS="$tmp_CFLAGS -Walloc-zero" 17830 tmp_CFLAGS="$tmp_CFLAGS -Wformat-overflow=2" 17831 tmp_CFLAGS="$tmp_CFLAGS -Wformat-truncation=2" 17832 tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough=4" 17833 fi 17834 # 17835 fi 17836 # 17837 if test "$compiler_num" -ge "300"; then 17838 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers" 17839 else 17840 if test "x$cross_compiling" = "xyes"; then 17841 if test "$compiler_num" -ge "104"; then 17842 tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow" 17843 fi 17844 if test "$compiler_num" -ge "207"; then 17845 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations" 17846 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes" 17847 fi 17848 fi 17849 fi 17850 ;; 17851 # 17852 HP_UX_C) 17853 # 17854 if test "$want_warnings" = "yes"; then 17855 tmp_CFLAGS="$tmp_CFLAGS +w1" 17856 fi 17857 ;; 17858 # 17859 IBM_C) 17860 # 17861 tmp_CFLAGS="$tmp_CFLAGS" 17862 ;; 17863 # 17864 INTEL_UNIX_C) 17865 # 17866 if test "$want_warnings" = "yes"; then 17867 if test "$compiler_num" -gt "600"; then 17868 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2" 17869 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck" 17870 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment" 17871 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated" 17872 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes" 17873 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64" 17874 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith" 17875 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type" 17876 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow" 17877 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized" 17878 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function" 17879 fi 17880 fi 17881 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer" 17882 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing" 17883 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise" 17884 if test "$compiler_num" -ge "1000"; then 17885 tmp_CFLAGS="$tmp_CFLAGS -vec-report0" 17886 fi 17887 ;; 17888 # 17889 INTEL_WINDOWS_C) 17890 # 17891 tmp_CFLAGS="$tmp_CFLAGS" 17892 ;; 17893 # 17894 LCC) 17895 # 17896 if test "$want_warnings" = "yes"; then 17897 tmp_CFLAGS="$tmp_CFLAGS" 17898 fi 17899 ;; 17900 # 17901 SGI_MIPS_C) 17902 # 17903 if test "$want_warnings" = "yes"; then 17904 tmp_CFLAGS="$tmp_CFLAGS -fullwarn" 17905 fi 17906 ;; 17907 # 17908 SGI_MIPSPRO_C) 17909 # 17910 if test "$want_warnings" = "yes"; then 17911 tmp_CFLAGS="$tmp_CFLAGS -fullwarn" 17912 tmp_CFLAGS="$tmp_CFLAGS -woff 1209" 17913 fi 17914 ;; 17915 # 17916 SUNPRO_C) 17917 # 17918 if test "$want_warnings" = "yes"; then 17919 tmp_CFLAGS="$tmp_CFLAGS -v" 17920 fi 17921 ;; 17922 # 17923 TINY_C) 17924 # 17925 if test "$want_warnings" = "yes"; then 17926 tmp_CFLAGS="$tmp_CFLAGS -Wall" 17927 tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings" 17928 tmp_CFLAGS="$tmp_CFLAGS -Wunsupported" 17929 fi 17930 ;; 17931 # 17932 WATCOM_UNIX_C) 17933 # 17934 if test "$want_warnings" = "yes"; then 17935 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra" 17936 fi 17937 ;; 17938 # 17939 WATCOM_WINDOWS_C) 17940 # 17941 tmp_CFLAGS="$tmp_CFLAGS" 17942 ;; 17943 # 17944 esac 17945 # 17946 squeeze tmp_CPPFLAGS 17947 squeeze tmp_CFLAGS 17948 # 17949 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then 17950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5 17951 $as_echo_n "checking if compiler accepts strict warning options... " >&6; } 17952 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS" 17953 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS" 17954 squeeze CPPFLAGS 17955 squeeze CFLAGS 17956 17957 tmp_compiler_works="unknown" 17958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17959 /* end confdefs.h. */ 17960 17961 17962 17963 int main (void) 17964 { 17965 17966 int i = 1; 17967 return i; 17968 17969 ; 17970 return 0; 17971 } 17972 17973 _ACEOF 17974 if ac_fn_c_try_compile "$LINENO"; then : 17975 17976 tmp_compiler_works="yes" 17977 17978 else 17979 17980 tmp_compiler_works="no" 17981 echo " " >&6 17982 sed 's/^/cc-fail: /' conftest.err >&6 17983 echo " " >&6 17984 17985 fi 17986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17987 if test "$tmp_compiler_works" = "yes"; then 17988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17989 /* end confdefs.h. */ 17990 17991 17992 17993 int main (void) 17994 { 17995 17996 int i = 1; 17997 return i; 17998 17999 ; 18000 return 0; 18001 } 18002 18003 _ACEOF 18004 if ac_fn_c_try_link "$LINENO"; then : 18005 18006 tmp_compiler_works="yes" 18007 18008 else 18009 18010 tmp_compiler_works="no" 18011 echo " " >&6 18012 sed 's/^/link-fail: /' conftest.err >&6 18013 echo " " >&6 18014 18015 fi 18016 rm -f core conftest.err conftest.$ac_objext \ 18017 conftest$ac_exeext conftest.$ac_ext 18018 fi 18019 if test "x$cross_compiling" != "xyes" && 18020 test "$tmp_compiler_works" = "yes"; then 18021 18022 18023 old=$LD_LIBRARY_PATH 18024 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 18025 export LD_LIBRARY_PATH 18026 if test "$cross_compiling" = yes; then : 18027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18029 as_fn_error $? "cannot run test program while cross compiling 18030 See \`config.log' for more details" "$LINENO" 5; } 18031 else 18032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18033 /* end confdefs.h. */ 18034 18035 18036 # ifdef __STDC__ 18037 # include <stdlib.h> 18038 # endif 18039 18040 int main (void) 18041 { 18042 18043 int i = 0; 18044 exit(i); 18045 18046 ; 18047 return 0; 18048 } 18049 18050 _ACEOF 18051 if ac_fn_c_try_run "$LINENO"; then : 18052 tmp_compiler_works="yes" 18053 18054 else 18055 tmp_compiler_works="no" 18056 echo " " >&6 18057 echo "run-fail: test program exited with status $ac_status" >&6 18058 echo " " >&6 18059 18060 fi 18061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18062 conftest.$ac_objext conftest.beam conftest.$ac_ext 18063 fi 18064 18065 LD_LIBRARY_PATH=$old # restore 18066 18067 fi 18068 if test "$tmp_compiler_works" = "yes"; then 18069 18070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18071 $as_echo "yes" >&6; } 18072 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5 18073 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;} 18074 18075 else 18076 18077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18078 $as_echo "no" >&6; } 18079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5 18080 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;} 18081 CPPFLAGS="$tmp_save_CPPFLAGS" 18082 CFLAGS="$tmp_save_CFLAGS" 18083 18084 fi 18085 18086 fi 18087 # 18088 fi 18089 18090 18091 if test "$compiler_id" = "INTEL_UNIX_C"; then 18092 # 18093 if test "$compiler_num" -ge "1000"; then 18094 CFLAGS="$CFLAGS -shared-intel" 18095 elif test "$compiler_num" -ge "900"; then 18096 CFLAGS="$CFLAGS -i-dynamic" 18097 fi 18098 # 18099 fi 18100 18101 18102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5 18103 $as_echo_n "checking if compiler halts on compilation errors... " >&6; } 18104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18105 /* end confdefs.h. */ 18106 18107 18108 18109 int main (void) 18110 { 18111 18112 force compilation error 18113 18114 ; 18115 return 0; 18116 } 18117 18118 _ACEOF 18119 if ac_fn_c_try_compile "$LINENO"; then : 18120 18121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18122 $as_echo "no" >&6; } 18123 as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5 18124 18125 else 18126 18127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18128 $as_echo "yes" >&6; } 18129 18130 fi 18131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18132 18133 18134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5 18135 $as_echo_n "checking if compiler halts on negative sized arrays... " >&6; } 18136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18137 /* end confdefs.h. */ 18138 18139 18140 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ]; 18141 18142 int main (void) 18143 { 18144 18145 bad_t dummy; 18146 18147 ; 18148 return 0; 18149 } 18150 18151 _ACEOF 18152 if ac_fn_c_try_compile "$LINENO"; then : 18153 18154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18155 $as_echo "no" >&6; } 18156 as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5 18157 18158 else 18159 18160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18161 $as_echo "yes" >&6; } 18162 18163 fi 18164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18165 18166 18167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5 18168 $as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; } 18169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18170 /* end confdefs.h. */ 18171 18172 18173 # include <stdlib.h> 18174 int rand(int n); 18175 int rand(int n) 18176 { 18177 if(n) 18178 return ++n; 18179 else 18180 return n; 18181 } 18182 18183 int main (void) 18184 { 18185 18186 int i[2]={0,0}; 18187 int j = rand(i[0]); 18188 if(j) 18189 return j; 18190 18191 ; 18192 return 0; 18193 } 18194 18195 _ACEOF 18196 if ac_fn_c_try_compile "$LINENO"; then : 18197 18198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18199 $as_echo "no" >&6; } 18200 as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5 18201 18202 else 18203 18204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18205 $as_echo "yes" >&6; } 18206 18207 fi 18208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18209 18210 18211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5 18212 $as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; } 18213 supports_symbol_hiding="no" 18214 symbol_hiding_CFLAGS="" 18215 symbol_hiding_EXTERN="" 18216 tmp_CFLAGS="" 18217 tmp_EXTERN="" 18218 case "$compiler_id" in 18219 CLANG) 18220 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))" 18221 tmp_CFLAGS="-fvisibility=hidden" 18222 supports_symbol_hiding="yes" 18223 ;; 18224 GNU_C) 18225 if test "$compiler_num" -ge "304"; then 18226 if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then 18227 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))" 18228 tmp_CFLAGS="-fvisibility=hidden" 18229 supports_symbol_hiding="yes" 18230 fi 18231 fi 18232 ;; 18233 INTEL_UNIX_C) 18234 if test "$compiler_num" -ge "900"; then 18235 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then 18236 tmp_save_CFLAGS="$CFLAGS" 18237 CFLAGS="$CFLAGS -fvisibility=hidden" 18238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18239 /* end confdefs.h. */ 18240 18241 18242 # include <stdio.h> 18243 18244 int main (void) 18245 { 18246 18247 printf("icc fvisibility bug test"); 18248 18249 ; 18250 return 0; 18251 } 18252 18253 _ACEOF 18254 if ac_fn_c_try_link "$LINENO"; then : 18255 18256 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))" 18257 tmp_CFLAGS="-fvisibility=hidden" 18258 supports_symbol_hiding="yes" 18259 18260 fi 18261 rm -f core conftest.err conftest.$ac_objext \ 18262 conftest$ac_exeext conftest.$ac_ext 18263 CFLAGS="$tmp_save_CFLAGS" 18264 fi 18265 fi 18266 ;; 18267 SUNPRO_C) 18268 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then 18269 tmp_EXTERN="__global" 18270 tmp_CFLAGS="-xldscope=hidden" 18271 supports_symbol_hiding="yes" 18272 fi 18273 ;; 18274 esac 18275 if test "$supports_symbol_hiding" = "yes"; then 18276 tmp_save_CFLAGS="$CFLAGS" 18277 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS" 18278 squeeze CFLAGS 18279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18280 /* end confdefs.h. */ 18281 18282 18283 $tmp_EXTERN char *dummy(char *buff); 18284 char *dummy(char *buff) 18285 { 18286 if(buff) 18287 return ++buff; 18288 else 18289 return buff; 18290 } 18291 18292 int main (void) 18293 { 18294 18295 char b[16]; 18296 char *r = dummy(&b[0]); 18297 if(r) 18298 return (int)*r; 18299 18300 ; 18301 return 0; 18302 } 18303 18304 _ACEOF 18305 if ac_fn_c_try_compile "$LINENO"; then : 18306 18307 supports_symbol_hiding="yes" 18308 if test -f conftest.err; then 18309 grep 'visibility' conftest.err >/dev/null 18310 if test "$?" -eq "0"; then 18311 supports_symbol_hiding="no" 18312 fi 18313 fi 18314 18315 else 18316 18317 supports_symbol_hiding="no" 18318 echo " " >&6 18319 sed 's/^/cc-src: /' conftest.$ac_ext >&6 18320 sed 's/^/cc-err: /' conftest.err >&6 18321 echo " " >&6 18322 18323 fi 18324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18325 CFLAGS="$tmp_save_CFLAGS" 18326 fi 18327 if test "$supports_symbol_hiding" = "yes"; then 18328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18329 $as_echo "yes" >&6; } 18330 symbol_hiding_CFLAGS="$tmp_CFLAGS" 18331 symbol_hiding_EXTERN="$tmp_EXTERN" 18332 else 18333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18334 $as_echo "no" >&6; } 18335 fi 18336 18337 18338 18339 supports_curldebug="unknown" 18340 if test "$want_curldebug" = "yes"; then 18341 if test "x$enable_shared" != "xno" && 18342 test "x$enable_shared" != "xyes"; then 18343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5 18344 $as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;} 18345 supports_curldebug="no" 18346 fi 18347 if test "x$enable_static" != "xno" && 18348 test "x$enable_static" != "xyes"; then 18349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5 18350 $as_echo "$as_me: WARNING: unknown enable_static setting." >&2;} 18351 supports_curldebug="no" 18352 fi 18353 if test "$supports_curldebug" != "no"; then 18354 if test "$enable_shared" = "yes" && 18355 test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then 18356 supports_curldebug="no" 18357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5 18358 $as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;} 18359 fi 18360 fi 18361 fi 18362 # 18363 if test "$want_curldebug" = "yes"; then 18364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5 18365 $as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; } 18366 test "$supports_curldebug" = "no" || supports_curldebug="yes" 18367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5 18368 $as_echo "$supports_curldebug" >&6; } 18369 if test "$supports_curldebug" = "no"; then 18370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5 18371 $as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;} 18372 want_curldebug="no" 18373 fi 18374 fi 18375 18376 if test x$want_curldebug = xyes; then 18377 CURLDEBUG_TRUE= 18378 CURLDEBUG_FALSE='#' 18379 else 18380 CURLDEBUG_TRUE='#' 18381 CURLDEBUG_FALSE= 18382 fi 18383 18384 18385 supports_unittests=yes 18386 # cross-compilation of unit tests static library/programs fails when 18387 # libcurl shared library is built. This might be due to a libtool or 18388 # automake issue. In this case we disable unit tests. 18389 if test "x$cross_compiling" != "xno" && 18390 test "x$enable_shared" != "xno"; then 18391 supports_unittests=no 18392 fi 18393 18394 # IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to 18395 # a problem related with OpenSSL headers and library versions not matching. 18396 # Disable unit tests while time to further investigate this is found. 18397 case $host in 18398 mips-sgi-irix6.5) 18399 if test "$compiler_id" = "GNU_C"; then 18400 supports_unittests=no 18401 fi 18402 ;; 18403 esac 18404 18405 # All AIX autobuilds fails unit tests linking against unittests library 18406 # due to unittests library being built with no symbols or members. Libtool ? 18407 # Disable unit tests while time to further investigate this is found. 18408 case $host_os in 18409 aix*) 18410 supports_unittests=no 18411 ;; 18412 esac 18413 18414 if test "x$want_debug" = "xyes" && 18415 test "x$supports_unittests" = "xyes"; then 18416 want_unittests=yes 18417 else 18418 want_unittests=no 18419 fi 18420 if test x$want_unittests = xyes; then 18421 BUILD_UNITTESTS_TRUE= 18422 BUILD_UNITTESTS_FALSE='#' 18423 else 18424 BUILD_UNITTESTS_TRUE='#' 18425 BUILD_UNITTESTS_FALSE= 18426 fi 18427 18428 18429 18430 18431 18432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5 18433 $as_echo_n "checking for windows.h... " >&6; } 18434 if ${curl_cv_header_windows_h+:} false; then : 18435 $as_echo_n "(cached) " >&6 18436 else 18437 18438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18439 /* end confdefs.h. */ 18440 18441 18442 #undef inline 18443 #ifndef WIN32_LEAN_AND_MEAN 18444 #define WIN32_LEAN_AND_MEAN 18445 #endif 18446 #include <windows.h> 18447 18448 int main (void) 18449 { 18450 18451 #if defined(__CYGWIN__) || defined(__CEGCC__) 18452 HAVE_WINDOWS_H shall not be defined. 18453 #else 18454 int dummy=2*WINVER; 18455 #endif 18456 18457 ; 18458 return 0; 18459 } 18460 18461 _ACEOF 18462 if ac_fn_c_try_compile "$LINENO"; then : 18463 18464 curl_cv_header_windows_h="yes" 18465 18466 else 18467 18468 curl_cv_header_windows_h="no" 18469 18470 fi 18471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18472 18473 fi 18474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5 18475 $as_echo "$curl_cv_header_windows_h" >&6; } 18476 case "$curl_cv_header_windows_h" in 18477 yes) 18478 18479 cat >>confdefs.h <<_ACEOF 18480 #define HAVE_WINDOWS_H 1 18481 _ACEOF 18482 18483 ;; 18484 esac 18485 18486 18487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5 18488 $as_echo_n "checking whether build target is a native Windows one... " >&6; } 18489 if ${curl_cv_native_windows+:} false; then : 18490 $as_echo_n "(cached) " >&6 18491 else 18492 18493 if test "$curl_cv_header_windows_h" = "no"; then 18494 curl_cv_native_windows="no" 18495 else 18496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18497 /* end confdefs.h. */ 18498 18499 18500 18501 int main (void) 18502 { 18503 18504 #if defined(__MINGW32__) || defined(__MINGW32CE__) || \ 18505 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))) 18506 int dummy=1; 18507 #else 18508 Not a native Windows build target. 18509 #endif 18510 18511 ; 18512 return 0; 18513 } 18514 18515 _ACEOF 18516 if ac_fn_c_try_compile "$LINENO"; then : 18517 18518 curl_cv_native_windows="yes" 18519 18520 else 18521 18522 curl_cv_native_windows="no" 18523 18524 fi 18525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18526 fi 18527 18528 fi 18529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5 18530 $as_echo "$curl_cv_native_windows" >&6; } 18531 if test "x$curl_cv_native_windows" = xyes; then 18532 DOING_NATIVE_WINDOWS_TRUE= 18533 DOING_NATIVE_WINDOWS_FALSE='#' 18534 else 18535 DOING_NATIVE_WINDOWS_TRUE='#' 18536 DOING_NATIVE_WINDOWS_FALSE= 18537 fi 18538 18539 18540 case X-"$curl_cv_native_windows" in 18541 X-yes) 18542 18543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5 18544 $as_echo_n "checking for winsock.h... " >&6; } 18545 if ${curl_cv_header_winsock_h+:} false; then : 18546 $as_echo_n "(cached) " >&6 18547 else 18548 18549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18550 /* end confdefs.h. */ 18551 18552 18553 #undef inline 18554 #ifndef WIN32_LEAN_AND_MEAN 18555 #define WIN32_LEAN_AND_MEAN 18556 #endif 18557 #include <windows.h> 18558 #include <winsock.h> 18559 18560 int main (void) 18561 { 18562 18563 #if defined(__CYGWIN__) || defined(__CEGCC__) 18564 HAVE_WINSOCK_H shall not be defined. 18565 #else 18566 int dummy=WSACleanup(); 18567 #endif 18568 18569 ; 18570 return 0; 18571 } 18572 18573 _ACEOF 18574 if ac_fn_c_try_compile "$LINENO"; then : 18575 18576 curl_cv_header_winsock_h="yes" 18577 18578 else 18579 18580 curl_cv_header_winsock_h="no" 18581 18582 fi 18583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18584 18585 fi 18586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5 18587 $as_echo "$curl_cv_header_winsock_h" >&6; } 18588 case "$curl_cv_header_winsock_h" in 18589 yes) 18590 18591 cat >>confdefs.h <<_ACEOF 18592 #define HAVE_WINSOCK_H 1 18593 _ACEOF 18594 18595 ;; 18596 esac 18597 18598 18599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5 18600 $as_echo_n "checking for winsock2.h... " >&6; } 18601 if ${curl_cv_header_winsock2_h+:} false; then : 18602 $as_echo_n "(cached) " >&6 18603 else 18604 18605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18606 /* end confdefs.h. */ 18607 18608 18609 #undef inline 18610 #ifndef WIN32_LEAN_AND_MEAN 18611 #define WIN32_LEAN_AND_MEAN 18612 #endif 18613 #include <windows.h> 18614 #include <winsock2.h> 18615 18616 int main (void) 18617 { 18618 18619 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__) 18620 HAVE_WINSOCK2_H shall not be defined. 18621 #else 18622 int dummy=2*IPPROTO_ESP; 18623 #endif 18624 18625 ; 18626 return 0; 18627 } 18628 18629 _ACEOF 18630 if ac_fn_c_try_compile "$LINENO"; then : 18631 18632 curl_cv_header_winsock2_h="yes" 18633 18634 else 18635 18636 curl_cv_header_winsock2_h="no" 18637 18638 fi 18639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18640 18641 fi 18642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5 18643 $as_echo "$curl_cv_header_winsock2_h" >&6; } 18644 case "$curl_cv_header_winsock2_h" in 18645 yes) 18646 18647 cat >>confdefs.h <<_ACEOF 18648 #define HAVE_WINSOCK2_H 1 18649 _ACEOF 18650 18651 ;; 18652 esac 18653 18654 18655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5 18656 $as_echo_n "checking for ws2tcpip.h... " >&6; } 18657 if ${curl_cv_header_ws2tcpip_h+:} false; then : 18658 $as_echo_n "(cached) " >&6 18659 else 18660 18661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18662 /* end confdefs.h. */ 18663 18664 18665 #undef inline 18666 #ifndef WIN32_LEAN_AND_MEAN 18667 #define WIN32_LEAN_AND_MEAN 18668 #endif 18669 #include <windows.h> 18670 #include <winsock2.h> 18671 #include <ws2tcpip.h> 18672 18673 int main (void) 18674 { 18675 18676 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__) 18677 HAVE_WS2TCPIP_H shall not be defined. 18678 #else 18679 int dummy=2*IP_PKTINFO; 18680 #endif 18681 18682 ; 18683 return 0; 18684 } 18685 18686 _ACEOF 18687 if ac_fn_c_try_compile "$LINENO"; then : 18688 18689 curl_cv_header_ws2tcpip_h="yes" 18690 18691 else 18692 18693 curl_cv_header_ws2tcpip_h="no" 18694 18695 fi 18696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18697 18698 fi 18699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5 18700 $as_echo "$curl_cv_header_ws2tcpip_h" >&6; } 18701 case "$curl_cv_header_ws2tcpip_h" in 18702 yes) 18703 18704 cat >>confdefs.h <<_ACEOF 18705 #define HAVE_WS2TCPIP_H 1 18706 _ACEOF 18707 18708 ;; 18709 esac 18710 18711 18712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5 18713 $as_echo_n "checking for winldap.h... " >&6; } 18714 if ${curl_cv_header_winldap_h+:} false; then : 18715 $as_echo_n "(cached) " >&6 18716 else 18717 18718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18719 /* end confdefs.h. */ 18720 18721 18722 #undef inline 18723 #ifdef HAVE_WINDOWS_H 18724 #ifndef WIN32_LEAN_AND_MEAN 18725 #define WIN32_LEAN_AND_MEAN 18726 #endif 18727 #include <windows.h> 18728 #endif 18729 #include <winldap.h> 18730 18731 int main (void) 18732 { 18733 18734 #if defined(__CYGWIN__) || defined(__CEGCC__) 18735 HAVE_WINLDAP_H shall not be defined. 18736 #else 18737 LDAP *ldp = ldap_init("dummy", LDAP_PORT); 18738 ULONG res = ldap_unbind(ldp); 18739 #endif 18740 18741 ; 18742 return 0; 18743 } 18744 18745 _ACEOF 18746 if ac_fn_c_try_compile "$LINENO"; then : 18747 18748 curl_cv_header_winldap_h="yes" 18749 18750 else 18751 18752 curl_cv_header_winldap_h="no" 18753 18754 fi 18755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18756 18757 fi 18758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winldap_h" >&5 18759 $as_echo "$curl_cv_header_winldap_h" >&6; } 18760 case "$curl_cv_header_winldap_h" in 18761 yes) 18762 18763 cat >>confdefs.h <<_ACEOF 18764 #define HAVE_WINLDAP_H 1 18765 _ACEOF 18766 18767 ;; 18768 esac 18769 18770 18771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5 18772 $as_echo_n "checking for winber.h... " >&6; } 18773 if ${curl_cv_header_winber_h+:} false; then : 18774 $as_echo_n "(cached) " >&6 18775 else 18776 18777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18778 /* end confdefs.h. */ 18779 18780 18781 #undef inline 18782 #ifdef HAVE_WINDOWS_H 18783 #ifndef WIN32_LEAN_AND_MEAN 18784 #define WIN32_LEAN_AND_MEAN 18785 #endif 18786 #include <windows.h> 18787 #endif 18788 #include <winldap.h> 18789 #include <winber.h> 18790 18791 int main (void) 18792 { 18793 18794 #if defined(__CYGWIN__) || defined(__CEGCC__) 18795 HAVE_WINBER_H shall not be defined. 18796 #else 18797 BERVAL *bvp = NULL; 18798 BerElement *bep = ber_init(bvp); 18799 ber_free(bep, 1); 18800 #endif 18801 18802 ; 18803 return 0; 18804 } 18805 18806 _ACEOF 18807 if ac_fn_c_try_compile "$LINENO"; then : 18808 18809 curl_cv_header_winber_h="yes" 18810 18811 else 18812 18813 curl_cv_header_winber_h="no" 18814 18815 fi 18816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18817 18818 fi 18819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winber_h" >&5 18820 $as_echo "$curl_cv_header_winber_h" >&6; } 18821 case "$curl_cv_header_winber_h" in 18822 yes) 18823 18824 cat >>confdefs.h <<_ACEOF 18825 #define HAVE_WINBER_H 1 18826 _ACEOF 18827 18828 ;; 18829 esac 18830 18831 ;; 18832 *) 18833 curl_cv_header_winsock_h="no" 18834 curl_cv_header_winsock2_h="no" 18835 curl_cv_header_ws2tcpip_h="no" 18836 curl_cv_header_winldap_h="no" 18837 curl_cv_header_winber_h="no" 18838 ;; 18839 esac 18840 18841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5 18842 $as_echo_n "checking whether build target supports WIN32 file API... " >&6; } 18843 curl_win32_file_api="no" 18844 if test "$curl_cv_header_windows_h" = "yes"; then 18845 if test x"$enable_largefile" != "xno"; then 18846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18847 /* end confdefs.h. */ 18848 18849 18850 18851 int main (void) 18852 { 18853 18854 #if !defined(_WIN32_WCE) && \ 18855 (defined(__MINGW32__) || \ 18856 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))) 18857 int dummy=1; 18858 #else 18859 WIN32 large file API not supported. 18860 #endif 18861 18862 ; 18863 return 0; 18864 } 18865 18866 _ACEOF 18867 if ac_fn_c_try_compile "$LINENO"; then : 18868 18869 curl_win32_file_api="win32_large_files" 18870 18871 fi 18872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18873 fi 18874 if test "$curl_win32_file_api" = "no"; then 18875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18876 /* end confdefs.h. */ 18877 18878 18879 18880 int main (void) 18881 { 18882 18883 #if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER) 18884 int dummy=1; 18885 #else 18886 WIN32 small file API not supported. 18887 #endif 18888 18889 ; 18890 return 0; 18891 } 18892 18893 _ACEOF 18894 if ac_fn_c_try_compile "$LINENO"; then : 18895 18896 curl_win32_file_api="win32_small_files" 18897 18898 fi 18899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18900 fi 18901 fi 18902 case "$curl_win32_file_api" in 18903 win32_large_files) 18904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5 18905 $as_echo "yes (large file enabled)" >&6; } 18906 18907 cat >>confdefs.h <<_ACEOF 18908 #define USE_WIN32_LARGE_FILES 1 18909 _ACEOF 18910 18911 ;; 18912 win32_small_files) 18913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5 18914 $as_echo "yes (large file disabled)" >&6; } 18915 18916 cat >>confdefs.h <<_ACEOF 18917 #define USE_WIN32_SMALL_FILES 1 18918 _ACEOF 18919 18920 ;; 18921 *) 18922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18923 $as_echo "no" >&6; } 18924 ;; 18925 esac 18926 18927 18928 18929 18930 tst_cflags="no" 18931 case $host_os in 18932 darwin*) 18933 tst_cflags="yes" 18934 ;; 18935 esac 18936 18937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good-to-use Mac CFLAGS" >&5 18938 $as_echo_n "checking for good-to-use Mac CFLAGS... " >&6; } 18939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_cflags" >&5 18940 $as_echo "$tst_cflags" >&6; }; 18941 18942 if test "$tst_cflags" = "yes"; then 18943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for *version-min in CFLAGS" >&5 18944 $as_echo_n "checking for *version-min in CFLAGS... " >&6; } 18945 min="" 18946 if test -z "$(echo $CFLAGS | grep m.*os.*-version-min)"; then 18947 min="-mmacosx-version-min=10.8" 18948 CFLAGS="$CFLAGS $min" 18949 fi 18950 if test -z "$min"; then 18951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set by user" >&5 18952 $as_echo "set by user" >&6; } 18953 else 18954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $min set" >&5 18955 $as_echo "$min set" >&6; } 18956 fi 18957 18958 old_CFLAGS=$CFLAGS 18959 CFLAGS="$CFLAGS -Werror=partial-availability" 18960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=partial-availability" >&5 18961 $as_echo_n "checking whether $CC accepts -Werror=partial-availability... " >&6; } 18962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18963 /* end confdefs.h. */ 18964 18965 int main (void) 18966 { 18967 18968 ; 18969 return 0; 18970 } 18971 _ACEOF 18972 if ac_fn_c_try_compile "$LINENO"; then : 18973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18974 $as_echo "yes" >&6; } 18975 else 18976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18977 $as_echo "no" >&6; } 18978 CFLAGS=$old_CFLAGS 18979 fi 18980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18981 fi 18982 18983 18984 18985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if the compiler supports __builtin_available()" >&5 18986 $as_echo_n "checking to see if the compiler supports __builtin_available()... " >&6; } 18987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18988 /* end confdefs.h. */ 18989 18990 18991 #include <stdlib.h> 18992 18993 int main (void) 18994 { 18995 18996 if (__builtin_available(macOS 10.8, iOS 5.0, *)) {} 18997 18998 ; 18999 return 0; 19000 } 19001 19002 _ACEOF 19003 if ac_fn_c_try_compile "$LINENO"; then : 19004 19005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19006 $as_echo "yes" >&6; } 19007 19008 cat >>confdefs.h <<_ACEOF 19009 #define HAVE_BUILTIN_AVAILABLE 1 19010 _ACEOF 19011 19012 19013 else 19014 19015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19016 $as_echo "no" >&6; } 19017 19018 fi 19019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19020 19021 19022 19023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5 19024 $as_echo_n "checking whether to support http... " >&6; } 19025 # Check whether --enable-http was given. 19026 if test "${enable_http+set}" = set; then : 19027 enableval=$enable_http; case "$enableval" in 19028 no) 19029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19030 $as_echo "no" >&6; } 19031 19032 $as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h 19033 19034 disable_http="yes" 19035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5 19036 $as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;} 19037 CURL_DISABLE_HTTP=1 19038 19039 19040 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h 19041 19042 CURL_DISABLE_RTSP=1 19043 19044 ;; 19045 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19046 $as_echo "yes" >&6; } 19047 ;; 19048 esac 19049 else 19050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19051 $as_echo "yes" >&6; } 19052 19053 fi 19054 19055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5 19056 $as_echo_n "checking whether to support ftp... " >&6; } 19057 # Check whether --enable-ftp was given. 19058 if test "${enable_ftp+set}" = set; then : 19059 enableval=$enable_ftp; case "$enableval" in 19060 no) 19061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19062 $as_echo "no" >&6; } 19063 19064 $as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h 19065 19066 CURL_DISABLE_FTP=1 19067 19068 ;; 19069 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19070 $as_echo "yes" >&6; } 19071 ;; 19072 esac 19073 else 19074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19075 $as_echo "yes" >&6; } 19076 19077 fi 19078 19079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5 19080 $as_echo_n "checking whether to support file... " >&6; } 19081 # Check whether --enable-file was given. 19082 if test "${enable_file+set}" = set; then : 19083 enableval=$enable_file; case "$enableval" in 19084 no) 19085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19086 $as_echo "no" >&6; } 19087 19088 $as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h 19089 19090 CURL_DISABLE_FILE=1 19091 19092 ;; 19093 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19094 $as_echo "yes" >&6; } 19095 ;; 19096 esac 19097 else 19098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19099 $as_echo "yes" >&6; } 19100 19101 fi 19102 19103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5 19104 $as_echo_n "checking whether to support ldap... " >&6; } 19105 # Check whether --enable-ldap was given. 19106 if test "${enable_ldap+set}" = set; then : 19107 enableval=$enable_ldap; case "$enableval" in 19108 no) 19109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19110 $as_echo "no" >&6; } 19111 19112 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h 19113 19114 CURL_DISABLE_LDAP=1 19115 19116 ;; 19117 *) 19118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19119 $as_echo "yes" >&6; } 19120 ;; 19121 esac 19122 else 19123 19124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19125 $as_echo "yes" >&6; } 19126 19127 fi 19128 19129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5 19130 $as_echo_n "checking whether to support ldaps... " >&6; } 19131 # Check whether --enable-ldaps was given. 19132 if test "${enable_ldaps+set}" = set; then : 19133 enableval=$enable_ldaps; case "$enableval" in 19134 no) 19135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19136 $as_echo "no" >&6; } 19137 19138 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h 19139 19140 CURL_DISABLE_LDAPS=1 19141 19142 ;; 19143 *) if test "x$CURL_DISABLE_LDAP" = "x1" ; then 19144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5 19145 $as_echo "LDAP needs to be enabled to support LDAPS" >&6; } 19146 19147 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h 19148 19149 CURL_DISABLE_LDAPS=1 19150 19151 else 19152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19153 $as_echo "yes" >&6; } 19154 19155 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h 19156 19157 HAVE_LDAP_SSL=1 19158 19159 fi 19160 ;; 19161 esac 19162 else 19163 19164 if test "x$CURL_DISABLE_LDAP" = "x1" ; then 19165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19166 $as_echo "no" >&6; } 19167 19168 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h 19169 19170 CURL_DISABLE_LDAPS=1 19171 19172 else 19173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19174 $as_echo "yes" >&6; } 19175 19176 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h 19177 19178 HAVE_LDAP_SSL=1 19179 19180 fi 19181 19182 fi 19183 19184 19185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5 19186 $as_echo_n "checking whether to support rtsp... " >&6; } 19187 # Check whether --enable-rtsp was given. 19188 if test "${enable_rtsp+set}" = set; then : 19189 enableval=$enable_rtsp; case "$enableval" in 19190 no) 19191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19192 $as_echo "no" >&6; } 19193 19194 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h 19195 19196 CURL_DISABLE_RTSP=1 19197 19198 ;; 19199 *) if test x$CURL_DISABLE_HTTP = x1 ; then 19200 as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5 19201 else 19202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19203 $as_echo "yes" >&6; } 19204 curl_rtsp_msg="enabled" 19205 fi 19206 ;; 19207 esac 19208 else 19209 if test "x$CURL_DISABLE_HTTP" != "x1"; then 19210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19211 $as_echo "yes" >&6; } 19212 curl_rtsp_msg="enabled" 19213 else 19214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19215 $as_echo "no" >&6; } 19216 fi 19217 19218 fi 19219 19220 19221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5 19222 $as_echo_n "checking whether to support proxies... " >&6; } 19223 # Check whether --enable-proxy was given. 19224 if test "${enable_proxy+set}" = set; then : 19225 enableval=$enable_proxy; case "$enableval" in 19226 no) 19227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19228 $as_echo "no" >&6; } 19229 19230 $as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h 19231 19232 CURL_DISABLE_PROXY=1 19233 19234 ;; 19235 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19236 $as_echo "yes" >&6; } 19237 ;; 19238 esac 19239 else 19240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19241 $as_echo "yes" >&6; } 19242 19243 fi 19244 19245 19246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5 19247 $as_echo_n "checking whether to support dict... " >&6; } 19248 # Check whether --enable-dict was given. 19249 if test "${enable_dict+set}" = set; then : 19250 enableval=$enable_dict; case "$enableval" in 19251 no) 19252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19253 $as_echo "no" >&6; } 19254 19255 $as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h 19256 19257 CURL_DISABLE_DICT=1 19258 19259 ;; 19260 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19261 $as_echo "yes" >&6; } 19262 ;; 19263 esac 19264 else 19265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19266 $as_echo "yes" >&6; } 19267 19268 fi 19269 19270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5 19271 $as_echo_n "checking whether to support telnet... " >&6; } 19272 # Check whether --enable-telnet was given. 19273 if test "${enable_telnet+set}" = set; then : 19274 enableval=$enable_telnet; case "$enableval" in 19275 no) 19276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19277 $as_echo "no" >&6; } 19278 19279 $as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h 19280 19281 CURL_DISABLE_TELNET=1 19282 19283 ;; 19284 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19285 $as_echo "yes" >&6; } 19286 ;; 19287 esac 19288 else 19289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19290 $as_echo "yes" >&6; } 19291 19292 fi 19293 19294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5 19295 $as_echo_n "checking whether to support tftp... " >&6; } 19296 # Check whether --enable-tftp was given. 19297 if test "${enable_tftp+set}" = set; then : 19298 enableval=$enable_tftp; case "$enableval" in 19299 no) 19300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19301 $as_echo "no" >&6; } 19302 19303 $as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h 19304 19305 CURL_DISABLE_TFTP=1 19306 19307 ;; 19308 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19309 $as_echo "yes" >&6; } 19310 ;; 19311 esac 19312 else 19313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19314 $as_echo "yes" >&6; } 19315 19316 fi 19317 19318 19319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5 19320 $as_echo_n "checking whether to support pop3... " >&6; } 19321 # Check whether --enable-pop3 was given. 19322 if test "${enable_pop3+set}" = set; then : 19323 enableval=$enable_pop3; case "$enableval" in 19324 no) 19325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19326 $as_echo "no" >&6; } 19327 19328 $as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h 19329 19330 CURL_DISABLE_POP3=1 19331 19332 ;; 19333 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19334 $as_echo "yes" >&6; } 19335 ;; 19336 esac 19337 else 19338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19339 $as_echo "yes" >&6; } 19340 19341 fi 19342 19343 19344 19345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5 19346 $as_echo_n "checking whether to support imap... " >&6; } 19347 # Check whether --enable-imap was given. 19348 if test "${enable_imap+set}" = set; then : 19349 enableval=$enable_imap; case "$enableval" in 19350 no) 19351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19352 $as_echo "no" >&6; } 19353 19354 $as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h 19355 19356 CURL_DISABLE_IMAP=1 19357 19358 ;; 19359 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19360 $as_echo "yes" >&6; } 19361 ;; 19362 esac 19363 else 19364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19365 $as_echo "yes" >&6; } 19366 19367 fi 19368 19369 19370 19371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5 19372 $as_echo_n "checking whether to support smb... " >&6; } 19373 # Check whether --enable-smb was given. 19374 if test "${enable_smb+set}" = set; then : 19375 enableval=$enable_smb; case "$enableval" in 19376 no) 19377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19378 $as_echo "no" >&6; } 19379 19380 $as_echo "#define CURL_DISABLE_SMB 1" >>confdefs.h 19381 19382 CURL_DISABLE_SMB=1 19383 19384 ;; 19385 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19386 $as_echo "yes" >&6; } 19387 ;; 19388 esac 19389 else 19390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19391 $as_echo "yes" >&6; } 19392 19393 fi 19394 19395 19396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5 19397 $as_echo_n "checking whether to support smtp... " >&6; } 19398 # Check whether --enable-smtp was given. 19399 if test "${enable_smtp+set}" = set; then : 19400 enableval=$enable_smtp; case "$enableval" in 19401 no) 19402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19403 $as_echo "no" >&6; } 19404 19405 $as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h 19406 19407 CURL_DISABLE_SMTP=1 19408 19409 ;; 19410 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19411 $as_echo "yes" >&6; } 19412 ;; 19413 esac 19414 else 19415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19416 $as_echo "yes" >&6; } 19417 19418 fi 19419 19420 19421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5 19422 $as_echo_n "checking whether to support gopher... " >&6; } 19423 # Check whether --enable-gopher was given. 19424 if test "${enable_gopher+set}" = set; then : 19425 enableval=$enable_gopher; case "$enableval" in 19426 no) 19427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19428 $as_echo "no" >&6; } 19429 19430 $as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h 19431 19432 CURL_DISABLE_GOPHER=1 19433 19434 ;; 19435 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19436 $as_echo "yes" >&6; } 19437 ;; 19438 esac 19439 else 19440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19441 $as_echo "yes" >&6; } 19442 19443 fi 19444 19445 19446 19447 19448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5 19449 $as_echo_n "checking whether to provide built-in manual... " >&6; } 19450 # Check whether --enable-manual was given. 19451 if test "${enable_manual+set}" = set; then : 19452 enableval=$enable_manual; case "$enableval" in 19453 no) 19454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19455 $as_echo "no" >&6; } 19456 ;; 19457 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19458 $as_echo "yes" >&6; } 19459 USE_MANUAL="1" 19460 ;; 19461 esac 19462 else 19463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19464 $as_echo "yes" >&6; } 19465 USE_MANUAL="1" 19466 19467 fi 19468 19469 19470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5 19471 $as_echo_n "checking whether to enable generation of C code... " >&6; } 19472 # Check whether --enable-libcurl_option was given. 19473 if test "${enable_libcurl_option+set}" = set; then : 19474 enableval=$enable_libcurl_option; case "$enableval" in 19475 no) 19476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19477 $as_echo "no" >&6; } 19478 19479 $as_echo "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h 19480 19481 curl_libcurl_msg="no" 19482 ;; 19483 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19484 $as_echo "yes" >&6; } 19485 ;; 19486 esac 19487 else 19488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19489 $as_echo "yes" >&6; } 19490 19491 fi 19492 19493 19494 19495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5 19496 $as_echo_n "checking whether to use libgcc... " >&6; } 19497 # Check whether --enable-libgcc was given. 19498 if test "${enable_libgcc+set}" = set; then : 19499 enableval=$enable_libgcc; case "$enableval" in 19500 yes) 19501 LIBS="-lgcc $LIBS" 19502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19503 $as_echo "yes" >&6; } 19504 ;; 19505 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19506 $as_echo "no" >&6; } 19507 ;; 19508 esac 19509 else 19510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19511 $as_echo "no" >&6; } 19512 19513 fi 19514 19515 19516 19517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5 19518 $as_echo_n "checking if X/Open network library is required... " >&6; } 19519 tst_lib_xnet_required="no" 19520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19521 /* end confdefs.h. */ 19522 19523 19524 int main (void) 19525 { 19526 #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600) 19527 return 0; 19528 #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED) 19529 return 0; 19530 #else 19531 force compilation error 19532 #endif 19533 } 19534 19535 19536 _ACEOF 19537 if ac_fn_c_try_compile "$LINENO"; then : 19538 19539 tst_lib_xnet_required="yes" 19540 LIBS="-lxnet $LIBS" 19541 19542 fi 19543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5 19545 $as_echo "$tst_lib_xnet_required" >&6; } 19546 19547 19548 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 19549 if test "x$ac_cv_func_gethostbyname" = xyes; then : 19550 HAVE_GETHOSTBYNAME="1" 19551 19552 else 19553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 19554 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 19555 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 19556 $as_echo_n "(cached) " >&6 19557 else 19558 ac_check_lib_save_LIBS=$LIBS 19559 LIBS="-lnsl $LIBS" 19560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19561 /* end confdefs.h. */ 19562 19563 19564 #ifdef __cplusplus 19565 extern "C" 19566 #endif 19567 char gethostbyname (); 19568 int main (void) 19569 { 19570 return gethostbyname (); 19571 ; 19572 return 0; 19573 } 19574 _ACEOF 19575 if ac_fn_c_try_link "$LINENO"; then : 19576 ac_cv_lib_nsl_gethostbyname=yes 19577 else 19578 ac_cv_lib_nsl_gethostbyname=no 19579 fi 19580 rm -f core conftest.err conftest.$ac_objext \ 19581 conftest$ac_exeext conftest.$ac_ext 19582 LIBS=$ac_check_lib_save_LIBS 19583 fi 19584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 19585 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 19586 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 19587 HAVE_GETHOSTBYNAME="1" 19588 LIBS="-lnsl $LIBS" 19589 19590 fi 19591 19592 19593 fi 19594 19595 19596 if test "$HAVE_GETHOSTBYNAME" != "1" 19597 then 19598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5 19599 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; } 19600 if ${ac_cv_lib_socket_gethostbyname+:} false; then : 19601 $as_echo_n "(cached) " >&6 19602 else 19603 ac_check_lib_save_LIBS=$LIBS 19604 LIBS="-lsocket $LIBS" 19605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19606 /* end confdefs.h. */ 19607 19608 19609 #ifdef __cplusplus 19610 extern "C" 19611 #endif 19612 char gethostbyname (); 19613 int main (void) 19614 { 19615 return gethostbyname (); 19616 ; 19617 return 0; 19618 } 19619 _ACEOF 19620 if ac_fn_c_try_link "$LINENO"; then : 19621 ac_cv_lib_socket_gethostbyname=yes 19622 else 19623 ac_cv_lib_socket_gethostbyname=no 19624 fi 19625 rm -f core conftest.err conftest.$ac_objext \ 19626 conftest$ac_exeext conftest.$ac_ext 19627 LIBS=$ac_check_lib_save_LIBS 19628 fi 19629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5 19630 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; } 19631 if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then : 19632 HAVE_GETHOSTBYNAME="1" 19633 LIBS="-lsocket $LIBS" 19634 19635 fi 19636 19637 fi 19638 19639 if test "$HAVE_GETHOSTBYNAME" != "1" 19640 then 19641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5 19642 $as_echo_n "checking for gethostbyname in -lwatt... " >&6; } 19643 if ${ac_cv_lib_watt_gethostbyname+:} false; then : 19644 $as_echo_n "(cached) " >&6 19645 else 19646 ac_check_lib_save_LIBS=$LIBS 19647 LIBS="-lwatt $LIBS" 19648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19649 /* end confdefs.h. */ 19650 19651 19652 #ifdef __cplusplus 19653 extern "C" 19654 #endif 19655 char gethostbyname (); 19656 int main (void) 19657 { 19658 return gethostbyname (); 19659 ; 19660 return 0; 19661 } 19662 _ACEOF 19663 if ac_fn_c_try_link "$LINENO"; then : 19664 ac_cv_lib_watt_gethostbyname=yes 19665 else 19666 ac_cv_lib_watt_gethostbyname=no 19667 fi 19668 rm -f core conftest.err conftest.$ac_objext \ 19669 conftest$ac_exeext conftest.$ac_ext 19670 LIBS=$ac_check_lib_save_LIBS 19671 fi 19672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5 19673 $as_echo "$ac_cv_lib_watt_gethostbyname" >&6; } 19674 if test "x$ac_cv_lib_watt_gethostbyname" = xyes; then : 19675 HAVE_GETHOSTBYNAME="1" 19676 CPPFLAGS="-I/dev/env/WATT_ROOT/inc" 19677 LDFLAGS="-L/dev/env/WATT_ROOT/lib" 19678 LIBS="-lwatt $LIBS" 19679 19680 fi 19681 19682 fi 19683 19684 if test "$HAVE_GETHOSTBYNAME" != "1" 19685 then 19686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5 19687 $as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; } 19688 my_ac_save_LIBS=$LIBS 19689 LIBS="-lnsl -lsocket $LIBS" 19690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19691 /* end confdefs.h. */ 19692 19693 19694 19695 int main (void) 19696 { 19697 19698 gethostbyname(); 19699 19700 ; 19701 return 0; 19702 } 19703 19704 _ACEOF 19705 if ac_fn_c_try_link "$LINENO"; then : 19706 19707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19708 $as_echo "yes" >&6; } 19709 HAVE_GETHOSTBYNAME="1" 19710 19711 else 19712 19713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19714 $as_echo "no" >&6; } 19715 LIBS=$my_ac_save_LIBS 19716 19717 fi 19718 rm -f core conftest.err conftest.$ac_objext \ 19719 conftest$ac_exeext conftest.$ac_ext 19720 fi 19721 19722 if test "$HAVE_GETHOSTBYNAME" != "1" 19723 then 19724 if test "$curl_cv_header_windows_h" = "yes"; then 19725 if test "$curl_cv_header_winsock_h" = "yes"; then 19726 case $host in 19727 *-*-mingw32ce*) 19728 winsock_LIB="-lwinsock" 19729 ;; 19730 *) 19731 winsock_LIB="-lwsock32" 19732 ;; 19733 esac 19734 fi 19735 if test "$curl_cv_header_winsock2_h" = "yes"; then 19736 winsock_LIB="-lws2_32" 19737 fi 19738 if test ! -z "$winsock_LIB"; then 19739 my_ac_save_LIBS=$LIBS 19740 LIBS="$winsock_LIB $LIBS" 19741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5 19742 $as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; } 19743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19744 /* end confdefs.h. */ 19745 19746 19747 #ifdef HAVE_WINDOWS_H 19748 #ifndef WIN32_LEAN_AND_MEAN 19749 #define WIN32_LEAN_AND_MEAN 19750 #endif 19751 #include <windows.h> 19752 #ifdef HAVE_WINSOCK2_H 19753 #include <winsock2.h> 19754 #else 19755 #ifdef HAVE_WINSOCK_H 19756 #include <winsock.h> 19757 #endif 19758 #endif 19759 #endif 19760 19761 int main (void) 19762 { 19763 19764 gethostbyname("www.dummysite.com"); 19765 19766 ; 19767 return 0; 19768 } 19769 19770 _ACEOF 19771 if ac_fn_c_try_link "$LINENO"; then : 19772 19773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19774 $as_echo "yes" >&6; } 19775 HAVE_GETHOSTBYNAME="1" 19776 19777 else 19778 19779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19780 $as_echo "no" >&6; } 19781 winsock_LIB="" 19782 LIBS=$my_ac_save_LIBS 19783 19784 fi 19785 rm -f core conftest.err conftest.$ac_objext \ 19786 conftest$ac_exeext conftest.$ac_ext 19787 fi 19788 fi 19789 fi 19790 19791 if test "$HAVE_GETHOSTBYNAME" != "1" 19792 then 19793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5 19794 $as_echo_n "checking for gethostbyname for Minix 3... " >&6; } 19795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19796 /* end confdefs.h. */ 19797 19798 19799 /* Older Minix versions may need <net/gen/netdb.h> here instead */ 19800 #include <netdb.h> 19801 19802 int main (void) 19803 { 19804 19805 gethostbyname("www.dummysite.com"); 19806 19807 ; 19808 return 0; 19809 } 19810 19811 _ACEOF 19812 if ac_fn_c_try_link "$LINENO"; then : 19813 19814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19815 $as_echo "yes" >&6; } 19816 HAVE_GETHOSTBYNAME="1" 19817 19818 else 19819 19820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19821 $as_echo "no" >&6; } 19822 19823 fi 19824 rm -f core conftest.err conftest.$ac_objext \ 19825 conftest$ac_exeext conftest.$ac_ext 19826 fi 19827 19828 if test "$HAVE_GETHOSTBYNAME" != "1" 19829 then 19830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5 19831 $as_echo_n "checking for gethostbyname for eCos... " >&6; } 19832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19833 /* end confdefs.h. */ 19834 19835 19836 #include <stdio.h> 19837 #include <netdb.h> 19838 19839 int main (void) 19840 { 19841 19842 gethostbyname("www.dummysite.com"); 19843 19844 ; 19845 return 0; 19846 } 19847 19848 _ACEOF 19849 if ac_fn_c_try_link "$LINENO"; then : 19850 19851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19852 $as_echo "yes" >&6; } 19853 HAVE_GETHOSTBYNAME="1" 19854 19855 else 19856 19857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19858 $as_echo "no" >&6; } 19859 19860 fi 19861 rm -f core conftest.err conftest.$ac_objext \ 19862 conftest$ac_exeext conftest.$ac_ext 19863 fi 19864 19865 if test "$HAVE_GETHOSTBYNAME" != "1" 19866 then 19867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for AmigaOS bsdsocket.library" >&5 19868 $as_echo_n "checking for gethostbyname for AmigaOS bsdsocket.library... " >&6; } 19869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19870 /* end confdefs.h. */ 19871 19872 19873 #include <proto/bsdsocket.h> 19874 struct Library *SocketBase = NULL; 19875 19876 int main (void) 19877 { 19878 19879 gethostbyname("www.dummysite.com"); 19880 19881 ; 19882 return 0; 19883 } 19884 19885 _ACEOF 19886 if ac_fn_c_try_link "$LINENO"; then : 19887 19888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19889 $as_echo "yes" >&6; } 19890 HAVE_GETHOSTBYNAME="1" 19891 HAVE_PROTO_BSDSOCKET_H="1" 19892 19893 $as_echo "#define HAVE_PROTO_BSDSOCKET_H 1" >>confdefs.h 19894 19895 HAVE_PROTO_BSDSOCKET_H=1 19896 19897 19898 else 19899 19900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19901 $as_echo "no" >&6; } 19902 19903 fi 19904 rm -f core conftest.err conftest.$ac_objext \ 19905 conftest$ac_exeext conftest.$ac_ext 19906 fi 19907 19908 if test "$HAVE_GETHOSTBYNAME" != "1" 19909 then 19910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5 19911 $as_echo_n "checking for gethostbyname in -lnetwork... " >&6; } 19912 if ${ac_cv_lib_network_gethostbyname+:} false; then : 19913 $as_echo_n "(cached) " >&6 19914 else 19915 ac_check_lib_save_LIBS=$LIBS 19916 LIBS="-lnetwork $LIBS" 19917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19918 /* end confdefs.h. */ 19919 19920 19921 #ifdef __cplusplus 19922 extern "C" 19923 #endif 19924 char gethostbyname (); 19925 int main (void) 19926 { 19927 return gethostbyname (); 19928 ; 19929 return 0; 19930 } 19931 _ACEOF 19932 if ac_fn_c_try_link "$LINENO"; then : 19933 ac_cv_lib_network_gethostbyname=yes 19934 else 19935 ac_cv_lib_network_gethostbyname=no 19936 fi 19937 rm -f core conftest.err conftest.$ac_objext \ 19938 conftest$ac_exeext conftest.$ac_ext 19939 LIBS=$ac_check_lib_save_LIBS 19940 fi 19941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5 19942 $as_echo "$ac_cv_lib_network_gethostbyname" >&6; } 19943 if test "x$ac_cv_lib_network_gethostbyname" = xyes; then : 19944 HAVE_GETHOSTBYNAME="1" 19945 LIBS="-lnetwork $LIBS" 19946 19947 fi 19948 19949 fi 19950 19951 if test "$HAVE_GETHOSTBYNAME" != "1" 19952 then 19953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5 19954 $as_echo_n "checking for gethostbyname in -lnet... " >&6; } 19955 if ${ac_cv_lib_net_gethostbyname+:} false; then : 19956 $as_echo_n "(cached) " >&6 19957 else 19958 ac_check_lib_save_LIBS=$LIBS 19959 LIBS="-lnet $LIBS" 19960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19961 /* end confdefs.h. */ 19962 19963 19964 #ifdef __cplusplus 19965 extern "C" 19966 #endif 19967 char gethostbyname (); 19968 int main (void) 19969 { 19970 return gethostbyname (); 19971 ; 19972 return 0; 19973 } 19974 _ACEOF 19975 if ac_fn_c_try_link "$LINENO"; then : 19976 ac_cv_lib_net_gethostbyname=yes 19977 else 19978 ac_cv_lib_net_gethostbyname=no 19979 fi 19980 rm -f core conftest.err conftest.$ac_objext \ 19981 conftest$ac_exeext conftest.$ac_ext 19982 LIBS=$ac_check_lib_save_LIBS 19983 fi 19984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5 19985 $as_echo "$ac_cv_lib_net_gethostbyname" >&6; } 19986 if test "x$ac_cv_lib_net_gethostbyname" = xyes; then : 19987 HAVE_GETHOSTBYNAME="1" 19988 LIBS="-lnet $LIBS" 19989 19990 fi 19991 19992 fi 19993 19994 19995 if test "$HAVE_GETHOSTBYNAME" != "1"; then 19996 as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5 19997 fi 19998 19999 20000 curl_includes_winsock2="\ 20001 /* includes start */ 20002 #ifdef HAVE_WINDOWS_H 20003 # ifndef WIN32_LEAN_AND_MEAN 20004 # define WIN32_LEAN_AND_MEAN 20005 # endif 20006 # include <windows.h> 20007 # ifdef HAVE_WINSOCK2_H 20008 # include <winsock2.h> 20009 # else 20010 # ifdef HAVE_WINSOCK_H 20011 # include <winsock.h> 20012 # endif 20013 # endif 20014 #endif 20015 /* includes end */" 20016 20017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5 20018 $as_echo_n "checking for windows.h... " >&6; } 20019 if ${curl_cv_header_windows_h+:} false; then : 20020 $as_echo_n "(cached) " >&6 20021 else 20022 20023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20024 /* end confdefs.h. */ 20025 20026 20027 #undef inline 20028 #ifndef WIN32_LEAN_AND_MEAN 20029 #define WIN32_LEAN_AND_MEAN 20030 #endif 20031 #include <windows.h> 20032 20033 int main (void) 20034 { 20035 20036 #if defined(__CYGWIN__) || defined(__CEGCC__) 20037 HAVE_WINDOWS_H shall not be defined. 20038 #else 20039 int dummy=2*WINVER; 20040 #endif 20041 20042 ; 20043 return 0; 20044 } 20045 20046 _ACEOF 20047 if ac_fn_c_try_compile "$LINENO"; then : 20048 20049 curl_cv_header_windows_h="yes" 20050 20051 else 20052 20053 curl_cv_header_windows_h="no" 20054 20055 fi 20056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20057 20058 fi 20059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5 20060 $as_echo "$curl_cv_header_windows_h" >&6; } 20061 case "$curl_cv_header_windows_h" in 20062 yes) 20063 20064 cat >>confdefs.h <<_ACEOF 20065 #define HAVE_WINDOWS_H 1 20066 _ACEOF 20067 20068 ;; 20069 esac 20070 20071 20072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5 20073 $as_echo_n "checking for winsock.h... " >&6; } 20074 if ${curl_cv_header_winsock_h+:} false; then : 20075 $as_echo_n "(cached) " >&6 20076 else 20077 20078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20079 /* end confdefs.h. */ 20080 20081 20082 #undef inline 20083 #ifndef WIN32_LEAN_AND_MEAN 20084 #define WIN32_LEAN_AND_MEAN 20085 #endif 20086 #include <windows.h> 20087 #include <winsock.h> 20088 20089 int main (void) 20090 { 20091 20092 #if defined(__CYGWIN__) || defined(__CEGCC__) 20093 HAVE_WINSOCK_H shall not be defined. 20094 #else 20095 int dummy=WSACleanup(); 20096 #endif 20097 20098 ; 20099 return 0; 20100 } 20101 20102 _ACEOF 20103 if ac_fn_c_try_compile "$LINENO"; then : 20104 20105 curl_cv_header_winsock_h="yes" 20106 20107 else 20108 20109 curl_cv_header_winsock_h="no" 20110 20111 fi 20112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20113 20114 fi 20115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5 20116 $as_echo "$curl_cv_header_winsock_h" >&6; } 20117 case "$curl_cv_header_winsock_h" in 20118 yes) 20119 20120 cat >>confdefs.h <<_ACEOF 20121 #define HAVE_WINSOCK_H 1 20122 _ACEOF 20123 20124 ;; 20125 esac 20126 20127 20128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5 20129 $as_echo_n "checking for winsock2.h... " >&6; } 20130 if ${curl_cv_header_winsock2_h+:} false; then : 20131 $as_echo_n "(cached) " >&6 20132 else 20133 20134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20135 /* end confdefs.h. */ 20136 20137 20138 #undef inline 20139 #ifndef WIN32_LEAN_AND_MEAN 20140 #define WIN32_LEAN_AND_MEAN 20141 #endif 20142 #include <windows.h> 20143 #include <winsock2.h> 20144 20145 int main (void) 20146 { 20147 20148 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__) 20149 HAVE_WINSOCK2_H shall not be defined. 20150 #else 20151 int dummy=2*IPPROTO_ESP; 20152 #endif 20153 20154 ; 20155 return 0; 20156 } 20157 20158 _ACEOF 20159 if ac_fn_c_try_compile "$LINENO"; then : 20160 20161 curl_cv_header_winsock2_h="yes" 20162 20163 else 20164 20165 curl_cv_header_winsock2_h="no" 20166 20167 fi 20168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20169 20170 fi 20171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5 20172 $as_echo "$curl_cv_header_winsock2_h" >&6; } 20173 case "$curl_cv_header_winsock2_h" in 20174 yes) 20175 20176 cat >>confdefs.h <<_ACEOF 20177 #define HAVE_WINSOCK2_H 1 20178 _ACEOF 20179 20180 ;; 20181 esac 20182 20183 20184 20185 curl_includes_bsdsocket="\ 20186 /* includes start */ 20187 #ifdef HAVE_PROTO_BSDSOCKET_H 20188 # include <proto/bsdsocket.h> 20189 struct Library *SocketBase = NULL; 20190 #endif 20191 /* includes end */" 20192 for ac_header in proto/bsdsocket.h 20193 do : 20194 ac_fn_c_check_header_compile "$LINENO" "proto/bsdsocket.h" "ac_cv_header_proto_bsdsocket_h" " $curl_includes_bsdsocket 20195 " 20196 if test "x$ac_cv_header_proto_bsdsocket_h" = xyes; then : 20197 cat >>confdefs.h <<_ACEOF 20198 #define HAVE_PROTO_BSDSOCKET_H 1 20199 _ACEOF 20200 20201 fi 20202 20203 done 20204 20205 20206 20207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5 20208 $as_echo_n "checking for connect in libraries... " >&6; } 20209 tst_connect_save_LIBS="$LIBS" 20210 tst_connect_need_LIBS="unknown" 20211 for tst_lib in '' '-lsocket' ; do 20212 if test "$tst_connect_need_LIBS" = "unknown"; then 20213 LIBS="$tst_lib $tst_connect_save_LIBS" 20214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20215 /* end confdefs.h. */ 20216 20217 20218 $curl_includes_winsock2 20219 $curl_includes_bsdsocket 20220 #if !defined(HAVE_WINDOWS_H) && !defined(HAVE_PROTO_BSDSOCKET_H) 20221 int connect(int, void*, int); 20222 #endif 20223 20224 int main (void) 20225 { 20226 20227 if(0 != connect(0, 0, 0)) 20228 return 1; 20229 20230 ; 20231 return 0; 20232 } 20233 20234 _ACEOF 20235 if ac_fn_c_try_link "$LINENO"; then : 20236 20237 tst_connect_need_LIBS="$tst_lib" 20238 20239 fi 20240 rm -f core conftest.err conftest.$ac_objext \ 20241 conftest$ac_exeext conftest.$ac_ext 20242 fi 20243 done 20244 LIBS="$tst_connect_save_LIBS" 20245 # 20246 case X-"$tst_connect_need_LIBS" in 20247 X-unknown) 20248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5 20249 $as_echo "cannot find connect" >&6; } 20250 as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5 20251 ;; 20252 X-) 20253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20254 $as_echo "yes" >&6; } 20255 ;; 20256 *) 20257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5 20258 $as_echo "$tst_connect_need_LIBS" >&6; } 20259 LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS" 20260 ;; 20261 esac 20262 20263 20264 CURL_NETWORK_LIBS=$LIBS 20265 20266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 20267 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 20268 if ${ac_cv_header_time+:} false; then : 20269 $as_echo_n "(cached) " >&6 20270 else 20271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20272 /* end confdefs.h. */ 20273 #include <sys/types.h> 20274 #include <sys/time.h> 20275 #include <time.h> 20276 20277 int main (void) 20278 { 20279 if ((struct tm *) 0) 20280 return 0; 20281 ; 20282 return 0; 20283 } 20284 _ACEOF 20285 if ac_fn_c_try_compile "$LINENO"; then : 20286 ac_cv_header_time=yes 20287 else 20288 ac_cv_header_time=no 20289 fi 20290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20291 fi 20292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 20293 $as_echo "$ac_cv_header_time" >&6; } 20294 if test $ac_cv_header_time = yes; then 20295 20296 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 20297 20298 fi 20299 20300 20301 for ac_header in sys/types.h sys/time.h time.h 20302 do : 20303 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20304 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 20305 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20306 cat >>confdefs.h <<_ACEOF 20307 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20308 _ACEOF 20309 20310 fi 20311 20312 done 20313 20314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5 20315 $as_echo_n "checking for monotonic clock_gettime... " >&6; } 20316 # 20317 if test "x$dontwant_rt" = "xno" ; then 20318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20319 /* end confdefs.h. */ 20320 20321 20322 #ifdef HAVE_SYS_TYPES_H 20323 #include <sys/types.h> 20324 #endif 20325 #ifdef HAVE_SYS_TIME_H 20326 #include <sys/time.h> 20327 #ifdef TIME_WITH_SYS_TIME 20328 #include <time.h> 20329 #endif 20330 #else 20331 #ifdef HAVE_TIME_H 20332 #include <time.h> 20333 #endif 20334 #endif 20335 20336 int main (void) 20337 { 20338 20339 struct timespec ts; 20340 (void)clock_gettime(CLOCK_MONOTONIC, &ts); 20341 20342 ; 20343 return 0; 20344 } 20345 20346 _ACEOF 20347 if ac_fn_c_try_compile "$LINENO"; then : 20348 20349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20350 $as_echo "yes" >&6; } 20351 curl_func_clock_gettime="yes" 20352 20353 else 20354 20355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20356 $as_echo "no" >&6; } 20357 curl_func_clock_gettime="no" 20358 20359 fi 20360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20361 fi 20362 20363 20364 # 20365 if test "$curl_func_clock_gettime" = "yes"; then 20366 # 20367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5 20368 $as_echo_n "checking for clock_gettime in libraries... " >&6; } 20369 # 20370 curl_cv_save_LIBS="$LIBS" 20371 curl_cv_gclk_LIBS="unknown" 20372 # 20373 for x_xlibs in '' '-lrt' '-lposix4' ; do 20374 if test "$curl_cv_gclk_LIBS" = "unknown"; then 20375 if test -z "$x_xlibs"; then 20376 LIBS="$curl_cv_save_LIBS" 20377 else 20378 LIBS="$x_xlibs $curl_cv_save_LIBS" 20379 fi 20380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20381 /* end confdefs.h. */ 20382 20383 20384 #ifdef HAVE_SYS_TYPES_H 20385 #include <sys/types.h> 20386 #endif 20387 #ifdef HAVE_SYS_TIME_H 20388 #include <sys/time.h> 20389 #ifdef TIME_WITH_SYS_TIME 20390 #include <time.h> 20391 #endif 20392 #else 20393 #ifdef HAVE_TIME_H 20394 #include <time.h> 20395 #endif 20396 #endif 20397 20398 int main (void) 20399 { 20400 20401 struct timespec ts; 20402 (void)clock_gettime(CLOCK_MONOTONIC, &ts); 20403 20404 ; 20405 return 0; 20406 } 20407 20408 _ACEOF 20409 if ac_fn_c_try_link "$LINENO"; then : 20410 20411 curl_cv_gclk_LIBS="$x_xlibs" 20412 20413 fi 20414 rm -f core conftest.err conftest.$ac_objext \ 20415 conftest$ac_exeext conftest.$ac_ext 20416 fi 20417 done 20418 # 20419 LIBS="$curl_cv_save_LIBS" 20420 # 20421 case X-"$curl_cv_gclk_LIBS" in 20422 X-unknown) 20423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5 20424 $as_echo "cannot find clock_gettime" >&6; } 20425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5 20426 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;} 20427 curl_func_clock_gettime="no" 20428 ;; 20429 X-) 20430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5 20431 $as_echo "no additional lib required" >&6; } 20432 curl_func_clock_gettime="yes" 20433 ;; 20434 *) 20435 if test -z "$curl_cv_save_LIBS"; then 20436 LIBS="$curl_cv_gclk_LIBS" 20437 else 20438 LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS" 20439 fi 20440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5 20441 $as_echo "$curl_cv_gclk_LIBS" >&6; } 20442 curl_func_clock_gettime="yes" 20443 ;; 20444 esac 20445 # 20446 if test "x$cross_compiling" != "xyes" && 20447 test "$curl_func_clock_gettime" = "yes"; then 20448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5 20449 $as_echo_n "checking if monotonic clock_gettime works... " >&6; } 20450 20451 20452 old=$LD_LIBRARY_PATH 20453 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 20454 export LD_LIBRARY_PATH 20455 if test "$cross_compiling" = yes; then : 20456 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20458 as_fn_error $? "cannot run test program while cross compiling 20459 See \`config.log' for more details" "$LINENO" 5; } 20460 else 20461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20462 /* end confdefs.h. */ 20463 20464 20465 #ifdef HAVE_STDLIB_H 20466 #include <stdlib.h> 20467 #endif 20468 #ifdef HAVE_SYS_TYPES_H 20469 #include <sys/types.h> 20470 #endif 20471 #ifdef HAVE_SYS_TIME_H 20472 #include <sys/time.h> 20473 #ifdef TIME_WITH_SYS_TIME 20474 #include <time.h> 20475 #endif 20476 #else 20477 #ifdef HAVE_TIME_H 20478 #include <time.h> 20479 #endif 20480 #endif 20481 20482 int main (void) 20483 { 20484 20485 struct timespec ts; 20486 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts)) 20487 exit(0); 20488 else 20489 exit(1); 20490 20491 ; 20492 return 0; 20493 } 20494 20495 _ACEOF 20496 if ac_fn_c_try_run "$LINENO"; then : 20497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20498 $as_echo "yes" >&6; } 20499 20500 else 20501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20502 $as_echo "no" >&6; } 20503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5 20504 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;} 20505 curl_func_clock_gettime="no" 20506 LIBS="$curl_cv_save_LIBS" 20507 20508 fi 20509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20510 conftest.$ac_objext conftest.beam conftest.$ac_ext 20511 fi 20512 20513 LD_LIBRARY_PATH=$old # restore 20514 20515 fi 20516 # 20517 case "$curl_func_clock_gettime" in 20518 yes) 20519 20520 cat >>confdefs.h <<_ACEOF 20521 #define HAVE_CLOCK_GETTIME_MONOTONIC 1 20522 _ACEOF 20523 20524 ;; 20525 esac 20526 # 20527 fi 20528 # 20529 20530 20531 CURL_NETWORK_AND_TIME_LIBS=$LIBS 20532 20533 20534 20535 clean_CPPFLAGS=$CPPFLAGS 20536 clean_LDFLAGS=$LDFLAGS 20537 clean_LIBS=$LIBS 20538 ZLIB_LIBS="" 20539 20540 # Check whether --with-zlib was given. 20541 if test "${with_zlib+set}" = set; then : 20542 withval=$with_zlib; OPT_ZLIB="$withval" 20543 fi 20544 20545 20546 if test "$OPT_ZLIB" = "no" ; then 20547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5 20548 $as_echo "$as_me: WARNING: zlib disabled" >&2;} 20549 else 20550 if test "$OPT_ZLIB" = "yes" ; then 20551 OPT_ZLIB="" 20552 fi 20553 20554 if test -z "$OPT_ZLIB" ; then 20555 20556 if test -n "$PKG_CONFIG"; then 20557 PKGCONFIG="$PKG_CONFIG" 20558 else 20559 if test -n "$ac_tool_prefix"; then 20560 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 20561 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 20562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20563 $as_echo_n "checking for $ac_word... " >&6; } 20564 if ${ac_cv_path_PKGCONFIG+:} false; then : 20565 $as_echo_n "(cached) " >&6 20566 else 20567 case $PKGCONFIG in 20568 [\\/]* | ?:[\\/]*) 20569 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 20570 ;; 20571 *) 20572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20573 as_dummy="$PATH:/usr/bin:/usr/local/bin" 20574 for as_dir in $as_dummy 20575 do 20576 IFS=$as_save_IFS 20577 test -z "$as_dir" && as_dir=. 20578 for ac_exec_ext in '' $ac_executable_extensions; do 20579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20580 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 20581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20582 break 2 20583 fi 20584 done 20585 done 20586 IFS=$as_save_IFS 20587 20588 ;; 20589 esac 20590 fi 20591 PKGCONFIG=$ac_cv_path_PKGCONFIG 20592 if test -n "$PKGCONFIG"; then 20593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 20594 $as_echo "$PKGCONFIG" >&6; } 20595 else 20596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20597 $as_echo "no" >&6; } 20598 fi 20599 20600 20601 fi 20602 if test -z "$ac_cv_path_PKGCONFIG"; then 20603 ac_pt_PKGCONFIG=$PKGCONFIG 20604 # Extract the first word of "pkg-config", so it can be a program name with args. 20605 set dummy pkg-config; ac_word=$2 20606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20607 $as_echo_n "checking for $ac_word... " >&6; } 20608 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : 20609 $as_echo_n "(cached) " >&6 20610 else 20611 case $ac_pt_PKGCONFIG in 20612 [\\/]* | ?:[\\/]*) 20613 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 20614 ;; 20615 *) 20616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20617 as_dummy="$PATH:/usr/bin:/usr/local/bin" 20618 for as_dir in $as_dummy 20619 do 20620 IFS=$as_save_IFS 20621 test -z "$as_dir" && as_dir=. 20622 for ac_exec_ext in '' $ac_executable_extensions; do 20623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20624 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 20625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20626 break 2 20627 fi 20628 done 20629 done 20630 IFS=$as_save_IFS 20631 20632 ;; 20633 esac 20634 fi 20635 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 20636 if test -n "$ac_pt_PKGCONFIG"; then 20637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 20638 $as_echo "$ac_pt_PKGCONFIG" >&6; } 20639 else 20640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20641 $as_echo "no" >&6; } 20642 fi 20643 20644 if test "x$ac_pt_PKGCONFIG" = x; then 20645 PKGCONFIG="no" 20646 else 20647 case $cross_compiling:$ac_tool_warned in 20648 yes:) 20649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 20650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20651 ac_tool_warned=yes ;; 20652 esac 20653 PKGCONFIG=$ac_pt_PKGCONFIG 20654 fi 20655 else 20656 PKGCONFIG="$ac_cv_path_PKGCONFIG" 20657 fi 20658 20659 fi 20660 20661 if test "x$PKGCONFIG" != "xno"; then 20662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5 20663 $as_echo_n "checking for zlib options with pkg-config... " >&6; } 20664 itexists=` 20665 if test -n ""; then 20666 PKG_CONFIG_LIBDIR="" 20667 export PKG_CONFIG_LIBDIR 20668 fi 20669 $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1` 20670 20671 if test -z "$itexists"; then 20672 PKGCONFIG="no" 20673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20674 $as_echo "no" >&6; } 20675 else 20676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 20677 $as_echo "found" >&6; } 20678 fi 20679 fi 20680 20681 20682 if test "$PKGCONFIG" != "no" ; then 20683 LIBS="`$PKGCONFIG --libs-only-l zlib` $LIBS" 20684 LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`" 20685 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags-only-I zlib`" 20686 OPT_ZLIB="" 20687 HAVE_LIBZ="1" 20688 fi 20689 20690 if test -z "$HAVE_LIBZ"; then 20691 20692 20693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5 20694 $as_echo_n "checking for inflateEnd in -lz... " >&6; } 20695 if ${ac_cv_lib_z_inflateEnd+:} false; then : 20696 $as_echo_n "(cached) " >&6 20697 else 20698 ac_check_lib_save_LIBS=$LIBS 20699 LIBS="-lz $LIBS" 20700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20701 /* end confdefs.h. */ 20702 20703 20704 #ifdef __cplusplus 20705 extern "C" 20706 #endif 20707 char inflateEnd (); 20708 int main (void) 20709 { 20710 return inflateEnd (); 20711 ; 20712 return 0; 20713 } 20714 _ACEOF 20715 if ac_fn_c_try_link "$LINENO"; then : 20716 ac_cv_lib_z_inflateEnd=yes 20717 else 20718 ac_cv_lib_z_inflateEnd=no 20719 fi 20720 rm -f core conftest.err conftest.$ac_objext \ 20721 conftest$ac_exeext conftest.$ac_ext 20722 LIBS=$ac_check_lib_save_LIBS 20723 fi 20724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5 20725 $as_echo "$ac_cv_lib_z_inflateEnd" >&6; } 20726 if test "x$ac_cv_lib_z_inflateEnd" = xyes; then : 20727 HAVE_LIBZ="1" 20728 LIBS="-lz $LIBS" 20729 else 20730 OPT_ZLIB="/usr/local" 20731 fi 20732 20733 fi 20734 fi 20735 20736 if test -n "$OPT_ZLIB"; then 20737 CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include" 20738 LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff" 20739 fi 20740 20741 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 20742 if test "x$ac_cv_header_zlib_h" = xyes; then : 20743 20744 HAVE_ZLIB_H="1" 20745 if test "$HAVE_LIBZ" != "1"; then 20746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5 20747 $as_echo_n "checking for gzread in -lz... " >&6; } 20748 if ${ac_cv_lib_z_gzread+:} false; then : 20749 $as_echo_n "(cached) " >&6 20750 else 20751 ac_check_lib_save_LIBS=$LIBS 20752 LIBS="-lz $LIBS" 20753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20754 /* end confdefs.h. */ 20755 20756 20757 #ifdef __cplusplus 20758 extern "C" 20759 #endif 20760 char gzread (); 20761 int main (void) 20762 { 20763 return gzread (); 20764 ; 20765 return 0; 20766 } 20767 _ACEOF 20768 if ac_fn_c_try_link "$LINENO"; then : 20769 ac_cv_lib_z_gzread=yes 20770 else 20771 ac_cv_lib_z_gzread=no 20772 fi 20773 rm -f core conftest.err conftest.$ac_objext \ 20774 conftest$ac_exeext conftest.$ac_ext 20775 LIBS=$ac_check_lib_save_LIBS 20776 fi 20777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5 20778 $as_echo "$ac_cv_lib_z_gzread" >&6; } 20779 if test "x$ac_cv_lib_z_gzread" = xyes; then : 20780 20781 HAVE_LIBZ="1" 20782 LIBS="-lz $LIBS" 20783 20784 else 20785 CPPFLAGS=$clean_CPPFLAGS 20786 LDFLAGS=$clean_LDFLAGS 20787 fi 20788 20789 fi 20790 20791 else 20792 20793 CPPFLAGS=$clean_CPPFLAGS 20794 LDFLAGS=$clean_LDFLAGS 20795 20796 fi 20797 20798 20799 20800 if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1" 20801 then 20802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5 20803 $as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;} 20804 HAVE_LIBZ="" 20805 CPPFLAGS=$clean_CPPFLAGS 20806 LDFLAGS=$clean_LDFLAGS 20807 LIBS=$clean_LIBS 20808 elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1" 20809 then 20810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5 20811 $as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;} 20812 CPPFLAGS=$clean_CPPFLAGS 20813 LDFLAGS=$clean_LDFLAGS 20814 LIBS=$clean_LIBS 20815 elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1" 20816 then 20817 20818 20819 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h 20820 20821 20822 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h 20823 20824 20825 ZLIB_LIBS="-lz" 20826 LIBS="-lz $clean_LIBS" 20827 20828 AMFIXLIB="1" 20829 { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5 20830 $as_echo "$as_me: found both libz and libz.h header" >&6;} 20831 curl_zlib_msg="enabled" 20832 fi 20833 fi 20834 20835 if test x"$AMFIXLIB" = x1; then 20836 HAVE_LIBZ_TRUE= 20837 HAVE_LIBZ_FALSE='#' 20838 else 20839 HAVE_LIBZ_TRUE='#' 20840 HAVE_LIBZ_FALSE= 20841 fi 20842 20843 20844 20845 20846 20847 OPT_BROTLI=off 20848 20849 # Check whether --with-brotli was given. 20850 if test "${with_brotli+set}" = set; then : 20851 withval=$with_brotli; OPT_BROTLI=$withval 20852 fi 20853 20854 20855 if test X"$OPT_BROTLI" != Xno; then 20856 CLEANLDFLAGS="$LDFLAGS" 20857 CLEANCPPFLAGS="$CPPFLAGS" 20858 CLEANLIBS="$LIBS" 20859 20860 case "$OPT_BROTLI" in 20861 yes) 20862 20863 if test -n "$PKG_CONFIG"; then 20864 PKGCONFIG="$PKG_CONFIG" 20865 else 20866 if test -n "$ac_tool_prefix"; then 20867 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 20868 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 20869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20870 $as_echo_n "checking for $ac_word... " >&6; } 20871 if ${ac_cv_path_PKGCONFIG+:} false; then : 20872 $as_echo_n "(cached) " >&6 20873 else 20874 case $PKGCONFIG in 20875 [\\/]* | ?:[\\/]*) 20876 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 20877 ;; 20878 *) 20879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20880 as_dummy="$PATH:/usr/bin:/usr/local/bin" 20881 for as_dir in $as_dummy 20882 do 20883 IFS=$as_save_IFS 20884 test -z "$as_dir" && as_dir=. 20885 for ac_exec_ext in '' $ac_executable_extensions; do 20886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20887 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 20888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20889 break 2 20890 fi 20891 done 20892 done 20893 IFS=$as_save_IFS 20894 20895 ;; 20896 esac 20897 fi 20898 PKGCONFIG=$ac_cv_path_PKGCONFIG 20899 if test -n "$PKGCONFIG"; then 20900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 20901 $as_echo "$PKGCONFIG" >&6; } 20902 else 20903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20904 $as_echo "no" >&6; } 20905 fi 20906 20907 20908 fi 20909 if test -z "$ac_cv_path_PKGCONFIG"; then 20910 ac_pt_PKGCONFIG=$PKGCONFIG 20911 # Extract the first word of "pkg-config", so it can be a program name with args. 20912 set dummy pkg-config; ac_word=$2 20913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20914 $as_echo_n "checking for $ac_word... " >&6; } 20915 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : 20916 $as_echo_n "(cached) " >&6 20917 else 20918 case $ac_pt_PKGCONFIG in 20919 [\\/]* | ?:[\\/]*) 20920 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 20921 ;; 20922 *) 20923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20924 as_dummy="$PATH:/usr/bin:/usr/local/bin" 20925 for as_dir in $as_dummy 20926 do 20927 IFS=$as_save_IFS 20928 test -z "$as_dir" && as_dir=. 20929 for ac_exec_ext in '' $ac_executable_extensions; do 20930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20931 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 20932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20933 break 2 20934 fi 20935 done 20936 done 20937 IFS=$as_save_IFS 20938 20939 ;; 20940 esac 20941 fi 20942 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 20943 if test -n "$ac_pt_PKGCONFIG"; then 20944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 20945 $as_echo "$ac_pt_PKGCONFIG" >&6; } 20946 else 20947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20948 $as_echo "no" >&6; } 20949 fi 20950 20951 if test "x$ac_pt_PKGCONFIG" = x; then 20952 PKGCONFIG="no" 20953 else 20954 case $cross_compiling:$ac_tool_warned in 20955 yes:) 20956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 20957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20958 ac_tool_warned=yes ;; 20959 esac 20960 PKGCONFIG=$ac_pt_PKGCONFIG 20961 fi 20962 else 20963 PKGCONFIG="$ac_cv_path_PKGCONFIG" 20964 fi 20965 20966 fi 20967 20968 if test "x$PKGCONFIG" != "xno"; then 20969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbrotlidec options with pkg-config" >&5 20970 $as_echo_n "checking for libbrotlidec options with pkg-config... " >&6; } 20971 itexists=` 20972 if test -n ""; then 20973 PKG_CONFIG_LIBDIR="" 20974 export PKG_CONFIG_LIBDIR 20975 fi 20976 $PKGCONFIG --exists libbrotlidec >/dev/null 2>&1 && echo 1` 20977 20978 if test -z "$itexists"; then 20979 PKGCONFIG="no" 20980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20981 $as_echo "no" >&6; } 20982 else 20983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 20984 $as_echo "found" >&6; } 20985 fi 20986 fi 20987 20988 20989 if test "$PKGCONFIG" != "no" ; then 20990 LIB_BROTLI=`$PKGCONFIG --libs-only-l libbrotlidec` 20991 LD_BROTLI=`$PKGCONFIG --libs-only-L libbrotlidec` 20992 CPP_BROTLI=`$PKGCONFIG --cflags-only-I libbrotlidec` 20993 version=`$PKGCONFIG --modversion libbrotlidec` 20994 DIR_BROTLI=`echo $LD_BROTLI | $SED -e 's/-L//'` 20995 fi 20996 20997 ;; 20998 off) 20999 ;; 21000 *) 21001 PREFIX_BROTLI=$OPT_BROTLI 21002 ;; 21003 esac 21004 21005 if test -n "$PREFIX_BROTLI"; then 21006 LIB_BROTLI="-lbrotlidec" 21007 LD_BROTLI=-L${PREFIX_BROTLI}/lib$libsuff 21008 CPP_BROTLI=-I${PREFIX_BROTLI}/include 21009 DIR_BROTLI=${PREFIX_BROTLI}/lib$libsuff 21010 fi 21011 21012 LDFLAGS="$LDFLAGS $LD_BROTLI" 21013 CPPFLAGS="$CPPFLAGS $CPP_BROTLI" 21014 LIBS="$LIB_BROTLI $LIBS" 21015 21016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BrotliDecoderDecompress in -lbrotlidec" >&5 21017 $as_echo_n "checking for BrotliDecoderDecompress in -lbrotlidec... " >&6; } 21018 if ${ac_cv_lib_brotlidec_BrotliDecoderDecompress+:} false; then : 21019 $as_echo_n "(cached) " >&6 21020 else 21021 ac_check_lib_save_LIBS=$LIBS 21022 LIBS="-lbrotlidec $LIBS" 21023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21024 /* end confdefs.h. */ 21025 21026 21027 #ifdef __cplusplus 21028 extern "C" 21029 #endif 21030 char BrotliDecoderDecompress (); 21031 int main (void) 21032 { 21033 return BrotliDecoderDecompress (); 21034 ; 21035 return 0; 21036 } 21037 _ACEOF 21038 if ac_fn_c_try_link "$LINENO"; then : 21039 ac_cv_lib_brotlidec_BrotliDecoderDecompress=yes 21040 else 21041 ac_cv_lib_brotlidec_BrotliDecoderDecompress=no 21042 fi 21043 rm -f core conftest.err conftest.$ac_objext \ 21044 conftest$ac_exeext conftest.$ac_ext 21045 LIBS=$ac_check_lib_save_LIBS 21046 fi 21047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&5 21048 $as_echo "$ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&6; } 21049 if test "x$ac_cv_lib_brotlidec_BrotliDecoderDecompress" = xyes; then : 21050 cat >>confdefs.h <<_ACEOF 21051 #define HAVE_LIBBROTLIDEC 1 21052 _ACEOF 21053 21054 LIBS="-lbrotlidec $LIBS" 21055 21056 fi 21057 21058 21059 for ac_header in brotli/decode.h 21060 do : 21061 ac_fn_c_check_header_mongrel "$LINENO" "brotli/decode.h" "ac_cv_header_brotli_decode_h" "$ac_includes_default" 21062 if test "x$ac_cv_header_brotli_decode_h" = xyes; then : 21063 cat >>confdefs.h <<_ACEOF 21064 #define HAVE_BROTLI_DECODE_H 1 21065 _ACEOF 21066 curl_brotli_msg="enabled (libbrotlidec)" 21067 HAVE_BROTLI=1 21068 21069 $as_echo "#define HAVE_BROTLI 1" >>confdefs.h 21070 21071 HAVE_BROTLI=1 21072 21073 21074 fi 21075 21076 done 21077 21078 21079 if test X"$OPT_BROTLI" != Xoff && 21080 test "$HAVE_BROTLI" != "1"; then 21081 as_fn_error $? "BROTLI libs and/or directories were not found where specified!" "$LINENO" 5 21082 fi 21083 21084 if test "$HAVE_BROTLI" = "1"; then 21085 if test -n "$DIR_BROTLI"; then 21086 21087 if test "x$cross_compiling" != "xyes"; then 21088 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_BROTLI" 21089 export CURL_LIBRARY_PATH 21090 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&5 21091 $as_echo "$as_me: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&6;} 21092 fi 21093 fi 21094 else 21095 LDFLAGS=$CLEANLDFLAGS 21096 CPPFLAGS=$CLEANCPPFLAGS 21097 LIBS=$CLEANLIBS 21098 fi 21099 fi 21100 21101 21102 LDAPLIBNAME="" 21103 21104 # Check whether --with-ldap-lib was given. 21105 if test "${with_ldap_lib+set}" = set; then : 21106 withval=$with_ldap_lib; LDAPLIBNAME="$withval" 21107 fi 21108 21109 21110 LBERLIBNAME="" 21111 21112 # Check whether --with-lber-lib was given. 21113 if test "${with_lber_lib+set}" = set; then : 21114 withval=$with_lber_lib; LBERLIBNAME="$withval" 21115 fi 21116 21117 21118 if test x$CURL_DISABLE_LDAP != x1 ; then 21119 21120 21121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5 21122 $as_echo_n "checking for lber.h... " >&6; } 21123 if ${curl_cv_header_lber_h+:} false; then : 21124 $as_echo_n "(cached) " >&6 21125 else 21126 21127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21128 /* end confdefs.h. */ 21129 21130 21131 #undef inline 21132 #ifdef HAVE_WINDOWS_H 21133 #ifndef WIN32_LEAN_AND_MEAN 21134 #define WIN32_LEAN_AND_MEAN 21135 #endif 21136 #include <windows.h> 21137 #else 21138 #ifdef HAVE_SYS_TYPES_H 21139 #include <sys/types.h> 21140 #endif 21141 #endif 21142 #ifndef NULL 21143 #define NULL (void *)0 21144 #endif 21145 #include <lber.h> 21146 21147 int main (void) 21148 { 21149 21150 BerValue *bvp = NULL; 21151 BerElement *bep = ber_init(bvp); 21152 ber_free(bep, 1); 21153 21154 ; 21155 return 0; 21156 } 21157 21158 _ACEOF 21159 if ac_fn_c_try_compile "$LINENO"; then : 21160 21161 curl_cv_header_lber_h="yes" 21162 21163 else 21164 21165 curl_cv_header_lber_h="no" 21166 21167 fi 21168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21169 21170 fi 21171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5 21172 $as_echo "$curl_cv_header_lber_h" >&6; } 21173 if test "$curl_cv_header_lber_h" = "yes"; then 21174 21175 cat >>confdefs.h <<_ACEOF 21176 #define HAVE_LBER_H 1 21177 _ACEOF 21178 21179 # 21180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21181 /* end confdefs.h. */ 21182 21183 21184 #undef inline 21185 #ifdef HAVE_WINDOWS_H 21186 #ifndef WIN32_LEAN_AND_MEAN 21187 #define WIN32_LEAN_AND_MEAN 21188 #endif 21189 #include <windows.h> 21190 #else 21191 #ifdef HAVE_SYS_TYPES_H 21192 #include <sys/types.h> 21193 #endif 21194 #endif 21195 #ifndef NULL 21196 #define NULL (void *)0 21197 #endif 21198 #ifndef LDAP_DEPRECATED 21199 #define LDAP_DEPRECATED 1 21200 #endif 21201 #include <ldap.h> 21202 21203 int main (void) 21204 { 21205 21206 BerValue *bvp = NULL; 21207 BerElement *bep = ber_init(bvp); 21208 ber_free(bep, 1); 21209 21210 ; 21211 return 0; 21212 } 21213 21214 _ACEOF 21215 if ac_fn_c_try_compile "$LINENO"; then : 21216 21217 curl_cv_need_header_lber_h="no" 21218 21219 else 21220 21221 curl_cv_need_header_lber_h="yes" 21222 21223 fi 21224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21225 # 21226 case "$curl_cv_need_header_lber_h" in 21227 yes) 21228 21229 cat >>confdefs.h <<_ACEOF 21230 #define NEED_LBER_H 1 21231 _ACEOF 21232 21233 ;; 21234 esac 21235 fi 21236 21237 21238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5 21239 $as_echo_n "checking for ldap.h... " >&6; } 21240 if ${curl_cv_header_ldap_h+:} false; then : 21241 $as_echo_n "(cached) " >&6 21242 else 21243 21244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21245 /* end confdefs.h. */ 21246 21247 21248 #undef inline 21249 #ifdef HAVE_WINDOWS_H 21250 #ifndef WIN32_LEAN_AND_MEAN 21251 #define WIN32_LEAN_AND_MEAN 21252 #endif 21253 #include <windows.h> 21254 #else 21255 #ifdef HAVE_SYS_TYPES_H 21256 #include <sys/types.h> 21257 #endif 21258 #endif 21259 #ifndef LDAP_DEPRECATED 21260 #define LDAP_DEPRECATED 1 21261 #endif 21262 #ifdef NEED_LBER_H 21263 #include <lber.h> 21264 #endif 21265 #include <ldap.h> 21266 21267 int main (void) 21268 { 21269 21270 LDAP *ldp = ldap_init("dummy", LDAP_PORT); 21271 int res = ldap_unbind(ldp); 21272 21273 ; 21274 return 0; 21275 } 21276 21277 _ACEOF 21278 if ac_fn_c_try_compile "$LINENO"; then : 21279 21280 curl_cv_header_ldap_h="yes" 21281 21282 else 21283 21284 curl_cv_header_ldap_h="no" 21285 21286 fi 21287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21288 21289 fi 21290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5 21291 $as_echo "$curl_cv_header_ldap_h" >&6; } 21292 case "$curl_cv_header_ldap_h" in 21293 yes) 21294 21295 cat >>confdefs.h <<_ACEOF 21296 #define HAVE_LDAP_H 1 21297 _ACEOF 21298 21299 ;; 21300 esac 21301 21302 21303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5 21304 $as_echo_n "checking for ldapssl.h... " >&6; } 21305 if ${curl_cv_header_ldapssl_h+:} false; then : 21306 $as_echo_n "(cached) " >&6 21307 else 21308 21309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21310 /* end confdefs.h. */ 21311 21312 21313 #undef inline 21314 #ifdef HAVE_WINDOWS_H 21315 #ifndef WIN32_LEAN_AND_MEAN 21316 #define WIN32_LEAN_AND_MEAN 21317 #endif 21318 #include <windows.h> 21319 #else 21320 #ifdef HAVE_SYS_TYPES_H 21321 #include <sys/types.h> 21322 #endif 21323 #endif 21324 #ifndef NULL 21325 #define NULL (void *)0 21326 #endif 21327 #ifndef LDAP_DEPRECATED 21328 #define LDAP_DEPRECATED 1 21329 #endif 21330 #ifdef NEED_LBER_H 21331 #include <lber.h> 21332 #endif 21333 #ifdef HAVE_LDAP_H 21334 #include <ldap.h> 21335 #endif 21336 #include <ldapssl.h> 21337 21338 int main (void) 21339 { 21340 21341 char *cert_label = NULL; 21342 LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label); 21343 21344 ; 21345 return 0; 21346 } 21347 21348 _ACEOF 21349 if ac_fn_c_try_compile "$LINENO"; then : 21350 21351 curl_cv_header_ldapssl_h="yes" 21352 21353 else 21354 21355 curl_cv_header_ldapssl_h="no" 21356 21357 fi 21358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21359 21360 fi 21361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldapssl_h" >&5 21362 $as_echo "$curl_cv_header_ldapssl_h" >&6; } 21363 case "$curl_cv_header_ldapssl_h" in 21364 yes) 21365 21366 cat >>confdefs.h <<_ACEOF 21367 #define HAVE_LDAPSSL_H 1 21368 _ACEOF 21369 21370 ;; 21371 esac 21372 21373 21374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5 21375 $as_echo_n "checking for ldap_ssl.h... " >&6; } 21376 if ${curl_cv_header_ldap_ssl_h+:} false; then : 21377 $as_echo_n "(cached) " >&6 21378 else 21379 21380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21381 /* end confdefs.h. */ 21382 21383 21384 #undef inline 21385 #ifdef HAVE_WINDOWS_H 21386 #ifndef WIN32_LEAN_AND_MEAN 21387 #define WIN32_LEAN_AND_MEAN 21388 #endif 21389 #include <windows.h> 21390 #else 21391 #ifdef HAVE_SYS_TYPES_H 21392 #include <sys/types.h> 21393 #endif 21394 #endif 21395 #ifndef LDAP_DEPRECATED 21396 #define LDAP_DEPRECATED 1 21397 #endif 21398 #ifdef NEED_LBER_H 21399 #include <lber.h> 21400 #endif 21401 #ifdef HAVE_LDAP_H 21402 #include <ldap.h> 21403 #endif 21404 #include <ldap_ssl.h> 21405 21406 int main (void) 21407 { 21408 21409 LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1); 21410 21411 ; 21412 return 0; 21413 } 21414 21415 _ACEOF 21416 if ac_fn_c_try_compile "$LINENO"; then : 21417 21418 curl_cv_header_ldap_ssl_h="yes" 21419 21420 else 21421 21422 curl_cv_header_ldap_ssl_h="no" 21423 21424 fi 21425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21426 21427 fi 21428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5 21429 $as_echo "$curl_cv_header_ldap_ssl_h" >&6; } 21430 case "$curl_cv_header_ldap_ssl_h" in 21431 yes) 21432 21433 cat >>confdefs.h <<_ACEOF 21434 #define HAVE_LDAP_SSL_H 1 21435 _ACEOF 21436 21437 ;; 21438 esac 21439 21440 21441 if test -z "$LDAPLIBNAME" ; then 21442 if test "$curl_cv_native_windows" = "yes"; then 21443 LDAPLIBNAME="wldap32" 21444 LBERLIBNAME="no" 21445 fi 21446 fi 21447 21448 if test "$LDAPLIBNAME" ; then 21449 as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh` 21450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5 21451 $as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; } 21452 if eval \${$as_ac_Lib+:} false; then : 21453 $as_echo_n "(cached) " >&6 21454 else 21455 ac_check_lib_save_LIBS=$LIBS 21456 LIBS="-l"$LDAPLIBNAME" $LIBS" 21457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21458 /* end confdefs.h. */ 21459 21460 21461 #ifdef __cplusplus 21462 extern "C" 21463 #endif 21464 char ldap_init (); 21465 int main (void) 21466 { 21467 return ldap_init (); 21468 ; 21469 return 0; 21470 } 21471 _ACEOF 21472 if ac_fn_c_try_link "$LINENO"; then : 21473 eval "$as_ac_Lib=yes" 21474 else 21475 eval "$as_ac_Lib=no" 21476 fi 21477 rm -f core conftest.err conftest.$ac_objext \ 21478 conftest$ac_exeext conftest.$ac_ext 21479 LIBS=$ac_check_lib_save_LIBS 21480 fi 21481 eval ac_res=\$$as_ac_Lib 21482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 21483 $as_echo "$ac_res" >&6; } 21484 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 21485 cat >>confdefs.h <<_ACEOF 21486 #define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1 21487 _ACEOF 21488 21489 LIBS="-l"$LDAPLIBNAME" $LIBS" 21490 21491 else 21492 21493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5 21494 $as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;} 21495 21496 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h 21497 21498 CURL_DISABLE_LDAP=1 21499 21500 21501 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h 21502 21503 CURL_DISABLE_LDAPS=1 21504 21505 fi 21506 21507 else 21508 21509 # 21510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5 21511 $as_echo_n "checking for LDAP libraries... " >&6; } 21512 # 21513 u_libs="" 21514 # 21515 21516 # 21517 curl_cv_save_LIBS="$LIBS" 21518 curl_cv_ldap_LIBS="unknown" 21519 # 21520 for x_nlibs in '' "$u_libs" \ 21521 '-lldap' \ 21522 '-lldap -llber' \ 21523 '-llber -lldap' \ 21524 '-lldapssl -lldapx -lldapsdk' \ 21525 '-lldapsdk -lldapx -lldapssl' \ 21526 '-lldap -llber -lssl -lcrypto' ; do 21527 21528 if test "$curl_cv_ldap_LIBS" = "unknown"; then 21529 if test -z "$x_nlibs"; then 21530 LIBS="$curl_cv_save_LIBS" 21531 else 21532 LIBS="$x_nlibs $curl_cv_save_LIBS" 21533 fi 21534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21535 /* end confdefs.h. */ 21536 21537 21538 #undef inline 21539 #ifdef HAVE_WINDOWS_H 21540 #ifndef WIN32_LEAN_AND_MEAN 21541 #define WIN32_LEAN_AND_MEAN 21542 #endif 21543 #include <windows.h> 21544 #else 21545 #ifdef HAVE_SYS_TYPES_H 21546 #include <sys/types.h> 21547 #endif 21548 #endif 21549 #ifndef NULL 21550 #define NULL (void *)0 21551 #endif 21552 #ifndef LDAP_DEPRECATED 21553 #define LDAP_DEPRECATED 1 21554 #endif 21555 #ifdef NEED_LBER_H 21556 #include <lber.h> 21557 #endif 21558 #ifdef HAVE_LDAP_H 21559 #include <ldap.h> 21560 #endif 21561 21562 int main (void) 21563 { 21564 21565 BerValue *bvp = NULL; 21566 BerElement *bep = ber_init(bvp); 21567 LDAP *ldp = ldap_init("dummy", LDAP_PORT); 21568 int res = ldap_unbind(ldp); 21569 ber_free(bep, 1); 21570 21571 ; 21572 return 0; 21573 } 21574 21575 _ACEOF 21576 if ac_fn_c_try_link "$LINENO"; then : 21577 21578 curl_cv_ldap_LIBS="$x_nlibs" 21579 21580 fi 21581 rm -f core conftest.err conftest.$ac_objext \ 21582 conftest$ac_exeext conftest.$ac_ext 21583 fi 21584 done 21585 # 21586 LIBS="$curl_cv_save_LIBS" 21587 # 21588 case X-"$curl_cv_ldap_LIBS" in 21589 X-unknown) 21590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5 21591 $as_echo "cannot find LDAP libraries" >&6; } 21592 ;; 21593 X-) 21594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5 21595 $as_echo "no additional lib required" >&6; } 21596 ;; 21597 *) 21598 if test -z "$curl_cv_save_LIBS"; then 21599 LIBS="$curl_cv_ldap_LIBS" 21600 else 21601 LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS" 21602 fi 21603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5 21604 $as_echo "$curl_cv_ldap_LIBS" >&6; } 21605 ;; 21606 esac 21607 # 21608 21609 case X-"$curl_cv_ldap_LIBS" in 21610 X-unknown) 21611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5 21612 $as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;} 21613 21614 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h 21615 21616 CURL_DISABLE_LDAP=1 21617 21618 21619 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h 21620 21621 CURL_DISABLE_LDAPS=1 21622 21623 ;; 21624 esac 21625 fi 21626 fi 21627 21628 if test x$CURL_DISABLE_LDAP != x1 ; then 21629 21630 if test "$LBERLIBNAME" ; then 21631 if test "$LBERLIBNAME" != "no" ; then 21632 as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh` 21633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5 21634 $as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; } 21635 if eval \${$as_ac_Lib+:} false; then : 21636 $as_echo_n "(cached) " >&6 21637 else 21638 ac_check_lib_save_LIBS=$LIBS 21639 LIBS="-l"$LBERLIBNAME" $LIBS" 21640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21641 /* end confdefs.h. */ 21642 21643 21644 #ifdef __cplusplus 21645 extern "C" 21646 #endif 21647 char ber_free (); 21648 int main (void) 21649 { 21650 return ber_free (); 21651 ; 21652 return 0; 21653 } 21654 _ACEOF 21655 if ac_fn_c_try_link "$LINENO"; then : 21656 eval "$as_ac_Lib=yes" 21657 else 21658 eval "$as_ac_Lib=no" 21659 fi 21660 rm -f core conftest.err conftest.$ac_objext \ 21661 conftest$ac_exeext conftest.$ac_ext 21662 LIBS=$ac_check_lib_save_LIBS 21663 fi 21664 eval ac_res=\$$as_ac_Lib 21665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 21666 $as_echo "$ac_res" >&6; } 21667 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 21668 cat >>confdefs.h <<_ACEOF 21669 #define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1 21670 _ACEOF 21671 21672 LIBS="-l"$LBERLIBNAME" $LIBS" 21673 21674 else 21675 21676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5 21677 $as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;} 21678 21679 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h 21680 21681 CURL_DISABLE_LDAP=1 21682 21683 21684 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h 21685 21686 CURL_DISABLE_LDAPS=1 21687 21688 fi 21689 21690 fi 21691 fi 21692 fi 21693 21694 if test x$CURL_DISABLE_LDAP != x1 ; then 21695 for ac_func in ldap_url_parse ldap_init_fd 21696 do : 21697 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 21698 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 21699 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 21700 cat >>confdefs.h <<_ACEOF 21701 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 21702 _ACEOF 21703 21704 fi 21705 done 21706 21707 21708 if test "$LDAPLIBNAME" = "wldap32"; then 21709 curl_ldap_msg="enabled (winldap)" 21710 21711 $as_echo "#define USE_WIN32_LDAP 1" >>confdefs.h 21712 21713 else 21714 curl_ldap_msg="enabled (OpenLDAP)" 21715 if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then 21716 21717 $as_echo "#define USE_OPENLDAP 1" >>confdefs.h 21718 21719 USE_OPENLDAP=1 21720 21721 fi 21722 fi 21723 fi 21724 21725 if test x$CURL_DISABLE_LDAPS != x1 ; then 21726 curl_ldaps_msg="enabled" 21727 fi 21728 21729 21730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5 21731 $as_echo_n "checking whether to enable IPv6... " >&6; } 21732 # Check whether --enable-ipv6 was given. 21733 if test "${enable_ipv6+set}" = set; then : 21734 enableval=$enable_ipv6; case "$enableval" in 21735 no) 21736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21737 $as_echo "no" >&6; } 21738 ipv6=no 21739 ;; 21740 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21741 $as_echo "yes" >&6; } 21742 ipv6=yes 21743 ;; 21744 esac 21745 else 21746 if test "$cross_compiling" = yes; then : 21747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21748 $as_echo "yes" >&6; } 21749 ipv6=yes 21750 21751 else 21752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21753 /* end confdefs.h. */ 21754 /* is AF_INET6 available? */ 21755 #include <sys/types.h> 21756 #ifdef HAVE_WINSOCK2_H 21757 #include <winsock2.h> 21758 #else 21759 #include <sys/socket.h> 21760 #endif 21761 #include <stdlib.h> /* for exit() */ 21762 main() 21763 { 21764 if (socket(AF_INET6, SOCK_STREAM, 0) < 0) 21765 exit(1); 21766 else 21767 exit(0); 21768 } 21769 21770 _ACEOF 21771 if ac_fn_c_try_run "$LINENO"; then : 21772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21773 $as_echo "yes" >&6; } 21774 ipv6=yes 21775 else 21776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21777 $as_echo "no" >&6; } 21778 ipv6=no 21779 fi 21780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21781 conftest.$ac_objext conftest.beam conftest.$ac_ext 21782 fi 21783 21784 fi 21785 21786 21787 if test "$ipv6" = "yes"; then 21788 curl_ipv6_msg="enabled" 21789 fi 21790 21791 # Check if struct sockaddr_in6 have sin6_scope_id member 21792 if test "$ipv6" = yes; then 21793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5 21794 $as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; } 21795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21796 /* end confdefs.h. */ 21797 21798 #include <sys/types.h> 21799 #ifdef HAVE_WINSOCK2_H 21800 #include <winsock2.h> 21801 #include <ws2tcpip.h> 21802 #else 21803 #include <netinet/in.h> 21804 #if defined (__TANDEM) 21805 # include <netinet/in6.h> 21806 #endif 21807 #endif 21808 int main (void) 21809 { 21810 struct sockaddr_in6 s; s.sin6_scope_id = 0; 21811 ; 21812 return 0; 21813 } 21814 _ACEOF 21815 if ac_fn_c_try_compile "$LINENO"; then : 21816 have_sin6_scope_id=yes 21817 fi 21818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21819 if test "$have_sin6_scope_id" = yes; then 21820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21821 $as_echo "yes" >&6; } 21822 21823 $as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h 21824 21825 else 21826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21827 $as_echo "no" >&6; } 21828 fi 21829 fi 21830 21831 21832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5 21833 $as_echo_n "checking if argv can be written to... " >&6; } 21834 21835 21836 old=$LD_LIBRARY_PATH 21837 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old 21838 export LD_LIBRARY_PATH 21839 if test "$cross_compiling" = yes; then : 21840 curl_cv_writable_argv=cross 21841 21842 else 21843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21844 /* end confdefs.h. */ 21845 21846 int main(int argc, char ** argv) { 21847 argv00 = ' '; 21848 return (argv00 == ' ')?0:1; 21849 } 21850 21851 _ACEOF 21852 if ac_fn_c_try_run "$LINENO"; then : 21853 curl_cv_writable_argv=yes 21854 21855 else 21856 curl_cv_writable_argv=no 21857 21858 fi 21859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21860 conftest.$ac_objext conftest.beam conftest.$ac_ext 21861 fi 21862 21863 LD_LIBRARY_PATH=$old # restore 21864 21865 case $curl_cv_writable_argv in 21866 yes) 21867 21868 $as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h 21869 21870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21871 $as_echo "yes" >&6; } 21872 ;; 21873 no) 21874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21875 $as_echo "no" >&6; } 21876 ;; 21877 *) 21878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21879 $as_echo "no" >&6; } 21880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5 21881 $as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;} 21882 ;; 21883 esac 21884 21885 21886 21887 GSSAPI_ROOT="/usr" 21888 21889 # Check whether --with-gssapi-includes was given. 21890 if test "${with_gssapi_includes+set}" = set; then : 21891 withval=$with_gssapi_includes; GSSAPI_INCS="-I$withval" 21892 want_gss="yes" 21893 21894 fi 21895 21896 21897 21898 # Check whether --with-gssapi-libs was given. 21899 if test "${with_gssapi_libs+set}" = set; then : 21900 withval=$with_gssapi_libs; GSSAPI_LIB_DIR="-L$withval" 21901 want_gss="yes" 21902 21903 fi 21904 21905 21906 21907 # Check whether --with-gssapi was given. 21908 if test "${with_gssapi+set}" = set; then : 21909 withval=$with_gssapi; 21910 GSSAPI_ROOT="$withval" 21911 if test x"$GSSAPI_ROOT" != xno; then 21912 want_gss="yes" 21913 if test x"$GSSAPI_ROOT" = xyes; then 21914 GSSAPI_ROOT="/usr" 21915 fi 21916 fi 21917 21918 fi 21919 21920 21921 : ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"} 21922 21923 save_CPPFLAGS="$CPPFLAGS" 21924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5 21925 $as_echo_n "checking if GSS-API support is requested... " >&6; } 21926 if test x"$want_gss" = xyes; then 21927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21928 $as_echo "yes" >&6; } 21929 21930 if test -z "$GSSAPI_INCS"; then 21931 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then 21932 GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi` 21933 elif test -f "$KRB5CONFIG"; then 21934 GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi` 21935 elif test "$GSSAPI_ROOT" != "yes"; then 21936 GSSAPI_INCS="-I$GSSAPI_ROOT/include" 21937 fi 21938 fi 21939 21940 CPPFLAGS="$CPPFLAGS $GSSAPI_INCS" 21941 21942 ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default" 21943 if test "x$ac_cv_header_gss_h" = xyes; then : 21944 21945 21946 $as_echo "#define HAVE_GSSGNU 1" >>confdefs.h 21947 21948 gnu_gss=yes 21949 21950 else 21951 21952 for ac_header in gssapi/gssapi.h 21953 do : 21954 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default" 21955 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then : 21956 cat >>confdefs.h <<_ACEOF 21957 #define HAVE_GSSAPI_GSSAPI_H 1 21958 _ACEOF 21959 21960 else 21961 not_mit=1 21962 fi 21963 21964 done 21965 21966 for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h 21967 do : 21968 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 21969 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 21970 $ac_includes_default 21971 #ifdef HAVE_GSSAPI_GSSAPI_H 21972 #include <gssapi/gssapi.h> 21973 #endif 21974 21975 " 21976 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 21977 cat >>confdefs.h <<_ACEOF 21978 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 21979 _ACEOF 21980 21981 else 21982 not_mit=1 21983 fi 21984 21985 done 21986 21987 if test "x$not_mit" = "x1"; then 21988 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" 21989 if test "x$ac_cv_header_gssapi_h" = xyes; then : 21990 21991 21992 $as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h 21993 21994 21995 else 21996 21997 want_gss=no 21998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5 21999 $as_echo "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;} 22000 22001 22002 fi 22003 22004 22005 else 22006 22007 $as_echo "#define HAVE_GSSMIT 1" >>confdefs.h 22008 22009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5 22010 $as_echo_n "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; } 22011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22012 /* end confdefs.h. */ 22013 22014 22015 #include <gssapi/gssapi.h> 22016 #include <gssapi/gssapi_generic.h> 22017 #include <gssapi/gssapi_krb5.h> 22018 22019 int main (void) 22020 { 22021 22022 gss_import_name( 22023 (OM_uint32 *)0, 22024 (gss_buffer_t)0, 22025 GSS_C_NT_HOSTBASED_SERVICE, 22026 (gss_name_t *)0); 22027 22028 ; 22029 return 0; 22030 } 22031 22032 _ACEOF 22033 if ac_fn_c_try_compile "$LINENO"; then : 22034 22035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22036 $as_echo "yes" >&6; } 22037 22038 else 22039 22040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22041 $as_echo "no" >&6; } 22042 22043 $as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h 22044 22045 22046 fi 22047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22048 fi 22049 22050 22051 fi 22052 22053 22054 else 22055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22056 $as_echo "no" >&6; } 22057 fi 22058 if test x"$want_gss" = xyes; then 22059 22060 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h 22061 22062 HAVE_GSSAPI=1 22063 curl_gss_msg="enabled (MIT Kerberos/Heimdal)" 22064 22065 if test -n "$gnu_gss"; then 22066 curl_gss_msg="enabled (GNU GSS)" 22067 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR" 22068 LIBS="-lgss $LIBS" 22069 elif test -z "$GSSAPI_LIB_DIR"; then 22070 case $host in 22071 *-*-darwin*) 22072 LIBS="-lgssapi_krb5 -lresolv $LIBS" 22073 ;; 22074 *) 22075 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then 22076 gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi` 22077 LIBS="$gss_libs $LIBS" 22078 elif test -f "$KRB5CONFIG"; then 22079 gss_libs=`$KRB5CONFIG --libs gssapi` 22080 LIBS="$gss_libs $LIBS" 22081 else 22082 case $host in 22083 *-hp-hpux*) 22084 gss_libname="gss" 22085 ;; 22086 *) 22087 gss_libname="gssapi" 22088 ;; 22089 esac 22090 22091 if test "$GSSAPI_ROOT" != "yes"; then 22092 LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff" 22093 LIBS="-l$gss_libname $LIBS" 22094 else 22095 LIBS="-l$gss_libname $LIBS" 22096 fi 22097 fi 22098 ;; 22099 esac 22100 else 22101 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR" 22102 case $host in 22103 *-hp-hpux*) 22104 LIBS="-lgss $LIBS" 22105 ;; 22106 *) 22107 LIBS="-lgssapi $LIBS" 22108 ;; 22109 esac 22110 fi 22111 else 22112 CPPFLAGS="$save_CPPFLAGS" 22113 fi 22114 22115 build_libstubgss=no 22116 if test x"$want_gss" = "xyes"; then 22117 build_libstubgss=yes 22118 fi 22119 22120 if test "x$build_libstubgss" = "xyes"; then 22121 BUILD_STUB_GSS_TRUE= 22122 BUILD_STUB_GSS_FALSE='#' 22123 else 22124 BUILD_STUB_GSS_TRUE='#' 22125 BUILD_STUB_GSS_FALSE= 22126 fi 22127 22128 22129 22130 DEFAULT_SSL_BACKEND=no 22131 VALID_DEFAULT_SSL_BACKEND= 22132 22133 # Check whether --with-default-ssl-backend was given. 22134 if test "${with_default_ssl_backend+set}" = set; then : 22135 withval=$with_default_ssl_backend; DEFAULT_SSL_BACKEND=$withval 22136 fi 22137 22138 case "$DEFAULT_SSL_BACKEND" in 22139 no) 22140 ;; 22141 default|yes) 22142 as_fn_error $? "The name of the default SSL backend is required." "$LINENO" 5 22143 ;; 22144 *) 22145 22146 VALID_DEFAULT_SSL_BACKEND=no 22147 ;; 22148 esac 22149 22150 22151 22152 OPT_WINSSL=no 22153 22154 # Check whether --with-winssl was given. 22155 if test "${with_winssl+set}" = set; then : 22156 withval=$with_winssl; OPT_WINSSL=$withval 22157 fi 22158 22159 22160 22161 # Check whether --with-schannel was given. 22162 if test "${with_schannel+set}" = set; then : 22163 withval=$with_schannel; OPT_WINSSL=$withval 22164 fi 22165 22166 22167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS (Windows native builds only)" >&5 22168 $as_echo_n "checking whether to enable Windows native SSL/TLS (Windows native builds only)... " >&6; } 22169 if test -z "$ssl_backends" -o "x$OPT_WINSSL" != xno; then 22170 ssl_msg= 22171 if test "x$OPT_WINSSL" != "xno" && 22172 test "x$curl_cv_native_windows" = "xyes"; then 22173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22174 $as_echo "yes" >&6; } 22175 22176 $as_echo "#define USE_SCHANNEL 1" >>confdefs.h 22177 22178 USE_SCHANNEL=1 22179 22180 ssl_msg="Windows-native" 22181 test schannel != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 22182 WINSSL_ENABLED=1 22183 # --with-winssl implies --enable-sspi 22184 22185 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h 22186 22187 USE_WINDOWS_SSPI=1 22188 22189 curl_sspi_msg="enabled" 22190 LIBS="-lcrypt32 $LIBS" 22191 else 22192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22193 $as_echo "no" >&6; } 22194 fi 22195 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg" 22196 else 22197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22198 $as_echo "no" >&6; } 22199 fi 22200 22201 OPT_SECURETRANSPORT=no 22202 22203 # Check whether --with-darwinssl was given. 22204 if test "${with_darwinssl+set}" = set; then : 22205 withval=$with_darwinssl; OPT_SECURETRANSPORT=$withval 22206 fi 22207 22208 22209 22210 # Check whether --with-secure-transport was given. 22211 if test "${with_secure_transport+set}" = set; then : 22212 withval=$with_secure_transport; OPT_SECURETRANSPORT=$withval 22213 fi 22214 22215 22216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Secure Transport" >&5 22217 $as_echo_n "checking whether to enable Secure Transport... " >&6; } 22218 if test -z "$ssl_backends" -o "x$OPT_SECURETRANSPORT" != xno; then 22219 if test "x$OPT_SECURETRANSPORT" != "xno" && 22220 test -d "/System/Library/Frameworks/Security.framework"; then 22221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22222 $as_echo "yes" >&6; } 22223 22224 $as_echo "#define USE_SECTRANSP 1" >>confdefs.h 22225 22226 USE_SECTRANSP=1 22227 22228 ssl_msg="Secure Transport" 22229 test secure-transport != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 22230 SECURETRANSPORT_ENABLED=1 22231 LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security" 22232 else 22233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22234 $as_echo "no" >&6; } 22235 fi 22236 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg" 22237 else 22238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22239 $as_echo "no" >&6; } 22240 fi 22241 22242 OPT_AMISSL=no 22243 22244 # Check whether --with-amissl was given. 22245 if test "${with_amissl+set}" = set; then : 22246 withval=$with_amissl; OPT_AMISSL=$withval 22247 fi 22248 22249 22250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Amiga native SSL/TLS (AmiSSL)" >&5 22251 $as_echo_n "checking whether to enable Amiga native SSL/TLS (AmiSSL)... " >&6; } 22252 if test "$HAVE_PROTO_BSDSOCKET_H" == "1"; then 22253 if test -z "$ssl_backends" -o "x$OPT_AMISSL" != xno; then 22254 ssl_msg= 22255 if test "x$OPT_AMISSL" != "xno"; then 22256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22257 $as_echo "yes" >&6; } 22258 ssl_msg="AmiSSL" 22259 test amissl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 22260 AMISSL_ENABLED=1 22261 LIBS="-lamisslauto $LIBS" 22262 22263 $as_echo "#define USE_AMISSL 1" >>confdefs.h 22264 22265 22266 $as_echo "#define USE_OPENSSL 1" >>confdefs.h 22267 22268 else 22269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22270 $as_echo "no" >&6; } 22271 fi 22272 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg" 22273 else 22274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22275 $as_echo "no" >&6; } 22276 fi 22277 else 22278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22279 $as_echo "no" >&6; } 22280 fi 22281 22282 22283 OPT_SSL=off 22284 ca="no" 22285 22286 # Check whether --with-ssl was given. 22287 if test "${with_ssl+set}" = set; then : 22288 withval=$with_ssl; OPT_SSL=$withval 22289 fi 22290 22291 22292 if test -z "$ssl_backends" -o "x$OPT_SSL" != xno && 22293 test X"$OPT_SSL" != Xno; then 22294 ssl_msg= 22295 22296 CLEANLDFLAGS="$LDFLAGS" 22297 CLEANCPPFLAGS="$CPPFLAGS" 22298 CLEANLIBS="$LIBS" 22299 22300 case $host in 22301 *-*-msys* | *-*-mingw*) 22302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5 22303 $as_echo_n "checking for gdi32... " >&6; } 22304 my_ac_save_LIBS=$LIBS 22305 LIBS="-lgdi32 $LIBS" 22306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22307 /* end confdefs.h. */ 22308 #include <windef.h> 22309 #include <wingdi.h> 22310 int main (void) 22311 { 22312 GdiFlush(); 22313 ; 22314 return 0; 22315 } 22316 _ACEOF 22317 if ac_fn_c_try_link "$LINENO"; then : 22318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22319 $as_echo "yes" >&6; } 22320 else 22321 LIBS=$my_ac_save_LIBS 22322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22323 $as_echo "no" >&6; } 22324 22325 fi 22326 rm -f core conftest.err conftest.$ac_objext \ 22327 conftest$ac_exeext conftest.$ac_ext 22328 ;; 22329 esac 22330 22331 case "$OPT_SSL" in 22332 yes) 22333 if test x$cross_compiling != xyes; then 22334 PKGTEST="yes" 22335 fi 22336 PREFIX_OPENSSL=/usr/local/ssl 22337 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff" 22338 ;; 22339 off) 22340 if test x$cross_compiling != xyes; then 22341 PKGTEST="yes" 22342 fi 22343 PREFIX_OPENSSL= 22344 ;; 22345 *) 22346 PKGTEST="no" 22347 PREFIX_OPENSSL=$OPT_SSL 22348 22349 OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig" 22350 if test -f "$OPENSSL_PCDIR/openssl.pc"; then 22351 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5 22352 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;} 22353 PKGTEST="yes" 22354 elif test ! -f "$PREFIX_OPENSSL/include/openssl/ssl.h"; then 22355 as_fn_error $? "$PREFIX_OPENSSL is a bad --with-ssl prefix!" "$LINENO" 5 22356 fi 22357 22358 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff" 22359 if test "$PREFIX_OPENSSL" != "/usr" ; then 22360 SSL_LDFLAGS="-L$LIB_OPENSSL" 22361 SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include" 22362 fi 22363 SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl" 22364 ;; 22365 esac 22366 22367 if test "$PKGTEST" = "yes"; then 22368 22369 22370 if test -n "$PKG_CONFIG"; then 22371 PKGCONFIG="$PKG_CONFIG" 22372 else 22373 if test -n "$ac_tool_prefix"; then 22374 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 22375 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 22376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22377 $as_echo_n "checking for $ac_word... " >&6; } 22378 if ${ac_cv_path_PKGCONFIG+:} false; then : 22379 $as_echo_n "(cached) " >&6 22380 else 22381 case $PKGCONFIG in 22382 [\\/]* | ?:[\\/]*) 22383 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 22384 ;; 22385 *) 22386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22387 as_dummy="$PATH:/usr/bin:/usr/local/bin" 22388 for as_dir in $as_dummy 22389 do 22390 IFS=$as_save_IFS 22391 test -z "$as_dir" && as_dir=. 22392 for ac_exec_ext in '' $ac_executable_extensions; do 22393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22394 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 22395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22396 break 2 22397 fi 22398 done 22399 done 22400 IFS=$as_save_IFS 22401 22402 ;; 22403 esac 22404 fi 22405 PKGCONFIG=$ac_cv_path_PKGCONFIG 22406 if test -n "$PKGCONFIG"; then 22407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 22408 $as_echo "$PKGCONFIG" >&6; } 22409 else 22410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22411 $as_echo "no" >&6; } 22412 fi 22413 22414 22415 fi 22416 if test -z "$ac_cv_path_PKGCONFIG"; then 22417 ac_pt_PKGCONFIG=$PKGCONFIG 22418 # Extract the first word of "pkg-config", so it can be a program name with args. 22419 set dummy pkg-config; ac_word=$2 22420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22421 $as_echo_n "checking for $ac_word... " >&6; } 22422 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : 22423 $as_echo_n "(cached) " >&6 22424 else 22425 case $ac_pt_PKGCONFIG in 22426 [\\/]* | ?:[\\/]*) 22427 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 22428 ;; 22429 *) 22430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22431 as_dummy="$PATH:/usr/bin:/usr/local/bin" 22432 for as_dir in $as_dummy 22433 do 22434 IFS=$as_save_IFS 22435 test -z "$as_dir" && as_dir=. 22436 for ac_exec_ext in '' $ac_executable_extensions; do 22437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22438 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 22439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22440 break 2 22441 fi 22442 done 22443 done 22444 IFS=$as_save_IFS 22445 22446 ;; 22447 esac 22448 fi 22449 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 22450 if test -n "$ac_pt_PKGCONFIG"; then 22451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 22452 $as_echo "$ac_pt_PKGCONFIG" >&6; } 22453 else 22454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22455 $as_echo "no" >&6; } 22456 fi 22457 22458 if test "x$ac_pt_PKGCONFIG" = x; then 22459 PKGCONFIG="no" 22460 else 22461 case $cross_compiling:$ac_tool_warned in 22462 yes:) 22463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 22464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 22465 ac_tool_warned=yes ;; 22466 esac 22467 PKGCONFIG=$ac_pt_PKGCONFIG 22468 fi 22469 else 22470 PKGCONFIG="$ac_cv_path_PKGCONFIG" 22471 fi 22472 22473 fi 22474 22475 if test "x$PKGCONFIG" != "xno"; then 22476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5 22477 $as_echo_n "checking for openssl options with pkg-config... " >&6; } 22478 itexists=` 22479 if test -n "$OPENSSL_PCDIR"; then 22480 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR" 22481 export PKG_CONFIG_LIBDIR 22482 fi 22483 $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1` 22484 22485 if test -z "$itexists"; then 22486 PKGCONFIG="no" 22487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22488 $as_echo "no" >&6; } 22489 else 22490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 22491 $as_echo "found" >&6; } 22492 fi 22493 fi 22494 22495 22496 if test "$PKGCONFIG" != "no" ; then 22497 SSL_LIBS=` 22498 if test -n "$OPENSSL_PCDIR"; then 22499 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR" 22500 export PKG_CONFIG_LIBDIR 22501 fi 22502 $PKGCONFIG --libs-only-l --libs-only-other openssl 2>/dev/null` 22503 22504 SSL_LDFLAGS=` 22505 if test -n "$OPENSSL_PCDIR"; then 22506 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR" 22507 export PKG_CONFIG_LIBDIR 22508 fi 22509 $PKGCONFIG --libs-only-L openssl 2>/dev/null` 22510 22511 SSL_CPPFLAGS=` 22512 if test -n "$OPENSSL_PCDIR"; then 22513 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR" 22514 export PKG_CONFIG_LIBDIR 22515 fi 22516 $PKGCONFIG --cflags-only-I openssl 2>/dev/null` 22517 22518 22519 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5 22520 $as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;} 22521 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5 22522 $as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;} 22523 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5 22524 $as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;} 22525 22526 LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'` 22527 22528 LIBS="$SSL_LIBS $LIBS" 22529 fi 22530 fi 22531 22532 CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS" 22533 LDFLAGS="$LDFLAGS $SSL_LDFLAGS" 22534 22535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5 22536 $as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; } 22537 if ${ac_cv_lib_crypto_HMAC_Update+:} false; then : 22538 $as_echo_n "(cached) " >&6 22539 else 22540 ac_check_lib_save_LIBS=$LIBS 22541 LIBS="-lcrypto $LIBS" 22542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22543 /* end confdefs.h. */ 22544 22545 22546 #ifdef __cplusplus 22547 extern "C" 22548 #endif 22549 char HMAC_Update (); 22550 int main (void) 22551 { 22552 return HMAC_Update (); 22553 ; 22554 return 0; 22555 } 22556 _ACEOF 22557 if ac_fn_c_try_link "$LINENO"; then : 22558 ac_cv_lib_crypto_HMAC_Update=yes 22559 else 22560 ac_cv_lib_crypto_HMAC_Update=no 22561 fi 22562 rm -f core conftest.err conftest.$ac_objext \ 22563 conftest$ac_exeext conftest.$ac_ext 22564 LIBS=$ac_check_lib_save_LIBS 22565 fi 22566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5 22567 $as_echo "$ac_cv_lib_crypto_HMAC_Update" >&6; } 22568 if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes; then : 22569 22570 HAVECRYPTO="yes" 22571 LIBS="-lcrypto $LIBS" 22572 22573 else 22574 22575 LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL" 22576 if test "$PKGCONFIG" = "no" ; then 22577 # only set this if pkg-config wasn't used 22578 CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include" 22579 fi 22580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5 22581 $as_echo_n "checking for HMAC_Init_ex in -lcrypto... " >&6; } 22582 if ${ac_cv_lib_crypto_HMAC_Init_ex+:} false; then : 22583 $as_echo_n "(cached) " >&6 22584 else 22585 ac_check_lib_save_LIBS=$LIBS 22586 LIBS="-lcrypto $LIBS" 22587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22588 /* end confdefs.h. */ 22589 22590 22591 #ifdef __cplusplus 22592 extern "C" 22593 #endif 22594 char HMAC_Init_ex (); 22595 int main (void) 22596 { 22597 return HMAC_Init_ex (); 22598 ; 22599 return 0; 22600 } 22601 _ACEOF 22602 if ac_fn_c_try_link "$LINENO"; then : 22603 ac_cv_lib_crypto_HMAC_Init_ex=yes 22604 else 22605 ac_cv_lib_crypto_HMAC_Init_ex=no 22606 fi 22607 rm -f core conftest.err conftest.$ac_objext \ 22608 conftest$ac_exeext conftest.$ac_ext 22609 LIBS=$ac_check_lib_save_LIBS 22610 fi 22611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5 22612 $as_echo "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; } 22613 if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes; then : 22614 22615 HAVECRYPTO="yes" 22616 LIBS="-lcrypto $LIBS" 22617 else 22618 22619 22620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5 22621 $as_echo_n "checking OpenSSL linking with -ldl... " >&6; } 22622 LIBS="$CLEANLIBS -lcrypto -ldl" 22623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22624 /* end confdefs.h. */ 22625 22626 #include <openssl/err.h> 22627 22628 int main (void) 22629 { 22630 22631 ERR_clear_error(); 22632 22633 ; 22634 return 0; 22635 } 22636 _ACEOF 22637 if ac_fn_c_try_link "$LINENO"; then : 22638 22639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22640 $as_echo "yes" >&6; } 22641 HAVECRYPTO="yes" 22642 22643 else 22644 22645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22646 $as_echo "no" >&6; } 22647 22648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5 22649 $as_echo_n "checking OpenSSL linking with -ldl and -lpthread... " >&6; } 22650 LIBS="$CLEANLIBS -lcrypto -ldl -lpthread" 22651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22652 /* end confdefs.h. */ 22653 22654 #include <openssl/err.h> 22655 22656 int main (void) 22657 { 22658 22659 ERR_clear_error(); 22660 22661 ; 22662 return 0; 22663 } 22664 _ACEOF 22665 if ac_fn_c_try_link "$LINENO"; then : 22666 22667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22668 $as_echo "yes" >&6; } 22669 HAVECRYPTO="yes" 22670 22671 else 22672 22673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22674 $as_echo "no" >&6; } 22675 LDFLAGS="$CLEANLDFLAGS" 22676 CPPFLAGS="$CLEANCPPFLAGS" 22677 LIBS="$CLEANLIBS" 22678 22679 22680 fi 22681 rm -f core conftest.err conftest.$ac_objext \ 22682 conftest$ac_exeext conftest.$ac_ext 22683 22684 22685 fi 22686 rm -f core conftest.err conftest.$ac_objext \ 22687 conftest$ac_exeext conftest.$ac_ext 22688 22689 22690 fi 22691 22692 22693 fi 22694 22695 22696 if test X"$HAVECRYPTO" = X"yes"; then 22697 22698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5 22699 $as_echo_n "checking for SSL_connect in -lssl... " >&6; } 22700 if ${ac_cv_lib_ssl_SSL_connect+:} false; then : 22701 $as_echo_n "(cached) " >&6 22702 else 22703 ac_check_lib_save_LIBS=$LIBS 22704 LIBS="-lssl $LIBS" 22705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22706 /* end confdefs.h. */ 22707 22708 22709 #ifdef __cplusplus 22710 extern "C" 22711 #endif 22712 char SSL_connect (); 22713 int main (void) 22714 { 22715 return SSL_connect (); 22716 ; 22717 return 0; 22718 } 22719 _ACEOF 22720 if ac_fn_c_try_link "$LINENO"; then : 22721 ac_cv_lib_ssl_SSL_connect=yes 22722 else 22723 ac_cv_lib_ssl_SSL_connect=no 22724 fi 22725 rm -f core conftest.err conftest.$ac_objext \ 22726 conftest$ac_exeext conftest.$ac_ext 22727 LIBS=$ac_check_lib_save_LIBS 22728 fi 22729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5 22730 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; } 22731 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then : 22732 cat >>confdefs.h <<_ACEOF 22733 #define HAVE_LIBSSL 1 22734 _ACEOF 22735 22736 LIBS="-lssl $LIBS" 22737 22738 fi 22739 22740 22741 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then 22742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5 22743 $as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; }; 22744 OLIBS=$LIBS 22745 LIBS="-lRSAglue -lrsaref $LIBS" 22746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5 22747 $as_echo_n "checking for SSL_connect in -lssl... " >&6; } 22748 if ${ac_cv_lib_ssl_SSL_connect+:} false; then : 22749 $as_echo_n "(cached) " >&6 22750 else 22751 ac_check_lib_save_LIBS=$LIBS 22752 LIBS="-lssl $LIBS" 22753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22754 /* end confdefs.h. */ 22755 22756 22757 #ifdef __cplusplus 22758 extern "C" 22759 #endif 22760 char SSL_connect (); 22761 int main (void) 22762 { 22763 return SSL_connect (); 22764 ; 22765 return 0; 22766 } 22767 _ACEOF 22768 if ac_fn_c_try_link "$LINENO"; then : 22769 ac_cv_lib_ssl_SSL_connect=yes 22770 else 22771 ac_cv_lib_ssl_SSL_connect=no 22772 fi 22773 rm -f core conftest.err conftest.$ac_objext \ 22774 conftest$ac_exeext conftest.$ac_ext 22775 LIBS=$ac_check_lib_save_LIBS 22776 fi 22777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5 22778 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; } 22779 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then : 22780 cat >>confdefs.h <<_ACEOF 22781 #define HAVE_LIBSSL 1 22782 _ACEOF 22783 22784 LIBS="-lssl $LIBS" 22785 22786 fi 22787 22788 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then 22789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22790 $as_echo "no" >&6; } 22791 LIBS=$OLIBS 22792 else 22793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22794 $as_echo "yes" >&6; } 22795 fi 22796 22797 else 22798 22799 for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \ 22800 openssl/pem.h openssl/ssl.h openssl/err.h 22801 do : 22802 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 22803 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 22804 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 22805 cat >>confdefs.h <<_ACEOF 22806 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 22807 _ACEOF 22808 ssl_msg="OpenSSL" 22809 test openssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 22810 OPENSSL_ENABLED=1 22811 22812 $as_echo "#define USE_OPENSSL 1" >>confdefs.h 22813 22814 fi 22815 22816 done 22817 22818 22819 if test $ac_cv_header_openssl_x509_h = no; then 22820 for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h 22821 do : 22822 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 22823 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 22824 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 22825 cat >>confdefs.h <<_ACEOF 22826 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 22827 _ACEOF 22828 22829 fi 22830 22831 done 22832 22833 22834 if test $ac_cv_header_x509_h = yes && 22835 test $ac_cv_header_crypto_h = yes && 22836 test $ac_cv_header_ssl_h = yes; then 22837 ssl_msg="OpenSSL" 22838 OPENSSL_ENABLED=1 22839 fi 22840 fi 22841 fi 22842 22843 if test X"$OPENSSL_ENABLED" != X"1"; then 22844 LIBS="$CLEANLIBS" 22845 fi 22846 22847 if test X"$OPT_SSL" != Xoff && 22848 test "$OPENSSL_ENABLED" != "1"; then 22849 as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5 22850 fi 22851 fi 22852 22853 if test X"$OPENSSL_ENABLED" = X"1"; then 22854 22855 for ac_func in RAND_egd \ 22856 SSL_get_shutdown \ 22857 SSLv2_client_method \ 22858 OpenSSL_version 22859 do : 22860 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22861 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 22862 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 22863 cat >>confdefs.h <<_ACEOF 22864 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 22865 _ACEOF 22866 22867 fi 22868 done 22869 22870 22871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5 22872 $as_echo_n "checking for BoringSSL... " >&6; } 22873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22874 /* end confdefs.h. */ 22875 22876 22877 #include <openssl/base.h> 22878 22879 int main (void) 22880 { 22881 22882 #ifndef OPENSSL_IS_BORINGSSL 22883 #error not boringssl 22884 #endif 22885 22886 ; 22887 return 0; 22888 } 22889 22890 _ACEOF 22891 if ac_fn_c_try_compile "$LINENO"; then : 22892 22893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22894 $as_echo "yes" >&6; } 22895 22896 cat >>confdefs.h <<_ACEOF 22897 #define HAVE_BORINGSSL 1 22898 _ACEOF 22899 22900 ssl_msg="BoringSSL" 22901 22902 else 22903 22904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22905 $as_echo "no" >&6; } 22906 22907 fi 22908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22909 22910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5 22911 $as_echo_n "checking for libressl... " >&6; } 22912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22913 /* end confdefs.h. */ 22914 22915 22916 #include <openssl/opensslv.h> 22917 22918 int main (void) 22919 { 22920 22921 int dummy = LIBRESSL_VERSION_NUMBER; 22922 22923 ; 22924 return 0; 22925 } 22926 22927 _ACEOF 22928 if ac_fn_c_try_compile "$LINENO"; then : 22929 22930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22931 $as_echo "yes" >&6; } 22932 22933 cat >>confdefs.h <<_ACEOF 22934 #define HAVE_LIBRESSL 1 22935 _ACEOF 22936 22937 ssl_msg="libressl" 22938 22939 else 22940 22941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22942 $as_echo "no" >&6; } 22943 22944 fi 22945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22946 fi 22947 22948 if test "$OPENSSL_ENABLED" = "1"; then 22949 if test -n "$LIB_OPENSSL"; then 22950 if test "x$cross_compiling" != "xyes"; then 22951 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$LIB_OPENSSL" 22952 export CURL_LIBRARY_PATH 22953 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&5 22954 $as_echo "$as_me: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&6;} 22955 fi 22956 fi 22957 22958 # 22959 22960 # 22961 tst_api="unknown" 22962 # 22963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5 22964 $as_echo_n "checking for OpenSSL headers version... " >&6; } 22965 22966 OLDCPPFLAGS=$CPPFLAGS 22967 # CPPPFLAG comes from CURL_CPP_P 22968 CPPFLAGS="$CPPFLAGS $CPPPFLAG" 22969 if test -z "$SED"; then 22970 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 22971 fi 22972 if test -z "$GREP"; then 22973 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 22974 fi 22975 22976 tmp_exp="" 22977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22978 /* end confdefs.h. */ 22979 22980 22981 # ifdef USE_OPENSSL 22982 # include <openssl/crypto.h> 22983 # else 22984 # include <crypto.h> 22985 # endif 22986 22987 #ifdef OPENSSL_VERSION_NUMBER 22988 CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER 22989 #endif 22990 22991 22992 _ACEOF 22993 if ac_fn_c_try_cpp "$LINENO"; then : 22994 22995 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 22996 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 22997 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 22998 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 22999 if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then 23000 tmp_exp="" 23001 fi 23002 23003 fi 23004 rm -f conftest.err conftest.i conftest.$ac_ext 23005 if test -z "$tmp_exp"; then 23006 curl_cv_have_def_OPENSSL_VERSION_NUMBER=no 23007 23008 else 23009 curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes 23010 curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp 23011 23012 fi 23013 CPPFLAGS=$OLDCPPFLAGS 23014 23015 if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then 23016 tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'` 23017 case "x$tst_verlen" in 23018 x6) 23019 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3` 23020 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4` 23021 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5` 23022 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix 23023 ;; 23024 x11|x10) 23025 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3` 23026 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5` 23027 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7` 23028 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix 23029 ;; 23030 *) 23031 tst_api="unknown" 23032 ;; 23033 esac 23034 case $tst_api in 23035 0x111) tst_show="1.1.1" ;; 23036 0x110) tst_show="1.1.0" ;; 23037 0x102) tst_show="1.0.2" ;; 23038 0x101) tst_show="1.0.1" ;; 23039 0x100) tst_show="1.0.0" ;; 23040 0x099) tst_show="0.9.9" ;; 23041 0x098) tst_show="0.9.8" ;; 23042 0x097) tst_show="0.9.7" ;; 23043 0x096) tst_show="0.9.6" ;; 23044 0x095) tst_show="0.9.5" ;; 23045 0x094) tst_show="0.9.4" ;; 23046 0x093) tst_show="0.9.3" ;; 23047 0x092) tst_show="0.9.2" ;; 23048 0x091) tst_show="0.9.1" ;; 23049 *) tst_show="unknown" ;; 23050 esac 23051 tst_show="$tst_show - $curl_cv_def_OPENSSL_VERSION_NUMBER" 23052 else 23053 tst_show="unknown" 23054 fi 23055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5 23056 $as_echo "$tst_show" >&6; } 23057 # 23058 curl_openssl_api_headers=$tst_api 23059 23060 23061 # 23062 tst_api="unknown" 23063 # 23064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5 23065 $as_echo_n "checking for OpenSSL library version... " >&6; } 23066 if test "$tst_api" = "unknown"; then 23067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23068 /* end confdefs.h. */ 23069 23070 23071 #define ERR_clear_last_mark innocuous_ERR_clear_last_mark 23072 #ifdef __STDC__ 23073 # include <limits.h> 23074 #else 23075 # include <assert.h> 23076 #endif 23077 #undef ERR_clear_last_mark 23078 #ifdef __cplusplus 23079 extern "C" 23080 #endif 23081 char ERR_clear_last_mark (); 23082 #if defined __stub_ERR_clear_last_mark || defined __stub___ERR_clear_last_mark 23083 choke me 23084 #endif 23085 23086 int main (void) 23087 { 23088 return ERR_clear_last_mark (); 23089 ; 23090 return 0; 23091 } 23092 23093 _ACEOF 23094 if ac_fn_c_try_link "$LINENO"; then : 23095 23096 tst_api="0x111" 23097 23098 fi 23099 rm -f core conftest.err conftest.$ac_objext \ 23100 conftest$ac_exeext conftest.$ac_ext 23101 fi 23102 if test "$tst_api" = "unknown"; then 23103 case $host in 23104 *-*-vms*) 23105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23106 /* end confdefs.h. */ 23107 23108 23109 #define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb 23110 #ifdef __STDC__ 23111 # include <limits.h> 23112 #else 23113 # include <assert.h> 23114 #endif 23115 #undef SSL_CTX_set_not_resumbl_sess_cb 23116 #ifdef __cplusplus 23117 extern "C" 23118 #endif 23119 char SSL_CTX_set_not_resumbl_sess_cb (); 23120 #if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb 23121 choke me 23122 #endif 23123 23124 int main (void) 23125 { 23126 return SSL_CTX_set_not_resumbl_sess_cb (); 23127 ; 23128 return 0; 23129 } 23130 23131 _ACEOF 23132 if ac_fn_c_try_link "$LINENO"; then : 23133 23134 tst_api="0x110" 23135 23136 fi 23137 rm -f core conftest.err conftest.$ac_objext \ 23138 conftest$ac_exeext conftest.$ac_ext 23139 ;; 23140 *) 23141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23142 /* end confdefs.h. */ 23143 23144 23145 #define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback 23146 #ifdef __STDC__ 23147 # include <limits.h> 23148 #else 23149 # include <assert.h> 23150 #endif 23151 #undef SSL_CTX_set_not_resumable_session_callback 23152 #ifdef __cplusplus 23153 extern "C" 23154 #endif 23155 char SSL_CTX_set_not_resumable_session_callback (); 23156 #if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback 23157 choke me 23158 #endif 23159 23160 int main (void) 23161 { 23162 return SSL_CTX_set_not_resumable_session_callback (); 23163 ; 23164 return 0; 23165 } 23166 23167 _ACEOF 23168 if ac_fn_c_try_link "$LINENO"; then : 23169 23170 tst_api="0x110" 23171 23172 fi 23173 rm -f core conftest.err conftest.$ac_objext \ 23174 conftest$ac_exeext conftest.$ac_ext 23175 ;; 23176 esac 23177 fi 23178 if test "$tst_api" = "unknown"; then 23179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23180 /* end confdefs.h. */ 23181 23182 23183 #define SSL_CONF_CTX_new innocuous_SSL_CONF_CTX_new 23184 #ifdef __STDC__ 23185 # include <limits.h> 23186 #else 23187 # include <assert.h> 23188 #endif 23189 #undef SSL_CONF_CTX_new 23190 #ifdef __cplusplus 23191 extern "C" 23192 #endif 23193 char SSL_CONF_CTX_new (); 23194 #if defined __stub_SSL_CONF_CTX_new || defined __stub___SSL_CONF_CTX_new 23195 choke me 23196 #endif 23197 23198 int main (void) 23199 { 23200 return SSL_CONF_CTX_new (); 23201 ; 23202 return 0; 23203 } 23204 23205 _ACEOF 23206 if ac_fn_c_try_link "$LINENO"; then : 23207 23208 tst_api="0x102" 23209 23210 fi 23211 rm -f core conftest.err conftest.$ac_objext \ 23212 conftest$ac_exeext conftest.$ac_ext 23213 fi 23214 if test "$tst_api" = "unknown"; then 23215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23216 /* end confdefs.h. */ 23217 23218 23219 #define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated 23220 #ifdef __STDC__ 23221 # include <limits.h> 23222 #else 23223 # include <assert.h> 23224 #endif 23225 #undef SSL_renegotiate_abbreviated 23226 #ifdef __cplusplus 23227 extern "C" 23228 #endif 23229 char SSL_renegotiate_abbreviated (); 23230 #if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated 23231 choke me 23232 #endif 23233 23234 int main (void) 23235 { 23236 return SSL_renegotiate_abbreviated (); 23237 ; 23238 return 0; 23239 } 23240 23241 _ACEOF 23242 if ac_fn_c_try_link "$LINENO"; then : 23243 23244 tst_api="0x101" 23245 23246 fi 23247 rm -f core conftest.err conftest.$ac_objext \ 23248 conftest$ac_exeext conftest.$ac_ext 23249 fi 23250 if test "$tst_api" = "unknown"; then 23251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23252 /* end confdefs.h. */ 23253 23254 23255 #define OBJ_add_sigid innocuous_OBJ_add_sigid 23256 #ifdef __STDC__ 23257 # include <limits.h> 23258 #else 23259 # include <assert.h> 23260 #endif 23261 #undef OBJ_add_sigid 23262 #ifdef __cplusplus 23263 extern "C" 23264 #endif 23265 char OBJ_add_sigid (); 23266 #if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid 23267 choke me 23268 #endif 23269 23270 int main (void) 23271 { 23272 return OBJ_add_sigid (); 23273 ; 23274 return 0; 23275 } 23276 23277 _ACEOF 23278 if ac_fn_c_try_link "$LINENO"; then : 23279 23280 tst_api="0x100" 23281 23282 fi 23283 rm -f core conftest.err conftest.$ac_objext \ 23284 conftest$ac_exeext conftest.$ac_ext 23285 fi 23286 if test "$tst_api" = "unknown"; then 23287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23288 /* end confdefs.h. */ 23289 23290 23291 #define ERR_set_mark innocuous_ERR_set_mark 23292 #ifdef __STDC__ 23293 # include <limits.h> 23294 #else 23295 # include <assert.h> 23296 #endif 23297 #undef ERR_set_mark 23298 #ifdef __cplusplus 23299 extern "C" 23300 #endif 23301 char ERR_set_mark (); 23302 #if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark 23303 choke me 23304 #endif 23305 23306 int main (void) 23307 { 23308 return ERR_set_mark (); 23309 ; 23310 return 0; 23311 } 23312 23313 _ACEOF 23314 if ac_fn_c_try_link "$LINENO"; then : 23315 23316 tst_api="0x098" 23317 23318 fi 23319 rm -f core conftest.err conftest.$ac_objext \ 23320 conftest$ac_exeext conftest.$ac_ext 23321 fi 23322 if test "$tst_api" = "unknown"; then 23323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23324 /* end confdefs.h. */ 23325 23326 23327 #define ERR_peek_last_error innocuous_ERR_peek_last_error 23328 #ifdef __STDC__ 23329 # include <limits.h> 23330 #else 23331 # include <assert.h> 23332 #endif 23333 #undef ERR_peek_last_error 23334 #ifdef __cplusplus 23335 extern "C" 23336 #endif 23337 char ERR_peek_last_error (); 23338 #if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error 23339 choke me 23340 #endif 23341 23342 int main (void) 23343 { 23344 return ERR_peek_last_error (); 23345 ; 23346 return 0; 23347 } 23348 23349 _ACEOF 23350 if ac_fn_c_try_link "$LINENO"; then : 23351 23352 tst_api="0x097" 23353 23354 fi 23355 rm -f core conftest.err conftest.$ac_objext \ 23356 conftest$ac_exeext conftest.$ac_ext 23357 fi 23358 if test "$tst_api" = "unknown"; then 23359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23360 /* end confdefs.h. */ 23361 23362 23363 #define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT 23364 #ifdef __STDC__ 23365 # include <limits.h> 23366 #else 23367 # include <assert.h> 23368 #endif 23369 #undef c2i_ASN1_OBJECT 23370 #ifdef __cplusplus 23371 extern "C" 23372 #endif 23373 char c2i_ASN1_OBJECT (); 23374 #if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT 23375 choke me 23376 #endif 23377 23378 int main (void) 23379 { 23380 return c2i_ASN1_OBJECT (); 23381 ; 23382 return 0; 23383 } 23384 23385 _ACEOF 23386 if ac_fn_c_try_link "$LINENO"; then : 23387 23388 tst_api="0x096" 23389 23390 fi 23391 rm -f core conftest.err conftest.$ac_objext \ 23392 conftest$ac_exeext conftest.$ac_ext 23393 fi 23394 if test "$tst_api" = "unknown"; then 23395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23396 /* end confdefs.h. */ 23397 23398 23399 #define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose 23400 #ifdef __STDC__ 23401 # include <limits.h> 23402 #else 23403 # include <assert.h> 23404 #endif 23405 #undef SSL_CTX_set_purpose 23406 #ifdef __cplusplus 23407 extern "C" 23408 #endif 23409 char SSL_CTX_set_purpose (); 23410 #if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose 23411 choke me 23412 #endif 23413 23414 int main (void) 23415 { 23416 return SSL_CTX_set_purpose (); 23417 ; 23418 return 0; 23419 } 23420 23421 _ACEOF 23422 if ac_fn_c_try_link "$LINENO"; then : 23423 23424 tst_api="0x095" 23425 23426 fi 23427 rm -f core conftest.err conftest.$ac_objext \ 23428 conftest$ac_exeext conftest.$ac_ext 23429 fi 23430 if test "$tst_api" = "unknown"; then 23431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23432 /* end confdefs.h. */ 23433 23434 23435 #define OBJ_obj2txt innocuous_OBJ_obj2txt 23436 #ifdef __STDC__ 23437 # include <limits.h> 23438 #else 23439 # include <assert.h> 23440 #endif 23441 #undef OBJ_obj2txt 23442 #ifdef __cplusplus 23443 extern "C" 23444 #endif 23445 char OBJ_obj2txt (); 23446 #if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt 23447 choke me 23448 #endif 23449 23450 int main (void) 23451 { 23452 return OBJ_obj2txt (); 23453 ; 23454 return 0; 23455 } 23456 23457 _ACEOF 23458 if ac_fn_c_try_link "$LINENO"; then : 23459 23460 tst_api="0x094" 23461 23462 fi 23463 rm -f core conftest.err conftest.$ac_objext \ 23464 conftest$ac_exeext conftest.$ac_ext 23465 fi 23466 if test "$tst_api" = "unknown"; then 23467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23468 /* end confdefs.h. */ 23469 23470 23471 #define SSL_get_verify_depth innocuous_SSL_get_verify_depth 23472 #ifdef __STDC__ 23473 # include <limits.h> 23474 #else 23475 # include <assert.h> 23476 #endif 23477 #undef SSL_get_verify_depth 23478 #ifdef __cplusplus 23479 extern "C" 23480 #endif 23481 char SSL_get_verify_depth (); 23482 #if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth 23483 choke me 23484 #endif 23485 23486 int main (void) 23487 { 23488 return SSL_get_verify_depth (); 23489 ; 23490 return 0; 23491 } 23492 23493 _ACEOF 23494 if ac_fn_c_try_link "$LINENO"; then : 23495 23496 tst_api="0x093" 23497 23498 fi 23499 rm -f core conftest.err conftest.$ac_objext \ 23500 conftest$ac_exeext conftest.$ac_ext 23501 fi 23502 if test "$tst_api" = "unknown"; then 23503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23504 /* end confdefs.h. */ 23505 23506 23507 #define SSL_library_init innocuous_SSL_library_init 23508 #ifdef __STDC__ 23509 # include <limits.h> 23510 #else 23511 # include <assert.h> 23512 #endif 23513 #undef SSL_library_init 23514 #ifdef __cplusplus 23515 extern "C" 23516 #endif 23517 char SSL_library_init (); 23518 #if defined __stub_SSL_library_init || defined __stub___SSL_library_init 23519 choke me 23520 #endif 23521 23522 int main (void) 23523 { 23524 return SSL_library_init (); 23525 ; 23526 return 0; 23527 } 23528 23529 _ACEOF 23530 if ac_fn_c_try_link "$LINENO"; then : 23531 23532 tst_api="0x092" 23533 23534 fi 23535 rm -f core conftest.err conftest.$ac_objext \ 23536 conftest$ac_exeext conftest.$ac_ext 23537 fi 23538 if test "$tst_api" = "unknown"; then 23539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23540 /* end confdefs.h. */ 23541 23542 23543 #define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list 23544 #ifdef __STDC__ 23545 # include <limits.h> 23546 #else 23547 # include <assert.h> 23548 #endif 23549 #undef SSL_CTX_set_cipher_list 23550 #ifdef __cplusplus 23551 extern "C" 23552 #endif 23553 char SSL_CTX_set_cipher_list (); 23554 #if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list 23555 choke me 23556 #endif 23557 23558 int main (void) 23559 { 23560 return SSL_CTX_set_cipher_list (); 23561 ; 23562 return 0; 23563 } 23564 23565 _ACEOF 23566 if ac_fn_c_try_link "$LINENO"; then : 23567 23568 tst_api="0x091" 23569 23570 fi 23571 rm -f core conftest.err conftest.$ac_objext \ 23572 conftest$ac_exeext conftest.$ac_ext 23573 fi 23574 case $tst_api in 23575 0x111) tst_show="1.1.1" ;; 23576 0x110) tst_show="1.1.0" ;; 23577 0x102) tst_show="1.0.2" ;; 23578 0x101) tst_show="1.0.1" ;; 23579 0x100) tst_show="1.0.0" ;; 23580 0x099) tst_show="0.9.9" ;; 23581 0x098) tst_show="0.9.8" ;; 23582 0x097) tst_show="0.9.7" ;; 23583 0x096) tst_show="0.9.6" ;; 23584 0x095) tst_show="0.9.5" ;; 23585 0x094) tst_show="0.9.4" ;; 23586 0x093) tst_show="0.9.3" ;; 23587 0x092) tst_show="0.9.2" ;; 23588 0x091) tst_show="0.9.1" ;; 23589 *) tst_show="unknown" ;; 23590 esac 23591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5 23592 $as_echo "$tst_show" >&6; } 23593 # 23594 curl_openssl_api_library=$tst_api 23595 23596 # 23597 tst_match="yes" 23598 # 23599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5 23600 $as_echo_n "checking for OpenSSL headers and library versions matching... " >&6; } 23601 if test "$curl_openssl_api_headers" = "unknown" || 23602 test "$curl_openssl_api_library" = "unknown"; then 23603 tst_match="fail" 23604 tst_warns="Can not compare OpenSSL headers and library versions." 23605 elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then 23606 tst_match="no" 23607 tst_warns="OpenSSL headers and library versions do not match." 23608 fi 23609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5 23610 $as_echo "$tst_match" >&6; } 23611 if test "$tst_match" != "yes"; then 23612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5 23613 $as_echo "$as_me: WARNING: $tst_warns" >&2;} 23614 fi 23615 23616 check_for_ca_bundle=1 23617 fi 23618 23619 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg" 23620 fi 23621 23622 23623 if test X"$OPENSSL_ENABLED" = X"1"; then 23624 23625 # Check whether --with-egd-socket was given. 23626 if test "${with_egd_socket+set}" = set; then : 23627 withval=$with_egd_socket; EGD_SOCKET="$withval" 23628 23629 fi 23630 23631 if test -n "$EGD_SOCKET" ; then 23632 23633 cat >>confdefs.h <<_ACEOF 23634 #define EGD_SOCKET "$EGD_SOCKET" 23635 _ACEOF 23636 23637 fi 23638 23639 23640 # Check whether --with-random was given. 23641 if test "${with_random+set}" = set; then : 23642 withval=$with_random; RANDOM_FILE="$withval" 23643 else 23644 23645 if test x$cross_compiling != xyes; then 23646 as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh` 23647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5 23648 $as_echo_n "checking for \"/dev/urandom\"... " >&6; } 23649 if eval \${$as_ac_File+:} false; then : 23650 $as_echo_n "(cached) " >&6 23651 else 23652 test "$cross_compiling" = yes && 23653 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 23654 if test -r ""/dev/urandom""; then 23655 eval "$as_ac_File=yes" 23656 else 23657 eval "$as_ac_File=no" 23658 fi 23659 fi 23660 eval ac_res=\$$as_ac_File 23661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 23662 $as_echo "$ac_res" >&6; } 23663 if eval test \"x\$"$as_ac_File"\" = x"yes"; then : 23664 RANDOM_FILE="/dev/urandom" 23665 fi 23666 23667 else 23668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5 23669 $as_echo "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;} 23670 fi 23671 23672 23673 fi 23674 23675 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then 23676 23677 23678 cat >>confdefs.h <<_ACEOF 23679 #define RANDOM_FILE "$RANDOM_FILE" 23680 _ACEOF 23681 23682 fi 23683 fi 23684 23685 if test "$OPENSSL_ENABLED" = "1"; then 23686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5 23687 $as_echo_n "checking for SRP_Calc_client_key in -lcrypto... " >&6; } 23688 if ${ac_cv_lib_crypto_SRP_Calc_client_key+:} false; then : 23689 $as_echo_n "(cached) " >&6 23690 else 23691 ac_check_lib_save_LIBS=$LIBS 23692 LIBS="-lcrypto $LIBS" 23693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23694 /* end confdefs.h. */ 23695 23696 23697 #ifdef __cplusplus 23698 extern "C" 23699 #endif 23700 char SRP_Calc_client_key (); 23701 int main (void) 23702 { 23703 return SRP_Calc_client_key (); 23704 ; 23705 return 0; 23706 } 23707 _ACEOF 23708 if ac_fn_c_try_link "$LINENO"; then : 23709 ac_cv_lib_crypto_SRP_Calc_client_key=yes 23710 else 23711 ac_cv_lib_crypto_SRP_Calc_client_key=no 23712 fi 23713 rm -f core conftest.err conftest.$ac_objext \ 23714 conftest$ac_exeext conftest.$ac_ext 23715 LIBS=$ac_check_lib_save_LIBS 23716 fi 23717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5 23718 $as_echo "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; } 23719 if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes; then : 23720 23721 23722 $as_echo "#define HAVE_OPENSSL_SRP 1" >>confdefs.h 23723 23724 HAVE_OPENSSL_SRP=1 23725 23726 23727 fi 23728 23729 fi 23730 23731 if test X"$OPENSSL_ENABLED" = X"1"; then 23732 # Check whether --enable-openssl-auto-load-config was given. 23733 if test "${enable_openssl_auto_load_config+set}" = set; then : 23734 enableval=$enable_openssl_auto_load_config; if test X"$enableval" = X"no"; then 23735 { $as_echo "$as_me:${as_lineno-$LINENO}: automatic loading of OpenSSL configuration disabled" >&5 23736 $as_echo "$as_me: automatic loading of OpenSSL configuration disabled" >&6;} 23737 23738 $as_echo "#define CURL_DISABLE_OPENSSL_AUTO_LOAD_CONFIG 1" >>confdefs.h 23739 23740 fi 23741 23742 fi 23743 23744 fi 23745 23746 23747 OPT_GNUTLS=no 23748 23749 23750 # Check whether --with-gnutls was given. 23751 if test "${with_gnutls+set}" = set; then : 23752 withval=$with_gnutls; OPT_GNUTLS=$withval 23753 fi 23754 23755 23756 if test -z "$ssl_backends" -o "x$OPT_GNUTLS" != xno; then 23757 ssl_msg= 23758 23759 if test X"$OPT_GNUTLS" != Xno; then 23760 23761 addld="" 23762 addlib="" 23763 gtlslib="" 23764 version="" 23765 addcflags="" 23766 23767 if test "x$OPT_GNUTLS" = "xyes"; then 23768 23769 if test -n "$PKG_CONFIG"; then 23770 PKGCONFIG="$PKG_CONFIG" 23771 else 23772 if test -n "$ac_tool_prefix"; then 23773 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 23774 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 23775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23776 $as_echo_n "checking for $ac_word... " >&6; } 23777 if ${ac_cv_path_PKGCONFIG+:} false; then : 23778 $as_echo_n "(cached) " >&6 23779 else 23780 case $PKGCONFIG in 23781 [\\/]* | ?:[\\/]*) 23782 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 23783 ;; 23784 *) 23785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23786 as_dummy="$PATH:/usr/bin:/usr/local/bin" 23787 for as_dir in $as_dummy 23788 do 23789 IFS=$as_save_IFS 23790 test -z "$as_dir" && as_dir=. 23791 for ac_exec_ext in '' $ac_executable_extensions; do 23792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23793 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 23794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23795 break 2 23796 fi 23797 done 23798 done 23799 IFS=$as_save_IFS 23800 23801 ;; 23802 esac 23803 fi 23804 PKGCONFIG=$ac_cv_path_PKGCONFIG 23805 if test -n "$PKGCONFIG"; then 23806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 23807 $as_echo "$PKGCONFIG" >&6; } 23808 else 23809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23810 $as_echo "no" >&6; } 23811 fi 23812 23813 23814 fi 23815 if test -z "$ac_cv_path_PKGCONFIG"; then 23816 ac_pt_PKGCONFIG=$PKGCONFIG 23817 # Extract the first word of "pkg-config", so it can be a program name with args. 23818 set dummy pkg-config; ac_word=$2 23819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23820 $as_echo_n "checking for $ac_word... " >&6; } 23821 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : 23822 $as_echo_n "(cached) " >&6 23823 else 23824 case $ac_pt_PKGCONFIG in 23825 [\\/]* | ?:[\\/]*) 23826 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 23827 ;; 23828 *) 23829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23830 as_dummy="$PATH:/usr/bin:/usr/local/bin" 23831 for as_dir in $as_dummy 23832 do 23833 IFS=$as_save_IFS 23834 test -z "$as_dir" && as_dir=. 23835 for ac_exec_ext in '' $ac_executable_extensions; do 23836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23837 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 23838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23839 break 2 23840 fi 23841 done 23842 done 23843 IFS=$as_save_IFS 23844 23845 ;; 23846 esac 23847 fi 23848 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 23849 if test -n "$ac_pt_PKGCONFIG"; then 23850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 23851 $as_echo "$ac_pt_PKGCONFIG" >&6; } 23852 else 23853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23854 $as_echo "no" >&6; } 23855 fi 23856 23857 if test "x$ac_pt_PKGCONFIG" = x; then 23858 PKGCONFIG="no" 23859 else 23860 case $cross_compiling:$ac_tool_warned in 23861 yes:) 23862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 23863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 23864 ac_tool_warned=yes ;; 23865 esac 23866 PKGCONFIG=$ac_pt_PKGCONFIG 23867 fi 23868 else 23869 PKGCONFIG="$ac_cv_path_PKGCONFIG" 23870 fi 23871 23872 fi 23873 23874 if test "x$PKGCONFIG" != "xno"; then 23875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5 23876 $as_echo_n "checking for gnutls options with pkg-config... " >&6; } 23877 itexists=` 23878 if test -n ""; then 23879 PKG_CONFIG_LIBDIR="" 23880 export PKG_CONFIG_LIBDIR 23881 fi 23882 $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1` 23883 23884 if test -z "$itexists"; then 23885 PKGCONFIG="no" 23886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23887 $as_echo "no" >&6; } 23888 else 23889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 23890 $as_echo "found" >&6; } 23891 fi 23892 fi 23893 23894 23895 if test "$PKGCONFIG" != "no" ; then 23896 addlib=`$PKGCONFIG --libs-only-l gnutls` 23897 addld=`$PKGCONFIG --libs-only-L gnutls` 23898 addcflags=`$PKGCONFIG --cflags-only-I gnutls` 23899 version=`$PKGCONFIG --modversion gnutls` 23900 gtlslib=`echo $addld | $SED -e 's/-L//'` 23901 else 23902 check=`libgnutls-config --version 2>/dev/null` 23903 if test -n "$check"; then 23904 addlib=`libgnutls-config --libs` 23905 addcflags=`libgnutls-config --cflags` 23906 version=`libgnutls-config --version` 23907 gtlslib=`libgnutls-config --prefix`/lib$libsuff 23908 fi 23909 fi 23910 else 23911 cfg=$OPT_GNUTLS/bin/libgnutls-config 23912 check=`$cfg --version 2>/dev/null` 23913 if test -n "$check"; then 23914 addlib=`$cfg --libs` 23915 addcflags=`$cfg --cflags` 23916 version=`$cfg --version` 23917 gtlslib=`$cfg --prefix`/lib$libsuff 23918 else 23919 addlib=-lgnutls 23920 addld=-L$OPT_GNUTLS/lib$libsuff 23921 addcflags=-I$OPT_GNUTLS/include 23922 version="" # we just don't know 23923 gtlslib=$OPT_GNUTLS/lib$libsuff 23924 fi 23925 fi 23926 23927 if test -z "$version"; then 23928 version="unknown" 23929 fi 23930 23931 if test -n "$addlib"; then 23932 23933 CLEANLIBS="$LIBS" 23934 CLEANCPPFLAGS="$CPPFLAGS" 23935 CLEANLDFLAGS="$LDFLAGS" 23936 23937 LIBS="$addlib $LIBS" 23938 LDFLAGS="$LDFLAGS $addld" 23939 if test "$addcflags" != "-I/usr/include"; then 23940 CPPFLAGS="$CPPFLAGS $addcflags" 23941 fi 23942 23943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5 23944 $as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; } 23945 if ${ac_cv_lib_gnutls_gnutls_check_version+:} false; then : 23946 $as_echo_n "(cached) " >&6 23947 else 23948 ac_check_lib_save_LIBS=$LIBS 23949 LIBS="-lgnutls $LIBS" 23950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23951 /* end confdefs.h. */ 23952 23953 23954 #ifdef __cplusplus 23955 extern "C" 23956 #endif 23957 char gnutls_check_version (); 23958 int main (void) 23959 { 23960 return gnutls_check_version (); 23961 ; 23962 return 0; 23963 } 23964 _ACEOF 23965 if ac_fn_c_try_link "$LINENO"; then : 23966 ac_cv_lib_gnutls_gnutls_check_version=yes 23967 else 23968 ac_cv_lib_gnutls_gnutls_check_version=no 23969 fi 23970 rm -f core conftest.err conftest.$ac_objext \ 23971 conftest$ac_exeext conftest.$ac_ext 23972 LIBS=$ac_check_lib_save_LIBS 23973 fi 23974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5 23975 $as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; } 23976 if test "x$ac_cv_lib_gnutls_gnutls_check_version" = xyes; then : 23977 23978 23979 $as_echo "#define USE_GNUTLS 1" >>confdefs.h 23980 23981 USE_GNUTLS=1 23982 23983 GNUTLS_ENABLED=1 23984 USE_GNUTLS="yes" 23985 ssl_msg="GnuTLS" 23986 test gnutls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 23987 23988 else 23989 23990 LIBS="$CLEANLIBS" 23991 CPPFLAGS="$CLEANCPPFLAGS" 23992 23993 fi 23994 23995 23996 if test "x$USE_GNUTLS" = "xyes"; then 23997 { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5 23998 $as_echo "$as_me: detected GnuTLS version $version" >&6;} 23999 check_for_ca_bundle=1 24000 if test -n "$gtlslib"; then 24001 if test "x$cross_compiling" != "xyes"; then 24002 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$gtlslib" 24003 export CURL_LIBRARY_PATH 24004 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to CURL_LIBRARY_PATH" >&5 24005 $as_echo "$as_me: Added $gtlslib to CURL_LIBRARY_PATH" >&6;} 24006 fi 24007 fi 24008 for ac_func in gnutls_certificate_set_x509_key_file2 gnutls_alpn_set_protocols gnutls_ocsp_req_init 24009 do : 24010 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 24011 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 24012 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 24013 cat >>confdefs.h <<_ACEOF 24014 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 24015 _ACEOF 24016 24017 fi 24018 done 24019 24020 fi 24021 24022 fi 24023 24024 fi 24025 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg" 24026 fi 24027 24028 24029 if test "$GNUTLS_ENABLED" = "1"; then 24030 USE_GNUTLS_NETTLE= 24031 # First check if we can detect either crypto library via transitive linking 24032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5 24033 $as_echo_n "checking for nettle_MD5Init in -lgnutls... " >&6; } 24034 if ${ac_cv_lib_gnutls_nettle_MD5Init+:} false; then : 24035 $as_echo_n "(cached) " >&6 24036 else 24037 ac_check_lib_save_LIBS=$LIBS 24038 LIBS="-lgnutls $LIBS" 24039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24040 /* end confdefs.h. */ 24041 24042 24043 #ifdef __cplusplus 24044 extern "C" 24045 #endif 24046 char nettle_MD5Init (); 24047 int main (void) 24048 { 24049 return nettle_MD5Init (); 24050 ; 24051 return 0; 24052 } 24053 _ACEOF 24054 if ac_fn_c_try_link "$LINENO"; then : 24055 ac_cv_lib_gnutls_nettle_MD5Init=yes 24056 else 24057 ac_cv_lib_gnutls_nettle_MD5Init=no 24058 fi 24059 rm -f core conftest.err conftest.$ac_objext \ 24060 conftest$ac_exeext conftest.$ac_ext 24061 LIBS=$ac_check_lib_save_LIBS 24062 fi 24063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5 24064 $as_echo "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; } 24065 if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes; then : 24066 USE_GNUTLS_NETTLE=1 24067 fi 24068 24069 if test "$USE_GNUTLS_NETTLE" = ""; then 24070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgnutls" >&5 24071 $as_echo_n "checking for gcry_control in -lgnutls... " >&6; } 24072 if ${ac_cv_lib_gnutls_gcry_control+:} false; then : 24073 $as_echo_n "(cached) " >&6 24074 else 24075 ac_check_lib_save_LIBS=$LIBS 24076 LIBS="-lgnutls $LIBS" 24077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24078 /* end confdefs.h. */ 24079 24080 24081 #ifdef __cplusplus 24082 extern "C" 24083 #endif 24084 char gcry_control (); 24085 int main (void) 24086 { 24087 return gcry_control (); 24088 ; 24089 return 0; 24090 } 24091 _ACEOF 24092 if ac_fn_c_try_link "$LINENO"; then : 24093 ac_cv_lib_gnutls_gcry_control=yes 24094 else 24095 ac_cv_lib_gnutls_gcry_control=no 24096 fi 24097 rm -f core conftest.err conftest.$ac_objext \ 24098 conftest$ac_exeext conftest.$ac_ext 24099 LIBS=$ac_check_lib_save_LIBS 24100 fi 24101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gcry_control" >&5 24102 $as_echo "$ac_cv_lib_gnutls_gcry_control" >&6; } 24103 if test "x$ac_cv_lib_gnutls_gcry_control" = xyes; then : 24104 USE_GNUTLS_NETTLE=0 24105 fi 24106 24107 fi 24108 # If not, try linking directly to both of them to see if they are available 24109 if test "$USE_GNUTLS_NETTLE" = ""; then 24110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5 24111 $as_echo_n "checking for nettle_MD5Init in -lnettle... " >&6; } 24112 if ${ac_cv_lib_nettle_nettle_MD5Init+:} false; then : 24113 $as_echo_n "(cached) " >&6 24114 else 24115 ac_check_lib_save_LIBS=$LIBS 24116 LIBS="-lnettle $LIBS" 24117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24118 /* end confdefs.h. */ 24119 24120 24121 #ifdef __cplusplus 24122 extern "C" 24123 #endif 24124 char nettle_MD5Init (); 24125 int main (void) 24126 { 24127 return nettle_MD5Init (); 24128 ; 24129 return 0; 24130 } 24131 _ACEOF 24132 if ac_fn_c_try_link "$LINENO"; then : 24133 ac_cv_lib_nettle_nettle_MD5Init=yes 24134 else 24135 ac_cv_lib_nettle_nettle_MD5Init=no 24136 fi 24137 rm -f core conftest.err conftest.$ac_objext \ 24138 conftest$ac_exeext conftest.$ac_ext 24139 LIBS=$ac_check_lib_save_LIBS 24140 fi 24141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5 24142 $as_echo "$ac_cv_lib_nettle_nettle_MD5Init" >&6; } 24143 if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes; then : 24144 USE_GNUTLS_NETTLE=1 24145 fi 24146 24147 fi 24148 if test "$USE_GNUTLS_NETTLE" = ""; then 24149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5 24150 $as_echo_n "checking for gcry_control in -lgcrypt... " >&6; } 24151 if ${ac_cv_lib_gcrypt_gcry_control+:} false; then : 24152 $as_echo_n "(cached) " >&6 24153 else 24154 ac_check_lib_save_LIBS=$LIBS 24155 LIBS="-lgcrypt $LIBS" 24156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24157 /* end confdefs.h. */ 24158 24159 24160 #ifdef __cplusplus 24161 extern "C" 24162 #endif 24163 char gcry_control (); 24164 int main (void) 24165 { 24166 return gcry_control (); 24167 ; 24168 return 0; 24169 } 24170 _ACEOF 24171 if ac_fn_c_try_link "$LINENO"; then : 24172 ac_cv_lib_gcrypt_gcry_control=yes 24173 else 24174 ac_cv_lib_gcrypt_gcry_control=no 24175 fi 24176 rm -f core conftest.err conftest.$ac_objext \ 24177 conftest$ac_exeext conftest.$ac_ext 24178 LIBS=$ac_check_lib_save_LIBS 24179 fi 24180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5 24181 $as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; } 24182 if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then : 24183 USE_GNUTLS_NETTLE=0 24184 fi 24185 24186 fi 24187 if test "$USE_GNUTLS_NETTLE" = ""; then 24188 as_fn_error $? "GnuTLS found, but neither gcrypt nor nettle found" "$LINENO" 5 24189 fi 24190 if test "$USE_GNUTLS_NETTLE" = "1"; then 24191 24192 $as_echo "#define USE_GNUTLS_NETTLE 1" >>confdefs.h 24193 24194 USE_GNUTLS_NETTLE=1 24195 24196 LIBS="-lnettle $LIBS" 24197 else 24198 LIBS="-lgcrypt $LIBS" 24199 fi 24200 fi 24201 24202 if test "$GNUTLS_ENABLED" = "1"; then 24203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5 24204 $as_echo_n "checking for gnutls_srp_verifier in -lgnutls... " >&6; } 24205 if ${ac_cv_lib_gnutls_gnutls_srp_verifier+:} false; then : 24206 $as_echo_n "(cached) " >&6 24207 else 24208 ac_check_lib_save_LIBS=$LIBS 24209 LIBS="-lgnutls $LIBS" 24210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24211 /* end confdefs.h. */ 24212 24213 24214 #ifdef __cplusplus 24215 extern "C" 24216 #endif 24217 char gnutls_srp_verifier (); 24218 int main (void) 24219 { 24220 return gnutls_srp_verifier (); 24221 ; 24222 return 0; 24223 } 24224 _ACEOF 24225 if ac_fn_c_try_link "$LINENO"; then : 24226 ac_cv_lib_gnutls_gnutls_srp_verifier=yes 24227 else 24228 ac_cv_lib_gnutls_gnutls_srp_verifier=no 24229 fi 24230 rm -f core conftest.err conftest.$ac_objext \ 24231 conftest$ac_exeext conftest.$ac_ext 24232 LIBS=$ac_check_lib_save_LIBS 24233 fi 24234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5 24235 $as_echo "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; } 24236 if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes; then : 24237 24238 24239 $as_echo "#define HAVE_GNUTLS_SRP 1" >>confdefs.h 24240 24241 HAVE_GNUTLS_SRP=1 24242 24243 24244 fi 24245 24246 fi 24247 24248 24249 OPT_POLARSSL=no 24250 24251 _cppflags=$CPPFLAGS 24252 _ldflags=$LDFLAGS 24253 24254 # Check whether --with-polarssl was given. 24255 if test "${with_polarssl+set}" = set; then : 24256 withval=$with_polarssl; OPT_POLARSSL=$withval 24257 fi 24258 24259 24260 if test -z "$ssl_backends" -o "x$OPT_POLARSSL" != xno; then 24261 ssl_msg= 24262 24263 if test X"$OPT_POLARSSL" != Xno; then 24264 24265 if test "$OPT_POLARSSL" = "yes"; then 24266 OPT_POLARSSL="" 24267 fi 24268 24269 if test -z "$OPT_POLARSSL" ; then 24270 24271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for havege_init in -lpolarssl" >&5 24272 $as_echo_n "checking for havege_init in -lpolarssl... " >&6; } 24273 if ${ac_cv_lib_polarssl_havege_init+:} false; then : 24274 $as_echo_n "(cached) " >&6 24275 else 24276 ac_check_lib_save_LIBS=$LIBS 24277 LIBS="-lpolarssl $LIBS" 24278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24279 /* end confdefs.h. */ 24280 24281 24282 #ifdef __cplusplus 24283 extern "C" 24284 #endif 24285 char havege_init (); 24286 int main (void) 24287 { 24288 return havege_init (); 24289 ; 24290 return 0; 24291 } 24292 _ACEOF 24293 if ac_fn_c_try_link "$LINENO"; then : 24294 ac_cv_lib_polarssl_havege_init=yes 24295 else 24296 ac_cv_lib_polarssl_havege_init=no 24297 fi 24298 rm -f core conftest.err conftest.$ac_objext \ 24299 conftest$ac_exeext conftest.$ac_ext 24300 LIBS=$ac_check_lib_save_LIBS 24301 fi 24302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_havege_init" >&5 24303 $as_echo "$ac_cv_lib_polarssl_havege_init" >&6; } 24304 if test "x$ac_cv_lib_polarssl_havege_init" = xyes; then : 24305 24306 24307 $as_echo "#define USE_POLARSSL 1" >>confdefs.h 24308 24309 USE_POLARSSL=1 24310 24311 POLARSSL_ENABLED=1 24312 USE_POLARSSL="yes" 24313 ssl_msg="PolarSSL" 24314 test polarssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 24315 24316 fi 24317 24318 fi 24319 24320 addld="" 24321 addlib="" 24322 addcflags="" 24323 polarssllib="" 24324 24325 if test "x$USE_POLARSSL" != "xyes"; then 24326 addld=-L$OPT_POLARSSL/lib$libsuff 24327 addcflags=-I$OPT_POLARSSL/include 24328 polarssllib=$OPT_POLARSSL/lib$libsuff 24329 24330 LDFLAGS="$LDFLAGS $addld" 24331 if test "$addcflags" != "-I/usr/include"; then 24332 CPPFLAGS="$CPPFLAGS $addcflags" 24333 fi 24334 24335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5 24336 $as_echo_n "checking for ssl_init in -lpolarssl... " >&6; } 24337 if ${ac_cv_lib_polarssl_ssl_init+:} false; then : 24338 $as_echo_n "(cached) " >&6 24339 else 24340 ac_check_lib_save_LIBS=$LIBS 24341 LIBS="-lpolarssl $LIBS" 24342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24343 /* end confdefs.h. */ 24344 24345 24346 #ifdef __cplusplus 24347 extern "C" 24348 #endif 24349 char ssl_init (); 24350 int main (void) 24351 { 24352 return ssl_init (); 24353 ; 24354 return 0; 24355 } 24356 _ACEOF 24357 if ac_fn_c_try_link "$LINENO"; then : 24358 ac_cv_lib_polarssl_ssl_init=yes 24359 else 24360 ac_cv_lib_polarssl_ssl_init=no 24361 fi 24362 rm -f core conftest.err conftest.$ac_objext \ 24363 conftest$ac_exeext conftest.$ac_ext 24364 LIBS=$ac_check_lib_save_LIBS 24365 fi 24366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5 24367 $as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; } 24368 if test "x$ac_cv_lib_polarssl_ssl_init" = xyes; then : 24369 24370 24371 $as_echo "#define USE_POLARSSL 1" >>confdefs.h 24372 24373 USE_POLARSSL=1 24374 24375 POLARSSL_ENABLED=1 24376 USE_POLARSSL="yes" 24377 ssl_msg="PolarSSL" 24378 test polarssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 24379 24380 else 24381 24382 CPPFLAGS=$_cppflags 24383 LDFLAGS=$_ldflags 24384 24385 fi 24386 24387 fi 24388 24389 if test "x$USE_POLARSSL" = "xyes"; then 24390 { $as_echo "$as_me:${as_lineno-$LINENO}: detected PolarSSL" >&5 24391 $as_echo "$as_me: detected PolarSSL" >&6;} 24392 check_for_ca_bundle=1 24393 LIBS="-lpolarssl $LIBS" 24394 24395 if test -n "$polarssllib"; then 24396 if test "x$cross_compiling" != "xyes"; then 24397 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$polarssllib" 24398 export CURL_LIBRARY_PATH 24399 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $polarssllib to CURL_LIBRARY_PATH" >&5 24400 $as_echo "$as_me: Added $polarssllib to CURL_LIBRARY_PATH" >&6;} 24401 fi 24402 fi 24403 fi 24404 24405 fi 24406 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg" 24407 fi 24408 24409 24410 OPT_MBEDTLS=no 24411 24412 _cppflags=$CPPFLAGS 24413 _ldflags=$LDFLAGS 24414 24415 # Check whether --with-mbedtls was given. 24416 if test "${with_mbedtls+set}" = set; then : 24417 withval=$with_mbedtls; OPT_MBEDTLS=$withval 24418 fi 24419 24420 24421 if test -z "$ssl_backends" -o "x$OPT_MBEDTLS" != xno; then 24422 ssl_msg= 24423 24424 if test X"$OPT_MBEDTLS" != Xno; then 24425 24426 if test "$OPT_MBEDTLS" = "yes"; then 24427 OPT_MBEDTLS="" 24428 fi 24429 24430 if test -z "$OPT_MBEDTLS" ; then 24431 24432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5 24433 $as_echo_n "checking for mbedtls_havege_init in -lmbedtls... " >&6; } 24434 if ${ac_cv_lib_mbedtls_mbedtls_havege_init+:} false; then : 24435 $as_echo_n "(cached) " >&6 24436 else 24437 ac_check_lib_save_LIBS=$LIBS 24438 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS" 24439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24440 /* end confdefs.h. */ 24441 24442 24443 #ifdef __cplusplus 24444 extern "C" 24445 #endif 24446 char mbedtls_havege_init (); 24447 int main (void) 24448 { 24449 return mbedtls_havege_init (); 24450 ; 24451 return 0; 24452 } 24453 _ACEOF 24454 if ac_fn_c_try_link "$LINENO"; then : 24455 ac_cv_lib_mbedtls_mbedtls_havege_init=yes 24456 else 24457 ac_cv_lib_mbedtls_mbedtls_havege_init=no 24458 fi 24459 rm -f core conftest.err conftest.$ac_objext \ 24460 conftest$ac_exeext conftest.$ac_ext 24461 LIBS=$ac_check_lib_save_LIBS 24462 fi 24463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5 24464 $as_echo "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; } 24465 if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes; then : 24466 24467 24468 $as_echo "#define USE_MBEDTLS 1" >>confdefs.h 24469 24470 USE_MBEDTLS=1 24471 24472 MBEDTLS_ENABLED=1 24473 USE_MBEDTLS="yes" 24474 ssl_msg="mbedTLS" 24475 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 24476 24477 fi 24478 24479 fi 24480 24481 addld="" 24482 addlib="" 24483 addcflags="" 24484 mbedtlslib="" 24485 24486 if test "x$USE_MBEDTLS" != "xyes"; then 24487 addld=-L$OPT_MBEDTLS/lib$libsuff 24488 addcflags=-I$OPT_MBEDTLS/include 24489 mbedtlslib=$OPT_MBEDTLS/lib$libsuff 24490 24491 LDFLAGS="$LDFLAGS $addld" 24492 if test "$addcflags" != "-I/usr/include"; then 24493 CPPFLAGS="$CPPFLAGS $addcflags" 24494 fi 24495 24496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5 24497 $as_echo_n "checking for mbedtls_ssl_init in -lmbedtls... " >&6; } 24498 if ${ac_cv_lib_mbedtls_mbedtls_ssl_init+:} false; then : 24499 $as_echo_n "(cached) " >&6 24500 else 24501 ac_check_lib_save_LIBS=$LIBS 24502 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS" 24503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24504 /* end confdefs.h. */ 24505 24506 24507 #ifdef __cplusplus 24508 extern "C" 24509 #endif 24510 char mbedtls_ssl_init (); 24511 int main (void) 24512 { 24513 return mbedtls_ssl_init (); 24514 ; 24515 return 0; 24516 } 24517 _ACEOF 24518 if ac_fn_c_try_link "$LINENO"; then : 24519 ac_cv_lib_mbedtls_mbedtls_ssl_init=yes 24520 else 24521 ac_cv_lib_mbedtls_mbedtls_ssl_init=no 24522 fi 24523 rm -f core conftest.err conftest.$ac_objext \ 24524 conftest$ac_exeext conftest.$ac_ext 24525 LIBS=$ac_check_lib_save_LIBS 24526 fi 24527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5 24528 $as_echo "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; } 24529 if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes; then : 24530 24531 24532 $as_echo "#define USE_MBEDTLS 1" >>confdefs.h 24533 24534 USE_MBEDTLS=1 24535 24536 MBEDTLS_ENABLED=1 24537 USE_MBEDTLS="yes" 24538 ssl_msg="mbedTLS" 24539 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 24540 24541 else 24542 24543 CPPFLAGS=$_cppflags 24544 LDFLAGS=$_ldflags 24545 24546 fi 24547 24548 fi 24549 24550 if test "x$USE_MBEDTLS" = "xyes"; then 24551 { $as_echo "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5 24552 $as_echo "$as_me: detected mbedTLS" >&6;} 24553 check_for_ca_bundle=1 24554 24555 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS" 24556 24557 if test -n "$mbedtlslib"; then 24558 if test "x$cross_compiling" != "xyes"; then 24559 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$mbedtlslib" 24560 export CURL_LIBRARY_PATH 24561 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to CURL_LIBRARY_PATH" >&5 24562 $as_echo "$as_me: Added $mbedtlslib to CURL_LIBRARY_PATH" >&6;} 24563 fi 24564 fi 24565 fi 24566 24567 fi 24568 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg" 24569 fi 24570 24571 24572 OPT_CYASSL=no 24573 24574 _cppflags=$CPPFLAGS 24575 _ldflags=$LDFLAGS 24576 24577 # Check whether --with-cyassl was given. 24578 if test "${with_cyassl+set}" = set; then : 24579 withval=$with_cyassl; OPT_CYASSL=$withval 24580 fi 24581 24582 24583 24584 # Check whether --with-wolfssl was given. 24585 if test "${with_wolfssl+set}" = set; then : 24586 withval=$with_wolfssl; OPT_CYASSL=$withval 24587 fi 24588 24589 24590 if test -z "$ssl_backends" -o "x$OPT_CYASSL" != xno; then 24591 ssl_msg= 24592 24593 if test X"$OPT_CYASSL" != Xno; then 24594 24595 if test "$OPT_CYASSL" = "yes"; then 24596 OPT_CYASSL="" 24597 fi 24598 24599 24600 cyassllibname=cyassl 24601 24602 if test -z "$OPT_CYASSL" ; then 24603 24604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5 24605 $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; } 24606 if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then : 24607 $as_echo_n "(cached) " >&6 24608 else 24609 ac_check_lib_save_LIBS=$LIBS 24610 LIBS="-lcyassl $LIBS" 24611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24612 /* end confdefs.h. */ 24613 24614 24615 #ifdef __cplusplus 24616 extern "C" 24617 #endif 24618 char CyaSSL_Init (); 24619 int main (void) 24620 { 24621 return CyaSSL_Init (); 24622 ; 24623 return 0; 24624 } 24625 _ACEOF 24626 if ac_fn_c_try_link "$LINENO"; then : 24627 ac_cv_lib_cyassl_CyaSSL_Init=yes 24628 else 24629 ac_cv_lib_cyassl_CyaSSL_Init=no 24630 fi 24631 rm -f core conftest.err conftest.$ac_objext \ 24632 conftest$ac_exeext conftest.$ac_ext 24633 LIBS=$ac_check_lib_save_LIBS 24634 fi 24635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5 24636 $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; } 24637 if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then : 24638 24639 24640 $as_echo "#define USE_CYASSL 1" >>confdefs.h 24641 24642 USE_CYASSL=1 24643 24644 CYASSL_ENABLED=1 24645 USE_CYASSL="yes" 24646 ssl_msg="CyaSSL" 24647 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 24648 24649 fi 24650 24651 fi 24652 24653 addld="" 24654 addlib="" 24655 addcflags="" 24656 cyassllib="" 24657 24658 if test "x$USE_CYASSL" != "xyes"; then 24659 addld=-L$OPT_CYASSL/lib$libsuff 24660 addcflags=-I$OPT_CYASSL/include 24661 cyassllib=$OPT_CYASSL/lib$libsuff 24662 24663 LDFLAGS="$LDFLAGS $addld" 24664 if test "$addcflags" != "-I/usr/include"; then 24665 CPPFLAGS="$CPPFLAGS $addcflags" 24666 fi 24667 24668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5 24669 $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; } 24670 if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then : 24671 $as_echo_n "(cached) " >&6 24672 else 24673 ac_check_lib_save_LIBS=$LIBS 24674 LIBS="-lcyassl $LIBS" 24675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24676 /* end confdefs.h. */ 24677 24678 24679 #ifdef __cplusplus 24680 extern "C" 24681 #endif 24682 char CyaSSL_Init (); 24683 int main (void) 24684 { 24685 return CyaSSL_Init (); 24686 ; 24687 return 0; 24688 } 24689 _ACEOF 24690 if ac_fn_c_try_link "$LINENO"; then : 24691 ac_cv_lib_cyassl_CyaSSL_Init=yes 24692 else 24693 ac_cv_lib_cyassl_CyaSSL_Init=no 24694 fi 24695 rm -f core conftest.err conftest.$ac_objext \ 24696 conftest$ac_exeext conftest.$ac_ext 24697 LIBS=$ac_check_lib_save_LIBS 24698 fi 24699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5 24700 $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; } 24701 if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then : 24702 24703 24704 $as_echo "#define USE_CYASSL 1" >>confdefs.h 24705 24706 USE_CYASSL=1 24707 24708 CYASSL_ENABLED=1 24709 USE_CYASSL="yes" 24710 ssl_msg="CyaSSL" 24711 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 24712 24713 else 24714 24715 CPPFLAGS=$_cppflags 24716 LDFLAGS=$_ldflags 24717 cyassllib="" 24718 24719 fi 24720 24721 fi 24722 24723 addld="" 24724 addlib="" 24725 addcflags="" 24726 24727 if test "x$USE_CYASSL" != "xyes"; then 24728 addld=-L$OPT_CYASSL/lib$libsuff 24729 addcflags=-I$OPT_CYASSL/include 24730 cyassllib=$OPT_CYASSL/lib$libsuff 24731 24732 LDFLAGS="$LDFLAGS $addld" 24733 if test "$addcflags" != "-I/usr/include"; then 24734 CPPFLAGS="$CPPFLAGS $addcflags" 24735 fi 24736 24737 cyassllibname=wolfssl 24738 my_ac_save_LIBS="$LIBS" 24739 LIBS="-l$cyassllibname -lm $LIBS" 24740 24741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lwolfssl" >&5 24742 $as_echo_n "checking for CyaSSL_Init in -lwolfssl... " >&6; } 24743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24744 /* end confdefs.h. */ 24745 24746 24747 /* These aren't needed for detection and confuse WolfSSL. 24748 They are set up properly later if it is detected. */ 24749 #undef SIZEOF_LONG 24750 #undef SIZEOF_LONG_LONG 24751 #include <cyassl/ssl.h> 24752 24753 int main (void) 24754 { 24755 24756 return CyaSSL_Init(); 24757 24758 ; 24759 return 0; 24760 } 24761 24762 _ACEOF 24763 if ac_fn_c_try_link "$LINENO"; then : 24764 24765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24766 $as_echo "yes" >&6; } 24767 24768 $as_echo "#define USE_CYASSL 1" >>confdefs.h 24769 24770 USE_CYASSL=1 24771 24772 CYASSL_ENABLED=1 24773 USE_CYASSL="yes" 24774 ssl_msg="WolfSSL" 24775 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 24776 24777 else 24778 24779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24780 $as_echo "no" >&6; } 24781 CPPFLAGS=$_cppflags 24782 LDFLAGS=$_ldflags 24783 cyassllib="" 24784 24785 fi 24786 rm -f core conftest.err conftest.$ac_objext \ 24787 conftest$ac_exeext conftest.$ac_ext 24788 LIBS="$my_ac_save_LIBS" 24789 fi 24790 24791 if test "x$USE_CYASSL" = "xyes"; then 24792 { $as_echo "$as_me:${as_lineno-$LINENO}: detected $cyassllibname" >&5 24793 $as_echo "$as_me: detected $cyassllibname" >&6;} 24794 check_for_ca_bundle=1 24795 24796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 24797 $as_echo_n "checking size of long long... " >&6; } 24798 if ${ac_cv_sizeof_long_long+:} false; then : 24799 $as_echo_n "(cached) " >&6 24800 else 24801 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence. 24802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24803 /* end confdefs.h. */ 24804 24805 #include <sys/types.h> 24806 24807 24808 int main (void) 24809 { 24810 switch (0) case 0: case (sizeof (long long) == $ac_size):; 24811 ; 24812 return 0; 24813 } 24814 _ACEOF 24815 if ac_fn_c_try_compile "$LINENO"; then : 24816 ac_cv_sizeof_long_long=$ac_size 24817 fi 24818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24819 if test x$ac_cv_sizeof_long_long != x ; then break; fi 24820 done 24821 24822 fi 24823 24824 if test x$ac_cv_sizeof_long_long = x ; then 24825 as_fn_error $? "cannot determine a size for long long" "$LINENO" 5 24826 fi 24827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 24828 $as_echo "$ac_cv_sizeof_long_long" >&6; } 24829 24830 cat >>confdefs.h <<_ACEOF 24831 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 24832 _ACEOF 24833 24834 24835 24836 for ac_header in cyassl/options.h 24837 do : 24838 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/options.h" "ac_cv_header_cyassl_options_h" "$ac_includes_default" 24839 if test "x$ac_cv_header_cyassl_options_h" = xyes; then : 24840 cat >>confdefs.h <<_ACEOF 24841 #define HAVE_CYASSL_OPTIONS_H 1 24842 _ACEOF 24843 24844 fi 24845 24846 done 24847 24848 24849 for ac_header in cyassl/error-ssl.h 24850 do : 24851 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/error-ssl.h" "ac_cv_header_cyassl_error_ssl_h" "$ac_includes_default" 24852 if test "x$ac_cv_header_cyassl_error_ssl_h" = xyes; then : 24853 cat >>confdefs.h <<_ACEOF 24854 #define HAVE_CYASSL_ERROR_SSL_H 1 24855 _ACEOF 24856 24857 fi 24858 24859 done 24860 24861 24862 LIBS="-l$cyassllibname -lm $LIBS" 24863 24864 if test "x$cyassllibname" = "xwolfssl"; then 24865 for ac_func in wolfSSLv3_client_method \ 24866 wolfSSL_get_peer_certificate \ 24867 wolfSSL_UseALPN 24868 do : 24869 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 24870 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 24871 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 24872 cat >>confdefs.h <<_ACEOF 24873 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 24874 _ACEOF 24875 24876 fi 24877 done 24878 24879 else 24880 for ac_func in CyaSSL_CTX_UseSupportedCurve \ 24881 CyaSSL_get_peer_certificate 24882 do : 24883 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 24884 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 24885 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 24886 cat >>confdefs.h <<_ACEOF 24887 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 24888 _ACEOF 24889 24890 fi 24891 done 24892 24893 fi 24894 24895 if test -n "$cyassllib"; then 24896 if test "x$cross_compiling" != "xyes"; then 24897 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$cyassllib" 24898 export CURL_LIBRARY_PATH 24899 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $cyassllib to CURL_LIBRARY_PATH" >&5 24900 $as_echo "$as_me: Added $cyassllib to CURL_LIBRARY_PATH" >&6;} 24901 fi 24902 fi 24903 24904 fi 24905 24906 fi 24907 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg" 24908 fi 24909 24910 24911 OPT_MESALINK=no 24912 24913 _cppflags=$CPPFLAGS 24914 _ldflags=$LDFLAGS 24915 24916 # Check whether --with-mesalink was given. 24917 if test "${with_mesalink+set}" = set; then : 24918 withval=$with_mesalink; OPT_MESALINK=$withval 24919 fi 24920 24921 24922 if test -z "$ssl_backends" -o "x$OPT_MESALINK" != xno; then 24923 ssl_msg= 24924 24925 if test X"$OPT_MESALINK" != Xno; then 24926 24927 if test "$OPT_MESALINK" = "yes"; then 24928 OPT_MESALINK="" 24929 fi 24930 24931 if test -z "$OPT_MESALINK" ; then 24932 24933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mesalink_library_init in -lmesalink" >&5 24934 $as_echo_n "checking for mesalink_library_init in -lmesalink... " >&6; } 24935 if ${ac_cv_lib_mesalink_mesalink_library_init+:} false; then : 24936 $as_echo_n "(cached) " >&6 24937 else 24938 ac_check_lib_save_LIBS=$LIBS 24939 LIBS="-lmesalink $LIBS" 24940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24941 /* end confdefs.h. */ 24942 24943 24944 #ifdef __cplusplus 24945 extern "C" 24946 #endif 24947 char mesalink_library_init (); 24948 int main (void) 24949 { 24950 return mesalink_library_init (); 24951 ; 24952 return 0; 24953 } 24954 _ACEOF 24955 if ac_fn_c_try_link "$LINENO"; then : 24956 ac_cv_lib_mesalink_mesalink_library_init=yes 24957 else 24958 ac_cv_lib_mesalink_mesalink_library_init=no 24959 fi 24960 rm -f core conftest.err conftest.$ac_objext \ 24961 conftest$ac_exeext conftest.$ac_ext 24962 LIBS=$ac_check_lib_save_LIBS 24963 fi 24964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mesalink_mesalink_library_init" >&5 24965 $as_echo "$ac_cv_lib_mesalink_mesalink_library_init" >&6; } 24966 if test "x$ac_cv_lib_mesalink_mesalink_library_init" = xyes; then : 24967 24968 24969 $as_echo "#define USE_MESALINK 1" >>confdefs.h 24970 24971 USE_MESALINK=1 24972 24973 MESALINK_ENABLED=1 24974 USE_MESALINK="yes" 24975 ssl_msg="MesaLink" 24976 test mesalink != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 24977 24978 fi 24979 24980 fi 24981 24982 addld="" 24983 addlib="" 24984 addcflags="" 24985 mesalinklib="" 24986 24987 if test "x$USE_MESALINK" != "xyes"; then 24988 addld=-L$OPT_MESALINK/lib$libsuff 24989 addcflags=-I$OPT_MESALINK/include 24990 mesalinklib=$OPT_MESALINK/lib$libsuff 24991 24992 LDFLAGS="$LDFLAGS $addld" 24993 if test "$addcflags" != "-I/usr/include"; then 24994 CPPFLAGS="$CPPFLAGS $addcflags" 24995 fi 24996 24997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mesalink_library_init in -lmesalink" >&5 24998 $as_echo_n "checking for mesalink_library_init in -lmesalink... " >&6; } 24999 if ${ac_cv_lib_mesalink_mesalink_library_init+:} false; then : 25000 $as_echo_n "(cached) " >&6 25001 else 25002 ac_check_lib_save_LIBS=$LIBS 25003 LIBS="-lmesalink $LIBS" 25004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25005 /* end confdefs.h. */ 25006 25007 25008 #ifdef __cplusplus 25009 extern "C" 25010 #endif 25011 char mesalink_library_init (); 25012 int main (void) 25013 { 25014 return mesalink_library_init (); 25015 ; 25016 return 0; 25017 } 25018 _ACEOF 25019 if ac_fn_c_try_link "$LINENO"; then : 25020 ac_cv_lib_mesalink_mesalink_library_init=yes 25021 else 25022 ac_cv_lib_mesalink_mesalink_library_init=no 25023 fi 25024 rm -f core conftest.err conftest.$ac_objext \ 25025 conftest$ac_exeext conftest.$ac_ext 25026 LIBS=$ac_check_lib_save_LIBS 25027 fi 25028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mesalink_mesalink_library_init" >&5 25029 $as_echo "$ac_cv_lib_mesalink_mesalink_library_init" >&6; } 25030 if test "x$ac_cv_lib_mesalink_mesalink_library_init" = xyes; then : 25031 25032 25033 $as_echo "#define USE_MESALINK 1" >>confdefs.h 25034 25035 USE_MESALINK=1 25036 25037 MESALINK_ENABLED=1 25038 USE_MESALINK="yes" 25039 ssl_msg="MesaLink" 25040 test mesalink != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes 25041 25042 else 25043 25044 CPPFLAGS=$_cppflags 25045 LDFLAGS=$_ldflags 25046 25047 fi 25048 25049 fi 25050 25051 if test "x$USE_MESALINK" = "xyes"; then 25052 { $as_echo "$as_me:${as_lineno-$LINENO}: detected MesaLink" >&5 25053 $as_echo "$as_me: detected MesaLink" >&6;} 25054 25055 LIBS="-lmesalink $LIBS" 25056 25057 if test -n "$mesalinklib"; then 25058 if test "x$cross_compiling" != "xyes"; then 25059 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$mesalinklib" 25060 export LD_LIBRARY_PATH 25061 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mesalinklib to LD_LIBRARY_PATH" >&5 25062 $as_echo "$as_me: Added $mesalinklib to LD_LIBRARY_PATH" >&6;} 25063 fi 25064 fi 25065 fi 25066 25067 fi 25068 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg" 25069 fi 25070 25071 25072 OPT_NSS=no 25073 25074 25075 # Check whether --with-nss was given. 25076 if test "${with_nss+set}" = set; then : 25077 withval=$with_nss; OPT_NSS=$withval 25078 fi 25079 25080 25081 if test -z "$ssl_backends" -o "x$OPT_NSS" != xno; then 25082 ssl_msg= 25083 25084 if test X"$OPT_NSS" != Xno; then 25085 25086 addld="" 25087 addlib="" 25088 addcflags="" 25089 nssprefix="" 25090 version="" 25091 25092 if test "x$OPT_NSS" = "xyes"; then 25093 25094 25095 if test -n "$PKG_CONFIG"; then 25096 PKGCONFIG="$PKG_CONFIG" 25097 else 25098 if test -n "$ac_tool_prefix"; then 25099 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 25100 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 25101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25102 $as_echo_n "checking for $ac_word... " >&6; } 25103 if ${ac_cv_path_PKGCONFIG+:} false; then : 25104 $as_echo_n "(cached) " >&6 25105 else 25106 case $PKGCONFIG in 25107 [\\/]* | ?:[\\/]*) 25108 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 25109 ;; 25110 *) 25111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25112 as_dummy="$PATH:/usr/bin:/usr/local/bin" 25113 for as_dir in $as_dummy 25114 do 25115 IFS=$as_save_IFS 25116 test -z "$as_dir" && as_dir=. 25117 for ac_exec_ext in '' $ac_executable_extensions; do 25118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25119 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 25120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25121 break 2 25122 fi 25123 done 25124 done 25125 IFS=$as_save_IFS 25126 25127 ;; 25128 esac 25129 fi 25130 PKGCONFIG=$ac_cv_path_PKGCONFIG 25131 if test -n "$PKGCONFIG"; then 25132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 25133 $as_echo "$PKGCONFIG" >&6; } 25134 else 25135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25136 $as_echo "no" >&6; } 25137 fi 25138 25139 25140 fi 25141 if test -z "$ac_cv_path_PKGCONFIG"; then 25142 ac_pt_PKGCONFIG=$PKGCONFIG 25143 # Extract the first word of "pkg-config", so it can be a program name with args. 25144 set dummy pkg-config; ac_word=$2 25145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25146 $as_echo_n "checking for $ac_word... " >&6; } 25147 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : 25148 $as_echo_n "(cached) " >&6 25149 else 25150 case $ac_pt_PKGCONFIG in 25151 [\\/]* | ?:[\\/]*) 25152 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 25153 ;; 25154 *) 25155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25156 as_dummy="$PATH:/usr/bin:/usr/local/bin" 25157 for as_dir in $as_dummy 25158 do 25159 IFS=$as_save_IFS 25160 test -z "$as_dir" && as_dir=. 25161 for ac_exec_ext in '' $ac_executable_extensions; do 25162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25163 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 25164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25165 break 2 25166 fi 25167 done 25168 done 25169 IFS=$as_save_IFS 25170 25171 ;; 25172 esac 25173 fi 25174 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 25175 if test -n "$ac_pt_PKGCONFIG"; then 25176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 25177 $as_echo "$ac_pt_PKGCONFIG" >&6; } 25178 else 25179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25180 $as_echo "no" >&6; } 25181 fi 25182 25183 if test "x$ac_pt_PKGCONFIG" = x; then 25184 PKGCONFIG="no" 25185 else 25186 case $cross_compiling:$ac_tool_warned in 25187 yes:) 25188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 25189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 25190 ac_tool_warned=yes ;; 25191 esac 25192 PKGCONFIG=$ac_pt_PKGCONFIG 25193 fi 25194 else 25195 PKGCONFIG="$ac_cv_path_PKGCONFIG" 25196 fi 25197 25198 fi 25199 25200 if test "x$PKGCONFIG" != "xno"; then 25201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5 25202 $as_echo_n "checking for nss options with pkg-config... " >&6; } 25203 itexists=` 25204 if test -n ""; then 25205 PKG_CONFIG_LIBDIR="" 25206 export PKG_CONFIG_LIBDIR 25207 fi 25208 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1` 25209 25210 if test -z "$itexists"; then 25211 PKGCONFIG="no" 25212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25213 $as_echo "no" >&6; } 25214 else 25215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 25216 $as_echo "found" >&6; } 25217 fi 25218 fi 25219 25220 25221 if test "$PKGCONFIG" != "no" ; then 25222 addlib=`$PKGCONFIG --libs nss` 25223 addcflags=`$PKGCONFIG --cflags nss` 25224 version=`$PKGCONFIG --modversion nss` 25225 nssprefix=`$PKGCONFIG --variable=prefix nss` 25226 else 25227 25228 check=`nss-config --version 2>/dev/null` 25229 if test -n "$check"; then 25230 addlib=`nss-config --libs` 25231 addcflags=`nss-config --cflags` 25232 version=`nss-config --version` 25233 nssprefix=`nss-config --prefix` 25234 else 25235 addlib="-lnss3" 25236 addcflags="" 25237 version="unknown" 25238 fi 25239 fi 25240 else 25241 NSS_PCDIR="$OPT_NSS/lib/pkgconfig" 25242 if test -f "$NSS_PCDIR/nss.pc"; then 25243 25244 if test -n "$PKG_CONFIG"; then 25245 PKGCONFIG="$PKG_CONFIG" 25246 else 25247 if test -n "$ac_tool_prefix"; then 25248 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 25249 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 25250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25251 $as_echo_n "checking for $ac_word... " >&6; } 25252 if ${ac_cv_path_PKGCONFIG+:} false; then : 25253 $as_echo_n "(cached) " >&6 25254 else 25255 case $PKGCONFIG in 25256 [\\/]* | ?:[\\/]*) 25257 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 25258 ;; 25259 *) 25260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25261 as_dummy="$PATH:/usr/bin:/usr/local/bin" 25262 for as_dir in $as_dummy 25263 do 25264 IFS=$as_save_IFS 25265 test -z "$as_dir" && as_dir=. 25266 for ac_exec_ext in '' $ac_executable_extensions; do 25267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25268 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 25269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25270 break 2 25271 fi 25272 done 25273 done 25274 IFS=$as_save_IFS 25275 25276 ;; 25277 esac 25278 fi 25279 PKGCONFIG=$ac_cv_path_PKGCONFIG 25280 if test -n "$PKGCONFIG"; then 25281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 25282 $as_echo "$PKGCONFIG" >&6; } 25283 else 25284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25285 $as_echo "no" >&6; } 25286 fi 25287 25288 25289 fi 25290 if test -z "$ac_cv_path_PKGCONFIG"; then 25291 ac_pt_PKGCONFIG=$PKGCONFIG 25292 # Extract the first word of "pkg-config", so it can be a program name with args. 25293 set dummy pkg-config; ac_word=$2 25294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25295 $as_echo_n "checking for $ac_word... " >&6; } 25296 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : 25297 $as_echo_n "(cached) " >&6 25298 else 25299 case $ac_pt_PKGCONFIG in 25300 [\\/]* | ?:[\\/]*) 25301 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. 25302 ;; 25303 *) 25304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25305 as_dummy="$PATH:/usr/bin:/usr/local/bin" 25306 for as_dir in $as_dummy 25307 do 25308 IFS=$as_save_IFS 25309 test -z "$as_dir" && as_dir=. 25310 for ac_exec_ext in '' $ac_executable_extensions; do 25311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25312 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 25313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25314 break 2 25315 fi 25316 done 25317 done 25318 IFS=$as_save_IFS 25319 25320 ;; 25321 esac 25322 fi 25323 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG 25324 if test -n "$ac_pt_PKGCONFIG"; then 25325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 25326 $as_echo "$ac_pt_PKGCONFIG" >&6; } 25327 else 25328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25329 $as_echo "no" >&6; } 25330 fi 25331 25332 if test "x$ac_pt_PKGCONFIG" = x; then 25333 PKGCONFIG="no" 25334 else 25335 case $cross_compiling:$ac_tool_warned in 25336 yes:) 25337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 25338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 25339 ac_tool_warned=yes ;; 25340 esac 25341 PKGCONFIG=$ac_pt_PKGCONFIG 25342 fi 25343 else 25344 PKGCONFIG="$ac_cv_path_PKGCONFIG" 25345 fi 25346 25347 fi 25348 25349 if test "x$PKGCONFIG" != "xno"; then 25350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5 25351 $as_echo_n "checking for nss options with pkg-config... " >&6; } 25352 itexists=` 25353 if test -n "$NSS_PCDIR"; then