1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.64 for curl -. 4# 5# Report bugs to <a suitable curl mailing list: http://curl.haxx.se/mail/>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software 9# Foundation, Inc. 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 - 2011 Daniel Stenberg, <daniel@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## M4sh Initialization. ## 19## -------------------- ## 20 21# Be more Bourne compatible 22DUALCASE=1; export DUALCASE # for MKS sh 23if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 24 emulate sh 25 NULLCMD=: 26 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 27 # is contrary to our usage. Disable this feature. 28 alias -g '${1+"$@"}'='"$@"' 29 setopt NO_GLOB_SUBST 30else 31 case `(set -o) 2>/dev/null` in #( 32 *posix*) : 33 set -o posix ;; #( 34 *) : 35 ;; 36esac 37fi 38 39 40as_nl=' 41' 42export as_nl 43# Printing a long string crashes Solaris 7 /usr/bin/printf. 44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 47# Prefer a ksh shell builtin over an external printf program on Solaris, 48# but without wasting forks for bash or zsh. 49if test -z "$BASH_VERSION$ZSH_VERSION" \ 50 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 51 as_echo='print -r --' 52 as_echo_n='print -rn --' 53elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 54 as_echo='printf %s\n' 55 as_echo_n='printf %s' 56else 57 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 58 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 59 as_echo_n='/usr/ucb/echo -n' 60 else 61 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 62 as_echo_n_body='eval 63 arg=$1; 64 case $arg in #( 65 *"$as_nl"*) 66 expr "X$arg" : "X\\(.*\\)$as_nl"; 67 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 68 esac; 69 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 70 ' 71 export as_echo_n_body 72 as_echo_n='sh -c $as_echo_n_body as_echo' 73 fi 74 export as_echo_body 75 as_echo='sh -c $as_echo_body as_echo' 76fi 77 78 79 if test -z "$curl_cv_PATH_SEPARATOR"; then 80 if test -z "$PATH"; then 81 as_fn_error "PATH not set. Cannot continue without PATH being set." 82 fi 83 tst_dirs_col=0 84 tst_save_IFS=$IFS; IFS=':' 85 for tst_dir in $PATH; do 86 IFS=$tst_save_IFS 87 test -d "$tst_dir" && tst_dirs_col=`expr $tst_dirs_col + 1` 88 done 89 IFS=$tst_save_IFS 90 tst_dirs_sem=0 91 tst_save_IFS=$IFS; IFS=';' 92 for tst_dir in $PATH; do 93 IFS=$tst_save_IFS 94 test -d "$tst_dir" && tst_dirs_sem=`expr $tst_dirs_sem + 1` 95 done 96 IFS=$tst_save_IFS 97 if test $tst_dirs_sem -eq $tst_dirs_col; then 98 if test -z "$PATH_SEPARATOR"; then 99 as_fn_error "PATH_SEPARATOR not set. Cannot continue without it." 100 fi 101 else 102 if test $tst_dirs_sem -gt $tst_dirs_col; then 103 tst_auto_separator=';' 104 else 105 tst_auto_separator=':' 106 fi 107 if test -z "$PATH_SEPARATOR"; then 108 PATH_SEPARATOR="$tst_auto_separator" 109 fi 110 fi 111 curl_cv_PATH_SEPARATOR="$PATH_SEPARATOR" 112 fi 113 114 115 116 117 118# IFS 119# We need space, tab and new line, in precisely that order. Quoting is 120# there to prevent editors from complaining about space-tab. 121# (If _AS_PATH_WALK were called with IFS unset, it would disable word 122# splitting by setting IFS to empty value.) 123IFS=" "" $as_nl" 124 125# Find who we are. Look in the path if we contain no directory separator. 126case $0 in #(( 127 *[\\/]* ) as_myself=$0 ;; 128 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 129for as_dir in $PATH 130do 131 IFS=$as_save_IFS 132 test -z "$as_dir" && as_dir=. 133 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 134 done 135IFS=$as_save_IFS 136 137 ;; 138esac 139# We did not find ourselves, most probably we were run as `sh COMMAND' 140# in which case we are not to be found in the path. 141if test "x$as_myself" = x; then 142 as_myself=$0 143fi 144if test ! -f "$as_myself"; then 145 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 146 exit 1 147fi 148 149# Unset variables that we do not need and which cause bugs (e.g. in 150# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 151# suppresses any "Segmentation fault" message there. '((' could 152# trigger a bug in pdksh 5.2.14. 153for as_var in BASH_ENV ENV MAIL MAILPATH 154do eval test x\${$as_var+set} = xset \ 155 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 156done 157PS1='$ ' 158PS2='> ' 159PS4='+ ' 160 161# NLS nuisances. 162LC_ALL=C 163export LC_ALL 164LANGUAGE=C 165export LANGUAGE 166 167# CDPATH. 168(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 169 170if test "x$CONFIG_SHELL" = x; then 171 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 172 emulate sh 173 NULLCMD=: 174 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 175 # is contrary to our usage. Disable this feature. 176 alias -g '\${1+\"\$@\"}'='\"\$@\"' 177 setopt NO_GLOB_SUBST 178else 179 case \`(set -o) 2>/dev/null\` in #( 180 *posix*) : 181 set -o posix ;; #( 182 *) : 183 ;; 184esac 185fi 186" 187 as_required="as_fn_return () { (exit \$1); } 188as_fn_success () { as_fn_return 0; } 189as_fn_failure () { as_fn_return 1; } 190as_fn_ret_success () { return 0; } 191as_fn_ret_failure () { return 1; } 192 193exitcode=0 194as_fn_success || { exitcode=1; echo as_fn_success failed.; } 195as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 196as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 197as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 198if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 199 200else 201 exitcode=1; echo positional parameters were not saved. 202fi 203test x\$exitcode = x0 || exit 1" 204 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 205 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 206 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 207 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 208test \$(( 1 + 1 )) = 2 || exit 1 209 210 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 211 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 212 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 213 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 214 PATH=/empty FPATH=/empty; export PATH FPATH 215 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 216 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 217 if (eval "$as_required") 2>/dev/null; then : 218 as_have_required=yes 219else 220 as_have_required=no 221fi 222 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 223 224else 225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 226as_found=false 227for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 228do 229 IFS=$as_save_IFS 230 test -z "$as_dir" && as_dir=. 231 as_found=: 232 case $as_dir in #( 233 /*) 234 for as_base in sh bash ksh sh5; do 235 # Try only shells that exist, to save several forks. 236 as_shell=$as_dir/$as_base 237 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 238 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 239 CONFIG_SHELL=$as_shell as_have_required=yes 240 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 241 break 2 242fi 243fi 244 done;; 245 esac 246 as_found=false 247done 248$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 249 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 250 CONFIG_SHELL=$SHELL as_have_required=yes 251fi; } 252IFS=$as_save_IFS 253 254 255 if test "x$CONFIG_SHELL" != x; then : 256 # We cannot yet assume a decent shell, so we have to provide a 257 # neutralization value for shells without unset; and this also 258 # works around shells that cannot unset nonexistent variables. 259 BASH_ENV=/dev/null 260 ENV=/dev/null 261 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 262 export CONFIG_SHELL 263 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 264fi 265 266 if test x$as_have_required = xno; then : 267 $as_echo "$0: This script requires a shell more modern than all" 268 $as_echo "$0: the shells that I found on your system." 269 if test x${ZSH_VERSION+set} = xset ; then 270 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 271 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 272 else 273 $as_echo "$0: Please tell bug-autoconf@gnu.org and a suitable curl 274$0: mailing list: http://curl.haxx.se/mail/ about your 275$0: system, including any error possibly output before this 276$0: message. Then install a modern shell, or manually run 277$0: the script under such a shell if you do have one." 278 fi 279 exit 1 280fi 281fi 282fi 283SHELL=${CONFIG_SHELL-/bin/sh} 284export SHELL 285# Unset more variables known to interfere with behavior of common tools. 286CLICOLOR_FORCE= GREP_OPTIONS= 287unset CLICOLOR_FORCE GREP_OPTIONS 288 289## --------------------- ## 290## M4sh Shell Functions. ## 291## --------------------- ## 292# as_fn_unset VAR 293# --------------- 294# Portably unset VAR. 295as_fn_unset () 296{ 297 { eval $1=; unset $1;} 298} 299as_unset=as_fn_unset 300 301# as_fn_set_status STATUS 302# ----------------------- 303# Set $? to STATUS, without forking. 304as_fn_set_status () 305{ 306 return $1 307} # as_fn_set_status 308 309# as_fn_exit STATUS 310# ----------------- 311# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 312as_fn_exit () 313{ 314 set +e 315 as_fn_set_status $1 316 exit $1 317} # as_fn_exit 318 319# as_fn_mkdir_p 320# ------------- 321# Create "$as_dir" as a directory, including parents if necessary. 322as_fn_mkdir_p () 323{ 324 325 case $as_dir in #( 326 -*) as_dir=./$as_dir;; 327 esac 328 test -d "$as_dir" || eval $as_mkdir_p || { 329 as_dirs= 330 while :; do 331 case $as_dir in #( 332 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 333 *) as_qdir=$as_dir;; 334 esac 335 as_dirs="'$as_qdir' $as_dirs" 336 as_dir=`$as_dirname -- "$as_dir" || 337$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 338 X"$as_dir" : 'X\(//\)[^/]' \| \ 339 X"$as_dir" : 'X\(//\)$' \| \ 340 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 341$as_echo X"$as_dir" | 342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 343 s//\1/ 344 q 345 } 346 /^X\(\/\/\)[^/].*/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)$/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\).*/{ 355 s//\1/ 356 q 357 } 358 s/.*/./; q'` 359 test -d "$as_dir" && break 360 done 361 test -z "$as_dirs" || eval "mkdir $as_dirs" 362 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 363 364 365} # as_fn_mkdir_p 366# as_fn_append VAR VALUE 367# ---------------------- 368# Append the text in VALUE to the end of the definition contained in VAR. Take 369# advantage of any shell optimizations that allow amortized linear growth over 370# repeated appends, instead of the typical quadratic growth present in naive 371# implementations. 372if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 373 eval 'as_fn_append () 374 { 375 eval $1+=\$2 376 }' 377else 378 as_fn_append () 379 { 380 eval $1=\$$1\$2 381 } 382fi # as_fn_append 383 384# as_fn_arith ARG... 385# ------------------ 386# Perform arithmetic evaluation on the ARGs, and store the result in the 387# global $as_val. Take advantage of shells that can avoid forks. The arguments 388# must be portable across $(()) and expr. 389if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 390 eval 'as_fn_arith () 391 { 392 as_val=$(( $* )) 393 }' 394else 395 as_fn_arith () 396 { 397 as_val=`expr "$@" || test $? -eq 1` 398 } 399fi # as_fn_arith 400 401 402# as_fn_error ERROR [LINENO LOG_FD] 403# --------------------------------- 404# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 405# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 406# script with status $?, using 1 if that was 0. 407as_fn_error () 408{ 409 as_status=$?; test $as_status -eq 0 && as_status=1 410 if test "$3"; then 411 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 412 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 413 fi 414 $as_echo "$as_me: error: $1" >&2 415 as_fn_exit $as_status 416} # as_fn_error 417 418if expr a : '\(a\)' >/dev/null 2>&1 && 419 test "X`expr 00001 : '.*\(...\)'`" = X001; then 420 as_expr=expr 421else 422 as_expr=false 423fi 424 425if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 426 as_basename=basename 427else 428 as_basename=false 429fi 430 431if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 432 as_dirname=dirname 433else 434 as_dirname=false 435fi 436 437as_me=`$as_basename -- "$0" || 438$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 439 X"$0" : 'X\(//\)$' \| \ 440 X"$0" : 'X\(/\)' \| . 2>/dev/null || 441$as_echo X/"$0" | 442 sed '/^.*\/\([^/][^/]*\)\/*$/{ 443 s//\1/ 444 q 445 } 446 /^X\/\(\/\/\)$/{ 447 s//\1/ 448 q 449 } 450 /^X\/\(\/\).*/{ 451 s//\1/ 452 q 453 } 454 s/.*/./; q'` 455 456# Avoid depending upon Character Ranges. 457as_cr_letters='abcdefghijklmnopqrstuvwxyz' 458as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 459as_cr_Letters=$as_cr_letters$as_cr_LETTERS 460as_cr_digits='0123456789' 461as_cr_alnum=$as_cr_Letters$as_cr_digits 462 463 464 as_lineno_1=$LINENO as_lineno_1a=$LINENO 465 as_lineno_2=$LINENO as_lineno_2a=$LINENO 466 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 467 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 468 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 469 sed -n ' 470 p 471 /[$]LINENO/= 472 ' <$as_myself | 473 sed ' 474 s/[$]LINENO.*/&-/ 475 t lineno 476 b 477 :lineno 478 N 479 :loop 480 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 481 t loop 482 s/-\n.*// 483 ' >$as_me.lineno && 484 chmod +x "$as_me.lineno" || 485 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 486 487 # Don't try to exec as it changes $[0], causing all sort of problems 488 # (the dirname of $[0] is not the place where we might find the 489 # original and so on. Autoconf is especially sensitive to this). 490 . "./$as_me.lineno" 491 # Exit status is that of the last command. 492 exit 493} 494 495ECHO_C= ECHO_N= ECHO_T= 496case `echo -n x` in #((((( 497-n*) 498 case `echo 'xy\c'` in 499 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 500 xy) ECHO_C='\c';; 501 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 502 ECHO_T=' ';; 503 esac;; 504*) 505 ECHO_N='-n';; 506esac 507 508rm -f conf$$ conf$$.exe conf$$.file 509if test -d conf$$.dir; then 510 rm -f conf$$.dir/conf$$.file 511else 512 rm -f conf$$.dir 513 mkdir conf$$.dir 2>/dev/null 514fi 515if (echo >conf$$.file) 2>/dev/null; then 516 if ln -s conf$$.file conf$$ 2>/dev/null; then 517 as_ln_s='ln -s' 518 # ... but there are two gotchas: 519 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 520 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 521 # In both cases, we have to default to `cp -p'. 522 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 523 as_ln_s='cp -p' 524 elif ln conf$$.file conf$$ 2>/dev/null; then 525 as_ln_s=ln 526 else 527 as_ln_s='cp -p' 528 fi 529else 530 as_ln_s='cp -p' 531fi 532rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 533rmdir conf$$.dir 2>/dev/null 534 535if mkdir -p . 2>/dev/null; then 536 as_mkdir_p='mkdir -p "$as_dir"' 537else 538 test -d ./-p && rmdir ./-p 539 as_mkdir_p=false 540fi 541 542if test -x / >/dev/null 2>&1; then 543 as_test_x='test -x' 544else 545 if ls -dL / >/dev/null 2>&1; then 546 as_ls_L_option=L 547 else 548 as_ls_L_option= 549 fi 550 as_test_x=' 551 eval sh -c '\'' 552 if test -d "$1"; then 553 test -d "$1/."; 554 else 555 case $1 in #( 556 -*)set "./$1";; 557 esac; 558 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 559 ???[sx]*):;;*)false;;esac;fi 560 '\'' sh 561 ' 562fi 563as_executable_p=$as_test_x 564 565# Sed expression to map a string onto a valid CPP name. 566as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 567 568# Sed expression to map a string onto a valid variable name. 569as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 570 571SHELL=${CONFIG_SHELL-/bin/sh} 572 573 574exec 7<&0 </dev/null 6>&1 575 576# Name of the host. 577# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 578# so uname gets run too. 579ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 580 581# 582# Initializations. 583# 584ac_default_prefix=/usr/local 585ac_clean_files= 586ac_config_libobj_dir=. 587LIBOBJS= 588cross_compiling=no 589subdirs= 590MFLAGS= 591MAKEFLAGS= 592 593# Identity of this package. 594PACKAGE_NAME='curl' 595PACKAGE_TARNAME='curl' 596PACKAGE_VERSION='-' 597PACKAGE_STRING='curl -' 598PACKAGE_BUGREPORT='a suitable curl mailing list: http://curl.haxx.se/mail/' 599PACKAGE_URL='' 600 601ac_unique_file="lib/urldata.h" 602# Factoring default headers for most tests. 603ac_includes_default="\ 604#include <stdio.h> 605#ifdef HAVE_SYS_TYPES_H 606# include <sys/types.h> 607#endif 608#ifdef HAVE_SYS_STAT_H 609# include <sys/stat.h> 610#endif 611#ifdef STDC_HEADERS 612# include <stdlib.h> 613# include <stddef.h> 614#else 615# ifdef HAVE_STDLIB_H 616# include <stdlib.h> 617# endif 618#endif 619#ifdef HAVE_STRING_H 620# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 621# include <memory.h> 622# endif 623# include <string.h> 624#endif 625#ifdef HAVE_STRINGS_H 626# include <strings.h> 627#endif 628#ifdef HAVE_INTTYPES_H 629# include <inttypes.h> 630#endif 631#ifdef HAVE_STDINT_H 632# include <stdint.h> 633#endif 634#ifdef HAVE_UNISTD_H 635# include <unistd.h> 636#endif" 637 638enable_option_checking=no 639ac_subst_vars='LTLIBOBJS 640LIBOBJS 641SUPPORT_PROTOCOLS 642SUPPORT_FEATURES 643ENABLE_SHARED 644CROSSCOMPILING_FALSE 645CROSSCOMPILING_TRUE 646CURL_NETWORK_LIBS 647TEST_SERVER_LIBS 648CURL_LIBS 649LIBCURL_LIBS 650SONAME_BUMP_FALSE 651SONAME_BUMP_TRUE 652USE_WINDOWS_SSPI 653BUILD_LIBHOSTNAME_FALSE 654BUILD_LIBHOSTNAME_TRUE 655USE_EMBEDDED_ARES_FALSE 656USE_EMBEDDED_ARES_TRUE 657USE_ARES 658subdirs 659USE_MANUAL_FALSE 660USE_MANUAL_TRUE 661MANOPT 662NROFF 663PERL 664IPV6_ENABLED 665IDN_ENABLED 666USE_LIBRTMP 667USE_LIBSSH2 668CURL_CA_BUNDLE 669SSL_ENABLED 670USE_AXTLS 671USE_NSS 672HAVE_PK11_CREATEGENERICOBJECT 673USE_CYASSL 674USE_POLARSSL 675HAVE_GNUTLS_SRP 676USE_GNUTLS 677HAVE_SSLEAY_SRP 678RANDOM_FILE 679HAVE_LIBZ_FALSE 680HAVE_LIBZ_TRUE 681HAVE_LIBZ 682USE_SSLEAY 683PKGCONFIG 684KRB4_ENABLED 685USE_OPENLDAP 686CURL_DISABLE_GOPHER 687CURL_DISABLE_SMTP 688CURL_DISABLE_IMAP 689CURL_DISABLE_POP3 690CURL_DISABLE_TFTP 691CURL_DISABLE_TELNET 692CURL_DISABLE_DICT 693CURL_DISABLE_PROXY 694HAVE_LDAP_SSL 695CURL_DISABLE_LDAPS 696CURL_DISABLE_LDAP 697CURL_DISABLE_FILE 698CURL_DISABLE_FTP 699CURL_DISABLE_RTSP 700CURL_DISABLE_HTTP 701BUILD_UNITTESTS_FALSE 702BUILD_UNITTESTS_TRUE 703CURLDEBUG_FALSE 704CURLDEBUG_TRUE 705NO_UNDEFINED_FALSE 706NO_UNDEFINED_TRUE 707REQUIRE_LIB_DEPS 708STATICLIB_FALSE 709STATICLIB_TRUE 710MIMPURE_FALSE 711MIMPURE_TRUE 712OTOOL64 713OTOOL 714LIPO 715NMEDIT 716DSYMUTIL 717MANIFEST_TOOL 718RANLIB 719ac_ct_AR 720LN_S 721NM 722ac_ct_DUMPBIN 723DUMPBIN 724LD 725FGREP 726LIBTOOL 727OBJDUMP 728DLLTOOL 729AS 730CPP 731am__fastdepCC_FALSE 732am__fastdepCC_TRUE 733CCDEPMODE 734AMDEPBACKSLASH 735AMDEP_FALSE 736AMDEP_TRUE 737am__quote 738am__include 739DEPDIR 740OBJEXT 741EXEEXT 742ac_ct_CC 743CPPFLAGS 744LDFLAGS 745CFLAGS 746CC 747host_os 748host_vendor 749host_cpu 750host 751build_os 752build_vendor 753build_cpu 754build 755PKGADD_VENDOR 756PKGADD_NAME 757PKGADD_PKG 758VERSIONNUM 759CURLVERSION 760am__untar 761am__tar 762AMTAR 763am__leading_dot 764SET_MAKE 765AWK 766mkdir_p 767INSTALL_STRIP_PROGRAM 768STRIP 769install_sh 770MAKEINFO 771AUTOHEADER 772AUTOMAKE 773AUTOCONF 774ACLOCAL 775VERSION 776PACKAGE 777CYGPATH_W 778INSTALL_DATA 779INSTALL_SCRIPT 780INSTALL_PROGRAM 781libext 782AR 783EGREP 784GREP 785SED 786CURL_CFLAG_EXTRAS 787CONFIGURE_OPTIONS 788MAINT 789MAINTAINER_MODE_FALSE 790MAINTAINER_MODE_TRUE 791target_alias 792host_alias 793build_alias 794LIBS 795ECHO_T 796ECHO_N 797ECHO_C 798DEFS 799mandir 800localedir 801libdir 802psdir 803pdfdir 804dvidir 805htmldir 806infodir 807docdir 808oldincludedir 809includedir 810localstatedir 811sharedstatedir 812sysconfdir 813datadir 814datarootdir 815libexecdir 816sbindir 817bindir 818program_transform_name 819prefix 820exec_prefix 821PACKAGE_URL 822PACKAGE_BUGREPORT 823PACKAGE_STRING 824PACKAGE_VERSION 825PACKAGE_TARNAME 826PACKAGE_NAME 827SHELL 828PATH 829PATH_SEPARATOR' 830ac_subst_files='' 831ac_user_opts=' 832enable_option_checking 833enable_maintainer_mode 834enable_debug 835enable_optimize 836enable_warnings 837enable_werror 838enable_curldebug 839enable_ares 840enable_dependency_tracking 841enable_largefile 842enable_shared 843enable_static 844with_pic 845enable_fast_install 846with_gnu_ld 847with_sysroot 848enable_libtool_lock 849enable_http 850enable_ftp 851enable_file 852enable_ldap 853enable_ldaps 854enable_rtsp 855enable_proxy 856enable_dict 857enable_telnet 858enable_tftp 859enable_pop3 860enable_imap 861enable_smtp 862enable_gopher 863enable_manual 864enable_libgcc 865with_ldap_lib 866with_lber_lib 867enable_ipv6 868with_krb4_includes 869with_krb4_libs 870with_krb4 871with_spnego 872with_gssapi_includes 873with_gssapi_libs 874with_gssapi 875with_ssl 876with_zlib 877with_egd_socket 878with_random 879with_gnutls 880with_polarssl 881with_cyassl 882with_nss 883with_axtls 884with_ca_bundle 885with_ca_path 886with_libssh2 887with_librtmp 888with_libidn 889enable_nonblocking 890enable_threaded_resolver 891enable_verbose 892enable_sspi 893enable_crypto_auth 894enable_ntlm_wb 895enable_tls_srp 896enable_cookies 897enable_hidden_symbols 898enable_soname_bump 899' 900 ac_precious_vars='build_alias 901host_alias 902target_alias 903CC 904CFLAGS 905LDFLAGS 906LIBS 907CPPFLAGS 908CPP' 909ac_subdirs_all='ares' 910 911# Initialize some variables set by options. 912ac_init_help= 913ac_init_version=false 914ac_unrecognized_opts= 915ac_unrecognized_sep= 916# The variables have the same names as the options, with 917# dashes changed to underlines. 918cache_file=/dev/null 919exec_prefix=NONE 920no_create= 921no_recursion= 922prefix=NONE 923program_prefix=NONE 924program_suffix=NONE 925program_transform_name=s,x,x, 926silent= 927site= 928srcdir= 929verbose= 930x_includes=NONE 931x_libraries=NONE 932 933# Installation directory options. 934# These are left unexpanded so users can "make install exec_prefix=/foo" 935# and all the variables that are supposed to be based on exec_prefix 936# by default will actually change. 937# Use braces instead of parens because sh, perl, etc. also accept them. 938# (The list follows the same order as the GNU Coding Standards.) 939bindir='${exec_prefix}/bin' 940sbindir='${exec_prefix}/sbin' 941libexecdir='${exec_prefix}/libexec' 942datarootdir='${prefix}/share' 943datadir='${datarootdir}' 944sysconfdir='${prefix}/etc' 945sharedstatedir='${prefix}/com' 946localstatedir='${prefix}/var' 947includedir='${prefix}/include' 948oldincludedir='/usr/include' 949docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 950infodir='${datarootdir}/info' 951htmldir='${docdir}' 952dvidir='${docdir}' 953pdfdir='${docdir}' 954psdir='${docdir}' 955libdir='${exec_prefix}/lib' 956localedir='${datarootdir}/locale' 957mandir='${datarootdir}/man' 958 959ac_prev= 960ac_dashdash= 961for ac_option 962do 963 # If the previous option needs an argument, assign it. 964 if test -n "$ac_prev"; then 965 eval $ac_prev=\$ac_option 966 ac_prev= 967 continue 968 fi 969 970 case $ac_option in 971 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 972 *) ac_optarg=yes ;; 973 esac 974 975 # Accept the important Cygnus configure options, so we can diagnose typos. 976 977 case $ac_dashdash$ac_option in 978 --) 979 ac_dashdash=yes ;; 980 981 -bindir | --bindir | --bindi | --bind | --bin | --bi) 982 ac_prev=bindir ;; 983 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 984 bindir=$ac_optarg ;; 985 986 -build | --build | --buil | --bui | --bu) 987 ac_prev=build_alias ;; 988 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 989 build_alias=$ac_optarg ;; 990 991 -cache-file | --cache-file | --cache-fil | --cache-fi \ 992 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 993 ac_prev=cache_file ;; 994 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 995 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 996 cache_file=$ac_optarg ;; 997 998 --config-cache | -C) 999 cache_file=config.cache ;; 1000 1001 -datadir | --datadir | --datadi | --datad) 1002 ac_prev=datadir ;; 1003 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1004 datadir=$ac_optarg ;; 1005 1006 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1007 | --dataroo | --dataro | --datar) 1008 ac_prev=datarootdir ;; 1009 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1010 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1011 datarootdir=$ac_optarg ;; 1012 1013 -disable-* | --disable-*) 1014 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1015 # Reject names that are not valid shell variable names. 1016 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1017 as_fn_error "invalid feature name: $ac_useropt" 1018 ac_useropt_orig=$ac_useropt 1019 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1020 case $ac_user_opts in 1021 *" 1022"enable_$ac_useropt" 1023"*) ;; 1024 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1025 ac_unrecognized_sep=', ';; 1026 esac 1027 eval enable_$ac_useropt=no ;; 1028 1029 -docdir | --docdir | --docdi | --doc | --do) 1030 ac_prev=docdir ;; 1031 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1032 docdir=$ac_optarg ;; 1033 1034 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1035 ac_prev=dvidir ;; 1036 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1037 dvidir=$ac_optarg ;; 1038 1039 -enable-* | --enable-*) 1040 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1041 # Reject names that are not valid shell variable names. 1042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1043 as_fn_error "invalid feature name: $ac_useropt" 1044 ac_useropt_orig=$ac_useropt 1045 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1046 case $ac_user_opts in 1047 *" 1048"enable_$ac_useropt" 1049"*) ;; 1050 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1051 ac_unrecognized_sep=', ';; 1052 esac 1053 eval enable_$ac_useropt=\$ac_optarg ;; 1054 1055 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1056 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1057 | --exec | --exe | --ex) 1058 ac_prev=exec_prefix ;; 1059 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1060 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1061 | --exec=* | --exe=* | --ex=*) 1062 exec_prefix=$ac_optarg ;; 1063 1064 -gas | --gas | --ga | --g) 1065 # Obsolete; use --with-gas. 1066 with_gas=yes ;; 1067 1068 -help | --help | --hel | --he | -h) 1069 ac_init_help=long ;; 1070 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1071 ac_init_help=recursive ;; 1072 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1073 ac_init_help=short ;; 1074 1075 -host | --host | --hos | --ho) 1076 ac_prev=host_alias ;; 1077 -host=* | --host=* | --hos=* | --ho=*) 1078 host_alias=$ac_optarg ;; 1079 1080 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1081 ac_prev=htmldir ;; 1082 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1083 | --ht=*) 1084 htmldir=$ac_optarg ;; 1085 1086 -includedir | --includedir | --includedi | --included | --include \ 1087 | --includ | --inclu | --incl | --inc) 1088 ac_prev=includedir ;; 1089 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1090 | --includ=* | --inclu=* | --incl=* | --inc=*) 1091 includedir=$ac_optarg ;; 1092 1093 -infodir | --infodir | --infodi | --infod | --info | --inf) 1094 ac_prev=infodir ;; 1095 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1096 infodir=$ac_optarg ;; 1097 1098 -libdir | --libdir | --libdi | --libd) 1099 ac_prev=libdir ;; 1100 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1101 libdir=$ac_optarg ;; 1102 1103 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1104 | --libexe | --libex | --libe) 1105 ac_prev=libexecdir ;; 1106 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1107 | --libexe=* | --libex=* | --libe=*) 1108 libexecdir=$ac_optarg ;; 1109 1110 -localedir | --localedir | --localedi | --localed | --locale) 1111 ac_prev=localedir ;; 1112 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1113 localedir=$ac_optarg ;; 1114 1115 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1116 | --localstate | --localstat | --localsta | --localst | --locals) 1117 ac_prev=localstatedir ;; 1118 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1119 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1120 localstatedir=$ac_optarg ;; 1121 1122 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1123 ac_prev=mandir ;; 1124 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1125 mandir=$ac_optarg ;; 1126 1127 -nfp | --nfp | --nf) 1128 # Obsolete; use --without-fp. 1129 with_fp=no ;; 1130 1131 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1132 | --no-cr | --no-c | -n) 1133 no_create=yes ;; 1134 1135 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1136 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1137 no_recursion=yes ;; 1138 1139 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1140 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1141 | --oldin | --oldi | --old | --ol | --o) 1142 ac_prev=oldincludedir ;; 1143 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1144 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1145 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1146 oldincludedir=$ac_optarg ;; 1147 1148 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1149 ac_prev=prefix ;; 1150 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1151 prefix=$ac_optarg ;; 1152 1153 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1154 | --program-pre | --program-pr | --program-p) 1155 ac_prev=program_prefix ;; 1156 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1157 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1158 program_prefix=$ac_optarg ;; 1159 1160 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1161 | --program-suf | --program-su | --program-s) 1162 ac_prev=program_suffix ;; 1163 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1164 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1165 program_suffix=$ac_optarg ;; 1166 1167 -program-transform-name | --program-transform-name \ 1168 | --program-transform-nam | --program-transform-na \ 1169 | --program-transform-n | --program-transform- \ 1170 | --program-transform | --program-transfor \ 1171 | --program-transfo | --program-transf \ 1172 | --program-trans | --program-tran \ 1173 | --progr-tra | --program-tr | --program-t) 1174 ac_prev=program_transform_name ;; 1175 -program-transform-name=* | --program-transform-name=* \ 1176 | --program-transform-nam=* | --program-transform-na=* \ 1177 | --program-transform-n=* | --program-transform-=* \ 1178 | --program-transform=* | --program-transfor=* \ 1179 | --program-transfo=* | --program-transf=* \ 1180 | --program-trans=* | --program-tran=* \ 1181 | --progr-tra=* | --program-tr=* | --program-t=*) 1182 program_transform_name=$ac_optarg ;; 1183 1184 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1185 ac_prev=pdfdir ;; 1186 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1187 pdfdir=$ac_optarg ;; 1188 1189 -psdir | --psdir | --psdi | --psd | --ps) 1190 ac_prev=psdir ;; 1191 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1192 psdir=$ac_optarg ;; 1193 1194 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1195 | -silent | --silent | --silen | --sile | --sil) 1196 silent=yes ;; 1197 1198 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1199 ac_prev=sbindir ;; 1200 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1201 | --sbi=* | --sb=*) 1202 sbindir=$ac_optarg ;; 1203 1204 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1205 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1206 | --sharedst | --shareds | --shared | --share | --shar \ 1207 | --sha | --sh) 1208 ac_prev=sharedstatedir ;; 1209 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1210 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1211 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1212 | --sha=* | --sh=*) 1213 sharedstatedir=$ac_optarg ;; 1214 1215 -site | --site | --sit) 1216 ac_prev=site ;; 1217 -site=* | --site=* | --sit=*) 1218 site=$ac_optarg ;; 1219 1220 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1221 ac_prev=srcdir ;; 1222 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1223 srcdir=$ac_optarg ;; 1224 1225 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1226 | --syscon | --sysco | --sysc | --sys | --sy) 1227 ac_prev=sysconfdir ;; 1228 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1229 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1230 sysconfdir=$ac_optarg ;; 1231 1232 -target | --target | --targe | --targ | --tar | --ta | --t) 1233 ac_prev=target_alias ;; 1234 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1235 target_alias=$ac_optarg ;; 1236 1237 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1238 verbose=yes ;; 1239 1240 -version | --version | --versio | --versi | --vers | -V) 1241 ac_init_version=: ;; 1242 1243 -with-* | --with-*) 1244 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1245 # Reject names that are not valid shell variable names. 1246 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1247 as_fn_error "invalid package name: $ac_useropt" 1248 ac_useropt_orig=$ac_useropt 1249 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1250 case $ac_user_opts in 1251 *" 1252"with_$ac_useropt" 1253"*) ;; 1254 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1255 ac_unrecognized_sep=', ';; 1256 esac 1257 eval with_$ac_useropt=\$ac_optarg ;; 1258 1259 -without-* | --without-*) 1260 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1261 # Reject names that are not valid shell variable names. 1262 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1263 as_fn_error "invalid package name: $ac_useropt" 1264 ac_useropt_orig=$ac_useropt 1265 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1266 case $ac_user_opts in 1267 *" 1268"with_$ac_useropt" 1269"*) ;; 1270 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1271 ac_unrecognized_sep=', ';; 1272 esac 1273 eval with_$ac_useropt=no ;; 1274 1275 --x) 1276 # Obsolete; use --with-x. 1277 with_x=yes ;; 1278 1279 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1280 | --x-incl | --x-inc | --x-in | --x-i) 1281 ac_prev=x_includes ;; 1282 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1283 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1284 x_includes=$ac_optarg ;; 1285 1286 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1287 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1288 ac_prev=x_libraries ;; 1289 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1290 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1291 x_libraries=$ac_optarg ;; 1292 1293 -*) as_fn_error "unrecognized option: \`$ac_option' 1294Try \`$0 --help' for more information." 1295 ;; 1296 1297 *=*) 1298 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1299 # Reject names that are not valid shell variable names. 1300 case $ac_envvar in #( 1301 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1302 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1303 esac 1304 eval $ac_envvar=\$ac_optarg 1305 export $ac_envvar ;; 1306 1307 *) 1308 # FIXME: should be removed in autoconf 3.0. 1309 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1310 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1311 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1312 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1313 ;; 1314 1315 esac 1316done 1317 1318if test -n "$ac_prev"; then 1319 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1320 as_fn_error "missing argument to $ac_option" 1321fi 1322 1323if test -n "$ac_unrecognized_opts"; then 1324 case $enable_option_checking in 1325 no) ;; 1326 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1327 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1328 esac 1329fi 1330 1331# Check all directory arguments for consistency. 1332for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1333 datadir sysconfdir sharedstatedir localstatedir includedir \ 1334 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1335 libdir localedir mandir 1336do 1337 eval ac_val=\$$ac_var 1338 # Remove trailing slashes. 1339 case $ac_val in 1340 */ ) 1341 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1342 eval $ac_var=\$ac_val;; 1343 esac 1344 # Be sure to have absolute directory names. 1345 case $ac_val in 1346 [\\/$]* | ?:[\\/]* ) continue;; 1347 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1348 esac 1349 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1350done 1351 1352# There might be people who depend on the old broken behavior: `$host' 1353# used to hold the argument of --host etc. 1354# FIXME: To remove some day. 1355build=$build_alias 1356host=$host_alias 1357target=$target_alias 1358 1359# FIXME: To remove some day. 1360if test "x$host_alias" != x; then 1361 if test "x$build_alias" = x; then 1362 cross_compiling=maybe 1363 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1364 If a cross compiler is detected then cross compile mode will be used." >&2 1365 elif test "x$build_alias" != "x$host_alias"; then 1366 cross_compiling=yes 1367 fi 1368fi 1369 1370ac_tool_prefix= 1371test -n "$host_alias" && ac_tool_prefix=$host_alias- 1372 1373test "$silent" = yes && exec 6>/dev/null 1374 1375 1376ac_pwd=`pwd` && test -n "$ac_pwd" && 1377ac_ls_di=`ls -di .` && 1378ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1379 as_fn_error "working directory cannot be determined" 1380test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1381 as_fn_error "pwd does not report name of working directory" 1382 1383 1384# Find the source files, if location was not specified. 1385if test -z "$srcdir"; then 1386 ac_srcdir_defaulted=yes 1387 # Try the directory containing this script, then the parent directory. 1388 ac_confdir=`$as_dirname -- "$as_myself" || 1389$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1390 X"$as_myself" : 'X\(//\)[^/]' \| \ 1391 X"$as_myself" : 'X\(//\)$' \| \ 1392 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1393$as_echo X"$as_myself" | 1394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1395 s//\1/ 1396 q 1397 } 1398 /^X\(\/\/\)[^/].*/{ 1399 s//\1/ 1400 q 1401 } 1402 /^X\(\/\/\)$/{ 1403 s//\1/ 1404 q 1405 } 1406 /^X\(\/\).*/{ 1407 s//\1/ 1408 q 1409 } 1410 s/.*/./; q'` 1411 srcdir=$ac_confdir 1412 if test ! -r "$srcdir/$ac_unique_file"; then 1413 srcdir=.. 1414 fi 1415else 1416 ac_srcdir_defaulted=no 1417fi 1418if test ! -r "$srcdir/$ac_unique_file"; then 1419 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1420 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1421fi 1422ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1423ac_abs_confdir=`( 1424 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1425 pwd)` 1426# When building in place, set srcdir=. 1427if test "$ac_abs_confdir" = "$ac_pwd"; then 1428 srcdir=. 1429fi 1430# Remove unnecessary trailing slashes from srcdir. 1431# Double slashes in file names in object file debugging info 1432# mess up M-x gdb in Emacs. 1433case $srcdir in 1434*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1435esac 1436for ac_var in $ac_precious_vars; do 1437 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1438 eval ac_env_${ac_var}_value=\$${ac_var} 1439 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1440 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1441done 1442 1443# 1444# Report the --help message. 1445# 1446if test "$ac_init_help" = "long"; then 1447 # Omit some internal or obsolete options to make the list less imposing. 1448 # This message is too long to be a string in the A/UX 3.1 sh. 1449 cat <<_ACEOF 1450\`configure' configures curl - to adapt to many kinds of systems. 1451 1452Usage: $0 [OPTION]... [VAR=VALUE]... 1453 1454To assign environment variables (e.g., CC, CFLAGS...), specify them as 1455VAR=VALUE. See below for descriptions of some of the useful variables. 1456 1457Defaults for the options are specified in brackets. 1458 1459Configuration: 1460 -h, --help display this help and exit 1461 --help=short display options specific to this package 1462 --help=recursive display the short help of all the included packages 1463 -V, --version display version information and exit 1464 -q, --quiet, --silent do not print \`checking...' messages 1465 --cache-file=FILE cache test results in FILE [disabled] 1466 -C, --config-cache alias for \`--cache-file=config.cache' 1467 -n, --no-create do not create output files 1468 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1469 1470Installation directories: 1471 --prefix=PREFIX install architecture-independent files in PREFIX 1472 [$ac_default_prefix] 1473 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1474 [PREFIX] 1475 1476By default, \`make install' will install all the files in 1477\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1478an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1479for instance \`--prefix=\$HOME'. 1480 1481For better control, use the options below. 1482 1483Fine tuning of the installation directories: 1484 --bindir=DIR user executables [EPREFIX/bin] 1485 --sbindir=DIR system admin executables [EPREFIX/sbin] 1486 --libexecdir=DIR program executables [EPREFIX/libexec] 1487 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1488 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1489 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1490 --libdir=DIR object code libraries [EPREFIX/lib] 1491 --includedir=DIR C header files [PREFIX/include] 1492 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1493 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1494 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1495 --infodir=DIR info documentation [DATAROOTDIR/info] 1496 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1497 --mandir=DIR man documentation [DATAROOTDIR/man] 1498 --docdir=DIR documentation root [DATAROOTDIR/doc/curl] 1499 --htmldir=DIR html documentation [DOCDIR] 1500 --dvidir=DIR dvi documentation [DOCDIR] 1501 --pdfdir=DIR pdf documentation [DOCDIR] 1502 --psdir=DIR ps documentation [DOCDIR] 1503_ACEOF 1504 1505 cat <<\_ACEOF 1506 1507Program names: 1508 --program-prefix=PREFIX prepend PREFIX to installed program names 1509 --program-suffix=SUFFIX append SUFFIX to installed program names 1510 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1511 1512System types: 1513 --build=BUILD configure for building on BUILD [guessed] 1514 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1515_ACEOF 1516fi 1517 1518if test -n "$ac_init_help"; then 1519 case $ac_init_help in 1520 short | recursive ) echo "Configuration of curl -:";; 1521 esac 1522 cat <<\_ACEOF 1523 1524Optional Features: 1525 --disable-option-checking ignore unrecognized --enable/--with options 1526 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1527 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1528 --enable-maintainer-mode enable make rules and dependencies not useful 1529 (and sometimes confusing) to the casual installer 1530 --enable-debug Enable debug build options 1531 --disable-debug Disable debug build options 1532 --enable-optimize Enable compiler optimizations 1533 --disable-optimize Disable compiler optimizations 1534 --enable-warnings Enable strict compiler warnings 1535 --disable-warnings Disable strict compiler warnings 1536 --enable-werror Enable compiler warnings as errors 1537 --disable-werror Disable compiler warnings as errors 1538 --enable-curldebug Enable curl debug memory tracking 1539 --disable-curldebug Disable curl debug memory tracking 1540 --enable-ares[=PATH] Enable c-ares for DNS lookups 1541 --disable-ares Disable c-ares for DNS lookups 1542 --disable-dependency-tracking speeds up one-time build 1543 --enable-dependency-tracking do not reject slow dependency extractors 1544 --disable-largefile omit support for large files 1545 --enable-shared[=PKGS] build shared libraries [default=yes] 1546 --enable-static[=PKGS] build static libraries [default=yes] 1547 --enable-fast-install[=PKGS] 1548 optimize for fast installation [default=yes] 1549 --disable-libtool-lock avoid locking (might break parallel builds) 1550 --enable-http Enable HTTP support 1551 --disable-http Disable HTTP support 1552 --enable-ftp Enable FTP support 1553 --disable-ftp Disable FTP support 1554 --enable-file Enable FILE support 1555 --disable-file Disable FILE support 1556 --enable-ldap Enable LDAP support 1557 --disable-ldap Disable LDAP support 1558 --enable-ldaps Enable LDAPS support 1559 --disable-ldaps Disable LDAPS support 1560 --enable-rtsp Enable RTSP support 1561 --disable-rtsp Disable RTSP support 1562 --enable-proxy Enable proxy support 1563 --disable-proxy Disable proxy support 1564 --enable-dict Enable DICT support 1565 --disable-dict Disable DICT support 1566 --enable-telnet Enable TELNET support 1567 --disable-telnet Disable TELNET support 1568 --enable-tftp Enable TFTP support 1569 --disable-tftp Disable TFTP support 1570 --enable-pop3 Enable POP3 support 1571 --disable-pop3 Disable POP3 support 1572 --enable-imap Enable IMAP support 1573 --disable-imap Disable IMAP support 1574 --enable-smtp Enable SMTP support 1575 --disable-smtp Disable SMTP support 1576 --enable-gopher Enable Gopher support 1577 --disable-gopher Disable Gopher support 1578 --enable-manual Enable built-in manual 1579 --disable-manual Disable built-in manual 1580 --enable-libgcc use libgcc when linking 1581 --enable-ipv6 Enable ipv6 (with ipv4) support 1582 --disable-ipv6 Disable ipv6 support 1583 --enable-nonblocking Enable non-blocking communications 1584 --disable-nonblocking Disable non-blocking communications 1585 --enable-threaded-resolver 1586 Enable threaded resolver 1587 --disable-threaded-resolver 1588 Disable threaded resolver 1589 --enable-verbose Enable verbose strings 1590 --disable-verbose Disable verbose strings 1591 --enable-sspi Enable SSPI 1592 --disable-sspi Disable SSPI 1593 --enable-crypto-auth Enable cryptographic authentication 1594 --disable-crypto-auth Disable cryptographic authentication 1595 --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth 1596 helper, where FILE is ntlm_auth's absolute filename 1597 (default: /usr/bin/ntlm_auth) 1598 --disable-ntlm-wb Disable NTLM delegation to winbind's ntlm_auth 1599 helper 1600 --enable-tls-srp Enable TLS-SRP authentication 1601 --disable-tls-srp Disable TLS-SRP authentication 1602 --enable-cookies Enable cookies support 1603 --disable-cookies Disable cookies support 1604 --enable-hidden-symbols Hide internal symbols in library 1605 --disable-hidden-symbols 1606 Leave all symbols with default visibility in library 1607 --enable-soname-bump Enable enforced SONAME bump 1608 --disable-soname-bump Disable enforced SONAME bump 1609 1610Optional Packages: 1611 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1612 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1613 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1614 both] 1615 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1616 --with-sysroot=DIR Search for dependent libraries within DIR 1617 (or the compiler's sysroot if not specified). 1618 --with-ldap-lib=libname Specify name of ldap lib file 1619 --with-lber-lib=libname Specify name of lber lib file 1620 --with-krb4-includes=DIR 1621 Specify location of kerberos4 headers 1622 --with-krb4-libs=DIR Specify location of kerberos4 libs 1623 --with-krb4=DIR where to look for Kerberos4 1624 --with-spnego=DIR Specify location of SPNEGO library fbopenssl 1625 --with-gssapi-includes=DIR 1626 Specify location of GSSAPI header 1627 --with-gssapi-libs=DIR Specify location of GSSAPI libs 1628 --with-gssapi=DIR Where to look for GSSAPI 1629 --with-ssl=PATH Where to look for OpenSSL, PATH points to the SSL 1630 installation (default: /usr/local/ssl); when 1631 possible, set the PKG_CONFIG_PATH environment 1632 variable instead of using this option 1633 --without-ssl disable OpenSSL 1634 --with-zlib=PATH search for zlib in PATH 1635 --without-zlib disable use of zlib 1636 --with-egd-socket=FILE Entropy Gathering Daemon socket pathname 1637 --with-random=FILE read randomness from FILE (default=/dev/urandom) 1638 --with-gnutls=PATH where to look for GnuTLS, PATH points to the 1639 installation root 1640 --without-gnutls disable GnuTLS detection 1641 --with-polarssl=PATH where to look for PolarSSL, PATH points to the 1642 installation root 1643 --without-polarssl disable PolarSSL detection 1644 --with-cyassl=PATH where to look for CyaSSL, PATH points to the 1645 installation root (default: /usr/local/cyassl) 1646 --without-cyassl disable CyaSSL detection 1647 --with-nss=PATH where to look for NSS, PATH points to the 1648 installation root 1649 --without-nss disable NSS detection 1650 --with-axtls=PATH Where to look for axTLS, PATH points to the axTLS 1651 installation prefix (default: /usr/local). Ignored 1652 if another SSL engine is selected. 1653 --without-axtls disable axTLS 1654 --with-ca-bundle=FILE File name to use as CA bundle 1655 --without-ca-bundle Don't use a default CA bundle 1656 --with-ca-path=DIRECTORY 1657 Directory to use as CA path 1658 --without-ca-path Don't use a default CA path 1659 --with-libssh2=PATH Where to look for libssh2, PATH points to the 1660 LIBSSH2 installation; when possible, set the 1661 PKG_CONFIG_PATH environment variable instead of 1662 using this option 1663 --without-libssh2 disable LIBSSH2 1664 --with-librtmp=PATH Where to look for librtmp, PATH points to the 1665 LIBRTMP installation; when possible, set the 1666 PKG_CONFIG_PATH environment variable instead of 1667 using this option 1668 --without-librtmp disable LIBRTMP 1669 --with-libidn=PATH Enable libidn usage 1670 --without-libidn Disable libidn usage 1671 1672Some influential environment variables: 1673 CC C compiler command 1674 CFLAGS C compiler flags 1675 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1676 nonstandard directory <lib dir> 1677 LIBS libraries to pass to the linker, e.g. -l<library> 1678 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1679 you have headers in a nonstandard directory <include dir> 1680 CPP C preprocessor 1681 1682Use these variables to override the choices made by `configure' or to help 1683it to find libraries and programs with nonstandard names/locations. 1684 1685Report bugs to <a suitable curl mailing list: http://curl.haxx.se/mail/>. 1686_ACEOF 1687ac_status=$? 1688fi 1689 1690if test "$ac_init_help" = "recursive"; then 1691 # If there are subdirs, report their specific --help. 1692 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1693 test -d "$ac_dir" || 1694 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1695 continue 1696 ac_builddir=. 1697 1698case "$ac_dir" in 1699.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1700*) 1701 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1702 # A ".." for each directory in $ac_dir_suffix. 1703 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1704 case $ac_top_builddir_sub in 1705 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1706 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1707 esac ;; 1708esac 1709ac_abs_top_builddir=$ac_pwd 1710ac_abs_builddir=$ac_pwd$ac_dir_suffix 1711# for backward compatibility: 1712ac_top_builddir=$ac_top_build_prefix 1713 1714case $srcdir in 1715 .) # We are building in place. 1716 ac_srcdir=. 1717 ac_top_srcdir=$ac_top_builddir_sub 1718 ac_abs_top_srcdir=$ac_pwd ;; 1719 [\\/]* | ?:[\\/]* ) # Absolute name. 1720 ac_srcdir=$srcdir$ac_dir_suffix; 1721 ac_top_srcdir=$srcdir 1722 ac_abs_top_srcdir=$srcdir ;; 1723 *) # Relative name. 1724 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1725 ac_top_srcdir=$ac_top_build_prefix$srcdir 1726 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1727esac 1728ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1729 1730 cd "$ac_dir" || { ac_status=$?; continue; } 1731 # Check for guested configure. 1732 if test -f "$ac_srcdir/configure.gnu"; then 1733 echo && 1734 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1735 elif test -f "$ac_srcdir/configure"; then 1736 echo && 1737 $SHELL "$ac_srcdir/configure" --help=recursive 1738 else 1739 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1740 fi || ac_status=$? 1741 cd "$ac_pwd" || { ac_status=$?; break; } 1742 done 1743fi 1744 1745test -n "$ac_init_help" && exit $ac_status 1746if $ac_init_version; then 1747 cat <<\_ACEOF 1748curl configure - 1749generated by GNU Autoconf 2.64 1750 1751Copyright (C) 2009 Free Software Foundation, Inc. 1752This configure script is free software; the Free Software Foundation 1753gives unlimited permission to copy, distribute and modify it. 1754 1755Copyright (c) 1998 - 2011 Daniel Stenberg, <daniel@haxx.se> 1756This configure script may be copied, distributed and modified under the 1757terms of the curl license; see COPYING for more details 1758_ACEOF 1759 exit 1760fi 1761 1762## ------------------------ ## 1763## Autoconf initialization. ## 1764## ------------------------ ## 1765 1766# ac_fn_c_try_compile LINENO 1767# -------------------------- 1768# Try to compile conftest.$ac_ext, and return whether this succeeded. 1769ac_fn_c_try_compile () 1770{ 1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1772 rm -f conftest.$ac_objext 1773 if { { ac_try="$ac_compile" 1774case "(($ac_try" in 1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1776 *) ac_try_echo=$ac_try;; 1777esac 1778eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1779$as_echo "$ac_try_echo"; } >&5 1780 (eval "$ac_compile") 2>conftest.err 1781 ac_status=$? 1782 if test -s conftest.err; then 1783 grep -v '^ *+' conftest.err >conftest.er1 1784 cat conftest.er1 >&5 1785 mv -f conftest.er1 conftest.err 1786 fi 1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1788 test $ac_status = 0; } && { 1789 test -z "$ac_c_werror_flag" || 1790 test ! -s conftest.err 1791 } && test -s conftest.$ac_objext; then : 1792 ac_retval=0 1793else 1794 $as_echo "$as_me: failed program was:" >&5 1795sed 's/^/| /' conftest.$ac_ext >&5 1796 1797 ac_retval=1 1798fi 1799 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1800 return $ac_retval 1801 1802} # ac_fn_c_try_compile 1803 1804# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1805# ------------------------------------------------------- 1806# Tests whether HEADER exists and can be compiled using the include files in 1807# INCLUDES, setting the cache variable VAR accordingly. 1808ac_fn_c_check_header_compile () 1809{ 1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1812$as_echo_n "checking for $2... " >&6; } 1813if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1814 $as_echo_n "(cached) " >&6 1815else 1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1817/* end confdefs.h. */ 1818$4 1819#include <$2> 1820_ACEOF 1821if ac_fn_c_try_compile "$LINENO"; then : 1822 eval "$3=yes" 1823else 1824 eval "$3=no" 1825fi 1826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1827fi 1828eval ac_res=\$$3 1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1830$as_echo "$ac_res" >&6; } 1831 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1832 1833} # ac_fn_c_check_header_compile 1834 1835# ac_fn_c_try_run LINENO 1836# ---------------------- 1837# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1838# that executables *can* be run. 1839ac_fn_c_try_run () 1840{ 1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1842 if { { ac_try="$ac_link" 1843case "(($ac_try" in 1844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1845 *) ac_try_echo=$ac_try;; 1846esac 1847eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1848$as_echo "$ac_try_echo"; } >&5 1849 (eval "$ac_link") 2>&5 1850 ac_status=$? 1851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1852 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1853 { { case "(($ac_try" in 1854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1855 *) ac_try_echo=$ac_try;; 1856esac 1857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1858$as_echo "$ac_try_echo"; } >&5 1859 (eval "$ac_try") 2>&5 1860 ac_status=$? 1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1862 test $ac_status = 0; }; }; then : 1863 ac_retval=0 1864else 1865 $as_echo "$as_me: program exited with status $ac_status" >&5 1866 $as_echo "$as_me: failed program was:" >&5 1867sed 's/^/| /' conftest.$ac_ext >&5 1868 1869 ac_retval=$ac_status 1870fi 1871 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1872 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1873 return $ac_retval 1874 1875} # ac_fn_c_try_run 1876 1877# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1878# -------------------------------------------- 1879# Tries to find the compile-time value of EXPR in a program that includes 1880# INCLUDES, setting VAR accordingly. Returns whether the value could be 1881# computed 1882ac_fn_c_compute_int () 1883{ 1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1885 if test "$cross_compiling" = yes; then 1886 # Depending upon the size, compute the lo and hi bounds. 1887cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1888/* end confdefs.h. */ 1889$4 1890int main (void) 1891{ 1892static int test_array [1 - 2 * !(($2) >= 0)]; 1893test_array [0] = 0 1894 1895 ; 1896 return 0; 1897} 1898_ACEOF 1899if ac_fn_c_try_compile "$LINENO"; then : 1900 ac_lo=0 ac_mid=0 1901 while :; do 1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1903/* end confdefs.h. */ 1904$4 1905int main (void) 1906{ 1907static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1908test_array [0] = 0 1909 1910 ; 1911 return 0; 1912} 1913_ACEOF 1914if ac_fn_c_try_compile "$LINENO"; then : 1915 ac_hi=$ac_mid; break 1916else 1917 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1918 if test $ac_lo -le $ac_mid; then 1919 ac_lo= ac_hi= 1920 break 1921 fi 1922 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1923fi 1924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1925 done 1926else 1927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1928/* end confdefs.h. */ 1929$4 1930int main (void) 1931{ 1932static int test_array [1 - 2 * !(($2) < 0)]; 1933test_array [0] = 0 1934 1935 ; 1936 return 0; 1937} 1938_ACEOF 1939if ac_fn_c_try_compile "$LINENO"; then : 1940 ac_hi=-1 ac_mid=-1 1941 while :; do 1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1943/* end confdefs.h. */ 1944$4 1945int main (void) 1946{ 1947static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 1948test_array [0] = 0 1949 1950 ; 1951 return 0; 1952} 1953_ACEOF 1954if ac_fn_c_try_compile "$LINENO"; then : 1955 ac_lo=$ac_mid; break 1956else 1957 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 1958 if test $ac_mid -le $ac_hi; then 1959 ac_lo= ac_hi= 1960 break 1961 fi 1962 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 1963fi 1964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1965 done 1966else 1967 ac_lo= ac_hi= 1968fi 1969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1970fi 1971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1972# Binary search between lo and hi bounds. 1973while test "x$ac_lo" != "x$ac_hi"; do 1974 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1976/* end confdefs.h. */ 1977$4 1978int main (void) 1979{ 1980static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1981test_array [0] = 0 1982 1983 ; 1984 return 0; 1985} 1986_ACEOF 1987if ac_fn_c_try_compile "$LINENO"; then : 1988 ac_hi=$ac_mid 1989else 1990 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 1991fi 1992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1993done 1994case $ac_lo in #(( 1995?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 1996'') ac_retval=1 ;; 1997esac 1998 else 1999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2000/* end confdefs.h. */ 2001$4 2002static long int longval () { return $2; } 2003static unsigned long int ulongval () { return $2; } 2004#include <stdio.h> 2005#include <stdlib.h> 2006int main (void) 2007{ 2008 2009 FILE *f = fopen ("conftest.val", "w"); 2010 if (! f) 2011 return 1; 2012 if (($2) < 0) 2013 { 2014 long int i = longval (); 2015 if (i != ($2)) 2016 return 1; 2017 fprintf (f, "%ld", i); 2018 } 2019 else 2020 { 2021 unsigned long int i = ulongval (); 2022 if (i != ($2)) 2023 return 1; 2024 fprintf (f, "%lu", i); 2025 } 2026 /* Do not output a trailing newline, as this causes \r\n confusion 2027 on some platforms. */ 2028 return ferror (f) || fclose (f) != 0; 2029 2030 ; 2031 return 0; 2032} 2033_ACEOF 2034if ac_fn_c_try_run "$LINENO"; then : 2035 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2036else 2037 ac_retval=1 2038fi 2039rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2040 conftest.$ac_objext conftest.beam conftest.$ac_ext 2041rm -f conftest.val 2042 2043 fi 2044 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2045 return $ac_retval 2046 2047} # ac_fn_c_compute_int 2048 2049# ac_fn_c_try_cpp LINENO 2050# ---------------------- 2051# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2052ac_fn_c_try_cpp () 2053{ 2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2055 if { { ac_try="$ac_cpp conftest.$ac_ext" 2056case "(($ac_try" in 2057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2058 *) ac_try_echo=$ac_try;; 2059esac 2060eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2061$as_echo "$ac_try_echo"; } >&5 2062 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2063 ac_status=$? 2064 if test -s conftest.err; then 2065 grep -v '^ *+' conftest.err >conftest.er1 2066 cat conftest.er1 >&5 2067 mv -f conftest.er1 conftest.err 2068 fi 2069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2070 test $ac_status = 0; } >/dev/null && { 2071 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2072 test ! -s conftest.err 2073 }; then : 2074 ac_retval=0 2075else 2076 $as_echo "$as_me: failed program was:" >&5 2077sed 's/^/| /' conftest.$ac_ext >&5 2078 2079 ac_retval=1 2080fi 2081 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2082 return $ac_retval 2083 2084} # ac_fn_c_try_cpp 2085 2086# ac_fn_c_try_link LINENO 2087# ----------------------- 2088# Try to link conftest.$ac_ext, and return whether this succeeded. 2089ac_fn_c_try_link () 2090{ 2091 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2092 rm -f conftest.$ac_objext conftest$ac_exeext 2093 if { { ac_try="$ac_link" 2094case "(($ac_try" in 2095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2096 *) ac_try_echo=$ac_try;; 2097esac 2098eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2099$as_echo "$ac_try_echo"; } >&5 2100 (eval "$ac_link") 2>conftest.err 2101 ac_status=$? 2102 if test -s conftest.err; then 2103 grep -v '^ *+' conftest.err >conftest.er1 2104 cat conftest.er1 >&5 2105 mv -f conftest.er1 conftest.err 2106 fi 2107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2108 test $ac_status = 0; } && { 2109 test -z "$ac_c_werror_flag" || 2110 test ! -s conftest.err 2111 } && test -s conftest$ac_exeext && { 2112 test "$cross_compiling" = yes || 2113 $as_test_x conftest$ac_exeext 2114 }; then : 2115 ac_retval=0 2116else 2117 $as_echo "$as_me: failed program was:" >&5 2118sed 's/^/| /' conftest.$ac_ext >&5 2119 2120 ac_retval=1 2121fi 2122 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2123 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2124 # interfere with the next link command; also delete a directory that is 2125 # left behind by Apple's compiler. We do this before executing the actions. 2126 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2127 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2128 return $ac_retval 2129 2130} # ac_fn_c_try_link 2131 2132# ac_fn_c_check_func LINENO FUNC VAR 2133# ---------------------------------- 2134# Tests whether FUNC exists, setting the cache variable VAR accordingly 2135ac_fn_c_check_func () 2136{ 2137 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2139$as_echo_n "checking for $2... " >&6; } 2140if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2141 $as_echo_n "(cached) " >&6 2142else 2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2144/* end confdefs.h. */ 2145 2146#define $2 innocuous_$2 2147#ifdef __STDC__ 2148# include <limits.h> 2149#else 2150# include <assert.h> 2151#endif 2152#undef $2 2153#ifdef __cplusplus 2154extern "C" 2155#endif 2156char $2 (); 2157#if defined __stub_$2 || defined __stub___$2 2158choke me 2159#endif 2160 2161int main (void) 2162{ 2163return $2 (); 2164 ; 2165 return 0; 2166} 2167_ACEOF 2168if ac_fn_c_try_link "$LINENO"; then : 2169 eval "$3=yes" 2170else 2171 eval "$3=no" 2172fi 2173rm -f core conftest.err conftest.$ac_objext \ 2174 conftest$ac_exeext conftest.$ac_ext 2175fi 2176eval ac_res=\$$3 2177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2178$as_echo "$ac_res" >&6; } 2179 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2180 2181} # ac_fn_c_check_func 2182 2183# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2184# ------------------------------------------------------- 2185# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2186# the include files in INCLUDES and setting the cache variable VAR 2187# accordingly. 2188ac_fn_c_check_header_mongrel () 2189{ 2190 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2191 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2193$as_echo_n "checking for $2... " >&6; } 2194if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2195 $as_echo_n "(cached) " >&6 2196fi 2197eval ac_res=\$$3 2198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2199$as_echo "$ac_res" >&6; } 2200else 2201 # Is the header compilable? 2202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2203$as_echo_n "checking $2 usability... " >&6; } 2204cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2205/* end confdefs.h. */ 2206$4 2207#include <$2> 2208_ACEOF 2209if ac_fn_c_try_compile "$LINENO"; then : 2210 ac_header_compiler=yes 2211else 2212 ac_header_compiler=no 2213fi 2214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2216$as_echo "$ac_header_compiler" >&6; } 2217 2218# Is the header present? 2219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2220$as_echo_n "checking $2 presence... " >&6; } 2221cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2222/* end confdefs.h. */ 2223#include <$2> 2224_ACEOF 2225if ac_fn_c_try_cpp "$LINENO"; then : 2226 ac_header_preproc=yes 2227else 2228 ac_header_preproc=no 2229fi 2230rm -f conftest.err conftest.$ac_ext 2231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2232$as_echo "$ac_header_preproc" >&6; } 2233 2234# So? What about this header? 2235case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2236 yes:no: ) 2237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2238$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2240$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2241 ;; 2242 no:yes:* ) 2243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2244$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2246$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2248$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2250$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2252$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2253( cat <<\_ASBOX 2254## ---------------------------------------------------------------------- ## 2255## Report this to a suitable curl mailing list: http://curl.haxx.se/mail/ ## 2256## ---------------------------------------------------------------------- ## 2257_ASBOX 2258 ) | sed "s/^/$as_me: WARNING: /" >&2 2259 ;; 2260esac 2261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2262$as_echo_n "checking for $2... " >&6; } 2263if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2264 $as_echo_n "(cached) " >&6 2265else 2266 eval "$3=\$ac_header_compiler" 2267fi 2268eval ac_res=\$$3 2269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2270$as_echo "$ac_res" >&6; } 2271fi 2272 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2273 2274} # ac_fn_c_check_header_mongrel 2275 2276# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2277# ------------------------------------------- 2278# Tests whether TYPE exists after having included INCLUDES, setting cache 2279# variable VAR accordingly. 2280ac_fn_c_check_type () 2281{ 2282 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2284$as_echo_n "checking for $2... " >&6; } 2285if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2286 $as_echo_n "(cached) " >&6 2287else 2288 eval "$3=no" 2289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2290/* end confdefs.h. */ 2291$4 2292int main (void) 2293{ 2294if (sizeof ($2)) 2295 return 0; 2296 ; 2297 return 0; 2298} 2299_ACEOF 2300if ac_fn_c_try_compile "$LINENO"; then : 2301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2302/* end confdefs.h. */ 2303$4 2304int main (void) 2305{ 2306if (sizeof (($2))) 2307 return 0; 2308 ; 2309 return 0; 2310} 2311_ACEOF 2312if ac_fn_c_try_compile "$LINENO"; then : 2313 2314else 2315 eval "$3=yes" 2316fi 2317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2318fi 2319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2320fi 2321eval ac_res=\$$3 2322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2323$as_echo "$ac_res" >&6; } 2324 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2325 2326} # ac_fn_c_check_type 2327cat >config.log <<_ACEOF 2328This file contains any messages produced by compilers while 2329running configure, to aid debugging if configure makes a mistake. 2330 2331It was created by curl $as_me -, which was 2332generated by GNU Autoconf 2.64. Invocation command line was 2333 2334 $ $0 $@ 2335 2336_ACEOF 2337exec 5>>config.log 2338{ 2339cat <<_ASUNAME 2340## --------- ## 2341## Platform. ## 2342## --------- ## 2343 2344hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2345uname -m = `(uname -m) 2>/dev/null || echo unknown` 2346uname -r = `(uname -r) 2>/dev/null || echo unknown` 2347uname -s = `(uname -s) 2>/dev/null || echo unknown` 2348uname -v = `(uname -v) 2>/dev/null || echo unknown` 2349 2350/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2351/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2352 2353/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2354/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2355/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2356/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2357/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2358/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2359/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2360 2361_ASUNAME 2362 2363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2364for as_dir in $PATH 2365do 2366 IFS=$as_save_IFS 2367 test -z "$as_dir" && as_dir=. 2368 $as_echo "PATH: $as_dir" 2369 done 2370IFS=$as_save_IFS 2371 2372} >&5 2373 2374cat >&5 <<_ACEOF 2375 2376 2377## ----------- ## 2378## Core tests. ## 2379## ----------- ## 2380 2381_ACEOF 2382 2383 2384# Keep a trace of the command line. 2385# Strip out --no-create and --no-recursion so they do not pile up. 2386# Strip out --silent because we don't want to record it for future runs. 2387# Also quote any args containing shell meta-characters. 2388# Make two passes to allow for proper duplicate-argument suppression. 2389ac_configure_args= 2390ac_configure_args0= 2391ac_configure_args1= 2392ac_must_keep_next=false 2393for ac_pass in 1 2 2394do 2395 for ac_arg 2396 do 2397 case $ac_arg in 2398 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2399 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2400 | -silent | --silent | --silen | --sile | --sil) 2401 continue ;; 2402 *\'*) 2403 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2404 esac 2405 case $ac_pass in 2406 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2407 2) 2408 as_fn_append ac_configure_args1 " '$ac_arg'" 2409 if test $ac_must_keep_next = true; then 2410 ac_must_keep_next=false # Got value, back to normal. 2411 else 2412 case $ac_arg in 2413 *=* | --config-cache | -C | -disable-* | --disable-* \ 2414 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2415 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2416 | -with-* | --with-* | -without-* | --without-* | --x) 2417 case "$ac_configure_args0 " in 2418 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2419 esac 2420 ;; 2421 -* ) ac_must_keep_next=true ;; 2422 esac 2423 fi 2424 as_fn_append ac_configure_args " '$ac_arg'" 2425 ;; 2426 esac 2427 done 2428done 2429{ ac_configure_args0=; unset ac_configure_args0;} 2430{ ac_configure_args1=; unset ac_configure_args1;} 2431 2432# When interrupted or exit'd, cleanup temporary files, and complete 2433# config.log. We remove comments because anyway the quotes in there 2434# would cause problems or look ugly. 2435# WARNING: Use '\'' to represent an apostrophe within the trap. 2436# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2437trap 'exit_status=$? 2438 # Save into config.log some information that might help in debugging. 2439 { 2440 echo 2441 2442 cat <<\_ASBOX 2443## ---------------- ## 2444## Cache variables. ## 2445## ---------------- ## 2446_ASBOX 2447 echo 2448 # The following way of writing the cache mishandles newlines in values, 2449( 2450 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2451 eval ac_val=\$$ac_var 2452 case $ac_val in #( 2453 *${as_nl}*) 2454 case $ac_var in #( 2455 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2456$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2457 esac 2458 case $ac_var in #( 2459 _ | IFS | as_nl) ;; #( 2460 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2461 *) { eval $ac_var=; unset $ac_var;} ;; 2462 esac ;; 2463 esac 2464 done 2465 (set) 2>&1 | 2466 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2467 *${as_nl}ac_space=\ *) 2468 sed -n \ 2469 "s/'\''/'\''\\\\'\'''\''/g; 2470 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2471 ;; #( 2472 *) 2473 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2474 ;; 2475 esac | 2476 sort 2477) 2478 echo 2479 2480 cat <<\_ASBOX 2481## ----------------- ## 2482## Output variables. ## 2483## ----------------- ## 2484_ASBOX 2485 echo 2486 for ac_var in $ac_subst_vars 2487 do 2488 eval ac_val=\$$ac_var 2489 case $ac_val in 2490 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2491 esac 2492 $as_echo "$ac_var='\''$ac_val'\''" 2493 done | sort 2494 echo 2495 2496 if test -n "$ac_subst_files"; then 2497 cat <<\_ASBOX 2498## ------------------- ## 2499## File substitutions. ## 2500## ------------------- ## 2501_ASBOX 2502 echo 2503 for ac_var in $ac_subst_files 2504 do 2505 eval ac_val=\$$ac_var 2506 case $ac_val in 2507 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2508 esac 2509 $as_echo "$ac_var='\''$ac_val'\''" 2510 done | sort 2511 echo 2512 fi 2513 2514 if test -s confdefs.h; then 2515 cat <<\_ASBOX 2516## ----------- ## 2517## confdefs.h. ## 2518## ----------- ## 2519_ASBOX 2520 echo 2521 cat confdefs.h 2522 echo 2523 fi 2524 test "$ac_signal" != 0 && 2525 $as_echo "$as_me: caught signal $ac_signal" 2526 $as_echo "$as_me: exit $exit_status" 2527 } >&5 2528 rm -f core *.core core.conftest.* && 2529 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2530 exit $exit_status 2531' 0 2532for ac_signal in 1 2 13 15; do 2533 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2534done 2535ac_signal=0 2536 2537# confdefs.h avoids OS command line length limits that DEFS can exceed. 2538rm -f -r conftest* confdefs.h 2539 2540$as_echo "/* confdefs.h */" > confdefs.h 2541 2542# Predefined preprocessor variables. 2543 2544cat >>confdefs.h <<_ACEOF 2545#define PACKAGE_NAME "$PACKAGE_NAME" 2546_ACEOF 2547 2548cat >>confdefs.h <<_ACEOF 2549#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2550_ACEOF 2551 2552cat >>confdefs.h <<_ACEOF 2553#define PACKAGE_VERSION "$PACKAGE_VERSION" 2554_ACEOF 2555 2556cat >>confdefs.h <<_ACEOF 2557#define PACKAGE_STRING "$PACKAGE_STRING" 2558_ACEOF 2559 2560cat >>confdefs.h <<_ACEOF 2561#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2562_ACEOF 2563 2564cat >>confdefs.h <<_ACEOF 2565#define PACKAGE_URL "$PACKAGE_URL" 2566_ACEOF 2567 2568 2569# Let the site file select an alternate cache file if it wants to. 2570# Prefer an explicitly selected file to automatically selected ones. 2571ac_site_file1=NONE 2572ac_site_file2=NONE 2573if test -n "$CONFIG_SITE"; then 2574 ac_site_file1=$CONFIG_SITE 2575elif test "x$prefix" != xNONE; then 2576 ac_site_file1=$prefix/share/config.site 2577 ac_site_file2=$prefix/etc/config.site 2578else 2579 ac_site_file1=$ac_default_prefix/share/config.site 2580 ac_site_file2=$ac_default_prefix/etc/config.site 2581fi 2582for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2583do 2584 test "x$ac_site_file" = xNONE && continue 2585 if test -r "$ac_site_file"; then 2586 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2587$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2588 sed 's/^/| /' "$ac_site_file" >&5 2589 . "$ac_site_file" 2590 fi 2591done 2592 2593if test -r "$cache_file"; then 2594 # Some versions of bash will fail to source /dev/null (special 2595 # files actually), so we avoid doing that. 2596 if test -f "$cache_file"; then 2597 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2598$as_echo "$as_me: loading cache $cache_file" >&6;} 2599 case $cache_file in 2600 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2601 *) . "./$cache_file";; 2602 esac 2603 fi 2604else 2605 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2606$as_echo "$as_me: creating cache $cache_file" >&6;} 2607 >$cache_file 2608fi 2609 2610# Check that the precious variables saved in the cache have kept the same 2611# value. 2612ac_cache_corrupted=false 2613for ac_var in $ac_precious_vars; do 2614 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2615 eval ac_new_set=\$ac_env_${ac_var}_set 2616 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2617 eval ac_new_val=\$ac_env_${ac_var}_value 2618 case $ac_old_set,$ac_new_set in 2619 set,) 2620 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2621$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2622 ac_cache_corrupted=: ;; 2623 ,set) 2624 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2625$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2626 ac_cache_corrupted=: ;; 2627 ,);; 2628 *) 2629 if test "x$ac_old_val" != "x$ac_new_val"; then 2630 # differences in whitespace do not lead to failure. 2631 ac_old_val_w=`echo x $ac_old_val` 2632 ac_new_val_w=`echo x $ac_new_val` 2633 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2634 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2635$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2636 ac_cache_corrupted=: 2637 else 2638 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2639$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2640 eval $ac_var=\$ac_old_val 2641 fi 2642 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2643$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2644 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2645$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2646 fi;; 2647 esac 2648 # Pass precious variables to config.status. 2649 if test "$ac_new_set" = set; then 2650 case $ac_new_val in 2651 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2652 *) ac_arg=$ac_var=$ac_new_val ;; 2653 esac 2654 case " $ac_configure_args " in 2655 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2656 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2657 esac 2658 fi 2659done 2660if $ac_cache_corrupted; then 2661 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2662$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2663 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2664$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2665 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2666fi 2667## -------------------- ## 2668## Main body of script. ## 2669## -------------------- ## 2670 2671ac_ext=c 2672ac_cpp='$CPP $CPPFLAGS' 2673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2675ac_compiler_gnu=$ac_cv_c_compiler_gnu 2676 2677 2678 2679 2680 2681# using curl-override.m4 2682 2683 2684 2685 2686 2687ac_config_headers="$ac_config_headers lib/curl_config.h src/curl_config.h include/curl/curlbuild.h" 2688 2689: 2690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2691$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2692 # Check whether --enable-maintainer-mode was given. 2693if test "${enable_maintainer_mode+set}" = set; then : 2694 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2695else 2696 USE_MAINTAINER_MODE=no 2697fi 2698 2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2700$as_echo "$USE_MAINTAINER_MODE" >&6; } 2701 2702 2703if test $USE_MAINTAINER_MODE = yes; then 2704 MAINTAINER_MODE_TRUE= 2705 MAINTAINER_MODE_FALSE='#' 2706else 2707 MAINTAINER_MODE_TRUE='#' 2708 MAINTAINER_MODE_FALSE= 2709fi 2710 2711 MAINT=$MAINTAINER_MODE_TRUE 2712 2713 2714 2715 2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5 2717$as_echo_n "checking whether to enable debug build options... " >&6; } 2718 OPT_DEBUG_BUILD="default" 2719 # Check whether --enable-debug was given. 2720if test "${enable_debug+set}" = set; then : 2721 enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval 2722fi 2723 2724 case "$OPT_DEBUG_BUILD" in 2725 no) 2726 want_debug="no" 2727 ;; 2728 default) 2729 want_debug="no" 2730 ;; 2731 *) 2732 want_debug="yes" 2733 ;; 2734 esac 2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5 2736$as_echo "$want_debug" >&6; } 2737 2738 2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5 2740$as_echo_n "checking whether to enable compiler optimizer... " >&6; } 2741 OPT_COMPILER_OPTIMIZE="default" 2742 # Check whether --enable-optimize was given. 2743if test "${enable_optimize+set}" = set; then : 2744 enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval 2745fi 2746 2747 case "$OPT_COMPILER_OPTIMIZE" in 2748 no) 2749 want_optimize="no" 2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2751$as_echo "no" >&6; } 2752 ;; 2753 default) 2754 if test "$want_debug" = "yes"; then 2755 want_optimize="assume_no" 2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5 2757$as_echo "(assumed) no" >&6; } 2758 else 2759 want_optimize="assume_yes" 2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5 2761$as_echo "(assumed) yes" >&6; } 2762 fi 2763 ;; 2764 *) 2765 want_optimize="yes" 2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2767$as_echo "yes" >&6; } 2768 ;; 2769 esac 2770 2771 2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5 2773$as_echo_n "checking whether to enable strict compiler warnings... " >&6; } 2774 OPT_COMPILER_WARNINGS="default" 2775 # Check whether --enable-warnings was given. 2776if test "${enable_warnings+set}" = set; then : 2777 enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval 2778fi 2779 2780 case "$OPT_COMPILER_WARNINGS" in 2781 no) 2782 want_warnings="no" 2783 ;; 2784 default) 2785 want_warnings="$want_debug" 2786 ;; 2787 *) 2788 want_warnings="yes" 2789 ;; 2790 esac 2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5 2792$as_echo "$want_warnings" >&6; } 2793 2794 2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5 2796$as_echo_n "checking whether to enable compiler warnings as errors... " >&6; } 2797 OPT_COMPILER_WERROR="default" 2798 # Check whether --enable-werror was given. 2799if test "${enable_werror+set}" = set; then : 2800 enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval 2801fi 2802 2803 case "$OPT_COMPILER_WERROR" in 2804 no) 2805 want_werror="no" 2806 ;; 2807 default) 2808 want_werror="no" 2809 ;; 2810 *) 2811 want_werror="yes" 2812 ;; 2813 esac 2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5 2815$as_echo "$want_werror" >&6; } 2816 2817 2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5 2819$as_echo_n "checking whether to enable curl debug memory tracking... " >&6; } 2820 OPT_CURLDEBUG_BUILD="default" 2821 # Check whether --enable-curldebug was given. 2822if test "${enable_curldebug+set}" = set; then : 2823 enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval 2824fi 2825 2826 case "$OPT_CURLDEBUG_BUILD" in 2827 no) 2828 want_curldebug="no" 2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2830$as_echo "no" >&6; } 2831 ;; 2832 default) 2833 if test "$want_debug" = "yes"; then 2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5 2835$as_echo "(assumed) yes" >&6; } 2836 else 2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2838$as_echo "no" >&6; } 2839 fi 2840 want_curldebug_assumed="yes" 2841 want_curldebug="$want_debug" 2842 ;; 2843 *) 2844 want_curldebug="yes" 2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2846$as_echo "yes" >&6; } 2847 ;; 2848 esac 2849 2850 2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5 2852$as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; } 2853 OPT_ARES="default" 2854 # Check whether --enable-ares was given. 2855if test "${enable_ares+set}" = set; then : 2856 enableval=$enable_ares; OPT_ARES=$enableval 2857fi 2858 2859 case "$OPT_ARES" in 2860 no) 2861 want_ares="no" 2862 ;; 2863 default) 2864 want_ares="no" 2865 ;; 2866 *) 2867 want_ares="yes" 2868 if test -n "$enableval" && test "$enableval" != "yes"; then 2869 want_ares_path="$enableval" 2870 fi 2871 ;; 2872 esac 2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5 2874$as_echo "$want_ares" >&6; } 2875 2876 2877 2878 2879 2880# 2881# save the configure arguments 2882# 2883CONFIGURE_OPTIONS="\"$ac_configure_args\"" 2884 2885 2886CURL_CFLAG_EXTRAS="" 2887if test X"$want_werror" = Xyes; then 2888 CURL_CFLAG_EXTRAS="-Werror" 2889fi 2890 2891 2892if test -z "$SED"; then 2893 # Extract the first word of "sed", so it can be a program name with args. 2894set dummy sed; ac_word=$2 2895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2896$as_echo_n "checking for $ac_word... " >&6; } 2897if test "${ac_cv_path_SED+set}" = set; then : 2898 $as_echo_n "(cached) " >&6 2899else 2900 case $SED in 2901 [\\/]* | ?:[\\/]*) 2902 ac_cv_path_SED="$SED" # Let the user override the test with a path. 2903 ;; 2904 *) 2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2906as_dummy="$PATH:/usr/bin:/usr/local/bin" 2907for as_dir in $as_dummy 2908do 2909 IFS=$as_save_IFS 2910 test -z "$as_dir" && as_dir=. 2911 for ac_exec_ext in '' $ac_executable_extensions; do 2912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2913 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 2914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2915 break 2 2916 fi 2917done 2918 done 2919IFS=$as_save_IFS 2920 2921 test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found" 2922 ;; 2923esac 2924fi 2925SED=$ac_cv_path_SED 2926if test -n "$SED"; then 2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 2928$as_echo "$SED" >&6; } 2929else 2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2931$as_echo "no" >&6; } 2932fi 2933 2934 2935 if test -z "$SED" || test "$SED" = "not_found"; then 2936 as_fn_error "sed not found in PATH. Cannot continue without sed." "$LINENO" 5 2937 fi 2938fi 2939 2940 2941if test -z "$GREP"; then 2942 # Extract the first word of "grep", so it can be a program name with args. 2943set dummy grep; ac_word=$2 2944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2945$as_echo_n "checking for $ac_word... " >&6; } 2946if test "${ac_cv_path_GREP+set}" = set; then : 2947 $as_echo_n "(cached) " >&6 2948else 2949 case $GREP in 2950 [\\/]* | ?:[\\/]*) 2951 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 2952 ;; 2953 *) 2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2955as_dummy="$PATH:/usr/bin:/usr/local/bin" 2956for as_dir in $as_dummy 2957do 2958 IFS=$as_save_IFS 2959 test -z "$as_dir" && as_dir=. 2960 for ac_exec_ext in '' $ac_executable_extensions; do 2961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2962 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 2963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2964 break 2 2965 fi 2966done 2967 done 2968IFS=$as_save_IFS 2969 2970 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found" 2971 ;; 2972esac 2973fi 2974GREP=$ac_cv_path_GREP 2975if test -n "$GREP"; then 2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 2977$as_echo "$GREP" >&6; } 2978else 2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2980$as_echo "no" >&6; } 2981fi 2982 2983 2984 if test -z "$GREP" || test "$GREP" = "not_found"; then 2985 as_fn_error "grep not found in PATH. Cannot continue without grep." "$LINENO" 5 2986 fi 2987fi 2988 2989 2990if test -z "$EGREP"; then 2991 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then 2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 2993$as_echo_n "checking for egrep... " >&6; } 2994 EGREP="$GREP -E" 2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 2996$as_echo "$EGREP" >&6; } 2997 else 2998 # Extract the first word of "egrep", so it can be a program name with args. 2999set dummy egrep; ac_word=$2 3000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3001$as_echo_n "checking for $ac_word... " >&6; } 3002if test "${ac_cv_path_EGREP+set}" = set; then : 3003 $as_echo_n "(cached) " >&6 3004else 3005 case $EGREP in 3006 [\\/]* | ?:[\\/]*) 3007 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 3008 ;; 3009 *) 3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3011as_dummy="$PATH:/usr/bin:/usr/local/bin" 3012for as_dir in $as_dummy 3013do 3014 IFS=$as_save_IFS 3015 test -z "$as_dir" && as_dir=. 3016 for ac_exec_ext in '' $ac_executable_extensions; do 3017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3018 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext" 3019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3020 break 2 3021 fi 3022done 3023 done 3024IFS=$as_save_IFS 3025 3026 test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found" 3027 ;; 3028esac 3029fi 3030EGREP=$ac_cv_path_EGREP 3031if test -n "$EGREP"; then 3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 3033$as_echo "$EGREP" >&6; } 3034else 3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3036$as_echo "no" >&6; } 3037fi 3038 3039 3040 fi 3041fi 3042if test -z "$EGREP" || test "$EGREP" = "not_found"; then 3043 as_fn_error "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5 3044fi 3045 3046 3047if test -z "$AR"; then 3048 if test -n "$ac_tool_prefix"; then 3049 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 3050set dummy ${ac_tool_prefix}ar; ac_word=$2 3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3052$as_echo_n "checking for $ac_word... " >&6; } 3053if test "${ac_cv_path_AR+set}" = set; then : 3054 $as_echo_n "(cached) " >&6 3055else 3056 case $AR in 3057 [\\/]* | ?:[\\/]*) 3058 ac_cv_path_AR="$AR" # Let the user override the test with a path. 3059 ;; 3060 *) 3061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3062as_dummy="$PATH:/usr/bin:/usr/local/bin" 3063for as_dir in $as_dummy 3064do 3065 IFS=$as_save_IFS 3066 test -z "$as_dir" && as_dir=. 3067 for ac_exec_ext in '' $ac_executable_extensions; do 3068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3069 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 3070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3071 break 2 3072 fi 3073done 3074 done 3075IFS=$as_save_IFS 3076 3077 ;; 3078esac 3079fi 3080AR=$ac_cv_path_AR 3081if test -n "$AR"; then 3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 3083$as_echo "$AR" >&6; } 3084else 3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3086$as_echo "no" >&6; } 3087fi 3088 3089 3090fi 3091if test -z "$ac_cv_path_AR"; then 3092 ac_pt_AR=$AR 3093 # Extract the first word of "ar", so it can be a program name with args. 3094set dummy ar; ac_word=$2 3095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3096$as_echo_n "checking for $ac_word... " >&6; } 3097if test "${ac_cv_path_ac_pt_AR+set}" = set; then : 3098 $as_echo_n "(cached) " >&6 3099else 3100 case $ac_pt_AR in 3101 [\\/]* | ?:[\\/]*) 3102 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path. 3103 ;; 3104 *) 3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3106as_dummy="$PATH:/usr/bin:/usr/local/bin" 3107for as_dir in $as_dummy 3108do 3109 IFS=$as_save_IFS 3110 test -z "$as_dir" && as_dir=. 3111 for ac_exec_ext in '' $ac_executable_extensions; do 3112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3113 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext" 3114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3115 break 2 3116 fi 3117done 3118 done 3119IFS=$as_save_IFS 3120 3121 ;; 3122esac 3123fi 3124ac_pt_AR=$ac_cv_path_ac_pt_AR 3125if test -n "$ac_pt_AR"; then 3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5 3127$as_echo "$ac_pt_AR" >&6; } 3128else 3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3130$as_echo "no" >&6; } 3131fi 3132 3133 if test "x$ac_pt_AR" = x; then 3134 AR="not_found" 3135 else 3136 case $cross_compiling:$ac_tool_warned in 3137yes:) 3138{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3139$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3140ac_tool_warned=yes ;; 3141esac 3142 AR=$ac_pt_AR 3143 fi 3144else 3145 AR="$ac_cv_path_AR" 3146fi 3147 3148 if test -z "$AR" || test "$AR" = "not_found"; then 3149 as_fn_error "ar not found in PATH. Cannot continue without ar." "$LINENO" 5 3150 fi 3151fi 3152 3153 3154 3155 3156if test -f ${srcdir}/include/curl/curlbuild.h; then 3157 rm -f ${srcdir}/include/curl/curlbuild.h 3158fi 3159 3160CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)"/\1/p' ${srcdir}/include/curl/curlver.h` 3161am__api_version="1.9" 3162ac_aux_dir= 3163for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3164 for ac_t in install-sh install.sh shtool; do 3165 if test -f "$ac_dir/$ac_t"; then 3166 ac_aux_dir=$ac_dir 3167 ac_install_sh="$ac_aux_dir/$ac_t -c" 3168 break 2 3169 fi 3170 done 3171done 3172if test -z "$ac_aux_dir"; then 3173 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3174fi 3175 3176# These three variables are undocumented and unsupported, 3177# and are intended to be withdrawn in a future Autoconf release. 3178# They can cause serious problems if a builder's source tree is in a directory 3179# whose full name contains unusual characters. 3180ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3181ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3182ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3183 3184 3185# Find a good install program. We prefer a C program (faster), 3186# so one script is as good as another. But avoid the broken or 3187# incompatible versions: 3188# SysV /etc/install, /usr/sbin/install 3189# SunOS /usr/etc/install 3190# IRIX /sbin/install 3191# AIX /bin/install 3192# AmigaOS /C/install, which installs bootblocks on floppy discs 3193# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3194# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3195# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3196# OS/2's system install, which has a completely different semantic 3197# ./install, which can be erroneously created by make from ./install.sh. 3198# Reject install programs that cannot install multiple files. 3199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3200$as_echo_n "checking for a BSD-compatible install... " >&6; } 3201if test -z "$INSTALL"; then 3202if test "${ac_cv_path_install+set}" = set; then : 3203 $as_echo_n "(cached) " >&6 3204else 3205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3206for as_dir in $PATH 3207do 3208 IFS=$as_save_IFS 3209 test -z "$as_dir" && as_dir=. 3210 # Account for people who put trailing slashes in PATH elements. 3211case $as_dir/ in #(( 3212 ./ | .// | /[cC]/* | \ 3213 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3214 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3215 /usr/ucb/* ) ;; 3216 *) 3217 # OSF1 and SCO ODT 3.0 have their own names for install. 3218 # Don't use installbsd from OSF since it installs stuff as root 3219 # by default. 3220 for ac_prog in ginstall scoinst install; do 3221 for ac_exec_ext in '' $ac_executable_extensions; do 3222 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3223 if test $ac_prog = install && 3224 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3225 # AIX install. It has an incompatible calling convention. 3226 : 3227 elif test $ac_prog = install && 3228 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3229 # program-specific install script used by HP pwplus--don't use. 3230 : 3231 else 3232 rm -rf conftest.one conftest.two conftest.dir 3233 echo one > conftest.one 3234 echo two > conftest.two 3235 mkdir conftest.dir 3236 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3237 test -s conftest.one && test -s conftest.two && 3238 test -s conftest.dir/conftest.one && 3239 test -s conftest.dir/conftest.two 3240 then 3241 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3242 break 3 3243 fi 3244 fi 3245 fi 3246 done 3247 done 3248 ;; 3249esac 3250 3251 done 3252IFS=$as_save_IFS 3253 3254rm -rf conftest.one conftest.two conftest.dir 3255 3256fi 3257 if test "${ac_cv_path_install+set}" = set; then 3258 INSTALL=$ac_cv_path_install 3259 else 3260 # As a last resort, use the slow shell script. Don't cache a 3261 # value for INSTALL within a source directory, because that will 3262 # break other packages using the cache if that directory is 3263 # removed, or if the value is a relative name. 3264 INSTALL=$ac_install_sh 3265 fi 3266fi 3267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3268$as_echo "$INSTALL" >&6; } 3269 3270# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3271# It thinks the first close brace ends the variable substitution. 3272test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3273 3274test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3275 3276test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3277 3278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3279$as_echo_n "checking whether build environment is sane... " >&6; } 3280# Just in case 3281sleep 1 3282echo timestamp > conftest.file 3283# Do `set' in a subshell so we don't clobber the current shell's 3284# arguments. Must try -L first in case configure is actually a 3285# symlink; some systems play weird games with the mod time of symlinks 3286# (eg FreeBSD returns the mod time of the symlink's containing 3287# directory). 3288if ( 3289 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 3290 if test "$*" = "X"; then 3291 # -L didn't work. 3292 set X `ls -t $srcdir/configure conftest.file` 3293 fi 3294 rm -f conftest.file 3295 if test "$*" != "X $srcdir/configure conftest.file" \ 3296 && test "$*" != "X conftest.file $srcdir/configure"; then 3297 3298 # If neither matched, then we have a broken ls. This can happen 3299 # if, for instance, CONFIG_SHELL is bash and it inherits a 3300 # broken ls alias from the environment. This has actually 3301 # happened. Such a system could not be considered "sane". 3302 as_fn_error "ls -t appears to fail. Make sure there is not a broken 3303alias in your environment" "$LINENO" 5 3304 fi 3305 3306 test "$2" = conftest.file 3307 ) 3308then 3309 # Ok. 3310 : 3311else 3312 as_fn_error "newly created file is older than distributed files! 3313Check your system clock" "$LINENO" 5 3314fi 3315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3316$as_echo "yes" >&6; } 3317test "$program_prefix" != NONE && 3318 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3319# Use a double $ so make ignores it. 3320test "$program_suffix" != NONE && 3321 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3322# Double any \ or $. 3323# By default was `s,x,x', remove it if useless. 3324ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3325program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3326 3327# expand $ac_aux_dir to an absolute path 3328am_aux_dir=`cd $ac_aux_dir && pwd` 3329 3330test x"${MISSING+set}" = xset || MISSING="\${SHELL} \"$am_aux_dir/missing\"" 3331# Use eval to expand $SHELL 3332if eval "$MISSING --run true"; then 3333 am_missing_run="$MISSING --run " 3334else 3335 am_missing_run= 3336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 3337$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 3338fi 3339 3340if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 3341 # We used to keeping the `.' as first argument, in order to 3342 # allow $(mkdir_p) to be used without argument. As in 3343 # $(mkdir_p) $(somedir) 3344 # where $(somedir) is conditionally defined. However this is wrong 3345 # for two reasons: 3346 # 1. if the package is installed by a user who cannot write `.' 3347 # make install will fail, 3348 # 2. the above comment should most certainly read 3349 # $(mkdir_p) $(DESTDIR)$(somedir) 3350 # so it does not work when $(somedir) is undefined and 3351 # $(DESTDIR) is not. 3352 # To support the latter case, we have to write 3353 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 3354 # so the `.' trick is pointless. 3355 mkdir_p='mkdir -p --' 3356else 3357 # On NextStep and OpenStep, the `mkdir' command does not 3358 # recognize any option. It will interpret all options as 3359 # directories to create, and then abort because `.' already 3360 # exists. 3361 for d in ./-p ./--version; 3362 do 3363 test -d $d && rmdir $d 3364 done 3365 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 3366 if test -f "$ac_aux_dir/mkinstalldirs"; then 3367 mkdir_p='$(mkinstalldirs)' 3368 else 3369 mkdir_p='$(install_sh) -d' 3370 fi 3371fi 3372 3373for ac_prog in gawk mawk nawk awk 3374do 3375 # Extract the first word of "$ac_prog", so it can be a program name with args. 3376set dummy $ac_prog; ac_word=$2 3377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3378$as_echo_n "checking for $ac_word... " >&6; } 3379if test "${ac_cv_prog_AWK+set}" = set; then : 3380 $as_echo_n "(cached) " >&6 3381else 3382 if test -n "$AWK"; then 3383 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3384else 3385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3386for as_dir in $PATH 3387do 3388 IFS=$as_save_IFS 3389 test -z "$as_dir" && as_dir=. 3390 for ac_exec_ext in '' $ac_executable_extensions; do 3391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3392 ac_cv_prog_AWK="$ac_prog" 3393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3394 break 2 3395 fi 3396done 3397 done 3398IFS=$as_save_IFS 3399 3400fi 3401fi 3402AWK=$ac_cv_prog_AWK 3403if test -n "$AWK"; then 3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3405$as_echo "$AWK" >&6; } 3406else 3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3408$as_echo "no" >&6; } 3409fi 3410 3411 3412 test -n "$AWK" && break 3413done 3414 3415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3416$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3417set x ${MAKE-make} 3418ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3419if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 3420 $as_echo_n "(cached) " >&6 3421else 3422 cat >conftest.make <<\_ACEOF 3423SHELL = /bin/sh 3424all: 3425 @echo '@@@%%%=$(MAKE)=@@@%%%' 3426_ACEOF 3427# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3428case `${MAKE-make} -f conftest.make 2>/dev/null` in 3429 *@@@%%%=?*=@@@%%%*) 3430 eval ac_cv_prog_make_${ac_make}_set=yes;; 3431 *) 3432 eval ac_cv_prog_make_${ac_make}_set=no;; 3433esac 3434rm -f conftest.make 3435fi 3436if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3438$as_echo "yes" >&6; } 3439 SET_MAKE= 3440else 3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3442$as_echo "no" >&6; } 3443 SET_MAKE="MAKE=${MAKE-make}" 3444fi 3445 3446rm -rf .tst 2>/dev/null 3447mkdir .tst 2>/dev/null 3448if test -d .tst; then 3449 am__leading_dot=. 3450else 3451 am__leading_dot=_ 3452fi 3453rmdir .tst 2>/dev/null 3454 3455# test to see if srcdir already configured 3456if test "`cd $srcdir && pwd`" != "`pwd`" && 3457 test -f $srcdir/config.status; then 3458 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3459fi 3460 3461# test whether we have cygpath 3462if test -z "$CYGPATH_W"; then 3463 if (cygpath --version) >/dev/null 2>/dev/null; then 3464 CYGPATH_W='cygpath -w' 3465 else 3466 CYGPATH_W=echo 3467 fi 3468fi 3469 3470 3471# Define the identity of the package. 3472 PACKAGE='curl' 3473 VERSION='-' 3474 3475 3476cat >>confdefs.h <<_ACEOF 3477#define PACKAGE "$PACKAGE" 3478_ACEOF 3479 3480 3481cat >>confdefs.h <<_ACEOF 3482#define VERSION "$VERSION" 3483_ACEOF 3484 3485# Some tools Automake needs. 3486 3487ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3488 3489 3490AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3491 3492 3493AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3494 3495 3496AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3497 3498 3499MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3500 3501install_sh=${install_sh-"$am_aux_dir/install-sh"} 3502 3503# Installed binaries are usually stripped using `strip' when the user 3504# run `make install-strip'. However `strip' might not be the right 3505# tool to use in cross-compilation environments, therefore Automake 3506# will honor the `STRIP' environment variable to overrule this program. 3507if test "$cross_compiling" != no; then 3508 if test -n "$ac_tool_prefix"; then 3509 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3510set dummy ${ac_tool_prefix}strip; 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; } 3513if test "${ac_cv_prog_STRIP+set}" = set; then : 3514 $as_echo_n "(cached) " >&6 3515else 3516 if test -n "$STRIP"; then 3517 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3518else 3519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3520for as_dir in $PATH 3521do 3522 IFS=$as_save_IFS 3523 test -z "$as_dir" && as_dir=. 3524 for ac_exec_ext in '' $ac_executable_extensions; do 3525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3526 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3528 break 2 3529 fi 3530done 3531 done 3532IFS=$as_save_IFS 3533 3534fi 3535fi 3536STRIP=$ac_cv_prog_STRIP 3537if test -n "$STRIP"; then 3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3539$as_echo "$STRIP" >&6; } 3540else 3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3542$as_echo "no" >&6; } 3543fi 3544 3545 3546fi 3547if test -z "$ac_cv_prog_STRIP"; then 3548 ac_ct_STRIP=$STRIP 3549 # Extract the first word of "strip", so it can be a program name with args. 3550set dummy strip; ac_word=$2 3551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3552$as_echo_n "checking for $ac_word... " >&6; } 3553if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 3554 $as_echo_n "(cached) " >&6 3555else 3556 if test -n "$ac_ct_STRIP"; then 3557 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3558else 3559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3560for as_dir in $PATH 3561do 3562 IFS=$as_save_IFS 3563 test -z "$as_dir" && as_dir=. 3564 for ac_exec_ext in '' $ac_executable_extensions; do 3565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3566 ac_cv_prog_ac_ct_STRIP="strip" 3567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3568 break 2 3569 fi 3570done 3571 done 3572IFS=$as_save_IFS 3573 3574fi 3575fi 3576ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3577if test -n "$ac_ct_STRIP"; then 3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3579$as_echo "$ac_ct_STRIP" >&6; } 3580else 3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3582$as_echo "no" >&6; } 3583fi 3584 3585 if test "x$ac_ct_STRIP" = x; then 3586 STRIP=":" 3587 else 3588 case $cross_compiling:$ac_tool_warned in 3589yes:) 3590{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3591$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3592ac_tool_warned=yes ;; 3593esac 3594 STRIP=$ac_ct_STRIP 3595 fi 3596else 3597 STRIP="$ac_cv_prog_STRIP" 3598fi 3599 3600fi 3601INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 3602 3603# We need awk for the "check" target. The system "awk" is bad on 3604# some platforms. 3605# Always define AMTAR for backward compatibility. 3606 3607AMTAR=${AMTAR-"${am_missing_run}tar"} 3608 3609am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3610 3611 3612 3613 3614 3615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5 3616$as_echo_n "checking curl version... " >&6; } 3617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5 3618$as_echo "$CURLVERSION" >&6; } 3619 3620 3621 3622VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\(.*\)/\1/p' ${srcdir}/include/curl/curlver.h` 3623 3624 3625PKGADD_PKG="HAXXcurl" 3626PKGADD_NAME="cURL - a client that groks URLs" 3627PKGADD_VENDOR="curl.haxx.se" 3628 3629 3630 3631 3632 curl_ssl_msg="no (--with-{ssl,gnutls,nss,polarssl,cyassl,axtls} )" 3633 curl_ssh_msg="no (--with-libssh2)" 3634 curl_zlib_msg="no (--with-zlib)" 3635 curl_krb4_msg="no (--with-krb4*)" 3636 curl_gss_msg="no (--with-gssapi)" 3637 curl_spnego_msg="no (--with-spnego)" 3638curl_tls_srp_msg="no (--enable-tls-srp)" 3639 curl_res_msg="default (--enable-ares / --enable-threaded-resolver)" 3640 curl_ipv6_msg="no (--enable-ipv6)" 3641 curl_idn_msg="no (--with-libidn)" 3642 curl_manual_msg="no (--enable-manual)" 3643curl_verbose_msg="enabled (--disable-verbose)" 3644 curl_sspi_msg="no (--enable-sspi)" 3645 curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)" 3646 curl_ldaps_msg="no (--enable-ldaps)" 3647 curl_rtsp_msg="no (--enable-rtsp)" 3648 curl_rtmp_msg="no (--with-librtmp)" 3649 init_ssl_msg=${curl_ssl_msg} 3650 3651ALL_LIBS=$LIBS 3652 3653 3654# Make sure we can run config.sub. 3655$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3656 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3657 3658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3659$as_echo_n "checking build system type... " >&6; } 3660if test "${ac_cv_build+set}" = set; then : 3661 $as_echo_n "(cached) " >&6 3662else 3663 ac_build_alias=$build_alias 3664test "x$ac_build_alias" = x && 3665 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3666test "x$ac_build_alias" = x && 3667 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 3668ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3669 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3670 3671fi 3672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3673$as_echo "$ac_cv_build" >&6; } 3674case $ac_cv_build in 3675*-*-*) ;; 3676*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 3677esac 3678build=$ac_cv_build 3679ac_save_IFS=$IFS; IFS='-' 3680set x $ac_cv_build 3681shift 3682build_cpu=$1 3683build_vendor=$2 3684shift; shift 3685# Remember, the first character of IFS is used to create $*, 3686# except with old shells: 3687build_os=$* 3688IFS=$ac_save_IFS 3689case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3690 3691 3692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3693$as_echo_n "checking host system type... " >&6; } 3694if test "${ac_cv_host+set}" = set; then : 3695 $as_echo_n "(cached) " >&6 3696else 3697 if test "x$host_alias" = x; then 3698 ac_cv_host=$ac_cv_build 3699else 3700 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3701 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3702fi 3703 3704fi 3705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3706$as_echo "$ac_cv_host" >&6; } 3707case $ac_cv_host in 3708*-*-*) ;; 3709*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 3710esac 3711host=$ac_cv_host 3712ac_save_IFS=$IFS; IFS='-' 3713set x $ac_cv_host 3714shift 3715host_cpu=$1 3716host_vendor=$2 3717shift; shift 3718# Remember, the first character of IFS is used to create $*, 3719# except with old shells: 3720host_os=$* 3721IFS=$ac_save_IFS 3722case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3723 3724 3725 3726cat >>confdefs.h <<_ACEOF 3727#define OS "${host}" 3728_ACEOF 3729 3730 3731DEPDIR="${am__leading_dot}deps" 3732 3733ac_config_commands="$ac_config_commands depfiles" 3734 3735 3736am_make=${MAKE-make} 3737cat > confinc << 'END' 3738am__doit: 3739 @echo done 3740.PHONY: am__doit 3741END 3742# If we don't find an include directive, just comment out the code. 3743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3744$as_echo_n "checking for style of include used by $am_make... " >&6; } 3745am__include="#" 3746am__quote= 3747_am_result=none 3748# First try GNU make style include. 3749echo "include confinc" > confmf 3750# We grep out `Entering directory' and `Leaving directory' 3751# messages which can occur if `w' ends up in MAKEFLAGS. 3752# In particular we don't look at `^make:' because GNU make might 3753# be invoked under some other name (usually "gmake"), in which 3754# case it prints its new name instead of `make'. 3755if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3756 am__include=include 3757 am__quote= 3758 _am_result=GNU 3759fi 3760# Now try BSD make style include. 3761if test "$am__include" = "#"; then 3762 echo '.include "confinc"' > confmf 3763 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3764 am__include=.include 3765 am__quote="\"" 3766 _am_result=BSD 3767 fi 3768fi 3769 3770 3771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3772$as_echo "$_am_result" >&6; } 3773rm -f confinc confmf 3774 3775# Check whether --enable-dependency-tracking was given. 3776if test "${enable_dependency_tracking+set}" = set; then : 3777 enableval=$enable_dependency_tracking; 3778fi 3779 3780if test "x$enable_dependency_tracking" != xno; then 3781 am_depcomp="$ac_aux_dir/depcomp" 3782 AMDEPBACKSLASH='\' 3783fi 3784 3785 3786if test "x$enable_dependency_tracking" != xno; then 3787 AMDEP_TRUE= 3788 AMDEP_FALSE='#' 3789else 3790 AMDEP_TRUE='#' 3791 AMDEP_FALSE= 3792fi 3793 3794 3795 3796 3797 ac_save_CFLAGS="$CFLAGS" 3798 ac_save_CPPFLAGS="$CPPFLAGS" 3799 ac_ext=c 3800ac_cpp='$CPP $CPPFLAGS' 3801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3803ac_compiler_gnu=$ac_cv_c_compiler_gnu 3804if test -n "$ac_tool_prefix"; then 3805 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3806set dummy ${ac_tool_prefix}gcc; ac_word=$2 3807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3808$as_echo_n "checking for $ac_word... " >&6; } 3809if test "${ac_cv_prog_CC+set}" = set; then : 3810 $as_echo_n "(cached) " >&6 3811else 3812 if test -n "$CC"; then 3813 ac_cv_prog_CC="$CC" # Let the user override the test. 3814else 3815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3816for as_dir in $PATH 3817do 3818 IFS=$as_save_IFS 3819 test -z "$as_dir" && as_dir=. 3820 for ac_exec_ext in '' $ac_executable_extensions; do 3821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3822 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3824 break 2 3825 fi 3826done 3827 done 3828IFS=$as_save_IFS 3829 3830fi 3831fi 3832CC=$ac_cv_prog_CC 3833if test -n "$CC"; then 3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3835$as_echo "$CC" >&6; } 3836else 3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3838$as_echo "no" >&6; } 3839fi 3840 3841 3842fi 3843if test -z "$ac_cv_prog_CC"; then 3844 ac_ct_CC=$CC 3845 # Extract the first word of "gcc", so it can be a program name with args. 3846set dummy gcc; ac_word=$2 3847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3848$as_echo_n "checking for $ac_word... " >&6; } 3849if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3850 $as_echo_n "(cached) " >&6 3851else 3852 if test -n "$ac_ct_CC"; then 3853 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3854else 3855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3856for as_dir in $PATH 3857do 3858 IFS=$as_save_IFS 3859 test -z "$as_dir" && as_dir=. 3860 for ac_exec_ext in '' $ac_executable_extensions; do 3861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3862 ac_cv_prog_ac_ct_CC="gcc" 3863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3864 break 2 3865 fi 3866done 3867 done 3868IFS=$as_save_IFS 3869 3870fi 3871fi 3872ac_ct_CC=$ac_cv_prog_ac_ct_CC 3873if test -n "$ac_ct_CC"; then 3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3875$as_echo "$ac_ct_CC" >&6; } 3876else 3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3878$as_echo "no" >&6; } 3879fi 3880 3881 if test "x$ac_ct_CC" = x; then 3882 CC="" 3883 else 3884 case $cross_compiling:$ac_tool_warned in 3885yes:) 3886{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3888ac_tool_warned=yes ;; 3889esac 3890 CC=$ac_ct_CC 3891 fi 3892else 3893 CC="$ac_cv_prog_CC" 3894fi 3895 3896if test -z "$CC"; then 3897 if test -n "$ac_tool_prefix"; then 3898 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3899set dummy ${ac_tool_prefix}cc; ac_word=$2 3900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3901$as_echo_n "checking for $ac_word... " >&6; } 3902if test "${ac_cv_prog_CC+set}" = set; then : 3903 $as_echo_n "(cached) " >&6 3904else 3905 if test -n "$CC"; then 3906 ac_cv_prog_CC="$CC" # Let the user override the test. 3907else 3908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3909for as_dir in $PATH 3910do 3911 IFS=$as_save_IFS 3912 test -z "$as_dir" && as_dir=. 3913 for ac_exec_ext in '' $ac_executable_extensions; do 3914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3915 ac_cv_prog_CC="${ac_tool_prefix}cc" 3916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3917 break 2 3918 fi 3919done 3920 done 3921IFS=$as_save_IFS 3922 3923fi 3924fi 3925CC=$ac_cv_prog_CC 3926if test -n "$CC"; then 3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3928$as_echo "$CC" >&6; } 3929else 3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3931$as_echo "no" >&6; } 3932fi 3933 3934 3935 fi 3936fi 3937if test -z "$CC"; then 3938 # Extract the first word of "cc", so it can be a program name with args. 3939set dummy cc; ac_word=$2 3940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3941$as_echo_n "checking for $ac_word... " >&6; } 3942if test "${ac_cv_prog_CC+set}" = set; then : 3943 $as_echo_n "(cached) " >&6 3944else 3945 if test -n "$CC"; then 3946 ac_cv_prog_CC="$CC" # Let the user override the test. 3947else 3948 ac_prog_rejected=no 3949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3950for as_dir in $PATH 3951do 3952 IFS=$as_save_IFS 3953 test -z "$as_dir" && as_dir=. 3954 for ac_exec_ext in '' $ac_executable_extensions; do 3955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3956 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3957 ac_prog_rejected=yes 3958 continue 3959 fi 3960 ac_cv_prog_CC="cc" 3961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3962 break 2 3963 fi 3964done 3965 done 3966IFS=$as_save_IFS 3967 3968if test $ac_prog_rejected = yes; then 3969 # We found a bogon in the path, so make sure we never use it. 3970 set dummy $ac_cv_prog_CC 3971 shift 3972 if test $# != 0; then 3973 # We chose a different compiler from the bogus one. 3974 # However, it has the same basename, so the bogon will be chosen 3975 # first if we set CC to just the basename; use the full file name. 3976 shift 3977 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3978 fi 3979fi 3980fi 3981fi 3982CC=$ac_cv_prog_CC 3983if test -n "$CC"; then 3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3985$as_echo "$CC" >&6; } 3986else 3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3988$as_echo "no" >&6; } 3989fi 3990 3991 3992fi 3993if test -z "$CC"; then 3994 if test -n "$ac_tool_prefix"; then 3995 for ac_prog in cl.exe 3996 do 3997 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3998set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4000$as_echo_n "checking for $ac_word... " >&6; } 4001if test "${ac_cv_prog_CC+set}" = set; then : 4002 $as_echo_n "(cached) " >&6 4003else 4004 if test -n "$CC"; then 4005 ac_cv_prog_CC="$CC" # Let the user override the test. 4006else 4007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4008for as_dir in $PATH 4009do 4010 IFS=$as_save_IFS 4011 test -z "$as_dir" && as_dir=. 4012 for ac_exec_ext in '' $ac_executable_extensions; do 4013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4014 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4016 break 2 4017 fi 4018done 4019 done 4020IFS=$as_save_IFS 4021 4022fi 4023fi 4024CC=$ac_cv_prog_CC 4025if test -n "$CC"; then 4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4027$as_echo "$CC" >&6; } 4028else 4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4030$as_echo "no" >&6; } 4031fi 4032 4033 4034 test -n "$CC" && break 4035 done 4036fi 4037if test -z "$CC"; then 4038 ac_ct_CC=$CC 4039 for ac_prog in cl.exe 4040do 4041 # Extract the first word of "$ac_prog", so it can be a program name with args. 4042set dummy $ac_prog; ac_word=$2 4043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4044$as_echo_n "checking for $ac_word... " >&6; } 4045if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4046 $as_echo_n "(cached) " >&6 4047else 4048 if test -n "$ac_ct_CC"; then 4049 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4050else 4051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4052for as_dir in $PATH 4053do 4054 IFS=$as_save_IFS 4055 test -z "$as_dir" && as_dir=. 4056 for ac_exec_ext in '' $ac_executable_extensions; do 4057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4058 ac_cv_prog_ac_ct_CC="$ac_prog" 4059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4060 break 2 4061 fi 4062done 4063 done 4064IFS=$as_save_IFS 4065 4066fi 4067fi 4068ac_ct_CC=$ac_cv_prog_ac_ct_CC 4069if test -n "$ac_ct_CC"; then 4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4071$as_echo "$ac_ct_CC" >&6; } 4072else 4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4074$as_echo "no" >&6; } 4075fi 4076 4077 4078 test -n "$ac_ct_CC" && break 4079done 4080 4081 if test "x$ac_ct_CC" = x; then 4082 CC="" 4083 else 4084 case $cross_compiling:$ac_tool_warned in 4085yes:) 4086{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4087$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4088ac_tool_warned=yes ;; 4089esac 4090 CC=$ac_ct_CC 4091 fi 4092fi 4093 4094fi 4095 4096 4097test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4098$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4099as_fn_error "no acceptable C compiler found in \$PATH 4100See \`config.log' for more details." "$LINENO" 5; } 4101 4102# Provide some information about the compiler. 4103$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4104set X $ac_compile 4105ac_compiler=$2 4106for ac_option in --version -v -V -qversion; do 4107 { { ac_try="$ac_compiler $ac_option >&5" 4108case "(($ac_try" in 4109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4110 *) ac_try_echo=$ac_try;; 4111esac 4112eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4113$as_echo "$ac_try_echo"; } >&5 4114 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4115 ac_status=$? 4116 if test -s conftest.err; then 4117 sed '10a\ 4118... rest of stderr output deleted ... 4119 10q' conftest.err >conftest.er1 4120 cat conftest.er1 >&5 4121 rm -f conftest.er1 conftest.err 4122 fi 4123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4124 test $ac_status = 0; } 4125done 4126 4127cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4128/* end confdefs.h. */ 4129#include <stdio.h> 4130int main (void) 4131{ 4132FILE *f = fopen ("conftest.out", "w"); 4133 return ferror (f) || fclose (f) != 0; 4134 4135 ; 4136 return 0; 4137} 4138_ACEOF 4139ac_clean_files_save=$ac_clean_files 4140ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" 4141# Try to create an executable without -o first, disregard a.out. 4142# It will help us diagnose broken compilers, and finding out an intuition 4143# of exeext. 4144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4145$as_echo_n "checking for C compiler default output file name... " >&6; } 4146ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4147 4148# The possible output files: 4149ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4150 4151ac_rmfiles= 4152for ac_file in $ac_files 4153do 4154 case $ac_file in 4155 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4156 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4157 esac 4158done 4159rm -f $ac_rmfiles 4160 4161if { { ac_try="$ac_link_default" 4162case "(($ac_try" in 4163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4164 *) ac_try_echo=$ac_try;; 4165esac 4166eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4167$as_echo "$ac_try_echo"; } >&5 4168 (eval "$ac_link_default") 2>&5 4169 ac_status=$? 4170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4171 test $ac_status = 0; }; then : 4172 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4173# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4174# in a Makefile. We should not override ac_cv_exeext if it was cached, 4175# so that the user can short-circuit this test for compilers unknown to 4176# Autoconf. 4177for ac_file in $ac_files '' 4178do 4179 test -f "$ac_file" || continue 4180 case $ac_file in 4181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4182 ;; 4183 [ab].out ) 4184 # We found the default executable, but exeext='' is most 4185 # certainly right. 4186 break;; 4187 *.* ) 4188 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4189 then :; else 4190 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4191 fi 4192 # We set ac_cv_exeext here because the later test for it is not 4193 # safe: cross compilers may not add the suffix if given an `-o' 4194 # argument, so we may need to know it at that point already. 4195 # Even if this section looks crufty: it has the advantage of 4196 # actually working. 4197 break;; 4198 * ) 4199 break;; 4200 esac 4201done 4202test "$ac_cv_exeext" = no && ac_cv_exeext= 4203 4204else 4205 ac_file='' 4206fi 4207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4208$as_echo "$ac_file" >&6; } 4209if test -z "$ac_file"; then : 4210 $as_echo "$as_me: failed program was:" >&5 4211sed 's/^/| /' conftest.$ac_ext >&5 4212 4213{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4215{ as_fn_set_status 77 4216as_fn_error "C compiler cannot create executables 4217See \`config.log' for more details." "$LINENO" 5; }; } 4218fi 4219ac_exeext=$ac_cv_exeext 4220 4221# Check that the compiler produces executables we can run. If not, either 4222# the compiler is broken, or we cross compile. 4223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4224$as_echo_n "checking whether the C compiler works... " >&6; } 4225# If not cross compiling, check that we can run a simple program. 4226if test "$cross_compiling" != yes; then 4227 if { ac_try='./$ac_file' 4228 { { case "(($ac_try" in 4229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4230 *) ac_try_echo=$ac_try;; 4231esac 4232eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4233$as_echo "$ac_try_echo"; } >&5 4234 (eval "$ac_try") 2>&5 4235 ac_status=$? 4236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4237 test $ac_status = 0; }; }; then 4238 cross_compiling=no 4239 else 4240 if test "$cross_compiling" = maybe; then 4241 cross_compiling=yes 4242 else 4243 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4244$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4245as_fn_error "cannot run C compiled programs. 4246If you meant to cross compile, use \`--host'. 4247See \`config.log' for more details." "$LINENO" 5; } 4248 fi 4249 fi 4250fi 4251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4252$as_echo "yes" >&6; } 4253 4254rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out 4255ac_clean_files=$ac_clean_files_save 4256# Check that the compiler produces executables we can run. If not, either 4257# the compiler is broken, or we cross compile. 4258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4259$as_echo_n "checking whether we are cross compiling... " >&6; } 4260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4261$as_echo "$cross_compiling" >&6; } 4262 4263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4264$as_echo_n "checking for suffix of executables... " >&6; } 4265if { { ac_try="$ac_link" 4266case "(($ac_try" in 4267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4268 *) ac_try_echo=$ac_try;; 4269esac 4270eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4271$as_echo "$ac_try_echo"; } >&5 4272 (eval "$ac_link") 2>&5 4273 ac_status=$? 4274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4275 test $ac_status = 0; }; then : 4276 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4277# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4278# work properly (i.e., refer to `conftest.exe'), while it won't with 4279# `rm'. 4280for ac_file in conftest.exe conftest conftest.*; do 4281 test -f "$ac_file" || continue 4282 case $ac_file in 4283 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4284 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4285 break;; 4286 * ) break;; 4287 esac 4288done 4289else 4290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4291$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4292as_fn_error "cannot compute suffix of executables: cannot compile and link 4293See \`config.log' for more details." "$LINENO" 5; } 4294fi 4295rm -f conftest$ac_cv_exeext 4296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4297$as_echo "$ac_cv_exeext" >&6; } 4298 4299rm -f conftest.$ac_ext 4300EXEEXT=$ac_cv_exeext 4301ac_exeext=$EXEEXT 4302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4303$as_echo_n "checking for suffix of object files... " >&6; } 4304if test "${ac_cv_objext+set}" = set; then : 4305 $as_echo_n "(cached) " >&6 4306else 4307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4308/* end confdefs.h. */ 4309 4310int main (void) 4311{ 4312 4313 ; 4314 return 0; 4315} 4316_ACEOF 4317rm -f conftest.o conftest.obj 4318if { { ac_try="$ac_compile" 4319case "(($ac_try" in 4320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4321 *) ac_try_echo=$ac_try;; 4322esac 4323eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4324$as_echo "$ac_try_echo"; } >&5 4325 (eval "$ac_compile") 2>&5 4326 ac_status=$? 4327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4328 test $ac_status = 0; }; then : 4329 for ac_file in conftest.o conftest.obj conftest.*; do 4330 test -f "$ac_file" || continue; 4331 case $ac_file in 4332 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4333 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4334 break;; 4335 esac 4336done 4337else 4338 $as_echo "$as_me: failed program was:" >&5 4339sed 's/^/| /' conftest.$ac_ext >&5 4340 4341{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4342$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4343as_fn_error "cannot compute suffix of object files: cannot compile 4344See \`config.log' for more details." "$LINENO" 5; } 4345fi 4346rm -f conftest.$ac_cv_objext conftest.$ac_ext 4347fi 4348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4349$as_echo "$ac_cv_objext" >&6; } 4350OBJEXT=$ac_cv_objext 4351ac_objext=$OBJEXT 4352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4353$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4354if test "${ac_cv_c_compiler_gnu+set}" = set; then : 4355 $as_echo_n "(cached) " >&6 4356else 4357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4358/* end confdefs.h. */ 4359 4360int main (void) 4361{ 4362#ifndef __GNUC__ 4363 choke me 4364#endif 4365 4366 ; 4367 return 0; 4368} 4369_ACEOF 4370if ac_fn_c_try_compile "$LINENO"; then : 4371 ac_compiler_gnu=yes 4372else 4373 ac_compiler_gnu=no 4374fi 4375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4376ac_cv_c_compiler_gnu=$ac_compiler_gnu 4377 4378fi 4379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4380$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4381if test $ac_compiler_gnu = yes; then 4382 GCC=yes 4383else 4384 GCC= 4385fi 4386ac_test_CFLAGS=${CFLAGS+set} 4387ac_save_CFLAGS=$CFLAGS 4388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4389$as_echo_n "checking whether $CC accepts -g... " >&6; } 4390if test "${ac_cv_prog_cc_g+set}" = set; then : 4391 $as_echo_n "(cached) " >&6 4392else 4393 ac_save_c_werror_flag=$ac_c_werror_flag 4394 ac_c_werror_flag=yes 4395 ac_cv_prog_cc_g=no 4396 CFLAGS="-g" 4397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4398/* end confdefs.h. */ 4399 4400int main (void) 4401{ 4402 4403 ; 4404 return 0; 4405} 4406_ACEOF 4407if ac_fn_c_try_compile "$LINENO"; then : 4408 ac_cv_prog_cc_g=yes 4409else 4410 CFLAGS="" 4411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4412/* end confdefs.h. */ 4413 4414int main (void) 4415{ 4416 4417 ; 4418 return 0; 4419} 4420_ACEOF 4421if ac_fn_c_try_compile "$LINENO"; then : 4422 4423else 4424 ac_c_werror_flag=$ac_save_c_werror_flag 4425 CFLAGS="-g" 4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4427/* end confdefs.h. */ 4428 4429int main (void) 4430{ 4431 4432 ; 4433 return 0; 4434} 4435_ACEOF 4436if ac_fn_c_try_compile "$LINENO"; then : 4437 ac_cv_prog_cc_g=yes 4438fi 4439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4440fi 4441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4442fi 4443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4444 ac_c_werror_flag=$ac_save_c_werror_flag 4445fi 4446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4447$as_echo "$ac_cv_prog_cc_g" >&6; } 4448if test "$ac_test_CFLAGS" = set; then 4449 CFLAGS=$ac_save_CFLAGS 4450elif test $ac_cv_prog_cc_g = yes; then 4451 if test "$GCC" = yes; then 4452 CFLAGS="-g -O2" 4453 else 4454 CFLAGS="-g" 4455 fi 4456else 4457 if test "$GCC" = yes; then 4458 CFLAGS="-O2" 4459 else 4460 CFLAGS= 4461 fi 4462fi 4463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4464$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4465if test "${ac_cv_prog_cc_c89+set}" = set; then : 4466 $as_echo_n "(cached) " >&6 4467else 4468 ac_cv_prog_cc_c89=no 4469ac_save_CC=$CC 4470cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4471/* end confdefs.h. */ 4472#include <stdarg.h> 4473#include <stdio.h> 4474#include <sys/types.h> 4475#include <sys/stat.h> 4476/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4477struct buf { int x; }; 4478FILE * (*rcsopen) (struct buf *, struct stat *, int); 4479static char *e (p, i) 4480 char **p; 4481 int i; 4482{ 4483 return p[i]; 4484} 4485static char *f (char * (*g) (char **, int), char **p, ...) 4486{ 4487 char *s; 4488 va_list v; 4489 va_start (v,p); 4490 s = g (p, va_arg (v,int)); 4491 va_end (v); 4492 return s; 4493} 4494 4495/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4496 function prototypes and stuff, but not '\xHH' hex character constants. 4497 These don't provoke an error unfortunately, instead are silently treated 4498 as 'x'. The following induces an error, until -std is added to get 4499 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4500 array size at least. It's necessary to write '\x00'==0 to get something 4501 that's true only with -std. */ 4502int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4503 4504/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4505 inside strings and character constants. */ 4506#define FOO(x) 'x' 4507int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4508 4509int test (int i, double x); 4510struct s1 {int (*f) (int a);}; 4511struct s2 {int (*f) (double a);}; 4512int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4513int argc; 4514char **argv; 4515int main (void) 4516{ 4517return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4518 ; 4519 return 0; 4520} 4521_ACEOF 4522for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4523 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4524do 4525 CC="$ac_save_CC $ac_arg" 4526 if ac_fn_c_try_compile "$LINENO"; then : 4527 ac_cv_prog_cc_c89=$ac_arg 4528fi 4529rm -f core conftest.err conftest.$ac_objext 4530 test "x$ac_cv_prog_cc_c89" != "xno" && break 4531done 4532rm -f conftest.$ac_ext 4533CC=$ac_save_CC 4534 4535fi 4536# AC_CACHE_VAL 4537case "x$ac_cv_prog_cc_c89" in 4538 x) 4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4540$as_echo "none needed" >&6; } ;; 4541 xno) 4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4543$as_echo "unsupported" >&6; } ;; 4544 *) 4545 CC="$CC $ac_cv_prog_cc_c89" 4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4547$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4548esac 4549if test "x$ac_cv_prog_cc_c89" != xno; then : 4550 4551fi 4552 4553ac_ext=c 4554ac_cpp='$CPP $CPPFLAGS' 4555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4557ac_compiler_gnu=$ac_cv_c_compiler_gnu 4558 4559depcc="$CC" am_compiler_list= 4560 4561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4562$as_echo_n "checking dependency style of $depcc... " >&6; } 4563if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 4564 $as_echo_n "(cached) " >&6 4565else 4566 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4567 # We make a subdir and do the tests there. Otherwise we can end up 4568 # making bogus files that we don't know about and never remove. For 4569 # instance it was reported that on HP-UX the gcc test will end up 4570 # making a dummy file named `D' -- because `-MD' means `put the output 4571 # in D'. 4572 mkdir conftest.dir 4573 # Copy depcomp to subdir because otherwise we won't find it if we're 4574 # using a relative directory. 4575 cp "$am_depcomp" conftest.dir 4576 cd conftest.dir 4577 # We will build objects and dependencies in a subdirectory because 4578 # it helps to detect inapplicable dependency modes. For instance 4579 # both Tru64's cc and ICC support -MD to output dependencies as a 4580 # side effect of compilation, but ICC will put the dependencies in 4581 # the current directory while Tru64 will put them in the object 4582 # directory. 4583 mkdir sub 4584 4585 am_cv_CC_dependencies_compiler_type=none 4586 if test "$am_compiler_list" = ""; then 4587 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4588 fi 4589 for depmode in $am_compiler_list; do 4590 # Setup a source with many dependencies, because some compilers 4591 # like to wrap large dependency lists on column 80 (with \), and 4592 # we should not choose a depcomp mode which is confused by this. 4593 # 4594 # We need to recreate these files for each test, as the compiler may 4595 # overwrite some of them when testing with obscure command lines. 4596 # This happens at least with the AIX C compiler. 4597 : > sub/conftest.c 4598 for i in 1 2 3 4 5 6; do 4599 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4600 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4601 # Solaris 8's {/usr,}/bin/sh. 4602 touch sub/conftst$i.h 4603 done 4604 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4605 4606 case $depmode in 4607 nosideeffect) 4608 # after this tag, mechanisms are not by side-effect, so they'll 4609 # only be used when explicitly requested 4610 if test "x$enable_dependency_tracking" = xyes; then 4611 continue 4612 else 4613 break 4614 fi 4615 ;; 4616 none) break ;; 4617 esac 4618 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4619 # mode. It turns out that the SunPro C++ compiler does not properly 4620 # handle `-M -o', and we need to detect this. 4621 if depmode=$depmode \ 4622 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4623 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4624 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4625 >/dev/null 2>conftest.err && 4626 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4627 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4628 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4629 # icc doesn't choke on unknown options, it will just issue warnings 4630 # or remarks (even with -Werror). So we grep stderr for any message 4631 # that says an option was ignored or not supported. 4632 # When given -MP, icc 7.0 and 7.1 complain thusly: 4633 # icc: Command line warning: ignoring option '-M'; no argument required 4634 # The diagnosis changed in icc 8.0: 4635 # icc: Command line remark: option '-MP' not supported 4636 if (grep 'ignoring option' conftest.err || 4637 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4638 am_cv_CC_dependencies_compiler_type=$depmode 4639 break 4640 fi 4641 fi 4642 done 4643 4644 cd .. 4645 rm -rf conftest.dir 4646else 4647 am_cv_CC_dependencies_compiler_type=none 4648fi 4649 4650fi 4651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4652$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4653CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4654 4655 4656 4657if 4658 test "x$enable_dependency_tracking" != xno \ 4659 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4660 am__fastdepCC_TRUE= 4661 am__fastdepCC_FALSE='#' 4662else 4663 am__fastdepCC_TRUE='#' 4664 am__fastdepCC_FALSE= 4665fi 4666 4667 4668 CFLAGS="$ac_save_CFLAGS" 4669 CPPFLAGS="$ac_save_CPPFLAGS" 4670 4671 4672 4673 4674curl_includes_inttypes="\ 4675/* includes start */ 4676#ifdef HAVE_SYS_TYPES_H 4677# include <sys/types.h> 4678#endif 4679#ifdef HAVE_STDINT_H 4680# include <stdint.h> 4681#endif 4682#ifdef HAVE_INTTYPES_H 4683# include <inttypes.h> 4684#endif 4685/* includes end */" 4686 case $host_os in 4687 irix*) 4688 ac_cv_header_stdint_h="no" 4689 ;; 4690 esac 4691 for ac_header in sys/types.h stdint.h inttypes.h 4692do : 4693 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4694ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_inttypes 4695" 4696eval as_val=\$$as_ac_Header 4697 if test "x$as_val" = x""yes; then : 4698 cat >>confdefs.h <<_ACEOF 4699#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4700_ACEOF 4701 4702fi 4703 4704done 4705 4706 4707ac_ext=c 4708ac_cpp='$CPP $CPPFLAGS' 4709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4711ac_compiler_gnu=$ac_cv_c_compiler_gnu 4712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4713$as_echo_n "checking how to run the C preprocessor... " >&6; } 4714# On Suns, sometimes $CPP names a directory. 4715if test -n "$CPP" && test -d "$CPP"; then 4716 CPP= 4717fi 4718if test -z "$CPP"; then 4719 if test "${ac_cv_prog_CPP+set}" = set; then : 4720 $as_echo_n "(cached) " >&6 4721else 4722 # Double quotes because CPP needs to be expanded 4723 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4724 do 4725 ac_preproc_ok=false 4726for ac_c_preproc_warn_flag in '' yes 4727do 4728 # Use a header file that comes with gcc, so configuring glibc 4729 # with a fresh cross-compiler works. 4730 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4731 # <limits.h> exists even on freestanding compilers. 4732 # On the NeXT, cc -E runs the code through the compiler's parser, 4733 # not just through cpp. "Syntax error" is here to catch this case. 4734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4735/* end confdefs.h. */ 4736#ifdef __STDC__ 4737# include <limits.h> 4738#else 4739# include <assert.h> 4740#endif 4741 Syntax error 4742_ACEOF 4743if ac_fn_c_try_cpp "$LINENO"; then : 4744 4745else 4746 # Broken: fails on valid input. 4747continue 4748fi 4749rm -f conftest.err conftest.$ac_ext 4750 4751 # OK, works on sane cases. Now check whether nonexistent headers 4752 # can be detected and how. 4753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4754/* end confdefs.h. */ 4755#include <ac_nonexistent.h> 4756_ACEOF 4757if ac_fn_c_try_cpp "$LINENO"; then : 4758 # Broken: success on invalid input. 4759continue 4760else 4761 # Passes both tests. 4762ac_preproc_ok=: 4763break 4764fi 4765rm -f conftest.err conftest.$ac_ext 4766 4767done 4768# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4769rm -f conftest.err conftest.$ac_ext 4770if $ac_preproc_ok; then : 4771 break 4772fi 4773 4774 done 4775 ac_cv_prog_CPP=$CPP 4776 4777fi 4778 CPP=$ac_cv_prog_CPP 4779else 4780 ac_cv_prog_CPP=$CPP 4781fi 4782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4783$as_echo "$CPP" >&6; } 4784ac_preproc_ok=false 4785for ac_c_preproc_warn_flag in '' yes 4786do 4787 # Use a header file that comes with gcc, so configuring glibc 4788 # with a fresh cross-compiler works. 4789 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4790 # <limits.h> exists even on freestanding compilers. 4791 # On the NeXT, cc -E runs the code through the compiler's parser, 4792 # not just through cpp. "Syntax error" is here to catch this case. 4793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4794/* end confdefs.h. */ 4795#ifdef __STDC__ 4796# include <limits.h> 4797#else 4798# include <assert.h> 4799#endif 4800 Syntax error 4801_ACEOF 4802if ac_fn_c_try_cpp "$LINENO"; then : 4803 4804else 4805 # Broken: fails on valid input. 4806continue 4807fi 4808rm -f conftest.err conftest.$ac_ext 4809 4810 # OK, works on sane cases. Now check whether nonexistent headers 4811 # can be detected and how. 4812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4813/* end confdefs.h. */ 4814#include <ac_nonexistent.h> 4815_ACEOF 4816if ac_fn_c_try_cpp "$LINENO"; then : 4817 # Broken: success on invalid input. 4818continue 4819else 4820 # Passes both tests. 4821ac_preproc_ok=: 4822break 4823fi 4824rm -f conftest.err conftest.$ac_ext 4825 4826done 4827# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4828rm -f conftest.err conftest.$ac_ext 4829if $ac_preproc_ok; then : 4830 4831else 4832 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4833$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4834as_fn_error "C preprocessor \"$CPP\" fails sanity check 4835See \`config.log' for more details." "$LINENO" 5; } 4836fi 4837 4838ac_ext=c 4839ac_cpp='$CPP $CPPFLAGS' 4840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4842ac_compiler_gnu=$ac_cv_c_compiler_gnu 4843 4844 4845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4846$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4847if test "${ac_cv_path_GREP+set}" = set; then : 4848 $as_echo_n "(cached) " >&6 4849else 4850 if test -z "$GREP"; then 4851 ac_path_GREP_found=false 4852 # Loop through the user's path and test for each of PROGNAME-LIST 4853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4854for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4855do 4856 IFS=$as_save_IFS 4857 test -z "$as_dir" && as_dir=. 4858 for ac_prog in grep ggrep; do 4859 for ac_exec_ext in '' $ac_executable_extensions; do 4860 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4861 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4862# Check for GNU ac_path_GREP and select it if it is found. 4863 # Check for GNU $ac_path_GREP 4864case `"$ac_path_GREP" --version 2>&1` in 4865*GNU*) 4866 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4867*) 4868 ac_count=0 4869 $as_echo_n 0123456789 >"conftest.in" 4870 while : 4871 do 4872 cat "conftest.in" "conftest.in" >"conftest.tmp" 4873 mv "conftest.tmp" "conftest.in" 4874 cp "conftest.in" "conftest.nl" 4875 $as_echo 'GREP' >> "conftest.nl" 4876 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4877 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4878 as_fn_arith $ac_count + 1 && ac_count=$as_val 4879 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4880 # Best one so far, save it but keep looking for a better one 4881 ac_cv_path_GREP="$ac_path_GREP" 4882 ac_path_GREP_max=$ac_count 4883 fi 4884 # 10*(2^10) chars as input seems more than enough 4885 test $ac_count -gt 10 && break 4886 done 4887 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4888esac 4889 4890 $ac_path_GREP_found && break 3 4891 done 4892 done 4893 done 4894IFS=$as_save_IFS 4895 if test -z "$ac_cv_path_GREP"; then 4896 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4897 fi 4898else 4899 ac_cv_path_GREP=$GREP 4900fi 4901 4902fi 4903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4904$as_echo "$ac_cv_path_GREP" >&6; } 4905 GREP="$ac_cv_path_GREP" 4906 4907 4908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4909$as_echo_n "checking for egrep... " >&6; } 4910if test "${ac_cv_path_EGREP+set}" = set; then : 4911 $as_echo_n "(cached) " >&6 4912else 4913 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4914 then ac_cv_path_EGREP="$GREP -E" 4915 else 4916 if test -z "$EGREP"; then 4917 ac_path_EGREP_found=false 4918 # Loop through the user's path and test for each of PROGNAME-LIST 4919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4920for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4921do 4922 IFS=$as_save_IFS 4923 test -z "$as_dir" && as_dir=. 4924 for ac_prog in egrep; do 4925 for ac_exec_ext in '' $ac_executable_extensions; do 4926 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4927 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4928# Check for GNU ac_path_EGREP and select it if it is found. 4929 # Check for GNU $ac_path_EGREP 4930case `"$ac_path_EGREP" --version 2>&1` in 4931*GNU*) 4932 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_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 'EGREP' >> "conftest.nl" 4942 "$ac_path_EGREP" 'EGREP$' < "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_EGREP_max-0}; then 4946 # Best one so far, save it but keep looking for a better one 4947 ac_cv_path_EGREP="$ac_path_EGREP" 4948 ac_path_EGREP_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;; 4954esac 4955 4956 $ac_path_EGREP_found && break 3 4957 done 4958 done 4959 done 4960IFS=$as_save_IFS 4961 if test -z "$ac_cv_path_EGREP"; then 4962 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4963 fi 4964else 4965 ac_cv_path_EGREP=$EGREP 4966fi 4967 4968 fi 4969fi 4970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4971$as_echo "$ac_cv_path_EGREP" >&6; } 4972 EGREP="$ac_cv_path_EGREP" 4973 4974 4975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4976$as_echo_n "checking for ANSI C header files... " >&6; } 4977if test "${ac_cv_header_stdc+set}" = set; then : 4978 $as_echo_n "(cached) " >&6 4979else 4980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4981/* end confdefs.h. */ 4982#include <stdlib.h> 4983#include <stdarg.h> 4984#include <string.h> 4985#include <float.h> 4986 4987int main (void) 4988{ 4989 4990 ; 4991 return 0; 4992} 4993_ACEOF 4994if ac_fn_c_try_compile "$LINENO"; then : 4995 ac_cv_header_stdc=yes 4996else 4997 ac_cv_header_stdc=no 4998fi 4999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5000 5001if test $ac_cv_header_stdc = yes; then 5002 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5004/* end confdefs.h. */ 5005#include <string.h> 5006 5007_ACEOF 5008if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5009 $EGREP "memchr" >/dev/null 2>&1; then : 5010 5011else 5012 ac_cv_header_stdc=no 5013fi 5014rm -f conftest* 5015 5016fi 5017 5018if test $ac_cv_header_stdc = yes; then 5019 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5021/* end confdefs.h. */ 5022#include <stdlib.h> 5023 5024_ACEOF 5025if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5026 $EGREP "free" >/dev/null 2>&1; then : 5027 5028else 5029 ac_cv_header_stdc=no 5030fi 5031rm -f conftest* 5032 5033fi 5034 5035if test $ac_cv_header_stdc = yes; then 5036 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5037 if test "$cross_compiling" = yes; then : 5038 : 5039else 5040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5041/* end confdefs.h. */ 5042#include <ctype.h> 5043#include <stdlib.h> 5044#if ((' ' & 0x0FF) == 0x020) 5045# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5046# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5047#else 5048# define ISLOWER(c) \ 5049 (('a' <= (c) && (c) <= 'i') \ 5050 || ('j' <= (c) && (c) <= 'r') \ 5051 || ('s' <= (c) && (c) <= 'z')) 5052# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5053#endif 5054 5055#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5056int 5057main () 5058{ 5059 int i; 5060 for (i = 0; i < 256; i++) 5061 if (XOR (islower (i), ISLOWER (i)) 5062 || toupper (i) != TOUPPER (i)) 5063 return 2; 5064 return 0; 5065} 5066_ACEOF 5067if ac_fn_c_try_run "$LINENO"; then : 5068 5069else 5070 ac_cv_header_stdc=no 5071fi 5072rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5073 conftest.$ac_objext conftest.beam conftest.$ac_ext 5074fi 5075 5076fi 5077fi 5078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5079$as_echo "$ac_cv_header_stdc" >&6; } 5080if test $ac_cv_header_stdc = yes; then 5081 5082$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5083 5084fi 5085 5086# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5087for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5088 inttypes.h stdint.h unistd.h 5089do : 5090 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5091ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5092" 5093eval as_val=\$$as_ac_Header 5094 if test "x$as_val" = x""yes; then : 5095 cat >>confdefs.h <<_ACEOF 5096#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5097_ACEOF 5098 5099fi 5100 5101done 5102 5103 5104 5105 # 5106 # 5107 if test -z "$SED"; then 5108 as_fn_error "SED not set. Cannot continue without SED being set." "$LINENO" 5 5109 fi 5110 # 5111 # The cast to long int works around a bug in the HP C Compiler 5112# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 5113# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 5114# This bug is HP SR number 8606223364. 5115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 5116$as_echo_n "checking size of long... " >&6; } 5117if test "${ac_cv_sizeof_long+set}" = set; then : 5118 $as_echo_n "(cached) " >&6 5119else 5120 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 5121 5122else 5123 if test "$ac_cv_type_long" = yes; then 5124 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5125$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5126{ as_fn_set_status 77 5127as_fn_error "cannot compute sizeof (long) 5128See \`config.log' for more details." "$LINENO" 5; }; } 5129 else 5130 ac_cv_sizeof_long=0 5131 fi 5132fi 5133 5134fi 5135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 5136$as_echo "$ac_cv_sizeof_long" >&6; } 5137 5138 5139 5140cat >>confdefs.h <<_ACEOF 5141#define SIZEOF_LONG $ac_cv_sizeof_long 5142_ACEOF 5143 5144 5145 # The cast to long int works around a bug in the HP C Compiler 5146# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 5147# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 5148# This bug is HP SR number 8606223364. 5149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5 5150$as_echo_n "checking size of void*... " >&6; } 5151if test "${ac_cv_sizeof_voidp+set}" = set; then : 5152 $as_echo_n "(cached) " >&6 5153else 5154 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then : 5155 5156else 5157 if test "$ac_cv_type_voidp" = yes; then 5158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5159$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5160{ as_fn_set_status 77 5161as_fn_error "cannot compute sizeof (void*) 5162See \`config.log' for more details." "$LINENO" 5; }; } 5163 else 5164 ac_cv_sizeof_voidp=0 5165 fi 5166fi 5167 5168fi 5169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5 5170$as_echo "$ac_cv_sizeof_voidp" >&6; } 5171 5172 5173 5174cat >>confdefs.h <<_ACEOF 5175#define SIZEOF_VOIDP $ac_cv_sizeof_voidp 5176_ACEOF 5177 5178 5179 # 5180 if test -z "$ac_cv_sizeof_long" || 5181 test "$ac_cv_sizeof_long" -eq "0"; then 5182 as_fn_error "cannot find out size of long." "$LINENO" 5 5183 fi 5184 if test -z "$ac_cv_sizeof_voidp" || 5185 test "$ac_cv_sizeof_voidp" -eq "0"; then 5186 as_fn_error "cannot find out size of void*." "$LINENO" 5 5187 fi 5188 # 5189 x_LP64_long="" 5190 x_LP32_long="" 5191 x_LP16_long="" 5192 # 5193 if test "$ac_cv_sizeof_long" -eq "8" && 5194 test "$ac_cv_sizeof_voidp" -ge "8"; then 5195 x_LP64_long="long" 5196 elif test "$ac_cv_sizeof_long" -eq "4" && 5197 test "$ac_cv_sizeof_voidp" -ge "4"; then 5198 x_LP32_long="long" 5199 elif test "$ac_cv_sizeof_long" -eq "2" && 5200 test "$ac_cv_sizeof_voidp" -ge "2"; then 5201 x_LP16_long="long" 5202 fi 5203 # 5204 # 5205 curl_typeof_curl_off_t="unknown" 5206 curl_sizeof_curl_off_t="unknown" 5207 curl_format_curl_off_t="unknown" 5208 curl_format_curl_off_tu="unknown" 5209 # 5210 if test "$curl_typeof_curl_off_t" = "unknown"; then 5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit curl_off_t data type" >&5 5212$as_echo_n "checking for 64-bit curl_off_t data type... " >&6; } 5213 for t8 in \ 5214 "$x_LP64_long" \ 5215 'int64_t' \ 5216 '__int64' \ 5217 'long long' \ 5218 '__longlong' \ 5219 '__longlong_t' ; do 5220 5221 if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t8"; then 5222 tmp_includes="" 5223 tmp_source="" 5224 tmp_fmt="" 5225 case `echo "$t8" | sed 's/[^a-zA-Z0-9_]/_/g'` in 5226 int64_t) 5227 tmp_includes="$curl_includes_inttypes" 5228 tmp_source="char f[] = PRId64;" 5229 tmp_fmt="PRId64" 5230 ;; 5231 int32_t) 5232 tmp_includes="$curl_includes_inttypes" 5233 tmp_source="char f[] = PRId32;" 5234 tmp_fmt="PRId32" 5235 ;; 5236 int16_t) 5237 tmp_includes="$curl_includes_inttypes" 5238 tmp_source="char f[] = PRId16;" 5239 tmp_fmt="PRId16" 5240 ;; 5241 esac 5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5243/* end confdefs.h. */ 5244 5245 5246 $tmp_includes 5247 typedef $t8 curl_off_t; 5248 typedef char dummy_arr[sizeof(curl_off_t) == 8 ? 1 : -1]; 5249 5250int main (void) 5251{ 5252 5253 $tmp_source 5254 curl_off_t dummy; 5255 5256 ; 5257 return 0; 5258} 5259 5260_ACEOF 5261if ac_fn_c_try_compile "$LINENO"; then : 5262 5263 if test -z "$tmp_fmt"; then 5264 curl_typeof_curl_off_t="$t8" 5265 curl_sizeof_curl_off_t="8" 5266 else 5267 5268 as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh` 5269 as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh` 5270 if test -z "$SED"; then 5271 as_fn_error "SED not set. Cannot continue without SED being set." "$LINENO" 5 5272 fi 5273 if test -z "$GREP"; then 5274 as_fn_error "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 5275 fi 5276 5277 tmp_exp="" 5278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5279/* end confdefs.h. */ 5280 5281 $curl_includes_inttypes 5282#ifdef $tmp_fmt 5283CURL_DEF_TOKEN $tmp_fmt 5284#endif 5285 5286 5287_ACEOF 5288if ac_fn_c_try_cpp "$LINENO"; then : 5289 5290 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 5291 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 5292 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 5293 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 5294 if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then 5295 tmp_exp="" 5296 fi 5297 5298fi 5299rm -f conftest.err conftest.$ac_ext 5300 if test -z "$tmp_exp"; then 5301 eval "$as_ac_HaveDef=no" 5302 5303 else 5304 eval "$as_ac_HaveDef=yes" 5305 eval "$as_ac_Def=\$tmp_exp" 5306 5307 fi 5308 5309 as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh` 5310 as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh` 5311 if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then 5312 curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'` 5313 curl_typeof_curl_off_t="$t8" 5314 curl_sizeof_curl_off_t="8" 5315 fi 5316 fi 5317 5318fi 5319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5320 fi 5321 5322 done 5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5 5324$as_echo "$curl_typeof_curl_off_t" >&6; } 5325 fi 5326 if test "$curl_typeof_curl_off_t" = "unknown"; then 5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit curl_off_t data type" >&5 5328$as_echo_n "checking for 32-bit curl_off_t data type... " >&6; } 5329 for t4 in \ 5330 "$x_LP32_long" \ 5331 'int32_t' \ 5332 '__int32' \ 5333 'int' ; do 5334 5335 if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t4"; then 5336 tmp_includes="" 5337 tmp_source="" 5338 tmp_fmt="" 5339 case `echo "$t4" | sed 's/[^a-zA-Z0-9_]/_/g'` in 5340 int64_t) 5341 tmp_includes="$curl_includes_inttypes" 5342 tmp_source="char f[] = PRId64;" 5343 tmp_fmt="PRId64" 5344 ;; 5345 int32_t) 5346 tmp_includes="$curl_includes_inttypes" 5347 tmp_source="char f[] = PRId32;" 5348 tmp_fmt="PRId32" 5349 ;; 5350 int16_t) 5351 tmp_includes="$curl_includes_inttypes" 5352 tmp_source="char f[] = PRId16;" 5353 tmp_fmt="PRId16" 5354 ;; 5355 esac 5356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5357/* end confdefs.h. */ 5358 5359 5360 $tmp_includes 5361 typedef $t4 curl_off_t; 5362 typedef char dummy_arr[sizeof(curl_off_t) == 4 ? 1 : -1]; 5363 5364int main (void) 5365{ 5366 5367 $tmp_source 5368 curl_off_t dummy; 5369 5370 ; 5371 return 0; 5372} 5373 5374_ACEOF 5375if ac_fn_c_try_compile "$LINENO"; then : 5376 5377 if test -z "$tmp_fmt"; then 5378 curl_typeof_curl_off_t="$t4" 5379 curl_sizeof_curl_off_t="4" 5380 else 5381 5382 as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh` 5383 as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh` 5384 if test -z "$SED"; then 5385 as_fn_error "SED not set. Cannot continue without SED being set." "$LINENO" 5 5386 fi 5387 if test -z "$GREP"; then 5388 as_fn_error "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 5389 fi 5390 5391 tmp_exp="" 5392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5393/* end confdefs.h. */ 5394 5395 $curl_includes_inttypes 5396#ifdef $tmp_fmt 5397CURL_DEF_TOKEN $tmp_fmt 5398#endif 5399 5400 5401_ACEOF 5402if ac_fn_c_try_cpp "$LINENO"; then : 5403 5404 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 5405 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 5406 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 5407 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 5408 if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then 5409 tmp_exp="" 5410 fi 5411 5412fi 5413rm -f conftest.err conftest.$ac_ext 5414 if test -z "$tmp_exp"; then 5415 eval "$as_ac_HaveDef=no" 5416 5417 else 5418 eval "$as_ac_HaveDef=yes" 5419 eval "$as_ac_Def=\$tmp_exp" 5420 5421 fi 5422 5423 as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh` 5424 as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh` 5425 if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then 5426 curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'` 5427 curl_typeof_curl_off_t="$t4" 5428 curl_sizeof_curl_off_t="4" 5429 fi 5430 fi 5431 5432fi 5433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5434 fi 5435 5436 done 5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5 5438$as_echo "$curl_typeof_curl_off_t" >&6; } 5439 fi 5440 if test "$curl_typeof_curl_off_t" = "unknown"; then 5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 16-bit curl_off_t data type" >&5 5442$as_echo_n "checking for 16-bit curl_off_t data type... " >&6; } 5443 for t2 in \ 5444 "$x_LP16_long" \ 5445 'int16_t' \ 5446 '__int16' \ 5447 'int' ; do 5448 5449 if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t2"; then 5450 tmp_includes="" 5451 tmp_source="" 5452 tmp_fmt="" 5453 case `echo "$t2" | sed 's/[^a-zA-Z0-9_]/_/g'` in 5454 int64_t) 5455 tmp_includes="$curl_includes_inttypes" 5456 tmp_source="char f[] = PRId64;" 5457 tmp_fmt="PRId64" 5458 ;; 5459 int32_t) 5460 tmp_includes="$curl_includes_inttypes" 5461 tmp_source="char f[] = PRId32;" 5462 tmp_fmt="PRId32" 5463 ;; 5464 int16_t) 5465 tmp_includes="$curl_includes_inttypes" 5466 tmp_source="char f[] = PRId16;" 5467 tmp_fmt="PRId16" 5468 ;; 5469 esac 5470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5471/* end confdefs.h. */ 5472 5473 5474 $tmp_includes 5475 typedef $t2 curl_off_t; 5476 typedef char dummy_arr[sizeof(curl_off_t) == 2 ? 1 : -1]; 5477 5478int main (void) 5479{ 5480 5481 $tmp_source 5482 curl_off_t dummy; 5483 5484 ; 5485 return 0; 5486} 5487 5488_ACEOF 5489if ac_fn_c_try_compile "$LINENO"; then : 5490 5491 if test -z "$tmp_fmt"; then 5492 curl_typeof_curl_off_t="$t2" 5493 curl_sizeof_curl_off_t="2" 5494 else 5495 5496 as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh` 5497 as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh` 5498 if test -z "$SED"; then 5499 as_fn_error "SED not set. Cannot continue without SED being set." "$LINENO" 5 5500 fi 5501 if test -z "$GREP"; then 5502 as_fn_error "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 5503 fi 5504 5505 tmp_exp="" 5506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5507/* end confdefs.h. */ 5508 5509 $curl_includes_inttypes 5510#ifdef $tmp_fmt 5511CURL_DEF_TOKEN $tmp_fmt 5512#endif 5513 5514 5515_ACEOF 5516if ac_fn_c_try_cpp "$LINENO"; then : 5517 5518 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 5519 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 5520 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 5521 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 5522 if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then 5523 tmp_exp="" 5524 fi 5525 5526fi 5527rm -f conftest.err conftest.$ac_ext 5528 if test -z "$tmp_exp"; then 5529 eval "$as_ac_HaveDef=no" 5530 5531 else 5532 eval "$as_ac_HaveDef=yes" 5533 eval "$as_ac_Def=\$tmp_exp" 5534 5535 fi 5536 5537 as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh` 5538 as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh` 5539 if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then 5540 curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'` 5541 curl_typeof_curl_off_t="$t2" 5542 curl_sizeof_curl_off_t="2" 5543 fi 5544 fi 5545 5546fi 5547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5548 fi 5549 5550 done 5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5 5552$as_echo "$curl_typeof_curl_off_t" >&6; } 5553 fi 5554 if test "$curl_typeof_curl_off_t" = "unknown"; then 5555 as_fn_error "cannot find data type for curl_off_t." "$LINENO" 5 5556 fi 5557 # 5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5 5559$as_echo_n "checking size of curl_off_t... " >&6; } 5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_off_t" >&5 5561$as_echo "$curl_sizeof_curl_off_t" >&6; } 5562 # 5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking formatting string directive for curl_off_t" >&5 5564$as_echo_n "checking formatting string directive for curl_off_t... " >&6; } 5565 if test "$curl_format_curl_off_t" != "unknown"; then 5566 x_pull_headers="yes" 5567 curl_format_curl_off_t=`echo "$curl_format_curl_off_t" | "$SED" 's/["]//g'` 5568 curl_format_curl_off_tu=`echo "$curl_format_curl_off_t" | "$SED" 's/i$/u/'` 5569 curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/d$/u/'` 5570 curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/D$/U/'` 5571 else 5572 x_pull_headers="no" 5573 case `echo "$curl_typeof_curl_off_t" | sed 's/[^a-zA-Z0-9_]/_/g'` in 5574 long_long | __longlong | __longlong_t) 5575 curl_format_curl_off_t="lld" 5576 curl_format_curl_off_tu="llu" 5577 ;; 5578 long) 5579 curl_format_curl_off_t="ld" 5580 curl_format_curl_off_tu="lu" 5581 ;; 5582 int) 5583 curl_format_curl_off_t="d" 5584 curl_format_curl_off_tu="u" 5585 ;; 5586 __int64) 5587 curl_format_curl_off_t="I64d" 5588 curl_format_curl_off_tu="I64u" 5589 ;; 5590 __int32) 5591 curl_format_curl_off_t="I32d" 5592 curl_format_curl_off_tu="I32u" 5593 ;; 5594 __int16) 5595 curl_format_curl_off_t="I16d" 5596 curl_format_curl_off_tu="I16u" 5597 ;; 5598 *) 5599 as_fn_error "cannot find print format string for curl_off_t." "$LINENO" 5 5600 ;; 5601 esac 5602 fi 5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$curl_format_curl_off_t\"" >&5 5604$as_echo "\"$curl_format_curl_off_t\"" >&6; } 5605 # 5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking formatting string directive for unsigned curl_off_t" >&5 5607$as_echo_n "checking formatting string directive for unsigned curl_off_t... " >&6; } 5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$curl_format_curl_off_tu\"" >&5 5609$as_echo "\"$curl_format_curl_off_tu\"" >&6; } 5610 # 5611 5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking constant suffix string for curl_off_t" >&5 5613$as_echo_n "checking constant suffix string for curl_off_t... " >&6; } 5614 # 5615 curl_suffix_curl_off_t="unknown" 5616 curl_suffix_curl_off_tu="unknown" 5617 # 5618 case `echo "$curl_typeof_curl_off_t" | sed 's/[^a-zA-Z0-9_]/_/g'` in 5619 long_long | __longlong | __longlong_t) 5620 tst_suffixes="LL::" 5621 ;; 5622 long) 5623 tst_suffixes="L::" 5624 ;; 5625 int) 5626 tst_suffixes="::" 5627 ;; 5628 __int64 | int64_t) 5629 tst_suffixes="LL:i64::" 5630 ;; 5631 __int32 | int32_t) 5632 tst_suffixes="L:i32::" 5633 ;; 5634 __int16 | int16_t) 5635 tst_suffixes="L:i16::" 5636 ;; 5637 *) 5638 as_fn_error "unexpected data type $curl_typeof_curl_off_t" "$LINENO" 5 5639 ;; 5640 esac 5641 # 5642 old_IFS=$IFS; IFS=':' 5643 for tmp_ssuf in $tst_suffixes ; do 5644 IFS=$old_IFS 5645 if test "x$curl_suffix_curl_off_t" = "xunknown"; then 5646 case $tmp_ssuf in 5647 i64 | i32 | i16) 5648 tmp_usuf="u$tmp_ssuf" 5649 ;; 5650 LL | L) 5651 tmp_usuf="U$tmp_ssuf" 5652 ;; 5653 *) 5654 tmp_usuf="" 5655 ;; 5656 esac 5657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5658/* end confdefs.h. */ 5659 5660 5661 $curl_includes_inttypes 5662 typedef $curl_typeof_curl_off_t new_t; 5663 5664int main (void) 5665{ 5666 5667 new_t s1; 5668 new_t s2; 5669 s1 = -10$tmp_ssuf ; 5670 s2 = 20$tmp_ssuf ; 5671 if(s1 > s2) 5672 return 1; 5673 5674 ; 5675 return 0; 5676} 5677 5678_ACEOF 5679if ac_fn_c_try_compile "$LINENO"; then : 5680 5681 curl_suffix_curl_off_t="$tmp_ssuf" 5682 curl_suffix_curl_off_tu="$tmp_usuf" 5683 5684fi 5685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5686 fi 5687 done 5688 IFS=$old_IFS 5689 # 5690 if test "x$curl_suffix_curl_off_t" = "xunknown"; then 5691 as_fn_error "cannot find constant suffix string for curl_off_t." "$LINENO" 5 5692 else 5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_suffix_curl_off_t" >&5 5694$as_echo "$curl_suffix_curl_off_t" >&6; } 5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking constant suffix string for unsigned curl_off_t" >&5 5696$as_echo_n "checking constant suffix string for unsigned curl_off_t... " >&6; } 5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_suffix_curl_off_tu" >&5 5698$as_echo "$curl_suffix_curl_off_tu" >&6; } 5699 fi 5700 # 5701 5702 # 5703 if test "$x_pull_headers" = "yes"; then 5704 if test "x$ac_cv_header_sys_types_h" = "xyes"; then 5705 5706cat >>confdefs.h <<_EOF 5707#define CURL_PULL_SYS_TYPES_H 1 5708_EOF 5709 5710 fi 5711 if test "x$ac_cv_header_stdint_h" = "xyes"; then 5712 5713cat >>confdefs.h <<_EOF 5714#define CURL_PULL_STDINT_H 1 5715_EOF 5716 5717 fi 5718 if test "x$ac_cv_header_inttypes_h" = "xyes"; then 5719 5720cat >>confdefs.h <<_EOF 5721#define CURL_PULL_INTTYPES_H 1 5722_EOF 5723 5724 fi 5725 fi 5726 # 5727 5728cat >>confdefs.h <<_EOF 5729#define CURL_TYPEOF_CURL_OFF_T $curl_typeof_curl_off_t 5730_EOF 5731 5732 5733cat >>confdefs.h <<_EOF 5734#define CURL_FORMAT_CURL_OFF_T "$curl_format_curl_off_t" 5735_EOF 5736 5737 5738cat >>confdefs.h <<_EOF 5739#define CURL_FORMAT_CURL_OFF_TU "$curl_format_curl_off_tu" 5740_EOF 5741 5742 5743cat >>confdefs.h <<_EOF 5744#define CURL_FORMAT_OFF_T "%$curl_format_curl_off_t" 5745_EOF 5746 5747 5748cat >>confdefs.h <<_EOF 5749#define CURL_SIZEOF_CURL_OFF_T $curl_sizeof_curl_off_t 5750_EOF 5751 5752 5753cat >>confdefs.h <<_EOF 5754#define CURL_SUFFIX_CURL_OFF_T $curl_suffix_curl_off_t 5755_EOF 5756 5757 5758cat >>confdefs.h <<_EOF 5759#define CURL_SUFFIX_CURL_OFF_TU $curl_suffix_curl_off_tu 5760_EOF 5761 5762 # 5763 5764 5765 5766 5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5 5768$as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; } 5769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5770/* end confdefs.h. */ 5771 5772#ifdef _AIX 5773 yes_this_is_aix 5774#endif 5775 5776_ACEOF 5777if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5778 $EGREP "yes_this_is_aix" >/dev/null 2>&1; then : 5779 5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5781$as_echo "yes" >&6; } 5782 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5783 5784 5785else 5786 5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5788$as_echo "no" >&6; } 5789 5790fi 5791rm -f conftest* 5792 5793 5794 5795 5796 # 5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5 5798$as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; } 5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5800/* end confdefs.h. */ 5801 5802 5803 5804int main (void) 5805{ 5806 5807#ifdef _THREAD_SAFE 5808 int dummy=1; 5809#else 5810 force compilation error 5811#endif 5812 5813 ; 5814 return 0; 5815} 5816 5817_ACEOF 5818if ac_fn_c_try_compile "$LINENO"; then : 5819 5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5821$as_echo "yes" >&6; } 5822 tmp_thread_safe_initially_defined="yes" 5823 5824else 5825 5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5827$as_echo "no" >&6; } 5828 tmp_thread_safe_initially_defined="no" 5829 5830fi 5831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5832 # 5833 if test "$tmp_thread_safe_initially_defined" = "no"; then 5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5 5835$as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; } 5836 5837 case $host_os in 5838 aix[123].* | aix4.[012].*) 5839 tmp_need_thread_safe="no" 5840 ;; 5841 aix*) 5842 tmp_need_thread_safe="yes" 5843 ;; 5844 *) 5845 tmp_need_thread_safe="no" 5846 ;; 5847 esac 5848 5849 if test "$tmp_need_thread_safe" = "yes"; then 5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5851$as_echo "yes" >&6; } 5852 else 5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5854$as_echo "no" >&6; } 5855 fi 5856 fi 5857 # 5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5 5859$as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; } 5860 if test "$tmp_thread_safe_initially_defined" = "yes" || 5861 test "$tmp_need_thread_safe" = "yes"; then 5862 5863 5864$as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h 5865 5866cat >>confdefs.h <<_EOF 5867#ifndef _THREAD_SAFE 5868# define _THREAD_SAFE 5869#endif 5870_EOF 5871 5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5873$as_echo "yes" >&6; } 5874 else 5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5876$as_echo "no" >&6; } 5877 fi 5878 # 5879 5880 5881 # 5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5 5883$as_echo_n "checking if _REENTRANT is already defined... " >&6; } 5884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5885/* end confdefs.h. */ 5886 5887 5888 5889int main (void) 5890{ 5891 5892#ifdef _REENTRANT 5893 int dummy=1; 5894#else 5895 force compilation error 5896#endif 5897 5898 ; 5899 return 0; 5900} 5901 5902_ACEOF 5903if ac_fn_c_try_compile "$LINENO"; then : 5904 5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5906$as_echo "yes" >&6; } 5907 tmp_reentrant_initially_defined="yes" 5908 5909else 5910 5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5912$as_echo "no" >&6; } 5913 tmp_reentrant_initially_defined="no" 5914 5915fi 5916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5917 # 5918 if test "$tmp_reentrant_initially_defined" = "no"; then 5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5 5920$as_echo_n "checking if _REENTRANT is actually needed... " >&6; } 5921 5922 case $host_os in 5923 solaris*) 5924 tmp_need_reentrant="yes" 5925 ;; 5926 *) 5927 tmp_need_reentrant="no" 5928 ;; 5929 esac 5930 5931 if test "$tmp_need_reentrant" = "no"; then 5932 5933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5934/* end confdefs.h. */ 5935 5936 5937#include <errno.h> 5938 5939int main (void) 5940{ 5941 5942 if(0 != errno) 5943 return 1; 5944 5945 ; 5946 return 0; 5947} 5948 5949_ACEOF 5950if ac_fn_c_try_compile "$LINENO"; then : 5951 5952 tmp_errno="yes" 5953 5954else 5955 5956 tmp_errno="no" 5957 5958fi 5959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5960 if test "$tmp_errno" = "yes"; then 5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5962/* end confdefs.h. */ 5963 5964 5965#include <errno.h> 5966 5967int main (void) 5968{ 5969 5970#ifdef errno 5971 int dummy=1; 5972#else 5973 force compilation error 5974#endif 5975 5976 ; 5977 return 0; 5978} 5979 5980_ACEOF 5981if ac_fn_c_try_compile "$LINENO"; then : 5982 5983 tmp_errno="errno_macro_defined" 5984 5985else 5986 5987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5988/* end confdefs.h. */ 5989 5990 5991#define _REENTRANT 5992#include <errno.h> 5993 5994int main (void) 5995{ 5996 5997#ifdef errno 5998 int dummy=1; 5999#else 6000 force compilation error 6001#endif 6002 6003 ; 6004 return 0; 6005} 6006 6007_ACEOF 6008if ac_fn_c_try_compile "$LINENO"; then : 6009 6010 tmp_errno="errno_macro_needs_reentrant" 6011 tmp_need_reentrant="yes" 6012 6013fi 6014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6015 6016fi 6017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6018 fi 6019 6020 fi 6021 if test "$tmp_need_reentrant" = "no"; then 6022 6023 if test "$tmp_need_reentrant" = "no"; then 6024 6025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6026/* end confdefs.h. */ 6027 6028 6029#define gmtime_r innocuous_gmtime_r 6030#ifdef __STDC__ 6031# include <limits.h> 6032#else 6033# include <assert.h> 6034#endif 6035#undef gmtime_r 6036#ifdef __cplusplus 6037extern "C" 6038#endif 6039char gmtime_r (); 6040#if defined __stub_gmtime_r || defined __stub___gmtime_r 6041choke me 6042#endif 6043 6044int main (void) 6045{ 6046return gmtime_r (); 6047 ; 6048 return 0; 6049} 6050 6051_ACEOF 6052if ac_fn_c_try_link "$LINENO"; then : 6053 6054 tmp_gmtime_r="yes" 6055 6056else 6057 6058 tmp_gmtime_r="no" 6059 6060fi 6061rm -f core conftest.err conftest.$ac_objext \ 6062 conftest$ac_exeext conftest.$ac_ext 6063 if test "$tmp_gmtime_r" = "yes"; then 6064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6065/* end confdefs.h. */ 6066 6067#include <sys/types.h> 6068#include <time.h> 6069 6070_ACEOF 6071if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6072 $EGREP "gmtime_r" >/dev/null 2>&1; then : 6073 6074 tmp_gmtime_r="proto_declared" 6075 6076else 6077 6078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6079/* end confdefs.h. */ 6080 6081#define _REENTRANT 6082#include <sys/types.h> 6083#include <time.h> 6084 6085_ACEOF 6086if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6087 $EGREP "gmtime_r" >/dev/null 2>&1; then : 6088 6089 tmp_gmtime_r="proto_needs_reentrant" 6090 tmp_need_reentrant="yes" 6091 6092fi 6093rm -f conftest* 6094 6095 6096fi 6097rm -f conftest* 6098 6099 fi 6100 6101 fi 6102 if test "$tmp_need_reentrant" = "no"; then 6103 6104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6105/* end confdefs.h. */ 6106 6107 6108#define localtime_r innocuous_localtime_r 6109#ifdef __STDC__ 6110# include <limits.h> 6111#else 6112# include <assert.h> 6113#endif 6114#undef localtime_r 6115#ifdef __cplusplus 6116extern "C" 6117#endif 6118char localtime_r (); 6119#if defined __stub_localtime_r || defined __stub___localtime_r 6120choke me 6121#endif 6122 6123int main (void) 6124{ 6125return localtime_r (); 6126 ; 6127 return 0; 6128} 6129 6130_ACEOF 6131if ac_fn_c_try_link "$LINENO"; then : 6132 6133 tmp_localtime_r="yes" 6134 6135else 6136 6137 tmp_localtime_r="no" 6138 6139fi 6140rm -f core conftest.err conftest.$ac_objext \ 6141 conftest$ac_exeext conftest.$ac_ext 6142 if test "$tmp_localtime_r" = "yes"; then 6143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6144/* end confdefs.h. */ 6145 6146#include <sys/types.h> 6147#include <time.h> 6148 6149_ACEOF 6150if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6151 $EGREP "localtime_r" >/dev/null 2>&1; then : 6152 6153 tmp_localtime_r="proto_declared" 6154 6155else 6156 6157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6158/* end confdefs.h. */ 6159 6160#define _REENTRANT 6161#include <sys/types.h> 6162#include <time.h> 6163 6164_ACEOF 6165if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6166 $EGREP "localtime_r" >/dev/null 2>&1; then : 6167 6168 tmp_localtime_r="proto_needs_reentrant" 6169 tmp_need_reentrant="yes" 6170 6171fi 6172rm -f conftest* 6173 6174 6175fi 6176rm -f conftest* 6177 6178 fi 6179 6180 fi 6181 if test "$tmp_need_reentrant" = "no"; then 6182 6183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6184/* end confdefs.h. */ 6185 6186 6187#define strerror_r innocuous_strerror_r 6188#ifdef __STDC__ 6189# include <limits.h> 6190#else 6191# include <assert.h> 6192#endif 6193#undef strerror_r 6194#ifdef __cplusplus 6195extern "C" 6196#endif 6197char strerror_r (); 6198#if defined __stub_strerror_r || defined __stub___strerror_r 6199choke me 6200#endif 6201 6202int main (void) 6203{ 6204return strerror_r (); 6205 ; 6206 return 0; 6207} 6208 6209_ACEOF 6210if ac_fn_c_try_link "$LINENO"; then : 6211 6212 tmp_strerror_r="yes" 6213 6214else 6215 6216 tmp_strerror_r="no" 6217 6218fi 6219rm -f core conftest.err conftest.$ac_objext \ 6220 conftest$ac_exeext conftest.$ac_ext 6221 if test "$tmp_strerror_r" = "yes"; then 6222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6223/* end confdefs.h. */ 6224 6225#include <sys/types.h> 6226#include <string.h> 6227 6228_ACEOF 6229if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6230 $EGREP "strerror_r" >/dev/null 2>&1; then : 6231 6232 tmp_strerror_r="proto_declared" 6233 6234else 6235 6236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6237/* end confdefs.h. */ 6238 6239#define _REENTRANT 6240#include <sys/types.h> 6241#include <string.h> 6242 6243_ACEOF 6244if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6245 $EGREP "strerror_r" >/dev/null 2>&1; then : 6246 6247 tmp_strerror_r="proto_needs_reentrant" 6248 tmp_need_reentrant="yes" 6249 6250fi 6251rm -f conftest* 6252 6253 6254fi 6255rm -f conftest* 6256 6257 fi 6258 6259 fi 6260 if test "$tmp_need_reentrant" = "no"; then 6261 6262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6263/* end confdefs.h. */ 6264 6265 6266#define strtok_r innocuous_strtok_r 6267#ifdef __STDC__ 6268# include <limits.h> 6269#else 6270# include <assert.h> 6271#endif 6272#undef strtok_r 6273#ifdef __cplusplus 6274extern "C" 6275#endif 6276char strtok_r (); 6277#if defined __stub_strtok_r || defined __stub___strtok_r 6278choke me 6279#endif 6280 6281int main (void) 6282{ 6283return strtok_r (); 6284 ; 6285 return 0; 6286} 6287 6288_ACEOF 6289if ac_fn_c_try_link "$LINENO"; then : 6290 6291 tmp_strtok_r="yes" 6292 6293else 6294 6295 tmp_strtok_r="no" 6296 6297fi 6298rm -f core conftest.err conftest.$ac_objext \ 6299 conftest$ac_exeext conftest.$ac_ext 6300 if test "$tmp_strtok_r" = "yes"; then 6301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6302/* end confdefs.h. */ 6303 6304#include <sys/types.h> 6305#include <string.h> 6306 6307_ACEOF 6308if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6309 $EGREP "strtok_r" >/dev/null 2>&1; then : 6310 6311 tmp_strtok_r="proto_declared" 6312 6313else 6314 6315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6316/* end confdefs.h. */ 6317 6318#define _REENTRANT 6319#include <sys/types.h> 6320#include <string.h> 6321 6322_ACEOF 6323if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6324 $EGREP "strtok_r" >/dev/null 2>&1; then : 6325 6326 tmp_strtok_r="proto_needs_reentrant" 6327 tmp_need_reentrant="yes" 6328 6329fi 6330rm -f conftest* 6331 6332 6333fi 6334rm -f conftest* 6335 6336 fi 6337 6338 fi 6339 if test "$tmp_need_reentrant" = "no"; then 6340 6341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6342/* end confdefs.h. */ 6343 6344 6345#define inet_ntoa_r innocuous_inet_ntoa_r 6346#ifdef __STDC__ 6347# include <limits.h> 6348#else 6349# include <assert.h> 6350#endif 6351#undef inet_ntoa_r 6352#ifdef __cplusplus 6353extern "C" 6354#endif 6355char inet_ntoa_r (); 6356#if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r 6357choke me 6358#endif 6359 6360int main (void) 6361{ 6362return inet_ntoa_r (); 6363 ; 6364 return 0; 6365} 6366 6367_ACEOF 6368if ac_fn_c_try_link "$LINENO"; then : 6369 6370 tmp_inet_ntoa_r="yes" 6371 6372else 6373 6374 tmp_inet_ntoa_r="no" 6375 6376fi 6377rm -f core conftest.err conftest.$ac_objext \ 6378 conftest$ac_exeext conftest.$ac_ext 6379 if test "$tmp_inet_ntoa_r" = "yes"; then 6380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6381/* end confdefs.h. */ 6382 6383#include <sys/types.h> 6384#include <sys/socket.h> 6385#include <netinet/in.h> 6386#include <arpa/inet.h> 6387 6388_ACEOF 6389if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6390 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then : 6391 6392 tmp_inet_ntoa_r="proto_declared" 6393 6394else 6395 6396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6397/* end confdefs.h. */ 6398 6399#define _REENTRANT 6400#include <sys/types.h> 6401#include <sys/socket.h> 6402#include <netinet/in.h> 6403#include <arpa/inet.h> 6404 6405_ACEOF 6406if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6407 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then : 6408 6409 tmp_inet_ntoa_r="proto_needs_reentrant" 6410 tmp_need_reentrant="yes" 6411 6412fi 6413rm -f conftest* 6414 6415 6416fi 6417rm -f conftest* 6418 6419 fi 6420 6421 fi 6422 if test "$tmp_need_reentrant" = "no"; then 6423 6424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6425/* end confdefs.h. */ 6426 6427 6428#define gethostbyaddr_r innocuous_gethostbyaddr_r 6429#ifdef __STDC__ 6430# include <limits.h> 6431#else 6432# include <assert.h> 6433#endif 6434#undef gethostbyaddr_r 6435#ifdef __cplusplus 6436extern "C" 6437#endif 6438char gethostbyaddr_r (); 6439#if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r 6440choke me 6441#endif 6442 6443int main (void) 6444{ 6445return gethostbyaddr_r (); 6446 ; 6447 return 0; 6448} 6449 6450_ACEOF 6451if ac_fn_c_try_link "$LINENO"; then : 6452 6453 tmp_gethostbyaddr_r="yes" 6454 6455else 6456 6457 tmp_gethostbyaddr_r="no" 6458 6459fi 6460rm -f core conftest.err conftest.$ac_objext \ 6461 conftest$ac_exeext conftest.$ac_ext 6462 if test "$tmp_gethostbyaddr_r" = "yes"; then 6463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6464/* end confdefs.h. */ 6465 6466#include <sys/types.h> 6467#include <netdb.h> 6468 6469_ACEOF 6470if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6471 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then : 6472 6473 tmp_gethostbyaddr_r="proto_declared" 6474 6475else 6476 6477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6478/* end confdefs.h. */ 6479 6480#define _REENTRANT 6481#include <sys/types.h> 6482#include <netdb.h> 6483 6484_ACEOF 6485if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6486 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then : 6487 6488 tmp_gethostbyaddr_r="proto_needs_reentrant" 6489 tmp_need_reentrant="yes" 6490 6491fi 6492rm -f conftest* 6493 6494 6495fi 6496rm -f conftest* 6497 6498 fi 6499 6500 fi 6501 if test "$tmp_need_reentrant" = "no"; then 6502 6503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6504/* end confdefs.h. */ 6505 6506 6507#define gethostbyname_r innocuous_gethostbyname_r 6508#ifdef __STDC__ 6509# include <limits.h> 6510#else 6511# include <assert.h> 6512#endif 6513#undef gethostbyname_r 6514#ifdef __cplusplus 6515extern "C" 6516#endif 6517char gethostbyname_r (); 6518#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r 6519choke me 6520#endif 6521 6522int main (void) 6523{ 6524return gethostbyname_r (); 6525 ; 6526 return 0; 6527} 6528 6529_ACEOF 6530if ac_fn_c_try_link "$LINENO"; then : 6531 6532 tmp_gethostbyname_r="yes" 6533 6534else 6535 6536 tmp_gethostbyname_r="no" 6537 6538fi 6539rm -f core conftest.err conftest.$ac_objext \ 6540 conftest$ac_exeext conftest.$ac_ext 6541 if test "$tmp_gethostbyname_r" = "yes"; then 6542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6543/* end confdefs.h. */ 6544 6545#include <sys/types.h> 6546#include <netdb.h> 6547 6548_ACEOF 6549if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6550 $EGREP "gethostbyname_r" >/dev/null 2>&1; then : 6551 6552 tmp_gethostbyname_r="proto_declared" 6553 6554else 6555 6556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6557/* end confdefs.h. */ 6558 6559#define _REENTRANT 6560#include <sys/types.h> 6561#include <netdb.h> 6562 6563_ACEOF 6564if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6565 $EGREP "gethostbyname_r" >/dev/null 2>&1; then : 6566 6567 tmp_gethostbyname_r="proto_needs_reentrant" 6568 tmp_need_reentrant="yes" 6569 6570fi 6571rm -f conftest* 6572 6573 6574fi 6575rm -f conftest* 6576 6577 fi 6578 6579 fi 6580 if test "$tmp_need_reentrant" = "no"; then 6581 6582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6583/* end confdefs.h. */ 6584 6585 6586#define getprotobyname_r innocuous_getprotobyname_r 6587#ifdef __STDC__ 6588# include <limits.h> 6589#else 6590# include <assert.h> 6591#endif 6592#undef getprotobyname_r 6593#ifdef __cplusplus 6594extern "C" 6595#endif 6596char getprotobyname_r (); 6597#if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r 6598choke me 6599#endif 6600 6601int main (void) 6602{ 6603return getprotobyname_r (); 6604 ; 6605 return 0; 6606} 6607 6608_ACEOF 6609if ac_fn_c_try_link "$LINENO"; then : 6610 6611 tmp_getprotobyname_r="yes" 6612 6613else 6614 6615 tmp_getprotobyname_r="no" 6616 6617fi 6618rm -f core conftest.err conftest.$ac_objext \ 6619 conftest$ac_exeext conftest.$ac_ext 6620 if test "$tmp_getprotobyname_r" = "yes"; then 6621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6622/* end confdefs.h. */ 6623 6624#include <sys/types.h> 6625#include <netdb.h> 6626 6627_ACEOF 6628if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6629 $EGREP "getprotobyname_r" >/dev/null 2>&1; then : 6630 6631 tmp_getprotobyname_r="proto_declared" 6632 6633else 6634 6635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6636/* end confdefs.h. */ 6637 6638#define _REENTRANT 6639#include <sys/types.h> 6640#include <netdb.h> 6641 6642_ACEOF 6643if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6644 $EGREP "getprotobyname_r" >/dev/null 2>&1; then : 6645 6646 tmp_getprotobyname_r="proto_needs_reentrant" 6647 tmp_need_reentrant="yes" 6648 6649fi 6650rm -f conftest* 6651 6652 6653fi 6654rm -f conftest* 6655 6656 fi 6657 6658 fi 6659 if test "$tmp_need_reentrant" = "no"; then 6660 6661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6662/* end confdefs.h. */ 6663 6664 6665#define getservbyport_r innocuous_getservbyport_r 6666#ifdef __STDC__ 6667# include <limits.h> 6668#else 6669# include <assert.h> 6670#endif 6671#undef getservbyport_r 6672#ifdef __cplusplus 6673extern "C" 6674#endif 6675char getservbyport_r (); 6676#if defined __stub_getservbyport_r || defined __stub___getservbyport_r 6677choke me 6678#endif 6679 6680int main (void) 6681{ 6682return getservbyport_r (); 6683 ; 6684 return 0; 6685} 6686 6687_ACEOF 6688if ac_fn_c_try_link "$LINENO"; then : 6689 6690 tmp_getservbyport_r="yes" 6691 6692else 6693 6694 tmp_getservbyport_r="no" 6695 6696fi 6697rm -f core conftest.err conftest.$ac_objext \ 6698 conftest$ac_exeext conftest.$ac_ext 6699 if test "$tmp_getservbyport_r" = "yes"; then 6700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6701/* end confdefs.h. */ 6702 6703#include <sys/types.h> 6704#include <netdb.h> 6705 6706_ACEOF 6707if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6708 $EGREP "getservbyport_r" >/dev/null 2>&1; then : 6709 6710 tmp_getservbyport_r="proto_declared" 6711 6712else 6713 6714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6715/* end confdefs.h. */ 6716 6717#define _REENTRANT 6718#include <sys/types.h> 6719#include <netdb.h> 6720 6721_ACEOF 6722if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6723 $EGREP "getservbyport_r" >/dev/null 2>&1; then : 6724 6725 tmp_getservbyport_r="proto_needs_reentrant" 6726 tmp_need_reentrant="yes" 6727 6728fi 6729rm -f conftest* 6730 6731 6732fi 6733rm -f conftest* 6734 6735 fi 6736 6737 fi 6738 6739 fi 6740 if test "$tmp_need_reentrant" = "yes"; then 6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6742$as_echo "yes" >&6; } 6743 else 6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6745$as_echo "no" >&6; } 6746 fi 6747 fi 6748 # 6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5 6750$as_echo_n "checking if _REENTRANT is onwards defined... " >&6; } 6751 if test "$tmp_reentrant_initially_defined" = "yes" || 6752 test "$tmp_need_reentrant" = "yes"; then 6753 6754 6755$as_echo "#define NEED_REENTRANT 1" >>confdefs.h 6756 6757cat >>confdefs.h <<_EOF 6758#ifndef _REENTRANT 6759# define _REENTRANT 6760#endif 6761_EOF 6762 6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6764$as_echo "yes" >&6; } 6765 else 6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6767$as_echo "no" >&6; } 6768 fi 6769 # 6770 6771 6772# Check whether --enable-largefile was given. 6773if test "${enable_largefile+set}" = set; then : 6774 enableval=$enable_largefile; 6775fi 6776 6777if test "$enable_largefile" != no; then 6778 6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 6780$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 6781if test "${ac_cv_sys_largefile_CC+set}" = set; then : 6782 $as_echo_n "(cached) " >&6 6783else 6784 ac_cv_sys_largefile_CC=no 6785 if test "$GCC" != yes; then 6786 ac_save_CC=$CC 6787 while :; do 6788 # IRIX 6.2 and later do not support large files by default, 6789 # so use the C compiler's -n32 option if that helps. 6790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6791/* end confdefs.h. */ 6792#include <sys/types.h> 6793 /* Check that off_t can represent 2**63 - 1 correctly. 6794 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6795 since some C++ compilers masquerading as C compilers 6796 incorrectly reject 9223372036854775807. */ 6797#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6798 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6799 && LARGE_OFF_T % 2147483647 == 1) 6800 ? 1 : -1]; 6801int main (void) 6802{ 6803 6804 ; 6805 return 0; 6806} 6807_ACEOF 6808 if ac_fn_c_try_compile "$LINENO"; then : 6809 break 6810fi 6811rm -f core conftest.err conftest.$ac_objext 6812 CC="$CC -n32" 6813 if ac_fn_c_try_compile "$LINENO"; then : 6814 ac_cv_sys_largefile_CC=' -n32'; break 6815fi 6816rm -f core conftest.err conftest.$ac_objext 6817 break 6818 done 6819 CC=$ac_save_CC 6820 rm -f conftest.$ac_ext 6821 fi 6822fi 6823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 6824$as_echo "$ac_cv_sys_largefile_CC" >&6; } 6825 if test "$ac_cv_sys_largefile_CC" != no; then 6826 CC=$CC$ac_cv_sys_largefile_CC 6827 fi 6828 6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 6830$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 6831if test "${ac_cv_sys_file_offset_bits+set}" = set; then : 6832 $as_echo_n "(cached) " >&6 6833else 6834 while :; do 6835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6836/* end confdefs.h. */ 6837#include <sys/types.h> 6838 /* Check that off_t can represent 2**63 - 1 correctly. 6839 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6840 since some C++ compilers masquerading as C compilers 6841 incorrectly reject 9223372036854775807. */ 6842#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6843 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6844 && LARGE_OFF_T % 2147483647 == 1) 6845 ? 1 : -1]; 6846int main (void) 6847{ 6848 6849 ; 6850 return 0; 6851} 6852_ACEOF 6853if ac_fn_c_try_compile "$LINENO"; then : 6854 ac_cv_sys_file_offset_bits=no; break 6855fi 6856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6858/* end confdefs.h. */ 6859#define _FILE_OFFSET_BITS 64 6860#include <sys/types.h> 6861 /* Check that off_t can represent 2**63 - 1 correctly. 6862 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6863 since some C++ compilers masquerading as C compilers 6864 incorrectly reject 9223372036854775807. */ 6865#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6866 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6867 && LARGE_OFF_T % 2147483647 == 1) 6868 ? 1 : -1]; 6869int main (void) 6870{ 6871 6872 ; 6873 return 0; 6874} 6875_ACEOF 6876if ac_fn_c_try_compile "$LINENO"; then : 6877 ac_cv_sys_file_offset_bits=64; break 6878fi 6879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6880 ac_cv_sys_file_offset_bits=unknown 6881 break 6882done 6883fi 6884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 6885$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 6886case $ac_cv_sys_file_offset_bits in #( 6887 no | unknown) ;; 6888 *) 6889cat >>confdefs.h <<_ACEOF 6890#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 6891_ACEOF 6892;; 6893esac 6894rm -rf conftest* 6895 if test $ac_cv_sys_file_offset_bits = unknown; then 6896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 6897$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 6898if test "${ac_cv_sys_large_files+set}" = set; then : 6899 $as_echo_n "(cached) " >&6 6900else 6901 while :; do 6902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6903/* end confdefs.h. */ 6904#include <sys/types.h> 6905 /* Check that off_t can represent 2**63 - 1 correctly. 6906 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6907 since some C++ compilers masquerading as C compilers 6908 incorrectly reject 9223372036854775807. */ 6909#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6910 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6911 && LARGE_OFF_T % 2147483647 == 1) 6912 ? 1 : -1]; 6913int main (void) 6914{ 6915 6916 ; 6917 return 0; 6918} 6919_ACEOF 6920if ac_fn_c_try_compile "$LINENO"; then : 6921 ac_cv_sys_large_files=no; break 6922fi 6923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6925/* end confdefs.h. */ 6926#define _LARGE_FILES 1 6927#include <sys/types.h> 6928 /* Check that off_t can represent 2**63 - 1 correctly. 6929 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6930 since some C++ compilers masquerading as C compilers 6931 incorrectly reject 9223372036854775807. */ 6932#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6933 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6934 && LARGE_OFF_T % 2147483647 == 1) 6935 ? 1 : -1]; 6936int main (void) 6937{ 6938 6939 ; 6940 return 0; 6941} 6942_ACEOF 6943if ac_fn_c_try_compile "$LINENO"; then : 6944 ac_cv_sys_large_files=1; break 6945fi 6946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6947 ac_cv_sys_large_files=unknown 6948 break 6949done 6950fi 6951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 6952$as_echo "$ac_cv_sys_large_files" >&6; } 6953case $ac_cv_sys_large_files in #( 6954 no | unknown) ;; 6955 *) 6956cat >>confdefs.h <<_ACEOF 6957#define _LARGE_FILES $ac_cv_sys_large_files 6958_ACEOF 6959;; 6960esac 6961rm -rf conftest* 6962 fi 6963fi 6964 6965 6966enable_win32_dll=yes 6967 6968case $host in 6969*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 6970 if test -n "$ac_tool_prefix"; then 6971 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 6972set dummy ${ac_tool_prefix}as; ac_word=$2 6973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6974$as_echo_n "checking for $ac_word... " >&6; } 6975if test "${ac_cv_prog_AS+set}" = set; then : 6976 $as_echo_n "(cached) " >&6 6977else 6978 if test -n "$AS"; then 6979 ac_cv_prog_AS="$AS" # Let the user override the test. 6980else 6981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6982for as_dir in $PATH 6983do 6984 IFS=$as_save_IFS 6985 test -z "$as_dir" && as_dir=. 6986 for ac_exec_ext in '' $ac_executable_extensions; do 6987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6988 ac_cv_prog_AS="${ac_tool_prefix}as" 6989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6990 break 2 6991 fi 6992done 6993 done 6994IFS=$as_save_IFS 6995 6996fi 6997fi 6998AS=$ac_cv_prog_AS 6999if test -n "$AS"; then 7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 7001$as_echo "$AS" >&6; } 7002else 7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7004$as_echo "no" >&6; } 7005fi 7006 7007 7008fi 7009if test -z "$ac_cv_prog_AS"; then 7010 ac_ct_AS=$AS 7011 # Extract the first word of "as", so it can be a program name with args. 7012set dummy as; ac_word=$2 7013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7014$as_echo_n "checking for $ac_word... " >&6; } 7015if test "${ac_cv_prog_ac_ct_AS+set}" = set; then : 7016 $as_echo_n "(cached) " >&6 7017else 7018 if test -n "$ac_ct_AS"; then 7019 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 7020else 7021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7022for as_dir in $PATH 7023do 7024 IFS=$as_save_IFS 7025 test -z "$as_dir" && as_dir=. 7026 for ac_exec_ext in '' $ac_executable_extensions; do 7027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7028 ac_cv_prog_ac_ct_AS="as" 7029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7030 break 2 7031 fi 7032done 7033 done 7034IFS=$as_save_IFS 7035 7036fi 7037fi 7038ac_ct_AS=$ac_cv_prog_ac_ct_AS 7039if test -n "$ac_ct_AS"; then 7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 7041$as_echo "$ac_ct_AS" >&6; } 7042else 7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7044$as_echo "no" >&6; } 7045fi 7046 7047 if test "x$ac_ct_AS" = x; then 7048 AS="false" 7049 else 7050 case $cross_compiling:$ac_tool_warned in 7051yes:) 7052{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7053$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7054ac_tool_warned=yes ;; 7055esac 7056 AS=$ac_ct_AS 7057 fi 7058else 7059 AS="$ac_cv_prog_AS" 7060fi 7061 7062 if test -n "$ac_tool_prefix"; then 7063 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7064set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7066$as_echo_n "checking for $ac_word... " >&6; } 7067if test "${ac_cv_prog_DLLTOOL+set}" = set; then : 7068 $as_echo_n "(cached) " >&6 7069else 7070 if test -n "$DLLTOOL"; then 7071 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7072else 7073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7074for as_dir in $PATH 7075do 7076 IFS=$as_save_IFS 7077 test -z "$as_dir" && as_dir=. 7078 for ac_exec_ext in '' $ac_executable_extensions; do 7079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7080 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7082 break 2 7083 fi 7084done 7085 done 7086IFS=$as_save_IFS 7087 7088fi 7089fi 7090DLLTOOL=$ac_cv_prog_DLLTOOL 7091if test -n "$DLLTOOL"; then 7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7093$as_echo "$DLLTOOL" >&6; } 7094else 7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7096$as_echo "no" >&6; } 7097fi 7098 7099 7100fi 7101if test -z "$ac_cv_prog_DLLTOOL"; then 7102 ac_ct_DLLTOOL=$DLLTOOL 7103 # Extract the first word of "dlltool", so it can be a program name with args. 7104set dummy dlltool; ac_word=$2 7105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7106$as_echo_n "checking for $ac_word... " >&6; } 7107if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then : 7108 $as_echo_n "(cached) " >&6 7109else 7110 if test -n "$ac_ct_DLLTOOL"; then 7111 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7112else 7113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7114for as_dir in $PATH 7115do 7116 IFS=$as_save_IFS 7117 test -z "$as_dir" && as_dir=. 7118 for ac_exec_ext in '' $ac_executable_extensions; do 7119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7120 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7122 break 2 7123 fi 7124done 7125 done 7126IFS=$as_save_IFS 7127 7128fi 7129fi 7130ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7131if test -n "$ac_ct_DLLTOOL"; then 7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7133$as_echo "$ac_ct_DLLTOOL" >&6; } 7134else 7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7136$as_echo "no" >&6; } 7137fi 7138 7139 if test "x$ac_ct_DLLTOOL" = x; then 7140 DLLTOOL="false" 7141 else 7142 case $cross_compiling:$ac_tool_warned in 7143yes:) 7144{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7145$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7146ac_tool_warned=yes ;; 7147esac 7148 DLLTOOL=$ac_ct_DLLTOOL 7149 fi 7150else 7151 DLLTOOL="$ac_cv_prog_DLLTOOL" 7152fi 7153 7154 if test -n "$ac_tool_prefix"; then 7155 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7156set dummy ${ac_tool_prefix}objdump; ac_word=$2 7157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7158$as_echo_n "checking for $ac_word... " >&6; } 7159if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 7160 $as_echo_n "(cached) " >&6 7161else 7162 if test -n "$OBJDUMP"; then 7163 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7164else 7165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7166for as_dir in $PATH 7167do 7168 IFS=$as_save_IFS 7169 test -z "$as_dir" && as_dir=. 7170 for ac_exec_ext in '' $ac_executable_extensions; do 7171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7172 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7174 break 2 7175 fi 7176done 7177 done 7178IFS=$as_save_IFS 7179 7180fi 7181fi 7182OBJDUMP=$ac_cv_prog_OBJDUMP 7183if test -n "$OBJDUMP"; then 7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7185$as_echo "$OBJDUMP" >&6; } 7186else 7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7188$as_echo "no" >&6; } 7189fi 7190 7191 7192fi 7193if test -z "$ac_cv_prog_OBJDUMP"; then 7194 ac_ct_OBJDUMP=$OBJDUMP 7195 # Extract the first word of "objdump", so it can be a program name with args. 7196set dummy objdump; ac_word=$2 7197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7198$as_echo_n "checking for $ac_word... " >&6; } 7199if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 7200 $as_echo_n "(cached) " >&6 7201else 7202 if test -n "$ac_ct_OBJDUMP"; then 7203 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7204else 7205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7206for as_dir in $PATH 7207do 7208 IFS=$as_save_IFS 7209 test -z "$as_dir" && as_dir=. 7210 for ac_exec_ext in '' $ac_executable_extensions; do 7211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7212 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7214 break 2 7215 fi 7216done 7217 done 7218IFS=$as_save_IFS 7219 7220fi 7221fi 7222ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7223if test -n "$ac_ct_OBJDUMP"; then 7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7225$as_echo "$ac_ct_OBJDUMP" >&6; } 7226else 7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7228$as_echo "no" >&6; } 7229fi 7230 7231 if test "x$ac_ct_OBJDUMP" = x; then 7232 OBJDUMP="false" 7233 else 7234 case $cross_compiling:$ac_tool_warned in 7235yes:) 7236{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7237$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7238ac_tool_warned=yes ;; 7239esac 7240 OBJDUMP=$ac_ct_OBJDUMP 7241 fi 7242else 7243 OBJDUMP="$ac_cv_prog_OBJDUMP" 7244fi 7245 7246 ;; 7247esac 7248 7249test -z "$AS" && AS=as 7250 7251 7252 7253 7254 7255test -z "$DLLTOOL" && DLLTOOL=dlltool 7256 7257 7258 7259 7260 7261test -z "$OBJDUMP" && OBJDUMP=objdump 7262 7263 7264 7265 7266 7267 7268 7269 7270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if arch-OS host is AMD64-Linux/FreeBSD (to build static libraries with PIC)" >&5 7271$as_echo_n "checking if arch-OS host is AMD64-Linux/FreeBSD (to build static libraries with PIC)... " >&6; } 7272case $host in 7273 x86_64*linux*|amd64*freebsd*|ia64*freebsd*) 7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7275$as_echo "yes" >&6; } 7276 with_pic=yes 7277 ;; 7278 *) 7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7280$as_echo "no" >&6; } 7281 ;; 7282esac 7283 7284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is icc (to build with PIC)" >&5 7285$as_echo_n "checking if compiler is icc (to build with PIC)... " >&6; } 7286case $CC in 7287 icc | */icc) 7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7289$as_echo "yes" >&6; } 7290 with_pic=yes 7291 ;; 7292 *) 7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7294$as_echo "no" >&6; } 7295 ;; 7296esac 7297 7298case `pwd` in 7299 *\ * | *\ *) 7300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 7301$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 7302esac 7303 7304 7305 7306macro_version='2.4.2' 7307macro_revision='1.3337' 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321ltmain="$ac_aux_dir/ltmain.sh" 7322 7323# Backslashify metacharacters that are still active within 7324# double-quoted strings. 7325sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7326 7327# Same as above, but do not quote variable references. 7328double_quote_subst='s/\(["`\\]\)/\\\1/g' 7329 7330# Sed substitution to delay expansion of an escaped shell variable in a 7331# double_quote_subst'ed string. 7332delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7333 7334# Sed substitution to delay expansion of an escaped single quote. 7335delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7336 7337# Sed substitution to avoid accidental globbing in evaled expressions 7338no_glob_subst='s/\*/\\\*/g' 7339 7340ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 7341ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 7342ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 7343 7344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 7345$as_echo_n "checking how to print strings... " >&6; } 7346# Test print first, because it will be a builtin if present. 7347if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 7348 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 7349 ECHO='print -r --' 7350elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 7351 ECHO='printf %s\n' 7352else 7353 # Use this function as a fallback that always works. 7354 func_fallback_echo () 7355 { 7356 eval 'cat <<_LTECHO_EOF 7357$1 7358_LTECHO_EOF' 7359 } 7360 ECHO='func_fallback_echo' 7361fi 7362 7363# func_echo_all arg... 7364# Invoke $ECHO with all args, space-separated. 7365func_echo_all () 7366{ 7367 $ECHO "" 7368} 7369 7370case "$ECHO" in 7371 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 7372$as_echo "printf" >&6; } ;; 7373 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 7374$as_echo "print -r" >&6; } ;; 7375 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 7376$as_echo "cat" >&6; } ;; 7377esac 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 7393$as_echo_n "checking for a sed that does not truncate output... " >&6; } 7394if test "${ac_cv_path_SED+set}" = set; then : 7395 $as_echo_n "(cached) " >&6 7396else 7397 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 7398 for ac_i in 1 2 3 4 5 6 7; do 7399 ac_script="$ac_script$as_nl$ac_script" 7400 done 7401 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 7402 { ac_script=; unset ac_script;} 7403 if test -z "$SED"; then 7404 ac_path_SED_found=false 7405 # Loop through the user's path and test for each of PROGNAME-LIST 7406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7407for as_dir in $PATH 7408do 7409 IFS=$as_save_IFS 7410 test -z "$as_dir" && as_dir=. 7411 for ac_prog in sed gsed; do 7412 for ac_exec_ext in '' $ac_executable_extensions; do 7413 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 7414 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 7415# Check for GNU ac_path_SED and select it if it is found. 7416 # Check for GNU $ac_path_SED 7417case `"$ac_path_SED" --version 2>&1` in 7418*GNU*) 7419 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 7420*) 7421 ac_count=0 7422 $as_echo_n 0123456789 >"conftest.in" 7423 while : 7424 do 7425 cat "conftest.in" "conftest.in" >"conftest.tmp" 7426 mv "conftest.tmp" "conftest.in" 7427 cp "conftest.in" "conftest.nl" 7428 $as_echo '' >> "conftest.nl" 7429 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 7430 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7431 as_fn_arith $ac_count + 1 && ac_count=$as_val 7432 if test $ac_count -gt ${ac_path_SED_max-0}; then 7433 # Best one so far, save it but keep looking for a better one 7434 ac_cv_path_SED="$ac_path_SED" 7435 ac_path_SED_max=$ac_count 7436 fi 7437 # 10*(2^10) chars as input seems more than enough 7438 test $ac_count -gt 10 && break 7439 done 7440 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7441esac 7442 7443 $ac_path_SED_found && break 3 7444 done 7445 done 7446 done 7447IFS=$as_save_IFS 7448 if test -z "$ac_cv_path_SED"; then 7449 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 7450 fi 7451else 7452 ac_cv_path_SED=$SED 7453fi 7454 7455fi 7456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 7457$as_echo "$ac_cv_path_SED" >&6; } 7458 SED="$ac_cv_path_SED" 7459 rm -f conftest.sed 7460 7461test -z "$SED" && SED=sed 7462Xsed="$SED -e 1s/^X//" 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 7475$as_echo_n "checking for fgrep... " >&6; } 7476if test "${ac_cv_path_FGREP+set}" = set; then : 7477 $as_echo_n "(cached) " >&6 7478else 7479 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 7480 then ac_cv_path_FGREP="$GREP -F" 7481 else 7482 if test -z "$FGREP"; then 7483 ac_path_FGREP_found=false 7484 # Loop through the user's path and test for each of PROGNAME-LIST 7485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7486for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7487do 7488 IFS=$as_save_IFS 7489 test -z "$as_dir" && as_dir=. 7490 for ac_prog in fgrep; do 7491 for ac_exec_ext in '' $ac_executable_extensions; do 7492 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 7493 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 7494# Check for GNU ac_path_FGREP and select it if it is found. 7495 # Check for GNU $ac_path_FGREP 7496case `"$ac_path_FGREP" --version 2>&1` in 7497*GNU*) 7498 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 7499*) 7500 ac_count=0 7501 $as_echo_n 0123456789 >"conftest.in" 7502 while : 7503 do 7504 cat "conftest.in" "conftest.in" >"conftest.tmp" 7505 mv "conftest.tmp" "conftest.in" 7506 cp "conftest.in" "conftest.nl" 7507 $as_echo 'FGREP' >> "conftest.nl" 7508 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 7509 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7510 as_fn_arith $ac_count + 1 && ac_count=$as_val 7511 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 7512 # Best one so far, save it but keep looking for a better one 7513 ac_cv_path_FGREP="$ac_path_FGREP" 7514 ac_path_FGREP_max=$ac_count 7515 fi 7516 # 10*(2^10) chars as input seems more than enough 7517 test $ac_count -gt 10 && break 7518 done 7519 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7520esac 7521 7522 $ac_path_FGREP_found && break 3 7523 done 7524 done 7525 done 7526IFS=$as_save_IFS 7527 if test -z "$ac_cv_path_FGREP"; then 7528 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7529 fi 7530else 7531 ac_cv_path_FGREP=$FGREP 7532fi 7533 7534 fi 7535fi 7536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 7537$as_echo "$ac_cv_path_FGREP" >&6; } 7538 FGREP="$ac_cv_path_FGREP" 7539 7540 7541test -z "$GREP" && GREP=grep 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561# Check whether --with-gnu-ld was given. 7562if test "${with_gnu_ld+set}" = set; then : 7563 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 7564else 7565 with_gnu_ld=no 7566fi 7567 7568ac_prog=ld 7569if test "$GCC" = yes; then 7570 # Check if gcc -print-prog-name=ld gives a path. 7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 7572$as_echo_n "checking for ld used by $CC... " >&6; } 7573 case $host in 7574 *-*-mingw*) 7575 # gcc leaves a trailing carriage return which upsets mingw 7576 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7577 *) 7578 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7579 esac 7580 case $ac_prog in 7581 # Accept absolute paths. 7582 [\\/]* | ?:[\\/]*) 7583 re_direlt='/[^/][^/]*/\.\./' 7584 # Canonicalize the pathname of ld 7585 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 7586 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 7587 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 7588 done 7589 test -z "$LD" && LD="$ac_prog" 7590 ;; 7591 "") 7592 # If it fails, then pretend we aren't using GCC. 7593 ac_prog=ld 7594 ;; 7595 *) 7596 # If it is relative, then search for the first ld in PATH. 7597 with_gnu_ld=unknown 7598 ;; 7599 esac 7600elif test "$with_gnu_ld" = yes; then 7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 7602$as_echo_n "checking for GNU ld... " >&6; } 7603else 7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 7605$as_echo_n "checking for non-GNU ld... " >&6; } 7606fi 7607if test "${lt_cv_path_LD+set}" = set; then : 7608 $as_echo_n "(cached) " >&6 7609else 7610 if test -z "$LD"; then 7611 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7612 for ac_dir in $PATH; do 7613 IFS="$lt_save_ifs" 7614 test -z "$ac_dir" && ac_dir=. 7615 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7616 lt_cv_path_LD="$ac_dir/$ac_prog" 7617 # Check to see if the program is GNU ld. I'd rather use --version, 7618 # but apparently some variants of GNU ld only accept -v. 7619 # Break only if it was the GNU/non-GNU ld that we prefer. 7620 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 7621 *GNU* | *'with BFD'*) 7622 test "$with_gnu_ld" != no && break 7623 ;; 7624 *) 7625 test "$with_gnu_ld" != yes && break 7626 ;; 7627 esac 7628 fi 7629 done 7630 IFS="$lt_save_ifs" 7631else 7632 lt_cv_path_LD="$LD" # Let the user override the test with a path. 7633fi 7634fi 7635 7636LD="$lt_cv_path_LD" 7637if test -n "$LD"; then 7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 7639$as_echo "$LD" >&6; } 7640else 7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7642$as_echo "no" >&6; } 7643fi 7644test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 7645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 7646$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 7647if test "${lt_cv_prog_gnu_ld+set}" = set; then : 7648 $as_echo_n "(cached) " >&6 7649else 7650 # I'd rather use --version here, but apparently some GNU lds only accept -v. 7651case `$LD -v 2>&1 </dev/null` in 7652*GNU* | *'with BFD'*) 7653 lt_cv_prog_gnu_ld=yes 7654 ;; 7655*) 7656 lt_cv_prog_gnu_ld=no 7657 ;; 7658esac 7659fi 7660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 7661$as_echo "$lt_cv_prog_gnu_ld" >&6; } 7662with_gnu_ld=$lt_cv_prog_gnu_ld 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 7673$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 7674if test "${lt_cv_path_NM+set}" = set; then : 7675 $as_echo_n "(cached) " >&6 7676else 7677 if test -n "$NM"; then 7678 # Let the user override the test. 7679 lt_cv_path_NM="$NM" 7680else 7681 lt_nm_to_check="${ac_tool_prefix}nm" 7682 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 7683 lt_nm_to_check="$lt_nm_to_check nm" 7684 fi 7685 for lt_tmp_nm in $lt_nm_to_check; do 7686 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7687 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 7688 IFS="$lt_save_ifs" 7689 test -z "$ac_dir" && ac_dir=. 7690 tmp_nm="$ac_dir/$lt_tmp_nm" 7691 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 7692 # Check to see if the nm accepts a BSD-compat flag. 7693 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 7694 # nm: unknown option "B" ignored 7695 # Tru64's nm complains that /dev/null is an invalid object file 7696 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 7697 */dev/null* | *'Invalid file or object type'*) 7698 lt_cv_path_NM="$tmp_nm -B" 7699 break 7700 ;; 7701 *) 7702 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 7703 */dev/null*) 7704 lt_cv_path_NM="$tmp_nm -p" 7705 break 7706 ;; 7707 *) 7708 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 7709 continue # so that we can try to find one that supports BSD flags 7710 ;; 7711 esac 7712 ;; 7713 esac 7714 fi 7715 done 7716 IFS="$lt_save_ifs" 7717 done 7718 : ${lt_cv_path_NM=no} 7719fi 7720fi 7721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 7722$as_echo "$lt_cv_path_NM" >&6; } 7723if test "$lt_cv_path_NM" != "no"; then 7724 NM="$lt_cv_path_NM" 7725else 7726 # Didn't find any BSD compatible name lister, look for dumpbin. 7727 if test -n "$DUMPBIN"; then : 7728 # Let the user override the test. 7729 else 7730 if test -n "$ac_tool_prefix"; then 7731 for ac_prog in dumpbin "link -dump" 7732 do 7733 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7734set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7736$as_echo_n "checking for $ac_word... " >&6; } 7737if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 7738 $as_echo_n "(cached) " >&6 7739else 7740 if test -n "$DUMPBIN"; then 7741 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 7742else 7743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7744for as_dir in $PATH 7745do 7746 IFS=$as_save_IFS 7747 test -z "$as_dir" && as_dir=. 7748 for ac_exec_ext in '' $ac_executable_extensions; do 7749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7750 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 7751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7752 break 2 7753 fi 7754done 7755 done 7756IFS=$as_save_IFS 7757 7758fi 7759fi 7760DUMPBIN=$ac_cv_prog_DUMPBIN 7761if test -n "$DUMPBIN"; then 7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 7763$as_echo "$DUMPBIN" >&6; } 7764else 7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7766$as_echo "no" >&6; } 7767fi 7768 7769 7770 test -n "$DUMPBIN" && break 7771 done 7772fi 7773if test -z "$DUMPBIN"; then 7774 ac_ct_DUMPBIN=$DUMPBIN 7775 for ac_prog in dumpbin "link -dump" 7776do 7777 # Extract the first word of "$ac_prog", so it can be a program name with args. 7778set dummy $ac_prog; ac_word=$2 7779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7780$as_echo_n "checking for $ac_word... " >&6; } 7781if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 7782 $as_echo_n "(cached) " >&6 7783else 7784 if test -n "$ac_ct_DUMPBIN"; then 7785 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 7786else 7787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7788for as_dir in $PATH 7789do 7790 IFS=$as_save_IFS 7791 test -z "$as_dir" && as_dir=. 7792 for ac_exec_ext in '' $ac_executable_extensions; do 7793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7794 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 7795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7796 break 2 7797 fi 7798done 7799 done 7800IFS=$as_save_IFS 7801 7802fi 7803fi 7804ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 7805if test -n "$ac_ct_DUMPBIN"; then 7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 7807$as_echo "$ac_ct_DUMPBIN" >&6; } 7808else 7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7810$as_echo "no" >&6; } 7811fi 7812 7813 7814 test -n "$ac_ct_DUMPBIN" && break 7815done 7816 7817 if test "x$ac_ct_DUMPBIN" = x; then 7818 DUMPBIN=":" 7819 else 7820 case $cross_compiling:$ac_tool_warned in 7821yes:) 7822{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7823$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7824ac_tool_warned=yes ;; 7825esac 7826 DUMPBIN=$ac_ct_DUMPBIN 7827 fi 7828fi 7829 7830 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 7831 *COFF*) 7832 DUMPBIN="$DUMPBIN -symbols" 7833 ;; 7834 *) 7835 DUMPBIN=: 7836 ;; 7837 esac 7838 fi 7839 7840 if test "$DUMPBIN" != ":"; then 7841 NM="$DUMPBIN" 7842 fi 7843fi 7844test -z "$NM" && NM=nm 7845 7846 7847 7848 7849 7850 7851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 7852$as_echo_n "checking the name lister ($NM) interface... " >&6; } 7853if test "${lt_cv_nm_interface+set}" = set; then : 7854 $as_echo_n "(cached) " >&6 7855else 7856 lt_cv_nm_interface="BSD nm" 7857 echo "int some_variable = 0;" > conftest.$ac_ext 7858 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 7859 (eval "$ac_compile" 2>conftest.err) 7860 cat conftest.err >&5 7861 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 7862 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 7863 cat conftest.err >&5 7864 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 7865 cat conftest.out >&5 7866 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 7867 lt_cv_nm_interface="MS dumpbin" 7868 fi 7869 rm -f conftest* 7870fi 7871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 7872$as_echo "$lt_cv_nm_interface" >&6; } 7873 7874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 7875$as_echo_n "checking whether ln -s works... " >&6; } 7876LN_S=$as_ln_s 7877if test "$LN_S" = "ln -s"; then 7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7879$as_echo "yes" >&6; } 7880else 7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 7882$as_echo "no, using $LN_S" >&6; } 7883fi 7884 7885# find the maximum length of command line arguments 7886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 7887$as_echo_n "checking the maximum length of command line arguments... " >&6; } 7888if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 7889 $as_echo_n "(cached) " >&6 7890else 7891 i=0 7892 teststring="ABCD" 7893 7894 case $build_os in 7895 msdosdjgpp*) 7896 # On DJGPP, this test can blow up pretty badly due to problems in libc 7897 # (any single argument exceeding 2000 bytes causes a buffer overrun 7898 # during glob expansion). Even if it were fixed, the result of this 7899 # check would be larger than it should be. 7900 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7901 ;; 7902 7903 gnu*) 7904 # Under GNU Hurd, this test is not required because there is 7905 # no limit to the length of command line arguments. 7906 # Libtool will interpret -1 as no limit whatsoever 7907 lt_cv_sys_max_cmd_len=-1; 7908 ;; 7909 7910 cygwin* | mingw* | cegcc*) 7911 # On Win9x/ME, this test blows up -- it succeeds, but takes 7912 # about 5 minutes as the teststring grows exponentially. 7913 # Worse, since 9x/ME are not pre-emptively multitasking, 7914 # you end up with a "frozen" computer, even though with patience 7915 # the test eventually succeeds (with a max line length of 256k). 7916 # Instead, let's just punt: use the minimum linelength reported by 7917 # all of the supported platforms: 8192 (on NT/2K/XP). 7918 lt_cv_sys_max_cmd_len=8192; 7919 ;; 7920 7921 mint*) 7922 # On MiNT this can take a long time and run out of memory. 7923 lt_cv_sys_max_cmd_len=8192; 7924 ;; 7925 7926 amigaos*) 7927 # On AmigaOS with pdksh, this test takes hours, literally. 7928 # So we just punt and use a minimum line length of 8192. 7929 lt_cv_sys_max_cmd_len=8192; 7930 ;; 7931 7932 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 7933 # This has been around since 386BSD, at least. Likely further. 7934 if test -x /sbin/sysctl; then 7935 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7936 elif test -x /usr/sbin/sysctl; then 7937 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7938 else 7939 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7940 fi 7941 # And add a safety zone 7942 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7943 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7944 ;; 7945 7946 interix*) 7947 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7948 lt_cv_sys_max_cmd_len=196608 7949 ;; 7950 7951 os2*) 7952 # The test takes a long time on OS/2. 7953 lt_cv_sys_max_cmd_len=8192 7954 ;; 7955 7956 osf*) 7957 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7958 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7959 # nice to cause kernel panics so lets avoid the loop below. 7960 # First set a reasonable default. 7961 lt_cv_sys_max_cmd_len=16384 7962 # 7963 if test -x /sbin/sysconfig; then 7964 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7965 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7966 esac 7967 fi 7968 ;; 7969 sco3.2v5*) 7970 lt_cv_sys_max_cmd_len=102400 7971 ;; 7972 sysv5* | sco5v6* | sysv4.2uw2*) 7973 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7974 if test -n "$kargmax"; then 7975 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7976 else 7977 lt_cv_sys_max_cmd_len=32768 7978 fi 7979 ;; 7980 *) 7981 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 7982 if test -n "$lt_cv_sys_max_cmd_len"; then 7983 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7984 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7985 else 7986 # Make teststring a little bigger before we do anything with it. 7987 # a 1K string should be a reasonable start. 7988 for i in 1 2 3 4 5 6 7 8 ; do 7989 teststring=$teststring$teststring 7990 done 7991 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7992 # If test is not a shell built-in, we'll probably end up computing a 7993 # maximum length that is only half of the actual maximum length, but 7994 # we can't tell. 7995 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 7996 = "X$teststring$teststring"; } >/dev/null 2>&1 && 7997 test $i != 17 # 1/2 MB should be enough 7998 do 7999 i=`expr $i + 1` 8000 teststring=$teststring$teststring 8001 done 8002 # Only check the string length outside the loop. 8003 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 8004 teststring= 8005 # Add a significant safety factor because C++ compilers can tack on 8006 # massive amounts of additional arguments before passing them to the 8007 # linker. It appears as though 1/2 is a usable value. 8008 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 8009 fi 8010 ;; 8011 esac 8012 8013fi 8014 8015if test -n $lt_cv_sys_max_cmd_len ; then 8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 8017$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 8018else 8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 8020$as_echo "none" >&6; } 8021fi 8022max_cmd_len=$lt_cv_sys_max_cmd_len 8023 8024 8025 8026 8027 8028 8029: ${CP="cp -f"} 8030: ${MV="mv -f"} 8031: ${RM="rm -f"} 8032 8033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 8034$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 8035# Try some XSI features 8036xsi_shell=no 8037( _lt_dummy="a/b/c" 8038 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 8039 = c,a/b,b/c, \ 8040 && eval 'test $(( 1 + 1 )) -eq 2 \ 8041 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 8042 && xsi_shell=yes 8043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 8044$as_echo "$xsi_shell" >&6; } 8045 8046 8047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 8048$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 8049lt_shell_append=no 8050( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 8051 >/dev/null 2>&1 \ 8052 && lt_shell_append=yes 8053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 8054$as_echo "$lt_shell_append" >&6; } 8055 8056 8057if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 8058 lt_unset=unset 8059else 8060 lt_unset=false 8061fi 8062 8063 8064 8065 8066 8067# test EBCDIC or ASCII 8068case `echo X|tr X '\101'` in 8069 A) # ASCII based system 8070 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 8071 lt_SP2NL='tr \040 \012' 8072 lt_NL2SP='tr \015\012 \040\040' 8073 ;; 8074 *) # EBCDIC based system 8075 lt_SP2NL='tr \100 \n' 8076 lt_NL2SP='tr \r\n \100\100' 8077 ;; 8078esac 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 8089$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 8090if test "${lt_cv_to_host_file_cmd+set}" = set; then : 8091 $as_echo_n "(cached) " >&6 8092else 8093 case $host in 8094 *-*-mingw* ) 8095 case $build in 8096 *-*-mingw* ) # actually msys 8097 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 8098 ;; 8099 *-*-cygwin* ) 8100 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 8101 ;; 8102 * ) # otherwise, assume *nix 8103 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 8104 ;; 8105 esac 8106 ;; 8107 *-*-cygwin* ) 8108 case $build in 8109 *-*-mingw* ) # actually msys 8110 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 8111 ;; 8112 *-*-cygwin* ) 8113 lt_cv_to_host_file_cmd=func_convert_file_noop 8114 ;; 8115 * ) # otherwise, assume *nix 8116 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 8117 ;; 8118 esac 8119 ;; 8120 * ) # unhandled hosts (and "normal" native builds) 8121 lt_cv_to_host_file_cmd=func_convert_file_noop 8122 ;; 8123esac 8124 8125fi 8126 8127to_host_file_cmd=$lt_cv_to_host_file_cmd 8128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 8129$as_echo "$lt_cv_to_host_file_cmd" >&6; } 8130 8131 8132 8133 8134 8135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 8136$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 8137if test "${lt_cv_to_tool_file_cmd+set}" = set; then : 8138 $as_echo_n "(cached) " >&6 8139else 8140 #assume ordinary cross tools, or native build. 8141lt_cv_to_tool_file_cmd=func_convert_file_noop 8142case $host in 8143 *-*-mingw* ) 8144 case $build in 8145 *-*-mingw* ) # actually msys 8146 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 8147 ;; 8148 esac 8149 ;; 8150esac 8151 8152fi 8153 8154to_tool_file_cmd=$lt_cv_to_tool_file_cmd 8155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 8156$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 8157 8158 8159 8160 8161 8162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 8163$as_echo_n "checking for $LD option to reload object files... " >&6; } 8164if test "${lt_cv_ld_reload_flag+set}" = set; then : 8165 $as_echo_n "(cached) " >&6 8166else 8167 lt_cv_ld_reload_flag='-r' 8168fi 8169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 8170$as_echo "$lt_cv_ld_reload_flag" >&6; } 8171reload_flag=$lt_cv_ld_reload_flag 8172case $reload_flag in 8173"" | " "*) ;; 8174*) reload_flag=" $reload_flag" ;; 8175esac 8176reload_cmds='$LD$reload_flag -o $output$reload_objs' 8177case $host_os in 8178 cygwin* | mingw* | pw32* | cegcc*) 8179 if test "$GCC" != yes; then 8180 reload_cmds=false 8181 fi 8182 ;; 8183 darwin*) 8184 if test "$GCC" = yes; then 8185 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 8186 else 8187 reload_cmds='$LD$reload_flag -o $output$reload_objs' 8188 fi 8189 ;; 8190esac 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200if test -n "$ac_tool_prefix"; then 8201 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8202set dummy ${ac_tool_prefix}objdump; ac_word=$2 8203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8204$as_echo_n "checking for $ac_word... " >&6; } 8205if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 8206 $as_echo_n "(cached) " >&6 8207else 8208 if test -n "$OBJDUMP"; then 8209 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8210else 8211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8212for as_dir in $PATH 8213do 8214 IFS=$as_save_IFS 8215 test -z "$as_dir" && as_dir=. 8216 for ac_exec_ext in '' $ac_executable_extensions; do 8217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8218 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8220 break 2 8221 fi 8222done 8223 done 8224IFS=$as_save_IFS 8225 8226fi 8227fi 8228OBJDUMP=$ac_cv_prog_OBJDUMP 8229if test -n "$OBJDUMP"; then 8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8231$as_echo "$OBJDUMP" >&6; } 8232else 8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8234$as_echo "no" >&6; } 8235fi 8236 8237 8238fi 8239if test -z "$ac_cv_prog_OBJDUMP"; then 8240 ac_ct_OBJDUMP=$OBJDUMP 8241 # Extract the first word of "objdump", so it can be a program name with args. 8242set dummy objdump; ac_word=$2 8243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8244$as_echo_n "checking for $ac_word... " >&6; } 8245if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 8246 $as_echo_n "(cached) " >&6 8247else 8248 if test -n "$ac_ct_OBJDUMP"; then 8249 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8250else 8251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8252for as_dir in $PATH 8253do 8254 IFS=$as_save_IFS 8255 test -z "$as_dir" && as_dir=. 8256 for ac_exec_ext in '' $ac_executable_extensions; do 8257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8258 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8260 break 2 8261 fi 8262done 8263 done 8264IFS=$as_save_IFS 8265 8266fi 8267fi 8268ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8269if test -n "$ac_ct_OBJDUMP"; then 8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8271$as_echo "$ac_ct_OBJDUMP" >&6; } 8272else 8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8274$as_echo "no" >&6; } 8275fi 8276 8277 if test "x$ac_ct_OBJDUMP" = x; then 8278 OBJDUMP="false" 8279 else 8280 case $cross_compiling:$ac_tool_warned in 8281yes:) 8282{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8283$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8284ac_tool_warned=yes ;; 8285esac 8286 OBJDUMP=$ac_ct_OBJDUMP 8287 fi 8288else 8289 OBJDUMP="$ac_cv_prog_OBJDUMP" 8290fi 8291 8292test -z "$OBJDUMP" && OBJDUMP=objdump 8293 8294 8295 8296 8297 8298 8299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 8300$as_echo_n "checking how to recognize dependent libraries... " >&6; } 8301if test "${lt_cv_deplibs_check_method+set}" = set; then : 8302 $as_echo_n "(cached) " >&6 8303else 8304 lt_cv_file_magic_cmd='$MAGIC_CMD' 8305lt_cv_file_magic_test_file= 8306lt_cv_deplibs_check_method='unknown' 8307# Need to set the preceding variable on all platforms that support 8308# interlibrary dependencies. 8309# 'none' -- dependencies not supported. 8310# `unknown' -- same as none, but documents that we really don't know. 8311# 'pass_all' -- all dependencies passed with no checks. 8312# 'test_compile' -- check by making test program. 8313# 'file_magic [[regex]]' -- check by looking for files in library path 8314# which responds to the $file_magic_cmd with a given extended regex. 8315# If you have `file' or equivalent on your system and you're not sure 8316# whether `pass_all' will *always* work, you probably want this one. 8317 8318case $host_os in 8319aix[4-9]*) 8320 lt_cv_deplibs_check_method=pass_all 8321 ;; 8322 8323beos*) 8324 lt_cv_deplibs_check_method=pass_all 8325 ;; 8326 8327bsdi[45]*) 8328 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 8329 lt_cv_file_magic_cmd='/usr/bin/file -L' 8330 lt_cv_file_magic_test_file=/shlib/libc.so 8331 ;; 8332 8333cygwin*) 8334 # func_win32_libid is a shell function defined in ltmain.sh 8335 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8336 lt_cv_file_magic_cmd='func_win32_libid' 8337 ;; 8338 8339mingw* | pw32*) 8340 # Base MSYS/MinGW do not provide the 'file' command needed by 8341 # func_win32_libid shell function, so use a weaker test based on 'objdump', 8342 # unless we find 'file', for example because we are cross-compiling. 8343 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 8344 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 8345 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8346 lt_cv_file_magic_cmd='func_win32_libid' 8347 else 8348 # Keep this pattern in sync with the one in func_win32_libid. 8349 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 8350 lt_cv_file_magic_cmd='$OBJDUMP -f' 8351 fi 8352 ;; 8353 8354cegcc*) 8355 # use the weaker test based on 'objdump'. See mingw*. 8356 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 8357 lt_cv_file_magic_cmd='$OBJDUMP -f' 8358 ;; 8359 8360darwin* | rhapsody*) 8361 lt_cv_deplibs_check_method=pass_all 8362 ;; 8363 8364freebsd* | dragonfly*) 8365 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8366 case $host_cpu in 8367 i*86 ) 8368 # Not sure whether the presence of OpenBSD here was a mistake. 8369 # Let's accept both of them until this is cleared up. 8370 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 8371 lt_cv_file_magic_cmd=/usr/bin/file 8372 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 8373 ;; 8374 esac 8375 else 8376 lt_cv_deplibs_check_method=pass_all 8377 fi 8378 ;; 8379 8380gnu*) 8381 lt_cv_deplibs_check_method=pass_all 8382 ;; 8383 8384haiku*) 8385 lt_cv_deplibs_check_method=pass_all 8386 ;; 8387 8388hpux10.20* | hpux11*) 8389 lt_cv_file_magic_cmd=/usr/bin/file 8390 case $host_cpu in 8391 ia64*) 8392 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 8393 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 8394 ;; 8395 hppa*64*) 8396 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]' 8397 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 8398 ;; 8399 *) 8400 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 8401 lt_cv_file_magic_test_file=/usr/lib/libc.sl 8402 ;; 8403 esac 8404 ;; 8405 8406interix[3-9]*) 8407 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 8408 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 8409 ;; 8410 8411irix5* | irix6* | nonstopux*) 8412 case $LD in 8413 *-32|*"-32 ") libmagic=32-bit;; 8414 *-n32|*"-n32 ") libmagic=N32;; 8415 *-64|*"-64 ") libmagic=64-bit;; 8416 *) libmagic=never-match;; 8417 esac 8418 lt_cv_deplibs_check_method=pass_all 8419 ;; 8420 8421# This must be glibc/ELF. 8422linux* | k*bsd*-gnu | kopensolaris*-gnu) 8423 lt_cv_deplibs_check_method=pass_all 8424 ;; 8425 8426netbsd* | netbsdelf*-gnu) 8427 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8428 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8429 else 8430 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 8431 fi 8432 ;; 8433 8434newos6*) 8435 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 8436 lt_cv_file_magic_cmd=/usr/bin/file 8437 lt_cv_file_magic_test_file=/usr/lib/libnls.so 8438 ;; 8439 8440*nto* | *qnx*) 8441 lt_cv_deplibs_check_method=pass_all 8442 ;; 8443 8444openbsd*) 8445 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8446 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 8447 else 8448 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8449 fi 8450 ;; 8451 8452osf3* | osf4* | osf5*) 8453 lt_cv_deplibs_check_method=pass_all 8454 ;; 8455 8456rdos*) 8457 lt_cv_deplibs_check_method=pass_all 8458 ;; 8459 8460solaris*) 8461 lt_cv_deplibs_check_method=pass_all 8462 ;; 8463 8464sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8465 lt_cv_deplibs_check_method=pass_all 8466 ;; 8467 8468sysv4 | sysv4.3*) 8469 case $host_vendor in 8470 motorola) 8471 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]' 8472 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 8473 ;; 8474 ncr) 8475 lt_cv_deplibs_check_method=pass_all 8476 ;; 8477 sequent) 8478 lt_cv_file_magic_cmd='/bin/file' 8479 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 8480 ;; 8481 sni) 8482 lt_cv_file_magic_cmd='/bin/file' 8483 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 8484 lt_cv_file_magic_test_file=/lib/libc.so 8485 ;; 8486 siemens) 8487 lt_cv_deplibs_check_method=pass_all 8488 ;; 8489 pc) 8490 lt_cv_deplibs_check_method=pass_all 8491 ;; 8492 esac 8493 ;; 8494 8495tpf*) 8496 lt_cv_deplibs_check_method=pass_all 8497 ;; 8498esac 8499 8500fi 8501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 8502$as_echo "$lt_cv_deplibs_check_method" >&6; } 8503 8504file_magic_glob= 8505want_nocaseglob=no 8506if test "$build" = "$host"; then 8507 case $host_os in 8508 mingw* | pw32*) 8509 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 8510 want_nocaseglob=yes 8511 else 8512 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 8513 fi 8514 ;; 8515 esac 8516fi 8517 8518file_magic_cmd=$lt_cv_file_magic_cmd 8519deplibs_check_method=$lt_cv_deplibs_check_method 8520test -z "$deplibs_check_method" && deplibs_check_method=unknown 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543if test -n "$ac_tool_prefix"; then 8544 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8545set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8547$as_echo_n "checking for $ac_word... " >&6; } 8548if test "${ac_cv_prog_DLLTOOL+set}" = set; then : 8549 $as_echo_n "(cached) " >&6 8550else 8551 if test -n "$DLLTOOL"; then 8552 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8553else 8554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8555for as_dir in $PATH 8556do 8557 IFS=$as_save_IFS 8558 test -z "$as_dir" && as_dir=. 8559 for ac_exec_ext in '' $ac_executable_extensions; do 8560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8561 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8563 break 2 8564 fi 8565done 8566 done 8567IFS=$as_save_IFS 8568 8569fi 8570fi 8571DLLTOOL=$ac_cv_prog_DLLTOOL 8572if test -n "$DLLTOOL"; then 8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8574$as_echo "$DLLTOOL" >&6; } 8575else 8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8577$as_echo "no" >&6; } 8578fi 8579 8580 8581fi 8582if test -z "$ac_cv_prog_DLLTOOL"; then 8583 ac_ct_DLLTOOL=$DLLTOOL 8584 # Extract the first word of "dlltool", so it can be a program name with args. 8585set dummy dlltool; ac_word=$2 8586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8587$as_echo_n "checking for $ac_word... " >&6; } 8588if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then : 8589 $as_echo_n "(cached) " >&6 8590else 8591 if test -n "$ac_ct_DLLTOOL"; then 8592 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8593else 8594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8595for as_dir in $PATH 8596do 8597 IFS=$as_save_IFS 8598 test -z "$as_dir" && as_dir=. 8599 for ac_exec_ext in '' $ac_executable_extensions; do 8600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8601 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8603 break 2 8604 fi 8605done 8606 done 8607IFS=$as_save_IFS 8608 8609fi 8610fi 8611ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8612if test -n "$ac_ct_DLLTOOL"; then 8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8614$as_echo "$ac_ct_DLLTOOL" >&6; } 8615else 8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8617$as_echo "no" >&6; } 8618fi 8619 8620 if test "x$ac_ct_DLLTOOL" = x; then 8621 DLLTOOL="false" 8622 else 8623 case $cross_compiling:$ac_tool_warned in 8624yes:) 8625{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8626$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8627ac_tool_warned=yes ;; 8628esac 8629 DLLTOOL=$ac_ct_DLLTOOL 8630 fi 8631else 8632 DLLTOOL="$ac_cv_prog_DLLTOOL" 8633fi 8634 8635test -z "$DLLTOOL" && DLLTOOL=dlltool 8636 8637 8638 8639 8640 8641 8642 8643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 8644$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 8645if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then : 8646 $as_echo_n "(cached) " >&6 8647else 8648 lt_cv_sharedlib_from_linklib_cmd='unknown' 8649 8650case $host_os in 8651cygwin* | mingw* | pw32* | cegcc*) 8652 # two different shell functions defined in ltmain.sh 8653 # decide which to use based on capabilities of $DLLTOOL 8654 case `$DLLTOOL --help 2>&1` in 8655 *--identify-strict*) 8656 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 8657 ;; 8658 *) 8659 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 8660 ;; 8661 esac 8662 ;; 8663*) 8664 # fallback: assume linklib IS sharedlib 8665 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 8666 ;; 8667esac 8668 8669fi 8670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 8671$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 8672sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 8673test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 8674 8675 8676 8677 8678 8679 8680 8681if test -n "$ac_tool_prefix"; then 8682 for ac_prog in ar 8683 do 8684 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8685set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8687$as_echo_n "checking for $ac_word... " >&6; } 8688if test "${ac_cv_prog_AR+set}" = set; then : 8689 $as_echo_n "(cached) " >&6 8690else 8691 if test -n "$AR"; then 8692 ac_cv_prog_AR="$AR" # Let the user override the test. 8693else 8694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8695for as_dir in $PATH 8696do 8697 IFS=$as_save_IFS 8698 test -z "$as_dir" && as_dir=. 8699 for ac_exec_ext in '' $ac_executable_extensions; do 8700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8701 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 8702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8703 break 2 8704 fi 8705done 8706 done 8707IFS=$as_save_IFS 8708 8709fi 8710fi 8711AR=$ac_cv_prog_AR 8712if test -n "$AR"; then 8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8714$as_echo "$AR" >&6; } 8715else 8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8717$as_echo "no" >&6; } 8718fi 8719 8720 8721 test -n "$AR" && break 8722 done 8723fi 8724if test -z "$AR"; then 8725 ac_ct_AR=$AR 8726 for ac_prog in ar 8727do 8728 # Extract the first word of "$ac_prog", so it can be a program name with args. 8729set dummy $ac_prog; ac_word=$2 8730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8731$as_echo_n "checking for $ac_word... " >&6; } 8732if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 8733 $as_echo_n "(cached) " >&6 8734else 8735 if test -n "$ac_ct_AR"; then 8736 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8737else 8738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8739for as_dir in $PATH 8740do 8741 IFS=$as_save_IFS 8742 test -z "$as_dir" && as_dir=. 8743 for ac_exec_ext in '' $ac_executable_extensions; do 8744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8745 ac_cv_prog_ac_ct_AR="$ac_prog" 8746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8747 break 2 8748 fi 8749done 8750 done 8751IFS=$as_save_IFS 8752 8753fi 8754fi 8755ac_ct_AR=$ac_cv_prog_ac_ct_AR 8756if test -n "$ac_ct_AR"; then 8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8758$as_echo "$ac_ct_AR" >&6; } 8759else 8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8761$as_echo "no" >&6; } 8762fi 8763 8764 8765 test -n "$ac_ct_AR" && break 8766done 8767 8768 if test "x$ac_ct_AR" = x; then 8769 AR="false" 8770 else 8771 case $cross_compiling:$ac_tool_warned in 8772yes:) 8773{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8774$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8775ac_tool_warned=yes ;; 8776esac 8777 AR=$ac_ct_AR 8778 fi 8779fi 8780 8781: ${AR=ar} 8782: ${AR_FLAGS=cru} 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 8795$as_echo_n "checking for archiver @FILE support... " >&6; } 8796if test "${lt_cv_ar_at_file+set}" = set; then : 8797 $as_echo_n "(cached) " >&6 8798else 8799 lt_cv_ar_at_file=no 8800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8801/* end confdefs.h. */ 8802 8803int main (void) 8804{ 8805 8806 ; 8807 return 0; 8808} 8809_ACEOF 8810if ac_fn_c_try_compile "$LINENO"; then : 8811 echo conftest.$ac_objext > conftest.lst 8812 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 8813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8814 (eval $lt_ar_try) 2>&5 8815 ac_status=$? 8816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8817 test $ac_status = 0; } 8818 if test "$ac_status" -eq 0; then 8819 # Ensure the archiver fails upon bogus file names. 8820 rm -f conftest.$ac_objext libconftest.a 8821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8822 (eval $lt_ar_try) 2>&5 8823 ac_status=$? 8824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8825 test $ac_status = 0; } 8826 if test "$ac_status" -ne 0; then 8827 lt_cv_ar_at_file=@ 8828 fi 8829 fi 8830 rm -f conftest.* libconftest.a 8831 8832fi 8833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8834 8835fi 8836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 8837$as_echo "$lt_cv_ar_at_file" >&6; } 8838 8839if test "x$lt_cv_ar_at_file" = xno; then 8840 archiver_list_spec= 8841else 8842 archiver_list_spec=$lt_cv_ar_at_file 8843fi 8844 8845 8846 8847 8848 8849 8850 8851if test -n "$ac_tool_prefix"; then 8852 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8853set dummy ${ac_tool_prefix}strip; ac_word=$2 8854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8855$as_echo_n "checking for $ac_word... " >&6; } 8856if test "${ac_cv_prog_STRIP+set}" = set; then : 8857 $as_echo_n "(cached) " >&6 8858else 8859 if test -n "$STRIP"; then 8860 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8861else 8862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8863for as_dir in $PATH 8864do 8865 IFS=$as_save_IFS 8866 test -z "$as_dir" && as_dir=. 8867 for ac_exec_ext in '' $ac_executable_extensions; do 8868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8869 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8871 break 2 8872 fi 8873done 8874 done 8875IFS=$as_save_IFS 8876 8877fi 8878fi 8879STRIP=$ac_cv_prog_STRIP 8880if test -n "$STRIP"; then 8881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 8882$as_echo "$STRIP" >&6; } 8883else 8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8885$as_echo "no" >&6; } 8886fi 8887 8888 8889fi 8890if test -z "$ac_cv_prog_STRIP"; then 8891 ac_ct_STRIP=$STRIP 8892 # Extract the first word of "strip", so it can be a program name with args. 8893set dummy strip; ac_word=$2 8894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8895$as_echo_n "checking for $ac_word... " >&6; } 8896if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 8897 $as_echo_n "(cached) " >&6 8898else 8899 if test -n "$ac_ct_STRIP"; then 8900 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8901else 8902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8903for as_dir in $PATH 8904do 8905 IFS=$as_save_IFS 8906 test -z "$as_dir" && as_dir=. 8907 for ac_exec_ext in '' $ac_executable_extensions; do 8908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8909 ac_cv_prog_ac_ct_STRIP="strip" 8910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8911 break 2 8912 fi 8913done 8914 done 8915IFS=$as_save_IFS 8916 8917fi 8918fi 8919ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8920if test -n "$ac_ct_STRIP"; then 8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 8922$as_echo "$ac_ct_STRIP" >&6; } 8923else 8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8925$as_echo "no" >&6; } 8926fi 8927 8928 if test "x$ac_ct_STRIP" = x; then 8929 STRIP=":" 8930 else 8931 case $cross_compiling:$ac_tool_warned in 8932yes:) 8933{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8934$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8935ac_tool_warned=yes ;; 8936esac 8937 STRIP=$ac_ct_STRIP 8938 fi 8939else 8940 STRIP="$ac_cv_prog_STRIP" 8941fi 8942 8943test -z "$STRIP" && STRIP=: 8944 8945 8946 8947 8948 8949 8950if test -n "$ac_tool_prefix"; then 8951 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8952set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8954$as_echo_n "checking for $ac_word... " >&6; } 8955if test "${ac_cv_prog_RANLIB+set}" = set; then : 8956 $as_echo_n "(cached) " >&6 8957else 8958 if test -n "$RANLIB"; then 8959 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8960else 8961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8962for as_dir in $PATH 8963do 8964 IFS=$as_save_IFS 8965 test -z "$as_dir" && as_dir=. 8966 for ac_exec_ext in '' $ac_executable_extensions; do 8967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8968 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8970 break 2 8971 fi 8972done 8973 done 8974IFS=$as_save_IFS 8975 8976fi 8977fi 8978RANLIB=$ac_cv_prog_RANLIB 8979if test -n "$RANLIB"; then 8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8981$as_echo "$RANLIB" >&6; } 8982else 8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8984$as_echo "no" >&6; } 8985fi 8986 8987 8988fi 8989if test -z "$ac_cv_prog_RANLIB"; then 8990 ac_ct_RANLIB=$RANLIB 8991 # Extract the first word of "ranlib", so it can be a program name with args. 8992set dummy ranlib; ac_word=$2 8993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8994$as_echo_n "checking for $ac_word... " >&6; } 8995if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 8996 $as_echo_n "(cached) " >&6 8997else 8998 if test -n "$ac_ct_RANLIB"; then 8999 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 9000else 9001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9002for as_dir in $PATH 9003do 9004 IFS=$as_save_IFS 9005 test -z "$as_dir" && as_dir=. 9006 for ac_exec_ext in '' $ac_executable_extensions; do 9007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9008 ac_cv_prog_ac_ct_RANLIB="ranlib" 9009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9010 break 2 9011 fi 9012done 9013 done 9014IFS=$as_save_IFS 9015 9016fi 9017fi 9018ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 9019if test -n "$ac_ct_RANLIB"; then 9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 9021$as_echo "$ac_ct_RANLIB" >&6; } 9022else 9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9024$as_echo "no" >&6; } 9025fi 9026 9027 if test "x$ac_ct_RANLIB" = x; then 9028 RANLIB=":" 9029 else 9030 case $cross_compiling:$ac_tool_warned in 9031yes:) 9032{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9033$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9034ac_tool_warned=yes ;; 9035esac 9036 RANLIB=$ac_ct_RANLIB 9037 fi 9038else 9039 RANLIB="$ac_cv_prog_RANLIB" 9040fi 9041 9042test -z "$RANLIB" && RANLIB=: 9043 9044 9045 9046 9047 9048 9049# Determine commands to create old-style static archives. 9050old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 9051old_postinstall_cmds='chmod 644 $oldlib' 9052old_postuninstall_cmds= 9053 9054if test -n "$RANLIB"; then 9055 case $host_os in 9056 openbsd*) 9057 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 9058 ;; 9059 *) 9060 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 9061 ;; 9062 esac 9063 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 9064fi 9065 9066case $host_os in 9067 darwin*) 9068 lock_old_archive_extraction=yes ;; 9069 *) 9070 lock_old_archive_extraction=no ;; 9071esac 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111# If no C compiler was specified, use CC. 9112LTCC=${LTCC-"$CC"} 9113 9114# If no C compiler flags were specified, use CFLAGS. 9115LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9116 9117# Allow CC to be a program name with arguments. 9118compiler=$CC 9119 9120 9121# Check for command to grab the raw symbol name followed by C symbol from nm. 9122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 9123$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 9124if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 9125 $as_echo_n "(cached) " >&6 9126else 9127 9128# These are sane defaults that work on at least a few old systems. 9129# [They come from Ultrix. What could be older than Ultrix?!! ;)] 9130 9131# Character class describing NM global symbol codes. 9132symcode='[BCDEGRST]' 9133 9134# Regexp to match symbols that can be accessed directly from C. 9135sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 9136 9137# Define system-specific variables. 9138case $host_os in 9139aix*) 9140 symcode='[BCDT]' 9141 ;; 9142cygwin* | mingw* | pw32* | cegcc*) 9143 symcode='[ABCDGISTW]' 9144 ;; 9145hpux*) 9146 if test "$host_cpu" = ia64; then 9147 symcode='[ABCDEGRST]' 9148 fi 9149 ;; 9150irix* | nonstopux*) 9151 symcode='[BCDEGRST]' 9152 ;; 9153osf*) 9154 symcode='[BCDEGQRST]' 9155 ;; 9156solaris*) 9157 symcode='[BDRT]' 9158 ;; 9159sco3.2v5*) 9160 symcode='[DT]' 9161 ;; 9162sysv4.2uw2*) 9163 symcode='[DT]' 9164 ;; 9165sysv5* | sco5v6* | unixware* | OpenUNIX*) 9166 symcode='[ABDT]' 9167 ;; 9168sysv4) 9169 symcode='[DFNSTU]' 9170 ;; 9171esac 9172 9173# If we're using GNU nm, then use its standard symbol codes. 9174case `$NM -V 2>&1` in 9175*GNU* | *'with BFD'*) 9176 symcode='[ABCDGIRSTW]' ;; 9177esac 9178 9179# Transform an extracted symbol line into a proper C declaration. 9180# Some systems (esp. on ia64) link data and code symbols differently, 9181# so use this general approach. 9182lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9183 9184# Transform an extracted symbol line into symbol name and symbol address 9185lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 9186lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 9187 9188# Handle CRLF in mingw tool chain 9189opt_cr= 9190case $build_os in 9191mingw*) 9192 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 9193 ;; 9194esac 9195 9196# Try without a prefix underscore, then with it. 9197for ac_symprfx in "" "_"; do 9198 9199 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 9200 symxfrm="\\1 $ac_symprfx\\2 \\2" 9201 9202 # Write the raw and C identifiers. 9203 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9204 # Fake it for dumpbin and say T for any non-static function 9205 # and D for any global variable. 9206 # Also find C++ and __fastcall symbols from MSVC++, 9207 # which start with @ or ?. 9208 lt_cv_sys_global_symbol_pipe="$AWK '"\ 9209" {last_section=section; section=\$ 3};"\ 9210" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 9211" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 9212" \$ 0!~/External *\|/{next};"\ 9213" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 9214" {if(hide[section]) next};"\ 9215" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 9216" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 9217" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 9218" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 9219" ' prfx=^$ac_symprfx" 9220 else 9221 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 9222 fi 9223 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 9224 9225 # Check to see that the pipe works correctly. 9226 pipe_works=no 9227 9228 rm -f conftest* 9229 cat > conftest.$ac_ext <<_LT_EOF 9230#ifdef __cplusplus 9231extern "C" { 9232#endif 9233char nm_test_var; 9234void nm_test_func(void); 9235void nm_test_func(void){} 9236#ifdef __cplusplus 9237} 9238#endif 9239int main(){nm_test_var='a';nm_test_func();return(0);} 9240_LT_EOF 9241 9242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9243 (eval $ac_compile) 2>&5 9244 ac_status=$? 9245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9246 test $ac_status = 0; }; then 9247 # Now try to grab the symbols. 9248 nlist=conftest.nm 9249 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 9250 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 9251 ac_status=$? 9252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9253 test $ac_status = 0; } && test -s "$nlist"; then 9254 # Try sorting and uniquifying the output. 9255 if sort "$nlist" | uniq > "$nlist"T; then 9256 mv -f "$nlist"T "$nlist" 9257 else 9258 rm -f "$nlist"T 9259 fi 9260 9261 # Make sure that we snagged all the symbols we need. 9262 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 9263 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 9264 cat <<_LT_EOF > conftest.$ac_ext 9265/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 9266#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 9267/* DATA imports from DLLs on WIN32 con't be const, because runtime 9268 relocations are performed -- see ld's documentation on pseudo-relocs. */ 9269# define LT_DLSYM_CONST 9270#elif defined(__osf__) 9271/* This system does not cope well with relocations in const data. */ 9272# define LT_DLSYM_CONST 9273#else 9274# define LT_DLSYM_CONST const 9275#endif 9276 9277#ifdef __cplusplus 9278extern "C" { 9279#endif 9280 9281_LT_EOF 9282 # Now generate the symbol file. 9283 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 9284 9285 cat <<_LT_EOF >> conftest.$ac_ext 9286 9287/* The mapping between symbol names and symbols. */ 9288LT_DLSYM_CONST struct { 9289 const char *name; 9290 void *address; 9291} 9292lt__PROGRAM__LTX_preloaded_symbols[] = 9293{ 9294 { "@PROGRAM@", (void *) 0 }, 9295_LT_EOF 9296 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 9297 cat <<\_LT_EOF >> conftest.$ac_ext 9298 {0, (void *) 0} 9299}; 9300 9301/* This works around a problem in FreeBSD linker */ 9302#ifdef FREEBSD_WORKAROUND 9303static const void *lt_preloaded_setup() { 9304 return lt__PROGRAM__LTX_preloaded_symbols; 9305} 9306#endif 9307 9308#ifdef __cplusplus 9309} 9310#endif 9311_LT_EOF 9312 # Now try linking the two files. 9313 mv conftest.$ac_objext conftstm.$ac_objext 9314 lt_globsym_save_LIBS=$LIBS 9315 lt_globsym_save_CFLAGS=$CFLAGS 9316 LIBS="conftstm.$ac_objext" 9317 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9318 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 9319 (eval $ac_link) 2>&5 9320 ac_status=$? 9321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9322 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 9323 pipe_works=yes 9324 fi 9325 LIBS=$lt_globsym_save_LIBS 9326 CFLAGS=$lt_globsym_save_CFLAGS 9327 else 9328 echo "cannot find nm_test_func in $nlist" >&5 9329 fi 9330 else 9331 echo "cannot find nm_test_var in $nlist" >&5 9332 fi 9333 else 9334 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9335 fi 9336 else 9337 echo "$progname: failed program was:" >&5 9338 cat conftest.$ac_ext >&5 9339 fi 9340 rm -rf conftest* conftst* 9341 9342 # Do not use the global_symbol_pipe unless it works. 9343 if test "$pipe_works" = yes; then 9344 break 9345 else 9346 lt_cv_sys_global_symbol_pipe= 9347 fi 9348done 9349 9350fi 9351 9352if test -z "$lt_cv_sys_global_symbol_pipe"; then 9353 lt_cv_sys_global_symbol_to_cdecl= 9354fi 9355if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 9357$as_echo "failed" >&6; } 9358else 9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 9360$as_echo "ok" >&6; } 9361fi 9362 9363# Response file support. 9364if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9365 nm_file_list_spec='@' 9366elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 9367 nm_file_list_spec='@' 9368fi 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 9397$as_echo_n "checking for sysroot... " >&6; } 9398 9399# Check whether --with-sysroot was given. 9400if test "${with_sysroot+set}" = set; then : 9401 withval=$with_sysroot; 9402else 9403 with_sysroot=no 9404fi 9405 9406 9407lt_sysroot= 9408case ${with_sysroot} in #( 9409 yes) 9410 if test "$GCC" = yes; then 9411 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 9412 fi 9413 ;; #( 9414 /*) 9415 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 9416 ;; #( 9417 no|'') 9418 ;; #( 9419 *) 9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 9421$as_echo "${with_sysroot}" >&6; } 9422 as_fn_error "The sysroot must be an absolute path." "$LINENO" 5 9423 ;; 9424esac 9425 9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 9427$as_echo "${lt_sysroot:-no}" >&6; } 9428 9429 9430 9431 9432 9433# Check whether --enable-libtool-lock was given. 9434if test "${enable_libtool_lock+set}" = set; then : 9435 enableval=$enable_libtool_lock; 9436fi 9437 9438test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 9439 9440# Some flags need to be propagated to the compiler or linker for good 9441# libtool support. 9442case $host in 9443ia64-*-hpux*) 9444 # Find out which ABI we are using. 9445 echo 'int i;' > conftest.$ac_ext 9446 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9447 (eval $ac_compile) 2>&5 9448 ac_status=$? 9449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9450 test $ac_status = 0; }; then 9451 case `/usr/bin/file conftest.$ac_objext` in 9452 *ELF-32*) 9453 HPUX_IA64_MODE="32" 9454 ;; 9455 *ELF-64*) 9456 HPUX_IA64_MODE="64" 9457 ;; 9458 esac 9459 fi 9460 rm -rf conftest* 9461 ;; 9462*-*-irix6*) 9463 # Find out which ABI we are using. 9464 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9466 (eval $ac_compile) 2>&5 9467 ac_status=$? 9468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9469 test $ac_status = 0; }; then 9470 if test "$lt_cv_prog_gnu_ld" = yes; then 9471 case `/usr/bin/file conftest.$ac_objext` in 9472 *32-bit*) 9473 LD="${LD-ld} -melf32bsmip" 9474 ;; 9475 *N32*) 9476 LD="${LD-ld} -melf32bmipn32" 9477 ;; 9478 *64-bit*) 9479 LD="${LD-ld} -melf64bmip" 9480 ;; 9481 esac 9482 else 9483 case `/usr/bin/file conftest.$ac_objext` in 9484 *32-bit*) 9485 LD="${LD-ld} -32" 9486 ;; 9487 *N32*) 9488 LD="${LD-ld} -n32" 9489 ;; 9490 *64-bit*) 9491 LD="${LD-ld} -64" 9492 ;; 9493 esac 9494 fi 9495 fi 9496 rm -rf conftest* 9497 ;; 9498 9499x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 9500s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 9501 # Find out which ABI we are using. 9502 echo 'int i;' > conftest.$ac_ext 9503 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9504 (eval $ac_compile) 2>&5 9505 ac_status=$? 9506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9507 test $ac_status = 0; }; then 9508 case `/usr/bin/file conftest.o` in 9509 *32-bit*) 9510 case $host in 9511 x86_64-*kfreebsd*-gnu) 9512 LD="${LD-ld} -m elf_i386_fbsd" 9513 ;; 9514 x86_64-*linux*) 9515 LD="${LD-ld} -m elf_i386" 9516 ;; 9517 ppc64-*linux*|powerpc64-*linux*) 9518 LD="${LD-ld} -m elf32ppclinux" 9519 ;; 9520 s390x-*linux*) 9521 LD="${LD-ld} -m elf_s390" 9522 ;; 9523 sparc64-*linux*) 9524 LD="${LD-ld} -m elf32_sparc" 9525 ;; 9526 esac 9527 ;; 9528 *64-bit*) 9529 case $host in 9530 x86_64-*kfreebsd*-gnu) 9531 LD="${LD-ld} -m elf_x86_64_fbsd" 9532 ;; 9533 x86_64-*linux*) 9534 LD="${LD-ld} -m elf_x86_64" 9535 ;; 9536 ppc*-*linux*|powerpc*-*linux*) 9537 LD="${LD-ld} -m elf64ppc" 9538 ;; 9539 s390*-*linux*|s390*-*tpf*) 9540 LD="${LD-ld} -m elf64_s390" 9541 ;; 9542 sparc*-*linux*) 9543 LD="${LD-ld} -m elf64_sparc" 9544 ;; 9545 esac 9546 ;; 9547 esac 9548 fi 9549 rm -rf conftest* 9550 ;; 9551 9552*-*-sco3.2v5*) 9553 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 9554 SAVE_CFLAGS="$CFLAGS" 9555 CFLAGS="$CFLAGS -belf" 9556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 9557$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 9558if test "${lt_cv_cc_needs_belf+set}" = set; then : 9559 $as_echo_n "(cached) " >&6 9560else 9561 ac_ext=c 9562ac_cpp='$CPP $CPPFLAGS' 9563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9565ac_compiler_gnu=$ac_cv_c_compiler_gnu 9566 9567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9568/* end confdefs.h. */ 9569 9570int main (void) 9571{ 9572 9573 ; 9574 return 0; 9575} 9576_ACEOF 9577if ac_fn_c_try_link "$LINENO"; then : 9578 lt_cv_cc_needs_belf=yes 9579else 9580 lt_cv_cc_needs_belf=no 9581fi 9582rm -f core conftest.err conftest.$ac_objext \ 9583 conftest$ac_exeext conftest.$ac_ext 9584 ac_ext=c 9585ac_cpp='$CPP $CPPFLAGS' 9586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9588ac_compiler_gnu=$ac_cv_c_compiler_gnu 9589 9590fi 9591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 9592$as_echo "$lt_cv_cc_needs_belf" >&6; } 9593 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 9594 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 9595 CFLAGS="$SAVE_CFLAGS" 9596 fi 9597 ;; 9598*-*solaris*) 9599 # Find out which ABI we are using. 9600 echo 'int i;' > conftest.$ac_ext 9601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9602 (eval $ac_compile) 2>&5 9603 ac_status=$? 9604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9605 test $ac_status = 0; }; then 9606 case `/usr/bin/file conftest.o` in 9607 *64-bit*) 9608 case $lt_cv_prog_gnu_ld in 9609 yes*) 9610 case $host in 9611 i?86-*-solaris*) 9612 LD="${LD-ld} -m elf_x86_64" 9613 ;; 9614 sparc*-*-solaris*) 9615 LD="${LD-ld} -m elf64_sparc" 9616 ;; 9617 esac 9618 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 9619 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 9620 LD="${LD-ld}_sol2" 9621 fi 9622 ;; 9623 *) 9624 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 9625 LD="${LD-ld} -64" 9626 fi 9627 ;; 9628 esac 9629 ;; 9630 esac 9631 fi 9632 rm -rf conftest* 9633 ;; 9634esac 9635 9636need_locks="$enable_libtool_lock" 9637 9638if test -n "$ac_tool_prefix"; then 9639 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 9640set dummy ${ac_tool_prefix}mt; ac_word=$2 9641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9642$as_echo_n "checking for $ac_word... " >&6; } 9643if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then : 9644 $as_echo_n "(cached) " >&6 9645else 9646 if test -n "$MANIFEST_TOOL"; then 9647 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 9648else 9649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9650for as_dir in $PATH 9651do 9652 IFS=$as_save_IFS 9653 test -z "$as_dir" && as_dir=. 9654 for ac_exec_ext in '' $ac_executable_extensions; do 9655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9656 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 9657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9658 break 2 9659 fi 9660done 9661 done 9662IFS=$as_save_IFS 9663 9664fi 9665fi 9666MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 9667if test -n "$MANIFEST_TOOL"; then 9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 9669$as_echo "$MANIFEST_TOOL" >&6; } 9670else 9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9672$as_echo "no" >&6; } 9673fi 9674 9675 9676fi 9677if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 9678 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 9679 # Extract the first word of "mt", so it can be a program name with args. 9680set dummy mt; ac_word=$2 9681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9682$as_echo_n "checking for $ac_word... " >&6; } 9683if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then : 9684 $as_echo_n "(cached) " >&6 9685else 9686 if test -n "$ac_ct_MANIFEST_TOOL"; then 9687 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 9688else 9689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9690for as_dir in $PATH 9691do 9692 IFS=$as_save_IFS 9693 test -z "$as_dir" && as_dir=. 9694 for ac_exec_ext in '' $ac_executable_extensions; do 9695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9696 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 9697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9698 break 2 9699 fi 9700done 9701 done 9702IFS=$as_save_IFS 9703 9704fi 9705fi 9706ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 9707if test -n "$ac_ct_MANIFEST_TOOL"; then 9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 9709$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 9710else 9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9712$as_echo "no" >&6; } 9713fi 9714 9715 if test "x$ac_ct_MANIFEST_TOOL" = x; then 9716 MANIFEST_TOOL=":" 9717 else 9718 case $cross_compiling:$ac_tool_warned in 9719yes:) 9720{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9721$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9722ac_tool_warned=yes ;; 9723esac 9724 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 9725 fi 9726else 9727 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 9728fi 9729 9730test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 9731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 9732$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 9733if test "${lt_cv_path_mainfest_tool+set}" = set; then : 9734 $as_echo_n "(cached) " >&6 9735else 9736 lt_cv_path_mainfest_tool=no 9737 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 9738 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 9739 cat conftest.err >&5 9740 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 9741 lt_cv_path_mainfest_tool=yes 9742 fi 9743 rm -f conftest* 9744fi 9745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 9746$as_echo "$lt_cv_path_mainfest_tool" >&6; } 9747if test "x$lt_cv_path_mainfest_tool" != xyes; then 9748 MANIFEST_TOOL=: 9749fi 9750 9751 9752 9753 9754 9755 9756 case $host_os in 9757 rhapsody* | darwin*) 9758 if test -n "$ac_tool_prefix"; then 9759 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 9760set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 9761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9762$as_echo_n "checking for $ac_word... " >&6; } 9763if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 9764 $as_echo_n "(cached) " >&6 9765else 9766 if test -n "$DSYMUTIL"; then 9767 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 9768else 9769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9770for as_dir in $PATH 9771do 9772 IFS=$as_save_IFS 9773 test -z "$as_dir" && as_dir=. 9774 for ac_exec_ext in '' $ac_executable_extensions; do 9775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9776 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 9777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9778 break 2 9779 fi 9780done 9781 done 9782IFS=$as_save_IFS 9783 9784fi 9785fi 9786DSYMUTIL=$ac_cv_prog_DSYMUTIL 9787if test -n "$DSYMUTIL"; then 9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 9789$as_echo "$DSYMUTIL" >&6; } 9790else 9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9792$as_echo "no" >&6; } 9793fi 9794 9795 9796fi 9797if test -z "$ac_cv_prog_DSYMUTIL"; then 9798 ac_ct_DSYMUTIL=$DSYMUTIL 9799 # Extract the first word of "dsymutil", so it can be a program name with args. 9800set dummy dsymutil; ac_word=$2 9801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9802$as_echo_n "checking for $ac_word... " >&6; } 9803if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 9804 $as_echo_n "(cached) " >&6 9805else 9806 if test -n "$ac_ct_DSYMUTIL"; then 9807 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 9808else 9809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9810for as_dir in $PATH 9811do 9812 IFS=$as_save_IFS 9813 test -z "$as_dir" && as_dir=. 9814 for ac_exec_ext in '' $ac_executable_extensions; do 9815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9816 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 9817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9818 break 2 9819 fi 9820done 9821 done 9822IFS=$as_save_IFS 9823 9824fi 9825fi 9826ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 9827if test -n "$ac_ct_DSYMUTIL"; then 9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 9829$as_echo "$ac_ct_DSYMUTIL" >&6; } 9830else 9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9832$as_echo "no" >&6; } 9833fi 9834 9835 if test "x$ac_ct_DSYMUTIL" = x; then 9836 DSYMUTIL=":" 9837 else 9838 case $cross_compiling:$ac_tool_warned in 9839yes:) 9840{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9841$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9842ac_tool_warned=yes ;; 9843esac 9844 DSYMUTIL=$ac_ct_DSYMUTIL 9845 fi 9846else 9847 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 9848fi 9849 9850 if test -n "$ac_tool_prefix"; then 9851 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 9852set dummy ${ac_tool_prefix}nmedit; ac_word=$2 9853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9854$as_echo_n "checking for $ac_word... " >&6; } 9855if test "${ac_cv_prog_NMEDIT+set}" = set; then : 9856 $as_echo_n "(cached) " >&6 9857else 9858 if test -n "$NMEDIT"; then 9859 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 9860else 9861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9862for as_dir in $PATH 9863do 9864 IFS=$as_save_IFS 9865 test -z "$as_dir" && as_dir=. 9866 for ac_exec_ext in '' $ac_executable_extensions; do 9867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9868 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 9869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9870 break 2 9871 fi 9872done 9873 done 9874IFS=$as_save_IFS 9875 9876fi 9877fi 9878NMEDIT=$ac_cv_prog_NMEDIT 9879if test -n "$NMEDIT"; then 9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 9881$as_echo "$NMEDIT" >&6; } 9882else 9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9884$as_echo "no" >&6; } 9885fi 9886 9887 9888fi 9889if test -z "$ac_cv_prog_NMEDIT"; then 9890 ac_ct_NMEDIT=$NMEDIT 9891 # Extract the first word of "nmedit", so it can be a program name with args. 9892set dummy nmedit; ac_word=$2 9893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9894$as_echo_n "checking for $ac_word... " >&6; } 9895if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 9896 $as_echo_n "(cached) " >&6 9897else 9898 if test -n "$ac_ct_NMEDIT"; then 9899 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 9900else 9901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9902for as_dir in $PATH 9903do 9904 IFS=$as_save_IFS 9905 test -z "$as_dir" && as_dir=. 9906 for ac_exec_ext in '' $ac_executable_extensions; do 9907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9908 ac_cv_prog_ac_ct_NMEDIT="nmedit" 9909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9910 break 2 9911 fi 9912done 9913 done 9914IFS=$as_save_IFS 9915 9916fi 9917fi 9918ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 9919if test -n "$ac_ct_NMEDIT"; then 9920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 9921$as_echo "$ac_ct_NMEDIT" >&6; } 9922else 9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9924$as_echo "no" >&6; } 9925fi 9926 9927 if test "x$ac_ct_NMEDIT" = x; then 9928 NMEDIT=":" 9929 else 9930 case $cross_compiling:$ac_tool_warned in 9931yes:) 9932{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9933$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9934ac_tool_warned=yes ;; 9935esac 9936 NMEDIT=$ac_ct_NMEDIT 9937 fi 9938else 9939 NMEDIT="$ac_cv_prog_NMEDIT" 9940fi 9941 9942 if test -n "$ac_tool_prefix"; then 9943 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 9944set dummy ${ac_tool_prefix}lipo; ac_word=$2 9945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9946$as_echo_n "checking for $ac_word... " >&6; } 9947if test "${ac_cv_prog_LIPO+set}" = set; then : 9948 $as_echo_n "(cached) " >&6 9949else 9950 if test -n "$LIPO"; then 9951 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 9952else 9953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9954for as_dir in $PATH 9955do 9956 IFS=$as_save_IFS 9957 test -z "$as_dir" && as_dir=. 9958 for ac_exec_ext in '' $ac_executable_extensions; do 9959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9960 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 9961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9962 break 2 9963 fi 9964done 9965 done 9966IFS=$as_save_IFS 9967 9968fi 9969fi 9970LIPO=$ac_cv_prog_LIPO 9971if test -n "$LIPO"; then 9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 9973$as_echo "$LIPO" >&6; } 9974else 9975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9976$as_echo "no" >&6; } 9977fi 9978 9979 9980fi 9981if test -z "$ac_cv_prog_LIPO"; then 9982 ac_ct_LIPO=$LIPO 9983 # Extract the first word of "lipo", so it can be a program name with args. 9984set dummy lipo; ac_word=$2 9985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9986$as_echo_n "checking for $ac_word... " >&6; } 9987if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 9988 $as_echo_n "(cached) " >&6 9989else 9990 if test -n "$ac_ct_LIPO"; then 9991 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 9992else 9993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9994for as_dir in $PATH 9995do 9996 IFS=$as_save_IFS 9997 test -z "$as_dir" && as_dir=. 9998 for ac_exec_ext in '' $ac_executable_extensions; do 9999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10000 ac_cv_prog_ac_ct_LIPO="lipo" 10001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10002 break 2 10003 fi 10004done 10005 done 10006IFS=$as_save_IFS 10007 10008fi 10009fi 10010ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 10011if test -n "$ac_ct_LIPO"; then 10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 10013$as_echo "$ac_ct_LIPO" >&6; } 10014else 10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10016$as_echo "no" >&6; } 10017fi 10018 10019 if test "x$ac_ct_LIPO" = x; then 10020 LIPO=":" 10021 else 10022 case $cross_compiling:$ac_tool_warned in 10023yes:) 10024{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10025$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10026ac_tool_warned=yes ;; 10027esac 10028 LIPO=$ac_ct_LIPO 10029 fi 10030else 10031 LIPO="$ac_cv_prog_LIPO" 10032fi 10033 10034 if test -n "$ac_tool_prefix"; then 10035 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 10036set dummy ${ac_tool_prefix}otool; ac_word=$2 10037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10038$as_echo_n "checking for $ac_word... " >&6; } 10039if test "${ac_cv_prog_OTOOL+set}" = set; then : 10040 $as_echo_n "(cached) " >&6 10041else 10042 if test -n "$OTOOL"; then 10043 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 10044else 10045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10046for as_dir in $PATH 10047do 10048 IFS=$as_save_IFS 10049 test -z "$as_dir" && as_dir=. 10050 for ac_exec_ext in '' $ac_executable_extensions; do 10051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10052 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 10053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10054 break 2 10055 fi 10056done 10057 done 10058IFS=$as_save_IFS 10059 10060fi 10061fi 10062OTOOL=$ac_cv_prog_OTOOL 10063if test -n "$OTOOL"; then 10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 10065$as_echo "$OTOOL" >&6; } 10066else 10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10068$as_echo "no" >&6; } 10069fi 10070 10071 10072fi 10073if test -z "$ac_cv_prog_OTOOL"; then 10074 ac_ct_OTOOL=$OTOOL 10075 # Extract the first word of "otool", so it can be a program name with args. 10076set dummy otool; ac_word=$2 10077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10078$as_echo_n "checking for $ac_word... " >&6; } 10079if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 10080 $as_echo_n "(cached) " >&6 10081else 10082 if test -n "$ac_ct_OTOOL"; then 10083 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 10084else 10085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10086for as_dir in $PATH 10087do 10088 IFS=$as_save_IFS 10089 test -z "$as_dir" && as_dir=. 10090 for ac_exec_ext in '' $ac_executable_extensions; do 10091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10092 ac_cv_prog_ac_ct_OTOOL="otool" 10093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10094 break 2 10095 fi 10096done 10097 done 10098IFS=$as_save_IFS 10099 10100fi 10101fi 10102ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 10103if test -n "$ac_ct_OTOOL"; then 10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 10105$as_echo "$ac_ct_OTOOL" >&6; } 10106else 10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10108$as_echo "no" >&6; } 10109fi 10110 10111 if test "x$ac_ct_OTOOL" = x; then 10112 OTOOL=":" 10113 else 10114 case $cross_compiling:$ac_tool_warned in 10115yes:) 10116{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10117$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10118ac_tool_warned=yes ;; 10119esac 10120 OTOOL=$ac_ct_OTOOL 10121 fi 10122else 10123 OTOOL="$ac_cv_prog_OTOOL" 10124fi 10125 10126 if test -n "$ac_tool_prefix"; then 10127 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 10128set dummy ${ac_tool_prefix}otool64; ac_word=$2 10129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10130$as_echo_n "checking for $ac_word... " >&6; } 10131if test "${ac_cv_prog_OTOOL64+set}" = set; then : 10132 $as_echo_n "(cached) " >&6 10133else 10134 if test -n "$OTOOL64"; then 10135 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 10136else 10137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10138for as_dir in $PATH 10139do 10140 IFS=$as_save_IFS 10141 test -z "$as_dir" && as_dir=. 10142 for ac_exec_ext in '' $ac_executable_extensions; do 10143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10144 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 10145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10146 break 2 10147 fi 10148done 10149 done 10150IFS=$as_save_IFS 10151 10152fi 10153fi 10154OTOOL64=$ac_cv_prog_OTOOL64 10155if test -n "$OTOOL64"; then 10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 10157$as_echo "$OTOOL64" >&6; } 10158else 10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10160$as_echo "no" >&6; } 10161fi 10162 10163 10164fi 10165if test -z "$ac_cv_prog_OTOOL64"; then 10166 ac_ct_OTOOL64=$OTOOL64 10167 # Extract the first word of "otool64", so it can be a program name with args. 10168set dummy otool64; ac_word=$2 10169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10170$as_echo_n "checking for $ac_word... " >&6; } 10171if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 10172 $as_echo_n "(cached) " >&6 10173else 10174 if test -n "$ac_ct_OTOOL64"; then 10175 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 10176else 10177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10178for as_dir in $PATH 10179do 10180 IFS=$as_save_IFS 10181 test -z "$as_dir" && as_dir=. 10182 for ac_exec_ext in '' $ac_executable_extensions; do 10183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10184 ac_cv_prog_ac_ct_OTOOL64="otool64" 10185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10186 break 2 10187 fi 10188done 10189 done 10190IFS=$as_save_IFS 10191 10192fi 10193fi 10194ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 10195if test -n "$ac_ct_OTOOL64"; then 10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 10197$as_echo "$ac_ct_OTOOL64" >&6; } 10198else 10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10200$as_echo "no" >&6; } 10201fi 10202 10203 if test "x$ac_ct_OTOOL64" = x; then 10204 OTOOL64=":" 10205 else 10206 case $cross_compiling:$ac_tool_warned in 10207yes:) 10208{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10209$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10210ac_tool_warned=yes ;; 10211esac 10212 OTOOL64=$ac_ct_OTOOL64 10213 fi 10214else 10215 OTOOL64="$ac_cv_prog_OTOOL64" 10216fi 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 10245$as_echo_n "checking for -single_module linker flag... " >&6; } 10246if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 10247 $as_echo_n "(cached) " >&6 10248else 10249 lt_cv_apple_cc_single_mod=no 10250 if test -z "${LT_MULTI_MODULE}"; then 10251 # By default we will add the -single_module flag. You can override 10252 # by either setting the environment variable LT_MULTI_MODULE 10253 # non-empty at configure time, or by adding -multi_module to the 10254 # link flags. 10255 rm -rf libconftest.dylib* 10256 echo "int foo(void){return 1;}" > conftest.c 10257 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10258-dynamiclib -Wl,-single_module conftest.c" >&5 10259 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10260 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 10261 _lt_result=$? 10262 # If there is a non-empty error log, and "single_module" 10263 # appears in it, assume the flag caused a linker warning 10264 if test -s conftest.err && $GREP single_module conftest.err; then 10265 cat conftest.err >&5 10266 # Otherwise, if the output was created with a 0 exit code from 10267 # the compiler, it worked. 10268 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 10269 lt_cv_apple_cc_single_mod=yes 10270 else 10271 cat conftest.err >&5 10272 fi 10273 rm -rf libconftest.dylib* 10274 rm -f conftest.* 10275 fi 10276fi 10277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 10278$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 10279 10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 10281$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 10282if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 10283 $as_echo_n "(cached) " >&6 10284else 10285 lt_cv_ld_exported_symbols_list=no 10286 save_LDFLAGS=$LDFLAGS 10287 echo "_main" > conftest.sym 10288 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 10289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10290/* end confdefs.h. */ 10291 10292int main (void) 10293{ 10294 10295 ; 10296 return 0; 10297} 10298_ACEOF 10299if ac_fn_c_try_link "$LINENO"; then : 10300 lt_cv_ld_exported_symbols_list=yes 10301else 10302 lt_cv_ld_exported_symbols_list=no 10303fi 10304rm -f core conftest.err conftest.$ac_objext \ 10305 conftest$ac_exeext conftest.$ac_ext 10306 LDFLAGS="$save_LDFLAGS" 10307 10308fi 10309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 10310$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 10311 10312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 10313$as_echo_n "checking for -force_load linker flag... " >&6; } 10314if test "${lt_cv_ld_force_load+set}" = set; then : 10315 $as_echo_n "(cached) " >&6 10316else 10317 lt_cv_ld_force_load=no 10318 cat > conftest.c << _LT_EOF 10319int forced_loaded() { return 2;} 10320_LT_EOF 10321 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 10322 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 10323 echo "$AR cru libconftest.a conftest.o" >&5 10324 $AR cru libconftest.a conftest.o 2>&5 10325 echo "$RANLIB libconftest.a" >&5 10326 $RANLIB libconftest.a 2>&5 10327 cat > conftest.c << _LT_EOF 10328int main() { return 0;} 10329_LT_EOF 10330 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 10331 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 10332 _lt_result=$? 10333 if test -s conftest.err && $GREP force_load conftest.err; then 10334 cat conftest.err >&5 10335 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 10336 lt_cv_ld_force_load=yes 10337 else 10338 cat conftest.err >&5 10339 fi 10340 rm -f conftest.err libconftest.a conftest conftest.c 10341 rm -rf conftest.dSYM 10342 10343fi 10344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 10345$as_echo "$lt_cv_ld_force_load" >&6; } 10346 case $host_os in 10347 rhapsody* | darwin1.[012]) 10348 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 10349 darwin1.*) 10350 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10351 darwin*) # darwin 5.x on 10352 # if running on 10.5 or later, the deployment target defaults 10353 # to the OS version, if on x86, and 10.4, the deployment 10354 # target defaults to 10.4. Don't you love it? 10355 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10356 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 10357 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10358 10.[012]*) 10359 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10360 10.*) 10361 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10362 esac 10363 ;; 10364 esac 10365 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 10366 _lt_dar_single_mod='$single_module' 10367 fi 10368 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 10369 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 10370 else 10371 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 10372 fi 10373 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 10374 _lt_dsymutil='~$DSYMUTIL $lib || :' 10375 else 10376 _lt_dsymutil= 10377 fi 10378 ;; 10379 esac 10380 10381for ac_header in dlfcn.h 10382do : 10383 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 10384" 10385if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 10386 cat >>confdefs.h <<_ACEOF 10387#define HAVE_DLFCN_H 1 10388_ACEOF 10389 10390fi 10391 10392done 10393 10394 10395 10396 10397 10398# Set options 10399 10400 10401 10402 enable_dlopen=no 10403 10404 10405 10406 # Check whether --enable-shared was given. 10407if test "${enable_shared+set}" = set; then : 10408 enableval=$enable_shared; p=${PACKAGE-default} 10409 case $enableval in 10410 yes) enable_shared=yes ;; 10411 no) enable_shared=no ;; 10412 *) 10413 enable_shared=no 10414 # Look at the argument we got. We use all the common list separators. 10415 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10416 for pkg in $enableval; do 10417 IFS="$lt_save_ifs" 10418 if test "X$pkg" = "X$p"; then 10419 enable_shared=yes 10420 fi 10421 done 10422 IFS="$lt_save_ifs" 10423 ;; 10424 esac 10425else 10426 enable_shared=yes 10427fi 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 # Check whether --enable-static was given. 10438if test "${enable_static+set}" = set; then : 10439 enableval=$enable_static; p=${PACKAGE-default} 10440 case $enableval in 10441 yes) enable_static=yes ;; 10442 no) enable_static=no ;; 10443 *) 10444 enable_static=no 10445 # Look at the argument we got. We use all the common list separators. 10446 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10447 for pkg in $enableval; do 10448 IFS="$lt_save_ifs" 10449 if test "X$pkg" = "X$p"; then 10450 enable_static=yes 10451 fi 10452 done 10453 IFS="$lt_save_ifs" 10454 ;; 10455 esac 10456else 10457 enable_static=yes 10458fi 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469# Check whether --with-pic was given. 10470if test "${with_pic+set}" = set; then : 10471 withval=$with_pic; lt_p=${PACKAGE-default} 10472 case $withval in 10473 yes|no) pic_mode=$withval ;; 10474 *) 10475 pic_mode=default 10476 # Look at the argument we got. We use all the common list separators. 10477 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10478 for lt_pkg in $withval; do 10479 IFS="$lt_save_ifs" 10480 if test "X$lt_pkg" = "X$lt_p"; then 10481 pic_mode=yes 10482 fi 10483 done 10484 IFS="$lt_save_ifs" 10485 ;; 10486 esac 10487else 10488 pic_mode=default 10489fi 10490 10491 10492test -z "$pic_mode" && pic_mode=default 10493 10494 10495 10496 10497 10498 10499 10500 # Check whether --enable-fast-install was given. 10501if test "${enable_fast_install+set}" = set; then : 10502 enableval=$enable_fast_install; p=${PACKAGE-default} 10503 case $enableval in 10504 yes) enable_fast_install=yes ;; 10505 no) enable_fast_install=no ;; 10506 *) 10507 enable_fast_install=no 10508 # Look at the argument we got. We use all the common list separators. 10509 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10510 for pkg in $enableval; do 10511 IFS="$lt_save_ifs" 10512 if test "X$pkg" = "X$p"; then 10513 enable_fast_install=yes 10514 fi 10515 done 10516 IFS="$lt_save_ifs" 10517 ;; 10518 esac 10519else 10520 enable_fast_install=yes 10521fi 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533# This can be used to rebuild libtool when needed 10534LIBTOOL_DEPS="$ltmain" 10535 10536# Always use our own libtool. 10537LIBTOOL='$(SHELL) $(top_builddir)/libtool' 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568test -z "$LN_S" && LN_S="ln -s" 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583if test -n "${ZSH_VERSION+set}" ; then 10584 setopt NO_GLOB_SUBST 10585fi 10586 10587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 10588$as_echo_n "checking for objdir... " >&6; } 10589if test "${lt_cv_objdir+set}" = set; then : 10590 $as_echo_n "(cached) " >&6 10591else 10592 rm -f .libs 2>/dev/null 10593mkdir .libs 2>/dev/null 10594if test -d .libs; then 10595 lt_cv_objdir=.libs 10596else 10597 # MS-DOS does not allow filenames that begin with a dot. 10598 lt_cv_objdir=_libs 10599fi 10600rmdir .libs 2>/dev/null 10601fi 10602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 10603$as_echo "$lt_cv_objdir" >&6; } 10604objdir=$lt_cv_objdir 10605 10606 10607 10608 10609 10610cat >>confdefs.h <<_ACEOF 10611#define LT_OBJDIR "$lt_cv_objdir/" 10612_ACEOF 10613 10614 10615 10616 10617case $host_os in 10618aix3*) 10619 # AIX sometimes has problems with the GCC collect2 program. For some 10620 # reason, if we set the COLLECT_NAMES environment variable, the problems 10621 # vanish in a puff of smoke. 10622 if test "X${COLLECT_NAMES+set}" != Xset; then 10623 COLLECT_NAMES= 10624 export COLLECT_NAMES 10625 fi 10626 ;; 10627esac 10628 10629# Global variables: 10630ofile=libtool 10631can_build_shared=yes 10632 10633# All known linkers require a `.a' archive for static linking (except MSVC, 10634# which needs '.lib'). 10635libext=a 10636 10637with_gnu_ld="$lt_cv_prog_gnu_ld" 10638 10639old_CC="$CC" 10640old_CFLAGS="$CFLAGS" 10641 10642# Set sane defaults for various variables 10643test -z "$CC" && CC=cc 10644test -z "$LTCC" && LTCC=$CC 10645test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 10646test -z "$LD" && LD=ld 10647test -z "$ac_objext" && ac_objext=o 10648 10649for cc_temp in $compiler""; do 10650 case $cc_temp in 10651 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10652 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10653 \-*) ;; 10654 *) break;; 10655 esac 10656done 10657cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 10658 10659 10660# Only perform the check for file, if the check method requires it 10661test -z "$MAGIC_CMD" && MAGIC_CMD=file 10662case $deplibs_check_method in 10663file_magic*) 10664 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 10666$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 10667if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 10668 $as_echo_n "(cached) " >&6 10669else 10670 case $MAGIC_CMD in 10671[\\/*] | ?:[\\/]*) 10672 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 10673 ;; 10674*) 10675 lt_save_MAGIC_CMD="$MAGIC_CMD" 10676 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10677 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10678 for ac_dir in $ac_dummy; do 10679 IFS="$lt_save_ifs" 10680 test -z "$ac_dir" && ac_dir=. 10681 if test -f $ac_dir/${ac_tool_prefix}file; then 10682 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 10683 if test -n "$file_magic_test_file"; then 10684 case $deplibs_check_method in 10685 "file_magic "*) 10686 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10687 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10688 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10689 $EGREP "$file_magic_regex" > /dev/null; then 10690 : 10691 else 10692 cat <<_LT_EOF 1>&2 10693 10694*** Warning: the command libtool uses to detect shared libraries, 10695*** $file_magic_cmd, produces output that libtool cannot recognize. 10696*** The result is that libtool may fail to recognize shared libraries 10697*** as such. This will affect the creation of libtool libraries that 10698*** depend on shared libraries, but programs linked with such libtool 10699*** libraries will work regardless of this problem. Nevertheless, you 10700*** may want to report the problem to your system manager and/or to 10701*** bug-libtool@gnu.org 10702 10703_LT_EOF 10704 fi ;; 10705 esac 10706 fi 10707 break 10708 fi 10709 done 10710 IFS="$lt_save_ifs" 10711 MAGIC_CMD="$lt_save_MAGIC_CMD" 10712 ;; 10713esac 10714fi 10715 10716MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10717if test -n "$MAGIC_CMD"; then 10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10719$as_echo "$MAGIC_CMD" >&6; } 10720else 10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10722$as_echo "no" >&6; } 10723fi 10724 10725 10726 10727 10728 10729if test -z "$lt_cv_path_MAGIC_CMD"; then 10730 if test -n "$ac_tool_prefix"; then 10731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 10732$as_echo_n "checking for file... " >&6; } 10733if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 10734 $as_echo_n "(cached) " >&6 10735else 10736 case $MAGIC_CMD in 10737[\\/*] | ?:[\\/]*) 10738 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 10739 ;; 10740*) 10741 lt_save_MAGIC_CMD="$MAGIC_CMD" 10742 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10743 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10744 for ac_dir in $ac_dummy; do 10745 IFS="$lt_save_ifs" 10746 test -z "$ac_dir" && ac_dir=. 10747 if test -f $ac_dir/file; then 10748 lt_cv_path_MAGIC_CMD="$ac_dir/file" 10749 if test -n "$file_magic_test_file"; then 10750 case $deplibs_check_method in 10751 "file_magic "*) 10752 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10753 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10754 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10755 $EGREP "$file_magic_regex" > /dev/null; then 10756 : 10757 else 10758 cat <<_LT_EOF 1>&2 10759 10760*** Warning: the command libtool uses to detect shared libraries, 10761*** $file_magic_cmd, produces output that libtool cannot recognize. 10762*** The result is that libtool may fail to recognize shared libraries 10763*** as such. This will affect the creation of libtool libraries that 10764*** depend on shared libraries, but programs linked with such libtool 10765*** libraries will work regardless of this problem. Nevertheless, you 10766*** may want to report the problem to your system manager and/or to 10767*** bug-libtool@gnu.org 10768 10769_LT_EOF 10770 fi ;; 10771 esac 10772 fi 10773 break 10774 fi 10775 done 10776 IFS="$lt_save_ifs" 10777 MAGIC_CMD="$lt_save_MAGIC_CMD" 10778 ;; 10779esac 10780fi 10781 10782MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10783if test -n "$MAGIC_CMD"; then 10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10785$as_echo "$MAGIC_CMD" >&6; } 10786else 10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10788$as_echo "no" >&6; } 10789fi 10790 10791 10792 else 10793 MAGIC_CMD=: 10794 fi 10795fi 10796 10797 fi 10798 ;; 10799esac 10800 10801# Use C for the default configuration in the libtool script 10802 10803lt_save_CC="$CC" 10804ac_ext=c 10805ac_cpp='$CPP $CPPFLAGS' 10806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10808ac_compiler_gnu=$ac_cv_c_compiler_gnu 10809 10810 10811# Source file extension for C test sources. 10812ac_ext=c 10813 10814# Object file extension for compiled C test sources. 10815objext=o 10816objext=$objext 10817 10818# Code to be used in simple compile tests 10819lt_simple_compile_test_code="int some_variable = 0;" 10820 10821# Code to be used in simple link tests 10822lt_simple_link_test_code='int main(){return(0);}' 10823 10824 10825 10826 10827 10828 10829 10830# If no C compiler was specified, use CC. 10831LTCC=${LTCC-"$CC"} 10832 10833# If no C compiler flags were specified, use CFLAGS. 10834LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10835 10836# Allow CC to be a program name with arguments. 10837compiler=$CC 10838 10839# Save the default compiler, since it gets overwritten when the other 10840# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 10841compiler_DEFAULT=$CC 10842 10843# save warnings/boilerplate of simple test code 10844ac_outfile=conftest.$ac_objext 10845echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10846eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10847_lt_compiler_boilerplate=`cat conftest.err` 10848$RM conftest* 10849 10850ac_outfile=conftest.$ac_objext 10851echo "$lt_simple_link_test_code" >conftest.$ac_ext 10852eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10853_lt_linker_boilerplate=`cat conftest.err` 10854$RM -r conftest* 10855 10856 10857## CAVEAT EMPTOR: 10858## There is no encapsulation within the following macros, do not change 10859## the running order or otherwise move them around unless you know exactly 10860## what you are doing... 10861if test -n "$compiler"; then 10862 10863lt_prog_compiler_no_builtin_flag= 10864 10865if test "$GCC" = yes; then 10866 case $cc_basename in 10867 nvcc*) 10868 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 10869 *) 10870 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 10871 esac 10872 10873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10874$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 10875if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 10876 $as_echo_n "(cached) " >&6 10877else 10878 lt_cv_prog_compiler_rtti_exceptions=no 10879 ac_outfile=conftest.$ac_objext 10880 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10881 lt_compiler_flag="-fno-rtti -fno-exceptions" 10882 # Insert the option either (1) after the last *FLAGS variable, or 10883 # (2) before a word containing "conftest.", or (3) at the end. 10884 # Note that $ac_compile itself does not contain backslashes and begins 10885 # with a dollar sign (not a hyphen), so the echo should work correctly. 10886 # The option is referenced via a variable to avoid confusing sed. 10887 lt_compile=`echo "$ac_compile" | $SED \ 10888 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10889 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10890 -e 's:$: $lt_compiler_flag:'` 10891 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10892 (eval "$lt_compile" 2>conftest.err) 10893 ac_status=$? 10894 cat conftest.err >&5 10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10896 if (exit $ac_status) && test -s "$ac_outfile"; then 10897 # The compiler can only warn and ignore the option if not recognized 10898 # So say no if there are warnings other than the usual output. 10899 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10900 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10901 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10902 lt_cv_prog_compiler_rtti_exceptions=yes 10903 fi 10904 fi 10905 $RM conftest* 10906 10907fi 10908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10909$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10910 10911if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 10912 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10913else 10914 : 10915fi 10916 10917fi 10918 10919 10920 10921 10922 10923 10924 lt_prog_compiler_wl= 10925lt_prog_compiler_pic= 10926lt_prog_compiler_static= 10927 10928 10929 if test "$GCC" = yes; then 10930 lt_prog_compiler_wl='-Wl,' 10931 lt_prog_compiler_static='-static' 10932 10933 case $host_os in 10934 aix*) 10935 # All AIX code is PIC. 10936 if test "$host_cpu" = ia64; then 10937 # AIX 5 now supports IA64 processor 10938 lt_prog_compiler_static='-Bstatic' 10939 fi 10940 ;; 10941 10942 amigaos*) 10943 case $host_cpu in 10944 powerpc) 10945 # see comment about AmigaOS4 .so support 10946 lt_prog_compiler_pic='-fPIC' 10947 ;; 10948 m68k) 10949 # FIXME: we need at least 68020 code to build shared libraries, but 10950 # adding the `-m68020' flag to GCC prevents building anything better, 10951 # like `-m68040'. 10952 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10953 ;; 10954 esac 10955 ;; 10956 10957 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10958 # PIC is the default for these OSes. 10959 ;; 10960 10961 mingw* | cygwin* | pw32* | os2* | cegcc*) 10962 # This hack is so that the source file can tell whether it is being 10963 # built for inclusion in a dll (and should export symbols for example). 10964 # Although the cygwin gcc ignores -fPIC, still need this for old-style 10965 # (--disable-auto-import) libraries 10966 lt_prog_compiler_pic='-DDLL_EXPORT' 10967 ;; 10968 10969 darwin* | rhapsody*) 10970 # PIC is the default on this platform 10971 # Common symbols not allowed in MH_DYLIB files 10972 lt_prog_compiler_pic='-fno-common' 10973 ;; 10974 10975 haiku*) 10976 # PIC is the default for Haiku. 10977 # The "-static" flag exists, but is broken. 10978 lt_prog_compiler_static= 10979 ;; 10980 10981 hpux*) 10982 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 10983 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 10984 # sets the default TLS model and affects inlining. 10985 case $host_cpu in 10986 hppa*64*) 10987 # +Z the default 10988 ;; 10989 *) 10990 lt_prog_compiler_pic='-fPIC' 10991 ;; 10992 esac 10993 ;; 10994 10995 interix[3-9]*) 10996 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10997 # Instead, we relocate shared libraries at runtime. 10998 ;; 10999 11000 msdosdjgpp*) 11001 # Just because we use GCC doesn't mean we suddenly get shared libraries 11002 # on systems that don't support them. 11003 lt_prog_compiler_can_build_shared=no 11004 enable_shared=no 11005 ;; 11006 11007 *nto* | *qnx*) 11008 # QNX uses GNU C++, but need to define -shared option too, otherwise 11009 # it will coredump. 11010 lt_prog_compiler_pic='-fPIC -shared' 11011 ;; 11012 11013 sysv4*MP*) 11014 if test -d /usr/nec; then 11015 lt_prog_compiler_pic=-Kconform_pic 11016 fi 11017 ;; 11018 11019 *) 11020 lt_prog_compiler_pic='-fPIC' 11021 ;; 11022 esac 11023 11024 case $cc_basename in 11025 nvcc*) # Cuda Compiler Driver 2.2 11026 lt_prog_compiler_wl='-Xlinker ' 11027 if test -n "$lt_prog_compiler_pic"; then 11028 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 11029 fi 11030 ;; 11031 esac 11032 else 11033 # PORTME Check for flag to pass linker flags through the system compiler. 11034 case $host_os in 11035 aix*) 11036 lt_prog_compiler_wl='-Wl,' 11037 if test "$host_cpu" = ia64; then 11038 # AIX 5 now supports IA64 processor 11039 lt_prog_compiler_static='-Bstatic' 11040 else 11041 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 11042 fi 11043 ;; 11044 11045 mingw* | cygwin* | pw32* | os2* | cegcc*) 11046 # This hack is so that the source file can tell whether it is being 11047 # built for inclusion in a dll (and should export symbols for example). 11048 lt_prog_compiler_pic='-DDLL_EXPORT' 11049 ;; 11050 11051 hpux9* | hpux10* | hpux11*) 11052 lt_prog_compiler_wl='-Wl,' 11053 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11054 # not for PA HP-UX. 11055 case $host_cpu in 11056 hppa*64*|ia64*) 11057 # +Z the default 11058 ;; 11059 *) 11060 lt_prog_compiler_pic='+Z' 11061 ;; 11062 esac 11063 # Is there a better lt_prog_compiler_static that works with the bundled CC? 11064 lt_prog_compiler_static='${wl}-a ${wl}archive' 11065 ;; 11066 11067 irix5* | irix6* | nonstopux*) 11068 lt_prog_compiler_wl='-Wl,' 11069 # PIC (with -KPIC) is the default. 11070 lt_prog_compiler_static='-non_shared' 11071 ;; 11072 11073 linux* | k*bsd*-gnu | kopensolaris*-gnu) 11074 case $cc_basename in 11075 # old Intel for x86_64 which still supported -KPIC. 11076 ecc*) 11077 lt_prog_compiler_wl='-Wl,' 11078 lt_prog_compiler_pic='-KPIC' 11079 lt_prog_compiler_static='-static' 11080 ;; 11081 # icc used to be incompatible with GCC. 11082 # ICC 10 doesn't accept -KPIC any more. 11083 icc* | ifort*) 11084 lt_prog_compiler_wl='-Wl,' 11085 lt_prog_compiler_pic='-fPIC' 11086 lt_prog_compiler_static='-static' 11087 ;; 11088 # Lahey Fortran 8.1. 11089 lf95*) 11090 lt_prog_compiler_wl='-Wl,' 11091 lt_prog_compiler_pic='--shared' 11092 lt_prog_compiler_static='--static' 11093 ;; 11094 nagfor*) 11095 # NAG Fortran compiler 11096 lt_prog_compiler_wl='-Wl,-Wl,,' 11097 lt_prog_compiler_pic='-PIC' 11098 lt_prog_compiler_static='-Bstatic' 11099 ;; 11100 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 11101 # Portland Group compilers (*not* the Pentium gcc compiler, 11102 # which looks to be a dead project) 11103 lt_prog_compiler_wl='-Wl,' 11104 lt_prog_compiler_pic='-fpic' 11105 lt_prog_compiler_static='-Bstatic' 11106 ;; 11107 ccc*) 11108 lt_prog_compiler_wl='-Wl,' 11109 # All Alpha code is PIC. 11110 lt_prog_compiler_static='-non_shared' 11111 ;; 11112 xl* | bgxl* | bgf* | mpixl*) 11113 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 11114 lt_prog_compiler_wl='-Wl,' 11115 lt_prog_compiler_pic='-qpic' 11116 lt_prog_compiler_static='-qstaticlink' 11117 ;; 11118 *) 11119 case `$CC -V 2>&1 | sed 5q` in 11120 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 11121 # Sun Fortran 8.3 passes all unrecognized flags to the linker 11122 lt_prog_compiler_pic='-KPIC' 11123 lt_prog_compiler_static='-Bstatic' 11124 lt_prog_compiler_wl='' 11125 ;; 11126 *Sun\ F* | *Sun*Fortran*) 11127 lt_prog_compiler_pic='-KPIC' 11128 lt_prog_compiler_static='-Bstatic' 11129 lt_prog_compiler_wl='-Qoption ld ' 11130 ;; 11131 *Sun\ C*) 11132 # Sun C 5.9 11133 lt_prog_compiler_pic='-KPIC' 11134 lt_prog_compiler_static='-Bstatic' 11135 lt_prog_compiler_wl='-Wl,' 11136 ;; 11137 *Intel*\ [CF]*Compiler*) 11138 lt_prog_compiler_wl='-Wl,' 11139 lt_prog_compiler_pic='-fPIC' 11140 lt_prog_compiler_static='-static' 11141 ;; 11142 *Portland\ Group*) 11143 lt_prog_compiler_wl='-Wl,' 11144 lt_prog_compiler_pic='-fpic' 11145 lt_prog_compiler_static='-Bstatic' 11146 ;; 11147 esac 11148 ;; 11149 esac 11150 ;; 11151 11152 newsos6) 11153 lt_prog_compiler_pic='-KPIC' 11154 lt_prog_compiler_static='-Bstatic' 11155 ;; 11156 11157 *nto* | *qnx*) 11158 # QNX uses GNU C++, but need to define -shared option too, otherwise 11159 # it will coredump. 11160 lt_prog_compiler_pic='-fPIC -shared' 11161 ;; 11162 11163 osf3* | osf4* | osf5*) 11164 lt_prog_compiler_wl='-Wl,' 11165 # All OSF/1 code is PIC. 11166 lt_prog_compiler_static='-non_shared' 11167 ;; 11168 11169 rdos*) 11170 lt_prog_compiler_static='-non_shared' 11171 ;; 11172 11173 solaris*) 11174 lt_prog_compiler_pic='-KPIC' 11175 lt_prog_compiler_static='-Bstatic' 11176 case $cc_basename in 11177 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 11178 lt_prog_compiler_wl='-Qoption ld ';; 11179 *) 11180 lt_prog_compiler_wl='-Wl,';; 11181 esac 11182 ;; 11183 11184 sunos4*) 11185 lt_prog_compiler_wl='-Qoption ld ' 11186 lt_prog_compiler_pic='-PIC' 11187 lt_prog_compiler_static='-Bstatic' 11188 ;; 11189 11190 sysv4 | sysv4.2uw2* | sysv4.3*) 11191 lt_prog_compiler_wl='-Wl,' 11192 lt_prog_compiler_pic='-KPIC' 11193 lt_prog_compiler_static='-Bstatic' 11194 ;; 11195 11196 sysv4*MP*) 11197 if test -d /usr/nec ;then 11198 lt_prog_compiler_pic='-Kconform_pic' 11199 lt_prog_compiler_static='-Bstatic' 11200 fi 11201 ;; 11202 11203 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11204 lt_prog_compiler_wl='-Wl,' 11205 lt_prog_compiler_pic='-KPIC' 11206 lt_prog_compiler_static='-Bstatic' 11207 ;; 11208 11209 unicos*) 11210 lt_prog_compiler_wl='-Wl,' 11211 lt_prog_compiler_can_build_shared=no 11212 ;; 11213 11214 uts4*) 11215 lt_prog_compiler_pic='-pic' 11216 lt_prog_compiler_static='-Bstatic' 11217 ;; 11218 11219 *) 11220 lt_prog_compiler_can_build_shared=no 11221 ;; 11222 esac 11223 fi 11224 11225case $host_os in 11226 # For platforms which do not support PIC, -DPIC is meaningless: 11227 *djgpp*) 11228 lt_prog_compiler_pic= 11229 ;; 11230 *) 11231 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 11232 ;; 11233esac 11234 11235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 11236$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 11237if test "${lt_cv_prog_compiler_pic+set}" = set; then : 11238 $as_echo_n "(cached) " >&6 11239else 11240 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 11241fi 11242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 11243$as_echo "$lt_cv_prog_compiler_pic" >&6; } 11244lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 11245 11246# 11247# Check to make sure the PIC flag actually works. 11248# 11249if test -n "$lt_prog_compiler_pic"; then 11250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 11251$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 11252if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 11253 $as_echo_n "(cached) " >&6 11254else 11255 lt_cv_prog_compiler_pic_works=no 11256 ac_outfile=conftest.$ac_objext 11257 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11258 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 11259 # Insert the option either (1) after the last *FLAGS variable, or 11260 # (2) before a word containing "conftest.", or (3) at the end. 11261 # Note that $ac_compile itself does not contain backslashes and begins 11262 # with a dollar sign (not a hyphen), so the echo should work correctly. 11263 # The option is referenced via a variable to avoid confusing sed. 11264 lt_compile=`echo "$ac_compile" | $SED \ 11265 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11266 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11267 -e 's:$: $lt_compiler_flag:'` 11268 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11269 (eval "$lt_compile" 2>conftest.err) 11270 ac_status=$? 11271 cat conftest.err >&5 11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11273 if (exit $ac_status) && test -s "$ac_outfile"; then 11274 # The compiler can only warn and ignore the option if not recognized 11275 # So say no if there are warnings other than the usual output. 11276 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11277 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11278 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11279 lt_cv_prog_compiler_pic_works=yes 11280 fi 11281 fi 11282 $RM conftest* 11283 11284fi 11285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 11286$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 11287 11288if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 11289 case $lt_prog_compiler_pic in 11290 "" | " "*) ;; 11291 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 11292 esac 11293else 11294 lt_prog_compiler_pic= 11295 lt_prog_compiler_can_build_shared=no 11296fi 11297 11298fi 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310# 11311# Check to make sure the static flag actually works. 11312# 11313wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 11314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11315$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 11316if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 11317 $as_echo_n "(cached) " >&6 11318else 11319 lt_cv_prog_compiler_static_works=no 11320 save_LDFLAGS="$LDFLAGS" 11321 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11322 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11323 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11324 # The linker can only warn and ignore the option if not recognized 11325 # So say no if there are warnings 11326 if test -s conftest.err; then 11327 # Append any errors to the config.log. 11328 cat conftest.err 1>&5 11329 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11330 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11331 if diff conftest.exp conftest.er2 >/dev/null; then 11332 lt_cv_prog_compiler_static_works=yes 11333 fi 11334 else 11335 lt_cv_prog_compiler_static_works=yes 11336 fi 11337 fi 11338 $RM -r conftest* 11339 LDFLAGS="$save_LDFLAGS" 11340 11341fi 11342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 11343$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 11344 11345if test x"$lt_cv_prog_compiler_static_works" = xyes; then 11346 : 11347else 11348 lt_prog_compiler_static= 11349fi 11350 11351 11352 11353 11354 11355 11356 11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11358$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11359if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 11360 $as_echo_n "(cached) " >&6 11361else 11362 lt_cv_prog_compiler_c_o=no 11363 $RM -r conftest 2>/dev/null 11364 mkdir conftest 11365 cd conftest 11366 mkdir out 11367 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11368 11369 lt_compiler_flag="-o out/conftest2.$ac_objext" 11370 # Insert the option either (1) after the last *FLAGS variable, or 11371 # (2) before a word containing "conftest.", or (3) at the end. 11372 # Note that $ac_compile itself does not contain backslashes and begins 11373 # with a dollar sign (not a hyphen), so the echo should work correctly. 11374 lt_compile=`echo "$ac_compile" | $SED \ 11375 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11376 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11377 -e 's:$: $lt_compiler_flag:'` 11378 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11379 (eval "$lt_compile" 2>out/conftest.err) 11380 ac_status=$? 11381 cat out/conftest.err >&5 11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11383 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11384 then 11385 # The compiler can only warn and ignore the option if not recognized 11386 # So say no if there are warnings 11387 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11388 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11389 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11390 lt_cv_prog_compiler_c_o=yes 11391 fi 11392 fi 11393 chmod u+w . 2>&5 11394 $RM conftest* 11395 # SGI C++ compiler will create directory out/ii_files/ for 11396 # template instantiation 11397 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11398 $RM out/* && rmdir out 11399 cd .. 11400 $RM -r conftest 11401 $RM conftest* 11402 11403fi 11404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11405$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11406 11407 11408 11409 11410 11411 11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11413$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11414if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 11415 $as_echo_n "(cached) " >&6 11416else 11417 lt_cv_prog_compiler_c_o=no 11418 $RM -r conftest 2>/dev/null 11419 mkdir conftest 11420 cd conftest 11421 mkdir out 11422 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11423 11424 lt_compiler_flag="-o out/conftest2.$ac_objext" 11425 # Insert the option either (1) after the last *FLAGS variable, or 11426 # (2) before a word containing "conftest.", or (3) at the end. 11427 # Note that $ac_compile itself does not contain backslashes and begins 11428 # with a dollar sign (not a hyphen), so the echo should work correctly. 11429 lt_compile=`echo "$ac_compile" | $SED \ 11430 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11431 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11432 -e 's:$: $lt_compiler_flag:'` 11433 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11434 (eval "$lt_compile" 2>out/conftest.err) 11435 ac_status=$? 11436 cat out/conftest.err >&5 11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11438 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11439 then 11440 # The compiler can only warn and ignore the option if not recognized 11441 # So say no if there are warnings 11442 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11443 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11444 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11445 lt_cv_prog_compiler_c_o=yes 11446 fi 11447 fi 11448 chmod u+w . 2>&5 11449 $RM conftest* 11450 # SGI C++ compiler will create directory out/ii_files/ for 11451 # template instantiation 11452 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11453 $RM out/* && rmdir out 11454 cd .. 11455 $RM -r conftest 11456 $RM conftest* 11457 11458fi 11459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11460$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11461 11462 11463 11464 11465hard_links="nottested" 11466if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 11467 # do not overwrite the value of need_locks provided by the user 11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 11469$as_echo_n "checking if we can lock with hard links... " >&6; } 11470 hard_links=yes 11471 $RM conftest* 11472 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11473 touch conftest.a 11474 ln conftest.a conftest.b 2>&5 || hard_links=no 11475 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 11477$as_echo "$hard_links" >&6; } 11478 if test "$hard_links" = no; then 11479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11480$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11481 need_locks=warn 11482 fi 11483else 11484 need_locks=no 11485fi 11486 11487 11488 11489 11490 11491 11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11493$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11494 11495 runpath_var= 11496 allow_undefined_flag= 11497 always_export_symbols=no 11498 archive_cmds= 11499 archive_expsym_cmds= 11500 compiler_needs_object=no 11501 enable_shared_with_static_runtimes=no 11502 export_dynamic_flag_spec= 11503 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11504 hardcode_automatic=no 11505 hardcode_direct=no 11506 hardcode_direct_absolute=no 11507 hardcode_libdir_flag_spec= 11508 hardcode_libdir_separator= 11509 hardcode_minus_L=no 11510 hardcode_shlibpath_var=unsupported 11511 inherit_rpath=no 11512 link_all_deplibs=unknown 11513 module_cmds= 11514 module_expsym_cmds= 11515 old_archive_from_new_cmds= 11516 old_archive_from_expsyms_cmds= 11517 thread_safe_flag_spec= 11518 whole_archive_flag_spec= 11519 # include_expsyms should be a list of space-separated symbols to be *always* 11520 # included in the symbol list 11521 include_expsyms= 11522 # exclude_expsyms can be an extended regexp of symbols to exclude 11523 # it will be wrapped by ` (' and `)$', so one must not match beginning or 11524 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 11525 # as well as any symbol that contains `d'. 11526 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 11527 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 11528 # platforms (ab)use it in PIC code, but their linkers get confused if 11529 # the symbol is explicitly referenced. Since portable code cannot 11530 # rely on this symbol name, it's probably fine to never include it in 11531 # preloaded symbol tables. 11532 # Exclude shared library initialization/finalization symbols. 11533 extract_expsyms_cmds= 11534 11535 case $host_os in 11536 cygwin* | mingw* | pw32* | cegcc*) 11537 # FIXME: the MSVC++ port hasn't been tested in a loooong time 11538 # When not using gcc, we currently assume that we are using 11539 # Microsoft Visual C++. 11540 if test "$GCC" != yes; then 11541 with_gnu_ld=no 11542 fi 11543 ;; 11544 interix*) 11545 # we just hope/assume this is gcc and not c89 (= MSVC++) 11546 with_gnu_ld=yes 11547 ;; 11548 openbsd*) 11549 with_gnu_ld=no 11550 ;; 11551 linux* | k*bsd*-gnu | gnu*) 11552 link_all_deplibs=no 11553 ;; 11554 esac 11555 11556 ld_shlibs=yes 11557 11558 # On some targets, GNU ld is compatible enough with the native linker 11559 # that we're better off using the native interface for both. 11560 lt_use_gnu_ld_interface=no 11561 if test "$with_gnu_ld" = yes; then 11562 case $host_os in 11563 aix*) 11564 # The AIX port of GNU ld has always aspired to compatibility 11565 # with the native linker. However, as the warning in the GNU ld 11566 # block says, versions before 2.19.5* couldn't really create working 11567 # shared libraries, regardless of the interface used. 11568 case `$LD -v 2>&1` in 11569 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 11570 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 11571 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 11572 *) 11573 lt_use_gnu_ld_interface=yes 11574 ;; 11575 esac 11576 ;; 11577 *) 11578 lt_use_gnu_ld_interface=yes 11579 ;; 11580 esac 11581 fi 11582 11583 if test "$lt_use_gnu_ld_interface" = yes; then 11584 # If archive_cmds runs LD, not CC, wlarc should be empty 11585 wlarc='${wl}' 11586 11587 # Set some defaults for GNU ld with shared library support. These 11588 # are reset later if shared libraries are not supported. Putting them 11589 # here allows them to be overridden if necessary. 11590 runpath_var=LD_RUN_PATH 11591 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11592 export_dynamic_flag_spec='${wl}--export-dynamic' 11593 # ancient GNU ld didn't support --whole-archive et. al. 11594 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 11595 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11596 else 11597 whole_archive_flag_spec= 11598 fi 11599 supports_anon_versioning=no 11600 case `$LD -v 2>&1` in 11601 *GNU\ gold*) supports_anon_versioning=yes ;; 11602 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 11603 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 11604 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 11605 *\ 2.11.*) ;; # other 2.11 versions 11606 *) supports_anon_versioning=yes ;; 11607 esac 11608 11609 # See if GNU ld supports shared libraries. 11610 case $host_os in 11611 aix[3-9]*) 11612 # On AIX/PPC, the GNU linker is very broken 11613 if test "$host_cpu" != ia64; then 11614 ld_shlibs=no 11615 cat <<_LT_EOF 1>&2 11616 11617*** Warning: the GNU linker, at least up to release 2.19, is reported 11618*** to be unable to reliably create shared libraries on AIX. 11619*** Therefore, libtool is disabling shared libraries support. If you 11620*** really care for shared libraries, you may want to install binutils 11621*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 11622*** You will then need to restart the configuration process. 11623 11624_LT_EOF 11625 fi 11626 ;; 11627 11628 amigaos*) 11629 case $host_cpu in 11630 powerpc) 11631 # see comment about AmigaOS4 .so support 11632 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11633 archive_expsym_cmds='' 11634 ;; 11635 m68k) 11636 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)' 11637 hardcode_libdir_flag_spec='-L$libdir' 11638 hardcode_minus_L=yes 11639 ;; 11640 esac 11641 ;; 11642 11643 beos*) 11644 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11645 allow_undefined_flag=unsupported 11646 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11647 # support --undefined. This deserves some investigation. FIXME 11648 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11649 else 11650 ld_shlibs=no 11651 fi 11652 ;; 11653 11654 cygwin* | mingw* | pw32* | cegcc*) 11655 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 11656 # as there is no search path for DLLs. 11657 hardcode_libdir_flag_spec='-L$libdir' 11658 export_dynamic_flag_spec='${wl}--export-all-symbols' 11659 allow_undefined_flag=unsupported 11660 always_export_symbols=no 11661 enable_shared_with_static_runtimes=yes 11662 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' 11663 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 11664 11665 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 11666 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11667 # If the export-symbols file already is a .def file (1st line 11668 # is EXPORTS), use it as is; otherwise, prepend... 11669 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11670 cp $export_symbols $output_objdir/$soname.def; 11671 else 11672 echo EXPORTS > $output_objdir/$soname.def; 11673 cat $export_symbols >> $output_objdir/$soname.def; 11674 fi~ 11675 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11676 else 11677 ld_shlibs=no 11678 fi 11679 ;; 11680 11681 haiku*) 11682 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11683 link_all_deplibs=yes 11684 ;; 11685 11686 interix[3-9]*) 11687 hardcode_direct=no 11688 hardcode_shlibpath_var=no 11689 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11690 export_dynamic_flag_spec='${wl}-E' 11691 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11692 # Instead, shared libraries are loaded at an image base (0x10000000 by 11693 # default) and relocated if they conflict, which is a slow very memory 11694 # consuming and fragmenting process. To avoid this, we pick a random, 11695 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11696 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11697 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11698 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' 11699 ;; 11700 11701 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 11702 tmp_diet=no 11703 if test "$host_os" = linux-dietlibc; then 11704 case $cc_basename in 11705 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 11706 esac 11707 fi 11708 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 11709 && test "$tmp_diet" = no 11710 then 11711 tmp_addflag=' $pic_flag' 11712 tmp_sharedflag='-shared' 11713 case $cc_basename,$host_cpu in 11714 pgcc*) # Portland Group C compiler 11715 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' 11716 tmp_addflag=' $pic_flag' 11717 ;; 11718 pgf77* | pgf90* | pgf95* | pgfortran*) 11719 # Portland Group f77 and f90 compilers 11720 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' 11721 tmp_addflag=' $pic_flag -Mnomain' ;; 11722 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 11723 tmp_addflag=' -i_dynamic' ;; 11724 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 11725 tmp_addflag=' -i_dynamic -nofor_main' ;; 11726 ifc* | ifort*) # Intel Fortran compiler 11727 tmp_addflag=' -nofor_main' ;; 11728 lf95*) # Lahey Fortran 8.1 11729 whole_archive_flag_spec= 11730 tmp_sharedflag='--shared' ;; 11731 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 11732 tmp_sharedflag='-qmkshrobj' 11733 tmp_addflag= ;; 11734 nvcc*) # Cuda Compiler Driver 2.2 11735 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' 11736 compiler_needs_object=yes 11737 ;; 11738 esac 11739 case `$CC -V 2>&1 | sed 5q` in 11740 *Sun\ C*) # Sun C 5.9 11741 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' 11742 compiler_needs_object=yes 11743 tmp_sharedflag='-G' ;; 11744 *Sun\ F*) # Sun Fortran 8.3 11745 tmp_sharedflag='-G' ;; 11746 esac 11747 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11748 11749 if test "x$supports_anon_versioning" = xyes; then 11750 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11751 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11752 echo "local: *; };" >> $output_objdir/$libname.ver~ 11753 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 11754 fi 11755 11756 case $cc_basename in 11757 xlf* | bgf* | bgxlf* | mpixlf*) 11758 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 11759 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 11760 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11761 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 11762 if test "x$supports_anon_versioning" = xyes; then 11763 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11764 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11765 echo "local: *; };" >> $output_objdir/$libname.ver~ 11766 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 11767 fi 11768 ;; 11769 esac 11770 else 11771 ld_shlibs=no 11772 fi 11773 ;; 11774 11775 netbsd* | netbsdelf*-gnu) 11776 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11777 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 11778 wlarc= 11779 else 11780 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11781 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11782 fi 11783 ;; 11784 11785 solaris*) 11786 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 11787 ld_shlibs=no 11788 cat <<_LT_EOF 1>&2 11789 11790*** Warning: The releases 2.8.* of the GNU linker cannot reliably 11791*** create shared libraries on Solaris systems. Therefore, libtool 11792*** is disabling shared libraries support. We urge you to upgrade GNU 11793*** binutils to release 2.9.1 or newer. Another option is to modify 11794*** your PATH or compiler configuration so that the native linker is 11795*** used, and then restart. 11796 11797_LT_EOF 11798 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11799 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11800 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11801 else 11802 ld_shlibs=no 11803 fi 11804 ;; 11805 11806 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 11807 case `$LD -v 2>&1` in 11808 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 11809 ld_shlibs=no 11810 cat <<_LT_EOF 1>&2 11811 11812*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 11813*** reliably create shared libraries on SCO systems. Therefore, libtool 11814*** is disabling shared libraries support. We urge you to upgrade GNU 11815*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 11816*** your PATH or compiler configuration so that the native linker is 11817*** used, and then restart. 11818 11819_LT_EOF 11820 ;; 11821 *) 11822 # For security reasons, it is highly recommended that you always 11823 # use absolute paths for naming shared libraries, and exclude the 11824 # DT_RUNPATH tag from executables and libraries. But doing so 11825 # requires that you compile everything twice, which is a pain. 11826 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11827 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11828 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11829 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11830 else 11831 ld_shlibs=no 11832 fi 11833 ;; 11834 esac 11835 ;; 11836 11837 sunos4*) 11838 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11839 wlarc= 11840 hardcode_direct=yes 11841 hardcode_shlibpath_var=no 11842 ;; 11843 11844 *) 11845 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11846 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11847 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11848 else 11849 ld_shlibs=no 11850 fi 11851 ;; 11852 esac 11853 11854 if test "$ld_shlibs" = no; then 11855 runpath_var= 11856 hardcode_libdir_flag_spec= 11857 export_dynamic_flag_spec= 11858 whole_archive_flag_spec= 11859 fi 11860 else 11861 # PORTME fill in a description of your system's linker (not GNU ld) 11862 case $host_os in 11863 aix3*) 11864 allow_undefined_flag=unsupported 11865 always_export_symbols=yes 11866 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' 11867 # Note: this linker hardcodes the directories in LIBPATH if there 11868 # are no directories specified by -L. 11869 hardcode_minus_L=yes 11870 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 11871 # Neither direct hardcoding nor static linking is supported with a 11872 # broken collect2. 11873 hardcode_direct=unsupported 11874 fi 11875 ;; 11876 11877 aix[4-9]*) 11878 if test "$host_cpu" = ia64; then 11879 # On IA64, the linker does run time linking by default, so we don't 11880 # have to do anything special. 11881 aix_use_runtimelinking=no 11882 exp_sym_flag='-Bexport' 11883 no_entry_flag="" 11884 else 11885 # If we're using GNU nm, then we don't want the "-C" option. 11886 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11887 # Also, AIX nm treats weak defined symbols like other global 11888 # defined symbols, whereas GNU nm marks them as "W". 11889 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 11890 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 11891 else 11892 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 11893 fi 11894 aix_use_runtimelinking=no 11895 11896 # Test if we are trying to use run time linking or normal 11897 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11898 # need to do runtime linking. 11899 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11900 for ld_flag in $LDFLAGS; do 11901 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 11902 aix_use_runtimelinking=yes 11903 break 11904 fi 11905 done 11906 ;; 11907 esac 11908 11909 exp_sym_flag='-bexport' 11910 no_entry_flag='-bnoentry' 11911 fi 11912 11913 # When large executables or shared objects are built, AIX ld can 11914 # have problems creating the table of contents. If linking a library 11915 # or program results in "error TOC overflow" add -mminimal-toc to 11916 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11917 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11918 11919 archive_cmds='' 11920 hardcode_direct=yes 11921 hardcode_direct_absolute=yes 11922 hardcode_libdir_separator=':' 11923 link_all_deplibs=yes 11924 file_list_spec='${wl}-f,' 11925 11926 if test "$GCC" = yes; then 11927 case $host_os in aix4.[012]|aix4.[012].*) 11928 # We only want to do this on AIX 4.2 and lower, the check 11929 # below for broken collect2 doesn't work under 4.3+ 11930 collect2name=`${CC} -print-prog-name=collect2` 11931 if test -f "$collect2name" && 11932 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11933 then 11934 # We have reworked collect2 11935 : 11936 else 11937 # We have old collect2 11938 hardcode_direct=unsupported 11939 # It fails to find uninstalled libraries when the uninstalled 11940 # path is not listed in the libpath. Setting hardcode_minus_L 11941 # to unsupported forces relinking 11942 hardcode_minus_L=yes 11943 hardcode_libdir_flag_spec='-L$libdir' 11944 hardcode_libdir_separator= 11945 fi 11946 ;; 11947 esac 11948 shared_flag='-shared' 11949 if test "$aix_use_runtimelinking" = yes; then 11950 shared_flag="$shared_flag "'${wl}-G' 11951 fi 11952 link_all_deplibs=no 11953 else 11954 # not using gcc 11955 if test "$host_cpu" = ia64; then 11956 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11957 # chokes on -Wl,-G. The following line is correct: 11958 shared_flag='-G' 11959 else 11960 if test "$aix_use_runtimelinking" = yes; then 11961 shared_flag='${wl}-G' 11962 else 11963 shared_flag='${wl}-bM:SRE' 11964 fi 11965 fi 11966 fi 11967 11968 export_dynamic_flag_spec='${wl}-bexpall' 11969 # It seems that -bexpall does not export symbols beginning with 11970 # underscore (_), so it is better to generate a list of symbols to export. 11971 always_export_symbols=yes 11972 if test "$aix_use_runtimelinking" = yes; then 11973 # Warning - without using the other runtime loading flags (-brtl), 11974 # -berok will link without error, but may produce a broken library. 11975 allow_undefined_flag='-berok' 11976 # Determine the default libpath from the value encoded in an 11977 # empty executable. 11978 if test "${lt_cv_aix_libpath+set}" = set; then 11979 aix_libpath=$lt_cv_aix_libpath 11980else 11981 if test "${lt_cv_aix_libpath_+set}" = set; then : 11982 $as_echo_n "(cached) " >&6 11983else 11984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11985/* end confdefs.h. */ 11986 11987int main (void) 11988{ 11989 11990 ; 11991 return 0; 11992} 11993_ACEOF 11994if ac_fn_c_try_link "$LINENO"; then : 11995 11996 lt_aix_libpath_sed=' 11997 /Import File Strings/,/^$/ { 11998 /^0/ { 11999 s/^0 *\([^ ]*\) *$/\1/ 12000 p 12001 } 12002 }' 12003 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12004 # Check for a 64-bit object if we didn't find anything. 12005 if test -z "$lt_cv_aix_libpath_"; then 12006 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12007 fi 12008fi 12009rm -f core conftest.err conftest.$ac_objext \ 12010 conftest$ac_exeext conftest.$ac_ext 12011 if test -z "$lt_cv_aix_libpath_"; then 12012 lt_cv_aix_libpath_="/usr/lib:/lib" 12013 fi 12014 12015fi 12016 12017 aix_libpath=$lt_cv_aix_libpath_ 12018fi 12019 12020 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 12021 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 12022 else 12023 if test "$host_cpu" = ia64; then 12024 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 12025 allow_undefined_flag="-z nodefs" 12026 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" 12027 else 12028 # Determine the default libpath from the value encoded in an 12029 # empty executable. 12030 if test "${lt_cv_aix_libpath+set}" = set; then 12031 aix_libpath=$lt_cv_aix_libpath 12032else 12033 if test "${lt_cv_aix_libpath_+set}" = set; then : 12034 $as_echo_n "(cached) " >&6 12035else 12036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12037/* end confdefs.h. */ 12038 12039int main (void) 12040{ 12041 12042 ; 12043 return 0; 12044} 12045_ACEOF 12046if ac_fn_c_try_link "$LINENO"; then : 12047 12048 lt_aix_libpath_sed=' 12049 /Import File Strings/,/^$/ { 12050 /^0/ { 12051 s/^0 *\([^ ]*\) *$/\1/ 12052 p 12053 } 12054 }' 12055 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12056 # Check for a 64-bit object if we didn't find anything. 12057 if test -z "$lt_cv_aix_libpath_"; then 12058 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12059 fi 12060fi 12061rm -f core conftest.err conftest.$ac_objext \ 12062 conftest$ac_exeext conftest.$ac_ext 12063 if test -z "$lt_cv_aix_libpath_"; then 12064 lt_cv_aix_libpath_="/usr/lib:/lib" 12065 fi 12066 12067fi 12068 12069 aix_libpath=$lt_cv_aix_libpath_ 12070fi 12071 12072 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 12073 # Warning - without using the other run time loading flags, 12074 # -berok will link without error, but may produce a broken library. 12075 no_undefined_flag=' ${wl}-bernotok' 12076 allow_undefined_flag=' ${wl}-berok' 12077 if test "$with_gnu_ld" = yes; then 12078 # We only use this code for GNU lds that support --whole-archive. 12079 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12080 else 12081 # Exported symbols can be pulled into shared objects from archives 12082 whole_archive_flag_spec='$convenience' 12083 fi 12084 archive_cmds_need_lc=yes 12085 # This is similar to how AIX traditionally builds its shared libraries. 12086 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 12087 fi 12088 fi 12089 ;; 12090 12091 amigaos*) 12092 case $host_cpu in 12093 powerpc) 12094 # see comment about AmigaOS4 .so support 12095 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12096 archive_expsym_cmds='' 12097 ;; 12098 m68k) 12099 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)' 12100 hardcode_libdir_flag_spec='-L$libdir' 12101 hardcode_minus_L=yes 12102 ;; 12103 esac 12104 ;; 12105 12106 bsdi[45]*) 12107 export_dynamic_flag_spec=-rdynamic 12108 ;; 12109 12110 cygwin* | mingw* | pw32* | cegcc*) 12111 # When not using gcc, we currently assume that we are using 12112 # Microsoft Visual C++. 12113 # hardcode_libdir_flag_spec is actually meaningless, as there is 12114 # no search path for DLLs. 12115 case $cc_basename in 12116 cl*) 12117 # Native MSVC 12118 hardcode_libdir_flag_spec=' ' 12119 allow_undefined_flag=unsupported 12120 always_export_symbols=yes 12121 file_list_spec='@' 12122 # Tell ltmain to make .lib files, not .a files. 12123 libext=lib 12124 # Tell ltmain to make .dll files, not .so files. 12125 shrext_cmds=".dll" 12126 # FIXME: Setting linknames here is a bad hack. 12127 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 12128 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12129 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 12130 else 12131 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 12132 fi~ 12133 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 12134 linknames=' 12135 # The linker will not automatically build a static lib if we build a DLL. 12136 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 12137 enable_shared_with_static_runtimes=yes 12138 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 12139 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 12140 # Don't use ranlib 12141 old_postinstall_cmds='chmod 644 $oldlib' 12142 postlink_cmds='lt_outputfile="@OUTPUT@"~ 12143 lt_tool_outputfile="@TOOL_OUTPUT@"~ 12144 case $lt_outputfile in 12145 *.exe|*.EXE) ;; 12146 *) 12147 lt_outputfile="$lt_outputfile.exe" 12148 lt_tool_outputfile="$lt_tool_outputfile.exe" 12149 ;; 12150 esac~ 12151 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 12152 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 12153 $RM "$lt_outputfile.manifest"; 12154 fi' 12155 ;; 12156 *) 12157 # Assume MSVC wrapper 12158 hardcode_libdir_flag_spec=' ' 12159 allow_undefined_flag=unsupported 12160 # Tell ltmain to make .lib files, not .a files. 12161 libext=lib 12162 # Tell ltmain to make .dll files, not .so files. 12163 shrext_cmds=".dll" 12164 # FIXME: Setting linknames here is a bad hack. 12165 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 12166 # The linker will automatically build a .lib file if we build a DLL. 12167 old_archive_from_new_cmds='true' 12168 # FIXME: Should let the user specify the lib program. 12169 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 12170 enable_shared_with_static_runtimes=yes 12171 ;; 12172 esac 12173 ;; 12174 12175 darwin* | rhapsody*) 12176 12177 12178 archive_cmds_need_lc=no 12179 hardcode_direct=no 12180 hardcode_automatic=yes 12181 hardcode_shlibpath_var=unsupported 12182 if test "$lt_cv_ld_force_load" = "yes"; then 12183 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\"`' 12184 12185 else 12186 whole_archive_flag_spec='' 12187 fi 12188 link_all_deplibs=yes 12189 allow_undefined_flag="$_lt_dar_allow_undefined" 12190 case $cc_basename in 12191 ifort*) _lt_dar_can_shared=yes ;; 12192 *) _lt_dar_can_shared=$GCC ;; 12193 esac 12194 if test "$_lt_dar_can_shared" = "yes"; then 12195 output_verbose_link_cmd=func_echo_all 12196 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 12197 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 12198 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}" 12199 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}" 12200 12201 else 12202 ld_shlibs=no 12203 fi 12204 12205 ;; 12206 12207 dgux*) 12208 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12209 hardcode_libdir_flag_spec='-L$libdir' 12210 hardcode_shlibpath_var=no 12211 ;; 12212 12213 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 12214 # support. Future versions do this automatically, but an explicit c++rt0.o 12215 # does not break anything, and helps significantly (at the cost of a little 12216 # extra space). 12217 freebsd2.2*) 12218 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 12219 hardcode_libdir_flag_spec='-R$libdir' 12220 hardcode_direct=yes 12221 hardcode_shlibpath_var=no 12222 ;; 12223 12224 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 12225 freebsd2.*) 12226 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12227 hardcode_direct=yes 12228 hardcode_minus_L=yes 12229 hardcode_shlibpath_var=no 12230 ;; 12231 12232 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 12233 freebsd* | dragonfly*) 12234 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12235 hardcode_libdir_flag_spec='-R$libdir' 12236 hardcode_direct=yes 12237 hardcode_shlibpath_var=no 12238 ;; 12239 12240 hpux9*) 12241 if test "$GCC" = yes; then 12242 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 12243 else 12244 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 12245 fi 12246 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 12247 hardcode_libdir_separator=: 12248 hardcode_direct=yes 12249 12250 # hardcode_minus_L: Not really in the search PATH, 12251 # but as the default location of the library. 12252 hardcode_minus_L=yes 12253 export_dynamic_flag_spec='${wl}-E' 12254 ;; 12255 12256 hpux10*) 12257 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 12258 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12259 else 12260 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12261 fi 12262 if test "$with_gnu_ld" = no; then 12263 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 12264 hardcode_libdir_separator=: 12265 hardcode_direct=yes 12266 hardcode_direct_absolute=yes 12267 export_dynamic_flag_spec='${wl}-E' 12268 # hardcode_minus_L: Not really in the search PATH, 12269 # but as the default location of the library. 12270 hardcode_minus_L=yes 12271 fi 12272 ;; 12273 12274 hpux11*) 12275 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 12276 case $host_cpu in 12277 hppa*64*) 12278 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 12279 ;; 12280 ia64*) 12281 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12282 ;; 12283 *) 12284 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12285 ;; 12286 esac 12287 else 12288 case $host_cpu in 12289 hppa*64*) 12290 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 12291 ;; 12292 ia64*) 12293 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12294 ;; 12295 *) 12296 12297 # Older versions of the 11.00 compiler do not understand -b yet 12298 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 12299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 12300$as_echo_n "checking if $CC understands -b... " >&6; } 12301if test "${lt_cv_prog_compiler__b+set}" = set; then : 12302 $as_echo_n "(cached) " >&6 12303else 12304 lt_cv_prog_compiler__b=no 12305 save_LDFLAGS="$LDFLAGS" 12306 LDFLAGS="$LDFLAGS -b" 12307 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12308 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12309 # The linker can only warn and ignore the option if not recognized 12310 # So say no if there are warnings 12311 if test -s conftest.err; then 12312 # Append any errors to the config.log. 12313 cat conftest.err 1>&5 12314 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12315 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12316 if diff conftest.exp conftest.er2 >/dev/null; then 12317 lt_cv_prog_compiler__b=yes 12318 fi 12319 else 12320 lt_cv_prog_compiler__b=yes 12321 fi 12322 fi 12323 $RM -r conftest* 12324 LDFLAGS="$save_LDFLAGS" 12325 12326fi 12327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 12328$as_echo "$lt_cv_prog_compiler__b" >&6; } 12329 12330if test x"$lt_cv_prog_compiler__b" = xyes; then 12331 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12332else 12333 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12334fi 12335 12336 ;; 12337 esac 12338 fi 12339 if test "$with_gnu_ld" = no; then 12340 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 12341 hardcode_libdir_separator=: 12342 12343 case $host_cpu in 12344 hppa*64*|ia64*) 12345 hardcode_direct=no 12346 hardcode_shlibpath_var=no 12347 ;; 12348 *) 12349 hardcode_direct=yes 12350 hardcode_direct_absolute=yes 12351 export_dynamic_flag_spec='${wl}-E' 12352 12353 # hardcode_minus_L: Not really in the search PATH, 12354 # but as the default location of the library. 12355 hardcode_minus_L=yes 12356 ;; 12357 esac 12358 fi 12359 ;; 12360 12361 irix5* | irix6* | nonstopux*) 12362 if test "$GCC" = yes; then 12363 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' 12364 # Try to use the -exported_symbol ld option, if it does not 12365 # work, assume that -exports_file does not work either and 12366 # implicitly export all symbols. 12367 # This should be the same for all languages, so no per-tag cache variable. 12368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 12369$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 12370if test "${lt_cv_irix_exported_symbol+set}" = set; then : 12371 $as_echo_n "(cached) " >&6 12372else 12373 save_LDFLAGS="$LDFLAGS" 12374 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 12375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12376/* end confdefs.h. */ 12377int foo (void) { return 0; } 12378_ACEOF 12379if ac_fn_c_try_link "$LINENO"; then : 12380 lt_cv_irix_exported_symbol=yes 12381else 12382 lt_cv_irix_exported_symbol=no 12383fi 12384rm -f core conftest.err conftest.$ac_objext \ 12385 conftest$ac_exeext conftest.$ac_ext 12386 LDFLAGS="$save_LDFLAGS" 12387fi 12388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 12389$as_echo "$lt_cv_irix_exported_symbol" >&6; } 12390 if test "$lt_cv_irix_exported_symbol" = yes; then 12391 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' 12392 fi 12393 else 12394 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' 12395 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' 12396 fi 12397 archive_cmds_need_lc='no' 12398 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12399 hardcode_libdir_separator=: 12400 inherit_rpath=yes 12401 link_all_deplibs=yes 12402 ;; 12403 12404 netbsd* | netbsdelf*-gnu) 12405 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12406 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 12407 else 12408 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 12409 fi 12410 hardcode_libdir_flag_spec='-R$libdir' 12411 hardcode_direct=yes 12412 hardcode_shlibpath_var=no 12413 ;; 12414 12415 newsos6) 12416 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12417 hardcode_direct=yes 12418 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12419 hardcode_libdir_separator=: 12420 hardcode_shlibpath_var=no 12421 ;; 12422 12423 *nto* | *qnx*) 12424 ;; 12425 12426 openbsd*) 12427 if test -f /usr/libexec/ld.so; then 12428 hardcode_direct=yes 12429 hardcode_shlibpath_var=no 12430 hardcode_direct_absolute=yes 12431 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12432 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12433 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 12434 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 12435 export_dynamic_flag_spec='${wl}-E' 12436 else 12437 case $host_os in 12438 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 12439 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12440 hardcode_libdir_flag_spec='-R$libdir' 12441 ;; 12442 *) 12443 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12444 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 12445 ;; 12446 esac 12447 fi 12448 else 12449 ld_shlibs=no 12450 fi 12451 ;; 12452 12453 os2*) 12454 hardcode_libdir_flag_spec='-L$libdir' 12455 hardcode_minus_L=yes 12456 allow_undefined_flag=unsupported 12457 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 12458 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 12459 ;; 12460 12461 osf3*) 12462 if test "$GCC" = yes; then 12463 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 12464 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' 12465 else 12466 allow_undefined_flag=' -expect_unresolved \*' 12467 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' 12468 fi 12469 archive_cmds_need_lc='no' 12470 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12471 hardcode_libdir_separator=: 12472 ;; 12473 12474 osf4* | osf5*) # as osf3* with the addition of -msym flag 12475 if test "$GCC" = yes; then 12476 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 12477 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' 12478 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12479 else 12480 allow_undefined_flag=' -expect_unresolved \*' 12481 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' 12482 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~ 12483 $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' 12484 12485 # Both c and cxx compiler support -rpath directly 12486 hardcode_libdir_flag_spec='-rpath $libdir' 12487 fi 12488 archive_cmds_need_lc='no' 12489 hardcode_libdir_separator=: 12490 ;; 12491 12492 solaris*) 12493 no_undefined_flag=' -z defs' 12494 if test "$GCC" = yes; then 12495 wlarc='${wl}' 12496 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 12497 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12498 $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' 12499 else 12500 case `$CC -V 2>&1` in 12501 *"Compilers 5.0"*) 12502 wlarc='' 12503 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 12504 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12505 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 12506 ;; 12507 *) 12508 wlarc='${wl}' 12509 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 12510 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12511 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 12512 ;; 12513 esac 12514 fi 12515 hardcode_libdir_flag_spec='-R$libdir' 12516 hardcode_shlibpath_var=no 12517 case $host_os in 12518 solaris2.[0-5] | solaris2.[0-5].*) ;; 12519 *) 12520 # The compiler driver will combine and reorder linker options, 12521 # but understands `-z linker_flag'. GCC discards it without `$wl', 12522 # but is careful enough not to reorder. 12523 # Supported since Solaris 2.6 (maybe 2.5.1?) 12524 if test "$GCC" = yes; then 12525 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12526 else 12527 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 12528 fi 12529 ;; 12530 esac 12531 link_all_deplibs=yes 12532 ;; 12533 12534 sunos4*) 12535 if test "x$host_vendor" = xsequent; then 12536 # Use $CC to link under sequent, because it throws in some extra .o 12537 # files that make .init and .fini sections work. 12538 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 12539 else 12540 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 12541 fi 12542 hardcode_libdir_flag_spec='-L$libdir' 12543 hardcode_direct=yes 12544 hardcode_minus_L=yes 12545 hardcode_shlibpath_var=no 12546 ;; 12547 12548 sysv4) 12549 case $host_vendor in 12550 sni) 12551 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12552 hardcode_direct=yes # is this really true??? 12553 ;; 12554 siemens) 12555 ## LD is ld it makes a PLAMLIB 12556 ## CC just makes a GrossModule. 12557 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 12558 reload_cmds='$CC -r -o $output$reload_objs' 12559 hardcode_direct=no 12560 ;; 12561 motorola) 12562 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12563 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 12564 ;; 12565 esac 12566 runpath_var='LD_RUN_PATH' 12567 hardcode_shlibpath_var=no 12568 ;; 12569 12570 sysv4.3*) 12571 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12572 hardcode_shlibpath_var=no 12573 export_dynamic_flag_spec='-Bexport' 12574 ;; 12575 12576 sysv4*MP*) 12577 if test -d /usr/nec; then 12578 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12579 hardcode_shlibpath_var=no 12580 runpath_var=LD_RUN_PATH 12581 hardcode_runpath_var=yes 12582 ld_shlibs=yes 12583 fi 12584 ;; 12585 12586 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12587 no_undefined_flag='${wl}-z,text' 12588 archive_cmds_need_lc=no 12589 hardcode_shlibpath_var=no 12590 runpath_var='LD_RUN_PATH' 12591 12592 if test "$GCC" = yes; then 12593 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12594 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12595 else 12596 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12597 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12598 fi 12599 ;; 12600 12601 sysv5* | sco3.2v5* | sco5v6*) 12602 # Note: We can NOT use -z defs as we might desire, because we do not 12603 # link with -lc, and that would cause any symbols used from libc to 12604 # always be unresolved, which means just about no library would 12605 # ever link correctly. If we're not using GNU ld we use -z text 12606 # though, which does catch some bad symbols but isn't as heavy-handed 12607 # as -z defs. 12608 no_undefined_flag='${wl}-z,text' 12609 allow_undefined_flag='${wl}-z,nodefs' 12610 archive_cmds_need_lc=no 12611 hardcode_shlibpath_var=no 12612 hardcode_libdir_flag_spec='${wl}-R,$libdir' 12613 hardcode_libdir_separator=':' 12614 link_all_deplibs=yes 12615 export_dynamic_flag_spec='${wl}-Bexport' 12616 runpath_var='LD_RUN_PATH' 12617 12618 if test "$GCC" = yes; then 12619 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12620 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12621 else 12622 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12623 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12624 fi 12625 ;; 12626 12627 uts4*) 12628 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12629 hardcode_libdir_flag_spec='-L$libdir' 12630 hardcode_shlibpath_var=no 12631 ;; 12632 12633 *) 12634 ld_shlibs=no 12635 ;; 12636 esac 12637 12638 if test x$host_vendor = xsni; then 12639 case $host in 12640 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12641 export_dynamic_flag_spec='${wl}-Blargedynsym' 12642 ;; 12643 esac 12644 fi 12645 fi 12646 12647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 12648$as_echo "$ld_shlibs" >&6; } 12649test "$ld_shlibs" = no && can_build_shared=no 12650 12651with_gnu_ld=$with_gnu_ld 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667# 12668# Do we need to explicitly link libc? 12669# 12670case "x$archive_cmds_need_lc" in 12671x|xyes) 12672 # Assume -lc should be added 12673 archive_cmds_need_lc=yes 12674 12675 if test "$enable_shared" = yes && test "$GCC" = yes; then 12676 case $archive_cmds in 12677 *'~'*) 12678 # FIXME: we may have to deal with multi-command sequences. 12679 ;; 12680 '$CC '*) 12681 # Test whether the compiler implicitly links with -lc since on some 12682 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12683 # to ld, don't add -lc before -lgcc. 12684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 12685$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 12686if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : 12687 $as_echo_n "(cached) " >&6 12688else 12689 $RM conftest* 12690 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12691 12692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12693 (eval $ac_compile) 2>&5 12694 ac_status=$? 12695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12696 test $ac_status = 0; } 2>conftest.err; then 12697 soname=conftest 12698 lib=conftest 12699 libobjs=conftest.$ac_objext 12700 deplibs= 12701 wl=$lt_prog_compiler_wl 12702 pic_flag=$lt_prog_compiler_pic 12703 compiler_flags=-v 12704 linker_flags=-v 12705 verstring= 12706 output_objdir=. 12707 libname=conftest 12708 lt_save_allow_undefined_flag=$allow_undefined_flag 12709 allow_undefined_flag= 12710 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 12711 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 12712 ac_status=$? 12713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12714 test $ac_status = 0; } 12715 then 12716 lt_cv_archive_cmds_need_lc=no 12717 else 12718 lt_cv_archive_cmds_need_lc=yes 12719 fi 12720 allow_undefined_flag=$lt_save_allow_undefined_flag 12721 else 12722 cat conftest.err 1>&5 12723 fi 12724 $RM conftest* 12725 12726fi 12727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 12728$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 12729 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 12730 ;; 12731 esac 12732 fi 12733 ;; 12734esac 12735 12736 12737 12738 12739 12740 12741 12742 12743 12744 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864 12865 12866 12867 12868 12869 12870 12871 12872 12873 12874 12875 12876 12877 12878 12879 12880 12881 12882 12883 12884 12885 12886 12887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12888$as_echo_n "checking dynamic linker characteristics... " >&6; } 12889 12890if test "$GCC" = yes; then 12891 case $host_os in 12892 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 12893 *) lt_awk_arg="/^libraries:/" ;; 12894 esac 12895 case $host_os in 12896 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 12897 *) lt_sed_strip_eq="s,=/,/,g" ;; 12898 esac 12899 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 12900 case $lt_search_path_spec in 12901 *\;*) 12902 # if the path contains ";" then we assume it to be the separator 12903 # otherwise default to the standard path separator (i.e. ":") - it is 12904 # assumed that no part of a normal pathname contains ";" but that should 12905 # okay in the real world where ";" in dirpaths is itself problematic. 12906 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 12907 ;; 12908 *) 12909 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 12910 ;; 12911 esac 12912 # Ok, now we have the path, separated by spaces, we can step through it 12913 # and add multilib dir if necessary. 12914 lt_tmp_lt_search_path_spec= 12915 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 12916 for lt_sys_path in $lt_search_path_spec; do 12917 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 12918 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 12919 else 12920 test -d "$lt_sys_path" && \ 12921 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12922 fi 12923 done 12924 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12925BEGIN {RS=" "; FS="/|\n";} { 12926 lt_foo=""; 12927 lt_count=0; 12928 for (lt_i = NF; lt_i > 0; lt_i--) { 12929 if ($lt_i != "" && $lt_i != ".") { 12930 if ($lt_i == "..") { 12931 lt_count++; 12932 } else { 12933 if (lt_count == 0) { 12934 lt_foo="/" $lt_i lt_foo; 12935 } else { 12936 lt_count--; 12937 } 12938 } 12939 } 12940 } 12941 if (lt_foo != "") { lt_freq[lt_foo]++; } 12942 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12943}'` 12944 # AWK program above erroneously prepends '/' to C:/dos/paths 12945 # for these hosts. 12946 case $host_os in 12947 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12948 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 12949 esac 12950 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 12951else 12952 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12953fi 12954library_names_spec= 12955libname_spec='lib$name' 12956soname_spec= 12957shrext_cmds=".so" 12958postinstall_cmds= 12959postuninstall_cmds= 12960finish_cmds= 12961finish_eval= 12962shlibpath_var= 12963shlibpath_overrides_runpath=unknown 12964version_type=none 12965dynamic_linker="$host_os ld.so" 12966sys_lib_dlsearch_path_spec="/lib /usr/lib" 12967need_lib_prefix=unknown 12968hardcode_into_libs=no 12969 12970# when you set need_version to no, make sure it does not cause -set_version 12971# flags to be left without arguments 12972need_version=unknown 12973 12974case $host_os in 12975aix3*) 12976 version_type=linux # correct to gnu/linux during the next big refactor 12977 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12978 shlibpath_var=LIBPATH 12979 12980 # AIX 3 has no versioning support, so we append a major version to the name. 12981 soname_spec='${libname}${release}${shared_ext}$major' 12982 ;; 12983 12984aix[4-9]*) 12985 version_type=linux # correct to gnu/linux during the next big refactor 12986 need_lib_prefix=no 12987 need_version=no 12988 hardcode_into_libs=yes 12989 if test "$host_cpu" = ia64; then 12990 # AIX 5 supports IA64 12991 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12992 shlibpath_var=LD_LIBRARY_PATH 12993 else 12994 # With GCC up to 2.95.x, collect2 would create an import file 12995 # for dependence libraries. The import file would start with 12996 # the line `#! .'. This would cause the generated library to 12997 # depend on `.', always an invalid library. This was fixed in 12998 # development snapshots of GCC prior to 3.0. 12999 case $host_os in 13000 aix4 | aix4.[01] | aix4.[01].*) 13001 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13002 echo ' yes ' 13003 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 13004 : 13005 else 13006 can_build_shared=no 13007 fi 13008 ;; 13009 esac 13010 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13011 # soname into executable. Probably we can add versioning support to 13012 # collect2, so additional links can be useful in future. 13013 if test "$aix_use_runtimelinking" = yes; then 13014 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13015 # instead of lib<name>.a to let people know that these are not 13016 # typical AIX shared libraries. 13017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13018 else 13019 # We preserve .a as extension for shared libraries through AIX4.2 13020 # and later when we are not doing run time linking. 13021 library_names_spec='${libname}${release}.a $libname.a' 13022 soname_spec='${libname}${release}${shared_ext}$major' 13023 fi 13024 shlibpath_var=LIBPATH 13025 fi 13026 ;; 13027 13028amigaos*) 13029 case $host_cpu in 13030 powerpc) 13031 # Since July 2007 AmigaOS4 officially supports .so libraries. 13032 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 13033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13034 ;; 13035 m68k) 13036 library_names_spec='$libname.ixlibrary $libname.a' 13037 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13038 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 13039 ;; 13040 esac 13041 ;; 13042 13043beos*) 13044 library_names_spec='${libname}${shared_ext}' 13045 dynamic_linker="$host_os ld.so" 13046 shlibpath_var=LIBRARY_PATH 13047 ;; 13048 13049bsdi[45]*) 13050 version_type=linux # correct to gnu/linux during the next big refactor 13051 need_version=no 13052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13053 soname_spec='${libname}${release}${shared_ext}$major' 13054 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13055 shlibpath_var=LD_LIBRARY_PATH 13056 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13057 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13058 # the default ld.so.conf also contains /usr/contrib/lib and 13059 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13060 # libtool to hard-code these into programs 13061 ;; 13062 13063cygwin* | mingw* | pw32* | cegcc*) 13064 version_type=windows 13065 shrext_cmds=".dll" 13066 need_version=no 13067 need_lib_prefix=no 13068 13069 case $GCC,$cc_basename in 13070 yes,*) 13071 # gcc 13072 library_names_spec='$libname.dll.a' 13073 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13074 postinstall_cmds='base_file=`basename \${file}`~ 13075 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 13076 dldir=$destdir/`dirname \$dlpath`~ 13077 test -d \$dldir || mkdir -p \$dldir~ 13078 $install_prog $dir/$dlname \$dldir/$dlname~ 13079 chmod a+x \$dldir/$dlname~ 13080 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13081 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13082 fi' 13083 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13084 dlpath=$dir/\$dldll~ 13085 $RM \$dlpath' 13086 shlibpath_overrides_runpath=yes 13087 13088 case $host_os in 13089 cygwin*) 13090 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13091 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13092 13093 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 13094 ;; 13095 mingw* | cegcc*) 13096 # MinGW DLLs use traditional 'lib' prefix 13097 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13098 ;; 13099 pw32*) 13100 # pw32 DLLs use 'pw' prefix rather than 'lib' 13101 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13102 ;; 13103 esac 13104 dynamic_linker='Win32 ld.exe' 13105 ;; 13106 13107 *,cl*) 13108 # Native MSVC 13109 libname_spec='$name' 13110 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13111 library_names_spec='${libname}.dll.lib' 13112 13113 case $build_os in 13114 mingw*) 13115 sys_lib_search_path_spec= 13116 lt_save_ifs=$IFS 13117 IFS=';' 13118 for lt_path in $LIB 13119 do 13120 IFS=$lt_save_ifs 13121 # Let DOS variable expansion print the short 8.3 style file name. 13122 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 13123 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 13124 done 13125 IFS=$lt_save_ifs 13126 # Convert to MSYS style. 13127 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 13128 ;; 13129 cygwin*) 13130 # Convert to unix form, then to dos form, then back to unix form 13131 # but this time dos style (no spaces!) so that the unix form looks 13132 # like /cygdrive/c/PROGRA~1:/cygdr... 13133 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 13134 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 13135 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13136 ;; 13137 *) 13138 sys_lib_search_path_spec="$LIB" 13139 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 13140 # It is most probably a Windows format PATH. 13141 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13142 else 13143 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13144 fi 13145 # FIXME: find the short name or the path components, as spaces are 13146 # common. (e.g. "Program Files" -> "PROGRA~1") 13147 ;; 13148 esac 13149 13150 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13151 postinstall_cmds='base_file=`basename \${file}`~ 13152 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 13153 dldir=$destdir/`dirname \$dlpath`~ 13154 test -d \$dldir || mkdir -p \$dldir~ 13155 $install_prog $dir/$dlname \$dldir/$dlname' 13156 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13157 dlpath=$dir/\$dldll~ 13158 $RM \$dlpath' 13159 shlibpath_overrides_runpath=yes 13160 dynamic_linker='Win32 link.exe' 13161 ;; 13162 13163 *) 13164 # Assume MSVC wrapper 13165 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13166 dynamic_linker='Win32 ld.exe' 13167 ;; 13168 esac 13169 # FIXME: first we should search . and the directory the executable is in 13170 shlibpath_var=PATH 13171 ;; 13172 13173darwin* | rhapsody*) 13174 dynamic_linker="$host_os dyld" 13175 version_type=darwin 13176 need_lib_prefix=no 13177 need_version=no 13178 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13179 soname_spec='${libname}${release}${major}$shared_ext' 13180 shlibpath_overrides_runpath=yes 13181 shlibpath_var=DYLD_LIBRARY_PATH 13182 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13183 13184 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 13185 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13186 ;; 13187 13188dgux*) 13189 version_type=linux # correct to gnu/linux during the next big refactor 13190 need_lib_prefix=no 13191 need_version=no 13192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13193 soname_spec='${libname}${release}${shared_ext}$major' 13194 shlibpath_var=LD_LIBRARY_PATH 13195 ;; 13196 13197freebsd* | dragonfly*) 13198 # DragonFly does not have aout. When/if they implement a new 13199 # versioning mechanism, adjust this. 13200 if test -x /usr/bin/objformat; then 13201 objformat=`/usr/bin/objformat` 13202 else 13203 case $host_os in 13204 freebsd[23].*) objformat=aout ;; 13205 *) objformat=elf ;; 13206 esac 13207 fi 13208 version_type=freebsd-$objformat 13209 case $version_type in 13210 freebsd-elf*) 13211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13212 need_version=no 13213 need_lib_prefix=no 13214 ;; 13215 freebsd-*) 13216 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13217 need_version=yes 13218 ;; 13219 esac 13220 shlibpath_var=LD_LIBRARY_PATH 13221 case $host_os in 13222 freebsd2.*) 13223 shlibpath_overrides_runpath=yes 13224 ;; 13225 freebsd3.[01]* | freebsdelf3.[01]*) 13226 shlibpath_overrides_runpath=yes 13227 hardcode_into_libs=yes 13228 ;; 13229 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13230 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13231 shlibpath_overrides_runpath=no 13232 hardcode_into_libs=yes 13233 ;; 13234 *) # from 4.6 on, and DragonFly 13235 shlibpath_overrides_runpath=yes 13236 hardcode_into_libs=yes 13237 ;; 13238 esac 13239 ;; 13240 13241gnu*) 13242 version_type=linux # correct to gnu/linux during the next big refactor 13243 need_lib_prefix=no 13244 need_version=no 13245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13246 soname_spec='${libname}${release}${shared_ext}$major' 13247 shlibpath_var=LD_LIBRARY_PATH 13248 shlibpath_overrides_runpath=no 13249 hardcode_into_libs=yes 13250 ;; 13251 13252haiku*) 13253 version_type=linux # correct to gnu/linux during the next big refactor 13254 need_lib_prefix=no 13255 need_version=no 13256 dynamic_linker="$host_os runtime_loader" 13257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13258 soname_spec='${libname}${release}${shared_ext}$major' 13259 shlibpath_var=LIBRARY_PATH 13260 shlibpath_overrides_runpath=yes 13261 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 13262 hardcode_into_libs=yes 13263 ;; 13264 13265hpux9* | hpux10* | hpux11*) 13266 # Give a soname corresponding to the major version so that dld.sl refuses to 13267 # link against other versions. 13268 version_type=sunos 13269 need_lib_prefix=no 13270 need_version=no 13271 case $host_cpu in 13272 ia64*) 13273 shrext_cmds='.so' 13274 hardcode_into_libs=yes 13275 dynamic_linker="$host_os dld.so" 13276 shlibpath_var=LD_LIBRARY_PATH 13277 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13279 soname_spec='${libname}${release}${shared_ext}$major' 13280 if test "X$HPUX_IA64_MODE" = X32; then 13281 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13282 else 13283 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13284 fi 13285 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13286 ;; 13287 hppa*64*) 13288 shrext_cmds='.sl' 13289 hardcode_into_libs=yes 13290 dynamic_linker="$host_os dld.sl" 13291 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13292 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13294 soname_spec='${libname}${release}${shared_ext}$major' 13295 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13296 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13297 ;; 13298 *) 13299 shrext_cmds='.sl' 13300 dynamic_linker="$host_os dld.sl" 13301 shlibpath_var=SHLIB_PATH 13302 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13304 soname_spec='${libname}${release}${shared_ext}$major' 13305 ;; 13306 esac 13307 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 13308 postinstall_cmds='chmod 555 $lib' 13309 # or fails outright, so override atomically: 13310 install_override_mode=555 13311 ;; 13312 13313interix[3-9]*) 13314 version_type=linux # correct to gnu/linux during the next big refactor 13315 need_lib_prefix=no 13316 need_version=no 13317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13318 soname_spec='${libname}${release}${shared_ext}$major' 13319 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13320 shlibpath_var=LD_LIBRARY_PATH 13321 shlibpath_overrides_runpath=no 13322 hardcode_into_libs=yes 13323 ;; 13324 13325irix5* | irix6* | nonstopux*) 13326 case $host_os in 13327 nonstopux*) version_type=nonstopux ;; 13328 *) 13329 if test "$lt_cv_prog_gnu_ld" = yes; then 13330 version_type=linux # correct to gnu/linux during the next big refactor 13331 else 13332 version_type=irix 13333 fi ;; 13334 esac 13335 need_lib_prefix=no 13336 need_version=no 13337 soname_spec='${libname}${release}${shared_ext}$major' 13338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13339 case $host_os in 13340 irix5* | nonstopux*) 13341 libsuff= shlibsuff= 13342 ;; 13343 *) 13344 case $LD in # libtool.m4 will add one of these switches to LD 13345 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13346 libsuff= shlibsuff= libmagic=32-bit;; 13347 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13348 libsuff=32 shlibsuff=N32 libmagic=N32;; 13349 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13350 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13351 *) libsuff= shlibsuff= libmagic=never-match;; 13352 esac 13353 ;; 13354 esac 13355 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13356 shlibpath_overrides_runpath=no 13357 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13358 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13359 hardcode_into_libs=yes 13360 ;; 13361 13362# No shared lib support for Linux oldld, aout, or coff. 13363linux*oldld* | linux*aout* | linux*coff*) 13364 dynamic_linker=no 13365 ;; 13366 13367# This must be glibc/ELF. 13368linux* | k*bsd*-gnu | kopensolaris*-gnu) 13369 version_type=linux # correct to gnu/linux during the next big refactor 13370 need_lib_prefix=no 13371 need_version=no 13372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13373 soname_spec='${libname}${release}${shared_ext}$major' 13374 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13375 shlibpath_var=LD_LIBRARY_PATH 13376 shlibpath_overrides_runpath=no 13377 13378 # Some binutils ld are patched to set DT_RUNPATH 13379 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : 13380 $as_echo_n "(cached) " >&6 13381else 13382 lt_cv_shlibpath_overrides_runpath=no 13383 save_LDFLAGS=$LDFLAGS 13384 save_libdir=$libdir 13385 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 13386 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 13387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13388/* end confdefs.h. */ 13389 13390int main (void) 13391{ 13392 13393 ; 13394 return 0; 13395} 13396_ACEOF 13397if ac_fn_c_try_link "$LINENO"; then : 13398 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 13399 lt_cv_shlibpath_overrides_runpath=yes 13400fi 13401fi 13402rm -f core conftest.err conftest.$ac_objext \ 13403 conftest$ac_exeext conftest.$ac_ext 13404 LDFLAGS=$save_LDFLAGS 13405 libdir=$save_libdir 13406 13407fi 13408 13409 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 13410 13411 # This implies no fast_install, which is unacceptable. 13412 # Some rework will be needed to allow for fast_install 13413 # before this can be enabled. 13414 hardcode_into_libs=yes 13415 13416 # Append ld.so.conf contents to the search path 13417 if test -f /etc/ld.so.conf; then 13418 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' ' '` 13419 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13420 fi 13421 13422 # We used to test for /lib/ld.so.1 and disable shared libraries on 13423 # powerpc, because MkLinux only supported shared libraries with the 13424 # GNU dynamic linker. Since this was broken with cross compilers, 13425 # most powerpc-linux boxes support dynamic linking these days and 13426 # people can always --disable-shared, the test was removed, and we 13427 # assume the GNU/Linux dynamic linker is in use. 13428 dynamic_linker='GNU/Linux ld.so' 13429 ;; 13430 13431netbsdelf*-gnu) 13432 version_type=linux 13433 need_lib_prefix=no 13434 need_version=no 13435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13436 soname_spec='${libname}${release}${shared_ext}$major' 13437 shlibpath_var=LD_LIBRARY_PATH 13438 shlibpath_overrides_runpath=no 13439 hardcode_into_libs=yes 13440 dynamic_linker='NetBSD ld.elf_so' 13441 ;; 13442 13443netbsd*) 13444 version_type=sunos 13445 need_lib_prefix=no 13446 need_version=no 13447 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13449 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13450 dynamic_linker='NetBSD (a.out) ld.so' 13451 else 13452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13453 soname_spec='${libname}${release}${shared_ext}$major' 13454 dynamic_linker='NetBSD ld.elf_so' 13455 fi 13456 shlibpath_var=LD_LIBRARY_PATH 13457 shlibpath_overrides_runpath=yes 13458 hardcode_into_libs=yes 13459 ;; 13460 13461newsos6) 13462 version_type=linux # correct to gnu/linux during the next big refactor 13463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13464 shlibpath_var=LD_LIBRARY_PATH 13465 shlibpath_overrides_runpath=yes 13466 ;; 13467 13468*nto* | *qnx*) 13469 version_type=qnx 13470 need_lib_prefix=no 13471 need_version=no 13472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13473 soname_spec='${libname}${release}${shared_ext}$major' 13474 shlibpath_var=LD_LIBRARY_PATH 13475 shlibpath_overrides_runpath=no 13476 hardcode_into_libs=yes 13477 dynamic_linker='ldqnx.so' 13478 ;; 13479 13480openbsd*) 13481 version_type=sunos 13482 sys_lib_dlsearch_path_spec="/usr/lib" 13483 need_lib_prefix=no 13484 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13485 case $host_os in 13486 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13487 *) need_version=no ;; 13488 esac 13489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13490 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13491 shlibpath_var=LD_LIBRARY_PATH 13492 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13493 case $host_os in 13494 openbsd2.[89] | openbsd2.[89].*) 13495 shlibpath_overrides_runpath=no 13496 ;; 13497 *) 13498 shlibpath_overrides_runpath=yes 13499 ;; 13500 esac 13501 else 13502 shlibpath_overrides_runpath=yes 13503 fi 13504 ;; 13505 13506os2*) 13507 libname_spec='$name' 13508 shrext_cmds=".dll" 13509 need_lib_prefix=no 13510 library_names_spec='$libname${shared_ext} $libname.a' 13511 dynamic_linker='OS/2 ld.exe' 13512 shlibpath_var=LIBPATH 13513 ;; 13514 13515osf3* | osf4* | osf5*) 13516 version_type=osf 13517 need_lib_prefix=no 13518 need_version=no 13519 soname_spec='${libname}${release}${shared_ext}$major' 13520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13521 shlibpath_var=LD_LIBRARY_PATH 13522 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13523 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13524 ;; 13525 13526rdos*) 13527 dynamic_linker=no 13528 ;; 13529 13530solaris*) 13531 version_type=linux # correct to gnu/linux during the next big refactor 13532 need_lib_prefix=no 13533 need_version=no 13534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13535 soname_spec='${libname}${release}${shared_ext}$major' 13536 shlibpath_var=LD_LIBRARY_PATH 13537 shlibpath_overrides_runpath=yes 13538 hardcode_into_libs=yes 13539 # ldd complains unless libraries are executable 13540 postinstall_cmds='chmod +x $lib' 13541 ;; 13542 13543sunos4*) 13544 version_type=sunos 13545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13546 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13547 shlibpath_var=LD_LIBRARY_PATH 13548 shlibpath_overrides_runpath=yes 13549 if test "$with_gnu_ld" = yes; then 13550 need_lib_prefix=no 13551 fi 13552 need_version=yes 13553 ;; 13554 13555sysv4 | sysv4.3*) 13556 version_type=linux # correct to gnu/linux during the next big refactor 13557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13558 soname_spec='${libname}${release}${shared_ext}$major' 13559 shlibpath_var=LD_LIBRARY_PATH 13560 case $host_vendor in 13561 sni) 13562 shlibpath_overrides_runpath=no 13563 need_lib_prefix=no 13564 runpath_var=LD_RUN_PATH 13565 ;; 13566 siemens) 13567 need_lib_prefix=no 13568 ;; 13569 motorola) 13570 need_lib_prefix=no 13571 need_version=no 13572 shlibpath_overrides_runpath=no 13573 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13574 ;; 13575 esac 13576 ;; 13577 13578sysv4*MP*) 13579 if test -d /usr/nec ;then 13580 version_type=linux # correct to gnu/linux during the next big refactor 13581 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13582 soname_spec='$libname${shared_ext}.$major' 13583 shlibpath_var=LD_LIBRARY_PATH 13584 fi 13585 ;; 13586 13587sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13588 version_type=freebsd-elf 13589 need_lib_prefix=no 13590 need_version=no 13591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13592 soname_spec='${libname}${release}${shared_ext}$major' 13593 shlibpath_var=LD_LIBRARY_PATH 13594 shlibpath_overrides_runpath=yes 13595 hardcode_into_libs=yes 13596 if test "$with_gnu_ld" = yes; then 13597 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13598 else 13599 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13600 case $host_os in 13601 sco3.2v5*) 13602 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13603 ;; 13604 esac 13605 fi 13606 sys_lib_dlsearch_path_spec='/usr/lib' 13607 ;; 13608 13609tpf*) 13610 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 13611 version_type=linux # correct to gnu/linux during the next big refactor 13612 need_lib_prefix=no 13613 need_version=no 13614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13615 shlibpath_var=LD_LIBRARY_PATH 13616 shlibpath_overrides_runpath=no 13617 hardcode_into_libs=yes 13618 ;; 13619 13620uts4*) 13621 version_type=linux # correct to gnu/linux during the next big refactor 13622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13623 soname_spec='${libname}${release}${shared_ext}$major' 13624 shlibpath_var=LD_LIBRARY_PATH 13625 ;; 13626 13627*) 13628 dynamic_linker=no 13629 ;; 13630esac 13631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13632$as_echo "$dynamic_linker" >&6; } 13633test "$dynamic_linker" = no && can_build_shared=no 13634 13635variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13636if test "$GCC" = yes; then 13637 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13638fi 13639 13640if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 13641 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 13642fi 13643if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 13644 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 13645fi 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13739$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13740hardcode_action= 13741if test -n "$hardcode_libdir_flag_spec" || 13742 test -n "$runpath_var" || 13743 test "X$hardcode_automatic" = "Xyes" ; then 13744 13745 # We can hardcode non-existent directories. 13746 if test "$hardcode_direct" != no && 13747 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13748 # have to relink, otherwise we might link with an installed library 13749 # when we should be linking with a yet-to-be-installed one 13750 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 13751 test "$hardcode_minus_L" != no; then 13752 # Linking always hardcodes the temporary library directory. 13753 hardcode_action=relink 13754 else 13755 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13756 hardcode_action=immediate 13757 fi 13758else 13759 # We cannot hardcode anything, or else we can only hardcode existing 13760 # directories. 13761 hardcode_action=unsupported 13762fi 13763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13764$as_echo "$hardcode_action" >&6; } 13765 13766if test "$hardcode_action" = relink || 13767 test "$inherit_rpath" = yes; then 13768 # Fast installation is not supported 13769 enable_fast_install=no 13770elif test "$shlibpath_overrides_runpath" = yes || 13771 test "$enable_shared" = no; then 13772 # Fast installation is not necessary 13773 enable_fast_install=needless 13774fi 13775 13776 13777 13778 13779 13780 13781 if test "x$enable_dlopen" != xyes; then 13782 enable_dlopen=unknown 13783 enable_dlopen_self=unknown 13784 enable_dlopen_self_static=unknown 13785else 13786 lt_cv_dlopen=no 13787 lt_cv_dlopen_libs= 13788 13789 case $host_os in 13790 beos*) 13791 lt_cv_dlopen="load_add_on" 13792 lt_cv_dlopen_libs= 13793 lt_cv_dlopen_self=yes 13794 ;; 13795 13796 mingw* | pw32* | cegcc*) 13797 lt_cv_dlopen="LoadLibrary" 13798 lt_cv_dlopen_libs= 13799 ;; 13800 13801 cygwin*) 13802 lt_cv_dlopen="dlopen" 13803 lt_cv_dlopen_libs= 13804 ;; 13805 13806 darwin*) 13807 # if libdl is installed we need to link against it 13808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13809$as_echo_n "checking for dlopen in -ldl... " >&6; } 13810if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 13811 $as_echo_n "(cached) " >&6 13812else 13813 ac_check_lib_save_LIBS=$LIBS 13814LIBS="-ldl $LIBS" 13815cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13816/* end confdefs.h. */ 13817 13818 13819#ifdef __cplusplus 13820extern "C" 13821#endif 13822char dlopen (); 13823int main (void) 13824{ 13825return dlopen (); 13826 ; 13827 return 0; 13828} 13829_ACEOF 13830if ac_fn_c_try_link "$LINENO"; then : 13831 ac_cv_lib_dl_dlopen=yes 13832else 13833 ac_cv_lib_dl_dlopen=no 13834fi 13835rm -f core conftest.err conftest.$ac_objext \ 13836 conftest$ac_exeext conftest.$ac_ext 13837LIBS=$ac_check_lib_save_LIBS 13838fi 13839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13840$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13841if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 13842 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13843else 13844 13845 lt_cv_dlopen="dyld" 13846 lt_cv_dlopen_libs= 13847 lt_cv_dlopen_self=yes 13848 13849fi 13850 13851 ;; 13852 13853 *) 13854 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13855if test "x$ac_cv_func_shl_load" = x""yes; then : 13856 lt_cv_dlopen="shl_load" 13857else 13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13859$as_echo_n "checking for shl_load in -ldld... " >&6; } 13860if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 13861 $as_echo_n "(cached) " >&6 13862else 13863 ac_check_lib_save_LIBS=$LIBS 13864LIBS="-ldld $LIBS" 13865cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13866/* end confdefs.h. */ 13867 13868 13869#ifdef __cplusplus 13870extern "C" 13871#endif 13872char shl_load (); 13873int main (void) 13874{ 13875return shl_load (); 13876 ; 13877 return 0; 13878} 13879_ACEOF 13880if ac_fn_c_try_link "$LINENO"; then : 13881 ac_cv_lib_dld_shl_load=yes 13882else 13883 ac_cv_lib_dld_shl_load=no 13884fi 13885rm -f core conftest.err conftest.$ac_objext \ 13886 conftest$ac_exeext conftest.$ac_ext 13887LIBS=$ac_check_lib_save_LIBS 13888fi 13889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13890$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 13891if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 13892 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 13893else 13894 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13895if test "x$ac_cv_func_dlopen" = x""yes; then : 13896 lt_cv_dlopen="dlopen" 13897else 13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13899$as_echo_n "checking for dlopen in -ldl... " >&6; } 13900if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 13901 $as_echo_n "(cached) " >&6 13902else 13903 ac_check_lib_save_LIBS=$LIBS 13904LIBS="-ldl $LIBS" 13905cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13906/* end confdefs.h. */ 13907 13908 13909#ifdef __cplusplus 13910extern "C" 13911#endif 13912char dlopen (); 13913int main (void) 13914{ 13915return dlopen (); 13916 ; 13917 return 0; 13918} 13919_ACEOF 13920if ac_fn_c_try_link "$LINENO"; then : 13921 ac_cv_lib_dl_dlopen=yes 13922else 13923 ac_cv_lib_dl_dlopen=no 13924fi 13925rm -f core conftest.err conftest.$ac_objext \ 13926 conftest$ac_exeext conftest.$ac_ext 13927LIBS=$ac_check_lib_save_LIBS 13928fi 13929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13930$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13931if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 13932 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13933else 13934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13935$as_echo_n "checking for dlopen in -lsvld... " >&6; } 13936if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 13937 $as_echo_n "(cached) " >&6 13938else 13939 ac_check_lib_save_LIBS=$LIBS 13940LIBS="-lsvld $LIBS" 13941cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13942/* end confdefs.h. */ 13943 13944 13945#ifdef __cplusplus 13946extern "C" 13947#endif 13948char dlopen (); 13949int main (void) 13950{ 13951return dlopen (); 13952 ; 13953 return 0; 13954} 13955_ACEOF 13956if ac_fn_c_try_link "$LINENO"; then : 13957 ac_cv_lib_svld_dlopen=yes 13958else 13959 ac_cv_lib_svld_dlopen=no 13960fi 13961rm -f core conftest.err conftest.$ac_objext \ 13962 conftest$ac_exeext conftest.$ac_ext 13963LIBS=$ac_check_lib_save_LIBS 13964fi 13965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13966$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 13967if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 13968 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 13969else 13970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13971$as_echo_n "checking for dld_link in -ldld... " >&6; } 13972if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 13973 $as_echo_n "(cached) " >&6 13974else 13975 ac_check_lib_save_LIBS=$LIBS 13976LIBS="-ldld $LIBS" 13977cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13978/* end confdefs.h. */ 13979 13980 13981#ifdef __cplusplus 13982extern "C" 13983#endif 13984char dld_link (); 13985int main (void) 13986{ 13987return dld_link (); 13988 ; 13989 return 0; 13990} 13991_ACEOF 13992if ac_fn_c_try_link "$LINENO"; then : 13993 ac_cv_lib_dld_dld_link=yes 13994else 13995 ac_cv_lib_dld_dld_link=no 13996fi 13997rm -f core conftest.err conftest.$ac_objext \ 13998 conftest$ac_exeext conftest.$ac_ext 13999LIBS=$ac_check_lib_save_LIBS 14000fi 14001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 14002$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 14003if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 14004 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 14005fi 14006 14007 14008fi 14009 14010 14011fi 14012 14013 14014fi 14015 14016 14017fi 14018 14019 14020fi 14021 14022 ;; 14023 esac 14024 14025 if test "x$lt_cv_dlopen" != xno; then 14026 enable_dlopen=yes 14027 else 14028 enable_dlopen=no 14029 fi 14030 14031 case $lt_cv_dlopen in 14032 dlopen) 14033 save_CPPFLAGS="$CPPFLAGS" 14034 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 14035 14036 save_LDFLAGS="$LDFLAGS" 14037 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 14038 14039 save_LIBS="$LIBS" 14040 LIBS="$lt_cv_dlopen_libs $LIBS" 14041 14042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 14043$as_echo_n "checking whether a program can dlopen itself... " >&6; } 14044if test "${lt_cv_dlopen_self+set}" = set; then : 14045 $as_echo_n "(cached) " >&6 14046else 14047 if test "$cross_compiling" = yes; then : 14048 lt_cv_dlopen_self=cross 14049else 14050 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14051 lt_status=$lt_dlunknown 14052 cat > conftest.$ac_ext <<_LT_EOF 14053#line $LINENO "configure" 14054#include "confdefs.h" 14055 14056#if HAVE_DLFCN_H 14057#include <dlfcn.h> 14058#endif 14059 14060#include <stdio.h> 14061 14062#ifdef RTLD_GLOBAL 14063# define LT_DLGLOBAL RTLD_GLOBAL 14064#else 14065# ifdef DL_GLOBAL 14066# define LT_DLGLOBAL DL_GLOBAL 14067# else 14068# define LT_DLGLOBAL 0 14069# endif 14070#endif 14071 14072/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14073 find out it does not work in some platform. */ 14074#ifndef LT_DLLAZY_OR_NOW 14075# ifdef RTLD_LAZY 14076# define LT_DLLAZY_OR_NOW RTLD_LAZY 14077# else 14078# ifdef DL_LAZY 14079# define LT_DLLAZY_OR_NOW DL_LAZY 14080# else 14081# ifdef RTLD_NOW 14082# define LT_DLLAZY_OR_NOW RTLD_NOW 14083# else 14084# ifdef DL_NOW 14085# define LT_DLLAZY_OR_NOW DL_NOW 14086# else 14087# define LT_DLLAZY_OR_NOW 0 14088# endif 14089# endif 14090# endif 14091# endif 14092#endif 14093 14094/* When -fvisbility=hidden is used, assume the code has been annotated 14095 correspondingly for the symbols needed. */ 14096#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14097int fnord () __attribute__((visibility("default"))); 14098#endif 14099 14100int fnord () { return 42; } 14101int main () 14102{ 14103 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14104 int status = $lt_dlunknown; 14105 14106 if (self) 14107 { 14108 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14109 else 14110 { 14111 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14112 else puts (dlerror ()); 14113 } 14114 /* dlclose (self); */ 14115 } 14116 else 14117 puts (dlerror ()); 14118 14119 return status; 14120} 14121_LT_EOF 14122 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14123 (eval $ac_link) 2>&5 14124 ac_status=$? 14125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14126 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 14127 (./conftest; exit; ) >&5 2>/dev/null 14128 lt_status=$? 14129 case x$lt_status in 14130 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 14131 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 14132 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 14133 esac 14134 else : 14135 # compilation failed 14136 lt_cv_dlopen_self=no 14137 fi 14138fi 14139rm -fr conftest* 14140 14141 14142fi 14143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 14144$as_echo "$lt_cv_dlopen_self" >&6; } 14145 14146 if test "x$lt_cv_dlopen_self" = xyes; then 14147 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 14148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 14149$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 14150if test "${lt_cv_dlopen_self_static+set}" = set; then : 14151 $as_echo_n "(cached) " >&6 14152else 14153 if test "$cross_compiling" = yes; then : 14154 lt_cv_dlopen_self_static=cross 14155else 14156 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14157 lt_status=$lt_dlunknown 14158 cat > conftest.$ac_ext <<_LT_EOF 14159#line $LINENO "configure" 14160#include "confdefs.h" 14161 14162#if HAVE_DLFCN_H 14163#include <dlfcn.h> 14164#endif 14165 14166#include <stdio.h> 14167 14168#ifdef RTLD_GLOBAL 14169# define LT_DLGLOBAL RTLD_GLOBAL 14170#else 14171# ifdef DL_GLOBAL 14172# define LT_DLGLOBAL DL_GLOBAL 14173# else 14174# define LT_DLGLOBAL 0 14175# endif 14176#endif 14177 14178/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14179 find out it does not work in some platform. */ 14180#ifndef LT_DLLAZY_OR_NOW 14181# ifdef RTLD_LAZY 14182# define LT_DLLAZY_OR_NOW RTLD_LAZY 14183# else 14184# ifdef DL_LAZY 14185# define LT_DLLAZY_OR_NOW DL_LAZY 14186# else 14187# ifdef RTLD_NOW 14188# define LT_DLLAZY_OR_NOW RTLD_NOW 14189# else 14190# ifdef DL_NOW 14191# define LT_DLLAZY_OR_NOW DL_NOW 14192# else 14193# define LT_DLLAZY_OR_NOW 0 14194# endif 14195# endif 14196# endif 14197# endif 14198#endif 14199 14200/* When -fvisbility=hidden is used, assume the code has been annotated 14201 correspondingly for the symbols needed. */ 14202#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14203int fnord () __attribute__((visibility("default"))); 14204#endif 14205 14206int fnord () { return 42; } 14207int main () 14208{ 14209 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14210 int status = $lt_dlunknown; 14211 14212 if (self) 14213 { 14214 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14215 else 14216 { 14217 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14218 else puts (dlerror ()); 14219 } 14220 /* dlclose (self); */ 14221 } 14222 else 14223 puts (dlerror ()); 14224 14225 return status; 14226} 14227_LT_EOF 14228 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14229 (eval $ac_link) 2>&5 14230 ac_status=$? 14231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14232 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 14233 (./conftest; exit; ) >&5 2>/dev/null 14234 lt_status=$? 14235 case x$lt_status in 14236 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 14237 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 14238 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 14239 esac 14240 else : 14241 # compilation failed 14242 lt_cv_dlopen_self_static=no 14243 fi 14244fi 14245rm -fr conftest* 14246 14247 14248fi 14249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 14250$as_echo "$lt_cv_dlopen_self_static" >&6; } 14251 fi 14252 14253 CPPFLAGS="$save_CPPFLAGS" 14254 LDFLAGS="$save_LDFLAGS" 14255 LIBS="$save_LIBS" 14256 ;; 14257 esac 14258 14259 case $lt_cv_dlopen_self in 14260 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 14261 *) enable_dlopen_self=unknown ;; 14262 esac 14263 14264 case $lt_cv_dlopen_self_static in 14265 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 14266 *) enable_dlopen_self_static=unknown ;; 14267 esac 14268fi 14269 14270 14271 14272 14273 14274 14275 14276 14277 14278 14279 14280 14281 14282 14283 14284 14285 14286striplib= 14287old_striplib= 14288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 14289$as_echo_n "checking whether stripping libraries is possible... " >&6; } 14290if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 14291 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 14292 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14294$as_echo "yes" >&6; } 14295else 14296# FIXME - insert some real tests, host_os isn't really good enough 14297 case $host_os in 14298 darwin*) 14299 if test -n "$STRIP" ; then 14300 striplib="$STRIP -x" 14301 old_striplib="$STRIP -S" 14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14303$as_echo "yes" >&6; } 14304 else 14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14306$as_echo "no" >&6; } 14307 fi 14308 ;; 14309 *) 14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14311$as_echo "no" >&6; } 14312 ;; 14313 esac 14314fi 14315 14316 14317 14318 14319 14320 14321 14322 14323 14324 14325 14326 14327 # Report which library types will actually be built 14328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 14329$as_echo_n "checking if libtool supports shared libraries... " >&6; } 14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 14331$as_echo "$can_build_shared" >&6; } 14332 14333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 14334$as_echo_n "checking whether to build shared libraries... " >&6; } 14335 test "$can_build_shared" = "no" && enable_shared=no 14336 14337 # On AIX, shared libraries and static libraries use the same namespace, and 14338 # are all built from PIC. 14339 case $host_os in 14340 aix3*) 14341 test "$enable_shared" = yes && enable_static=no 14342 if test -n "$RANLIB"; then 14343 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14344 postinstall_cmds='$RANLIB $lib' 14345 fi 14346 ;; 14347 14348 aix[4-9]*) 14349 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14350 test "$enable_shared" = yes && enable_static=no 14351 fi 14352 ;; 14353 esac 14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 14355$as_echo "$enable_shared" >&6; } 14356 14357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 14358$as_echo_n "checking whether to build static libraries... " >&6; } 14359 # Make sure either enable_shared or enable_static is yes. 14360 test "$enable_shared" = yes || enable_static=yes 14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 14362$as_echo "$enable_static" >&6; } 14363 14364 14365 14366 14367fi 14368ac_ext=c 14369ac_cpp='$CPP $CPPFLAGS' 14370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14372ac_compiler_gnu=$ac_cv_c_compiler_gnu 14373 14374CC="$lt_save_CC" 14375 14376 14377 14378 14379 14380 14381 14382 14383 14384 14385 14386 14387 14388 14389 14390 ac_config_commands="$ac_config_commands libtool" 14391 14392 14393 14394 14395# Only expand once: 14396 14397 14398 14399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need -mimpure-text" >&5 14400$as_echo_n "checking if we need -mimpure-text... " >&6; } 14401mimpure=no 14402case $host in 14403 *-*-solaris2*) 14404 if test "$GCC" = "yes"; then 14405 mimpure="yes" 14406 fi 14407 ;; 14408 *) 14409 ;; 14410esac 14411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mimpure" >&5 14412$as_echo "$mimpure" >&6; } 14413 14414 14415if test x$mimpure = xyes; then 14416 MIMPURE_TRUE= 14417 MIMPURE_FALSE='#' 14418else 14419 MIMPURE_TRUE='#' 14420 MIMPURE_FALSE= 14421fi 14422 14423 14424 14425 14426if false; then 14427 STATICLIB_TRUE= 14428 STATICLIB_FALSE='#' 14429else 14430 STATICLIB_TRUE='#' 14431 STATICLIB_FALSE= 14432fi 14433 14434 14435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need BUILDING_LIBCURL" >&5 14436$as_echo_n "checking if we need BUILDING_LIBCURL... " >&6; } 14437case $host in 14438 *-*-mingw*) 14439 14440$as_echo "#define BUILDING_LIBCURL 1" >>confdefs.h 14441 14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14443$as_echo "yes" >&6; } 14444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need CURL_STATICLIB" >&5 14445$as_echo_n "checking if we need CURL_STATICLIB... " >&6; } 14446 if test "X$enable_shared" = "Xno" 14447 then 14448 14449$as_echo "#define CURL_STATICLIB 1" >>confdefs.h 14450 14451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14452$as_echo "yes" >&6; } 14453 14454 14455if true; then 14456 STATICLIB_TRUE= 14457 STATICLIB_FALSE='#' 14458else 14459 STATICLIB_TRUE='#' 14460 STATICLIB_FALSE= 14461fi 14462 14463 else 14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14465$as_echo "no" >&6; } 14466 fi 14467 ;; 14468 *) 14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14470$as_echo "no" >&6; } 14471 ;; 14472esac 14473 14474# Determine whether all dependent libraries must be specified when linking 14475if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno" 14476then 14477 REQUIRE_LIB_DEPS=no 14478else 14479 REQUIRE_LIB_DEPS=yes 14480fi 14481 14482 14483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 14484$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 14485set x ${MAKE-make} 14486ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 14487if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 14488 $as_echo_n "(cached) " >&6 14489else 14490 cat >conftest.make <<\_ACEOF 14491SHELL = /bin/sh 14492all: 14493 @echo '@@@%%%=$(MAKE)=@@@%%%' 14494_ACEOF 14495# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 14496case `${MAKE-make} -f conftest.make 2>/dev/null` in 14497 *@@@%%%=?*=@@@%%%*) 14498 eval ac_cv_prog_make_${ac_make}_set=yes;; 14499 *) 14500 eval ac_cv_prog_make_${ac_make}_set=no;; 14501esac 14502rm -f conftest.make 14503fi 14504if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14506$as_echo "yes" >&6; } 14507 SET_MAKE= 14508else 14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14510$as_echo "no" >&6; } 14511 SET_MAKE="MAKE=${MAKE-make}" 14512fi 14513 14514 14515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 14516$as_echo_n "checking for inline... " >&6; } 14517if test "${ac_cv_c_inline+set}" = set; then : 14518 $as_echo_n "(cached) " >&6 14519else 14520 ac_cv_c_inline=no 14521for ac_kw in inline __inline__ __inline; do 14522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14523/* end confdefs.h. */ 14524#ifndef __cplusplus 14525typedef int foo_t; 14526static $ac_kw foo_t static_foo () {return 0; } 14527$ac_kw foo_t foo () {return 0; } 14528#endif 14529 14530_ACEOF 14531if ac_fn_c_try_compile "$LINENO"; then : 14532 ac_cv_c_inline=$ac_kw 14533fi 14534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14535 test "$ac_cv_c_inline" != no && break 14536done 14537 14538fi 14539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 14540$as_echo "$ac_cv_c_inline" >&6; } 14541 14542case $ac_cv_c_inline in 14543 inline | yes) ;; 14544 *) 14545 case $ac_cv_c_inline in 14546 no) ac_val=;; 14547 *) ac_val=$ac_cv_c_inline;; 14548 esac 14549 cat >>confdefs.h <<_ACEOF 14550#ifndef __cplusplus 14551#define inline $ac_val 14552#endif 14553_ACEOF 14554 ;; 14555esac 14556 14557 14558 14559 14560 # 14561 compiler_id="unknown" 14562 compiler_num="0" 14563 # 14564 flags_dbg_all="unknown" 14565 flags_dbg_yes="unknown" 14566 flags_dbg_off="unknown" 14567 flags_opt_all="unknown" 14568 flags_opt_yes="unknown" 14569 flags_opt_off="unknown" 14570 # 14571 flags_prefer_cppflags="no" 14572 # 14573 14574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5 14575$as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; } 14576 14577 if test -z "$SED"; then 14578 as_fn_error "SED not set. Cannot continue without SED being set." "$LINENO" 5 14579 fi 14580 if test -z "$GREP"; then 14581 as_fn_error "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 14582 fi 14583 14584 tmp_exp="" 14585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14586/* end confdefs.h. */ 14587 14588 14589#ifdef __DECC 14590CURL_DEF_TOKEN __DECC 14591#endif 14592 14593 14594_ACEOF 14595if ac_fn_c_try_cpp "$LINENO"; then : 14596 14597 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 14598 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 14599 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 14600 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 14601 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then 14602 tmp_exp="" 14603 fi 14604 14605fi 14606rm -f conftest.err conftest.$ac_ext 14607 if test -z "$tmp_exp"; then 14608 curl_cv_have_def___DECC=no 14609 14610 else 14611 curl_cv_have_def___DECC=yes 14612 curl_cv_def___DECC=$tmp_exp 14613 14614 fi 14615 14616 14617 if test -z "$SED"; then 14618 as_fn_error "SED not set. Cannot continue without SED being set." "$LINENO" 5 14619 fi 14620 if test -z "$GREP"; then 14621 as_fn_error "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 14622 fi 14623 14624 tmp_exp="" 14625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14626/* end confdefs.h. */ 14627 14628 14629#ifdef __DECC_VER 14630CURL_DEF_TOKEN __DECC_VER 14631#endif 14632 14633 14634_ACEOF 14635if ac_fn_c_try_cpp "$LINENO"; then : 14636 14637 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 14638 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 14639 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 14640 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 14641 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then 14642 tmp_exp="" 14643 fi 14644 14645fi 14646rm -f conftest.err conftest.$ac_ext 14647 if test -z "$tmp_exp"; then 14648 curl_cv_have_def___DECC_VER=no 14649 14650 else 14651 curl_cv_have_def___DECC_VER=yes 14652 curl_cv_def___DECC_VER=$tmp_exp 14653 14654 fi 14655 14656 if test "$curl_cv_have_def___DECC" = "yes" && 14657 test "$curl_cv_have_def___DECC_VER" = "yes"; then 14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14659$as_echo "yes" >&6; } 14660 compiler_id="DEC_C" 14661 flags_dbg_all="-g -g0 -g1 -g2 -g3" 14662 flags_dbg_yes="-g2" 14663 flags_dbg_off="-g0" 14664 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4" 14665 flags_opt_yes="-O1" 14666 flags_opt_off="-O0" 14667 else 14668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14669$as_echo "no" >&6; } 14670 fi 14671 14672 14673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5 14674$as_echo_n "checking if compiler is HP-UX C... " >&6; } 14675 14676 if test -z "$SED"; then 14677 as_fn_error "SED not set. Cannot continue without SED being set." "$LINENO" 5 14678 fi 14679 if test -z "$GREP"; then 14680 as_fn_error "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 14681 fi 14682 14683 tmp_exp="" 14684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14685/* end confdefs.h. */ 14686 14687 14688#ifdef __HP_cc 14689CURL_DEF_TOKEN __HP_cc 14690#endif 14691 14692 14693_ACEOF 14694if ac_fn_c_try_cpp "$LINENO"; then : 14695 14696 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 14697 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 14698 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 14699 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 14700 if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then 14701 tmp_exp="" 14702 fi 14703 14704fi 14705rm -f conftest.err conftest.$ac_ext 14706 if test -z "$tmp_exp"; then 14707 curl_cv_have_def___HP_cc=no 14708 14709 else 14710 curl_cv_have_def___HP_cc=yes 14711 curl_cv_def___HP_cc=$tmp_exp 14712 14713 fi 14714 14715 if test "$curl_cv_have_def___HP_cc" = "yes"; then 14716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14717$as_echo "yes" >&6; } 14718 compiler_id="HP_UX_C" 14719 flags_dbg_all="-g -s" 14720 flags_dbg_yes="-g" 14721 flags_dbg_off="-s" 14722 flags_opt_all="-O +O0 +O1 +O2 +O3 +O4" 14723 flags_opt_yes="+O2" 14724 flags_opt_off="+O0" 14725 else 14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14727$as_echo "no" >&6; } 14728 fi 14729 14730 14731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5 14732$as_echo_n "checking if compiler is IBM C... " >&6; } 14733 14734 if test -z "$SED"; then 14735 as_fn_error "SED not set. Cannot continue without SED being set." "$LINENO" 5 14736 fi 14737 if test -z "$GREP"; then 14738 as_fn_error "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 14739 fi 14740 14741 tmp_exp="" 14742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14743/* end confdefs.h. */ 14744 14745 14746#ifdef __IBMC__ 14747CURL_DEF_TOKEN __IBMC__ 14748#endif 14749 14750 14751_ACEOF 14752if ac_fn_c_try_cpp "$LINENO"; then : 14753 14754 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 14755 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 14756 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 14757 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 14758 if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then 14759 tmp_exp="" 14760 fi 14761 14762fi 14763rm -f conftest.err conftest.$ac_ext 14764 if test -z "$tmp_exp"; then 14765 curl_cv_have_def___IBMC__=no 14766 14767 else 14768 curl_cv_have_def___IBMC__=yes 14769 curl_cv_def___IBMC__=$tmp_exp 14770 14771 fi 14772 14773 if test "$curl_cv_have_def___IBMC__" = "yes"; then 14774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14775$as_echo "yes" >&6; } 14776 compiler_id="IBM_C" 14777 flags_dbg_all="-g -g0 -g1 -g2 -g3" 14778 flags_dbg_yes="-g" 14779 flags_dbg_off="" 14780 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5" 14781 flags_opt_all="$flags_opt_all -qnooptimize" 14782 flags_opt_all="$flags_opt_all -qoptimize=0" 14783 flags_opt_all="$flags_opt_all -qoptimize=1" 14784 flags_opt_all="$flags_opt_all -qoptimize=2" 14785 flags_opt_all="$flags_opt_all -qoptimize=3" 14786 flags_opt_all="$flags_opt_all -qoptimize=4" 14787 flags_opt_all="$flags_opt_all -qoptimize=5" 14788 flags_opt_yes="-O2" 14789 flags_opt_off="-qnooptimize" 14790 flags_prefer_cppflags="yes" 14791 else 14792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14793$as_echo "no" >&6; } 14794 fi 14795 14796 14797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5 14798$as_echo_n "checking if compiler is Intel C... " >&6; } 14799 14800 if test -z "$SED"; then 14801 as_fn_error "SED not set. Cannot continue without SED being set." "$LINENO" 5 14802 fi 14803 if test -z "$GREP"; then 14804 as_fn_error "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 14805 fi 14806 14807 tmp_exp="" 14808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14809/* end confdefs.h. */ 14810 14811 14812#ifdef __INTEL_COMPILER 14813CURL_DEF_TOKEN __INTEL_COMPILER 14814#endif 14815 14816 14817_ACEOF 14818if ac_fn_c_try_cpp "$LINENO"; then : 14819 14820 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 14821 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 14822 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 14823 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 14824 if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then 14825 tmp_exp="" 14826 fi 14827 14828fi 14829rm -f conftest.err conftest.$ac_ext 14830 if test -z "$tmp_exp"; then 14831 curl_cv_have_def___INTEL_COMPILER=no 14832 14833 else 14834 curl_cv_have_def___INTEL_COMPILER=yes 14835 curl_cv_def___INTEL_COMPILER=$tmp_exp 14836 14837 fi 14838 14839 if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then 14840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14841$as_echo "yes" >&6; } 14842 compiler_num="$curl_cv_def___INTEL_COMPILER" 14843 14844 if test -z "$SED"; then 14845 as_fn_error "SED not set. Cannot continue without SED being set." "$LINENO" 5 14846 fi 14847 if test -z "$GREP"; then 14848 as_fn_error "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 14849 fi 14850 14851 tmp_exp="" 14852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14853/* end confdefs.h. */ 14854 14855 14856#ifdef __unix__ 14857CURL_DEF_TOKEN __unix__ 14858#endif 14859 14860 14861_ACEOF 14862if ac_fn_c_try_cpp "$LINENO"; then : 14863 14864 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 14865 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 14866 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 14867 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 14868 if test -z "$tmp_exp" || test "$tmp_exp" = ""; then 14869 tmp_exp="" 14870 fi 14871 14872fi 14873rm -f conftest.err conftest.$ac_ext 14874 if test -z "$tmp_exp"; then 14875 curl_cv_have_def___unix__=no 14876 14877 else 14878 curl_cv_have_def___unix__=yes 14879 curl_cv_def___unix__=$tmp_exp 14880 14881 fi 14882 14883 if test "$curl_cv_have_def___unix__" = "yes"; then 14884 compiler_id="INTEL_UNIX_C" 14885 flags_dbg_all="-g -g0" 14886 flags_dbg_yes="-g" 14887 flags_dbg_off="-g0" 14888 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os" 14889 flags_opt_yes="-O2" 14890 flags_opt_off="-O0" 14891 else 14892 compiler_id="INTEL_WINDOWS_C" 14893 flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-" 14894 flags_dbg_all="$flags_dbg_all /debug" 14895 flags_dbg_all="$flags_dbg_all /debug:none" 14896 flags_dbg_all="$flags_dbg_all /debug:minimal" 14897 flags_dbg_all="$flags_dbg_all /debug:partial" 14898 flags_dbg_all="$flags_dbg_all /debug:full" 14899 flags_dbg_all="$flags_dbg_all /debug:semantic_stepping" 14900 flags_dbg_all="$flags_dbg_all /debug:extended" 14901 flags_dbg_yes="/Zi /Oy-" 14902 flags_dbg_off="/debug:none /Oy-" 14903 flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-" 14904 flags_opt_yes="/O2" 14905 flags_opt_off="/Od" 14906 fi 14907 else 14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14909$as_echo "no" >&6; } 14910 fi 14911 14912 14913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5 14914$as_echo_n "checking if compiler is clang... " >&6; } 14915 14916 if test -z "$SED"; then 14917 as_fn_error "SED not set. Cannot continue without SED being set." "$LINENO" 5 14918 fi 14919 if test -z "$GREP"; then 14920 as_fn_error "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 14921 fi 14922 14923 tmp_exp="" 14924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14925/* end confdefs.h. */ 14926 14927 14928#ifdef __clang__ 14929CURL_DEF_TOKEN __clang__ 14930#endif 14931 14932 14933_ACEOF 14934if ac_fn_c_try_cpp "$LINENO"; then : 14935 14936 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 14937 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 14938 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 14939 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 14940 if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then 14941 tmp_exp="" 14942 fi 14943 14944fi 14945rm -f conftest.err conftest.$ac_ext 14946 if test -z "$tmp_exp"; then 14947 curl_cv_have_def___clang__=no 14948 14949 else 14950 curl_cv_have_def___clang__=yes 14951 curl_cv_def___clang__=$tmp_exp 14952 14953 fi 14954 14955 if test "$curl_cv_have_def___clang__" = "yes"; then 14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14957$as_echo "yes" >&6; } 14958 compiler_id="CLANG" 14959 clangver=`$CC -dumpversion` 14960 clangvhi=`echo $clangver | cut -d . -f1` 14961 clangvlo=`echo $clangver | cut -d . -f2` 14962 compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null` 14963 flags_dbg_all="-g -g0 -g1 -g2 -g3" 14964 flags_dbg_all="$flags_dbg_all -ggdb" 14965 flags_dbg_all="$flags_dbg_all -gstabs" 14966 flags_dbg_all="$flags_dbg_all -gstabs+" 14967 flags_dbg_all="$flags_dbg_all -gcoff" 14968 flags_dbg_all="$flags_dbg_all -gxcoff" 14969 flags_dbg_all="$flags_dbg_all -gdwarf-2" 14970 flags_dbg_all="$flags_dbg_all -gvms" 14971 flags_dbg_yes="-g" 14972 flags_dbg_off="-g0" 14973 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4" 14974 flags_opt_yes="-Os" 14975 flags_opt_off="-O0" 14976 else 14977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14978$as_echo "no" >&6; } 14979 fi 14980 14981 14982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5 14983$as_echo_n "checking if compiler is GNU C... " >&6; } 14984 14985 if test -z "$SED"; then 14986 as_fn_error "SED not set. Cannot continue without SED being set." "$LINENO" 5 14987 fi 14988 if test -z "$GREP"; then 14989 as_fn_error "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 14990 fi 14991 14992 tmp_exp="" 14993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14994/* end confdefs.h. */ 14995 14996 14997#ifdef __GNUC__ 14998CURL_DEF_TOKEN __GNUC__ 14999#endif 15000 15001 15002_ACEOF 15003if ac_fn_c_try_cpp "$LINENO"; then : 15004 15005 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 15006 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 15007 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 15008 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 15009 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then 15010 tmp_exp="" 15011 fi 15012 15013fi 15014rm -f conftest.err conftest.$ac_ext 15015 if test -z "$tmp_exp"; then 15016 curl_cv_have_def___GNUC__=no 15017 15018 else 15019 curl_cv_have_def___GNUC__=yes 15020 curl_cv_def___GNUC__=$tmp_exp 15021 15022 fi 15023 15024 if test "$curl_cv_have_def___GNUC__" = "yes" && 15025 test "$compiler_id" = "unknown"; then 15026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15027$as_echo "yes" >&6; } 15028 compiler_id="GNU_C" 15029 gccver=`$CC -dumpversion` 15030 gccvhi=`echo $gccver | cut -d . -f1` 15031 gccvlo=`echo $gccver | cut -d . -f2` 15032 compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null` 15033 flags_dbg_all="-g -g0 -g1 -g2 -g3" 15034 flags_dbg_all="$flags_dbg_all -ggdb" 15035 flags_dbg_all="$flags_dbg_all -gstabs" 15036 flags_dbg_all="$flags_dbg_all -gstabs+" 15037 flags_dbg_all="$flags_dbg_all -gcoff" 15038 flags_dbg_all="$flags_dbg_all -gxcoff" 15039 flags_dbg_all="$flags_dbg_all -gdwarf-2" 15040 flags_dbg_all="$flags_dbg_all -gvms" 15041 flags_dbg_yes="-g" 15042 flags_dbg_off="-g0" 15043 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os" 15044 flags_opt_yes="-O2" 15045 flags_opt_off="-O0" 15046 else 15047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15048$as_echo "no" >&6; } 15049 fi 15050 15051 15052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5 15053$as_echo_n "checking if compiler is LCC... " >&6; } 15054 15055 if test -z "$SED"; then 15056 as_fn_error "SED not set. Cannot continue without SED being set." "$LINENO" 5 15057 fi 15058 if test -z "$GREP"; then 15059 as_fn_error "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 15060 fi 15061 15062 tmp_exp="" 15063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15064/* end confdefs.h. */ 15065 15066 15067#ifdef __LCC__ 15068CURL_DEF_TOKEN __LCC__ 15069#endif 15070 15071 15072_ACEOF 15073if ac_fn_c_try_cpp "$LINENO"; then : 15074 15075 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 15076 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 15077 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 15078 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 15079 if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then 15080 tmp_exp="" 15081 fi 15082 15083fi 15084rm -f conftest.err conftest.$ac_ext 15085 if test -z "$tmp_exp"; then 15086 curl_cv_have_def___LCC__=no 15087 15088 else 15089 curl_cv_have_def___LCC__=yes 15090 curl_cv_def___LCC__=$tmp_exp 15091 15092 fi 15093 15094 if test "$curl_cv_have_def___LCC__" = "yes"; then 15095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15096$as_echo "yes" >&6; } 15097 compiler_id="LCC" 15098 flags_dbg_all="-g" 15099 flags_dbg_yes="-g" 15100 flags_dbg_off="" 15101 flags_opt_all="" 15102 flags_opt_yes="" 15103 flags_opt_off="" 15104 else 15105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15106$as_echo "no" >&6; } 15107 fi 15108 15109 15110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5 15111$as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; } 15112 15113 if test -z "$SED"; then 15114 as_fn_error "SED not set. Cannot continue without SED being set." "$LINENO" 5 15115 fi 15116 if test -z "$GREP"; then 15117 as_fn_error "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 15118 fi 15119 15120 tmp_exp="" 15121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15122/* end confdefs.h. */ 15123 15124 15125#ifdef __GNUC__ 15126CURL_DEF_TOKEN __GNUC__ 15127#endif 15128 15129 15130_ACEOF 15131if ac_fn_c_try_cpp "$LINENO"; then : 15132 15133 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 15134 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 15135 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 15136 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 15137 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then 15138 tmp_exp="" 15139 fi 15140 15141fi 15142rm -f conftest.err conftest.$ac_ext 15143 if test -z "$tmp_exp"; then 15144 curl_cv_have_def___GNUC__=no 15145 15146 else 15147 curl_cv_have_def___GNUC__=yes 15148 curl_cv_def___GNUC__=$tmp_exp 15149 15150 fi 15151 15152 15153 if test -z "$SED"; then 15154 as_fn_error "SED not set. Cannot continue without SED being set." "$LINENO" 5 15155 fi 15156 if test -z "$GREP"; then 15157 as_fn_error "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 15158 fi 15159 15160 tmp_exp="" 15161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15162/* end confdefs.h. */ 15163 15164 15165#ifdef _COMPILER_VERSION 15166CURL_DEF_TOKEN _COMPILER_VERSION 15167#endif 15168 15169 15170_ACEOF 15171if ac_fn_c_try_cpp "$LINENO"; then : 15172 15173 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 15174 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 15175 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 15176 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 15177 if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then 15178 tmp_exp="" 15179 fi 15180 15181fi 15182rm -f conftest.err conftest.$ac_ext 15183 if test -z "$tmp_exp"; then 15184 curl_cv_have_def__COMPILER_VERSION=no 15185 15186 else 15187 curl_cv_have_def__COMPILER_VERSION=yes 15188 curl_cv_def__COMPILER_VERSION=$tmp_exp 15189 15190 fi 15191 15192 15193 if test -z "$SED"; then 15194 as_fn_error "SED not set. Cannot continue without SED being set." "$LINENO" 5 15195 fi 15196 if test -z "$GREP"; then 15197 as_fn_error "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 15198 fi 15199 15200 tmp_exp="" 15201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15202/* end confdefs.h. */ 15203 15204 15205#ifdef _SGI_COMPILER_VERSION 15206CURL_DEF_TOKEN _SGI_COMPILER_VERSION 15207#endif 15208 15209 15210_ACEOF 15211if ac_fn_c_try_cpp "$LINENO"; then : 15212 15213 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 15214 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 15215 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 15216 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 15217 if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then 15218 tmp_exp="" 15219 fi 15220 15221fi 15222rm -f conftest.err conftest.$ac_ext 15223 if test -z "$tmp_exp"; then 15224 curl_cv_have_def__SGI_COMPILER_VERSION=no 15225 15226 else 15227 curl_cv_have_def__SGI_COMPILER_VERSION=yes 15228 curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp 15229 15230 fi 15231 15232 if test "$curl_cv_have_def___GNUC__" = "no" && 15233 (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" || 15234 test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then 15235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15236$as_echo "yes" >&6; } 15237 compiler_id="SGI_MIPSPRO_C" 15238 flags_dbg_all="-g -g0 -g1 -g2 -g3" 15239 flags_dbg_yes="-g" 15240 flags_dbg_off="-g0" 15241 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast" 15242 flags_opt_yes="-O2" 15243 flags_opt_off="-O0" 15244 else 15245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15246$as_echo "no" >&6; } 15247 fi 15248 15249 15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5 15251$as_echo_n "checking if compiler is SGI MIPS C... " >&6; } 15252 15253 if test -z "$SED"; then 15254 as_fn_error "SED not set. Cannot continue without SED being set." "$LINENO" 5 15255 fi 15256 if test -z "$GREP"; then 15257 as_fn_error "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 15258 fi 15259 15260 tmp_exp="" 15261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15262/* end confdefs.h. */ 15263 15264 15265#ifdef __GNUC__ 15266CURL_DEF_TOKEN __GNUC__ 15267#endif 15268 15269 15270_ACEOF 15271if ac_fn_c_try_cpp "$LINENO"; then : 15272 15273 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 15274 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 15275 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 15276 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 15277 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then 15278 tmp_exp="" 15279 fi 15280 15281fi 15282rm -f conftest.err conftest.$ac_ext 15283 if test -z "$tmp_exp"; then 15284 curl_cv_have_def___GNUC__=no 15285 15286 else 15287 curl_cv_have_def___GNUC__=yes 15288 curl_cv_def___GNUC__=$tmp_exp 15289 15290 fi 15291 15292 15293 if test -z "$SED"; then 15294 as_fn_error "SED not set. Cannot continue without SED being set." "$LINENO" 5 15295 fi 15296 if test -z "$GREP"; then 15297 as_fn_error "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 15298 fi 15299 15300 tmp_exp="" 15301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15302/* end confdefs.h. */ 15303 15304 15305#ifdef __sgi 15306CURL_DEF_TOKEN __sgi 15307#endif 15308 15309 15310_ACEOF 15311if ac_fn_c_try_cpp "$LINENO"; then : 15312 15313 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 15314 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 15315 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 15316 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 15317 if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then 15318 tmp_exp="" 15319 fi 15320 15321fi 15322rm -f conftest.err conftest.$ac_ext 15323 if test -z "$tmp_exp"; then 15324 curl_cv_have_def___sgi=no 15325 15326 else 15327 curl_cv_have_def___sgi=yes 15328 curl_cv_def___sgi=$tmp_exp 15329 15330 fi 15331 15332 if test "$curl_cv_have_def___GNUC__" = "no" && 15333 test "$curl_cv_have_def___sgi" = "yes" && 15334 test "$compiler_id" = "unknown"; then 15335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15336$as_echo "yes" >&6; } 15337 compiler_id="SGI_MIPS_C" 15338 flags_dbg_all="-g -g0 -g1 -g2 -g3" 15339 flags_dbg_yes="-g" 15340 flags_dbg_off="-g0" 15341 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast" 15342 flags_opt_yes="-O2" 15343 flags_opt_off="-O0" 15344 else 15345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15346$as_echo "no" >&6; } 15347 fi 15348 15349 15350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5 15351$as_echo_n "checking if compiler is SunPro C... " >&6; } 15352 15353 if test -z "$SED"; then 15354 as_fn_error "SED not set. Cannot continue without SED being set." "$LINENO" 5 15355 fi 15356 if test -z "$GREP"; then 15357 as_fn_error "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 15358 fi 15359 15360 tmp_exp="" 15361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15362/* end confdefs.h. */ 15363 15364 15365#ifdef __SUNPRO_C 15366CURL_DEF_TOKEN __SUNPRO_C 15367#endif 15368 15369 15370_ACEOF 15371if ac_fn_c_try_cpp "$LINENO"; then : 15372 15373 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 15374 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 15375 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 15376 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 15377 if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then 15378 tmp_exp="" 15379 fi 15380 15381fi 15382rm -f conftest.err conftest.$ac_ext 15383 if test -z "$tmp_exp"; then 15384 curl_cv_have_def___SUNPRO_C=no 15385 15386 else 15387 curl_cv_have_def___SUNPRO_C=yes 15388 curl_cv_def___SUNPRO_C=$tmp_exp 15389 15390 fi 15391 15392 if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then 15393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15394$as_echo "yes" >&6; } 15395 compiler_id="SUNPRO_C" 15396 flags_dbg_all="-g -s" 15397 flags_dbg_yes="-g" 15398 flags_dbg_off="-s" 15399 flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5" 15400 flags_opt_yes="-xO2" 15401 flags_opt_off="" 15402 else 15403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15404$as_echo "no" >&6; } 15405 fi 15406 15407 15408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5 15409$as_echo_n "checking if compiler is Tiny C... " >&6; } 15410 15411 if test -z "$SED"; then 15412 as_fn_error "SED not set. Cannot continue without SED being set." "$LINENO" 5 15413 fi 15414 if test -z "$GREP"; then 15415 as_fn_error "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 15416 fi 15417 15418 tmp_exp="" 15419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15420/* end confdefs.h. */ 15421 15422 15423#ifdef __TINYC__ 15424CURL_DEF_TOKEN __TINYC__ 15425#endif 15426 15427 15428_ACEOF 15429if ac_fn_c_try_cpp "$LINENO"; then : 15430 15431 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 15432 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 15433 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 15434 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 15435 if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then 15436 tmp_exp="" 15437 fi 15438 15439fi 15440rm -f conftest.err conftest.$ac_ext 15441 if test -z "$tmp_exp"; then 15442 curl_cv_have_def___TINYC__=no 15443 15444 else 15445 curl_cv_have_def___TINYC__=yes 15446 curl_cv_def___TINYC__=$tmp_exp 15447 15448 fi 15449 15450 if test "$curl_cv_have_def___TINYC__" = "yes"; then 15451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15452$as_echo "yes" >&6; } 15453 compiler_id="TINY_C" 15454 flags_dbg_all="-g -b" 15455 flags_dbg_yes="-g" 15456 flags_dbg_off="" 15457 flags_opt_all="" 15458 flags_opt_yes="" 15459 flags_opt_off="" 15460 else 15461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15462$as_echo "no" >&6; } 15463 fi 15464 15465 15466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5 15467$as_echo_n "checking if compiler is Watcom C... " >&6; } 15468 15469 if test -z "$SED"; then 15470 as_fn_error "SED not set. Cannot continue without SED being set." "$LINENO" 5 15471 fi 15472 if test -z "$GREP"; then 15473 as_fn_error "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 15474 fi 15475 15476 tmp_exp="" 15477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15478/* end confdefs.h. */ 15479 15480 15481#ifdef __WATCOMC__ 15482CURL_DEF_TOKEN __WATCOMC__ 15483#endif 15484 15485 15486_ACEOF 15487if ac_fn_c_try_cpp "$LINENO"; then : 15488 15489 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 15490 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 15491 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 15492 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 15493 if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then 15494 tmp_exp="" 15495 fi 15496 15497fi 15498rm -f conftest.err conftest.$ac_ext 15499 if test -z "$tmp_exp"; then 15500 curl_cv_have_def___WATCOMC__=no 15501 15502 else 15503 curl_cv_have_def___WATCOMC__=yes 15504 curl_cv_def___WATCOMC__=$tmp_exp 15505 15506 fi 15507 15508 if test "$curl_cv_have_def___WATCOMC__" = "yes"; then 15509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15510$as_echo "yes" >&6; } 15511 15512 if test -z "$SED"; then 15513 as_fn_error "SED not set. Cannot continue without SED being set." "$LINENO" 5 15514 fi 15515 if test -z "$GREP"; then 15516 as_fn_error "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 15517 fi 15518 15519 tmp_exp="" 15520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15521/* end confdefs.h. */ 15522 15523 15524#ifdef __UNIX__ 15525CURL_DEF_TOKEN __UNIX__ 15526#endif 15527 15528 15529_ACEOF 15530if ac_fn_c_try_cpp "$LINENO"; then : 15531 15532 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 15533 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 15534 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 15535 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 15536 if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then 15537 tmp_exp="" 15538 fi 15539 15540fi 15541rm -f conftest.err conftest.$ac_ext 15542 if test -z "$tmp_exp"; then 15543 curl_cv_have_def___UNIX__=no 15544 15545 else 15546 curl_cv_have_def___UNIX__=yes 15547 curl_cv_def___UNIX__=$tmp_exp 15548 15549 fi 15550 15551 if test "$curl_cv_have_def___UNIX__" = "yes"; then 15552 compiler_id="WATCOM_UNIX_C" 15553 flags_dbg_all="-g1 -g1+ -g2 -g3" 15554 flags_dbg_yes="-g2" 15555 flags_dbg_off="" 15556 flags_opt_all="-O0 -O1 -O2 -O3" 15557 flags_opt_yes="-O2" 15558 flags_opt_off="-O0" 15559 else 15560 compiler_id="WATCOM_WINDOWS_C" 15561 flags_dbg_all="" 15562 flags_dbg_yes="" 15563 flags_dbg_off="" 15564 flags_opt_all="" 15565 flags_opt_yes="" 15566 flags_opt_off="" 15567 fi 15568 else 15569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15570$as_echo "no" >&6; } 15571 fi 15572 15573 # 15574 if test "$compiler_id" = "unknown"; then 15575 cat <<_EOF 1>&2 15576*** 15577*** Warning: This configure script does not have information about the 15578*** compiler you are using, relative to the flags required to enable or 15579*** disable generation of debug info, optimization options or warnings. 15580*** 15581*** Whatever settings are present in CFLAGS will be used for this run. 15582*** 15583*** If you wish to help the cURL project to better support your compiler 15584*** you can report this and the required info on the libcurl development 15585*** mailing list: http://cool.haxx.se/mailman/listinfo/curl-library/ 15586*** 15587_EOF 15588 fi 15589 15590 15591squeeze() { 15592 _sqz_result="" 15593 eval _sqz_input=\$$1 15594 for _sqz_token in $_sqz_input; do 15595 if test -z "$_sqz_result"; then 15596 _sqz_result="$_sqz_token" 15597 else 15598 _sqz_result="$_sqz_result $_sqz_token" 15599 fi 15600 done 15601 eval $1=\$_sqz_result 15602 return 0 15603} 15604 15605 15606 # 15607 if test "$compiler_id" != "unknown"; then 15608 # 15609 if test "$compiler_id" = "GNU_C" || 15610 test "$compiler_id" = "CLANG"; then 15611 15612 if test "$compiler_id" = "GNU_C" || 15613 test "$compiler_id" = "CLANG"; then 15614 tmp_has_include="no" 15615 tmp_chg_FLAGS="$CFLAGS" 15616 for word1 in $tmp_chg_FLAGS; do 15617 case "$word1" in 15618 -I*) 15619 tmp_has_include="yes" 15620 ;; 15621 esac 15622 done 15623 if test "$tmp_has_include" = "yes"; then 15624 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'` 15625 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'` 15626 CFLAGS="$tmp_chg_FLAGS" 15627 squeeze CFLAGS 15628 fi 15629 tmp_has_include="no" 15630 tmp_chg_FLAGS="$CPPFLAGS" 15631 for word1 in $tmp_chg_FLAGS; do 15632 case "$word1" in 15633 -I*) 15634 tmp_has_include="yes" 15635 ;; 15636 esac 15637 done 15638 if test "$tmp_has_include" = "yes"; then 15639 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'` 15640 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'` 15641 CPPFLAGS="$tmp_chg_FLAGS" 15642 squeeze CPPFLAGS 15643 fi 15644 fi 15645 15646 fi 15647 # 15648 tmp_save_CPPFLAGS="$CPPFLAGS" 15649 tmp_save_CFLAGS="$CFLAGS" 15650 tmp_CPPFLAGS="" 15651 tmp_CFLAGS="" 15652 # 15653 case "$compiler_id" in 15654 # 15655 CLANG) 15656 # 15657 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments" 15658 ;; 15659 # 15660 DEC_C) 15661 # 15662 tmp_CFLAGS="$tmp_CFLAGS -std1" 15663 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias" 15664 tmp_CFLAGS="$tmp_CFLAGS -warnprotos" 15665 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs" 15666 ;; 15667 # 15668 GNU_C) 15669 # 15670 tmp_CFLAGS="$tmp_CFLAGS" 15671 ;; 15672 # 15673 HP_UX_C) 15674 # 15675 tmp_CFLAGS="$tmp_CFLAGS -z" 15676 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255" 15677 ;; 15678 # 15679 IBM_C) 15680 # 15681 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded" 15682 tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias" 15683 tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e" 15684 ;; 15685 # 15686 INTEL_UNIX_C) 15687 # 15688 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89" 15689 tmp_CPPFLAGS="$tmp_CPPFLAGS -we 140,147,165,266" 15690 tmp_CPPFLAGS="$tmp_CPPFLAGS -wd 279,981,1469" 15691 ;; 15692 # 15693 INTEL_WINDOWS_C) 15694 # 15695 tmp_CFLAGS="$tmp_CFLAGS" 15696 ;; 15697 # 15698 LCC) 15699 # 15700 tmp_CFLAGS="$tmp_CFLAGS -n" 15701 ;; 15702 # 15703 SGI_MIPS_C) 15704 # 15705 tmp_CFLAGS="$tmp_CFLAGS" 15706 ;; 15707 # 15708 SGI_MIPSPRO_C) 15709 # 15710 tmp_CFLAGS="$tmp_CFLAGS" 15711 ;; 15712 # 15713 SUNPRO_C) 15714 # 15715 tmp_CFLAGS="$tmp_CFLAGS" 15716 ;; 15717 # 15718 TINY_C) 15719 # 15720 tmp_CFLAGS="$tmp_CFLAGS" 15721 ;; 15722 # 15723 WATCOM_UNIX_C) 15724 # 15725 tmp_CFLAGS="$tmp_CFLAGS" 15726 ;; 15727 # 15728 WATCOM_WINDOWS_C) 15729 # 15730 tmp_CFLAGS="$tmp_CFLAGS" 15731 ;; 15732 # 15733 esac 15734 # 15735 squeeze tmp_CPPFLAGS 15736 squeeze tmp_CFLAGS 15737 # 15738 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then 15739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5 15740$as_echo_n "checking if compiler accepts some basic options... " >&6; } 15741 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS" 15742 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS" 15743 squeeze CPPFLAGS 15744 squeeze CFLAGS 15745 15746 tmp_compiler_works="unknown" 15747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15748/* end confdefs.h. */ 15749 15750 15751 15752int main (void) 15753{ 15754 15755 int i = 1; 15756 return i; 15757 15758 ; 15759 return 0; 15760} 15761 15762_ACEOF 15763if ac_fn_c_try_compile "$LINENO"; then : 15764 15765 tmp_compiler_works="yes" 15766 15767else 15768 15769 tmp_compiler_works="no" 15770 echo " " >&6 15771 sed 's/^/cc-fail: /' conftest.err >&6 15772 echo " " >&6 15773 15774fi 15775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15776 if test "$tmp_compiler_works" = "yes"; then 15777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15778/* end confdefs.h. */ 15779 15780 15781 15782int main (void) 15783{ 15784 15785 int i = 1; 15786 return i; 15787 15788 ; 15789 return 0; 15790} 15791 15792_ACEOF 15793if ac_fn_c_try_link "$LINENO"; then : 15794 15795 tmp_compiler_works="yes" 15796 15797else 15798 15799 tmp_compiler_works="no" 15800 echo " " >&6 15801 sed 's/^/link-fail: /' conftest.err >&6 15802 echo " " >&6 15803 15804fi 15805rm -f core conftest.err conftest.$ac_objext \ 15806 conftest$ac_exeext conftest.$ac_ext 15807 fi 15808 if test "x$cross_compiling" != "xyes" && 15809 test "$tmp_compiler_works" = "yes"; then 15810 if test "$cross_compiling" = yes; then : 15811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15812$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15813as_fn_error "cannot run test program while cross compiling 15814See \`config.log' for more details." "$LINENO" 5; } 15815else 15816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15817/* end confdefs.h. */ 15818 15819 15820# ifdef __STDC__ 15821# include <stdlib.h> 15822# endif 15823 15824int main (void) 15825{ 15826 15827 int i = 0; 15828 exit(i); 15829 15830 ; 15831 return 0; 15832} 15833 15834_ACEOF 15835if ac_fn_c_try_run "$LINENO"; then : 15836 15837 tmp_compiler_works="yes" 15838 15839else 15840 15841 tmp_compiler_works="no" 15842 echo " " >&6 15843 echo "run-fail: test program exited with status $ac_status" >&6 15844 echo " " >&6 15845 15846fi 15847rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15848 conftest.$ac_objext conftest.beam conftest.$ac_ext 15849fi 15850 15851 fi 15852 if test "$tmp_compiler_works" = "yes"; then 15853 15854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15855$as_echo "yes" >&6; } 15856 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5 15857$as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;} 15858 15859 else 15860 15861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15862$as_echo "no" >&6; } 15863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5 15864$as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;} 15865 CPPFLAGS="$tmp_save_CPPFLAGS" 15866 CFLAGS="$tmp_save_CFLAGS" 15867 15868 fi 15869 15870 fi 15871 # 15872 fi 15873 15874 15875 # 15876 if test "$compiler_id" != "unknown"; then 15877 # 15878 tmp_save_CFLAGS="$CFLAGS" 15879 tmp_save_CPPFLAGS="$CPPFLAGS" 15880 # 15881 tmp_options="" 15882 tmp_CFLAGS="$CFLAGS" 15883 tmp_CPPFLAGS="$CPPFLAGS" 15884 15885 ac_var_stripped="" 15886 for word1 in $tmp_CFLAGS; do 15887 ac_var_strip_word="no" 15888 for word2 in $flags_dbg_all; do 15889 if test "$word1" = "$word2"; then 15890 ac_var_strip_word="yes" 15891 fi 15892 done 15893 if test "$ac_var_strip_word" = "no"; then 15894 ac_var_stripped="$ac_var_stripped $word1" 15895 fi 15896 done 15897 tmp_CFLAGS="$ac_var_stripped" 15898 squeeze tmp_CFLAGS 15899 15900 15901 ac_var_stripped="" 15902 for word1 in $tmp_CPPFLAGS; do 15903 ac_var_strip_word="no" 15904 for word2 in $flags_dbg_all; do 15905 if test "$word1" = "$word2"; then 15906 ac_var_strip_word="yes" 15907 fi 15908 done 15909 if test "$ac_var_strip_word" = "no"; then 15910 ac_var_stripped="$ac_var_stripped $word1" 15911 fi 15912 done 15913 tmp_CPPFLAGS="$ac_var_stripped" 15914 squeeze tmp_CPPFLAGS 15915 15916 # 15917 if test "$want_debug" = "yes"; then 15918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5 15919$as_echo_n "checking if compiler accepts debug enabling options... " >&6; } 15920 tmp_options="$flags_dbg_yes" 15921 fi 15922 if test "$want_debug" = "no"; then 15923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5 15924$as_echo_n "checking if compiler accepts debug disabling options... " >&6; } 15925 tmp_options="$flags_dbg_off" 15926 fi 15927 # 15928 if test "$flags_prefer_cppflags" = "yes"; then 15929 CPPFLAGS="$tmp_CPPFLAGS $tmp_options" 15930 CFLAGS="$tmp_CFLAGS" 15931 else 15932 CPPFLAGS="$tmp_CPPFLAGS" 15933 CFLAGS="$tmp_CFLAGS $tmp_options" 15934 fi 15935 squeeze CPPFLAGS 15936 squeeze CFLAGS 15937 15938 tmp_compiler_works="unknown" 15939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15940/* end confdefs.h. */ 15941 15942 15943 15944int main (void) 15945{ 15946 15947 int i = 1; 15948 return i; 15949 15950 ; 15951 return 0; 15952} 15953 15954_ACEOF 15955if ac_fn_c_try_compile "$LINENO"; then : 15956 15957 tmp_compiler_works="yes" 15958 15959else 15960 15961 tmp_compiler_works="no" 15962 echo " " >&6 15963 sed 's/^/cc-fail: /' conftest.err >&6 15964 echo " " >&6 15965 15966fi 15967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15968 if test "$tmp_compiler_works" = "yes"; then 15969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15970/* end confdefs.h. */ 15971 15972 15973 15974int main (void) 15975{ 15976 15977 int i = 1; 15978 return i; 15979 15980 ; 15981 return 0; 15982} 15983 15984_ACEOF 15985if ac_fn_c_try_link "$LINENO"; then : 15986 15987 tmp_compiler_works="yes" 15988 15989else 15990 15991 tmp_compiler_works="no" 15992 echo " " >&6 15993 sed 's/^/link-fail: /' conftest.err >&6 15994 echo " " >&6 15995 15996fi 15997rm -f core conftest.err conftest.$ac_objext \ 15998 conftest$ac_exeext conftest.$ac_ext 15999 fi 16000 if test "x$cross_compiling" != "xyes" && 16001 test "$tmp_compiler_works" = "yes"; then 16002 if test "$cross_compiling" = yes; then : 16003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16004$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16005as_fn_error "cannot run test program while cross compiling 16006See \`config.log' for more details." "$LINENO" 5; } 16007else 16008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16009/* end confdefs.h. */ 16010 16011 16012# ifdef __STDC__ 16013# include <stdlib.h> 16014# endif 16015 16016int main (void) 16017{ 16018 16019 int i = 0; 16020 exit(i); 16021 16022 ; 16023 return 0; 16024} 16025 16026_ACEOF 16027if ac_fn_c_try_run "$LINENO"; then : 16028 16029 tmp_compiler_works="yes" 16030 16031else 16032 16033 tmp_compiler_works="no" 16034 echo " " >&6 16035 echo "run-fail: test program exited with status $ac_status" >&6 16036 echo " " >&6 16037 16038fi 16039rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16040 conftest.$ac_objext conftest.beam conftest.$ac_ext 16041fi 16042 16043 fi 16044 if test "$tmp_compiler_works" = "yes"; then 16045 16046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16047$as_echo "yes" >&6; } 16048 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5 16049$as_echo "$as_me: compiler options added: $tmp_options" >&6;} 16050 16051 else 16052 16053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16054$as_echo "no" >&6; } 16055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5 16056$as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;} 16057 CPPFLAGS="$tmp_save_CPPFLAGS" 16058 CFLAGS="$tmp_save_CFLAGS" 16059 16060 fi 16061 16062 # 16063 fi 16064 16065 16066 # 16067 if test "$compiler_id" != "unknown"; then 16068 # 16069 tmp_save_CFLAGS="$CFLAGS" 16070 tmp_save_CPPFLAGS="$CPPFLAGS" 16071 # 16072 tmp_options="" 16073 tmp_CFLAGS="$CFLAGS" 16074 tmp_CPPFLAGS="$CPPFLAGS" 16075 honor_optimize_option="yes" 16076 # 16077 # 16078 if test "$want_optimize" = "assume_no" || 16079 test "$want_optimize" = "assume_yes"; then 16080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5 16081$as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; } 16082 16083 16084 ac_var_match_word="no" 16085 for word1 in $tmp_CFLAGS; do 16086 for word2 in $flags_opt_all; do 16087 if test "$word1" = "$word2"; then 16088 ac_var_match_word="yes" 16089 fi 16090 done 16091 done 16092 16093 if test "$ac_var_match_word" = "yes"; then 16094 16095 honor_optimize_option="no" 16096 16097 16098 fi 16099 16100 16101 16102 ac_var_match_word="no" 16103 for word1 in $tmp_CPPFLAGS; do 16104 for word2 in $flags_opt_all; do 16105 if test "$word1" = "$word2"; then 16106 ac_var_match_word="yes" 16107 fi 16108 done 16109 done 16110 16111 if test "$ac_var_match_word" = "yes"; then 16112 16113 honor_optimize_option="no" 16114 16115 16116 fi 16117 16118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5 16119$as_echo "$honor_optimize_option" >&6; } 16120 if test "$honor_optimize_option" = "yes"; then 16121 if test "$want_optimize" = "assume_yes"; then 16122 want_optimize="yes" 16123 fi 16124 if test "$want_optimize" = "assume_no"; then 16125 want_optimize="no" 16126 fi 16127 fi 16128 fi 16129 # 16130 if test "$honor_optimize_option" = "yes"; then 16131 16132 ac_var_stripped="" 16133 for word1 in $tmp_CFLAGS; do 16134 ac_var_strip_word="no" 16135 for word2 in $flags_opt_all; do 16136 if test "$word1" = "$word2"; then 16137 ac_var_strip_word="yes" 16138 fi 16139 done 16140 if test "$ac_var_strip_word" = "no"; then 16141 ac_var_stripped="$ac_var_stripped $word1" 16142 fi 16143 done 16144 tmp_CFLAGS="$ac_var_stripped" 16145 squeeze tmp_CFLAGS 16146 16147 16148 ac_var_stripped="" 16149 for word1 in $tmp_CPPFLAGS; do 16150 ac_var_strip_word="no" 16151 for word2 in $flags_opt_all; do 16152 if test "$word1" = "$word2"; then 16153 ac_var_strip_word="yes" 16154 fi 16155 done 16156 if test "$ac_var_strip_word" = "no"; then 16157 ac_var_stripped="$ac_var_stripped $word1" 16158 fi 16159 done 16160 tmp_CPPFLAGS="$ac_var_stripped" 16161 squeeze tmp_CPPFLAGS 16162 16163 if test "$want_optimize" = "yes"; then 16164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5 16165$as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; } 16166 tmp_options="$flags_opt_yes" 16167 fi 16168 if test "$want_optimize" = "no"; then 16169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5 16170$as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; } 16171 tmp_options="$flags_opt_off" 16172 fi 16173 if test "$flags_prefer_cppflags" = "yes"; then 16174 CPPFLAGS="$tmp_CPPFLAGS $tmp_options" 16175 CFLAGS="$tmp_CFLAGS" 16176 else 16177 CPPFLAGS="$tmp_CPPFLAGS" 16178 CFLAGS="$tmp_CFLAGS $tmp_options" 16179 fi 16180 squeeze CPPFLAGS 16181 squeeze CFLAGS 16182 16183 tmp_compiler_works="unknown" 16184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16185/* end confdefs.h. */ 16186 16187 16188 16189int main (void) 16190{ 16191 16192 int i = 1; 16193 return i; 16194 16195 ; 16196 return 0; 16197} 16198 16199_ACEOF 16200if ac_fn_c_try_compile "$LINENO"; then : 16201 16202 tmp_compiler_works="yes" 16203 16204else 16205 16206 tmp_compiler_works="no" 16207 echo " " >&6 16208 sed 's/^/cc-fail: /' conftest.err >&6 16209 echo " " >&6 16210 16211fi 16212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16213 if test "$tmp_compiler_works" = "yes"; then 16214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16215/* end confdefs.h. */ 16216 16217 16218 16219int main (void) 16220{ 16221 16222 int i = 1; 16223 return i; 16224 16225 ; 16226 return 0; 16227} 16228 16229_ACEOF 16230if ac_fn_c_try_link "$LINENO"; then : 16231 16232 tmp_compiler_works="yes" 16233 16234else 16235 16236 tmp_compiler_works="no" 16237 echo " " >&6 16238 sed 's/^/link-fail: /' conftest.err >&6 16239 echo " " >&6 16240 16241fi 16242rm -f core conftest.err conftest.$ac_objext \ 16243 conftest$ac_exeext conftest.$ac_ext 16244 fi 16245 if test "x$cross_compiling" != "xyes" && 16246 test "$tmp_compiler_works" = "yes"; then 16247 if test "$cross_compiling" = yes; then : 16248 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16249$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16250as_fn_error "cannot run test program while cross compiling 16251See \`config.log' for more details." "$LINENO" 5; } 16252else 16253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16254/* end confdefs.h. */ 16255 16256 16257# ifdef __STDC__ 16258# include <stdlib.h> 16259# endif 16260 16261int main (void) 16262{ 16263 16264 int i = 0; 16265 exit(i); 16266 16267 ; 16268 return 0; 16269} 16270 16271_ACEOF 16272if ac_fn_c_try_run "$LINENO"; then : 16273 16274 tmp_compiler_works="yes" 16275 16276else 16277 16278 tmp_compiler_works="no" 16279 echo " " >&6 16280 echo "run-fail: test program exited with status $ac_status" >&6 16281 echo " " >&6 16282 16283fi 16284rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16285 conftest.$ac_objext conftest.beam conftest.$ac_ext 16286fi 16287 16288 fi 16289 if test "$tmp_compiler_works" = "yes"; then 16290 16291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16292$as_echo "yes" >&6; } 16293 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5 16294$as_echo "$as_me: compiler options added: $tmp_options" >&6;} 16295 16296 else 16297 16298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16299$as_echo "no" >&6; } 16300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5 16301$as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;} 16302 CPPFLAGS="$tmp_save_CPPFLAGS" 16303 CFLAGS="$tmp_save_CFLAGS" 16304 16305 fi 16306 16307 fi 16308 # 16309 fi 16310 16311 16312 # 16313 if test "$compiler_id" != "unknown"; then 16314 # 16315 tmp_save_CPPFLAGS="$CPPFLAGS" 16316 tmp_save_CFLAGS="$CFLAGS" 16317 tmp_CPPFLAGS="" 16318 tmp_CFLAGS="" 16319 # 16320 case "$compiler_id" in 16321 # 16322 CLANG) 16323 # 16324 if test "$want_warnings" = "yes"; then 16325 tmp_CFLAGS="$tmp_CFLAGS -pedantic" 16326 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra" 16327 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings" 16328 tmp_CFLAGS="$tmp_CFLAGS -Wshadow" 16329 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs" 16330 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations" 16331 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes" 16332 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long" 16333 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal" 16334 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare" 16335 tmp_CFLAGS="$tmp_CFLAGS -Wundef" 16336 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral" 16337 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes" 16338 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement" 16339 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align" 16340 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers" 16341 tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32" 16342 # 16343 if test "$compiler_num" -ge "101"; then 16344 tmp_CFLAGS="$tmp_CFLAGS -Wunused" 16345 fi 16346 fi 16347 ;; 16348 # 16349 DEC_C) 16350 # 16351 if test "$want_warnings" = "yes"; then 16352 tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3" 16353 fi 16354 ;; 16355 # 16356 GNU_C) 16357 # 16358 if test "$want_warnings" = "yes"; then 16359 # 16360 if test "x$cross_compiling" != "xyes" || 16361 test "$compiler_num" -ge "300"; then 16362 tmp_CFLAGS="$tmp_CFLAGS -pedantic" 16363 fi 16364 # 16365 tmp_CFLAGS="$tmp_CFLAGS -Wall -W" 16366 # 16367 if test "$compiler_num" -ge "104"; then 16368 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings" 16369 if test "x$cross_compiling" != "xyes" || 16370 test "$compiler_num" -ge "300"; then 16371 tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow" 16372 fi 16373 fi 16374 # 16375 if test "$compiler_num" -ge "207"; then 16376 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs" 16377 if test "x$cross_compiling" != "xyes" || 16378 test "$compiler_num" -ge "300"; then 16379 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations" 16380 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes" 16381 fi 16382 fi 16383 # 16384 if test "$compiler_num" -ge "295"; then 16385 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long" 16386 fi 16387 # 16388 if test "$compiler_num" -ge "296"; then 16389 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal" 16390 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare" 16391 tmp_CFLAGS="$tmp_CFLAGS -Wundef" 16392 fi 16393 # 16394 if test "$compiler_num" -ge "297"; then 16395 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral" 16396 fi 16397 # 16398 if test "$compiler_num" -ge "300"; then 16399 tmp_CFLAGS="$tmp_CFLAGS" 16400 fi 16401 # 16402 if test "$compiler_num" -ge "303"; then 16403 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes" 16404 fi 16405 # 16406 if test "$compiler_num" -ge "304"; then 16407 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement" 16408 fi 16409 # 16410 if test "$compiler_num" -ge "402"; then 16411 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align" 16412 fi 16413 # 16414 if test "$compiler_num" -ge "403"; then 16415 tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration" 16416 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body" 16417 tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers" 16418 tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla" 16419 fi 16420 # 16421 fi 16422 # 16423 if test "$compiler_num" -ge "300"; then 16424 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers" 16425 else 16426 if test "x$cross_compiling" = "xyes"; then 16427 if test "$compiler_num" -ge "104"; then 16428 tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow" 16429 fi 16430 if test "$compiler_num" -ge "207"; then 16431 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations" 16432 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes" 16433 fi 16434 fi 16435 fi 16436 ;; 16437 # 16438 HP_UX_C) 16439 # 16440 if test "$want_warnings" = "yes"; then 16441 tmp_CFLAGS="$tmp_CFLAGS +w1" 16442 fi 16443 ;; 16444 # 16445 IBM_C) 16446 # 16447 tmp_CFLAGS="$tmp_CFLAGS" 16448 ;; 16449 # 16450 INTEL_UNIX_C) 16451 # 16452 if test "$want_warnings" = "yes"; then 16453 if test "$compiler_num" -gt "600"; then 16454 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2" 16455 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck" 16456 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment" 16457 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated" 16458 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes" 16459 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64" 16460 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith" 16461 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type" 16462 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow" 16463 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized" 16464 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function" 16465 fi 16466 fi 16467 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer" 16468 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing" 16469 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise" 16470 if test "$compiler_num" -ge "1000"; then 16471 tmp_CFLAGS="$tmp_CFLAGS -vec-report0" 16472 fi 16473 ;; 16474 # 16475 INTEL_WINDOWS_C) 16476 # 16477 tmp_CFLAGS="$tmp_CFLAGS" 16478 ;; 16479 # 16480 LCC) 16481 # 16482 if test "$want_warnings" = "yes"; then 16483 tmp_CFLAGS="$tmp_CFLAGS" 16484 fi 16485 ;; 16486 # 16487 SGI_MIPS_C) 16488 # 16489 if test "$want_warnings" = "yes"; then 16490 tmp_CFLAGS="$tmp_CFLAGS -fullwarn" 16491 fi 16492 ;; 16493 # 16494 SGI_MIPSPRO_C) 16495 # 16496 if test "$want_warnings" = "yes"; then 16497 tmp_CFLAGS="$tmp_CFLAGS -fullwarn" 16498 tmp_CFLAGS="$tmp_CFLAGS -woff 1209" 16499 fi 16500 ;; 16501 # 16502 SUNPRO_C) 16503 # 16504 if test "$want_warnings" = "yes"; then 16505 tmp_CFLAGS="$tmp_CFLAGS -v" 16506 fi 16507 ;; 16508 # 16509 TINY_C) 16510 # 16511 if test "$want_warnings" = "yes"; then 16512 tmp_CFLAGS="$tmp_CFLAGS -Wall" 16513 tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings" 16514 tmp_CFLAGS="$tmp_CFLAGS -Wunsupported" 16515 fi 16516 ;; 16517 # 16518 WATCOM_UNIX_C) 16519 # 16520 if test "$want_warnings" = "yes"; then 16521 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra" 16522 fi 16523 ;; 16524 # 16525 WATCOM_WINDOWS_C) 16526 # 16527 tmp_CFLAGS="$tmp_CFLAGS" 16528 ;; 16529 # 16530 esac 16531 # 16532 squeeze tmp_CPPFLAGS 16533 squeeze tmp_CFLAGS 16534 # 16535 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then 16536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5 16537$as_echo_n "checking if compiler accepts strict warning options... " >&6; } 16538 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS" 16539 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS" 16540 squeeze CPPFLAGS 16541 squeeze CFLAGS 16542 16543 tmp_compiler_works="unknown" 16544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16545/* end confdefs.h. */ 16546 16547 16548 16549int main (void) 16550{ 16551 16552 int i = 1; 16553 return i; 16554 16555 ; 16556 return 0; 16557} 16558 16559_ACEOF 16560if ac_fn_c_try_compile "$LINENO"; then : 16561 16562 tmp_compiler_works="yes" 16563 16564else 16565 16566 tmp_compiler_works="no" 16567 echo " " >&6 16568 sed 's/^/cc-fail: /' conftest.err >&6 16569 echo " " >&6 16570 16571fi 16572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16573 if test "$tmp_compiler_works" = "yes"; then 16574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16575/* end confdefs.h. */ 16576 16577 16578 16579int main (void) 16580{ 16581 16582 int i = 1; 16583 return i; 16584 16585 ; 16586 return 0; 16587} 16588 16589_ACEOF 16590if ac_fn_c_try_link "$LINENO"; then : 16591 16592 tmp_compiler_works="yes" 16593 16594else 16595 16596 tmp_compiler_works="no" 16597 echo " " >&6 16598 sed 's/^/link-fail: /' conftest.err >&6 16599 echo " " >&6 16600 16601fi 16602rm -f core conftest.err conftest.$ac_objext \ 16603 conftest$ac_exeext conftest.$ac_ext 16604 fi 16605 if test "x$cross_compiling" != "xyes" && 16606 test "$tmp_compiler_works" = "yes"; then 16607 if test "$cross_compiling" = yes; then : 16608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16609$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16610as_fn_error "cannot run test program while cross compiling 16611See \`config.log' for more details." "$LINENO" 5; } 16612else 16613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16614/* end confdefs.h. */ 16615 16616 16617# ifdef __STDC__ 16618# include <stdlib.h> 16619# endif 16620 16621int main (void) 16622{ 16623 16624 int i = 0; 16625 exit(i); 16626 16627 ; 16628 return 0; 16629} 16630 16631_ACEOF 16632if ac_fn_c_try_run "$LINENO"; then : 16633 16634 tmp_compiler_works="yes" 16635 16636else 16637 16638 tmp_compiler_works="no" 16639 echo " " >&6 16640 echo "run-fail: test program exited with status $ac_status" >&6 16641 echo " " >&6 16642 16643fi 16644rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16645 conftest.$ac_objext conftest.beam conftest.$ac_ext 16646fi 16647 16648 fi 16649 if test "$tmp_compiler_works" = "yes"; then 16650 16651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16652$as_echo "yes" >&6; } 16653 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5 16654$as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;} 16655 16656 else 16657 16658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16659$as_echo "no" >&6; } 16660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5 16661$as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;} 16662 CPPFLAGS="$tmp_save_CPPFLAGS" 16663 CFLAGS="$tmp_save_CFLAGS" 16664 16665 fi 16666 16667 fi 16668 # 16669 fi 16670 16671 16672if test "$compiler_id" = "INTEL_UNIX_C"; then 16673 # 16674 if test "$compiler_num" -ge "1000"; then 16675 CFLAGS="$CFLAGS -shared-intel" 16676 elif test "$compiler_num" -ge "900"; then 16677 CFLAGS="$CFLAGS -i-dynamic" 16678 fi 16679 # 16680fi 16681 16682 16683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5 16684$as_echo_n "checking if compiler halts on compilation errors... " >&6; } 16685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16686/* end confdefs.h. */ 16687 16688 16689 16690int main (void) 16691{ 16692 16693 force compilation error 16694 16695 ; 16696 return 0; 16697} 16698 16699_ACEOF 16700if ac_fn_c_try_compile "$LINENO"; then : 16701 16702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16703$as_echo "no" >&6; } 16704 as_fn_error "compiler does not halt on compilation errors." "$LINENO" 5 16705 16706else 16707 16708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16709$as_echo "yes" >&6; } 16710 16711fi 16712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16713 16714 16715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5 16716$as_echo_n "checking if compiler halts on negative sized arrays... " >&6; } 16717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16718/* end confdefs.h. */ 16719 16720 16721 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ]; 16722 16723int main (void) 16724{ 16725 16726 bad_t dummy; 16727 16728 ; 16729 return 0; 16730} 16731 16732_ACEOF 16733if ac_fn_c_try_compile "$LINENO"; then : 16734 16735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16736$as_echo "no" >&6; } 16737 as_fn_error "compiler does not halt on negative sized arrays." "$LINENO" 5 16738 16739else 16740 16741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16742$as_echo "yes" >&6; } 16743 16744fi 16745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16746 16747 16748 16749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if shared libraries need -no-undefined" >&5 16750$as_echo_n "checking if shared libraries need -no-undefined... " >&6; } 16751 need_no_undefined="no" 16752 case $host in 16753 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc* | *-*-aix*) 16754 need_no_undefined="yes" 16755 ;; 16756 esac 16757 if test "x$allow_undefined" = "xno"; then 16758 need_no_undefined="yes" 16759 elif test "x$allow_undefined_flag" = "xunsupported"; then 16760 need_no_undefined="yes" 16761 fi 16762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_no_undefined" >&5 16763$as_echo "$need_no_undefined" >&6; } 16764 16765 16766 16767if test x$need_no_undefined = xyes; then 16768 NO_UNDEFINED_TRUE= 16769 NO_UNDEFINED_FALSE='#' 16770else 16771 NO_UNDEFINED_TRUE='#' 16772 NO_UNDEFINED_FALSE= 16773fi 16774 16775 16776 16777 supports_curldebug="unknown" 16778 if test "$want_curldebug" = "yes"; then 16779 if test "x$enable_shared" != "xno" && 16780 test "x$enable_shared" != "xyes"; then 16781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5 16782$as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;} 16783 supports_curldebug="no" 16784 fi 16785 if test "x$enable_static" != "xno" && 16786 test "x$enable_static" != "xyes"; then 16787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5 16788$as_echo "$as_me: WARNING: unknown enable_static setting." >&2;} 16789 supports_curldebug="no" 16790 fi 16791 if test "$supports_curldebug" != "no"; then 16792 if test "$enable_shared" = "yes" && 16793 test "$need_no_undefined" = "yes"; then 16794 supports_curldebug="no" 16795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5 16796$as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;} 16797 fi 16798 fi 16799 fi 16800 # 16801 if test "$want_curldebug" = "yes"; then 16802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5 16803$as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; } 16804 test "$supports_curldebug" = "no" || supports_curldebug="yes" 16805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5 16806$as_echo "$supports_curldebug" >&6; } 16807 if test "$supports_curldebug" = "no"; then 16808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5 16809$as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;} 16810 want_curldebug="no" 16811 fi 16812 fi 16813 # 16814 if test "$want_curldebug" = "yes"; then 16815 CPPFLAGS="-DCURLDEBUG $CPPFLAGS" 16816 squeeze CPPFLAGS 16817 fi 16818 if test "$want_debug" = "yes"; then 16819 CPPFLAGS="-DDEBUGBUILD $CPPFLAGS" 16820 squeeze CPPFLAGS 16821 fi 16822 16823 16824 16825if test x$want_curldebug = xyes; then 16826 CURLDEBUG_TRUE= 16827 CURLDEBUG_FALSE='#' 16828else 16829 CURLDEBUG_TRUE='#' 16830 CURLDEBUG_FALSE= 16831fi 16832 16833 16834supports_unittests=yes 16835# cross-compilation of unit tests static library/programs fails when 16836# libcurl shared library is built. This might be due to a libtool or 16837# automake issue. In this case we disable unit tests. 16838if test "x$cross_compiling" != "xno" && 16839 test "x$enable_shared" != "xno"; then 16840 supports_unittests=no 16841fi 16842 16843# IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to 16844# a problem related with OpenSSL headers and library versions not matching. 16845# Disable unit tests while time to further investigate this is found. 16846case $host in 16847 mips-sgi-irix6.5) 16848 if test "$compiler_id" = "GNU_C"; then 16849 supports_unittests=no 16850 fi 16851 ;; 16852esac 16853 16854# All AIX autobuilds fails unit tests linking against unittests library 16855# due to unittests library being built with no symbols or members. Libtool ? 16856# Disable unit tests while time to further investigate this is found. 16857case $host_os in 16858 aix*) 16859 supports_unittests=no 16860 ;; 16861esac 16862 16863if test "x$want_debug" = "xyes" && 16864 test "x$supports_unittests" = "xyes"; then 16865 want_unittests=yes 16866else 16867 want_unittests=no 16868fi 16869 16870 16871if test x$want_unittests = xyes; then 16872 BUILD_UNITTESTS_TRUE= 16873 BUILD_UNITTESTS_FALSE='#' 16874else 16875 BUILD_UNITTESTS_TRUE='#' 16876 BUILD_UNITTESTS_FALSE= 16877fi 16878 16879 16880 16881 16882 16883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5 16884$as_echo_n "checking for windows.h... " >&6; } 16885if test "${ac_cv_header_windows_h+set}" = set; then : 16886 $as_echo_n "(cached) " >&6 16887else 16888 16889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16890/* end confdefs.h. */ 16891 16892 16893#undef inline 16894#ifndef WIN32_LEAN_AND_MEAN 16895#define WIN32_LEAN_AND_MEAN 16896#endif 16897#include <windows.h> 16898 16899int main (void) 16900{ 16901 16902#if defined(__CYGWIN__) || defined(__CEGCC__) 16903 HAVE_WINDOWS_H shall not be defined. 16904#else 16905 int dummy=2*WINVER; 16906#endif 16907 16908 ; 16909 return 0; 16910} 16911 16912_ACEOF 16913if ac_fn_c_try_compile "$LINENO"; then : 16914 16915 ac_cv_header_windows_h="yes" 16916 16917else 16918 16919 ac_cv_header_windows_h="no" 16920 16921fi 16922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16923 16924fi 16925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5 16926$as_echo "$ac_cv_header_windows_h" >&6; } 16927 case "$ac_cv_header_windows_h" in 16928 yes) 16929 16930cat >>confdefs.h <<_ACEOF 16931#define HAVE_WINDOWS_H 1 16932_ACEOF 16933 16934 16935cat >>confdefs.h <<_ACEOF 16936#define WIN32_LEAN_AND_MEAN 1 16937_ACEOF 16938 16939 ;; 16940 esac 16941 16942 16943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5 16944$as_echo_n "checking whether build target is a native Windows one... " >&6; } 16945if test "${ac_cv_native_windows+set}" = set; then : 16946 $as_echo_n "(cached) " >&6 16947else 16948 16949 if test "$ac_cv_header_windows_h" = "no"; then 16950 ac_cv_native_windows="no" 16951 else 16952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16953/* end confdefs.h. */ 16954 16955 16956 16957int main (void) 16958{ 16959 16960#if defined(__MINGW32__) || defined(__MINGW32CE__) || \ 16961 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))) 16962 int dummy=1; 16963#else 16964 Not a native Windows build target. 16965#endif 16966 16967 ; 16968 return 0; 16969} 16970 16971_ACEOF 16972if ac_fn_c_try_compile "$LINENO"; then : 16973 16974 ac_cv_native_windows="yes" 16975 16976else 16977 16978 ac_cv_native_windows="no" 16979 16980fi 16981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16982 fi 16983 16984fi 16985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_native_windows" >&5 16986$as_echo "$ac_cv_native_windows" >&6; } 16987 case "$ac_cv_native_windows" in 16988 yes) 16989 16990cat >>confdefs.h <<_ACEOF 16991#define NATIVE_WINDOWS 1 16992_ACEOF 16993 16994 ;; 16995 esac 16996 16997case X-"$ac_cv_native_windows" in 16998 X-yes) 16999 17000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5 17001$as_echo_n "checking for winsock.h... " >&6; } 17002if test "${ac_cv_header_winsock_h+set}" = set; then : 17003 $as_echo_n "(cached) " >&6 17004else 17005 17006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17007/* end confdefs.h. */ 17008 17009 17010#undef inline 17011#ifndef WIN32_LEAN_AND_MEAN 17012#define WIN32_LEAN_AND_MEAN 17013#endif 17014#include <windows.h> 17015#include <winsock.h> 17016 17017int main (void) 17018{ 17019 17020#if defined(__CYGWIN__) || defined(__CEGCC__) 17021 HAVE_WINSOCK_H shall not be defined. 17022#else 17023 int dummy=WSACleanup(); 17024#endif 17025 17026 ; 17027 return 0; 17028} 17029 17030_ACEOF 17031if ac_fn_c_try_compile "$LINENO"; then : 17032 17033 ac_cv_header_winsock_h="yes" 17034 17035else 17036 17037 ac_cv_header_winsock_h="no" 17038 17039fi 17040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17041 17042fi 17043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5 17044$as_echo "$ac_cv_header_winsock_h" >&6; } 17045 case "$ac_cv_header_winsock_h" in 17046 yes) 17047 17048cat >>confdefs.h <<_ACEOF 17049#define HAVE_WINSOCK_H 1 17050_ACEOF 17051 17052 ;; 17053 esac 17054 17055 17056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5 17057$as_echo_n "checking for winsock2.h... " >&6; } 17058if test "${ac_cv_header_winsock2_h+set}" = set; then : 17059 $as_echo_n "(cached) " >&6 17060else 17061 17062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17063/* end confdefs.h. */ 17064 17065 17066#undef inline 17067#ifndef WIN32_LEAN_AND_MEAN 17068#define WIN32_LEAN_AND_MEAN 17069#endif 17070#include <windows.h> 17071#include <winsock2.h> 17072 17073int main (void) 17074{ 17075 17076#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__) 17077 HAVE_WINSOCK2_H shall not be defined. 17078#else 17079 int dummy=2*IPPROTO_ESP; 17080#endif 17081 17082 ; 17083 return 0; 17084} 17085 17086_ACEOF 17087if ac_fn_c_try_compile "$LINENO"; then : 17088 17089 ac_cv_header_winsock2_h="yes" 17090 17091else 17092 17093 ac_cv_header_winsock2_h="no" 17094 17095fi 17096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17097 17098fi 17099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5 17100$as_echo "$ac_cv_header_winsock2_h" >&6; } 17101 case "$ac_cv_header_winsock2_h" in 17102 yes) 17103 17104cat >>confdefs.h <<_ACEOF 17105#define HAVE_WINSOCK2_H 1 17106_ACEOF 17107 17108 ;; 17109 esac 17110 17111 17112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5 17113$as_echo_n "checking for ws2tcpip.h... " >&6; } 17114if test "${ac_cv_header_ws2tcpip_h+set}" = set; then : 17115 $as_echo_n "(cached) " >&6 17116else 17117 17118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17119/* end confdefs.h. */ 17120 17121 17122#undef inline 17123#ifndef WIN32_LEAN_AND_MEAN 17124#define WIN32_LEAN_AND_MEAN 17125#endif 17126#include <windows.h> 17127#include <winsock2.h> 17128#include <ws2tcpip.h> 17129 17130int main (void) 17131{ 17132 17133#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__) 17134 HAVE_WS2TCPIP_H shall not be defined. 17135#else 17136 int dummy=2*IP_PKTINFO; 17137#endif 17138 17139 ; 17140 return 0; 17141} 17142 17143_ACEOF 17144if ac_fn_c_try_compile "$LINENO"; then : 17145 17146 ac_cv_header_ws2tcpip_h="yes" 17147 17148else 17149 17150 ac_cv_header_ws2tcpip_h="no" 17151 17152fi 17153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17154 17155fi 17156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5 17157$as_echo "$ac_cv_header_ws2tcpip_h" >&6; } 17158 case "$ac_cv_header_ws2tcpip_h" in 17159 yes) 17160 17161cat >>confdefs.h <<_ACEOF 17162#define HAVE_WS2TCPIP_H 1 17163_ACEOF 17164 17165 ;; 17166 esac 17167 17168 17169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5 17170$as_echo_n "checking for winldap.h... " >&6; } 17171if test "${ac_cv_header_winldap_h+set}" = set; then : 17172 $as_echo_n "(cached) " >&6 17173else 17174 17175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17176/* end confdefs.h. */ 17177 17178 17179#undef inline 17180#ifdef HAVE_WINDOWS_H 17181#ifndef WIN32_LEAN_AND_MEAN 17182#define WIN32_LEAN_AND_MEAN 17183#endif 17184#include <windows.h> 17185#endif 17186#include <winldap.h> 17187 17188int main (void) 17189{ 17190 17191#if defined(__CYGWIN__) || defined(__CEGCC__) 17192 HAVE_WINLDAP_H shall not be defined. 17193#else 17194 LDAP *ldp = ldap_init("dummy", LDAP_PORT); 17195 ULONG res = ldap_unbind(ldp); 17196#endif 17197 17198 ; 17199 return 0; 17200} 17201 17202_ACEOF 17203if ac_fn_c_try_compile "$LINENO"; then : 17204 17205 ac_cv_header_winldap_h="yes" 17206 17207else 17208 17209 ac_cv_header_winldap_h="no" 17210 17211fi 17212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17213 17214fi 17215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winldap_h" >&5 17216$as_echo "$ac_cv_header_winldap_h" >&6; } 17217 case "$ac_cv_header_winldap_h" in 17218 yes) 17219 17220cat >>confdefs.h <<_ACEOF 17221#define HAVE_WINLDAP_H 1 17222_ACEOF 17223 17224 ;; 17225 esac 17226 17227 17228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5 17229$as_echo_n "checking for winber.h... " >&6; } 17230if test "${ac_cv_header_winber_h+set}" = set; then : 17231 $as_echo_n "(cached) " >&6 17232else 17233 17234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17235/* end confdefs.h. */ 17236 17237 17238#undef inline 17239#ifdef HAVE_WINDOWS_H 17240#ifndef WIN32_LEAN_AND_MEAN 17241#define WIN32_LEAN_AND_MEAN 17242#endif 17243#include <windows.h> 17244#endif 17245#include <winldap.h> 17246#include <winber.h> 17247 17248int main (void) 17249{ 17250 17251#if defined(__CYGWIN__) || defined(__CEGCC__) 17252 HAVE_WINBER_H shall not be defined. 17253#else 17254 BERVAL *bvp = NULL; 17255 BerElement *bep = ber_init(bvp); 17256 ber_free(bep, 1); 17257#endif 17258 17259 ; 17260 return 0; 17261} 17262 17263_ACEOF 17264if ac_fn_c_try_compile "$LINENO"; then : 17265 17266 ac_cv_header_winber_h="yes" 17267 17268else 17269 17270 ac_cv_header_winber_h="no" 17271 17272fi 17273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17274 17275fi 17276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winber_h" >&5 17277$as_echo "$ac_cv_header_winber_h" >&6; } 17278 case "$ac_cv_header_winber_h" in 17279 yes) 17280 17281cat >>confdefs.h <<_ACEOF 17282#define HAVE_WINBER_H 1 17283_ACEOF 17284 17285 ;; 17286 esac 17287 17288 ;; 17289 *) 17290 ac_cv_header_winsock_h="no" 17291 ac_cv_header_winsock2_h="no" 17292 ac_cv_header_ws2tcpip_h="no" 17293 ac_cv_header_winldap_h="no" 17294 ac_cv_header_winber_h="no" 17295 ;; 17296esac 17297 17298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5 17299$as_echo_n "checking whether build target supports WIN32 file API... " >&6; } 17300 curl_win32_file_api="no" 17301 if test "$ac_cv_header_windows_h" = "yes"; then 17302 if test x"$enable_largefile" != "xno"; then 17303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17304/* end confdefs.h. */ 17305 17306 17307 17308int main (void) 17309{ 17310 17311#if !defined(_WIN32_WCE) && \ 17312 (defined(__MINGW32__) || \ 17313 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))) 17314 int dummy=1; 17315#else 17316 WIN32 large file API not supported. 17317#endif 17318 17319 ; 17320 return 0; 17321} 17322 17323_ACEOF 17324if ac_fn_c_try_compile "$LINENO"; then : 17325 17326 curl_win32_file_api="win32_large_files" 17327 17328fi 17329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17330 fi 17331 if test "$curl_win32_file_api" = "no"; then 17332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17333/* end confdefs.h. */ 17334 17335 17336 17337int main (void) 17338{ 17339 17340#if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER) 17341 int dummy=1; 17342#else 17343 WIN32 small file API not supported. 17344#endif 17345 17346 ; 17347 return 0; 17348} 17349 17350_ACEOF 17351if ac_fn_c_try_compile "$LINENO"; then : 17352 17353 curl_win32_file_api="win32_small_files" 17354 17355fi 17356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17357 fi 17358 fi 17359 case "$curl_win32_file_api" in 17360 win32_large_files) 17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5 17362$as_echo "yes (large file enabled)" >&6; } 17363 17364cat >>confdefs.h <<_ACEOF 17365#define USE_WIN32_LARGE_FILES 1 17366_ACEOF 17367 17368 ;; 17369 win32_small_files) 17370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5 17371$as_echo "yes (large file disabled)" >&6; } 17372 17373cat >>confdefs.h <<_ACEOF 17374#define USE_WIN32_SMALL_FILES 1 17375_ACEOF 17376 17377 ;; 17378 *) 17379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17380$as_echo "no" >&6; } 17381 ;; 17382 esac 17383 17384 17385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5 17386$as_echo_n "checking whether to support http... " >&6; } 17387# Check whether --enable-http was given. 17388if test "${enable_http+set}" = set; then : 17389 enableval=$enable_http; case "$enableval" in 17390 no) 17391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17392$as_echo "no" >&6; } 17393 17394$as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h 17395 17396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5 17397$as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;} 17398 CURL_DISABLE_HTTP=1 17399 17400 17401$as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h 17402 17403 CURL_DISABLE_RTSP=1 17404 17405 ;; 17406 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17407$as_echo "yes" >&6; } 17408 ;; 17409 esac 17410else 17411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17412$as_echo "yes" >&6; } 17413 17414fi 17415 17416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5 17417$as_echo_n "checking whether to support ftp... " >&6; } 17418# Check whether --enable-ftp was given. 17419if test "${enable_ftp+set}" = set; then : 17420 enableval=$enable_ftp; case "$enableval" in 17421 no) 17422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17423$as_echo "no" >&6; } 17424 17425$as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h 17426 17427 CURL_DISABLE_FTP=1 17428 17429 ;; 17430 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17431$as_echo "yes" >&6; } 17432 ;; 17433 esac 17434else 17435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17436$as_echo "yes" >&6; } 17437 17438fi 17439 17440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5 17441$as_echo_n "checking whether to support file... " >&6; } 17442# Check whether --enable-file was given. 17443if test "${enable_file+set}" = set; then : 17444 enableval=$enable_file; case "$enableval" in 17445 no) 17446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17447$as_echo "no" >&6; } 17448 17449$as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h 17450 17451 CURL_DISABLE_FILE=1 17452 17453 ;; 17454 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17455$as_echo "yes" >&6; } 17456 ;; 17457 esac 17458else 17459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17460$as_echo "yes" >&6; } 17461 17462fi 17463 17464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5 17465$as_echo_n "checking whether to support ldap... " >&6; } 17466# Check whether --enable-ldap was given. 17467if test "${enable_ldap+set}" = set; then : 17468 enableval=$enable_ldap; case "$enableval" in 17469 no) 17470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17471$as_echo "no" >&6; } 17472 17473$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h 17474 17475 CURL_DISABLE_LDAP=1 17476 17477 ;; 17478 *) 17479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17480$as_echo "yes" >&6; } 17481 ;; 17482 esac 17483else 17484 17485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17486$as_echo "yes" >&6; } 17487 17488fi 17489 17490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5 17491$as_echo_n "checking whether to support ldaps... " >&6; } 17492# Check whether --enable-ldaps was given. 17493if test "${enable_ldaps+set}" = set; then : 17494 enableval=$enable_ldaps; case "$enableval" in 17495 no) 17496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17497$as_echo "no" >&6; } 17498 17499$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h 17500 17501 CURL_DISABLE_LDAPS=1 17502 17503 ;; 17504 *) if test "x$CURL_DISABLE_LDAP" = "x1" ; then 17505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5 17506$as_echo "LDAP needs to be enabled to support LDAPS" >&6; } 17507 17508$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h 17509 17510 CURL_DISABLE_LDAPS=1 17511 17512 else 17513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17514$as_echo "yes" >&6; } 17515 17516$as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h 17517 17518 HAVE_LDAP_SSL=1 17519 17520 fi 17521 ;; 17522 esac 17523else 17524 17525 if test "x$CURL_DISABLE_LDAP" = "x1" ; then 17526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17527$as_echo "no" >&6; } 17528 17529$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h 17530 17531 CURL_DISABLE_LDAPS=1 17532 17533 else 17534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17535$as_echo "yes" >&6; } 17536 17537$as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h 17538 17539 HAVE_LDAP_SSL=1 17540 17541 fi 17542 17543fi 17544 17545 17546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5 17547$as_echo_n "checking whether to support rtsp... " >&6; } 17548# Check whether --enable-rtsp was given. 17549if test "${enable_rtsp+set}" = set; then : 17550 enableval=$enable_rtsp; case "$enableval" in 17551 no) 17552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17553$as_echo "no" >&6; } 17554 17555$as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h 17556 17557 CURL_DISABLE_RTSP=1 17558 17559 ;; 17560 *) if test x$CURL_DISABLE_HTTP = x1 ; then 17561 as_fn_error "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5 17562 else 17563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17564$as_echo "yes" >&6; } 17565 curl_rtsp_msg="enabled" 17566 fi 17567 ;; 17568 esac 17569else 17570 if test "x$CURL_DISABLE_HTTP" != "x1"; then 17571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17572$as_echo "yes" >&6; } 17573 curl_rtsp_msg="enabled" 17574 else 17575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17576$as_echo "no" >&6; } 17577 fi 17578 17579fi 17580 17581 17582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5 17583$as_echo_n "checking whether to support proxies... " >&6; } 17584# Check whether --enable-proxy was given. 17585if test "${enable_proxy+set}" = set; then : 17586 enableval=$enable_proxy; case "$enableval" in 17587 no) 17588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17589$as_echo "no" >&6; } 17590 17591$as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h 17592 17593 CURL_DISABLE_PROXY=1 17594 17595 ;; 17596 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17597$as_echo "yes" >&6; } 17598 ;; 17599 esac 17600else 17601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17602$as_echo "yes" >&6; } 17603 17604fi 17605 17606 17607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5 17608$as_echo_n "checking whether to support dict... " >&6; } 17609# Check whether --enable-dict was given. 17610if test "${enable_dict+set}" = set; then : 17611 enableval=$enable_dict; case "$enableval" in 17612 no) 17613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17614$as_echo "no" >&6; } 17615 17616$as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h 17617 17618 CURL_DISABLE_DICT=1 17619 17620 ;; 17621 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17622$as_echo "yes" >&6; } 17623 ;; 17624 esac 17625else 17626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17627$as_echo "yes" >&6; } 17628 17629fi 17630 17631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5 17632$as_echo_n "checking whether to support telnet... " >&6; } 17633# Check whether --enable-telnet was given. 17634if test "${enable_telnet+set}" = set; then : 17635 enableval=$enable_telnet; case "$enableval" in 17636 no) 17637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17638$as_echo "no" >&6; } 17639 17640$as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h 17641 17642 CURL_DISABLE_TELNET=1 17643 17644 ;; 17645 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17646$as_echo "yes" >&6; } 17647 ;; 17648 esac 17649else 17650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17651$as_echo "yes" >&6; } 17652 17653fi 17654 17655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5 17656$as_echo_n "checking whether to support tftp... " >&6; } 17657# Check whether --enable-tftp was given. 17658if test "${enable_tftp+set}" = set; then : 17659 enableval=$enable_tftp; case "$enableval" in 17660 no) 17661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17662$as_echo "no" >&6; } 17663 17664$as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h 17665 17666 CURL_DISABLE_TFTP=1 17667 17668 ;; 17669 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17670$as_echo "yes" >&6; } 17671 ;; 17672 esac 17673else 17674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17675$as_echo "yes" >&6; } 17676 17677fi 17678 17679 17680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5 17681$as_echo_n "checking whether to support pop3... " >&6; } 17682# Check whether --enable-pop3 was given. 17683if test "${enable_pop3+set}" = set; then : 17684 enableval=$enable_pop3; case "$enableval" in 17685 no) 17686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17687$as_echo "no" >&6; } 17688 17689$as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h 17690 17691 CURL_DISABLE_POP3=1 17692 17693 ;; 17694 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17695$as_echo "yes" >&6; } 17696 ;; 17697 esac 17698else 17699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17700$as_echo "yes" >&6; } 17701 17702fi 17703 17704 17705 17706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5 17707$as_echo_n "checking whether to support imap... " >&6; } 17708# Check whether --enable-imap was given. 17709if test "${enable_imap+set}" = set; then : 17710 enableval=$enable_imap; case "$enableval" in 17711 no) 17712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17713$as_echo "no" >&6; } 17714 17715$as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h 17716 17717 CURL_DISABLE_IMAP=1 17718 17719 ;; 17720 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17721$as_echo "yes" >&6; } 17722 ;; 17723 esac 17724else 17725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17726$as_echo "yes" >&6; } 17727 17728fi 17729 17730 17731 17732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5 17733$as_echo_n "checking whether to support smtp... " >&6; } 17734# Check whether --enable-smtp was given. 17735if test "${enable_smtp+set}" = set; then : 17736 enableval=$enable_smtp; case "$enableval" in 17737 no) 17738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17739$as_echo "no" >&6; } 17740 17741$as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h 17742 17743 CURL_DISABLE_SMTP=1 17744 17745 ;; 17746 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17747$as_echo "yes" >&6; } 17748 ;; 17749 esac 17750else 17751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17752$as_echo "yes" >&6; } 17753 17754fi 17755 17756 17757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5 17758$as_echo_n "checking whether to support gopher... " >&6; } 17759# Check whether --enable-gopher was given. 17760if test "${enable_gopher+set}" = set; then : 17761 enableval=$enable_gopher; case "$enableval" in 17762 no) 17763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17764$as_echo "no" >&6; } 17765 17766$as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h 17767 17768 CURL_DISABLE_GOPHER=1 17769 17770 ;; 17771 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17772$as_echo "yes" >&6; } 17773 ;; 17774 esac 17775else 17776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17777$as_echo "yes" >&6; } 17778 17779fi 17780 17781 17782 17783 17784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5 17785$as_echo_n "checking whether to provide built-in manual... " >&6; } 17786# Check whether --enable-manual was given. 17787if test "${enable_manual+set}" = set; then : 17788 enableval=$enable_manual; case "$enableval" in 17789 no) 17790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17791$as_echo "no" >&6; } 17792 ;; 17793 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17794$as_echo "yes" >&6; } 17795 USE_MANUAL="1" 17796 ;; 17797 esac 17798else 17799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17800$as_echo "yes" >&6; } 17801 USE_MANUAL="1" 17802 17803fi 17804 17805 17806 17807 17808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5 17809$as_echo_n "checking if X/Open network library is required... " >&6; } 17810 tst_lib_xnet_required="no" 17811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17812/* end confdefs.h. */ 17813 17814 17815int main (void) 17816{ 17817#if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600) 17818 return 0; 17819#elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED) 17820 return 0; 17821#else 17822 force compilation error 17823#endif 17824} 17825 17826 17827_ACEOF 17828if ac_fn_c_try_compile "$LINENO"; then : 17829 17830 tst_lib_xnet_required="yes" 17831 LIBS="$LIBS -lxnet" 17832 17833fi 17834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5 17836$as_echo "$tst_lib_xnet_required" >&6; } 17837 17838 17839ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 17840if test "x$ac_cv_func_gethostbyname" = x""yes; then : 17841 HAVE_GETHOSTBYNAME="1" 17842 17843else 17844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 17845$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 17846if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then : 17847 $as_echo_n "(cached) " >&6 17848else 17849 ac_check_lib_save_LIBS=$LIBS 17850LIBS="-lnsl $LIBS" 17851cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17852/* end confdefs.h. */ 17853 17854 17855#ifdef __cplusplus 17856extern "C" 17857#endif 17858char gethostbyname (); 17859int main (void) 17860{ 17861return gethostbyname (); 17862 ; 17863 return 0; 17864} 17865_ACEOF 17866if ac_fn_c_try_link "$LINENO"; then : 17867 ac_cv_lib_nsl_gethostbyname=yes 17868else 17869 ac_cv_lib_nsl_gethostbyname=no 17870fi 17871rm -f core conftest.err conftest.$ac_objext \ 17872 conftest$ac_exeext conftest.$ac_ext 17873LIBS=$ac_check_lib_save_LIBS 17874fi 17875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 17876$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 17877if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then : 17878 HAVE_GETHOSTBYNAME="1" 17879 LIBS="$LIBS -lnsl" 17880 17881fi 17882 17883 17884fi 17885 17886 17887if test "$HAVE_GETHOSTBYNAME" != "1" 17888then 17889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5 17890$as_echo_n "checking for gethostbyname in -lsocket... " >&6; } 17891if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then : 17892 $as_echo_n "(cached) " >&6 17893else 17894 ac_check_lib_save_LIBS=$LIBS 17895LIBS="-lsocket $LIBS" 17896cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17897/* end confdefs.h. */ 17898 17899 17900#ifdef __cplusplus 17901extern "C" 17902#endif 17903char gethostbyname (); 17904int main (void) 17905{ 17906return gethostbyname (); 17907 ; 17908 return 0; 17909} 17910_ACEOF 17911if ac_fn_c_try_link "$LINENO"; then : 17912 ac_cv_lib_socket_gethostbyname=yes 17913else 17914 ac_cv_lib_socket_gethostbyname=no 17915fi 17916rm -f core conftest.err conftest.$ac_objext \ 17917 conftest$ac_exeext conftest.$ac_ext 17918LIBS=$ac_check_lib_save_LIBS 17919fi 17920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5 17921$as_echo "$ac_cv_lib_socket_gethostbyname" >&6; } 17922if test "x$ac_cv_lib_socket_gethostbyname" = x""yes; then : 17923 HAVE_GETHOSTBYNAME="1" 17924 LIBS="$LIBS -lsocket" 17925 17926fi 17927 17928fi 17929 17930if test "$HAVE_GETHOSTBYNAME" != "1" 17931then 17932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5 17933$as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; } 17934 my_ac_save_LIBS=$LIBS 17935 LIBS="-lnsl -lsocket $LIBS" 17936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17937/* end confdefs.h. */ 17938 17939 17940 17941int main (void) 17942{ 17943 17944 gethostbyname(); 17945 17946 ; 17947 return 0; 17948} 17949 17950_ACEOF 17951if ac_fn_c_try_link "$LINENO"; then : 17952 17953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17954$as_echo "yes" >&6; } 17955 HAVE_GETHOSTBYNAME="1" 17956 17957else 17958 17959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17960$as_echo "no" >&6; } 17961 LIBS=$my_ac_save_LIBS 17962 17963fi 17964rm -f core conftest.err conftest.$ac_objext \ 17965 conftest$ac_exeext conftest.$ac_ext 17966fi 17967 17968if test "$HAVE_GETHOSTBYNAME" != "1" 17969then 17970 if test "$ac_cv_header_windows_h" = "yes"; then 17971 if test "$ac_cv_header_winsock_h" = "yes"; then 17972 case $host in 17973 *-*-mingw32ce*) 17974 winsock_LIB="-lwinsock" 17975 ;; 17976 *) 17977 winsock_LIB="-lwsock32" 17978 ;; 17979 esac 17980 fi 17981 if test "$ac_cv_header_winsock2_h" = "yes"; then 17982 winsock_LIB="-lws2_32" 17983 fi 17984 if test ! -z "$winsock_LIB"; then 17985 my_ac_save_LIBS=$LIBS 17986 LIBS="$winsock_LIB $LIBS" 17987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5 17988$as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; } 17989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17990/* end confdefs.h. */ 17991 17992 17993#ifdef HAVE_WINDOWS_H 17994#ifndef WIN32_LEAN_AND_MEAN 17995#define WIN32_LEAN_AND_MEAN 17996#endif 17997#include <windows.h> 17998#ifdef HAVE_WINSOCK2_H 17999#include <winsock2.h> 18000#else 18001#ifdef HAVE_WINSOCK_H 18002#include <winsock.h> 18003#endif 18004#endif 18005#endif 18006 18007int main (void) 18008{ 18009 18010 gethostbyname("www.dummysite.com"); 18011 18012 ; 18013 return 0; 18014} 18015 18016_ACEOF 18017if ac_fn_c_try_link "$LINENO"; then : 18018 18019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18020$as_echo "yes" >&6; } 18021 HAVE_GETHOSTBYNAME="1" 18022 18023else 18024 18025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18026$as_echo "no" >&6; } 18027 winsock_LIB="" 18028 LIBS=$my_ac_save_LIBS 18029 18030fi 18031rm -f core conftest.err conftest.$ac_objext \ 18032 conftest$ac_exeext conftest.$ac_ext 18033 fi 18034 fi 18035fi 18036 18037if test "$HAVE_GETHOSTBYNAME" != "1" 18038then 18039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5 18040$as_echo_n "checking for gethostbyname for Minix 3... " >&6; } 18041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18042/* end confdefs.h. */ 18043 18044 18045/* Older Minix versions may need <net/gen/netdb.h> here instead */ 18046#include <netdb.h> 18047 18048int main (void) 18049{ 18050 18051 gethostbyname("www.dummysite.com"); 18052 18053 ; 18054 return 0; 18055} 18056 18057_ACEOF 18058if ac_fn_c_try_link "$LINENO"; then : 18059 18060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18061$as_echo "yes" >&6; } 18062 HAVE_GETHOSTBYNAME="1" 18063 18064else 18065 18066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18067$as_echo "no" >&6; } 18068 18069fi 18070rm -f core conftest.err conftest.$ac_objext \ 18071 conftest$ac_exeext conftest.$ac_ext 18072fi 18073 18074if test "$HAVE_GETHOSTBYNAME" != "1" 18075then 18076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5 18077$as_echo_n "checking for gethostbyname for eCos... " >&6; } 18078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18079/* end confdefs.h. */ 18080 18081 18082#include <stdio.h> 18083#include <netdb.h> 18084 18085int main (void) 18086{ 18087 18088 gethostbyname("www.dummysite.com"); 18089 18090 ; 18091 return 0; 18092} 18093 18094_ACEOF 18095if ac_fn_c_try_link "$LINENO"; then : 18096 18097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18098$as_echo "yes" >&6; } 18099 HAVE_GETHOSTBYNAME="1" 18100 18101else 18102 18103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18104$as_echo "no" >&6; } 18105 18106fi 18107rm -f core conftest.err conftest.$ac_objext \ 18108 conftest$ac_exeext conftest.$ac_ext 18109fi 18110 18111if test "$HAVE_GETHOSTBYNAME" != "1" 18112then 18113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5 18114$as_echo_n "checking for gethostbyname in -lnetwork... " >&6; } 18115if test "${ac_cv_lib_network_gethostbyname+set}" = set; then : 18116 $as_echo_n "(cached) " >&6 18117else 18118 ac_check_lib_save_LIBS=$LIBS 18119LIBS="-lnetwork $LIBS" 18120cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18121/* end confdefs.h. */ 18122 18123 18124#ifdef __cplusplus 18125extern "C" 18126#endif 18127char gethostbyname (); 18128int main (void) 18129{ 18130return gethostbyname (); 18131 ; 18132 return 0; 18133} 18134_ACEOF 18135if ac_fn_c_try_link "$LINENO"; then : 18136 ac_cv_lib_network_gethostbyname=yes 18137else 18138 ac_cv_lib_network_gethostbyname=no 18139fi 18140rm -f core conftest.err conftest.$ac_objext \ 18141 conftest$ac_exeext conftest.$ac_ext 18142LIBS=$ac_check_lib_save_LIBS 18143fi 18144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5 18145$as_echo "$ac_cv_lib_network_gethostbyname" >&6; } 18146if test "x$ac_cv_lib_network_gethostbyname" = x""yes; then : 18147 HAVE_GETHOSTBYNAME="1" 18148 LIBS="$LIBS -lnetwork" 18149 18150fi 18151 18152fi 18153 18154if test "$HAVE_GETHOSTBYNAME" != "1" 18155then 18156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5 18157$as_echo_n "checking for gethostbyname in -lnet... " >&6; } 18158if test "${ac_cv_lib_net_gethostbyname+set}" = set; then : 18159 $as_echo_n "(cached) " >&6 18160else 18161 ac_check_lib_save_LIBS=$LIBS 18162LIBS="-lnet $LIBS" 18163cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18164/* end confdefs.h. */ 18165 18166 18167#ifdef __cplusplus 18168extern "C" 18169#endif 18170char gethostbyname (); 18171int main (void) 18172{ 18173return gethostbyname (); 18174 ; 18175 return 0; 18176} 18177_ACEOF 18178if ac_fn_c_try_link "$LINENO"; then : 18179 ac_cv_lib_net_gethostbyname=yes 18180else 18181 ac_cv_lib_net_gethostbyname=no 18182fi 18183rm -f core conftest.err conftest.$ac_objext \ 18184 conftest$ac_exeext conftest.$ac_ext 18185LIBS=$ac_check_lib_save_LIBS 18186fi 18187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5 18188$as_echo "$ac_cv_lib_net_gethostbyname" >&6; } 18189if test "x$ac_cv_lib_net_gethostbyname" = x""yes; then : 18190 HAVE_GETHOSTBYNAME="1" 18191 LIBS="$LIBS -lnet" 18192 18193fi 18194 18195fi 18196 18197 18198if test "$HAVE_GETHOSTBYNAME" != "1"; then 18199 as_fn_error "couldn't find libraries for gethostbyname()" "$LINENO" 5 18200fi 18201 18202ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 18203if test "x$ac_cv_func_strcasecmp" = x""yes; then : 18204 18205else 18206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5 18207$as_echo_n "checking for strcasecmp in -lresolve... " >&6; } 18208if test "${ac_cv_lib_resolve_strcasecmp+set}" = set; then : 18209 $as_echo_n "(cached) " >&6 18210else 18211 ac_check_lib_save_LIBS=$LIBS 18212LIBS="-lresolve $LIBS" 18213cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18214/* end confdefs.h. */ 18215 18216 18217#ifdef __cplusplus 18218extern "C" 18219#endif 18220char strcasecmp (); 18221int main (void) 18222{ 18223return strcasecmp (); 18224 ; 18225 return 0; 18226} 18227_ACEOF 18228if ac_fn_c_try_link "$LINENO"; then : 18229 ac_cv_lib_resolve_strcasecmp=yes 18230else 18231 ac_cv_lib_resolve_strcasecmp=no 18232fi 18233rm -f core conftest.err conftest.$ac_objext \ 18234 conftest$ac_exeext conftest.$ac_ext 18235LIBS=$ac_check_lib_save_LIBS 18236fi 18237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5 18238$as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; } 18239if test "x$ac_cv_lib_resolve_strcasecmp" = x""yes; then : 18240 cat >>confdefs.h <<_ACEOF 18241#define HAVE_LIBRESOLVE 1 18242_ACEOF 18243 18244 LIBS="-lresolve $LIBS" 18245 18246fi 18247 18248fi 18249 18250 18251if test "$ac_cv_lib_resolve_strcasecmp" = "$ac_cv_func_strcasecmp"; then 18252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5 18253$as_echo_n "checking for strcasecmp in -lresolve... " >&6; } 18254if test "${ac_cv_lib_resolve_strcasecmp+set}" = set; then : 18255 $as_echo_n "(cached) " >&6 18256else 18257 ac_check_lib_save_LIBS=$LIBS 18258LIBS="-lresolve -lnsl $LIBS" 18259cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18260/* end confdefs.h. */ 18261 18262 18263#ifdef __cplusplus 18264extern "C" 18265#endif 18266char strcasecmp (); 18267int main (void) 18268{ 18269return strcasecmp (); 18270 ; 18271 return 0; 18272} 18273_ACEOF 18274if ac_fn_c_try_link "$LINENO"; then : 18275 ac_cv_lib_resolve_strcasecmp=yes 18276else 18277 ac_cv_lib_resolve_strcasecmp=no 18278fi 18279rm -f core conftest.err conftest.$ac_objext \ 18280 conftest$ac_exeext conftest.$ac_ext 18281LIBS=$ac_check_lib_save_LIBS 18282fi 18283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5 18284$as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; } 18285if test "x$ac_cv_lib_resolve_strcasecmp" = x""yes; then : 18286 LIBS="-lresolve $LIBS" 18287fi 18288 18289fi 18290ac_cv_func_strcasecmp="no" 18291 18292 18293curl_includes_winsock2="\ 18294/* includes start */ 18295#ifdef HAVE_WINDOWS_H 18296# ifndef WIN32_LEAN_AND_MEAN 18297# define WIN32_LEAN_AND_MEAN 18298# endif 18299# include <windows.h> 18300# ifdef HAVE_WINSOCK2_H 18301# include <winsock2.h> 18302# else 18303# ifdef HAVE_WINSOCK_H 18304# include <winsock.h> 18305# endif 18306# endif 18307#endif 18308/* includes end */" 18309 18310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5 18311$as_echo_n "checking for windows.h... " >&6; } 18312if test "${ac_cv_header_windows_h+set}" = set; then : 18313 $as_echo_n "(cached) " >&6 18314else 18315 18316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18317/* end confdefs.h. */ 18318 18319 18320#undef inline 18321#ifndef WIN32_LEAN_AND_MEAN 18322#define WIN32_LEAN_AND_MEAN 18323#endif 18324#include <windows.h> 18325 18326int main (void) 18327{ 18328 18329#if defined(__CYGWIN__) || defined(__CEGCC__) 18330 HAVE_WINDOWS_H shall not be defined. 18331#else 18332 int dummy=2*WINVER; 18333#endif 18334 18335 ; 18336 return 0; 18337} 18338 18339_ACEOF 18340if ac_fn_c_try_compile "$LINENO"; then : 18341 18342 ac_cv_header_windows_h="yes" 18343 18344else 18345 18346 ac_cv_header_windows_h="no" 18347 18348fi 18349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18350 18351fi 18352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5 18353$as_echo "$ac_cv_header_windows_h" >&6; } 18354 case "$ac_cv_header_windows_h" in 18355 yes) 18356 18357cat >>confdefs.h <<_ACEOF 18358#define HAVE_WINDOWS_H 1 18359_ACEOF 18360 18361 18362cat >>confdefs.h <<_ACEOF 18363#define WIN32_LEAN_AND_MEAN 1 18364_ACEOF 18365 18366 ;; 18367 esac 18368 18369 18370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5 18371$as_echo_n "checking for winsock.h... " >&6; } 18372if test "${ac_cv_header_winsock_h+set}" = set; then : 18373 $as_echo_n "(cached) " >&6 18374else 18375 18376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18377/* end confdefs.h. */ 18378 18379 18380#undef inline 18381#ifndef WIN32_LEAN_AND_MEAN 18382#define WIN32_LEAN_AND_MEAN 18383#endif 18384#include <windows.h> 18385#include <winsock.h> 18386 18387int main (void) 18388{ 18389 18390#if defined(__CYGWIN__) || defined(__CEGCC__) 18391 HAVE_WINSOCK_H shall not be defined. 18392#else 18393 int dummy=WSACleanup(); 18394#endif 18395 18396 ; 18397 return 0; 18398} 18399 18400_ACEOF 18401if ac_fn_c_try_compile "$LINENO"; then : 18402 18403 ac_cv_header_winsock_h="yes" 18404 18405else 18406 18407 ac_cv_header_winsock_h="no" 18408 18409fi 18410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18411 18412fi 18413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5 18414$as_echo "$ac_cv_header_winsock_h" >&6; } 18415 case "$ac_cv_header_winsock_h" in 18416 yes) 18417 18418cat >>confdefs.h <<_ACEOF 18419#define HAVE_WINSOCK_H 1 18420_ACEOF 18421 18422 ;; 18423 esac 18424 18425 18426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5 18427$as_echo_n "checking for winsock2.h... " >&6; } 18428if test "${ac_cv_header_winsock2_h+set}" = set; then : 18429 $as_echo_n "(cached) " >&6 18430else 18431 18432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18433/* end confdefs.h. */ 18434 18435 18436#undef inline 18437#ifndef WIN32_LEAN_AND_MEAN 18438#define WIN32_LEAN_AND_MEAN 18439#endif 18440#include <windows.h> 18441#include <winsock2.h> 18442 18443int main (void) 18444{ 18445 18446#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__) 18447 HAVE_WINSOCK2_H shall not be defined. 18448#else 18449 int dummy=2*IPPROTO_ESP; 18450#endif 18451 18452 ; 18453 return 0; 18454} 18455 18456_ACEOF 18457if ac_fn_c_try_compile "$LINENO"; then : 18458 18459 ac_cv_header_winsock2_h="yes" 18460 18461else 18462 18463 ac_cv_header_winsock2_h="no" 18464 18465fi 18466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18467 18468fi 18469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5 18470$as_echo "$ac_cv_header_winsock2_h" >&6; } 18471 case "$ac_cv_header_winsock2_h" in 18472 yes) 18473 18474cat >>confdefs.h <<_ACEOF 18475#define HAVE_WINSOCK2_H 1 18476_ACEOF 18477 18478 ;; 18479 esac 18480 18481 18482 18483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5 18484$as_echo_n "checking for connect in libraries... " >&6; } 18485 tst_connect_save_LIBS="$LIBS" 18486 tst_connect_need_LIBS="unknown" 18487 for tst_lib in '' '-lsocket' ; do 18488 if test "$tst_connect_need_LIBS" = "unknown"; then 18489 LIBS="$tst_lib $tst_connect_save_LIBS" 18490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18491/* end confdefs.h. */ 18492 18493 18494 $curl_includes_winsock2 18495 #ifndef HAVE_WINDOWS_H 18496 int connect(int, void*, int); 18497 #endif 18498 18499int main (void) 18500{ 18501 18502 if(0 != connect(0, 0, 0)) 18503 return 1; 18504 18505 ; 18506 return 0; 18507} 18508 18509_ACEOF 18510if ac_fn_c_try_link "$LINENO"; then : 18511 18512 tst_connect_need_LIBS="$tst_lib" 18513 18514fi 18515rm -f core conftest.err conftest.$ac_objext \ 18516 conftest$ac_exeext conftest.$ac_ext 18517 fi 18518 done 18519 LIBS="$tst_connect_save_LIBS" 18520 # 18521 case X-"$tst_connect_need_LIBS" in 18522 X-unknown) 18523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5 18524$as_echo "cannot find connect" >&6; } 18525 as_fn_error "cannot find connect function in libraries." "$LINENO" 5 18526 ;; 18527 X-) 18528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18529$as_echo "yes" >&6; } 18530 ;; 18531 *) 18532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5 18533$as_echo "$tst_connect_need_LIBS" >&6; } 18534 LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS" 18535 ;; 18536 esac 18537 18538 18539CURL_NETWORK_LIBS=$LIBS 18540 18541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 18542$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 18543if test "${ac_cv_header_time+set}" = set; then : 18544 $as_echo_n "(cached) " >&6 18545else 18546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18547/* end confdefs.h. */ 18548#include <sys/types.h> 18549#include <sys/time.h> 18550#include <time.h> 18551 18552int main (void) 18553{ 18554if ((struct tm *) 0) 18555return 0; 18556 ; 18557 return 0; 18558} 18559_ACEOF 18560if ac_fn_c_try_compile "$LINENO"; then : 18561 ac_cv_header_time=yes 18562else 18563 ac_cv_header_time=no 18564fi 18565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18566fi 18567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 18568$as_echo "$ac_cv_header_time" >&6; } 18569if test $ac_cv_header_time = yes; then 18570 18571$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 18572 18573fi 18574 18575 18576 for ac_header in sys/types.h sys/time.h time.h 18577do : 18578 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18579ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18580eval as_val=\$$as_ac_Header 18581 if test "x$as_val" = x""yes; then : 18582 cat >>confdefs.h <<_ACEOF 18583#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18584_ACEOF 18585 18586fi 18587 18588done 18589 18590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5 18591$as_echo_n "checking for monotonic clock_gettime... " >&6; } 18592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18593/* end confdefs.h. */ 18594 18595 18596#ifdef HAVE_SYS_TYPES_H 18597#include <sys/types.h> 18598#endif 18599#ifdef HAVE_SYS_TIME_H 18600#include <sys/time.h> 18601#ifdef TIME_WITH_SYS_TIME 18602#include <time.h> 18603#endif 18604#else 18605#ifdef HAVE_TIME_H 18606#include <time.h> 18607#endif 18608#endif 18609 18610int main (void) 18611{ 18612 18613 struct timespec ts; 18614 (void)clock_gettime(CLOCK_MONOTONIC, &ts); 18615 18616 ; 18617 return 0; 18618} 18619 18620_ACEOF 18621if ac_fn_c_try_compile "$LINENO"; then : 18622 18623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18624$as_echo "yes" >&6; } 18625 ac_cv_func_clock_gettime="yes" 18626 18627else 18628 18629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18630$as_echo "no" >&6; } 18631 ac_cv_func_clock_gettime="no" 18632 18633fi 18634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18635 18636 18637 # 18638 if test "$ac_cv_func_clock_gettime" = "yes"; then 18639 # 18640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5 18641$as_echo_n "checking for clock_gettime in libraries... " >&6; } 18642 # 18643 curl_cv_save_LIBS="$LIBS" 18644 curl_cv_gclk_LIBS="unknown" 18645 # 18646 for x_xlibs in '' '-lrt' '-lposix4' ; do 18647 if test "$curl_cv_gclk_LIBS" = "unknown"; then 18648 if test -z "$x_xlibs"; then 18649 LIBS="$curl_cv_save_LIBS" 18650 else 18651 LIBS="$x_xlibs $curl_cv_save_LIBS" 18652 fi 18653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18654/* end confdefs.h. */ 18655 18656 18657#ifdef HAVE_SYS_TYPES_H 18658#include <sys/types.h> 18659#endif 18660#ifdef HAVE_SYS_TIME_H 18661#include <sys/time.h> 18662#ifdef TIME_WITH_SYS_TIME 18663#include <time.h> 18664#endif 18665#else 18666#ifdef HAVE_TIME_H 18667#include <time.h> 18668#endif 18669#endif 18670 18671int main (void) 18672{ 18673 18674 struct timespec ts; 18675 (void)clock_gettime(CLOCK_MONOTONIC, &ts); 18676 18677 ; 18678 return 0; 18679} 18680 18681_ACEOF 18682if ac_fn_c_try_link "$LINENO"; then : 18683 18684 curl_cv_gclk_LIBS="$x_xlibs" 18685 18686fi 18687rm -f core conftest.err conftest.$ac_objext \ 18688 conftest$ac_exeext conftest.$ac_ext 18689 fi 18690 done 18691 # 18692 LIBS="$curl_cv_save_LIBS" 18693 # 18694 case X-"$curl_cv_gclk_LIBS" in 18695 X-unknown) 18696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5 18697$as_echo "cannot find clock_gettime" >&6; } 18698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5 18699$as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;} 18700 ac_cv_func_clock_gettime="no" 18701 ;; 18702 X-) 18703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5 18704$as_echo "no additional lib required" >&6; } 18705 ac_cv_func_clock_gettime="yes" 18706 ;; 18707 *) 18708 if test -z "$curl_cv_save_LIBS"; then 18709 LIBS="$curl_cv_gclk_LIBS" 18710 else 18711 LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS" 18712 fi 18713 CURL_LIBS="$CURL_LIBS $curl_cv_gclk_LIBS" 18714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5 18715$as_echo "$curl_cv_gclk_LIBS" >&6; } 18716 ac_cv_func_clock_gettime="yes" 18717 ;; 18718 esac 18719 # 18720 if test "x$cross_compiling" != "xyes" && 18721 test "$ac_cv_func_clock_gettime" = "yes"; then 18722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5 18723$as_echo_n "checking if monotonic clock_gettime works... " >&6; } 18724 if test "$cross_compiling" = yes; then : 18725 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18726$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18727as_fn_error "cannot run test program while cross compiling 18728See \`config.log' for more details." "$LINENO" 5; } 18729else 18730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18731/* end confdefs.h. */ 18732 18733 18734#ifdef HAVE_STDLIB_H 18735#include <stdlib.h> 18736#endif 18737#ifdef HAVE_SYS_TYPES_H 18738#include <sys/types.h> 18739#endif 18740#ifdef HAVE_SYS_TIME_H 18741#include <sys/time.h> 18742#ifdef TIME_WITH_SYS_TIME 18743#include <time.h> 18744#endif 18745#else 18746#ifdef HAVE_TIME_H 18747#include <time.h> 18748#endif 18749#endif 18750 18751int main (void) 18752{ 18753 18754 struct timespec ts; 18755 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts)) 18756 exit(0); 18757 else 18758 exit(1); 18759 18760 ; 18761 return 0; 18762} 18763 18764_ACEOF 18765if ac_fn_c_try_run "$LINENO"; then : 18766 18767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18768$as_echo "yes" >&6; } 18769 18770else 18771 18772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18773$as_echo "no" >&6; } 18774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5 18775$as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;} 18776 ac_cv_func_clock_gettime="no" 18777 LIBS="$curl_cv_save_LIBS" 18778 18779fi 18780rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18781 conftest.$ac_objext conftest.beam conftest.$ac_ext 18782fi 18783 18784 fi 18785 # 18786 case "$ac_cv_func_clock_gettime" in 18787 yes) 18788 18789cat >>confdefs.h <<_ACEOF 18790#define HAVE_CLOCK_GETTIME_MONOTONIC 1 18791_ACEOF 18792 18793 ;; 18794 esac 18795 # 18796 fi 18797 # 18798 18799 18800TEST_SERVER_LIBS=$LIBS 18801 18802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5 18803$as_echo_n "checking whether to use libgcc... " >&6; } 18804# Check whether --enable-libgcc was given. 18805if test "${enable_libgcc+set}" = set; then : 18806 enableval=$enable_libgcc; case "$enableval" in 18807 yes) 18808 ALL_LIBS="$ALL_LIBS -lgcc" 18809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18810$as_echo "yes" >&6; } 18811 ;; 18812 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18813$as_echo "no" >&6; } 18814 ;; 18815 esac 18816else 18817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18818$as_echo "no" >&6; } 18819 18820fi 18821 18822 18823 18824LDAPLIBNAME="" 18825 18826# Check whether --with-ldap-lib was given. 18827if test "${with_ldap_lib+set}" = set; then : 18828 withval=$with_ldap_lib; LDAPLIBNAME="$withval" 18829fi 18830 18831 18832LBERLIBNAME="" 18833 18834# Check whether --with-lber-lib was given. 18835if test "${with_lber_lib+set}" = set; then : 18836 withval=$with_lber_lib; LBERLIBNAME="$withval" 18837fi 18838 18839 18840if test x$CURL_DISABLE_LDAP != x1 ; then 18841 18842 18843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5 18844$as_echo_n "checking for lber.h... " >&6; } 18845if test "${ac_cv_header_lber_h+set}" = set; then : 18846 $as_echo_n "(cached) " >&6 18847else 18848 18849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18850/* end confdefs.h. */ 18851 18852 18853#undef inline 18854#ifdef HAVE_WINDOWS_H 18855#ifndef WIN32_LEAN_AND_MEAN 18856#define WIN32_LEAN_AND_MEAN 18857#endif 18858#include <windows.h> 18859#else 18860#ifdef HAVE_SYS_TYPES_H 18861#include <sys/types.h> 18862#endif 18863#endif 18864#ifndef NULL 18865#define NULL (void *)0 18866#endif 18867#include <lber.h> 18868 18869int main (void) 18870{ 18871 18872 BerValue *bvp = NULL; 18873 BerElement *bep = ber_init(bvp); 18874 ber_free(bep, 1); 18875 18876 ; 18877 return 0; 18878} 18879 18880_ACEOF 18881if ac_fn_c_try_compile "$LINENO"; then : 18882 18883 ac_cv_header_lber_h="yes" 18884 18885else 18886 18887 ac_cv_header_lber_h="no" 18888 18889fi 18890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18891 18892fi 18893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_lber_h" >&5 18894$as_echo "$ac_cv_header_lber_h" >&6; } 18895 if test "$ac_cv_header_lber_h" = "yes"; then 18896 18897cat >>confdefs.h <<_ACEOF 18898#define HAVE_LBER_H 1 18899_ACEOF 18900 18901 # 18902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18903/* end confdefs.h. */ 18904 18905 18906#undef inline 18907#ifdef HAVE_WINDOWS_H 18908#ifndef WIN32_LEAN_AND_MEAN 18909#define WIN32_LEAN_AND_MEAN 18910#endif 18911#include <windows.h> 18912#else 18913#ifdef HAVE_SYS_TYPES_H 18914#include <sys/types.h> 18915#endif 18916#endif 18917#ifndef NULL 18918#define NULL (void *)0 18919#endif 18920#ifndef LDAP_DEPRECATED 18921#define LDAP_DEPRECATED 1 18922#endif 18923#include <ldap.h> 18924 18925int main (void) 18926{ 18927 18928 BerValue *bvp = NULL; 18929 BerElement *bep = ber_init(bvp); 18930 ber_free(bep, 1); 18931 18932 ; 18933 return 0; 18934} 18935 18936_ACEOF 18937if ac_fn_c_try_compile "$LINENO"; then : 18938 18939 curl_cv_need_header_lber_h="no" 18940 18941else 18942 18943 curl_cv_need_header_lber_h="yes" 18944 18945fi 18946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18947 # 18948 case "$curl_cv_need_header_lber_h" in 18949 yes) 18950 18951cat >>confdefs.h <<_ACEOF 18952#define NEED_LBER_H 1 18953_ACEOF 18954 18955 ;; 18956 esac 18957 fi 18958 18959 18960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5 18961$as_echo_n "checking for ldap.h... " >&6; } 18962if test "${ac_cv_header_ldap_h+set}" = set; then : 18963 $as_echo_n "(cached) " >&6 18964else 18965 18966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18967/* end confdefs.h. */ 18968 18969 18970#undef inline 18971#ifdef HAVE_WINDOWS_H 18972#ifndef WIN32_LEAN_AND_MEAN 18973#define WIN32_LEAN_AND_MEAN 18974#endif 18975#include <windows.h> 18976#else 18977#ifdef HAVE_SYS_TYPES_H 18978#include <sys/types.h> 18979#endif 18980#endif 18981#ifndef LDAP_DEPRECATED 18982#define LDAP_DEPRECATED 1 18983#endif 18984#ifdef NEED_LBER_H 18985#include <lber.h> 18986#endif 18987#include <ldap.h> 18988 18989int main (void) 18990{ 18991 18992 LDAP *ldp = ldap_init("dummy", LDAP_PORT); 18993 int res = ldap_unbind(ldp); 18994 18995 ; 18996 return 0; 18997} 18998 18999_ACEOF 19000if ac_fn_c_try_compile "$LINENO"; then : 19001 19002 ac_cv_header_ldap_h="yes" 19003 19004else 19005 19006 ac_cv_header_ldap_h="no" 19007 19008fi 19009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19010 19011fi 19012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldap_h" >&5 19013$as_echo "$ac_cv_header_ldap_h" >&6; } 19014 case "$ac_cv_header_ldap_h" in 19015 yes) 19016 19017cat >>confdefs.h <<_ACEOF 19018#define HAVE_LDAP_H 1 19019_ACEOF 19020 19021 ;; 19022 esac 19023 19024 19025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5 19026$as_echo_n "checking for ldapssl.h... " >&6; } 19027if test "${ac_cv_header_ldapssl_h+set}" = set; then : 19028 $as_echo_n "(cached) " >&6 19029else 19030 19031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19032/* end confdefs.h. */ 19033 19034 19035#undef inline 19036#ifdef HAVE_WINDOWS_H 19037#ifndef WIN32_LEAN_AND_MEAN 19038#define WIN32_LEAN_AND_MEAN 19039#endif 19040#include <windows.h> 19041#else 19042#ifdef HAVE_SYS_TYPES_H 19043#include <sys/types.h> 19044#endif 19045#endif 19046#ifndef NULL 19047#define NULL (void *)0 19048#endif 19049#ifndef LDAP_DEPRECATED 19050#define LDAP_DEPRECATED 1 19051#endif 19052#ifdef NEED_LBER_H 19053#include <lber.h> 19054#endif 19055#ifdef HAVE_LDAP_H 19056#include <ldap.h> 19057#endif 19058#include <ldapssl.h> 19059 19060int main (void) 19061{ 19062 19063 char *cert_label = NULL; 19064 LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label); 19065 19066 ; 19067 return 0; 19068} 19069 19070_ACEOF 19071if ac_fn_c_try_compile "$LINENO"; then : 19072 19073 ac_cv_header_ldapssl_h="yes" 19074 19075else 19076 19077 ac_cv_header_ldapssl_h="no" 19078 19079fi 19080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19081 19082fi 19083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldapssl_h" >&5 19084$as_echo "$ac_cv_header_ldapssl_h" >&6; } 19085 case "$ac_cv_header_ldapssl_h" in 19086 yes) 19087 19088cat >>confdefs.h <<_ACEOF 19089#define HAVE_LDAPSSL_H 1 19090_ACEOF 19091 19092 ;; 19093 esac 19094 19095 19096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5 19097$as_echo_n "checking for ldap_ssl.h... " >&6; } 19098if test "${ac_cv_header_ldap_ssl_h+set}" = set; then : 19099 $as_echo_n "(cached) " >&6 19100else 19101 19102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19103/* end confdefs.h. */ 19104 19105 19106#undef inline 19107#ifdef HAVE_WINDOWS_H 19108#ifndef WIN32_LEAN_AND_MEAN 19109#define WIN32_LEAN_AND_MEAN 19110#endif 19111#include <windows.h> 19112#else 19113#ifdef HAVE_SYS_TYPES_H 19114#include <sys/types.h> 19115#endif 19116#endif 19117#ifndef LDAP_DEPRECATED 19118#define LDAP_DEPRECATED 1 19119#endif 19120#ifdef NEED_LBER_H 19121#include <lber.h> 19122#endif 19123#ifdef HAVE_LDAP_H 19124#include <ldap.h> 19125#endif 19126#include <ldap_ssl.h> 19127 19128int main (void) 19129{ 19130 19131 LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1); 19132 19133 ; 19134 return 0; 19135} 19136 19137_ACEOF 19138if ac_fn_c_try_compile "$LINENO"; then : 19139 19140 ac_cv_header_ldap_ssl_h="yes" 19141 19142else 19143 19144 ac_cv_header_ldap_ssl_h="no" 19145 19146fi 19147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19148 19149fi 19150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldap_ssl_h" >&5 19151$as_echo "$ac_cv_header_ldap_ssl_h" >&6; } 19152 case "$ac_cv_header_ldap_ssl_h" in 19153 yes) 19154 19155cat >>confdefs.h <<_ACEOF 19156#define HAVE_LDAP_SSL_H 1 19157_ACEOF 19158 19159 ;; 19160 esac 19161 19162 19163 if test -z "$LDAPLIBNAME" ; then 19164 if test "$ac_cv_native_windows" = "yes"; then 19165 LDAPLIBNAME="wldap32" 19166 LBERLIBNAME="no" 19167 fi 19168 fi 19169 19170 if test "$LDAPLIBNAME" ; then 19171 as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh` 19172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5 19173$as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; } 19174if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : 19175 $as_echo_n "(cached) " >&6 19176else 19177 ac_check_lib_save_LIBS=$LIBS 19178LIBS="-l"$LDAPLIBNAME" $LIBS" 19179cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19180/* end confdefs.h. */ 19181 19182 19183#ifdef __cplusplus 19184extern "C" 19185#endif 19186char ldap_init (); 19187int main (void) 19188{ 19189return ldap_init (); 19190 ; 19191 return 0; 19192} 19193_ACEOF 19194if ac_fn_c_try_link "$LINENO"; then : 19195 eval "$as_ac_Lib=yes" 19196else 19197 eval "$as_ac_Lib=no" 19198fi 19199rm -f core conftest.err conftest.$ac_objext \ 19200 conftest$ac_exeext conftest.$ac_ext 19201LIBS=$ac_check_lib_save_LIBS 19202fi 19203eval ac_res=\$$as_ac_Lib 19204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19205$as_echo "$ac_res" >&6; } 19206eval as_val=\$$as_ac_Lib 19207 if test "x$as_val" = x""yes; then : 19208 cat >>confdefs.h <<_ACEOF 19209#define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1 19210_ACEOF 19211 19212 LIBS="-l"$LDAPLIBNAME" $LIBS" 19213 19214else 19215 19216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5 19217$as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;} 19218 19219$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h 19220 19221 CURL_DISABLE_LDAP=1 19222 19223fi 19224 19225 19226$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h 19227 19228 CURL_DISABLE_LDAPS=1 19229 19230 else 19231 19232 # 19233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5 19234$as_echo_n "checking for LDAP libraries... " >&6; } 19235 # 19236 u_libs="" 19237 # 19238 19239 # 19240 curl_cv_save_LIBS="$LIBS" 19241 curl_cv_ldap_LIBS="unknown" 19242 # 19243 for x_nlibs in '' "$u_libs" \ 19244 '-lldap' \ 19245 '-llber -lldap' \ 19246 '-lldap -llber' \ 19247 '-lldapssl -lldapx -lldapsdk' \ 19248 '-lldapsdk -lldapx -lldapssl' ; do 19249 if test "$curl_cv_ldap_LIBS" = "unknown"; then 19250 if test -z "$x_nlibs"; then 19251 LIBS="$curl_cv_save_LIBS" 19252 else 19253 LIBS="$x_nlibs $curl_cv_save_LIBS" 19254 fi 19255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19256/* end confdefs.h. */ 19257 19258 19259#undef inline 19260#ifdef HAVE_WINDOWS_H 19261#ifndef WIN32_LEAN_AND_MEAN 19262#define WIN32_LEAN_AND_MEAN 19263#endif 19264#include <windows.h> 19265#else 19266#ifdef HAVE_SYS_TYPES_H 19267#include <sys/types.h> 19268#endif 19269#endif 19270#ifndef NULL 19271#define NULL (void *)0 19272#endif 19273#ifndef LDAP_DEPRECATED 19274#define LDAP_DEPRECATED 1 19275#endif 19276#ifdef NEED_LBER_H 19277#include <lber.h> 19278#endif 19279#ifdef HAVE_LDAP_H 19280#include <ldap.h> 19281#endif 19282 19283int main (void) 19284{ 19285 19286 BerValue *bvp = NULL; 19287 BerElement *bep = ber_init(bvp); 19288 LDAP *ldp = ldap_init("dummy", LDAP_PORT); 19289 int res = ldap_unbind(ldp); 19290 ber_free(bep, 1); 19291 19292 ; 19293 return 0; 19294} 19295 19296_ACEOF 19297if ac_fn_c_try_link "$LINENO"; then : 19298 19299 curl_cv_ldap_LIBS="$x_nlibs" 19300 19301fi 19302rm -f core conftest.err conftest.$ac_objext \ 19303 conftest$ac_exeext conftest.$ac_ext 19304 fi 19305 done 19306 # 19307 LIBS="$curl_cv_save_LIBS" 19308 # 19309 case X-"$curl_cv_ldap_LIBS" in 19310 X-unknown) 19311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5 19312$as_echo "cannot find LDAP libraries" >&6; } 19313 ;; 19314 X-) 19315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5 19316$as_echo "no additional lib required" >&6; } 19317 ;; 19318 *) 19319 if test -z "$curl_cv_save_LIBS"; then 19320 LIBS="$curl_cv_ldap_LIBS" 19321 else 19322 LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS" 19323 fi 19324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5 19325$as_echo "$curl_cv_ldap_LIBS" >&6; } 19326 ;; 19327 esac 19328 # 19329 19330 case X-"$curl_cv_ldap_LIBS" in 19331 X-unknown) 19332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5 19333$as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;} 19334 19335$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h 19336 19337 CURL_DISABLE_LDAP=1 19338 19339 19340$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h 19341 19342 CURL_DISABLE_LDAPS=1 19343 19344 ;; 19345 esac 19346 fi 19347fi 19348 19349if test x$CURL_DISABLE_LDAP != x1 ; then 19350 19351 if test "$LBERLIBNAME" ; then 19352 if test "$LBERLIBNAME" != "no" ; then 19353 as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh` 19354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5 19355$as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; } 19356if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : 19357 $as_echo_n "(cached) " >&6 19358else 19359 ac_check_lib_save_LIBS=$LIBS 19360LIBS="-l"$LBERLIBNAME" $LIBS" 19361cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19362/* end confdefs.h. */ 19363 19364 19365#ifdef __cplusplus 19366extern "C" 19367#endif 19368char ber_free (); 19369int main (void) 19370{ 19371return ber_free (); 19372 ; 19373 return 0; 19374} 19375_ACEOF 19376if ac_fn_c_try_link "$LINENO"; then : 19377 eval "$as_ac_Lib=yes" 19378else 19379 eval "$as_ac_Lib=no" 19380fi 19381rm -f core conftest.err conftest.$ac_objext \ 19382 conftest$ac_exeext conftest.$ac_ext 19383LIBS=$ac_check_lib_save_LIBS 19384fi 19385eval ac_res=\$$as_ac_Lib 19386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19387$as_echo "$ac_res" >&6; } 19388eval as_val=\$$as_ac_Lib 19389 if test "x$as_val" = x""yes; then : 19390 cat >>confdefs.h <<_ACEOF 19391#define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1 19392_ACEOF 19393 19394 LIBS="-l"$LBERLIBNAME" $LIBS" 19395 19396else 19397 19398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5 19399$as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;} 19400 19401$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h 19402 19403 CURL_DISABLE_LDAP=1 19404 19405fi 19406 19407 19408$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h 19409 19410 CURL_DISABLE_LDAPS=1 19411 19412 fi 19413 fi 19414fi 19415 19416if test x$CURL_DISABLE_LDAP != x1 ; then 19417 for ac_func in ldap_url_parse ldap_init_fd 19418do : 19419 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19420ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19421eval as_val=\$$as_ac_var 19422 if test "x$as_val" = x""yes; then : 19423 cat >>confdefs.h <<_ACEOF 19424#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19425_ACEOF 19426 19427fi 19428done 19429 19430 19431 if test "$LDAPLIBNAME" = "wldap32"; then 19432 curl_ldap_msg="enabled (winldap)" 19433 19434$as_echo "#define CURL_LDAP_WIN 1" >>confdefs.h 19435 19436 else 19437 curl_ldap_msg="enabled (OpenLDAP)" 19438 if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then 19439 19440$as_echo "#define USE_OPENLDAP 1" >>confdefs.h 19441 19442 USE_OPENLDAP=1 19443 19444 fi 19445 fi 19446fi 19447 19448if test x$CURL_DISABLE_LDAPS != x1 ; then 19449 curl_ldaps_msg="enabled" 19450fi 19451 19452 19453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ipv6" >&5 19454$as_echo_n "checking whether to enable ipv6... " >&6; } 19455# Check whether --enable-ipv6 was given. 19456if test "${enable_ipv6+set}" = set; then : 19457 enableval=$enable_ipv6; case "$enableval" in 19458 no) 19459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19460$as_echo "no" >&6; } 19461 ipv6=no 19462 ;; 19463 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19464$as_echo "yes" >&6; } 19465 ipv6=yes 19466 ;; 19467 esac 19468else 19469 if test "$cross_compiling" = yes; then : 19470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19471$as_echo "no" >&6; } 19472 ipv6=no 19473 19474else 19475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19476/* end confdefs.h. */ 19477 /* is AF_INET6 available? */ 19478#include <sys/types.h> 19479#include <sys/socket.h> 19480main() 19481{ 19482 if (socket(AF_INET6, SOCK_STREAM, 0) < 0) 19483 exit(1); 19484 else 19485 exit(0); 19486} 19487 19488_ACEOF 19489if ac_fn_c_try_run "$LINENO"; then : 19490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19491$as_echo "yes" >&6; } 19492 ipv6=yes 19493else 19494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19495$as_echo "no" >&6; } 19496 ipv6=no 19497fi 19498rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19499 conftest.$ac_objext conftest.beam conftest.$ac_ext 19500fi 19501 19502fi 19503 19504 19505if test "$ipv6" = "yes"; then 19506 curl_ipv6_msg="enabled" 19507fi 19508 19509# Check if struct sockaddr_in6 have sin6_scope_id member 19510if test "$ipv6" = yes; then 19511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5 19512$as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; } 19513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19514/* end confdefs.h. */ 19515 19516#include <sys/types.h> 19517#include <netinet/in.h> 19518int main (void) 19519{ 19520struct sockaddr_in6 s; s.sin6_scope_id = 0; 19521 ; 19522 return 0; 19523} 19524_ACEOF 19525if ac_fn_c_try_compile "$LINENO"; then : 19526 have_sin6_scope_id=yes 19527fi 19528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19529 if test "$have_sin6_scope_id" = yes; then 19530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19531$as_echo "yes" >&6; } 19532 19533$as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h 19534 19535 else 19536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19537$as_echo "no" >&6; } 19538 fi 19539fi 19540 19541 19542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5 19543$as_echo_n "checking if argv can be written to... " >&6; } 19544if test "$cross_compiling" = yes; then : 19545 19546 curl_cv_writable_argv=cross 19547 19548else 19549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19550/* end confdefs.h. */ 19551 19552 19553int main(int argc, char ** argv) { 19554 argv[0][0] = ' '; 19555 return (argv[0][0] == ' ')?0:1; 19556} 19557 19558 19559_ACEOF 19560if ac_fn_c_try_run "$LINENO"; then : 19561 19562 curl_cv_writable_argv=yes 19563 19564else 19565 19566 curl_cv_writable_argv=no 19567 19568fi 19569rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19570 conftest.$ac_objext conftest.beam conftest.$ac_ext 19571fi 19572 19573case $curl_cv_writable_argv in 19574yes) 19575 19576$as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h 19577 19578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19579$as_echo "yes" >&6; } 19580 ;; 19581no) 19582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19583$as_echo "no" >&6; } 19584 ;; 19585*) 19586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19587$as_echo "no" >&6; } 19588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5 19589$as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;} 19590 ;; 19591esac 19592 19593 19594 19595# Check whether --with-krb4-includes was given. 19596if test "${with_krb4_includes+set}" = set; then : 19597 withval=$with_krb4_includes; 19598 CPPFLAGS="$CPPFLAGS -I$withval" 19599 KRB4INC="$withval" 19600 want_krb4=yes 19601 19602fi 19603 19604 19605 19606# Check whether --with-krb4-libs was given. 19607if test "${with_krb4_libs+set}" = set; then : 19608 withval=$with_krb4_libs; 19609 LDFLAGS="$LDFLAGS -L$withval" 19610 KRB4LIB="$withval" 19611 want_krb4=yes 19612 19613fi 19614 19615 19616 19617OPT_KRB4=off 19618 19619# Check whether --with-krb4 was given. 19620if test "${with_krb4+set}" = set; then : 19621 withval=$with_krb4; 19622 OPT_KRB4="$withval" 19623 if test X"$OPT_KRB4" != Xno; then 19624 want_krb4="yes" 19625 if test X"$OPT_KRB4" != Xyes; then 19626 LDFLAGS="$LDFLAGS -L$OPT_KRB4/lib$libsuff" 19627 KRB4LIB="$OPT_KRB4/lib$libsuff" 19628 CPPFLAGS="$CPPFLAGS -I$OPT_KRB4/include" 19629 KRB4INC="$OPT_KRB4/include" 19630 fi 19631 fi 19632 19633fi 19634 19635 19636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Kerberos4 support is requested" >&5 19637$as_echo_n "checking if Kerberos4 support is requested... " >&6; } 19638 19639if test "$want_krb4" = yes 19640then 19641 if test "$ipv6" = "yes"; then 19642 echo krb4 is not compatible with IPv6 19643 exit 1 19644 fi 19645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19646$as_echo "yes" >&6; } 19647 19648 19649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to look for Kerberos4" >&5 19650$as_echo_n "checking where to look for Kerberos4... " >&6; } 19651 if test X"$OPT_KRB4" = Xyes 19652 then 19653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaults" >&5 19654$as_echo "defaults" >&6; } 19655 else 19656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libs in $KRB4LIB, headers in $KRB4INC" >&5 19657$as_echo "libs in $KRB4LIB, headers in $KRB4INC" >&6; } 19658 fi 19659 19660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_pcbc_encrypt in -ldes" >&5 19661$as_echo_n "checking for des_pcbc_encrypt in -ldes... " >&6; } 19662if test "${ac_cv_lib_des_des_pcbc_encrypt+set}" = set; then : 19663 $as_echo_n "(cached) " >&6 19664else 19665 ac_check_lib_save_LIBS=$LIBS 19666LIBS="-ldes $LIBS" 19667cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19668/* end confdefs.h. */ 19669 19670 19671#ifdef __cplusplus 19672extern "C" 19673#endif 19674char des_pcbc_encrypt (); 19675int main (void) 19676{ 19677return des_pcbc_encrypt (); 19678 ; 19679 return 0; 19680} 19681_ACEOF 19682if ac_fn_c_try_link "$LINENO"; then : 19683 ac_cv_lib_des_des_pcbc_encrypt=yes 19684else 19685 ac_cv_lib_des_des_pcbc_encrypt=no 19686fi 19687rm -f core conftest.err conftest.$ac_objext \ 19688 conftest$ac_exeext conftest.$ac_ext 19689LIBS=$ac_check_lib_save_LIBS 19690fi 19691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_pcbc_encrypt" >&5 19692$as_echo "$ac_cv_lib_des_des_pcbc_encrypt" >&6; } 19693if test "x$ac_cv_lib_des_des_pcbc_encrypt" = x""yes; then : 19694 19695 for ac_header in des.h 19696do : 19697 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default" 19698if test "x$ac_cv_header_des_h" = x""yes; then : 19699 cat >>confdefs.h <<_ACEOF 19700#define HAVE_DES_H 1 19701_ACEOF 19702 19703fi 19704 19705done 19706 19707 19708 ac_fn_c_check_func "$LINENO" "res_search" "ac_cv_func_res_search" 19709if test "x$ac_cv_func_res_search" = x""yes; then : 19710 19711else 19712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5 19713$as_echo_n "checking for res_search in -lresolv... " >&6; } 19714if test "${ac_cv_lib_resolv_res_search+set}" = set; then : 19715 $as_echo_n "(cached) " >&6 19716else 19717 ac_check_lib_save_LIBS=$LIBS 19718LIBS="-lresolv $LIBS" 19719cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19720/* end confdefs.h. */ 19721 19722 19723#ifdef __cplusplus 19724extern "C" 19725#endif 19726char res_search (); 19727int main (void) 19728{ 19729return res_search (); 19730 ; 19731 return 0; 19732} 19733_ACEOF 19734if ac_fn_c_try_link "$LINENO"; then : 19735 ac_cv_lib_resolv_res_search=yes 19736else 19737 ac_cv_lib_resolv_res_search=no 19738fi 19739rm -f core conftest.err conftest.$ac_objext \ 19740 conftest$ac_exeext conftest.$ac_ext 19741LIBS=$ac_check_lib_save_LIBS 19742fi 19743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5 19744$as_echo "$ac_cv_lib_resolv_res_search" >&6; } 19745if test "x$ac_cv_lib_resolv_res_search" = x""yes; then : 19746 cat >>confdefs.h <<_ACEOF 19747#define HAVE_LIBRESOLV 1 19748_ACEOF 19749 19750 LIBS="-lresolv $LIBS" 19751 19752fi 19753 19754fi 19755 19756 19757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_net_read in -lkrb" >&5 19758$as_echo_n "checking for krb_net_read in -lkrb... " >&6; } 19759if test "${ac_cv_lib_krb_krb_net_read+set}" = set; then : 19760 $as_echo_n "(cached) " >&6 19761else 19762 ac_check_lib_save_LIBS=$LIBS 19763LIBS="-lkrb $LIBS" 19764cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19765/* end confdefs.h. */ 19766 19767 19768#ifdef __cplusplus 19769extern "C" 19770#endif 19771char krb_net_read (); 19772int main (void) 19773{ 19774return krb_net_read (); 19775 ; 19776 return 0; 19777} 19778_ACEOF 19779if ac_fn_c_try_link "$LINENO"; then : 19780 ac_cv_lib_krb_krb_net_read=yes 19781else 19782 ac_cv_lib_krb_krb_net_read=no 19783fi 19784rm -f core conftest.err conftest.$ac_objext \ 19785 conftest$ac_exeext conftest.$ac_ext 19786LIBS=$ac_check_lib_save_LIBS 19787fi 19788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_net_read" >&5 19789$as_echo "$ac_cv_lib_krb_krb_net_read" >&6; } 19790if test "x$ac_cv_lib_krb_krb_net_read" = x""yes; then : 19791 19792 for ac_header in krb.h 19793do : 19794 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default" 19795if test "x$ac_cv_header_krb_h" = x""yes; then : 19796 cat >>confdefs.h <<_ACEOF 19797#define HAVE_KRB_H 1 19798_ACEOF 19799 19800fi 19801 19802done 19803 19804 19805 LIBS="-lkrb -lcom_err -ldes $LIBS" 19806 19807 for ac_func in krb_get_our_ip_for_realm 19808do : 19809 ac_fn_c_check_func "$LINENO" "krb_get_our_ip_for_realm" "ac_cv_func_krb_get_our_ip_for_realm" 19810if test "x$ac_cv_func_krb_get_our_ip_for_realm" = x""yes; then : 19811 cat >>confdefs.h <<_ACEOF 19812#define HAVE_KRB_GET_OUR_IP_FOR_REALM 1 19813_ACEOF 19814 19815fi 19816done 19817 19818 19819 19820$as_echo "#define HAVE_KRB4 1" >>confdefs.h 19821 19822 19823 KRB4_ENABLED=1 19824 19825 19826 curl_krb4_msg="enabled" 19827 19828 for ac_func in strlcpy 19829do : 19830 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 19831if test "x$ac_cv_func_strlcpy" = x""yes; then : 19832 cat >>confdefs.h <<_ACEOF 19833#define HAVE_STRLCPY 1 19834_ACEOF 19835 19836fi 19837done 19838 19839 19840 19841fi 19842 19843 19844fi 19845 19846else 19847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19848$as_echo "no" >&6; } 19849fi 19850 19851 19852 19853# Check whether --with-spnego was given. 19854if test "${with_spnego+set}" = set; then : 19855 withval=$with_spnego; 19856 SPNEGO_ROOT="$withval" 19857 if test x"$SPNEGO_ROOT" != xno; then 19858 want_spnego="yes" 19859 fi 19860 19861fi 19862 19863 19864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SPNEGO support is requested" >&5 19865$as_echo_n "checking if SPNEGO support is requested... " >&6; } 19866if test x"$want_spnego" = xyes; then 19867 19868 if test X"$SPNEGO_ROOT" = Xyes; then 19869 as_fn_error "FBOpenSSL libs and/or directories were not found where specified!" "$LINENO" 5 19870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19871$as_echo "no" >&6; } 19872 else 19873 if test -z "$SPNEGO_LIB_DIR"; then 19874 LDFLAGS="$LDFLAGS -L$SPNEGO_ROOT -lfbopenssl" 19875 else 19876 LDFLAGS="$LDFLAGS $SPNEGO_LIB_DIR" 19877 fi 19878 19879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19880$as_echo "yes" >&6; } 19881 19882$as_echo "#define HAVE_SPNEGO 1" >>confdefs.h 19883 19884 curl_spnego_msg="enabled" 19885 fi 19886else 19887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19888$as_echo "no" >&6; } 19889fi 19890 19891 19892 19893GSSAPI_ROOT="/usr" 19894 19895# Check whether --with-gssapi-includes was given. 19896if test "${with_gssapi_includes+set}" = set; then : 19897 withval=$with_gssapi_includes; GSSAPI_INCS="-I$withval" 19898 want_gss="yes" 19899 19900fi 19901 19902 19903 19904# Check whether --with-gssapi-libs was given. 19905if test "${with_gssapi_libs+set}" = set; then : 19906 withval=$with_gssapi_libs; GSSAPI_LIB_DIR="-L$withval" 19907 want_gss="yes" 19908 19909fi 19910 19911 19912 19913# Check whether --with-gssapi was given. 19914if test "${with_gssapi+set}" = set; then : 19915 withval=$with_gssapi; 19916 GSSAPI_ROOT="$withval" 19917 if test x"$GSSAPI_ROOT" != xno; then 19918 want_gss="yes" 19919 if test x"$GSSAPI_ROOT" = xyes; then 19920 GSSAPI_ROOT="/usr" 19921 fi 19922 fi 19923 19924fi 19925 19926 19927save_CPPFLAGS="$CPPFLAGS" 19928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSSAPI support is requested" >&5 19929$as_echo_n "checking if GSSAPI support is requested... " >&6; } 19930if test x"$want_gss" = xyes; then 19931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19932$as_echo "yes" >&6; } 19933 19934 if test -z "$GSSAPI_INCS"; then 19935 if test -f "$GSSAPI_ROOT/bin/krb5-config"; then 19936 GSSAPI_INCS=`$GSSAPI_ROOT/bin/krb5-config --cflags gssapi` 19937 elif test "$GSSAPI_ROOT" != "yes"; then 19938 GSSAPI_INCS="-I$GSSAPI_ROOT/include" 19939 fi 19940 fi 19941 19942 CPPFLAGS="$CPPFLAGS $GSSAPI_INCS" 19943 19944 ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default" 19945if test "x$ac_cv_header_gss_h" = x""yes; then : 19946 19947 19948$as_echo "#define HAVE_GSSGNU 1" >>confdefs.h 19949 19950 gnu_gss=yes 19951 19952else 19953 19954 for ac_header in gssapi/gssapi.h 19955do : 19956 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default" 19957if test "x$ac_cv_header_gssapi_gssapi_h" = x""yes; then : 19958 cat >>confdefs.h <<_ACEOF 19959#define HAVE_GSSAPI_GSSAPI_H 1 19960_ACEOF 19961 19962else 19963 not_mit=1 19964fi 19965 19966done 19967 19968 for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h 19969do : 19970 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19971ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 19972$ac_includes_default 19973#ifdef HAVE_GSSAPI_GSSAPI_H 19974#include <gssapi/gssapi.h> 19975#endif 19976 19977" 19978eval as_val=\$$as_ac_Header 19979 if test "x$as_val" = x""yes; then : 19980 cat >>confdefs.h <<_ACEOF 19981#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19982_ACEOF 19983 19984else 19985 not_mit=1 19986fi 19987 19988done 19989 19990 if test "x$not_mit" = "x1"; then 19991 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" 19992if test "x$ac_cv_header_gssapi_h" = x""yes; then : 19993 19994 19995$as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h 19996 19997 19998else 19999 20000 want_gss=no 20001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSSAPI since no header files was found" >&5 20002$as_echo "$as_me: WARNING: disabling GSSAPI since no header files was found" >&2;} 20003 20004 20005fi 20006 20007 20008 else 20009 20010$as_echo "#define HAVE_GSSMIT 1" >>confdefs.h 20011 20012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gssapi headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5 20013$as_echo_n "checking if gssapi headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; } 20014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20015/* end confdefs.h. */ 20016 20017 20018#include <gssapi/gssapi.h> 20019#include <gssapi/gssapi_generic.h> 20020#include <gssapi/gssapi_krb5.h> 20021 20022int main (void) 20023{ 20024 20025 gss_import_name( 20026 (OM_uint32 *)0, 20027 (gss_buffer_t)0, 20028 GSS_C_NT_HOSTBASED_SERVICE, 20029 (gss_name_t *)0); 20030 20031 ; 20032 return 0; 20033} 20034 20035_ACEOF 20036if ac_fn_c_try_compile "$LINENO"; then : 20037 20038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20039$as_echo "yes" >&6; } 20040 20041else 20042 20043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20044$as_echo "no" >&6; } 20045 20046$as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h 20047 20048 20049fi 20050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20051 fi 20052 20053 20054fi 20055 20056 20057else 20058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20059$as_echo "no" >&6; } 20060fi 20061if test x"$want_gss" = xyes; then 20062 20063$as_echo "#define HAVE_GSSAPI 1" >>confdefs.h 20064 20065 20066 curl_gss_msg="enabled (MIT/Heimdal)" 20067 20068 if test -n "$gnu_gss"; then 20069 curl_gss_msg="enabled (GNU GSS)" 20070 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR" 20071 LIBS="$LIBS -lgss" 20072 elif test -z "$GSSAPI_LIB_DIR"; then 20073 case $host in 20074 *-*-darwin*) 20075 LIBS="$LIBS -lgssapi_krb5 -lresolv" 20076 ;; 20077 *) 20078 if test -f "$GSSAPI_ROOT/bin/krb5-config"; then 20079 gss_libs=`$GSSAPI_ROOT/bin/krb5-config --libs gssapi` 20080 LIBS="$LIBS $gss_libs" 20081 elif test "$GSSAPI_ROOT" != "yes"; then 20082 LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff" 20083 LIBS="$LIBS -lgssapi" 20084 else 20085 LIBS="$LIBS -lgssapi" 20086 fi 20087 ;; 20088 esac 20089 else 20090 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR" 20091 LIBS="$LIBS -lgssapi" 20092 fi 20093else 20094 CPPFLAGS="$save_CPPFLAGS" 20095fi 20096 20097 20098OPT_SSL=off 20099ca="no" 20100 20101# Check whether --with-ssl was given. 20102if test "${with_ssl+set}" = set; then : 20103 withval=$with_ssl; OPT_SSL=$withval 20104fi 20105 20106 20107if test X"$OPT_SSL" != Xno; then 20108 CLEANLDFLAGS="$LDFLAGS" 20109 CLEANCPPFLAGS="$CPPFLAGS" 20110 CLEANLIBS="$LIBS" 20111 20112 case "$OPT_SSL" in 20113 yes) 20114 if test x$cross_compiling != xyes; then 20115 PKGTEST="yes" 20116 fi 20117 PREFIX_OPENSSL=/usr/local/ssl 20118 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff" 20119 ;; 20120 off) 20121 if test x$cross_compiling != xyes; then 20122 PKGTEST="yes" 20123 fi 20124 PREFIX_OPENSSL= 20125 ;; 20126 *) 20127 PKGTEST="no" 20128 PREFIX_OPENSSL=$OPT_SSL 20129 20130 OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig" 20131 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5 20132$as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;} 20133 if test -f "$OPENSSL_PCDIR/openssl.pc"; then 20134 PKGTEST="yes" 20135 fi 20136 20137 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff" 20138 if test "$PREFIX_OPENSSL" != "/usr" ; then 20139 SSL_LDFLAGS="-L$LIB_OPENSSL" 20140 SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include" 20141 fi 20142 SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl" 20143 ;; 20144 esac 20145 20146 if test "$PKGTEST" = "yes"; then 20147 20148 20149 20150 PKGCONFIG="no" 20151 20152 if test x$cross_compiling = xyes; then 20153 # Extract the first word of "${host}-pkg-config", so it can be a program name with args. 20154set dummy ${host}-pkg-config; ac_word=$2 20155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20156$as_echo_n "checking for $ac_word... " >&6; } 20157if test "${ac_cv_path_PKGCONFIG+set}" = set; then : 20158 $as_echo_n "(cached) " >&6 20159else 20160 case $PKGCONFIG in 20161 [\\/]* | ?:[\\/]*) 20162 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 20163 ;; 20164 *) 20165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20166as_dummy="$PATH:/usr/bin:/usr/local/bin" 20167for as_dir in $as_dummy 20168do 20169 IFS=$as_save_IFS 20170 test -z "$as_dir" && as_dir=. 20171 for ac_exec_ext in '' $ac_executable_extensions; do 20172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20173 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 20174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20175 break 2 20176 fi 20177done 20178 done 20179IFS=$as_save_IFS 20180 20181 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no" 20182 ;; 20183esac 20184fi 20185PKGCONFIG=$ac_cv_path_PKGCONFIG 20186if test -n "$PKGCONFIG"; then 20187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 20188$as_echo "$PKGCONFIG" >&6; } 20189else 20190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20191$as_echo "no" >&6; } 20192fi 20193 20194 20195 fi 20196 20197 if test x$PKGCONFIG = xno; then 20198 # Extract the first word of "pkg-config", so it can be a program name with args. 20199set dummy pkg-config; ac_word=$2 20200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20201$as_echo_n "checking for $ac_word... " >&6; } 20202if test "${ac_cv_path_PKGCONFIG+set}" = set; then : 20203 $as_echo_n "(cached) " >&6 20204else 20205 case $PKGCONFIG in 20206 [\\/]* | ?:[\\/]*) 20207 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 20208 ;; 20209 *) 20210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20211as_dummy="$PATH:/usr/bin:/usr/local/bin" 20212for as_dir in $as_dummy 20213do 20214 IFS=$as_save_IFS 20215 test -z "$as_dir" && as_dir=. 20216 for ac_exec_ext in '' $ac_executable_extensions; do 20217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20218 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 20219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20220 break 2 20221 fi 20222done 20223 done 20224IFS=$as_save_IFS 20225 20226 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no" 20227 ;; 20228esac 20229fi 20230PKGCONFIG=$ac_cv_path_PKGCONFIG 20231if test -n "$PKGCONFIG"; then 20232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 20233$as_echo "$PKGCONFIG" >&6; } 20234else 20235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20236$as_echo "no" >&6; } 20237fi 20238 20239 20240 fi 20241 20242 if test x$PKGCONFIG != xno; then 20243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5 20244$as_echo_n "checking for openssl options with pkg-config... " >&6; } 20245 itexists=` 20246 if test -n "$OPENSSL_PCDIR"; then 20247 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR" 20248 export PKG_CONFIG_LIBDIR 20249 fi 20250 $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1` 20251 20252 if test -z "$itexists"; then 20253 PKGCONFIG="no" 20254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20255$as_echo "no" >&6; } 20256 else 20257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 20258$as_echo "found" >&6; } 20259 fi 20260 fi 20261 20262 20263 if test "$PKGCONFIG" != "no" ; then 20264 SSL_LIBS=` 20265 if test -n "$OPENSSL_PCDIR"; then 20266 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR" 20267 export PKG_CONFIG_LIBDIR 20268 fi 20269 $PKGCONFIG --libs-only-l openssl 2>/dev/null` 20270 20271 SSL_LDFLAGS=` 20272 if test -n "$OPENSSL_PCDIR"; then 20273 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR" 20274 export PKG_CONFIG_LIBDIR 20275 fi 20276 $PKGCONFIG --libs-only-L openssl 2>/dev/null` 20277 20278 SSL_CPPFLAGS=` 20279 if test -n "$OPENSSL_PCDIR"; then 20280 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR" 20281 export PKG_CONFIG_LIBDIR 20282 fi 20283 $PKGCONFIG --cflags-only-I openssl 2>/dev/null` 20284 20285 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5 20286$as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;} 20287 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5 20288$as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;} 20289 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5 20290$as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;} 20291 20292 LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'` 20293 20294 LIBS="$LIBS $SSL_LIBS" 20295 fi 20296 fi 20297 20298 CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS" 20299 LDFLAGS="$LDFLAGS $SSL_LDFLAGS" 20300 20301 case $host in 20302 *-*-msys* | *-*-mingw*) 20303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5 20304$as_echo_n "checking for gdi32... " >&6; } 20305 my_ac_save_LIBS=$LIBS 20306 LIBS="-lgdi32 $LIBS" 20307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20308/* end confdefs.h. */ 20309#include <windef.h> 20310 #include <wingdi.h> 20311int main (void) 20312{ 20313GdiFlush(); 20314 ; 20315 return 0; 20316} 20317_ACEOF 20318if ac_fn_c_try_link "$LINENO"; then : 20319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20320$as_echo "yes" >&6; } 20321else 20322 LIBS=$my_ac_save_LIBS 20323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20324$as_echo "no" >&6; } 20325 20326fi 20327rm -f core conftest.err conftest.$ac_objext \ 20328 conftest$ac_exeext conftest.$ac_ext 20329 ;; 20330 esac 20331 20332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_lock in -lcrypto" >&5 20333$as_echo_n "checking for CRYPTO_lock in -lcrypto... " >&6; } 20334if test "${ac_cv_lib_crypto_CRYPTO_lock+set}" = set; then : 20335 $as_echo_n "(cached) " >&6 20336else 20337 ac_check_lib_save_LIBS=$LIBS 20338LIBS="-lcrypto $LIBS" 20339cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20340/* end confdefs.h. */ 20341 20342 20343#ifdef __cplusplus 20344extern "C" 20345#endif 20346char CRYPTO_lock (); 20347int main (void) 20348{ 20349return CRYPTO_lock (); 20350 ; 20351 return 0; 20352} 20353_ACEOF 20354if ac_fn_c_try_link "$LINENO"; then : 20355 ac_cv_lib_crypto_CRYPTO_lock=yes 20356else 20357 ac_cv_lib_crypto_CRYPTO_lock=no 20358fi 20359rm -f core conftest.err conftest.$ac_objext \ 20360 conftest$ac_exeext conftest.$ac_ext 20361LIBS=$ac_check_lib_save_LIBS 20362fi 20363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_lock" >&5 20364$as_echo "$ac_cv_lib_crypto_CRYPTO_lock" >&6; } 20365if test "x$ac_cv_lib_crypto_CRYPTO_lock" = x""yes; then : 20366 20367 HAVECRYPTO="yes" 20368 LIBS="-lcrypto $LIBS" 20369 20370else 20371 20372 LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL" 20373 CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include" 20374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_add_lock in -lcrypto" >&5 20375$as_echo_n "checking for CRYPTO_add_lock in -lcrypto... " >&6; } 20376if test "${ac_cv_lib_crypto_CRYPTO_add_lock+set}" = set; then : 20377 $as_echo_n "(cached) " >&6 20378else 20379 ac_check_lib_save_LIBS=$LIBS 20380LIBS="-lcrypto $LIBS" 20381cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20382/* end confdefs.h. */ 20383 20384 20385#ifdef __cplusplus 20386extern "C" 20387#endif 20388char CRYPTO_add_lock (); 20389int main (void) 20390{ 20391return CRYPTO_add_lock (); 20392 ; 20393 return 0; 20394} 20395_ACEOF 20396if ac_fn_c_try_link "$LINENO"; then : 20397 ac_cv_lib_crypto_CRYPTO_add_lock=yes 20398else 20399 ac_cv_lib_crypto_CRYPTO_add_lock=no 20400fi 20401rm -f core conftest.err conftest.$ac_objext \ 20402 conftest$ac_exeext conftest.$ac_ext 20403LIBS=$ac_check_lib_save_LIBS 20404fi 20405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_add_lock" >&5 20406$as_echo "$ac_cv_lib_crypto_CRYPTO_add_lock" >&6; } 20407if test "x$ac_cv_lib_crypto_CRYPTO_add_lock" = x""yes; then : 20408 20409 HAVECRYPTO="yes" 20410 LIBS="-lcrypto $LIBS" 20411else 20412 20413 LDFLAGS="$CLEANLDFLAGS" 20414 CPPFLAGS="$CLEANCPPFLAGS" 20415 LIBS="$CLEANLIBS" 20416 20417fi 20418 20419 20420fi 20421 20422 20423 20424 if test X"$HAVECRYPTO" = X"yes"; then 20425 20426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5 20427$as_echo_n "checking for SSL_connect in -lssl... " >&6; } 20428if test "${ac_cv_lib_ssl_SSL_connect+set}" = set; then : 20429 $as_echo_n "(cached) " >&6 20430else 20431 ac_check_lib_save_LIBS=$LIBS 20432LIBS="-lssl $LIBS" 20433cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20434/* end confdefs.h. */ 20435 20436 20437#ifdef __cplusplus 20438extern "C" 20439#endif 20440char SSL_connect (); 20441int main (void) 20442{ 20443return SSL_connect (); 20444 ; 20445 return 0; 20446} 20447_ACEOF 20448if ac_fn_c_try_link "$LINENO"; then : 20449 ac_cv_lib_ssl_SSL_connect=yes 20450else 20451 ac_cv_lib_ssl_SSL_connect=no 20452fi 20453rm -f core conftest.err conftest.$ac_objext \ 20454 conftest$ac_exeext conftest.$ac_ext 20455LIBS=$ac_check_lib_save_LIBS 20456fi 20457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5 20458$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; } 20459if test "x$ac_cv_lib_ssl_SSL_connect" = x""yes; then : 20460 cat >>confdefs.h <<_ACEOF 20461#define HAVE_LIBSSL 1 20462_ACEOF 20463 20464 LIBS="-lssl $LIBS" 20465 20466fi 20467 20468 20469 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then 20470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5 20471$as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; }; 20472 OLIBS=$LIBS 20473 LIBS="$LIBS -lRSAglue -lrsaref" 20474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5 20475$as_echo_n "checking for SSL_connect in -lssl... " >&6; } 20476if test "${ac_cv_lib_ssl_SSL_connect+set}" = set; then : 20477 $as_echo_n "(cached) " >&6 20478else 20479 ac_check_lib_save_LIBS=$LIBS 20480LIBS="-lssl $LIBS" 20481cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20482/* end confdefs.h. */ 20483 20484 20485#ifdef __cplusplus 20486extern "C" 20487#endif 20488char SSL_connect (); 20489int main (void) 20490{ 20491return SSL_connect (); 20492 ; 20493 return 0; 20494} 20495_ACEOF 20496if ac_fn_c_try_link "$LINENO"; then : 20497 ac_cv_lib_ssl_SSL_connect=yes 20498else 20499 ac_cv_lib_ssl_SSL_connect=no 20500fi 20501rm -f core conftest.err conftest.$ac_objext \ 20502 conftest$ac_exeext conftest.$ac_ext 20503LIBS=$ac_check_lib_save_LIBS 20504fi 20505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5 20506$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; } 20507if test "x$ac_cv_lib_ssl_SSL_connect" = x""yes; then : 20508 cat >>confdefs.h <<_ACEOF 20509#define HAVE_LIBSSL 1 20510_ACEOF 20511 20512 LIBS="-lssl $LIBS" 20513 20514fi 20515 20516 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then 20517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20518$as_echo "no" >&6; } 20519 LIBS=$OLIBS 20520 else 20521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20522$as_echo "yes" >&6; } 20523 fi 20524 20525 else 20526 20527 for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \ 20528 openssl/pem.h openssl/ssl.h openssl/err.h 20529do : 20530 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20531ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 20532eval as_val=\$$as_ac_Header 20533 if test "x$as_val" = x""yes; then : 20534 cat >>confdefs.h <<_ACEOF 20535#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20536_ACEOF 20537 curl_ssl_msg="enabled (OpenSSL)" 20538 OPENSSL_ENABLED=1 20539 20540$as_echo "#define USE_OPENSSL 1" >>confdefs.h 20541 20542fi 20543 20544done 20545 20546 20547 if test $ac_cv_header_openssl_x509_h = no; then 20548 for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h 20549do : 20550 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20551ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 20552eval as_val=\$$as_ac_Header 20553 if test "x$as_val" = x""yes; then : 20554 cat >>confdefs.h <<_ACEOF 20555#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20556_ACEOF 20557 20558fi 20559 20560done 20561 20562 20563 if test $ac_cv_header_x509_h = yes && 20564 test $ac_cv_header_crypto_h = yes && 20565 test $ac_cv_header_ssl_h = yes; then 20566 curl_ssl_msg="enabled (OpenSSL)" 20567 OPENSSL_ENABLED=1 20568 fi 20569 fi 20570 fi 20571 20572 if test X"$OPENSSL_ENABLED" = X"1"; then 20573 20574$as_echo "#define USE_SSLEAY 1" >>confdefs.h 20575 20576 20577 for ac_header in openssl/pkcs12.h 20578do : 20579 ac_fn_c_check_header_mongrel "$LINENO" "openssl/pkcs12.h" "ac_cv_header_openssl_pkcs12_h" "$ac_includes_default" 20580if test "x$ac_cv_header_openssl_pkcs12_h" = x""yes; then : 20581 cat >>confdefs.h <<_ACEOF 20582#define HAVE_OPENSSL_PKCS12_H 1 20583_ACEOF 20584 20585fi 20586 20587done 20588 20589 else 20590 LIBS="$CLEANLIBS" 20591 fi 20592 USE_SSLEAY="$OPENSSL_ENABLED" 20593 20594 20595 if test X"$OPT_SSL" != Xoff && 20596 test "$OPENSSL_ENABLED" != "1"; then 20597 as_fn_error "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5 20598 fi 20599 fi 20600 20601 if test X"$OPENSSL_ENABLED" = X"1"; then 20602 ac_fn_c_check_func "$LINENO" "ENGINE_init" "ac_cv_func_ENGINE_init" 20603if test "x$ac_cv_func_ENGINE_init" = x""yes; then : 20604 20605 for ac_header in openssl/engine.h 20606do : 20607 ac_fn_c_check_header_mongrel "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default" 20608if test "x$ac_cv_header_openssl_engine_h" = x""yes; then : 20609 cat >>confdefs.h <<_ACEOF 20610#define HAVE_OPENSSL_ENGINE_H 1 20611_ACEOF 20612 20613fi 20614 20615done 20616 20617 for ac_func in ENGINE_load_builtin_engines 20618do : 20619 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20620ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20621eval as_val=\$$as_ac_var 20622 if test "x$as_val" = x""yes; then : 20623 cat >>confdefs.h <<_ACEOF 20624#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20625_ACEOF 20626 20627fi 20628done 20629 20630 20631fi 20632 20633 20634 20635 for ac_func in RAND_status \ 20636 RAND_screen \ 20637 RAND_egd \ 20638 ENGINE_cleanup \ 20639 CRYPTO_cleanup_all_ex_data \ 20640 SSL_get_shutdown 20641do : 20642 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20643ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20644eval as_val=\$$as_ac_var 20645 if test "x$as_val" = x""yes; then : 20646 cat >>confdefs.h <<_ACEOF 20647#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20648_ACEOF 20649 20650fi 20651done 20652 20653 20654 20655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yaSSL using OpenSSL compatibility mode" >&5 20656$as_echo_n "checking for yaSSL using OpenSSL compatibility mode... " >&6; } 20657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20658/* end confdefs.h. */ 20659 20660 20661#include <openssl/ssl.h> 20662 20663int main (void) 20664{ 20665 20666#if defined(YASSL_VERSION) && defined(OPENSSL_VERSION_NUMBER) 20667 int dummy = SSL_ERROR_NONE; 20668#else 20669 Not the yaSSL OpenSSL compatibility header. 20670#endif 20671 20672 ; 20673 return 0; 20674} 20675 20676_ACEOF 20677if ac_fn_c_try_compile "$LINENO"; then : 20678 20679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20680$as_echo "yes" >&6; } 20681 20682cat >>confdefs.h <<_ACEOF 20683#define USE_YASSLEMUL 1 20684_ACEOF 20685 20686 curl_ssl_msg="enabled (OpenSSL emulation by yaSSL)" 20687 20688else 20689 20690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20691$as_echo "no" >&6; } 20692 20693fi 20694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20695 fi 20696 20697 if test "$OPENSSL_ENABLED" = "1"; then 20698 if test -n "$LIB_OPENSSL"; then 20699 20700 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_OPENSSL" 20701 export LD_LIBRARY_PATH 20702 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&5 20703$as_echo "$as_me: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&6;} 20704 fi 20705 20706 # 20707 20708 # 20709 tst_api="unknown" 20710 # 20711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5 20712$as_echo_n "checking for OpenSSL headers version... " >&6; } 20713 20714 if test -z "$SED"; then 20715 as_fn_error "SED not set. Cannot continue without SED being set." "$LINENO" 5 20716 fi 20717 if test -z "$GREP"; then 20718 as_fn_error "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 20719 fi 20720 20721 tmp_exp="" 20722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20723/* end confdefs.h. */ 20724 20725 20726# ifdef USE_OPENSSL 20727# include <openssl/crypto.h> 20728# else 20729# include <crypto.h> 20730# endif 20731 20732#ifdef OPENSSL_VERSION_NUMBER 20733CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER 20734#endif 20735 20736 20737_ACEOF 20738if ac_fn_c_try_cpp "$LINENO"; then : 20739 20740 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ 20741 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ 20742 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ 20743 "$SED" 's/["][ ]*["]//g' 2>/dev/null` 20744 if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then 20745 tmp_exp="" 20746 fi 20747 20748fi 20749rm -f conftest.err conftest.$ac_ext 20750 if test -z "$tmp_exp"; then 20751 curl_cv_have_def_OPENSSL_VERSION_NUMBER=no 20752 20753 else 20754 curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes 20755 curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp 20756 20757 fi 20758 20759 if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then 20760 tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'` 20761 case "x$tst_verlen" in 20762 x6) 20763 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3` 20764 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4` 20765 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5` 20766 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix 20767 ;; 20768 x11|x10) 20769 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3` 20770 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5` 20771 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7` 20772 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix 20773 ;; 20774 *) 20775 tst_api="unknown" 20776 ;; 20777 esac 20778 case $tst_api in 20779 0x110) tst_show="1.1.0" ;; 20780 0x101) tst_show="1.0.1" ;; 20781 0x100) tst_show="1.0.0" ;; 20782 0x099) tst_show="0.9.9" ;; 20783 0x098) tst_show="0.9.8" ;; 20784 0x097) tst_show="0.9.7" ;; 20785 0x096) tst_show="0.9.6" ;; 20786 0x095) tst_show="0.9.5" ;; 20787 0x094) tst_show="0.9.4" ;; 20788 0x093) tst_show="0.9.3" ;; 20789 0x092) tst_show="0.9.2" ;; 20790 0x091) tst_show="0.9.1" ;; 20791 *) tst_show="unknown" ;; 20792 esac 20793 tst_show="$tst_show - $curl_cv_def_OPENSSL_VERSION_NUMBER" 20794 else 20795 tst_show="unknown" 20796 fi 20797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5 20798$as_echo "$tst_show" >&6; } 20799 # 20800 curl_openssl_api_headers=$tst_api 20801 20802 20803 # 20804 tst_api="unknown" 20805 # 20806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5 20807$as_echo_n "checking for OpenSSL library version... " >&6; } 20808 if test "$tst_api" = "unknown"; then 20809 case $host in 20810 *-*-vms*) 20811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20812/* end confdefs.h. */ 20813 20814 20815#define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb 20816#ifdef __STDC__ 20817# include <limits.h> 20818#else 20819# include <assert.h> 20820#endif 20821#undef SSL_CTX_set_not_resumbl_sess_cb 20822#ifdef __cplusplus 20823extern "C" 20824#endif 20825char SSL_CTX_set_not_resumbl_sess_cb (); 20826#if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb 20827choke me 20828#endif 20829 20830int main (void) 20831{ 20832return SSL_CTX_set_not_resumbl_sess_cb (); 20833 ; 20834 return 0; 20835} 20836 20837_ACEOF 20838if ac_fn_c_try_link "$LINENO"; then : 20839 20840 tst_api="0x110" 20841 20842fi 20843rm -f core conftest.err conftest.$ac_objext \ 20844 conftest$ac_exeext conftest.$ac_ext 20845 ;; 20846 *) 20847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20848/* end confdefs.h. */ 20849 20850 20851#define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback 20852#ifdef __STDC__ 20853# include <limits.h> 20854#else 20855# include <assert.h> 20856#endif 20857#undef SSL_CTX_set_not_resumable_session_callback 20858#ifdef __cplusplus 20859extern "C" 20860#endif 20861char SSL_CTX_set_not_resumable_session_callback (); 20862#if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback 20863choke me 20864#endif 20865 20866int main (void) 20867{ 20868return SSL_CTX_set_not_resumable_session_callback (); 20869 ; 20870 return 0; 20871} 20872 20873_ACEOF 20874if ac_fn_c_try_link "$LINENO"; then : 20875 20876 tst_api="0x110" 20877 20878fi 20879rm -f core conftest.err conftest.$ac_objext \ 20880 conftest$ac_exeext conftest.$ac_ext 20881 ;; 20882 esac 20883 fi 20884 if test "$tst_api" = "unknown"; then 20885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20886/* end confdefs.h. */ 20887 20888 20889#define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated 20890#ifdef __STDC__ 20891# include <limits.h> 20892#else 20893# include <assert.h> 20894#endif 20895#undef SSL_renegotiate_abbreviated 20896#ifdef __cplusplus 20897extern "C" 20898#endif 20899char SSL_renegotiate_abbreviated (); 20900#if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated 20901choke me 20902#endif 20903 20904int main (void) 20905{ 20906return SSL_renegotiate_abbreviated (); 20907 ; 20908 return 0; 20909} 20910 20911_ACEOF 20912if ac_fn_c_try_link "$LINENO"; then : 20913 20914 tst_api="0x101" 20915 20916fi 20917rm -f core conftest.err conftest.$ac_objext \ 20918 conftest$ac_exeext conftest.$ac_ext 20919 fi 20920 if test "$tst_api" = "unknown"; then 20921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20922/* end confdefs.h. */ 20923 20924 20925#define OBJ_add_sigid innocuous_OBJ_add_sigid 20926#ifdef __STDC__ 20927# include <limits.h> 20928#else 20929# include <assert.h> 20930#endif 20931#undef OBJ_add_sigid 20932#ifdef __cplusplus 20933extern "C" 20934#endif 20935char OBJ_add_sigid (); 20936#if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid 20937choke me 20938#endif 20939 20940int main (void) 20941{ 20942return OBJ_add_sigid (); 20943 ; 20944 return 0; 20945} 20946 20947_ACEOF 20948if ac_fn_c_try_link "$LINENO"; then : 20949 20950 tst_api="0x100" 20951 20952fi 20953rm -f core conftest.err conftest.$ac_objext \ 20954 conftest$ac_exeext conftest.$ac_ext 20955 fi 20956 if test "$tst_api" = "unknown"; then 20957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20958/* end confdefs.h. */ 20959 20960 20961#define ERR_set_mark innocuous_ERR_set_mark 20962#ifdef __STDC__ 20963# include <limits.h> 20964#else 20965# include <assert.h> 20966#endif 20967#undef ERR_set_mark 20968#ifdef __cplusplus 20969extern "C" 20970#endif 20971char ERR_set_mark (); 20972#if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark 20973choke me 20974#endif 20975 20976int main (void) 20977{ 20978return ERR_set_mark (); 20979 ; 20980 return 0; 20981} 20982 20983_ACEOF 20984if ac_fn_c_try_link "$LINENO"; then : 20985 20986 tst_api="0x098" 20987 20988fi 20989rm -f core conftest.err conftest.$ac_objext \ 20990 conftest$ac_exeext conftest.$ac_ext 20991 fi 20992 if test "$tst_api" = "unknown"; then 20993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20994/* end confdefs.h. */ 20995 20996 20997#define ERR_peek_last_error innocuous_ERR_peek_last_error 20998#ifdef __STDC__ 20999# include <limits.h> 21000#else 21001# include <assert.h> 21002#endif 21003#undef ERR_peek_last_error 21004#ifdef __cplusplus 21005extern "C" 21006#endif 21007char ERR_peek_last_error (); 21008#if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error 21009choke me 21010#endif 21011 21012int main (void) 21013{ 21014return ERR_peek_last_error (); 21015 ; 21016 return 0; 21017} 21018 21019_ACEOF 21020if ac_fn_c_try_link "$LINENO"; then : 21021 21022 tst_api="0x097" 21023 21024fi 21025rm -f core conftest.err conftest.$ac_objext \ 21026 conftest$ac_exeext conftest.$ac_ext 21027 fi 21028 if test "$tst_api" = "unknown"; then 21029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21030/* end confdefs.h. */ 21031 21032 21033#define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT 21034#ifdef __STDC__ 21035# include <limits.h> 21036#else 21037# include <assert.h> 21038#endif 21039#undef c2i_ASN1_OBJECT 21040#ifdef __cplusplus 21041extern "C" 21042#endif 21043char c2i_ASN1_OBJECT (); 21044#if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT 21045choke me 21046#endif 21047 21048int main (void) 21049{ 21050return c2i_ASN1_OBJECT (); 21051 ; 21052 return 0; 21053} 21054 21055_ACEOF 21056if ac_fn_c_try_link "$LINENO"; then : 21057 21058 tst_api="0x096" 21059 21060fi 21061rm -f core conftest.err conftest.$ac_objext \ 21062 conftest$ac_exeext conftest.$ac_ext 21063 fi 21064 if test "$tst_api" = "unknown"; then 21065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21066/* end confdefs.h. */ 21067 21068 21069#define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose 21070#ifdef __STDC__ 21071# include <limits.h> 21072#else 21073# include <assert.h> 21074#endif 21075#undef SSL_CTX_set_purpose 21076#ifdef __cplusplus 21077extern "C" 21078#endif 21079char SSL_CTX_set_purpose (); 21080#if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose 21081choke me 21082#endif 21083 21084int main (void) 21085{ 21086return SSL_CTX_set_purpose (); 21087 ; 21088 return 0; 21089} 21090 21091_ACEOF 21092if ac_fn_c_try_link "$LINENO"; then : 21093 21094 tst_api="0x095" 21095 21096fi 21097rm -f core conftest.err conftest.$ac_objext \ 21098 conftest$ac_exeext conftest.$ac_ext 21099 fi 21100 if test "$tst_api" = "unknown"; then 21101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21102/* end confdefs.h. */ 21103 21104 21105#define OBJ_obj2txt innocuous_OBJ_obj2txt 21106#ifdef __STDC__ 21107# include <limits.h> 21108#else 21109# include <assert.h> 21110#endif 21111#undef OBJ_obj2txt 21112#ifdef __cplusplus 21113extern "C" 21114#endif 21115char OBJ_obj2txt (); 21116#if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt 21117choke me 21118#endif 21119 21120int main (void) 21121{ 21122return OBJ_obj2txt (); 21123 ; 21124 return 0; 21125} 21126 21127_ACEOF 21128if ac_fn_c_try_link "$LINENO"; then : 21129 21130 tst_api="0x094" 21131 21132fi 21133rm -f core conftest.err conftest.$ac_objext \ 21134 conftest$ac_exeext conftest.$ac_ext 21135 fi 21136 if test "$tst_api" = "unknown"; then 21137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21138/* end confdefs.h. */ 21139 21140 21141#define SSL_get_verify_depth innocuous_SSL_get_verify_depth 21142#ifdef __STDC__ 21143# include <limits.h> 21144#else 21145# include <assert.h> 21146#endif 21147#undef SSL_get_verify_depth 21148#ifdef __cplusplus 21149extern "C" 21150#endif 21151char SSL_get_verify_depth (); 21152#if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth 21153choke me 21154#endif 21155 21156int main (void) 21157{ 21158return SSL_get_verify_depth (); 21159 ; 21160 return 0; 21161} 21162 21163_ACEOF 21164if ac_fn_c_try_link "$LINENO"; then : 21165 21166 tst_api="0x093" 21167 21168fi 21169rm -f core conftest.err conftest.$ac_objext \ 21170 conftest$ac_exeext conftest.$ac_ext 21171 fi 21172 if test "$tst_api" = "unknown"; then 21173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21174/* end confdefs.h. */ 21175 21176 21177#define SSL_library_init innocuous_SSL_library_init 21178#ifdef __STDC__ 21179# include <limits.h> 21180#else 21181# include <assert.h> 21182#endif 21183#undef SSL_library_init 21184#ifdef __cplusplus 21185extern "C" 21186#endif 21187char SSL_library_init (); 21188#if defined __stub_SSL_library_init || defined __stub___SSL_library_init 21189choke me 21190#endif 21191 21192int main (void) 21193{ 21194return SSL_library_init (); 21195 ; 21196 return 0; 21197} 21198 21199_ACEOF 21200if ac_fn_c_try_link "$LINENO"; then : 21201 21202 tst_api="0x092" 21203 21204fi 21205rm -f core conftest.err conftest.$ac_objext \ 21206 conftest$ac_exeext conftest.$ac_ext 21207 fi 21208 if test "$tst_api" = "unknown"; then 21209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21210/* end confdefs.h. */ 21211 21212 21213#define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list 21214#ifdef __STDC__ 21215# include <limits.h> 21216#else 21217# include <assert.h> 21218#endif 21219#undef SSL_CTX_set_cipher_list 21220#ifdef __cplusplus 21221extern "C" 21222#endif 21223char SSL_CTX_set_cipher_list (); 21224#if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list 21225choke me 21226#endif 21227 21228int main (void) 21229{ 21230return SSL_CTX_set_cipher_list (); 21231 ; 21232 return 0; 21233} 21234 21235_ACEOF 21236if ac_fn_c_try_link "$LINENO"; then : 21237 21238 tst_api="0x091" 21239 21240fi 21241rm -f core conftest.err conftest.$ac_objext \ 21242 conftest$ac_exeext conftest.$ac_ext 21243 fi 21244 case $tst_api in 21245 0x110) tst_show="1.1.0" ;; 21246 0x101) tst_show="1.0.1" ;; 21247 0x100) tst_show="1.0.0" ;; 21248 0x099) tst_show="0.9.9" ;; 21249 0x098) tst_show="0.9.8" ;; 21250 0x097) tst_show="0.9.7" ;; 21251 0x096) tst_show="0.9.6" ;; 21252 0x095) tst_show="0.9.5" ;; 21253 0x094) tst_show="0.9.4" ;; 21254 0x093) tst_show="0.9.3" ;; 21255 0x092) tst_show="0.9.2" ;; 21256 0x091) tst_show="0.9.1" ;; 21257 *) tst_show="unknown" ;; 21258 esac 21259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5 21260$as_echo "$tst_show" >&6; } 21261 # 21262 curl_openssl_api_library=$tst_api 21263 21264 # 21265 tst_match="yes" 21266 # 21267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5 21268$as_echo_n "checking for OpenSSL headers and library versions matching... " >&6; } 21269 if test "$curl_openssl_api_headers" = "unknown" || 21270 test "$curl_openssl_api_library" = "unknown"; then 21271 tst_match="fail" 21272 tst_warns="Can not compare OpenSSL headers and library versions." 21273 elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then 21274 tst_match="no" 21275 tst_warns="OpenSSL headers and library versions do not match." 21276 fi 21277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5 21278$as_echo "$tst_match" >&6; } 21279 if test "$tst_match" != "yes"; then 21280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5 21281$as_echo "$as_me: WARNING: $tst_warns" >&2;} 21282 fi 21283 21284 fi 21285 21286fi 21287 21288 21289 21290_cppflags=$CPPFLAGS 21291_ldflags=$LDFLAGS 21292 21293# Check whether --with-zlib was given. 21294if test "${with_zlib+set}" = set; then : 21295 withval=$with_zlib; OPT_ZLIB="$withval" 21296fi 21297 21298 21299if test "$OPT_ZLIB" = "no" ; then 21300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5 21301$as_echo "$as_me: WARNING: zlib disabled" >&2;} 21302else 21303 if test "$OPT_ZLIB" = "yes" ; then 21304 OPT_ZLIB="" 21305 fi 21306 21307 if test -z "$OPT_ZLIB" ; then 21308 21309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5 21310$as_echo_n "checking for inflateEnd in -lz... " >&6; } 21311if test "${ac_cv_lib_z_inflateEnd+set}" = set; then : 21312 $as_echo_n "(cached) " >&6 21313else 21314 ac_check_lib_save_LIBS=$LIBS 21315LIBS="-lz $LIBS" 21316cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21317/* end confdefs.h. */ 21318 21319 21320#ifdef __cplusplus 21321extern "C" 21322#endif 21323char inflateEnd (); 21324int main (void) 21325{ 21326return inflateEnd (); 21327 ; 21328 return 0; 21329} 21330_ACEOF 21331if ac_fn_c_try_link "$LINENO"; then : 21332 ac_cv_lib_z_inflateEnd=yes 21333else 21334 ac_cv_lib_z_inflateEnd=no 21335fi 21336rm -f core conftest.err conftest.$ac_objext \ 21337 conftest$ac_exeext conftest.$ac_ext 21338LIBS=$ac_check_lib_save_LIBS 21339fi 21340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5 21341$as_echo "$ac_cv_lib_z_inflateEnd" >&6; } 21342if test "x$ac_cv_lib_z_inflateEnd" = x""yes; then : 21343 HAVE_LIBZ="1" 21344else 21345 OPT_ZLIB="/usr/local" 21346fi 21347 21348 21349 fi 21350 21351 if test -n "$OPT_ZLIB"; then 21352 CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include" 21353 LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff" 21354 fi 21355 21356 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 21357if test "x$ac_cv_header_zlib_h" = x""yes; then : 21358 21359 HAVE_ZLIB_H="1" 21360 if test "$HAVE_LIBZ" != "1"; then 21361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5 21362$as_echo_n "checking for gzread in -lz... " >&6; } 21363if test "${ac_cv_lib_z_gzread+set}" = set; then : 21364 $as_echo_n "(cached) " >&6 21365else 21366 ac_check_lib_save_LIBS=$LIBS 21367LIBS="-lz $LIBS" 21368cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21369/* end confdefs.h. */ 21370 21371 21372#ifdef __cplusplus 21373extern "C" 21374#endif 21375char gzread (); 21376int main (void) 21377{ 21378return gzread (); 21379 ; 21380 return 0; 21381} 21382_ACEOF 21383if ac_fn_c_try_link "$LINENO"; then : 21384 ac_cv_lib_z_gzread=yes 21385else 21386 ac_cv_lib_z_gzread=no 21387fi 21388rm -f core conftest.err conftest.$ac_objext \ 21389 conftest$ac_exeext conftest.$ac_ext 21390LIBS=$ac_check_lib_save_LIBS 21391fi 21392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5 21393$as_echo "$ac_cv_lib_z_gzread" >&6; } 21394if test "x$ac_cv_lib_z_gzread" = x""yes; then : 21395 21396 HAVE_LIBZ="1" 21397 21398else 21399 CPPFLAGS=$_cppflags 21400 LDFLAGS=$_ldflags 21401fi 21402 21403 fi 21404 21405else 21406 21407 CPPFLAGS=$_cppflags 21408 LDFLAGS=$_ldflags 21409 21410fi 21411 21412 21413 21414 if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1" 21415 then 21416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5 21417$as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;} 21418 HAVE_LIBZ="" 21419 elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1" 21420 then 21421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5 21422$as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;} 21423 elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1" 21424 then 21425 21426 21427$as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h 21428 21429 21430$as_echo "#define HAVE_LIBZ 1" >>confdefs.h 21431 21432 21433 CURL_LIBS="$CURL_LIBS -lz" 21434 LIBS="$LIBS -lz" 21435 21436 AMFIXLIB="1" 21437 { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5 21438$as_echo "$as_me: found both libz and libz.h header" >&6;} 21439 curl_zlib_msg="enabled" 21440 fi 21441fi 21442 21443 21444 21445if test x"$AMFIXLIB" = x1; then 21446 HAVE_LIBZ_TRUE= 21447 HAVE_LIBZ_FALSE='#' 21448else 21449 HAVE_LIBZ_TRUE='#' 21450 HAVE_LIBZ_FALSE= 21451fi 21452 21453 21454 21455if test X"$OPENSSL_ENABLED" = X"1"; then 21456 21457# Check whether --with-egd-socket was given. 21458if test "${with_egd_socket+set}" = set; then : 21459 withval=$with_egd_socket; EGD_SOCKET="$withval" 21460 21461fi 21462 21463 if test -n "$EGD_SOCKET" ; then 21464 21465cat >>confdefs.h <<_ACEOF 21466#define EGD_SOCKET "$EGD_SOCKET" 21467_ACEOF 21468 21469 fi 21470 21471 21472# Check whether --with-random was given. 21473if test "${with_random+set}" = set; then : 21474 withval=$with_random; RANDOM_FILE="$withval" 21475else 21476 21477 if test x$cross_compiling != xyes; then 21478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5 21479$as_echo_n "checking for \"/dev/urandom\"... " >&6; } 21480if test "${ac_cv_file___dev_urandom_+set}" = set; then : 21481 $as_echo_n "(cached) " >&6 21482else 21483 test "$cross_compiling" = yes && 21484 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5 21485if test -r ""/dev/urandom""; then 21486 ac_cv_file___dev_urandom_=yes 21487else 21488 ac_cv_file___dev_urandom_=no 21489fi 21490fi 21491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file___dev_urandom_" >&5 21492$as_echo "$ac_cv_file___dev_urandom_" >&6; } 21493if test "x$ac_cv_file___dev_urandom_" = x""yes; then : 21494 RANDOM_FILE="/dev/urandom" 21495fi 21496 21497 else 21498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5 21499$as_echo "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;} 21500 fi 21501 21502 21503fi 21504 21505 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then 21506 21507 21508cat >>confdefs.h <<_ACEOF 21509#define RANDOM_FILE "$RANDOM_FILE" 21510_ACEOF 21511 21512 fi 21513fi 21514 21515if test "$OPENSSL_ENABLED" = "1"; then 21516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5 21517$as_echo_n "checking for SRP_Calc_client_key in -lcrypto... " >&6; } 21518if test "${ac_cv_lib_crypto_SRP_Calc_client_key+set}" = set; then : 21519 $as_echo_n "(cached) " >&6 21520else 21521 ac_check_lib_save_LIBS=$LIBS 21522LIBS="-lcrypto $LIBS" 21523cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21524/* end confdefs.h. */ 21525 21526 21527#ifdef __cplusplus 21528extern "C" 21529#endif 21530char SRP_Calc_client_key (); 21531int main (void) 21532{ 21533return SRP_Calc_client_key (); 21534 ; 21535 return 0; 21536} 21537_ACEOF 21538if ac_fn_c_try_link "$LINENO"; then : 21539 ac_cv_lib_crypto_SRP_Calc_client_key=yes 21540else 21541 ac_cv_lib_crypto_SRP_Calc_client_key=no 21542fi 21543rm -f core conftest.err conftest.$ac_objext \ 21544 conftest$ac_exeext conftest.$ac_ext 21545LIBS=$ac_check_lib_save_LIBS 21546fi 21547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5 21548$as_echo "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; } 21549if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = x""yes; then : 21550 21551 21552$as_echo "#define HAVE_SSLEAY_SRP 1" >>confdefs.h 21553 21554 HAVE_SSLEAY_SRP=1 21555 21556 21557fi 21558 21559fi 21560 21561 21562OPT_GNUTLS=no 21563 21564 21565# Check whether --with-gnutls was given. 21566if test "${with_gnutls+set}" = set; then : 21567 withval=$with_gnutls; OPT_GNUTLS=$withval 21568fi 21569 21570 21571if test "$OPENSSL_ENABLED" != "1"; then 21572 21573 if test X"$OPT_GNUTLS" != Xno; then 21574 21575 addld="" 21576 if test "x$OPT_GNUTLS" = "xyes"; then 21577 21578 21579 PKGCONFIG="no" 21580 21581 if test x$cross_compiling = xyes; then 21582 # Extract the first word of "${host}-pkg-config", so it can be a program name with args. 21583set dummy ${host}-pkg-config; ac_word=$2 21584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21585$as_echo_n "checking for $ac_word... " >&6; } 21586if test "${ac_cv_path_PKGCONFIG+set}" = set; then : 21587 $as_echo_n "(cached) " >&6 21588else 21589 case $PKGCONFIG in 21590 [\\/]* | ?:[\\/]*) 21591 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 21592 ;; 21593 *) 21594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21595as_dummy="$PATH:/usr/bin:/usr/local/bin" 21596for as_dir in $as_dummy 21597do 21598 IFS=$as_save_IFS 21599 test -z "$as_dir" && as_dir=. 21600 for ac_exec_ext in '' $ac_executable_extensions; do 21601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21602 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 21603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21604 break 2 21605 fi 21606done 21607 done 21608IFS=$as_save_IFS 21609 21610 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no" 21611 ;; 21612esac 21613fi 21614PKGCONFIG=$ac_cv_path_PKGCONFIG 21615if test -n "$PKGCONFIG"; then 21616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 21617$as_echo "$PKGCONFIG" >&6; } 21618else 21619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21620$as_echo "no" >&6; } 21621fi 21622 21623 21624 fi 21625 21626 if test x$PKGCONFIG = xno; then 21627 # Extract the first word of "pkg-config", so it can be a program name with args. 21628set dummy pkg-config; ac_word=$2 21629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21630$as_echo_n "checking for $ac_word... " >&6; } 21631if test "${ac_cv_path_PKGCONFIG+set}" = set; then : 21632 $as_echo_n "(cached) " >&6 21633else 21634 case $PKGCONFIG in 21635 [\\/]* | ?:[\\/]*) 21636 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 21637 ;; 21638 *) 21639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21640as_dummy="$PATH:/usr/bin:/usr/local/bin" 21641for as_dir in $as_dummy 21642do 21643 IFS=$as_save_IFS 21644 test -z "$as_dir" && as_dir=. 21645 for ac_exec_ext in '' $ac_executable_extensions; do 21646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21647 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 21648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21649 break 2 21650 fi 21651done 21652 done 21653IFS=$as_save_IFS 21654 21655 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no" 21656 ;; 21657esac 21658fi 21659PKGCONFIG=$ac_cv_path_PKGCONFIG 21660if test -n "$PKGCONFIG"; then 21661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 21662$as_echo "$PKGCONFIG" >&6; } 21663else 21664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21665$as_echo "no" >&6; } 21666fi 21667 21668 21669 fi 21670 21671 if test x$PKGCONFIG != xno; then 21672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5 21673$as_echo_n "checking for gnutls options with pkg-config... " >&6; } 21674 itexists=` 21675 if test -n ""; then 21676 PKG_CONFIG_LIBDIR="" 21677 export PKG_CONFIG_LIBDIR 21678 fi 21679 $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1` 21680 21681 if test -z "$itexists"; then 21682 PKGCONFIG="no" 21683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21684$as_echo "no" >&6; } 21685 else 21686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 21687$as_echo "found" >&6; } 21688 fi 21689 fi 21690 21691 21692 if test "$PKGCONFIG" != "no" ; then 21693 addlib=`$PKGCONFIG --libs-only-l gnutls` 21694 addld=`$PKGCONFIG --libs-only-L gnutls` 21695 addcflags=`$PKGCONFIG --cflags-only-I gnutls` 21696 version=`$PKGCONFIG --modversion gnutls` 21697 gtlslib=`echo $addld | $SED -e 's/-L//'` 21698 else 21699 check=`libgnutls-config --version 2>/dev/null` 21700 if test -n "$check"; then 21701 addlib=`libgnutls-config --libs` 21702 addcflags=`libgnutls-config --cflags` 21703 version=`libgnutls-config --version` 21704 gtlslib=`libgnutls-config --prefix`/lib$libsuff 21705 fi 21706 fi 21707 else 21708 cfg=$OPT_GNUTLS/bin/libgnutls-config 21709 check=`$cfg --version 2>/dev/null` 21710 if test -n "$check"; then 21711 addlib=`$cfg --libs` 21712 addcflags=`$cfg --cflags` 21713 version=`$cfg --version` 21714 gtlslib=`$cfg --prefix`/lib$libsuff 21715 else 21716 addlib=-lgnutls 21717 addld=-L$OPT_GNUTLS/lib$libsuff 21718 addcflags=-I$OPT_GNUTLS/include 21719 version="" # we just don't know 21720 gtlslib=$OPT_GNUTLS/lib$libsuff 21721 fi 21722 fi 21723 21724 if test -z "$version"; then 21725 version="unknown" 21726 fi 21727 21728 if test -n "$addlib"; then 21729 21730 CLEANLIBS="$LIBS" 21731 CLEANCPPFLAGS="$CPPFLAGS" 21732 CLEADLDFLAGS="$LDFLAGS" 21733 21734 LIBS="$LIBS $addlib" 21735 LDFLAGS="$LDFLAGS $addld" 21736 if test "$addcflags" != "-I/usr/include"; then 21737 CPPFLAGS="$CPPFLAGS $addcflags" 21738 fi 21739 21740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5 21741$as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; } 21742if test "${ac_cv_lib_gnutls_gnutls_check_version+set}" = set; then : 21743 $as_echo_n "(cached) " >&6 21744else 21745 ac_check_lib_save_LIBS=$LIBS 21746LIBS="-lgnutls $LIBS" 21747cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21748/* end confdefs.h. */ 21749 21750 21751#ifdef __cplusplus 21752extern "C" 21753#endif 21754char gnutls_check_version (); 21755int main (void) 21756{ 21757return gnutls_check_version (); 21758 ; 21759 return 0; 21760} 21761_ACEOF 21762if ac_fn_c_try_link "$LINENO"; then : 21763 ac_cv_lib_gnutls_gnutls_check_version=yes 21764else 21765 ac_cv_lib_gnutls_gnutls_check_version=no 21766fi 21767rm -f core conftest.err conftest.$ac_objext \ 21768 conftest$ac_exeext conftest.$ac_ext 21769LIBS=$ac_check_lib_save_LIBS 21770fi 21771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5 21772$as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; } 21773if test "x$ac_cv_lib_gnutls_gnutls_check_version" = x""yes; then : 21774 21775 21776$as_echo "#define USE_GNUTLS 1" >>confdefs.h 21777 21778 USE_GNUTLS=1 21779 21780 GNUTLS_ENABLED=1 21781 USE_GNUTLS="yes" 21782 curl_ssl_msg="enabled (GnuTLS)" 21783 21784else 21785 21786 LIBS="$CLEANLIBS" 21787 CPPFLAGS="$CLEANCPPFLAGS" 21788 21789fi 21790 21791 21792 if test "x$USE_GNUTLS" = "xyes"; then 21793 { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5 21794$as_echo "$as_me: detected GnuTLS version $version" >&6;} 21795 21796 if test -n "$gtlslib"; then 21797 21798 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$gtlslib" 21799 export LD_LIBRARY_PATH 21800 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to LD_LIBRARY_PATH" >&5 21801$as_echo "$as_me: Added $gtlslib to LD_LIBRARY_PATH" >&6;} 21802 fi 21803 fi 21804 21805 fi 21806 21807 fi 21808fi 21809 21810if test "$GNUTLS_ENABLED" = "1"; then 21811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5 21812$as_echo_n "checking for gcry_control in -lgcrypt... " >&6; } 21813if test "${ac_cv_lib_gcrypt_gcry_control+set}" = set; then : 21814 $as_echo_n "(cached) " >&6 21815else 21816 ac_check_lib_save_LIBS=$LIBS 21817LIBS="-lgcrypt $LIBS" 21818cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21819/* end confdefs.h. */ 21820 21821 21822#ifdef __cplusplus 21823extern "C" 21824#endif 21825char gcry_control (); 21826int main (void) 21827{ 21828return gcry_control (); 21829 ; 21830 return 0; 21831} 21832_ACEOF 21833if ac_fn_c_try_link "$LINENO"; then : 21834 ac_cv_lib_gcrypt_gcry_control=yes 21835else 21836 ac_cv_lib_gcrypt_gcry_control=no 21837fi 21838rm -f core conftest.err conftest.$ac_objext \ 21839 conftest$ac_exeext conftest.$ac_ext 21840LIBS=$ac_check_lib_save_LIBS 21841fi 21842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5 21843$as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; } 21844if test "x$ac_cv_lib_gcrypt_gcry_control" = x""yes; then : 21845 cat >>confdefs.h <<_ACEOF 21846#define HAVE_LIBGCRYPT 1 21847_ACEOF 21848 21849 LIBS="-lgcrypt $LIBS" 21850 21851else 21852 21853 as_fn_error "need GnuTLS built with gcrypt to function with GnuTLS" "$LINENO" 5 21854 21855fi 21856 21857fi 21858 21859if test "$GNUTLS_ENABLED" = "1"; then 21860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5 21861$as_echo_n "checking for gnutls_srp_verifier in -lgnutls... " >&6; } 21862if test "${ac_cv_lib_gnutls_gnutls_srp_verifier+set}" = set; then : 21863 $as_echo_n "(cached) " >&6 21864else 21865 ac_check_lib_save_LIBS=$LIBS 21866LIBS="-lgnutls $LIBS" 21867cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21868/* end confdefs.h. */ 21869 21870 21871#ifdef __cplusplus 21872extern "C" 21873#endif 21874char gnutls_srp_verifier (); 21875int main (void) 21876{ 21877return gnutls_srp_verifier (); 21878 ; 21879 return 0; 21880} 21881_ACEOF 21882if ac_fn_c_try_link "$LINENO"; then : 21883 ac_cv_lib_gnutls_gnutls_srp_verifier=yes 21884else 21885 ac_cv_lib_gnutls_gnutls_srp_verifier=no 21886fi 21887rm -f core conftest.err conftest.$ac_objext \ 21888 conftest$ac_exeext conftest.$ac_ext 21889LIBS=$ac_check_lib_save_LIBS 21890fi 21891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5 21892$as_echo "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; } 21893if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = x""yes; then : 21894 21895 21896$as_echo "#define HAVE_GNUTLS_SRP 1" >>confdefs.h 21897 21898 HAVE_GNUTLS_SRP=1 21899 21900 21901fi 21902 21903fi 21904 21905 21906OPT_POLARSSL=no 21907 21908_cppflags=$CPPFLAGS 21909_ldflags=$LDFLAGS 21910 21911# Check whether --with-polarssl was given. 21912if test "${with_polarssl+set}" = set; then : 21913 withval=$with_polarssl; OPT_POLARSSL=$withval 21914fi 21915 21916 21917if test "$OPENSSL_ENABLED" != "1"; then 21918 21919 if test X"$OPT_POLARSSL" != Xno; then 21920 21921 if test "$OPT_POLARSSL" = "yes"; then 21922 OPT_POLARSSL="" 21923 fi 21924 21925 if test -z "$OPT_POLARSSL" ; then 21926 21927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for havege_init in -lpolarssl" >&5 21928$as_echo_n "checking for havege_init in -lpolarssl... " >&6; } 21929if test "${ac_cv_lib_polarssl_havege_init+set}" = set; then : 21930 $as_echo_n "(cached) " >&6 21931else 21932 ac_check_lib_save_LIBS=$LIBS 21933LIBS="-lpolarssl $LIBS" 21934cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21935/* end confdefs.h. */ 21936 21937 21938#ifdef __cplusplus 21939extern "C" 21940#endif 21941char havege_init (); 21942int main (void) 21943{ 21944return havege_init (); 21945 ; 21946 return 0; 21947} 21948_ACEOF 21949if ac_fn_c_try_link "$LINENO"; then : 21950 ac_cv_lib_polarssl_havege_init=yes 21951else 21952 ac_cv_lib_polarssl_havege_init=no 21953fi 21954rm -f core conftest.err conftest.$ac_objext \ 21955 conftest$ac_exeext conftest.$ac_ext 21956LIBS=$ac_check_lib_save_LIBS 21957fi 21958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_havege_init" >&5 21959$as_echo "$ac_cv_lib_polarssl_havege_init" >&6; } 21960if test "x$ac_cv_lib_polarssl_havege_init" = x""yes; then : 21961 21962 21963$as_echo "#define USE_POLARSSL 1" >>confdefs.h 21964 21965 USE_POLARSSL=1 21966 21967 POLARSSL_ENABLED=1 21968 USE_POLARSSL="yes" 21969 curl_ssl_msg="enabled (PolarSSL)" 21970 21971fi 21972 21973 fi 21974 21975 if test "x$USE_POLARSSL" != "xyes"; then 21976 addld=-L$OPT_POLARSSL/lib$libsuff 21977 addcflags=-I$OPT_POLARSSL/include 21978 polarssllib=$OPT_POLARSSL/lib$libsuff 21979 21980 LDFLAGS="$LDFLAGS $addld" 21981 if test "$addcflags" != "-I/usr/include"; then 21982 CPPFLAGS="$CPPFLAGS $addcflags" 21983 fi 21984 21985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5 21986$as_echo_n "checking for ssl_init in -lpolarssl... " >&6; } 21987if test "${ac_cv_lib_polarssl_ssl_init+set}" = set; then : 21988 $as_echo_n "(cached) " >&6 21989else 21990 ac_check_lib_save_LIBS=$LIBS 21991LIBS="-lpolarssl $LIBS" 21992cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21993/* end confdefs.h. */ 21994 21995 21996#ifdef __cplusplus 21997extern "C" 21998#endif 21999char ssl_init (); 22000int main (void) 22001{ 22002return ssl_init (); 22003 ; 22004 return 0; 22005} 22006_ACEOF 22007if ac_fn_c_try_link "$LINENO"; then : 22008 ac_cv_lib_polarssl_ssl_init=yes 22009else 22010 ac_cv_lib_polarssl_ssl_init=no 22011fi 22012rm -f core conftest.err conftest.$ac_objext \ 22013 conftest$ac_exeext conftest.$ac_ext 22014LIBS=$ac_check_lib_save_LIBS 22015fi 22016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5 22017$as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; } 22018if test "x$ac_cv_lib_polarssl_ssl_init" = x""yes; then : 22019 22020 22021$as_echo "#define USE_POLARSSL 1" >>confdefs.h 22022 22023 USE_POLARSSL=1 22024 22025 POLARSSL_ENABLED=1 22026 USE_POLARSSL="yes" 22027 curl_ssl_msg="enabled (PolarSSL)" 22028 22029else 22030 22031 CPPFLAGS=$_cppflags 22032 LDFLAGS=$_ldflags 22033 22034fi 22035 22036 fi 22037 22038 if test "x$USE_POLARSSL" = "xyes"; then 22039 { $as_echo "$as_me:${as_lineno-$LINENO}: detected PolarSSL" >&5 22040$as_echo "$as_me: detected PolarSSL" >&6;} 22041 22042 CURL_LIBS="$CURL_LIBS -lpolarssl" 22043 LIBS="$LIBS -lpolarssl" 22044 22045 if test -n "$polarssllib"; then 22046 22047 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$polarssllib" 22048 export LD_LIBRARY_PATH 22049 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $polarssllib to LD_LIBRARY_PATH" >&5 22050$as_echo "$as_me: Added $polarssllib to LD_LIBRARY_PATH" >&6;} 22051 fi 22052 22053 fi 22054 22055 fi 22056fi 22057 22058OPT_CYASSL=no 22059 22060_cppflags=$CPPFLAGS 22061_ldflags=$LDFLAGS 22062 22063# Check whether --with-cyassl was given. 22064if test "${with_cyassl+set}" = set; then : 22065 withval=$with_cyassl; OPT_CYASSL=$withval 22066fi 22067 22068 22069if test "$OPENSSL_ENABLED" != "1"; then 22070 22071 if test X"$OPT_CYASSL" != Xno; then 22072 22073 if test "$OPT_CYASSL" = "yes"; then 22074 OPT_CYASSL="" 22075 fi 22076 22077 if test -z "$OPT_CYASSL" ; then 22078 22079 trycyassldir="/usr/local/cyassl" 22080 22081 LDFLAGS="$LDFLAGS -L$trycyassldir/lib" 22082 CPPFLAGS="$CPPFLAGS -I$trycyassldir/include" 22083 22084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for InitCyaSSL in -lcyassl" >&5 22085$as_echo_n "checking for InitCyaSSL in -lcyassl... " >&6; } 22086if test "${ac_cv_lib_cyassl_InitCyaSSL+set}" = set; then : 22087 $as_echo_n "(cached) " >&6 22088else 22089 ac_check_lib_save_LIBS=$LIBS 22090LIBS="-lcyassl $LIBS" 22091cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22092/* end confdefs.h. */ 22093 22094 22095#ifdef __cplusplus 22096extern "C" 22097#endif 22098char InitCyaSSL (); 22099int main (void) 22100{ 22101return InitCyaSSL (); 22102 ; 22103 return 0; 22104} 22105_ACEOF 22106if ac_fn_c_try_link "$LINENO"; then : 22107 ac_cv_lib_cyassl_InitCyaSSL=yes 22108else 22109 ac_cv_lib_cyassl_InitCyaSSL=no 22110fi 22111rm -f core conftest.err conftest.$ac_objext \ 22112 conftest$ac_exeext conftest.$ac_ext 22113LIBS=$ac_check_lib_save_LIBS 22114fi 22115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_InitCyaSSL" >&5 22116$as_echo "$ac_cv_lib_cyassl_InitCyaSSL" >&6; } 22117if test "x$ac_cv_lib_cyassl_InitCyaSSL" = x""yes; then : 22118 22119 22120$as_echo "#define USE_CYASSL 1" >>confdefs.h 22121 22122 USE_CYASSL=1 22123 22124 CYASSL_ENABLED=1 22125 USE_CYASSL="yes" 22126 curl_ssl_msg="enabled (CyaSSL)" 22127 22128fi 22129 22130 fi 22131 22132 if test "x$USE_CYASSL" != "xyes"; then 22133 addld=-L$OPT_CYASSL/lib$libsuff 22134 addcflags=-I$OPT_CYASSL/include 22135 cyassllib=$OPT_CYASSL/lib$libsuff 22136 22137 LDFLAGS="$LDFLAGS $addld" 22138 if test "$addcflags" != "-I/usr/include"; then 22139 CPPFLAGS="$CPPFLAGS $addcflags" 22140 fi 22141 22142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for InitCyaSSL in -lcyassl" >&5 22143$as_echo_n "checking for InitCyaSSL in -lcyassl... " >&6; } 22144if test "${ac_cv_lib_cyassl_InitCyaSSL+set}" = set; then : 22145 $as_echo_n "(cached) " >&6 22146else 22147 ac_check_lib_save_LIBS=$LIBS 22148LIBS="-lcyassl $LIBS" 22149cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22150/* end confdefs.h. */ 22151 22152 22153#ifdef __cplusplus 22154extern "C" 22155#endif 22156char InitCyaSSL (); 22157int main (void) 22158{ 22159return InitCyaSSL (); 22160 ; 22161 return 0; 22162} 22163_ACEOF 22164if ac_fn_c_try_link "$LINENO"; then : 22165 ac_cv_lib_cyassl_InitCyaSSL=yes 22166else 22167 ac_cv_lib_cyassl_InitCyaSSL=no 22168fi 22169rm -f core conftest.err conftest.$ac_objext \ 22170 conftest$ac_exeext conftest.$ac_ext 22171LIBS=$ac_check_lib_save_LIBS 22172fi 22173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_InitCyaSSL" >&5 22174$as_echo "$ac_cv_lib_cyassl_InitCyaSSL" >&6; } 22175if test "x$ac_cv_lib_cyassl_InitCyaSSL" = x""yes; then : 22176 22177 22178$as_echo "#define USE_CYASSL 1" >>confdefs.h 22179 22180 USE_CYASSL=1 22181 22182 CYASSL_ENABLED=1 22183 USE_CYASSL="yes" 22184 curl_ssl_msg="enabled (CyaSSL)" 22185 22186else 22187 22188 CPPFLAGS=$_cppflags 22189 LDFLAGS=$_ldflags 22190 22191fi 22192 22193 fi 22194 22195 if test "x$USE_CYASSL" = "xyes"; then 22196 { $as_echo "$as_me:${as_lineno-$LINENO}: detected CyaSSL" >&5 22197$as_echo "$as_me: detected CyaSSL" >&6;} 22198 22199 CURL_LIBS="$CURL_LIBS -lcyassl -lm" 22200 LIBS="$LIBS -lcyassl -lm" 22201 22202 if test -n "$cyassllib"; then 22203 22204 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$cyassllib" 22205 export LD_LIBRARY_PATH 22206 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $cyassllib to LD_LIBRARY_PATH" >&5 22207$as_echo "$as_me: Added $cyassllib to LD_LIBRARY_PATH" >&6;} 22208 fi 22209 22210 fi 22211 22212 fi 22213fi 22214 22215OPT_NSS=no 22216 22217 22218# Check whether --with-nss was given. 22219if test "${with_nss+set}" = set; then : 22220 withval=$with_nss; OPT_NSS=$withval 22221fi 22222 22223 22224if test "$OPENSSL_ENABLED" != "1" -a "$GNUTLS_ENABLED" != "1"; then 22225 22226 if test X"$OPT_NSS" != Xno; then 22227 if test "x$OPT_NSS" = "xyes"; then 22228 22229 22230 22231 PKGCONFIG="no" 22232 22233 if test x$cross_compiling = xyes; then 22234 # Extract the first word of "${host}-pkg-config", so it can be a program name with args. 22235set dummy ${host}-pkg-config; ac_word=$2 22236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22237$as_echo_n "checking for $ac_word... " >&6; } 22238if test "${ac_cv_path_PKGCONFIG+set}" = set; then : 22239 $as_echo_n "(cached) " >&6 22240else 22241 case $PKGCONFIG in 22242 [\\/]* | ?:[\\/]*) 22243 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 22244 ;; 22245 *) 22246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22247as_dummy="$PATH:/usr/bin:/usr/local/bin" 22248for as_dir in $as_dummy 22249do 22250 IFS=$as_save_IFS 22251 test -z "$as_dir" && as_dir=. 22252 for ac_exec_ext in '' $ac_executable_extensions; do 22253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 22254 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 22255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22256 break 2 22257 fi 22258done 22259 done 22260IFS=$as_save_IFS 22261 22262 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no" 22263 ;; 22264esac 22265fi 22266PKGCONFIG=$ac_cv_path_PKGCONFIG 22267if test -n "$PKGCONFIG"; then 22268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 22269$as_echo "$PKGCONFIG" >&6; } 22270else 22271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22272$as_echo "no" >&6; } 22273fi 22274 22275 22276 fi 22277 22278 if test x$PKGCONFIG = xno; then 22279 # Extract the first word of "pkg-config", so it can be a program name with args. 22280set dummy pkg-config; ac_word=$2 22281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22282$as_echo_n "checking for $ac_word... " >&6; } 22283if test "${ac_cv_path_PKGCONFIG+set}" = set; then : 22284 $as_echo_n "(cached) " >&6 22285else 22286 case $PKGCONFIG in 22287 [\\/]* | ?:[\\/]*) 22288 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 22289 ;; 22290 *) 22291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22292as_dummy="$PATH:/usr/bin:/usr/local/bin" 22293for as_dir in $as_dummy 22294do 22295 IFS=$as_save_IFS 22296 test -z "$as_dir" && as_dir=. 22297 for ac_exec_ext in '' $ac_executable_extensions; do 22298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 22299 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 22300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22301 break 2 22302 fi 22303done 22304 done 22305IFS=$as_save_IFS 22306 22307 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no" 22308 ;; 22309esac 22310fi 22311PKGCONFIG=$ac_cv_path_PKGCONFIG 22312if test -n "$PKGCONFIG"; then 22313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 22314$as_echo "$PKGCONFIG" >&6; } 22315else 22316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22317$as_echo "no" >&6; } 22318fi 22319 22320 22321 fi 22322 22323 if test x$PKGCONFIG != xno; then 22324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5 22325$as_echo_n "checking for nss options with pkg-config... " >&6; } 22326 itexists=` 22327 if test -n ""; then 22328 PKG_CONFIG_LIBDIR="" 22329 export PKG_CONFIG_LIBDIR 22330 fi 22331 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1` 22332 22333 if test -z "$itexists"; then 22334 PKGCONFIG="no" 22335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22336$as_echo "no" >&6; } 22337 else 22338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 22339$as_echo "found" >&6; } 22340 fi 22341 fi 22342 22343 22344 if test "$PKGCONFIG" != "no" ; then 22345 addlib=`$PKGCONFIG --libs nss` 22346 addcflags=`$PKGCONFIG --cflags nss` 22347 version=`$PKGCONFIG --modversion nss` 22348 nssprefix=`$PKGCONFIG --variable=prefix nss` 22349 else 22350 22351 check=`nss-config --version 2>/dev/null` 22352 if test -n "$check"; then 22353 addlib=`nss-config --libs` 22354 addcflags=`nss-config --cflags` 22355 version=`nss-config --version` 22356 nssprefix=`nss-config --prefix` 22357 else 22358 addlib="-lnss3" 22359 addcflags="" 22360 version="unknown" 22361 fi 22362 fi 22363 else 22364 # Without pkg-config, we'll kludge in some defaults 22365 addlib="-L$OPT_NSS/lib -lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4 -lpthread -ldl" 22366 addcflags="-I$OPT_NSS/include" 22367 version="unknown" 22368 nssprefix=$OPT_NSS 22369 fi 22370 22371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PK11_CreateGenericObject in -lnss3" >&5 22372$as_echo_n "checking for PK11_CreateGenericObject in -lnss3... " >&6; } 22373if test "${ac_cv_lib_nss3_PK11_CreateGenericObject+set}" = set; then : 22374 $as_echo_n "(cached) " >&6 22375else 22376 ac_check_lib_save_LIBS=$LIBS 22377LIBS="-lnss3 $LIBS" 22378cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22379/* end confdefs.h. */ 22380 22381 22382#ifdef __cplusplus 22383extern "C" 22384#endif 22385char PK11_CreateGenericObject (); 22386int main (void) 22387{ 22388return PK11_CreateGenericObject (); 22389 ; 22390 return 0; 22391} 22392_ACEOF 22393if ac_fn_c_try_link "$LINENO"; then : 22394 ac_cv_lib_nss3_PK11_CreateGenericObject=yes 22395else 22396 ac_cv_lib_nss3_PK11_CreateGenericObject=no 22397fi 22398rm -f core conftest.err conftest.$ac_objext \ 22399 conftest$ac_exeext conftest.$ac_ext 22400LIBS=$ac_check_lib_save_LIBS 22401fi 22402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_PK11_CreateGenericObject" >&5 22403$as_echo "$ac_cv_lib_nss3_PK11_CreateGenericObject" >&6; } 22404if test "x$ac_cv_lib_nss3_PK11_CreateGenericObject" = x""yes; then : 22405 22406 22407$as_echo "#define HAVE_PK11_CREATEGENERICOBJECT 1" >>confdefs.h 22408 22409 HAVE_PK11_CREATEGENERICOBJECT=1 22410 22411 22412fi 22413 22414 if test -n "$addlib"; then 22415 22416 CLEANLIBS="$LIBS" 22417 CLEANCPPFLAGS="$CPPFLAGS" 22418 22419 LIBS="$LIBS $addlib" 22420 if test "$addcflags" != "-I/usr/include"; then 22421 CPPFLAGS="$CPPFLAGS $addcflags" 22422 fi 22423 22424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_Initialize in -lnss3" >&5 22425$as_echo_n "checking for NSS_Initialize in -lnss3... " >&6; } 22426if test "${ac_cv_lib_nss3_NSS_Initialize+set}" = set; then : 22427 $as_echo_n "(cached) " >&6 22428else 22429 ac_check_lib_save_LIBS=$LIBS 22430LIBS="-lnss3 $LIBS" 22431cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22432/* end confdefs.h. */ 22433 22434 22435#ifdef __cplusplus 22436extern "C" 22437#endif 22438char NSS_Initialize (); 22439int main (void) 22440{ 22441return NSS_Initialize (); 22442 ; 22443 return 0; 22444} 22445_ACEOF 22446if ac_fn_c_try_link "$LINENO"; then : 22447 ac_cv_lib_nss3_NSS_Initialize=yes 22448else 22449 ac_cv_lib_nss3_NSS_Initialize=no 22450fi 22451rm -f core conftest.err conftest.$ac_objext \ 22452 conftest$ac_exeext conftest.$ac_ext 22453LIBS=$ac_check_lib_save_LIBS 22454fi 22455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_NSS_Initialize" >&5 22456$as_echo "$ac_cv_lib_nss3_NSS_Initialize" >&6; } 22457if test "x$ac_cv_lib_nss3_NSS_Initialize" = x""yes; then : 22458 22459 22460$as_echo "#define USE_NSS 1" >>confdefs.h 22461 22462 USE_NSS=1 22463 22464 USE_NSS="yes" 22465 NSS_ENABLED=1 22466 curl_ssl_msg="enabled (NSS)" 22467 22468else 22469 22470 LIBS="$CLEANLIBS" 22471 CPPFLAGS="$CLEANCPPFLAGS" 22472 22473fi 22474 22475 22476 if test "x$USE_NSS" = "xyes"; then 22477 { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5 22478$as_echo "$as_me: detected NSS version $version" >&6;} 22479 22480 22481 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$nssprefix/lib$libsuff" 22482 export LD_LIBRARY_PATH 22483 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&5 22484$as_echo "$as_me: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&6;} 22485 fi 22486 22487 fi 22488 22489 fi 22490fi 22491OPT_AXTLS=off 22492 22493 22494# Check whether --with-axtls was given. 22495if test "${with_axtls+set}" = set; then : 22496 withval=$with_axtls; OPT_AXTLS=$withval 22497fi 22498 22499 22500if test "$curl_ssl_msg" = "$init_ssl_msg"; then 22501 if test X"$OPT_AXTLS" != Xno; then 22502 CLEANLDFLAGS="$LDFLAGS" 22503 CLEANCPPFLAGS="$CPPFLAGS" 22504 CLEANLIBS="$LIBS" 22505 22506 case "$OPT_AXTLS" in 22507 yes) 22508 PREFIX_AXTLS=/usr/local 22509 LIB_AXTLS="$PREFIX_AXTLS/lib" 22510 LDFLAGS="$LDFLAGS -L$LIB_AXTLS" 22511 CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include" 22512 ;; 22513 off) 22514 PREFIX_AXTLS= 22515 ;; 22516 *) 22517 PREFIX_AXTLS=$OPT_AXTLS 22518 LIB_AXTLS="$PREFIX_AXTLS/lib" 22519 LDFLAGS="$LDFLAGS -L$LIB_AXTLS" 22520 CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include" 22521 ;; 22522 esac 22523 22524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_version in -laxtls" >&5 22525$as_echo_n "checking for ssl_version in -laxtls... " >&6; } 22526if test "${ac_cv_lib_axtls_ssl_version+set}" = set; then : 22527 $as_echo_n "(cached) " >&6 22528else 22529 ac_check_lib_save_LIBS=$LIBS 22530LIBS="-laxtls $LIBS" 22531cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22532/* end confdefs.h. */ 22533 22534 22535#ifdef __cplusplus 22536extern "C" 22537#endif 22538char ssl_version (); 22539int main (void) 22540{ 22541return ssl_version (); 22542 ; 22543 return 0; 22544} 22545_ACEOF 22546if ac_fn_c_try_link "$LINENO"; then : 22547 ac_cv_lib_axtls_ssl_version=yes 22548else 22549 ac_cv_lib_axtls_ssl_version=no 22550fi 22551rm -f core conftest.err conftest.$ac_objext \ 22552 conftest$ac_exeext conftest.$ac_ext 22553LIBS=$ac_check_lib_save_LIBS 22554fi 22555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axtls_ssl_version" >&5 22556$as_echo "$ac_cv_lib_axtls_ssl_version" >&6; } 22557if test "x$ac_cv_lib_axtls_ssl_version" = x""yes; then : 22558 22559 LIBS="-laxtls $LIBS" 22560 22561$as_echo "#define USE_AXTLS 1" >>confdefs.h 22562 22563 USE_AXTLS=1 22564 22565 AXTLS_ENABLED=1 22566 USE_AXTLS="yes" 22567 curl_ssl_msg="enabled (axTLS)" 22568 22569 22570 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_AXTLS" 22571 export LD_LIBRARY_PATH 22572 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&5 22573$as_echo "$as_me: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&6;} 22574 22575else 22576 22577 LDFLAGS="$CLEANLDFLAGS" 22578 CPPFLAGS="$CLEANCPPFLAGS" 22579 LIBS="$CLEANLIBS" 22580 22581fi 22582 22583 fi 22584fi 22585 22586if test "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED$AXTLS_ENABLED$CYASSL_ENABLED" = "x"; then 22587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5 22588$as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;} 22589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss or --with-axtls to address this." >&5 22590$as_echo "$as_me: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss or --with-axtls to address this." >&2;} 22591else 22592 # SSL is enabled, genericly 22593 22594 SSL_ENABLED="1" 22595fi 22596 22597 22598 22599 22600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5 22601$as_echo_n "checking default CA cert bundle/path... " >&6; } 22602 22603 22604# Check whether --with-ca-bundle was given. 22605if test "${with_ca_bundle+set}" = set; then : 22606 withval=$with_ca_bundle; 22607 want_ca="$withval" 22608 if test "x$want_ca" = "xyes"; then 22609 as_fn_error "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5 22610 fi 22611 22612else 22613 want_ca="unset" 22614fi 22615 22616 22617# Check whether --with-ca-path was given. 22618if test "${with_ca_path+set}" = set; then : 22619 withval=$with_ca_path; 22620 want_capath="$withval" 22621 if test "x$want_capath" = "xyes"; then 22622 as_fn_error "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5 22623 fi 22624 22625else 22626 want_capath="unset" 22627fi 22628 22629 22630 if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \ 22631 "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then 22632 as_fn_error "Can't specify both --with-ca-bundle and --with-ca-path." "$LINENO" 5 22633 elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then 22634 ca="$want_ca" 22635 capath="no" 22636 elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then 22637 if test "x$OPENSSL_ENABLED" != "x1"; then 22638 as_fn_error "--with-ca-path only works with openSSL" "$LINENO" 5 22639 fi 22640 capath="$want_capath" 22641 ca="no" 22642 else 22643 ca="no" 22644 capath="no" 22645 if test "x$want_ca" = "xunset"; then 22646 if test "x$prefix" != xNONE; then 22647 cac="${prefix}/share/curl/curl-ca-bundle.crt" 22648 else 22649 cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt" 22650 fi 22651 22652 for a in /etc/ssl/certs/ca-certificates.crt \ 22653 /etc/pki/tls/certs/ca-bundle.crt \ 22654 /usr/share/ssl/certs/ca-bundle.crt \ 22655 /usr/local/share/certs/ca-root.crt \ 22656 /etc/ssl/cert.pem \ 22657 "$cac"; do 22658 if test -f "$a"; then 22659 ca="$a" 22660 break 22661 fi 22662 done 22663 fi 22664 if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \ 22665 "x$OPENSSL_ENABLED" = "x1"; then 22666 for a in /etc/ssl/certs/; do 22667 if test -d "$a" && ls "$a"/[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f].0 >/dev/null 2>/dev/null; then 22668 capath="$a" 22669 break 22670 fi 22671 done 22672 fi 22673 fi 22674 22675 22676 22677 if test "x$ca" != "xno"; then 22678 CURL_CA_BUNDLE='"'$ca'"' 22679 22680cat >>confdefs.h <<_ACEOF 22681#define CURL_CA_BUNDLE "$ca" 22682_ACEOF 22683 22684 22685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5 22686$as_echo "$ca" >&6; } 22687 elif test "x$capath" != "xno"; then 22688 CURL_CA_PATH="\"$capath\"" 22689 22690cat >>confdefs.h <<_ACEOF 22691#define CURL_CA_PATH "$capath" 22692_ACEOF 22693 22694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5 22695$as_echo "$capath (capath)" >&6; } 22696 else 22697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22698$as_echo "no" >&6; } 22699 fi 22700 22701 22702 22703OPT_LIBSSH2=off 22704 22705# Check whether --with-libssh2 was given. 22706if test "${with_libssh2+set}" = set; then : 22707 withval=$with_libssh2; OPT_LIBSSH2=$withval 22708fi 22709 22710 22711if test X"$OPT_LIBSSH2" != Xno; then 22712 CLEANLDFLAGS="$LDFLAGS" 22713 CLEANCPPFLAGS="$CPPFLAGS" 22714 CLEANLIBS="$LIBS" 22715 22716 case "$OPT_LIBSSH2" in 22717 yes) 22718 22719 22720 PKGCONFIG="no" 22721 22722 if test x$cross_compiling = xyes; then 22723 # Extract the first word of "${host}-pkg-config", so it can be a program name with args. 22724set dummy ${host}-pkg-config; ac_word=$2 22725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22726$as_echo_n "checking for $ac_word... " >&6; } 22727if test "${ac_cv_path_PKGCONFIG+set}" = set; then : 22728 $as_echo_n "(cached) " >&6 22729else 22730 case $PKGCONFIG in 22731 [\\/]* | ?:[\\/]*) 22732 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 22733 ;; 22734 *) 22735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22736as_dummy="$PATH:/usr/bin:/usr/local/bin" 22737for as_dir in $as_dummy 22738do 22739 IFS=$as_save_IFS 22740 test -z "$as_dir" && as_dir=. 22741 for ac_exec_ext in '' $ac_executable_extensions; do 22742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 22743 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 22744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22745 break 2 22746 fi 22747done 22748 done 22749IFS=$as_save_IFS 22750 22751 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no" 22752 ;; 22753esac 22754fi 22755PKGCONFIG=$ac_cv_path_PKGCONFIG 22756if test -n "$PKGCONFIG"; then 22757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 22758$as_echo "$PKGCONFIG" >&6; } 22759else 22760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22761$as_echo "no" >&6; } 22762fi 22763 22764 22765 fi 22766 22767 if test x$PKGCONFIG = xno; then 22768 # Extract the first word of "pkg-config", so it can be a program name with args. 22769set dummy pkg-config; ac_word=$2 22770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22771$as_echo_n "checking for $ac_word... " >&6; } 22772if test "${ac_cv_path_PKGCONFIG+set}" = set; then : 22773 $as_echo_n "(cached) " >&6 22774else 22775 case $PKGCONFIG in 22776 [\\/]* | ?:[\\/]*) 22777 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 22778 ;; 22779 *) 22780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22781as_dummy="$PATH:/usr/bin:/usr/local/bin" 22782for as_dir in $as_dummy 22783do 22784 IFS=$as_save_IFS 22785 test -z "$as_dir" && as_dir=. 22786 for ac_exec_ext in '' $ac_executable_extensions; do 22787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 22788 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 22789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22790 break 2 22791 fi 22792done 22793 done 22794IFS=$as_save_IFS 22795 22796 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no" 22797 ;; 22798esac 22799fi 22800PKGCONFIG=$ac_cv_path_PKGCONFIG 22801if test -n "$PKGCONFIG"; then 22802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 22803$as_echo "$PKGCONFIG" >&6; } 22804else 22805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22806$as_echo "no" >&6; } 22807fi 22808 22809 22810 fi 22811 22812 if test x$PKGCONFIG != xno; then 22813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5 22814$as_echo_n "checking for libssh2 options with pkg-config... " >&6; } 22815 itexists=` 22816 if test -n ""; then 22817 PKG_CONFIG_LIBDIR="" 22818 export PKG_CONFIG_LIBDIR 22819 fi 22820 $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1` 22821 22822 if test -z "$itexists"; then 22823 PKGCONFIG="no" 22824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22825$as_echo "no" >&6; } 22826 else 22827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 22828$as_echo "found" >&6; } 22829 fi 22830 fi 22831 22832 22833 if test "$PKGCONFIG" != "no" ; then 22834 LIB_SSH2=`$PKGCONFIG --libs-only-l libssh2` 22835 LD_SSH2=`$PKGCONFIG --libs-only-L libssh2` 22836 CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2` 22837 version=`$PKGCONFIG --modversion libssh2` 22838 DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/-L//'` 22839 fi 22840 22841 ;; 22842 off) 22843 ;; 22844 *) 22845 PREFIX_SSH2=$OPT_LIBSSH2 22846 ;; 22847 esac 22848 22849 if test -n "$PREFIX_SSH2"; then 22850 LIB_SSH2="-lssh2" 22851 LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff 22852 CPP_SSH2=-I${PREFIX_SSH2}/include 22853 DIR_SSH2=${PREFIX_SSH2}/lib$libsuff 22854 fi 22855 22856 LDFLAGS="$LDFLAGS $LD_SSH2" 22857 CPPFLAGS="$CPPFLAGS $CPP_SSH2" 22858 LIBS="$LIBS $LIB_SSH2" 22859 22860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5 22861$as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; } 22862if test "${ac_cv_lib_ssh2_libssh2_channel_open_ex+set}" = set; then : 22863 $as_echo_n "(cached) " >&6 22864else 22865 ac_check_lib_save_LIBS=$LIBS 22866LIBS="-lssh2 $LIBS" 22867cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22868/* end confdefs.h. */ 22869 22870 22871#ifdef __cplusplus 22872extern "C" 22873#endif 22874char libssh2_channel_open_ex (); 22875int main (void) 22876{ 22877return libssh2_channel_open_ex (); 22878 ; 22879 return 0; 22880} 22881_ACEOF 22882if ac_fn_c_try_link "$LINENO"; then : 22883 ac_cv_lib_ssh2_libssh2_channel_open_ex=yes 22884else 22885 ac_cv_lib_ssh2_libssh2_channel_open_ex=no 22886fi 22887rm -f core conftest.err conftest.$ac_objext \ 22888 conftest$ac_exeext conftest.$ac_ext 22889LIBS=$ac_check_lib_save_LIBS 22890fi 22891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5 22892$as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; } 22893if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = x""yes; then : 22894 cat >>confdefs.h <<_ACEOF 22895#define HAVE_LIBSSH2 1 22896_ACEOF 22897 22898 LIBS="-lssh2 $LIBS" 22899 22900fi 22901 22902 22903 for ac_header in libssh2.h 22904do : 22905 ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default" 22906if test "x$ac_cv_header_libssh2_h" = x""yes; then : 22907 cat >>confdefs.h <<_ACEOF 22908#define HAVE_LIBSSH2_H 1 22909_ACEOF 22910 curl_ssh_msg="enabled (libSSH2)" 22911 LIBSSH2_ENABLED=1 22912 22913$as_echo "#define USE_LIBSSH2 1" >>confdefs.h 22914 22915 USE_LIBSSH2=1 22916 22917 22918fi 22919 22920done 22921 22922 22923 if test X"$OPT_LIBSSH2" != Xoff && 22924 test "$LIBSSH2_ENABLED" != "1"; then 22925 as_fn_error "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5 22926 fi 22927 22928 if test "$LIBSSH2_ENABLED" = "1"; then 22929 if test -n "$DIR_SSH2"; then 22930 22931 for ac_func in libssh2_version libssh2_init libssh2_exit \ 22932 libssh2_scp_send64 libssh2_session_handshake 22933do : 22934 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22935ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 22936eval as_val=\$$as_ac_var 22937 if test "x$as_val" = x""yes; then : 22938 cat >>confdefs.h <<_ACEOF 22939#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 22940_ACEOF 22941 22942fi 22943done 22944 22945 22946 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR_SSH2" 22947 export LD_LIBRARY_PATH 22948 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&5 22949$as_echo "$as_me: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&6;} 22950 fi 22951 else 22952 LDFLAGS=$CLEANLDFLAGS 22953 CPPFLAGS=$CLEANCPPFLAGS 22954 LIBS=$CLEANLIBS 22955 fi 22956fi 22957 22958 22959OPT_LIBRTMP=off 22960 22961# Check whether --with-librtmp was given. 22962if test "${with_librtmp+set}" = set; then : 22963 withval=$with_librtmp; OPT_LIBRTMP=$withval 22964fi 22965 22966 22967if test X"$OPT_LIBRTMP" != Xno; then 22968 CLEANLDFLAGS="$LDFLAGS" 22969 CLEANCPPFLAGS="$CPPFLAGS" 22970 CLEANLIBS="$LIBS" 22971 22972 case "$OPT_LIBRTMP" in 22973 yes) 22974 22975 22976 PKGCONFIG="no" 22977 22978 if test x$cross_compiling = xyes; then 22979 # Extract the first word of "${host}-pkg-config", so it can be a program name with args. 22980set dummy ${host}-pkg-config; ac_word=$2 22981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22982$as_echo_n "checking for $ac_word... " >&6; } 22983if test "${ac_cv_path_PKGCONFIG+set}" = set; then : 22984 $as_echo_n "(cached) " >&6 22985else 22986 case $PKGCONFIG in 22987 [\\/]* | ?:[\\/]*) 22988 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 22989 ;; 22990 *) 22991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22992as_dummy="$PATH:/usr/bin:/usr/local/bin" 22993for as_dir in $as_dummy 22994do 22995 IFS=$as_save_IFS 22996 test -z "$as_dir" && as_dir=. 22997 for ac_exec_ext in '' $ac_executable_extensions; do 22998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 22999 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 23000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23001 break 2 23002 fi 23003done 23004 done 23005IFS=$as_save_IFS 23006 23007 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no" 23008 ;; 23009esac 23010fi 23011PKGCONFIG=$ac_cv_path_PKGCONFIG 23012if test -n "$PKGCONFIG"; then 23013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 23014$as_echo "$PKGCONFIG" >&6; } 23015else 23016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23017$as_echo "no" >&6; } 23018fi 23019 23020 23021 fi 23022 23023 if test x$PKGCONFIG = xno; then 23024 # Extract the first word of "pkg-config", so it can be a program name with args. 23025set dummy pkg-config; ac_word=$2 23026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23027$as_echo_n "checking for $ac_word... " >&6; } 23028if test "${ac_cv_path_PKGCONFIG+set}" = set; then : 23029 $as_echo_n "(cached) " >&6 23030else 23031 case $PKGCONFIG in 23032 [\\/]* | ?:[\\/]*) 23033 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. 23034 ;; 23035 *) 23036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23037as_dummy="$PATH:/usr/bin:/usr/local/bin" 23038for as_dir in $as_dummy 23039do 23040 IFS=$as_save_IFS 23041 test -z "$as_dir" && as_dir=. 23042 for ac_exec_ext in '' $ac_executable_extensions; do 23043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 23044 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" 23045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23046 break 2 23047 fi 23048done 23049 done 23050IFS=$as_save_IFS 23051 23052 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="no" 23053 ;; 23054esac 23055fi 23056PKGCONFIG=$ac_cv_path_PKGCONFIG 23057if test -n "$PKGCONFIG"; then 23058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 23059$as_echo "$PKGCONFIG" >&6; } 23060else 23061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23062$as_echo "no" >&6; } 23063fi 23064 23065 23066 fi 23067 23068 if test x$PKGCONFIG != xno; then 23069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5 23070$as_echo_n "checking for librtmp options with pkg-config... " >&6; } 23071 itexists=` 23072 if test -n ""; then 23073 PKG_CONFIG_LIBDIR="" 23074 export PKG_CONFIG_LIBDIR 23075 fi 23076 $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1` 23077 23078 if test -z "$itexists"; then 23079 PKGCONFIG="no" 23080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23081$as_echo "no" >&6; } 23082 else 23083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 23084$as_echo "found" >&6; } 23085 fi 23086 fi 23087 23088 23089 if test "$PKGCONFIG" != "no" ; then 23090 LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp` 23091 LD_RTMP=`$PKGCONFIG --libs-only-L librtmp` 23092 CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp` 23093 version=`$PKGCONFIG --modversion librtmp` 23094 DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'` 23095 else 23096 as_fn_error "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5 23097 fi 23098 23099 ;; 23100 off) 23101 LIB_RTMP="-lrtmp" 23102 ;; 23103 *) 23104 PREFIX_RTMP=$OPT_LIBRTMP 23105 ;; 23106 esac 23107 23108 if test -n "$PREFIX_RTMP"; then 23109 LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff 23110 CPP_RTMP=-I${PREFIX_RTMP}/include 23111 DIR_RTMP=${PREFIX_RTMP}/lib$libsuff 23112 fi 23113 23114 LDFLAGS="$LDFLAGS $LD_RTMP" 23115 CPPFLAGS="$CPPFLAGS $CPP_RTMP" 23116 LIBS="$LIBS $LIB_RTMP" 23117 23118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5 23119$as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; } 23120if test "${ac_cv_lib_rtmp_RTMP_Init+set}" = set; then : 23121 $as_echo_n "(cached) " >&6 23122else 23123 ac_check_lib_save_LIBS=$LIBS 23124LIBS="-lrtmp $LIBS" 23125cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23126/* end confdefs.h. */ 23127 23128 23129#ifdef __cplusplus 23130extern "C" 23131#endif 23132char RTMP_Init (); 23133int main (void) 23134{ 23135return RTMP_Init (); 23136 ; 23137 return 0; 23138} 23139_ACEOF 23140if ac_fn_c_try_link "$LINENO"; then : 23141 ac_cv_lib_rtmp_RTMP_Init=yes 23142else 23143 ac_cv_lib_rtmp_RTMP_Init=no 23144fi 23145rm -f core conftest.err conftest.$ac_objext \ 23146 conftest$ac_exeext conftest.$ac_ext 23147LIBS=$ac_check_lib_save_LIBS 23148fi 23149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5 23150$as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; } 23151if test "x$ac_cv_lib_rtmp_RTMP_Init" = x""yes; then : 23152 23153 for ac_header in librtmp/rtmp.h 23154do : 23155 ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default" 23156if test "x$ac_cv_header_librtmp_rtmp_h" = x""yes; then : 23157 cat >>confdefs.h <<_ACEOF 23158#define HAVE_LIBRTMP_RTMP_H 1 23159_ACEOF 23160 curl_rtmp_msg="enabled (librtmp)" 23161 LIBRTMP_ENABLED=1 23162 23163$as_echo "#define USE_LIBRTMP 1" >>confdefs.h 23164 23165 USE_LIBRTMP=1 23166 23167 23168fi 23169 23170done 23171 23172 23173else 23174 LDFLAGS=$CLEANLDFLAGS 23175 CPPFLAGS=$CLEANCPPFLAGS 23176 LIBS=$CLEANLIBS 23177 23178fi 23179 23180 23181 if test X"$OPT_LIBRTMP" != Xoff && 23182 test "$LIBRTMP_ENABLED" != "1"; then 23183 as_fn_error "librtmp libs and/or directories were not found where specified!" "$LINENO" 5 23184 fi 23185 23186fi 23187 23188 23189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn" >&5 23190$as_echo_n "checking whether to build with libidn... " >&6; } 23191 23192# Check whether --with-libidn was given. 23193if test "${with_libidn+set}" = set; then : 23194 withval=$with_libidn; LIBIDN="$withval" 23195fi 23196 23197 23198case "$LIBIDN" in 23199 no) 23200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23201$as_echo "no" >&6; } 23202 ;; 23203 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23204$as_echo "yes" >&6; } 23205 23206 idn="" 23207 if test -n "$LIBIDN"; then 23208 if test "x$LIBIDN" != "xyes"; then 23209 oldLDFLAGS=$LDFLAGS 23210 oldCPPFLAGS=$CPPFLAGS 23211 LDFLAGS="$LDFLAGS -L$LIBIDN/lib" 23212 CPPFLAGS="$CPPFLAGS -I$LIBIDN/include" 23213 idn="yes" 23214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for idna_to_ascii_4i in -lidn" >&5 23215$as_echo_n "checking for idna_to_ascii_4i in -lidn... " >&6; } 23216if test "${ac_cv_lib_idn_idna_to_ascii_4i+set}" = set; then : 23217 $as_echo_n "(cached) " >&6 23218else 23219 ac_check_lib_save_LIBS=$LIBS 23220LIBS="-lidn $LIBS" 23221cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23222/* end confdefs.h. */ 23223 23224 23225#ifdef __cplusplus 23226extern "C" 23227#endif 23228char idna_to_ascii_4i (); 23229int main (void) 23230{ 23231return idna_to_ascii_4i (); 23232 ; 23233 return 0; 23234} 23235_ACEOF 23236if ac_fn_c_try_link "$LINENO"; then : 23237 ac_cv_lib_idn_idna_to_ascii_4i=yes 23238else 23239 ac_cv_lib_idn_idna_to_ascii_4i=no 23240fi 23241rm -f core conftest.err conftest.$ac_objext \ 23242 conftest$ac_exeext conftest.$ac_ext 23243LIBS=$ac_check_lib_save_LIBS 23244fi 23245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_idn_idna_to_ascii_4i" >&5 23246$as_echo "$ac_cv_lib_idn_idna_to_ascii_4i" >&6; } 23247if test "x$ac_cv_lib_idn_idna_to_ascii_4i" = x""yes; then : 23248 cat >>confdefs.h <<_ACEOF 23249#define HAVE_LIBIDN 1 23250_ACEOF 23251 23252 LIBS="-lidn $LIBS" 23253 23254else 23255 idn="" 23256 LDFLAGS=$oldLDFLAGS 23257 CPPFLAGS=$oldCPPFLAGS 23258fi 23259 23260 fi 23261 fi 23262 23263 if test "x$idn" != "xyes"; then 23264 idn="yes" 23265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for idna_to_ascii_lz in -lidn" >&5 23266$as_echo_n "checking for idna_to_ascii_lz in -lidn... " >&6; } 23267if test "${ac_cv_lib_idn_idna_to_ascii_lz+set}" = set; then : 23268 $as_echo_n "(cached) " >&6 23269else 23270 ac_check_lib_save_LIBS=$LIBS 23271LIBS="-lidn $LIBS" 23272cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23273/* end confdefs.h. */ 23274 23275 23276#ifdef __cplusplus 23277extern "C" 23278#endif 23279char idna_to_ascii_lz (); 23280int main (void) 23281{ 23282return idna_to_ascii_lz (); 23283 ; 23284 return 0; 23285} 23286_ACEOF 23287if ac_fn_c_try_link "$LINENO"; then : 23288 ac_cv_lib_idn_idna_to_ascii_lz=yes 23289else 23290 ac_cv_lib_idn_idna_to_ascii_lz=no 23291fi 23292rm -f core conftest.err conftest.$ac_objext \ 23293 conftest$ac_exeext conftest.$ac_ext 23294LIBS=$ac_check_lib_save_LIBS 23295fi 23296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_idn_idna_to_ascii_lz" >&5 23297$as_echo "$ac_cv_lib_idn_idna_to_ascii_lz" >&6; } 23298if test "x$ac_cv_lib_idn_idna_to_ascii_lz" = x""yes; then : 23299 cat >>confdefs.h <<_ACEOF 23300#define HAVE_LIBIDN 1 23301_ACEOF 23302 23303 LIBS="-lidn $LIBS" 23304 23305else 23306 idn="" 23307fi 23308 23309 fi 23310 23311 if test "x$idn" = "xyes"; then 23312 curl_idn_msg="enabled" 23313 IDN_ENABLED=1 23314 23315 for ac_func in idn_free idna_strerror tld_strerror 23316do : 23317 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 23318ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 23319eval as_val=\$$as_ac_var 23320 if test "x$as_val" = x""yes; then : 23321 cat >>confdefs.h <<_ACEOF 23322#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 23323_ACEOF 23324 23325fi 23326done 23327 23328 for ac_header in idn-free.h tld.h 23329do : 23330 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23331ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 23332eval as_val=\$$as_ac_Header 23333 if test "x$as_val" = x""yes; then : 23334 cat >>confdefs.h <<_ACEOF 23335#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23336_ACEOF 23337 23338fi 23339 23340done 23341 23342 fi 23343 23344 ;; 23345esac 23346 23347 23348 23349 23350 23351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 23352$as_echo_n "checking for ANSI C header files... " >&6; } 23353if test "${ac_cv_header_stdc+set}" = set; then : 23354 $as_echo_n "(cached) " >&6 23355else 23356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23357/* end confdefs.h. */ 23358#include <stdlib.h> 23359#include <stdarg.h> 23360#include <string.h> 23361#include <float.h> 23362 23363int main (void) 23364{ 23365 23366 ; 23367 return 0; 23368} 23369_ACEOF 23370if ac_fn_c_try_compile "$LINENO"; then : 23371 ac_cv_header_stdc=yes 23372else 23373 ac_cv_header_stdc=no 23374fi 23375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23376 23377if test $ac_cv_header_stdc = yes; then 23378 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 23379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23380/* end confdefs.h. */ 23381#include <string.h> 23382 23383_ACEOF 23384if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23385 $EGREP "memchr" >/dev/null 2>&1; then : 23386 23387else 23388 ac_cv_header_stdc=no 23389fi 23390rm -f conftest* 23391 23392fi 23393 23394if test $ac_cv_header_stdc = yes; then 23395 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 23396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23397/* end confdefs.h. */ 23398#include <stdlib.h> 23399 23400_ACEOF 23401if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23402 $EGREP "free" >/dev/null 2>&1; then : 23403 23404else 23405 ac_cv_header_stdc=no 23406fi 23407rm -f conftest* 23408 23409fi 23410 23411if test $ac_cv_header_stdc = yes; then 23412 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 23413 if test "$cross_compiling" = yes; then : 23414 : 23415else 23416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23417/* end confdefs.h. */ 23418#include <ctype.h> 23419#include <stdlib.h> 23420#if ((' ' & 0x0FF) == 0x020) 23421# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 23422# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 23423#else 23424# define ISLOWER(c) \ 23425 (('a' <= (c) && (c) <= 'i') \ 23426 || ('j' <= (c) && (c) <= 'r') \ 23427 || ('s' <= (c) && (c) <= 'z')) 23428# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 23429#endif 23430 23431#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 23432int 23433main () 23434{ 23435 int i; 23436 for (i = 0; i < 256; i++) 23437 if (XOR (islower (i), ISLOWER (i)) 23438 || toupper (i) != TOUPPER (i)) 23439 return 2; 23440 return 0; 23441} 23442_ACEOF 23443if ac_fn_c_try_run "$LINENO"; then : 23444 23445else 23446 ac_cv_header_stdc=no 23447fi 23448rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23449 conftest.$ac_objext conftest.beam conftest.$ac_ext 23450fi 23451 23452fi 23453fi 23454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 23455$as_echo "$ac_cv_header_stdc" >&6; } 23456if test $ac_cv_header_stdc = yes; then 23457 23458$as_echo "#define STDC_HEADERS 1" >>confdefs.h 23459 23460fi 23461 23462 23463 23464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5 23465$as_echo_n "checking for malloc.h... " >&6; } 23466if test "${ac_cv_header_malloc_h+set}" = set; then : 23467 $as_echo_n "(cached) " >&6 23468else 23469 23470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23471/* end confdefs.h. */ 23472 23473 23474#include <malloc.h> 23475 23476int main (void) 23477{ 23478 23479 void *p = malloc(10); 23480 void *q = calloc(10,10); 23481 free(p); 23482 free(q); 23483 23484 ; 23485 return 0; 23486} 23487 23488_ACEOF 23489if ac_fn_c_try_compile "$LINENO"; then : 23490 23491 ac_cv_header_malloc_h="yes" 23492 23493else 23494 23495 ac_cv_header_malloc_h="no" 23496 23497fi 23498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23499 23500fi 23501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_malloc_h" >&5 23502$as_echo "$ac_cv_header_malloc_h" >&6; } 23503 if test "$ac_cv_header_malloc_h" = "yes"; then 23504 23505cat >>confdefs.h <<_ACEOF 23506#define HAVE_MALLOC_H 1 23507_ACEOF 23508 23509 # 23510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23511/* end confdefs.h. */ 23512 23513 23514#include <stdlib.h> 23515 23516int main (void) 23517{ 23518 23519 void *p = malloc(10); 23520 void *q = calloc(10,10); 23521 free(p); 23522 free(q); 23523 23524 ; 23525 return 0; 23526} 23527 23528_ACEOF 23529if ac_fn_c_try_compile "$LINENO"; then : 23530 23531 curl_cv_need_header_malloc_h="no" 23532 23533else 23534 23535 curl_cv_need_header_malloc_h="yes" 23536 23537fi 23538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23539 # 23540 case "$curl_cv_need_header_malloc_h" in 23541 yes) 23542 23543cat >>confdefs.h <<_ACEOF 23544#define NEED_MALLOC_H 1 23545_ACEOF 23546 23547 ;; 23548 esac 23549 fi 23550 23551 23552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5 23553$as_echo_n "checking for memory.h... " >&6; } 23554if test "${ac_cv_header_memory_h+set}" = set; then : 23555 $as_echo_n "(cached) " >&6 23556else 23557 23558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23559/* end confdefs.h. */ 23560 23561 23562#include <memory.h> 23563 23564int main (void) 23565{ 23566 23567 void *p = malloc(10); 23568 void *q = calloc(10,10); 23569 free(p); 23570 free(q); 23571 23572 ; 23573 return 0; 23574} 23575 23576_ACEOF 23577if ac_fn_c_try_compile "$LINENO"; then : 23578 23579 ac_cv_header_memory_h="yes" 23580 23581else 23582 23583 ac_cv_header_memory_h="no" 23584 23585fi 23586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23587 23588fi 23589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_memory_h" >&5 23590$as_echo "$ac_cv_header_memory_h" >&6; } 23591 if test "$ac_cv_header_memory_h" = "yes"; then 23592 23593cat >>confdefs.h <<_ACEOF 23594#define HAVE_MEMORY_H 1 23595_ACEOF 23596 23597 # 23598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23599/* end confdefs.h. */ 23600 23601 23602#include <stdlib.h> 23603 23604int main (void) 23605{ 23606 23607 void *p = malloc(10); 23608 void *q = calloc(10,10); 23609 free(p); 23610 free(q); 23611 23612 ; 23613 return 0; 23614} 23615 23616_ACEOF 23617if ac_fn_c_try_compile "$LINENO"; then : 23618 23619 curl_cv_need_header_memory_h="no" 23620 23621else 23622 23623 curl_cv_need_header_memory_h="yes" 23624 23625fi 23626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23627 # 23628 case "$curl_cv_need_header_memory_h" in 23629 yes) 23630 23631cat >>confdefs.h <<_ACEOF 23632#define NEED_MEMORY_H 1 23633_ACEOF 23634 23635 ;; 23636 esac 23637 fi 23638 23639 23640for ac_header in sys/types.h \ 23641 sys/time.h \ 23642 sys/select.h \ 23643 sys/socket.h \ 23644 sys/ioctl.h \ 23645 sys/uio.h \ 23646 assert.h \ 23647 unistd.h \ 23648 stdlib.h \ 23649 limits.h \ 23650 arpa/inet.h \ 23651 net/if.h \ 23652 netinet/in.h \ 23653 sys/un.h \ 23654 netinet/tcp.h \ 23655 netdb.h \ 23656 sys/sockio.h \ 23657 sys/stat.h \ 23658 sys/param.h \ 23659 termios.h \ 23660 termio.h \ 23661 sgtty.h \ 23662 fcntl.h \ 23663 alloca.h \ 23664 time.h \ 23665 io.h \ 23666 pwd.h \ 23667 utime.h \ 23668 sys/utime.h \ 23669 sys/poll.h \ 23670 poll.h \ 23671 socket.h \ 23672 sys/resource.h \ 23673 libgen.h \ 23674 locale.h \ 23675 errno.h \ 23676 stdbool.h \ 23677 arpa/tftp.h \ 23678 sys/filio.h \ 23679 sys/wait.h \ 23680 setjmp.h 23681do : 23682 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23683ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 23684#ifdef HAVE_SYS_TYPES_H 23685#include <sys/types.h> 23686#endif 23687#ifdef HAVE_SYS_TIME_H 23688#include <sys/time.h> 23689#endif 23690#ifdef HAVE_SYS_SELECT_H 23691#include <sys/select.h> 23692#endif 23693#ifdef HAVE_SYS_SOCKET_H 23694#include <sys/socket.h> 23695#endif 23696#ifdef HAVE_NETINET_IN_H 23697#include <netinet/in.h> 23698#endif 23699#ifdef HAVE_SYS_UN_H 23700#include <sys/un.h> 23701#endif 23702 23703 23704" 23705eval as_val=\$$as_ac_Header 23706 if test "x$as_val" = x""yes; then : 23707 cat >>confdefs.h <<_ACEOF 23708#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23709_ACEOF 23710 23711fi 23712 23713done 23714 23715 23716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 23717$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 23718if test "${ac_cv_c_const+set}" = set; then : 23719 $as_echo_n "(cached) " >&6 23720else 23721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23722/* end confdefs.h. */ 23723 23724int main (void) 23725{ 23726/* FIXME: Include the comments suggested by Paul. */ 23727#ifndef __cplusplus 23728 /* Ultrix mips cc rejects this. */ 23729 typedef int charset[2]; 23730 const charset cs; 23731 /* SunOS 4.1.1 cc rejects this. */ 23732 char const *const *pcpcc; 23733 char **ppc; 23734 /* NEC SVR4.0.2 mips cc rejects this. */ 23735 struct point {int x, y;}; 23736 static struct point const zero = {0,0}; 23737 /* AIX XL C 1.02.0.0 rejects this. 23738 It does not let you subtract one const X* pointer from another in 23739 an arm of an if-expression whose if-part is not a constant 23740 expression */ 23741 const char *g = "string"; 23742 pcpcc = &g + (g ? g-g : 0); 23743 /* HPUX 7.0 cc rejects these. */ 23744 ++pcpcc; 23745 ppc = (char**) pcpcc; 23746 pcpcc = (char const *const *) ppc; 23747 { /* SCO 3.2v4 cc rejects this. */ 23748 char *t; 23749 char const *s = 0 ? (char *) 0 : (char const *) 0; 23750 23751 *t++ = 0; 23752 if (s) return 0; 23753 } 23754 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 23755 int x[] = {25, 17}; 23756 const int *foo = &x[0]; 23757 ++foo; 23758 } 23759 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 23760 typedef const int *iptr; 23761 iptr p = 0; 23762 ++p; 23763 } 23764 { /* AIX XL C 1.02.0.0 rejects this saying 23765 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 23766 struct s { int j; const int *ap[3]; }; 23767 struct s *b; b->j = 5; 23768 } 23769 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 23770 const int foo = 10; 23771 if (!foo) return 0; 23772 } 23773 return !cs[0] && !zero.x; 23774#endif 23775 23776 ; 23777 return 0; 23778} 23779_ACEOF 23780if ac_fn_c_try_compile "$LINENO"; then : 23781 ac_cv_c_const=yes 23782else 23783 ac_cv_c_const=no 23784fi 23785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23786fi 23787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 23788$as_echo "$ac_cv_c_const" >&6; } 23789if test $ac_cv_c_const = no; then 23790 23791$as_echo "#define const /**/" >>confdefs.h 23792 23793fi 23794 23795 23796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5 23797$as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; } 23798if test "${curl_cv_variadic_macros_c99+set}" = set; then : 23799 $as_echo_n "(cached) " >&6 23800else 23801 23802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23803/* end confdefs.h. */ 23804 23805 23806#define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__) 23807#define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__) 23808 int fun3(int arg1, int arg2, int arg3); 23809 int fun2(int arg1, int arg2); 23810 int fun3(int arg1, int arg2, int arg3) 23811 { return arg1 + arg2 + arg3; } 23812 int fun2(int arg1, int arg2) 23813 { return arg1 + arg2; } 23814 23815int main (void) 23816{ 23817 23818 int res3 = c99_vmacro3(1, 2, 3); 23819 int res2 = c99_vmacro2(1, 2); 23820 23821 ; 23822 return 0; 23823} 23824 23825_ACEOF 23826if ac_fn_c_try_compile "$LINENO"; then : 23827 23828 curl_cv_variadic_macros_c99="yes" 23829 23830else 23831 23832 curl_cv_variadic_macros_c99="no" 23833 23834fi 23835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23836 23837fi 23838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5 23839$as_echo "$curl_cv_variadic_macros_c99" >&6; } 23840 case "$curl_cv_variadic_macros_c99" in 23841 yes) 23842 23843cat >>confdefs.h <<_ACEOF 23844#define HAVE_VARIADIC_MACROS_C99 1 23845_ACEOF 23846 23847 ;; 23848 esac 23849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5 23850$as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; } 23851if test "${curl_cv_variadic_macros_gcc+set}" = set; then : 23852 $as_echo_n "(cached) " >&6 23853else 23854 23855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23856/* end confdefs.h. */ 23857 23858 23859#define gcc_vmacro3(first, args...) fun3(first, args) 23860#define gcc_vmacro2(first, args...) fun2(first, args) 23861 int fun3(int arg1, int arg2, int arg3); 23862 int fun2(int arg1, int arg2); 23863 int fun3(int arg1, int arg2, int arg3) 23864 { return arg1 + arg2 + arg3; } 23865 int fun2(int arg1, int arg2) 23866 { return arg1 + arg2; } 23867 23868int main (void) 23869{ 23870 23871 int res3 = gcc_vmacro3(1, 2, 3); 23872 int res2 = gcc_vmacro2(1, 2); 23873 23874 ; 23875 return 0; 23876} 23877 23878_ACEOF 23879if ac_fn_c_try_compile "$LINENO"; then : 23880 23881 curl_cv_variadic_macros_gcc="yes" 23882 23883else 23884 23885 curl_cv_variadic_macros_gcc="no" 23886 23887fi 23888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23889 23890fi 23891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5 23892$as_echo "$curl_cv_variadic_macros_gcc" >&6; } 23893 case "$curl_cv_variadic_macros_gcc" in 23894 yes) 23895 23896cat >>confdefs.h <<_ACEOF 23897#define HAVE_VARIADIC_MACROS_GCC 1 23898_ACEOF 23899 23900 ;; 23901 esac 23902 23903ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 23904if test "x$ac_cv_type_size_t" = x""yes; then : 23905 23906else 23907 23908cat >>confdefs.h <<_ACEOF 23909#define size_t unsigned int 23910_ACEOF 23911 23912fi 23913 23914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 23915$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 23916if test "${ac_cv_header_time+set}" = set; then : 23917 $as_echo_n "(cached) " >&6 23918else 23919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23920/* end confdefs.h. */ 23921#include <sys/types.h> 23922#include <sys/time.h> 23923#include <time.h> 23924 23925int main (void) 23926{ 23927if ((struct tm *) 0) 23928return 0; 23929 ; 23930 return 0; 23931} 23932_ACEOF 23933if ac_fn_c_try_compile "$LINENO"; then : 23934 ac_cv_header_time=yes 23935else 23936 ac_cv_header_time=no 23937fi 23938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23939fi 23940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 23941$as_echo "$ac_cv_header_time" >&6; } 23942if test $ac_cv_header_time = yes; then 23943 23944$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 23945 23946fi 23947 23948 23949 for ac_header in sys/types.h sys/time.h time.h sys/socket.h 23950do : 23951 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23952ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 23953eval as_val=\$$as_ac_Header 23954 if test "x$as_val" = x""yes; then : 23955 cat >>confdefs.h <<_ACEOF 23956#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23957_ACEOF 23958 23959fi 23960 23961done 23962 23963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 23964$as_echo_n "checking for struct timeval... " >&6; } 23965if test "${ac_cv_struct_timeval+set}" = set; then : 23966 $as_echo_n "(cached) " >&6 23967else 23968 23969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23970/* end confdefs.h. */ 23971 23972 23973#undef inline 23974#ifdef HAVE_WINDOWS_H 23975#ifndef WIN32_LEAN_AND_MEAN 23976#define WIN32_LEAN_AND_MEAN 23977#endif 23978#include <windows.h> 23979#ifdef HAVE_WINSOCK2_H 23980#include <winsock2.h> 23981#else 23982#ifdef HAVE_WINSOCK_H 23983#include <winsock.h> 23984#endif 23985#endif 23986#endif 23987#ifdef HAVE_SYS_TYPES_H 23988#include <sys/types.h> 23989#endif 23990#ifdef HAVE_SYS_TIME_H 23991#include <sys/time.h> 23992#ifdef TIME_WITH_SYS_TIME 23993#include <time.h> 23994#endif 23995#else 23996#ifdef HAVE_TIME_H 23997#include <time.h> 23998#endif 23999#endif 24000#ifdef HAVE_SYS_SOCKET_H 24001#include <sys/socket.h> 24002#endif 24003 24004int main (void) 24005{ 24006 24007 struct timeval ts; 24008 ts.tv_sec = 0; 24009 ts.tv_usec = 0; 24010 24011 ; 24012 return 0; 24013} 24014 24015_ACEOF 24016if ac_fn_c_try_compile "$LINENO"; then : 24017 24018 ac_cv_struct_timeval="yes" 24019 24020else 24021 24022 ac_cv_struct_timeval="no" 24023 24024fi 24025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24026 24027fi 24028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_timeval" >&5 24029$as_echo "$ac_cv_struct_timeval" >&6; } 24030 case "$ac_cv_struct_timeval" in 24031 yes) 24032 24033cat >>confdefs.h <<_ACEOF 24034#define HAVE_STRUCT_TIMEVAL 1 24035_ACEOF 24036 24037 ;; 24038 esac 24039 24040 24041 24042 if test "x$cross_compiling" != xyes; then 24043 24044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5 24045$as_echo_n "checking run-time libs availability... " >&6; } 24046 if test "$cross_compiling" = yes; then : 24047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24048$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24049as_fn_error "cannot run test program while cross compiling 24050See \`config.log' for more details." "$LINENO" 5; } 24051else 24052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24053/* end confdefs.h. */ 24054 24055main() 24056{ 24057 return 0; 24058} 24059 24060_ACEOF 24061if ac_fn_c_try_run "$LINENO"; then : 24062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5 24063$as_echo "fine" >&6; } 24064else 24065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 24066$as_echo "failed" >&6; } 24067 as_fn_error "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5 24068 24069fi 24070rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24071 conftest.$ac_objext conftest.beam conftest.$ac_ext 24072fi 24073 24074 24075 fi 24076 24077 24078# The cast to long int works around a bug in the HP C Compiler 24079# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 24080# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 24081# This bug is HP SR number 8606223364. 24082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 24083$as_echo_n "checking size of size_t... " >&6; } 24084if test "${ac_cv_sizeof_size_t+set}" = set; then : 24085 $as_echo_n "(cached) " >&6 24086else 24087 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : 24088 24089else 24090 if test "$ac_cv_type_size_t" = yes; then 24091 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24092$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24093{ as_fn_set_status 77 24094as_fn_error "cannot compute sizeof (size_t) 24095See \`config.log' for more details." "$LINENO" 5; }; } 24096 else 24097 ac_cv_sizeof_size_t=0 24098 fi 24099fi 24100 24101fi 24102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 24103$as_echo "$ac_cv_sizeof_size_t" >&6; } 24104 24105 24106 24107cat >>confdefs.h <<_ACEOF 24108#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 24109_ACEOF 24110 24111 24112# The cast to long int works around a bug in the HP C Compiler 24113# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 24114# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 24115# This bug is HP SR number 8606223364. 24116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 24117$as_echo_n "checking size of long... " >&6; } 24118if test "${ac_cv_sizeof_long+set}" = set; then : 24119 $as_echo_n "(cached) " >&6 24120else 24121 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 24122 24123else 24124 if test "$ac_cv_type_long" = yes; then 24125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24126$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24127{ as_fn_set_status 77 24128as_fn_error "cannot compute sizeof (long) 24129See \`config.log' for more details." "$LINENO" 5; }; } 24130 else 24131 ac_cv_sizeof_long=0 24132 fi 24133fi 24134 24135fi 24136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 24137$as_echo "$ac_cv_sizeof_long" >&6; } 24138 24139 24140 24141cat >>confdefs.h <<_ACEOF 24142#define SIZEOF_LONG $ac_cv_sizeof_long 24143_ACEOF 24144 24145 24146# The cast to long int works around a bug in the HP C Compiler 24147# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 24148# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 24149# This bug is HP SR number 8606223364. 24150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 24151$as_echo_n "checking size of int... " >&6; } 24152if test "${ac_cv_sizeof_int+set}" = set; then : 24153 $as_echo_n "(cached) " >&6 24154else 24155 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 24156 24157else 24158 if test "$ac_cv_type_int" = yes; then 24159 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24160$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24161{ as_fn_set_status 77 24162as_fn_error "cannot compute sizeof (int) 24163See \`config.log' for more details." "$LINENO" 5; }; } 24164 else 24165 ac_cv_sizeof_int=0 24166 fi 24167fi 24168 24169fi 24170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 24171$as_echo "$ac_cv_sizeof_int" >&6; } 24172 24173 24174 24175cat >>confdefs.h <<_ACEOF 24176#define SIZEOF_INT $ac_cv_sizeof_int 24177_ACEOF 24178 24179 24180# The cast to long int works around a bug in the HP C Compiler 24181# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 24182# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 24183# This bug is HP SR number 8606223364. 24184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 24185$as_echo_n "checking size of short... " >&6; } 24186if test "${ac_cv_sizeof_short+set}" = set; then : 24187 $as_echo_n "(cached) " >&6 24188else 24189 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 24190 24191else 24192 if test "$ac_cv_type_short" = yes; then 24193 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24194$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24195{ as_fn_set_status 77 24196as_fn_error "cannot compute sizeof (short) 24197See \`config.log' for more details." "$LINENO" 5; }; } 24198 else 24199 ac_cv_sizeof_short=0 24200 fi 24201fi 24202 24203fi 24204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 24205$as_echo "$ac_cv_sizeof_short" >&6; } 24206 24207 24208 24209cat >>confdefs.h <<_ACEOF 24210#define SIZEOF_SHORT $ac_cv_sizeof_short 24211_ACEOF 24212 24213 24214 24215 if test -z "$ac_cv_sizeof_long" || 24216 test "$ac_cv_sizeof_long" -eq "0"; then 24217 as_fn_error "cannot find out size of long." "$LINENO" 5 24218 fi 24219 24220cat >>confdefs.h <<_EOF 24221#define CURL_SIZEOF_LONG $ac_cv_sizeof_long 24222_EOF 24223 24224 24225# The cast to long int works around a bug in the HP C Compiler 24226# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 24227# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 24228# This bug is HP SR number 8606223364. 24229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 24230$as_echo_n "checking size of time_t... " >&6; } 24231if test "${ac_cv_sizeof_time_t+set}" = set; then : 24232 $as_echo_n "(cached) " >&6 24233else 24234 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then : 24235 24236else 24237 if test "$ac_cv_type_time_t" = yes; then 24238 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24239$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24240{ as_fn_set_status 77 24241as_fn_error "cannot compute sizeof (time_t) 24242See \`config.log' for more details." "$LINENO" 5; }; } 24243 else 24244 ac_cv_sizeof_time_t=0 24245 fi 24246fi 24247 24248fi 24249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 24250$as_echo "$ac_cv_sizeof_time_t" >&6; } 24251 24252 24253 24254cat >>confdefs.h <<_ACEOF 24255#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 24256_ACEOF 24257 24258 24259# The cast to long int works around a bug in the HP C Compiler 24260# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 24261# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 24262# This bug is HP SR number 8606223364. 24263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 24264$as_echo_n "checking size of off_t... " >&6; } 24265if test "${ac_cv_sizeof_off_t+set}" = set; then : 24266 $as_echo_n "(cached) " >&6 24267else 24268 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : 24269 24270else 24271 if test "$ac_cv_type_off_t" = yes; then 24272 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24273$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24274{ as_fn_set_status 77 24275as_fn_error "cannot compute sizeof (off_t) 24276See \`config.log' for more details." "$LINENO" 5; }; } 24277 else 24278 ac_cv_sizeof_off_t=0 24279 fi 24280fi 24281 24282fi 24283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 24284$as_echo "$ac_cv_sizeof_off_t" >&6; } 24285 24286 24287 24288cat >>confdefs.h <<_ACEOF 24289#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 24290_ACEOF 24291 24292 24293 24294soname_bump=no 24295if test x"$ac_cv_native_windows" != "xyes" && 24296 test $ac_cv_sizeof_off_t -ne $curl_sizeof_curl_off_t; then 24297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This libcurl built is probably not ABI compatible with previous" >&5 24298$as_echo "$as_me: WARNING: This libcurl built is probably not ABI compatible with previous" >&2;} 24299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&5 24300$as_echo "$as_me: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&2;} 24301 soname_bump=yes 24302fi 24303 24304 24305ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 24306if test "x$ac_cv_type_long_long" = x""yes; then : 24307 24308$as_echo "#define HAVE_LONGLONG 1" >>confdefs.h 24309 24310 longlong="yes" 24311 24312fi 24313 24314 24315if test "xyes" = "x$longlong"; then 24316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5 24317$as_echo_n "checking if numberLL works... " >&6; } 24318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24319/* end confdefs.h. */ 24320 24321 24322 24323int main (void) 24324{ 24325 24326 long long val = 1000LL; 24327 24328 ; 24329 return 0; 24330} 24331 24332_ACEOF 24333if ac_fn_c_try_compile "$LINENO"; then : 24334 24335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24336$as_echo "yes" >&6; } 24337 24338$as_echo "#define HAVE_LL 1" >>confdefs.h 24339 24340 24341else 24342 24343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24344$as_echo "no" >&6; } 24345 24346fi 24347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24348fi 24349 24350 24351# check for ssize_t 24352ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 24353if test "x$ac_cv_type_ssize_t" = x""yes; then : 24354 24355else 24356 24357$as_echo "#define ssize_t int" >>confdefs.h 24358 24359fi 24360 24361 24362# check for bool type 24363ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" " 24364#ifdef HAVE_SYS_TYPES_H 24365#include <sys/types.h> 24366#endif 24367#ifdef HAVE_STDBOOL_H 24368#include <stdbool.h> 24369#endif 24370 24371" 24372if test "x$ac_cv_type_bool" = x""yes; then : 24373 24374 24375$as_echo "#define HAVE_BOOL_T 1" >>confdefs.h 24376 24377 24378fi 24379 24380 24381 24382curl_includes_ws2tcpip="\ 24383/* includes start */ 24384#ifdef HAVE_WINDOWS_H 24385# ifndef WIN32_LEAN_AND_MEAN 24386# define WIN32_LEAN_AND_MEAN 24387# endif 24388# include <windows.h> 24389# ifdef HAVE_WINSOCK2_H 24390# include <winsock2.h> 24391# ifdef HAVE_WS2TCPIP_H 24392# include <ws2tcpip.h> 24393# endif 24394# endif 24395#endif 24396/* includes end */" 24397 24398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5 24399$as_echo_n "checking for windows.h... " >&6; } 24400if test "${ac_cv_header_windows_h+set}" = set; then : 24401 $as_echo_n "(cached) " >&6 24402else 24403 24404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24405/* end confdefs.h. */ 24406 24407 24408#undef inline 24409#ifndef WIN32_LEAN_AND_MEAN 24410#define WIN32_LEAN_AND_MEAN 24411#endif 24412#include <windows.h> 24413 24414int main (void) 24415{ 24416 24417#if defined(__CYGWIN__) || defined(__CEGCC__) 24418 HAVE_WINDOWS_H shall not be defined. 24419#else 24420 int dummy=2*WINVER; 24421#endif 24422 24423 ; 24424 return 0; 24425} 24426 24427_ACEOF 24428if ac_fn_c_try_compile "$LINENO"; then : 24429 24430 ac_cv_header_windows_h="yes" 24431 24432else 24433 24434 ac_cv_header_windows_h="no" 24435 24436fi 24437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24438 24439fi 24440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5 24441$as_echo "$ac_cv_header_windows_h" >&6; } 24442 case "$ac_cv_header_windows_h" in 24443 yes) 24444 24445cat >>confdefs.h <<_ACEOF 24446#define HAVE_WINDOWS_H 1 24447_ACEOF 24448 24449 24450cat >>confdefs.h <<_ACEOF 24451#define WIN32_LEAN_AND_MEAN 1 24452_ACEOF 24453 24454 ;; 24455 esac 24456 24457 24458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5 24459$as_echo_n "checking for winsock2.h... " >&6; } 24460if test "${ac_cv_header_winsock2_h+set}" = set; then : 24461 $as_echo_n "(cached) " >&6 24462else 24463 24464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24465/* end confdefs.h. */ 24466 24467 24468#undef inline 24469#ifndef WIN32_LEAN_AND_MEAN 24470#define WIN32_LEAN_AND_MEAN 24471#endif 24472#include <windows.h> 24473#include <winsock2.h> 24474 24475int main (void) 24476{ 24477 24478#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__) 24479 HAVE_WINSOCK2_H shall not be defined. 24480#else 24481 int dummy=2*IPPROTO_ESP; 24482#endif 24483 24484 ; 24485 return 0; 24486} 24487 24488_ACEOF 24489if ac_fn_c_try_compile "$LINENO"; then : 24490 24491 ac_cv_header_winsock2_h="yes" 24492 24493else 24494 24495 ac_cv_header_winsock2_h="no" 24496 24497fi 24498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24499 24500fi 24501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5 24502$as_echo "$ac_cv_header_winsock2_h" >&6; } 24503 case "$ac_cv_header_winsock2_h" in 24504 yes) 24505 24506cat >>confdefs.h <<_ACEOF 24507#define HAVE_WINSOCK2_H 1 24508_ACEOF 24509 24510 ;; 24511 esac 24512 24513 24514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5 24515$as_echo_n "checking for ws2tcpip.h... " >&6; } 24516if test "${ac_cv_header_ws2tcpip_h+set}" = set; then : 24517 $as_echo_n "(cached) " >&6 24518else 24519 24520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24521/* end confdefs.h. */ 24522 24523 24524#undef inline 24525#ifndef WIN32_LEAN_AND_MEAN 24526#define WIN32_LEAN_AND_MEAN 24527#endif 24528#include <windows.h> 24529#include <winsock2.h> 24530#include <ws2tcpip.h> 24531 24532int main (void) 24533{ 24534 24535#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__) 24536 HAVE_WS2TCPIP_H shall not be defined. 24537#else 24538 int dummy=2*IP_PKTINFO; 24539#endif 24540 24541 ; 24542 return 0; 24543} 24544 24545_ACEOF 24546if ac_fn_c_try_compile "$LINENO"; then : 24547 24548 ac_cv_header_ws2tcpip_h="yes" 24549 24550else 24551 24552 ac_cv_header_ws2tcpip_h="no" 24553 24554fi 24555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24556 24557fi 24558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5 24559$as_echo "$ac_cv_header_ws2tcpip_h" >&6; } 24560 case "$ac_cv_header_ws2tcpip_h" in 24561 yes) 24562 24563cat >>confdefs.h <<_ACEOF 24564#define HAVE_WS2TCPIP_H 1 24565_ACEOF 24566 24567 ;; 24568 esac 24569 24570 24571 24572curl_includes_sys_socket="\ 24573/* includes start */ 24574#ifdef HAVE_SYS_TYPES_H 24575# include <sys/types.h> 24576#endif 24577#ifdef HAVE_SYS_SOCKET_H 24578# include <sys/socket.h> 24579#endif 24580/* includes end */" 24581 for ac_header in sys/types.h sys/socket.h 24582do : 24583 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 24584ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket 24585" 24586eval as_val=\$$as_ac_Header 24587 if test "x$as_val" = x""yes; then : 24588 cat >>confdefs.h <<_ACEOF 24589#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 24590_ACEOF 24591 24592fi 24593 24594done 24595 24596 24597 24598curl_preprocess_callconv="\ 24599/* preprocess start */ 24600#ifdef HAVE_WINDOWS_H 24601# define FUNCALLCONV __stdcall 24602#else 24603# define FUNCALLCONV 24604#endif 24605/* preprocess end */" 24606 24607 24608 # 24609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_socklen_t data type" >&5 24610$as_echo_n "checking for curl_socklen_t data type... " >&6; } 24611 curl_typeof_curl_socklen_t="unknown" 24612 for arg1 in int SOCKET; do 24613 for arg2 in 'struct sockaddr' void; do 24614 for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do 24615 if test "$curl_typeof_curl_socklen_t" = "unknown"; then 24616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24617/* end confdefs.h. */ 24618 24619 24620 $curl_includes_ws2tcpip 24621 $curl_includes_sys_socket 24622 $curl_preprocess_callconv 24623 extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *); 24624 24625int main (void) 24626{ 24627 24628 $t *lenptr = 0; 24629 if(0 != getpeername(0, 0, lenptr)) 24630 return 1; 24631 24632 ; 24633 return 0; 24634} 24635 24636_ACEOF 24637if ac_fn_c_try_compile "$LINENO"; then : 24638 24639 curl_typeof_curl_socklen_t="$t" 24640 24641fi 24642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24643 fi 24644 done 24645 done 24646 done 24647 for t in socklen_t int; do 24648 if test "$curl_typeof_curl_socklen_t" = "void"; then 24649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24650/* end confdefs.h. */ 24651 24652 24653 $curl_includes_sys_socket 24654 typedef $t curl_socklen_t; 24655 24656int main (void) 24657{ 24658 24659 curl_socklen_t dummy; 24660 24661 ; 24662 return 0; 24663} 24664 24665_ACEOF 24666if ac_fn_c_try_compile "$LINENO"; then : 24667 24668 curl_typeof_curl_socklen_t="$t" 24669 24670fi 24671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24672 fi 24673 done 24674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_socklen_t" >&5 24675$as_echo "$curl_typeof_curl_socklen_t" >&6; } 24676 if test "$curl_typeof_curl_socklen_t" = "void" || 24677 test "$curl_typeof_curl_socklen_t" = "unknown"; then 24678 as_fn_error "cannot find data type for curl_socklen_t." "$LINENO" 5 24679 fi 24680 # 24681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_socklen_t" >&5 24682$as_echo_n "checking size of curl_socklen_t... " >&6; } 24683 curl_sizeof_curl_socklen_t="unknown" 24684 curl_pull_headers_socklen_t="unknown" 24685 if test "$ac_cv_header_ws2tcpip_h" = "yes"; then 24686 tst_pull_header_checks='none ws2tcpip' 24687 tst_size_checks='4' 24688 else 24689 tst_pull_header_checks='none systypes syssocket' 24690 tst_size_checks='4 8 2' 24691 fi 24692 for tst_size in $tst_size_checks; do 24693 for tst_pull_headers in $tst_pull_header_checks; do 24694 if test "$curl_sizeof_curl_socklen_t" = "unknown"; then 24695 case $tst_pull_headers in 24696 ws2tcpip) 24697 tmp_includes="$curl_includes_ws2tcpip" 24698 ;; 24699 systypes) 24700 tmp_includes="$curl_includes_sys_types" 24701 ;; 24702 syssocket) 24703 tmp_includes="$curl_includes_sys_socket" 24704 ;; 24705 *) 24706 tmp_includes="" 24707 ;; 24708 esac 24709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24710/* end confdefs.h. */ 24711 24712 24713 $tmp_includes 24714 typedef $curl_typeof_curl_socklen_t curl_socklen_t; 24715 typedef char dummy_arr[sizeof(curl_socklen_t) == $tst_size ? 1 : -1]; 24716 24717int main (void) 24718{ 24719 24720 curl_socklen_t dummy; 24721 24722 ; 24723 return 0; 24724} 24725 24726_ACEOF 24727if ac_fn_c_try_compile "$LINENO"; then : 24728 24729 curl_sizeof_curl_socklen_t="$tst_size" 24730 curl_pull_headers_socklen_t="$tst_pull_headers" 24731 24732fi 24733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24734 fi 24735 done 24736 done 24737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_socklen_t" >&5 24738$as_echo "$curl_sizeof_curl_socklen_t" >&6; } 24739 if test "$curl_sizeof_curl_socklen_t" = "unknown"; then 24740 as_fn_error "cannot find out size of curl_socklen_t." "$LINENO" 5 24741 fi 24742 # 24743 case $curl_pull_headers_socklen_t in 24744 ws2tcpip) 24745 24746cat >>confdefs.h <<_EOF 24747#define CURL_PULL_WS2TCPIP_H 1 24748_EOF 24749 24750 ;; 24751 systypes) 24752 24753cat >>confdefs.h <<_EOF 24754#define CURL_PULL_SYS_TYPES_H 1 24755_EOF 24756 24757 ;; 24758 syssocket) 24759 24760cat >>confdefs.h <<_EOF 24761#define CURL_PULL_SYS_TYPES_H 1 24762_EOF 24763 24764 24765cat >>confdefs.h <<_EOF 24766#define CURL_PULL_SYS_SOCKET_H 1 24767_EOF 24768 24769 ;; 24770 esac 24771 24772cat >>confdefs.h <<_EOF 24773#define CURL_TYPEOF_CURL_SOCKLEN_T $curl_typeof_curl_socklen_t 24774_EOF 24775 24776 24777cat >>confdefs.h <<_EOF 24778#define CURL_SIZEOF_CURL_SOCKLEN_T $curl_sizeof_curl_socklen_t 24779_EOF 24780 24781 24782 24783 24784 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" " 24785#undef inline 24786#ifdef HAVE_WINDOWS_H 24787#ifndef WIN32_LEAN_AND_MEAN 24788#define WIN32_LEAN_AND_MEAN 24789#endif 24790#include <windows.h> 24791#ifdef HAVE_WINSOCK2_H 24792#include <winsock2.h> 24793#else 24794#ifdef HAVE_WINSOCK_H 24795#include <winsock.h> 24796#endif 24797#endif 24798#else 24799#ifdef HAVE_SYS_TYPES_H 24800#include <sys/types.h> 24801#endif 24802#ifdef HAVE_SYS_SOCKET_H 24803#include <sys/socket.h> 24804#endif 24805#ifdef HAVE_NETINET_IN_H 24806#include <netinet/in.h> 24807#endif 24808#ifdef HAVE_ARPA_INET_H 24809#include <arpa/inet.h> 24810#endif 24811#endif 24812 24813" 24814if test "x$ac_cv_type_in_addr_t" = x""yes; then : 24815 24816else 24817 24818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5 24819$as_echo_n "checking for in_addr_t equivalent... " >&6; } 24820if test "${curl_cv_in_addr_t_equiv+set}" = set; then : 24821 $as_echo_n "(cached) " >&6 24822else 24823 24824 curl_cv_in_addr_t_equiv="unknown" 24825 for t in "unsigned long" int size_t unsigned long; do 24826 if test "$curl_cv_in_addr_t_equiv" = "unknown"; then 24827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24828/* end confdefs.h. */ 24829 24830 24831#undef inline 24832#ifdef HAVE_WINDOWS_H 24833#ifndef WIN32_LEAN_AND_MEAN 24834#define WIN32_LEAN_AND_MEAN 24835#endif 24836#include <windows.h> 24837#ifdef HAVE_WINSOCK2_H 24838#include <winsock2.h> 24839#else 24840#ifdef HAVE_WINSOCK_H 24841#include <winsock.h> 24842#endif 24843#endif 24844#else 24845#ifdef HAVE_SYS_TYPES_H 24846#include <sys/types.h> 24847#endif 24848#ifdef HAVE_SYS_SOCKET_H 24849#include <sys/socket.h> 24850#endif 24851#ifdef HAVE_NETINET_IN_H 24852#include <netinet/in.h> 24853#endif 24854#ifdef HAVE_ARPA_INET_H 24855#include <arpa/inet.h> 24856#endif 24857#endif 24858 24859int main (void) 24860{ 24861 24862 $t data = inet_addr ("1.2.3.4"); 24863 24864 ; 24865 return 0; 24866} 24867 24868_ACEOF 24869if ac_fn_c_try_link "$LINENO"; then : 24870 24871 curl_cv_in_addr_t_equiv="$t" 24872 24873fi 24874rm -f core conftest.err conftest.$ac_objext \ 24875 conftest$ac_exeext conftest.$ac_ext 24876 fi 24877 done 24878 24879fi 24880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5 24881$as_echo "$curl_cv_in_addr_t_equiv" >&6; } 24882 case "$curl_cv_in_addr_t_equiv" in 24883 unknown) 24884 as_fn_error "Cannot find a type to use in place of in_addr_t" "$LINENO" 5 24885 ;; 24886 *) 24887 24888cat >>confdefs.h <<_ACEOF 24889#define in_addr_t $curl_cv_in_addr_t_equiv 24890_ACEOF 24891 24892 ;; 24893 esac 24894 24895fi 24896 24897 24898 24899 24900 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" " 24901#undef inline 24902#ifdef HAVE_WINDOWS_H 24903#ifndef WIN32_LEAN_AND_MEAN 24904#define WIN32_LEAN_AND_MEAN 24905#endif 24906#include <windows.h> 24907#ifdef HAVE_WINSOCK2_H 24908#include <winsock2.h> 24909#endif 24910#else 24911#ifdef HAVE_SYS_TYPES_H 24912#include <sys/types.h> 24913#endif 24914#ifdef HAVE_SYS_SOCKET_H 24915#include <sys/socket.h> 24916#endif 24917#ifdef HAVE_NETINET_IN_H 24918#include <netinet/in.h> 24919#endif 24920#ifdef HAVE_ARPA_INET_H 24921#include <arpa/inet.h> 24922#endif 24923#endif 24924 24925" 24926if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then : 24927 24928$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h 24929 24930fi 24931 24932 24933 24934 24935 for ac_header in signal.h 24936do : 24937 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default" 24938if test "x$ac_cv_header_signal_h" = x""yes; then : 24939 cat >>confdefs.h <<_ACEOF 24940#define HAVE_SIGNAL_H 1 24941_ACEOF 24942 24943fi 24944 24945done 24946 24947 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" " 24948#ifdef HAVE_SIGNAL_H 24949#include <signal.h> 24950#endif 24951 24952" 24953if test "x$ac_cv_type_sig_atomic_t" = x""yes; then : 24954 24955 24956$as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h 24957 24958 24959fi 24960 24961 case "$ac_cv_type_sig_atomic_t" in 24962 yes) 24963 # 24964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5 24965$as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; } 24966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24967/* end confdefs.h. */ 24968 24969 24970#ifdef HAVE_SIGNAL_H 24971#include <signal.h> 24972#endif 24973 24974int main (void) 24975{ 24976 24977 static volatile sig_atomic_t dummy = 0; 24978 24979 ; 24980 return 0; 24981} 24982 24983_ACEOF 24984if ac_fn_c_try_link "$LINENO"; then : 24985 24986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24987$as_echo "no" >&6; } 24988 ac_cv_sig_atomic_t_volatile="no" 24989 24990else 24991 24992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24993$as_echo "yes" >&6; } 24994 ac_cv_sig_atomic_t_volatile="yes" 24995 24996fi 24997rm -f core conftest.err conftest.$ac_objext \ 24998 conftest$ac_exeext conftest.$ac_ext 24999 # 25000 if test "$ac_cv_sig_atomic_t_volatile" = "yes"; then 25001 25002$as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h 25003 25004 fi 25005 ;; 25006 esac 25007 25008 25009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 25010$as_echo_n "checking return type of signal handlers... " >&6; } 25011if test "${ac_cv_type_signal+set}" = set; then : 25012 $as_echo_n "(cached) " >&6 25013else 25014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25015/* end confdefs.h. */ 25016#include <sys/types.h> 25017#include <signal.h> 25018 25019int main (void) 25020{ 25021return *(signal (0, 0)) (0) == 1; 25022 ; 25023 return 0; 25024} 25025_ACEOF 25026if ac_fn_c_try_compile "$LINENO"; then : 25027 ac_cv_type_signal=int 25028else 25029 ac_cv_type_signal=void 25030fi 25031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25032fi 25033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 25034$as_echo "$ac_cv_type_signal" >&6; } 25035 25036cat >>confdefs.h <<_ACEOF 25037#define RETSIGTYPE $ac_cv_type_signal 25038_ACEOF 25039 25040 25041 25042 25043 for ac_header in sys/select.h sys/socket.h 25044do : 25045 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 25046ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 25047eval as_val=\$$as_ac_Header 25048 if test "x$as_val" = x""yes; then : 25049 cat >>confdefs.h <<_ACEOF 25050#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 25051_ACEOF 25052 25053fi 25054 25055done 25056 25057 # 25058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5 25059$as_echo_n "checking for select... " >&6; } 25060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25061/* end confdefs.h. */ 25062 25063 25064#undef inline 25065#ifdef HAVE_WINDOWS_H 25066#ifndef WIN32_LEAN_AND_MEAN 25067#define WIN32_LEAN_AND_MEAN 25068#endif 25069#include <windows.h> 25070#ifdef HAVE_WINSOCK2_H 25071#include <winsock2.h> 25072#else 25073#ifdef HAVE_WINSOCK_H 25074#include <winsock.h> 25075#endif 25076#endif 25077#endif 25078#ifdef HAVE_SYS_TYPES_H 25079#include <sys/types.h> 25080#endif 25081#ifdef HAVE_SYS_TIME_H 25082#include <sys/time.h> 25083#ifdef TIME_WITH_SYS_TIME 25084#include <time.h> 25085#endif 25086#else 25087#ifdef HAVE_TIME_H 25088#include <time.h> 25089#endif 25090#endif 25091#ifndef HAVE_WINDOWS_H 25092#ifdef HAVE_SYS_SELECT_H 25093#include <sys/select.h> 25094#endif 25095#ifdef HAVE_SYS_SOCKET_H 25096#include <sys/socket.h> 25097#endif 25098#endif 25099 25100int main (void) 25101{ 25102 25103 select(0, 0, 0, 0, 0); 25104 25105 ; 25106 return 0; 25107} 25108 25109_ACEOF 25110if ac_fn_c_try_link "$LINENO"; then : 25111 25112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25113$as_echo "yes" >&6; } 25114 curl_cv_select="yes" 25115 25116else 25117 25118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25119$as_echo "no" >&6; } 25120 curl_cv_select="no" 25121 25122fi 25123rm -f core conftest.err conftest.$ac_objext \ 25124 conftest$ac_exeext conftest.$ac_ext 25125 # 25126 if test "$curl_cv_select" = "yes"; then 25127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5 25128$as_echo_n "checking types of args and return type for select... " >&6; } 25129if test "${curl_cv_func_select_args+set}" = set; then : 25130 $as_echo_n "(cached) " >&6 25131else 25132 25133 curl_cv_func_select_args="unknown" 25134 for sel_retv in 'int' 'ssize_t'; do 25135 for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do 25136 for sel_arg234 in 'fd_set *' 'int *' 'void *'; do 25137 for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do 25138 if test "$curl_cv_func_select_args" = "unknown"; then 25139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25140/* end confdefs.h. */ 25141 25142 25143#undef inline 25144#ifdef HAVE_WINDOWS_H 25145#ifndef WIN32_LEAN_AND_MEAN 25146#define WIN32_LEAN_AND_MEAN 25147#endif 25148#include <windows.h> 25149#ifdef HAVE_WINSOCK2_H 25150#include <winsock2.h> 25151#else 25152#ifdef HAVE_WINSOCK_H 25153#include <winsock.h> 25154#endif 25155#endif 25156#define SELECTCALLCONV PASCAL 25157#endif 25158#ifdef HAVE_SYS_TYPES_H 25159#include <sys/types.h> 25160#endif 25161#ifdef HAVE_SYS_TIME_H 25162#include <sys/time.h> 25163#ifdef TIME_WITH_SYS_TIME 25164#include <time.h> 25165#endif 25166#else 25167#ifdef HAVE_TIME_H 25168#include <time.h> 25169#endif 25170#endif 25171#ifndef HAVE_WINDOWS_H 25172#ifdef HAVE_SYS_SELECT_H 25173#include <sys/select.h> 25174#endif 25175#ifdef HAVE_SYS_SOCKET_H 25176#include <sys/socket.h> 25177#endif 25178#define SELECTCALLCONV 25179#endif 25180#ifndef HAVE_STRUCT_TIMEVAL 25181 struct timeval { 25182 long tv_sec; 25183 long tv_usec; 25184 }; 25185#endif 25186 extern $sel_retv SELECTCALLCONV select($sel_arg1, 25187 $sel_arg234, 25188 $sel_arg234, 25189 $sel_arg234, 25190 $sel_arg5); 25191 25192int main (void) 25193{ 25194 25195 $sel_arg1 nfds=0; 25196 $sel_arg234 rfds=0; 25197 $sel_arg234 wfds=0; 25198 $sel_arg234 efds=0; 25199 $sel_retv res = select(nfds, rfds, wfds, efds, 0); 25200 25201 ; 25202 return 0; 25203} 25204 25205_ACEOF 25206if ac_fn_c_try_compile "$LINENO"; then : 25207 25208 curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv" 25209 25210fi 25211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25212 fi 25213 done 25214 done 25215 done 25216 done 25217 25218fi 25219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5 25220$as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK 25221 if test "$curl_cv_func_select_args" = "unknown"; then 25222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5 25223$as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;} 25224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5 25225$as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;} 25226 else 25227 select_prev_IFS=$IFS; IFS=',' 25228 set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'` 25229 IFS=$select_prev_IFS 25230 shift 25231 # 25232 sel_qual_type_arg5=$3 25233 # 25234 25235cat >>confdefs.h <<_ACEOF 25236#define SELECT_TYPE_ARG1 $1 25237_ACEOF 25238 25239 25240cat >>confdefs.h <<_ACEOF 25241#define SELECT_TYPE_ARG234 $2 25242_ACEOF 25243 25244 25245cat >>confdefs.h <<_ACEOF 25246#define SELECT_TYPE_RETV $4 25247_ACEOF 25248 25249 # 25250 prev_sh_opts=$- 25251 # 25252 case $prev_sh_opts in 25253 *f*) 25254 ;; 25255 *) 25256 set -f 25257 ;; 25258 esac 25259 # 25260 case "$sel_qual_type_arg5" in 25261 const*) 25262 sel_qual_arg5=const 25263 sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'` 25264 ;; 25265 *) 25266 sel_qual_arg5= 25267 sel_type_arg5=$sel_qual_type_arg5 25268 ;; 25269 esac 25270 # 25271 25272cat >>confdefs.h <<_ACEOF 25273#define SELECT_QUAL_ARG5 $sel_qual_arg5 25274_ACEOF 25275 25276 25277cat >>confdefs.h <<_ACEOF 25278#define SELECT_TYPE_ARG5 $sel_type_arg5 25279_ACEOF 25280 25281 # 25282 case $prev_sh_opts in 25283 *f*) 25284 ;; 25285 *) 25286 set +f 25287 ;; 25288 esac 25289 # 25290 25291cat >>confdefs.h <<_ACEOF 25292#define HAVE_SELECT 1 25293_ACEOF 25294 25295 ac_cv_func_select="yes" 25296 fi 25297 fi 25298 25299 25300 25301 for ac_header in sys/types.h sys/socket.h 25302do : 25303 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 25304ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 25305eval as_val=\$$as_ac_Header 25306 if test "x$as_val" = x""yes; then : 25307 cat >>confdefs.h <<_ACEOF 25308#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 25309_ACEOF 25310 25311fi 25312 25313done 25314 25315 # 25316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5 25317$as_echo_n "checking for recv... " >&6; } 25318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25319/* end confdefs.h. */ 25320 25321 25322#undef inline 25323#ifdef HAVE_WINDOWS_H 25324#ifndef WIN32_LEAN_AND_MEAN 25325#define WIN32_LEAN_AND_MEAN 25326#endif 25327#include <windows.h> 25328#ifdef HAVE_WINSOCK2_H 25329#include <winsock2.h> 25330#else 25331#ifdef HAVE_WINSOCK_H 25332#include <winsock.h> 25333#endif 25334#endif 25335#else 25336#ifdef HAVE_SYS_TYPES_H 25337#include <sys/types.h> 25338#endif 25339#ifdef HAVE_SYS_SOCKET_H 25340#include <sys/socket.h> 25341#endif 25342#endif 25343 25344int main (void) 25345{ 25346 25347 recv(0, 0, 0, 0); 25348 25349 ; 25350 return 0; 25351} 25352 25353_ACEOF 25354if ac_fn_c_try_link "$LINENO"; then : 25355 25356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25357$as_echo "yes" >&6; } 25358 curl_cv_recv="yes" 25359 25360else 25361 25362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25363$as_echo "no" >&6; } 25364 curl_cv_recv="no" 25365 25366fi 25367rm -f core conftest.err conftest.$ac_objext \ 25368 conftest$ac_exeext conftest.$ac_ext 25369 # 25370 if test "$curl_cv_recv" = "yes"; then 25371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5 25372$as_echo_n "checking types of args and return type for recv... " >&6; } 25373if test "${curl_cv_func_recv_args+set}" = set; then : 25374 $as_echo_n "(cached) " >&6 25375else 25376 25377 curl_cv_func_recv_args="unknown" 25378 for recv_retv in 'int' 'ssize_t'; do 25379 for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do 25380 for recv_arg2 in 'char *' 'void *'; do 25381 for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do 25382 for recv_arg4 in 'int' 'unsigned int'; do 25383 if test "$curl_cv_func_recv_args" = "unknown"; then 25384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25385/* end confdefs.h. */ 25386 25387 25388#undef inline 25389#ifdef HAVE_WINDOWS_H 25390#ifndef WIN32_LEAN_AND_MEAN 25391#define WIN32_LEAN_AND_MEAN 25392#endif 25393#include <windows.h> 25394#ifdef HAVE_WINSOCK2_H 25395#include <winsock2.h> 25396#else 25397#ifdef HAVE_WINSOCK_H 25398#include <winsock.h> 25399#endif 25400#endif 25401#define RECVCALLCONV PASCAL 25402#else 25403#ifdef HAVE_SYS_TYPES_H 25404#include <sys/types.h> 25405#endif 25406#ifdef HAVE_SYS_SOCKET_H 25407#include <sys/socket.h> 25408#endif 25409#define RECVCALLCONV 25410#endif 25411 extern $recv_retv RECVCALLCONV 25412 recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4); 25413 25414int main (void) 25415{ 25416 25417 $recv_arg1 s=0; 25418 $recv_arg2 buf=0; 25419 $recv_arg3 len=0; 25420 $recv_arg4 flags=0; 25421 $recv_retv res = recv(s, buf, len, flags); 25422 25423 ; 25424 return 0; 25425} 25426 25427_ACEOF 25428if ac_fn_c_try_compile "$LINENO"; then : 25429 25430 curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv" 25431 25432fi 25433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25434 fi 25435 done 25436 done 25437 done 25438 done 25439 done 25440 25441fi 25442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5 25443$as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK 25444 if test "$curl_cv_func_recv_args" = "unknown"; then 25445 as_fn_error "Cannot find proper types to use for recv args" "$LINENO" 5 25446 else 25447 recv_prev_IFS=$IFS; IFS=',' 25448 set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'` 25449 IFS=$recv_prev_IFS 25450 shift 25451 # 25452 25453cat >>confdefs.h <<_ACEOF 25454#define RECV_TYPE_ARG1 $1 25455_ACEOF 25456 25457 25458cat >>confdefs.h <<_ACEOF 25459#define RECV_TYPE_ARG2 $2 25460_ACEOF 25461 25462 25463cat >>confdefs.h <<_ACEOF 25464#define RECV_TYPE_ARG3 $3 25465_ACEOF 25466 25467 25468cat >>confdefs.h <<_ACEOF 25469#define RECV_TYPE_ARG4 $4 25470_ACEOF 25471 25472 25473cat >>confdefs.h <<_ACEOF 25474#define RECV_TYPE_RETV $5 25475_ACEOF 25476 25477 # 25478 25479cat >>confdefs.h <<_ACEOF 25480#define HAVE_RECV 1 25481_ACEOF 25482 25483 ac_cv_func_recv="yes" 25484 fi 25485 else 25486 as_fn_error "Unable to link function recv" "$LINENO" 5 25487 fi 25488 25489 25490 for ac_header in sys/types.h sys/socket.h 25491do : 25492 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 25493ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 25494eval as_val=\$$as_ac_Header 25495 if test "x$as_val" = x""yes; then : 25496 cat >>confdefs.h <<_ACEOF 25497#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 25498_ACEOF 25499 25500fi 25501 25502done 25503 25504 # 25505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recvfrom" >&5 25506$as_echo_n "checking for recvfrom... " >&6; } 25507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25508/* end confdefs.h. */ 25509 25510 25511#undef inline 25512#ifdef HAVE_WINDOWS_H 25513#ifndef WIN32_LEAN_AND_MEAN 25514#define WIN32_LEAN_AND_MEAN 25515#endif 25516#include <windows.h> 25517#ifdef HAVE_WINSOCK2_H 25518#include <winsock2.h> 25519#else 25520#ifdef HAVE_WINSOCK_H 25521#include <winsock.h> 25522#endif 25523#endif 25524#else 25525#ifdef HAVE_SYS_TYPES_H 25526#include <sys/types.h> 25527#endif 25528#ifdef HAVE_SYS_SOCKET_H 25529#include <sys/socket.h> 25530#endif 25531#endif 25532 25533int main (void) 25534{ 25535 25536 recvfrom(0, 0, 0, 0, 0, 0); 25537 25538 ; 25539 return 0; 25540} 25541 25542_ACEOF 25543if ac_fn_c_try_link "$LINENO"; then : 25544 25545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25546$as_echo "yes" >&6; } 25547 curl_cv_recvfrom="yes" 25548 25549else 25550 25551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25552$as_echo "no" >&6; } 25553 curl_cv_recvfrom="no" 25554 25555fi 25556rm -f core conftest.err conftest.$ac_objext \ 25557 conftest$ac_exeext conftest.$ac_ext 25558 # 25559 if test "$curl_cv_recvfrom" = "yes"; then 25560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recvfrom" >&5 25561$as_echo_n "checking types of args and return type for recvfrom... " >&6; } 25562if test "${curl_cv_func_recvfrom_args+set}" = set; then : 25563 $as_echo_n "(cached) " >&6 25564else 25565 25566 curl_cv_func_recvfrom_args="unknown" 25567 for recvfrom_retv in 'int' 'ssize_t'; do 25568 for recvfrom_arg1 in 'int' 'ssize_t' 'SOCKET'; do 25569 for recvfrom_arg2 in 'char *' 'void *'; do 25570 for recvfrom_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do 25571 for recvfrom_arg4 in 'int' 'unsigned int'; do 25572 for recvfrom_arg5 in 'struct sockaddr *' 'void *' 'const struct sockaddr *'; do 25573 for recvfrom_arg6 in 'socklen_t *' 'int *' 'unsigned int *' 'size_t *' 'void *'; do 25574 if test "$curl_cv_func_recvfrom_args" = "unknown"; then 25575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25576/* end confdefs.h. */ 25577 25578 25579#undef inline 25580#ifdef HAVE_WINDOWS_H 25581#ifndef WIN32_LEAN_AND_MEAN 25582#define WIN32_LEAN_AND_MEAN 25583#endif 25584#include <windows.h> 25585#ifdef HAVE_WINSOCK2_H 25586#include <winsock2.h> 25587#else 25588#ifdef HAVE_WINSOCK_H 25589#include <winsock.h> 25590#endif 25591#endif 25592#define RECVFROMCALLCONV PASCAL 25593#else 25594#ifdef HAVE_SYS_TYPES_H 25595#include <sys/types.h> 25596#endif 25597#ifdef HAVE_SYS_SOCKET_H 25598#include <sys/socket.h> 25599#endif 25600#define RECVFROMCALLCONV 25601#endif 25602 extern $recvfrom_retv RECVFROMCALLCONV 25603 recvfrom($recvfrom_arg1, $recvfrom_arg2, 25604 $recvfrom_arg3, $recvfrom_arg4, 25605 $recvfrom_arg5, $recvfrom_arg6); 25606 25607int main (void) 25608{ 25609 25610 $recvfrom_arg1 s=0; 25611 $recvfrom_arg2 buf=0; 25612 $recvfrom_arg3 len=0; 25613 $recvfrom_arg4 flags=0; 25614 $recvfrom_arg5 addr=0; 25615 $recvfrom_arg6 addrlen=0; 25616 $recvfrom_retv res=0; 25617 res = recvfrom(s, buf, len, flags, addr, addrlen); 25618 25619 ; 25620 return 0; 25621} 25622 25623_ACEOF 25624if ac_fn_c_try_compile "$LINENO"; then : 25625 25626 curl_cv_func_recvfrom_args="$recvfrom_arg1,$recvfrom_arg2,$recvfrom_arg3,$recvfrom_arg4,$recvfrom_arg5,$recvfrom_arg6,$recvfrom_retv" 25627 25628fi 25629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25630 fi 25631 done 25632 done 25633 done 25634 done 25635 done 25636 done 25637 done 25638 25639fi 25640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recvfrom_args" >&5 25641$as_echo "$curl_cv_func_recvfrom_args" >&6; } # AC-CACHE-CHECK 25642 # Nearly last minute change for this release starts here 25643 25644cat >>confdefs.h <<_ACEOF 25645#define HAVE_RECVFROM 1 25646_ACEOF 25647 25648 ac_cv_func_recvfrom="yes" 25649 # Nearly last minute change for this release ends here 25650 if test "$curl_cv_func_recvfrom_args" = "unknown"; then 25651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for recvfrom args" >&5 25652$as_echo "$as_me: WARNING: Cannot find proper types to use for recvfrom args" >&2;} 25653 else 25654 recvfrom_prev_IFS=$IFS; IFS=',' 25655 set dummy `echo "$curl_cv_func_recvfrom_args" | sed 's/\*/\*/g'` 25656 IFS=$recvfrom_prev_IFS 25657 shift 25658 # 25659 recvfrom_ptrt_arg2=$2 25660 recvfrom_qual_ptrt_arg5=$5 25661 recvfrom_ptrt_arg6=$6 25662 # 25663 25664cat >>confdefs.h <<_ACEOF 25665#define RECVFROM_TYPE_ARG1 $1 25666_ACEOF 25667 25668 25669cat >>confdefs.h <<_ACEOF 25670#define RECVFROM_TYPE_ARG3 $3 25671_ACEOF 25672 25673 25674cat >>confdefs.h <<_ACEOF 25675#define RECVFROM_TYPE_ARG4 $4 25676_ACEOF 25677 25678 25679cat >>confdefs.h <<_ACEOF 25680#define RECVFROM_TYPE_RETV $7 25681_ACEOF 25682 25683 # 25684 prev_sh_opts=$- 25685 # 25686 case $prev_sh_opts in 25687 *f*) 25688 ;; 25689 *) 25690 set -f 25691 ;; 25692 esac 25693 # 25694 case "$recvfrom_qual_ptrt_arg5" in 25695 const*) 25696 recvfrom_qual_arg5=const 25697 recvfrom_ptrt_arg5=`echo $recvfrom_qual_ptrt_arg5 | sed 's/^const //'` 25698 ;; 25699 *) 25700 recvfrom_qual_arg5= 25701 recvfrom_ptrt_arg5=$recvfrom_qual_ptrt_arg5 25702 ;; 25703 esac 25704 # 25705 recvfrom_type_arg2=`echo $recvfrom_ptrt_arg2 | sed 's/ \*//'` 25706 recvfrom_type_arg5=`echo $recvfrom_ptrt_arg5 | sed 's/ \*//'` 25707 recvfrom_type_arg6=`echo $recvfrom_ptrt_arg6 | sed 's/ \*//'` 25708 # 25709 25710cat >>confdefs.h <<_ACEOF 25711#define RECVFROM_TYPE_ARG2 $recvfrom_type_arg2 25712_ACEOF 25713 25714 25715cat >>confdefs.h <<_ACEOF 25716#define RECVFROM_QUAL_ARG5 $recvfrom_qual_arg5 25717_ACEOF 25718 25719 25720cat >>confdefs.h <<_ACEOF 25721#define RECVFROM_TYPE_ARG5 $recvfrom_type_arg5 25722_ACEOF 25723 25724 25725cat >>confdefs.h <<_ACEOF 25726#define RECVFROM_TYPE_ARG6 $recvfrom_type_arg6 25727_ACEOF 25728 25729 # 25730 if test "$recvfrom_type_arg2" = "void"; then 25731 25732cat >>confdefs.h <<_ACEOF 25733#define RECVFROM_TYPE_ARG2_IS_VOID 1 25734_ACEOF 25735 25736 fi 25737 if test "$recvfrom_type_arg5" = "void"; then 25738 25739cat >>confdefs.h <<_ACEOF 25740#define RECVFROM_TYPE_ARG5_IS_VOID 1 25741_ACEOF 25742 25743 fi 25744 if test "$recvfrom_type_arg6" = "void"; then 25745 25746cat >>confdefs.h <<_ACEOF 25747#define RECVFROM_TYPE_ARG6_IS_VOID 1 25748_ACEOF 25749 25750 fi 25751 # 25752 case $prev_sh_opts in 25753 *f*) 25754 ;; 25755 *) 25756 set +f 25757 ;; 25758 esac 25759 # 25760 25761cat >>confdefs.h <<_ACEOF 25762#define HAVE_RECVFROM 1 25763_ACEOF 25764 25765 ac_cv_func_recvfrom="yes" 25766 fi 25767 else 25768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to link function recvfrom" >&5 25769$as_echo "$as_me: WARNING: Unable to link function recvfrom" >&2;} 25770 fi 25771 25772 25773 for ac_header in sys/types.h sys/socket.h 25774do : 25775 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 25776ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 25777eval as_val=\$$as_ac_Header 25778 if test "x$as_val" = x""yes; then : 25779 cat >>confdefs.h <<_ACEOF 25780#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 25781_ACEOF 25782 25783fi 25784 25785done 25786 25787 # 25788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5 25789$as_echo_n "checking for send... " >&6; } 25790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25791/* end confdefs.h. */ 25792 25793 25794#undef inline 25795#ifdef HAVE_WINDOWS_H 25796#ifndef WIN32_LEAN_AND_MEAN 25797#define WIN32_LEAN_AND_MEAN 25798#endif 25799#include <windows.h> 25800#ifdef HAVE_WINSOCK2_H 25801#include <winsock2.h> 25802#else 25803#ifdef HAVE_WINSOCK_H 25804#include <winsock.h> 25805#endif 25806#endif 25807#else 25808#ifdef HAVE_SYS_TYPES_H 25809#include <sys/types.h> 25810#endif 25811#ifdef HAVE_SYS_SOCKET_H 25812#include <sys/socket.h> 25813#endif 25814#endif 25815 25816int main (void) 25817{ 25818 25819 send(0, 0, 0, 0); 25820 25821 ; 25822 return 0; 25823} 25824 25825_ACEOF 25826if ac_fn_c_try_link "$LINENO"; then : 25827 25828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25829$as_echo "yes" >&6; } 25830 curl_cv_send="yes" 25831 25832else 25833 25834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25835$as_echo "no" >&6; } 25836 curl_cv_send="no" 25837 25838fi 25839rm -f core conftest.err conftest.$ac_objext \ 25840 conftest$ac_exeext conftest.$ac_ext 25841 # 25842 if test "$curl_cv_send" = "yes"; then 25843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5 25844$as_echo_n "checking types of args and return type for send... " >&6; } 25845if test "${curl_cv_func_send_args+set}" = set; then : 25846 $as_echo_n "(cached) " >&6 25847else 25848 25849 curl_cv_func_send_args="unknown" 25850 for send_retv in 'int' 'ssize_t'; do 25851 for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do 25852 for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do 25853 for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do 25854 for send_arg4 in 'int' 'unsigned int'; do 25855 if test "$curl_cv_func_send_args" = "unknown"; then 25856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25857/* end confdefs.h. */ 25858 25859 25860#undef inline 25861#ifdef HAVE_WINDOWS_H 25862#ifndef WIN32_LEAN_AND_MEAN 25863#define WIN32_LEAN_AND_MEAN 25864#endif 25865#include <windows.h> 25866#ifdef HAVE_WINSOCK2_H 25867#include <winsock2.h> 25868#else 25869#ifdef HAVE_WINSOCK_H 25870#include <winsock.h> 25871#endif 25872#endif 25873#define SENDCALLCONV PASCAL 25874#else 25875#ifdef HAVE_SYS_TYPES_H 25876#include <sys/types.h> 25877#endif 25878#ifdef HAVE_SYS_SOCKET_H 25879#include <sys/socket.h> 25880#endif 25881#define SENDCALLCONV 25882#endif 25883 extern $send_retv SENDCALLCONV 25884 send($send_arg1, $send_arg2, $send_arg3, $send_arg4); 25885 25886int main (void) 25887{ 25888 25889 $send_arg1 s=0; 25890 $send_arg3 len=0; 25891 $send_arg4 flags=0; 25892 $send_retv res = send(s, 0, len, flags); 25893 25894 ; 25895 return 0; 25896} 25897 25898_ACEOF 25899if ac_fn_c_try_compile "$LINENO"; then : 25900 25901 curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv" 25902 25903fi 25904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25905 fi 25906 done 25907 done 25908 done 25909 done 25910 done 25911 25912fi 25913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5 25914$as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK 25915 if test "$curl_cv_func_send_args" = "unknown"; then 25916 as_fn_error "Cannot find proper types to use for send args" "$LINENO" 5 25917 else 25918 send_prev_IFS=$IFS; IFS=',' 25919 set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'` 25920 IFS=$send_prev_IFS 25921 shift 25922 # 25923 send_qual_type_arg2=$2 25924 # 25925 25926cat >>confdefs.h <<_ACEOF 25927#define SEND_TYPE_ARG1 $1 25928_ACEOF 25929 25930 25931cat >>confdefs.h <<_ACEOF 25932#define SEND_TYPE_ARG3 $3 25933_ACEOF 25934 25935 25936cat >>confdefs.h <<_ACEOF 25937#define SEND_TYPE_ARG4 $4 25938_ACEOF 25939 25940 25941cat >>confdefs.h <<_ACEOF 25942#define SEND_TYPE_RETV $5 25943_ACEOF 25944 25945 # 25946 prev_sh_opts=$- 25947 # 25948 case $prev_sh_opts in 25949 *f*) 25950 ;; 25951 *) 25952 set -f 25953 ;; 25954 esac 25955 # 25956 case "$send_qual_type_arg2" in 25957 const*) 25958 send_qual_arg2=const 25959 send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'` 25960 ;; 25961 *) 25962 send_qual_arg2= 25963 send_type_arg2=$send_qual_type_arg2 25964 ;; 25965 esac 25966 # 25967 25968cat >>confdefs.h <<_ACEOF 25969#define SEND_QUAL_ARG2 $send_qual_arg2 25970_ACEOF 25971 25972 25973cat >>confdefs.h <<_ACEOF 25974#define SEND_TYPE_ARG2 $send_type_arg2 25975_ACEOF 25976 25977 # 25978 case $prev_sh_opts in 25979 *f*) 25980 ;; 25981 *) 25982 set +f 25983 ;; 25984 esac 25985 # 25986 25987cat >>confdefs.h <<_ACEOF 25988#define HAVE_SEND 1 25989_ACEOF 25990 25991 ac_cv_func_send="yes" 25992 fi 25993 else 25994 as_fn_error "Unable to link function send" "$LINENO" 5 25995 fi 25996 25997 25998 for ac_header in sys/types.h sys/socket.h 25999do : 26000 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 26001ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 26002eval as_val=\$$as_ac_Header 26003 if test "x$as_val" = x""yes; then : 26004 cat >>confdefs.h <<_ACEOF 26005#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 26006_ACEOF 26007 26008fi 26009 26010done 26011 26012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5 26013$as_echo_n "checking for MSG_NOSIGNAL... " >&6; } 26014if test "${ac_cv_msg_nosignal+set}" = set; then : 26015 $as_echo_n "(cached) " >&6 26016else 26017 26018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26019/* end confdefs.h. */ 26020 26021 26022#undef inline 26023#ifdef HAVE_WINDOWS_H 26024#ifndef WIN32_LEAN_AND_MEAN 26025#define WIN32_LEAN_AND_MEAN 26026#endif 26027#include <windows.h> 26028#ifdef HAVE_WINSOCK2_H 26029#include <winsock2.h> 26030#else 26031#ifdef HAVE_WINSOCK_H 26032#include <winsock.h> 26033#endif 26034#endif 26035#else 26036#ifdef HAVE_SYS_TYPES_H 26037#include <sys/types.h> 26038#endif 26039#ifdef HAVE_SYS_SOCKET_H 26040#include <sys/socket.h> 26041#endif 26042#endif 26043 26044int main (void) 26045{ 26046 26047 int flag=MSG_NOSIGNAL; 26048 26049 ; 26050 return 0; 26051} 26052 26053_ACEOF 26054if ac_fn_c_try_compile "$LINENO"; then : 26055 26056 ac_cv_msg_nosignal="yes" 26057 26058else 26059 26060 ac_cv_msg_nosignal="no" 26061 26062fi 26063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26064 26065fi 26066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_msg_nosignal" >&5 26067$as_echo "$ac_cv_msg_nosignal" >&6; } 26068 case "$ac_cv_msg_nosignal" in 26069 yes) 26070 26071cat >>confdefs.h <<_ACEOF 26072#define HAVE_MSG_NOSIGNAL 1 26073_ACEOF 26074 26075 ;; 26076 esac 26077 26078 26079 26080curl_includes_unistd="\ 26081/* includes start */ 26082#ifdef HAVE_SYS_TYPES_H 26083# include <sys/types.h> 26084#endif 26085#ifdef HAVE_UNISTD_H 26086# include <unistd.h> 26087#endif 26088/* includes end */" 26089 for ac_header in sys/types.h unistd.h 26090do : 26091 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 26092ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd 26093" 26094eval as_val=\$$as_ac_Header 26095 if test "x$as_val" = x""yes; then : 26096 cat >>confdefs.h <<_ACEOF 26097#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 26098_ACEOF 26099 26100fi 26101 26102done 26103 26104 26105 26106 # 26107 tst_links_alarm="unknown" 26108 tst_proto_alarm="unknown" 26109 tst_compi_alarm="unknown" 26110 tst_allow_alarm="unknown" 26111 # 26112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5 26113$as_echo_n "checking if alarm can be linked... " >&6; } 26114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26115/* end confdefs.h. */ 26116 26117 26118#define alarm innocuous_alarm 26119#ifdef __STDC__ 26120# include <limits.h> 26121#else 26122# include <assert.h> 26123#endif 26124#undef alarm 26125#ifdef __cplusplus 26126extern "C" 26127#endif 26128char alarm (); 26129#if defined __stub_alarm || defined __stub___alarm 26130choke me 26131#endif 26132 26133int main (void) 26134{ 26135return alarm (); 26136 ; 26137 return 0; 26138} 26139 26140_ACEOF 26141if ac_fn_c_try_link "$LINENO"; then : 26142 26143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26144$as_echo "yes" >&6; } 26145 tst_links_alarm="yes" 26146 26147else 26148 26149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26150$as_echo "no" >&6; } 26151 tst_links_alarm="no" 26152 26153fi 26154rm -f core conftest.err conftest.$ac_objext \ 26155 conftest$ac_exeext conftest.$ac_ext 26156 # 26157 if test "$tst_links_alarm" = "yes"; then 26158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5 26159$as_echo_n "checking if alarm is prototyped... " >&6; } 26160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26161/* end confdefs.h. */ 26162 26163 $curl_includes_unistd 26164 26165_ACEOF 26166if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26167 $EGREP "alarm" >/dev/null 2>&1; then : 26168 26169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26170$as_echo "yes" >&6; } 26171 tst_proto_alarm="yes" 26172 26173else 26174 26175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26176$as_echo "no" >&6; } 26177 tst_proto_alarm="no" 26178 26179fi 26180rm -f conftest* 26181 26182 fi 26183 # 26184 if test "$tst_proto_alarm" = "yes"; then 26185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5 26186$as_echo_n "checking if alarm is compilable... " >&6; } 26187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26188/* end confdefs.h. */ 26189 26190 26191 $curl_includes_unistd 26192 26193int main (void) 26194{ 26195 26196 if(0 != alarm(0)) 26197 return 1; 26198 26199 ; 26200 return 0; 26201} 26202 26203_ACEOF 26204if ac_fn_c_try_compile "$LINENO"; then : 26205 26206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26207$as_echo "yes" >&6; } 26208 tst_compi_alarm="yes" 26209 26210else 26211 26212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26213$as_echo "no" >&6; } 26214 tst_compi_alarm="no" 26215 26216fi 26217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26218 fi 26219 # 26220 if test "$tst_compi_alarm" = "yes"; then 26221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5 26222$as_echo_n "checking if alarm usage allowed... " >&6; } 26223 if test "x$curl_disallow_alarm" != "xyes"; then 26224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26225$as_echo "yes" >&6; } 26226 tst_allow_alarm="yes" 26227 else 26228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26229$as_echo "no" >&6; } 26230 tst_allow_alarm="no" 26231 fi 26232 fi 26233 # 26234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5 26235$as_echo_n "checking if alarm might be used... " >&6; } 26236 if test "$tst_links_alarm" = "yes" && 26237 test "$tst_proto_alarm" = "yes" && 26238 test "$tst_compi_alarm" = "yes" && 26239 test "$tst_allow_alarm" = "yes"; then 26240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26241$as_echo "yes" >&6; } 26242 26243cat >>confdefs.h <<_ACEOF 26244#define HAVE_ALARM 1 26245_ACEOF 26246 26247 ac_cv_func_alarm="yes" 26248 else 26249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26250$as_echo "no" >&6; } 26251 ac_cv_func_alarm="no" 26252 fi 26253 26254 26255curl_includes_string="\ 26256/* includes start */ 26257#ifdef HAVE_SYS_TYPES_H 26258# include <sys/types.h> 26259#endif 26260#ifdef HAVE_STRING_H 26261# include <string.h> 26262#endif 26263#ifdef HAVE_STRINGS_H 26264# include <strings.h> 26265#endif 26266/* includes end */" 26267 for ac_header in sys/types.h string.h strings.h 26268do : 26269 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 26270ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string 26271" 26272eval as_val=\$$as_ac_Header 26273 if test "x$as_val" = x""yes; then : 26274 cat >>confdefs.h <<_ACEOF 26275#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 26276_ACEOF 26277 26278fi 26279 26280done 26281 26282 26283 26284curl_includes_libgen="\ 26285/* includes start */ 26286#ifdef HAVE_SYS_TYPES_H 26287# include <sys/types.h> 26288#endif 26289#ifdef HAVE_LIBGEN_H 26290# include <libgen.h> 26291#endif 26292/* includes end */" 26293 for ac_header in sys/types.h libgen.h 26294do : 26295 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 26296ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen 26297" 26298eval as_val=\$$as_ac_Header 26299 if test "x$as_val" = x""yes; then : 26300 cat >>confdefs.h <<_ACEOF 26301#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 26302_ACEOF 26303 26304fi 26305 26306done 26307 26308 26309 26310 # 26311 tst_links_basename="unknown" 26312 tst_proto_basename="unknown" 26313 tst_compi_basename="unknown" 26314 tst_allow_basename="unknown" 26315 # 26316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5 26317$as_echo_n "checking if basename can be linked... " >&6; } 26318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26319/* end confdefs.h. */ 26320 26321 26322#define basename innocuous_basename 26323#ifdef __STDC__ 26324# include <limits.h> 26325#else 26326# include <assert.h> 26327#endif 26328#undef basename 26329#ifdef __cplusplus 26330extern "C" 26331#endif 26332char basename (); 26333#if defined __stub_basename || defined __stub___basename 26334choke me 26335#endif 26336 26337int main (void) 26338{ 26339return basename (); 26340 ; 26341 return 0; 26342} 26343 26344_ACEOF 26345if ac_fn_c_try_link "$LINENO"; then : 26346 26347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26348$as_echo "yes" >&6; } 26349 tst_links_basename="yes" 26350 26351else 26352 26353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26354$as_echo "no" >&6; } 26355 tst_links_basename="no" 26356 26357fi 26358rm -f core conftest.err conftest.$ac_objext \ 26359 conftest$ac_exeext conftest.$ac_ext 26360 # 26361 if test "$tst_links_basename" = "yes"; then 26362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5 26363$as_echo_n "checking if basename is prototyped... " >&6; } 26364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26365/* end confdefs.h. */ 26366 26367 $curl_includes_string 26368 $curl_includes_libgen 26369 $curl_includes_unistd 26370 26371_ACEOF 26372if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26373 $EGREP "basename" >/dev/null 2>&1; then : 26374 26375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26376$as_echo "yes" >&6; } 26377 tst_proto_basename="yes" 26378 26379else 26380 26381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26382$as_echo "no" >&6; } 26383 tst_proto_basename="no" 26384 26385fi 26386rm -f conftest* 26387 26388 fi 26389 # 26390 if test "$tst_proto_basename" = "yes"; then 26391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5 26392$as_echo_n "checking if basename is compilable... " >&6; } 26393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26394/* end confdefs.h. */ 26395 26396 26397 $curl_includes_string 26398 $curl_includes_libgen 26399 $curl_includes_unistd 26400 26401int main (void) 26402{ 26403 26404 if(0 != basename(0)) 26405 return 1; 26406 26407 ; 26408 return 0; 26409} 26410 26411_ACEOF 26412if ac_fn_c_try_compile "$LINENO"; then : 26413 26414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26415$as_echo "yes" >&6; } 26416 tst_compi_basename="yes" 26417 26418else 26419 26420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26421$as_echo "no" >&6; } 26422 tst_compi_basename="no" 26423 26424fi 26425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26426 fi 26427 # 26428 if test "$tst_compi_basename" = "yes"; then 26429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5 26430$as_echo_n "checking if basename usage allowed... " >&6; } 26431 if test "x$curl_disallow_basename" != "xyes"; then 26432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26433$as_echo "yes" >&6; } 26434 tst_allow_basename="yes" 26435 else 26436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26437$as_echo "no" >&6; } 26438 tst_allow_basename="no" 26439 fi 26440 fi 26441 # 26442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5 26443$as_echo_n "checking if basename might be used... " >&6; } 26444 if test "$tst_links_basename" = "yes" && 26445 test "$tst_proto_basename" = "yes" && 26446 test "$tst_compi_basename" = "yes" && 26447 test "$tst_allow_basename" = "yes"; then 26448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26449$as_echo "yes" >&6; } 26450 26451cat >>confdefs.h <<_ACEOF 26452#define HAVE_BASENAME 1 26453_ACEOF 26454 26455 ac_cv_func_basename="yes" 26456 else 26457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26458$as_echo "no" >&6; } 26459 ac_cv_func_basename="no" 26460 fi 26461 26462 26463curl_includes_socket="\ 26464/* includes start */ 26465#ifdef HAVE_SYS_TYPES_H 26466# include <sys/types.h> 26467#endif 26468#ifdef HAVE_SOCKET_H 26469# include <socket.h> 26470#endif 26471/* includes end */" 26472 for ac_header in sys/types.h socket.h 26473do : 26474 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 26475ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket 26476" 26477eval as_val=\$$as_ac_Header 26478 if test "x$as_val" = x""yes; then : 26479 cat >>confdefs.h <<_ACEOF 26480#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 26481_ACEOF 26482 26483fi 26484 26485done 26486 26487 26488 26489 # 26490 tst_links_closesocket="unknown" 26491 tst_proto_closesocket="unknown" 26492 tst_compi_closesocket="unknown" 26493 tst_allow_closesocket="unknown" 26494 # 26495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5 26496$as_echo_n "checking if closesocket can be linked... " >&6; } 26497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26498/* end confdefs.h. */ 26499 26500 26501 $curl_includes_winsock2 26502 $curl_includes_socket 26503 26504int main (void) 26505{ 26506 26507 if(0 != closesocket(0)) 26508 return 1; 26509 26510 ; 26511 return 0; 26512} 26513 26514_ACEOF 26515if ac_fn_c_try_link "$LINENO"; then : 26516 26517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26518$as_echo "yes" >&6; } 26519 tst_links_closesocket="yes" 26520 26521else 26522 26523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26524$as_echo "no" >&6; } 26525 tst_links_closesocket="no" 26526 26527fi 26528rm -f core conftest.err conftest.$ac_objext \ 26529 conftest$ac_exeext conftest.$ac_ext 26530 # 26531 if test "$tst_links_closesocket" = "yes"; then 26532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5 26533$as_echo_n "checking if closesocket is prototyped... " >&6; } 26534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26535/* end confdefs.h. */ 26536 26537 $curl_includes_winsock2 26538 $curl_includes_socket 26539 26540_ACEOF 26541if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26542 $EGREP "closesocket" >/dev/null 2>&1; then : 26543 26544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26545$as_echo "yes" >&6; } 26546 tst_proto_closesocket="yes" 26547 26548else 26549 26550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26551$as_echo "no" >&6; } 26552 tst_proto_closesocket="no" 26553 26554fi 26555rm -f conftest* 26556 26557 fi 26558 # 26559 if test "$tst_proto_closesocket" = "yes"; then 26560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5 26561$as_echo_n "checking if closesocket is compilable... " >&6; } 26562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26563/* end confdefs.h. */ 26564 26565 26566 $curl_includes_winsock2 26567 $curl_includes_socket 26568 26569int main (void) 26570{ 26571 26572 if(0 != closesocket(0)) 26573 return 1; 26574 26575 ; 26576 return 0; 26577} 26578 26579_ACEOF 26580if ac_fn_c_try_compile "$LINENO"; then : 26581 26582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26583$as_echo "yes" >&6; } 26584 tst_compi_closesocket="yes" 26585 26586else 26587 26588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26589$as_echo "no" >&6; } 26590 tst_compi_closesocket="no" 26591 26592fi 26593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26594 fi 26595 # 26596 if test "$tst_compi_closesocket" = "yes"; then 26597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5 26598$as_echo_n "checking if closesocket usage allowed... " >&6; } 26599 if test "x$curl_disallow_closesocket" != "xyes"; then 26600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26601$as_echo "yes" >&6; } 26602 tst_allow_closesocket="yes" 26603 else 26604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26605$as_echo "no" >&6; } 26606 tst_allow_closesocket="no" 26607 fi 26608 fi 26609 # 26610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5 26611$as_echo_n "checking if closesocket might be used... " >&6; } 26612 if test "$tst_links_closesocket" = "yes" && 26613 test "$tst_proto_closesocket" = "yes" && 26614 test "$tst_compi_closesocket" = "yes" && 26615 test "$tst_allow_closesocket" = "yes"; then 26616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26617$as_echo "yes" >&6; } 26618 26619cat >>confdefs.h <<_ACEOF 26620#define HAVE_CLOSESOCKET 1 26621_ACEOF 26622 26623 ac_cv_func_closesocket="yes" 26624 else 26625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26626$as_echo "no" >&6; } 26627 ac_cv_func_closesocket="no" 26628 fi 26629 26630 26631 # 26632 tst_links_closesocket_camel="unknown" 26633 tst_proto_closesocket_camel="unknown" 26634 tst_compi_closesocket_camel="unknown" 26635 tst_allow_closesocket_camel="unknown" 26636 # 26637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5 26638$as_echo_n "checking if CloseSocket can be linked... " >&6; } 26639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26640/* end confdefs.h. */ 26641 26642 26643 $curl_includes_sys_socket 26644 26645int main (void) 26646{ 26647 26648 if(0 != CloseSocket(0)) 26649 return 1; 26650 26651 ; 26652 return 0; 26653} 26654 26655_ACEOF 26656if ac_fn_c_try_link "$LINENO"; then : 26657 26658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26659$as_echo "yes" >&6; } 26660 tst_links_closesocket_camel="yes" 26661 26662else 26663 26664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26665$as_echo "no" >&6; } 26666 tst_links_closesocket_camel="no" 26667 26668fi 26669rm -f core conftest.err conftest.$ac_objext \ 26670 conftest$ac_exeext conftest.$ac_ext 26671 # 26672 if test "$tst_links_closesocket_camel" = "yes"; then 26673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5 26674$as_echo_n "checking if CloseSocket is prototyped... " >&6; } 26675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26676/* end confdefs.h. */ 26677 26678 $curl_includes_sys_socket 26679 26680_ACEOF 26681if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26682 $EGREP "CloseSocket" >/dev/null 2>&1; then : 26683 26684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26685$as_echo "yes" >&6; } 26686 tst_proto_closesocket_camel="yes" 26687 26688else 26689 26690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26691$as_echo "no" >&6; } 26692 tst_proto_closesocket_camel="no" 26693 26694fi 26695rm -f conftest* 26696 26697 fi 26698 # 26699 if test "$tst_proto_closesocket_camel" = "yes"; then 26700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5 26701$as_echo_n "checking if CloseSocket is compilable... " >&6; } 26702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26703/* end confdefs.h. */ 26704 26705 26706 $curl_includes_sys_socket 26707 26708int main (void) 26709{ 26710 26711 if(0 != CloseSocket(0)) 26712 return 1; 26713 26714 ; 26715 return 0; 26716} 26717 26718_ACEOF 26719if ac_fn_c_try_compile "$LINENO"; then : 26720 26721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26722$as_echo "yes" >&6; } 26723 tst_compi_closesocket_camel="yes" 26724 26725else 26726 26727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26728$as_echo "no" >&6; } 26729 tst_compi_closesocket_camel="no" 26730 26731fi 26732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26733 fi 26734 # 26735 if test "$tst_compi_closesocket_camel" = "yes"; then 26736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5 26737$as_echo_n "checking if CloseSocket usage allowed... " >&6; } 26738 if test "x$curl_disallow_closesocket_camel" != "xyes"; then 26739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26740$as_echo "yes" >&6; } 26741 tst_allow_closesocket_camel="yes" 26742 else 26743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26744$as_echo "no" >&6; } 26745 tst_allow_closesocket_camel="no" 26746 fi 26747 fi 26748 # 26749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5 26750$as_echo_n "checking if CloseSocket might be used... " >&6; } 26751 if test "$tst_links_closesocket_camel" = "yes" && 26752 test "$tst_proto_closesocket_camel" = "yes" && 26753 test "$tst_compi_closesocket_camel" = "yes" && 26754 test "$tst_allow_closesocket_camel" = "yes"; then 26755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26756$as_echo "yes" >&6; } 26757 26758cat >>confdefs.h <<_ACEOF 26759#define HAVE_CLOSESOCKET_CAMEL 1 26760_ACEOF 26761 26762 ac_cv_func_closesocket_camel="yes" 26763 else 26764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26765$as_echo "no" >&6; } 26766 ac_cv_func_closesocket_camel="no" 26767 fi 26768 26769 26770 # 26771 tst_links_connect="unknown" 26772 tst_proto_connect="unknown" 26773 tst_compi_connect="unknown" 26774 tst_allow_connect="unknown" 26775 # 26776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5 26777$as_echo_n "checking if connect can be linked... " >&6; } 26778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26779/* end confdefs.h. */ 26780 26781 26782 $curl_includes_winsock2 26783 $curl_includes_sys_socket 26784 $curl_includes_socket 26785 26786int main (void) 26787{ 26788 26789 if(0 != connect(0, 0, 0)) 26790 return 1; 26791 26792 ; 26793 return 0; 26794} 26795 26796_ACEOF 26797if ac_fn_c_try_link "$LINENO"; then : 26798 26799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26800$as_echo "yes" >&6; } 26801 tst_links_connect="yes" 26802 26803else 26804 26805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26806$as_echo "no" >&6; } 26807 tst_links_connect="no" 26808 26809fi 26810rm -f core conftest.err conftest.$ac_objext \ 26811 conftest$ac_exeext conftest.$ac_ext 26812 # 26813 if test "$tst_links_connect" = "yes"; then 26814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5 26815$as_echo_n "checking if connect is prototyped... " >&6; } 26816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26817/* end confdefs.h. */ 26818 26819 $curl_includes_winsock2 26820 $curl_includes_sys_socket 26821 $curl_includes_socket 26822 26823_ACEOF 26824if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26825 $EGREP "connect" >/dev/null 2>&1; then : 26826 26827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26828$as_echo "yes" >&6; } 26829 tst_proto_connect="yes" 26830 26831else 26832 26833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26834$as_echo "no" >&6; } 26835 tst_proto_connect="no" 26836 26837fi 26838rm -f conftest* 26839 26840 fi 26841 # 26842 if test "$tst_proto_connect" = "yes"; then 26843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5 26844$as_echo_n "checking if connect is compilable... " >&6; } 26845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26846/* end confdefs.h. */ 26847 26848 26849 $curl_includes_winsock2 26850 $curl_includes_sys_socket 26851 $curl_includes_socket 26852 26853int main (void) 26854{ 26855 26856 if(0 != connect(0, 0, 0)) 26857 return 1; 26858 26859 ; 26860 return 0; 26861} 26862 26863_ACEOF 26864if ac_fn_c_try_compile "$LINENO"; then : 26865 26866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26867$as_echo "yes" >&6; } 26868 tst_compi_connect="yes" 26869 26870else 26871 26872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26873$as_echo "no" >&6; } 26874 tst_compi_connect="no" 26875 26876fi 26877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26878 fi 26879 # 26880 if test "$tst_compi_connect" = "yes"; then 26881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5 26882$as_echo_n "checking if connect usage allowed... " >&6; } 26883 if test "x$curl_disallow_connect" != "xyes"; then 26884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26885$as_echo "yes" >&6; } 26886 tst_allow_connect="yes" 26887 else 26888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26889$as_echo "no" >&6; } 26890 tst_allow_connect="no" 26891 fi 26892 fi 26893 # 26894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5 26895$as_echo_n "checking if connect might be used... " >&6; } 26896 if test "$tst_links_connect" = "yes" && 26897 test "$tst_proto_connect" = "yes" && 26898 test "$tst_compi_connect" = "yes" && 26899 test "$tst_allow_connect" = "yes"; then 26900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26901$as_echo "yes" >&6; } 26902 26903cat >>confdefs.h <<_ACEOF 26904#define HAVE_CONNECT 1 26905_ACEOF 26906 26907 ac_cv_func_connect="yes" 26908 else 26909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26910$as_echo "no" >&6; } 26911 ac_cv_func_connect="no" 26912 fi 26913 26914 26915curl_includes_fcntl="\ 26916/* includes start */ 26917#ifdef HAVE_SYS_TYPES_H 26918# include <sys/types.h> 26919#endif 26920#ifdef HAVE_UNISTD_H 26921# include <unistd.h> 26922#endif 26923#ifdef HAVE_FCNTL_H 26924# include <fcntl.h> 26925#endif 26926/* includes end */" 26927 for ac_header in sys/types.h unistd.h fcntl.h 26928do : 26929 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 26930ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl 26931" 26932eval as_val=\$$as_ac_Header 26933 if test "x$as_val" = x""yes; then : 26934 cat >>confdefs.h <<_ACEOF 26935#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 26936_ACEOF 26937 26938fi 26939 26940done 26941 26942 26943 26944 # 26945 tst_links_fcntl="unknown" 26946 tst_proto_fcntl="unknown" 26947 tst_compi_fcntl="unknown" 26948 tst_allow_fcntl="unknown" 26949 # 26950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5 26951$as_echo_n "checking if fcntl can be linked... " >&6; } 26952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26953/* end confdefs.h. */ 26954 26955 26956#define fcntl innocuous_fcntl 26957#ifdef __STDC__ 26958# include <limits.h> 26959#else 26960# include <assert.h> 26961#endif 26962#undef fcntl 26963#ifdef __cplusplus 26964extern "C" 26965#endif 26966char fcntl (); 26967#if defined __stub_fcntl || defined __stub___fcntl 26968choke me 26969#endif 26970 26971int main (void) 26972{ 26973return fcntl (); 26974 ; 26975 return 0; 26976} 26977 26978_ACEOF 26979if ac_fn_c_try_link "$LINENO"; then : 26980 26981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26982$as_echo "yes" >&6; } 26983 tst_links_fcntl="yes" 26984 26985else 26986 26987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26988$as_echo "no" >&6; } 26989 tst_links_fcntl="no" 26990 26991fi 26992rm -f core conftest.err conftest.$ac_objext \ 26993 conftest$ac_exeext conftest.$ac_ext 26994 # 26995 if test "$tst_links_fcntl" = "yes"; then 26996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5 26997$as_echo_n "checking if fcntl is prototyped... " >&6; } 26998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26999/* end confdefs.h. */ 27000 27001 $curl_includes_fcntl 27002 27003_ACEOF 27004if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 27005 $EGREP "fcntl" >/dev/null 2>&1; then : 27006 27007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27008$as_echo "yes" >&6; } 27009 tst_proto_fcntl="yes" 27010 27011else 27012 27013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27014$as_echo "no" >&6; } 27015 tst_proto_fcntl="no" 27016 27017fi 27018rm -f conftest* 27019 27020 fi 27021 # 27022 if test "$tst_proto_fcntl" = "yes"; then 27023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5 27024$as_echo_n "checking if fcntl is compilable... " >&6; } 27025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27026/* end confdefs.h. */ 27027 27028 27029 $curl_includes_fcntl 27030 27031int main (void) 27032{ 27033 27034 if(0 != fcntl(0, 0, 0)) 27035 return 1; 27036 27037 ; 27038 return 0; 27039} 27040 27041_ACEOF 27042if ac_fn_c_try_compile "$LINENO"; then : 27043 27044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27045$as_echo "yes" >&6; } 27046 tst_compi_fcntl="yes" 27047 27048else 27049 27050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27051$as_echo "no" >&6; } 27052 tst_compi_fcntl="no" 27053 27054fi 27055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27056 fi 27057 # 27058 if test "$tst_compi_fcntl" = "yes"; then 27059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5 27060$as_echo_n "checking if fcntl usage allowed... " >&6; } 27061 if test "x$curl_disallow_fcntl" != "xyes"; then 27062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27063$as_echo "yes" >&6; } 27064 tst_allow_fcntl="yes" 27065 else 27066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27067$as_echo "no" >&6; } 27068 tst_allow_fcntl="no" 27069 fi 27070 fi 27071 # 27072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5 27073$as_echo_n "checking if fcntl might be used... " >&6; } 27074 if test "$tst_links_fcntl" = "yes" && 27075 test "$tst_proto_fcntl" = "yes" && 27076 test "$tst_compi_fcntl" = "yes" && 27077 test "$tst_allow_fcntl" = "yes"; then 27078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27079$as_echo "yes" >&6; } 27080 27081cat >>confdefs.h <<_ACEOF 27082#define HAVE_FCNTL 1 27083_ACEOF 27084 27085 ac_cv_func_fcntl="yes" 27086 27087 # 27088 tst_compi_fcntl_o_nonblock="unknown" 27089 tst_allow_fcntl_o_nonblock="unknown" 27090 # 27091 case $host_os in 27092 sunos4* | aix3* | beos*) 27093 curl_disallow_fcntl_o_nonblock="yes" 27094 ;; 27095 esac 27096 # 27097 if test "$ac_cv_func_fcntl" = "yes"; then 27098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5 27099$as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; } 27100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27101/* end confdefs.h. */ 27102 27103 27104 $curl_includes_fcntl 27105 27106int main (void) 27107{ 27108 27109 int flags = 0; 27110 if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK)) 27111 return 1; 27112 27113 ; 27114 return 0; 27115} 27116 27117_ACEOF 27118if ac_fn_c_try_compile "$LINENO"; then : 27119 27120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27121$as_echo "yes" >&6; } 27122 tst_compi_fcntl_o_nonblock="yes" 27123 27124else 27125 27126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27127$as_echo "no" >&6; } 27128 tst_compi_fcntl_o_nonblock="no" 27129 27130fi 27131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27132 fi 27133 # 27134 if test "$tst_compi_fcntl_o_nonblock" = "yes"; then 27135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5 27136$as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; } 27137 if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then 27138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27139$as_echo "yes" >&6; } 27140 tst_allow_fcntl_o_nonblock="yes" 27141 else 27142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27143$as_echo "no" >&6; } 27144 tst_allow_fcntl_o_nonblock="no" 27145 fi 27146 fi 27147 # 27148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5 27149$as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; } 27150 if test "$tst_compi_fcntl_o_nonblock" = "yes" && 27151 test "$tst_allow_fcntl_o_nonblock" = "yes"; then 27152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27153$as_echo "yes" >&6; } 27154 27155cat >>confdefs.h <<_ACEOF 27156#define HAVE_FCNTL_O_NONBLOCK 1 27157_ACEOF 27158 27159 ac_cv_func_fcntl_o_nonblock="yes" 27160 else 27161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27162$as_echo "no" >&6; } 27163 ac_cv_func_fcntl_o_nonblock="no" 27164 fi 27165 27166 else 27167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27168$as_echo "no" >&6; } 27169 ac_cv_func_fcntl="no" 27170 fi 27171 27172 27173curl_includes_stdio="\ 27174/* includes start */ 27175#ifdef HAVE_SYS_TYPES_H 27176# include <sys/types.h> 27177#endif 27178#ifdef HAVE_STDIO_H 27179# include <stdio.h> 27180#endif 27181/* includes end */" 27182 for ac_header in sys/types.h stdio.h 27183do : 27184 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 27185ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdio 27186" 27187eval as_val=\$$as_ac_Header 27188 if test "x$as_val" = x""yes; then : 27189 cat >>confdefs.h <<_ACEOF 27190#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 27191_ACEOF 27192 27193fi 27194 27195done 27196 27197 27198 27199 # 27200 tst_links_fdopen="unknown" 27201 tst_proto_fdopen="unknown" 27202 tst_compi_fdopen="unknown" 27203 tst_allow_fdopen="unknown" 27204 # 27205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen can be linked" >&5 27206$as_echo_n "checking if fdopen can be linked... " >&6; } 27207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27208/* end confdefs.h. */ 27209 27210 27211#define fdopen innocuous_fdopen 27212#ifdef __STDC__ 27213# include <limits.h> 27214#else 27215# include <assert.h> 27216#endif 27217#undef fdopen 27218#ifdef __cplusplus 27219extern "C" 27220#endif 27221char fdopen (); 27222#if defined __stub_fdopen || defined __stub___fdopen 27223choke me 27224#endif 27225 27226int main (void) 27227{ 27228return fdopen (); 27229 ; 27230 return 0; 27231} 27232 27233_ACEOF 27234if ac_fn_c_try_link "$LINENO"; then : 27235 27236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27237$as_echo "yes" >&6; } 27238 tst_links_fdopen="yes" 27239 27240else 27241 27242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27243$as_echo "no" >&6; } 27244 tst_links_fdopen="no" 27245 27246fi 27247rm -f core conftest.err conftest.$ac_objext \ 27248 conftest$ac_exeext conftest.$ac_ext 27249 # 27250 if test "$tst_links_fdopen" = "yes"; then 27251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is prototyped" >&5 27252$as_echo_n "checking if fdopen is prototyped... " >&6; } 27253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27254/* end confdefs.h. */ 27255 27256 $curl_includes_stdio 27257 27258_ACEOF 27259if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 27260 $EGREP "fdopen" >/dev/null 2>&1; then : 27261 27262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27263$as_echo "yes" >&6; } 27264 tst_proto_fdopen="yes" 27265 27266else 27267 27268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27269$as_echo "no" >&6; } 27270 tst_proto_fdopen="no" 27271 27272fi 27273rm -f conftest* 27274 27275 fi 27276 # 27277 if test "$tst_proto_fdopen" = "yes"; then 27278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is compilable" >&5 27279$as_echo_n "checking if fdopen is compilable... " >&6; } 27280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27281/* end confdefs.h. */ 27282 27283 27284 $curl_includes_stdio 27285 27286int main (void) 27287{ 27288 27289 if(0 != fdopen(0, 0)) 27290 return 1; 27291 27292 ; 27293 return 0; 27294} 27295 27296_ACEOF 27297if ac_fn_c_try_compile "$LINENO"; then : 27298 27299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27300$as_echo "yes" >&6; } 27301 tst_compi_fdopen="yes" 27302 27303else 27304 27305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27306$as_echo "no" >&6; } 27307 tst_compi_fdopen="no" 27308 27309fi 27310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27311 fi 27312 # 27313 if test "$tst_compi_fdopen" = "yes"; then 27314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen usage allowed" >&5 27315$as_echo_n "checking if fdopen usage allowed... " >&6; } 27316 if test "x$curl_disallow_fdopen" != "xyes"; then 27317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27318$as_echo "yes" >&6; } 27319 tst_allow_fdopen="yes" 27320 else 27321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27322$as_echo "no" >&6; } 27323 tst_allow_fdopen="no" 27324 fi 27325 fi 27326 # 27327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen might be used" >&5 27328$as_echo_n "checking if fdopen might be used... " >&6; } 27329 if test "$tst_links_fdopen" = "yes" && 27330 test "$tst_proto_fdopen" = "yes" && 27331 test "$tst_compi_fdopen" = "yes" && 27332 test "$tst_allow_fdopen" = "yes"; then 27333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27334$as_echo "yes" >&6; } 27335 27336cat >>confdefs.h <<_ACEOF 27337#define HAVE_FDOPEN 1 27338_ACEOF 27339 27340 ac_cv_func_fdopen="yes" 27341 else 27342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27343$as_echo "no" >&6; } 27344 ac_cv_func_fdopen="no" 27345 fi 27346 27347 27348curl_includes_netdb="\ 27349/* includes start */ 27350#ifdef HAVE_SYS_TYPES_H 27351# include <sys/types.h> 27352#endif 27353#ifdef HAVE_NETDB_H 27354# include <netdb.h> 27355#endif 27356/* includes end */" 27357 for ac_header in sys/types.h netdb.h 27358do : 27359 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 27360ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb 27361" 27362eval as_val=\$$as_ac_Header 27363 if test "x$as_val" = x""yes; then : 27364 cat >>confdefs.h <<_ACEOF 27365#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 27366_ACEOF 27367 27368fi 27369 27370done 27371 27372 27373 27374 # 27375 tst_links_freeaddrinfo="unknown" 27376 tst_proto_freeaddrinfo="unknown" 27377 tst_compi_freeaddrinfo="unknown" 27378 tst_allow_freeaddrinfo="unknown" 27379 # 27380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5 27381$as_echo_n "checking if freeaddrinfo can be linked... " >&6; } 27382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27383/* end confdefs.h. */ 27384 27385 27386 $curl_includes_ws2tcpip 27387 $curl_includes_sys_socket 27388 $curl_includes_netdb 27389 27390int main (void) 27391{ 27392 27393 freeaddrinfo(0); 27394 27395 ; 27396 return 0; 27397} 27398 27399_ACEOF 27400if ac_fn_c_try_link "$LINENO"; then : 27401 27402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27403$as_echo "yes" >&6; } 27404 tst_links_freeaddrinfo="yes" 27405 27406else 27407 27408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27409$as_echo "no" >&6; } 27410 tst_links_freeaddrinfo="no" 27411 27412fi 27413rm -f core conftest.err conftest.$ac_objext \ 27414 conftest$ac_exeext conftest.$ac_ext 27415 # 27416 if test "$tst_links_freeaddrinfo" = "yes"; then 27417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5 27418$as_echo_n "checking if freeaddrinfo is prototyped... " >&6; } 27419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27420/* end confdefs.h. */ 27421 27422 $curl_includes_ws2tcpip 27423 $curl_includes_sys_socket 27424 $curl_includes_netdb 27425 27426_ACEOF 27427if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 27428 $EGREP "freeaddrinfo" >/dev/null 2>&1; then : 27429 27430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27431$as_echo "yes" >&6; } 27432 tst_proto_freeaddrinfo="yes" 27433 27434else 27435 27436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27437$as_echo "no" >&6; } 27438 tst_proto_freeaddrinfo="no" 27439 27440fi 27441rm -f conftest* 27442 27443 fi 27444 # 27445 if test "$tst_proto_freeaddrinfo" = "yes"; then 27446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5 27447$as_echo_n "checking if freeaddrinfo is compilable... " >&6; } 27448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27449/* end confdefs.h. */ 27450 27451 27452 $curl_includes_ws2tcpip 27453 $curl_includes_sys_socket 27454 $curl_includes_netdb 27455 27456int main (void) 27457{ 27458 27459 freeaddrinfo(0); 27460 27461 ; 27462 return 0; 27463} 27464 27465_ACEOF 27466if ac_fn_c_try_compile "$LINENO"; then : 27467 27468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27469$as_echo "yes" >&6; } 27470 tst_compi_freeaddrinfo="yes" 27471 27472else 27473 27474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27475$as_echo "no" >&6; } 27476 tst_compi_freeaddrinfo="no" 27477 27478fi 27479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27480 fi 27481 # 27482 if test "$tst_compi_freeaddrinfo" = "yes"; then 27483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5 27484$as_echo_n "checking if freeaddrinfo usage allowed... " >&6; } 27485 if test "x$curl_disallow_freeaddrinfo" != "xyes"; then 27486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27487$as_echo "yes" >&6; } 27488 tst_allow_freeaddrinfo="yes" 27489 else 27490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27491$as_echo "no" >&6; } 27492 tst_allow_freeaddrinfo="no" 27493 fi 27494 fi 27495 # 27496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5 27497$as_echo_n "checking if freeaddrinfo might be used... " >&6; } 27498 if test "$tst_links_freeaddrinfo" = "yes" && 27499 test "$tst_proto_freeaddrinfo" = "yes" && 27500 test "$tst_compi_freeaddrinfo" = "yes" && 27501 test "$tst_allow_freeaddrinfo" = "yes"; then 27502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27503$as_echo "yes" >&6; } 27504 27505cat >>confdefs.h <<_ACEOF 27506#define HAVE_FREEADDRINFO 1 27507_ACEOF 27508 27509 ac_cv_func_freeaddrinfo="yes" 27510 else 27511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27512$as_echo "no" >&6; } 27513 ac_cv_func_freeaddrinfo="no" 27514 fi 27515 27516 27517curl_includes_ifaddrs="\ 27518/* includes start */ 27519#ifdef HAVE_SYS_TYPES_H 27520# include <sys/types.h> 27521#endif 27522#ifdef HAVE_SYS_SOCKET_H 27523# include <sys/socket.h> 27524#endif 27525#ifdef HAVE_NETINET_IN_H 27526# include <netinet/in.h> 27527#endif 27528#ifdef HAVE_IFADDRS_H 27529# include <ifaddrs.h> 27530#endif 27531/* includes end */" 27532 for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h 27533do : 27534 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 27535ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs 27536" 27537eval as_val=\$$as_ac_Header 27538 if test "x$as_val" = x""yes; then : 27539 cat >>confdefs.h <<_ACEOF 27540#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 27541_ACEOF 27542 27543fi 27544 27545done 27546 27547 27548 27549 # 27550 tst_links_freeifaddrs="unknown" 27551 tst_proto_freeifaddrs="unknown" 27552 tst_compi_freeifaddrs="unknown" 27553 tst_allow_freeifaddrs="unknown" 27554 # 27555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5 27556$as_echo_n "checking if freeifaddrs can be linked... " >&6; } 27557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27558/* end confdefs.h. */ 27559 27560 27561#define freeifaddrs innocuous_freeifaddrs 27562#ifdef __STDC__ 27563# include <limits.h> 27564#else 27565# include <assert.h> 27566#endif 27567#undef freeifaddrs 27568#ifdef __cplusplus 27569extern "C" 27570#endif 27571char freeifaddrs (); 27572#if defined __stub_freeifaddrs || defined __stub___freeifaddrs 27573choke me 27574#endif 27575 27576int main (void) 27577{ 27578return freeifaddrs (); 27579 ; 27580 return 0; 27581} 27582 27583_ACEOF 27584if ac_fn_c_try_link "$LINENO"; then : 27585 27586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27587$as_echo "yes" >&6; } 27588 tst_links_freeifaddrs="yes" 27589 27590else 27591 27592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27593$as_echo "no" >&6; } 27594 tst_links_freeifaddrs="no" 27595 27596fi 27597rm -f core conftest.err conftest.$ac_objext \ 27598 conftest$ac_exeext conftest.$ac_ext 27599 # 27600 if test "$tst_links_freeifaddrs" = "yes"; then 27601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5 27602$as_echo_n "checking if freeifaddrs is prototyped... " >&6; } 27603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27604/* end confdefs.h. */ 27605 27606 $curl_includes_ifaddrs 27607 27608_ACEOF 27609if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 27610 $EGREP "freeifaddrs" >/dev/null 2>&1; then : 27611 27612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27613$as_echo "yes" >&6; } 27614 tst_proto_freeifaddrs="yes" 27615 27616else 27617 27618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27619$as_echo "no" >&6; } 27620 tst_proto_freeifaddrs="no" 27621 27622fi 27623rm -f conftest* 27624 27625 fi 27626 # 27627 if test "$tst_proto_freeifaddrs" = "yes"; then 27628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5 27629$as_echo_n "checking if freeifaddrs is compilable... " >&6; } 27630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27631/* end confdefs.h. */ 27632 27633 27634 $curl_includes_ifaddrs 27635 27636int main (void) 27637{ 27638 27639 freeifaddrs(0); 27640 27641 ; 27642 return 0; 27643} 27644 27645_ACEOF 27646if ac_fn_c_try_compile "$LINENO"; then : 27647 27648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27649$as_echo "yes" >&6; } 27650 tst_compi_freeifaddrs="yes" 27651 27652else 27653 27654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27655$as_echo "no" >&6; } 27656 tst_compi_freeifaddrs="no" 27657 27658fi 27659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27660 fi 27661 # 27662 if test "$tst_compi_freeifaddrs" = "yes"; then 27663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5 27664$as_echo_n "checking if freeifaddrs usage allowed... " >&6; } 27665 if test "x$curl_disallow_freeifaddrs" != "xyes"; then 27666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27667$as_echo "yes" >&6; } 27668 tst_allow_freeifaddrs="yes" 27669 else 27670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27671$as_echo "no" >&6; } 27672 tst_allow_freeifaddrs="no" 27673 fi 27674 fi 27675 # 27676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5 27677$as_echo_n "checking if freeifaddrs might be used... " >&6; } 27678 if test "$tst_links_freeifaddrs" = "yes" && 27679 test "$tst_proto_freeifaddrs" = "yes" && 27680 test "$tst_compi_freeifaddrs" = "yes" && 27681 test "$tst_allow_freeifaddrs" = "yes"; then 27682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27683$as_echo "yes" >&6; } 27684 27685cat >>confdefs.h <<_ACEOF 27686#define HAVE_FREEIFADDRS 1 27687_ACEOF 27688 27689 ac_cv_func_freeifaddrs="yes" 27690 else 27691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27692$as_echo "no" >&6; } 27693 ac_cv_func_freeifaddrs="no" 27694 fi 27695 27696 27697curl_includes_sys_xattr="\ 27698/* includes start */ 27699#ifdef HAVE_SYS_TYPES_H 27700# include <sys/types.h> 27701#endif 27702#ifdef HAVE_SYS_XATTR_H 27703# include <sys/xattr.h> 27704#endif 27705/* includes end */" 27706 for ac_header in sys/types.h sys/xattr.h 27707do : 27708 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 27709ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr 27710" 27711eval as_val=\$$as_ac_Header 27712 if test "x$as_val" = x""yes; then : 27713 cat >>confdefs.h <<_ACEOF 27714#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 27715_ACEOF 27716 27717fi 27718 27719done 27720 27721 27722 27723 # 27724 tst_links_fsetxattr="unknown" 27725 tst_proto_fsetxattr="unknown" 27726 tst_compi_fsetxattr="unknown" 27727 tst_allow_fsetxattr="unknown" 27728 tst_nargs_fsetxattr="unknown" 27729 # 27730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5 27731$as_echo_n "checking if fsetxattr can be linked... " >&6; } 27732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27733/* end confdefs.h. */ 27734 27735 27736#define fsetxattr innocuous_fsetxattr 27737#ifdef __STDC__ 27738# include <limits.h> 27739#else 27740# include <assert.h> 27741#endif 27742#undef fsetxattr 27743#ifdef __cplusplus 27744extern "C" 27745#endif 27746char fsetxattr (); 27747#if defined __stub_fsetxattr || defined __stub___fsetxattr 27748choke me 27749#endif 27750 27751int main (void) 27752{ 27753return fsetxattr (); 27754 ; 27755 return 0; 27756} 27757 27758_ACEOF 27759if ac_fn_c_try_link "$LINENO"; then : 27760 27761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27762$as_echo "yes" >&6; } 27763 tst_links_fsetxattr="yes" 27764 27765else 27766 27767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27768$as_echo "no" >&6; } 27769 tst_links_fsetxattr="no" 27770 27771fi 27772rm -f core conftest.err conftest.$ac_objext \ 27773 conftest$ac_exeext conftest.$ac_ext 27774 # 27775 if test "$tst_links_fsetxattr" = "yes"; then 27776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5 27777$as_echo_n "checking if fsetxattr is prototyped... " >&6; } 27778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27779/* end confdefs.h. */ 27780 27781 $curl_includes_sys_xattr 27782 27783_ACEOF 27784if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 27785 $EGREP "fsetxattr" >/dev/null 2>&1; then : 27786 27787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27788$as_echo "yes" >&6; } 27789 tst_proto_fsetxattr="yes" 27790 27791else 27792 27793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27794$as_echo "no" >&6; } 27795 tst_proto_fsetxattr="no" 27796 27797fi 27798rm -f conftest* 27799 27800 fi 27801 # 27802 if test "$tst_proto_fsetxattr" = "yes"; then 27803 if test "$tst_nargs_fsetxattr" = "unknown"; then 27804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5 27805$as_echo_n "checking if fsetxattr takes 5 args.... " >&6; } 27806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27807/* end confdefs.h. */ 27808 27809 27810 $curl_includes_sys_xattr 27811 27812int main (void) 27813{ 27814 27815 if(0 != fsetxattr(0, 0, 0, 0, 0)) 27816 return 1; 27817 27818 ; 27819 return 0; 27820} 27821 27822_ACEOF 27823if ac_fn_c_try_compile "$LINENO"; then : 27824 27825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27826$as_echo "yes" >&6; } 27827 tst_compi_fsetxattr="yes" 27828 tst_nargs_fsetxattr="5" 27829 27830else 27831 27832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27833$as_echo "no" >&6; } 27834 tst_compi_fsetxattr="no" 27835 27836fi 27837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27838 fi 27839 if test "$tst_nargs_fsetxattr" = "unknown"; then 27840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5 27841$as_echo_n "checking if fsetxattr takes 6 args.... " >&6; } 27842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27843/* end confdefs.h. */ 27844 27845 27846 $curl_includes_sys_xattr 27847 27848int main (void) 27849{ 27850 27851 if(0 != fsetxattr(0, 0, 0, 0, 0, 0)) 27852 return 1; 27853 27854 ; 27855 return 0; 27856} 27857 27858_ACEOF 27859if ac_fn_c_try_compile "$LINENO"; then : 27860 27861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27862$as_echo "yes" >&6; } 27863 tst_compi_fsetxattr="yes" 27864 tst_nargs_fsetxattr="6" 27865 27866else 27867 27868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27869$as_echo "no" >&6; } 27870 tst_compi_fsetxattr="no" 27871 27872fi 27873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27874 fi 27875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5 27876$as_echo_n "checking if fsetxattr is compilable... " >&6; } 27877 if test "$tst_compi_fsetxattr" = "yes"; then 27878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27879$as_echo "yes" >&6; } 27880 else 27881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27882$as_echo "no" >&6; } 27883 fi 27884 fi 27885 # 27886 if test "$tst_compi_fsetxattr" = "yes"; then 27887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5 27888$as_echo_n "checking if fsetxattr usage allowed... " >&6; } 27889 if test "x$curl_disallow_fsetxattr" != "xyes"; then 27890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27891$as_echo "yes" >&6; } 27892 tst_allow_fsetxattr="yes" 27893 else 27894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27895$as_echo "no" >&6; } 27896 tst_allow_fsetxattr="no" 27897 fi 27898 fi 27899 # 27900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5 27901$as_echo_n "checking if fsetxattr might be used... " >&6; } 27902 if test "$tst_links_fsetxattr" = "yes" && 27903 test "$tst_proto_fsetxattr" = "yes" && 27904 test "$tst_compi_fsetxattr" = "yes" && 27905 test "$tst_allow_fsetxattr" = "yes"; then 27906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27907$as_echo "yes" >&6; } 27908 27909cat >>confdefs.h <<_ACEOF 27910#define HAVE_FSETXATTR 1 27911_ACEOF 27912 27913 # 27914 if test "$tst_nargs_fsetxattr" -eq "5"; then 27915 27916$as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h 27917 27918 elif test "$tst_nargs_fsetxattr" -eq "6"; then 27919 27920$as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h 27921 27922 fi 27923 # 27924 ac_cv_func_fsetxattr="yes" 27925 else 27926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27927$as_echo "no" >&6; } 27928 ac_cv_func_fsetxattr="no" 27929 fi 27930 27931 27932 # 27933 tst_links_ftruncate="unknown" 27934 tst_proto_ftruncate="unknown" 27935 tst_compi_ftruncate="unknown" 27936 tst_allow_ftruncate="unknown" 27937 # 27938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5 27939$as_echo_n "checking if ftruncate can be linked... " >&6; } 27940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27941/* end confdefs.h. */ 27942 27943 27944#define ftruncate innocuous_ftruncate 27945#ifdef __STDC__ 27946# include <limits.h> 27947#else 27948# include <assert.h> 27949#endif 27950#undef ftruncate 27951#ifdef __cplusplus 27952extern "C" 27953#endif 27954char ftruncate (); 27955#if defined __stub_ftruncate || defined __stub___ftruncate 27956choke me 27957#endif 27958 27959int main (void) 27960{ 27961return ftruncate (); 27962 ; 27963 return 0; 27964} 27965 27966_ACEOF 27967if ac_fn_c_try_link "$LINENO"; then : 27968 27969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27970$as_echo "yes" >&6; } 27971 tst_links_ftruncate="yes" 27972 27973else 27974 27975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27976$as_echo "no" >&6; } 27977 tst_links_ftruncate="no" 27978 27979fi 27980rm -f core conftest.err conftest.$ac_objext \ 27981 conftest$ac_exeext conftest.$ac_ext 27982 # 27983 if test "$tst_links_ftruncate" = "yes"; then 27984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5 27985$as_echo_n "checking if ftruncate is prototyped... " >&6; } 27986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27987/* end confdefs.h. */ 27988 27989 $curl_includes_unistd 27990 27991_ACEOF 27992if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 27993 $EGREP "ftruncate" >/dev/null 2>&1; then : 27994 27995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27996$as_echo "yes" >&6; } 27997 tst_proto_ftruncate="yes" 27998 27999else 28000 28001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28002$as_echo "no" >&6; } 28003 tst_proto_ftruncate="no" 28004 28005fi 28006rm -f conftest* 28007 28008 fi 28009 # 28010 if test "$tst_proto_ftruncate" = "yes"; then 28011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5 28012$as_echo_n "checking if ftruncate is compilable... " >&6; } 28013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28014/* end confdefs.h. */ 28015 28016 28017 $curl_includes_unistd 28018 28019int main (void) 28020{ 28021 28022 if(0 != ftruncate(0, 0)) 28023 return 1; 28024 28025 ; 28026 return 0; 28027} 28028 28029_ACEOF 28030if ac_fn_c_try_compile "$LINENO"; then : 28031 28032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28033$as_echo "yes" >&6; } 28034 tst_compi_ftruncate="yes" 28035 28036else 28037 28038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28039$as_echo "no" >&6; } 28040 tst_compi_ftruncate="no" 28041 28042fi 28043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28044 fi 28045 # 28046 if test "$tst_compi_ftruncate" = "yes"; then 28047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5 28048$as_echo_n "checking if ftruncate usage allowed... " >&6; } 28049 if test "x$curl_disallow_ftruncate" != "xyes"; then 28050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28051$as_echo "yes" >&6; } 28052 tst_allow_ftruncate="yes" 28053 else 28054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28055$as_echo "no" >&6; } 28056 tst_allow_ftruncate="no" 28057 fi 28058 fi 28059 # 28060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5 28061$as_echo_n "checking if ftruncate might be used... " >&6; } 28062 if test "$tst_links_ftruncate" = "yes" && 28063 test "$tst_proto_ftruncate" = "yes" && 28064 test "$tst_compi_ftruncate" = "yes" && 28065 test "$tst_allow_ftruncate" = "yes"; then 28066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28067$as_echo "yes" >&6; } 28068 28069cat >>confdefs.h <<_ACEOF 28070#define HAVE_FTRUNCATE 1 28071_ACEOF 28072 28073 ac_cv_func_ftruncate="yes" 28074 else 28075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28076$as_echo "no" >&6; } 28077 ac_cv_func_ftruncate="no" 28078 fi 28079 28080 28081curl_includes_stdlib="\ 28082/* includes start */ 28083#ifdef HAVE_SYS_TYPES_H 28084# include <sys/types.h> 28085#endif 28086#ifdef HAVE_STDLIB_H 28087# include <stdlib.h> 28088#endif 28089/* includes end */" 28090 for ac_header in sys/types.h stdlib.h 28091do : 28092 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 28093ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib 28094" 28095eval as_val=\$$as_ac_Header 28096 if test "x$as_val" = x""yes; then : 28097 cat >>confdefs.h <<_ACEOF 28098#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 28099_ACEOF 28100 28101fi 28102 28103done 28104 28105 28106 28107 # 28108 tst_links_getaddrinfo="unknown" 28109 tst_proto_getaddrinfo="unknown" 28110 tst_compi_getaddrinfo="unknown" 28111 tst_works_getaddrinfo="unknown" 28112 tst_allow_getaddrinfo="unknown" 28113 tst_tsafe_getaddrinfo="unknown" 28114 # 28115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5 28116$as_echo_n "checking if getaddrinfo can be linked... " >&6; } 28117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28118/* end confdefs.h. */ 28119 28120 28121 $curl_includes_ws2tcpip 28122 $curl_includes_sys_socket 28123 $curl_includes_netdb 28124 28125int main (void) 28126{ 28127 28128 if(0 != getaddrinfo(0, 0, 0, 0)) 28129 return 1; 28130 28131 ; 28132 return 0; 28133} 28134 28135_ACEOF 28136if ac_fn_c_try_link "$LINENO"; then : 28137 28138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28139$as_echo "yes" >&6; } 28140 tst_links_getaddrinfo="yes" 28141 28142else 28143 28144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28145$as_echo "no" >&6; } 28146 tst_links_getaddrinfo="no" 28147 28148fi 28149rm -f core conftest.err conftest.$ac_objext \ 28150 conftest$ac_exeext conftest.$ac_ext 28151 # 28152 if test "$tst_links_getaddrinfo" = "yes"; then 28153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5 28154$as_echo_n "checking if getaddrinfo is prototyped... " >&6; } 28155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28156/* end confdefs.h. */ 28157 28158 $curl_includes_ws2tcpip 28159 $curl_includes_sys_socket 28160 $curl_includes_netdb 28161 28162_ACEOF 28163if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28164 $EGREP "getaddrinfo" >/dev/null 2>&1; then : 28165 28166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28167$as_echo "yes" >&6; } 28168 tst_proto_getaddrinfo="yes" 28169 28170else 28171 28172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28173$as_echo "no" >&6; } 28174 tst_proto_getaddrinfo="no" 28175 28176fi 28177rm -f conftest* 28178 28179 fi 28180 # 28181 if test "$tst_proto_getaddrinfo" = "yes"; then 28182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5 28183$as_echo_n "checking if getaddrinfo is compilable... " >&6; } 28184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28185/* end confdefs.h. */ 28186 28187 28188 $curl_includes_ws2tcpip 28189 $curl_includes_sys_socket 28190 $curl_includes_netdb 28191 28192int main (void) 28193{ 28194 28195 if(0 != getaddrinfo(0, 0, 0, 0)) 28196 return 1; 28197 28198 ; 28199 return 0; 28200} 28201 28202_ACEOF 28203if ac_fn_c_try_compile "$LINENO"; then : 28204 28205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28206$as_echo "yes" >&6; } 28207 tst_compi_getaddrinfo="yes" 28208 28209else 28210 28211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28212$as_echo "no" >&6; } 28213 tst_compi_getaddrinfo="no" 28214 28215fi 28216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28217 fi 28218 # 28219 if test "x$cross_compiling" != "xyes" && 28220 test "$tst_compi_getaddrinfo" = "yes"; then 28221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5 28222$as_echo_n "checking if getaddrinfo seems to work... " >&6; } 28223 if test "$cross_compiling" = yes; then : 28224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28225$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28226as_fn_error "cannot run test program while cross compiling 28227See \`config.log' for more details." "$LINENO" 5; } 28228else 28229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28230/* end confdefs.h. */ 28231 28232 28233 $curl_includes_ws2tcpip 28234 $curl_includes_stdlib 28235 $curl_includes_string 28236 $curl_includes_sys_socket 28237 $curl_includes_netdb 28238 28239int main (void) 28240{ 28241 28242 struct addrinfo hints; 28243 struct addrinfo *ai = 0; 28244 int error; 28245 28246 memset(&hints, 0, sizeof(hints)); 28247 hints.ai_flags = AI_NUMERICHOST; 28248 hints.ai_family = AF_UNSPEC; 28249 hints.ai_socktype = SOCK_STREAM; 28250 error = getaddrinfo("127.0.0.1", 0, &hints, &ai); 28251 if(error || !ai) 28252 exit(1); /* fail */ 28253 else 28254 exit(0); 28255 28256 ; 28257 return 0; 28258} 28259 28260_ACEOF 28261if ac_fn_c_try_run "$LINENO"; then : 28262 28263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28264$as_echo "yes" >&6; } 28265 tst_works_getaddrinfo="yes" 28266 28267else 28268 28269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28270$as_echo "no" >&6; } 28271 tst_works_getaddrinfo="no" 28272 28273fi 28274rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 28275 conftest.$ac_objext conftest.beam conftest.$ac_ext 28276fi 28277 28278 fi 28279 # 28280 if test "$tst_compi_getaddrinfo" = "yes" && 28281 test "$tst_works_getaddrinfo" != "no"; then 28282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5 28283$as_echo_n "checking if getaddrinfo usage allowed... " >&6; } 28284 if test "x$curl_disallow_getaddrinfo" != "xyes"; then 28285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28286$as_echo "yes" >&6; } 28287 tst_allow_getaddrinfo="yes" 28288 else 28289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28290$as_echo "no" >&6; } 28291 tst_allow_getaddrinfo="no" 28292 fi 28293 fi 28294 # 28295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5 28296$as_echo_n "checking if getaddrinfo might be used... " >&6; } 28297 if test "$tst_links_getaddrinfo" = "yes" && 28298 test "$tst_proto_getaddrinfo" = "yes" && 28299 test "$tst_compi_getaddrinfo" = "yes" && 28300 test "$tst_allow_getaddrinfo" = "yes" && 28301 test "$tst_works_getaddrinfo" != "no"; then 28302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28303$as_echo "yes" >&6; } 28304 28305cat >>confdefs.h <<_ACEOF 28306#define HAVE_GETADDRINFO 1 28307_ACEOF 28308 28309 ac_cv_func_getaddrinfo="yes" 28310 else 28311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28312$as_echo "no" >&6; } 28313 ac_cv_func_getaddrinfo="no" 28314 ac_cv_func_getaddrinfo_threadsafe="no" 28315 fi 28316 # 28317 if test "$ac_cv_func_getaddrinfo" = "yes"; then 28318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5 28319$as_echo_n "checking if getaddrinfo is threadsafe... " >&6; } 28320 case $host_os in 28321 aix[1234].* | aix5.[01].*) 28322 tst_tsafe_getaddrinfo="no" 28323 ;; 28324 aix*) 28325 tst_tsafe_getaddrinfo="yes" 28326 ;; 28327 darwin[12345].*) 28328 tst_tsafe_getaddrinfo="no" 28329 ;; 28330 darwin*) 28331 tst_tsafe_getaddrinfo="yes" 28332 ;; 28333 freebsd[1234].* | freebsd5.[1234]*) 28334 tst_tsafe_getaddrinfo="no" 28335 ;; 28336 freebsd*) 28337 tst_tsafe_getaddrinfo="yes" 28338 ;; 28339 hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*) 28340 tst_tsafe_getaddrinfo="no" 28341 ;; 28342 hpux*) 28343 tst_tsafe_getaddrinfo="yes" 28344 ;; 28345 netbsd[123].*) 28346 tst_tsafe_getaddrinfo="no" 28347 ;; 28348 netbsd*) 28349 tst_tsafe_getaddrinfo="yes" 28350 ;; 28351 *bsd*) 28352 tst_tsafe_getaddrinfo="no" 28353 ;; 28354 solaris2*) 28355 tst_tsafe_getaddrinfo="yes" 28356 ;; 28357 esac 28358 if test "$tst_tsafe_getaddrinfo" = "unknown"; then 28359 28360 28361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28362/* end confdefs.h. */ 28363 28364 28365 $curl_includes_ws2tcpip 28366 $curl_includes_sys_socket 28367 $curl_includes_netdb 28368 28369int main (void) 28370{ 28371#ifdef h_errno 28372 return 0; 28373#else 28374 force compilation error 28375#endif 28376} 28377 28378 28379_ACEOF 28380if ac_fn_c_try_compile "$LINENO"; then : 28381 28382 tst_symbol_defined="yes" 28383 28384else 28385 28386 tst_symbol_defined="no" 28387 28388fi 28389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28390 if test "$tst_symbol_defined" = "yes"; then 28391 curl_cv_have_def_h_errno=yes 28392 28393 else 28394 curl_cv_have_def_h_errno=no 28395 28396 fi 28397 28398 if test "$curl_cv_have_def_h_errno" = "no"; then 28399 tst_tsafe_getaddrinfo="no" 28400 fi 28401 fi 28402 if test "$tst_tsafe_getaddrinfo" = "unknown"; then 28403 tst_tsafe_getaddrinfo="yes" 28404 fi 28405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5 28406$as_echo "$tst_tsafe_getaddrinfo" >&6; } 28407 if test "$tst_tsafe_getaddrinfo" = "yes"; then 28408 28409cat >>confdefs.h <<_ACEOF 28410#define HAVE_GETADDRINFO_THREADSAFE 1 28411_ACEOF 28412 28413 ac_cv_func_getaddrinfo_threadsafe="yes" 28414 else 28415 ac_cv_func_getaddrinfo_threadsafe="no" 28416 fi 28417 fi 28418 28419 28420 # 28421 tst_links_gai_strerror="unknown" 28422 tst_proto_gai_strerror="unknown" 28423 tst_compi_gai_strerror="unknown" 28424 tst_allow_gai_strerror="unknown" 28425 # 28426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror can be linked" >&5 28427$as_echo_n "checking if gai_strerror can be linked... " >&6; } 28428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28429/* end confdefs.h. */ 28430 28431 28432 $curl_includes_winsock2 28433 $curl_includes_netdb 28434 28435int main (void) 28436{ 28437 28438 if(0 != gai_strerror(0)) 28439 return 1; 28440 28441 ; 28442 return 0; 28443} 28444 28445_ACEOF 28446if ac_fn_c_try_link "$LINENO"; then : 28447 28448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28449$as_echo "yes" >&6; } 28450 tst_links_gai_strerror="yes" 28451 28452else 28453 28454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28455$as_echo "no" >&6; } 28456 tst_links_gai_strerror="no" 28457 28458fi 28459rm -f core conftest.err conftest.$ac_objext \ 28460 conftest$ac_exeext conftest.$ac_ext 28461 # 28462 if test "$tst_links_gai_strerror" = "yes"; then 28463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is prototyped" >&5 28464$as_echo_n "checking if gai_strerror is prototyped... " >&6; } 28465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28466/* end confdefs.h. */ 28467 28468 $curl_includes_winsock2 28469 $curl_includes_netdb 28470 28471_ACEOF 28472if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28473 $EGREP "gai_strerror" >/dev/null 2>&1; then : 28474 28475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28476$as_echo "yes" >&6; } 28477 tst_proto_gai_strerror="yes" 28478 28479else 28480 28481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28482$as_echo "no" >&6; } 28483 tst_proto_gai_strerror="no" 28484 28485fi 28486rm -f conftest* 28487 28488 fi 28489 # 28490 if test "$tst_proto_gai_strerror" = "yes"; then 28491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is compilable" >&5 28492$as_echo_n "checking if gai_strerror is compilable... " >&6; } 28493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28494/* end confdefs.h. */ 28495 28496 28497 $curl_includes_winsock2 28498 $curl_includes_netdb 28499 28500int main (void) 28501{ 28502 28503 if(0 != gai_strerror(0)) 28504 return 1; 28505 28506 ; 28507 return 0; 28508} 28509 28510_ACEOF 28511if ac_fn_c_try_compile "$LINENO"; then : 28512 28513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28514$as_echo "yes" >&6; } 28515 tst_compi_gai_strerror="yes" 28516 28517else 28518 28519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28520$as_echo "no" >&6; } 28521 tst_compi_gai_strerror="no" 28522 28523fi 28524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28525 fi 28526 # 28527 if test "$tst_compi_gai_strerror" = "yes"; then 28528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror usage allowed" >&5 28529$as_echo_n "checking if gai_strerror usage allowed... " >&6; } 28530 if test "x$curl_disallow_gai_strerror" != "xyes"; then 28531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28532$as_echo "yes" >&6; } 28533 tst_allow_gai_strerror="yes" 28534 else 28535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28536$as_echo "no" >&6; } 28537 tst_allow_gai_strerror="no" 28538 fi 28539 fi 28540 # 28541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror might be used" >&5 28542$as_echo_n "checking if gai_strerror might be used... " >&6; } 28543 if test "$tst_links_gai_strerror" = "yes" && 28544 test "$tst_proto_gai_strerror" = "yes" && 28545 test "$tst_compi_gai_strerror" = "yes" && 28546 test "$tst_allow_gai_strerror" = "yes"; then 28547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28548$as_echo "yes" >&6; } 28549 28550cat >>confdefs.h <<_ACEOF 28551#define HAVE_GAI_STRERROR 1 28552_ACEOF 28553 28554 ac_cv_func_gai_strerror="yes" 28555 else 28556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28557$as_echo "no" >&6; } 28558 ac_cv_func_gai_strerror="no" 28559 fi 28560 28561 28562 # 28563 tst_links_gethostbyaddr="unknown" 28564 tst_proto_gethostbyaddr="unknown" 28565 tst_compi_gethostbyaddr="unknown" 28566 tst_allow_gethostbyaddr="unknown" 28567 # 28568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5 28569$as_echo_n "checking if gethostbyaddr can be linked... " >&6; } 28570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28571/* end confdefs.h. */ 28572 28573 28574 $curl_includes_winsock2 28575 $curl_includes_netdb 28576 28577int main (void) 28578{ 28579 28580 if(0 != gethostbyaddr(0, 0, 0)) 28581 return 1; 28582 28583 ; 28584 return 0; 28585} 28586 28587_ACEOF 28588if ac_fn_c_try_link "$LINENO"; then : 28589 28590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28591$as_echo "yes" >&6; } 28592 tst_links_gethostbyaddr="yes" 28593 28594else 28595 28596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28597$as_echo "no" >&6; } 28598 tst_links_gethostbyaddr="no" 28599 28600fi 28601rm -f core conftest.err conftest.$ac_objext \ 28602 conftest$ac_exeext conftest.$ac_ext 28603 # 28604 if test "$tst_links_gethostbyaddr" = "yes"; then 28605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5 28606$as_echo_n "checking if gethostbyaddr is prototyped... " >&6; } 28607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28608/* end confdefs.h. */ 28609 28610 $curl_includes_winsock2 28611 $curl_includes_netdb 28612 28613_ACEOF 28614if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28615 $EGREP "gethostbyaddr" >/dev/null 2>&1; then : 28616 28617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28618$as_echo "yes" >&6; } 28619 tst_proto_gethostbyaddr="yes" 28620 28621else 28622 28623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28624$as_echo "no" >&6; } 28625 tst_proto_gethostbyaddr="no" 28626 28627fi 28628rm -f conftest* 28629 28630 fi 28631 # 28632 if test "$tst_proto_gethostbyaddr" = "yes"; then 28633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5 28634$as_echo_n "checking if gethostbyaddr is compilable... " >&6; } 28635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28636/* end confdefs.h. */ 28637 28638 28639 $curl_includes_winsock2 28640 $curl_includes_netdb 28641 28642int main (void) 28643{ 28644 28645 if(0 != gethostbyaddr(0, 0, 0)) 28646 return 1; 28647 28648 ; 28649 return 0; 28650} 28651 28652_ACEOF 28653if ac_fn_c_try_compile "$LINENO"; then : 28654 28655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28656$as_echo "yes" >&6; } 28657 tst_compi_gethostbyaddr="yes" 28658 28659else 28660 28661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28662$as_echo "no" >&6; } 28663 tst_compi_gethostbyaddr="no" 28664 28665fi 28666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28667 fi 28668 # 28669 if test "$tst_compi_gethostbyaddr" = "yes"; then 28670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5 28671$as_echo_n "checking if gethostbyaddr usage allowed... " >&6; } 28672 if test "x$curl_disallow_gethostbyaddr" != "xyes"; then 28673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28674$as_echo "yes" >&6; } 28675 tst_allow_gethostbyaddr="yes" 28676 else 28677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28678$as_echo "no" >&6; } 28679 tst_allow_gethostbyaddr="no" 28680 fi 28681 fi 28682 # 28683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5 28684$as_echo_n "checking if gethostbyaddr might be used... " >&6; } 28685 if test "$tst_links_gethostbyaddr" = "yes" && 28686 test "$tst_proto_gethostbyaddr" = "yes" && 28687 test "$tst_compi_gethostbyaddr" = "yes" && 28688 test "$tst_allow_gethostbyaddr" = "yes"; then 28689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28690$as_echo "yes" >&6; } 28691 28692cat >>confdefs.h <<_ACEOF 28693#define HAVE_GETHOSTBYADDR 1 28694_ACEOF 28695 28696 ac_cv_func_gethostbyaddr="yes" 28697 else 28698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28699$as_echo "no" >&6; } 28700 ac_cv_func_gethostbyaddr="no" 28701 fi 28702 28703 28704 # 28705 tst_links_gethostbyaddr_r="unknown" 28706 tst_proto_gethostbyaddr_r="unknown" 28707 tst_compi_gethostbyaddr_r="unknown" 28708 tst_allow_gethostbyaddr_r="unknown" 28709 tst_nargs_gethostbyaddr_r="unknown" 28710 # 28711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5 28712$as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; } 28713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28714/* end confdefs.h. */ 28715 28716 28717#define gethostbyaddr_r innocuous_gethostbyaddr_r 28718#ifdef __STDC__ 28719# include <limits.h> 28720#else 28721# include <assert.h> 28722#endif 28723#undef gethostbyaddr_r 28724#ifdef __cplusplus 28725extern "C" 28726#endif 28727char gethostbyaddr_r (); 28728#if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r 28729choke me 28730#endif 28731 28732int main (void) 28733{ 28734return gethostbyaddr_r (); 28735 ; 28736 return 0; 28737} 28738 28739_ACEOF 28740if ac_fn_c_try_link "$LINENO"; then : 28741 28742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28743$as_echo "yes" >&6; } 28744 tst_links_gethostbyaddr_r="yes" 28745 28746else 28747 28748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28749$as_echo "no" >&6; } 28750 tst_links_gethostbyaddr_r="no" 28751 28752fi 28753rm -f core conftest.err conftest.$ac_objext \ 28754 conftest$ac_exeext conftest.$ac_ext 28755 # 28756 if test "$tst_links_gethostbyaddr_r" = "yes"; then 28757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5 28758$as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; } 28759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28760/* end confdefs.h. */ 28761 28762 $curl_includes_netdb 28763 28764_ACEOF 28765if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28766 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then : 28767 28768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28769$as_echo "yes" >&6; } 28770 tst_proto_gethostbyaddr_r="yes" 28771 28772else 28773 28774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28775$as_echo "no" >&6; } 28776 tst_proto_gethostbyaddr_r="no" 28777 28778fi 28779rm -f conftest* 28780 28781 fi 28782 # 28783 if test "$tst_proto_gethostbyaddr_r" = "yes"; then 28784 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then 28785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5 28786$as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; } 28787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28788/* end confdefs.h. */ 28789 28790 28791 $curl_includes_netdb 28792 28793int main (void) 28794{ 28795 28796 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0)) 28797 return 1; 28798 28799 ; 28800 return 0; 28801} 28802 28803_ACEOF 28804if ac_fn_c_try_compile "$LINENO"; then : 28805 28806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28807$as_echo "yes" >&6; } 28808 tst_compi_gethostbyaddr_r="yes" 28809 tst_nargs_gethostbyaddr_r="5" 28810 28811else 28812 28813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28814$as_echo "no" >&6; } 28815 tst_compi_gethostbyaddr_r="no" 28816 28817fi 28818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28819 fi 28820 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then 28821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5 28822$as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; } 28823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28824/* end confdefs.h. */ 28825 28826 28827 $curl_includes_netdb 28828 28829int main (void) 28830{ 28831 28832 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0)) 28833 return 1; 28834 28835 ; 28836 return 0; 28837} 28838 28839_ACEOF 28840if ac_fn_c_try_compile "$LINENO"; then : 28841 28842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28843$as_echo "yes" >&6; } 28844 tst_compi_gethostbyaddr_r="yes" 28845 tst_nargs_gethostbyaddr_r="7" 28846 28847else 28848 28849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28850$as_echo "no" >&6; } 28851 tst_compi_gethostbyaddr_r="no" 28852 28853fi 28854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28855 fi 28856 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then 28857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5 28858$as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; } 28859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28860/* end confdefs.h. */ 28861 28862 28863 $curl_includes_netdb 28864 28865int main (void) 28866{ 28867 28868 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0)) 28869 return 1; 28870 28871 ; 28872 return 0; 28873} 28874 28875_ACEOF 28876if ac_fn_c_try_compile "$LINENO"; then : 28877 28878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28879$as_echo "yes" >&6; } 28880 tst_compi_gethostbyaddr_r="yes" 28881 tst_nargs_gethostbyaddr_r="8" 28882 28883else 28884 28885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28886$as_echo "no" >&6; } 28887 tst_compi_gethostbyaddr_r="no" 28888 28889fi 28890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28891 fi 28892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5 28893$as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; } 28894 if test "$tst_compi_gethostbyaddr_r" = "yes"; then 28895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28896$as_echo "yes" >&6; } 28897 else 28898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28899$as_echo "no" >&6; } 28900 fi 28901 fi 28902 # 28903 if test "$tst_compi_gethostbyaddr_r" = "yes"; then 28904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5 28905$as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; } 28906 if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then 28907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28908$as_echo "yes" >&6; } 28909 tst_allow_gethostbyaddr_r="yes" 28910 else 28911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28912$as_echo "no" >&6; } 28913 tst_allow_gethostbyaddr_r="no" 28914 fi 28915 fi 28916 # 28917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5 28918$as_echo_n "checking if gethostbyaddr_r might be used... " >&6; } 28919 if test "$tst_links_gethostbyaddr_r" = "yes" && 28920 test "$tst_proto_gethostbyaddr_r" = "yes" && 28921 test "$tst_compi_gethostbyaddr_r" = "yes" && 28922 test "$tst_allow_gethostbyaddr_r" = "yes"; then 28923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28924$as_echo "yes" >&6; } 28925 28926cat >>confdefs.h <<_ACEOF 28927#define HAVE_GETHOSTBYADDR_R 1 28928_ACEOF 28929 28930 # 28931 if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then 28932 28933$as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h 28934 28935 elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then 28936 28937$as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h 28938 28939 elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then 28940 28941$as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h 28942 28943 fi 28944 # 28945 ac_cv_func_gethostbyaddr_r="yes" 28946 else 28947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28948$as_echo "no" >&6; } 28949 ac_cv_func_gethostbyaddr_r="no" 28950 fi 28951 28952 28953 # 28954 tst_links_gethostbyname="unknown" 28955 tst_proto_gethostbyname="unknown" 28956 tst_compi_gethostbyname="unknown" 28957 tst_allow_gethostbyname="unknown" 28958 # 28959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5 28960$as_echo_n "checking if gethostbyname can be linked... " >&6; } 28961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28962/* end confdefs.h. */ 28963 28964 28965 $curl_includes_winsock2 28966 $curl_includes_netdb 28967 28968int main (void) 28969{ 28970 28971 if(0 != gethostbyname(0)) 28972 return 1; 28973 28974 ; 28975 return 0; 28976} 28977 28978_ACEOF 28979if ac_fn_c_try_link "$LINENO"; then : 28980 28981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28982$as_echo "yes" >&6; } 28983 tst_links_gethostbyname="yes" 28984 28985else 28986 28987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28988$as_echo "no" >&6; } 28989 tst_links_gethostbyname="no" 28990 28991fi 28992rm -f core conftest.err conftest.$ac_objext \ 28993 conftest$ac_exeext conftest.$ac_ext 28994 # 28995 if test "$tst_links_gethostbyname" = "yes"; then 28996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5 28997$as_echo_n "checking if gethostbyname is prototyped... " >&6; } 28998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28999/* end confdefs.h. */ 29000 29001 $curl_includes_winsock2 29002 $curl_includes_netdb 29003 29004_ACEOF 29005if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 29006 $EGREP "gethostbyname" >/dev/null 2>&1; then : 29007 29008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29009$as_echo "yes" >&6; } 29010 tst_proto_gethostbyname="yes" 29011 29012else 29013 29014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29015$as_echo "no" >&6; } 29016 tst_proto_gethostbyname="no" 29017 29018fi 29019rm -f conftest* 29020 29021 fi 29022 # 29023 if test "$tst_proto_gethostbyname" = "yes"; then 29024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5 29025$as_echo_n "checking if gethostbyname is compilable... " >&6; } 29026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29027/* end confdefs.h. */ 29028 29029 29030 $curl_includes_winsock2 29031 $curl_includes_netdb 29032 29033int main (void) 29034{ 29035 29036 if(0 != gethostbyname(0)) 29037 return 1; 29038 29039 ; 29040 return 0; 29041} 29042 29043_ACEOF 29044if ac_fn_c_try_compile "$LINENO"; then : 29045 29046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29047$as_echo "yes" >&6; } 29048 tst_compi_gethostbyname="yes" 29049 29050else 29051 29052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29053$as_echo "no" >&6; } 29054 tst_compi_gethostbyname="no" 29055 29056fi 29057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29058 fi 29059 # 29060 if test "$tst_compi_gethostbyname" = "yes"; then 29061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5 29062$as_echo_n "checking if gethostbyname usage allowed... " >&6; } 29063 if test "x$curl_disallow_gethostbyname" != "xyes"; then 29064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29065$as_echo "yes" >&6; } 29066 tst_allow_gethostbyname="yes" 29067 else 29068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29069$as_echo "no" >&6; } 29070 tst_allow_gethostbyname="no" 29071 fi 29072 fi 29073 # 29074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5 29075$as_echo_n "checking if gethostbyname might be used... " >&6; } 29076 if test "$tst_links_gethostbyname" = "yes" && 29077 test "$tst_proto_gethostbyname" = "yes" && 29078 test "$tst_compi_gethostbyname" = "yes" && 29079 test "$tst_allow_gethostbyname" = "yes"; then 29080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29081$as_echo "yes" >&6; } 29082 29083cat >>confdefs.h <<_ACEOF 29084#define HAVE_GETHOSTBYNAME 1 29085_ACEOF 29086 29087 ac_cv_func_gethostbyname="yes" 29088 else 29089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29090$as_echo "no" >&6; } 29091 ac_cv_func_gethostbyname="no" 29092 fi 29093 29094 29095 # 29096 tst_links_gethostbyname_r="unknown" 29097 tst_proto_gethostbyname_r="unknown" 29098 tst_compi_gethostbyname_r="unknown" 29099 tst_allow_gethostbyname_r="unknown" 29100 tst_nargs_gethostbyname_r="unknown" 29101 # 29102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5 29103$as_echo_n "checking if gethostbyname_r can be linked... " >&6; } 29104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29105/* end confdefs.h. */ 29106 29107 29108#define gethostbyname_r innocuous_gethostbyname_r 29109#ifdef __STDC__ 29110# include <limits.h> 29111#else 29112# include <assert.h> 29113#endif 29114#undef gethostbyname_r 29115#ifdef __cplusplus 29116extern "C" 29117#endif 29118char gethostbyname_r (); 29119#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r 29120choke me 29121#endif 29122 29123int main (void) 29124{ 29125return gethostbyname_r (); 29126 ; 29127 return 0; 29128} 29129 29130_ACEOF 29131if ac_fn_c_try_link "$LINENO"; then : 29132 29133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29134$as_echo "yes" >&6; } 29135 tst_links_gethostbyname_r="yes" 29136 29137else 29138 29139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29140$as_echo "no" >&6; } 29141 tst_links_gethostbyname_r="no" 29142 29143fi 29144rm -f core conftest.err conftest.$ac_objext \ 29145 conftest$ac_exeext conftest.$ac_ext 29146 # 29147 if test "$tst_links_gethostbyname_r" = "yes"; then 29148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5 29149$as_echo_n "checking if gethostbyname_r is prototyped... " >&6; } 29150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29151/* end confdefs.h. */ 29152 29153 $curl_includes_netdb 29154 29155_ACEOF 29156if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 29157 $EGREP "gethostbyname_r" >/dev/null 2>&1; then : 29158 29159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29160$as_echo "yes" >&6; } 29161 tst_proto_gethostbyname_r="yes" 29162 29163else 29164 29165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29166$as_echo "no" >&6; } 29167 tst_proto_gethostbyname_r="no" 29168 29169fi 29170rm -f conftest* 29171 29172 fi 29173 # 29174 if test "$tst_proto_gethostbyname_r" = "yes"; then 29175 if test "$tst_nargs_gethostbyname_r" = "unknown"; then 29176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5 29177$as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; } 29178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29179/* end confdefs.h. */ 29180 29181 29182 $curl_includes_netdb 29183 29184int main (void) 29185{ 29186 29187 if(0 != gethostbyname_r(0, 0, 0)) 29188 return 1; 29189 29190 ; 29191 return 0; 29192} 29193 29194_ACEOF 29195if ac_fn_c_try_compile "$LINENO"; then : 29196 29197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29198$as_echo "yes" >&6; } 29199 tst_compi_gethostbyname_r="yes" 29200 tst_nargs_gethostbyname_r="3" 29201 29202else 29203 29204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29205$as_echo "no" >&6; } 29206 tst_compi_gethostbyname_r="no" 29207 29208fi 29209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29210 fi 29211 if test "$tst_nargs_gethostbyname_r" = "unknown"; then 29212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5 29213$as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; } 29214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29215/* end confdefs.h. */ 29216 29217 29218 $curl_includes_netdb 29219 29220int main (void) 29221{ 29222 29223 if(0 != gethostbyname_r(0, 0, 0, 0, 0)) 29224 return 1; 29225 29226 ; 29227 return 0; 29228} 29229 29230_ACEOF 29231if ac_fn_c_try_compile "$LINENO"; then : 29232 29233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29234$as_echo "yes" >&6; } 29235 tst_compi_gethostbyname_r="yes" 29236 tst_nargs_gethostbyname_r="5" 29237 29238else 29239 29240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29241$as_echo "no" >&6; } 29242 tst_compi_gethostbyname_r="no" 29243 29244fi 29245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29246 fi 29247 if test "$tst_nargs_gethostbyname_r" = "unknown"; then 29248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5 29249$as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; } 29250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29251/* end confdefs.h. */ 29252 29253 29254 $curl_includes_netdb 29255 29256int main (void) 29257{ 29258 29259 if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0)) 29260 return 1; 29261 29262 ; 29263 return 0; 29264} 29265 29266_ACEOF 29267if ac_fn_c_try_compile "$LINENO"; then : 29268 29269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29270$as_echo "yes" >&6; } 29271 tst_compi_gethostbyname_r="yes" 29272 tst_nargs_gethostbyname_r="6" 29273 29274else 29275 29276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29277$as_echo "no" >&6; } 29278 tst_compi_gethostbyname_r="no" 29279 29280fi 29281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29282 fi 29283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5 29284$as_echo_n "checking if gethostbyname_r is compilable... " >&6; } 29285 if test "$tst_compi_gethostbyname_r" = "yes"; then 29286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29287$as_echo "yes" >&6; } 29288 else 29289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29290$as_echo "no" >&6; } 29291 fi 29292 fi 29293 # 29294 if test "$tst_compi_gethostbyname_r" = "yes"; then 29295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5 29296$as_echo_n "checking if gethostbyname_r usage allowed... " >&6; } 29297 if test "x$curl_disallow_gethostbyname_r" != "xyes"; then 29298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29299$as_echo "yes" >&6; } 29300 tst_allow_gethostbyname_r="yes" 29301 else 29302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29303$as_echo "no" >&6; } 29304 tst_allow_gethostbyname_r="no" 29305 fi 29306 fi 29307 # 29308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5 29309$as_echo_n "checking if gethostbyname_r might be used... " >&6; } 29310 if test "$tst_links_gethostbyname_r" = "yes" && 29311 test "$tst_proto_gethostbyname_r" = "yes" && 29312 test "$tst_compi_gethostbyname_r" = "yes" && 29313 test "$tst_allow_gethostbyname_r" = "yes"; then 29314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29315$as_echo "yes" >&6; } 29316 29317cat >>confdefs.h <<_ACEOF 29318#define HAVE_GETHOSTBYNAME_R 1 29319_ACEOF 29320 29321 # 29322 if test "$tst_nargs_gethostbyname_r" -eq "3"; then 29323 29324$as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h 29325 29326 elif test "$tst_nargs_gethostbyname_r" -eq "5"; then 29327 29328$as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h 29329 29330 elif test "$tst_nargs_gethostbyname_r" -eq "6"; then 29331 29332$as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h 29333 29334 fi 29335 # 29336 ac_cv_func_gethostbyname_r="yes" 29337 else 29338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29339$as_echo "no" >&6; } 29340 ac_cv_func_gethostbyname_r="no" 29341 fi 29342 29343 29344 # 29345 tst_links_gethostname="unknown" 29346 tst_proto_gethostname="unknown" 29347 tst_compi_gethostname="unknown" 29348 tst_allow_gethostname="unknown" 29349 # 29350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5 29351$as_echo_n "checking if gethostname can be linked... " >&6; } 29352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29353/* end confdefs.h. */ 29354 29355 29356 $curl_includes_winsock2 29357 $curl_includes_unistd 29358 29359int main (void) 29360{ 29361 29362 if(0 != gethostname(0, 0)) 29363 return 1; 29364 29365 ; 29366 return 0; 29367} 29368 29369_ACEOF 29370if ac_fn_c_try_link "$LINENO"; then : 29371 29372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29373$as_echo "yes" >&6; } 29374 tst_links_gethostname="yes" 29375 29376else 29377 29378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29379$as_echo "no" >&6; } 29380 tst_links_gethostname="no" 29381 29382fi 29383rm -f core conftest.err conftest.$ac_objext \ 29384 conftest$ac_exeext conftest.$ac_ext 29385 # 29386 if test "$tst_links_gethostname" = "yes"; then 29387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5 29388$as_echo_n "checking if gethostname is prototyped... " >&6; } 29389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29390/* end confdefs.h. */ 29391 29392 $curl_includes_winsock2 29393 $curl_includes_unistd 29394 29395_ACEOF 29396if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 29397 $EGREP "gethostname" >/dev/null 2>&1; then : 29398 29399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29400$as_echo "yes" >&6; } 29401 tst_proto_gethostname="yes" 29402 29403else 29404 29405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29406$as_echo "no" >&6; } 29407 tst_proto_gethostname="no" 29408 29409fi 29410rm -f conftest* 29411 29412 fi 29413 # 29414 if test "$tst_proto_gethostname" = "yes"; then 29415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5 29416$as_echo_n "checking if gethostname is compilable... " >&6; } 29417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29418/* end confdefs.h. */ 29419 29420 29421 $curl_includes_winsock2 29422 $curl_includes_unistd 29423 29424int main (void) 29425{ 29426 29427 if(0 != gethostname(0, 0)) 29428 return 1; 29429 29430 ; 29431 return 0; 29432} 29433 29434_ACEOF 29435if ac_fn_c_try_compile "$LINENO"; then : 29436 29437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29438$as_echo "yes" >&6; } 29439 tst_compi_gethostname="yes" 29440 29441else 29442 29443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29444$as_echo "no" >&6; } 29445 tst_compi_gethostname="no" 29446 29447fi 29448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29449 fi 29450 # 29451 if test "$tst_compi_gethostname" = "yes"; then 29452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5 29453$as_echo_n "checking if gethostname usage allowed... " >&6; } 29454 if test "x$curl_disallow_gethostname" != "xyes"; then 29455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29456$as_echo "yes" >&6; } 29457 tst_allow_gethostname="yes" 29458 else 29459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29460$as_echo "no" >&6; } 29461 tst_allow_gethostname="no" 29462 fi 29463 fi 29464 # 29465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5 29466$as_echo_n "checking if gethostname might be used... " >&6; } 29467 if test "$tst_links_gethostname" = "yes" && 29468 test "$tst_proto_gethostname" = "yes" && 29469 test "$tst_compi_gethostname" = "yes" && 29470 test "$tst_allow_gethostname" = "yes"; then 29471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29472$as_echo "yes" >&6; } 29473 29474cat >>confdefs.h <<_ACEOF 29475#define HAVE_GETHOSTNAME 1 29476_ACEOF 29477 29478 ac_cv_func_gethostname="yes" 29479 else 29480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29481$as_echo "no" >&6; } 29482 ac_cv_func_gethostname="no" 29483 fi 29484 29485 29486 # 29487 tst_links_getifaddrs="unknown" 29488 tst_proto_getifaddrs="unknown" 29489 tst_compi_getifaddrs="unknown" 29490 tst_works_getifaddrs="unknown" 29491 tst_allow_getifaddrs="unknown" 29492 # 29493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5 29494$as_echo_n "checking if getifaddrs can be linked... " >&6; } 29495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29496/* end confdefs.h. */ 29497 29498 29499#define getifaddrs innocuous_getifaddrs 29500#ifdef __STDC__ 29501# include <limits.h> 29502#else 29503# include <assert.h> 29504#endif 29505#undef getifaddrs 29506#ifdef __cplusplus 29507extern "C" 29508#endif 29509char getifaddrs (); 29510#if defined __stub_getifaddrs || defined __stub___getifaddrs 29511choke me 29512#endif 29513 29514int main (void) 29515{ 29516return getifaddrs (); 29517 ; 29518 return 0; 29519} 29520 29521_ACEOF 29522if ac_fn_c_try_link "$LINENO"; then : 29523 29524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29525$as_echo "yes" >&6; } 29526 tst_links_getifaddrs="yes" 29527 29528else 29529 29530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29531$as_echo "no" >&6; } 29532 tst_links_getifaddrs="no" 29533 29534fi 29535rm -f core conftest.err conftest.$ac_objext \ 29536 conftest$ac_exeext conftest.$ac_ext 29537 # 29538 if test "$tst_links_getifaddrs" = "yes"; then 29539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5 29540$as_echo_n "checking if getifaddrs is prototyped... " >&6; } 29541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29542/* end confdefs.h. */ 29543 29544 $curl_includes_ifaddrs 29545 29546_ACEOF 29547if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 29548 $EGREP "getifaddrs" >/dev/null 2>&1; then : 29549 29550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29551$as_echo "yes" >&6; } 29552 tst_proto_getifaddrs="yes" 29553 29554else 29555 29556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29557$as_echo "no" >&6; } 29558 tst_proto_getifaddrs="no" 29559 29560fi 29561rm -f conftest* 29562 29563 fi 29564 # 29565 if test "$tst_proto_getifaddrs" = "yes"; then 29566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5 29567$as_echo_n "checking if getifaddrs is compilable... " >&6; } 29568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29569/* end confdefs.h. */ 29570 29571 29572 $curl_includes_ifaddrs 29573 29574int main (void) 29575{ 29576 29577 if(0 != getifaddrs(0)) 29578 return 1; 29579 29580 ; 29581 return 0; 29582} 29583 29584_ACEOF 29585if ac_fn_c_try_compile "$LINENO"; then : 29586 29587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29588$as_echo "yes" >&6; } 29589 tst_compi_getifaddrs="yes" 29590 29591else 29592 29593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29594$as_echo "no" >&6; } 29595 tst_compi_getifaddrs="no" 29596 29597fi 29598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29599 fi 29600 # 29601 if test "x$cross_compiling" != "xyes" && 29602 test "$tst_compi_getifaddrs" = "yes"; then 29603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5 29604$as_echo_n "checking if getifaddrs seems to work... " >&6; } 29605 if test "$cross_compiling" = yes; then : 29606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29607$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29608as_fn_error "cannot run test program while cross compiling 29609See \`config.log' for more details." "$LINENO" 5; } 29610else 29611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29612/* end confdefs.h. */ 29613 29614 29615 $curl_includes_stdlib 29616 $curl_includes_ifaddrs 29617 29618int main (void) 29619{ 29620 29621 struct ifaddrs *ifa = 0; 29622 int error; 29623 29624 error = getifaddrs(&ifa); 29625 if(error || !ifa) 29626 exit(1); /* fail */ 29627 else 29628 exit(0); 29629 29630 ; 29631 return 0; 29632} 29633 29634_ACEOF 29635if ac_fn_c_try_run "$LINENO"; then : 29636 29637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29638$as_echo "yes" >&6; } 29639 tst_works_getifaddrs="yes" 29640 29641else 29642 29643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29644$as_echo "no" >&6; } 29645 tst_works_getifaddrs="no" 29646 29647fi 29648rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 29649 conftest.$ac_objext conftest.beam conftest.$ac_ext 29650fi 29651 29652 fi 29653 # 29654 if test "$tst_compi_getifaddrs" = "yes" && 29655 test "$tst_works_getifaddrs" != "no"; then 29656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5 29657$as_echo_n "checking if getifaddrs usage allowed... " >&6; } 29658 if test "x$curl_disallow_getifaddrs" != "xyes"; then 29659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29660$as_echo "yes" >&6; } 29661 tst_allow_getifaddrs="yes" 29662 else 29663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29664$as_echo "no" >&6; } 29665 tst_allow_getifaddrs="no" 29666 fi 29667 fi 29668 # 29669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5 29670$as_echo_n "checking if getifaddrs might be used... " >&6; } 29671 if test "$tst_links_getifaddrs" = "yes" && 29672 test "$tst_proto_getifaddrs" = "yes" && 29673 test "$tst_compi_getifaddrs" = "yes" && 29674 test "$tst_allow_getifaddrs" = "yes" && 29675 test "$tst_works_getifaddrs" != "no"; then 29676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29677$as_echo "yes" >&6; } 29678 29679cat >>confdefs.h <<_ACEOF 29680#define HAVE_GETIFADDRS 1 29681_ACEOF 29682 29683 ac_cv_func_getifaddrs="yes" 29684 else 29685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29686$as_echo "no" >&6; } 29687 ac_cv_func_getifaddrs="no" 29688 fi 29689 29690 29691 # 29692 tst_links_getservbyport_r="unknown" 29693 tst_proto_getservbyport_r="unknown" 29694 tst_compi_getservbyport_r="unknown" 29695 tst_allow_getservbyport_r="unknown" 29696 tst_nargs_getservbyport_r="unknown" 29697 # 29698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5 29699$as_echo_n "checking if getservbyport_r can be linked... " >&6; } 29700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29701/* end confdefs.h. */ 29702 29703 29704#define getservbyport_r innocuous_getservbyport_r 29705#ifdef __STDC__ 29706# include <limits.h> 29707#else 29708# include <assert.h> 29709#endif 29710#undef getservbyport_r 29711#ifdef __cplusplus 29712extern "C" 29713#endif 29714char getservbyport_r (); 29715#if defined __stub_getservbyport_r || defined __stub___getservbyport_r 29716choke me 29717#endif 29718 29719int main (void) 29720{ 29721return getservbyport_r (); 29722 ; 29723 return 0; 29724} 29725 29726_ACEOF 29727if ac_fn_c_try_link "$LINENO"; then : 29728 29729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29730$as_echo "yes" >&6; } 29731 tst_links_getservbyport_r="yes" 29732 29733else 29734 29735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29736$as_echo "no" >&6; } 29737 tst_links_getservbyport_r="no" 29738 29739fi 29740rm -f core conftest.err conftest.$ac_objext \ 29741 conftest$ac_exeext conftest.$ac_ext 29742 # 29743 if test "$tst_links_getservbyport_r" = "yes"; then 29744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5 29745$as_echo_n "checking if getservbyport_r is prototyped... " >&6; } 29746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29747/* end confdefs.h. */ 29748 29749 $curl_includes_netdb 29750 29751_ACEOF 29752if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 29753 $EGREP "getservbyport_r" >/dev/null 2>&1; then : 29754 29755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29756$as_echo "yes" >&6; } 29757 tst_proto_getservbyport_r="yes" 29758 29759else 29760 29761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29762$as_echo "no" >&6; } 29763 tst_proto_getservbyport_r="no" 29764 29765fi 29766rm -f conftest* 29767 29768 fi 29769 # 29770 if test "$tst_proto_getservbyport_r" = "yes"; then 29771 if test "$tst_nargs_getservbyport_r" = "unknown"; then 29772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5 29773$as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; } 29774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29775/* end confdefs.h. */ 29776 29777 29778 $curl_includes_netdb 29779 29780int main (void) 29781{ 29782 29783 if(0 != getservbyport_r(0, 0, 0, 0)) 29784 return 1; 29785 29786 ; 29787 return 0; 29788} 29789 29790_ACEOF 29791if ac_fn_c_try_compile "$LINENO"; then : 29792 29793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29794$as_echo "yes" >&6; } 29795 tst_compi_getservbyport_r="yes" 29796 tst_nargs_getservbyport_r="4" 29797 29798else 29799 29800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29801$as_echo "no" >&6; } 29802 tst_compi_getservbyport_r="no" 29803 29804fi 29805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29806 fi 29807 if test "$tst_nargs_getservbyport_r" = "unknown"; then 29808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5 29809$as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; } 29810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29811/* end confdefs.h. */ 29812 29813 29814 $curl_includes_netdb 29815 29816int main (void) 29817{ 29818 29819 if(0 != getservbyport_r(0, 0, 0, 0, 0)) 29820 return 1; 29821 29822 ; 29823 return 0; 29824} 29825 29826_ACEOF 29827if ac_fn_c_try_compile "$LINENO"; then : 29828 29829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29830$as_echo "yes" >&6; } 29831 tst_compi_getservbyport_r="yes" 29832 tst_nargs_getservbyport_r="5" 29833 29834else 29835 29836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29837$as_echo "no" >&6; } 29838 tst_compi_getservbyport_r="no" 29839 29840fi 29841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29842 fi 29843 if test "$tst_nargs_getservbyport_r" = "unknown"; then 29844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5 29845$as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; } 29846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29847/* end confdefs.h. */ 29848 29849 29850 $curl_includes_netdb 29851 29852int main (void) 29853{ 29854 29855 if(0 != getservbyport_r(0, 0, 0, 0, 0, 0)) 29856 return 1; 29857 29858 ; 29859 return 0; 29860} 29861 29862_ACEOF 29863if ac_fn_c_try_compile "$LINENO"; then : 29864 29865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29866$as_echo "yes" >&6; } 29867 tst_compi_getservbyport_r="yes" 29868 tst_nargs_getservbyport_r="6" 29869 29870else 29871 29872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29873$as_echo "no" >&6; } 29874 tst_compi_getservbyport_r="no" 29875 29876fi 29877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29878 fi 29879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5 29880$as_echo_n "checking if getservbyport_r is compilable... " >&6; } 29881 if test "$tst_compi_getservbyport_r" = "yes"; then 29882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29883$as_echo "yes" >&6; } 29884 else 29885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29886$as_echo "no" >&6; } 29887 fi 29888 fi 29889 # 29890 if test "$tst_compi_getservbyport_r" = "yes"; then 29891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5 29892$as_echo_n "checking if getservbyport_r usage allowed... " >&6; } 29893 if test "x$curl_disallow_getservbyport_r" != "xyes"; then 29894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29895$as_echo "yes" >&6; } 29896 tst_allow_getservbyport_r="yes" 29897 else 29898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29899$as_echo "no" >&6; } 29900 tst_allow_getservbyport_r="no" 29901 fi 29902 fi 29903 # 29904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5 29905$as_echo_n "checking if getservbyport_r might be used... " >&6; } 29906 if test "$tst_links_getservbyport_r" = "yes" && 29907 test "$tst_proto_getservbyport_r" = "yes" && 29908 test "$tst_compi_getservbyport_r" = "yes" && 29909 test "$tst_allow_getservbyport_r" = "yes"; then 29910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29911$as_echo "yes" >&6; } 29912 29913cat >>confdefs.h <<_ACEOF 29914#define HAVE_GETSERVBYPORT_R 1 29915_ACEOF 29916 29917 29918cat >>confdefs.h <<_ACEOF 29919#define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r 29920_ACEOF 29921 29922 if test "$tst_nargs_getservbyport_r" -eq "4"; then 29923 29924$as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h 29925 29926 else 29927 29928$as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h 29929 29930 fi 29931 ac_cv_func_getservbyport_r="yes" 29932 else 29933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29934$as_echo "no" >&6; } 29935 ac_cv_func_getservbyport_r="no" 29936 fi 29937 29938 29939curl_includes_time="\ 29940/* includes start */ 29941#ifdef HAVE_SYS_TYPES_H 29942# include <sys/types.h> 29943#endif 29944#ifdef HAVE_SYS_TIME_H 29945# include <sys/time.h> 29946# ifdef TIME_WITH_SYS_TIME 29947# include <time.h> 29948# endif 29949#else 29950# ifdef HAVE_TIME_H 29951# include <time.h> 29952# endif 29953#endif 29954/* includes end */" 29955 for ac_header in sys/types.h sys/time.h time.h 29956do : 29957 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 29958ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time 29959" 29960eval as_val=\$$as_ac_Header 29961 if test "x$as_val" = x""yes; then : 29962 cat >>confdefs.h <<_ACEOF 29963#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 29964_ACEOF 29965 29966fi 29967 29968done 29969 29970 29971 29972 # 29973 tst_links_gmtime_r="unknown" 29974 tst_proto_gmtime_r="unknown" 29975 tst_compi_gmtime_r="unknown" 29976 tst_works_gmtime_r="unknown" 29977 tst_allow_gmtime_r="unknown" 29978 # 29979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5 29980$as_echo_n "checking if gmtime_r can be linked... " >&6; } 29981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29982/* end confdefs.h. */ 29983 29984 29985#define gmtime_r innocuous_gmtime_r 29986#ifdef __STDC__ 29987# include <limits.h> 29988#else 29989# include <assert.h> 29990#endif 29991#undef gmtime_r 29992#ifdef __cplusplus 29993extern "C" 29994#endif 29995char gmtime_r (); 29996#if defined __stub_gmtime_r || defined __stub___gmtime_r 29997choke me 29998#endif 29999 30000int main (void) 30001{ 30002return gmtime_r (); 30003 ; 30004 return 0; 30005} 30006 30007_ACEOF 30008if ac_fn_c_try_link "$LINENO"; then : 30009 30010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30011$as_echo "yes" >&6; } 30012 tst_links_gmtime_r="yes" 30013 30014else 30015 30016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30017$as_echo "no" >&6; } 30018 tst_links_gmtime_r="no" 30019 30020fi 30021rm -f core conftest.err conftest.$ac_objext \ 30022 conftest$ac_exeext conftest.$ac_ext 30023 # 30024 if test "$tst_links_gmtime_r" = "yes"; then 30025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5 30026$as_echo_n "checking if gmtime_r is prototyped... " >&6; } 30027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30028/* end confdefs.h. */ 30029 30030 $curl_includes_time 30031 30032_ACEOF 30033if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 30034 $EGREP "gmtime_r" >/dev/null 2>&1; then : 30035 30036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30037$as_echo "yes" >&6; } 30038 tst_proto_gmtime_r="yes" 30039 30040else 30041 30042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30043$as_echo "no" >&6; } 30044 tst_proto_gmtime_r="no" 30045 30046fi 30047rm -f conftest* 30048 30049 fi 30050 # 30051 if test "$tst_proto_gmtime_r" = "yes"; then 30052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5 30053$as_echo_n "checking if gmtime_r is compilable... " >&6; } 30054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30055/* end confdefs.h. */ 30056 30057 30058 $curl_includes_time 30059 30060int main (void) 30061{ 30062 30063 if(0 != gmtime_r(0, 0)) 30064 return 1; 30065 30066 ; 30067 return 0; 30068} 30069 30070_ACEOF 30071if ac_fn_c_try_compile "$LINENO"; then : 30072 30073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30074$as_echo "yes" >&6; } 30075 tst_compi_gmtime_r="yes" 30076 30077else 30078 30079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30080$as_echo "no" >&6; } 30081 tst_compi_gmtime_r="no" 30082 30083fi 30084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30085 fi 30086 # 30087 if test "x$cross_compiling" != "xyes" && 30088 test "$tst_compi_gmtime_r" = "yes"; then 30089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5 30090$as_echo_n "checking if gmtime_r seems to work... " >&6; } 30091 if test "$cross_compiling" = yes; then : 30092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30093$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30094as_fn_error "cannot run test program while cross compiling 30095See \`config.log' for more details." "$LINENO" 5; } 30096else 30097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30098/* end confdefs.h. */ 30099 30100 30101 $curl_includes_stdlib 30102 $curl_includes_time 30103 30104int main (void) 30105{ 30106 30107 time_t local = 1170352587; 30108 struct tm *gmt = 0; 30109 struct tm result; 30110 gmt = gmtime_r(&local, &result); 30111 if(gmt) 30112 exit(0); 30113 else 30114 exit(1); 30115 30116 ; 30117 return 0; 30118} 30119 30120_ACEOF 30121if ac_fn_c_try_run "$LINENO"; then : 30122 30123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30124$as_echo "yes" >&6; } 30125 tst_works_gmtime_r="yes" 30126 30127else 30128 30129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30130$as_echo "no" >&6; } 30131 tst_works_gmtime_r="no" 30132 30133fi 30134rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 30135 conftest.$ac_objext conftest.beam conftest.$ac_ext 30136fi 30137 30138 fi 30139 # 30140 if test "$tst_compi_gmtime_r" = "yes" && 30141 test "$tst_works_gmtime_r" != "no"; then 30142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5 30143$as_echo_n "checking if gmtime_r usage allowed... " >&6; } 30144 if test "x$curl_disallow_gmtime_r" != "xyes"; then 30145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30146$as_echo "yes" >&6; } 30147 tst_allow_gmtime_r="yes" 30148 else 30149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30150$as_echo "no" >&6; } 30151 tst_allow_gmtime_r="no" 30152 fi 30153 fi 30154 # 30155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5 30156$as_echo_n "checking if gmtime_r might be used... " >&6; } 30157 if test "$tst_links_gmtime_r" = "yes" && 30158 test "$tst_proto_gmtime_r" = "yes" && 30159 test "$tst_compi_gmtime_r" = "yes" && 30160 test "$tst_allow_gmtime_r" = "yes" && 30161 test "$tst_works_gmtime_r" != "no"; then 30162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30163$as_echo "yes" >&6; } 30164 30165cat >>confdefs.h <<_ACEOF 30166#define HAVE_GMTIME_R 1 30167_ACEOF 30168 30169 ac_cv_func_gmtime_r="yes" 30170 else 30171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30172$as_echo "no" >&6; } 30173 ac_cv_func_gmtime_r="no" 30174 fi 30175 30176 30177curl_includes_arpa_inet="\ 30178/* includes start */ 30179#ifdef HAVE_SYS_TYPES_H 30180# include <sys/types.h> 30181#endif 30182#ifdef HAVE_SYS_SOCKET_H 30183# include <sys/socket.h> 30184#endif 30185#ifdef HAVE_NETINET_IN_H 30186# include <netinet/in.h> 30187#endif 30188#ifdef HAVE_ARPA_INET_H 30189# include <arpa/inet.h> 30190#endif 30191/* includes end */" 30192 for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h 30193do : 30194 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 30195ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet 30196" 30197eval as_val=\$$as_ac_Header 30198 if test "x$as_val" = x""yes; then : 30199 cat >>confdefs.h <<_ACEOF 30200#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 30201_ACEOF 30202 30203fi 30204 30205done 30206 30207 30208 30209 # 30210 tst_links_inet_ntoa_r="unknown" 30211 tst_proto_inet_ntoa_r="unknown" 30212 tst_compi_inet_ntoa_r="unknown" 30213 tst_allow_inet_ntoa_r="unknown" 30214 tst_nargs_inet_ntoa_r="unknown" 30215 # 30216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5 30217$as_echo_n "checking if inet_ntoa_r can be linked... " >&6; } 30218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30219/* end confdefs.h. */ 30220 30221 30222#define inet_ntoa_r innocuous_inet_ntoa_r 30223#ifdef __STDC__ 30224# include <limits.h> 30225#else 30226# include <assert.h> 30227#endif 30228#undef inet_ntoa_r 30229#ifdef __cplusplus 30230extern "C" 30231#endif 30232char inet_ntoa_r (); 30233#if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r 30234choke me 30235#endif 30236 30237int main (void) 30238{ 30239return inet_ntoa_r (); 30240 ; 30241 return 0; 30242} 30243 30244_ACEOF 30245if ac_fn_c_try_link "$LINENO"; then : 30246 30247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30248$as_echo "yes" >&6; } 30249 tst_links_inet_ntoa_r="yes" 30250 30251else 30252 30253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30254$as_echo "no" >&6; } 30255 tst_links_inet_ntoa_r="no" 30256 30257fi 30258rm -f core conftest.err conftest.$ac_objext \ 30259 conftest$ac_exeext conftest.$ac_ext 30260 # 30261 if test "$tst_links_inet_ntoa_r" = "yes"; then 30262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5 30263$as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; } 30264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30265/* end confdefs.h. */ 30266 30267 $curl_includes_arpa_inet 30268 30269_ACEOF 30270if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 30271 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then : 30272 30273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30274$as_echo "yes" >&6; } 30275 tst_proto_inet_ntoa_r="yes" 30276 30277else 30278 30279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30280$as_echo "no" >&6; } 30281 tst_proto_inet_ntoa_r="no" 30282 30283fi 30284rm -f conftest* 30285 30286 fi 30287 # 30288 if test "$tst_proto_inet_ntoa_r" = "yes"; then 30289 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then 30290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5 30291$as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; } 30292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30293/* end confdefs.h. */ 30294 30295 30296 $curl_includes_arpa_inet 30297 30298int main (void) 30299{ 30300 30301 struct in_addr addr; 30302 if(0 != inet_ntoa_r(addr, 0)) 30303 return 1; 30304 30305 ; 30306 return 0; 30307} 30308 30309_ACEOF 30310if ac_fn_c_try_compile "$LINENO"; then : 30311 30312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30313$as_echo "yes" >&6; } 30314 tst_compi_inet_ntoa_r="yes" 30315 tst_nargs_inet_ntoa_r="2" 30316 30317else 30318 30319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30320$as_echo "no" >&6; } 30321 tst_compi_inet_ntoa_r="no" 30322 30323fi 30324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30325 fi 30326 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then 30327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5 30328$as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; } 30329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30330/* end confdefs.h. */ 30331 30332 30333 $curl_includes_arpa_inet 30334 30335int main (void) 30336{ 30337 30338 struct in_addr addr; 30339 if(0 != inet_ntoa_r(addr, 0, 0)) 30340 return 1; 30341 30342 ; 30343 return 0; 30344} 30345 30346_ACEOF 30347if ac_fn_c_try_compile "$LINENO"; then : 30348 30349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30350$as_echo "yes" >&6; } 30351 tst_compi_inet_ntoa_r="yes" 30352 tst_nargs_inet_ntoa_r="3" 30353 30354else 30355 30356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30357$as_echo "no" >&6; } 30358 tst_compi_inet_ntoa_r="no" 30359 30360fi 30361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30362 fi 30363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5 30364$as_echo_n "checking if inet_ntoa_r is compilable... " >&6; } 30365 if test "$tst_compi_inet_ntoa_r" = "yes"; then 30366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30367$as_echo "yes" >&6; } 30368 else 30369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30370$as_echo "no" >&6; } 30371 fi 30372 fi 30373 # 30374 if test "$tst_compi_inet_ntoa_r" = "yes"; then 30375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5 30376$as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; } 30377 if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then 30378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30379$as_echo "yes" >&6; } 30380 tst_allow_inet_ntoa_r="yes" 30381 else 30382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30383$as_echo "no" >&6; } 30384 tst_allow_inet_ntoa_r="no" 30385 fi 30386 fi 30387 # 30388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5 30389$as_echo_n "checking if inet_ntoa_r might be used... " >&6; } 30390 if test "$tst_links_inet_ntoa_r" = "yes" && 30391 test "$tst_proto_inet_ntoa_r" = "yes" && 30392 test "$tst_compi_inet_ntoa_r" = "yes" && 30393 test "$tst_allow_inet_ntoa_r" = "yes"; then 30394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30395$as_echo "yes" >&6; } 30396 30397cat >>confdefs.h <<_ACEOF 30398#define HAVE_INET_NTOA_R 1 30399_ACEOF 30400 30401 # 30402 if test "$tst_nargs_inet_ntoa_r" -eq "2"; then 30403 30404$as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h 30405 30406 elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then 30407 30408$as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h 30409 30410 fi 30411 # 30412 ac_cv_func_inet_ntoa_r="yes" 30413 else 30414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30415$as_echo "no" >&6; } 30416 ac_cv_func_inet_ntoa_r="no" 30417 fi 30418 30419 30420 # 30421 tst_links_inet_ntop="unknown" 30422 tst_proto_inet_ntop="unknown" 30423 tst_compi_inet_ntop="unknown" 30424 tst_works_inet_ntop="unknown" 30425 tst_allow_inet_ntop="unknown" 30426 # 30427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5 30428$as_echo_n "checking if inet_ntop can be linked... " >&6; } 30429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30430/* end confdefs.h. */ 30431 30432 30433#define inet_ntop innocuous_inet_ntop 30434#ifdef __STDC__ 30435# include <limits.h> 30436#else 30437# include <assert.h> 30438#endif 30439#undef inet_ntop 30440#ifdef __cplusplus 30441extern "C" 30442#endif 30443char inet_ntop (); 30444#if defined __stub_inet_ntop || defined __stub___inet_ntop 30445choke me 30446#endif 30447 30448int main (void) 30449{ 30450return inet_ntop (); 30451 ; 30452 return 0; 30453} 30454 30455_ACEOF 30456if ac_fn_c_try_link "$LINENO"; then : 30457 30458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30459$as_echo "yes" >&6; } 30460 tst_links_inet_ntop="yes" 30461 30462else 30463 30464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30465$as_echo "no" >&6; } 30466 tst_links_inet_ntop="no" 30467 30468fi 30469rm -f core conftest.err conftest.$ac_objext \ 30470 conftest$ac_exeext conftest.$ac_ext 30471 # 30472 if test "$tst_links_inet_ntop" = "yes"; then 30473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5 30474$as_echo_n "checking if inet_ntop is prototyped... " >&6; } 30475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30476/* end confdefs.h. */ 30477 30478 $curl_includes_arpa_inet 30479 30480_ACEOF 30481if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 30482 $EGREP "inet_ntop" >/dev/null 2>&1; then : 30483 30484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30485$as_echo "yes" >&6; } 30486 tst_proto_inet_ntop="yes" 30487 30488else 30489 30490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30491$as_echo "no" >&6; } 30492 tst_proto_inet_ntop="no" 30493 30494fi 30495rm -f conftest* 30496 30497 fi 30498 # 30499 if test "$tst_proto_inet_ntop" = "yes"; then 30500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5 30501$as_echo_n "checking if inet_ntop is compilable... " >&6; } 30502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30503/* end confdefs.h. */ 30504 30505 30506 $curl_includes_arpa_inet 30507 30508int main (void) 30509{ 30510 30511 if(0 != inet_ntop(0, 0, 0, 0)) 30512 return 1; 30513 30514 ; 30515 return 0; 30516} 30517 30518_ACEOF 30519if ac_fn_c_try_compile "$LINENO"; then : 30520 30521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30522$as_echo "yes" >&6; } 30523 tst_compi_inet_ntop="yes" 30524 30525else 30526 30527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30528$as_echo "no" >&6; } 30529 tst_compi_inet_ntop="no" 30530 30531fi 30532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30533 fi 30534 # 30535 if test "x$cross_compiling" != "xyes" && 30536 test "$tst_compi_inet_ntop" = "yes"; then 30537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5 30538$as_echo_n "checking if inet_ntop seems to work... " >&6; } 30539 if test "$cross_compiling" = yes; then : 30540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30541$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30542as_fn_error "cannot run test program while cross compiling 30543See \`config.log' for more details." "$LINENO" 5; } 30544else 30545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30546/* end confdefs.h. */ 30547 30548 30549 $curl_includes_stdlib 30550 $curl_includes_arpa_inet 30551 $curl_includes_string 30552 30553int main (void) 30554{ 30555 30556 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")]; 30557 char ipv4res[sizeof "255.255.255.255"]; 30558 unsigned char ipv6a[26]; 30559 unsigned char ipv4a[5]; 30560 char *ipv6ptr = 0; 30561 char *ipv4ptr = 0; 30562 /* - */ 30563 ipv4res[0] = '\0'; 30564 ipv4a[0] = 0xc0; 30565 ipv4a[1] = 0xa8; 30566 ipv4a[2] = 0x64; 30567 ipv4a[3] = 0x01; 30568 ipv4a[4] = 0x01; 30569 /* - */ 30570 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res)); 30571 if(!ipv4ptr) 30572 exit(1); /* fail */ 30573 if(ipv4ptr != ipv4res) 30574 exit(1); /* fail */ 30575 if(!ipv4ptr[0]) 30576 exit(1); /* fail */ 30577 if(memcmp(ipv4res, "192.168.100.1", 13) != 0) 30578 exit(1); /* fail */ 30579 /* - */ 30580 ipv6res[0] = '\0'; 30581 memset(ipv6a, 0, sizeof(ipv6a)); 30582 ipv6a[0] = 0xfe; 30583 ipv6a[1] = 0x80; 30584 ipv6a[8] = 0x02; 30585 ipv6a[9] = 0x14; 30586 ipv6a[10] = 0x4f; 30587 ipv6a[11] = 0xff; 30588 ipv6a[12] = 0xfe; 30589 ipv6a[13] = 0x0b; 30590 ipv6a[14] = 0x76; 30591 ipv6a[15] = 0xc8; 30592 ipv6a[25] = 0x01; 30593 /* - */ 30594 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res)); 30595 if(!ipv6ptr) 30596 exit(1); /* fail */ 30597 if(ipv6ptr != ipv6res) 30598 exit(1); /* fail */ 30599 if(!ipv6ptr[0]) 30600 exit(1); /* fail */ 30601 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0) 30602 exit(1); /* fail */ 30603 /* - */ 30604 exit(0); 30605 30606 ; 30607 return 0; 30608} 30609 30610_ACEOF 30611if ac_fn_c_try_run "$LINENO"; then : 30612 30613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30614$as_echo "yes" >&6; } 30615 tst_works_inet_ntop="yes" 30616 30617else 30618 30619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30620$as_echo "no" >&6; } 30621 tst_works_inet_ntop="no" 30622 30623fi 30624rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 30625 conftest.$ac_objext conftest.beam conftest.$ac_ext 30626fi 30627 30628 fi 30629 # 30630 if test "$tst_compi_inet_ntop" = "yes" && 30631 test "$tst_works_inet_ntop" != "no"; then 30632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5 30633$as_echo_n "checking if inet_ntop usage allowed... " >&6; } 30634 if test "x$curl_disallow_inet_ntop" != "xyes"; then 30635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30636$as_echo "yes" >&6; } 30637 tst_allow_inet_ntop="yes" 30638 else 30639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30640$as_echo "no" >&6; } 30641 tst_allow_inet_ntop="no" 30642 fi 30643 fi 30644 # 30645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5 30646$as_echo_n "checking if inet_ntop might be used... " >&6; } 30647 if test "$tst_links_inet_ntop" = "yes" && 30648 test "$tst_proto_inet_ntop" = "yes" && 30649 test "$tst_compi_inet_ntop" = "yes" && 30650 test "$tst_allow_inet_ntop" = "yes" && 30651 test "$tst_works_inet_ntop" != "no"; then 30652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30653$as_echo "yes" >&6; } 30654 30655cat >>confdefs.h <<_ACEOF 30656#define HAVE_INET_NTOP 1 30657_ACEOF 30658 30659 ac_cv_func_inet_ntop="yes" 30660 else 30661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30662$as_echo "no" >&6; } 30663 ac_cv_func_inet_ntop="no" 30664 fi 30665 30666 30667 # 30668 tst_links_inet_pton="unknown" 30669 tst_proto_inet_pton="unknown" 30670 tst_compi_inet_pton="unknown" 30671 tst_works_inet_pton="unknown" 30672 tst_allow_inet_pton="unknown" 30673 # 30674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5 30675$as_echo_n "checking if inet_pton can be linked... " >&6; } 30676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30677/* end confdefs.h. */ 30678 30679 30680#define inet_pton innocuous_inet_pton 30681#ifdef __STDC__ 30682# include <limits.h> 30683#else 30684# include <assert.h> 30685#endif 30686#undef inet_pton 30687#ifdef __cplusplus 30688extern "C" 30689#endif 30690char inet_pton (); 30691#if defined __stub_inet_pton || defined __stub___inet_pton 30692choke me 30693#endif 30694 30695int main (void) 30696{ 30697return inet_pton (); 30698 ; 30699 return 0; 30700} 30701 30702_ACEOF 30703if ac_fn_c_try_link "$LINENO"; then : 30704 30705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30706$as_echo "yes" >&6; } 30707 tst_links_inet_pton="yes" 30708 30709else 30710 30711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30712$as_echo "no" >&6; } 30713 tst_links_inet_pton="no" 30714 30715fi 30716rm -f core conftest.err conftest.$ac_objext \ 30717 conftest$ac_exeext conftest.$ac_ext 30718 # 30719 if test "$tst_links_inet_pton" = "yes"; then 30720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5 30721$as_echo_n "checking if inet_pton is prototyped... " >&6; } 30722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30723/* end confdefs.h. */ 30724 30725 $curl_includes_arpa_inet 30726 30727_ACEOF 30728if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 30729 $EGREP "inet_pton" >/dev/null 2>&1; then : 30730 30731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30732$as_echo "yes" >&6; } 30733 tst_proto_inet_pton="yes" 30734 30735else 30736 30737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30738$as_echo "no" >&6; } 30739 tst_proto_inet_pton="no" 30740 30741fi 30742rm -f conftest* 30743 30744 fi 30745 # 30746 if test "$tst_proto_inet_pton" = "yes"; then 30747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5 30748$as_echo_n "checking if inet_pton is compilable... " >&6; } 30749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30750/* end confdefs.h. */ 30751 30752 30753 $curl_includes_arpa_inet 30754 30755int main (void) 30756{ 30757 30758 if(0 != inet_pton(0, 0, 0)) 30759 return 1; 30760 30761 ; 30762 return 0; 30763} 30764 30765_ACEOF 30766if ac_fn_c_try_compile "$LINENO"; then : 30767 30768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30769$as_echo "yes" >&6; } 30770 tst_compi_inet_pton="yes" 30771 30772else 30773 30774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30775$as_echo "no" >&6; } 30776 tst_compi_inet_pton="no" 30777 30778fi 30779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30780 fi 30781 # 30782 if test "x$cross_compiling" != "xyes" && 30783 test "$tst_compi_inet_pton" = "yes"; then 30784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5 30785$as_echo_n "checking if inet_pton seems to work... " >&6; } 30786 if test "$cross_compiling" = yes; then : 30787 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30788$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30789as_fn_error "cannot run test program while cross compiling 30790See \`config.log' for more details." "$LINENO" 5; } 30791else 30792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30793/* end confdefs.h. */ 30794 30795 30796 $curl_includes_stdlib 30797 $curl_includes_arpa_inet 30798 $curl_includes_string 30799 30800int main (void) 30801{ 30802 30803 unsigned char ipv6a[16+1]; 30804 unsigned char ipv4a[4+1]; 30805 const char *ipv6src = "fe80::214:4fff:fe0b:76c8"; 30806 const char *ipv4src = "192.168.100.1"; 30807 /* - */ 30808 memset(ipv4a, 1, sizeof(ipv4a)); 30809 if(1 != inet_pton(AF_INET, ipv4src, ipv4a)) 30810 exit(1); /* fail */ 30811 /* - */ 30812 if( (ipv4a[0] != 0xc0) || 30813 (ipv4a[1] != 0xa8) || 30814 (ipv4a[2] != 0x64) || 30815 (ipv4a[3] != 0x01) || 30816 (ipv4a[4] != 0x01) ) 30817 exit(1); /* fail */ 30818 /* - */ 30819 memset(ipv6a, 1, sizeof(ipv6a)); 30820 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a)) 30821 exit(1); /* fail */ 30822 /* - */ 30823 if( (ipv6a[0] != 0xfe) || 30824 (ipv6a[1] != 0x80) || 30825 (ipv6a[8] != 0x02) || 30826 (ipv6a[9] != 0x14) || 30827 (ipv6a[10] != 0x4f) || 30828 (ipv6a[11] != 0xff) || 30829 (ipv6a[12] != 0xfe) || 30830 (ipv6a[13] != 0x0b) || 30831 (ipv6a[14] != 0x76) || 30832 (ipv6a[15] != 0xc8) || 30833 (ipv6a[16] != 0x01) ) 30834 exit(1); /* fail */ 30835 /* - */ 30836 if( (ipv6a[2] != 0x0) || 30837 (ipv6a[3] != 0x0) || 30838 (ipv6a[4] != 0x0) || 30839 (ipv6a[5] != 0x0) || 30840 (ipv6a[6] != 0x0) || 30841 (ipv6a[7] != 0x0) ) 30842 exit(1); /* fail */ 30843 /* - */ 30844 exit(0); 30845 30846 ; 30847 return 0; 30848} 30849 30850_ACEOF 30851if ac_fn_c_try_run "$LINENO"; then : 30852 30853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30854$as_echo "yes" >&6; } 30855 tst_works_inet_pton="yes" 30856 30857else 30858 30859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30860$as_echo "no" >&6; } 30861 tst_works_inet_pton="no" 30862 30863fi 30864rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 30865 conftest.$ac_objext conftest.beam conftest.$ac_ext 30866fi 30867 30868 fi 30869 # 30870 if test "$tst_compi_inet_pton" = "yes" && 30871 test "$tst_works_inet_pton" != "no"; then 30872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5 30873$as_echo_n "checking if inet_pton usage allowed... " >&6; } 30874 if test "x$curl_disallow_inet_pton" != "xyes"; then 30875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30876$as_echo "yes" >&6; } 30877 tst_allow_inet_pton="yes" 30878 else 30879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30880$as_echo "no" >&6; } 30881 tst_allow_inet_pton="no" 30882 fi 30883 fi 30884 # 30885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5 30886$as_echo_n "checking if inet_pton might be used... " >&6; } 30887 if test "$tst_links_inet_pton" = "yes" && 30888 test "$tst_proto_inet_pton" = "yes" && 30889 test "$tst_compi_inet_pton" = "yes" && 30890 test "$tst_allow_inet_pton" = "yes" && 30891 test "$tst_works_inet_pton" != "no"; then 30892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30893$as_echo "yes" >&6; } 30894 30895cat >>confdefs.h <<_ACEOF 30896#define HAVE_INET_PTON 1 30897_ACEOF 30898 30899 ac_cv_func_inet_pton="yes" 30900 else 30901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30902$as_echo "no" >&6; } 30903 ac_cv_func_inet_pton="no" 30904 fi 30905 30906 30907curl_includes_stropts="\ 30908/* includes start */ 30909#ifdef HAVE_SYS_TYPES_H 30910# include <sys/types.h> 30911#endif 30912#ifdef HAVE_UNISTD_H 30913# include <unistd.h> 30914#endif 30915#ifdef HAVE_SYS_SOCKET_H 30916# include <sys/socket.h> 30917#endif 30918#ifdef HAVE_SYS_IOCTL_H 30919# include <sys/ioctl.h> 30920#endif 30921#ifdef HAVE_STROPTS_H 30922# include <stropts.h> 30923#endif 30924/* includes end */" 30925 for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h 30926do : 30927 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 30928ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stropts 30929" 30930eval as_val=\$$as_ac_Header 30931 if test "x$as_val" = x""yes; then : 30932 cat >>confdefs.h <<_ACEOF 30933#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 30934_ACEOF 30935 30936fi 30937 30938done 30939 30940 30941 30942 # 30943 tst_links_ioctl="unknown" 30944 tst_proto_ioctl="unknown" 30945 tst_compi_ioctl="unknown" 30946 tst_allow_ioctl="unknown" 30947 # 30948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5 30949$as_echo_n "checking if ioctl can be linked... " >&6; } 30950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30951/* end confdefs.h. */ 30952 30953 30954#define ioctl innocuous_ioctl 30955#ifdef __STDC__ 30956# include <limits.h> 30957#else 30958# include <assert.h> 30959#endif 30960#undef ioctl 30961#ifdef __cplusplus 30962extern "C" 30963#endif 30964char ioctl (); 30965#if defined __stub_ioctl || defined __stub___ioctl 30966choke me 30967#endif 30968 30969int main (void) 30970{ 30971return ioctl (); 30972 ; 30973 return 0; 30974} 30975 30976_ACEOF 30977if ac_fn_c_try_link "$LINENO"; then : 30978 30979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30980$as_echo "yes" >&6; } 30981 tst_links_ioctl="yes" 30982 30983else 30984 30985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30986$as_echo "no" >&6; } 30987 tst_links_ioctl="no" 30988 30989fi 30990rm -f core conftest.err conftest.$ac_objext \ 30991 conftest$ac_exeext conftest.$ac_ext 30992 # 30993 if test "$tst_links_ioctl" = "yes"; then 30994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5 30995$as_echo_n "checking if ioctl is prototyped... " >&6; } 30996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30997/* end confdefs.h. */ 30998 30999 $curl_includes_stropts 31000 31001_ACEOF 31002if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 31003 $EGREP "ioctl" >/dev/null 2>&1; then : 31004 31005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31006$as_echo "yes" >&6; } 31007 tst_proto_ioctl="yes" 31008 31009else 31010 31011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31012$as_echo "no" >&6; } 31013 tst_proto_ioctl="no" 31014 31015fi 31016rm -f conftest* 31017 31018 fi 31019 # 31020 if test "$tst_proto_ioctl" = "yes"; then 31021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5 31022$as_echo_n "checking if ioctl is compilable... " >&6; } 31023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31024/* end confdefs.h. */ 31025 31026 31027 $curl_includes_stropts 31028 31029int main (void) 31030{ 31031 31032 if(0 != ioctl(0, 0, 0)) 31033 return 1; 31034 31035 ; 31036 return 0; 31037} 31038 31039_ACEOF 31040if ac_fn_c_try_compile "$LINENO"; then : 31041 31042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31043$as_echo "yes" >&6; } 31044 tst_compi_ioctl="yes" 31045 31046else 31047 31048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31049$as_echo "no" >&6; } 31050 tst_compi_ioctl="no" 31051 31052fi 31053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31054 fi 31055 # 31056 if test "$tst_compi_ioctl" = "yes"; then 31057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5 31058$as_echo_n "checking if ioctl usage allowed... " >&6; } 31059 if test "x$curl_disallow_ioctl" != "xyes"; then 31060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31061$as_echo "yes" >&6; } 31062 tst_allow_ioctl="yes" 31063 else 31064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31065$as_echo "no" >&6; } 31066 tst_allow_ioctl="no" 31067 fi 31068 fi 31069 # 31070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5 31071$as_echo_n "checking if ioctl might be used... " >&6; } 31072 if test "$tst_links_ioctl" = "yes" && 31073 test "$tst_proto_ioctl" = "yes" && 31074 test "$tst_compi_ioctl" = "yes" && 31075 test "$tst_allow_ioctl" = "yes"; then 31076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31077$as_echo "yes" >&6; } 31078 31079cat >>confdefs.h <<_ACEOF 31080#define HAVE_IOCTL 1 31081_ACEOF 31082 31083 ac_cv_func_ioctl="yes" 31084 31085 # 31086 tst_compi_ioctl_fionbio="unknown" 31087 tst_allow_ioctl_fionbio="unknown" 31088 # 31089 if test "$ac_cv_func_ioctl" = "yes"; then 31090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5 31091$as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; } 31092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31093/* end confdefs.h. */ 31094 31095 31096 $curl_includes_stropts 31097 31098int main (void) 31099{ 31100 31101 int flags = 0; 31102 if(0 != ioctl(0, FIONBIO, &flags)) 31103 return 1; 31104 31105 ; 31106 return 0; 31107} 31108 31109_ACEOF 31110if ac_fn_c_try_compile "$LINENO"; then : 31111 31112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31113$as_echo "yes" >&6; } 31114 tst_compi_ioctl_fionbio="yes" 31115 31116else 31117 31118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31119$as_echo "no" >&6; } 31120 tst_compi_ioctl_fionbio="no" 31121 31122fi 31123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31124 fi 31125 # 31126 if test "$tst_compi_ioctl_fionbio" = "yes"; then 31127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5 31128$as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; } 31129 if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then 31130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31131$as_echo "yes" >&6; } 31132 tst_allow_ioctl_fionbio="yes" 31133 else 31134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31135$as_echo "no" >&6; } 31136 tst_allow_ioctl_fionbio="no" 31137 fi 31138 fi 31139 # 31140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5 31141$as_echo_n "checking if ioctl FIONBIO might be used... " >&6; } 31142 if test "$tst_compi_ioctl_fionbio" = "yes" && 31143 test "$tst_allow_ioctl_fionbio" = "yes"; then 31144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31145$as_echo "yes" >&6; } 31146 31147cat >>confdefs.h <<_ACEOF 31148#define HAVE_IOCTL_FIONBIO 1 31149_ACEOF 31150 31151 ac_cv_func_ioctl_fionbio="yes" 31152 else 31153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31154$as_echo "no" >&6; } 31155 ac_cv_func_ioctl_fionbio="no" 31156 fi 31157 31158 31159 # 31160 tst_compi_ioctl_siocgifaddr="unknown" 31161 tst_allow_ioctl_siocgifaddr="unknown" 31162 # 31163 if test "$ac_cv_func_ioctl" = "yes"; then 31164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5 31165$as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; } 31166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31167/* end confdefs.h. */ 31168 31169 31170 $curl_includes_stropts 31171 #include <net/if.h> 31172 31173int main (void) 31174{ 31175 31176 struct ifreq ifr; 31177 if(0 != ioctl(0, SIOCGIFADDR, &ifr)) 31178 return 1; 31179 31180 ; 31181 return 0; 31182} 31183 31184_ACEOF 31185if ac_fn_c_try_compile "$LINENO"; then : 31186 31187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31188$as_echo "yes" >&6; } 31189 tst_compi_ioctl_siocgifaddr="yes" 31190 31191else 31192 31193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31194$as_echo "no" >&6; } 31195 tst_compi_ioctl_siocgifaddr="no" 31196 31197fi 31198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31199 fi 31200 # 31201 if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then 31202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5 31203$as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; } 31204 if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then 31205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31206$as_echo "yes" >&6; } 31207 tst_allow_ioctl_siocgifaddr="yes" 31208 else 31209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31210$as_echo "no" >&6; } 31211 tst_allow_ioctl_siocgifaddr="no" 31212 fi 31213 fi 31214 # 31215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5 31216$as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; } 31217 if test "$tst_compi_ioctl_siocgifaddr" = "yes" && 31218 test "$tst_allow_ioctl_siocgifaddr" = "yes"; then 31219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31220$as_echo "yes" >&6; } 31221 31222cat >>confdefs.h <<_ACEOF 31223#define HAVE_IOCTL_SIOCGIFADDR 1 31224_ACEOF 31225 31226 ac_cv_func_ioctl_siocgifaddr="yes" 31227 else 31228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31229$as_echo "no" >&6; } 31230 ac_cv_func_ioctl_siocgifaddr="no" 31231 fi 31232 31233 else 31234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31235$as_echo "no" >&6; } 31236 ac_cv_func_ioctl="no" 31237 fi 31238 31239 31240 # 31241 tst_links_ioctlsocket="unknown" 31242 tst_proto_ioctlsocket="unknown" 31243 tst_compi_ioctlsocket="unknown" 31244 tst_allow_ioctlsocket="unknown" 31245 # 31246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5 31247$as_echo_n "checking if ioctlsocket can be linked... " >&6; } 31248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31249/* end confdefs.h. */ 31250 31251 31252 $curl_includes_winsock2 31253 31254int main (void) 31255{ 31256 31257 if(0 != ioctlsocket(0, 0, 0)) 31258 return 1; 31259 31260 ; 31261 return 0; 31262} 31263 31264_ACEOF 31265if ac_fn_c_try_link "$LINENO"; then : 31266 31267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31268$as_echo "yes" >&6; } 31269 tst_links_ioctlsocket="yes" 31270 31271else 31272 31273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31274$as_echo "no" >&6; } 31275 tst_links_ioctlsocket="no" 31276 31277fi 31278rm -f core conftest.err conftest.$ac_objext \ 31279 conftest$ac_exeext conftest.$ac_ext 31280 # 31281 if test "$tst_links_ioctlsocket" = "yes"; then 31282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5 31283$as_echo_n "checking if ioctlsocket is prototyped... " >&6; } 31284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31285/* end confdefs.h. */ 31286 31287 $curl_includes_winsock2 31288 31289_ACEOF 31290if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 31291 $EGREP "ioctlsocket" >/dev/null 2>&1; then : 31292 31293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31294$as_echo "yes" >&6; } 31295 tst_proto_ioctlsocket="yes" 31296 31297else 31298 31299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31300$as_echo "no" >&6; } 31301 tst_proto_ioctlsocket="no" 31302 31303fi 31304rm -f conftest* 31305 31306 fi 31307 # 31308 if test "$tst_proto_ioctlsocket" = "yes"; then 31309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5 31310$as_echo_n "checking if ioctlsocket is compilable... " >&6; } 31311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31312/* end confdefs.h. */ 31313 31314 31315 $curl_includes_winsock2 31316 31317int main (void) 31318{ 31319 31320 if(0 != ioctlsocket(0, 0, 0)) 31321 return 1; 31322 31323 ; 31324 return 0; 31325} 31326 31327_ACEOF 31328if ac_fn_c_try_compile "$LINENO"; then : 31329 31330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31331$as_echo "yes" >&6; } 31332 tst_compi_ioctlsocket="yes" 31333 31334else 31335 31336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31337$as_echo "no" >&6; } 31338 tst_compi_ioctlsocket="no" 31339 31340fi 31341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31342 fi 31343 # 31344 if test "$tst_compi_ioctlsocket" = "yes"; then 31345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5 31346$as_echo_n "checking if ioctlsocket usage allowed... " >&6; } 31347 if test "x$curl_disallow_ioctlsocket" != "xyes"; then 31348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31349$as_echo "yes" >&6; } 31350 tst_allow_ioctlsocket="yes" 31351 else 31352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31353$as_echo "no" >&6; } 31354 tst_allow_ioctlsocket="no" 31355 fi 31356 fi 31357 # 31358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5 31359$as_echo_n "checking if ioctlsocket might be used... " >&6; } 31360 if test "$tst_links_ioctlsocket" = "yes" && 31361 test "$tst_proto_ioctlsocket" = "yes" && 31362 test "$tst_compi_ioctlsocket" = "yes" && 31363 test "$tst_allow_ioctlsocket" = "yes"; then 31364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31365$as_echo "yes" >&6; } 31366 31367cat >>confdefs.h <<_ACEOF 31368#define HAVE_IOCTLSOCKET 1 31369_ACEOF 31370 31371 ac_cv_func_ioctlsocket="yes" 31372 31373 # 31374 tst_compi_ioctlsocket_fionbio="unknown" 31375 tst_allow_ioctlsocket_fionbio="unknown" 31376 # 31377 if test "$ac_cv_func_ioctlsocket" = "yes"; then 31378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5 31379$as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; } 31380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31381/* end confdefs.h. */ 31382 31383 31384 $curl_includes_winsock2 31385 31386int main (void) 31387{ 31388 31389 int flags = 0; 31390 if(0 != ioctlsocket(0, FIONBIO, &flags)) 31391 return 1; 31392 31393 ; 31394 return 0; 31395} 31396 31397_ACEOF 31398if ac_fn_c_try_compile "$LINENO"; then : 31399 31400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31401$as_echo "yes" >&6; } 31402 tst_compi_ioctlsocket_fionbio="yes" 31403 31404else 31405 31406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31407$as_echo "no" >&6; } 31408 tst_compi_ioctlsocket_fionbio="no" 31409 31410fi 31411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31412 fi 31413 # 31414 if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then 31415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5 31416$as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; } 31417 if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then 31418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31419$as_echo "yes" >&6; } 31420 tst_allow_ioctlsocket_fionbio="yes" 31421 else 31422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31423$as_echo "no" >&6; } 31424 tst_allow_ioctlsocket_fionbio="no" 31425 fi 31426 fi 31427 # 31428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5 31429$as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; } 31430 if test "$tst_compi_ioctlsocket_fionbio" = "yes" && 31431 test "$tst_allow_ioctlsocket_fionbio" = "yes"; then 31432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31433$as_echo "yes" >&6; } 31434 31435cat >>confdefs.h <<_ACEOF 31436#define HAVE_IOCTLSOCKET_FIONBIO 1 31437_ACEOF 31438 31439 ac_cv_func_ioctlsocket_fionbio="yes" 31440 else 31441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31442$as_echo "no" >&6; } 31443 ac_cv_func_ioctlsocket_fionbio="no" 31444 fi 31445 31446 else 31447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31448$as_echo "no" >&6; } 31449 ac_cv_func_ioctlsocket="no" 31450 fi 31451 31452 31453 # 31454 tst_links_ioctlsocket_camel="unknown" 31455 tst_proto_ioctlsocket_camel="unknown" 31456 tst_compi_ioctlsocket_camel="unknown" 31457 tst_allow_ioctlsocket_camel="unknown" 31458 # 31459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5 31460$as_echo_n "checking if IoctlSocket can be linked... " >&6; } 31461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31462/* end confdefs.h. */ 31463 31464 31465#define IoctlSocket innocuous_IoctlSocket 31466#ifdef __STDC__ 31467# include <limits.h> 31468#else 31469# include <assert.h> 31470#endif 31471#undef IoctlSocket 31472#ifdef __cplusplus 31473extern "C" 31474#endif 31475char IoctlSocket (); 31476#if defined __stub_IoctlSocket || defined __stub___IoctlSocket 31477choke me 31478#endif 31479 31480int main (void) 31481{ 31482return IoctlSocket (); 31483 ; 31484 return 0; 31485} 31486 31487_ACEOF 31488if ac_fn_c_try_link "$LINENO"; then : 31489 31490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31491$as_echo "yes" >&6; } 31492 tst_links_ioctlsocket_camel="yes" 31493 31494else 31495 31496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31497$as_echo "no" >&6; } 31498 tst_links_ioctlsocket_camel="no" 31499 31500fi 31501rm -f core conftest.err conftest.$ac_objext \ 31502 conftest$ac_exeext conftest.$ac_ext 31503 # 31504 if test "$tst_links_ioctlsocket_camel" = "yes"; then 31505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5 31506$as_echo_n "checking if IoctlSocket is prototyped... " >&6; } 31507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31508/* end confdefs.h. */ 31509 31510 $curl_includes_stropts 31511 31512_ACEOF 31513if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 31514 $EGREP "IoctlSocket" >/dev/null 2>&1; then : 31515 31516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31517$as_echo "yes" >&6; } 31518 tst_proto_ioctlsocket_camel="yes" 31519 31520else 31521 31522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31523$as_echo "no" >&6; } 31524 tst_proto_ioctlsocket_camel="no" 31525 31526fi 31527rm -f conftest* 31528 31529 fi 31530 # 31531 if test "$tst_proto_ioctlsocket_camel" = "yes"; then 31532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5 31533$as_echo_n "checking if IoctlSocket is compilable... " >&6; } 31534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31535/* end confdefs.h. */ 31536 31537 31538 $curl_includes_stropts 31539 31540int main (void) 31541{ 31542 31543 if(0 != IoctlSocket(0, 0, 0)) 31544 return 1; 31545 31546 ; 31547 return 0; 31548} 31549 31550_ACEOF 31551if ac_fn_c_try_compile "$LINENO"; then : 31552 31553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31554$as_echo "yes" >&6; } 31555 tst_compi_ioctlsocket_camel="yes" 31556 31557else 31558 31559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31560$as_echo "no" >&6; } 31561 tst_compi_ioctlsocket_camel="no" 31562 31563fi 31564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31565 fi 31566 # 31567 if test "$tst_compi_ioctlsocket_camel" = "yes"; then 31568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5 31569$as_echo_n "checking if IoctlSocket usage allowed... " >&6; } 31570 if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then 31571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31572$as_echo "yes" >&6; } 31573 tst_allow_ioctlsocket_camel="yes" 31574 else 31575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31576$as_echo "no" >&6; } 31577 tst_allow_ioctlsocket_camel="no" 31578 fi 31579 fi 31580 # 31581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5 31582$as_echo_n "checking if IoctlSocket might be used... " >&6; } 31583 if test "$tst_links_ioctlsocket_camel" = "yes" && 31584 test "$tst_proto_ioctlsocket_camel" = "yes" && 31585 test "$tst_compi_ioctlsocket_camel" = "yes" && 31586 test "$tst_allow_ioctlsocket_camel" = "yes"; then 31587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31588$as_echo "yes" >&6; } 31589 31590cat >>confdefs.h <<_ACEOF 31591#define HAVE_IOCTLSOCKET_CAMEL 1 31592_ACEOF 31593 31594 ac_cv_func_ioctlsocket_camel="yes" 31595 31596 # 31597 tst_compi_ioctlsocket_camel_fionbio="unknown" 31598 tst_allow_ioctlsocket_camel_fionbio="unknown" 31599 # 31600 if test "$ac_cv_func_ioctlsocket_camel" = "yes"; then 31601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5 31602$as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; } 31603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31604/* end confdefs.h. */ 31605 31606 31607 $curl_includes_stropts 31608 31609int main (void) 31610{ 31611 31612 long flags = 0; 31613 if(0 != ioctlsocket(0, FIONBIO, &flags)) 31614 return 1; 31615 31616 ; 31617 return 0; 31618} 31619 31620_ACEOF 31621if ac_fn_c_try_compile "$LINENO"; then : 31622 31623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31624$as_echo "yes" >&6; } 31625 tst_compi_ioctlsocket_camel_fionbio="yes" 31626 31627else 31628 31629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31630$as_echo "no" >&6; } 31631 tst_compi_ioctlsocket_camel_fionbio="no" 31632 31633fi 31634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31635 fi 31636 # 31637 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then 31638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5 31639$as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; } 31640 if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then 31641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31642$as_echo "yes" >&6; } 31643 tst_allow_ioctlsocket_camel_fionbio="yes" 31644 else 31645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31646$as_echo "no" >&6; } 31647 tst_allow_ioctlsocket_camel_fionbio="no" 31648 fi 31649 fi 31650 # 31651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5 31652$as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; } 31653 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" && 31654 test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then 31655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31656$as_echo "yes" >&6; } 31657 31658cat >>confdefs.h <<_ACEOF 31659#define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1 31660_ACEOF 31661 31662 ac_cv_func_ioctlsocket_camel_fionbio="yes" 31663 else 31664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31665$as_echo "no" >&6; } 31666 ac_cv_func_ioctlsocket_camel_fionbio="no" 31667 fi 31668 31669 else 31670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31671$as_echo "no" >&6; } 31672 ac_cv_func_ioctlsocket_camel="no" 31673 fi 31674 31675 31676 # 31677 tst_links_localtime_r="unknown" 31678 tst_proto_localtime_r="unknown" 31679 tst_compi_localtime_r="unknown" 31680 tst_works_localtime_r="unknown" 31681 tst_allow_localtime_r="unknown" 31682 # 31683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5 31684$as_echo_n "checking if localtime_r can be linked... " >&6; } 31685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31686/* end confdefs.h. */ 31687 31688 31689#define localtime_r innocuous_localtime_r 31690#ifdef __STDC__ 31691# include <limits.h> 31692#else 31693# include <assert.h> 31694#endif 31695#undef localtime_r 31696#ifdef __cplusplus 31697extern "C" 31698#endif 31699char localtime_r (); 31700#if defined __stub_localtime_r || defined __stub___localtime_r 31701choke me 31702#endif 31703 31704int main (void) 31705{ 31706return localtime_r (); 31707 ; 31708 return 0; 31709} 31710 31711_ACEOF 31712if ac_fn_c_try_link "$LINENO"; then : 31713 31714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31715$as_echo "yes" >&6; } 31716 tst_links_localtime_r="yes" 31717 31718else 31719 31720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31721$as_echo "no" >&6; } 31722 tst_links_localtime_r="no" 31723 31724fi 31725rm -f core conftest.err conftest.$ac_objext \ 31726 conftest$ac_exeext conftest.$ac_ext 31727 # 31728 if test "$tst_links_localtime_r" = "yes"; then 31729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5 31730$as_echo_n "checking if localtime_r is prototyped... " >&6; } 31731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31732/* end confdefs.h. */ 31733 31734 $curl_includes_time 31735 31736_ACEOF 31737if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 31738 $EGREP "localtime_r" >/dev/null 2>&1; then : 31739 31740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31741$as_echo "yes" >&6; } 31742 tst_proto_localtime_r="yes" 31743 31744else 31745 31746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31747$as_echo "no" >&6; } 31748 tst_proto_localtime_r="no" 31749 31750fi 31751rm -f conftest* 31752 31753 fi 31754 # 31755 if test "$tst_proto_localtime_r" = "yes"; then 31756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5 31757$as_echo_n "checking if localtime_r is compilable... " >&6; } 31758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31759/* end confdefs.h. */ 31760 31761 31762 $curl_includes_time 31763 31764int main (void) 31765{ 31766 31767 if(0 != localtime_r(0, 0)) 31768 return 1; 31769 31770 ; 31771 return 0; 31772} 31773 31774_ACEOF 31775if ac_fn_c_try_compile "$LINENO"; then : 31776 31777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31778$as_echo "yes" >&6; } 31779 tst_compi_localtime_r="yes" 31780 31781else 31782 31783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31784$as_echo "no" >&6; } 31785 tst_compi_localtime_r="no" 31786 31787fi 31788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31789 fi 31790 # 31791 if test "x$cross_compiling" != "xyes" && 31792 test "$tst_compi_localtime_r" = "yes"; then 31793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5 31794$as_echo_n "checking if localtime_r seems to work... " >&6; } 31795 if test "$cross_compiling" = yes; then : 31796 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31797$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31798as_fn_error "cannot run test program while cross compiling 31799See \`config.log' for more details." "$LINENO" 5; } 31800else 31801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31802/* end confdefs.h. */ 31803 31804 31805 $curl_includes_stdlib 31806 $curl_includes_time 31807 31808int main (void) 31809{ 31810 31811 time_t clock = 1170352587; 31812 struct tm *tmp = 0; 31813 struct tm result; 31814 tmp = localtime_r(&clock, &result); 31815 if(tmp) 31816 exit(0); 31817 else 31818 exit(1); 31819 31820 ; 31821 return 0; 31822} 31823 31824_ACEOF 31825if ac_fn_c_try_run "$LINENO"; then : 31826 31827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31828$as_echo "yes" >&6; } 31829 tst_works_localtime_r="yes" 31830 31831else 31832 31833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31834$as_echo "no" >&6; } 31835 tst_works_localtime_r="no" 31836 31837fi 31838rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 31839 conftest.$ac_objext conftest.beam conftest.$ac_ext 31840fi 31841 31842 fi 31843 # 31844 if test "$tst_compi_localtime_r" = "yes" && 31845 test "$tst_works_localtime_r" != "no"; then 31846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5 31847$as_echo_n "checking if localtime_r usage allowed... " >&6; } 31848 if test "x$curl_disallow_localtime_r" != "xyes"; then 31849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31850$as_echo "yes" >&6; } 31851 tst_allow_localtime_r="yes" 31852 else 31853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31854$as_echo "no" >&6; } 31855 tst_allow_localtime_r="no" 31856 fi 31857 fi 31858 # 31859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5 31860$as_echo_n "checking if localtime_r might be used... " >&6; } 31861 if test "$tst_links_localtime_r" = "yes" && 31862 test "$tst_proto_localtime_r" = "yes" && 31863 test "$tst_compi_localtime_r" = "yes" && 31864 test "$tst_allow_localtime_r" = "yes" && 31865 test "$tst_works_localtime_r" != "no"; then 31866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31867$as_echo "yes" >&6; } 31868 31869cat >>confdefs.h <<_ACEOF 31870#define HAVE_LOCALTIME_R 1 31871_ACEOF 31872 31873 ac_cv_func_localtime_r="yes" 31874 else 31875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31876$as_echo "no" >&6; } 31877 ac_cv_func_localtime_r="no" 31878 fi 31879 31880 31881 # 31882 tst_links_memrchr="unknown" 31883 tst_macro_memrchr="unknown" 31884 tst_proto_memrchr="unknown" 31885 tst_compi_memrchr="unknown" 31886 tst_allow_memrchr="unknown" 31887 # 31888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5 31889$as_echo_n "checking if memrchr can be linked... " >&6; } 31890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31891/* end confdefs.h. */ 31892 31893 31894#define memrchr innocuous_memrchr 31895#ifdef __STDC__ 31896# include <limits.h> 31897#else 31898# include <assert.h> 31899#endif 31900#undef memrchr 31901#ifdef __cplusplus 31902extern "C" 31903#endif 31904char memrchr (); 31905#if defined __stub_memrchr || defined __stub___memrchr 31906choke me 31907#endif 31908 31909int main (void) 31910{ 31911return memrchr (); 31912 ; 31913 return 0; 31914} 31915 31916_ACEOF 31917if ac_fn_c_try_link "$LINENO"; then : 31918 31919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31920$as_echo "yes" >&6; } 31921 tst_links_memrchr="yes" 31922 31923else 31924 31925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31926$as_echo "no" >&6; } 31927 tst_links_memrchr="no" 31928 31929fi 31930rm -f core conftest.err conftest.$ac_objext \ 31931 conftest$ac_exeext conftest.$ac_ext 31932 # 31933 if test "$tst_links_memrchr" = "no"; then 31934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5 31935$as_echo_n "checking if memrchr seems a macro... " >&6; } 31936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31937/* end confdefs.h. */ 31938 31939 31940 $curl_includes_string 31941 31942int main (void) 31943{ 31944 31945 if(0 != memrchr(0, 0, 0)) 31946 return 1; 31947 31948 ; 31949 return 0; 31950} 31951 31952_ACEOF 31953if ac_fn_c_try_link "$LINENO"; then : 31954 31955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31956$as_echo "yes" >&6; } 31957 tst_macro_memrchr="yes" 31958 31959else 31960 31961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31962$as_echo "no" >&6; } 31963 tst_macro_memrchr="no" 31964 31965fi 31966rm -f core conftest.err conftest.$ac_objext \ 31967 conftest$ac_exeext conftest.$ac_ext 31968 fi 31969 # 31970 if test "$tst_links_memrchr" = "yes"; then 31971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5 31972$as_echo_n "checking if memrchr is prototyped... " >&6; } 31973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31974/* end confdefs.h. */ 31975 31976 $curl_includes_string 31977 31978_ACEOF 31979if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 31980 $EGREP "memrchr" >/dev/null 2>&1; then : 31981 31982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31983$as_echo "yes" >&6; } 31984 tst_proto_memrchr="yes" 31985 31986else 31987 31988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31989$as_echo "no" >&6; } 31990 tst_proto_memrchr="no" 31991 31992fi 31993rm -f conftest* 31994 31995 fi 31996 # 31997 if test "$tst_proto_memrchr" = "yes" || 31998 test "$tst_macro_memrchr" = "yes"; then 31999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5 32000$as_echo_n "checking if memrchr is compilable... " >&6; } 32001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32002/* end confdefs.h. */ 32003 32004 32005 $curl_includes_string 32006 32007int main (void) 32008{ 32009 32010 if(0 != memrchr(0, 0, 0)) 32011 return 1; 32012 32013 ; 32014 return 0; 32015} 32016 32017_ACEOF 32018if ac_fn_c_try_compile "$LINENO"; then : 32019 32020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32021$as_echo "yes" >&6; } 32022 tst_compi_memrchr="yes" 32023 32024else 32025 32026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32027$as_echo "no" >&6; } 32028 tst_compi_memrchr="no" 32029 32030fi 32031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32032 fi 32033 # 32034 if test "$tst_compi_memrchr" = "yes"; then 32035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5 32036$as_echo_n "checking if memrchr usage allowed... " >&6; } 32037 if test "x$curl_disallow_memrchr" != "xyes"; then 32038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32039$as_echo "yes" >&6; } 32040 tst_allow_memrchr="yes" 32041 else 32042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32043$as_echo "no" >&6; } 32044 tst_allow_memrchr="no" 32045 fi 32046 fi 32047 # 32048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5 32049$as_echo_n "checking if memrchr might be used... " >&6; } 32050 if (test "$tst_proto_memrchr" = "yes" || 32051 test "$tst_macro_memrchr" = "yes") && 32052 test "$tst_compi_memrchr" = "yes" && 32053 test "$tst_allow_memrchr" = "yes"; then 32054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32055$as_echo "yes" >&6; } 32056 32057cat >>confdefs.h <<_ACEOF 32058#define HAVE_MEMRCHR 1 32059_ACEOF 32060 32061 ac_cv_func_memrchr="yes" 32062 else 32063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32064$as_echo "no" >&6; } 32065 ac_cv_func_memrchr="no" 32066 fi 32067 32068 32069curl_includes_poll="\ 32070/* includes start */ 32071#ifdef HAVE_SYS_TYPES_H 32072# include <sys/types.h> 32073#endif 32074#ifdef HAVE_POLL_H 32075# include <poll.h> 32076#endif 32077#ifdef HAVE_SYS_POLL_H 32078# include <sys/poll.h> 32079#endif 32080/* includes end */" 32081 for ac_header in sys/types.h poll.h sys/poll.h 32082do : 32083 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 32084ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll 32085" 32086eval as_val=\$$as_ac_Header 32087 if test "x$as_val" = x""yes; then : 32088 cat >>confdefs.h <<_ACEOF 32089#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 32090_ACEOF 32091 32092fi 32093 32094done 32095 32096 32097 32098 # 32099 tst_links_poll="unknown" 32100 tst_proto_poll="unknown" 32101 tst_compi_poll="unknown" 32102 tst_works_poll="unknown" 32103 tst_allow_poll="unknown" 32104 # 32105 case $host_os in 32106 darwin*|interix*) 32107 curl_disallow_poll="yes" 32108 ;; 32109 esac 32110 # 32111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5 32112$as_echo_n "checking if poll can be linked... " >&6; } 32113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32114/* end confdefs.h. */ 32115 32116 32117 $curl_includes_poll 32118 32119int main (void) 32120{ 32121 32122 if(0 != poll(0, 0, 0)) 32123 return 1; 32124 32125 ; 32126 return 0; 32127} 32128 32129_ACEOF 32130if ac_fn_c_try_link "$LINENO"; then : 32131 32132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32133$as_echo "yes" >&6; } 32134 tst_links_poll="yes" 32135 32136else 32137 32138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32139$as_echo "no" >&6; } 32140 tst_links_poll="no" 32141 32142fi 32143rm -f core conftest.err conftest.$ac_objext \ 32144 conftest$ac_exeext conftest.$ac_ext 32145 # 32146 if test "$tst_links_poll" = "yes"; then 32147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5 32148$as_echo_n "checking if poll is prototyped... " >&6; } 32149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32150/* end confdefs.h. */ 32151 32152 $curl_includes_poll 32153 32154_ACEOF 32155if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 32156 $EGREP "poll" >/dev/null 2>&1; then : 32157 32158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32159$as_echo "yes" >&6; } 32160 tst_proto_poll="yes" 32161 32162else 32163 32164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32165$as_echo "no" >&6; } 32166 tst_proto_poll="no" 32167 32168fi 32169rm -f conftest* 32170 32171 fi 32172 # 32173 if test "$tst_proto_poll" = "yes"; then 32174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5 32175$as_echo_n "checking if poll is compilable... " >&6; } 32176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32177/* end confdefs.h. */ 32178 32179 32180 $curl_includes_poll 32181 32182int main (void) 32183{ 32184 32185 if(0 != poll(0, 0, 0)) 32186 return 1; 32187 32188 ; 32189 return 0; 32190} 32191 32192_ACEOF 32193if ac_fn_c_try_compile "$LINENO"; then : 32194 32195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32196$as_echo "yes" >&6; } 32197 tst_compi_poll="yes" 32198 32199else 32200 32201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32202$as_echo "no" >&6; } 32203 tst_compi_poll="no" 32204 32205fi 32206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32207 fi 32208 # 32209 if test "x$cross_compiling" != "xyes" && 32210 test "$tst_compi_poll" = "yes"; then 32211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5 32212$as_echo_n "checking if poll seems to work... " >&6; } 32213 if test "$cross_compiling" = yes; then : 32214 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32215$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 32216as_fn_error "cannot run test program while cross compiling 32217See \`config.log' for more details." "$LINENO" 5; } 32218else 32219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32220/* end confdefs.h. */ 32221 32222 32223 $curl_includes_stdlib 32224 $curl_includes_poll 32225 32226int main (void) 32227{ 32228 32229 if(0 != poll(0, 0, 10)) 32230 exit(1); /* fail */ 32231 else 32232 exit(0); 32233 32234 ; 32235 return 0; 32236} 32237 32238_ACEOF 32239if ac_fn_c_try_run "$LINENO"; then : 32240 32241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32242$as_echo "yes" >&6; } 32243 tst_works_poll="yes" 32244 32245else 32246 32247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32248$as_echo "no" >&6; } 32249 tst_works_poll="no" 32250 32251fi 32252rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 32253 conftest.$ac_objext conftest.beam conftest.$ac_ext 32254fi 32255 32256 fi 32257 # 32258 if test "$tst_compi_poll" = "yes" && 32259 test "$tst_works_poll" != "no"; then 32260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5 32261$as_echo_n "checking if poll usage allowed... " >&6; } 32262 if test "x$curl_disallow_poll" != "xyes"; then 32263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32264$as_echo "yes" >&6; } 32265 tst_allow_poll="yes" 32266 else 32267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32268$as_echo "no" >&6; } 32269 tst_allow_poll="no" 32270 fi 32271 fi 32272 # 32273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5 32274$as_echo_n "checking if poll might be used... " >&6; } 32275 if test "$tst_links_poll" = "yes" && 32276 test "$tst_proto_poll" = "yes" && 32277 test "$tst_compi_poll" = "yes" && 32278 test "$tst_allow_poll" = "yes" && 32279 test "$tst_works_poll" != "no"; then 32280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32281$as_echo "yes" >&6; } 32282 32283cat >>confdefs.h <<_ACEOF 32284#define HAVE_POLL 1 32285_ACEOF 32286 32287 32288cat >>confdefs.h <<_ACEOF 32289#define HAVE_POLL_FINE 1 32290_ACEOF 32291 32292 ac_cv_func_poll="yes" 32293 else 32294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32295$as_echo "no" >&6; } 32296 ac_cv_func_poll="no" 32297 fi 32298 32299 32300 # 32301 tst_links_setsockopt="unknown" 32302 tst_proto_setsockopt="unknown" 32303 tst_compi_setsockopt="unknown" 32304 tst_allow_setsockopt="unknown" 32305 # 32306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5 32307$as_echo_n "checking if setsockopt can be linked... " >&6; } 32308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32309/* end confdefs.h. */ 32310 32311 32312 $curl_includes_winsock2 32313 $curl_includes_sys_socket 32314 32315int main (void) 32316{ 32317 32318 if(0 != setsockopt(0, 0, 0, 0, 0)) 32319 return 1; 32320 32321 ; 32322 return 0; 32323} 32324 32325_ACEOF 32326if ac_fn_c_try_link "$LINENO"; then : 32327 32328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32329$as_echo "yes" >&6; } 32330 tst_links_setsockopt="yes" 32331 32332else 32333 32334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32335$as_echo "no" >&6; } 32336 tst_links_setsockopt="no" 32337 32338fi 32339rm -f core conftest.err conftest.$ac_objext \ 32340 conftest$ac_exeext conftest.$ac_ext 32341 # 32342 if test "$tst_links_setsockopt" = "yes"; then 32343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5 32344$as_echo_n "checking if setsockopt is prototyped... " >&6; } 32345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32346/* end confdefs.h. */ 32347 32348 $curl_includes_winsock2 32349 $curl_includes_sys_socket 32350 32351_ACEOF 32352if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 32353 $EGREP "setsockopt" >/dev/null 2>&1; then : 32354 32355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32356$as_echo "yes" >&6; } 32357 tst_proto_setsockopt="yes" 32358 32359else 32360 32361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32362$as_echo "no" >&6; } 32363 tst_proto_setsockopt="no" 32364 32365fi 32366rm -f conftest* 32367 32368 fi 32369 # 32370 if test "$tst_proto_setsockopt" = "yes"; then 32371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5 32372$as_echo_n "checking if setsockopt is compilable... " >&6; } 32373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32374/* end confdefs.h. */ 32375 32376 32377 $curl_includes_winsock2 32378 $curl_includes_sys_socket 32379 32380int main (void) 32381{ 32382 32383 if(0 != setsockopt(0, 0, 0, 0, 0)) 32384 return 1; 32385 32386 ; 32387 return 0; 32388} 32389 32390_ACEOF 32391if ac_fn_c_try_compile "$LINENO"; then : 32392 32393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32394$as_echo "yes" >&6; } 32395 tst_compi_setsockopt="yes" 32396 32397else 32398 32399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32400$as_echo "no" >&6; } 32401 tst_compi_setsockopt="no" 32402 32403fi 32404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32405 fi 32406 # 32407 if test "$tst_compi_setsockopt" = "yes"; then 32408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5 32409$as_echo_n "checking if setsockopt usage allowed... " >&6; } 32410 if test "x$curl_disallow_setsockopt" != "xyes"; then 32411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32412$as_echo "yes" >&6; } 32413 tst_allow_setsockopt="yes" 32414 else 32415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32416$as_echo "no" >&6; } 32417 tst_allow_setsockopt="no" 32418 fi 32419 fi 32420 # 32421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5 32422$as_echo_n "checking if setsockopt might be used... " >&6; } 32423 if test "$tst_links_setsockopt" = "yes" && 32424 test "$tst_proto_setsockopt" = "yes" && 32425 test "$tst_compi_setsockopt" = "yes" && 32426 test "$tst_allow_setsockopt" = "yes"; then 32427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32428$as_echo "yes" >&6; } 32429 32430cat >>confdefs.h <<_ACEOF 32431#define HAVE_SETSOCKOPT 1 32432_ACEOF 32433 32434 ac_cv_func_setsockopt="yes" 32435 32436 # 32437 tst_compi_setsockopt_so_nonblock="unknown" 32438 tst_allow_setsockopt_so_nonblock="unknown" 32439 # 32440 if test "$ac_cv_func_setsockopt" = "yes"; then 32441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5 32442$as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; } 32443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32444/* end confdefs.h. */ 32445 32446 32447 $curl_includes_winsock2 32448 $curl_includes_sys_socket 32449 32450int main (void) 32451{ 32452 32453 if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0)) 32454 return 1; 32455 32456 ; 32457 return 0; 32458} 32459 32460_ACEOF 32461if ac_fn_c_try_compile "$LINENO"; then : 32462 32463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32464$as_echo "yes" >&6; } 32465 tst_compi_setsockopt_so_nonblock="yes" 32466 32467else 32468 32469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32470$as_echo "no" >&6; } 32471 tst_compi_setsockopt_so_nonblock="no" 32472 32473fi 32474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32475 fi 32476 # 32477 if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then 32478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5 32479$as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; } 32480 if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then 32481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32482$as_echo "yes" >&6; } 32483 tst_allow_setsockopt_so_nonblock="yes" 32484 else 32485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32486$as_echo "no" >&6; } 32487 tst_allow_setsockopt_so_nonblock="no" 32488 fi 32489 fi 32490 # 32491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5 32492$as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; } 32493 if test "$tst_compi_setsockopt_so_nonblock" = "yes" && 32494 test "$tst_allow_setsockopt_so_nonblock" = "yes"; then 32495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32496$as_echo "yes" >&6; } 32497 32498cat >>confdefs.h <<_ACEOF 32499#define HAVE_SETSOCKOPT_SO_NONBLOCK 1 32500_ACEOF 32501 32502 ac_cv_func_setsockopt_so_nonblock="yes" 32503 else 32504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32505$as_echo "no" >&6; } 32506 ac_cv_func_setsockopt_so_nonblock="no" 32507 fi 32508 32509 else 32510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32511$as_echo "no" >&6; } 32512 ac_cv_func_setsockopt="no" 32513 fi 32514 32515 32516curl_includes_signal="\ 32517/* includes start */ 32518#ifdef HAVE_SYS_TYPES_H 32519# include <sys/types.h> 32520#endif 32521#ifdef HAVE_SIGNAL_H 32522# include <signal.h> 32523#endif 32524/* includes end */" 32525 for ac_header in sys/types.h signal.h 32526do : 32527 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 32528ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal 32529" 32530eval as_val=\$$as_ac_Header 32531 if test "x$as_val" = x""yes; then : 32532 cat >>confdefs.h <<_ACEOF 32533#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 32534_ACEOF 32535 32536fi 32537 32538done 32539 32540 32541 32542 # 32543 tst_links_sigaction="unknown" 32544 tst_proto_sigaction="unknown" 32545 tst_compi_sigaction="unknown" 32546 tst_allow_sigaction="unknown" 32547 # 32548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5 32549$as_echo_n "checking if sigaction can be linked... " >&6; } 32550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32551/* end confdefs.h. */ 32552 32553 32554#define sigaction innocuous_sigaction 32555#ifdef __STDC__ 32556# include <limits.h> 32557#else 32558# include <assert.h> 32559#endif 32560#undef sigaction 32561#ifdef __cplusplus 32562extern "C" 32563#endif 32564char sigaction (); 32565#if defined __stub_sigaction || defined __stub___sigaction 32566choke me 32567#endif 32568 32569int main (void) 32570{ 32571return sigaction (); 32572 ; 32573 return 0; 32574} 32575 32576_ACEOF 32577if ac_fn_c_try_link "$LINENO"; then : 32578 32579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32580$as_echo "yes" >&6; } 32581 tst_links_sigaction="yes" 32582 32583else 32584 32585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32586$as_echo "no" >&6; } 32587 tst_links_sigaction="no" 32588 32589fi 32590rm -f core conftest.err conftest.$ac_objext \ 32591 conftest$ac_exeext conftest.$ac_ext 32592 # 32593 if test "$tst_links_sigaction" = "yes"; then 32594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5 32595$as_echo_n "checking if sigaction is prototyped... " >&6; } 32596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32597/* end confdefs.h. */ 32598 32599 $curl_includes_signal 32600 32601_ACEOF 32602if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 32603 $EGREP "sigaction" >/dev/null 2>&1; then : 32604 32605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32606$as_echo "yes" >&6; } 32607 tst_proto_sigaction="yes" 32608 32609else 32610 32611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32612$as_echo "no" >&6; } 32613 tst_proto_sigaction="no" 32614 32615fi 32616rm -f conftest* 32617 32618 fi 32619 # 32620 if test "$tst_proto_sigaction" = "yes"; then 32621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5 32622$as_echo_n "checking if sigaction is compilable... " >&6; } 32623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32624/* end confdefs.h. */ 32625 32626 32627 $curl_includes_signal 32628 32629int main (void) 32630{ 32631 32632 if(0 != sigaction(0, 0, 0)) 32633 return 1; 32634 32635 ; 32636 return 0; 32637} 32638 32639_ACEOF 32640if ac_fn_c_try_compile "$LINENO"; then : 32641 32642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32643$as_echo "yes" >&6; } 32644 tst_compi_sigaction="yes" 32645 32646else 32647 32648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32649$as_echo "no" >&6; } 32650 tst_compi_sigaction="no" 32651 32652fi 32653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32654 fi 32655 # 32656 if test "$tst_compi_sigaction" = "yes"; then 32657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5 32658$as_echo_n "checking if sigaction usage allowed... " >&6; } 32659 if test "x$curl_disallow_sigaction" != "xyes"; then 32660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32661$as_echo "yes" >&6; } 32662 tst_allow_sigaction="yes" 32663 else 32664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32665$as_echo "no" >&6; } 32666 tst_allow_sigaction="no" 32667 fi 32668 fi 32669 # 32670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5 32671$as_echo_n "checking if sigaction might be used... " >&6; } 32672 if test "$tst_links_sigaction" = "yes" && 32673 test "$tst_proto_sigaction" = "yes" && 32674 test "$tst_compi_sigaction" = "yes" && 32675 test "$tst_allow_sigaction" = "yes"; then 32676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32677$as_echo "yes" >&6; } 32678 32679cat >>confdefs.h <<_ACEOF 32680#define HAVE_SIGACTION 1 32681_ACEOF 32682 32683 ac_cv_func_sigaction="yes" 32684 else 32685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32686$as_echo "no" >&6; } 32687 ac_cv_func_sigaction="no" 32688 fi 32689 32690 32691 # 32692 tst_links_siginterrupt="unknown" 32693 tst_proto_siginterrupt="unknown" 32694 tst_compi_siginterrupt="unknown" 32695 tst_allow_siginterrupt="unknown" 32696 # 32697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5 32698$as_echo_n "checking if siginterrupt can be linked... " >&6; } 32699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32700/* end confdefs.h. */ 32701 32702 32703#define siginterrupt innocuous_siginterrupt 32704#ifdef __STDC__ 32705# include <limits.h> 32706#else 32707# include <assert.h> 32708#endif 32709#undef siginterrupt 32710#ifdef __cplusplus 32711extern "C" 32712#endif 32713char siginterrupt (); 32714#if defined __stub_siginterrupt || defined __stub___siginterrupt 32715choke me 32716#endif 32717 32718int main (void) 32719{ 32720return siginterrupt (); 32721 ; 32722 return 0; 32723} 32724 32725_ACEOF 32726if ac_fn_c_try_link "$LINENO"; then : 32727 32728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32729$as_echo "yes" >&6; } 32730 tst_links_siginterrupt="yes" 32731 32732else 32733 32734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32735$as_echo "no" >&6; } 32736 tst_links_siginterrupt="no" 32737 32738fi 32739rm -f core conftest.err conftest.$ac_objext \ 32740 conftest$ac_exeext conftest.$ac_ext 32741 # 32742 if test "$tst_links_siginterrupt" = "yes"; then 32743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5 32744$as_echo_n "checking if siginterrupt is prototyped... " >&6; } 32745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32746/* end confdefs.h. */ 32747 32748 $curl_includes_signal 32749 32750_ACEOF 32751if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 32752 $EGREP "siginterrupt" >/dev/null 2>&1; then : 32753 32754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32755$as_echo "yes" >&6; } 32756 tst_proto_siginterrupt="yes" 32757 32758else 32759 32760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32761$as_echo "no" >&6; } 32762 tst_proto_siginterrupt="no" 32763 32764fi 32765rm -f conftest* 32766 32767 fi 32768 # 32769 if test "$tst_proto_siginterrupt" = "yes"; then 32770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5 32771$as_echo_n "checking if siginterrupt is compilable... " >&6; } 32772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32773/* end confdefs.h. */ 32774 32775 32776 $curl_includes_signal 32777 32778int main (void) 32779{ 32780 32781 if(0 != siginterrupt(0, 0)) 32782 return 1; 32783 32784 ; 32785 return 0; 32786} 32787 32788_ACEOF 32789if ac_fn_c_try_compile "$LINENO"; then : 32790 32791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32792$as_echo "yes" >&6; } 32793 tst_compi_siginterrupt="yes" 32794 32795else 32796 32797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32798$as_echo "no" >&6; } 32799 tst_compi_siginterrupt="no" 32800 32801fi 32802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32803 fi 32804 # 32805 if test "$tst_compi_siginterrupt" = "yes"; then 32806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5 32807$as_echo_n "checking if siginterrupt usage allowed... " >&6; } 32808 if test "x$curl_disallow_siginterrupt" != "xyes"; then 32809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32810$as_echo "yes" >&6; } 32811 tst_allow_siginterrupt="yes" 32812 else 32813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32814$as_echo "no" >&6; } 32815 tst_allow_siginterrupt="no" 32816 fi 32817 fi 32818 # 32819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5 32820$as_echo_n "checking if siginterrupt might be used... " >&6; } 32821 if test "$tst_links_siginterrupt" = "yes" && 32822 test "$tst_proto_siginterrupt" = "yes" && 32823 test "$tst_compi_siginterrupt" = "yes" && 32824 test "$tst_allow_siginterrupt" = "yes"; then 32825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32826$as_echo "yes" >&6; } 32827 32828cat >>confdefs.h <<_ACEOF 32829#define HAVE_SIGINTERRUPT 1 32830_ACEOF 32831 32832 ac_cv_func_siginterrupt="yes" 32833 else 32834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32835$as_echo "no" >&6; } 32836 ac_cv_func_siginterrupt="no" 32837 fi 32838 32839 32840 # 32841 tst_links_signal="unknown" 32842 tst_proto_signal="unknown" 32843 tst_compi_signal="unknown" 32844 tst_allow_signal="unknown" 32845 # 32846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5 32847$as_echo_n "checking if signal can be linked... " >&6; } 32848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32849/* end confdefs.h. */ 32850 32851 32852#define signal innocuous_signal 32853#ifdef __STDC__ 32854# include <limits.h> 32855#else 32856# include <assert.h> 32857#endif 32858#undef signal 32859#ifdef __cplusplus 32860extern "C" 32861#endif 32862char signal (); 32863#if defined __stub_signal || defined __stub___signal 32864choke me 32865#endif 32866 32867int main (void) 32868{ 32869return signal (); 32870 ; 32871 return 0; 32872} 32873 32874_ACEOF 32875if ac_fn_c_try_link "$LINENO"; then : 32876 32877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32878$as_echo "yes" >&6; } 32879 tst_links_signal="yes" 32880 32881else 32882 32883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32884$as_echo "no" >&6; } 32885 tst_links_signal="no" 32886 32887fi 32888rm -f core conftest.err conftest.$ac_objext \ 32889 conftest$ac_exeext conftest.$ac_ext 32890 # 32891 if test "$tst_links_signal" = "yes"; then 32892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5 32893$as_echo_n "checking if signal is prototyped... " >&6; } 32894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32895/* end confdefs.h. */ 32896 32897 $curl_includes_signal 32898 32899_ACEOF 32900if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 32901 $EGREP "signal" >/dev/null 2>&1; then : 32902 32903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32904$as_echo "yes" >&6; } 32905 tst_proto_signal="yes" 32906 32907else 32908 32909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32910$as_echo "no" >&6; } 32911 tst_proto_signal="no" 32912 32913fi 32914rm -f conftest* 32915 32916 fi 32917 # 32918 if test "$tst_proto_signal" = "yes"; then 32919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5 32920$as_echo_n "checking if signal is compilable... " >&6; } 32921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32922/* end confdefs.h. */ 32923 32924 32925 $curl_includes_signal 32926 32927int main (void) 32928{ 32929 32930 if(0 != signal(0, 0)) 32931 return 1; 32932 32933 ; 32934 return 0; 32935} 32936 32937_ACEOF 32938if ac_fn_c_try_compile "$LINENO"; then : 32939 32940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32941$as_echo "yes" >&6; } 32942 tst_compi_signal="yes" 32943 32944else 32945 32946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32947$as_echo "no" >&6; } 32948 tst_compi_signal="no" 32949 32950fi 32951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32952 fi 32953 # 32954 if test "$tst_compi_signal" = "yes"; then 32955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5 32956$as_echo_n "checking if signal usage allowed... " >&6; } 32957 if test "x$curl_disallow_signal" != "xyes"; then 32958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32959$as_echo "yes" >&6; } 32960 tst_allow_signal="yes" 32961 else 32962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32963$as_echo "no" >&6; } 32964 tst_allow_signal="no" 32965 fi 32966 fi 32967 # 32968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5 32969$as_echo_n "checking if signal might be used... " >&6; } 32970 if test "$tst_links_signal" = "yes" && 32971 test "$tst_proto_signal" = "yes" && 32972 test "$tst_compi_signal" = "yes" && 32973 test "$tst_allow_signal" = "yes"; then 32974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32975$as_echo "yes" >&6; } 32976 32977cat >>confdefs.h <<_ACEOF 32978#define HAVE_SIGNAL 1 32979_ACEOF 32980 32981 ac_cv_func_signal="yes" 32982 else 32983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32984$as_echo "no" >&6; } 32985 ac_cv_func_signal="no" 32986 fi 32987 32988 32989curl_includes_setjmp="\ 32990/* includes start */ 32991#ifdef HAVE_SYS_TYPES_H 32992# include <sys/types.h> 32993#endif 32994#ifdef HAVE_SETJMP_H 32995# include <setjmp.h> 32996#endif 32997/* includes end */" 32998 for ac_header in sys/types.h setjmp.h 32999do : 33000 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 33001ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp 33002" 33003eval as_val=\$$as_ac_Header 33004 if test "x$as_val" = x""yes; then : 33005 cat >>confdefs.h <<_ACEOF 33006#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 33007_ACEOF 33008 33009fi 33010 33011done 33012 33013 33014 33015 # 33016 tst_links_sigsetjmp="unknown" 33017 tst_macro_sigsetjmp="unknown" 33018 tst_proto_sigsetjmp="unknown" 33019 tst_compi_sigsetjmp="unknown" 33020 tst_allow_sigsetjmp="unknown" 33021 # 33022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5 33023$as_echo_n "checking if sigsetjmp can be linked... " >&6; } 33024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33025/* end confdefs.h. */ 33026 33027 33028#define sigsetjmp innocuous_sigsetjmp 33029#ifdef __STDC__ 33030# include <limits.h> 33031#else 33032# include <assert.h> 33033#endif 33034#undef sigsetjmp 33035#ifdef __cplusplus 33036extern "C" 33037#endif 33038char sigsetjmp (); 33039#if defined __stub_sigsetjmp || defined __stub___sigsetjmp 33040choke me 33041#endif 33042 33043int main (void) 33044{ 33045return sigsetjmp (); 33046 ; 33047 return 0; 33048} 33049 33050_ACEOF 33051if ac_fn_c_try_link "$LINENO"; then : 33052 33053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33054$as_echo "yes" >&6; } 33055 tst_links_sigsetjmp="yes" 33056 33057else 33058 33059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33060$as_echo "no" >&6; } 33061 tst_links_sigsetjmp="no" 33062 33063fi 33064rm -f core conftest.err conftest.$ac_objext \ 33065 conftest$ac_exeext conftest.$ac_ext 33066 # 33067 if test "$tst_links_sigsetjmp" = "no"; then 33068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5 33069$as_echo_n "checking if sigsetjmp seems a macro... " >&6; } 33070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33071/* end confdefs.h. */ 33072 33073 33074 $curl_includes_setjmp 33075 33076int main (void) 33077{ 33078 33079 sigjmp_buf env; 33080 if(0 != sigsetjmp(env, 0)) 33081 return 1; 33082 33083 ; 33084 return 0; 33085} 33086 33087_ACEOF 33088if ac_fn_c_try_link "$LINENO"; then : 33089 33090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33091$as_echo "yes" >&6; } 33092 tst_macro_sigsetjmp="yes" 33093 33094else 33095 33096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33097$as_echo "no" >&6; } 33098 tst_macro_sigsetjmp="no" 33099 33100fi 33101rm -f core conftest.err conftest.$ac_objext \ 33102 conftest$ac_exeext conftest.$ac_ext 33103 fi 33104 # 33105 if test "$tst_links_sigsetjmp" = "yes"; then 33106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5 33107$as_echo_n "checking if sigsetjmp is prototyped... " >&6; } 33108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33109/* end confdefs.h. */ 33110 33111 $curl_includes_setjmp 33112 33113_ACEOF 33114if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 33115 $EGREP "sigsetjmp" >/dev/null 2>&1; then : 33116 33117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33118$as_echo "yes" >&6; } 33119 tst_proto_sigsetjmp="yes" 33120 33121else 33122 33123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33124$as_echo "no" >&6; } 33125 tst_proto_sigsetjmp="no" 33126 33127fi 33128rm -f conftest* 33129 33130 fi 33131 # 33132 if test "$tst_proto_sigsetjmp" = "yes" || 33133 test "$tst_macro_sigsetjmp" = "yes"; then 33134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5 33135$as_echo_n "checking if sigsetjmp is compilable... " >&6; } 33136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33137/* end confdefs.h. */ 33138 33139 33140 $curl_includes_setjmp 33141 33142int main (void) 33143{ 33144 33145 sigjmp_buf env; 33146 if(0 != sigsetjmp(env, 0)) 33147 return 1; 33148 33149 ; 33150 return 0; 33151} 33152 33153_ACEOF 33154if ac_fn_c_try_compile "$LINENO"; then : 33155 33156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33157$as_echo "yes" >&6; } 33158 tst_compi_sigsetjmp="yes" 33159 33160else 33161 33162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33163$as_echo "no" >&6; } 33164 tst_compi_sigsetjmp="no" 33165 33166fi 33167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33168 fi 33169 # 33170 if test "$tst_compi_sigsetjmp" = "yes"; then 33171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5 33172$as_echo_n "checking if sigsetjmp usage allowed... " >&6; } 33173 if test "x$curl_disallow_sigsetjmp" != "xyes"; then 33174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33175$as_echo "yes" >&6; } 33176 tst_allow_sigsetjmp="yes" 33177 else 33178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33179$as_echo "no" >&6; } 33180 tst_allow_sigsetjmp="no" 33181 fi 33182 fi 33183 # 33184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5 33185$as_echo_n "checking if sigsetjmp might be used... " >&6; } 33186 if (test "$tst_proto_sigsetjmp" = "yes" || 33187 test "$tst_macro_sigsetjmp" = "yes") && 33188 test "$tst_compi_sigsetjmp" = "yes" && 33189 test "$tst_allow_sigsetjmp" = "yes"; then 33190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33191$as_echo "yes" >&6; } 33192 33193cat >>confdefs.h <<_ACEOF 33194#define HAVE_SIGSETJMP 1 33195_ACEOF 33196 33197 ac_cv_func_sigsetjmp="yes" 33198 else 33199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33200$as_echo "no" >&6; } 33201 ac_cv_func_sigsetjmp="no" 33202 fi 33203 33204 33205 # 33206 tst_links_socket="unknown" 33207 tst_proto_socket="unknown" 33208 tst_compi_socket="unknown" 33209 tst_allow_socket="unknown" 33210 # 33211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5 33212$as_echo_n "checking if socket can be linked... " >&6; } 33213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33214/* end confdefs.h. */ 33215 33216 33217 $curl_includes_winsock2 33218 $curl_includes_sys_socket 33219 $curl_includes_socket 33220 33221int main (void) 33222{ 33223 33224 if(0 != socket(0, 0, 0)) 33225 return 1; 33226 33227 ; 33228 return 0; 33229} 33230 33231_ACEOF 33232if ac_fn_c_try_link "$LINENO"; then : 33233 33234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33235$as_echo "yes" >&6; } 33236 tst_links_socket="yes" 33237 33238else 33239 33240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33241$as_echo "no" >&6; } 33242 tst_links_socket="no" 33243 33244fi 33245rm -f core conftest.err conftest.$ac_objext \ 33246 conftest$ac_exeext conftest.$ac_ext 33247 # 33248 if test "$tst_links_socket" = "yes"; then 33249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5 33250$as_echo_n "checking if socket is prototyped... " >&6; } 33251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33252/* end confdefs.h. */ 33253 33254 $curl_includes_winsock2 33255 $curl_includes_sys_socket 33256 $curl_includes_socket 33257 33258_ACEOF 33259if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 33260 $EGREP "socket" >/dev/null 2>&1; then : 33261 33262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33263$as_echo "yes" >&6; } 33264 tst_proto_socket="yes" 33265 33266else 33267 33268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33269$as_echo "no" >&6; } 33270 tst_proto_socket="no" 33271 33272fi 33273rm -f conftest* 33274 33275 fi 33276 # 33277 if test "$tst_proto_socket" = "yes"; then 33278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5 33279$as_echo_n "checking if socket is compilable... " >&6; } 33280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33281/* end confdefs.h. */ 33282 33283 33284 $curl_includes_winsock2 33285 $curl_includes_sys_socket 33286 $curl_includes_socket 33287 33288int main (void) 33289{ 33290 33291 if(0 != socket(0, 0, 0)) 33292 return 1; 33293 33294 ; 33295 return 0; 33296} 33297 33298_ACEOF 33299if ac_fn_c_try_compile "$LINENO"; then : 33300 33301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33302$as_echo "yes" >&6; } 33303 tst_compi_socket="yes" 33304 33305else 33306 33307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33308$as_echo "no" >&6; } 33309 tst_compi_socket="no" 33310 33311fi 33312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33313 fi 33314 # 33315 if test "$tst_compi_socket" = "yes"; then 33316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5 33317$as_echo_n "checking if socket usage allowed... " >&6; } 33318 if test "x$curl_disallow_socket" != "xyes"; then 33319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33320$as_echo "yes" >&6; } 33321 tst_allow_socket="yes" 33322 else 33323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33324$as_echo "no" >&6; } 33325 tst_allow_socket="no" 33326 fi 33327 fi 33328 # 33329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5 33330$as_echo_n "checking if socket might be used... " >&6; } 33331 if test "$tst_links_socket" = "yes" && 33332 test "$tst_proto_socket" = "yes" && 33333 test "$tst_compi_socket" = "yes" && 33334 test "$tst_allow_socket" = "yes"; then 33335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33336$as_echo "yes" >&6; } 33337 33338cat >>confdefs.h <<_ACEOF 33339#define HAVE_SOCKET 1 33340_ACEOF 33341 33342 ac_cv_func_socket="yes" 33343 else 33344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33345$as_echo "no" >&6; } 33346 ac_cv_func_socket="no" 33347 fi 33348 33349 33350 # 33351 tst_links_socketpair="unknown" 33352 tst_proto_socketpair="unknown" 33353 tst_compi_socketpair="unknown" 33354 tst_allow_socketpair="unknown" 33355 # 33356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5 33357$as_echo_n "checking if socketpair can be linked... " >&6; } 33358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33359/* end confdefs.h. */ 33360 33361 33362#define socketpair innocuous_socketpair 33363#ifdef __STDC__ 33364# include <limits.h> 33365#else 33366# include <assert.h> 33367#endif 33368#undef socketpair 33369#ifdef __cplusplus 33370extern "C" 33371#endif 33372char socketpair (); 33373#if defined __stub_socketpair || defined __stub___socketpair 33374choke me 33375#endif 33376 33377int main (void) 33378{ 33379return socketpair (); 33380 ; 33381 return 0; 33382} 33383 33384_ACEOF 33385if ac_fn_c_try_link "$LINENO"; then : 33386 33387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33388$as_echo "yes" >&6; } 33389 tst_links_socketpair="yes" 33390 33391else 33392 33393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33394$as_echo "no" >&6; } 33395 tst_links_socketpair="no" 33396 33397fi 33398rm -f core conftest.err conftest.$ac_objext \ 33399 conftest$ac_exeext conftest.$ac_ext 33400 # 33401 if test "$tst_links_socketpair" = "yes"; then 33402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5 33403$as_echo_n "checking if socketpair is prototyped... " >&6; } 33404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33405/* end confdefs.h. */ 33406 33407 $curl_includes_sys_socket 33408 $curl_includes_socket 33409 33410_ACEOF 33411if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 33412 $EGREP "socketpair" >/dev/null 2>&1; then : 33413 33414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33415$as_echo "yes" >&6; } 33416 tst_proto_socketpair="yes" 33417 33418else 33419 33420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33421$as_echo "no" >&6; } 33422 tst_proto_socketpair="no" 33423 33424fi 33425rm -f conftest* 33426 33427 fi 33428 # 33429 if test "$tst_proto_socketpair" = "yes"; then 33430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5 33431$as_echo_n "checking if socketpair is compilable... " >&6; } 33432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33433/* end confdefs.h. */ 33434 33435 33436 $curl_includes_sys_socket 33437 $curl_includes_socket 33438 33439int main (void) 33440{ 33441 33442 int sv[2]; 33443 if(0 != socketpair(0, 0, 0, sv)) 33444 return 1; 33445 33446 ; 33447 return 0; 33448} 33449 33450_ACEOF 33451if ac_fn_c_try_compile "$LINENO"; then : 33452 33453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33454$as_echo "yes" >&6; } 33455 tst_compi_socketpair="yes" 33456 33457else 33458 33459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33460$as_echo "no" >&6; } 33461 tst_compi_socketpair="no" 33462 33463fi 33464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33465 fi 33466 # 33467 if test "$tst_compi_socketpair" = "yes"; then 33468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5 33469$as_echo_n "checking if socketpair usage allowed... " >&6; } 33470 if test "x$curl_disallow_socketpair" != "xyes"; then 33471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33472$as_echo "yes" >&6; } 33473 tst_allow_socketpair="yes" 33474 else 33475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33476$as_echo "no" >&6; } 33477 tst_allow_socketpair="no" 33478 fi 33479 fi 33480 # 33481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5 33482$as_echo_n "checking if socketpair might be used... " >&6; } 33483 if test "$tst_links_socketpair" = "yes" && 33484 test "$tst_proto_socketpair" = "yes" && 33485 test "$tst_compi_socketpair" = "yes" && 33486 test "$tst_allow_socketpair" = "yes"; then 33487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33488$as_echo "yes" >&6; } 33489 33490cat >>confdefs.h <<_ACEOF 33491#define HAVE_SOCKETPAIR 1 33492_ACEOF 33493 33494 ac_cv_func_socketpair="yes" 33495 else 33496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33497$as_echo "no" >&6; } 33498 ac_cv_func_socketpair="no" 33499 fi 33500 33501 33502 # 33503 tst_links_strcasecmp="unknown" 33504 tst_proto_strcasecmp="unknown" 33505 tst_compi_strcasecmp="unknown" 33506 tst_allow_strcasecmp="unknown" 33507 # 33508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5 33509$as_echo_n "checking if strcasecmp can be linked... " >&6; } 33510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33511/* end confdefs.h. */ 33512 33513 33514#define strcasecmp innocuous_strcasecmp 33515#ifdef __STDC__ 33516# include <limits.h> 33517#else 33518# include <assert.h> 33519#endif 33520#undef strcasecmp 33521#ifdef __cplusplus 33522extern "C" 33523#endif 33524char strcasecmp (); 33525#if defined __stub_strcasecmp || defined __stub___strcasecmp 33526choke me 33527#endif 33528 33529int main (void) 33530{ 33531return strcasecmp (); 33532 ; 33533 return 0; 33534} 33535 33536_ACEOF 33537if ac_fn_c_try_link "$LINENO"; then : 33538 33539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33540$as_echo "yes" >&6; } 33541 tst_links_strcasecmp="yes" 33542 33543else 33544 33545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33546$as_echo "no" >&6; } 33547 tst_links_strcasecmp="no" 33548 33549fi 33550rm -f core conftest.err conftest.$ac_objext \ 33551 conftest$ac_exeext conftest.$ac_ext 33552 # 33553 if test "$tst_links_strcasecmp" = "yes"; then 33554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5 33555$as_echo_n "checking if strcasecmp is prototyped... " >&6; } 33556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33557/* end confdefs.h. */ 33558 33559 $curl_includes_string 33560 33561_ACEOF 33562if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 33563 $EGREP "strcasecmp" >/dev/null 2>&1; then : 33564 33565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33566$as_echo "yes" >&6; } 33567 tst_proto_strcasecmp="yes" 33568 33569else 33570 33571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33572$as_echo "no" >&6; } 33573 tst_proto_strcasecmp="no" 33574 33575fi 33576rm -f conftest* 33577 33578 fi 33579 # 33580 if test "$tst_proto_strcasecmp" = "yes"; then 33581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5 33582$as_echo_n "checking if strcasecmp is compilable... " >&6; } 33583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33584/* end confdefs.h. */ 33585 33586 33587 $curl_includes_string 33588 33589int main (void) 33590{ 33591 33592 if(0 != strcasecmp(0, 0)) 33593 return 1; 33594 33595 ; 33596 return 0; 33597} 33598 33599_ACEOF 33600if ac_fn_c_try_compile "$LINENO"; then : 33601 33602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33603$as_echo "yes" >&6; } 33604 tst_compi_strcasecmp="yes" 33605 33606else 33607 33608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33609$as_echo "no" >&6; } 33610 tst_compi_strcasecmp="no" 33611 33612fi 33613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33614 fi 33615 # 33616 if test "$tst_compi_strcasecmp" = "yes"; then 33617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5 33618$as_echo_n "checking if strcasecmp usage allowed... " >&6; } 33619 if test "x$curl_disallow_strcasecmp" != "xyes"; then 33620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33621$as_echo "yes" >&6; } 33622 tst_allow_strcasecmp="yes" 33623 else 33624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33625$as_echo "no" >&6; } 33626 tst_allow_strcasecmp="no" 33627 fi 33628 fi 33629 # 33630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5 33631$as_echo_n "checking if strcasecmp might be used... " >&6; } 33632 if test "$tst_links_strcasecmp" = "yes" && 33633 test "$tst_proto_strcasecmp" = "yes" && 33634 test "$tst_compi_strcasecmp" = "yes" && 33635 test "$tst_allow_strcasecmp" = "yes"; then 33636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33637$as_echo "yes" >&6; } 33638 33639cat >>confdefs.h <<_ACEOF 33640#define HAVE_STRCASECMP 1 33641_ACEOF 33642 33643 ac_cv_func_strcasecmp="yes" 33644 else 33645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33646$as_echo "no" >&6; } 33647 ac_cv_func_strcasecmp="no" 33648 fi 33649 33650 33651 # 33652 tst_links_strcasestr="unknown" 33653 tst_proto_strcasestr="unknown" 33654 tst_compi_strcasestr="unknown" 33655 tst_allow_strcasestr="unknown" 33656 # 33657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasestr can be linked" >&5 33658$as_echo_n "checking if strcasestr can be linked... " >&6; } 33659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33660/* end confdefs.h. */ 33661 33662 33663#define strcasestr innocuous_strcasestr 33664#ifdef __STDC__ 33665# include <limits.h> 33666#else 33667# include <assert.h> 33668#endif 33669#undef strcasestr 33670#ifdef __cplusplus 33671extern "C" 33672#endif 33673char strcasestr (); 33674#if defined __stub_strcasestr || defined __stub___strcasestr 33675choke me 33676#endif 33677 33678int main (void) 33679{ 33680return strcasestr (); 33681 ; 33682 return 0; 33683} 33684 33685_ACEOF 33686if ac_fn_c_try_link "$LINENO"; then : 33687 33688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33689$as_echo "yes" >&6; } 33690 tst_links_strcasestr="yes" 33691 33692else 33693 33694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33695$as_echo "no" >&6; } 33696 tst_links_strcasestr="no" 33697 33698fi 33699rm -f core conftest.err conftest.$ac_objext \ 33700 conftest$ac_exeext conftest.$ac_ext 33701 # 33702 if test "$tst_links_strcasestr" = "yes"; then 33703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasestr is prototyped" >&5 33704$as_echo_n "checking if strcasestr is prototyped... " >&6; } 33705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33706/* end confdefs.h. */ 33707 33708 $curl_includes_string 33709 33710_ACEOF 33711if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 33712 $EGREP "strcasestr" >/dev/null 2>&1; then : 33713 33714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33715$as_echo "yes" >&6; } 33716 tst_proto_strcasestr="yes" 33717 33718else 33719 33720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33721$as_echo "no" >&6; } 33722 tst_proto_strcasestr="no" 33723 33724fi 33725rm -f conftest* 33726 33727 fi 33728 # 33729 if test "$tst_proto_strcasestr" = "yes"; then 33730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasestr is compilable" >&5 33731$as_echo_n "checking if strcasestr is compilable... " >&6; } 33732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33733/* end confdefs.h. */ 33734 33735 33736 $curl_includes_string 33737 33738int main (void) 33739{ 33740 33741 if(0 != strcasestr(0, 0)) 33742 return 1; 33743 33744 ; 33745 return 0; 33746} 33747 33748_ACEOF 33749if ac_fn_c_try_compile "$LINENO"; then : 33750 33751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33752$as_echo "yes" >&6; } 33753 tst_compi_strcasestr="yes" 33754 33755else 33756 33757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33758$as_echo "no" >&6; } 33759 tst_compi_strcasestr="no" 33760 33761fi 33762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33763 fi 33764 # 33765 if test "$tst_compi_strcasestr" = "yes"; then 33766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasestr usage allowed" >&5 33767$as_echo_n "checking if strcasestr usage allowed... " >&6; } 33768 if test "x$curl_disallow_strcasestr" != "xyes"; then 33769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33770$as_echo "yes" >&6; } 33771 tst_allow_strcasestr="yes" 33772 else 33773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33774$as_echo "no" >&6; } 33775 tst_allow_strcasestr="no" 33776 fi 33777 fi 33778 # 33779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasestr might be used" >&5 33780$as_echo_n "checking if strcasestr might be used... " >&6; } 33781 if test "$tst_links_strcasestr" = "yes" && 33782 test "$tst_proto_strcasestr" = "yes" && 33783 test "$tst_compi_strcasestr" = "yes" && 33784 test "$tst_allow_strcasestr" = "yes"; then 33785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33786$as_echo "yes" >&6; } 33787 33788cat >>confdefs.h <<_ACEOF 33789#define HAVE_STRCASESTR 1 33790_ACEOF 33791 33792 ac_cv_func_strcasestr="yes" 33793 else 33794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33795$as_echo "no" >&6; } 33796 ac_cv_func_strcasestr="no" 33797 fi 33798 33799 33800 # 33801 tst_links_strcmpi="unknown" 33802 tst_proto_strcmpi="unknown" 33803 tst_compi_strcmpi="unknown" 33804 tst_allow_strcmpi="unknown" 33805 # 33806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5 33807$as_echo_n "checking if strcmpi can be linked... " >&6; } 33808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33809/* end confdefs.h. */ 33810 33811 33812#define strcmpi innocuous_strcmpi 33813#ifdef __STDC__ 33814# include <limits.h> 33815#else 33816# include <assert.h> 33817#endif 33818#undef strcmpi 33819#ifdef __cplusplus 33820extern "C" 33821#endif 33822char strcmpi (); 33823#if defined __stub_strcmpi || defined __stub___strcmpi 33824choke me 33825#endif 33826 33827int main (void) 33828{ 33829return strcmpi (); 33830 ; 33831 return 0; 33832} 33833 33834_ACEOF 33835if ac_fn_c_try_link "$LINENO"; then : 33836 33837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33838$as_echo "yes" >&6; } 33839 tst_links_strcmpi="yes" 33840 33841else 33842 33843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33844$as_echo "no" >&6; } 33845 tst_links_strcmpi="no" 33846 33847fi 33848rm -f core conftest.err conftest.$ac_objext \ 33849 conftest$ac_exeext conftest.$ac_ext 33850 # 33851 if test "$tst_links_strcmpi" = "yes"; then 33852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5 33853$as_echo_n "checking if strcmpi is prototyped... " >&6; } 33854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33855/* end confdefs.h. */ 33856 33857 $curl_includes_string 33858 33859_ACEOF 33860if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 33861 $EGREP "strcmpi" >/dev/null 2>&1; then : 33862 33863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33864$as_echo "yes" >&6; } 33865 tst_proto_strcmpi="yes" 33866 33867else 33868 33869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33870$as_echo "no" >&6; } 33871 tst_proto_strcmpi="no" 33872 33873fi 33874rm -f conftest* 33875 33876 fi 33877 # 33878 if test "$tst_proto_strcmpi" = "yes"; then 33879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5 33880$as_echo_n "checking if strcmpi is compilable... " >&6; } 33881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33882/* end confdefs.h. */ 33883 33884 33885 $curl_includes_string 33886 33887int main (void) 33888{ 33889 33890 if(0 != strcmpi(0, 0)) 33891 return 1; 33892 33893 ; 33894 return 0; 33895} 33896 33897_ACEOF 33898if ac_fn_c_try_compile "$LINENO"; then : 33899 33900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33901$as_echo "yes" >&6; } 33902 tst_compi_strcmpi="yes" 33903 33904else 33905 33906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33907$as_echo "no" >&6; } 33908 tst_compi_strcmpi="no" 33909 33910fi 33911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33912 fi 33913 # 33914 if test "$tst_compi_strcmpi" = "yes"; then 33915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5 33916$as_echo_n "checking if strcmpi usage allowed... " >&6; } 33917 if test "x$curl_disallow_strcmpi" != "xyes"; then 33918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33919$as_echo "yes" >&6; } 33920 tst_allow_strcmpi="yes" 33921 else 33922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33923$as_echo "no" >&6; } 33924 tst_allow_strcmpi="no" 33925 fi 33926 fi 33927 # 33928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5 33929$as_echo_n "checking if strcmpi might be used... " >&6; } 33930 if test "$tst_links_strcmpi" = "yes" && 33931 test "$tst_proto_strcmpi" = "yes" && 33932 test "$tst_compi_strcmpi" = "yes" && 33933 test "$tst_allow_strcmpi" = "yes"; then 33934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33935$as_echo "yes" >&6; } 33936 33937cat >>confdefs.h <<_ACEOF 33938#define HAVE_STRCMPI 1 33939_ACEOF 33940 33941 ac_cv_func_strcmpi="yes" 33942 else 33943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33944$as_echo "no" >&6; } 33945 ac_cv_func_strcmpi="no" 33946 fi 33947 33948 33949 # 33950 tst_links_strdup="unknown" 33951 tst_proto_strdup="unknown" 33952 tst_compi_strdup="unknown" 33953 tst_allow_strdup="unknown" 33954 # 33955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5 33956$as_echo_n "checking if strdup can be linked... " >&6; } 33957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33958/* end confdefs.h. */ 33959 33960 33961#define strdup innocuous_strdup 33962#ifdef __STDC__ 33963# include <limits.h> 33964#else 33965# include <assert.h> 33966#endif 33967#undef strdup 33968#ifdef __cplusplus 33969extern "C" 33970#endif 33971char strdup (); 33972#if defined __stub_strdup || defined __stub___strdup 33973choke me 33974#endif 33975 33976int main (void) 33977{ 33978return strdup (); 33979 ; 33980 return 0; 33981} 33982 33983_ACEOF 33984if ac_fn_c_try_link "$LINENO"; then : 33985 33986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33987$as_echo "yes" >&6; } 33988 tst_links_strdup="yes" 33989 33990else 33991 33992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33993$as_echo "no" >&6; } 33994 tst_links_strdup="no" 33995 33996fi 33997rm -f core conftest.err conftest.$ac_objext \ 33998 conftest$ac_exeext conftest.$ac_ext 33999 # 34000 if test "$tst_links_strdup" = "yes"; then 34001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5 34002$as_echo_n "checking if strdup is prototyped... " >&6; } 34003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34004/* end confdefs.h. */ 34005 34006 $curl_includes_string 34007 34008_ACEOF 34009if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 34010 $EGREP "strdup" >/dev/null 2>&1; then : 34011 34012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34013$as_echo "yes" >&6; } 34014 tst_proto_strdup="yes" 34015 34016else 34017 34018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34019$as_echo "no" >&6; } 34020 tst_proto_strdup="no" 34021 34022fi 34023rm -f conftest* 34024 34025 fi 34026 # 34027 if test "$tst_proto_strdup" = "yes"; then 34028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5 34029$as_echo_n "checking if strdup is compilable... " >&6; } 34030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34031/* end confdefs.h. */ 34032 34033 34034 $curl_includes_string 34035 34036int main (void) 34037{ 34038 34039 if(0 != strdup(0)) 34040 return 1; 34041 34042 ; 34043 return 0; 34044} 34045 34046_ACEOF 34047if ac_fn_c_try_compile "$LINENO"; then : 34048 34049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34050$as_echo "yes" >&6; } 34051 tst_compi_strdup="yes" 34052 34053else 34054 34055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34056$as_echo "no" >&6; } 34057 tst_compi_strdup="no" 34058 34059fi 34060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34061 fi 34062 # 34063 if test "$tst_compi_strdup" = "yes"; then 34064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5 34065$as_echo_n "checking if strdup usage allowed... " >&6; } 34066 if test "x$curl_disallow_strdup" != "xyes"; then 34067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34068$as_echo "yes" >&6; } 34069 tst_allow_strdup="yes" 34070 else 34071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34072$as_echo "no" >&6; } 34073 tst_allow_strdup="no" 34074 fi 34075 fi 34076 # 34077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5 34078$as_echo_n "checking if strdup might be used... " >&6; } 34079 if test "$tst_links_strdup" = "yes" && 34080 test "$tst_proto_strdup" = "yes" && 34081 test "$tst_compi_strdup" = "yes" && 34082 test "$tst_allow_strdup" = "yes"; then 34083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34084$as_echo "yes" >&6; } 34085 34086cat >>confdefs.h <<_ACEOF 34087#define HAVE_STRDUP 1 34088_ACEOF 34089 34090 ac_cv_func_strdup="yes" 34091 else 34092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34093$as_echo "no" >&6; } 34094 ac_cv_func_strdup="no" 34095 fi 34096 34097 34098 # 34099 tst_links_strerror_r="unknown" 34100 tst_proto_strerror_r="unknown" 34101 tst_compi_strerror_r="unknown" 34102 tst_glibc_strerror_r="unknown" 34103 tst_posix_strerror_r="unknown" 34104 tst_allow_strerror_r="unknown" 34105 tst_works_glibc_strerror_r="unknown" 34106 tst_works_posix_strerror_r="unknown" 34107 tst_glibc_strerror_r_type_arg3="unknown" 34108 tst_posix_strerror_r_type_arg3="unknown" 34109 # 34110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5 34111$as_echo_n "checking if strerror_r can be linked... " >&6; } 34112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34113/* end confdefs.h. */ 34114 34115 34116#define strerror_r innocuous_strerror_r 34117#ifdef __STDC__ 34118# include <limits.h> 34119#else 34120# include <assert.h> 34121#endif 34122#undef strerror_r 34123#ifdef __cplusplus 34124extern "C" 34125#endif 34126char strerror_r (); 34127#if defined __stub_strerror_r || defined __stub___strerror_r 34128choke me 34129#endif 34130 34131int main (void) 34132{ 34133return strerror_r (); 34134 ; 34135 return 0; 34136} 34137 34138_ACEOF 34139if ac_fn_c_try_link "$LINENO"; then : 34140 34141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34142$as_echo "yes" >&6; } 34143 tst_links_strerror_r="yes" 34144 34145else 34146 34147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34148$as_echo "no" >&6; } 34149 tst_links_strerror_r="no" 34150 34151fi 34152rm -f core conftest.err conftest.$ac_objext \ 34153 conftest$ac_exeext conftest.$ac_ext 34154 # 34155 if test "$tst_links_strerror_r" = "yes"; then 34156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5 34157$as_echo_n "checking if strerror_r is prototyped... " >&6; } 34158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34159/* end confdefs.h. */ 34160 34161 $curl_includes_string 34162 34163_ACEOF 34164if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 34165 $EGREP "strerror_r" >/dev/null 2>&1; then : 34166 34167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34168$as_echo "yes" >&6; } 34169 tst_proto_strerror_r="yes" 34170 34171else 34172 34173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34174$as_echo "no" >&6; } 34175 tst_proto_strerror_r="no" 34176 34177fi 34178rm -f conftest* 34179 34180 fi 34181 # 34182 if test "$tst_proto_strerror_r" = "yes"; then 34183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5 34184$as_echo_n "checking if strerror_r is compilable... " >&6; } 34185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34186/* end confdefs.h. */ 34187 34188 34189 $curl_includes_string 34190 34191int main (void) 34192{ 34193 34194 if(0 != strerror_r(0, 0, 0)) 34195 return 1; 34196 34197 ; 34198 return 0; 34199} 34200 34201_ACEOF 34202if ac_fn_c_try_compile "$LINENO"; then : 34203 34204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34205$as_echo "yes" >&6; } 34206 tst_compi_strerror_r="yes" 34207 34208else 34209 34210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34211$as_echo "no" >&6; } 34212 tst_compi_strerror_r="no" 34213 34214fi 34215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34216 fi 34217 # 34218 if test "$tst_compi_strerror_r" = "yes"; then 34219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5 34220$as_echo_n "checking if strerror_r is glibc like... " >&6; } 34221 tst_glibc_strerror_r_type_arg3="unknown" 34222 for arg3 in 'size_t' 'int' 'unsigned int'; do 34223 if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then 34224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34225/* end confdefs.h. */ 34226 34227 34228 $curl_includes_string 34229 34230int main (void) 34231{ 34232 34233 char *strerror_r(int errnum, char *workbuf, $arg3 bufsize); 34234 if(0 != strerror_r(0, 0, 0)) 34235 return 1; 34236 34237 ; 34238 return 0; 34239} 34240 34241_ACEOF 34242if ac_fn_c_try_compile "$LINENO"; then : 34243 34244 tst_glibc_strerror_r_type_arg3="$arg3" 34245 34246fi 34247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34248 fi 34249 done 34250 case "$tst_glibc_strerror_r_type_arg3" in 34251 unknown) 34252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34253$as_echo "no" >&6; } 34254 tst_glibc_strerror_r="no" 34255 ;; 34256 *) 34257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34258$as_echo "yes" >&6; } 34259 tst_glibc_strerror_r="yes" 34260 ;; 34261 esac 34262 fi 34263 # 34264 if test "x$cross_compiling" != "xyes" && 34265 test "$tst_glibc_strerror_r" = "yes"; then 34266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5 34267$as_echo_n "checking if strerror_r seems to work... " >&6; } 34268 if test "$cross_compiling" = yes; then : 34269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34270$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34271as_fn_error "cannot run test program while cross compiling 34272See \`config.log' for more details." "$LINENO" 5; } 34273else 34274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34275/* end confdefs.h. */ 34276 34277 34278 $curl_includes_stdlib 34279 $curl_includes_string 34280# include <errno.h> 34281 34282int main (void) 34283{ 34284 34285 char buffer[1024]; 34286 char *string = 0; 34287 buffer[0] = '\0'; 34288 string = strerror_r(EACCES, buffer, sizeof(buffer)); 34289 if(!string) 34290 exit(1); /* fail */ 34291 if(!string[0]) 34292 exit(1); /* fail */ 34293 else 34294 exit(0); 34295 34296 ; 34297 return 0; 34298} 34299 34300_ACEOF 34301if ac_fn_c_try_run "$LINENO"; then : 34302 34303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34304$as_echo "yes" >&6; } 34305 tst_works_glibc_strerror_r="yes" 34306 34307else 34308 34309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34310$as_echo "no" >&6; } 34311 tst_works_glibc_strerror_r="no" 34312 34313fi 34314rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 34315 conftest.$ac_objext conftest.beam conftest.$ac_ext 34316fi 34317 34318 fi 34319 # 34320 if test "$tst_compi_strerror_r" = "yes" && 34321 test "$tst_works_glibc_strerror_r" != "yes"; then 34322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5 34323$as_echo_n "checking if strerror_r is POSIX like... " >&6; } 34324 tst_posix_strerror_r_type_arg3="unknown" 34325 for arg3 in 'size_t' 'int' 'unsigned int'; do 34326 if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then 34327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34328/* end confdefs.h. */ 34329 34330 34331 $curl_includes_string 34332 34333int main (void) 34334{ 34335 34336 int strerror_r(int errnum, char *resultbuf, $arg3 bufsize); 34337 if(0 != strerror_r(0, 0, 0)) 34338 return 1; 34339 34340 ; 34341 return 0; 34342} 34343 34344_ACEOF 34345if ac_fn_c_try_compile "$LINENO"; then : 34346 34347 tst_posix_strerror_r_type_arg3="$arg3" 34348 34349fi 34350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34351 fi 34352 done 34353 case "$tst_posix_strerror_r_type_arg3" in 34354 unknown) 34355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34356$as_echo "no" >&6; } 34357 tst_posix_strerror_r="no" 34358 ;; 34359 *) 34360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34361$as_echo "yes" >&6; } 34362 tst_posix_strerror_r="yes" 34363 ;; 34364 esac 34365 fi 34366 # 34367 if test "x$cross_compiling" != "xyes" && 34368 test "$tst_posix_strerror_r" = "yes"; then 34369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5 34370$as_echo_n "checking if strerror_r seems to work... " >&6; } 34371 if test "$cross_compiling" = yes; then : 34372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34373$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34374as_fn_error "cannot run test program while cross compiling 34375See \`config.log' for more details." "$LINENO" 5; } 34376else 34377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34378/* end confdefs.h. */ 34379 34380 34381 $curl_includes_stdlib 34382 $curl_includes_string 34383# include <errno.h> 34384 34385int main (void) 34386{ 34387 34388 char buffer[1024]; 34389 int error = 1; 34390 buffer[0] = '\0'; 34391 error = strerror_r(EACCES, buffer, sizeof(buffer)); 34392 if(error) 34393 exit(1); /* fail */ 34394 if(buffer[0] == '\0') 34395 exit(1); /* fail */ 34396 else 34397 exit(0); 34398 34399 ; 34400 return 0; 34401} 34402 34403_ACEOF 34404if ac_fn_c_try_run "$LINENO"; then : 34405 34406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34407$as_echo "yes" >&6; } 34408 tst_works_posix_strerror_r="yes" 34409 34410else 34411 34412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34413$as_echo "no" >&6; } 34414 tst_works_posix_strerror_r="no" 34415 34416fi 34417rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 34418 conftest.$ac_objext conftest.beam conftest.$ac_ext 34419fi 34420 34421 fi 34422 # 34423 if test "$tst_works_glibc_strerror_r" = "yes"; then 34424 tst_posix_strerror_r="no" 34425 fi 34426 if test "$tst_works_posix_strerror_r" = "yes"; then 34427 tst_glibc_strerror_r="no" 34428 fi 34429 if test "$tst_glibc_strerror_r" = "yes" && 34430 test "$tst_works_glibc_strerror_r" != "no" && 34431 test "$tst_posix_strerror_r" != "yes"; then 34432 tst_allow_strerror_r="check" 34433 fi 34434 if test "$tst_posix_strerror_r" = "yes" && 34435 test "$tst_works_posix_strerror_r" != "no" && 34436 test "$tst_glibc_strerror_r" != "yes"; then 34437 tst_allow_strerror_r="check" 34438 fi 34439 if test "$tst_allow_strerror_r" = "check"; then 34440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5 34441$as_echo_n "checking if strerror_r usage allowed... " >&6; } 34442 if test "x$curl_disallow_strerror_r" != "xyes"; then 34443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34444$as_echo "yes" >&6; } 34445 tst_allow_strerror_r="yes" 34446 else 34447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34448$as_echo "no" >&6; } 34449 tst_allow_strerror_r="no" 34450 fi 34451 fi 34452 # 34453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5 34454$as_echo_n "checking if strerror_r might be used... " >&6; } 34455 if test "$tst_links_strerror_r" = "yes" && 34456 test "$tst_proto_strerror_r" = "yes" && 34457 test "$tst_compi_strerror_r" = "yes" && 34458 test "$tst_allow_strerror_r" = "yes"; then 34459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34460$as_echo "yes" >&6; } 34461 if test "$tst_glibc_strerror_r" = "yes"; then 34462 34463cat >>confdefs.h <<_ACEOF 34464#define HAVE_STRERROR_R 1 34465_ACEOF 34466 34467 34468cat >>confdefs.h <<_ACEOF 34469#define HAVE_GLIBC_STRERROR_R 1 34470_ACEOF 34471 34472 34473cat >>confdefs.h <<_ACEOF 34474#define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3 34475_ACEOF 34476 34477 fi 34478 if test "$tst_posix_strerror_r" = "yes"; then 34479 34480cat >>confdefs.h <<_ACEOF 34481#define HAVE_STRERROR_R 1 34482_ACEOF 34483 34484 34485cat >>confdefs.h <<_ACEOF 34486#define HAVE_POSIX_STRERROR_R 1 34487_ACEOF 34488 34489 34490cat >>confdefs.h <<_ACEOF 34491#define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3 34492_ACEOF 34493 34494 fi 34495 ac_cv_func_strerror_r="yes" 34496 else 34497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34498$as_echo "no" >&6; } 34499 ac_cv_func_strerror_r="no" 34500 fi 34501 # 34502 if test "$tst_compi_strerror_r" = "yes" && 34503 test "$tst_allow_strerror_r" = "unknown"; then 34504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5 34505$as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;} 34506 fi 34507 # 34508 34509 34510 # 34511 tst_links_stricmp="unknown" 34512 tst_proto_stricmp="unknown" 34513 tst_compi_stricmp="unknown" 34514 tst_allow_stricmp="unknown" 34515 # 34516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5 34517$as_echo_n "checking if stricmp can be linked... " >&6; } 34518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34519/* end confdefs.h. */ 34520 34521 34522#define stricmp innocuous_stricmp 34523#ifdef __STDC__ 34524# include <limits.h> 34525#else 34526# include <assert.h> 34527#endif 34528#undef stricmp 34529#ifdef __cplusplus 34530extern "C" 34531#endif 34532char stricmp (); 34533#if defined __stub_stricmp || defined __stub___stricmp 34534choke me 34535#endif 34536 34537int main (void) 34538{ 34539return stricmp (); 34540 ; 34541 return 0; 34542} 34543 34544_ACEOF 34545if ac_fn_c_try_link "$LINENO"; then : 34546 34547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34548$as_echo "yes" >&6; } 34549 tst_links_stricmp="yes" 34550 34551else 34552 34553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34554$as_echo "no" >&6; } 34555 tst_links_stricmp="no" 34556 34557fi 34558rm -f core conftest.err conftest.$ac_objext \ 34559 conftest$ac_exeext conftest.$ac_ext 34560 # 34561 if test "$tst_links_stricmp" = "yes"; then 34562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5 34563$as_echo_n "checking if stricmp is prototyped... " >&6; } 34564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34565/* end confdefs.h. */ 34566 34567 $curl_includes_string 34568 34569_ACEOF 34570if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 34571 $EGREP "stricmp" >/dev/null 2>&1; then : 34572 34573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34574$as_echo "yes" >&6; } 34575 tst_proto_stricmp="yes" 34576 34577else 34578 34579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34580$as_echo "no" >&6; } 34581 tst_proto_stricmp="no" 34582 34583fi 34584rm -f conftest* 34585 34586 fi 34587 # 34588 if test "$tst_proto_stricmp" = "yes"; then 34589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5 34590$as_echo_n "checking if stricmp is compilable... " >&6; } 34591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34592/* end confdefs.h. */ 34593 34594 34595 $curl_includes_string 34596 34597int main (void) 34598{ 34599 34600 if(0 != stricmp(0, 0)) 34601 return 1; 34602 34603 ; 34604 return 0; 34605} 34606 34607_ACEOF 34608if ac_fn_c_try_compile "$LINENO"; then : 34609 34610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34611$as_echo "yes" >&6; } 34612 tst_compi_stricmp="yes" 34613 34614else 34615 34616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34617$as_echo "no" >&6; } 34618 tst_compi_stricmp="no" 34619 34620fi 34621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34622 fi 34623 # 34624 if test "$tst_compi_stricmp" = "yes"; then 34625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5 34626$as_echo_n "checking if stricmp usage allowed... " >&6; } 34627 if test "x$curl_disallow_stricmp" != "xyes"; then 34628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34629$as_echo "yes" >&6; } 34630 tst_allow_stricmp="yes" 34631 else 34632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34633$as_echo "no" >&6; } 34634 tst_allow_stricmp="no" 34635 fi 34636 fi 34637 # 34638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5 34639$as_echo_n "checking if stricmp might be used... " >&6; } 34640 if test "$tst_links_stricmp" = "yes" && 34641 test "$tst_proto_stricmp" = "yes" && 34642 test "$tst_compi_stricmp" = "yes" && 34643 test "$tst_allow_stricmp" = "yes"; then 34644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34645$as_echo "yes" >&6; } 34646 34647cat >>confdefs.h <<_ACEOF 34648#define HAVE_STRICMP 1 34649_ACEOF 34650 34651 ac_cv_func_stricmp="yes" 34652 else 34653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34654$as_echo "no" >&6; } 34655 ac_cv_func_stricmp="no" 34656 fi 34657 34658 34659 # 34660 tst_links_strlcat="unknown" 34661 tst_proto_strlcat="unknown" 34662 tst_compi_strlcat="unknown" 34663 tst_allow_strlcat="unknown" 34664 # 34665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strlcat can be linked" >&5 34666$as_echo_n "checking if strlcat can be linked... " >&6; } 34667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34668/* end confdefs.h. */ 34669 34670 34671#define strlcat innocuous_strlcat 34672#ifdef __STDC__ 34673# include <limits.h> 34674#else 34675# include <assert.h> 34676#endif 34677#undef strlcat 34678#ifdef __cplusplus 34679extern "C" 34680#endif 34681char strlcat (); 34682#if defined __stub_strlcat || defined __stub___strlcat 34683choke me 34684#endif 34685 34686int main (void) 34687{ 34688return strlcat (); 34689 ; 34690 return 0; 34691} 34692 34693_ACEOF 34694if ac_fn_c_try_link "$LINENO"; then : 34695 34696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34697$as_echo "yes" >&6; } 34698 tst_links_strlcat="yes" 34699 34700else 34701 34702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34703$as_echo "no" >&6; } 34704 tst_links_strlcat="no" 34705 34706fi 34707rm -f core conftest.err conftest.$ac_objext \ 34708 conftest$ac_exeext conftest.$ac_ext 34709 # 34710 if test "$tst_links_strlcat" = "yes"; then 34711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strlcat is prototyped" >&5 34712$as_echo_n "checking if strlcat is prototyped... " >&6; } 34713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34714/* end confdefs.h. */ 34715 34716 $curl_includes_string 34717 34718_ACEOF 34719if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 34720 $EGREP "strlcat" >/dev/null 2>&1; then : 34721 34722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34723$as_echo "yes" >&6; } 34724 tst_proto_strlcat="yes" 34725 34726else 34727 34728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34729$as_echo "no" >&6; } 34730 tst_proto_strlcat="no" 34731 34732fi 34733rm -f conftest* 34734 34735 fi 34736 # 34737 if test "$tst_proto_strlcat" = "yes"; then 34738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strlcat is compilable" >&5 34739$as_echo_n "checking if strlcat is compilable... " >&6; } 34740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34741/* end confdefs.h. */ 34742 34743 34744 $curl_includes_string 34745 34746int main (void) 34747{ 34748 34749 if(0 != strlcat(0, 0, 0)) 34750 return 1; 34751 34752 ; 34753 return 0; 34754} 34755 34756_ACEOF 34757if ac_fn_c_try_compile "$LINENO"; then : 34758 34759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34760$as_echo "yes" >&6; } 34761 tst_compi_strlcat="yes" 34762 34763else 34764 34765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34766$as_echo "no" >&6; } 34767 tst_compi_strlcat="no" 34768 34769fi 34770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34771 fi 34772 # 34773 if test "$tst_compi_strlcat" = "yes"; then 34774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strlcat usage allowed" >&5 34775$as_echo_n "checking if strlcat usage allowed... " >&6; } 34776 if test "x$curl_disallow_strlcat" != "xyes"; then 34777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34778$as_echo "yes" >&6; } 34779 tst_allow_strlcat="yes" 34780 else 34781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34782$as_echo "no" >&6; } 34783 tst_allow_strlcat="no" 34784 fi 34785 fi 34786 # 34787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strlcat might be used" >&5 34788$as_echo_n "checking if strlcat might be used... " >&6; } 34789 if test "$tst_links_strlcat" = "yes" && 34790 test "$tst_proto_strlcat" = "yes" && 34791 test "$tst_compi_strlcat" = "yes" && 34792 test "$tst_allow_strlcat" = "yes"; then 34793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34794$as_echo "yes" >&6; } 34795 34796cat >>confdefs.h <<_ACEOF 34797#define HAVE_STRLCAT 1 34798_ACEOF 34799 34800 ac_cv_func_strlcat="yes" 34801 else 34802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34803$as_echo "no" >&6; } 34804 ac_cv_func_strlcat="no" 34805 fi 34806 34807 34808 # 34809 tst_links_strncasecmp="unknown" 34810 tst_proto_strncasecmp="unknown" 34811 tst_compi_strncasecmp="unknown" 34812 tst_allow_strncasecmp="unknown" 34813 # 34814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5 34815$as_echo_n "checking if strncasecmp can be linked... " >&6; } 34816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34817/* end confdefs.h. */ 34818 34819 34820#define strncasecmp innocuous_strncasecmp 34821#ifdef __STDC__ 34822# include <limits.h> 34823#else 34824# include <assert.h> 34825#endif 34826#undef strncasecmp 34827#ifdef __cplusplus 34828extern "C" 34829#endif 34830char strncasecmp (); 34831#if defined __stub_strncasecmp || defined __stub___strncasecmp 34832choke me 34833#endif 34834 34835int main (void) 34836{ 34837return strncasecmp (); 34838 ; 34839 return 0; 34840} 34841 34842_ACEOF 34843if ac_fn_c_try_link "$LINENO"; then : 34844 34845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34846$as_echo "yes" >&6; } 34847 tst_links_strncasecmp="yes" 34848 34849else 34850 34851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34852$as_echo "no" >&6; } 34853 tst_links_strncasecmp="no" 34854 34855fi 34856rm -f core conftest.err conftest.$ac_objext \ 34857 conftest$ac_exeext conftest.$ac_ext 34858 # 34859 if test "$tst_links_strncasecmp" = "yes"; then 34860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5 34861$as_echo_n "checking if strncasecmp is prototyped... " >&6; } 34862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34863/* end confdefs.h. */ 34864 34865 $curl_includes_string 34866 34867_ACEOF 34868if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 34869 $EGREP "strncasecmp" >/dev/null 2>&1; then : 34870 34871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34872$as_echo "yes" >&6; } 34873 tst_proto_strncasecmp="yes" 34874 34875else 34876 34877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34878$as_echo "no" >&6; } 34879 tst_proto_strncasecmp="no" 34880 34881fi 34882rm -f conftest* 34883 34884 fi 34885 # 34886 if test "$tst_proto_strncasecmp" = "yes"; then 34887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5 34888$as_echo_n "checking if strncasecmp is compilable... " >&6; } 34889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34890/* end confdefs.h. */ 34891 34892 34893 $curl_includes_string 34894 34895int main (void) 34896{ 34897 34898 if(0 != strncasecmp(0, 0, 0)) 34899 return 1; 34900 34901 ; 34902 return 0; 34903} 34904 34905_ACEOF 34906if ac_fn_c_try_compile "$LINENO"; then : 34907 34908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34909$as_echo "yes" >&6; } 34910 tst_compi_strncasecmp="yes" 34911 34912else 34913 34914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34915$as_echo "no" >&6; } 34916 tst_compi_strncasecmp="no" 34917 34918fi 34919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34920 fi 34921 # 34922 if test "$tst_compi_strncasecmp" = "yes"; then 34923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5 34924$as_echo_n "checking if strncasecmp usage allowed... " >&6; } 34925 if test "x$curl_disallow_strncasecmp" != "xyes"; then 34926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34927$as_echo "yes" >&6; } 34928 tst_allow_strncasecmp="yes" 34929 else 34930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34931$as_echo "no" >&6; } 34932 tst_allow_strncasecmp="no" 34933 fi 34934 fi 34935 # 34936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5 34937$as_echo_n "checking if strncasecmp might be used... " >&6; } 34938 if test "$tst_links_strncasecmp" = "yes" && 34939 test "$tst_proto_strncasecmp" = "yes" && 34940 test "$tst_compi_strncasecmp" = "yes" && 34941 test "$tst_allow_strncasecmp" = "yes"; then 34942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34943$as_echo "yes" >&6; } 34944 34945cat >>confdefs.h <<_ACEOF 34946#define HAVE_STRNCASECMP 1 34947_ACEOF 34948 34949 ac_cv_func_strncasecmp="yes" 34950 else 34951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34952$as_echo "no" >&6; } 34953 ac_cv_func_strncasecmp="no" 34954 fi 34955 34956 34957 # 34958 tst_links_strncmpi="unknown" 34959 tst_proto_strncmpi="unknown" 34960 tst_compi_strncmpi="unknown" 34961 tst_allow_strncmpi="unknown" 34962 # 34963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5 34964$as_echo_n "checking if strncmpi can be linked... " >&6; } 34965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34966/* end confdefs.h. */ 34967 34968 34969#define strncmpi innocuous_strncmpi 34970#ifdef __STDC__ 34971# include <limits.h> 34972#else 34973# include <assert.h> 34974#endif 34975#undef strncmpi 34976#ifdef __cplusplus 34977extern "C" 34978#endif 34979char strncmpi (); 34980#if defined __stub_strncmpi || defined __stub___strncmpi 34981choke me 34982#endif 34983 34984int main (void) 34985{ 34986return strncmpi (); 34987 ; 34988 return 0; 34989} 34990 34991_ACEOF 34992if ac_fn_c_try_link "$LINENO"; then : 34993 34994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34995$as_echo "yes" >&6; } 34996 tst_links_strncmpi="yes" 34997 34998else 34999 35000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35001$as_echo "no" >&6; } 35002 tst_links_strncmpi="no" 35003 35004fi 35005rm -f core conftest.err conftest.$ac_objext \ 35006 conftest$ac_exeext conftest.$ac_ext 35007 # 35008 if test "$tst_links_strncmpi" = "yes"; then 35009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5 35010$as_echo_n "checking if strncmpi is prototyped... " >&6; } 35011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35012/* end confdefs.h. */ 35013 35014 $curl_includes_string 35015 35016_ACEOF 35017if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 35018 $EGREP "strncmpi" >/dev/null 2>&1; then : 35019 35020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35021$as_echo "yes" >&6; } 35022 tst_proto_strncmpi="yes" 35023 35024else 35025 35026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35027$as_echo "no" >&6; } 35028 tst_proto_strncmpi="no" 35029 35030fi 35031rm -f conftest* 35032 35033 fi 35034 # 35035 if test "$tst_proto_strncmpi" = "yes"; then 35036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5 35037$as_echo_n "checking if strncmpi is compilable... " >&6; } 35038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35039/* end confdefs.h. */ 35040 35041 35042 $curl_includes_string 35043 35044int main (void) 35045{ 35046 35047 if(0 != strncmpi(0, 0)) 35048 return 1; 35049 35050 ; 35051 return 0; 35052} 35053 35054_ACEOF 35055if ac_fn_c_try_compile "$LINENO"; then : 35056 35057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35058$as_echo "yes" >&6; } 35059 tst_compi_strncmpi="yes" 35060 35061else 35062 35063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35064$as_echo "no" >&6; } 35065 tst_compi_strncmpi="no" 35066 35067fi 35068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35069 fi 35070 # 35071 if test "$tst_compi_strncmpi" = "yes"; then 35072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5 35073$as_echo_n "checking if strncmpi usage allowed... " >&6; } 35074 if test "x$curl_disallow_strncmpi" != "xyes"; then 35075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35076$as_echo "yes" >&6; } 35077 tst_allow_strncmpi="yes" 35078 else 35079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35080$as_echo "no" >&6; } 35081 tst_allow_strncmpi="no" 35082 fi 35083 fi 35084 # 35085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5 35086$as_echo_n "checking if strncmpi might be used... " >&6; } 35087 if test "$tst_links_strncmpi" = "yes" && 35088 test "$tst_proto_strncmpi" = "yes" && 35089 test "$tst_compi_strncmpi" = "yes" && 35090 test "$tst_allow_strncmpi" = "yes"; then 35091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35092$as_echo "yes" >&6; } 35093 35094cat >>confdefs.h <<_ACEOF 35095#define HAVE_STRNCMPI 1 35096_ACEOF 35097 35098 ac_cv_func_strncmpi="yes" 35099 else 35100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35101$as_echo "no" >&6; } 35102 ac_cv_func_strncmpi="no" 35103 fi 35104 35105 35106 # 35107 tst_links_strnicmp="unknown" 35108 tst_proto_strnicmp="unknown" 35109 tst_compi_strnicmp="unknown" 35110 tst_allow_strnicmp="unknown" 35111 # 35112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5 35113$as_echo_n "checking if strnicmp can be linked... " >&6; } 35114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35115/* end confdefs.h. */ 35116 35117 35118#define strnicmp innocuous_strnicmp 35119#ifdef __STDC__ 35120# include <limits.h> 35121#else 35122# include <assert.h> 35123#endif 35124#undef strnicmp 35125#ifdef __cplusplus 35126extern "C" 35127#endif 35128char strnicmp (); 35129#if defined __stub_strnicmp || defined __stub___strnicmp 35130choke me 35131#endif 35132 35133int main (void) 35134{ 35135return strnicmp (); 35136 ; 35137 return 0; 35138} 35139 35140_ACEOF 35141if ac_fn_c_try_link "$LINENO"; then : 35142 35143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35144$as_echo "yes" >&6; } 35145 tst_links_strnicmp="yes" 35146 35147else 35148 35149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35150$as_echo "no" >&6; } 35151 tst_links_strnicmp="no" 35152 35153fi 35154rm -f core conftest.err conftest.$ac_objext \ 35155 conftest$ac_exeext conftest.$ac_ext 35156 # 35157 if test "$tst_links_strnicmp" = "yes"; then 35158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5 35159$as_echo_n "checking if strnicmp is prototyped... " >&6; } 35160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35161/* end confdefs.h. */ 35162 35163 $curl_includes_string 35164 35165_ACEOF 35166if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 35167 $EGREP "strnicmp" >/dev/null 2>&1; then : 35168 35169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35170$as_echo "yes" >&6; } 35171 tst_proto_strnicmp="yes" 35172 35173else 35174 35175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35176$as_echo "no" >&6; } 35177 tst_proto_strnicmp="no" 35178 35179fi 35180rm -f conftest* 35181 35182 fi 35183 # 35184 if test "$tst_proto_strnicmp" = "yes"; then 35185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5 35186$as_echo_n "checking if strnicmp is compilable... " >&6; } 35187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35188/* end confdefs.h. */ 35189 35190 35191 $curl_includes_string 35192 35193int main (void) 35194{ 35195 35196 if(0 != strnicmp(0, 0)) 35197 return 1; 35198 35199 ; 35200 return 0; 35201} 35202 35203_ACEOF 35204if ac_fn_c_try_compile "$LINENO"; then : 35205 35206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35207$as_echo "yes" >&6; } 35208 tst_compi_strnicmp="yes" 35209 35210else 35211 35212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35213$as_echo "no" >&6; } 35214 tst_compi_strnicmp="no" 35215 35216fi 35217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35218 fi 35219 # 35220 if test "$tst_compi_strnicmp" = "yes"; then 35221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5 35222$as_echo_n "checking if strnicmp usage allowed... " >&6; } 35223 if test "x$curl_disallow_strnicmp" != "xyes"; then 35224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35225$as_echo "yes" >&6; } 35226 tst_allow_strnicmp="yes" 35227 else 35228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35229$as_echo "no" >&6; } 35230 tst_allow_strnicmp="no" 35231 fi 35232 fi 35233 # 35234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5 35235$as_echo_n "checking if strnicmp might be used... " >&6; } 35236 if test "$tst_links_strnicmp" = "yes" && 35237 test "$tst_proto_strnicmp" = "yes" && 35238 test "$tst_compi_strnicmp" = "yes" && 35239 test "$tst_allow_strnicmp" = "yes"; then 35240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35241$as_echo "yes" >&6; } 35242 35243cat >>confdefs.h <<_ACEOF 35244#define HAVE_STRNICMP 1 35245_ACEOF 35246 35247 ac_cv_func_strnicmp="yes" 35248 else 35249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35250$as_echo "no" >&6; } 35251 ac_cv_func_strnicmp="no" 35252 fi 35253 35254 35255 # 35256 tst_links_strstr="unknown" 35257 tst_proto_strstr="unknown" 35258 tst_compi_strstr="unknown" 35259 tst_allow_strstr="unknown" 35260 # 35261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5 35262$as_echo_n "checking if strstr can be linked... " >&6; } 35263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35264/* end confdefs.h. */ 35265 35266 35267#define strstr innocuous_strstr 35268#ifdef __STDC__ 35269# include <limits.h> 35270#else 35271# include <assert.h> 35272#endif 35273#undef strstr 35274#ifdef __cplusplus 35275extern "C" 35276#endif 35277char strstr (); 35278#if defined __stub_strstr || defined __stub___strstr 35279choke me 35280#endif 35281 35282int main (void) 35283{ 35284return strstr (); 35285 ; 35286 return 0; 35287} 35288 35289_ACEOF 35290if ac_fn_c_try_link "$LINENO"; then : 35291 35292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35293$as_echo "yes" >&6; } 35294 tst_links_strstr="yes" 35295 35296else 35297 35298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35299$as_echo "no" >&6; } 35300 tst_links_strstr="no" 35301 35302fi 35303rm -f core conftest.err conftest.$ac_objext \ 35304 conftest$ac_exeext conftest.$ac_ext 35305 # 35306 if test "$tst_links_strstr" = "yes"; then 35307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5 35308$as_echo_n "checking if strstr is prototyped... " >&6; } 35309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35310/* end confdefs.h. */ 35311 35312 $curl_includes_string 35313 35314_ACEOF 35315if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 35316 $EGREP "strstr" >/dev/null 2>&1; then : 35317 35318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35319$as_echo "yes" >&6; } 35320 tst_proto_strstr="yes" 35321 35322else 35323 35324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35325$as_echo "no" >&6; } 35326 tst_proto_strstr="no" 35327 35328fi 35329rm -f conftest* 35330 35331 fi 35332 # 35333 if test "$tst_proto_strstr" = "yes"; then 35334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5 35335$as_echo_n "checking if strstr is compilable... " >&6; } 35336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35337/* end confdefs.h. */ 35338 35339 35340 $curl_includes_string 35341 35342int main (void) 35343{ 35344 35345 if(0 != strstr(0, 0)) 35346 return 1; 35347 35348 ; 35349 return 0; 35350} 35351 35352_ACEOF 35353if ac_fn_c_try_compile "$LINENO"; then : 35354 35355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35356$as_echo "yes" >&6; } 35357 tst_compi_strstr="yes" 35358 35359else 35360 35361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35362$as_echo "no" >&6; } 35363 tst_compi_strstr="no" 35364 35365fi 35366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35367 fi 35368 # 35369 if test "$tst_compi_strstr" = "yes"; then 35370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5 35371$as_echo_n "checking if strstr usage allowed... " >&6; } 35372 if test "x$curl_disallow_strstr" != "xyes"; then 35373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35374$as_echo "yes" >&6; } 35375 tst_allow_strstr="yes" 35376 else 35377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35378$as_echo "no" >&6; } 35379 tst_allow_strstr="no" 35380 fi 35381 fi 35382 # 35383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5 35384$as_echo_n "checking if strstr might be used... " >&6; } 35385 if test "$tst_links_strstr" = "yes" && 35386 test "$tst_proto_strstr" = "yes" && 35387 test "$tst_compi_strstr" = "yes" && 35388 test "$tst_allow_strstr" = "yes"; then 35389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35390$as_echo "yes" >&6; } 35391 35392cat >>confdefs.h <<_ACEOF 35393#define HAVE_STRSTR 1 35394_ACEOF 35395 35396 ac_cv_func_strstr="yes" 35397 else 35398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35399$as_echo "no" >&6; } 35400 ac_cv_func_strstr="no" 35401 fi 35402 35403 35404 # 35405 tst_links_strtok_r="unknown" 35406 tst_proto_strtok_r="unknown" 35407 tst_compi_strtok_r="unknown" 35408 tst_allow_strtok_r="unknown" 35409 # 35410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5 35411$as_echo_n "checking if strtok_r can be linked... " >&6; } 35412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35413/* end confdefs.h. */ 35414 35415 35416#define strtok_r innocuous_strtok_r 35417#ifdef __STDC__ 35418# include <limits.h> 35419#else 35420# include <assert.h> 35421#endif 35422#undef strtok_r 35423#ifdef __cplusplus 35424extern "C" 35425#endif 35426char strtok_r (); 35427#if defined __stub_strtok_r || defined __stub___strtok_r 35428choke me 35429#endif 35430 35431int main (void) 35432{ 35433return strtok_r (); 35434 ; 35435 return 0; 35436} 35437 35438_ACEOF 35439if ac_fn_c_try_link "$LINENO"; then : 35440 35441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35442$as_echo "yes" >&6; } 35443 tst_links_strtok_r="yes" 35444 35445else 35446 35447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35448$as_echo "no" >&6; } 35449 tst_links_strtok_r="no" 35450 35451fi 35452rm -f core conftest.err conftest.$ac_objext \ 35453 conftest$ac_exeext conftest.$ac_ext 35454 # 35455 if test "$tst_links_strtok_r" = "yes"; then 35456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5 35457$as_echo_n "checking if strtok_r is prototyped... " >&6; } 35458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35459/* end confdefs.h. */ 35460 35461 $curl_includes_string 35462 35463_ACEOF 35464if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 35465 $EGREP "strtok_r" >/dev/null 2>&1; then : 35466 35467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35468$as_echo "yes" >&6; } 35469 tst_proto_strtok_r="yes" 35470 35471else 35472 35473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35474$as_echo "no" >&6; } 35475 tst_proto_strtok_r="no" 35476 35477fi 35478rm -f conftest* 35479 35480 fi 35481 # 35482 if test "$tst_proto_strtok_r" = "yes"; then 35483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5 35484$as_echo_n "checking if strtok_r is compilable... " >&6; } 35485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35486/* end confdefs.h. */ 35487 35488 35489 $curl_includes_string 35490 35491int main (void) 35492{ 35493 35494 if(0 != strtok_r(0, 0, 0)) 35495 return 1; 35496 35497 ; 35498 return 0; 35499} 35500 35501_ACEOF 35502if ac_fn_c_try_compile "$LINENO"; then : 35503 35504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35505$as_echo "yes" >&6; } 35506 tst_compi_strtok_r="yes" 35507 35508else 35509 35510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35511$as_echo "no" >&6; } 35512 tst_compi_strtok_r="no" 35513 35514fi 35515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35516 fi 35517 # 35518 if test "$tst_compi_strtok_r" = "yes"; then 35519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5 35520$as_echo_n "checking if strtok_r usage allowed... " >&6; } 35521 if test "x$curl_disallow_strtok_r" != "xyes"; then 35522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35523$as_echo "yes" >&6; } 35524 tst_allow_strtok_r="yes" 35525 else 35526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35527$as_echo "no" >&6; } 35528 tst_allow_strtok_r="no" 35529 fi 35530 fi 35531 # 35532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5 35533$as_echo_n "checking if strtok_r might be used... " >&6; } 35534 if test "$tst_links_strtok_r" = "yes" && 35535 test "$tst_proto_strtok_r" = "yes" && 35536 test "$tst_compi_strtok_r" = "yes" && 35537 test "$tst_allow_strtok_r" = "yes"; then 35538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35539$as_echo "yes" >&6; } 35540 35541cat >>confdefs.h <<_ACEOF 35542#define HAVE_STRTOK_R 1 35543_ACEOF 35544 35545 ac_cv_func_strtok_r="yes" 35546 else 35547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35548$as_echo "no" >&6; } 35549 ac_cv_func_strtok_r="no" 35550 fi 35551 35552 35553 # 35554 tst_links_strtoll="unknown" 35555 tst_proto_strtoll="unknown" 35556 tst_compi_strtoll="unknown" 35557 tst_allow_strtoll="unknown" 35558 # 35559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5 35560$as_echo_n "checking if strtoll can be linked... " >&6; } 35561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35562/* end confdefs.h. */ 35563 35564 35565#define strtoll innocuous_strtoll 35566#ifdef __STDC__ 35567# include <limits.h> 35568#else 35569# include <assert.h> 35570#endif 35571#undef strtoll 35572#ifdef __cplusplus 35573extern "C" 35574#endif 35575char strtoll (); 35576#if defined __stub_strtoll || defined __stub___strtoll 35577choke me 35578#endif 35579 35580int main (void) 35581{ 35582return strtoll (); 35583 ; 35584 return 0; 35585} 35586 35587_ACEOF 35588if ac_fn_c_try_link "$LINENO"; then : 35589 35590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35591$as_echo "yes" >&6; } 35592 tst_links_strtoll="yes" 35593 35594else 35595 35596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35597$as_echo "no" >&6; } 35598 tst_links_strtoll="no" 35599 35600fi 35601rm -f core conftest.err conftest.$ac_objext \ 35602 conftest$ac_exeext conftest.$ac_ext 35603 # 35604 if test "$tst_links_strtoll" = "yes"; then 35605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5 35606$as_echo_n "checking if strtoll is prototyped... " >&6; } 35607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35608/* end confdefs.h. */ 35609 35610 $curl_includes_stdlib 35611 35612_ACEOF 35613if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 35614 $EGREP "strtoll" >/dev/null 2>&1; then : 35615 35616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35617$as_echo "yes" >&6; } 35618 tst_proto_strtoll="yes" 35619 35620else 35621 35622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35623$as_echo "no" >&6; } 35624 tst_proto_strtoll="no" 35625 35626fi 35627rm -f conftest* 35628 35629 fi 35630 # 35631 if test "$tst_proto_strtoll" = "yes"; then 35632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5 35633$as_echo_n "checking if strtoll is compilable... " >&6; } 35634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35635/* end confdefs.h. */ 35636 35637 35638 $curl_includes_stdlib 35639 35640int main (void) 35641{ 35642 35643 if(0 != strtoll(0, 0, 0)) 35644 return 1; 35645 35646 ; 35647 return 0; 35648} 35649 35650_ACEOF 35651if ac_fn_c_try_compile "$LINENO"; then : 35652 35653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35654$as_echo "yes" >&6; } 35655 tst_compi_strtoll="yes" 35656 35657else 35658 35659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35660$as_echo "no" >&6; } 35661 tst_compi_strtoll="no" 35662 35663fi 35664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35665 fi 35666 # 35667 if test "$tst_compi_strtoll" = "yes"; then 35668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5 35669$as_echo_n "checking if strtoll usage allowed... " >&6; } 35670 if test "x$curl_disallow_strtoll" != "xyes"; then 35671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35672$as_echo "yes" >&6; } 35673 tst_allow_strtoll="yes" 35674 else 35675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35676$as_echo "no" >&6; } 35677 tst_allow_strtoll="no" 35678 fi 35679 fi 35680 # 35681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5 35682$as_echo_n "checking if strtoll might be used... " >&6; } 35683 if test "$tst_links_strtoll" = "yes" && 35684 test "$tst_proto_strtoll" = "yes" && 35685 test "$tst_compi_strtoll" = "yes" && 35686 test "$tst_allow_strtoll" = "yes"; then 35687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35688$as_echo "yes" >&6; } 35689 35690cat >>confdefs.h <<_ACEOF 35691#define HAVE_STRTOLL 1 35692_ACEOF 35693 35694 ac_cv_func_strtoll="yes" 35695 else 35696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35697$as_echo "no" >&6; } 35698 ac_cv_func_strtoll="no" 35699 fi 35700 35701 35702curl_includes_sys_uio="\ 35703/* includes start */ 35704#ifdef HAVE_SYS_TYPES_H 35705# include <sys/types.h> 35706#endif 35707#ifdef HAVE_SYS_UIO_H 35708# include <sys/uio.h> 35709#endif 35710/* includes end */" 35711 for ac_header in sys/types.h sys/uio.h 35712do : 35713 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 35714ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio 35715" 35716eval as_val=\$$as_ac_Header 35717 if test "x$as_val" = x""yes; then : 35718 cat >>confdefs.h <<_ACEOF 35719#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 35720_ACEOF 35721 35722fi 35723 35724done 35725 35726 35727 35728 # 35729 tst_links_writev="unknown" 35730 tst_proto_writev="unknown" 35731 tst_compi_writev="unknown" 35732 tst_allow_writev="unknown" 35733 # 35734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5 35735$as_echo_n "checking if writev can be linked... " >&6; } 35736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35737/* end confdefs.h. */ 35738 35739 35740#define writev innocuous_writev 35741#ifdef __STDC__ 35742# include <limits.h> 35743#else 35744# include <assert.h> 35745#endif 35746#undef writev 35747#ifdef __cplusplus 35748extern "C" 35749#endif 35750char writev (); 35751#if defined __stub_writev || defined __stub___writev 35752choke me 35753#endif 35754 35755int main (void) 35756{ 35757return writev (); 35758 ; 35759 return 0; 35760} 35761 35762_ACEOF 35763if ac_fn_c_try_link "$LINENO"; then : 35764 35765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35766$as_echo "yes" >&6; } 35767 tst_links_writev="yes" 35768 35769else 35770 35771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35772$as_echo "no" >&6; } 35773 tst_links_writev="no" 35774 35775fi 35776rm -f core conftest.err conftest.$ac_objext \ 35777 conftest$ac_exeext conftest.$ac_ext 35778 # 35779 if test "$tst_links_writev" = "yes"; then 35780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5 35781$as_echo_n "checking if writev is prototyped... " >&6; } 35782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35783/* end confdefs.h. */ 35784 35785 $curl_includes_sys_uio 35786 35787_ACEOF 35788if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 35789 $EGREP "writev" >/dev/null 2>&1; then : 35790 35791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35792$as_echo "yes" >&6; } 35793 tst_proto_writev="yes" 35794 35795else 35796 35797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35798$as_echo "no" >&6; } 35799 tst_proto_writev="no" 35800 35801fi 35802rm -f conftest* 35803 35804 fi 35805 # 35806 if test "$tst_proto_writev" = "yes"; then 35807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5 35808$as_echo_n "checking if writev is compilable... " >&6; } 35809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35810/* end confdefs.h. */ 35811 35812 35813 $curl_includes_sys_uio 35814 35815int main (void) 35816{ 35817 35818 if(0 != writev(0, 0, 0)) 35819 return 1; 35820 35821 ; 35822 return 0; 35823} 35824 35825_ACEOF 35826if ac_fn_c_try_compile "$LINENO"; then : 35827 35828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35829$as_echo "yes" >&6; } 35830 tst_compi_writev="yes" 35831 35832else 35833 35834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35835$as_echo "no" >&6; } 35836 tst_compi_writev="no" 35837 35838fi 35839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35840 fi 35841 # 35842 if test "$tst_compi_writev" = "yes"; then 35843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5 35844$as_echo_n "checking if writev usage allowed... " >&6; } 35845 if test "x$curl_disallow_writev" != "xyes"; then 35846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35847$as_echo "yes" >&6; } 35848 tst_allow_writev="yes" 35849 else 35850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35851$as_echo "no" >&6; } 35852 tst_allow_writev="no" 35853 fi 35854 fi 35855 # 35856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5 35857$as_echo_n "checking if writev might be used... " >&6; } 35858 if test "$tst_links_writev" = "yes" && 35859 test "$tst_proto_writev" = "yes" && 35860 test "$tst_compi_writev" = "yes" && 35861 test "$tst_allow_writev" = "yes"; then 35862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35863$as_echo "yes" >&6; } 35864 35865cat >>confdefs.h <<_ACEOF 35866#define HAVE_WRITEV 1 35867_ACEOF 35868 35869 ac_cv_func_writev="yes" 35870 else 35871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35872$as_echo "no" >&6; } 35873 ac_cv_func_writev="no" 35874 fi 35875 35876 35877case $host in 35878 *msdosdjgpp) 35879 ac_cv_func_pipe=no 35880 skipcheck_pipe=yes 35881 { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5 35882$as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;} 35883 ;; 35884esac 35885 35886for ac_func in fork \ 35887 geteuid \ 35888 getpass_r \ 35889 getppid \ 35890 getprotobyname \ 35891 getpwuid \ 35892 getrlimit \ 35893 gettimeofday \ 35894 inet_addr \ 35895 perror \ 35896 pipe \ 35897 setlocale \ 35898 setmode \ 35899 setrlimit \ 35900 uname \ 35901 utime 35902 35903do : 35904 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 35905ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 35906eval as_val=\$$as_ac_var 35907 if test "x$as_val" = x""yes; then : 35908 cat >>confdefs.h <<_ACEOF 35909#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 35910_ACEOF 35911 35912 35913else 35914 35915 func="$ac_func" 35916 eval skipcheck=\$skipcheck_$func 35917 if test "x$skipcheck" != "xyes"; then 35918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5 35919$as_echo_n "checking deeper for $func... " >&6; } 35920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35921/* end confdefs.h. */ 35922 35923 35924 35925int main (void) 35926{ 35927 35928 $func (); 35929 35930 ; 35931 return 0; 35932} 35933 35934_ACEOF 35935if ac_fn_c_try_link "$LINENO"; then : 35936 35937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 35938$as_echo "yes" >&6; } 35939 eval "ac_cv_func_$func=yes" 35940 35941cat >>confdefs.h <<_ACEOF 35942#define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1 35943_ACEOF 35944 35945 35946else 35947 35948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5 35949$as_echo "but still no" >&6; } 35950 35951fi 35952rm -f core conftest.err conftest.$ac_objext \ 35953 conftest$ac_exeext conftest.$ac_ext 35954 fi 35955 35956fi 35957done 35958 35959 35960 35961 for ac_header in sys/types.h sys/socket.h netdb.h 35962do : 35963 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 35964ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 35965eval as_val=\$$as_ac_Header 35966 if test "x$as_val" = x""yes; then : 35967 cat >>confdefs.h <<_ACEOF 35968#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 35969_ACEOF 35970 35971fi 35972 35973done 35974 35975 # 35976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5 35977$as_echo_n "checking for getnameinfo... " >&6; } 35978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35979/* end confdefs.h. */ 35980 35981 35982#define getnameinfo innocuous_getnameinfo 35983#ifdef __STDC__ 35984# include <limits.h> 35985#else 35986# include <assert.h> 35987#endif 35988#undef getnameinfo 35989#ifdef __cplusplus 35990extern "C" 35991#endif 35992char getnameinfo (); 35993#if defined __stub_getnameinfo || defined __stub___getnameinfo 35994choke me 35995#endif 35996 35997int main (void) 35998{ 35999return getnameinfo (); 36000 ; 36001 return 0; 36002} 36003 36004_ACEOF 36005if ac_fn_c_try_link "$LINENO"; then : 36006 36007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36008$as_echo "yes" >&6; } 36009 curl_cv_getnameinfo="yes" 36010 36011else 36012 36013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36014$as_echo "no" >&6; } 36015 curl_cv_getnameinfo="no" 36016 36017fi 36018rm -f core conftest.err conftest.$ac_objext \ 36019 conftest$ac_exeext conftest.$ac_ext 36020 # 36021 if test "$curl_cv_getnameinfo" != "yes"; then 36022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for getnameinfo" >&5 36023$as_echo_n "checking deeper for getnameinfo... " >&6; } 36024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36025/* end confdefs.h. */ 36026 36027 36028 36029int main (void) 36030{ 36031 36032 getnameinfo(); 36033 36034 ; 36035 return 0; 36036} 36037 36038_ACEOF 36039if ac_fn_c_try_link "$LINENO"; then : 36040 36041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36042$as_echo "yes" >&6; } 36043 curl_cv_getnameinfo="yes" 36044 36045else 36046 36047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5 36048$as_echo "but still no" >&6; } 36049 curl_cv_getnameinfo="no" 36050 36051fi 36052rm -f core conftest.err conftest.$ac_objext \ 36053 conftest$ac_exeext conftest.$ac_ext 36054 fi 36055 # 36056 if test "$curl_cv_getnameinfo" != "yes"; then 36057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper and deeper for getnameinfo" >&5 36058$as_echo_n "checking deeper and deeper for getnameinfo... " >&6; } 36059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36060/* end confdefs.h. */ 36061 36062 36063#undef inline 36064#ifdef HAVE_WINDOWS_H 36065#ifndef WIN32_LEAN_AND_MEAN 36066#define WIN32_LEAN_AND_MEAN 36067#endif 36068#include <windows.h> 36069#ifdef HAVE_WINSOCK2_H 36070#include <winsock2.h> 36071#ifdef HAVE_WS2TCPIP_H 36072#include <ws2tcpip.h> 36073#endif 36074#endif 36075#else 36076#ifdef HAVE_SYS_TYPES_H 36077#include <sys/types.h> 36078#endif 36079#ifdef HAVE_SYS_SOCKET_H 36080#include <sys/socket.h> 36081#endif 36082#ifdef HAVE_NETDB_H 36083#include <netdb.h> 36084#endif 36085#endif 36086 36087int main (void) 36088{ 36089 36090 getnameinfo(0, 0, 0, 0, 0, 0, 0); 36091 36092 ; 36093 return 0; 36094} 36095 36096_ACEOF 36097if ac_fn_c_try_link "$LINENO"; then : 36098 36099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36100$as_echo "yes" >&6; } 36101 curl_cv_getnameinfo="yes" 36102 36103else 36104 36105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5 36106$as_echo "but still no" >&6; } 36107 curl_cv_getnameinfo="no" 36108 36109fi 36110rm -f core conftest.err conftest.$ac_objext \ 36111 conftest$ac_exeext conftest.$ac_ext 36112 fi 36113 # 36114 if test "$curl_cv_getnameinfo" = "yes"; then 36115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for getnameinfo" >&5 36116$as_echo_n "checking types of arguments for getnameinfo... " >&6; } 36117if test "${curl_cv_func_getnameinfo_args+set}" = set; then : 36118 $as_echo_n "(cached) " >&6 36119else 36120 36121 curl_cv_func_getnameinfo_args="unknown" 36122 for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do 36123 for gni_arg2 in 'socklen_t' 'size_t' 'int'; do 36124 for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do 36125 for gni_arg7 in 'int' 'unsigned int'; do 36126 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then 36127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36128/* end confdefs.h. */ 36129 36130 36131#undef inline 36132#ifdef HAVE_WINDOWS_H 36133#ifndef WIN32_LEAN_AND_MEAN 36134#define WIN32_LEAN_AND_MEAN 36135#endif 36136#if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501) 36137#undef _WIN32_WINNT 36138#define _WIN32_WINNT 0x0501 36139#endif 36140#include <windows.h> 36141#ifdef HAVE_WINSOCK2_H 36142#include <winsock2.h> 36143#ifdef HAVE_WS2TCPIP_H 36144#include <ws2tcpip.h> 36145#endif 36146#endif 36147#define GNICALLCONV WSAAPI 36148#else 36149#ifdef HAVE_SYS_TYPES_H 36150#include <sys/types.h> 36151#endif 36152#ifdef HAVE_SYS_SOCKET_H 36153#include <sys/socket.h> 36154#endif 36155#ifdef HAVE_NETDB_H 36156#include <netdb.h> 36157#endif 36158#define GNICALLCONV 36159#endif 36160 extern int GNICALLCONV getnameinfo($gni_arg1, $gni_arg2, 36161 char *, $gni_arg46, 36162 char *, $gni_arg46, 36163 $gni_arg7); 36164 36165int main (void) 36166{ 36167 36168 $gni_arg2 salen=0; 36169 $gni_arg46 hostlen=0; 36170 $gni_arg46 servlen=0; 36171 $gni_arg7 flags=0; 36172 int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags); 36173 36174 ; 36175 return 0; 36176} 36177 36178_ACEOF 36179if ac_fn_c_try_compile "$LINENO"; then : 36180 36181 curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7" 36182 36183fi 36184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36185 fi 36186 done 36187 done 36188 done 36189 done 36190 36191fi 36192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_getnameinfo_args" >&5 36193$as_echo "$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK 36194 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then 36195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for getnameinfo args" >&5 36196$as_echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;} 36197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_GETNAMEINFO will not be defined" >&5 36198$as_echo "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;} 36199 else 36200 gni_prev_IFS=$IFS; IFS=',' 36201 set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'` 36202 IFS=$gni_prev_IFS 36203 shift 36204 # 36205 gni_qual_type_arg1=$1 36206 # 36207 36208cat >>confdefs.h <<_ACEOF 36209#define GETNAMEINFO_TYPE_ARG2 $2 36210_ACEOF 36211 36212 36213cat >>confdefs.h <<_ACEOF 36214#define GETNAMEINFO_TYPE_ARG46 $3 36215_ACEOF 36216 36217 36218cat >>confdefs.h <<_ACEOF 36219#define GETNAMEINFO_TYPE_ARG7 $4 36220_ACEOF 36221 36222 # 36223 prev_sh_opts=$- 36224 # 36225 case $prev_sh_opts in 36226 *f*) 36227 ;; 36228 *) 36229 set -f 36230 ;; 36231 esac 36232 # 36233 case "$gni_qual_type_arg1" in 36234 const*) 36235 gni_qual_arg1=const 36236 gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'` 36237 ;; 36238 *) 36239 gni_qual_arg1= 36240 gni_type_arg1=$gni_qual_type_arg1 36241 ;; 36242 esac 36243 # 36244 36245cat >>confdefs.h <<_ACEOF 36246#define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1 36247_ACEOF 36248 36249 36250cat >>confdefs.h <<_ACEOF 36251#define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1 36252_ACEOF 36253 36254 # 36255 case $prev_sh_opts in 36256 *f*) 36257 ;; 36258 *) 36259 set +f 36260 ;; 36261 esac 36262 # 36263 36264cat >>confdefs.h <<_ACEOF 36265#define HAVE_GETNAMEINFO 1 36266_ACEOF 36267 36268 ac_cv_func_getnameinfo="yes" 36269 fi 36270 fi 36271 36272 36273if test "$ipv6" = "yes"; then 36274 if test "$ac_cv_func_getaddrinfo" = "yes"; then 36275 36276$as_echo "#define ENABLE_IPV6 1" >>confdefs.h 36277 36278 IPV6_ENABLED=1 36279 36280 fi 36281 36282 for ac_header in stdio.h sys/types.h sys/socket.h \ 36283 netdb.h netinet/in.h arpa/inet.h 36284do : 36285 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 36286ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 36287eval as_val=\$$as_ac_Header 36288 if test "x$as_val" = x""yes; then : 36289 cat >>confdefs.h <<_ACEOF 36290#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 36291_ACEOF 36292 36293fi 36294 36295done 36296 36297 # 36298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working NI_WITHSCOPEID" >&5 36299$as_echo_n "checking for working NI_WITHSCOPEID... " >&6; } 36300if test "${ac_cv_working_ni_withscopeid+set}" = set; then : 36301 $as_echo_n "(cached) " >&6 36302else 36303 36304 if test "$cross_compiling" = yes; then : 36305 36306 # Program is not run when cross-compiling. So we assume 36307 # NI_WITHSCOPEID will work if we are able to compile it. 36308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36309/* end confdefs.h. */ 36310 36311 36312#include <sys/types.h> 36313#include <sys/socket.h> 36314#include <netdb.h> 36315 36316int main (void) 36317{ 36318 36319 unsigned int dummy= NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID; 36320 36321 ; 36322 return 0; 36323} 36324 36325_ACEOF 36326if ac_fn_c_try_compile "$LINENO"; then : 36327 36328 ac_cv_working_ni_withscopeid="yes" 36329 36330else 36331 36332 ac_cv_working_ni_withscopeid="no" 36333 36334fi 36335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # AC-COMPILE-IFELSE 36336 36337else 36338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36339/* end confdefs.h. */ 36340 36341 36342#ifdef HAVE_STDLIB_H 36343#include <stdlib.h> 36344#endif 36345#ifdef HAVE_STDIO_H 36346#include <stdio.h> 36347#endif 36348#ifdef HAVE_SYS_TYPES_H 36349#include <sys/types.h> 36350#endif 36351#ifdef HAVE_SYS_SOCKET_H 36352#include <sys/socket.h> 36353#endif 36354#ifdef HAVE_NETDB_H 36355#include <netdb.h> 36356#endif 36357#ifdef HAVE_NETINET_IN_H 36358#include <netinet/in.h> 36359#endif 36360#ifdef HAVE_ARPA_INET_H 36361#include <arpa/inet.h> 36362#endif 36363 36364int main (void) 36365{ 36366 36367#if defined(NI_WITHSCOPEID) && defined(HAVE_GETNAMEINFO) 36368#ifdef HAVE_STRUCT_SOCKADDR_STORAGE 36369 struct sockaddr_storage sa; 36370#else 36371 unsigned char sa[256]; 36372#endif 36373 char hostbuf[NI_MAXHOST]; 36374 int rc; 36375 GETNAMEINFO_TYPE_ARG2 salen = (GETNAMEINFO_TYPE_ARG2)sizeof(sa); 36376 GETNAMEINFO_TYPE_ARG46 hostlen = (GETNAMEINFO_TYPE_ARG46)sizeof(hostbuf); 36377 GETNAMEINFO_TYPE_ARG7 flags = NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID; 36378 int fd = socket(AF_INET6, SOCK_STREAM, 0); 36379 if(fd < 0) { 36380 perror("socket()"); 36381 return 1; /* Error creating socket */ 36382 } 36383 rc = getsockname(fd, (GETNAMEINFO_TYPE_ARG1)&sa, &salen); 36384 if(rc) { 36385 perror("getsockname()"); 36386 return 2; /* Error retrieving socket name */ 36387 } 36388 rc = getnameinfo((GETNAMEINFO_TYPE_ARG1)&sa, salen, hostbuf, hostlen, NULL, 0, flags); 36389 if(rc) { 36390 printf("rc = %s\n", gai_strerror(rc)); 36391 return 3; /* Error translating socket address */ 36392 } 36393 return 0; /* Ok, NI_WITHSCOPEID works */ 36394#else 36395 return 4; /* Error, NI_WITHSCOPEID not defined or no getnameinfo() */ 36396#endif 36397 36398 ; 36399 return 0; 36400} # AC-LANG-PROGRAM 36401 36402_ACEOF 36403if ac_fn_c_try_run "$LINENO"; then : 36404 36405 # Exit code == 0. Program worked. 36406 ac_cv_working_ni_withscopeid="yes" 36407 36408else 36409 36410 # Exit code != 0. Program failed. 36411 ac_cv_working_ni_withscopeid="no" 36412 36413fi 36414rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 36415 conftest.$ac_objext conftest.beam conftest.$ac_ext 36416fi 36417 # AC-RUN-IFELSE 36418 36419fi 36420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_ni_withscopeid" >&5 36421$as_echo "$ac_cv_working_ni_withscopeid" >&6; } # AC-CACHE-CHECK 36422 case "$ac_cv_working_ni_withscopeid" in 36423 yes) 36424 36425$as_echo "#define HAVE_NI_WITHSCOPEID 1" >>confdefs.h 36426 36427 ;; 36428 esac 36429 36430fi 36431 36432 36433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable non-blocking communications" >&5 36434$as_echo_n "checking whether to enable non-blocking communications... " >&6; } 36435 OPT_NONBLOCKING="default" 36436 # Check whether --enable-nonblocking was given. 36437if test "${enable_nonblocking+set}" = set; then : 36438 enableval=$enable_nonblocking; OPT_NONBLOCKING=$enableval 36439fi 36440 36441 case "$OPT_NONBLOCKING" in 36442 no) 36443 want_nonblocking="no" 36444 ;; 36445 default) 36446 want_nonblocking="yes" 36447 ;; 36448 *) 36449 want_nonblocking="yes" 36450 ;; 36451 esac 36452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_nonblocking" >&5 36453$as_echo "$want_nonblocking" >&6; } 36454 36455 36456 # 36457 tst_method="unknown" 36458 if test "$want_nonblocking" = "yes"; then 36459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5 36460$as_echo_n "checking how to set a socket into non-blocking mode... " >&6; } 36461 if test "x$ac_cv_func_fcntl_o_nonblock" = "xyes"; then 36462 tst_method="fcntl O_NONBLOCK" 36463 elif test "x$ac_cv_func_ioctl_fionbio" = "xyes"; then 36464 tst_method="ioctl FIONBIO" 36465 elif test "x$ac_cv_func_ioctlsocket_fionbio" = "xyes"; then 36466 tst_method="ioctlsocket FIONBIO" 36467 elif test "x$ac_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then 36468 tst_method="IoctlSocket FIONBIO" 36469 elif test "x$ac_cv_func_setsockopt_so_nonblock" = "xyes"; then 36470 tst_method="setsockopt SO_NONBLOCK" 36471 fi 36472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5 36473$as_echo "$tst_method" >&6; } 36474 if test "$tst_method" = "unknown"; then 36475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5 36476$as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;} 36477 fi 36478 fi 36479 if test "$tst_method" = "unknown"; then 36480 36481cat >>confdefs.h <<_ACEOF 36482#define USE_BLOCKING_SOCKETS 1 36483_ACEOF 36484 36485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-blocking sockets disabled." >&5 36486$as_echo "$as_me: WARNING: non-blocking sockets disabled." >&2;} 36487 fi 36488 36489 36490 36491# Extract the first word of "perl", so it can be a program name with args. 36492set dummy perl; ac_word=$2 36493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36494$as_echo_n "checking for $ac_word... " >&6; } 36495if test "${ac_cv_path_PERL+set}" = set; then : 36496 $as_echo_n "(cached) " >&6 36497else 36498 case $PERL in 36499 [\\/]* | ?:[\\/]*) 36500 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 36501 ;; 36502 *) 36503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36504as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin " 36505for as_dir in $as_dummy 36506do 36507 IFS=$as_save_IFS 36508 test -z "$as_dir" && as_dir=. 36509 for ac_exec_ext in '' $ac_executable_extensions; do 36510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 36511 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 36512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36513 break 2 36514 fi 36515done 36516 done 36517IFS=$as_save_IFS 36518 36519 ;; 36520esac 36521fi 36522PERL=$ac_cv_path_PERL 36523if test -n "$PERL"; then 36524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 36525$as_echo "$PERL" >&6; } 36526else 36527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36528$as_echo "no" >&6; } 36529fi 36530 36531 36532 36533 36534for ac_prog in gnroff nroff 36535do 36536 # Extract the first word of "$ac_prog", so it can be a program name with args. 36537set dummy $ac_prog; ac_word=$2 36538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36539$as_echo_n "checking for $ac_word... " >&6; } 36540if test "${ac_cv_path_NROFF+set}" = set; then : 36541 $as_echo_n "(cached) " >&6 36542else 36543 case $NROFF in 36544 [\\/]* | ?:[\\/]*) 36545 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. 36546 ;; 36547 *) 36548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36549as_dummy="$PATH:/usr/bin/:/usr/local/bin " 36550for as_dir in $as_dummy 36551do 36552 IFS=$as_save_IFS 36553 test -z "$as_dir" && as_dir=. 36554 for ac_exec_ext in '' $ac_executable_extensions; do 36555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 36556 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" 36557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36558 break 2 36559 fi 36560done 36561 done 36562IFS=$as_save_IFS 36563 36564 ;; 36565esac 36566fi 36567NROFF=$ac_cv_path_NROFF 36568if test -n "$NROFF"; then 36569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5 36570$as_echo "$NROFF" >&6; } 36571else 36572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36573$as_echo "no" >&6; } 36574fi 36575 36576 36577 test -n "$NROFF" && break 36578done 36579 36580 36581 36582if test -n "$NROFF"; then 36583 36584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5 36585$as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; } 36586 MANOPT="-man" 36587 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null` 36588 if test -z "$mancheck"; then 36589 MANOPT="-mandoc" 36590 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null` 36591 if test -z "$mancheck"; then 36592 MANOPT="" 36593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 36594$as_echo "failed" >&6; } 36595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5 36596$as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;} 36597 else 36598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5 36599$as_echo "$MANOPT" >&6; } 36600 fi 36601 else 36602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5 36603$as_echo "$MANOPT" >&6; } 36604 fi 36605 36606fi 36607 36608if test -z "$MANOPT" 36609then 36610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5 36611$as_echo "$as_me: WARNING: disabling built-in manual" >&2;} 36612 USE_MANUAL="no"; 36613fi 36614 36615 36616if test "$USE_MANUAL" = "1"; then 36617 36618$as_echo "#define USE_MANUAL 1" >>confdefs.h 36619 36620 curl_manual_msg="enabled" 36621fi 36622 36623 36624 36625if test x"$USE_MANUAL" = x1; then 36626 USE_MANUAL_TRUE= 36627 USE_MANUAL_FALSE='#' 36628else 36629 USE_MANUAL_TRUE='#' 36630 USE_MANUAL_FALSE= 36631fi 36632 36633 36634 36635 36636 36637 # 36638 if test "$want_ares" = "yes"; then 36639 clean_CPPFLAGS="$CPPFLAGS" 36640 clean_LDFLAGS="$LDFLAGS" 36641 clean_LIBS="$LIBS" 36642 embedded_ares="unknown" 36643 configure_runpath=`pwd` 36644 embedded_ares_builddir="$configure_runpath/ares" 36645 if test -n "$want_ares_path"; then 36646 ares_CPPFLAGS="-I$want_ares_path/include" 36647 ares_LDFLAGS="-L$want_ares_path/lib" 36648 ares_LIBS="-lcares" 36649 else 36650 if test -d "$srcdir/ares"; then 36651 embedded_ares="yes" 36652 subdirs="$subdirs ares" 36653 36654 ares_CPPFLAGS="" 36655 ares_LDFLAGS="-L$embedded_ares_builddir" 36656 ares_LIBS="-lcares" 36657 else 36658 ares_CPPFLAGS="" 36659 ares_LDFLAGS="" 36660 ares_LIBS="-lcares" 36661 fi 36662 fi 36663 # 36664 CPPFLAGS="$ares_CPPFLAGS $clean_CPPFLAGS" 36665 LDFLAGS="$ares_LDFLAGS $clean_LDFLAGS" 36666 LIBS="$ares_LIBS $clean_LIBS" 36667 # 36668 if test "$embedded_ares" != "yes"; then 36669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5 36670$as_echo_n "checking that c-ares is good and recent enough... " >&6; } 36671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36672/* end confdefs.h. */ 36673 36674 36675#include <ares.h> 36676 /* set of dummy functions in case c-ares was built with debug */ 36677 void curl_dofree() { } 36678 void curl_sclose() { } 36679 void curl_domalloc() { } 36680 void curl_docalloc() { } 36681 void curl_socket() { } 36682 36683int main (void) 36684{ 36685 36686 ares_channel channel; 36687 ares_cancel(channel); /* added in 1.2.0 */ 36688 ares_process_fd(channel, 0, 0); /* added in 1.4.0 */ 36689 ares_dup(&channel, channel); /* added in 1.6.0 */ 36690 36691 ; 36692 return 0; 36693} 36694 36695_ACEOF 36696if ac_fn_c_try_link "$LINENO"; then : 36697 36698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36699$as_echo "yes" >&6; } 36700 36701else 36702 36703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36704$as_echo "no" >&6; } 36705 as_fn_error "c-ares library defective or too old" "$LINENO" 5 36706 CPPFLAGS="$clean_CPPFLAGS" 36707 LDFLAGS="$clean_LDFLAGS" 36708 LIBS="$clean_LIBS" 36709 # prevent usage 36710 want_ares="no" 36711 36712fi 36713rm -f core conftest.err conftest.$ac_objext \ 36714 conftest$ac_exeext conftest.$ac_ext 36715 fi 36716 if test "$want_ares" = "yes"; then 36717 36718$as_echo "#define USE_ARES 1" >>confdefs.h 36719 36720 USE_ARES=1 36721 36722 curl_res_msg="c-ares" 36723 fi 36724 fi 36725 36726 36727 36728if test x$embedded_ares = xyes; then 36729 USE_EMBEDDED_ARES_TRUE= 36730 USE_EMBEDDED_ARES_FALSE='#' 36731else 36732 USE_EMBEDDED_ARES_TRUE='#' 36733 USE_EMBEDDED_ARES_FALSE= 36734fi 36735 36736 36737if test "x$ac_cv_native_windows" != "xyes" && 36738 test "x$enable_shared" = "xyes"; then 36739 build_libhostname=yes 36740else 36741 build_libhostname=no 36742fi 36743 36744 36745if test x$build_libhostname = xyes; then 36746 BUILD_LIBHOSTNAME_TRUE= 36747 BUILD_LIBHOSTNAME_FALSE='#' 36748else 36749 BUILD_LIBHOSTNAME_TRUE='#' 36750 BUILD_LIBHOSTNAME_FALSE= 36751fi 36752 36753 36754 36755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5 36756$as_echo_n "checking whether to enable the threaded resolver... " >&6; } 36757 OPT_THRES="default" 36758 # Check whether --enable-threaded_resolver was given. 36759if test "${enable_threaded_resolver+set}" = set; then : 36760 enableval=$enable_threaded_resolver; OPT_THRES=$enableval 36761fi 36762 36763 case "$OPT_THRES" in 36764 yes) 36765 want_thres="yes" 36766 ;; 36767 *) 36768 want_thres="no" 36769 ;; 36770 esac 36771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5 36772$as_echo "$want_thres" >&6; } 36773 36774 36775if test "x$want_thres" = xyes && test "x$want_ares" = xyes; then 36776 as_fn_error "Options --enable-threaded-resolver and --enable-ares are mutually exclusive" "$LINENO" 5 36777fi 36778 36779if test "$want_thres" = "yes"; then 36780 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 36781if test "x$ac_cv_header_pthread_h" = x""yes; then : 36782 36783$as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h 36784 36785 save_CFLAGS="$CFLAGS" 36786 CFLAGS="$CFLAGS -pthread" 36787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 36788$as_echo_n "checking for pthread_create in -lpthread... " >&6; } 36789if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then : 36790 $as_echo_n "(cached) " >&6 36791else 36792 ac_check_lib_save_LIBS=$LIBS 36793LIBS="-lpthread $LIBS" 36794cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36795/* end confdefs.h. */ 36796 36797 36798#ifdef __cplusplus 36799extern "C" 36800#endif 36801char pthread_create (); 36802int main (void) 36803{ 36804return pthread_create (); 36805 ; 36806 return 0; 36807} 36808_ACEOF 36809if ac_fn_c_try_link "$LINENO"; then : 36810 ac_cv_lib_pthread_pthread_create=yes 36811else 36812 ac_cv_lib_pthread_pthread_create=no 36813fi 36814rm -f core conftest.err conftest.$ac_objext \ 36815 conftest$ac_exeext conftest.$ac_ext 36816LIBS=$ac_check_lib_save_LIBS 36817fi 36818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 36819$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } 36820if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then : 36821 { $as_echo "$as_me:${as_lineno-$LINENO}: using POSIX threaded DNS lookup" >&5 36822$as_echo "$as_me: using POSIX threaded DNS lookup" >&6;} 36823 36824$as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h 36825 36826 USE_THREADS_POSIX=1 36827 curl_res_msg="threaded" 36828 36829else 36830 CFLAGS="$save_CFLAGS" 36831fi 36832 36833 36834fi 36835 36836 36837fi 36838 36839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5 36840$as_echo_n "checking whether to enable verbose strings... " >&6; } 36841# Check whether --enable-verbose was given. 36842if test "${enable_verbose+set}" = set; then : 36843 enableval=$enable_verbose; case "$enableval" in 36844 no) 36845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36846$as_echo "no" >&6; } 36847 36848$as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h 36849 36850 curl_verbose_msg="no" 36851 ;; 36852 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36853$as_echo "yes" >&6; } 36854 ;; 36855 esac 36856else 36857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36858$as_echo "yes" >&6; } 36859 36860fi 36861 36862 36863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5 36864$as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; } 36865# Check whether --enable-sspi was given. 36866if test "${enable_sspi+set}" = set; then : 36867 enableval=$enable_sspi; case "$enableval" in 36868 yes) 36869 if test "$ac_cv_native_windows" = "yes"; then 36870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36871$as_echo "yes" >&6; } 36872 36873$as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h 36874 36875 USE_WINDOWS_SSPI=1 36876 36877 curl_sspi_msg="enabled" 36878 else 36879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36880$as_echo "no" >&6; } 36881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5 36882$as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;} 36883 fi 36884 ;; 36885 *) 36886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36887$as_echo "no" >&6; } 36888 ;; 36889 esac 36890else 36891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36892$as_echo "no" >&6; } 36893 36894fi 36895 36896 36897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5 36898$as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; } 36899# Check whether --enable-crypto-auth was given. 36900if test "${enable_crypto_auth+set}" = set; then : 36901 enableval=$enable_crypto_auth; case "$enableval" in 36902 no) 36903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36904$as_echo "no" >&6; } 36905 36906$as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h 36907 36908 ;; 36909 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36910$as_echo "yes" >&6; } 36911 ;; 36912 esac 36913else 36914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36915$as_echo "yes" >&6; } 36916 36917fi 36918 36919 36920 36921 OPT_NTLM_WB="default" 36922 # Check whether --enable-ntlm-wb was given. 36923if test "${enable_ntlm_wb+set}" = set; then : 36924 enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval 36925fi 36926 36927 want_ntlm_wb_file="/usr/bin/ntlm_auth" 36928 case "$OPT_NTLM_WB" in 36929 no) 36930 want_ntlm_wb="no" 36931 ;; 36932 default) 36933 want_ntlm_wb="yes" 36934 ;; 36935 *) 36936 want_ntlm_wb="yes" 36937 if test -n "$enableval" && test "$enableval" != "yes"; then 36938 want_ntlm_wb_file="$enableval" 36939 fi 36940 ;; 36941 esac 36942 36943 36944 36945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5 36946$as_echo_n "checking whether to enable NTLM delegation to winbind's helper... " >&6; } 36947 if test "$ac_cv_native_windows" = "yes" || 36948 test "x$SSL_ENABLED" = "x"; then 36949 want_ntlm_wb_file="" 36950 want_ntlm_wb="no" 36951 fi 36952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5 36953$as_echo "$want_ntlm_wb" >&6; } 36954 if test "$want_ntlm_wb" = "yes"; then 36955 36956$as_echo "#define NTLM_WB_ENABLED 1" >>confdefs.h 36957 36958 36959cat >>confdefs.h <<_ACEOF 36960#define NTLM_WB_FILE "$want_ntlm_wb_file" 36961_ACEOF 36962 36963 NTLM_WB_ENABLED=1 36964 fi 36965 36966 36967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5 36968$as_echo_n "checking whether to enable TLS-SRP authentication... " >&6; } 36969# Check whether --enable-tls-srp was given. 36970if test "${enable_tls_srp+set}" = set; then : 36971 enableval=$enable_tls_srp; case "$enableval" in 36972 no) 36973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36974$as_echo "no" >&6; } 36975 36976$as_echo "#define CURL_DISABLE_TLS_SRP 1" >>confdefs.h 36977 36978 want_tls_srp=no 36979 ;; 36980 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36981$as_echo "yes" >&6; } 36982 want_tls_srp=yes 36983 ;; 36984 esac 36985else 36986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36987$as_echo "yes" >&6; } 36988 want_tls_srp=yes 36989 36990fi 36991 36992 36993if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_SSLEAY_SRP" = "x1") ; then 36994 36995$as_echo "#define USE_TLS_SRP 1" >>confdefs.h 36996 36997 USE_TLS_SRP=1 36998 curl_tls_srp_msg="enabled" 36999fi 37000 37001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable support for cookies" >&5 37002$as_echo_n "checking whether to enable support for cookies... " >&6; } 37003# Check whether --enable-cookies was given. 37004if test "${enable_cookies+set}" = set; then : 37005 enableval=$enable_cookies; case "$enableval" in 37006 no) 37007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37008$as_echo "no" >&6; } 37009 37010$as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h 37011 37012 ;; 37013 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37014$as_echo "yes" >&6; } 37015 ;; 37016 esac 37017else 37018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37019$as_echo "yes" >&6; } 37020 37021fi 37022 37023 37024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hidden symbols in the library" >&5 37025$as_echo_n "checking whether to enable hidden symbols in the library... " >&6; } 37026# Check whether --enable-hidden-symbols was given. 37027if test "${enable_hidden_symbols+set}" = set; then : 37028 enableval=$enable_hidden_symbols; case "$enableval" in 37029 no) 37030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37031$as_echo "no" >&6; } 37032 ;; 37033 *) 37034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports it" >&5 37035$as_echo_n "checking whether $CC supports it... " >&6; } 37036 if test "$GCC" = yes ; then 37037 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null || 37038 test "$compiler_id" = "CLANG"; then 37039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37040$as_echo "yes" >&6; } 37041 37042$as_echo "#define CURL_HIDDEN_SYMBOLS 1" >>confdefs.h 37043 37044 37045$as_echo "#define CURL_EXTERN_SYMBOL __attribute__ ((visibility (\"default\")))" >>confdefs.h 37046 37047 CFLAGS="$CFLAGS -fvisibility=hidden" 37048 else 37049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37050$as_echo "no" >&6; } 37051 fi 37052 37053 else 37054 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then 37055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37056$as_echo "yes" >&6; } 37057 37058$as_echo "#define CURL_HIDDEN_SYMBOLS 1" >>confdefs.h 37059 37060 37061$as_echo "#define CURL_EXTERN_SYMBOL __global" >>confdefs.h 37062 37063 CFLAGS="$CFLAGS -xldscope=hidden" 37064 else 37065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37066$as_echo "no" >&6; } 37067 fi 37068 fi 37069 ;; 37070 esac 37071else 37072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37073$as_echo "no" >&6; } 37074 37075fi 37076 37077 37078 37079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enforce SONAME bump" >&5 37080$as_echo_n "checking whether to enforce SONAME bump... " >&6; } 37081# Check whether --enable-soname-bump was given. 37082if test "${enable_soname_bump+set}" = set; then : 37083 enableval=$enable_soname_bump; case "$enableval" in 37084 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37085$as_echo "yes" >&6; } 37086 soname_bump=yes 37087 ;; 37088 *) 37089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37090$as_echo "no" >&6; } 37091 ;; 37092 esac 37093else 37094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $soname_bump" >&5 37095$as_echo "$soname_bump" >&6; } 37096 37097fi 37098 37099 37100 37101if test x$soname_bump = xyes; then 37102 SONAME_BUMP_TRUE= 37103 SONAME_BUMP_FALSE='#' 37104else 37105 SONAME_BUMP_TRUE='#' 37106 SONAME_BUMP_FALSE= 37107fi 37108 37109 37110 37111if test ! -z "$winsock_LIB"; then 37112 37113 37114 LIBS="$LIBS $winsock_LIB" 37115 TEST_SERVER_LIBS="$TEST_SERVER_LIBS $winsock_LIB" 37116 37117fi 37118 37119LIBCURL_LIBS=$LIBS 37120 37121 37122 37123 37124 37125LIBS=$ALL_LIBS 37126 37127 37128if test x$cross_compiling = xyes; then 37129 CROSSCOMPILING_TRUE= 37130 CROSSCOMPILING_FALSE='#' 37131else 37132 CROSSCOMPILING_TRUE='#' 37133 CROSSCOMPILING_FALSE= 37134fi 37135 37136 37137ENABLE_SHARED="$enable_shared" 37138 37139 37140 37141if test "x$USE_SSLEAY" = "x1"; then 37142 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL" 37143elif test -n "$SSL_ENABLED"; then 37144 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL" 37145fi 37146if test "@KRB4_ENABLED@" = "x1"; then 37147 SUPPORT_FEATURES="$SUPPORT_FEATURES KRB4" 37148fi 37149if test "x$IPV6_ENABLED" = "x1"; then 37150 SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6" 37151fi 37152if test "x$HAVE_LIBZ" = "x1"; then 37153 SUPPORT_FEATURES="$SUPPORT_FEATURES libz" 37154fi 37155if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1"; then 37156 SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS" 37157fi 37158if test "x$IDN_ENABLED" = "x1"; then 37159 SUPPORT_FEATURES="$SUPPORT_FEATURES IDN" 37160fi 37161if test "x$USE_WINDOWS_SSPI" = "x1"; then 37162 SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI" 37163fi 37164if test "x$CURL_DISABLE_HTTP" != "x1"; then 37165 if test "x$USE_SSLEAY" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \ 37166 -o "x$GNUTLS_ENABLED" = "x1" -o "x$NSS_ENABLED" = "x1"; then 37167 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM" 37168 if test "x$NTLM_WB_ENABLED" = "x1"; then 37169 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB" 37170 fi 37171 fi 37172fi 37173if test "x$USE_TLS_SRP" = "x1"; then 37174 SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP" 37175fi 37176 37177 37178 37179if test "x$CURL_DISABLE_HTTP" != "x1"; then 37180 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP" 37181 if test "x$SSL_ENABLED" = "x1"; then 37182 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS" 37183 fi 37184fi 37185if test "x$CURL_DISABLE_FTP" != "x1"; then 37186 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP" 37187 if test "x$SSL_ENABLED" = "x1"; then 37188 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS" 37189 fi 37190fi 37191if test "x$CURL_DISABLE_FILE" != "x1"; then 37192 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE" 37193fi 37194if test "x$CURL_DISABLE_TELNET" != "x1"; then 37195 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET" 37196fi 37197if test "x$CURL_DISABLE_LDAP" != "x1"; then 37198 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP" 37199 if test "x$CURL_DISABLE_LDAPS" != "x1"; then 37200 if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") || 37201 (test "x$USE_OPENLDAP" != "x1" && test "x$HAVE_LDAP_SSL" = "x1"); then 37202 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS" 37203 fi 37204 fi 37205fi 37206if test "x$CURL_DISABLE_DICT" != "x1"; then 37207 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT" 37208fi 37209if test "x$CURL_DISABLE_TFTP" != "x1"; then 37210 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP" 37211fi 37212if test "x$CURL_DISABLE_GOPHER" != "x1"; then 37213 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER" 37214fi 37215if test "x$CURL_DISABLE_POP3" != "x1"; then 37216 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3" 37217 if test "x$SSL_ENABLED" = "x1"; then 37218 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S" 37219 fi 37220fi 37221if test "x$CURL_DISABLE_IMAP" != "x1"; then 37222 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP" 37223 if test "x$SSL_ENABLED" = "x1"; then 37224 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS" 37225 fi 37226fi 37227if test "x$CURL_DISABLE_SMTP" != "x1"; then 37228 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP" 37229 if test "x$SSL_ENABLED" = "x1"; then 37230 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS" 37231 fi 37232fi 37233if test "x$USE_LIBSSH2" = "x1"; then 37234 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP" 37235 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP" 37236fi 37237if test "x$CURL_DISABLE_RTSP" != "x1"; then 37238 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP" 37239fi 37240if test "x$USE_LIBRTMP" = "x1"; then 37241 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP" 37242fi 37243 37244SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '` 37245 37246 37247 37248 37249squeeze CFLAGS 37250squeeze CPPFLAGS 37251squeeze DEFS 37252squeeze LDFLAGS 37253squeeze LIBS 37254 37255squeeze CURL_LIBS 37256squeeze LIBCURL_LIBS 37257squeeze TEST_SERVER_LIBS 37258squeeze CURL_NETWORK_LIBS 37259 37260squeeze SUPPORT_FEATURES 37261squeeze SUPPORT_PROTOCOLS 37262 37263if test "x$want_curldebug_assumed" = "xyes" && 37264 test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then 37265 ac_configure_args="$ac_configure_args --enable-curldebug" 37266fi 37267 37268ac_config_files="$ac_config_files Makefile docs/Makefile docs/examples/Makefile docs/libcurl/Makefile include/Makefile include/curl/Makefile src/Makefile lib/Makefile tests/Makefile tests/data/Makefile tests/server/Makefile tests/libtest/Makefile tests/unit/Makefile packages/Makefile packages/Win32/Makefile packages/Win32/cygwin/Makefile packages/Linux/Makefile packages/Linux/RPM/Makefile packages/Linux/RPM/curl.spec packages/Linux/RPM/curl-ssl.spec packages/Solaris/Makefile packages/EPM/curl.list packages/EPM/Makefile packages/vms/Makefile packages/AIX/Makefile packages/AIX/RPM/Makefile packages/AIX/RPM/curl.spec curl-config libcurl.pc" 37269 37270cat >confcache <<\_ACEOF 37271# This file is a shell script that caches the results of configure 37272# tests run on this system so they can be shared between configure 37273# scripts and configure runs, see configure's option --config-cache. 37274# It is not useful on other systems. If it contains results you don't 37275# want to keep, you may remove or edit it. 37276# 37277# config.status only pays attention to the cache file if you give it 37278# the --recheck option to rerun configure. 37279# 37280# `ac_cv_env_foo' variables (set or unset) will be overridden when 37281# loading this file, other *unset* `ac_cv_foo' will be assigned the 37282# following values. 37283 37284_ACEOF 37285 37286# The following way of writing the cache mishandles newlines in values, 37287# but we know of no workaround that is simple, portable, and efficient. 37288# So, we kill variables containing newlines. 37289# Ultrix sh set writes to stderr and can't be redirected directly, 37290# and sets the high bit in the cache file unless we assign to the vars. 37291( 37292 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 37293 eval ac_val=\$$ac_var 37294 case $ac_val in #( 37295 *${as_nl}*) 37296 case $ac_var in #( 37297 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 37298$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 37299 esac 37300 case $ac_var in #( 37301 _ | IFS | as_nl) ;; #( 37302 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 37303 *) { eval $ac_var=; unset $ac_var;} ;; 37304 esac ;; 37305 esac 37306 done 37307 37308 (set) 2>&1 | 37309 case $as_nl`(ac_space=' '; set) 2>&1` in #( 37310 *${as_nl}ac_space=\ *) 37311 # `set' does not quote correctly, so add quotes: double-quote 37312 # substitution turns \\\\ into \\, and sed turns \\ into \. 37313 sed -n \ 37314 "s/'/'\\\\''/g; 37315 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 37316 ;; #( 37317 *) 37318 # `set' quotes correctly as required by POSIX, so do not add quotes. 37319 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 37320 ;; 37321 esac | 37322 sort 37323) | 37324 sed ' 37325 /^ac_cv_env_/b end 37326 t clear 37327 :clear 37328 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 37329 t end 37330 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 37331 :end' >>confcache 37332if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 37333 if test -w "$cache_file"; then 37334 test "x$cache_file" != "x/dev/null" && 37335 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 37336$as_echo "$as_me: updating cache $cache_file" >&6;} 37337 cat confcache >$cache_file 37338 else 37339 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 37340$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 37341 fi 37342fi 37343rm -f confcache 37344 37345test "x$prefix" = xNONE && prefix=$ac_default_prefix 37346# Let make expand exec_prefix. 37347test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 37348 37349DEFS=-DHAVE_CONFIG_H 37350 37351ac_libobjs= 37352ac_ltlibobjs= 37353for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 37354 # 1. Remove the extension, and $U if already installed. 37355 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 37356 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 37357 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 37358 # will be set to the directory where LIBOBJS objects are built. 37359 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 37360 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 37361done 37362LIBOBJS=$ac_libobjs 37363 37364LTLIBOBJS=$ac_ltlibobjs 37365 37366 37367if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 37368 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. 37369Usually this means the macro was only invoked conditionally." "$LINENO" 5 37370fi 37371if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 37372 as_fn_error "conditional \"AMDEP\" was never defined. 37373Usually this means the macro was only invoked conditionally." "$LINENO" 5 37374fi 37375if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 37376 as_fn_error "conditional \"am__fastdepCC\" was never defined. 37377Usually this means the macro was only invoked conditionally." "$LINENO" 5 37378fi 37379if test -z "${MIMPURE_TRUE}" && test -z "${MIMPURE_FALSE}"; then 37380 as_fn_error "conditional \"MIMPURE\" was never defined. 37381Usually this means the macro was only invoked conditionally." "$LINENO" 5 37382fi 37383if test -z "${STATICLIB_TRUE}" && test -z "${STATICLIB_FALSE}"; then 37384 as_fn_error "conditional \"STATICLIB\" was never defined. 37385Usually this means the macro was only invoked conditionally." "$LINENO" 5 37386fi 37387if test -z "${STATICLIB_TRUE}" && test -z "${STATICLIB_FALSE}"; then 37388 as_fn_error "conditional \"STATICLIB\" was never defined. 37389Usually this means the macro was only invoked conditionally." "$LINENO" 5 37390fi 37391if test -z "${NO_UNDEFINED_TRUE}" && test -z "${NO_UNDEFINED_FALSE}"; then 37392 as_fn_error "conditional \"NO_UNDEFINED\" was never defined. 37393Usually this means the macro was only invoked conditionally." "$LINENO" 5 37394fi 37395if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then 37396 as_fn_error "conditional \"CURLDEBUG\" was never defined. 37397Usually this means the macro was only invoked conditionally." "$LINENO" 5 37398fi 37399if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then 37400 as_fn_error "conditional \"BUILD_UNITTESTS\" was never defined. 37401Usually this means the macro was only invoked conditionally." "$LINENO" 5 37402fi 37403if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then 37404 as_fn_error "conditional \"HAVE_LIBZ\" was never defined. 37405Usually this means the macro was only invoked conditionally." "$LINENO" 5 37406fi 37407if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then 37408 as_fn_error "conditional \"USE_MANUAL\" was never defined. 37409Usually this means the macro was only invoked conditionally." "$LINENO" 5 37410fi 37411if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then 37412 as_fn_error "conditional \"USE_EMBEDDED_ARES\" was never defined. 37413Usually this means the macro was only invoked conditionally." "$LINENO" 5 37414fi 37415if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then 37416 as_fn_error "conditional \"BUILD_LIBHOSTNAME\" was never defined. 37417Usually this means the macro was only invoked conditionally." "$LINENO" 5 37418fi 37419if test -z "${SONAME_BUMP_TRUE}" && test -z "${SONAME_BUMP_FALSE}"; then 37420 as_fn_error "conditional \"SONAME_BUMP\" was never defined. 37421Usually this means the macro was only invoked conditionally." "$LINENO" 5 37422fi 37423if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then 37424 as_fn_error "conditional \"CROSSCOMPILING\" was never defined. 37425Usually this means the macro was only invoked conditionally." "$LINENO" 5 37426fi 37427 37428: ${CONFIG_STATUS=./config.status} 37429ac_write_fail=0 37430ac_clean_files_save=$ac_clean_files 37431ac_clean_files="$ac_clean_files $CONFIG_STATUS" 37432{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 37433$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 37434as_write_fail=0 37435cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 37436#! $SHELL 37437# Generated by $as_me. 37438# Run this file to recreate the current configuration. 37439# Compiler output produced by configure, useful for debugging 37440# configure, is in config.log if it exists. 37441 37442debug=false 37443ac_cs_recheck=false 37444ac_cs_silent=false 37445 37446SHELL=\${CONFIG_SHELL-$SHELL} 37447export SHELL 37448_ASEOF 37449cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 37450## -------------------- ## 37451## M4sh Initialization. ## 37452## -------------------- ## 37453 37454# Be more Bourne compatible 37455DUALCASE=1; export DUALCASE # for MKS sh 37456if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 37457 emulate sh 37458 NULLCMD=: 37459 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 37460 # is contrary to our usage. Disable this feature. 37461 alias -g '${1+"$@"}'='"$@"' 37462 setopt NO_GLOB_SUBST 37463else 37464 case `(set -o) 2>/dev/null` in #( 37465 *posix*) : 37466 set -o posix ;; #( 37467 *) : 37468 ;; 37469esac 37470fi 37471 37472 37473as_nl=' 37474' 37475export as_nl 37476# Printing a long string crashes Solaris 7 /usr/bin/printf. 37477as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 37478as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 37479as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 37480# Prefer a ksh shell builtin over an external printf program on Solaris, 37481# but without wasting forks for bash or zsh. 37482if test -z "$BASH_VERSION$ZSH_VERSION" \ 37483 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 37484 as_echo='print -r --' 37485 as_echo_n='print -rn --' 37486elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 37487 as_echo='printf %s\n' 37488 as_echo_n='printf %s' 37489else 37490 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 37491 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 37492 as_echo_n='/usr/ucb/echo -n' 37493 else 37494 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 37495 as_echo_n_body='eval 37496 arg=$1; 37497 case $arg in #( 37498 *"$as_nl"*) 37499 expr "X$arg" : "X\\(.*\\)$as_nl"; 37500 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 37501 esac; 37502 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 37503 ' 37504 export as_echo_n_body 37505 as_echo_n='sh -c $as_echo_n_body as_echo' 37506 fi 37507 export as_echo_body 37508 as_echo='sh -c $as_echo_body as_echo' 37509fi 37510 37511 37512 37513# IFS 37514# We need space, tab and new line, in precisely that order. Quoting is 37515# there to prevent editors from complaining about space-tab. 37516# (If _AS_PATH_WALK were called with IFS unset, it would disable word 37517# splitting by setting IFS to empty value.) 37518IFS=" "" $as_nl" 37519 37520# Find who we are. Look in the path if we contain no directory separator. 37521case $0 in #(( 37522 *[\\/]* ) as_myself=$0 ;; 37523 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37524for as_dir in $PATH 37525do 37526 IFS=$as_save_IFS 37527 test -z "$as_dir" && as_dir=. 37528 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 37529 done 37530IFS=$as_save_IFS 37531 37532 ;; 37533esac 37534# We did not find ourselves, most probably we were run as `sh COMMAND' 37535# in which case we are not to be found in the path. 37536if test "x$as_myself" = x; then 37537 as_myself=$0 37538fi 37539if test ! -f "$as_myself"; then 37540 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 37541 exit 1 37542fi 37543 37544# Unset variables that we do not need and which cause bugs (e.g. in 37545# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 37546# suppresses any "Segmentation fault" message there. '((' could 37547# trigger a bug in pdksh 5.2.14. 37548for as_var in BASH_ENV ENV MAIL MAILPATH 37549do eval test x\${$as_var+set} = xset \ 37550 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 37551done 37552PS1='$ ' 37553PS2='> ' 37554PS4='+ ' 37555 37556# NLS nuisances. 37557LC_ALL=C 37558export LC_ALL 37559LANGUAGE=C 37560export LANGUAGE 37561 37562# CDPATH. 37563(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 37564 37565 37566# as_fn_error ERROR [LINENO LOG_FD] 37567# --------------------------------- 37568# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 37569# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 37570# script with status $?, using 1 if that was 0. 37571as_fn_error () 37572{ 37573 as_status=$?; test $as_status -eq 0 && as_status=1 37574 if test "$3"; then 37575 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 37576 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 37577 fi 37578 $as_echo "$as_me: error: $1" >&2 37579 as_fn_exit $as_status 37580} # as_fn_error 37581 37582 37583# as_fn_set_status STATUS 37584# ----------------------- 37585# Set $? to STATUS, without forking. 37586as_fn_set_status () 37587{ 37588 return $1 37589} # as_fn_set_status 37590 37591# as_fn_exit STATUS 37592# ----------------- 37593# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 37594as_fn_exit () 37595{ 37596 set +e 37597 as_fn_set_status $1 37598 exit $1 37599} # as_fn_exit 37600 37601# as_fn_unset VAR 37602# --------------- 37603# Portably unset VAR. 37604as_fn_unset () 37605{ 37606 { eval $1=; unset $1;} 37607} 37608as_unset=as_fn_unset 37609# as_fn_append VAR VALUE 37610# ---------------------- 37611# Append the text in VALUE to the end of the definition contained in VAR. Take 37612# advantage of any shell optimizations that allow amortized linear growth over 37613# repeated appends, instead of the typical quadratic growth present in naive 37614# implementations. 37615if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 37616 eval 'as_fn_append () 37617 { 37618 eval $1+=\$2 37619 }' 37620else 37621 as_fn_append () 37622 { 37623 eval $1=\$$1\$2 37624 } 37625fi # as_fn_append 37626 37627# as_fn_arith ARG... 37628# ------------------ 37629# Perform arithmetic evaluation on the ARGs, and store the result in the 37630# global $as_val. Take advantage of shells that can avoid forks. The arguments 37631# must be portable across $(()) and expr. 37632if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 37633 eval 'as_fn_arith () 37634 { 37635 as_val=$(( $* )) 37636 }' 37637else 37638 as_fn_arith () 37639 { 37640 as_val=`expr "$@" || test $? -eq 1` 37641 } 37642fi # as_fn_arith 37643 37644 37645if expr a : '\(a\)' >/dev/null 2>&1 && 37646 test "X`expr 00001 : '.*\(...\)'`" = X001; then 37647 as_expr=expr 37648else 37649 as_expr=false 37650fi 37651 37652if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 37653 as_basename=basename 37654else 37655 as_basename=false 37656fi 37657 37658if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 37659 as_dirname=dirname 37660else 37661 as_dirname=false 37662fi 37663 37664as_me=`$as_basename -- "$0" || 37665$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 37666 X"$0" : 'X\(//\)$' \| \ 37667 X"$0" : 'X\(/\)' \| . 2>/dev/null || 37668$as_echo X/"$0" | 37669 sed '/^.*\/\([^/][^/]*\)\/*$/{ 37670 s//\1/ 37671 q 37672 } 37673 /^X\/\(\/\/\)$/{ 37674 s//\1/ 37675 q 37676 } 37677 /^X\/\(\/\).*/{ 37678 s//\1/ 37679 q 37680 } 37681 s/.*/./; q'` 37682 37683# Avoid depending upon Character Ranges. 37684as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37685as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 37686as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37687as_cr_digits='0123456789' 37688as_cr_alnum=$as_cr_Letters$as_cr_digits 37689 37690ECHO_C= ECHO_N= ECHO_T= 37691case `echo -n x` in #((((( 37692-n*) 37693 case `echo 'xy\c'` in 37694 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 37695 xy) ECHO_C='\c';; 37696 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 37697 ECHO_T=' ';; 37698 esac;; 37699*) 37700 ECHO_N='-n';; 37701esac 37702 37703rm -f conf$$ conf$$.exe conf$$.file 37704if test -d conf$$.dir; then 37705 rm -f conf$$.dir/conf$$.file 37706else 37707 rm -f conf$$.dir 37708 mkdir conf$$.dir 2>/dev/null 37709fi 37710if (echo >conf$$.file) 2>/dev/null; then 37711 if ln -s conf$$.file conf$$ 2>/dev/null; then 37712 as_ln_s='ln -s' 37713 # ... but there are two gotchas: 37714 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 37715 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 37716 # In both cases, we have to default to `cp -p'. 37717 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 37718 as_ln_s='cp -p' 37719 elif ln conf$$.file conf$$ 2>/dev/null; then 37720 as_ln_s=ln 37721 else 37722 as_ln_s='cp -p' 37723 fi 37724else 37725 as_ln_s='cp -p' 37726fi 37727rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 37728rmdir conf$$.dir 2>/dev/null 37729 37730 37731# as_fn_mkdir_p 37732# ------------- 37733# Create "$as_dir" as a directory, including parents if necessary. 37734as_fn_mkdir_p () 37735{ 37736 37737 case $as_dir in #( 37738 -*) as_dir=./$as_dir;; 37739 esac 37740 test -d "$as_dir" || eval $as_mkdir_p || { 37741 as_dirs= 37742 while :; do 37743 case $as_dir in #( 37744 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 37745 *) as_qdir=$as_dir;; 37746 esac 37747 as_dirs="'$as_qdir' $as_dirs" 37748 as_dir=`$as_dirname -- "$as_dir" || 37749$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 37750 X"$as_dir" : 'X\(//\)[^/]' \| \ 37751 X"$as_dir" : 'X\(//\)$' \| \ 37752 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 37753$as_echo X"$as_dir" | 37754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 37755 s//\1/ 37756 q 37757 } 37758 /^X\(\/\/\)[^/].*/{ 37759 s//\1/ 37760 q 37761 } 37762 /^X\(\/\/\)$/{ 37763 s//\1/ 37764 q 37765 } 37766 /^X\(\/\).*/{ 37767 s//\1/ 37768 q 37769 } 37770 s/.*/./; q'` 37771 test -d "$as_dir" && break 37772 done 37773 test -z "$as_dirs" || eval "mkdir $as_dirs" 37774 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 37775 37776 37777} # as_fn_mkdir_p 37778if mkdir -p . 2>/dev/null; then 37779 as_mkdir_p='mkdir -p "$as_dir"' 37780else 37781 test -d ./-p && rmdir ./-p 37782 as_mkdir_p=false 37783fi 37784 37785if test -x / >/dev/null 2>&1; then 37786 as_test_x='test -x' 37787else 37788 if ls -dL / >/dev/null 2>&1; then 37789 as_ls_L_option=L 37790 else 37791 as_ls_L_option= 37792 fi 37793 as_test_x=' 37794 eval sh -c '\'' 37795 if test -d "$1"; then 37796 test -d "$1/."; 37797 else 37798 case $1 in #( 37799 -*)set "./$1";; 37800 esac; 37801 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 37802 ???[sx]*):;;*)false;;esac;fi 37803 '\'' sh 37804 ' 37805fi 37806as_executable_p=$as_test_x 37807 37808# Sed expression to map a string onto a valid CPP name. 37809as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 37810 37811# Sed expression to map a string onto a valid variable name. 37812as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 37813 37814 37815exec 6>&1 37816## ----------------------------------- ## 37817## Main body of $CONFIG_STATUS script. ## 37818## ----------------------------------- ## 37819_ASEOF 37820test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 37821 37822cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 37823# Save the log message, to keep $0 and so on meaningful, and to 37824# report actual input values of CONFIG_FILES etc. instead of their 37825# values after options handling. 37826ac_log=" 37827This file was extended by curl $as_me -, which was 37828generated by GNU Autoconf 2.64. Invocation command line was 37829 37830 CONFIG_FILES = $CONFIG_FILES 37831 CONFIG_HEADERS = $CONFIG_HEADERS 37832 CONFIG_LINKS = $CONFIG_LINKS 37833 CONFIG_COMMANDS = $CONFIG_COMMANDS 37834 $ $0 $@ 37835 37836on `(hostname || uname -n) 2>/dev/null | sed 1q` 37837" 37838 37839_ACEOF 37840 37841case $ac_config_files in *" 37842"*) set x $ac_config_files; shift; ac_config_files=$*;; 37843esac 37844 37845case $ac_config_headers in *" 37846"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 37847esac 37848 37849 37850cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 37851# Files that config.status was made for. 37852config_files="$ac_config_files" 37853config_headers="$ac_config_headers" 37854config_commands="$ac_config_commands" 37855 37856_ACEOF 37857 37858cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 37859ac_cs_usage="\ 37860\`$as_me' instantiates files and other configuration actions 37861from templates according to the current configuration. Unless the files 37862and actions are specified as TAGs, all are instantiated by default. 37863 37864Usage: $0 [OPTION]... [TAG]... 37865 37866 -h, --help print this help, then exit 37867 -V, --version print version number and configuration settings, then exit 37868 -q, --quiet, --silent 37869 do not print progress messages 37870 -d, --debug don't remove temporary files 37871 --recheck update $as_me by reconfiguring in the same conditions 37872 --file=FILE[:TEMPLATE] 37873 instantiate the configuration file FILE 37874 --header=FILE[:TEMPLATE] 37875 instantiate the configuration header FILE 37876 37877Configuration files: 37878$config_files 37879 37880Configuration headers: 37881$config_headers 37882 37883Configuration commands: 37884$config_commands 37885 37886Report bugs to <a suitable curl mailing list: http://curl.haxx.se/mail/>." 37887 37888_ACEOF 37889cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 37890ac_cs_version="\\ 37891curl config.status - 37892configured by $0, generated by GNU Autoconf 2.64, 37893 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 37894 37895Copyright (C) 2009 Free Software Foundation, Inc. 37896This config.status script is free software; the Free Software Foundation 37897gives unlimited permission to copy, distribute and modify it." 37898 37899ac_pwd='$ac_pwd' 37900srcdir='$srcdir' 37901INSTALL='$INSTALL' 37902AWK='$AWK' 37903test -n "\$AWK" || AWK=awk 37904_ACEOF 37905 37906cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 37907# The default lists apply if the user does not specify any file. 37908ac_need_defaults=: 37909while test $# != 0 37910do 37911 case $1 in 37912 --*=*) 37913 ac_option=`expr "X$1" : 'X\([^=]*\)='` 37914 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 37915 ac_shift=: 37916 ;; 37917 *) 37918 ac_option=$1 37919 ac_optarg=$2 37920 ac_shift=shift 37921 ;; 37922 esac 37923 37924 case $ac_option in 37925 # Handling of the options. 37926 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 37927 ac_cs_recheck=: ;; 37928 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 37929 $as_echo "$ac_cs_version"; exit ;; 37930 --debug | --debu | --deb | --de | --d | -d ) 37931 debug=: ;; 37932 --file | --fil | --fi | --f ) 37933 $ac_shift 37934 case $ac_optarg in 37935 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 37936 esac 37937 as_fn_append CONFIG_FILES " '$ac_optarg'" 37938 ac_need_defaults=false;; 37939 --header | --heade | --head | --hea ) 37940 $ac_shift 37941 case $ac_optarg in 37942 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 37943 esac 37944 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 37945 ac_need_defaults=false;; 37946 --he | --h) 37947 # Conflict between --help and --header 37948 as_fn_error "ambiguous option: \`$1' 37949Try \`$0 --help' for more information.";; 37950 --help | --hel | -h ) 37951 $as_echo "$ac_cs_usage"; exit ;; 37952 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 37953 | -silent | --silent | --silen | --sile | --sil | --si | --s) 37954 ac_cs_silent=: ;; 37955 37956 # This is an error. 37957 -*) as_fn_error "unrecognized option: \`$1' 37958Try \`$0 --help' for more information." ;; 37959 37960 *) as_fn_append ac_config_targets " $1" 37961 ac_need_defaults=false ;; 37962 37963 esac 37964 shift 37965done 37966 37967ac_configure_extra_args= 37968 37969if $ac_cs_silent; then 37970 exec 6>/dev/null 37971 ac_configure_extra_args="$ac_configure_extra_args --silent" 37972fi 37973 37974_ACEOF 37975cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 37976if \$ac_cs_recheck; then 37977 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 37978 shift 37979 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 37980 CONFIG_SHELL='$SHELL' 37981 export CONFIG_SHELL 37982 exec "\$@" 37983fi 37984 37985_ACEOF 37986cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 37987exec 5>>config.log 37988{ 37989 echo 37990 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 37991## Running $as_me. ## 37992_ASBOX 37993 $as_echo "$ac_log" 37994} >&5 37995 37996_ACEOF 37997cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 37998# 37999# INIT-COMMANDS 38000# 38001AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 38002 38003 38004# The HP-UX ksh and POSIX shell print the target directory to stdout 38005# if CDPATH is set. 38006(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 38007 38008sed_quote_subst='$sed_quote_subst' 38009double_quote_subst='$double_quote_subst' 38010delay_variable_subst='$delay_variable_subst' 38011AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 38012DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 38013OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 38014macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 38015macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 38016enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 38017enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 38018pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 38019enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 38020SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 38021ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 38022PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 38023host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 38024host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 38025host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 38026build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 38027build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 38028build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 38029SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 38030Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 38031GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 38032EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 38033FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 38034LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 38035NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 38036LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 38037max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 38038ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 38039exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 38040lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 38041lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 38042lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 38043lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 38044lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 38045reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 38046reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 38047deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 38048file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 38049file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 38050want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 38051sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 38052AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 38053AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 38054archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 38055STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 38056RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 38057old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 38058old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 38059old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 38060lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 38061CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 38062CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 38063compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 38064GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 38065lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 38066lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 38067lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 38068lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 38069nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 38070lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 38071objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 38072MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 38073lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 38074lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 38075lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 38076lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 38077lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 38078need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 38079MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 38080DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 38081NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 38082LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 38083OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 38084OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 38085libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 38086shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 38087extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 38088archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 38089enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 38090export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 38091whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 38092compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 38093old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 38094old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 38095archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 38096archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 38097module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 38098module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 38099with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 38100allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 38101no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 38102hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 38103hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 38104hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 38105hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 38106hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 38107hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 38108hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 38109inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 38110link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 38111always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 38112export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 38113exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 38114include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 38115prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 38116postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 38117file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 38118variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 38119need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 38120need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 38121version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 38122runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 38123shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 38124shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 38125libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 38126library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 38127soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 38128install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 38129postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 38130postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 38131finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 38132finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 38133hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 38134sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 38135sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 38136hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 38137enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 38138enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 38139enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 38140old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 38141striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 38142 38143LTCC='$LTCC' 38144LTCFLAGS='$LTCFLAGS' 38145compiler='$compiler_DEFAULT' 38146 38147# A function that is used when there is no print builtin or printf. 38148func_fallback_echo () 38149{ 38150 eval 'cat <<_LTECHO_EOF 38151\$1 38152_LTECHO_EOF' 38153} 38154 38155# Quote evaled strings. 38156for var in AS \ 38157DLLTOOL \ 38158OBJDUMP \ 38159SHELL \ 38160ECHO \ 38161PATH_SEPARATOR \ 38162SED \ 38163GREP \ 38164EGREP \ 38165FGREP \ 38166LD \ 38167NM \ 38168LN_S \ 38169lt_SP2NL \ 38170lt_NL2SP \ 38171reload_flag \ 38172deplibs_check_method \ 38173file_magic_cmd \ 38174file_magic_glob \ 38175want_nocaseglob \ 38176sharedlib_from_linklib_cmd \ 38177AR \ 38178AR_FLAGS \ 38179archiver_list_spec \ 38180STRIP \ 38181RANLIB \ 38182CC \ 38183CFLAGS \ 38184compiler \ 38185lt_cv_sys_global_symbol_pipe \ 38186lt_cv_sys_global_symbol_to_cdecl \ 38187lt_cv_sys_global_symbol_to_c_name_address \ 38188lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 38189nm_file_list_spec \ 38190lt_prog_compiler_no_builtin_flag \ 38191lt_prog_compiler_pic \ 38192lt_prog_compiler_wl \ 38193lt_prog_compiler_static \ 38194lt_cv_prog_compiler_c_o \ 38195need_locks \ 38196MANIFEST_TOOL \ 38197DSYMUTIL \ 38198NMEDIT \ 38199LIPO \ 38200OTOOL \ 38201OTOOL64 \ 38202shrext_cmds \ 38203export_dynamic_flag_spec \ 38204whole_archive_flag_spec \ 38205compiler_needs_object \ 38206with_gnu_ld \ 38207allow_undefined_flag \ 38208no_undefined_flag \ 38209hardcode_libdir_flag_spec \ 38210hardcode_libdir_separator \ 38211exclude_expsyms \ 38212include_expsyms \ 38213file_list_spec \ 38214variables_saved_for_relink \ 38215libname_spec \ 38216library_names_spec \ 38217soname_spec \ 38218install_override_mode \ 38219finish_eval \ 38220old_striplib \ 38221striplib; do 38222 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 38223 *[\\\\\\\`\\"\\\$]*) 38224 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 38225 ;; 38226 *) 38227 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 38228 ;; 38229 esac 38230done 38231 38232# Double-quote double-evaled strings. 38233for var in reload_cmds \ 38234old_postinstall_cmds \ 38235old_postuninstall_cmds \ 38236old_archive_cmds \ 38237extract_expsyms_cmds \ 38238old_archive_from_new_cmds \ 38239old_archive_from_expsyms_cmds \ 38240archive_cmds \ 38241archive_expsym_cmds \ 38242module_cmds \ 38243module_expsym_cmds \ 38244export_symbols_cmds \ 38245prelink_cmds \ 38246postlink_cmds \ 38247postinstall_cmds \ 38248postuninstall_cmds \ 38249finish_cmds \ 38250sys_lib_search_path_spec \ 38251sys_lib_dlsearch_path_spec; do 38252 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 38253 *[\\\\\\\`\\"\\\$]*) 38254 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 38255 ;; 38256 *) 38257 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 38258 ;; 38259 esac 38260done 38261 38262ac_aux_dir='$ac_aux_dir' 38263xsi_shell='$xsi_shell' 38264lt_shell_append='$lt_shell_append' 38265 38266# See if we are running on zsh, and set the options which allow our 38267# commands through without removal of \ escapes INIT. 38268if test -n "\${ZSH_VERSION+set}" ; then 38269 setopt NO_GLOB_SUBST 38270fi 38271 38272 38273 PACKAGE='$PACKAGE' 38274 VERSION='$VERSION' 38275 TIMESTAMP='$TIMESTAMP' 38276 RM='$RM' 38277 ofile='$ofile' 38278 38279 38280 38281 38282_ACEOF 38283 38284cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38285 38286# Handling of arguments. 38287for ac_config_target in $ac_config_targets 38288do 38289 case $ac_config_target in 38290 "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;; 38291 "src/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/curl_config.h" ;; 38292 "include/curl/curlbuild.h") CONFIG_HEADERS="$CONFIG_HEADERS include/curl/curlbuild.h" ;; 38293 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 38294 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 38295 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 38296 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;; 38297 "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;; 38298 "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;; 38299 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 38300 "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;; 38301 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 38302 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 38303 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 38304 "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;; 38305 "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;; 38306 "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;; 38307 "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;; 38308 "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;; 38309 "packages/Win32/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/Makefile" ;; 38310 "packages/Win32/cygwin/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;; 38311 "packages/Linux/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/Makefile" ;; 38312 "packages/Linux/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/Makefile" ;; 38313 "packages/Linux/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;; 38314 "packages/Linux/RPM/curl-ssl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;; 38315 "packages/Solaris/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Solaris/Makefile" ;; 38316 "packages/EPM/curl.list") CONFIG_FILES="$CONFIG_FILES packages/EPM/curl.list" ;; 38317 "packages/EPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/EPM/Makefile" ;; 38318 "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;; 38319 "packages/AIX/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/Makefile" ;; 38320 "packages/AIX/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/Makefile" ;; 38321 "packages/AIX/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/curl.spec" ;; 38322 "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;; 38323 "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;; 38324 38325 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 38326 esac 38327done 38328 38329 38330# If the user did not use the arguments to specify the items to instantiate, 38331# then the envvar interface is used. Set only those that are not. 38332# We use the long form for the default assignment because of an extremely 38333# bizarre bug on SunOS 4.1.3. 38334if $ac_need_defaults; then 38335 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 38336 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 38337 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 38338fi 38339 38340# Have a temporary directory for convenience. Make it in the build tree 38341# simply because there is no reason against having it here, and in addition, 38342# creating and moving files from /tmp can sometimes cause problems. 38343# Hook for its removal unless debugging. 38344# Note that there is a small window in which the directory will not be cleaned: 38345# after its creation but before its name has been assigned to `$tmp'. 38346$debug || 38347{ 38348 tmp= 38349 trap 'exit_status=$? 38350 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 38351' 0 38352 trap 'as_fn_exit 1' 1 2 13 15 38353} 38354# Create a (secure) tmp directory for tmp files. 38355 38356{ 38357 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 38358 test -n "$tmp" && test -d "$tmp" 38359} || 38360{ 38361 tmp=./conf$$-$RANDOM 38362 (umask 077 && mkdir "$tmp") 38363} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 38364 38365# Set up the scripts for CONFIG_FILES section. 38366# No need to generate them if there are no CONFIG_FILES. 38367# This happens for instance with `./config.status config.h'. 38368if test -n "$CONFIG_FILES"; then 38369 38370 38371ac_cr=`echo X | tr X '\015'` 38372# On cygwin, bash can eat \r inside `` if the user requested igncr. 38373# But we know of no other shell where ac_cr would be empty at this 38374# point, so we can use a bashism as a fallback. 38375if test "x$ac_cr" = x; then 38376 eval ac_cr=\$\'\\r\' 38377fi 38378ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 38379if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 38380 ac_cs_awk_cr='\r' 38381else 38382 ac_cs_awk_cr=$ac_cr 38383fi 38384 38385echo 'BEGIN {' >"$tmp/subs1.awk" && 38386_ACEOF 38387 38388 38389{ 38390 echo "cat >conf$$subs.awk <<_ACEOF" && 38391 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 38392 echo "_ACEOF" 38393} >conf$$subs.sh || 38394 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 38395ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 38396ac_delim='%!_!# ' 38397for ac_last_try in false false false false false :; do 38398 . ./conf$$subs.sh || 38399 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 38400 38401 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 38402 if test $ac_delim_n = $ac_delim_num; then 38403 break 38404 elif $ac_last_try; then 38405 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 38406 else 38407 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 38408 fi 38409done 38410rm -f conf$$subs.sh 38411 38412cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38413cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 38414_ACEOF 38415sed -n ' 38416h 38417s/^/S["/; s/!.*/"]=/ 38418p 38419g 38420s/^[^!]*!// 38421:repl 38422t repl 38423s/'"$ac_delim"'$// 38424t delim 38425:nl 38426h 38427s/\(.\{148\}\).*/\1/ 38428t more1 38429s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 38430p 38431n 38432b repl 38433:more1 38434s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 38435p 38436g 38437s/.\{148\}// 38438t nl 38439:delim 38440h 38441s/\(.\{148\}\).*/\1/ 38442t more2 38443s/["\\]/\\&/g; s/^/"/; s/$/"/ 38444p 38445b 38446:more2 38447s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 38448p 38449g 38450s/.\{148\}// 38451t delim 38452' <conf$$subs.awk | sed ' 38453/^[^""]/{ 38454 N 38455 s/\n// 38456} 38457' >>$CONFIG_STATUS || ac_write_fail=1 38458rm -f conf$$subs.awk 38459cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38460_ACAWK 38461cat >>"\$tmp/subs1.awk" <<_ACAWK && 38462 for (key in S) S_is_set[key] = 1 38463 FS = "" 38464 38465} 38466{ 38467 line = $ 0 38468 nfields = split(line, field, "@") 38469 substed = 0 38470 len = length(field[1]) 38471 for (i = 2; i < nfields; i++) { 38472 key = field[i] 38473 keylen = length(key) 38474 if (S_is_set[key]) { 38475 value = S[key] 38476 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 38477 len += length(value) + length(field[++i]) 38478 substed = 1 38479 } else 38480 len += 1 + keylen 38481 } 38482 38483 print line 38484} 38485 38486_ACAWK 38487_ACEOF 38488cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38489if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 38490 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 38491else 38492 cat 38493fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 38494 || as_fn_error "could not setup config files machinery" "$LINENO" 5 38495_ACEOF 38496 38497# VPATH may cause trouble with some makes, so we remove $(srcdir), 38498# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 38499# trailing colons and then remove the whole line if VPATH becomes empty 38500# (actually we leave an empty line to preserve line numbers). 38501if test "x$srcdir" = x.; then 38502 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 38503s/:*\$(srcdir):*/:/ 38504s/:*\${srcdir}:*/:/ 38505s/:*@srcdir@:*/:/ 38506s/^\([^=]*=[ ]*\):*/\1/ 38507s/:*$// 38508s/^[^=]*=[ ]*$// 38509}' 38510fi 38511 38512cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38513fi # test -n "$CONFIG_FILES" 38514 38515# Set up the scripts for CONFIG_HEADERS section. 38516# No need to generate them if there are no CONFIG_HEADERS. 38517# This happens for instance with `./config.status Makefile'. 38518if test -n "$CONFIG_HEADERS"; then 38519cat >"$tmp/defines.awk" <<\_ACAWK || 38520BEGIN { 38521_ACEOF 38522 38523# Transform confdefs.h into an awk script `defines.awk', embedded as 38524# here-document in config.status, that substitutes the proper values into 38525# config.h.in to produce config.h. 38526 38527# Create a delimiter string that does not exist in confdefs.h, to ease 38528# handling of long lines. 38529ac_delim='%!_!# ' 38530for ac_last_try in false false :; do 38531 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 38532 if test -z "$ac_t"; then 38533 break 38534 elif $ac_last_try; then 38535 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 38536 else 38537 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 38538 fi 38539done 38540 38541# For the awk script, D is an array of macro values keyed by name, 38542# likewise P contains macro parameters if any. Preserve backslash 38543# newline sequences. 38544 38545ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 38546sed -n ' 38547s/.\{148\}/&'"$ac_delim"'/g 38548t rset 38549:rset 38550s/^[ ]*#[ ]*define[ ][ ]*/ / 38551t def 38552d 38553:def 38554s/\\$// 38555t bsnl 38556s/["\\]/\\&/g 38557s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 38558D["\1"]=" \3"/p 38559s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 38560d 38561:bsnl 38562s/["\\]/\\&/g 38563s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 38564D["\1"]=" \3\\\\\\n"\\/p 38565t cont 38566s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 38567t cont 38568d 38569:cont 38570n 38571s/.\{148\}/&'"$ac_delim"'/g 38572t clear 38573:clear 38574s/\\$// 38575t bsnlc 38576s/["\\]/\\&/g; s/^/"/; s/$/"/p 38577d 38578:bsnlc 38579s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 38580b cont 38581' <confdefs.h | sed ' 38582s/'"$ac_delim"'/"\\\ 38583"/g' >>$CONFIG_STATUS || ac_write_fail=1 38584 38585cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38586 for (key in D) D_is_set[key] = 1 38587 FS = "" 38588} 38589/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 38590 line = \$ 0 38591 split(line, arg, " ") 38592 if (arg[1] == "#") { 38593 defundef = arg[2] 38594 mac1 = arg[3] 38595 } else { 38596 defundef = substr(arg[1], 2) 38597 mac1 = arg[2] 38598 } 38599 split(mac1, mac2, "(") #) 38600 macro = mac2[1] 38601 prefix = substr(line, 1, index(line, defundef) - 1) 38602 if (D_is_set[macro]) { 38603 # Preserve the white space surrounding the "#". 38604 print prefix "define", macro P[macro] D[macro] 38605 next 38606 } else { 38607 # Replace #undef with comments. This is necessary, for example, 38608 # in the case of _POSIX_SOURCE, which is predefined and required 38609 # on some systems where configure will not decide to define it. 38610 if (defundef == "undef") { 38611 print "/*", prefix defundef, macro, "*/" 38612 next 38613 } 38614 } 38615} 38616{ print } 38617_ACAWK 38618_ACEOF 38619cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38620 as_fn_error "could not setup config headers machinery" "$LINENO" 5 38621fi # test -n "$CONFIG_HEADERS" 38622 38623 38624eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 38625shift 38626for ac_tag 38627do 38628 case $ac_tag in 38629 :[FHLC]) ac_mode=$ac_tag; continue;; 38630 esac 38631 case $ac_mode$ac_tag in 38632 :[FHL]*:*);; 38633 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 38634 :[FH]-) ac_tag=-:-;; 38635 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 38636 esac 38637 ac_save_IFS=$IFS 38638 IFS=: 38639 set x $ac_tag 38640 IFS=$ac_save_IFS 38641 shift 38642 ac_file=$1 38643 shift 38644 38645 case $ac_mode in 38646 :L) ac_source=$1;; 38647 :[FH]) 38648 ac_file_inputs= 38649 for ac_f 38650 do 38651 case $ac_f in 38652 -) ac_f="$tmp/stdin";; 38653 *) # Look for the file first in the build tree, then in the source tree 38654 # (if the path is not absolute). The absolute path cannot be DOS-style, 38655 # because $ac_f cannot contain `:'. 38656 test -f "$ac_f" || 38657 case $ac_f in 38658 [\\/$]*) false;; 38659 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 38660 esac || 38661 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 38662 esac 38663 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 38664 as_fn_append ac_file_inputs " '$ac_f'" 38665 done 38666 38667 # Let's still pretend it is `configure' which instantiates (i.e., don't 38668 # use $as_me), people would be surprised to read: 38669 # /* config.h. Generated by config.status. */ 38670 configure_input='Generated from '` 38671 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 38672 `' by configure.' 38673 if test x"$ac_file" != x-; then 38674 configure_input="$ac_file. $configure_input" 38675 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 38676$as_echo "$as_me: creating $ac_file" >&6;} 38677 fi 38678 # Neutralize special characters interpreted by sed in replacement strings. 38679 case $configure_input in #( 38680 *\&* | *\|* | *\\* ) 38681 ac_sed_conf_input=`$as_echo "$configure_input" | 38682 sed 's/[\\\\&|]/\\\\&/g'`;; #( 38683 *) ac_sed_conf_input=$configure_input;; 38684 esac 38685 38686 case $ac_tag in 38687 *:-:* | *:-) cat >"$tmp/stdin" \ 38688 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 38689 esac 38690 ;; 38691 esac 38692 38693 ac_dir=`$as_dirname -- "$ac_file" || 38694$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 38695 X"$ac_file" : 'X\(//\)[^/]' \| \ 38696 X"$ac_file" : 'X\(//\)$' \| \ 38697 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 38698$as_echo X"$ac_file" | 38699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 38700 s//\1/ 38701 q 38702 } 38703 /^X\(\/\/\)[^/].*/{ 38704 s//\1/ 38705 q 38706 } 38707 /^X\(\/\/\)$/{ 38708 s//\1/ 38709 q 38710 } 38711 /^X\(\/\).*/{ 38712 s//\1/ 38713 q 38714 } 38715 s/.*/./; q'` 38716 as_dir="$ac_dir"; as_fn_mkdir_p 38717 ac_builddir=. 38718 38719case "$ac_dir" in 38720.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 38721*) 38722 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 38723 # A ".." for each directory in $ac_dir_suffix. 38724 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 38725 case $ac_top_builddir_sub in 38726 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 38727 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 38728 esac ;; 38729esac 38730ac_abs_top_builddir=$ac_pwd 38731ac_abs_builddir=$ac_pwd$ac_dir_suffix 38732# for backward compatibility: 38733ac_top_builddir=$ac_top_build_prefix 38734 38735case $srcdir in 38736 .) # We are building in place. 38737 ac_srcdir=. 38738 ac_top_srcdir=$ac_top_builddir_sub 38739 ac_abs_top_srcdir=$ac_pwd ;; 38740 [\\/]* | ?:[\\/]* ) # Absolute name. 38741 ac_srcdir=$srcdir$ac_dir_suffix; 38742 ac_top_srcdir=$srcdir 38743 ac_abs_top_srcdir=$srcdir ;; 38744 *) # Relative name. 38745 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 38746 ac_top_srcdir=$ac_top_build_prefix$srcdir 38747 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 38748esac 38749ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 38750 38751 38752 case $ac_mode in 38753 :F) 38754 # 38755 # CONFIG_FILE 38756 # 38757 38758 case $INSTALL in 38759 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 38760 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 38761 esac 38762_ACEOF 38763 38764cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38765# If the template does not know about datarootdir, expand it. 38766# FIXME: This hack should be removed a few years after 2.60. 38767ac_datarootdir_hack=; ac_datarootdir_seen= 38768ac_sed_dataroot=' 38769/datarootdir/ { 38770 p 38771 q 38772} 38773/@datadir@/p 38774/@docdir@/p 38775/@infodir@/p 38776/@localedir@/p 38777/@mandir@/p' 38778case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 38779*datarootdir*) ac_datarootdir_seen=yes;; 38780*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 38781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 38782$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 38783_ACEOF 38784cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38785 ac_datarootdir_hack=' 38786 s&@datadir@&$datadir&g 38787 s&@docdir@&$docdir&g 38788 s&@infodir@&$infodir&g 38789 s&@localedir@&$localedir&g 38790 s&@mandir@&$mandir&g 38791 s&\\\${datarootdir}&$datarootdir&g' ;; 38792esac 38793_ACEOF 38794 38795# Neutralize VPATH when `$srcdir' = `.'. 38796# Shell code in configure.ac might set extrasub. 38797# FIXME: do we really want to maintain this feature? 38798cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 38799ac_sed_extra="$ac_vpsub 38800$extrasub 38801_ACEOF 38802cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 38803:t 38804/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 38805s|@configure_input@|$ac_sed_conf_input|;t t 38806s&@top_builddir@&$ac_top_builddir_sub&;t t 38807s&@top_build_prefix@&$ac_top_build_prefix&;t t 38808s&@srcdir@&$ac_srcdir&;t t 38809s&@abs_srcdir@&$ac_abs_srcdir&;t t 38810s&@top_srcdir@&$ac_top_srcdir&;t t 38811s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 38812s&@builddir@&$ac_builddir&;t t 38813s&@abs_builddir@&$ac_abs_builddir&;t t 38814s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 38815s&@INSTALL@&$ac_INSTALL&;t t 38816$ac_datarootdir_hack 38817" 38818eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 38819 || as_fn_error "could not create $ac_file" "$LINENO" 5 38820 38821test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 38822 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 38823 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 38824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 38825which seems to be undefined. Please make sure it is defined." >&5 38826$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 38827which seems to be undefined. Please make sure it is defined." >&2;} 38828 38829 rm -f "$tmp/stdin" 38830 case $ac_file in 38831 -) cat "$tmp/out" && rm -f "$tmp/out";; 38832 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 38833 esac \ 38834 || as_fn_error "could not create $ac_file" "$LINENO" 5 38835 ;; 38836 :H) 38837 # 38838 # CONFIG_HEADER 38839 # 38840 if test x"$ac_file" != x-; then 38841 { 38842 $as_echo "/* $configure_input */" \ 38843 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 38844 } >"$tmp/config.h" \ 38845 || as_fn_error "could not create $ac_file" "$LINENO" 5 38846 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 38847 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 38848$as_echo "$as_me: $ac_file is unchanged" >&6;} 38849 else 38850 rm -f "$ac_file" 38851 mv "$tmp/config.h" "$ac_file" \ 38852 || as_fn_error "could not create $ac_file" "$LINENO" 5 38853 fi 38854 else 38855 $as_echo "/* $configure_input */" \ 38856 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 38857 || as_fn_error "could not create -" "$LINENO" 5 38858 fi 38859# Compute "$ac_file"'s index in $config_headers. 38860_am_stamp_count=1 38861for _am_header in $config_headers :; do 38862 case $_am_header in 38863 "$ac_file" | "$ac_file":* ) 38864 break ;; 38865 * ) 38866 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 38867 esac 38868done 38869echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" || 38870$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 38871 X"$ac_file" : 'X\(//\)[^/]' \| \ 38872 X"$ac_file" : 'X\(//\)$' \| \ 38873 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 38874$as_echo X"$ac_file" | 38875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 38876 s//\1/ 38877 q 38878 } 38879 /^X\(\/\/\)[^/].*/{ 38880 s//\1/ 38881 q 38882 } 38883 /^X\(\/\/\)$/{ 38884 s//\1/ 38885 q 38886 } 38887 /^X\(\/\).*/{ 38888 s//\1/ 38889 q 38890 } 38891 s/.*/./; q'`/stamp-h$_am_stamp_count 38892 ;; 38893 38894 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 38895$as_echo "$as_me: executing $ac_file commands" >&6;} 38896 ;; 38897 esac 38898 38899 38900 case $ac_file$ac_mode in 38901 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 38902 # Strip MF so we end up with the name of the file. 38903 mf=`echo "$mf" | sed -e 's/:.*$//'` 38904 # Check whether this is an Automake generated Makefile or not. 38905 # We used to match only the files named `Makefile.in', but 38906 # some people rename them; so instead we look at the file content. 38907 # Grep'ing the first line is not enough: some people post-process 38908 # each Makefile.in and add a new line on top of each file to say so. 38909 # So let's grep whole file. 38910 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 38911 dirpart=`$as_dirname -- "$mf" || 38912$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 38913 X"$mf" : 'X\(//\)[^/]' \| \ 38914 X"$mf" : 'X\(//\)$' \| \ 38915 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 38916$as_echo X"$mf" | 38917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 38918 s//\1/ 38919 q 38920 } 38921 /^X\(\/\/\)[^/].*/{ 38922 s//\1/ 38923 q 38924 } 38925 /^X\(\/\/\)$/{ 38926 s//\1/ 38927 q 38928 } 38929 /^X\(\/\).*/{ 38930 s//\1/ 38931 q 38932 } 38933 s/.*/./; q'` 38934 else 38935 continue 38936 fi 38937 # Extract the definition of DEPDIR, am__include, and am__quote 38938 # from the Makefile without running `make'. 38939 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 38940 test -z "$DEPDIR" && continue 38941 am__include=`sed -n 's/^am__include = //p' < "$mf"` 38942 test -z "am__include" && continue 38943 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 38944 # When using ansi2knr, U may be empty or an underscore; expand it 38945 U=`sed -n 's/^U = //p' < "$mf"` 38946 # Find all dependency output files, they are included files with 38947 # $(DEPDIR) in their names. We invoke sed twice because it is the 38948 # simplest approach to changing $(DEPDIR) to its actual value in the 38949 # expansion. 38950 for file in `sed -n " 38951 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 38952 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 38953 # Make sure the directory exists. 38954 test -f "$dirpart/$file" && continue 38955 fdir=`$as_dirname -- "$file" || 38956$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 38957 X"$file" : 'X\(//\)[^/]' \| \ 38958 X"$file" : 'X\(//\)$' \| \ 38959 X"$file" : 'X\(/\)' \| . 2>/dev/null || 38960$as_echo X"$file" | 38961 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 38962 s//\1/ 38963 q 38964 } 38965 /^X\(\/\/\)[^/].*/{ 38966 s//\1/ 38967 q 38968 } 38969 /^X\(\/\/\)$/{ 38970 s//\1/ 38971 q 38972 } 38973 /^X\(\/\).*/{ 38974 s//\1/ 38975 q 38976 } 38977 s/.*/./; q'` 38978 as_dir=$dirpart/$fdir; as_fn_mkdir_p 38979 # echo "creating $dirpart/$file" 38980 echo '# dummy' > "$dirpart/$file" 38981 done 38982done 38983 ;; 38984 "libtool":C) 38985 38986 # See if we are running on zsh, and set the options which allow our 38987 # commands through without removal of \ escapes. 38988 if test -n "${ZSH_VERSION+set}" ; then 38989 setopt NO_GLOB_SUBST 38990 fi 38991 38992 cfgfile="${ofile}T" 38993 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 38994 $RM "$cfgfile" 38995 38996 cat <<_LT_EOF >> "$cfgfile" 38997#! $SHELL 38998 38999# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 39000# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 39001# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 39002# NOTE: Changes made to this file will be lost: look at ltmain.sh. 39003# 39004# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 39005# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 39006# Foundation, Inc. 39007# Written by Gordon Matzigkeit, 1996 39008# 39009# This file is part of GNU Libtool. 39010# 39011# GNU Libtool is free software; you can redistribute it and/or 39012# modify it under the terms of the GNU General Public License as 39013# published by the Free Software Foundation; either version 2 of 39014# the License, or (at your option) any later version. 39015# 39016# As a special exception to the GNU General Public License, 39017# if you distribute this file as part of a program or library that 39018# is built using GNU Libtool, you may include this file under the 39019# same distribution terms that you use for the rest of that program. 39020# 39021# GNU Libtool is distributed in the hope that it will be useful, 39022# but WITHOUT ANY WARRANTY; without even the implied warranty of 39023# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 39024# GNU General Public License for more details. 39025# 39026# You should have received a copy of the GNU General Public License 39027# along with GNU Libtool; see the file COPYING. If not, a copy 39028# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 39029# obtained by writing to the Free Software Foundation, Inc., 39030# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 39031 39032 39033# The names of the tagged configurations supported by this script. 39034available_tags="" 39035 39036# ### BEGIN LIBTOOL CONFIG 39037 39038# Assembler program. 39039AS=$lt_AS 39040 39041# DLL creation program. 39042DLLTOOL=$lt_DLLTOOL 39043 39044# Object dumper program. 39045OBJDUMP=$lt_OBJDUMP 39046 39047# Which release of libtool.m4 was used? 39048macro_version=$macro_version 39049macro_revision=$macro_revision 39050 39051# Whether or not to build shared libraries. 39052build_libtool_libs=$enable_shared 39053 39054# Whether or not to build static libraries. 39055build_old_libs=$enable_static 39056 39057# What type of objects to build. 39058pic_mode=$pic_mode 39059 39060# Whether or not to optimize for fast installation. 39061fast_install=$enable_fast_install 39062 39063# Shell to use when invoking shell scripts. 39064SHELL=$lt_SHELL 39065 39066# An echo program that protects backslashes. 39067ECHO=$lt_ECHO 39068 39069# The PATH separator for the build system. 39070PATH_SEPARATOR=$lt_PATH_SEPARATOR 39071 39072# The host system. 39073host_alias=$host_alias 39074host=$host 39075host_os=$host_os 39076 39077# The build system. 39078build_alias=$build_alias 39079build=$build 39080build_os=$build_os 39081 39082# A sed program that does not truncate output. 39083SED=$lt_SED 39084 39085# Sed that helps us avoid accidentally triggering echo(1) options like -n. 39086Xsed="\$SED -e 1s/^X//" 39087 39088# A grep program that handles long lines. 39089GREP=$lt_GREP 39090 39091# An ERE matcher. 39092EGREP=$lt_EGREP 39093 39094# A literal string matcher. 39095FGREP=$lt_FGREP 39096 39097# A BSD- or MS-compatible name lister. 39098NM=$lt_NM 39099 39100# Whether we need soft or hard links. 39101LN_S=$lt_LN_S 39102 39103# What is the maximum length of a command? 39104max_cmd_len=$max_cmd_len 39105 39106# Object file suffix (normally "o"). 39107objext=$ac_objext 39108 39109# Executable file suffix (normally ""). 39110exeext=$exeext 39111 39112# whether the shell understands "unset". 39113lt_unset=$lt_unset 39114 39115# turn spaces into newlines. 39116SP2NL=$lt_lt_SP2NL 39117 39118# turn newlines into spaces. 39119NL2SP=$lt_lt_NL2SP 39120 39121# convert \$build file names to \$host format. 39122to_host_file_cmd=$lt_cv_to_host_file_cmd 39123 39124# convert \$build files to toolchain format. 39125to_tool_file_cmd=$lt_cv_to_tool_file_cmd 39126 39127# Method to check whether dependent libraries are shared objects. 39128deplibs_check_method=$lt_deplibs_check_method 39129 39130# Command to use when deplibs_check_method = "file_magic". 39131file_magic_cmd=$lt_file_magic_cmd 39132 39133# How to find potential files when deplibs_check_method = "file_magic". 39134file_magic_glob=$lt_file_magic_glob 39135 39136# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 39137want_nocaseglob=$lt_want_nocaseglob 39138 39139# Command to associate shared and link libraries. 39140sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 39141 39142# The archiver. 39143AR=$lt_AR 39144 39145# Flags to create an archive. 39146AR_FLAGS=$lt_AR_FLAGS 39147 39148# How to feed a file listing to the archiver. 39149archiver_list_spec=$lt_archiver_list_spec 39150 39151# A symbol stripping program. 39152STRIP=$lt_STRIP 39153 39154# Commands used to install an old-style archive. 39155RANLIB=$lt_RANLIB 39156old_postinstall_cmds=$lt_old_postinstall_cmds 39157old_postuninstall_cmds=$lt_old_postuninstall_cmds 39158 39159# Whether to use a lock for old archive extraction. 39160lock_old_archive_extraction=$lock_old_archive_extraction 39161 39162# A C compiler. 39163LTCC=$lt_CC 39164 39165# LTCC compiler flags. 39166LTCFLAGS=$lt_CFLAGS 39167 39168# Take the output of nm and produce a listing of raw symbols and C names. 39169global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 39170 39171# Transform the output of nm in a proper C declaration. 39172global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 39173 39174# Transform the output of nm in a C name address pair. 39175global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 39176 39177# Transform the output of nm in a C name address pair when lib prefix is needed. 39178global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 39179 39180# Specify filename containing input files for \$NM. 39181nm_file_list_spec=$lt_nm_file_list_spec 39182 39183# The root where to search for dependent libraries,and in which our libraries should be installed. 39184lt_sysroot=$lt_sysroot 39185 39186# The name of the directory that contains temporary libtool files. 39187objdir=$objdir 39188 39189# Used to examine libraries when file_magic_cmd begins with "file". 39190MAGIC_CMD=$MAGIC_CMD 39191 39192# Must we lock files when doing compilation? 39193need_locks=$lt_need_locks 39194 39195# Manifest tool. 39196MANIFEST_TOOL=$lt_MANIFEST_TOOL 39197 39198# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 39199DSYMUTIL=$lt_DSYMUTIL 39200 39201# Tool to change global to local symbols on Mac OS X. 39202NMEDIT=$lt_NMEDIT 39203 39204# Tool to manipulate fat objects and archives on Mac OS X. 39205LIPO=$lt_LIPO 39206 39207# ldd/readelf like tool for Mach-O binaries on Mac OS X. 39208OTOOL=$lt_OTOOL 39209 39210# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 39211OTOOL64=$lt_OTOOL64 39212 39213# Old archive suffix (normally "a"). 39214libext=$libext 39215 39216# Shared library suffix (normally ".so"). 39217shrext_cmds=$lt_shrext_cmds 39218 39219# The commands to extract the exported symbol list from a shared archive. 39220extract_expsyms_cmds=$lt_extract_expsyms_cmds 39221 39222# Variables whose values should be saved in libtool wrapper scripts and 39223# restored at link time. 39224variables_saved_for_relink=$lt_variables_saved_for_relink 39225 39226# Do we need the "lib" prefix for modules? 39227need_lib_prefix=$need_lib_prefix 39228 39229# Do we need a version for libraries? 39230need_version=$need_version 39231 39232# Library versioning type. 39233version_type=$version_type 39234 39235# Shared library runtime path variable. 39236runpath_var=$runpath_var 39237 39238# Shared library path variable. 39239shlibpath_var=$shlibpath_var 39240 39241# Is shlibpath searched before the hard-coded library search path? 39242shlibpath_overrides_runpath=$shlibpath_overrides_runpath 39243 39244# Format of library name prefix. 39245libname_spec=$lt_libname_spec 39246 39247# List of archive names. First name is the real one, the rest are links. 39248# The last name is the one that the linker finds with -lNAME 39249library_names_spec=$lt_library_names_spec 39250 39251# The coded name of the library, if different from the real name. 39252soname_spec=$lt_soname_spec 39253 39254# Permission mode override for installation of shared libraries. 39255install_override_mode=$lt_install_override_mode 39256 39257# Command to use after installation of a shared archive. 39258postinstall_cmds=$lt_postinstall_cmds 39259 39260# Command to use after uninstallation of a shared archive. 39261postuninstall_cmds=$lt_postuninstall_cmds 39262 39263# Commands used to finish a libtool library installation in a directory. 39264finish_cmds=$lt_finish_cmds 39265 39266# As "finish_cmds", except a single script fragment to be evaled but 39267# not shown. 39268finish_eval=$lt_finish_eval 39269 39270# Whether we should hardcode library paths into libraries. 39271hardcode_into_libs=$hardcode_into_libs 39272 39273# Compile-time system search path for libraries. 39274sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 39275 39276# Run-time system search path for libraries. 39277sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 39278 39279# Whether dlopen is supported. 39280dlopen_support=$enable_dlopen 39281 39282# Whether dlopen of programs is supported. 39283dlopen_self=$enable_dlopen_self 39284 39285# Whether dlopen of statically linked programs is supported. 39286dlopen_self_static=$enable_dlopen_self_static 39287 39288# Commands to strip libraries. 39289old_striplib=$lt_old_striplib 39290striplib=$lt_striplib 39291 39292 39293# The linker used to build libraries. 39294LD=$lt_LD 39295 39296# How to create reloadable object files. 39297reload_flag=$lt_reload_flag 39298reload_cmds=$lt_reload_cmds 39299 39300# Commands used to build an old-style archive. 39301old_archive_cmds=$lt_old_archive_cmds 39302 39303# A language specific compiler. 39304CC=$lt_compiler 39305 39306# Is the compiler the GNU compiler? 39307with_gcc=$GCC 39308 39309# Compiler flag to turn off builtin functions. 39310no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 39311 39312# Additional compiler flags for building library objects. 39313pic_flag=$lt_lt_prog_compiler_pic 39314 39315# How to pass a linker flag through the compiler. 39316wl=$lt_lt_prog_compiler_wl 39317 39318# Compiler flag to prevent dynamic linking. 39319link_static_flag=$lt_lt_prog_compiler_static 39320 39321# Does compiler simultaneously support -c and -o options? 39322compiler_c_o=$lt_lt_cv_prog_compiler_c_o 39323 39324# Whether or not to add -lc for building shared libraries. 39325build_libtool_need_lc=$archive_cmds_need_lc 39326 39327# Whether or not to disallow shared libs when runtime libs are static. 39328allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 39329 39330# Compiler flag to allow reflexive dlopens. 39331export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 39332 39333# Compiler flag to generate shared objects directly from archives. 39334whole_archive_flag_spec=$lt_whole_archive_flag_spec 39335 39336# Whether the compiler copes with passing no objects directly. 39337compiler_needs_object=$lt_compiler_needs_object 39338 39339# Create an old-style archive from a shared archive. 39340old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 39341 39342# Create a temporary old-style archive to link instead of a shared archive. 39343old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 39344 39345# Commands used to build a shared archive. 39346archive_cmds=$lt_archive_cmds 39347archive_expsym_cmds=$lt_archive_expsym_cmds 39348 39349# Commands used to build a loadable module if different from building 39350# a shared archive. 39351module_cmds=$lt_module_cmds 39352module_expsym_cmds=$lt_module_expsym_cmds 39353 39354# Whether we are building with GNU ld or not. 39355with_gnu_ld=$lt_with_gnu_ld 39356 39357# Flag that allows shared libraries with undefined symbols to be built. 39358allow_undefined_flag=$lt_allow_undefined_flag 39359 39360# Flag that enforces no undefined symbols. 39361no_undefined_flag=$lt_no_undefined_flag 39362 39363# Flag to hardcode \$libdir into a binary during linking. 39364# This must work even if \$libdir does not exist 39365hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 39366 39367# Whether we need a single "-rpath" flag with a separated argument. 39368hardcode_libdir_separator=$lt_hardcode_libdir_separator 39369 39370# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 39371# DIR into the resulting binary. 39372hardcode_direct=$hardcode_direct 39373 39374# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 39375# DIR into the resulting binary and the resulting library dependency is 39376# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 39377# library is relocated. 39378hardcode_direct_absolute=$hardcode_direct_absolute 39379 39380# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 39381# into the resulting binary. 39382hardcode_minus_L=$hardcode_minus_L 39383 39384# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 39385# into the resulting binary. 39386hardcode_shlibpath_var=$hardcode_shlibpath_var 39387 39388# Set to "yes" if building a shared library automatically hardcodes DIR 39389# into the library and all subsequent libraries and executables linked 39390# against it. 39391hardcode_automatic=$hardcode_automatic 39392 39393# Set to yes if linker adds runtime paths of dependent libraries 39394# to runtime path list. 39395inherit_rpath=$inherit_rpath 39396 39397# Whether libtool must link a program against all its dependency libraries. 39398link_all_deplibs=$link_all_deplibs 39399 39400# Set to "yes" if exported symbols are required. 39401always_export_symbols=$always_export_symbols 39402 39403# The commands to list exported symbols. 39404export_symbols_cmds=$lt_export_symbols_cmds 39405 39406# Symbols that should not be listed in the preloaded symbols. 39407exclude_expsyms=$lt_exclude_expsyms 39408 39409# Symbols that must always be exported. 39410include_expsyms=$lt_include_expsyms 39411 39412# Commands necessary for linking programs (against libraries) with templates. 39413prelink_cmds=$lt_prelink_cmds 39414 39415# Commands necessary for finishing linking programs. 39416postlink_cmds=$lt_postlink_cmds 39417 39418# Specify filename containing input files. 39419file_list_spec=$lt_file_list_spec 39420 39421# How to hardcode a shared library path into an executable. 39422hardcode_action=$hardcode_action 39423 39424# ### END LIBTOOL CONFIG 39425 39426_LT_EOF 39427 39428 case $host_os in 39429 aix3*) 39430 cat <<\_LT_EOF >> "$cfgfile" 39431# AIX sometimes has problems with the GCC collect2 program. For some 39432# reason, if we set the COLLECT_NAMES environment variable, the problems 39433# vanish in a puff of smoke. 39434if test "X${COLLECT_NAMES+set}" != Xset; then 39435 COLLECT_NAMES= 39436 export COLLECT_NAMES 39437fi 39438_LT_EOF 39439 ;; 39440 esac 39441 39442 39443ltmain="$ac_aux_dir/ltmain.sh" 39444 39445 39446 # We use sed instead of cat because bash on DJGPP gets confused if 39447 # if finds mixed CR/LF and LF-only lines. Since sed operates in 39448 # text mode, it properly converts lines to CR/LF. This bash problem 39449 # is reportedly fixed, but why not run on old versions too? 39450 sed '$q' "$ltmain" >> "$cfgfile" \ 39451 || (rm -f "$cfgfile"; exit 1) 39452 39453 if test x"$xsi_shell" = xyes; then 39454 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 39455func_dirname ()\ 39456{\ 39457\ case ${1} in\ 39458\ */*) func_dirname_result="${1%/*}${2}" ;;\ 39459\ * ) func_dirname_result="${3}" ;;\ 39460\ esac\ 39461} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 39462 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39463 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39464test 0 -eq $? || _lt_function_replace_fail=: 39465 39466 39467 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 39468func_basename ()\ 39469{\ 39470\ func_basename_result="${1##*/}"\ 39471} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 39472 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39473 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39474test 0 -eq $? || _lt_function_replace_fail=: 39475 39476 39477 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 39478func_dirname_and_basename ()\ 39479{\ 39480\ case ${1} in\ 39481\ */*) func_dirname_result="${1%/*}${2}" ;;\ 39482\ * ) func_dirname_result="${3}" ;;\ 39483\ esac\ 39484\ func_basename_result="${1##*/}"\ 39485} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 39486 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39487 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39488test 0 -eq $? || _lt_function_replace_fail=: 39489 39490 39491 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 39492func_stripname ()\ 39493{\ 39494\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 39495\ # positional parameters, so assign one to ordinary parameter first.\ 39496\ func_stripname_result=${3}\ 39497\ func_stripname_result=${func_stripname_result#"${1}"}\ 39498\ func_stripname_result=${func_stripname_result%"${2}"}\ 39499} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 39500 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39501 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39502test 0 -eq $? || _lt_function_replace_fail=: 39503 39504 39505 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 39506func_split_long_opt ()\ 39507{\ 39508\ func_split_long_opt_name=${1%%=*}\ 39509\ func_split_long_opt_arg=${1#*=}\ 39510} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 39511 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39512 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39513test 0 -eq $? || _lt_function_replace_fail=: 39514 39515 39516 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 39517func_split_short_opt ()\ 39518{\ 39519\ func_split_short_opt_arg=${1#??}\ 39520\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 39521} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 39522 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39523 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39524test 0 -eq $? || _lt_function_replace_fail=: 39525 39526 39527 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 39528func_lo2o ()\ 39529{\ 39530\ case ${1} in\ 39531\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 39532\ *) func_lo2o_result=${1} ;;\ 39533\ esac\ 39534} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 39535 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39536 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39537test 0 -eq $? || _lt_function_replace_fail=: 39538 39539 39540 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 39541func_xform ()\ 39542{\ 39543 func_xform_result=${1%.*}.lo\ 39544} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 39545 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39546 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39547test 0 -eq $? || _lt_function_replace_fail=: 39548 39549 39550 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 39551func_arith ()\ 39552{\ 39553 func_arith_result=$(( $* ))\ 39554} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 39555 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39556 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39557test 0 -eq $? || _lt_function_replace_fail=: 39558 39559 39560 sed -e '/^func_len ()$/,/^} # func_len /c\ 39561func_len ()\ 39562{\ 39563 func_len_result=${#1}\ 39564} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 39565 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39566 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39567test 0 -eq $? || _lt_function_replace_fail=: 39568 39569fi 39570 39571if test x"$lt_shell_append" = xyes; then 39572 sed -e '/^func_append ()$/,/^} # func_append /c\ 39573func_append ()\ 39574{\ 39575 eval "${1}+=\\${2}"\ 39576} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 39577 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39578 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39579test 0 -eq $? || _lt_function_replace_fail=: 39580 39581 39582 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 39583func_append_quoted ()\ 39584{\ 39585\ func_quote_for_eval "${2}"\ 39586\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 39587} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 39588 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39589 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39590test 0 -eq $? || _lt_function_replace_fail=: 39591 39592 39593 # Save a `func_append' function call where possible by direct use of '+=' 39594 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 39595 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39596 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39597 test 0 -eq $? || _lt_function_replace_fail=: 39598else 39599 # Save a `func_append' function call even when '+=' is not available 39600 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 39601 && mv -f "$cfgfile.tmp" "$cfgfile" \ 39602 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 39603 test 0 -eq $? || _lt_function_replace_fail=: 39604fi 39605 39606if test x"$_lt_function_replace_fail" = x":"; then 39607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 39608$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 39609fi 39610 39611 39612 mv -f "$cfgfile" "$ofile" || 39613 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 39614 chmod +x "$ofile" 39615 39616 ;; 39617 39618 esac 39619done # for ac_tag 39620 39621 39622as_fn_exit 0 39623_ACEOF 39624ac_clean_files=$ac_clean_files_save 39625 39626test $ac_write_fail = 0 || 39627 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 39628 39629 39630# configure is writing to config.log, and then calls config.status. 39631# config.status does its own redirection, appending to config.log. 39632# Unfortunately, on DOS this fails, as config.log is still kept open 39633# by configure, so config.status won't be able to write to it; its 39634# output is simply discarded. So we exec the FD to /dev/null, 39635# effectively closing config.log, so it can be properly (re)opened and 39636# appended to by config.status. When coming back to configure, we 39637# need to make the FD available again. 39638if test "$no_create" != yes; then 39639 ac_cs_success=: 39640 ac_config_status_args= 39641 test "$silent" = yes && 39642 ac_config_status_args="$ac_config_status_args --quiet" 39643 exec 5>/dev/null 39644 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 39645 exec 5>>config.log 39646 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 39647 # would make configure fail if this is the last instruction. 39648 $ac_cs_success || as_fn_exit $? 39649fi 39650 39651# 39652# CONFIG_SUBDIRS section. 39653# 39654if test "$no_recursion" != yes; then 39655 39656 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 39657 # so they do not pile up. 39658 ac_sub_configure_args= 39659 ac_prev= 39660 eval "set x $ac_configure_args" 39661 shift 39662 for ac_arg 39663 do 39664 if test -n "$ac_prev"; then 39665 ac_prev= 39666 continue 39667 fi 39668 case $ac_arg in 39669 -cache-file | --cache-file | --cache-fil | --cache-fi \ 39670 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 39671 ac_prev=cache_file ;; 39672 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 39673 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 39674 | --c=*) 39675 ;; 39676 --config-cache | -C) 39677 ;; 39678 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 39679 ac_prev=srcdir ;; 39680 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 39681 ;; 39682 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 39683 ac_prev=prefix ;; 39684 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 39685 ;; 39686 --disable-option-checking) 39687 ;; 39688 *) 39689 case $ac_arg in 39690 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 39691 esac 39692 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; 39693 esac 39694 done 39695 39696 # Always prepend --prefix to ensure using the same prefix 39697 # in subdir configurations. 39698 ac_arg="--prefix=$prefix" 39699 case $ac_arg in 39700 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 39701 esac 39702 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 39703 39704 # Pass --silent 39705 if test "$silent" = yes; then 39706 ac_sub_configure_args="--silent $ac_sub_configure_args" 39707 fi 39708 39709 # Always prepend --disable-option-checking to silence warnings, since 39710 # different subdirs can have different --enable and --with options. 39711 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 39712 39713 ac_popdir=`pwd` 39714 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 39715 39716 # Do not complain, so a configure script can configure whichever 39717 # parts of a large source tree are present. 39718 test -d "$srcdir/$ac_dir" || continue 39719 39720 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 39721 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 39722 $as_echo "$ac_msg" >&6 39723 as_dir="$ac_dir"; as_fn_mkdir_p 39724 ac_builddir=. 39725 39726case "$ac_dir" in 39727.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 39728*) 39729 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 39730 # A ".." for each directory in $ac_dir_suffix. 39731 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 39732 case $ac_top_builddir_sub in 39733 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 39734 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 39735 esac ;; 39736esac 39737ac_abs_top_builddir=$ac_pwd 39738ac_abs_builddir=$ac_pwd$ac_dir_suffix 39739# for backward compatibility: 39740ac_top_builddir=$ac_top_build_prefix 39741 39742case $srcdir in 39743 .) # We are building in place. 39744 ac_srcdir=. 39745 ac_top_srcdir=$ac_top_builddir_sub 39746 ac_abs_top_srcdir=$ac_pwd ;; 39747 [\\/]* | ?:[\\/]* ) # Absolute name. 39748 ac_srcdir=$srcdir$ac_dir_suffix; 39749 ac_top_srcdir=$srcdir 39750 ac_abs_top_srcdir=$srcdir ;; 39751 *) # Relative name. 39752 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 39753 ac_top_srcdir=$ac_top_build_prefix$srcdir 39754 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 39755esac 39756ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 39757 39758 39759 cd "$ac_dir" 39760 39761 # Check for guested configure; otherwise get Cygnus style configure. 39762 if test -f "$ac_srcdir/configure.gnu"; then 39763 ac_sub_configure=$ac_srcdir/configure.gnu 39764 elif test -f "$ac_srcdir/configure"; then 39765 ac_sub_configure=$ac_srcdir/configure 39766 elif test -f "$ac_srcdir/configure.in"; then 39767 # This should be Cygnus configure. 39768 ac_sub_configure=$ac_aux_dir/configure 39769 else 39770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 39771$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 39772 ac_sub_configure= 39773 fi 39774 39775 # The recursion is here. 39776 if test -n "$ac_sub_configure"; then 39777 # Make the cache file name correct relative to the subdirectory. 39778 case $cache_file in 39779 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 39780 *) # Relative name. 39781 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 39782 esac 39783 39784 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 39785$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 39786 # The eval makes quoting arguments work. 39787 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 39788 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 39789 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 39790 fi 39791 39792 cd "$ac_popdir" 39793 done 39794fi 39795if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 39796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 39797$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 39798fi 39799 39800 39801 39802 tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null` 39803 if test -z "$tmp_cpp"; then 39804 tmp_cpp='cpp' 39805 fi 39806 cat >./tests/configurehelp.pm <<_EOF 39807# This is a generated file. Do not edit. 39808 39809package configurehelp; 39810 39811use strict; 39812use warnings; 39813use Exporter; 39814 39815use vars qw( 39816 @ISA 39817 @EXPORT_OK 39818 \$Cpreprocessor 39819 ); 39820 39821@ISA = qw(Exporter); 39822 39823@EXPORT_OK = qw( 39824 \$Cpreprocessor 39825 ); 39826 39827\$Cpreprocessor = '$tmp_cpp'; 39828 398291; 39830_EOF 39831 39832 39833{ $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl: 39834 39835 curl version: ${CURLVERSION} 39836 Host setup: ${host} 39837 Install prefix: ${prefix} 39838 Compiler: ${CC} 39839 SSL support: ${curl_ssl_msg} 39840 SSH support: ${curl_ssh_msg} 39841 zlib support: ${curl_zlib_msg} 39842 krb4 support: ${curl_krb4_msg} 39843 GSSAPI support: ${curl_gss_msg} 39844 SPNEGO support: ${curl_spnego_msg} 39845 TLS-SRP support: ${curl_tls_srp_msg} 39846 resolver: ${curl_res_msg} 39847 ipv6 support: ${curl_ipv6_msg} 39848 IDN support: ${curl_idn_msg} 39849 Build libcurl: Shared=${enable_shared}, Static=${enable_static} 39850 Built-in manual: ${curl_manual_msg} 39851 Verbose errors: ${curl_verbose_msg} 39852 SSPI support: ${curl_sspi_msg} 39853 ca cert bundle: ${ca} 39854 ca cert path: ${capath} 39855 LDAP support: ${curl_ldap_msg} 39856 LDAPS support: ${curl_ldaps_msg} 39857 RTSP support: ${curl_rtsp_msg} 39858 RTMP support: ${curl_rtmp_msg} 39859 Protocols: ${SUPPORT_PROTOCOLS} 39860" >&5 39861$as_echo "$as_me: Configured to build curl/libcurl: 39862 39863 curl version: ${CURLVERSION} 39864 Host setup: ${host} 39865 Install prefix: ${prefix} 39866 Compiler: ${CC} 39867 SSL support: ${curl_ssl_msg} 39868 SSH support: ${curl_ssh_msg} 39869 zlib support: ${curl_zlib_msg} 39870 krb4 support: ${curl_krb4_msg} 39871 GSSAPI support: ${curl_gss_msg} 39872 SPNEGO support: ${curl_spnego_msg} 39873 TLS-SRP support: ${curl_tls_srp_msg} 39874 resolver: ${curl_res_msg} 39875 ipv6 support: ${curl_ipv6_msg} 39876 IDN support: ${curl_idn_msg} 39877 Build libcurl: Shared=${enable_shared}, Static=${enable_static} 39878 Built-in manual: ${curl_manual_msg} 39879 Verbose errors: ${curl_verbose_msg} 39880 SSPI support: ${curl_sspi_msg} 39881 ca cert bundle: ${ca} 39882 ca cert path: ${capath} 39883 LDAP support: ${curl_ldap_msg} 39884 LDAPS support: ${curl_ldaps_msg} 39885 RTSP support: ${curl_rtsp_msg} 39886 RTMP support: ${curl_rtmp_msg} 39887 Protocols: ${SUPPORT_PROTOCOLS} 39888" >&6;} 39889 39890if test "x$soname_bump" = "xyes"; then 39891 39892cat <<EOM 39893 SONAME bump: yes - WARNING: this library will be built with the SONAME 39894 number bumped due to (a detected) ABI breakage. 39895 See lib/README.curl_off_t for details on this. 39896EOM 39897 39898fi 39899 39900