| lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.69 for curl -. |
| 4 | # |
| 5 | # Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>. |
| 6 | # |
| 7 | # |
| 8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
| 9 | # |
| 10 | # |
| 11 | # This configure script is free software; the Free Software Foundation |
| 12 | # gives unlimited permission to copy, distribute and modify it. |
| 13 | # |
| 14 | # Copyright (c) 1998 - 2017 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 | ## -------------------------------- ## |
| 19 | ## XC_CONFIGURE_PREAMBLE ver: 1.0 ## |
| 20 | ## -------------------------------- ## |
| 21 | |
| 22 | xc_configure_preamble_ver_major='1' |
| 23 | xc_configure_preamble_ver_minor='0' |
| 24 | |
| 25 | # |
| 26 | # Set IFS to space, tab and newline. |
| 27 | # |
| 28 | |
| 29 | xc_space=' ' |
| 30 | xc_tab=' ' |
| 31 | xc_newline=' |
| 32 | ' |
| 33 | IFS="$xc_space$xc_tab$xc_newline" |
| 34 | |
| 35 | # |
| 36 | # Set internationalization behavior variables. |
| 37 | # |
| 38 | |
| 39 | LANG='C' |
| 40 | LC_ALL='C' |
| 41 | LANGUAGE='C' |
| 42 | export LANG |
| 43 | export LC_ALL |
| 44 | export LANGUAGE |
| 45 | |
| 46 | # |
| 47 | # Some useful variables. |
| 48 | # |
| 49 | |
| 50 | xc_msg_warn='configure: WARNING:' |
| 51 | xc_msg_abrt='Can not continue.' |
| 52 | xc_msg_err='configure: error:' |
| 53 | |
| 54 | # |
| 55 | # Verify that 'echo' command is available, otherwise abort. |
| 56 | # |
| 57 | |
| 58 | xc_tst_str='unknown' |
| 59 | (`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success' |
| 60 | case "x$xc_tst_str" in # (( |
| 61 | xsuccess) |
| 62 | : |
| 63 | ;; |
| 64 | *) |
| 65 | # Try built-in echo, and fail. |
| 66 | echo "$xc_msg_err 'echo' command not found. $xc_msg_abrt" >&2 |
| 67 | exit 1 |
| 68 | ;; |
| 69 | esac |
| 70 | |
| 71 | # |
| 72 | # Verify that 'test' command is available, otherwise abort. |
| 73 | # |
| 74 | |
| 75 | xc_tst_str='unknown' |
| 76 | (`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success' |
| 77 | case "x$xc_tst_str" in # (( |
| 78 | xsuccess) |
| 79 | : |
| 80 | ;; |
| 81 | *) |
| 82 | echo "$xc_msg_err 'test' command not found. $xc_msg_abrt" >&2 |
| 83 | exit 1 |
| 84 | ;; |
| 85 | esac |
| 86 | |
| 87 | # |
| 88 | # Verify that 'PATH' variable is set, otherwise abort. |
| 89 | # |
| 90 | |
| 91 | xc_tst_str='unknown' |
| 92 | (`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success' |
| 93 | case "x$xc_tst_str" in # (( |
| 94 | xsuccess) |
| 95 | : |
| 96 | ;; |
| 97 | *) |
| 98 | echo "$xc_msg_err 'PATH' variable not set. $xc_msg_abrt" >&2 |
| 99 | exit 1 |
| 100 | ;; |
| 101 | esac |
| 102 | |
| 103 | # |
| 104 | # Verify that 'expr' command is available, otherwise abort. |
| 105 | # |
| 106 | |
| 107 | xc_tst_str='unknown' |
| 108 | xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null` |
| 109 | case "x$xc_tst_str" in # (( |
| 110 | x7) |
| 111 | : |
| 112 | ;; |
| 113 | *) |
| 114 | echo "$xc_msg_err 'expr' command not found. $xc_msg_abrt" >&2 |
| 115 | exit 1 |
| 116 | ;; |
| 117 | esac |
| 118 | |
| 119 | # |
| 120 | # Verify that 'sed' utility is found within 'PATH', otherwise abort. |
| 121 | # |
| 122 | |
| 123 | xc_tst_str='unknown' |
| 124 | xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \ |
| 125 | | sed -e 's:unknown:success:' 2>/dev/null` |
| 126 | case "x$xc_tst_str" in # (( |
| 127 | xsuccess) |
| 128 | : |
| 129 | ;; |
| 130 | *) |
| 131 | echo "$xc_msg_err 'sed' utility not found in 'PATH'. $xc_msg_abrt" >&2 |
| 132 | exit 1 |
| 133 | ;; |
| 134 | esac |
| 135 | |
| 136 | # |
| 137 | # Verify that 'grep' utility is found within 'PATH', otherwise abort. |
| 138 | # |
| 139 | |
| 140 | xc_tst_str='unknown' |
| 141 | (`echo "$xc_tst_str" 2>/dev/null \ |
| 142 | | grep 'unknown' >/dev/null 2>&1`) && xc_tst_str='success' |
| 143 | case "x$xc_tst_str" in # (( |
| 144 | xsuccess) |
| 145 | : |
| 146 | ;; |
| 147 | *) |
| 148 | echo "$xc_msg_err 'grep' utility not found in 'PATH'. $xc_msg_abrt" >&2 |
| 149 | exit 1 |
| 150 | ;; |
| 151 | esac |
| 152 | |
| 153 | # |
| 154 | # Verify that 'tr' utility is found within 'PATH', otherwise abort. |
| 155 | # |
| 156 | |
| 157 | xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10" |
| 158 | xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \ |
| 159 | | tr -d "0123456789$xc_tab" 2>/dev/null` |
| 160 | case "x$xc_tst_str" in # (( |
| 161 | xsuccess) |
| 162 | : |
| 163 | ;; |
| 164 | *) |
| 165 | echo "$xc_msg_err 'tr' utility not found in 'PATH'. $xc_msg_abrt" >&2 |
| 166 | exit 1 |
| 167 | ;; |
| 168 | esac |
| 169 | |
| 170 | # |
| 171 | # Verify that 'wc' utility is found within 'PATH', otherwise abort. |
| 172 | # |
| 173 | |
| 174 | xc_tst_str='unknown unknown unknown unknown' |
| 175 | xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \ |
| 176 | | wc -w 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null` |
| 177 | case "x$xc_tst_str" in # (( |
| 178 | x4) |
| 179 | : |
| 180 | ;; |
| 181 | *) |
| 182 | echo "$xc_msg_err 'wc' utility not found in 'PATH'. $xc_msg_abrt" >&2 |
| 183 | exit 1 |
| 184 | ;; |
| 185 | esac |
| 186 | |
| 187 | # |
| 188 | # Verify that 'cat' utility is found within 'PATH', otherwise abort. |
| 189 | # |
| 190 | |
| 191 | xc_tst_str='unknown' |
| 192 | xc_tst_str=`cat <<_EOT 2>/dev/null \ |
| 193 | | wc -l 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null |
| 194 | unknown |
| 195 | unknown |
| 196 | unknown |
| 197 | _EOT` |
| 198 | case "x$xc_tst_str" in # (( |
| 199 | x3) |
| 200 | : |
| 201 | ;; |
| 202 | *) |
| 203 | echo "$xc_msg_err 'cat' utility not found in 'PATH'. $xc_msg_abrt" >&2 |
| 204 | exit 1 |
| 205 | ;; |
| 206 | esac |
| 207 | |
| 208 | # |
| 209 | # Auto-detect and set 'PATH_SEPARATOR', unless it is already non-empty set. |
| 210 | # |
| 211 | |
| 212 | # Directory count in 'PATH' when using a colon separator. |
| 213 | xc_tst_dirs_col='x' |
| 214 | xc_tst_prev_IFS=$IFS; IFS=':' |
| 215 | for xc_tst_dir in $PATH; do |
| 216 | IFS=$xc_tst_prev_IFS |
| 217 | xc_tst_dirs_col="x$xc_tst_dirs_col" |
| 218 | done |
| 219 | IFS=$xc_tst_prev_IFS |
| 220 | xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'` |
| 221 | |
| 222 | # Directory count in 'PATH' when using a semicolon separator. |
| 223 | xc_tst_dirs_sem='x' |
| 224 | xc_tst_prev_IFS=$IFS; IFS=';' |
| 225 | for xc_tst_dir in $PATH; do |
| 226 | IFS=$xc_tst_prev_IFS |
| 227 | xc_tst_dirs_sem="x$xc_tst_dirs_sem" |
| 228 | done |
| 229 | IFS=$xc_tst_prev_IFS |
| 230 | xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'` |
| 231 | |
| 232 | if test $xc_tst_dirs_sem -eq $xc_tst_dirs_col; then |
| 233 | # When both counting methods give the same result we do not want to |
| 234 | # chose one over the other, and consider auto-detection not possible. |
| 235 | if test -z "$PATH_SEPARATOR"; then |
| 236 | # Stop dead until user provides 'PATH_SEPARATOR' definition. |
| 237 | echo "$xc_msg_err 'PATH_SEPARATOR' variable not set. $xc_msg_abrt" >&2 |
| 238 | exit 1 |
| 239 | fi |
| 240 | else |
| 241 | # Separator with the greater directory count is the auto-detected one. |
| 242 | if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then |
| 243 | xc_tst_auto_separator=';' |
| 244 | else |
| 245 | xc_tst_auto_separator=':' |
| 246 | fi |
| 247 | if test -z "$PATH_SEPARATOR"; then |
| 248 | # Simply use the auto-detected one when not already set. |
| 249 | PATH_SEPARATOR=$xc_tst_auto_separator |
| 250 | elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then |
| 251 | echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2 |
| 252 | fi |
| 253 | fi |
| 254 | xc_PATH_SEPARATOR=$PATH_SEPARATOR |
| 255 | |
| 256 | xc_configure_preamble_result='yes' |
| 257 | |
| 258 | |
| 259 | ## -------------------- ## |
| 260 | ## M4sh Initialization. ## |
| 261 | ## -------------------- ## |
| 262 | |
| 263 | # Be more Bourne compatible |
| 264 | DUALCASE=1; export DUALCASE # for MKS sh |
| 265 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 266 | emulate sh |
| 267 | NULLCMD=: |
| 268 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 269 | # is contrary to our usage. Disable this feature. |
| 270 | alias -g '${1+"$@"}'='"$@"' |
| 271 | setopt NO_GLOB_SUBST |
| 272 | else |
| 273 | case `(set -o) 2>/dev/null` in #( |
| 274 | *posix*) : |
| 275 | set -o posix ;; #( |
| 276 | *) : |
| 277 | ;; |
| 278 | esac |
| 279 | fi |
| 280 | |
| 281 | |
| 282 | as_nl=' |
| 283 | ' |
| 284 | export as_nl |
| 285 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 286 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 287 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 288 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 289 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 290 | # but without wasting forks for bash or zsh. |
| 291 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 292 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 293 | as_echo='print -r --' |
| 294 | as_echo_n='print -rn --' |
| 295 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 296 | as_echo='printf %s\n' |
| 297 | as_echo_n='printf %s' |
| 298 | else |
| 299 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 300 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 301 | as_echo_n='/usr/ucb/echo -n' |
| 302 | else |
| 303 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 304 | as_echo_n_body='eval |
| 305 | arg=$1; |
| 306 | case $arg in #( |
| 307 | *"$as_nl"*) |
| 308 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 309 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 310 | esac; |
| 311 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 312 | ' |
| 313 | export as_echo_n_body |
| 314 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 315 | fi |
| 316 | export as_echo_body |
| 317 | as_echo='sh -c $as_echo_body as_echo' |
| 318 | fi |
| 319 | |
| 320 | |
| 321 | |
| 322 | # IFS |
| 323 | # We need space, tab and new line, in precisely that order. Quoting is |
| 324 | # there to prevent editors from complaining about space-tab. |
| 325 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 326 | # splitting by setting IFS to empty value.) |
| 327 | IFS=" "" $as_nl" |
| 328 | |
| 329 | # Find who we are. Look in the path if we contain no directory separator. |
| 330 | as_myself= |
| 331 | case $0 in #(( |
| 332 | *[\\/]* ) as_myself=$0 ;; |
| 333 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 334 | for as_dir in $PATH |
| 335 | do |
| 336 | IFS=$as_save_IFS |
| 337 | test -z "$as_dir" && as_dir=. |
| 338 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 339 | done |
| 340 | IFS=$as_save_IFS |
| 341 | |
| 342 | ;; |
| 343 | esac |
| 344 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 345 | # in which case we are not to be found in the path. |
| 346 | if test "x$as_myself" = x; then |
| 347 | as_myself=$0 |
| 348 | fi |
| 349 | if test ! -f "$as_myself"; then |
| 350 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 351 | exit 1 |
| 352 | fi |
| 353 | |
| 354 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 355 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 356 | # suppresses any "Segmentation fault" message there. '((' could |
| 357 | # trigger a bug in pdksh 5.2.14. |
| 358 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 359 | do eval test x\${$as_var+set} = xset \ |
| 360 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 361 | done |
| 362 | PS1='$ ' |
| 363 | PS2='> ' |
| 364 | PS4='+ ' |
| 365 | |
| 366 | # NLS nuisances. |
| 367 | LC_ALL=C |
| 368 | export LC_ALL |
| 369 | LANGUAGE=C |
| 370 | export LANGUAGE |
| 371 | |
| 372 | # CDPATH. |
| 373 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 374 | |
| 375 | # Use a proper internal environment variable to ensure we don't fall |
| 376 | # into an infinite loop, continuously re-executing ourselves. |
| 377 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 378 | _as_can_reexec=no; export _as_can_reexec; |
| 379 | # We cannot yet assume a decent shell, so we have to provide a |
| 380 | # neutralization value for shells without unset; and this also |
| 381 | # works around shells that cannot unset nonexistent variables. |
| 382 | # Preserve -v and -x to the replacement shell. |
| 383 | BASH_ENV=/dev/null |
| 384 | ENV=/dev/null |
| 385 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 386 | case $- in # (((( |
| 387 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 388 | *v* ) as_opts=-v ;; |
| 389 | *x* ) as_opts=-x ;; |
| 390 | * ) as_opts= ;; |
| 391 | esac |
| 392 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 393 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 394 | # out after a failed `exec'. |
| 395 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 396 | as_fn_exit 255 |
| 397 | fi |
| 398 | # We don't want this to propagate to other subprocesses. |
| 399 | { _as_can_reexec=; unset _as_can_reexec;} |
| 400 | if test "x$CONFIG_SHELL" = x; then |
| 401 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 402 | emulate sh |
| 403 | NULLCMD=: |
| 404 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 405 | # is contrary to our usage. Disable this feature. |
| 406 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 407 | setopt NO_GLOB_SUBST |
| 408 | else |
| 409 | case \`(set -o) 2>/dev/null\` in #( |
| 410 | *posix*) : |
| 411 | set -o posix ;; #( |
| 412 | *) : |
| 413 | ;; |
| 414 | esac |
| 415 | fi |
| 416 | " |
| 417 | as_required="as_fn_return () { (exit \$1); } |
| 418 | as_fn_success () { as_fn_return 0; } |
| 419 | as_fn_failure () { as_fn_return 1; } |
| 420 | as_fn_ret_success () { return 0; } |
| 421 | as_fn_ret_failure () { return 1; } |
| 422 | |
| 423 | exitcode=0 |
| 424 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 425 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 426 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 427 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 428 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 429 | |
| 430 | else |
| 431 | exitcode=1; echo positional parameters were not saved. |
| 432 | fi |
| 433 | test x\$exitcode = x0 || exit 1 |
| 434 | test -x / || exit 1" |
| 435 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 436 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 437 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 438 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 439 | test \$(( 1 + 1 )) = 2 || exit 1 |
| 440 | |
| 441 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( |
| 442 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 443 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
| 444 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
| 445 | PATH=/empty FPATH=/empty; export PATH FPATH |
| 446 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ |
| 447 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" |
| 448 | if (eval "$as_required") 2>/dev/null; then : |
| 449 | as_have_required=yes |
| 450 | else |
| 451 | as_have_required=no |
| 452 | fi |
| 453 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 454 | |
| 455 | else |
| 456 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 457 | as_found=false |
| 458 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 459 | do |
| 460 | IFS=$as_save_IFS |
| 461 | test -z "$as_dir" && as_dir=. |
| 462 | as_found=: |
| 463 | case $as_dir in #( |
| 464 | /*) |
| 465 | for as_base in sh bash ksh sh5; do |
| 466 | # Try only shells that exist, to save several forks. |
| 467 | as_shell=$as_dir/$as_base |
| 468 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 469 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 470 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 471 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 472 | break 2 |
| 473 | fi |
| 474 | fi |
| 475 | done;; |
| 476 | esac |
| 477 | as_found=false |
| 478 | done |
| 479 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 480 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 481 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 482 | fi; } |
| 483 | IFS=$as_save_IFS |
| 484 | |
| 485 | |
| 486 | if test "x$CONFIG_SHELL" != x; then : |
| 487 | export CONFIG_SHELL |
| 488 | # We cannot yet assume a decent shell, so we have to provide a |
| 489 | # neutralization value for shells without unset; and this also |
| 490 | # works around shells that cannot unset nonexistent variables. |
| 491 | # Preserve -v and -x to the replacement shell. |
| 492 | BASH_ENV=/dev/null |
| 493 | ENV=/dev/null |
| 494 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 495 | case $- in # (((( |
| 496 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 497 | *v* ) as_opts=-v ;; |
| 498 | *x* ) as_opts=-x ;; |
| 499 | * ) as_opts= ;; |
| 500 | esac |
| 501 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 502 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 503 | # out after a failed `exec'. |
| 504 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 505 | exit 255 |
| 506 | fi |
| 507 | |
| 508 | if test x$as_have_required = xno; then : |
| 509 | $as_echo "$0: This script requires a shell more modern than all" |
| 510 | $as_echo "$0: the shells that I found on your system." |
| 511 | if test x${ZSH_VERSION+set} = xset ; then |
| 512 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 513 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 514 | else |
| 515 | $as_echo "$0: Please tell bug-autoconf@gnu.org and a suitable curl |
| 516 | $0: mailing list: https://curl.haxx.se/mail/ about your |
| 517 | $0: system, including any error possibly output before this |
| 518 | $0: message. Then install a modern shell, or manually run |
| 519 | $0: the script under such a shell if you do have one." |
| 520 | fi |
| 521 | exit 1 |
| 522 | fi |
| 523 | fi |
| 524 | fi |
| 525 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 526 | export SHELL |
| 527 | # Unset more variables known to interfere with behavior of common tools. |
| 528 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 529 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 530 | |
| 531 | ## --------------------- ## |
| 532 | ## M4sh Shell Functions. ## |
| 533 | ## --------------------- ## |
| 534 | # as_fn_unset VAR |
| 535 | # --------------- |
| 536 | # Portably unset VAR. |
| 537 | as_fn_unset () |
| 538 | { |
| 539 | { eval $1=; unset $1;} |
| 540 | } |
| 541 | as_unset=as_fn_unset |
| 542 | |
| 543 | # as_fn_set_status STATUS |
| 544 | # ----------------------- |
| 545 | # Set $? to STATUS, without forking. |
| 546 | as_fn_set_status () |
| 547 | { |
| 548 | return $1 |
| 549 | } # as_fn_set_status |
| 550 | |
| 551 | # as_fn_exit STATUS |
| 552 | # ----------------- |
| 553 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 554 | as_fn_exit () |
| 555 | { |
| 556 | set +e |
| 557 | as_fn_set_status $1 |
| 558 | exit $1 |
| 559 | } # as_fn_exit |
| 560 | |
| 561 | # as_fn_mkdir_p |
| 562 | # ------------- |
| 563 | # Create "$as_dir" as a directory, including parents if necessary. |
| 564 | as_fn_mkdir_p () |
| 565 | { |
| 566 | |
| 567 | case $as_dir in #( |
| 568 | -*) as_dir=./$as_dir;; |
| 569 | esac |
| 570 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 571 | as_dirs= |
| 572 | while :; do |
| 573 | case $as_dir in #( |
| 574 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 575 | *) as_qdir=$as_dir;; |
| 576 | esac |
| 577 | as_dirs="'$as_qdir' $as_dirs" |
| 578 | as_dir=`$as_dirname -- "$as_dir" || |
| 579 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 580 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 581 | X"$as_dir" : 'X\(//\)$' \| \ |
| 582 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 583 | $as_echo X"$as_dir" | |
| 584 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 585 | s//\1/ |
| 586 | q |
| 587 | } |
| 588 | /^X\(\/\/\)[^/].*/{ |
| 589 | s//\1/ |
| 590 | q |
| 591 | } |
| 592 | /^X\(\/\/\)$/{ |
| 593 | s//\1/ |
| 594 | q |
| 595 | } |
| 596 | /^X\(\/\).*/{ |
| 597 | s//\1/ |
| 598 | q |
| 599 | } |
| 600 | s/.*/./; q'` |
| 601 | test -d "$as_dir" && break |
| 602 | done |
| 603 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 604 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 605 | |
| 606 | |
| 607 | } # as_fn_mkdir_p |
| 608 | |
| 609 | # as_fn_executable_p FILE |
| 610 | # ----------------------- |
| 611 | # Test if FILE is an executable regular file. |
| 612 | as_fn_executable_p () |
| 613 | { |
| 614 | test -f "$1" && test -x "$1" |
| 615 | } # as_fn_executable_p |
| 616 | # as_fn_append VAR VALUE |
| 617 | # ---------------------- |
| 618 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 619 | # advantage of any shell optimizations that allow amortized linear growth over |
| 620 | # repeated appends, instead of the typical quadratic growth present in naive |
| 621 | # implementations. |
| 622 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 623 | eval 'as_fn_append () |
| 624 | { |
| 625 | eval $1+=\$2 |
| 626 | }' |
| 627 | else |
| 628 | as_fn_append () |
| 629 | { |
| 630 | eval $1=\$$1\$2 |
| 631 | } |
| 632 | fi # as_fn_append |
| 633 | |
| 634 | # as_fn_arith ARG... |
| 635 | # ------------------ |
| 636 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 637 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 638 | # must be portable across $(()) and expr. |
| 639 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 640 | eval 'as_fn_arith () |
| 641 | { |
| 642 | as_val=$(( $* )) |
| 643 | }' |
| 644 | else |
| 645 | as_fn_arith () |
| 646 | { |
| 647 | as_val=`expr "$@" || test $? -eq 1` |
| 648 | } |
| 649 | fi # as_fn_arith |
| 650 | |
| 651 | |
| 652 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 653 | # ---------------------------------------- |
| 654 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 655 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 656 | # script with STATUS, using 1 if that was 0. |
| 657 | as_fn_error () |
| 658 | { |
| 659 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 660 | if test "$4"; then |
| 661 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 662 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 663 | fi |
| 664 | $as_echo "$as_me: error: $2" >&2 |
| 665 | as_fn_exit $as_status |
| 666 | } # as_fn_error |
| 667 | |
| 668 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 669 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 670 | as_expr=expr |
| 671 | else |
| 672 | as_expr=false |
| 673 | fi |
| 674 | |
| 675 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 676 | as_basename=basename |
| 677 | else |
| 678 | as_basename=false |
| 679 | fi |
| 680 | |
| 681 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 682 | as_dirname=dirname |
| 683 | else |
| 684 | as_dirname=false |
| 685 | fi |
| 686 | |
| 687 | as_me=`$as_basename -- "$0" || |
| 688 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 689 | X"$0" : 'X\(//\)$' \| \ |
| 690 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 691 | $as_echo X/"$0" | |
| 692 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 693 | s//\1/ |
| 694 | q |
| 695 | } |
| 696 | /^X\/\(\/\/\)$/{ |
| 697 | s//\1/ |
| 698 | q |
| 699 | } |
| 700 | /^X\/\(\/\).*/{ |
| 701 | s//\1/ |
| 702 | q |
| 703 | } |
| 704 | s/.*/./; q'` |
| 705 | |
| 706 | # Avoid depending upon Character Ranges. |
| 707 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 708 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 709 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 710 | as_cr_digits='0123456789' |
| 711 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 712 | |
| 713 | |
| 714 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 715 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 716 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 717 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 718 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| 719 | sed -n ' |
| 720 | p |
| 721 | /[$]LINENO/= |
| 722 | ' <$as_myself | |
| 723 | sed ' |
| 724 | s/[$]LINENO.*/&-/ |
| 725 | t lineno |
| 726 | b |
| 727 | :lineno |
| 728 | N |
| 729 | :loop |
| 730 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 731 | t loop |
| 732 | s/-\n.*// |
| 733 | ' >$as_me.lineno && |
| 734 | chmod +x "$as_me.lineno" || |
| 735 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
| 736 | |
| 737 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 738 | # already done that, so ensure we don't try to do so again and fall |
| 739 | # in an infinite loop. This has already happened in practice. |
| 740 | _as_can_reexec=no; export _as_can_reexec |
| 741 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 742 | # (the dirname of $[0] is not the place where we might find the |
| 743 | # original and so on. Autoconf is especially sensitive to this). |
| 744 | . "./$as_me.lineno" |
| 745 | # Exit status is that of the last command. |
| 746 | exit |
| 747 | } |
| 748 | |
| 749 | ECHO_C= ECHO_N= ECHO_T= |
| 750 | case `echo -n x` in #((((( |
| 751 | -n*) |
| 752 | case `echo 'xy\c'` in |
| 753 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 754 | xy) ECHO_C='\c';; |
| 755 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 756 | ECHO_T=' ';; |
| 757 | esac;; |
| 758 | *) |
| 759 | ECHO_N='-n';; |
| 760 | esac |
| 761 | |
| 762 | rm -f conf$$ conf$$.exe conf$$.file |
| 763 | if test -d conf$$.dir; then |
| 764 | rm -f conf$$.dir/conf$$.file |
| 765 | else |
| 766 | rm -f conf$$.dir |
| 767 | mkdir conf$$.dir 2>/dev/null |
| 768 | fi |
| 769 | if (echo >conf$$.file) 2>/dev/null; then |
| 770 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 771 | as_ln_s='ln -s' |
| 772 | # ... but there are two gotchas: |
| 773 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 774 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 775 | # In both cases, we have to default to `cp -pR'. |
| 776 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 777 | as_ln_s='cp -pR' |
| 778 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 779 | as_ln_s=ln |
| 780 | else |
| 781 | as_ln_s='cp -pR' |
| 782 | fi |
| 783 | else |
| 784 | as_ln_s='cp -pR' |
| 785 | fi |
| 786 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 787 | rmdir conf$$.dir 2>/dev/null |
| 788 | |
| 789 | if mkdir -p . 2>/dev/null; then |
| 790 | as_mkdir_p='mkdir -p "$as_dir"' |
| 791 | else |
| 792 | test -d ./-p && rmdir ./-p |
| 793 | as_mkdir_p=false |
| 794 | fi |
| 795 | |
| 796 | as_test_x='test -x' |
| 797 | as_executable_p=as_fn_executable_p |
| 798 | |
| 799 | # Sed expression to map a string onto a valid CPP name. |
| 800 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 801 | |
| 802 | # Sed expression to map a string onto a valid variable name. |
| 803 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 804 | |
| 805 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 806 | |
| 807 | |
| 808 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 809 | exec 6>&1 |
| 810 | |
| 811 | # Name of the host. |
| 812 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
| 813 | # so uname gets run too. |
| 814 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 815 | |
| 816 | # |
| 817 | # Initializations. |
| 818 | # |
| 819 | ac_default_prefix=/usr/local |
| 820 | ac_clean_files= |
| 821 | ac_config_libobj_dir=. |
| 822 | LIBOBJS= |
| 823 | cross_compiling=no |
| 824 | subdirs= |
| 825 | MFLAGS= |
| 826 | MAKEFLAGS= |
| 827 | |
| 828 | # Identity of this package. |
| 829 | PACKAGE_NAME='curl' |
| 830 | PACKAGE_TARNAME='curl' |
| 831 | PACKAGE_VERSION='-' |
| 832 | PACKAGE_STRING='curl -' |
| 833 | PACKAGE_BUGREPORT='a suitable curl mailing list: https://curl.haxx.se/mail/' |
| 834 | PACKAGE_URL='' |
| 835 | |
| 836 | ac_unique_file="lib/urldata.h" |
| 837 | # Factoring default headers for most tests. |
| 838 | ac_includes_default="\ |
| 839 | #include <stdio.h> |
| 840 | #ifdef HAVE_SYS_TYPES_H |
| 841 | # include <sys/types.h> |
| 842 | #endif |
| 843 | #ifdef HAVE_SYS_STAT_H |
| 844 | # include <sys/stat.h> |
| 845 | #endif |
| 846 | #ifdef STDC_HEADERS |
| 847 | # include <stdlib.h> |
| 848 | # include <stddef.h> |
| 849 | #else |
| 850 | # ifdef HAVE_STDLIB_H |
| 851 | # include <stdlib.h> |
| 852 | # endif |
| 853 | #endif |
| 854 | #ifdef HAVE_STRING_H |
| 855 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
| 856 | # include <memory.h> |
| 857 | # endif |
| 858 | # include <string.h> |
| 859 | #endif |
| 860 | #ifdef HAVE_STRINGS_H |
| 861 | # include <strings.h> |
| 862 | #endif |
| 863 | #ifdef HAVE_INTTYPES_H |
| 864 | # include <inttypes.h> |
| 865 | #endif |
| 866 | #ifdef HAVE_STDINT_H |
| 867 | # include <stdint.h> |
| 868 | #endif |
| 869 | #ifdef HAVE_UNISTD_H |
| 870 | # include <unistd.h> |
| 871 | #endif" |
| 872 | |
| 873 | enable_option_checking=no |
| 874 | ac_subst_vars='am__EXEEXT_FALSE |
| 875 | am__EXEEXT_TRUE |
| 876 | LTLIBOBJS |
| 877 | LIBOBJS |
| 878 | SUPPORT_PROTOCOLS |
| 879 | SUPPORT_FEATURES |
| 880 | ENABLE_STATIC |
| 881 | ENABLE_SHARED |
| 882 | CROSSCOMPILING_FALSE |
| 883 | CROSSCOMPILING_TRUE |
| 884 | BLANK_AT_MAKETIME |
| 885 | CURL_NETWORK_AND_TIME_LIBS |
| 886 | CURL_NETWORK_LIBS |
| 887 | LIBCURL_LIBS |
| 888 | SONAME_BUMP_FALSE |
| 889 | SONAME_BUMP_TRUE |
| 890 | CFLAG_CURL_SYMBOL_HIDING |
| 891 | DOING_CURL_SYMBOL_HIDING_FALSE |
| 892 | DOING_CURL_SYMBOL_HIDING_TRUE |
| 893 | USE_UNIX_SOCKETS |
| 894 | BUILD_LIBHOSTNAME_FALSE |
| 895 | BUILD_LIBHOSTNAME_TRUE |
| 896 | USE_EMBEDDED_ARES_FALSE |
| 897 | USE_EMBEDDED_ARES_TRUE |
| 898 | USE_ARES |
| 899 | subdirs |
| 900 | USE_MANUAL_FALSE |
| 901 | USE_MANUAL_TRUE |
| 902 | MANOPT |
| 903 | NROFF |
| 904 | PERL |
| 905 | IPV6_ENABLED |
| 906 | ZSH_FUNCTIONS_DIR |
| 907 | USE_NGHTTP2 |
| 908 | IDN_ENABLED |
| 909 | CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE |
| 910 | CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE |
| 911 | CURL_LT_SHLIB_VERSIONED_FLAVOUR |
| 912 | USE_LIBRTMP |
| 913 | USE_LIBSSH2 |
| 914 | LIBMETALINK_CPPFLAGS |
| 915 | LIBMETALINK_LDFLAGS |
| 916 | LIBMETALINK_LIBS |
| 917 | USE_LIBPSL_FALSE |
| 918 | USE_LIBPSL_TRUE |
| 919 | CURL_CA_BUNDLE |
| 920 | SSL_ENABLED |
| 921 | USE_AXTLS |
| 922 | NSS_LIBS |
| 923 | USE_NSS |
| 924 | USE_CYASSL |
| 925 | USE_MBEDTLS |
| 926 | USE_POLARSSL |
| 927 | HAVE_GNUTLS_SRP |
| 928 | USE_GNUTLS_NETTLE |
| 929 | USE_GNUTLS |
| 930 | HAVE_OPENSSL_SRP |
| 931 | RANDOM_FILE |
| 932 | SSL_LIBS |
| 933 | USE_DARWINSSL |
| 934 | USE_WINDOWS_SSPI |
| 935 | USE_SCHANNEL |
| 936 | USE_OPENLDAP |
| 937 | ZLIB_LIBS |
| 938 | HAVE_LIBZ_FALSE |
| 939 | HAVE_LIBZ_TRUE |
| 940 | HAVE_LIBZ |
| 941 | PKGCONFIG |
| 942 | CURL_DISABLE_GOPHER |
| 943 | CURL_DISABLE_SMTP |
| 944 | CURL_DISABLE_SMB |
| 945 | CURL_DISABLE_IMAP |
| 946 | CURL_DISABLE_POP3 |
| 947 | CURL_DISABLE_TFTP |
| 948 | CURL_DISABLE_TELNET |
| 949 | CURL_DISABLE_DICT |
| 950 | CURL_DISABLE_PROXY |
| 951 | HAVE_LDAP_SSL |
| 952 | CURL_DISABLE_LDAPS |
| 953 | CURL_DISABLE_LDAP |
| 954 | CURL_DISABLE_FILE |
| 955 | CURL_DISABLE_FTP |
| 956 | CURL_DISABLE_RTSP |
| 957 | CURL_DISABLE_HTTP |
| 958 | DOING_NATIVE_WINDOWS_FALSE |
| 959 | DOING_NATIVE_WINDOWS_TRUE |
| 960 | BUILD_UNITTESTS_FALSE |
| 961 | BUILD_UNITTESTS_TRUE |
| 962 | CURLDEBUG_FALSE |
| 963 | CURLDEBUG_TRUE |
| 964 | USE_EXPLICIT_LIB_DEPS_FALSE |
| 965 | USE_EXPLICIT_LIB_DEPS_TRUE |
| 966 | REQUIRE_LIB_DEPS |
| 967 | CPPFLAG_CURL_STATICLIB |
| 968 | USE_CPPFLAG_CURL_STATICLIB_FALSE |
| 969 | USE_CPPFLAG_CURL_STATICLIB_TRUE |
| 970 | CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE |
| 971 | CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE |
| 972 | CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE |
| 973 | CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE |
| 974 | CURL_LT_SHLIB_USE_VERSION_INFO_FALSE |
| 975 | CURL_LT_SHLIB_USE_VERSION_INFO_TRUE |
| 976 | LT_SYS_LIBRARY_PATH |
| 977 | OTOOL64 |
| 978 | OTOOL |
| 979 | LIPO |
| 980 | NMEDIT |
| 981 | DSYMUTIL |
| 982 | MANIFEST_TOOL |
| 983 | RANLIB |
| 984 | ac_ct_AR |
| 985 | LN_S |
| 986 | NM |
| 987 | ac_ct_DUMPBIN |
| 988 | DUMPBIN |
| 989 | LD |
| 990 | FGREP |
| 991 | LIBTOOL |
| 992 | OBJDUMP |
| 993 | DLLTOOL |
| 994 | AS |
| 995 | host_os |
| 996 | host_vendor |
| 997 | host_cpu |
| 998 | host |
| 999 | build_os |
| 1000 | build_vendor |
| 1001 | build_cpu |
| 1002 | build |
| 1003 | PKGADD_VENDOR |
| 1004 | PKGADD_NAME |
| 1005 | PKGADD_PKG |
| 1006 | VERSIONNUM |
| 1007 | CURLVERSION |
| 1008 | am__fastdepCC_FALSE |
| 1009 | am__fastdepCC_TRUE |
| 1010 | CCDEPMODE |
| 1011 | am__nodep |
| 1012 | AMDEPBACKSLASH |
| 1013 | AMDEP_FALSE |
| 1014 | AMDEP_TRUE |
| 1015 | am__quote |
| 1016 | am__include |
| 1017 | DEPDIR |
| 1018 | am__untar |
| 1019 | am__tar |
| 1020 | AMTAR |
| 1021 | am__leading_dot |
| 1022 | SET_MAKE |
| 1023 | AWK |
| 1024 | mkdir_p |
| 1025 | MKDIR_P |
| 1026 | INSTALL_STRIP_PROGRAM |
| 1027 | STRIP |
| 1028 | install_sh |
| 1029 | MAKEINFO |
| 1030 | AUTOHEADER |
| 1031 | AUTOMAKE |
| 1032 | AUTOCONF |
| 1033 | ACLOCAL |
| 1034 | VERSION |
| 1035 | PACKAGE |
| 1036 | CYGPATH_W |
| 1037 | am__isrc |
| 1038 | CPP |
| 1039 | OBJEXT |
| 1040 | EXEEXT |
| 1041 | ac_ct_CC |
| 1042 | CPPFLAGS |
| 1043 | LDFLAGS |
| 1044 | CFLAGS |
| 1045 | CC |
| 1046 | INSTALL_DATA |
| 1047 | INSTALL_SCRIPT |
| 1048 | INSTALL_PROGRAM |
| 1049 | libext |
| 1050 | AR |
| 1051 | EGREP |
| 1052 | GREP |
| 1053 | CURL_CFLAG_EXTRAS |
| 1054 | CONFIGURE_OPTIONS |
| 1055 | CODE_COVERAGE_RULES |
| 1056 | CODE_COVERAGE_LDFLAGS |
| 1057 | CODE_COVERAGE_CFLAGS |
| 1058 | GENHTML |
| 1059 | LCOV |
| 1060 | GCOV |
| 1061 | CODE_COVERAGE_ENABLED |
| 1062 | CODE_COVERAGE_ENABLED_FALSE |
| 1063 | CODE_COVERAGE_ENABLED_TRUE |
| 1064 | SED |
| 1065 | AM_BACKSLASH |
| 1066 | AM_DEFAULT_VERBOSITY |
| 1067 | AM_DEFAULT_V |
| 1068 | AM_V |
| 1069 | MAINT |
| 1070 | MAINTAINER_MODE_FALSE |
| 1071 | MAINTAINER_MODE_TRUE |
| 1072 | target_alias |
| 1073 | host_alias |
| 1074 | build_alias |
| 1075 | LIBS |
| 1076 | ECHO_T |
| 1077 | ECHO_N |
| 1078 | ECHO_C |
| 1079 | DEFS |
| 1080 | mandir |
| 1081 | localedir |
| 1082 | libdir |
| 1083 | psdir |
| 1084 | pdfdir |
| 1085 | dvidir |
| 1086 | htmldir |
| 1087 | infodir |
| 1088 | docdir |
| 1089 | oldincludedir |
| 1090 | includedir |
| 1091 | runstatedir |
| 1092 | localstatedir |
| 1093 | sharedstatedir |
| 1094 | sysconfdir |
| 1095 | datadir |
| 1096 | datarootdir |
| 1097 | libexecdir |
| 1098 | sbindir |
| 1099 | bindir |
| 1100 | program_transform_name |
| 1101 | prefix |
| 1102 | exec_prefix |
| 1103 | PACKAGE_URL |
| 1104 | PACKAGE_BUGREPORT |
| 1105 | PACKAGE_STRING |
| 1106 | PACKAGE_VERSION |
| 1107 | PACKAGE_TARNAME |
| 1108 | PACKAGE_NAME |
| 1109 | SHELL |
| 1110 | PATH_SEPARATOR' |
| 1111 | ac_subst_files='' |
| 1112 | ac_user_opts=' |
| 1113 | enable_option_checking |
| 1114 | enable_maintainer_mode |
| 1115 | enable_silent_rules |
| 1116 | enable_debug |
| 1117 | enable_optimize |
| 1118 | enable_warnings |
| 1119 | enable_werror |
| 1120 | enable_curldebug |
| 1121 | enable_symbol_hiding |
| 1122 | enable_hidden_symbols |
| 1123 | enable_ares |
| 1124 | enable_rt |
| 1125 | with_gcov |
| 1126 | enable_code_coverage |
| 1127 | enable_dependency_tracking |
| 1128 | enable_largefile |
| 1129 | enable_shared |
| 1130 | enable_static |
| 1131 | with_pic |
| 1132 | enable_fast_install |
| 1133 | with_aix_soname |
| 1134 | with_gnu_ld |
| 1135 | with_sysroot |
| 1136 | enable_libtool_lock |
| 1137 | enable_http |
| 1138 | enable_ftp |
| 1139 | enable_file |
| 1140 | enable_ldap |
| 1141 | enable_ldaps |
| 1142 | enable_rtsp |
| 1143 | enable_proxy |
| 1144 | enable_dict |
| 1145 | enable_telnet |
| 1146 | enable_tftp |
| 1147 | enable_pop3 |
| 1148 | enable_imap |
| 1149 | enable_smb |
| 1150 | enable_smtp |
| 1151 | enable_gopher |
| 1152 | enable_manual |
| 1153 | enable_libcurl_option |
| 1154 | enable_libgcc |
| 1155 | with_zlib |
| 1156 | with_ldap_lib |
| 1157 | with_lber_lib |
| 1158 | enable_ipv6 |
| 1159 | with_gssapi_includes |
| 1160 | with_gssapi_libs |
| 1161 | with_gssapi |
| 1162 | with_winssl |
| 1163 | with_darwinssl |
| 1164 | with_ssl |
| 1165 | with_egd_socket |
| 1166 | with_random |
| 1167 | with_gnutls |
| 1168 | with_polarssl |
| 1169 | with_mbedtls |
| 1170 | with_cyassl |
| 1171 | with_nss |
| 1172 | with_axtls |
| 1173 | with_ca_bundle |
| 1174 | with_ca_path |
| 1175 | with_ca_fallback |
| 1176 | with_libpsl |
| 1177 | with_libmetalink |
| 1178 | with_libssh2 |
| 1179 | with_librtmp |
| 1180 | enable_versioned_symbols |
| 1181 | with_winidn |
| 1182 | with_libidn2 |
| 1183 | with_nghttp2 |
| 1184 | with_zsh_functions_dir |
| 1185 | enable_threaded_resolver |
| 1186 | enable_pthreads |
| 1187 | enable_verbose |
| 1188 | enable_sspi |
| 1189 | enable_crypto_auth |
| 1190 | enable_ntlm_wb |
| 1191 | enable_tls_srp |
| 1192 | enable_unix_sockets |
| 1193 | enable_cookies |
| 1194 | enable_soname_bump |
| 1195 | ' |
| 1196 | ac_precious_vars='build_alias |
| 1197 | host_alias |
| 1198 | target_alias |
| 1199 | CC |
| 1200 | CFLAGS |
| 1201 | LDFLAGS |
| 1202 | LIBS |
| 1203 | CPPFLAGS |
| 1204 | CPP |
| 1205 | LT_SYS_LIBRARY_PATH' |
| 1206 | ac_subdirs_all='ares' |
| 1207 | |
| 1208 | # Initialize some variables set by options. |
| 1209 | ac_init_help= |
| 1210 | ac_init_version=false |
| 1211 | ac_unrecognized_opts= |
| 1212 | ac_unrecognized_sep= |
| 1213 | # The variables have the same names as the options, with |
| 1214 | # dashes changed to underlines. |
| 1215 | cache_file=/dev/null |
| 1216 | exec_prefix=NONE |
| 1217 | no_create= |
| 1218 | no_recursion= |
| 1219 | prefix=NONE |
| 1220 | program_prefix=NONE |
| 1221 | program_suffix=NONE |
| 1222 | program_transform_name=s,x,x, |
| 1223 | silent= |
| 1224 | site= |
| 1225 | srcdir= |
| 1226 | verbose= |
| 1227 | x_includes=NONE |
| 1228 | x_libraries=NONE |
| 1229 | |
| 1230 | # Installation directory options. |
| 1231 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 1232 | # and all the variables that are supposed to be based on exec_prefix |
| 1233 | # by default will actually change. |
| 1234 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 1235 | # (The list follows the same order as the GNU Coding Standards.) |
| 1236 | bindir='${exec_prefix}/bin' |
| 1237 | sbindir='${exec_prefix}/sbin' |
| 1238 | libexecdir='${exec_prefix}/libexec' |
| 1239 | datarootdir='${prefix}/share' |
| 1240 | datadir='${datarootdir}' |
| 1241 | sysconfdir='${prefix}/etc' |
| 1242 | sharedstatedir='${prefix}/com' |
| 1243 | localstatedir='${prefix}/var' |
| 1244 | runstatedir='${localstatedir}/run' |
| 1245 | includedir='${prefix}/include' |
| 1246 | oldincludedir='/usr/include' |
| 1247 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 1248 | infodir='${datarootdir}/info' |
| 1249 | htmldir='${docdir}' |
| 1250 | dvidir='${docdir}' |
| 1251 | pdfdir='${docdir}' |
| 1252 | psdir='${docdir}' |
| 1253 | libdir='${exec_prefix}/lib' |
| 1254 | localedir='${datarootdir}/locale' |
| 1255 | mandir='${datarootdir}/man' |
| 1256 | |
| 1257 | ac_prev= |
| 1258 | ac_dashdash= |
| 1259 | for ac_option |
| 1260 | do |
| 1261 | # If the previous option needs an argument, assign it. |
| 1262 | if test -n "$ac_prev"; then |
| 1263 | eval $ac_prev=\$ac_option |
| 1264 | ac_prev= |
| 1265 | continue |
| 1266 | fi |
| 1267 | |
| 1268 | case $ac_option in |
| 1269 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 1270 | *=) ac_optarg= ;; |
| 1271 | *) ac_optarg=yes ;; |
| 1272 | esac |
| 1273 | |
| 1274 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 1275 | |
| 1276 | case $ac_dashdash$ac_option in |
| 1277 | --) |
| 1278 | ac_dashdash=yes ;; |
| 1279 | |
| 1280 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 1281 | ac_prev=bindir ;; |
| 1282 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 1283 | bindir=$ac_optarg ;; |
| 1284 | |
| 1285 | -build | --build | --buil | --bui | --bu) |
| 1286 | ac_prev=build_alias ;; |
| 1287 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 1288 | build_alias=$ac_optarg ;; |
| 1289 | |
| 1290 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 1291 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 1292 | ac_prev=cache_file ;; |
| 1293 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 1294 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 1295 | cache_file=$ac_optarg ;; |
| 1296 | |
| 1297 | --config-cache | -C) |
| 1298 | cache_file=config.cache ;; |
| 1299 | |
| 1300 | -datadir | --datadir | --datadi | --datad) |
| 1301 | ac_prev=datadir ;; |
| 1302 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 1303 | datadir=$ac_optarg ;; |
| 1304 | |
| 1305 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1306 | | --dataroo | --dataro | --datar) |
| 1307 | ac_prev=datarootdir ;; |
| 1308 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1309 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1310 | datarootdir=$ac_optarg ;; |
| 1311 | |
| 1312 | -disable-* | --disable-*) |
| 1313 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 1314 | # Reject names that are not valid shell variable names. |
| 1315 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1316 | as_fn_error $? "invalid feature name: $ac_useropt" |
| 1317 | ac_useropt_orig=$ac_useropt |
| 1318 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1319 | case $ac_user_opts in |
| 1320 | *" |
| 1321 | "enable_$ac_useropt" |
| 1322 | "*) ;; |
| 1323 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 1324 | ac_unrecognized_sep=', ';; |
| 1325 | esac |
| 1326 | eval enable_$ac_useropt=no ;; |
| 1327 | |
| 1328 | -docdir | --docdir | --docdi | --doc | --do) |
| 1329 | ac_prev=docdir ;; |
| 1330 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1331 | docdir=$ac_optarg ;; |
| 1332 | |
| 1333 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1334 | ac_prev=dvidir ;; |
| 1335 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1336 | dvidir=$ac_optarg ;; |
| 1337 | |
| 1338 | -enable-* | --enable-*) |
| 1339 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 1340 | # Reject names that are not valid shell variable names. |
| 1341 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1342 | as_fn_error $? "invalid feature name: $ac_useropt" |
| 1343 | ac_useropt_orig=$ac_useropt |
| 1344 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1345 | case $ac_user_opts in |
| 1346 | *" |
| 1347 | "enable_$ac_useropt" |
| 1348 | "*) ;; |
| 1349 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1350 | ac_unrecognized_sep=', ';; |
| 1351 | esac |
| 1352 | eval enable_$ac_useropt=\$ac_optarg ;; |
| 1353 | |
| 1354 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1355 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1356 | | --exec | --exe | --ex) |
| 1357 | ac_prev=exec_prefix ;; |
| 1358 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1359 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1360 | | --exec=* | --exe=* | --ex=*) |
| 1361 | exec_prefix=$ac_optarg ;; |
| 1362 | |
| 1363 | -gas | --gas | --ga | --g) |
| 1364 | # Obsolete; use --with-gas. |
| 1365 | with_gas=yes ;; |
| 1366 | |
| 1367 | -help | --help | --hel | --he | -h) |
| 1368 | ac_init_help=long ;; |
| 1369 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1370 | ac_init_help=recursive ;; |
| 1371 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1372 | ac_init_help=short ;; |
| 1373 | |
| 1374 | -host | --host | --hos | --ho) |
| 1375 | ac_prev=host_alias ;; |
| 1376 | -host=* | --host=* | --hos=* | --ho=*) |
| 1377 | host_alias=$ac_optarg ;; |
| 1378 | |
| 1379 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1380 | ac_prev=htmldir ;; |
| 1381 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1382 | | --ht=*) |
| 1383 | htmldir=$ac_optarg ;; |
| 1384 | |
| 1385 | -includedir | --includedir | --includedi | --included | --include \ |
| 1386 | | --includ | --inclu | --incl | --inc) |
| 1387 | ac_prev=includedir ;; |
| 1388 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1389 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1390 | includedir=$ac_optarg ;; |
| 1391 | |
| 1392 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1393 | ac_prev=infodir ;; |
| 1394 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1395 | infodir=$ac_optarg ;; |
| 1396 | |
| 1397 | -libdir | --libdir | --libdi | --libd) |
| 1398 | ac_prev=libdir ;; |
| 1399 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1400 | libdir=$ac_optarg ;; |
| 1401 | |
| 1402 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1403 | | --libexe | --libex | --libe) |
| 1404 | ac_prev=libexecdir ;; |
| 1405 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1406 | | --libexe=* | --libex=* | --libe=*) |
| 1407 | libexecdir=$ac_optarg ;; |
| 1408 | |
| 1409 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1410 | ac_prev=localedir ;; |
| 1411 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1412 | localedir=$ac_optarg ;; |
| 1413 | |
| 1414 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 1415 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 1416 | ac_prev=localstatedir ;; |
| 1417 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 1418 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 1419 | localstatedir=$ac_optarg ;; |
| 1420 | |
| 1421 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1422 | ac_prev=mandir ;; |
| 1423 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1424 | mandir=$ac_optarg ;; |
| 1425 | |
| 1426 | -nfp | --nfp | --nf) |
| 1427 | # Obsolete; use --without-fp. |
| 1428 | with_fp=no ;; |
| 1429 | |
| 1430 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1431 | | --no-cr | --no-c | -n) |
| 1432 | no_create=yes ;; |
| 1433 | |
| 1434 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1435 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1436 | no_recursion=yes ;; |
| 1437 | |
| 1438 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1439 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1440 | | --oldin | --oldi | --old | --ol | --o) |
| 1441 | ac_prev=oldincludedir ;; |
| 1442 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1443 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1444 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1445 | oldincludedir=$ac_optarg ;; |
| 1446 | |
| 1447 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1448 | ac_prev=prefix ;; |
| 1449 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1450 | prefix=$ac_optarg ;; |
| 1451 | |
| 1452 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1453 | | --program-pre | --program-pr | --program-p) |
| 1454 | ac_prev=program_prefix ;; |
| 1455 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1456 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1457 | program_prefix=$ac_optarg ;; |
| 1458 | |
| 1459 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1460 | | --program-suf | --program-su | --program-s) |
| 1461 | ac_prev=program_suffix ;; |
| 1462 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1463 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1464 | program_suffix=$ac_optarg ;; |
| 1465 | |
| 1466 | -program-transform-name | --program-transform-name \ |
| 1467 | | --program-transform-nam | --program-transform-na \ |
| 1468 | | --program-transform-n | --program-transform- \ |
| 1469 | | --program-transform | --program-transfor \ |
| 1470 | | --program-transfo | --program-transf \ |
| 1471 | | --program-trans | --program-tran \ |
| 1472 | | --progr-tra | --program-tr | --program-t) |
| 1473 | ac_prev=program_transform_name ;; |
| 1474 | -program-transform-name=* | --program-transform-name=* \ |
| 1475 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1476 | | --program-transform-n=* | --program-transform-=* \ |
| 1477 | | --program-transform=* | --program-transfor=* \ |
| 1478 | | --program-transfo=* | --program-transf=* \ |
| 1479 | | --program-trans=* | --program-tran=* \ |
| 1480 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1481 | program_transform_name=$ac_optarg ;; |
| 1482 | |
| 1483 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1484 | ac_prev=pdfdir ;; |
| 1485 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1486 | pdfdir=$ac_optarg ;; |
| 1487 | |
| 1488 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1489 | ac_prev=psdir ;; |
| 1490 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1491 | psdir=$ac_optarg ;; |
| 1492 | |
| 1493 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1494 | | -silent | --silent | --silen | --sile | --sil) |
| 1495 | silent=yes ;; |
| 1496 | |
| 1497 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
| 1498 | | --runstate | --runstat | --runsta | --runst | --runs \ |
| 1499 | | --run | --ru | --r) |
| 1500 | ac_prev=runstatedir ;; |
| 1501 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
| 1502 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
| 1503 | | --run=* | --ru=* | --r=*) |
| 1504 | runstatedir=$ac_optarg ;; |
| 1505 | |
| 1506 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1507 | ac_prev=sbindir ;; |
| 1508 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1509 | | --sbi=* | --sb=*) |
| 1510 | sbindir=$ac_optarg ;; |
| 1511 | |
| 1512 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1513 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1514 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1515 | | --sha | --sh) |
| 1516 | ac_prev=sharedstatedir ;; |
| 1517 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1518 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1519 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1520 | | --sha=* | --sh=*) |
| 1521 | sharedstatedir=$ac_optarg ;; |
| 1522 | |
| 1523 | -site | --site | --sit) |
| 1524 | ac_prev=site ;; |
| 1525 | -site=* | --site=* | --sit=*) |
| 1526 | site=$ac_optarg ;; |
| 1527 | |
| 1528 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1529 | ac_prev=srcdir ;; |
| 1530 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1531 | srcdir=$ac_optarg ;; |
| 1532 | |
| 1533 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1534 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1535 | ac_prev=sysconfdir ;; |
| 1536 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1537 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1538 | sysconfdir=$ac_optarg ;; |
| 1539 | |
| 1540 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1541 | ac_prev=target_alias ;; |
| 1542 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1543 | target_alias=$ac_optarg ;; |
| 1544 | |
| 1545 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1546 | verbose=yes ;; |
| 1547 | |
| 1548 | -version | --version | --versio | --versi | --vers | -V) |
| 1549 | ac_init_version=: ;; |
| 1550 | |
| 1551 | -with-* | --with-*) |
| 1552 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1553 | # Reject names that are not valid shell variable names. |
| 1554 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1555 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1556 | ac_useropt_orig=$ac_useropt |
| 1557 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1558 | case $ac_user_opts in |
| 1559 | *" |
| 1560 | "with_$ac_useropt" |
| 1561 | "*) ;; |
| 1562 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1563 | ac_unrecognized_sep=', ';; |
| 1564 | esac |
| 1565 | eval with_$ac_useropt=\$ac_optarg ;; |
| 1566 | |
| 1567 | -without-* | --without-*) |
| 1568 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1569 | # Reject names that are not valid shell variable names. |
| 1570 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1571 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1572 | ac_useropt_orig=$ac_useropt |
| 1573 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1574 | case $ac_user_opts in |
| 1575 | *" |
| 1576 | "with_$ac_useropt" |
| 1577 | "*) ;; |
| 1578 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1579 | ac_unrecognized_sep=', ';; |
| 1580 | esac |
| 1581 | eval with_$ac_useropt=no ;; |
| 1582 | |
| 1583 | --x) |
| 1584 | # Obsolete; use --with-x. |
| 1585 | with_x=yes ;; |
| 1586 | |
| 1587 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1588 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1589 | ac_prev=x_includes ;; |
| 1590 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1591 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1592 | x_includes=$ac_optarg ;; |
| 1593 | |
| 1594 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1595 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1596 | ac_prev=x_libraries ;; |
| 1597 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1598 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1599 | x_libraries=$ac_optarg ;; |
| 1600 | |
| 1601 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1602 | Try \`$0 --help' for more information" |
| 1603 | ;; |
| 1604 | |
| 1605 | *=*) |
| 1606 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1607 | # Reject names that are not valid shell variable names. |
| 1608 | case $ac_envvar in #( |
| 1609 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1610 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
| 1611 | esac |
| 1612 | eval $ac_envvar=\$ac_optarg |
| 1613 | export $ac_envvar ;; |
| 1614 | |
| 1615 | *) |
| 1616 | # FIXME: should be removed in autoconf 3.0. |
| 1617 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1618 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1619 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1620 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
| 1621 | ;; |
| 1622 | |
| 1623 | esac |
| 1624 | done |
| 1625 | |
| 1626 | if test -n "$ac_prev"; then |
| 1627 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1628 | as_fn_error $? "missing argument to $ac_option" |
| 1629 | fi |
| 1630 | |
| 1631 | if test -n "$ac_unrecognized_opts"; then |
| 1632 | case $enable_option_checking in |
| 1633 | no) ;; |
| 1634 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 1635 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1636 | esac |
| 1637 | fi |
| 1638 | |
| 1639 | # Check all directory arguments for consistency. |
| 1640 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1641 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1642 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1643 | libdir localedir mandir runstatedir |
| 1644 | do |
| 1645 | eval ac_val=\$$ac_var |
| 1646 | # Remove trailing slashes. |
| 1647 | case $ac_val in |
| 1648 | */ ) |
| 1649 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1650 | eval $ac_var=\$ac_val;; |
| 1651 | esac |
| 1652 | # Be sure to have absolute directory names. |
| 1653 | case $ac_val in |
| 1654 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1655 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1656 | esac |
| 1657 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
| 1658 | done |
| 1659 | |
| 1660 | # There might be people who depend on the old broken behavior: `$host' |
| 1661 | # used to hold the argument of --host etc. |
| 1662 | # FIXME: To remove some day. |
| 1663 | build=$build_alias |
| 1664 | host=$host_alias |
| 1665 | target=$target_alias |
| 1666 | |
| 1667 | # FIXME: To remove some day. |
| 1668 | if test "x$host_alias" != x; then |
| 1669 | if test "x$build_alias" = x; then |
| 1670 | cross_compiling=maybe |
| 1671 | elif test "x$build_alias" != "x$host_alias"; then |
| 1672 | cross_compiling=yes |
| 1673 | fi |
| 1674 | fi |
| 1675 | |
| 1676 | ac_tool_prefix= |
| 1677 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1678 | |
| 1679 | test "$silent" = yes && exec 6>/dev/null |
| 1680 | |
| 1681 | |
| 1682 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1683 | ac_ls_di=`ls -di .` && |
| 1684 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1685 | as_fn_error $? "working directory cannot be determined" |
| 1686 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1687 | as_fn_error $? "pwd does not report name of working directory" |
| 1688 | |
| 1689 | |
| 1690 | # Find the source files, if location was not specified. |
| 1691 | if test -z "$srcdir"; then |
| 1692 | ac_srcdir_defaulted=yes |
| 1693 | # Try the directory containing this script, then the parent directory. |
| 1694 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1695 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1696 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1697 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1698 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1699 | $as_echo X"$as_myself" | |
| 1700 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1701 | s//\1/ |
| 1702 | q |
| 1703 | } |
| 1704 | /^X\(\/\/\)[^/].*/{ |
| 1705 | s//\1/ |
| 1706 | q |
| 1707 | } |
| 1708 | /^X\(\/\/\)$/{ |
| 1709 | s//\1/ |
| 1710 | q |
| 1711 | } |
| 1712 | /^X\(\/\).*/{ |
| 1713 | s//\1/ |
| 1714 | q |
| 1715 | } |
| 1716 | s/.*/./; q'` |
| 1717 | srcdir=$ac_confdir |
| 1718 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1719 | srcdir=.. |
| 1720 | fi |
| 1721 | else |
| 1722 | ac_srcdir_defaulted=no |
| 1723 | fi |
| 1724 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1725 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1726 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
| 1727 | fi |
| 1728 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1729 | ac_abs_confdir=`( |
| 1730 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| 1731 | pwd)` |
| 1732 | # When building in place, set srcdir=. |
| 1733 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1734 | srcdir=. |
| 1735 | fi |
| 1736 | # Remove unnecessary trailing slashes from srcdir. |
| 1737 | # Double slashes in file names in object file debugging info |
| 1738 | # mess up M-x gdb in Emacs. |
| 1739 | case $srcdir in |
| 1740 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1741 | esac |
| 1742 | for ac_var in $ac_precious_vars; do |
| 1743 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1744 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1745 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1746 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1747 | done |
| 1748 | |
| 1749 | # |
| 1750 | # Report the --help message. |
| 1751 | # |
| 1752 | if test "$ac_init_help" = "long"; then |
| 1753 | # Omit some internal or obsolete options to make the list less imposing. |
| 1754 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1755 | cat <<_ACEOF |
| 1756 | \`configure' configures curl - to adapt to many kinds of systems. |
| 1757 | |
| 1758 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1759 | |
| 1760 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1761 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1762 | |
| 1763 | Defaults for the options are specified in brackets. |
| 1764 | |
| 1765 | Configuration: |
| 1766 | -h, --help display this help and exit |
| 1767 | --help=short display options specific to this package |
| 1768 | --help=recursive display the short help of all the included packages |
| 1769 | -V, --version display version information and exit |
| 1770 | -q, --quiet, --silent do not print \`checking ...' messages |
| 1771 | --cache-file=FILE cache test results in FILE [disabled] |
| 1772 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1773 | -n, --no-create do not create output files |
| 1774 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1775 | |
| 1776 | Installation directories: |
| 1777 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1778 | [$ac_default_prefix] |
| 1779 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1780 | [PREFIX] |
| 1781 | |
| 1782 | By default, \`make install' will install all the files in |
| 1783 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1784 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1785 | for instance \`--prefix=\$HOME'. |
| 1786 | |
| 1787 | For better control, use the options below. |
| 1788 | |
| 1789 | Fine tuning of the installation directories: |
| 1790 | --bindir=DIR user executables [EPREFIX/bin] |
| 1791 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1792 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1793 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1794 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1795 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1796 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
| 1797 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1798 | --includedir=DIR C header files [PREFIX/include] |
| 1799 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1800 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1801 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1802 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1803 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1804 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1805 | --docdir=DIR documentation root [DATAROOTDIR/doc/curl] |
| 1806 | --htmldir=DIR html documentation [DOCDIR] |
| 1807 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1808 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1809 | --psdir=DIR ps documentation [DOCDIR] |
| 1810 | _ACEOF |
| 1811 | |
| 1812 | cat <<\_ACEOF |
| 1813 | |
| 1814 | Program names: |
| 1815 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1816 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1817 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1818 | |
| 1819 | System types: |
| 1820 | --build=BUILD configure for building on BUILD [guessed] |
| 1821 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1822 | _ACEOF |
| 1823 | fi |
| 1824 | |
| 1825 | if test -n "$ac_init_help"; then |
| 1826 | case $ac_init_help in |
| 1827 | short | recursive ) echo "Configuration of curl -:";; |
| 1828 | esac |
| 1829 | cat <<\_ACEOF |
| 1830 | |
| 1831 | Optional Features: |
| 1832 | --disable-option-checking ignore unrecognized --enable/--with options |
| 1833 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1834 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1835 | --enable-maintainer-mode |
| 1836 | enable make rules and dependencies not useful (and |
| 1837 | sometimes confusing) to the casual installer |
| 1838 | --enable-silent-rules less verbose build output (undo: "make V=1") |
| 1839 | --disable-silent-rules verbose build output (undo: "make V=0") |
| 1840 | --enable-debug Enable debug build options |
| 1841 | --disable-debug Disable debug build options |
| 1842 | --enable-optimize Enable compiler optimizations |
| 1843 | --disable-optimize Disable compiler optimizations |
| 1844 | --enable-warnings Enable strict compiler warnings |
| 1845 | --disable-warnings Disable strict compiler warnings |
| 1846 | --enable-werror Enable compiler warnings as errors |
| 1847 | --disable-werror Disable compiler warnings as errors |
| 1848 | --enable-curldebug Enable curl debug memory tracking |
| 1849 | --disable-curldebug Disable curl debug memory tracking |
| 1850 | --enable-symbol-hiding Enable hiding of library internal symbols |
| 1851 | --disable-symbol-hiding Disable hiding of library internal symbols |
| 1852 | --enable-hidden-symbols To be deprecated, use --enable-symbol-hiding |
| 1853 | --disable-hidden-symbols |
| 1854 | To be deprecated, use --disable-symbol-hiding |
| 1855 | --enable-ares[=PATH] Enable c-ares for DNS lookups |
| 1856 | --disable-ares Disable c-ares for DNS lookups |
| 1857 | --disable-rt disable dependency on -lrt |
| 1858 | --enable-code-coverage Whether to enable code coverage support |
| 1859 | --enable-dependency-tracking |
| 1860 | do not reject slow dependency extractors |
| 1861 | --disable-dependency-tracking |
| 1862 | speeds up one-time build |
| 1863 | --disable-largefile omit support for large files |
| 1864 | --enable-shared[=PKGS] build shared libraries [default=yes] |
| 1865 | --enable-static[=PKGS] build static libraries [default=yes] |
| 1866 | --enable-fast-install[=PKGS] |
| 1867 | optimize for fast installation [default=yes] |
| 1868 | --disable-libtool-lock avoid locking (might break parallel builds) |
| 1869 | --enable-http Enable HTTP support |
| 1870 | --disable-http Disable HTTP support |
| 1871 | --enable-ftp Enable FTP support |
| 1872 | --disable-ftp Disable FTP support |
| 1873 | --enable-file Enable FILE support |
| 1874 | --disable-file Disable FILE support |
| 1875 | --enable-ldap Enable LDAP support |
| 1876 | --disable-ldap Disable LDAP support |
| 1877 | --enable-ldaps Enable LDAPS support |
| 1878 | --disable-ldaps Disable LDAPS support |
| 1879 | --enable-rtsp Enable RTSP support |
| 1880 | --disable-rtsp Disable RTSP support |
| 1881 | --enable-proxy Enable proxy support |
| 1882 | --disable-proxy Disable proxy support |
| 1883 | --enable-dict Enable DICT support |
| 1884 | --disable-dict Disable DICT support |
| 1885 | --enable-telnet Enable TELNET support |
| 1886 | --disable-telnet Disable TELNET support |
| 1887 | --enable-tftp Enable TFTP support |
| 1888 | --disable-tftp Disable TFTP support |
| 1889 | --enable-pop3 Enable POP3 support |
| 1890 | --disable-pop3 Disable POP3 support |
| 1891 | --enable-imap Enable IMAP support |
| 1892 | --disable-imap Disable IMAP support |
| 1893 | --enable-smb Enable SMB/CIFS support |
| 1894 | --disable-smb Disable SMB/CIFS support |
| 1895 | --enable-smtp Enable SMTP support |
| 1896 | --disable-smtp Disable SMTP support |
| 1897 | --enable-gopher Enable Gopher support |
| 1898 | --disable-gopher Disable Gopher support |
| 1899 | --enable-manual Enable built-in manual |
| 1900 | --disable-manual Disable built-in manual |
| 1901 | --enable-libcurl-option Enable --libcurl C code generation support |
| 1902 | --disable-libcurl-option |
| 1903 | Disable --libcurl C code generation support |
| 1904 | --enable-libgcc use libgcc when linking |
| 1905 | --enable-ipv6 Enable IPv6 (with IPv4) support |
| 1906 | --disable-ipv6 Disable IPv6 support |
| 1907 | --enable-versioned-symbols |
| 1908 | Enable versioned symbols in shared library |
| 1909 | --disable-versioned-symbols |
| 1910 | Disable versioned symbols in shared library |
| 1911 | --enable-threaded-resolver |
| 1912 | Enable threaded resolver |
| 1913 | --disable-threaded-resolver |
| 1914 | Disable threaded resolver |
| 1915 | --enable-pthreads Enable POSIX threads (default for threaded resolver) |
| 1916 | --disable-pthreads Disable POSIX threads |
| 1917 | --enable-verbose Enable verbose strings |
| 1918 | --disable-verbose Disable verbose strings |
| 1919 | --enable-sspi Enable SSPI |
| 1920 | --disable-sspi Disable SSPI |
| 1921 | --enable-crypto-auth Enable cryptographic authentication |
| 1922 | --disable-crypto-auth Disable cryptographic authentication |
| 1923 | --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth |
| 1924 | helper, where FILE is ntlm_auth's absolute filename |
| 1925 | (default: /usr/bin/ntlm_auth) |
| 1926 | --disable-ntlm-wb Disable NTLM delegation to winbind's ntlm_auth |
| 1927 | helper |
| 1928 | --enable-tls-srp Enable TLS-SRP authentication |
| 1929 | --disable-tls-srp Disable TLS-SRP authentication |
| 1930 | --enable-unix-sockets Enable Unix domain sockets |
| 1931 | --disable-unix-sockets Disable Unix domain sockets |
| 1932 | --enable-cookies Enable cookies support |
| 1933 | --disable-cookies Disable cookies support |
| 1934 | --enable-soname-bump Enable enforced SONAME bump |
| 1935 | --disable-soname-bump Disable enforced SONAME bump |
| 1936 | |
| 1937 | Optional Packages: |
| 1938 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1939 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1940 | --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov). |
| 1941 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
| 1942 | both] |
| 1943 | --with-aix-soname=aix|svr4|both |
| 1944 | shared library versioning (aka "SONAME") variant to |
| 1945 | provide on AIX, [default=aix]. |
| 1946 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1947 | --with-sysroot[=DIR] Search for dependent libraries within DIR (or the |
| 1948 | compiler's sysroot if not specified). |
| 1949 | --with-zlib=PATH search for zlib in PATH |
| 1950 | --without-zlib disable use of zlib |
| 1951 | --with-ldap-lib=libname Specify name of ldap lib file |
| 1952 | --with-lber-lib=libname Specify name of lber lib file |
| 1953 | --with-gssapi-includes=DIR |
| 1954 | Specify location of GSS-API headers |
| 1955 | --with-gssapi-libs=DIR Specify location of GSS-API libs |
| 1956 | --with-gssapi=DIR Where to look for GSS-API |
| 1957 | --with-winssl enable Windows native SSL/TLS |
| 1958 | --without-winssl disable Windows native SSL/TLS |
| 1959 | --with-darwinssl enable Apple OS native SSL/TLS |
| 1960 | --without-darwinssl disable Apple OS native SSL/TLS |
| 1961 | --with-ssl=PATH Where to look for OpenSSL, PATH points to the SSL |
| 1962 | installation (default: /usr/local/ssl); when |
| 1963 | possible, set the PKG_CONFIG_PATH environment |
| 1964 | variable instead of using this option |
| 1965 | --without-ssl disable OpenSSL |
| 1966 | --with-egd-socket=FILE Entropy Gathering Daemon socket pathname |
| 1967 | --with-random=FILE read randomness from FILE (default=/dev/urandom) |
| 1968 | --with-gnutls=PATH where to look for GnuTLS, PATH points to the |
| 1969 | installation root |
| 1970 | --without-gnutls disable GnuTLS detection |
| 1971 | --with-polarssl=PATH where to look for PolarSSL, PATH points to the |
| 1972 | installation root |
| 1973 | --without-polarssl disable PolarSSL detection |
| 1974 | --with-mbedtls=PATH where to look for mbedTLS, PATH points to the |
| 1975 | installation root |
| 1976 | --without-mbedtls disable mbedTLS detection |
| 1977 | --with-cyassl=PATH where to look for CyaSSL, PATH points to the |
| 1978 | installation root (default: system lib default) |
| 1979 | --without-cyassl disable CyaSSL detection |
| 1980 | --with-nss=PATH where to look for NSS, PATH points to the |
| 1981 | installation root |
| 1982 | --without-nss disable NSS detection |
| 1983 | --with-axtls=PATH Where to look for axTLS, PATH points to the axTLS |
| 1984 | installation prefix (default: /usr/local). Ignored |
| 1985 | if another SSL engine is selected. |
| 1986 | --without-axtls disable axTLS |
| 1987 | --with-ca-bundle=FILE Path to a file containing CA certificates (example: |
| 1988 | /etc/ca-bundle.crt) |
| 1989 | --without-ca-bundle Don't use a default CA bundle |
| 1990 | --with-ca-path=DIRECTORY |
| 1991 | Path to a directory containing CA certificates |
| 1992 | stored individually, with their filenames in a hash |
| 1993 | format. This option can be used with OpenSSL, GnuTLS |
| 1994 | and PolarSSL backends. Refer to OpenSSL c_rehash for |
| 1995 | details. (example: /etc/certificates) |
| 1996 | --without-ca-path Don't use a default CA path |
| 1997 | --with-ca-fallback Use the built in CA store of the SSL library |
| 1998 | --without-ca-fallback Don't use the built in CA store of the SSL library |
| 1999 | --without-libpsl disable support for libpsl cookie checking |
| 2000 | --with-libmetalink=PATH where to look for libmetalink, PATH points to the |
| 2001 | installation root |
| 2002 | --without-libmetalink disable libmetalink detection |
| 2003 | --with-libssh2=PATH Where to look for libssh2, PATH points to the |
| 2004 | LIBSSH2 installation; when possible, set the |
| 2005 | PKG_CONFIG_PATH environment variable instead of |
| 2006 | using this option |
| 2007 | --without-libssh2 disable LIBSSH2 |
| 2008 | --with-librtmp=PATH Where to look for librtmp, PATH points to the |
| 2009 | LIBRTMP installation; when possible, set the |
| 2010 | PKG_CONFIG_PATH environment variable instead of |
| 2011 | using this option |
| 2012 | --without-librtmp disable LIBRTMP |
| 2013 | --with-winidn=PATH enable Windows native IDN |
| 2014 | --without-winidn disable Windows native IDN |
| 2015 | --with-libidn2=PATH Enable libidn2 usage |
| 2016 | --without-libidn2 Disable libidn2 usage |
| 2017 | --with-nghttp2=PATH Enable nghttp2 usage |
| 2018 | --without-nghttp2 Disable nghttp2 usage |
| 2019 | --with-zsh-functions-dir=PATH |
| 2020 | Install zsh completions to PATH |
| 2021 | --without-zsh-functions-dir |
| 2022 | Do not install zsh completions |
| 2023 | |
| 2024 | Some influential environment variables: |
| 2025 | CC C compiler command |
| 2026 | CFLAGS C compiler flags |
| 2027 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 2028 | nonstandard directory <lib dir> |
| 2029 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 2030 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 2031 | you have headers in a nonstandard directory <include dir> |
| 2032 | CPP C preprocessor |
| 2033 | LT_SYS_LIBRARY_PATH |
| 2034 | User-defined run-time library search path. |
| 2035 | |
| 2036 | Use these variables to override the choices made by `configure' or to help |
| 2037 | it to find libraries and programs with nonstandard names/locations. |
| 2038 | |
| 2039 | Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>. |
| 2040 | _ACEOF |
| 2041 | ac_status=$? |
| 2042 | fi |
| 2043 | |
| 2044 | if test "$ac_init_help" = "recursive"; then |
| 2045 | # If there are subdirs, report their specific --help. |
| 2046 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 2047 | test -d "$ac_dir" || |
| 2048 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 2049 | continue |
| 2050 | ac_builddir=. |
| 2051 | |
| 2052 | case "$ac_dir" in |
| 2053 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 2054 | *) |
| 2055 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 2056 | # A ".." for each directory in $ac_dir_suffix. |
| 2057 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 2058 | case $ac_top_builddir_sub in |
| 2059 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 2060 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 2061 | esac ;; |
| 2062 | esac |
| 2063 | ac_abs_top_builddir=$ac_pwd |
| 2064 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 2065 | # for backward compatibility: |
| 2066 | ac_top_builddir=$ac_top_build_prefix |
| 2067 | |
| 2068 | case $srcdir in |
| 2069 | .) # We are building in place. |
| 2070 | ac_srcdir=. |
| 2071 | ac_top_srcdir=$ac_top_builddir_sub |
| 2072 | ac_abs_top_srcdir=$ac_pwd ;; |
| 2073 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 2074 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 2075 | ac_top_srcdir=$srcdir |
| 2076 | ac_abs_top_srcdir=$srcdir ;; |
| 2077 | *) # Relative name. |
| 2078 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 2079 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 2080 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 2081 | esac |
| 2082 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 2083 | |
| 2084 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 2085 | # Check for guested configure. |
| 2086 | if test -f "$ac_srcdir/configure.gnu"; then |
| 2087 | echo && |
| 2088 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 2089 | elif test -f "$ac_srcdir/configure"; then |
| 2090 | echo && |
| 2091 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 2092 | else |
| 2093 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 2094 | fi || ac_status=$? |
| 2095 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 2096 | done |
| 2097 | fi |
| 2098 | |
| 2099 | test -n "$ac_init_help" && exit $ac_status |
| 2100 | if $ac_init_version; then |
| 2101 | cat <<\_ACEOF |
| 2102 | curl configure - |
| 2103 | generated by GNU Autoconf 2.69 |
| 2104 | |
| 2105 | Copyright (C) 2012 Free Software Foundation, Inc. |
| 2106 | This configure script is free software; the Free Software Foundation |
| 2107 | gives unlimited permission to copy, distribute and modify it. |
| 2108 | |
| 2109 | Copyright (c) 1998 - 2017 Daniel Stenberg, <daniel@haxx.se> |
| 2110 | This configure script may be copied, distributed and modified under the |
| 2111 | terms of the curl license; see COPYING for more details |
| 2112 | _ACEOF |
| 2113 | exit |
| 2114 | fi |
| 2115 | |
| 2116 | ## ------------------------ ## |
| 2117 | ## Autoconf initialization. ## |
| 2118 | ## ------------------------ ## |
| 2119 | |
| 2120 | # ac_fn_c_try_compile LINENO |
| 2121 | # -------------------------- |
| 2122 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 2123 | ac_fn_c_try_compile () |
| 2124 | { |
| 2125 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2126 | rm -f conftest.$ac_objext |
| 2127 | if { { ac_try="$ac_compile" |
| 2128 | case "(($ac_try" in |
| 2129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2130 | *) ac_try_echo=$ac_try;; |
| 2131 | esac |
| 2132 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2133 | $as_echo "$ac_try_echo"; } >&5 |
| 2134 | (eval "$ac_compile") 2>conftest.err |
| 2135 | ac_status=$? |
| 2136 | if test -s conftest.err; then |
| 2137 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2138 | cat conftest.er1 >&5 |
| 2139 | mv -f conftest.er1 conftest.err |
| 2140 | fi |
| 2141 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2142 | test $ac_status = 0; } && { |
| 2143 | test -z "$ac_c_werror_flag" || |
| 2144 | test ! -s conftest.err |
| 2145 | } && test -s conftest.$ac_objext; then : |
| 2146 | ac_retval=0 |
| 2147 | else |
| 2148 | $as_echo "$as_me: failed program was:" >&5 |
| 2149 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2150 | |
| 2151 | ac_retval=1 |
| 2152 | fi |
| 2153 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2154 | as_fn_set_status $ac_retval |
| 2155 | |
| 2156 | } # ac_fn_c_try_compile |
| 2157 | |
| 2158 | # ac_fn_c_try_cpp LINENO |
| 2159 | # ---------------------- |
| 2160 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 2161 | ac_fn_c_try_cpp () |
| 2162 | { |
| 2163 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2164 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 2165 | case "(($ac_try" in |
| 2166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2167 | *) ac_try_echo=$ac_try;; |
| 2168 | esac |
| 2169 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2170 | $as_echo "$ac_try_echo"; } >&5 |
| 2171 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 2172 | ac_status=$? |
| 2173 | if test -s conftest.err; then |
| 2174 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2175 | cat conftest.er1 >&5 |
| 2176 | mv -f conftest.er1 conftest.err |
| 2177 | fi |
| 2178 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2179 | test $ac_status = 0; } > conftest.i && { |
| 2180 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 2181 | test ! -s conftest.err |
| 2182 | }; then : |
| 2183 | ac_retval=0 |
| 2184 | else |
| 2185 | $as_echo "$as_me: failed program was:" >&5 |
| 2186 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2187 | |
| 2188 | ac_retval=1 |
| 2189 | fi |
| 2190 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2191 | as_fn_set_status $ac_retval |
| 2192 | |
| 2193 | } # ac_fn_c_try_cpp |
| 2194 | |
| 2195 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 2196 | # ------------------------------------------------------- |
| 2197 | # Tests whether HEADER exists and can be compiled using the include files in |
| 2198 | # INCLUDES, setting the cache variable VAR accordingly. |
| 2199 | ac_fn_c_check_header_compile () |
| 2200 | { |
| 2201 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2203 | $as_echo_n "checking for $2... " >&6; } |
| 2204 | if eval \${$3+:} false; then : |
| 2205 | $as_echo_n "(cached) " >&6 |
| 2206 | else |
| 2207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2208 | /* end confdefs.h. */ |
| 2209 | $4 |
| 2210 | #include <$2> |
| 2211 | _ACEOF |
| 2212 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2213 | eval "$3=yes" |
| 2214 | else |
| 2215 | eval "$3=no" |
| 2216 | fi |
| 2217 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2218 | fi |
| 2219 | eval ac_res=\$$3 |
| 2220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2221 | $as_echo "$ac_res" >&6; } |
| 2222 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2223 | |
| 2224 | } # ac_fn_c_check_header_compile |
| 2225 | |
| 2226 | # ac_fn_c_try_run LINENO |
| 2227 | # ---------------------- |
| 2228 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 2229 | # that executables *can* be run. |
| 2230 | ac_fn_c_try_run () |
| 2231 | { |
| 2232 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2233 | if { { ac_try="$ac_link" |
| 2234 | case "(($ac_try" in |
| 2235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2236 | *) ac_try_echo=$ac_try;; |
| 2237 | esac |
| 2238 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2239 | $as_echo "$ac_try_echo"; } >&5 |
| 2240 | (eval "$ac_link") 2>&5 |
| 2241 | ac_status=$? |
| 2242 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2243 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 2244 | { { case "(($ac_try" in |
| 2245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2246 | *) ac_try_echo=$ac_try;; |
| 2247 | esac |
| 2248 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2249 | $as_echo "$ac_try_echo"; } >&5 |
| 2250 | (eval "$ac_try") 2>&5 |
| 2251 | ac_status=$? |
| 2252 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2253 | test $ac_status = 0; }; }; then : |
| 2254 | ac_retval=0 |
| 2255 | else |
| 2256 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 2257 | $as_echo "$as_me: failed program was:" >&5 |
| 2258 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2259 | |
| 2260 | ac_retval=$ac_status |
| 2261 | fi |
| 2262 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 2263 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2264 | as_fn_set_status $ac_retval |
| 2265 | |
| 2266 | } # ac_fn_c_try_run |
| 2267 | |
| 2268 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 2269 | # -------------------------------------------- |
| 2270 | # Tries to find the compile-time value of EXPR in a program that includes |
| 2271 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 2272 | # computed |
| 2273 | ac_fn_c_compute_int () |
| 2274 | { |
| 2275 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2276 | if test "$cross_compiling" = yes; then |
| 2277 | # Depending upon the size, compute the lo and hi bounds. |
| 2278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2279 | /* end confdefs.h. */ |
| 2280 | $4 |
| 2281 | int main (void) |
| 2282 | { |
| 2283 | static int test_array [1 - 2 * !(($2) >= 0)]; |
| 2284 | test_array [0] = 0; |
| 2285 | return test_array [0]; |
| 2286 | |
| 2287 | ; |
| 2288 | return 0; |
| 2289 | } |
| 2290 | _ACEOF |
| 2291 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2292 | ac_lo=0 ac_mid=0 |
| 2293 | while :; do |
| 2294 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2295 | /* end confdefs.h. */ |
| 2296 | $4 |
| 2297 | int main (void) |
| 2298 | { |
| 2299 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2300 | test_array [0] = 0; |
| 2301 | return test_array [0]; |
| 2302 | |
| 2303 | ; |
| 2304 | return 0; |
| 2305 | } |
| 2306 | _ACEOF |
| 2307 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2308 | ac_hi=$ac_mid; break |
| 2309 | else |
| 2310 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2311 | if test $ac_lo -le $ac_mid; then |
| 2312 | ac_lo= ac_hi= |
| 2313 | break |
| 2314 | fi |
| 2315 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2316 | fi |
| 2317 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2318 | done |
| 2319 | else |
| 2320 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2321 | /* end confdefs.h. */ |
| 2322 | $4 |
| 2323 | int main (void) |
| 2324 | { |
| 2325 | static int test_array [1 - 2 * !(($2) < 0)]; |
| 2326 | test_array [0] = 0; |
| 2327 | return test_array [0]; |
| 2328 | |
| 2329 | ; |
| 2330 | return 0; |
| 2331 | } |
| 2332 | _ACEOF |
| 2333 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2334 | ac_hi=-1 ac_mid=-1 |
| 2335 | while :; do |
| 2336 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2337 | /* end confdefs.h. */ |
| 2338 | $4 |
| 2339 | int main (void) |
| 2340 | { |
| 2341 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
| 2342 | test_array [0] = 0; |
| 2343 | return test_array [0]; |
| 2344 | |
| 2345 | ; |
| 2346 | return 0; |
| 2347 | } |
| 2348 | _ACEOF |
| 2349 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2350 | ac_lo=$ac_mid; break |
| 2351 | else |
| 2352 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2353 | if test $ac_mid -le $ac_hi; then |
| 2354 | ac_lo= ac_hi= |
| 2355 | break |
| 2356 | fi |
| 2357 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2358 | fi |
| 2359 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2360 | done |
| 2361 | else |
| 2362 | ac_lo= ac_hi= |
| 2363 | fi |
| 2364 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2365 | fi |
| 2366 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2367 | # Binary search between lo and hi bounds. |
| 2368 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2369 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2370 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2371 | /* end confdefs.h. */ |
| 2372 | $4 |
| 2373 | int main (void) |
| 2374 | { |
| 2375 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2376 | test_array [0] = 0; |
| 2377 | return test_array [0]; |
| 2378 | |
| 2379 | ; |
| 2380 | return 0; |
| 2381 | } |
| 2382 | _ACEOF |
| 2383 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2384 | ac_hi=$ac_mid |
| 2385 | else |
| 2386 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2387 | fi |
| 2388 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2389 | done |
| 2390 | case $ac_lo in #(( |
| 2391 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2392 | '') ac_retval=1 ;; |
| 2393 | esac |
| 2394 | else |
| 2395 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2396 | /* end confdefs.h. */ |
| 2397 | $4 |
| 2398 | static long int longval () { return $2; } |
| 2399 | static unsigned long int ulongval () { return $2; } |
| 2400 | #include <stdio.h> |
| 2401 | #include <stdlib.h> |
| 2402 | int main (void) |
| 2403 | { |
| 2404 | |
| 2405 | FILE *f = fopen ("conftest.val", "w"); |
| 2406 | if (! f) |
| 2407 | return 1; |
| 2408 | if (($2) < 0) |
| 2409 | { |
| 2410 | long int i = longval (); |
| 2411 | if (i != ($2)) |
| 2412 | return 1; |
| 2413 | fprintf (f, "%ld", i); |
| 2414 | } |
| 2415 | else |
| 2416 | { |
| 2417 | unsigned long int i = ulongval (); |
| 2418 | if (i != ($2)) |
| 2419 | return 1; |
| 2420 | fprintf (f, "%lu", i); |
| 2421 | } |
| 2422 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 2423 | on some platforms. */ |
| 2424 | return ferror (f) || fclose (f) != 0; |
| 2425 | |
| 2426 | ; |
| 2427 | return 0; |
| 2428 | } |
| 2429 | _ACEOF |
| 2430 | if ac_fn_c_try_run "$LINENO"; then : |
| 2431 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2432 | else |
| 2433 | ac_retval=1 |
| 2434 | fi |
| 2435 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2436 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2437 | rm -f conftest.val |
| 2438 | |
| 2439 | fi |
| 2440 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2441 | as_fn_set_status $ac_retval |
| 2442 | |
| 2443 | } # ac_fn_c_compute_int |
| 2444 | |
| 2445 | # ac_fn_c_try_link LINENO |
| 2446 | # ----------------------- |
| 2447 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 2448 | ac_fn_c_try_link () |
| 2449 | { |
| 2450 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2451 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2452 | if { { ac_try="$ac_link" |
| 2453 | case "(($ac_try" in |
| 2454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2455 | *) ac_try_echo=$ac_try;; |
| 2456 | esac |
| 2457 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2458 | $as_echo "$ac_try_echo"; } >&5 |
| 2459 | (eval "$ac_link") 2>conftest.err |
| 2460 | ac_status=$? |
| 2461 | if test -s conftest.err; then |
| 2462 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2463 | cat conftest.er1 >&5 |
| 2464 | mv -f conftest.er1 conftest.err |
| 2465 | fi |
| 2466 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2467 | test $ac_status = 0; } && { |
| 2468 | test -z "$ac_c_werror_flag" || |
| 2469 | test ! -s conftest.err |
| 2470 | } && test -s conftest$ac_exeext && { |
| 2471 | test "$cross_compiling" = yes || |
| 2472 | test -x conftest$ac_exeext |
| 2473 | }; then : |
| 2474 | ac_retval=0 |
| 2475 | else |
| 2476 | $as_echo "$as_me: failed program was:" >&5 |
| 2477 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2478 | |
| 2479 | ac_retval=1 |
| 2480 | fi |
| 2481 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 2482 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 2483 | # interfere with the next link command; also delete a directory that is |
| 2484 | # left behind by Apple's compiler. We do this before executing the actions. |
| 2485 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 2486 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2487 | as_fn_set_status $ac_retval |
| 2488 | |
| 2489 | } # ac_fn_c_try_link |
| 2490 | |
| 2491 | # ac_fn_c_check_func LINENO FUNC VAR |
| 2492 | # ---------------------------------- |
| 2493 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 2494 | ac_fn_c_check_func () |
| 2495 | { |
| 2496 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2498 | $as_echo_n "checking for $2... " >&6; } |
| 2499 | if eval \${$3+:} false; then : |
| 2500 | $as_echo_n "(cached) " >&6 |
| 2501 | else |
| 2502 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2503 | /* end confdefs.h. */ |
| 2504 | |
| 2505 | #define $2 innocuous_$2 |
| 2506 | #ifdef __STDC__ |
| 2507 | # include <limits.h> |
| 2508 | #else |
| 2509 | # include <assert.h> |
| 2510 | #endif |
| 2511 | #undef $2 |
| 2512 | #ifdef __cplusplus |
| 2513 | extern "C" |
| 2514 | #endif |
| 2515 | char $2 (); |
| 2516 | #if defined __stub_$2 || defined __stub___$2 |
| 2517 | choke me |
| 2518 | #endif |
| 2519 | |
| 2520 | int main (void) |
| 2521 | { |
| 2522 | return $2 (); |
| 2523 | ; |
| 2524 | return 0; |
| 2525 | } |
| 2526 | _ACEOF |
| 2527 | if ac_fn_c_try_link "$LINENO"; then : |
| 2528 | eval "$3=yes" |
| 2529 | else |
| 2530 | eval "$3=no" |
| 2531 | fi |
| 2532 | rm -f core conftest.err conftest.$ac_objext \ |
| 2533 | conftest$ac_exeext conftest.$ac_ext |
| 2534 | fi |
| 2535 | eval ac_res=\$$3 |
| 2536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2537 | $as_echo "$ac_res" >&6; } |
| 2538 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2539 | |
| 2540 | } # ac_fn_c_check_func |
| 2541 | |
| 2542 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 2543 | # ------------------------------------------------------- |
| 2544 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 2545 | # the include files in INCLUDES and setting the cache variable VAR |
| 2546 | # accordingly. |
| 2547 | ac_fn_c_check_header_mongrel () |
| 2548 | { |
| 2549 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2550 | if eval \${$3+:} false; then : |
| 2551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2552 | $as_echo_n "checking for $2... " >&6; } |
| 2553 | if eval \${$3+:} false; then : |
| 2554 | $as_echo_n "(cached) " >&6 |
| 2555 | fi |
| 2556 | eval ac_res=\$$3 |
| 2557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2558 | $as_echo "$ac_res" >&6; } |
| 2559 | else |
| 2560 | # Is the header compilable? |
| 2561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 2562 | $as_echo_n "checking $2 usability... " >&6; } |
| 2563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2564 | /* end confdefs.h. */ |
| 2565 | $4 |
| 2566 | #include <$2> |
| 2567 | _ACEOF |
| 2568 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2569 | ac_header_compiler=yes |
| 2570 | else |
| 2571 | ac_header_compiler=no |
| 2572 | fi |
| 2573 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 2575 | $as_echo "$ac_header_compiler" >&6; } |
| 2576 | |
| 2577 | # Is the header present? |
| 2578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 2579 | $as_echo_n "checking $2 presence... " >&6; } |
| 2580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2581 | /* end confdefs.h. */ |
| 2582 | #include <$2> |
| 2583 | _ACEOF |
| 2584 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 2585 | ac_header_preproc=yes |
| 2586 | else |
| 2587 | ac_header_preproc=no |
| 2588 | fi |
| 2589 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 2590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 2591 | $as_echo "$ac_header_preproc" >&6; } |
| 2592 | |
| 2593 | # So? What about this header? |
| 2594 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 2595 | yes:no: ) |
| 2596 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 2597 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 2598 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2599 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 2600 | ;; |
| 2601 | no:yes:* ) |
| 2602 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 2603 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 2604 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 2605 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 2606 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 2607 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 2608 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 2609 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 2610 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2611 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 2612 | ( $as_echo "## ----------------------------------------------------------------------- ## |
| 2613 | ## Report this to a suitable curl mailing list: https://curl.haxx.se/mail/ ## |
| 2614 | ## ----------------------------------------------------------------------- ##" |
| 2615 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 2616 | ;; |
| 2617 | esac |
| 2618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2619 | $as_echo_n "checking for $2... " >&6; } |
| 2620 | if eval \${$3+:} false; then : |
| 2621 | $as_echo_n "(cached) " >&6 |
| 2622 | else |
| 2623 | eval "$3=\$ac_header_compiler" |
| 2624 | fi |
| 2625 | eval ac_res=\$$3 |
| 2626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2627 | $as_echo "$ac_res" >&6; } |
| 2628 | fi |
| 2629 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2630 | |
| 2631 | } # ac_fn_c_check_header_mongrel |
| 2632 | |
| 2633 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 2634 | # ------------------------------------------- |
| 2635 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 2636 | # variable VAR accordingly. |
| 2637 | ac_fn_c_check_type () |
| 2638 | { |
| 2639 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2641 | $as_echo_n "checking for $2... " >&6; } |
| 2642 | if eval \${$3+:} false; then : |
| 2643 | $as_echo_n "(cached) " >&6 |
| 2644 | else |
| 2645 | eval "$3=no" |
| 2646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2647 | /* end confdefs.h. */ |
| 2648 | $4 |
| 2649 | int main (void) |
| 2650 | { |
| 2651 | if (sizeof ($2)) |
| 2652 | return 0; |
| 2653 | ; |
| 2654 | return 0; |
| 2655 | } |
| 2656 | _ACEOF |
| 2657 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2659 | /* end confdefs.h. */ |
| 2660 | $4 |
| 2661 | int main (void) |
| 2662 | { |
| 2663 | if (sizeof (($2))) |
| 2664 | return 0; |
| 2665 | ; |
| 2666 | return 0; |
| 2667 | } |
| 2668 | _ACEOF |
| 2669 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2670 | |
| 2671 | else |
| 2672 | eval "$3=yes" |
| 2673 | fi |
| 2674 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2675 | fi |
| 2676 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2677 | fi |
| 2678 | eval ac_res=\$$3 |
| 2679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2680 | $as_echo "$ac_res" >&6; } |
| 2681 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2682 | |
| 2683 | } # ac_fn_c_check_type |
| 2684 | |
| 2685 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2686 | # ---------------------------------------------------- |
| 2687 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2688 | # INCLUDES, setting cache variable VAR accordingly. |
| 2689 | ac_fn_c_check_member () |
| 2690 | { |
| 2691 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2693 | $as_echo_n "checking for $2.$3... " >&6; } |
| 2694 | if eval \${$4+:} false; then : |
| 2695 | $as_echo_n "(cached) " >&6 |
| 2696 | else |
| 2697 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2698 | /* end confdefs.h. */ |
| 2699 | $5 |
| 2700 | int main (void) |
| 2701 | { |
| 2702 | static $2 ac_aggr; |
| 2703 | if (ac_aggr.$3) |
| 2704 | return 0; |
| 2705 | ; |
| 2706 | return 0; |
| 2707 | } |
| 2708 | _ACEOF |
| 2709 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2710 | eval "$4=yes" |
| 2711 | else |
| 2712 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2713 | /* end confdefs.h. */ |
| 2714 | $5 |
| 2715 | int main (void) |
| 2716 | { |
| 2717 | static $2 ac_aggr; |
| 2718 | if (sizeof ac_aggr.$3) |
| 2719 | return 0; |
| 2720 | ; |
| 2721 | return 0; |
| 2722 | } |
| 2723 | _ACEOF |
| 2724 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2725 | eval "$4=yes" |
| 2726 | else |
| 2727 | eval "$4=no" |
| 2728 | fi |
| 2729 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2730 | fi |
| 2731 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2732 | fi |
| 2733 | eval ac_res=\$$4 |
| 2734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2735 | $as_echo "$ac_res" >&6; } |
| 2736 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2737 | |
| 2738 | } # ac_fn_c_check_member |
| 2739 | cat >config.log <<_ACEOF |
| 2740 | This file contains any messages produced by compilers while |
| 2741 | running configure, to aid debugging if configure makes a mistake. |
| 2742 | |
| 2743 | It was created by curl $as_me -, which was |
| 2744 | generated by GNU Autoconf 2.69. Invocation command line was |
| 2745 | |
| 2746 | $ $0 $@ |
| 2747 | |
| 2748 | _ACEOF |
| 2749 | exec 5>>config.log |
| 2750 | { |
| 2751 | cat <<_ASUNAME |
| 2752 | ## --------- ## |
| 2753 | ## Platform. ## |
| 2754 | ## --------- ## |
| 2755 | |
| 2756 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2757 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2758 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2759 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2760 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2761 | |
| 2762 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2763 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2764 | |
| 2765 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2766 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2767 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 2768 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 2769 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2770 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2771 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2772 | |
| 2773 | _ASUNAME |
| 2774 | |
| 2775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2776 | for as_dir in $PATH |
| 2777 | do |
| 2778 | IFS=$as_save_IFS |
| 2779 | test -z "$as_dir" && as_dir=. |
| 2780 | $as_echo "PATH: $as_dir" |
| 2781 | done |
| 2782 | IFS=$as_save_IFS |
| 2783 | |
| 2784 | } >&5 |
| 2785 | |
| 2786 | cat >&5 <<_ACEOF |
| 2787 | |
| 2788 | |
| 2789 | ## ----------- ## |
| 2790 | ## Core tests. ## |
| 2791 | ## ----------- ## |
| 2792 | |
| 2793 | _ACEOF |
| 2794 | |
| 2795 | |
| 2796 | # Keep a trace of the command line. |
| 2797 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2798 | # Strip out --silent because we don't want to record it for future runs. |
| 2799 | # Also quote any args containing shell meta-characters. |
| 2800 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2801 | ac_configure_args= |
| 2802 | ac_configure_args0= |
| 2803 | ac_configure_args1= |
| 2804 | ac_must_keep_next=false |
| 2805 | for ac_pass in 1 2 |
| 2806 | do |
| 2807 | for ac_arg |
| 2808 | do |
| 2809 | case $ac_arg in |
| 2810 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2811 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2812 | | -silent | --silent | --silen | --sile | --sil) |
| 2813 | continue ;; |
| 2814 | *\'*) |
| 2815 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2816 | esac |
| 2817 | case $ac_pass in |
| 2818 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 2819 | 2) |
| 2820 | as_fn_append ac_configure_args1 " '$ac_arg'" |
| 2821 | if test $ac_must_keep_next = true; then |
| 2822 | ac_must_keep_next=false # Got value, back to normal. |
| 2823 | else |
| 2824 | case $ac_arg in |
| 2825 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2826 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2827 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2828 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2829 | case "$ac_configure_args0 " in |
| 2830 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2831 | esac |
| 2832 | ;; |
| 2833 | -* ) ac_must_keep_next=true ;; |
| 2834 | esac |
| 2835 | fi |
| 2836 | as_fn_append ac_configure_args " '$ac_arg'" |
| 2837 | ;; |
| 2838 | esac |
| 2839 | done |
| 2840 | done |
| 2841 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2842 | { ac_configure_args1=; unset ac_configure_args1;} |
| 2843 | |
| 2844 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2845 | # config.log. We remove comments because anyway the quotes in there |
| 2846 | # would cause problems or look ugly. |
| 2847 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2848 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 2849 | trap 'exit_status=$? |
| 2850 | # Save into config.log some information that might help in debugging. |
| 2851 | { |
| 2852 | echo |
| 2853 | |
| 2854 | $as_echo "## ---------------- ## |
| 2855 | ## Cache variables. ## |
| 2856 | ## ---------------- ##" |
| 2857 | echo |
| 2858 | # The following way of writing the cache mishandles newlines in values, |
| 2859 | ( |
| 2860 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2861 | eval ac_val=\$$ac_var |
| 2862 | case $ac_val in #( |
| 2863 | *${as_nl}*) |
| 2864 | case $ac_var in #( |
| 2865 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2866 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 2867 | esac |
| 2868 | case $ac_var in #( |
| 2869 | _ | IFS | as_nl) ;; #( |
| 2870 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2871 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 2872 | esac ;; |
| 2873 | esac |
| 2874 | done |
| 2875 | (set) 2>&1 | |
| 2876 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2877 | *${as_nl}ac_space=\ *) |
| 2878 | sed -n \ |
| 2879 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2880 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2881 | ;; #( |
| 2882 | *) |
| 2883 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 2884 | ;; |
| 2885 | esac | |
| 2886 | sort |
| 2887 | ) |
| 2888 | echo |
| 2889 | |
| 2890 | $as_echo "## ----------------- ## |
| 2891 | ## Output variables. ## |
| 2892 | ## ----------------- ##" |
| 2893 | echo |
| 2894 | for ac_var in $ac_subst_vars |
| 2895 | do |
| 2896 | eval ac_val=\$$ac_var |
| 2897 | case $ac_val in |
| 2898 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2899 | esac |
| 2900 | $as_echo "$ac_var='\''$ac_val'\''" |
| 2901 | done | sort |
| 2902 | echo |
| 2903 | |
| 2904 | if test -n "$ac_subst_files"; then |
| 2905 | $as_echo "## ------------------- ## |
| 2906 | ## File substitutions. ## |
| 2907 | ## ------------------- ##" |
| 2908 | echo |
| 2909 | for ac_var in $ac_subst_files |
| 2910 | do |
| 2911 | eval ac_val=\$$ac_var |
| 2912 | case $ac_val in |
| 2913 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2914 | esac |
| 2915 | $as_echo "$ac_var='\''$ac_val'\''" |
| 2916 | done | sort |
| 2917 | echo |
| 2918 | fi |
| 2919 | |
| 2920 | if test -s confdefs.h; then |
| 2921 | $as_echo "## ----------- ## |
| 2922 | ## confdefs.h. ## |
| 2923 | ## ----------- ##" |
| 2924 | echo |
| 2925 | cat confdefs.h |
| 2926 | echo |
| 2927 | fi |
| 2928 | test "$ac_signal" != 0 && |
| 2929 | $as_echo "$as_me: caught signal $ac_signal" |
| 2930 | $as_echo "$as_me: exit $exit_status" |
| 2931 | } >&5 |
| 2932 | rm -f core *.core core.conftest.* && |
| 2933 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 2934 | exit $exit_status |
| 2935 | ' 0 |
| 2936 | for ac_signal in 1 2 13 15; do |
| 2937 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 2938 | done |
| 2939 | ac_signal=0 |
| 2940 | |
| 2941 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 2942 | rm -f -r conftest* confdefs.h |
| 2943 | |
| 2944 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2945 | |
| 2946 | # Predefined preprocessor variables. |
| 2947 | |
| 2948 | cat >>confdefs.h <<_ACEOF |
| 2949 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2950 | _ACEOF |
| 2951 | |
| 2952 | cat >>confdefs.h <<_ACEOF |
| 2953 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2954 | _ACEOF |
| 2955 | |
| 2956 | cat >>confdefs.h <<_ACEOF |
| 2957 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2958 | _ACEOF |
| 2959 | |
| 2960 | cat >>confdefs.h <<_ACEOF |
| 2961 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2962 | _ACEOF |
| 2963 | |
| 2964 | cat >>confdefs.h <<_ACEOF |
| 2965 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2966 | _ACEOF |
| 2967 | |
| 2968 | cat >>confdefs.h <<_ACEOF |
| 2969 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2970 | _ACEOF |
| 2971 | |
| 2972 | |
| 2973 | # Let the site file select an alternate cache file if it wants to. |
| 2974 | # Prefer an explicitly selected file to automatically selected ones. |
| 2975 | ac_site_file1=NONE |
| 2976 | ac_site_file2=NONE |
| 2977 | if test -n "$CONFIG_SITE"; then |
| 2978 | # We do not want a PATH search for config.site. |
| 2979 | case $CONFIG_SITE in #(( |
| 2980 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2981 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2982 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2983 | esac |
| 2984 | elif test "x$prefix" != xNONE; then |
| 2985 | ac_site_file1=$prefix/share/config.site |
| 2986 | ac_site_file2=$prefix/etc/config.site |
| 2987 | else |
| 2988 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2989 | ac_site_file2=$ac_default_prefix/etc/config.site |
| 2990 | fi |
| 2991 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 2992 | do |
| 2993 | test "x$ac_site_file" = xNONE && continue |
| 2994 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2995 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2996 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
| 2997 | sed 's/^/| /' "$ac_site_file" >&5 |
| 2998 | . "$ac_site_file" \ |
| 2999 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3000 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3001 | as_fn_error $? "failed to load site script $ac_site_file |
| 3002 | See \`config.log' for more details" "$LINENO" 5; } |
| 3003 | fi |
| 3004 | done |
| 3005 | |
| 3006 | if test -r "$cache_file"; then |
| 3007 | # Some versions of bash will fail to source /dev/null (special files |
| 3008 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 3009 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 3010 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 3011 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
| 3012 | case $cache_file in |
| 3013 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 3014 | *) . "./$cache_file";; |
| 3015 | esac |
| 3016 | fi |
| 3017 | else |
| 3018 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 3019 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
| 3020 | >$cache_file |
| 3021 | fi |
| 3022 | |
| 3023 | # Check that the precious variables saved in the cache have kept the same |
| 3024 | # value. |
| 3025 | ac_cache_corrupted=false |
| 3026 | for ac_var in $ac_precious_vars; do |
| 3027 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 3028 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 3029 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 3030 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 3031 | case $ac_old_set,$ac_new_set in |
| 3032 | set,) |
| 3033 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 3034 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 3035 | ac_cache_corrupted=: ;; |
| 3036 | ,set) |
| 3037 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 3038 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 3039 | ac_cache_corrupted=: ;; |
| 3040 | ,);; |
| 3041 | *) |
| 3042 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 3043 | # differences in whitespace do not lead to failure. |
| 3044 | ac_old_val_w=`echo x $ac_old_val` |
| 3045 | ac_new_val_w=`echo x $ac_new_val` |
| 3046 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 3047 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 3048 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 3049 | ac_cache_corrupted=: |
| 3050 | else |
| 3051 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 3052 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 3053 | eval $ac_var=\$ac_old_val |
| 3054 | fi |
| 3055 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 3056 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 3057 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 3058 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
| 3059 | fi;; |
| 3060 | esac |
| 3061 | # Pass precious variables to config.status. |
| 3062 | if test "$ac_new_set" = set; then |
| 3063 | case $ac_new_val in |
| 3064 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 3065 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 3066 | esac |
| 3067 | case " $ac_configure_args " in |
| 3068 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 3069 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 3070 | esac |
| 3071 | fi |
| 3072 | done |
| 3073 | if $ac_cache_corrupted; then |
| 3074 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3075 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3076 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 3077 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 3078 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
| 3079 | fi |
| 3080 | ## -------------------- ## |
| 3081 | ## Main body of script. ## |
| 3082 | ## -------------------- ## |
| 3083 | |
| 3084 | ac_ext=c |
| 3085 | ac_cpp='$CPP $CPPFLAGS' |
| 3086 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3087 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3088 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3089 | |
| 3090 | |
| 3091 | |
| 3092 | |
| 3093 | |
| 3094 | |
| 3095 | |
| 3096 | # using curl-override.m4 |
| 3097 | |
| 3098 | |
| 3099 | |
| 3100 | |
| 3101 | |
| 3102 | ac_config_headers="$ac_config_headers lib/curl_config.h include/curl/curlbuild.h" |
| 3103 | |
| 3104 | |
| 3105 | |
| 3106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 3107 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
| 3108 | # Check whether --enable-maintainer-mode was given. |
| 3109 | if test "${enable_maintainer_mode+set}" = set; then : |
| 3110 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
| 3111 | else |
| 3112 | USE_MAINTAINER_MODE=no |
| 3113 | fi |
| 3114 | |
| 3115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
| 3116 | $as_echo "$USE_MAINTAINER_MODE" >&6; } |
| 3117 | if test $USE_MAINTAINER_MODE = yes; then |
| 3118 | MAINTAINER_MODE_TRUE= |
| 3119 | MAINTAINER_MODE_FALSE='#' |
| 3120 | else |
| 3121 | MAINTAINER_MODE_TRUE='#' |
| 3122 | MAINTAINER_MODE_FALSE= |
| 3123 | fi |
| 3124 | |
| 3125 | MAINT=$MAINTAINER_MODE_TRUE |
| 3126 | |
| 3127 | |
| 3128 | # Check whether --enable-silent-rules was given. |
| 3129 | if test "${enable_silent_rules+set}" = set; then : |
| 3130 | enableval=$enable_silent_rules; |
| 3131 | fi |
| 3132 | |
| 3133 | case $enable_silent_rules in # ((( |
| 3134 | yes) AM_DEFAULT_VERBOSITY=0;; |
| 3135 | no) AM_DEFAULT_VERBOSITY=1;; |
| 3136 | *) AM_DEFAULT_VERBOSITY=0;; |
| 3137 | esac |
| 3138 | am_make=${MAKE-make} |
| 3139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
| 3140 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } |
| 3141 | if ${am_cv_make_support_nested_variables+:} false; then : |
| 3142 | $as_echo_n "(cached) " >&6 |
| 3143 | else |
| 3144 | if $as_echo 'TRUE=$(BAR$(V)) |
| 3145 | BAR0=false |
| 3146 | BAR1=true |
| 3147 | V=1 |
| 3148 | am__doit: |
| 3149 | @$(TRUE) |
| 3150 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
| 3151 | am_cv_make_support_nested_variables=yes |
| 3152 | else |
| 3153 | am_cv_make_support_nested_variables=no |
| 3154 | fi |
| 3155 | fi |
| 3156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
| 3157 | $as_echo "$am_cv_make_support_nested_variables" >&6; } |
| 3158 | if test $am_cv_make_support_nested_variables = yes; then |
| 3159 | AM_V='$(V)' |
| 3160 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
| 3161 | else |
| 3162 | AM_V=$AM_DEFAULT_VERBOSITY |
| 3163 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
| 3164 | fi |
| 3165 | AM_BACKSLASH='\' |
| 3166 | |
| 3167 | |
| 3168 | |
| 3169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5 |
| 3170 | $as_echo_n "checking whether to enable debug build options... " >&6; } |
| 3171 | OPT_DEBUG_BUILD="default" |
| 3172 | # Check whether --enable-debug was given. |
| 3173 | if test "${enable_debug+set}" = set; then : |
| 3174 | enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval |
| 3175 | fi |
| 3176 | |
| 3177 | case "$OPT_DEBUG_BUILD" in |
| 3178 | no) |
| 3179 | want_debug="no" |
| 3180 | ;; |
| 3181 | default) |
| 3182 | want_debug="no" |
| 3183 | ;; |
| 3184 | *) |
| 3185 | want_debug="yes" |
| 3186 | ;; |
| 3187 | esac |
| 3188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5 |
| 3189 | $as_echo "$want_debug" >&6; } |
| 3190 | |
| 3191 | |
| 3192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5 |
| 3193 | $as_echo_n "checking whether to enable compiler optimizer... " >&6; } |
| 3194 | OPT_COMPILER_OPTIMIZE="default" |
| 3195 | # Check whether --enable-optimize was given. |
| 3196 | if test "${enable_optimize+set}" = set; then : |
| 3197 | enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval |
| 3198 | fi |
| 3199 | |
| 3200 | case "$OPT_COMPILER_OPTIMIZE" in |
| 3201 | no) |
| 3202 | want_optimize="no" |
| 3203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3204 | $as_echo "no" >&6; } |
| 3205 | ;; |
| 3206 | default) |
| 3207 | if test "$want_debug" = "yes"; then |
| 3208 | want_optimize="assume_no" |
| 3209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5 |
| 3210 | $as_echo "(assumed) no" >&6; } |
| 3211 | else |
| 3212 | want_optimize="assume_yes" |
| 3213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5 |
| 3214 | $as_echo "(assumed) yes" >&6; } |
| 3215 | fi |
| 3216 | ;; |
| 3217 | *) |
| 3218 | want_optimize="yes" |
| 3219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3220 | $as_echo "yes" >&6; } |
| 3221 | ;; |
| 3222 | esac |
| 3223 | |
| 3224 | |
| 3225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5 |
| 3226 | $as_echo_n "checking whether to enable strict compiler warnings... " >&6; } |
| 3227 | OPT_COMPILER_WARNINGS="default" |
| 3228 | # Check whether --enable-warnings was given. |
| 3229 | if test "${enable_warnings+set}" = set; then : |
| 3230 | enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval |
| 3231 | fi |
| 3232 | |
| 3233 | case "$OPT_COMPILER_WARNINGS" in |
| 3234 | no) |
| 3235 | want_warnings="no" |
| 3236 | ;; |
| 3237 | default) |
| 3238 | want_warnings="$want_debug" |
| 3239 | ;; |
| 3240 | *) |
| 3241 | want_warnings="yes" |
| 3242 | ;; |
| 3243 | esac |
| 3244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5 |
| 3245 | $as_echo "$want_warnings" >&6; } |
| 3246 | |
| 3247 | |
| 3248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5 |
| 3249 | $as_echo_n "checking whether to enable compiler warnings as errors... " >&6; } |
| 3250 | OPT_COMPILER_WERROR="default" |
| 3251 | # Check whether --enable-werror was given. |
| 3252 | if test "${enable_werror+set}" = set; then : |
| 3253 | enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval |
| 3254 | fi |
| 3255 | |
| 3256 | case "$OPT_COMPILER_WERROR" in |
| 3257 | no) |
| 3258 | want_werror="no" |
| 3259 | ;; |
| 3260 | default) |
| 3261 | want_werror="no" |
| 3262 | ;; |
| 3263 | *) |
| 3264 | want_werror="yes" |
| 3265 | ;; |
| 3266 | esac |
| 3267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5 |
| 3268 | $as_echo "$want_werror" >&6; } |
| 3269 | |
| 3270 | |
| 3271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5 |
| 3272 | $as_echo_n "checking whether to enable curl debug memory tracking... " >&6; } |
| 3273 | OPT_CURLDEBUG_BUILD="default" |
| 3274 | # Check whether --enable-curldebug was given. |
| 3275 | if test "${enable_curldebug+set}" = set; then : |
| 3276 | enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval |
| 3277 | fi |
| 3278 | |
| 3279 | case "$OPT_CURLDEBUG_BUILD" in |
| 3280 | no) |
| 3281 | want_curldebug="no" |
| 3282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3283 | $as_echo "no" >&6; } |
| 3284 | ;; |
| 3285 | default) |
| 3286 | if test "$want_debug" = "yes"; then |
| 3287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5 |
| 3288 | $as_echo "(assumed) yes" >&6; } |
| 3289 | else |
| 3290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3291 | $as_echo "no" >&6; } |
| 3292 | fi |
| 3293 | want_curldebug_assumed="yes" |
| 3294 | want_curldebug="$want_debug" |
| 3295 | ;; |
| 3296 | *) |
| 3297 | want_curldebug="yes" |
| 3298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3299 | $as_echo "yes" >&6; } |
| 3300 | ;; |
| 3301 | esac |
| 3302 | |
| 3303 | |
| 3304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5 |
| 3305 | $as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; } |
| 3306 | OPT_SYMBOL_HIDING="default" |
| 3307 | # Check whether --enable-symbol-hiding was given. |
| 3308 | if test "${enable_symbol_hiding+set}" = set; then : |
| 3309 | enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval |
| 3310 | fi |
| 3311 | |
| 3312 | # Check whether --enable-hidden-symbols was given. |
| 3313 | if test "${enable_hidden_symbols+set}" = set; then : |
| 3314 | enableval=$enable_hidden_symbols; OPT_SYMBOL_HIDING=$enableval |
| 3315 | fi |
| 3316 | |
| 3317 | case "$OPT_SYMBOL_HIDING" in |
| 3318 | no) |
| 3319 | want_symbol_hiding="no" |
| 3320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3321 | $as_echo "no" >&6; } |
| 3322 | ;; |
| 3323 | default) |
| 3324 | want_symbol_hiding="yes" |
| 3325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3326 | $as_echo "yes" >&6; } |
| 3327 | ;; |
| 3328 | *) |
| 3329 | want_symbol_hiding="yes" |
| 3330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3331 | $as_echo "yes" >&6; } |
| 3332 | ;; |
| 3333 | esac |
| 3334 | |
| 3335 | |
| 3336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5 |
| 3337 | $as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; } |
| 3338 | OPT_ARES="default" |
| 3339 | # Check whether --enable-ares was given. |
| 3340 | if test "${enable_ares+set}" = set; then : |
| 3341 | enableval=$enable_ares; OPT_ARES=$enableval |
| 3342 | fi |
| 3343 | |
| 3344 | case "$OPT_ARES" in |
| 3345 | no) |
| 3346 | want_ares="no" |
| 3347 | ;; |
| 3348 | default) |
| 3349 | want_ares="no" |
| 3350 | ;; |
| 3351 | *) |
| 3352 | want_ares="yes" |
| 3353 | if test -n "$enableval" && test "$enableval" != "yes"; then |
| 3354 | want_ares_path="$enableval" |
| 3355 | fi |
| 3356 | ;; |
| 3357 | esac |
| 3358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5 |
| 3359 | $as_echo "$want_ares" >&6; } |
| 3360 | |
| 3361 | |
| 3362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5 |
| 3363 | $as_echo_n "checking whether to disable dependency on -lrt... " >&6; } |
| 3364 | OPT_RT="default" |
| 3365 | # Check whether --enable-rt was given. |
| 3366 | if test "${enable_rt+set}" = set; then : |
| 3367 | enableval=$enable_rt; OPT_RT=$enableval |
| 3368 | fi |
| 3369 | |
| 3370 | case "$OPT_RT" in |
| 3371 | no) |
| 3372 | dontwant_rt="yes" |
| 3373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3374 | $as_echo "yes" >&6; } |
| 3375 | ;; |
| 3376 | default) |
| 3377 | dontwant_rt="no" |
| 3378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5 |
| 3379 | $as_echo "(assumed no)" >&6; } |
| 3380 | ;; |
| 3381 | *) |
| 3382 | dontwant_rt="no" |
| 3383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3384 | $as_echo "no" >&6; } |
| 3385 | ;; |
| 3386 | esac |
| 3387 | |
| 3388 | |
| 3389 | # |
| 3390 | # Check that 'XC_CONFIGURE_PREAMBLE' has already run. |
| 3391 | # |
| 3392 | |
| 3393 | if test -z "$xc_configure_preamble_result"; then |
| 3394 | as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5 |
| 3395 | fi |
| 3396 | |
| 3397 | # |
| 3398 | # Check that 'PATH_SEPARATOR' has already been set. |
| 3399 | # |
| 3400 | |
| 3401 | if test -z "$xc_PATH_SEPARATOR"; then |
| 3402 | as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5 |
| 3403 | fi |
| 3404 | if test -z "$PATH_SEPARATOR"; then |
| 3405 | as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5 |
| 3406 | fi |
| 3407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5 |
| 3408 | $as_echo_n "checking for path separator... " >&6; } |
| 3409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5 |
| 3410 | $as_echo "$PATH_SEPARATOR" >&6; } |
| 3411 | if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then |
| 3412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5 |
| 3413 | $as_echo_n "checking for initial path separator... " >&6; } |
| 3414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5 |
| 3415 | $as_echo "$xc_PATH_SEPARATOR" >&6; } |
| 3416 | as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5 |
| 3417 | fi |
| 3418 | |
| 3419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 3420 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
| 3421 | if ${ac_cv_path_SED+:} false; then : |
| 3422 | $as_echo_n "(cached) " >&6 |
| 3423 | else |
| 3424 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 3425 | for ac_i in 1 2 3 4 5 6 7; do |
| 3426 | ac_script="$ac_script$as_nl$ac_script" |
| 3427 | done |
| 3428 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 3429 | { ac_script=; unset ac_script;} |
| 3430 | if test -z "$SED"; then |
| 3431 | ac_path_SED_found=false |
| 3432 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3433 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3434 | for as_dir in $PATH |
| 3435 | do |
| 3436 | IFS=$as_save_IFS |
| 3437 | test -z "$as_dir" && as_dir=. |
| 3438 | for ac_prog in sed gsed; do |
| 3439 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3440 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
| 3441 | as_fn_executable_p "$ac_path_SED" || continue |
| 3442 | # Check for GNU ac_path_SED and select it if it is found. |
| 3443 | # Check for GNU $ac_path_SED |
| 3444 | case `"$ac_path_SED" --version 2>&1` in |
| 3445 | *GNU*) |
| 3446 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 3447 | *) |
| 3448 | ac_count=0 |
| 3449 | $as_echo_n 0123456789 >"conftest.in" |
| 3450 | while : |
| 3451 | do |
| 3452 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3453 | mv "conftest.tmp" "conftest.in" |
| 3454 | cp "conftest.in" "conftest.nl" |
| 3455 | $as_echo '' >> "conftest.nl" |
| 3456 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3457 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3458 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 3459 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 3460 | # Best one so far, save it but keep looking for a better one |
| 3461 | ac_cv_path_SED="$ac_path_SED" |
| 3462 | ac_path_SED_max=$ac_count |
| 3463 | fi |
| 3464 | # 10*(2^10) chars as input seems more than enough |
| 3465 | test $ac_count -gt 10 && break |
| 3466 | done |
| 3467 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3468 | esac |
| 3469 | |
| 3470 | $ac_path_SED_found && break 3 |
| 3471 | done |
| 3472 | done |
| 3473 | done |
| 3474 | IFS=$as_save_IFS |
| 3475 | if test -z "$ac_cv_path_SED"; then |
| 3476 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| 3477 | fi |
| 3478 | else |
| 3479 | ac_cv_path_SED=$SED |
| 3480 | fi |
| 3481 | |
| 3482 | fi |
| 3483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 3484 | $as_echo "$ac_cv_path_SED" >&6; } |
| 3485 | SED="$ac_cv_path_SED" |
| 3486 | rm -f conftest.sed |
| 3487 | |
| 3488 | |
| 3489 | |
| 3490 | |
| 3491 | # allow to override gcov location |
| 3492 | |
| 3493 | # Check whether --with-gcov was given. |
| 3494 | if test "${with_gcov+set}" = set; then : |
| 3495 | withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov |
| 3496 | else |
| 3497 | _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov |
| 3498 | fi |
| 3499 | |
| 3500 | |
| 3501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5 |
| 3502 | $as_echo_n "checking whether to build with code coverage support... " >&6; } |
| 3503 | # Check whether --enable-code-coverage was given. |
| 3504 | if test "${enable_code_coverage+set}" = set; then : |
| 3505 | enableval=$enable_code_coverage; |
| 3506 | else |
| 3507 | enable_code_coverage=no |
| 3508 | fi |
| 3509 | |
| 3510 | |
| 3511 | if test x$enable_code_coverage = xyes; then |
| 3512 | CODE_COVERAGE_ENABLED_TRUE= |
| 3513 | CODE_COVERAGE_ENABLED_FALSE='#' |
| 3514 | else |
| 3515 | CODE_COVERAGE_ENABLED_TRUE='#' |
| 3516 | CODE_COVERAGE_ENABLED_FALSE= |
| 3517 | fi |
| 3518 | |
| 3519 | CODE_COVERAGE_ENABLED=$enable_code_coverage |
| 3520 | |
| 3521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5 |
| 3522 | $as_echo "$enable_code_coverage" >&6; } |
| 3523 | |
| 3524 | if test "$enable_code_coverage" = "yes" ; then : |
| 3525 | |
| 3526 | # check for gcov |
| 3527 | if test -n "$ac_tool_prefix"; then |
| 3528 | # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args. |
| 3529 | set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2 |
| 3530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3531 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3532 | if ${ac_cv_prog_GCOV+:} false; then : |
| 3533 | $as_echo_n "(cached) " >&6 |
| 3534 | else |
| 3535 | if test -n "$GCOV"; then |
| 3536 | ac_cv_prog_GCOV="$GCOV" # Let the user override the test. |
| 3537 | else |
| 3538 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3539 | for as_dir in $PATH |
| 3540 | do |
| 3541 | IFS=$as_save_IFS |
| 3542 | test -z "$as_dir" && as_dir=. |
| 3543 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3544 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3545 | ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH" |
| 3546 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3547 | break 2 |
| 3548 | fi |
| 3549 | done |
| 3550 | done |
| 3551 | IFS=$as_save_IFS |
| 3552 | |
| 3553 | fi |
| 3554 | fi |
| 3555 | GCOV=$ac_cv_prog_GCOV |
| 3556 | if test -n "$GCOV"; then |
| 3557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5 |
| 3558 | $as_echo "$GCOV" >&6; } |
| 3559 | else |
| 3560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3561 | $as_echo "no" >&6; } |
| 3562 | fi |
| 3563 | |
| 3564 | |
| 3565 | fi |
| 3566 | if test -z "$ac_cv_prog_GCOV"; then |
| 3567 | ac_ct_GCOV=$GCOV |
| 3568 | # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args. |
| 3569 | set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2 |
| 3570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3571 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3572 | if ${ac_cv_prog_ac_ct_GCOV+:} false; then : |
| 3573 | $as_echo_n "(cached) " >&6 |
| 3574 | else |
| 3575 | if test -n "$ac_ct_GCOV"; then |
| 3576 | ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test. |
| 3577 | else |
| 3578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3579 | for as_dir in $PATH |
| 3580 | do |
| 3581 | IFS=$as_save_IFS |
| 3582 | test -z "$as_dir" && as_dir=. |
| 3583 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3584 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3585 | ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH" |
| 3586 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3587 | break 2 |
| 3588 | fi |
| 3589 | done |
| 3590 | done |
| 3591 | IFS=$as_save_IFS |
| 3592 | |
| 3593 | fi |
| 3594 | fi |
| 3595 | ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV |
| 3596 | if test -n "$ac_ct_GCOV"; then |
| 3597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5 |
| 3598 | $as_echo "$ac_ct_GCOV" >&6; } |
| 3599 | else |
| 3600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3601 | $as_echo "no" >&6; } |
| 3602 | fi |
| 3603 | |
| 3604 | if test "x$ac_ct_GCOV" = x; then |
| 3605 | GCOV=":" |
| 3606 | else |
| 3607 | case $cross_compiling:$ac_tool_warned in |
| 3608 | yes:) |
| 3609 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3610 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3611 | ac_tool_warned=yes ;; |
| 3612 | esac |
| 3613 | GCOV=$ac_ct_GCOV |
| 3614 | fi |
| 3615 | else |
| 3616 | GCOV="$ac_cv_prog_GCOV" |
| 3617 | fi |
| 3618 | |
| 3619 | if test "X$GCOV" = "X:"; then : |
| 3620 | as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5 |
| 3621 | fi |
| 3622 | |
| 3623 | |
| 3624 | if test "$GCC" = "no" ; then : |
| 3625 | |
| 3626 | as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5 |
| 3627 | |
| 3628 | fi |
| 3629 | |
| 3630 | # List of supported lcov versions. |
| 3631 | lcov_version_list="1.6 1.7 1.8 1.9 1.10 1.11 1.13" |
| 3632 | |
| 3633 | # Extract the first word of "lcov", so it can be a program name with args. |
| 3634 | set dummy lcov; ac_word=$2 |
| 3635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3636 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3637 | if ${ac_cv_prog_LCOV+:} false; then : |
| 3638 | $as_echo_n "(cached) " >&6 |
| 3639 | else |
| 3640 | if test -n "$LCOV"; then |
| 3641 | ac_cv_prog_LCOV="$LCOV" # Let the user override the test. |
| 3642 | else |
| 3643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3644 | for as_dir in $PATH |
| 3645 | do |
| 3646 | IFS=$as_save_IFS |
| 3647 | test -z "$as_dir" && as_dir=. |
| 3648 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3649 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3650 | ac_cv_prog_LCOV="lcov" |
| 3651 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3652 | break 2 |
| 3653 | fi |
| 3654 | done |
| 3655 | done |
| 3656 | IFS=$as_save_IFS |
| 3657 | |
| 3658 | fi |
| 3659 | fi |
| 3660 | LCOV=$ac_cv_prog_LCOV |
| 3661 | if test -n "$LCOV"; then |
| 3662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5 |
| 3663 | $as_echo "$LCOV" >&6; } |
| 3664 | else |
| 3665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3666 | $as_echo "no" >&6; } |
| 3667 | fi |
| 3668 | |
| 3669 | |
| 3670 | # Extract the first word of "genhtml", so it can be a program name with args. |
| 3671 | set dummy genhtml; ac_word=$2 |
| 3672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3673 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3674 | if ${ac_cv_prog_GENHTML+:} false; then : |
| 3675 | $as_echo_n "(cached) " >&6 |
| 3676 | else |
| 3677 | if test -n "$GENHTML"; then |
| 3678 | ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test. |
| 3679 | else |
| 3680 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3681 | for as_dir in $PATH |
| 3682 | do |
| 3683 | IFS=$as_save_IFS |
| 3684 | test -z "$as_dir" && as_dir=. |
| 3685 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3686 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3687 | ac_cv_prog_GENHTML="genhtml" |
| 3688 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3689 | break 2 |
| 3690 | fi |
| 3691 | done |
| 3692 | done |
| 3693 | IFS=$as_save_IFS |
| 3694 | |
| 3695 | fi |
| 3696 | fi |
| 3697 | GENHTML=$ac_cv_prog_GENHTML |
| 3698 | if test -n "$GENHTML"; then |
| 3699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5 |
| 3700 | $as_echo "$GENHTML" >&6; } |
| 3701 | else |
| 3702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3703 | $as_echo "no" >&6; } |
| 3704 | fi |
| 3705 | |
| 3706 | |
| 3707 | |
| 3708 | if test "$LCOV" ; then : |
| 3709 | |
| 3710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcov version" >&5 |
| 3711 | $as_echo_n "checking for lcov version... " >&6; } |
| 3712 | if ${ax_cv_lcov_version+:} false; then : |
| 3713 | $as_echo_n "(cached) " >&6 |
| 3714 | else |
| 3715 | |
| 3716 | ax_cv_lcov_version=invalid |
| 3717 | lcov_version=`$LCOV -v 2>/dev/null | $SED -e 's/^.* //'` |
| 3718 | for lcov_check_version in $lcov_version_list; do |
| 3719 | if test "$lcov_version" = "$lcov_check_version"; then |
| 3720 | ax_cv_lcov_version="$lcov_check_version (ok)" |
| 3721 | fi |
| 3722 | done |
| 3723 | |
| 3724 | fi |
| 3725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lcov_version" >&5 |
| 3726 | $as_echo "$ax_cv_lcov_version" >&6; } |
| 3727 | |
| 3728 | else |
| 3729 | |
| 3730 | lcov_msg="To enable code coverage reporting you must have one of the following lcov versions installed: $lcov_version_list" |
| 3731 | as_fn_error $? "$lcov_msg" "$LINENO" 5 |
| 3732 | |
| 3733 | fi |
| 3734 | |
| 3735 | case $ax_cv_lcov_version in |
| 3736 | ""|invalid) |
| 3737 | lcov_msg="You must have one of the following versions of lcov: $lcov_version_list (found: $lcov_version)." |
| 3738 | as_fn_error $? "$lcov_msg" "$LINENO" 5 |
| 3739 | LCOV="exit 0;" |
| 3740 | ;; |
| 3741 | esac |
| 3742 | |
| 3743 | if test -z "$GENHTML" ; then : |
| 3744 | |
| 3745 | as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5 |
| 3746 | |
| 3747 | fi |
| 3748 | |
| 3749 | CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage" |
| 3750 | CODE_COVERAGE_LDFLAGS="-lgcov" |
| 3751 | |
| 3752 | |
| 3753 | |
| 3754 | |
| 3755 | CODE_COVERAGE_RULES=' |
| 3756 | # Code coverage |
| 3757 | # |
| 3758 | # Optional: |
| 3759 | # - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting. |
| 3760 | # (Default: $(top_builddir)) |
| 3761 | # - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated |
| 3762 | # by lcov for code coverage. (Default: |
| 3763 | # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info) |
| 3764 | # - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage |
| 3765 | # reports to be created. (Default: |
| 3766 | # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage) |
| 3767 | # - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov |
| 3768 | # - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the lcov instance. |
| 3769 | # (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH) |
| 3770 | # - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the lcov instance. |
| 3771 | # (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT) |
| 3772 | # - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml |
| 3773 | # instance. (Default: empty) |
| 3774 | # - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore |
| 3775 | # |
| 3776 | # The generated report will be titled using the $(PACKAGE_NAME) and |
| 3777 | # $(PACKAGE_VERSION). In order to add the current git hash to the title, |
| 3778 | # use the git-version-gen script, available online. |
| 3779 | |
| 3780 | # Optional variables |
| 3781 | CODE_COVERAGE_DIRECTORY ?= $(top_builddir) |
| 3782 | CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info |
| 3783 | CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage |
| 3784 | CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)" |
| 3785 | CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH) |
| 3786 | CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT) |
| 3787 | CODE_COVERAGE_GENHTML_OPTIONS ?= |
| 3788 | CODE_COVERAGE_IGNORE_PATTERN ?= |
| 3789 | |
| 3790 | code_coverage_quiet = $(code_coverage_quiet_$(V)) |
| 3791 | code_coverage_quiet_ = |
| 3792 | code_coverage_quiet_0 = --quiet |
| 3793 | |
| 3794 | # Use recursive makes in order to ignore errors during check |
| 3795 | check-code-coverage: |
| 3796 | -$(MAKE) $(AM_MAKEFLAGS) -k check |
| 3797 | $(MAKE) $(AM_MAKEFLAGS) code-coverage-capture |
| 3798 | |
| 3799 | # Capture code coverage data |
| 3800 | code-coverage-capture: code-coverage-capture-hook |
| 3801 | $(LCOV) $(code_coverage_quiet) --directory $(CODE_COVERAGE_DIRECTORY) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_OPTIONS) |
| 3802 | $(LCOV) $(code_coverage_quiet) --directory $(CODE_COVERAGE_DIRECTORY) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)" |
| 3803 | -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp |
| 3804 | LANG=C $(GENHTML) $(code_coverage_quiet) --prefix $(CODE_COVERAGE_DIRECTORY) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS) |
| 3805 | @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html" |
| 3806 | |
| 3807 | # Hook rule executed before code-coverage-capture, overridable by the user |
| 3808 | code-coverage-capture-hook: |
| 3809 | |
| 3810 | clean: code-coverage-clean |
| 3811 | code-coverage-clean: |
| 3812 | -$(LCOV) --directory $(top_builddir) -z |
| 3813 | -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY) |
| 3814 | -find . -name "*.gcda" -o -name "*.gcov" -delete |
| 3815 | |
| 3816 | GITIGNOREFILES ?= |
| 3817 | GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY) |
| 3818 | |
| 3819 | DISTCHECK_CONFIGURE_FLAGS ?= |
| 3820 | DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage |
| 3821 | |
| 3822 | .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean |
| 3823 | ' |
| 3824 | |
| 3825 | |
| 3826 | fi |
| 3827 | |
| 3828 | |
| 3829 | |
| 3830 | |
| 3831 | # |
| 3832 | # save the configure arguments |
| 3833 | # |
| 3834 | CONFIGURE_OPTIONS="\"$ac_configure_args\"" |
| 3835 | |
| 3836 | |
| 3837 | CURL_CFLAG_EXTRAS="" |
| 3838 | if test X"$want_werror" = Xyes; then |
| 3839 | CURL_CFLAG_EXTRAS="-Werror" |
| 3840 | fi |
| 3841 | |
| 3842 | |
| 3843 | if test -z "$SED"; then |
| 3844 | # Extract the first word of "sed", so it can be a program name with args. |
| 3845 | set dummy sed; ac_word=$2 |
| 3846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3847 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3848 | if ${ac_cv_path_SED+:} false; then : |
| 3849 | $as_echo_n "(cached) " >&6 |
| 3850 | else |
| 3851 | case $SED in |
| 3852 | [\\/]* | ?:[\\/]*) |
| 3853 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 3854 | ;; |
| 3855 | *) |
| 3856 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3857 | as_dummy="$PATH:/usr/bin:/usr/local/bin" |
| 3858 | for as_dir in $as_dummy |
| 3859 | do |
| 3860 | IFS=$as_save_IFS |
| 3861 | test -z "$as_dir" && as_dir=. |
| 3862 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3863 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3864 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
| 3865 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3866 | break 2 |
| 3867 | fi |
| 3868 | done |
| 3869 | done |
| 3870 | IFS=$as_save_IFS |
| 3871 | |
| 3872 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found" |
| 3873 | ;; |
| 3874 | esac |
| 3875 | fi |
| 3876 | SED=$ac_cv_path_SED |
| 3877 | if test -n "$SED"; then |
| 3878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 |
| 3879 | $as_echo "$SED" >&6; } |
| 3880 | else |
| 3881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3882 | $as_echo "no" >&6; } |
| 3883 | fi |
| 3884 | |
| 3885 | |
| 3886 | if test -z "$SED" || test "$SED" = "not_found"; then |
| 3887 | as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5 |
| 3888 | fi |
| 3889 | fi |
| 3890 | |
| 3891 | |
| 3892 | if test -z "$GREP"; then |
| 3893 | # Extract the first word of "grep", so it can be a program name with args. |
| 3894 | set dummy grep; ac_word=$2 |
| 3895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3896 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3897 | if ${ac_cv_path_GREP+:} false; then : |
| 3898 | $as_echo_n "(cached) " >&6 |
| 3899 | else |
| 3900 | case $GREP in |
| 3901 | [\\/]* | ?:[\\/]*) |
| 3902 | ac_cv_path_GREP="$GREP" # Let the user override the test with a path. |
| 3903 | ;; |
| 3904 | *) |
| 3905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3906 | as_dummy="$PATH:/usr/bin:/usr/local/bin" |
| 3907 | for as_dir in $as_dummy |
| 3908 | do |
| 3909 | IFS=$as_save_IFS |
| 3910 | test -z "$as_dir" && as_dir=. |
| 3911 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3912 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3913 | ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" |
| 3914 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3915 | break 2 |
| 3916 | fi |
| 3917 | done |
| 3918 | done |
| 3919 | IFS=$as_save_IFS |
| 3920 | |
| 3921 | test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found" |
| 3922 | ;; |
| 3923 | esac |
| 3924 | fi |
| 3925 | GREP=$ac_cv_path_GREP |
| 3926 | if test -n "$GREP"; then |
| 3927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 |
| 3928 | $as_echo "$GREP" >&6; } |
| 3929 | else |
| 3930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3931 | $as_echo "no" >&6; } |
| 3932 | fi |
| 3933 | |
| 3934 | |
| 3935 | if test -z "$GREP" || test "$GREP" = "not_found"; then |
| 3936 | as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5 |
| 3937 | fi |
| 3938 | fi |
| 3939 | |
| 3940 | |
| 3941 | if test -z "$EGREP"; then |
| 3942 | if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then |
| 3943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 3944 | $as_echo_n "checking for egrep... " >&6; } |
| 3945 | EGREP="$GREP -E" |
| 3946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 |
| 3947 | $as_echo "$EGREP" >&6; } |
| 3948 | else |
| 3949 | # Extract the first word of "egrep", so it can be a program name with args. |
| 3950 | set dummy egrep; ac_word=$2 |
| 3951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3952 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3953 | if ${ac_cv_path_EGREP+:} false; then : |
| 3954 | $as_echo_n "(cached) " >&6 |
| 3955 | else |
| 3956 | case $EGREP in |
| 3957 | [\\/]* | ?:[\\/]*) |
| 3958 | ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. |
| 3959 | ;; |
| 3960 | *) |
| 3961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3962 | as_dummy="$PATH:/usr/bin:/usr/local/bin" |
| 3963 | for as_dir in $as_dummy |
| 3964 | do |
| 3965 | IFS=$as_save_IFS |
| 3966 | test -z "$as_dir" && as_dir=. |
| 3967 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3968 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3969 | ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext" |
| 3970 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3971 | break 2 |
| 3972 | fi |
| 3973 | done |
| 3974 | done |
| 3975 | IFS=$as_save_IFS |
| 3976 | |
| 3977 | test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found" |
| 3978 | ;; |
| 3979 | esac |
| 3980 | fi |
| 3981 | EGREP=$ac_cv_path_EGREP |
| 3982 | if test -n "$EGREP"; then |
| 3983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 |
| 3984 | $as_echo "$EGREP" >&6; } |
| 3985 | else |
| 3986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3987 | $as_echo "no" >&6; } |
| 3988 | fi |
| 3989 | |
| 3990 | |
| 3991 | fi |
| 3992 | fi |
| 3993 | if test -z "$EGREP" || test "$EGREP" = "not_found"; then |
| 3994 | as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5 |
| 3995 | fi |
| 3996 | |
| 3997 | |
| 3998 | if test -z "$AR"; then |
| 3999 | if test -n "$ac_tool_prefix"; then |
| 4000 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 4001 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 4002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4003 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4004 | if ${ac_cv_path_AR+:} false; then : |
| 4005 | $as_echo_n "(cached) " >&6 |
| 4006 | else |
| 4007 | case $AR in |
| 4008 | [\\/]* | ?:[\\/]*) |
| 4009 | ac_cv_path_AR="$AR" # Let the user override the test with a path. |
| 4010 | ;; |
| 4011 | *) |
| 4012 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4013 | as_dummy="$PATH:/usr/bin:/usr/local/bin" |
| 4014 | for as_dir in $as_dummy |
| 4015 | do |
| 4016 | IFS=$as_save_IFS |
| 4017 | test -z "$as_dir" && as_dir=. |
| 4018 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4019 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4020 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" |
| 4021 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4022 | break 2 |
| 4023 | fi |
| 4024 | done |
| 4025 | done |
| 4026 | IFS=$as_save_IFS |
| 4027 | |
| 4028 | ;; |
| 4029 | esac |
| 4030 | fi |
| 4031 | AR=$ac_cv_path_AR |
| 4032 | if test -n "$AR"; then |
| 4033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 4034 | $as_echo "$AR" >&6; } |
| 4035 | else |
| 4036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4037 | $as_echo "no" >&6; } |
| 4038 | fi |
| 4039 | |
| 4040 | |
| 4041 | fi |
| 4042 | if test -z "$ac_cv_path_AR"; then |
| 4043 | ac_pt_AR=$AR |
| 4044 | # Extract the first word of "ar", so it can be a program name with args. |
| 4045 | set dummy ar; ac_word=$2 |
| 4046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4047 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4048 | if ${ac_cv_path_ac_pt_AR+:} false; then : |
| 4049 | $as_echo_n "(cached) " >&6 |
| 4050 | else |
| 4051 | case $ac_pt_AR in |
| 4052 | [\\/]* | ?:[\\/]*) |
| 4053 | ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path. |
| 4054 | ;; |
| 4055 | *) |
| 4056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4057 | as_dummy="$PATH:/usr/bin:/usr/local/bin" |
| 4058 | for as_dir in $as_dummy |
| 4059 | do |
| 4060 | IFS=$as_save_IFS |
| 4061 | test -z "$as_dir" && as_dir=. |
| 4062 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4063 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4064 | ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext" |
| 4065 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4066 | break 2 |
| 4067 | fi |
| 4068 | done |
| 4069 | done |
| 4070 | IFS=$as_save_IFS |
| 4071 | |
| 4072 | ;; |
| 4073 | esac |
| 4074 | fi |
| 4075 | ac_pt_AR=$ac_cv_path_ac_pt_AR |
| 4076 | if test -n "$ac_pt_AR"; then |
| 4077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5 |
| 4078 | $as_echo "$ac_pt_AR" >&6; } |
| 4079 | else |
| 4080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4081 | $as_echo "no" >&6; } |
| 4082 | fi |
| 4083 | |
| 4084 | if test "x$ac_pt_AR" = x; then |
| 4085 | AR="not_found" |
| 4086 | else |
| 4087 | case $cross_compiling:$ac_tool_warned in |
| 4088 | yes:) |
| 4089 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4090 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4091 | ac_tool_warned=yes ;; |
| 4092 | esac |
| 4093 | AR=$ac_pt_AR |
| 4094 | fi |
| 4095 | else |
| 4096 | AR="$ac_cv_path_AR" |
| 4097 | fi |
| 4098 | |
| 4099 | if test -z "$AR" || test "$AR" = "not_found"; then |
| 4100 | as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5 |
| 4101 | fi |
| 4102 | fi |
| 4103 | |
| 4104 | |
| 4105 | |
| 4106 | |
| 4107 | if test -f ${srcdir}/include/curl/curlbuild.h; then |
| 4108 | rm -f ${srcdir}/include/curl/curlbuild.h |
| 4109 | fi |
| 4110 | |
| 4111 | CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' ${srcdir}/include/curl/curlver.h` |
| 4112 | |
| 4113 | xc_prog_cc_prev_IFS=$IFS |
| 4114 | xc_prog_cc_prev_LIBS=$LIBS |
| 4115 | xc_prog_cc_prev_CFLAGS=$CFLAGS |
| 4116 | xc_prog_cc_prev_LDFLAGS=$LDFLAGS |
| 4117 | xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS |
| 4118 | |
| 4119 | |
| 4120 | |
| 4121 | xc_bad_var_libs=no |
| 4122 | for xc_word in $LIBS; do |
| 4123 | case "$xc_word" in |
| 4124 | -l* | --library=*) |
| 4125 | : |
| 4126 | ;; |
| 4127 | *) |
| 4128 | xc_bad_var_libs=yes |
| 4129 | ;; |
| 4130 | esac |
| 4131 | done |
| 4132 | if test $xc_bad_var_libs = yes; then |
| 4133 | { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5 |
| 4134 | $as_echo "$as_me: using LIBS: $LIBS" >&6;} |
| 4135 | { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5 |
| 4136 | $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;} |
| 4137 | fi |
| 4138 | |
| 4139 | |
| 4140 | xc_bad_var_ldflags=no |
| 4141 | for xc_word in $LDFLAGS; do |
| 4142 | case "$xc_word" in |
| 4143 | -D*) |
| 4144 | xc_bad_var_ldflags=yes |
| 4145 | ;; |
| 4146 | -U*) |
| 4147 | xc_bad_var_ldflags=yes |
| 4148 | ;; |
| 4149 | -I*) |
| 4150 | xc_bad_var_ldflags=yes |
| 4151 | ;; |
| 4152 | -l* | --library=*) |
| 4153 | xc_bad_var_ldflags=yes |
| 4154 | ;; |
| 4155 | esac |
| 4156 | done |
| 4157 | if test $xc_bad_var_ldflags = yes; then |
| 4158 | { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5 |
| 4159 | $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;} |
| 4160 | xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not" |
| 4161 | for xc_word in $LDFLAGS; do |
| 4162 | case "$xc_word" in |
| 4163 | -D*) |
| 4164 | { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5 |
| 4165 | $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;} |
| 4166 | ;; |
| 4167 | -U*) |
| 4168 | { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5 |
| 4169 | $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;} |
| 4170 | ;; |
| 4171 | -I*) |
| 4172 | { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5 |
| 4173 | $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;} |
| 4174 | ;; |
| 4175 | -l* | --library=*) |
| 4176 | { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5 |
| 4177 | $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;} |
| 4178 | ;; |
| 4179 | esac |
| 4180 | done |
| 4181 | fi |
| 4182 | |
| 4183 | |
| 4184 | xc_bad_var_cppflags=no |
| 4185 | for xc_word in $CPPFLAGS; do |
| 4186 | case "$xc_word" in |
| 4187 | -rpath*) |
| 4188 | xc_bad_var_cppflags=yes |
| 4189 | ;; |
| 4190 | -L* | --library-path=*) |
| 4191 | xc_bad_var_cppflags=yes |
| 4192 | ;; |
| 4193 | -l* | --library=*) |
| 4194 | xc_bad_var_cppflags=yes |
| 4195 | ;; |
| 4196 | esac |
| 4197 | done |
| 4198 | if test $xc_bad_var_cppflags = yes; then |
| 4199 | { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5 |
| 4200 | $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;} |
| 4201 | xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not" |
| 4202 | for xc_word in $CPPFLAGS; do |
| 4203 | case "$xc_word" in |
| 4204 | -rpath*) |
| 4205 | { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5 |
| 4206 | $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;} |
| 4207 | ;; |
| 4208 | -L* | --library-path=*) |
| 4209 | { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5 |
| 4210 | $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;} |
| 4211 | ;; |
| 4212 | -l* | --library=*) |
| 4213 | { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5 |
| 4214 | $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;} |
| 4215 | ;; |
| 4216 | esac |
| 4217 | done |
| 4218 | fi |
| 4219 | |
| 4220 | |
| 4221 | xc_bad_var_cflags=no |
| 4222 | for xc_word in $CFLAGS; do |
| 4223 | case "$xc_word" in |
| 4224 | -D*) |
| 4225 | xc_bad_var_cflags=yes |
| 4226 | ;; |
| 4227 | -U*) |
| 4228 | xc_bad_var_cflags=yes |
| 4229 | ;; |
| 4230 | -I*) |
| 4231 | xc_bad_var_cflags=yes |
| 4232 | ;; |
| 4233 | -rpath*) |
| 4234 | xc_bad_var_cflags=yes |
| 4235 | ;; |
| 4236 | -L* | --library-path=*) |
| 4237 | xc_bad_var_cflags=yes |
| 4238 | ;; |
| 4239 | -l* | --library=*) |
| 4240 | xc_bad_var_cflags=yes |
| 4241 | ;; |
| 4242 | esac |
| 4243 | done |
| 4244 | if test $xc_bad_var_cflags = yes; then |
| 4245 | { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5 |
| 4246 | $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;} |
| 4247 | xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not" |
| 4248 | for xc_word in $CFLAGS; do |
| 4249 | case "$xc_word" in |
| 4250 | -D*) |
| 4251 | { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5 |
| 4252 | $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;} |
| 4253 | ;; |
| 4254 | -U*) |
| 4255 | { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5 |
| 4256 | $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;} |
| 4257 | ;; |
| 4258 | -I*) |
| 4259 | { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5 |
| 4260 | $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;} |
| 4261 | ;; |
| 4262 | -rpath*) |
| 4263 | { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5 |
| 4264 | $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;} |
| 4265 | ;; |
| 4266 | -L* | --library-path=*) |
| 4267 | { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5 |
| 4268 | $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;} |
| 4269 | ;; |
| 4270 | -l* | --library=*) |
| 4271 | { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5 |
| 4272 | $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;} |
| 4273 | ;; |
| 4274 | esac |
| 4275 | done |
| 4276 | fi |
| 4277 | |
| 4278 | if test $xc_bad_var_libs = yes || |
| 4279 | test $xc_bad_var_cflags = yes || |
| 4280 | test $xc_bad_var_ldflags = yes || |
| 4281 | test $xc_bad_var_cppflags = yes; then |
| 4282 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5 |
| 4283 | $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;} |
| 4284 | fi |
| 4285 | |
| 4286 | ac_aux_dir= |
| 4287 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 4288 | if test -f "$ac_dir/install-sh"; then |
| 4289 | ac_aux_dir=$ac_dir |
| 4290 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 4291 | break |
| 4292 | elif test -f "$ac_dir/install.sh"; then |
| 4293 | ac_aux_dir=$ac_dir |
| 4294 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 4295 | break |
| 4296 | elif test -f "$ac_dir/shtool"; then |
| 4297 | ac_aux_dir=$ac_dir |
| 4298 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 4299 | break |
| 4300 | fi |
| 4301 | done |
| 4302 | if test -z "$ac_aux_dir"; then |
| 4303 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
| 4304 | fi |
| 4305 | |
| 4306 | # These three variables are undocumented and unsupported, |
| 4307 | # and are intended to be withdrawn in a future Autoconf release. |
| 4308 | # They can cause serious problems if a builder's source tree is in a directory |
| 4309 | # whose full name contains unusual characters. |
| 4310 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 4311 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 4312 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 4313 | |
| 4314 | |
| 4315 | # Find a good install program. We prefer a C program (faster), |
| 4316 | # so one script is as good as another. But avoid the broken or |
| 4317 | # incompatible versions: |
| 4318 | # SysV /etc/install, /usr/sbin/install |
| 4319 | # SunOS /usr/etc/install |
| 4320 | # IRIX /sbin/install |
| 4321 | # AIX /bin/install |
| 4322 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 4323 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4324 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4325 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 4326 | # OS/2's system install, which has a completely different semantic |
| 4327 | # ./install, which can be erroneously created by make from ./install.sh. |
| 4328 | # Reject install programs that cannot install multiple files. |
| 4329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 4330 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
| 4331 | if test -z "$INSTALL"; then |
| 4332 | if ${ac_cv_path_install+:} false; then : |
| 4333 | $as_echo_n "(cached) " >&6 |
| 4334 | else |
| 4335 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4336 | for as_dir in $PATH |
| 4337 | do |
| 4338 | IFS=$as_save_IFS |
| 4339 | test -z "$as_dir" && as_dir=. |
| 4340 | # Account for people who put trailing slashes in PATH elements. |
| 4341 | case $as_dir/ in #(( |
| 4342 | ./ | .// | /[cC]/* | \ |
| 4343 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 4344 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 4345 | /usr/ucb/* ) ;; |
| 4346 | *) |
| 4347 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4348 | # Don't use installbsd from OSF since it installs stuff as root |
| 4349 | # by default. |
| 4350 | for ac_prog in ginstall scoinst install; do |
| 4351 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4352 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 4353 | if test $ac_prog = install && |
| 4354 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4355 | # AIX install. It has an incompatible calling convention. |
| 4356 | : |
| 4357 | elif test $ac_prog = install && |
| 4358 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4359 | # program-specific install script used by HP pwplus--don't use. |
| 4360 | : |
| 4361 | else |
| 4362 | rm -rf conftest.one conftest.two conftest.dir |
| 4363 | echo one > conftest.one |
| 4364 | echo two > conftest.two |
| 4365 | mkdir conftest.dir |
| 4366 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 4367 | test -s conftest.one && test -s conftest.two && |
| 4368 | test -s conftest.dir/conftest.one && |
| 4369 | test -s conftest.dir/conftest.two |
| 4370 | then |
| 4371 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4372 | break 3 |
| 4373 | fi |
| 4374 | fi |
| 4375 | fi |
| 4376 | done |
| 4377 | done |
| 4378 | ;; |
| 4379 | esac |
| 4380 | |
| 4381 | done |
| 4382 | IFS=$as_save_IFS |
| 4383 | |
| 4384 | rm -rf conftest.one conftest.two conftest.dir |
| 4385 | |
| 4386 | fi |
| 4387 | if test "${ac_cv_path_install+set}" = set; then |
| 4388 | INSTALL=$ac_cv_path_install |
| 4389 | else |
| 4390 | # As a last resort, use the slow shell script. Don't cache a |
| 4391 | # value for INSTALL within a source directory, because that will |
| 4392 | # break other packages using the cache if that directory is |
| 4393 | # removed, or if the value is a relative name. |
| 4394 | INSTALL=$ac_install_sh |
| 4395 | fi |
| 4396 | fi |
| 4397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 4398 | $as_echo "$INSTALL" >&6; } |
| 4399 | |
| 4400 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4401 | # It thinks the first close brace ends the variable substitution. |
| 4402 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4403 | |
| 4404 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 4405 | |
| 4406 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4407 | |
| 4408 | # Expand $ac_aux_dir to an absolute path. |
| 4409 | am_aux_dir=`cd "$ac_aux_dir" && pwd` |
| 4410 | |
| 4411 | ac_ext=c |
| 4412 | ac_cpp='$CPP $CPPFLAGS' |
| 4413 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4414 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4415 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4416 | if test -n "$ac_tool_prefix"; then |
| 4417 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 4418 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 4419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4420 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4421 | if ${ac_cv_prog_CC+:} false; then : |
| 4422 | $as_echo_n "(cached) " >&6 |
| 4423 | else |
| 4424 | if test -n "$CC"; then |
| 4425 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4426 | else |
| 4427 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4428 | for as_dir in $PATH |
| 4429 | do |
| 4430 | IFS=$as_save_IFS |
| 4431 | test -z "$as_dir" && as_dir=. |
| 4432 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4433 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4434 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 4435 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4436 | break 2 |
| 4437 | fi |
| 4438 | done |
| 4439 | done |
| 4440 | IFS=$as_save_IFS |
| 4441 | |
| 4442 | fi |
| 4443 | fi |
| 4444 | CC=$ac_cv_prog_CC |
| 4445 | if test -n "$CC"; then |
| 4446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4447 | $as_echo "$CC" >&6; } |
| 4448 | else |
| 4449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4450 | $as_echo "no" >&6; } |
| 4451 | fi |
| 4452 | |
| 4453 | |
| 4454 | fi |
| 4455 | if test -z "$ac_cv_prog_CC"; then |
| 4456 | ac_ct_CC=$CC |
| 4457 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4458 | set dummy gcc; ac_word=$2 |
| 4459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4460 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4461 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 4462 | $as_echo_n "(cached) " >&6 |
| 4463 | else |
| 4464 | if test -n "$ac_ct_CC"; then |
| 4465 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4466 | else |
| 4467 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4468 | for as_dir in $PATH |
| 4469 | do |
| 4470 | IFS=$as_save_IFS |
| 4471 | test -z "$as_dir" && as_dir=. |
| 4472 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4473 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4474 | ac_cv_prog_ac_ct_CC="gcc" |
| 4475 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4476 | break 2 |
| 4477 | fi |
| 4478 | done |
| 4479 | done |
| 4480 | IFS=$as_save_IFS |
| 4481 | |
| 4482 | fi |
| 4483 | fi |
| 4484 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4485 | if test -n "$ac_ct_CC"; then |
| 4486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4487 | $as_echo "$ac_ct_CC" >&6; } |
| 4488 | else |
| 4489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4490 | $as_echo "no" >&6; } |
| 4491 | fi |
| 4492 | |
| 4493 | if test "x$ac_ct_CC" = x; then |
| 4494 | CC="" |
| 4495 | else |
| 4496 | case $cross_compiling:$ac_tool_warned in |
| 4497 | yes:) |
| 4498 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4499 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4500 | ac_tool_warned=yes ;; |
| 4501 | esac |
| 4502 | CC=$ac_ct_CC |
| 4503 | fi |
| 4504 | else |
| 4505 | CC="$ac_cv_prog_CC" |
| 4506 | fi |
| 4507 | |
| 4508 | if test -z "$CC"; then |
| 4509 | if test -n "$ac_tool_prefix"; then |
| 4510 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 4511 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 4512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4513 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4514 | if ${ac_cv_prog_CC+:} false; then : |
| 4515 | $as_echo_n "(cached) " >&6 |
| 4516 | else |
| 4517 | if test -n "$CC"; then |
| 4518 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4519 | else |
| 4520 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4521 | for as_dir in $PATH |
| 4522 | do |
| 4523 | IFS=$as_save_IFS |
| 4524 | test -z "$as_dir" && as_dir=. |
| 4525 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4526 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4527 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 4528 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4529 | break 2 |
| 4530 | fi |
| 4531 | done |
| 4532 | done |
| 4533 | IFS=$as_save_IFS |
| 4534 | |
| 4535 | fi |
| 4536 | fi |
| 4537 | CC=$ac_cv_prog_CC |
| 4538 | if test -n "$CC"; then |
| 4539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4540 | $as_echo "$CC" >&6; } |
| 4541 | else |
| 4542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4543 | $as_echo "no" >&6; } |
| 4544 | fi |
| 4545 | |
| 4546 | |
| 4547 | fi |
| 4548 | fi |
| 4549 | if test -z "$CC"; then |
| 4550 | # Extract the first word of "cc", so it can be a program name with args. |
| 4551 | set dummy cc; ac_word=$2 |
| 4552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4553 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4554 | if ${ac_cv_prog_CC+:} false; then : |
| 4555 | $as_echo_n "(cached) " >&6 |
| 4556 | else |
| 4557 | if test -n "$CC"; then |
| 4558 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4559 | else |
| 4560 | ac_prog_rejected=no |
| 4561 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4562 | for as_dir in $PATH |
| 4563 | do |
| 4564 | IFS=$as_save_IFS |
| 4565 | test -z "$as_dir" && as_dir=. |
| 4566 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4567 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4568 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4569 | ac_prog_rejected=yes |
| 4570 | continue |
| 4571 | fi |
| 4572 | ac_cv_prog_CC="cc" |
| 4573 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4574 | break 2 |
| 4575 | fi |
| 4576 | done |
| 4577 | done |
| 4578 | IFS=$as_save_IFS |
| 4579 | |
| 4580 | if test $ac_prog_rejected = yes; then |
| 4581 | # We found a bogon in the path, so make sure we never use it. |
| 4582 | set dummy $ac_cv_prog_CC |
| 4583 | shift |
| 4584 | if test $# != 0; then |
| 4585 | # We chose a different compiler from the bogus one. |
| 4586 | # However, it has the same basename, so the bogon will be chosen |
| 4587 | # first if we set CC to just the basename; use the full file name. |
| 4588 | shift |
| 4589 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 4590 | fi |
| 4591 | fi |
| 4592 | fi |
| 4593 | fi |
| 4594 | CC=$ac_cv_prog_CC |
| 4595 | if test -n "$CC"; then |
| 4596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4597 | $as_echo "$CC" >&6; } |
| 4598 | else |
| 4599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4600 | $as_echo "no" >&6; } |
| 4601 | fi |
| 4602 | |
| 4603 | |
| 4604 | fi |
| 4605 | if test -z "$CC"; then |
| 4606 | if test -n "$ac_tool_prefix"; then |
| 4607 | for ac_prog in cl.exe |
| 4608 | do |
| 4609 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4610 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4612 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4613 | if ${ac_cv_prog_CC+:} false; then : |
| 4614 | $as_echo_n "(cached) " >&6 |
| 4615 | else |
| 4616 | if test -n "$CC"; then |
| 4617 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4618 | else |
| 4619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4620 | for as_dir in $PATH |
| 4621 | do |
| 4622 | IFS=$as_save_IFS |
| 4623 | test -z "$as_dir" && as_dir=. |
| 4624 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4625 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4626 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 4627 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4628 | break 2 |
| 4629 | fi |
| 4630 | done |
| 4631 | done |
| 4632 | IFS=$as_save_IFS |
| 4633 | |
| 4634 | fi |
| 4635 | fi |
| 4636 | CC=$ac_cv_prog_CC |
| 4637 | if test -n "$CC"; then |
| 4638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4639 | $as_echo "$CC" >&6; } |
| 4640 | else |
| 4641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4642 | $as_echo "no" >&6; } |
| 4643 | fi |
| 4644 | |
| 4645 | |
| 4646 | test -n "$CC" && break |
| 4647 | done |
| 4648 | fi |
| 4649 | if test -z "$CC"; then |
| 4650 | ac_ct_CC=$CC |
| 4651 | for ac_prog in cl.exe |
| 4652 | do |
| 4653 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4654 | set dummy $ac_prog; ac_word=$2 |
| 4655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4656 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4657 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 4658 | $as_echo_n "(cached) " >&6 |
| 4659 | else |
| 4660 | if test -n "$ac_ct_CC"; then |
| 4661 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4662 | else |
| 4663 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4664 | for as_dir in $PATH |
| 4665 | do |
| 4666 | IFS=$as_save_IFS |
| 4667 | test -z "$as_dir" && as_dir=. |
| 4668 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4669 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4670 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 4671 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4672 | break 2 |
| 4673 | fi |
| 4674 | done |
| 4675 | done |
| 4676 | IFS=$as_save_IFS |
| 4677 | |
| 4678 | fi |
| 4679 | fi |
| 4680 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4681 | if test -n "$ac_ct_CC"; then |
| 4682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4683 | $as_echo "$ac_ct_CC" >&6; } |
| 4684 | else |
| 4685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4686 | $as_echo "no" >&6; } |
| 4687 | fi |
| 4688 | |
| 4689 | |
| 4690 | test -n "$ac_ct_CC" && break |
| 4691 | done |
| 4692 | |
| 4693 | if test "x$ac_ct_CC" = x; then |
| 4694 | CC="" |
| 4695 | else |
| 4696 | case $cross_compiling:$ac_tool_warned in |
| 4697 | yes:) |
| 4698 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4699 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4700 | ac_tool_warned=yes ;; |
| 4701 | esac |
| 4702 | CC=$ac_ct_CC |
| 4703 | fi |
| 4704 | fi |
| 4705 | |
| 4706 | fi |
| 4707 | |
| 4708 | |
| 4709 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4710 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4711 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 4712 | See \`config.log' for more details" "$LINENO" 5; } |
| 4713 | |
| 4714 | # Provide some information about the compiler. |
| 4715 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 4716 | set X $ac_compile |
| 4717 | ac_compiler=$2 |
| 4718 | for ac_option in --version -v -V -qversion; do |
| 4719 | { { ac_try="$ac_compiler $ac_option >&5" |
| 4720 | case "(($ac_try" in |
| 4721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4722 | *) ac_try_echo=$ac_try;; |
| 4723 | esac |
| 4724 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4725 | $as_echo "$ac_try_echo"; } >&5 |
| 4726 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 4727 | ac_status=$? |
| 4728 | if test -s conftest.err; then |
| 4729 | sed '10a\ |
| 4730 | ... rest of stderr output deleted ... |
| 4731 | 10q' conftest.err >conftest.er1 |
| 4732 | cat conftest.er1 >&5 |
| 4733 | fi |
| 4734 | rm -f conftest.er1 conftest.err |
| 4735 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4736 | test $ac_status = 0; } |
| 4737 | done |
| 4738 | |
| 4739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4740 | /* end confdefs.h. */ |
| 4741 | |
| 4742 | int main (void) |
| 4743 | { |
| 4744 | |
| 4745 | ; |
| 4746 | return 0; |
| 4747 | } |
| 4748 | _ACEOF |
| 4749 | ac_clean_files_save=$ac_clean_files |
| 4750 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 4751 | # Try to create an executable without -o first, disregard a.out. |
| 4752 | # It will help us diagnose broken compilers, and finding out an intuition |
| 4753 | # of exeext. |
| 4754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 4755 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| 4756 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 4757 | |
| 4758 | # The possible output files: |
| 4759 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 4760 | |
| 4761 | ac_rmfiles= |
| 4762 | for ac_file in $ac_files |
| 4763 | do |
| 4764 | case $ac_file in |
| 4765 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 4766 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 4767 | esac |
| 4768 | done |
| 4769 | rm -f $ac_rmfiles |
| 4770 | |
| 4771 | if { { ac_try="$ac_link_default" |
| 4772 | case "(($ac_try" in |
| 4773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4774 | *) ac_try_echo=$ac_try;; |
| 4775 | esac |
| 4776 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4777 | $as_echo "$ac_try_echo"; } >&5 |
| 4778 | (eval "$ac_link_default") 2>&5 |
| 4779 | ac_status=$? |
| 4780 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4781 | test $ac_status = 0; }; then : |
| 4782 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 4783 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 4784 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 4785 | # so that the user can short-circuit this test for compilers unknown to |
| 4786 | # Autoconf. |
| 4787 | for ac_file in $ac_files '' |
| 4788 | do |
| 4789 | test -f "$ac_file" || continue |
| 4790 | case $ac_file in |
| 4791 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 4792 | ;; |
| 4793 | [ab].out ) |
| 4794 | # We found the default executable, but exeext='' is most |
| 4795 | # certainly right. |
| 4796 | break;; |
| 4797 | *.* ) |
| 4798 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 4799 | then :; else |
| 4800 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 4801 | fi |
| 4802 | # We set ac_cv_exeext here because the later test for it is not |
| 4803 | # safe: cross compilers may not add the suffix if given an `-o' |
| 4804 | # argument, so we may need to know it at that point already. |
| 4805 | # Even if this section looks crufty: it has the advantage of |
| 4806 | # actually working. |
| 4807 | break;; |
| 4808 | * ) |
| 4809 | break;; |
| 4810 | esac |
| 4811 | done |
| 4812 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 4813 | |
| 4814 | else |
| 4815 | ac_file='' |
| 4816 | fi |
| 4817 | if test -z "$ac_file"; then : |
| 4818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4819 | $as_echo "no" >&6; } |
| 4820 | $as_echo "$as_me: failed program was:" >&5 |
| 4821 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4822 | |
| 4823 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4824 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4825 | as_fn_error 77 "C compiler cannot create executables |
| 4826 | See \`config.log' for more details" "$LINENO" 5; } |
| 4827 | else |
| 4828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4829 | $as_echo "yes" >&6; } |
| 4830 | fi |
| 4831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 4832 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 4833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 4834 | $as_echo "$ac_file" >&6; } |
| 4835 | ac_exeext=$ac_cv_exeext |
| 4836 | |
| 4837 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 4838 | ac_clean_files=$ac_clean_files_save |
| 4839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 4840 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 4841 | if { { ac_try="$ac_link" |
| 4842 | case "(($ac_try" in |
| 4843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4844 | *) ac_try_echo=$ac_try;; |
| 4845 | esac |
| 4846 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4847 | $as_echo "$ac_try_echo"; } >&5 |
| 4848 | (eval "$ac_link") 2>&5 |
| 4849 | ac_status=$? |
| 4850 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4851 | test $ac_status = 0; }; then : |
| 4852 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 4853 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 4854 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 4855 | # `rm'. |
| 4856 | for ac_file in conftest.exe conftest conftest.*; do |
| 4857 | test -f "$ac_file" || continue |
| 4858 | case $ac_file in |
| 4859 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 4860 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 4861 | break;; |
| 4862 | * ) break;; |
| 4863 | esac |
| 4864 | done |
| 4865 | else |
| 4866 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4867 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4868 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 4869 | See \`config.log' for more details" "$LINENO" 5; } |
| 4870 | fi |
| 4871 | rm -f conftest conftest$ac_cv_exeext |
| 4872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 4873 | $as_echo "$ac_cv_exeext" >&6; } |
| 4874 | |
| 4875 | rm -f conftest.$ac_ext |
| 4876 | EXEEXT=$ac_cv_exeext |
| 4877 | ac_exeext=$EXEEXT |
| 4878 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4879 | /* end confdefs.h. */ |
| 4880 | #include <stdio.h> |
| 4881 | int main (void) |
| 4882 | { |
| 4883 | FILE *f = fopen ("conftest.out", "w"); |
| 4884 | return ferror (f) || fclose (f) != 0; |
| 4885 | |
| 4886 | ; |
| 4887 | return 0; |
| 4888 | } |
| 4889 | _ACEOF |
| 4890 | ac_clean_files="$ac_clean_files conftest.out" |
| 4891 | # Check that the compiler produces executables we can run. If not, either |
| 4892 | # the compiler is broken, or we cross compile. |
| 4893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 4894 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 4895 | if test "$cross_compiling" != yes; then |
| 4896 | { { ac_try="$ac_link" |
| 4897 | case "(($ac_try" in |
| 4898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4899 | *) ac_try_echo=$ac_try;; |
| 4900 | esac |
| 4901 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4902 | $as_echo "$ac_try_echo"; } >&5 |
| 4903 | (eval "$ac_link") 2>&5 |
| 4904 | ac_status=$? |
| 4905 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4906 | test $ac_status = 0; } |
| 4907 | if { ac_try='./conftest$ac_cv_exeext' |
| 4908 | { { case "(($ac_try" in |
| 4909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4910 | *) ac_try_echo=$ac_try;; |
| 4911 | esac |
| 4912 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4913 | $as_echo "$ac_try_echo"; } >&5 |
| 4914 | (eval "$ac_try") 2>&5 |
| 4915 | ac_status=$? |
| 4916 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4917 | test $ac_status = 0; }; }; then |
| 4918 | cross_compiling=no |
| 4919 | else |
| 4920 | if test "$cross_compiling" = maybe; then |
| 4921 | cross_compiling=yes |
| 4922 | else |
| 4923 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4924 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4925 | as_fn_error $? "cannot run C compiled programs. |
| 4926 | If you meant to cross compile, use \`--host'. |
| 4927 | See \`config.log' for more details" "$LINENO" 5; } |
| 4928 | fi |
| 4929 | fi |
| 4930 | fi |
| 4931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 4932 | $as_echo "$cross_compiling" >&6; } |
| 4933 | |
| 4934 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 4935 | ac_clean_files=$ac_clean_files_save |
| 4936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 4937 | $as_echo_n "checking for suffix of object files... " >&6; } |
| 4938 | if ${ac_cv_objext+:} false; then : |
| 4939 | $as_echo_n "(cached) " >&6 |
| 4940 | else |
| 4941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4942 | /* end confdefs.h. */ |
| 4943 | |
| 4944 | int main (void) |
| 4945 | { |
| 4946 | |
| 4947 | ; |
| 4948 | return 0; |
| 4949 | } |
| 4950 | _ACEOF |
| 4951 | rm -f conftest.o conftest.obj |
| 4952 | if { { ac_try="$ac_compile" |
| 4953 | case "(($ac_try" in |
| 4954 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4955 | *) ac_try_echo=$ac_try;; |
| 4956 | esac |
| 4957 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4958 | $as_echo "$ac_try_echo"; } >&5 |
| 4959 | (eval "$ac_compile") 2>&5 |
| 4960 | ac_status=$? |
| 4961 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4962 | test $ac_status = 0; }; then : |
| 4963 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 4964 | test -f "$ac_file" || continue; |
| 4965 | case $ac_file in |
| 4966 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 4967 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 4968 | break;; |
| 4969 | esac |
| 4970 | done |
| 4971 | else |
| 4972 | $as_echo "$as_me: failed program was:" >&5 |
| 4973 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4974 | |
| 4975 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4976 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4977 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 4978 | See \`config.log' for more details" "$LINENO" 5; } |
| 4979 | fi |
| 4980 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 4981 | fi |
| 4982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 4983 | $as_echo "$ac_cv_objext" >&6; } |
| 4984 | OBJEXT=$ac_cv_objext |
| 4985 | ac_objext=$OBJEXT |
| 4986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 4987 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 4988 | if ${ac_cv_c_compiler_gnu+:} false; then : |
| 4989 | $as_echo_n "(cached) " >&6 |
| 4990 | else |
| 4991 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4992 | /* end confdefs.h. */ |
| 4993 | |
| 4994 | int main (void) |
| 4995 | { |
| 4996 | #ifndef __GNUC__ |
| 4997 | choke me |
| 4998 | #endif |
| 4999 | |
| 5000 | ; |
| 5001 | return 0; |
| 5002 | } |
| 5003 | _ACEOF |
| 5004 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5005 | ac_compiler_gnu=yes |
| 5006 | else |
| 5007 | ac_compiler_gnu=no |
| 5008 | fi |
| 5009 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5010 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 5011 | |
| 5012 | fi |
| 5013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 5014 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 5015 | if test $ac_compiler_gnu = yes; then |
| 5016 | GCC=yes |
| 5017 | else |
| 5018 | GCC= |
| 5019 | fi |
| 5020 | ac_test_CFLAGS=${CFLAGS+set} |
| 5021 | ac_save_CFLAGS=$CFLAGS |
| 5022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 5023 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 5024 | if ${ac_cv_prog_cc_g+:} false; then : |
| 5025 | $as_echo_n "(cached) " >&6 |
| 5026 | else |
| 5027 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 5028 | ac_c_werror_flag=yes |
| 5029 | ac_cv_prog_cc_g=no |
| 5030 | CFLAGS="-g" |
| 5031 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5032 | /* end confdefs.h. */ |
| 5033 | |
| 5034 | int main (void) |
| 5035 | { |
| 5036 | |
| 5037 | ; |
| 5038 | return 0; |
| 5039 | } |
| 5040 | _ACEOF |
| 5041 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5042 | ac_cv_prog_cc_g=yes |
| 5043 | else |
| 5044 | CFLAGS="" |
| 5045 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5046 | /* end confdefs.h. */ |
| 5047 | |
| 5048 | int main (void) |
| 5049 | { |
| 5050 | |
| 5051 | ; |
| 5052 | return 0; |
| 5053 | } |
| 5054 | _ACEOF |
| 5055 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5056 | |
| 5057 | else |
| 5058 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5059 | CFLAGS="-g" |
| 5060 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5061 | /* end confdefs.h. */ |
| 5062 | |
| 5063 | int main (void) |
| 5064 | { |
| 5065 | |
| 5066 | ; |
| 5067 | return 0; |
| 5068 | } |
| 5069 | _ACEOF |
| 5070 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5071 | ac_cv_prog_cc_g=yes |
| 5072 | fi |
| 5073 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5074 | fi |
| 5075 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5076 | fi |
| 5077 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5078 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5079 | fi |
| 5080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 5081 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 5082 | if test "$ac_test_CFLAGS" = set; then |
| 5083 | CFLAGS=$ac_save_CFLAGS |
| 5084 | elif test $ac_cv_prog_cc_g = yes; then |
| 5085 | if test "$GCC" = yes; then |
| 5086 | CFLAGS="-g -O2" |
| 5087 | else |
| 5088 | CFLAGS="-g" |
| 5089 | fi |
| 5090 | else |
| 5091 | if test "$GCC" = yes; then |
| 5092 | CFLAGS="-O2" |
| 5093 | else |
| 5094 | CFLAGS= |
| 5095 | fi |
| 5096 | fi |
| 5097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 5098 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 5099 | if ${ac_cv_prog_cc_c89+:} false; then : |
| 5100 | $as_echo_n "(cached) " >&6 |
| 5101 | else |
| 5102 | ac_cv_prog_cc_c89=no |
| 5103 | ac_save_CC=$CC |
| 5104 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5105 | /* end confdefs.h. */ |
| 5106 | #include <stdarg.h> |
| 5107 | #include <stdio.h> |
| 5108 | struct stat; |
| 5109 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 5110 | struct buf { int x; }; |
| 5111 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 5112 | static char *e (p, i) |
| 5113 | char **p; |
| 5114 | int i; |
| 5115 | { |
| 5116 | return p[i]; |
| 5117 | } |
| 5118 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 5119 | { |
| 5120 | char *s; |
| 5121 | va_list v; |
| 5122 | va_start (v,p); |
| 5123 | s = g (p, va_arg (v,int)); |
| 5124 | va_end (v); |
| 5125 | return s; |
| 5126 | } |
| 5127 | |
| 5128 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 5129 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 5130 | These don't provoke an error unfortunately, instead are silently treated |
| 5131 | as 'x'. The following induces an error, until -std is added to get |
| 5132 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 5133 | array size at least. It's necessary to write '\x00'==0 to get something |
| 5134 | that's true only with -std. */ |
| 5135 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 5136 | |
| 5137 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 5138 | inside strings and character constants. */ |
| 5139 | #define FOO(x) 'x' |
| 5140 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 5141 | |
| 5142 | int test (int i, double x); |
| 5143 | struct s1 {int (*f) (int a);}; |
| 5144 | struct s2 {int (*f) (double a);}; |
| 5145 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 5146 | int argc; |
| 5147 | char **argv; |
| 5148 | int main (void) |
| 5149 | { |
| 5150 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 5151 | ; |
| 5152 | return 0; |
| 5153 | } |
| 5154 | _ACEOF |
| 5155 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 5156 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 5157 | do |
| 5158 | CC="$ac_save_CC $ac_arg" |
| 5159 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5160 | ac_cv_prog_cc_c89=$ac_arg |
| 5161 | fi |
| 5162 | rm -f core conftest.err conftest.$ac_objext |
| 5163 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 5164 | done |
| 5165 | rm -f conftest.$ac_ext |
| 5166 | CC=$ac_save_CC |
| 5167 | |
| 5168 | fi |
| 5169 | # AC_CACHE_VAL |
| 5170 | case "x$ac_cv_prog_cc_c89" in |
| 5171 | x) |
| 5172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 5173 | $as_echo "none needed" >&6; } ;; |
| 5174 | xno) |
| 5175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 5176 | $as_echo "unsupported" >&6; } ;; |
| 5177 | *) |
| 5178 | CC="$CC $ac_cv_prog_cc_c89" |
| 5179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 5180 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 5181 | esac |
| 5182 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 5183 | |
| 5184 | fi |
| 5185 | |
| 5186 | ac_ext=c |
| 5187 | ac_cpp='$CPP $CPPFLAGS' |
| 5188 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5189 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5190 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5191 | |
| 5192 | ac_ext=c |
| 5193 | ac_cpp='$CPP $CPPFLAGS' |
| 5194 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5195 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5196 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
| 5198 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } |
| 5199 | if ${am_cv_prog_cc_c_o+:} false; then : |
| 5200 | $as_echo_n "(cached) " >&6 |
| 5201 | else |
| 5202 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5203 | /* end confdefs.h. */ |
| 5204 | |
| 5205 | int main (void) |
| 5206 | { |
| 5207 | |
| 5208 | ; |
| 5209 | return 0; |
| 5210 | } |
| 5211 | _ACEOF |
| 5212 | # Make sure it works both with $CC and with simple cc. |
| 5213 | # Following AC_PROG_CC_C_O, we do the test twice because some |
| 5214 | # compilers refuse to overwrite an existing .o file with -o, |
| 5215 | # though they will create one. |
| 5216 | am_cv_prog_cc_c_o=yes |
| 5217 | for am_i in 1 2; do |
| 5218 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 |
| 5219 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 |
| 5220 | ac_status=$? |
| 5221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5222 | (exit $ac_status); } \ |
| 5223 | && test -f conftest2.$ac_objext; then |
| 5224 | : OK |
| 5225 | else |
| 5226 | am_cv_prog_cc_c_o=no |
| 5227 | break |
| 5228 | fi |
| 5229 | done |
| 5230 | rm -f core conftest* |
| 5231 | unset am_i |
| 5232 | fi |
| 5233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
| 5234 | $as_echo "$am_cv_prog_cc_c_o" >&6; } |
| 5235 | if test "$am_cv_prog_cc_c_o" != yes; then |
| 5236 | # Losing compiler, so override with the script. |
| 5237 | # FIXME: It is wrong to rewrite CC. |
| 5238 | # But if we don't then we get into trouble of one sort or another. |
| 5239 | # A longer-term fix would be to have automake use am__CC in this case, |
| 5240 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 5241 | CC="$am_aux_dir/compile $CC" |
| 5242 | fi |
| 5243 | ac_ext=c |
| 5244 | ac_cpp='$CPP $CPPFLAGS' |
| 5245 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5246 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5247 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5248 | |
| 5249 | |
| 5250 | |
| 5251 | ac_ext=c |
| 5252 | ac_cpp='$CPP $CPPFLAGS' |
| 5253 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5254 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5255 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 5257 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 5258 | # On Suns, sometimes $CPP names a directory. |
| 5259 | if test -n "$CPP" && test -d "$CPP"; then |
| 5260 | CPP= |
| 5261 | fi |
| 5262 | if test -z "$CPP"; then |
| 5263 | if ${ac_cv_prog_CPP+:} false; then : |
| 5264 | $as_echo_n "(cached) " >&6 |
| 5265 | else |
| 5266 | # Double quotes because CPP needs to be expanded |
| 5267 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5268 | do |
| 5269 | ac_preproc_ok=false |
| 5270 | for ac_c_preproc_warn_flag in '' yes |
| 5271 | do |
| 5272 | # Use a header file that comes with gcc, so configuring glibc |
| 5273 | # with a fresh cross-compiler works. |
| 5274 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5275 | # <limits.h> exists even on freestanding compilers. |
| 5276 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5277 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5279 | /* end confdefs.h. */ |
| 5280 | #ifdef __STDC__ |
| 5281 | # include <limits.h> |
| 5282 | #else |
| 5283 | # include <assert.h> |
| 5284 | #endif |
| 5285 | Syntax error |
| 5286 | _ACEOF |
| 5287 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 5288 | |
| 5289 | else |
| 5290 | # Broken: fails on valid input. |
| 5291 | continue |
| 5292 | fi |
| 5293 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 5294 | |
| 5295 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5296 | # can be detected and how. |
| 5297 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5298 | /* end confdefs.h. */ |
| 5299 | #include <ac_nonexistent.h> |
| 5300 | _ACEOF |
| 5301 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 5302 | # Broken: success on invalid input. |
| 5303 | continue |
| 5304 | else |
| 5305 | # Passes both tests. |
| 5306 | ac_preproc_ok=: |
| 5307 | break |
| 5308 | fi |
| 5309 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 5310 | |
| 5311 | done |
| 5312 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5313 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 5314 | if $ac_preproc_ok; then : |
| 5315 | break |
| 5316 | fi |
| 5317 | |
| 5318 | done |
| 5319 | ac_cv_prog_CPP=$CPP |
| 5320 | |
| 5321 | fi |
| 5322 | CPP=$ac_cv_prog_CPP |
| 5323 | else |
| 5324 | ac_cv_prog_CPP=$CPP |
| 5325 | fi |
| 5326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 5327 | $as_echo "$CPP" >&6; } |
| 5328 | ac_preproc_ok=false |
| 5329 | for ac_c_preproc_warn_flag in '' yes |
| 5330 | do |
| 5331 | # Use a header file that comes with gcc, so configuring glibc |
| 5332 | # with a fresh cross-compiler works. |
| 5333 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5334 | # <limits.h> exists even on freestanding compilers. |
| 5335 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5336 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5337 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5338 | /* end confdefs.h. */ |
| 5339 | #ifdef __STDC__ |
| 5340 | # include <limits.h> |
| 5341 | #else |
| 5342 | # include <assert.h> |
| 5343 | #endif |
| 5344 | Syntax error |
| 5345 | _ACEOF |
| 5346 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 5347 | |
| 5348 | else |
| 5349 | # Broken: fails on valid input. |
| 5350 | continue |
| 5351 | fi |
| 5352 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 5353 | |
| 5354 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5355 | # can be detected and how. |
| 5356 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5357 | /* end confdefs.h. */ |
| 5358 | #include <ac_nonexistent.h> |
| 5359 | _ACEOF |
| 5360 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 5361 | # Broken: success on invalid input. |
| 5362 | continue |
| 5363 | else |
| 5364 | # Passes both tests. |
| 5365 | ac_preproc_ok=: |
| 5366 | break |
| 5367 | fi |
| 5368 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 5369 | |
| 5370 | done |
| 5371 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5372 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 5373 | if $ac_preproc_ok; then : |
| 5374 | |
| 5375 | else |
| 5376 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5377 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5378 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 5379 | See \`config.log' for more details" "$LINENO" 5; } |
| 5380 | fi |
| 5381 | |
| 5382 | ac_ext=c |
| 5383 | ac_cpp='$CPP $CPPFLAGS' |
| 5384 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5385 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5386 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5387 | |
| 5388 | |
| 5389 | IFS=$xc_prog_cc_prev_IFS |
| 5390 | LIBS=$xc_prog_cc_prev_LIBS |
| 5391 | CFLAGS=$xc_prog_cc_prev_CFLAGS |
| 5392 | LDFLAGS=$xc_prog_cc_prev_LDFLAGS |
| 5393 | CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS |
| 5394 | |
| 5395 | |
| 5396 | |
| 5397 | |
| 5398 | |
| 5399 | am__api_version='1.15' |
| 5400 | |
| 5401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| 5402 | $as_echo_n "checking whether build environment is sane... " >&6; } |
| 5403 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 5404 | # name. Accept space and tab only in the latter. |
| 5405 | am_lf=' |
| 5406 | ' |
| 5407 | case `pwd` in |
| 5408 | *[\\\"\#\$\&\'\`$am_lf]*) |
| 5409 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
| 5410 | esac |
| 5411 | case $srcdir in |
| 5412 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
| 5413 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
| 5414 | esac |
| 5415 | |
| 5416 | # Do 'set' in a subshell so we don't clobber the current shell's |
| 5417 | # arguments. Must try -L first in case configure is actually a |
| 5418 | # symlink; some systems play weird games with the mod time of symlinks |
| 5419 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 5420 | # directory). |
| 5421 | if ( |
| 5422 | am_has_slept=no |
| 5423 | for am_try in 1 2; do |
| 5424 | echo "timestamp, slept: $am_has_slept" > conftest.file |
| 5425 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 5426 | if test "$*" = "X"; then |
| 5427 | # -L didn't work. |
| 5428 | set X `ls -t "$srcdir/configure" conftest.file` |
| 5429 | fi |
| 5430 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 5431 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 5432 | |
| 5433 | # If neither matched, then we have a broken ls. This can happen |
| 5434 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 5435 | # broken ls alias from the environment. This has actually |
| 5436 | # happened. Such a system could not be considered "sane". |
| 5437 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
| 5438 | alias in your environment" "$LINENO" 5 |
| 5439 | fi |
| 5440 | if test "$2" = conftest.file || test $am_try -eq 2; then |
| 5441 | break |
| 5442 | fi |
| 5443 | # Just in case. |
| 5444 | sleep 1 |
| 5445 | am_has_slept=yes |
| 5446 | done |
| 5447 | test "$2" = conftest.file |
| 5448 | ) |
| 5449 | then |
| 5450 | # Ok. |
| 5451 | : |
| 5452 | else |
| 5453 | as_fn_error $? "newly created file is older than distributed files! |
| 5454 | Check your system clock" "$LINENO" 5 |
| 5455 | fi |
| 5456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5457 | $as_echo "yes" >&6; } |
| 5458 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
| 5459 | # generated files are strictly newer. |
| 5460 | am_sleep_pid= |
| 5461 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then |
| 5462 | ( sleep 1 ) & |
| 5463 | am_sleep_pid=$! |
| 5464 | fi |
| 5465 | |
| 5466 | rm -f conftest.file |
| 5467 | |
| 5468 | test "$program_prefix" != NONE && |
| 5469 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 5470 | # Use a double $ so make ignores it. |
| 5471 | test "$program_suffix" != NONE && |
| 5472 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
| 5473 | # Double any \ or $. |
| 5474 | # By default was `s,x,x', remove it if useless. |
| 5475 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 5476 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
| 5477 | |
| 5478 | if test x"${MISSING+set}" != xset; then |
| 5479 | case $am_aux_dir in |
| 5480 | *\ * | *\ *) |
| 5481 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 5482 | *) |
| 5483 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 5484 | esac |
| 5485 | fi |
| 5486 | # Use eval to expand $SHELL |
| 5487 | if eval "$MISSING --is-lightweight"; then |
| 5488 | am_missing_run="$MISSING " |
| 5489 | else |
| 5490 | am_missing_run= |
| 5491 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
| 5492 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} |
| 5493 | fi |
| 5494 | |
| 5495 | if test x"${install_sh+set}" != xset; then |
| 5496 | case $am_aux_dir in |
| 5497 | *\ * | *\ *) |
| 5498 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 5499 | *) |
| 5500 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 5501 | esac |
| 5502 | fi |
| 5503 | |
| 5504 | # Installed binaries are usually stripped using 'strip' when the user |
| 5505 | # run "make install-strip". However 'strip' might not be the right |
| 5506 | # tool to use in cross-compilation environments, therefore Automake |
| 5507 | # will honor the 'STRIP' environment variable to overrule this program. |
| 5508 | if test "$cross_compiling" != no; then |
| 5509 | if test -n "$ac_tool_prefix"; then |
| 5510 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 5511 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 5512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5513 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5514 | if ${ac_cv_prog_STRIP+:} false; then : |
| 5515 | $as_echo_n "(cached) " >&6 |
| 5516 | else |
| 5517 | if test -n "$STRIP"; then |
| 5518 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 5519 | else |
| 5520 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5521 | for as_dir in $PATH |
| 5522 | do |
| 5523 | IFS=$as_save_IFS |
| 5524 | test -z "$as_dir" && as_dir=. |
| 5525 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5526 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5527 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 5528 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5529 | break 2 |
| 5530 | fi |
| 5531 | done |
| 5532 | done |
| 5533 | IFS=$as_save_IFS |
| 5534 | |
| 5535 | fi |
| 5536 | fi |
| 5537 | STRIP=$ac_cv_prog_STRIP |
| 5538 | if test -n "$STRIP"; then |
| 5539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 5540 | $as_echo "$STRIP" >&6; } |
| 5541 | else |
| 5542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5543 | $as_echo "no" >&6; } |
| 5544 | fi |
| 5545 | |
| 5546 | |
| 5547 | fi |
| 5548 | if test -z "$ac_cv_prog_STRIP"; then |
| 5549 | ac_ct_STRIP=$STRIP |
| 5550 | # Extract the first word of "strip", so it can be a program name with args. |
| 5551 | set dummy strip; ac_word=$2 |
| 5552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5553 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5554 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
| 5555 | $as_echo_n "(cached) " >&6 |
| 5556 | else |
| 5557 | if test -n "$ac_ct_STRIP"; then |
| 5558 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 5559 | else |
| 5560 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5561 | for as_dir in $PATH |
| 5562 | do |
| 5563 | IFS=$as_save_IFS |
| 5564 | test -z "$as_dir" && as_dir=. |
| 5565 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5566 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5567 | ac_cv_prog_ac_ct_STRIP="strip" |
| 5568 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5569 | break 2 |
| 5570 | fi |
| 5571 | done |
| 5572 | done |
| 5573 | IFS=$as_save_IFS |
| 5574 | |
| 5575 | fi |
| 5576 | fi |
| 5577 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 5578 | if test -n "$ac_ct_STRIP"; then |
| 5579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 5580 | $as_echo "$ac_ct_STRIP" >&6; } |
| 5581 | else |
| 5582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5583 | $as_echo "no" >&6; } |
| 5584 | fi |
| 5585 | |
| 5586 | if test "x$ac_ct_STRIP" = x; then |
| 5587 | STRIP=":" |
| 5588 | else |
| 5589 | case $cross_compiling:$ac_tool_warned in |
| 5590 | yes:) |
| 5591 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5592 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5593 | ac_tool_warned=yes ;; |
| 5594 | esac |
| 5595 | STRIP=$ac_ct_STRIP |
| 5596 | fi |
| 5597 | else |
| 5598 | STRIP="$ac_cv_prog_STRIP" |
| 5599 | fi |
| 5600 | |
| 5601 | fi |
| 5602 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 5603 | |
| 5604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 5605 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
| 5606 | if test -z "$MKDIR_P"; then |
| 5607 | if ${ac_cv_path_mkdir+:} false; then : |
| 5608 | $as_echo_n "(cached) " >&6 |
| 5609 | else |
| 5610 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5611 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 5612 | do |
| 5613 | IFS=$as_save_IFS |
| 5614 | test -z "$as_dir" && as_dir=. |
| 5615 | for ac_prog in mkdir gmkdir; do |
| 5616 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5617 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
| 5618 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 5619 | 'mkdir (GNU coreutils) '* | \ |
| 5620 | 'mkdir (coreutils) '* | \ |
| 5621 | 'mkdir (fileutils) '4.1*) |
| 5622 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 5623 | break 3;; |
| 5624 | esac |
| 5625 | done |
| 5626 | done |
| 5627 | done |
| 5628 | IFS=$as_save_IFS |
| 5629 | |
| 5630 | fi |
| 5631 | |
| 5632 | test -d ./--version && rmdir ./--version |
| 5633 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 5634 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 5635 | else |
| 5636 | # As a last resort, use the slow shell script. Don't cache a |
| 5637 | # value for MKDIR_P within a source directory, because that will |
| 5638 | # break other packages using the cache if that directory is |
| 5639 | # removed, or if the value is a relative name. |
| 5640 | MKDIR_P="$ac_install_sh -d" |
| 5641 | fi |
| 5642 | fi |
| 5643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 5644 | $as_echo "$MKDIR_P" >&6; } |
| 5645 | |
| 5646 | for ac_prog in gawk mawk nawk awk |
| 5647 | do |
| 5648 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5649 | set dummy $ac_prog; ac_word=$2 |
| 5650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5651 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5652 | if ${ac_cv_prog_AWK+:} false; then : |
| 5653 | $as_echo_n "(cached) " >&6 |
| 5654 | else |
| 5655 | if test -n "$AWK"; then |
| 5656 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 5657 | else |
| 5658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5659 | for as_dir in $PATH |
| 5660 | do |
| 5661 | IFS=$as_save_IFS |
| 5662 | test -z "$as_dir" && as_dir=. |
| 5663 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5664 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5665 | ac_cv_prog_AWK="$ac_prog" |
| 5666 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5667 | break 2 |
| 5668 | fi |
| 5669 | done |
| 5670 | done |
| 5671 | IFS=$as_save_IFS |
| 5672 | |
| 5673 | fi |
| 5674 | fi |
| 5675 | AWK=$ac_cv_prog_AWK |
| 5676 | if test -n "$AWK"; then |
| 5677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 5678 | $as_echo "$AWK" >&6; } |
| 5679 | else |
| 5680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5681 | $as_echo "no" >&6; } |
| 5682 | fi |
| 5683 | |
| 5684 | |
| 5685 | test -n "$AWK" && break |
| 5686 | done |
| 5687 | |
| 5688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 5689 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 5690 | set x ${MAKE-make} |
| 5691 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 5692 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
| 5693 | $as_echo_n "(cached) " >&6 |
| 5694 | else |
| 5695 | cat >conftest.make <<\_ACEOF |
| 5696 | SHELL = /bin/sh |
| 5697 | all: |
| 5698 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 5699 | _ACEOF |
| 5700 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| 5701 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 5702 | *@@@%%%=?*=@@@%%%*) |
| 5703 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 5704 | *) |
| 5705 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 5706 | esac |
| 5707 | rm -f conftest.make |
| 5708 | fi |
| 5709 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 5710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5711 | $as_echo "yes" >&6; } |
| 5712 | SET_MAKE= |
| 5713 | else |
| 5714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5715 | $as_echo "no" >&6; } |
| 5716 | SET_MAKE="MAKE=${MAKE-make}" |
| 5717 | fi |
| 5718 | |
| 5719 | rm -rf .tst 2>/dev/null |
| 5720 | mkdir .tst 2>/dev/null |
| 5721 | if test -d .tst; then |
| 5722 | am__leading_dot=. |
| 5723 | else |
| 5724 | am__leading_dot=_ |
| 5725 | fi |
| 5726 | rmdir .tst 2>/dev/null |
| 5727 | |
| 5728 | DEPDIR="${am__leading_dot}deps" |
| 5729 | |
| 5730 | ac_config_commands="$ac_config_commands depfiles" |
| 5731 | |
| 5732 | |
| 5733 | am_make=${MAKE-make} |
| 5734 | cat > confinc << 'END' |
| 5735 | am__doit: |
| 5736 | @echo this is the am__doit target |
| 5737 | .PHONY: am__doit |
| 5738 | END |
| 5739 | # If we don't find an include directive, just comment out the code. |
| 5740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
| 5741 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
| 5742 | am__include="#" |
| 5743 | am__quote= |
| 5744 | _am_result=none |
| 5745 | # First try GNU make style include. |
| 5746 | echo "include confinc" > confmf |
| 5747 | # Ignore all kinds of additional output from 'make'. |
| 5748 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 5749 | *the\ am__doit\ target*) |
| 5750 | am__include=include |
| 5751 | am__quote= |
| 5752 | _am_result=GNU |
| 5753 | ;; |
| 5754 | esac |
| 5755 | # Now try BSD make style include. |
| 5756 | if test "$am__include" = "#"; then |
| 5757 | echo '.include "confinc"' > confmf |
| 5758 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 5759 | *the\ am__doit\ target*) |
| 5760 | am__include=.include |
| 5761 | am__quote="\"" |
| 5762 | _am_result=BSD |
| 5763 | ;; |
| 5764 | esac |
| 5765 | fi |
| 5766 | |
| 5767 | |
| 5768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
| 5769 | $as_echo "$_am_result" >&6; } |
| 5770 | rm -f confinc confmf |
| 5771 | |
| 5772 | # Check whether --enable-dependency-tracking was given. |
| 5773 | if test "${enable_dependency_tracking+set}" = set; then : |
| 5774 | enableval=$enable_dependency_tracking; |
| 5775 | fi |
| 5776 | |
| 5777 | if test "x$enable_dependency_tracking" != xno; then |
| 5778 | am_depcomp="$ac_aux_dir/depcomp" |
| 5779 | AMDEPBACKSLASH='\' |
| 5780 | am__nodep='_no' |
| 5781 | fi |
| 5782 | if test "x$enable_dependency_tracking" != xno; then |
| 5783 | AMDEP_TRUE= |
| 5784 | AMDEP_FALSE='#' |
| 5785 | else |
| 5786 | AMDEP_TRUE='#' |
| 5787 | AMDEP_FALSE= |
| 5788 | fi |
| 5789 | |
| 5790 | |
| 5791 | ## --------------------------------------- ## |
| 5792 | ## Start of automake initialization code ## |
| 5793 | ## --------------------------------------- ## |
| 5794 | |
| 5795 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 5796 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 5797 | # is not polluted with repeated "-I." |
| 5798 | am__isrc=' -I$(srcdir)' |
| 5799 | # test to see if srcdir already configured |
| 5800 | if test -f $srcdir/config.status; then |
| 5801 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
| 5802 | fi |
| 5803 | fi |
| 5804 | |
| 5805 | # test whether we have cygpath |
| 5806 | if test -z "$CYGPATH_W"; then |
| 5807 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 5808 | CYGPATH_W='cygpath -w' |
| 5809 | else |
| 5810 | CYGPATH_W=echo |
| 5811 | fi |
| 5812 | fi |
| 5813 | |
| 5814 | |
| 5815 | # Define the identity of the package. |
| 5816 | PACKAGE='curl' |
| 5817 | VERSION='-' |
| 5818 | |
| 5819 | |
| 5820 | cat >>confdefs.h <<_ACEOF |
| 5821 | #define PACKAGE "$PACKAGE" |
| 5822 | _ACEOF |
| 5823 | |
| 5824 | |
| 5825 | cat >>confdefs.h <<_ACEOF |
| 5826 | #define VERSION "$VERSION" |
| 5827 | _ACEOF |
| 5828 | |
| 5829 | # Some tools Automake needs. |
| 5830 | |
| 5831 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 5832 | |
| 5833 | |
| 5834 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 5835 | |
| 5836 | |
| 5837 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 5838 | |
| 5839 | |
| 5840 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 5841 | |
| 5842 | |
| 5843 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 5844 | |
| 5845 | # For better backward compatibility. To be removed once Automake 1.9.x |
| 5846 | # dies out for good. For more background, see: |
| 5847 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
| 5848 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
| 5849 | mkdir_p='$(MKDIR_P)' |
| 5850 | |
| 5851 | # We need awk for the "check" target (and possibly the TAP driver). The |
| 5852 | # system "awk" is bad on some platforms. |
| 5853 | # Always define AMTAR for backward compatibility. Yes, it's still used |
| 5854 | # in the wild :-( We should find a proper way to deprecate it ... |
| 5855 | AMTAR='$${TAR-tar}' |
| 5856 | |
| 5857 | |
| 5858 | # We'll loop over all known methods to create a tar archive until one works. |
| 5859 | _am_tools='gnutar pax cpio none' |
| 5860 | |
| 5861 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
| 5862 | |
| 5863 | |
| 5864 | |
| 5865 | |
| 5866 | |
| 5867 | depcc="$CC" am_compiler_list= |
| 5868 | |
| 5869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 5870 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 5871 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
| 5872 | $as_echo_n "(cached) " >&6 |
| 5873 | else |
| 5874 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 5875 | # We make a subdir and do the tests there. Otherwise we can end up |
| 5876 | # making bogus files that we don't know about and never remove. For |
| 5877 | # instance it was reported that on HP-UX the gcc test will end up |
| 5878 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 5879 | # in D". |
| 5880 | rm -rf conftest.dir |
| 5881 | mkdir conftest.dir |
| 5882 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 5883 | # using a relative directory. |
| 5884 | cp "$am_depcomp" conftest.dir |
| 5885 | cd conftest.dir |
| 5886 | # We will build objects and dependencies in a subdirectory because |
| 5887 | # it helps to detect inapplicable dependency modes. For instance |
| 5888 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 5889 | # side effect of compilation, but ICC will put the dependencies in |
| 5890 | # the current directory while Tru64 will put them in the object |
| 5891 | # directory. |
| 5892 | mkdir sub |
| 5893 | |
| 5894 | am_cv_CC_dependencies_compiler_type=none |
| 5895 | if test "$am_compiler_list" = ""; then |
| 5896 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 5897 | fi |
| 5898 | am__universal=false |
| 5899 | case " $depcc " in #( |
| 5900 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 5901 | esac |
| 5902 | |
| 5903 | for depmode in $am_compiler_list; do |
| 5904 | # Setup a source with many dependencies, because some compilers |
| 5905 | # like to wrap large dependency lists on column 80 (with \), and |
| 5906 | # we should not choose a depcomp mode which is confused by this. |
| 5907 | # |
| 5908 | # We need to recreate these files for each test, as the compiler may |
| 5909 | # overwrite some of them when testing with obscure command lines. |
| 5910 | # This happens at least with the AIX C compiler. |
| 5911 | : > sub/conftest.c |
| 5912 | for i in 1 2 3 4 5 6; do |
| 5913 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 5914 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 5915 | # Solaris 10 /bin/sh. |
| 5916 | echo '/* dummy */' > sub/conftst$i.h |
| 5917 | done |
| 5918 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 5919 | |
| 5920 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
| 5921 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 5922 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 5923 | # versions had trouble with output in subdirs. |
| 5924 | am__obj=sub/conftest.${OBJEXT-o} |
| 5925 | am__minus_obj="-o $am__obj" |
| 5926 | case $depmode in |
| 5927 | gcc) |
| 5928 | # This depmode causes a compiler race in universal mode. |
| 5929 | test "$am__universal" = false || continue |
| 5930 | ;; |
| 5931 | nosideeffect) |
| 5932 | # After this tag, mechanisms are not by side-effect, so they'll |
| 5933 | # only be used when explicitly requested. |
| 5934 | if test "x$enable_dependency_tracking" = xyes; then |
| 5935 | continue |
| 5936 | else |
| 5937 | break |
| 5938 | fi |
| 5939 | ;; |
| 5940 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 5941 | # This compiler won't grok '-c -o', but also, the minuso test has |
| 5942 | # not run yet. These depmodes are late enough in the game, and |
| 5943 | # so weak that their functioning should not be impacted. |
| 5944 | am__obj=conftest.${OBJEXT-o} |
| 5945 | am__minus_obj= |
| 5946 | ;; |
| 5947 | none) break ;; |
| 5948 | esac |
| 5949 | if depmode=$depmode \ |
| 5950 | source=sub/conftest.c object=$am__obj \ |
| 5951 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 5952 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 5953 | >/dev/null 2>conftest.err && |
| 5954 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 5955 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 5956 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 5957 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 5958 | # icc doesn't choke on unknown options, it will just issue warnings |
| 5959 | # or remarks (even with -Werror). So we grep stderr for any message |
| 5960 | # that says an option was ignored or not supported. |
| 5961 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 5962 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 5963 | # The diagnosis changed in icc 8.0: |
| 5964 | # icc: Command line remark: option '-MP' not supported |
| 5965 | if (grep 'ignoring option' conftest.err || |
| 5966 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 5967 | am_cv_CC_dependencies_compiler_type=$depmode |
| 5968 | break |
| 5969 | fi |
| 5970 | fi |
| 5971 | done |
| 5972 | |
| 5973 | cd .. |
| 5974 | rm -rf conftest.dir |
| 5975 | else |
| 5976 | am_cv_CC_dependencies_compiler_type=none |
| 5977 | fi |
| 5978 | |
| 5979 | fi |
| 5980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 5981 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 5982 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 5983 | |
| 5984 | if |
| 5985 | test "x$enable_dependency_tracking" != xno \ |
| 5986 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 5987 | am__fastdepCC_TRUE= |
| 5988 | am__fastdepCC_FALSE='#' |
| 5989 | else |
| 5990 | am__fastdepCC_TRUE='#' |
| 5991 | am__fastdepCC_FALSE= |
| 5992 | fi |
| 5993 | |
| 5994 | |
| 5995 | |
| 5996 | # POSIX will say in a future version that running "rm -f" with no argument |
| 5997 | # is OK; and we want to be able to make that assumption in our Makefile |
| 5998 | # recipes. So use an aggressive probe to check that the usage we want is |
| 5999 | # actually supported "in the wild" to an acceptable degree. |
| 6000 | # See automake bug#10828. |
| 6001 | # To make any issue more visible, cause the running configure to be aborted |
| 6002 | # by default if the 'rm' program in use doesn't match our expectations; the |
| 6003 | # user can still override this though. |
| 6004 | if rm -f && rm -fr && rm -rf; then : OK; else |
| 6005 | cat >&2 <<'END' |
| 6006 | Oops! |
| 6007 | |
| 6008 | Your 'rm' program seems unable to run without file operands specified |
| 6009 | on the command line, even when the '-f' option is present. This is contrary |
| 6010 | to the behaviour of most rm programs out there, and not conforming with |
| 6011 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> |
| 6012 | |
| 6013 | Please tell bug-automake@gnu.org about your system, including the value |
| 6014 | of your $PATH and any error possibly output before this message. This |
| 6015 | can help us improve future automake versions. |
| 6016 | |
| 6017 | END |
| 6018 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then |
| 6019 | echo 'Configuration will proceed anyway, since you have set the' >&2 |
| 6020 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 |
| 6021 | echo >&2 |
| 6022 | else |
| 6023 | cat >&2 <<'END' |
| 6024 | Aborting the configuration process, to ensure you take notice of the issue. |
| 6025 | |
| 6026 | You can download and install GNU coreutils to get an 'rm' implementation |
| 6027 | that behaves properly: <http://www.gnu.org/software/coreutils/>. |
| 6028 | |
| 6029 | If you want to complete the configuration process using your problematic |
| 6030 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM |
| 6031 | to "yes", and re-run configure. |
| 6032 | |
| 6033 | END |
| 6034 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 |
| 6035 | fi |
| 6036 | fi |
| 6037 | |
| 6038 | ## ------------------------------------- ## |
| 6039 | ## End of automake initialization code ## |
| 6040 | ## ------------------------------------- ## |
| 6041 | |
| 6042 | |
| 6043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5 |
| 6044 | $as_echo_n "checking curl version... " >&6; } |
| 6045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5 |
| 6046 | $as_echo "$CURLVERSION" >&6; } |
| 6047 | |
| 6048 | |
| 6049 | |
| 6050 | VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/curl/curlver.h` |
| 6051 | |
| 6052 | |
| 6053 | PKGADD_PKG="HAXXcurl" |
| 6054 | PKGADD_NAME="curl - a client that groks URLs" |
| 6055 | PKGADD_VENDOR="curl.haxx.se" |
| 6056 | |
| 6057 | |
| 6058 | |
| 6059 | |
| 6060 | curl_ssl_msg="no (--with-{ssl,gnutls,nss,polarssl,mbedtls,cyassl,axtls,winssl,darwinssl} )" |
| 6061 | curl_ssh_msg="no (--with-libssh2)" |
| 6062 | curl_zlib_msg="no (--with-zlib)" |
| 6063 | curl_gss_msg="no (--with-gssapi)" |
| 6064 | curl_tls_srp_msg="no (--enable-tls-srp)" |
| 6065 | curl_res_msg="default (--enable-ares / --enable-threaded-resolver)" |
| 6066 | curl_ipv6_msg="no (--enable-ipv6)" |
| 6067 | curl_unix_sockets_msg="no (--enable-unix-sockets)" |
| 6068 | curl_idn_msg="no (--with-{libidn2,winidn})" |
| 6069 | curl_manual_msg="no (--enable-manual)" |
| 6070 | curl_libcurl_msg="enabled (--disable-libcurl-option)" |
| 6071 | curl_verbose_msg="enabled (--disable-verbose)" |
| 6072 | curl_sspi_msg="no (--enable-sspi)" |
| 6073 | curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)" |
| 6074 | curl_ldaps_msg="no (--enable-ldaps)" |
| 6075 | curl_rtsp_msg="no (--enable-rtsp)" |
| 6076 | curl_rtmp_msg="no (--with-librtmp)" |
| 6077 | curl_mtlnk_msg="no (--with-libmetalink)" |
| 6078 | curl_psl_msg="no (--with-libpsl)" |
| 6079 | |
| 6080 | init_ssl_msg=${curl_ssl_msg} |
| 6081 | |
| 6082 | INITIAL_LDFLAGS=$LDFLAGS |
| 6083 | INITIAL_LIBS=$LIBS |
| 6084 | |
| 6085 | |
| 6086 | # Make sure we can run config.sub. |
| 6087 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 6088 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
| 6089 | |
| 6090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 6091 | $as_echo_n "checking build system type... " >&6; } |
| 6092 | if ${ac_cv_build+:} false; then : |
| 6093 | $as_echo_n "(cached) " >&6 |
| 6094 | else |
| 6095 | ac_build_alias=$build_alias |
| 6096 | test "x$ac_build_alias" = x && |
| 6097 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 6098 | test "x$ac_build_alias" = x && |
| 6099 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
| 6100 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 6101 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
| 6102 | |
| 6103 | fi |
| 6104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 6105 | $as_echo "$ac_cv_build" >&6; } |
| 6106 | case $ac_cv_build in |
| 6107 | *-*-*) ;; |
| 6108 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
| 6109 | esac |
| 6110 | build=$ac_cv_build |
| 6111 | ac_save_IFS=$IFS; IFS='-' |
| 6112 | set x $ac_cv_build |
| 6113 | shift |
| 6114 | build_cpu=$1 |
| 6115 | build_vendor=$2 |
| 6116 | shift; shift |
| 6117 | # Remember, the first character of IFS is used to create $*, |
| 6118 | # except with old shells: |
| 6119 | build_os=$* |
| 6120 | IFS=$ac_save_IFS |
| 6121 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 6122 | |
| 6123 | |
| 6124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 6125 | $as_echo_n "checking host system type... " >&6; } |
| 6126 | if ${ac_cv_host+:} false; then : |
| 6127 | $as_echo_n "(cached) " >&6 |
| 6128 | else |
| 6129 | if test "x$host_alias" = x; then |
| 6130 | ac_cv_host=$ac_cv_build |
| 6131 | else |
| 6132 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 6133 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
| 6134 | fi |
| 6135 | |
| 6136 | fi |
| 6137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 6138 | $as_echo "$ac_cv_host" >&6; } |
| 6139 | case $ac_cv_host in |
| 6140 | *-*-*) ;; |
| 6141 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
| 6142 | esac |
| 6143 | host=$ac_cv_host |
| 6144 | ac_save_IFS=$IFS; IFS='-' |
| 6145 | set x $ac_cv_host |
| 6146 | shift |
| 6147 | host_cpu=$1 |
| 6148 | host_vendor=$2 |
| 6149 | shift; shift |
| 6150 | # Remember, the first character of IFS is used to create $*, |
| 6151 | # except with old shells: |
| 6152 | host_os=$* |
| 6153 | IFS=$ac_save_IFS |
| 6154 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 6155 | |
| 6156 | |
| 6157 | |
| 6158 | cat >>confdefs.h <<_ACEOF |
| 6159 | #define OS "${host}" |
| 6160 | _ACEOF |
| 6161 | |
| 6162 | |
| 6163 | |
| 6164 | |
| 6165 | |
| 6166 | curl_includes_inttypes="\ |
| 6167 | /* includes start */ |
| 6168 | #ifdef HAVE_SYS_TYPES_H |
| 6169 | # include <sys/types.h> |
| 6170 | #endif |
| 6171 | #ifdef HAVE_STDINT_H |
| 6172 | # include <stdint.h> |
| 6173 | #endif |
| 6174 | #ifdef HAVE_INTTYPES_H |
| 6175 | # include <inttypes.h> |
| 6176 | #endif |
| 6177 | /* includes end */" |
| 6178 | case $host_os in |
| 6179 | irix*) |
| 6180 | ac_cv_header_stdint_h="no" |
| 6181 | ;; |
| 6182 | esac |
| 6183 | for ac_header in sys/types.h stdint.h inttypes.h |
| 6184 | do : |
| 6185 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6186 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_inttypes |
| 6187 | " |
| 6188 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 6189 | cat >>confdefs.h <<_ACEOF |
| 6190 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6191 | _ACEOF |
| 6192 | |
| 6193 | fi |
| 6194 | |
| 6195 | done |
| 6196 | |
| 6197 | |
| 6198 | |
| 6199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 6200 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 6201 | if ${ac_cv_path_GREP+:} false; then : |
| 6202 | $as_echo_n "(cached) " >&6 |
| 6203 | else |
| 6204 | if test -z "$GREP"; then |
| 6205 | ac_path_GREP_found=false |
| 6206 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6208 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 6209 | do |
| 6210 | IFS=$as_save_IFS |
| 6211 | test -z "$as_dir" && as_dir=. |
| 6212 | for ac_prog in grep ggrep; do |
| 6213 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6214 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 6215 | as_fn_executable_p "$ac_path_GREP" || continue |
| 6216 | # Check for GNU ac_path_GREP and select it if it is found. |
| 6217 | # Check for GNU $ac_path_GREP |
| 6218 | case `"$ac_path_GREP" --version 2>&1` in |
| 6219 | *GNU*) |
| 6220 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 6221 | *) |
| 6222 | ac_count=0 |
| 6223 | $as_echo_n 0123456789 >"conftest.in" |
| 6224 | while : |
| 6225 | do |
| 6226 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6227 | mv "conftest.tmp" "conftest.in" |
| 6228 | cp "conftest.in" "conftest.nl" |
| 6229 | $as_echo 'GREP' >> "conftest.nl" |
| 6230 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6231 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6232 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 6233 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 6234 | # Best one so far, save it but keep looking for a better one |
| 6235 | ac_cv_path_GREP="$ac_path_GREP" |
| 6236 | ac_path_GREP_max=$ac_count |
| 6237 | fi |
| 6238 | # 10*(2^10) chars as input seems more than enough |
| 6239 | test $ac_count -gt 10 && break |
| 6240 | done |
| 6241 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 6242 | esac |
| 6243 | |
| 6244 | $ac_path_GREP_found && break 3 |
| 6245 | done |
| 6246 | done |
| 6247 | done |
| 6248 | IFS=$as_save_IFS |
| 6249 | if test -z "$ac_cv_path_GREP"; then |
| 6250 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 6251 | fi |
| 6252 | else |
| 6253 | ac_cv_path_GREP=$GREP |
| 6254 | fi |
| 6255 | |
| 6256 | fi |
| 6257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 6258 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 6259 | GREP="$ac_cv_path_GREP" |
| 6260 | |
| 6261 | |
| 6262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 6263 | $as_echo_n "checking for egrep... " >&6; } |
| 6264 | if ${ac_cv_path_EGREP+:} false; then : |
| 6265 | $as_echo_n "(cached) " >&6 |
| 6266 | else |
| 6267 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 6268 | then ac_cv_path_EGREP="$GREP -E" |
| 6269 | else |
| 6270 | if test -z "$EGREP"; then |
| 6271 | ac_path_EGREP_found=false |
| 6272 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6274 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 6275 | do |
| 6276 | IFS=$as_save_IFS |
| 6277 | test -z "$as_dir" && as_dir=. |
| 6278 | for ac_prog in egrep; do |
| 6279 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6280 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 6281 | as_fn_executable_p "$ac_path_EGREP" || continue |
| 6282 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 6283 | # Check for GNU $ac_path_EGREP |
| 6284 | case `"$ac_path_EGREP" --version 2>&1` in |
| 6285 | *GNU*) |
| 6286 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 6287 | *) |
| 6288 | ac_count=0 |
| 6289 | $as_echo_n 0123456789 >"conftest.in" |
| 6290 | while : |
| 6291 | do |
| 6292 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6293 | mv "conftest.tmp" "conftest.in" |
| 6294 | cp "conftest.in" "conftest.nl" |
| 6295 | $as_echo 'EGREP' >> "conftest.nl" |
| 6296 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6297 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6298 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 6299 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 6300 | # Best one so far, save it but keep looking for a better one |
| 6301 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 6302 | ac_path_EGREP_max=$ac_count |
| 6303 | fi |
| 6304 | # 10*(2^10) chars as input seems more than enough |
| 6305 | test $ac_count -gt 10 && break |
| 6306 | done |
| 6307 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 6308 | esac |
| 6309 | |
| 6310 | $ac_path_EGREP_found && break 3 |
| 6311 | done |
| 6312 | done |
| 6313 | done |
| 6314 | IFS=$as_save_IFS |
| 6315 | if test -z "$ac_cv_path_EGREP"; then |
| 6316 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 6317 | fi |
| 6318 | else |
| 6319 | ac_cv_path_EGREP=$EGREP |
| 6320 | fi |
| 6321 | |
| 6322 | fi |
| 6323 | fi |
| 6324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 6325 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 6326 | EGREP="$ac_cv_path_EGREP" |
| 6327 | |
| 6328 | |
| 6329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 6330 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 6331 | if ${ac_cv_header_stdc+:} false; then : |
| 6332 | $as_echo_n "(cached) " >&6 |
| 6333 | else |
| 6334 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6335 | /* end confdefs.h. */ |
| 6336 | #include <stdlib.h> |
| 6337 | #include <stdarg.h> |
| 6338 | #include <string.h> |
| 6339 | #include <float.h> |
| 6340 | |
| 6341 | int main (void) |
| 6342 | { |
| 6343 | |
| 6344 | ; |
| 6345 | return 0; |
| 6346 | } |
| 6347 | _ACEOF |
| 6348 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6349 | ac_cv_header_stdc=yes |
| 6350 | else |
| 6351 | ac_cv_header_stdc=no |
| 6352 | fi |
| 6353 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6354 | |
| 6355 | if test $ac_cv_header_stdc = yes; then |
| 6356 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 6357 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6358 | /* end confdefs.h. */ |
| 6359 | #include <string.h> |
| 6360 | |
| 6361 | _ACEOF |
| 6362 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6363 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 6364 | |
| 6365 | else |
| 6366 | ac_cv_header_stdc=no |
| 6367 | fi |
| 6368 | rm -f conftest* |
| 6369 | |
| 6370 | fi |
| 6371 | |
| 6372 | if test $ac_cv_header_stdc = yes; then |
| 6373 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 6374 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6375 | /* end confdefs.h. */ |
| 6376 | #include <stdlib.h> |
| 6377 | |
| 6378 | _ACEOF |
| 6379 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6380 | $EGREP "free" >/dev/null 2>&1; then : |
| 6381 | |
| 6382 | else |
| 6383 | ac_cv_header_stdc=no |
| 6384 | fi |
| 6385 | rm -f conftest* |
| 6386 | |
| 6387 | fi |
| 6388 | |
| 6389 | if test $ac_cv_header_stdc = yes; then |
| 6390 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 6391 | if test "$cross_compiling" = yes; then : |
| 6392 | : |
| 6393 | else |
| 6394 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6395 | /* end confdefs.h. */ |
| 6396 | #include <ctype.h> |
| 6397 | #include <stdlib.h> |
| 6398 | #if ((' ' & 0x0FF) == 0x020) |
| 6399 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 6400 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 6401 | #else |
| 6402 | # define ISLOWER(c) \ |
| 6403 | (('a' <= (c) && (c) <= 'i') \ |
| 6404 | || ('j' <= (c) && (c) <= 'r') \ |
| 6405 | || ('s' <= (c) && (c) <= 'z')) |
| 6406 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 6407 | #endif |
| 6408 | |
| 6409 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 6410 | int |
| 6411 | main () |
| 6412 | { |
| 6413 | int i; |
| 6414 | for (i = 0; i < 256; i++) |
| 6415 | if (XOR (islower (i), ISLOWER (i)) |
| 6416 | || toupper (i) != TOUPPER (i)) |
| 6417 | return 2; |
| 6418 | return 0; |
| 6419 | } |
| 6420 | _ACEOF |
| 6421 | if ac_fn_c_try_run "$LINENO"; then : |
| 6422 | |
| 6423 | else |
| 6424 | ac_cv_header_stdc=no |
| 6425 | fi |
| 6426 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6427 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6428 | fi |
| 6429 | |
| 6430 | fi |
| 6431 | fi |
| 6432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 6433 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 6434 | if test $ac_cv_header_stdc = yes; then |
| 6435 | |
| 6436 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 6437 | |
| 6438 | fi |
| 6439 | |
| 6440 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 6441 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 6442 | inttypes.h stdint.h unistd.h |
| 6443 | do : |
| 6444 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6445 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 6446 | " |
| 6447 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 6448 | cat >>confdefs.h <<_ACEOF |
| 6449 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6450 | _ACEOF |
| 6451 | |
| 6452 | fi |
| 6453 | |
| 6454 | done |
| 6455 | |
| 6456 | |
| 6457 | |
| 6458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5 |
| 6459 | $as_echo_n "checking if cpp -P is needed... " >&6; } |
| 6460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6461 | /* end confdefs.h. */ |
| 6462 | |
| 6463 | #include <errno.h> |
| 6464 | TEST EINVAL TEST |
| 6465 | |
| 6466 | _ACEOF |
| 6467 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6468 | $EGREP "TEST.*TEST" >/dev/null 2>&1; then : |
| 6469 | cpp=no |
| 6470 | else |
| 6471 | cpp=yes |
| 6472 | fi |
| 6473 | rm -f conftest* |
| 6474 | |
| 6475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5 |
| 6476 | $as_echo "$cpp" >&6; } |
| 6477 | |
| 6478 | if test "x$cpp" = "xyes"; then |
| 6479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5 |
| 6480 | $as_echo_n "checking if cpp -P works... " >&6; } |
| 6481 | OLDCPPFLAGS=$CPPFLAGS |
| 6482 | CPPFLAGS="$CPPFLAGS -P" |
| 6483 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6484 | /* end confdefs.h. */ |
| 6485 | |
| 6486 | #include <errno.h> |
| 6487 | TEST EINVAL TEST |
| 6488 | |
| 6489 | _ACEOF |
| 6490 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6491 | $EGREP "TEST.*TEST" >/dev/null 2>&1; then : |
| 6492 | cpp_p=yes |
| 6493 | else |
| 6494 | cpp_p=no |
| 6495 | fi |
| 6496 | rm -f conftest* |
| 6497 | |
| 6498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5 |
| 6499 | $as_echo "$cpp_p" >&6; } |
| 6500 | |
| 6501 | if test "x$cpp_p" = "xno"; then |
| 6502 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5 |
| 6503 | $as_echo "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;} |
| 6504 | # without -P |
| 6505 | CPPPFLAG="" |
| 6506 | else |
| 6507 | # with -P |
| 6508 | CPPPFLAG="-P" |
| 6509 | fi |
| 6510 | CPPFLAGS=$OLDCPPFLAGS |
| 6511 | else |
| 6512 | # without -P |
| 6513 | CPPPFLAG="" |
| 6514 | fi |
| 6515 | |
| 6516 | |
| 6517 | # |
| 6518 | # |
| 6519 | if test -z "$SED"; then |
| 6520 | as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 |
| 6521 | fi |
| 6522 | # |
| 6523 | # The cast to long int works around a bug in the HP C Compiler |
| 6524 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6525 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6526 | # This bug is HP SR number 8606223364. |
| 6527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
| 6528 | $as_echo_n "checking size of long... " >&6; } |
| 6529 | if ${ac_cv_sizeof_long+:} false; then : |
| 6530 | $as_echo_n "(cached) " >&6 |
| 6531 | else |
| 6532 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
| 6533 | |
| 6534 | else |
| 6535 | if test "$ac_cv_type_long" = yes; then |
| 6536 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6537 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6538 | as_fn_error 77 "cannot compute sizeof (long) |
| 6539 | See \`config.log' for more details" "$LINENO" 5; } |
| 6540 | else |
| 6541 | ac_cv_sizeof_long=0 |
| 6542 | fi |
| 6543 | fi |
| 6544 | |
| 6545 | fi |
| 6546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
| 6547 | $as_echo "$ac_cv_sizeof_long" >&6; } |
| 6548 | |
| 6549 | |
| 6550 | |
| 6551 | cat >>confdefs.h <<_ACEOF |
| 6552 | #define SIZEOF_LONG $ac_cv_sizeof_long |
| 6553 | _ACEOF |
| 6554 | |
| 6555 | |
| 6556 | # The cast to long int works around a bug in the HP C Compiler |
| 6557 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6558 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6559 | # This bug is HP SR number 8606223364. |
| 6560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5 |
| 6561 | $as_echo_n "checking size of void*... " >&6; } |
| 6562 | if ${ac_cv_sizeof_voidp+:} false; then : |
| 6563 | $as_echo_n "(cached) " >&6 |
| 6564 | else |
| 6565 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then : |
| 6566 | |
| 6567 | else |
| 6568 | if test "$ac_cv_type_voidp" = yes; then |
| 6569 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6570 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6571 | as_fn_error 77 "cannot compute sizeof (void*) |
| 6572 | See \`config.log' for more details" "$LINENO" 5; } |
| 6573 | else |
| 6574 | ac_cv_sizeof_voidp=0 |
| 6575 | fi |
| 6576 | fi |
| 6577 | |
| 6578 | fi |
| 6579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5 |
| 6580 | $as_echo "$ac_cv_sizeof_voidp" >&6; } |
| 6581 | |
| 6582 | |
| 6583 | |
| 6584 | cat >>confdefs.h <<_ACEOF |
| 6585 | #define SIZEOF_VOIDP $ac_cv_sizeof_voidp |
| 6586 | _ACEOF |
| 6587 | |
| 6588 | |
| 6589 | # |
| 6590 | if test -z "$ac_cv_sizeof_long" || |
| 6591 | test "$ac_cv_sizeof_long" -eq "0"; then |
| 6592 | as_fn_error $? "cannot find out size of long." "$LINENO" 5 |
| 6593 | fi |
| 6594 | if test -z "$ac_cv_sizeof_voidp" || |
| 6595 | test "$ac_cv_sizeof_voidp" -eq "0"; then |
| 6596 | as_fn_error $? "cannot find out size of void*." "$LINENO" 5 |
| 6597 | fi |
| 6598 | # |
| 6599 | x_LP64_long="" |
| 6600 | x_LP32_long="" |
| 6601 | # |
| 6602 | if test "$ac_cv_sizeof_long" -eq "8" && |
| 6603 | test "$ac_cv_sizeof_voidp" -ge "8"; then |
| 6604 | x_LP64_long="long" |
| 6605 | elif test "$ac_cv_sizeof_long" -eq "4" && |
| 6606 | test "$ac_cv_sizeof_voidp" -ge "4"; then |
| 6607 | x_LP32_long="long" |
| 6608 | fi |
| 6609 | # |
| 6610 | # |
| 6611 | curl_typeof_curl_off_t="unknown" |
| 6612 | curl_sizeof_curl_off_t="unknown" |
| 6613 | curl_format_curl_off_t="unknown" |
| 6614 | curl_format_curl_off_tu="unknown" |
| 6615 | # |
| 6616 | if test "$curl_typeof_curl_off_t" = "unknown"; then |
| 6617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit curl_off_t data type" >&5 |
| 6618 | $as_echo_n "checking for 64-bit curl_off_t data type... " >&6; } |
| 6619 | for t8 in \ |
| 6620 | "$x_LP64_long" \ |
| 6621 | 'int64_t' \ |
| 6622 | '__int64' \ |
| 6623 | 'long long' \ |
| 6624 | '__longlong' \ |
| 6625 | '__longlong_t' ; do |
| 6626 | |
| 6627 | if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t8"; then |
| 6628 | tmp_includes="" |
| 6629 | tmp_source="" |
| 6630 | tmp_fmt="" |
| 6631 | case `echo "$t8" | sed 's/[^a-zA-Z0-9_]/_/g'` in |
| 6632 | int64_t) |
| 6633 | tmp_includes="$curl_includes_inttypes" |
| 6634 | tmp_source="char f[] = PRId64;" |
| 6635 | tmp_fmt="PRId64" |
| 6636 | ;; |
| 6637 | int32_t) |
| 6638 | tmp_includes="$curl_includes_inttypes" |
| 6639 | tmp_source="char f[] = PRId32;" |
| 6640 | tmp_fmt="PRId32" |
| 6641 | ;; |
| 6642 | int16_t) |
| 6643 | tmp_includes="$curl_includes_inttypes" |
| 6644 | tmp_source="char f[] = PRId16;" |
| 6645 | tmp_fmt="PRId16" |
| 6646 | ;; |
| 6647 | esac |
| 6648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6649 | /* end confdefs.h. */ |
| 6650 | |
| 6651 | |
| 6652 | $tmp_includes |
| 6653 | typedef $t8 curl_off_t; |
| 6654 | typedef char dummy_arr[sizeof(curl_off_t) == 8 ? 1 : -1]; |
| 6655 | |
| 6656 | int main (void) |
| 6657 | { |
| 6658 | |
| 6659 | $tmp_source |
| 6660 | curl_off_t dummy; |
| 6661 | |
| 6662 | ; |
| 6663 | return 0; |
| 6664 | } |
| 6665 | |
| 6666 | _ACEOF |
| 6667 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6668 | |
| 6669 | if test -z "$tmp_fmt"; then |
| 6670 | curl_typeof_curl_off_t="$t8" |
| 6671 | curl_sizeof_curl_off_t="8" |
| 6672 | else |
| 6673 | |
| 6674 | OLDCPPFLAGS=$CPPFLAGS |
| 6675 | # CPPPFLAG comes from CURL_CPP_P |
| 6676 | CPPFLAGS="$CPPFLAGS $CPPPFLAG" |
| 6677 | as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh` |
| 6678 | as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh` |
| 6679 | if test -z "$SED"; then |
| 6680 | as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 |
| 6681 | fi |
| 6682 | if test -z "$GREP"; then |
| 6683 | as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 |
| 6684 | fi |
| 6685 | |
| 6686 | tmp_exp="" |
| 6687 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6688 | /* end confdefs.h. */ |
| 6689 | |
| 6690 | $curl_includes_inttypes |
| 6691 | #ifdef $tmp_fmt |
| 6692 | CURL_DEF_TOKEN $tmp_fmt |
| 6693 | #endif |
| 6694 | |
| 6695 | |
| 6696 | _ACEOF |
| 6697 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 6698 | |
| 6699 | tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ |
| 6700 | "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ |
| 6701 | "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ |
| 6702 | "$SED" 's/["][ ]*["]//g' 2>/dev/null` |
| 6703 | if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then |
| 6704 | tmp_exp="" |
| 6705 | fi |
| 6706 | |
| 6707 | fi |
| 6708 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 6709 | if test -z "$tmp_exp"; then |
| 6710 | eval "$as_ac_HaveDef=no" |
| 6711 | |
| 6712 | else |
| 6713 | eval "$as_ac_HaveDef=yes" |
| 6714 | eval "$as_ac_Def=\$tmp_exp" |
| 6715 | |
| 6716 | fi |
| 6717 | CPPFLAGS=$OLDCPPFLAGS |
| 6718 | |
| 6719 | as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh` |
| 6720 | as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh` |
| 6721 | if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then |
| 6722 | curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'` |
| 6723 | curl_typeof_curl_off_t="$t8" |
| 6724 | curl_sizeof_curl_off_t="8" |
| 6725 | fi |
| 6726 | fi |
| 6727 | |
| 6728 | fi |
| 6729 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6730 | fi |
| 6731 | |
| 6732 | done |
| 6733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5 |
| 6734 | $as_echo "$curl_typeof_curl_off_t" >&6; } |
| 6735 | fi |
| 6736 | if test "$curl_typeof_curl_off_t" = "unknown"; then |
| 6737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit curl_off_t data type" >&5 |
| 6738 | $as_echo_n "checking for 32-bit curl_off_t data type... " >&6; } |
| 6739 | for t4 in \ |
| 6740 | "$x_LP32_long" \ |
| 6741 | 'int32_t' \ |
| 6742 | '__int32' \ |
| 6743 | 'int' ; do |
| 6744 | |
| 6745 | if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t4"; then |
| 6746 | tmp_includes="" |
| 6747 | tmp_source="" |
| 6748 | tmp_fmt="" |
| 6749 | case `echo "$t4" | sed 's/[^a-zA-Z0-9_]/_/g'` in |
| 6750 | int64_t) |
| 6751 | tmp_includes="$curl_includes_inttypes" |
| 6752 | tmp_source="char f[] = PRId64;" |
| 6753 | tmp_fmt="PRId64" |
| 6754 | ;; |
| 6755 | int32_t) |
| 6756 | tmp_includes="$curl_includes_inttypes" |
| 6757 | tmp_source="char f[] = PRId32;" |
| 6758 | tmp_fmt="PRId32" |
| 6759 | ;; |
| 6760 | int16_t) |
| 6761 | tmp_includes="$curl_includes_inttypes" |
| 6762 | tmp_source="char f[] = PRId16;" |
| 6763 | tmp_fmt="PRId16" |
| 6764 | ;; |
| 6765 | esac |
| 6766 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6767 | /* end confdefs.h. */ |
| 6768 | |
| 6769 | |
| 6770 | $tmp_includes |
| 6771 | typedef $t4 curl_off_t; |
| 6772 | typedef char dummy_arr[sizeof(curl_off_t) == 4 ? 1 : -1]; |
| 6773 | |
| 6774 | int main (void) |
| 6775 | { |
| 6776 | |
| 6777 | $tmp_source |
| 6778 | curl_off_t dummy; |
| 6779 | |
| 6780 | ; |
| 6781 | return 0; |
| 6782 | } |
| 6783 | |
| 6784 | _ACEOF |
| 6785 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6786 | |
| 6787 | if test -z "$tmp_fmt"; then |
| 6788 | curl_typeof_curl_off_t="$t4" |
| 6789 | curl_sizeof_curl_off_t="4" |
| 6790 | else |
| 6791 | |
| 6792 | OLDCPPFLAGS=$CPPFLAGS |
| 6793 | # CPPPFLAG comes from CURL_CPP_P |
| 6794 | CPPFLAGS="$CPPFLAGS $CPPPFLAG" |
| 6795 | as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh` |
| 6796 | as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh` |
| 6797 | if test -z "$SED"; then |
| 6798 | as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 |
| 6799 | fi |
| 6800 | if test -z "$GREP"; then |
| 6801 | as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 |
| 6802 | fi |
| 6803 | |
| 6804 | tmp_exp="" |
| 6805 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6806 | /* end confdefs.h. */ |
| 6807 | |
| 6808 | $curl_includes_inttypes |
| 6809 | #ifdef $tmp_fmt |
| 6810 | CURL_DEF_TOKEN $tmp_fmt |
| 6811 | #endif |
| 6812 | |
| 6813 | |
| 6814 | _ACEOF |
| 6815 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 6816 | |
| 6817 | tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ |
| 6818 | "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ |
| 6819 | "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ |
| 6820 | "$SED" 's/["][ ]*["]//g' 2>/dev/null` |
| 6821 | if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then |
| 6822 | tmp_exp="" |
| 6823 | fi |
| 6824 | |
| 6825 | fi |
| 6826 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 6827 | if test -z "$tmp_exp"; then |
| 6828 | eval "$as_ac_HaveDef=no" |
| 6829 | |
| 6830 | else |
| 6831 | eval "$as_ac_HaveDef=yes" |
| 6832 | eval "$as_ac_Def=\$tmp_exp" |
| 6833 | |
| 6834 | fi |
| 6835 | CPPFLAGS=$OLDCPPFLAGS |
| 6836 | |
| 6837 | as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh` |
| 6838 | as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh` |
| 6839 | if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then |
| 6840 | curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'` |
| 6841 | curl_typeof_curl_off_t="$t4" |
| 6842 | curl_sizeof_curl_off_t="4" |
| 6843 | fi |
| 6844 | fi |
| 6845 | |
| 6846 | fi |
| 6847 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6848 | fi |
| 6849 | |
| 6850 | done |
| 6851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5 |
| 6852 | $as_echo "$curl_typeof_curl_off_t" >&6; } |
| 6853 | fi |
| 6854 | if test "$curl_typeof_curl_off_t" = "unknown"; then |
| 6855 | as_fn_error $? "cannot find data type for curl_off_t." "$LINENO" 5 |
| 6856 | fi |
| 6857 | # |
| 6858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5 |
| 6859 | $as_echo_n "checking size of curl_off_t... " >&6; } |
| 6860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_off_t" >&5 |
| 6861 | $as_echo "$curl_sizeof_curl_off_t" >&6; } |
| 6862 | # |
| 6863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking formatting string directive for curl_off_t" >&5 |
| 6864 | $as_echo_n "checking formatting string directive for curl_off_t... " >&6; } |
| 6865 | if test "$curl_format_curl_off_t" != "unknown"; then |
| 6866 | x_pull_headers="yes" |
| 6867 | curl_format_curl_off_t=`echo "$curl_format_curl_off_t" | "$SED" 's/["]//g'` |
| 6868 | curl_format_curl_off_tu=`echo "$curl_format_curl_off_t" | "$SED" 's/i$/u/'` |
| 6869 | curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/d$/u/'` |
| 6870 | curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/D$/U/'` |
| 6871 | else |
| 6872 | x_pull_headers="no" |
| 6873 | case `echo "$curl_typeof_curl_off_t" | sed 's/[^a-zA-Z0-9_]/_/g'` in |
| 6874 | long_long | __longlong | __longlong_t) |
| 6875 | curl_format_curl_off_t="lld" |
| 6876 | curl_format_curl_off_tu="llu" |
| 6877 | ;; |
| 6878 | long) |
| 6879 | curl_format_curl_off_t="ld" |
| 6880 | curl_format_curl_off_tu="lu" |
| 6881 | ;; |
| 6882 | int) |
| 6883 | curl_format_curl_off_t="d" |
| 6884 | curl_format_curl_off_tu="u" |
| 6885 | ;; |
| 6886 | __int64) |
| 6887 | curl_format_curl_off_t="I64d" |
| 6888 | curl_format_curl_off_tu="I64u" |
| 6889 | ;; |
| 6890 | __int32) |
| 6891 | curl_format_curl_off_t="I32d" |
| 6892 | curl_format_curl_off_tu="I32u" |
| 6893 | ;; |
| 6894 | __int16) |
| 6895 | curl_format_curl_off_t="I16d" |
| 6896 | curl_format_curl_off_tu="I16u" |
| 6897 | ;; |
| 6898 | *) |
| 6899 | as_fn_error $? "cannot find print format string for curl_off_t." "$LINENO" 5 |
| 6900 | ;; |
| 6901 | esac |
| 6902 | fi |
| 6903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$curl_format_curl_off_t\"" >&5 |
| 6904 | $as_echo "\"$curl_format_curl_off_t\"" >&6; } |
| 6905 | # |
| 6906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking formatting string directive for unsigned curl_off_t" >&5 |
| 6907 | $as_echo_n "checking formatting string directive for unsigned curl_off_t... " >&6; } |
| 6908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$curl_format_curl_off_tu\"" >&5 |
| 6909 | $as_echo "\"$curl_format_curl_off_tu\"" >&6; } |
| 6910 | # |
| 6911 | |
| 6912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking constant suffix string for curl_off_t" >&5 |
| 6913 | $as_echo_n "checking constant suffix string for curl_off_t... " >&6; } |
| 6914 | # |
| 6915 | curl_suffix_curl_off_t="unknown" |
| 6916 | curl_suffix_curl_off_tu="unknown" |
| 6917 | # |
| 6918 | case `echo "$curl_typeof_curl_off_t" | sed 's/[^a-zA-Z0-9_]/_/g'` in |
| 6919 | long_long | __longlong | __longlong_t) |
| 6920 | tst_suffixes="LL::" |
| 6921 | ;; |
| 6922 | long) |
| 6923 | tst_suffixes="L::" |
| 6924 | ;; |
| 6925 | int) |
| 6926 | tst_suffixes="::" |
| 6927 | ;; |
| 6928 | __int64 | int64_t) |
| 6929 | tst_suffixes="LL:i64::" |
| 6930 | ;; |
| 6931 | __int32 | int32_t) |
| 6932 | tst_suffixes="L:i32::" |
| 6933 | ;; |
| 6934 | __int16 | int16_t) |
| 6935 | tst_suffixes="L:i16::" |
| 6936 | ;; |
| 6937 | *) |
| 6938 | as_fn_error $? "unexpected data type $curl_typeof_curl_off_t" "$LINENO" 5 |
| 6939 | ;; |
| 6940 | esac |
| 6941 | # |
| 6942 | old_IFS=$IFS; IFS=':' |
| 6943 | for tmp_ssuf in $tst_suffixes ; do |
| 6944 | IFS=$old_IFS |
| 6945 | if test "x$curl_suffix_curl_off_t" = "xunknown"; then |
| 6946 | case $tmp_ssuf in |
| 6947 | i64 | i32 | i16) |
| 6948 | tmp_usuf="u$tmp_ssuf" |
| 6949 | ;; |
| 6950 | LL | L) |
| 6951 | tmp_usuf="U$tmp_ssuf" |
| 6952 | ;; |
| 6953 | *) |
| 6954 | tmp_usuf="" |
| 6955 | ;; |
| 6956 | esac |
| 6957 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6958 | /* end confdefs.h. */ |
| 6959 | |
| 6960 | |
| 6961 | $curl_includes_inttypes |
| 6962 | typedef $curl_typeof_curl_off_t new_t; |
| 6963 | |
| 6964 | int main (void) |
| 6965 | { |
| 6966 | |
| 6967 | new_t s1; |
| 6968 | new_t s2; |
| 6969 | s1 = -10$tmp_ssuf ; |
| 6970 | s2 = 20$tmp_ssuf ; |
| 6971 | if(s1 > s2) |
| 6972 | return 1; |
| 6973 | |
| 6974 | ; |
| 6975 | return 0; |
| 6976 | } |
| 6977 | |
| 6978 | _ACEOF |
| 6979 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6980 | |
| 6981 | curl_suffix_curl_off_t="$tmp_ssuf" |
| 6982 | curl_suffix_curl_off_tu="$tmp_usuf" |
| 6983 | |
| 6984 | fi |
| 6985 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6986 | fi |
| 6987 | done |
| 6988 | IFS=$old_IFS |
| 6989 | # |
| 6990 | if test "x$curl_suffix_curl_off_t" = "xunknown"; then |
| 6991 | as_fn_error $? "cannot find constant suffix string for curl_off_t." "$LINENO" 5 |
| 6992 | else |
| 6993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_suffix_curl_off_t" >&5 |
| 6994 | $as_echo "$curl_suffix_curl_off_t" >&6; } |
| 6995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking constant suffix string for unsigned curl_off_t" >&5 |
| 6996 | $as_echo_n "checking constant suffix string for unsigned curl_off_t... " >&6; } |
| 6997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_suffix_curl_off_tu" >&5 |
| 6998 | $as_echo "$curl_suffix_curl_off_tu" >&6; } |
| 6999 | fi |
| 7000 | # |
| 7001 | |
| 7002 | # |
| 7003 | if test "$x_pull_headers" = "yes"; then |
| 7004 | if test "x$ac_cv_header_sys_types_h" = "xyes"; then |
| 7005 | |
| 7006 | cat >>confdefs.h <<_EOF |
| 7007 | #define CURL_PULL_SYS_TYPES_H 1 |
| 7008 | _EOF |
| 7009 | |
| 7010 | fi |
| 7011 | if test "x$ac_cv_header_stdint_h" = "xyes"; then |
| 7012 | |
| 7013 | cat >>confdefs.h <<_EOF |
| 7014 | #define CURL_PULL_STDINT_H 1 |
| 7015 | _EOF |
| 7016 | |
| 7017 | fi |
| 7018 | if test "x$ac_cv_header_inttypes_h" = "xyes"; then |
| 7019 | |
| 7020 | cat >>confdefs.h <<_EOF |
| 7021 | #define CURL_PULL_INTTYPES_H 1 |
| 7022 | _EOF |
| 7023 | |
| 7024 | fi |
| 7025 | fi |
| 7026 | # |
| 7027 | |
| 7028 | cat >>confdefs.h <<_EOF |
| 7029 | #define CURL_TYPEOF_CURL_OFF_T $curl_typeof_curl_off_t |
| 7030 | _EOF |
| 7031 | |
| 7032 | |
| 7033 | cat >>confdefs.h <<_EOF |
| 7034 | #define CURL_FORMAT_CURL_OFF_T "$curl_format_curl_off_t" |
| 7035 | _EOF |
| 7036 | |
| 7037 | |
| 7038 | cat >>confdefs.h <<_EOF |
| 7039 | #define CURL_FORMAT_CURL_OFF_TU "$curl_format_curl_off_tu" |
| 7040 | _EOF |
| 7041 | |
| 7042 | |
| 7043 | cat >>confdefs.h <<_EOF |
| 7044 | #define CURL_FORMAT_OFF_T "%$curl_format_curl_off_t" |
| 7045 | _EOF |
| 7046 | |
| 7047 | |
| 7048 | cat >>confdefs.h <<_EOF |
| 7049 | #define CURL_SIZEOF_CURL_OFF_T $curl_sizeof_curl_off_t |
| 7050 | _EOF |
| 7051 | |
| 7052 | |
| 7053 | cat >>confdefs.h <<_EOF |
| 7054 | #define CURL_SUFFIX_CURL_OFF_T $curl_suffix_curl_off_t |
| 7055 | _EOF |
| 7056 | |
| 7057 | |
| 7058 | cat >>confdefs.h <<_EOF |
| 7059 | #define CURL_SUFFIX_CURL_OFF_TU $curl_suffix_curl_off_tu |
| 7060 | _EOF |
| 7061 | |
| 7062 | # |
| 7063 | |
| 7064 | |
| 7065 | |
| 7066 | |
| 7067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5 |
| 7068 | $as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; } |
| 7069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7070 | /* end confdefs.h. */ |
| 7071 | |
| 7072 | #ifdef _AIX |
| 7073 | yes_this_is_aix |
| 7074 | #endif |
| 7075 | |
| 7076 | _ACEOF |
| 7077 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7078 | $EGREP "yes_this_is_aix" >/dev/null 2>&1; then : |
| 7079 | |
| 7080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7081 | $as_echo "yes" >&6; } |
| 7082 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
| 7083 | |
| 7084 | |
| 7085 | else |
| 7086 | |
| 7087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7088 | $as_echo "no" >&6; } |
| 7089 | |
| 7090 | fi |
| 7091 | rm -f conftest* |
| 7092 | |
| 7093 | |
| 7094 | |
| 7095 | |
| 7096 | # |
| 7097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5 |
| 7098 | $as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; } |
| 7099 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7100 | /* end confdefs.h. */ |
| 7101 | |
| 7102 | |
| 7103 | |
| 7104 | int main (void) |
| 7105 | { |
| 7106 | |
| 7107 | #ifdef _THREAD_SAFE |
| 7108 | int dummy=1; |
| 7109 | #else |
| 7110 | force compilation error |
| 7111 | #endif |
| 7112 | |
| 7113 | ; |
| 7114 | return 0; |
| 7115 | } |
| 7116 | |
| 7117 | _ACEOF |
| 7118 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7119 | |
| 7120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7121 | $as_echo "yes" >&6; } |
| 7122 | tmp_thread_safe_initially_defined="yes" |
| 7123 | |
| 7124 | else |
| 7125 | |
| 7126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7127 | $as_echo "no" >&6; } |
| 7128 | tmp_thread_safe_initially_defined="no" |
| 7129 | |
| 7130 | fi |
| 7131 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7132 | # |
| 7133 | if test "$tmp_thread_safe_initially_defined" = "no"; then |
| 7134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5 |
| 7135 | $as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; } |
| 7136 | |
| 7137 | case $host_os in |
| 7138 | aix[123].* | aix4.[012].*) |
| 7139 | tmp_need_thread_safe="no" |
| 7140 | ;; |
| 7141 | aix*) |
| 7142 | tmp_need_thread_safe="yes" |
| 7143 | ;; |
| 7144 | *) |
| 7145 | tmp_need_thread_safe="no" |
| 7146 | ;; |
| 7147 | esac |
| 7148 | |
| 7149 | if test "$tmp_need_thread_safe" = "yes"; then |
| 7150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7151 | $as_echo "yes" >&6; } |
| 7152 | else |
| 7153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7154 | $as_echo "no" >&6; } |
| 7155 | fi |
| 7156 | fi |
| 7157 | # |
| 7158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5 |
| 7159 | $as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; } |
| 7160 | if test "$tmp_thread_safe_initially_defined" = "yes" || |
| 7161 | test "$tmp_need_thread_safe" = "yes"; then |
| 7162 | |
| 7163 | |
| 7164 | $as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h |
| 7165 | |
| 7166 | cat >>confdefs.h <<_EOF |
| 7167 | #ifndef _THREAD_SAFE |
| 7168 | # define _THREAD_SAFE |
| 7169 | #endif |
| 7170 | _EOF |
| 7171 | |
| 7172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7173 | $as_echo "yes" >&6; } |
| 7174 | else |
| 7175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7176 | $as_echo "no" >&6; } |
| 7177 | fi |
| 7178 | # |
| 7179 | |
| 7180 | |
| 7181 | # |
| 7182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5 |
| 7183 | $as_echo_n "checking if _REENTRANT is already defined... " >&6; } |
| 7184 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7185 | /* end confdefs.h. */ |
| 7186 | |
| 7187 | |
| 7188 | |
| 7189 | int main (void) |
| 7190 | { |
| 7191 | |
| 7192 | #ifdef _REENTRANT |
| 7193 | int dummy=1; |
| 7194 | #else |
| 7195 | force compilation error |
| 7196 | #endif |
| 7197 | |
| 7198 | ; |
| 7199 | return 0; |
| 7200 | } |
| 7201 | |
| 7202 | _ACEOF |
| 7203 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7204 | |
| 7205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7206 | $as_echo "yes" >&6; } |
| 7207 | tmp_reentrant_initially_defined="yes" |
| 7208 | |
| 7209 | else |
| 7210 | |
| 7211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7212 | $as_echo "no" >&6; } |
| 7213 | tmp_reentrant_initially_defined="no" |
| 7214 | |
| 7215 | fi |
| 7216 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7217 | # |
| 7218 | if test "$tmp_reentrant_initially_defined" = "no"; then |
| 7219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5 |
| 7220 | $as_echo_n "checking if _REENTRANT is actually needed... " >&6; } |
| 7221 | |
| 7222 | case $host_os in |
| 7223 | solaris*) |
| 7224 | tmp_need_reentrant="yes" |
| 7225 | ;; |
| 7226 | *) |
| 7227 | tmp_need_reentrant="no" |
| 7228 | ;; |
| 7229 | esac |
| 7230 | |
| 7231 | if test "$tmp_need_reentrant" = "no"; then |
| 7232 | |
| 7233 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7234 | /* end confdefs.h. */ |
| 7235 | |
| 7236 | |
| 7237 | #include <errno.h> |
| 7238 | |
| 7239 | int main (void) |
| 7240 | { |
| 7241 | |
| 7242 | if(0 != errno) |
| 7243 | return 1; |
| 7244 | |
| 7245 | ; |
| 7246 | return 0; |
| 7247 | } |
| 7248 | |
| 7249 | _ACEOF |
| 7250 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7251 | |
| 7252 | tmp_errno="yes" |
| 7253 | |
| 7254 | else |
| 7255 | |
| 7256 | tmp_errno="no" |
| 7257 | |
| 7258 | fi |
| 7259 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7260 | if test "$tmp_errno" = "yes"; then |
| 7261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7262 | /* end confdefs.h. */ |
| 7263 | |
| 7264 | |
| 7265 | #include <errno.h> |
| 7266 | |
| 7267 | int main (void) |
| 7268 | { |
| 7269 | |
| 7270 | #ifdef errno |
| 7271 | int dummy=1; |
| 7272 | #else |
| 7273 | force compilation error |
| 7274 | #endif |
| 7275 | |
| 7276 | ; |
| 7277 | return 0; |
| 7278 | } |
| 7279 | |
| 7280 | _ACEOF |
| 7281 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7282 | |
| 7283 | tmp_errno="errno_macro_defined" |
| 7284 | |
| 7285 | else |
| 7286 | |
| 7287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7288 | /* end confdefs.h. */ |
| 7289 | |
| 7290 | |
| 7291 | #define _REENTRANT |
| 7292 | #include <errno.h> |
| 7293 | |
| 7294 | int main (void) |
| 7295 | { |
| 7296 | |
| 7297 | #ifdef errno |
| 7298 | int dummy=1; |
| 7299 | #else |
| 7300 | force compilation error |
| 7301 | #endif |
| 7302 | |
| 7303 | ; |
| 7304 | return 0; |
| 7305 | } |
| 7306 | |
| 7307 | _ACEOF |
| 7308 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7309 | |
| 7310 | tmp_errno="errno_macro_needs_reentrant" |
| 7311 | tmp_need_reentrant="yes" |
| 7312 | |
| 7313 | fi |
| 7314 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7315 | |
| 7316 | fi |
| 7317 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7318 | fi |
| 7319 | |
| 7320 | fi |
| 7321 | if test "$tmp_need_reentrant" = "no"; then |
| 7322 | |
| 7323 | if test "$tmp_need_reentrant" = "no"; then |
| 7324 | |
| 7325 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7326 | /* end confdefs.h. */ |
| 7327 | |
| 7328 | |
| 7329 | #define gmtime_r innocuous_gmtime_r |
| 7330 | #ifdef __STDC__ |
| 7331 | # include <limits.h> |
| 7332 | #else |
| 7333 | # include <assert.h> |
| 7334 | #endif |
| 7335 | #undef gmtime_r |
| 7336 | #ifdef __cplusplus |
| 7337 | extern "C" |
| 7338 | #endif |
| 7339 | char gmtime_r (); |
| 7340 | #if defined __stub_gmtime_r || defined __stub___gmtime_r |
| 7341 | choke me |
| 7342 | #endif |
| 7343 | |
| 7344 | int main (void) |
| 7345 | { |
| 7346 | return gmtime_r (); |
| 7347 | ; |
| 7348 | return 0; |
| 7349 | } |
| 7350 | |
| 7351 | _ACEOF |
| 7352 | if ac_fn_c_try_link "$LINENO"; then : |
| 7353 | |
| 7354 | tmp_gmtime_r="yes" |
| 7355 | |
| 7356 | else |
| 7357 | |
| 7358 | tmp_gmtime_r="no" |
| 7359 | |
| 7360 | fi |
| 7361 | rm -f core conftest.err conftest.$ac_objext \ |
| 7362 | conftest$ac_exeext conftest.$ac_ext |
| 7363 | if test "$tmp_gmtime_r" = "yes"; then |
| 7364 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7365 | /* end confdefs.h. */ |
| 7366 | |
| 7367 | #include <sys/types.h> |
| 7368 | #include <time.h> |
| 7369 | |
| 7370 | _ACEOF |
| 7371 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7372 | $EGREP "gmtime_r" >/dev/null 2>&1; then : |
| 7373 | |
| 7374 | tmp_gmtime_r="proto_declared" |
| 7375 | |
| 7376 | else |
| 7377 | |
| 7378 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7379 | /* end confdefs.h. */ |
| 7380 | |
| 7381 | #define _REENTRANT |
| 7382 | #include <sys/types.h> |
| 7383 | #include <time.h> |
| 7384 | |
| 7385 | _ACEOF |
| 7386 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7387 | $EGREP "gmtime_r" >/dev/null 2>&1; then : |
| 7388 | |
| 7389 | tmp_gmtime_r="proto_needs_reentrant" |
| 7390 | tmp_need_reentrant="yes" |
| 7391 | |
| 7392 | fi |
| 7393 | rm -f conftest* |
| 7394 | |
| 7395 | |
| 7396 | fi |
| 7397 | rm -f conftest* |
| 7398 | |
| 7399 | fi |
| 7400 | |
| 7401 | fi |
| 7402 | if test "$tmp_need_reentrant" = "no"; then |
| 7403 | |
| 7404 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7405 | /* end confdefs.h. */ |
| 7406 | |
| 7407 | |
| 7408 | #define localtime_r innocuous_localtime_r |
| 7409 | #ifdef __STDC__ |
| 7410 | # include <limits.h> |
| 7411 | #else |
| 7412 | # include <assert.h> |
| 7413 | #endif |
| 7414 | #undef localtime_r |
| 7415 | #ifdef __cplusplus |
| 7416 | extern "C" |
| 7417 | #endif |
| 7418 | char localtime_r (); |
| 7419 | #if defined __stub_localtime_r || defined __stub___localtime_r |
| 7420 | choke me |
| 7421 | #endif |
| 7422 | |
| 7423 | int main (void) |
| 7424 | { |
| 7425 | return localtime_r (); |
| 7426 | ; |
| 7427 | return 0; |
| 7428 | } |
| 7429 | |
| 7430 | _ACEOF |
| 7431 | if ac_fn_c_try_link "$LINENO"; then : |
| 7432 | |
| 7433 | tmp_localtime_r="yes" |
| 7434 | |
| 7435 | else |
| 7436 | |
| 7437 | tmp_localtime_r="no" |
| 7438 | |
| 7439 | fi |
| 7440 | rm -f core conftest.err conftest.$ac_objext \ |
| 7441 | conftest$ac_exeext conftest.$ac_ext |
| 7442 | if test "$tmp_localtime_r" = "yes"; then |
| 7443 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7444 | /* end confdefs.h. */ |
| 7445 | |
| 7446 | #include <sys/types.h> |
| 7447 | #include <time.h> |
| 7448 | |
| 7449 | _ACEOF |
| 7450 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7451 | $EGREP "localtime_r" >/dev/null 2>&1; then : |
| 7452 | |
| 7453 | tmp_localtime_r="proto_declared" |
| 7454 | |
| 7455 | else |
| 7456 | |
| 7457 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7458 | /* end confdefs.h. */ |
| 7459 | |
| 7460 | #define _REENTRANT |
| 7461 | #include <sys/types.h> |
| 7462 | #include <time.h> |
| 7463 | |
| 7464 | _ACEOF |
| 7465 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7466 | $EGREP "localtime_r" >/dev/null 2>&1; then : |
| 7467 | |
| 7468 | tmp_localtime_r="proto_needs_reentrant" |
| 7469 | tmp_need_reentrant="yes" |
| 7470 | |
| 7471 | fi |
| 7472 | rm -f conftest* |
| 7473 | |
| 7474 | |
| 7475 | fi |
| 7476 | rm -f conftest* |
| 7477 | |
| 7478 | fi |
| 7479 | |
| 7480 | fi |
| 7481 | if test "$tmp_need_reentrant" = "no"; then |
| 7482 | |
| 7483 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7484 | /* end confdefs.h. */ |
| 7485 | |
| 7486 | |
| 7487 | #define strerror_r innocuous_strerror_r |
| 7488 | #ifdef __STDC__ |
| 7489 | # include <limits.h> |
| 7490 | #else |
| 7491 | # include <assert.h> |
| 7492 | #endif |
| 7493 | #undef strerror_r |
| 7494 | #ifdef __cplusplus |
| 7495 | extern "C" |
| 7496 | #endif |
| 7497 | char strerror_r (); |
| 7498 | #if defined __stub_strerror_r || defined __stub___strerror_r |
| 7499 | choke me |
| 7500 | #endif |
| 7501 | |
| 7502 | int main (void) |
| 7503 | { |
| 7504 | return strerror_r (); |
| 7505 | ; |
| 7506 | return 0; |
| 7507 | } |
| 7508 | |
| 7509 | _ACEOF |
| 7510 | if ac_fn_c_try_link "$LINENO"; then : |
| 7511 | |
| 7512 | tmp_strerror_r="yes" |
| 7513 | |
| 7514 | else |
| 7515 | |
| 7516 | tmp_strerror_r="no" |
| 7517 | |
| 7518 | fi |
| 7519 | rm -f core conftest.err conftest.$ac_objext \ |
| 7520 | conftest$ac_exeext conftest.$ac_ext |
| 7521 | if test "$tmp_strerror_r" = "yes"; then |
| 7522 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7523 | /* end confdefs.h. */ |
| 7524 | |
| 7525 | #include <sys/types.h> |
| 7526 | #include <string.h> |
| 7527 | |
| 7528 | _ACEOF |
| 7529 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7530 | $EGREP "strerror_r" >/dev/null 2>&1; then : |
| 7531 | |
| 7532 | tmp_strerror_r="proto_declared" |
| 7533 | |
| 7534 | else |
| 7535 | |
| 7536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7537 | /* end confdefs.h. */ |
| 7538 | |
| 7539 | #define _REENTRANT |
| 7540 | #include <sys/types.h> |
| 7541 | #include <string.h> |
| 7542 | |
| 7543 | _ACEOF |
| 7544 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7545 | $EGREP "strerror_r" >/dev/null 2>&1; then : |
| 7546 | |
| 7547 | tmp_strerror_r="proto_needs_reentrant" |
| 7548 | tmp_need_reentrant="yes" |
| 7549 | |
| 7550 | fi |
| 7551 | rm -f conftest* |
| 7552 | |
| 7553 | |
| 7554 | fi |
| 7555 | rm -f conftest* |
| 7556 | |
| 7557 | fi |
| 7558 | |
| 7559 | fi |
| 7560 | if test "$tmp_need_reentrant" = "no"; then |
| 7561 | |
| 7562 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7563 | /* end confdefs.h. */ |
| 7564 | |
| 7565 | |
| 7566 | #define strtok_r innocuous_strtok_r |
| 7567 | #ifdef __STDC__ |
| 7568 | # include <limits.h> |
| 7569 | #else |
| 7570 | # include <assert.h> |
| 7571 | #endif |
| 7572 | #undef strtok_r |
| 7573 | #ifdef __cplusplus |
| 7574 | extern "C" |
| 7575 | #endif |
| 7576 | char strtok_r (); |
| 7577 | #if defined __stub_strtok_r || defined __stub___strtok_r |
| 7578 | choke me |
| 7579 | #endif |
| 7580 | |
| 7581 | int main (void) |
| 7582 | { |
| 7583 | return strtok_r (); |
| 7584 | ; |
| 7585 | return 0; |
| 7586 | } |
| 7587 | |
| 7588 | _ACEOF |
| 7589 | if ac_fn_c_try_link "$LINENO"; then : |
| 7590 | |
| 7591 | tmp_strtok_r="yes" |
| 7592 | |
| 7593 | else |
| 7594 | |
| 7595 | tmp_strtok_r="no" |
| 7596 | |
| 7597 | fi |
| 7598 | rm -f core conftest.err conftest.$ac_objext \ |
| 7599 | conftest$ac_exeext conftest.$ac_ext |
| 7600 | if test "$tmp_strtok_r" = "yes"; then |
| 7601 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7602 | /* end confdefs.h. */ |
| 7603 | |
| 7604 | #include <sys/types.h> |
| 7605 | #include <string.h> |
| 7606 | |
| 7607 | _ACEOF |
| 7608 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7609 | $EGREP "strtok_r" >/dev/null 2>&1; then : |
| 7610 | |
| 7611 | tmp_strtok_r="proto_declared" |
| 7612 | |
| 7613 | else |
| 7614 | |
| 7615 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7616 | /* end confdefs.h. */ |
| 7617 | |
| 7618 | #define _REENTRANT |
| 7619 | #include <sys/types.h> |
| 7620 | #include <string.h> |
| 7621 | |
| 7622 | _ACEOF |
| 7623 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7624 | $EGREP "strtok_r" >/dev/null 2>&1; then : |
| 7625 | |
| 7626 | tmp_strtok_r="proto_needs_reentrant" |
| 7627 | tmp_need_reentrant="yes" |
| 7628 | |
| 7629 | fi |
| 7630 | rm -f conftest* |
| 7631 | |
| 7632 | |
| 7633 | fi |
| 7634 | rm -f conftest* |
| 7635 | |
| 7636 | fi |
| 7637 | |
| 7638 | fi |
| 7639 | if test "$tmp_need_reentrant" = "no"; then |
| 7640 | |
| 7641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7642 | /* end confdefs.h. */ |
| 7643 | |
| 7644 | |
| 7645 | #define inet_ntoa_r innocuous_inet_ntoa_r |
| 7646 | #ifdef __STDC__ |
| 7647 | # include <limits.h> |
| 7648 | #else |
| 7649 | # include <assert.h> |
| 7650 | #endif |
| 7651 | #undef inet_ntoa_r |
| 7652 | #ifdef __cplusplus |
| 7653 | extern "C" |
| 7654 | #endif |
| 7655 | char inet_ntoa_r (); |
| 7656 | #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r |
| 7657 | choke me |
| 7658 | #endif |
| 7659 | |
| 7660 | int main (void) |
| 7661 | { |
| 7662 | return inet_ntoa_r (); |
| 7663 | ; |
| 7664 | return 0; |
| 7665 | } |
| 7666 | |
| 7667 | _ACEOF |
| 7668 | if ac_fn_c_try_link "$LINENO"; then : |
| 7669 | |
| 7670 | tmp_inet_ntoa_r="yes" |
| 7671 | |
| 7672 | else |
| 7673 | |
| 7674 | tmp_inet_ntoa_r="no" |
| 7675 | |
| 7676 | fi |
| 7677 | rm -f core conftest.err conftest.$ac_objext \ |
| 7678 | conftest$ac_exeext conftest.$ac_ext |
| 7679 | if test "$tmp_inet_ntoa_r" = "yes"; then |
| 7680 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7681 | /* end confdefs.h. */ |
| 7682 | |
| 7683 | #include <sys/types.h> |
| 7684 | #include <sys/socket.h> |
| 7685 | #include <netinet/in.h> |
| 7686 | #include <arpa/inet.h> |
| 7687 | |
| 7688 | _ACEOF |
| 7689 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7690 | $EGREP "inet_ntoa_r" >/dev/null 2>&1; then : |
| 7691 | |
| 7692 | tmp_inet_ntoa_r="proto_declared" |
| 7693 | |
| 7694 | else |
| 7695 | |
| 7696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7697 | /* end confdefs.h. */ |
| 7698 | |
| 7699 | #define _REENTRANT |
| 7700 | #include <sys/types.h> |
| 7701 | #include <sys/socket.h> |
| 7702 | #include <netinet/in.h> |
| 7703 | #include <arpa/inet.h> |
| 7704 | |
| 7705 | _ACEOF |
| 7706 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7707 | $EGREP "inet_ntoa_r" >/dev/null 2>&1; then : |
| 7708 | |
| 7709 | tmp_inet_ntoa_r="proto_needs_reentrant" |
| 7710 | tmp_need_reentrant="yes" |
| 7711 | |
| 7712 | fi |
| 7713 | rm -f conftest* |
| 7714 | |
| 7715 | |
| 7716 | fi |
| 7717 | rm -f conftest* |
| 7718 | |
| 7719 | fi |
| 7720 | |
| 7721 | fi |
| 7722 | if test "$tmp_need_reentrant" = "no"; then |
| 7723 | |
| 7724 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7725 | /* end confdefs.h. */ |
| 7726 | |
| 7727 | |
| 7728 | #define gethostbyaddr_r innocuous_gethostbyaddr_r |
| 7729 | #ifdef __STDC__ |
| 7730 | # include <limits.h> |
| 7731 | #else |
| 7732 | # include <assert.h> |
| 7733 | #endif |
| 7734 | #undef gethostbyaddr_r |
| 7735 | #ifdef __cplusplus |
| 7736 | extern "C" |
| 7737 | #endif |
| 7738 | char gethostbyaddr_r (); |
| 7739 | #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r |
| 7740 | choke me |
| 7741 | #endif |
| 7742 | |
| 7743 | int main (void) |
| 7744 | { |
| 7745 | return gethostbyaddr_r (); |
| 7746 | ; |
| 7747 | return 0; |
| 7748 | } |
| 7749 | |
| 7750 | _ACEOF |
| 7751 | if ac_fn_c_try_link "$LINENO"; then : |
| 7752 | |
| 7753 | tmp_gethostbyaddr_r="yes" |
| 7754 | |
| 7755 | else |
| 7756 | |
| 7757 | tmp_gethostbyaddr_r="no" |
| 7758 | |
| 7759 | fi |
| 7760 | rm -f core conftest.err conftest.$ac_objext \ |
| 7761 | conftest$ac_exeext conftest.$ac_ext |
| 7762 | if test "$tmp_gethostbyaddr_r" = "yes"; then |
| 7763 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7764 | /* end confdefs.h. */ |
| 7765 | |
| 7766 | #include <sys/types.h> |
| 7767 | #include <netdb.h> |
| 7768 | |
| 7769 | _ACEOF |
| 7770 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7771 | $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then : |
| 7772 | |
| 7773 | tmp_gethostbyaddr_r="proto_declared" |
| 7774 | |
| 7775 | else |
| 7776 | |
| 7777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7778 | /* end confdefs.h. */ |
| 7779 | |
| 7780 | #define _REENTRANT |
| 7781 | #include <sys/types.h> |
| 7782 | #include <netdb.h> |
| 7783 | |
| 7784 | _ACEOF |
| 7785 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7786 | $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then : |
| 7787 | |
| 7788 | tmp_gethostbyaddr_r="proto_needs_reentrant" |
| 7789 | tmp_need_reentrant="yes" |
| 7790 | |
| 7791 | fi |
| 7792 | rm -f conftest* |
| 7793 | |
| 7794 | |
| 7795 | fi |
| 7796 | rm -f conftest* |
| 7797 | |
| 7798 | fi |
| 7799 | |
| 7800 | fi |
| 7801 | if test "$tmp_need_reentrant" = "no"; then |
| 7802 | |
| 7803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7804 | /* end confdefs.h. */ |
| 7805 | |
| 7806 | |
| 7807 | #define gethostbyname_r innocuous_gethostbyname_r |
| 7808 | #ifdef __STDC__ |
| 7809 | # include <limits.h> |
| 7810 | #else |
| 7811 | # include <assert.h> |
| 7812 | #endif |
| 7813 | #undef gethostbyname_r |
| 7814 | #ifdef __cplusplus |
| 7815 | extern "C" |
| 7816 | #endif |
| 7817 | char gethostbyname_r (); |
| 7818 | #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r |
| 7819 | choke me |
| 7820 | #endif |
| 7821 | |
| 7822 | int main (void) |
| 7823 | { |
| 7824 | return gethostbyname_r (); |
| 7825 | ; |
| 7826 | return 0; |
| 7827 | } |
| 7828 | |
| 7829 | _ACEOF |
| 7830 | if ac_fn_c_try_link "$LINENO"; then : |
| 7831 | |
| 7832 | tmp_gethostbyname_r="yes" |
| 7833 | |
| 7834 | else |
| 7835 | |
| 7836 | tmp_gethostbyname_r="no" |
| 7837 | |
| 7838 | fi |
| 7839 | rm -f core conftest.err conftest.$ac_objext \ |
| 7840 | conftest$ac_exeext conftest.$ac_ext |
| 7841 | if test "$tmp_gethostbyname_r" = "yes"; then |
| 7842 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7843 | /* end confdefs.h. */ |
| 7844 | |
| 7845 | #include <sys/types.h> |
| 7846 | #include <netdb.h> |
| 7847 | |
| 7848 | _ACEOF |
| 7849 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7850 | $EGREP "gethostbyname_r" >/dev/null 2>&1; then : |
| 7851 | |
| 7852 | tmp_gethostbyname_r="proto_declared" |
| 7853 | |
| 7854 | else |
| 7855 | |
| 7856 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7857 | /* end confdefs.h. */ |
| 7858 | |
| 7859 | #define _REENTRANT |
| 7860 | #include <sys/types.h> |
| 7861 | #include <netdb.h> |
| 7862 | |
| 7863 | _ACEOF |
| 7864 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7865 | $EGREP "gethostbyname_r" >/dev/null 2>&1; then : |
| 7866 | |
| 7867 | tmp_gethostbyname_r="proto_needs_reentrant" |
| 7868 | tmp_need_reentrant="yes" |
| 7869 | |
| 7870 | fi |
| 7871 | rm -f conftest* |
| 7872 | |
| 7873 | |
| 7874 | fi |
| 7875 | rm -f conftest* |
| 7876 | |
| 7877 | fi |
| 7878 | |
| 7879 | fi |
| 7880 | if test "$tmp_need_reentrant" = "no"; then |
| 7881 | |
| 7882 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7883 | /* end confdefs.h. */ |
| 7884 | |
| 7885 | |
| 7886 | #define getprotobyname_r innocuous_getprotobyname_r |
| 7887 | #ifdef __STDC__ |
| 7888 | # include <limits.h> |
| 7889 | #else |
| 7890 | # include <assert.h> |
| 7891 | #endif |
| 7892 | #undef getprotobyname_r |
| 7893 | #ifdef __cplusplus |
| 7894 | extern "C" |
| 7895 | #endif |
| 7896 | char getprotobyname_r (); |
| 7897 | #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r |
| 7898 | choke me |
| 7899 | #endif |
| 7900 | |
| 7901 | int main (void) |
| 7902 | { |
| 7903 | return getprotobyname_r (); |
| 7904 | ; |
| 7905 | return 0; |
| 7906 | } |
| 7907 | |
| 7908 | _ACEOF |
| 7909 | if ac_fn_c_try_link "$LINENO"; then : |
| 7910 | |
| 7911 | tmp_getprotobyname_r="yes" |
| 7912 | |
| 7913 | else |
| 7914 | |
| 7915 | tmp_getprotobyname_r="no" |
| 7916 | |
| 7917 | fi |
| 7918 | rm -f core conftest.err conftest.$ac_objext \ |
| 7919 | conftest$ac_exeext conftest.$ac_ext |
| 7920 | if test "$tmp_getprotobyname_r" = "yes"; then |
| 7921 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7922 | /* end confdefs.h. */ |
| 7923 | |
| 7924 | #include <sys/types.h> |
| 7925 | #include <netdb.h> |
| 7926 | |
| 7927 | _ACEOF |
| 7928 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7929 | $EGREP "getprotobyname_r" >/dev/null 2>&1; then : |
| 7930 | |
| 7931 | tmp_getprotobyname_r="proto_declared" |
| 7932 | |
| 7933 | else |
| 7934 | |
| 7935 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7936 | /* end confdefs.h. */ |
| 7937 | |
| 7938 | #define _REENTRANT |
| 7939 | #include <sys/types.h> |
| 7940 | #include <netdb.h> |
| 7941 | |
| 7942 | _ACEOF |
| 7943 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7944 | $EGREP "getprotobyname_r" >/dev/null 2>&1; then : |
| 7945 | |
| 7946 | tmp_getprotobyname_r="proto_needs_reentrant" |
| 7947 | tmp_need_reentrant="yes" |
| 7948 | |
| 7949 | fi |
| 7950 | rm -f conftest* |
| 7951 | |
| 7952 | |
| 7953 | fi |
| 7954 | rm -f conftest* |
| 7955 | |
| 7956 | fi |
| 7957 | |
| 7958 | fi |
| 7959 | if test "$tmp_need_reentrant" = "no"; then |
| 7960 | |
| 7961 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7962 | /* end confdefs.h. */ |
| 7963 | |
| 7964 | |
| 7965 | #define getservbyport_r innocuous_getservbyport_r |
| 7966 | #ifdef __STDC__ |
| 7967 | # include <limits.h> |
| 7968 | #else |
| 7969 | # include <assert.h> |
| 7970 | #endif |
| 7971 | #undef getservbyport_r |
| 7972 | #ifdef __cplusplus |
| 7973 | extern "C" |
| 7974 | #endif |
| 7975 | char getservbyport_r (); |
| 7976 | #if defined __stub_getservbyport_r || defined __stub___getservbyport_r |
| 7977 | choke me |
| 7978 | #endif |
| 7979 | |
| 7980 | int main (void) |
| 7981 | { |
| 7982 | return getservbyport_r (); |
| 7983 | ; |
| 7984 | return 0; |
| 7985 | } |
| 7986 | |
| 7987 | _ACEOF |
| 7988 | if ac_fn_c_try_link "$LINENO"; then : |
| 7989 | |
| 7990 | tmp_getservbyport_r="yes" |
| 7991 | |
| 7992 | else |
| 7993 | |
| 7994 | tmp_getservbyport_r="no" |
| 7995 | |
| 7996 | fi |
| 7997 | rm -f core conftest.err conftest.$ac_objext \ |
| 7998 | conftest$ac_exeext conftest.$ac_ext |
| 7999 | if test "$tmp_getservbyport_r" = "yes"; then |
| 8000 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8001 | /* end confdefs.h. */ |
| 8002 | |
| 8003 | #include <sys/types.h> |
| 8004 | #include <netdb.h> |
| 8005 | |
| 8006 | _ACEOF |
| 8007 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 8008 | $EGREP "getservbyport_r" >/dev/null 2>&1; then : |
| 8009 | |
| 8010 | tmp_getservbyport_r="proto_declared" |
| 8011 | |
| 8012 | else |
| 8013 | |
| 8014 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8015 | /* end confdefs.h. */ |
| 8016 | |
| 8017 | #define _REENTRANT |
| 8018 | #include <sys/types.h> |
| 8019 | #include <netdb.h> |
| 8020 | |
| 8021 | _ACEOF |
| 8022 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 8023 | $EGREP "getservbyport_r" >/dev/null 2>&1; then : |
| 8024 | |
| 8025 | tmp_getservbyport_r="proto_needs_reentrant" |
| 8026 | tmp_need_reentrant="yes" |
| 8027 | |
| 8028 | fi |
| 8029 | rm -f conftest* |
| 8030 | |
| 8031 | |
| 8032 | fi |
| 8033 | rm -f conftest* |
| 8034 | |
| 8035 | fi |
| 8036 | |
| 8037 | fi |
| 8038 | |
| 8039 | fi |
| 8040 | if test "$tmp_need_reentrant" = "yes"; then |
| 8041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8042 | $as_echo "yes" >&6; } |
| 8043 | else |
| 8044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8045 | $as_echo "no" >&6; } |
| 8046 | fi |
| 8047 | fi |
| 8048 | # |
| 8049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5 |
| 8050 | $as_echo_n "checking if _REENTRANT is onwards defined... " >&6; } |
| 8051 | if test "$tmp_reentrant_initially_defined" = "yes" || |
| 8052 | test "$tmp_need_reentrant" = "yes"; then |
| 8053 | |
| 8054 | |
| 8055 | $as_echo "#define NEED_REENTRANT 1" >>confdefs.h |
| 8056 | |
| 8057 | cat >>confdefs.h <<_EOF |
| 8058 | #ifndef _REENTRANT |
| 8059 | # define _REENTRANT |
| 8060 | #endif |
| 8061 | _EOF |
| 8062 | |
| 8063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8064 | $as_echo "yes" >&6; } |
| 8065 | else |
| 8066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8067 | $as_echo "no" >&6; } |
| 8068 | fi |
| 8069 | # |
| 8070 | |
| 8071 | |
| 8072 | # Check whether --enable-largefile was given. |
| 8073 | if test "${enable_largefile+set}" = set; then : |
| 8074 | enableval=$enable_largefile; |
| 8075 | fi |
| 8076 | |
| 8077 | if test "$enable_largefile" != no; then |
| 8078 | |
| 8079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
| 8080 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } |
| 8081 | if ${ac_cv_sys_largefile_CC+:} false; then : |
| 8082 | $as_echo_n "(cached) " >&6 |
| 8083 | else |
| 8084 | ac_cv_sys_largefile_CC=no |
| 8085 | if test "$GCC" != yes; then |
| 8086 | ac_save_CC=$CC |
| 8087 | while :; do |
| 8088 | # IRIX 6.2 and later do not support large files by default, |
| 8089 | # so use the C compiler's -n32 option if that helps. |
| 8090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8091 | /* end confdefs.h. */ |
| 8092 | #include <sys/types.h> |
| 8093 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 8094 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 8095 | since some C++ compilers masquerading as C compilers |
| 8096 | incorrectly reject 9223372036854775807. */ |
| 8097 | #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) |
| 8098 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 8099 | && LARGE_OFF_T % 2147483647 == 1) |
| 8100 | ? 1 : -1]; |
| 8101 | int main (void) |
| 8102 | { |
| 8103 | |
| 8104 | ; |
| 8105 | return 0; |
| 8106 | } |
| 8107 | _ACEOF |
| 8108 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8109 | break |
| 8110 | fi |
| 8111 | rm -f core conftest.err conftest.$ac_objext |
| 8112 | CC="$CC -n32" |
| 8113 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8114 | ac_cv_sys_largefile_CC=' -n32'; break |
| 8115 | fi |
| 8116 | rm -f core conftest.err conftest.$ac_objext |
| 8117 | break |
| 8118 | done |
| 8119 | CC=$ac_save_CC |
| 8120 | rm -f conftest.$ac_ext |
| 8121 | fi |
| 8122 | fi |
| 8123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
| 8124 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } |
| 8125 | if test "$ac_cv_sys_largefile_CC" != no; then |
| 8126 | CC=$CC$ac_cv_sys_largefile_CC |
| 8127 | fi |
| 8128 | |
| 8129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
| 8130 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } |
| 8131 | if ${ac_cv_sys_file_offset_bits+:} false; then : |
| 8132 | $as_echo_n "(cached) " >&6 |
| 8133 | else |
| 8134 | while :; do |
| 8135 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8136 | /* end confdefs.h. */ |
| 8137 | #include <sys/types.h> |
| 8138 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 8139 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 8140 | since some C++ compilers masquerading as C compilers |
| 8141 | incorrectly reject 9223372036854775807. */ |
| 8142 | #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) |
| 8143 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 8144 | && LARGE_OFF_T % 2147483647 == 1) |
| 8145 | ? 1 : -1]; |
| 8146 | int main (void) |
| 8147 | { |
| 8148 | |
| 8149 | ; |
| 8150 | return 0; |
| 8151 | } |
| 8152 | _ACEOF |
| 8153 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8154 | ac_cv_sys_file_offset_bits=no; break |
| 8155 | fi |
| 8156 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8158 | /* end confdefs.h. */ |
| 8159 | #define _FILE_OFFSET_BITS 64 |
| 8160 | #include <sys/types.h> |
| 8161 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 8162 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 8163 | since some C++ compilers masquerading as C compilers |
| 8164 | incorrectly reject 9223372036854775807. */ |
| 8165 | #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) |
| 8166 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 8167 | && LARGE_OFF_T % 2147483647 == 1) |
| 8168 | ? 1 : -1]; |
| 8169 | int main (void) |
| 8170 | { |
| 8171 | |
| 8172 | ; |
| 8173 | return 0; |
| 8174 | } |
| 8175 | _ACEOF |
| 8176 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8177 | ac_cv_sys_file_offset_bits=64; break |
| 8178 | fi |
| 8179 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8180 | ac_cv_sys_file_offset_bits=unknown |
| 8181 | break |
| 8182 | done |
| 8183 | fi |
| 8184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
| 8185 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } |
| 8186 | case $ac_cv_sys_file_offset_bits in #( |
| 8187 | no | unknown) ;; |
| 8188 | *) |
| 8189 | cat >>confdefs.h <<_ACEOF |
| 8190 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
| 8191 | _ACEOF |
| 8192 | ;; |
| 8193 | esac |
| 8194 | rm -rf conftest* |
| 8195 | if test $ac_cv_sys_file_offset_bits = unknown; then |
| 8196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 |
| 8197 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } |
| 8198 | if ${ac_cv_sys_large_files+:} false; then : |
| 8199 | $as_echo_n "(cached) " >&6 |
| 8200 | else |
| 8201 | while :; do |
| 8202 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8203 | /* end confdefs.h. */ |
| 8204 | #include <sys/types.h> |
| 8205 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 8206 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 8207 | since some C++ compilers masquerading as C compilers |
| 8208 | incorrectly reject 9223372036854775807. */ |
| 8209 | #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) |
| 8210 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 8211 | && LARGE_OFF_T % 2147483647 == 1) |
| 8212 | ? 1 : -1]; |
| 8213 | int main (void) |
| 8214 | { |
| 8215 | |
| 8216 | ; |
| 8217 | return 0; |
| 8218 | } |
| 8219 | _ACEOF |
| 8220 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8221 | ac_cv_sys_large_files=no; break |
| 8222 | fi |
| 8223 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8225 | /* end confdefs.h. */ |
| 8226 | #define _LARGE_FILES 1 |
| 8227 | #include <sys/types.h> |
| 8228 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 8229 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 8230 | since some C++ compilers masquerading as C compilers |
| 8231 | incorrectly reject 9223372036854775807. */ |
| 8232 | #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) |
| 8233 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 8234 | && LARGE_OFF_T % 2147483647 == 1) |
| 8235 | ? 1 : -1]; |
| 8236 | int main (void) |
| 8237 | { |
| 8238 | |
| 8239 | ; |
| 8240 | return 0; |
| 8241 | } |
| 8242 | _ACEOF |
| 8243 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8244 | ac_cv_sys_large_files=1; break |
| 8245 | fi |
| 8246 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8247 | ac_cv_sys_large_files=unknown |
| 8248 | break |
| 8249 | done |
| 8250 | fi |
| 8251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
| 8252 | $as_echo "$ac_cv_sys_large_files" >&6; } |
| 8253 | case $ac_cv_sys_large_files in #( |
| 8254 | no | unknown) ;; |
| 8255 | *) |
| 8256 | cat >>confdefs.h <<_ACEOF |
| 8257 | #define _LARGE_FILES $ac_cv_sys_large_files |
| 8258 | _ACEOF |
| 8259 | ;; |
| 8260 | esac |
| 8261 | rm -rf conftest* |
| 8262 | fi |
| 8263 | |
| 8264 | |
| 8265 | fi |
| 8266 | |
| 8267 | |
| 8268 | case `pwd` in |
| 8269 | *\ * | *\ *) |
| 8270 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
| 8271 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
| 8272 | esac |
| 8273 | |
| 8274 | |
| 8275 | |
| 8276 | macro_version='2.4.6' |
| 8277 | macro_revision='2.4.6' |
| 8278 | |
| 8279 | |
| 8280 | |
| 8281 | |
| 8282 | |
| 8283 | |
| 8284 | |
| 8285 | |
| 8286 | |
| 8287 | |
| 8288 | |
| 8289 | |
| 8290 | |
| 8291 | ltmain=$ac_aux_dir/ltmain.sh |
| 8292 | |
| 8293 | # Backslashify metacharacters that are still active within |
| 8294 | # double-quoted strings. |
| 8295 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
| 8296 | |
| 8297 | # Same as above, but do not quote variable references. |
| 8298 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
| 8299 | |
| 8300 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 8301 | # double_quote_subst'ed string. |
| 8302 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 8303 | |
| 8304 | # Sed substitution to delay expansion of an escaped single quote. |
| 8305 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 8306 | |
| 8307 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 8308 | no_glob_subst='s/\*/\\\*/g' |
| 8309 | |
| 8310 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 8311 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
| 8312 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
| 8313 | |
| 8314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
| 8315 | $as_echo_n "checking how to print strings... " >&6; } |
| 8316 | # Test print first, because it will be a builtin if present. |
| 8317 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
| 8318 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 8319 | ECHO='print -r --' |
| 8320 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 8321 | ECHO='printf %s\n' |
| 8322 | else |
| 8323 | # Use this function as a fallback that always works. |
| 8324 | func_fallback_echo () |
| 8325 | { |
| 8326 | eval 'cat <<_LTECHO_EOF |
| 8327 | $1 |
| 8328 | _LTECHO_EOF' |
| 8329 | } |
| 8330 | ECHO='func_fallback_echo' |
| 8331 | fi |
| 8332 | |
| 8333 | # func_echo_all arg... |
| 8334 | # Invoke $ECHO with all args, space-separated. |
| 8335 | func_echo_all () |
| 8336 | { |
| 8337 | $ECHO "" |
| 8338 | } |
| 8339 | |
| 8340 | case $ECHO in |
| 8341 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
| 8342 | $as_echo "printf" >&6; } ;; |
| 8343 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 |
| 8344 | $as_echo "print -r" >&6; } ;; |
| 8345 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 |
| 8346 | $as_echo "cat" >&6; } ;; |
| 8347 | esac |
| 8348 | |
| 8349 | |
| 8350 | |
| 8351 | |
| 8352 | |
| 8353 | |
| 8354 | |
| 8355 | |
| 8356 | |
| 8357 | |
| 8358 | |
| 8359 | |
| 8360 | |
| 8361 | |
| 8362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 8363 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
| 8364 | if ${ac_cv_path_SED+:} false; then : |
| 8365 | $as_echo_n "(cached) " >&6 |
| 8366 | else |
| 8367 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 8368 | for ac_i in 1 2 3 4 5 6 7; do |
| 8369 | ac_script="$ac_script$as_nl$ac_script" |
| 8370 | done |
| 8371 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 8372 | { ac_script=; unset ac_script;} |
| 8373 | if test -z "$SED"; then |
| 8374 | ac_path_SED_found=false |
| 8375 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 8376 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8377 | for as_dir in $PATH |
| 8378 | do |
| 8379 | IFS=$as_save_IFS |
| 8380 | test -z "$as_dir" && as_dir=. |
| 8381 | for ac_prog in sed gsed; do |
| 8382 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8383 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
| 8384 | as_fn_executable_p "$ac_path_SED" || continue |
| 8385 | # Check for GNU ac_path_SED and select it if it is found. |
| 8386 | # Check for GNU $ac_path_SED |
| 8387 | case `"$ac_path_SED" --version 2>&1` in |
| 8388 | *GNU*) |
| 8389 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 8390 | *) |
| 8391 | ac_count=0 |
| 8392 | $as_echo_n 0123456789 >"conftest.in" |
| 8393 | while : |
| 8394 | do |
| 8395 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 8396 | mv "conftest.tmp" "conftest.in" |
| 8397 | cp "conftest.in" "conftest.nl" |
| 8398 | $as_echo '' >> "conftest.nl" |
| 8399 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 8400 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 8401 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 8402 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 8403 | # Best one so far, save it but keep looking for a better one |
| 8404 | ac_cv_path_SED="$ac_path_SED" |
| 8405 | ac_path_SED_max=$ac_count |
| 8406 | fi |
| 8407 | # 10*(2^10) chars as input seems more than enough |
| 8408 | test $ac_count -gt 10 && break |
| 8409 | done |
| 8410 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 8411 | esac |
| 8412 | |
| 8413 | $ac_path_SED_found && break 3 |
| 8414 | done |
| 8415 | done |
| 8416 | done |
| 8417 | IFS=$as_save_IFS |
| 8418 | if test -z "$ac_cv_path_SED"; then |
| 8419 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| 8420 | fi |
| 8421 | else |
| 8422 | ac_cv_path_SED=$SED |
| 8423 | fi |
| 8424 | |
| 8425 | fi |
| 8426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 8427 | $as_echo "$ac_cv_path_SED" >&6; } |
| 8428 | SED="$ac_cv_path_SED" |
| 8429 | rm -f conftest.sed |
| 8430 | |
| 8431 | test -z "$SED" && SED=sed |
| 8432 | Xsed="$SED -e 1s/^X//" |
| 8433 | |
| 8434 | |
| 8435 | |
| 8436 | |
| 8437 | |
| 8438 | |
| 8439 | |
| 8440 | |
| 8441 | |
| 8442 | |
| 8443 | |
| 8444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
| 8445 | $as_echo_n "checking for fgrep... " >&6; } |
| 8446 | if ${ac_cv_path_FGREP+:} false; then : |
| 8447 | $as_echo_n "(cached) " >&6 |
| 8448 | else |
| 8449 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 8450 | then ac_cv_path_FGREP="$GREP -F" |
| 8451 | else |
| 8452 | if test -z "$FGREP"; then |
| 8453 | ac_path_FGREP_found=false |
| 8454 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 8455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8456 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 8457 | do |
| 8458 | IFS=$as_save_IFS |
| 8459 | test -z "$as_dir" && as_dir=. |
| 8460 | for ac_prog in fgrep; do |
| 8461 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8462 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 8463 | as_fn_executable_p "$ac_path_FGREP" || continue |
| 8464 | # Check for GNU ac_path_FGREP and select it if it is found. |
| 8465 | # Check for GNU $ac_path_FGREP |
| 8466 | case `"$ac_path_FGREP" --version 2>&1` in |
| 8467 | *GNU*) |
| 8468 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 8469 | *) |
| 8470 | ac_count=0 |
| 8471 | $as_echo_n 0123456789 >"conftest.in" |
| 8472 | while : |
| 8473 | do |
| 8474 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 8475 | mv "conftest.tmp" "conftest.in" |
| 8476 | cp "conftest.in" "conftest.nl" |
| 8477 | $as_echo 'FGREP' >> "conftest.nl" |
| 8478 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 8479 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 8480 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 8481 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 8482 | # Best one so far, save it but keep looking for a better one |
| 8483 | ac_cv_path_FGREP="$ac_path_FGREP" |
| 8484 | ac_path_FGREP_max=$ac_count |
| 8485 | fi |
| 8486 | # 10*(2^10) chars as input seems more than enough |
| 8487 | test $ac_count -gt 10 && break |
| 8488 | done |
| 8489 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 8490 | esac |
| 8491 | |
| 8492 | $ac_path_FGREP_found && break 3 |
| 8493 | done |
| 8494 | done |
| 8495 | done |
| 8496 | IFS=$as_save_IFS |
| 8497 | if test -z "$ac_cv_path_FGREP"; then |
| 8498 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 8499 | fi |
| 8500 | else |
| 8501 | ac_cv_path_FGREP=$FGREP |
| 8502 | fi |
| 8503 | |
| 8504 | fi |
| 8505 | fi |
| 8506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
| 8507 | $as_echo "$ac_cv_path_FGREP" >&6; } |
| 8508 | FGREP="$ac_cv_path_FGREP" |
| 8509 | |
| 8510 | |
| 8511 | test -z "$GREP" && GREP=grep |
| 8512 | |
| 8513 | |
| 8514 | |
| 8515 | |
| 8516 | |
| 8517 | |
| 8518 | |
| 8519 | |
| 8520 | |
| 8521 | |
| 8522 | |
| 8523 | |
| 8524 | |
| 8525 | |
| 8526 | |
| 8527 | |
| 8528 | |
| 8529 | |
| 8530 | |
| 8531 | # Check whether --with-gnu-ld was given. |
| 8532 | if test "${with_gnu_ld+set}" = set; then : |
| 8533 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
| 8534 | else |
| 8535 | with_gnu_ld=no |
| 8536 | fi |
| 8537 | |
| 8538 | ac_prog=ld |
| 8539 | if test yes = "$GCC"; then |
| 8540 | # Check if gcc -print-prog-name=ld gives a path. |
| 8541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 8542 | $as_echo_n "checking for ld used by $CC... " >&6; } |
| 8543 | case $host in |
| 8544 | *-*-mingw*) |
| 8545 | # gcc leaves a trailing carriage return, which upsets mingw |
| 8546 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 8547 | *) |
| 8548 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 8549 | esac |
| 8550 | case $ac_prog in |
| 8551 | # Accept absolute paths. |
| 8552 | [\\/]* | ?:[\\/]*) |
| 8553 | re_direlt='/[^/][^/]*/\.\./' |
| 8554 | # Canonicalize the pathname of ld |
| 8555 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 8556 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 8557 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 8558 | done |
| 8559 | test -z "$LD" && LD=$ac_prog |
| 8560 | ;; |
| 8561 | "") |
| 8562 | # If it fails, then pretend we aren't using GCC. |
| 8563 | ac_prog=ld |
| 8564 | ;; |
| 8565 | *) |
| 8566 | # If it is relative, then search for the first ld in PATH. |
| 8567 | with_gnu_ld=unknown |
| 8568 | ;; |
| 8569 | esac |
| 8570 | elif test yes = "$with_gnu_ld"; then |
| 8571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 8572 | $as_echo_n "checking for GNU ld... " >&6; } |
| 8573 | else |
| 8574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 8575 | $as_echo_n "checking for non-GNU ld... " >&6; } |
| 8576 | fi |
| 8577 | if ${lt_cv_path_LD+:} false; then : |
| 8578 | $as_echo_n "(cached) " >&6 |
| 8579 | else |
| 8580 | if test -z "$LD"; then |
| 8581 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 8582 | for ac_dir in $PATH; do |
| 8583 | IFS=$lt_save_ifs |
| 8584 | test -z "$ac_dir" && ac_dir=. |
| 8585 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 8586 | lt_cv_path_LD=$ac_dir/$ac_prog |
| 8587 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 8588 | # but apparently some variants of GNU ld only accept -v. |
| 8589 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 8590 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 8591 | *GNU* | *'with BFD'*) |
| 8592 | test no != "$with_gnu_ld" && break |
| 8593 | ;; |
| 8594 | *) |
| 8595 | test yes != "$with_gnu_ld" && break |
| 8596 | ;; |
| 8597 | esac |
| 8598 | fi |
| 8599 | done |
| 8600 | IFS=$lt_save_ifs |
| 8601 | else |
| 8602 | lt_cv_path_LD=$LD # Let the user override the test with a path. |
| 8603 | fi |
| 8604 | fi |
| 8605 | |
| 8606 | LD=$lt_cv_path_LD |
| 8607 | if test -n "$LD"; then |
| 8608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 8609 | $as_echo "$LD" >&6; } |
| 8610 | else |
| 8611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8612 | $as_echo "no" >&6; } |
| 8613 | fi |
| 8614 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 8615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 8616 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| 8617 | if ${lt_cv_prog_gnu_ld+:} false; then : |
| 8618 | $as_echo_n "(cached) " >&6 |
| 8619 | else |
| 8620 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 8621 | case `$LD -v 2>&1 </dev/null` in |
| 8622 | *GNU* | *'with BFD'*) |
| 8623 | lt_cv_prog_gnu_ld=yes |
| 8624 | ;; |
| 8625 | *) |
| 8626 | lt_cv_prog_gnu_ld=no |
| 8627 | ;; |
| 8628 | esac |
| 8629 | fi |
| 8630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 8631 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
| 8632 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 8633 | |
| 8634 | |
| 8635 | |
| 8636 | |
| 8637 | |
| 8638 | |
| 8639 | |
| 8640 | |
| 8641 | |
| 8642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
| 8643 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
| 8644 | if ${lt_cv_path_NM+:} false; then : |
| 8645 | $as_echo_n "(cached) " >&6 |
| 8646 | else |
| 8647 | if test -n "$NM"; then |
| 8648 | # Let the user override the test. |
| 8649 | lt_cv_path_NM=$NM |
| 8650 | else |
| 8651 | lt_nm_to_check=${ac_tool_prefix}nm |
| 8652 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 8653 | lt_nm_to_check="$lt_nm_to_check nm" |
| 8654 | fi |
| 8655 | for lt_tmp_nm in $lt_nm_to_check; do |
| 8656 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 8657 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 8658 | IFS=$lt_save_ifs |
| 8659 | test -z "$ac_dir" && ac_dir=. |
| 8660 | tmp_nm=$ac_dir/$lt_tmp_nm |
| 8661 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then |
| 8662 | # Check to see if the nm accepts a BSD-compat flag. |
| 8663 | # Adding the 'sed 1q' prevents false positives on HP-UX, which says: |
| 8664 | # nm: unknown option "B" ignored |
| 8665 | # Tru64's nm complains that /dev/null is an invalid object file |
| 8666 | # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty |
| 8667 | case $build_os in |
| 8668 | mingw*) lt_bad_file=conftest.nm/nofile ;; |
| 8669 | *) lt_bad_file=/dev/null ;; |
| 8670 | esac |
| 8671 | case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in |
| 8672 | *$lt_bad_file* | *'Invalid file or object type'*) |
| 8673 | lt_cv_path_NM="$tmp_nm -B" |
| 8674 | break 2 |
| 8675 | ;; |
| 8676 | *) |
| 8677 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 8678 | */dev/null*) |
| 8679 | lt_cv_path_NM="$tmp_nm -p" |
| 8680 | break 2 |
| 8681 | ;; |
| 8682 | *) |
| 8683 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 8684 | continue # so that we can try to find one that supports BSD flags |
| 8685 | ;; |
| 8686 | esac |
| 8687 | ;; |
| 8688 | esac |
| 8689 | fi |
| 8690 | done |
| 8691 | IFS=$lt_save_ifs |
| 8692 | done |
| 8693 | : ${lt_cv_path_NM=no} |
| 8694 | fi |
| 8695 | fi |
| 8696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
| 8697 | $as_echo "$lt_cv_path_NM" >&6; } |
| 8698 | if test no != "$lt_cv_path_NM"; then |
| 8699 | NM=$lt_cv_path_NM |
| 8700 | else |
| 8701 | # Didn't find any BSD compatible name lister, look for dumpbin. |
| 8702 | if test -n "$DUMPBIN"; then : |
| 8703 | # Let the user override the test. |
| 8704 | else |
| 8705 | if test -n "$ac_tool_prefix"; then |
| 8706 | for ac_prog in dumpbin "link -dump" |
| 8707 | do |
| 8708 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 8709 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 8710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8711 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8712 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
| 8713 | $as_echo_n "(cached) " >&6 |
| 8714 | else |
| 8715 | if test -n "$DUMPBIN"; then |
| 8716 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
| 8717 | else |
| 8718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8719 | for as_dir in $PATH |
| 8720 | do |
| 8721 | IFS=$as_save_IFS |
| 8722 | test -z "$as_dir" && as_dir=. |
| 8723 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8724 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8725 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
| 8726 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8727 | break 2 |
| 8728 | fi |
| 8729 | done |
| 8730 | done |
| 8731 | IFS=$as_save_IFS |
| 8732 | |
| 8733 | fi |
| 8734 | fi |
| 8735 | DUMPBIN=$ac_cv_prog_DUMPBIN |
| 8736 | if test -n "$DUMPBIN"; then |
| 8737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
| 8738 | $as_echo "$DUMPBIN" >&6; } |
| 8739 | else |
| 8740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8741 | $as_echo "no" >&6; } |
| 8742 | fi |
| 8743 | |
| 8744 | |
| 8745 | test -n "$DUMPBIN" && break |
| 8746 | done |
| 8747 | fi |
| 8748 | if test -z "$DUMPBIN"; then |
| 8749 | ac_ct_DUMPBIN=$DUMPBIN |
| 8750 | for ac_prog in dumpbin "link -dump" |
| 8751 | do |
| 8752 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8753 | set dummy $ac_prog; ac_word=$2 |
| 8754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8755 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8756 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
| 8757 | $as_echo_n "(cached) " >&6 |
| 8758 | else |
| 8759 | if test -n "$ac_ct_DUMPBIN"; then |
| 8760 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 8761 | else |
| 8762 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8763 | for as_dir in $PATH |
| 8764 | do |
| 8765 | IFS=$as_save_IFS |
| 8766 | test -z "$as_dir" && as_dir=. |
| 8767 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8768 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8769 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
| 8770 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8771 | break 2 |
| 8772 | fi |
| 8773 | done |
| 8774 | done |
| 8775 | IFS=$as_save_IFS |
| 8776 | |
| 8777 | fi |
| 8778 | fi |
| 8779 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 8780 | if test -n "$ac_ct_DUMPBIN"; then |
| 8781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
| 8782 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
| 8783 | else |
| 8784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8785 | $as_echo "no" >&6; } |
| 8786 | fi |
| 8787 | |
| 8788 | |
| 8789 | test -n "$ac_ct_DUMPBIN" && break |
| 8790 | done |
| 8791 | |
| 8792 | if test "x$ac_ct_DUMPBIN" = x; then |
| 8793 | DUMPBIN=":" |
| 8794 | else |
| 8795 | case $cross_compiling:$ac_tool_warned in |
| 8796 | yes:) |
| 8797 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8798 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8799 | ac_tool_warned=yes ;; |
| 8800 | esac |
| 8801 | DUMPBIN=$ac_ct_DUMPBIN |
| 8802 | fi |
| 8803 | fi |
| 8804 | |
| 8805 | case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in |
| 8806 | *COFF*) |
| 8807 | DUMPBIN="$DUMPBIN -symbols -headers" |
| 8808 | ;; |
| 8809 | *) |
| 8810 | DUMPBIN=: |
| 8811 | ;; |
| 8812 | esac |
| 8813 | fi |
| 8814 | |
| 8815 | if test : != "$DUMPBIN"; then |
| 8816 | NM=$DUMPBIN |
| 8817 | fi |
| 8818 | fi |
| 8819 | test -z "$NM" && NM=nm |
| 8820 | |
| 8821 | |
| 8822 | |
| 8823 | |
| 8824 | |
| 8825 | |
| 8826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
| 8827 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
| 8828 | if ${lt_cv_nm_interface+:} false; then : |
| 8829 | $as_echo_n "(cached) " >&6 |
| 8830 | else |
| 8831 | lt_cv_nm_interface="BSD nm" |
| 8832 | echo "int some_variable = 0;" > conftest.$ac_ext |
| 8833 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
| 8834 | (eval "$ac_compile" 2>conftest.err) |
| 8835 | cat conftest.err >&5 |
| 8836 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
| 8837 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 8838 | cat conftest.err >&5 |
| 8839 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
| 8840 | cat conftest.out >&5 |
| 8841 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 8842 | lt_cv_nm_interface="MS dumpbin" |
| 8843 | fi |
| 8844 | rm -f conftest* |
| 8845 | fi |
| 8846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
| 8847 | $as_echo "$lt_cv_nm_interface" >&6; } |
| 8848 | |
| 8849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
| 8850 | $as_echo_n "checking whether ln -s works... " >&6; } |
| 8851 | LN_S=$as_ln_s |
| 8852 | if test "$LN_S" = "ln -s"; then |
| 8853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8854 | $as_echo "yes" >&6; } |
| 8855 | else |
| 8856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
| 8857 | $as_echo "no, using $LN_S" >&6; } |
| 8858 | fi |
| 8859 | |
| 8860 | # find the maximum length of command line arguments |
| 8861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
| 8862 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
| 8863 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
| 8864 | $as_echo_n "(cached) " >&6 |
| 8865 | else |
| 8866 | i=0 |
| 8867 | teststring=ABCD |
| 8868 | |
| 8869 | case $build_os in |
| 8870 | msdosdjgpp*) |
| 8871 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 8872 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 8873 | # during glob expansion). Even if it were fixed, the result of this |
| 8874 | # check would be larger than it should be. |
| 8875 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 8876 | ;; |
| 8877 | |
| 8878 | gnu*) |
| 8879 | # Under GNU Hurd, this test is not required because there is |
| 8880 | # no limit to the length of command line arguments. |
| 8881 | # Libtool will interpret -1 as no limit whatsoever |
| 8882 | lt_cv_sys_max_cmd_len=-1; |
| 8883 | ;; |
| 8884 | |
| 8885 | cygwin* | mingw* | cegcc*) |
| 8886 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 8887 | # about 5 minutes as the teststring grows exponentially. |
| 8888 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 8889 | # you end up with a "frozen" computer, even though with patience |
| 8890 | # the test eventually succeeds (with a max line length of 256k). |
| 8891 | # Instead, let's just punt: use the minimum linelength reported by |
| 8892 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 8893 | lt_cv_sys_max_cmd_len=8192; |
| 8894 | ;; |
| 8895 | |
| 8896 | mint*) |
| 8897 | # On MiNT this can take a long time and run out of memory. |
| 8898 | lt_cv_sys_max_cmd_len=8192; |
| 8899 | ;; |
| 8900 | |
| 8901 | amigaos*) |
| 8902 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 8903 | # So we just punt and use a minimum line length of 8192. |
| 8904 | lt_cv_sys_max_cmd_len=8192; |
| 8905 | ;; |
| 8906 | |
| 8907 | bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) |
| 8908 | # This has been around since 386BSD, at least. Likely further. |
| 8909 | if test -x /sbin/sysctl; then |
| 8910 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 8911 | elif test -x /usr/sbin/sysctl; then |
| 8912 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 8913 | else |
| 8914 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 8915 | fi |
| 8916 | # And add a safety zone |
| 8917 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 8918 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 8919 | ;; |
| 8920 | |
| 8921 | interix*) |
| 8922 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 8923 | lt_cv_sys_max_cmd_len=196608 |
| 8924 | ;; |
| 8925 | |
| 8926 | os2*) |
| 8927 | # The test takes a long time on OS/2. |
| 8928 | lt_cv_sys_max_cmd_len=8192 |
| 8929 | ;; |
| 8930 | |
| 8931 | osf*) |
| 8932 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 8933 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 8934 | # nice to cause kernel panics so lets avoid the loop below. |
| 8935 | # First set a reasonable default. |
| 8936 | lt_cv_sys_max_cmd_len=16384 |
| 8937 | # |
| 8938 | if test -x /sbin/sysconfig; then |
| 8939 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 8940 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 8941 | esac |
| 8942 | fi |
| 8943 | ;; |
| 8944 | sco3.2v5*) |
| 8945 | lt_cv_sys_max_cmd_len=102400 |
| 8946 | ;; |
| 8947 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 8948 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 8949 | if test -n "$kargmax"; then |
| 8950 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 8951 | else |
| 8952 | lt_cv_sys_max_cmd_len=32768 |
| 8953 | fi |
| 8954 | ;; |
| 8955 | *) |
| 8956 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 8957 | if test -n "$lt_cv_sys_max_cmd_len" && \ |
| 8958 | test undefined != "$lt_cv_sys_max_cmd_len"; then |
| 8959 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 8960 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 8961 | else |
| 8962 | # Make teststring a little bigger before we do anything with it. |
| 8963 | # a 1K string should be a reasonable start. |
| 8964 | for i in 1 2 3 4 5 6 7 8; do |
| 8965 | teststring=$teststring$teststring |
| 8966 | done |
| 8967 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 8968 | # If test is not a shell built-in, we'll probably end up computing a |
| 8969 | # maximum length that is only half of the actual maximum length, but |
| 8970 | # we can't tell. |
| 8971 | while { test X`env echo "$teststring$teststring" 2>/dev/null` \ |
| 8972 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
| 8973 | test 17 != "$i" # 1/2 MB should be enough |
| 8974 | do |
| 8975 | i=`expr $i + 1` |
| 8976 | teststring=$teststring$teststring |
| 8977 | done |
| 8978 | # Only check the string length outside the loop. |
| 8979 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 8980 | teststring= |
| 8981 | # Add a significant safety factor because C++ compilers can tack on |
| 8982 | # massive amounts of additional arguments before passing them to the |
| 8983 | # linker. It appears as though 1/2 is a usable value. |
| 8984 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 8985 | fi |
| 8986 | ;; |
| 8987 | esac |
| 8988 | |
| 8989 | fi |
| 8990 | |
| 8991 | if test -n "$lt_cv_sys_max_cmd_len"; then |
| 8992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
| 8993 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
| 8994 | else |
| 8995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 8996 | $as_echo "none" >&6; } |
| 8997 | fi |
| 8998 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 8999 | |
| 9000 | |
| 9001 | |
| 9002 | |
| 9003 | |
| 9004 | |
| 9005 | : ${CP="cp -f"} |
| 9006 | : ${MV="mv -f"} |
| 9007 | : ${RM="rm -f"} |
| 9008 | |
| 9009 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 9010 | lt_unset=unset |
| 9011 | else |
| 9012 | lt_unset=false |
| 9013 | fi |
| 9014 | |
| 9015 | |
| 9016 | |
| 9017 | |
| 9018 | |
| 9019 | # test EBCDIC or ASCII |
| 9020 | case `echo X|tr X '\101'` in |
| 9021 | A) # ASCII based system |
| 9022 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 9023 | lt_SP2NL='tr \040 \012' |
| 9024 | lt_NL2SP='tr \015\012 \040\040' |
| 9025 | ;; |
| 9026 | *) # EBCDIC based system |
| 9027 | lt_SP2NL='tr \100 \n' |
| 9028 | lt_NL2SP='tr \r\n \100\100' |
| 9029 | ;; |
| 9030 | esac |
| 9031 | |
| 9032 | |
| 9033 | |
| 9034 | |
| 9035 | |
| 9036 | |
| 9037 | |
| 9038 | |
| 9039 | |
| 9040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
| 9041 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } |
| 9042 | if ${lt_cv_to_host_file_cmd+:} false; then : |
| 9043 | $as_echo_n "(cached) " >&6 |
| 9044 | else |
| 9045 | case $host in |
| 9046 | *-*-mingw* ) |
| 9047 | case $build in |
| 9048 | *-*-mingw* ) # actually msys |
| 9049 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
| 9050 | ;; |
| 9051 | *-*-cygwin* ) |
| 9052 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
| 9053 | ;; |
| 9054 | * ) # otherwise, assume *nix |
| 9055 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
| 9056 | ;; |
| 9057 | esac |
| 9058 | ;; |
| 9059 | *-*-cygwin* ) |
| 9060 | case $build in |
| 9061 | *-*-mingw* ) # actually msys |
| 9062 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
| 9063 | ;; |
| 9064 | *-*-cygwin* ) |
| 9065 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 9066 | ;; |
| 9067 | * ) # otherwise, assume *nix |
| 9068 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
| 9069 | ;; |
| 9070 | esac |
| 9071 | ;; |
| 9072 | * ) # unhandled hosts (and "normal" native builds) |
| 9073 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 9074 | ;; |
| 9075 | esac |
| 9076 | |
| 9077 | fi |
| 9078 | |
| 9079 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 9080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 |
| 9081 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } |
| 9082 | |
| 9083 | |
| 9084 | |
| 9085 | |
| 9086 | |
| 9087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
| 9088 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } |
| 9089 | if ${lt_cv_to_tool_file_cmd+:} false; then : |
| 9090 | $as_echo_n "(cached) " >&6 |
| 9091 | else |
| 9092 | #assume ordinary cross tools, or native build. |
| 9093 | lt_cv_to_tool_file_cmd=func_convert_file_noop |
| 9094 | case $host in |
| 9095 | *-*-mingw* ) |
| 9096 | case $build in |
| 9097 | *-*-mingw* ) # actually msys |
| 9098 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
| 9099 | ;; |
| 9100 | esac |
| 9101 | ;; |
| 9102 | esac |
| 9103 | |
| 9104 | fi |
| 9105 | |
| 9106 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 9107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 |
| 9108 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } |
| 9109 | |
| 9110 | |
| 9111 | |
| 9112 | |
| 9113 | |
| 9114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
| 9115 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
| 9116 | if ${lt_cv_ld_reload_flag+:} false; then : |
| 9117 | $as_echo_n "(cached) " >&6 |
| 9118 | else |
| 9119 | lt_cv_ld_reload_flag='-r' |
| 9120 | fi |
| 9121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
| 9122 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
| 9123 | reload_flag=$lt_cv_ld_reload_flag |
| 9124 | case $reload_flag in |
| 9125 | "" | " "*) ;; |
| 9126 | *) reload_flag=" $reload_flag" ;; |
| 9127 | esac |
| 9128 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 9129 | case $host_os in |
| 9130 | cygwin* | mingw* | pw32* | cegcc*) |
| 9131 | if test yes != "$GCC"; then |
| 9132 | reload_cmds=false |
| 9133 | fi |
| 9134 | ;; |
| 9135 | darwin*) |
| 9136 | if test yes = "$GCC"; then |
| 9137 | reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' |
| 9138 | else |
| 9139 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 9140 | fi |
| 9141 | ;; |
| 9142 | esac |
| 9143 | |
| 9144 | |
| 9145 | |
| 9146 | |
| 9147 | |
| 9148 | |
| 9149 | |
| 9150 | |
| 9151 | |
| 9152 | if test -n "$ac_tool_prefix"; then |
| 9153 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 9154 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 9155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9156 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9157 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
| 9158 | $as_echo_n "(cached) " >&6 |
| 9159 | else |
| 9160 | if test -n "$OBJDUMP"; then |
| 9161 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 9162 | else |
| 9163 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9164 | for as_dir in $PATH |
| 9165 | do |
| 9166 | IFS=$as_save_IFS |
| 9167 | test -z "$as_dir" && as_dir=. |
| 9168 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9169 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9170 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 9171 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9172 | break 2 |
| 9173 | fi |
| 9174 | done |
| 9175 | done |
| 9176 | IFS=$as_save_IFS |
| 9177 | |
| 9178 | fi |
| 9179 | fi |
| 9180 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 9181 | if test -n "$OBJDUMP"; then |
| 9182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 9183 | $as_echo "$OBJDUMP" >&6; } |
| 9184 | else |
| 9185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9186 | $as_echo "no" >&6; } |
| 9187 | fi |
| 9188 | |
| 9189 | |
| 9190 | fi |
| 9191 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 9192 | ac_ct_OBJDUMP=$OBJDUMP |
| 9193 | # Extract the first word of "objdump", so it can be a program name with args. |
| 9194 | set dummy objdump; ac_word=$2 |
| 9195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9196 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9197 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
| 9198 | $as_echo_n "(cached) " >&6 |
| 9199 | else |
| 9200 | if test -n "$ac_ct_OBJDUMP"; then |
| 9201 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 9202 | else |
| 9203 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9204 | for as_dir in $PATH |
| 9205 | do |
| 9206 | IFS=$as_save_IFS |
| 9207 | test -z "$as_dir" && as_dir=. |
| 9208 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9209 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9210 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 9211 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9212 | break 2 |
| 9213 | fi |
| 9214 | done |
| 9215 | done |
| 9216 | IFS=$as_save_IFS |
| 9217 | |
| 9218 | fi |
| 9219 | fi |
| 9220 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 9221 | if test -n "$ac_ct_OBJDUMP"; then |
| 9222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| 9223 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
| 9224 | else |
| 9225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9226 | $as_echo "no" >&6; } |
| 9227 | fi |
| 9228 | |
| 9229 | if test "x$ac_ct_OBJDUMP" = x; then |
| 9230 | OBJDUMP="false" |
| 9231 | else |
| 9232 | case $cross_compiling:$ac_tool_warned in |
| 9233 | yes:) |
| 9234 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9235 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9236 | ac_tool_warned=yes ;; |
| 9237 | esac |
| 9238 | OBJDUMP=$ac_ct_OBJDUMP |
| 9239 | fi |
| 9240 | else |
| 9241 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 9242 | fi |
| 9243 | |
| 9244 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 9245 | |
| 9246 | |
| 9247 | |
| 9248 | |
| 9249 | |
| 9250 | |
| 9251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
| 9252 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
| 9253 | if ${lt_cv_deplibs_check_method+:} false; then : |
| 9254 | $as_echo_n "(cached) " >&6 |
| 9255 | else |
| 9256 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 9257 | lt_cv_file_magic_test_file= |
| 9258 | lt_cv_deplibs_check_method='unknown' |
| 9259 | # Need to set the preceding variable on all platforms that support |
| 9260 | # interlibrary dependencies. |
| 9261 | # 'none' -- dependencies not supported. |
| 9262 | # 'unknown' -- same as none, but documents that we really don't know. |
| 9263 | # 'pass_all' -- all dependencies passed with no checks. |
| 9264 | # 'test_compile' -- check by making test program. |
| 9265 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 9266 | # that responds to the $file_magic_cmd with a given extended regex. |
| 9267 | # If you have 'file' or equivalent on your system and you're not sure |
| 9268 | # whether 'pass_all' will *always* work, you probably want this one. |
| 9269 | |
| 9270 | case $host_os in |
| 9271 | aix[4-9]*) |
| 9272 | lt_cv_deplibs_check_method=pass_all |
| 9273 | ;; |
| 9274 | |
| 9275 | beos*) |
| 9276 | lt_cv_deplibs_check_method=pass_all |
| 9277 | ;; |
| 9278 | |
| 9279 | bsdi[45]*) |
| 9280 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 9281 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 9282 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 9283 | ;; |
| 9284 | |
| 9285 | cygwin*) |
| 9286 | # func_win32_libid is a shell function defined in ltmain.sh |
| 9287 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 9288 | lt_cv_file_magic_cmd='func_win32_libid' |
| 9289 | ;; |
| 9290 | |
| 9291 | mingw* | pw32*) |
| 9292 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 9293 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 9294 | # unless we find 'file', for example because we are cross-compiling. |
| 9295 | if ( file / ) >/dev/null 2>&1; then |
| 9296 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 9297 | lt_cv_file_magic_cmd='func_win32_libid' |
| 9298 | else |
| 9299 | # Keep this pattern in sync with the one in func_win32_libid. |
| 9300 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' |
| 9301 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 9302 | fi |
| 9303 | ;; |
| 9304 | |
| 9305 | cegcc*) |
| 9306 | # use the weaker test based on 'objdump'. See mingw*. |
| 9307 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
| 9308 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 9309 | ;; |
| 9310 | |
| 9311 | darwin* | rhapsody*) |
| 9312 | lt_cv_deplibs_check_method=pass_all |
| 9313 | ;; |
| 9314 | |
| 9315 | freebsd* | dragonfly*) |
| 9316 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 9317 | case $host_cpu in |
| 9318 | i*86 ) |
| 9319 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 9320 | # Let's accept both of them until this is cleared up. |
| 9321 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
| 9322 | lt_cv_file_magic_cmd=/usr/bin/file |
| 9323 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 9324 | ;; |
| 9325 | esac |
| 9326 | else |
| 9327 | lt_cv_deplibs_check_method=pass_all |
| 9328 | fi |
| 9329 | ;; |
| 9330 | |
| 9331 | haiku*) |
| 9332 | lt_cv_deplibs_check_method=pass_all |
| 9333 | ;; |
| 9334 | |
| 9335 | hpux10.20* | hpux11*) |
| 9336 | lt_cv_file_magic_cmd=/usr/bin/file |
| 9337 | case $host_cpu in |
| 9338 | ia64*) |
| 9339 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 9340 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 9341 | ;; |
| 9342 | hppa*64*) |
| 9343 | 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]' |
| 9344 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 9345 | ;; |
| 9346 | *) |
| 9347 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
| 9348 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 9349 | ;; |
| 9350 | esac |
| 9351 | ;; |
| 9352 | |
| 9353 | interix[3-9]*) |
| 9354 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 9355 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 9356 | ;; |
| 9357 | |
| 9358 | irix5* | irix6* | nonstopux*) |
| 9359 | case $LD in |
| 9360 | *-32|*"-32 ") libmagic=32-bit;; |
| 9361 | *-n32|*"-n32 ") libmagic=N32;; |
| 9362 | *-64|*"-64 ") libmagic=64-bit;; |
| 9363 | *) libmagic=never-match;; |
| 9364 | esac |
| 9365 | lt_cv_deplibs_check_method=pass_all |
| 9366 | ;; |
| 9367 | |
| 9368 | # This must be glibc/ELF. |
| 9369 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 9370 | lt_cv_deplibs_check_method=pass_all |
| 9371 | ;; |
| 9372 | |
| 9373 | netbsd* | netbsdelf*-gnu) |
| 9374 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 9375 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 9376 | else |
| 9377 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 9378 | fi |
| 9379 | ;; |
| 9380 | |
| 9381 | newos6*) |
| 9382 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 9383 | lt_cv_file_magic_cmd=/usr/bin/file |
| 9384 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 9385 | ;; |
| 9386 | |
| 9387 | *nto* | *qnx*) |
| 9388 | lt_cv_deplibs_check_method=pass_all |
| 9389 | ;; |
| 9390 | |
| 9391 | openbsd* | bitrig*) |
| 9392 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
| 9393 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 9394 | else |
| 9395 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 9396 | fi |
| 9397 | ;; |
| 9398 | |
| 9399 | osf3* | osf4* | osf5*) |
| 9400 | lt_cv_deplibs_check_method=pass_all |
| 9401 | ;; |
| 9402 | |
| 9403 | rdos*) |
| 9404 | lt_cv_deplibs_check_method=pass_all |
| 9405 | ;; |
| 9406 | |
| 9407 | solaris*) |
| 9408 | lt_cv_deplibs_check_method=pass_all |
| 9409 | ;; |
| 9410 | |
| 9411 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 9412 | lt_cv_deplibs_check_method=pass_all |
| 9413 | ;; |
| 9414 | |
| 9415 | sysv4 | sysv4.3*) |
| 9416 | case $host_vendor in |
| 9417 | motorola) |
| 9418 | 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]' |
| 9419 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 9420 | ;; |
| 9421 | ncr) |
| 9422 | lt_cv_deplibs_check_method=pass_all |
| 9423 | ;; |
| 9424 | sequent) |
| 9425 | lt_cv_file_magic_cmd='/bin/file' |
| 9426 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 9427 | ;; |
| 9428 | sni) |
| 9429 | lt_cv_file_magic_cmd='/bin/file' |
| 9430 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 9431 | lt_cv_file_magic_test_file=/lib/libc.so |
| 9432 | ;; |
| 9433 | siemens) |
| 9434 | lt_cv_deplibs_check_method=pass_all |
| 9435 | ;; |
| 9436 | pc) |
| 9437 | lt_cv_deplibs_check_method=pass_all |
| 9438 | ;; |
| 9439 | esac |
| 9440 | ;; |
| 9441 | |
| 9442 | tpf*) |
| 9443 | lt_cv_deplibs_check_method=pass_all |
| 9444 | ;; |
| 9445 | os2*) |
| 9446 | lt_cv_deplibs_check_method=pass_all |
| 9447 | ;; |
| 9448 | esac |
| 9449 | |
| 9450 | fi |
| 9451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
| 9452 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
| 9453 | |
| 9454 | file_magic_glob= |
| 9455 | want_nocaseglob=no |
| 9456 | if test "$build" = "$host"; then |
| 9457 | case $host_os in |
| 9458 | mingw* | pw32*) |
| 9459 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
| 9460 | want_nocaseglob=yes |
| 9461 | else |
| 9462 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` |
| 9463 | fi |
| 9464 | ;; |
| 9465 | esac |
| 9466 | fi |
| 9467 | |
| 9468 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 9469 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 9470 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 9471 | |
| 9472 | |
| 9473 | |
| 9474 | |
| 9475 | |
| 9476 | |
| 9477 | |
| 9478 | |
| 9479 | |
| 9480 | |
| 9481 | |
| 9482 | |
| 9483 | |
| 9484 | |
| 9485 | |
| 9486 | |
| 9487 | |
| 9488 | |
| 9489 | |
| 9490 | |
| 9491 | |
| 9492 | |
| 9493 | if test -n "$ac_tool_prefix"; then |
| 9494 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 9495 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 9496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9497 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9498 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
| 9499 | $as_echo_n "(cached) " >&6 |
| 9500 | else |
| 9501 | if test -n "$DLLTOOL"; then |
| 9502 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 9503 | else |
| 9504 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9505 | for as_dir in $PATH |
| 9506 | do |
| 9507 | IFS=$as_save_IFS |
| 9508 | test -z "$as_dir" && as_dir=. |
| 9509 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9510 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9511 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 9512 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9513 | break 2 |
| 9514 | fi |
| 9515 | done |
| 9516 | done |
| 9517 | IFS=$as_save_IFS |
| 9518 | |
| 9519 | fi |
| 9520 | fi |
| 9521 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 9522 | if test -n "$DLLTOOL"; then |
| 9523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
| 9524 | $as_echo "$DLLTOOL" >&6; } |
| 9525 | else |
| 9526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9527 | $as_echo "no" >&6; } |
| 9528 | fi |
| 9529 | |
| 9530 | |
| 9531 | fi |
| 9532 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 9533 | ac_ct_DLLTOOL=$DLLTOOL |
| 9534 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 9535 | set dummy dlltool; ac_word=$2 |
| 9536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9537 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9538 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
| 9539 | $as_echo_n "(cached) " >&6 |
| 9540 | else |
| 9541 | if test -n "$ac_ct_DLLTOOL"; then |
| 9542 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 9543 | else |
| 9544 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9545 | for as_dir in $PATH |
| 9546 | do |
| 9547 | IFS=$as_save_IFS |
| 9548 | test -z "$as_dir" && as_dir=. |
| 9549 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9550 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9551 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 9552 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9553 | break 2 |
| 9554 | fi |
| 9555 | done |
| 9556 | done |
| 9557 | IFS=$as_save_IFS |
| 9558 | |
| 9559 | fi |
| 9560 | fi |
| 9561 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 9562 | if test -n "$ac_ct_DLLTOOL"; then |
| 9563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
| 9564 | $as_echo "$ac_ct_DLLTOOL" >&6; } |
| 9565 | else |
| 9566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9567 | $as_echo "no" >&6; } |
| 9568 | fi |
| 9569 | |
| 9570 | if test "x$ac_ct_DLLTOOL" = x; then |
| 9571 | DLLTOOL="false" |
| 9572 | else |
| 9573 | case $cross_compiling:$ac_tool_warned in |
| 9574 | yes:) |
| 9575 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9576 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9577 | ac_tool_warned=yes ;; |
| 9578 | esac |
| 9579 | DLLTOOL=$ac_ct_DLLTOOL |
| 9580 | fi |
| 9581 | else |
| 9582 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 9583 | fi |
| 9584 | |
| 9585 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 9586 | |
| 9587 | |
| 9588 | |
| 9589 | |
| 9590 | |
| 9591 | |
| 9592 | |
| 9593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
| 9594 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } |
| 9595 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : |
| 9596 | $as_echo_n "(cached) " >&6 |
| 9597 | else |
| 9598 | lt_cv_sharedlib_from_linklib_cmd='unknown' |
| 9599 | |
| 9600 | case $host_os in |
| 9601 | cygwin* | mingw* | pw32* | cegcc*) |
| 9602 | # two different shell functions defined in ltmain.sh; |
| 9603 | # decide which one to use based on capabilities of $DLLTOOL |
| 9604 | case `$DLLTOOL --help 2>&1` in |
| 9605 | *--identify-strict*) |
| 9606 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
| 9607 | ;; |
| 9608 | *) |
| 9609 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
| 9610 | ;; |
| 9611 | esac |
| 9612 | ;; |
| 9613 | *) |
| 9614 | # fallback: assume linklib IS sharedlib |
| 9615 | lt_cv_sharedlib_from_linklib_cmd=$ECHO |
| 9616 | ;; |
| 9617 | esac |
| 9618 | |
| 9619 | fi |
| 9620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
| 9621 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } |
| 9622 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
| 9623 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
| 9624 | |
| 9625 | |
| 9626 | |
| 9627 | |
| 9628 | |
| 9629 | |
| 9630 | |
| 9631 | if test -n "$ac_tool_prefix"; then |
| 9632 | for ac_prog in ar |
| 9633 | do |
| 9634 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 9635 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 9636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9637 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9638 | if ${ac_cv_prog_AR+:} false; then : |
| 9639 | $as_echo_n "(cached) " >&6 |
| 9640 | else |
| 9641 | if test -n "$AR"; then |
| 9642 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 9643 | else |
| 9644 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9645 | for as_dir in $PATH |
| 9646 | do |
| 9647 | IFS=$as_save_IFS |
| 9648 | test -z "$as_dir" && as_dir=. |
| 9649 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9650 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9651 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
| 9652 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9653 | break 2 |
| 9654 | fi |
| 9655 | done |
| 9656 | done |
| 9657 | IFS=$as_save_IFS |
| 9658 | |
| 9659 | fi |
| 9660 | fi |
| 9661 | AR=$ac_cv_prog_AR |
| 9662 | if test -n "$AR"; then |
| 9663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 9664 | $as_echo "$AR" >&6; } |
| 9665 | else |
| 9666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9667 | $as_echo "no" >&6; } |
| 9668 | fi |
| 9669 | |
| 9670 | |
| 9671 | test -n "$AR" && break |
| 9672 | done |
| 9673 | fi |
| 9674 | if test -z "$AR"; then |
| 9675 | ac_ct_AR=$AR |
| 9676 | for ac_prog in ar |
| 9677 | do |
| 9678 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 9679 | set dummy $ac_prog; ac_word=$2 |
| 9680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9681 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9682 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
| 9683 | $as_echo_n "(cached) " >&6 |
| 9684 | else |
| 9685 | if test -n "$ac_ct_AR"; then |
| 9686 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 9687 | else |
| 9688 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9689 | for as_dir in $PATH |
| 9690 | do |
| 9691 | IFS=$as_save_IFS |
| 9692 | test -z "$as_dir" && as_dir=. |
| 9693 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9694 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9695 | ac_cv_prog_ac_ct_AR="$ac_prog" |
| 9696 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9697 | break 2 |
| 9698 | fi |
| 9699 | done |
| 9700 | done |
| 9701 | IFS=$as_save_IFS |
| 9702 | |
| 9703 | fi |
| 9704 | fi |
| 9705 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 9706 | if test -n "$ac_ct_AR"; then |
| 9707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 9708 | $as_echo "$ac_ct_AR" >&6; } |
| 9709 | else |
| 9710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9711 | $as_echo "no" >&6; } |
| 9712 | fi |
| 9713 | |
| 9714 | |
| 9715 | test -n "$ac_ct_AR" && break |
| 9716 | done |
| 9717 | |
| 9718 | if test "x$ac_ct_AR" = x; then |
| 9719 | AR="false" |
| 9720 | else |
| 9721 | case $cross_compiling:$ac_tool_warned in |
| 9722 | yes:) |
| 9723 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9724 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9725 | ac_tool_warned=yes ;; |
| 9726 | esac |
| 9727 | AR=$ac_ct_AR |
| 9728 | fi |
| 9729 | fi |
| 9730 | |
| 9731 | : ${AR=ar} |
| 9732 | : ${AR_FLAGS=cru} |
| 9733 | |
| 9734 | |
| 9735 | |
| 9736 | |
| 9737 | |
| 9738 | |
| 9739 | |
| 9740 | |
| 9741 | |
| 9742 | |
| 9743 | |
| 9744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
| 9745 | $as_echo_n "checking for archiver @FILE support... " >&6; } |
| 9746 | if ${lt_cv_ar_at_file+:} false; then : |
| 9747 | $as_echo_n "(cached) " >&6 |
| 9748 | else |
| 9749 | lt_cv_ar_at_file=no |
| 9750 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9751 | /* end confdefs.h. */ |
| 9752 | |
| 9753 | int main (void) |
| 9754 | { |
| 9755 | |
| 9756 | ; |
| 9757 | return 0; |
| 9758 | } |
| 9759 | _ACEOF |
| 9760 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9761 | echo conftest.$ac_objext > conftest.lst |
| 9762 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' |
| 9763 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 9764 | (eval $lt_ar_try) 2>&5 |
| 9765 | ac_status=$? |
| 9766 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9767 | test $ac_status = 0; } |
| 9768 | if test 0 -eq "$ac_status"; then |
| 9769 | # Ensure the archiver fails upon bogus file names. |
| 9770 | rm -f conftest.$ac_objext libconftest.a |
| 9771 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 9772 | (eval $lt_ar_try) 2>&5 |
| 9773 | ac_status=$? |
| 9774 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9775 | test $ac_status = 0; } |
| 9776 | if test 0 -ne "$ac_status"; then |
| 9777 | lt_cv_ar_at_file=@ |
| 9778 | fi |
| 9779 | fi |
| 9780 | rm -f conftest.* libconftest.a |
| 9781 | |
| 9782 | fi |
| 9783 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9784 | |
| 9785 | fi |
| 9786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 |
| 9787 | $as_echo "$lt_cv_ar_at_file" >&6; } |
| 9788 | |
| 9789 | if test no = "$lt_cv_ar_at_file"; then |
| 9790 | archiver_list_spec= |
| 9791 | else |
| 9792 | archiver_list_spec=$lt_cv_ar_at_file |
| 9793 | fi |
| 9794 | |
| 9795 | |
| 9796 | |
| 9797 | |
| 9798 | |
| 9799 | |
| 9800 | |
| 9801 | if test -n "$ac_tool_prefix"; then |
| 9802 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 9803 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 9804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9805 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9806 | if ${ac_cv_prog_STRIP+:} false; then : |
| 9807 | $as_echo_n "(cached) " >&6 |
| 9808 | else |
| 9809 | if test -n "$STRIP"; then |
| 9810 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 9811 | else |
| 9812 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9813 | for as_dir in $PATH |
| 9814 | do |
| 9815 | IFS=$as_save_IFS |
| 9816 | test -z "$as_dir" && as_dir=. |
| 9817 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9818 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9819 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 9820 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9821 | break 2 |
| 9822 | fi |
| 9823 | done |
| 9824 | done |
| 9825 | IFS=$as_save_IFS |
| 9826 | |
| 9827 | fi |
| 9828 | fi |
| 9829 | STRIP=$ac_cv_prog_STRIP |
| 9830 | if test -n "$STRIP"; then |
| 9831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 9832 | $as_echo "$STRIP" >&6; } |
| 9833 | else |
| 9834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9835 | $as_echo "no" >&6; } |
| 9836 | fi |
| 9837 | |
| 9838 | |
| 9839 | fi |
| 9840 | if test -z "$ac_cv_prog_STRIP"; then |
| 9841 | ac_ct_STRIP=$STRIP |
| 9842 | # Extract the first word of "strip", so it can be a program name with args. |
| 9843 | set dummy strip; ac_word=$2 |
| 9844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9845 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9846 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
| 9847 | $as_echo_n "(cached) " >&6 |
| 9848 | else |
| 9849 | if test -n "$ac_ct_STRIP"; then |
| 9850 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 9851 | else |
| 9852 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9853 | for as_dir in $PATH |
| 9854 | do |
| 9855 | IFS=$as_save_IFS |
| 9856 | test -z "$as_dir" && as_dir=. |
| 9857 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9858 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9859 | ac_cv_prog_ac_ct_STRIP="strip" |
| 9860 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9861 | break 2 |
| 9862 | fi |
| 9863 | done |
| 9864 | done |
| 9865 | IFS=$as_save_IFS |
| 9866 | |
| 9867 | fi |
| 9868 | fi |
| 9869 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 9870 | if test -n "$ac_ct_STRIP"; then |
| 9871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 9872 | $as_echo "$ac_ct_STRIP" >&6; } |
| 9873 | else |
| 9874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9875 | $as_echo "no" >&6; } |
| 9876 | fi |
| 9877 | |
| 9878 | if test "x$ac_ct_STRIP" = x; then |
| 9879 | STRIP=":" |
| 9880 | else |
| 9881 | case $cross_compiling:$ac_tool_warned in |
| 9882 | yes:) |
| 9883 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9884 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9885 | ac_tool_warned=yes ;; |
| 9886 | esac |
| 9887 | STRIP=$ac_ct_STRIP |
| 9888 | fi |
| 9889 | else |
| 9890 | STRIP="$ac_cv_prog_STRIP" |
| 9891 | fi |
| 9892 | |
| 9893 | test -z "$STRIP" && STRIP=: |
| 9894 | |
| 9895 | |
| 9896 | |
| 9897 | |
| 9898 | |
| 9899 | |
| 9900 | if test -n "$ac_tool_prefix"; then |
| 9901 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 9902 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 9903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9904 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9905 | if ${ac_cv_prog_RANLIB+:} false; then : |
| 9906 | $as_echo_n "(cached) " >&6 |
| 9907 | else |
| 9908 | if test -n "$RANLIB"; then |
| 9909 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 9910 | else |
| 9911 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9912 | for as_dir in $PATH |
| 9913 | do |
| 9914 | IFS=$as_save_IFS |
| 9915 | test -z "$as_dir" && as_dir=. |
| 9916 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9917 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9918 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 9919 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9920 | break 2 |
| 9921 | fi |
| 9922 | done |
| 9923 | done |
| 9924 | IFS=$as_save_IFS |
| 9925 | |
| 9926 | fi |
| 9927 | fi |
| 9928 | RANLIB=$ac_cv_prog_RANLIB |
| 9929 | if test -n "$RANLIB"; then |
| 9930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 9931 | $as_echo "$RANLIB" >&6; } |
| 9932 | else |
| 9933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9934 | $as_echo "no" >&6; } |
| 9935 | fi |
| 9936 | |
| 9937 | |
| 9938 | fi |
| 9939 | if test -z "$ac_cv_prog_RANLIB"; then |
| 9940 | ac_ct_RANLIB=$RANLIB |
| 9941 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 9942 | set dummy ranlib; ac_word=$2 |
| 9943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9944 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9945 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
| 9946 | $as_echo_n "(cached) " >&6 |
| 9947 | else |
| 9948 | if test -n "$ac_ct_RANLIB"; then |
| 9949 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 9950 | else |
| 9951 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9952 | for as_dir in $PATH |
| 9953 | do |
| 9954 | IFS=$as_save_IFS |
| 9955 | test -z "$as_dir" && as_dir=. |
| 9956 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9957 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9958 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 9959 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9960 | break 2 |
| 9961 | fi |
| 9962 | done |
| 9963 | done |
| 9964 | IFS=$as_save_IFS |
| 9965 | |
| 9966 | fi |
| 9967 | fi |
| 9968 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 9969 | if test -n "$ac_ct_RANLIB"; then |
| 9970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 9971 | $as_echo "$ac_ct_RANLIB" >&6; } |
| 9972 | else |
| 9973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9974 | $as_echo "no" >&6; } |
| 9975 | fi |
| 9976 | |
| 9977 | if test "x$ac_ct_RANLIB" = x; then |
| 9978 | RANLIB=":" |
| 9979 | else |
| 9980 | case $cross_compiling:$ac_tool_warned in |
| 9981 | yes:) |
| 9982 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9983 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9984 | ac_tool_warned=yes ;; |
| 9985 | esac |
| 9986 | RANLIB=$ac_ct_RANLIB |
| 9987 | fi |
| 9988 | else |
| 9989 | RANLIB="$ac_cv_prog_RANLIB" |
| 9990 | fi |
| 9991 | |
| 9992 | test -z "$RANLIB" && RANLIB=: |
| 9993 | |
| 9994 | |
| 9995 | |
| 9996 | |
| 9997 | |
| 9998 | |
| 9999 | # Determine commands to create old-style static archives. |
| 10000 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 10001 | old_postinstall_cmds='chmod 644 $oldlib' |
| 10002 | old_postuninstall_cmds= |
| 10003 | |
| 10004 | if test -n "$RANLIB"; then |
| 10005 | case $host_os in |
| 10006 | bitrig* | openbsd*) |
| 10007 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
| 10008 | ;; |
| 10009 | *) |
| 10010 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
| 10011 | ;; |
| 10012 | esac |
| 10013 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
| 10014 | fi |
| 10015 | |
| 10016 | case $host_os in |
| 10017 | darwin*) |
| 10018 | lock_old_archive_extraction=yes ;; |
| 10019 | *) |
| 10020 | lock_old_archive_extraction=no ;; |
| 10021 | esac |
| 10022 | |
| 10023 | |
| 10024 | |
| 10025 | |
| 10026 | |
| 10027 | |
| 10028 | |
| 10029 | |
| 10030 | |
| 10031 | |
| 10032 | |
| 10033 | |
| 10034 | |
| 10035 | |
| 10036 | |
| 10037 | |
| 10038 | |
| 10039 | |
| 10040 | |
| 10041 | |
| 10042 | |
| 10043 | |
| 10044 | |
| 10045 | |
| 10046 | |
| 10047 | |
| 10048 | |
| 10049 | |
| 10050 | |
| 10051 | |
| 10052 | |
| 10053 | |
| 10054 | |
| 10055 | |
| 10056 | |
| 10057 | |
| 10058 | |
| 10059 | |
| 10060 | |
| 10061 | # If no C compiler was specified, use CC. |
| 10062 | LTCC=${LTCC-"$CC"} |
| 10063 | |
| 10064 | # If no C compiler flags were specified, use CFLAGS. |
| 10065 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 10066 | |
| 10067 | # Allow CC to be a program name with arguments. |
| 10068 | compiler=$CC |
| 10069 | |
| 10070 | |
| 10071 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 10072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
| 10073 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
| 10074 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
| 10075 | $as_echo_n "(cached) " >&6 |
| 10076 | else |
| 10077 | |
| 10078 | # These are sane defaults that work on at least a few old systems. |
| 10079 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 10080 | |
| 10081 | # Character class describing NM global symbol codes. |
| 10082 | symcode='[BCDEGRST]' |
| 10083 | |
| 10084 | # Regexp to match symbols that can be accessed directly from C. |
| 10085 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 10086 | |
| 10087 | # Define system-specific variables. |
| 10088 | case $host_os in |
| 10089 | aix*) |
| 10090 | symcode='[BCDT]' |
| 10091 | ;; |
| 10092 | cygwin* | mingw* | pw32* | cegcc*) |
| 10093 | symcode='[ABCDGISTW]' |
| 10094 | ;; |
| 10095 | hpux*) |
| 10096 | if test ia64 = "$host_cpu"; then |
| 10097 | symcode='[ABCDEGRST]' |
| 10098 | fi |
| 10099 | ;; |
| 10100 | irix* | nonstopux*) |
| 10101 | symcode='[BCDEGRST]' |
| 10102 | ;; |
| 10103 | osf*) |
| 10104 | symcode='[BCDEGQRST]' |
| 10105 | ;; |
| 10106 | solaris*) |
| 10107 | symcode='[BDRT]' |
| 10108 | ;; |
| 10109 | sco3.2v5*) |
| 10110 | symcode='[DT]' |
| 10111 | ;; |
| 10112 | sysv4.2uw2*) |
| 10113 | symcode='[DT]' |
| 10114 | ;; |
| 10115 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 10116 | symcode='[ABDT]' |
| 10117 | ;; |
| 10118 | sysv4) |
| 10119 | symcode='[DFNSTU]' |
| 10120 | ;; |
| 10121 | esac |
| 10122 | |
| 10123 | # If we're using GNU nm, then use its standard symbol codes. |
| 10124 | case `$NM -V 2>&1` in |
| 10125 | *GNU* | *'with BFD'*) |
| 10126 | symcode='[ABCDGIRSTW]' ;; |
| 10127 | esac |
| 10128 | |
| 10129 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 10130 | # Gets list of data symbols to import. |
| 10131 | lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" |
| 10132 | # Adjust the below global symbol transforms to fixup imported variables. |
| 10133 | lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" |
| 10134 | lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" |
| 10135 | lt_c_name_lib_hook="\ |
| 10136 | -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ |
| 10137 | -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" |
| 10138 | else |
| 10139 | # Disable hooks by default. |
| 10140 | lt_cv_sys_global_symbol_to_import= |
| 10141 | lt_cdecl_hook= |
| 10142 | lt_c_name_hook= |
| 10143 | lt_c_name_lib_hook= |
| 10144 | fi |
| 10145 | |
| 10146 | # Transform an extracted symbol line into a proper C declaration. |
| 10147 | # Some systems (esp. on ia64) link data and code symbols differently, |
| 10148 | # so use this general approach. |
| 10149 | lt_cv_sys_global_symbol_to_cdecl="sed -n"\ |
| 10150 | $lt_cdecl_hook\ |
| 10151 | " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ |
| 10152 | " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" |
| 10153 | |
| 10154 | # Transform an extracted symbol line into symbol name and symbol address |
| 10155 | lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ |
| 10156 | $lt_c_name_hook\ |
| 10157 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
| 10158 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" |
| 10159 | |
| 10160 | # Transform an extracted symbol line into symbol name with lib prefix and |
| 10161 | # symbol address. |
| 10162 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ |
| 10163 | $lt_c_name_lib_hook\ |
| 10164 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
| 10165 | " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ |
| 10166 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" |
| 10167 | |
| 10168 | # Handle CRLF in mingw tool chain |
| 10169 | opt_cr= |
| 10170 | case $build_os in |
| 10171 | mingw*) |
| 10172 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 10173 | ;; |
| 10174 | esac |
| 10175 | |
| 10176 | # Try without a prefix underscore, then with it. |
| 10177 | for ac_symprfx in "" "_"; do |
| 10178 | |
| 10179 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 10180 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 10181 | |
| 10182 | # Write the raw and C identifiers. |
| 10183 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 10184 | # Fake it for dumpbin and say T for any non-static function, |
| 10185 | # D for any global variable and I for any imported variable. |
| 10186 | # Also find C++ and __fastcall symbols from MSVC++, |
| 10187 | # which start with @ or ?. |
| 10188 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 10189 | " {last_section=section; section=\$ 3};"\ |
| 10190 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
| 10191 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 10192 | " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ |
| 10193 | " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ |
| 10194 | " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ |
| 10195 | " \$ 0!~/External *\|/{next};"\ |
| 10196 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 10197 | " {if(hide[section]) next};"\ |
| 10198 | " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ |
| 10199 | " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ |
| 10200 | " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ |
| 10201 | " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ |
| 10202 | " ' prfx=^$ac_symprfx" |
| 10203 | else |
| 10204 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 10205 | fi |
| 10206 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
| 10207 | |
| 10208 | # Check to see that the pipe works correctly. |
| 10209 | pipe_works=no |
| 10210 | |
| 10211 | rm -f conftest* |
| 10212 | cat > conftest.$ac_ext <<_LT_EOF |
| 10213 | #ifdef __cplusplus |
| 10214 | extern "C" { |
| 10215 | #endif |
| 10216 | char nm_test_var; |
| 10217 | void nm_test_func(void); |
| 10218 | void nm_test_func(void){} |
| 10219 | #ifdef __cplusplus |
| 10220 | } |
| 10221 | #endif |
| 10222 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 10223 | _LT_EOF |
| 10224 | |
| 10225 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 10226 | (eval $ac_compile) 2>&5 |
| 10227 | ac_status=$? |
| 10228 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 10229 | test $ac_status = 0; }; then |
| 10230 | # Now try to grab the symbols. |
| 10231 | nlist=conftest.nm |
| 10232 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
| 10233 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 |
| 10234 | ac_status=$? |
| 10235 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 10236 | test $ac_status = 0; } && test -s "$nlist"; then |
| 10237 | # Try sorting and uniquifying the output. |
| 10238 | if sort "$nlist" | uniq > "$nlist"T; then |
| 10239 | mv -f "$nlist"T "$nlist" |
| 10240 | else |
| 10241 | rm -f "$nlist"T |
| 10242 | fi |
| 10243 | |
| 10244 | # Make sure that we snagged all the symbols we need. |
| 10245 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 10246 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 10247 | cat <<_LT_EOF > conftest.$ac_ext |
| 10248 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
| 10249 | #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE |
| 10250 | /* DATA imports from DLLs on WIN32 can't be const, because runtime |
| 10251 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
| 10252 | # define LT_DLSYM_CONST |
| 10253 | #elif defined __osf__ |
| 10254 | /* This system does not cope well with relocations in const data. */ |
| 10255 | # define LT_DLSYM_CONST |
| 10256 | #else |
| 10257 | # define LT_DLSYM_CONST const |
| 10258 | #endif |
| 10259 | |
| 10260 | #ifdef __cplusplus |
| 10261 | extern "C" { |
| 10262 | #endif |
| 10263 | |
| 10264 | _LT_EOF |
| 10265 | # Now generate the symbol file. |
| 10266 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
| 10267 | |
| 10268 | cat <<_LT_EOF >> conftest.$ac_ext |
| 10269 | |
| 10270 | /* The mapping between symbol names and symbols. */ |
| 10271 | LT_DLSYM_CONST struct { |
| 10272 | const char *name; |
| 10273 | void *address; |
| 10274 | } |
| 10275 | lt__PROGRAM__LTX_preloaded_symbols[] = |
| 10276 | { |
| 10277 | { "@PROGRAM@", (void *) 0 }, |
| 10278 | _LT_EOF |
| 10279 | $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 10280 | cat <<\_LT_EOF >> conftest.$ac_ext |
| 10281 | {0, (void *) 0} |
| 10282 | }; |
| 10283 | |
| 10284 | /* This works around a problem in FreeBSD linker */ |
| 10285 | #ifdef FREEBSD_WORKAROUND |
| 10286 | static const void *lt_preloaded_setup() { |
| 10287 | return lt__PROGRAM__LTX_preloaded_symbols; |
| 10288 | } |
| 10289 | #endif |
| 10290 | |
| 10291 | #ifdef __cplusplus |
| 10292 | } |
| 10293 | #endif |
| 10294 | _LT_EOF |
| 10295 | # Now try linking the two files. |
| 10296 | mv -f conftest.$ac_objext conftstm.$ac_objext |
| 10297 | lt_globsym_save_LIBS=$LIBS |
| 10298 | lt_globsym_save_CFLAGS=$CFLAGS |
| 10299 | LIBS=conftstm.$ac_objext |
| 10300 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 10301 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 10302 | (eval $ac_link) 2>&5 |
| 10303 | ac_status=$? |
| 10304 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 10305 | test $ac_status = 0; } && test -s conftest$ac_exeext; then |
| 10306 | pipe_works=yes |
| 10307 | fi |
| 10308 | LIBS=$lt_globsym_save_LIBS |
| 10309 | CFLAGS=$lt_globsym_save_CFLAGS |
| 10310 | else |
| 10311 | echo "cannot find nm_test_func in $nlist" >&5 |
| 10312 | fi |
| 10313 | else |
| 10314 | echo "cannot find nm_test_var in $nlist" >&5 |
| 10315 | fi |
| 10316 | else |
| 10317 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 10318 | fi |
| 10319 | else |
| 10320 | echo "$progname: failed program was:" >&5 |
| 10321 | cat conftest.$ac_ext >&5 |
| 10322 | fi |
| 10323 | rm -rf conftest* conftst* |
| 10324 | |
| 10325 | # Do not use the global_symbol_pipe unless it works. |
| 10326 | if test yes = "$pipe_works"; then |
| 10327 | break |
| 10328 | else |
| 10329 | lt_cv_sys_global_symbol_pipe= |
| 10330 | fi |
| 10331 | done |
| 10332 | |
| 10333 | fi |
| 10334 | |
| 10335 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 10336 | lt_cv_sys_global_symbol_to_cdecl= |
| 10337 | fi |
| 10338 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 10339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
| 10340 | $as_echo "failed" >&6; } |
| 10341 | else |
| 10342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 10343 | $as_echo "ok" >&6; } |
| 10344 | fi |
| 10345 | |
| 10346 | # Response file support. |
| 10347 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 10348 | nm_file_list_spec='@' |
| 10349 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then |
| 10350 | nm_file_list_spec='@' |
| 10351 | fi |
| 10352 | |
| 10353 | |
| 10354 | |
| 10355 | |
| 10356 | |
| 10357 | |
| 10358 | |
| 10359 | |
| 10360 | |
| 10361 | |
| 10362 | |
| 10363 | |
| 10364 | |
| 10365 | |
| 10366 | |
| 10367 | |
| 10368 | |
| 10369 | |
| 10370 | |
| 10371 | |
| 10372 | |
| 10373 | |
| 10374 | |
| 10375 | |
| 10376 | |
| 10377 | |
| 10378 | |
| 10379 | |
| 10380 | |
| 10381 | |
| 10382 | |
| 10383 | |
| 10384 | |
| 10385 | |
| 10386 | |
| 10387 | |
| 10388 | |
| 10389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
| 10390 | $as_echo_n "checking for sysroot... " >&6; } |
| 10391 | |
| 10392 | # Check whether --with-sysroot was given. |
| 10393 | if test "${with_sysroot+set}" = set; then : |
| 10394 | withval=$with_sysroot; |
| 10395 | else |
| 10396 | with_sysroot=no |
| 10397 | fi |
| 10398 | |
| 10399 | |
| 10400 | lt_sysroot= |
| 10401 | case $with_sysroot in #( |
| 10402 | yes) |
| 10403 | if test yes = "$GCC"; then |
| 10404 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
| 10405 | fi |
| 10406 | ;; #( |
| 10407 | /*) |
| 10408 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` |
| 10409 | ;; #( |
| 10410 | no|'') |
| 10411 | ;; #( |
| 10412 | *) |
| 10413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 |
| 10414 | $as_echo "$with_sysroot" >&6; } |
| 10415 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
| 10416 | ;; |
| 10417 | esac |
| 10418 | |
| 10419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
| 10420 | $as_echo "${lt_sysroot:-no}" >&6; } |
| 10421 | |
| 10422 | |
| 10423 | |
| 10424 | |
| 10425 | |
| 10426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 |
| 10427 | $as_echo_n "checking for a working dd... " >&6; } |
| 10428 | if ${ac_cv_path_lt_DD+:} false; then : |
| 10429 | $as_echo_n "(cached) " >&6 |
| 10430 | else |
| 10431 | printf 0123456789abcdef0123456789abcdef >conftest.i |
| 10432 | cat conftest.i conftest.i >conftest2.i |
| 10433 | : ${lt_DD:=$DD} |
| 10434 | if test -z "$lt_DD"; then |
| 10435 | ac_path_lt_DD_found=false |
| 10436 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 10437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10438 | for as_dir in $PATH |
| 10439 | do |
| 10440 | IFS=$as_save_IFS |
| 10441 | test -z "$as_dir" && as_dir=. |
| 10442 | for ac_prog in dd; do |
| 10443 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10444 | ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" |
| 10445 | as_fn_executable_p "$ac_path_lt_DD" || continue |
| 10446 | if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
| 10447 | cmp -s conftest.i conftest.out \ |
| 10448 | && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: |
| 10449 | fi |
| 10450 | $ac_path_lt_DD_found && break 3 |
| 10451 | done |
| 10452 | done |
| 10453 | done |
| 10454 | IFS=$as_save_IFS |
| 10455 | if test -z "$ac_cv_path_lt_DD"; then |
| 10456 | : |
| 10457 | fi |
| 10458 | else |
| 10459 | ac_cv_path_lt_DD=$lt_DD |
| 10460 | fi |
| 10461 | |
| 10462 | rm -f conftest.i conftest2.i conftest.out |
| 10463 | fi |
| 10464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 |
| 10465 | $as_echo "$ac_cv_path_lt_DD" >&6; } |
| 10466 | |
| 10467 | |
| 10468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 |
| 10469 | $as_echo_n "checking how to truncate binary pipes... " >&6; } |
| 10470 | if ${lt_cv_truncate_bin+:} false; then : |
| 10471 | $as_echo_n "(cached) " >&6 |
| 10472 | else |
| 10473 | printf 0123456789abcdef0123456789abcdef >conftest.i |
| 10474 | cat conftest.i conftest.i >conftest2.i |
| 10475 | lt_cv_truncate_bin= |
| 10476 | if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
| 10477 | cmp -s conftest.i conftest.out \ |
| 10478 | && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" |
| 10479 | fi |
| 10480 | rm -f conftest.i conftest2.i conftest.out |
| 10481 | test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" |
| 10482 | fi |
| 10483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 |
| 10484 | $as_echo "$lt_cv_truncate_bin" >&6; } |
| 10485 | |
| 10486 | |
| 10487 | |
| 10488 | |
| 10489 | |
| 10490 | |
| 10491 | |
| 10492 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
| 10493 | func_cc_basename () |
| 10494 | { |
| 10495 | for cc_temp in $*""; do |
| 10496 | case $cc_temp in |
| 10497 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 10498 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 10499 | \-*) ;; |
| 10500 | *) break;; |
| 10501 | esac |
| 10502 | done |
| 10503 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 10504 | } |
| 10505 | |
| 10506 | # Check whether --enable-libtool-lock was given. |
| 10507 | if test "${enable_libtool_lock+set}" = set; then : |
| 10508 | enableval=$enable_libtool_lock; |
| 10509 | fi |
| 10510 | |
| 10511 | test no = "$enable_libtool_lock" || enable_libtool_lock=yes |
| 10512 | |
| 10513 | # Some flags need to be propagated to the compiler or linker for good |
| 10514 | # libtool support. |
| 10515 | case $host in |
| 10516 | ia64-*-hpux*) |
| 10517 | # Find out what ABI is being produced by ac_compile, and set mode |
| 10518 | # options accordingly. |
| 10519 | echo 'int i;' > conftest.$ac_ext |
| 10520 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 10521 | (eval $ac_compile) 2>&5 |
| 10522 | ac_status=$? |
| 10523 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 10524 | test $ac_status = 0; }; then |
| 10525 | case `/usr/bin/file conftest.$ac_objext` in |
| 10526 | *ELF-32*) |
| 10527 | HPUX_IA64_MODE=32 |
| 10528 | ;; |
| 10529 | *ELF-64*) |
| 10530 | HPUX_IA64_MODE=64 |
| 10531 | ;; |
| 10532 | esac |
| 10533 | fi |
| 10534 | rm -rf conftest* |
| 10535 | ;; |
| 10536 | *-*-irix6*) |
| 10537 | # Find out what ABI is being produced by ac_compile, and set linker |
| 10538 | # options accordingly. |
| 10539 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
| 10540 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 10541 | (eval $ac_compile) 2>&5 |
| 10542 | ac_status=$? |
| 10543 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 10544 | test $ac_status = 0; }; then |
| 10545 | if test yes = "$lt_cv_prog_gnu_ld"; then |
| 10546 | case `/usr/bin/file conftest.$ac_objext` in |
| 10547 | *32-bit*) |
| 10548 | LD="${LD-ld} -melf32bsmip" |
| 10549 | ;; |
| 10550 | *N32*) |
| 10551 | LD="${LD-ld} -melf32bmipn32" |
| 10552 | ;; |
| 10553 | *64-bit*) |
| 10554 | LD="${LD-ld} -melf64bmip" |
| 10555 | ;; |
| 10556 | esac |
| 10557 | else |
| 10558 | case `/usr/bin/file conftest.$ac_objext` in |
| 10559 | *32-bit*) |
| 10560 | LD="${LD-ld} -32" |
| 10561 | ;; |
| 10562 | *N32*) |
| 10563 | LD="${LD-ld} -n32" |
| 10564 | ;; |
| 10565 | *64-bit*) |
| 10566 | LD="${LD-ld} -64" |
| 10567 | ;; |
| 10568 | esac |
| 10569 | fi |
| 10570 | fi |
| 10571 | rm -rf conftest* |
| 10572 | ;; |
| 10573 | |
| 10574 | mips64*-*linux*) |
| 10575 | # Find out what ABI is being produced by ac_compile, and set linker |
| 10576 | # options accordingly. |
| 10577 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
| 10578 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 10579 | (eval $ac_compile) 2>&5 |
| 10580 | ac_status=$? |
| 10581 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 10582 | test $ac_status = 0; }; then |
| 10583 | emul=elf |
| 10584 | case `/usr/bin/file conftest.$ac_objext` in |
| 10585 | *32-bit*) |
| 10586 | emul="${emul}32" |
| 10587 | ;; |
| 10588 | *64-bit*) |
| 10589 | emul="${emul}64" |
| 10590 | ;; |
| 10591 | esac |
| 10592 | case `/usr/bin/file conftest.$ac_objext` in |
| 10593 | *MSB*) |
| 10594 | emul="${emul}btsmip" |
| 10595 | ;; |
| 10596 | *LSB*) |
| 10597 | emul="${emul}ltsmip" |
| 10598 | ;; |
| 10599 | esac |
| 10600 | case `/usr/bin/file conftest.$ac_objext` in |
| 10601 | *N32*) |
| 10602 | emul="${emul}n32" |
| 10603 | ;; |
| 10604 | esac |
| 10605 | LD="${LD-ld} -m $emul" |
| 10606 | fi |
| 10607 | rm -rf conftest* |
| 10608 | ;; |
| 10609 | |
| 10610 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
| 10611 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
| 10612 | # Find out what ABI is being produced by ac_compile, and set linker |
| 10613 | # options accordingly. Note that the listed cases only cover the |
| 10614 | # situations where additional linker options are needed (such as when |
| 10615 | # doing 32-bit compilation for a host where ld defaults to 64-bit, or |
| 10616 | # vice versa); the common cases where no linker options are needed do |
| 10617 | # not appear in the list. |
| 10618 | echo 'int i;' > conftest.$ac_ext |
| 10619 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 10620 | (eval $ac_compile) 2>&5 |
| 10621 | ac_status=$? |
| 10622 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 10623 | test $ac_status = 0; }; then |
| 10624 | case `/usr/bin/file conftest.o` in |
| 10625 | *32-bit*) |
| 10626 | case $host in |
| 10627 | x86_64-*kfreebsd*-gnu) |
| 10628 | LD="${LD-ld} -m elf_i386_fbsd" |
| 10629 | ;; |
| 10630 | x86_64-*linux*) |
| 10631 | case `/usr/bin/file conftest.o` in |
| 10632 | *x86-64*) |
| 10633 | LD="${LD-ld} -m elf32_x86_64" |
| 10634 | ;; |
| 10635 | *) |
| 10636 | LD="${LD-ld} -m elf_i386" |
| 10637 | ;; |
| 10638 | esac |
| 10639 | ;; |
| 10640 | powerpc64le-*linux*) |
| 10641 | LD="${LD-ld} -m elf32lppclinux" |
| 10642 | ;; |
| 10643 | powerpc64-*linux*) |
| 10644 | LD="${LD-ld} -m elf32ppclinux" |
| 10645 | ;; |
| 10646 | s390x-*linux*) |
| 10647 | LD="${LD-ld} -m elf_s390" |
| 10648 | ;; |
| 10649 | sparc64-*linux*) |
| 10650 | LD="${LD-ld} -m elf32_sparc" |
| 10651 | ;; |
| 10652 | esac |
| 10653 | ;; |
| 10654 | *64-bit*) |
| 10655 | case $host in |
| 10656 | x86_64-*kfreebsd*-gnu) |
| 10657 | LD="${LD-ld} -m elf_x86_64_fbsd" |
| 10658 | ;; |
| 10659 | x86_64-*linux*) |
| 10660 | LD="${LD-ld} -m elf_x86_64" |
| 10661 | ;; |
| 10662 | powerpcle-*linux*) |
| 10663 | LD="${LD-ld} -m elf64lppc" |
| 10664 | ;; |
| 10665 | powerpc-*linux*) |
| 10666 | LD="${LD-ld} -m elf64ppc" |
| 10667 | ;; |
| 10668 | s390*-*linux*|s390*-*tpf*) |
| 10669 | LD="${LD-ld} -m elf64_s390" |
| 10670 | ;; |
| 10671 | sparc*-*linux*) |
| 10672 | LD="${LD-ld} -m elf64_sparc" |
| 10673 | ;; |
| 10674 | esac |
| 10675 | ;; |
| 10676 | esac |
| 10677 | fi |
| 10678 | rm -rf conftest* |
| 10679 | ;; |
| 10680 | |
| 10681 | *-*-sco3.2v5*) |
| 10682 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 10683 | SAVE_CFLAGS=$CFLAGS |
| 10684 | CFLAGS="$CFLAGS -belf" |
| 10685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
| 10686 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
| 10687 | if ${lt_cv_cc_needs_belf+:} false; then : |
| 10688 | $as_echo_n "(cached) " >&6 |
| 10689 | else |
| 10690 | ac_ext=c |
| 10691 | ac_cpp='$CPP $CPPFLAGS' |
| 10692 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10693 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10694 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10695 | |
| 10696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10697 | /* end confdefs.h. */ |
| 10698 | |
| 10699 | int main (void) |
| 10700 | { |
| 10701 | |
| 10702 | ; |
| 10703 | return 0; |
| 10704 | } |
| 10705 | _ACEOF |
| 10706 | if ac_fn_c_try_link "$LINENO"; then : |
| 10707 | lt_cv_cc_needs_belf=yes |
| 10708 | else |
| 10709 | lt_cv_cc_needs_belf=no |
| 10710 | fi |
| 10711 | rm -f core conftest.err conftest.$ac_objext \ |
| 10712 | conftest$ac_exeext conftest.$ac_ext |
| 10713 | ac_ext=c |
| 10714 | ac_cpp='$CPP $CPPFLAGS' |
| 10715 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10716 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10717 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10718 | |
| 10719 | fi |
| 10720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
| 10721 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
| 10722 | if test yes != "$lt_cv_cc_needs_belf"; then |
| 10723 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 10724 | CFLAGS=$SAVE_CFLAGS |
| 10725 | fi |
| 10726 | ;; |
| 10727 | *-*solaris*) |
| 10728 | # Find out what ABI is being produced by ac_compile, and set linker |
| 10729 | # options accordingly. |
| 10730 | echo 'int i;' > conftest.$ac_ext |
| 10731 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 10732 | (eval $ac_compile) 2>&5 |
| 10733 | ac_status=$? |
| 10734 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 10735 | test $ac_status = 0; }; then |
| 10736 | case `/usr/bin/file conftest.o` in |
| 10737 | *64-bit*) |
| 10738 | case $lt_cv_prog_gnu_ld in |
| 10739 | yes*) |
| 10740 | case $host in |
| 10741 | i?86-*-solaris*|x86_64-*-solaris*) |
| 10742 | LD="${LD-ld} -m elf_x86_64" |
| 10743 | ;; |
| 10744 | sparc*-*-solaris*) |
| 10745 | LD="${LD-ld} -m elf64_sparc" |
| 10746 | ;; |
| 10747 | esac |
| 10748 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. |
| 10749 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
| 10750 | LD=${LD-ld}_sol2 |
| 10751 | fi |
| 10752 | ;; |
| 10753 | *) |
| 10754 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 10755 | LD="${LD-ld} -64" |
| 10756 | fi |
| 10757 | ;; |
| 10758 | esac |
| 10759 | ;; |
| 10760 | esac |
| 10761 | fi |
| 10762 | rm -rf conftest* |
| 10763 | ;; |
| 10764 | esac |
| 10765 | |
| 10766 | need_locks=$enable_libtool_lock |
| 10767 | |
| 10768 | if test -n "$ac_tool_prefix"; then |
| 10769 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. |
| 10770 | set dummy ${ac_tool_prefix}mt; ac_word=$2 |
| 10771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10772 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10773 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : |
| 10774 | $as_echo_n "(cached) " >&6 |
| 10775 | else |
| 10776 | if test -n "$MANIFEST_TOOL"; then |
| 10777 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. |
| 10778 | else |
| 10779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10780 | for as_dir in $PATH |
| 10781 | do |
| 10782 | IFS=$as_save_IFS |
| 10783 | test -z "$as_dir" && as_dir=. |
| 10784 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10785 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10786 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
| 10787 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10788 | break 2 |
| 10789 | fi |
| 10790 | done |
| 10791 | done |
| 10792 | IFS=$as_save_IFS |
| 10793 | |
| 10794 | fi |
| 10795 | fi |
| 10796 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL |
| 10797 | if test -n "$MANIFEST_TOOL"; then |
| 10798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 |
| 10799 | $as_echo "$MANIFEST_TOOL" >&6; } |
| 10800 | else |
| 10801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10802 | $as_echo "no" >&6; } |
| 10803 | fi |
| 10804 | |
| 10805 | |
| 10806 | fi |
| 10807 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then |
| 10808 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL |
| 10809 | # Extract the first word of "mt", so it can be a program name with args. |
| 10810 | set dummy mt; ac_word=$2 |
| 10811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10812 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10813 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : |
| 10814 | $as_echo_n "(cached) " >&6 |
| 10815 | else |
| 10816 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 10817 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. |
| 10818 | else |
| 10819 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10820 | for as_dir in $PATH |
| 10821 | do |
| 10822 | IFS=$as_save_IFS |
| 10823 | test -z "$as_dir" && as_dir=. |
| 10824 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10825 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10826 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" |
| 10827 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10828 | break 2 |
| 10829 | fi |
| 10830 | done |
| 10831 | done |
| 10832 | IFS=$as_save_IFS |
| 10833 | |
| 10834 | fi |
| 10835 | fi |
| 10836 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL |
| 10837 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 10838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 |
| 10839 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } |
| 10840 | else |
| 10841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10842 | $as_echo "no" >&6; } |
| 10843 | fi |
| 10844 | |
| 10845 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
| 10846 | MANIFEST_TOOL=":" |
| 10847 | else |
| 10848 | case $cross_compiling:$ac_tool_warned in |
| 10849 | yes:) |
| 10850 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10851 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10852 | ac_tool_warned=yes ;; |
| 10853 | esac |
| 10854 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
| 10855 | fi |
| 10856 | else |
| 10857 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" |
| 10858 | fi |
| 10859 | |
| 10860 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
| 10861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 |
| 10862 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } |
| 10863 | if ${lt_cv_path_mainfest_tool+:} false; then : |
| 10864 | $as_echo_n "(cached) " >&6 |
| 10865 | else |
| 10866 | lt_cv_path_mainfest_tool=no |
| 10867 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 |
| 10868 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
| 10869 | cat conftest.err >&5 |
| 10870 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
| 10871 | lt_cv_path_mainfest_tool=yes |
| 10872 | fi |
| 10873 | rm -f conftest* |
| 10874 | fi |
| 10875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 |
| 10876 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } |
| 10877 | if test yes != "$lt_cv_path_mainfest_tool"; then |
| 10878 | MANIFEST_TOOL=: |
| 10879 | fi |
| 10880 | |
| 10881 | |
| 10882 | |
| 10883 | |
| 10884 | |
| 10885 | |
| 10886 | case $host_os in |
| 10887 | rhapsody* | darwin*) |
| 10888 | if test -n "$ac_tool_prefix"; then |
| 10889 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 10890 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
| 10891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10892 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10893 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
| 10894 | $as_echo_n "(cached) " >&6 |
| 10895 | else |
| 10896 | if test -n "$DSYMUTIL"; then |
| 10897 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 10898 | else |
| 10899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10900 | for as_dir in $PATH |
| 10901 | do |
| 10902 | IFS=$as_save_IFS |
| 10903 | test -z "$as_dir" && as_dir=. |
| 10904 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10905 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10906 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
| 10907 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10908 | break 2 |
| 10909 | fi |
| 10910 | done |
| 10911 | done |
| 10912 | IFS=$as_save_IFS |
| 10913 | |
| 10914 | fi |
| 10915 | fi |
| 10916 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 10917 | if test -n "$DSYMUTIL"; then |
| 10918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
| 10919 | $as_echo "$DSYMUTIL" >&6; } |
| 10920 | else |
| 10921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10922 | $as_echo "no" >&6; } |
| 10923 | fi |
| 10924 | |
| 10925 | |
| 10926 | fi |
| 10927 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 10928 | ac_ct_DSYMUTIL=$DSYMUTIL |
| 10929 | # Extract the first word of "dsymutil", so it can be a program name with args. |
| 10930 | set dummy dsymutil; ac_word=$2 |
| 10931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10932 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10933 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
| 10934 | $as_echo_n "(cached) " >&6 |
| 10935 | else |
| 10936 | if test -n "$ac_ct_DSYMUTIL"; then |
| 10937 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 10938 | else |
| 10939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10940 | for as_dir in $PATH |
| 10941 | do |
| 10942 | IFS=$as_save_IFS |
| 10943 | test -z "$as_dir" && as_dir=. |
| 10944 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10945 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10946 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
| 10947 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10948 | break 2 |
| 10949 | fi |
| 10950 | done |
| 10951 | done |
| 10952 | IFS=$as_save_IFS |
| 10953 | |
| 10954 | fi |
| 10955 | fi |
| 10956 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 10957 | if test -n "$ac_ct_DSYMUTIL"; then |
| 10958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
| 10959 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
| 10960 | else |
| 10961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10962 | $as_echo "no" >&6; } |
| 10963 | fi |
| 10964 | |
| 10965 | if test "x$ac_ct_DSYMUTIL" = x; then |
| 10966 | DSYMUTIL=":" |
| 10967 | else |
| 10968 | case $cross_compiling:$ac_tool_warned in |
| 10969 | yes:) |
| 10970 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10971 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10972 | ac_tool_warned=yes ;; |
| 10973 | esac |
| 10974 | DSYMUTIL=$ac_ct_DSYMUTIL |
| 10975 | fi |
| 10976 | else |
| 10977 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 10978 | fi |
| 10979 | |
| 10980 | if test -n "$ac_tool_prefix"; then |
| 10981 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 10982 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
| 10983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10984 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10985 | if ${ac_cv_prog_NMEDIT+:} false; then : |
| 10986 | $as_echo_n "(cached) " >&6 |
| 10987 | else |
| 10988 | if test -n "$NMEDIT"; then |
| 10989 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 10990 | else |
| 10991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10992 | for as_dir in $PATH |
| 10993 | do |
| 10994 | IFS=$as_save_IFS |
| 10995 | test -z "$as_dir" && as_dir=. |
| 10996 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10997 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10998 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
| 10999 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11000 | break 2 |
| 11001 | fi |
| 11002 | done |
| 11003 | done |
| 11004 | IFS=$as_save_IFS |
| 11005 | |
| 11006 | fi |
| 11007 | fi |
| 11008 | NMEDIT=$ac_cv_prog_NMEDIT |
| 11009 | if test -n "$NMEDIT"; then |
| 11010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
| 11011 | $as_echo "$NMEDIT" >&6; } |
| 11012 | else |
| 11013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11014 | $as_echo "no" >&6; } |
| 11015 | fi |
| 11016 | |
| 11017 | |
| 11018 | fi |
| 11019 | if test -z "$ac_cv_prog_NMEDIT"; then |
| 11020 | ac_ct_NMEDIT=$NMEDIT |
| 11021 | # Extract the first word of "nmedit", so it can be a program name with args. |
| 11022 | set dummy nmedit; ac_word=$2 |
| 11023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11024 | $as_echo_n "checking for $ac_word... " >&6; } |
| 11025 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
| 11026 | $as_echo_n "(cached) " >&6 |
| 11027 | else |
| 11028 | if test -n "$ac_ct_NMEDIT"; then |
| 11029 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 11030 | else |
| 11031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11032 | for as_dir in $PATH |
| 11033 | do |
| 11034 | IFS=$as_save_IFS |
| 11035 | test -z "$as_dir" && as_dir=. |
| 11036 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11037 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11038 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
| 11039 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11040 | break 2 |
| 11041 | fi |
| 11042 | done |
| 11043 | done |
| 11044 | IFS=$as_save_IFS |
| 11045 | |
| 11046 | fi |
| 11047 | fi |
| 11048 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 11049 | if test -n "$ac_ct_NMEDIT"; then |
| 11050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
| 11051 | $as_echo "$ac_ct_NMEDIT" >&6; } |
| 11052 | else |
| 11053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11054 | $as_echo "no" >&6; } |
| 11055 | fi |
| 11056 | |
| 11057 | if test "x$ac_ct_NMEDIT" = x; then |
| 11058 | NMEDIT=":" |
| 11059 | else |
| 11060 | case $cross_compiling:$ac_tool_warned in |
| 11061 | yes:) |
| 11062 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 11063 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 11064 | ac_tool_warned=yes ;; |
| 11065 | esac |
| 11066 | NMEDIT=$ac_ct_NMEDIT |
| 11067 | fi |
| 11068 | else |
| 11069 | NMEDIT="$ac_cv_prog_NMEDIT" |
| 11070 | fi |
| 11071 | |
| 11072 | if test -n "$ac_tool_prefix"; then |
| 11073 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
| 11074 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
| 11075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11076 | $as_echo_n "checking for $ac_word... " >&6; } |
| 11077 | if ${ac_cv_prog_LIPO+:} false; then : |
| 11078 | $as_echo_n "(cached) " >&6 |
| 11079 | else |
| 11080 | if test -n "$LIPO"; then |
| 11081 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 11082 | else |
| 11083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11084 | for as_dir in $PATH |
| 11085 | do |
| 11086 | IFS=$as_save_IFS |
| 11087 | test -z "$as_dir" && as_dir=. |
| 11088 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11089 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11090 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
| 11091 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11092 | break 2 |
| 11093 | fi |
| 11094 | done |
| 11095 | done |
| 11096 | IFS=$as_save_IFS |
| 11097 | |
| 11098 | fi |
| 11099 | fi |
| 11100 | LIPO=$ac_cv_prog_LIPO |
| 11101 | if test -n "$LIPO"; then |
| 11102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
| 11103 | $as_echo "$LIPO" >&6; } |
| 11104 | else |
| 11105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11106 | $as_echo "no" >&6; } |
| 11107 | fi |
| 11108 | |
| 11109 | |
| 11110 | fi |
| 11111 | if test -z "$ac_cv_prog_LIPO"; then |
| 11112 | ac_ct_LIPO=$LIPO |
| 11113 | # Extract the first word of "lipo", so it can be a program name with args. |
| 11114 | set dummy lipo; ac_word=$2 |
| 11115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11116 | $as_echo_n "checking for $ac_word... " >&6; } |
| 11117 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
| 11118 | $as_echo_n "(cached) " >&6 |
| 11119 | else |
| 11120 | if test -n "$ac_ct_LIPO"; then |
| 11121 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 11122 | else |
| 11123 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11124 | for as_dir in $PATH |
| 11125 | do |
| 11126 | IFS=$as_save_IFS |
| 11127 | test -z "$as_dir" && as_dir=. |
| 11128 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11129 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11130 | ac_cv_prog_ac_ct_LIPO="lipo" |
| 11131 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11132 | break 2 |
| 11133 | fi |
| 11134 | done |
| 11135 | done |
| 11136 | IFS=$as_save_IFS |
| 11137 | |
| 11138 | fi |
| 11139 | fi |
| 11140 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 11141 | if test -n "$ac_ct_LIPO"; then |
| 11142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
| 11143 | $as_echo "$ac_ct_LIPO" >&6; } |
| 11144 | else |
| 11145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11146 | $as_echo "no" >&6; } |
| 11147 | fi |
| 11148 | |
| 11149 | if test "x$ac_ct_LIPO" = x; then |
| 11150 | LIPO=":" |
| 11151 | else |
| 11152 | case $cross_compiling:$ac_tool_warned in |
| 11153 | yes:) |
| 11154 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 11155 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 11156 | ac_tool_warned=yes ;; |
| 11157 | esac |
| 11158 | LIPO=$ac_ct_LIPO |
| 11159 | fi |
| 11160 | else |
| 11161 | LIPO="$ac_cv_prog_LIPO" |
| 11162 | fi |
| 11163 | |
| 11164 | if test -n "$ac_tool_prefix"; then |
| 11165 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
| 11166 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
| 11167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11168 | $as_echo_n "checking for $ac_word... " >&6; } |
| 11169 | if ${ac_cv_prog_OTOOL+:} false; then : |
| 11170 | $as_echo_n "(cached) " >&6 |
| 11171 | else |
| 11172 | if test -n "$OTOOL"; then |
| 11173 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 11174 | else |
| 11175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11176 | for as_dir in $PATH |
| 11177 | do |
| 11178 | IFS=$as_save_IFS |
| 11179 | test -z "$as_dir" && as_dir=. |
| 11180 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11181 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11182 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
| 11183 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11184 | break 2 |
| 11185 | fi |
| 11186 | done |
| 11187 | done |
| 11188 | IFS=$as_save_IFS |
| 11189 | |
| 11190 | fi |
| 11191 | fi |
| 11192 | OTOOL=$ac_cv_prog_OTOOL |
| 11193 | if test -n "$OTOOL"; then |
| 11194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
| 11195 | $as_echo "$OTOOL" >&6; } |
| 11196 | else |
| 11197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11198 | $as_echo "no" >&6; } |
| 11199 | fi |
| 11200 | |
| 11201 | |
| 11202 | fi |
| 11203 | if test -z "$ac_cv_prog_OTOOL"; then |
| 11204 | ac_ct_OTOOL=$OTOOL |
| 11205 | # Extract the first word of "otool", so it can be a program name with args. |
| 11206 | set dummy otool; ac_word=$2 |
| 11207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11208 | $as_echo_n "checking for $ac_word... " >&6; } |
| 11209 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
| 11210 | $as_echo_n "(cached) " >&6 |
| 11211 | else |
| 11212 | if test -n "$ac_ct_OTOOL"; then |
| 11213 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 11214 | else |
| 11215 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11216 | for as_dir in $PATH |
| 11217 | do |
| 11218 | IFS=$as_save_IFS |
| 11219 | test -z "$as_dir" && as_dir=. |
| 11220 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11221 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11222 | ac_cv_prog_ac_ct_OTOOL="otool" |
| 11223 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11224 | break 2 |
| 11225 | fi |
| 11226 | done |
| 11227 | done |
| 11228 | IFS=$as_save_IFS |
| 11229 | |
| 11230 | fi |
| 11231 | fi |
| 11232 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 11233 | if test -n "$ac_ct_OTOOL"; then |
| 11234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
| 11235 | $as_echo "$ac_ct_OTOOL" >&6; } |
| 11236 | else |
| 11237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11238 | $as_echo "no" >&6; } |
| 11239 | fi |
| 11240 | |
| 11241 | if test "x$ac_ct_OTOOL" = x; then |
| 11242 | OTOOL=":" |
| 11243 | else |
| 11244 | case $cross_compiling:$ac_tool_warned in |
| 11245 | yes:) |
| 11246 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 11247 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 11248 | ac_tool_warned=yes ;; |
| 11249 | esac |
| 11250 | OTOOL=$ac_ct_OTOOL |
| 11251 | fi |
| 11252 | else |
| 11253 | OTOOL="$ac_cv_prog_OTOOL" |
| 11254 | fi |
| 11255 | |
| 11256 | if test -n "$ac_tool_prefix"; then |
| 11257 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
| 11258 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
| 11259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11260 | $as_echo_n "checking for $ac_word... " >&6; } |
| 11261 | if ${ac_cv_prog_OTOOL64+:} false; then : |
| 11262 | $as_echo_n "(cached) " >&6 |
| 11263 | else |
| 11264 | if test -n "$OTOOL64"; then |
| 11265 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
| 11266 | else |
| 11267 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11268 | for as_dir in $PATH |
| 11269 | do |
| 11270 | IFS=$as_save_IFS |
| 11271 | test -z "$as_dir" && as_dir=. |
| 11272 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11273 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11274 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
| 11275 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11276 | break 2 |
| 11277 | fi |
| 11278 | done |
| 11279 | done |
| 11280 | IFS=$as_save_IFS |
| 11281 | |
| 11282 | fi |
| 11283 | fi |
| 11284 | OTOOL64=$ac_cv_prog_OTOOL64 |
| 11285 | if test -n "$OTOOL64"; then |
| 11286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
| 11287 | $as_echo "$OTOOL64" >&6; } |
| 11288 | else |
| 11289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11290 | $as_echo "no" >&6; } |
| 11291 | fi |
| 11292 | |
| 11293 | |
| 11294 | fi |
| 11295 | if test -z "$ac_cv_prog_OTOOL64"; then |
| 11296 | ac_ct_OTOOL64=$OTOOL64 |
| 11297 | # Extract the first word of "otool64", so it can be a program name with args. |
| 11298 | set dummy otool64; ac_word=$2 |
| 11299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11300 | $as_echo_n "checking for $ac_word... " >&6; } |
| 11301 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
| 11302 | $as_echo_n "(cached) " >&6 |
| 11303 | else |
| 11304 | if test -n "$ac_ct_OTOOL64"; then |
| 11305 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 11306 | else |
| 11307 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11308 | for as_dir in $PATH |
| 11309 | do |
| 11310 | IFS=$as_save_IFS |
| 11311 | test -z "$as_dir" && as_dir=. |
| 11312 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11313 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11314 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
| 11315 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11316 | break 2 |
| 11317 | fi |
| 11318 | done |
| 11319 | done |
| 11320 | IFS=$as_save_IFS |
| 11321 | |
| 11322 | fi |
| 11323 | fi |
| 11324 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 11325 | if test -n "$ac_ct_OTOOL64"; then |
| 11326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
| 11327 | $as_echo "$ac_ct_OTOOL64" >&6; } |
| 11328 | else |
| 11329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11330 | $as_echo "no" >&6; } |
| 11331 | fi |
| 11332 | |
| 11333 | if test "x$ac_ct_OTOOL64" = x; then |
| 11334 | OTOOL64=":" |
| 11335 | else |
| 11336 | case $cross_compiling:$ac_tool_warned in |
| 11337 | yes:) |
| 11338 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 11339 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 11340 | ac_tool_warned=yes ;; |
| 11341 | esac |
| 11342 | OTOOL64=$ac_ct_OTOOL64 |
| 11343 | fi |
| 11344 | else |
| 11345 | OTOOL64="$ac_cv_prog_OTOOL64" |
| 11346 | fi |
| 11347 | |
| 11348 | |
| 11349 | |
| 11350 | |
| 11351 | |
| 11352 | |
| 11353 | |
| 11354 | |
| 11355 | |
| 11356 | |
| 11357 | |
| 11358 | |
| 11359 | |
| 11360 | |
| 11361 | |
| 11362 | |
| 11363 | |
| 11364 | |
| 11365 | |
| 11366 | |
| 11367 | |
| 11368 | |
| 11369 | |
| 11370 | |
| 11371 | |
| 11372 | |
| 11373 | |
| 11374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
| 11375 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
| 11376 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
| 11377 | $as_echo_n "(cached) " >&6 |
| 11378 | else |
| 11379 | lt_cv_apple_cc_single_mod=no |
| 11380 | if test -z "$LT_MULTI_MODULE"; then |
| 11381 | # By default we will add the -single_module flag. You can override |
| 11382 | # by either setting the environment variable LT_MULTI_MODULE |
| 11383 | # non-empty at configure time, or by adding -multi_module to the |
| 11384 | # link flags. |
| 11385 | rm -rf libconftest.dylib* |
| 11386 | echo "int foo(void){return 1;}" > conftest.c |
| 11387 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 11388 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
| 11389 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 11390 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 11391 | _lt_result=$? |
| 11392 | # If there is a non-empty error log, and "single_module" |
| 11393 | # appears in it, assume the flag caused a linker warning |
| 11394 | if test -s conftest.err && $GREP single_module conftest.err; then |
| 11395 | cat conftest.err >&5 |
| 11396 | # Otherwise, if the output was created with a 0 exit code from |
| 11397 | # the compiler, it worked. |
| 11398 | elif test -f libconftest.dylib && test 0 = "$_lt_result"; then |
| 11399 | lt_cv_apple_cc_single_mod=yes |
| 11400 | else |
| 11401 | cat conftest.err >&5 |
| 11402 | fi |
| 11403 | rm -rf libconftest.dylib* |
| 11404 | rm -f conftest.* |
| 11405 | fi |
| 11406 | fi |
| 11407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
| 11408 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
| 11409 | |
| 11410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
| 11411 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
| 11412 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
| 11413 | $as_echo_n "(cached) " >&6 |
| 11414 | else |
| 11415 | lt_cv_ld_exported_symbols_list=no |
| 11416 | save_LDFLAGS=$LDFLAGS |
| 11417 | echo "_main" > conftest.sym |
| 11418 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
| 11419 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11420 | /* end confdefs.h. */ |
| 11421 | |
| 11422 | int main (void) |
| 11423 | { |
| 11424 | |
| 11425 | ; |
| 11426 | return 0; |
| 11427 | } |
| 11428 | _ACEOF |
| 11429 | if ac_fn_c_try_link "$LINENO"; then : |
| 11430 | lt_cv_ld_exported_symbols_list=yes |
| 11431 | else |
| 11432 | lt_cv_ld_exported_symbols_list=no |
| 11433 | fi |
| 11434 | rm -f core conftest.err conftest.$ac_objext \ |
| 11435 | conftest$ac_exeext conftest.$ac_ext |
| 11436 | LDFLAGS=$save_LDFLAGS |
| 11437 | |
| 11438 | fi |
| 11439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
| 11440 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
| 11441 | |
| 11442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
| 11443 | $as_echo_n "checking for -force_load linker flag... " >&6; } |
| 11444 | if ${lt_cv_ld_force_load+:} false; then : |
| 11445 | $as_echo_n "(cached) " >&6 |
| 11446 | else |
| 11447 | lt_cv_ld_force_load=no |
| 11448 | cat > conftest.c << _LT_EOF |
| 11449 | int forced_loaded() { return 2;} |
| 11450 | _LT_EOF |
| 11451 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 |
| 11452 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 |
| 11453 | echo "$AR cru libconftest.a conftest.o" >&5 |
| 11454 | $AR cru libconftest.a conftest.o 2>&5 |
| 11455 | echo "$RANLIB libconftest.a" >&5 |
| 11456 | $RANLIB libconftest.a 2>&5 |
| 11457 | cat > conftest.c << _LT_EOF |
| 11458 | int main() { return 0;} |
| 11459 | _LT_EOF |
| 11460 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 |
| 11461 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
| 11462 | _lt_result=$? |
| 11463 | if test -s conftest.err && $GREP force_load conftest.err; then |
| 11464 | cat conftest.err >&5 |
| 11465 | elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then |
| 11466 | lt_cv_ld_force_load=yes |
| 11467 | else |
| 11468 | cat conftest.err >&5 |
| 11469 | fi |
| 11470 | rm -f conftest.err libconftest.a conftest conftest.c |
| 11471 | rm -rf conftest.dSYM |
| 11472 | |
| 11473 | fi |
| 11474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
| 11475 | $as_echo "$lt_cv_ld_force_load" >&6; } |
| 11476 | case $host_os in |
| 11477 | rhapsody* | darwin1.[012]) |
| 11478 | _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; |
| 11479 | darwin1.*) |
| 11480 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
| 11481 | darwin*) # darwin 5.x on |
| 11482 | # if running on 10.5 or later, the deployment target defaults |
| 11483 | # to the OS version, if on x86, and 10.4, the deployment |
| 11484 | # target defaults to 10.4. Don't you love it? |
| 11485 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 11486 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
| 11487 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
| 11488 | 10.[012][,.]*) |
| 11489 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
| 11490 | 10.*) |
| 11491 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
| 11492 | esac |
| 11493 | ;; |
| 11494 | esac |
| 11495 | if test yes = "$lt_cv_apple_cc_single_mod"; then |
| 11496 | _lt_dar_single_mod='$single_module' |
| 11497 | fi |
| 11498 | if test yes = "$lt_cv_ld_exported_symbols_list"; then |
| 11499 | _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' |
| 11500 | else |
| 11501 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' |
| 11502 | fi |
| 11503 | if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then |
| 11504 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
| 11505 | else |
| 11506 | _lt_dsymutil= |
| 11507 | fi |
| 11508 | ;; |
| 11509 | esac |
| 11510 | |
| 11511 | # func_munge_path_list VARIABLE PATH |
| 11512 | # ----------------------------------- |
| 11513 | # VARIABLE is name of variable containing _space_ separated list of |
| 11514 | # directories to be munged by the contents of PATH, which is string |
| 11515 | # having a format: |
| 11516 | # "DIR[:DIR]:" |
| 11517 | # string "DIR[ DIR]" will be prepended to VARIABLE |
| 11518 | # ":DIR[:DIR]" |
| 11519 | # string "DIR[ DIR]" will be appended to VARIABLE |
| 11520 | # "DIRP[:DIRP]::[DIRA:]DIRA" |
| 11521 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string |
| 11522 | # "DIRA[ DIRA]" will be appended to VARIABLE |
| 11523 | # "DIR[:DIR]" |
| 11524 | # VARIABLE will be replaced by "DIR[ DIR]" |
| 11525 | func_munge_path_list () |
| 11526 | { |
| 11527 | case x$2 in |
| 11528 | x) |
| 11529 | ;; |
| 11530 | *:) |
| 11531 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" |
| 11532 | ;; |
| 11533 | x:*) |
| 11534 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" |
| 11535 | ;; |
| 11536 | *::*) |
| 11537 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" |
| 11538 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" |
| 11539 | ;; |
| 11540 | *) |
| 11541 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" |
| 11542 | ;; |
| 11543 | esac |
| 11544 | } |
| 11545 | |
| 11546 | for ac_header in dlfcn.h |
| 11547 | do : |
| 11548 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
| 11549 | " |
| 11550 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
| 11551 | cat >>confdefs.h <<_ACEOF |
| 11552 | #define HAVE_DLFCN_H 1 |
| 11553 | _ACEOF |
| 11554 | |
| 11555 | fi |
| 11556 | |
| 11557 | done |
| 11558 | |
| 11559 | # ------------------------------------ # |
| 11560 | # Determine libtool default behavior # |
| 11561 | # ------------------------------------ # |
| 11562 | |
| 11563 | # |
| 11564 | # Default behavior is to enable shared and static libraries on systems |
| 11565 | # where libtool knows how to build both library versions, and does not |
| 11566 | # require separate configuration and build runs for each flavor. |
| 11567 | # |
| 11568 | |
| 11569 | xc_lt_want_enable_shared='yes' |
| 11570 | xc_lt_want_enable_static='yes' |
| 11571 | |
| 11572 | # |
| 11573 | # User may have disabled shared or static libraries. |
| 11574 | # |
| 11575 | case "x$enable_shared" in # ( |
| 11576 | xno) |
| 11577 | xc_lt_want_enable_shared='no' |
| 11578 | ;; |
| 11579 | esac |
| 11580 | case "x$enable_static" in # ( |
| 11581 | xno) |
| 11582 | xc_lt_want_enable_static='no' |
| 11583 | ;; |
| 11584 | esac |
| 11585 | if test "x$xc_lt_want_enable_shared" = 'xno' && |
| 11586 | test "x$xc_lt_want_enable_static" = 'xno'; then |
| 11587 | as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5 |
| 11588 | fi |
| 11589 | |
| 11590 | # |
| 11591 | # Default behavior on systems that require independent configuration |
| 11592 | # and build runs for shared and static is to enable shared libraries |
| 11593 | # and disable static ones. On these systems option '--disable-shared' |
| 11594 | # must be used in order to build a proper static library. |
| 11595 | # |
| 11596 | |
| 11597 | if test "x$xc_lt_want_enable_shared" = 'xyes' && |
| 11598 | test "x$xc_lt_want_enable_static" = 'xyes'; then |
| 11599 | case $host_os in # ( |
| 11600 | pw32* | cegcc* | os2* | aix*) |
| 11601 | xc_lt_want_enable_static='no' |
| 11602 | ;; |
| 11603 | esac |
| 11604 | fi |
| 11605 | |
| 11606 | # |
| 11607 | # Make libtool aware of current shared and static library preferences |
| 11608 | # taking in account that, depending on host characteristics, libtool |
| 11609 | # may modify these option preferences later in this configure script. |
| 11610 | # |
| 11611 | |
| 11612 | enable_shared=$xc_lt_want_enable_shared |
| 11613 | enable_static=$xc_lt_want_enable_static |
| 11614 | |
| 11615 | # |
| 11616 | # Default behavior is to build PIC objects for shared libraries and |
| 11617 | # non-PIC objects for static libraries. |
| 11618 | # |
| 11619 | |
| 11620 | xc_lt_want_with_pic='default' |
| 11621 | |
| 11622 | # |
| 11623 | # User may have specified PIC preference. |
| 11624 | # |
| 11625 | |
| 11626 | case "x$with_pic" in # (( |
| 11627 | xno) |
| 11628 | xc_lt_want_with_pic='no' |
| 11629 | ;; |
| 11630 | xyes) |
| 11631 | xc_lt_want_with_pic='yes' |
| 11632 | ;; |
| 11633 | esac |
| 11634 | |
| 11635 | # |
| 11636 | # Default behavior on some systems where building a shared library out |
| 11637 | # of non-PIC compiled objects will fail with following linker error |
| 11638 | # "relocation R_X86_64_32 can not be used when making a shared object" |
| 11639 | # is to build PIC objects even for static libraries. This behavior may |
| 11640 | # be overridden using 'configure --disable-shared --without-pic'. |
| 11641 | # |
| 11642 | |
| 11643 | if test "x$xc_lt_want_with_pic" = 'xdefault'; then |
| 11644 | case $host_cpu in # ( |
| 11645 | x86_64 | amd64 | ia64) |
| 11646 | case $host_os in # ( |
| 11647 | linux* | freebsd*) |
| 11648 | xc_lt_want_with_pic='yes' |
| 11649 | ;; |
| 11650 | esac |
| 11651 | ;; |
| 11652 | esac |
| 11653 | fi |
| 11654 | |
| 11655 | # |
| 11656 | # Make libtool aware of current PIC preference taking in account that, |
| 11657 | # depending on host characteristics, libtool may modify PIC default |
| 11658 | # behavior to fit host system idiosyncrasies later in this script. |
| 11659 | # |
| 11660 | |
| 11661 | with_pic=$xc_lt_want_with_pic |
| 11662 | |
| 11663 | ## ----------------------- ## |
| 11664 | ## Start of libtool code ## |
| 11665 | ## ----------------------- ## |
| 11666 | |
| 11667 | |
| 11668 | |
| 11669 | |
| 11670 | # Set options |
| 11671 | enable_win32_dll=yes |
| 11672 | |
| 11673 | case $host in |
| 11674 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) |
| 11675 | if test -n "$ac_tool_prefix"; then |
| 11676 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. |
| 11677 | set dummy ${ac_tool_prefix}as; ac_word=$2 |
| 11678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11679 | $as_echo_n "checking for $ac_word... " >&6; } |
| 11680 | if ${ac_cv_prog_AS+:} false; then : |
| 11681 | $as_echo_n "(cached) " >&6 |
| 11682 | else |
| 11683 | if test -n "$AS"; then |
| 11684 | ac_cv_prog_AS="$AS" # Let the user override the test. |
| 11685 | else |
| 11686 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11687 | for as_dir in $PATH |
| 11688 | do |
| 11689 | IFS=$as_save_IFS |
| 11690 | test -z "$as_dir" && as_dir=. |
| 11691 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11692 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11693 | ac_cv_prog_AS="${ac_tool_prefix}as" |
| 11694 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11695 | break 2 |
| 11696 | fi |
| 11697 | done |
| 11698 | done |
| 11699 | IFS=$as_save_IFS |
| 11700 | |
| 11701 | fi |
| 11702 | fi |
| 11703 | AS=$ac_cv_prog_AS |
| 11704 | if test -n "$AS"; then |
| 11705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
| 11706 | $as_echo "$AS" >&6; } |
| 11707 | else |
| 11708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11709 | $as_echo "no" >&6; } |
| 11710 | fi |
| 11711 | |
| 11712 | |
| 11713 | fi |
| 11714 | if test -z "$ac_cv_prog_AS"; then |
| 11715 | ac_ct_AS=$AS |
| 11716 | # Extract the first word of "as", so it can be a program name with args. |
| 11717 | set dummy as; ac_word=$2 |
| 11718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11719 | $as_echo_n "checking for $ac_word... " >&6; } |
| 11720 | if ${ac_cv_prog_ac_ct_AS+:} false; then : |
| 11721 | $as_echo_n "(cached) " >&6 |
| 11722 | else |
| 11723 | if test -n "$ac_ct_AS"; then |
| 11724 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. |
| 11725 | else |
| 11726 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11727 | for as_dir in $PATH |
| 11728 | do |
| 11729 | IFS=$as_save_IFS |
| 11730 | test -z "$as_dir" && as_dir=. |
| 11731 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11732 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11733 | ac_cv_prog_ac_ct_AS="as" |
| 11734 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11735 | break 2 |
| 11736 | fi |
| 11737 | done |
| 11738 | done |
| 11739 | IFS=$as_save_IFS |
| 11740 | |
| 11741 | fi |
| 11742 | fi |
| 11743 | ac_ct_AS=$ac_cv_prog_ac_ct_AS |
| 11744 | if test -n "$ac_ct_AS"; then |
| 11745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 |
| 11746 | $as_echo "$ac_ct_AS" >&6; } |
| 11747 | else |
| 11748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11749 | $as_echo "no" >&6; } |
| 11750 | fi |
| 11751 | |
| 11752 | if test "x$ac_ct_AS" = x; then |
| 11753 | AS="false" |
| 11754 | else |
| 11755 | case $cross_compiling:$ac_tool_warned in |
| 11756 | yes:) |
| 11757 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 11758 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 11759 | ac_tool_warned=yes ;; |
| 11760 | esac |
| 11761 | AS=$ac_ct_AS |
| 11762 | fi |
| 11763 | else |
| 11764 | AS="$ac_cv_prog_AS" |
| 11765 | fi |
| 11766 | |
| 11767 | if test -n "$ac_tool_prefix"; then |
| 11768 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 11769 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 11770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11771 | $as_echo_n "checking for $ac_word... " >&6; } |
| 11772 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
| 11773 | $as_echo_n "(cached) " >&6 |
| 11774 | else |
| 11775 | if test -n "$DLLTOOL"; then |
| 11776 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 11777 | else |
| 11778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11779 | for as_dir in $PATH |
| 11780 | do |
| 11781 | IFS=$as_save_IFS |
| 11782 | test -z "$as_dir" && as_dir=. |
| 11783 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11784 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11785 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 11786 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11787 | break 2 |
| 11788 | fi |
| 11789 | done |
| 11790 | done |
| 11791 | IFS=$as_save_IFS |
| 11792 | |
| 11793 | fi |
| 11794 | fi |
| 11795 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 11796 | if test -n "$DLLTOOL"; then |
| 11797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
| 11798 | $as_echo "$DLLTOOL" >&6; } |
| 11799 | else |
| 11800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11801 | $as_echo "no" >&6; } |
| 11802 | fi |
| 11803 | |
| 11804 | |
| 11805 | fi |
| 11806 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 11807 | ac_ct_DLLTOOL=$DLLTOOL |
| 11808 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 11809 | set dummy dlltool; ac_word=$2 |
| 11810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11811 | $as_echo_n "checking for $ac_word... " >&6; } |
| 11812 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
| 11813 | $as_echo_n "(cached) " >&6 |
| 11814 | else |
| 11815 | if test -n "$ac_ct_DLLTOOL"; then |
| 11816 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 11817 | else |
| 11818 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11819 | for as_dir in $PATH |
| 11820 | do |
| 11821 | IFS=$as_save_IFS |
| 11822 | test -z "$as_dir" && as_dir=. |
| 11823 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11824 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11825 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 11826 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11827 | break 2 |
| 11828 | fi |
| 11829 | done |
| 11830 | done |
| 11831 | IFS=$as_save_IFS |
| 11832 | |
| 11833 | fi |
| 11834 | fi |
| 11835 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 11836 | if test -n "$ac_ct_DLLTOOL"; then |
| 11837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
| 11838 | $as_echo "$ac_ct_DLLTOOL" >&6; } |
| 11839 | else |
| 11840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11841 | $as_echo "no" >&6; } |
| 11842 | fi |
| 11843 | |
| 11844 | if test "x$ac_ct_DLLTOOL" = x; then |
| 11845 | DLLTOOL="false" |
| 11846 | else |
| 11847 | case $cross_compiling:$ac_tool_warned in |
| 11848 | yes:) |
| 11849 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 11850 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 11851 | ac_tool_warned=yes ;; |
| 11852 | esac |
| 11853 | DLLTOOL=$ac_ct_DLLTOOL |
| 11854 | fi |
| 11855 | else |
| 11856 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 11857 | fi |
| 11858 | |
| 11859 | if test -n "$ac_tool_prefix"; then |
| 11860 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 11861 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 11862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11863 | $as_echo_n "checking for $ac_word... " >&6; } |
| 11864 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
| 11865 | $as_echo_n "(cached) " >&6 |
| 11866 | else |
| 11867 | if test -n "$OBJDUMP"; then |
| 11868 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 11869 | else |
| 11870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11871 | for as_dir in $PATH |
| 11872 | do |
| 11873 | IFS=$as_save_IFS |
| 11874 | test -z "$as_dir" && as_dir=. |
| 11875 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11876 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11877 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 11878 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11879 | break 2 |
| 11880 | fi |
| 11881 | done |
| 11882 | done |
| 11883 | IFS=$as_save_IFS |
| 11884 | |
| 11885 | fi |
| 11886 | fi |
| 11887 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 11888 | if test -n "$OBJDUMP"; then |
| 11889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 11890 | $as_echo "$OBJDUMP" >&6; } |
| 11891 | else |
| 11892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11893 | $as_echo "no" >&6; } |
| 11894 | fi |
| 11895 | |
| 11896 | |
| 11897 | fi |
| 11898 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 11899 | ac_ct_OBJDUMP=$OBJDUMP |
| 11900 | # Extract the first word of "objdump", so it can be a program name with args. |
| 11901 | set dummy objdump; ac_word=$2 |
| 11902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11903 | $as_echo_n "checking for $ac_word... " >&6; } |
| 11904 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
| 11905 | $as_echo_n "(cached) " >&6 |
| 11906 | else |
| 11907 | if test -n "$ac_ct_OBJDUMP"; then |
| 11908 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 11909 | else |
| 11910 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11911 | for as_dir in $PATH |
| 11912 | do |
| 11913 | IFS=$as_save_IFS |
| 11914 | test -z "$as_dir" && as_dir=. |
| 11915 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11916 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 11917 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 11918 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11919 | break 2 |
| 11920 | fi |
| 11921 | done |
| 11922 | done |
| 11923 | IFS=$as_save_IFS |
| 11924 | |
| 11925 | fi |
| 11926 | fi |
| 11927 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 11928 | if test -n "$ac_ct_OBJDUMP"; then |
| 11929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| 11930 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
| 11931 | else |
| 11932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11933 | $as_echo "no" >&6; } |
| 11934 | fi |
| 11935 | |
| 11936 | if test "x$ac_ct_OBJDUMP" = x; then |
| 11937 | OBJDUMP="false" |
| 11938 | else |
| 11939 | case $cross_compiling:$ac_tool_warned in |
| 11940 | yes:) |
| 11941 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 11942 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 11943 | ac_tool_warned=yes ;; |
| 11944 | esac |
| 11945 | OBJDUMP=$ac_ct_OBJDUMP |
| 11946 | fi |
| 11947 | else |
| 11948 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 11949 | fi |
| 11950 | |
| 11951 | ;; |
| 11952 | esac |
| 11953 | |
| 11954 | test -z "$AS" && AS=as |
| 11955 | |
| 11956 | |
| 11957 | |
| 11958 | |
| 11959 | |
| 11960 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 11961 | |
| 11962 | |
| 11963 | |
| 11964 | |
| 11965 | |
| 11966 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 11967 | |
| 11968 | |
| 11969 | |
| 11970 | |
| 11971 | |
| 11972 | |
| 11973 | |
| 11974 | enable_dlopen=no |
| 11975 | |
| 11976 | |
| 11977 | |
| 11978 | # Check whether --enable-shared was given. |
| 11979 | if test "${enable_shared+set}" = set; then : |
| 11980 | enableval=$enable_shared; p=${PACKAGE-default} |
| 11981 | case $enableval in |
| 11982 | yes) enable_shared=yes ;; |
| 11983 | no) enable_shared=no ;; |
| 11984 | *) |
| 11985 | enable_shared=no |
| 11986 | # Look at the argument we got. We use all the common list separators. |
| 11987 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 11988 | for pkg in $enableval; do |
| 11989 | IFS=$lt_save_ifs |
| 11990 | if test "X$pkg" = "X$p"; then |
| 11991 | enable_shared=yes |
| 11992 | fi |
| 11993 | done |
| 11994 | IFS=$lt_save_ifs |
| 11995 | ;; |
| 11996 | esac |
| 11997 | else |
| 11998 | enable_shared=yes |
| 11999 | fi |
| 12000 | |
| 12001 | |
| 12002 | |
| 12003 | |
| 12004 | |
| 12005 | |
| 12006 | |
| 12007 | |
| 12008 | |
| 12009 | # Check whether --enable-static was given. |
| 12010 | if test "${enable_static+set}" = set; then : |
| 12011 | enableval=$enable_static; p=${PACKAGE-default} |
| 12012 | case $enableval in |
| 12013 | yes) enable_static=yes ;; |
| 12014 | no) enable_static=no ;; |
| 12015 | *) |
| 12016 | enable_static=no |
| 12017 | # Look at the argument we got. We use all the common list separators. |
| 12018 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 12019 | for pkg in $enableval; do |
| 12020 | IFS=$lt_save_ifs |
| 12021 | if test "X$pkg" = "X$p"; then |
| 12022 | enable_static=yes |
| 12023 | fi |
| 12024 | done |
| 12025 | IFS=$lt_save_ifs |
| 12026 | ;; |
| 12027 | esac |
| 12028 | else |
| 12029 | enable_static=yes |
| 12030 | fi |
| 12031 | |
| 12032 | |
| 12033 | |
| 12034 | |
| 12035 | |
| 12036 | |
| 12037 | |
| 12038 | |
| 12039 | |
| 12040 | |
| 12041 | # Check whether --with-pic was given. |
| 12042 | if test "${with_pic+set}" = set; then : |
| 12043 | withval=$with_pic; lt_p=${PACKAGE-default} |
| 12044 | case $withval in |
| 12045 | yes|no) pic_mode=$withval ;; |
| 12046 | *) |
| 12047 | pic_mode=default |
| 12048 | # Look at the argument we got. We use all the common list separators. |
| 12049 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 12050 | for lt_pkg in $withval; do |
| 12051 | IFS=$lt_save_ifs |
| 12052 | if test "X$lt_pkg" = "X$lt_p"; then |
| 12053 | pic_mode=yes |
| 12054 | fi |
| 12055 | done |
| 12056 | IFS=$lt_save_ifs |
| 12057 | ;; |
| 12058 | esac |
| 12059 | else |
| 12060 | pic_mode=default |
| 12061 | fi |
| 12062 | |
| 12063 | |
| 12064 | |
| 12065 | |
| 12066 | |
| 12067 | |
| 12068 | |
| 12069 | |
| 12070 | # Check whether --enable-fast-install was given. |
| 12071 | if test "${enable_fast_install+set}" = set; then : |
| 12072 | enableval=$enable_fast_install; p=${PACKAGE-default} |
| 12073 | case $enableval in |
| 12074 | yes) enable_fast_install=yes ;; |
| 12075 | no) enable_fast_install=no ;; |
| 12076 | *) |
| 12077 | enable_fast_install=no |
| 12078 | # Look at the argument we got. We use all the common list separators. |
| 12079 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 12080 | for pkg in $enableval; do |
| 12081 | IFS=$lt_save_ifs |
| 12082 | if test "X$pkg" = "X$p"; then |
| 12083 | enable_fast_install=yes |
| 12084 | fi |
| 12085 | done |
| 12086 | IFS=$lt_save_ifs |
| 12087 | ;; |
| 12088 | esac |
| 12089 | else |
| 12090 | enable_fast_install=yes |
| 12091 | fi |
| 12092 | |
| 12093 | |
| 12094 | |
| 12095 | |
| 12096 | |
| 12097 | |
| 12098 | |
| 12099 | |
| 12100 | shared_archive_member_spec= |
| 12101 | case $host,$enable_shared in |
| 12102 | power*-*-aix[5-9]*,yes) |
| 12103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 |
| 12104 | $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } |
| 12105 | |
| 12106 | # Check whether --with-aix-soname was given. |
| 12107 | if test "${with_aix_soname+set}" = set; then : |
| 12108 | withval=$with_aix_soname; case $withval in |
| 12109 | aix|svr4|both) |
| 12110 | ;; |
| 12111 | *) |
| 12112 | as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 |
| 12113 | ;; |
| 12114 | esac |
| 12115 | lt_cv_with_aix_soname=$with_aix_soname |
| 12116 | else |
| 12117 | if ${lt_cv_with_aix_soname+:} false; then : |
| 12118 | $as_echo_n "(cached) " >&6 |
| 12119 | else |
| 12120 | lt_cv_with_aix_soname=aix |
| 12121 | fi |
| 12122 | |
| 12123 | with_aix_soname=$lt_cv_with_aix_soname |
| 12124 | fi |
| 12125 | |
| 12126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 |
| 12127 | $as_echo "$with_aix_soname" >&6; } |
| 12128 | if test aix != "$with_aix_soname"; then |
| 12129 | # For the AIX way of multilib, we name the shared archive member |
| 12130 | # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', |
| 12131 | # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. |
| 12132 | # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, |
| 12133 | # the AIX toolchain works better with OBJECT_MODE set (default 32). |
| 12134 | if test 64 = "${OBJECT_MODE-32}"; then |
| 12135 | shared_archive_member_spec=shr_64 |
| 12136 | else |
| 12137 | shared_archive_member_spec=shr |
| 12138 | fi |
| 12139 | fi |
| 12140 | ;; |
| 12141 | *) |
| 12142 | with_aix_soname=aix |
| 12143 | ;; |
| 12144 | esac |
| 12145 | |
| 12146 | |
| 12147 | |
| 12148 | |
| 12149 | |
| 12150 | |
| 12151 | |
| 12152 | |
| 12153 | |
| 12154 | |
| 12155 | # This can be used to rebuild libtool when needed |
| 12156 | LIBTOOL_DEPS=$ltmain |
| 12157 | |
| 12158 | # Always use our own libtool. |
| 12159 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 12160 | |
| 12161 | |
| 12162 | |
| 12163 | |
| 12164 | |
| 12165 | |
| 12166 | |
| 12167 | |
| 12168 | |
| 12169 | |
| 12170 | |
| 12171 | |
| 12172 | |
| 12173 | |
| 12174 | |
| 12175 | |
| 12176 | |
| 12177 | |
| 12178 | |
| 12179 | |
| 12180 | |
| 12181 | |
| 12182 | |
| 12183 | |
| 12184 | |
| 12185 | |
| 12186 | |
| 12187 | |
| 12188 | |
| 12189 | |
| 12190 | test -z "$LN_S" && LN_S="ln -s" |
| 12191 | |
| 12192 | |
| 12193 | |
| 12194 | |
| 12195 | |
| 12196 | |
| 12197 | |
| 12198 | |
| 12199 | |
| 12200 | |
| 12201 | |
| 12202 | |
| 12203 | |
| 12204 | |
| 12205 | if test -n "${ZSH_VERSION+set}"; then |
| 12206 | setopt NO_GLOB_SUBST |
| 12207 | fi |
| 12208 | |
| 12209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
| 12210 | $as_echo_n "checking for objdir... " >&6; } |
| 12211 | if ${lt_cv_objdir+:} false; then : |
| 12212 | $as_echo_n "(cached) " >&6 |
| 12213 | else |
| 12214 | rm -f .libs 2>/dev/null |
| 12215 | mkdir .libs 2>/dev/null |
| 12216 | if test -d .libs; then |
| 12217 | lt_cv_objdir=.libs |
| 12218 | else |
| 12219 | # MS-DOS does not allow filenames that begin with a dot. |
| 12220 | lt_cv_objdir=_libs |
| 12221 | fi |
| 12222 | rmdir .libs 2>/dev/null |
| 12223 | fi |
| 12224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
| 12225 | $as_echo "$lt_cv_objdir" >&6; } |
| 12226 | objdir=$lt_cv_objdir |
| 12227 | |
| 12228 | |
| 12229 | |
| 12230 | |
| 12231 | |
| 12232 | cat >>confdefs.h <<_ACEOF |
| 12233 | #define LT_OBJDIR "$lt_cv_objdir/" |
| 12234 | _ACEOF |
| 12235 | |
| 12236 | |
| 12237 | |
| 12238 | |
| 12239 | case $host_os in |
| 12240 | aix3*) |
| 12241 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 12242 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 12243 | # vanish in a puff of smoke. |
| 12244 | if test set != "${COLLECT_NAMES+set}"; then |
| 12245 | COLLECT_NAMES= |
| 12246 | export COLLECT_NAMES |
| 12247 | fi |
| 12248 | ;; |
| 12249 | esac |
| 12250 | |
| 12251 | # Global variables: |
| 12252 | ofile=libtool |
| 12253 | can_build_shared=yes |
| 12254 | |
| 12255 | # All known linkers require a '.a' archive for static linking (except MSVC, |
| 12256 | # which needs '.lib'). |
| 12257 | libext=a |
| 12258 | |
| 12259 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 12260 | |
| 12261 | old_CC=$CC |
| 12262 | old_CFLAGS=$CFLAGS |
| 12263 | |
| 12264 | # Set sane defaults for various variables |
| 12265 | test -z "$CC" && CC=cc |
| 12266 | test -z "$LTCC" && LTCC=$CC |
| 12267 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
| 12268 | test -z "$LD" && LD=ld |
| 12269 | test -z "$ac_objext" && ac_objext=o |
| 12270 | |
| 12271 | func_cc_basename $compiler |
| 12272 | cc_basename=$func_cc_basename_result |
| 12273 | |
| 12274 | |
| 12275 | # Only perform the check for file, if the check method requires it |
| 12276 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 12277 | case $deplibs_check_method in |
| 12278 | file_magic*) |
| 12279 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 12280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
| 12281 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
| 12282 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
| 12283 | $as_echo_n "(cached) " >&6 |
| 12284 | else |
| 12285 | case $MAGIC_CMD in |
| 12286 | [\\/*] | ?:[\\/]*) |
| 12287 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
| 12288 | ;; |
| 12289 | *) |
| 12290 | lt_save_MAGIC_CMD=$MAGIC_CMD |
| 12291 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 12292 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 12293 | for ac_dir in $ac_dummy; do |
| 12294 | IFS=$lt_save_ifs |
| 12295 | test -z "$ac_dir" && ac_dir=. |
| 12296 | if test -f "$ac_dir/${ac_tool_prefix}file"; then |
| 12297 | lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" |
| 12298 | if test -n "$file_magic_test_file"; then |
| 12299 | case $deplibs_check_method in |
| 12300 | "file_magic "*) |
| 12301 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 12302 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 12303 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 12304 | $EGREP "$file_magic_regex" > /dev/null; then |
| 12305 | : |
| 12306 | else |
| 12307 | cat <<_LT_EOF 1>&2 |
| 12308 | |
| 12309 | *** Warning: the command libtool uses to detect shared libraries, |
| 12310 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 12311 | *** The result is that libtool may fail to recognize shared libraries |
| 12312 | *** as such. This will affect the creation of libtool libraries that |
| 12313 | *** depend on shared libraries, but programs linked with such libtool |
| 12314 | *** libraries will work regardless of this problem. Nevertheless, you |
| 12315 | *** may want to report the problem to your system manager and/or to |
| 12316 | *** bug-libtool@gnu.org |
| 12317 | |
| 12318 | _LT_EOF |
| 12319 | fi ;; |
| 12320 | esac |
| 12321 | fi |
| 12322 | break |
| 12323 | fi |
| 12324 | done |
| 12325 | IFS=$lt_save_ifs |
| 12326 | MAGIC_CMD=$lt_save_MAGIC_CMD |
| 12327 | ;; |
| 12328 | esac |
| 12329 | fi |
| 12330 | |
| 12331 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 12332 | if test -n "$MAGIC_CMD"; then |
| 12333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 12334 | $as_echo "$MAGIC_CMD" >&6; } |
| 12335 | else |
| 12336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12337 | $as_echo "no" >&6; } |
| 12338 | fi |
| 12339 | |
| 12340 | |
| 12341 | |
| 12342 | |
| 12343 | |
| 12344 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 12345 | if test -n "$ac_tool_prefix"; then |
| 12346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
| 12347 | $as_echo_n "checking for file... " >&6; } |
| 12348 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
| 12349 | $as_echo_n "(cached) " >&6 |
| 12350 | else |
| 12351 | case $MAGIC_CMD in |
| 12352 | [\\/*] | ?:[\\/]*) |
| 12353 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
| 12354 | ;; |
| 12355 | *) |
| 12356 | lt_save_MAGIC_CMD=$MAGIC_CMD |
| 12357 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 12358 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 12359 | for ac_dir in $ac_dummy; do |
| 12360 | IFS=$lt_save_ifs |
| 12361 | test -z "$ac_dir" && ac_dir=. |
| 12362 | if test -f "$ac_dir/file"; then |
| 12363 | lt_cv_path_MAGIC_CMD=$ac_dir/"file" |
| 12364 | if test -n "$file_magic_test_file"; then |
| 12365 | case $deplibs_check_method in |
| 12366 | "file_magic "*) |
| 12367 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 12368 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 12369 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 12370 | $EGREP "$file_magic_regex" > /dev/null; then |
| 12371 | : |
| 12372 | else |
| 12373 | cat <<_LT_EOF 1>&2 |
| 12374 | |
| 12375 | *** Warning: the command libtool uses to detect shared libraries, |
| 12376 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 12377 | *** The result is that libtool may fail to recognize shared libraries |
| 12378 | *** as such. This will affect the creation of libtool libraries that |
| 12379 | *** depend on shared libraries, but programs linked with such libtool |
| 12380 | *** libraries will work regardless of this problem. Nevertheless, you |
| 12381 | *** may want to report the problem to your system manager and/or to |
| 12382 | *** bug-libtool@gnu.org |
| 12383 | |
| 12384 | _LT_EOF |
| 12385 | fi ;; |
| 12386 | esac |
| 12387 | fi |
| 12388 | break |
| 12389 | fi |
| 12390 | done |
| 12391 | IFS=$lt_save_ifs |
| 12392 | MAGIC_CMD=$lt_save_MAGIC_CMD |
| 12393 | ;; |
| 12394 | esac |
| 12395 | fi |
| 12396 | |
| 12397 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 12398 | if test -n "$MAGIC_CMD"; then |
| 12399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 12400 | $as_echo "$MAGIC_CMD" >&6; } |
| 12401 | else |
| 12402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12403 | $as_echo "no" >&6; } |
| 12404 | fi |
| 12405 | |
| 12406 | |
| 12407 | else |
| 12408 | MAGIC_CMD=: |
| 12409 | fi |
| 12410 | fi |
| 12411 | |
| 12412 | fi |
| 12413 | ;; |
| 12414 | esac |
| 12415 | |
| 12416 | # Use C for the default configuration in the libtool script |
| 12417 | |
| 12418 | lt_save_CC=$CC |
| 12419 | ac_ext=c |
| 12420 | ac_cpp='$CPP $CPPFLAGS' |
| 12421 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12422 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12423 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12424 | |
| 12425 | |
| 12426 | # Source file extension for C test sources. |
| 12427 | ac_ext=c |
| 12428 | |
| 12429 | # Object file extension for compiled C test sources. |
| 12430 | objext=o |
| 12431 | objext=$objext |
| 12432 | |
| 12433 | # Code to be used in simple compile tests |
| 12434 | lt_simple_compile_test_code="int some_variable = 0;" |
| 12435 | |
| 12436 | # Code to be used in simple link tests |
| 12437 | lt_simple_link_test_code='int main(){return(0);}' |
| 12438 | |
| 12439 | |
| 12440 | |
| 12441 | |
| 12442 | |
| 12443 | |
| 12444 | |
| 12445 | # If no C compiler was specified, use CC. |
| 12446 | LTCC=${LTCC-"$CC"} |
| 12447 | |
| 12448 | # If no C compiler flags were specified, use CFLAGS. |
| 12449 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 12450 | |
| 12451 | # Allow CC to be a program name with arguments. |
| 12452 | compiler=$CC |
| 12453 | |
| 12454 | # Save the default compiler, since it gets overwritten when the other |
| 12455 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 12456 | compiler_DEFAULT=$CC |
| 12457 | |
| 12458 | # save warnings/boilerplate of simple test code |
| 12459 | ac_outfile=conftest.$ac_objext |
| 12460 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 12461 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 12462 | _lt_compiler_boilerplate=`cat conftest.err` |
| 12463 | $RM conftest* |
| 12464 | |
| 12465 | ac_outfile=conftest.$ac_objext |
| 12466 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 12467 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 12468 | _lt_linker_boilerplate=`cat conftest.err` |
| 12469 | $RM -r conftest* |
| 12470 | |
| 12471 | |
| 12472 | ## CAVEAT EMPTOR: |
| 12473 | ## There is no encapsulation within the following macros, do not change |
| 12474 | ## the running order or otherwise move them around unless you know exactly |
| 12475 | ## what you are doing... |
| 12476 | if test -n "$compiler"; then |
| 12477 | |
| 12478 | lt_prog_compiler_no_builtin_flag= |
| 12479 | |
| 12480 | if test yes = "$GCC"; then |
| 12481 | case $cc_basename in |
| 12482 | nvcc*) |
| 12483 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
| 12484 | *) |
| 12485 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; |
| 12486 | esac |
| 12487 | |
| 12488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 12489 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
| 12490 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
| 12491 | $as_echo_n "(cached) " >&6 |
| 12492 | else |
| 12493 | lt_cv_prog_compiler_rtti_exceptions=no |
| 12494 | ac_outfile=conftest.$ac_objext |
| 12495 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12496 | lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment |
| 12497 | # Insert the option either (1) after the last *FLAGS variable, or |
| 12498 | # (2) before a word containing "conftest.", or (3) at the end. |
| 12499 | # Note that $ac_compile itself does not contain backslashes and begins |
| 12500 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 12501 | # The option is referenced via a variable to avoid confusing sed. |
| 12502 | lt_compile=`echo "$ac_compile" | $SED \ |
| 12503 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 12504 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 12505 | -e 's:$: $lt_compiler_flag:'` |
| 12506 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 12507 | (eval "$lt_compile" 2>conftest.err) |
| 12508 | ac_status=$? |
| 12509 | cat conftest.err >&5 |
| 12510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12511 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 12512 | # The compiler can only warn and ignore the option if not recognized |
| 12513 | # So say no if there are warnings other than the usual output. |
| 12514 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 12515 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 12516 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 12517 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 12518 | fi |
| 12519 | fi |
| 12520 | $RM conftest* |
| 12521 | |
| 12522 | fi |
| 12523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 12524 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
| 12525 | |
| 12526 | if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then |
| 12527 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 12528 | else |
| 12529 | : |
| 12530 | fi |
| 12531 | |
| 12532 | fi |
| 12533 | |
| 12534 | |
| 12535 | |
| 12536 | |
| 12537 | |
| 12538 | |
| 12539 | lt_prog_compiler_wl= |
| 12540 | lt_prog_compiler_pic= |
| 12541 | lt_prog_compiler_static= |
| 12542 | |
| 12543 | |
| 12544 | if test yes = "$GCC"; then |
| 12545 | lt_prog_compiler_wl='-Wl,' |
| 12546 | lt_prog_compiler_static='-static' |
| 12547 | |
| 12548 | case $host_os in |
| 12549 | aix*) |
| 12550 | # All AIX code is PIC. |
| 12551 | if test ia64 = "$host_cpu"; then |
| 12552 | # AIX 5 now supports IA64 processor |
| 12553 | lt_prog_compiler_static='-Bstatic' |
| 12554 | fi |
| 12555 | lt_prog_compiler_pic='-fPIC' |
| 12556 | ;; |
| 12557 | |
| 12558 | amigaos*) |
| 12559 | case $host_cpu in |
| 12560 | powerpc) |
| 12561 | # see comment about AmigaOS4 .so support |
| 12562 | lt_prog_compiler_pic='-fPIC' |
| 12563 | ;; |
| 12564 | m68k) |
| 12565 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 12566 | # adding the '-m68020' flag to GCC prevents building anything better, |
| 12567 | # like '-m68040'. |
| 12568 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 12569 | ;; |
| 12570 | esac |
| 12571 | ;; |
| 12572 | |
| 12573 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 12574 | # PIC is the default for these OSes. |
| 12575 | ;; |
| 12576 | |
| 12577 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 12578 | # This hack is so that the source file can tell whether it is being |
| 12579 | # built for inclusion in a dll (and should export symbols for example). |
| 12580 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 12581 | # (--disable-auto-import) libraries |
| 12582 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 12583 | case $host_os in |
| 12584 | os2*) |
| 12585 | lt_prog_compiler_static='$wl-static' |
| 12586 | ;; |
| 12587 | esac |
| 12588 | ;; |
| 12589 | |
| 12590 | darwin* | rhapsody*) |
| 12591 | # PIC is the default on this platform |
| 12592 | # Common symbols not allowed in MH_DYLIB files |
| 12593 | lt_prog_compiler_pic='-fno-common' |
| 12594 | ;; |
| 12595 | |
| 12596 | haiku*) |
| 12597 | # PIC is the default for Haiku. |
| 12598 | # The "-static" flag exists, but is broken. |
| 12599 | lt_prog_compiler_static= |
| 12600 | ;; |
| 12601 | |
| 12602 | hpux*) |
| 12603 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 12604 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 12605 | # sets the default TLS model and affects inlining. |
| 12606 | case $host_cpu in |
| 12607 | hppa*64*) |
| 12608 | # +Z the default |
| 12609 | ;; |
| 12610 | *) |
| 12611 | lt_prog_compiler_pic='-fPIC' |
| 12612 | ;; |
| 12613 | esac |
| 12614 | ;; |
| 12615 | |
| 12616 | interix[3-9]*) |
| 12617 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 12618 | # Instead, we relocate shared libraries at runtime. |
| 12619 | ;; |
| 12620 | |
| 12621 | msdosdjgpp*) |
| 12622 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 12623 | # on systems that don't support them. |
| 12624 | lt_prog_compiler_can_build_shared=no |
| 12625 | enable_shared=no |
| 12626 | ;; |
| 12627 | |
| 12628 | *nto* | *qnx*) |
| 12629 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 12630 | # it will coredump. |
| 12631 | lt_prog_compiler_pic='-fPIC -shared' |
| 12632 | ;; |
| 12633 | |
| 12634 | sysv4*MP*) |
| 12635 | if test -d /usr/nec; then |
| 12636 | lt_prog_compiler_pic=-Kconform_pic |
| 12637 | fi |
| 12638 | ;; |
| 12639 | |
| 12640 | *) |
| 12641 | lt_prog_compiler_pic='-fPIC' |
| 12642 | ;; |
| 12643 | esac |
| 12644 | |
| 12645 | case $cc_basename in |
| 12646 | nvcc*) # Cuda Compiler Driver 2.2 |
| 12647 | lt_prog_compiler_wl='-Xlinker ' |
| 12648 | if test -n "$lt_prog_compiler_pic"; then |
| 12649 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" |
| 12650 | fi |
| 12651 | ;; |
| 12652 | esac |
| 12653 | else |
| 12654 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 12655 | case $host_os in |
| 12656 | aix*) |
| 12657 | lt_prog_compiler_wl='-Wl,' |
| 12658 | if test ia64 = "$host_cpu"; then |
| 12659 | # AIX 5 now supports IA64 processor |
| 12660 | lt_prog_compiler_static='-Bstatic' |
| 12661 | else |
| 12662 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 12663 | fi |
| 12664 | ;; |
| 12665 | |
| 12666 | darwin* | rhapsody*) |
| 12667 | # PIC is the default on this platform |
| 12668 | # Common symbols not allowed in MH_DYLIB files |
| 12669 | lt_prog_compiler_pic='-fno-common' |
| 12670 | case $cc_basename in |
| 12671 | nagfor*) |
| 12672 | # NAG Fortran compiler |
| 12673 | lt_prog_compiler_wl='-Wl,-Wl,,' |
| 12674 | lt_prog_compiler_pic='-PIC' |
| 12675 | lt_prog_compiler_static='-Bstatic' |
| 12676 | ;; |
| 12677 | esac |
| 12678 | ;; |
| 12679 | |
| 12680 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 12681 | # This hack is so that the source file can tell whether it is being |
| 12682 | # built for inclusion in a dll (and should export symbols for example). |
| 12683 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 12684 | case $host_os in |
| 12685 | os2*) |
| 12686 | lt_prog_compiler_static='$wl-static' |
| 12687 | ;; |
| 12688 | esac |
| 12689 | ;; |
| 12690 | |
| 12691 | hpux9* | hpux10* | hpux11*) |
| 12692 | lt_prog_compiler_wl='-Wl,' |
| 12693 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 12694 | # not for PA HP-UX. |
| 12695 | case $host_cpu in |
| 12696 | hppa*64*|ia64*) |
| 12697 | # +Z the default |
| 12698 | ;; |
| 12699 | *) |
| 12700 | lt_prog_compiler_pic='+Z' |
| 12701 | ;; |
| 12702 | esac |
| 12703 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 12704 | lt_prog_compiler_static='$wl-a ${wl}archive' |
| 12705 | ;; |
| 12706 | |
| 12707 | irix5* | irix6* | nonstopux*) |
| 12708 | lt_prog_compiler_wl='-Wl,' |
| 12709 | # PIC (with -KPIC) is the default. |
| 12710 | lt_prog_compiler_static='-non_shared' |
| 12711 | ;; |
| 12712 | |
| 12713 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 12714 | case $cc_basename in |
| 12715 | # old Intel for x86_64, which still supported -KPIC. |
| 12716 | ecc*) |
| 12717 | lt_prog_compiler_wl='-Wl,' |
| 12718 | lt_prog_compiler_pic='-KPIC' |
| 12719 | lt_prog_compiler_static='-static' |
| 12720 | ;; |
| 12721 | # icc used to be incompatible with GCC. |
| 12722 | # ICC 10 doesn't accept -KPIC any more. |
| 12723 | icc* | ifort*) |
| 12724 | lt_prog_compiler_wl='-Wl,' |
| 12725 | lt_prog_compiler_pic='-fPIC' |
| 12726 | lt_prog_compiler_static='-static' |
| 12727 | ;; |
| 12728 | # Lahey Fortran 8.1. |
| 12729 | lf95*) |
| 12730 | lt_prog_compiler_wl='-Wl,' |
| 12731 | lt_prog_compiler_pic='--shared' |
| 12732 | lt_prog_compiler_static='--static' |
| 12733 | ;; |
| 12734 | nagfor*) |
| 12735 | # NAG Fortran compiler |
| 12736 | lt_prog_compiler_wl='-Wl,-Wl,,' |
| 12737 | lt_prog_compiler_pic='-PIC' |
| 12738 | lt_prog_compiler_static='-Bstatic' |
| 12739 | ;; |
| 12740 | tcc*) |
| 12741 | # Fabrice Bellard et al's Tiny C Compiler |
| 12742 | lt_prog_compiler_wl='-Wl,' |
| 12743 | lt_prog_compiler_pic='-fPIC' |
| 12744 | lt_prog_compiler_static='-static' |
| 12745 | ;; |
| 12746 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 12747 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 12748 | # which looks to be a dead project) |
| 12749 | lt_prog_compiler_wl='-Wl,' |
| 12750 | lt_prog_compiler_pic='-fpic' |
| 12751 | lt_prog_compiler_static='-Bstatic' |
| 12752 | ;; |
| 12753 | ccc*) |
| 12754 | lt_prog_compiler_wl='-Wl,' |
| 12755 | # All Alpha code is PIC. |
| 12756 | lt_prog_compiler_static='-non_shared' |
| 12757 | ;; |
| 12758 | xl* | bgxl* | bgf* | mpixl*) |
| 12759 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
| 12760 | lt_prog_compiler_wl='-Wl,' |
| 12761 | lt_prog_compiler_pic='-qpic' |
| 12762 | lt_prog_compiler_static='-qstaticlink' |
| 12763 | ;; |
| 12764 | *) |
| 12765 | case `$CC -V 2>&1 | sed 5q` in |
| 12766 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
| 12767 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 12768 | lt_prog_compiler_pic='-KPIC' |
| 12769 | lt_prog_compiler_static='-Bstatic' |
| 12770 | lt_prog_compiler_wl='' |
| 12771 | ;; |
| 12772 | *Sun\ F* | *Sun*Fortran*) |
| 12773 | lt_prog_compiler_pic='-KPIC' |
| 12774 | lt_prog_compiler_static='-Bstatic' |
| 12775 | lt_prog_compiler_wl='-Qoption ld ' |
| 12776 | ;; |
| 12777 | *Sun\ C*) |
| 12778 | # Sun C 5.9 |
| 12779 | lt_prog_compiler_pic='-KPIC' |
| 12780 | lt_prog_compiler_static='-Bstatic' |
| 12781 | lt_prog_compiler_wl='-Wl,' |
| 12782 | ;; |
| 12783 | *Intel*\ [CF]*Compiler*) |
| 12784 | lt_prog_compiler_wl='-Wl,' |
| 12785 | lt_prog_compiler_pic='-fPIC' |
| 12786 | lt_prog_compiler_static='-static' |
| 12787 | ;; |
| 12788 | *Portland\ Group*) |
| 12789 | lt_prog_compiler_wl='-Wl,' |
| 12790 | lt_prog_compiler_pic='-fpic' |
| 12791 | lt_prog_compiler_static='-Bstatic' |
| 12792 | ;; |
| 12793 | esac |
| 12794 | ;; |
| 12795 | esac |
| 12796 | ;; |
| 12797 | |
| 12798 | newsos6) |
| 12799 | lt_prog_compiler_pic='-KPIC' |
| 12800 | lt_prog_compiler_static='-Bstatic' |
| 12801 | ;; |
| 12802 | |
| 12803 | *nto* | *qnx*) |
| 12804 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 12805 | # it will coredump. |
| 12806 | lt_prog_compiler_pic='-fPIC -shared' |
| 12807 | ;; |
| 12808 | |
| 12809 | osf3* | osf4* | osf5*) |
| 12810 | lt_prog_compiler_wl='-Wl,' |
| 12811 | # All OSF/1 code is PIC. |
| 12812 | lt_prog_compiler_static='-non_shared' |
| 12813 | ;; |
| 12814 | |
| 12815 | rdos*) |
| 12816 | lt_prog_compiler_static='-non_shared' |
| 12817 | ;; |
| 12818 | |
| 12819 | solaris*) |
| 12820 | lt_prog_compiler_pic='-KPIC' |
| 12821 | lt_prog_compiler_static='-Bstatic' |
| 12822 | case $cc_basename in |
| 12823 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
| 12824 | lt_prog_compiler_wl='-Qoption ld ';; |
| 12825 | *) |
| 12826 | lt_prog_compiler_wl='-Wl,';; |
| 12827 | esac |
| 12828 | ;; |
| 12829 | |
| 12830 | sunos4*) |
| 12831 | lt_prog_compiler_wl='-Qoption ld ' |
| 12832 | lt_prog_compiler_pic='-PIC' |
| 12833 | lt_prog_compiler_static='-Bstatic' |
| 12834 | ;; |
| 12835 | |
| 12836 | sysv4 | sysv4.2uw2* | sysv4.3*) |
| 12837 | lt_prog_compiler_wl='-Wl,' |
| 12838 | lt_prog_compiler_pic='-KPIC' |
| 12839 | lt_prog_compiler_static='-Bstatic' |
| 12840 | ;; |
| 12841 | |
| 12842 | sysv4*MP*) |
| 12843 | if test -d /usr/nec; then |
| 12844 | lt_prog_compiler_pic='-Kconform_pic' |
| 12845 | lt_prog_compiler_static='-Bstatic' |
| 12846 | fi |
| 12847 | ;; |
| 12848 | |
| 12849 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 12850 | lt_prog_compiler_wl='-Wl,' |
| 12851 | lt_prog_compiler_pic='-KPIC' |
| 12852 | lt_prog_compiler_static='-Bstatic' |
| 12853 | ;; |
| 12854 | |
| 12855 | unicos*) |
| 12856 | lt_prog_compiler_wl='-Wl,' |
| 12857 | lt_prog_compiler_can_build_shared=no |
| 12858 | ;; |
| 12859 | |
| 12860 | uts4*) |
| 12861 | lt_prog_compiler_pic='-pic' |
| 12862 | lt_prog_compiler_static='-Bstatic' |
| 12863 | ;; |
| 12864 | |
| 12865 | *) |
| 12866 | lt_prog_compiler_can_build_shared=no |
| 12867 | ;; |
| 12868 | esac |
| 12869 | fi |
| 12870 | |
| 12871 | case $host_os in |
| 12872 | # For platforms that do not support PIC, -DPIC is meaningless: |
| 12873 | *djgpp*) |
| 12874 | lt_prog_compiler_pic= |
| 12875 | ;; |
| 12876 | *) |
| 12877 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 12878 | ;; |
| 12879 | esac |
| 12880 | |
| 12881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 12882 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
| 12883 | if ${lt_cv_prog_compiler_pic+:} false; then : |
| 12884 | $as_echo_n "(cached) " >&6 |
| 12885 | else |
| 12886 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic |
| 12887 | fi |
| 12888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 |
| 12889 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } |
| 12890 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic |
| 12891 | |
| 12892 | # |
| 12893 | # Check to make sure the PIC flag actually works. |
| 12894 | # |
| 12895 | if test -n "$lt_prog_compiler_pic"; then |
| 12896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 12897 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
| 12898 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
| 12899 | $as_echo_n "(cached) " >&6 |
| 12900 | else |
| 12901 | lt_cv_prog_compiler_pic_works=no |
| 12902 | ac_outfile=conftest.$ac_objext |
| 12903 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 12904 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment |
| 12905 | # Insert the option either (1) after the last *FLAGS variable, or |
| 12906 | # (2) before a word containing "conftest.", or (3) at the end. |
| 12907 | # Note that $ac_compile itself does not contain backslashes and begins |
| 12908 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 12909 | # The option is referenced via a variable to avoid confusing sed. |
| 12910 | lt_compile=`echo "$ac_compile" | $SED \ |
| 12911 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 12912 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 12913 | -e 's:$: $lt_compiler_flag:'` |
| 12914 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 12915 | (eval "$lt_compile" 2>conftest.err) |
| 12916 | ac_status=$? |
| 12917 | cat conftest.err >&5 |
| 12918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12919 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 12920 | # The compiler can only warn and ignore the option if not recognized |
| 12921 | # So say no if there are warnings other than the usual output. |
| 12922 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 12923 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 12924 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 12925 | lt_cv_prog_compiler_pic_works=yes |
| 12926 | fi |
| 12927 | fi |
| 12928 | $RM conftest* |
| 12929 | |
| 12930 | fi |
| 12931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
| 12932 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
| 12933 | |
| 12934 | if test yes = "$lt_cv_prog_compiler_pic_works"; then |
| 12935 | case $lt_prog_compiler_pic in |
| 12936 | "" | " "*) ;; |
| 12937 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 12938 | esac |
| 12939 | else |
| 12940 | lt_prog_compiler_pic= |
| 12941 | lt_prog_compiler_can_build_shared=no |
| 12942 | fi |
| 12943 | |
| 12944 | fi |
| 12945 | |
| 12946 | |
| 12947 | |
| 12948 | |
| 12949 | |
| 12950 | |
| 12951 | |
| 12952 | |
| 12953 | |
| 12954 | |
| 12955 | |
| 12956 | # |
| 12957 | # Check to make sure the static flag actually works. |
| 12958 | # |
| 12959 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 12960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 12961 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 12962 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
| 12963 | $as_echo_n "(cached) " >&6 |
| 12964 | else |
| 12965 | lt_cv_prog_compiler_static_works=no |
| 12966 | save_LDFLAGS=$LDFLAGS |
| 12967 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 12968 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 12969 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 12970 | # The linker can only warn and ignore the option if not recognized |
| 12971 | # So say no if there are warnings |
| 12972 | if test -s conftest.err; then |
| 12973 | # Append any errors to the config.log. |
| 12974 | cat conftest.err 1>&5 |
| 12975 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 12976 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 12977 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 12978 | lt_cv_prog_compiler_static_works=yes |
| 12979 | fi |
| 12980 | else |
| 12981 | lt_cv_prog_compiler_static_works=yes |
| 12982 | fi |
| 12983 | fi |
| 12984 | $RM -r conftest* |
| 12985 | LDFLAGS=$save_LDFLAGS |
| 12986 | |
| 12987 | fi |
| 12988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
| 12989 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
| 12990 | |
| 12991 | if test yes = "$lt_cv_prog_compiler_static_works"; then |
| 12992 | : |
| 12993 | else |
| 12994 | lt_prog_compiler_static= |
| 12995 | fi |
| 12996 | |
| 12997 | |
| 12998 | |
| 12999 | |
| 13000 | |
| 13001 | |
| 13002 | |
| 13003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 13004 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 13005 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
| 13006 | $as_echo_n "(cached) " >&6 |
| 13007 | else |
| 13008 | lt_cv_prog_compiler_c_o=no |
| 13009 | $RM -r conftest 2>/dev/null |
| 13010 | mkdir conftest |
| 13011 | cd conftest |
| 13012 | mkdir out |
| 13013 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13014 | |
| 13015 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 13016 | # Insert the option either (1) after the last *FLAGS variable, or |
| 13017 | # (2) before a word containing "conftest.", or (3) at the end. |
| 13018 | # Note that $ac_compile itself does not contain backslashes and begins |
| 13019 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13020 | lt_compile=`echo "$ac_compile" | $SED \ |
| 13021 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 13022 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13023 | -e 's:$: $lt_compiler_flag:'` |
| 13024 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 13025 | (eval "$lt_compile" 2>out/conftest.err) |
| 13026 | ac_status=$? |
| 13027 | cat out/conftest.err >&5 |
| 13028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13029 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 13030 | then |
| 13031 | # The compiler can only warn and ignore the option if not recognized |
| 13032 | # So say no if there are warnings |
| 13033 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 13034 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 13035 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 13036 | lt_cv_prog_compiler_c_o=yes |
| 13037 | fi |
| 13038 | fi |
| 13039 | chmod u+w . 2>&5 |
| 13040 | $RM conftest* |
| 13041 | # SGI C++ compiler will create directory out/ii_files/ for |
| 13042 | # template instantiation |
| 13043 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 13044 | $RM out/* && rmdir out |
| 13045 | cd .. |
| 13046 | $RM -r conftest |
| 13047 | $RM conftest* |
| 13048 | |
| 13049 | fi |
| 13050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 13051 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 13052 | |
| 13053 | |
| 13054 | |
| 13055 | |
| 13056 | |
| 13057 | |
| 13058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 13059 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 13060 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
| 13061 | $as_echo_n "(cached) " >&6 |
| 13062 | else |
| 13063 | lt_cv_prog_compiler_c_o=no |
| 13064 | $RM -r conftest 2>/dev/null |
| 13065 | mkdir conftest |
| 13066 | cd conftest |
| 13067 | mkdir out |
| 13068 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13069 | |
| 13070 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 13071 | # Insert the option either (1) after the last *FLAGS variable, or |
| 13072 | # (2) before a word containing "conftest.", or (3) at the end. |
| 13073 | # Note that $ac_compile itself does not contain backslashes and begins |
| 13074 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13075 | lt_compile=`echo "$ac_compile" | $SED \ |
| 13076 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 13077 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13078 | -e 's:$: $lt_compiler_flag:'` |
| 13079 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 13080 | (eval "$lt_compile" 2>out/conftest.err) |
| 13081 | ac_status=$? |
| 13082 | cat out/conftest.err >&5 |
| 13083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13084 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 13085 | then |
| 13086 | # The compiler can only warn and ignore the option if not recognized |
| 13087 | # So say no if there are warnings |
| 13088 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 13089 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 13090 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 13091 | lt_cv_prog_compiler_c_o=yes |
| 13092 | fi |
| 13093 | fi |
| 13094 | chmod u+w . 2>&5 |
| 13095 | $RM conftest* |
| 13096 | # SGI C++ compiler will create directory out/ii_files/ for |
| 13097 | # template instantiation |
| 13098 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 13099 | $RM out/* && rmdir out |
| 13100 | cd .. |
| 13101 | $RM -r conftest |
| 13102 | $RM conftest* |
| 13103 | |
| 13104 | fi |
| 13105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 13106 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 13107 | |
| 13108 | |
| 13109 | |
| 13110 | |
| 13111 | hard_links=nottested |
| 13112 | if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then |
| 13113 | # do not overwrite the value of need_locks provided by the user |
| 13114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 13115 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
| 13116 | hard_links=yes |
| 13117 | $RM conftest* |
| 13118 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 13119 | touch conftest.a |
| 13120 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 13121 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 13122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 13123 | $as_echo "$hard_links" >&6; } |
| 13124 | if test no = "$hard_links"; then |
| 13125 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 |
| 13126 | $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} |
| 13127 | need_locks=warn |
| 13128 | fi |
| 13129 | else |
| 13130 | need_locks=no |
| 13131 | fi |
| 13132 | |
| 13133 | |
| 13134 | |
| 13135 | |
| 13136 | |
| 13137 | |
| 13138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 13139 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 13140 | |
| 13141 | runpath_var= |
| 13142 | allow_undefined_flag= |
| 13143 | always_export_symbols=no |
| 13144 | archive_cmds= |
| 13145 | archive_expsym_cmds= |
| 13146 | compiler_needs_object=no |
| 13147 | enable_shared_with_static_runtimes=no |
| 13148 | export_dynamic_flag_spec= |
| 13149 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 13150 | hardcode_automatic=no |
| 13151 | hardcode_direct=no |
| 13152 | hardcode_direct_absolute=no |
| 13153 | hardcode_libdir_flag_spec= |
| 13154 | hardcode_libdir_separator= |
| 13155 | hardcode_minus_L=no |
| 13156 | hardcode_shlibpath_var=unsupported |
| 13157 | inherit_rpath=no |
| 13158 | link_all_deplibs=unknown |
| 13159 | module_cmds= |
| 13160 | module_expsym_cmds= |
| 13161 | old_archive_from_new_cmds= |
| 13162 | old_archive_from_expsyms_cmds= |
| 13163 | thread_safe_flag_spec= |
| 13164 | whole_archive_flag_spec= |
| 13165 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 13166 | # included in the symbol list |
| 13167 | include_expsyms= |
| 13168 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 13169 | # it will be wrapped by ' (' and ')$', so one must not match beginning or |
| 13170 | # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', |
| 13171 | # as well as any symbol that contains 'd'. |
| 13172 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 13173 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 13174 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 13175 | # the symbol is explicitly referenced. Since portable code cannot |
| 13176 | # rely on this symbol name, it's probably fine to never include it in |
| 13177 | # preloaded symbol tables. |
| 13178 | # Exclude shared library initialization/finalization symbols. |
| 13179 | extract_expsyms_cmds= |
| 13180 | |
| 13181 | case $host_os in |
| 13182 | cygwin* | mingw* | pw32* | cegcc*) |
| 13183 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 13184 | # When not using gcc, we currently assume that we are using |
| 13185 | # Microsoft Visual C++. |
| 13186 | if test yes != "$GCC"; then |
| 13187 | with_gnu_ld=no |
| 13188 | fi |
| 13189 | ;; |
| 13190 | interix*) |
| 13191 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 13192 | with_gnu_ld=yes |
| 13193 | ;; |
| 13194 | openbsd* | bitrig*) |
| 13195 | with_gnu_ld=no |
| 13196 | ;; |
| 13197 | linux* | k*bsd*-gnu | gnu*) |
| 13198 | link_all_deplibs=no |
| 13199 | ;; |
| 13200 | esac |
| 13201 | |
| 13202 | ld_shlibs=yes |
| 13203 | |
| 13204 | # On some targets, GNU ld is compatible enough with the native linker |
| 13205 | # that we're better off using the native interface for both. |
| 13206 | lt_use_gnu_ld_interface=no |
| 13207 | if test yes = "$with_gnu_ld"; then |
| 13208 | case $host_os in |
| 13209 | aix*) |
| 13210 | # The AIX port of GNU ld has always aspired to compatibility |
| 13211 | # with the native linker. However, as the warning in the GNU ld |
| 13212 | # block says, versions before 2.19.5* couldn't really create working |
| 13213 | # shared libraries, regardless of the interface used. |
| 13214 | case `$LD -v 2>&1` in |
| 13215 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
| 13216 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; |
| 13217 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; |
| 13218 | *) |
| 13219 | lt_use_gnu_ld_interface=yes |
| 13220 | ;; |
| 13221 | esac |
| 13222 | ;; |
| 13223 | *) |
| 13224 | lt_use_gnu_ld_interface=yes |
| 13225 | ;; |
| 13226 | esac |
| 13227 | fi |
| 13228 | |
| 13229 | if test yes = "$lt_use_gnu_ld_interface"; then |
| 13230 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 13231 | wlarc='$wl' |
| 13232 | |
| 13233 | # Set some defaults for GNU ld with shared library support. These |
| 13234 | # are reset later if shared libraries are not supported. Putting them |
| 13235 | # here allows them to be overridden if necessary. |
| 13236 | runpath_var=LD_RUN_PATH |
| 13237 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 13238 | export_dynamic_flag_spec='$wl--export-dynamic' |
| 13239 | # ancient GNU ld didn't support --whole-archive et. al. |
| 13240 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 13241 | whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
| 13242 | else |
| 13243 | whole_archive_flag_spec= |
| 13244 | fi |
| 13245 | supports_anon_versioning=no |
| 13246 | case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in |
| 13247 | *GNU\ gold*) supports_anon_versioning=yes ;; |
| 13248 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 13249 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 13250 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 13251 | *\ 2.11.*) ;; # other 2.11 versions |
| 13252 | *) supports_anon_versioning=yes ;; |
| 13253 | esac |
| 13254 | |
| 13255 | # See if GNU ld supports shared libraries. |
| 13256 | case $host_os in |
| 13257 | aix[3-9]*) |
| 13258 | # On AIX/PPC, the GNU linker is very broken |
| 13259 | if test ia64 != "$host_cpu"; then |
| 13260 | ld_shlibs=no |
| 13261 | cat <<_LT_EOF 1>&2 |
| 13262 | |
| 13263 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
| 13264 | *** to be unable to reliably create shared libraries on AIX. |
| 13265 | *** Therefore, libtool is disabling shared libraries support. If you |
| 13266 | *** really care for shared libraries, you may want to install binutils |
| 13267 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
| 13268 | *** You will then need to restart the configuration process. |
| 13269 | |
| 13270 | _LT_EOF |
| 13271 | fi |
| 13272 | ;; |
| 13273 | |
| 13274 | amigaos*) |
| 13275 | case $host_cpu in |
| 13276 | powerpc) |
| 13277 | # see comment about AmigaOS4 .so support |
| 13278 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 13279 | archive_expsym_cmds='' |
| 13280 | ;; |
| 13281 | m68k) |
| 13282 | 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)' |
| 13283 | hardcode_libdir_flag_spec='-L$libdir' |
| 13284 | hardcode_minus_L=yes |
| 13285 | ;; |
| 13286 | esac |
| 13287 | ;; |
| 13288 | |
| 13289 | beos*) |
| 13290 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 13291 | allow_undefined_flag=unsupported |
| 13292 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 13293 | # support --undefined. This deserves some investigation. FIXME |
| 13294 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 13295 | else |
| 13296 | ld_shlibs=no |
| 13297 | fi |
| 13298 | ;; |
| 13299 | |
| 13300 | cygwin* | mingw* | pw32* | cegcc*) |
| 13301 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 13302 | # as there is no search path for DLLs. |
| 13303 | hardcode_libdir_flag_spec='-L$libdir' |
| 13304 | export_dynamic_flag_spec='$wl--export-all-symbols' |
| 13305 | allow_undefined_flag=unsupported |
| 13306 | always_export_symbols=no |
| 13307 | enable_shared_with_static_runtimes=yes |
| 13308 | 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' |
| 13309 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
| 13310 | |
| 13311 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 13312 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 13313 | # If the export-symbols file already is a .def file, use it as |
| 13314 | # is; otherwise, prepend EXPORTS... |
| 13315 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
| 13316 | cp $export_symbols $output_objdir/$soname.def; |
| 13317 | else |
| 13318 | echo EXPORTS > $output_objdir/$soname.def; |
| 13319 | cat $export_symbols >> $output_objdir/$soname.def; |
| 13320 | fi~ |
| 13321 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 13322 | else |
| 13323 | ld_shlibs=no |
| 13324 | fi |
| 13325 | ;; |
| 13326 | |
| 13327 | haiku*) |
| 13328 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 13329 | link_all_deplibs=yes |
| 13330 | ;; |
| 13331 | |
| 13332 | os2*) |
| 13333 | hardcode_libdir_flag_spec='-L$libdir' |
| 13334 | hardcode_minus_L=yes |
| 13335 | allow_undefined_flag=unsupported |
| 13336 | shrext_cmds=.dll |
| 13337 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 13338 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 13339 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 13340 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 13341 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
| 13342 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 13343 | emximp -o $lib $output_objdir/$libname.def' |
| 13344 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 13345 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 13346 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 13347 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 13348 | prefix_cmds="$SED"~ |
| 13349 | if test EXPORTS = "`$SED 1q $export_symbols`"; then |
| 13350 | prefix_cmds="$prefix_cmds -e 1d"; |
| 13351 | fi~ |
| 13352 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
| 13353 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
| 13354 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 13355 | emximp -o $lib $output_objdir/$libname.def' |
| 13356 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
| 13357 | enable_shared_with_static_runtimes=yes |
| 13358 | ;; |
| 13359 | |
| 13360 | interix[3-9]*) |
| 13361 | hardcode_direct=no |
| 13362 | hardcode_shlibpath_var=no |
| 13363 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
| 13364 | export_dynamic_flag_spec='$wl-E' |
| 13365 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 13366 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 13367 | # default) and relocated if they conflict, which is a slow very memory |
| 13368 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 13369 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 13370 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 13371 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 13372 | 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' |
| 13373 | ;; |
| 13374 | |
| 13375 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
| 13376 | tmp_diet=no |
| 13377 | if test linux-dietlibc = "$host_os"; then |
| 13378 | case $cc_basename in |
| 13379 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 13380 | esac |
| 13381 | fi |
| 13382 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 13383 | && test no = "$tmp_diet" |
| 13384 | then |
| 13385 | tmp_addflag=' $pic_flag' |
| 13386 | tmp_sharedflag='-shared' |
| 13387 | case $cc_basename,$host_cpu in |
| 13388 | pgcc*) # Portland Group C compiler |
| 13389 | 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' |
| 13390 | tmp_addflag=' $pic_flag' |
| 13391 | ;; |
| 13392 | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 13393 | # Portland Group f77 and f90 compilers |
| 13394 | 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' |
| 13395 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 13396 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 13397 | tmp_addflag=' -i_dynamic' ;; |
| 13398 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 13399 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 13400 | ifc* | ifort*) # Intel Fortran compiler |
| 13401 | tmp_addflag=' -nofor_main' ;; |
| 13402 | lf95*) # Lahey Fortran 8.1 |
| 13403 | whole_archive_flag_spec= |
| 13404 | tmp_sharedflag='--shared' ;; |
| 13405 | nagfor*) # NAGFOR 5.3 |
| 13406 | tmp_sharedflag='-Wl,-shared' ;; |
| 13407 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
| 13408 | tmp_sharedflag='-qmkshrobj' |
| 13409 | tmp_addflag= ;; |
| 13410 | nvcc*) # Cuda Compiler Driver 2.2 |
| 13411 | 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' |
| 13412 | compiler_needs_object=yes |
| 13413 | ;; |
| 13414 | esac |
| 13415 | case `$CC -V 2>&1 | sed 5q` in |
| 13416 | *Sun\ C*) # Sun C 5.9 |
| 13417 | 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' |
| 13418 | compiler_needs_object=yes |
| 13419 | tmp_sharedflag='-G' ;; |
| 13420 | *Sun\ F*) # Sun Fortran 8.3 |
| 13421 | tmp_sharedflag='-G' ;; |
| 13422 | esac |
| 13423 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 13424 | |
| 13425 | if test yes = "$supports_anon_versioning"; then |
| 13426 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 13427 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 13428 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 13429 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' |
| 13430 | fi |
| 13431 | |
| 13432 | case $cc_basename in |
| 13433 | tcc*) |
| 13434 | export_dynamic_flag_spec='-rdynamic' |
| 13435 | ;; |
| 13436 | xlf* | bgf* | bgxlf* | mpixlf*) |
| 13437 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 13438 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
| 13439 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 13440 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
| 13441 | if test yes = "$supports_anon_versioning"; then |
| 13442 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 13443 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 13444 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 13445 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
| 13446 | fi |
| 13447 | ;; |
| 13448 | esac |
| 13449 | else |
| 13450 | ld_shlibs=no |
| 13451 | fi |
| 13452 | ;; |
| 13453 | |
| 13454 | netbsd* | netbsdelf*-gnu) |
| 13455 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 13456 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 13457 | wlarc= |
| 13458 | else |
| 13459 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 13460 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 13461 | fi |
| 13462 | ;; |
| 13463 | |
| 13464 | solaris*) |
| 13465 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
| 13466 | ld_shlibs=no |
| 13467 | cat <<_LT_EOF 1>&2 |
| 13468 | |
| 13469 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 13470 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 13471 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 13472 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 13473 | *** your PATH or compiler configuration so that the native linker is |
| 13474 | *** used, and then restart. |
| 13475 | |
| 13476 | _LT_EOF |
| 13477 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 13478 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 13479 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 13480 | else |
| 13481 | ld_shlibs=no |
| 13482 | fi |
| 13483 | ;; |
| 13484 | |
| 13485 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 13486 | case `$LD -v 2>&1` in |
| 13487 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 13488 | ld_shlibs=no |
| 13489 | cat <<_LT_EOF 1>&2 |
| 13490 | |
| 13491 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot |
| 13492 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 13493 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 13494 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 13495 | *** your PATH or compiler configuration so that the native linker is |
| 13496 | *** used, and then restart. |
| 13497 | |
| 13498 | _LT_EOF |
| 13499 | ;; |
| 13500 | *) |
| 13501 | # For security reasons, it is highly recommended that you always |
| 13502 | # use absolute paths for naming shared libraries, and exclude the |
| 13503 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 13504 | # requires that you compile everything twice, which is a pain. |
| 13505 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 13506 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 13507 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 13508 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 13509 | else |
| 13510 | ld_shlibs=no |
| 13511 | fi |
| 13512 | ;; |
| 13513 | esac |
| 13514 | ;; |
| 13515 | |
| 13516 | sunos4*) |
| 13517 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 13518 | wlarc= |
| 13519 | hardcode_direct=yes |
| 13520 | hardcode_shlibpath_var=no |
| 13521 | ;; |
| 13522 | |
| 13523 | *) |
| 13524 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 13525 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 13526 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 13527 | else |
| 13528 | ld_shlibs=no |
| 13529 | fi |
| 13530 | ;; |
| 13531 | esac |
| 13532 | |
| 13533 | if test no = "$ld_shlibs"; then |
| 13534 | runpath_var= |
| 13535 | hardcode_libdir_flag_spec= |
| 13536 | export_dynamic_flag_spec= |
| 13537 | whole_archive_flag_spec= |
| 13538 | fi |
| 13539 | else |
| 13540 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 13541 | case $host_os in |
| 13542 | aix3*) |
| 13543 | allow_undefined_flag=unsupported |
| 13544 | always_export_symbols=yes |
| 13545 | 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' |
| 13546 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 13547 | # are no directories specified by -L. |
| 13548 | hardcode_minus_L=yes |
| 13549 | if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then |
| 13550 | # Neither direct hardcoding nor static linking is supported with a |
| 13551 | # broken collect2. |
| 13552 | hardcode_direct=unsupported |
| 13553 | fi |
| 13554 | ;; |
| 13555 | |
| 13556 | aix[4-9]*) |
| 13557 | if test ia64 = "$host_cpu"; then |
| 13558 | # On IA64, the linker does run time linking by default, so we don't |
| 13559 | # have to do anything special. |
| 13560 | aix_use_runtimelinking=no |
| 13561 | exp_sym_flag='-Bexport' |
| 13562 | no_entry_flag= |
| 13563 | else |
| 13564 | # If we're using GNU nm, then we don't want the "-C" option. |
| 13565 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. |
| 13566 | # Without the "-l" option, or with the "-B" option, AIX nm treats |
| 13567 | # weak defined symbols like other global defined symbols, whereas |
| 13568 | # GNU nm marks them as "W". |
| 13569 | # While the 'weak' keyword is ignored in the Export File, we need |
| 13570 | # it in the Import File for the 'aix-soname' feature, so we have |
| 13571 | # to replace the "-B" option with "-P" for AIX nm. |
| 13572 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 13573 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' |
| 13574 | else |
| 13575 | export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' |
| 13576 | fi |
| 13577 | aix_use_runtimelinking=no |
| 13578 | |
| 13579 | # Test if we are trying to use run time linking or normal |
| 13580 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 13581 | # have runtime linking enabled, and use it for executables. |
| 13582 | # For shared libraries, we enable/disable runtime linking |
| 13583 | # depending on the kind of the shared library created - |
| 13584 | # when "with_aix_soname,aix_use_runtimelinking" is: |
| 13585 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables |
| 13586 | # "aix,yes" lib.so shared, rtl:yes, for executables |
| 13587 | # lib.a static archive |
| 13588 | # "both,no" lib.so.V(shr.o) shared, rtl:yes |
| 13589 | # lib.a(lib.so.V) shared, rtl:no, for executables |
| 13590 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables |
| 13591 | # lib.a(lib.so.V) shared, rtl:no |
| 13592 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables |
| 13593 | # lib.a static archive |
| 13594 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 13595 | for ld_flag in $LDFLAGS; do |
| 13596 | if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then |
| 13597 | aix_use_runtimelinking=yes |
| 13598 | break |
| 13599 | fi |
| 13600 | done |
| 13601 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
| 13602 | # With aix-soname=svr4, we create the lib.so.V shared archives only, |
| 13603 | # so we don't have lib.a shared libs to link our executables. |
| 13604 | # We have to force runtime linking in this case. |
| 13605 | aix_use_runtimelinking=yes |
| 13606 | LDFLAGS="$LDFLAGS -Wl,-brtl" |
| 13607 | fi |
| 13608 | ;; |
| 13609 | esac |
| 13610 | |
| 13611 | exp_sym_flag='-bexport' |
| 13612 | no_entry_flag='-bnoentry' |
| 13613 | fi |
| 13614 | |
| 13615 | # When large executables or shared objects are built, AIX ld can |
| 13616 | # have problems creating the table of contents. If linking a library |
| 13617 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 13618 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 13619 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 13620 | |
| 13621 | archive_cmds='' |
| 13622 | hardcode_direct=yes |
| 13623 | hardcode_direct_absolute=yes |
| 13624 | hardcode_libdir_separator=':' |
| 13625 | link_all_deplibs=yes |
| 13626 | file_list_spec='$wl-f,' |
| 13627 | case $with_aix_soname,$aix_use_runtimelinking in |
| 13628 | aix,*) ;; # traditional, no import file |
| 13629 | svr4,* | *,yes) # use import file |
| 13630 | # The Import File defines what to hardcode. |
| 13631 | hardcode_direct=no |
| 13632 | hardcode_direct_absolute=no |
| 13633 | ;; |
| 13634 | esac |
| 13635 | |
| 13636 | if test yes = "$GCC"; then |
| 13637 | case $host_os in aix4.[012]|aix4.[012].*) |
| 13638 | # We only want to do this on AIX 4.2 and lower, the check |
| 13639 | # below for broken collect2 doesn't work under 4.3+ |
| 13640 | collect2name=`$CC -print-prog-name=collect2` |
| 13641 | if test -f "$collect2name" && |
| 13642 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 13643 | then |
| 13644 | # We have reworked collect2 |
| 13645 | : |
| 13646 | else |
| 13647 | # We have old collect2 |
| 13648 | hardcode_direct=unsupported |
| 13649 | # It fails to find uninstalled libraries when the uninstalled |
| 13650 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 13651 | # to unsupported forces relinking |
| 13652 | hardcode_minus_L=yes |
| 13653 | hardcode_libdir_flag_spec='-L$libdir' |
| 13654 | hardcode_libdir_separator= |
| 13655 | fi |
| 13656 | ;; |
| 13657 | esac |
| 13658 | shared_flag='-shared' |
| 13659 | if test yes = "$aix_use_runtimelinking"; then |
| 13660 | shared_flag="$shared_flag "'$wl-G' |
| 13661 | fi |
| 13662 | # Need to ensure runtime linking is disabled for the traditional |
| 13663 | # shared library, or the linker may eventually find shared libraries |
| 13664 | # /with/ Import File - we do not want to mix them. |
| 13665 | shared_flag_aix='-shared' |
| 13666 | shared_flag_svr4='-shared $wl-G' |
| 13667 | else |
| 13668 | # not using gcc |
| 13669 | if test ia64 = "$host_cpu"; then |
| 13670 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 13671 | # chokes on -Wl,-G. The following line is correct: |
| 13672 | shared_flag='-G' |
| 13673 | else |
| 13674 | if test yes = "$aix_use_runtimelinking"; then |
| 13675 | shared_flag='$wl-G' |
| 13676 | else |
| 13677 | shared_flag='$wl-bM:SRE' |
| 13678 | fi |
| 13679 | shared_flag_aix='$wl-bM:SRE' |
| 13680 | shared_flag_svr4='$wl-G' |
| 13681 | fi |
| 13682 | fi |
| 13683 | |
| 13684 | export_dynamic_flag_spec='$wl-bexpall' |
| 13685 | # It seems that -bexpall does not export symbols beginning with |
| 13686 | # underscore (_), so it is better to generate a list of symbols to export. |
| 13687 | always_export_symbols=yes |
| 13688 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
| 13689 | # Warning - without using the other runtime loading flags (-brtl), |
| 13690 | # -berok will link without error, but may produce a broken library. |
| 13691 | allow_undefined_flag='-berok' |
| 13692 | # Determine the default libpath from the value encoded in an |
| 13693 | # empty executable. |
| 13694 | if test set = "${lt_cv_aix_libpath+set}"; then |
| 13695 | aix_libpath=$lt_cv_aix_libpath |
| 13696 | else |
| 13697 | if ${lt_cv_aix_libpath_+:} false; then : |
| 13698 | $as_echo_n "(cached) " >&6 |
| 13699 | else |
| 13700 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13701 | /* end confdefs.h. */ |
| 13702 | |
| 13703 | int main (void) |
| 13704 | { |
| 13705 | |
| 13706 | ; |
| 13707 | return 0; |
| 13708 | } |
| 13709 | _ACEOF |
| 13710 | if ac_fn_c_try_link "$LINENO"; then : |
| 13711 | |
| 13712 | lt_aix_libpath_sed=' |
| 13713 | /Import File Strings/,/^$/ { |
| 13714 | /^0/ { |
| 13715 | s/^0 *\([^ ]*\) *$/\1/ |
| 13716 | p |
| 13717 | } |
| 13718 | }' |
| 13719 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 13720 | # Check for a 64-bit object if we didn't find anything. |
| 13721 | if test -z "$lt_cv_aix_libpath_"; then |
| 13722 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 13723 | fi |
| 13724 | fi |
| 13725 | rm -f core conftest.err conftest.$ac_objext \ |
| 13726 | conftest$ac_exeext conftest.$ac_ext |
| 13727 | if test -z "$lt_cv_aix_libpath_"; then |
| 13728 | lt_cv_aix_libpath_=/usr/lib:/lib |
| 13729 | fi |
| 13730 | |
| 13731 | fi |
| 13732 | |
| 13733 | aix_libpath=$lt_cv_aix_libpath_ |
| 13734 | fi |
| 13735 | |
| 13736 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
| 13737 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag |
| 13738 | else |
| 13739 | if test ia64 = "$host_cpu"; then |
| 13740 | hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' |
| 13741 | allow_undefined_flag="-z nodefs" |
| 13742 | 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" |
| 13743 | else |
| 13744 | # Determine the default libpath from the value encoded in an |
| 13745 | # empty executable. |
| 13746 | if test set = "${lt_cv_aix_libpath+set}"; then |
| 13747 | aix_libpath=$lt_cv_aix_libpath |
| 13748 | else |
| 13749 | if ${lt_cv_aix_libpath_+:} false; then : |
| 13750 | $as_echo_n "(cached) " >&6 |
| 13751 | else |
| 13752 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13753 | /* end confdefs.h. */ |
| 13754 | |
| 13755 | int main (void) |
| 13756 | { |
| 13757 | |
| 13758 | ; |
| 13759 | return 0; |
| 13760 | } |
| 13761 | _ACEOF |
| 13762 | if ac_fn_c_try_link "$LINENO"; then : |
| 13763 | |
| 13764 | lt_aix_libpath_sed=' |
| 13765 | /Import File Strings/,/^$/ { |
| 13766 | /^0/ { |
| 13767 | s/^0 *\([^ ]*\) *$/\1/ |
| 13768 | p |
| 13769 | } |
| 13770 | }' |
| 13771 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 13772 | # Check for a 64-bit object if we didn't find anything. |
| 13773 | if test -z "$lt_cv_aix_libpath_"; then |
| 13774 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 13775 | fi |
| 13776 | fi |
| 13777 | rm -f core conftest.err conftest.$ac_objext \ |
| 13778 | conftest$ac_exeext conftest.$ac_ext |
| 13779 | if test -z "$lt_cv_aix_libpath_"; then |
| 13780 | lt_cv_aix_libpath_=/usr/lib:/lib |
| 13781 | fi |
| 13782 | |
| 13783 | fi |
| 13784 | |
| 13785 | aix_libpath=$lt_cv_aix_libpath_ |
| 13786 | fi |
| 13787 | |
| 13788 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
| 13789 | # Warning - without using the other run time loading flags, |
| 13790 | # -berok will link without error, but may produce a broken library. |
| 13791 | no_undefined_flag=' $wl-bernotok' |
| 13792 | allow_undefined_flag=' $wl-berok' |
| 13793 | if test yes = "$with_gnu_ld"; then |
| 13794 | # We only use this code for GNU lds that support --whole-archive. |
| 13795 | whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' |
| 13796 | else |
| 13797 | # Exported symbols can be pulled into shared objects from archives |
| 13798 | whole_archive_flag_spec='$convenience' |
| 13799 | fi |
| 13800 | archive_cmds_need_lc=yes |
| 13801 | archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
| 13802 | # -brtl affects multiple linker settings, -berok does not and is overridden later |
| 13803 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' |
| 13804 | if test svr4 != "$with_aix_soname"; then |
| 13805 | # This is similar to how AIX traditionally builds its shared libraries. |
| 13806 | archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' |
| 13807 | fi |
| 13808 | if test aix != "$with_aix_soname"; then |
| 13809 | archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' |
| 13810 | else |
| 13811 | # used by -dlpreopen to get the symbols |
| 13812 | archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' |
| 13813 | fi |
| 13814 | archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' |
| 13815 | fi |
| 13816 | fi |
| 13817 | ;; |
| 13818 | |
| 13819 | amigaos*) |
| 13820 | case $host_cpu in |
| 13821 | powerpc) |
| 13822 | # see comment about AmigaOS4 .so support |
| 13823 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 13824 | archive_expsym_cmds='' |
| 13825 | ;; |
| 13826 | m68k) |
| 13827 | 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)' |
| 13828 | hardcode_libdir_flag_spec='-L$libdir' |
| 13829 | hardcode_minus_L=yes |
| 13830 | ;; |
| 13831 | esac |
| 13832 | ;; |
| 13833 | |
| 13834 | bsdi[45]*) |
| 13835 | export_dynamic_flag_spec=-rdynamic |
| 13836 | ;; |
| 13837 | |
| 13838 | cygwin* | mingw* | pw32* | cegcc*) |
| 13839 | # When not using gcc, we currently assume that we are using |
| 13840 | # Microsoft Visual C++. |
| 13841 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 13842 | # no search path for DLLs. |
| 13843 | case $cc_basename in |
| 13844 | cl*) |
| 13845 | # Native MSVC |
| 13846 | hardcode_libdir_flag_spec=' ' |
| 13847 | allow_undefined_flag=unsupported |
| 13848 | always_export_symbols=yes |
| 13849 | file_list_spec='@' |
| 13850 | # Tell ltmain to make .lib files, not .a files. |
| 13851 | libext=lib |
| 13852 | # Tell ltmain to make .dll files, not .so files. |
| 13853 | shrext_cmds=.dll |
| 13854 | # FIXME: Setting linknames here is a bad hack. |
| 13855 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
| 13856 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
| 13857 | cp "$export_symbols" "$output_objdir/$soname.def"; |
| 13858 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; |
| 13859 | else |
| 13860 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; |
| 13861 | fi~ |
| 13862 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
| 13863 | linknames=' |
| 13864 | # The linker will not automatically build a static lib if we build a DLL. |
| 13865 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' |
| 13866 | enable_shared_with_static_runtimes=yes |
| 13867 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
| 13868 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
| 13869 | # Don't use ranlib |
| 13870 | old_postinstall_cmds='chmod 644 $oldlib' |
| 13871 | postlink_cmds='lt_outputfile="@OUTPUT@"~ |
| 13872 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 13873 | case $lt_outputfile in |
| 13874 | *.exe|*.EXE) ;; |
| 13875 | *) |
| 13876 | lt_outputfile=$lt_outputfile.exe |
| 13877 | lt_tool_outputfile=$lt_tool_outputfile.exe |
| 13878 | ;; |
| 13879 | esac~ |
| 13880 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then |
| 13881 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| 13882 | $RM "$lt_outputfile.manifest"; |
| 13883 | fi' |
| 13884 | ;; |
| 13885 | *) |
| 13886 | # Assume MSVC wrapper |
| 13887 | hardcode_libdir_flag_spec=' ' |
| 13888 | allow_undefined_flag=unsupported |
| 13889 | # Tell ltmain to make .lib files, not .a files. |
| 13890 | libext=lib |
| 13891 | # Tell ltmain to make .dll files, not .so files. |
| 13892 | shrext_cmds=.dll |
| 13893 | # FIXME: Setting linknames here is a bad hack. |
| 13894 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 13895 | # The linker will automatically build a .lib file if we build a DLL. |
| 13896 | old_archive_from_new_cmds='true' |
| 13897 | # FIXME: Should let the user specify the lib program. |
| 13898 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
| 13899 | enable_shared_with_static_runtimes=yes |
| 13900 | ;; |
| 13901 | esac |
| 13902 | ;; |
| 13903 | |
| 13904 | darwin* | rhapsody*) |
| 13905 | |
| 13906 | |
| 13907 | archive_cmds_need_lc=no |
| 13908 | hardcode_direct=no |
| 13909 | hardcode_automatic=yes |
| 13910 | hardcode_shlibpath_var=unsupported |
| 13911 | if test yes = "$lt_cv_ld_force_load"; then |
| 13912 | 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\"`' |
| 13913 | |
| 13914 | else |
| 13915 | whole_archive_flag_spec='' |
| 13916 | fi |
| 13917 | link_all_deplibs=yes |
| 13918 | allow_undefined_flag=$_lt_dar_allow_undefined |
| 13919 | case $cc_basename in |
| 13920 | ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
| 13921 | *) _lt_dar_can_shared=$GCC ;; |
| 13922 | esac |
| 13923 | if test yes = "$_lt_dar_can_shared"; then |
| 13924 | output_verbose_link_cmd=func_echo_all |
| 13925 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" |
| 13926 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" |
| 13927 | 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" |
| 13928 | 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" |
| 13929 | |
| 13930 | else |
| 13931 | ld_shlibs=no |
| 13932 | fi |
| 13933 | |
| 13934 | ;; |
| 13935 | |
| 13936 | dgux*) |
| 13937 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 13938 | hardcode_libdir_flag_spec='-L$libdir' |
| 13939 | hardcode_shlibpath_var=no |
| 13940 | ;; |
| 13941 | |
| 13942 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 13943 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 13944 | # does not break anything, and helps significantly (at the cost of a little |
| 13945 | # extra space). |
| 13946 | freebsd2.2*) |
| 13947 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 13948 | hardcode_libdir_flag_spec='-R$libdir' |
| 13949 | hardcode_direct=yes |
| 13950 | hardcode_shlibpath_var=no |
| 13951 | ;; |
| 13952 | |
| 13953 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 13954 | freebsd2.*) |
| 13955 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 13956 | hardcode_direct=yes |
| 13957 | hardcode_minus_L=yes |
| 13958 | hardcode_shlibpath_var=no |
| 13959 | ;; |
| 13960 | |
| 13961 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 13962 | freebsd* | dragonfly*) |
| 13963 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 13964 | hardcode_libdir_flag_spec='-R$libdir' |
| 13965 | hardcode_direct=yes |
| 13966 | hardcode_shlibpath_var=no |
| 13967 | ;; |
| 13968 | |
| 13969 | hpux9*) |
| 13970 | if test yes = "$GCC"; then |
| 13971 | archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv -f $output_objdir/$soname $lib' |
| 13972 | else |
| 13973 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv -f $output_objdir/$soname $lib' |
| 13974 | fi |
| 13975 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
| 13976 | hardcode_libdir_separator=: |
| 13977 | hardcode_direct=yes |
| 13978 | |
| 13979 | # hardcode_minus_L: Not really in the search PATH, |
| 13980 | # but as the default location of the library. |
| 13981 | hardcode_minus_L=yes |
| 13982 | export_dynamic_flag_spec='$wl-E' |
| 13983 | ;; |
| 13984 | |
| 13985 | hpux10*) |
| 13986 | if test yes,no = "$GCC,$with_gnu_ld"; then |
| 13987 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 13988 | else |
| 13989 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 13990 | fi |
| 13991 | if test no = "$with_gnu_ld"; then |
| 13992 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
| 13993 | hardcode_libdir_separator=: |
| 13994 | hardcode_direct=yes |
| 13995 | hardcode_direct_absolute=yes |
| 13996 | export_dynamic_flag_spec='$wl-E' |
| 13997 | # hardcode_minus_L: Not really in the search PATH, |
| 13998 | # but as the default location of the library. |
| 13999 | hardcode_minus_L=yes |
| 14000 | fi |
| 14001 | ;; |
| 14002 | |
| 14003 | hpux11*) |
| 14004 | if test yes,no = "$GCC,$with_gnu_ld"; then |
| 14005 | case $host_cpu in |
| 14006 | hppa*64*) |
| 14007 | archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14008 | ;; |
| 14009 | ia64*) |
| 14010 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 14011 | ;; |
| 14012 | *) |
| 14013 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 14014 | ;; |
| 14015 | esac |
| 14016 | else |
| 14017 | case $host_cpu in |
| 14018 | hppa*64*) |
| 14019 | archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14020 | ;; |
| 14021 | ia64*) |
| 14022 | archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 14023 | ;; |
| 14024 | *) |
| 14025 | |
| 14026 | # Older versions of the 11.00 compiler do not understand -b yet |
| 14027 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) |
| 14028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 |
| 14029 | $as_echo_n "checking if $CC understands -b... " >&6; } |
| 14030 | if ${lt_cv_prog_compiler__b+:} false; then : |
| 14031 | $as_echo_n "(cached) " >&6 |
| 14032 | else |
| 14033 | lt_cv_prog_compiler__b=no |
| 14034 | save_LDFLAGS=$LDFLAGS |
| 14035 | LDFLAGS="$LDFLAGS -b" |
| 14036 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 14037 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 14038 | # The linker can only warn and ignore the option if not recognized |
| 14039 | # So say no if there are warnings |
| 14040 | if test -s conftest.err; then |
| 14041 | # Append any errors to the config.log. |
| 14042 | cat conftest.err 1>&5 |
| 14043 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 14044 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14045 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 14046 | lt_cv_prog_compiler__b=yes |
| 14047 | fi |
| 14048 | else |
| 14049 | lt_cv_prog_compiler__b=yes |
| 14050 | fi |
| 14051 | fi |
| 14052 | $RM -r conftest* |
| 14053 | LDFLAGS=$save_LDFLAGS |
| 14054 | |
| 14055 | fi |
| 14056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 |
| 14057 | $as_echo "$lt_cv_prog_compiler__b" >&6; } |
| 14058 | |
| 14059 | if test yes = "$lt_cv_prog_compiler__b"; then |
| 14060 | archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 14061 | else |
| 14062 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 14063 | fi |
| 14064 | |
| 14065 | ;; |
| 14066 | esac |
| 14067 | fi |
| 14068 | if test no = "$with_gnu_ld"; then |
| 14069 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
| 14070 | hardcode_libdir_separator=: |
| 14071 | |
| 14072 | case $host_cpu in |
| 14073 | hppa*64*|ia64*) |
| 14074 | hardcode_direct=no |
| 14075 | hardcode_shlibpath_var=no |
| 14076 | ;; |
| 14077 | *) |
| 14078 | hardcode_direct=yes |
| 14079 | hardcode_direct_absolute=yes |
| 14080 | export_dynamic_flag_spec='$wl-E' |
| 14081 | |
| 14082 | # hardcode_minus_L: Not really in the search PATH, |
| 14083 | # but as the default location of the library. |
| 14084 | hardcode_minus_L=yes |
| 14085 | ;; |
| 14086 | esac |
| 14087 | fi |
| 14088 | ;; |
| 14089 | |
| 14090 | irix5* | irix6* | nonstopux*) |
| 14091 | if test yes = "$GCC"; then |
| 14092 | 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' |
| 14093 | # Try to use the -exported_symbol ld option, if it does not |
| 14094 | # work, assume that -exports_file does not work either and |
| 14095 | # implicitly export all symbols. |
| 14096 | # This should be the same for all languages, so no per-tag cache variable. |
| 14097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 |
| 14098 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } |
| 14099 | if ${lt_cv_irix_exported_symbol+:} false; then : |
| 14100 | $as_echo_n "(cached) " >&6 |
| 14101 | else |
| 14102 | save_LDFLAGS=$LDFLAGS |
| 14103 | LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" |
| 14104 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14105 | /* end confdefs.h. */ |
| 14106 | int foo (void) { return 0; } |
| 14107 | _ACEOF |
| 14108 | if ac_fn_c_try_link "$LINENO"; then : |
| 14109 | lt_cv_irix_exported_symbol=yes |
| 14110 | else |
| 14111 | lt_cv_irix_exported_symbol=no |
| 14112 | fi |
| 14113 | rm -f core conftest.err conftest.$ac_objext \ |
| 14114 | conftest$ac_exeext conftest.$ac_ext |
| 14115 | LDFLAGS=$save_LDFLAGS |
| 14116 | fi |
| 14117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 |
| 14118 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } |
| 14119 | if test yes = "$lt_cv_irix_exported_symbol"; then |
| 14120 | 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' |
| 14121 | fi |
| 14122 | link_all_deplibs=no |
| 14123 | else |
| 14124 | 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' |
| 14125 | 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' |
| 14126 | fi |
| 14127 | archive_cmds_need_lc='no' |
| 14128 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 14129 | hardcode_libdir_separator=: |
| 14130 | inherit_rpath=yes |
| 14131 | link_all_deplibs=yes |
| 14132 | ;; |
| 14133 | |
| 14134 | linux*) |
| 14135 | case $cc_basename in |
| 14136 | tcc*) |
| 14137 | # Fabrice Bellard et al's Tiny C Compiler |
| 14138 | ld_shlibs=yes |
| 14139 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 14140 | ;; |
| 14141 | esac |
| 14142 | ;; |
| 14143 | |
| 14144 | netbsd* | netbsdelf*-gnu) |
| 14145 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 14146 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 14147 | else |
| 14148 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 14149 | fi |
| 14150 | hardcode_libdir_flag_spec='-R$libdir' |
| 14151 | hardcode_direct=yes |
| 14152 | hardcode_shlibpath_var=no |
| 14153 | ;; |
| 14154 | |
| 14155 | newsos6) |
| 14156 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14157 | hardcode_direct=yes |
| 14158 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 14159 | hardcode_libdir_separator=: |
| 14160 | hardcode_shlibpath_var=no |
| 14161 | ;; |
| 14162 | |
| 14163 | *nto* | *qnx*) |
| 14164 | ;; |
| 14165 | |
| 14166 | openbsd* | bitrig*) |
| 14167 | if test -f /usr/libexec/ld.so; then |
| 14168 | hardcode_direct=yes |
| 14169 | hardcode_shlibpath_var=no |
| 14170 | hardcode_direct_absolute=yes |
| 14171 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
| 14172 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 14173 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' |
| 14174 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
| 14175 | export_dynamic_flag_spec='$wl-E' |
| 14176 | else |
| 14177 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 14178 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
| 14179 | fi |
| 14180 | else |
| 14181 | ld_shlibs=no |
| 14182 | fi |
| 14183 | ;; |
| 14184 | |
| 14185 | os2*) |
| 14186 | hardcode_libdir_flag_spec='-L$libdir' |
| 14187 | hardcode_minus_L=yes |
| 14188 | allow_undefined_flag=unsupported |
| 14189 | shrext_cmds=.dll |
| 14190 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 14191 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 14192 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 14193 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 14194 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
| 14195 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 14196 | emximp -o $lib $output_objdir/$libname.def' |
| 14197 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 14198 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 14199 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 14200 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 14201 | prefix_cmds="$SED"~ |
| 14202 | if test EXPORTS = "`$SED 1q $export_symbols`"; then |
| 14203 | prefix_cmds="$prefix_cmds -e 1d"; |
| 14204 | fi~ |
| 14205 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
| 14206 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
| 14207 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 14208 | emximp -o $lib $output_objdir/$libname.def' |
| 14209 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
| 14210 | enable_shared_with_static_runtimes=yes |
| 14211 | ;; |
| 14212 | |
| 14213 | osf3*) |
| 14214 | if test yes = "$GCC"; then |
| 14215 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' |
| 14216 | 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' |
| 14217 | else |
| 14218 | allow_undefined_flag=' -expect_unresolved \*' |
| 14219 | 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' |
| 14220 | fi |
| 14221 | archive_cmds_need_lc='no' |
| 14222 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 14223 | hardcode_libdir_separator=: |
| 14224 | ;; |
| 14225 | |
| 14226 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 14227 | if test yes = "$GCC"; then |
| 14228 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' |
| 14229 | 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' |
| 14230 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 14231 | else |
| 14232 | allow_undefined_flag=' -expect_unresolved \*' |
| 14233 | 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' |
| 14234 | 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~ |
| 14235 | $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' |
| 14236 | |
| 14237 | # Both c and cxx compiler support -rpath directly |
| 14238 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 14239 | fi |
| 14240 | archive_cmds_need_lc='no' |
| 14241 | hardcode_libdir_separator=: |
| 14242 | ;; |
| 14243 | |
| 14244 | solaris*) |
| 14245 | no_undefined_flag=' -z defs' |
| 14246 | if test yes = "$GCC"; then |
| 14247 | wlarc='$wl' |
| 14248 | archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14249 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 14250 | $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' |
| 14251 | else |
| 14252 | case `$CC -V 2>&1` in |
| 14253 | *"Compilers 5.0"*) |
| 14254 | wlarc='' |
| 14255 | archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14256 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 14257 | $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 14258 | ;; |
| 14259 | *) |
| 14260 | wlarc='$wl' |
| 14261 | archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14262 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 14263 | $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 14264 | ;; |
| 14265 | esac |
| 14266 | fi |
| 14267 | hardcode_libdir_flag_spec='-R$libdir' |
| 14268 | hardcode_shlibpath_var=no |
| 14269 | case $host_os in |
| 14270 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 14271 | *) |
| 14272 | # The compiler driver will combine and reorder linker options, |
| 14273 | # but understands '-z linker_flag'. GCC discards it without '$wl', |
| 14274 | # but is careful enough not to reorder. |
| 14275 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 14276 | if test yes = "$GCC"; then |
| 14277 | whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' |
| 14278 | else |
| 14279 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 14280 | fi |
| 14281 | ;; |
| 14282 | esac |
| 14283 | link_all_deplibs=yes |
| 14284 | ;; |
| 14285 | |
| 14286 | sunos4*) |
| 14287 | if test sequent = "$host_vendor"; then |
| 14288 | # Use $CC to link under sequent, because it throws in some extra .o |
| 14289 | # files that make .init and .fini sections work. |
| 14290 | archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14291 | else |
| 14292 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 14293 | fi |
| 14294 | hardcode_libdir_flag_spec='-L$libdir' |
| 14295 | hardcode_direct=yes |
| 14296 | hardcode_minus_L=yes |
| 14297 | hardcode_shlibpath_var=no |
| 14298 | ;; |
| 14299 | |
| 14300 | sysv4) |
| 14301 | case $host_vendor in |
| 14302 | sni) |
| 14303 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14304 | hardcode_direct=yes # is this really true??? |
| 14305 | ;; |
| 14306 | siemens) |
| 14307 | ## LD is ld it makes a PLAMLIB |
| 14308 | ## CC just makes a GrossModule. |
| 14309 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 14310 | reload_cmds='$CC -r -o $output$reload_objs' |
| 14311 | hardcode_direct=no |
| 14312 | ;; |
| 14313 | motorola) |
| 14314 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14315 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 14316 | ;; |
| 14317 | esac |
| 14318 | runpath_var='LD_RUN_PATH' |
| 14319 | hardcode_shlibpath_var=no |
| 14320 | ;; |
| 14321 | |
| 14322 | sysv4.3*) |
| 14323 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14324 | hardcode_shlibpath_var=no |
| 14325 | export_dynamic_flag_spec='-Bexport' |
| 14326 | ;; |
| 14327 | |
| 14328 | sysv4*MP*) |
| 14329 | if test -d /usr/nec; then |
| 14330 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14331 | hardcode_shlibpath_var=no |
| 14332 | runpath_var=LD_RUN_PATH |
| 14333 | hardcode_runpath_var=yes |
| 14334 | ld_shlibs=yes |
| 14335 | fi |
| 14336 | ;; |
| 14337 | |
| 14338 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 14339 | no_undefined_flag='$wl-z,text' |
| 14340 | archive_cmds_need_lc=no |
| 14341 | hardcode_shlibpath_var=no |
| 14342 | runpath_var='LD_RUN_PATH' |
| 14343 | |
| 14344 | if test yes = "$GCC"; then |
| 14345 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14346 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14347 | else |
| 14348 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14349 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14350 | fi |
| 14351 | ;; |
| 14352 | |
| 14353 | sysv5* | sco3.2v5* | sco5v6*) |
| 14354 | # Note: We CANNOT use -z defs as we might desire, because we do not |
| 14355 | # link with -lc, and that would cause any symbols used from libc to |
| 14356 | # always be unresolved, which means just about no library would |
| 14357 | # ever link correctly. If we're not using GNU ld we use -z text |
| 14358 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 14359 | # as -z defs. |
| 14360 | no_undefined_flag='$wl-z,text' |
| 14361 | allow_undefined_flag='$wl-z,nodefs' |
| 14362 | archive_cmds_need_lc=no |
| 14363 | hardcode_shlibpath_var=no |
| 14364 | hardcode_libdir_flag_spec='$wl-R,$libdir' |
| 14365 | hardcode_libdir_separator=':' |
| 14366 | link_all_deplibs=yes |
| 14367 | export_dynamic_flag_spec='$wl-Bexport' |
| 14368 | runpath_var='LD_RUN_PATH' |
| 14369 | |
| 14370 | if test yes = "$GCC"; then |
| 14371 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14372 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14373 | else |
| 14374 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14375 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14376 | fi |
| 14377 | ;; |
| 14378 | |
| 14379 | uts4*) |
| 14380 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14381 | hardcode_libdir_flag_spec='-L$libdir' |
| 14382 | hardcode_shlibpath_var=no |
| 14383 | ;; |
| 14384 | |
| 14385 | *) |
| 14386 | ld_shlibs=no |
| 14387 | ;; |
| 14388 | esac |
| 14389 | |
| 14390 | if test sni = "$host_vendor"; then |
| 14391 | case $host in |
| 14392 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 14393 | export_dynamic_flag_spec='$wl-Blargedynsym' |
| 14394 | ;; |
| 14395 | esac |
| 14396 | fi |
| 14397 | fi |
| 14398 | |
| 14399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
| 14400 | $as_echo "$ld_shlibs" >&6; } |
| 14401 | test no = "$ld_shlibs" && can_build_shared=no |
| 14402 | |
| 14403 | with_gnu_ld=$with_gnu_ld |
| 14404 | |
| 14405 | |
| 14406 | |
| 14407 | |
| 14408 | |
| 14409 | |
| 14410 | |
| 14411 | |
| 14412 | |
| 14413 | |
| 14414 | |
| 14415 | |
| 14416 | |
| 14417 | |
| 14418 | |
| 14419 | # |
| 14420 | # Do we need to explicitly link libc? |
| 14421 | # |
| 14422 | case "x$archive_cmds_need_lc" in |
| 14423 | x|xyes) |
| 14424 | # Assume -lc should be added |
| 14425 | archive_cmds_need_lc=yes |
| 14426 | |
| 14427 | if test yes,yes = "$GCC,$enable_shared"; then |
| 14428 | case $archive_cmds in |
| 14429 | *'~'*) |
| 14430 | # FIXME: we may have to deal with multi-command sequences. |
| 14431 | ;; |
| 14432 | '$CC '*) |
| 14433 | # Test whether the compiler implicitly links with -lc since on some |
| 14434 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 14435 | # to ld, don't add -lc before -lgcc. |
| 14436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| 14437 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
| 14438 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
| 14439 | $as_echo_n "(cached) " >&6 |
| 14440 | else |
| 14441 | $RM conftest* |
| 14442 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14443 | |
| 14444 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 14445 | (eval $ac_compile) 2>&5 |
| 14446 | ac_status=$? |
| 14447 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14448 | test $ac_status = 0; } 2>conftest.err; then |
| 14449 | soname=conftest |
| 14450 | lib=conftest |
| 14451 | libobjs=conftest.$ac_objext |
| 14452 | deplibs= |
| 14453 | wl=$lt_prog_compiler_wl |
| 14454 | pic_flag=$lt_prog_compiler_pic |
| 14455 | compiler_flags=-v |
| 14456 | linker_flags=-v |
| 14457 | verstring= |
| 14458 | output_objdir=. |
| 14459 | libname=conftest |
| 14460 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 14461 | allow_undefined_flag= |
| 14462 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| 14463 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 14464 | ac_status=$? |
| 14465 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14466 | test $ac_status = 0; } |
| 14467 | then |
| 14468 | lt_cv_archive_cmds_need_lc=no |
| 14469 | else |
| 14470 | lt_cv_archive_cmds_need_lc=yes |
| 14471 | fi |
| 14472 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 14473 | else |
| 14474 | cat conftest.err 1>&5 |
| 14475 | fi |
| 14476 | $RM conftest* |
| 14477 | |
| 14478 | fi |
| 14479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
| 14480 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } |
| 14481 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
| 14482 | ;; |
| 14483 | esac |
| 14484 | fi |
| 14485 | ;; |
| 14486 | esac |
| 14487 | |
| 14488 | |
| 14489 | |
| 14490 | |
| 14491 | |
| 14492 | |
| 14493 | |
| 14494 | |
| 14495 | |
| 14496 | |
| 14497 | |
| 14498 | |
| 14499 | |
| 14500 | |
| 14501 | |
| 14502 | |
| 14503 | |
| 14504 | |
| 14505 | |
| 14506 | |
| 14507 | |
| 14508 | |
| 14509 | |
| 14510 | |
| 14511 | |
| 14512 | |
| 14513 | |
| 14514 | |
| 14515 | |
| 14516 | |
| 14517 | |
| 14518 | |
| 14519 | |
| 14520 | |
| 14521 | |
| 14522 | |
| 14523 | |
| 14524 | |
| 14525 | |
| 14526 | |
| 14527 | |
| 14528 | |
| 14529 | |
| 14530 | |
| 14531 | |
| 14532 | |
| 14533 | |
| 14534 | |
| 14535 | |
| 14536 | |
| 14537 | |
| 14538 | |
| 14539 | |
| 14540 | |
| 14541 | |
| 14542 | |
| 14543 | |
| 14544 | |
| 14545 | |
| 14546 | |
| 14547 | |
| 14548 | |
| 14549 | |
| 14550 | |
| 14551 | |
| 14552 | |
| 14553 | |
| 14554 | |
| 14555 | |
| 14556 | |
| 14557 | |
| 14558 | |
| 14559 | |
| 14560 | |
| 14561 | |
| 14562 | |
| 14563 | |
| 14564 | |
| 14565 | |
| 14566 | |
| 14567 | |
| 14568 | |
| 14569 | |
| 14570 | |
| 14571 | |
| 14572 | |
| 14573 | |
| 14574 | |
| 14575 | |
| 14576 | |
| 14577 | |
| 14578 | |
| 14579 | |
| 14580 | |
| 14581 | |
| 14582 | |
| 14583 | |
| 14584 | |
| 14585 | |
| 14586 | |
| 14587 | |
| 14588 | |
| 14589 | |
| 14590 | |
| 14591 | |
| 14592 | |
| 14593 | |
| 14594 | |
| 14595 | |
| 14596 | |
| 14597 | |
| 14598 | |
| 14599 | |
| 14600 | |
| 14601 | |
| 14602 | |
| 14603 | |
| 14604 | |
| 14605 | |
| 14606 | |
| 14607 | |
| 14608 | |
| 14609 | |
| 14610 | |
| 14611 | |
| 14612 | |
| 14613 | |
| 14614 | |
| 14615 | |
| 14616 | |
| 14617 | |
| 14618 | |
| 14619 | |
| 14620 | |
| 14621 | |
| 14622 | |
| 14623 | |
| 14624 | |
| 14625 | |
| 14626 | |
| 14627 | |
| 14628 | |
| 14629 | |
| 14630 | |
| 14631 | |
| 14632 | |
| 14633 | |
| 14634 | |
| 14635 | |
| 14636 | |
| 14637 | |
| 14638 | |
| 14639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 14640 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
| 14641 | |
| 14642 | if test yes = "$GCC"; then |
| 14643 | case $host_os in |
| 14644 | darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; |
| 14645 | *) lt_awk_arg='/^libraries:/' ;; |
| 14646 | esac |
| 14647 | case $host_os in |
| 14648 | mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; |
| 14649 | *) lt_sed_strip_eq='s|=/|/|g' ;; |
| 14650 | esac |
| 14651 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` |
| 14652 | case $lt_search_path_spec in |
| 14653 | *\;*) |
| 14654 | # if the path contains ";" then we assume it to be the separator |
| 14655 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 14656 | # assumed that no part of a normal pathname contains ";" but that should |
| 14657 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 14658 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
| 14659 | ;; |
| 14660 | *) |
| 14661 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` |
| 14662 | ;; |
| 14663 | esac |
| 14664 | # Ok, now we have the path, separated by spaces, we can step through it |
| 14665 | # and add multilib dir if necessary... |
| 14666 | lt_tmp_lt_search_path_spec= |
| 14667 | lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 14668 | # ...but if some path component already ends with the multilib dir we assume |
| 14669 | # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). |
| 14670 | case "$lt_multi_os_dir; $lt_search_path_spec " in |
| 14671 | "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) |
| 14672 | lt_multi_os_dir= |
| 14673 | ;; |
| 14674 | esac |
| 14675 | for lt_sys_path in $lt_search_path_spec; do |
| 14676 | if test -d "$lt_sys_path$lt_multi_os_dir"; then |
| 14677 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" |
| 14678 | elif test -n "$lt_multi_os_dir"; then |
| 14679 | test -d "$lt_sys_path" && \ |
| 14680 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 14681 | fi |
| 14682 | done |
| 14683 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
| 14684 | BEGIN {RS = " "; FS = "/|\n";} { |
| 14685 | lt_foo = ""; |
| 14686 | lt_count = 0; |
| 14687 | for (lt_i = NF; lt_i > 0; lt_i--) { |
| 14688 | if ($lt_i != "" && $lt_i != ".") { |
| 14689 | if ($lt_i == "..") { |
| 14690 | lt_count++; |
| 14691 | } else { |
| 14692 | if (lt_count == 0) { |
| 14693 | lt_foo = "/" $lt_i lt_foo; |
| 14694 | } else { |
| 14695 | lt_count--; |
| 14696 | } |
| 14697 | } |
| 14698 | } |
| 14699 | } |
| 14700 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
| 14701 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
| 14702 | }'` |
| 14703 | # AWK program above erroneously prepends '/' to C:/dos/paths |
| 14704 | # for these hosts. |
| 14705 | case $host_os in |
| 14706 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
| 14707 | $SED 's|/\([A-Za-z]:\)|\1|g'` ;; |
| 14708 | esac |
| 14709 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
| 14710 | else |
| 14711 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 14712 | fi |
| 14713 | library_names_spec= |
| 14714 | libname_spec='lib$name' |
| 14715 | soname_spec= |
| 14716 | shrext_cmds=.so |
| 14717 | postinstall_cmds= |
| 14718 | postuninstall_cmds= |
| 14719 | finish_cmds= |
| 14720 | finish_eval= |
| 14721 | shlibpath_var= |
| 14722 | shlibpath_overrides_runpath=unknown |
| 14723 | version_type=none |
| 14724 | dynamic_linker="$host_os ld.so" |
| 14725 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 14726 | need_lib_prefix=unknown |
| 14727 | hardcode_into_libs=no |
| 14728 | |
| 14729 | # when you set need_version to no, make sure it does not cause -set_version |
| 14730 | # flags to be left without arguments |
| 14731 | need_version=unknown |
| 14732 | |
| 14733 | |
| 14734 | |
| 14735 | case $host_os in |
| 14736 | aix3*) |
| 14737 | version_type=linux # correct to gnu/linux during the next big refactor |
| 14738 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
| 14739 | shlibpath_var=LIBPATH |
| 14740 | |
| 14741 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 14742 | soname_spec='$libname$release$shared_ext$major' |
| 14743 | ;; |
| 14744 | |
| 14745 | aix[4-9]*) |
| 14746 | version_type=linux # correct to gnu/linux during the next big refactor |
| 14747 | need_lib_prefix=no |
| 14748 | need_version=no |
| 14749 | hardcode_into_libs=yes |
| 14750 | if test ia64 = "$host_cpu"; then |
| 14751 | # AIX 5 supports IA64 |
| 14752 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
| 14753 | shlibpath_var=LD_LIBRARY_PATH |
| 14754 | else |
| 14755 | # With GCC up to 2.95.x, collect2 would create an import file |
| 14756 | # for dependence libraries. The import file would start with |
| 14757 | # the line '#! .'. This would cause the generated library to |
| 14758 | # depend on '.', always an invalid library. This was fixed in |
| 14759 | # development snapshots of GCC prior to 3.0. |
| 14760 | case $host_os in |
| 14761 | aix4 | aix4.[01] | aix4.[01].*) |
| 14762 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 14763 | echo ' yes ' |
| 14764 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
| 14765 | : |
| 14766 | else |
| 14767 | can_build_shared=no |
| 14768 | fi |
| 14769 | ;; |
| 14770 | esac |
| 14771 | # Using Import Files as archive members, it is possible to support |
| 14772 | # filename-based versioning of shared library archives on AIX. While |
| 14773 | # this would work for both with and without runtime linking, it will |
| 14774 | # prevent static linking of such archives. So we do filename-based |
| 14775 | # shared library versioning with .so extension only, which is used |
| 14776 | # when both runtime linking and shared linking is enabled. |
| 14777 | # Unfortunately, runtime linking may impact performance, so we do |
| 14778 | # not want this to be the default eventually. Also, we use the |
| 14779 | # versioned .so libs for executables only if there is the -brtl |
| 14780 | # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. |
| 14781 | # To allow for filename-based versioning support, we need to create |
| 14782 | # libNAME.so.V as an archive file, containing: |
| 14783 | # *) an Import File, referring to the versioned filename of the |
| 14784 | # archive as well as the shared archive member, telling the |
| 14785 | # bitwidth (32 or 64) of that shared object, and providing the |
| 14786 | # list of exported symbols of that shared object, eventually |
| 14787 | # decorated with the 'weak' keyword |
| 14788 | # *) the shared object with the F_LOADONLY flag set, to really avoid |
| 14789 | # it being seen by the linker. |
| 14790 | # At run time we better use the real file rather than another symlink, |
| 14791 | # but for link time we create the symlink libNAME.so -> libNAME.so.V |
| 14792 | |
| 14793 | case $with_aix_soname,$aix_use_runtimelinking in |
| 14794 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct |
| 14795 | # soname into executable. Probably we can add versioning support to |
| 14796 | # collect2, so additional links can be useful in future. |
| 14797 | aix,yes) # traditional libtool |
| 14798 | dynamic_linker='AIX unversionable lib.so' |
| 14799 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 14800 | # instead of lib<name>.a to let people know that these are not |
| 14801 | # typical AIX shared libraries. |
| 14802 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 14803 | ;; |
| 14804 | aix,no) # traditional AIX only |
| 14805 | dynamic_linker='AIX lib.a(lib.so.V)' |
| 14806 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 14807 | # and later when we are not doing run time linking. |
| 14808 | library_names_spec='$libname$release.a $libname.a' |
| 14809 | soname_spec='$libname$release$shared_ext$major' |
| 14810 | ;; |
| 14811 | svr4,*) # full svr4 only |
| 14812 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" |
| 14813 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
| 14814 | # We do not specify a path in Import Files, so LIBPATH fires. |
| 14815 | shlibpath_overrides_runpath=yes |
| 14816 | ;; |
| 14817 | *,yes) # both, prefer svr4 |
| 14818 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" |
| 14819 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
| 14820 | # unpreferred sharedlib libNAME.a needs extra handling |
| 14821 | postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' |
| 14822 | postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' |
| 14823 | # We do not specify a path in Import Files, so LIBPATH fires. |
| 14824 | shlibpath_overrides_runpath=yes |
| 14825 | ;; |
| 14826 | *,no) # both, prefer aix |
| 14827 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" |
| 14828 | library_names_spec='$libname$release.a $libname.a' |
| 14829 | soname_spec='$libname$release$shared_ext$major' |
| 14830 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling |
| 14831 | postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' |
| 14832 | postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' |
| 14833 | ;; |
| 14834 | esac |
| 14835 | shlibpath_var=LIBPATH |
| 14836 | fi |
| 14837 | ;; |
| 14838 | |
| 14839 | amigaos*) |
| 14840 | case $host_cpu in |
| 14841 | powerpc) |
| 14842 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 14843 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 14844 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 14845 | ;; |
| 14846 | m68k) |
| 14847 | library_names_spec='$libname.ixlibrary $libname.a' |
| 14848 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 14849 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
| 14850 | ;; |
| 14851 | esac |
| 14852 | ;; |
| 14853 | |
| 14854 | beos*) |
| 14855 | library_names_spec='$libname$shared_ext' |
| 14856 | dynamic_linker="$host_os ld.so" |
| 14857 | shlibpath_var=LIBRARY_PATH |
| 14858 | ;; |
| 14859 | |
| 14860 | bsdi[45]*) |
| 14861 | version_type=linux # correct to gnu/linux during the next big refactor |
| 14862 | need_version=no |
| 14863 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 14864 | soname_spec='$libname$release$shared_ext$major' |
| 14865 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 14866 | shlibpath_var=LD_LIBRARY_PATH |
| 14867 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 14868 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 14869 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 14870 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 14871 | # libtool to hard-code these into programs |
| 14872 | ;; |
| 14873 | |
| 14874 | cygwin* | mingw* | pw32* | cegcc*) |
| 14875 | version_type=windows |
| 14876 | shrext_cmds=.dll |
| 14877 | need_version=no |
| 14878 | need_lib_prefix=no |
| 14879 | |
| 14880 | case $GCC,$cc_basename in |
| 14881 | yes,*) |
| 14882 | # gcc |
| 14883 | library_names_spec='$libname.dll.a' |
| 14884 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 14885 | postinstall_cmds='base_file=`basename \$file`~ |
| 14886 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
| 14887 | dldir=$destdir/`dirname \$dlpath`~ |
| 14888 | test -d \$dldir || mkdir -p \$dldir~ |
| 14889 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 14890 | chmod a+x \$dldir/$dlname~ |
| 14891 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 14892 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 14893 | fi' |
| 14894 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 14895 | dlpath=$dir/\$dldll~ |
| 14896 | $RM \$dlpath' |
| 14897 | shlibpath_overrides_runpath=yes |
| 14898 | |
| 14899 | case $host_os in |
| 14900 | cygwin*) |
| 14901 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 14902 | soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 14903 | |
| 14904 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
| 14905 | ;; |
| 14906 | mingw* | cegcc*) |
| 14907 | # MinGW DLLs use traditional 'lib' prefix |
| 14908 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 14909 | ;; |
| 14910 | pw32*) |
| 14911 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 14912 | library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 14913 | ;; |
| 14914 | esac |
| 14915 | dynamic_linker='Win32 ld.exe' |
| 14916 | ;; |
| 14917 | |
| 14918 | *,cl*) |
| 14919 | # Native MSVC |
| 14920 | libname_spec='$name' |
| 14921 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 14922 | library_names_spec='$libname.dll.lib' |
| 14923 | |
| 14924 | case $build_os in |
| 14925 | mingw*) |
| 14926 | sys_lib_search_path_spec= |
| 14927 | lt_save_ifs=$IFS |
| 14928 | IFS=';' |
| 14929 | for lt_path in $LIB |
| 14930 | do |
| 14931 | IFS=$lt_save_ifs |
| 14932 | # Let DOS variable expansion print the short 8.3 style file name. |
| 14933 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
| 14934 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
| 14935 | done |
| 14936 | IFS=$lt_save_ifs |
| 14937 | # Convert to MSYS style. |
| 14938 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
| 14939 | ;; |
| 14940 | cygwin*) |
| 14941 | # Convert to unix form, then to dos form, then back to unix form |
| 14942 | # but this time dos style (no spaces!) so that the unix form looks |
| 14943 | # like /cygdrive/c/PROGRA~1:/cygdr... |
| 14944 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
| 14945 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
| 14946 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 14947 | ;; |
| 14948 | *) |
| 14949 | sys_lib_search_path_spec=$LIB |
| 14950 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 14951 | # It is most probably a Windows format PATH. |
| 14952 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 14953 | else |
| 14954 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 14955 | fi |
| 14956 | # FIXME: find the short name or the path components, as spaces are |
| 14957 | # common. (e.g. "Program Files" -> "PROGRA~1") |
| 14958 | ;; |
| 14959 | esac |
| 14960 | |
| 14961 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 14962 | postinstall_cmds='base_file=`basename \$file`~ |
| 14963 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
| 14964 | dldir=$destdir/`dirname \$dlpath`~ |
| 14965 | test -d \$dldir || mkdir -p \$dldir~ |
| 14966 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 14967 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 14968 | dlpath=$dir/\$dldll~ |
| 14969 | $RM \$dlpath' |
| 14970 | shlibpath_overrides_runpath=yes |
| 14971 | dynamic_linker='Win32 link.exe' |
| 14972 | ;; |
| 14973 | |
| 14974 | *) |
| 14975 | # Assume MSVC wrapper |
| 14976 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' |
| 14977 | dynamic_linker='Win32 ld.exe' |
| 14978 | ;; |
| 14979 | esac |
| 14980 | # FIXME: first we should search . and the directory the executable is in |
| 14981 | shlibpath_var=PATH |
| 14982 | ;; |
| 14983 | |
| 14984 | darwin* | rhapsody*) |
| 14985 | dynamic_linker="$host_os dyld" |
| 14986 | version_type=darwin |
| 14987 | need_lib_prefix=no |
| 14988 | need_version=no |
| 14989 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
| 14990 | soname_spec='$libname$release$major$shared_ext' |
| 14991 | shlibpath_overrides_runpath=yes |
| 14992 | shlibpath_var=DYLD_LIBRARY_PATH |
| 14993 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 14994 | |
| 14995 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
| 14996 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 14997 | ;; |
| 14998 | |
| 14999 | dgux*) |
| 15000 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15001 | need_lib_prefix=no |
| 15002 | need_version=no |
| 15003 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 15004 | soname_spec='$libname$release$shared_ext$major' |
| 15005 | shlibpath_var=LD_LIBRARY_PATH |
| 15006 | ;; |
| 15007 | |
| 15008 | freebsd* | dragonfly*) |
| 15009 | # DragonFly does not have aout. When/if they implement a new |
| 15010 | # versioning mechanism, adjust this. |
| 15011 | if test -x /usr/bin/objformat; then |
| 15012 | objformat=`/usr/bin/objformat` |
| 15013 | else |
| 15014 | case $host_os in |
| 15015 | freebsd[23].*) objformat=aout ;; |
| 15016 | *) objformat=elf ;; |
| 15017 | esac |
| 15018 | fi |
| 15019 | version_type=freebsd-$objformat |
| 15020 | case $version_type in |
| 15021 | freebsd-elf*) |
| 15022 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 15023 | soname_spec='$libname$release$shared_ext$major' |
| 15024 | need_version=no |
| 15025 | need_lib_prefix=no |
| 15026 | ;; |
| 15027 | freebsd-*) |
| 15028 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 15029 | need_version=yes |
| 15030 | ;; |
| 15031 | esac |
| 15032 | shlibpath_var=LD_LIBRARY_PATH |
| 15033 | case $host_os in |
| 15034 | freebsd2.*) |
| 15035 | shlibpath_overrides_runpath=yes |
| 15036 | ;; |
| 15037 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 15038 | shlibpath_overrides_runpath=yes |
| 15039 | hardcode_into_libs=yes |
| 15040 | ;; |
| 15041 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 15042 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 15043 | shlibpath_overrides_runpath=no |
| 15044 | hardcode_into_libs=yes |
| 15045 | ;; |
| 15046 | *) # from 4.6 on, and DragonFly |
| 15047 | shlibpath_overrides_runpath=yes |
| 15048 | hardcode_into_libs=yes |
| 15049 | ;; |
| 15050 | esac |
| 15051 | ;; |
| 15052 | |
| 15053 | haiku*) |
| 15054 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15055 | need_lib_prefix=no |
| 15056 | need_version=no |
| 15057 | dynamic_linker="$host_os runtime_loader" |
| 15058 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 15059 | soname_spec='$libname$release$shared_ext$major' |
| 15060 | shlibpath_var=LIBRARY_PATH |
| 15061 | shlibpath_overrides_runpath=no |
| 15062 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
| 15063 | hardcode_into_libs=yes |
| 15064 | ;; |
| 15065 | |
| 15066 | hpux9* | hpux10* | hpux11*) |
| 15067 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 15068 | # link against other versions. |
| 15069 | version_type=sunos |
| 15070 | need_lib_prefix=no |
| 15071 | need_version=no |
| 15072 | case $host_cpu in |
| 15073 | ia64*) |
| 15074 | shrext_cmds='.so' |
| 15075 | hardcode_into_libs=yes |
| 15076 | dynamic_linker="$host_os dld.so" |
| 15077 | shlibpath_var=LD_LIBRARY_PATH |
| 15078 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 15079 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 15080 | soname_spec='$libname$release$shared_ext$major' |
| 15081 | if test 32 = "$HPUX_IA64_MODE"; then |
| 15082 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 15083 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32 |
| 15084 | else |
| 15085 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 15086 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64 |
| 15087 | fi |
| 15088 | ;; |
| 15089 | hppa*64*) |
| 15090 | shrext_cmds='.sl' |
| 15091 | hardcode_into_libs=yes |
| 15092 | dynamic_linker="$host_os dld.sl" |
| 15093 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 15094 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 15095 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 15096 | soname_spec='$libname$release$shared_ext$major' |
| 15097 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 15098 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15099 | ;; |
| 15100 | *) |
| 15101 | shrext_cmds='.sl' |
| 15102 | dynamic_linker="$host_os dld.sl" |
| 15103 | shlibpath_var=SHLIB_PATH |
| 15104 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 15105 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 15106 | soname_spec='$libname$release$shared_ext$major' |
| 15107 | ;; |
| 15108 | esac |
| 15109 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
| 15110 | postinstall_cmds='chmod 555 $lib' |
| 15111 | # or fails outright, so override atomically: |
| 15112 | install_override_mode=555 |
| 15113 | ;; |
| 15114 | |
| 15115 | interix[3-9]*) |
| 15116 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15117 | need_lib_prefix=no |
| 15118 | need_version=no |
| 15119 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 15120 | soname_spec='$libname$release$shared_ext$major' |
| 15121 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 15122 | shlibpath_var=LD_LIBRARY_PATH |
| 15123 | shlibpath_overrides_runpath=no |
| 15124 | hardcode_into_libs=yes |
| 15125 | ;; |
| 15126 | |
| 15127 | irix5* | irix6* | nonstopux*) |
| 15128 | case $host_os in |
| 15129 | nonstopux*) version_type=nonstopux ;; |
| 15130 | *) |
| 15131 | if test yes = "$lt_cv_prog_gnu_ld"; then |
| 15132 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15133 | else |
| 15134 | version_type=irix |
| 15135 | fi ;; |
| 15136 | esac |
| 15137 | need_lib_prefix=no |
| 15138 | need_version=no |
| 15139 | soname_spec='$libname$release$shared_ext$major' |
| 15140 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' |
| 15141 | case $host_os in |
| 15142 | irix5* | nonstopux*) |
| 15143 | libsuff= shlibsuff= |
| 15144 | ;; |
| 15145 | *) |
| 15146 | case $LD in # libtool.m4 will add one of these switches to LD |
| 15147 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 15148 | libsuff= shlibsuff= libmagic=32-bit;; |
| 15149 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 15150 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 15151 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 15152 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 15153 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 15154 | esac |
| 15155 | ;; |
| 15156 | esac |
| 15157 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 15158 | shlibpath_overrides_runpath=no |
| 15159 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" |
| 15160 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" |
| 15161 | hardcode_into_libs=yes |
| 15162 | ;; |
| 15163 | |
| 15164 | # No shared lib support for Linux oldld, aout, or coff. |
| 15165 | linux*oldld* | linux*aout* | linux*coff*) |
| 15166 | dynamic_linker=no |
| 15167 | ;; |
| 15168 | |
| 15169 | linux*android*) |
| 15170 | version_type=none # Android doesn't support versioned libraries. |
| 15171 | need_lib_prefix=no |
| 15172 | need_version=no |
| 15173 | library_names_spec='$libname$release$shared_ext' |
| 15174 | soname_spec='$libname$release$shared_ext' |
| 15175 | finish_cmds= |
| 15176 | shlibpath_var=LD_LIBRARY_PATH |
| 15177 | shlibpath_overrides_runpath=yes |
| 15178 | |
| 15179 | # This implies no fast_install, which is unacceptable. |
| 15180 | # Some rework will be needed to allow for fast_install |
| 15181 | # before this can be enabled. |
| 15182 | hardcode_into_libs=yes |
| 15183 | |
| 15184 | dynamic_linker='Android linker' |
| 15185 | # Don't embed -rpath directories since the linker doesn't support them. |
| 15186 | hardcode_libdir_flag_spec='-L$libdir' |
| 15187 | ;; |
| 15188 | |
| 15189 | # This must be glibc/ELF. |
| 15190 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 15191 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15192 | need_lib_prefix=no |
| 15193 | need_version=no |
| 15194 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 15195 | soname_spec='$libname$release$shared_ext$major' |
| 15196 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 15197 | shlibpath_var=LD_LIBRARY_PATH |
| 15198 | shlibpath_overrides_runpath=no |
| 15199 | |
| 15200 | # Some binutils ld are patched to set DT_RUNPATH |
| 15201 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
| 15202 | $as_echo_n "(cached) " >&6 |
| 15203 | else |
| 15204 | lt_cv_shlibpath_overrides_runpath=no |
| 15205 | save_LDFLAGS=$LDFLAGS |
| 15206 | save_libdir=$libdir |
| 15207 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
| 15208 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
| 15209 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15210 | /* end confdefs.h. */ |
| 15211 | |
| 15212 | int main (void) |
| 15213 | { |
| 15214 | |
| 15215 | ; |
| 15216 | return 0; |
| 15217 | } |
| 15218 | _ACEOF |
| 15219 | if ac_fn_c_try_link "$LINENO"; then : |
| 15220 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
| 15221 | lt_cv_shlibpath_overrides_runpath=yes |
| 15222 | fi |
| 15223 | fi |
| 15224 | rm -f core conftest.err conftest.$ac_objext \ |
| 15225 | conftest$ac_exeext conftest.$ac_ext |
| 15226 | LDFLAGS=$save_LDFLAGS |
| 15227 | libdir=$save_libdir |
| 15228 | |
| 15229 | fi |
| 15230 | |
| 15231 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
| 15232 | |
| 15233 | # This implies no fast_install, which is unacceptable. |
| 15234 | # Some rework will be needed to allow for fast_install |
| 15235 | # before this can be enabled. |
| 15236 | hardcode_into_libs=yes |
| 15237 | |
| 15238 | # Ideally, we could use ldconfig to report *all* directores which are |
| 15239 | # searched for libraries, however this is still not possible. Aside from not |
| 15240 | # being certain /sbin/ldconfig is available, command |
| 15241 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, |
| 15242 | # even though it is searched at run-time. Try to do the best guess by |
| 15243 | # appending ld.so.conf contents (and includes) to the search path. |
| 15244 | if test -f /etc/ld.so.conf; then |
| 15245 | 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' ' '` |
| 15246 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 15247 | fi |
| 15248 | |
| 15249 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 15250 | # powerpc, because MkLinux only supported shared libraries with the |
| 15251 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 15252 | # most powerpc-linux boxes support dynamic linking these days and |
| 15253 | # people can always --disable-shared, the test was removed, and we |
| 15254 | # assume the GNU/Linux dynamic linker is in use. |
| 15255 | dynamic_linker='GNU/Linux ld.so' |
| 15256 | ;; |
| 15257 | |
| 15258 | netbsdelf*-gnu) |
| 15259 | version_type=linux |
| 15260 | need_lib_prefix=no |
| 15261 | need_version=no |
| 15262 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15263 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15264 | shlibpath_var=LD_LIBRARY_PATH |
| 15265 | shlibpath_overrides_runpath=no |
| 15266 | hardcode_into_libs=yes |
| 15267 | dynamic_linker='NetBSD ld.elf_so' |
| 15268 | ;; |
| 15269 | |
| 15270 | netbsd*) |
| 15271 | version_type=sunos |
| 15272 | need_lib_prefix=no |
| 15273 | need_version=no |
| 15274 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 15275 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 15276 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 15277 | dynamic_linker='NetBSD (a.out) ld.so' |
| 15278 | else |
| 15279 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 15280 | soname_spec='$libname$release$shared_ext$major' |
| 15281 | dynamic_linker='NetBSD ld.elf_so' |
| 15282 | fi |
| 15283 | shlibpath_var=LD_LIBRARY_PATH |
| 15284 | shlibpath_overrides_runpath=yes |
| 15285 | hardcode_into_libs=yes |
| 15286 | ;; |
| 15287 | |
| 15288 | newsos6) |
| 15289 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15290 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 15291 | shlibpath_var=LD_LIBRARY_PATH |
| 15292 | shlibpath_overrides_runpath=yes |
| 15293 | ;; |
| 15294 | |
| 15295 | *nto* | *qnx*) |
| 15296 | version_type=qnx |
| 15297 | need_lib_prefix=no |
| 15298 | need_version=no |
| 15299 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 15300 | soname_spec='$libname$release$shared_ext$major' |
| 15301 | shlibpath_var=LD_LIBRARY_PATH |
| 15302 | shlibpath_overrides_runpath=no |
| 15303 | hardcode_into_libs=yes |
| 15304 | dynamic_linker='ldqnx.so' |
| 15305 | ;; |
| 15306 | |
| 15307 | openbsd* | bitrig*) |
| 15308 | version_type=sunos |
| 15309 | sys_lib_dlsearch_path_spec=/usr/lib |
| 15310 | need_lib_prefix=no |
| 15311 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
| 15312 | need_version=no |
| 15313 | else |
| 15314 | need_version=yes |
| 15315 | fi |
| 15316 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 15317 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 15318 | shlibpath_var=LD_LIBRARY_PATH |
| 15319 | shlibpath_overrides_runpath=yes |
| 15320 | ;; |
| 15321 | |
| 15322 | os2*) |
| 15323 | libname_spec='$name' |
| 15324 | version_type=windows |
| 15325 | shrext_cmds=.dll |
| 15326 | need_version=no |
| 15327 | need_lib_prefix=no |
| 15328 | # OS/2 can only load a DLL with a base name of 8 characters or less. |
| 15329 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; |
| 15330 | v=$($ECHO $release$versuffix | tr -d .-); |
| 15331 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); |
| 15332 | $ECHO $n$v`$shared_ext' |
| 15333 | library_names_spec='${libname}_dll.$libext' |
| 15334 | dynamic_linker='OS/2 ld.exe' |
| 15335 | shlibpath_var=BEGINLIBPATH |
| 15336 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 15337 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15338 | postinstall_cmds='base_file=`basename \$file`~ |
| 15339 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ |
| 15340 | dldir=$destdir/`dirname \$dlpath`~ |
| 15341 | test -d \$dldir || mkdir -p \$dldir~ |
| 15342 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 15343 | chmod a+x \$dldir/$dlname~ |
| 15344 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 15345 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 15346 | fi' |
| 15347 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ |
| 15348 | dlpath=$dir/\$dldll~ |
| 15349 | $RM \$dlpath' |
| 15350 | ;; |
| 15351 | |
| 15352 | osf3* | osf4* | osf5*) |
| 15353 | version_type=osf |
| 15354 | need_lib_prefix=no |
| 15355 | need_version=no |
| 15356 | soname_spec='$libname$release$shared_ext$major' |
| 15357 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 15358 | shlibpath_var=LD_LIBRARY_PATH |
| 15359 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 15360 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15361 | ;; |
| 15362 | |
| 15363 | rdos*) |
| 15364 | dynamic_linker=no |
| 15365 | ;; |
| 15366 | |
| 15367 | solaris*) |
| 15368 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15369 | need_lib_prefix=no |
| 15370 | need_version=no |
| 15371 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 15372 | soname_spec='$libname$release$shared_ext$major' |
| 15373 | shlibpath_var=LD_LIBRARY_PATH |
| 15374 | shlibpath_overrides_runpath=yes |
| 15375 | hardcode_into_libs=yes |
| 15376 | # ldd complains unless libraries are executable |
| 15377 | postinstall_cmds='chmod +x $lib' |
| 15378 | ;; |
| 15379 | |
| 15380 | sunos4*) |
| 15381 | version_type=sunos |
| 15382 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 15383 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 15384 | shlibpath_var=LD_LIBRARY_PATH |
| 15385 | shlibpath_overrides_runpath=yes |
| 15386 | if test yes = "$with_gnu_ld"; then |
| 15387 | need_lib_prefix=no |
| 15388 | fi |
| 15389 | need_version=yes |
| 15390 | ;; |
| 15391 | |
| 15392 | sysv4 | sysv4.3*) |
| 15393 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15394 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 15395 | soname_spec='$libname$release$shared_ext$major' |
| 15396 | shlibpath_var=LD_LIBRARY_PATH |
| 15397 | case $host_vendor in |
| 15398 | sni) |
| 15399 | shlibpath_overrides_runpath=no |
| 15400 | need_lib_prefix=no |
| 15401 | runpath_var=LD_RUN_PATH |
| 15402 | ;; |
| 15403 | siemens) |
| 15404 | need_lib_prefix=no |
| 15405 | ;; |
| 15406 | motorola) |
| 15407 | need_lib_prefix=no |
| 15408 | need_version=no |
| 15409 | shlibpath_overrides_runpath=no |
| 15410 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 15411 | ;; |
| 15412 | esac |
| 15413 | ;; |
| 15414 | |
| 15415 | sysv4*MP*) |
| 15416 | if test -d /usr/nec; then |
| 15417 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15418 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' |
| 15419 | soname_spec='$libname$shared_ext.$major' |
| 15420 | shlibpath_var=LD_LIBRARY_PATH |
| 15421 | fi |
| 15422 | ;; |
| 15423 | |
| 15424 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 15425 | version_type=sco |
| 15426 | need_lib_prefix=no |
| 15427 | need_version=no |
| 15428 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' |
| 15429 | soname_spec='$libname$release$shared_ext$major' |
| 15430 | shlibpath_var=LD_LIBRARY_PATH |
| 15431 | shlibpath_overrides_runpath=yes |
| 15432 | hardcode_into_libs=yes |
| 15433 | if test yes = "$with_gnu_ld"; then |
| 15434 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 15435 | else |
| 15436 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 15437 | case $host_os in |
| 15438 | sco3.2v5*) |
| 15439 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 15440 | ;; |
| 15441 | esac |
| 15442 | fi |
| 15443 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 15444 | ;; |
| 15445 | |
| 15446 | tpf*) |
| 15447 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 15448 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15449 | need_lib_prefix=no |
| 15450 | need_version=no |
| 15451 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 15452 | shlibpath_var=LD_LIBRARY_PATH |
| 15453 | shlibpath_overrides_runpath=no |
| 15454 | hardcode_into_libs=yes |
| 15455 | ;; |
| 15456 | |
| 15457 | uts4*) |
| 15458 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15459 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 15460 | soname_spec='$libname$release$shared_ext$major' |
| 15461 | shlibpath_var=LD_LIBRARY_PATH |
| 15462 | ;; |
| 15463 | |
| 15464 | *) |
| 15465 | dynamic_linker=no |
| 15466 | ;; |
| 15467 | esac |
| 15468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 15469 | $as_echo "$dynamic_linker" >&6; } |
| 15470 | test no = "$dynamic_linker" && can_build_shared=no |
| 15471 | |
| 15472 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 15473 | if test yes = "$GCC"; then |
| 15474 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 15475 | fi |
| 15476 | |
| 15477 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
| 15478 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec |
| 15479 | fi |
| 15480 | |
| 15481 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then |
| 15482 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec |
| 15483 | fi |
| 15484 | |
| 15485 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... |
| 15486 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec |
| 15487 | |
| 15488 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code |
| 15489 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" |
| 15490 | |
| 15491 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool |
| 15492 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH |
| 15493 | |
| 15494 | |
| 15495 | |
| 15496 | |
| 15497 | |
| 15498 | |
| 15499 | |
| 15500 | |
| 15501 | |
| 15502 | |
| 15503 | |
| 15504 | |
| 15505 | |
| 15506 | |
| 15507 | |
| 15508 | |
| 15509 | |
| 15510 | |
| 15511 | |
| 15512 | |
| 15513 | |
| 15514 | |
| 15515 | |
| 15516 | |
| 15517 | |
| 15518 | |
| 15519 | |
| 15520 | |
| 15521 | |
| 15522 | |
| 15523 | |
| 15524 | |
| 15525 | |
| 15526 | |
| 15527 | |
| 15528 | |
| 15529 | |
| 15530 | |
| 15531 | |
| 15532 | |
| 15533 | |
| 15534 | |
| 15535 | |
| 15536 | |
| 15537 | |
| 15538 | |
| 15539 | |
| 15540 | |
| 15541 | |
| 15542 | |
| 15543 | |
| 15544 | |
| 15545 | |
| 15546 | |
| 15547 | |
| 15548 | |
| 15549 | |
| 15550 | |
| 15551 | |
| 15552 | |
| 15553 | |
| 15554 | |
| 15555 | |
| 15556 | |
| 15557 | |
| 15558 | |
| 15559 | |
| 15560 | |
| 15561 | |
| 15562 | |
| 15563 | |
| 15564 | |
| 15565 | |
| 15566 | |
| 15567 | |
| 15568 | |
| 15569 | |
| 15570 | |
| 15571 | |
| 15572 | |
| 15573 | |
| 15574 | |
| 15575 | |
| 15576 | |
| 15577 | |
| 15578 | |
| 15579 | |
| 15580 | |
| 15581 | |
| 15582 | |
| 15583 | |
| 15584 | |
| 15585 | |
| 15586 | |
| 15587 | |
| 15588 | |
| 15589 | |
| 15590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| 15591 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
| 15592 | hardcode_action= |
| 15593 | if test -n "$hardcode_libdir_flag_spec" || |
| 15594 | test -n "$runpath_var" || |
| 15595 | test yes = "$hardcode_automatic"; then |
| 15596 | |
| 15597 | # We can hardcode non-existent directories. |
| 15598 | if test no != "$hardcode_direct" && |
| 15599 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 15600 | # have to relink, otherwise we might link with an installed library |
| 15601 | # when we should be linking with a yet-to-be-installed one |
| 15602 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && |
| 15603 | test no != "$hardcode_minus_L"; then |
| 15604 | # Linking always hardcodes the temporary library directory. |
| 15605 | hardcode_action=relink |
| 15606 | else |
| 15607 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 15608 | hardcode_action=immediate |
| 15609 | fi |
| 15610 | else |
| 15611 | # We cannot hardcode anything, or else we can only hardcode existing |
| 15612 | # directories. |
| 15613 | hardcode_action=unsupported |
| 15614 | fi |
| 15615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
| 15616 | $as_echo "$hardcode_action" >&6; } |
| 15617 | |
| 15618 | if test relink = "$hardcode_action" || |
| 15619 | test yes = "$inherit_rpath"; then |
| 15620 | # Fast installation is not supported |
| 15621 | enable_fast_install=no |
| 15622 | elif test yes = "$shlibpath_overrides_runpath" || |
| 15623 | test no = "$enable_shared"; then |
| 15624 | # Fast installation is not necessary |
| 15625 | enable_fast_install=needless |
| 15626 | fi |
| 15627 | |
| 15628 | |
| 15629 | |
| 15630 | |
| 15631 | |
| 15632 | |
| 15633 | if test yes != "$enable_dlopen"; then |
| 15634 | enable_dlopen=unknown |
| 15635 | enable_dlopen_self=unknown |
| 15636 | enable_dlopen_self_static=unknown |
| 15637 | else |
| 15638 | lt_cv_dlopen=no |
| 15639 | lt_cv_dlopen_libs= |
| 15640 | |
| 15641 | case $host_os in |
| 15642 | beos*) |
| 15643 | lt_cv_dlopen=load_add_on |
| 15644 | lt_cv_dlopen_libs= |
| 15645 | lt_cv_dlopen_self=yes |
| 15646 | ;; |
| 15647 | |
| 15648 | mingw* | pw32* | cegcc*) |
| 15649 | lt_cv_dlopen=LoadLibrary |
| 15650 | lt_cv_dlopen_libs= |
| 15651 | ;; |
| 15652 | |
| 15653 | cygwin*) |
| 15654 | lt_cv_dlopen=dlopen |
| 15655 | lt_cv_dlopen_libs= |
| 15656 | ;; |
| 15657 | |
| 15658 | darwin*) |
| 15659 | # if libdl is installed we need to link against it |
| 15660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 15661 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 15662 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
| 15663 | $as_echo_n "(cached) " >&6 |
| 15664 | else |
| 15665 | ac_check_lib_save_LIBS=$LIBS |
| 15666 | LIBS="-ldl $LIBS" |
| 15667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15668 | /* end confdefs.h. */ |
| 15669 | |
| 15670 | |
| 15671 | #ifdef __cplusplus |
| 15672 | extern "C" |
| 15673 | #endif |
| 15674 | char dlopen (); |
| 15675 | int main (void) |
| 15676 | { |
| 15677 | return dlopen (); |
| 15678 | ; |
| 15679 | return 0; |
| 15680 | } |
| 15681 | _ACEOF |
| 15682 | if ac_fn_c_try_link "$LINENO"; then : |
| 15683 | ac_cv_lib_dl_dlopen=yes |
| 15684 | else |
| 15685 | ac_cv_lib_dl_dlopen=no |
| 15686 | fi |
| 15687 | rm -f core conftest.err conftest.$ac_objext \ |
| 15688 | conftest$ac_exeext conftest.$ac_ext |
| 15689 | LIBS=$ac_check_lib_save_LIBS |
| 15690 | fi |
| 15691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 15692 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 15693 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
| 15694 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
| 15695 | else |
| 15696 | |
| 15697 | lt_cv_dlopen=dyld |
| 15698 | lt_cv_dlopen_libs= |
| 15699 | lt_cv_dlopen_self=yes |
| 15700 | |
| 15701 | fi |
| 15702 | |
| 15703 | ;; |
| 15704 | |
| 15705 | tpf*) |
| 15706 | # Don't try to run any link tests for TPF. We know it's impossible |
| 15707 | # because TPF is a cross-compiler, and we know how we open DSOs. |
| 15708 | lt_cv_dlopen=dlopen |
| 15709 | lt_cv_dlopen_libs= |
| 15710 | lt_cv_dlopen_self=no |
| 15711 | ;; |
| 15712 | |
| 15713 | *) |
| 15714 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
| 15715 | if test "x$ac_cv_func_shl_load" = xyes; then : |
| 15716 | lt_cv_dlopen=shl_load |
| 15717 | else |
| 15718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 15719 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
| 15720 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
| 15721 | $as_echo_n "(cached) " >&6 |
| 15722 | else |
| 15723 | ac_check_lib_save_LIBS=$LIBS |
| 15724 | LIBS="-ldld $LIBS" |
| 15725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15726 | /* end confdefs.h. */ |
| 15727 | |
| 15728 | |
| 15729 | #ifdef __cplusplus |
| 15730 | extern "C" |
| 15731 | #endif |
| 15732 | char shl_load (); |
| 15733 | int main (void) |
| 15734 | { |
| 15735 | return shl_load (); |
| 15736 | ; |
| 15737 | return 0; |
| 15738 | } |
| 15739 | _ACEOF |
| 15740 | if ac_fn_c_try_link "$LINENO"; then : |
| 15741 | ac_cv_lib_dld_shl_load=yes |
| 15742 | else |
| 15743 | ac_cv_lib_dld_shl_load=no |
| 15744 | fi |
| 15745 | rm -f core conftest.err conftest.$ac_objext \ |
| 15746 | conftest$ac_exeext conftest.$ac_ext |
| 15747 | LIBS=$ac_check_lib_save_LIBS |
| 15748 | fi |
| 15749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 15750 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
| 15751 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
| 15752 | lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld |
| 15753 | else |
| 15754 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
| 15755 | if test "x$ac_cv_func_dlopen" = xyes; then : |
| 15756 | lt_cv_dlopen=dlopen |
| 15757 | else |
| 15758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 15759 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 15760 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
| 15761 | $as_echo_n "(cached) " >&6 |
| 15762 | else |
| 15763 | ac_check_lib_save_LIBS=$LIBS |
| 15764 | LIBS="-ldl $LIBS" |
| 15765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15766 | /* end confdefs.h. */ |
| 15767 | |
| 15768 | |
| 15769 | #ifdef __cplusplus |
| 15770 | extern "C" |
| 15771 | #endif |
| 15772 | char dlopen (); |
| 15773 | int main (void) |
| 15774 | { |
| 15775 | return dlopen (); |
| 15776 | ; |
| 15777 | return 0; |
| 15778 | } |
| 15779 | _ACEOF |
| 15780 | if ac_fn_c_try_link "$LINENO"; then : |
| 15781 | ac_cv_lib_dl_dlopen=yes |
| 15782 | else |
| 15783 | ac_cv_lib_dl_dlopen=no |
| 15784 | fi |
| 15785 | rm -f core conftest.err conftest.$ac_objext \ |
| 15786 | conftest$ac_exeext conftest.$ac_ext |
| 15787 | LIBS=$ac_check_lib_save_LIBS |
| 15788 | fi |
| 15789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 15790 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 15791 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
| 15792 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
| 15793 | else |
| 15794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
| 15795 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
| 15796 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
| 15797 | $as_echo_n "(cached) " >&6 |
| 15798 | else |
| 15799 | ac_check_lib_save_LIBS=$LIBS |
| 15800 | LIBS="-lsvld $LIBS" |
| 15801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15802 | /* end confdefs.h. */ |
| 15803 | |
| 15804 | |
| 15805 | #ifdef __cplusplus |
| 15806 | extern "C" |
| 15807 | #endif |
| 15808 | char dlopen (); |
| 15809 | int main (void) |
| 15810 | { |
| 15811 | return dlopen (); |
| 15812 | ; |
| 15813 | return 0; |
| 15814 | } |
| 15815 | _ACEOF |
| 15816 | if ac_fn_c_try_link "$LINENO"; then : |
| 15817 | ac_cv_lib_svld_dlopen=yes |
| 15818 | else |
| 15819 | ac_cv_lib_svld_dlopen=no |
| 15820 | fi |
| 15821 | rm -f core conftest.err conftest.$ac_objext \ |
| 15822 | conftest$ac_exeext conftest.$ac_ext |
| 15823 | LIBS=$ac_check_lib_save_LIBS |
| 15824 | fi |
| 15825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
| 15826 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
| 15827 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
| 15828 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld |
| 15829 | else |
| 15830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
| 15831 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
| 15832 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
| 15833 | $as_echo_n "(cached) " >&6 |
| 15834 | else |
| 15835 | ac_check_lib_save_LIBS=$LIBS |
| 15836 | LIBS="-ldld $LIBS" |
| 15837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15838 | /* end confdefs.h. */ |
| 15839 | |
| 15840 | |
| 15841 | #ifdef __cplusplus |
| 15842 | extern "C" |
| 15843 | #endif |
| 15844 | char dld_link (); |
| 15845 | int main (void) |
| 15846 | { |
| 15847 | return dld_link (); |
| 15848 | ; |
| 15849 | return 0; |
| 15850 | } |
| 15851 | _ACEOF |
| 15852 | if ac_fn_c_try_link "$LINENO"; then : |
| 15853 | ac_cv_lib_dld_dld_link=yes |
| 15854 | else |
| 15855 | ac_cv_lib_dld_dld_link=no |
| 15856 | fi |
| 15857 | rm -f core conftest.err conftest.$ac_objext \ |
| 15858 | conftest$ac_exeext conftest.$ac_ext |
| 15859 | LIBS=$ac_check_lib_save_LIBS |
| 15860 | fi |
| 15861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
| 15862 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
| 15863 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
| 15864 | lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld |
| 15865 | fi |
| 15866 | |
| 15867 | |
| 15868 | fi |
| 15869 | |
| 15870 | |
| 15871 | fi |
| 15872 | |
| 15873 | |
| 15874 | fi |
| 15875 | |
| 15876 | |
| 15877 | fi |
| 15878 | |
| 15879 | |
| 15880 | fi |
| 15881 | |
| 15882 | ;; |
| 15883 | esac |
| 15884 | |
| 15885 | if test no = "$lt_cv_dlopen"; then |
| 15886 | enable_dlopen=no |
| 15887 | else |
| 15888 | enable_dlopen=yes |
| 15889 | fi |
| 15890 | |
| 15891 | case $lt_cv_dlopen in |
| 15892 | dlopen) |
| 15893 | save_CPPFLAGS=$CPPFLAGS |
| 15894 | test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 15895 | |
| 15896 | save_LDFLAGS=$LDFLAGS |
| 15897 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 15898 | |
| 15899 | save_LIBS=$LIBS |
| 15900 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 15901 | |
| 15902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
| 15903 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
| 15904 | if ${lt_cv_dlopen_self+:} false; then : |
| 15905 | $as_echo_n "(cached) " >&6 |
| 15906 | else |
| 15907 | if test yes = "$cross_compiling"; then : |
| 15908 | lt_cv_dlopen_self=cross |
| 15909 | else |
| 15910 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 15911 | lt_status=$lt_dlunknown |
| 15912 | cat > conftest.$ac_ext <<_LT_EOF |
| 15913 | #line $LINENO "configure" |
| 15914 | #include "confdefs.h" |
| 15915 | |
| 15916 | #if HAVE_DLFCN_H |
| 15917 | #include <dlfcn.h> |
| 15918 | #endif |
| 15919 | |
| 15920 | #include <stdio.h> |
| 15921 | |
| 15922 | #ifdef RTLD_GLOBAL |
| 15923 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 15924 | #else |
| 15925 | # ifdef DL_GLOBAL |
| 15926 | # define LT_DLGLOBAL DL_GLOBAL |
| 15927 | # else |
| 15928 | # define LT_DLGLOBAL 0 |
| 15929 | # endif |
| 15930 | #endif |
| 15931 | |
| 15932 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 15933 | find out it does not work in some platform. */ |
| 15934 | #ifndef LT_DLLAZY_OR_NOW |
| 15935 | # ifdef RTLD_LAZY |
| 15936 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 15937 | # else |
| 15938 | # ifdef DL_LAZY |
| 15939 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 15940 | # else |
| 15941 | # ifdef RTLD_NOW |
| 15942 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 15943 | # else |
| 15944 | # ifdef DL_NOW |
| 15945 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 15946 | # else |
| 15947 | # define LT_DLLAZY_OR_NOW 0 |
| 15948 | # endif |
| 15949 | # endif |
| 15950 | # endif |
| 15951 | # endif |
| 15952 | #endif |
| 15953 | |
| 15954 | /* When -fvisibility=hidden is used, assume the code has been annotated |
| 15955 | correspondingly for the symbols needed. */ |
| 15956 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 15957 | int fnord () __attribute__((visibility("default"))); |
| 15958 | #endif |
| 15959 | |
| 15960 | int fnord () { return 42; } |
| 15961 | int main () |
| 15962 | { |
| 15963 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 15964 | int status = $lt_dlunknown; |
| 15965 | |
| 15966 | if (self) |
| 15967 | { |
| 15968 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 15969 | else |
| 15970 | { |
| 15971 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 15972 | else puts (dlerror ()); |
| 15973 | } |
| 15974 | /* dlclose (self); */ |
| 15975 | } |
| 15976 | else |
| 15977 | puts (dlerror ()); |
| 15978 | |
| 15979 | return status; |
| 15980 | } |
| 15981 | _LT_EOF |
| 15982 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 15983 | (eval $ac_link) 2>&5 |
| 15984 | ac_status=$? |
| 15985 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15986 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
| 15987 | (./conftest; exit; ) >&5 2>/dev/null |
| 15988 | lt_status=$? |
| 15989 | case x$lt_status in |
| 15990 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 15991 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 15992 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
| 15993 | esac |
| 15994 | else : |
| 15995 | # compilation failed |
| 15996 | lt_cv_dlopen_self=no |
| 15997 | fi |
| 15998 | fi |
| 15999 | rm -fr conftest* |
| 16000 | |
| 16001 | |
| 16002 | fi |
| 16003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
| 16004 | $as_echo "$lt_cv_dlopen_self" >&6; } |
| 16005 | |
| 16006 | if test yes = "$lt_cv_dlopen_self"; then |
| 16007 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 16008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
| 16009 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
| 16010 | if ${lt_cv_dlopen_self_static+:} false; then : |
| 16011 | $as_echo_n "(cached) " >&6 |
| 16012 | else |
| 16013 | if test yes = "$cross_compiling"; then : |
| 16014 | lt_cv_dlopen_self_static=cross |
| 16015 | else |
| 16016 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 16017 | lt_status=$lt_dlunknown |
| 16018 | cat > conftest.$ac_ext <<_LT_EOF |
| 16019 | #line $LINENO "configure" |
| 16020 | #include "confdefs.h" |
| 16021 | |
| 16022 | #if HAVE_DLFCN_H |
| 16023 | #include <dlfcn.h> |
| 16024 | #endif |
| 16025 | |
| 16026 | #include <stdio.h> |
| 16027 | |
| 16028 | #ifdef RTLD_GLOBAL |
| 16029 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 16030 | #else |
| 16031 | # ifdef DL_GLOBAL |
| 16032 | # define LT_DLGLOBAL DL_GLOBAL |
| 16033 | # else |
| 16034 | # define LT_DLGLOBAL 0 |
| 16035 | # endif |
| 16036 | #endif |
| 16037 | |
| 16038 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 16039 | find out it does not work in some platform. */ |
| 16040 | #ifndef LT_DLLAZY_OR_NOW |
| 16041 | # ifdef RTLD_LAZY |
| 16042 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 16043 | # else |
| 16044 | # ifdef DL_LAZY |
| 16045 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 16046 | # else |
| 16047 | # ifdef RTLD_NOW |
| 16048 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 16049 | # else |
| 16050 | # ifdef DL_NOW |
| 16051 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 16052 | # else |
| 16053 | # define LT_DLLAZY_OR_NOW 0 |
| 16054 | # endif |
| 16055 | # endif |
| 16056 | # endif |
| 16057 | # endif |
| 16058 | #endif |
| 16059 | |
| 16060 | /* When -fvisibility=hidden is used, assume the code has been annotated |
| 16061 | correspondingly for the symbols needed. */ |
| 16062 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 16063 | int fnord () __attribute__((visibility("default"))); |
| 16064 | #endif |
| 16065 | |
| 16066 | int fnord () { return 42; } |
| 16067 | int main () |
| 16068 | { |
| 16069 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 16070 | int status = $lt_dlunknown; |
| 16071 | |
| 16072 | if (self) |
| 16073 | { |
| 16074 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 16075 | else |
| 16076 | { |
| 16077 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 16078 | else puts (dlerror ()); |
| 16079 | } |
| 16080 | /* dlclose (self); */ |
| 16081 | } |
| 16082 | else |
| 16083 | puts (dlerror ()); |
| 16084 | |
| 16085 | return status; |
| 16086 | } |
| 16087 | _LT_EOF |
| 16088 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 16089 | (eval $ac_link) 2>&5 |
| 16090 | ac_status=$? |
| 16091 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16092 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
| 16093 | (./conftest; exit; ) >&5 2>/dev/null |
| 16094 | lt_status=$? |
| 16095 | case x$lt_status in |
| 16096 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 16097 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 16098 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
| 16099 | esac |
| 16100 | else : |
| 16101 | # compilation failed |
| 16102 | lt_cv_dlopen_self_static=no |
| 16103 | fi |
| 16104 | fi |
| 16105 | rm -fr conftest* |
| 16106 | |
| 16107 | |
| 16108 | fi |
| 16109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
| 16110 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
| 16111 | fi |
| 16112 | |
| 16113 | CPPFLAGS=$save_CPPFLAGS |
| 16114 | LDFLAGS=$save_LDFLAGS |
| 16115 | LIBS=$save_LIBS |
| 16116 | ;; |
| 16117 | esac |
| 16118 | |
| 16119 | case $lt_cv_dlopen_self in |
| 16120 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 16121 | *) enable_dlopen_self=unknown ;; |
| 16122 | esac |
| 16123 | |
| 16124 | case $lt_cv_dlopen_self_static in |
| 16125 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 16126 | *) enable_dlopen_self_static=unknown ;; |
| 16127 | esac |
| 16128 | fi |
| 16129 | |
| 16130 | |
| 16131 | |
| 16132 | |
| 16133 | |
| 16134 | |
| 16135 | |
| 16136 | |
| 16137 | |
| 16138 | |
| 16139 | |
| 16140 | |
| 16141 | |
| 16142 | |
| 16143 | |
| 16144 | |
| 16145 | |
| 16146 | striplib= |
| 16147 | old_striplib= |
| 16148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
| 16149 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
| 16150 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 16151 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 16152 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 16153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16154 | $as_echo "yes" >&6; } |
| 16155 | else |
| 16156 | # FIXME - insert some real tests, host_os isn't really good enough |
| 16157 | case $host_os in |
| 16158 | darwin*) |
| 16159 | if test -n "$STRIP"; then |
| 16160 | striplib="$STRIP -x" |
| 16161 | old_striplib="$STRIP -S" |
| 16162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16163 | $as_echo "yes" >&6; } |
| 16164 | else |
| 16165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16166 | $as_echo "no" >&6; } |
| 16167 | fi |
| 16168 | ;; |
| 16169 | *) |
| 16170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16171 | $as_echo "no" >&6; } |
| 16172 | ;; |
| 16173 | esac |
| 16174 | fi |
| 16175 | |
| 16176 | |
| 16177 | |
| 16178 | |
| 16179 | |
| 16180 | |
| 16181 | |
| 16182 | |
| 16183 | |
| 16184 | |
| 16185 | |
| 16186 | |
| 16187 | # Report what library types will actually be built |
| 16188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
| 16189 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
| 16190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
| 16191 | $as_echo "$can_build_shared" >&6; } |
| 16192 | |
| 16193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
| 16194 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
| 16195 | test no = "$can_build_shared" && enable_shared=no |
| 16196 | |
| 16197 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 16198 | # are all built from PIC. |
| 16199 | case $host_os in |
| 16200 | aix3*) |
| 16201 | test yes = "$enable_shared" && enable_static=no |
| 16202 | if test -n "$RANLIB"; then |
| 16203 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 16204 | postinstall_cmds='$RANLIB $lib' |
| 16205 | fi |
| 16206 | ;; |
| 16207 | |
| 16208 | aix[4-9]*) |
| 16209 | if test ia64 != "$host_cpu"; then |
| 16210 | case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in |
| 16211 | yes,aix,yes) ;; # shared object as lib.so file only |
| 16212 | yes,svr4,*) ;; # shared object as lib.so archive member only |
| 16213 | yes,*) enable_static=no ;; # shared object in lib.a archive as well |
| 16214 | esac |
| 16215 | fi |
| 16216 | ;; |
| 16217 | esac |
| 16218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
| 16219 | $as_echo "$enable_shared" >&6; } |
| 16220 | |
| 16221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
| 16222 | $as_echo_n "checking whether to build static libraries... " >&6; } |
| 16223 | # Make sure either enable_shared or enable_static is yes. |
| 16224 | test yes = "$enable_shared" || enable_static=yes |
| 16225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
| 16226 | $as_echo "$enable_static" >&6; } |
| 16227 | |
| 16228 | |
| 16229 | |
| 16230 | |
| 16231 | fi |
| 16232 | ac_ext=c |
| 16233 | ac_cpp='$CPP $CPPFLAGS' |
| 16234 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16235 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16236 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 16237 | |
| 16238 | CC=$lt_save_CC |
| 16239 | |
| 16240 | |
| 16241 | |
| 16242 | |
| 16243 | |
| 16244 | |
| 16245 | |
| 16246 | |
| 16247 | |
| 16248 | |
| 16249 | |
| 16250 | |
| 16251 | |
| 16252 | |
| 16253 | |
| 16254 | ac_config_commands="$ac_config_commands libtool" |
| 16255 | |
| 16256 | |
| 16257 | |
| 16258 | |
| 16259 | # Only expand once: |
| 16260 | |
| 16261 | |
| 16262 | ## --------------------- ## |
| 16263 | ## End of libtool code ## |
| 16264 | ## --------------------- ## |
| 16265 | |
| 16266 | # |
| 16267 | # Verify if finally libtool shared libraries will be built |
| 16268 | # |
| 16269 | |
| 16270 | case "x$enable_shared" in # (( |
| 16271 | xyes | xno) |
| 16272 | xc_lt_build_shared=$enable_shared |
| 16273 | ;; |
| 16274 | *) |
| 16275 | as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5 |
| 16276 | ;; |
| 16277 | esac |
| 16278 | |
| 16279 | # |
| 16280 | # Verify if finally libtool static libraries will be built |
| 16281 | # |
| 16282 | |
| 16283 | case "x$enable_static" in # (( |
| 16284 | xyes | xno) |
| 16285 | xc_lt_build_static=$enable_static |
| 16286 | ;; |
| 16287 | *) |
| 16288 | as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5 |
| 16289 | ;; |
| 16290 | esac |
| 16291 | |
| 16292 | # |
| 16293 | # Verify if libtool shared libraries should be linked using flag -version-info |
| 16294 | # |
| 16295 | |
| 16296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5 |
| 16297 | $as_echo_n "checking whether to build shared libraries with -version-info... " >&6; } |
| 16298 | xc_lt_shlib_use_version_info='yes' |
| 16299 | if test "x$version_type" = 'xnone'; then |
| 16300 | xc_lt_shlib_use_version_info='no' |
| 16301 | fi |
| 16302 | case $host_os in # ( |
| 16303 | amigaos*) |
| 16304 | xc_lt_shlib_use_version_info='yes' |
| 16305 | ;; |
| 16306 | esac |
| 16307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5 |
| 16308 | $as_echo "$xc_lt_shlib_use_version_info" >&6; } |
| 16309 | |
| 16310 | # |
| 16311 | # Verify if libtool shared libraries should be linked using flag -no-undefined |
| 16312 | # |
| 16313 | |
| 16314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5 |
| 16315 | $as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; } |
| 16316 | xc_lt_shlib_use_no_undefined='no' |
| 16317 | if test "x$allow_undefined" = 'xno'; then |
| 16318 | xc_lt_shlib_use_no_undefined='yes' |
| 16319 | elif test "x$allow_undefined_flag" = 'xunsupported'; then |
| 16320 | xc_lt_shlib_use_no_undefined='yes' |
| 16321 | fi |
| 16322 | case $host_os in # ( |
| 16323 | cygwin* | mingw* | pw32* | cegcc* | os2* | aix*) |
| 16324 | xc_lt_shlib_use_no_undefined='yes' |
| 16325 | ;; |
| 16326 | esac |
| 16327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5 |
| 16328 | $as_echo "$xc_lt_shlib_use_no_undefined" >&6; } |
| 16329 | |
| 16330 | # |
| 16331 | # Verify if libtool shared libraries should be linked using flag -mimpure-text |
| 16332 | # |
| 16333 | |
| 16334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5 |
| 16335 | $as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; } |
| 16336 | xc_lt_shlib_use_mimpure_text='no' |
| 16337 | case $host_os in # ( |
| 16338 | solaris2*) |
| 16339 | if test "x$GCC" = 'xyes'; then |
| 16340 | xc_lt_shlib_use_mimpure_text='yes' |
| 16341 | fi |
| 16342 | ;; |
| 16343 | esac |
| 16344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5 |
| 16345 | $as_echo "$xc_lt_shlib_use_mimpure_text" >&6; } |
| 16346 | |
| 16347 | # |
| 16348 | # Find out whether libtool libraries would be built wit PIC |
| 16349 | # |
| 16350 | |
| 16351 | case "x$pic_mode" in # (((( |
| 16352 | xdefault) |
| 16353 | xc_lt_build_shared_with_pic='yes' |
| 16354 | xc_lt_build_static_with_pic='no' |
| 16355 | ;; |
| 16356 | xyes) |
| 16357 | xc_lt_build_shared_with_pic='yes' |
| 16358 | xc_lt_build_static_with_pic='yes' |
| 16359 | ;; |
| 16360 | xno) |
| 16361 | xc_lt_build_shared_with_pic='no' |
| 16362 | xc_lt_build_static_with_pic='no' |
| 16363 | ;; |
| 16364 | *) |
| 16365 | xc_lt_build_shared_with_pic='unknown' |
| 16366 | xc_lt_build_static_with_pic='unknown' |
| 16367 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5 |
| 16368 | $as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;} |
| 16369 | ;; |
| 16370 | esac |
| 16371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5 |
| 16372 | $as_echo_n "checking whether to build shared libraries with PIC... " >&6; } |
| 16373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5 |
| 16374 | $as_echo "$xc_lt_build_shared_with_pic" >&6; } |
| 16375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5 |
| 16376 | $as_echo_n "checking whether to build static libraries with PIC... " >&6; } |
| 16377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5 |
| 16378 | $as_echo "$xc_lt_build_static_with_pic" >&6; } |
| 16379 | |
| 16380 | # |
| 16381 | # Verify if libtool shared libraries will be built while static not built |
| 16382 | # |
| 16383 | |
| 16384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5 |
| 16385 | $as_echo_n "checking whether to build shared libraries only... " >&6; } |
| 16386 | if test "$xc_lt_build_shared" = 'yes' && |
| 16387 | test "$xc_lt_build_static" = 'no'; then |
| 16388 | xc_lt_build_shared_only='yes' |
| 16389 | else |
| 16390 | xc_lt_build_shared_only='no' |
| 16391 | fi |
| 16392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5 |
| 16393 | $as_echo "$xc_lt_build_shared_only" >&6; } |
| 16394 | |
| 16395 | # |
| 16396 | # Verify if libtool static libraries will be built while shared not built |
| 16397 | # |
| 16398 | |
| 16399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5 |
| 16400 | $as_echo_n "checking whether to build static libraries only... " >&6; } |
| 16401 | if test "$xc_lt_build_static" = 'yes' && |
| 16402 | test "$xc_lt_build_shared" = 'no'; then |
| 16403 | xc_lt_build_static_only='yes' |
| 16404 | else |
| 16405 | xc_lt_build_static_only='no' |
| 16406 | fi |
| 16407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5 |
| 16408 | $as_echo "$xc_lt_build_static_only" >&6; } |
| 16409 | |
| 16410 | |
| 16411 | |
| 16412 | |
| 16413 | # |
| 16414 | # Automake conditionals based on libtool related checks |
| 16415 | # |
| 16416 | |
| 16417 | if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then |
| 16418 | CURL_LT_SHLIB_USE_VERSION_INFO_TRUE= |
| 16419 | CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#' |
| 16420 | else |
| 16421 | CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#' |
| 16422 | CURL_LT_SHLIB_USE_VERSION_INFO_FALSE= |
| 16423 | fi |
| 16424 | |
| 16425 | if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then |
| 16426 | CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE= |
| 16427 | CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#' |
| 16428 | else |
| 16429 | CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#' |
| 16430 | CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE= |
| 16431 | fi |
| 16432 | |
| 16433 | if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then |
| 16434 | CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE= |
| 16435 | CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#' |
| 16436 | else |
| 16437 | CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#' |
| 16438 | CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE= |
| 16439 | fi |
| 16440 | |
| 16441 | |
| 16442 | # |
| 16443 | # Due to libtool and automake machinery limitations of not allowing |
| 16444 | # specifying separate CPPFLAGS or CFLAGS when compiling objects for |
| 16445 | # inclusion of these in shared or static libraries, we are forced to |
| 16446 | # build using separate configure runs for shared and static libraries |
| 16447 | # on systems where different CPPFLAGS or CFLAGS are mandatory in order |
| 16448 | # to compile objects for each kind of library. Notice that relying on |
| 16449 | # the '-DPIC' CFLAG that libtool provides is not valid given that the |
| 16450 | # user might for example choose to build static libraries with PIC. |
| 16451 | # |
| 16452 | |
| 16453 | # |
| 16454 | # Make our Makefile.am files use the staticlib CPPFLAG only when strictly |
| 16455 | # targeting a static library and not building its shared counterpart. |
| 16456 | # |
| 16457 | |
| 16458 | if test "x$xc_lt_build_static_only" = 'xyes'; then |
| 16459 | USE_CPPFLAG_CURL_STATICLIB_TRUE= |
| 16460 | USE_CPPFLAG_CURL_STATICLIB_FALSE='#' |
| 16461 | else |
| 16462 | USE_CPPFLAG_CURL_STATICLIB_TRUE='#' |
| 16463 | USE_CPPFLAG_CURL_STATICLIB_FALSE= |
| 16464 | fi |
| 16465 | |
| 16466 | |
| 16467 | # |
| 16468 | # Make staticlib CPPFLAG variable and its definition visible in output |
| 16469 | # files unconditionally, providing an empty definition unless strictly |
| 16470 | # targeting a static library and not building its shared counterpart. |
| 16471 | # |
| 16472 | |
| 16473 | CPPFLAG_CURL_STATICLIB= |
| 16474 | if test "x$xc_lt_build_static_only" = 'xyes'; then |
| 16475 | CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB' |
| 16476 | fi |
| 16477 | |
| 16478 | |
| 16479 | |
| 16480 | # Determine whether all dependent libraries must be specified when linking |
| 16481 | if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno" |
| 16482 | then |
| 16483 | REQUIRE_LIB_DEPS=no |
| 16484 | else |
| 16485 | REQUIRE_LIB_DEPS=yes |
| 16486 | fi |
| 16487 | |
| 16488 | if test x$REQUIRE_LIB_DEPS = xyes; then |
| 16489 | USE_EXPLICIT_LIB_DEPS_TRUE= |
| 16490 | USE_EXPLICIT_LIB_DEPS_FALSE='#' |
| 16491 | else |
| 16492 | USE_EXPLICIT_LIB_DEPS_TRUE='#' |
| 16493 | USE_EXPLICIT_LIB_DEPS_FALSE= |
| 16494 | fi |
| 16495 | |
| 16496 | |
| 16497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
| 16498 | $as_echo_n "checking for inline... " >&6; } |
| 16499 | if ${ac_cv_c_inline+:} false; then : |
| 16500 | $as_echo_n "(cached) " >&6 |
| 16501 | else |
| 16502 | ac_cv_c_inline=no |
| 16503 | for ac_kw in inline __inline__ __inline; do |
| 16504 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16505 | /* end confdefs.h. */ |
| 16506 | #ifndef __cplusplus |
| 16507 | typedef int foo_t; |
| 16508 | static $ac_kw foo_t static_foo () {return 0; } |
| 16509 | $ac_kw foo_t foo () {return 0; } |
| 16510 | #endif |
| 16511 | |
| 16512 | _ACEOF |
| 16513 | if ac_fn_c_try_compile "$LINENO"; then : |
| 16514 | ac_cv_c_inline=$ac_kw |
| 16515 | fi |
| 16516 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16517 | test "$ac_cv_c_inline" != no && break |
| 16518 | done |
| 16519 | |
| 16520 | fi |
| 16521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
| 16522 | $as_echo "$ac_cv_c_inline" >&6; } |
| 16523 | |
| 16524 | case $ac_cv_c_inline in |
| 16525 | inline | yes) ;; |
| 16526 | *) |
| 16527 | case $ac_cv_c_inline in |
| 16528 | no) ac_val=;; |
| 16529 | *) ac_val=$ac_cv_c_inline;; |
| 16530 | esac |
| 16531 | cat >>confdefs.h <<_ACEOF |
| 16532 | #ifndef __cplusplus |
| 16533 | #define inline $ac_val |
| 16534 | #endif |
| 16535 | _ACEOF |
| 16536 | ;; |
| 16537 | esac |
| 16538 | |
| 16539 | |
| 16540 | |
| 16541 | |
| 16542 | # |
| 16543 | compiler_id="unknown" |
| 16544 | compiler_num="0" |
| 16545 | # |
| 16546 | flags_dbg_all="unknown" |
| 16547 | flags_dbg_yes="unknown" |
| 16548 | flags_dbg_off="unknown" |
| 16549 | flags_opt_all="unknown" |
| 16550 | flags_opt_yes="unknown" |
| 16551 | flags_opt_off="unknown" |
| 16552 | # |
| 16553 | flags_prefer_cppflags="no" |
| 16554 | # |
| 16555 | |
| 16556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5 |
| 16557 | $as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; } |
| 16558 | |
| 16559 | OLDCPPFLAGS=$CPPFLAGS |
| 16560 | # CPPPFLAG comes from CURL_CPP_P |
| 16561 | CPPFLAGS="$CPPFLAGS $CPPPFLAG" |
| 16562 | if test -z "$SED"; then |
| 16563 | as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 |
| 16564 | fi |
| 16565 | if test -z "$GREP"; then |
| 16566 | as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 |
| 16567 | fi |
| 16568 | |
| 16569 | tmp_exp="" |
| 16570 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16571 | /* end confdefs.h. */ |
| 16572 | |
| 16573 | |
| 16574 | #ifdef __DECC |
| 16575 | CURL_DEF_TOKEN __DECC |
| 16576 | #endif |
| 16577 | |
| 16578 | |
| 16579 | _ACEOF |
| 16580 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 16581 | |
| 16582 | tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ |
| 16583 | "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ |
| 16584 | "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ |
| 16585 | "$SED" 's/["][ ]*["]//g' 2>/dev/null` |
| 16586 | if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then |
| 16587 | tmp_exp="" |
| 16588 | fi |
| 16589 | |
| 16590 | fi |
| 16591 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 16592 | if test -z "$tmp_exp"; then |
| 16593 | curl_cv_have_def___DECC=no |
| 16594 | |
| 16595 | else |
| 16596 | curl_cv_have_def___DECC=yes |
| 16597 | curl_cv_def___DECC=$tmp_exp |
| 16598 | |
| 16599 | fi |
| 16600 | CPPFLAGS=$OLDCPPFLAGS |
| 16601 | |
| 16602 | |
| 16603 | OLDCPPFLAGS=$CPPFLAGS |
| 16604 | # CPPPFLAG comes from CURL_CPP_P |
| 16605 | CPPFLAGS="$CPPFLAGS $CPPPFLAG" |
| 16606 | if test -z "$SED"; then |
| 16607 | as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 |
| 16608 | fi |
| 16609 | if test -z "$GREP"; then |
| 16610 | as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 |
| 16611 | fi |
| 16612 | |
| 16613 | tmp_exp="" |
| 16614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16615 | /* end confdefs.h. */ |
| 16616 | |
| 16617 | |
| 16618 | #ifdef __DECC_VER |
| 16619 | CURL_DEF_TOKEN __DECC_VER |
| 16620 | #endif |
| 16621 | |
| 16622 | |
| 16623 | _ACEOF |
| 16624 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 16625 | |
| 16626 | tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ |
| 16627 | "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ |
| 16628 | "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ |
| 16629 | "$SED" 's/["][ ]*["]//g' 2>/dev/null` |
| 16630 | if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then |
| 16631 | tmp_exp="" |
| 16632 | fi |
| 16633 | |
| 16634 | fi |
| 16635 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 16636 | if test -z "$tmp_exp"; then |
| 16637 | curl_cv_have_def___DECC_VER=no |
| 16638 | |
| 16639 | else |
| 16640 | curl_cv_have_def___DECC_VER=yes |
| 16641 | curl_cv_def___DECC_VER=$tmp_exp |
| 16642 | |
| 16643 | fi |
| 16644 | CPPFLAGS=$OLDCPPFLAGS |
| 16645 | |
| 16646 | if test "$curl_cv_have_def___DECC" = "yes" && |
| 16647 | test "$curl_cv_have_def___DECC_VER" = "yes"; then |
| 16648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16649 | $as_echo "yes" >&6; } |
| 16650 | compiler_id="DEC_C" |
| 16651 | flags_dbg_all="-g -g0 -g1 -g2 -g3" |
| 16652 | flags_dbg_yes="-g2" |
| 16653 | flags_dbg_off="" |
| 16654 | flags_opt_all="-O -O0 -O1 -O2 -O3 -O4" |
| 16655 | flags_opt_yes="-O1" |
| 16656 | flags_opt_off="-O0" |
| 16657 | else |
| 16658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16659 | $as_echo "no" >&6; } |
| 16660 | fi |
| 16661 | |
| 16662 | |
| 16663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5 |
| 16664 | $as_echo_n "checking if compiler is HP-UX C... " >&6; } |
| 16665 | |
| 16666 | OLDCPPFLAGS=$CPPFLAGS |
| 16667 | # CPPPFLAG comes from CURL_CPP_P |
| 16668 | CPPFLAGS="$CPPFLAGS $CPPPFLAG" |
| 16669 | if test -z "$SED"; then |
| 16670 | as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 |
| 16671 | fi |
| 16672 | if test -z "$GREP"; then |
| 16673 | as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 |
| 16674 | fi |
| 16675 | |
| 16676 | tmp_exp="" |
| 16677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16678 | /* end confdefs.h. */ |
| 16679 | |
| 16680 | |
| 16681 | #ifdef __HP_cc |
| 16682 | CURL_DEF_TOKEN __HP_cc |
| 16683 | #endif |
| 16684 | |
| 16685 | |
| 16686 | _ACEOF |
| 16687 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 16688 | |
| 16689 | tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ |
| 16690 | "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ |
| 16691 | "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ |
| 16692 | "$SED" 's/["][ ]*["]//g' 2>/dev/null` |
| 16693 | if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then |
| 16694 | tmp_exp="" |
| 16695 | fi |
| 16696 | |
| 16697 | fi |
| 16698 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 16699 | if test -z "$tmp_exp"; then |
| 16700 | curl_cv_have_def___HP_cc=no |
| 16701 | |
| 16702 | else |
| 16703 | curl_cv_have_def___HP_cc=yes |
| 16704 | curl_cv_def___HP_cc=$tmp_exp |
| 16705 | |
| 16706 | fi |
| 16707 | CPPFLAGS=$OLDCPPFLAGS |
| 16708 | |
| 16709 | if test "$curl_cv_have_def___HP_cc" = "yes"; then |
| 16710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16711 | $as_echo "yes" >&6; } |
| 16712 | compiler_id="HP_UX_C" |
| 16713 | flags_dbg_all="-g -s" |
| 16714 | flags_dbg_yes="-g" |
| 16715 | flags_dbg_off="-s" |
| 16716 | flags_opt_all="-O +O0 +O1 +O2 +O3 +O4" |
| 16717 | flags_opt_yes="+O2" |
| 16718 | flags_opt_off="+O0" |
| 16719 | else |
| 16720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16721 | $as_echo "no" >&6; } |
| 16722 | fi |
| 16723 | |
| 16724 | |
| 16725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5 |
| 16726 | $as_echo_n "checking if compiler is IBM C... " >&6; } |
| 16727 | |
| 16728 | OLDCPPFLAGS=$CPPFLAGS |
| 16729 | # CPPPFLAG comes from CURL_CPP_P |
| 16730 | CPPFLAGS="$CPPFLAGS $CPPPFLAG" |
| 16731 | if test -z "$SED"; then |
| 16732 | as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 |
| 16733 | fi |
| 16734 | if test -z "$GREP"; then |
| 16735 | as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 |
| 16736 | fi |
| 16737 | |
| 16738 | tmp_exp="" |
| 16739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16740 | /* end confdefs.h. */ |
| 16741 | |
| 16742 | |
| 16743 | #ifdef __IBMC__ |
| 16744 | CURL_DEF_TOKEN __IBMC__ |
| 16745 | #endif |
| 16746 | |
| 16747 | |
| 16748 | _ACEOF |
| 16749 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 16750 | |
| 16751 | tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ |
| 16752 | "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ |
| 16753 | "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ |
| 16754 | "$SED" 's/["][ ]*["]//g' 2>/dev/null` |
| 16755 | if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then |
| 16756 | tmp_exp="" |
| 16757 | fi |
| 16758 | |
| 16759 | fi |
| 16760 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 16761 | if test -z "$tmp_exp"; then |
| 16762 | curl_cv_have_def___IBMC__=no |
| 16763 | |
| 16764 | else |
| 16765 | curl_cv_have_def___IBMC__=yes |
| 16766 | curl_cv_def___IBMC__=$tmp_exp |
| 16767 | |
| 16768 | fi |
| 16769 | CPPFLAGS=$OLDCPPFLAGS |
| 16770 | |
| 16771 | if test "$curl_cv_have_def___IBMC__" = "yes"; then |
| 16772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16773 | $as_echo "yes" >&6; } |
| 16774 | compiler_id="IBM_C" |
| 16775 | flags_dbg_all="-g -g0 -g1 -g2 -g3" |
| 16776 | flags_dbg_yes="-g" |
| 16777 | flags_dbg_off="" |
| 16778 | flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5" |
| 16779 | flags_opt_all="$flags_opt_all -qnooptimize" |
| 16780 | flags_opt_all="$flags_opt_all -qoptimize=0" |
| 16781 | flags_opt_all="$flags_opt_all -qoptimize=1" |
| 16782 | flags_opt_all="$flags_opt_all -qoptimize=2" |
| 16783 | flags_opt_all="$flags_opt_all -qoptimize=3" |
| 16784 | flags_opt_all="$flags_opt_all -qoptimize=4" |
| 16785 | flags_opt_all="$flags_opt_all -qoptimize=5" |
| 16786 | flags_opt_yes="-O2" |
| 16787 | flags_opt_off="-qnooptimize" |
| 16788 | flags_prefer_cppflags="yes" |
| 16789 | else |
| 16790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16791 | $as_echo "no" >&6; } |
| 16792 | fi |
| 16793 | |
| 16794 | |
| 16795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5 |
| 16796 | $as_echo_n "checking if compiler is Intel C... " >&6; } |
| 16797 | |
| 16798 | OLDCPPFLAGS=$CPPFLAGS |
| 16799 | # CPPPFLAG comes from CURL_CPP_P |
| 16800 | CPPFLAGS="$CPPFLAGS $CPPPFLAG" |
| 16801 | if test -z "$SED"; then |
| 16802 | as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 |
| 16803 | fi |
| 16804 | if test -z "$GREP"; then |
| 16805 | as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 |
| 16806 | fi |
| 16807 | |
| 16808 | tmp_exp="" |
| 16809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16810 | /* end confdefs.h. */ |
| 16811 | |
| 16812 | |
| 16813 | #ifdef __INTEL_COMPILER |
| 16814 | CURL_DEF_TOKEN __INTEL_COMPILER |
| 16815 | #endif |
| 16816 | |
| 16817 | |
| 16818 | _ACEOF |
| 16819 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 16820 | |
| 16821 | tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ |
| 16822 | "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ |
| 16823 | "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ |
| 16824 | "$SED" 's/["][ ]*["]//g' 2>/dev/null` |
| 16825 | if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then |
| 16826 | tmp_exp="" |
| 16827 | fi |
| 16828 | |
| 16829 | fi |
| 16830 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 16831 | if test -z "$tmp_exp"; then |
| 16832 | curl_cv_have_def___INTEL_COMPILER=no |
| 16833 | |
| 16834 | else |
| 16835 | curl_cv_have_def___INTEL_COMPILER=yes |
| 16836 | curl_cv_def___INTEL_COMPILER=$tmp_exp |
| 16837 | |
| 16838 | fi |
| 16839 | CPPFLAGS=$OLDCPPFLAGS |
| 16840 | |
| 16841 | if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then |
| 16842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16843 | $as_echo "yes" >&6; } |
| 16844 | compiler_num="$curl_cv_def___INTEL_COMPILER" |
| 16845 | |
| 16846 | OLDCPPFLAGS=$CPPFLAGS |
| 16847 | # CPPPFLAG comes from CURL_CPP_P |
| 16848 | CPPFLAGS="$CPPFLAGS $CPPPFLAG" |
| 16849 | if test -z "$SED"; then |
| 16850 | as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 |
| 16851 | fi |
| 16852 | if test -z "$GREP"; then |
| 16853 | as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 |
| 16854 | fi |
| 16855 | |
| 16856 | tmp_exp="" |
| 16857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16858 | /* end confdefs.h. */ |
| 16859 | |
| 16860 | |
| 16861 | #ifdef __unix__ |
| 16862 | CURL_DEF_TOKEN __unix__ |
| 16863 | #endif |
| 16864 | |
| 16865 | |
| 16866 | _ACEOF |
| 16867 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 16868 | |
| 16869 | tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ |
| 16870 | "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ |
| 16871 | "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ |
| 16872 | "$SED" 's/["][ ]*["]//g' 2>/dev/null` |
| 16873 | if test -z "$tmp_exp" || test "$tmp_exp" = ""; then |
| 16874 | tmp_exp="" |
| 16875 | fi |
| 16876 | |
| 16877 | fi |
| 16878 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 16879 | if test -z "$tmp_exp"; then |
| 16880 | curl_cv_have_def___unix__=no |
| 16881 | |
| 16882 | else |
| 16883 | curl_cv_have_def___unix__=yes |
| 16884 | curl_cv_def___unix__=$tmp_exp |
| 16885 | |
| 16886 | fi |
| 16887 | CPPFLAGS=$OLDCPPFLAGS |
| 16888 | |
| 16889 | if test "$curl_cv_have_def___unix__" = "yes"; then |
| 16890 | compiler_id="INTEL_UNIX_C" |
| 16891 | flags_dbg_all="-g -g0" |
| 16892 | flags_dbg_yes="-g" |
| 16893 | flags_dbg_off="" |
| 16894 | flags_opt_all="-O -O0 -O1 -O2 -O3 -Os" |
| 16895 | flags_opt_yes="-O2" |
| 16896 | flags_opt_off="-O0" |
| 16897 | else |
| 16898 | compiler_id="INTEL_WINDOWS_C" |
| 16899 | flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-" |
| 16900 | flags_dbg_all="$flags_dbg_all /debug" |
| 16901 | flags_dbg_all="$flags_dbg_all /debug:none" |
| 16902 | flags_dbg_all="$flags_dbg_all /debug:minimal" |
| 16903 | flags_dbg_all="$flags_dbg_all /debug:partial" |
| 16904 | flags_dbg_all="$flags_dbg_all /debug:full" |
| 16905 | flags_dbg_all="$flags_dbg_all /debug:semantic_stepping" |
| 16906 | flags_dbg_all="$flags_dbg_all /debug:extended" |
| 16907 | flags_dbg_yes="/Zi /Oy-" |
| 16908 | flags_dbg_off="/debug:none /Oy-" |
| 16909 | flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-" |
| 16910 | flags_opt_yes="/O2" |
| 16911 | flags_opt_off="/Od" |
| 16912 | fi |
| 16913 | else |
| 16914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16915 | $as_echo "no" >&6; } |
| 16916 | fi |
| 16917 | |
| 16918 | |
| 16919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5 |
| 16920 | $as_echo_n "checking if compiler is clang... " >&6; } |
| 16921 | |
| 16922 | OLDCPPFLAGS=$CPPFLAGS |
| 16923 | # CPPPFLAG comes from CURL_CPP_P |
| 16924 | CPPFLAGS="$CPPFLAGS $CPPPFLAG" |
| 16925 | if test -z "$SED"; then |
| 16926 | as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 |
| 16927 | fi |
| 16928 | if test -z "$GREP"; then |
| 16929 | as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 |
| 16930 | fi |
| 16931 | |
| 16932 | tmp_exp="" |
| 16933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16934 | /* end confdefs.h. */ |
| 16935 | |
| 16936 | |
| 16937 | #ifdef __clang__ |
| 16938 | CURL_DEF_TOKEN __clang__ |
| 16939 | #endif |
| 16940 | |
| 16941 | |
| 16942 | _ACEOF |
| 16943 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 16944 | |
| 16945 | tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ |
| 16946 | "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ |
| 16947 | "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ |
| 16948 | "$SED" 's/["][ ]*["]//g' 2>/dev/null` |
| 16949 | if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then |
| 16950 | tmp_exp="" |
| 16951 | fi |
| 16952 | |
| 16953 | fi |
| 16954 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 16955 | if test -z "$tmp_exp"; then |
| 16956 | curl_cv_have_def___clang__=no |
| 16957 | |
| 16958 | else |
| 16959 | curl_cv_have_def___clang__=yes |
| 16960 | curl_cv_def___clang__=$tmp_exp |
| 16961 | |
| 16962 | fi |
| 16963 | CPPFLAGS=$OLDCPPFLAGS |
| 16964 | |
| 16965 | if test "$curl_cv_have_def___clang__" = "yes"; then |
| 16966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16967 | $as_echo "yes" >&6; } |
| 16968 | compiler_id="CLANG" |
| 16969 | clangver=`$CC -v 2>&1 | grep version | "$SED" 's/.*version \([0-9]*\.[0-9]*\).*/\1/'` |
| 16970 | clangvhi=`echo $clangver | cut -d . -f1` |
| 16971 | clangvlo=`echo $clangver | cut -d . -f2` |
| 16972 | compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null` |
| 16973 | flags_dbg_all="-g -g0 -g1 -g2 -g3" |
| 16974 | flags_dbg_all="$flags_dbg_all -ggdb" |
| 16975 | flags_dbg_all="$flags_dbg_all -gstabs" |
| 16976 | flags_dbg_all="$flags_dbg_all -gstabs+" |
| 16977 | flags_dbg_all="$flags_dbg_all -gcoff" |
| 16978 | flags_dbg_all="$flags_dbg_all -gxcoff" |
| 16979 | flags_dbg_all="$flags_dbg_all -gdwarf-2" |
| 16980 | flags_dbg_all="$flags_dbg_all -gvms" |
| 16981 | flags_dbg_yes="-g" |
| 16982 | flags_dbg_off="" |
| 16983 | flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4" |
| 16984 | flags_opt_yes="-Os" |
| 16985 | flags_opt_off="-O0" |
| 16986 | else |
| 16987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16988 | $as_echo "no" >&6; } |
| 16989 | fi |
| 16990 | |
| 16991 | |
| 16992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5 |
| 16993 | $as_echo_n "checking if compiler is GNU C... " >&6; } |
| 16994 | |
| 16995 | OLDCPPFLAGS=$CPPFLAGS |
| 16996 | # CPPPFLAG comes from CURL_CPP_P |
| 16997 | CPPFLAGS="$CPPFLAGS $CPPPFLAG" |
| 16998 | if test -z "$SED"; then |
| 16999 | as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 |
| 17000 | fi |
| 17001 | if test -z "$GREP"; then |
| 17002 | as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 |
| 17003 | fi |
| 17004 | |
| 17005 | tmp_exp="" |
| 17006 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17007 | /* end confdefs.h. */ |
| 17008 | |
| 17009 | |
| 17010 | #ifdef __GNUC__ |
| 17011 | CURL_DEF_TOKEN __GNUC__ |
| 17012 | #endif |
| 17013 | |
| 17014 | |
| 17015 | _ACEOF |
| 17016 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 17017 | |
| 17018 | tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ |
| 17019 | "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ |
| 17020 | "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ |
| 17021 | "$SED" 's/["][ ]*["]//g' 2>/dev/null` |
| 17022 | if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then |
| 17023 | tmp_exp="" |
| 17024 | fi |
| 17025 | |
| 17026 | fi |
| 17027 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 17028 | if test -z "$tmp_exp"; then |
| 17029 | curl_cv_have_def___GNUC__=no |
| 17030 | |
| 17031 | else |
| 17032 | curl_cv_have_def___GNUC__=yes |
| 17033 | curl_cv_def___GNUC__=$tmp_exp |
| 17034 | |
| 17035 | fi |
| 17036 | CPPFLAGS=$OLDCPPFLAGS |
| 17037 | |
| 17038 | if test "$curl_cv_have_def___GNUC__" = "yes" && |
| 17039 | test "$compiler_id" = "unknown"; then |
| 17040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17041 | $as_echo "yes" >&6; } |
| 17042 | compiler_id="GNU_C" |
| 17043 | gccver=`$CC -dumpversion` |
| 17044 | gccvhi=`echo $gccver | cut -d . -f1` |
| 17045 | gccvlo=`echo $gccver | cut -d . -f2` |
| 17046 | compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null` |
| 17047 | flags_dbg_all="-g -g0 -g1 -g2 -g3" |
| 17048 | flags_dbg_all="$flags_dbg_all -ggdb" |
| 17049 | flags_dbg_all="$flags_dbg_all -gstabs" |
| 17050 | flags_dbg_all="$flags_dbg_all -gstabs+" |
| 17051 | flags_dbg_all="$flags_dbg_all -gcoff" |
| 17052 | flags_dbg_all="$flags_dbg_all -gxcoff" |
| 17053 | flags_dbg_all="$flags_dbg_all -gdwarf-2" |
| 17054 | flags_dbg_all="$flags_dbg_all -gvms" |
| 17055 | flags_dbg_yes="-g" |
| 17056 | flags_dbg_off="" |
| 17057 | flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast" |
| 17058 | flags_opt_yes="-O2" |
| 17059 | flags_opt_off="-O0" |
| 17060 | |
| 17061 | OLDCPPFLAGS=$CPPFLAGS |
| 17062 | # CPPPFLAG comes from CURL_CPP_P |
| 17063 | CPPFLAGS="$CPPFLAGS $CPPPFLAG" |
| 17064 | if test -z "$SED"; then |
| 17065 | as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 |
| 17066 | fi |
| 17067 | if test -z "$GREP"; then |
| 17068 | as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 |
| 17069 | fi |
| 17070 | |
| 17071 | tmp_exp="" |
| 17072 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17073 | /* end confdefs.h. */ |
| 17074 | |
| 17075 | |
| 17076 | #ifdef _WIN32 |
| 17077 | CURL_DEF_TOKEN _WIN32 |
| 17078 | #endif |
| 17079 | |
| 17080 | |
| 17081 | _ACEOF |
| 17082 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 17083 | |
| 17084 | tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ |
| 17085 | "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ |
| 17086 | "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ |
| 17087 | "$SED" 's/["][ ]*["]//g' 2>/dev/null` |
| 17088 | if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then |
| 17089 | tmp_exp="" |
| 17090 | fi |
| 17091 | |
| 17092 | fi |
| 17093 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 17094 | if test -z "$tmp_exp"; then |
| 17095 | curl_cv_have_def__WIN32=no |
| 17096 | |
| 17097 | else |
| 17098 | curl_cv_have_def__WIN32=yes |
| 17099 | curl_cv_def__WIN32=$tmp_exp |
| 17100 | |
| 17101 | fi |
| 17102 | CPPFLAGS=$OLDCPPFLAGS |
| 17103 | |
| 17104 | else |
| 17105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17106 | $as_echo "no" >&6; } |
| 17107 | fi |
| 17108 | |
| 17109 | |
| 17110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5 |
| 17111 | $as_echo_n "checking if compiler is LCC... " >&6; } |
| 17112 | |
| 17113 | OLDCPPFLAGS=$CPPFLAGS |
| 17114 | # CPPPFLAG comes from CURL_CPP_P |
| 17115 | CPPFLAGS="$CPPFLAGS $CPPPFLAG" |
| 17116 | if test -z "$SED"; then |
| 17117 | as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 |
| 17118 | fi |
| 17119 | if test -z "$GREP"; then |
| 17120 | as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 |
| 17121 | fi |
| 17122 | |
| 17123 | tmp_exp="" |
| 17124 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17125 | /* end confdefs.h. */ |
| 17126 | |
| 17127 | |
| 17128 | #ifdef __LCC__ |
| 17129 | CURL_DEF_TOKEN __LCC__ |
| 17130 | #endif |
| 17131 | |
| 17132 | |
| 17133 | _ACEOF |
| 17134 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 17135 | |
| 17136 | tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ |
| 17137 | "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ |
| 17138 | "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ |
| 17139 | "$SED" 's/["][ ]*["]//g' 2>/dev/null` |
| 17140 | if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then |
| 17141 | tmp_exp="" |
| 17142 | fi |
| 17143 | |
| 17144 | fi |
| 17145 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 17146 | if test -z "$tmp_exp"; then |
| 17147 | curl_cv_have_def___LCC__=no |
| 17148 | |
| 17149 | else |
| 17150 | curl_cv_have_def___LCC__=yes |
| 17151 | curl_cv_def___LCC__=$tmp_exp |
| 17152 | |
| 17153 | fi |
| 17154 | CPPFLAGS=$OLDCPPFLAGS |
| 17155 | |
| 17156 | if test "$curl_cv_have_def___LCC__" = "yes"; then |
| 17157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17158 | $as_echo "yes" >&6; } |
| 17159 | compiler_id="LCC" |
| 17160 | flags_dbg_all="-g" |
| 17161 | flags_dbg_yes="-g" |
| 17162 | flags_dbg_off="" |
| 17163 | flags_opt_all="" |
| 17164 | flags_opt_yes="" |
| 17165 | flags_opt_off="" |
| 17166 | else |
| 17167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17168 | $as_echo "no" >&6; } |
| 17169 | fi |
| 17170 | |
| 17171 | |
| 17172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5 |
| 17173 | $as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; } |
| 17174 | |
| 17175 | OLDCPPFLAGS=$CPPFLAGS |
| 17176 | # CPPPFLAG comes from CURL_CPP_P |
| 17177 | CPPFLAGS="$CPPFLAGS $CPPPFLAG" |
| 17178 | if test -z "$SED"; then |
| 17179 | as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 |
| 17180 | fi |
| 17181 | if test -z "$GREP"; then |
| 17182 | as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 |
| 17183 | fi |
| 17184 | |
| 17185 | tmp_exp="" |
| 17186 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17187 | /* end confdefs.h. */ |
| 17188 | |
| 17189 | |
| 17190 | #ifdef __GNUC__ |
| 17191 | CURL_DEF_TOKEN __GNUC__ |
| 17192 | #endif |
| 17193 | |
| 17194 | |
| 17195 | _ACEOF |
| 17196 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 17197 | |
| 17198 | tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ |
| 17199 | "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ |
| 17200 | "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ |
| 17201 | "$SED" 's/["][ ]*["]//g' 2>/dev/null` |
| 17202 | if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then |
| 17203 | tmp_exp="" |
| 17204 | fi |
| 17205 | |
| 17206 | fi |
| 17207 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 17208 | if test -z "$tmp_exp"; then |
| 17209 | curl_cv_have_def___GNUC__=no |
| 17210 | |
| 17211 | else |
| 17212 | curl_cv_have_def___GNUC__=yes |
| 17213 | curl_cv_def___GNUC__=$tmp_exp |
| 17214 | |
| 17215 | fi |
| 17216 | CPPFLAGS=$OLDCPPFLAGS |
| 17217 | |
| 17218 | |
| 17219 | OLDCPPFLAGS=$CPPFLAGS |
| 17220 | # CPPPFLAG comes from CURL_CPP_P |
| 17221 | CPPFLAGS="$CPPFLAGS $CPPPFLAG" |
| 17222 | if test -z "$SED"; then |
| 17223 | as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 |
| 17224 | fi |
| 17225 | if test -z "$GREP"; then |
| 17226 | as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 |
| 17227 | fi |
| 17228 | |
| 17229 | tmp_exp="" |
| 17230 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17231 | /* end confdefs.h. */ |
| 17232 | |
| 17233 | |
| 17234 | #ifdef _COMPILER_VERSION |
| 17235 | CURL_DEF_TOKEN _COMPILER_VERSION |
| 17236 | #endif |
| 17237 | |
| 17238 | |
| 17239 | _ACEOF |
| 17240 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 17241 | |
| 17242 | tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ |
| 17243 | "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ |
| 17244 | "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ |
| 17245 | "$SED" 's/["][ ]*["]//g' 2>/dev/null` |
| 17246 | if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then |
| 17247 | tmp_exp="" |
| 17248 | fi |
| 17249 | |
| 17250 | fi |
| 17251 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 17252 | if test -z "$tmp_exp"; then |
| 17253 | curl_cv_have_def__COMPILER_VERSION=no |
| 17254 | |
| 17255 | else |
| 17256 | curl_cv_have_def__COMPILER_VERSION=yes |
| 17257 | curl_cv_def__COMPILER_VERSION=$tmp_exp |
| 17258 | |
| 17259 | fi |
| 17260 | CPPFLAGS=$OLDCPPFLAGS |
| 17261 | |
| 17262 | |
| 17263 | OLDCPPFLAGS=$CPPFLAGS |
| 17264 | # CPPPFLAG comes from CURL_CPP_P |
| 17265 | CPPFLAGS="$CPPFLAGS $CPPPFLAG" |
| 17266 | if test -z "$SED"; then |
| 17267 | as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 |
| 17268 | fi |
| 17269 | if test -z "$GREP"; then |
| 17270 | as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 |
| 17271 | fi |
| 17272 | |
| 17273 | tmp_exp="" |
| 17274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17275 | /* end confdefs.h. */ |
| 17276 | |
| 17277 | |
| 17278 | #ifdef _SGI_COMPILER_VERSION |
| 17279 | CURL_DEF_TOKEN _SGI_COMPILER_VERSION |
| 17280 | #endif |
| 17281 | |
| 17282 | |
| 17283 | _ACEOF |
| 17284 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 17285 | |
| 17286 | tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ |
| 17287 | "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ |
| 17288 | "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ |
| 17289 | "$SED" 's/["][ ]*["]//g' 2>/dev/null` |
| 17290 | if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then |
| 17291 | tmp_exp="" |
| 17292 | fi |
| 17293 | |
| 17294 | fi |
| 17295 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 17296 | if test -z "$tmp_exp"; then |
| 17297 | curl_cv_have_def__SGI_COMPILER_VERSION=no |
| 17298 | |
| 17299 | else |
| 17300 | curl_cv_have_def__SGI_COMPILER_VERSION=yes |
| 17301 | curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp |
| 17302 | |
| 17303 | fi |
| 17304 | CPPFLAGS=$OLDCPPFLAGS |
| 17305 | |
| 17306 | if test "$curl_cv_have_def___GNUC__" = "no" && |
| 17307 | (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" || |
| 17308 | test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then |
| 17309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17310 | $as_echo "yes" >&6; } |
| 17311 | compiler_id="SGI_MIPSPRO_C" |
| 17312 | flags_dbg_all="-g -g0 -g1 -g2 -g3" |
| 17313 | flags_dbg_yes="-g" |
| 17314 | flags_dbg_off="" |
| 17315 | flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast" |
| 17316 | flags_opt_yes="-O2" |
| 17317 | flags_opt_off="-O0" |
| 17318 | else |
| 17319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17320 | $as_echo "no" >&6; } |
| 17321 | fi |
| 17322 | |
| 17323 | |
| 17324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5 |
| 17325 | $as_echo_n "checking if compiler is SGI MIPS C... " >&6; } |
| 17326 | |
| 17327 | OLDCPPFLAGS=$CPPFLAGS |
| 17328 | # CPPPFLAG comes from CURL_CPP_P |
| 17329 | CPPFLAGS="$CPPFLAGS $CPPPFLAG" |
| 17330 | if test -z "$SED"; then |
| 17331 | as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 |
| 17332 | fi |
| 17333 | if test -z "$GREP"; then |
| 17334 | as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 |
| 17335 | fi |
| 17336 | |
| 17337 | tmp_exp="" |
| 17338 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17339 | /* end confdefs.h. */ |
| 17340 | |
| 17341 | |
| 17342 | #ifdef __GNUC__ |
| 17343 | CURL_DEF_TOKEN __GNUC__ |
| 17344 | #endif |
| 17345 | |
| 17346 | |
| 17347 | _ACEOF |
| 17348 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 17349 | |
| 17350 | tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ |
| 17351 | "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ |
| 17352 | "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ |
| 17353 | "$SED" 's/["][ ]*["]//g' 2>/dev/null` |
| 17354 | if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then |
| 17355 | tmp_exp="" |
| 17356 | fi |
| 17357 | |
| 17358 | fi |
| 17359 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 17360 | if test -z "$tmp_exp"; then |
| 17361 | curl_cv_have_def___GNUC__=no |
| 17362 | |
| 17363 | else |
| 17364 | curl_cv_have_def___GNUC__=yes |
| 17365 | curl_cv_def___GNUC__=$tmp_exp |
| 17366 | |
| 17367 | fi |
| 17368 | CPPFLAGS=$OLDCPPFLAGS |
| 17369 | |
| 17370 | |
| 17371 | OLDCPPFLAGS=$CPPFLAGS |
| 17372 | # CPPPFLAG comes from CURL_CPP_P |
| 17373 | CPPFLAGS="$CPPFLAGS $CPPPFLAG" |
| 17374 | if test -z "$SED"; then |
| 17375 | as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 |
| 17376 | fi |
| 17377 | if test -z "$GREP"; then |
| 17378 | as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 |
| 17379 | fi |
| 17380 | |
| 17381 | tmp_exp="" |
| 17382 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17383 | /* end confdefs.h. */ |
| 17384 | |
| 17385 | |
| 17386 | #ifdef __sgi |
| 17387 | CURL_DEF_TOKEN __sgi |
| 17388 | #endif |
| 17389 | |
| 17390 | |
| 17391 | _ACEOF |
| 17392 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 17393 | |
| 17394 | tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ |
| 17395 | "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ |
| 17396 | "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ |
| 17397 | "$SED" 's/["][ ]*["]//g' 2>/dev/null` |
| 17398 | if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then |
| 17399 | tmp_exp="" |
| 17400 | fi |
| 17401 | |
| 17402 | fi |
| 17403 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 17404 | if test -z "$tmp_exp"; then |
| 17405 | curl_cv_have_def___sgi=no |
| 17406 | |
| 17407 | else |
| 17408 | curl_cv_have_def___sgi=yes |
| 17409 | curl_cv_def___sgi=$tmp_exp |
| 17410 | |
| 17411 | fi |
| 17412 | CPPFLAGS=$OLDCPPFLAGS |
| 17413 | |
| 17414 | if test "$curl_cv_have_def___GNUC__" = "no" && |
| 17415 | test "$curl_cv_have_def___sgi" = "yes" && |
| 17416 | test "$compiler_id" = "unknown"; then |
| 17417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17418 | $as_echo "yes" >&6; } |
| 17419 | compiler_id="SGI_MIPS_C" |
| 17420 | flags_dbg_all="-g -g0 -g1 -g2 -g3" |
| 17421 | flags_dbg_yes="-g" |
| 17422 | flags_dbg_off="" |
| 17423 | flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast" |
| 17424 | flags_opt_yes="-O2" |
| 17425 | flags_opt_off="-O0" |
| 17426 | else |
| 17427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17428 | $as_echo "no" >&6; } |
| 17429 | fi |
| 17430 | |
| 17431 | |
| 17432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5 |
| 17433 | $as_echo_n "checking if compiler is SunPro C... " >&6; } |
| 17434 | |
| 17435 | OLDCPPFLAGS=$CPPFLAGS |
| 17436 | # CPPPFLAG comes from CURL_CPP_P |
| 17437 | CPPFLAGS="$CPPFLAGS $CPPPFLAG" |
| 17438 | if test -z "$SED"; then |
| 17439 | as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 |
| 17440 | fi |
| 17441 | if test -z "$GREP"; then |
| 17442 | as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 |
| 17443 | fi |
| 17444 | |
| 17445 | tmp_exp="" |
| 17446 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17447 | /* end confdefs.h. */ |
| 17448 | |
| 17449 | |
| 17450 | #ifdef __SUNPRO_C |
| 17451 | CURL_DEF_TOKEN __SUNPRO_C |
| 17452 | #endif |
| 17453 | |
| 17454 | |
| 17455 | _ACEOF |
| 17456 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 17457 | |
| 17458 | tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ |
| 17459 | "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ |
| 17460 | "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ |
| 17461 | "$SED" 's/["][ ]*["]//g' 2>/dev/null` |
| 17462 | if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then |
| 17463 | tmp_exp="" |
| 17464 | fi |
| 17465 | |
| 17466 | fi |
| 17467 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 17468 | if test -z "$tmp_exp"; then |
| 17469 | curl_cv_have_def___SUNPRO_C=no |
| 17470 | |
| 17471 | else |
| 17472 | curl_cv_have_def___SUNPRO_C=yes |
| 17473 | curl_cv_def___SUNPRO_C=$tmp_exp |
| 17474 | |
| 17475 | fi |
| 17476 | CPPFLAGS=$OLDCPPFLAGS |
| 17477 | |
| 17478 | if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then |
| 17479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17480 | $as_echo "yes" >&6; } |
| 17481 | compiler_id="SUNPRO_C" |
| 17482 | flags_dbg_all="-g -s" |
| 17483 | flags_dbg_yes="-g" |
| 17484 | flags_dbg_off="-s" |
| 17485 | flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5" |
| 17486 | flags_opt_yes="-xO2" |
| 17487 | flags_opt_off="" |
| 17488 | else |
| 17489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17490 | $as_echo "no" >&6; } |
| 17491 | fi |
| 17492 | |
| 17493 | |
| 17494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5 |
| 17495 | $as_echo_n "checking if compiler is Tiny C... " >&6; } |
| 17496 | |
| 17497 | OLDCPPFLAGS=$CPPFLAGS |
| 17498 | # CPPPFLAG comes from CURL_CPP_P |
| 17499 | CPPFLAGS="$CPPFLAGS $CPPPFLAG" |
| 17500 | if test -z "$SED"; then |
| 17501 | as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 |
| 17502 | fi |
| 17503 | if test -z "$GREP"; then |
| 17504 | as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 |
| 17505 | fi |
| 17506 | |
| 17507 | tmp_exp="" |
| 17508 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17509 | /* end confdefs.h. */ |
| 17510 | |
| 17511 | |
| 17512 | #ifdef __TINYC__ |
| 17513 | CURL_DEF_TOKEN __TINYC__ |
| 17514 | #endif |
| 17515 | |
| 17516 | |
| 17517 | _ACEOF |
| 17518 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 17519 | |
| 17520 | tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ |
| 17521 | "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ |
| 17522 | "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ |
| 17523 | "$SED" 's/["][ ]*["]//g' 2>/dev/null` |
| 17524 | if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then |
| 17525 | tmp_exp="" |
| 17526 | fi |
| 17527 | |
| 17528 | fi |
| 17529 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 17530 | if test -z "$tmp_exp"; then |
| 17531 | curl_cv_have_def___TINYC__=no |
| 17532 | |
| 17533 | else |
| 17534 | curl_cv_have_def___TINYC__=yes |
| 17535 | curl_cv_def___TINYC__=$tmp_exp |
| 17536 | |
| 17537 | fi |
| 17538 | CPPFLAGS=$OLDCPPFLAGS |
| 17539 | |
| 17540 | if test "$curl_cv_have_def___TINYC__" = "yes"; then |
| 17541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17542 | $as_echo "yes" >&6; } |
| 17543 | compiler_id="TINY_C" |
| 17544 | flags_dbg_all="-g -b" |
| 17545 | flags_dbg_yes="-g" |
| 17546 | flags_dbg_off="" |
| 17547 | flags_opt_all="" |
| 17548 | flags_opt_yes="" |
| 17549 | flags_opt_off="" |
| 17550 | else |
| 17551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17552 | $as_echo "no" >&6; } |
| 17553 | fi |
| 17554 | |
| 17555 | |
| 17556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5 |
| 17557 | $as_echo_n "checking if compiler is Watcom C... " >&6; } |
| 17558 | |
| 17559 | OLDCPPFLAGS=$CPPFLAGS |
| 17560 | # CPPPFLAG comes from CURL_CPP_P |
| 17561 | CPPFLAGS="$CPPFLAGS $CPPPFLAG" |
| 17562 | if test -z "$SED"; then |
| 17563 | as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 |
| 17564 | fi |
| 17565 | if test -z "$GREP"; then |
| 17566 | as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 |
| 17567 | fi |
| 17568 | |
| 17569 | tmp_exp="" |
| 17570 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17571 | /* end confdefs.h. */ |
| 17572 | |
| 17573 | |
| 17574 | #ifdef __WATCOMC__ |
| 17575 | CURL_DEF_TOKEN __WATCOMC__ |
| 17576 | #endif |
| 17577 | |
| 17578 | |
| 17579 | _ACEOF |
| 17580 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 17581 | |
| 17582 | tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ |
| 17583 | "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ |
| 17584 | "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ |
| 17585 | "$SED" 's/["][ ]*["]//g' 2>/dev/null` |
| 17586 | if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then |
| 17587 | tmp_exp="" |
| 17588 | fi |
| 17589 | |
| 17590 | fi |
| 17591 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 17592 | if test -z "$tmp_exp"; then |
| 17593 | curl_cv_have_def___WATCOMC__=no |
| 17594 | |
| 17595 | else |
| 17596 | curl_cv_have_def___WATCOMC__=yes |
| 17597 | curl_cv_def___WATCOMC__=$tmp_exp |
| 17598 | |
| 17599 | fi |
| 17600 | CPPFLAGS=$OLDCPPFLAGS |
| 17601 | |
| 17602 | if test "$curl_cv_have_def___WATCOMC__" = "yes"; then |
| 17603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17604 | $as_echo "yes" >&6; } |
| 17605 | |
| 17606 | OLDCPPFLAGS=$CPPFLAGS |
| 17607 | # CPPPFLAG comes from CURL_CPP_P |
| 17608 | CPPFLAGS="$CPPFLAGS $CPPPFLAG" |
| 17609 | if test -z "$SED"; then |
| 17610 | as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 |
| 17611 | fi |
| 17612 | if test -z "$GREP"; then |
| 17613 | as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 |
| 17614 | fi |
| 17615 | |
| 17616 | tmp_exp="" |
| 17617 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17618 | /* end confdefs.h. */ |
| 17619 | |
| 17620 | |
| 17621 | #ifdef __UNIX__ |
| 17622 | CURL_DEF_TOKEN __UNIX__ |
| 17623 | #endif |
| 17624 | |
| 17625 | |
| 17626 | _ACEOF |
| 17627 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 17628 | |
| 17629 | tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ |
| 17630 | "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ |
| 17631 | "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ |
| 17632 | "$SED" 's/["][ ]*["]//g' 2>/dev/null` |
| 17633 | if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then |
| 17634 | tmp_exp="" |
| 17635 | fi |
| 17636 | |
| 17637 | fi |
| 17638 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 17639 | if test -z "$tmp_exp"; then |
| 17640 | curl_cv_have_def___UNIX__=no |
| 17641 | |
| 17642 | else |
| 17643 | curl_cv_have_def___UNIX__=yes |
| 17644 | curl_cv_def___UNIX__=$tmp_exp |
| 17645 | |
| 17646 | fi |
| 17647 | CPPFLAGS=$OLDCPPFLAGS |
| 17648 | |
| 17649 | if test "$curl_cv_have_def___UNIX__" = "yes"; then |
| 17650 | compiler_id="WATCOM_UNIX_C" |
| 17651 | flags_dbg_all="-g1 -g1+ -g2 -g3" |
| 17652 | flags_dbg_yes="-g2" |
| 17653 | flags_dbg_off="" |
| 17654 | flags_opt_all="-O0 -O1 -O2 -O3" |
| 17655 | flags_opt_yes="-O2" |
| 17656 | flags_opt_off="-O0" |
| 17657 | else |
| 17658 | compiler_id="WATCOM_WINDOWS_C" |
| 17659 | flags_dbg_all="" |
| 17660 | flags_dbg_yes="" |
| 17661 | flags_dbg_off="" |
| 17662 | flags_opt_all="" |
| 17663 | flags_opt_yes="" |
| 17664 | flags_opt_off="" |
| 17665 | fi |
| 17666 | else |
| 17667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17668 | $as_echo "no" >&6; } |
| 17669 | fi |
| 17670 | |
| 17671 | # |
| 17672 | if test "$compiler_id" = "unknown"; then |
| 17673 | cat <<_EOF 1>&2 |
| 17674 | *** |
| 17675 | *** Warning: This configure script does not have information about the |
| 17676 | *** compiler you are using, relative to the flags required to enable or |
| 17677 | *** disable generation of debug info, optimization options or warnings. |
| 17678 | *** |
| 17679 | *** Whatever settings are present in CFLAGS will be used for this run. |
| 17680 | *** |
| 17681 | *** If you wish to help the curl project to better support your compiler |
| 17682 | *** you can report this and the required info on the libcurl development |
| 17683 | *** mailing list: https://cool.haxx.se/mailman/listinfo/curl-library/ |
| 17684 | *** |
| 17685 | _EOF |
| 17686 | fi |
| 17687 | |
| 17688 | |
| 17689 | squeeze() { |
| 17690 | _sqz_result="" |
| 17691 | eval _sqz_input=\$$1 |
| 17692 | for _sqz_token in $_sqz_input; do |
| 17693 | if test -z "$_sqz_result"; then |
| 17694 | _sqz_result="$_sqz_token" |
| 17695 | else |
| 17696 | _sqz_result="$_sqz_result $_sqz_token" |
| 17697 | fi |
| 17698 | done |
| 17699 | eval $1=\$_sqz_result |
| 17700 | return 0 |
| 17701 | } |
| 17702 | |
| 17703 | |
| 17704 | # |
| 17705 | if test "$compiler_id" != "unknown"; then |
| 17706 | # |
| 17707 | if test "$compiler_id" = "GNU_C" || |
| 17708 | test "$compiler_id" = "CLANG"; then |
| 17709 | |
| 17710 | if test "$compiler_id" = "GNU_C" || |
| 17711 | test "$compiler_id" = "CLANG"; then |
| 17712 | tmp_has_include="no" |
| 17713 | tmp_chg_FLAGS="$CFLAGS" |
| 17714 | for word1 in $tmp_chg_FLAGS; do |
| 17715 | case "$word1" in |
| 17716 | -I*) |
| 17717 | tmp_has_include="yes" |
| 17718 | ;; |
| 17719 | esac |
| 17720 | done |
| 17721 | if test "$tmp_has_include" = "yes"; then |
| 17722 | tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'` |
| 17723 | tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'` |
| 17724 | CFLAGS="$tmp_chg_FLAGS" |
| 17725 | squeeze CFLAGS |
| 17726 | fi |
| 17727 | tmp_has_include="no" |
| 17728 | tmp_chg_FLAGS="$CPPFLAGS" |
| 17729 | for word1 in $tmp_chg_FLAGS; do |
| 17730 | case "$word1" in |
| 17731 | -I*) |
| 17732 | tmp_has_include="yes" |
| 17733 | ;; |
| 17734 | esac |
| 17735 | done |
| 17736 | if test "$tmp_has_include" = "yes"; then |
| 17737 | tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'` |
| 17738 | tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'` |
| 17739 | CPPFLAGS="$tmp_chg_FLAGS" |
| 17740 | squeeze CPPFLAGS |
| 17741 | fi |
| 17742 | fi |
| 17743 | |
| 17744 | fi |
| 17745 | # |
| 17746 | tmp_save_CPPFLAGS="$CPPFLAGS" |
| 17747 | tmp_save_CFLAGS="$CFLAGS" |
| 17748 | tmp_CPPFLAGS="" |
| 17749 | tmp_CFLAGS="" |
| 17750 | # |
| 17751 | case "$compiler_id" in |
| 17752 | # |
| 17753 | CLANG) |
| 17754 | # |
| 17755 | tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments" |
| 17756 | ;; |
| 17757 | # |
| 17758 | DEC_C) |
| 17759 | # |
| 17760 | tmp_CFLAGS="$tmp_CFLAGS -std1" |
| 17761 | tmp_CFLAGS="$tmp_CFLAGS -noansi_alias" |
| 17762 | tmp_CFLAGS="$tmp_CFLAGS -warnprotos" |
| 17763 | tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs" |
| 17764 | ;; |
| 17765 | # |
| 17766 | GNU_C) |
| 17767 | # |
| 17768 | if test "$compiler_num" -ge "295"; then |
| 17769 | tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration" |
| 17770 | fi |
| 17771 | ;; |
| 17772 | # |
| 17773 | HP_UX_C) |
| 17774 | # |
| 17775 | tmp_CFLAGS="$tmp_CFLAGS -z" |
| 17776 | tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255" |
| 17777 | ;; |
| 17778 | # |
| 17779 | IBM_C) |
| 17780 | # |
| 17781 | tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded" |
| 17782 | tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias" |
| 17783 | tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e" |
| 17784 | ;; |
| 17785 | # |
| 17786 | INTEL_UNIX_C) |
| 17787 | # |
| 17788 | tmp_CFLAGS="$tmp_CFLAGS -std=gnu89" |
| 17789 | tmp_CPPFLAGS="$tmp_CPPFLAGS -we140,147,165,266" |
| 17790 | tmp_CPPFLAGS="$tmp_CPPFLAGS -wd279,981,1469" |
| 17791 | ;; |
| 17792 | # |
| 17793 | INTEL_WINDOWS_C) |
| 17794 | # |
| 17795 | tmp_CFLAGS="$tmp_CFLAGS" |
| 17796 | ;; |
| 17797 | # |
| 17798 | LCC) |
| 17799 | # |
| 17800 | tmp_CFLAGS="$tmp_CFLAGS -n" |
| 17801 | ;; |
| 17802 | # |
| 17803 | SGI_MIPS_C) |
| 17804 | # |
| 17805 | tmp_CFLAGS="$tmp_CFLAGS" |
| 17806 | ;; |
| 17807 | # |
| 17808 | SGI_MIPSPRO_C) |
| 17809 | # |
| 17810 | tmp_CFLAGS="$tmp_CFLAGS" |
| 17811 | ;; |
| 17812 | # |
| 17813 | SUNPRO_C) |
| 17814 | # |
| 17815 | tmp_CFLAGS="$tmp_CFLAGS" |
| 17816 | ;; |
| 17817 | # |
| 17818 | TINY_C) |
| 17819 | # |
| 17820 | tmp_CFLAGS="$tmp_CFLAGS" |
| 17821 | ;; |
| 17822 | # |
| 17823 | WATCOM_UNIX_C) |
| 17824 | # |
| 17825 | tmp_CFLAGS="$tmp_CFLAGS" |
| 17826 | ;; |
| 17827 | # |
| 17828 | WATCOM_WINDOWS_C) |
| 17829 | # |
| 17830 | tmp_CFLAGS="$tmp_CFLAGS" |
| 17831 | ;; |
| 17832 | # |
| 17833 | esac |
| 17834 | # |
| 17835 | squeeze tmp_CPPFLAGS |
| 17836 | squeeze tmp_CFLAGS |
| 17837 | # |
| 17838 | if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then |
| 17839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5 |
| 17840 | $as_echo_n "checking if compiler accepts some basic options... " >&6; } |
| 17841 | CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS" |
| 17842 | CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS" |
| 17843 | squeeze CPPFLAGS |
| 17844 | squeeze CFLAGS |
| 17845 | |
| 17846 | tmp_compiler_works="unknown" |
| 17847 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17848 | /* end confdefs.h. */ |
| 17849 | |
| 17850 | |
| 17851 | |
| 17852 | int main (void) |
| 17853 | { |
| 17854 | |
| 17855 | int i = 1; |
| 17856 | return i; |
| 17857 | |
| 17858 | ; |
| 17859 | return 0; |
| 17860 | } |
| 17861 | |
| 17862 | _ACEOF |
| 17863 | if ac_fn_c_try_compile "$LINENO"; then : |
| 17864 | |
| 17865 | tmp_compiler_works="yes" |
| 17866 | |
| 17867 | else |
| 17868 | |
| 17869 | tmp_compiler_works="no" |
| 17870 | echo " " >&6 |
| 17871 | sed 's/^/cc-fail: /' conftest.err >&6 |
| 17872 | echo " " >&6 |
| 17873 | |
| 17874 | fi |
| 17875 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17876 | if test "$tmp_compiler_works" = "yes"; then |
| 17877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17878 | /* end confdefs.h. */ |
| 17879 | |
| 17880 | |
| 17881 | |
| 17882 | int main (void) |
| 17883 | { |
| 17884 | |
| 17885 | int i = 1; |
| 17886 | return i; |
| 17887 | |
| 17888 | ; |
| 17889 | return 0; |
| 17890 | } |
| 17891 | |
| 17892 | _ACEOF |
| 17893 | if ac_fn_c_try_link "$LINENO"; then : |
| 17894 | |
| 17895 | tmp_compiler_works="yes" |
| 17896 | |
| 17897 | else |
| 17898 | |
| 17899 | tmp_compiler_works="no" |
| 17900 | echo " " >&6 |
| 17901 | sed 's/^/link-fail: /' conftest.err >&6 |
| 17902 | echo " " >&6 |
| 17903 | |
| 17904 | fi |
| 17905 | rm -f core conftest.err conftest.$ac_objext \ |
| 17906 | conftest$ac_exeext conftest.$ac_ext |
| 17907 | fi |
| 17908 | if test "x$cross_compiling" != "xyes" && |
| 17909 | test "$tmp_compiler_works" = "yes"; then |
| 17910 | if test "$cross_compiling" = yes; then : |
| 17911 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 17912 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 17913 | as_fn_error $? "cannot run test program while cross compiling |
| 17914 | See \`config.log' for more details" "$LINENO" 5; } |
| 17915 | else |
| 17916 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17917 | /* end confdefs.h. */ |
| 17918 | |
| 17919 | |
| 17920 | # ifdef __STDC__ |
| 17921 | # include <stdlib.h> |
| 17922 | # endif |
| 17923 | |
| 17924 | int main (void) |
| 17925 | { |
| 17926 | |
| 17927 | int i = 0; |
| 17928 | exit(i); |
| 17929 | |
| 17930 | ; |
| 17931 | return 0; |
| 17932 | } |
| 17933 | |
| 17934 | _ACEOF |
| 17935 | if ac_fn_c_try_run "$LINENO"; then : |
| 17936 | |
| 17937 | tmp_compiler_works="yes" |
| 17938 | |
| 17939 | else |
| 17940 | |
| 17941 | tmp_compiler_works="no" |
| 17942 | echo " " >&6 |
| 17943 | echo "run-fail: test program exited with status $ac_status" >&6 |
| 17944 | echo " " >&6 |
| 17945 | |
| 17946 | fi |
| 17947 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 17948 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17949 | fi |
| 17950 | |
| 17951 | fi |
| 17952 | if test "$tmp_compiler_works" = "yes"; then |
| 17953 | |
| 17954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17955 | $as_echo "yes" >&6; } |
| 17956 | { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5 |
| 17957 | $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;} |
| 17958 | |
| 17959 | else |
| 17960 | |
| 17961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17962 | $as_echo "no" >&6; } |
| 17963 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5 |
| 17964 | $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;} |
| 17965 | CPPFLAGS="$tmp_save_CPPFLAGS" |
| 17966 | CFLAGS="$tmp_save_CFLAGS" |
| 17967 | |
| 17968 | fi |
| 17969 | |
| 17970 | fi |
| 17971 | # |
| 17972 | fi |
| 17973 | |
| 17974 | |
| 17975 | # |
| 17976 | if test "$compiler_id" != "unknown"; then |
| 17977 | # |
| 17978 | tmp_save_CFLAGS="$CFLAGS" |
| 17979 | tmp_save_CPPFLAGS="$CPPFLAGS" |
| 17980 | # |
| 17981 | tmp_options="" |
| 17982 | tmp_CFLAGS="$CFLAGS" |
| 17983 | tmp_CPPFLAGS="$CPPFLAGS" |
| 17984 | |
| 17985 | ac_var_stripped="" |
| 17986 | for word1 in $tmp_CFLAGS; do |
| 17987 | ac_var_strip_word="no" |
| 17988 | for word2 in $flags_dbg_all; do |
| 17989 | if test "$word1" = "$word2"; then |
| 17990 | ac_var_strip_word="yes" |
| 17991 | fi |
| 17992 | done |
| 17993 | if test "$ac_var_strip_word" = "no"; then |
| 17994 | ac_var_stripped="$ac_var_stripped $word1" |
| 17995 | fi |
| 17996 | done |
| 17997 | tmp_CFLAGS="$ac_var_stripped" |
| 17998 | squeeze tmp_CFLAGS |
| 17999 | |
| 18000 | |
| 18001 | ac_var_stripped="" |
| 18002 | for word1 in $tmp_CPPFLAGS; do |
| 18003 | ac_var_strip_word="no" |
| 18004 | for word2 in $flags_dbg_all; do |
| 18005 | if test "$word1" = "$word2"; then |
| 18006 | ac_var_strip_word="yes" |
| 18007 | fi |
| 18008 | done |
| 18009 | if test "$ac_var_strip_word" = "no"; then |
| 18010 | ac_var_stripped="$ac_var_stripped $word1" |
| 18011 | fi |
| 18012 | done |
| 18013 | tmp_CPPFLAGS="$ac_var_stripped" |
| 18014 | squeeze tmp_CPPFLAGS |
| 18015 | |
| 18016 | # |
| 18017 | if test "$want_debug" = "yes"; then |
| 18018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5 |
| 18019 | $as_echo_n "checking if compiler accepts debug enabling options... " >&6; } |
| 18020 | tmp_options="$flags_dbg_yes" |
| 18021 | fi |
| 18022 | if test "$want_debug" = "no"; then |
| 18023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5 |
| 18024 | $as_echo_n "checking if compiler accepts debug disabling options... " >&6; } |
| 18025 | tmp_options="$flags_dbg_off" |
| 18026 | fi |
| 18027 | # |
| 18028 | if test "$flags_prefer_cppflags" = "yes"; then |
| 18029 | CPPFLAGS="$tmp_CPPFLAGS $tmp_options" |
| 18030 | CFLAGS="$tmp_CFLAGS" |
| 18031 | else |
| 18032 | CPPFLAGS="$tmp_CPPFLAGS" |
| 18033 | CFLAGS="$tmp_CFLAGS $tmp_options" |
| 18034 | fi |
| 18035 | squeeze CPPFLAGS |
| 18036 | squeeze CFLAGS |
| 18037 | |
| 18038 | tmp_compiler_works="unknown" |
| 18039 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18040 | /* end confdefs.h. */ |
| 18041 | |
| 18042 | |
| 18043 | |
| 18044 | int main (void) |
| 18045 | { |
| 18046 | |
| 18047 | int i = 1; |
| 18048 | return i; |
| 18049 | |
| 18050 | ; |
| 18051 | return 0; |
| 18052 | } |
| 18053 | |
| 18054 | _ACEOF |
| 18055 | if ac_fn_c_try_compile "$LINENO"; then : |
| 18056 | |
| 18057 | tmp_compiler_works="yes" |
| 18058 | |
| 18059 | else |
| 18060 | |
| 18061 | tmp_compiler_works="no" |
| 18062 | echo " " >&6 |
| 18063 | sed 's/^/cc-fail: /' conftest.err >&6 |
| 18064 | echo " " >&6 |
| 18065 | |
| 18066 | fi |
| 18067 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18068 | if test "$tmp_compiler_works" = "yes"; then |
| 18069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18070 | /* end confdefs.h. */ |
| 18071 | |
| 18072 | |
| 18073 | |
| 18074 | int main (void) |
| 18075 | { |
| 18076 | |
| 18077 | int i = 1; |
| 18078 | return i; |
| 18079 | |
| 18080 | ; |
| 18081 | return 0; |
| 18082 | } |
| 18083 | |
| 18084 | _ACEOF |
| 18085 | if ac_fn_c_try_link "$LINENO"; then : |
| 18086 | |
| 18087 | tmp_compiler_works="yes" |
| 18088 | |
| 18089 | else |
| 18090 | |
| 18091 | tmp_compiler_works="no" |
| 18092 | echo " " >&6 |
| 18093 | sed 's/^/link-fail: /' conftest.err >&6 |
| 18094 | echo " " >&6 |
| 18095 | |
| 18096 | fi |
| 18097 | rm -f core conftest.err conftest.$ac_objext \ |
| 18098 | conftest$ac_exeext conftest.$ac_ext |
| 18099 | fi |
| 18100 | if test "x$cross_compiling" != "xyes" && |
| 18101 | test "$tmp_compiler_works" = "yes"; then |
| 18102 | if test "$cross_compiling" = yes; then : |
| 18103 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 18104 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 18105 | as_fn_error $? "cannot run test program while cross compiling |
| 18106 | See \`config.log' for more details" "$LINENO" 5; } |
| 18107 | else |
| 18108 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18109 | /* end confdefs.h. */ |
| 18110 | |
| 18111 | |
| 18112 | # ifdef __STDC__ |
| 18113 | # include <stdlib.h> |
| 18114 | # endif |
| 18115 | |
| 18116 | int main (void) |
| 18117 | { |
| 18118 | |
| 18119 | int i = 0; |
| 18120 | exit(i); |
| 18121 | |
| 18122 | ; |
| 18123 | return 0; |
| 18124 | } |
| 18125 | |
| 18126 | _ACEOF |
| 18127 | if ac_fn_c_try_run "$LINENO"; then : |
| 18128 | |
| 18129 | tmp_compiler_works="yes" |
| 18130 | |
| 18131 | else |
| 18132 | |
| 18133 | tmp_compiler_works="no" |
| 18134 | echo " " >&6 |
| 18135 | echo "run-fail: test program exited with status $ac_status" >&6 |
| 18136 | echo " " >&6 |
| 18137 | |
| 18138 | fi |
| 18139 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 18140 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18141 | fi |
| 18142 | |
| 18143 | fi |
| 18144 | if test "$tmp_compiler_works" = "yes"; then |
| 18145 | |
| 18146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18147 | $as_echo "yes" >&6; } |
| 18148 | { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5 |
| 18149 | $as_echo "$as_me: compiler options added: $tmp_options" >&6;} |
| 18150 | |
| 18151 | else |
| 18152 | |
| 18153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18154 | $as_echo "no" >&6; } |
| 18155 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5 |
| 18156 | $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;} |
| 18157 | CPPFLAGS="$tmp_save_CPPFLAGS" |
| 18158 | CFLAGS="$tmp_save_CFLAGS" |
| 18159 | |
| 18160 | fi |
| 18161 | |
| 18162 | # |
| 18163 | fi |
| 18164 | |
| 18165 | |
| 18166 | # |
| 18167 | if test "$compiler_id" != "unknown"; then |
| 18168 | # |
| 18169 | tmp_save_CFLAGS="$CFLAGS" |
| 18170 | tmp_save_CPPFLAGS="$CPPFLAGS" |
| 18171 | # |
| 18172 | tmp_options="" |
| 18173 | tmp_CFLAGS="$CFLAGS" |
| 18174 | tmp_CPPFLAGS="$CPPFLAGS" |
| 18175 | honor_optimize_option="yes" |
| 18176 | # |
| 18177 | # |
| 18178 | if test "$want_optimize" = "assume_no" || |
| 18179 | test "$want_optimize" = "assume_yes"; then |
| 18180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5 |
| 18181 | $as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; } |
| 18182 | |
| 18183 | |
| 18184 | ac_var_match_word="no" |
| 18185 | for word1 in $tmp_CFLAGS; do |
| 18186 | for word2 in $flags_opt_all; do |
| 18187 | if test "$word1" = "$word2"; then |
| 18188 | ac_var_match_word="yes" |
| 18189 | fi |
| 18190 | done |
| 18191 | done |
| 18192 | |
| 18193 | if test "$ac_var_match_word" = "yes"; then |
| 18194 | |
| 18195 | honor_optimize_option="no" |
| 18196 | |
| 18197 | |
| 18198 | fi |
| 18199 | |
| 18200 | |
| 18201 | |
| 18202 | ac_var_match_word="no" |
| 18203 | for word1 in $tmp_CPPFLAGS; do |
| 18204 | for word2 in $flags_opt_all; do |
| 18205 | if test "$word1" = "$word2"; then |
| 18206 | ac_var_match_word="yes" |
| 18207 | fi |
| 18208 | done |
| 18209 | done |
| 18210 | |
| 18211 | if test "$ac_var_match_word" = "yes"; then |
| 18212 | |
| 18213 | honor_optimize_option="no" |
| 18214 | |
| 18215 | |
| 18216 | fi |
| 18217 | |
| 18218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5 |
| 18219 | $as_echo "$honor_optimize_option" >&6; } |
| 18220 | if test "$honor_optimize_option" = "yes"; then |
| 18221 | if test "$want_optimize" = "assume_yes"; then |
| 18222 | want_optimize="yes" |
| 18223 | fi |
| 18224 | if test "$want_optimize" = "assume_no"; then |
| 18225 | want_optimize="no" |
| 18226 | fi |
| 18227 | fi |
| 18228 | fi |
| 18229 | # |
| 18230 | if test "$honor_optimize_option" = "yes"; then |
| 18231 | |
| 18232 | ac_var_stripped="" |
| 18233 | for word1 in $tmp_CFLAGS; do |
| 18234 | ac_var_strip_word="no" |
| 18235 | for word2 in $flags_opt_all; do |
| 18236 | if test "$word1" = "$word2"; then |
| 18237 | ac_var_strip_word="yes" |
| 18238 | fi |
| 18239 | done |
| 18240 | if test "$ac_var_strip_word" = "no"; then |
| 18241 | ac_var_stripped="$ac_var_stripped $word1" |
| 18242 | fi |
| 18243 | done |
| 18244 | tmp_CFLAGS="$ac_var_stripped" |
| 18245 | squeeze tmp_CFLAGS |
| 18246 | |
| 18247 | |
| 18248 | ac_var_stripped="" |
| 18249 | for word1 in $tmp_CPPFLAGS; do |
| 18250 | ac_var_strip_word="no" |
| 18251 | for word2 in $flags_opt_all; do |
| 18252 | if test "$word1" = "$word2"; then |
| 18253 | ac_var_strip_word="yes" |
| 18254 | fi |
| 18255 | done |
| 18256 | if test "$ac_var_strip_word" = "no"; then |
| 18257 | ac_var_stripped="$ac_var_stripped $word1" |
| 18258 | fi |
| 18259 | done |
| 18260 | tmp_CPPFLAGS="$ac_var_stripped" |
| 18261 | squeeze tmp_CPPFLAGS |
| 18262 | |
| 18263 | if test "$want_optimize" = "yes"; then |
| 18264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5 |
| 18265 | $as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; } |
| 18266 | tmp_options="$flags_opt_yes" |
| 18267 | fi |
| 18268 | if test "$want_optimize" = "no"; then |
| 18269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5 |
| 18270 | $as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; } |
| 18271 | tmp_options="$flags_opt_off" |
| 18272 | fi |
| 18273 | if test "$flags_prefer_cppflags" = "yes"; then |
| 18274 | CPPFLAGS="$tmp_CPPFLAGS $tmp_options" |
| 18275 | CFLAGS="$tmp_CFLAGS" |
| 18276 | else |
| 18277 | CPPFLAGS="$tmp_CPPFLAGS" |
| 18278 | CFLAGS="$tmp_CFLAGS $tmp_options" |
| 18279 | fi |
| 18280 | squeeze CPPFLAGS |
| 18281 | squeeze CFLAGS |
| 18282 | |
| 18283 | tmp_compiler_works="unknown" |
| 18284 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18285 | /* end confdefs.h. */ |
| 18286 | |
| 18287 | |
| 18288 | |
| 18289 | int main (void) |
| 18290 | { |
| 18291 | |
| 18292 | int i = 1; |
| 18293 | return i; |
| 18294 | |
| 18295 | ; |
| 18296 | return 0; |
| 18297 | } |
| 18298 | |
| 18299 | _ACEOF |
| 18300 | if ac_fn_c_try_compile "$LINENO"; then : |
| 18301 | |
| 18302 | tmp_compiler_works="yes" |
| 18303 | |
| 18304 | else |
| 18305 | |
| 18306 | tmp_compiler_works="no" |
| 18307 | echo " " >&6 |
| 18308 | sed 's/^/cc-fail: /' conftest.err >&6 |
| 18309 | echo " " >&6 |
| 18310 | |
| 18311 | fi |
| 18312 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18313 | if test "$tmp_compiler_works" = "yes"; then |
| 18314 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18315 | /* end confdefs.h. */ |
| 18316 | |
| 18317 | |
| 18318 | |
| 18319 | int main (void) |
| 18320 | { |
| 18321 | |
| 18322 | int i = 1; |
| 18323 | return i; |
| 18324 | |
| 18325 | ; |
| 18326 | return 0; |
| 18327 | } |
| 18328 | |
| 18329 | _ACEOF |
| 18330 | if ac_fn_c_try_link "$LINENO"; then : |
| 18331 | |
| 18332 | tmp_compiler_works="yes" |
| 18333 | |
| 18334 | else |
| 18335 | |
| 18336 | tmp_compiler_works="no" |
| 18337 | echo " " >&6 |
| 18338 | sed 's/^/link-fail: /' conftest.err >&6 |
| 18339 | echo " " >&6 |
| 18340 | |
| 18341 | fi |
| 18342 | rm -f core conftest.err conftest.$ac_objext \ |
| 18343 | conftest$ac_exeext conftest.$ac_ext |
| 18344 | fi |
| 18345 | if test "x$cross_compiling" != "xyes" && |
| 18346 | test "$tmp_compiler_works" = "yes"; then |
| 18347 | if test "$cross_compiling" = yes; then : |
| 18348 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 18349 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 18350 | as_fn_error $? "cannot run test program while cross compiling |
| 18351 | See \`config.log' for more details" "$LINENO" 5; } |
| 18352 | else |
| 18353 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18354 | /* end confdefs.h. */ |
| 18355 | |
| 18356 | |
| 18357 | # ifdef __STDC__ |
| 18358 | # include <stdlib.h> |
| 18359 | # endif |
| 18360 | |
| 18361 | int main (void) |
| 18362 | { |
| 18363 | |
| 18364 | int i = 0; |
| 18365 | exit(i); |
| 18366 | |
| 18367 | ; |
| 18368 | return 0; |
| 18369 | } |
| 18370 | |
| 18371 | _ACEOF |
| 18372 | if ac_fn_c_try_run "$LINENO"; then : |
| 18373 | |
| 18374 | tmp_compiler_works="yes" |
| 18375 | |
| 18376 | else |
| 18377 | |
| 18378 | tmp_compiler_works="no" |
| 18379 | echo " " >&6 |
| 18380 | echo "run-fail: test program exited with status $ac_status" >&6 |
| 18381 | echo " " >&6 |
| 18382 | |
| 18383 | fi |
| 18384 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 18385 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18386 | fi |
| 18387 | |
| 18388 | fi |
| 18389 | if test "$tmp_compiler_works" = "yes"; then |
| 18390 | |
| 18391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18392 | $as_echo "yes" >&6; } |
| 18393 | { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5 |
| 18394 | $as_echo "$as_me: compiler options added: $tmp_options" >&6;} |
| 18395 | |
| 18396 | else |
| 18397 | |
| 18398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18399 | $as_echo "no" >&6; } |
| 18400 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5 |
| 18401 | $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;} |
| 18402 | CPPFLAGS="$tmp_save_CPPFLAGS" |
| 18403 | CFLAGS="$tmp_save_CFLAGS" |
| 18404 | |
| 18405 | fi |
| 18406 | |
| 18407 | fi |
| 18408 | # |
| 18409 | fi |
| 18410 | |
| 18411 | |
| 18412 | # |
| 18413 | if test "$compiler_id" != "unknown"; then |
| 18414 | # |
| 18415 | tmp_save_CPPFLAGS="$CPPFLAGS" |
| 18416 | tmp_save_CFLAGS="$CFLAGS" |
| 18417 | tmp_CPPFLAGS="" |
| 18418 | tmp_CFLAGS="" |
| 18419 | # |
| 18420 | case "$compiler_id" in |
| 18421 | # |
| 18422 | CLANG) |
| 18423 | # |
| 18424 | if test "$want_warnings" = "yes"; then |
| 18425 | tmp_CFLAGS="$tmp_CFLAGS -pedantic" |
| 18426 | tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra" |
| 18427 | tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings" |
| 18428 | tmp_CFLAGS="$tmp_CFLAGS -Wshadow" |
| 18429 | tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs" |
| 18430 | tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations" |
| 18431 | tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes" |
| 18432 | tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long" |
| 18433 | tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal" |
| 18434 | tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare" |
| 18435 | tmp_CFLAGS="$tmp_CFLAGS -Wundef" |
| 18436 | tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral" |
| 18437 | tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes" |
| 18438 | tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement" |
| 18439 | tmp_CFLAGS="$tmp_CFLAGS -Wcast-align" |
| 18440 | tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers" |
| 18441 | tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32" |
| 18442 | # |
| 18443 | if test "$compiler_num" -ge "101"; then |
| 18444 | tmp_CFLAGS="$tmp_CFLAGS -Wunused" |
| 18445 | fi |
| 18446 | # |
| 18447 | if test "$compiler_num" -ge "209"; then |
| 18448 | tmp_CFLAGS="$tmp_CFLAGS -Wshift-sign-overflow" |
| 18449 | fi |
| 18450 | fi |
| 18451 | ;; |
| 18452 | # |
| 18453 | DEC_C) |
| 18454 | # |
| 18455 | if test "$want_warnings" = "yes"; then |
| 18456 | tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3" |
| 18457 | fi |
| 18458 | ;; |
| 18459 | # |
| 18460 | GNU_C) |
| 18461 | # |
| 18462 | if test "$want_warnings" = "yes"; then |
| 18463 | # |
| 18464 | if test "x$cross_compiling" != "xyes" || |
| 18465 | test "$compiler_num" -ge "300"; then |
| 18466 | tmp_CFLAGS="$tmp_CFLAGS -pedantic" |
| 18467 | fi |
| 18468 | # |
| 18469 | tmp_CFLAGS="$tmp_CFLAGS -Wall -W" |
| 18470 | # |
| 18471 | if test "$compiler_num" -ge "104"; then |
| 18472 | tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings" |
| 18473 | if test "x$cross_compiling" != "xyes" || |
| 18474 | test "$compiler_num" -ge "300"; then |
| 18475 | tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow" |
| 18476 | fi |
| 18477 | fi |
| 18478 | # |
| 18479 | if test "$compiler_num" -ge "207"; then |
| 18480 | tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs" |
| 18481 | if test "x$cross_compiling" != "xyes" || |
| 18482 | test "$compiler_num" -ge "300"; then |
| 18483 | tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations" |
| 18484 | tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes" |
| 18485 | fi |
| 18486 | fi |
| 18487 | # |
| 18488 | if test "$compiler_num" -ge "295"; then |
| 18489 | tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long" |
| 18490 | fi |
| 18491 | # |
| 18492 | if test "$compiler_num" -ge "296"; then |
| 18493 | tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal" |
| 18494 | tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare" |
| 18495 | tmp_CFLAGS="$tmp_CFLAGS -Wundef" |
| 18496 | fi |
| 18497 | # |
| 18498 | if test "$compiler_num" -ge "297"; then |
| 18499 | tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral" |
| 18500 | fi |
| 18501 | # |
| 18502 | if test "$compiler_num" -ge "300"; then |
| 18503 | tmp_CFLAGS="$tmp_CFLAGS" |
| 18504 | fi |
| 18505 | # |
| 18506 | if test "$compiler_num" -ge "303"; then |
| 18507 | tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes" |
| 18508 | fi |
| 18509 | # |
| 18510 | if test "$compiler_num" -ge "304"; then |
| 18511 | tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement" |
| 18512 | fi |
| 18513 | # |
| 18514 | if test "$compiler_num" -ge "400"; then |
| 18515 | tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3" |
| 18516 | fi |
| 18517 | # |
| 18518 | if test "$compiler_num" -ge "402"; then |
| 18519 | tmp_CFLAGS="$tmp_CFLAGS -Wcast-align" |
| 18520 | fi |
| 18521 | # |
| 18522 | if test "$compiler_num" -ge "403"; then |
| 18523 | tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration" |
| 18524 | tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body" |
| 18525 | tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers" |
| 18526 | tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla" |
| 18527 | fi |
| 18528 | # |
| 18529 | if test "$compiler_num" -ge "405"; then |
| 18530 | if test "$curl_cv_have_def__WIN32" = "yes"; then |
| 18531 | tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format" |
| 18532 | fi |
| 18533 | fi |
| 18534 | # |
| 18535 | fi |
| 18536 | # |
| 18537 | if test "$compiler_num" -ge "300"; then |
| 18538 | tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers" |
| 18539 | else |
| 18540 | if test "x$cross_compiling" = "xyes"; then |
| 18541 | if test "$compiler_num" -ge "104"; then |
| 18542 | tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow" |
| 18543 | fi |
| 18544 | if test "$compiler_num" -ge "207"; then |
| 18545 | tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations" |
| 18546 | tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes" |
| 18547 | fi |
| 18548 | fi |
| 18549 | fi |
| 18550 | ;; |
| 18551 | # |
| 18552 | HP_UX_C) |
| 18553 | # |
| 18554 | if test "$want_warnings" = "yes"; then |
| 18555 | tmp_CFLAGS="$tmp_CFLAGS +w1" |
| 18556 | fi |
| 18557 | ;; |
| 18558 | # |
| 18559 | IBM_C) |
| 18560 | # |
| 18561 | tmp_CFLAGS="$tmp_CFLAGS" |
| 18562 | ;; |
| 18563 | # |
| 18564 | INTEL_UNIX_C) |
| 18565 | # |
| 18566 | if test "$want_warnings" = "yes"; then |
| 18567 | if test "$compiler_num" -gt "600"; then |
| 18568 | tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2" |
| 18569 | tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck" |
| 18570 | tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment" |
| 18571 | tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated" |
| 18572 | tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes" |
| 18573 | tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64" |
| 18574 | tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith" |
| 18575 | tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type" |
| 18576 | tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow" |
| 18577 | tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized" |
| 18578 | tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function" |
| 18579 | fi |
| 18580 | fi |
| 18581 | tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer" |
| 18582 | tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing" |
| 18583 | tmp_CFLAGS="$tmp_CFLAGS -fp-model precise" |
| 18584 | if test "$compiler_num" -ge "1000"; then |
| 18585 | tmp_CFLAGS="$tmp_CFLAGS -vec-report0" |
| 18586 | fi |
| 18587 | ;; |
| 18588 | # |
| 18589 | INTEL_WINDOWS_C) |
| 18590 | # |
| 18591 | tmp_CFLAGS="$tmp_CFLAGS" |
| 18592 | ;; |
| 18593 | # |
| 18594 | LCC) |
| 18595 | # |
| 18596 | if test "$want_warnings" = "yes"; then |
| 18597 | tmp_CFLAGS="$tmp_CFLAGS" |
| 18598 | fi |
| 18599 | ;; |
| 18600 | # |
| 18601 | SGI_MIPS_C) |
| 18602 | # |
| 18603 | if test "$want_warnings" = "yes"; then |
| 18604 | tmp_CFLAGS="$tmp_CFLAGS -fullwarn" |
| 18605 | fi |
| 18606 | ;; |
| 18607 | # |
| 18608 | SGI_MIPSPRO_C) |
| 18609 | # |
| 18610 | if test "$want_warnings" = "yes"; then |
| 18611 | tmp_CFLAGS="$tmp_CFLAGS -fullwarn" |
| 18612 | tmp_CFLAGS="$tmp_CFLAGS -woff 1209" |
| 18613 | fi |
| 18614 | ;; |
| 18615 | # |
| 18616 | SUNPRO_C) |
| 18617 | # |
| 18618 | if test "$want_warnings" = "yes"; then |
| 18619 | tmp_CFLAGS="$tmp_CFLAGS -v" |
| 18620 | fi |
| 18621 | ;; |
| 18622 | # |
| 18623 | TINY_C) |
| 18624 | # |
| 18625 | if test "$want_warnings" = "yes"; then |
| 18626 | tmp_CFLAGS="$tmp_CFLAGS -Wall" |
| 18627 | tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings" |
| 18628 | tmp_CFLAGS="$tmp_CFLAGS -Wunsupported" |
| 18629 | fi |
| 18630 | ;; |
| 18631 | # |
| 18632 | WATCOM_UNIX_C) |
| 18633 | # |
| 18634 | if test "$want_warnings" = "yes"; then |
| 18635 | tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra" |
| 18636 | fi |
| 18637 | ;; |
| 18638 | # |
| 18639 | WATCOM_WINDOWS_C) |
| 18640 | # |
| 18641 | tmp_CFLAGS="$tmp_CFLAGS" |
| 18642 | ;; |
| 18643 | # |
| 18644 | esac |
| 18645 | # |
| 18646 | squeeze tmp_CPPFLAGS |
| 18647 | squeeze tmp_CFLAGS |
| 18648 | # |
| 18649 | if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then |
| 18650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5 |
| 18651 | $as_echo_n "checking if compiler accepts strict warning options... " >&6; } |
| 18652 | CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS" |
| 18653 | CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS" |
| 18654 | squeeze CPPFLAGS |
| 18655 | squeeze CFLAGS |
| 18656 | |
| 18657 | tmp_compiler_works="unknown" |
| 18658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18659 | /* end confdefs.h. */ |
| 18660 | |
| 18661 | |
| 18662 | |
| 18663 | int main (void) |
| 18664 | { |
| 18665 | |
| 18666 | int i = 1; |
| 18667 | return i; |
| 18668 | |
| 18669 | ; |
| 18670 | return 0; |
| 18671 | } |
| 18672 | |
| 18673 | _ACEOF |
| 18674 | if ac_fn_c_try_compile "$LINENO"; then : |
| 18675 | |
| 18676 | tmp_compiler_works="yes" |
| 18677 | |
| 18678 | else |
| 18679 | |
| 18680 | tmp_compiler_works="no" |
| 18681 | echo " " >&6 |
| 18682 | sed 's/^/cc-fail: /' conftest.err >&6 |
| 18683 | echo " " >&6 |
| 18684 | |
| 18685 | fi |
| 18686 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18687 | if test "$tmp_compiler_works" = "yes"; then |
| 18688 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18689 | /* end confdefs.h. */ |
| 18690 | |
| 18691 | |
| 18692 | |
| 18693 | int main (void) |
| 18694 | { |
| 18695 | |
| 18696 | int i = 1; |
| 18697 | return i; |
| 18698 | |
| 18699 | ; |
| 18700 | return 0; |
| 18701 | } |
| 18702 | |
| 18703 | _ACEOF |
| 18704 | if ac_fn_c_try_link "$LINENO"; then : |
| 18705 | |
| 18706 | tmp_compiler_works="yes" |
| 18707 | |
| 18708 | else |
| 18709 | |
| 18710 | tmp_compiler_works="no" |
| 18711 | echo " " >&6 |
| 18712 | sed 's/^/link-fail: /' conftest.err >&6 |
| 18713 | echo " " >&6 |
| 18714 | |
| 18715 | fi |
| 18716 | rm -f core conftest.err conftest.$ac_objext \ |
| 18717 | conftest$ac_exeext conftest.$ac_ext |
| 18718 | fi |
| 18719 | if test "x$cross_compiling" != "xyes" && |
| 18720 | test "$tmp_compiler_works" = "yes"; then |
| 18721 | if test "$cross_compiling" = yes; then : |
| 18722 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 18723 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 18724 | as_fn_error $? "cannot run test program while cross compiling |
| 18725 | See \`config.log' for more details" "$LINENO" 5; } |
| 18726 | else |
| 18727 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18728 | /* end confdefs.h. */ |
| 18729 | |
| 18730 | |
| 18731 | # ifdef __STDC__ |
| 18732 | # include <stdlib.h> |
| 18733 | # endif |
| 18734 | |
| 18735 | int main (void) |
| 18736 | { |
| 18737 | |
| 18738 | int i = 0; |
| 18739 | exit(i); |
| 18740 | |
| 18741 | ; |
| 18742 | return 0; |
| 18743 | } |
| 18744 | |
| 18745 | _ACEOF |
| 18746 | if ac_fn_c_try_run "$LINENO"; then : |
| 18747 | |
| 18748 | tmp_compiler_works="yes" |
| 18749 | |
| 18750 | else |
| 18751 | |
| 18752 | tmp_compiler_works="no" |
| 18753 | echo " " >&6 |
| 18754 | echo "run-fail: test program exited with status $ac_status" >&6 |
| 18755 | echo " " >&6 |
| 18756 | |
| 18757 | fi |
| 18758 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 18759 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18760 | fi |
| 18761 | |
| 18762 | fi |
| 18763 | if test "$tmp_compiler_works" = "yes"; then |
| 18764 | |
| 18765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18766 | $as_echo "yes" >&6; } |
| 18767 | { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5 |
| 18768 | $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;} |
| 18769 | |
| 18770 | else |
| 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: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5 |
| 18775 | $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;} |
| 18776 | CPPFLAGS="$tmp_save_CPPFLAGS" |
| 18777 | CFLAGS="$tmp_save_CFLAGS" |
| 18778 | |
| 18779 | fi |
| 18780 | |
| 18781 | fi |
| 18782 | # |
| 18783 | fi |
| 18784 | |
| 18785 | |
| 18786 | if test "$compiler_id" = "INTEL_UNIX_C"; then |
| 18787 | # |
| 18788 | if test "$compiler_num" -ge "1000"; then |
| 18789 | CFLAGS="$CFLAGS -shared-intel" |
| 18790 | elif test "$compiler_num" -ge "900"; then |
| 18791 | CFLAGS="$CFLAGS -i-dynamic" |
| 18792 | fi |
| 18793 | # |
| 18794 | fi |
| 18795 | |
| 18796 | |
| 18797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5 |
| 18798 | $as_echo_n "checking if compiler halts on compilation errors... " >&6; } |
| 18799 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18800 | /* end confdefs.h. */ |
| 18801 | |
| 18802 | |
| 18803 | |
| 18804 | int main (void) |
| 18805 | { |
| 18806 | |
| 18807 | force compilation error |
| 18808 | |
| 18809 | ; |
| 18810 | return 0; |
| 18811 | } |
| 18812 | |
| 18813 | _ACEOF |
| 18814 | if ac_fn_c_try_compile "$LINENO"; then : |
| 18815 | |
| 18816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18817 | $as_echo "no" >&6; } |
| 18818 | as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5 |
| 18819 | |
| 18820 | else |
| 18821 | |
| 18822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18823 | $as_echo "yes" >&6; } |
| 18824 | |
| 18825 | fi |
| 18826 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18827 | |
| 18828 | |
| 18829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5 |
| 18830 | $as_echo_n "checking if compiler halts on negative sized arrays... " >&6; } |
| 18831 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18832 | /* end confdefs.h. */ |
| 18833 | |
| 18834 | |
| 18835 | typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ]; |
| 18836 | |
| 18837 | int main (void) |
| 18838 | { |
| 18839 | |
| 18840 | bad_t dummy; |
| 18841 | |
| 18842 | ; |
| 18843 | return 0; |
| 18844 | } |
| 18845 | |
| 18846 | _ACEOF |
| 18847 | if ac_fn_c_try_compile "$LINENO"; then : |
| 18848 | |
| 18849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18850 | $as_echo "no" >&6; } |
| 18851 | as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5 |
| 18852 | |
| 18853 | else |
| 18854 | |
| 18855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18856 | $as_echo "yes" >&6; } |
| 18857 | |
| 18858 | fi |
| 18859 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18860 | |
| 18861 | |
| 18862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5 |
| 18863 | $as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; } |
| 18864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18865 | /* end confdefs.h. */ |
| 18866 | |
| 18867 | |
| 18868 | # include <stdlib.h> |
| 18869 | int rand(int n); |
| 18870 | int rand(int n) |
| 18871 | { |
| 18872 | if(n) |
| 18873 | return ++n; |
| 18874 | else |
| 18875 | return n; |
| 18876 | } |
| 18877 | |
| 18878 | int main (void) |
| 18879 | { |
| 18880 | |
| 18881 | int i[2]={0,0}; |
| 18882 | int j = rand(i[0]); |
| 18883 | if(j) |
| 18884 | return j; |
| 18885 | |
| 18886 | ; |
| 18887 | return 0; |
| 18888 | } |
| 18889 | |
| 18890 | _ACEOF |
| 18891 | if ac_fn_c_try_compile "$LINENO"; then : |
| 18892 | |
| 18893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18894 | $as_echo "no" >&6; } |
| 18895 | as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5 |
| 18896 | |
| 18897 | else |
| 18898 | |
| 18899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18900 | $as_echo "yes" >&6; } |
| 18901 | |
| 18902 | fi |
| 18903 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18904 | |
| 18905 | |
| 18906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5 |
| 18907 | $as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; } |
| 18908 | supports_symbol_hiding="no" |
| 18909 | symbol_hiding_CFLAGS="" |
| 18910 | symbol_hiding_EXTERN="" |
| 18911 | tmp_CFLAGS="" |
| 18912 | tmp_EXTERN="" |
| 18913 | case "$compiler_id" in |
| 18914 | CLANG) |
| 18915 | tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))" |
| 18916 | tmp_CFLAGS="-fvisibility=hidden" |
| 18917 | supports_symbol_hiding="yes" |
| 18918 | ;; |
| 18919 | GNU_C) |
| 18920 | if test "$compiler_num" -ge "304"; then |
| 18921 | if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then |
| 18922 | tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))" |
| 18923 | tmp_CFLAGS="-fvisibility=hidden" |
| 18924 | supports_symbol_hiding="yes" |
| 18925 | fi |
| 18926 | fi |
| 18927 | ;; |
| 18928 | INTEL_UNIX_C) |
| 18929 | if test "$compiler_num" -ge "900"; then |
| 18930 | if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then |
| 18931 | tmp_save_CFLAGS="$CFLAGS" |
| 18932 | CFLAGS="$CFLAGS -fvisibility=hidden" |
| 18933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18934 | /* end confdefs.h. */ |
| 18935 | |
| 18936 | |
| 18937 | # include <stdio.h> |
| 18938 | |
| 18939 | int main (void) |
| 18940 | { |
| 18941 | |
| 18942 | printf("icc fvisibility bug test"); |
| 18943 | |
| 18944 | ; |
| 18945 | return 0; |
| 18946 | } |
| 18947 | |
| 18948 | _ACEOF |
| 18949 | if ac_fn_c_try_link "$LINENO"; then : |
| 18950 | |
| 18951 | tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))" |
| 18952 | tmp_CFLAGS="-fvisibility=hidden" |
| 18953 | supports_symbol_hiding="yes" |
| 18954 | |
| 18955 | fi |
| 18956 | rm -f core conftest.err conftest.$ac_objext \ |
| 18957 | conftest$ac_exeext conftest.$ac_ext |
| 18958 | CFLAGS="$tmp_save_CFLAGS" |
| 18959 | fi |
| 18960 | fi |
| 18961 | ;; |
| 18962 | SUNPRO_C) |
| 18963 | if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then |
| 18964 | tmp_EXTERN="__global" |
| 18965 | tmp_CFLAGS="-xldscope=hidden" |
| 18966 | supports_symbol_hiding="yes" |
| 18967 | fi |
| 18968 | ;; |
| 18969 | esac |
| 18970 | if test "$supports_symbol_hiding" = "yes"; then |
| 18971 | tmp_save_CFLAGS="$CFLAGS" |
| 18972 | CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS" |
| 18973 | squeeze CFLAGS |
| 18974 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18975 | /* end confdefs.h. */ |
| 18976 | |
| 18977 | |
| 18978 | $tmp_EXTERN char *dummy(char *buff); |
| 18979 | char *dummy(char *buff) |
| 18980 | { |
| 18981 | if(buff) |
| 18982 | return ++buff; |
| 18983 | else |
| 18984 | return buff; |
| 18985 | } |
| 18986 | |
| 18987 | int main (void) |
| 18988 | { |
| 18989 | |
| 18990 | char b[16]; |
| 18991 | char *r = dummy(&b[0]); |
| 18992 | if(r) |
| 18993 | return (int)*r; |
| 18994 | |
| 18995 | ; |
| 18996 | return 0; |
| 18997 | } |
| 18998 | |
| 18999 | _ACEOF |
| 19000 | if ac_fn_c_try_compile "$LINENO"; then : |
| 19001 | |
| 19002 | supports_symbol_hiding="yes" |
| 19003 | if test -f conftest.err; then |
| 19004 | grep 'visibility' conftest.err >/dev/null |
| 19005 | if test "$?" -eq "0"; then |
| 19006 | supports_symbol_hiding="no" |
| 19007 | fi |
| 19008 | fi |
| 19009 | |
| 19010 | else |
| 19011 | |
| 19012 | supports_symbol_hiding="no" |
| 19013 | echo " " >&6 |
| 19014 | sed 's/^/cc-src: /' conftest.$ac_ext >&6 |
| 19015 | sed 's/^/cc-err: /' conftest.err >&6 |
| 19016 | echo " " >&6 |
| 19017 | |
| 19018 | fi |
| 19019 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19020 | CFLAGS="$tmp_save_CFLAGS" |
| 19021 | fi |
| 19022 | if test "$supports_symbol_hiding" = "yes"; then |
| 19023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 19024 | $as_echo "yes" >&6; } |
| 19025 | symbol_hiding_CFLAGS="$tmp_CFLAGS" |
| 19026 | symbol_hiding_EXTERN="$tmp_EXTERN" |
| 19027 | else |
| 19028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 19029 | $as_echo "no" >&6; } |
| 19030 | fi |
| 19031 | |
| 19032 | |
| 19033 | |
| 19034 | supports_curldebug="unknown" |
| 19035 | if test "$want_curldebug" = "yes"; then |
| 19036 | if test "x$enable_shared" != "xno" && |
| 19037 | test "x$enable_shared" != "xyes"; then |
| 19038 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5 |
| 19039 | $as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;} |
| 19040 | supports_curldebug="no" |
| 19041 | fi |
| 19042 | if test "x$enable_static" != "xno" && |
| 19043 | test "x$enable_static" != "xyes"; then |
| 19044 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5 |
| 19045 | $as_echo "$as_me: WARNING: unknown enable_static setting." >&2;} |
| 19046 | supports_curldebug="no" |
| 19047 | fi |
| 19048 | if test "$supports_curldebug" != "no"; then |
| 19049 | if test "$enable_shared" = "yes" && |
| 19050 | test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then |
| 19051 | supports_curldebug="no" |
| 19052 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5 |
| 19053 | $as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;} |
| 19054 | fi |
| 19055 | fi |
| 19056 | fi |
| 19057 | # |
| 19058 | if test "$want_curldebug" = "yes"; then |
| 19059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5 |
| 19060 | $as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; } |
| 19061 | test "$supports_curldebug" = "no" || supports_curldebug="yes" |
| 19062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5 |
| 19063 | $as_echo "$supports_curldebug" >&6; } |
| 19064 | if test "$supports_curldebug" = "no"; then |
| 19065 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5 |
| 19066 | $as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;} |
| 19067 | want_curldebug="no" |
| 19068 | fi |
| 19069 | fi |
| 19070 | # |
| 19071 | if test "$want_curldebug" = "yes"; then |
| 19072 | CPPFLAGS="-DCURLDEBUG $CPPFLAGS" |
| 19073 | squeeze CPPFLAGS |
| 19074 | fi |
| 19075 | if test "$want_debug" = "yes"; then |
| 19076 | CPPFLAGS="-DDEBUGBUILD $CPPFLAGS" |
| 19077 | squeeze CPPFLAGS |
| 19078 | fi |
| 19079 | |
| 19080 | if test x$want_curldebug = xyes; then |
| 19081 | CURLDEBUG_TRUE= |
| 19082 | CURLDEBUG_FALSE='#' |
| 19083 | else |
| 19084 | CURLDEBUG_TRUE='#' |
| 19085 | CURLDEBUG_FALSE= |
| 19086 | fi |
| 19087 | |
| 19088 | |
| 19089 | supports_unittests=yes |
| 19090 | # cross-compilation of unit tests static library/programs fails when |
| 19091 | # libcurl shared library is built. This might be due to a libtool or |
| 19092 | # automake issue. In this case we disable unit tests. |
| 19093 | if test "x$cross_compiling" != "xno" && |
| 19094 | test "x$enable_shared" != "xno"; then |
| 19095 | supports_unittests=no |
| 19096 | fi |
| 19097 | |
| 19098 | # IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to |
| 19099 | # a problem related with OpenSSL headers and library versions not matching. |
| 19100 | # Disable unit tests while time to further investigate this is found. |
| 19101 | case $host in |
| 19102 | mips-sgi-irix6.5) |
| 19103 | if test "$compiler_id" = "GNU_C"; then |
| 19104 | supports_unittests=no |
| 19105 | fi |
| 19106 | ;; |
| 19107 | esac |
| 19108 | |
| 19109 | # All AIX autobuilds fails unit tests linking against unittests library |
| 19110 | # due to unittests library being built with no symbols or members. Libtool ? |
| 19111 | # Disable unit tests while time to further investigate this is found. |
| 19112 | case $host_os in |
| 19113 | aix*) |
| 19114 | supports_unittests=no |
| 19115 | ;; |
| 19116 | esac |
| 19117 | |
| 19118 | if test "x$want_debug" = "xyes" && |
| 19119 | test "x$supports_unittests" = "xyes"; then |
| 19120 | want_unittests=yes |
| 19121 | else |
| 19122 | want_unittests=no |
| 19123 | fi |
| 19124 | if test x$want_unittests = xyes; then |
| 19125 | BUILD_UNITTESTS_TRUE= |
| 19126 | BUILD_UNITTESTS_FALSE='#' |
| 19127 | else |
| 19128 | BUILD_UNITTESTS_TRUE='#' |
| 19129 | BUILD_UNITTESTS_FALSE= |
| 19130 | fi |
| 19131 | |
| 19132 | |
| 19133 | |
| 19134 | |
| 19135 | |
| 19136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5 |
| 19137 | $as_echo_n "checking for windows.h... " >&6; } |
| 19138 | if ${curl_cv_header_windows_h+:} false; then : |
| 19139 | $as_echo_n "(cached) " >&6 |
| 19140 | else |
| 19141 | |
| 19142 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19143 | /* end confdefs.h. */ |
| 19144 | |
| 19145 | |
| 19146 | #undef inline |
| 19147 | #ifndef WIN32_LEAN_AND_MEAN |
| 19148 | #define WIN32_LEAN_AND_MEAN |
| 19149 | #endif |
| 19150 | #include <windows.h> |
| 19151 | |
| 19152 | int main (void) |
| 19153 | { |
| 19154 | |
| 19155 | #if defined(__CYGWIN__) || defined(__CEGCC__) |
| 19156 | HAVE_WINDOWS_H shall not be defined. |
| 19157 | #else |
| 19158 | int dummy=2*WINVER; |
| 19159 | #endif |
| 19160 | |
| 19161 | ; |
| 19162 | return 0; |
| 19163 | } |
| 19164 | |
| 19165 | _ACEOF |
| 19166 | if ac_fn_c_try_compile "$LINENO"; then : |
| 19167 | |
| 19168 | curl_cv_header_windows_h="yes" |
| 19169 | |
| 19170 | else |
| 19171 | |
| 19172 | curl_cv_header_windows_h="no" |
| 19173 | |
| 19174 | fi |
| 19175 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19176 | |
| 19177 | fi |
| 19178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5 |
| 19179 | $as_echo "$curl_cv_header_windows_h" >&6; } |
| 19180 | case "$curl_cv_header_windows_h" in |
| 19181 | yes) |
| 19182 | |
| 19183 | cat >>confdefs.h <<_ACEOF |
| 19184 | #define HAVE_WINDOWS_H 1 |
| 19185 | _ACEOF |
| 19186 | |
| 19187 | |
| 19188 | cat >>confdefs.h <<_ACEOF |
| 19189 | #define WIN32_LEAN_AND_MEAN 1 |
| 19190 | _ACEOF |
| 19191 | |
| 19192 | ;; |
| 19193 | esac |
| 19194 | |
| 19195 | |
| 19196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5 |
| 19197 | $as_echo_n "checking whether build target is a native Windows one... " >&6; } |
| 19198 | if ${curl_cv_native_windows+:} false; then : |
| 19199 | $as_echo_n "(cached) " >&6 |
| 19200 | else |
| 19201 | |
| 19202 | if test "$curl_cv_header_windows_h" = "no"; then |
| 19203 | curl_cv_native_windows="no" |
| 19204 | else |
| 19205 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19206 | /* end confdefs.h. */ |
| 19207 | |
| 19208 | |
| 19209 | |
| 19210 | int main (void) |
| 19211 | { |
| 19212 | |
| 19213 | #if defined(__MINGW32__) || defined(__MINGW32CE__) || \ |
| 19214 | (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))) |
| 19215 | int dummy=1; |
| 19216 | #else |
| 19217 | Not a native Windows build target. |
| 19218 | #endif |
| 19219 | |
| 19220 | ; |
| 19221 | return 0; |
| 19222 | } |
| 19223 | |
| 19224 | _ACEOF |
| 19225 | if ac_fn_c_try_compile "$LINENO"; then : |
| 19226 | |
| 19227 | curl_cv_native_windows="yes" |
| 19228 | |
| 19229 | else |
| 19230 | |
| 19231 | curl_cv_native_windows="no" |
| 19232 | |
| 19233 | fi |
| 19234 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19235 | fi |
| 19236 | |
| 19237 | fi |
| 19238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5 |
| 19239 | $as_echo "$curl_cv_native_windows" >&6; } |
| 19240 | if test "x$curl_cv_native_windows" = xyes; then |
| 19241 | DOING_NATIVE_WINDOWS_TRUE= |
| 19242 | DOING_NATIVE_WINDOWS_FALSE='#' |
| 19243 | else |
| 19244 | DOING_NATIVE_WINDOWS_TRUE='#' |
| 19245 | DOING_NATIVE_WINDOWS_FALSE= |
| 19246 | fi |
| 19247 | |
| 19248 | |
| 19249 | case X-"$curl_cv_native_windows" in |
| 19250 | X-yes) |
| 19251 | |
| 19252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5 |
| 19253 | $as_echo_n "checking for winsock.h... " >&6; } |
| 19254 | if ${curl_cv_header_winsock_h+:} false; then : |
| 19255 | $as_echo_n "(cached) " >&6 |
| 19256 | else |
| 19257 | |
| 19258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19259 | /* end confdefs.h. */ |
| 19260 | |
| 19261 | |
| 19262 | #undef inline |
| 19263 | #ifndef WIN32_LEAN_AND_MEAN |
| 19264 | #define WIN32_LEAN_AND_MEAN |
| 19265 | #endif |
| 19266 | #include <windows.h> |
| 19267 | #include <winsock.h> |
| 19268 | |
| 19269 | int main (void) |
| 19270 | { |
| 19271 | |
| 19272 | #if defined(__CYGWIN__) || defined(__CEGCC__) |
| 19273 | HAVE_WINSOCK_H shall not be defined. |
| 19274 | #else |
| 19275 | int dummy=WSACleanup(); |
| 19276 | #endif |
| 19277 | |
| 19278 | ; |
| 19279 | return 0; |
| 19280 | } |
| 19281 | |
| 19282 | _ACEOF |
| 19283 | if ac_fn_c_try_compile "$LINENO"; then : |
| 19284 | |
| 19285 | curl_cv_header_winsock_h="yes" |
| 19286 | |
| 19287 | else |
| 19288 | |
| 19289 | curl_cv_header_winsock_h="no" |
| 19290 | |
| 19291 | fi |
| 19292 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19293 | |
| 19294 | fi |
| 19295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5 |
| 19296 | $as_echo "$curl_cv_header_winsock_h" >&6; } |
| 19297 | case "$curl_cv_header_winsock_h" in |
| 19298 | yes) |
| 19299 | |
| 19300 | cat >>confdefs.h <<_ACEOF |
| 19301 | #define HAVE_WINSOCK_H 1 |
| 19302 | _ACEOF |
| 19303 | |
| 19304 | ;; |
| 19305 | esac |
| 19306 | |
| 19307 | |
| 19308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5 |
| 19309 | $as_echo_n "checking for winsock2.h... " >&6; } |
| 19310 | if ${curl_cv_header_winsock2_h+:} false; then : |
| 19311 | $as_echo_n "(cached) " >&6 |
| 19312 | else |
| 19313 | |
| 19314 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19315 | /* end confdefs.h. */ |
| 19316 | |
| 19317 | |
| 19318 | #undef inline |
| 19319 | #ifndef WIN32_LEAN_AND_MEAN |
| 19320 | #define WIN32_LEAN_AND_MEAN |
| 19321 | #endif |
| 19322 | #include <windows.h> |
| 19323 | #include <winsock2.h> |
| 19324 | |
| 19325 | int main (void) |
| 19326 | { |
| 19327 | |
| 19328 | #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__) |
| 19329 | HAVE_WINSOCK2_H shall not be defined. |
| 19330 | #else |
| 19331 | int dummy=2*IPPROTO_ESP; |
| 19332 | #endif |
| 19333 | |
| 19334 | ; |
| 19335 | return 0; |
| 19336 | } |
| 19337 | |
| 19338 | _ACEOF |
| 19339 | if ac_fn_c_try_compile "$LINENO"; then : |
| 19340 | |
| 19341 | curl_cv_header_winsock2_h="yes" |
| 19342 | |
| 19343 | else |
| 19344 | |
| 19345 | curl_cv_header_winsock2_h="no" |
| 19346 | |
| 19347 | fi |
| 19348 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19349 | |
| 19350 | fi |
| 19351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5 |
| 19352 | $as_echo "$curl_cv_header_winsock2_h" >&6; } |
| 19353 | case "$curl_cv_header_winsock2_h" in |
| 19354 | yes) |
| 19355 | |
| 19356 | cat >>confdefs.h <<_ACEOF |
| 19357 | #define HAVE_WINSOCK2_H 1 |
| 19358 | _ACEOF |
| 19359 | |
| 19360 | ;; |
| 19361 | esac |
| 19362 | |
| 19363 | |
| 19364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5 |
| 19365 | $as_echo_n "checking for ws2tcpip.h... " >&6; } |
| 19366 | if ${curl_cv_header_ws2tcpip_h+:} false; then : |
| 19367 | $as_echo_n "(cached) " >&6 |
| 19368 | else |
| 19369 | |
| 19370 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19371 | /* end confdefs.h. */ |
| 19372 | |
| 19373 | |
| 19374 | #undef inline |
| 19375 | #ifndef WIN32_LEAN_AND_MEAN |
| 19376 | #define WIN32_LEAN_AND_MEAN |
| 19377 | #endif |
| 19378 | #include <windows.h> |
| 19379 | #include <winsock2.h> |
| 19380 | #include <ws2tcpip.h> |
| 19381 | |
| 19382 | int main (void) |
| 19383 | { |
| 19384 | |
| 19385 | #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__) |
| 19386 | HAVE_WS2TCPIP_H shall not be defined. |
| 19387 | #else |
| 19388 | int dummy=2*IP_PKTINFO; |
| 19389 | #endif |
| 19390 | |
| 19391 | ; |
| 19392 | return 0; |
| 19393 | } |
| 19394 | |
| 19395 | _ACEOF |
| 19396 | if ac_fn_c_try_compile "$LINENO"; then : |
| 19397 | |
| 19398 | curl_cv_header_ws2tcpip_h="yes" |
| 19399 | |
| 19400 | else |
| 19401 | |
| 19402 | curl_cv_header_ws2tcpip_h="no" |
| 19403 | |
| 19404 | fi |
| 19405 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19406 | |
| 19407 | fi |
| 19408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5 |
| 19409 | $as_echo "$curl_cv_header_ws2tcpip_h" >&6; } |
| 19410 | case "$curl_cv_header_ws2tcpip_h" in |
| 19411 | yes) |
| 19412 | |
| 19413 | cat >>confdefs.h <<_ACEOF |
| 19414 | #define HAVE_WS2TCPIP_H 1 |
| 19415 | _ACEOF |
| 19416 | |
| 19417 | ;; |
| 19418 | esac |
| 19419 | |
| 19420 | |
| 19421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5 |
| 19422 | $as_echo_n "checking for winldap.h... " >&6; } |
| 19423 | if ${curl_cv_header_winldap_h+:} false; then : |
| 19424 | $as_echo_n "(cached) " >&6 |
| 19425 | else |
| 19426 | |
| 19427 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19428 | /* end confdefs.h. */ |
| 19429 | |
| 19430 | |
| 19431 | #undef inline |
| 19432 | #ifdef HAVE_WINDOWS_H |
| 19433 | #ifndef WIN32_LEAN_AND_MEAN |
| 19434 | #define WIN32_LEAN_AND_MEAN |
| 19435 | #endif |
| 19436 | #include <windows.h> |
| 19437 | #endif |
| 19438 | #include <winldap.h> |
| 19439 | |
| 19440 | int main (void) |
| 19441 | { |
| 19442 | |
| 19443 | #if defined(__CYGWIN__) || defined(__CEGCC__) |
| 19444 | HAVE_WINLDAP_H shall not be defined. |
| 19445 | #else |
| 19446 | LDAP *ldp = ldap_init("dummy", LDAP_PORT); |
| 19447 | ULONG res = ldap_unbind(ldp); |
| 19448 | #endif |
| 19449 | |
| 19450 | ; |
| 19451 | return 0; |
| 19452 | } |
| 19453 | |
| 19454 | _ACEOF |
| 19455 | if ac_fn_c_try_compile "$LINENO"; then : |
| 19456 | |
| 19457 | curl_cv_header_winldap_h="yes" |
| 19458 | |
| 19459 | else |
| 19460 | |
| 19461 | curl_cv_header_winldap_h="no" |
| 19462 | |
| 19463 | fi |
| 19464 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19465 | |
| 19466 | fi |
| 19467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winldap_h" >&5 |
| 19468 | $as_echo "$curl_cv_header_winldap_h" >&6; } |
| 19469 | case "$curl_cv_header_winldap_h" in |
| 19470 | yes) |
| 19471 | |
| 19472 | cat >>confdefs.h <<_ACEOF |
| 19473 | #define HAVE_WINLDAP_H 1 |
| 19474 | _ACEOF |
| 19475 | |
| 19476 | ;; |
| 19477 | esac |
| 19478 | |
| 19479 | |
| 19480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5 |
| 19481 | $as_echo_n "checking for winber.h... " >&6; } |
| 19482 | if ${curl_cv_header_winber_h+:} false; then : |
| 19483 | $as_echo_n "(cached) " >&6 |
| 19484 | else |
| 19485 | |
| 19486 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19487 | /* end confdefs.h. */ |
| 19488 | |
| 19489 | |
| 19490 | #undef inline |
| 19491 | #ifdef HAVE_WINDOWS_H |
| 19492 | #ifndef WIN32_LEAN_AND_MEAN |
| 19493 | #define WIN32_LEAN_AND_MEAN |
| 19494 | #endif |
| 19495 | #include <windows.h> |
| 19496 | #endif |
| 19497 | #include <winldap.h> |
| 19498 | #include <winber.h> |
| 19499 | |
| 19500 | int main (void) |
| 19501 | { |
| 19502 | |
| 19503 | #if defined(__CYGWIN__) || defined(__CEGCC__) |
| 19504 | HAVE_WINBER_H shall not be defined. |
| 19505 | #else |
| 19506 | BERVAL *bvp = NULL; |
| 19507 | BerElement *bep = ber_init(bvp); |
| 19508 | ber_free(bep, 1); |
| 19509 | #endif |
| 19510 | |
| 19511 | ; |
| 19512 | return 0; |
| 19513 | } |
| 19514 | |
| 19515 | _ACEOF |
| 19516 | if ac_fn_c_try_compile "$LINENO"; then : |
| 19517 | |
| 19518 | curl_cv_header_winber_h="yes" |
| 19519 | |
| 19520 | else |
| 19521 | |
| 19522 | curl_cv_header_winber_h="no" |
| 19523 | |
| 19524 | fi |
| 19525 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19526 | |
| 19527 | fi |
| 19528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winber_h" >&5 |
| 19529 | $as_echo "$curl_cv_header_winber_h" >&6; } |
| 19530 | case "$curl_cv_header_winber_h" in |
| 19531 | yes) |
| 19532 | |
| 19533 | cat >>confdefs.h <<_ACEOF |
| 19534 | #define HAVE_WINBER_H 1 |
| 19535 | _ACEOF |
| 19536 | |
| 19537 | ;; |
| 19538 | esac |
| 19539 | |
| 19540 | ;; |
| 19541 | *) |
| 19542 | curl_cv_header_winsock_h="no" |
| 19543 | curl_cv_header_winsock2_h="no" |
| 19544 | curl_cv_header_ws2tcpip_h="no" |
| 19545 | curl_cv_header_winldap_h="no" |
| 19546 | curl_cv_header_winber_h="no" |
| 19547 | ;; |
| 19548 | esac |
| 19549 | |
| 19550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5 |
| 19551 | $as_echo_n "checking whether build target supports WIN32 file API... " >&6; } |
| 19552 | curl_win32_file_api="no" |
| 19553 | if test "$curl_cv_header_windows_h" = "yes"; then |
| 19554 | if test x"$enable_largefile" != "xno"; then |
| 19555 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19556 | /* end confdefs.h. */ |
| 19557 | |
| 19558 | |
| 19559 | |
| 19560 | int main (void) |
| 19561 | { |
| 19562 | |
| 19563 | #if !defined(_WIN32_WCE) && \ |
| 19564 | (defined(__MINGW32__) || \ |
| 19565 | (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))) |
| 19566 | int dummy=1; |
| 19567 | #else |
| 19568 | WIN32 large file API not supported. |
| 19569 | #endif |
| 19570 | |
| 19571 | ; |
| 19572 | return 0; |
| 19573 | } |
| 19574 | |
| 19575 | _ACEOF |
| 19576 | if ac_fn_c_try_compile "$LINENO"; then : |
| 19577 | |
| 19578 | curl_win32_file_api="win32_large_files" |
| 19579 | |
| 19580 | fi |
| 19581 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19582 | fi |
| 19583 | if test "$curl_win32_file_api" = "no"; then |
| 19584 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19585 | /* end confdefs.h. */ |
| 19586 | |
| 19587 | |
| 19588 | |
| 19589 | int main (void) |
| 19590 | { |
| 19591 | |
| 19592 | #if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER) |
| 19593 | int dummy=1; |
| 19594 | #else |
| 19595 | WIN32 small file API not supported. |
| 19596 | #endif |
| 19597 | |
| 19598 | ; |
| 19599 | return 0; |
| 19600 | } |
| 19601 | |
| 19602 | _ACEOF |
| 19603 | if ac_fn_c_try_compile "$LINENO"; then : |
| 19604 | |
| 19605 | curl_win32_file_api="win32_small_files" |
| 19606 | |
| 19607 | fi |
| 19608 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19609 | fi |
| 19610 | fi |
| 19611 | case "$curl_win32_file_api" in |
| 19612 | win32_large_files) |
| 19613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5 |
| 19614 | $as_echo "yes (large file enabled)" >&6; } |
| 19615 | |
| 19616 | cat >>confdefs.h <<_ACEOF |
| 19617 | #define USE_WIN32_LARGE_FILES 1 |
| 19618 | _ACEOF |
| 19619 | |
| 19620 | ;; |
| 19621 | win32_small_files) |
| 19622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5 |
| 19623 | $as_echo "yes (large file disabled)" >&6; } |
| 19624 | |
| 19625 | cat >>confdefs.h <<_ACEOF |
| 19626 | #define USE_WIN32_SMALL_FILES 1 |
| 19627 | _ACEOF |
| 19628 | |
| 19629 | ;; |
| 19630 | *) |
| 19631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 19632 | $as_echo "no" >&6; } |
| 19633 | ;; |
| 19634 | esac |
| 19635 | |
| 19636 | |
| 19637 | |
| 19638 | |
| 19639 | tst_cflags="no" |
| 19640 | case $host_os in |
| 19641 | darwin*) |
| 19642 | tst_cflags="yes" |
| 19643 | ;; |
| 19644 | esac |
| 19645 | |
| 19646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good-to-use Mac CFLAGS" >&5 |
| 19647 | $as_echo_n "checking for good-to-use Mac CFLAGS... " >&6; } |
| 19648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_cflags" >&5 |
| 19649 | $as_echo "$tst_cflags" >&6; }; |
| 19650 | |
| 19651 | if test "$tst_cflags" = "yes"; then |
| 19652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for *version-min in CFLAGS" >&5 |
| 19653 | $as_echo_n "checking for *version-min in CFLAGS... " >&6; } |
| 19654 | min="" |
| 19655 | if test -z "$(echo $CFLAGS | grep m.*os.*-version-min)"; then |
| 19656 | min="-mmacosx-version-min=10.8" |
| 19657 | CFLAGS="$CFLAGS $min" |
| 19658 | fi |
| 19659 | if test -z "$min"; then |
| 19660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: set by user" >&5 |
| 19661 | $as_echo "set by user" >&6; } |
| 19662 | else |
| 19663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $min set" >&5 |
| 19664 | $as_echo "$min set" >&6; } |
| 19665 | fi |
| 19666 | |
| 19667 | old_CFLAGS=$CFLAGS |
| 19668 | CFLAGS="$CFLAGS -Werror=partial-availability" |
| 19669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=partial-availability" >&5 |
| 19670 | $as_echo_n "checking whether $CC accepts -Werror=partial-availability... " >&6; } |
| 19671 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19672 | /* end confdefs.h. */ |
| 19673 | |
| 19674 | int main (void) |
| 19675 | { |
| 19676 | |
| 19677 | ; |
| 19678 | return 0; |
| 19679 | } |
| 19680 | _ACEOF |
| 19681 | if ac_fn_c_try_compile "$LINENO"; then : |
| 19682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 19683 | $as_echo "yes" >&6; } |
| 19684 | else |
| 19685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 19686 | $as_echo "no" >&6; } |
| 19687 | CFLAGS=$old_CFLAGS |
| 19688 | fi |
| 19689 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19690 | fi |
| 19691 | |
| 19692 | |
| 19693 | |
| 19694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5 |
| 19695 | $as_echo_n "checking whether to support http... " >&6; } |
| 19696 | # Check whether --enable-http was given. |
| 19697 | if test "${enable_http+set}" = set; then : |
| 19698 | enableval=$enable_http; case "$enableval" in |
| 19699 | no) |
| 19700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 19701 | $as_echo "no" >&6; } |
| 19702 | |
| 19703 | $as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h |
| 19704 | |
| 19705 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5 |
| 19706 | $as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;} |
| 19707 | CURL_DISABLE_HTTP=1 |
| 19708 | |
| 19709 | |
| 19710 | $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h |
| 19711 | |
| 19712 | CURL_DISABLE_RTSP=1 |
| 19713 | |
| 19714 | ;; |
| 19715 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 19716 | $as_echo "yes" >&6; } |
| 19717 | ;; |
| 19718 | esac |
| 19719 | else |
| 19720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 19721 | $as_echo "yes" >&6; } |
| 19722 | |
| 19723 | fi |
| 19724 | |
| 19725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5 |
| 19726 | $as_echo_n "checking whether to support ftp... " >&6; } |
| 19727 | # Check whether --enable-ftp was given. |
| 19728 | if test "${enable_ftp+set}" = set; then : |
| 19729 | enableval=$enable_ftp; case "$enableval" in |
| 19730 | no) |
| 19731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 19732 | $as_echo "no" >&6; } |
| 19733 | |
| 19734 | $as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h |
| 19735 | |
| 19736 | CURL_DISABLE_FTP=1 |
| 19737 | |
| 19738 | ;; |
| 19739 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 19740 | $as_echo "yes" >&6; } |
| 19741 | ;; |
| 19742 | esac |
| 19743 | else |
| 19744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 19745 | $as_echo "yes" >&6; } |
| 19746 | |
| 19747 | fi |
| 19748 | |
| 19749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5 |
| 19750 | $as_echo_n "checking whether to support file... " >&6; } |
| 19751 | # Check whether --enable-file was given. |
| 19752 | if test "${enable_file+set}" = set; then : |
| 19753 | enableval=$enable_file; case "$enableval" in |
| 19754 | no) |
| 19755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 19756 | $as_echo "no" >&6; } |
| 19757 | |
| 19758 | $as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h |
| 19759 | |
| 19760 | CURL_DISABLE_FILE=1 |
| 19761 | |
| 19762 | ;; |
| 19763 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 19764 | $as_echo "yes" >&6; } |
| 19765 | ;; |
| 19766 | esac |
| 19767 | else |
| 19768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 19769 | $as_echo "yes" >&6; } |
| 19770 | |
| 19771 | fi |
| 19772 | |
| 19773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5 |
| 19774 | $as_echo_n "checking whether to support ldap... " >&6; } |
| 19775 | # Check whether --enable-ldap was given. |
| 19776 | if test "${enable_ldap+set}" = set; then : |
| 19777 | enableval=$enable_ldap; case "$enableval" in |
| 19778 | no) |
| 19779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 19780 | $as_echo "no" >&6; } |
| 19781 | |
| 19782 | $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h |
| 19783 | |
| 19784 | CURL_DISABLE_LDAP=1 |
| 19785 | |
| 19786 | ;; |
| 19787 | *) |
| 19788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 19789 | $as_echo "yes" >&6; } |
| 19790 | ;; |
| 19791 | esac |
| 19792 | else |
| 19793 | |
| 19794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 19795 | $as_echo "yes" >&6; } |
| 19796 | |
| 19797 | fi |
| 19798 | |
| 19799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5 |
| 19800 | $as_echo_n "checking whether to support ldaps... " >&6; } |
| 19801 | # Check whether --enable-ldaps was given. |
| 19802 | if test "${enable_ldaps+set}" = set; then : |
| 19803 | enableval=$enable_ldaps; case "$enableval" in |
| 19804 | no) |
| 19805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 19806 | $as_echo "no" >&6; } |
| 19807 | |
| 19808 | $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h |
| 19809 | |
| 19810 | CURL_DISABLE_LDAPS=1 |
| 19811 | |
| 19812 | ;; |
| 19813 | *) if test "x$CURL_DISABLE_LDAP" = "x1" ; then |
| 19814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5 |
| 19815 | $as_echo "LDAP needs to be enabled to support LDAPS" >&6; } |
| 19816 | |
| 19817 | $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h |
| 19818 | |
| 19819 | CURL_DISABLE_LDAPS=1 |
| 19820 | |
| 19821 | else |
| 19822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 19823 | $as_echo "yes" >&6; } |
| 19824 | |
| 19825 | $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h |
| 19826 | |
| 19827 | HAVE_LDAP_SSL=1 |
| 19828 | |
| 19829 | fi |
| 19830 | ;; |
| 19831 | esac |
| 19832 | else |
| 19833 | |
| 19834 | if test "x$CURL_DISABLE_LDAP" = "x1" ; then |
| 19835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 19836 | $as_echo "no" >&6; } |
| 19837 | |
| 19838 | $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h |
| 19839 | |
| 19840 | CURL_DISABLE_LDAPS=1 |
| 19841 | |
| 19842 | else |
| 19843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 19844 | $as_echo "yes" >&6; } |
| 19845 | |
| 19846 | $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h |
| 19847 | |
| 19848 | HAVE_LDAP_SSL=1 |
| 19849 | |
| 19850 | fi |
| 19851 | |
| 19852 | fi |
| 19853 | |
| 19854 | |
| 19855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5 |
| 19856 | $as_echo_n "checking whether to support rtsp... " >&6; } |
| 19857 | # Check whether --enable-rtsp was given. |
| 19858 | if test "${enable_rtsp+set}" = set; then : |
| 19859 | enableval=$enable_rtsp; case "$enableval" in |
| 19860 | no) |
| 19861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 19862 | $as_echo "no" >&6; } |
| 19863 | |
| 19864 | $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h |
| 19865 | |
| 19866 | CURL_DISABLE_RTSP=1 |
| 19867 | |
| 19868 | ;; |
| 19869 | *) if test x$CURL_DISABLE_HTTP = x1 ; then |
| 19870 | as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5 |
| 19871 | else |
| 19872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 19873 | $as_echo "yes" >&6; } |
| 19874 | curl_rtsp_msg="enabled" |
| 19875 | fi |
| 19876 | ;; |
| 19877 | esac |
| 19878 | else |
| 19879 | if test "x$CURL_DISABLE_HTTP" != "x1"; then |
| 19880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 19881 | $as_echo "yes" >&6; } |
| 19882 | curl_rtsp_msg="enabled" |
| 19883 | else |
| 19884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 19885 | $as_echo "no" >&6; } |
| 19886 | fi |
| 19887 | |
| 19888 | fi |
| 19889 | |
| 19890 | |
| 19891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5 |
| 19892 | $as_echo_n "checking whether to support proxies... " >&6; } |
| 19893 | # Check whether --enable-proxy was given. |
| 19894 | if test "${enable_proxy+set}" = set; then : |
| 19895 | enableval=$enable_proxy; case "$enableval" in |
| 19896 | no) |
| 19897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 19898 | $as_echo "no" >&6; } |
| 19899 | |
| 19900 | $as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h |
| 19901 | |
| 19902 | CURL_DISABLE_PROXY=1 |
| 19903 | |
| 19904 | ;; |
| 19905 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 19906 | $as_echo "yes" >&6; } |
| 19907 | ;; |
| 19908 | esac |
| 19909 | else |
| 19910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 19911 | $as_echo "yes" >&6; } |
| 19912 | |
| 19913 | fi |
| 19914 | |
| 19915 | |
| 19916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5 |
| 19917 | $as_echo_n "checking whether to support dict... " >&6; } |
| 19918 | # Check whether --enable-dict was given. |
| 19919 | if test "${enable_dict+set}" = set; then : |
| 19920 | enableval=$enable_dict; case "$enableval" in |
| 19921 | no) |
| 19922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 19923 | $as_echo "no" >&6; } |
| 19924 | |
| 19925 | $as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h |
| 19926 | |
| 19927 | CURL_DISABLE_DICT=1 |
| 19928 | |
| 19929 | ;; |
| 19930 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 19931 | $as_echo "yes" >&6; } |
| 19932 | ;; |
| 19933 | esac |
| 19934 | else |
| 19935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 19936 | $as_echo "yes" >&6; } |
| 19937 | |
| 19938 | fi |
| 19939 | |
| 19940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5 |
| 19941 | $as_echo_n "checking whether to support telnet... " >&6; } |
| 19942 | # Check whether --enable-telnet was given. |
| 19943 | if test "${enable_telnet+set}" = set; then : |
| 19944 | enableval=$enable_telnet; case "$enableval" in |
| 19945 | no) |
| 19946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 19947 | $as_echo "no" >&6; } |
| 19948 | |
| 19949 | $as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h |
| 19950 | |
| 19951 | CURL_DISABLE_TELNET=1 |
| 19952 | |
| 19953 | ;; |
| 19954 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 19955 | $as_echo "yes" >&6; } |
| 19956 | ;; |
| 19957 | esac |
| 19958 | else |
| 19959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 19960 | $as_echo "yes" >&6; } |
| 19961 | |
| 19962 | fi |
| 19963 | |
| 19964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5 |
| 19965 | $as_echo_n "checking whether to support tftp... " >&6; } |
| 19966 | # Check whether --enable-tftp was given. |
| 19967 | if test "${enable_tftp+set}" = set; then : |
| 19968 | enableval=$enable_tftp; case "$enableval" in |
| 19969 | no) |
| 19970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 19971 | $as_echo "no" >&6; } |
| 19972 | |
| 19973 | $as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h |
| 19974 | |
| 19975 | CURL_DISABLE_TFTP=1 |
| 19976 | |
| 19977 | ;; |
| 19978 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 19979 | $as_echo "yes" >&6; } |
| 19980 | ;; |
| 19981 | esac |
| 19982 | else |
| 19983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 19984 | $as_echo "yes" >&6; } |
| 19985 | |
| 19986 | fi |
| 19987 | |
| 19988 | |
| 19989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5 |
| 19990 | $as_echo_n "checking whether to support pop3... " >&6; } |
| 19991 | # Check whether --enable-pop3 was given. |
| 19992 | if test "${enable_pop3+set}" = set; then : |
| 19993 | enableval=$enable_pop3; case "$enableval" in |
| 19994 | no) |
| 19995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 19996 | $as_echo "no" >&6; } |
| 19997 | |
| 19998 | $as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h |
| 19999 | |
| 20000 | CURL_DISABLE_POP3=1 |
| 20001 | |
| 20002 | ;; |
| 20003 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 20004 | $as_echo "yes" >&6; } |
| 20005 | ;; |
| 20006 | esac |
| 20007 | else |
| 20008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 20009 | $as_echo "yes" >&6; } |
| 20010 | |
| 20011 | fi |
| 20012 | |
| 20013 | |
| 20014 | |
| 20015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5 |
| 20016 | $as_echo_n "checking whether to support imap... " >&6; } |
| 20017 | # Check whether --enable-imap was given. |
| 20018 | if test "${enable_imap+set}" = set; then : |
| 20019 | enableval=$enable_imap; case "$enableval" in |
| 20020 | no) |
| 20021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 20022 | $as_echo "no" >&6; } |
| 20023 | |
| 20024 | $as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h |
| 20025 | |
| 20026 | CURL_DISABLE_IMAP=1 |
| 20027 | |
| 20028 | ;; |
| 20029 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 20030 | $as_echo "yes" >&6; } |
| 20031 | ;; |
| 20032 | esac |
| 20033 | else |
| 20034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 20035 | $as_echo "yes" >&6; } |
| 20036 | |
| 20037 | fi |
| 20038 | |
| 20039 | |
| 20040 | |
| 20041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5 |
| 20042 | $as_echo_n "checking whether to support smb... " >&6; } |
| 20043 | # Check whether --enable-smb was given. |
| 20044 | if test "${enable_smb+set}" = set; then : |
| 20045 | enableval=$enable_smb; case "$enableval" in |
| 20046 | no) |
| 20047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 20048 | $as_echo "no" >&6; } |
| 20049 | |
| 20050 | $as_echo "#define CURL_DISABLE_SMB 1" >>confdefs.h |
| 20051 | |
| 20052 | CURL_DISABLE_SMB=1 |
| 20053 | |
| 20054 | ;; |
| 20055 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 20056 | $as_echo "yes" >&6; } |
| 20057 | ;; |
| 20058 | esac |
| 20059 | else |
| 20060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 20061 | $as_echo "yes" >&6; } |
| 20062 | |
| 20063 | fi |
| 20064 | |
| 20065 | |
| 20066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5 |
| 20067 | $as_echo_n "checking whether to support smtp... " >&6; } |
| 20068 | # Check whether --enable-smtp was given. |
| 20069 | if test "${enable_smtp+set}" = set; then : |
| 20070 | enableval=$enable_smtp; case "$enableval" in |
| 20071 | no) |
| 20072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 20073 | $as_echo "no" >&6; } |
| 20074 | |
| 20075 | $as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h |
| 20076 | |
| 20077 | CURL_DISABLE_SMTP=1 |
| 20078 | |
| 20079 | ;; |
| 20080 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 20081 | $as_echo "yes" >&6; } |
| 20082 | ;; |
| 20083 | esac |
| 20084 | else |
| 20085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 20086 | $as_echo "yes" >&6; } |
| 20087 | |
| 20088 | fi |
| 20089 | |
| 20090 | |
| 20091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5 |
| 20092 | $as_echo_n "checking whether to support gopher... " >&6; } |
| 20093 | # Check whether --enable-gopher was given. |
| 20094 | if test "${enable_gopher+set}" = set; then : |
| 20095 | enableval=$enable_gopher; case "$enableval" in |
| 20096 | no) |
| 20097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 20098 | $as_echo "no" >&6; } |
| 20099 | |
| 20100 | $as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h |
| 20101 | |
| 20102 | CURL_DISABLE_GOPHER=1 |
| 20103 | |
| 20104 | ;; |
| 20105 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 20106 | $as_echo "yes" >&6; } |
| 20107 | ;; |
| 20108 | esac |
| 20109 | else |
| 20110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 20111 | $as_echo "yes" >&6; } |
| 20112 | |
| 20113 | fi |
| 20114 | |
| 20115 | |
| 20116 | |
| 20117 | |
| 20118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5 |
| 20119 | $as_echo_n "checking whether to provide built-in manual... " >&6; } |
| 20120 | # Check whether --enable-manual was given. |
| 20121 | if test "${enable_manual+set}" = set; then : |
| 20122 | enableval=$enable_manual; case "$enableval" in |
| 20123 | no) |
| 20124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 20125 | $as_echo "no" >&6; } |
| 20126 | ;; |
| 20127 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 20128 | $as_echo "yes" >&6; } |
| 20129 | USE_MANUAL="1" |
| 20130 | ;; |
| 20131 | esac |
| 20132 | else |
| 20133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 20134 | $as_echo "yes" >&6; } |
| 20135 | USE_MANUAL="1" |
| 20136 | |
| 20137 | fi |
| 20138 | |
| 20139 | |
| 20140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5 |
| 20141 | $as_echo_n "checking whether to enable generation of C code... " >&6; } |
| 20142 | # Check whether --enable-libcurl_option was given. |
| 20143 | if test "${enable_libcurl_option+set}" = set; then : |
| 20144 | enableval=$enable_libcurl_option; case "$enableval" in |
| 20145 | no) |
| 20146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 20147 | $as_echo "no" >&6; } |
| 20148 | |
| 20149 | $as_echo "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h |
| 20150 | |
| 20151 | curl_libcurl_msg="no" |
| 20152 | ;; |
| 20153 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 20154 | $as_echo "yes" >&6; } |
| 20155 | ;; |
| 20156 | esac |
| 20157 | else |
| 20158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 20159 | $as_echo "yes" >&6; } |
| 20160 | |
| 20161 | fi |
| 20162 | |
| 20163 | |
| 20164 | |
| 20165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5 |
| 20166 | $as_echo_n "checking whether to use libgcc... " >&6; } |
| 20167 | # Check whether --enable-libgcc was given. |
| 20168 | if test "${enable_libgcc+set}" = set; then : |
| 20169 | enableval=$enable_libgcc; case "$enableval" in |
| 20170 | yes) |
| 20171 | LIBS="-lgcc $LIBS" |
| 20172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 20173 | $as_echo "yes" >&6; } |
| 20174 | ;; |
| 20175 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 20176 | $as_echo "no" >&6; } |
| 20177 | ;; |
| 20178 | esac |
| 20179 | else |
| 20180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 20181 | $as_echo "no" >&6; } |
| 20182 | |
| 20183 | fi |
| 20184 | |
| 20185 | |
| 20186 | |
| 20187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5 |
| 20188 | $as_echo_n "checking if X/Open network library is required... " >&6; } |
| 20189 | tst_lib_xnet_required="no" |
| 20190 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20191 | /* end confdefs.h. */ |
| 20192 | |
| 20193 | |
| 20194 | int main (void) |
| 20195 | { |
| 20196 | #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600) |
| 20197 | return 0; |
| 20198 | #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED) |
| 20199 | return 0; |
| 20200 | #else |
| 20201 | force compilation error |
| 20202 | #endif |
| 20203 | } |
| 20204 | |
| 20205 | |
| 20206 | _ACEOF |
| 20207 | if ac_fn_c_try_compile "$LINENO"; then : |
| 20208 | |
| 20209 | tst_lib_xnet_required="yes" |
| 20210 | LIBS="-lxnet $LIBS" |
| 20211 | |
| 20212 | fi |
| 20213 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5 |
| 20215 | $as_echo "$tst_lib_xnet_required" >&6; } |
| 20216 | |
| 20217 | |
| 20218 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
| 20219 | if test "x$ac_cv_func_gethostbyname" = xyes; then : |
| 20220 | HAVE_GETHOSTBYNAME="1" |
| 20221 | |
| 20222 | else |
| 20223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 |
| 20224 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } |
| 20225 | if ${ac_cv_lib_nsl_gethostbyname+:} false; then : |
| 20226 | $as_echo_n "(cached) " >&6 |
| 20227 | else |
| 20228 | ac_check_lib_save_LIBS=$LIBS |
| 20229 | LIBS="-lnsl $LIBS" |
| 20230 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20231 | /* end confdefs.h. */ |
| 20232 | |
| 20233 | |
| 20234 | #ifdef __cplusplus |
| 20235 | extern "C" |
| 20236 | #endif |
| 20237 | char gethostbyname (); |
| 20238 | int main (void) |
| 20239 | { |
| 20240 | return gethostbyname (); |
| 20241 | ; |
| 20242 | return 0; |
| 20243 | } |
| 20244 | _ACEOF |
| 20245 | if ac_fn_c_try_link "$LINENO"; then : |
| 20246 | ac_cv_lib_nsl_gethostbyname=yes |
| 20247 | else |
| 20248 | ac_cv_lib_nsl_gethostbyname=no |
| 20249 | fi |
| 20250 | rm -f core conftest.err conftest.$ac_objext \ |
| 20251 | conftest$ac_exeext conftest.$ac_ext |
| 20252 | LIBS=$ac_check_lib_save_LIBS |
| 20253 | fi |
| 20254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 20255 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } |
| 20256 | if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : |
| 20257 | HAVE_GETHOSTBYNAME="1" |
| 20258 | LIBS="-lnsl $LIBS" |
| 20259 | |
| 20260 | fi |
| 20261 | |
| 20262 | |
| 20263 | fi |
| 20264 | |
| 20265 | |
| 20266 | if test "$HAVE_GETHOSTBYNAME" != "1" |
| 20267 | then |
| 20268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5 |
| 20269 | $as_echo_n "checking for gethostbyname in -lsocket... " >&6; } |
| 20270 | if ${ac_cv_lib_socket_gethostbyname+:} false; then : |
| 20271 | $as_echo_n "(cached) " >&6 |
| 20272 | else |
| 20273 | ac_check_lib_save_LIBS=$LIBS |
| 20274 | LIBS="-lsocket $LIBS" |
| 20275 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20276 | /* end confdefs.h. */ |
| 20277 | |
| 20278 | |
| 20279 | #ifdef __cplusplus |
| 20280 | extern "C" |
| 20281 | #endif |
| 20282 | char gethostbyname (); |
| 20283 | int main (void) |
| 20284 | { |
| 20285 | return gethostbyname (); |
| 20286 | ; |
| 20287 | return 0; |
| 20288 | } |
| 20289 | _ACEOF |
| 20290 | if ac_fn_c_try_link "$LINENO"; then : |
| 20291 | ac_cv_lib_socket_gethostbyname=yes |
| 20292 | else |
| 20293 | ac_cv_lib_socket_gethostbyname=no |
| 20294 | fi |
| 20295 | rm -f core conftest.err conftest.$ac_objext \ |
| 20296 | conftest$ac_exeext conftest.$ac_ext |
| 20297 | LIBS=$ac_check_lib_save_LIBS |
| 20298 | fi |
| 20299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5 |
| 20300 | $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; } |
| 20301 | if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then : |
| 20302 | HAVE_GETHOSTBYNAME="1" |
| 20303 | LIBS="-lsocket $LIBS" |
| 20304 | |
| 20305 | fi |
| 20306 | |
| 20307 | fi |
| 20308 | |
| 20309 | if test "$HAVE_GETHOSTBYNAME" != "1" |
| 20310 | then |
| 20311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5 |
| 20312 | $as_echo_n "checking for gethostbyname in -lwatt... " >&6; } |
| 20313 | if ${ac_cv_lib_watt_gethostbyname+:} false; then : |
| 20314 | $as_echo_n "(cached) " >&6 |
| 20315 | else |
| 20316 | ac_check_lib_save_LIBS=$LIBS |
| 20317 | LIBS="-lwatt $LIBS" |
| 20318 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20319 | /* end confdefs.h. */ |
| 20320 | |
| 20321 | |
| 20322 | #ifdef __cplusplus |
| 20323 | extern "C" |
| 20324 | #endif |
| 20325 | char gethostbyname (); |
| 20326 | int main (void) |
| 20327 | { |
| 20328 | return gethostbyname (); |
| 20329 | ; |
| 20330 | return 0; |
| 20331 | } |
| 20332 | _ACEOF |
| 20333 | if ac_fn_c_try_link "$LINENO"; then : |
| 20334 | ac_cv_lib_watt_gethostbyname=yes |
| 20335 | else |
| 20336 | ac_cv_lib_watt_gethostbyname=no |
| 20337 | fi |
| 20338 | rm -f core conftest.err conftest.$ac_objext \ |
| 20339 | conftest$ac_exeext conftest.$ac_ext |
| 20340 | LIBS=$ac_check_lib_save_LIBS |
| 20341 | fi |
| 20342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5 |
| 20343 | $as_echo "$ac_cv_lib_watt_gethostbyname" >&6; } |
| 20344 | if test "x$ac_cv_lib_watt_gethostbyname" = xyes; then : |
| 20345 | HAVE_GETHOSTBYNAME="1" |
| 20346 | CPPFLAGS="-I/dev/env/WATT_ROOT/inc" |
| 20347 | LDFLAGS="-L/dev/env/WATT_ROOT/lib" |
| 20348 | LIBS="-lwatt $LIBS" |
| 20349 | |
| 20350 | fi |
| 20351 | |
| 20352 | fi |
| 20353 | |
| 20354 | if test "$HAVE_GETHOSTBYNAME" != "1" |
| 20355 | then |
| 20356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5 |
| 20357 | $as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; } |
| 20358 | my_ac_save_LIBS=$LIBS |
| 20359 | LIBS="-lnsl -lsocket $LIBS" |
| 20360 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20361 | /* end confdefs.h. */ |
| 20362 | |
| 20363 | |
| 20364 | |
| 20365 | int main (void) |
| 20366 | { |
| 20367 | |
| 20368 | gethostbyname(); |
| 20369 | |
| 20370 | ; |
| 20371 | return 0; |
| 20372 | } |
| 20373 | |
| 20374 | _ACEOF |
| 20375 | if ac_fn_c_try_link "$LINENO"; then : |
| 20376 | |
| 20377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 20378 | $as_echo "yes" >&6; } |
| 20379 | HAVE_GETHOSTBYNAME="1" |
| 20380 | |
| 20381 | else |
| 20382 | |
| 20383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 20384 | $as_echo "no" >&6; } |
| 20385 | LIBS=$my_ac_save_LIBS |
| 20386 | |
| 20387 | fi |
| 20388 | rm -f core conftest.err conftest.$ac_objext \ |
| 20389 | conftest$ac_exeext conftest.$ac_ext |
| 20390 | fi |
| 20391 | |
| 20392 | if test "$HAVE_GETHOSTBYNAME" != "1" |
| 20393 | then |
| 20394 | if test "$curl_cv_header_windows_h" = "yes"; then |
| 20395 | if test "$curl_cv_header_winsock_h" = "yes"; then |
| 20396 | case $host in |
| 20397 | *-*-mingw32ce*) |
| 20398 | winsock_LIB="-lwinsock" |
| 20399 | ;; |
| 20400 | *) |
| 20401 | winsock_LIB="-lwsock32" |
| 20402 | ;; |
| 20403 | esac |
| 20404 | fi |
| 20405 | if test "$curl_cv_header_winsock2_h" = "yes"; then |
| 20406 | winsock_LIB="-lws2_32" |
| 20407 | fi |
| 20408 | if test ! -z "$winsock_LIB"; then |
| 20409 | my_ac_save_LIBS=$LIBS |
| 20410 | LIBS="$winsock_LIB $LIBS" |
| 20411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5 |
| 20412 | $as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; } |
| 20413 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20414 | /* end confdefs.h. */ |
| 20415 | |
| 20416 | |
| 20417 | #ifdef HAVE_WINDOWS_H |
| 20418 | #ifndef WIN32_LEAN_AND_MEAN |
| 20419 | #define WIN32_LEAN_AND_MEAN |
| 20420 | #endif |
| 20421 | #include <windows.h> |
| 20422 | #ifdef HAVE_WINSOCK2_H |
| 20423 | #include <winsock2.h> |
| 20424 | #else |
| 20425 | #ifdef HAVE_WINSOCK_H |
| 20426 | #include <winsock.h> |
| 20427 | #endif |
| 20428 | #endif |
| 20429 | #endif |
| 20430 | |
| 20431 | int main (void) |
| 20432 | { |
| 20433 | |
| 20434 | gethostbyname("www.dummysite.com"); |
| 20435 | |
| 20436 | ; |
| 20437 | return 0; |
| 20438 | } |
| 20439 | |
| 20440 | _ACEOF |
| 20441 | if ac_fn_c_try_link "$LINENO"; then : |
| 20442 | |
| 20443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 20444 | $as_echo "yes" >&6; } |
| 20445 | HAVE_GETHOSTBYNAME="1" |
| 20446 | |
| 20447 | else |
| 20448 | |
| 20449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 20450 | $as_echo "no" >&6; } |
| 20451 | winsock_LIB="" |
| 20452 | LIBS=$my_ac_save_LIBS |
| 20453 | |
| 20454 | fi |
| 20455 | rm -f core conftest.err conftest.$ac_objext \ |
| 20456 | conftest$ac_exeext conftest.$ac_ext |
| 20457 | fi |
| 20458 | fi |
| 20459 | fi |
| 20460 | |
| 20461 | if test "$HAVE_GETHOSTBYNAME" != "1" |
| 20462 | then |
| 20463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5 |
| 20464 | $as_echo_n "checking for gethostbyname for Minix 3... " >&6; } |
| 20465 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20466 | /* end confdefs.h. */ |
| 20467 | |
| 20468 | |
| 20469 | /* Older Minix versions may need <net/gen/netdb.h> here instead */ |
| 20470 | #include <netdb.h> |
| 20471 | |
| 20472 | int main (void) |
| 20473 | { |
| 20474 | |
| 20475 | gethostbyname("www.dummysite.com"); |
| 20476 | |
| 20477 | ; |
| 20478 | return 0; |
| 20479 | } |
| 20480 | |
| 20481 | _ACEOF |
| 20482 | if ac_fn_c_try_link "$LINENO"; then : |
| 20483 | |
| 20484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 20485 | $as_echo "yes" >&6; } |
| 20486 | HAVE_GETHOSTBYNAME="1" |
| 20487 | |
| 20488 | else |
| 20489 | |
| 20490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 20491 | $as_echo "no" >&6; } |
| 20492 | |
| 20493 | fi |
| 20494 | rm -f core conftest.err conftest.$ac_objext \ |
| 20495 | conftest$ac_exeext conftest.$ac_ext |
| 20496 | fi |
| 20497 | |
| 20498 | if test "$HAVE_GETHOSTBYNAME" != "1" |
| 20499 | then |
| 20500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5 |
| 20501 | $as_echo_n "checking for gethostbyname for eCos... " >&6; } |
| 20502 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20503 | /* end confdefs.h. */ |
| 20504 | |
| 20505 | |
| 20506 | #include <stdio.h> |
| 20507 | #include <netdb.h> |
| 20508 | |
| 20509 | int main (void) |
| 20510 | { |
| 20511 | |
| 20512 | gethostbyname("www.dummysite.com"); |
| 20513 | |
| 20514 | ; |
| 20515 | return 0; |
| 20516 | } |
| 20517 | |
| 20518 | _ACEOF |
| 20519 | if ac_fn_c_try_link "$LINENO"; then : |
| 20520 | |
| 20521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 20522 | $as_echo "yes" >&6; } |
| 20523 | HAVE_GETHOSTBYNAME="1" |
| 20524 | |
| 20525 | else |
| 20526 | |
| 20527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 20528 | $as_echo "no" >&6; } |
| 20529 | |
| 20530 | fi |
| 20531 | rm -f core conftest.err conftest.$ac_objext \ |
| 20532 | conftest$ac_exeext conftest.$ac_ext |
| 20533 | fi |
| 20534 | |
| 20535 | if test "$HAVE_GETHOSTBYNAME" != "1" |
| 20536 | then |
| 20537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5 |
| 20538 | $as_echo_n "checking for gethostbyname in -lnetwork... " >&6; } |
| 20539 | if ${ac_cv_lib_network_gethostbyname+:} false; then : |
| 20540 | $as_echo_n "(cached) " >&6 |
| 20541 | else |
| 20542 | ac_check_lib_save_LIBS=$LIBS |
| 20543 | LIBS="-lnetwork $LIBS" |
| 20544 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20545 | /* end confdefs.h. */ |
| 20546 | |
| 20547 | |
| 20548 | #ifdef __cplusplus |
| 20549 | extern "C" |
| 20550 | #endif |
| 20551 | char gethostbyname (); |
| 20552 | int main (void) |
| 20553 | { |
| 20554 | return gethostbyname (); |
| 20555 | ; |
| 20556 | return 0; |
| 20557 | } |
| 20558 | _ACEOF |
| 20559 | if ac_fn_c_try_link "$LINENO"; then : |
| 20560 | ac_cv_lib_network_gethostbyname=yes |
| 20561 | else |
| 20562 | ac_cv_lib_network_gethostbyname=no |
| 20563 | fi |
| 20564 | rm -f core conftest.err conftest.$ac_objext \ |
| 20565 | conftest$ac_exeext conftest.$ac_ext |
| 20566 | LIBS=$ac_check_lib_save_LIBS |
| 20567 | fi |
| 20568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5 |
| 20569 | $as_echo "$ac_cv_lib_network_gethostbyname" >&6; } |
| 20570 | if test "x$ac_cv_lib_network_gethostbyname" = xyes; then : |
| 20571 | HAVE_GETHOSTBYNAME="1" |
| 20572 | LIBS="-lnetwork $LIBS" |
| 20573 | |
| 20574 | fi |
| 20575 | |
| 20576 | fi |
| 20577 | |
| 20578 | if test "$HAVE_GETHOSTBYNAME" != "1" |
| 20579 | then |
| 20580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5 |
| 20581 | $as_echo_n "checking for gethostbyname in -lnet... " >&6; } |
| 20582 | if ${ac_cv_lib_net_gethostbyname+:} false; then : |
| 20583 | $as_echo_n "(cached) " >&6 |
| 20584 | else |
| 20585 | ac_check_lib_save_LIBS=$LIBS |
| 20586 | LIBS="-lnet $LIBS" |
| 20587 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20588 | /* end confdefs.h. */ |
| 20589 | |
| 20590 | |
| 20591 | #ifdef __cplusplus |
| 20592 | extern "C" |
| 20593 | #endif |
| 20594 | char gethostbyname (); |
| 20595 | int main (void) |
| 20596 | { |
| 20597 | return gethostbyname (); |
| 20598 | ; |
| 20599 | return 0; |
| 20600 | } |
| 20601 | _ACEOF |
| 20602 | if ac_fn_c_try_link "$LINENO"; then : |
| 20603 | ac_cv_lib_net_gethostbyname=yes |
| 20604 | else |
| 20605 | ac_cv_lib_net_gethostbyname=no |
| 20606 | fi |
| 20607 | rm -f core conftest.err conftest.$ac_objext \ |
| 20608 | conftest$ac_exeext conftest.$ac_ext |
| 20609 | LIBS=$ac_check_lib_save_LIBS |
| 20610 | fi |
| 20611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5 |
| 20612 | $as_echo "$ac_cv_lib_net_gethostbyname" >&6; } |
| 20613 | if test "x$ac_cv_lib_net_gethostbyname" = xyes; then : |
| 20614 | HAVE_GETHOSTBYNAME="1" |
| 20615 | LIBS="-lnet $LIBS" |
| 20616 | |
| 20617 | fi |
| 20618 | |
| 20619 | fi |
| 20620 | |
| 20621 | |
| 20622 | if test "$HAVE_GETHOSTBYNAME" != "1"; then |
| 20623 | as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5 |
| 20624 | fi |
| 20625 | |
| 20626 | |
| 20627 | curl_includes_winsock2="\ |
| 20628 | /* includes start */ |
| 20629 | #ifdef HAVE_WINDOWS_H |
| 20630 | # ifndef WIN32_LEAN_AND_MEAN |
| 20631 | # define WIN32_LEAN_AND_MEAN |
| 20632 | # endif |
| 20633 | # include <windows.h> |
| 20634 | # ifdef HAVE_WINSOCK2_H |
| 20635 | # include <winsock2.h> |
| 20636 | # else |
| 20637 | # ifdef HAVE_WINSOCK_H |
| 20638 | # include <winsock.h> |
| 20639 | # endif |
| 20640 | # endif |
| 20641 | #endif |
| 20642 | /* includes end */" |
| 20643 | |
| 20644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5 |
| 20645 | $as_echo_n "checking for windows.h... " >&6; } |
| 20646 | if ${curl_cv_header_windows_h+:} false; then : |
| 20647 | $as_echo_n "(cached) " >&6 |
| 20648 | else |
| 20649 | |
| 20650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20651 | /* end confdefs.h. */ |
| 20652 | |
| 20653 | |
| 20654 | #undef inline |
| 20655 | #ifndef WIN32_LEAN_AND_MEAN |
| 20656 | #define WIN32_LEAN_AND_MEAN |
| 20657 | #endif |
| 20658 | #include <windows.h> |
| 20659 | |
| 20660 | int main (void) |
| 20661 | { |
| 20662 | |
| 20663 | #if defined(__CYGWIN__) || defined(__CEGCC__) |
| 20664 | HAVE_WINDOWS_H shall not be defined. |
| 20665 | #else |
| 20666 | int dummy=2*WINVER; |
| 20667 | #endif |
| 20668 | |
| 20669 | ; |
| 20670 | return 0; |
| 20671 | } |
| 20672 | |
| 20673 | _ACEOF |
| 20674 | if ac_fn_c_try_compile "$LINENO"; then : |
| 20675 | |
| 20676 | curl_cv_header_windows_h="yes" |
| 20677 | |
| 20678 | else |
| 20679 | |
| 20680 | curl_cv_header_windows_h="no" |
| 20681 | |
| 20682 | fi |
| 20683 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20684 | |
| 20685 | fi |
| 20686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5 |
| 20687 | $as_echo "$curl_cv_header_windows_h" >&6; } |
| 20688 | case "$curl_cv_header_windows_h" in |
| 20689 | yes) |
| 20690 | |
| 20691 | cat >>confdefs.h <<_ACEOF |
| 20692 | #define HAVE_WINDOWS_H 1 |
| 20693 | _ACEOF |
| 20694 | |
| 20695 | |
| 20696 | cat >>confdefs.h <<_ACEOF |
| 20697 | #define WIN32_LEAN_AND_MEAN 1 |
| 20698 | _ACEOF |
| 20699 | |
| 20700 | ;; |
| 20701 | esac |
| 20702 | |
| 20703 | |
| 20704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5 |
| 20705 | $as_echo_n "checking for winsock.h... " >&6; } |
| 20706 | if ${curl_cv_header_winsock_h+:} false; then : |
| 20707 | $as_echo_n "(cached) " >&6 |
| 20708 | else |
| 20709 | |
| 20710 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20711 | /* end confdefs.h. */ |
| 20712 | |
| 20713 | |
| 20714 | #undef inline |
| 20715 | #ifndef WIN32_LEAN_AND_MEAN |
| 20716 | #define WIN32_LEAN_AND_MEAN |
| 20717 | #endif |
| 20718 | #include <windows.h> |
| 20719 | #include <winsock.h> |
| 20720 | |
| 20721 | int main (void) |
| 20722 | { |
| 20723 | |
| 20724 | #if defined(__CYGWIN__) || defined(__CEGCC__) |
| 20725 | HAVE_WINSOCK_H shall not be defined. |
| 20726 | #else |
| 20727 | int dummy=WSACleanup(); |
| 20728 | #endif |
| 20729 | |
| 20730 | ; |
| 20731 | return 0; |
| 20732 | } |
| 20733 | |
| 20734 | _ACEOF |
| 20735 | if ac_fn_c_try_compile "$LINENO"; then : |
| 20736 | |
| 20737 | curl_cv_header_winsock_h="yes" |
| 20738 | |
| 20739 | else |
| 20740 | |
| 20741 | curl_cv_header_winsock_h="no" |
| 20742 | |
| 20743 | fi |
| 20744 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20745 | |
| 20746 | fi |
| 20747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5 |
| 20748 | $as_echo "$curl_cv_header_winsock_h" >&6; } |
| 20749 | case "$curl_cv_header_winsock_h" in |
| 20750 | yes) |
| 20751 | |
| 20752 | cat >>confdefs.h <<_ACEOF |
| 20753 | #define HAVE_WINSOCK_H 1 |
| 20754 | _ACEOF |
| 20755 | |
| 20756 | ;; |
| 20757 | esac |
| 20758 | |
| 20759 | |
| 20760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5 |
| 20761 | $as_echo_n "checking for winsock2.h... " >&6; } |
| 20762 | if ${curl_cv_header_winsock2_h+:} false; then : |
| 20763 | $as_echo_n "(cached) " >&6 |
| 20764 | else |
| 20765 | |
| 20766 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20767 | /* end confdefs.h. */ |
| 20768 | |
| 20769 | |
| 20770 | #undef inline |
| 20771 | #ifndef WIN32_LEAN_AND_MEAN |
| 20772 | #define WIN32_LEAN_AND_MEAN |
| 20773 | #endif |
| 20774 | #include <windows.h> |
| 20775 | #include <winsock2.h> |
| 20776 | |
| 20777 | int main (void) |
| 20778 | { |
| 20779 | |
| 20780 | #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__) |
| 20781 | HAVE_WINSOCK2_H shall not be defined. |
| 20782 | #else |
| 20783 | int dummy=2*IPPROTO_ESP; |
| 20784 | #endif |
| 20785 | |
| 20786 | ; |
| 20787 | return 0; |
| 20788 | } |
| 20789 | |
| 20790 | _ACEOF |
| 20791 | if ac_fn_c_try_compile "$LINENO"; then : |
| 20792 | |
| 20793 | curl_cv_header_winsock2_h="yes" |
| 20794 | |
| 20795 | else |
| 20796 | |
| 20797 | curl_cv_header_winsock2_h="no" |
| 20798 | |
| 20799 | fi |
| 20800 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20801 | |
| 20802 | fi |
| 20803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5 |
| 20804 | $as_echo "$curl_cv_header_winsock2_h" >&6; } |
| 20805 | case "$curl_cv_header_winsock2_h" in |
| 20806 | yes) |
| 20807 | |
| 20808 | cat >>confdefs.h <<_ACEOF |
| 20809 | #define HAVE_WINSOCK2_H 1 |
| 20810 | _ACEOF |
| 20811 | |
| 20812 | ;; |
| 20813 | esac |
| 20814 | |
| 20815 | |
| 20816 | |
| 20817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5 |
| 20818 | $as_echo_n "checking for connect in libraries... " >&6; } |
| 20819 | tst_connect_save_LIBS="$LIBS" |
| 20820 | tst_connect_need_LIBS="unknown" |
| 20821 | for tst_lib in '' '-lsocket' ; do |
| 20822 | if test "$tst_connect_need_LIBS" = "unknown"; then |
| 20823 | LIBS="$tst_lib $tst_connect_save_LIBS" |
| 20824 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20825 | /* end confdefs.h. */ |
| 20826 | |
| 20827 | |
| 20828 | $curl_includes_winsock2 |
| 20829 | #ifndef HAVE_WINDOWS_H |
| 20830 | int connect(int, void*, int); |
| 20831 | #endif |
| 20832 | |
| 20833 | int main (void) |
| 20834 | { |
| 20835 | |
| 20836 | if(0 != connect(0, 0, 0)) |
| 20837 | return 1; |
| 20838 | |
| 20839 | ; |
| 20840 | return 0; |
| 20841 | } |
| 20842 | |
| 20843 | _ACEOF |
| 20844 | if ac_fn_c_try_link "$LINENO"; then : |
| 20845 | |
| 20846 | tst_connect_need_LIBS="$tst_lib" |
| 20847 | |
| 20848 | fi |
| 20849 | rm -f core conftest.err conftest.$ac_objext \ |
| 20850 | conftest$ac_exeext conftest.$ac_ext |
| 20851 | fi |
| 20852 | done |
| 20853 | LIBS="$tst_connect_save_LIBS" |
| 20854 | # |
| 20855 | case X-"$tst_connect_need_LIBS" in |
| 20856 | X-unknown) |
| 20857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5 |
| 20858 | $as_echo "cannot find connect" >&6; } |
| 20859 | as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5 |
| 20860 | ;; |
| 20861 | X-) |
| 20862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 20863 | $as_echo "yes" >&6; } |
| 20864 | ;; |
| 20865 | *) |
| 20866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5 |
| 20867 | $as_echo "$tst_connect_need_LIBS" >&6; } |
| 20868 | LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS" |
| 20869 | ;; |
| 20870 | esac |
| 20871 | |
| 20872 | |
| 20873 | CURL_NETWORK_LIBS=$LIBS |
| 20874 | |
| 20875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
| 20876 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } |
| 20877 | if ${ac_cv_header_time+:} false; then : |
| 20878 | $as_echo_n "(cached) " >&6 |
| 20879 | else |
| 20880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20881 | /* end confdefs.h. */ |
| 20882 | #include <sys/types.h> |
| 20883 | #include <sys/time.h> |
| 20884 | #include <time.h> |
| 20885 | |
| 20886 | int main (void) |
| 20887 | { |
| 20888 | if ((struct tm *) 0) |
| 20889 | return 0; |
| 20890 | ; |
| 20891 | return 0; |
| 20892 | } |
| 20893 | _ACEOF |
| 20894 | if ac_fn_c_try_compile "$LINENO"; then : |
| 20895 | ac_cv_header_time=yes |
| 20896 | else |
| 20897 | ac_cv_header_time=no |
| 20898 | fi |
| 20899 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20900 | fi |
| 20901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
| 20902 | $as_echo "$ac_cv_header_time" >&6; } |
| 20903 | if test $ac_cv_header_time = yes; then |
| 20904 | |
| 20905 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
| 20906 | |
| 20907 | fi |
| 20908 | |
| 20909 | |
| 20910 | for ac_header in sys/types.h sys/time.h time.h |
| 20911 | do : |
| 20912 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 20913 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 20914 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 20915 | cat >>confdefs.h <<_ACEOF |
| 20916 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 20917 | _ACEOF |
| 20918 | |
| 20919 | fi |
| 20920 | |
| 20921 | done |
| 20922 | |
| 20923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5 |
| 20924 | $as_echo_n "checking for monotonic clock_gettime... " >&6; } |
| 20925 | # |
| 20926 | if test "x$dontwant_rt" = "xno" ; then |
| 20927 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20928 | /* end confdefs.h. */ |
| 20929 | |
| 20930 | |
| 20931 | #ifdef HAVE_SYS_TYPES_H |
| 20932 | #include <sys/types.h> |
| 20933 | #endif |
| 20934 | #ifdef HAVE_SYS_TIME_H |
| 20935 | #include <sys/time.h> |
| 20936 | #ifdef TIME_WITH_SYS_TIME |
| 20937 | #include <time.h> |
| 20938 | #endif |
| 20939 | #else |
| 20940 | #ifdef HAVE_TIME_H |
| 20941 | #include <time.h> |
| 20942 | #endif |
| 20943 | #endif |
| 20944 | |
| 20945 | int main (void) |
| 20946 | { |
| 20947 | |
| 20948 | struct timespec ts; |
| 20949 | (void)clock_gettime(CLOCK_MONOTONIC, &ts); |
| 20950 | |
| 20951 | ; |
| 20952 | return 0; |
| 20953 | } |
| 20954 | |
| 20955 | _ACEOF |
| 20956 | if ac_fn_c_try_compile "$LINENO"; then : |
| 20957 | |
| 20958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 20959 | $as_echo "yes" >&6; } |
| 20960 | curl_func_clock_gettime="yes" |
| 20961 | |
| 20962 | else |
| 20963 | |
| 20964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 20965 | $as_echo "no" >&6; } |
| 20966 | curl_func_clock_gettime="no" |
| 20967 | |
| 20968 | fi |
| 20969 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20970 | fi |
| 20971 | |
| 20972 | |
| 20973 | # |
| 20974 | if test "$curl_func_clock_gettime" = "yes"; then |
| 20975 | # |
| 20976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5 |
| 20977 | $as_echo_n "checking for clock_gettime in libraries... " >&6; } |
| 20978 | # |
| 20979 | curl_cv_save_LIBS="$LIBS" |
| 20980 | curl_cv_gclk_LIBS="unknown" |
| 20981 | # |
| 20982 | for x_xlibs in '' '-lrt' '-lposix4' ; do |
| 20983 | if test "$curl_cv_gclk_LIBS" = "unknown"; then |
| 20984 | if test -z "$x_xlibs"; then |
| 20985 | LIBS="$curl_cv_save_LIBS" |
| 20986 | else |
| 20987 | LIBS="$x_xlibs $curl_cv_save_LIBS" |
| 20988 | fi |
| 20989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20990 | /* end confdefs.h. */ |
| 20991 | |
| 20992 | |
| 20993 | #ifdef HAVE_SYS_TYPES_H |
| 20994 | #include <sys/types.h> |
| 20995 | #endif |
| 20996 | #ifdef HAVE_SYS_TIME_H |
| 20997 | #include <sys/time.h> |
| 20998 | #ifdef TIME_WITH_SYS_TIME |
| 20999 | #include <time.h> |
| 21000 | #endif |
| 21001 | #else |
| 21002 | #ifdef HAVE_TIME_H |
| 21003 | #include <time.h> |
| 21004 | #endif |
| 21005 | #endif |
| 21006 | |
| 21007 | int main (void) |
| 21008 | { |
| 21009 | |
| 21010 | struct timespec ts; |
| 21011 | (void)clock_gettime(CLOCK_MONOTONIC, &ts); |
| 21012 | |
| 21013 | ; |
| 21014 | return 0; |
| 21015 | } |
| 21016 | |
| 21017 | _ACEOF |
| 21018 | if ac_fn_c_try_link "$LINENO"; then : |
| 21019 | |
| 21020 | curl_cv_gclk_LIBS="$x_xlibs" |
| 21021 | |
| 21022 | fi |
| 21023 | rm -f core conftest.err conftest.$ac_objext \ |
| 21024 | conftest$ac_exeext conftest.$ac_ext |
| 21025 | fi |
| 21026 | done |
| 21027 | # |
| 21028 | LIBS="$curl_cv_save_LIBS" |
| 21029 | # |
| 21030 | case X-"$curl_cv_gclk_LIBS" in |
| 21031 | X-unknown) |
| 21032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5 |
| 21033 | $as_echo "cannot find clock_gettime" >&6; } |
| 21034 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5 |
| 21035 | $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;} |
| 21036 | curl_func_clock_gettime="no" |
| 21037 | ;; |
| 21038 | X-) |
| 21039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5 |
| 21040 | $as_echo "no additional lib required" >&6; } |
| 21041 | curl_func_clock_gettime="yes" |
| 21042 | ;; |
| 21043 | *) |
| 21044 | if test -z "$curl_cv_save_LIBS"; then |
| 21045 | LIBS="$curl_cv_gclk_LIBS" |
| 21046 | else |
| 21047 | LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS" |
| 21048 | fi |
| 21049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5 |
| 21050 | $as_echo "$curl_cv_gclk_LIBS" >&6; } |
| 21051 | curl_func_clock_gettime="yes" |
| 21052 | ;; |
| 21053 | esac |
| 21054 | # |
| 21055 | if test "x$cross_compiling" != "xyes" && |
| 21056 | test "$curl_func_clock_gettime" = "yes"; then |
| 21057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5 |
| 21058 | $as_echo_n "checking if monotonic clock_gettime works... " >&6; } |
| 21059 | if test "$cross_compiling" = yes; then : |
| 21060 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 21061 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 21062 | as_fn_error $? "cannot run test program while cross compiling |
| 21063 | See \`config.log' for more details" "$LINENO" 5; } |
| 21064 | else |
| 21065 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21066 | /* end confdefs.h. */ |
| 21067 | |
| 21068 | |
| 21069 | #ifdef HAVE_STDLIB_H |
| 21070 | #include <stdlib.h> |
| 21071 | #endif |
| 21072 | #ifdef HAVE_SYS_TYPES_H |
| 21073 | #include <sys/types.h> |
| 21074 | #endif |
| 21075 | #ifdef HAVE_SYS_TIME_H |
| 21076 | #include <sys/time.h> |
| 21077 | #ifdef TIME_WITH_SYS_TIME |
| 21078 | #include <time.h> |
| 21079 | #endif |
| 21080 | #else |
| 21081 | #ifdef HAVE_TIME_H |
| 21082 | #include <time.h> |
| 21083 | #endif |
| 21084 | #endif |
| 21085 | |
| 21086 | int main (void) |
| 21087 | { |
| 21088 | |
| 21089 | struct timespec ts; |
| 21090 | if (0 == clock_gettime(CLOCK_MONOTONIC, &ts)) |
| 21091 | exit(0); |
| 21092 | else |
| 21093 | exit(1); |
| 21094 | |
| 21095 | ; |
| 21096 | return 0; |
| 21097 | } |
| 21098 | |
| 21099 | _ACEOF |
| 21100 | if ac_fn_c_try_run "$LINENO"; then : |
| 21101 | |
| 21102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 21103 | $as_echo "yes" >&6; } |
| 21104 | |
| 21105 | else |
| 21106 | |
| 21107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 21108 | $as_echo "no" >&6; } |
| 21109 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5 |
| 21110 | $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;} |
| 21111 | curl_func_clock_gettime="no" |
| 21112 | LIBS="$curl_cv_save_LIBS" |
| 21113 | |
| 21114 | fi |
| 21115 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 21116 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 21117 | fi |
| 21118 | |
| 21119 | fi |
| 21120 | # |
| 21121 | case "$curl_func_clock_gettime" in |
| 21122 | yes) |
| 21123 | |
| 21124 | cat >>confdefs.h <<_ACEOF |
| 21125 | #define HAVE_CLOCK_GETTIME_MONOTONIC 1 |
| 21126 | _ACEOF |
| 21127 | |
| 21128 | ;; |
| 21129 | esac |
| 21130 | # |
| 21131 | fi |
| 21132 | # |
| 21133 | |
| 21134 | |
| 21135 | CURL_NETWORK_AND_TIME_LIBS=$LIBS |
| 21136 | |
| 21137 | |
| 21138 | |
| 21139 | clean_CPPFLAGS=$CPPFLAGS |
| 21140 | clean_LDFLAGS=$LDFLAGS |
| 21141 | clean_LIBS=$LIBS |
| 21142 | ZLIB_LIBS="" |
| 21143 | |
| 21144 | # Check whether --with-zlib was given. |
| 21145 | if test "${with_zlib+set}" = set; then : |
| 21146 | withval=$with_zlib; OPT_ZLIB="$withval" |
| 21147 | fi |
| 21148 | |
| 21149 | |
| 21150 | if test "$OPT_ZLIB" = "no" ; then |
| 21151 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5 |
| 21152 | $as_echo "$as_me: WARNING: zlib disabled" >&2;} |
| 21153 | else |
| 21154 | if test "$OPT_ZLIB" = "yes" ; then |
| 21155 | OPT_ZLIB="" |
| 21156 | fi |
| 21157 | |
| 21158 | if test -z "$OPT_ZLIB" ; then |
| 21159 | |
| 21160 | if test -n "$PKG_CONFIG"; then |
| 21161 | PKGCONFIG="$PKG_CONFIG" |
| 21162 | else |
| 21163 | if test -n "$ac_tool_prefix"; then |
| 21164 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 21165 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 21166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 21167 | $as_echo_n "checking for $ac_word... " >&6; } |
| 21168 | if ${ac_cv_path_PKGCONFIG+:} false; then : |
| 21169 | $as_echo_n "(cached) " >&6 |
| 21170 | else |
| 21171 | case $PKGCONFIG in |
| 21172 | [\\/]* | ?:[\\/]*) |
| 21173 | ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. |
| 21174 | ;; |
| 21175 | *) |
| 21176 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 21177 | as_dummy="$PATH:/usr/bin:/usr/local/bin" |
| 21178 | for as_dir in $as_dummy |
| 21179 | do |
| 21180 | IFS=$as_save_IFS |
| 21181 | test -z "$as_dir" && as_dir=. |
| 21182 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 21183 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 21184 | ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 21185 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 21186 | break 2 |
| 21187 | fi |
| 21188 | done |
| 21189 | done |
| 21190 | IFS=$as_save_IFS |
| 21191 | |
| 21192 | ;; |
| 21193 | esac |
| 21194 | fi |
| 21195 | PKGCONFIG=$ac_cv_path_PKGCONFIG |
| 21196 | if test -n "$PKGCONFIG"; then |
| 21197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 |
| 21198 | $as_echo "$PKGCONFIG" >&6; } |
| 21199 | else |
| 21200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 21201 | $as_echo "no" >&6; } |
| 21202 | fi |
| 21203 | |
| 21204 | |
| 21205 | fi |
| 21206 | if test -z "$ac_cv_path_PKGCONFIG"; then |
| 21207 | ac_pt_PKGCONFIG=$PKGCONFIG |
| 21208 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 21209 | set dummy pkg-config; ac_word=$2 |
| 21210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 21211 | $as_echo_n "checking for $ac_word... " >&6; } |
| 21212 | if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : |
| 21213 | $as_echo_n "(cached) " >&6 |
| 21214 | else |
| 21215 | case $ac_pt_PKGCONFIG in |
| 21216 | [\\/]* | ?:[\\/]*) |
| 21217 | ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. |
| 21218 | ;; |
| 21219 | *) |
| 21220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 21221 | as_dummy="$PATH:/usr/bin:/usr/local/bin" |
| 21222 | for as_dir in $as_dummy |
| 21223 | do |
| 21224 | IFS=$as_save_IFS |
| 21225 | test -z "$as_dir" && as_dir=. |
| 21226 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 21227 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 21228 | ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 21229 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 21230 | break 2 |
| 21231 | fi |
| 21232 | done |
| 21233 | done |
| 21234 | IFS=$as_save_IFS |
| 21235 | |
| 21236 | ;; |
| 21237 | esac |
| 21238 | fi |
| 21239 | ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG |
| 21240 | if test -n "$ac_pt_PKGCONFIG"; then |
| 21241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 |
| 21242 | $as_echo "$ac_pt_PKGCONFIG" >&6; } |
| 21243 | else |
| 21244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 21245 | $as_echo "no" >&6; } |
| 21246 | fi |
| 21247 | |
| 21248 | if test "x$ac_pt_PKGCONFIG" = x; then |
| 21249 | PKGCONFIG="no" |
| 21250 | else |
| 21251 | case $cross_compiling:$ac_tool_warned in |
| 21252 | yes:) |
| 21253 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 21254 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 21255 | ac_tool_warned=yes ;; |
| 21256 | esac |
| 21257 | PKGCONFIG=$ac_pt_PKGCONFIG |
| 21258 | fi |
| 21259 | else |
| 21260 | PKGCONFIG="$ac_cv_path_PKGCONFIG" |
| 21261 | fi |
| 21262 | |
| 21263 | fi |
| 21264 | |
| 21265 | if test "x$PKGCONFIG" != "xno"; then |
| 21266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5 |
| 21267 | $as_echo_n "checking for zlib options with pkg-config... " >&6; } |
| 21268 | itexists=` |
| 21269 | if test -n ""; then |
| 21270 | PKG_CONFIG_LIBDIR="" |
| 21271 | export PKG_CONFIG_LIBDIR |
| 21272 | fi |
| 21273 | $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1` |
| 21274 | |
| 21275 | if test -z "$itexists"; then |
| 21276 | PKGCONFIG="no" |
| 21277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 21278 | $as_echo "no" >&6; } |
| 21279 | else |
| 21280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 21281 | $as_echo "found" >&6; } |
| 21282 | fi |
| 21283 | fi |
| 21284 | |
| 21285 | |
| 21286 | if test "$PKGCONFIG" != "no" ; then |
| 21287 | LIBS="`$PKGCONFIG --libs-only-l zlib` $LIBS" |
| 21288 | LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`" |
| 21289 | CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags-only-I zlib`" |
| 21290 | OPT_ZLIB="" |
| 21291 | HAVE_LIBZ="1" |
| 21292 | fi |
| 21293 | |
| 21294 | if test -z "$HAVE_LIBZ"; then |
| 21295 | |
| 21296 | |
| 21297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5 |
| 21298 | $as_echo_n "checking for inflateEnd in -lz... " >&6; } |
| 21299 | if ${ac_cv_lib_z_inflateEnd+:} false; then : |
| 21300 | $as_echo_n "(cached) " >&6 |
| 21301 | else |
| 21302 | ac_check_lib_save_LIBS=$LIBS |
| 21303 | LIBS="-lz $LIBS" |
| 21304 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21305 | /* end confdefs.h. */ |
| 21306 | |
| 21307 | |
| 21308 | #ifdef __cplusplus |
| 21309 | extern "C" |
| 21310 | #endif |
| 21311 | char inflateEnd (); |
| 21312 | int main (void) |
| 21313 | { |
| 21314 | return inflateEnd (); |
| 21315 | ; |
| 21316 | return 0; |
| 21317 | } |
| 21318 | _ACEOF |
| 21319 | if ac_fn_c_try_link "$LINENO"; then : |
| 21320 | ac_cv_lib_z_inflateEnd=yes |
| 21321 | else |
| 21322 | ac_cv_lib_z_inflateEnd=no |
| 21323 | fi |
| 21324 | rm -f core conftest.err conftest.$ac_objext \ |
| 21325 | conftest$ac_exeext conftest.$ac_ext |
| 21326 | LIBS=$ac_check_lib_save_LIBS |
| 21327 | fi |
| 21328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5 |
| 21329 | $as_echo "$ac_cv_lib_z_inflateEnd" >&6; } |
| 21330 | if test "x$ac_cv_lib_z_inflateEnd" = xyes; then : |
| 21331 | HAVE_LIBZ="1" |
| 21332 | LIBS="-lz $LIBS" |
| 21333 | else |
| 21334 | OPT_ZLIB="/usr/local" |
| 21335 | fi |
| 21336 | |
| 21337 | fi |
| 21338 | fi |
| 21339 | |
| 21340 | if test -n "$OPT_ZLIB"; then |
| 21341 | CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include" |
| 21342 | LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff" |
| 21343 | fi |
| 21344 | |
| 21345 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" |
| 21346 | if test "x$ac_cv_header_zlib_h" = xyes; then : |
| 21347 | |
| 21348 | HAVE_ZLIB_H="1" |
| 21349 | if test "$HAVE_LIBZ" != "1"; then |
| 21350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5 |
| 21351 | $as_echo_n "checking for gzread in -lz... " >&6; } |
| 21352 | if ${ac_cv_lib_z_gzread+:} false; then : |
| 21353 | $as_echo_n "(cached) " >&6 |
| 21354 | else |
| 21355 | ac_check_lib_save_LIBS=$LIBS |
| 21356 | LIBS="-lz $LIBS" |
| 21357 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21358 | /* end confdefs.h. */ |
| 21359 | |
| 21360 | |
| 21361 | #ifdef __cplusplus |
| 21362 | extern "C" |
| 21363 | #endif |
| 21364 | char gzread (); |
| 21365 | int main (void) |
| 21366 | { |
| 21367 | return gzread (); |
| 21368 | ; |
| 21369 | return 0; |
| 21370 | } |
| 21371 | _ACEOF |
| 21372 | if ac_fn_c_try_link "$LINENO"; then : |
| 21373 | ac_cv_lib_z_gzread=yes |
| 21374 | else |
| 21375 | ac_cv_lib_z_gzread=no |
| 21376 | fi |
| 21377 | rm -f core conftest.err conftest.$ac_objext \ |
| 21378 | conftest$ac_exeext conftest.$ac_ext |
| 21379 | LIBS=$ac_check_lib_save_LIBS |
| 21380 | fi |
| 21381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5 |
| 21382 | $as_echo "$ac_cv_lib_z_gzread" >&6; } |
| 21383 | if test "x$ac_cv_lib_z_gzread" = xyes; then : |
| 21384 | |
| 21385 | HAVE_LIBZ="1" |
| 21386 | LIBS="-lz $LIBS" |
| 21387 | |
| 21388 | else |
| 21389 | CPPFLAGS=$clean_CPPFLAGS |
| 21390 | LDFLAGS=$clean_LDFLAGS |
| 21391 | fi |
| 21392 | |
| 21393 | fi |
| 21394 | |
| 21395 | else |
| 21396 | |
| 21397 | CPPFLAGS=$clean_CPPFLAGS |
| 21398 | LDFLAGS=$clean_LDFLAGS |
| 21399 | |
| 21400 | fi |
| 21401 | |
| 21402 | |
| 21403 | |
| 21404 | if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1" |
| 21405 | then |
| 21406 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5 |
| 21407 | $as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;} |
| 21408 | HAVE_LIBZ="" |
| 21409 | CPPFLAGS=$clean_CPPFLAGS |
| 21410 | LDFLAGS=$clean_LDFLAGS |
| 21411 | LIBS=$clean_LIBS |
| 21412 | elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1" |
| 21413 | then |
| 21414 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5 |
| 21415 | $as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;} |
| 21416 | CPPFLAGS=$clean_CPPFLAGS |
| 21417 | LDFLAGS=$clean_LDFLAGS |
| 21418 | LIBS=$clean_LIBS |
| 21419 | elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1" |
| 21420 | then |
| 21421 | |
| 21422 | |
| 21423 | $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h |
| 21424 | |
| 21425 | |
| 21426 | $as_echo "#define HAVE_LIBZ 1" >>confdefs.h |
| 21427 | |
| 21428 | |
| 21429 | ZLIB_LIBS="-lz" |
| 21430 | LIBS="-lz $clean_LIBS" |
| 21431 | |
| 21432 | AMFIXLIB="1" |
| 21433 | { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5 |
| 21434 | $as_echo "$as_me: found both libz and libz.h header" >&6;} |
| 21435 | curl_zlib_msg="enabled" |
| 21436 | fi |
| 21437 | fi |
| 21438 | |
| 21439 | if test x"$AMFIXLIB" = x1; then |
| 21440 | HAVE_LIBZ_TRUE= |
| 21441 | HAVE_LIBZ_FALSE='#' |
| 21442 | else |
| 21443 | HAVE_LIBZ_TRUE='#' |
| 21444 | HAVE_LIBZ_FALSE= |
| 21445 | fi |
| 21446 | |
| 21447 | |
| 21448 | |
| 21449 | |
| 21450 | LDAPLIBNAME="" |
| 21451 | |
| 21452 | # Check whether --with-ldap-lib was given. |
| 21453 | if test "${with_ldap_lib+set}" = set; then : |
| 21454 | withval=$with_ldap_lib; LDAPLIBNAME="$withval" |
| 21455 | fi |
| 21456 | |
| 21457 | |
| 21458 | LBERLIBNAME="" |
| 21459 | |
| 21460 | # Check whether --with-lber-lib was given. |
| 21461 | if test "${with_lber_lib+set}" = set; then : |
| 21462 | withval=$with_lber_lib; LBERLIBNAME="$withval" |
| 21463 | fi |
| 21464 | |
| 21465 | |
| 21466 | if test x$CURL_DISABLE_LDAP != x1 ; then |
| 21467 | |
| 21468 | |
| 21469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5 |
| 21470 | $as_echo_n "checking for lber.h... " >&6; } |
| 21471 | if ${curl_cv_header_lber_h+:} false; then : |
| 21472 | $as_echo_n "(cached) " >&6 |
| 21473 | else |
| 21474 | |
| 21475 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21476 | /* end confdefs.h. */ |
| 21477 | |
| 21478 | |
| 21479 | #undef inline |
| 21480 | #ifdef HAVE_WINDOWS_H |
| 21481 | #ifndef WIN32_LEAN_AND_MEAN |
| 21482 | #define WIN32_LEAN_AND_MEAN |
| 21483 | #endif |
| 21484 | #include <windows.h> |
| 21485 | #else |
| 21486 | #ifdef HAVE_SYS_TYPES_H |
| 21487 | #include <sys/types.h> |
| 21488 | #endif |
| 21489 | #endif |
| 21490 | #ifndef NULL |
| 21491 | #define NULL (void *)0 |
| 21492 | #endif |
| 21493 | #include <lber.h> |
| 21494 | |
| 21495 | int main (void) |
| 21496 | { |
| 21497 | |
| 21498 | BerValue *bvp = NULL; |
| 21499 | BerElement *bep = ber_init(bvp); |
| 21500 | ber_free(bep, 1); |
| 21501 | |
| 21502 | ; |
| 21503 | return 0; |
| 21504 | } |
| 21505 | |
| 21506 | _ACEOF |
| 21507 | if ac_fn_c_try_compile "$LINENO"; then : |
| 21508 | |
| 21509 | curl_cv_header_lber_h="yes" |
| 21510 | |
| 21511 | else |
| 21512 | |
| 21513 | curl_cv_header_lber_h="no" |
| 21514 | |
| 21515 | fi |
| 21516 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21517 | |
| 21518 | fi |
| 21519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5 |
| 21520 | $as_echo "$curl_cv_header_lber_h" >&6; } |
| 21521 | if test "$curl_cv_header_lber_h" = "yes"; then |
| 21522 | |
| 21523 | cat >>confdefs.h <<_ACEOF |
| 21524 | #define HAVE_LBER_H 1 |
| 21525 | _ACEOF |
| 21526 | |
| 21527 | # |
| 21528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21529 | /* end confdefs.h. */ |
| 21530 | |
| 21531 | |
| 21532 | #undef inline |
| 21533 | #ifdef HAVE_WINDOWS_H |
| 21534 | #ifndef WIN32_LEAN_AND_MEAN |
| 21535 | #define WIN32_LEAN_AND_MEAN |
| 21536 | #endif |
| 21537 | #include <windows.h> |
| 21538 | #else |
| 21539 | #ifdef HAVE_SYS_TYPES_H |
| 21540 | #include <sys/types.h> |
| 21541 | #endif |
| 21542 | #endif |
| 21543 | #ifndef NULL |
| 21544 | #define NULL (void *)0 |
| 21545 | #endif |
| 21546 | #ifndef LDAP_DEPRECATED |
| 21547 | #define LDAP_DEPRECATED 1 |
| 21548 | #endif |
| 21549 | #include <ldap.h> |
| 21550 | |
| 21551 | int main (void) |
| 21552 | { |
| 21553 | |
| 21554 | BerValue *bvp = NULL; |
| 21555 | BerElement *bep = ber_init(bvp); |
| 21556 | ber_free(bep, 1); |
| 21557 | |
| 21558 | ; |
| 21559 | return 0; |
| 21560 | } |
| 21561 | |
| 21562 | _ACEOF |
| 21563 | if ac_fn_c_try_compile "$LINENO"; then : |
| 21564 | |
| 21565 | curl_cv_need_header_lber_h="no" |
| 21566 | |
| 21567 | else |
| 21568 | |
| 21569 | curl_cv_need_header_lber_h="yes" |
| 21570 | |
| 21571 | fi |
| 21572 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21573 | # |
| 21574 | case "$curl_cv_need_header_lber_h" in |
| 21575 | yes) |
| 21576 | |
| 21577 | cat >>confdefs.h <<_ACEOF |
| 21578 | #define NEED_LBER_H 1 |
| 21579 | _ACEOF |
| 21580 | |
| 21581 | ;; |
| 21582 | esac |
| 21583 | fi |
| 21584 | |
| 21585 | |
| 21586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5 |
| 21587 | $as_echo_n "checking for ldap.h... " >&6; } |
| 21588 | if ${curl_cv_header_ldap_h+:} false; then : |
| 21589 | $as_echo_n "(cached) " >&6 |
| 21590 | else |
| 21591 | |
| 21592 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21593 | /* end confdefs.h. */ |
| 21594 | |
| 21595 | |
| 21596 | #undef inline |
| 21597 | #ifdef HAVE_WINDOWS_H |
| 21598 | #ifndef WIN32_LEAN_AND_MEAN |
| 21599 | #define WIN32_LEAN_AND_MEAN |
| 21600 | #endif |
| 21601 | #include <windows.h> |
| 21602 | #else |
| 21603 | #ifdef HAVE_SYS_TYPES_H |
| 21604 | #include <sys/types.h> |
| 21605 | #endif |
| 21606 | #endif |
| 21607 | #ifndef LDAP_DEPRECATED |
| 21608 | #define LDAP_DEPRECATED 1 |
| 21609 | #endif |
| 21610 | #ifdef NEED_LBER_H |
| 21611 | #include <lber.h> |
| 21612 | #endif |
| 21613 | #include <ldap.h> |
| 21614 | |
| 21615 | int main (void) |
| 21616 | { |
| 21617 | |
| 21618 | LDAP *ldp = ldap_init("dummy", LDAP_PORT); |
| 21619 | int res = ldap_unbind(ldp); |
| 21620 | |
| 21621 | ; |
| 21622 | return 0; |
| 21623 | } |
| 21624 | |
| 21625 | _ACEOF |
| 21626 | if ac_fn_c_try_compile "$LINENO"; then : |
| 21627 | |
| 21628 | curl_cv_header_ldap_h="yes" |
| 21629 | |
| 21630 | else |
| 21631 | |
| 21632 | curl_cv_header_ldap_h="no" |
| 21633 | |
| 21634 | fi |
| 21635 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21636 | |
| 21637 | fi |
| 21638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5 |
| 21639 | $as_echo "$curl_cv_header_ldap_h" >&6; } |
| 21640 | case "$curl_cv_header_ldap_h" in |
| 21641 | yes) |
| 21642 | |
| 21643 | cat >>confdefs.h <<_ACEOF |
| 21644 | #define HAVE_LDAP_H 1 |
| 21645 | _ACEOF |
| 21646 | |
| 21647 | ;; |
| 21648 | esac |
| 21649 | |
| 21650 | |
| 21651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5 |
| 21652 | $as_echo_n "checking for ldapssl.h... " >&6; } |
| 21653 | if ${curl_cv_header_ldapssl_h+:} false; then : |
| 21654 | $as_echo_n "(cached) " >&6 |
| 21655 | else |
| 21656 | |
| 21657 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21658 | /* end confdefs.h. */ |
| 21659 | |
| 21660 | |
| 21661 | #undef inline |
| 21662 | #ifdef HAVE_WINDOWS_H |
| 21663 | #ifndef WIN32_LEAN_AND_MEAN |
| 21664 | #define WIN32_LEAN_AND_MEAN |
| 21665 | #endif |
| 21666 | #include <windows.h> |
| 21667 | #else |
| 21668 | #ifdef HAVE_SYS_TYPES_H |
| 21669 | #include <sys/types.h> |
| 21670 | #endif |
| 21671 | #endif |
| 21672 | #ifndef NULL |
| 21673 | #define NULL (void *)0 |
| 21674 | #endif |
| 21675 | #ifndef LDAP_DEPRECATED |
| 21676 | #define LDAP_DEPRECATED 1 |
| 21677 | #endif |
| 21678 | #ifdef NEED_LBER_H |
| 21679 | #include <lber.h> |
| 21680 | #endif |
| 21681 | #ifdef HAVE_LDAP_H |
| 21682 | #include <ldap.h> |
| 21683 | #endif |
| 21684 | #include <ldapssl.h> |
| 21685 | |
| 21686 | int main (void) |
| 21687 | { |
| 21688 | |
| 21689 | char *cert_label = NULL; |
| 21690 | LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label); |
| 21691 | |
| 21692 | ; |
| 21693 | return 0; |
| 21694 | } |
| 21695 | |
| 21696 | _ACEOF |
| 21697 | if ac_fn_c_try_compile "$LINENO"; then : |
| 21698 | |
| 21699 | curl_cv_header_ldapssl_h="yes" |
| 21700 | |
| 21701 | else |
| 21702 | |
| 21703 | curl_cv_header_ldapssl_h="no" |
| 21704 | |
| 21705 | fi |
| 21706 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21707 | |
| 21708 | fi |
| 21709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldapssl_h" >&5 |
| 21710 | $as_echo "$curl_cv_header_ldapssl_h" >&6; } |
| 21711 | case "$curl_cv_header_ldapssl_h" in |
| 21712 | yes) |
| 21713 | |
| 21714 | cat >>confdefs.h <<_ACEOF |
| 21715 | #define HAVE_LDAPSSL_H 1 |
| 21716 | _ACEOF |
| 21717 | |
| 21718 | ;; |
| 21719 | esac |
| 21720 | |
| 21721 | |
| 21722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5 |
| 21723 | $as_echo_n "checking for ldap_ssl.h... " >&6; } |
| 21724 | if ${curl_cv_header_ldap_ssl_h+:} false; then : |
| 21725 | $as_echo_n "(cached) " >&6 |
| 21726 | else |
| 21727 | |
| 21728 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21729 | /* end confdefs.h. */ |
| 21730 | |
| 21731 | |
| 21732 | #undef inline |
| 21733 | #ifdef HAVE_WINDOWS_H |
| 21734 | #ifndef WIN32_LEAN_AND_MEAN |
| 21735 | #define WIN32_LEAN_AND_MEAN |
| 21736 | #endif |
| 21737 | #include <windows.h> |
| 21738 | #else |
| 21739 | #ifdef HAVE_SYS_TYPES_H |
| 21740 | #include <sys/types.h> |
| 21741 | #endif |
| 21742 | #endif |
| 21743 | #ifndef LDAP_DEPRECATED |
| 21744 | #define LDAP_DEPRECATED 1 |
| 21745 | #endif |
| 21746 | #ifdef NEED_LBER_H |
| 21747 | #include <lber.h> |
| 21748 | #endif |
| 21749 | #ifdef HAVE_LDAP_H |
| 21750 | #include <ldap.h> |
| 21751 | #endif |
| 21752 | #include <ldap_ssl.h> |
| 21753 | |
| 21754 | int main (void) |
| 21755 | { |
| 21756 | |
| 21757 | LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1); |
| 21758 | |
| 21759 | ; |
| 21760 | return 0; |
| 21761 | } |
| 21762 | |
| 21763 | _ACEOF |
| 21764 | if ac_fn_c_try_compile "$LINENO"; then : |
| 21765 | |
| 21766 | curl_cv_header_ldap_ssl_h="yes" |
| 21767 | |
| 21768 | else |
| 21769 | |
| 21770 | curl_cv_header_ldap_ssl_h="no" |
| 21771 | |
| 21772 | fi |
| 21773 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21774 | |
| 21775 | fi |
| 21776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5 |
| 21777 | $as_echo "$curl_cv_header_ldap_ssl_h" >&6; } |
| 21778 | case "$curl_cv_header_ldap_ssl_h" in |
| 21779 | yes) |
| 21780 | |
| 21781 | cat >>confdefs.h <<_ACEOF |
| 21782 | #define HAVE_LDAP_SSL_H 1 |
| 21783 | _ACEOF |
| 21784 | |
| 21785 | ;; |
| 21786 | esac |
| 21787 | |
| 21788 | |
| 21789 | if test -z "$LDAPLIBNAME" ; then |
| 21790 | if test "$curl_cv_native_windows" = "yes"; then |
| 21791 | LDAPLIBNAME="wldap32" |
| 21792 | LBERLIBNAME="no" |
| 21793 | fi |
| 21794 | fi |
| 21795 | |
| 21796 | if test "$LDAPLIBNAME" ; then |
| 21797 | as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh` |
| 21798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5 |
| 21799 | $as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; } |
| 21800 | if eval \${$as_ac_Lib+:} false; then : |
| 21801 | $as_echo_n "(cached) " >&6 |
| 21802 | else |
| 21803 | ac_check_lib_save_LIBS=$LIBS |
| 21804 | LIBS="-l"$LDAPLIBNAME" $LIBS" |
| 21805 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21806 | /* end confdefs.h. */ |
| 21807 | |
| 21808 | |
| 21809 | #ifdef __cplusplus |
| 21810 | extern "C" |
| 21811 | #endif |
| 21812 | char ldap_init (); |
| 21813 | int main (void) |
| 21814 | { |
| 21815 | return ldap_init (); |
| 21816 | ; |
| 21817 | return 0; |
| 21818 | } |
| 21819 | _ACEOF |
| 21820 | if ac_fn_c_try_link "$LINENO"; then : |
| 21821 | eval "$as_ac_Lib=yes" |
| 21822 | else |
| 21823 | eval "$as_ac_Lib=no" |
| 21824 | fi |
| 21825 | rm -f core conftest.err conftest.$ac_objext \ |
| 21826 | conftest$ac_exeext conftest.$ac_ext |
| 21827 | LIBS=$ac_check_lib_save_LIBS |
| 21828 | fi |
| 21829 | eval ac_res=\$$as_ac_Lib |
| 21830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 21831 | $as_echo "$ac_res" >&6; } |
| 21832 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : |
| 21833 | cat >>confdefs.h <<_ACEOF |
| 21834 | #define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1 |
| 21835 | _ACEOF |
| 21836 | |
| 21837 | LIBS="-l"$LDAPLIBNAME" $LIBS" |
| 21838 | |
| 21839 | else |
| 21840 | |
| 21841 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5 |
| 21842 | $as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;} |
| 21843 | |
| 21844 | $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h |
| 21845 | |
| 21846 | CURL_DISABLE_LDAP=1 |
| 21847 | |
| 21848 | |
| 21849 | $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h |
| 21850 | |
| 21851 | CURL_DISABLE_LDAPS=1 |
| 21852 | |
| 21853 | fi |
| 21854 | |
| 21855 | else |
| 21856 | |
| 21857 | # |
| 21858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5 |
| 21859 | $as_echo_n "checking for LDAP libraries... " >&6; } |
| 21860 | # |
| 21861 | u_libs="" |
| 21862 | # |
| 21863 | |
| 21864 | # |
| 21865 | curl_cv_save_LIBS="$LIBS" |
| 21866 | curl_cv_ldap_LIBS="unknown" |
| 21867 | # |
| 21868 | for x_nlibs in '' "$u_libs" \ |
| 21869 | '-lldap' \ |
| 21870 | '-llber -lldap' \ |
| 21871 | '-lldap -llber' \ |
| 21872 | '-lldapssl -lldapx -lldapsdk' \ |
| 21873 | '-lldapsdk -lldapx -lldapssl' ; do |
| 21874 | if test "$curl_cv_ldap_LIBS" = "unknown"; then |
| 21875 | if test -z "$x_nlibs"; then |
| 21876 | LIBS="$curl_cv_save_LIBS" |
| 21877 | else |
| 21878 | LIBS="$x_nlibs $curl_cv_save_LIBS" |
| 21879 | fi |
| 21880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21881 | /* end confdefs.h. */ |
| 21882 | |
| 21883 | |
| 21884 | #undef inline |
| 21885 | #ifdef HAVE_WINDOWS_H |
| 21886 | #ifndef WIN32_LEAN_AND_MEAN |
| 21887 | #define WIN32_LEAN_AND_MEAN |
| 21888 | #endif |
| 21889 | #include <windows.h> |
| 21890 | #else |
| 21891 | #ifdef HAVE_SYS_TYPES_H |
| 21892 | #include <sys/types.h> |
| 21893 | #endif |
| 21894 | #endif |
| 21895 | #ifndef NULL |
| 21896 | #define NULL (void *)0 |
| 21897 | #endif |
| 21898 | #ifndef LDAP_DEPRECATED |
| 21899 | #define LDAP_DEPRECATED 1 |
| 21900 | #endif |
| 21901 | #ifdef NEED_LBER_H |
| 21902 | #include <lber.h> |
| 21903 | #endif |
| 21904 | #ifdef HAVE_LDAP_H |
| 21905 | #include <ldap.h> |
| 21906 | #endif |
| 21907 | |
| 21908 | int main (void) |
| 21909 | { |
| 21910 | |
| 21911 | BerValue *bvp = NULL; |
| 21912 | BerElement *bep = ber_init(bvp); |
| 21913 | LDAP *ldp = ldap_init("dummy", LDAP_PORT); |
| 21914 | int res = ldap_unbind(ldp); |
| 21915 | ber_free(bep, 1); |
| 21916 | |
| 21917 | ; |
| 21918 | return 0; |
| 21919 | } |
| 21920 | |
| 21921 | _ACEOF |
| 21922 | if ac_fn_c_try_link "$LINENO"; then : |
| 21923 | |
| 21924 | curl_cv_ldap_LIBS="$x_nlibs" |
| 21925 | |
| 21926 | fi |
| 21927 | rm -f core conftest.err conftest.$ac_objext \ |
| 21928 | conftest$ac_exeext conftest.$ac_ext |
| 21929 | fi |
| 21930 | done |
| 21931 | # |
| 21932 | LIBS="$curl_cv_save_LIBS" |
| 21933 | # |
| 21934 | case X-"$curl_cv_ldap_LIBS" in |
| 21935 | X-unknown) |
| 21936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5 |
| 21937 | $as_echo "cannot find LDAP libraries" >&6; } |
| 21938 | ;; |
| 21939 | X-) |
| 21940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5 |
| 21941 | $as_echo "no additional lib required" >&6; } |
| 21942 | ;; |
| 21943 | *) |
| 21944 | if test -z "$curl_cv_save_LIBS"; then |
| 21945 | LIBS="$curl_cv_ldap_LIBS" |
| 21946 | else |
| 21947 | LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS" |
| 21948 | fi |
| 21949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5 |
| 21950 | $as_echo "$curl_cv_ldap_LIBS" >&6; } |
| 21951 | ;; |
| 21952 | esac |
| 21953 | # |
| 21954 | |
| 21955 | case X-"$curl_cv_ldap_LIBS" in |
| 21956 | X-unknown) |
| 21957 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5 |
| 21958 | $as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;} |
| 21959 | |
| 21960 | $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h |
| 21961 | |
| 21962 | CURL_DISABLE_LDAP=1 |
| 21963 | |
| 21964 | |
| 21965 | $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h |
| 21966 | |
| 21967 | CURL_DISABLE_LDAPS=1 |
| 21968 | |
| 21969 | ;; |
| 21970 | esac |
| 21971 | fi |
| 21972 | fi |
| 21973 | |
| 21974 | if test x$CURL_DISABLE_LDAP != x1 ; then |
| 21975 | |
| 21976 | if test "$LBERLIBNAME" ; then |
| 21977 | if test "$LBERLIBNAME" != "no" ; then |
| 21978 | as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh` |
| 21979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5 |
| 21980 | $as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; } |
| 21981 | if eval \${$as_ac_Lib+:} false; then : |
| 21982 | $as_echo_n "(cached) " >&6 |
| 21983 | else |
| 21984 | ac_check_lib_save_LIBS=$LIBS |
| 21985 | LIBS="-l"$LBERLIBNAME" $LIBS" |
| 21986 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21987 | /* end confdefs.h. */ |
| 21988 | |
| 21989 | |
| 21990 | #ifdef __cplusplus |
| 21991 | extern "C" |
| 21992 | #endif |
| 21993 | char ber_free (); |
| 21994 | int main (void) |
| 21995 | { |
| 21996 | return ber_free (); |
| 21997 | ; |
| 21998 | return 0; |
| 21999 | } |
| 22000 | _ACEOF |
| 22001 | if ac_fn_c_try_link "$LINENO"; then : |
| 22002 | eval "$as_ac_Lib=yes" |
| 22003 | else |
| 22004 | eval "$as_ac_Lib=no" |
| 22005 | fi |
| 22006 | rm -f core conftest.err conftest.$ac_objext \ |
| 22007 | conftest$ac_exeext conftest.$ac_ext |
| 22008 | LIBS=$ac_check_lib_save_LIBS |
| 22009 | fi |
| 22010 | eval ac_res=\$$as_ac_Lib |
| 22011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 22012 | $as_echo "$ac_res" >&6; } |
| 22013 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : |
| 22014 | cat >>confdefs.h <<_ACEOF |
| 22015 | #define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1 |
| 22016 | _ACEOF |
| 22017 | |
| 22018 | LIBS="-l"$LBERLIBNAME" $LIBS" |
| 22019 | |
| 22020 | else |
| 22021 | |
| 22022 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5 |
| 22023 | $as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;} |
| 22024 | |
| 22025 | $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h |
| 22026 | |
| 22027 | CURL_DISABLE_LDAP=1 |
| 22028 | |
| 22029 | |
| 22030 | $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h |
| 22031 | |
| 22032 | CURL_DISABLE_LDAPS=1 |
| 22033 | |
| 22034 | fi |
| 22035 | |
| 22036 | fi |
| 22037 | fi |
| 22038 | fi |
| 22039 | |
| 22040 | if test x$CURL_DISABLE_LDAP != x1 ; then |
| 22041 | for ac_func in ldap_url_parse ldap_init_fd |
| 22042 | do : |
| 22043 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 22044 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 22045 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 22046 | cat >>confdefs.h <<_ACEOF |
| 22047 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 22048 | _ACEOF |
| 22049 | |
| 22050 | fi |
| 22051 | done |
| 22052 | |
| 22053 | |
| 22054 | if test "$LDAPLIBNAME" = "wldap32"; then |
| 22055 | curl_ldap_msg="enabled (winldap)" |
| 22056 | |
| 22057 | $as_echo "#define USE_WIN32_LDAP 1" >>confdefs.h |
| 22058 | |
| 22059 | else |
| 22060 | curl_ldap_msg="enabled (OpenLDAP)" |
| 22061 | if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then |
| 22062 | |
| 22063 | $as_echo "#define USE_OPENLDAP 1" >>confdefs.h |
| 22064 | |
| 22065 | USE_OPENLDAP=1 |
| 22066 | |
| 22067 | fi |
| 22068 | fi |
| 22069 | fi |
| 22070 | |
| 22071 | if test x$CURL_DISABLE_LDAPS != x1 ; then |
| 22072 | curl_ldaps_msg="enabled" |
| 22073 | fi |
| 22074 | |
| 22075 | |
| 22076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5 |
| 22077 | $as_echo_n "checking whether to enable IPv6... " >&6; } |
| 22078 | # Check whether --enable-ipv6 was given. |
| 22079 | if test "${enable_ipv6+set}" = set; then : |
| 22080 | enableval=$enable_ipv6; case "$enableval" in |
| 22081 | no) |
| 22082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 22083 | $as_echo "no" >&6; } |
| 22084 | ipv6=no |
| 22085 | ;; |
| 22086 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 22087 | $as_echo "yes" >&6; } |
| 22088 | ipv6=yes |
| 22089 | ;; |
| 22090 | esac |
| 22091 | else |
| 22092 | if test "$cross_compiling" = yes; then : |
| 22093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 22094 | $as_echo "yes" >&6; } |
| 22095 | ipv6=yes |
| 22096 | |
| 22097 | else |
| 22098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22099 | /* end confdefs.h. */ |
| 22100 | /* is AF_INET6 available? */ |
| 22101 | #include <sys/types.h> |
| 22102 | #ifdef HAVE_WINSOCK2_H |
| 22103 | #include <winsock2.h> |
| 22104 | #else |
| 22105 | #include <sys/socket.h> |
| 22106 | #endif |
| 22107 | #include <stdlib.h> /* for exit() */ |
| 22108 | main() |
| 22109 | { |
| 22110 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 22111 | exit(1); |
| 22112 | else |
| 22113 | exit(0); |
| 22114 | } |
| 22115 | |
| 22116 | _ACEOF |
| 22117 | if ac_fn_c_try_run "$LINENO"; then : |
| 22118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 22119 | $as_echo "yes" >&6; } |
| 22120 | ipv6=yes |
| 22121 | else |
| 22122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 22123 | $as_echo "no" >&6; } |
| 22124 | ipv6=no |
| 22125 | fi |
| 22126 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 22127 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 22128 | fi |
| 22129 | |
| 22130 | fi |
| 22131 | |
| 22132 | |
| 22133 | if test "$ipv6" = "yes"; then |
| 22134 | curl_ipv6_msg="enabled" |
| 22135 | fi |
| 22136 | |
| 22137 | # Check if struct sockaddr_in6 have sin6_scope_id member |
| 22138 | if test "$ipv6" = yes; then |
| 22139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5 |
| 22140 | $as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; } |
| 22141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22142 | /* end confdefs.h. */ |
| 22143 | |
| 22144 | #include <sys/types.h> |
| 22145 | #ifdef HAVE_WINSOCK2_H |
| 22146 | #include <winsock2.h> |
| 22147 | #include <ws2tcpip.h> |
| 22148 | #else |
| 22149 | #include <netinet/in.h> |
| 22150 | #endif |
| 22151 | int main (void) |
| 22152 | { |
| 22153 | struct sockaddr_in6 s; s.sin6_scope_id = 0; |
| 22154 | ; |
| 22155 | return 0; |
| 22156 | } |
| 22157 | _ACEOF |
| 22158 | if ac_fn_c_try_compile "$LINENO"; then : |
| 22159 | have_sin6_scope_id=yes |
| 22160 | fi |
| 22161 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22162 | if test "$have_sin6_scope_id" = yes; then |
| 22163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 22164 | $as_echo "yes" >&6; } |
| 22165 | |
| 22166 | $as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h |
| 22167 | |
| 22168 | else |
| 22169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 22170 | $as_echo "no" >&6; } |
| 22171 | fi |
| 22172 | fi |
| 22173 | |
| 22174 | |
| 22175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5 |
| 22176 | $as_echo_n "checking if argv can be written to... " >&6; } |
| 22177 | if test "$cross_compiling" = yes; then : |
| 22178 | |
| 22179 | curl_cv_writable_argv=cross |
| 22180 | |
| 22181 | else |
| 22182 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22183 | /* end confdefs.h. */ |
| 22184 | |
| 22185 | |
| 22186 | int main(int argc, char ** argv) { |
| 22187 | argv[0][0] = ' '; |
| 22188 | return (argv[0][0] == ' ')?0:1; |
| 22189 | } |
| 22190 | |
| 22191 | |
| 22192 | _ACEOF |
| 22193 | if ac_fn_c_try_run "$LINENO"; then : |
| 22194 | |
| 22195 | curl_cv_writable_argv=yes |
| 22196 | |
| 22197 | else |
| 22198 | |
| 22199 | curl_cv_writable_argv=no |
| 22200 | |
| 22201 | fi |
| 22202 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 22203 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 22204 | fi |
| 22205 | |
| 22206 | case $curl_cv_writable_argv in |
| 22207 | yes) |
| 22208 | |
| 22209 | $as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h |
| 22210 | |
| 22211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 22212 | $as_echo "yes" >&6; } |
| 22213 | ;; |
| 22214 | no) |
| 22215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 22216 | $as_echo "no" >&6; } |
| 22217 | ;; |
| 22218 | *) |
| 22219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 22220 | $as_echo "no" >&6; } |
| 22221 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5 |
| 22222 | $as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;} |
| 22223 | ;; |
| 22224 | esac |
| 22225 | |
| 22226 | |
| 22227 | |
| 22228 | GSSAPI_ROOT="/usr" |
| 22229 | |
| 22230 | # Check whether --with-gssapi-includes was given. |
| 22231 | if test "${with_gssapi_includes+set}" = set; then : |
| 22232 | withval=$with_gssapi_includes; GSSAPI_INCS="-I$withval" |
| 22233 | want_gss="yes" |
| 22234 | |
| 22235 | fi |
| 22236 | |
| 22237 | |
| 22238 | |
| 22239 | # Check whether --with-gssapi-libs was given. |
| 22240 | if test "${with_gssapi_libs+set}" = set; then : |
| 22241 | withval=$with_gssapi_libs; GSSAPI_LIB_DIR="-L$withval" |
| 22242 | want_gss="yes" |
| 22243 | |
| 22244 | fi |
| 22245 | |
| 22246 | |
| 22247 | |
| 22248 | # Check whether --with-gssapi was given. |
| 22249 | if test "${with_gssapi+set}" = set; then : |
| 22250 | withval=$with_gssapi; |
| 22251 | GSSAPI_ROOT="$withval" |
| 22252 | if test x"$GSSAPI_ROOT" != xno; then |
| 22253 | want_gss="yes" |
| 22254 | if test x"$GSSAPI_ROOT" = xyes; then |
| 22255 | GSSAPI_ROOT="/usr" |
| 22256 | fi |
| 22257 | fi |
| 22258 | |
| 22259 | fi |
| 22260 | |
| 22261 | |
| 22262 | : ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"} |
| 22263 | |
| 22264 | save_CPPFLAGS="$CPPFLAGS" |
| 22265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5 |
| 22266 | $as_echo_n "checking if GSS-API support is requested... " >&6; } |
| 22267 | if test x"$want_gss" = xyes; then |
| 22268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 22269 | $as_echo "yes" >&6; } |
| 22270 | |
| 22271 | if test -z "$GSSAPI_INCS"; then |
| 22272 | if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then |
| 22273 | GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi` |
| 22274 | elif test -f "$KRB5CONFIG"; then |
| 22275 | GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi` |
| 22276 | elif test "$GSSAPI_ROOT" != "yes"; then |
| 22277 | GSSAPI_INCS="-I$GSSAPI_ROOT/include" |
| 22278 | fi |
| 22279 | fi |
| 22280 | |
| 22281 | CPPFLAGS="$CPPFLAGS $GSSAPI_INCS" |
| 22282 | |
| 22283 | ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default" |
| 22284 | if test "x$ac_cv_header_gss_h" = xyes; then : |
| 22285 | |
| 22286 | |
| 22287 | $as_echo "#define HAVE_GSSGNU 1" >>confdefs.h |
| 22288 | |
| 22289 | gnu_gss=yes |
| 22290 | |
| 22291 | else |
| 22292 | |
| 22293 | for ac_header in gssapi/gssapi.h |
| 22294 | do : |
| 22295 | ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default" |
| 22296 | if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then : |
| 22297 | cat >>confdefs.h <<_ACEOF |
| 22298 | #define HAVE_GSSAPI_GSSAPI_H 1 |
| 22299 | _ACEOF |
| 22300 | |
| 22301 | else |
| 22302 | not_mit=1 |
| 22303 | fi |
| 22304 | |
| 22305 | done |
| 22306 | |
| 22307 | for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h |
| 22308 | do : |
| 22309 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 22310 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " |
| 22311 | $ac_includes_default |
| 22312 | #ifdef HAVE_GSSAPI_GSSAPI_H |
| 22313 | #include <gssapi/gssapi.h> |
| 22314 | #endif |
| 22315 | |
| 22316 | " |
| 22317 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 22318 | cat >>confdefs.h <<_ACEOF |
| 22319 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 22320 | _ACEOF |
| 22321 | |
| 22322 | else |
| 22323 | not_mit=1 |
| 22324 | fi |
| 22325 | |
| 22326 | done |
| 22327 | |
| 22328 | if test "x$not_mit" = "x1"; then |
| 22329 | ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" |
| 22330 | if test "x$ac_cv_header_gssapi_h" = xyes; then : |
| 22331 | |
| 22332 | |
| 22333 | $as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h |
| 22334 | |
| 22335 | |
| 22336 | else |
| 22337 | |
| 22338 | want_gss=no |
| 22339 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5 |
| 22340 | $as_echo "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;} |
| 22341 | |
| 22342 | |
| 22343 | fi |
| 22344 | |
| 22345 | |
| 22346 | else |
| 22347 | |
| 22348 | $as_echo "#define HAVE_GSSMIT 1" >>confdefs.h |
| 22349 | |
| 22350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5 |
| 22351 | $as_echo_n "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; } |
| 22352 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22353 | /* end confdefs.h. */ |
| 22354 | |
| 22355 | |
| 22356 | #include <gssapi/gssapi.h> |
| 22357 | #include <gssapi/gssapi_generic.h> |
| 22358 | #include <gssapi/gssapi_krb5.h> |
| 22359 | |
| 22360 | int main (void) |
| 22361 | { |
| 22362 | |
| 22363 | gss_import_name( |
| 22364 | (OM_uint32 *)0, |
| 22365 | (gss_buffer_t)0, |
| 22366 | GSS_C_NT_HOSTBASED_SERVICE, |
| 22367 | (gss_name_t *)0); |
| 22368 | |
| 22369 | ; |
| 22370 | return 0; |
| 22371 | } |
| 22372 | |
| 22373 | _ACEOF |
| 22374 | if ac_fn_c_try_compile "$LINENO"; then : |
| 22375 | |
| 22376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 22377 | $as_echo "yes" >&6; } |
| 22378 | |
| 22379 | else |
| 22380 | |
| 22381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 22382 | $as_echo "no" >&6; } |
| 22383 | |
| 22384 | $as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h |
| 22385 | |
| 22386 | |
| 22387 | fi |
| 22388 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22389 | fi |
| 22390 | |
| 22391 | |
| 22392 | fi |
| 22393 | |
| 22394 | |
| 22395 | else |
| 22396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 22397 | $as_echo "no" >&6; } |
| 22398 | fi |
| 22399 | if test x"$want_gss" = xyes; then |
| 22400 | |
| 22401 | $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h |
| 22402 | |
| 22403 | HAVE_GSSAPI=1 |
| 22404 | curl_gss_msg="enabled (MIT Kerberos/Heimdal)" |
| 22405 | |
| 22406 | if test -n "$gnu_gss"; then |
| 22407 | curl_gss_msg="enabled (GNU GSS)" |
| 22408 | LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR" |
| 22409 | LIBS="-lgss $LIBS" |
| 22410 | elif test -z "$GSSAPI_LIB_DIR"; then |
| 22411 | case $host in |
| 22412 | *-*-darwin*) |
| 22413 | LIBS="-lgssapi_krb5 -lresolv $LIBS" |
| 22414 | ;; |
| 22415 | *) |
| 22416 | if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then |
| 22417 | gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi` |
| 22418 | LIBS="$gss_libs $LIBS" |
| 22419 | elif test -f "$KRB5CONFIG"; then |
| 22420 | gss_libs=`$KRB5CONFIG --libs gssapi` |
| 22421 | LIBS="$gss_libs $LIBS" |
| 22422 | else |
| 22423 | case $host in |
| 22424 | *-hp-hpux*) |
| 22425 | gss_libname="gss" |
| 22426 | ;; |
| 22427 | *) |
| 22428 | gss_libname="gssapi" |
| 22429 | ;; |
| 22430 | esac |
| 22431 | |
| 22432 | if test "$GSSAPI_ROOT" != "yes"; then |
| 22433 | LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff" |
| 22434 | LIBS="-l$gss_libname $LIBS" |
| 22435 | else |
| 22436 | LIBS="-l$gss_libname $LIBS" |
| 22437 | fi |
| 22438 | fi |
| 22439 | ;; |
| 22440 | esac |
| 22441 | else |
| 22442 | LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR" |
| 22443 | case $host in |
| 22444 | *-hp-hpux*) |
| 22445 | LIBS="-lgss $LIBS" |
| 22446 | ;; |
| 22447 | *) |
| 22448 | LIBS="-lgssapi $LIBS" |
| 22449 | ;; |
| 22450 | esac |
| 22451 | fi |
| 22452 | else |
| 22453 | CPPFLAGS="$save_CPPFLAGS" |
| 22454 | fi |
| 22455 | |
| 22456 | |
| 22457 | OPT_WINSSL=no |
| 22458 | |
| 22459 | # Check whether --with-winssl was given. |
| 22460 | if test "${with_winssl+set}" = set; then : |
| 22461 | withval=$with_winssl; OPT_WINSSL=$withval |
| 22462 | fi |
| 22463 | |
| 22464 | |
| 22465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS (Windows native builds only)" >&5 |
| 22466 | $as_echo_n "checking whether to enable Windows native SSL/TLS (Windows native builds only)... " >&6; } |
| 22467 | if test "$curl_ssl_msg" = "$init_ssl_msg"; then |
| 22468 | if test "x$OPT_WINSSL" != "xno" && |
| 22469 | test "x$curl_cv_native_windows" = "xyes"; then |
| 22470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 22471 | $as_echo "yes" >&6; } |
| 22472 | |
| 22473 | $as_echo "#define USE_SCHANNEL 1" >>confdefs.h |
| 22474 | |
| 22475 | USE_SCHANNEL=1 |
| 22476 | |
| 22477 | curl_ssl_msg="enabled (Windows-native)" |
| 22478 | WINSSL_ENABLED=1 |
| 22479 | # --with-winssl implies --enable-sspi |
| 22480 | |
| 22481 | $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h |
| 22482 | |
| 22483 | USE_WINDOWS_SSPI=1 |
| 22484 | |
| 22485 | curl_sspi_msg="enabled" |
| 22486 | LIBS="-lcrypt32 $LIBS" |
| 22487 | else |
| 22488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 22489 | $as_echo "no" >&6; } |
| 22490 | fi |
| 22491 | else |
| 22492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 22493 | $as_echo "no" >&6; } |
| 22494 | fi |
| 22495 | |
| 22496 | OPT_DARWINSSL=no |
| 22497 | |
| 22498 | # Check whether --with-darwinssl was given. |
| 22499 | if test "${with_darwinssl+set}" = set; then : |
| 22500 | withval=$with_darwinssl; OPT_DARWINSSL=$withval |
| 22501 | fi |
| 22502 | |
| 22503 | |
| 22504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Apple OS native SSL/TLS" >&5 |
| 22505 | $as_echo_n "checking whether to enable Apple OS native SSL/TLS... " >&6; } |
| 22506 | if test "$curl_ssl_msg" = "$init_ssl_msg"; then |
| 22507 | if test "x$OPT_DARWINSSL" != "xno" && |
| 22508 | test -d "/System/Library/Frameworks/Security.framework"; then |
| 22509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 22510 | $as_echo "yes" >&6; } |
| 22511 | |
| 22512 | $as_echo "#define USE_DARWINSSL 1" >>confdefs.h |
| 22513 | |
| 22514 | USE_DARWINSSL=1 |
| 22515 | |
| 22516 | curl_ssl_msg="enabled (Apple OS-native)" |
| 22517 | DARWINSSL_ENABLED=1 |
| 22518 | LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security" |
| 22519 | else |
| 22520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 22521 | $as_echo "no" >&6; } |
| 22522 | fi |
| 22523 | else |
| 22524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 22525 | $as_echo "no" >&6; } |
| 22526 | fi |
| 22527 | |
| 22528 | |
| 22529 | OPT_SSL=off |
| 22530 | ca="no" |
| 22531 | |
| 22532 | # Check whether --with-ssl was given. |
| 22533 | if test "${with_ssl+set}" = set; then : |
| 22534 | withval=$with_ssl; OPT_SSL=$withval |
| 22535 | fi |
| 22536 | |
| 22537 | |
| 22538 | if test "$curl_ssl_msg" = "$init_ssl_msg" && test X"$OPT_SSL" != Xno; then |
| 22539 | CLEANLDFLAGS="$LDFLAGS" |
| 22540 | CLEANCPPFLAGS="$CPPFLAGS" |
| 22541 | CLEANLIBS="$LIBS" |
| 22542 | |
| 22543 | case $host in |
| 22544 | *-*-msys* | *-*-mingw*) |
| 22545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5 |
| 22546 | $as_echo_n "checking for gdi32... " >&6; } |
| 22547 | my_ac_save_LIBS=$LIBS |
| 22548 | LIBS="-lgdi32 $LIBS" |
| 22549 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22550 | /* end confdefs.h. */ |
| 22551 | #include <windef.h> |
| 22552 | #include <wingdi.h> |
| 22553 | int main (void) |
| 22554 | { |
| 22555 | GdiFlush(); |
| 22556 | ; |
| 22557 | return 0; |
| 22558 | } |
| 22559 | _ACEOF |
| 22560 | if ac_fn_c_try_link "$LINENO"; then : |
| 22561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 22562 | $as_echo "yes" >&6; } |
| 22563 | else |
| 22564 | LIBS=$my_ac_save_LIBS |
| 22565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 22566 | $as_echo "no" >&6; } |
| 22567 | |
| 22568 | fi |
| 22569 | rm -f core conftest.err conftest.$ac_objext \ |
| 22570 | conftest$ac_exeext conftest.$ac_ext |
| 22571 | ;; |
| 22572 | esac |
| 22573 | |
| 22574 | case "$OPT_SSL" in |
| 22575 | yes) |
| 22576 | if test x$cross_compiling != xyes; then |
| 22577 | PKGTEST="yes" |
| 22578 | fi |
| 22579 | PREFIX_OPENSSL=/usr/local/ssl |
| 22580 | LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff" |
| 22581 | ;; |
| 22582 | off) |
| 22583 | if test x$cross_compiling != xyes; then |
| 22584 | PKGTEST="yes" |
| 22585 | fi |
| 22586 | PREFIX_OPENSSL= |
| 22587 | ;; |
| 22588 | *) |
| 22589 | PKGTEST="no" |
| 22590 | PREFIX_OPENSSL=$OPT_SSL |
| 22591 | |
| 22592 | OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig" |
| 22593 | { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5 |
| 22594 | $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;} |
| 22595 | if test -f "$OPENSSL_PCDIR/openssl.pc"; then |
| 22596 | PKGTEST="yes" |
| 22597 | fi |
| 22598 | |
| 22599 | LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff" |
| 22600 | if test "$PREFIX_OPENSSL" != "/usr" ; then |
| 22601 | SSL_LDFLAGS="-L$LIB_OPENSSL" |
| 22602 | SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include" |
| 22603 | fi |
| 22604 | SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl" |
| 22605 | ;; |
| 22606 | esac |
| 22607 | |
| 22608 | if test "$PKGTEST" = "yes"; then |
| 22609 | |
| 22610 | |
| 22611 | if test -n "$PKG_CONFIG"; then |
| 22612 | PKGCONFIG="$PKG_CONFIG" |
| 22613 | else |
| 22614 | if test -n "$ac_tool_prefix"; then |
| 22615 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 22616 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 22617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 22618 | $as_echo_n "checking for $ac_word... " >&6; } |
| 22619 | if ${ac_cv_path_PKGCONFIG+:} false; then : |
| 22620 | $as_echo_n "(cached) " >&6 |
| 22621 | else |
| 22622 | case $PKGCONFIG in |
| 22623 | [\\/]* | ?:[\\/]*) |
| 22624 | ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. |
| 22625 | ;; |
| 22626 | *) |
| 22627 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 22628 | as_dummy="$PATH:/usr/bin:/usr/local/bin" |
| 22629 | for as_dir in $as_dummy |
| 22630 | do |
| 22631 | IFS=$as_save_IFS |
| 22632 | test -z "$as_dir" && as_dir=. |
| 22633 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 22634 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 22635 | ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 22636 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 22637 | break 2 |
| 22638 | fi |
| 22639 | done |
| 22640 | done |
| 22641 | IFS=$as_save_IFS |
| 22642 | |
| 22643 | ;; |
| 22644 | esac |
| 22645 | fi |
| 22646 | PKGCONFIG=$ac_cv_path_PKGCONFIG |
| 22647 | if test -n "$PKGCONFIG"; then |
| 22648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 |
| 22649 | $as_echo "$PKGCONFIG" >&6; } |
| 22650 | else |
| 22651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 22652 | $as_echo "no" >&6; } |
| 22653 | fi |
| 22654 | |
| 22655 | |
| 22656 | fi |
| 22657 | if test -z "$ac_cv_path_PKGCONFIG"; then |
| 22658 | ac_pt_PKGCONFIG=$PKGCONFIG |
| 22659 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 22660 | set dummy pkg-config; ac_word=$2 |
| 22661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 22662 | $as_echo_n "checking for $ac_word... " >&6; } |
| 22663 | if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : |
| 22664 | $as_echo_n "(cached) " >&6 |
| 22665 | else |
| 22666 | case $ac_pt_PKGCONFIG in |
| 22667 | [\\/]* | ?:[\\/]*) |
| 22668 | ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. |
| 22669 | ;; |
| 22670 | *) |
| 22671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 22672 | as_dummy="$PATH:/usr/bin:/usr/local/bin" |
| 22673 | for as_dir in $as_dummy |
| 22674 | do |
| 22675 | IFS=$as_save_IFS |
| 22676 | test -z "$as_dir" && as_dir=. |
| 22677 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 22678 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 22679 | ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 22680 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 22681 | break 2 |
| 22682 | fi |
| 22683 | done |
| 22684 | done |
| 22685 | IFS=$as_save_IFS |
| 22686 | |
| 22687 | ;; |
| 22688 | esac |
| 22689 | fi |
| 22690 | ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG |
| 22691 | if test -n "$ac_pt_PKGCONFIG"; then |
| 22692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 |
| 22693 | $as_echo "$ac_pt_PKGCONFIG" >&6; } |
| 22694 | else |
| 22695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 22696 | $as_echo "no" >&6; } |
| 22697 | fi |
| 22698 | |
| 22699 | if test "x$ac_pt_PKGCONFIG" = x; then |
| 22700 | PKGCONFIG="no" |
| 22701 | else |
| 22702 | case $cross_compiling:$ac_tool_warned in |
| 22703 | yes:) |
| 22704 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 22705 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 22706 | ac_tool_warned=yes ;; |
| 22707 | esac |
| 22708 | PKGCONFIG=$ac_pt_PKGCONFIG |
| 22709 | fi |
| 22710 | else |
| 22711 | PKGCONFIG="$ac_cv_path_PKGCONFIG" |
| 22712 | fi |
| 22713 | |
| 22714 | fi |
| 22715 | |
| 22716 | if test "x$PKGCONFIG" != "xno"; then |
| 22717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5 |
| 22718 | $as_echo_n "checking for openssl options with pkg-config... " >&6; } |
| 22719 | itexists=` |
| 22720 | if test -n "$OPENSSL_PCDIR"; then |
| 22721 | PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR" |
| 22722 | export PKG_CONFIG_LIBDIR |
| 22723 | fi |
| 22724 | $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1` |
| 22725 | |
| 22726 | if test -z "$itexists"; then |
| 22727 | PKGCONFIG="no" |
| 22728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 22729 | $as_echo "no" >&6; } |
| 22730 | else |
| 22731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 22732 | $as_echo "found" >&6; } |
| 22733 | fi |
| 22734 | fi |
| 22735 | |
| 22736 | |
| 22737 | if test "$PKGCONFIG" != "no" ; then |
| 22738 | SSL_LIBS=` |
| 22739 | if test -n "$OPENSSL_PCDIR"; then |
| 22740 | PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR" |
| 22741 | export PKG_CONFIG_LIBDIR |
| 22742 | fi |
| 22743 | $PKGCONFIG --libs-only-l openssl 2>/dev/null` |
| 22744 | |
| 22745 | SSL_LDFLAGS=` |
| 22746 | if test -n "$OPENSSL_PCDIR"; then |
| 22747 | PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR" |
| 22748 | export PKG_CONFIG_LIBDIR |
| 22749 | fi |
| 22750 | $PKGCONFIG --libs-only-L openssl 2>/dev/null` |
| 22751 | |
| 22752 | SSL_CPPFLAGS=` |
| 22753 | if test -n "$OPENSSL_PCDIR"; then |
| 22754 | PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR" |
| 22755 | export PKG_CONFIG_LIBDIR |
| 22756 | fi |
| 22757 | $PKGCONFIG --cflags-only-I openssl 2>/dev/null` |
| 22758 | |
| 22759 | |
| 22760 | { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5 |
| 22761 | $as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;} |
| 22762 | { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5 |
| 22763 | $as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;} |
| 22764 | { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5 |
| 22765 | $as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;} |
| 22766 | |
| 22767 | LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'` |
| 22768 | |
| 22769 | LIBS="$SSL_LIBS $LIBS" |
| 22770 | fi |
| 22771 | fi |
| 22772 | |
| 22773 | CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS" |
| 22774 | LDFLAGS="$LDFLAGS $SSL_LDFLAGS" |
| 22775 | |
| 22776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5 |
| 22777 | $as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; } |
| 22778 | if ${ac_cv_lib_crypto_HMAC_Update+:} false; then : |
| 22779 | $as_echo_n "(cached) " >&6 |
| 22780 | else |
| 22781 | ac_check_lib_save_LIBS=$LIBS |
| 22782 | LIBS="-lcrypto $LIBS" |
| 22783 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22784 | /* end confdefs.h. */ |
| 22785 | |
| 22786 | |
| 22787 | #ifdef __cplusplus |
| 22788 | extern "C" |
| 22789 | #endif |
| 22790 | char HMAC_Update (); |
| 22791 | int main (void) |
| 22792 | { |
| 22793 | return HMAC_Update (); |
| 22794 | ; |
| 22795 | return 0; |
| 22796 | } |
| 22797 | _ACEOF |
| 22798 | if ac_fn_c_try_link "$LINENO"; then : |
| 22799 | ac_cv_lib_crypto_HMAC_Update=yes |
| 22800 | else |
| 22801 | ac_cv_lib_crypto_HMAC_Update=no |
| 22802 | fi |
| 22803 | rm -f core conftest.err conftest.$ac_objext \ |
| 22804 | conftest$ac_exeext conftest.$ac_ext |
| 22805 | LIBS=$ac_check_lib_save_LIBS |
| 22806 | fi |
| 22807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5 |
| 22808 | $as_echo "$ac_cv_lib_crypto_HMAC_Update" >&6; } |
| 22809 | if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes; then : |
| 22810 | |
| 22811 | HAVECRYPTO="yes" |
| 22812 | LIBS="-lcrypto $LIBS" |
| 22813 | |
| 22814 | else |
| 22815 | |
| 22816 | LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL" |
| 22817 | CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include" |
| 22818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5 |
| 22819 | $as_echo_n "checking for HMAC_Init_ex in -lcrypto... " >&6; } |
| 22820 | if ${ac_cv_lib_crypto_HMAC_Init_ex+:} false; then : |
| 22821 | $as_echo_n "(cached) " >&6 |
| 22822 | else |
| 22823 | ac_check_lib_save_LIBS=$LIBS |
| 22824 | LIBS="-lcrypto $LIBS" |
| 22825 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22826 | /* end confdefs.h. */ |
| 22827 | |
| 22828 | |
| 22829 | #ifdef __cplusplus |
| 22830 | extern "C" |
| 22831 | #endif |
| 22832 | char HMAC_Init_ex (); |
| 22833 | int main (void) |
| 22834 | { |
| 22835 | return HMAC_Init_ex (); |
| 22836 | ; |
| 22837 | return 0; |
| 22838 | } |
| 22839 | _ACEOF |
| 22840 | if ac_fn_c_try_link "$LINENO"; then : |
| 22841 | ac_cv_lib_crypto_HMAC_Init_ex=yes |
| 22842 | else |
| 22843 | ac_cv_lib_crypto_HMAC_Init_ex=no |
| 22844 | fi |
| 22845 | rm -f core conftest.err conftest.$ac_objext \ |
| 22846 | conftest$ac_exeext conftest.$ac_ext |
| 22847 | LIBS=$ac_check_lib_save_LIBS |
| 22848 | fi |
| 22849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5 |
| 22850 | $as_echo "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; } |
| 22851 | if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes; then : |
| 22852 | |
| 22853 | HAVECRYPTO="yes" |
| 22854 | LIBS="-lcrypto $LIBS" |
| 22855 | else |
| 22856 | |
| 22857 | |
| 22858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5 |
| 22859 | $as_echo_n "checking OpenSSL linking with -ldl... " >&6; } |
| 22860 | LIBS="-ldl $LIBS" |
| 22861 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22862 | /* end confdefs.h. */ |
| 22863 | |
| 22864 | #include <openssl/err.h> |
| 22865 | |
| 22866 | int main (void) |
| 22867 | { |
| 22868 | |
| 22869 | ERR_clear_error(); |
| 22870 | |
| 22871 | ; |
| 22872 | return 0; |
| 22873 | } |
| 22874 | _ACEOF |
| 22875 | if ac_fn_c_try_link "$LINENO"; then : |
| 22876 | |
| 22877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 22878 | $as_echo "yes" >&6; } |
| 22879 | HAVECRYPTO="yes" |
| 22880 | |
| 22881 | else |
| 22882 | |
| 22883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 22884 | $as_echo "no" >&6; } |
| 22885 | |
| 22886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5 |
| 22887 | $as_echo_n "checking OpenSSL linking with -ldl and -lpthread... " >&6; } |
| 22888 | LIBS="-lpthread $LIBS" |
| 22889 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22890 | /* end confdefs.h. */ |
| 22891 | |
| 22892 | #include <openssl/err.h> |
| 22893 | |
| 22894 | int main (void) |
| 22895 | { |
| 22896 | |
| 22897 | ERR_clear_error(); |
| 22898 | |
| 22899 | ; |
| 22900 | return 0; |
| 22901 | } |
| 22902 | _ACEOF |
| 22903 | if ac_fn_c_try_link "$LINENO"; then : |
| 22904 | |
| 22905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 22906 | $as_echo "yes" >&6; } |
| 22907 | HAVECRYPTO="yes" |
| 22908 | |
| 22909 | else |
| 22910 | |
| 22911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 22912 | $as_echo "no" >&6; } |
| 22913 | LDFLAGS="$CLEANLDFLAGS" |
| 22914 | CPPFLAGS="$CLEANCPPFLAGS" |
| 22915 | LIBS="$CLEANLIBS" |
| 22916 | |
| 22917 | |
| 22918 | fi |
| 22919 | rm -f core conftest.err conftest.$ac_objext \ |
| 22920 | conftest$ac_exeext conftest.$ac_ext |
| 22921 | |
| 22922 | |
| 22923 | fi |
| 22924 | rm -f core conftest.err conftest.$ac_objext \ |
| 22925 | conftest$ac_exeext conftest.$ac_ext |
| 22926 | |
| 22927 | |
| 22928 | fi |
| 22929 | |
| 22930 | |
| 22931 | fi |
| 22932 | |
| 22933 | |
| 22934 | if test X"$HAVECRYPTO" = X"yes"; then |
| 22935 | |
| 22936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5 |
| 22937 | $as_echo_n "checking for SSL_connect in -lssl... " >&6; } |
| 22938 | if ${ac_cv_lib_ssl_SSL_connect+:} false; then : |
| 22939 | $as_echo_n "(cached) " >&6 |
| 22940 | else |
| 22941 | ac_check_lib_save_LIBS=$LIBS |
| 22942 | LIBS="-lssl $LIBS" |
| 22943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22944 | /* end confdefs.h. */ |
| 22945 | |
| 22946 | |
| 22947 | #ifdef __cplusplus |
| 22948 | extern "C" |
| 22949 | #endif |
| 22950 | char SSL_connect (); |
| 22951 | int main (void) |
| 22952 | { |
| 22953 | return SSL_connect (); |
| 22954 | ; |
| 22955 | return 0; |
| 22956 | } |
| 22957 | _ACEOF |
| 22958 | if ac_fn_c_try_link "$LINENO"; then : |
| 22959 | ac_cv_lib_ssl_SSL_connect=yes |
| 22960 | else |
| 22961 | ac_cv_lib_ssl_SSL_connect=no |
| 22962 | fi |
| 22963 | rm -f core conftest.err conftest.$ac_objext \ |
| 22964 | conftest$ac_exeext conftest.$ac_ext |
| 22965 | LIBS=$ac_check_lib_save_LIBS |
| 22966 | fi |
| 22967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5 |
| 22968 | $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; } |
| 22969 | if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then : |
| 22970 | cat >>confdefs.h <<_ACEOF |
| 22971 | #define HAVE_LIBSSL 1 |
| 22972 | _ACEOF |
| 22973 | |
| 22974 | LIBS="-lssl $LIBS" |
| 22975 | |
| 22976 | fi |
| 22977 | |
| 22978 | |
| 22979 | if test "$ac_cv_lib_ssl_SSL_connect" != yes; then |
| 22980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5 |
| 22981 | $as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; }; |
| 22982 | OLIBS=$LIBS |
| 22983 | LIBS="-lRSAglue -lrsaref $LIBS" |
| 22984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5 |
| 22985 | $as_echo_n "checking for SSL_connect in -lssl... " >&6; } |
| 22986 | if ${ac_cv_lib_ssl_SSL_connect+:} false; then : |
| 22987 | $as_echo_n "(cached) " >&6 |
| 22988 | else |
| 22989 | ac_check_lib_save_LIBS=$LIBS |
| 22990 | LIBS="-lssl $LIBS" |
| 22991 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22992 | /* end confdefs.h. */ |
| 22993 | |
| 22994 | |
| 22995 | #ifdef __cplusplus |
| 22996 | extern "C" |
| 22997 | #endif |
| 22998 | char SSL_connect (); |
| 22999 | int main (void) |
| 23000 | { |
| 23001 | return SSL_connect (); |
| 23002 | ; |
| 23003 | return 0; |
| 23004 | } |
| 23005 | _ACEOF |
| 23006 | if ac_fn_c_try_link "$LINENO"; then : |
| 23007 | ac_cv_lib_ssl_SSL_connect=yes |
| 23008 | else |
| 23009 | ac_cv_lib_ssl_SSL_connect=no |
| 23010 | fi |
| 23011 | rm -f core conftest.err conftest.$ac_objext \ |
| 23012 | conftest$ac_exeext conftest.$ac_ext |
| 23013 | LIBS=$ac_check_lib_save_LIBS |
| 23014 | fi |
| 23015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5 |
| 23016 | $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; } |
| 23017 | if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then : |
| 23018 | cat >>confdefs.h <<_ACEOF |
| 23019 | #define HAVE_LIBSSL 1 |
| 23020 | _ACEOF |
| 23021 | |
| 23022 | LIBS="-lssl $LIBS" |
| 23023 | |
| 23024 | fi |
| 23025 | |
| 23026 | if test "$ac_cv_lib_ssl_SSL_connect" != yes; then |
| 23027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 23028 | $as_echo "no" >&6; } |
| 23029 | LIBS=$OLIBS |
| 23030 | else |
| 23031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 23032 | $as_echo "yes" >&6; } |
| 23033 | fi |
| 23034 | |
| 23035 | else |
| 23036 | |
| 23037 | for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \ |
| 23038 | openssl/pem.h openssl/ssl.h openssl/err.h |
| 23039 | do : |
| 23040 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 23041 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 23042 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 23043 | cat >>confdefs.h <<_ACEOF |
| 23044 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 23045 | _ACEOF |
| 23046 | curl_ssl_msg="enabled (OpenSSL)" |
| 23047 | OPENSSL_ENABLED=1 |
| 23048 | |
| 23049 | $as_echo "#define USE_OPENSSL 1" >>confdefs.h |
| 23050 | |
| 23051 | fi |
| 23052 | |
| 23053 | done |
| 23054 | |
| 23055 | |
| 23056 | if test $ac_cv_header_openssl_x509_h = no; then |
| 23057 | for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h |
| 23058 | do : |
| 23059 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 23060 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 23061 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 23062 | cat >>confdefs.h <<_ACEOF |
| 23063 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 23064 | _ACEOF |
| 23065 | |
| 23066 | fi |
| 23067 | |
| 23068 | done |
| 23069 | |
| 23070 | |
| 23071 | if test $ac_cv_header_x509_h = yes && |
| 23072 | test $ac_cv_header_crypto_h = yes && |
| 23073 | test $ac_cv_header_ssl_h = yes; then |
| 23074 | curl_ssl_msg="enabled (OpenSSL)" |
| 23075 | OPENSSL_ENABLED=1 |
| 23076 | fi |
| 23077 | fi |
| 23078 | fi |
| 23079 | |
| 23080 | if test X"$OPENSSL_ENABLED" = X"1"; then |
| 23081 | for ac_header in openssl/pkcs12.h |
| 23082 | do : |
| 23083 | ac_fn_c_check_header_mongrel "$LINENO" "openssl/pkcs12.h" "ac_cv_header_openssl_pkcs12_h" "$ac_includes_default" |
| 23084 | if test "x$ac_cv_header_openssl_pkcs12_h" = xyes; then : |
| 23085 | cat >>confdefs.h <<_ACEOF |
| 23086 | #define HAVE_OPENSSL_PKCS12_H 1 |
| 23087 | _ACEOF |
| 23088 | |
| 23089 | fi |
| 23090 | |
| 23091 | done |
| 23092 | |
| 23093 | else |
| 23094 | LIBS="$CLEANLIBS" |
| 23095 | fi |
| 23096 | |
| 23097 | if test X"$OPT_SSL" != Xoff && |
| 23098 | test "$OPENSSL_ENABLED" != "1"; then |
| 23099 | as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5 |
| 23100 | fi |
| 23101 | fi |
| 23102 | |
| 23103 | if test X"$OPENSSL_ENABLED" = X"1"; then |
| 23104 | ac_fn_c_check_func "$LINENO" "ENGINE_init" "ac_cv_func_ENGINE_init" |
| 23105 | if test "x$ac_cv_func_ENGINE_init" = xyes; then : |
| 23106 | |
| 23107 | for ac_header in openssl/engine.h |
| 23108 | do : |
| 23109 | ac_fn_c_check_header_mongrel "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default" |
| 23110 | if test "x$ac_cv_header_openssl_engine_h" = xyes; then : |
| 23111 | cat >>confdefs.h <<_ACEOF |
| 23112 | #define HAVE_OPENSSL_ENGINE_H 1 |
| 23113 | _ACEOF |
| 23114 | |
| 23115 | fi |
| 23116 | |
| 23117 | done |
| 23118 | |
| 23119 | for ac_func in ENGINE_load_builtin_engines |
| 23120 | do : |
| 23121 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 23122 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 23123 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 23124 | cat >>confdefs.h <<_ACEOF |
| 23125 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 23126 | _ACEOF |
| 23127 | |
| 23128 | fi |
| 23129 | done |
| 23130 | |
| 23131 | |
| 23132 | fi |
| 23133 | |
| 23134 | |
| 23135 | |
| 23136 | for ac_func in RAND_egd \ |
| 23137 | ENGINE_cleanup \ |
| 23138 | SSL_get_shutdown \ |
| 23139 | SSLv2_client_method |
| 23140 | do : |
| 23141 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 23142 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 23143 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 23144 | cat >>confdefs.h <<_ACEOF |
| 23145 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 23146 | _ACEOF |
| 23147 | |
| 23148 | fi |
| 23149 | done |
| 23150 | |
| 23151 | |
| 23152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5 |
| 23153 | $as_echo_n "checking for BoringSSL... " >&6; } |
| 23154 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23155 | /* end confdefs.h. */ |
| 23156 | |
| 23157 | |
| 23158 | #include <openssl/base.h> |
| 23159 | |
| 23160 | int main (void) |
| 23161 | { |
| 23162 | |
| 23163 | #ifndef OPENSSL_IS_BORINGSSL |
| 23164 | #error not boringssl |
| 23165 | #endif |
| 23166 | |
| 23167 | ; |
| 23168 | return 0; |
| 23169 | } |
| 23170 | |
| 23171 | _ACEOF |
| 23172 | if ac_fn_c_try_compile "$LINENO"; then : |
| 23173 | |
| 23174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 23175 | $as_echo "yes" >&6; } |
| 23176 | |
| 23177 | cat >>confdefs.h <<_ACEOF |
| 23178 | #define HAVE_BORINGSSL 1 |
| 23179 | _ACEOF |
| 23180 | |
| 23181 | curl_ssl_msg="enabled (BoringSSL)" |
| 23182 | |
| 23183 | else |
| 23184 | |
| 23185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 23186 | $as_echo "no" >&6; } |
| 23187 | |
| 23188 | fi |
| 23189 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23190 | |
| 23191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5 |
| 23192 | $as_echo_n "checking for libressl... " >&6; } |
| 23193 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23194 | /* end confdefs.h. */ |
| 23195 | |
| 23196 | |
| 23197 | #include <openssl/opensslv.h> |
| 23198 | |
| 23199 | int main (void) |
| 23200 | { |
| 23201 | |
| 23202 | int dummy = LIBRESSL_VERSION_NUMBER; |
| 23203 | |
| 23204 | ; |
| 23205 | return 0; |
| 23206 | } |
| 23207 | |
| 23208 | _ACEOF |
| 23209 | if ac_fn_c_try_compile "$LINENO"; then : |
| 23210 | |
| 23211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 23212 | $as_echo "yes" >&6; } |
| 23213 | |
| 23214 | cat >>confdefs.h <<_ACEOF |
| 23215 | #define HAVE_LIBRESSL 1 |
| 23216 | _ACEOF |
| 23217 | |
| 23218 | curl_ssl_msg="enabled (libressl)" |
| 23219 | |
| 23220 | else |
| 23221 | |
| 23222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 23223 | $as_echo "no" >&6; } |
| 23224 | |
| 23225 | fi |
| 23226 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23227 | fi |
| 23228 | |
| 23229 | if test "$OPENSSL_ENABLED" = "1"; then |
| 23230 | if test -n "$LIB_OPENSSL"; then |
| 23231 | if test "x$cross_compiling" != "xyes"; then |
| 23232 | LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_OPENSSL" |
| 23233 | export LD_LIBRARY_PATH |
| 23234 | { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&5 |
| 23235 | $as_echo "$as_me: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&6;} |
| 23236 | fi |
| 23237 | fi |
| 23238 | |
| 23239 | # |
| 23240 | |
| 23241 | # |
| 23242 | tst_api="unknown" |
| 23243 | # |
| 23244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5 |
| 23245 | $as_echo_n "checking for OpenSSL headers version... " >&6; } |
| 23246 | |
| 23247 | OLDCPPFLAGS=$CPPFLAGS |
| 23248 | # CPPPFLAG comes from CURL_CPP_P |
| 23249 | CPPFLAGS="$CPPFLAGS $CPPPFLAG" |
| 23250 | if test -z "$SED"; then |
| 23251 | as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5 |
| 23252 | fi |
| 23253 | if test -z "$GREP"; then |
| 23254 | as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5 |
| 23255 | fi |
| 23256 | |
| 23257 | tmp_exp="" |
| 23258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23259 | /* end confdefs.h. */ |
| 23260 | |
| 23261 | |
| 23262 | # ifdef USE_OPENSSL |
| 23263 | # include <openssl/crypto.h> |
| 23264 | # else |
| 23265 | # include <crypto.h> |
| 23266 | # endif |
| 23267 | |
| 23268 | #ifdef OPENSSL_VERSION_NUMBER |
| 23269 | CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER |
| 23270 | #endif |
| 23271 | |
| 23272 | |
| 23273 | _ACEOF |
| 23274 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 23275 | |
| 23276 | tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \ |
| 23277 | "$GREP" CURL_DEF_TOKEN 2>/dev/null | \ |
| 23278 | "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \ |
| 23279 | "$SED" 's/["][ ]*["]//g' 2>/dev/null` |
| 23280 | if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then |
| 23281 | tmp_exp="" |
| 23282 | fi |
| 23283 | |
| 23284 | fi |
| 23285 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 23286 | if test -z "$tmp_exp"; then |
| 23287 | curl_cv_have_def_OPENSSL_VERSION_NUMBER=no |
| 23288 | |
| 23289 | else |
| 23290 | curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes |
| 23291 | curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp |
| 23292 | |
| 23293 | fi |
| 23294 | CPPFLAGS=$OLDCPPFLAGS |
| 23295 | |
| 23296 | if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then |
| 23297 | tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'` |
| 23298 | case "x$tst_verlen" in |
| 23299 | x6) |
| 23300 | tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3` |
| 23301 | tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4` |
| 23302 | tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5` |
| 23303 | tst_api=0x$tst_vermaj$tst_vermin$tst_verfix |
| 23304 | ;; |
| 23305 | x11|x10) |
| 23306 | tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3` |
| 23307 | tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5` |
| 23308 | tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7` |
| 23309 | tst_api=0x$tst_vermaj$tst_vermin$tst_verfix |
| 23310 | ;; |
| 23311 | *) |
| 23312 | tst_api="unknown" |
| 23313 | ;; |
| 23314 | esac |
| 23315 | case $tst_api in |
| 23316 | 0x110) tst_show="1.1.0" ;; |
| 23317 | 0x102) tst_show="1.0.2" ;; |
| 23318 | 0x101) tst_show="1.0.1" ;; |
| 23319 | 0x100) tst_show="1.0.0" ;; |
| 23320 | 0x099) tst_show="0.9.9" ;; |
| 23321 | 0x098) tst_show="0.9.8" ;; |
| 23322 | 0x097) tst_show="0.9.7" ;; |
| 23323 | 0x096) tst_show="0.9.6" ;; |
| 23324 | 0x095) tst_show="0.9.5" ;; |
| 23325 | 0x094) tst_show="0.9.4" ;; |
| 23326 | 0x093) tst_show="0.9.3" ;; |
| 23327 | 0x092) tst_show="0.9.2" ;; |
| 23328 | 0x091) tst_show="0.9.1" ;; |
| 23329 | *) tst_show="unknown" ;; |
| 23330 | esac |
| 23331 | tst_show="$tst_show - $curl_cv_def_OPENSSL_VERSION_NUMBER" |
| 23332 | else |
| 23333 | tst_show="unknown" |
| 23334 | fi |
| 23335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5 |
| 23336 | $as_echo "$tst_show" >&6; } |
| 23337 | # |
| 23338 | curl_openssl_api_headers=$tst_api |
| 23339 | |
| 23340 | |
| 23341 | # |
| 23342 | tst_api="unknown" |
| 23343 | # |
| 23344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5 |
| 23345 | $as_echo_n "checking for OpenSSL library version... " >&6; } |
| 23346 | if test "$tst_api" = "unknown"; then |
| 23347 | case $host in |
| 23348 | *-*-vms*) |
| 23349 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23350 | /* end confdefs.h. */ |
| 23351 | |
| 23352 | |
| 23353 | #define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb |
| 23354 | #ifdef __STDC__ |
| 23355 | # include <limits.h> |
| 23356 | #else |
| 23357 | # include <assert.h> |
| 23358 | #endif |
| 23359 | #undef SSL_CTX_set_not_resumbl_sess_cb |
| 23360 | #ifdef __cplusplus |
| 23361 | extern "C" |
| 23362 | #endif |
| 23363 | char SSL_CTX_set_not_resumbl_sess_cb (); |
| 23364 | #if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb |
| 23365 | choke me |
| 23366 | #endif |
| 23367 | |
| 23368 | int main (void) |
| 23369 | { |
| 23370 | return SSL_CTX_set_not_resumbl_sess_cb (); |
| 23371 | ; |
| 23372 | return 0; |
| 23373 | } |
| 23374 | |
| 23375 | _ACEOF |
| 23376 | if ac_fn_c_try_link "$LINENO"; then : |
| 23377 | |
| 23378 | tst_api="0x110" |
| 23379 | |
| 23380 | fi |
| 23381 | rm -f core conftest.err conftest.$ac_objext \ |
| 23382 | conftest$ac_exeext conftest.$ac_ext |
| 23383 | ;; |
| 23384 | *) |
| 23385 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23386 | /* end confdefs.h. */ |
| 23387 | |
| 23388 | |
| 23389 | #define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback |
| 23390 | #ifdef __STDC__ |
| 23391 | # include <limits.h> |
| 23392 | #else |
| 23393 | # include <assert.h> |
| 23394 | #endif |
| 23395 | #undef SSL_CTX_set_not_resumable_session_callback |
| 23396 | #ifdef __cplusplus |
| 23397 | extern "C" |
| 23398 | #endif |
| 23399 | char SSL_CTX_set_not_resumable_session_callback (); |
| 23400 | #if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback |
| 23401 | choke me |
| 23402 | #endif |
| 23403 | |
| 23404 | int main (void) |
| 23405 | { |
| 23406 | return SSL_CTX_set_not_resumable_session_callback (); |
| 23407 | ; |
| 23408 | return 0; |
| 23409 | } |
| 23410 | |
| 23411 | _ACEOF |
| 23412 | if ac_fn_c_try_link "$LINENO"; then : |
| 23413 | |
| 23414 | tst_api="0x110" |
| 23415 | |
| 23416 | fi |
| 23417 | rm -f core conftest.err conftest.$ac_objext \ |
| 23418 | conftest$ac_exeext conftest.$ac_ext |
| 23419 | ;; |
| 23420 | esac |
| 23421 | fi |
| 23422 | if test "$tst_api" = "unknown"; then |
| 23423 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23424 | /* end confdefs.h. */ |
| 23425 | |
| 23426 | |
| 23427 | #define SSL_CONF_CTX_new innocuous_SSL_CONF_CTX_new |
| 23428 | #ifdef __STDC__ |
| 23429 | # include <limits.h> |
| 23430 | #else |
| 23431 | # include <assert.h> |
| 23432 | #endif |
| 23433 | #undef SSL_CONF_CTX_new |
| 23434 | #ifdef __cplusplus |
| 23435 | extern "C" |
| 23436 | #endif |
| 23437 | char SSL_CONF_CTX_new (); |
| 23438 | #if defined __stub_SSL_CONF_CTX_new || defined __stub___SSL_CONF_CTX_new |
| 23439 | choke me |
| 23440 | #endif |
| 23441 | |
| 23442 | int main (void) |
| 23443 | { |
| 23444 | return SSL_CONF_CTX_new (); |
| 23445 | ; |
| 23446 | return 0; |
| 23447 | } |
| 23448 | |
| 23449 | _ACEOF |
| 23450 | if ac_fn_c_try_link "$LINENO"; then : |
| 23451 | |
| 23452 | tst_api="0x102" |
| 23453 | |
| 23454 | fi |
| 23455 | rm -f core conftest.err conftest.$ac_objext \ |
| 23456 | conftest$ac_exeext conftest.$ac_ext |
| 23457 | fi |
| 23458 | if test "$tst_api" = "unknown"; then |
| 23459 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23460 | /* end confdefs.h. */ |
| 23461 | |
| 23462 | |
| 23463 | #define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated |
| 23464 | #ifdef __STDC__ |
| 23465 | # include <limits.h> |
| 23466 | #else |
| 23467 | # include <assert.h> |
| 23468 | #endif |
| 23469 | #undef SSL_renegotiate_abbreviated |
| 23470 | #ifdef __cplusplus |
| 23471 | extern "C" |
| 23472 | #endif |
| 23473 | char SSL_renegotiate_abbreviated (); |
| 23474 | #if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated |
| 23475 | choke me |
| 23476 | #endif |
| 23477 | |
| 23478 | int main (void) |
| 23479 | { |
| 23480 | return SSL_renegotiate_abbreviated (); |
| 23481 | ; |
| 23482 | return 0; |
| 23483 | } |
| 23484 | |
| 23485 | _ACEOF |
| 23486 | if ac_fn_c_try_link "$LINENO"; then : |
| 23487 | |
| 23488 | tst_api="0x101" |
| 23489 | |
| 23490 | fi |
| 23491 | rm -f core conftest.err conftest.$ac_objext \ |
| 23492 | conftest$ac_exeext conftest.$ac_ext |
| 23493 | fi |
| 23494 | if test "$tst_api" = "unknown"; then |
| 23495 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23496 | /* end confdefs.h. */ |
| 23497 | |
| 23498 | |
| 23499 | #define OBJ_add_sigid innocuous_OBJ_add_sigid |
| 23500 | #ifdef __STDC__ |
| 23501 | # include <limits.h> |
| 23502 | #else |
| 23503 | # include <assert.h> |
| 23504 | #endif |
| 23505 | #undef OBJ_add_sigid |
| 23506 | #ifdef __cplusplus |
| 23507 | extern "C" |
| 23508 | #endif |
| 23509 | char OBJ_add_sigid (); |
| 23510 | #if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid |
| 23511 | choke me |
| 23512 | #endif |
| 23513 | |
| 23514 | int main (void) |
| 23515 | { |
| 23516 | return OBJ_add_sigid (); |
| 23517 | ; |
| 23518 | return 0; |
| 23519 | } |
| 23520 | |
| 23521 | _ACEOF |
| 23522 | if ac_fn_c_try_link "$LINENO"; then : |
| 23523 | |
| 23524 | tst_api="0x100" |
| 23525 | |
| 23526 | fi |
| 23527 | rm -f core conftest.err conftest.$ac_objext \ |
| 23528 | conftest$ac_exeext conftest.$ac_ext |
| 23529 | fi |
| 23530 | if test "$tst_api" = "unknown"; then |
| 23531 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23532 | /* end confdefs.h. */ |
| 23533 | |
| 23534 | |
| 23535 | #define ERR_set_mark innocuous_ERR_set_mark |
| 23536 | #ifdef __STDC__ |
| 23537 | # include <limits.h> |
| 23538 | #else |
| 23539 | # include <assert.h> |
| 23540 | #endif |
| 23541 | #undef ERR_set_mark |
| 23542 | #ifdef __cplusplus |
| 23543 | extern "C" |
| 23544 | #endif |
| 23545 | char ERR_set_mark (); |
| 23546 | #if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark |
| 23547 | choke me |
| 23548 | #endif |
| 23549 | |
| 23550 | int main (void) |
| 23551 | { |
| 23552 | return ERR_set_mark (); |
| 23553 | ; |
| 23554 | return 0; |
| 23555 | } |
| 23556 | |
| 23557 | _ACEOF |
| 23558 | if ac_fn_c_try_link "$LINENO"; then : |
| 23559 | |
| 23560 | tst_api="0x098" |
| 23561 | |
| 23562 | fi |
| 23563 | rm -f core conftest.err conftest.$ac_objext \ |
| 23564 | conftest$ac_exeext conftest.$ac_ext |
| 23565 | fi |
| 23566 | if test "$tst_api" = "unknown"; then |
| 23567 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23568 | /* end confdefs.h. */ |
| 23569 | |
| 23570 | |
| 23571 | #define ERR_peek_last_error innocuous_ERR_peek_last_error |
| 23572 | #ifdef __STDC__ |
| 23573 | # include <limits.h> |
| 23574 | #else |
| 23575 | # include <assert.h> |
| 23576 | #endif |
| 23577 | #undef ERR_peek_last_error |
| 23578 | #ifdef __cplusplus |
| 23579 | extern "C" |
| 23580 | #endif |
| 23581 | char ERR_peek_last_error (); |
| 23582 | #if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error |
| 23583 | choke me |
| 23584 | #endif |
| 23585 | |
| 23586 | int main (void) |
| 23587 | { |
| 23588 | return ERR_peek_last_error (); |
| 23589 | ; |
| 23590 | return 0; |
| 23591 | } |
| 23592 | |
| 23593 | _ACEOF |
| 23594 | if ac_fn_c_try_link "$LINENO"; then : |
| 23595 | |
| 23596 | tst_api="0x097" |
| 23597 | |
| 23598 | fi |
| 23599 | rm -f core conftest.err conftest.$ac_objext \ |
| 23600 | conftest$ac_exeext conftest.$ac_ext |
| 23601 | fi |
| 23602 | if test "$tst_api" = "unknown"; then |
| 23603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23604 | /* end confdefs.h. */ |
| 23605 | |
| 23606 | |
| 23607 | #define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT |
| 23608 | #ifdef __STDC__ |
| 23609 | # include <limits.h> |
| 23610 | #else |
| 23611 | # include <assert.h> |
| 23612 | #endif |
| 23613 | #undef c2i_ASN1_OBJECT |
| 23614 | #ifdef __cplusplus |
| 23615 | extern "C" |
| 23616 | #endif |
| 23617 | char c2i_ASN1_OBJECT (); |
| 23618 | #if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT |
| 23619 | choke me |
| 23620 | #endif |
| 23621 | |
| 23622 | int main (void) |
| 23623 | { |
| 23624 | return c2i_ASN1_OBJECT (); |
| 23625 | ; |
| 23626 | return 0; |
| 23627 | } |
| 23628 | |
| 23629 | _ACEOF |
| 23630 | if ac_fn_c_try_link "$LINENO"; then : |
| 23631 | |
| 23632 | tst_api="0x096" |
| 23633 | |
| 23634 | fi |
| 23635 | rm -f core conftest.err conftest.$ac_objext \ |
| 23636 | conftest$ac_exeext conftest.$ac_ext |
| 23637 | fi |
| 23638 | if test "$tst_api" = "unknown"; then |
| 23639 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23640 | /* end confdefs.h. */ |
| 23641 | |
| 23642 | |
| 23643 | #define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose |
| 23644 | #ifdef __STDC__ |
| 23645 | # include <limits.h> |
| 23646 | #else |
| 23647 | # include <assert.h> |
| 23648 | #endif |
| 23649 | #undef SSL_CTX_set_purpose |
| 23650 | #ifdef __cplusplus |
| 23651 | extern "C" |
| 23652 | #endif |
| 23653 | char SSL_CTX_set_purpose (); |
| 23654 | #if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose |
| 23655 | choke me |
| 23656 | #endif |
| 23657 | |
| 23658 | int main (void) |
| 23659 | { |
| 23660 | return SSL_CTX_set_purpose (); |
| 23661 | ; |
| 23662 | return 0; |
| 23663 | } |
| 23664 | |
| 23665 | _ACEOF |
| 23666 | if ac_fn_c_try_link "$LINENO"; then : |
| 23667 | |
| 23668 | tst_api="0x095" |
| 23669 | |
| 23670 | fi |
| 23671 | rm -f core conftest.err conftest.$ac_objext \ |
| 23672 | conftest$ac_exeext conftest.$ac_ext |
| 23673 | fi |
| 23674 | if test "$tst_api" = "unknown"; then |
| 23675 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23676 | /* end confdefs.h. */ |
| 23677 | |
| 23678 | |
| 23679 | #define OBJ_obj2txt innocuous_OBJ_obj2txt |
| 23680 | #ifdef __STDC__ |
| 23681 | # include <limits.h> |
| 23682 | #else |
| 23683 | # include <assert.h> |
| 23684 | #endif |
| 23685 | #undef OBJ_obj2txt |
| 23686 | #ifdef __cplusplus |
| 23687 | extern "C" |
| 23688 | #endif |
| 23689 | char OBJ_obj2txt (); |
| 23690 | #if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt |
| 23691 | choke me |
| 23692 | #endif |
| 23693 | |
| 23694 | int main (void) |
| 23695 | { |
| 23696 | return OBJ_obj2txt (); |
| 23697 | ; |
| 23698 | return 0; |
| 23699 | } |
| 23700 | |
| 23701 | _ACEOF |
| 23702 | if ac_fn_c_try_link "$LINENO"; then : |
| 23703 | |
| 23704 | tst_api="0x094" |
| 23705 | |
| 23706 | fi |
| 23707 | rm -f core conftest.err conftest.$ac_objext \ |
| 23708 | conftest$ac_exeext conftest.$ac_ext |
| 23709 | fi |
| 23710 | if test "$tst_api" = "unknown"; then |
| 23711 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23712 | /* end confdefs.h. */ |
| 23713 | |
| 23714 | |
| 23715 | #define SSL_get_verify_depth innocuous_SSL_get_verify_depth |
| 23716 | #ifdef __STDC__ |
| 23717 | # include <limits.h> |
| 23718 | #else |
| 23719 | # include <assert.h> |
| 23720 | #endif |
| 23721 | #undef SSL_get_verify_depth |
| 23722 | #ifdef __cplusplus |
| 23723 | extern "C" |
| 23724 | #endif |
| 23725 | char SSL_get_verify_depth (); |
| 23726 | #if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth |
| 23727 | choke me |
| 23728 | #endif |
| 23729 | |
| 23730 | int main (void) |
| 23731 | { |
| 23732 | return SSL_get_verify_depth (); |
| 23733 | ; |
| 23734 | return 0; |
| 23735 | } |
| 23736 | |
| 23737 | _ACEOF |
| 23738 | if ac_fn_c_try_link "$LINENO"; then : |
| 23739 | |
| 23740 | tst_api="0x093" |
| 23741 | |
| 23742 | fi |
| 23743 | rm -f core conftest.err conftest.$ac_objext \ |
| 23744 | conftest$ac_exeext conftest.$ac_ext |
| 23745 | fi |
| 23746 | if test "$tst_api" = "unknown"; then |
| 23747 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23748 | /* end confdefs.h. */ |
| 23749 | |
| 23750 | |
| 23751 | #define SSL_library_init innocuous_SSL_library_init |
| 23752 | #ifdef __STDC__ |
| 23753 | # include <limits.h> |
| 23754 | #else |
| 23755 | # include <assert.h> |
| 23756 | #endif |
| 23757 | #undef SSL_library_init |
| 23758 | #ifdef __cplusplus |
| 23759 | extern "C" |
| 23760 | #endif |
| 23761 | char SSL_library_init (); |
| 23762 | #if defined __stub_SSL_library_init || defined __stub___SSL_library_init |
| 23763 | choke me |
| 23764 | #endif |
| 23765 | |
| 23766 | int main (void) |
| 23767 | { |
| 23768 | return SSL_library_init (); |
| 23769 | ; |
| 23770 | return 0; |
| 23771 | } |
| 23772 | |
| 23773 | _ACEOF |
| 23774 | if ac_fn_c_try_link "$LINENO"; then : |
| 23775 | |
| 23776 | tst_api="0x092" |
| 23777 | |
| 23778 | fi |
| 23779 | rm -f core conftest.err conftest.$ac_objext \ |
| 23780 | conftest$ac_exeext conftest.$ac_ext |
| 23781 | fi |
| 23782 | if test "$tst_api" = "unknown"; then |
| 23783 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23784 | /* end confdefs.h. */ |
| 23785 | |
| 23786 | |
| 23787 | #define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list |
| 23788 | #ifdef __STDC__ |
| 23789 | # include <limits.h> |
| 23790 | #else |
| 23791 | # include <assert.h> |
| 23792 | #endif |
| 23793 | #undef SSL_CTX_set_cipher_list |
| 23794 | #ifdef __cplusplus |
| 23795 | extern "C" |
| 23796 | #endif |
| 23797 | char SSL_CTX_set_cipher_list (); |
| 23798 | #if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list |
| 23799 | choke me |
| 23800 | #endif |
| 23801 | |
| 23802 | int main (void) |
| 23803 | { |
| 23804 | return SSL_CTX_set_cipher_list (); |
| 23805 | ; |
| 23806 | return 0; |
| 23807 | } |
| 23808 | |
| 23809 | _ACEOF |
| 23810 | if ac_fn_c_try_link "$LINENO"; then : |
| 23811 | |
| 23812 | tst_api="0x091" |
| 23813 | |
| 23814 | fi |
| 23815 | rm -f core conftest.err conftest.$ac_objext \ |
| 23816 | conftest$ac_exeext conftest.$ac_ext |
| 23817 | fi |
| 23818 | case $tst_api in |
| 23819 | 0x110) tst_show="1.1.0" ;; |
| 23820 | 0x102) tst_show="1.0.2" ;; |
| 23821 | 0x101) tst_show="1.0.1" ;; |
| 23822 | 0x100) tst_show="1.0.0" ;; |
| 23823 | 0x099) tst_show="0.9.9" ;; |
| 23824 | 0x098) tst_show="0.9.8" ;; |
| 23825 | 0x097) tst_show="0.9.7" ;; |
| 23826 | 0x096) tst_show="0.9.6" ;; |
| 23827 | 0x095) tst_show="0.9.5" ;; |
| 23828 | 0x094) tst_show="0.9.4" ;; |
| 23829 | 0x093) tst_show="0.9.3" ;; |
| 23830 | 0x092) tst_show="0.9.2" ;; |
| 23831 | 0x091) tst_show="0.9.1" ;; |
| 23832 | *) tst_show="unknown" ;; |
| 23833 | esac |
| 23834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5 |
| 23835 | $as_echo "$tst_show" >&6; } |
| 23836 | # |
| 23837 | curl_openssl_api_library=$tst_api |
| 23838 | |
| 23839 | # |
| 23840 | tst_match="yes" |
| 23841 | # |
| 23842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5 |
| 23843 | $as_echo_n "checking for OpenSSL headers and library versions matching... " >&6; } |
| 23844 | if test "$curl_openssl_api_headers" = "unknown" || |
| 23845 | test "$curl_openssl_api_library" = "unknown"; then |
| 23846 | tst_match="fail" |
| 23847 | tst_warns="Can not compare OpenSSL headers and library versions." |
| 23848 | elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then |
| 23849 | tst_match="no" |
| 23850 | tst_warns="OpenSSL headers and library versions do not match." |
| 23851 | fi |
| 23852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5 |
| 23853 | $as_echo "$tst_match" >&6; } |
| 23854 | if test "$tst_match" != "yes"; then |
| 23855 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5 |
| 23856 | $as_echo "$as_me: WARNING: $tst_warns" >&2;} |
| 23857 | fi |
| 23858 | |
| 23859 | fi |
| 23860 | |
| 23861 | fi |
| 23862 | |
| 23863 | |
| 23864 | if test X"$OPENSSL_ENABLED" = X"1"; then |
| 23865 | |
| 23866 | # Check whether --with-egd-socket was given. |
| 23867 | if test "${with_egd_socket+set}" = set; then : |
| 23868 | withval=$with_egd_socket; EGD_SOCKET="$withval" |
| 23869 | |
| 23870 | fi |
| 23871 | |
| 23872 | if test -n "$EGD_SOCKET" ; then |
| 23873 | |
| 23874 | cat >>confdefs.h <<_ACEOF |
| 23875 | #define EGD_SOCKET "$EGD_SOCKET" |
| 23876 | _ACEOF |
| 23877 | |
| 23878 | fi |
| 23879 | |
| 23880 | |
| 23881 | # Check whether --with-random was given. |
| 23882 | if test "${with_random+set}" = set; then : |
| 23883 | withval=$with_random; RANDOM_FILE="$withval" |
| 23884 | else |
| 23885 | |
| 23886 | if test x$cross_compiling != xyes; then |
| 23887 | as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh` |
| 23888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5 |
| 23889 | $as_echo_n "checking for \"/dev/urandom\"... " >&6; } |
| 23890 | if eval \${$as_ac_File+:} false; then : |
| 23891 | $as_echo_n "(cached) " >&6 |
| 23892 | else |
| 23893 | test "$cross_compiling" = yes && |
| 23894 | as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 |
| 23895 | if test -r ""/dev/urandom""; then |
| 23896 | eval "$as_ac_File=yes" |
| 23897 | else |
| 23898 | eval "$as_ac_File=no" |
| 23899 | fi |
| 23900 | fi |
| 23901 | eval ac_res=\$$as_ac_File |
| 23902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 23903 | $as_echo "$ac_res" >&6; } |
| 23904 | if eval test \"x\$"$as_ac_File"\" = x"yes"; then : |
| 23905 | RANDOM_FILE="/dev/urandom" |
| 23906 | fi |
| 23907 | |
| 23908 | else |
| 23909 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5 |
| 23910 | $as_echo "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;} |
| 23911 | fi |
| 23912 | |
| 23913 | |
| 23914 | fi |
| 23915 | |
| 23916 | if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then |
| 23917 | |
| 23918 | |
| 23919 | cat >>confdefs.h <<_ACEOF |
| 23920 | #define RANDOM_FILE "$RANDOM_FILE" |
| 23921 | _ACEOF |
| 23922 | |
| 23923 | fi |
| 23924 | fi |
| 23925 | |
| 23926 | if test "$OPENSSL_ENABLED" = "1"; then |
| 23927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5 |
| 23928 | $as_echo_n "checking for SRP_Calc_client_key in -lcrypto... " >&6; } |
| 23929 | if ${ac_cv_lib_crypto_SRP_Calc_client_key+:} false; then : |
| 23930 | $as_echo_n "(cached) " >&6 |
| 23931 | else |
| 23932 | ac_check_lib_save_LIBS=$LIBS |
| 23933 | LIBS="-lcrypto $LIBS" |
| 23934 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23935 | /* end confdefs.h. */ |
| 23936 | |
| 23937 | |
| 23938 | #ifdef __cplusplus |
| 23939 | extern "C" |
| 23940 | #endif |
| 23941 | char SRP_Calc_client_key (); |
| 23942 | int main (void) |
| 23943 | { |
| 23944 | return SRP_Calc_client_key (); |
| 23945 | ; |
| 23946 | return 0; |
| 23947 | } |
| 23948 | _ACEOF |
| 23949 | if ac_fn_c_try_link "$LINENO"; then : |
| 23950 | ac_cv_lib_crypto_SRP_Calc_client_key=yes |
| 23951 | else |
| 23952 | ac_cv_lib_crypto_SRP_Calc_client_key=no |
| 23953 | fi |
| 23954 | rm -f core conftest.err conftest.$ac_objext \ |
| 23955 | conftest$ac_exeext conftest.$ac_ext |
| 23956 | LIBS=$ac_check_lib_save_LIBS |
| 23957 | fi |
| 23958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5 |
| 23959 | $as_echo "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; } |
| 23960 | if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes; then : |
| 23961 | |
| 23962 | |
| 23963 | $as_echo "#define HAVE_OPENSSL_SRP 1" >>confdefs.h |
| 23964 | |
| 23965 | HAVE_OPENSSL_SRP=1 |
| 23966 | |
| 23967 | |
| 23968 | fi |
| 23969 | |
| 23970 | fi |
| 23971 | |
| 23972 | |
| 23973 | OPT_GNUTLS=no |
| 23974 | |
| 23975 | |
| 23976 | # Check whether --with-gnutls was given. |
| 23977 | if test "${with_gnutls+set}" = set; then : |
| 23978 | withval=$with_gnutls; OPT_GNUTLS=$withval |
| 23979 | fi |
| 23980 | |
| 23981 | |
| 23982 | if test "$curl_ssl_msg" = "$init_ssl_msg"; then |
| 23983 | |
| 23984 | if test X"$OPT_GNUTLS" != Xno; then |
| 23985 | |
| 23986 | addld="" |
| 23987 | addlib="" |
| 23988 | gtlslib="" |
| 23989 | version="" |
| 23990 | addcflags="" |
| 23991 | |
| 23992 | if test "x$OPT_GNUTLS" = "xyes"; then |
| 23993 | |
| 23994 | if test -n "$PKG_CONFIG"; then |
| 23995 | PKGCONFIG="$PKG_CONFIG" |
| 23996 | else |
| 23997 | if test -n "$ac_tool_prefix"; then |
| 23998 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 23999 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 24000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 24001 | $as_echo_n "checking for $ac_word... " >&6; } |
| 24002 | if ${ac_cv_path_PKGCONFIG+:} false; then : |
| 24003 | $as_echo_n "(cached) " >&6 |
| 24004 | else |
| 24005 | case $PKGCONFIG in |
| 24006 | [\\/]* | ?:[\\/]*) |
| 24007 | ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. |
| 24008 | ;; |
| 24009 | *) |
| 24010 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 24011 | as_dummy="$PATH:/usr/bin:/usr/local/bin" |
| 24012 | for as_dir in $as_dummy |
| 24013 | do |
| 24014 | IFS=$as_save_IFS |
| 24015 | test -z "$as_dir" && as_dir=. |
| 24016 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 24017 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 24018 | ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 24019 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 24020 | break 2 |
| 24021 | fi |
| 24022 | done |
| 24023 | done |
| 24024 | IFS=$as_save_IFS |
| 24025 | |
| 24026 | ;; |
| 24027 | esac |
| 24028 | fi |
| 24029 | PKGCONFIG=$ac_cv_path_PKGCONFIG |
| 24030 | if test -n "$PKGCONFIG"; then |
| 24031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 |
| 24032 | $as_echo "$PKGCONFIG" >&6; } |
| 24033 | else |
| 24034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 24035 | $as_echo "no" >&6; } |
| 24036 | fi |
| 24037 | |
| 24038 | |
| 24039 | fi |
| 24040 | if test -z "$ac_cv_path_PKGCONFIG"; then |
| 24041 | ac_pt_PKGCONFIG=$PKGCONFIG |
| 24042 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 24043 | set dummy pkg-config; ac_word=$2 |
| 24044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 24045 | $as_echo_n "checking for $ac_word... " >&6; } |
| 24046 | if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : |
| 24047 | $as_echo_n "(cached) " >&6 |
| 24048 | else |
| 24049 | case $ac_pt_PKGCONFIG in |
| 24050 | [\\/]* | ?:[\\/]*) |
| 24051 | ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. |
| 24052 | ;; |
| 24053 | *) |
| 24054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 24055 | as_dummy="$PATH:/usr/bin:/usr/local/bin" |
| 24056 | for as_dir in $as_dummy |
| 24057 | do |
| 24058 | IFS=$as_save_IFS |
| 24059 | test -z "$as_dir" && as_dir=. |
| 24060 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 24061 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 24062 | ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 24063 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 24064 | break 2 |
| 24065 | fi |
| 24066 | done |
| 24067 | done |
| 24068 | IFS=$as_save_IFS |
| 24069 | |
| 24070 | ;; |
| 24071 | esac |
| 24072 | fi |
| 24073 | ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG |
| 24074 | if test -n "$ac_pt_PKGCONFIG"; then |
| 24075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 |
| 24076 | $as_echo "$ac_pt_PKGCONFIG" >&6; } |
| 24077 | else |
| 24078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 24079 | $as_echo "no" >&6; } |
| 24080 | fi |
| 24081 | |
| 24082 | if test "x$ac_pt_PKGCONFIG" = x; then |
| 24083 | PKGCONFIG="no" |
| 24084 | else |
| 24085 | case $cross_compiling:$ac_tool_warned in |
| 24086 | yes:) |
| 24087 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 24088 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 24089 | ac_tool_warned=yes ;; |
| 24090 | esac |
| 24091 | PKGCONFIG=$ac_pt_PKGCONFIG |
| 24092 | fi |
| 24093 | else |
| 24094 | PKGCONFIG="$ac_cv_path_PKGCONFIG" |
| 24095 | fi |
| 24096 | |
| 24097 | fi |
| 24098 | |
| 24099 | if test "x$PKGCONFIG" != "xno"; then |
| 24100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5 |
| 24101 | $as_echo_n "checking for gnutls options with pkg-config... " >&6; } |
| 24102 | itexists=` |
| 24103 | if test -n ""; then |
| 24104 | PKG_CONFIG_LIBDIR="" |
| 24105 | export PKG_CONFIG_LIBDIR |
| 24106 | fi |
| 24107 | $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1` |
| 24108 | |
| 24109 | if test -z "$itexists"; then |
| 24110 | PKGCONFIG="no" |
| 24111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 24112 | $as_echo "no" >&6; } |
| 24113 | else |
| 24114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 24115 | $as_echo "found" >&6; } |
| 24116 | fi |
| 24117 | fi |
| 24118 | |
| 24119 | |
| 24120 | if test "$PKGCONFIG" != "no" ; then |
| 24121 | addlib=`$PKGCONFIG --libs-only-l gnutls` |
| 24122 | addld=`$PKGCONFIG --libs-only-L gnutls` |
| 24123 | addcflags=`$PKGCONFIG --cflags-only-I gnutls` |
| 24124 | version=`$PKGCONFIG --modversion gnutls` |
| 24125 | gtlslib=`echo $addld | $SED -e 's/-L//'` |
| 24126 | else |
| 24127 | check=`libgnutls-config --version 2>/dev/null` |
| 24128 | if test -n "$check"; then |
| 24129 | addlib=`libgnutls-config --libs` |
| 24130 | addcflags=`libgnutls-config --cflags` |
| 24131 | version=`libgnutls-config --version` |
| 24132 | gtlslib=`libgnutls-config --prefix`/lib$libsuff |
| 24133 | fi |
| 24134 | fi |
| 24135 | else |
| 24136 | cfg=$OPT_GNUTLS/bin/libgnutls-config |
| 24137 | check=`$cfg --version 2>/dev/null` |
| 24138 | if test -n "$check"; then |
| 24139 | addlib=`$cfg --libs` |
| 24140 | addcflags=`$cfg --cflags` |
| 24141 | version=`$cfg --version` |
| 24142 | gtlslib=`$cfg --prefix`/lib$libsuff |
| 24143 | else |
| 24144 | addlib=-lgnutls |
| 24145 | addld=-L$OPT_GNUTLS/lib$libsuff |
| 24146 | addcflags=-I$OPT_GNUTLS/include |
| 24147 | version="" # we just don't know |
| 24148 | gtlslib=$OPT_GNUTLS/lib$libsuff |
| 24149 | fi |
| 24150 | fi |
| 24151 | |
| 24152 | if test -z "$version"; then |
| 24153 | version="unknown" |
| 24154 | fi |
| 24155 | |
| 24156 | if test -n "$addlib"; then |
| 24157 | |
| 24158 | CLEANLIBS="$LIBS" |
| 24159 | CLEANCPPFLAGS="$CPPFLAGS" |
| 24160 | CLEANLDFLAGS="$LDFLAGS" |
| 24161 | |
| 24162 | LIBS="$addlib $LIBS" |
| 24163 | LDFLAGS="$LDFLAGS $addld" |
| 24164 | if test "$addcflags" != "-I/usr/include"; then |
| 24165 | CPPFLAGS="$CPPFLAGS $addcflags" |
| 24166 | fi |
| 24167 | |
| 24168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5 |
| 24169 | $as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; } |
| 24170 | if ${ac_cv_lib_gnutls_gnutls_check_version+:} false; then : |
| 24171 | $as_echo_n "(cached) " >&6 |
| 24172 | else |
| 24173 | ac_check_lib_save_LIBS=$LIBS |
| 24174 | LIBS="-lgnutls $LIBS" |
| 24175 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24176 | /* end confdefs.h. */ |
| 24177 | |
| 24178 | |
| 24179 | #ifdef __cplusplus |
| 24180 | extern "C" |
| 24181 | #endif |
| 24182 | char gnutls_check_version (); |
| 24183 | int main (void) |
| 24184 | { |
| 24185 | return gnutls_check_version (); |
| 24186 | ; |
| 24187 | return 0; |
| 24188 | } |
| 24189 | _ACEOF |
| 24190 | if ac_fn_c_try_link "$LINENO"; then : |
| 24191 | ac_cv_lib_gnutls_gnutls_check_version=yes |
| 24192 | else |
| 24193 | ac_cv_lib_gnutls_gnutls_check_version=no |
| 24194 | fi |
| 24195 | rm -f core conftest.err conftest.$ac_objext \ |
| 24196 | conftest$ac_exeext conftest.$ac_ext |
| 24197 | LIBS=$ac_check_lib_save_LIBS |
| 24198 | fi |
| 24199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5 |
| 24200 | $as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; } |
| 24201 | if test "x$ac_cv_lib_gnutls_gnutls_check_version" = xyes; then : |
| 24202 | |
| 24203 | |
| 24204 | $as_echo "#define USE_GNUTLS 1" >>confdefs.h |
| 24205 | |
| 24206 | USE_GNUTLS=1 |
| 24207 | |
| 24208 | GNUTLS_ENABLED=1 |
| 24209 | USE_GNUTLS="yes" |
| 24210 | curl_ssl_msg="enabled (GnuTLS)" |
| 24211 | |
| 24212 | else |
| 24213 | |
| 24214 | LIBS="$CLEANLIBS" |
| 24215 | CPPFLAGS="$CLEANCPPFLAGS" |
| 24216 | |
| 24217 | fi |
| 24218 | |
| 24219 | |
| 24220 | if test "x$USE_GNUTLS" = "xyes"; then |
| 24221 | { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5 |
| 24222 | $as_echo "$as_me: detected GnuTLS version $version" >&6;} |
| 24223 | |
| 24224 | if test -n "$gtlslib"; then |
| 24225 | if test "x$cross_compiling" != "xyes"; then |
| 24226 | LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$gtlslib" |
| 24227 | export LD_LIBRARY_PATH |
| 24228 | { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to LD_LIBRARY_PATH" >&5 |
| 24229 | $as_echo "$as_me: Added $gtlslib to LD_LIBRARY_PATH" >&6;} |
| 24230 | fi |
| 24231 | fi |
| 24232 | for ac_func in gnutls_certificate_set_x509_key_file2 gnutls_alpn_set_protocols gnutls_ocsp_req_init |
| 24233 | do : |
| 24234 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 24235 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 24236 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 24237 | cat >>confdefs.h <<_ACEOF |
| 24238 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 24239 | _ACEOF |
| 24240 | |
| 24241 | fi |
| 24242 | done |
| 24243 | |
| 24244 | fi |
| 24245 | |
| 24246 | fi |
| 24247 | |
| 24248 | fi |
| 24249 | fi |
| 24250 | |
| 24251 | |
| 24252 | if test "$GNUTLS_ENABLED" = "1"; then |
| 24253 | USE_GNUTLS_NETTLE= |
| 24254 | # First check if we can detect either crypto library via transitive linking |
| 24255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5 |
| 24256 | $as_echo_n "checking for nettle_MD5Init in -lgnutls... " >&6; } |
| 24257 | if ${ac_cv_lib_gnutls_nettle_MD5Init+:} false; then : |
| 24258 | $as_echo_n "(cached) " >&6 |
| 24259 | else |
| 24260 | ac_check_lib_save_LIBS=$LIBS |
| 24261 | LIBS="-lgnutls $LIBS" |
| 24262 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24263 | /* end confdefs.h. */ |
| 24264 | |
| 24265 | |
| 24266 | #ifdef __cplusplus |
| 24267 | extern "C" |
| 24268 | #endif |
| 24269 | char nettle_MD5Init (); |
| 24270 | int main (void) |
| 24271 | { |
| 24272 | return nettle_MD5Init (); |
| 24273 | ; |
| 24274 | return 0; |
| 24275 | } |
| 24276 | _ACEOF |
| 24277 | if ac_fn_c_try_link "$LINENO"; then : |
| 24278 | ac_cv_lib_gnutls_nettle_MD5Init=yes |
| 24279 | else |
| 24280 | ac_cv_lib_gnutls_nettle_MD5Init=no |
| 24281 | fi |
| 24282 | rm -f core conftest.err conftest.$ac_objext \ |
| 24283 | conftest$ac_exeext conftest.$ac_ext |
| 24284 | LIBS=$ac_check_lib_save_LIBS |
| 24285 | fi |
| 24286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5 |
| 24287 | $as_echo "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; } |
| 24288 | if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes; then : |
| 24289 | USE_GNUTLS_NETTLE=1 |
| 24290 | fi |
| 24291 | |
| 24292 | if test "$USE_GNUTLS_NETTLE" = ""; then |
| 24293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgnutls" >&5 |
| 24294 | $as_echo_n "checking for gcry_control in -lgnutls... " >&6; } |
| 24295 | if ${ac_cv_lib_gnutls_gcry_control+:} false; then : |
| 24296 | $as_echo_n "(cached) " >&6 |
| 24297 | else |
| 24298 | ac_check_lib_save_LIBS=$LIBS |
| 24299 | LIBS="-lgnutls $LIBS" |
| 24300 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24301 | /* end confdefs.h. */ |
| 24302 | |
| 24303 | |
| 24304 | #ifdef __cplusplus |
| 24305 | extern "C" |
| 24306 | #endif |
| 24307 | char gcry_control (); |
| 24308 | int main (void) |
| 24309 | { |
| 24310 | return gcry_control (); |
| 24311 | ; |
| 24312 | return 0; |
| 24313 | } |
| 24314 | _ACEOF |
| 24315 | if ac_fn_c_try_link "$LINENO"; then : |
| 24316 | ac_cv_lib_gnutls_gcry_control=yes |
| 24317 | else |
| 24318 | ac_cv_lib_gnutls_gcry_control=no |
| 24319 | fi |
| 24320 | rm -f core conftest.err conftest.$ac_objext \ |
| 24321 | conftest$ac_exeext conftest.$ac_ext |
| 24322 | LIBS=$ac_check_lib_save_LIBS |
| 24323 | fi |
| 24324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gcry_control" >&5 |
| 24325 | $as_echo "$ac_cv_lib_gnutls_gcry_control" >&6; } |
| 24326 | if test "x$ac_cv_lib_gnutls_gcry_control" = xyes; then : |
| 24327 | USE_GNUTLS_NETTLE=0 |
| 24328 | fi |
| 24329 | |
| 24330 | fi |
| 24331 | # If not, try linking directly to both of them to see if they are available |
| 24332 | if test "$USE_GNUTLS_NETTLE" = ""; then |
| 24333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5 |
| 24334 | $as_echo_n "checking for nettle_MD5Init in -lnettle... " >&6; } |
| 24335 | if ${ac_cv_lib_nettle_nettle_MD5Init+:} false; then : |
| 24336 | $as_echo_n "(cached) " >&6 |
| 24337 | else |
| 24338 | ac_check_lib_save_LIBS=$LIBS |
| 24339 | LIBS="-lnettle $LIBS" |
| 24340 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24341 | /* end confdefs.h. */ |
| 24342 | |
| 24343 | |
| 24344 | #ifdef __cplusplus |
| 24345 | extern "C" |
| 24346 | #endif |
| 24347 | char nettle_MD5Init (); |
| 24348 | int main (void) |
| 24349 | { |
| 24350 | return nettle_MD5Init (); |
| 24351 | ; |
| 24352 | return 0; |
| 24353 | } |
| 24354 | _ACEOF |
| 24355 | if ac_fn_c_try_link "$LINENO"; then : |
| 24356 | ac_cv_lib_nettle_nettle_MD5Init=yes |
| 24357 | else |
| 24358 | ac_cv_lib_nettle_nettle_MD5Init=no |
| 24359 | fi |
| 24360 | rm -f core conftest.err conftest.$ac_objext \ |
| 24361 | conftest$ac_exeext conftest.$ac_ext |
| 24362 | LIBS=$ac_check_lib_save_LIBS |
| 24363 | fi |
| 24364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5 |
| 24365 | $as_echo "$ac_cv_lib_nettle_nettle_MD5Init" >&6; } |
| 24366 | if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes; then : |
| 24367 | USE_GNUTLS_NETTLE=1 |
| 24368 | fi |
| 24369 | |
| 24370 | fi |
| 24371 | if test "$USE_GNUTLS_NETTLE" = ""; then |
| 24372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5 |
| 24373 | $as_echo_n "checking for gcry_control in -lgcrypt... " >&6; } |
| 24374 | if ${ac_cv_lib_gcrypt_gcry_control+:} false; then : |
| 24375 | $as_echo_n "(cached) " >&6 |
| 24376 | else |
| 24377 | ac_check_lib_save_LIBS=$LIBS |
| 24378 | LIBS="-lgcrypt $LIBS" |
| 24379 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24380 | /* end confdefs.h. */ |
| 24381 | |
| 24382 | |
| 24383 | #ifdef __cplusplus |
| 24384 | extern "C" |
| 24385 | #endif |
| 24386 | char gcry_control (); |
| 24387 | int main (void) |
| 24388 | { |
| 24389 | return gcry_control (); |
| 24390 | ; |
| 24391 | return 0; |
| 24392 | } |
| 24393 | _ACEOF |
| 24394 | if ac_fn_c_try_link "$LINENO"; then : |
| 24395 | ac_cv_lib_gcrypt_gcry_control=yes |
| 24396 | else |
| 24397 | ac_cv_lib_gcrypt_gcry_control=no |
| 24398 | fi |
| 24399 | rm -f core conftest.err conftest.$ac_objext \ |
| 24400 | conftest$ac_exeext conftest.$ac_ext |
| 24401 | LIBS=$ac_check_lib_save_LIBS |
| 24402 | fi |
| 24403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5 |
| 24404 | $as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; } |
| 24405 | if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then : |
| 24406 | USE_GNUTLS_NETTLE=0 |
| 24407 | fi |
| 24408 | |
| 24409 | fi |
| 24410 | if test "$USE_GNUTLS_NETTLE" = ""; then |
| 24411 | as_fn_error $? "GnuTLS found, but neither gcrypt nor nettle found" "$LINENO" 5 |
| 24412 | fi |
| 24413 | if test "$USE_GNUTLS_NETTLE" = "1"; then |
| 24414 | |
| 24415 | $as_echo "#define USE_GNUTLS_NETTLE 1" >>confdefs.h |
| 24416 | |
| 24417 | USE_GNUTLS_NETTLE=1 |
| 24418 | |
| 24419 | LIBS="-lnettle $LIBS" |
| 24420 | else |
| 24421 | LIBS="-lgcrypt $LIBS" |
| 24422 | fi |
| 24423 | fi |
| 24424 | |
| 24425 | if test "$GNUTLS_ENABLED" = "1"; then |
| 24426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5 |
| 24427 | $as_echo_n "checking for gnutls_srp_verifier in -lgnutls... " >&6; } |
| 24428 | if ${ac_cv_lib_gnutls_gnutls_srp_verifier+:} false; then : |
| 24429 | $as_echo_n "(cached) " >&6 |
| 24430 | else |
| 24431 | ac_check_lib_save_LIBS=$LIBS |
| 24432 | LIBS="-lgnutls $LIBS" |
| 24433 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24434 | /* end confdefs.h. */ |
| 24435 | |
| 24436 | |
| 24437 | #ifdef __cplusplus |
| 24438 | extern "C" |
| 24439 | #endif |
| 24440 | char gnutls_srp_verifier (); |
| 24441 | int main (void) |
| 24442 | { |
| 24443 | return gnutls_srp_verifier (); |
| 24444 | ; |
| 24445 | return 0; |
| 24446 | } |
| 24447 | _ACEOF |
| 24448 | if ac_fn_c_try_link "$LINENO"; then : |
| 24449 | ac_cv_lib_gnutls_gnutls_srp_verifier=yes |
| 24450 | else |
| 24451 | ac_cv_lib_gnutls_gnutls_srp_verifier=no |
| 24452 | fi |
| 24453 | rm -f core conftest.err conftest.$ac_objext \ |
| 24454 | conftest$ac_exeext conftest.$ac_ext |
| 24455 | LIBS=$ac_check_lib_save_LIBS |
| 24456 | fi |
| 24457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5 |
| 24458 | $as_echo "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; } |
| 24459 | if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes; then : |
| 24460 | |
| 24461 | |
| 24462 | $as_echo "#define HAVE_GNUTLS_SRP 1" >>confdefs.h |
| 24463 | |
| 24464 | HAVE_GNUTLS_SRP=1 |
| 24465 | |
| 24466 | |
| 24467 | fi |
| 24468 | |
| 24469 | fi |
| 24470 | |
| 24471 | |
| 24472 | OPT_POLARSSL=no |
| 24473 | |
| 24474 | _cppflags=$CPPFLAGS |
| 24475 | _ldflags=$LDFLAGS |
| 24476 | |
| 24477 | # Check whether --with-polarssl was given. |
| 24478 | if test "${with_polarssl+set}" = set; then : |
| 24479 | withval=$with_polarssl; OPT_POLARSSL=$withval |
| 24480 | fi |
| 24481 | |
| 24482 | |
| 24483 | if test "$curl_ssl_msg" = "$init_ssl_msg"; then |
| 24484 | |
| 24485 | if test X"$OPT_POLARSSL" != Xno; then |
| 24486 | |
| 24487 | if test "$OPT_POLARSSL" = "yes"; then |
| 24488 | OPT_POLARSSL="" |
| 24489 | fi |
| 24490 | |
| 24491 | if test -z "$OPT_POLARSSL" ; then |
| 24492 | |
| 24493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for havege_init in -lpolarssl" >&5 |
| 24494 | $as_echo_n "checking for havege_init in -lpolarssl... " >&6; } |
| 24495 | if ${ac_cv_lib_polarssl_havege_init+:} false; then : |
| 24496 | $as_echo_n "(cached) " >&6 |
| 24497 | else |
| 24498 | ac_check_lib_save_LIBS=$LIBS |
| 24499 | LIBS="-lpolarssl $LIBS" |
| 24500 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24501 | /* end confdefs.h. */ |
| 24502 | |
| 24503 | |
| 24504 | #ifdef __cplusplus |
| 24505 | extern "C" |
| 24506 | #endif |
| 24507 | char havege_init (); |
| 24508 | int main (void) |
| 24509 | { |
| 24510 | return havege_init (); |
| 24511 | ; |
| 24512 | return 0; |
| 24513 | } |
| 24514 | _ACEOF |
| 24515 | if ac_fn_c_try_link "$LINENO"; then : |
| 24516 | ac_cv_lib_polarssl_havege_init=yes |
| 24517 | else |
| 24518 | ac_cv_lib_polarssl_havege_init=no |
| 24519 | fi |
| 24520 | rm -f core conftest.err conftest.$ac_objext \ |
| 24521 | conftest$ac_exeext conftest.$ac_ext |
| 24522 | LIBS=$ac_check_lib_save_LIBS |
| 24523 | fi |
| 24524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_havege_init" >&5 |
| 24525 | $as_echo "$ac_cv_lib_polarssl_havege_init" >&6; } |
| 24526 | if test "x$ac_cv_lib_polarssl_havege_init" = xyes; then : |
| 24527 | |
| 24528 | |
| 24529 | $as_echo "#define USE_POLARSSL 1" >>confdefs.h |
| 24530 | |
| 24531 | USE_POLARSSL=1 |
| 24532 | |
| 24533 | POLARSSL_ENABLED=1 |
| 24534 | USE_POLARSSL="yes" |
| 24535 | curl_ssl_msg="enabled (PolarSSL)" |
| 24536 | |
| 24537 | fi |
| 24538 | |
| 24539 | fi |
| 24540 | |
| 24541 | addld="" |
| 24542 | addlib="" |
| 24543 | addcflags="" |
| 24544 | polarssllib="" |
| 24545 | |
| 24546 | if test "x$USE_POLARSSL" != "xyes"; then |
| 24547 | addld=-L$OPT_POLARSSL/lib$libsuff |
| 24548 | addcflags=-I$OPT_POLARSSL/include |
| 24549 | polarssllib=$OPT_POLARSSL/lib$libsuff |
| 24550 | |
| 24551 | LDFLAGS="$LDFLAGS $addld" |
| 24552 | if test "$addcflags" != "-I/usr/include"; then |
| 24553 | CPPFLAGS="$CPPFLAGS $addcflags" |
| 24554 | fi |
| 24555 | |
| 24556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5 |
| 24557 | $as_echo_n "checking for ssl_init in -lpolarssl... " >&6; } |
| 24558 | if ${ac_cv_lib_polarssl_ssl_init+:} false; then : |
| 24559 | $as_echo_n "(cached) " >&6 |
| 24560 | else |
| 24561 | ac_check_lib_save_LIBS=$LIBS |
| 24562 | LIBS="-lpolarssl $LIBS" |
| 24563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24564 | /* end confdefs.h. */ |
| 24565 | |
| 24566 | |
| 24567 | #ifdef __cplusplus |
| 24568 | extern "C" |
| 24569 | #endif |
| 24570 | char ssl_init (); |
| 24571 | int main (void) |
| 24572 | { |
| 24573 | return ssl_init (); |
| 24574 | ; |
| 24575 | return 0; |
| 24576 | } |
| 24577 | _ACEOF |
| 24578 | if ac_fn_c_try_link "$LINENO"; then : |
| 24579 | ac_cv_lib_polarssl_ssl_init=yes |
| 24580 | else |
| 24581 | ac_cv_lib_polarssl_ssl_init=no |
| 24582 | fi |
| 24583 | rm -f core conftest.err conftest.$ac_objext \ |
| 24584 | conftest$ac_exeext conftest.$ac_ext |
| 24585 | LIBS=$ac_check_lib_save_LIBS |
| 24586 | fi |
| 24587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5 |
| 24588 | $as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; } |
| 24589 | if test "x$ac_cv_lib_polarssl_ssl_init" = xyes; then : |
| 24590 | |
| 24591 | |
| 24592 | $as_echo "#define USE_POLARSSL 1" >>confdefs.h |
| 24593 | |
| 24594 | USE_POLARSSL=1 |
| 24595 | |
| 24596 | POLARSSL_ENABLED=1 |
| 24597 | USE_POLARSSL="yes" |
| 24598 | curl_ssl_msg="enabled (PolarSSL)" |
| 24599 | |
| 24600 | else |
| 24601 | |
| 24602 | CPPFLAGS=$_cppflags |
| 24603 | LDFLAGS=$_ldflags |
| 24604 | |
| 24605 | fi |
| 24606 | |
| 24607 | fi |
| 24608 | |
| 24609 | if test "x$USE_POLARSSL" = "xyes"; then |
| 24610 | { $as_echo "$as_me:${as_lineno-$LINENO}: detected PolarSSL" >&5 |
| 24611 | $as_echo "$as_me: detected PolarSSL" >&6;} |
| 24612 | |
| 24613 | LIBS="-lpolarssl $LIBS" |
| 24614 | |
| 24615 | if test -n "$polarssllib"; then |
| 24616 | if test "x$cross_compiling" != "xyes"; then |
| 24617 | LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$polarssllib" |
| 24618 | export LD_LIBRARY_PATH |
| 24619 | { $as_echo "$as_me:${as_lineno-$LINENO}: Added $polarssllib to LD_LIBRARY_PATH" >&5 |
| 24620 | $as_echo "$as_me: Added $polarssllib to LD_LIBRARY_PATH" >&6;} |
| 24621 | fi |
| 24622 | fi |
| 24623 | fi |
| 24624 | |
| 24625 | fi |
| 24626 | fi |
| 24627 | |
| 24628 | |
| 24629 | OPT_MBEDTLS=no |
| 24630 | |
| 24631 | _cppflags=$CPPFLAGS |
| 24632 | _ldflags=$LDFLAGS |
| 24633 | |
| 24634 | # Check whether --with-mbedtls was given. |
| 24635 | if test "${with_mbedtls+set}" = set; then : |
| 24636 | withval=$with_mbedtls; OPT_MBEDTLS=$withval |
| 24637 | fi |
| 24638 | |
| 24639 | |
| 24640 | if test "$curl_ssl_msg" = "$init_ssl_msg"; then |
| 24641 | |
| 24642 | if test X"$OPT_MBEDTLS" != Xno; then |
| 24643 | |
| 24644 | if test "$OPT_MBEDTLS" = "yes"; then |
| 24645 | OPT_MBEDTLS="" |
| 24646 | fi |
| 24647 | |
| 24648 | if test -z "$OPT_MBEDTLS" ; then |
| 24649 | |
| 24650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5 |
| 24651 | $as_echo_n "checking for mbedtls_havege_init in -lmbedtls... " >&6; } |
| 24652 | if ${ac_cv_lib_mbedtls_mbedtls_havege_init+:} false; then : |
| 24653 | $as_echo_n "(cached) " >&6 |
| 24654 | else |
| 24655 | ac_check_lib_save_LIBS=$LIBS |
| 24656 | LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS" |
| 24657 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24658 | /* end confdefs.h. */ |
| 24659 | |
| 24660 | |
| 24661 | #ifdef __cplusplus |
| 24662 | extern "C" |
| 24663 | #endif |
| 24664 | char mbedtls_havege_init (); |
| 24665 | int main (void) |
| 24666 | { |
| 24667 | return mbedtls_havege_init (); |
| 24668 | ; |
| 24669 | return 0; |
| 24670 | } |
| 24671 | _ACEOF |
| 24672 | if ac_fn_c_try_link "$LINENO"; then : |
| 24673 | ac_cv_lib_mbedtls_mbedtls_havege_init=yes |
| 24674 | else |
| 24675 | ac_cv_lib_mbedtls_mbedtls_havege_init=no |
| 24676 | fi |
| 24677 | rm -f core conftest.err conftest.$ac_objext \ |
| 24678 | conftest$ac_exeext conftest.$ac_ext |
| 24679 | LIBS=$ac_check_lib_save_LIBS |
| 24680 | fi |
| 24681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5 |
| 24682 | $as_echo "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; } |
| 24683 | if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes; then : |
| 24684 | |
| 24685 | |
| 24686 | $as_echo "#define USE_MBEDTLS 1" >>confdefs.h |
| 24687 | |
| 24688 | USE_MBEDTLS=1 |
| 24689 | |
| 24690 | MBEDTLS_ENABLED=1 |
| 24691 | USE_MBEDTLS="yes" |
| 24692 | curl_ssl_msg="enabled (mbedTLS)" |
| 24693 | |
| 24694 | fi |
| 24695 | |
| 24696 | fi |
| 24697 | |
| 24698 | addld="" |
| 24699 | addlib="" |
| 24700 | addcflags="" |
| 24701 | mbedtlslib="" |
| 24702 | |
| 24703 | if test "x$USE_MBEDTLS" != "xyes"; then |
| 24704 | addld=-L$OPT_MBEDTLS/lib$libsuff |
| 24705 | addcflags=-I$OPT_MBEDTLS/include |
| 24706 | mbedtlslib=$OPT_MBEDTLS/lib$libsuff |
| 24707 | |
| 24708 | LDFLAGS="$LDFLAGS $addld" |
| 24709 | if test "$addcflags" != "-I/usr/include"; then |
| 24710 | CPPFLAGS="$CPPFLAGS $addcflags" |
| 24711 | fi |
| 24712 | |
| 24713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5 |
| 24714 | $as_echo_n "checking for mbedtls_ssl_init in -lmbedtls... " >&6; } |
| 24715 | if ${ac_cv_lib_mbedtls_mbedtls_ssl_init+:} false; then : |
| 24716 | $as_echo_n "(cached) " >&6 |
| 24717 | else |
| 24718 | ac_check_lib_save_LIBS=$LIBS |
| 24719 | LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS" |
| 24720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24721 | /* end confdefs.h. */ |
| 24722 | |
| 24723 | |
| 24724 | #ifdef __cplusplus |
| 24725 | extern "C" |
| 24726 | #endif |
| 24727 | char mbedtls_ssl_init (); |
| 24728 | int main (void) |
| 24729 | { |
| 24730 | return mbedtls_ssl_init (); |
| 24731 | ; |
| 24732 | return 0; |
| 24733 | } |
| 24734 | _ACEOF |
| 24735 | if ac_fn_c_try_link "$LINENO"; then : |
| 24736 | ac_cv_lib_mbedtls_mbedtls_ssl_init=yes |
| 24737 | else |
| 24738 | ac_cv_lib_mbedtls_mbedtls_ssl_init=no |
| 24739 | fi |
| 24740 | rm -f core conftest.err conftest.$ac_objext \ |
| 24741 | conftest$ac_exeext conftest.$ac_ext |
| 24742 | LIBS=$ac_check_lib_save_LIBS |
| 24743 | fi |
| 24744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5 |
| 24745 | $as_echo "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; } |
| 24746 | if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes; then : |
| 24747 | |
| 24748 | |
| 24749 | $as_echo "#define USE_MBEDTLS 1" >>confdefs.h |
| 24750 | |
| 24751 | USE_MBEDTLS=1 |
| 24752 | |
| 24753 | MBEDTLS_ENABLED=1 |
| 24754 | USE_MBEDTLS="yes" |
| 24755 | curl_ssl_msg="enabled (mbedTLS)" |
| 24756 | |
| 24757 | else |
| 24758 | |
| 24759 | CPPFLAGS=$_cppflags |
| 24760 | LDFLAGS=$_ldflags |
| 24761 | |
| 24762 | fi |
| 24763 | |
| 24764 | fi |
| 24765 | |
| 24766 | if test "x$USE_MBEDTLS" = "xyes"; then |
| 24767 | { $as_echo "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5 |
| 24768 | $as_echo "$as_me: detected mbedTLS" >&6;} |
| 24769 | |
| 24770 | LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS" |
| 24771 | |
| 24772 | if test -n "$mbedtlslib"; then |
| 24773 | if test "x$cross_compiling" != "xyes"; then |
| 24774 | LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$mbedtlslib" |
| 24775 | export LD_LIBRARY_PATH |
| 24776 | { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to LD_LIBRARY_PATH" >&5 |
| 24777 | $as_echo "$as_me: Added $mbedtlslib to LD_LIBRARY_PATH" >&6;} |
| 24778 | fi |
| 24779 | fi |
| 24780 | fi |
| 24781 | |
| 24782 | fi |
| 24783 | fi |
| 24784 | |
| 24785 | |
| 24786 | OPT_CYASSL=no |
| 24787 | |
| 24788 | _cppflags=$CPPFLAGS |
| 24789 | _ldflags=$LDFLAGS |
| 24790 | |
| 24791 | # Check whether --with-cyassl was given. |
| 24792 | if test "${with_cyassl+set}" = set; then : |
| 24793 | withval=$with_cyassl; OPT_CYASSL=$withval |
| 24794 | fi |
| 24795 | |
| 24796 | |
| 24797 | if test "$curl_ssl_msg" = "$init_ssl_msg"; then |
| 24798 | |
| 24799 | if test X"$OPT_CYASSL" != Xno; then |
| 24800 | |
| 24801 | if test "$OPT_CYASSL" = "yes"; then |
| 24802 | OPT_CYASSL="" |
| 24803 | fi |
| 24804 | |
| 24805 | |
| 24806 | cyassllibname=cyassl |
| 24807 | |
| 24808 | if test -z "$OPT_CYASSL" ; then |
| 24809 | |
| 24810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5 |
| 24811 | $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; } |
| 24812 | if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then : |
| 24813 | $as_echo_n "(cached) " >&6 |
| 24814 | else |
| 24815 | ac_check_lib_save_LIBS=$LIBS |
| 24816 | LIBS="-lcyassl $LIBS" |
| 24817 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24818 | /* end confdefs.h. */ |
| 24819 | |
| 24820 | |
| 24821 | #ifdef __cplusplus |
| 24822 | extern "C" |
| 24823 | #endif |
| 24824 | char CyaSSL_Init (); |
| 24825 | int main (void) |
| 24826 | { |
| 24827 | return CyaSSL_Init (); |
| 24828 | ; |
| 24829 | return 0; |
| 24830 | } |
| 24831 | _ACEOF |
| 24832 | if ac_fn_c_try_link "$LINENO"; then : |
| 24833 | ac_cv_lib_cyassl_CyaSSL_Init=yes |
| 24834 | else |
| 24835 | ac_cv_lib_cyassl_CyaSSL_Init=no |
| 24836 | fi |
| 24837 | rm -f core conftest.err conftest.$ac_objext \ |
| 24838 | conftest$ac_exeext conftest.$ac_ext |
| 24839 | LIBS=$ac_check_lib_save_LIBS |
| 24840 | fi |
| 24841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5 |
| 24842 | $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; } |
| 24843 | if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then : |
| 24844 | |
| 24845 | |
| 24846 | $as_echo "#define USE_CYASSL 1" >>confdefs.h |
| 24847 | |
| 24848 | USE_CYASSL=1 |
| 24849 | |
| 24850 | CYASSL_ENABLED=1 |
| 24851 | USE_CYASSL="yes" |
| 24852 | curl_ssl_msg="enabled (CyaSSL)" |
| 24853 | |
| 24854 | fi |
| 24855 | |
| 24856 | fi |
| 24857 | |
| 24858 | addld="" |
| 24859 | addlib="" |
| 24860 | addcflags="" |
| 24861 | cyassllib="" |
| 24862 | |
| 24863 | if test "x$USE_CYASSL" != "xyes"; then |
| 24864 | addld=-L$OPT_CYASSL/lib$libsuff |
| 24865 | addcflags=-I$OPT_CYASSL/include |
| 24866 | cyassllib=$OPT_CYASSL/lib$libsuff |
| 24867 | |
| 24868 | LDFLAGS="$LDFLAGS $addld" |
| 24869 | if test "$addcflags" != "-I/usr/include"; then |
| 24870 | CPPFLAGS="$CPPFLAGS $addcflags" |
| 24871 | fi |
| 24872 | |
| 24873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5 |
| 24874 | $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; } |
| 24875 | if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then : |
| 24876 | $as_echo_n "(cached) " >&6 |
| 24877 | else |
| 24878 | ac_check_lib_save_LIBS=$LIBS |
| 24879 | LIBS="-lcyassl $LIBS" |
| 24880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24881 | /* end confdefs.h. */ |
| 24882 | |
| 24883 | |
| 24884 | #ifdef __cplusplus |
| 24885 | extern "C" |
| 24886 | #endif |
| 24887 | char CyaSSL_Init (); |
| 24888 | int main (void) |
| 24889 | { |
| 24890 | return CyaSSL_Init (); |
| 24891 | ; |
| 24892 | return 0; |
| 24893 | } |
| 24894 | _ACEOF |
| 24895 | if ac_fn_c_try_link "$LINENO"; then : |
| 24896 | ac_cv_lib_cyassl_CyaSSL_Init=yes |
| 24897 | else |
| 24898 | ac_cv_lib_cyassl_CyaSSL_Init=no |
| 24899 | fi |
| 24900 | rm -f core conftest.err conftest.$ac_objext \ |
| 24901 | conftest$ac_exeext conftest.$ac_ext |
| 24902 | LIBS=$ac_check_lib_save_LIBS |
| 24903 | fi |
| 24904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5 |
| 24905 | $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; } |
| 24906 | if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then : |
| 24907 | |
| 24908 | |
| 24909 | $as_echo "#define USE_CYASSL 1" >>confdefs.h |
| 24910 | |
| 24911 | USE_CYASSL=1 |
| 24912 | |
| 24913 | CYASSL_ENABLED=1 |
| 24914 | USE_CYASSL="yes" |
| 24915 | curl_ssl_msg="enabled (CyaSSL)" |
| 24916 | |
| 24917 | else |
| 24918 | |
| 24919 | CPPFLAGS=$_cppflags |
| 24920 | LDFLAGS=$_ldflags |
| 24921 | cyassllib="" |
| 24922 | |
| 24923 | fi |
| 24924 | |
| 24925 | fi |
| 24926 | |
| 24927 | addld="" |
| 24928 | addlib="" |
| 24929 | addcflags="" |
| 24930 | |
| 24931 | if test "x$USE_CYASSL" != "xyes"; then |
| 24932 | addld=-L$OPT_CYASSL/lib$libsuff |
| 24933 | addcflags=-I$OPT_CYASSL/include |
| 24934 | cyassllib=$OPT_CYASSL/lib$libsuff |
| 24935 | |
| 24936 | LDFLAGS="$LDFLAGS $addld" |
| 24937 | if test "$addcflags" != "-I/usr/include"; then |
| 24938 | CPPFLAGS="$CPPFLAGS $addcflags" |
| 24939 | fi |
| 24940 | |
| 24941 | cyassllibname=wolfssl |
| 24942 | my_ac_save_LIBS="$LIBS" |
| 24943 | LIBS="-l$cyassllibname -lm $LIBS" |
| 24944 | |
| 24945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lwolfssl" >&5 |
| 24946 | $as_echo_n "checking for CyaSSL_Init in -lwolfssl... " >&6; } |
| 24947 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24948 | /* end confdefs.h. */ |
| 24949 | |
| 24950 | |
| 24951 | /* These aren't needed for detection and confuse WolfSSL. |
| 24952 | They are set up properly later if it is detected. */ |
| 24953 | #undef SIZEOF_LONG |
| 24954 | #undef SIZEOF_LONG_LONG |
| 24955 | #include <cyassl/ssl.h> |
| 24956 | |
| 24957 | int main (void) |
| 24958 | { |
| 24959 | |
| 24960 | return CyaSSL_Init(); |
| 24961 | |
| 24962 | ; |
| 24963 | return 0; |
| 24964 | } |
| 24965 | |
| 24966 | _ACEOF |
| 24967 | if ac_fn_c_try_link "$LINENO"; then : |
| 24968 | |
| 24969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 24970 | $as_echo "yes" >&6; } |
| 24971 | |
| 24972 | $as_echo "#define USE_CYASSL 1" >>confdefs.h |
| 24973 | |
| 24974 | USE_CYASSL=1 |
| 24975 | |
| 24976 | CYASSL_ENABLED=1 |
| 24977 | USE_CYASSL="yes" |
| 24978 | curl_ssl_msg="enabled (WolfSSL)" |
| 24979 | |
| 24980 | else |
| 24981 | |
| 24982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 24983 | $as_echo "no" >&6; } |
| 24984 | CPPFLAGS=$_cppflags |
| 24985 | LDFLAGS=$_ldflags |
| 24986 | cyassllib="" |
| 24987 | |
| 24988 | fi |
| 24989 | rm -f core conftest.err conftest.$ac_objext \ |
| 24990 | conftest$ac_exeext conftest.$ac_ext |
| 24991 | LIBS="$my_ac_save_LIBS" |
| 24992 | fi |
| 24993 | |
| 24994 | if test "x$USE_CYASSL" = "xyes"; then |
| 24995 | { $as_echo "$as_me:${as_lineno-$LINENO}: detected $cyassllibname" >&5 |
| 24996 | $as_echo "$as_me: detected $cyassllibname" >&6;} |
| 24997 | |
| 24998 | # The cast to long int works around a bug in the HP C Compiler |
| 24999 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 25000 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 25001 | # This bug is HP SR number 8606223364. |
| 25002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 |
| 25003 | $as_echo_n "checking size of long long... " >&6; } |
| 25004 | if ${ac_cv_sizeof_long_long+:} false; then : |
| 25005 | $as_echo_n "(cached) " >&6 |
| 25006 | else |
| 25007 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : |
| 25008 | |
| 25009 | else |
| 25010 | if test "$ac_cv_type_long_long" = yes; then |
| 25011 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 25012 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 25013 | as_fn_error 77 "cannot compute sizeof (long long) |
| 25014 | See \`config.log' for more details" "$LINENO" 5; } |
| 25015 | else |
| 25016 | ac_cv_sizeof_long_long=0 |
| 25017 | fi |
| 25018 | fi |
| 25019 | |
| 25020 | fi |
| 25021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
| 25022 | $as_echo "$ac_cv_sizeof_long_long" >&6; } |
| 25023 | |
| 25024 | |
| 25025 | |
| 25026 | cat >>confdefs.h <<_ACEOF |
| 25027 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
| 25028 | _ACEOF |
| 25029 | |
| 25030 | |
| 25031 | |
| 25032 | for ac_header in cyassl/options.h |
| 25033 | do : |
| 25034 | ac_fn_c_check_header_mongrel "$LINENO" "cyassl/options.h" "ac_cv_header_cyassl_options_h" "$ac_includes_default" |
| 25035 | if test "x$ac_cv_header_cyassl_options_h" = xyes; then : |
| 25036 | cat >>confdefs.h <<_ACEOF |
| 25037 | #define HAVE_CYASSL_OPTIONS_H 1 |
| 25038 | _ACEOF |
| 25039 | |
| 25040 | fi |
| 25041 | |
| 25042 | done |
| 25043 | |
| 25044 | |
| 25045 | for ac_header in cyassl/error-ssl.h |
| 25046 | do : |
| 25047 | ac_fn_c_check_header_mongrel "$LINENO" "cyassl/error-ssl.h" "ac_cv_header_cyassl_error_ssl_h" "$ac_includes_default" |
| 25048 | if test "x$ac_cv_header_cyassl_error_ssl_h" = xyes; then : |
| 25049 | cat >>confdefs.h <<_ACEOF |
| 25050 | #define HAVE_CYASSL_ERROR_SSL_H 1 |
| 25051 | _ACEOF |
| 25052 | |
| 25053 | fi |
| 25054 | |
| 25055 | done |
| 25056 | |
| 25057 | |
| 25058 | LIBS="-l$cyassllibname -lm $LIBS" |
| 25059 | |
| 25060 | if test "x$cyassllibname" = "xwolfssl"; then |
| 25061 | for ac_func in wolfSSLv3_client_method \ |
| 25062 | wolfSSL_CTX_UseSupportedCurve \ |
| 25063 | wolfSSL_get_peer_certificate \ |
| 25064 | wolfSSL_UseALPN |
| 25065 | do : |
| 25066 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 25067 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 25068 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 25069 | cat >>confdefs.h <<_ACEOF |
| 25070 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 25071 | _ACEOF |
| 25072 | |
| 25073 | fi |
| 25074 | done |
| 25075 | |
| 25076 | else |
| 25077 | for ac_func in CyaSSL_CTX_UseSupportedCurve \ |
| 25078 | CyaSSL_get_peer_certificate |
| 25079 | do : |
| 25080 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 25081 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 25082 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 25083 | cat >>confdefs.h <<_ACEOF |
| 25084 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 25085 | _ACEOF |
| 25086 | |
| 25087 | fi |
| 25088 | done |
| 25089 | |
| 25090 | fi |
| 25091 | |
| 25092 | if test -n "$cyassllib"; then |
| 25093 | if test "x$cross_compiling" != "xyes"; then |
| 25094 | LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$cyassllib" |
| 25095 | export LD_LIBRARY_PATH |
| 25096 | { $as_echo "$as_me:${as_lineno-$LINENO}: Added $cyassllib to LD_LIBRARY_PATH" >&5 |
| 25097 | $as_echo "$as_me: Added $cyassllib to LD_LIBRARY_PATH" >&6;} |
| 25098 | fi |
| 25099 | fi |
| 25100 | |
| 25101 | fi |
| 25102 | |
| 25103 | fi |
| 25104 | fi |
| 25105 | |
| 25106 | |
| 25107 | OPT_NSS=no |
| 25108 | |
| 25109 | |
| 25110 | # Check whether --with-nss was given. |
| 25111 | if test "${with_nss+set}" = set; then : |
| 25112 | withval=$with_nss; OPT_NSS=$withval |
| 25113 | fi |
| 25114 | |
| 25115 | |
| 25116 | if test "$curl_ssl_msg" = "$init_ssl_msg"; then |
| 25117 | |
| 25118 | if test X"$OPT_NSS" != Xno; then |
| 25119 | |
| 25120 | addld="" |
| 25121 | addlib="" |
| 25122 | addcflags="" |
| 25123 | nssprefix="" |
| 25124 | version="" |
| 25125 | |
| 25126 | if test "x$OPT_NSS" = "xyes"; then |
| 25127 | |
| 25128 | |
| 25129 | if test -n "$PKG_CONFIG"; then |
| 25130 | PKGCONFIG="$PKG_CONFIG" |
| 25131 | else |
| 25132 | if test -n "$ac_tool_prefix"; then |
| 25133 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 25134 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 25135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 25136 | $as_echo_n "checking for $ac_word... " >&6; } |
| 25137 | if ${ac_cv_path_PKGCONFIG+:} false; then : |
| 25138 | $as_echo_n "(cached) " >&6 |
| 25139 | else |
| 25140 | case $PKGCONFIG in |
| 25141 | [\\/]* | ?:[\\/]*) |
| 25142 | ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. |
| 25143 | ;; |
| 25144 | *) |
| 25145 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 25146 | as_dummy="$PATH:/usr/bin:/usr/local/bin" |
| 25147 | for as_dir in $as_dummy |
| 25148 | do |
| 25149 | IFS=$as_save_IFS |
| 25150 | test -z "$as_dir" && as_dir=. |
| 25151 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 25152 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 25153 | ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 25154 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 25155 | break 2 |
| 25156 | fi |
| 25157 | done |
| 25158 | done |
| 25159 | IFS=$as_save_IFS |
| 25160 | |
| 25161 | ;; |
| 25162 | esac |
| 25163 | fi |
| 25164 | PKGCONFIG=$ac_cv_path_PKGCONFIG |
| 25165 | if test -n "$PKGCONFIG"; then |
| 25166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 |
| 25167 | $as_echo "$PKGCONFIG" >&6; } |
| 25168 | else |
| 25169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 25170 | $as_echo "no" >&6; } |
| 25171 | fi |
| 25172 | |
| 25173 | |
| 25174 | fi |
| 25175 | if test -z "$ac_cv_path_PKGCONFIG"; then |
| 25176 | ac_pt_PKGCONFIG=$PKGCONFIG |
| 25177 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 25178 | set dummy pkg-config; ac_word=$2 |
| 25179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 25180 | $as_echo_n "checking for $ac_word... " >&6; } |
| 25181 | if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : |
| 25182 | $as_echo_n "(cached) " >&6 |
| 25183 | else |
| 25184 | case $ac_pt_PKGCONFIG in |
| 25185 | [\\/]* | ?:[\\/]*) |
| 25186 | ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. |
| 25187 | ;; |
| 25188 | *) |
| 25189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 25190 | as_dummy="$PATH:/usr/bin:/usr/local/bin" |
| 25191 | for as_dir in $as_dummy |
| 25192 | do |
| 25193 | IFS=$as_save_IFS |
| 25194 | test -z "$as_dir" && as_dir=. |
| 25195 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 25196 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 25197 | ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 25198 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 25199 | break 2 |
| 25200 | fi |
| 25201 | done |
| 25202 | done |
| 25203 | IFS=$as_save_IFS |
| 25204 | |
| 25205 | ;; |
| 25206 | esac |
| 25207 | fi |
| 25208 | ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG |
| 25209 | if test -n "$ac_pt_PKGCONFIG"; then |
| 25210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 |
| 25211 | $as_echo "$ac_pt_PKGCONFIG" >&6; } |
| 25212 | else |
| 25213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 25214 | $as_echo "no" >&6; } |
| 25215 | fi |
| 25216 | |
| 25217 | if test "x$ac_pt_PKGCONFIG" = x; then |
| 25218 | PKGCONFIG="no" |
| 25219 | else |
| 25220 | case $cross_compiling:$ac_tool_warned in |
| 25221 | yes:) |
| 25222 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 25223 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 25224 | ac_tool_warned=yes ;; |
| 25225 | esac |
| 25226 | PKGCONFIG=$ac_pt_PKGCONFIG |
| 25227 | fi |
| 25228 | else |
| 25229 | PKGCONFIG="$ac_cv_path_PKGCONFIG" |
| 25230 | fi |
| 25231 | |
| 25232 | fi |
| 25233 | |
| 25234 | if test "x$PKGCONFIG" != "xno"; then |
| 25235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5 |
| 25236 | $as_echo_n "checking for nss options with pkg-config... " >&6; } |
| 25237 | itexists=` |
| 25238 | if test -n ""; then |
| 25239 | PKG_CONFIG_LIBDIR="" |
| 25240 | export PKG_CONFIG_LIBDIR |
| 25241 | fi |
| 25242 | $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1` |
| 25243 | |
| 25244 | if test -z "$itexists"; then |
| 25245 | PKGCONFIG="no" |
| 25246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 25247 | $as_echo "no" >&6; } |
| 25248 | else |
| 25249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 25250 | $as_echo "found" >&6; } |
| 25251 | fi |
| 25252 | fi |
| 25253 | |
| 25254 | |
| 25255 | if test "$PKGCONFIG" != "no" ; then |
| 25256 | addlib=`$PKGCONFIG --libs nss` |
| 25257 | addcflags=`$PKGCONFIG --cflags nss` |
| 25258 | version=`$PKGCONFIG --modversion nss` |
| 25259 | nssprefix=`$PKGCONFIG --variable=prefix nss` |
| 25260 | else |
| 25261 | |
| 25262 | check=`nss-config --version 2>/dev/null` |
| 25263 | if test -n "$check"; then |
| 25264 | addlib=`nss-config --libs` |
| 25265 | addcflags=`nss-config --cflags` |
| 25266 | version=`nss-config --version` |
| 25267 | nssprefix=`nss-config --prefix` |
| 25268 | else |
| 25269 | addlib="-lnss3" |
| 25270 | addcflags="" |
| 25271 | version="unknown" |
| 25272 | fi |
| 25273 | fi |
| 25274 | else |
| 25275 | NSS_PCDIR="$OPT_NSS/lib/pkgconfig" |
| 25276 | if test -f "$NSS_PCDIR/nss.pc"; then |
| 25277 | |
| 25278 | if test -n "$PKG_CONFIG"; then |
| 25279 | PKGCONFIG="$PKG_CONFIG" |
| 25280 | else |
| 25281 | if test -n "$ac_tool_prefix"; then |
| 25282 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 25283 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 25284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 25285 | $as_echo_n "checking for $ac_word... " >&6; } |
| 25286 | if ${ac_cv_path_PKGCONFIG+:} false; then : |
| 25287 | $as_echo_n "(cached) " >&6 |
| 25288 | else |
| 25289 | case $PKGCONFIG in |
| 25290 | [\\/]* | ?:[\\/]*) |
| 25291 | ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. |
| 25292 | ;; |
| 25293 | *) |
| 25294 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 25295 | as_dummy="$PATH:/usr/bin:/usr/local/bin" |
| 25296 | for as_dir in $as_dummy |
| 25297 | do |
| 25298 | IFS=$as_save_IFS |
| 25299 | test -z "$as_dir" && as_dir=. |
| 25300 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 25301 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 25302 | ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 25303 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 25304 | break 2 |
| 25305 | fi |
| 25306 | done |
| 25307 | done |
| 25308 | IFS=$as_save_IFS |
| 25309 | |
| 25310 | ;; |
| 25311 | esac |
| 25312 | fi |
| 25313 | PKGCONFIG=$ac_cv_path_PKGCONFIG |
| 25314 | if test -n "$PKGCONFIG"; then |
| 25315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 |
| 25316 | $as_echo "$PKGCONFIG" >&6; } |
| 25317 | else |
| 25318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 25319 | $as_echo "no" >&6; } |
| 25320 | fi |
| 25321 | |
| 25322 | |
| 25323 | fi |
| 25324 | if test -z "$ac_cv_path_PKGCONFIG"; then |
| 25325 | ac_pt_PKGCONFIG=$PKGCONFIG |
| 25326 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 25327 | set dummy pkg-config; ac_word=$2 |
| 25328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 25329 | $as_echo_n "checking for $ac_word... " >&6; } |
| 25330 | if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : |
| 25331 | $as_echo_n "(cached) " >&6 |
| 25332 | else |
| 25333 | case $ac_pt_PKGCONFIG in |
| 25334 | [\\/]* | ?:[\\/]*) |
| 25335 | ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. |
| 25336 | ;; |
| 25337 | *) |
| 25338 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 25339 | as_dummy="$PATH:/usr/bin:/usr/local/bin" |
| 25340 | for as_dir in $as_dummy |
| 25341 | do |
| 25342 | IFS=$as_save_IFS |
| 25343 | test -z "$as_dir" && as_dir=. |
| 25344 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 25345 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 25346 | ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 25347 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 25348 | break 2 |
| 25349 | fi |
| 25350 | done |
| 25351 | done |
| 25352 | IFS=$as_save_IFS |
| 25353 | |
| 25354 | ;; |
| 25355 | esac |
| 25356 | fi |
| 25357 | ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG |
| 25358 | if test -n "$ac_pt_PKGCONFIG"; then |
| 25359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 |
| 25360 | $as_echo "$ac_pt_PKGCONFIG" >&6; } |
| 25361 | else |
| 25362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 25363 | $as_echo "no" >&6; } |
| 25364 | fi |
| 25365 | |
| 25366 | if test "x$ac_pt_PKGCONFIG" = x; then |
| 25367 | PKGCONFIG="no" |
| 25368 | else |
| 25369 | case $cross_compiling:$ac_tool_warned in |
| 25370 | yes:) |
| 25371 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 25372 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 25373 | ac_tool_warned=yes ;; |
| 25374 | esac |
| 25375 | PKGCONFIG=$ac_pt_PKGCONFIG |
| 25376 | fi |
| 25377 | else |
| 25378 | PKGCONFIG="$ac_cv_path_PKGCONFIG" |
| 25379 | fi |
| 25380 | |
| 25381 | fi |
| 25382 | |
| 25383 | if test "x$PKGCONFIG" != "xno"; then |
| 25384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5 |
| 25385 | $as_echo_n "checking for nss options with pkg-config... " >&6; } |
| 25386 | itexists=` |
| 25387 | if test -n "$NSS_PCDIR"; then |
| 25388 | PKG_CONFIG_LIBDIR="$NSS_PCDIR" |
| 25389 | export PKG_CONFIG_LIBDIR |
| 25390 | fi |
| 25391 | $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1` |
| 25392 | |
| 25393 | if test -z "$itexists"; then |
| 25394 | PKGCONFIG="no" |
| 25395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 25396 | $as_echo "no" >&6; } |
| 25397 | else |
| 25398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 25399 | $as_echo "found" >&6; } |
| 25400 | fi |
| 25401 | fi |
| 25402 | |
| 25403 | if test "$PKGCONFIG" != "no" ; then |
| 25404 | addld=` |
| 25405 | if test -n "$NSS_PCDIR"; then |
| 25406 | PKG_CONFIG_LIBDIR="$NSS_PCDIR" |
| 25407 | export PKG_CONFIG_LIBDIR |
| 25408 | fi |
| 25409 | $PKGCONFIG --libs-only-L nss` |
| 25410 | addlib=` |
| 25411 | if test -n "$NSS_PCDIR"; then |
| 25412 | PKG_CONFIG_LIBDIR="$NSS_PCDIR" |
| 25413 | export PKG_CONFIG_LIBDIR |
| 25414 | fi |
| 25415 | $PKGCONFIG --libs-only-l nss` |
| 25416 | addcflags=` |
| 25417 | if test -n "$NSS_PCDIR"; then |
| 25418 | PKG_CONFIG_LIBDIR="$NSS_PCDIR" |
| 25419 | export PKG_CONFIG_LIBDIR |
| 25420 | fi |
| 25421 | $PKGCONFIG --cflags nss` |
| 25422 | version=` |
| 25423 | if test -n "$NSS_PCDIR"; then |
| 25424 | PKG_CONFIG_LIBDIR="$NSS_PCDIR" |
| 25425 | export PKG_CONFIG_LIBDIR |
| 25426 | fi |
| 25427 | $PKGCONFIG --modversion nss` |
| 25428 | nssprefix=` |
| 25429 | if test -n "$NSS_PCDIR"; then |
| 25430 | PKG_CONFIG_LIBDIR="$NSS_PCDIR" |
| 25431 | export PKG_CONFIG_LIBDIR |
| 25432 | fi |
| 25433 | $PKGCONFIG --variable=prefix nss` |
| 25434 | fi |
| 25435 | fi |
| 25436 | fi |
| 25437 | |
| 25438 | if test -z "$addlib"; then |
| 25439 | # Without pkg-config, we'll kludge in some defaults |
| 25440 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using hard-wired libraries and compilation flags for NSS." >&5 |
| 25441 | $as_echo "$as_me: WARNING: Using hard-wired libraries and compilation flags for NSS." >&2;} |
| 25442 | addld="-L$OPT_NSS/lib" |
| 25443 | addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4" |
| 25444 | addcflags="-I$OPT_NSS/include" |
| 25445 | version="unknown" |
| 25446 | nssprefix=$OPT_NSS |
| 25447 | fi |
| 25448 | |
| 25449 | CLEANLDFLAGS="$LDFLAGS" |
| 25450 | CLEANLIBS="$LIBS" |
| 25451 | CLEANCPPFLAGS="$CPPFLAGS" |
| 25452 | |
| 25453 | LDFLAGS="$addld $LDFLAGS" |
| 25454 | LIBS="$addlib $LIBS" |
| 25455 | if test "$addcflags" != "-I/usr/include"; then |
| 25456 | CPPFLAGS="$CPPFLAGS $addcflags" |
| 25457 | fi |
| 25458 | |
| 25459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5 |
| 25460 | $as_echo_n "checking for SSL_VersionRangeSet in -lnss3... " >&6; } |
| 25461 | if ${ac_cv_lib_nss3_SSL_VersionRangeSet+:} false; then : |
| 25462 | $as_echo_n "(cached) " >&6 |
| 25463 | else |
| 25464 | ac_check_lib_save_LIBS=$LIBS |
| 25465 | LIBS="-lnss3 $LIBS" |
| 25466 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25467 | /* end confdefs.h. */ |
| 25468 | |
| 25469 | |
| 25470 | #ifdef __cplusplus |
| 25471 | extern "C" |
| 25472 | #endif |
| 25473 | char SSL_VersionRangeSet (); |
| 25474 | int main (void) |
| 25475 | { |
| 25476 | return SSL_VersionRangeSet (); |
| 25477 | ; |
| 25478 | return 0; |
| 25479 | } |
| 25480 | _ACEOF |
| 25481 | if ac_fn_c_try_link "$LINENO"; then : |
| 25482 | ac_cv_lib_nss3_SSL_VersionRangeSet=yes |
| 25483 | else |
| 25484 | ac_cv_lib_nss3_SSL_VersionRangeSet=no |
| 25485 | fi |
| 25486 | rm -f core conftest.err conftest.$ac_objext \ |
| 25487 | conftest$ac_exeext conftest.$ac_ext |
| 25488 | LIBS=$ac_check_lib_save_LIBS |
| 25489 | fi |
| 25490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5 |
| 25491 | $as_echo "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; } |
| 25492 | if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes; then : |
| 25493 | |
| 25494 | |
| 25495 | $as_echo "#define USE_NSS 1" >>confdefs.h |
| 25496 | |
| 25497 | USE_NSS=1 |
| 25498 | |
| 25499 | USE_NSS="yes" |
| 25500 | NSS_ENABLED=1 |
| 25501 | curl_ssl_msg="enabled (NSS)" |
| 25502 | |
| 25503 | else |
| 25504 | |
| 25505 | LDFLAGS="$CLEANLDFLAGS" |
| 25506 | LIBS="$CLEANLIBS" |
| 25507 | CPPFLAGS="$CLEANCPPFLAGS" |
| 25508 | |
| 25509 | fi |
| 25510 | |
| 25511 | |
| 25512 | if test "x$USE_NSS" = "xyes"; then |
| 25513 | { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5 |
| 25514 | $as_echo "$as_me: detected NSS version $version" >&6;} |
| 25515 | |
| 25516 | NSS_LIBS=$addlib |
| 25517 | |
| 25518 | |
| 25519 | if test "x$cross_compiling" != "xyes"; then |
| 25520 | LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$nssprefix/lib$libsuff" |
| 25521 | export LD_LIBRARY_PATH |
| 25522 | { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&5 |
| 25523 | $as_echo "$as_me: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&6;} |
| 25524 | fi |
| 25525 | |
| 25526 | fi |
| 25527 | fi |
| 25528 | fi |
| 25529 | OPT_AXTLS=off |
| 25530 | |
| 25531 | |
| 25532 | # Check whether --with-axtls was given. |
| 25533 | if test "${with_axtls+set}" = set; then : |
| 25534 | withval=$with_axtls; OPT_AXTLS=$withval |
| 25535 | fi |
| 25536 | |
| 25537 | |
| 25538 | if test "$curl_ssl_msg" = "$init_ssl_msg"; then |
| 25539 | if test X"$OPT_AXTLS" != Xno; then |
| 25540 | CLEANLDFLAGS="$LDFLAGS" |
| 25541 | CLEANCPPFLAGS="$CPPFLAGS" |
| 25542 | CLEANLIBS="$LIBS" |
| 25543 | |
| 25544 | case "$OPT_AXTLS" in |
| 25545 | yes) |
| 25546 | PREFIX_AXTLS=/usr/local |
| 25547 | LIB_AXTLS="$PREFIX_AXTLS/lib" |
| 25548 | LDFLAGS="$LDFLAGS -L$LIB_AXTLS" |
| 25549 | CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include" |
| 25550 | ;; |
| 25551 | off) |
| 25552 | PREFIX_AXTLS= |
| 25553 | ;; |
| 25554 | *) |
| 25555 | PREFIX_AXTLS=$OPT_AXTLS |
| 25556 | LIB_AXTLS="$PREFIX_AXTLS/lib" |
| 25557 | LDFLAGS="$LDFLAGS -L$LIB_AXTLS" |
| 25558 | CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include" |
| 25559 | ;; |
| 25560 | esac |
| 25561 | |
| 25562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_version in -laxtls" >&5 |
| 25563 | $as_echo_n "checking for ssl_version in -laxtls... " >&6; } |
| 25564 | if ${ac_cv_lib_axtls_ssl_version+:} false; then : |
| 25565 | $as_echo_n "(cached) " >&6 |
| 25566 | else |
| 25567 | ac_check_lib_save_LIBS=$LIBS |
| 25568 | LIBS="-laxtls $LIBS" |
| 25569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25570 | /* end confdefs.h. */ |
| 25571 | |
| 25572 | |
| 25573 | #ifdef __cplusplus |
| 25574 | extern "C" |
| 25575 | #endif |
| 25576 | char ssl_version (); |
| 25577 | int main (void) |
| 25578 | { |
| 25579 | return ssl_version (); |
| 25580 | ; |
| 25581 | return 0; |
| 25582 | } |
| 25583 | _ACEOF |
| 25584 | if ac_fn_c_try_link "$LINENO"; then : |
| 25585 | ac_cv_lib_axtls_ssl_version=yes |
| 25586 | else |
| 25587 | ac_cv_lib_axtls_ssl_version=no |
| 25588 | fi |
| 25589 | rm -f core conftest.err conftest.$ac_objext \ |
| 25590 | conftest$ac_exeext conftest.$ac_ext |
| 25591 | LIBS=$ac_check_lib_save_LIBS |
| 25592 | fi |
| 25593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axtls_ssl_version" >&5 |
| 25594 | $as_echo "$ac_cv_lib_axtls_ssl_version" >&6; } |
| 25595 | if test "x$ac_cv_lib_axtls_ssl_version" = xyes; then : |
| 25596 | |
| 25597 | LIBS="-laxtls $LIBS" |
| 25598 | |
| 25599 | $as_echo "#define USE_AXTLS 1" >>confdefs.h |
| 25600 | |
| 25601 | USE_AXTLS=1 |
| 25602 | |
| 25603 | AXTLS_ENABLED=1 |
| 25604 | USE_AXTLS="yes" |
| 25605 | curl_ssl_msg="enabled (axTLS)" |
| 25606 | |
| 25607 | if test "x$cross_compiling" != "xyes"; then |
| 25608 | LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_AXTLS" |
| 25609 | export LD_LIBRARY_PATH |
| 25610 | { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&5 |
| 25611 | $as_echo "$as_me: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&6;} |
| 25612 | fi |
| 25613 | |
| 25614 | else |
| 25615 | |
| 25616 | LDFLAGS="$CLEANLDFLAGS" |
| 25617 | CPPFLAGS="$CLEANCPPFLAGS" |
| 25618 | LIBS="$CLEANLIBS" |
| 25619 | |
| 25620 | fi |
| 25621 | |
| 25622 | fi |
| 25623 | fi |
| 25624 | |
| 25625 | if test "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED$MBEDTLS_ENABLED$AXTLS_ENABLED$CYASSL_ENABLED$WINSSL_ENABLED$DARWINSSL_ENABLED" = "x"; then |
| 25626 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5 |
| 25627 | $as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;} |
| 25628 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-axtls, --with-winssl, or --with-darwinssl to address this." >&5 |
| 25629 | $as_echo "$as_me: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-axtls, --with-winssl, or --with-darwinssl to address this." >&2;} |
| 25630 | else |
| 25631 | # SSL is enabled, genericly |
| 25632 | |
| 25633 | SSL_ENABLED="1" |
| 25634 | fi |
| 25635 | |
| 25636 | |
| 25637 | |
| 25638 | |
| 25639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5 |
| 25640 | $as_echo_n "checking default CA cert bundle/path... " >&6; } |
| 25641 | |
| 25642 | |
| 25643 | # Check whether --with-ca-bundle was given. |
| 25644 | if test "${with_ca_bundle+set}" = set; then : |
| 25645 | withval=$with_ca_bundle; |
| 25646 | want_ca="$withval" |
| 25647 | if test "x$want_ca" = "xyes"; then |
| 25648 | as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5 |
| 25649 | fi |
| 25650 | |
| 25651 | else |
| 25652 | want_ca="unset" |
| 25653 | fi |
| 25654 | |
| 25655 | |
| 25656 | # Check whether --with-ca-path was given. |
| 25657 | if test "${with_ca_path+set}" = set; then : |
| 25658 | withval=$with_ca_path; |
| 25659 | want_capath="$withval" |
| 25660 | if test "x$want_capath" = "xyes"; then |
| 25661 | as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5 |
| 25662 | fi |
| 25663 | |
| 25664 | else |
| 25665 | want_capath="unset" |
| 25666 | fi |
| 25667 | |
| 25668 | |
| 25669 | ca_warning=" (warning: certs not found)" |
| 25670 | capath_warning=" (warning: certs not found)" |
| 25671 | check_capath="" |
| 25672 | |
| 25673 | if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \ |
| 25674 | "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then |
| 25675 | ca="$want_ca" |
| 25676 | capath="$want_capath" |
| 25677 | elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then |
| 25678 | ca="$want_ca" |
| 25679 | capath="no" |
| 25680 | elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then |
| 25681 | if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1" -a "x$POLARSSL_ENABLED" != "x1"; then |
| 25682 | as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS or PolarSSL" "$LINENO" 5 |
| 25683 | fi |
| 25684 | capath="$want_capath" |
| 25685 | ca="no" |
| 25686 | else |
| 25687 | ca="no" |
| 25688 | capath="no" |
| 25689 | if test "x$cross_compiling" != "xyes"; then |
| 25690 | if test "x$want_ca" = "xunset"; then |
| 25691 | if test "x$prefix" != xNONE; then |
| 25692 | cac="${prefix}/share/curl/curl-ca-bundle.crt" |
| 25693 | else |
| 25694 | cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt" |
| 25695 | fi |
| 25696 | |
| 25697 | for a in /etc/ssl/certs/ca-certificates.crt \ |
| 25698 | /etc/pki/tls/certs/ca-bundle.crt \ |
| 25699 | /usr/share/ssl/certs/ca-bundle.crt \ |
| 25700 | /usr/local/share/certs/ca-root-nss.crt \ |
| 25701 | /etc/ssl/cert.pem \ |
| 25702 | "$cac"; do |
| 25703 | if test -f "$a"; then |
| 25704 | ca="$a" |
| 25705 | break |
| 25706 | fi |
| 25707 | done |
| 25708 | fi |
| 25709 | if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \ |
| 25710 | "x$OPENSSL_ENABLED" = "x1"; then |
| 25711 | check_capath="/etc/ssl/certs/" |
| 25712 | fi |
| 25713 | else |
| 25714 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5 |
| 25715 | $as_echo "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;} |
| 25716 | fi |
| 25717 | fi |
| 25718 | |
| 25719 | if test "x$ca" = "xno" || test -f "$ca"; then |
| 25720 | ca_warning="" |
| 25721 | fi |
| 25722 | |
| 25723 | if test "x$capath" != "xno"; then |
| 25724 | check_capath="$capath" |
| 25725 | fi |
| 25726 | |
| 25727 | if test ! -z "$check_capath"; then |
| 25728 | for a in "$check_capath"; do |
| 25729 | 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 |
| 25730 | if test "x$capath" = "xno"; then |
| 25731 | capath="$a" |
| 25732 | fi |
| 25733 | capath_warning="" |
| 25734 | break |
| 25735 | fi |
| 25736 | done |
| 25737 | fi |
| 25738 | |
| 25739 | if test "x$capath" = "xno"; then |
| 25740 | capath_warning="" |
| 25741 | fi |
| 25742 | |
| 25743 | if test "x$ca" != "xno"; then |
| 25744 | CURL_CA_BUNDLE='"'$ca'"' |
| 25745 | |
| 25746 | cat >>confdefs.h <<_ACEOF |
| 25747 | #define CURL_CA_BUNDLE "$ca" |
| 25748 | _ACEOF |
| 25749 | |
| 25750 | |
| 25751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5 |
| 25752 | $as_echo "$ca" >&6; } |
| 25753 | fi |
| 25754 | if test "x$capath" != "xno"; then |
| 25755 | CURL_CA_PATH="\"$capath\"" |
| 25756 | |
| 25757 | cat >>confdefs.h <<_ACEOF |
| 25758 | #define CURL_CA_PATH "$capath" |
| 25759 | _ACEOF |
| 25760 | |
| 25761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5 |
| 25762 | $as_echo "$capath (capath)" >&6; } |
| 25763 | fi |
| 25764 | if test "x$ca" = "xno" && test "x$capath" = "xno"; then |
| 25765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 25766 | $as_echo "no" >&6; } |
| 25767 | fi |
| 25768 | |
| 25769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5 |
| 25770 | $as_echo_n "checking whether to use builtin CA store of SSL library... " >&6; } |
| 25771 | |
| 25772 | # Check whether --with-ca-fallback was given. |
| 25773 | if test "${with_ca_fallback+set}" = set; then : |
| 25774 | withval=$with_ca_fallback; |
| 25775 | if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then |
| 25776 | as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5 |
| 25777 | fi |
| 25778 | |
| 25779 | else |
| 25780 | with_ca_fallback="no" |
| 25781 | fi |
| 25782 | |
| 25783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5 |
| 25784 | $as_echo "$with_ca_fallback" >&6; } |
| 25785 | if test "x$with_ca_fallback" = "xyes"; then |
| 25786 | if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then |
| 25787 | as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5 |
| 25788 | fi |
| 25789 | |
| 25790 | cat >>confdefs.h <<_ACEOF |
| 25791 | #define CURL_CA_FALLBACK 1 |
| 25792 | _ACEOF |
| 25793 | |
| 25794 | fi |
| 25795 | |
| 25796 | |
| 25797 | |
| 25798 | |
| 25799 | # Check whether --with-libpsl was given. |
| 25800 | if test "${with_libpsl+set}" = set; then : |
| 25801 | withval=$with_libpsl; with_libpsl=$withval |
| 25802 | else |
| 25803 | with_libpsl=yes |
| 25804 | fi |
| 25805 | |
| 25806 | if test $with_libpsl != "no"; then |
| 25807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing psl_builtin" >&5 |
| 25808 | $as_echo_n "checking for library containing psl_builtin... " >&6; } |
| 25809 | if ${ac_cv_search_psl_builtin+:} false; then : |
| 25810 | $as_echo_n "(cached) " >&6 |
| 25811 | else |
| 25812 | ac_func_search_save_LIBS=$LIBS |
| 25813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25814 | /* end confdefs.h. */ |
| 25815 | |
| 25816 | |
| 25817 | #ifdef __cplusplus |
| 25818 | extern "C" |
| 25819 | #endif |
| 25820 | char psl_builtin (); |
| 25821 | int main (void) |
| 25822 | { |
| 25823 | return psl_builtin (); |
| 25824 | ; |
| 25825 | return 0; |
| 25826 | } |
| 25827 | _ACEOF |
| 25828 | for ac_lib in '' psl; do |
| 25829 | if test -z "$ac_lib"; then |
| 25830 | ac_res="none required" |
| 25831 | else |
| 25832 | ac_res=-l$ac_lib |
| 25833 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 25834 | fi |
| 25835 | if ac_fn_c_try_link "$LINENO"; then : |
| 25836 | ac_cv_search_psl_builtin=$ac_res |
| 25837 | fi |
| 25838 | rm -f core conftest.err conftest.$ac_objext \ |
| 25839 | conftest$ac_exeext |
| 25840 | if ${ac_cv_search_psl_builtin+:} false; then : |
| 25841 | break |
| 25842 | fi |
| 25843 | done |
| 25844 | if ${ac_cv_search_psl_builtin+:} false; then : |
| 25845 | |
| 25846 | else |
| 25847 | ac_cv_search_psl_builtin=no |
| 25848 | fi |
| 25849 | rm conftest.$ac_ext |
| 25850 | LIBS=$ac_func_search_save_LIBS |
| 25851 | fi |
| 25852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psl_builtin" >&5 |
| 25853 | $as_echo "$ac_cv_search_psl_builtin" >&6; } |
| 25854 | ac_res=$ac_cv_search_psl_builtin |
| 25855 | if test "$ac_res" != no; then : |
| 25856 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 25857 | curl_psl_msg="yes"; |
| 25858 | |
| 25859 | $as_echo "#define USE_LIBPSL 1" >>confdefs.h |
| 25860 | |
| 25861 | |
| 25862 | else |
| 25863 | curl_psl_msg="no (libpsl not found)"; |
| 25864 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libpsl was not found" >&5 |
| 25865 | $as_echo "$as_me: WARNING: libpsl was not found" >&2;} |
| 25866 | |
| 25867 | |
| 25868 | fi |
| 25869 | |
| 25870 | fi |
| 25871 | if test "$curl_psl_msg" = "yes"; then |
| 25872 | USE_LIBPSL_TRUE= |
| 25873 | USE_LIBPSL_FALSE='#' |
| 25874 | else |
| 25875 | USE_LIBPSL_TRUE='#' |
| 25876 | USE_LIBPSL_FALSE= |
| 25877 | fi |
| 25878 | |
| 25879 | |
| 25880 | |
| 25881 | OPT_LIBMETALINK=no |
| 25882 | |
| 25883 | |
| 25884 | # Check whether --with-libmetalink was given. |
| 25885 | if test "${with_libmetalink+set}" = set; then : |
| 25886 | withval=$with_libmetalink; OPT_LIBMETALINK=$withval |
| 25887 | fi |
| 25888 | |
| 25889 | |
| 25890 | if test X"$OPT_LIBMETALINK" != Xno; then |
| 25891 | |
| 25892 | addld="" |
| 25893 | addlib="" |
| 25894 | addcflags="" |
| 25895 | version="" |
| 25896 | libmetalinklib="" |
| 25897 | |
| 25898 | PKGTEST="no" |
| 25899 | if test "x$OPT_LIBMETALINK" = "xyes"; then |
| 25900 | PKGTEST="yes" |
| 25901 | |
| 25902 | if test -n "$PKG_CONFIG"; then |
| 25903 | PKGCONFIG="$PKG_CONFIG" |
| 25904 | else |
| 25905 | if test -n "$ac_tool_prefix"; then |
| 25906 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 25907 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 25908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 25909 | $as_echo_n "checking for $ac_word... " >&6; } |
| 25910 | if ${ac_cv_path_PKGCONFIG+:} false; then : |
| 25911 | $as_echo_n "(cached) " >&6 |
| 25912 | else |
| 25913 | case $PKGCONFIG in |
| 25914 | [\\/]* | ?:[\\/]*) |
| 25915 | ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. |
| 25916 | ;; |
| 25917 | *) |
| 25918 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 25919 | as_dummy="$PATH:/usr/bin:/usr/local/bin" |
| 25920 | for as_dir in $as_dummy |
| 25921 | do |
| 25922 | IFS=$as_save_IFS |
| 25923 | test -z "$as_dir" && as_dir=. |
| 25924 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 25925 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 25926 | ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 25927 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 25928 | break 2 |
| 25929 | fi |
| 25930 | done |
| 25931 | done |
| 25932 | IFS=$as_save_IFS |
| 25933 | |
| 25934 | ;; |
| 25935 | esac |
| 25936 | fi |
| 25937 | PKGCONFIG=$ac_cv_path_PKGCONFIG |
| 25938 | if test -n "$PKGCONFIG"; then |
| 25939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 |
| 25940 | $as_echo "$PKGCONFIG" >&6; } |
| 25941 | else |
| 25942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 25943 | $as_echo "no" >&6; } |
| 25944 | fi |
| 25945 | |
| 25946 | |
| 25947 | fi |
| 25948 | if test -z "$ac_cv_path_PKGCONFIG"; then |
| 25949 | ac_pt_PKGCONFIG=$PKGCONFIG |
| 25950 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 25951 | set dummy pkg-config; ac_word=$2 |
| 25952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 25953 | $as_echo_n "checking for $ac_word... " >&6; } |
| 25954 | if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : |
| 25955 | $as_echo_n "(cached) " >&6 |
| 25956 | else |
| 25957 | case $ac_pt_PKGCONFIG in |
| 25958 | [\\/]* | ?:[\\/]*) |
| 25959 | ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. |
| 25960 | ;; |
| 25961 | *) |
| 25962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 25963 | as_dummy="$PATH:/usr/bin:/usr/local/bin" |
| 25964 | for as_dir in $as_dummy |
| 25965 | do |
| 25966 | IFS=$as_save_IFS |
| 25967 | test -z "$as_dir" && as_dir=. |
| 25968 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 25969 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 25970 | ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 25971 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 25972 | break 2 |
| 25973 | fi |
| 25974 | done |
| 25975 | done |
| 25976 | IFS=$as_save_IFS |
| 25977 | |
| 25978 | ;; |
| 25979 | esac |
| 25980 | fi |
| 25981 | ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG |
| 25982 | if test -n "$ac_pt_PKGCONFIG"; then |
| 25983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 |
| 25984 | $as_echo "$ac_pt_PKGCONFIG" >&6; } |
| 25985 | else |
| 25986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 25987 | $as_echo "no" >&6; } |
| 25988 | fi |
| 25989 | |
| 25990 | if test "x$ac_pt_PKGCONFIG" = x; then |
| 25991 | PKGCONFIG="no" |
| 25992 | else |
| 25993 | case $cross_compiling:$ac_tool_warned in |
| 25994 | yes:) |
| 25995 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 25996 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 25997 | ac_tool_warned=yes ;; |
| 25998 | esac |
| 25999 | PKGCONFIG=$ac_pt_PKGCONFIG |
| 26000 | fi |
| 26001 | else |
| 26002 | PKGCONFIG="$ac_cv_path_PKGCONFIG" |
| 26003 | fi |
| 26004 | |
| 26005 | fi |
| 26006 | |
| 26007 | if test "x$PKGCONFIG" != "xno"; then |
| 26008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5 |
| 26009 | $as_echo_n "checking for libmetalink options with pkg-config... " >&6; } |
| 26010 | itexists=` |
| 26011 | if test -n ""; then |
| 26012 | PKG_CONFIG_LIBDIR="" |
| 26013 | export PKG_CONFIG_LIBDIR |
| 26014 | fi |
| 26015 | $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1` |
| 26016 | |
| 26017 | if test -z "$itexists"; then |
| 26018 | PKGCONFIG="no" |
| 26019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 26020 | $as_echo "no" >&6; } |
| 26021 | else |
| 26022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 26023 | $as_echo "found" >&6; } |
| 26024 | fi |
| 26025 | fi |
| 26026 | |
| 26027 | else |
| 26028 | LIBMETALINK_PCDIR="$OPT_LIBMETALINK/lib/pkgconfig" |
| 26029 | { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&5 |
| 26030 | $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&6;} |
| 26031 | if test -f "$LIBMETALINK_PCDIR/libmetalink.pc"; then |
| 26032 | PKGTEST="yes" |
| 26033 | fi |
| 26034 | if test "$PKGTEST" = "yes"; then |
| 26035 | |
| 26036 | if test -n "$PKG_CONFIG"; then |
| 26037 | PKGCONFIG="$PKG_CONFIG" |
| 26038 | else |
| 26039 | if test -n "$ac_tool_prefix"; then |
| 26040 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 26041 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 26042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 26043 | $as_echo_n "checking for $ac_word... " >&6; } |
| 26044 | if ${ac_cv_path_PKGCONFIG+:} false; then : |
| 26045 | $as_echo_n "(cached) " >&6 |
| 26046 | else |
| 26047 | case $PKGCONFIG in |
| 26048 | [\\/]* | ?:[\\/]*) |
| 26049 | ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. |
| 26050 | ;; |
| 26051 | *) |
| 26052 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 26053 | as_dummy="$PATH:/usr/bin:/usr/local/bin" |
| 26054 | for as_dir in $as_dummy |
| 26055 | do |
| 26056 | IFS=$as_save_IFS |
| 26057 | test -z "$as_dir" && as_dir=. |
| 26058 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 26059 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 26060 | ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 26061 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 26062 | break 2 |
| 26063 | fi |
| 26064 | done |
| 26065 | done |
| 26066 | IFS=$as_save_IFS |
| 26067 | |
| 26068 | ;; |
| 26069 | esac |
| 26070 | fi |
| 26071 | PKGCONFIG=$ac_cv_path_PKGCONFIG |
| 26072 | if test -n "$PKGCONFIG"; then |
| 26073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 |
| 26074 | $as_echo "$PKGCONFIG" >&6; } |
| 26075 | else |
| 26076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 26077 | $as_echo "no" >&6; } |
| 26078 | fi |
| 26079 | |
| 26080 | |
| 26081 | fi |
| 26082 | if test -z "$ac_cv_path_PKGCONFIG"; then |
| 26083 | ac_pt_PKGCONFIG=$PKGCONFIG |
| 26084 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 26085 | set dummy pkg-config; ac_word=$2 |
| 26086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 26087 | $as_echo_n "checking for $ac_word... " >&6; } |
| 26088 | if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : |
| 26089 | $as_echo_n "(cached) " >&6 |
| 26090 | else |
| 26091 | case $ac_pt_PKGCONFIG in |
| 26092 | [\\/]* | ?:[\\/]*) |
| 26093 | ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. |
| 26094 | ;; |
| 26095 | *) |
| 26096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 26097 | as_dummy="$PATH:/usr/bin:/usr/local/bin" |
| 26098 | for as_dir in $as_dummy |
| 26099 | do |
| 26100 | IFS=$as_save_IFS |
| 26101 | test -z "$as_dir" && as_dir=. |
| 26102 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 26103 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 26104 | ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 26105 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 26106 | break 2 |
| 26107 | fi |
| 26108 | done |
| 26109 | done |
| 26110 | IFS=$as_save_IFS |
| 26111 | |
| 26112 | ;; |
| 26113 | esac |
| 26114 | fi |
| 26115 | ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG |
| 26116 | if test -n "$ac_pt_PKGCONFIG"; then |
| 26117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 |
| 26118 | $as_echo "$ac_pt_PKGCONFIG" >&6; } |
| 26119 | else |
| 26120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 26121 | $as_echo "no" >&6; } |
| 26122 | fi |
| 26123 | |
| 26124 | if test "x$ac_pt_PKGCONFIG" = x; then |
| 26125 | PKGCONFIG="no" |
| 26126 | else |
| 26127 | case $cross_compiling:$ac_tool_warned in |
| 26128 | yes:) |
| 26129 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 26130 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 26131 | ac_tool_warned=yes ;; |
| 26132 | esac |
| 26133 | PKGCONFIG=$ac_pt_PKGCONFIG |
| 26134 | fi |
| 26135 | else |
| 26136 | PKGCONFIG="$ac_cv_path_PKGCONFIG" |
| 26137 | fi |
| 26138 | |
| 26139 | fi |
| 26140 | |
| 26141 | if test "x$PKGCONFIG" != "xno"; then |
| 26142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5 |
| 26143 | $as_echo_n "checking for libmetalink options with pkg-config... " >&6; } |
| 26144 | itexists=` |
| 26145 | if test -n "$LIBMETALINK_PCDIR"; then |
| 26146 | PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR" |
| 26147 | export PKG_CONFIG_LIBDIR |
| 26148 | fi |
| 26149 | $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1` |
| 26150 | |
| 26151 | if test -z "$itexists"; then |
| 26152 | PKGCONFIG="no" |
| 26153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 26154 | $as_echo "no" >&6; } |
| 26155 | else |
| 26156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 26157 | $as_echo "found" >&6; } |
| 26158 | fi |
| 26159 | fi |
| 26160 | |
| 26161 | fi |
| 26162 | fi |
| 26163 | if test "$PKGTEST" = "yes" && test "$PKGCONFIG" != "no"; then |
| 26164 | addlib=` |
| 26165 | if test -n "$LIBMETALINK_PCDIR"; then |
| 26166 | PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR" |
| 26167 | export PKG_CONFIG_LIBDIR |
| 26168 | fi |
| 26169 | $PKGCONFIG --libs-only-l libmetalink` |
| 26170 | addld=` |
| 26171 | if test -n "$LIBMETALINK_PCDIR"; then |
| 26172 | PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR" |
| 26173 | export PKG_CONFIG_LIBDIR |
| 26174 | fi |
| 26175 | $PKGCONFIG --libs-only-L libmetalink` |
| 26176 | addcflags=` |
| 26177 | if test -n "$LIBMETALINK_PCDIR"; then |
| 26178 | PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR" |
| 26179 | export PKG_CONFIG_LIBDIR |
| 26180 | fi |
| 26181 | $PKGCONFIG --cflags-only-I libmetalink` |
| 26182 | version=` |
| 26183 | if test -n "$LIBMETALINK_PCDIR"; then |
| 26184 | PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR" |
| 26185 | export PKG_CONFIG_LIBDIR |
| 26186 | fi |
| 26187 | $PKGCONFIG --modversion libmetalink` |
| 26188 | libmetalinklib=`echo $addld | $SED -e 's/-L//'` |
| 26189 | fi |
| 26190 | if test -n "$addlib"; then |
| 26191 | |
| 26192 | clean_CPPFLAGS="$CPPFLAGS" |
| 26193 | clean_LDFLAGS="$LDFLAGS" |
| 26194 | clean_LIBS="$LIBS" |
| 26195 | CPPFLAGS="$clean_CPPFLAGS $addcflags" |
| 26196 | LDFLAGS="$clean_LDFLAGS $addld" |
| 26197 | LIBS="$addlib $clean_LIBS" |
| 26198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libmetalink is recent enough" >&5 |
| 26199 | $as_echo_n "checking if libmetalink is recent enough... " >&6; } |
| 26200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26201 | /* end confdefs.h. */ |
| 26202 | |
| 26203 | |
| 26204 | # include <metalink/metalink.h> |
| 26205 | |
| 26206 | int main (void) |
| 26207 | { |
| 26208 | |
| 26209 | if(0 != metalink_strerror(0)) /* added in 0.1.0 */ |
| 26210 | return 1; |
| 26211 | |
| 26212 | ; |
| 26213 | return 0; |
| 26214 | } |
| 26215 | |
| 26216 | _ACEOF |
| 26217 | if ac_fn_c_try_link "$LINENO"; then : |
| 26218 | |
| 26219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($version)" >&5 |
| 26220 | $as_echo "yes ($version)" >&6; } |
| 26221 | want_metalink="yes" |
| 26222 | |
| 26223 | else |
| 26224 | |
| 26225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($version)" >&5 |
| 26226 | $as_echo "no ($version)" >&6; } |
| 26227 | { $as_echo "$as_me:${as_lineno-$LINENO}: libmetalink library defective or too old" >&5 |
| 26228 | $as_echo "$as_me: libmetalink library defective or too old" >&6;} |
| 26229 | want_metalink="no" |
| 26230 | |
| 26231 | fi |
| 26232 | rm -f core conftest.err conftest.$ac_objext \ |
| 26233 | conftest$ac_exeext conftest.$ac_ext |
| 26234 | CPPFLAGS="$clean_CPPFLAGS" |
| 26235 | LDFLAGS="$clean_LDFLAGS" |
| 26236 | LIBS="$clean_LIBS" |
| 26237 | if test "$want_metalink" = "yes"; then |
| 26238 | |
| 26239 | $as_echo "#define USE_METALINK 1" >>confdefs.h |
| 26240 | |
| 26241 | LIBMETALINK_LIBS=$addlib |
| 26242 | LIBMETALINK_LDFLAGS=$addld |
| 26243 | LIBMETALINK_CPPFLAGS=$addcflags |
| 26244 | |
| 26245 | |
| 26246 | |
| 26247 | curl_mtlnk_msg="enabled" |
| 26248 | fi |
| 26249 | |
| 26250 | fi |
| 26251 | fi |
| 26252 | |
| 26253 | |
| 26254 | OPT_LIBSSH2=off |
| 26255 | |
| 26256 | # Check whether --with-libssh2 was given. |
| 26257 | if test "${with_libssh2+set}" = set; then : |
| 26258 | withval=$with_libssh2; OPT_LIBSSH2=$withval |
| 26259 | fi |
| 26260 | |
| 26261 | |
| 26262 | if test X"$OPT_LIBSSH2" != Xno; then |
| 26263 | CLEANLDFLAGS="$LDFLAGS" |
| 26264 | CLEANCPPFLAGS="$CPPFLAGS" |
| 26265 | CLEANLIBS="$LIBS" |
| 26266 | |
| 26267 | case "$OPT_LIBSSH2" in |
| 26268 | yes) |
| 26269 | |
| 26270 | if test -n "$PKG_CONFIG"; then |
| 26271 | PKGCONFIG="$PKG_CONFIG" |
| 26272 | else |
| 26273 | if test -n "$ac_tool_prefix"; then |
| 26274 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 26275 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 26276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 26277 | $as_echo_n "checking for $ac_word... " >&6; } |
| 26278 | if ${ac_cv_path_PKGCONFIG+:} false; then : |
| 26279 | $as_echo_n "(cached) " >&6 |
| 26280 | else |
| 26281 | case $PKGCONFIG in |
| 26282 | [\\/]* | ?:[\\/]*) |
| 26283 | ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. |
| 26284 | ;; |
| 26285 | *) |
| 26286 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 26287 | as_dummy="$PATH:/usr/bin:/usr/local/bin" |
| 26288 | for as_dir in $as_dummy |
| 26289 | do |
| 26290 | IFS=$as_save_IFS |
| 26291 | test -z "$as_dir" && as_dir=. |
| 26292 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 26293 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 26294 | ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 26295 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 26296 | break 2 |
| 26297 | fi |
| 26298 | done |
| 26299 | done |
| 26300 | IFS=$as_save_IFS |
| 26301 | |
| 26302 | ;; |
| 26303 | esac |
| 26304 | fi |
| 26305 | PKGCONFIG=$ac_cv_path_PKGCONFIG |
| 26306 | if test -n "$PKGCONFIG"; then |
| 26307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 |
| 26308 | $as_echo "$PKGCONFIG" >&6; } |
| 26309 | else |
| 26310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 26311 | $as_echo "no" >&6; } |
| 26312 | fi |
| 26313 | |
| 26314 | |
| 26315 | fi |
| 26316 | if test -z "$ac_cv_path_PKGCONFIG"; then |
| 26317 | ac_pt_PKGCONFIG=$PKGCONFIG |
| 26318 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 26319 | set dummy pkg-config; ac_word=$2 |
| 26320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 26321 | $as_echo_n "checking for $ac_word... " >&6; } |
| 26322 | if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : |
| 26323 | $as_echo_n "(cached) " >&6 |
| 26324 | else |
| 26325 | case $ac_pt_PKGCONFIG in |
| 26326 | [\\/]* | ?:[\\/]*) |
| 26327 | ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. |
| 26328 | ;; |
| 26329 | *) |
| 26330 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 26331 | as_dummy="$PATH:/usr/bin:/usr/local/bin" |
| 26332 | for as_dir in $as_dummy |
| 26333 | do |
| 26334 | IFS=$as_save_IFS |
| 26335 | test -z "$as_dir" && as_dir=. |
| 26336 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 26337 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 26338 | ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 26339 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 26340 | break 2 |
| 26341 | fi |
| 26342 | done |
| 26343 | done |
| 26344 | IFS=$as_save_IFS |
| 26345 | |
| 26346 | ;; |
| 26347 | esac |
| 26348 | fi |
| 26349 | ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG |
| 26350 | if test -n "$ac_pt_PKGCONFIG"; then |
| 26351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 |
| 26352 | $as_echo "$ac_pt_PKGCONFIG" >&6; } |
| 26353 | else |
| 26354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 26355 | $as_echo "no" >&6; } |
| 26356 | fi |
| 26357 | |
| 26358 | if test "x$ac_pt_PKGCONFIG" = x; then |
| 26359 | PKGCONFIG="no" |
| 26360 | else |
| 26361 | case $cross_compiling:$ac_tool_warned in |
| 26362 | yes:) |
| 26363 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 26364 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 26365 | ac_tool_warned=yes ;; |
| 26366 | esac |
| 26367 | PKGCONFIG=$ac_pt_PKGCONFIG |
| 26368 | fi |
| 26369 | else |
| 26370 | PKGCONFIG="$ac_cv_path_PKGCONFIG" |
| 26371 | fi |
| 26372 | |
| 26373 | fi |
| 26374 | |
| 26375 | if test "x$PKGCONFIG" != "xno"; then |
| 26376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5 |
| 26377 | $as_echo_n "checking for libssh2 options with pkg-config... " >&6; } |
| 26378 | itexists=` |
| 26379 | if test -n ""; then |
| 26380 | PKG_CONFIG_LIBDIR="" |
| 26381 | export PKG_CONFIG_LIBDIR |
| 26382 | fi |
| 26383 | $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1` |
| 26384 | |
| 26385 | if test -z "$itexists"; then |
| 26386 | PKGCONFIG="no" |
| 26387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 26388 | $as_echo "no" >&6; } |
| 26389 | else |
| 26390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 26391 | $as_echo "found" >&6; } |
| 26392 | fi |
| 26393 | fi |
| 26394 | |
| 26395 | |
| 26396 | if test "$PKGCONFIG" != "no" ; then |
| 26397 | LIB_SSH2=`$PKGCONFIG --libs-only-l libssh2` |
| 26398 | LD_SSH2=`$PKGCONFIG --libs-only-L libssh2` |
| 26399 | CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2` |
| 26400 | version=`$PKGCONFIG --modversion libssh2` |
| 26401 | DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/-L//'` |
| 26402 | fi |
| 26403 | |
| 26404 | ;; |
| 26405 | off) |
| 26406 | ;; |
| 26407 | *) |
| 26408 | PREFIX_SSH2=$OPT_LIBSSH2 |
| 26409 | ;; |
| 26410 | esac |
| 26411 | |
| 26412 | if test -n "$PREFIX_SSH2"; then |
| 26413 | LIB_SSH2="-lssh2" |
| 26414 | LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff |
| 26415 | CPP_SSH2=-I${PREFIX_SSH2}/include |
| 26416 | DIR_SSH2=${PREFIX_SSH2}/lib$libsuff |
| 26417 | fi |
| 26418 | |
| 26419 | LDFLAGS="$LDFLAGS $LD_SSH2" |
| 26420 | CPPFLAGS="$CPPFLAGS $CPP_SSH2" |
| 26421 | LIBS="$LIB_SSH2 $LIBS" |
| 26422 | |
| 26423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5 |
| 26424 | $as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; } |
| 26425 | if ${ac_cv_lib_ssh2_libssh2_channel_open_ex+:} false; then : |
| 26426 | $as_echo_n "(cached) " >&6 |
| 26427 | else |
| 26428 | ac_check_lib_save_LIBS=$LIBS |
| 26429 | LIBS="-lssh2 $LIBS" |
| 26430 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26431 | /* end confdefs.h. */ |
| 26432 | |
| 26433 | |
| 26434 | #ifdef __cplusplus |
| 26435 | extern "C" |
| 26436 | #endif |
| 26437 | char libssh2_channel_open_ex (); |
| 26438 | int main (void) |
| 26439 | { |
| 26440 | return libssh2_channel_open_ex (); |
| 26441 | ; |
| 26442 | return 0; |
| 26443 | } |
| 26444 | _ACEOF |
| 26445 | if ac_fn_c_try_link "$LINENO"; then : |
| 26446 | ac_cv_lib_ssh2_libssh2_channel_open_ex=yes |
| 26447 | else |
| 26448 | ac_cv_lib_ssh2_libssh2_channel_open_ex=no |
| 26449 | fi |
| 26450 | rm -f core conftest.err conftest.$ac_objext \ |
| 26451 | conftest$ac_exeext conftest.$ac_ext |
| 26452 | LIBS=$ac_check_lib_save_LIBS |
| 26453 | fi |
| 26454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5 |
| 26455 | $as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; } |
| 26456 | if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = xyes; then : |
| 26457 | cat >>confdefs.h <<_ACEOF |
| 26458 | #define HAVE_LIBSSH2 1 |
| 26459 | _ACEOF |
| 26460 | |
| 26461 | LIBS="-lssh2 $LIBS" |
| 26462 | |
| 26463 | fi |
| 26464 | |
| 26465 | |
| 26466 | for ac_header in libssh2.h |
| 26467 | do : |
| 26468 | ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default" |
| 26469 | if test "x$ac_cv_header_libssh2_h" = xyes; then : |
| 26470 | cat >>confdefs.h <<_ACEOF |
| 26471 | #define HAVE_LIBSSH2_H 1 |
| 26472 | _ACEOF |
| 26473 | curl_ssh_msg="enabled (libSSH2)" |
| 26474 | LIBSSH2_ENABLED=1 |
| 26475 | |
| 26476 | $as_echo "#define USE_LIBSSH2 1" >>confdefs.h |
| 26477 | |
| 26478 | USE_LIBSSH2=1 |
| 26479 | |
| 26480 | |
| 26481 | fi |
| 26482 | |
| 26483 | done |
| 26484 | |
| 26485 | |
| 26486 | if test X"$OPT_LIBSSH2" != Xoff && |
| 26487 | test "$LIBSSH2_ENABLED" != "1"; then |
| 26488 | as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5 |
| 26489 | fi |
| 26490 | |
| 26491 | if test "$LIBSSH2_ENABLED" = "1"; then |
| 26492 | if test -n "$DIR_SSH2"; then |
| 26493 | |
| 26494 | if test "x$cross_compiling" != "xyes"; then |
| 26495 | LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR_SSH2" |
| 26496 | export LD_LIBRARY_PATH |
| 26497 | { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&5 |
| 26498 | $as_echo "$as_me: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&6;} |
| 26499 | fi |
| 26500 | fi |
| 26501 | else |
| 26502 | LDFLAGS=$CLEANLDFLAGS |
| 26503 | CPPFLAGS=$CLEANCPPFLAGS |
| 26504 | LIBS=$CLEANLIBS |
| 26505 | fi |
| 26506 | fi |
| 26507 | |
| 26508 | |
| 26509 | OPT_LIBRTMP=off |
| 26510 | |
| 26511 | # Check whether --with-librtmp was given. |
| 26512 | if test "${with_librtmp+set}" = set; then : |
| 26513 | withval=$with_librtmp; OPT_LIBRTMP=$withval |
| 26514 | fi |
| 26515 | |
| 26516 | |
| 26517 | if test X"$OPT_LIBRTMP" != Xno; then |
| 26518 | CLEANLDFLAGS="$LDFLAGS" |
| 26519 | CLEANCPPFLAGS="$CPPFLAGS" |
| 26520 | CLEANLIBS="$LIBS" |
| 26521 | |
| 26522 | case "$OPT_LIBRTMP" in |
| 26523 | yes) |
| 26524 | |
| 26525 | if test -n "$PKG_CONFIG"; then |
| 26526 | PKGCONFIG="$PKG_CONFIG" |
| 26527 | else |
| 26528 | if test -n "$ac_tool_prefix"; then |
| 26529 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 26530 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 26531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 26532 | $as_echo_n "checking for $ac_word... " >&6; } |
| 26533 | if ${ac_cv_path_PKGCONFIG+:} false; then : |
| 26534 | $as_echo_n "(cached) " >&6 |
| 26535 | else |
| 26536 | case $PKGCONFIG in |
| 26537 | [\\/]* | ?:[\\/]*) |
| 26538 | ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. |
| 26539 | ;; |
| 26540 | *) |
| 26541 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 26542 | as_dummy="$PATH:/usr/bin:/usr/local/bin" |
| 26543 | for as_dir in $as_dummy |
| 26544 | do |
| 26545 | IFS=$as_save_IFS |
| 26546 | test -z "$as_dir" && as_dir=. |
| 26547 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 26548 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 26549 | ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 26550 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 26551 | break 2 |
| 26552 | fi |
| 26553 | done |
| 26554 | done |
| 26555 | IFS=$as_save_IFS |
| 26556 | |
| 26557 | ;; |
| 26558 | esac |
| 26559 | fi |
| 26560 | PKGCONFIG=$ac_cv_path_PKGCONFIG |
| 26561 | if test -n "$PKGCONFIG"; then |
| 26562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 |
| 26563 | $as_echo "$PKGCONFIG" >&6; } |
| 26564 | else |
| 26565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 26566 | $as_echo "no" >&6; } |
| 26567 | fi |
| 26568 | |
| 26569 | |
| 26570 | fi |
| 26571 | if test -z "$ac_cv_path_PKGCONFIG"; then |
| 26572 | ac_pt_PKGCONFIG=$PKGCONFIG |
| 26573 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 26574 | set dummy pkg-config; ac_word=$2 |
| 26575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 26576 | $as_echo_n "checking for $ac_word... " >&6; } |
| 26577 | if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : |
| 26578 | $as_echo_n "(cached) " >&6 |
| 26579 | else |
| 26580 | case $ac_pt_PKGCONFIG in |
| 26581 | [\\/]* | ?:[\\/]*) |
| 26582 | ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. |
| 26583 | ;; |
| 26584 | *) |
| 26585 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 26586 | as_dummy="$PATH:/usr/bin:/usr/local/bin" |
| 26587 | for as_dir in $as_dummy |
| 26588 | do |
| 26589 | IFS=$as_save_IFS |
| 26590 | test -z "$as_dir" && as_dir=. |
| 26591 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 26592 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 26593 | ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 26594 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 26595 | break 2 |
| 26596 | fi |
| 26597 | done |
| 26598 | done |
| 26599 | IFS=$as_save_IFS |
| 26600 | |
| 26601 | ;; |
| 26602 | esac |
| 26603 | fi |
| 26604 | ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG |
| 26605 | if test -n "$ac_pt_PKGCONFIG"; then |
| 26606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 |
| 26607 | $as_echo "$ac_pt_PKGCONFIG" >&6; } |
| 26608 | else |
| 26609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 26610 | $as_echo "no" >&6; } |
| 26611 | fi |
| 26612 | |
| 26613 | if test "x$ac_pt_PKGCONFIG" = x; then |
| 26614 | PKGCONFIG="no" |
| 26615 | else |
| 26616 | case $cross_compiling:$ac_tool_warned in |
| 26617 | yes:) |
| 26618 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 26619 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 26620 | ac_tool_warned=yes ;; |
| 26621 | esac |
| 26622 | PKGCONFIG=$ac_pt_PKGCONFIG |
| 26623 | fi |
| 26624 | else |
| 26625 | PKGCONFIG="$ac_cv_path_PKGCONFIG" |
| 26626 | fi |
| 26627 | |
| 26628 | fi |
| 26629 | |
| 26630 | if test "x$PKGCONFIG" != "xno"; then |
| 26631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5 |
| 26632 | $as_echo_n "checking for librtmp options with pkg-config... " >&6; } |
| 26633 | itexists=` |
| 26634 | if test -n ""; then |
| 26635 | PKG_CONFIG_LIBDIR="" |
| 26636 | export PKG_CONFIG_LIBDIR |
| 26637 | fi |
| 26638 | $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1` |
| 26639 | |
| 26640 | if test -z "$itexists"; then |
| 26641 | PKGCONFIG="no" |
| 26642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 26643 | $as_echo "no" >&6; } |
| 26644 | else |
| 26645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 26646 | $as_echo "found" >&6; } |
| 26647 | fi |
| 26648 | fi |
| 26649 | |
| 26650 | |
| 26651 | if test "$PKGCONFIG" != "no" ; then |
| 26652 | LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp` |
| 26653 | LD_RTMP=`$PKGCONFIG --libs-only-L librtmp` |
| 26654 | CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp` |
| 26655 | version=`$PKGCONFIG --modversion librtmp` |
| 26656 | DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'` |
| 26657 | else |
| 26658 | as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5 |
| 26659 | fi |
| 26660 | |
| 26661 | ;; |
| 26662 | off) |
| 26663 | LIB_RTMP="-lrtmp" |
| 26664 | ;; |
| 26665 | *) |
| 26666 | LIB_RTMP="-lrtmp" |
| 26667 | PREFIX_RTMP=$OPT_LIBRTMP |
| 26668 | ;; |
| 26669 | esac |
| 26670 | |
| 26671 | if test -n "$PREFIX_RTMP"; then |
| 26672 | LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff |
| 26673 | CPP_RTMP=-I${PREFIX_RTMP}/include |
| 26674 | DIR_RTMP=${PREFIX_RTMP}/lib$libsuff |
| 26675 | fi |
| 26676 | |
| 26677 | LDFLAGS="$LDFLAGS $LD_RTMP" |
| 26678 | CPPFLAGS="$CPPFLAGS $CPP_RTMP" |
| 26679 | LIBS="$LIB_RTMP $LIBS" |
| 26680 | |
| 26681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5 |
| 26682 | $as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; } |
| 26683 | if ${ac_cv_lib_rtmp_RTMP_Init+:} false; then : |
| 26684 | $as_echo_n "(cached) " >&6 |
| 26685 | else |
| 26686 | ac_check_lib_save_LIBS=$LIBS |
| 26687 | LIBS="-lrtmp $LIBS" |
| 26688 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26689 | /* end confdefs.h. */ |
| 26690 | |
| 26691 | |
| 26692 | #ifdef __cplusplus |
| 26693 | extern "C" |
| 26694 | #endif |
| 26695 | char RTMP_Init (); |
| 26696 | int main (void) |
| 26697 | { |
| 26698 | return RTMP_Init (); |
| 26699 | ; |
| 26700 | return 0; |
| 26701 | } |
| 26702 | _ACEOF |
| 26703 | if ac_fn_c_try_link "$LINENO"; then : |
| 26704 | ac_cv_lib_rtmp_RTMP_Init=yes |
| 26705 | else |
| 26706 | ac_cv_lib_rtmp_RTMP_Init=no |
| 26707 | fi |
| 26708 | rm -f core conftest.err conftest.$ac_objext \ |
| 26709 | conftest$ac_exeext conftest.$ac_ext |
| 26710 | LIBS=$ac_check_lib_save_LIBS |
| 26711 | fi |
| 26712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5 |
| 26713 | $as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; } |
| 26714 | if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes; then : |
| 26715 | |
| 26716 | for ac_header in librtmp/rtmp.h |
| 26717 | do : |
| 26718 | ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default" |
| 26719 | if test "x$ac_cv_header_librtmp_rtmp_h" = xyes; then : |
| 26720 | cat >>confdefs.h <<_ACEOF |
| 26721 | #define HAVE_LIBRTMP_RTMP_H 1 |
| 26722 | _ACEOF |
| 26723 | curl_rtmp_msg="enabled (librtmp)" |
| 26724 | LIBRTMP_ENABLED=1 |
| 26725 | |
| 26726 | $as_echo "#define USE_LIBRTMP 1" >>confdefs.h |
| 26727 | |
| 26728 | USE_LIBRTMP=1 |
| 26729 | |
| 26730 | |
| 26731 | fi |
| 26732 | |
| 26733 | done |
| 26734 | |
| 26735 | |
| 26736 | else |
| 26737 | LDFLAGS=$CLEANLDFLAGS |
| 26738 | CPPFLAGS=$CLEANCPPFLAGS |
| 26739 | LIBS=$CLEANLIBS |
| 26740 | |
| 26741 | fi |
| 26742 | |
| 26743 | |
| 26744 | if test X"$OPT_LIBRTMP" != Xoff && |
| 26745 | test "$LIBRTMP_ENABLED" != "1"; then |
| 26746 | as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5 |
| 26747 | fi |
| 26748 | |
| 26749 | fi |
| 26750 | |
| 26751 | |
| 26752 | versioned_symbols_flavour= |
| 26753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5 |
| 26754 | $as_echo_n "checking whether versioned symbols are wanted... " >&6; } |
| 26755 | # Check whether --enable-versioned-symbols was given. |
| 26756 | if test "${enable_versioned_symbols+set}" = set; then : |
| 26757 | enableval=$enable_versioned_symbols; case "$enableval" in |
| 26758 | yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 26759 | $as_echo "yes" >&6; } |
| 26760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5 |
| 26761 | $as_echo_n "checking if libraries can be versioned... " >&6; } |
| 26762 | GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script` |
| 26763 | if test -z "$GLD"; then |
| 26764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 26765 | $as_echo "no" >&6; } |
| 26766 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5 |
| 26767 | $as_echo "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;} |
| 26768 | else |
| 26769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 26770 | $as_echo "yes" >&6; } |
| 26771 | if test "x$OPENSSL_ENABLED" = "x1"; then |
| 26772 | versioned_symbols_flavour="OPENSSL_" |
| 26773 | elif test "x$GNUTLS_ENABLED" = "x1"; then |
| 26774 | versioned_symbols_flavour="GNUTLS_" |
| 26775 | elif test "x$NSS_ENABLED" = "x1"; then |
| 26776 | versioned_symbols_flavour="NSS_" |
| 26777 | elif test "x$POLARSSL_ENABLED" = "x1"; then |
| 26778 | versioned_symbols_flavour="POLARSSL_" |
| 26779 | elif test "x$CYASSL_ENABLED" = "x1"; then |
| 26780 | versioned_symbols_flavour="CYASSL_" |
| 26781 | elif test "x$AXTLS_ENABLED" = "x1"; then |
| 26782 | versioned_symbols_flavour="AXTLS_" |
| 26783 | elif test "x$WINSSL_ENABLED" = "x1"; then |
| 26784 | versioned_symbols_flavour="WINSSL_" |
| 26785 | elif test "x$DARWINSSL_ENABLED" = "x1"; then |
| 26786 | versioned_symbols_flavour="DARWINSSL_" |
| 26787 | else |
| 26788 | versioned_symbols_flavour="" |
| 26789 | fi |
| 26790 | versioned_symbols="yes" |
| 26791 | fi |
| 26792 | ;; |
| 26793 | |
| 26794 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 26795 | $as_echo "no" >&6; } |
| 26796 | ;; |
| 26797 | esac |
| 26798 | |
| 26799 | else |
| 26800 | |
| 26801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 26802 | $as_echo "no" >&6; } |
| 26803 | |
| 26804 | |
| 26805 | fi |
| 26806 | |
| 26807 | |
| 26808 | CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour" |
| 26809 | |
| 26810 | if test "x$versioned_symbols" = 'xyes'; then |
| 26811 | CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE= |
| 26812 | CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#' |
| 26813 | else |
| 26814 | CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#' |
| 26815 | CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE= |
| 26816 | fi |
| 26817 | |
| 26818 | |
| 26819 | |
| 26820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5 |
| 26821 | $as_echo_n "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; } |
| 26822 | OPT_WINIDN="default" |
| 26823 | |
| 26824 | # Check whether --with-winidn was given. |
| 26825 | if test "${with_winidn+set}" = set; then : |
| 26826 | withval=$with_winidn; OPT_WINIDN=$withval |
| 26827 | fi |
| 26828 | |
| 26829 | case "$OPT_WINIDN" in |
| 26830 | no|default) |
| 26831 | want_winidn="no" |
| 26832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 26833 | $as_echo "no" >&6; } |
| 26834 | ;; |
| 26835 | yes) |
| 26836 | want_winidn="yes" |
| 26837 | want_winidn_path="default" |
| 26838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 26839 | $as_echo "yes" >&6; } |
| 26840 | ;; |
| 26841 | *) |
| 26842 | want_winidn="yes" |
| 26843 | want_winidn_path="$withval" |
| 26844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5 |
| 26845 | $as_echo "yes ($withval)" >&6; } |
| 26846 | ;; |
| 26847 | esac |
| 26848 | |
| 26849 | if test "$want_winidn" = "yes"; then |
| 26850 | clean_CPPFLAGS="$CPPFLAGS" |
| 26851 | clean_LDFLAGS="$LDFLAGS" |
| 26852 | clean_LIBS="$LIBS" |
| 26853 | WINIDN_LIBS="-lnormaliz" |
| 26854 | # |
| 26855 | if test "$want_winidn_path" != "default"; then |
| 26856 | WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff" |
| 26857 | WINIDN_CPPFLAGS="-I$want_winidn_path/include" |
| 26858 | WINIDN_DIR="$want_winidn_path/lib$libsuff" |
| 26859 | fi |
| 26860 | # |
| 26861 | CPPFLAGS="$CPPFLAGS $WINIDN_CPPFLAGS" |
| 26862 | LDFLAGS="$LDFLAGS $WINIDN_LDFLAGS" |
| 26863 | LIBS="$WINIDN_LIBS $LIBS" |
| 26864 | # |
| 26865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5 |
| 26866 | $as_echo_n "checking if IdnToUnicode can be linked... " >&6; } |
| 26867 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26868 | /* end confdefs.h. */ |
| 26869 | |
| 26870 | |
| 26871 | #define IdnToUnicode innocuous_IdnToUnicode |
| 26872 | #ifdef __STDC__ |
| 26873 | # include <limits.h> |
| 26874 | #else |
| 26875 | # include <assert.h> |
| 26876 | #endif |
| 26877 | #undef IdnToUnicode |
| 26878 | #ifdef __cplusplus |
| 26879 | extern "C" |
| 26880 | #endif |
| 26881 | char IdnToUnicode (); |
| 26882 | #if defined __stub_IdnToUnicode || defined __stub___IdnToUnicode |
| 26883 | choke me |
| 26884 | #endif |
| 26885 | |
| 26886 | int main (void) |
| 26887 | { |
| 26888 | return IdnToUnicode (); |
| 26889 | ; |
| 26890 | return 0; |
| 26891 | } |
| 26892 | |
| 26893 | _ACEOF |
| 26894 | if ac_fn_c_try_link "$LINENO"; then : |
| 26895 | |
| 26896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 26897 | $as_echo "yes" >&6; } |
| 26898 | tst_links_winidn="yes" |
| 26899 | |
| 26900 | else |
| 26901 | |
| 26902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 26903 | $as_echo "no" >&6; } |
| 26904 | tst_links_winidn="no" |
| 26905 | |
| 26906 | fi |
| 26907 | rm -f core conftest.err conftest.$ac_objext \ |
| 26908 | conftest$ac_exeext conftest.$ac_ext |
| 26909 | # |
| 26910 | if test "$tst_links_winidn" = "yes"; then |
| 26911 | |
| 26912 | $as_echo "#define USE_WIN32_IDN 1" >>confdefs.h |
| 26913 | |
| 26914 | |
| 26915 | $as_echo "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h |
| 26916 | |
| 26917 | IDN_ENABLED=1 |
| 26918 | |
| 26919 | curl_idn_msg="enabled (Windows-native)" |
| 26920 | else |
| 26921 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5 |
| 26922 | $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;} |
| 26923 | CPPFLAGS="$clean_CPPFLAGS" |
| 26924 | LDFLAGS="$clean_LDFLAGS" |
| 26925 | LIBS="$clean_LIBS" |
| 26926 | fi |
| 26927 | fi |
| 26928 | |
| 26929 | |
| 26930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn2" >&5 |
| 26931 | $as_echo_n "checking whether to build with libidn2... " >&6; } |
| 26932 | OPT_IDN="default" |
| 26933 | |
| 26934 | # Check whether --with-libidn2 was given. |
| 26935 | if test "${with_libidn2+set}" = set; then : |
| 26936 | withval=$with_libidn2; OPT_IDN=$withval |
| 26937 | fi |
| 26938 | |
| 26939 | case "$OPT_IDN" in |
| 26940 | no) |
| 26941 | want_idn="no" |
| 26942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 26943 | $as_echo "no" >&6; } |
| 26944 | ;; |
| 26945 | default) |
| 26946 | want_idn="yes" |
| 26947 | want_idn_path="default" |
| 26948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5 |
| 26949 | $as_echo "(assumed) yes" >&6; } |
| 26950 | ;; |
| 26951 | yes) |
| 26952 | want_idn="yes" |
| 26953 | want_idn_path="default" |
| 26954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 26955 | $as_echo "yes" >&6; } |
| 26956 | ;; |
| 26957 | *) |
| 26958 | want_idn="yes" |
| 26959 | want_idn_path="$withval" |
| 26960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5 |
| 26961 | $as_echo "yes ($withval)" >&6; } |
| 26962 | ;; |
| 26963 | esac |
| 26964 | |
| 26965 | if test "$want_idn" = "yes"; then |
| 26966 | clean_CPPFLAGS="$CPPFLAGS" |
| 26967 | clean_LDFLAGS="$LDFLAGS" |
| 26968 | clean_LIBS="$LIBS" |
| 26969 | PKGCONFIG="no" |
| 26970 | # |
| 26971 | if test "$want_idn_path" != "default"; then |
| 26972 | IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig" |
| 26973 | |
| 26974 | if test -n "$PKG_CONFIG"; then |
| 26975 | PKGCONFIG="$PKG_CONFIG" |
| 26976 | else |
| 26977 | if test -n "$ac_tool_prefix"; then |
| 26978 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 26979 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 26980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 26981 | $as_echo_n "checking for $ac_word... " >&6; } |
| 26982 | if ${ac_cv_path_PKGCONFIG+:} false; then : |
| 26983 | $as_echo_n "(cached) " >&6 |
| 26984 | else |
| 26985 | case $PKGCONFIG in |
| 26986 | [\\/]* | ?:[\\/]*) |
| 26987 | ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. |
| 26988 | ;; |
| 26989 | *) |
| 26990 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 26991 | as_dummy="$PATH:/usr/bin:/usr/local/bin" |
| 26992 | for as_dir in $as_dummy |
| 26993 | do |
| 26994 | IFS=$as_save_IFS |
| 26995 | test -z "$as_dir" && as_dir=. |
| 26996 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 26997 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 26998 | ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 26999 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 27000 | break 2 |
| 27001 | fi |
| 27002 | done |
| 27003 | done |
| 27004 | IFS=$as_save_IFS |
| 27005 | |
| 27006 | ;; |
| 27007 | esac |
| 27008 | fi |
| 27009 | PKGCONFIG=$ac_cv_path_PKGCONFIG |
| 27010 | if test -n "$PKGCONFIG"; then |
| 27011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 |
| 27012 | $as_echo "$PKGCONFIG" >&6; } |
| 27013 | else |
| 27014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 27015 | $as_echo "no" >&6; } |
| 27016 | fi |
| 27017 | |
| 27018 | |
| 27019 | fi |
| 27020 | if test -z "$ac_cv_path_PKGCONFIG"; then |
| 27021 | ac_pt_PKGCONFIG=$PKGCONFIG |
| 27022 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 27023 | set dummy pkg-config; ac_word=$2 |
| 27024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 27025 | $as_echo_n "checking for $ac_word... " >&6; } |
| 27026 | if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : |
| 27027 | $as_echo_n "(cached) " >&6 |
| 27028 | else |
| 27029 | case $ac_pt_PKGCONFIG in |
| 27030 | [\\/]* | ?:[\\/]*) |
| 27031 | ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. |
| 27032 | ;; |
| 27033 | *) |
| 27034 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 27035 | as_dummy="$PATH:/usr/bin:/usr/local/bin" |
| 27036 | for as_dir in $as_dummy |
| 27037 | do |
| 27038 | IFS=$as_save_IFS |
| 27039 | test -z "$as_dir" && as_dir=. |
| 27040 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 27041 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 27042 | ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 27043 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 27044 | break 2 |
| 27045 | fi |
| 27046 | done |
| 27047 | done |
| 27048 | IFS=$as_save_IFS |
| 27049 | |
| 27050 | ;; |
| 27051 | esac |
| 27052 | fi |
| 27053 | ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG |
| 27054 | if test -n "$ac_pt_PKGCONFIG"; then |
| 27055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 |
| 27056 | $as_echo "$ac_pt_PKGCONFIG" >&6; } |
| 27057 | else |
| 27058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 27059 | $as_echo "no" >&6; } |
| 27060 | fi |
| 27061 | |
| 27062 | if test "x$ac_pt_PKGCONFIG" = x; then |
| 27063 | PKGCONFIG="no" |
| 27064 | else |
| 27065 | case $cross_compiling:$ac_tool_warned in |
| 27066 | yes:) |
| 27067 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 27068 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 27069 | ac_tool_warned=yes ;; |
| 27070 | esac |
| 27071 | PKGCONFIG=$ac_pt_PKGCONFIG |
| 27072 | fi |
| 27073 | else |
| 27074 | PKGCONFIG="$ac_cv_path_PKGCONFIG" |
| 27075 | fi |
| 27076 | |
| 27077 | fi |
| 27078 | |
| 27079 | if test "x$PKGCONFIG" != "xno"; then |
| 27080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5 |
| 27081 | $as_echo_n "checking for libidn2 options with pkg-config... " >&6; } |
| 27082 | itexists=` |
| 27083 | if test -n "$IDN_PCDIR"; then |
| 27084 | PKG_CONFIG_LIBDIR="$IDN_PCDIR" |
| 27085 | export PKG_CONFIG_LIBDIR |
| 27086 | fi |
| 27087 | $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1` |
| 27088 | |
| 27089 | if test -z "$itexists"; then |
| 27090 | PKGCONFIG="no" |
| 27091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 27092 | $as_echo "no" >&6; } |
| 27093 | else |
| 27094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 27095 | $as_echo "found" >&6; } |
| 27096 | fi |
| 27097 | fi |
| 27098 | |
| 27099 | if test "$PKGCONFIG" != "no"; then |
| 27100 | IDN_LIBS=` |
| 27101 | if test -n "$IDN_PCDIR"; then |
| 27102 | PKG_CONFIG_LIBDIR="$IDN_PCDIR" |
| 27103 | export PKG_CONFIG_LIBDIR |
| 27104 | fi |
| 27105 | $PKGCONFIG --libs-only-l libidn2 2>/dev/null` |
| 27106 | IDN_LDFLAGS=` |
| 27107 | if test -n "$IDN_PCDIR"; then |
| 27108 | PKG_CONFIG_LIBDIR="$IDN_PCDIR" |
| 27109 | export PKG_CONFIG_LIBDIR |
| 27110 | fi |
| 27111 | $PKGCONFIG --libs-only-L libidn2 2>/dev/null` |
| 27112 | IDN_CPPFLAGS=` |
| 27113 | if test -n "$IDN_PCDIR"; then |
| 27114 | PKG_CONFIG_LIBDIR="$IDN_PCDIR" |
| 27115 | export PKG_CONFIG_LIBDIR |
| 27116 | fi |
| 27117 | $PKGCONFIG --cflags-only-I libidn2 2>/dev/null` |
| 27118 | IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'` |
| 27119 | else |
| 27120 | IDN_LIBS="-lidn2" |
| 27121 | IDN_LDFLAGS="-L$want_idn_path/lib$libsuff" |
| 27122 | IDN_CPPFLAGS="-I$want_idn_path/include" |
| 27123 | IDN_DIR="$want_idn_path/lib$libsuff" |
| 27124 | fi |
| 27125 | else |
| 27126 | |
| 27127 | if test -n "$PKG_CONFIG"; then |
| 27128 | PKGCONFIG="$PKG_CONFIG" |
| 27129 | else |
| 27130 | if test -n "$ac_tool_prefix"; then |
| 27131 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 27132 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 27133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 27134 | $as_echo_n "checking for $ac_word... " >&6; } |
| 27135 | if ${ac_cv_path_PKGCONFIG+:} false; then : |
| 27136 | $as_echo_n "(cached) " >&6 |
| 27137 | else |
| 27138 | case $PKGCONFIG in |
| 27139 | [\\/]* | ?:[\\/]*) |
| 27140 | ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. |
| 27141 | ;; |
| 27142 | *) |
| 27143 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 27144 | as_dummy="$PATH:/usr/bin:/usr/local/bin" |
| 27145 | for as_dir in $as_dummy |
| 27146 | do |
| 27147 | IFS=$as_save_IFS |
| 27148 | test -z "$as_dir" && as_dir=. |
| 27149 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 27150 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 27151 | ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 27152 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 27153 | break 2 |
| 27154 | fi |
| 27155 | done |
| 27156 | done |
| 27157 | IFS=$as_save_IFS |
| 27158 | |
| 27159 | ;; |
| 27160 | esac |
| 27161 | fi |
| 27162 | PKGCONFIG=$ac_cv_path_PKGCONFIG |
| 27163 | if test -n "$PKGCONFIG"; then |
| 27164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 |
| 27165 | $as_echo "$PKGCONFIG" >&6; } |
| 27166 | else |
| 27167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 27168 | $as_echo "no" >&6; } |
| 27169 | fi |
| 27170 | |
| 27171 | |
| 27172 | fi |
| 27173 | if test -z "$ac_cv_path_PKGCONFIG"; then |
| 27174 | ac_pt_PKGCONFIG=$PKGCONFIG |
| 27175 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 27176 | set dummy pkg-config; ac_word=$2 |
| 27177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 27178 | $as_echo_n "checking for $ac_word... " >&6; } |
| 27179 | if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : |
| 27180 | $as_echo_n "(cached) " >&6 |
| 27181 | else |
| 27182 | case $ac_pt_PKGCONFIG in |
| 27183 | [\\/]* | ?:[\\/]*) |
| 27184 | ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. |
| 27185 | ;; |
| 27186 | *) |
| 27187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 27188 | as_dummy="$PATH:/usr/bin:/usr/local/bin" |
| 27189 | for as_dir in $as_dummy |
| 27190 | do |
| 27191 | IFS=$as_save_IFS |
| 27192 | test -z "$as_dir" && as_dir=. |
| 27193 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 27194 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 27195 | ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 27196 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 27197 | break 2 |
| 27198 | fi |
| 27199 | done |
| 27200 | done |
| 27201 | IFS=$as_save_IFS |
| 27202 | |
| 27203 | ;; |
| 27204 | esac |
| 27205 | fi |
| 27206 | ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG |
| 27207 | if test -n "$ac_pt_PKGCONFIG"; then |
| 27208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 |
| 27209 | $as_echo "$ac_pt_PKGCONFIG" >&6; } |
| 27210 | else |
| 27211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 27212 | $as_echo "no" >&6; } |
| 27213 | fi |
| 27214 | |
| 27215 | if test "x$ac_pt_PKGCONFIG" = x; then |
| 27216 | PKGCONFIG="no" |
| 27217 | else |
| 27218 | case $cross_compiling:$ac_tool_warned in |
| 27219 | yes:) |
| 27220 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 27221 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 27222 | ac_tool_warned=yes ;; |
| 27223 | esac |
| 27224 | PKGCONFIG=$ac_pt_PKGCONFIG |
| 27225 | fi |
| 27226 | else |
| 27227 | PKGCONFIG="$ac_cv_path_PKGCONFIG" |
| 27228 | fi |
| 27229 | |
| 27230 | fi |
| 27231 | |
| 27232 | if test "x$PKGCONFIG" != "xno"; then |
| 27233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5 |
| 27234 | $as_echo_n "checking for libidn2 options with pkg-config... " >&6; } |
| 27235 | itexists=` |
| 27236 | if test -n ""; then |
| 27237 | PKG_CONFIG_LIBDIR="" |
| 27238 | export PKG_CONFIG_LIBDIR |
| 27239 | fi |
| 27240 | $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1` |
| 27241 | |
| 27242 | if test -z "$itexists"; then |
| 27243 | PKGCONFIG="no" |
| 27244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 27245 | $as_echo "no" >&6; } |
| 27246 | else |
| 27247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 27248 | $as_echo "found" >&6; } |
| 27249 | fi |
| 27250 | fi |
| 27251 | |
| 27252 | if test "$PKGCONFIG" != "no"; then |
| 27253 | IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null` |
| 27254 | IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null` |
| 27255 | IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null` |
| 27256 | IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'` |
| 27257 | else |
| 27258 | IDN_LIBS="-lidn2" |
| 27259 | fi |
| 27260 | fi |
| 27261 | # |
| 27262 | if test "$PKGCONFIG" != "no"; then |
| 27263 | { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5 |
| 27264 | $as_echo "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;} |
| 27265 | { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5 |
| 27266 | $as_echo "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;} |
| 27267 | { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5 |
| 27268 | $as_echo "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;} |
| 27269 | { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5 |
| 27270 | $as_echo "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;} |
| 27271 | else |
| 27272 | { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5 |
| 27273 | $as_echo "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;} |
| 27274 | { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5 |
| 27275 | $as_echo "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;} |
| 27276 | { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5 |
| 27277 | $as_echo "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;} |
| 27278 | { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5 |
| 27279 | $as_echo "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;} |
| 27280 | fi |
| 27281 | # |
| 27282 | CPPFLAGS="$CPPFLAGS $IDN_CPPFLAGS" |
| 27283 | LDFLAGS="$LDFLAGS $IDN_LDFLAGS" |
| 27284 | LIBS="$IDN_LIBS $LIBS" |
| 27285 | # |
| 27286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idn2_lookup_ul can be linked" >&5 |
| 27287 | $as_echo_n "checking if idn2_lookup_ul can be linked... " >&6; } |
| 27288 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 27289 | /* end confdefs.h. */ |
| 27290 | |
| 27291 | |
| 27292 | #define idn2_lookup_ul innocuous_idn2_lookup_ul |
| 27293 | #ifdef __STDC__ |
| 27294 | # include <limits.h> |
| 27295 | #else |
| 27296 | # include <assert.h> |
| 27297 | #endif |
| 27298 | #undef idn2_lookup_ul |
| 27299 | #ifdef __cplusplus |
| 27300 | extern "C" |
| 27301 | #endif |
| 27302 | char idn2_lookup_ul (); |
| 27303 | #if defined __stub_idn2_lookup_ul || defined __stub___idn2_lookup_ul |
| 27304 | choke me |
| 27305 | #endif |
| 27306 | |
| 27307 | int main (void) |
| 27308 | { |
| 27309 | return idn2_lookup_ul (); |
| 27310 | ; |
| 27311 | return 0; |
| 27312 | } |
| 27313 | |
| 27314 | _ACEOF |
| 27315 | if ac_fn_c_try_link "$LINENO"; then : |
| 27316 | |
| 27317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 27318 | $as_echo "yes" >&6; } |
| 27319 | tst_links_libidn="yes" |
| 27320 | |
| 27321 | else |
| 27322 | |
| 27323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 27324 | $as_echo "no" >&6; } |
| 27325 | tst_links_libidn="no" |
| 27326 | |
| 27327 | fi |
| 27328 | rm -f core conftest.err conftest.$ac_objext \ |
| 27329 | conftest$ac_exeext conftest.$ac_ext |
| 27330 | # |
| 27331 | for ac_header in idn2.h |
| 27332 | do : |
| 27333 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 27334 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 27335 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 27336 | cat >>confdefs.h <<_ACEOF |
| 27337 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 27338 | _ACEOF |
| 27339 | |
| 27340 | fi |
| 27341 | |
| 27342 | done |
| 27343 | |
| 27344 | |
| 27345 | if test "$tst_links_libidn" = "yes"; then |
| 27346 | |
| 27347 | $as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h |
| 27348 | |
| 27349 | |
| 27350 | IDN_ENABLED=1 |
| 27351 | |
| 27352 | curl_idn_msg="enabled (libidn2)" |
| 27353 | if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then |
| 27354 | LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$IDN_DIR" |
| 27355 | export LD_LIBRARY_PATH |
| 27356 | { $as_echo "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to LD_LIBRARY_PATH" >&5 |
| 27357 | $as_echo "$as_me: Added $IDN_DIR to LD_LIBRARY_PATH" >&6;} |
| 27358 | fi |
| 27359 | else |
| 27360 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5 |
| 27361 | $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;} |
| 27362 | CPPFLAGS="$clean_CPPFLAGS" |
| 27363 | LDFLAGS="$clean_LDFLAGS" |
| 27364 | LIBS="$clean_LIBS" |
| 27365 | fi |
| 27366 | fi |
| 27367 | |
| 27368 | |
| 27369 | |
| 27370 | |
| 27371 | |
| 27372 | OPT_H2="yes" |
| 27373 | |
| 27374 | # Check whether --with-nghttp2 was given. |
| 27375 | if test "${with_nghttp2+set}" = set; then : |
| 27376 | withval=$with_nghttp2; OPT_H2=$withval |
| 27377 | fi |
| 27378 | |
| 27379 | case "$OPT_H2" in |
| 27380 | no) |
| 27381 | want_h2="no" |
| 27382 | ;; |
| 27383 | yes) |
| 27384 | want_h2="default" |
| 27385 | want_h2_path="" |
| 27386 | ;; |
| 27387 | *) |
| 27388 | want_h2="yes" |
| 27389 | want_h2_path="$withval/lib/pkgconfig" |
| 27390 | ;; |
| 27391 | esac |
| 27392 | |
| 27393 | curl_h2_msg="disabled (--with-nghttp2)" |
| 27394 | if test X"$want_h2" != Xno; then |
| 27395 | CLEANLDFLAGS="$LDFLAGS" |
| 27396 | CLEANCPPFLAGS="$CPPFLAGS" |
| 27397 | CLEANLIBS="$LIBS" |
| 27398 | |
| 27399 | |
| 27400 | if test -n "$PKG_CONFIG"; then |
| 27401 | PKGCONFIG="$PKG_CONFIG" |
| 27402 | else |
| 27403 | if test -n "$ac_tool_prefix"; then |
| 27404 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 27405 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 27406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 27407 | $as_echo_n "checking for $ac_word... " >&6; } |
| 27408 | if ${ac_cv_path_PKGCONFIG+:} false; then : |
| 27409 | $as_echo_n "(cached) " >&6 |
| 27410 | else |
| 27411 | case $PKGCONFIG in |
| 27412 | [\\/]* | ?:[\\/]*) |
| 27413 | ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. |
| 27414 | ;; |
| 27415 | *) |
| 27416 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 27417 | as_dummy="$PATH:/usr/bin:/usr/local/bin" |
| 27418 | for as_dir in $as_dummy |
| 27419 | do |
| 27420 | IFS=$as_save_IFS |
| 27421 | test -z "$as_dir" && as_dir=. |
| 27422 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 27423 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 27424 | ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 27425 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 27426 | break 2 |
| 27427 | fi |
| 27428 | done |
| 27429 | done |
| 27430 | IFS=$as_save_IFS |
| 27431 | |
| 27432 | ;; |
| 27433 | esac |
| 27434 | fi |
| 27435 | PKGCONFIG=$ac_cv_path_PKGCONFIG |
| 27436 | if test -n "$PKGCONFIG"; then |
| 27437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 |
| 27438 | $as_echo "$PKGCONFIG" >&6; } |
| 27439 | else |
| 27440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 27441 | $as_echo "no" >&6; } |
| 27442 | fi |
| 27443 | |
| 27444 | |
| 27445 | fi |
| 27446 | if test -z "$ac_cv_path_PKGCONFIG"; then |
| 27447 | ac_pt_PKGCONFIG=$PKGCONFIG |
| 27448 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 27449 | set dummy pkg-config; ac_word=$2 |
| 27450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 27451 | $as_echo_n "checking for $ac_word... " >&6; } |
| 27452 | if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : |
| 27453 | $as_echo_n "(cached) " >&6 |
| 27454 | else |
| 27455 | case $ac_pt_PKGCONFIG in |
| 27456 | [\\/]* | ?:[\\/]*) |
| 27457 | ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. |
| 27458 | ;; |
| 27459 | *) |
| 27460 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 27461 | as_dummy="$PATH:/usr/bin:/usr/local/bin" |
| 27462 | for as_dir in $as_dummy |
| 27463 | do |
| 27464 | IFS=$as_save_IFS |
| 27465 | test -z "$as_dir" && as_dir=. |
| 27466 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 27467 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 27468 | ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 27469 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 27470 | break 2 |
| 27471 | fi |
| 27472 | done |
| 27473 | done |
| 27474 | IFS=$as_save_IFS |
| 27475 | |
| 27476 | ;; |
| 27477 | esac |
| 27478 | fi |
| 27479 | ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG |
| 27480 | if test -n "$ac_pt_PKGCONFIG"; then |
| 27481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 |
| 27482 | $as_echo "$ac_pt_PKGCONFIG" >&6; } |
| 27483 | else |
| 27484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 27485 | $as_echo "no" >&6; } |
| 27486 | fi |
| 27487 | |
| 27488 | if test "x$ac_pt_PKGCONFIG" = x; then |
| 27489 | PKGCONFIG="no" |
| 27490 | else |
| 27491 | case $cross_compiling:$ac_tool_warned in |
| 27492 | yes:) |
| 27493 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 27494 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 27495 | ac_tool_warned=yes ;; |
| 27496 | esac |
| 27497 | PKGCONFIG=$ac_pt_PKGCONFIG |
| 27498 | fi |
| 27499 | else |
| 27500 | PKGCONFIG="$ac_cv_path_PKGCONFIG" |
| 27501 | fi |
| 27502 | |
| 27503 | fi |
| 27504 | |
| 27505 | if test "x$PKGCONFIG" != "xno"; then |
| 27506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5 |
| 27507 | $as_echo_n "checking for libnghttp2 options with pkg-config... " >&6; } |
| 27508 | itexists=` |
| 27509 | if test -n "$want_h2_path"; then |
| 27510 | PKG_CONFIG_LIBDIR="$want_h2_path" |
| 27511 | export PKG_CONFIG_LIBDIR |
| 27512 | fi |
| 27513 | $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1` |
| 27514 | |
| 27515 | if test -z "$itexists"; then |
| 27516 | PKGCONFIG="no" |
| 27517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 27518 | $as_echo "no" >&6; } |
| 27519 | else |
| 27520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
| 27521 | $as_echo "found" >&6; } |
| 27522 | fi |
| 27523 | fi |
| 27524 | |
| 27525 | |
| 27526 | if test "$PKGCONFIG" != "no" ; then |
| 27527 | LIB_H2=` |
| 27528 | if test -n "$want_h2_path"; then |
| 27529 | PKG_CONFIG_LIBDIR="$want_h2_path" |
| 27530 | export PKG_CONFIG_LIBDIR |
| 27531 | fi |
| 27532 | |
| 27533 | $PKGCONFIG --libs-only-l libnghttp2` |
| 27534 | { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5 |
| 27535 | $as_echo "$as_me: -l is $LIB_H2" >&6;} |
| 27536 | |
| 27537 | CPP_H2=` |
| 27538 | if test -n "$want_h2_path"; then |
| 27539 | PKG_CONFIG_LIBDIR="$want_h2_path" |
| 27540 | export PKG_CONFIG_LIBDIR |
| 27541 | fi |
| 27542 | $PKGCONFIG --cflags-only-I libnghttp2` |
| 27543 | { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5 |
| 27544 | $as_echo "$as_me: -I is $CPP_H2" >&6;} |
| 27545 | |
| 27546 | LD_H2=` |
| 27547 | if test -n "$want_h2_path"; then |
| 27548 | PKG_CONFIG_LIBDIR="$want_h2_path" |
| 27549 | export PKG_CONFIG_LIBDIR |
| 27550 | fi |
| 27551 | |
| 27552 | $PKGCONFIG --libs-only-L libnghttp2` |
| 27553 | { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5 |
| 27554 | $as_echo "$as_me: -L is $LD_H2" >&6;} |
| 27555 | |
| 27556 | LDFLAGS="$LDFLAGS $LD_H2" |
| 27557 | CPPFLAGS="$CPPFLAGS $CPP_H2" |
| 27558 | LIBS="$LIB_H2 $LIBS" |
| 27559 | |
| 27560 | # use nghttp2_option_set_no_recv_client_magic to require nghttp2 |
| 27561 | # >= 1.0.0 |
| 27562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2" >&5 |
| 27563 | $as_echo_n "checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2... " >&6; } |
| 27564 | if ${ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic+:} false; then : |
| 27565 | $as_echo_n "(cached) " >&6 |
| 27566 | else |
| 27567 | ac_check_lib_save_LIBS=$LIBS |
| 27568 | LIBS="-lnghttp2 $LIBS" |
| 27569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 27570 | /* end confdefs.h. */ |
| 27571 | |
| 27572 | |
| 27573 | #ifdef __cplusplus |
| 27574 | extern "C" |
| 27575 | #endif |
| 27576 | char nghttp2_option_set_no_recv_client_magic (); |
| 27577 | int main (void) |
| 27578 | { |
| 27579 | return nghttp2_option_set_no_recv_client_magic (); |
| 27580 | ; |
| 27581 | return 0; |
| 27582 | } |
| 27583 | _ACEOF |
| 27584 | if ac_fn_c_try_link "$LINENO"; then : |
| 27585 | ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=yes |
| 27586 | else |
| 27587 | ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=no |
| 27588 | fi |
| 27589 | rm -f core conftest.err conftest.$ac_objext \ |
| 27590 | conftest$ac_exeext conftest.$ac_ext |
| 27591 | LIBS=$ac_check_lib_save_LIBS |
| 27592 | fi |
| 27593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&5 |
| 27594 | $as_echo "$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&6; } |
| 27595 | if test "x$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" = xyes; then : |
| 27596 | |
| 27597 | for ac_header in nghttp2/nghttp2.h |
| 27598 | do : |
| 27599 | ac_fn_c_check_header_mongrel "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default" |
| 27600 | if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then : |
| 27601 | cat >>confdefs.h <<_ACEOF |
| 27602 | #define HAVE_NGHTTP2_NGHTTP2_H 1 |
| 27603 | _ACEOF |
| 27604 | curl_h2_msg="enabled (nghttp2)" |
| 27605 | NGHTTP2_ENABLED=1 |
| 27606 | |
| 27607 | $as_echo "#define USE_NGHTTP2 1" >>confdefs.h |
| 27608 | |
| 27609 | USE_NGHTTP2=1 |
| 27610 | |
| 27611 | |
| 27612 | fi |
| 27613 | |
| 27614 | done |
| 27615 | |
| 27616 | |
| 27617 | else |
| 27618 | LDFLAGS=$CLEANLDFLAGS |
| 27619 | CPPFLAGS=$CLEANCPPFLAGS |
| 27620 | LIBS=$CLEANLIBS |
| 27621 | |
| 27622 | fi |
| 27623 | |
| 27624 | |
| 27625 | else |
| 27626 | if test X"$want_h2" != Xdefault; then |
| 27627 | as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5 |
| 27628 | fi |
| 27629 | fi |
| 27630 | |
| 27631 | fi |
| 27632 | |
| 27633 | |
| 27634 | OPT_ZSH_FPATH=default |
| 27635 | |
| 27636 | # Check whether --with-zsh-functions-dir was given. |
| 27637 | if test "${with_zsh_functions_dir+set}" = set; then : |
| 27638 | withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval |
| 27639 | fi |
| 27640 | |
| 27641 | case "$OPT_ZSH_FPATH" in |
| 27642 | no) |
| 27643 | ;; |
| 27644 | default|yes) |
| 27645 | ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions" |
| 27646 | |
| 27647 | ;; |
| 27648 | *) |
| 27649 | ZSH_FUNCTIONS_DIR="$withval" |
| 27650 | |
| 27651 | ;; |
| 27652 | esac |
| 27653 | |
| 27654 | |
| 27655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 27656 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 27657 | if ${ac_cv_header_stdc+:} false; then : |
| 27658 | $as_echo_n "(cached) " >&6 |
| 27659 | else |
| 27660 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 27661 | /* end confdefs.h. */ |
| 27662 | #include <stdlib.h> |
| 27663 | #include <stdarg.h> |
| 27664 | #include <string.h> |
| 27665 | #include <float.h> |
| 27666 | |
| 27667 | int main (void) |
| 27668 | { |
| 27669 | |
| 27670 | ; |
| 27671 | return 0; |
| 27672 | } |
| 27673 | _ACEOF |
| 27674 | if ac_fn_c_try_compile "$LINENO"; then : |
| 27675 | ac_cv_header_stdc=yes |
| 27676 | else |
| 27677 | ac_cv_header_stdc=no |
| 27678 | fi |
| 27679 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27680 | |
| 27681 | if test $ac_cv_header_stdc = yes; then |
| 27682 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 27683 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 27684 | /* end confdefs.h. */ |
| 27685 | #include <string.h> |
| 27686 | |
| 27687 | _ACEOF |
| 27688 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 27689 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 27690 | |
| 27691 | else |
| 27692 | ac_cv_header_stdc=no |
| 27693 | fi |
| 27694 | rm -f conftest* |
| 27695 | |
| 27696 | fi |
| 27697 | |
| 27698 | if test $ac_cv_header_stdc = yes; then |
| 27699 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 27700 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 27701 | /* end confdefs.h. */ |
| 27702 | #include <stdlib.h> |
| 27703 | |
| 27704 | _ACEOF |
| 27705 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 27706 | $EGREP "free" >/dev/null 2>&1; then : |
| 27707 | |
| 27708 | else |
| 27709 | ac_cv_header_stdc=no |
| 27710 | fi |
| 27711 | rm -f conftest* |
| 27712 | |
| 27713 | fi |
| 27714 | |
| 27715 | if test $ac_cv_header_stdc = yes; then |
| 27716 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 27717 | if test "$cross_compiling" = yes; then : |
| 27718 | : |
| 27719 | else |
| 27720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 27721 | /* end confdefs.h. */ |
| 27722 | #include <ctype.h> |
| 27723 | #include <stdlib.h> |
| 27724 | #if ((' ' & 0x0FF) == 0x020) |
| 27725 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 27726 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 27727 | #else |
| 27728 | # define ISLOWER(c) \ |
| 27729 | (('a' <= (c) && (c) <= 'i') \ |
| 27730 | || ('j' <= (c) && (c) <= 'r') \ |
| 27731 | || ('s' <= (c) && (c) <= 'z')) |
| 27732 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 27733 | #endif |
| 27734 | |
| 27735 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 27736 | int |
| 27737 | main () |
| 27738 | { |
| 27739 | int i; |
| 27740 | for (i = 0; i < 256; i++) |
| 27741 | if (XOR (islower (i), ISLOWER (i)) |
| 27742 | || toupper (i) != TOUPPER (i)) |
| 27743 | return 2; |
| 27744 | return 0; |
| 27745 | } |
| 27746 | _ACEOF |
| 27747 | if ac_fn_c_try_run "$LINENO"; then : |
| 27748 | |
| 27749 | else |
| 27750 | ac_cv_header_stdc=no |
| 27751 | fi |
| 27752 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 27753 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 27754 | fi |
| 27755 | |
| 27756 | fi |
| 27757 | fi |
| 27758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 27759 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 27760 | if test $ac_cv_header_stdc = yes; then |
| 27761 | |
| 27762 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 27763 | |
| 27764 | fi |
| 27765 | |
| 27766 | |
| 27767 | |
| 27768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5 |
| 27769 | $as_echo_n "checking for malloc.h... " >&6; } |
| 27770 | if ${curl_cv_header_malloc_h+:} false; then : |
| 27771 | $as_echo_n "(cached) " >&6 |
| 27772 | else |
| 27773 | |
| 27774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 27775 | /* end confdefs.h. */ |
| 27776 | |
| 27777 | |
| 27778 | #include <malloc.h> |
| 27779 | |
| 27780 | int main (void) |
| 27781 | { |
| 27782 | |
| 27783 | void *p = malloc(10); |
| 27784 | void *q = calloc(10,10); |
| 27785 | free(p); |
| 27786 | free(q); |
| 27787 | |
| 27788 | ; |
| 27789 | return 0; |
| 27790 | } |
| 27791 | |
| 27792 | _ACEOF |
| 27793 | if ac_fn_c_try_compile "$LINENO"; then : |
| 27794 | |
| 27795 | curl_cv_header_malloc_h="yes" |
| 27796 | |
| 27797 | else |
| 27798 | |
| 27799 | curl_cv_header_malloc_h="no" |
| 27800 | |
| 27801 | fi |
| 27802 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27803 | |
| 27804 | fi |
| 27805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_malloc_h" >&5 |
| 27806 | $as_echo "$curl_cv_header_malloc_h" >&6; } |
| 27807 | if test "$curl_cv_header_malloc_h" = "yes"; then |
| 27808 | |
| 27809 | cat >>confdefs.h <<_ACEOF |
| 27810 | #define HAVE_MALLOC_H 1 |
| 27811 | _ACEOF |
| 27812 | |
| 27813 | # |
| 27814 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 27815 | /* end confdefs.h. */ |
| 27816 | |
| 27817 | |
| 27818 | #include <stdlib.h> |
| 27819 | |
| 27820 | int main (void) |
| 27821 | { |
| 27822 | |
| 27823 | void *p = malloc(10); |
| 27824 | void *q = calloc(10,10); |
| 27825 | free(p); |
| 27826 | free(q); |
| 27827 | |
| 27828 | ; |
| 27829 | return 0; |
| 27830 | } |
| 27831 | |
| 27832 | _ACEOF |
| 27833 | if ac_fn_c_try_compile "$LINENO"; then : |
| 27834 | |
| 27835 | curl_cv_need_header_malloc_h="no" |
| 27836 | |
| 27837 | else |
| 27838 | |
| 27839 | curl_cv_need_header_malloc_h="yes" |
| 27840 | |
| 27841 | fi |
| 27842 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27843 | # |
| 27844 | case "$curl_cv_need_header_malloc_h" in |
| 27845 | yes) |
| 27846 | |
| 27847 | cat >>confdefs.h <<_ACEOF |
| 27848 | #define NEED_MALLOC_H 1 |
| 27849 | _ACEOF |
| 27850 | |
| 27851 | ;; |
| 27852 | esac |
| 27853 | fi |
| 27854 | |
| 27855 | |
| 27856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5 |
| 27857 | $as_echo_n "checking for memory.h... " >&6; } |
| 27858 | if ${curl_cv_header_memory_h+:} false; then : |
| 27859 | $as_echo_n "(cached) " >&6 |
| 27860 | else |
| 27861 | |
| 27862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 27863 | /* end confdefs.h. */ |
| 27864 | |
| 27865 | |
| 27866 | #include <memory.h> |
| 27867 | |
| 27868 | int main (void) |
| 27869 | { |
| 27870 | |
| 27871 | void *p = malloc(10); |
| 27872 | void *q = calloc(10,10); |
| 27873 | free(p); |
| 27874 | free(q); |
| 27875 | |
| 27876 | ; |
| 27877 | return 0; |
| 27878 | } |
| 27879 | |
| 27880 | _ACEOF |
| 27881 | if ac_fn_c_try_compile "$LINENO"; then : |
| 27882 | |
| 27883 | curl_cv_header_memory_h="yes" |
| 27884 | |
| 27885 | else |
| 27886 | |
| 27887 | curl_cv_header_memory_h="no" |
| 27888 | |
| 27889 | fi |
| 27890 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27891 | |
| 27892 | fi |
| 27893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_memory_h" >&5 |
| 27894 | $as_echo "$curl_cv_header_memory_h" >&6; } |
| 27895 | if test "$curl_cv_header_memory_h" = "yes"; then |
| 27896 | |
| 27897 | cat >>confdefs.h <<_ACEOF |
| 27898 | #define HAVE_MEMORY_H 1 |
| 27899 | _ACEOF |
| 27900 | |
| 27901 | # |
| 27902 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 27903 | /* end confdefs.h. */ |
| 27904 | |
| 27905 | |
| 27906 | #include <stdlib.h> |
| 27907 | |
| 27908 | int main (void) |
| 27909 | { |
| 27910 | |
| 27911 | void *p = malloc(10); |
| 27912 | void *q = calloc(10,10); |
| 27913 | free(p); |
| 27914 | free(q); |
| 27915 | |
| 27916 | ; |
| 27917 | return 0; |
| 27918 | } |
| 27919 | |
| 27920 | _ACEOF |
| 27921 | if ac_fn_c_try_compile "$LINENO"; then : |
| 27922 | |
| 27923 | curl_cv_need_header_memory_h="no" |
| 27924 | |
| 27925 | else |
| 27926 | |
| 27927 | curl_cv_need_header_memory_h="yes" |
| 27928 | |
| 27929 | fi |
| 27930 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 27931 | # |
| 27932 | case "$curl_cv_need_header_memory_h" in |
| 27933 | yes) |
| 27934 | |
| 27935 | cat >>confdefs.h <<_ACEOF |
| 27936 | #define NEED_MEMORY_H 1 |
| 27937 | _ACEOF |
| 27938 | |
| 27939 | ;; |
| 27940 | esac |
| 27941 | fi |
| 27942 | |
| 27943 | |
| 27944 | for ac_header in sys/types.h \ |
| 27945 | sys/time.h \ |
| 27946 | sys/select.h \ |
| 27947 | sys/socket.h \ |
| 27948 | sys/ioctl.h \ |
| 27949 | sys/uio.h \ |
| 27950 | assert.h \ |
| 27951 | unistd.h \ |
| 27952 | stdlib.h \ |
| 27953 | limits.h \ |
| 27954 | arpa/inet.h \ |
| 27955 | net/if.h \ |
| 27956 | netinet/in.h \ |
| 27957 | sys/un.h \ |
| 27958 | netinet/tcp.h \ |
| 27959 | netdb.h \ |
| 27960 | sys/sockio.h \ |
| 27961 | sys/stat.h \ |
| 27962 | sys/param.h \ |
| 27963 | termios.h \ |
| 27964 | termio.h \ |
| 27965 | sgtty.h \ |
| 27966 | fcntl.h \ |
| 27967 | alloca.h \ |
| 27968 | time.h \ |
| 27969 | io.h \ |
| 27970 | pwd.h \ |
| 27971 | utime.h \ |
| 27972 | sys/utime.h \ |
| 27973 | sys/poll.h \ |
| 27974 | poll.h \ |
| 27975 | socket.h \ |
| 27976 | sys/resource.h \ |
| 27977 | libgen.h \ |
| 27978 | locale.h \ |
| 27979 | errno.h \ |
| 27980 | stdbool.h \ |
| 27981 | arpa/tftp.h \ |
| 27982 | sys/filio.h \ |
| 27983 | sys/wait.h \ |
| 27984 | setjmp.h |
| 27985 | do : |
| 27986 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 27987 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " |
| 27988 | #ifdef HAVE_SYS_TYPES_H |
| 27989 | #include <sys/types.h> |
| 27990 | #endif |
| 27991 | #ifdef HAVE_SYS_TIME_H |
| 27992 | #include <sys/time.h> |
| 27993 | #endif |
| 27994 | #ifdef HAVE_SYS_SELECT_H |
| 27995 | #include <sys/select.h> |
| 27996 | #endif |
| 27997 | #ifdef HAVE_SYS_SOCKET_H |
| 27998 | #include <sys/socket.h> |
| 27999 | #endif |
| 28000 | #ifdef HAVE_NETINET_IN_H |
| 28001 | #include <netinet/in.h> |
| 28002 | #endif |
| 28003 | #ifdef HAVE_SYS_UN_H |
| 28004 | #include <sys/un.h> |
| 28005 | #endif |
| 28006 | |
| 28007 | |
| 28008 | " |
| 28009 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 28010 | cat >>confdefs.h <<_ACEOF |
| 28011 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 28012 | _ACEOF |
| 28013 | |
| 28014 | fi |
| 28015 | |
| 28016 | done |
| 28017 | |
| 28018 | |
| 28019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
| 28020 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
| 28021 | if ${ac_cv_c_const+:} false; then : |
| 28022 | $as_echo_n "(cached) " >&6 |
| 28023 | else |
| 28024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28025 | /* end confdefs.h. */ |
| 28026 | |
| 28027 | int main (void) |
| 28028 | { |
| 28029 | |
| 28030 | #ifndef __cplusplus |
| 28031 | /* Ultrix mips cc rejects this sort of thing. */ |
| 28032 | typedef int charset[2]; |
| 28033 | const charset cs = { 0, 0 }; |
| 28034 | /* SunOS 4.1.1 cc rejects this. */ |
| 28035 | char const *const *pcpcc; |
| 28036 | char **ppc; |
| 28037 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 28038 | struct point {int x, y;}; |
| 28039 | static struct point const zero = {0,0}; |
| 28040 | /* AIX XL C 1.02.0.0 rejects this. |
| 28041 | It does not let you subtract one const X* pointer from another in |
| 28042 | an arm of an if-expression whose if-part is not a constant |
| 28043 | expression */ |
| 28044 | const char *g = "string"; |
| 28045 | pcpcc = &g + (g ? g-g : 0); |
| 28046 | /* HPUX 7.0 cc rejects these. */ |
| 28047 | ++pcpcc; |
| 28048 | ppc = (char**) pcpcc; |
| 28049 | pcpcc = (char const *const *) ppc; |
| 28050 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
| 28051 | char tx; |
| 28052 | char *t = &tx; |
| 28053 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 28054 | |
| 28055 | *t++ = 0; |
| 28056 | if (s) return 0; |
| 28057 | } |
| 28058 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 28059 | int x[] = {25, 17}; |
| 28060 | const int *foo = &x[0]; |
| 28061 | ++foo; |
| 28062 | } |
| 28063 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 28064 | typedef const int *iptr; |
| 28065 | iptr p = 0; |
| 28066 | ++p; |
| 28067 | } |
| 28068 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
| 28069 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 28070 | struct s { int j; const int *ap[3]; } bx; |
| 28071 | struct s *b = &bx; b->j = 5; |
| 28072 | } |
| 28073 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 28074 | const int foo = 10; |
| 28075 | if (!foo) return 0; |
| 28076 | } |
| 28077 | return !cs[0] && !zero.x; |
| 28078 | #endif |
| 28079 | |
| 28080 | ; |
| 28081 | return 0; |
| 28082 | } |
| 28083 | _ACEOF |
| 28084 | if ac_fn_c_try_compile "$LINENO"; then : |
| 28085 | ac_cv_c_const=yes |
| 28086 | else |
| 28087 | ac_cv_c_const=no |
| 28088 | fi |
| 28089 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28090 | fi |
| 28091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
| 28092 | $as_echo "$ac_cv_c_const" >&6; } |
| 28093 | if test $ac_cv_c_const = no; then |
| 28094 | |
| 28095 | $as_echo "#define const /**/" >>confdefs.h |
| 28096 | |
| 28097 | fi |
| 28098 | |
| 28099 | |
| 28100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5 |
| 28101 | $as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; } |
| 28102 | if ${curl_cv_variadic_macros_c99+:} false; then : |
| 28103 | $as_echo_n "(cached) " >&6 |
| 28104 | else |
| 28105 | |
| 28106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28107 | /* end confdefs.h. */ |
| 28108 | |
| 28109 | |
| 28110 | #define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__) |
| 28111 | #define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__) |
| 28112 | int fun3(int arg1, int arg2, int arg3); |
| 28113 | int fun2(int arg1, int arg2); |
| 28114 | int fun3(int arg1, int arg2, int arg3) |
| 28115 | { return arg1 + arg2 + arg3; } |
| 28116 | int fun2(int arg1, int arg2) |
| 28117 | { return arg1 + arg2; } |
| 28118 | |
| 28119 | int main (void) |
| 28120 | { |
| 28121 | |
| 28122 | int res3 = c99_vmacro3(1, 2, 3); |
| 28123 | int res2 = c99_vmacro2(1, 2); |
| 28124 | |
| 28125 | ; |
| 28126 | return 0; |
| 28127 | } |
| 28128 | |
| 28129 | _ACEOF |
| 28130 | if ac_fn_c_try_compile "$LINENO"; then : |
| 28131 | |
| 28132 | curl_cv_variadic_macros_c99="yes" |
| 28133 | |
| 28134 | else |
| 28135 | |
| 28136 | curl_cv_variadic_macros_c99="no" |
| 28137 | |
| 28138 | fi |
| 28139 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28140 | |
| 28141 | fi |
| 28142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5 |
| 28143 | $as_echo "$curl_cv_variadic_macros_c99" >&6; } |
| 28144 | case "$curl_cv_variadic_macros_c99" in |
| 28145 | yes) |
| 28146 | |
| 28147 | cat >>confdefs.h <<_ACEOF |
| 28148 | #define HAVE_VARIADIC_MACROS_C99 1 |
| 28149 | _ACEOF |
| 28150 | |
| 28151 | ;; |
| 28152 | esac |
| 28153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5 |
| 28154 | $as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; } |
| 28155 | if ${curl_cv_variadic_macros_gcc+:} false; then : |
| 28156 | $as_echo_n "(cached) " >&6 |
| 28157 | else |
| 28158 | |
| 28159 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28160 | /* end confdefs.h. */ |
| 28161 | |
| 28162 | |
| 28163 | #define gcc_vmacro3(first, args...) fun3(first, args) |
| 28164 | #define gcc_vmacro2(first, args...) fun2(first, args) |
| 28165 | int fun3(int arg1, int arg2, int arg3); |
| 28166 | int fun2(int arg1, int arg2); |
| 28167 | int fun3(int arg1, int arg2, int arg3) |
| 28168 | { return arg1 + arg2 + arg3; } |
| 28169 | int fun2(int arg1, int arg2) |
| 28170 | { return arg1 + arg2; } |
| 28171 | |
| 28172 | int main (void) |
| 28173 | { |
| 28174 | |
| 28175 | int res3 = gcc_vmacro3(1, 2, 3); |
| 28176 | int res2 = gcc_vmacro2(1, 2); |
| 28177 | |
| 28178 | ; |
| 28179 | return 0; |
| 28180 | } |
| 28181 | |
| 28182 | _ACEOF |
| 28183 | if ac_fn_c_try_compile "$LINENO"; then : |
| 28184 | |
| 28185 | curl_cv_variadic_macros_gcc="yes" |
| 28186 | |
| 28187 | else |
| 28188 | |
| 28189 | curl_cv_variadic_macros_gcc="no" |
| 28190 | |
| 28191 | fi |
| 28192 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28193 | |
| 28194 | fi |
| 28195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5 |
| 28196 | $as_echo "$curl_cv_variadic_macros_gcc" >&6; } |
| 28197 | case "$curl_cv_variadic_macros_gcc" in |
| 28198 | yes) |
| 28199 | |
| 28200 | cat >>confdefs.h <<_ACEOF |
| 28201 | #define HAVE_VARIADIC_MACROS_GCC 1 |
| 28202 | _ACEOF |
| 28203 | |
| 28204 | ;; |
| 28205 | esac |
| 28206 | |
| 28207 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
| 28208 | if test "x$ac_cv_type_size_t" = xyes; then : |
| 28209 | |
| 28210 | else |
| 28211 | |
| 28212 | cat >>confdefs.h <<_ACEOF |
| 28213 | #define size_t unsigned int |
| 28214 | _ACEOF |
| 28215 | |
| 28216 | fi |
| 28217 | |
| 28218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
| 28219 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } |
| 28220 | if ${ac_cv_header_time+:} false; then : |
| 28221 | $as_echo_n "(cached) " >&6 |
| 28222 | else |
| 28223 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28224 | /* end confdefs.h. */ |
| 28225 | #include <sys/types.h> |
| 28226 | #include <sys/time.h> |
| 28227 | #include <time.h> |
| 28228 | |
| 28229 | int main (void) |
| 28230 | { |
| 28231 | if ((struct tm *) 0) |
| 28232 | return 0; |
| 28233 | ; |
| 28234 | return 0; |
| 28235 | } |
| 28236 | _ACEOF |
| 28237 | if ac_fn_c_try_compile "$LINENO"; then : |
| 28238 | ac_cv_header_time=yes |
| 28239 | else |
| 28240 | ac_cv_header_time=no |
| 28241 | fi |
| 28242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28243 | fi |
| 28244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
| 28245 | $as_echo "$ac_cv_header_time" >&6; } |
| 28246 | if test $ac_cv_header_time = yes; then |
| 28247 | |
| 28248 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
| 28249 | |
| 28250 | fi |
| 28251 | |
| 28252 | |
| 28253 | for ac_header in sys/types.h sys/time.h time.h sys/socket.h |
| 28254 | do : |
| 28255 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 28256 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 28257 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 28258 | cat >>confdefs.h <<_ACEOF |
| 28259 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 28260 | _ACEOF |
| 28261 | |
| 28262 | fi |
| 28263 | |
| 28264 | done |
| 28265 | |
| 28266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 |
| 28267 | $as_echo_n "checking for struct timeval... " >&6; } |
| 28268 | if ${curl_cv_struct_timeval+:} false; then : |
| 28269 | $as_echo_n "(cached) " >&6 |
| 28270 | else |
| 28271 | |
| 28272 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28273 | /* end confdefs.h. */ |
| 28274 | |
| 28275 | |
| 28276 | #undef inline |
| 28277 | #ifdef HAVE_WINDOWS_H |
| 28278 | #ifndef WIN32_LEAN_AND_MEAN |
| 28279 | #define WIN32_LEAN_AND_MEAN |
| 28280 | #endif |
| 28281 | #include <windows.h> |
| 28282 | #ifdef HAVE_WINSOCK2_H |
| 28283 | #include <winsock2.h> |
| 28284 | #else |
| 28285 | #ifdef HAVE_WINSOCK_H |
| 28286 | #include <winsock.h> |
| 28287 | #endif |
| 28288 | #endif |
| 28289 | #endif |
| 28290 | #ifdef HAVE_SYS_TYPES_H |
| 28291 | #include <sys/types.h> |
| 28292 | #endif |
| 28293 | #ifdef HAVE_SYS_TIME_H |
| 28294 | #include <sys/time.h> |
| 28295 | #ifdef TIME_WITH_SYS_TIME |
| 28296 | #include <time.h> |
| 28297 | #endif |
| 28298 | #else |
| 28299 | #ifdef HAVE_TIME_H |
| 28300 | #include <time.h> |
| 28301 | #endif |
| 28302 | #endif |
| 28303 | #ifdef HAVE_SYS_SOCKET_H |
| 28304 | #include <sys/socket.h> |
| 28305 | #endif |
| 28306 | |
| 28307 | int main (void) |
| 28308 | { |
| 28309 | |
| 28310 | struct timeval ts; |
| 28311 | ts.tv_sec = 0; |
| 28312 | ts.tv_usec = 0; |
| 28313 | |
| 28314 | ; |
| 28315 | return 0; |
| 28316 | } |
| 28317 | |
| 28318 | _ACEOF |
| 28319 | if ac_fn_c_try_compile "$LINENO"; then : |
| 28320 | |
| 28321 | curl_cv_struct_timeval="yes" |
| 28322 | |
| 28323 | else |
| 28324 | |
| 28325 | curl_cv_struct_timeval="no" |
| 28326 | |
| 28327 | fi |
| 28328 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28329 | |
| 28330 | fi |
| 28331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5 |
| 28332 | $as_echo "$curl_cv_struct_timeval" >&6; } |
| 28333 | case "$curl_cv_struct_timeval" in |
| 28334 | yes) |
| 28335 | |
| 28336 | cat >>confdefs.h <<_ACEOF |
| 28337 | #define HAVE_STRUCT_TIMEVAL 1 |
| 28338 | _ACEOF |
| 28339 | |
| 28340 | ;; |
| 28341 | esac |
| 28342 | |
| 28343 | |
| 28344 | |
| 28345 | if test "x$cross_compiling" != xyes; then |
| 28346 | |
| 28347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5 |
| 28348 | $as_echo_n "checking run-time libs availability... " >&6; } |
| 28349 | if test "$cross_compiling" = yes; then : |
| 28350 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 28351 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 28352 | as_fn_error $? "cannot run test program while cross compiling |
| 28353 | See \`config.log' for more details" "$LINENO" 5; } |
| 28354 | else |
| 28355 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28356 | /* end confdefs.h. */ |
| 28357 | |
| 28358 | main() |
| 28359 | { |
| 28360 | return 0; |
| 28361 | } |
| 28362 | |
| 28363 | _ACEOF |
| 28364 | if ac_fn_c_try_run "$LINENO"; then : |
| 28365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5 |
| 28366 | $as_echo "fine" >&6; } |
| 28367 | else |
| 28368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
| 28369 | $as_echo "failed" >&6; } |
| 28370 | as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5 |
| 28371 | |
| 28372 | fi |
| 28373 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 28374 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 28375 | fi |
| 28376 | |
| 28377 | |
| 28378 | fi |
| 28379 | |
| 28380 | |
| 28381 | # The cast to long int works around a bug in the HP C Compiler |
| 28382 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 28383 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 28384 | # This bug is HP SR number 8606223364. |
| 28385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 |
| 28386 | $as_echo_n "checking size of size_t... " >&6; } |
| 28387 | if ${ac_cv_sizeof_size_t+:} false; then : |
| 28388 | $as_echo_n "(cached) " >&6 |
| 28389 | else |
| 28390 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : |
| 28391 | |
| 28392 | else |
| 28393 | if test "$ac_cv_type_size_t" = yes; then |
| 28394 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 28395 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 28396 | as_fn_error 77 "cannot compute sizeof (size_t) |
| 28397 | See \`config.log' for more details" "$LINENO" 5; } |
| 28398 | else |
| 28399 | ac_cv_sizeof_size_t=0 |
| 28400 | fi |
| 28401 | fi |
| 28402 | |
| 28403 | fi |
| 28404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 |
| 28405 | $as_echo "$ac_cv_sizeof_size_t" >&6; } |
| 28406 | |
| 28407 | |
| 28408 | |
| 28409 | cat >>confdefs.h <<_ACEOF |
| 28410 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| 28411 | _ACEOF |
| 28412 | |
| 28413 | |
| 28414 | # The cast to long int works around a bug in the HP C Compiler |
| 28415 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 28416 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 28417 | # This bug is HP SR number 8606223364. |
| 28418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
| 28419 | $as_echo_n "checking size of long... " >&6; } |
| 28420 | if ${ac_cv_sizeof_long+:} false; then : |
| 28421 | $as_echo_n "(cached) " >&6 |
| 28422 | else |
| 28423 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
| 28424 | |
| 28425 | else |
| 28426 | if test "$ac_cv_type_long" = yes; then |
| 28427 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 28428 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 28429 | as_fn_error 77 "cannot compute sizeof (long) |
| 28430 | See \`config.log' for more details" "$LINENO" 5; } |
| 28431 | else |
| 28432 | ac_cv_sizeof_long=0 |
| 28433 | fi |
| 28434 | fi |
| 28435 | |
| 28436 | fi |
| 28437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
| 28438 | $as_echo "$ac_cv_sizeof_long" >&6; } |
| 28439 | |
| 28440 | |
| 28441 | |
| 28442 | cat >>confdefs.h <<_ACEOF |
| 28443 | #define SIZEOF_LONG $ac_cv_sizeof_long |
| 28444 | _ACEOF |
| 28445 | |
| 28446 | |
| 28447 | # The cast to long int works around a bug in the HP C Compiler |
| 28448 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 28449 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 28450 | # This bug is HP SR number 8606223364. |
| 28451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
| 28452 | $as_echo_n "checking size of int... " >&6; } |
| 28453 | if ${ac_cv_sizeof_int+:} false; then : |
| 28454 | $as_echo_n "(cached) " >&6 |
| 28455 | else |
| 28456 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : |
| 28457 | |
| 28458 | else |
| 28459 | if test "$ac_cv_type_int" = yes; then |
| 28460 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 28461 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 28462 | as_fn_error 77 "cannot compute sizeof (int) |
| 28463 | See \`config.log' for more details" "$LINENO" 5; } |
| 28464 | else |
| 28465 | ac_cv_sizeof_int=0 |
| 28466 | fi |
| 28467 | fi |
| 28468 | |
| 28469 | fi |
| 28470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
| 28471 | $as_echo "$ac_cv_sizeof_int" >&6; } |
| 28472 | |
| 28473 | |
| 28474 | |
| 28475 | cat >>confdefs.h <<_ACEOF |
| 28476 | #define SIZEOF_INT $ac_cv_sizeof_int |
| 28477 | _ACEOF |
| 28478 | |
| 28479 | |
| 28480 | # The cast to long int works around a bug in the HP C Compiler |
| 28481 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 28482 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 28483 | # This bug is HP SR number 8606223364. |
| 28484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 |
| 28485 | $as_echo_n "checking size of short... " >&6; } |
| 28486 | if ${ac_cv_sizeof_short+:} false; then : |
| 28487 | $as_echo_n "(cached) " >&6 |
| 28488 | else |
| 28489 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : |
| 28490 | |
| 28491 | else |
| 28492 | if test "$ac_cv_type_short" = yes; then |
| 28493 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 28494 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 28495 | as_fn_error 77 "cannot compute sizeof (short) |
| 28496 | See \`config.log' for more details" "$LINENO" 5; } |
| 28497 | else |
| 28498 | ac_cv_sizeof_short=0 |
| 28499 | fi |
| 28500 | fi |
| 28501 | |
| 28502 | fi |
| 28503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
| 28504 | $as_echo "$ac_cv_sizeof_short" >&6; } |
| 28505 | |
| 28506 | |
| 28507 | |
| 28508 | cat >>confdefs.h <<_ACEOF |
| 28509 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
| 28510 | _ACEOF |
| 28511 | |
| 28512 | |
| 28513 | |
| 28514 | if test -z "$ac_cv_sizeof_long" || |
| 28515 | test "$ac_cv_sizeof_long" -eq "0"; then |
| 28516 | as_fn_error $? "cannot find out size of long." "$LINENO" 5 |
| 28517 | fi |
| 28518 | |
| 28519 | cat >>confdefs.h <<_EOF |
| 28520 | #define CURL_SIZEOF_LONG $ac_cv_sizeof_long |
| 28521 | _EOF |
| 28522 | |
| 28523 | |
| 28524 | # The cast to long int works around a bug in the HP C Compiler |
| 28525 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 28526 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 28527 | # This bug is HP SR number 8606223364. |
| 28528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 |
| 28529 | $as_echo_n "checking size of time_t... " >&6; } |
| 28530 | if ${ac_cv_sizeof_time_t+:} false; then : |
| 28531 | $as_echo_n "(cached) " >&6 |
| 28532 | else |
| 28533 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then : |
| 28534 | |
| 28535 | else |
| 28536 | if test "$ac_cv_type_time_t" = yes; then |
| 28537 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 28538 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 28539 | as_fn_error 77 "cannot compute sizeof (time_t) |
| 28540 | See \`config.log' for more details" "$LINENO" 5; } |
| 28541 | else |
| 28542 | ac_cv_sizeof_time_t=0 |
| 28543 | fi |
| 28544 | fi |
| 28545 | |
| 28546 | fi |
| 28547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 |
| 28548 | $as_echo "$ac_cv_sizeof_time_t" >&6; } |
| 28549 | |
| 28550 | |
| 28551 | |
| 28552 | cat >>confdefs.h <<_ACEOF |
| 28553 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
| 28554 | _ACEOF |
| 28555 | |
| 28556 | |
| 28557 | # The cast to long int works around a bug in the HP C Compiler |
| 28558 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 28559 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 28560 | # This bug is HP SR number 8606223364. |
| 28561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 |
| 28562 | $as_echo_n "checking size of off_t... " >&6; } |
| 28563 | if ${ac_cv_sizeof_off_t+:} false; then : |
| 28564 | $as_echo_n "(cached) " >&6 |
| 28565 | else |
| 28566 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : |
| 28567 | |
| 28568 | else |
| 28569 | if test "$ac_cv_type_off_t" = yes; then |
| 28570 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 28571 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 28572 | as_fn_error 77 "cannot compute sizeof (off_t) |
| 28573 | See \`config.log' for more details" "$LINENO" 5; } |
| 28574 | else |
| 28575 | ac_cv_sizeof_off_t=0 |
| 28576 | fi |
| 28577 | fi |
| 28578 | |
| 28579 | fi |
| 28580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 |
| 28581 | $as_echo "$ac_cv_sizeof_off_t" >&6; } |
| 28582 | |
| 28583 | |
| 28584 | |
| 28585 | cat >>confdefs.h <<_ACEOF |
| 28586 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
| 28587 | _ACEOF |
| 28588 | |
| 28589 | |
| 28590 | |
| 28591 | soname_bump=no |
| 28592 | if test x"$curl_cv_native_windows" != "xyes" && |
| 28593 | test $ac_cv_sizeof_off_t -ne $curl_sizeof_curl_off_t; then |
| 28594 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This libcurl built is probably not ABI compatible with previous" >&5 |
| 28595 | $as_echo "$as_me: WARNING: This libcurl built is probably not ABI compatible with previous" >&2;} |
| 28596 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&5 |
| 28597 | $as_echo "$as_me: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&2;} |
| 28598 | soname_bump=yes |
| 28599 | fi |
| 28600 | |
| 28601 | |
| 28602 | ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" |
| 28603 | if test "x$ac_cv_type_long_long" = xyes; then : |
| 28604 | |
| 28605 | $as_echo "#define HAVE_LONGLONG 1" >>confdefs.h |
| 28606 | |
| 28607 | longlong="yes" |
| 28608 | |
| 28609 | fi |
| 28610 | |
| 28611 | |
| 28612 | if test "xyes" = "x$longlong"; then |
| 28613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5 |
| 28614 | $as_echo_n "checking if numberLL works... " >&6; } |
| 28615 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28616 | /* end confdefs.h. */ |
| 28617 | |
| 28618 | |
| 28619 | |
| 28620 | int main (void) |
| 28621 | { |
| 28622 | |
| 28623 | long long val = 1000LL; |
| 28624 | |
| 28625 | ; |
| 28626 | return 0; |
| 28627 | } |
| 28628 | |
| 28629 | _ACEOF |
| 28630 | if ac_fn_c_try_compile "$LINENO"; then : |
| 28631 | |
| 28632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 28633 | $as_echo "yes" >&6; } |
| 28634 | |
| 28635 | $as_echo "#define HAVE_LL 1" >>confdefs.h |
| 28636 | |
| 28637 | |
| 28638 | else |
| 28639 | |
| 28640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 28641 | $as_echo "no" >&6; } |
| 28642 | |
| 28643 | fi |
| 28644 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28645 | fi |
| 28646 | |
| 28647 | |
| 28648 | # check for ssize_t |
| 28649 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" |
| 28650 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
| 28651 | |
| 28652 | else |
| 28653 | |
| 28654 | $as_echo "#define ssize_t int" >>confdefs.h |
| 28655 | |
| 28656 | fi |
| 28657 | |
| 28658 | |
| 28659 | # check for bool type |
| 28660 | ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" " |
| 28661 | #ifdef HAVE_SYS_TYPES_H |
| 28662 | #include <sys/types.h> |
| 28663 | #endif |
| 28664 | #ifdef HAVE_STDBOOL_H |
| 28665 | #include <stdbool.h> |
| 28666 | #endif |
| 28667 | |
| 28668 | " |
| 28669 | if test "x$ac_cv_type_bool" = xyes; then : |
| 28670 | |
| 28671 | |
| 28672 | $as_echo "#define HAVE_BOOL_T 1" >>confdefs.h |
| 28673 | |
| 28674 | |
| 28675 | fi |
| 28676 | |
| 28677 | |
| 28678 | |
| 28679 | curl_includes_ws2tcpip="\ |
| 28680 | /* includes start */ |
| 28681 | #ifdef HAVE_WINDOWS_H |
| 28682 | # ifndef WIN32_LEAN_AND_MEAN |
| 28683 | # define WIN32_LEAN_AND_MEAN |
| 28684 | # endif |
| 28685 | # include <windows.h> |
| 28686 | # ifdef HAVE_WINSOCK2_H |
| 28687 | # include <winsock2.h> |
| 28688 | # ifdef HAVE_WS2TCPIP_H |
| 28689 | # include <ws2tcpip.h> |
| 28690 | # endif |
| 28691 | # endif |
| 28692 | #endif |
| 28693 | /* includes end */" |
| 28694 | |
| 28695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5 |
| 28696 | $as_echo_n "checking for windows.h... " >&6; } |
| 28697 | if ${curl_cv_header_windows_h+:} false; then : |
| 28698 | $as_echo_n "(cached) " >&6 |
| 28699 | else |
| 28700 | |
| 28701 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28702 | /* end confdefs.h. */ |
| 28703 | |
| 28704 | |
| 28705 | #undef inline |
| 28706 | #ifndef WIN32_LEAN_AND_MEAN |
| 28707 | #define WIN32_LEAN_AND_MEAN |
| 28708 | #endif |
| 28709 | #include <windows.h> |
| 28710 | |
| 28711 | int main (void) |
| 28712 | { |
| 28713 | |
| 28714 | #if defined(__CYGWIN__) || defined(__CEGCC__) |
| 28715 | HAVE_WINDOWS_H shall not be defined. |
| 28716 | #else |
| 28717 | int dummy=2*WINVER; |
| 28718 | #endif |
| 28719 | |
| 28720 | ; |
| 28721 | return 0; |
| 28722 | } |
| 28723 | |
| 28724 | _ACEOF |
| 28725 | if ac_fn_c_try_compile "$LINENO"; then : |
| 28726 | |
| 28727 | curl_cv_header_windows_h="yes" |
| 28728 | |
| 28729 | else |
| 28730 | |
| 28731 | curl_cv_header_windows_h="no" |
| 28732 | |
| 28733 | fi |
| 28734 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28735 | |
| 28736 | fi |
| 28737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5 |
| 28738 | $as_echo "$curl_cv_header_windows_h" >&6; } |
| 28739 | case "$curl_cv_header_windows_h" in |
| 28740 | yes) |
| 28741 | |
| 28742 | cat >>confdefs.h <<_ACEOF |
| 28743 | #define HAVE_WINDOWS_H 1 |
| 28744 | _ACEOF |
| 28745 | |
| 28746 | |
| 28747 | cat >>confdefs.h <<_ACEOF |
| 28748 | #define WIN32_LEAN_AND_MEAN 1 |
| 28749 | _ACEOF |
| 28750 | |
| 28751 | ;; |
| 28752 | esac |
| 28753 | |
| 28754 | |
| 28755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5 |
| 28756 | $as_echo_n "checking for winsock2.h... " >&6; } |
| 28757 | if ${curl_cv_header_winsock2_h+:} false; then : |
| 28758 | $as_echo_n "(cached) " >&6 |
| 28759 | else |
| 28760 | |
| 28761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28762 | /* end confdefs.h. */ |
| 28763 | |
| 28764 | |
| 28765 | #undef inline |
| 28766 | #ifndef WIN32_LEAN_AND_MEAN |
| 28767 | #define WIN32_LEAN_AND_MEAN |
| 28768 | #endif |
| 28769 | #include <windows.h> |
| 28770 | #include <winsock2.h> |
| 28771 | |
| 28772 | int main (void) |
| 28773 | { |
| 28774 | |
| 28775 | #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__) |
| 28776 | HAVE_WINSOCK2_H shall not be defined. |
| 28777 | #else |
| 28778 | int dummy=2*IPPROTO_ESP; |
| 28779 | #endif |
| 28780 | |
| 28781 | ; |
| 28782 | return 0; |
| 28783 | } |
| 28784 | |
| 28785 | _ACEOF |
| 28786 | if ac_fn_c_try_compile "$LINENO"; then : |
| 28787 | |
| 28788 | curl_cv_header_winsock2_h="yes" |
| 28789 | |
| 28790 | else |
| 28791 | |
| 28792 | curl_cv_header_winsock2_h="no" |
| 28793 | |
| 28794 | fi |
| 28795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28796 | |
| 28797 | fi |
| 28798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5 |
| 28799 | $as_echo "$curl_cv_header_winsock2_h" >&6; } |
| 28800 | case "$curl_cv_header_winsock2_h" in |
| 28801 | yes) |
| 28802 | |
| 28803 | cat >>confdefs.h <<_ACEOF |
| 28804 | #define HAVE_WINSOCK2_H 1 |
| 28805 | _ACEOF |
| 28806 | |
| 28807 | ;; |
| 28808 | esac |
| 28809 | |
| 28810 | |
| 28811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5 |
| 28812 | $as_echo_n "checking for ws2tcpip.h... " >&6; } |
| 28813 | if ${curl_cv_header_ws2tcpip_h+:} false; then : |
| 28814 | $as_echo_n "(cached) " >&6 |
| 28815 | else |
| 28816 | |
| 28817 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28818 | /* end confdefs.h. */ |
| 28819 | |
| 28820 | |
| 28821 | #undef inline |
| 28822 | #ifndef WIN32_LEAN_AND_MEAN |
| 28823 | #define WIN32_LEAN_AND_MEAN |
| 28824 | #endif |
| 28825 | #include <windows.h> |
| 28826 | #include <winsock2.h> |
| 28827 | #include <ws2tcpip.h> |
| 28828 | |
| 28829 | int main (void) |
| 28830 | { |
| 28831 | |
| 28832 | #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__) |
| 28833 | HAVE_WS2TCPIP_H shall not be defined. |
| 28834 | #else |
| 28835 | int dummy=2*IP_PKTINFO; |
| 28836 | #endif |
| 28837 | |
| 28838 | ; |
| 28839 | return 0; |
| 28840 | } |
| 28841 | |
| 28842 | _ACEOF |
| 28843 | if ac_fn_c_try_compile "$LINENO"; then : |
| 28844 | |
| 28845 | curl_cv_header_ws2tcpip_h="yes" |
| 28846 | |
| 28847 | else |
| 28848 | |
| 28849 | curl_cv_header_ws2tcpip_h="no" |
| 28850 | |
| 28851 | fi |
| 28852 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28853 | |
| 28854 | fi |
| 28855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5 |
| 28856 | $as_echo "$curl_cv_header_ws2tcpip_h" >&6; } |
| 28857 | case "$curl_cv_header_ws2tcpip_h" in |
| 28858 | yes) |
| 28859 | |
| 28860 | cat >>confdefs.h <<_ACEOF |
| 28861 | #define HAVE_WS2TCPIP_H 1 |
| 28862 | _ACEOF |
| 28863 | |
| 28864 | ;; |
| 28865 | esac |
| 28866 | |
| 28867 | |
| 28868 | |
| 28869 | curl_includes_sys_socket="\ |
| 28870 | /* includes start */ |
| 28871 | #ifdef HAVE_SYS_TYPES_H |
| 28872 | # include <sys/types.h> |
| 28873 | #endif |
| 28874 | #ifdef HAVE_SYS_SOCKET_H |
| 28875 | # include <sys/socket.h> |
| 28876 | #endif |
| 28877 | /* includes end */" |
| 28878 | for ac_header in sys/types.h sys/socket.h |
| 28879 | do : |
| 28880 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 28881 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket |
| 28882 | " |
| 28883 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 28884 | cat >>confdefs.h <<_ACEOF |
| 28885 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 28886 | _ACEOF |
| 28887 | |
| 28888 | fi |
| 28889 | |
| 28890 | done |
| 28891 | |
| 28892 | |
| 28893 | |
| 28894 | curl_preprocess_callconv="\ |
| 28895 | /* preprocess start */ |
| 28896 | #ifdef HAVE_WINDOWS_H |
| 28897 | # define FUNCALLCONV __stdcall |
| 28898 | #else |
| 28899 | # define FUNCALLCONV |
| 28900 | #endif |
| 28901 | /* preprocess end */" |
| 28902 | |
| 28903 | |
| 28904 | # |
| 28905 | # |
| 28906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_socklen_t data type" >&5 |
| 28907 | $as_echo_n "checking for curl_socklen_t data type... " >&6; } |
| 28908 | curl_typeof_curl_socklen_t="unknown" |
| 28909 | for arg1 in int SOCKET; do |
| 28910 | for arg2 in 'struct sockaddr' void; do |
| 28911 | for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do |
| 28912 | if test "$curl_typeof_curl_socklen_t" = "unknown"; then |
| 28913 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28914 | /* end confdefs.h. */ |
| 28915 | |
| 28916 | |
| 28917 | $curl_includes_ws2tcpip |
| 28918 | $curl_includes_sys_socket |
| 28919 | $curl_preprocess_callconv |
| 28920 | extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *); |
| 28921 | |
| 28922 | int main (void) |
| 28923 | { |
| 28924 | |
| 28925 | $t *lenptr = 0; |
| 28926 | if(0 != getpeername(0, 0, lenptr)) |
| 28927 | return 1; |
| 28928 | |
| 28929 | ; |
| 28930 | return 0; |
| 28931 | } |
| 28932 | |
| 28933 | _ACEOF |
| 28934 | if ac_fn_c_try_compile "$LINENO"; then : |
| 28935 | |
| 28936 | curl_typeof_curl_socklen_t="$t" |
| 28937 | |
| 28938 | fi |
| 28939 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28940 | fi |
| 28941 | done |
| 28942 | done |
| 28943 | done |
| 28944 | for t in socklen_t int; do |
| 28945 | if test "$curl_typeof_curl_socklen_t" = "void"; then |
| 28946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28947 | /* end confdefs.h. */ |
| 28948 | |
| 28949 | |
| 28950 | $curl_includes_sys_socket |
| 28951 | typedef $t curl_socklen_t; |
| 28952 | |
| 28953 | int main (void) |
| 28954 | { |
| 28955 | |
| 28956 | curl_socklen_t dummy; |
| 28957 | |
| 28958 | ; |
| 28959 | return 0; |
| 28960 | } |
| 28961 | |
| 28962 | _ACEOF |
| 28963 | if ac_fn_c_try_compile "$LINENO"; then : |
| 28964 | |
| 28965 | curl_typeof_curl_socklen_t="$t" |
| 28966 | |
| 28967 | fi |
| 28968 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 28969 | fi |
| 28970 | done |
| 28971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_socklen_t" >&5 |
| 28972 | $as_echo "$curl_typeof_curl_socklen_t" >&6; } |
| 28973 | if test "$curl_typeof_curl_socklen_t" = "void" || |
| 28974 | test "$curl_typeof_curl_socklen_t" = "unknown"; then |
| 28975 | as_fn_error $? "cannot find data type for curl_socklen_t." "$LINENO" 5 |
| 28976 | fi |
| 28977 | # |
| 28978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_socklen_t" >&5 |
| 28979 | $as_echo_n "checking size of curl_socklen_t... " >&6; } |
| 28980 | curl_sizeof_curl_socklen_t="unknown" |
| 28981 | curl_pull_headers_socklen_t="unknown" |
| 28982 | if test "$curl_cv_header_ws2tcpip_h" = "yes"; then |
| 28983 | tst_pull_header_checks='none ws2tcpip' |
| 28984 | tst_size_checks='4' |
| 28985 | else |
| 28986 | tst_pull_header_checks='none systypes syssocket' |
| 28987 | tst_size_checks='4 8 2' |
| 28988 | fi |
| 28989 | for tst_size in $tst_size_checks; do |
| 28990 | for tst_pull_headers in $tst_pull_header_checks; do |
| 28991 | if test "$curl_sizeof_curl_socklen_t" = "unknown"; then |
| 28992 | case $tst_pull_headers in |
| 28993 | ws2tcpip) |
| 28994 | tmp_includes="$curl_includes_ws2tcpip" |
| 28995 | ;; |
| 28996 | systypes) |
| 28997 | tmp_includes="$curl_includes_sys_types" |
| 28998 | ;; |
| 28999 | syssocket) |
| 29000 | tmp_includes="$curl_includes_sys_socket" |
| 29001 | ;; |
| 29002 | *) |
| 29003 | tmp_includes="" |
| 29004 | ;; |
| 29005 | esac |
| 29006 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29007 | /* end confdefs.h. */ |
| 29008 | |
| 29009 | |
| 29010 | $tmp_includes |
| 29011 | typedef $curl_typeof_curl_socklen_t curl_socklen_t; |
| 29012 | typedef char dummy_arr[sizeof(curl_socklen_t) == $tst_size ? 1 : -1]; |
| 29013 | |
| 29014 | int main (void) |
| 29015 | { |
| 29016 | |
| 29017 | curl_socklen_t dummy; |
| 29018 | |
| 29019 | ; |
| 29020 | return 0; |
| 29021 | } |
| 29022 | |
| 29023 | _ACEOF |
| 29024 | if ac_fn_c_try_compile "$LINENO"; then : |
| 29025 | |
| 29026 | curl_sizeof_curl_socklen_t="$tst_size" |
| 29027 | curl_pull_headers_socklen_t="$tst_pull_headers" |
| 29028 | |
| 29029 | fi |
| 29030 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29031 | fi |
| 29032 | done |
| 29033 | done |
| 29034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_socklen_t" >&5 |
| 29035 | $as_echo "$curl_sizeof_curl_socklen_t" >&6; } |
| 29036 | if test "$curl_sizeof_curl_socklen_t" = "unknown"; then |
| 29037 | as_fn_error $? "cannot find out size of curl_socklen_t." "$LINENO" 5 |
| 29038 | fi |
| 29039 | # |
| 29040 | case $curl_pull_headers_socklen_t in |
| 29041 | ws2tcpip) |
| 29042 | |
| 29043 | cat >>confdefs.h <<_EOF |
| 29044 | #define CURL_PULL_WS2TCPIP_H 1 |
| 29045 | _EOF |
| 29046 | |
| 29047 | ;; |
| 29048 | systypes) |
| 29049 | |
| 29050 | cat >>confdefs.h <<_EOF |
| 29051 | #define CURL_PULL_SYS_TYPES_H 1 |
| 29052 | _EOF |
| 29053 | |
| 29054 | ;; |
| 29055 | syssocket) |
| 29056 | |
| 29057 | cat >>confdefs.h <<_EOF |
| 29058 | #define CURL_PULL_SYS_TYPES_H 1 |
| 29059 | _EOF |
| 29060 | |
| 29061 | |
| 29062 | cat >>confdefs.h <<_EOF |
| 29063 | #define CURL_PULL_SYS_SOCKET_H 1 |
| 29064 | _EOF |
| 29065 | |
| 29066 | ;; |
| 29067 | esac |
| 29068 | |
| 29069 | cat >>confdefs.h <<_EOF |
| 29070 | #define CURL_TYPEOF_CURL_SOCKLEN_T $curl_typeof_curl_socklen_t |
| 29071 | _EOF |
| 29072 | |
| 29073 | |
| 29074 | cat >>confdefs.h <<_EOF |
| 29075 | #define CURL_SIZEOF_CURL_SOCKLEN_T $curl_sizeof_curl_socklen_t |
| 29076 | _EOF |
| 29077 | |
| 29078 | |
| 29079 | |
| 29080 | |
| 29081 | curl_includes_poll="\ |
| 29082 | /* includes start */ |
| 29083 | #ifdef HAVE_SYS_TYPES_H |
| 29084 | # include <sys/types.h> |
| 29085 | #endif |
| 29086 | #ifdef HAVE_POLL_H |
| 29087 | # include <poll.h> |
| 29088 | #endif |
| 29089 | #ifdef HAVE_SYS_POLL_H |
| 29090 | # include <sys/poll.h> |
| 29091 | #endif |
| 29092 | /* includes end */" |
| 29093 | for ac_header in sys/types.h poll.h sys/poll.h |
| 29094 | do : |
| 29095 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 29096 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll |
| 29097 | " |
| 29098 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 29099 | cat >>confdefs.h <<_ACEOF |
| 29100 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 29101 | _ACEOF |
| 29102 | |
| 29103 | fi |
| 29104 | |
| 29105 | done |
| 29106 | |
| 29107 | |
| 29108 | |
| 29109 | # |
| 29110 | tst_poll_events_macro_defined="unknown" |
| 29111 | # |
| 29112 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29113 | /* end confdefs.h. */ |
| 29114 | |
| 29115 | |
| 29116 | $curl_includes_poll |
| 29117 | |
| 29118 | int main (void) |
| 29119 | { |
| 29120 | |
| 29121 | #if defined(events) || defined(revents) |
| 29122 | return 0; |
| 29123 | #else |
| 29124 | force compilation error |
| 29125 | #endif |
| 29126 | |
| 29127 | ; |
| 29128 | return 0; |
| 29129 | } |
| 29130 | |
| 29131 | _ACEOF |
| 29132 | if ac_fn_c_try_compile "$LINENO"; then : |
| 29133 | |
| 29134 | tst_poll_events_macro_defined="yes" |
| 29135 | |
| 29136 | else |
| 29137 | |
| 29138 | tst_poll_events_macro_defined="no" |
| 29139 | |
| 29140 | fi |
| 29141 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29142 | # |
| 29143 | if test "$tst_poll_events_macro_defined" = "yes"; then |
| 29144 | if test "x$ac_cv_header_sys_poll_h" = "xyes"; then |
| 29145 | |
| 29146 | cat >>confdefs.h <<_EOF |
| 29147 | #define CURL_PULL_SYS_POLL_H 1 |
| 29148 | _EOF |
| 29149 | |
| 29150 | fi |
| 29151 | fi |
| 29152 | # |
| 29153 | |
| 29154 | |
| 29155 | |
| 29156 | ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" " |
| 29157 | #undef inline |
| 29158 | #ifdef HAVE_WINDOWS_H |
| 29159 | #ifndef WIN32_LEAN_AND_MEAN |
| 29160 | #define WIN32_LEAN_AND_MEAN |
| 29161 | #endif |
| 29162 | #include <windows.h> |
| 29163 | #ifdef HAVE_WINSOCK2_H |
| 29164 | #include <winsock2.h> |
| 29165 | #else |
| 29166 | #ifdef HAVE_WINSOCK_H |
| 29167 | #include <winsock.h> |
| 29168 | #endif |
| 29169 | #endif |
| 29170 | #else |
| 29171 | #ifdef HAVE_SYS_TYPES_H |
| 29172 | #include <sys/types.h> |
| 29173 | #endif |
| 29174 | #ifdef HAVE_SYS_SOCKET_H |
| 29175 | #include <sys/socket.h> |
| 29176 | #endif |
| 29177 | #ifdef HAVE_NETINET_IN_H |
| 29178 | #include <netinet/in.h> |
| 29179 | #endif |
| 29180 | #ifdef HAVE_ARPA_INET_H |
| 29181 | #include <arpa/inet.h> |
| 29182 | #endif |
| 29183 | #endif |
| 29184 | |
| 29185 | " |
| 29186 | if test "x$ac_cv_type_in_addr_t" = xyes; then : |
| 29187 | |
| 29188 | else |
| 29189 | |
| 29190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5 |
| 29191 | $as_echo_n "checking for in_addr_t equivalent... " >&6; } |
| 29192 | if ${curl_cv_in_addr_t_equiv+:} false; then : |
| 29193 | $as_echo_n "(cached) " >&6 |
| 29194 | else |
| 29195 | |
| 29196 | curl_cv_in_addr_t_equiv="unknown" |
| 29197 | for t in "unsigned long" int size_t unsigned long; do |
| 29198 | if test "$curl_cv_in_addr_t_equiv" = "unknown"; then |
| 29199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29200 | /* end confdefs.h. */ |
| 29201 | |
| 29202 | |
| 29203 | #undef inline |
| 29204 | #ifdef HAVE_WINDOWS_H |
| 29205 | #ifndef WIN32_LEAN_AND_MEAN |
| 29206 | #define WIN32_LEAN_AND_MEAN |
| 29207 | #endif |
| 29208 | #include <windows.h> |
| 29209 | #ifdef HAVE_WINSOCK2_H |
| 29210 | #include <winsock2.h> |
| 29211 | #else |
| 29212 | #ifdef HAVE_WINSOCK_H |
| 29213 | #include <winsock.h> |
| 29214 | #endif |
| 29215 | #endif |
| 29216 | #else |
| 29217 | #ifdef HAVE_SYS_TYPES_H |
| 29218 | #include <sys/types.h> |
| 29219 | #endif |
| 29220 | #ifdef HAVE_SYS_SOCKET_H |
| 29221 | #include <sys/socket.h> |
| 29222 | #endif |
| 29223 | #ifdef HAVE_NETINET_IN_H |
| 29224 | #include <netinet/in.h> |
| 29225 | #endif |
| 29226 | #ifdef HAVE_ARPA_INET_H |
| 29227 | #include <arpa/inet.h> |
| 29228 | #endif |
| 29229 | #endif |
| 29230 | |
| 29231 | int main (void) |
| 29232 | { |
| 29233 | |
| 29234 | $t data = inet_addr ("1.2.3.4"); |
| 29235 | |
| 29236 | ; |
| 29237 | return 0; |
| 29238 | } |
| 29239 | |
| 29240 | _ACEOF |
| 29241 | if ac_fn_c_try_link "$LINENO"; then : |
| 29242 | |
| 29243 | curl_cv_in_addr_t_equiv="$t" |
| 29244 | |
| 29245 | fi |
| 29246 | rm -f core conftest.err conftest.$ac_objext \ |
| 29247 | conftest$ac_exeext conftest.$ac_ext |
| 29248 | fi |
| 29249 | done |
| 29250 | |
| 29251 | fi |
| 29252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5 |
| 29253 | $as_echo "$curl_cv_in_addr_t_equiv" >&6; } |
| 29254 | case "$curl_cv_in_addr_t_equiv" in |
| 29255 | unknown) |
| 29256 | as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5 |
| 29257 | ;; |
| 29258 | *) |
| 29259 | |
| 29260 | cat >>confdefs.h <<_ACEOF |
| 29261 | #define in_addr_t $curl_cv_in_addr_t_equiv |
| 29262 | _ACEOF |
| 29263 | |
| 29264 | ;; |
| 29265 | esac |
| 29266 | |
| 29267 | fi |
| 29268 | |
| 29269 | |
| 29270 | |
| 29271 | |
| 29272 | ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" " |
| 29273 | #undef inline |
| 29274 | #ifdef HAVE_WINDOWS_H |
| 29275 | #ifndef WIN32_LEAN_AND_MEAN |
| 29276 | #define WIN32_LEAN_AND_MEAN |
| 29277 | #endif |
| 29278 | #include <windows.h> |
| 29279 | #ifdef HAVE_WINSOCK2_H |
| 29280 | #include <winsock2.h> |
| 29281 | #endif |
| 29282 | #else |
| 29283 | #ifdef HAVE_SYS_TYPES_H |
| 29284 | #include <sys/types.h> |
| 29285 | #endif |
| 29286 | #ifdef HAVE_SYS_SOCKET_H |
| 29287 | #include <sys/socket.h> |
| 29288 | #endif |
| 29289 | #ifdef HAVE_NETINET_IN_H |
| 29290 | #include <netinet/in.h> |
| 29291 | #endif |
| 29292 | #ifdef HAVE_ARPA_INET_H |
| 29293 | #include <arpa/inet.h> |
| 29294 | #endif |
| 29295 | #endif |
| 29296 | |
| 29297 | " |
| 29298 | if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then : |
| 29299 | |
| 29300 | $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h |
| 29301 | |
| 29302 | fi |
| 29303 | |
| 29304 | |
| 29305 | |
| 29306 | |
| 29307 | for ac_header in signal.h |
| 29308 | do : |
| 29309 | ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default" |
| 29310 | if test "x$ac_cv_header_signal_h" = xyes; then : |
| 29311 | cat >>confdefs.h <<_ACEOF |
| 29312 | #define HAVE_SIGNAL_H 1 |
| 29313 | _ACEOF |
| 29314 | |
| 29315 | fi |
| 29316 | |
| 29317 | done |
| 29318 | |
| 29319 | ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" " |
| 29320 | #ifdef HAVE_SIGNAL_H |
| 29321 | #include <signal.h> |
| 29322 | #endif |
| 29323 | |
| 29324 | " |
| 29325 | if test "x$ac_cv_type_sig_atomic_t" = xyes; then : |
| 29326 | |
| 29327 | |
| 29328 | $as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h |
| 29329 | |
| 29330 | |
| 29331 | fi |
| 29332 | |
| 29333 | case "$ac_cv_type_sig_atomic_t" in |
| 29334 | yes) |
| 29335 | # |
| 29336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5 |
| 29337 | $as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; } |
| 29338 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29339 | /* end confdefs.h. */ |
| 29340 | |
| 29341 | |
| 29342 | #ifdef HAVE_SIGNAL_H |
| 29343 | #include <signal.h> |
| 29344 | #endif |
| 29345 | |
| 29346 | int main (void) |
| 29347 | { |
| 29348 | |
| 29349 | static volatile sig_atomic_t dummy = 0; |
| 29350 | |
| 29351 | ; |
| 29352 | return 0; |
| 29353 | } |
| 29354 | |
| 29355 | _ACEOF |
| 29356 | if ac_fn_c_try_link "$LINENO"; then : |
| 29357 | |
| 29358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 29359 | $as_echo "no" >&6; } |
| 29360 | curl_cv_sig_atomic_t_volatile="no" |
| 29361 | |
| 29362 | else |
| 29363 | |
| 29364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 29365 | $as_echo "yes" >&6; } |
| 29366 | curl_cv_sig_atomic_t_volatile="yes" |
| 29367 | |
| 29368 | fi |
| 29369 | rm -f core conftest.err conftest.$ac_objext \ |
| 29370 | conftest$ac_exeext conftest.$ac_ext |
| 29371 | # |
| 29372 | if test "$curl_cv_sig_atomic_t_volatile" = "yes"; then |
| 29373 | |
| 29374 | $as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h |
| 29375 | |
| 29376 | fi |
| 29377 | ;; |
| 29378 | esac |
| 29379 | |
| 29380 | |
| 29381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 |
| 29382 | $as_echo_n "checking return type of signal handlers... " >&6; } |
| 29383 | if ${ac_cv_type_signal+:} false; then : |
| 29384 | $as_echo_n "(cached) " >&6 |
| 29385 | else |
| 29386 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29387 | /* end confdefs.h. */ |
| 29388 | #include <sys/types.h> |
| 29389 | #include <signal.h> |
| 29390 | |
| 29391 | int main (void) |
| 29392 | { |
| 29393 | return *(signal (0, 0)) (0) == 1; |
| 29394 | ; |
| 29395 | return 0; |
| 29396 | } |
| 29397 | _ACEOF |
| 29398 | if ac_fn_c_try_compile "$LINENO"; then : |
| 29399 | ac_cv_type_signal=int |
| 29400 | else |
| 29401 | ac_cv_type_signal=void |
| 29402 | fi |
| 29403 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29404 | fi |
| 29405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 |
| 29406 | $as_echo "$ac_cv_type_signal" >&6; } |
| 29407 | |
| 29408 | cat >>confdefs.h <<_ACEOF |
| 29409 | #define RETSIGTYPE $ac_cv_type_signal |
| 29410 | _ACEOF |
| 29411 | |
| 29412 | |
| 29413 | |
| 29414 | |
| 29415 | for ac_header in sys/select.h sys/socket.h |
| 29416 | do : |
| 29417 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 29418 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 29419 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 29420 | cat >>confdefs.h <<_ACEOF |
| 29421 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 29422 | _ACEOF |
| 29423 | |
| 29424 | fi |
| 29425 | |
| 29426 | done |
| 29427 | |
| 29428 | # |
| 29429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5 |
| 29430 | $as_echo_n "checking for select... " >&6; } |
| 29431 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29432 | /* end confdefs.h. */ |
| 29433 | |
| 29434 | |
| 29435 | #undef inline |
| 29436 | #ifdef HAVE_WINDOWS_H |
| 29437 | #ifndef WIN32_LEAN_AND_MEAN |
| 29438 | #define WIN32_LEAN_AND_MEAN |
| 29439 | #endif |
| 29440 | #include <windows.h> |
| 29441 | #ifdef HAVE_WINSOCK2_H |
| 29442 | #include <winsock2.h> |
| 29443 | #else |
| 29444 | #ifdef HAVE_WINSOCK_H |
| 29445 | #include <winsock.h> |
| 29446 | #endif |
| 29447 | #endif |
| 29448 | #endif |
| 29449 | #ifdef HAVE_SYS_TYPES_H |
| 29450 | #include <sys/types.h> |
| 29451 | #endif |
| 29452 | #ifdef HAVE_SYS_TIME_H |
| 29453 | #include <sys/time.h> |
| 29454 | #ifdef TIME_WITH_SYS_TIME |
| 29455 | #include <time.h> |
| 29456 | #endif |
| 29457 | #else |
| 29458 | #ifdef HAVE_TIME_H |
| 29459 | #include <time.h> |
| 29460 | #endif |
| 29461 | #endif |
| 29462 | #ifndef HAVE_WINDOWS_H |
| 29463 | #ifdef HAVE_SYS_SELECT_H |
| 29464 | #include <sys/select.h> |
| 29465 | #endif |
| 29466 | #ifdef HAVE_SYS_SOCKET_H |
| 29467 | #include <sys/socket.h> |
| 29468 | #endif |
| 29469 | #endif |
| 29470 | |
| 29471 | int main (void) |
| 29472 | { |
| 29473 | |
| 29474 | select(0, 0, 0, 0, 0); |
| 29475 | |
| 29476 | ; |
| 29477 | return 0; |
| 29478 | } |
| 29479 | |
| 29480 | _ACEOF |
| 29481 | if ac_fn_c_try_link "$LINENO"; then : |
| 29482 | |
| 29483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 29484 | $as_echo "yes" >&6; } |
| 29485 | curl_cv_select="yes" |
| 29486 | |
| 29487 | else |
| 29488 | |
| 29489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 29490 | $as_echo "no" >&6; } |
| 29491 | curl_cv_select="no" |
| 29492 | |
| 29493 | fi |
| 29494 | rm -f core conftest.err conftest.$ac_objext \ |
| 29495 | conftest$ac_exeext conftest.$ac_ext |
| 29496 | # |
| 29497 | if test "$curl_cv_select" = "yes"; then |
| 29498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5 |
| 29499 | $as_echo_n "checking types of args and return type for select... " >&6; } |
| 29500 | if ${curl_cv_func_select_args+:} false; then : |
| 29501 | $as_echo_n "(cached) " >&6 |
| 29502 | else |
| 29503 | |
| 29504 | curl_cv_func_select_args="unknown" |
| 29505 | for sel_retv in 'int' 'ssize_t'; do |
| 29506 | for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do |
| 29507 | for sel_arg234 in 'fd_set *' 'int *' 'void *'; do |
| 29508 | for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do |
| 29509 | if test "$curl_cv_func_select_args" = "unknown"; then |
| 29510 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29511 | /* end confdefs.h. */ |
| 29512 | |
| 29513 | |
| 29514 | #undef inline |
| 29515 | #ifdef HAVE_WINDOWS_H |
| 29516 | #ifndef WIN32_LEAN_AND_MEAN |
| 29517 | #define WIN32_LEAN_AND_MEAN |
| 29518 | #endif |
| 29519 | #include <windows.h> |
| 29520 | #ifdef HAVE_WINSOCK2_H |
| 29521 | #include <winsock2.h> |
| 29522 | #else |
| 29523 | #ifdef HAVE_WINSOCK_H |
| 29524 | #include <winsock.h> |
| 29525 | #endif |
| 29526 | #endif |
| 29527 | #define SELECTCALLCONV PASCAL |
| 29528 | #endif |
| 29529 | #ifdef HAVE_SYS_TYPES_H |
| 29530 | #include <sys/types.h> |
| 29531 | #endif |
| 29532 | #ifdef HAVE_SYS_TIME_H |
| 29533 | #include <sys/time.h> |
| 29534 | #ifdef TIME_WITH_SYS_TIME |
| 29535 | #include <time.h> |
| 29536 | #endif |
| 29537 | #else |
| 29538 | #ifdef HAVE_TIME_H |
| 29539 | #include <time.h> |
| 29540 | #endif |
| 29541 | #endif |
| 29542 | #ifndef HAVE_WINDOWS_H |
| 29543 | #ifdef HAVE_SYS_SELECT_H |
| 29544 | #include <sys/select.h> |
| 29545 | #endif |
| 29546 | #ifdef HAVE_SYS_SOCKET_H |
| 29547 | #include <sys/socket.h> |
| 29548 | #endif |
| 29549 | #define SELECTCALLCONV |
| 29550 | #endif |
| 29551 | #ifndef HAVE_STRUCT_TIMEVAL |
| 29552 | struct timeval { |
| 29553 | long tv_sec; |
| 29554 | long tv_usec; |
| 29555 | }; |
| 29556 | #endif |
| 29557 | extern $sel_retv SELECTCALLCONV select($sel_arg1, |
| 29558 | $sel_arg234, |
| 29559 | $sel_arg234, |
| 29560 | $sel_arg234, |
| 29561 | $sel_arg5); |
| 29562 | |
| 29563 | int main (void) |
| 29564 | { |
| 29565 | |
| 29566 | $sel_arg1 nfds=0; |
| 29567 | $sel_arg234 rfds=0; |
| 29568 | $sel_arg234 wfds=0; |
| 29569 | $sel_arg234 efds=0; |
| 29570 | $sel_retv res = select(nfds, rfds, wfds, efds, 0); |
| 29571 | |
| 29572 | ; |
| 29573 | return 0; |
| 29574 | } |
| 29575 | |
| 29576 | _ACEOF |
| 29577 | if ac_fn_c_try_compile "$LINENO"; then : |
| 29578 | |
| 29579 | curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv" |
| 29580 | |
| 29581 | fi |
| 29582 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29583 | fi |
| 29584 | done |
| 29585 | done |
| 29586 | done |
| 29587 | done |
| 29588 | |
| 29589 | fi |
| 29590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5 |
| 29591 | $as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK |
| 29592 | if test "$curl_cv_func_select_args" = "unknown"; then |
| 29593 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5 |
| 29594 | $as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;} |
| 29595 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5 |
| 29596 | $as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;} |
| 29597 | else |
| 29598 | select_prev_IFS=$IFS; IFS=',' |
| 29599 | set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'` |
| 29600 | IFS=$select_prev_IFS |
| 29601 | shift |
| 29602 | # |
| 29603 | sel_qual_type_arg5=$3 |
| 29604 | # |
| 29605 | |
| 29606 | cat >>confdefs.h <<_ACEOF |
| 29607 | #define SELECT_TYPE_ARG1 $1 |
| 29608 | _ACEOF |
| 29609 | |
| 29610 | |
| 29611 | cat >>confdefs.h <<_ACEOF |
| 29612 | #define SELECT_TYPE_ARG234 $2 |
| 29613 | _ACEOF |
| 29614 | |
| 29615 | |
| 29616 | cat >>confdefs.h <<_ACEOF |
| 29617 | #define SELECT_TYPE_RETV $4 |
| 29618 | _ACEOF |
| 29619 | |
| 29620 | # |
| 29621 | prev_sh_opts=$- |
| 29622 | # |
| 29623 | case $prev_sh_opts in |
| 29624 | *f*) |
| 29625 | ;; |
| 29626 | *) |
| 29627 | set -f |
| 29628 | ;; |
| 29629 | esac |
| 29630 | # |
| 29631 | case "$sel_qual_type_arg5" in |
| 29632 | const*) |
| 29633 | sel_qual_arg5=const |
| 29634 | sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'` |
| 29635 | ;; |
| 29636 | *) |
| 29637 | sel_qual_arg5= |
| 29638 | sel_type_arg5=$sel_qual_type_arg5 |
| 29639 | ;; |
| 29640 | esac |
| 29641 | # |
| 29642 | |
| 29643 | cat >>confdefs.h <<_ACEOF |
| 29644 | #define SELECT_QUAL_ARG5 $sel_qual_arg5 |
| 29645 | _ACEOF |
| 29646 | |
| 29647 | |
| 29648 | cat >>confdefs.h <<_ACEOF |
| 29649 | #define SELECT_TYPE_ARG5 $sel_type_arg5 |
| 29650 | _ACEOF |
| 29651 | |
| 29652 | # |
| 29653 | case $prev_sh_opts in |
| 29654 | *f*) |
| 29655 | ;; |
| 29656 | *) |
| 29657 | set +f |
| 29658 | ;; |
| 29659 | esac |
| 29660 | # |
| 29661 | |
| 29662 | cat >>confdefs.h <<_ACEOF |
| 29663 | #define HAVE_SELECT 1 |
| 29664 | _ACEOF |
| 29665 | |
| 29666 | curl_cv_func_select="yes" |
| 29667 | fi |
| 29668 | fi |
| 29669 | |
| 29670 | |
| 29671 | |
| 29672 | for ac_header in sys/types.h sys/socket.h |
| 29673 | do : |
| 29674 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 29675 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 29676 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 29677 | cat >>confdefs.h <<_ACEOF |
| 29678 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 29679 | _ACEOF |
| 29680 | |
| 29681 | fi |
| 29682 | |
| 29683 | done |
| 29684 | |
| 29685 | # |
| 29686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5 |
| 29687 | $as_echo_n "checking for recv... " >&6; } |
| 29688 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29689 | /* end confdefs.h. */ |
| 29690 | |
| 29691 | |
| 29692 | #undef inline |
| 29693 | #ifdef HAVE_WINDOWS_H |
| 29694 | #ifndef WIN32_LEAN_AND_MEAN |
| 29695 | #define WIN32_LEAN_AND_MEAN |
| 29696 | #endif |
| 29697 | #include <windows.h> |
| 29698 | #ifdef HAVE_WINSOCK2_H |
| 29699 | #include <winsock2.h> |
| 29700 | #else |
| 29701 | #ifdef HAVE_WINSOCK_H |
| 29702 | #include <winsock.h> |
| 29703 | #endif |
| 29704 | #endif |
| 29705 | #else |
| 29706 | #ifdef HAVE_SYS_TYPES_H |
| 29707 | #include <sys/types.h> |
| 29708 | #endif |
| 29709 | #ifdef HAVE_SYS_SOCKET_H |
| 29710 | #include <sys/socket.h> |
| 29711 | #endif |
| 29712 | #endif |
| 29713 | |
| 29714 | int main (void) |
| 29715 | { |
| 29716 | |
| 29717 | recv(0, 0, 0, 0); |
| 29718 | |
| 29719 | ; |
| 29720 | return 0; |
| 29721 | } |
| 29722 | |
| 29723 | _ACEOF |
| 29724 | if ac_fn_c_try_link "$LINENO"; then : |
| 29725 | |
| 29726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 29727 | $as_echo "yes" >&6; } |
| 29728 | curl_cv_recv="yes" |
| 29729 | |
| 29730 | else |
| 29731 | |
| 29732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 29733 | $as_echo "no" >&6; } |
| 29734 | curl_cv_recv="no" |
| 29735 | |
| 29736 | fi |
| 29737 | rm -f core conftest.err conftest.$ac_objext \ |
| 29738 | conftest$ac_exeext conftest.$ac_ext |
| 29739 | # |
| 29740 | if test "$curl_cv_recv" = "yes"; then |
| 29741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5 |
| 29742 | $as_echo_n "checking types of args and return type for recv... " >&6; } |
| 29743 | if ${curl_cv_func_recv_args+:} false; then : |
| 29744 | $as_echo_n "(cached) " >&6 |
| 29745 | else |
| 29746 | |
| 29747 | curl_cv_func_recv_args="unknown" |
| 29748 | for recv_retv in 'int' 'ssize_t'; do |
| 29749 | for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do |
| 29750 | for recv_arg2 in 'char *' 'void *'; do |
| 29751 | for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do |
| 29752 | for recv_arg4 in 'int' 'unsigned int'; do |
| 29753 | if test "$curl_cv_func_recv_args" = "unknown"; then |
| 29754 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29755 | /* end confdefs.h. */ |
| 29756 | |
| 29757 | |
| 29758 | #undef inline |
| 29759 | #ifdef HAVE_WINDOWS_H |
| 29760 | #ifndef WIN32_LEAN_AND_MEAN |
| 29761 | #define WIN32_LEAN_AND_MEAN |
| 29762 | #endif |
| 29763 | #include <windows.h> |
| 29764 | #ifdef HAVE_WINSOCK2_H |
| 29765 | #include <winsock2.h> |
| 29766 | #else |
| 29767 | #ifdef HAVE_WINSOCK_H |
| 29768 | #include <winsock.h> |
| 29769 | #endif |
| 29770 | #endif |
| 29771 | #define RECVCALLCONV PASCAL |
| 29772 | #else |
| 29773 | #ifdef HAVE_SYS_TYPES_H |
| 29774 | #include <sys/types.h> |
| 29775 | #endif |
| 29776 | #ifdef HAVE_SYS_SOCKET_H |
| 29777 | #include <sys/socket.h> |
| 29778 | #endif |
| 29779 | #define RECVCALLCONV |
| 29780 | #endif |
| 29781 | extern $recv_retv RECVCALLCONV |
| 29782 | recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4); |
| 29783 | |
| 29784 | int main (void) |
| 29785 | { |
| 29786 | |
| 29787 | $recv_arg1 s=0; |
| 29788 | $recv_arg2 buf=0; |
| 29789 | $recv_arg3 len=0; |
| 29790 | $recv_arg4 flags=0; |
| 29791 | $recv_retv res = recv(s, buf, len, flags); |
| 29792 | |
| 29793 | ; |
| 29794 | return 0; |
| 29795 | } |
| 29796 | |
| 29797 | _ACEOF |
| 29798 | if ac_fn_c_try_compile "$LINENO"; then : |
| 29799 | |
| 29800 | curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv" |
| 29801 | |
| 29802 | fi |
| 29803 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29804 | fi |
| 29805 | done |
| 29806 | done |
| 29807 | done |
| 29808 | done |
| 29809 | done |
| 29810 | |
| 29811 | fi |
| 29812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5 |
| 29813 | $as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK |
| 29814 | if test "$curl_cv_func_recv_args" = "unknown"; then |
| 29815 | as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5 |
| 29816 | else |
| 29817 | recv_prev_IFS=$IFS; IFS=',' |
| 29818 | set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'` |
| 29819 | IFS=$recv_prev_IFS |
| 29820 | shift |
| 29821 | # |
| 29822 | |
| 29823 | cat >>confdefs.h <<_ACEOF |
| 29824 | #define RECV_TYPE_ARG1 $1 |
| 29825 | _ACEOF |
| 29826 | |
| 29827 | |
| 29828 | cat >>confdefs.h <<_ACEOF |
| 29829 | #define RECV_TYPE_ARG2 $2 |
| 29830 | _ACEOF |
| 29831 | |
| 29832 | |
| 29833 | cat >>confdefs.h <<_ACEOF |
| 29834 | #define RECV_TYPE_ARG3 $3 |
| 29835 | _ACEOF |
| 29836 | |
| 29837 | |
| 29838 | cat >>confdefs.h <<_ACEOF |
| 29839 | #define RECV_TYPE_ARG4 $4 |
| 29840 | _ACEOF |
| 29841 | |
| 29842 | |
| 29843 | cat >>confdefs.h <<_ACEOF |
| 29844 | #define RECV_TYPE_RETV $5 |
| 29845 | _ACEOF |
| 29846 | |
| 29847 | # |
| 29848 | |
| 29849 | cat >>confdefs.h <<_ACEOF |
| 29850 | #define HAVE_RECV 1 |
| 29851 | _ACEOF |
| 29852 | |
| 29853 | curl_cv_func_recv="yes" |
| 29854 | fi |
| 29855 | else |
| 29856 | as_fn_error $? "Unable to link function recv" "$LINENO" 5 |
| 29857 | fi |
| 29858 | |
| 29859 | |
| 29860 | for ac_header in sys/types.h sys/socket.h |
| 29861 | do : |
| 29862 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 29863 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 29864 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 29865 | cat >>confdefs.h <<_ACEOF |
| 29866 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 29867 | _ACEOF |
| 29868 | |
| 29869 | fi |
| 29870 | |
| 29871 | done |
| 29872 | |
| 29873 | # |
| 29874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5 |
| 29875 | $as_echo_n "checking for send... " >&6; } |
| 29876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29877 | /* end confdefs.h. */ |
| 29878 | |
| 29879 | |
| 29880 | #undef inline |
| 29881 | #ifdef HAVE_WINDOWS_H |
| 29882 | #ifndef WIN32_LEAN_AND_MEAN |
| 29883 | #define WIN32_LEAN_AND_MEAN |
| 29884 | #endif |
| 29885 | #include <windows.h> |
| 29886 | #ifdef HAVE_WINSOCK2_H |
| 29887 | #include <winsock2.h> |
| 29888 | #else |
| 29889 | #ifdef HAVE_WINSOCK_H |
| 29890 | #include <winsock.h> |
| 29891 | #endif |
| 29892 | #endif |
| 29893 | #else |
| 29894 | #ifdef HAVE_SYS_TYPES_H |
| 29895 | #include <sys/types.h> |
| 29896 | #endif |
| 29897 | #ifdef HAVE_SYS_SOCKET_H |
| 29898 | #include <sys/socket.h> |
| 29899 | #endif |
| 29900 | #endif |
| 29901 | |
| 29902 | int main (void) |
| 29903 | { |
| 29904 | |
| 29905 | send(0, 0, 0, 0); |
| 29906 | |
| 29907 | ; |
| 29908 | return 0; |
| 29909 | } |
| 29910 | |
| 29911 | _ACEOF |
| 29912 | if ac_fn_c_try_link "$LINENO"; then : |
| 29913 | |
| 29914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 29915 | $as_echo "yes" >&6; } |
| 29916 | curl_cv_send="yes" |
| 29917 | |
| 29918 | else |
| 29919 | |
| 29920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 29921 | $as_echo "no" >&6; } |
| 29922 | curl_cv_send="no" |
| 29923 | |
| 29924 | fi |
| 29925 | rm -f core conftest.err conftest.$ac_objext \ |
| 29926 | conftest$ac_exeext conftest.$ac_ext |
| 29927 | # |
| 29928 | if test "$curl_cv_send" = "yes"; then |
| 29929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5 |
| 29930 | $as_echo_n "checking types of args and return type for send... " >&6; } |
| 29931 | if ${curl_cv_func_send_args+:} false; then : |
| 29932 | $as_echo_n "(cached) " >&6 |
| 29933 | else |
| 29934 | |
| 29935 | curl_cv_func_send_args="unknown" |
| 29936 | for send_retv in 'int' 'ssize_t'; do |
| 29937 | for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do |
| 29938 | for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do |
| 29939 | for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do |
| 29940 | for send_arg4 in 'int' 'unsigned int'; do |
| 29941 | if test "$curl_cv_func_send_args" = "unknown"; then |
| 29942 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29943 | /* end confdefs.h. */ |
| 29944 | |
| 29945 | |
| 29946 | #undef inline |
| 29947 | #ifdef HAVE_WINDOWS_H |
| 29948 | #ifndef WIN32_LEAN_AND_MEAN |
| 29949 | #define WIN32_LEAN_AND_MEAN |
| 29950 | #endif |
| 29951 | #include <windows.h> |
| 29952 | #ifdef HAVE_WINSOCK2_H |
| 29953 | #include <winsock2.h> |
| 29954 | #else |
| 29955 | #ifdef HAVE_WINSOCK_H |
| 29956 | #include <winsock.h> |
| 29957 | #endif |
| 29958 | #endif |
| 29959 | #define SENDCALLCONV PASCAL |
| 29960 | #else |
| 29961 | #ifdef HAVE_SYS_TYPES_H |
| 29962 | #include <sys/types.h> |
| 29963 | #endif |
| 29964 | #ifdef HAVE_SYS_SOCKET_H |
| 29965 | #include <sys/socket.h> |
| 29966 | #endif |
| 29967 | #define SENDCALLCONV |
| 29968 | #endif |
| 29969 | extern $send_retv SENDCALLCONV |
| 29970 | send($send_arg1, $send_arg2, $send_arg3, $send_arg4); |
| 29971 | |
| 29972 | int main (void) |
| 29973 | { |
| 29974 | |
| 29975 | $send_arg1 s=0; |
| 29976 | $send_arg3 len=0; |
| 29977 | $send_arg4 flags=0; |
| 29978 | $send_retv res = send(s, 0, len, flags); |
| 29979 | |
| 29980 | ; |
| 29981 | return 0; |
| 29982 | } |
| 29983 | |
| 29984 | _ACEOF |
| 29985 | if ac_fn_c_try_compile "$LINENO"; then : |
| 29986 | |
| 29987 | curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv" |
| 29988 | |
| 29989 | fi |
| 29990 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29991 | fi |
| 29992 | done |
| 29993 | done |
| 29994 | done |
| 29995 | done |
| 29996 | done |
| 29997 | |
| 29998 | fi |
| 29999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5 |
| 30000 | $as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK |
| 30001 | if test "$curl_cv_func_send_args" = "unknown"; then |
| 30002 | as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5 |
| 30003 | else |
| 30004 | send_prev_IFS=$IFS; IFS=',' |
| 30005 | set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'` |
| 30006 | IFS=$send_prev_IFS |
| 30007 | shift |
| 30008 | # |
| 30009 | send_qual_type_arg2=$2 |
| 30010 | # |
| 30011 | |
| 30012 | cat >>confdefs.h <<_ACEOF |
| 30013 | #define SEND_TYPE_ARG1 $1 |
| 30014 | _ACEOF |
| 30015 | |
| 30016 | |
| 30017 | cat >>confdefs.h <<_ACEOF |
| 30018 | #define SEND_TYPE_ARG3 $3 |
| 30019 | _ACEOF |
| 30020 | |
| 30021 | |
| 30022 | cat >>confdefs.h <<_ACEOF |
| 30023 | #define SEND_TYPE_ARG4 $4 |
| 30024 | _ACEOF |
| 30025 | |
| 30026 | |
| 30027 | cat >>confdefs.h <<_ACEOF |
| 30028 | #define SEND_TYPE_RETV $5 |
| 30029 | _ACEOF |
| 30030 | |
| 30031 | # |
| 30032 | prev_sh_opts=$- |
| 30033 | # |
| 30034 | case $prev_sh_opts in |
| 30035 | *f*) |
| 30036 | ;; |
| 30037 | *) |
| 30038 | set -f |
| 30039 | ;; |
| 30040 | esac |
| 30041 | # |
| 30042 | case "$send_qual_type_arg2" in |
| 30043 | const*) |
| 30044 | send_qual_arg2=const |
| 30045 | send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'` |
| 30046 | ;; |
| 30047 | *) |
| 30048 | send_qual_arg2= |
| 30049 | send_type_arg2=$send_qual_type_arg2 |
| 30050 | ;; |
| 30051 | esac |
| 30052 | # |
| 30053 | |
| 30054 | cat >>confdefs.h <<_ACEOF |
| 30055 | #define SEND_QUAL_ARG2 $send_qual_arg2 |
| 30056 | _ACEOF |
| 30057 | |
| 30058 | |
| 30059 | cat >>confdefs.h <<_ACEOF |
| 30060 | #define SEND_TYPE_ARG2 $send_type_arg2 |
| 30061 | _ACEOF |
| 30062 | |
| 30063 | # |
| 30064 | case $prev_sh_opts in |
| 30065 | *f*) |
| 30066 | ;; |
| 30067 | *) |
| 30068 | set +f |
| 30069 | ;; |
| 30070 | esac |
| 30071 | # |
| 30072 | |
| 30073 | cat >>confdefs.h <<_ACEOF |
| 30074 | #define HAVE_SEND 1 |
| 30075 | _ACEOF |
| 30076 | |
| 30077 | curl_cv_func_send="yes" |
| 30078 | fi |
| 30079 | else |
| 30080 | as_fn_error $? "Unable to link function send" "$LINENO" 5 |
| 30081 | fi |
| 30082 | |
| 30083 | |
| 30084 | for ac_header in sys/types.h sys/socket.h |
| 30085 | do : |
| 30086 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 30087 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 30088 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 30089 | cat >>confdefs.h <<_ACEOF |
| 30090 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 30091 | _ACEOF |
| 30092 | |
| 30093 | fi |
| 30094 | |
| 30095 | done |
| 30096 | |
| 30097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5 |
| 30098 | $as_echo_n "checking for MSG_NOSIGNAL... " >&6; } |
| 30099 | if ${curl_cv_msg_nosignal+:} false; then : |
| 30100 | $as_echo_n "(cached) " >&6 |
| 30101 | else |
| 30102 | |
| 30103 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30104 | /* end confdefs.h. */ |
| 30105 | |
| 30106 | |
| 30107 | #undef inline |
| 30108 | #ifdef HAVE_WINDOWS_H |
| 30109 | #ifndef WIN32_LEAN_AND_MEAN |
| 30110 | #define WIN32_LEAN_AND_MEAN |
| 30111 | #endif |
| 30112 | #include <windows.h> |
| 30113 | #ifdef HAVE_WINSOCK2_H |
| 30114 | #include <winsock2.h> |
| 30115 | #else |
| 30116 | #ifdef HAVE_WINSOCK_H |
| 30117 | #include <winsock.h> |
| 30118 | #endif |
| 30119 | #endif |
| 30120 | #else |
| 30121 | #ifdef HAVE_SYS_TYPES_H |
| 30122 | #include <sys/types.h> |
| 30123 | #endif |
| 30124 | #ifdef HAVE_SYS_SOCKET_H |
| 30125 | #include <sys/socket.h> |
| 30126 | #endif |
| 30127 | #endif |
| 30128 | |
| 30129 | int main (void) |
| 30130 | { |
| 30131 | |
| 30132 | int flag=MSG_NOSIGNAL; |
| 30133 | |
| 30134 | ; |
| 30135 | return 0; |
| 30136 | } |
| 30137 | |
| 30138 | _ACEOF |
| 30139 | if ac_fn_c_try_compile "$LINENO"; then : |
| 30140 | |
| 30141 | curl_cv_msg_nosignal="yes" |
| 30142 | |
| 30143 | else |
| 30144 | |
| 30145 | curl_cv_msg_nosignal="no" |
| 30146 | |
| 30147 | fi |
| 30148 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 30149 | |
| 30150 | fi |
| 30151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5 |
| 30152 | $as_echo "$curl_cv_msg_nosignal" >&6; } |
| 30153 | case "$curl_cv_msg_nosignal" in |
| 30154 | yes) |
| 30155 | |
| 30156 | cat >>confdefs.h <<_ACEOF |
| 30157 | #define HAVE_MSG_NOSIGNAL 1 |
| 30158 | _ACEOF |
| 30159 | |
| 30160 | ;; |
| 30161 | esac |
| 30162 | |
| 30163 | |
| 30164 | |
| 30165 | curl_includes_unistd="\ |
| 30166 | /* includes start */ |
| 30167 | #ifdef HAVE_SYS_TYPES_H |
| 30168 | # include <sys/types.h> |
| 30169 | #endif |
| 30170 | #ifdef HAVE_UNISTD_H |
| 30171 | # include <unistd.h> |
| 30172 | #endif |
| 30173 | /* includes end */" |
| 30174 | for ac_header in sys/types.h unistd.h |
| 30175 | do : |
| 30176 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 30177 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd |
| 30178 | " |
| 30179 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 30180 | cat >>confdefs.h <<_ACEOF |
| 30181 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 30182 | _ACEOF |
| 30183 | |
| 30184 | fi |
| 30185 | |
| 30186 | done |
| 30187 | |
| 30188 | |
| 30189 | |
| 30190 | # |
| 30191 | tst_links_alarm="unknown" |
| 30192 | tst_proto_alarm="unknown" |
| 30193 | tst_compi_alarm="unknown" |
| 30194 | tst_allow_alarm="unknown" |
| 30195 | # |
| 30196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5 |
| 30197 | $as_echo_n "checking if alarm can be linked... " >&6; } |
| 30198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30199 | /* end confdefs.h. */ |
| 30200 | |
| 30201 | |
| 30202 | #define alarm innocuous_alarm |
| 30203 | #ifdef __STDC__ |
| 30204 | # include <limits.h> |
| 30205 | #else |
| 30206 | # include <assert.h> |
| 30207 | #endif |
| 30208 | #undef alarm |
| 30209 | #ifdef __cplusplus |
| 30210 | extern "C" |
| 30211 | #endif |
| 30212 | char alarm (); |
| 30213 | #if defined __stub_alarm || defined __stub___alarm |
| 30214 | choke me |
| 30215 | #endif |
| 30216 | |
| 30217 | int main (void) |
| 30218 | { |
| 30219 | return alarm (); |
| 30220 | ; |
| 30221 | return 0; |
| 30222 | } |
| 30223 | |
| 30224 | _ACEOF |
| 30225 | if ac_fn_c_try_link "$LINENO"; then : |
| 30226 | |
| 30227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30228 | $as_echo "yes" >&6; } |
| 30229 | tst_links_alarm="yes" |
| 30230 | |
| 30231 | else |
| 30232 | |
| 30233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30234 | $as_echo "no" >&6; } |
| 30235 | tst_links_alarm="no" |
| 30236 | |
| 30237 | fi |
| 30238 | rm -f core conftest.err conftest.$ac_objext \ |
| 30239 | conftest$ac_exeext conftest.$ac_ext |
| 30240 | # |
| 30241 | if test "$tst_links_alarm" = "yes"; then |
| 30242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5 |
| 30243 | $as_echo_n "checking if alarm is prototyped... " >&6; } |
| 30244 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30245 | /* end confdefs.h. */ |
| 30246 | |
| 30247 | $curl_includes_unistd |
| 30248 | |
| 30249 | _ACEOF |
| 30250 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 30251 | $EGREP "alarm" >/dev/null 2>&1; then : |
| 30252 | |
| 30253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30254 | $as_echo "yes" >&6; } |
| 30255 | tst_proto_alarm="yes" |
| 30256 | |
| 30257 | else |
| 30258 | |
| 30259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30260 | $as_echo "no" >&6; } |
| 30261 | tst_proto_alarm="no" |
| 30262 | |
| 30263 | fi |
| 30264 | rm -f conftest* |
| 30265 | |
| 30266 | fi |
| 30267 | # |
| 30268 | if test "$tst_proto_alarm" = "yes"; then |
| 30269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5 |
| 30270 | $as_echo_n "checking if alarm is compilable... " >&6; } |
| 30271 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30272 | /* end confdefs.h. */ |
| 30273 | |
| 30274 | |
| 30275 | $curl_includes_unistd |
| 30276 | |
| 30277 | int main (void) |
| 30278 | { |
| 30279 | |
| 30280 | if(0 != alarm(0)) |
| 30281 | return 1; |
| 30282 | |
| 30283 | ; |
| 30284 | return 0; |
| 30285 | } |
| 30286 | |
| 30287 | _ACEOF |
| 30288 | if ac_fn_c_try_compile "$LINENO"; then : |
| 30289 | |
| 30290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30291 | $as_echo "yes" >&6; } |
| 30292 | tst_compi_alarm="yes" |
| 30293 | |
| 30294 | else |
| 30295 | |
| 30296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30297 | $as_echo "no" >&6; } |
| 30298 | tst_compi_alarm="no" |
| 30299 | |
| 30300 | fi |
| 30301 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 30302 | fi |
| 30303 | # |
| 30304 | if test "$tst_compi_alarm" = "yes"; then |
| 30305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5 |
| 30306 | $as_echo_n "checking if alarm usage allowed... " >&6; } |
| 30307 | if test "x$curl_disallow_alarm" != "xyes"; then |
| 30308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30309 | $as_echo "yes" >&6; } |
| 30310 | tst_allow_alarm="yes" |
| 30311 | else |
| 30312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30313 | $as_echo "no" >&6; } |
| 30314 | tst_allow_alarm="no" |
| 30315 | fi |
| 30316 | fi |
| 30317 | # |
| 30318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5 |
| 30319 | $as_echo_n "checking if alarm might be used... " >&6; } |
| 30320 | if test "$tst_links_alarm" = "yes" && |
| 30321 | test "$tst_proto_alarm" = "yes" && |
| 30322 | test "$tst_compi_alarm" = "yes" && |
| 30323 | test "$tst_allow_alarm" = "yes"; then |
| 30324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30325 | $as_echo "yes" >&6; } |
| 30326 | |
| 30327 | cat >>confdefs.h <<_ACEOF |
| 30328 | #define HAVE_ALARM 1 |
| 30329 | _ACEOF |
| 30330 | |
| 30331 | curl_cv_func_alarm="yes" |
| 30332 | else |
| 30333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30334 | $as_echo "no" >&6; } |
| 30335 | curl_cv_func_alarm="no" |
| 30336 | fi |
| 30337 | |
| 30338 | |
| 30339 | curl_includes_string="\ |
| 30340 | /* includes start */ |
| 30341 | #ifdef HAVE_SYS_TYPES_H |
| 30342 | # include <sys/types.h> |
| 30343 | #endif |
| 30344 | #ifdef HAVE_STRING_H |
| 30345 | # include <string.h> |
| 30346 | #endif |
| 30347 | #ifdef HAVE_STRINGS_H |
| 30348 | # include <strings.h> |
| 30349 | #endif |
| 30350 | /* includes end */" |
| 30351 | for ac_header in sys/types.h string.h strings.h |
| 30352 | do : |
| 30353 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 30354 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string |
| 30355 | " |
| 30356 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 30357 | cat >>confdefs.h <<_ACEOF |
| 30358 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 30359 | _ACEOF |
| 30360 | |
| 30361 | fi |
| 30362 | |
| 30363 | done |
| 30364 | |
| 30365 | |
| 30366 | |
| 30367 | curl_includes_libgen="\ |
| 30368 | /* includes start */ |
| 30369 | #ifdef HAVE_SYS_TYPES_H |
| 30370 | # include <sys/types.h> |
| 30371 | #endif |
| 30372 | #ifdef HAVE_LIBGEN_H |
| 30373 | # include <libgen.h> |
| 30374 | #endif |
| 30375 | /* includes end */" |
| 30376 | for ac_header in sys/types.h libgen.h |
| 30377 | do : |
| 30378 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 30379 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen |
| 30380 | " |
| 30381 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 30382 | cat >>confdefs.h <<_ACEOF |
| 30383 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 30384 | _ACEOF |
| 30385 | |
| 30386 | fi |
| 30387 | |
| 30388 | done |
| 30389 | |
| 30390 | |
| 30391 | |
| 30392 | # |
| 30393 | tst_links_basename="unknown" |
| 30394 | tst_proto_basename="unknown" |
| 30395 | tst_compi_basename="unknown" |
| 30396 | tst_allow_basename="unknown" |
| 30397 | # |
| 30398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5 |
| 30399 | $as_echo_n "checking if basename can be linked... " >&6; } |
| 30400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30401 | /* end confdefs.h. */ |
| 30402 | |
| 30403 | |
| 30404 | #define basename innocuous_basename |
| 30405 | #ifdef __STDC__ |
| 30406 | # include <limits.h> |
| 30407 | #else |
| 30408 | # include <assert.h> |
| 30409 | #endif |
| 30410 | #undef basename |
| 30411 | #ifdef __cplusplus |
| 30412 | extern "C" |
| 30413 | #endif |
| 30414 | char basename (); |
| 30415 | #if defined __stub_basename || defined __stub___basename |
| 30416 | choke me |
| 30417 | #endif |
| 30418 | |
| 30419 | int main (void) |
| 30420 | { |
| 30421 | return basename (); |
| 30422 | ; |
| 30423 | return 0; |
| 30424 | } |
| 30425 | |
| 30426 | _ACEOF |
| 30427 | if ac_fn_c_try_link "$LINENO"; then : |
| 30428 | |
| 30429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30430 | $as_echo "yes" >&6; } |
| 30431 | tst_links_basename="yes" |
| 30432 | |
| 30433 | else |
| 30434 | |
| 30435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30436 | $as_echo "no" >&6; } |
| 30437 | tst_links_basename="no" |
| 30438 | |
| 30439 | fi |
| 30440 | rm -f core conftest.err conftest.$ac_objext \ |
| 30441 | conftest$ac_exeext conftest.$ac_ext |
| 30442 | # |
| 30443 | if test "$tst_links_basename" = "yes"; then |
| 30444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5 |
| 30445 | $as_echo_n "checking if basename is prototyped... " >&6; } |
| 30446 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30447 | /* end confdefs.h. */ |
| 30448 | |
| 30449 | $curl_includes_string |
| 30450 | $curl_includes_libgen |
| 30451 | $curl_includes_unistd |
| 30452 | |
| 30453 | _ACEOF |
| 30454 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 30455 | $EGREP "basename" >/dev/null 2>&1; then : |
| 30456 | |
| 30457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30458 | $as_echo "yes" >&6; } |
| 30459 | tst_proto_basename="yes" |
| 30460 | |
| 30461 | else |
| 30462 | |
| 30463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30464 | $as_echo "no" >&6; } |
| 30465 | tst_proto_basename="no" |
| 30466 | |
| 30467 | fi |
| 30468 | rm -f conftest* |
| 30469 | |
| 30470 | fi |
| 30471 | # |
| 30472 | if test "$tst_proto_basename" = "yes"; then |
| 30473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5 |
| 30474 | $as_echo_n "checking if basename is compilable... " >&6; } |
| 30475 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30476 | /* end confdefs.h. */ |
| 30477 | |
| 30478 | |
| 30479 | $curl_includes_string |
| 30480 | $curl_includes_libgen |
| 30481 | $curl_includes_unistd |
| 30482 | |
| 30483 | int main (void) |
| 30484 | { |
| 30485 | |
| 30486 | if(0 != basename(0)) |
| 30487 | return 1; |
| 30488 | |
| 30489 | ; |
| 30490 | return 0; |
| 30491 | } |
| 30492 | |
| 30493 | _ACEOF |
| 30494 | if ac_fn_c_try_compile "$LINENO"; then : |
| 30495 | |
| 30496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30497 | $as_echo "yes" >&6; } |
| 30498 | tst_compi_basename="yes" |
| 30499 | |
| 30500 | else |
| 30501 | |
| 30502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30503 | $as_echo "no" >&6; } |
| 30504 | tst_compi_basename="no" |
| 30505 | |
| 30506 | fi |
| 30507 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 30508 | fi |
| 30509 | # |
| 30510 | if test "$tst_compi_basename" = "yes"; then |
| 30511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5 |
| 30512 | $as_echo_n "checking if basename usage allowed... " >&6; } |
| 30513 | if test "x$curl_disallow_basename" != "xyes"; then |
| 30514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30515 | $as_echo "yes" >&6; } |
| 30516 | tst_allow_basename="yes" |
| 30517 | else |
| 30518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30519 | $as_echo "no" >&6; } |
| 30520 | tst_allow_basename="no" |
| 30521 | fi |
| 30522 | fi |
| 30523 | # |
| 30524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5 |
| 30525 | $as_echo_n "checking if basename might be used... " >&6; } |
| 30526 | if test "$tst_links_basename" = "yes" && |
| 30527 | test "$tst_proto_basename" = "yes" && |
| 30528 | test "$tst_compi_basename" = "yes" && |
| 30529 | test "$tst_allow_basename" = "yes"; then |
| 30530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30531 | $as_echo "yes" >&6; } |
| 30532 | |
| 30533 | cat >>confdefs.h <<_ACEOF |
| 30534 | #define HAVE_BASENAME 1 |
| 30535 | _ACEOF |
| 30536 | |
| 30537 | curl_cv_func_basename="yes" |
| 30538 | else |
| 30539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30540 | $as_echo "no" >&6; } |
| 30541 | curl_cv_func_basename="no" |
| 30542 | fi |
| 30543 | |
| 30544 | |
| 30545 | curl_includes_socket="\ |
| 30546 | /* includes start */ |
| 30547 | #ifdef HAVE_SYS_TYPES_H |
| 30548 | # include <sys/types.h> |
| 30549 | #endif |
| 30550 | #ifdef HAVE_SOCKET_H |
| 30551 | # include <socket.h> |
| 30552 | #endif |
| 30553 | /* includes end */" |
| 30554 | for ac_header in sys/types.h socket.h |
| 30555 | do : |
| 30556 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 30557 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket |
| 30558 | " |
| 30559 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 30560 | cat >>confdefs.h <<_ACEOF |
| 30561 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 30562 | _ACEOF |
| 30563 | |
| 30564 | fi |
| 30565 | |
| 30566 | done |
| 30567 | |
| 30568 | |
| 30569 | |
| 30570 | # |
| 30571 | tst_links_closesocket="unknown" |
| 30572 | tst_proto_closesocket="unknown" |
| 30573 | tst_compi_closesocket="unknown" |
| 30574 | tst_allow_closesocket="unknown" |
| 30575 | # |
| 30576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5 |
| 30577 | $as_echo_n "checking if closesocket can be linked... " >&6; } |
| 30578 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30579 | /* end confdefs.h. */ |
| 30580 | |
| 30581 | |
| 30582 | $curl_includes_winsock2 |
| 30583 | $curl_includes_socket |
| 30584 | |
| 30585 | int main (void) |
| 30586 | { |
| 30587 | |
| 30588 | if(0 != closesocket(0)) |
| 30589 | return 1; |
| 30590 | |
| 30591 | ; |
| 30592 | return 0; |
| 30593 | } |
| 30594 | |
| 30595 | _ACEOF |
| 30596 | if ac_fn_c_try_link "$LINENO"; then : |
| 30597 | |
| 30598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30599 | $as_echo "yes" >&6; } |
| 30600 | tst_links_closesocket="yes" |
| 30601 | |
| 30602 | else |
| 30603 | |
| 30604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30605 | $as_echo "no" >&6; } |
| 30606 | tst_links_closesocket="no" |
| 30607 | |
| 30608 | fi |
| 30609 | rm -f core conftest.err conftest.$ac_objext \ |
| 30610 | conftest$ac_exeext conftest.$ac_ext |
| 30611 | # |
| 30612 | if test "$tst_links_closesocket" = "yes"; then |
| 30613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5 |
| 30614 | $as_echo_n "checking if closesocket is prototyped... " >&6; } |
| 30615 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30616 | /* end confdefs.h. */ |
| 30617 | |
| 30618 | $curl_includes_winsock2 |
| 30619 | $curl_includes_socket |
| 30620 | |
| 30621 | _ACEOF |
| 30622 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 30623 | $EGREP "closesocket" >/dev/null 2>&1; then : |
| 30624 | |
| 30625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30626 | $as_echo "yes" >&6; } |
| 30627 | tst_proto_closesocket="yes" |
| 30628 | |
| 30629 | else |
| 30630 | |
| 30631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30632 | $as_echo "no" >&6; } |
| 30633 | tst_proto_closesocket="no" |
| 30634 | |
| 30635 | fi |
| 30636 | rm -f conftest* |
| 30637 | |
| 30638 | fi |
| 30639 | # |
| 30640 | if test "$tst_proto_closesocket" = "yes"; then |
| 30641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5 |
| 30642 | $as_echo_n "checking if closesocket is compilable... " >&6; } |
| 30643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30644 | /* end confdefs.h. */ |
| 30645 | |
| 30646 | |
| 30647 | $curl_includes_winsock2 |
| 30648 | $curl_includes_socket |
| 30649 | |
| 30650 | int main (void) |
| 30651 | { |
| 30652 | |
| 30653 | if(0 != closesocket(0)) |
| 30654 | return 1; |
| 30655 | |
| 30656 | ; |
| 30657 | return 0; |
| 30658 | } |
| 30659 | |
| 30660 | _ACEOF |
| 30661 | if ac_fn_c_try_compile "$LINENO"; then : |
| 30662 | |
| 30663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30664 | $as_echo "yes" >&6; } |
| 30665 | tst_compi_closesocket="yes" |
| 30666 | |
| 30667 | else |
| 30668 | |
| 30669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30670 | $as_echo "no" >&6; } |
| 30671 | tst_compi_closesocket="no" |
| 30672 | |
| 30673 | fi |
| 30674 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 30675 | fi |
| 30676 | # |
| 30677 | if test "$tst_compi_closesocket" = "yes"; then |
| 30678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5 |
| 30679 | $as_echo_n "checking if closesocket usage allowed... " >&6; } |
| 30680 | if test "x$curl_disallow_closesocket" != "xyes"; then |
| 30681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30682 | $as_echo "yes" >&6; } |
| 30683 | tst_allow_closesocket="yes" |
| 30684 | else |
| 30685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30686 | $as_echo "no" >&6; } |
| 30687 | tst_allow_closesocket="no" |
| 30688 | fi |
| 30689 | fi |
| 30690 | # |
| 30691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5 |
| 30692 | $as_echo_n "checking if closesocket might be used... " >&6; } |
| 30693 | if test "$tst_links_closesocket" = "yes" && |
| 30694 | test "$tst_proto_closesocket" = "yes" && |
| 30695 | test "$tst_compi_closesocket" = "yes" && |
| 30696 | test "$tst_allow_closesocket" = "yes"; then |
| 30697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30698 | $as_echo "yes" >&6; } |
| 30699 | |
| 30700 | cat >>confdefs.h <<_ACEOF |
| 30701 | #define HAVE_CLOSESOCKET 1 |
| 30702 | _ACEOF |
| 30703 | |
| 30704 | curl_cv_func_closesocket="yes" |
| 30705 | else |
| 30706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30707 | $as_echo "no" >&6; } |
| 30708 | curl_cv_func_closesocket="no" |
| 30709 | fi |
| 30710 | |
| 30711 | |
| 30712 | # |
| 30713 | tst_links_closesocket_camel="unknown" |
| 30714 | tst_proto_closesocket_camel="unknown" |
| 30715 | tst_compi_closesocket_camel="unknown" |
| 30716 | tst_allow_closesocket_camel="unknown" |
| 30717 | # |
| 30718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5 |
| 30719 | $as_echo_n "checking if CloseSocket can be linked... " >&6; } |
| 30720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30721 | /* end confdefs.h. */ |
| 30722 | |
| 30723 | |
| 30724 | $curl_includes_sys_socket |
| 30725 | |
| 30726 | int main (void) |
| 30727 | { |
| 30728 | |
| 30729 | if(0 != CloseSocket(0)) |
| 30730 | return 1; |
| 30731 | |
| 30732 | ; |
| 30733 | return 0; |
| 30734 | } |
| 30735 | |
| 30736 | _ACEOF |
| 30737 | if ac_fn_c_try_link "$LINENO"; then : |
| 30738 | |
| 30739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30740 | $as_echo "yes" >&6; } |
| 30741 | tst_links_closesocket_camel="yes" |
| 30742 | |
| 30743 | else |
| 30744 | |
| 30745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30746 | $as_echo "no" >&6; } |
| 30747 | tst_links_closesocket_camel="no" |
| 30748 | |
| 30749 | fi |
| 30750 | rm -f core conftest.err conftest.$ac_objext \ |
| 30751 | conftest$ac_exeext conftest.$ac_ext |
| 30752 | # |
| 30753 | if test "$tst_links_closesocket_camel" = "yes"; then |
| 30754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5 |
| 30755 | $as_echo_n "checking if CloseSocket is prototyped... " >&6; } |
| 30756 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30757 | /* end confdefs.h. */ |
| 30758 | |
| 30759 | $curl_includes_sys_socket |
| 30760 | |
| 30761 | _ACEOF |
| 30762 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 30763 | $EGREP "CloseSocket" >/dev/null 2>&1; then : |
| 30764 | |
| 30765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30766 | $as_echo "yes" >&6; } |
| 30767 | tst_proto_closesocket_camel="yes" |
| 30768 | |
| 30769 | else |
| 30770 | |
| 30771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30772 | $as_echo "no" >&6; } |
| 30773 | tst_proto_closesocket_camel="no" |
| 30774 | |
| 30775 | fi |
| 30776 | rm -f conftest* |
| 30777 | |
| 30778 | fi |
| 30779 | # |
| 30780 | if test "$tst_proto_closesocket_camel" = "yes"; then |
| 30781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5 |
| 30782 | $as_echo_n "checking if CloseSocket is compilable... " >&6; } |
| 30783 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30784 | /* end confdefs.h. */ |
| 30785 | |
| 30786 | |
| 30787 | $curl_includes_sys_socket |
| 30788 | |
| 30789 | int main (void) |
| 30790 | { |
| 30791 | |
| 30792 | if(0 != CloseSocket(0)) |
| 30793 | return 1; |
| 30794 | |
| 30795 | ; |
| 30796 | return 0; |
| 30797 | } |
| 30798 | |
| 30799 | _ACEOF |
| 30800 | if ac_fn_c_try_compile "$LINENO"; then : |
| 30801 | |
| 30802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30803 | $as_echo "yes" >&6; } |
| 30804 | tst_compi_closesocket_camel="yes" |
| 30805 | |
| 30806 | else |
| 30807 | |
| 30808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30809 | $as_echo "no" >&6; } |
| 30810 | tst_compi_closesocket_camel="no" |
| 30811 | |
| 30812 | fi |
| 30813 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 30814 | fi |
| 30815 | # |
| 30816 | if test "$tst_compi_closesocket_camel" = "yes"; then |
| 30817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5 |
| 30818 | $as_echo_n "checking if CloseSocket usage allowed... " >&6; } |
| 30819 | if test "x$curl_disallow_closesocket_camel" != "xyes"; then |
| 30820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30821 | $as_echo "yes" >&6; } |
| 30822 | tst_allow_closesocket_camel="yes" |
| 30823 | else |
| 30824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30825 | $as_echo "no" >&6; } |
| 30826 | tst_allow_closesocket_camel="no" |
| 30827 | fi |
| 30828 | fi |
| 30829 | # |
| 30830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5 |
| 30831 | $as_echo_n "checking if CloseSocket might be used... " >&6; } |
| 30832 | if test "$tst_links_closesocket_camel" = "yes" && |
| 30833 | test "$tst_proto_closesocket_camel" = "yes" && |
| 30834 | test "$tst_compi_closesocket_camel" = "yes" && |
| 30835 | test "$tst_allow_closesocket_camel" = "yes"; then |
| 30836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30837 | $as_echo "yes" >&6; } |
| 30838 | |
| 30839 | cat >>confdefs.h <<_ACEOF |
| 30840 | #define HAVE_CLOSESOCKET_CAMEL 1 |
| 30841 | _ACEOF |
| 30842 | |
| 30843 | curl_cv_func_closesocket_camel="yes" |
| 30844 | else |
| 30845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30846 | $as_echo "no" >&6; } |
| 30847 | curl_cv_func_closesocket_camel="no" |
| 30848 | fi |
| 30849 | |
| 30850 | |
| 30851 | # |
| 30852 | tst_links_connect="unknown" |
| 30853 | tst_proto_connect="unknown" |
| 30854 | tst_compi_connect="unknown" |
| 30855 | tst_allow_connect="unknown" |
| 30856 | # |
| 30857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5 |
| 30858 | $as_echo_n "checking if connect can be linked... " >&6; } |
| 30859 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30860 | /* end confdefs.h. */ |
| 30861 | |
| 30862 | |
| 30863 | $curl_includes_winsock2 |
| 30864 | $curl_includes_sys_socket |
| 30865 | $curl_includes_socket |
| 30866 | |
| 30867 | int main (void) |
| 30868 | { |
| 30869 | |
| 30870 | if(0 != connect(0, 0, 0)) |
| 30871 | return 1; |
| 30872 | |
| 30873 | ; |
| 30874 | return 0; |
| 30875 | } |
| 30876 | |
| 30877 | _ACEOF |
| 30878 | if ac_fn_c_try_link "$LINENO"; then : |
| 30879 | |
| 30880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30881 | $as_echo "yes" >&6; } |
| 30882 | tst_links_connect="yes" |
| 30883 | |
| 30884 | else |
| 30885 | |
| 30886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30887 | $as_echo "no" >&6; } |
| 30888 | tst_links_connect="no" |
| 30889 | |
| 30890 | fi |
| 30891 | rm -f core conftest.err conftest.$ac_objext \ |
| 30892 | conftest$ac_exeext conftest.$ac_ext |
| 30893 | # |
| 30894 | if test "$tst_links_connect" = "yes"; then |
| 30895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5 |
| 30896 | $as_echo_n "checking if connect is prototyped... " >&6; } |
| 30897 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30898 | /* end confdefs.h. */ |
| 30899 | |
| 30900 | $curl_includes_winsock2 |
| 30901 | $curl_includes_sys_socket |
| 30902 | $curl_includes_socket |
| 30903 | |
| 30904 | _ACEOF |
| 30905 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 30906 | $EGREP "connect" >/dev/null 2>&1; then : |
| 30907 | |
| 30908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30909 | $as_echo "yes" >&6; } |
| 30910 | tst_proto_connect="yes" |
| 30911 | |
| 30912 | else |
| 30913 | |
| 30914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30915 | $as_echo "no" >&6; } |
| 30916 | tst_proto_connect="no" |
| 30917 | |
| 30918 | fi |
| 30919 | rm -f conftest* |
| 30920 | |
| 30921 | fi |
| 30922 | # |
| 30923 | if test "$tst_proto_connect" = "yes"; then |
| 30924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5 |
| 30925 | $as_echo_n "checking if connect is compilable... " >&6; } |
| 30926 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30927 | /* end confdefs.h. */ |
| 30928 | |
| 30929 | |
| 30930 | $curl_includes_winsock2 |
| 30931 | $curl_includes_sys_socket |
| 30932 | $curl_includes_socket |
| 30933 | |
| 30934 | int main (void) |
| 30935 | { |
| 30936 | |
| 30937 | if(0 != connect(0, 0, 0)) |
| 30938 | return 1; |
| 30939 | |
| 30940 | ; |
| 30941 | return 0; |
| 30942 | } |
| 30943 | |
| 30944 | _ACEOF |
| 30945 | if ac_fn_c_try_compile "$LINENO"; then : |
| 30946 | |
| 30947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30948 | $as_echo "yes" >&6; } |
| 30949 | tst_compi_connect="yes" |
| 30950 | |
| 30951 | else |
| 30952 | |
| 30953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30954 | $as_echo "no" >&6; } |
| 30955 | tst_compi_connect="no" |
| 30956 | |
| 30957 | fi |
| 30958 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 30959 | fi |
| 30960 | # |
| 30961 | if test "$tst_compi_connect" = "yes"; then |
| 30962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5 |
| 30963 | $as_echo_n "checking if connect usage allowed... " >&6; } |
| 30964 | if test "x$curl_disallow_connect" != "xyes"; then |
| 30965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30966 | $as_echo "yes" >&6; } |
| 30967 | tst_allow_connect="yes" |
| 30968 | else |
| 30969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30970 | $as_echo "no" >&6; } |
| 30971 | tst_allow_connect="no" |
| 30972 | fi |
| 30973 | fi |
| 30974 | # |
| 30975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5 |
| 30976 | $as_echo_n "checking if connect might be used... " >&6; } |
| 30977 | if test "$tst_links_connect" = "yes" && |
| 30978 | test "$tst_proto_connect" = "yes" && |
| 30979 | test "$tst_compi_connect" = "yes" && |
| 30980 | test "$tst_allow_connect" = "yes"; then |
| 30981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30982 | $as_echo "yes" >&6; } |
| 30983 | |
| 30984 | cat >>confdefs.h <<_ACEOF |
| 30985 | #define HAVE_CONNECT 1 |
| 30986 | _ACEOF |
| 30987 | |
| 30988 | curl_cv_func_connect="yes" |
| 30989 | else |
| 30990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30991 | $as_echo "no" >&6; } |
| 30992 | curl_cv_func_connect="no" |
| 30993 | fi |
| 30994 | |
| 30995 | |
| 30996 | curl_includes_fcntl="\ |
| 30997 | /* includes start */ |
| 30998 | #ifdef HAVE_SYS_TYPES_H |
| 30999 | # include <sys/types.h> |
| 31000 | #endif |
| 31001 | #ifdef HAVE_UNISTD_H |
| 31002 | # include <unistd.h> |
| 31003 | #endif |
| 31004 | #ifdef HAVE_FCNTL_H |
| 31005 | # include <fcntl.h> |
| 31006 | #endif |
| 31007 | /* includes end */" |
| 31008 | for ac_header in sys/types.h unistd.h fcntl.h |
| 31009 | do : |
| 31010 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 31011 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl |
| 31012 | " |
| 31013 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 31014 | cat >>confdefs.h <<_ACEOF |
| 31015 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 31016 | _ACEOF |
| 31017 | |
| 31018 | fi |
| 31019 | |
| 31020 | done |
| 31021 | |
| 31022 | |
| 31023 | |
| 31024 | # |
| 31025 | tst_links_fcntl="unknown" |
| 31026 | tst_proto_fcntl="unknown" |
| 31027 | tst_compi_fcntl="unknown" |
| 31028 | tst_allow_fcntl="unknown" |
| 31029 | # |
| 31030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5 |
| 31031 | $as_echo_n "checking if fcntl can be linked... " >&6; } |
| 31032 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31033 | /* end confdefs.h. */ |
| 31034 | |
| 31035 | |
| 31036 | #define fcntl innocuous_fcntl |
| 31037 | #ifdef __STDC__ |
| 31038 | # include <limits.h> |
| 31039 | #else |
| 31040 | # include <assert.h> |
| 31041 | #endif |
| 31042 | #undef fcntl |
| 31043 | #ifdef __cplusplus |
| 31044 | extern "C" |
| 31045 | #endif |
| 31046 | char fcntl (); |
| 31047 | #if defined __stub_fcntl || defined __stub___fcntl |
| 31048 | choke me |
| 31049 | #endif |
| 31050 | |
| 31051 | int main (void) |
| 31052 | { |
| 31053 | return fcntl (); |
| 31054 | ; |
| 31055 | return 0; |
| 31056 | } |
| 31057 | |
| 31058 | _ACEOF |
| 31059 | if ac_fn_c_try_link "$LINENO"; then : |
| 31060 | |
| 31061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 31062 | $as_echo "yes" >&6; } |
| 31063 | tst_links_fcntl="yes" |
| 31064 | |
| 31065 | else |
| 31066 | |
| 31067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 31068 | $as_echo "no" >&6; } |
| 31069 | tst_links_fcntl="no" |
| 31070 | |
| 31071 | fi |
| 31072 | rm -f core conftest.err conftest.$ac_objext \ |
| 31073 | conftest$ac_exeext conftest.$ac_ext |
| 31074 | # |
| 31075 | if test "$tst_links_fcntl" = "yes"; then |
| 31076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5 |
| 31077 | $as_echo_n "checking if fcntl is prototyped... " >&6; } |
| 31078 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31079 | /* end confdefs.h. */ |
| 31080 | |
| 31081 | $curl_includes_fcntl |
| 31082 | |
| 31083 | _ACEOF |
| 31084 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 31085 | $EGREP "fcntl" >/dev/null 2>&1; then : |
| 31086 | |
| 31087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 31088 | $as_echo "yes" >&6; } |
| 31089 | tst_proto_fcntl="yes" |
| 31090 | |
| 31091 | else |
| 31092 | |
| 31093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 31094 | $as_echo "no" >&6; } |
| 31095 | tst_proto_fcntl="no" |
| 31096 | |
| 31097 | fi |
| 31098 | rm -f conftest* |
| 31099 | |
| 31100 | fi |
| 31101 | # |
| 31102 | if test "$tst_proto_fcntl" = "yes"; then |
| 31103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5 |
| 31104 | $as_echo_n "checking if fcntl is compilable... " >&6; } |
| 31105 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31106 | /* end confdefs.h. */ |
| 31107 | |
| 31108 | |
| 31109 | $curl_includes_fcntl |
| 31110 | |
| 31111 | int main (void) |
| 31112 | { |
| 31113 | |
| 31114 | if(0 != fcntl(0, 0, 0)) |
| 31115 | return 1; |
| 31116 | |
| 31117 | ; |
| 31118 | return 0; |
| 31119 | } |
| 31120 | |
| 31121 | _ACEOF |
| 31122 | if ac_fn_c_try_compile "$LINENO"; then : |
| 31123 | |
| 31124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 31125 | $as_echo "yes" >&6; } |
| 31126 | tst_compi_fcntl="yes" |
| 31127 | |
| 31128 | else |
| 31129 | |
| 31130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 31131 | $as_echo "no" >&6; } |
| 31132 | tst_compi_fcntl="no" |
| 31133 | |
| 31134 | fi |
| 31135 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 31136 | fi |
| 31137 | # |
| 31138 | if test "$tst_compi_fcntl" = "yes"; then |
| 31139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5 |
| 31140 | $as_echo_n "checking if fcntl usage allowed... " >&6; } |
| 31141 | if test "x$curl_disallow_fcntl" != "xyes"; then |
| 31142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 31143 | $as_echo "yes" >&6; } |
| 31144 | tst_allow_fcntl="yes" |
| 31145 | else |
| 31146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 31147 | $as_echo "no" >&6; } |
| 31148 | tst_allow_fcntl="no" |
| 31149 | fi |
| 31150 | fi |
| 31151 | # |
| 31152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5 |
| 31153 | $as_echo_n "checking if fcntl might be used... " >&6; } |
| 31154 | if test "$tst_links_fcntl" = "yes" && |
| 31155 | test "$tst_proto_fcntl" = "yes" && |
| 31156 | test "$tst_compi_fcntl" = "yes" && |
| 31157 | test "$tst_allow_fcntl" = "yes"; then |
| 31158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 31159 | $as_echo "yes" >&6; } |
| 31160 | |
| 31161 | cat >>confdefs.h <<_ACEOF |
| 31162 | #define HAVE_FCNTL 1 |
| 31163 | _ACEOF |
| 31164 | |
| 31165 | curl_cv_func_fcntl="yes" |
| 31166 | |
| 31167 | # |
| 31168 | tst_compi_fcntl_o_nonblock="unknown" |
| 31169 | tst_allow_fcntl_o_nonblock="unknown" |
| 31170 | # |
| 31171 | case $host_os in |
| 31172 | sunos4* | aix3* | beos*) |
| 31173 | curl_disallow_fcntl_o_nonblock="yes" |
| 31174 | ;; |
| 31175 | esac |
| 31176 | # |
| 31177 | if test "$curl_cv_func_fcntl" = "yes"; then |
| 31178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5 |
| 31179 | $as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; } |
| 31180 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31181 | /* end confdefs.h. */ |
| 31182 | |
| 31183 | |
| 31184 | $curl_includes_fcntl |
| 31185 | |
| 31186 | int main (void) |
| 31187 | { |
| 31188 | |
| 31189 | int flags = 0; |
| 31190 | if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK)) |
| 31191 | return 1; |
| 31192 | |
| 31193 | ; |
| 31194 | return 0; |
| 31195 | } |
| 31196 | |
| 31197 | _ACEOF |
| 31198 | if ac_fn_c_try_compile "$LINENO"; then : |
| 31199 | |
| 31200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 31201 | $as_echo "yes" >&6; } |
| 31202 | tst_compi_fcntl_o_nonblock="yes" |
| 31203 | |
| 31204 | else |
| 31205 | |
| 31206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 31207 | $as_echo "no" >&6; } |
| 31208 | tst_compi_fcntl_o_nonblock="no" |
| 31209 | |
| 31210 | fi |
| 31211 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 31212 | fi |
| 31213 | # |
| 31214 | if test "$tst_compi_fcntl_o_nonblock" = "yes"; then |
| 31215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5 |
| 31216 | $as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; } |
| 31217 | if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then |
| 31218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 31219 | $as_echo "yes" >&6; } |
| 31220 | tst_allow_fcntl_o_nonblock="yes" |
| 31221 | else |
| 31222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 31223 | $as_echo "no" >&6; } |
| 31224 | tst_allow_fcntl_o_nonblock="no" |
| 31225 | fi |
| 31226 | fi |
| 31227 | # |
| 31228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5 |
| 31229 | $as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; } |
| 31230 | if test "$tst_compi_fcntl_o_nonblock" = "yes" && |
| 31231 | test "$tst_allow_fcntl_o_nonblock" = "yes"; then |
| 31232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 31233 | $as_echo "yes" >&6; } |
| 31234 | |
| 31235 | cat >>confdefs.h <<_ACEOF |
| 31236 | #define HAVE_FCNTL_O_NONBLOCK 1 |
| 31237 | _ACEOF |
| 31238 | |
| 31239 | curl_cv_func_fcntl_o_nonblock="yes" |
| 31240 | else |
| 31241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 31242 | $as_echo "no" >&6; } |
| 31243 | curl_cv_func_fcntl_o_nonblock="no" |
| 31244 | fi |
| 31245 | |
| 31246 | else |
| 31247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 31248 | $as_echo "no" >&6; } |
| 31249 | curl_cv_func_fcntl="no" |
| 31250 | fi |
| 31251 | |
| 31252 | |
| 31253 | curl_includes_stdio="\ |
| 31254 | /* includes start */ |
| 31255 | #ifdef HAVE_SYS_TYPES_H |
| 31256 | # include <sys/types.h> |
| 31257 | #endif |
| 31258 | #ifdef HAVE_STDIO_H |
| 31259 | # include <stdio.h> |
| 31260 | #endif |
| 31261 | /* includes end */" |
| 31262 | for ac_header in sys/types.h stdio.h |
| 31263 | do : |
| 31264 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 31265 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdio |
| 31266 | " |
| 31267 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 31268 | cat >>confdefs.h <<_ACEOF |
| 31269 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 31270 | _ACEOF |
| 31271 | |
| 31272 | fi |
| 31273 | |
| 31274 | done |
| 31275 | |
| 31276 | |
| 31277 | |
| 31278 | # |
| 31279 | tst_links_fdopen="unknown" |
| 31280 | tst_proto_fdopen="unknown" |
| 31281 | tst_compi_fdopen="unknown" |
| 31282 | tst_allow_fdopen="unknown" |
| 31283 | # |
| 31284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen can be linked" >&5 |
| 31285 | $as_echo_n "checking if fdopen can be linked... " >&6; } |
| 31286 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31287 | /* end confdefs.h. */ |
| 31288 | |
| 31289 | |
| 31290 | #define fdopen innocuous_fdopen |
| 31291 | #ifdef __STDC__ |
| 31292 | # include <limits.h> |
| 31293 | #else |
| 31294 | # include <assert.h> |
| 31295 | #endif |
| 31296 | #undef fdopen |
| 31297 | #ifdef __cplusplus |
| 31298 | extern "C" |
| 31299 | #endif |
| 31300 | char fdopen (); |
| 31301 | #if defined __stub_fdopen || defined __stub___fdopen |
| 31302 | choke me |
| 31303 | #endif |
| 31304 | |
| 31305 | int main (void) |
| 31306 | { |
| 31307 | return fdopen (); |
| 31308 | ; |
| 31309 | return 0; |
| 31310 | } |
| 31311 | |
| 31312 | _ACEOF |
| 31313 | if ac_fn_c_try_link "$LINENO"; then : |
| 31314 | |
| 31315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 31316 | $as_echo "yes" >&6; } |
| 31317 | tst_links_fdopen="yes" |
| 31318 | |
| 31319 | else |
| 31320 | |
| 31321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 31322 | $as_echo "no" >&6; } |
| 31323 | tst_links_fdopen="no" |
| 31324 | |
| 31325 | fi |
| 31326 | rm -f core conftest.err conftest.$ac_objext \ |
| 31327 | conftest$ac_exeext conftest.$ac_ext |
| 31328 | # |
| 31329 | if test "$tst_links_fdopen" = "yes"; then |
| 31330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is prototyped" >&5 |
| 31331 | $as_echo_n "checking if fdopen is prototyped... " >&6; } |
| 31332 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31333 | /* end confdefs.h. */ |
| 31334 | |
| 31335 | $curl_includes_stdio |
| 31336 | |
| 31337 | _ACEOF |
| 31338 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 31339 | $EGREP "fdopen" >/dev/null 2>&1; then : |
| 31340 | |
| 31341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 31342 | $as_echo "yes" >&6; } |
| 31343 | tst_proto_fdopen="yes" |
| 31344 | |
| 31345 | else |
| 31346 | |
| 31347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 31348 | $as_echo "no" >&6; } |
| 31349 | tst_proto_fdopen="no" |
| 31350 | |
| 31351 | fi |
| 31352 | rm -f conftest* |
| 31353 | |
| 31354 | fi |
| 31355 | # |
| 31356 | if test "$tst_proto_fdopen" = "yes"; then |
| 31357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is compilable" >&5 |
| 31358 | $as_echo_n "checking if fdopen is compilable... " >&6; } |
| 31359 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31360 | /* end confdefs.h. */ |
| 31361 | |
| 31362 | |
| 31363 | $curl_includes_stdio |
| 31364 | |
| 31365 | int main (void) |
| 31366 | { |
| 31367 | |
| 31368 | if(0 != fdopen(0, 0)) |
| 31369 | return 1; |
| 31370 | |
| 31371 | ; |
| 31372 | return 0; |
| 31373 | } |
| 31374 | |
| 31375 | _ACEOF |
| 31376 | if ac_fn_c_try_compile "$LINENO"; then : |
| 31377 | |
| 31378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 31379 | $as_echo "yes" >&6; } |
| 31380 | tst_compi_fdopen="yes" |
| 31381 | |
| 31382 | else |
| 31383 | |
| 31384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 31385 | $as_echo "no" >&6; } |
| 31386 | tst_compi_fdopen="no" |
| 31387 | |
| 31388 | fi |
| 31389 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 31390 | fi |
| 31391 | # |
| 31392 | if test "$tst_compi_fdopen" = "yes"; then |
| 31393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen usage allowed" >&5 |
| 31394 | $as_echo_n "checking if fdopen usage allowed... " >&6; } |
| 31395 | if test "x$curl_disallow_fdopen" != "xyes"; then |
| 31396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 31397 | $as_echo "yes" >&6; } |
| 31398 | tst_allow_fdopen="yes" |
| 31399 | else |
| 31400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 31401 | $as_echo "no" >&6; } |
| 31402 | tst_allow_fdopen="no" |
| 31403 | fi |
| 31404 | fi |
| 31405 | # |
| 31406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen might be used" >&5 |
| 31407 | $as_echo_n "checking if fdopen might be used... " >&6; } |
| 31408 | if test "$tst_links_fdopen" = "yes" && |
| 31409 | test "$tst_proto_fdopen" = "yes" && |
| 31410 | test "$tst_compi_fdopen" = "yes" && |
| 31411 | test "$tst_allow_fdopen" = "yes"; then |
| 31412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 31413 | $as_echo "yes" >&6; } |
| 31414 | |
| 31415 | cat >>confdefs.h <<_ACEOF |
| 31416 | #define HAVE_FDOPEN 1 |
| 31417 | _ACEOF |
| 31418 | |
| 31419 | curl_cv_func_fdopen="yes" |
| 31420 | else |
| 31421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 31422 | $as_echo "no" >&6; } |
| 31423 | curl_cv_func_fdopen="no" |
| 31424 | fi |
| 31425 | |
| 31426 | |
| 31427 | curl_includes_netdb="\ |
| 31428 | /* includes start */ |
| 31429 | #ifdef HAVE_SYS_TYPES_H |
| 31430 | # include <sys/types.h> |
| 31431 | #endif |
| 31432 | #ifdef HAVE_NETDB_H |
| 31433 | # include <netdb.h> |
| 31434 | #endif |
| 31435 | /* includes end */" |
| 31436 | for ac_header in sys/types.h netdb.h |
| 31437 | do : |
| 31438 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 31439 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb |
| 31440 | " |
| 31441 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 31442 | cat >>confdefs.h <<_ACEOF |
| 31443 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 31444 | _ACEOF |
| 31445 | |
| 31446 | fi |
| 31447 | |
| 31448 | done |
| 31449 | |
| 31450 | |
| 31451 | |
| 31452 | # |
| 31453 | tst_links_freeaddrinfo="unknown" |
| 31454 | tst_proto_freeaddrinfo="unknown" |
| 31455 | tst_compi_freeaddrinfo="unknown" |
| 31456 | tst_allow_freeaddrinfo="unknown" |
| 31457 | # |
| 31458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5 |
| 31459 | $as_echo_n "checking if freeaddrinfo can be linked... " >&6; } |
| 31460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31461 | /* end confdefs.h. */ |
| 31462 | |
| 31463 | |
| 31464 | $curl_includes_ws2tcpip |
| 31465 | $curl_includes_sys_socket |
| 31466 | $curl_includes_netdb |
| 31467 | |
| 31468 | int main (void) |
| 31469 | { |
| 31470 | |
| 31471 | freeaddrinfo(0); |
| 31472 | |
| 31473 | ; |
| 31474 | return 0; |
| 31475 | } |
| 31476 | |
| 31477 | _ACEOF |
| 31478 | if ac_fn_c_try_link "$LINENO"; then : |
| 31479 | |
| 31480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 31481 | $as_echo "yes" >&6; } |
| 31482 | tst_links_freeaddrinfo="yes" |
| 31483 | |
| 31484 | else |
| 31485 | |
| 31486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 31487 | $as_echo "no" >&6; } |
| 31488 | tst_links_freeaddrinfo="no" |
| 31489 | |
| 31490 | fi |
| 31491 | rm -f core conftest.err conftest.$ac_objext \ |
| 31492 | conftest$ac_exeext conftest.$ac_ext |
| 31493 | # |
| 31494 | if test "$tst_links_freeaddrinfo" = "yes"; then |
| 31495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5 |
| 31496 | $as_echo_n "checking if freeaddrinfo is prototyped... " >&6; } |
| 31497 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31498 | /* end confdefs.h. */ |
| 31499 | |
| 31500 | $curl_includes_ws2tcpip |
| 31501 | $curl_includes_sys_socket |
| 31502 | $curl_includes_netdb |
| 31503 | |
| 31504 | _ACEOF |
| 31505 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 31506 | $EGREP "freeaddrinfo" >/dev/null 2>&1; then : |
| 31507 | |
| 31508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 31509 | $as_echo "yes" >&6; } |
| 31510 | tst_proto_freeaddrinfo="yes" |
| 31511 | |
| 31512 | else |
| 31513 | |
| 31514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 31515 | $as_echo "no" >&6; } |
| 31516 | tst_proto_freeaddrinfo="no" |
| 31517 | |
| 31518 | fi |
| 31519 | rm -f conftest* |
| 31520 | |
| 31521 | fi |
| 31522 | # |
| 31523 | if test "$tst_proto_freeaddrinfo" = "yes"; then |
| 31524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5 |
| 31525 | $as_echo_n "checking if freeaddrinfo is compilable... " >&6; } |
| 31526 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31527 | /* end confdefs.h. */ |
| 31528 | |
| 31529 | |
| 31530 | $curl_includes_ws2tcpip |
| 31531 | $curl_includes_sys_socket |
| 31532 | $curl_includes_netdb |
| 31533 | |
| 31534 | int main (void) |
| 31535 | { |
| 31536 | |
| 31537 | freeaddrinfo(0); |
| 31538 | |
| 31539 | ; |
| 31540 | return 0; |
| 31541 | } |
| 31542 | |
| 31543 | _ACEOF |
| 31544 | if ac_fn_c_try_compile "$LINENO"; then : |
| 31545 | |
| 31546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 31547 | $as_echo "yes" >&6; } |
| 31548 | tst_compi_freeaddrinfo="yes" |
| 31549 | |
| 31550 | else |
| 31551 | |
| 31552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 31553 | $as_echo "no" >&6; } |
| 31554 | tst_compi_freeaddrinfo="no" |
| 31555 | |
| 31556 | fi |
| 31557 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 31558 | fi |
| 31559 | # |
| 31560 | if test "$tst_compi_freeaddrinfo" = "yes"; then |
| 31561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5 |
| 31562 | $as_echo_n "checking if freeaddrinfo usage allowed... " >&6; } |
| 31563 | if test "x$curl_disallow_freeaddrinfo" != "xyes"; then |
| 31564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 31565 | $as_echo "yes" >&6; } |
| 31566 | tst_allow_freeaddrinfo="yes" |
| 31567 | else |
| 31568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 31569 | $as_echo "no" >&6; } |
| 31570 | tst_allow_freeaddrinfo="no" |
| 31571 | fi |
| 31572 | fi |
| 31573 | # |
| 31574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5 |
| 31575 | $as_echo_n "checking if freeaddrinfo might be used... " >&6; } |
| 31576 | if test "$tst_links_freeaddrinfo" = "yes" && |
| 31577 | test "$tst_proto_freeaddrinfo" = "yes" && |
| 31578 | test "$tst_compi_freeaddrinfo" = "yes" && |
| 31579 | test "$tst_allow_freeaddrinfo" = "yes"; then |
| 31580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 31581 | $as_echo "yes" >&6; } |
| 31582 | |
| 31583 | cat >>confdefs.h <<_ACEOF |
| 31584 | #define HAVE_FREEADDRINFO 1 |
| 31585 | _ACEOF |
| 31586 | |
| 31587 | curl_cv_func_freeaddrinfo="yes" |
| 31588 | else |
| 31589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 31590 | $as_echo "no" >&6; } |
| 31591 | curl_cv_func_freeaddrinfo="no" |
| 31592 | fi |
| 31593 | |
| 31594 | |
| 31595 | curl_includes_ifaddrs="\ |
| 31596 | /* includes start */ |
| 31597 | #ifdef HAVE_SYS_TYPES_H |
| 31598 | # include <sys/types.h> |
| 31599 | #endif |
| 31600 | #ifdef HAVE_SYS_SOCKET_H |
| 31601 | # include <sys/socket.h> |
| 31602 | #endif |
| 31603 | #ifdef HAVE_NETINET_IN_H |
| 31604 | # include <netinet/in.h> |
| 31605 | #endif |
| 31606 | #ifdef HAVE_IFADDRS_H |
| 31607 | # include <ifaddrs.h> |
| 31608 | #endif |
| 31609 | /* includes end */" |
| 31610 | for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h |
| 31611 | do : |
| 31612 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 31613 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs |
| 31614 | " |
| 31615 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 31616 | cat >>confdefs.h <<_ACEOF |
| 31617 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 31618 | _ACEOF |
| 31619 | |
| 31620 | fi |
| 31621 | |
| 31622 | done |
| 31623 | |
| 31624 | |
| 31625 | |
| 31626 | # |
| 31627 | tst_links_freeifaddrs="unknown" |
| 31628 | tst_proto_freeifaddrs="unknown" |
| 31629 | tst_compi_freeifaddrs="unknown" |
| 31630 | tst_allow_freeifaddrs="unknown" |
| 31631 | # |
| 31632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5 |
| 31633 | $as_echo_n "checking if freeifaddrs can be linked... " >&6; } |
| 31634 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31635 | /* end confdefs.h. */ |
| 31636 | |
| 31637 | |
| 31638 | #define freeifaddrs innocuous_freeifaddrs |
| 31639 | #ifdef __STDC__ |
| 31640 | # include <limits.h> |
| 31641 | #else |
| 31642 | # include <assert.h> |
| 31643 | #endif |
| 31644 | #undef freeifaddrs |
| 31645 | #ifdef __cplusplus |
| 31646 | extern "C" |
| 31647 | #endif |
| 31648 | char freeifaddrs (); |
| 31649 | #if defined __stub_freeifaddrs || defined __stub___freeifaddrs |
| 31650 | choke me |
| 31651 | #endif |
| 31652 | |
| 31653 | int main (void) |
| 31654 | { |
| 31655 | return freeifaddrs (); |
| 31656 | ; |
| 31657 | return 0; |
| 31658 | } |
| 31659 | |
| 31660 | _ACEOF |
| 31661 | if ac_fn_c_try_link "$LINENO"; then : |
| 31662 | |
| 31663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 31664 | $as_echo "yes" >&6; } |
| 31665 | tst_links_freeifaddrs="yes" |
| 31666 | |
| 31667 | else |
| 31668 | |
| 31669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 31670 | $as_echo "no" >&6; } |
| 31671 | tst_links_freeifaddrs="no" |
| 31672 | |
| 31673 | fi |
| 31674 | rm -f core conftest.err conftest.$ac_objext \ |
| 31675 | conftest$ac_exeext conftest.$ac_ext |
| 31676 | # |
| 31677 | if test "$tst_links_freeifaddrs" = "yes"; then |
| 31678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5 |
| 31679 | $as_echo_n "checking if freeifaddrs is prototyped... " >&6; } |
| 31680 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31681 | /* end confdefs.h. */ |
| 31682 | |
| 31683 | $curl_includes_ifaddrs |
| 31684 | |
| 31685 | _ACEOF |
| 31686 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 31687 | $EGREP "freeifaddrs" >/dev/null 2>&1; then : |
| 31688 | |
| 31689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 31690 | $as_echo "yes" >&6; } |
| 31691 | tst_proto_freeifaddrs="yes" |
| 31692 | |
| 31693 | else |
| 31694 | |
| 31695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 31696 | $as_echo "no" >&6; } |
| 31697 | tst_proto_freeifaddrs="no" |
| 31698 | |
| 31699 | fi |
| 31700 | rm -f conftest* |
| 31701 | |
| 31702 | fi |
| 31703 | # |
| 31704 | if test "$tst_proto_freeifaddrs" = "yes"; then |
| 31705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5 |
| 31706 | $as_echo_n "checking if freeifaddrs is compilable... " >&6; } |
| 31707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31708 | /* end confdefs.h. */ |
| 31709 | |
| 31710 | |
| 31711 | $curl_includes_ifaddrs |
| 31712 | |
| 31713 | int main (void) |
| 31714 | { |
| 31715 | |
| 31716 | freeifaddrs(0); |
| 31717 | |
| 31718 | ; |
| 31719 | return 0; |
| 31720 | } |
| 31721 | |
| 31722 | _ACEOF |
| 31723 | if ac_fn_c_try_compile "$LINENO"; then : |
| 31724 | |
| 31725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 31726 | $as_echo "yes" >&6; } |
| 31727 | tst_compi_freeifaddrs="yes" |
| 31728 | |
| 31729 | else |
| 31730 | |
| 31731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 31732 | $as_echo "no" >&6; } |
| 31733 | tst_compi_freeifaddrs="no" |
| 31734 | |
| 31735 | fi |
| 31736 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 31737 | fi |
| 31738 | # |
| 31739 | if test "$tst_compi_freeifaddrs" = "yes"; then |
| 31740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5 |
| 31741 | $as_echo_n "checking if freeifaddrs usage allowed... " >&6; } |
| 31742 | if test "x$curl_disallow_freeifaddrs" != "xyes"; then |
| 31743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 31744 | $as_echo "yes" >&6; } |
| 31745 | tst_allow_freeifaddrs="yes" |
| 31746 | else |
| 31747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 31748 | $as_echo "no" >&6; } |
| 31749 | tst_allow_freeifaddrs="no" |
| 31750 | fi |
| 31751 | fi |
| 31752 | # |
| 31753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5 |
| 31754 | $as_echo_n "checking if freeifaddrs might be used... " >&6; } |
| 31755 | if test "$tst_links_freeifaddrs" = "yes" && |
| 31756 | test "$tst_proto_freeifaddrs" = "yes" && |
| 31757 | test "$tst_compi_freeifaddrs" = "yes" && |
| 31758 | test "$tst_allow_freeifaddrs" = "yes"; then |
| 31759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 31760 | $as_echo "yes" >&6; } |
| 31761 | |
| 31762 | cat >>confdefs.h <<_ACEOF |
| 31763 | #define HAVE_FREEIFADDRS 1 |
| 31764 | _ACEOF |
| 31765 | |
| 31766 | curl_cv_func_freeifaddrs="yes" |
| 31767 | else |
| 31768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 31769 | $as_echo "no" >&6; } |
| 31770 | curl_cv_func_freeifaddrs="no" |
| 31771 | fi |
| 31772 | |
| 31773 | |
| 31774 | curl_includes_sys_xattr="\ |
| 31775 | /* includes start */ |
| 31776 | #ifdef HAVE_SYS_TYPES_H |
| 31777 | # include <sys/types.h> |
| 31778 | #endif |
| 31779 | #ifdef HAVE_SYS_XATTR_H |
| 31780 | # include <sys/xattr.h> |
| 31781 | #endif |
| 31782 | /* includes end */" |
| 31783 | for ac_header in sys/types.h sys/xattr.h |
| 31784 | do : |
| 31785 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 31786 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr |
| 31787 | " |
| 31788 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 31789 | cat >>confdefs.h <<_ACEOF |
| 31790 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 31791 | _ACEOF |
| 31792 | |
| 31793 | fi |
| 31794 | |
| 31795 | done |
| 31796 | |
| 31797 | |
| 31798 | |
| 31799 | # |
| 31800 | tst_links_fsetxattr="unknown" |
| 31801 | tst_proto_fsetxattr="unknown" |
| 31802 | tst_compi_fsetxattr="unknown" |
| 31803 | tst_allow_fsetxattr="unknown" |
| 31804 | tst_nargs_fsetxattr="unknown" |
| 31805 | # |
| 31806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5 |
| 31807 | $as_echo_n "checking if fsetxattr can be linked... " >&6; } |
| 31808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31809 | /* end confdefs.h. */ |
| 31810 | |
| 31811 | |
| 31812 | #define fsetxattr innocuous_fsetxattr |
| 31813 | #ifdef __STDC__ |
| 31814 | # include <limits.h> |
| 31815 | #else |
| 31816 | # include <assert.h> |
| 31817 | #endif |
| 31818 | #undef fsetxattr |
| 31819 | #ifdef __cplusplus |
| 31820 | extern "C" |
| 31821 | #endif |
| 31822 | char fsetxattr (); |
| 31823 | #if defined __stub_fsetxattr || defined __stub___fsetxattr |
| 31824 | choke me |
| 31825 | #endif |
| 31826 | |
| 31827 | int main (void) |
| 31828 | { |
| 31829 | return fsetxattr (); |
| 31830 | ; |
| 31831 | return 0; |
| 31832 | } |
| 31833 | |
| 31834 | _ACEOF |
| 31835 | if ac_fn_c_try_link "$LINENO"; then : |
| 31836 | |
| 31837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 31838 | $as_echo "yes" >&6; } |
| 31839 | tst_links_fsetxattr="yes" |
| 31840 | |
| 31841 | else |
| 31842 | |
| 31843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 31844 | $as_echo "no" >&6; } |
| 31845 | tst_links_fsetxattr="no" |
| 31846 | |
| 31847 | fi |
| 31848 | rm -f core conftest.err conftest.$ac_objext \ |
| 31849 | conftest$ac_exeext conftest.$ac_ext |
| 31850 | # |
| 31851 | if test "$tst_links_fsetxattr" = "yes"; then |
| 31852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5 |
| 31853 | $as_echo_n "checking if fsetxattr is prototyped... " >&6; } |
| 31854 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31855 | /* end confdefs.h. */ |
| 31856 | |
| 31857 | $curl_includes_sys_xattr |
| 31858 | |
| 31859 | _ACEOF |
| 31860 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 31861 | $EGREP "fsetxattr" >/dev/null 2>&1; then : |
| 31862 | |
| 31863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 31864 | $as_echo "yes" >&6; } |
| 31865 | tst_proto_fsetxattr="yes" |
| 31866 | |
| 31867 | else |
| 31868 | |
| 31869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 31870 | $as_echo "no" >&6; } |
| 31871 | tst_proto_fsetxattr="no" |
| 31872 | |
| 31873 | fi |
| 31874 | rm -f conftest* |
| 31875 | |
| 31876 | fi |
| 31877 | # |
| 31878 | if test "$tst_proto_fsetxattr" = "yes"; then |
| 31879 | if test "$tst_nargs_fsetxattr" = "unknown"; then |
| 31880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5 |
| 31881 | $as_echo_n "checking if fsetxattr takes 5 args.... " >&6; } |
| 31882 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31883 | /* end confdefs.h. */ |
| 31884 | |
| 31885 | |
| 31886 | $curl_includes_sys_xattr |
| 31887 | |
| 31888 | int main (void) |
| 31889 | { |
| 31890 | |
| 31891 | if(0 != fsetxattr(0, 0, 0, 0, 0)) |
| 31892 | return 1; |
| 31893 | |
| 31894 | ; |
| 31895 | return 0; |
| 31896 | } |
| 31897 | |
| 31898 | _ACEOF |
| 31899 | if ac_fn_c_try_compile "$LINENO"; then : |
| 31900 | |
| 31901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 31902 | $as_echo "yes" >&6; } |
| 31903 | tst_compi_fsetxattr="yes" |
| 31904 | tst_nargs_fsetxattr="5" |
| 31905 | |
| 31906 | else |
| 31907 | |
| 31908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 31909 | $as_echo "no" >&6; } |
| 31910 | tst_compi_fsetxattr="no" |
| 31911 | |
| 31912 | fi |
| 31913 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 31914 | fi |
| 31915 | if test "$tst_nargs_fsetxattr" = "unknown"; then |
| 31916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5 |
| 31917 | $as_echo_n "checking if fsetxattr takes 6 args.... " >&6; } |
| 31918 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31919 | /* end confdefs.h. */ |
| 31920 | |
| 31921 | |
| 31922 | $curl_includes_sys_xattr |
| 31923 | |
| 31924 | int main (void) |
| 31925 | { |
| 31926 | |
| 31927 | if(0 != fsetxattr(0, 0, 0, 0, 0, 0)) |
| 31928 | return 1; |
| 31929 | |
| 31930 | ; |
| 31931 | return 0; |
| 31932 | } |
| 31933 | |
| 31934 | _ACEOF |
| 31935 | if ac_fn_c_try_compile "$LINENO"; then : |
| 31936 | |
| 31937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 31938 | $as_echo "yes" >&6; } |
| 31939 | tst_compi_fsetxattr="yes" |
| 31940 | tst_nargs_fsetxattr="6" |
| 31941 | |
| 31942 | else |
| 31943 | |
| 31944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 31945 | $as_echo "no" >&6; } |
| 31946 | tst_compi_fsetxattr="no" |
| 31947 | |
| 31948 | fi |
| 31949 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 31950 | fi |
| 31951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5 |
| 31952 | $as_echo_n "checking if fsetxattr is compilable... " >&6; } |
| 31953 | if test "$tst_compi_fsetxattr" = "yes"; then |
| 31954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 31955 | $as_echo "yes" >&6; } |
| 31956 | else |
| 31957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 31958 | $as_echo "no" >&6; } |
| 31959 | fi |
| 31960 | fi |
| 31961 | # |
| 31962 | if test "$tst_compi_fsetxattr" = "yes"; then |
| 31963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5 |
| 31964 | $as_echo_n "checking if fsetxattr usage allowed... " >&6; } |
| 31965 | if test "x$curl_disallow_fsetxattr" != "xyes"; then |
| 31966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 31967 | $as_echo "yes" >&6; } |
| 31968 | tst_allow_fsetxattr="yes" |
| 31969 | else |
| 31970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 31971 | $as_echo "no" >&6; } |
| 31972 | tst_allow_fsetxattr="no" |
| 31973 | fi |
| 31974 | fi |
| 31975 | # |
| 31976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5 |
| 31977 | $as_echo_n "checking if fsetxattr might be used... " >&6; } |
| 31978 | if test "$tst_links_fsetxattr" = "yes" && |
| 31979 | test "$tst_proto_fsetxattr" = "yes" && |
| 31980 | test "$tst_compi_fsetxattr" = "yes" && |
| 31981 | test "$tst_allow_fsetxattr" = "yes"; then |
| 31982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 31983 | $as_echo "yes" >&6; } |
| 31984 | |
| 31985 | cat >>confdefs.h <<_ACEOF |
| 31986 | #define HAVE_FSETXATTR 1 |
| 31987 | _ACEOF |
| 31988 | |
| 31989 | # |
| 31990 | if test "$tst_nargs_fsetxattr" -eq "5"; then |
| 31991 | |
| 31992 | $as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h |
| 31993 | |
| 31994 | elif test "$tst_nargs_fsetxattr" -eq "6"; then |
| 31995 | |
| 31996 | $as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h |
| 31997 | |
| 31998 | fi |
| 31999 | # |
| 32000 | curl_cv_func_fsetxattr="yes" |
| 32001 | else |
| 32002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 32003 | $as_echo "no" >&6; } |
| 32004 | curl_cv_func_fsetxattr="no" |
| 32005 | fi |
| 32006 | |
| 32007 | |
| 32008 | # |
| 32009 | tst_links_ftruncate="unknown" |
| 32010 | tst_proto_ftruncate="unknown" |
| 32011 | tst_compi_ftruncate="unknown" |
| 32012 | tst_allow_ftruncate="unknown" |
| 32013 | # |
| 32014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5 |
| 32015 | $as_echo_n "checking if ftruncate can be linked... " >&6; } |
| 32016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32017 | /* end confdefs.h. */ |
| 32018 | |
| 32019 | |
| 32020 | #define ftruncate innocuous_ftruncate |
| 32021 | #ifdef __STDC__ |
| 32022 | # include <limits.h> |
| 32023 | #else |
| 32024 | # include <assert.h> |
| 32025 | #endif |
| 32026 | #undef ftruncate |
| 32027 | #ifdef __cplusplus |
| 32028 | extern "C" |
| 32029 | #endif |
| 32030 | char ftruncate (); |
| 32031 | #if defined __stub_ftruncate || defined __stub___ftruncate |
| 32032 | choke me |
| 32033 | #endif |
| 32034 | |
| 32035 | int main (void) |
| 32036 | { |
| 32037 | return ftruncate (); |
| 32038 | ; |
| 32039 | return 0; |
| 32040 | } |
| 32041 | |
| 32042 | _ACEOF |
| 32043 | if ac_fn_c_try_link "$LINENO"; then : |
| 32044 | |
| 32045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 32046 | $as_echo "yes" >&6; } |
| 32047 | tst_links_ftruncate="yes" |
| 32048 | |
| 32049 | else |
| 32050 | |
| 32051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 32052 | $as_echo "no" >&6; } |
| 32053 | tst_links_ftruncate="no" |
| 32054 | |
| 32055 | fi |
| 32056 | rm -f core conftest.err conftest.$ac_objext \ |
| 32057 | conftest$ac_exeext conftest.$ac_ext |
| 32058 | # |
| 32059 | if test "$tst_links_ftruncate" = "yes"; then |
| 32060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5 |
| 32061 | $as_echo_n "checking if ftruncate is prototyped... " >&6; } |
| 32062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32063 | /* end confdefs.h. */ |
| 32064 | |
| 32065 | $curl_includes_unistd |
| 32066 | |
| 32067 | _ACEOF |
| 32068 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 32069 | $EGREP "ftruncate" >/dev/null 2>&1; then : |
| 32070 | |
| 32071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 32072 | $as_echo "yes" >&6; } |
| 32073 | tst_proto_ftruncate="yes" |
| 32074 | |
| 32075 | else |
| 32076 | |
| 32077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 32078 | $as_echo "no" >&6; } |
| 32079 | tst_proto_ftruncate="no" |
| 32080 | |
| 32081 | fi |
| 32082 | rm -f conftest* |
| 32083 | |
| 32084 | fi |
| 32085 | # |
| 32086 | if test "$tst_proto_ftruncate" = "yes"; then |
| 32087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5 |
| 32088 | $as_echo_n "checking if ftruncate is compilable... " >&6; } |
| 32089 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32090 | /* end confdefs.h. */ |
| 32091 | |
| 32092 | |
| 32093 | $curl_includes_unistd |
| 32094 | |
| 32095 | int main (void) |
| 32096 | { |
| 32097 | |
| 32098 | if(0 != ftruncate(0, 0)) |
| 32099 | return 1; |
| 32100 | |
| 32101 | ; |
| 32102 | return 0; |
| 32103 | } |
| 32104 | |
| 32105 | _ACEOF |
| 32106 | if ac_fn_c_try_compile "$LINENO"; then : |
| 32107 | |
| 32108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 32109 | $as_echo "yes" >&6; } |
| 32110 | tst_compi_ftruncate="yes" |
| 32111 | |
| 32112 | else |
| 32113 | |
| 32114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 32115 | $as_echo "no" >&6; } |
| 32116 | tst_compi_ftruncate="no" |
| 32117 | |
| 32118 | fi |
| 32119 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 32120 | fi |
| 32121 | # |
| 32122 | if test "$tst_compi_ftruncate" = "yes"; then |
| 32123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5 |
| 32124 | $as_echo_n "checking if ftruncate usage allowed... " >&6; } |
| 32125 | if test "x$curl_disallow_ftruncate" != "xyes"; then |
| 32126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 32127 | $as_echo "yes" >&6; } |
| 32128 | tst_allow_ftruncate="yes" |
| 32129 | else |
| 32130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 32131 | $as_echo "no" >&6; } |
| 32132 | tst_allow_ftruncate="no" |
| 32133 | fi |
| 32134 | fi |
| 32135 | # |
| 32136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5 |
| 32137 | $as_echo_n "checking if ftruncate might be used... " >&6; } |
| 32138 | if test "$tst_links_ftruncate" = "yes" && |
| 32139 | test "$tst_proto_ftruncate" = "yes" && |
| 32140 | test "$tst_compi_ftruncate" = "yes" && |
| 32141 | test "$tst_allow_ftruncate" = "yes"; then |
| 32142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 32143 | $as_echo "yes" >&6; } |
| 32144 | |
| 32145 | cat >>confdefs.h <<_ACEOF |
| 32146 | #define HAVE_FTRUNCATE 1 |
| 32147 | _ACEOF |
| 32148 | |
| 32149 | curl_cv_func_ftruncate="yes" |
| 32150 | else |
| 32151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 32152 | $as_echo "no" >&6; } |
| 32153 | curl_cv_func_ftruncate="no" |
| 32154 | fi |
| 32155 | |
| 32156 | |
| 32157 | curl_includes_stdlib="\ |
| 32158 | /* includes start */ |
| 32159 | #ifdef HAVE_SYS_TYPES_H |
| 32160 | # include <sys/types.h> |
| 32161 | #endif |
| 32162 | #ifdef HAVE_STDLIB_H |
| 32163 | # include <stdlib.h> |
| 32164 | #endif |
| 32165 | /* includes end */" |
| 32166 | for ac_header in sys/types.h stdlib.h |
| 32167 | do : |
| 32168 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 32169 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib |
| 32170 | " |
| 32171 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 32172 | cat >>confdefs.h <<_ACEOF |
| 32173 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 32174 | _ACEOF |
| 32175 | |
| 32176 | fi |
| 32177 | |
| 32178 | done |
| 32179 | |
| 32180 | |
| 32181 | |
| 32182 | # |
| 32183 | tst_links_getaddrinfo="unknown" |
| 32184 | tst_proto_getaddrinfo="unknown" |
| 32185 | tst_compi_getaddrinfo="unknown" |
| 32186 | tst_works_getaddrinfo="unknown" |
| 32187 | tst_allow_getaddrinfo="unknown" |
| 32188 | tst_tsafe_getaddrinfo="unknown" |
| 32189 | # |
| 32190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5 |
| 32191 | $as_echo_n "checking if getaddrinfo can be linked... " >&6; } |
| 32192 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32193 | /* end confdefs.h. */ |
| 32194 | |
| 32195 | |
| 32196 | $curl_includes_ws2tcpip |
| 32197 | $curl_includes_sys_socket |
| 32198 | $curl_includes_netdb |
| 32199 | |
| 32200 | int main (void) |
| 32201 | { |
| 32202 | |
| 32203 | if(0 != getaddrinfo(0, 0, 0, 0)) |
| 32204 | return 1; |
| 32205 | |
| 32206 | ; |
| 32207 | return 0; |
| 32208 | } |
| 32209 | |
| 32210 | _ACEOF |
| 32211 | if ac_fn_c_try_link "$LINENO"; then : |
| 32212 | |
| 32213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 32214 | $as_echo "yes" >&6; } |
| 32215 | tst_links_getaddrinfo="yes" |
| 32216 | |
| 32217 | else |
| 32218 | |
| 32219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 32220 | $as_echo "no" >&6; } |
| 32221 | tst_links_getaddrinfo="no" |
| 32222 | |
| 32223 | fi |
| 32224 | rm -f core conftest.err conftest.$ac_objext \ |
| 32225 | conftest$ac_exeext conftest.$ac_ext |
| 32226 | # |
| 32227 | if test "$tst_links_getaddrinfo" = "yes"; then |
| 32228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5 |
| 32229 | $as_echo_n "checking if getaddrinfo is prototyped... " >&6; } |
| 32230 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32231 | /* end confdefs.h. */ |
| 32232 | |
| 32233 | $curl_includes_ws2tcpip |
| 32234 | $curl_includes_sys_socket |
| 32235 | $curl_includes_netdb |
| 32236 | |
| 32237 | _ACEOF |
| 32238 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 32239 | $EGREP "getaddrinfo" >/dev/null 2>&1; then : |
| 32240 | |
| 32241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 32242 | $as_echo "yes" >&6; } |
| 32243 | tst_proto_getaddrinfo="yes" |
| 32244 | |
| 32245 | else |
| 32246 | |
| 32247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 32248 | $as_echo "no" >&6; } |
| 32249 | tst_proto_getaddrinfo="no" |
| 32250 | |
| 32251 | fi |
| 32252 | rm -f conftest* |
| 32253 | |
| 32254 | fi |
| 32255 | # |
| 32256 | if test "$tst_proto_getaddrinfo" = "yes"; then |
| 32257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5 |
| 32258 | $as_echo_n "checking if getaddrinfo is compilable... " >&6; } |
| 32259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32260 | /* end confdefs.h. */ |
| 32261 | |
| 32262 | |
| 32263 | $curl_includes_ws2tcpip |
| 32264 | $curl_includes_sys_socket |
| 32265 | $curl_includes_netdb |
| 32266 | |
| 32267 | int main (void) |
| 32268 | { |
| 32269 | |
| 32270 | if(0 != getaddrinfo(0, 0, 0, 0)) |
| 32271 | return 1; |
| 32272 | |
| 32273 | ; |
| 32274 | return 0; |
| 32275 | } |
| 32276 | |
| 32277 | _ACEOF |
| 32278 | if ac_fn_c_try_compile "$LINENO"; then : |
| 32279 | |
| 32280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 32281 | $as_echo "yes" >&6; } |
| 32282 | tst_compi_getaddrinfo="yes" |
| 32283 | |
| 32284 | else |
| 32285 | |
| 32286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 32287 | $as_echo "no" >&6; } |
| 32288 | tst_compi_getaddrinfo="no" |
| 32289 | |
| 32290 | fi |
| 32291 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 32292 | fi |
| 32293 | # |
| 32294 | if test "x$cross_compiling" != "xyes" && |
| 32295 | test "$tst_compi_getaddrinfo" = "yes"; then |
| 32296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5 |
| 32297 | $as_echo_n "checking if getaddrinfo seems to work... " >&6; } |
| 32298 | if test "$cross_compiling" = yes; then : |
| 32299 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 32300 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 32301 | as_fn_error $? "cannot run test program while cross compiling |
| 32302 | See \`config.log' for more details" "$LINENO" 5; } |
| 32303 | else |
| 32304 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32305 | /* end confdefs.h. */ |
| 32306 | |
| 32307 | |
| 32308 | $curl_includes_ws2tcpip |
| 32309 | $curl_includes_stdlib |
| 32310 | $curl_includes_string |
| 32311 | $curl_includes_sys_socket |
| 32312 | $curl_includes_netdb |
| 32313 | |
| 32314 | int main (void) |
| 32315 | { |
| 32316 | |
| 32317 | struct addrinfo hints; |
| 32318 | struct addrinfo *ai = 0; |
| 32319 | int error; |
| 32320 | |
| 32321 | #ifdef HAVE_WINSOCK2_H |
| 32322 | WSADATA wsa; |
| 32323 | if (WSAStartup(MAKEWORD(2,2), &wsa)) |
| 32324 | exit(2); |
| 32325 | #endif |
| 32326 | |
| 32327 | memset(&hints, 0, sizeof(hints)); |
| 32328 | hints.ai_flags = AI_NUMERICHOST; |
| 32329 | hints.ai_family = AF_UNSPEC; |
| 32330 | hints.ai_socktype = SOCK_STREAM; |
| 32331 | error = getaddrinfo("127.0.0.1", 0, &hints, &ai); |
| 32332 | if(error || !ai) |
| 32333 | exit(1); /* fail */ |
| 32334 | else |
| 32335 | exit(0); |
| 32336 | |
| 32337 | ; |
| 32338 | return 0; |
| 32339 | } |
| 32340 | |
| 32341 | _ACEOF |
| 32342 | if ac_fn_c_try_run "$LINENO"; then : |
| 32343 | |
| 32344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 32345 | $as_echo "yes" >&6; } |
| 32346 | tst_works_getaddrinfo="yes" |
| 32347 | |
| 32348 | else |
| 32349 | |
| 32350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 32351 | $as_echo "no" >&6; } |
| 32352 | tst_works_getaddrinfo="no" |
| 32353 | |
| 32354 | fi |
| 32355 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 32356 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 32357 | fi |
| 32358 | |
| 32359 | fi |
| 32360 | # |
| 32361 | if test "$tst_compi_getaddrinfo" = "yes" && |
| 32362 | test "$tst_works_getaddrinfo" != "no"; then |
| 32363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5 |
| 32364 | $as_echo_n "checking if getaddrinfo usage allowed... " >&6; } |
| 32365 | if test "x$curl_disallow_getaddrinfo" != "xyes"; then |
| 32366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 32367 | $as_echo "yes" >&6; } |
| 32368 | tst_allow_getaddrinfo="yes" |
| 32369 | else |
| 32370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 32371 | $as_echo "no" >&6; } |
| 32372 | tst_allow_getaddrinfo="no" |
| 32373 | fi |
| 32374 | fi |
| 32375 | # |
| 32376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5 |
| 32377 | $as_echo_n "checking if getaddrinfo might be used... " >&6; } |
| 32378 | if test "$tst_links_getaddrinfo" = "yes" && |
| 32379 | test "$tst_proto_getaddrinfo" = "yes" && |
| 32380 | test "$tst_compi_getaddrinfo" = "yes" && |
| 32381 | test "$tst_allow_getaddrinfo" = "yes" && |
| 32382 | test "$tst_works_getaddrinfo" != "no"; then |
| 32383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 32384 | $as_echo "yes" >&6; } |
| 32385 | |
| 32386 | cat >>confdefs.h <<_ACEOF |
| 32387 | #define HAVE_GETADDRINFO 1 |
| 32388 | _ACEOF |
| 32389 | |
| 32390 | curl_cv_func_getaddrinfo="yes" |
| 32391 | else |
| 32392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 32393 | $as_echo "no" >&6; } |
| 32394 | curl_cv_func_getaddrinfo="no" |
| 32395 | curl_cv_func_getaddrinfo_threadsafe="no" |
| 32396 | fi |
| 32397 | # |
| 32398 | if test "$curl_cv_func_getaddrinfo" = "yes"; then |
| 32399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5 |
| 32400 | $as_echo_n "checking if getaddrinfo is threadsafe... " >&6; } |
| 32401 | case $host_os in |
| 32402 | aix[1234].* | aix5.[01].*) |
| 32403 | tst_tsafe_getaddrinfo="no" |
| 32404 | ;; |
| 32405 | aix*) |
| 32406 | tst_tsafe_getaddrinfo="yes" |
| 32407 | ;; |
| 32408 | darwin[12345].*) |
| 32409 | tst_tsafe_getaddrinfo="no" |
| 32410 | ;; |
| 32411 | darwin*) |
| 32412 | tst_tsafe_getaddrinfo="yes" |
| 32413 | ;; |
| 32414 | freebsd[1234].* | freebsd5.[1234]*) |
| 32415 | tst_tsafe_getaddrinfo="no" |
| 32416 | ;; |
| 32417 | freebsd*) |
| 32418 | tst_tsafe_getaddrinfo="yes" |
| 32419 | ;; |
| 32420 | hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*) |
| 32421 | tst_tsafe_getaddrinfo="no" |
| 32422 | ;; |
| 32423 | hpux*) |
| 32424 | tst_tsafe_getaddrinfo="yes" |
| 32425 | ;; |
| 32426 | netbsd[123].*) |
| 32427 | tst_tsafe_getaddrinfo="no" |
| 32428 | ;; |
| 32429 | netbsd*) |
| 32430 | tst_tsafe_getaddrinfo="yes" |
| 32431 | ;; |
| 32432 | *bsd*) |
| 32433 | tst_tsafe_getaddrinfo="no" |
| 32434 | ;; |
| 32435 | solaris2*) |
| 32436 | tst_tsafe_getaddrinfo="yes" |
| 32437 | ;; |
| 32438 | esac |
| 32439 | if test "$tst_tsafe_getaddrinfo" = "unknown" && |
| 32440 | test "$curl_cv_native_windows" = "yes"; then |
| 32441 | tst_tsafe_getaddrinfo="yes" |
| 32442 | fi |
| 32443 | if test "$tst_tsafe_getaddrinfo" = "unknown"; then |
| 32444 | |
| 32445 | |
| 32446 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32447 | /* end confdefs.h. */ |
| 32448 | |
| 32449 | |
| 32450 | $curl_includes_sys_socket |
| 32451 | $curl_includes_netdb |
| 32452 | |
| 32453 | int main (void) |
| 32454 | { |
| 32455 | #ifdef h_errno |
| 32456 | return 0; |
| 32457 | #else |
| 32458 | force compilation error |
| 32459 | #endif |
| 32460 | } |
| 32461 | |
| 32462 | |
| 32463 | _ACEOF |
| 32464 | if ac_fn_c_try_compile "$LINENO"; then : |
| 32465 | |
| 32466 | tst_symbol_defined="yes" |
| 32467 | |
| 32468 | else |
| 32469 | |
| 32470 | tst_symbol_defined="no" |
| 32471 | |
| 32472 | fi |
| 32473 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 32474 | if test "$tst_symbol_defined" = "yes"; then |
| 32475 | curl_cv_have_def_h_errno=yes |
| 32476 | |
| 32477 | else |
| 32478 | curl_cv_have_def_h_errno=no |
| 32479 | |
| 32480 | fi |
| 32481 | |
| 32482 | if test "$curl_cv_have_def_h_errno" = "yes"; then |
| 32483 | tst_h_errno_macro="yes" |
| 32484 | else |
| 32485 | tst_h_errno_macro="no" |
| 32486 | fi |
| 32487 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32488 | /* end confdefs.h. */ |
| 32489 | |
| 32490 | |
| 32491 | $curl_includes_sys_socket |
| 32492 | $curl_includes_netdb |
| 32493 | |
| 32494 | int main (void) |
| 32495 | { |
| 32496 | |
| 32497 | h_errno = 2; |
| 32498 | if(0 != h_errno) |
| 32499 | return 1; |
| 32500 | |
| 32501 | ; |
| 32502 | return 0; |
| 32503 | } |
| 32504 | |
| 32505 | _ACEOF |
| 32506 | if ac_fn_c_try_compile "$LINENO"; then : |
| 32507 | |
| 32508 | tst_h_errno_modifiable_lvalue="yes" |
| 32509 | |
| 32510 | else |
| 32511 | |
| 32512 | tst_h_errno_modifiable_lvalue="no" |
| 32513 | |
| 32514 | fi |
| 32515 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 32516 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32517 | /* end confdefs.h. */ |
| 32518 | |
| 32519 | |
| 32520 | |
| 32521 | int main (void) |
| 32522 | { |
| 32523 | |
| 32524 | #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L) |
| 32525 | return 0; |
| 32526 | #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700) |
| 32527 | return 0; |
| 32528 | #else |
| 32529 | force compilation error |
| 32530 | #endif |
| 32531 | |
| 32532 | ; |
| 32533 | return 0; |
| 32534 | } |
| 32535 | |
| 32536 | _ACEOF |
| 32537 | if ac_fn_c_try_compile "$LINENO"; then : |
| 32538 | |
| 32539 | tst_h_errno_sbs_issue_7="yes" |
| 32540 | |
| 32541 | else |
| 32542 | |
| 32543 | tst_h_errno_sbs_issue_7="no" |
| 32544 | |
| 32545 | fi |
| 32546 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 32547 | if test "$tst_h_errno_macro" = "no" && |
| 32548 | test "$tst_h_errno_modifiable_lvalue" = "no" && |
| 32549 | test "$tst_h_errno_sbs_issue_7" = "no"; then |
| 32550 | tst_tsafe_getaddrinfo="no" |
| 32551 | else |
| 32552 | tst_tsafe_getaddrinfo="yes" |
| 32553 | fi |
| 32554 | fi |
| 32555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5 |
| 32556 | $as_echo "$tst_tsafe_getaddrinfo" >&6; } |
| 32557 | if test "$tst_tsafe_getaddrinfo" = "yes"; then |
| 32558 | |
| 32559 | cat >>confdefs.h <<_ACEOF |
| 32560 | #define HAVE_GETADDRINFO_THREADSAFE 1 |
| 32561 | _ACEOF |
| 32562 | |
| 32563 | curl_cv_func_getaddrinfo_threadsafe="yes" |
| 32564 | else |
| 32565 | curl_cv_func_getaddrinfo_threadsafe="no" |
| 32566 | fi |
| 32567 | fi |
| 32568 | |
| 32569 | |
| 32570 | # |
| 32571 | tst_links_gai_strerror="unknown" |
| 32572 | tst_proto_gai_strerror="unknown" |
| 32573 | tst_compi_gai_strerror="unknown" |
| 32574 | tst_allow_gai_strerror="unknown" |
| 32575 | # |
| 32576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror can be linked" >&5 |
| 32577 | $as_echo_n "checking if gai_strerror can be linked... " >&6; } |
| 32578 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32579 | /* end confdefs.h. */ |
| 32580 | |
| 32581 | |
| 32582 | $curl_includes_winsock2 |
| 32583 | $curl_includes_netdb |
| 32584 | |
| 32585 | int main (void) |
| 32586 | { |
| 32587 | |
| 32588 | if(0 != gai_strerror(0)) |
| 32589 | return 1; |
| 32590 | |
| 32591 | ; |
| 32592 | return 0; |
| 32593 | } |
| 32594 | |
| 32595 | _ACEOF |
| 32596 | if ac_fn_c_try_link "$LINENO"; then : |
| 32597 | |
| 32598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 32599 | $as_echo "yes" >&6; } |
| 32600 | tst_links_gai_strerror="yes" |
| 32601 | |
| 32602 | else |
| 32603 | |
| 32604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 32605 | $as_echo "no" >&6; } |
| 32606 | tst_links_gai_strerror="no" |
| 32607 | |
| 32608 | fi |
| 32609 | rm -f core conftest.err conftest.$ac_objext \ |
| 32610 | conftest$ac_exeext conftest.$ac_ext |
| 32611 | # |
| 32612 | if test "$tst_links_gai_strerror" = "yes"; then |
| 32613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is prototyped" >&5 |
| 32614 | $as_echo_n "checking if gai_strerror is prototyped... " >&6; } |
| 32615 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32616 | /* end confdefs.h. */ |
| 32617 | |
| 32618 | $curl_includes_winsock2 |
| 32619 | $curl_includes_netdb |
| 32620 | |
| 32621 | _ACEOF |
| 32622 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 32623 | $EGREP "gai_strerror" >/dev/null 2>&1; then : |
| 32624 | |
| 32625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 32626 | $as_echo "yes" >&6; } |
| 32627 | tst_proto_gai_strerror="yes" |
| 32628 | |
| 32629 | else |
| 32630 | |
| 32631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 32632 | $as_echo "no" >&6; } |
| 32633 | tst_proto_gai_strerror="no" |
| 32634 | |
| 32635 | fi |
| 32636 | rm -f conftest* |
| 32637 | |
| 32638 | fi |
| 32639 | # |
| 32640 | if test "$tst_proto_gai_strerror" = "yes"; then |
| 32641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is compilable" >&5 |
| 32642 | $as_echo_n "checking if gai_strerror is compilable... " >&6; } |
| 32643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32644 | /* end confdefs.h. */ |
| 32645 | |
| 32646 | |
| 32647 | $curl_includes_winsock2 |
| 32648 | $curl_includes_netdb |
| 32649 | |
| 32650 | int main (void) |
| 32651 | { |
| 32652 | |
| 32653 | if(0 != gai_strerror(0)) |
| 32654 | return 1; |
| 32655 | |
| 32656 | ; |
| 32657 | return 0; |
| 32658 | } |
| 32659 | |
| 32660 | _ACEOF |
| 32661 | if ac_fn_c_try_compile "$LINENO"; then : |
| 32662 | |
| 32663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 32664 | $as_echo "yes" >&6; } |
| 32665 | tst_compi_gai_strerror="yes" |
| 32666 | |
| 32667 | else |
| 32668 | |
| 32669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 32670 | $as_echo "no" >&6; } |
| 32671 | tst_compi_gai_strerror="no" |
| 32672 | |
| 32673 | fi |
| 32674 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 32675 | fi |
| 32676 | # |
| 32677 | if test "$tst_compi_gai_strerror" = "yes"; then |
| 32678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror usage allowed" >&5 |
| 32679 | $as_echo_n "checking if gai_strerror usage allowed... " >&6; } |
| 32680 | if test "x$curl_disallow_gai_strerror" != "xyes"; then |
| 32681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 32682 | $as_echo "yes" >&6; } |
| 32683 | tst_allow_gai_strerror="yes" |
| 32684 | else |
| 32685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 32686 | $as_echo "no" >&6; } |
| 32687 | tst_allow_gai_strerror="no" |
| 32688 | fi |
| 32689 | fi |
| 32690 | # |
| 32691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror might be used" >&5 |
| 32692 | $as_echo_n "checking if gai_strerror might be used... " >&6; } |
| 32693 | if test "$tst_links_gai_strerror" = "yes" && |
| 32694 | test "$tst_proto_gai_strerror" = "yes" && |
| 32695 | test "$tst_compi_gai_strerror" = "yes" && |
| 32696 | test "$tst_allow_gai_strerror" = "yes"; then |
| 32697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 32698 | $as_echo "yes" >&6; } |
| 32699 | |
| 32700 | cat >>confdefs.h <<_ACEOF |
| 32701 | #define HAVE_GAI_STRERROR 1 |
| 32702 | _ACEOF |
| 32703 | |
| 32704 | curl_cv_func_gai_strerror="yes" |
| 32705 | else |
| 32706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 32707 | $as_echo "no" >&6; } |
| 32708 | curl_cv_func_gai_strerror="no" |
| 32709 | fi |
| 32710 | |
| 32711 | |
| 32712 | # |
| 32713 | tst_links_gethostbyaddr="unknown" |
| 32714 | tst_proto_gethostbyaddr="unknown" |
| 32715 | tst_compi_gethostbyaddr="unknown" |
| 32716 | tst_allow_gethostbyaddr="unknown" |
| 32717 | # |
| 32718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5 |
| 32719 | $as_echo_n "checking if gethostbyaddr can be linked... " >&6; } |
| 32720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32721 | /* end confdefs.h. */ |
| 32722 | |
| 32723 | |
| 32724 | $curl_includes_winsock2 |
| 32725 | $curl_includes_netdb |
| 32726 | |
| 32727 | int main (void) |
| 32728 | { |
| 32729 | |
| 32730 | if(0 != gethostbyaddr(0, 0, 0)) |
| 32731 | return 1; |
| 32732 | |
| 32733 | ; |
| 32734 | return 0; |
| 32735 | } |
| 32736 | |
| 32737 | _ACEOF |
| 32738 | if ac_fn_c_try_link "$LINENO"; then : |
| 32739 | |
| 32740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 32741 | $as_echo "yes" >&6; } |
| 32742 | tst_links_gethostbyaddr="yes" |
| 32743 | |
| 32744 | else |
| 32745 | |
| 32746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 32747 | $as_echo "no" >&6; } |
| 32748 | tst_links_gethostbyaddr="no" |
| 32749 | |
| 32750 | fi |
| 32751 | rm -f core conftest.err conftest.$ac_objext \ |
| 32752 | conftest$ac_exeext conftest.$ac_ext |
| 32753 | # |
| 32754 | if test "$tst_links_gethostbyaddr" = "yes"; then |
| 32755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5 |
| 32756 | $as_echo_n "checking if gethostbyaddr is prototyped... " >&6; } |
| 32757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32758 | /* end confdefs.h. */ |
| 32759 | |
| 32760 | $curl_includes_winsock2 |
| 32761 | $curl_includes_netdb |
| 32762 | |
| 32763 | _ACEOF |
| 32764 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 32765 | $EGREP "gethostbyaddr" >/dev/null 2>&1; then : |
| 32766 | |
| 32767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 32768 | $as_echo "yes" >&6; } |
| 32769 | tst_proto_gethostbyaddr="yes" |
| 32770 | |
| 32771 | else |
| 32772 | |
| 32773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 32774 | $as_echo "no" >&6; } |
| 32775 | tst_proto_gethostbyaddr="no" |
| 32776 | |
| 32777 | fi |
| 32778 | rm -f conftest* |
| 32779 | |
| 32780 | fi |
| 32781 | # |
| 32782 | if test "$tst_proto_gethostbyaddr" = "yes"; then |
| 32783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5 |
| 32784 | $as_echo_n "checking if gethostbyaddr is compilable... " >&6; } |
| 32785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32786 | /* end confdefs.h. */ |
| 32787 | |
| 32788 | |
| 32789 | $curl_includes_winsock2 |
| 32790 | $curl_includes_netdb |
| 32791 | |
| 32792 | int main (void) |
| 32793 | { |
| 32794 | |
| 32795 | if(0 != gethostbyaddr(0, 0, 0)) |
| 32796 | return 1; |
| 32797 | |
| 32798 | ; |
| 32799 | return 0; |
| 32800 | } |
| 32801 | |
| 32802 | _ACEOF |
| 32803 | if ac_fn_c_try_compile "$LINENO"; then : |
| 32804 | |
| 32805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 32806 | $as_echo "yes" >&6; } |
| 32807 | tst_compi_gethostbyaddr="yes" |
| 32808 | |
| 32809 | else |
| 32810 | |
| 32811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 32812 | $as_echo "no" >&6; } |
| 32813 | tst_compi_gethostbyaddr="no" |
| 32814 | |
| 32815 | fi |
| 32816 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 32817 | fi |
| 32818 | # |
| 32819 | if test "$tst_compi_gethostbyaddr" = "yes"; then |
| 32820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5 |
| 32821 | $as_echo_n "checking if gethostbyaddr usage allowed... " >&6; } |
| 32822 | if test "x$curl_disallow_gethostbyaddr" != "xyes"; then |
| 32823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 32824 | $as_echo "yes" >&6; } |
| 32825 | tst_allow_gethostbyaddr="yes" |
| 32826 | else |
| 32827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 32828 | $as_echo "no" >&6; } |
| 32829 | tst_allow_gethostbyaddr="no" |
| 32830 | fi |
| 32831 | fi |
| 32832 | # |
| 32833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5 |
| 32834 | $as_echo_n "checking if gethostbyaddr might be used... " >&6; } |
| 32835 | if test "$tst_links_gethostbyaddr" = "yes" && |
| 32836 | test "$tst_proto_gethostbyaddr" = "yes" && |
| 32837 | test "$tst_compi_gethostbyaddr" = "yes" && |
| 32838 | test "$tst_allow_gethostbyaddr" = "yes"; then |
| 32839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 32840 | $as_echo "yes" >&6; } |
| 32841 | |
| 32842 | cat >>confdefs.h <<_ACEOF |
| 32843 | #define HAVE_GETHOSTBYADDR 1 |
| 32844 | _ACEOF |
| 32845 | |
| 32846 | curl_cv_func_gethostbyaddr="yes" |
| 32847 | else |
| 32848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 32849 | $as_echo "no" >&6; } |
| 32850 | curl_cv_func_gethostbyaddr="no" |
| 32851 | fi |
| 32852 | |
| 32853 | |
| 32854 | # |
| 32855 | tst_links_gethostbyaddr_r="unknown" |
| 32856 | tst_proto_gethostbyaddr_r="unknown" |
| 32857 | tst_compi_gethostbyaddr_r="unknown" |
| 32858 | tst_allow_gethostbyaddr_r="unknown" |
| 32859 | tst_nargs_gethostbyaddr_r="unknown" |
| 32860 | # |
| 32861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5 |
| 32862 | $as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; } |
| 32863 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32864 | /* end confdefs.h. */ |
| 32865 | |
| 32866 | |
| 32867 | #define gethostbyaddr_r innocuous_gethostbyaddr_r |
| 32868 | #ifdef __STDC__ |
| 32869 | # include <limits.h> |
| 32870 | #else |
| 32871 | # include <assert.h> |
| 32872 | #endif |
| 32873 | #undef gethostbyaddr_r |
| 32874 | #ifdef __cplusplus |
| 32875 | extern "C" |
| 32876 | #endif |
| 32877 | char gethostbyaddr_r (); |
| 32878 | #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r |
| 32879 | choke me |
| 32880 | #endif |
| 32881 | |
| 32882 | int main (void) |
| 32883 | { |
| 32884 | return gethostbyaddr_r (); |
| 32885 | ; |
| 32886 | return 0; |
| 32887 | } |
| 32888 | |
| 32889 | _ACEOF |
| 32890 | if ac_fn_c_try_link "$LINENO"; then : |
| 32891 | |
| 32892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 32893 | $as_echo "yes" >&6; } |
| 32894 | tst_links_gethostbyaddr_r="yes" |
| 32895 | |
| 32896 | else |
| 32897 | |
| 32898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 32899 | $as_echo "no" >&6; } |
| 32900 | tst_links_gethostbyaddr_r="no" |
| 32901 | |
| 32902 | fi |
| 32903 | rm -f core conftest.err conftest.$ac_objext \ |
| 32904 | conftest$ac_exeext conftest.$ac_ext |
| 32905 | # |
| 32906 | if test "$tst_links_gethostbyaddr_r" = "yes"; then |
| 32907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5 |
| 32908 | $as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; } |
| 32909 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32910 | /* end confdefs.h. */ |
| 32911 | |
| 32912 | $curl_includes_netdb |
| 32913 | |
| 32914 | _ACEOF |
| 32915 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 32916 | $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then : |
| 32917 | |
| 32918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 32919 | $as_echo "yes" >&6; } |
| 32920 | tst_proto_gethostbyaddr_r="yes" |
| 32921 | |
| 32922 | else |
| 32923 | |
| 32924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 32925 | $as_echo "no" >&6; } |
| 32926 | tst_proto_gethostbyaddr_r="no" |
| 32927 | |
| 32928 | fi |
| 32929 | rm -f conftest* |
| 32930 | |
| 32931 | fi |
| 32932 | # |
| 32933 | if test "$tst_proto_gethostbyaddr_r" = "yes"; then |
| 32934 | if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then |
| 32935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5 |
| 32936 | $as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; } |
| 32937 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32938 | /* end confdefs.h. */ |
| 32939 | |
| 32940 | |
| 32941 | $curl_includes_netdb |
| 32942 | |
| 32943 | int main (void) |
| 32944 | { |
| 32945 | |
| 32946 | if(0 != gethostbyaddr_r(0, 0, 0, 0, 0)) |
| 32947 | return 1; |
| 32948 | |
| 32949 | ; |
| 32950 | return 0; |
| 32951 | } |
| 32952 | |
| 32953 | _ACEOF |
| 32954 | if ac_fn_c_try_compile "$LINENO"; then : |
| 32955 | |
| 32956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 32957 | $as_echo "yes" >&6; } |
| 32958 | tst_compi_gethostbyaddr_r="yes" |
| 32959 | tst_nargs_gethostbyaddr_r="5" |
| 32960 | |
| 32961 | else |
| 32962 | |
| 32963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 32964 | $as_echo "no" >&6; } |
| 32965 | tst_compi_gethostbyaddr_r="no" |
| 32966 | |
| 32967 | fi |
| 32968 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 32969 | fi |
| 32970 | if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then |
| 32971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5 |
| 32972 | $as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; } |
| 32973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32974 | /* end confdefs.h. */ |
| 32975 | |
| 32976 | |
| 32977 | $curl_includes_netdb |
| 32978 | |
| 32979 | int main (void) |
| 32980 | { |
| 32981 | |
| 32982 | if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0)) |
| 32983 | return 1; |
| 32984 | |
| 32985 | ; |
| 32986 | return 0; |
| 32987 | } |
| 32988 | |
| 32989 | _ACEOF |
| 32990 | if ac_fn_c_try_compile "$LINENO"; then : |
| 32991 | |
| 32992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 32993 | $as_echo "yes" >&6; } |
| 32994 | tst_compi_gethostbyaddr_r="yes" |
| 32995 | tst_nargs_gethostbyaddr_r="7" |
| 32996 | |
| 32997 | else |
| 32998 | |
| 32999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 33000 | $as_echo "no" >&6; } |
| 33001 | tst_compi_gethostbyaddr_r="no" |
| 33002 | |
| 33003 | fi |
| 33004 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 33005 | fi |
| 33006 | if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then |
| 33007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5 |
| 33008 | $as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; } |
| 33009 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33010 | /* end confdefs.h. */ |
| 33011 | |
| 33012 | |
| 33013 | $curl_includes_netdb |
| 33014 | |
| 33015 | int main (void) |
| 33016 | { |
| 33017 | |
| 33018 | if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0)) |
| 33019 | return 1; |
| 33020 | |
| 33021 | ; |
| 33022 | return 0; |
| 33023 | } |
| 33024 | |
| 33025 | _ACEOF |
| 33026 | if ac_fn_c_try_compile "$LINENO"; then : |
| 33027 | |
| 33028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 33029 | $as_echo "yes" >&6; } |
| 33030 | tst_compi_gethostbyaddr_r="yes" |
| 33031 | tst_nargs_gethostbyaddr_r="8" |
| 33032 | |
| 33033 | else |
| 33034 | |
| 33035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 33036 | $as_echo "no" >&6; } |
| 33037 | tst_compi_gethostbyaddr_r="no" |
| 33038 | |
| 33039 | fi |
| 33040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 33041 | fi |
| 33042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5 |
| 33043 | $as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; } |
| 33044 | if test "$tst_compi_gethostbyaddr_r" = "yes"; then |
| 33045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 33046 | $as_echo "yes" >&6; } |
| 33047 | else |
| 33048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 33049 | $as_echo "no" >&6; } |
| 33050 | fi |
| 33051 | fi |
| 33052 | # |
| 33053 | if test "$tst_compi_gethostbyaddr_r" = "yes"; then |
| 33054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5 |
| 33055 | $as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; } |
| 33056 | if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then |
| 33057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 33058 | $as_echo "yes" >&6; } |
| 33059 | tst_allow_gethostbyaddr_r="yes" |
| 33060 | else |
| 33061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 33062 | $as_echo "no" >&6; } |
| 33063 | tst_allow_gethostbyaddr_r="no" |
| 33064 | fi |
| 33065 | fi |
| 33066 | # |
| 33067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5 |
| 33068 | $as_echo_n "checking if gethostbyaddr_r might be used... " >&6; } |
| 33069 | if test "$tst_links_gethostbyaddr_r" = "yes" && |
| 33070 | test "$tst_proto_gethostbyaddr_r" = "yes" && |
| 33071 | test "$tst_compi_gethostbyaddr_r" = "yes" && |
| 33072 | test "$tst_allow_gethostbyaddr_r" = "yes"; then |
| 33073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 33074 | $as_echo "yes" >&6; } |
| 33075 | |
| 33076 | cat >>confdefs.h <<_ACEOF |
| 33077 | #define HAVE_GETHOSTBYADDR_R 1 |
| 33078 | _ACEOF |
| 33079 | |
| 33080 | # |
| 33081 | if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then |
| 33082 | |
| 33083 | $as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h |
| 33084 | |
| 33085 | elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then |
| 33086 | |
| 33087 | $as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h |
| 33088 | |
| 33089 | elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then |
| 33090 | |
| 33091 | $as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h |
| 33092 | |
| 33093 | fi |
| 33094 | # |
| 33095 | curl_cv_func_gethostbyaddr_r="yes" |
| 33096 | else |
| 33097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 33098 | $as_echo "no" >&6; } |
| 33099 | curl_cv_func_gethostbyaddr_r="no" |
| 33100 | fi |
| 33101 | |
| 33102 | |
| 33103 | # |
| 33104 | tst_links_gethostbyname="unknown" |
| 33105 | tst_proto_gethostbyname="unknown" |
| 33106 | tst_compi_gethostbyname="unknown" |
| 33107 | tst_allow_gethostbyname="unknown" |
| 33108 | # |
| 33109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5 |
| 33110 | $as_echo_n "checking if gethostbyname can be linked... " >&6; } |
| 33111 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33112 | /* end confdefs.h. */ |
| 33113 | |
| 33114 | |
| 33115 | $curl_includes_winsock2 |
| 33116 | $curl_includes_netdb |
| 33117 | |
| 33118 | int main (void) |
| 33119 | { |
| 33120 | |
| 33121 | if(0 != gethostbyname(0)) |
| 33122 | return 1; |
| 33123 | |
| 33124 | ; |
| 33125 | return 0; |
| 33126 | } |
| 33127 | |
| 33128 | _ACEOF |
| 33129 | if ac_fn_c_try_link "$LINENO"; then : |
| 33130 | |
| 33131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 33132 | $as_echo "yes" >&6; } |
| 33133 | tst_links_gethostbyname="yes" |
| 33134 | |
| 33135 | else |
| 33136 | |
| 33137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 33138 | $as_echo "no" >&6; } |
| 33139 | tst_links_gethostbyname="no" |
| 33140 | |
| 33141 | fi |
| 33142 | rm -f core conftest.err conftest.$ac_objext \ |
| 33143 | conftest$ac_exeext conftest.$ac_ext |
| 33144 | # |
| 33145 | if test "$tst_links_gethostbyname" = "yes"; then |
| 33146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5 |
| 33147 | $as_echo_n "checking if gethostbyname is prototyped... " >&6; } |
| 33148 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33149 | /* end confdefs.h. */ |
| 33150 | |
| 33151 | $curl_includes_winsock2 |
| 33152 | $curl_includes_netdb |
| 33153 | |
| 33154 | _ACEOF |
| 33155 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 33156 | $EGREP "gethostbyname" >/dev/null 2>&1; then : |
| 33157 | |
| 33158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 33159 | $as_echo "yes" >&6; } |
| 33160 | tst_proto_gethostbyname="yes" |
| 33161 | |
| 33162 | else |
| 33163 | |
| 33164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 33165 | $as_echo "no" >&6; } |
| 33166 | tst_proto_gethostbyname="no" |
| 33167 | |
| 33168 | fi |
| 33169 | rm -f conftest* |
| 33170 | |
| 33171 | fi |
| 33172 | # |
| 33173 | if test "$tst_proto_gethostbyname" = "yes"; then |
| 33174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5 |
| 33175 | $as_echo_n "checking if gethostbyname is compilable... " >&6; } |
| 33176 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33177 | /* end confdefs.h. */ |
| 33178 | |
| 33179 | |
| 33180 | $curl_includes_winsock2 |
| 33181 | $curl_includes_netdb |
| 33182 | |
| 33183 | int main (void) |
| 33184 | { |
| 33185 | |
| 33186 | if(0 != gethostbyname(0)) |
| 33187 | return 1; |
| 33188 | |
| 33189 | ; |
| 33190 | return 0; |
| 33191 | } |
| 33192 | |
| 33193 | _ACEOF |
| 33194 | if ac_fn_c_try_compile "$LINENO"; then : |
| 33195 | |
| 33196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 33197 | $as_echo "yes" >&6; } |
| 33198 | tst_compi_gethostbyname="yes" |
| 33199 | |
| 33200 | else |
| 33201 | |
| 33202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 33203 | $as_echo "no" >&6; } |
| 33204 | tst_compi_gethostbyname="no" |
| 33205 | |
| 33206 | fi |
| 33207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 33208 | fi |
| 33209 | # |
| 33210 | if test "$tst_compi_gethostbyname" = "yes"; then |
| 33211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5 |
| 33212 | $as_echo_n "checking if gethostbyname usage allowed... " >&6; } |
| 33213 | if test "x$curl_disallow_gethostbyname" != "xyes"; then |
| 33214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 33215 | $as_echo "yes" >&6; } |
| 33216 | tst_allow_gethostbyname="yes" |
| 33217 | else |
| 33218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 33219 | $as_echo "no" >&6; } |
| 33220 | tst_allow_gethostbyname="no" |
| 33221 | fi |
| 33222 | fi |
| 33223 | # |
| 33224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5 |
| 33225 | $as_echo_n "checking if gethostbyname might be used... " >&6; } |
| 33226 | if test "$tst_links_gethostbyname" = "yes" && |
| 33227 | test "$tst_proto_gethostbyname" = "yes" && |
| 33228 | test "$tst_compi_gethostbyname" = "yes" && |
| 33229 | test "$tst_allow_gethostbyname" = "yes"; then |
| 33230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 33231 | $as_echo "yes" >&6; } |
| 33232 | |
| 33233 | cat >>confdefs.h <<_ACEOF |
| 33234 | #define HAVE_GETHOSTBYNAME 1 |
| 33235 | _ACEOF |
| 33236 | |
| 33237 | curl_cv_func_gethostbyname="yes" |
| 33238 | else |
| 33239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 33240 | $as_echo "no" >&6; } |
| 33241 | curl_cv_func_gethostbyname="no" |
| 33242 | fi |
| 33243 | |
| 33244 | |
| 33245 | # |
| 33246 | tst_links_gethostbyname_r="unknown" |
| 33247 | tst_proto_gethostbyname_r="unknown" |
| 33248 | tst_compi_gethostbyname_r="unknown" |
| 33249 | tst_allow_gethostbyname_r="unknown" |
| 33250 | tst_nargs_gethostbyname_r="unknown" |
| 33251 | # |
| 33252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5 |
| 33253 | $as_echo_n "checking if gethostbyname_r can be linked... " >&6; } |
| 33254 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33255 | /* end confdefs.h. */ |
| 33256 | |
| 33257 | |
| 33258 | #define gethostbyname_r innocuous_gethostbyname_r |
| 33259 | #ifdef __STDC__ |
| 33260 | # include <limits.h> |
| 33261 | #else |
| 33262 | # include <assert.h> |
| 33263 | #endif |
| 33264 | #undef gethostbyname_r |
| 33265 | #ifdef __cplusplus |
| 33266 | extern "C" |
| 33267 | #endif |
| 33268 | char gethostbyname_r (); |
| 33269 | #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r |
| 33270 | choke me |
| 33271 | #endif |
| 33272 | |
| 33273 | int main (void) |
| 33274 | { |
| 33275 | return gethostbyname_r (); |
| 33276 | ; |
| 33277 | return 0; |
| 33278 | } |
| 33279 | |
| 33280 | _ACEOF |
| 33281 | if ac_fn_c_try_link "$LINENO"; then : |
| 33282 | |
| 33283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 33284 | $as_echo "yes" >&6; } |
| 33285 | tst_links_gethostbyname_r="yes" |
| 33286 | |
| 33287 | else |
| 33288 | |
| 33289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 33290 | $as_echo "no" >&6; } |
| 33291 | tst_links_gethostbyname_r="no" |
| 33292 | |
| 33293 | fi |
| 33294 | rm -f core conftest.err conftest.$ac_objext \ |
| 33295 | conftest$ac_exeext conftest.$ac_ext |
| 33296 | # |
| 33297 | if test "$tst_links_gethostbyname_r" = "yes"; then |
| 33298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5 |
| 33299 | $as_echo_n "checking if gethostbyname_r is prototyped... " >&6; } |
| 33300 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33301 | /* end confdefs.h. */ |
| 33302 | |
| 33303 | $curl_includes_netdb |
| 33304 | |
| 33305 | _ACEOF |
| 33306 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 33307 | $EGREP "gethostbyname_r" >/dev/null 2>&1; then : |
| 33308 | |
| 33309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 33310 | $as_echo "yes" >&6; } |
| 33311 | tst_proto_gethostbyname_r="yes" |
| 33312 | |
| 33313 | else |
| 33314 | |
| 33315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 33316 | $as_echo "no" >&6; } |
| 33317 | tst_proto_gethostbyname_r="no" |
| 33318 | |
| 33319 | fi |
| 33320 | rm -f conftest* |
| 33321 | |
| 33322 | fi |
| 33323 | # |
| 33324 | if test "$tst_proto_gethostbyname_r" = "yes"; then |
| 33325 | if test "$tst_nargs_gethostbyname_r" = "unknown"; then |
| 33326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5 |
| 33327 | $as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; } |
| 33328 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33329 | /* end confdefs.h. */ |
| 33330 | |
| 33331 | |
| 33332 | $curl_includes_netdb |
| 33333 | |
| 33334 | int main (void) |
| 33335 | { |
| 33336 | |
| 33337 | if(0 != gethostbyname_r(0, 0, 0)) |
| 33338 | return 1; |
| 33339 | |
| 33340 | ; |
| 33341 | return 0; |
| 33342 | } |
| 33343 | |
| 33344 | _ACEOF |
| 33345 | if ac_fn_c_try_compile "$LINENO"; then : |
| 33346 | |
| 33347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 33348 | $as_echo "yes" >&6; } |
| 33349 | tst_compi_gethostbyname_r="yes" |
| 33350 | tst_nargs_gethostbyname_r="3" |
| 33351 | |
| 33352 | else |
| 33353 | |
| 33354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 33355 | $as_echo "no" >&6; } |
| 33356 | tst_compi_gethostbyname_r="no" |
| 33357 | |
| 33358 | fi |
| 33359 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 33360 | fi |
| 33361 | if test "$tst_nargs_gethostbyname_r" = "unknown"; then |
| 33362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5 |
| 33363 | $as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; } |
| 33364 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33365 | /* end confdefs.h. */ |
| 33366 | |
| 33367 | |
| 33368 | $curl_includes_netdb |
| 33369 | |
| 33370 | int main (void) |
| 33371 | { |
| 33372 | |
| 33373 | if(0 != gethostbyname_r(0, 0, 0, 0, 0)) |
| 33374 | return 1; |
| 33375 | |
| 33376 | ; |
| 33377 | return 0; |
| 33378 | } |
| 33379 | |
| 33380 | _ACEOF |
| 33381 | if ac_fn_c_try_compile "$LINENO"; then : |
| 33382 | |
| 33383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 33384 | $as_echo "yes" >&6; } |
| 33385 | tst_compi_gethostbyname_r="yes" |
| 33386 | tst_nargs_gethostbyname_r="5" |
| 33387 | |
| 33388 | else |
| 33389 | |
| 33390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 33391 | $as_echo "no" >&6; } |
| 33392 | tst_compi_gethostbyname_r="no" |
| 33393 | |
| 33394 | fi |
| 33395 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 33396 | fi |
| 33397 | if test "$tst_nargs_gethostbyname_r" = "unknown"; then |
| 33398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5 |
| 33399 | $as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; } |
| 33400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33401 | /* end confdefs.h. */ |
| 33402 | |
| 33403 | |
| 33404 | $curl_includes_netdb |
| 33405 | |
| 33406 | int main (void) |
| 33407 | { |
| 33408 | |
| 33409 | if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0)) |
| 33410 | return 1; |
| 33411 | |
| 33412 | ; |
| 33413 | return 0; |
| 33414 | } |
| 33415 | |
| 33416 | _ACEOF |
| 33417 | if ac_fn_c_try_compile "$LINENO"; then : |
| 33418 | |
| 33419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 33420 | $as_echo "yes" >&6; } |
| 33421 | tst_compi_gethostbyname_r="yes" |
| 33422 | tst_nargs_gethostbyname_r="6" |
| 33423 | |
| 33424 | else |
| 33425 | |
| 33426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 33427 | $as_echo "no" >&6; } |
| 33428 | tst_compi_gethostbyname_r="no" |
| 33429 | |
| 33430 | fi |
| 33431 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 33432 | fi |
| 33433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5 |
| 33434 | $as_echo_n "checking if gethostbyname_r is compilable... " >&6; } |
| 33435 | if test "$tst_compi_gethostbyname_r" = "yes"; then |
| 33436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 33437 | $as_echo "yes" >&6; } |
| 33438 | else |
| 33439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 33440 | $as_echo "no" >&6; } |
| 33441 | fi |
| 33442 | fi |
| 33443 | # |
| 33444 | if test "$tst_compi_gethostbyname_r" = "yes"; then |
| 33445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5 |
| 33446 | $as_echo_n "checking if gethostbyname_r usage allowed... " >&6; } |
| 33447 | if test "x$curl_disallow_gethostbyname_r" != "xyes"; then |
| 33448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 33449 | $as_echo "yes" >&6; } |
| 33450 | tst_allow_gethostbyname_r="yes" |
| 33451 | else |
| 33452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 33453 | $as_echo "no" >&6; } |
| 33454 | tst_allow_gethostbyname_r="no" |
| 33455 | fi |
| 33456 | fi |
| 33457 | # |
| 33458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5 |
| 33459 | $as_echo_n "checking if gethostbyname_r might be used... " >&6; } |
| 33460 | if test "$tst_links_gethostbyname_r" = "yes" && |
| 33461 | test "$tst_proto_gethostbyname_r" = "yes" && |
| 33462 | test "$tst_compi_gethostbyname_r" = "yes" && |
| 33463 | test "$tst_allow_gethostbyname_r" = "yes"; then |
| 33464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 33465 | $as_echo "yes" >&6; } |
| 33466 | |
| 33467 | cat >>confdefs.h <<_ACEOF |
| 33468 | #define HAVE_GETHOSTBYNAME_R 1 |
| 33469 | _ACEOF |
| 33470 | |
| 33471 | # |
| 33472 | if test "$tst_nargs_gethostbyname_r" -eq "3"; then |
| 33473 | |
| 33474 | $as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h |
| 33475 | |
| 33476 | elif test "$tst_nargs_gethostbyname_r" -eq "5"; then |
| 33477 | |
| 33478 | $as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h |
| 33479 | |
| 33480 | elif test "$tst_nargs_gethostbyname_r" -eq "6"; then |
| 33481 | |
| 33482 | $as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h |
| 33483 | |
| 33484 | fi |
| 33485 | # |
| 33486 | curl_cv_func_gethostbyname_r="yes" |
| 33487 | else |
| 33488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 33489 | $as_echo "no" >&6; } |
| 33490 | curl_cv_func_gethostbyname_r="no" |
| 33491 | fi |
| 33492 | |
| 33493 | |
| 33494 | # |
| 33495 | tst_links_gethostname="unknown" |
| 33496 | tst_proto_gethostname="unknown" |
| 33497 | tst_compi_gethostname="unknown" |
| 33498 | tst_allow_gethostname="unknown" |
| 33499 | # |
| 33500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5 |
| 33501 | $as_echo_n "checking if gethostname can be linked... " >&6; } |
| 33502 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33503 | /* end confdefs.h. */ |
| 33504 | |
| 33505 | |
| 33506 | $curl_includes_winsock2 |
| 33507 | $curl_includes_unistd |
| 33508 | |
| 33509 | int main (void) |
| 33510 | { |
| 33511 | |
| 33512 | if(0 != gethostname(0, 0)) |
| 33513 | return 1; |
| 33514 | |
| 33515 | ; |
| 33516 | return 0; |
| 33517 | } |
| 33518 | |
| 33519 | _ACEOF |
| 33520 | if ac_fn_c_try_link "$LINENO"; then : |
| 33521 | |
| 33522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 33523 | $as_echo "yes" >&6; } |
| 33524 | tst_links_gethostname="yes" |
| 33525 | |
| 33526 | else |
| 33527 | |
| 33528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 33529 | $as_echo "no" >&6; } |
| 33530 | tst_links_gethostname="no" |
| 33531 | |
| 33532 | fi |
| 33533 | rm -f core conftest.err conftest.$ac_objext \ |
| 33534 | conftest$ac_exeext conftest.$ac_ext |
| 33535 | # |
| 33536 | if test "$tst_links_gethostname" = "yes"; then |
| 33537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5 |
| 33538 | $as_echo_n "checking if gethostname is prototyped... " >&6; } |
| 33539 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33540 | /* end confdefs.h. */ |
| 33541 | |
| 33542 | $curl_includes_winsock2 |
| 33543 | $curl_includes_unistd |
| 33544 | |
| 33545 | _ACEOF |
| 33546 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 33547 | $EGREP "gethostname" >/dev/null 2>&1; then : |
| 33548 | |
| 33549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 33550 | $as_echo "yes" >&6; } |
| 33551 | tst_proto_gethostname="yes" |
| 33552 | |
| 33553 | else |
| 33554 | |
| 33555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 33556 | $as_echo "no" >&6; } |
| 33557 | tst_proto_gethostname="no" |
| 33558 | |
| 33559 | fi |
| 33560 | rm -f conftest* |
| 33561 | |
| 33562 | fi |
| 33563 | # |
| 33564 | if test "$tst_proto_gethostname" = "yes"; then |
| 33565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5 |
| 33566 | $as_echo_n "checking if gethostname is compilable... " >&6; } |
| 33567 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33568 | /* end confdefs.h. */ |
| 33569 | |
| 33570 | |
| 33571 | $curl_includes_winsock2 |
| 33572 | $curl_includes_unistd |
| 33573 | |
| 33574 | int main (void) |
| 33575 | { |
| 33576 | |
| 33577 | if(0 != gethostname(0, 0)) |
| 33578 | return 1; |
| 33579 | |
| 33580 | ; |
| 33581 | return 0; |
| 33582 | } |
| 33583 | |
| 33584 | _ACEOF |
| 33585 | if ac_fn_c_try_compile "$LINENO"; then : |
| 33586 | |
| 33587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 33588 | $as_echo "yes" >&6; } |
| 33589 | tst_compi_gethostname="yes" |
| 33590 | |
| 33591 | else |
| 33592 | |
| 33593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 33594 | $as_echo "no" >&6; } |
| 33595 | tst_compi_gethostname="no" |
| 33596 | |
| 33597 | fi |
| 33598 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 33599 | fi |
| 33600 | # |
| 33601 | if test "$tst_compi_gethostname" = "yes"; then |
| 33602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5 |
| 33603 | $as_echo_n "checking for gethostname arg 2 data type... " >&6; } |
| 33604 | tst_gethostname_type_arg2="unknown" |
| 33605 | for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do |
| 33606 | for tst_arg2 in 'int' 'unsigned int' 'size_t'; do |
| 33607 | if test "$tst_gethostname_type_arg2" = "unknown"; then |
| 33608 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33609 | /* end confdefs.h. */ |
| 33610 | |
| 33611 | |
| 33612 | $curl_includes_winsock2 |
| 33613 | $curl_includes_unistd |
| 33614 | $curl_preprocess_callconv |
| 33615 | extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2); |
| 33616 | |
| 33617 | int main (void) |
| 33618 | { |
| 33619 | |
| 33620 | if(0 != gethostname(0, 0)) |
| 33621 | return 1; |
| 33622 | |
| 33623 | ; |
| 33624 | return 0; |
| 33625 | } |
| 33626 | |
| 33627 | _ACEOF |
| 33628 | if ac_fn_c_try_compile "$LINENO"; then : |
| 33629 | |
| 33630 | tst_gethostname_type_arg2="$tst_arg2" |
| 33631 | |
| 33632 | fi |
| 33633 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 33634 | fi |
| 33635 | done |
| 33636 | done |
| 33637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5 |
| 33638 | $as_echo "$tst_gethostname_type_arg2" >&6; } |
| 33639 | if test "$tst_gethostname_type_arg2" != "unknown"; then |
| 33640 | |
| 33641 | cat >>confdefs.h <<_ACEOF |
| 33642 | #define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2 |
| 33643 | _ACEOF |
| 33644 | |
| 33645 | fi |
| 33646 | fi |
| 33647 | # |
| 33648 | if test "$tst_compi_gethostname" = "yes"; then |
| 33649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5 |
| 33650 | $as_echo_n "checking if gethostname usage allowed... " >&6; } |
| 33651 | if test "x$curl_disallow_gethostname" != "xyes"; then |
| 33652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 33653 | $as_echo "yes" >&6; } |
| 33654 | tst_allow_gethostname="yes" |
| 33655 | else |
| 33656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 33657 | $as_echo "no" >&6; } |
| 33658 | tst_allow_gethostname="no" |
| 33659 | fi |
| 33660 | fi |
| 33661 | # |
| 33662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5 |
| 33663 | $as_echo_n "checking if gethostname might be used... " >&6; } |
| 33664 | if test "$tst_links_gethostname" = "yes" && |
| 33665 | test "$tst_proto_gethostname" = "yes" && |
| 33666 | test "$tst_compi_gethostname" = "yes" && |
| 33667 | test "$tst_allow_gethostname" = "yes"; then |
| 33668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 33669 | $as_echo "yes" >&6; } |
| 33670 | |
| 33671 | cat >>confdefs.h <<_ACEOF |
| 33672 | #define HAVE_GETHOSTNAME 1 |
| 33673 | _ACEOF |
| 33674 | |
| 33675 | curl_cv_func_gethostname="yes" |
| 33676 | else |
| 33677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 33678 | $as_echo "no" >&6; } |
| 33679 | curl_cv_func_gethostname="no" |
| 33680 | fi |
| 33681 | |
| 33682 | |
| 33683 | # |
| 33684 | tst_links_getifaddrs="unknown" |
| 33685 | tst_proto_getifaddrs="unknown" |
| 33686 | tst_compi_getifaddrs="unknown" |
| 33687 | tst_works_getifaddrs="unknown" |
| 33688 | tst_allow_getifaddrs="unknown" |
| 33689 | # |
| 33690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5 |
| 33691 | $as_echo_n "checking if getifaddrs can be linked... " >&6; } |
| 33692 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33693 | /* end confdefs.h. */ |
| 33694 | |
| 33695 | |
| 33696 | #define getifaddrs innocuous_getifaddrs |
| 33697 | #ifdef __STDC__ |
| 33698 | # include <limits.h> |
| 33699 | #else |
| 33700 | # include <assert.h> |
| 33701 | #endif |
| 33702 | #undef getifaddrs |
| 33703 | #ifdef __cplusplus |
| 33704 | extern "C" |
| 33705 | #endif |
| 33706 | char getifaddrs (); |
| 33707 | #if defined __stub_getifaddrs || defined __stub___getifaddrs |
| 33708 | choke me |
| 33709 | #endif |
| 33710 | |
| 33711 | int main (void) |
| 33712 | { |
| 33713 | return getifaddrs (); |
| 33714 | ; |
| 33715 | return 0; |
| 33716 | } |
| 33717 | |
| 33718 | _ACEOF |
| 33719 | if ac_fn_c_try_link "$LINENO"; then : |
| 33720 | |
| 33721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 33722 | $as_echo "yes" >&6; } |
| 33723 | tst_links_getifaddrs="yes" |
| 33724 | |
| 33725 | else |
| 33726 | |
| 33727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 33728 | $as_echo "no" >&6; } |
| 33729 | tst_links_getifaddrs="no" |
| 33730 | |
| 33731 | fi |
| 33732 | rm -f core conftest.err conftest.$ac_objext \ |
| 33733 | conftest$ac_exeext conftest.$ac_ext |
| 33734 | # |
| 33735 | if test "$tst_links_getifaddrs" = "yes"; then |
| 33736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5 |
| 33737 | $as_echo_n "checking if getifaddrs is prototyped... " >&6; } |
| 33738 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33739 | /* end confdefs.h. */ |
| 33740 | |
| 33741 | $curl_includes_ifaddrs |
| 33742 | |
| 33743 | _ACEOF |
| 33744 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 33745 | $EGREP "getifaddrs" >/dev/null 2>&1; then : |
| 33746 | |
| 33747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 33748 | $as_echo "yes" >&6; } |
| 33749 | tst_proto_getifaddrs="yes" |
| 33750 | |
| 33751 | else |
| 33752 | |
| 33753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 33754 | $as_echo "no" >&6; } |
| 33755 | tst_proto_getifaddrs="no" |
| 33756 | |
| 33757 | fi |
| 33758 | rm -f conftest* |
| 33759 | |
| 33760 | fi |
| 33761 | # |
| 33762 | if test "$tst_proto_getifaddrs" = "yes"; then |
| 33763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5 |
| 33764 | $as_echo_n "checking if getifaddrs is compilable... " >&6; } |
| 33765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33766 | /* end confdefs.h. */ |
| 33767 | |
| 33768 | |
| 33769 | $curl_includes_ifaddrs |
| 33770 | |
| 33771 | int main (void) |
| 33772 | { |
| 33773 | |
| 33774 | if(0 != getifaddrs(0)) |
| 33775 | return 1; |
| 33776 | |
| 33777 | ; |
| 33778 | return 0; |
| 33779 | } |
| 33780 | |
| 33781 | _ACEOF |
| 33782 | if ac_fn_c_try_compile "$LINENO"; then : |
| 33783 | |
| 33784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 33785 | $as_echo "yes" >&6; } |
| 33786 | tst_compi_getifaddrs="yes" |
| 33787 | |
| 33788 | else |
| 33789 | |
| 33790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 33791 | $as_echo "no" >&6; } |
| 33792 | tst_compi_getifaddrs="no" |
| 33793 | |
| 33794 | fi |
| 33795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 33796 | fi |
| 33797 | # |
| 33798 | if test "x$cross_compiling" != "xyes" && |
| 33799 | test "$tst_compi_getifaddrs" = "yes"; then |
| 33800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5 |
| 33801 | $as_echo_n "checking if getifaddrs seems to work... " >&6; } |
| 33802 | if test "$cross_compiling" = yes; then : |
| 33803 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 33804 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 33805 | as_fn_error $? "cannot run test program while cross compiling |
| 33806 | See \`config.log' for more details" "$LINENO" 5; } |
| 33807 | else |
| 33808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33809 | /* end confdefs.h. */ |
| 33810 | |
| 33811 | |
| 33812 | $curl_includes_stdlib |
| 33813 | $curl_includes_ifaddrs |
| 33814 | |
| 33815 | int main (void) |
| 33816 | { |
| 33817 | |
| 33818 | struct ifaddrs *ifa = 0; |
| 33819 | int error; |
| 33820 | |
| 33821 | error = getifaddrs(&ifa); |
| 33822 | if(error || !ifa) |
| 33823 | exit(1); /* fail */ |
| 33824 | else |
| 33825 | exit(0); |
| 33826 | |
| 33827 | ; |
| 33828 | return 0; |
| 33829 | } |
| 33830 | |
| 33831 | _ACEOF |
| 33832 | if ac_fn_c_try_run "$LINENO"; then : |
| 33833 | |
| 33834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 33835 | $as_echo "yes" >&6; } |
| 33836 | tst_works_getifaddrs="yes" |
| 33837 | |
| 33838 | else |
| 33839 | |
| 33840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 33841 | $as_echo "no" >&6; } |
| 33842 | tst_works_getifaddrs="no" |
| 33843 | |
| 33844 | fi |
| 33845 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 33846 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 33847 | fi |
| 33848 | |
| 33849 | fi |
| 33850 | # |
| 33851 | if test "$tst_compi_getifaddrs" = "yes" && |
| 33852 | test "$tst_works_getifaddrs" != "no"; then |
| 33853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5 |
| 33854 | $as_echo_n "checking if getifaddrs usage allowed... " >&6; } |
| 33855 | if test "x$curl_disallow_getifaddrs" != "xyes"; then |
| 33856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 33857 | $as_echo "yes" >&6; } |
| 33858 | tst_allow_getifaddrs="yes" |
| 33859 | else |
| 33860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 33861 | $as_echo "no" >&6; } |
| 33862 | tst_allow_getifaddrs="no" |
| 33863 | fi |
| 33864 | fi |
| 33865 | # |
| 33866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5 |
| 33867 | $as_echo_n "checking if getifaddrs might be used... " >&6; } |
| 33868 | if test "$tst_links_getifaddrs" = "yes" && |
| 33869 | test "$tst_proto_getifaddrs" = "yes" && |
| 33870 | test "$tst_compi_getifaddrs" = "yes" && |
| 33871 | test "$tst_allow_getifaddrs" = "yes" && |
| 33872 | test "$tst_works_getifaddrs" != "no"; then |
| 33873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 33874 | $as_echo "yes" >&6; } |
| 33875 | |
| 33876 | cat >>confdefs.h <<_ACEOF |
| 33877 | #define HAVE_GETIFADDRS 1 |
| 33878 | _ACEOF |
| 33879 | |
| 33880 | curl_cv_func_getifaddrs="yes" |
| 33881 | else |
| 33882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 33883 | $as_echo "no" >&6; } |
| 33884 | curl_cv_func_getifaddrs="no" |
| 33885 | fi |
| 33886 | |
| 33887 | |
| 33888 | # |
| 33889 | tst_links_getservbyport_r="unknown" |
| 33890 | tst_proto_getservbyport_r="unknown" |
| 33891 | tst_compi_getservbyport_r="unknown" |
| 33892 | tst_allow_getservbyport_r="unknown" |
| 33893 | tst_nargs_getservbyport_r="unknown" |
| 33894 | # |
| 33895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5 |
| 33896 | $as_echo_n "checking if getservbyport_r can be linked... " >&6; } |
| 33897 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33898 | /* end confdefs.h. */ |
| 33899 | |
| 33900 | |
| 33901 | #define getservbyport_r innocuous_getservbyport_r |
| 33902 | #ifdef __STDC__ |
| 33903 | # include <limits.h> |
| 33904 | #else |
| 33905 | # include <assert.h> |
| 33906 | #endif |
| 33907 | #undef getservbyport_r |
| 33908 | #ifdef __cplusplus |
| 33909 | extern "C" |
| 33910 | #endif |
| 33911 | char getservbyport_r (); |
| 33912 | #if defined __stub_getservbyport_r || defined __stub___getservbyport_r |
| 33913 | choke me |
| 33914 | #endif |
| 33915 | |
| 33916 | int main (void) |
| 33917 | { |
| 33918 | return getservbyport_r (); |
| 33919 | ; |
| 33920 | return 0; |
| 33921 | } |
| 33922 | |
| 33923 | _ACEOF |
| 33924 | if ac_fn_c_try_link "$LINENO"; then : |
| 33925 | |
| 33926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 33927 | $as_echo "yes" >&6; } |
| 33928 | tst_links_getservbyport_r="yes" |
| 33929 | |
| 33930 | else |
| 33931 | |
| 33932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 33933 | $as_echo "no" >&6; } |
| 33934 | tst_links_getservbyport_r="no" |
| 33935 | |
| 33936 | fi |
| 33937 | rm -f core conftest.err conftest.$ac_objext \ |
| 33938 | conftest$ac_exeext conftest.$ac_ext |
| 33939 | # |
| 33940 | if test "$tst_links_getservbyport_r" = "yes"; then |
| 33941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5 |
| 33942 | $as_echo_n "checking if getservbyport_r is prototyped... " >&6; } |
| 33943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33944 | /* end confdefs.h. */ |
| 33945 | |
| 33946 | $curl_includes_netdb |
| 33947 | |
| 33948 | _ACEOF |
| 33949 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 33950 | $EGREP "getservbyport_r" >/dev/null 2>&1; then : |
| 33951 | |
| 33952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 33953 | $as_echo "yes" >&6; } |
| 33954 | tst_proto_getservbyport_r="yes" |
| 33955 | |
| 33956 | else |
| 33957 | |
| 33958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 33959 | $as_echo "no" >&6; } |
| 33960 | tst_proto_getservbyport_r="no" |
| 33961 | |
| 33962 | fi |
| 33963 | rm -f conftest* |
| 33964 | |
| 33965 | fi |
| 33966 | # |
| 33967 | if test "$tst_proto_getservbyport_r" = "yes"; then |
| 33968 | if test "$tst_nargs_getservbyport_r" = "unknown"; then |
| 33969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5 |
| 33970 | $as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; } |
| 33971 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33972 | /* end confdefs.h. */ |
| 33973 | |
| 33974 | |
| 33975 | $curl_includes_netdb |
| 33976 | |
| 33977 | int main (void) |
| 33978 | { |
| 33979 | |
| 33980 | if(0 != getservbyport_r(0, 0, 0, 0)) |
| 33981 | return 1; |
| 33982 | |
| 33983 | ; |
| 33984 | return 0; |
| 33985 | } |
| 33986 | |
| 33987 | _ACEOF |
| 33988 | if ac_fn_c_try_compile "$LINENO"; then : |
| 33989 | |
| 33990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 33991 | $as_echo "yes" >&6; } |
| 33992 | tst_compi_getservbyport_r="yes" |
| 33993 | tst_nargs_getservbyport_r="4" |
| 33994 | |
| 33995 | else |
| 33996 | |
| 33997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 33998 | $as_echo "no" >&6; } |
| 33999 | tst_compi_getservbyport_r="no" |
| 34000 | |
| 34001 | fi |
| 34002 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 34003 | fi |
| 34004 | if test "$tst_nargs_getservbyport_r" = "unknown"; then |
| 34005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5 |
| 34006 | $as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; } |
| 34007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 34008 | /* end confdefs.h. */ |
| 34009 | |
| 34010 | |
| 34011 | $curl_includes_netdb |
| 34012 | |
| 34013 | int main (void) |
| 34014 | { |
| 34015 | |
| 34016 | if(0 != getservbyport_r(0, 0, 0, 0, 0)) |
| 34017 | return 1; |
| 34018 | |
| 34019 | ; |
| 34020 | return 0; |
| 34021 | } |
| 34022 | |
| 34023 | _ACEOF |
| 34024 | if ac_fn_c_try_compile "$LINENO"; then : |
| 34025 | |
| 34026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 34027 | $as_echo "yes" >&6; } |
| 34028 | tst_compi_getservbyport_r="yes" |
| 34029 | tst_nargs_getservbyport_r="5" |
| 34030 | |
| 34031 | else |
| 34032 | |
| 34033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 34034 | $as_echo "no" >&6; } |
| 34035 | tst_compi_getservbyport_r="no" |
| 34036 | |
| 34037 | fi |
| 34038 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 34039 | fi |
| 34040 | if test "$tst_nargs_getservbyport_r" = "unknown"; then |
| 34041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5 |
| 34042 | $as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; } |
| 34043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 34044 | /* end confdefs.h. */ |
| 34045 | |
| 34046 | |
| 34047 | $curl_includes_netdb |
| 34048 | |
| 34049 | int main (void) |
| 34050 | { |
| 34051 | |
| 34052 | if(0 != getservbyport_r(0, 0, 0, 0, 0, 0)) |
| 34053 | return 1; |
| 34054 | |
| 34055 | ; |
| 34056 | return 0; |
| 34057 | } |
| 34058 | |
| 34059 | _ACEOF |
| 34060 | if ac_fn_c_try_compile "$LINENO"; then : |
| 34061 | |
| 34062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 34063 | $as_echo "yes" >&6; } |
| 34064 | tst_compi_getservbyport_r="yes" |
| 34065 | tst_nargs_getservbyport_r="6" |
| 34066 | |
| 34067 | else |
| 34068 | |
| 34069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 34070 | $as_echo "no" >&6; } |
| 34071 | tst_compi_getservbyport_r="no" |
| 34072 | |
| 34073 | fi |
| 34074 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 34075 | fi |
| 34076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5 |
| 34077 | $as_echo_n "checking if getservbyport_r is compilable... " >&6; } |
| 34078 | if test "$tst_compi_getservbyport_r" = "yes"; then |
| 34079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 34080 | $as_echo "yes" >&6; } |
| 34081 | else |
| 34082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 34083 | $as_echo "no" >&6; } |
| 34084 | fi |
| 34085 | fi |
| 34086 | # |
| 34087 | if test "$tst_compi_getservbyport_r" = "yes"; then |
| 34088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5 |
| 34089 | $as_echo_n "checking if getservbyport_r usage allowed... " >&6; } |
| 34090 | if test "x$curl_disallow_getservbyport_r" != "xyes"; then |
| 34091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 34092 | $as_echo "yes" >&6; } |
| 34093 | tst_allow_getservbyport_r="yes" |
| 34094 | else |
| 34095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 34096 | $as_echo "no" >&6; } |
| 34097 | tst_allow_getservbyport_r="no" |
| 34098 | fi |
| 34099 | fi |
| 34100 | # |
| 34101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5 |
| 34102 | $as_echo_n "checking if getservbyport_r might be used... " >&6; } |
| 34103 | if test "$tst_links_getservbyport_r" = "yes" && |
| 34104 | test "$tst_proto_getservbyport_r" = "yes" && |
| 34105 | test "$tst_compi_getservbyport_r" = "yes" && |
| 34106 | test "$tst_allow_getservbyport_r" = "yes"; then |
| 34107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 34108 | $as_echo "yes" >&6; } |
| 34109 | |
| 34110 | cat >>confdefs.h <<_ACEOF |
| 34111 | #define HAVE_GETSERVBYPORT_R 1 |
| 34112 | _ACEOF |
| 34113 | |
| 34114 | |
| 34115 | cat >>confdefs.h <<_ACEOF |
| 34116 | #define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r |
| 34117 | _ACEOF |
| 34118 | |
| 34119 | if test "$tst_nargs_getservbyport_r" -eq "4"; then |
| 34120 | |
| 34121 | $as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h |
| 34122 | |
| 34123 | else |
| 34124 | |
| 34125 | $as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h |
| 34126 | |
| 34127 | fi |
| 34128 | curl_cv_func_getservbyport_r="yes" |
| 34129 | else |
| 34130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 34131 | $as_echo "no" >&6; } |
| 34132 | curl_cv_func_getservbyport_r="no" |
| 34133 | fi |
| 34134 | |
| 34135 | |
| 34136 | curl_includes_time="\ |
| 34137 | /* includes start */ |
| 34138 | #ifdef HAVE_SYS_TYPES_H |
| 34139 | # include <sys/types.h> |
| 34140 | #endif |
| 34141 | #ifdef HAVE_SYS_TIME_H |
| 34142 | # include <sys/time.h> |
| 34143 | # ifdef TIME_WITH_SYS_TIME |
| 34144 | # include <time.h> |
| 34145 | # endif |
| 34146 | #else |
| 34147 | # ifdef HAVE_TIME_H |
| 34148 | # include <time.h> |
| 34149 | # endif |
| 34150 | #endif |
| 34151 | /* includes end */" |
| 34152 | for ac_header in sys/types.h sys/time.h time.h |
| 34153 | do : |
| 34154 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 34155 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time |
| 34156 | " |
| 34157 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 34158 | cat >>confdefs.h <<_ACEOF |
| 34159 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 34160 | _ACEOF |
| 34161 | |
| 34162 | fi |
| 34163 | |
| 34164 | done |
| 34165 | |
| 34166 | |
| 34167 | |
| 34168 | # |
| 34169 | tst_links_gmtime_r="unknown" |
| 34170 | tst_proto_gmtime_r="unknown" |
| 34171 | tst_compi_gmtime_r="unknown" |
| 34172 | tst_works_gmtime_r="unknown" |
| 34173 | tst_allow_gmtime_r="unknown" |
| 34174 | # |
| 34175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5 |
| 34176 | $as_echo_n "checking if gmtime_r can be linked... " >&6; } |
| 34177 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 34178 | /* end confdefs.h. */ |
| 34179 | |
| 34180 | |
| 34181 | #define gmtime_r innocuous_gmtime_r |
| 34182 | #ifdef __STDC__ |
| 34183 | # include <limits.h> |
| 34184 | #else |
| 34185 | # include <assert.h> |
| 34186 | #endif |
| 34187 | #undef gmtime_r |
| 34188 | #ifdef __cplusplus |
| 34189 | extern "C" |
| 34190 | #endif |
| 34191 | char gmtime_r (); |
| 34192 | #if defined __stub_gmtime_r || defined __stub___gmtime_r |
| 34193 | choke me |
| 34194 | #endif |
| 34195 | |
| 34196 | int main (void) |
| 34197 | { |
| 34198 | return gmtime_r (); |
| 34199 | ; |
| 34200 | return 0; |
| 34201 | } |
| 34202 | |
| 34203 | _ACEOF |
| 34204 | if ac_fn_c_try_link "$LINENO"; then : |
| 34205 | |
| 34206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 34207 | $as_echo "yes" >&6; } |
| 34208 | tst_links_gmtime_r="yes" |
| 34209 | |
| 34210 | else |
| 34211 | |
| 34212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 34213 | $as_echo "no" >&6; } |
| 34214 | tst_links_gmtime_r="no" |
| 34215 | |
| 34216 | fi |
| 34217 | rm -f core conftest.err conftest.$ac_objext \ |
| 34218 | conftest$ac_exeext conftest.$ac_ext |
| 34219 | # |
| 34220 | if test "$tst_links_gmtime_r" = "yes"; then |
| 34221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5 |
| 34222 | $as_echo_n "checking if gmtime_r is prototyped... " >&6; } |
| 34223 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 34224 | /* end confdefs.h. */ |
| 34225 | |
| 34226 | $curl_includes_time |
| 34227 | |
| 34228 | _ACEOF |
| 34229 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 34230 | $EGREP "gmtime_r" >/dev/null 2>&1; then : |
| 34231 | |
| 34232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 34233 | $as_echo "yes" >&6; } |
| 34234 | tst_proto_gmtime_r="yes" |
| 34235 | |
| 34236 | else |
| 34237 | |
| 34238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 34239 | $as_echo "no" >&6; } |
| 34240 | tst_proto_gmtime_r="no" |
| 34241 | |
| 34242 | fi |
| 34243 | rm -f conftest* |
| 34244 | |
| 34245 | fi |
| 34246 | # |
| 34247 | if test "$tst_proto_gmtime_r" = "yes"; then |
| 34248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5 |
| 34249 | $as_echo_n "checking if gmtime_r is compilable... " >&6; } |
| 34250 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 34251 | /* end confdefs.h. */ |
| 34252 | |
| 34253 | |
| 34254 | $curl_includes_time |
| 34255 | |
| 34256 | int main (void) |
| 34257 | { |
| 34258 | |
| 34259 | if(0 != gmtime_r(0, 0)) |
| 34260 | return 1; |
| 34261 | |
| 34262 | ; |
| 34263 | return 0; |
| 34264 | } |
| 34265 | |
| 34266 | _ACEOF |
| 34267 | if ac_fn_c_try_compile "$LINENO"; then : |
| 34268 | |
| 34269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 34270 | $as_echo "yes" >&6; } |
| 34271 | tst_compi_gmtime_r="yes" |
| 34272 | |
| 34273 | else |
| 34274 | |
| 34275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 34276 | $as_echo "no" >&6; } |
| 34277 | tst_compi_gmtime_r="no" |
| 34278 | |
| 34279 | fi |
| 34280 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 34281 | fi |
| 34282 | # |
| 34283 | if test "x$cross_compiling" != "xyes" && |
| 34284 | test "$tst_compi_gmtime_r" = "yes"; then |
| 34285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5 |
| 34286 | $as_echo_n "checking if gmtime_r seems to work... " >&6; } |
| 34287 | if test "$cross_compiling" = yes; then : |
| 34288 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 34289 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 34290 | as_fn_error $? "cannot run test program while cross compiling |
| 34291 | See \`config.log' for more details" "$LINENO" 5; } |
| 34292 | else |
| 34293 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 34294 | /* end confdefs.h. */ |
| 34295 | |
| 34296 | |
| 34297 | $curl_includes_stdlib |
| 34298 | $curl_includes_time |
| 34299 | |
| 34300 | int main (void) |
| 34301 | { |
| 34302 | |
| 34303 | time_t local = 1170352587; |
| 34304 | struct tm *gmt = 0; |
| 34305 | struct tm result; |
| 34306 | gmt = gmtime_r(&local, &result); |
| 34307 | if(gmt) |
| 34308 | exit(0); |
| 34309 | else |
| 34310 | exit(1); |
| 34311 | |
| 34312 | ; |
| 34313 | return 0; |
| 34314 | } |
| 34315 | |
| 34316 | _ACEOF |
| 34317 | if ac_fn_c_try_run "$LINENO"; then : |
| 34318 | |
| 34319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 34320 | $as_echo "yes" >&6; } |
| 34321 | tst_works_gmtime_r="yes" |
| 34322 | |
| 34323 | else |
| 34324 | |
| 34325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 34326 | $as_echo "no" >&6; } |
| 34327 | tst_works_gmtime_r="no" |
| 34328 | |
| 34329 | fi |
| 34330 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 34331 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 34332 | fi |
| 34333 | |
| 34334 | fi |
| 34335 | # |
| 34336 | if test "$tst_compi_gmtime_r" = "yes" && |
| 34337 | test "$tst_works_gmtime_r" != "no"; then |
| 34338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5 |
| 34339 | $as_echo_n "checking if gmtime_r usage allowed... " >&6; } |
| 34340 | if test "x$curl_disallow_gmtime_r" != "xyes"; then |
| 34341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 34342 | $as_echo "yes" >&6; } |
| 34343 | tst_allow_gmtime_r="yes" |
| 34344 | else |
| 34345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 34346 | $as_echo "no" >&6; } |
| 34347 | tst_allow_gmtime_r="no" |
| 34348 | fi |
| 34349 | fi |
| 34350 | # |
| 34351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5 |
| 34352 | $as_echo_n "checking if gmtime_r might be used... " >&6; } |
| 34353 | if test "$tst_links_gmtime_r" = "yes" && |
| 34354 | test "$tst_proto_gmtime_r" = "yes" && |
| 34355 | test "$tst_compi_gmtime_r" = "yes" && |
| 34356 | test "$tst_allow_gmtime_r" = "yes" && |
| 34357 | test "$tst_works_gmtime_r" != "no"; then |
| 34358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 34359 | $as_echo "yes" >&6; } |
| 34360 | |
| 34361 | cat >>confdefs.h <<_ACEOF |
| 34362 | #define HAVE_GMTIME_R 1 |
| 34363 | _ACEOF |
| 34364 | |
| 34365 | curl_cv_func_gmtime_r="yes" |
| 34366 | else |
| 34367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 34368 | $as_echo "no" >&6; } |
| 34369 | curl_cv_func_gmtime_r="no" |
| 34370 | fi |
| 34371 | |
| 34372 | |
| 34373 | curl_includes_arpa_inet="\ |
| 34374 | /* includes start */ |
| 34375 | #ifdef HAVE_SYS_TYPES_H |
| 34376 | # include <sys/types.h> |
| 34377 | #endif |
| 34378 | #ifdef HAVE_SYS_SOCKET_H |
| 34379 | # include <sys/socket.h> |
| 34380 | #endif |
| 34381 | #ifdef HAVE_NETINET_IN_H |
| 34382 | # include <netinet/in.h> |
| 34383 | #endif |
| 34384 | #ifdef HAVE_ARPA_INET_H |
| 34385 | # include <arpa/inet.h> |
| 34386 | #endif |
| 34387 | #ifdef HAVE_WINSOCK2_H |
| 34388 | #include <winsock2.h> |
| 34389 | #include <ws2tcpip.h> |
| 34390 | #endif |
| 34391 | /* includes end */" |
| 34392 | for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h |
| 34393 | do : |
| 34394 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 34395 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet |
| 34396 | " |
| 34397 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 34398 | cat >>confdefs.h <<_ACEOF |
| 34399 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 34400 | _ACEOF |
| 34401 | |
| 34402 | fi |
| 34403 | |
| 34404 | done |
| 34405 | |
| 34406 | |
| 34407 | |
| 34408 | # |
| 34409 | tst_links_inet_ntoa_r="unknown" |
| 34410 | tst_proto_inet_ntoa_r="unknown" |
| 34411 | tst_compi_inet_ntoa_r="unknown" |
| 34412 | tst_allow_inet_ntoa_r="unknown" |
| 34413 | tst_nargs_inet_ntoa_r="unknown" |
| 34414 | # |
| 34415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5 |
| 34416 | $as_echo_n "checking if inet_ntoa_r can be linked... " >&6; } |
| 34417 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 34418 | /* end confdefs.h. */ |
| 34419 | |
| 34420 | |
| 34421 | #define inet_ntoa_r innocuous_inet_ntoa_r |
| 34422 | #ifdef __STDC__ |
| 34423 | # include <limits.h> |
| 34424 | #else |
| 34425 | # include <assert.h> |
| 34426 | #endif |
| 34427 | #undef inet_ntoa_r |
| 34428 | #ifdef __cplusplus |
| 34429 | extern "C" |
| 34430 | #endif |
| 34431 | char inet_ntoa_r (); |
| 34432 | #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r |
| 34433 | choke me |
| 34434 | #endif |
| 34435 | |
| 34436 | int main (void) |
| 34437 | { |
| 34438 | return inet_ntoa_r (); |
| 34439 | ; |
| 34440 | return 0; |
| 34441 | } |
| 34442 | |
| 34443 | _ACEOF |
| 34444 | if ac_fn_c_try_link "$LINENO"; then : |
| 34445 | |
| 34446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 34447 | $as_echo "yes" >&6; } |
| 34448 | tst_links_inet_ntoa_r="yes" |
| 34449 | |
| 34450 | else |
| 34451 | |
| 34452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 34453 | $as_echo "no" >&6; } |
| 34454 | tst_links_inet_ntoa_r="no" |
| 34455 | |
| 34456 | fi |
| 34457 | rm -f core conftest.err conftest.$ac_objext \ |
| 34458 | conftest$ac_exeext conftest.$ac_ext |
| 34459 | # |
| 34460 | if test "$tst_links_inet_ntoa_r" = "yes"; then |
| 34461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5 |
| 34462 | $as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; } |
| 34463 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 34464 | /* end confdefs.h. */ |
| 34465 | |
| 34466 | $curl_includes_arpa_inet |
| 34467 | |
| 34468 | _ACEOF |
| 34469 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 34470 | $EGREP "inet_ntoa_r" >/dev/null 2>&1; then : |
| 34471 | |
| 34472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 34473 | $as_echo "yes" >&6; } |
| 34474 | tst_proto_inet_ntoa_r="yes" |
| 34475 | |
| 34476 | else |
| 34477 | |
| 34478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 34479 | $as_echo "no" >&6; } |
| 34480 | tst_proto_inet_ntoa_r="no" |
| 34481 | |
| 34482 | fi |
| 34483 | rm -f conftest* |
| 34484 | |
| 34485 | fi |
| 34486 | # |
| 34487 | if test "$tst_proto_inet_ntoa_r" = "yes"; then |
| 34488 | if test "$tst_nargs_inet_ntoa_r" = "unknown"; then |
| 34489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5 |
| 34490 | $as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; } |
| 34491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 34492 | /* end confdefs.h. */ |
| 34493 | |
| 34494 | |
| 34495 | $curl_includes_arpa_inet |
| 34496 | |
| 34497 | int main (void) |
| 34498 | { |
| 34499 | |
| 34500 | struct in_addr addr; |
| 34501 | if(0 != inet_ntoa_r(addr, 0)) |
| 34502 | return 1; |
| 34503 | |
| 34504 | ; |
| 34505 | return 0; |
| 34506 | } |
| 34507 | |
| 34508 | _ACEOF |
| 34509 | if ac_fn_c_try_compile "$LINENO"; then : |
| 34510 | |
| 34511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 34512 | $as_echo "yes" >&6; } |
| 34513 | tst_compi_inet_ntoa_r="yes" |
| 34514 | tst_nargs_inet_ntoa_r="2" |
| 34515 | |
| 34516 | else |
| 34517 | |
| 34518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 34519 | $as_echo "no" >&6; } |
| 34520 | tst_compi_inet_ntoa_r="no" |
| 34521 | |
| 34522 | fi |
| 34523 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 34524 | fi |
| 34525 | if test "$tst_nargs_inet_ntoa_r" = "unknown"; then |
| 34526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5 |
| 34527 | $as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; } |
| 34528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 34529 | /* end confdefs.h. */ |
| 34530 | |
| 34531 | |
| 34532 | $curl_includes_arpa_inet |
| 34533 | |
| 34534 | int main (void) |
| 34535 | { |
| 34536 | |
| 34537 | struct in_addr addr; |
| 34538 | if(0 != inet_ntoa_r(addr, 0, 0)) |
| 34539 | return 1; |
| 34540 | |
| 34541 | ; |
| 34542 | return 0; |
| 34543 | } |
| 34544 | |
| 34545 | _ACEOF |
| 34546 | if ac_fn_c_try_compile "$LINENO"; then : |
| 34547 | |
| 34548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 34549 | $as_echo "yes" >&6; } |
| 34550 | tst_compi_inet_ntoa_r="yes" |
| 34551 | tst_nargs_inet_ntoa_r="3" |
| 34552 | |
| 34553 | else |
| 34554 | |
| 34555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 34556 | $as_echo "no" >&6; } |
| 34557 | tst_compi_inet_ntoa_r="no" |
| 34558 | |
| 34559 | fi |
| 34560 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 34561 | fi |
| 34562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5 |
| 34563 | $as_echo_n "checking if inet_ntoa_r is compilable... " >&6; } |
| 34564 | if test "$tst_compi_inet_ntoa_r" = "yes"; then |
| 34565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 34566 | $as_echo "yes" >&6; } |
| 34567 | else |
| 34568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 34569 | $as_echo "no" >&6; } |
| 34570 | fi |
| 34571 | fi |
| 34572 | # |
| 34573 | if test "$tst_compi_inet_ntoa_r" = "yes"; then |
| 34574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5 |
| 34575 | $as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; } |
| 34576 | if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then |
| 34577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 34578 | $as_echo "yes" >&6; } |
| 34579 | tst_allow_inet_ntoa_r="yes" |
| 34580 | else |
| 34581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 34582 | $as_echo "no" >&6; } |
| 34583 | tst_allow_inet_ntoa_r="no" |
| 34584 | fi |
| 34585 | fi |
| 34586 | # |
| 34587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5 |
| 34588 | $as_echo_n "checking if inet_ntoa_r might be used... " >&6; } |
| 34589 | if test "$tst_links_inet_ntoa_r" = "yes" && |
| 34590 | test "$tst_proto_inet_ntoa_r" = "yes" && |
| 34591 | test "$tst_compi_inet_ntoa_r" = "yes" && |
| 34592 | test "$tst_allow_inet_ntoa_r" = "yes"; then |
| 34593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 34594 | $as_echo "yes" >&6; } |
| 34595 | |
| 34596 | cat >>confdefs.h <<_ACEOF |
| 34597 | #define HAVE_INET_NTOA_R 1 |
| 34598 | _ACEOF |
| 34599 | |
| 34600 | # |
| 34601 | if test "$tst_nargs_inet_ntoa_r" -eq "2"; then |
| 34602 | |
| 34603 | $as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h |
| 34604 | |
| 34605 | elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then |
| 34606 | |
| 34607 | $as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h |
| 34608 | |
| 34609 | fi |
| 34610 | # |
| 34611 | curl_cv_func_inet_ntoa_r="yes" |
| 34612 | else |
| 34613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 34614 | $as_echo "no" >&6; } |
| 34615 | curl_cv_func_inet_ntoa_r="no" |
| 34616 | fi |
| 34617 | |
| 34618 | |
| 34619 | # |
| 34620 | tst_links_inet_ntop="unknown" |
| 34621 | tst_proto_inet_ntop="unknown" |
| 34622 | tst_compi_inet_ntop="unknown" |
| 34623 | tst_works_inet_ntop="unknown" |
| 34624 | tst_allow_inet_ntop="unknown" |
| 34625 | # |
| 34626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5 |
| 34627 | $as_echo_n "checking if inet_ntop can be linked... " >&6; } |
| 34628 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 34629 | /* end confdefs.h. */ |
| 34630 | |
| 34631 | |
| 34632 | #define inet_ntop innocuous_inet_ntop |
| 34633 | #ifdef __STDC__ |
| 34634 | # include <limits.h> |
| 34635 | #else |
| 34636 | # include <assert.h> |
| 34637 | #endif |
| 34638 | #undef inet_ntop |
| 34639 | #ifdef __cplusplus |
| 34640 | extern "C" |
| 34641 | #endif |
| 34642 | char inet_ntop (); |
| 34643 | #if defined __stub_inet_ntop || defined __stub___inet_ntop |
| 34644 | choke me |
| 34645 | #endif |
| 34646 | |
| 34647 | int main (void) |
| 34648 | { |
| 34649 | return inet_ntop (); |
| 34650 | ; |
| 34651 | return 0; |
| 34652 | } |
| 34653 | |
| 34654 | _ACEOF |
| 34655 | if ac_fn_c_try_link "$LINENO"; then : |
| 34656 | |
| 34657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 34658 | $as_echo "yes" >&6; } |
| 34659 | tst_links_inet_ntop="yes" |
| 34660 | |
| 34661 | else |
| 34662 | |
| 34663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 34664 | $as_echo "no" >&6; } |
| 34665 | tst_links_inet_ntop="no" |
| 34666 | |
| 34667 | fi |
| 34668 | rm -f core conftest.err conftest.$ac_objext \ |
| 34669 | conftest$ac_exeext conftest.$ac_ext |
| 34670 | # |
| 34671 | if test "$tst_links_inet_ntop" = "yes"; then |
| 34672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5 |
| 34673 | $as_echo_n "checking if inet_ntop is prototyped... " >&6; } |
| 34674 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 34675 | /* end confdefs.h. */ |
| 34676 | |
| 34677 | $curl_includes_arpa_inet |
| 34678 | |
| 34679 | _ACEOF |
| 34680 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 34681 | $EGREP "inet_ntop" >/dev/null 2>&1; then : |
| 34682 | |
| 34683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 34684 | $as_echo "yes" >&6; } |
| 34685 | tst_proto_inet_ntop="yes" |
| 34686 | |
| 34687 | else |
| 34688 | |
| 34689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 34690 | $as_echo "no" >&6; } |
| 34691 | tst_proto_inet_ntop="no" |
| 34692 | |
| 34693 | fi |
| 34694 | rm -f conftest* |
| 34695 | |
| 34696 | fi |
| 34697 | # |
| 34698 | if test "$tst_proto_inet_ntop" = "yes"; then |
| 34699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5 |
| 34700 | $as_echo_n "checking if inet_ntop is compilable... " >&6; } |
| 34701 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 34702 | /* end confdefs.h. */ |
| 34703 | |
| 34704 | |
| 34705 | $curl_includes_arpa_inet |
| 34706 | |
| 34707 | int main (void) |
| 34708 | { |
| 34709 | |
| 34710 | if(0 != inet_ntop(0, 0, 0, 0)) |
| 34711 | return 1; |
| 34712 | |
| 34713 | ; |
| 34714 | return 0; |
| 34715 | } |
| 34716 | |
| 34717 | _ACEOF |
| 34718 | if ac_fn_c_try_compile "$LINENO"; then : |
| 34719 | |
| 34720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 34721 | $as_echo "yes" >&6; } |
| 34722 | tst_compi_inet_ntop="yes" |
| 34723 | |
| 34724 | else |
| 34725 | |
| 34726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 34727 | $as_echo "no" >&6; } |
| 34728 | tst_compi_inet_ntop="no" |
| 34729 | |
| 34730 | fi |
| 34731 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 34732 | fi |
| 34733 | # |
| 34734 | if test "x$cross_compiling" != "xyes" && |
| 34735 | test "$tst_compi_inet_ntop" = "yes"; then |
| 34736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5 |
| 34737 | $as_echo_n "checking if inet_ntop seems to work... " >&6; } |
| 34738 | if test "$cross_compiling" = yes; then : |
| 34739 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 34740 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 34741 | as_fn_error $? "cannot run test program while cross compiling |
| 34742 | See \`config.log' for more details" "$LINENO" 5; } |
| 34743 | else |
| 34744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 34745 | /* end confdefs.h. */ |
| 34746 | |
| 34747 | |
| 34748 | $curl_includes_stdlib |
| 34749 | $curl_includes_arpa_inet |
| 34750 | $curl_includes_string |
| 34751 | |
| 34752 | int main (void) |
| 34753 | { |
| 34754 | |
| 34755 | char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")]; |
| 34756 | char ipv4res[sizeof "255.255.255.255"]; |
| 34757 | unsigned char ipv6a[26]; |
| 34758 | unsigned char ipv4a[5]; |
| 34759 | char *ipv6ptr = 0; |
| 34760 | char *ipv4ptr = 0; |
| 34761 | /* - */ |
| 34762 | ipv4res[0] = '\0'; |
| 34763 | ipv4a[0] = 0xc0; |
| 34764 | ipv4a[1] = 0xa8; |
| 34765 | ipv4a[2] = 0x64; |
| 34766 | ipv4a[3] = 0x01; |
| 34767 | ipv4a[4] = 0x01; |
| 34768 | /* - */ |
| 34769 | ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res)); |
| 34770 | if(!ipv4ptr) |
| 34771 | exit(1); /* fail */ |
| 34772 | if(ipv4ptr != ipv4res) |
| 34773 | exit(1); /* fail */ |
| 34774 | if(!ipv4ptr[0]) |
| 34775 | exit(1); /* fail */ |
| 34776 | if(memcmp(ipv4res, "192.168.100.1", 13) != 0) |
| 34777 | exit(1); /* fail */ |
| 34778 | /* - */ |
| 34779 | ipv6res[0] = '\0'; |
| 34780 | memset(ipv6a, 0, sizeof(ipv6a)); |
| 34781 | ipv6a[0] = 0xfe; |
| 34782 | ipv6a[1] = 0x80; |
| 34783 | ipv6a[8] = 0x02; |
| 34784 | ipv6a[9] = 0x14; |
| 34785 | ipv6a[10] = 0x4f; |
| 34786 | ipv6a[11] = 0xff; |
| 34787 | ipv6a[12] = 0xfe; |
| 34788 | ipv6a[13] = 0x0b; |
| 34789 | ipv6a[14] = 0x76; |
| 34790 | ipv6a[15] = 0xc8; |
| 34791 | ipv6a[25] = 0x01; |
| 34792 | /* - */ |
| 34793 | ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res)); |
| 34794 | if(!ipv6ptr) |
| 34795 | exit(1); /* fail */ |
| 34796 | if(ipv6ptr != ipv6res) |
| 34797 | exit(1); /* fail */ |
| 34798 | if(!ipv6ptr[0]) |
| 34799 | exit(1); /* fail */ |
| 34800 | if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0) |
| 34801 | exit(1); /* fail */ |
| 34802 | /* - */ |
| 34803 | exit(0); |
| 34804 | |
| 34805 | ; |
| 34806 | return 0; |
| 34807 | } |
| 34808 | |
| 34809 | _ACEOF |
| 34810 | if ac_fn_c_try_run "$LINENO"; then : |
| 34811 | |
| 34812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 34813 | $as_echo "yes" >&6; } |
| 34814 | tst_works_inet_ntop="yes" |
| 34815 | |
| 34816 | else |
| 34817 | |
| 34818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 34819 | $as_echo "no" >&6; } |
| 34820 | tst_works_inet_ntop="no" |
| 34821 | |
| 34822 | fi |
| 34823 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 34824 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 34825 | fi |
| 34826 | |
| 34827 | fi |
| 34828 | # |
| 34829 | if test "$tst_compi_inet_ntop" = "yes" && |
| 34830 | test "$tst_works_inet_ntop" != "no"; then |
| 34831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5 |
| 34832 | $as_echo_n "checking if inet_ntop usage allowed... " >&6; } |
| 34833 | if test "x$curl_disallow_inet_ntop" != "xyes"; then |
| 34834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 34835 | $as_echo "yes" >&6; } |
| 34836 | tst_allow_inet_ntop="yes" |
| 34837 | else |
| 34838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 34839 | $as_echo "no" >&6; } |
| 34840 | tst_allow_inet_ntop="no" |
| 34841 | fi |
| 34842 | fi |
| 34843 | # |
| 34844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5 |
| 34845 | $as_echo_n "checking if inet_ntop might be used... " >&6; } |
| 34846 | if test "$tst_links_inet_ntop" = "yes" && |
| 34847 | test "$tst_proto_inet_ntop" = "yes" && |
| 34848 | test "$tst_compi_inet_ntop" = "yes" && |
| 34849 | test "$tst_allow_inet_ntop" = "yes" && |
| 34850 | test "$tst_works_inet_ntop" != "no"; then |
| 34851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 34852 | $as_echo "yes" >&6; } |
| 34853 | |
| 34854 | cat >>confdefs.h <<_ACEOF |
| 34855 | #define HAVE_INET_NTOP 1 |
| 34856 | _ACEOF |
| 34857 | |
| 34858 | curl_cv_func_inet_ntop="yes" |
| 34859 | else |
| 34860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 34861 | $as_echo "no" >&6; } |
| 34862 | curl_cv_func_inet_ntop="no" |
| 34863 | fi |
| 34864 | |
| 34865 | |
| 34866 | # |
| 34867 | tst_links_inet_pton="unknown" |
| 34868 | tst_proto_inet_pton="unknown" |
| 34869 | tst_compi_inet_pton="unknown" |
| 34870 | tst_works_inet_pton="unknown" |
| 34871 | tst_allow_inet_pton="unknown" |
| 34872 | # |
| 34873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5 |
| 34874 | $as_echo_n "checking if inet_pton can be linked... " >&6; } |
| 34875 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 34876 | /* end confdefs.h. */ |
| 34877 | |
| 34878 | |
| 34879 | #define inet_pton innocuous_inet_pton |
| 34880 | #ifdef __STDC__ |
| 34881 | # include <limits.h> |
| 34882 | #else |
| 34883 | # include <assert.h> |
| 34884 | #endif |
| 34885 | #undef inet_pton |
| 34886 | #ifdef __cplusplus |
| 34887 | extern "C" |
| 34888 | #endif |
| 34889 | char inet_pton (); |
| 34890 | #if defined __stub_inet_pton || defined __stub___inet_pton |
| 34891 | choke me |
| 34892 | #endif |
| 34893 | |
| 34894 | int main (void) |
| 34895 | { |
| 34896 | return inet_pton (); |
| 34897 | ; |
| 34898 | return 0; |
| 34899 | } |
| 34900 | |
| 34901 | _ACEOF |
| 34902 | if ac_fn_c_try_link "$LINENO"; then : |
| 34903 | |
| 34904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 34905 | $as_echo "yes" >&6; } |
| 34906 | tst_links_inet_pton="yes" |
| 34907 | |
| 34908 | else |
| 34909 | |
| 34910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 34911 | $as_echo "no" >&6; } |
| 34912 | tst_links_inet_pton="no" |
| 34913 | |
| 34914 | fi |
| 34915 | rm -f core conftest.err conftest.$ac_objext \ |
| 34916 | conftest$ac_exeext conftest.$ac_ext |
| 34917 | # |
| 34918 | if test "$tst_links_inet_pton" = "yes"; then |
| 34919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5 |
| 34920 | $as_echo_n "checking if inet_pton is prototyped... " >&6; } |
| 34921 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 34922 | /* end confdefs.h. */ |
| 34923 | |
| 34924 | $curl_includes_arpa_inet |
| 34925 | |
| 34926 | _ACEOF |
| 34927 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 34928 | $EGREP "inet_pton" >/dev/null 2>&1; then : |
| 34929 | |
| 34930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 34931 | $as_echo "yes" >&6; } |
| 34932 | tst_proto_inet_pton="yes" |
| 34933 | |
| 34934 | else |
| 34935 | |
| 34936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 34937 | $as_echo "no" >&6; } |
| 34938 | tst_proto_inet_pton="no" |
| 34939 | |
| 34940 | fi |
| 34941 | rm -f conftest* |
| 34942 | |
| 34943 | fi |
| 34944 | # |
| 34945 | if test "$tst_proto_inet_pton" = "yes"; then |
| 34946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5 |
| 34947 | $as_echo_n "checking if inet_pton is compilable... " >&6; } |
| 34948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 34949 | /* end confdefs.h. */ |
| 34950 | |
| 34951 | |
| 34952 | $curl_includes_arpa_inet |
| 34953 | |
| 34954 | int main (void) |
| 34955 | { |
| 34956 | |
| 34957 | if(0 != inet_pton(0, 0, 0)) |
| 34958 | return 1; |
| 34959 | |
| 34960 | ; |
| 34961 | return 0; |
| 34962 | } |
| 34963 | |
| 34964 | _ACEOF |
| 34965 | if ac_fn_c_try_compile "$LINENO"; then : |
| 34966 | |
| 34967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 34968 | $as_echo "yes" >&6; } |
| 34969 | tst_compi_inet_pton="yes" |
| 34970 | |
| 34971 | else |
| 34972 | |
| 34973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 34974 | $as_echo "no" >&6; } |
| 34975 | tst_compi_inet_pton="no" |
| 34976 | |
| 34977 | fi |
| 34978 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 34979 | fi |
| 34980 | # |
| 34981 | if test "x$cross_compiling" != "xyes" && |
| 34982 | test "$tst_compi_inet_pton" = "yes"; then |
| 34983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5 |
| 34984 | $as_echo_n "checking if inet_pton seems to work... " >&6; } |
| 34985 | if test "$cross_compiling" = yes; then : |
| 34986 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 34987 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 34988 | as_fn_error $? "cannot run test program while cross compiling |
| 34989 | See \`config.log' for more details" "$LINENO" 5; } |
| 34990 | else |
| 34991 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 34992 | /* end confdefs.h. */ |
| 34993 | |
| 34994 | |
| 34995 | $curl_includes_stdlib |
| 34996 | $curl_includes_arpa_inet |
| 34997 | $curl_includes_string |
| 34998 | |
| 34999 | int main (void) |
| 35000 | { |
| 35001 | |
| 35002 | unsigned char ipv6a[16+1]; |
| 35003 | unsigned char ipv4a[4+1]; |
| 35004 | const char *ipv6src = "fe80::214:4fff:fe0b:76c8"; |
| 35005 | const char *ipv4src = "192.168.100.1"; |
| 35006 | /* - */ |
| 35007 | memset(ipv4a, 1, sizeof(ipv4a)); |
| 35008 | if(1 != inet_pton(AF_INET, ipv4src, ipv4a)) |
| 35009 | exit(1); /* fail */ |
| 35010 | /* - */ |
| 35011 | if( (ipv4a[0] != 0xc0) || |
| 35012 | (ipv4a[1] != 0xa8) || |
| 35013 | (ipv4a[2] != 0x64) || |
| 35014 | (ipv4a[3] != 0x01) || |
| 35015 | (ipv4a[4] != 0x01) ) |
| 35016 | exit(1); /* fail */ |
| 35017 | /* - */ |
| 35018 | memset(ipv6a, 1, sizeof(ipv6a)); |
| 35019 | if(1 != inet_pton(AF_INET6, ipv6src, ipv6a)) |
| 35020 | exit(1); /* fail */ |
| 35021 | /* - */ |
| 35022 | if( (ipv6a[0] != 0xfe) || |
| 35023 | (ipv6a[1] != 0x80) || |
| 35024 | (ipv6a[8] != 0x02) || |
| 35025 | (ipv6a[9] != 0x14) || |
| 35026 | (ipv6a[10] != 0x4f) || |
| 35027 | (ipv6a[11] != 0xff) || |
| 35028 | (ipv6a[12] != 0xfe) || |
| 35029 | (ipv6a[13] != 0x0b) || |
| 35030 | (ipv6a[14] != 0x76) || |
| 35031 | (ipv6a[15] != 0xc8) || |
| 35032 | (ipv6a[16] != 0x01) ) |
| 35033 | exit(1); /* fail */ |
| 35034 | /* - */ |
| 35035 | if( (ipv6a[2] != 0x0) || |
| 35036 | (ipv6a[3] != 0x0) || |
| 35037 | (ipv6a[4] != 0x0) || |
| 35038 | (ipv6a[5] != 0x0) || |
| 35039 | (ipv6a[6] != 0x0) || |
| 35040 | (ipv6a[7] != 0x0) ) |
| 35041 | exit(1); /* fail */ |
| 35042 | /* - */ |
| 35043 | exit(0); |
| 35044 | |
| 35045 | ; |
| 35046 | return 0; |
| 35047 | } |
| 35048 | |
| 35049 | _ACEOF |
| 35050 | if ac_fn_c_try_run "$LINENO"; then : |
| 35051 | |
| 35052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 35053 | $as_echo "yes" >&6; } |
| 35054 | tst_works_inet_pton="yes" |
| 35055 | |
| 35056 | else |
| 35057 | |
| 35058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 35059 | $as_echo "no" >&6; } |
| 35060 | tst_works_inet_pton="no" |
| 35061 | |
| 35062 | fi |
| 35063 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 35064 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 35065 | fi |
| 35066 | |
| 35067 | fi |
| 35068 | # |
| 35069 | if test "$tst_compi_inet_pton" = "yes" && |
| 35070 | test "$tst_works_inet_pton" != "no"; then |
| 35071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5 |
| 35072 | $as_echo_n "checking if inet_pton usage allowed... " >&6; } |
| 35073 | if test "x$curl_disallow_inet_pton" != "xyes"; then |
| 35074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 35075 | $as_echo "yes" >&6; } |
| 35076 | tst_allow_inet_pton="yes" |
| 35077 | else |
| 35078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 35079 | $as_echo "no" >&6; } |
| 35080 | tst_allow_inet_pton="no" |
| 35081 | fi |
| 35082 | fi |
| 35083 | # |
| 35084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5 |
| 35085 | $as_echo_n "checking if inet_pton might be used... " >&6; } |
| 35086 | if test "$tst_links_inet_pton" = "yes" && |
| 35087 | test "$tst_proto_inet_pton" = "yes" && |
| 35088 | test "$tst_compi_inet_pton" = "yes" && |
| 35089 | test "$tst_allow_inet_pton" = "yes" && |
| 35090 | test "$tst_works_inet_pton" != "no"; then |
| 35091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 35092 | $as_echo "yes" >&6; } |
| 35093 | |
| 35094 | cat >>confdefs.h <<_ACEOF |
| 35095 | #define HAVE_INET_PTON 1 |
| 35096 | _ACEOF |
| 35097 | |
| 35098 | curl_cv_func_inet_pton="yes" |
| 35099 | else |
| 35100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 35101 | $as_echo "no" >&6; } |
| 35102 | curl_cv_func_inet_pton="no" |
| 35103 | fi |
| 35104 | |
| 35105 | |
| 35106 | curl_includes_stropts="\ |
| 35107 | /* includes start */ |
| 35108 | #ifdef HAVE_SYS_TYPES_H |
| 35109 | # include <sys/types.h> |
| 35110 | #endif |
| 35111 | #ifdef HAVE_UNISTD_H |
| 35112 | # include <unistd.h> |
| 35113 | #endif |
| 35114 | #ifdef HAVE_SYS_SOCKET_H |
| 35115 | # include <sys/socket.h> |
| 35116 | #endif |
| 35117 | #ifdef HAVE_SYS_IOCTL_H |
| 35118 | # include <sys/ioctl.h> |
| 35119 | #endif |
| 35120 | #ifdef HAVE_STROPTS_H |
| 35121 | # include <stropts.h> |
| 35122 | #endif |
| 35123 | /* includes end */" |
| 35124 | for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h |
| 35125 | do : |
| 35126 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 35127 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stropts |
| 35128 | " |
| 35129 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 35130 | cat >>confdefs.h <<_ACEOF |
| 35131 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 35132 | _ACEOF |
| 35133 | |
| 35134 | fi |
| 35135 | |
| 35136 | done |
| 35137 | |
| 35138 | |
| 35139 | |
| 35140 | # |
| 35141 | tst_links_ioctl="unknown" |
| 35142 | tst_proto_ioctl="unknown" |
| 35143 | tst_compi_ioctl="unknown" |
| 35144 | tst_allow_ioctl="unknown" |
| 35145 | # |
| 35146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5 |
| 35147 | $as_echo_n "checking if ioctl can be linked... " >&6; } |
| 35148 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 35149 | /* end confdefs.h. */ |
| 35150 | |
| 35151 | |
| 35152 | #define ioctl innocuous_ioctl |
| 35153 | #ifdef __STDC__ |
| 35154 | # include <limits.h> |
| 35155 | #else |
| 35156 | # include <assert.h> |
| 35157 | #endif |
| 35158 | #undef ioctl |
| 35159 | #ifdef __cplusplus |
| 35160 | extern "C" |
| 35161 | #endif |
| 35162 | char ioctl (); |
| 35163 | #if defined __stub_ioctl || defined __stub___ioctl |
| 35164 | choke me |
| 35165 | #endif |
| 35166 | |
| 35167 | int main (void) |
| 35168 | { |
| 35169 | return ioctl (); |
| 35170 | ; |
| 35171 | return 0; |
| 35172 | } |
| 35173 | |
| 35174 | _ACEOF |
| 35175 | if ac_fn_c_try_link "$LINENO"; then : |
| 35176 | |
| 35177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 35178 | $as_echo "yes" >&6; } |
| 35179 | tst_links_ioctl="yes" |
| 35180 | |
| 35181 | else |
| 35182 | |
| 35183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 35184 | $as_echo "no" >&6; } |
| 35185 | tst_links_ioctl="no" |
| 35186 | |
| 35187 | fi |
| 35188 | rm -f core conftest.err conftest.$ac_objext \ |
| 35189 | conftest$ac_exeext conftest.$ac_ext |
| 35190 | # |
| 35191 | if test "$tst_links_ioctl" = "yes"; then |
| 35192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5 |
| 35193 | $as_echo_n "checking if ioctl is prototyped... " >&6; } |
| 35194 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 35195 | /* end confdefs.h. */ |
| 35196 | |
| 35197 | $curl_includes_stropts |
| 35198 | |
| 35199 | _ACEOF |
| 35200 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 35201 | $EGREP "ioctl" >/dev/null 2>&1; then : |
| 35202 | |
| 35203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 35204 | $as_echo "yes" >&6; } |
| 35205 | tst_proto_ioctl="yes" |
| 35206 | |
| 35207 | else |
| 35208 | |
| 35209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 35210 | $as_echo "no" >&6; } |
| 35211 | tst_proto_ioctl="no" |
| 35212 | |
| 35213 | fi |
| 35214 | rm -f conftest* |
| 35215 | |
| 35216 | fi |
| 35217 | # |
| 35218 | if test "$tst_proto_ioctl" = "yes"; then |
| 35219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5 |
| 35220 | $as_echo_n "checking if ioctl is compilable... " >&6; } |
| 35221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 35222 | /* end confdefs.h. */ |
| 35223 | |
| 35224 | |
| 35225 | $curl_includes_stropts |
| 35226 | |
| 35227 | int main (void) |
| 35228 | { |
| 35229 | |
| 35230 | if(0 != ioctl(0, 0, 0)) |
| 35231 | return 1; |
| 35232 | |
| 35233 | ; |
| 35234 | return 0; |
| 35235 | } |
| 35236 | |
| 35237 | _ACEOF |
| 35238 | if ac_fn_c_try_compile "$LINENO"; then : |
| 35239 | |
| 35240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 35241 | $as_echo "yes" >&6; } |
| 35242 | tst_compi_ioctl="yes" |
| 35243 | |
| 35244 | else |
| 35245 | |
| 35246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 35247 | $as_echo "no" >&6; } |
| 35248 | tst_compi_ioctl="no" |
| 35249 | |
| 35250 | fi |
| 35251 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 35252 | fi |
| 35253 | # |
| 35254 | if test "$tst_compi_ioctl" = "yes"; then |
| 35255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5 |
| 35256 | $as_echo_n "checking if ioctl usage allowed... " >&6; } |
| 35257 | if test "x$curl_disallow_ioctl" != "xyes"; then |
| 35258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 35259 | $as_echo "yes" >&6; } |
| 35260 | tst_allow_ioctl="yes" |
| 35261 | else |
| 35262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 35263 | $as_echo "no" >&6; } |
| 35264 | tst_allow_ioctl="no" |
| 35265 | fi |
| 35266 | fi |
| 35267 | # |
| 35268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5 |
| 35269 | $as_echo_n "checking if ioctl might be used... " >&6; } |
| 35270 | if test "$tst_links_ioctl" = "yes" && |
| 35271 | test "$tst_proto_ioctl" = "yes" && |
| 35272 | test "$tst_compi_ioctl" = "yes" && |
| 35273 | test "$tst_allow_ioctl" = "yes"; then |
| 35274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 35275 | $as_echo "yes" >&6; } |
| 35276 | |
| 35277 | cat >>confdefs.h <<_ACEOF |
| 35278 | #define HAVE_IOCTL 1 |
| 35279 | _ACEOF |
| 35280 | |
| 35281 | curl_cv_func_ioctl="yes" |
| 35282 | |
| 35283 | # |
| 35284 | tst_compi_ioctl_fionbio="unknown" |
| 35285 | tst_allow_ioctl_fionbio="unknown" |
| 35286 | # |
| 35287 | if test "$curl_cv_func_ioctl" = "yes"; then |
| 35288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5 |
| 35289 | $as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; } |
| 35290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 35291 | /* end confdefs.h. */ |
| 35292 | |
| 35293 | |
| 35294 | $curl_includes_stropts |
| 35295 | |
| 35296 | int main (void) |
| 35297 | { |
| 35298 | |
| 35299 | int flags = 0; |
| 35300 | if(0 != ioctl(0, FIONBIO, &flags)) |
| 35301 | return 1; |
| 35302 | |
| 35303 | ; |
| 35304 | return 0; |
| 35305 | } |
| 35306 | |
| 35307 | _ACEOF |
| 35308 | if ac_fn_c_try_compile "$LINENO"; then : |
| 35309 | |
| 35310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 35311 | $as_echo "yes" >&6; } |
| 35312 | tst_compi_ioctl_fionbio="yes" |
| 35313 | |
| 35314 | else |
| 35315 | |
| 35316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 35317 | $as_echo "no" >&6; } |
| 35318 | tst_compi_ioctl_fionbio="no" |
| 35319 | |
| 35320 | fi |
| 35321 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 35322 | fi |
| 35323 | # |
| 35324 | if test "$tst_compi_ioctl_fionbio" = "yes"; then |
| 35325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5 |
| 35326 | $as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; } |
| 35327 | if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then |
| 35328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 35329 | $as_echo "yes" >&6; } |
| 35330 | tst_allow_ioctl_fionbio="yes" |
| 35331 | else |
| 35332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 35333 | $as_echo "no" >&6; } |
| 35334 | tst_allow_ioctl_fionbio="no" |
| 35335 | fi |
| 35336 | fi |
| 35337 | # |
| 35338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5 |
| 35339 | $as_echo_n "checking if ioctl FIONBIO might be used... " >&6; } |
| 35340 | if test "$tst_compi_ioctl_fionbio" = "yes" && |
| 35341 | test "$tst_allow_ioctl_fionbio" = "yes"; then |
| 35342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 35343 | $as_echo "yes" >&6; } |
| 35344 | |
| 35345 | cat >>confdefs.h <<_ACEOF |
| 35346 | #define HAVE_IOCTL_FIONBIO 1 |
| 35347 | _ACEOF |
| 35348 | |
| 35349 | curl_cv_func_ioctl_fionbio="yes" |
| 35350 | else |
| 35351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 35352 | $as_echo "no" >&6; } |
| 35353 | curl_cv_func_ioctl_fionbio="no" |
| 35354 | fi |
| 35355 | |
| 35356 | |
| 35357 | # |
| 35358 | tst_compi_ioctl_siocgifaddr="unknown" |
| 35359 | tst_allow_ioctl_siocgifaddr="unknown" |
| 35360 | # |
| 35361 | if test "$curl_cv_func_ioctl" = "yes"; then |
| 35362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5 |
| 35363 | $as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; } |
| 35364 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 35365 | /* end confdefs.h. */ |
| 35366 | |
| 35367 | |
| 35368 | $curl_includes_stropts |
| 35369 | #include <net/if.h> |
| 35370 | |
| 35371 | int main (void) |
| 35372 | { |
| 35373 | |
| 35374 | struct ifreq ifr; |
| 35375 | if(0 != ioctl(0, SIOCGIFADDR, &ifr)) |
| 35376 | return 1; |
| 35377 | |
| 35378 | ; |
| 35379 | return 0; |
| 35380 | } |
| 35381 | |
| 35382 | _ACEOF |
| 35383 | if ac_fn_c_try_compile "$LINENO"; then : |
| 35384 | |
| 35385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 35386 | $as_echo "yes" >&6; } |
| 35387 | tst_compi_ioctl_siocgifaddr="yes" |
| 35388 | |
| 35389 | else |
| 35390 | |
| 35391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 35392 | $as_echo "no" >&6; } |
| 35393 | tst_compi_ioctl_siocgifaddr="no" |
| 35394 | |
| 35395 | fi |
| 35396 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 35397 | fi |
| 35398 | # |
| 35399 | if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then |
| 35400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5 |
| 35401 | $as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; } |
| 35402 | if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then |
| 35403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 35404 | $as_echo "yes" >&6; } |
| 35405 | tst_allow_ioctl_siocgifaddr="yes" |
| 35406 | else |
| 35407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 35408 | $as_echo "no" >&6; } |
| 35409 | tst_allow_ioctl_siocgifaddr="no" |
| 35410 | fi |
| 35411 | fi |
| 35412 | # |
| 35413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5 |
| 35414 | $as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; } |
| 35415 | if test "$tst_compi_ioctl_siocgifaddr" = "yes" && |
| 35416 | test "$tst_allow_ioctl_siocgifaddr" = "yes"; then |
| 35417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 35418 | $as_echo "yes" >&6; } |
| 35419 | |
| 35420 | cat >>confdefs.h <<_ACEOF |
| 35421 | #define HAVE_IOCTL_SIOCGIFADDR 1 |
| 35422 | _ACEOF |
| 35423 | |
| 35424 | curl_cv_func_ioctl_siocgifaddr="yes" |
| 35425 | else |
| 35426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 35427 | $as_echo "no" >&6; } |
| 35428 | curl_cv_func_ioctl_siocgifaddr="no" |
| 35429 | fi |
| 35430 | |
| 35431 | else |
| 35432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 35433 | $as_echo "no" >&6; } |
| 35434 | curl_cv_func_ioctl="no" |
| 35435 | fi |
| 35436 | |
| 35437 | |
| 35438 | # |
| 35439 | tst_links_ioctlsocket="unknown" |
| 35440 | tst_proto_ioctlsocket="unknown" |
| 35441 | tst_compi_ioctlsocket="unknown" |
| 35442 | tst_allow_ioctlsocket="unknown" |
| 35443 | # |
| 35444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5 |
| 35445 | $as_echo_n "checking if ioctlsocket can be linked... " >&6; } |
| 35446 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 35447 | /* end confdefs.h. */ |
| 35448 | |
| 35449 | |
| 35450 | $curl_includes_winsock2 |
| 35451 | |
| 35452 | int main (void) |
| 35453 | { |
| 35454 | |
| 35455 | if(0 != ioctlsocket(0, 0, 0)) |
| 35456 | return 1; |
| 35457 | |
| 35458 | ; |
| 35459 | return 0; |
| 35460 | } |
| 35461 | |
| 35462 | _ACEOF |
| 35463 | if ac_fn_c_try_link "$LINENO"; then : |
| 35464 | |
| 35465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 35466 | $as_echo "yes" >&6; } |
| 35467 | tst_links_ioctlsocket="yes" |
| 35468 | |
| 35469 | else |
| 35470 | |
| 35471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 35472 | $as_echo "no" >&6; } |
| 35473 | tst_links_ioctlsocket="no" |
| 35474 | |
| 35475 | fi |
| 35476 | rm -f core conftest.err conftest.$ac_objext \ |
| 35477 | conftest$ac_exeext conftest.$ac_ext |
| 35478 | # |
| 35479 | if test "$tst_links_ioctlsocket" = "yes"; then |
| 35480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5 |
| 35481 | $as_echo_n "checking if ioctlsocket is prototyped... " >&6; } |
| 35482 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 35483 | /* end confdefs.h. */ |
| 35484 | |
| 35485 | $curl_includes_winsock2 |
| 35486 | |
| 35487 | _ACEOF |
| 35488 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 35489 | $EGREP "ioctlsocket" >/dev/null 2>&1; then : |
| 35490 | |
| 35491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 35492 | $as_echo "yes" >&6; } |
| 35493 | tst_proto_ioctlsocket="yes" |
| 35494 | |
| 35495 | else |
| 35496 | |
| 35497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 35498 | $as_echo "no" >&6; } |
| 35499 | tst_proto_ioctlsocket="no" |
| 35500 | |
| 35501 | fi |
| 35502 | rm -f conftest* |
| 35503 | |
| 35504 | fi |
| 35505 | # |
| 35506 | if test "$tst_proto_ioctlsocket" = "yes"; then |
| 35507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5 |
| 35508 | $as_echo_n "checking if ioctlsocket is compilable... " >&6; } |
| 35509 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 35510 | /* end confdefs.h. */ |
| 35511 | |
| 35512 | |
| 35513 | $curl_includes_winsock2 |
| 35514 | |
| 35515 | int main (void) |
| 35516 | { |
| 35517 | |
| 35518 | if(0 != ioctlsocket(0, 0, 0)) |
| 35519 | return 1; |
| 35520 | |
| 35521 | ; |
| 35522 | return 0; |
| 35523 | } |
| 35524 | |
| 35525 | _ACEOF |
| 35526 | if ac_fn_c_try_compile "$LINENO"; then : |
| 35527 | |
| 35528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 35529 | $as_echo "yes" >&6; } |
| 35530 | tst_compi_ioctlsocket="yes" |
| 35531 | |
| 35532 | else |
| 35533 | |
| 35534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 35535 | $as_echo "no" >&6; } |
| 35536 | tst_compi_ioctlsocket="no" |
| 35537 | |
| 35538 | fi |
| 35539 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 35540 | fi |
| 35541 | # |
| 35542 | if test "$tst_compi_ioctlsocket" = "yes"; then |
| 35543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5 |
| 35544 | $as_echo_n "checking if ioctlsocket usage allowed... " >&6; } |
| 35545 | if test "x$curl_disallow_ioctlsocket" != "xyes"; then |
| 35546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 35547 | $as_echo "yes" >&6; } |
| 35548 | tst_allow_ioctlsocket="yes" |
| 35549 | else |
| 35550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 35551 | $as_echo "no" >&6; } |
| 35552 | tst_allow_ioctlsocket="no" |
| 35553 | fi |
| 35554 | fi |
| 35555 | # |
| 35556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5 |
| 35557 | $as_echo_n "checking if ioctlsocket might be used... " >&6; } |
| 35558 | if test "$tst_links_ioctlsocket" = "yes" && |
| 35559 | test "$tst_proto_ioctlsocket" = "yes" && |
| 35560 | test "$tst_compi_ioctlsocket" = "yes" && |
| 35561 | test "$tst_allow_ioctlsocket" = "yes"; then |
| 35562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 35563 | $as_echo "yes" >&6; } |
| 35564 | |
| 35565 | cat >>confdefs.h <<_ACEOF |
| 35566 | #define HAVE_IOCTLSOCKET 1 |
| 35567 | _ACEOF |
| 35568 | |
| 35569 | curl_cv_func_ioctlsocket="yes" |
| 35570 | |
| 35571 | # |
| 35572 | tst_compi_ioctlsocket_fionbio="unknown" |
| 35573 | tst_allow_ioctlsocket_fionbio="unknown" |
| 35574 | # |
| 35575 | if test "$curl_cv_func_ioctlsocket" = "yes"; then |
| 35576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5 |
| 35577 | $as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; } |
| 35578 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 35579 | /* end confdefs.h. */ |
| 35580 | |
| 35581 | |
| 35582 | $curl_includes_winsock2 |
| 35583 | |
| 35584 | int main (void) |
| 35585 | { |
| 35586 | |
| 35587 | int flags = 0; |
| 35588 | if(0 != ioctlsocket(0, FIONBIO, &flags)) |
| 35589 | return 1; |
| 35590 | |
| 35591 | ; |
| 35592 | return 0; |
| 35593 | } |
| 35594 | |
| 35595 | _ACEOF |
| 35596 | if ac_fn_c_try_compile "$LINENO"; then : |
| 35597 | |
| 35598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 35599 | $as_echo "yes" >&6; } |
| 35600 | tst_compi_ioctlsocket_fionbio="yes" |
| 35601 | |
| 35602 | else |
| 35603 | |
| 35604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 35605 | $as_echo "no" >&6; } |
| 35606 | tst_compi_ioctlsocket_fionbio="no" |
| 35607 | |
| 35608 | fi |
| 35609 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 35610 | fi |
| 35611 | # |
| 35612 | if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then |
| 35613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5 |
| 35614 | $as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; } |
| 35615 | if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then |
| 35616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 35617 | $as_echo "yes" >&6; } |
| 35618 | tst_allow_ioctlsocket_fionbio="yes" |
| 35619 | else |
| 35620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 35621 | $as_echo "no" >&6; } |
| 35622 | tst_allow_ioctlsocket_fionbio="no" |
| 35623 | fi |
| 35624 | fi |
| 35625 | # |
| 35626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5 |
| 35627 | $as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; } |
| 35628 | if test "$tst_compi_ioctlsocket_fionbio" = "yes" && |
| 35629 | test "$tst_allow_ioctlsocket_fionbio" = "yes"; then |
| 35630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 35631 | $as_echo "yes" >&6; } |
| 35632 | |
| 35633 | cat >>confdefs.h <<_ACEOF |
| 35634 | #define HAVE_IOCTLSOCKET_FIONBIO 1 |
| 35635 | _ACEOF |
| 35636 | |
| 35637 | curl_cv_func_ioctlsocket_fionbio="yes" |
| 35638 | else |
| 35639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 35640 | $as_echo "no" >&6; } |
| 35641 | curl_cv_func_ioctlsocket_fionbio="no" |
| 35642 | fi |
| 35643 | |
| 35644 | else |
| 35645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 35646 | $as_echo "no" >&6; } |
| 35647 | curl_cv_func_ioctlsocket="no" |
| 35648 | fi |
| 35649 | |
| 35650 | |
| 35651 | # |
| 35652 | tst_links_ioctlsocket_camel="unknown" |
| 35653 | tst_proto_ioctlsocket_camel="unknown" |
| 35654 | tst_compi_ioctlsocket_camel="unknown" |
| 35655 | tst_allow_ioctlsocket_camel="unknown" |
| 35656 | # |
| 35657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5 |
| 35658 | $as_echo_n "checking if IoctlSocket can be linked... " >&6; } |
| 35659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 35660 | /* end confdefs.h. */ |
| 35661 | |
| 35662 | |
| 35663 | #define IoctlSocket innocuous_IoctlSocket |
| 35664 | #ifdef __STDC__ |
| 35665 | # include <limits.h> |
| 35666 | #else |
| 35667 | # include <assert.h> |
| 35668 | #endif |
| 35669 | #undef IoctlSocket |
| 35670 | #ifdef __cplusplus |
| 35671 | extern "C" |
| 35672 | #endif |
| 35673 | char IoctlSocket (); |
| 35674 | #if defined __stub_IoctlSocket || defined __stub___IoctlSocket |
| 35675 | choke me |
| 35676 | #endif |
| 35677 | |
| 35678 | int main (void) |
| 35679 | { |
| 35680 | return IoctlSocket (); |
| 35681 | ; |
| 35682 | return 0; |
| 35683 | } |
| 35684 | |
| 35685 | _ACEOF |
| 35686 | if ac_fn_c_try_link "$LINENO"; then : |
| 35687 | |
| 35688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 35689 | $as_echo "yes" >&6; } |
| 35690 | tst_links_ioctlsocket_camel="yes" |
| 35691 | |
| 35692 | else |
| 35693 | |
| 35694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 35695 | $as_echo "no" >&6; } |
| 35696 | tst_links_ioctlsocket_camel="no" |
| 35697 | |
| 35698 | fi |
| 35699 | rm -f core conftest.err conftest.$ac_objext \ |
| 35700 | conftest$ac_exeext conftest.$ac_ext |
| 35701 | # |
| 35702 | if test "$tst_links_ioctlsocket_camel" = "yes"; then |
| 35703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5 |
| 35704 | $as_echo_n "checking if IoctlSocket is prototyped... " >&6; } |
| 35705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 35706 | /* end confdefs.h. */ |
| 35707 | |
| 35708 | $curl_includes_stropts |
| 35709 | |
| 35710 | _ACEOF |
| 35711 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 35712 | $EGREP "IoctlSocket" >/dev/null 2>&1; then : |
| 35713 | |
| 35714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 35715 | $as_echo "yes" >&6; } |
| 35716 | tst_proto_ioctlsocket_camel="yes" |
| 35717 | |
| 35718 | else |
| 35719 | |
| 35720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 35721 | $as_echo "no" >&6; } |
| 35722 | tst_proto_ioctlsocket_camel="no" |
| 35723 | |
| 35724 | fi |
| 35725 | rm -f conftest* |
| 35726 | |
| 35727 | fi |
| 35728 | # |
| 35729 | if test "$tst_proto_ioctlsocket_camel" = "yes"; then |
| 35730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5 |
| 35731 | $as_echo_n "checking if IoctlSocket is compilable... " >&6; } |
| 35732 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 35733 | /* end confdefs.h. */ |
| 35734 | |
| 35735 | |
| 35736 | $curl_includes_stropts |
| 35737 | |
| 35738 | int main (void) |
| 35739 | { |
| 35740 | |
| 35741 | if(0 != IoctlSocket(0, 0, 0)) |
| 35742 | return 1; |
| 35743 | |
| 35744 | ; |
| 35745 | return 0; |
| 35746 | } |
| 35747 | |
| 35748 | _ACEOF |
| 35749 | if ac_fn_c_try_compile "$LINENO"; then : |
| 35750 | |
| 35751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 35752 | $as_echo "yes" >&6; } |
| 35753 | tst_compi_ioctlsocket_camel="yes" |
| 35754 | |
| 35755 | else |
| 35756 | |
| 35757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 35758 | $as_echo "no" >&6; } |
| 35759 | tst_compi_ioctlsocket_camel="no" |
| 35760 | |
| 35761 | fi |
| 35762 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 35763 | fi |
| 35764 | # |
| 35765 | if test "$tst_compi_ioctlsocket_camel" = "yes"; then |
| 35766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5 |
| 35767 | $as_echo_n "checking if IoctlSocket usage allowed... " >&6; } |
| 35768 | if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then |
| 35769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 35770 | $as_echo "yes" >&6; } |
| 35771 | tst_allow_ioctlsocket_camel="yes" |
| 35772 | else |
| 35773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 35774 | $as_echo "no" >&6; } |
| 35775 | tst_allow_ioctlsocket_camel="no" |
| 35776 | fi |
| 35777 | fi |
| 35778 | # |
| 35779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5 |
| 35780 | $as_echo_n "checking if IoctlSocket might be used... " >&6; } |
| 35781 | if test "$tst_links_ioctlsocket_camel" = "yes" && |
| 35782 | test "$tst_proto_ioctlsocket_camel" = "yes" && |
| 35783 | test "$tst_compi_ioctlsocket_camel" = "yes" && |
| 35784 | test "$tst_allow_ioctlsocket_camel" = "yes"; then |
| 35785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 35786 | $as_echo "yes" >&6; } |
| 35787 | |
| 35788 | cat >>confdefs.h <<_ACEOF |
| 35789 | #define HAVE_IOCTLSOCKET_CAMEL 1 |
| 35790 | _ACEOF |
| 35791 | |
| 35792 | curl_cv_func_ioctlsocket_camel="yes" |
| 35793 | |
| 35794 | # |
| 35795 | tst_compi_ioctlsocket_camel_fionbio="unknown" |
| 35796 | tst_allow_ioctlsocket_camel_fionbio="unknown" |
| 35797 | # |
| 35798 | if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then |
| 35799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5 |
| 35800 | $as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; } |
| 35801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 35802 | /* end confdefs.h. */ |
| 35803 | |
| 35804 | |
| 35805 | $curl_includes_stropts |
| 35806 | |
| 35807 | int main (void) |
| 35808 | { |
| 35809 | |
| 35810 | long flags = 0; |
| 35811 | if(0 != ioctlsocket(0, FIONBIO, &flags)) |
| 35812 | return 1; |
| 35813 | |
| 35814 | ; |
| 35815 | return 0; |
| 35816 | } |
| 35817 | |
| 35818 | _ACEOF |
| 35819 | if ac_fn_c_try_compile "$LINENO"; then : |
| 35820 | |
| 35821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 35822 | $as_echo "yes" >&6; } |
| 35823 | tst_compi_ioctlsocket_camel_fionbio="yes" |
| 35824 | |
| 35825 | else |
| 35826 | |
| 35827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 35828 | $as_echo "no" >&6; } |
| 35829 | tst_compi_ioctlsocket_camel_fionbio="no" |
| 35830 | |
| 35831 | fi |
| 35832 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 35833 | fi |
| 35834 | # |
| 35835 | if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then |
| 35836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5 |
| 35837 | $as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; } |
| 35838 | if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then |
| 35839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 35840 | $as_echo "yes" >&6; } |
| 35841 | tst_allow_ioctlsocket_camel_fionbio="yes" |
| 35842 | else |
| 35843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 35844 | $as_echo "no" >&6; } |
| 35845 | tst_allow_ioctlsocket_camel_fionbio="no" |
| 35846 | fi |
| 35847 | fi |
| 35848 | # |
| 35849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5 |
| 35850 | $as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; } |
| 35851 | if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" && |
| 35852 | test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then |
| 35853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 35854 | $as_echo "yes" >&6; } |
| 35855 | |
| 35856 | cat >>confdefs.h <<_ACEOF |
| 35857 | #define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1 |
| 35858 | _ACEOF |
| 35859 | |
| 35860 | curl_cv_func_ioctlsocket_camel_fionbio="yes" |
| 35861 | else |
| 35862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 35863 | $as_echo "no" >&6; } |
| 35864 | curl_cv_func_ioctlsocket_camel_fionbio="no" |
| 35865 | fi |
| 35866 | |
| 35867 | else |
| 35868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 35869 | $as_echo "no" >&6; } |
| 35870 | curl_cv_func_ioctlsocket_camel="no" |
| 35871 | fi |
| 35872 | |
| 35873 | |
| 35874 | # |
| 35875 | tst_links_localtime_r="unknown" |
| 35876 | tst_proto_localtime_r="unknown" |
| 35877 | tst_compi_localtime_r="unknown" |
| 35878 | tst_works_localtime_r="unknown" |
| 35879 | tst_allow_localtime_r="unknown" |
| 35880 | # |
| 35881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5 |
| 35882 | $as_echo_n "checking if localtime_r can be linked... " >&6; } |
| 35883 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 35884 | /* end confdefs.h. */ |
| 35885 | |
| 35886 | |
| 35887 | #define localtime_r innocuous_localtime_r |
| 35888 | #ifdef __STDC__ |
| 35889 | # include <limits.h> |
| 35890 | #else |
| 35891 | # include <assert.h> |
| 35892 | #endif |
| 35893 | #undef localtime_r |
| 35894 | #ifdef __cplusplus |
| 35895 | extern "C" |
| 35896 | #endif |
| 35897 | char localtime_r (); |
| 35898 | #if defined __stub_localtime_r || defined __stub___localtime_r |
| 35899 | choke me |
| 35900 | #endif |
| 35901 | |
| 35902 | int main (void) |
| 35903 | { |
| 35904 | return localtime_r (); |
| 35905 | ; |
| 35906 | return 0; |
| 35907 | } |
| 35908 | |
| 35909 | _ACEOF |
| 35910 | if ac_fn_c_try_link "$LINENO"; then : |
| 35911 | |
| 35912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 35913 | $as_echo "yes" >&6; } |
| 35914 | tst_links_localtime_r="yes" |
| 35915 | |
| 35916 | else |
| 35917 | |
| 35918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 35919 | $as_echo "no" >&6; } |
| 35920 | tst_links_localtime_r="no" |
| 35921 | |
| 35922 | fi |
| 35923 | rm -f core conftest.err conftest.$ac_objext \ |
| 35924 | conftest$ac_exeext conftest.$ac_ext |
| 35925 | # |
| 35926 | if test "$tst_links_localtime_r" = "yes"; then |
| 35927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5 |
| 35928 | $as_echo_n "checking if localtime_r is prototyped... " >&6; } |
| 35929 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 35930 | /* end confdefs.h. */ |
| 35931 | |
| 35932 | $curl_includes_time |
| 35933 | |
| 35934 | _ACEOF |
| 35935 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 35936 | $EGREP "localtime_r" >/dev/null 2>&1; then : |
| 35937 | |
| 35938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 35939 | $as_echo "yes" >&6; } |
| 35940 | tst_proto_localtime_r="yes" |
| 35941 | |
| 35942 | else |
| 35943 | |
| 35944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 35945 | $as_echo "no" >&6; } |
| 35946 | tst_proto_localtime_r="no" |
| 35947 | |
| 35948 | fi |
| 35949 | rm -f conftest* |
| 35950 | |
| 35951 | fi |
| 35952 | # |
| 35953 | if test "$tst_proto_localtime_r" = "yes"; then |
| 35954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5 |
| 35955 | $as_echo_n "checking if localtime_r is compilable... " >&6; } |
| 35956 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 35957 | /* end confdefs.h. */ |
| 35958 | |
| 35959 | |
| 35960 | $curl_includes_time |
| 35961 | |
| 35962 | int main (void) |
| 35963 | { |
| 35964 | |
| 35965 | if(0 != localtime_r(0, 0)) |
| 35966 | return 1; |
| 35967 | |
| 35968 | ; |
| 35969 | return 0; |
| 35970 | } |
| 35971 | |
| 35972 | _ACEOF |
| 35973 | if ac_fn_c_try_compile "$LINENO"; then : |
| 35974 | |
| 35975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 35976 | $as_echo "yes" >&6; } |
| 35977 | tst_compi_localtime_r="yes" |
| 35978 | |
| 35979 | else |
| 35980 | |
| 35981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 35982 | $as_echo "no" >&6; } |
| 35983 | tst_compi_localtime_r="no" |
| 35984 | |
| 35985 | fi |
| 35986 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 35987 | fi |
| 35988 | # |
| 35989 | if test "x$cross_compiling" != "xyes" && |
| 35990 | test "$tst_compi_localtime_r" = "yes"; then |
| 35991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5 |
| 35992 | $as_echo_n "checking if localtime_r seems to work... " >&6; } |
| 35993 | if test "$cross_compiling" = yes; then : |
| 35994 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 35995 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 35996 | as_fn_error $? "cannot run test program while cross compiling |
| 35997 | See \`config.log' for more details" "$LINENO" 5; } |
| 35998 | else |
| 35999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 36000 | /* end confdefs.h. */ |
| 36001 | |
| 36002 | |
| 36003 | $curl_includes_stdlib |
| 36004 | $curl_includes_time |
| 36005 | |
| 36006 | int main (void) |
| 36007 | { |
| 36008 | |
| 36009 | time_t clock = 1170352587; |
| 36010 | struct tm *tmp = 0; |
| 36011 | struct tm result; |
| 36012 | tmp = localtime_r(&clock, &result); |
| 36013 | if(tmp) |
| 36014 | exit(0); |
| 36015 | else |
| 36016 | exit(1); |
| 36017 | |
| 36018 | ; |
| 36019 | return 0; |
| 36020 | } |
| 36021 | |
| 36022 | _ACEOF |
| 36023 | if ac_fn_c_try_run "$LINENO"; then : |
| 36024 | |
| 36025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 36026 | $as_echo "yes" >&6; } |
| 36027 | tst_works_localtime_r="yes" |
| 36028 | |
| 36029 | else |
| 36030 | |
| 36031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 36032 | $as_echo "no" >&6; } |
| 36033 | tst_works_localtime_r="no" |
| 36034 | |
| 36035 | fi |
| 36036 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 36037 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 36038 | fi |
| 36039 | |
| 36040 | fi |
| 36041 | # |
| 36042 | if test "$tst_compi_localtime_r" = "yes" && |
| 36043 | test "$tst_works_localtime_r" != "no"; then |
| 36044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5 |
| 36045 | $as_echo_n "checking if localtime_r usage allowed... " >&6; } |
| 36046 | if test "x$curl_disallow_localtime_r" != "xyes"; then |
| 36047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 36048 | $as_echo "yes" >&6; } |
| 36049 | tst_allow_localtime_r="yes" |
| 36050 | else |
| 36051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 36052 | $as_echo "no" >&6; } |
| 36053 | tst_allow_localtime_r="no" |
| 36054 | fi |
| 36055 | fi |
| 36056 | # |
| 36057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5 |
| 36058 | $as_echo_n "checking if localtime_r might be used... " >&6; } |
| 36059 | if test "$tst_links_localtime_r" = "yes" && |
| 36060 | test "$tst_proto_localtime_r" = "yes" && |
| 36061 | test "$tst_compi_localtime_r" = "yes" && |
| 36062 | test "$tst_allow_localtime_r" = "yes" && |
| 36063 | test "$tst_works_localtime_r" != "no"; then |
| 36064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 36065 | $as_echo "yes" >&6; } |
| 36066 | |
| 36067 | cat >>confdefs.h <<_ACEOF |
| 36068 | #define HAVE_LOCALTIME_R 1 |
| 36069 | _ACEOF |
| 36070 | |
| 36071 | curl_cv_func_localtime_r="yes" |
| 36072 | else |
| 36073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 36074 | $as_echo "no" >&6; } |
| 36075 | curl_cv_func_localtime_r="no" |
| 36076 | fi |
| 36077 | |
| 36078 | |
| 36079 | # |
| 36080 | tst_links_memrchr="unknown" |
| 36081 | tst_macro_memrchr="unknown" |
| 36082 | tst_proto_memrchr="unknown" |
| 36083 | tst_compi_memrchr="unknown" |
| 36084 | tst_allow_memrchr="unknown" |
| 36085 | # |
| 36086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5 |
| 36087 | $as_echo_n "checking if memrchr can be linked... " >&6; } |
| 36088 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 36089 | /* end confdefs.h. */ |
| 36090 | |
| 36091 | |
| 36092 | #define memrchr innocuous_memrchr |
| 36093 | #ifdef __STDC__ |
| 36094 | # include <limits.h> |
| 36095 | #else |
| 36096 | # include <assert.h> |
| 36097 | #endif |
| 36098 | #undef memrchr |
| 36099 | #ifdef __cplusplus |
| 36100 | extern "C" |
| 36101 | #endif |
| 36102 | char memrchr (); |
| 36103 | #if defined __stub_memrchr || defined __stub___memrchr |
| 36104 | choke me |
| 36105 | #endif |
| 36106 | |
| 36107 | int main (void) |
| 36108 | { |
| 36109 | return memrchr (); |
| 36110 | ; |
| 36111 | return 0; |
| 36112 | } |
| 36113 | |
| 36114 | _ACEOF |
| 36115 | if ac_fn_c_try_link "$LINENO"; then : |
| 36116 | |
| 36117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 36118 | $as_echo "yes" >&6; } |
| 36119 | tst_links_memrchr="yes" |
| 36120 | |
| 36121 | else |
| 36122 | |
| 36123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 36124 | $as_echo "no" >&6; } |
| 36125 | tst_links_memrchr="no" |
| 36126 | |
| 36127 | fi |
| 36128 | rm -f core conftest.err conftest.$ac_objext \ |
| 36129 | conftest$ac_exeext conftest.$ac_ext |
| 36130 | # |
| 36131 | if test "$tst_links_memrchr" = "no"; then |
| 36132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5 |
| 36133 | $as_echo_n "checking if memrchr seems a macro... " >&6; } |
| 36134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 36135 | /* end confdefs.h. */ |
| 36136 | |
| 36137 | |
| 36138 | $curl_includes_string |
| 36139 | |
| 36140 | int main (void) |
| 36141 | { |
| 36142 | |
| 36143 | if(0 != memrchr(0, 0, 0)) |
| 36144 | return 1; |
| 36145 | |
| 36146 | ; |
| 36147 | return 0; |
| 36148 | } |
| 36149 | |
| 36150 | _ACEOF |
| 36151 | if ac_fn_c_try_link "$LINENO"; then : |
| 36152 | |
| 36153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 36154 | $as_echo "yes" >&6; } |
| 36155 | tst_macro_memrchr="yes" |
| 36156 | |
| 36157 | else |
| 36158 | |
| 36159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 36160 | $as_echo "no" >&6; } |
| 36161 | tst_macro_memrchr="no" |
| 36162 | |
| 36163 | fi |
| 36164 | rm -f core conftest.err conftest.$ac_objext \ |
| 36165 | conftest$ac_exeext conftest.$ac_ext |
| 36166 | fi |
| 36167 | # |
| 36168 | if test "$tst_links_memrchr" = "yes"; then |
| 36169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5 |
| 36170 | $as_echo_n "checking if memrchr is prototyped... " >&6; } |
| 36171 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 36172 | /* end confdefs.h. */ |
| 36173 | |
| 36174 | $curl_includes_string |
| 36175 | |
| 36176 | _ACEOF |
| 36177 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 36178 | $EGREP "memrchr" >/dev/null 2>&1; then : |
| 36179 | |
| 36180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 36181 | $as_echo "yes" >&6; } |
| 36182 | tst_proto_memrchr="yes" |
| 36183 | |
| 36184 | else |
| 36185 | |
| 36186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 36187 | $as_echo "no" >&6; } |
| 36188 | tst_proto_memrchr="no" |
| 36189 | |
| 36190 | fi |
| 36191 | rm -f conftest* |
| 36192 | |
| 36193 | fi |
| 36194 | # |
| 36195 | if test "$tst_proto_memrchr" = "yes" || |
| 36196 | test "$tst_macro_memrchr" = "yes"; then |
| 36197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5 |
| 36198 | $as_echo_n "checking if memrchr is compilable... " >&6; } |
| 36199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 36200 | /* end confdefs.h. */ |
| 36201 | |
| 36202 | |
| 36203 | $curl_includes_string |
| 36204 | |
| 36205 | int main (void) |
| 36206 | { |
| 36207 | |
| 36208 | if(0 != memrchr(0, 0, 0)) |
| 36209 | return 1; |
| 36210 | |
| 36211 | ; |
| 36212 | return 0; |
| 36213 | } |
| 36214 | |
| 36215 | _ACEOF |
| 36216 | if ac_fn_c_try_compile "$LINENO"; then : |
| 36217 | |
| 36218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 36219 | $as_echo "yes" >&6; } |
| 36220 | tst_compi_memrchr="yes" |
| 36221 | |
| 36222 | else |
| 36223 | |
| 36224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 36225 | $as_echo "no" >&6; } |
| 36226 | tst_compi_memrchr="no" |
| 36227 | |
| 36228 | fi |
| 36229 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 36230 | fi |
| 36231 | # |
| 36232 | if test "$tst_compi_memrchr" = "yes"; then |
| 36233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5 |
| 36234 | $as_echo_n "checking if memrchr usage allowed... " >&6; } |
| 36235 | if test "x$curl_disallow_memrchr" != "xyes"; then |
| 36236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 36237 | $as_echo "yes" >&6; } |
| 36238 | tst_allow_memrchr="yes" |
| 36239 | else |
| 36240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 36241 | $as_echo "no" >&6; } |
| 36242 | tst_allow_memrchr="no" |
| 36243 | fi |
| 36244 | fi |
| 36245 | # |
| 36246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5 |
| 36247 | $as_echo_n "checking if memrchr might be used... " >&6; } |
| 36248 | if (test "$tst_proto_memrchr" = "yes" || |
| 36249 | test "$tst_macro_memrchr" = "yes") && |
| 36250 | test "$tst_compi_memrchr" = "yes" && |
| 36251 | test "$tst_allow_memrchr" = "yes"; then |
| 36252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 36253 | $as_echo "yes" >&6; } |
| 36254 | |
| 36255 | cat >>confdefs.h <<_ACEOF |
| 36256 | #define HAVE_MEMRCHR 1 |
| 36257 | _ACEOF |
| 36258 | |
| 36259 | curl_cv_func_memrchr="yes" |
| 36260 | else |
| 36261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 36262 | $as_echo "no" >&6; } |
| 36263 | curl_cv_func_memrchr="no" |
| 36264 | fi |
| 36265 | |
| 36266 | |
| 36267 | # |
| 36268 | tst_links_poll="unknown" |
| 36269 | tst_proto_poll="unknown" |
| 36270 | tst_compi_poll="unknown" |
| 36271 | tst_works_poll="unknown" |
| 36272 | tst_allow_poll="unknown" |
| 36273 | # |
| 36274 | case $host_os in |
| 36275 | darwin*|interix*) |
| 36276 | curl_disallow_poll="yes" |
| 36277 | tst_compi_poll="no" |
| 36278 | ;; |
| 36279 | esac |
| 36280 | # |
| 36281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5 |
| 36282 | $as_echo_n "checking if poll can be linked... " >&6; } |
| 36283 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 36284 | /* end confdefs.h. */ |
| 36285 | |
| 36286 | |
| 36287 | $curl_includes_poll |
| 36288 | |
| 36289 | int main (void) |
| 36290 | { |
| 36291 | |
| 36292 | if(0 != poll(0, 0, 0)) |
| 36293 | return 1; |
| 36294 | |
| 36295 | ; |
| 36296 | return 0; |
| 36297 | } |
| 36298 | |
| 36299 | _ACEOF |
| 36300 | if ac_fn_c_try_link "$LINENO"; then : |
| 36301 | |
| 36302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 36303 | $as_echo "yes" >&6; } |
| 36304 | tst_links_poll="yes" |
| 36305 | |
| 36306 | else |
| 36307 | |
| 36308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 36309 | $as_echo "no" >&6; } |
| 36310 | tst_links_poll="no" |
| 36311 | |
| 36312 | fi |
| 36313 | rm -f core conftest.err conftest.$ac_objext \ |
| 36314 | conftest$ac_exeext conftest.$ac_ext |
| 36315 | # |
| 36316 | if test "$tst_links_poll" = "yes"; then |
| 36317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5 |
| 36318 | $as_echo_n "checking if poll is prototyped... " >&6; } |
| 36319 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 36320 | /* end confdefs.h. */ |
| 36321 | |
| 36322 | $curl_includes_poll |
| 36323 | |
| 36324 | _ACEOF |
| 36325 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 36326 | $EGREP "poll" >/dev/null 2>&1; then : |
| 36327 | |
| 36328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 36329 | $as_echo "yes" >&6; } |
| 36330 | tst_proto_poll="yes" |
| 36331 | |
| 36332 | else |
| 36333 | |
| 36334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 36335 | $as_echo "no" >&6; } |
| 36336 | tst_proto_poll="no" |
| 36337 | |
| 36338 | fi |
| 36339 | rm -f conftest* |
| 36340 | |
| 36341 | fi |
| 36342 | # |
| 36343 | if test "$tst_proto_poll" = "yes"; then |
| 36344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5 |
| 36345 | $as_echo_n "checking if poll is compilable... " >&6; } |
| 36346 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 36347 | /* end confdefs.h. */ |
| 36348 | |
| 36349 | |
| 36350 | $curl_includes_poll |
| 36351 | |
| 36352 | int main (void) |
| 36353 | { |
| 36354 | |
| 36355 | if(0 != poll(0, 0, 0)) |
| 36356 | return 1; |
| 36357 | |
| 36358 | ; |
| 36359 | return 0; |
| 36360 | } |
| 36361 | |
| 36362 | _ACEOF |
| 36363 | if ac_fn_c_try_compile "$LINENO"; then : |
| 36364 | |
| 36365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 36366 | $as_echo "yes" >&6; } |
| 36367 | tst_compi_poll="yes" |
| 36368 | |
| 36369 | else |
| 36370 | |
| 36371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 36372 | $as_echo "no" >&6; } |
| 36373 | tst_compi_poll="no" |
| 36374 | |
| 36375 | fi |
| 36376 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 36377 | fi |
| 36378 | # |
| 36379 | if test "x$cross_compiling" != "xyes" && |
| 36380 | test "$tst_compi_poll" = "yes"; then |
| 36381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5 |
| 36382 | $as_echo_n "checking if poll seems to work... " >&6; } |
| 36383 | if test "$cross_compiling" = yes; then : |
| 36384 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 36385 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 36386 | as_fn_error $? "cannot run test program while cross compiling |
| 36387 | See \`config.log' for more details" "$LINENO" 5; } |
| 36388 | else |
| 36389 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 36390 | /* end confdefs.h. */ |
| 36391 | |
| 36392 | |
| 36393 | $curl_includes_stdlib |
| 36394 | $curl_includes_poll |
| 36395 | $curl_includes_time |
| 36396 | |
| 36397 | int main (void) |
| 36398 | { |
| 36399 | |
| 36400 | /* detect the original poll() breakage */ |
| 36401 | if(0 != poll(0, 0, 10)) |
| 36402 | exit(1); /* fail */ |
| 36403 | else { |
| 36404 | /* detect the 10.12 poll() breakage */ |
| 36405 | struct timeval before, after; |
| 36406 | int rc; |
| 36407 | size_t us; |
| 36408 | |
| 36409 | gettimeofday(&before, NULL); |
| 36410 | rc = poll(NULL, 0, 500); |
| 36411 | gettimeofday(&after, NULL); |
| 36412 | |
| 36413 | us = (after.tv_sec - before.tv_sec) * 1000000 + |
| 36414 | (after.tv_usec - before.tv_usec); |
| 36415 | |
| 36416 | if(us < 400000) |
| 36417 | exit(1); |
| 36418 | } |
| 36419 | |
| 36420 | ; |
| 36421 | return 0; |
| 36422 | } |
| 36423 | |
| 36424 | _ACEOF |
| 36425 | if ac_fn_c_try_run "$LINENO"; then : |
| 36426 | |
| 36427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 36428 | $as_echo "yes" >&6; } |
| 36429 | tst_works_poll="yes" |
| 36430 | |
| 36431 | else |
| 36432 | |
| 36433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 36434 | $as_echo "no" >&6; } |
| 36435 | tst_works_poll="no" |
| 36436 | |
| 36437 | fi |
| 36438 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 36439 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 36440 | fi |
| 36441 | |
| 36442 | fi |
| 36443 | # |
| 36444 | if test "$tst_compi_poll" = "yes" && |
| 36445 | test "$tst_works_poll" != "no"; then |
| 36446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5 |
| 36447 | $as_echo_n "checking if poll usage allowed... " >&6; } |
| 36448 | if test "x$curl_disallow_poll" != "xyes"; then |
| 36449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 36450 | $as_echo "yes" >&6; } |
| 36451 | tst_allow_poll="yes" |
| 36452 | else |
| 36453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 36454 | $as_echo "no" >&6; } |
| 36455 | tst_allow_poll="no" |
| 36456 | fi |
| 36457 | fi |
| 36458 | # |
| 36459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5 |
| 36460 | $as_echo_n "checking if poll might be used... " >&6; } |
| 36461 | if test "$tst_links_poll" = "yes" && |
| 36462 | test "$tst_proto_poll" = "yes" && |
| 36463 | test "$tst_compi_poll" = "yes" && |
| 36464 | test "$tst_allow_poll" = "yes" && |
| 36465 | test "$tst_works_poll" != "no"; then |
| 36466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 36467 | $as_echo "yes" >&6; } |
| 36468 | |
| 36469 | cat >>confdefs.h <<_ACEOF |
| 36470 | #define HAVE_POLL 1 |
| 36471 | _ACEOF |
| 36472 | |
| 36473 | |
| 36474 | cat >>confdefs.h <<_ACEOF |
| 36475 | #define HAVE_POLL_FINE 1 |
| 36476 | _ACEOF |
| 36477 | |
| 36478 | curl_cv_func_poll="yes" |
| 36479 | else |
| 36480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 36481 | $as_echo "no" >&6; } |
| 36482 | curl_cv_func_poll="no" |
| 36483 | fi |
| 36484 | |
| 36485 | |
| 36486 | # |
| 36487 | tst_links_setsockopt="unknown" |
| 36488 | tst_proto_setsockopt="unknown" |
| 36489 | tst_compi_setsockopt="unknown" |
| 36490 | tst_allow_setsockopt="unknown" |
| 36491 | # |
| 36492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5 |
| 36493 | $as_echo_n "checking if setsockopt can be linked... " >&6; } |
| 36494 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 36495 | /* end confdefs.h. */ |
| 36496 | |
| 36497 | |
| 36498 | $curl_includes_winsock2 |
| 36499 | $curl_includes_sys_socket |
| 36500 | |
| 36501 | int main (void) |
| 36502 | { |
| 36503 | |
| 36504 | if(0 != setsockopt(0, 0, 0, 0, 0)) |
| 36505 | return 1; |
| 36506 | |
| 36507 | ; |
| 36508 | return 0; |
| 36509 | } |
| 36510 | |
| 36511 | _ACEOF |
| 36512 | if ac_fn_c_try_link "$LINENO"; then : |
| 36513 | |
| 36514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 36515 | $as_echo "yes" >&6; } |
| 36516 | tst_links_setsockopt="yes" |
| 36517 | |
| 36518 | else |
| 36519 | |
| 36520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 36521 | $as_echo "no" >&6; } |
| 36522 | tst_links_setsockopt="no" |
| 36523 | |
| 36524 | fi |
| 36525 | rm -f core conftest.err conftest.$ac_objext \ |
| 36526 | conftest$ac_exeext conftest.$ac_ext |
| 36527 | # |
| 36528 | if test "$tst_links_setsockopt" = "yes"; then |
| 36529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5 |
| 36530 | $as_echo_n "checking if setsockopt is prototyped... " >&6; } |
| 36531 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 36532 | /* end confdefs.h. */ |
| 36533 | |
| 36534 | $curl_includes_winsock2 |
| 36535 | $curl_includes_sys_socket |
| 36536 | |
| 36537 | _ACEOF |
| 36538 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 36539 | $EGREP "setsockopt" >/dev/null 2>&1; then : |
| 36540 | |
| 36541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 36542 | $as_echo "yes" >&6; } |
| 36543 | tst_proto_setsockopt="yes" |
| 36544 | |
| 36545 | else |
| 36546 | |
| 36547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 36548 | $as_echo "no" >&6; } |
| 36549 | tst_proto_setsockopt="no" |
| 36550 | |
| 36551 | fi |
| 36552 | rm -f conftest* |
| 36553 | |
| 36554 | fi |
| 36555 | # |
| 36556 | if test "$tst_proto_setsockopt" = "yes"; then |
| 36557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5 |
| 36558 | $as_echo_n "checking if setsockopt is compilable... " >&6; } |
| 36559 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 36560 | /* end confdefs.h. */ |
| 36561 | |
| 36562 | |
| 36563 | $curl_includes_winsock2 |
| 36564 | $curl_includes_sys_socket |
| 36565 | |
| 36566 | int main (void) |
| 36567 | { |
| 36568 | |
| 36569 | if(0 != setsockopt(0, 0, 0, 0, 0)) |
| 36570 | return 1; |
| 36571 | |
| 36572 | ; |
| 36573 | return 0; |
| 36574 | } |
| 36575 | |
| 36576 | _ACEOF |
| 36577 | if ac_fn_c_try_compile "$LINENO"; then : |
| 36578 | |
| 36579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 36580 | $as_echo "yes" >&6; } |
| 36581 | tst_compi_setsockopt="yes" |
| 36582 | |
| 36583 | else |
| 36584 | |
| 36585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 36586 | $as_echo "no" >&6; } |
| 36587 | tst_compi_setsockopt="no" |
| 36588 | |
| 36589 | fi |
| 36590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 36591 | fi |
| 36592 | # |
| 36593 | if test "$tst_compi_setsockopt" = "yes"; then |
| 36594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5 |
| 36595 | $as_echo_n "checking if setsockopt usage allowed... " >&6; } |
| 36596 | if test "x$curl_disallow_setsockopt" != "xyes"; then |
| 36597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 36598 | $as_echo "yes" >&6; } |
| 36599 | tst_allow_setsockopt="yes" |
| 36600 | else |
| 36601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 36602 | $as_echo "no" >&6; } |
| 36603 | tst_allow_setsockopt="no" |
| 36604 | fi |
| 36605 | fi |
| 36606 | # |
| 36607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5 |
| 36608 | $as_echo_n "checking if setsockopt might be used... " >&6; } |
| 36609 | if test "$tst_links_setsockopt" = "yes" && |
| 36610 | test "$tst_proto_setsockopt" = "yes" && |
| 36611 | test "$tst_compi_setsockopt" = "yes" && |
| 36612 | test "$tst_allow_setsockopt" = "yes"; then |
| 36613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 36614 | $as_echo "yes" >&6; } |
| 36615 | |
| 36616 | cat >>confdefs.h <<_ACEOF |
| 36617 | #define HAVE_SETSOCKOPT 1 |
| 36618 | _ACEOF |
| 36619 | |
| 36620 | curl_cv_func_setsockopt="yes" |
| 36621 | |
| 36622 | # |
| 36623 | tst_compi_setsockopt_so_nonblock="unknown" |
| 36624 | tst_allow_setsockopt_so_nonblock="unknown" |
| 36625 | # |
| 36626 | if test "$curl_cv_func_setsockopt" = "yes"; then |
| 36627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5 |
| 36628 | $as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; } |
| 36629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 36630 | /* end confdefs.h. */ |
| 36631 | |
| 36632 | |
| 36633 | $curl_includes_winsock2 |
| 36634 | $curl_includes_sys_socket |
| 36635 | |
| 36636 | int main (void) |
| 36637 | { |
| 36638 | |
| 36639 | if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0)) |
| 36640 | return 1; |
| 36641 | |
| 36642 | ; |
| 36643 | return 0; |
| 36644 | } |
| 36645 | |
| 36646 | _ACEOF |
| 36647 | if ac_fn_c_try_compile "$LINENO"; then : |
| 36648 | |
| 36649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 36650 | $as_echo "yes" >&6; } |
| 36651 | tst_compi_setsockopt_so_nonblock="yes" |
| 36652 | |
| 36653 | else |
| 36654 | |
| 36655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 36656 | $as_echo "no" >&6; } |
| 36657 | tst_compi_setsockopt_so_nonblock="no" |
| 36658 | |
| 36659 | fi |
| 36660 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 36661 | fi |
| 36662 | # |
| 36663 | if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then |
| 36664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5 |
| 36665 | $as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; } |
| 36666 | if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then |
| 36667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 36668 | $as_echo "yes" >&6; } |
| 36669 | tst_allow_setsockopt_so_nonblock="yes" |
| 36670 | else |
| 36671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 36672 | $as_echo "no" >&6; } |
| 36673 | tst_allow_setsockopt_so_nonblock="no" |
| 36674 | fi |
| 36675 | fi |
| 36676 | # |
| 36677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5 |
| 36678 | $as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; } |
| 36679 | if test "$tst_compi_setsockopt_so_nonblock" = "yes" && |
| 36680 | test "$tst_allow_setsockopt_so_nonblock" = "yes"; then |
| 36681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 36682 | $as_echo "yes" >&6; } |
| 36683 | |
| 36684 | cat >>confdefs.h <<_ACEOF |
| 36685 | #define HAVE_SETSOCKOPT_SO_NONBLOCK 1 |
| 36686 | _ACEOF |
| 36687 | |
| 36688 | curl_cv_func_setsockopt_so_nonblock="yes" |
| 36689 | else |
| 36690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 36691 | $as_echo "no" >&6; } |
| 36692 | curl_cv_func_setsockopt_so_nonblock="no" |
| 36693 | fi |
| 36694 | |
| 36695 | else |
| 36696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 36697 | $as_echo "no" >&6; } |
| 36698 | curl_cv_func_setsockopt="no" |
| 36699 | fi |
| 36700 | |
| 36701 | |
| 36702 | curl_includes_signal="\ |
| 36703 | /* includes start */ |
| 36704 | #ifdef HAVE_SYS_TYPES_H |
| 36705 | # include <sys/types.h> |
| 36706 | #endif |
| 36707 | #ifdef HAVE_SIGNAL_H |
| 36708 | # include <signal.h> |
| 36709 | #endif |
| 36710 | /* includes end */" |
| 36711 | for ac_header in sys/types.h signal.h |
| 36712 | do : |
| 36713 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 36714 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal |
| 36715 | " |
| 36716 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 36717 | cat >>confdefs.h <<_ACEOF |
| 36718 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 36719 | _ACEOF |
| 36720 | |
| 36721 | fi |
| 36722 | |
| 36723 | done |
| 36724 | |
| 36725 | |
| 36726 | |
| 36727 | # |
| 36728 | tst_links_sigaction="unknown" |
| 36729 | tst_proto_sigaction="unknown" |
| 36730 | tst_compi_sigaction="unknown" |
| 36731 | tst_allow_sigaction="unknown" |
| 36732 | # |
| 36733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5 |
| 36734 | $as_echo_n "checking if sigaction can be linked... " >&6; } |
| 36735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 36736 | /* end confdefs.h. */ |
| 36737 | |
| 36738 | |
| 36739 | #define sigaction innocuous_sigaction |
| 36740 | #ifdef __STDC__ |
| 36741 | # include <limits.h> |
| 36742 | #else |
| 36743 | # include <assert.h> |
| 36744 | #endif |
| 36745 | #undef sigaction |
| 36746 | #ifdef __cplusplus |
| 36747 | extern "C" |
| 36748 | #endif |
| 36749 | char sigaction (); |
| 36750 | #if defined __stub_sigaction || defined __stub___sigaction |
| 36751 | choke me |
| 36752 | #endif |
| 36753 | |
| 36754 | int main (void) |
| 36755 | { |
| 36756 | return sigaction (); |
| 36757 | ; |
| 36758 | return 0; |
| 36759 | } |
| 36760 | |
| 36761 | _ACEOF |
| 36762 | if ac_fn_c_try_link "$LINENO"; then : |
| 36763 | |
| 36764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 36765 | $as_echo "yes" >&6; } |
| 36766 | tst_links_sigaction="yes" |
| 36767 | |
| 36768 | else |
| 36769 | |
| 36770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 36771 | $as_echo "no" >&6; } |
| 36772 | tst_links_sigaction="no" |
| 36773 | |
| 36774 | fi |
| 36775 | rm -f core conftest.err conftest.$ac_objext \ |
| 36776 | conftest$ac_exeext conftest.$ac_ext |
| 36777 | # |
| 36778 | if test "$tst_links_sigaction" = "yes"; then |
| 36779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5 |
| 36780 | $as_echo_n "checking if sigaction is prototyped... " >&6; } |
| 36781 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 36782 | /* end confdefs.h. */ |
| 36783 | |
| 36784 | $curl_includes_signal |
| 36785 | |
| 36786 | _ACEOF |
| 36787 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 36788 | $EGREP "sigaction" >/dev/null 2>&1; then : |
| 36789 | |
| 36790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 36791 | $as_echo "yes" >&6; } |
| 36792 | tst_proto_sigaction="yes" |
| 36793 | |
| 36794 | else |
| 36795 | |
| 36796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 36797 | $as_echo "no" >&6; } |
| 36798 | tst_proto_sigaction="no" |
| 36799 | |
| 36800 | fi |
| 36801 | rm -f conftest* |
| 36802 | |
| 36803 | fi |
| 36804 | # |
| 36805 | if test "$tst_proto_sigaction" = "yes"; then |
| 36806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5 |
| 36807 | $as_echo_n "checking if sigaction is compilable... " >&6; } |
| 36808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 36809 | /* end confdefs.h. */ |
| 36810 | |
| 36811 | |
| 36812 | $curl_includes_signal |
| 36813 | |
| 36814 | int main (void) |
| 36815 | { |
| 36816 | |
| 36817 | if(0 != sigaction(0, 0, 0)) |
| 36818 | return 1; |
| 36819 | |
| 36820 | ; |
| 36821 | return 0; |
| 36822 | } |
| 36823 | |
| 36824 | _ACEOF |
| 36825 | if ac_fn_c_try_compile "$LINENO"; then : |
| 36826 | |
| 36827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 36828 | $as_echo "yes" >&6; } |
| 36829 | tst_compi_sigaction="yes" |
| 36830 | |
| 36831 | else |
| 36832 | |
| 36833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 36834 | $as_echo "no" >&6; } |
| 36835 | tst_compi_sigaction="no" |
| 36836 | |
| 36837 | fi |
| 36838 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 36839 | fi |
| 36840 | # |
| 36841 | if test "$tst_compi_sigaction" = "yes"; then |
| 36842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5 |
| 36843 | $as_echo_n "checking if sigaction usage allowed... " >&6; } |
| 36844 | if test "x$curl_disallow_sigaction" != "xyes"; then |
| 36845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 36846 | $as_echo "yes" >&6; } |
| 36847 | tst_allow_sigaction="yes" |
| 36848 | else |
| 36849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 36850 | $as_echo "no" >&6; } |
| 36851 | tst_allow_sigaction="no" |
| 36852 | fi |
| 36853 | fi |
| 36854 | # |
| 36855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5 |
| 36856 | $as_echo_n "checking if sigaction might be used... " >&6; } |
| 36857 | if test "$tst_links_sigaction" = "yes" && |
| 36858 | test "$tst_proto_sigaction" = "yes" && |
| 36859 | test "$tst_compi_sigaction" = "yes" && |
| 36860 | test "$tst_allow_sigaction" = "yes"; then |
| 36861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 36862 | $as_echo "yes" >&6; } |
| 36863 | |
| 36864 | cat >>confdefs.h <<_ACEOF |
| 36865 | #define HAVE_SIGACTION 1 |
| 36866 | _ACEOF |
| 36867 | |
| 36868 | curl_cv_func_sigaction="yes" |
| 36869 | else |
| 36870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 36871 | $as_echo "no" >&6; } |
| 36872 | curl_cv_func_sigaction="no" |
| 36873 | fi |
| 36874 | |
| 36875 | |
| 36876 | # |
| 36877 | tst_links_siginterrupt="unknown" |
| 36878 | tst_proto_siginterrupt="unknown" |
| 36879 | tst_compi_siginterrupt="unknown" |
| 36880 | tst_allow_siginterrupt="unknown" |
| 36881 | # |
| 36882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5 |
| 36883 | $as_echo_n "checking if siginterrupt can be linked... " >&6; } |
| 36884 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 36885 | /* end confdefs.h. */ |
| 36886 | |
| 36887 | |
| 36888 | #define siginterrupt innocuous_siginterrupt |
| 36889 | #ifdef __STDC__ |
| 36890 | # include <limits.h> |
| 36891 | #else |
| 36892 | # include <assert.h> |
| 36893 | #endif |
| 36894 | #undef siginterrupt |
| 36895 | #ifdef __cplusplus |
| 36896 | extern "C" |
| 36897 | #endif |
| 36898 | char siginterrupt (); |
| 36899 | #if defined __stub_siginterrupt || defined __stub___siginterrupt |
| 36900 | choke me |
| 36901 | #endif |
| 36902 | |
| 36903 | int main (void) |
| 36904 | { |
| 36905 | return siginterrupt (); |
| 36906 | ; |
| 36907 | return 0; |
| 36908 | } |
| 36909 | |
| 36910 | _ACEOF |
| 36911 | if ac_fn_c_try_link "$LINENO"; then : |
| 36912 | |
| 36913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 36914 | $as_echo "yes" >&6; } |
| 36915 | tst_links_siginterrupt="yes" |
| 36916 | |
| 36917 | else |
| 36918 | |
| 36919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 36920 | $as_echo "no" >&6; } |
| 36921 | tst_links_siginterrupt="no" |
| 36922 | |
| 36923 | fi |
| 36924 | rm -f core conftest.err conftest.$ac_objext \ |
| 36925 | conftest$ac_exeext conftest.$ac_ext |
| 36926 | # |
| 36927 | if test "$tst_links_siginterrupt" = "yes"; then |
| 36928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5 |
| 36929 | $as_echo_n "checking if siginterrupt is prototyped... " >&6; } |
| 36930 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 36931 | /* end confdefs.h. */ |
| 36932 | |
| 36933 | $curl_includes_signal |
| 36934 | |
| 36935 | _ACEOF |
| 36936 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 36937 | $EGREP "siginterrupt" >/dev/null 2>&1; then : |
| 36938 | |
| 36939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 36940 | $as_echo "yes" >&6; } |
| 36941 | tst_proto_siginterrupt="yes" |
| 36942 | |
| 36943 | else |
| 36944 | |
| 36945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 36946 | $as_echo "no" >&6; } |
| 36947 | tst_proto_siginterrupt="no" |
| 36948 | |
| 36949 | fi |
| 36950 | rm -f conftest* |
| 36951 | |
| 36952 | fi |
| 36953 | # |
| 36954 | if test "$tst_proto_siginterrupt" = "yes"; then |
| 36955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5 |
| 36956 | $as_echo_n "checking if siginterrupt is compilable... " >&6; } |
| 36957 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 36958 | /* end confdefs.h. */ |
| 36959 | |
| 36960 | |
| 36961 | $curl_includes_signal |
| 36962 | |
| 36963 | int main (void) |
| 36964 | { |
| 36965 | |
| 36966 | if(0 != siginterrupt(0, 0)) |
| 36967 | return 1; |
| 36968 | |
| 36969 | ; |
| 36970 | return 0; |
| 36971 | } |
| 36972 | |
| 36973 | _ACEOF |
| 36974 | if ac_fn_c_try_compile "$LINENO"; then : |
| 36975 | |
| 36976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 36977 | $as_echo "yes" >&6; } |
| 36978 | tst_compi_siginterrupt="yes" |
| 36979 | |
| 36980 | else |
| 36981 | |
| 36982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 36983 | $as_echo "no" >&6; } |
| 36984 | tst_compi_siginterrupt="no" |
| 36985 | |
| 36986 | fi |
| 36987 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 36988 | fi |
| 36989 | # |
| 36990 | if test "$tst_compi_siginterrupt" = "yes"; then |
| 36991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5 |
| 36992 | $as_echo_n "checking if siginterrupt usage allowed... " >&6; } |
| 36993 | if test "x$curl_disallow_siginterrupt" != "xyes"; then |
| 36994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 36995 | $as_echo "yes" >&6; } |
| 36996 | tst_allow_siginterrupt="yes" |
| 36997 | else |
| 36998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 36999 | $as_echo "no" >&6; } |
| 37000 | tst_allow_siginterrupt="no" |
| 37001 | fi |
| 37002 | fi |
| 37003 | # |
| 37004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5 |
| 37005 | $as_echo_n "checking if siginterrupt might be used... " >&6; } |
| 37006 | if test "$tst_links_siginterrupt" = "yes" && |
| 37007 | test "$tst_proto_siginterrupt" = "yes" && |
| 37008 | test "$tst_compi_siginterrupt" = "yes" && |
| 37009 | test "$tst_allow_siginterrupt" = "yes"; then |
| 37010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 37011 | $as_echo "yes" >&6; } |
| 37012 | |
| 37013 | cat >>confdefs.h <<_ACEOF |
| 37014 | #define HAVE_SIGINTERRUPT 1 |
| 37015 | _ACEOF |
| 37016 | |
| 37017 | curl_cv_func_siginterrupt="yes" |
| 37018 | else |
| 37019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 37020 | $as_echo "no" >&6; } |
| 37021 | curl_cv_func_siginterrupt="no" |
| 37022 | fi |
| 37023 | |
| 37024 | |
| 37025 | # |
| 37026 | tst_links_signal="unknown" |
| 37027 | tst_proto_signal="unknown" |
| 37028 | tst_compi_signal="unknown" |
| 37029 | tst_allow_signal="unknown" |
| 37030 | # |
| 37031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5 |
| 37032 | $as_echo_n "checking if signal can be linked... " >&6; } |
| 37033 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 37034 | /* end confdefs.h. */ |
| 37035 | |
| 37036 | |
| 37037 | #define signal innocuous_signal |
| 37038 | #ifdef __STDC__ |
| 37039 | # include <limits.h> |
| 37040 | #else |
| 37041 | # include <assert.h> |
| 37042 | #endif |
| 37043 | #undef signal |
| 37044 | #ifdef __cplusplus |
| 37045 | extern "C" |
| 37046 | #endif |
| 37047 | char signal (); |
| 37048 | #if defined __stub_signal || defined __stub___signal |
| 37049 | choke me |
| 37050 | #endif |
| 37051 | |
| 37052 | int main (void) |
| 37053 | { |
| 37054 | return signal (); |
| 37055 | ; |
| 37056 | return 0; |
| 37057 | } |
| 37058 | |
| 37059 | _ACEOF |
| 37060 | if ac_fn_c_try_link "$LINENO"; then : |
| 37061 | |
| 37062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 37063 | $as_echo "yes" >&6; } |
| 37064 | tst_links_signal="yes" |
| 37065 | |
| 37066 | else |
| 37067 | |
| 37068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 37069 | $as_echo "no" >&6; } |
| 37070 | tst_links_signal="no" |
| 37071 | |
| 37072 | fi |
| 37073 | rm -f core conftest.err conftest.$ac_objext \ |
| 37074 | conftest$ac_exeext conftest.$ac_ext |
| 37075 | # |
| 37076 | if test "$tst_links_signal" = "yes"; then |
| 37077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5 |
| 37078 | $as_echo_n "checking if signal is prototyped... " >&6; } |
| 37079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 37080 | /* end confdefs.h. */ |
| 37081 | |
| 37082 | $curl_includes_signal |
| 37083 | |
| 37084 | _ACEOF |
| 37085 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 37086 | $EGREP "signal" >/dev/null 2>&1; then : |
| 37087 | |
| 37088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 37089 | $as_echo "yes" >&6; } |
| 37090 | tst_proto_signal="yes" |
| 37091 | |
| 37092 | else |
| 37093 | |
| 37094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 37095 | $as_echo "no" >&6; } |
| 37096 | tst_proto_signal="no" |
| 37097 | |
| 37098 | fi |
| 37099 | rm -f conftest* |
| 37100 | |
| 37101 | fi |
| 37102 | # |
| 37103 | if test "$tst_proto_signal" = "yes"; then |
| 37104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5 |
| 37105 | $as_echo_n "checking if signal is compilable... " >&6; } |
| 37106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 37107 | /* end confdefs.h. */ |
| 37108 | |
| 37109 | |
| 37110 | $curl_includes_signal |
| 37111 | |
| 37112 | int main (void) |
| 37113 | { |
| 37114 | |
| 37115 | if(0 != signal(0, 0)) |
| 37116 | return 1; |
| 37117 | |
| 37118 | ; |
| 37119 | return 0; |
| 37120 | } |
| 37121 | |
| 37122 | _ACEOF |
| 37123 | if ac_fn_c_try_compile "$LINENO"; then : |
| 37124 | |
| 37125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 37126 | $as_echo "yes" >&6; } |
| 37127 | tst_compi_signal="yes" |
| 37128 | |
| 37129 | else |
| 37130 | |
| 37131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 37132 | $as_echo "no" >&6; } |
| 37133 | tst_compi_signal="no" |
| 37134 | |
| 37135 | fi |
| 37136 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 37137 | fi |
| 37138 | # |
| 37139 | if test "$tst_compi_signal" = "yes"; then |
| 37140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5 |
| 37141 | $as_echo_n "checking if signal usage allowed... " >&6; } |
| 37142 | if test "x$curl_disallow_signal" != "xyes"; then |
| 37143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 37144 | $as_echo "yes" >&6; } |
| 37145 | tst_allow_signal="yes" |
| 37146 | else |
| 37147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 37148 | $as_echo "no" >&6; } |
| 37149 | tst_allow_signal="no" |
| 37150 | fi |
| 37151 | fi |
| 37152 | # |
| 37153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5 |
| 37154 | $as_echo_n "checking if signal might be used... " >&6; } |
| 37155 | if test "$tst_links_signal" = "yes" && |
| 37156 | test "$tst_proto_signal" = "yes" && |
| 37157 | test "$tst_compi_signal" = "yes" && |
| 37158 | test "$tst_allow_signal" = "yes"; then |
| 37159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 37160 | $as_echo "yes" >&6; } |
| 37161 | |
| 37162 | cat >>confdefs.h <<_ACEOF |
| 37163 | #define HAVE_SIGNAL 1 |
| 37164 | _ACEOF |
| 37165 | |
| 37166 | curl_cv_func_signal="yes" |
| 37167 | else |
| 37168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 37169 | $as_echo "no" >&6; } |
| 37170 | curl_cv_func_signal="no" |
| 37171 | fi |
| 37172 | |
| 37173 | |
| 37174 | curl_includes_setjmp="\ |
| 37175 | /* includes start */ |
| 37176 | #ifdef HAVE_SYS_TYPES_H |
| 37177 | # include <sys/types.h> |
| 37178 | #endif |
| 37179 | #ifdef HAVE_SETJMP_H |
| 37180 | # include <setjmp.h> |
| 37181 | #endif |
| 37182 | /* includes end */" |
| 37183 | for ac_header in sys/types.h setjmp.h |
| 37184 | do : |
| 37185 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 37186 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp |
| 37187 | " |
| 37188 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 37189 | cat >>confdefs.h <<_ACEOF |
| 37190 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 37191 | _ACEOF |
| 37192 | |
| 37193 | fi |
| 37194 | |
| 37195 | done |
| 37196 | |
| 37197 | |
| 37198 | |
| 37199 | # |
| 37200 | tst_links_sigsetjmp="unknown" |
| 37201 | tst_macro_sigsetjmp="unknown" |
| 37202 | tst_proto_sigsetjmp="unknown" |
| 37203 | tst_compi_sigsetjmp="unknown" |
| 37204 | tst_allow_sigsetjmp="unknown" |
| 37205 | # |
| 37206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5 |
| 37207 | $as_echo_n "checking if sigsetjmp can be linked... " >&6; } |
| 37208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 37209 | /* end confdefs.h. */ |
| 37210 | |
| 37211 | |
| 37212 | #define sigsetjmp innocuous_sigsetjmp |
| 37213 | #ifdef __STDC__ |
| 37214 | # include <limits.h> |
| 37215 | #else |
| 37216 | # include <assert.h> |
| 37217 | #endif |
| 37218 | #undef sigsetjmp |
| 37219 | #ifdef __cplusplus |
| 37220 | extern "C" |
| 37221 | #endif |
| 37222 | char sigsetjmp (); |
| 37223 | #if defined __stub_sigsetjmp || defined __stub___sigsetjmp |
| 37224 | choke me |
| 37225 | #endif |
| 37226 | |
| 37227 | int main (void) |
| 37228 | { |
| 37229 | return sigsetjmp (); |
| 37230 | ; |
| 37231 | return 0; |
| 37232 | } |
| 37233 | |
| 37234 | _ACEOF |
| 37235 | if ac_fn_c_try_link "$LINENO"; then : |
| 37236 | |
| 37237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 37238 | $as_echo "yes" >&6; } |
| 37239 | tst_links_sigsetjmp="yes" |
| 37240 | |
| 37241 | else |
| 37242 | |
| 37243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 37244 | $as_echo "no" >&6; } |
| 37245 | tst_links_sigsetjmp="no" |
| 37246 | |
| 37247 | fi |
| 37248 | rm -f core conftest.err conftest.$ac_objext \ |
| 37249 | conftest$ac_exeext conftest.$ac_ext |
| 37250 | # |
| 37251 | if test "$tst_links_sigsetjmp" = "no"; then |
| 37252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5 |
| 37253 | $as_echo_n "checking if sigsetjmp seems a macro... " >&6; } |
| 37254 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 37255 | /* end confdefs.h. */ |
| 37256 | |
| 37257 | |
| 37258 | $curl_includes_setjmp |
| 37259 | |
| 37260 | int main (void) |
| 37261 | { |
| 37262 | |
| 37263 | sigjmp_buf env; |
| 37264 | if(0 != sigsetjmp(env, 0)) |
| 37265 | return 1; |
| 37266 | |
| 37267 | ; |
| 37268 | return 0; |
| 37269 | } |
| 37270 | |
| 37271 | _ACEOF |
| 37272 | if ac_fn_c_try_link "$LINENO"; then : |
| 37273 | |
| 37274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 37275 | $as_echo "yes" >&6; } |
| 37276 | tst_macro_sigsetjmp="yes" |
| 37277 | |
| 37278 | else |
| 37279 | |
| 37280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 37281 | $as_echo "no" >&6; } |
| 37282 | tst_macro_sigsetjmp="no" |
| 37283 | |
| 37284 | fi |
| 37285 | rm -f core conftest.err conftest.$ac_objext \ |
| 37286 | conftest$ac_exeext conftest.$ac_ext |
| 37287 | fi |
| 37288 | # |
| 37289 | if test "$tst_links_sigsetjmp" = "yes"; then |
| 37290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5 |
| 37291 | $as_echo_n "checking if sigsetjmp is prototyped... " >&6; } |
| 37292 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 37293 | /* end confdefs.h. */ |
| 37294 | |
| 37295 | $curl_includes_setjmp |
| 37296 | |
| 37297 | _ACEOF |
| 37298 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 37299 | $EGREP "sigsetjmp" >/dev/null 2>&1; then : |
| 37300 | |
| 37301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 37302 | $as_echo "yes" >&6; } |
| 37303 | tst_proto_sigsetjmp="yes" |
| 37304 | |
| 37305 | else |
| 37306 | |
| 37307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 37308 | $as_echo "no" >&6; } |
| 37309 | tst_proto_sigsetjmp="no" |
| 37310 | |
| 37311 | fi |
| 37312 | rm -f conftest* |
| 37313 | |
| 37314 | fi |
| 37315 | # |
| 37316 | if test "$tst_proto_sigsetjmp" = "yes" || |
| 37317 | test "$tst_macro_sigsetjmp" = "yes"; then |
| 37318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5 |
| 37319 | $as_echo_n "checking if sigsetjmp is compilable... " >&6; } |
| 37320 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 37321 | /* end confdefs.h. */ |
| 37322 | |
| 37323 | |
| 37324 | $curl_includes_setjmp |
| 37325 | |
| 37326 | int main (void) |
| 37327 | { |
| 37328 | |
| 37329 | sigjmp_buf env; |
| 37330 | if(0 != sigsetjmp(env, 0)) |
| 37331 | return 1; |
| 37332 | |
| 37333 | ; |
| 37334 | return 0; |
| 37335 | } |
| 37336 | |
| 37337 | _ACEOF |
| 37338 | if ac_fn_c_try_compile "$LINENO"; then : |
| 37339 | |
| 37340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 37341 | $as_echo "yes" >&6; } |
| 37342 | tst_compi_sigsetjmp="yes" |
| 37343 | |
| 37344 | else |
| 37345 | |
| 37346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 37347 | $as_echo "no" >&6; } |
| 37348 | tst_compi_sigsetjmp="no" |
| 37349 | |
| 37350 | fi |
| 37351 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 37352 | fi |
| 37353 | # |
| 37354 | if test "$tst_compi_sigsetjmp" = "yes"; then |
| 37355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5 |
| 37356 | $as_echo_n "checking if sigsetjmp usage allowed... " >&6; } |
| 37357 | if test "x$curl_disallow_sigsetjmp" != "xyes"; then |
| 37358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 37359 | $as_echo "yes" >&6; } |
| 37360 | tst_allow_sigsetjmp="yes" |
| 37361 | else |
| 37362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 37363 | $as_echo "no" >&6; } |
| 37364 | tst_allow_sigsetjmp="no" |
| 37365 | fi |
| 37366 | fi |
| 37367 | # |
| 37368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5 |
| 37369 | $as_echo_n "checking if sigsetjmp might be used... " >&6; } |
| 37370 | if (test "$tst_proto_sigsetjmp" = "yes" || |
| 37371 | test "$tst_macro_sigsetjmp" = "yes") && |
| 37372 | test "$tst_compi_sigsetjmp" = "yes" && |
| 37373 | test "$tst_allow_sigsetjmp" = "yes"; then |
| 37374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 37375 | $as_echo "yes" >&6; } |
| 37376 | |
| 37377 | cat >>confdefs.h <<_ACEOF |
| 37378 | #define HAVE_SIGSETJMP 1 |
| 37379 | _ACEOF |
| 37380 | |
| 37381 | curl_cv_func_sigsetjmp="yes" |
| 37382 | else |
| 37383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 37384 | $as_echo "no" >&6; } |
| 37385 | curl_cv_func_sigsetjmp="no" |
| 37386 | fi |
| 37387 | |
| 37388 | |
| 37389 | # |
| 37390 | tst_links_socket="unknown" |
| 37391 | tst_proto_socket="unknown" |
| 37392 | tst_compi_socket="unknown" |
| 37393 | tst_allow_socket="unknown" |
| 37394 | # |
| 37395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5 |
| 37396 | $as_echo_n "checking if socket can be linked... " >&6; } |
| 37397 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 37398 | /* end confdefs.h. */ |
| 37399 | |
| 37400 | |
| 37401 | $curl_includes_winsock2 |
| 37402 | $curl_includes_sys_socket |
| 37403 | $curl_includes_socket |
| 37404 | |
| 37405 | int main (void) |
| 37406 | { |
| 37407 | |
| 37408 | if(0 != socket(0, 0, 0)) |
| 37409 | return 1; |
| 37410 | |
| 37411 | ; |
| 37412 | return 0; |
| 37413 | } |
| 37414 | |
| 37415 | _ACEOF |
| 37416 | if ac_fn_c_try_link "$LINENO"; then : |
| 37417 | |
| 37418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 37419 | $as_echo "yes" >&6; } |
| 37420 | tst_links_socket="yes" |
| 37421 | |
| 37422 | else |
| 37423 | |
| 37424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 37425 | $as_echo "no" >&6; } |
| 37426 | tst_links_socket="no" |
| 37427 | |
| 37428 | fi |
| 37429 | rm -f core conftest.err conftest.$ac_objext \ |
| 37430 | conftest$ac_exeext conftest.$ac_ext |
| 37431 | # |
| 37432 | if test "$tst_links_socket" = "yes"; then |
| 37433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5 |
| 37434 | $as_echo_n "checking if socket is prototyped... " >&6; } |
| 37435 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 37436 | /* end confdefs.h. */ |
| 37437 | |
| 37438 | $curl_includes_winsock2 |
| 37439 | $curl_includes_sys_socket |
| 37440 | $curl_includes_socket |
| 37441 | |
| 37442 | _ACEOF |
| 37443 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 37444 | $EGREP "socket" >/dev/null 2>&1; then : |
| 37445 | |
| 37446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 37447 | $as_echo "yes" >&6; } |
| 37448 | tst_proto_socket="yes" |
| 37449 | |
| 37450 | else |
| 37451 | |
| 37452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 37453 | $as_echo "no" >&6; } |
| 37454 | tst_proto_socket="no" |
| 37455 | |
| 37456 | fi |
| 37457 | rm -f conftest* |
| 37458 | |
| 37459 | fi |
| 37460 | # |
| 37461 | if test "$tst_proto_socket" = "yes"; then |
| 37462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5 |
| 37463 | $as_echo_n "checking if socket is compilable... " >&6; } |
| 37464 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 37465 | /* end confdefs.h. */ |
| 37466 | |
| 37467 | |
| 37468 | $curl_includes_winsock2 |
| 37469 | $curl_includes_sys_socket |
| 37470 | $curl_includes_socket |
| 37471 | |
| 37472 | int main (void) |
| 37473 | { |
| 37474 | |
| 37475 | if(0 != socket(0, 0, 0)) |
| 37476 | return 1; |
| 37477 | |
| 37478 | ; |
| 37479 | return 0; |
| 37480 | } |
| 37481 | |
| 37482 | _ACEOF |
| 37483 | if ac_fn_c_try_compile "$LINENO"; then : |
| 37484 | |
| 37485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 37486 | $as_echo "yes" >&6; } |
| 37487 | tst_compi_socket="yes" |
| 37488 | |
| 37489 | else |
| 37490 | |
| 37491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 37492 | $as_echo "no" >&6; } |
| 37493 | tst_compi_socket="no" |
| 37494 | |
| 37495 | fi |
| 37496 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 37497 | fi |
| 37498 | # |
| 37499 | if test "$tst_compi_socket" = "yes"; then |
| 37500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5 |
| 37501 | $as_echo_n "checking if socket usage allowed... " >&6; } |
| 37502 | if test "x$curl_disallow_socket" != "xyes"; then |
| 37503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 37504 | $as_echo "yes" >&6; } |
| 37505 | tst_allow_socket="yes" |
| 37506 | else |
| 37507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 37508 | $as_echo "no" >&6; } |
| 37509 | tst_allow_socket="no" |
| 37510 | fi |
| 37511 | fi |
| 37512 | # |
| 37513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5 |
| 37514 | $as_echo_n "checking if socket might be used... " >&6; } |
| 37515 | if test "$tst_links_socket" = "yes" && |
| 37516 | test "$tst_proto_socket" = "yes" && |
| 37517 | test "$tst_compi_socket" = "yes" && |
| 37518 | test "$tst_allow_socket" = "yes"; then |
| 37519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 37520 | $as_echo "yes" >&6; } |
| 37521 | |
| 37522 | cat >>confdefs.h <<_ACEOF |
| 37523 | #define HAVE_SOCKET 1 |
| 37524 | _ACEOF |
| 37525 | |
| 37526 | curl_cv_func_socket="yes" |
| 37527 | else |
| 37528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 37529 | $as_echo "no" >&6; } |
| 37530 | curl_cv_func_socket="no" |
| 37531 | fi |
| 37532 | |
| 37533 | |
| 37534 | # |
| 37535 | tst_links_socketpair="unknown" |
| 37536 | tst_proto_socketpair="unknown" |
| 37537 | tst_compi_socketpair="unknown" |
| 37538 | tst_allow_socketpair="unknown" |
| 37539 | # |
| 37540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5 |
| 37541 | $as_echo_n "checking if socketpair can be linked... " >&6; } |
| 37542 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 37543 | /* end confdefs.h. */ |
| 37544 | |
| 37545 | |
| 37546 | #define socketpair innocuous_socketpair |
| 37547 | #ifdef __STDC__ |
| 37548 | # include <limits.h> |
| 37549 | #else |
| 37550 | # include <assert.h> |
| 37551 | #endif |
| 37552 | #undef socketpair |
| 37553 | #ifdef __cplusplus |
| 37554 | extern "C" |
| 37555 | #endif |
| 37556 | char socketpair (); |
| 37557 | #if defined __stub_socketpair || defined __stub___socketpair |
| 37558 | choke me |
| 37559 | #endif |
| 37560 | |
| 37561 | int main (void) |
| 37562 | { |
| 37563 | return socketpair (); |
| 37564 | ; |
| 37565 | return 0; |
| 37566 | } |
| 37567 | |
| 37568 | _ACEOF |
| 37569 | if ac_fn_c_try_link "$LINENO"; then : |
| 37570 | |
| 37571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 37572 | $as_echo "yes" >&6; } |
| 37573 | tst_links_socketpair="yes" |
| 37574 | |
| 37575 | else |
| 37576 | |
| 37577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 37578 | $as_echo "no" >&6; } |
| 37579 | tst_links_socketpair="no" |
| 37580 | |
| 37581 | fi |
| 37582 | rm -f core conftest.err conftest.$ac_objext \ |
| 37583 | conftest$ac_exeext conftest.$ac_ext |
| 37584 | # |
| 37585 | if test "$tst_links_socketpair" = "yes"; then |
| 37586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5 |
| 37587 | $as_echo_n "checking if socketpair is prototyped... " >&6; } |
| 37588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 37589 | /* end confdefs.h. */ |
| 37590 | |
| 37591 | $curl_includes_sys_socket |
| 37592 | $curl_includes_socket |
| 37593 | |
| 37594 | _ACEOF |
| 37595 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 37596 | $EGREP "socketpair" >/dev/null 2>&1; then : |
| 37597 | |
| 37598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 37599 | $as_echo "yes" >&6; } |
| 37600 | tst_proto_socketpair="yes" |
| 37601 | |
| 37602 | else |
| 37603 | |
| 37604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 37605 | $as_echo "no" >&6; } |
| 37606 | tst_proto_socketpair="no" |
| 37607 | |
| 37608 | fi |
| 37609 | rm -f conftest* |
| 37610 | |
| 37611 | fi |
| 37612 | # |
| 37613 | if test "$tst_proto_socketpair" = "yes"; then |
| 37614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5 |
| 37615 | $as_echo_n "checking if socketpair is compilable... " >&6; } |
| 37616 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 37617 | /* end confdefs.h. */ |
| 37618 | |
| 37619 | |
| 37620 | $curl_includes_sys_socket |
| 37621 | $curl_includes_socket |
| 37622 | |
| 37623 | int main (void) |
| 37624 | { |
| 37625 | |
| 37626 | int sv[2]; |
| 37627 | if(0 != socketpair(0, 0, 0, sv)) |
| 37628 | return 1; |
| 37629 | |
| 37630 | ; |
| 37631 | return 0; |
| 37632 | } |
| 37633 | |
| 37634 | _ACEOF |
| 37635 | if ac_fn_c_try_compile "$LINENO"; then : |
| 37636 | |
| 37637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 37638 | $as_echo "yes" >&6; } |
| 37639 | tst_compi_socketpair="yes" |
| 37640 | |
| 37641 | else |
| 37642 | |
| 37643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 37644 | $as_echo "no" >&6; } |
| 37645 | tst_compi_socketpair="no" |
| 37646 | |
| 37647 | fi |
| 37648 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 37649 | fi |
| 37650 | # |
| 37651 | if test "$tst_compi_socketpair" = "yes"; then |
| 37652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5 |
| 37653 | $as_echo_n "checking if socketpair usage allowed... " >&6; } |
| 37654 | if test "x$curl_disallow_socketpair" != "xyes"; then |
| 37655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 37656 | $as_echo "yes" >&6; } |
| 37657 | tst_allow_socketpair="yes" |
| 37658 | else |
| 37659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 37660 | $as_echo "no" >&6; } |
| 37661 | tst_allow_socketpair="no" |
| 37662 | fi |
| 37663 | fi |
| 37664 | # |
| 37665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5 |
| 37666 | $as_echo_n "checking if socketpair might be used... " >&6; } |
| 37667 | if test "$tst_links_socketpair" = "yes" && |
| 37668 | test "$tst_proto_socketpair" = "yes" && |
| 37669 | test "$tst_compi_socketpair" = "yes" && |
| 37670 | test "$tst_allow_socketpair" = "yes"; then |
| 37671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 37672 | $as_echo "yes" >&6; } |
| 37673 | |
| 37674 | cat >>confdefs.h <<_ACEOF |
| 37675 | #define HAVE_SOCKETPAIR 1 |
| 37676 | _ACEOF |
| 37677 | |
| 37678 | curl_cv_func_socketpair="yes" |
| 37679 | else |
| 37680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 37681 | $as_echo "no" >&6; } |
| 37682 | curl_cv_func_socketpair="no" |
| 37683 | fi |
| 37684 | |
| 37685 | |
| 37686 | # |
| 37687 | tst_links_strcasecmp="unknown" |
| 37688 | tst_proto_strcasecmp="unknown" |
| 37689 | tst_compi_strcasecmp="unknown" |
| 37690 | tst_allow_strcasecmp="unknown" |
| 37691 | # |
| 37692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5 |
| 37693 | $as_echo_n "checking if strcasecmp can be linked... " >&6; } |
| 37694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 37695 | /* end confdefs.h. */ |
| 37696 | |
| 37697 | |
| 37698 | #define strcasecmp innocuous_strcasecmp |
| 37699 | #ifdef __STDC__ |
| 37700 | # include <limits.h> |
| 37701 | #else |
| 37702 | # include <assert.h> |
| 37703 | #endif |
| 37704 | #undef strcasecmp |
| 37705 | #ifdef __cplusplus |
| 37706 | extern "C" |
| 37707 | #endif |
| 37708 | char strcasecmp (); |
| 37709 | #if defined __stub_strcasecmp || defined __stub___strcasecmp |
| 37710 | choke me |
| 37711 | #endif |
| 37712 | |
| 37713 | int main (void) |
| 37714 | { |
| 37715 | return strcasecmp (); |
| 37716 | ; |
| 37717 | return 0; |
| 37718 | } |
| 37719 | |
| 37720 | _ACEOF |
| 37721 | if ac_fn_c_try_link "$LINENO"; then : |
| 37722 | |
| 37723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 37724 | $as_echo "yes" >&6; } |
| 37725 | tst_links_strcasecmp="yes" |
| 37726 | |
| 37727 | else |
| 37728 | |
| 37729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 37730 | $as_echo "no" >&6; } |
| 37731 | tst_links_strcasecmp="no" |
| 37732 | |
| 37733 | fi |
| 37734 | rm -f core conftest.err conftest.$ac_objext \ |
| 37735 | conftest$ac_exeext conftest.$ac_ext |
| 37736 | # |
| 37737 | if test "$tst_links_strcasecmp" = "yes"; then |
| 37738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5 |
| 37739 | $as_echo_n "checking if strcasecmp is prototyped... " >&6; } |
| 37740 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 37741 | /* end confdefs.h. */ |
| 37742 | |
| 37743 | $curl_includes_string |
| 37744 | |
| 37745 | _ACEOF |
| 37746 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 37747 | $EGREP "strcasecmp" >/dev/null 2>&1; then : |
| 37748 | |
| 37749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 37750 | $as_echo "yes" >&6; } |
| 37751 | tst_proto_strcasecmp="yes" |
| 37752 | |
| 37753 | else |
| 37754 | |
| 37755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 37756 | $as_echo "no" >&6; } |
| 37757 | tst_proto_strcasecmp="no" |
| 37758 | |
| 37759 | fi |
| 37760 | rm -f conftest* |
| 37761 | |
| 37762 | fi |
| 37763 | # |
| 37764 | if test "$tst_proto_strcasecmp" = "yes"; then |
| 37765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5 |
| 37766 | $as_echo_n "checking if strcasecmp is compilable... " >&6; } |
| 37767 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 37768 | /* end confdefs.h. */ |
| 37769 | |
| 37770 | |
| 37771 | $curl_includes_string |
| 37772 | |
| 37773 | int main (void) |
| 37774 | { |
| 37775 | |
| 37776 | if(0 != strcasecmp(0, 0)) |
| 37777 | return 1; |
| 37778 | |
| 37779 | ; |
| 37780 | return 0; |
| 37781 | } |
| 37782 | |
| 37783 | _ACEOF |
| 37784 | if ac_fn_c_try_compile "$LINENO"; then : |
| 37785 | |
| 37786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 37787 | $as_echo "yes" >&6; } |
| 37788 | tst_compi_strcasecmp="yes" |
| 37789 | |
| 37790 | else |
| 37791 | |
| 37792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 37793 | $as_echo "no" >&6; } |
| 37794 | tst_compi_strcasecmp="no" |
| 37795 | |
| 37796 | fi |
| 37797 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 37798 | fi |
| 37799 | # |
| 37800 | if test "$tst_compi_strcasecmp" = "yes"; then |
| 37801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5 |
| 37802 | $as_echo_n "checking if strcasecmp usage allowed... " >&6; } |
| 37803 | if test "x$curl_disallow_strcasecmp" != "xyes"; then |
| 37804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 37805 | $as_echo "yes" >&6; } |
| 37806 | tst_allow_strcasecmp="yes" |
| 37807 | else |
| 37808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 37809 | $as_echo "no" >&6; } |
| 37810 | tst_allow_strcasecmp="no" |
| 37811 | fi |
| 37812 | fi |
| 37813 | # |
| 37814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5 |
| 37815 | $as_echo_n "checking if strcasecmp might be used... " >&6; } |
| 37816 | if test "$tst_links_strcasecmp" = "yes" && |
| 37817 | test "$tst_proto_strcasecmp" = "yes" && |
| 37818 | test "$tst_compi_strcasecmp" = "yes" && |
| 37819 | test "$tst_allow_strcasecmp" = "yes"; then |
| 37820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 37821 | $as_echo "yes" >&6; } |
| 37822 | |
| 37823 | cat >>confdefs.h <<_ACEOF |
| 37824 | #define HAVE_STRCASECMP 1 |
| 37825 | _ACEOF |
| 37826 | |
| 37827 | curl_cv_func_strcasecmp="yes" |
| 37828 | else |
| 37829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 37830 | $as_echo "no" >&6; } |
| 37831 | curl_cv_func_strcasecmp="no" |
| 37832 | fi |
| 37833 | |
| 37834 | |
| 37835 | # |
| 37836 | tst_links_strcmpi="unknown" |
| 37837 | tst_proto_strcmpi="unknown" |
| 37838 | tst_compi_strcmpi="unknown" |
| 37839 | tst_allow_strcmpi="unknown" |
| 37840 | # |
| 37841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5 |
| 37842 | $as_echo_n "checking if strcmpi can be linked... " >&6; } |
| 37843 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 37844 | /* end confdefs.h. */ |
| 37845 | |
| 37846 | |
| 37847 | #define strcmpi innocuous_strcmpi |
| 37848 | #ifdef __STDC__ |
| 37849 | # include <limits.h> |
| 37850 | #else |
| 37851 | # include <assert.h> |
| 37852 | #endif |
| 37853 | #undef strcmpi |
| 37854 | #ifdef __cplusplus |
| 37855 | extern "C" |
| 37856 | #endif |
| 37857 | char strcmpi (); |
| 37858 | #if defined __stub_strcmpi || defined __stub___strcmpi |
| 37859 | choke me |
| 37860 | #endif |
| 37861 | |
| 37862 | int main (void) |
| 37863 | { |
| 37864 | return strcmpi (); |
| 37865 | ; |
| 37866 | return 0; |
| 37867 | } |
| 37868 | |
| 37869 | _ACEOF |
| 37870 | if ac_fn_c_try_link "$LINENO"; then : |
| 37871 | |
| 37872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 37873 | $as_echo "yes" >&6; } |
| 37874 | tst_links_strcmpi="yes" |
| 37875 | |
| 37876 | else |
| 37877 | |
| 37878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 37879 | $as_echo "no" >&6; } |
| 37880 | tst_links_strcmpi="no" |
| 37881 | |
| 37882 | fi |
| 37883 | rm -f core conftest.err conftest.$ac_objext \ |
| 37884 | conftest$ac_exeext conftest.$ac_ext |
| 37885 | # |
| 37886 | if test "$tst_links_strcmpi" = "yes"; then |
| 37887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5 |
| 37888 | $as_echo_n "checking if strcmpi is prototyped... " >&6; } |
| 37889 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 37890 | /* end confdefs.h. */ |
| 37891 | |
| 37892 | $curl_includes_string |
| 37893 | |
| 37894 | _ACEOF |
| 37895 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 37896 | $EGREP "strcmpi" >/dev/null 2>&1; then : |
| 37897 | |
| 37898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 37899 | $as_echo "yes" >&6; } |
| 37900 | tst_proto_strcmpi="yes" |
| 37901 | |
| 37902 | else |
| 37903 | |
| 37904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 37905 | $as_echo "no" >&6; } |
| 37906 | tst_proto_strcmpi="no" |
| 37907 | |
| 37908 | fi |
| 37909 | rm -f conftest* |
| 37910 | |
| 37911 | fi |
| 37912 | # |
| 37913 | if test "$tst_proto_strcmpi" = "yes"; then |
| 37914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5 |
| 37915 | $as_echo_n "checking if strcmpi is compilable... " >&6; } |
| 37916 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 37917 | /* end confdefs.h. */ |
| 37918 | |
| 37919 | |
| 37920 | $curl_includes_string |
| 37921 | |
| 37922 | int main (void) |
| 37923 | { |
| 37924 | |
| 37925 | if(0 != strcmpi(0, 0)) |
| 37926 | return 1; |
| 37927 | |
| 37928 | ; |
| 37929 | return 0; |
| 37930 | } |
| 37931 | |
| 37932 | _ACEOF |
| 37933 | if ac_fn_c_try_compile "$LINENO"; then : |
| 37934 | |
| 37935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 37936 | $as_echo "yes" >&6; } |
| 37937 | tst_compi_strcmpi="yes" |
| 37938 | |
| 37939 | else |
| 37940 | |
| 37941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 37942 | $as_echo "no" >&6; } |
| 37943 | tst_compi_strcmpi="no" |
| 37944 | |
| 37945 | fi |
| 37946 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 37947 | fi |
| 37948 | # |
| 37949 | if test "$tst_compi_strcmpi" = "yes"; then |
| 37950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5 |
| 37951 | $as_echo_n "checking if strcmpi usage allowed... " >&6; } |
| 37952 | if test "x$curl_disallow_strcmpi" != "xyes"; then |
| 37953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 37954 | $as_echo "yes" >&6; } |
| 37955 | tst_allow_strcmpi="yes" |
| 37956 | else |
| 37957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 37958 | $as_echo "no" >&6; } |
| 37959 | tst_allow_strcmpi="no" |
| 37960 | fi |
| 37961 | fi |
| 37962 | # |
| 37963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5 |
| 37964 | $as_echo_n "checking if strcmpi might be used... " >&6; } |
| 37965 | if test "$tst_links_strcmpi" = "yes" && |
| 37966 | test "$tst_proto_strcmpi" = "yes" && |
| 37967 | test "$tst_compi_strcmpi" = "yes" && |
| 37968 | test "$tst_allow_strcmpi" = "yes"; then |
| 37969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 37970 | $as_echo "yes" >&6; } |
| 37971 | |
| 37972 | cat >>confdefs.h <<_ACEOF |
| 37973 | #define HAVE_STRCMPI 1 |
| 37974 | _ACEOF |
| 37975 | |
| 37976 | curl_cv_func_strcmpi="yes" |
| 37977 | else |
| 37978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 37979 | $as_echo "no" >&6; } |
| 37980 | curl_cv_func_strcmpi="no" |
| 37981 | fi |
| 37982 | |
| 37983 | |
| 37984 | # |
| 37985 | tst_links_strdup="unknown" |
| 37986 | tst_proto_strdup="unknown" |
| 37987 | tst_compi_strdup="unknown" |
| 37988 | tst_allow_strdup="unknown" |
| 37989 | # |
| 37990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5 |
| 37991 | $as_echo_n "checking if strdup can be linked... " >&6; } |
| 37992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 37993 | /* end confdefs.h. */ |
| 37994 | |
| 37995 | |
| 37996 | #define strdup innocuous_strdup |
| 37997 | #ifdef __STDC__ |
| 37998 | # include <limits.h> |
| 37999 | #else |
| 38000 | # include <assert.h> |
| 38001 | #endif |
| 38002 | #undef strdup |
| 38003 | #ifdef __cplusplus |
| 38004 | extern "C" |
| 38005 | #endif |
| 38006 | char strdup (); |
| 38007 | #if defined __stub_strdup || defined __stub___strdup |
| 38008 | choke me |
| 38009 | #endif |
| 38010 | |
| 38011 | int main (void) |
| 38012 | { |
| 38013 | return strdup (); |
| 38014 | ; |
| 38015 | return 0; |
| 38016 | } |
| 38017 | |
| 38018 | _ACEOF |
| 38019 | if ac_fn_c_try_link "$LINENO"; then : |
| 38020 | |
| 38021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 38022 | $as_echo "yes" >&6; } |
| 38023 | tst_links_strdup="yes" |
| 38024 | |
| 38025 | else |
| 38026 | |
| 38027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 38028 | $as_echo "no" >&6; } |
| 38029 | tst_links_strdup="no" |
| 38030 | |
| 38031 | fi |
| 38032 | rm -f core conftest.err conftest.$ac_objext \ |
| 38033 | conftest$ac_exeext conftest.$ac_ext |
| 38034 | # |
| 38035 | if test "$tst_links_strdup" = "yes"; then |
| 38036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5 |
| 38037 | $as_echo_n "checking if strdup is prototyped... " >&6; } |
| 38038 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 38039 | /* end confdefs.h. */ |
| 38040 | |
| 38041 | $curl_includes_string |
| 38042 | |
| 38043 | _ACEOF |
| 38044 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 38045 | $EGREP "strdup" >/dev/null 2>&1; then : |
| 38046 | |
| 38047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 38048 | $as_echo "yes" >&6; } |
| 38049 | tst_proto_strdup="yes" |
| 38050 | |
| 38051 | else |
| 38052 | |
| 38053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 38054 | $as_echo "no" >&6; } |
| 38055 | tst_proto_strdup="no" |
| 38056 | |
| 38057 | fi |
| 38058 | rm -f conftest* |
| 38059 | |
| 38060 | fi |
| 38061 | # |
| 38062 | if test "$tst_proto_strdup" = "yes"; then |
| 38063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5 |
| 38064 | $as_echo_n "checking if strdup is compilable... " >&6; } |
| 38065 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 38066 | /* end confdefs.h. */ |
| 38067 | |
| 38068 | |
| 38069 | $curl_includes_string |
| 38070 | |
| 38071 | int main (void) |
| 38072 | { |
| 38073 | |
| 38074 | if(0 != strdup(0)) |
| 38075 | return 1; |
| 38076 | |
| 38077 | ; |
| 38078 | return 0; |
| 38079 | } |
| 38080 | |
| 38081 | _ACEOF |
| 38082 | if ac_fn_c_try_compile "$LINENO"; then : |
| 38083 | |
| 38084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 38085 | $as_echo "yes" >&6; } |
| 38086 | tst_compi_strdup="yes" |
| 38087 | |
| 38088 | else |
| 38089 | |
| 38090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 38091 | $as_echo "no" >&6; } |
| 38092 | tst_compi_strdup="no" |
| 38093 | |
| 38094 | fi |
| 38095 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 38096 | fi |
| 38097 | # |
| 38098 | if test "$tst_compi_strdup" = "yes"; then |
| 38099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5 |
| 38100 | $as_echo_n "checking if strdup usage allowed... " >&6; } |
| 38101 | if test "x$curl_disallow_strdup" != "xyes"; then |
| 38102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 38103 | $as_echo "yes" >&6; } |
| 38104 | tst_allow_strdup="yes" |
| 38105 | else |
| 38106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 38107 | $as_echo "no" >&6; } |
| 38108 | tst_allow_strdup="no" |
| 38109 | fi |
| 38110 | fi |
| 38111 | # |
| 38112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5 |
| 38113 | $as_echo_n "checking if strdup might be used... " >&6; } |
| 38114 | if test "$tst_links_strdup" = "yes" && |
| 38115 | test "$tst_proto_strdup" = "yes" && |
| 38116 | test "$tst_compi_strdup" = "yes" && |
| 38117 | test "$tst_allow_strdup" = "yes"; then |
| 38118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 38119 | $as_echo "yes" >&6; } |
| 38120 | |
| 38121 | cat >>confdefs.h <<_ACEOF |
| 38122 | #define HAVE_STRDUP 1 |
| 38123 | _ACEOF |
| 38124 | |
| 38125 | curl_cv_func_strdup="yes" |
| 38126 | else |
| 38127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 38128 | $as_echo "no" >&6; } |
| 38129 | curl_cv_func_strdup="no" |
| 38130 | fi |
| 38131 | |
| 38132 | |
| 38133 | # |
| 38134 | tst_links_strerror_r="unknown" |
| 38135 | tst_proto_strerror_r="unknown" |
| 38136 | tst_compi_strerror_r="unknown" |
| 38137 | tst_glibc_strerror_r="unknown" |
| 38138 | tst_posix_strerror_r="unknown" |
| 38139 | tst_allow_strerror_r="unknown" |
| 38140 | tst_works_glibc_strerror_r="unknown" |
| 38141 | tst_works_posix_strerror_r="unknown" |
| 38142 | tst_glibc_strerror_r_type_arg3="unknown" |
| 38143 | tst_posix_strerror_r_type_arg3="unknown" |
| 38144 | # |
| 38145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5 |
| 38146 | $as_echo_n "checking if strerror_r can be linked... " >&6; } |
| 38147 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 38148 | /* end confdefs.h. */ |
| 38149 | |
| 38150 | |
| 38151 | #define strerror_r innocuous_strerror_r |
| 38152 | #ifdef __STDC__ |
| 38153 | # include <limits.h> |
| 38154 | #else |
| 38155 | # include <assert.h> |
| 38156 | #endif |
| 38157 | #undef strerror_r |
| 38158 | #ifdef __cplusplus |
| 38159 | extern "C" |
| 38160 | #endif |
| 38161 | char strerror_r (); |
| 38162 | #if defined __stub_strerror_r || defined __stub___strerror_r |
| 38163 | choke me |
| 38164 | #endif |
| 38165 | |
| 38166 | int main (void) |
| 38167 | { |
| 38168 | return strerror_r (); |
| 38169 | ; |
| 38170 | return 0; |
| 38171 | } |
| 38172 | |
| 38173 | _ACEOF |
| 38174 | if ac_fn_c_try_link "$LINENO"; then : |
| 38175 | |
| 38176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 38177 | $as_echo "yes" >&6; } |
| 38178 | tst_links_strerror_r="yes" |
| 38179 | |
| 38180 | else |
| 38181 | |
| 38182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 38183 | $as_echo "no" >&6; } |
| 38184 | tst_links_strerror_r="no" |
| 38185 | |
| 38186 | fi |
| 38187 | rm -f core conftest.err conftest.$ac_objext \ |
| 38188 | conftest$ac_exeext conftest.$ac_ext |
| 38189 | # |
| 38190 | if test "$tst_links_strerror_r" = "yes"; then |
| 38191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5 |
| 38192 | $as_echo_n "checking if strerror_r is prototyped... " >&6; } |
| 38193 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 38194 | /* end confdefs.h. */ |
| 38195 | |
| 38196 | $curl_includes_string |
| 38197 | |
| 38198 | _ACEOF |
| 38199 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 38200 | $EGREP "strerror_r" >/dev/null 2>&1; then : |
| 38201 | |
| 38202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 38203 | $as_echo "yes" >&6; } |
| 38204 | tst_proto_strerror_r="yes" |
| 38205 | |
| 38206 | else |
| 38207 | |
| 38208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 38209 | $as_echo "no" >&6; } |
| 38210 | tst_proto_strerror_r="no" |
| 38211 | |
| 38212 | fi |
| 38213 | rm -f conftest* |
| 38214 | |
| 38215 | fi |
| 38216 | # |
| 38217 | if test "$tst_proto_strerror_r" = "yes"; then |
| 38218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5 |
| 38219 | $as_echo_n "checking if strerror_r is compilable... " >&6; } |
| 38220 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 38221 | /* end confdefs.h. */ |
| 38222 | |
| 38223 | |
| 38224 | $curl_includes_string |
| 38225 | |
| 38226 | int main (void) |
| 38227 | { |
| 38228 | |
| 38229 | if(0 != strerror_r(0, 0, 0)) |
| 38230 | return 1; |
| 38231 | |
| 38232 | ; |
| 38233 | return 0; |
| 38234 | } |
| 38235 | |
| 38236 | _ACEOF |
| 38237 | if ac_fn_c_try_compile "$LINENO"; then : |
| 38238 | |
| 38239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 38240 | $as_echo "yes" >&6; } |
| 38241 | tst_compi_strerror_r="yes" |
| 38242 | |
| 38243 | else |
| 38244 | |
| 38245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 38246 | $as_echo "no" >&6; } |
| 38247 | tst_compi_strerror_r="no" |
| 38248 | |
| 38249 | fi |
| 38250 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 38251 | fi |
| 38252 | # |
| 38253 | if test "$tst_compi_strerror_r" = "yes"; then |
| 38254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5 |
| 38255 | $as_echo_n "checking if strerror_r is glibc like... " >&6; } |
| 38256 | tst_glibc_strerror_r_type_arg3="unknown" |
| 38257 | for arg3 in 'size_t' 'int' 'unsigned int'; do |
| 38258 | if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then |
| 38259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 38260 | /* end confdefs.h. */ |
| 38261 | |
| 38262 | |
| 38263 | $curl_includes_string |
| 38264 | char *strerror_r(int errnum, char *workbuf, $arg3 bufsize); |
| 38265 | |
| 38266 | int main (void) |
| 38267 | { |
| 38268 | |
| 38269 | if(0 != strerror_r(0, 0, 0)) |
| 38270 | return 1; |
| 38271 | |
| 38272 | ; |
| 38273 | return 0; |
| 38274 | } |
| 38275 | |
| 38276 | _ACEOF |
| 38277 | if ac_fn_c_try_compile "$LINENO"; then : |
| 38278 | |
| 38279 | tst_glibc_strerror_r_type_arg3="$arg3" |
| 38280 | |
| 38281 | fi |
| 38282 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 38283 | fi |
| 38284 | done |
| 38285 | case "$tst_glibc_strerror_r_type_arg3" in |
| 38286 | unknown) |
| 38287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 38288 | $as_echo "no" >&6; } |
| 38289 | tst_glibc_strerror_r="no" |
| 38290 | ;; |
| 38291 | *) |
| 38292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 38293 | $as_echo "yes" >&6; } |
| 38294 | tst_glibc_strerror_r="yes" |
| 38295 | ;; |
| 38296 | esac |
| 38297 | fi |
| 38298 | # |
| 38299 | if test "x$cross_compiling" != "xyes" && |
| 38300 | test "$tst_glibc_strerror_r" = "yes"; then |
| 38301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5 |
| 38302 | $as_echo_n "checking if strerror_r seems to work... " >&6; } |
| 38303 | if test "$cross_compiling" = yes; then : |
| 38304 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 38305 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 38306 | as_fn_error $? "cannot run test program while cross compiling |
| 38307 | See \`config.log' for more details" "$LINENO" 5; } |
| 38308 | else |
| 38309 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 38310 | /* end confdefs.h. */ |
| 38311 | |
| 38312 | |
| 38313 | $curl_includes_stdlib |
| 38314 | $curl_includes_string |
| 38315 | # include <errno.h> |
| 38316 | |
| 38317 | int main (void) |
| 38318 | { |
| 38319 | |
| 38320 | char buffer[1024]; |
| 38321 | char *string = 0; |
| 38322 | buffer[0] = '\0'; |
| 38323 | string = strerror_r(EACCES, buffer, sizeof(buffer)); |
| 38324 | if(!string) |
| 38325 | exit(1); /* fail */ |
| 38326 | if(!string[0]) |
| 38327 | exit(1); /* fail */ |
| 38328 | else |
| 38329 | exit(0); |
| 38330 | |
| 38331 | ; |
| 38332 | return 0; |
| 38333 | } |
| 38334 | |
| 38335 | _ACEOF |
| 38336 | if ac_fn_c_try_run "$LINENO"; then : |
| 38337 | |
| 38338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 38339 | $as_echo "yes" >&6; } |
| 38340 | tst_works_glibc_strerror_r="yes" |
| 38341 | |
| 38342 | else |
| 38343 | |
| 38344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 38345 | $as_echo "no" >&6; } |
| 38346 | tst_works_glibc_strerror_r="no" |
| 38347 | |
| 38348 | fi |
| 38349 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 38350 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 38351 | fi |
| 38352 | |
| 38353 | fi |
| 38354 | # |
| 38355 | if test "$tst_compi_strerror_r" = "yes" && |
| 38356 | test "$tst_works_glibc_strerror_r" != "yes"; then |
| 38357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5 |
| 38358 | $as_echo_n "checking if strerror_r is POSIX like... " >&6; } |
| 38359 | tst_posix_strerror_r_type_arg3="unknown" |
| 38360 | for arg3 in 'size_t' 'int' 'unsigned int'; do |
| 38361 | if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then |
| 38362 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 38363 | /* end confdefs.h. */ |
| 38364 | |
| 38365 | |
| 38366 | $curl_includes_string |
| 38367 | int strerror_r(int errnum, char *resultbuf, $arg3 bufsize); |
| 38368 | |
| 38369 | int main (void) |
| 38370 | { |
| 38371 | |
| 38372 | if(0 != strerror_r(0, 0, 0)) |
| 38373 | return 1; |
| 38374 | |
| 38375 | ; |
| 38376 | return 0; |
| 38377 | } |
| 38378 | |
| 38379 | _ACEOF |
| 38380 | if ac_fn_c_try_compile "$LINENO"; then : |
| 38381 | |
| 38382 | tst_posix_strerror_r_type_arg3="$arg3" |
| 38383 | |
| 38384 | fi |
| 38385 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 38386 | fi |
| 38387 | done |
| 38388 | case "$tst_posix_strerror_r_type_arg3" in |
| 38389 | unknown) |
| 38390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 38391 | $as_echo "no" >&6; } |
| 38392 | tst_posix_strerror_r="no" |
| 38393 | ;; |
| 38394 | *) |
| 38395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 38396 | $as_echo "yes" >&6; } |
| 38397 | tst_posix_strerror_r="yes" |
| 38398 | ;; |
| 38399 | esac |
| 38400 | fi |
| 38401 | # |
| 38402 | if test "x$cross_compiling" != "xyes" && |
| 38403 | test "$tst_posix_strerror_r" = "yes"; then |
| 38404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5 |
| 38405 | $as_echo_n "checking if strerror_r seems to work... " >&6; } |
| 38406 | if test "$cross_compiling" = yes; then : |
| 38407 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 38408 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 38409 | as_fn_error $? "cannot run test program while cross compiling |
| 38410 | See \`config.log' for more details" "$LINENO" 5; } |
| 38411 | else |
| 38412 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 38413 | /* end confdefs.h. */ |
| 38414 | |
| 38415 | |
| 38416 | $curl_includes_stdlib |
| 38417 | $curl_includes_string |
| 38418 | # include <errno.h> |
| 38419 | |
| 38420 | int main (void) |
| 38421 | { |
| 38422 | |
| 38423 | char buffer[1024]; |
| 38424 | int error = 1; |
| 38425 | buffer[0] = '\0'; |
| 38426 | error = strerror_r(EACCES, buffer, sizeof(buffer)); |
| 38427 | if(error) |
| 38428 | exit(1); /* fail */ |
| 38429 | if(buffer[0] == '\0') |
| 38430 | exit(1); /* fail */ |
| 38431 | else |
| 38432 | exit(0); |
| 38433 | |
| 38434 | ; |
| 38435 | return 0; |
| 38436 | } |
| 38437 | |
| 38438 | _ACEOF |
| 38439 | if ac_fn_c_try_run "$LINENO"; then : |
| 38440 | |
| 38441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 38442 | $as_echo "yes" >&6; } |
| 38443 | tst_works_posix_strerror_r="yes" |
| 38444 | |
| 38445 | else |
| 38446 | |
| 38447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 38448 | $as_echo "no" >&6; } |
| 38449 | tst_works_posix_strerror_r="no" |
| 38450 | |
| 38451 | fi |
| 38452 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 38453 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 38454 | fi |
| 38455 | |
| 38456 | fi |
| 38457 | # |
| 38458 | if test "$tst_works_glibc_strerror_r" = "yes"; then |
| 38459 | tst_posix_strerror_r="no" |
| 38460 | fi |
| 38461 | if test "$tst_works_posix_strerror_r" = "yes"; then |
| 38462 | tst_glibc_strerror_r="no" |
| 38463 | fi |
| 38464 | if test "$tst_glibc_strerror_r" = "yes" && |
| 38465 | test "$tst_works_glibc_strerror_r" != "no" && |
| 38466 | test "$tst_posix_strerror_r" != "yes"; then |
| 38467 | tst_allow_strerror_r="check" |
| 38468 | fi |
| 38469 | if test "$tst_posix_strerror_r" = "yes" && |
| 38470 | test "$tst_works_posix_strerror_r" != "no" && |
| 38471 | test "$tst_glibc_strerror_r" != "yes"; then |
| 38472 | tst_allow_strerror_r="check" |
| 38473 | fi |
| 38474 | if test "$tst_allow_strerror_r" = "check"; then |
| 38475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5 |
| 38476 | $as_echo_n "checking if strerror_r usage allowed... " >&6; } |
| 38477 | if test "x$curl_disallow_strerror_r" != "xyes"; then |
| 38478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 38479 | $as_echo "yes" >&6; } |
| 38480 | tst_allow_strerror_r="yes" |
| 38481 | else |
| 38482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 38483 | $as_echo "no" >&6; } |
| 38484 | tst_allow_strerror_r="no" |
| 38485 | fi |
| 38486 | fi |
| 38487 | # |
| 38488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5 |
| 38489 | $as_echo_n "checking if strerror_r might be used... " >&6; } |
| 38490 | if test "$tst_links_strerror_r" = "yes" && |
| 38491 | test "$tst_proto_strerror_r" = "yes" && |
| 38492 | test "$tst_compi_strerror_r" = "yes" && |
| 38493 | test "$tst_allow_strerror_r" = "yes"; then |
| 38494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 38495 | $as_echo "yes" >&6; } |
| 38496 | if test "$tst_glibc_strerror_r" = "yes"; then |
| 38497 | |
| 38498 | cat >>confdefs.h <<_ACEOF |
| 38499 | #define HAVE_STRERROR_R 1 |
| 38500 | _ACEOF |
| 38501 | |
| 38502 | |
| 38503 | cat >>confdefs.h <<_ACEOF |
| 38504 | #define HAVE_GLIBC_STRERROR_R 1 |
| 38505 | _ACEOF |
| 38506 | |
| 38507 | |
| 38508 | cat >>confdefs.h <<_ACEOF |
| 38509 | #define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3 |
| 38510 | _ACEOF |
| 38511 | |
| 38512 | fi |
| 38513 | if test "$tst_posix_strerror_r" = "yes"; then |
| 38514 | |
| 38515 | cat >>confdefs.h <<_ACEOF |
| 38516 | #define HAVE_STRERROR_R 1 |
| 38517 | _ACEOF |
| 38518 | |
| 38519 | |
| 38520 | cat >>confdefs.h <<_ACEOF |
| 38521 | #define HAVE_POSIX_STRERROR_R 1 |
| 38522 | _ACEOF |
| 38523 | |
| 38524 | |
| 38525 | cat >>confdefs.h <<_ACEOF |
| 38526 | #define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3 |
| 38527 | _ACEOF |
| 38528 | |
| 38529 | fi |
| 38530 | curl_cv_func_strerror_r="yes" |
| 38531 | else |
| 38532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 38533 | $as_echo "no" >&6; } |
| 38534 | curl_cv_func_strerror_r="no" |
| 38535 | fi |
| 38536 | # |
| 38537 | if test "$tst_compi_strerror_r" = "yes" && |
| 38538 | test "$tst_allow_strerror_r" = "unknown"; then |
| 38539 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5 |
| 38540 | $as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;} |
| 38541 | fi |
| 38542 | # |
| 38543 | |
| 38544 | |
| 38545 | # |
| 38546 | tst_links_stricmp="unknown" |
| 38547 | tst_proto_stricmp="unknown" |
| 38548 | tst_compi_stricmp="unknown" |
| 38549 | tst_allow_stricmp="unknown" |
| 38550 | # |
| 38551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5 |
| 38552 | $as_echo_n "checking if stricmp can be linked... " >&6; } |
| 38553 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 38554 | /* end confdefs.h. */ |
| 38555 | |
| 38556 | |
| 38557 | #define stricmp innocuous_stricmp |
| 38558 | #ifdef __STDC__ |
| 38559 | # include <limits.h> |
| 38560 | #else |
| 38561 | # include <assert.h> |
| 38562 | #endif |
| 38563 | #undef stricmp |
| 38564 | #ifdef __cplusplus |
| 38565 | extern "C" |
| 38566 | #endif |
| 38567 | char stricmp (); |
| 38568 | #if defined __stub_stricmp || defined __stub___stricmp |
| 38569 | choke me |
| 38570 | #endif |
| 38571 | |
| 38572 | int main (void) |
| 38573 | { |
| 38574 | return stricmp (); |
| 38575 | ; |
| 38576 | return 0; |
| 38577 | } |
| 38578 | |
| 38579 | _ACEOF |
| 38580 | if ac_fn_c_try_link "$LINENO"; then : |
| 38581 | |
| 38582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 38583 | $as_echo "yes" >&6; } |
| 38584 | tst_links_stricmp="yes" |
| 38585 | |
| 38586 | else |
| 38587 | |
| 38588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 38589 | $as_echo "no" >&6; } |
| 38590 | tst_links_stricmp="no" |
| 38591 | |
| 38592 | fi |
| 38593 | rm -f core conftest.err conftest.$ac_objext \ |
| 38594 | conftest$ac_exeext conftest.$ac_ext |
| 38595 | # |
| 38596 | if test "$tst_links_stricmp" = "yes"; then |
| 38597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5 |
| 38598 | $as_echo_n "checking if stricmp is prototyped... " >&6; } |
| 38599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 38600 | /* end confdefs.h. */ |
| 38601 | |
| 38602 | $curl_includes_string |
| 38603 | |
| 38604 | _ACEOF |
| 38605 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 38606 | $EGREP "stricmp" >/dev/null 2>&1; then : |
| 38607 | |
| 38608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 38609 | $as_echo "yes" >&6; } |
| 38610 | tst_proto_stricmp="yes" |
| 38611 | |
| 38612 | else |
| 38613 | |
| 38614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 38615 | $as_echo "no" >&6; } |
| 38616 | tst_proto_stricmp="no" |
| 38617 | |
| 38618 | fi |
| 38619 | rm -f conftest* |
| 38620 | |
| 38621 | fi |
| 38622 | # |
| 38623 | if test "$tst_proto_stricmp" = "yes"; then |
| 38624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5 |
| 38625 | $as_echo_n "checking if stricmp is compilable... " >&6; } |
| 38626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 38627 | /* end confdefs.h. */ |
| 38628 | |
| 38629 | |
| 38630 | $curl_includes_string |
| 38631 | |
| 38632 | int main (void) |
| 38633 | { |
| 38634 | |
| 38635 | if(0 != stricmp(0, 0)) |
| 38636 | return 1; |
| 38637 | |
| 38638 | ; |
| 38639 | return 0; |
| 38640 | } |
| 38641 | |
| 38642 | _ACEOF |
| 38643 | if ac_fn_c_try_compile "$LINENO"; then : |
| 38644 | |
| 38645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 38646 | $as_echo "yes" >&6; } |
| 38647 | tst_compi_stricmp="yes" |
| 38648 | |
| 38649 | else |
| 38650 | |
| 38651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 38652 | $as_echo "no" >&6; } |
| 38653 | tst_compi_stricmp="no" |
| 38654 | |
| 38655 | fi |
| 38656 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 38657 | fi |
| 38658 | # |
| 38659 | if test "$tst_compi_stricmp" = "yes"; then |
| 38660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5 |
| 38661 | $as_echo_n "checking if stricmp usage allowed... " >&6; } |
| 38662 | if test "x$curl_disallow_stricmp" != "xyes"; then |
| 38663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 38664 | $as_echo "yes" >&6; } |
| 38665 | tst_allow_stricmp="yes" |
| 38666 | else |
| 38667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 38668 | $as_echo "no" >&6; } |
| 38669 | tst_allow_stricmp="no" |
| 38670 | fi |
| 38671 | fi |
| 38672 | # |
| 38673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5 |
| 38674 | $as_echo_n "checking if stricmp might be used... " >&6; } |
| 38675 | if test "$tst_links_stricmp" = "yes" && |
| 38676 | test "$tst_proto_stricmp" = "yes" && |
| 38677 | test "$tst_compi_stricmp" = "yes" && |
| 38678 | test "$tst_allow_stricmp" = "yes"; then |
| 38679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 38680 | $as_echo "yes" >&6; } |
| 38681 | |
| 38682 | cat >>confdefs.h <<_ACEOF |
| 38683 | #define HAVE_STRICMP 1 |
| 38684 | _ACEOF |
| 38685 | |
| 38686 | curl_cv_func_stricmp="yes" |
| 38687 | else |
| 38688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 38689 | $as_echo "no" >&6; } |
| 38690 | curl_cv_func_stricmp="no" |
| 38691 | fi |
| 38692 | |
| 38693 | |
| 38694 | # |
| 38695 | tst_links_strncasecmp="unknown" |
| 38696 | tst_proto_strncasecmp="unknown" |
| 38697 | tst_compi_strncasecmp="unknown" |
| 38698 | tst_allow_strncasecmp="unknown" |
| 38699 | # |
| 38700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5 |
| 38701 | $as_echo_n "checking if strncasecmp can be linked... " >&6; } |
| 38702 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 38703 | /* end confdefs.h. */ |
| 38704 | |
| 38705 | |
| 38706 | #define strncasecmp innocuous_strncasecmp |
| 38707 | #ifdef __STDC__ |
| 38708 | # include <limits.h> |
| 38709 | #else |
| 38710 | # include <assert.h> |
| 38711 | #endif |
| 38712 | #undef strncasecmp |
| 38713 | #ifdef __cplusplus |
| 38714 | extern "C" |
| 38715 | #endif |
| 38716 | char strncasecmp (); |
| 38717 | #if defined __stub_strncasecmp || defined __stub___strncasecmp |
| 38718 | choke me |
| 38719 | #endif |
| 38720 | |
| 38721 | int main (void) |
| 38722 | { |
| 38723 | return strncasecmp (); |
| 38724 | ; |
| 38725 | return 0; |
| 38726 | } |
| 38727 | |
| 38728 | _ACEOF |
| 38729 | if ac_fn_c_try_link "$LINENO"; then : |
| 38730 | |
| 38731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 38732 | $as_echo "yes" >&6; } |
| 38733 | tst_links_strncasecmp="yes" |
| 38734 | |
| 38735 | else |
| 38736 | |
| 38737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 38738 | $as_echo "no" >&6; } |
| 38739 | tst_links_strncasecmp="no" |
| 38740 | |
| 38741 | fi |
| 38742 | rm -f core conftest.err conftest.$ac_objext \ |
| 38743 | conftest$ac_exeext conftest.$ac_ext |
| 38744 | # |
| 38745 | if test "$tst_links_strncasecmp" = "yes"; then |
| 38746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5 |
| 38747 | $as_echo_n "checking if strncasecmp is prototyped... " >&6; } |
| 38748 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 38749 | /* end confdefs.h. */ |
| 38750 | |
| 38751 | $curl_includes_string |
| 38752 | |
| 38753 | _ACEOF |
| 38754 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 38755 | $EGREP "strncasecmp" >/dev/null 2>&1; then : |
| 38756 | |
| 38757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 38758 | $as_echo "yes" >&6; } |
| 38759 | tst_proto_strncasecmp="yes" |
| 38760 | |
| 38761 | else |
| 38762 | |
| 38763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 38764 | $as_echo "no" >&6; } |
| 38765 | tst_proto_strncasecmp="no" |
| 38766 | |
| 38767 | fi |
| 38768 | rm -f conftest* |
| 38769 | |
| 38770 | fi |
| 38771 | # |
| 38772 | if test "$tst_proto_strncasecmp" = "yes"; then |
| 38773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5 |
| 38774 | $as_echo_n "checking if strncasecmp is compilable... " >&6; } |
| 38775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 38776 | /* end confdefs.h. */ |
| 38777 | |
| 38778 | |
| 38779 | $curl_includes_string |
| 38780 | |
| 38781 | int main (void) |
| 38782 | { |
| 38783 | |
| 38784 | if(0 != strncasecmp(0, 0, 0)) |
| 38785 | return 1; |
| 38786 | |
| 38787 | ; |
| 38788 | return 0; |
| 38789 | } |
| 38790 | |
| 38791 | _ACEOF |
| 38792 | if ac_fn_c_try_compile "$LINENO"; then : |
| 38793 | |
| 38794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 38795 | $as_echo "yes" >&6; } |
| 38796 | tst_compi_strncasecmp="yes" |
| 38797 | |
| 38798 | else |
| 38799 | |
| 38800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 38801 | $as_echo "no" >&6; } |
| 38802 | tst_compi_strncasecmp="no" |
| 38803 | |
| 38804 | fi |
| 38805 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 38806 | fi |
| 38807 | # |
| 38808 | if test "$tst_compi_strncasecmp" = "yes"; then |
| 38809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5 |
| 38810 | $as_echo_n "checking if strncasecmp usage allowed... " >&6; } |
| 38811 | if test "x$curl_disallow_strncasecmp" != "xyes"; then |
| 38812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 38813 | $as_echo "yes" >&6; } |
| 38814 | tst_allow_strncasecmp="yes" |
| 38815 | else |
| 38816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 38817 | $as_echo "no" >&6; } |
| 38818 | tst_allow_strncasecmp="no" |
| 38819 | fi |
| 38820 | fi |
| 38821 | # |
| 38822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5 |
| 38823 | $as_echo_n "checking if strncasecmp might be used... " >&6; } |
| 38824 | if test "$tst_links_strncasecmp" = "yes" && |
| 38825 | test "$tst_proto_strncasecmp" = "yes" && |
| 38826 | test "$tst_compi_strncasecmp" = "yes" && |
| 38827 | test "$tst_allow_strncasecmp" = "yes"; then |
| 38828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 38829 | $as_echo "yes" >&6; } |
| 38830 | |
| 38831 | cat >>confdefs.h <<_ACEOF |
| 38832 | #define HAVE_STRNCASECMP 1 |
| 38833 | _ACEOF |
| 38834 | |
| 38835 | curl_cv_func_strncasecmp="yes" |
| 38836 | else |
| 38837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 38838 | $as_echo "no" >&6; } |
| 38839 | curl_cv_func_strncasecmp="no" |
| 38840 | fi |
| 38841 | |
| 38842 | |
| 38843 | # |
| 38844 | tst_links_strncmpi="unknown" |
| 38845 | tst_proto_strncmpi="unknown" |
| 38846 | tst_compi_strncmpi="unknown" |
| 38847 | tst_allow_strncmpi="unknown" |
| 38848 | # |
| 38849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5 |
| 38850 | $as_echo_n "checking if strncmpi can be linked... " >&6; } |
| 38851 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 38852 | /* end confdefs.h. */ |
| 38853 | |
| 38854 | |
| 38855 | #define strncmpi innocuous_strncmpi |
| 38856 | #ifdef __STDC__ |
| 38857 | # include <limits.h> |
| 38858 | #else |
| 38859 | # include <assert.h> |
| 38860 | #endif |
| 38861 | #undef strncmpi |
| 38862 | #ifdef __cplusplus |
| 38863 | extern "C" |
| 38864 | #endif |
| 38865 | char strncmpi (); |
| 38866 | #if defined __stub_strncmpi || defined __stub___strncmpi |
| 38867 | choke me |
| 38868 | #endif |
| 38869 | |
| 38870 | int main (void) |
| 38871 | { |
| 38872 | return strncmpi (); |
| 38873 | ; |
| 38874 | return 0; |
| 38875 | } |
| 38876 | |
| 38877 | _ACEOF |
| 38878 | if ac_fn_c_try_link "$LINENO"; then : |
| 38879 | |
| 38880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 38881 | $as_echo "yes" >&6; } |
| 38882 | tst_links_strncmpi="yes" |
| 38883 | |
| 38884 | else |
| 38885 | |
| 38886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 38887 | $as_echo "no" >&6; } |
| 38888 | tst_links_strncmpi="no" |
| 38889 | |
| 38890 | fi |
| 38891 | rm -f core conftest.err conftest.$ac_objext \ |
| 38892 | conftest$ac_exeext conftest.$ac_ext |
| 38893 | # |
| 38894 | if test "$tst_links_strncmpi" = "yes"; then |
| 38895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5 |
| 38896 | $as_echo_n "checking if strncmpi is prototyped... " >&6; } |
| 38897 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 38898 | /* end confdefs.h. */ |
| 38899 | |
| 38900 | $curl_includes_string |
| 38901 | |
| 38902 | _ACEOF |
| 38903 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 38904 | $EGREP "strncmpi" >/dev/null 2>&1; then : |
| 38905 | |
| 38906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 38907 | $as_echo "yes" >&6; } |
| 38908 | tst_proto_strncmpi="yes" |
| 38909 | |
| 38910 | else |
| 38911 | |
| 38912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 38913 | $as_echo "no" >&6; } |
| 38914 | tst_proto_strncmpi="no" |
| 38915 | |
| 38916 | fi |
| 38917 | rm -f conftest* |
| 38918 | |
| 38919 | fi |
| 38920 | # |
| 38921 | if test "$tst_proto_strncmpi" = "yes"; then |
| 38922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5 |
| 38923 | $as_echo_n "checking if strncmpi is compilable... " >&6; } |
| 38924 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 38925 | /* end confdefs.h. */ |
| 38926 | |
| 38927 | |
| 38928 | $curl_includes_string |
| 38929 | |
| 38930 | int main (void) |
| 38931 | { |
| 38932 | |
| 38933 | if(0 != strncmpi(0, 0)) |
| 38934 | return 1; |
| 38935 | |
| 38936 | ; |
| 38937 | return 0; |
| 38938 | } |
| 38939 | |
| 38940 | _ACEOF |
| 38941 | if ac_fn_c_try_compile "$LINENO"; then : |
| 38942 | |
| 38943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 38944 | $as_echo "yes" >&6; } |
| 38945 | tst_compi_strncmpi="yes" |
| 38946 | |
| 38947 | else |
| 38948 | |
| 38949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 38950 | $as_echo "no" >&6; } |
| 38951 | tst_compi_strncmpi="no" |
| 38952 | |
| 38953 | fi |
| 38954 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 38955 | fi |
| 38956 | # |
| 38957 | if test "$tst_compi_strncmpi" = "yes"; then |
| 38958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5 |
| 38959 | $as_echo_n "checking if strncmpi usage allowed... " >&6; } |
| 38960 | if test "x$curl_disallow_strncmpi" != "xyes"; then |
| 38961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 38962 | $as_echo "yes" >&6; } |
| 38963 | tst_allow_strncmpi="yes" |
| 38964 | else |
| 38965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 38966 | $as_echo "no" >&6; } |
| 38967 | tst_allow_strncmpi="no" |
| 38968 | fi |
| 38969 | fi |
| 38970 | # |
| 38971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5 |
| 38972 | $as_echo_n "checking if strncmpi might be used... " >&6; } |
| 38973 | if test "$tst_links_strncmpi" = "yes" && |
| 38974 | test "$tst_proto_strncmpi" = "yes" && |
| 38975 | test "$tst_compi_strncmpi" = "yes" && |
| 38976 | test "$tst_allow_strncmpi" = "yes"; then |
| 38977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 38978 | $as_echo "yes" >&6; } |
| 38979 | |
| 38980 | cat >>confdefs.h <<_ACEOF |
| 38981 | #define HAVE_STRNCMPI 1 |
| 38982 | _ACEOF |
| 38983 | |
| 38984 | curl_cv_func_strncmpi="yes" |
| 38985 | else |
| 38986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 38987 | $as_echo "no" >&6; } |
| 38988 | curl_cv_func_strncmpi="no" |
| 38989 | fi |
| 38990 | |
| 38991 | |
| 38992 | # |
| 38993 | tst_links_strnicmp="unknown" |
| 38994 | tst_proto_strnicmp="unknown" |
| 38995 | tst_compi_strnicmp="unknown" |
| 38996 | tst_allow_strnicmp="unknown" |
| 38997 | # |
| 38998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5 |
| 38999 | $as_echo_n "checking if strnicmp can be linked... " >&6; } |
| 39000 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 39001 | /* end confdefs.h. */ |
| 39002 | |
| 39003 | |
| 39004 | #define strnicmp innocuous_strnicmp |
| 39005 | #ifdef __STDC__ |
| 39006 | # include <limits.h> |
| 39007 | #else |
| 39008 | # include <assert.h> |
| 39009 | #endif |
| 39010 | #undef strnicmp |
| 39011 | #ifdef __cplusplus |
| 39012 | extern "C" |
| 39013 | #endif |
| 39014 | char strnicmp (); |
| 39015 | #if defined __stub_strnicmp || defined __stub___strnicmp |
| 39016 | choke me |
| 39017 | #endif |
| 39018 | |
| 39019 | int main (void) |
| 39020 | { |
| 39021 | return strnicmp (); |
| 39022 | ; |
| 39023 | return 0; |
| 39024 | } |
| 39025 | |
| 39026 | _ACEOF |
| 39027 | if ac_fn_c_try_link "$LINENO"; then : |
| 39028 | |
| 39029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 39030 | $as_echo "yes" >&6; } |
| 39031 | tst_links_strnicmp="yes" |
| 39032 | |
| 39033 | else |
| 39034 | |
| 39035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 39036 | $as_echo "no" >&6; } |
| 39037 | tst_links_strnicmp="no" |
| 39038 | |
| 39039 | fi |
| 39040 | rm -f core conftest.err conftest.$ac_objext \ |
| 39041 | conftest$ac_exeext conftest.$ac_ext |
| 39042 | # |
| 39043 | if test "$tst_links_strnicmp" = "yes"; then |
| 39044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5 |
| 39045 | $as_echo_n "checking if strnicmp is prototyped... " >&6; } |
| 39046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 39047 | /* end confdefs.h. */ |
| 39048 | |
| 39049 | $curl_includes_string |
| 39050 | |
| 39051 | _ACEOF |
| 39052 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 39053 | $EGREP "strnicmp" >/dev/null 2>&1; then : |
| 39054 | |
| 39055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 39056 | $as_echo "yes" >&6; } |
| 39057 | tst_proto_strnicmp="yes" |
| 39058 | |
| 39059 | else |
| 39060 | |
| 39061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 39062 | $as_echo "no" >&6; } |
| 39063 | tst_proto_strnicmp="no" |
| 39064 | |
| 39065 | fi |
| 39066 | rm -f conftest* |
| 39067 | |
| 39068 | fi |
| 39069 | # |
| 39070 | if test "$tst_proto_strnicmp" = "yes"; then |
| 39071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5 |
| 39072 | $as_echo_n "checking if strnicmp is compilable... " >&6; } |
| 39073 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 39074 | /* end confdefs.h. */ |
| 39075 | |
| 39076 | |
| 39077 | $curl_includes_string |
| 39078 | |
| 39079 | int main (void) |
| 39080 | { |
| 39081 | |
| 39082 | if(0 != strnicmp(0, 0)) |
| 39083 | return 1; |
| 39084 | |
| 39085 | ; |
| 39086 | return 0; |
| 39087 | } |
| 39088 | |
| 39089 | _ACEOF |
| 39090 | if ac_fn_c_try_compile "$LINENO"; then : |
| 39091 | |
| 39092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 39093 | $as_echo "yes" >&6; } |
| 39094 | tst_compi_strnicmp="yes" |
| 39095 | |
| 39096 | else |
| 39097 | |
| 39098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 39099 | $as_echo "no" >&6; } |
| 39100 | tst_compi_strnicmp="no" |
| 39101 | |
| 39102 | fi |
| 39103 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 39104 | fi |
| 39105 | # |
| 39106 | if test "$tst_compi_strnicmp" = "yes"; then |
| 39107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5 |
| 39108 | $as_echo_n "checking if strnicmp usage allowed... " >&6; } |
| 39109 | if test "x$curl_disallow_strnicmp" != "xyes"; then |
| 39110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 39111 | $as_echo "yes" >&6; } |
| 39112 | tst_allow_strnicmp="yes" |
| 39113 | else |
| 39114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 39115 | $as_echo "no" >&6; } |
| 39116 | tst_allow_strnicmp="no" |
| 39117 | fi |
| 39118 | fi |
| 39119 | # |
| 39120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5 |
| 39121 | $as_echo_n "checking if strnicmp might be used... " >&6; } |
| 39122 | if test "$tst_links_strnicmp" = "yes" && |
| 39123 | test "$tst_proto_strnicmp" = "yes" && |
| 39124 | test "$tst_compi_strnicmp" = "yes" && |
| 39125 | test "$tst_allow_strnicmp" = "yes"; then |
| 39126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 39127 | $as_echo "yes" >&6; } |
| 39128 | |
| 39129 | cat >>confdefs.h <<_ACEOF |
| 39130 | #define HAVE_STRNICMP 1 |
| 39131 | _ACEOF |
| 39132 | |
| 39133 | curl_cv_func_strnicmp="yes" |
| 39134 | else |
| 39135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 39136 | $as_echo "no" >&6; } |
| 39137 | curl_cv_func_strnicmp="no" |
| 39138 | fi |
| 39139 | |
| 39140 | |
| 39141 | # |
| 39142 | tst_links_strstr="unknown" |
| 39143 | tst_proto_strstr="unknown" |
| 39144 | tst_compi_strstr="unknown" |
| 39145 | tst_allow_strstr="unknown" |
| 39146 | # |
| 39147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5 |
| 39148 | $as_echo_n "checking if strstr can be linked... " >&6; } |
| 39149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 39150 | /* end confdefs.h. */ |
| 39151 | |
| 39152 | |
| 39153 | #define strstr innocuous_strstr |
| 39154 | #ifdef __STDC__ |
| 39155 | # include <limits.h> |
| 39156 | #else |
| 39157 | # include <assert.h> |
| 39158 | #endif |
| 39159 | #undef strstr |
| 39160 | #ifdef __cplusplus |
| 39161 | extern "C" |
| 39162 | #endif |
| 39163 | char strstr (); |
| 39164 | #if defined __stub_strstr || defined __stub___strstr |
| 39165 | choke me |
| 39166 | #endif |
| 39167 | |
| 39168 | int main (void) |
| 39169 | { |
| 39170 | return strstr (); |
| 39171 | ; |
| 39172 | return 0; |
| 39173 | } |
| 39174 | |
| 39175 | _ACEOF |
| 39176 | if ac_fn_c_try_link "$LINENO"; then : |
| 39177 | |
| 39178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 39179 | $as_echo "yes" >&6; } |
| 39180 | tst_links_strstr="yes" |
| 39181 | |
| 39182 | else |
| 39183 | |
| 39184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 39185 | $as_echo "no" >&6; } |
| 39186 | tst_links_strstr="no" |
| 39187 | |
| 39188 | fi |
| 39189 | rm -f core conftest.err conftest.$ac_objext \ |
| 39190 | conftest$ac_exeext conftest.$ac_ext |
| 39191 | # |
| 39192 | if test "$tst_links_strstr" = "yes"; then |
| 39193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5 |
| 39194 | $as_echo_n "checking if strstr is prototyped... " >&6; } |
| 39195 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 39196 | /* end confdefs.h. */ |
| 39197 | |
| 39198 | $curl_includes_string |
| 39199 | |
| 39200 | _ACEOF |
| 39201 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 39202 | $EGREP "strstr" >/dev/null 2>&1; then : |
| 39203 | |
| 39204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 39205 | $as_echo "yes" >&6; } |
| 39206 | tst_proto_strstr="yes" |
| 39207 | |
| 39208 | else |
| 39209 | |
| 39210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 39211 | $as_echo "no" >&6; } |
| 39212 | tst_proto_strstr="no" |
| 39213 | |
| 39214 | fi |
| 39215 | rm -f conftest* |
| 39216 | |
| 39217 | fi |
| 39218 | # |
| 39219 | if test "$tst_proto_strstr" = "yes"; then |
| 39220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5 |
| 39221 | $as_echo_n "checking if strstr is compilable... " >&6; } |
| 39222 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 39223 | /* end confdefs.h. */ |
| 39224 | |
| 39225 | |
| 39226 | $curl_includes_string |
| 39227 | |
| 39228 | int main (void) |
| 39229 | { |
| 39230 | |
| 39231 | if(0 != strstr(0, 0)) |
| 39232 | return 1; |
| 39233 | |
| 39234 | ; |
| 39235 | return 0; |
| 39236 | } |
| 39237 | |
| 39238 | _ACEOF |
| 39239 | if ac_fn_c_try_compile "$LINENO"; then : |
| 39240 | |
| 39241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 39242 | $as_echo "yes" >&6; } |
| 39243 | tst_compi_strstr="yes" |
| 39244 | |
| 39245 | else |
| 39246 | |
| 39247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 39248 | $as_echo "no" >&6; } |
| 39249 | tst_compi_strstr="no" |
| 39250 | |
| 39251 | fi |
| 39252 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 39253 | fi |
| 39254 | # |
| 39255 | if test "$tst_compi_strstr" = "yes"; then |
| 39256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5 |
| 39257 | $as_echo_n "checking if strstr usage allowed... " >&6; } |
| 39258 | if test "x$curl_disallow_strstr" != "xyes"; then |
| 39259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 39260 | $as_echo "yes" >&6; } |
| 39261 | tst_allow_strstr="yes" |
| 39262 | else |
| 39263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 39264 | $as_echo "no" >&6; } |
| 39265 | tst_allow_strstr="no" |
| 39266 | fi |
| 39267 | fi |
| 39268 | # |
| 39269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5 |
| 39270 | $as_echo_n "checking if strstr might be used... " >&6; } |
| 39271 | if test "$tst_links_strstr" = "yes" && |
| 39272 | test "$tst_proto_strstr" = "yes" && |
| 39273 | test "$tst_compi_strstr" = "yes" && |
| 39274 | test "$tst_allow_strstr" = "yes"; then |
| 39275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 39276 | $as_echo "yes" >&6; } |
| 39277 | |
| 39278 | cat >>confdefs.h <<_ACEOF |
| 39279 | #define HAVE_STRSTR 1 |
| 39280 | _ACEOF |
| 39281 | |
| 39282 | curl_cv_func_strstr="yes" |
| 39283 | else |
| 39284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 39285 | $as_echo "no" >&6; } |
| 39286 | curl_cv_func_strstr="no" |
| 39287 | fi |
| 39288 | |
| 39289 | |
| 39290 | # |
| 39291 | tst_links_strtok_r="unknown" |
| 39292 | tst_proto_strtok_r="unknown" |
| 39293 | tst_compi_strtok_r="unknown" |
| 39294 | tst_allow_strtok_r="unknown" |
| 39295 | # |
| 39296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5 |
| 39297 | $as_echo_n "checking if strtok_r can be linked... " >&6; } |
| 39298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 39299 | /* end confdefs.h. */ |
| 39300 | |
| 39301 | |
| 39302 | #define strtok_r innocuous_strtok_r |
| 39303 | #ifdef __STDC__ |
| 39304 | # include <limits.h> |
| 39305 | #else |
| 39306 | # include <assert.h> |
| 39307 | #endif |
| 39308 | #undef strtok_r |
| 39309 | #ifdef __cplusplus |
| 39310 | extern "C" |
| 39311 | #endif |
| 39312 | char strtok_r (); |
| 39313 | #if defined __stub_strtok_r || defined __stub___strtok_r |
| 39314 | choke me |
| 39315 | #endif |
| 39316 | |
| 39317 | int main (void) |
| 39318 | { |
| 39319 | return strtok_r (); |
| 39320 | ; |
| 39321 | return 0; |
| 39322 | } |
| 39323 | |
| 39324 | _ACEOF |
| 39325 | if ac_fn_c_try_link "$LINENO"; then : |
| 39326 | |
| 39327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 39328 | $as_echo "yes" >&6; } |
| 39329 | tst_links_strtok_r="yes" |
| 39330 | |
| 39331 | else |
| 39332 | |
| 39333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 39334 | $as_echo "no" >&6; } |
| 39335 | tst_links_strtok_r="no" |
| 39336 | |
| 39337 | fi |
| 39338 | rm -f core conftest.err conftest.$ac_objext \ |
| 39339 | conftest$ac_exeext conftest.$ac_ext |
| 39340 | # |
| 39341 | if test "$tst_links_strtok_r" = "yes"; then |
| 39342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5 |
| 39343 | $as_echo_n "checking if strtok_r is prototyped... " >&6; } |
| 39344 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 39345 | /* end confdefs.h. */ |
| 39346 | |
| 39347 | $curl_includes_string |
| 39348 | |
| 39349 | _ACEOF |
| 39350 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 39351 | $EGREP "strtok_r" >/dev/null 2>&1; then : |
| 39352 | |
| 39353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 39354 | $as_echo "yes" >&6; } |
| 39355 | tst_proto_strtok_r="yes" |
| 39356 | |
| 39357 | else |
| 39358 | |
| 39359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 39360 | $as_echo "no" >&6; } |
| 39361 | tst_proto_strtok_r="no" |
| 39362 | |
| 39363 | fi |
| 39364 | rm -f conftest* |
| 39365 | |
| 39366 | fi |
| 39367 | # |
| 39368 | if test "$tst_proto_strtok_r" = "yes"; then |
| 39369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5 |
| 39370 | $as_echo_n "checking if strtok_r is compilable... " >&6; } |
| 39371 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 39372 | /* end confdefs.h. */ |
| 39373 | |
| 39374 | |
| 39375 | $curl_includes_string |
| 39376 | |
| 39377 | int main (void) |
| 39378 | { |
| 39379 | |
| 39380 | if(0 != strtok_r(0, 0, 0)) |
| 39381 | return 1; |
| 39382 | |
| 39383 | ; |
| 39384 | return 0; |
| 39385 | } |
| 39386 | |
| 39387 | _ACEOF |
| 39388 | if ac_fn_c_try_compile "$LINENO"; then : |
| 39389 | |
| 39390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 39391 | $as_echo "yes" >&6; } |
| 39392 | tst_compi_strtok_r="yes" |
| 39393 | |
| 39394 | else |
| 39395 | |
| 39396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 39397 | $as_echo "no" >&6; } |
| 39398 | tst_compi_strtok_r="no" |
| 39399 | |
| 39400 | fi |
| 39401 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 39402 | fi |
| 39403 | # |
| 39404 | if test "$tst_compi_strtok_r" = "yes"; then |
| 39405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5 |
| 39406 | $as_echo_n "checking if strtok_r usage allowed... " >&6; } |
| 39407 | if test "x$curl_disallow_strtok_r" != "xyes"; then |
| 39408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 39409 | $as_echo "yes" >&6; } |
| 39410 | tst_allow_strtok_r="yes" |
| 39411 | else |
| 39412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 39413 | $as_echo "no" >&6; } |
| 39414 | tst_allow_strtok_r="no" |
| 39415 | fi |
| 39416 | fi |
| 39417 | # |
| 39418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5 |
| 39419 | $as_echo_n "checking if strtok_r might be used... " >&6; } |
| 39420 | if test "$tst_links_strtok_r" = "yes" && |
| 39421 | test "$tst_proto_strtok_r" = "yes" && |
| 39422 | test "$tst_compi_strtok_r" = "yes" && |
| 39423 | test "$tst_allow_strtok_r" = "yes"; then |
| 39424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 39425 | $as_echo "yes" >&6; } |
| 39426 | |
| 39427 | cat >>confdefs.h <<_ACEOF |
| 39428 | #define HAVE_STRTOK_R 1 |
| 39429 | _ACEOF |
| 39430 | |
| 39431 | curl_cv_func_strtok_r="yes" |
| 39432 | else |
| 39433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 39434 | $as_echo "no" >&6; } |
| 39435 | curl_cv_func_strtok_r="no" |
| 39436 | fi |
| 39437 | |
| 39438 | |
| 39439 | # |
| 39440 | tst_links_strtoll="unknown" |
| 39441 | tst_proto_strtoll="unknown" |
| 39442 | tst_compi_strtoll="unknown" |
| 39443 | tst_allow_strtoll="unknown" |
| 39444 | # |
| 39445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5 |
| 39446 | $as_echo_n "checking if strtoll can be linked... " >&6; } |
| 39447 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 39448 | /* end confdefs.h. */ |
| 39449 | |
| 39450 | |
| 39451 | #define strtoll innocuous_strtoll |
| 39452 | #ifdef __STDC__ |
| 39453 | # include <limits.h> |
| 39454 | #else |
| 39455 | # include <assert.h> |
| 39456 | #endif |
| 39457 | #undef strtoll |
| 39458 | #ifdef __cplusplus |
| 39459 | extern "C" |
| 39460 | #endif |
| 39461 | char strtoll (); |
| 39462 | #if defined __stub_strtoll || defined __stub___strtoll |
| 39463 | choke me |
| 39464 | #endif |
| 39465 | |
| 39466 | int main (void) |
| 39467 | { |
| 39468 | return strtoll (); |
| 39469 | ; |
| 39470 | return 0; |
| 39471 | } |
| 39472 | |
| 39473 | _ACEOF |
| 39474 | if ac_fn_c_try_link "$LINENO"; then : |
| 39475 | |
| 39476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 39477 | $as_echo "yes" >&6; } |
| 39478 | tst_links_strtoll="yes" |
| 39479 | |
| 39480 | else |
| 39481 | |
| 39482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 39483 | $as_echo "no" >&6; } |
| 39484 | tst_links_strtoll="no" |
| 39485 | |
| 39486 | fi |
| 39487 | rm -f core conftest.err conftest.$ac_objext \ |
| 39488 | conftest$ac_exeext conftest.$ac_ext |
| 39489 | # |
| 39490 | if test "$tst_links_strtoll" = "yes"; then |
| 39491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5 |
| 39492 | $as_echo_n "checking if strtoll is prototyped... " >&6; } |
| 39493 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 39494 | /* end confdefs.h. */ |
| 39495 | |
| 39496 | $curl_includes_stdlib |
| 39497 | |
| 39498 | _ACEOF |
| 39499 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 39500 | $EGREP "strtoll" >/dev/null 2>&1; then : |
| 39501 | |
| 39502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 39503 | $as_echo "yes" >&6; } |
| 39504 | tst_proto_strtoll="yes" |
| 39505 | |
| 39506 | else |
| 39507 | |
| 39508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 39509 | $as_echo "no" >&6; } |
| 39510 | tst_proto_strtoll="no" |
| 39511 | |
| 39512 | fi |
| 39513 | rm -f conftest* |
| 39514 | |
| 39515 | fi |
| 39516 | # |
| 39517 | if test "$tst_proto_strtoll" = "yes"; then |
| 39518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5 |
| 39519 | $as_echo_n "checking if strtoll is compilable... " >&6; } |
| 39520 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 39521 | /* end confdefs.h. */ |
| 39522 | |
| 39523 | |
| 39524 | $curl_includes_stdlib |
| 39525 | |
| 39526 | int main (void) |
| 39527 | { |
| 39528 | |
| 39529 | if(0 != strtoll(0, 0, 0)) |
| 39530 | return 1; |
| 39531 | |
| 39532 | ; |
| 39533 | return 0; |
| 39534 | } |
| 39535 | |
| 39536 | _ACEOF |
| 39537 | if ac_fn_c_try_compile "$LINENO"; then : |
| 39538 | |
| 39539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 39540 | $as_echo "yes" >&6; } |
| 39541 | tst_compi_strtoll="yes" |
| 39542 | |
| 39543 | else |
| 39544 | |
| 39545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 39546 | $as_echo "no" >&6; } |
| 39547 | tst_compi_strtoll="no" |
| 39548 | |
| 39549 | fi |
| 39550 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 39551 | fi |
| 39552 | # |
| 39553 | if test "$tst_compi_strtoll" = "yes"; then |
| 39554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5 |
| 39555 | $as_echo_n "checking if strtoll usage allowed... " >&6; } |
| 39556 | if test "x$curl_disallow_strtoll" != "xyes"; then |
| 39557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 39558 | $as_echo "yes" >&6; } |
| 39559 | tst_allow_strtoll="yes" |
| 39560 | else |
| 39561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 39562 | $as_echo "no" >&6; } |
| 39563 | tst_allow_strtoll="no" |
| 39564 | fi |
| 39565 | fi |
| 39566 | # |
| 39567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5 |
| 39568 | $as_echo_n "checking if strtoll might be used... " >&6; } |
| 39569 | if test "$tst_links_strtoll" = "yes" && |
| 39570 | test "$tst_proto_strtoll" = "yes" && |
| 39571 | test "$tst_compi_strtoll" = "yes" && |
| 39572 | test "$tst_allow_strtoll" = "yes"; then |
| 39573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 39574 | $as_echo "yes" >&6; } |
| 39575 | |
| 39576 | cat >>confdefs.h <<_ACEOF |
| 39577 | #define HAVE_STRTOLL 1 |
| 39578 | _ACEOF |
| 39579 | |
| 39580 | curl_cv_func_strtoll="yes" |
| 39581 | else |
| 39582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 39583 | $as_echo "no" >&6; } |
| 39584 | curl_cv_func_strtoll="no" |
| 39585 | fi |
| 39586 | |
| 39587 | |
| 39588 | curl_includes_sys_uio="\ |
| 39589 | /* includes start */ |
| 39590 | #ifdef HAVE_SYS_TYPES_H |
| 39591 | # include <sys/types.h> |
| 39592 | #endif |
| 39593 | #ifdef HAVE_SYS_UIO_H |
| 39594 | # include <sys/uio.h> |
| 39595 | #endif |
| 39596 | /* includes end */" |
| 39597 | for ac_header in sys/types.h sys/uio.h |
| 39598 | do : |
| 39599 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 39600 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio |
| 39601 | " |
| 39602 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 39603 | cat >>confdefs.h <<_ACEOF |
| 39604 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 39605 | _ACEOF |
| 39606 | |
| 39607 | fi |
| 39608 | |
| 39609 | done |
| 39610 | |
| 39611 | |
| 39612 | |
| 39613 | # |
| 39614 | tst_links_writev="unknown" |
| 39615 | tst_proto_writev="unknown" |
| 39616 | tst_compi_writev="unknown" |
| 39617 | tst_allow_writev="unknown" |
| 39618 | # |
| 39619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5 |
| 39620 | $as_echo_n "checking if writev can be linked... " >&6; } |
| 39621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 39622 | /* end confdefs.h. */ |
| 39623 | |
| 39624 | |
| 39625 | #define writev innocuous_writev |
| 39626 | #ifdef __STDC__ |
| 39627 | # include <limits.h> |
| 39628 | #else |
| 39629 | # include <assert.h> |
| 39630 | #endif |
| 39631 | #undef writev |
| 39632 | #ifdef __cplusplus |
| 39633 | extern "C" |
| 39634 | #endif |
| 39635 | char writev (); |
| 39636 | #if defined __stub_writev || defined __stub___writev |
| 39637 | choke me |
| 39638 | #endif |
| 39639 | |
| 39640 | int main (void) |
| 39641 | { |
| 39642 | return writev (); |
| 39643 | ; |
| 39644 | return 0; |
| 39645 | } |
| 39646 | |
| 39647 | _ACEOF |
| 39648 | if ac_fn_c_try_link "$LINENO"; then : |
| 39649 | |
| 39650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 39651 | $as_echo "yes" >&6; } |
| 39652 | tst_links_writev="yes" |
| 39653 | |
| 39654 | else |
| 39655 | |
| 39656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 39657 | $as_echo "no" >&6; } |
| 39658 | tst_links_writev="no" |
| 39659 | |
| 39660 | fi |
| 39661 | rm -f core conftest.err conftest.$ac_objext \ |
| 39662 | conftest$ac_exeext conftest.$ac_ext |
| 39663 | # |
| 39664 | if test "$tst_links_writev" = "yes"; then |
| 39665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5 |
| 39666 | $as_echo_n "checking if writev is prototyped... " >&6; } |
| 39667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 39668 | /* end confdefs.h. */ |
| 39669 | |
| 39670 | $curl_includes_sys_uio |
| 39671 | |
| 39672 | _ACEOF |
| 39673 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 39674 | $EGREP "writev" >/dev/null 2>&1; then : |
| 39675 | |
| 39676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 39677 | $as_echo "yes" >&6; } |
| 39678 | tst_proto_writev="yes" |
| 39679 | |
| 39680 | else |
| 39681 | |
| 39682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 39683 | $as_echo "no" >&6; } |
| 39684 | tst_proto_writev="no" |
| 39685 | |
| 39686 | fi |
| 39687 | rm -f conftest* |
| 39688 | |
| 39689 | fi |
| 39690 | # |
| 39691 | if test "$tst_proto_writev" = "yes"; then |
| 39692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5 |
| 39693 | $as_echo_n "checking if writev is compilable... " >&6; } |
| 39694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 39695 | /* end confdefs.h. */ |
| 39696 | |
| 39697 | |
| 39698 | $curl_includes_sys_uio |
| 39699 | |
| 39700 | int main (void) |
| 39701 | { |
| 39702 | |
| 39703 | if(0 != writev(0, 0, 0)) |
| 39704 | return 1; |
| 39705 | |
| 39706 | ; |
| 39707 | return 0; |
| 39708 | } |
| 39709 | |
| 39710 | _ACEOF |
| 39711 | if ac_fn_c_try_compile "$LINENO"; then : |
| 39712 | |
| 39713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 39714 | $as_echo "yes" >&6; } |
| 39715 | tst_compi_writev="yes" |
| 39716 | |
| 39717 | else |
| 39718 | |
| 39719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 39720 | $as_echo "no" >&6; } |
| 39721 | tst_compi_writev="no" |
| 39722 | |
| 39723 | fi |
| 39724 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 39725 | fi |
| 39726 | # |
| 39727 | if test "$tst_compi_writev" = "yes"; then |
| 39728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5 |
| 39729 | $as_echo_n "checking if writev usage allowed... " >&6; } |
| 39730 | if test "x$curl_disallow_writev" != "xyes"; then |
| 39731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 39732 | $as_echo "yes" >&6; } |
| 39733 | tst_allow_writev="yes" |
| 39734 | else |
| 39735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 39736 | $as_echo "no" >&6; } |
| 39737 | tst_allow_writev="no" |
| 39738 | fi |
| 39739 | fi |
| 39740 | # |
| 39741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5 |
| 39742 | $as_echo_n "checking if writev might be used... " >&6; } |
| 39743 | if test "$tst_links_writev" = "yes" && |
| 39744 | test "$tst_proto_writev" = "yes" && |
| 39745 | test "$tst_compi_writev" = "yes" && |
| 39746 | test "$tst_allow_writev" = "yes"; then |
| 39747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 39748 | $as_echo "yes" >&6; } |
| 39749 | |
| 39750 | cat >>confdefs.h <<_ACEOF |
| 39751 | #define HAVE_WRITEV 1 |
| 39752 | _ACEOF |
| 39753 | |
| 39754 | curl_cv_func_writev="yes" |
| 39755 | else |
| 39756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 39757 | $as_echo "no" >&6; } |
| 39758 | curl_cv_func_writev="no" |
| 39759 | fi |
| 39760 | |
| 39761 | |
| 39762 | case $host in |
| 39763 | *msdosdjgpp) |
| 39764 | ac_cv_func_pipe=no |
| 39765 | skipcheck_pipe=yes |
| 39766 | { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5 |
| 39767 | $as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;} |
| 39768 | ;; |
| 39769 | esac |
| 39770 | |
| 39771 | for ac_func in fork \ |
| 39772 | geteuid \ |
| 39773 | getpass_r \ |
| 39774 | getppid \ |
| 39775 | getprotobyname \ |
| 39776 | getpwuid \ |
| 39777 | getpwuid_r \ |
| 39778 | getrlimit \ |
| 39779 | gettimeofday \ |
| 39780 | if_nametoindex \ |
| 39781 | inet_addr \ |
| 39782 | perror \ |
| 39783 | pipe \ |
| 39784 | setlocale \ |
| 39785 | setmode \ |
| 39786 | setrlimit \ |
| 39787 | uname \ |
| 39788 | utime \ |
| 39789 | utimes |
| 39790 | |
| 39791 | do : |
| 39792 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 39793 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 39794 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| 39795 | cat >>confdefs.h <<_ACEOF |
| 39796 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 39797 | _ACEOF |
| 39798 | |
| 39799 | |
| 39800 | else |
| 39801 | |
| 39802 | func="$ac_func" |
| 39803 | eval skipcheck=\$skipcheck_$func |
| 39804 | if test "x$skipcheck" != "xyes"; then |
| 39805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5 |
| 39806 | $as_echo_n "checking deeper for $func... " >&6; } |
| 39807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 39808 | /* end confdefs.h. */ |
| 39809 | |
| 39810 | |
| 39811 | |
| 39812 | int main (void) |
| 39813 | { |
| 39814 | |
| 39815 | $func (); |
| 39816 | |
| 39817 | ; |
| 39818 | return 0; |
| 39819 | } |
| 39820 | |
| 39821 | _ACEOF |
| 39822 | if ac_fn_c_try_link "$LINENO"; then : |
| 39823 | |
| 39824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 39825 | $as_echo "yes" >&6; } |
| 39826 | eval "ac_cv_func_$func=yes" |
| 39827 | |
| 39828 | cat >>confdefs.h <<_ACEOF |
| 39829 | #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1 |
| 39830 | _ACEOF |
| 39831 | |
| 39832 | |
| 39833 | else |
| 39834 | |
| 39835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5 |
| 39836 | $as_echo "but still no" >&6; } |
| 39837 | |
| 39838 | fi |
| 39839 | rm -f core conftest.err conftest.$ac_objext \ |
| 39840 | conftest$ac_exeext conftest.$ac_ext |
| 39841 | fi |
| 39842 | |
| 39843 | fi |
| 39844 | done |
| 39845 | |
| 39846 | |
| 39847 | |
| 39848 | for ac_header in sys/types.h sys/socket.h netdb.h |
| 39849 | do : |
| 39850 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 39851 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 39852 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 39853 | cat >>confdefs.h <<_ACEOF |
| 39854 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 39855 | _ACEOF |
| 39856 | |
| 39857 | fi |
| 39858 | |
| 39859 | done |
| 39860 | |
| 39861 | # |
| 39862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5 |
| 39863 | $as_echo_n "checking for getnameinfo... " >&6; } |
| 39864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 39865 | /* end confdefs.h. */ |
| 39866 | |
| 39867 | |
| 39868 | #define getnameinfo innocuous_getnameinfo |
| 39869 | #ifdef __STDC__ |
| 39870 | # include <limits.h> |
| 39871 | #else |
| 39872 | # include <assert.h> |
| 39873 | #endif |
| 39874 | #undef getnameinfo |
| 39875 | #ifdef __cplusplus |
| 39876 | extern "C" |
| 39877 | #endif |
| 39878 | char getnameinfo (); |
| 39879 | #if defined __stub_getnameinfo || defined __stub___getnameinfo |
| 39880 | choke me |
| 39881 | #endif |
| 39882 | |
| 39883 | int main (void) |
| 39884 | { |
| 39885 | return getnameinfo (); |
| 39886 | ; |
| 39887 | return 0; |
| 39888 | } |
| 39889 | |
| 39890 | _ACEOF |
| 39891 | if ac_fn_c_try_link "$LINENO"; then : |
| 39892 | |
| 39893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 39894 | $as_echo "yes" >&6; } |
| 39895 | curl_cv_getnameinfo="yes" |
| 39896 | |
| 39897 | else |
| 39898 | |
| 39899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 39900 | $as_echo "no" >&6; } |
| 39901 | curl_cv_getnameinfo="no" |
| 39902 | |
| 39903 | fi |
| 39904 | rm -f core conftest.err conftest.$ac_objext \ |
| 39905 | conftest$ac_exeext conftest.$ac_ext |
| 39906 | # |
| 39907 | if test "$curl_cv_getnameinfo" != "yes"; then |
| 39908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for getnameinfo" >&5 |
| 39909 | $as_echo_n "checking deeper for getnameinfo... " >&6; } |
| 39910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 39911 | /* end confdefs.h. */ |
| 39912 | |
| 39913 | |
| 39914 | |
| 39915 | int main (void) |
| 39916 | { |
| 39917 | |
| 39918 | getnameinfo(); |
| 39919 | |
| 39920 | ; |
| 39921 | return 0; |
| 39922 | } |
| 39923 | |
| 39924 | _ACEOF |
| 39925 | if ac_fn_c_try_link "$LINENO"; then : |
| 39926 | |
| 39927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 39928 | $as_echo "yes" >&6; } |
| 39929 | curl_cv_getnameinfo="yes" |
| 39930 | |
| 39931 | else |
| 39932 | |
| 39933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5 |
| 39934 | $as_echo "but still no" >&6; } |
| 39935 | curl_cv_getnameinfo="no" |
| 39936 | |
| 39937 | fi |
| 39938 | rm -f core conftest.err conftest.$ac_objext \ |
| 39939 | conftest$ac_exeext conftest.$ac_ext |
| 39940 | fi |
| 39941 | # |
| 39942 | if test "$curl_cv_getnameinfo" != "yes"; then |
| 39943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper and deeper for getnameinfo" >&5 |
| 39944 | $as_echo_n "checking deeper and deeper for getnameinfo... " >&6; } |
| 39945 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 39946 | /* end confdefs.h. */ |
| 39947 | |
| 39948 | |
| 39949 | #undef inline |
| 39950 | #ifdef HAVE_WINDOWS_H |
| 39951 | #ifndef WIN32_LEAN_AND_MEAN |
| 39952 | #define WIN32_LEAN_AND_MEAN |
| 39953 | #endif |
| 39954 | #include <windows.h> |
| 39955 | #ifdef HAVE_WINSOCK2_H |
| 39956 | #include <winsock2.h> |
| 39957 | #ifdef HAVE_WS2TCPIP_H |
| 39958 | #include <ws2tcpip.h> |
| 39959 | #endif |
| 39960 | #endif |
| 39961 | #else |
| 39962 | #ifdef HAVE_SYS_TYPES_H |
| 39963 | #include <sys/types.h> |
| 39964 | #endif |
| 39965 | #ifdef HAVE_SYS_SOCKET_H |
| 39966 | #include <sys/socket.h> |
| 39967 | #endif |
| 39968 | #ifdef HAVE_NETDB_H |
| 39969 | #include <netdb.h> |
| 39970 | #endif |
| 39971 | #endif |
| 39972 | |
| 39973 | int main (void) |
| 39974 | { |
| 39975 | |
| 39976 | getnameinfo(0, 0, 0, 0, 0, 0, 0); |
| 39977 | |
| 39978 | ; |
| 39979 | return 0; |
| 39980 | } |
| 39981 | |
| 39982 | _ACEOF |
| 39983 | if ac_fn_c_try_link "$LINENO"; then : |
| 39984 | |
| 39985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 39986 | $as_echo "yes" >&6; } |
| 39987 | curl_cv_getnameinfo="yes" |
| 39988 | |
| 39989 | else |
| 39990 | |
| 39991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5 |
| 39992 | $as_echo "but still no" >&6; } |
| 39993 | curl_cv_getnameinfo="no" |
| 39994 | |
| 39995 | fi |
| 39996 | rm -f core conftest.err conftest.$ac_objext \ |
| 39997 | conftest$ac_exeext conftest.$ac_ext |
| 39998 | fi |
| 39999 | # |
| 40000 | if test "$curl_cv_getnameinfo" = "yes"; then |
| 40001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for getnameinfo" >&5 |
| 40002 | $as_echo_n "checking types of arguments for getnameinfo... " >&6; } |
| 40003 | if ${curl_cv_func_getnameinfo_args+:} false; then : |
| 40004 | $as_echo_n "(cached) " >&6 |
| 40005 | else |
| 40006 | |
| 40007 | curl_cv_func_getnameinfo_args="unknown" |
| 40008 | for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do |
| 40009 | for gni_arg2 in 'socklen_t' 'size_t' 'int'; do |
| 40010 | for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do |
| 40011 | for gni_arg7 in 'int' 'unsigned int'; do |
| 40012 | if test "$curl_cv_func_getnameinfo_args" = "unknown"; then |
| 40013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 40014 | /* end confdefs.h. */ |
| 40015 | |
| 40016 | |
| 40017 | #undef inline |
| 40018 | #ifdef HAVE_WINDOWS_H |
| 40019 | #ifndef WIN32_LEAN_AND_MEAN |
| 40020 | #define WIN32_LEAN_AND_MEAN |
| 40021 | #endif |
| 40022 | #if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501) |
| 40023 | #undef _WIN32_WINNT |
| 40024 | #define _WIN32_WINNT 0x0501 |
| 40025 | #endif |
| 40026 | #include <windows.h> |
| 40027 | #ifdef HAVE_WINSOCK2_H |
| 40028 | #include <winsock2.h> |
| 40029 | #ifdef HAVE_WS2TCPIP_H |
| 40030 | #include <ws2tcpip.h> |
| 40031 | #endif |
| 40032 | #endif |
| 40033 | #define GNICALLCONV WSAAPI |
| 40034 | #else |
| 40035 | #ifdef HAVE_SYS_TYPES_H |
| 40036 | #include <sys/types.h> |
| 40037 | #endif |
| 40038 | #ifdef HAVE_SYS_SOCKET_H |
| 40039 | #include <sys/socket.h> |
| 40040 | #endif |
| 40041 | #ifdef HAVE_NETDB_H |
| 40042 | #include <netdb.h> |
| 40043 | #endif |
| 40044 | #define GNICALLCONV |
| 40045 | #endif |
| 40046 | extern int GNICALLCONV getnameinfo($gni_arg1, $gni_arg2, |
| 40047 | char *, $gni_arg46, |
| 40048 | char *, $gni_arg46, |
| 40049 | $gni_arg7); |
| 40050 | |
| 40051 | int main (void) |
| 40052 | { |
| 40053 | |
| 40054 | $gni_arg2 salen=0; |
| 40055 | $gni_arg46 hostlen=0; |
| 40056 | $gni_arg46 servlen=0; |
| 40057 | $gni_arg7 flags=0; |
| 40058 | int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags); |
| 40059 | |
| 40060 | ; |
| 40061 | return 0; |
| 40062 | } |
| 40063 | |
| 40064 | _ACEOF |
| 40065 | if ac_fn_c_try_compile "$LINENO"; then : |
| 40066 | |
| 40067 | curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7" |
| 40068 | |
| 40069 | fi |
| 40070 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 40071 | fi |
| 40072 | done |
| 40073 | done |
| 40074 | done |
| 40075 | done |
| 40076 | |
| 40077 | fi |
| 40078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_getnameinfo_args" >&5 |
| 40079 | $as_echo "$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK |
| 40080 | if test "$curl_cv_func_getnameinfo_args" = "unknown"; then |
| 40081 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for getnameinfo args" >&5 |
| 40082 | $as_echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;} |
| 40083 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_GETNAMEINFO will not be defined" >&5 |
| 40084 | $as_echo "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;} |
| 40085 | else |
| 40086 | gni_prev_IFS=$IFS; IFS=',' |
| 40087 | set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'` |
| 40088 | IFS=$gni_prev_IFS |
| 40089 | shift |
| 40090 | # |
| 40091 | gni_qual_type_arg1=$1 |
| 40092 | # |
| 40093 | |
| 40094 | cat >>confdefs.h <<_ACEOF |
| 40095 | #define GETNAMEINFO_TYPE_ARG2 $2 |
| 40096 | _ACEOF |
| 40097 | |
| 40098 | |
| 40099 | cat >>confdefs.h <<_ACEOF |
| 40100 | #define GETNAMEINFO_TYPE_ARG46 $3 |
| 40101 | _ACEOF |
| 40102 | |
| 40103 | |
| 40104 | cat >>confdefs.h <<_ACEOF |
| 40105 | #define GETNAMEINFO_TYPE_ARG7 $4 |
| 40106 | _ACEOF |
| 40107 | |
| 40108 | # |
| 40109 | prev_sh_opts=$- |
| 40110 | # |
| 40111 | case $prev_sh_opts in |
| 40112 | *f*) |
| 40113 | ;; |
| 40114 | *) |
| 40115 | set -f |
| 40116 | ;; |
| 40117 | esac |
| 40118 | # |
| 40119 | case "$gni_qual_type_arg1" in |
| 40120 | const*) |
| 40121 | gni_qual_arg1=const |
| 40122 | gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'` |
| 40123 | ;; |
| 40124 | *) |
| 40125 | gni_qual_arg1= |
| 40126 | gni_type_arg1=$gni_qual_type_arg1 |
| 40127 | ;; |
| 40128 | esac |
| 40129 | # |
| 40130 | |
| 40131 | cat >>confdefs.h <<_ACEOF |
| 40132 | #define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1 |
| 40133 | _ACEOF |
| 40134 | |
| 40135 | |
| 40136 | cat >>confdefs.h <<_ACEOF |
| 40137 | #define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1 |
| 40138 | _ACEOF |
| 40139 | |
| 40140 | # |
| 40141 | case $prev_sh_opts in |
| 40142 | *f*) |
| 40143 | ;; |
| 40144 | *) |
| 40145 | set +f |
| 40146 | ;; |
| 40147 | esac |
| 40148 | # |
| 40149 | |
| 40150 | cat >>confdefs.h <<_ACEOF |
| 40151 | #define HAVE_GETNAMEINFO 1 |
| 40152 | _ACEOF |
| 40153 | |
| 40154 | curl_cv_func_getnameinfo="yes" |
| 40155 | fi |
| 40156 | fi |
| 40157 | |
| 40158 | |
| 40159 | if test "$ipv6" = "yes"; then |
| 40160 | if test "$curl_cv_func_getaddrinfo" = "yes"; then |
| 40161 | |
| 40162 | $as_echo "#define ENABLE_IPV6 1" >>confdefs.h |
| 40163 | |
| 40164 | IPV6_ENABLED=1 |
| 40165 | |
| 40166 | fi |
| 40167 | |
| 40168 | for ac_header in stdio.h sys/types.h sys/socket.h \ |
| 40169 | netdb.h netinet/in.h arpa/inet.h |
| 40170 | do : |
| 40171 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 40172 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 40173 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 40174 | cat >>confdefs.h <<_ACEOF |
| 40175 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 40176 | _ACEOF |
| 40177 | |
| 40178 | fi |
| 40179 | |
| 40180 | done |
| 40181 | |
| 40182 | # |
| 40183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working NI_WITHSCOPEID" >&5 |
| 40184 | $as_echo_n "checking for working NI_WITHSCOPEID... " >&6; } |
| 40185 | if ${curl_cv_working_ni_withscopeid+:} false; then : |
| 40186 | $as_echo_n "(cached) " >&6 |
| 40187 | else |
| 40188 | |
| 40189 | if test "$cross_compiling" = yes; then : |
| 40190 | |
| 40191 | # Program is not run when cross-compiling. So we assume |
| 40192 | # NI_WITHSCOPEID will work if we are able to compile it. |
| 40193 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 40194 | /* end confdefs.h. */ |
| 40195 | |
| 40196 | |
| 40197 | #include <sys/types.h> |
| 40198 | #include <sys/socket.h> |
| 40199 | #include <netdb.h> |
| 40200 | |
| 40201 | int main (void) |
| 40202 | { |
| 40203 | |
| 40204 | unsigned int dummy= NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID; |
| 40205 | |
| 40206 | ; |
| 40207 | return 0; |
| 40208 | } |
| 40209 | |
| 40210 | _ACEOF |
| 40211 | if ac_fn_c_try_compile "$LINENO"; then : |
| 40212 | |
| 40213 | curl_cv_working_ni_withscopeid="yes" |
| 40214 | |
| 40215 | else |
| 40216 | |
| 40217 | curl_cv_working_ni_withscopeid="no" |
| 40218 | |
| 40219 | fi |
| 40220 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # AC-COMPILE-IFELSE |
| 40221 | |
| 40222 | else |
| 40223 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 40224 | /* end confdefs.h. */ |
| 40225 | |
| 40226 | |
| 40227 | #ifdef HAVE_STDLIB_H |
| 40228 | #include <stdlib.h> |
| 40229 | #endif |
| 40230 | #ifdef HAVE_STDIO_H |
| 40231 | #include <stdio.h> |
| 40232 | #endif |
| 40233 | #ifdef HAVE_SYS_TYPES_H |
| 40234 | #include <sys/types.h> |
| 40235 | #endif |
| 40236 | #ifdef HAVE_SYS_SOCKET_H |
| 40237 | #include <sys/socket.h> |
| 40238 | #endif |
| 40239 | #ifdef HAVE_NETDB_H |
| 40240 | #include <netdb.h> |
| 40241 | #endif |
| 40242 | #ifdef HAVE_NETINET_IN_H |
| 40243 | #include <netinet/in.h> |
| 40244 | #endif |
| 40245 | #ifdef HAVE_ARPA_INET_H |
| 40246 | #include <arpa/inet.h> |
| 40247 | #endif |
| 40248 | |
| 40249 | int main (void) |
| 40250 | { |
| 40251 | |
| 40252 | #if defined(NI_WITHSCOPEID) && defined(HAVE_GETNAMEINFO) |
| 40253 | #ifdef HAVE_STRUCT_SOCKADDR_STORAGE |
| 40254 | struct sockaddr_storage sa; |
| 40255 | #else |
| 40256 | unsigned char sa[256]; |
| 40257 | #endif |
| 40258 | char hostbuf[NI_MAXHOST]; |
| 40259 | int rc; |
| 40260 | GETNAMEINFO_TYPE_ARG2 salen = (GETNAMEINFO_TYPE_ARG2)sizeof(sa); |
| 40261 | GETNAMEINFO_TYPE_ARG46 hostlen = (GETNAMEINFO_TYPE_ARG46)sizeof(hostbuf); |
| 40262 | GETNAMEINFO_TYPE_ARG7 flags = NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID; |
| 40263 | int fd = socket(AF_INET6, SOCK_STREAM, 0); |
| 40264 | if(fd < 0) { |
| 40265 | perror("socket()"); |
| 40266 | return 1; /* Error creating socket */ |
| 40267 | } |
| 40268 | rc = getsockname(fd, (GETNAMEINFO_TYPE_ARG1)&sa, &salen); |
| 40269 | if(rc) { |
| 40270 | perror("getsockname()"); |
| 40271 | return 2; /* Error retrieving socket name */ |
| 40272 | } |
| 40273 | rc = getnameinfo((GETNAMEINFO_TYPE_ARG1)&sa, salen, hostbuf, hostlen, NULL, 0, flags); |
| 40274 | if(rc) { |
| 40275 | printf("rc = %s\n", gai_strerror(rc)); |
| 40276 | return 3; /* Error translating socket address */ |
| 40277 | } |
| 40278 | return 0; /* Ok, NI_WITHSCOPEID works */ |
| 40279 | #else |
| 40280 | return 4; /* Error, NI_WITHSCOPEID not defined or no getnameinfo() */ |
| 40281 | #endif |
| 40282 | |
| 40283 | ; |
| 40284 | return 0; |
| 40285 | } # AC-LANG-PROGRAM |
| 40286 | |
| 40287 | _ACEOF |
| 40288 | if ac_fn_c_try_run "$LINENO"; then : |
| 40289 | |
| 40290 | # Exit code == 0. Program worked. |
| 40291 | curl_cv_working_ni_withscopeid="yes" |
| 40292 | |
| 40293 | else |
| 40294 | |
| 40295 | # Exit code != 0. Program failed. |
| 40296 | curl_cv_working_ni_withscopeid="no" |
| 40297 | |
| 40298 | fi |
| 40299 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 40300 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 40301 | fi |
| 40302 | # AC-RUN-IFELSE |
| 40303 | |
| 40304 | fi |
| 40305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_working_ni_withscopeid" >&5 |
| 40306 | $as_echo "$curl_cv_working_ni_withscopeid" >&6; } # AC-CACHE-CHECK |
| 40307 | case "$curl_cv_working_ni_withscopeid" in |
| 40308 | yes) |
| 40309 | |
| 40310 | $as_echo "#define HAVE_NI_WITHSCOPEID 1" >>confdefs.h |
| 40311 | |
| 40312 | ;; |
| 40313 | esac |
| 40314 | |
| 40315 | fi |
| 40316 | |
| 40317 | |
| 40318 | # |
| 40319 | tst_method="unknown" |
| 40320 | |
| 40321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5 |
| 40322 | $as_echo_n "checking how to set a socket into non-blocking mode... " >&6; } |
| 40323 | if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then |
| 40324 | tst_method="fcntl O_NONBLOCK" |
| 40325 | elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then |
| 40326 | tst_method="ioctl FIONBIO" |
| 40327 | elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then |
| 40328 | tst_method="ioctlsocket FIONBIO" |
| 40329 | elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then |
| 40330 | tst_method="IoctlSocket FIONBIO" |
| 40331 | elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then |
| 40332 | tst_method="setsockopt SO_NONBLOCK" |
| 40333 | fi |
| 40334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5 |
| 40335 | $as_echo "$tst_method" >&6; } |
| 40336 | if test "$tst_method" = "unknown"; then |
| 40337 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5 |
| 40338 | $as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;} |
| 40339 | fi |
| 40340 | |
| 40341 | |
| 40342 | |
| 40343 | # Extract the first word of "perl", so it can be a program name with args. |
| 40344 | set dummy perl; ac_word=$2 |
| 40345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 40346 | $as_echo_n "checking for $ac_word... " >&6; } |
| 40347 | if ${ac_cv_path_PERL+:} false; then : |
| 40348 | $as_echo_n "(cached) " >&6 |
| 40349 | else |
| 40350 | case $PERL in |
| 40351 | [\\/]* | ?:[\\/]*) |
| 40352 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 40353 | ;; |
| 40354 | *) |
| 40355 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 40356 | as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin " |
| 40357 | for as_dir in $as_dummy |
| 40358 | do |
| 40359 | IFS=$as_save_IFS |
| 40360 | test -z "$as_dir" && as_dir=. |
| 40361 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 40362 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 40363 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
| 40364 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 40365 | break 2 |
| 40366 | fi |
| 40367 | done |
| 40368 | done |
| 40369 | IFS=$as_save_IFS |
| 40370 | |
| 40371 | ;; |
| 40372 | esac |
| 40373 | fi |
| 40374 | PERL=$ac_cv_path_PERL |
| 40375 | if test -n "$PERL"; then |
| 40376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
| 40377 | $as_echo "$PERL" >&6; } |
| 40378 | else |
| 40379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 40380 | $as_echo "no" >&6; } |
| 40381 | fi |
| 40382 | |
| 40383 | |
| 40384 | |
| 40385 | |
| 40386 | for ac_prog in gnroff nroff |
| 40387 | do |
| 40388 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 40389 | set dummy $ac_prog; ac_word=$2 |
| 40390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 40391 | $as_echo_n "checking for $ac_word... " >&6; } |
| 40392 | if ${ac_cv_path_NROFF+:} false; then : |
| 40393 | $as_echo_n "(cached) " >&6 |
| 40394 | else |
| 40395 | case $NROFF in |
| 40396 | [\\/]* | ?:[\\/]*) |
| 40397 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. |
| 40398 | ;; |
| 40399 | *) |
| 40400 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 40401 | as_dummy="$PATH:/usr/bin/:/usr/local/bin " |
| 40402 | for as_dir in $as_dummy |
| 40403 | do |
| 40404 | IFS=$as_save_IFS |
| 40405 | test -z "$as_dir" && as_dir=. |
| 40406 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 40407 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 40408 | ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" |
| 40409 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 40410 | break 2 |
| 40411 | fi |
| 40412 | done |
| 40413 | done |
| 40414 | IFS=$as_save_IFS |
| 40415 | |
| 40416 | ;; |
| 40417 | esac |
| 40418 | fi |
| 40419 | NROFF=$ac_cv_path_NROFF |
| 40420 | if test -n "$NROFF"; then |
| 40421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5 |
| 40422 | $as_echo "$NROFF" >&6; } |
| 40423 | else |
| 40424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 40425 | $as_echo "no" >&6; } |
| 40426 | fi |
| 40427 | |
| 40428 | |
| 40429 | test -n "$NROFF" && break |
| 40430 | done |
| 40431 | |
| 40432 | |
| 40433 | |
| 40434 | if test -n "$NROFF"; then |
| 40435 | |
| 40436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5 |
| 40437 | $as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; } |
| 40438 | MANOPT="-man" |
| 40439 | mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null` |
| 40440 | if test -z "$mancheck"; then |
| 40441 | MANOPT="-mandoc" |
| 40442 | mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null` |
| 40443 | if test -z "$mancheck"; then |
| 40444 | MANOPT="" |
| 40445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
| 40446 | $as_echo "failed" >&6; } |
| 40447 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5 |
| 40448 | $as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;} |
| 40449 | else |
| 40450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5 |
| 40451 | $as_echo "$MANOPT" >&6; } |
| 40452 | fi |
| 40453 | else |
| 40454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5 |
| 40455 | $as_echo "$MANOPT" >&6; } |
| 40456 | fi |
| 40457 | |
| 40458 | fi |
| 40459 | |
| 40460 | if test -z "$MANOPT" |
| 40461 | then |
| 40462 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5 |
| 40463 | $as_echo "$as_me: WARNING: disabling built-in manual" >&2;} |
| 40464 | USE_MANUAL="no"; |
| 40465 | fi |
| 40466 | |
| 40467 | |
| 40468 | if test "$USE_MANUAL" = "1"; then |
| 40469 | |
| 40470 | $as_echo "#define USE_MANUAL 1" >>confdefs.h |
| 40471 | |
| 40472 | curl_manual_msg="enabled" |
| 40473 | fi |
| 40474 | |
| 40475 | if test x"$USE_MANUAL" = x1; then |
| 40476 | USE_MANUAL_TRUE= |
| 40477 | USE_MANUAL_FALSE='#' |
| 40478 | else |
| 40479 | USE_MANUAL_TRUE='#' |
| 40480 | USE_MANUAL_FALSE= |
| 40481 | fi |
| 40482 | |
| 40483 | |
| 40484 | |
| 40485 | |
| 40486 | |
| 40487 | # |
| 40488 | if test "$want_ares" = "yes"; then |
| 40489 | clean_CPPFLAGS="$CPPFLAGS" |
| 40490 | clean_LDFLAGS="$LDFLAGS" |
| 40491 | clean_LIBS="$LIBS" |
| 40492 | embedded_ares="unknown" |
| 40493 | configure_runpath=`pwd` |
| 40494 | embedded_ares_builddir="$configure_runpath/ares" |
| 40495 | if test -n "$want_ares_path"; then |
| 40496 | ares_CPPFLAGS="-I$want_ares_path/include" |
| 40497 | ares_LDFLAGS="-L$want_ares_path/lib" |
| 40498 | ares_LIBS="-lcares" |
| 40499 | else |
| 40500 | if test -d "$srcdir/ares"; then |
| 40501 | embedded_ares="yes" |
| 40502 | subdirs="$subdirs ares" |
| 40503 | |
| 40504 | ares_CPPFLAGS="" |
| 40505 | ares_LDFLAGS="-L$embedded_ares_builddir" |
| 40506 | ares_LIBS="-lcares" |
| 40507 | else |
| 40508 | ares_CPPFLAGS="" |
| 40509 | ares_LDFLAGS="" |
| 40510 | ares_LIBS="-lcares" |
| 40511 | fi |
| 40512 | fi |
| 40513 | # |
| 40514 | CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS" |
| 40515 | LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS" |
| 40516 | LIBS="$ares_LIBS $clean_LIBS" |
| 40517 | # |
| 40518 | if test "$embedded_ares" != "yes"; then |
| 40519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5 |
| 40520 | $as_echo_n "checking that c-ares is good and recent enough... " >&6; } |
| 40521 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 40522 | /* end confdefs.h. */ |
| 40523 | |
| 40524 | |
| 40525 | #include <ares.h> |
| 40526 | /* set of dummy functions in case c-ares was built with debug */ |
| 40527 | void curl_dofree() { } |
| 40528 | void curl_sclose() { } |
| 40529 | void curl_domalloc() { } |
| 40530 | void curl_docalloc() { } |
| 40531 | void curl_socket() { } |
| 40532 | |
| 40533 | int main (void) |
| 40534 | { |
| 40535 | |
| 40536 | ares_channel channel; |
| 40537 | ares_cancel(channel); /* added in 1.2.0 */ |
| 40538 | ares_process_fd(channel, 0, 0); /* added in 1.4.0 */ |
| 40539 | ares_dup(&channel, channel); /* added in 1.6.0 */ |
| 40540 | |
| 40541 | ; |
| 40542 | return 0; |
| 40543 | } |
| 40544 | |
| 40545 | _ACEOF |
| 40546 | if ac_fn_c_try_link "$LINENO"; then : |
| 40547 | |
| 40548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 40549 | $as_echo "yes" >&6; } |
| 40550 | |
| 40551 | else |
| 40552 | |
| 40553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 40554 | $as_echo "no" >&6; } |
| 40555 | as_fn_error $? "c-ares library defective or too old" "$LINENO" 5 |
| 40556 | CPPFLAGS="$clean_CPPFLAGS" |
| 40557 | LDFLAGS="$clean_LDFLAGS" |
| 40558 | LIBS="$clean_LIBS" |
| 40559 | # prevent usage |
| 40560 | want_ares="no" |
| 40561 | |
| 40562 | fi |
| 40563 | rm -f core conftest.err conftest.$ac_objext \ |
| 40564 | conftest$ac_exeext conftest.$ac_ext |
| 40565 | fi |
| 40566 | if test "$want_ares" = "yes"; then |
| 40567 | |
| 40568 | $as_echo "#define USE_ARES 1" >>confdefs.h |
| 40569 | |
| 40570 | USE_ARES=1 |
| 40571 | |
| 40572 | curl_res_msg="c-ares" |
| 40573 | fi |
| 40574 | fi |
| 40575 | |
| 40576 | if test x$embedded_ares = xyes; then |
| 40577 | USE_EMBEDDED_ARES_TRUE= |
| 40578 | USE_EMBEDDED_ARES_FALSE='#' |
| 40579 | else |
| 40580 | USE_EMBEDDED_ARES_TRUE='#' |
| 40581 | USE_EMBEDDED_ARES_FALSE= |
| 40582 | fi |
| 40583 | |
| 40584 | |
| 40585 | if test "x$curl_cv_native_windows" != "xyes" && |
| 40586 | test "x$enable_shared" = "xyes"; then |
| 40587 | build_libhostname=yes |
| 40588 | else |
| 40589 | build_libhostname=no |
| 40590 | fi |
| 40591 | if test x$build_libhostname = xyes; then |
| 40592 | BUILD_LIBHOSTNAME_TRUE= |
| 40593 | BUILD_LIBHOSTNAME_FALSE='#' |
| 40594 | else |
| 40595 | BUILD_LIBHOSTNAME_TRUE='#' |
| 40596 | BUILD_LIBHOSTNAME_FALSE= |
| 40597 | fi |
| 40598 | |
| 40599 | |
| 40600 | |
| 40601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5 |
| 40602 | $as_echo_n "checking whether to enable the threaded resolver... " >&6; } |
| 40603 | OPT_THRES="default" |
| 40604 | # Check whether --enable-threaded_resolver was given. |
| 40605 | if test "${enable_threaded_resolver+set}" = set; then : |
| 40606 | enableval=$enable_threaded_resolver; OPT_THRES=$enableval |
| 40607 | fi |
| 40608 | |
| 40609 | case "$OPT_THRES" in |
| 40610 | yes) |
| 40611 | want_thres="yes" |
| 40612 | ;; |
| 40613 | *) |
| 40614 | want_thres="no" |
| 40615 | ;; |
| 40616 | esac |
| 40617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5 |
| 40618 | $as_echo "$want_thres" >&6; } |
| 40619 | |
| 40620 | |
| 40621 | if test "x$want_thres" = xyes && test "x$want_ares" = xyes; then |
| 40622 | as_fn_error $? "Options --enable-threaded-resolver and --enable-ares are mutually exclusive" "$LINENO" 5 |
| 40623 | fi |
| 40624 | |
| 40625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use POSIX threads for threaded resolver" >&5 |
| 40626 | $as_echo_n "checking whether to use POSIX threads for threaded resolver... " >&6; } |
| 40627 | # Check whether --enable-pthreads was given. |
| 40628 | if test "${enable_pthreads+set}" = set; then : |
| 40629 | enableval=$enable_pthreads; case "$enableval" in |
| 40630 | no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 40631 | $as_echo "no" >&6; } |
| 40632 | want_pthreads=no |
| 40633 | ;; |
| 40634 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 40635 | $as_echo "yes" >&6; } |
| 40636 | want_pthreads=yes |
| 40637 | ;; |
| 40638 | esac |
| 40639 | else |
| 40640 | |
| 40641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5 |
| 40642 | $as_echo "auto" >&6; } |
| 40643 | want_pthreads=auto |
| 40644 | |
| 40645 | |
| 40646 | fi |
| 40647 | |
| 40648 | |
| 40649 | if test "$want_pthreads" != "no"; then |
| 40650 | if test "$want_pthreads" = "yes" && test "$dontwant_rt" = "yes"; then |
| 40651 | as_fn_error $? "options --enable-pthreads and --disable-rt are mutually exclusive" "$LINENO" 5 |
| 40652 | fi |
| 40653 | if test "$dontwant_rt" != "no"; then |
| 40654 | if test "$want_pthreads" = "yes"; then |
| 40655 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-pthreads Ignored since librt is disabled." >&5 |
| 40656 | $as_echo "$as_me: WARNING: --enable-pthreads Ignored since librt is disabled." >&2;} |
| 40657 | fi |
| 40658 | want_pthreads=no |
| 40659 | fi |
| 40660 | fi |
| 40661 | |
| 40662 | if test "$want_pthreads" != "no" && test "$want_thres" != "yes"; then |
| 40663 | want_pthreads=no |
| 40664 | fi |
| 40665 | |
| 40666 | if test "$want_pthreads" != "no"; then |
| 40667 | ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" |
| 40668 | if test "x$ac_cv_header_pthread_h" = xyes; then : |
| 40669 | |
| 40670 | $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h |
| 40671 | |
| 40672 | save_CFLAGS="$CFLAGS" |
| 40673 | |
| 40674 | ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create" |
| 40675 | if test "x$ac_cv_func_pthread_create" = xyes; then : |
| 40676 | USE_THREADS_POSIX=1 |
| 40677 | fi |
| 40678 | |
| 40679 | |
| 40680 | if test "$USE_THREADS_POSIX" != "1" |
| 40681 | then |
| 40682 | CFLAGS="$CFLAGS -pthread" |
| 40683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 |
| 40684 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } |
| 40685 | if ${ac_cv_lib_pthread_pthread_create+:} false; then : |
| 40686 | $as_echo_n "(cached) " >&6 |
| 40687 | else |
| 40688 | ac_check_lib_save_LIBS=$LIBS |
| 40689 | LIBS="-lpthread $LIBS" |
| 40690 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 40691 | /* end confdefs.h. */ |
| 40692 | |
| 40693 | |
| 40694 | #ifdef __cplusplus |
| 40695 | extern "C" |
| 40696 | #endif |
| 40697 | char pthread_create (); |
| 40698 | int main (void) |
| 40699 | { |
| 40700 | return pthread_create (); |
| 40701 | ; |
| 40702 | return 0; |
| 40703 | } |
| 40704 | _ACEOF |
| 40705 | if ac_fn_c_try_link "$LINENO"; then : |
| 40706 | ac_cv_lib_pthread_pthread_create=yes |
| 40707 | else |
| 40708 | ac_cv_lib_pthread_pthread_create=no |
| 40709 | fi |
| 40710 | rm -f core conftest.err conftest.$ac_objext \ |
| 40711 | conftest$ac_exeext conftest.$ac_ext |
| 40712 | LIBS=$ac_check_lib_save_LIBS |
| 40713 | fi |
| 40714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 |
| 40715 | $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } |
| 40716 | if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : |
| 40717 | USE_THREADS_POSIX=1 |
| 40718 | else |
| 40719 | CFLAGS="$save_CFLAGS" |
| 40720 | fi |
| 40721 | |
| 40722 | fi |
| 40723 | |
| 40724 | if test "x$USE_THREADS_POSIX" = "x1" |
| 40725 | then |
| 40726 | |
| 40727 | $as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h |
| 40728 | |
| 40729 | curl_res_msg="POSIX threaded" |
| 40730 | fi |
| 40731 | |
| 40732 | fi |
| 40733 | |
| 40734 | |
| 40735 | fi |
| 40736 | |
| 40737 | if test "$want_thres" = "yes" && test "x$USE_THREADS_POSIX" != "x1"; then |
| 40738 | if test "$want_pthreads" = "yes"; then |
| 40739 | as_fn_error $? "--enable-pthreads but pthreads was not found" "$LINENO" 5 |
| 40740 | fi |
| 40741 | if test "$curl_cv_native_windows" = "yes"; then |
| 40742 | USE_THREADS_WIN32=1 |
| 40743 | |
| 40744 | $as_echo "#define USE_THREADS_WIN32 1" >>confdefs.h |
| 40745 | |
| 40746 | curl_res_msg="Win32 threaded" |
| 40747 | else |
| 40748 | as_fn_error $? "Threaded resolver enabled but no thread library found" "$LINENO" 5 |
| 40749 | fi |
| 40750 | fi |
| 40751 | |
| 40752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5 |
| 40753 | $as_echo_n "checking whether to enable verbose strings... " >&6; } |
| 40754 | # Check whether --enable-verbose was given. |
| 40755 | if test "${enable_verbose+set}" = set; then : |
| 40756 | enableval=$enable_verbose; case "$enableval" in |
| 40757 | no) |
| 40758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 40759 | $as_echo "no" >&6; } |
| 40760 | |
| 40761 | $as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h |
| 40762 | |
| 40763 | curl_verbose_msg="no" |
| 40764 | ;; |
| 40765 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 40766 | $as_echo "yes" >&6; } |
| 40767 | ;; |
| 40768 | esac |
| 40769 | else |
| 40770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 40771 | $as_echo "yes" >&6; } |
| 40772 | |
| 40773 | fi |
| 40774 | |
| 40775 | |
| 40776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5 |
| 40777 | $as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; } |
| 40778 | # Check whether --enable-sspi was given. |
| 40779 | if test "${enable_sspi+set}" = set; then : |
| 40780 | enableval=$enable_sspi; case "$enableval" in |
| 40781 | yes) |
| 40782 | if test "$curl_cv_native_windows" = "yes"; then |
| 40783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 40784 | $as_echo "yes" >&6; } |
| 40785 | |
| 40786 | $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h |
| 40787 | |
| 40788 | USE_WINDOWS_SSPI=1 |
| 40789 | |
| 40790 | curl_sspi_msg="enabled" |
| 40791 | else |
| 40792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 40793 | $as_echo "no" >&6; } |
| 40794 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5 |
| 40795 | $as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;} |
| 40796 | fi |
| 40797 | ;; |
| 40798 | *) |
| 40799 | if test "x$WINSSL_ENABLED" = "x1"; then |
| 40800 | # --with-winssl implies --enable-sspi |
| 40801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 40802 | $as_echo "yes" >&6; } |
| 40803 | else |
| 40804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 40805 | $as_echo "no" >&6; } |
| 40806 | fi |
| 40807 | ;; |
| 40808 | esac |
| 40809 | else |
| 40810 | if test "x$WINSSL_ENABLED" = "x1"; then |
| 40811 | # --with-winssl implies --enable-sspi |
| 40812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 40813 | $as_echo "yes" >&6; } |
| 40814 | else |
| 40815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 40816 | $as_echo "no" >&6; } |
| 40817 | fi |
| 40818 | |
| 40819 | fi |
| 40820 | |
| 40821 | |
| 40822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5 |
| 40823 | $as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; } |
| 40824 | # Check whether --enable-crypto-auth was given. |
| 40825 | if test "${enable_crypto_auth+set}" = set; then : |
| 40826 | enableval=$enable_crypto_auth; case "$enableval" in |
| 40827 | no) |
| 40828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 40829 | $as_echo "no" >&6; } |
| 40830 | |
| 40831 | $as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h |
| 40832 | |
| 40833 | CURL_DISABLE_CRYPTO_AUTH=1 |
| 40834 | ;; |
| 40835 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 40836 | $as_echo "yes" >&6; } |
| 40837 | ;; |
| 40838 | esac |
| 40839 | else |
| 40840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 40841 | $as_echo "yes" >&6; } |
| 40842 | |
| 40843 | fi |
| 40844 | |
| 40845 | |
| 40846 | |
| 40847 | OPT_NTLM_WB="default" |
| 40848 | # Check whether --enable-ntlm-wb was given. |
| 40849 | if test "${enable_ntlm_wb+set}" = set; then : |
| 40850 | enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval |
| 40851 | fi |
| 40852 | |
| 40853 | want_ntlm_wb_file="/usr/bin/ntlm_auth" |
| 40854 | case "$OPT_NTLM_WB" in |
| 40855 | no) |
| 40856 | want_ntlm_wb="no" |
| 40857 | ;; |
| 40858 | default) |
| 40859 | want_ntlm_wb="yes" |
| 40860 | ;; |
| 40861 | *) |
| 40862 | want_ntlm_wb="yes" |
| 40863 | if test -n "$enableval" && test "$enableval" != "yes"; then |
| 40864 | want_ntlm_wb_file="$enableval" |
| 40865 | fi |
| 40866 | ;; |
| 40867 | esac |
| 40868 | |
| 40869 | |
| 40870 | |
| 40871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5 |
| 40872 | $as_echo_n "checking whether to enable NTLM delegation to winbind's helper... " >&6; } |
| 40873 | if test "$curl_cv_native_windows" = "yes" || |
| 40874 | test "x$SSL_ENABLED" = "x"; then |
| 40875 | want_ntlm_wb_file="" |
| 40876 | want_ntlm_wb="no" |
| 40877 | fi |
| 40878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5 |
| 40879 | $as_echo "$want_ntlm_wb" >&6; } |
| 40880 | if test "$want_ntlm_wb" = "yes"; then |
| 40881 | |
| 40882 | $as_echo "#define NTLM_WB_ENABLED 1" >>confdefs.h |
| 40883 | |
| 40884 | |
| 40885 | cat >>confdefs.h <<_ACEOF |
| 40886 | #define NTLM_WB_FILE "$want_ntlm_wb_file" |
| 40887 | _ACEOF |
| 40888 | |
| 40889 | NTLM_WB_ENABLED=1 |
| 40890 | fi |
| 40891 | |
| 40892 | |
| 40893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5 |
| 40894 | $as_echo_n "checking whether to enable TLS-SRP authentication... " >&6; } |
| 40895 | # Check whether --enable-tls-srp was given. |
| 40896 | if test "${enable_tls_srp+set}" = set; then : |
| 40897 | enableval=$enable_tls_srp; case "$enableval" in |
| 40898 | no) |
| 40899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 40900 | $as_echo "no" >&6; } |
| 40901 | |
| 40902 | $as_echo "#define CURL_DISABLE_TLS_SRP 1" >>confdefs.h |
| 40903 | |
| 40904 | want_tls_srp=no |
| 40905 | ;; |
| 40906 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 40907 | $as_echo "yes" >&6; } |
| 40908 | want_tls_srp=yes |
| 40909 | ;; |
| 40910 | esac |
| 40911 | else |
| 40912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 40913 | $as_echo "yes" >&6; } |
| 40914 | want_tls_srp=yes |
| 40915 | |
| 40916 | fi |
| 40917 | |
| 40918 | |
| 40919 | if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then |
| 40920 | |
| 40921 | $as_echo "#define USE_TLS_SRP 1" >>confdefs.h |
| 40922 | |
| 40923 | USE_TLS_SRP=1 |
| 40924 | curl_tls_srp_msg="enabled" |
| 40925 | fi |
| 40926 | |
| 40927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5 |
| 40928 | $as_echo_n "checking whether to enable Unix domain sockets... " >&6; } |
| 40929 | # Check whether --enable-unix-sockets was given. |
| 40930 | if test "${enable_unix_sockets+set}" = set; then : |
| 40931 | enableval=$enable_unix_sockets; case "$enableval" in |
| 40932 | no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 40933 | $as_echo "no" >&6; } |
| 40934 | want_unix_sockets=no |
| 40935 | ;; |
| 40936 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 40937 | $as_echo "yes" >&6; } |
| 40938 | want_unix_sockets=yes |
| 40939 | ;; |
| 40940 | esac |
| 40941 | else |
| 40942 | |
| 40943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5 |
| 40944 | $as_echo "auto" >&6; } |
| 40945 | want_unix_sockets=auto |
| 40946 | |
| 40947 | |
| 40948 | fi |
| 40949 | |
| 40950 | if test "x$want_unix_sockets" != "xno"; then |
| 40951 | ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" " |
| 40952 | #include <sys/un.h> |
| 40953 | |
| 40954 | " |
| 40955 | if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes; then : |
| 40956 | |
| 40957 | |
| 40958 | $as_echo "#define USE_UNIX_SOCKETS 1" >>confdefs.h |
| 40959 | |
| 40960 | USE_UNIX_SOCKETS=1 |
| 40961 | |
| 40962 | curl_unix_sockets_msg="enabled" |
| 40963 | |
| 40964 | else |
| 40965 | |
| 40966 | if test "x$want_unix_sockets" = "xyes"; then |
| 40967 | as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5 |
| 40968 | fi |
| 40969 | |
| 40970 | fi |
| 40971 | |
| 40972 | fi |
| 40973 | |
| 40974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable support for cookies" >&5 |
| 40975 | $as_echo_n "checking whether to enable support for cookies... " >&6; } |
| 40976 | # Check whether --enable-cookies was given. |
| 40977 | if test "${enable_cookies+set}" = set; then : |
| 40978 | enableval=$enable_cookies; case "$enableval" in |
| 40979 | no) |
| 40980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 40981 | $as_echo "no" >&6; } |
| 40982 | |
| 40983 | $as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h |
| 40984 | |
| 40985 | ;; |
| 40986 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 40987 | $as_echo "yes" >&6; } |
| 40988 | ;; |
| 40989 | esac |
| 40990 | else |
| 40991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 40992 | $as_echo "yes" >&6; } |
| 40993 | |
| 40994 | fi |
| 40995 | |
| 40996 | |
| 40997 | |
| 40998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5 |
| 40999 | $as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; } |
| 41000 | CFLAG_CURL_SYMBOL_HIDING="" |
| 41001 | doing_symbol_hiding="no" |
| 41002 | if test x"$curl_cv_native_windows" != "xyes" && |
| 41003 | test "$want_symbol_hiding" = "yes" && |
| 41004 | test "$supports_symbol_hiding" = "yes"; then |
| 41005 | doing_symbol_hiding="yes" |
| 41006 | CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS" |
| 41007 | |
| 41008 | cat >>confdefs.h <<_ACEOF |
| 41009 | #define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN |
| 41010 | _ACEOF |
| 41011 | |
| 41012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 41013 | $as_echo "yes" >&6; } |
| 41014 | else |
| 41015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 41016 | $as_echo "no" >&6; } |
| 41017 | fi |
| 41018 | if test x$doing_symbol_hiding = xyes; then |
| 41019 | DOING_CURL_SYMBOL_HIDING_TRUE= |
| 41020 | DOING_CURL_SYMBOL_HIDING_FALSE='#' |
| 41021 | else |
| 41022 | DOING_CURL_SYMBOL_HIDING_TRUE='#' |
| 41023 | DOING_CURL_SYMBOL_HIDING_FALSE= |
| 41024 | fi |
| 41025 | |
| 41026 | |
| 41027 | |
| 41028 | |
| 41029 | |
| 41030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enforce SONAME bump" >&5 |
| 41031 | $as_echo_n "checking whether to enforce SONAME bump... " >&6; } |
| 41032 | # Check whether --enable-soname-bump was given. |
| 41033 | if test "${enable_soname_bump+set}" = set; then : |
| 41034 | enableval=$enable_soname_bump; case "$enableval" in |
| 41035 | yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 41036 | $as_echo "yes" >&6; } |
| 41037 | soname_bump=yes |
| 41038 | ;; |
| 41039 | *) |
| 41040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 41041 | $as_echo "no" >&6; } |
| 41042 | ;; |
| 41043 | esac |
| 41044 | else |
| 41045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $soname_bump" >&5 |
| 41046 | $as_echo "$soname_bump" >&6; } |
| 41047 | |
| 41048 | fi |
| 41049 | |
| 41050 | if test x$soname_bump = xyes; then |
| 41051 | SONAME_BUMP_TRUE= |
| 41052 | SONAME_BUMP_FALSE='#' |
| 41053 | else |
| 41054 | SONAME_BUMP_TRUE='#' |
| 41055 | SONAME_BUMP_FALSE= |
| 41056 | fi |
| 41057 | |
| 41058 | |
| 41059 | LIBCURL_LIBS=$LIBS |
| 41060 | |
| 41061 | |
| 41062 | |
| 41063 | |
| 41064 | |
| 41065 | BLANK_AT_MAKETIME= |
| 41066 | |
| 41067 | |
| 41068 | if test x$cross_compiling = xyes; then |
| 41069 | CROSSCOMPILING_TRUE= |
| 41070 | CROSSCOMPILING_FALSE='#' |
| 41071 | else |
| 41072 | CROSSCOMPILING_TRUE='#' |
| 41073 | CROSSCOMPILING_FALSE= |
| 41074 | fi |
| 41075 | |
| 41076 | |
| 41077 | ENABLE_SHARED="$enable_shared" |
| 41078 | |
| 41079 | |
| 41080 | ENABLE_STATIC="$enable_static" |
| 41081 | |
| 41082 | |
| 41083 | |
| 41084 | |
| 41085 | if test "x$OPENSSL_ENABLED" = "x1"; then |
| 41086 | SUPPORT_FEATURES="$SUPPORT_FEATURES SSL" |
| 41087 | elif test -n "$SSL_ENABLED"; then |
| 41088 | SUPPORT_FEATURES="$SUPPORT_FEATURES SSL" |
| 41089 | fi |
| 41090 | if test "x$IPV6_ENABLED" = "x1"; then |
| 41091 | SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6" |
| 41092 | fi |
| 41093 | if test "x$USE_UNIX_SOCKETS" = "x1"; then |
| 41094 | SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets" |
| 41095 | fi |
| 41096 | if test "x$HAVE_LIBZ" = "x1"; then |
| 41097 | SUPPORT_FEATURES="$SUPPORT_FEATURES libz" |
| 41098 | fi |
| 41099 | if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \ |
| 41100 | -o "x$USE_THREADS_WIN32" = "x1"; then |
| 41101 | SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS" |
| 41102 | fi |
| 41103 | if test "x$IDN_ENABLED" = "x1"; then |
| 41104 | SUPPORT_FEATURES="$SUPPORT_FEATURES IDN" |
| 41105 | fi |
| 41106 | if test "x$USE_WINDOWS_SSPI" = "x1"; then |
| 41107 | SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI" |
| 41108 | fi |
| 41109 | |
| 41110 | if test "x$HAVE_GSSAPI" = "x1"; then |
| 41111 | SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API" |
| 41112 | fi |
| 41113 | |
| 41114 | if test "x$curl_psl_msg" = "xyes"; then |
| 41115 | SUPPORT_FEATURES="$SUPPORT_FEATURES PSL" |
| 41116 | fi |
| 41117 | |
| 41118 | if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \ |
| 41119 | \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then |
| 41120 | SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO" |
| 41121 | fi |
| 41122 | |
| 41123 | if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \ |
| 41124 | \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then |
| 41125 | SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos" |
| 41126 | fi |
| 41127 | |
| 41128 | if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1"; then |
| 41129 | if test "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \ |
| 41130 | -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \ |
| 41131 | -o "x$NSS_ENABLED" = "x1" -o "x$DARWINSSL_ENABLED" = "x1"; then |
| 41132 | SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM" |
| 41133 | |
| 41134 | if test "x$CURL_DISABLE_HTTP" != "x1" -a \ |
| 41135 | "x$NTLM_WB_ENABLED" = "x1"; then |
| 41136 | SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB" |
| 41137 | fi |
| 41138 | fi |
| 41139 | fi |
| 41140 | |
| 41141 | if test "x$USE_TLS_SRP" = "x1"; then |
| 41142 | SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP" |
| 41143 | fi |
| 41144 | |
| 41145 | if test "x$USE_NGHTTP2" = "x1"; then |
| 41146 | SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2" |
| 41147 | fi |
| 41148 | |
| 41149 | if test "x$OPENSSL_ENABLED" = "x1" -o "x$GNUTLS_ENABLED" = "x1" \ |
| 41150 | -o "x$NSS_ENABLED" = "x1"; then |
| 41151 | SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy" |
| 41152 | fi |
| 41153 | |
| 41154 | |
| 41155 | |
| 41156 | if test "x$CURL_DISABLE_HTTP" != "x1"; then |
| 41157 | SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP" |
| 41158 | if test "x$SSL_ENABLED" = "x1"; then |
| 41159 | SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS" |
| 41160 | fi |
| 41161 | fi |
| 41162 | if test "x$CURL_DISABLE_FTP" != "x1"; then |
| 41163 | SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP" |
| 41164 | if test "x$SSL_ENABLED" = "x1"; then |
| 41165 | SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS" |
| 41166 | fi |
| 41167 | fi |
| 41168 | if test "x$CURL_DISABLE_FILE" != "x1"; then |
| 41169 | SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE" |
| 41170 | fi |
| 41171 | if test "x$CURL_DISABLE_TELNET" != "x1"; then |
| 41172 | SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET" |
| 41173 | fi |
| 41174 | if test "x$CURL_DISABLE_LDAP" != "x1"; then |
| 41175 | SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP" |
| 41176 | if test "x$CURL_DISABLE_LDAPS" != "x1"; then |
| 41177 | if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") || |
| 41178 | (test "x$USE_OPENLDAP" != "x1" && test "x$HAVE_LDAP_SSL" = "x1"); then |
| 41179 | SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS" |
| 41180 | fi |
| 41181 | fi |
| 41182 | fi |
| 41183 | if test "x$CURL_DISABLE_DICT" != "x1"; then |
| 41184 | SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT" |
| 41185 | fi |
| 41186 | if test "x$CURL_DISABLE_TFTP" != "x1"; then |
| 41187 | SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP" |
| 41188 | fi |
| 41189 | if test "x$CURL_DISABLE_GOPHER" != "x1"; then |
| 41190 | SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER" |
| 41191 | fi |
| 41192 | if test "x$CURL_DISABLE_POP3" != "x1"; then |
| 41193 | SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3" |
| 41194 | if test "x$SSL_ENABLED" = "x1"; then |
| 41195 | SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S" |
| 41196 | fi |
| 41197 | fi |
| 41198 | if test "x$CURL_DISABLE_IMAP" != "x1"; then |
| 41199 | SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP" |
| 41200 | if test "x$SSL_ENABLED" = "x1"; then |
| 41201 | SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS" |
| 41202 | fi |
| 41203 | fi |
| 41204 | if test "x$CURL_DISABLE_SMB" != "x1" \ |
| 41205 | -a "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" \ |
| 41206 | -a \( "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \ |
| 41207 | -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \ |
| 41208 | -o "x$NSS_ENABLED" = "x1" -o "x$DARWINSSL_ENABLED" = "x1" \); then |
| 41209 | SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB" |
| 41210 | if test "x$SSL_ENABLED" = "x1"; then |
| 41211 | SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS" |
| 41212 | fi |
| 41213 | fi |
| 41214 | if test "x$CURL_DISABLE_SMTP" != "x1"; then |
| 41215 | SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP" |
| 41216 | if test "x$SSL_ENABLED" = "x1"; then |
| 41217 | SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS" |
| 41218 | fi |
| 41219 | fi |
| 41220 | if test "x$USE_LIBSSH2" = "x1"; then |
| 41221 | SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP" |
| 41222 | SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP" |
| 41223 | fi |
| 41224 | if test "x$CURL_DISABLE_RTSP" != "x1"; then |
| 41225 | SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP" |
| 41226 | fi |
| 41227 | if test "x$USE_LIBRTMP" = "x1"; then |
| 41228 | SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP" |
| 41229 | fi |
| 41230 | |
| 41231 | SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '` |
| 41232 | |
| 41233 | |
| 41234 | |
| 41235 | |
| 41236 | squeeze CFLAGS |
| 41237 | squeeze CPPFLAGS |
| 41238 | squeeze DEFS |
| 41239 | squeeze LDFLAGS |
| 41240 | squeeze LIBS |
| 41241 | |
| 41242 | squeeze LIBCURL_LIBS |
| 41243 | squeeze CURL_NETWORK_LIBS |
| 41244 | squeeze CURL_NETWORK_AND_TIME_LIBS |
| 41245 | |
| 41246 | squeeze SUPPORT_FEATURES |
| 41247 | squeeze SUPPORT_PROTOCOLS |
| 41248 | |
| 41249 | |
| 41250 | |
| 41251 | xc_bad_var_libs=no |
| 41252 | for xc_word in $LIBS; do |
| 41253 | case "$xc_word" in |
| 41254 | -l* | --library=*) |
| 41255 | : |
| 41256 | ;; |
| 41257 | *) |
| 41258 | xc_bad_var_libs=yes |
| 41259 | ;; |
| 41260 | esac |
| 41261 | done |
| 41262 | if test $xc_bad_var_libs = yes; then |
| 41263 | { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5 |
| 41264 | $as_echo "$as_me: using LIBS: $LIBS" >&6;} |
| 41265 | { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5 |
| 41266 | $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;} |
| 41267 | fi |
| 41268 | |
| 41269 | |
| 41270 | xc_bad_var_ldflags=no |
| 41271 | for xc_word in $LDFLAGS; do |
| 41272 | case "$xc_word" in |
| 41273 | -D*) |
| 41274 | xc_bad_var_ldflags=yes |
| 41275 | ;; |
| 41276 | -U*) |
| 41277 | xc_bad_var_ldflags=yes |
| 41278 | ;; |
| 41279 | -I*) |
| 41280 | xc_bad_var_ldflags=yes |
| 41281 | ;; |
| 41282 | -l* | --library=*) |
| 41283 | xc_bad_var_ldflags=yes |
| 41284 | ;; |
| 41285 | esac |
| 41286 | done |
| 41287 | if test $xc_bad_var_ldflags = yes; then |
| 41288 | { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5 |
| 41289 | $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;} |
| 41290 | xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not" |
| 41291 | for xc_word in $LDFLAGS; do |
| 41292 | case "$xc_word" in |
| 41293 | -D*) |
| 41294 | { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5 |
| 41295 | $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;} |
| 41296 | ;; |
| 41297 | -U*) |
| 41298 | { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5 |
| 41299 | $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;} |
| 41300 | ;; |
| 41301 | -I*) |
| 41302 | { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5 |
| 41303 | $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;} |
| 41304 | ;; |
| 41305 | -l* | --library=*) |
| 41306 | { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5 |
| 41307 | $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;} |
| 41308 | ;; |
| 41309 | esac |
| 41310 | done |
| 41311 | fi |
| 41312 | |
| 41313 | |
| 41314 | xc_bad_var_cppflags=no |
| 41315 | for xc_word in $CPPFLAGS; do |
| 41316 | case "$xc_word" in |
| 41317 | -rpath*) |
| 41318 | xc_bad_var_cppflags=yes |
| 41319 | ;; |
| 41320 | -L* | --library-path=*) |
| 41321 | xc_bad_var_cppflags=yes |
| 41322 | ;; |
| 41323 | -l* | --library=*) |
| 41324 | xc_bad_var_cppflags=yes |
| 41325 | ;; |
| 41326 | esac |
| 41327 | done |
| 41328 | if test $xc_bad_var_cppflags = yes; then |
| 41329 | { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5 |
| 41330 | $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;} |
| 41331 | xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not" |
| 41332 | for xc_word in $CPPFLAGS; do |
| 41333 | case "$xc_word" in |
| 41334 | -rpath*) |
| 41335 | { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5 |
| 41336 | $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;} |
| 41337 | ;; |
| 41338 | -L* | --library-path=*) |
| 41339 | { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5 |
| 41340 | $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;} |
| 41341 | ;; |
| 41342 | -l* | --library=*) |
| 41343 | { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5 |
| 41344 | $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;} |
| 41345 | ;; |
| 41346 | esac |
| 41347 | done |
| 41348 | fi |
| 41349 | |
| 41350 | |
| 41351 | xc_bad_var_cflags=no |
| 41352 | for xc_word in $CFLAGS; do |
| 41353 | case "$xc_word" in |
| 41354 | -D*) |
| 41355 | xc_bad_var_cflags=yes |
| 41356 | ;; |
| 41357 | -U*) |
| 41358 | xc_bad_var_cflags=yes |
| 41359 | ;; |
| 41360 | -I*) |
| 41361 | xc_bad_var_cflags=yes |
| 41362 | ;; |
| 41363 | -rpath*) |
| 41364 | xc_bad_var_cflags=yes |
| 41365 | ;; |
| 41366 | -L* | --library-path=*) |
| 41367 | xc_bad_var_cflags=yes |
| 41368 | ;; |
| 41369 | -l* | --library=*) |
| 41370 | xc_bad_var_cflags=yes |
| 41371 | ;; |
| 41372 | esac |
| 41373 | done |
| 41374 | if test $xc_bad_var_cflags = yes; then |
| 41375 | { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5 |
| 41376 | $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;} |
| 41377 | xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not" |
| 41378 | for xc_word in $CFLAGS; do |
| 41379 | case "$xc_word" in |
| 41380 | -D*) |
| 41381 | { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5 |
| 41382 | $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;} |
| 41383 | ;; |
| 41384 | -U*) |
| 41385 | { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5 |
| 41386 | $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;} |
| 41387 | ;; |
| 41388 | -I*) |
| 41389 | { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5 |
| 41390 | $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;} |
| 41391 | ;; |
| 41392 | -rpath*) |
| 41393 | { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5 |
| 41394 | $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;} |
| 41395 | ;; |
| 41396 | -L* | --library-path=*) |
| 41397 | { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5 |
| 41398 | $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;} |
| 41399 | ;; |
| 41400 | -l* | --library=*) |
| 41401 | { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5 |
| 41402 | $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;} |
| 41403 | ;; |
| 41404 | esac |
| 41405 | done |
| 41406 | fi |
| 41407 | |
| 41408 | if test $xc_bad_var_libs = yes || |
| 41409 | test $xc_bad_var_cflags = yes || |
| 41410 | test $xc_bad_var_ldflags = yes || |
| 41411 | test $xc_bad_var_cppflags = yes; then |
| 41412 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5 |
| 41413 | $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;} |
| 41414 | fi |
| 41415 | |
| 41416 | |
| 41417 | if test "x$want_curldebug_assumed" = "xyes" && |
| 41418 | test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then |
| 41419 | ac_configure_args="$ac_configure_args --enable-curldebug" |
| 41420 | fi |
| 41421 | |
| 41422 | ac_config_files="$ac_config_files Makefile docs/Makefile docs/examples/Makefile docs/libcurl/Makefile docs/libcurl/opts/Makefile docs/cmdline-opts/Makefile include/Makefile include/curl/Makefile src/Makefile lib/Makefile scripts/Makefile lib/libcurl.vers tests/Makefile tests/certs/Makefile tests/certs/scripts/Makefile tests/data/Makefile tests/server/Makefile tests/libtest/Makefile tests/unit/Makefile packages/Makefile packages/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" |
| 41423 | |
| 41424 | cat >confcache <<\_ACEOF |
| 41425 | # This file is a shell script that caches the results of configure |
| 41426 | # tests run on this system so they can be shared between configure |
| 41427 | # scripts and configure runs, see configure's option --config-cache. |
| 41428 | # It is not useful on other systems. If it contains results you don't |
| 41429 | # want to keep, you may remove or edit it. |
| 41430 | # |
| 41431 | # config.status only pays attention to the cache file if you give it |
| 41432 | # the --recheck option to rerun configure. |
| 41433 | # |
| 41434 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 41435 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 41436 | # following values. |
| 41437 | |
| 41438 | _ACEOF |
| 41439 | |
| 41440 | # The following way of writing the cache mishandles newlines in values, |
| 41441 | # but we know of no workaround that is simple, portable, and efficient. |
| 41442 | # So, we kill variables containing newlines. |
| 41443 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 41444 | # and sets the high bit in the cache file unless we assign to the vars. |
| 41445 | ( |
| 41446 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 41447 | eval ac_val=\$$ac_var |
| 41448 | case $ac_val in #( |
| 41449 | *${as_nl}*) |
| 41450 | case $ac_var in #( |
| 41451 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 41452 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 41453 | esac |
| 41454 | case $ac_var in #( |
| 41455 | _ | IFS | as_nl) ;; #( |
| 41456 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 41457 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 41458 | esac ;; |
| 41459 | esac |
| 41460 | done |
| 41461 | |
| 41462 | (set) 2>&1 | |
| 41463 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 41464 | *${as_nl}ac_space=\ *) |
| 41465 | # `set' does not quote correctly, so add quotes: double-quote |
| 41466 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
| 41467 | sed -n \ |
| 41468 | "s/'/'\\\\''/g; |
| 41469 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 41470 | ;; #( |
| 41471 | *) |
| 41472 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 41473 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 41474 | ;; |
| 41475 | esac | |
| 41476 | sort |
| 41477 | ) | |
| 41478 | sed ' |
| 41479 | /^ac_cv_env_/b end |
| 41480 | t clear |
| 41481 | :clear |
| 41482 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 41483 | t end |
| 41484 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 41485 | :end' >>confcache |
| 41486 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 41487 | if test -w "$cache_file"; then |
| 41488 | if test "x$cache_file" != "x/dev/null"; then |
| 41489 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 41490 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
| 41491 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 41492 | cat confcache >"$cache_file" |
| 41493 | else |
| 41494 | case $cache_file in #( |
| 41495 | */* | ?:*) |
| 41496 | mv -f confcache "$cache_file"$$ && |
| 41497 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 41498 | *) |
| 41499 | mv -f confcache "$cache_file" ;; |
| 41500 | esac |
| 41501 | fi |
| 41502 | fi |
| 41503 | else |
| 41504 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 41505 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 41506 | fi |
| 41507 | fi |
| 41508 | rm -f confcache |
| 41509 | |
| 41510 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 41511 | # Let make expand exec_prefix. |
| 41512 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 41513 | |
| 41514 | DEFS=-DHAVE_CONFIG_H |
| 41515 | |
| 41516 | ac_libobjs= |
| 41517 | ac_ltlibobjs= |
| 41518 | U= |
| 41519 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 41520 | # 1. Remove the extension, and $U if already installed. |
| 41521 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 41522 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 41523 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 41524 | # will be set to the directory where LIBOBJS objects are built. |
| 41525 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 41526 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 41527 | done |
| 41528 | LIBOBJS=$ac_libobjs |
| 41529 | |
| 41530 | LTLIBOBJS=$ac_ltlibobjs |
| 41531 | |
| 41532 | |
| 41533 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| 41534 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
| 41535 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 41536 | fi |
| 41537 | if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then |
| 41538 | as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined. |
| 41539 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 41540 | fi |
| 41541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
| 41542 | $as_echo_n "checking that generated files are newer than configure... " >&6; } |
| 41543 | if test -n "$am_sleep_pid"; then |
| 41544 | # Hide warnings about reused PIDs. |
| 41545 | wait $am_sleep_pid 2>/dev/null |
| 41546 | fi |
| 41547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
| 41548 | $as_echo "done" >&6; } |
| 41549 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 41550 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
| 41551 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 41552 | fi |
| 41553 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 41554 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
| 41555 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 41556 | fi |
| 41557 | if test -n "$EXEEXT"; then |
| 41558 | am__EXEEXT_TRUE= |
| 41559 | am__EXEEXT_FALSE='#' |
| 41560 | else |
| 41561 | am__EXEEXT_TRUE='#' |
| 41562 | am__EXEEXT_FALSE= |
| 41563 | fi |
| 41564 | |
| 41565 | if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then |
| 41566 | as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined. |
| 41567 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 41568 | fi |
| 41569 | if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then |
| 41570 | as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined. |
| 41571 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 41572 | fi |
| 41573 | if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then |
| 41574 | as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined. |
| 41575 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 41576 | fi |
| 41577 | if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then |
| 41578 | as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined. |
| 41579 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 41580 | fi |
| 41581 | if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then |
| 41582 | as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined. |
| 41583 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 41584 | fi |
| 41585 | if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then |
| 41586 | as_fn_error $? "conditional \"CURLDEBUG\" was never defined. |
| 41587 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 41588 | fi |
| 41589 | if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then |
| 41590 | as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined. |
| 41591 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 41592 | fi |
| 41593 | if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then |
| 41594 | as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined. |
| 41595 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 41596 | fi |
| 41597 | if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then |
| 41598 | as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined. |
| 41599 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 41600 | fi |
| 41601 | if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then |
| 41602 | as_fn_error $? "conditional \"USE_LIBPSL\" was never defined. |
| 41603 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 41604 | fi |
| 41605 | if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then |
| 41606 | as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined. |
| 41607 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 41608 | fi |
| 41609 | if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then |
| 41610 | as_fn_error $? "conditional \"USE_MANUAL\" was never defined. |
| 41611 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 41612 | fi |
| 41613 | if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then |
| 41614 | as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined. |
| 41615 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 41616 | fi |
| 41617 | if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then |
| 41618 | as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined. |
| 41619 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 41620 | fi |
| 41621 | if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then |
| 41622 | as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined. |
| 41623 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 41624 | fi |
| 41625 | if test -z "${SONAME_BUMP_TRUE}" && test -z "${SONAME_BUMP_FALSE}"; then |
| 41626 | as_fn_error $? "conditional \"SONAME_BUMP\" was never defined. |
| 41627 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 41628 | fi |
| 41629 | if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then |
| 41630 | as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined. |
| 41631 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 41632 | fi |
| 41633 | |
| 41634 | : "${CONFIG_STATUS=./config.status}" |
| 41635 | ac_write_fail=0 |
| 41636 | ac_clean_files_save=$ac_clean_files |
| 41637 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 41638 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 41639 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 41640 | as_write_fail=0 |
| 41641 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 41642 | #! $SHELL |
| 41643 | # Generated by $as_me. |
| 41644 | # Run this file to recreate the current configuration. |
| 41645 | # Compiler output produced by configure, useful for debugging |
| 41646 | # configure, is in config.log if it exists. |
| 41647 | |
| 41648 | debug=false |
| 41649 | ac_cs_recheck=false |
| 41650 | ac_cs_silent=false |
| 41651 | |
| 41652 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 41653 | export SHELL |
| 41654 | _ASEOF |
| 41655 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 41656 | ## -------------------- ## |
| 41657 | ## M4sh Initialization. ## |
| 41658 | ## -------------------- ## |
| 41659 | |
| 41660 | # Be more Bourne compatible |
| 41661 | DUALCASE=1; export DUALCASE # for MKS sh |
| 41662 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 41663 | emulate sh |
| 41664 | NULLCMD=: |
| 41665 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 41666 | # is contrary to our usage. Disable this feature. |
| 41667 | alias -g '${1+"$@"}'='"$@"' |
| 41668 | setopt NO_GLOB_SUBST |
| 41669 | else |
| 41670 | case `(set -o) 2>/dev/null` in #( |
| 41671 | *posix*) : |
| 41672 | set -o posix ;; #( |
| 41673 | *) : |
| 41674 | ;; |
| 41675 | esac |
| 41676 | fi |
| 41677 | |
| 41678 | |
| 41679 | as_nl=' |
| 41680 | ' |
| 41681 | export as_nl |
| 41682 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 41683 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 41684 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 41685 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 41686 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 41687 | # but without wasting forks for bash or zsh. |
| 41688 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 41689 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 41690 | as_echo='print -r --' |
| 41691 | as_echo_n='print -rn --' |
| 41692 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 41693 | as_echo='printf %s\n' |
| 41694 | as_echo_n='printf %s' |
| 41695 | else |
| 41696 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 41697 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 41698 | as_echo_n='/usr/ucb/echo -n' |
| 41699 | else |
| 41700 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 41701 | as_echo_n_body='eval |
| 41702 | arg=$1; |
| 41703 | case $arg in #( |
| 41704 | *"$as_nl"*) |
| 41705 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 41706 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 41707 | esac; |
| 41708 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 41709 | ' |
| 41710 | export as_echo_n_body |
| 41711 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 41712 | fi |
| 41713 | export as_echo_body |
| 41714 | as_echo='sh -c $as_echo_body as_echo' |
| 41715 | fi |
| 41716 | |
| 41717 | |
| 41718 | |
| 41719 | # IFS |
| 41720 | # We need space, tab and new line, in precisely that order. Quoting is |
| 41721 | # there to prevent editors from complaining about space-tab. |
| 41722 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 41723 | # splitting by setting IFS to empty value.) |
| 41724 | IFS=" "" $as_nl" |
| 41725 | |
| 41726 | # Find who we are. Look in the path if we contain no directory separator. |
| 41727 | as_myself= |
| 41728 | case $0 in #(( |
| 41729 | *[\\/]* ) as_myself=$0 ;; |
| 41730 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 41731 | for as_dir in $PATH |
| 41732 | do |
| 41733 | IFS=$as_save_IFS |
| 41734 | test -z "$as_dir" && as_dir=. |
| 41735 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 41736 | done |
| 41737 | IFS=$as_save_IFS |
| 41738 | |
| 41739 | ;; |
| 41740 | esac |
| 41741 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 41742 | # in which case we are not to be found in the path. |
| 41743 | if test "x$as_myself" = x; then |
| 41744 | as_myself=$0 |
| 41745 | fi |
| 41746 | if test ! -f "$as_myself"; then |
| 41747 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 41748 | exit 1 |
| 41749 | fi |
| 41750 | |
| 41751 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 41752 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 41753 | # suppresses any "Segmentation fault" message there. '((' could |
| 41754 | # trigger a bug in pdksh 5.2.14. |
| 41755 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 41756 | do eval test x\${$as_var+set} = xset \ |
| 41757 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 41758 | done |
| 41759 | PS1='$ ' |
| 41760 | PS2='> ' |
| 41761 | PS4='+ ' |
| 41762 | |
| 41763 | # NLS nuisances. |
| 41764 | LC_ALL=C |
| 41765 | export LC_ALL |
| 41766 | LANGUAGE=C |
| 41767 | export LANGUAGE |
| 41768 | |
| 41769 | # CDPATH. |
| 41770 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 41771 | |
| 41772 | |
| 41773 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 41774 | # ---------------------------------------- |
| 41775 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 41776 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 41777 | # script with STATUS, using 1 if that was 0. |
| 41778 | as_fn_error () |
| 41779 | { |
| 41780 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 41781 | if test "$4"; then |
| 41782 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 41783 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 41784 | fi |
| 41785 | $as_echo "$as_me: error: $2" >&2 |
| 41786 | as_fn_exit $as_status |
| 41787 | } # as_fn_error |
| 41788 | |
| 41789 | |
| 41790 | # as_fn_set_status STATUS |
| 41791 | # ----------------------- |
| 41792 | # Set $? to STATUS, without forking. |
| 41793 | as_fn_set_status () |
| 41794 | { |
| 41795 | return $1 |
| 41796 | } # as_fn_set_status |
| 41797 | |
| 41798 | # as_fn_exit STATUS |
| 41799 | # ----------------- |
| 41800 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 41801 | as_fn_exit () |
| 41802 | { |
| 41803 | set +e |
| 41804 | as_fn_set_status $1 |
| 41805 | exit $1 |
| 41806 | } # as_fn_exit |
| 41807 | |
| 41808 | # as_fn_unset VAR |
| 41809 | # --------------- |
| 41810 | # Portably unset VAR. |
| 41811 | as_fn_unset () |
| 41812 | { |
| 41813 | { eval $1=; unset $1;} |
| 41814 | } |
| 41815 | as_unset=as_fn_unset |
| 41816 | # as_fn_append VAR VALUE |
| 41817 | # ---------------------- |
| 41818 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 41819 | # advantage of any shell optimizations that allow amortized linear growth over |
| 41820 | # repeated appends, instead of the typical quadratic growth present in naive |
| 41821 | # implementations. |
| 41822 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 41823 | eval 'as_fn_append () |
| 41824 | { |
| 41825 | eval $1+=\$2 |
| 41826 | }' |
| 41827 | else |
| 41828 | as_fn_append () |
| 41829 | { |
| 41830 | eval $1=\$$1\$2 |
| 41831 | } |
| 41832 | fi # as_fn_append |
| 41833 | |
| 41834 | # as_fn_arith ARG... |
| 41835 | # ------------------ |
| 41836 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 41837 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 41838 | # must be portable across $(()) and expr. |
| 41839 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 41840 | eval 'as_fn_arith () |
| 41841 | { |
| 41842 | as_val=$(( $* )) |
| 41843 | }' |
| 41844 | else |
| 41845 | as_fn_arith () |
| 41846 | { |
| 41847 | as_val=`expr "$@" || test $? -eq 1` |
| 41848 | } |
| 41849 | fi # as_fn_arith |
| 41850 | |
| 41851 | |
| 41852 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 41853 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 41854 | as_expr=expr |
| 41855 | else |
| 41856 | as_expr=false |
| 41857 | fi |
| 41858 | |
| 41859 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 41860 | as_basename=basename |
| 41861 | else |
| 41862 | as_basename=false |
| 41863 | fi |
| 41864 | |
| 41865 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 41866 | as_dirname=dirname |
| 41867 | else |
| 41868 | as_dirname=false |
| 41869 | fi |
| 41870 | |
| 41871 | as_me=`$as_basename -- "$0" || |
| 41872 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 41873 | X"$0" : 'X\(//\)$' \| \ |
| 41874 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 41875 | $as_echo X/"$0" | |
| 41876 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 41877 | s//\1/ |
| 41878 | q |
| 41879 | } |
| 41880 | /^X\/\(\/\/\)$/{ |
| 41881 | s//\1/ |
| 41882 | q |
| 41883 | } |
| 41884 | /^X\/\(\/\).*/{ |
| 41885 | s//\1/ |
| 41886 | q |
| 41887 | } |
| 41888 | s/.*/./; q'` |
| 41889 | |
| 41890 | # Avoid depending upon Character Ranges. |
| 41891 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 41892 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 41893 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 41894 | as_cr_digits='0123456789' |
| 41895 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 41896 | |
| 41897 | ECHO_C= ECHO_N= ECHO_T= |
| 41898 | case `echo -n x` in #((((( |
| 41899 | -n*) |
| 41900 | case `echo 'xy\c'` in |
| 41901 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 41902 | xy) ECHO_C='\c';; |
| 41903 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 41904 | ECHO_T=' ';; |
| 41905 | esac;; |
| 41906 | *) |
| 41907 | ECHO_N='-n';; |
| 41908 | esac |
| 41909 | |
| 41910 | rm -f conf$$ conf$$.exe conf$$.file |
| 41911 | if test -d conf$$.dir; then |
| 41912 | rm -f conf$$.dir/conf$$.file |
| 41913 | else |
| 41914 | rm -f conf$$.dir |
| 41915 | mkdir conf$$.dir 2>/dev/null |
| 41916 | fi |
| 41917 | if (echo >conf$$.file) 2>/dev/null; then |
| 41918 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 41919 | as_ln_s='ln -s' |
| 41920 | # ... but there are two gotchas: |
| 41921 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 41922 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 41923 | # In both cases, we have to default to `cp -pR'. |
| 41924 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 41925 | as_ln_s='cp -pR' |
| 41926 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 41927 | as_ln_s=ln |
| 41928 | else |
| 41929 | as_ln_s='cp -pR' |
| 41930 | fi |
| 41931 | else |
| 41932 | as_ln_s='cp -pR' |
| 41933 | fi |
| 41934 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 41935 | rmdir conf$$.dir 2>/dev/null |
| 41936 | |
| 41937 | |
| 41938 | # as_fn_mkdir_p |
| 41939 | # ------------- |
| 41940 | # Create "$as_dir" as a directory, including parents if necessary. |
| 41941 | as_fn_mkdir_p () |
| 41942 | { |
| 41943 | |
| 41944 | case $as_dir in #( |
| 41945 | -*) as_dir=./$as_dir;; |
| 41946 | esac |
| 41947 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 41948 | as_dirs= |
| 41949 | while :; do |
| 41950 | case $as_dir in #( |
| 41951 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 41952 | *) as_qdir=$as_dir;; |
| 41953 | esac |
| 41954 | as_dirs="'$as_qdir' $as_dirs" |
| 41955 | as_dir=`$as_dirname -- "$as_dir" || |
| 41956 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 41957 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 41958 | X"$as_dir" : 'X\(//\)$' \| \ |
| 41959 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 41960 | $as_echo X"$as_dir" | |
| 41961 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 41962 | s//\1/ |
| 41963 | q |
| 41964 | } |
| 41965 | /^X\(\/\/\)[^/].*/{ |
| 41966 | s//\1/ |
| 41967 | q |
| 41968 | } |
| 41969 | /^X\(\/\/\)$/{ |
| 41970 | s//\1/ |
| 41971 | q |
| 41972 | } |
| 41973 | /^X\(\/\).*/{ |
| 41974 | s//\1/ |
| 41975 | q |
| 41976 | } |
| 41977 | s/.*/./; q'` |
| 41978 | test -d "$as_dir" && break |
| 41979 | done |
| 41980 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 41981 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 41982 | |
| 41983 | |
| 41984 | } # as_fn_mkdir_p |
| 41985 | if mkdir -p . 2>/dev/null; then |
| 41986 | as_mkdir_p='mkdir -p "$as_dir"' |
| 41987 | else |
| 41988 | test -d ./-p && rmdir ./-p |
| 41989 | as_mkdir_p=false |
| 41990 | fi |
| 41991 | |
| 41992 | |
| 41993 | # as_fn_executable_p FILE |
| 41994 | # ----------------------- |
| 41995 | # Test if FILE is an executable regular file. |
| 41996 | as_fn_executable_p () |
| 41997 | { |
| 41998 | test -f "$1" && test -x "$1" |
| 41999 | } # as_fn_executable_p |
| 42000 | as_test_x='test -x' |
| 42001 | as_executable_p=as_fn_executable_p |
| 42002 | |
| 42003 | # Sed expression to map a string onto a valid CPP name. |
| 42004 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 42005 | |
| 42006 | # Sed expression to map a string onto a valid variable name. |
| 42007 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 42008 | |
| 42009 | |
| 42010 | exec 6>&1 |
| 42011 | ## ----------------------------------- ## |
| 42012 | ## Main body of $CONFIG_STATUS script. ## |
| 42013 | ## ----------------------------------- ## |
| 42014 | _ASEOF |
| 42015 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 42016 | |
| 42017 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 42018 | # Save the log message, to keep $0 and so on meaningful, and to |
| 42019 | # report actual input values of CONFIG_FILES etc. instead of their |
| 42020 | # values after options handling. |
| 42021 | ac_log=" |
| 42022 | This file was extended by curl $as_me -, which was |
| 42023 | generated by GNU Autoconf 2.69. Invocation command line was |
| 42024 | |
| 42025 | CONFIG_FILES = $CONFIG_FILES |
| 42026 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 42027 | CONFIG_LINKS = $CONFIG_LINKS |
| 42028 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 42029 | $ $0 $@ |
| 42030 | |
| 42031 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 42032 | " |
| 42033 | |
| 42034 | _ACEOF |
| 42035 | |
| 42036 | case $ac_config_files in *" |
| 42037 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 42038 | esac |
| 42039 | |
| 42040 | case $ac_config_headers in *" |
| 42041 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 42042 | esac |
| 42043 | |
| 42044 | |
| 42045 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 42046 | # Files that config.status was made for. |
| 42047 | config_files="$ac_config_files" |
| 42048 | config_headers="$ac_config_headers" |
| 42049 | config_commands="$ac_config_commands" |
| 42050 | |
| 42051 | _ACEOF |
| 42052 | |
| 42053 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 42054 | ac_cs_usage="\ |
| 42055 | \`$as_me' instantiates files and other configuration actions |
| 42056 | from templates according to the current configuration. Unless the files |
| 42057 | and actions are specified as TAGs, all are instantiated by default. |
| 42058 | |
| 42059 | Usage: $0 [OPTION]... [TAG]... |
| 42060 | |
| 42061 | -h, --help print this help, then exit |
| 42062 | -V, --version print version number and configuration settings, then exit |
| 42063 | --config print configuration, then exit |
| 42064 | -q, --quiet, --silent |
| 42065 | do not print progress messages |
| 42066 | -d, --debug don't remove temporary files |
| 42067 | --recheck update $as_me by reconfiguring in the same conditions |
| 42068 | --file=FILE[:TEMPLATE] |
| 42069 | instantiate the configuration file FILE |
| 42070 | --header=FILE[:TEMPLATE] |
| 42071 | instantiate the configuration header FILE |
| 42072 | |
| 42073 | Configuration files: |
| 42074 | $config_files |
| 42075 | |
| 42076 | Configuration headers: |
| 42077 | $config_headers |
| 42078 | |
| 42079 | Configuration commands: |
| 42080 | $config_commands |
| 42081 | |
| 42082 | Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>." |
| 42083 | |
| 42084 | _ACEOF |
| 42085 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 42086 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
| 42087 | ac_cs_version="\\ |
| 42088 | curl config.status - |
| 42089 | configured by $0, generated by GNU Autoconf 2.69, |
| 42090 | with options \\"\$ac_cs_config\\" |
| 42091 | |
| 42092 | Copyright (C) 2012 Free Software Foundation, Inc. |
| 42093 | This config.status script is free software; the Free Software Foundation |
| 42094 | gives unlimited permission to copy, distribute and modify it." |
| 42095 | |
| 42096 | ac_pwd='$ac_pwd' |
| 42097 | srcdir='$srcdir' |
| 42098 | INSTALL='$INSTALL' |
| 42099 | MKDIR_P='$MKDIR_P' |
| 42100 | AWK='$AWK' |
| 42101 | test -n "\$AWK" || AWK=awk |
| 42102 | _ACEOF |
| 42103 | |
| 42104 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 42105 | # The default lists apply if the user does not specify any file. |
| 42106 | ac_need_defaults=: |
| 42107 | while test $# != 0 |
| 42108 | do |
| 42109 | case $1 in |
| 42110 | --*=?*) |
| 42111 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 42112 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 42113 | ac_shift=: |
| 42114 | ;; |
| 42115 | --*=) |
| 42116 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 42117 | ac_optarg= |
| 42118 | ac_shift=: |
| 42119 | ;; |
| 42120 | *) |
| 42121 | ac_option=$1 |
| 42122 | ac_optarg=$2 |
| 42123 | ac_shift=shift |
| 42124 | ;; |
| 42125 | esac |
| 42126 | |
| 42127 | case $ac_option in |
| 42128 | # Handling of the options. |
| 42129 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 42130 | ac_cs_recheck=: ;; |
| 42131 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 42132 | $as_echo "$ac_cs_version"; exit ;; |
| 42133 | --config | --confi | --conf | --con | --co | --c ) |
| 42134 | $as_echo "$ac_cs_config"; exit ;; |
| 42135 | --debug | --debu | --deb | --de | --d | -d ) |
| 42136 | debug=: ;; |
| 42137 | --file | --fil | --fi | --f ) |
| 42138 | $ac_shift |
| 42139 | case $ac_optarg in |
| 42140 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 42141 | '') as_fn_error $? "missing file argument" ;; |
| 42142 | esac |
| 42143 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 42144 | ac_need_defaults=false;; |
| 42145 | --header | --heade | --head | --hea ) |
| 42146 | $ac_shift |
| 42147 | case $ac_optarg in |
| 42148 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 42149 | esac |
| 42150 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 42151 | ac_need_defaults=false;; |
| 42152 | --he | --h) |
| 42153 | # Conflict between --help and --header |
| 42154 | as_fn_error $? "ambiguous option: \`$1' |
| 42155 | Try \`$0 --help' for more information.";; |
| 42156 | --help | --hel | -h ) |
| 42157 | $as_echo "$ac_cs_usage"; exit ;; |
| 42158 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 42159 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 42160 | ac_cs_silent=: ;; |
| 42161 | |
| 42162 | # This is an error. |
| 42163 | -*) as_fn_error $? "unrecognized option: \`$1' |
| 42164 | Try \`$0 --help' for more information." ;; |
| 42165 | |
| 42166 | *) as_fn_append ac_config_targets " $1" |
| 42167 | ac_need_defaults=false ;; |
| 42168 | |
| 42169 | esac |
| 42170 | shift |
| 42171 | done |
| 42172 | |
| 42173 | ac_configure_extra_args= |
| 42174 | |
| 42175 | if $ac_cs_silent; then |
| 42176 | exec 6>/dev/null |
| 42177 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 42178 | fi |
| 42179 | |
| 42180 | _ACEOF |
| 42181 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 42182 | if \$ac_cs_recheck; then |
| 42183 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 42184 | shift |
| 42185 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 42186 | CONFIG_SHELL='$SHELL' |
| 42187 | export CONFIG_SHELL |
| 42188 | exec "\$@" |
| 42189 | fi |
| 42190 | |
| 42191 | _ACEOF |
| 42192 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 42193 | exec 5>>config.log |
| 42194 | { |
| 42195 | echo |
| 42196 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 42197 | ## Running $as_me. ## |
| 42198 | _ASBOX |
| 42199 | $as_echo "$ac_log" |
| 42200 | } >&5 |
| 42201 | |
| 42202 | _ACEOF |
| 42203 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 42204 | # |
| 42205 | # INIT-COMMANDS |
| 42206 | # |
| 42207 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 42208 | |
| 42209 | |
| 42210 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 42211 | # if CDPATH is set. |
| 42212 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 42213 | |
| 42214 | sed_quote_subst='$sed_quote_subst' |
| 42215 | double_quote_subst='$double_quote_subst' |
| 42216 | delay_variable_subst='$delay_variable_subst' |
| 42217 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
| 42218 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' |
| 42219 | AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' |
| 42220 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' |
| 42221 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' |
| 42222 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
| 42223 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' |
| 42224 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' |
| 42225 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' |
| 42226 | shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' |
| 42227 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
| 42228 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' |
| 42229 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
| 42230 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
| 42231 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' |
| 42232 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' |
| 42233 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' |
| 42234 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' |
| 42235 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' |
| 42236 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
| 42237 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' |
| 42238 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' |
| 42239 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' |
| 42240 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' |
| 42241 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' |
| 42242 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
| 42243 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' |
| 42244 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' |
| 42245 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' |
| 42246 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' |
| 42247 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' |
| 42248 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' |
| 42249 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' |
| 42250 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 42251 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 42252 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' |
| 42253 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' |
| 42254 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' |
| 42255 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' |
| 42256 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' |
| 42257 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' |
| 42258 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' |
| 42259 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' |
| 42260 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' |
| 42261 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' |
| 42262 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' |
| 42263 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' |
| 42264 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 42265 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 42266 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 42267 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' |
| 42268 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' |
| 42269 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' |
| 42270 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' |
| 42271 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' |
| 42272 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' |
| 42273 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' |
| 42274 | lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' |
| 42275 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
| 42276 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' |
| 42277 | lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' |
| 42278 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 42279 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' |
| 42280 | lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' |
| 42281 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
| 42282 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' |
| 42283 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' |
| 42284 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' |
| 42285 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' |
| 42286 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
| 42287 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' |
| 42288 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' |
| 42289 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' |
| 42290 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' |
| 42291 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' |
| 42292 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' |
| 42293 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' |
| 42294 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' |
| 42295 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' |
| 42296 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' |
| 42297 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 42298 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' |
| 42299 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' |
| 42300 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 42301 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 42302 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' |
| 42303 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' |
| 42304 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 42305 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 42306 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 42307 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' |
| 42308 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 42309 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' |
| 42310 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 42311 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 42312 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 42313 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
| 42314 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' |
| 42315 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' |
| 42316 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' |
| 42317 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 42318 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' |
| 42319 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' |
| 42320 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' |
| 42321 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
| 42322 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' |
| 42323 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' |
| 42324 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' |
| 42325 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' |
| 42326 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' |
| 42327 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 42328 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' |
| 42329 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' |
| 42330 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' |
| 42331 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' |
| 42332 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' |
| 42333 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 42334 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' |
| 42335 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' |
| 42336 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' |
| 42337 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' |
| 42338 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' |
| 42339 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 42340 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 42341 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' |
| 42342 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' |
| 42343 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' |
| 42344 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' |
| 42345 | configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' |
| 42346 | configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' |
| 42347 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
| 42348 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' |
| 42349 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' |
| 42350 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' |
| 42351 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' |
| 42352 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' |
| 42353 | |
| 42354 | LTCC='$LTCC' |
| 42355 | LTCFLAGS='$LTCFLAGS' |
| 42356 | compiler='$compiler_DEFAULT' |
| 42357 | |
| 42358 | # A function that is used when there is no print builtin or printf. |
| 42359 | func_fallback_echo () |
| 42360 | { |
| 42361 | eval 'cat <<_LTECHO_EOF |
| 42362 | \$1 |
| 42363 | _LTECHO_EOF' |
| 42364 | } |
| 42365 | |
| 42366 | # Quote evaled strings. |
| 42367 | for var in AS \ |
| 42368 | DLLTOOL \ |
| 42369 | OBJDUMP \ |
| 42370 | SHELL \ |
| 42371 | ECHO \ |
| 42372 | PATH_SEPARATOR \ |
| 42373 | SED \ |
| 42374 | GREP \ |
| 42375 | EGREP \ |
| 42376 | FGREP \ |
| 42377 | LD \ |
| 42378 | NM \ |
| 42379 | LN_S \ |
| 42380 | lt_SP2NL \ |
| 42381 | lt_NL2SP \ |
| 42382 | reload_flag \ |
| 42383 | deplibs_check_method \ |
| 42384 | file_magic_cmd \ |
| 42385 | file_magic_glob \ |
| 42386 | want_nocaseglob \ |
| 42387 | sharedlib_from_linklib_cmd \ |
| 42388 | AR \ |
| 42389 | AR_FLAGS \ |
| 42390 | archiver_list_spec \ |
| 42391 | STRIP \ |
| 42392 | RANLIB \ |
| 42393 | CC \ |
| 42394 | CFLAGS \ |
| 42395 | compiler \ |
| 42396 | lt_cv_sys_global_symbol_pipe \ |
| 42397 | lt_cv_sys_global_symbol_to_cdecl \ |
| 42398 | lt_cv_sys_global_symbol_to_import \ |
| 42399 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 42400 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
| 42401 | lt_cv_nm_interface \ |
| 42402 | nm_file_list_spec \ |
| 42403 | lt_cv_truncate_bin \ |
| 42404 | lt_prog_compiler_no_builtin_flag \ |
| 42405 | lt_prog_compiler_pic \ |
| 42406 | lt_prog_compiler_wl \ |
| 42407 | lt_prog_compiler_static \ |
| 42408 | lt_cv_prog_compiler_c_o \ |
| 42409 | need_locks \ |
| 42410 | MANIFEST_TOOL \ |
| 42411 | DSYMUTIL \ |
| 42412 | NMEDIT \ |
| 42413 | LIPO \ |
| 42414 | OTOOL \ |
| 42415 | OTOOL64 \ |
| 42416 | shrext_cmds \ |
| 42417 | export_dynamic_flag_spec \ |
| 42418 | whole_archive_flag_spec \ |
| 42419 | compiler_needs_object \ |
| 42420 | with_gnu_ld \ |
| 42421 | allow_undefined_flag \ |
| 42422 | no_undefined_flag \ |
| 42423 | hardcode_libdir_flag_spec \ |
| 42424 | hardcode_libdir_separator \ |
| 42425 | exclude_expsyms \ |
| 42426 | include_expsyms \ |
| 42427 | file_list_spec \ |
| 42428 | variables_saved_for_relink \ |
| 42429 | libname_spec \ |
| 42430 | library_names_spec \ |
| 42431 | soname_spec \ |
| 42432 | install_override_mode \ |
| 42433 | finish_eval \ |
| 42434 | old_striplib \ |
| 42435 | striplib; do |
| 42436 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 42437 | *[\\\\\\\`\\"\\\$]*) |
| 42438 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
| 42439 | ;; |
| 42440 | *) |
| 42441 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 42442 | ;; |
| 42443 | esac |
| 42444 | done |
| 42445 | |
| 42446 | # Double-quote double-evaled strings. |
| 42447 | for var in reload_cmds \ |
| 42448 | old_postinstall_cmds \ |
| 42449 | old_postuninstall_cmds \ |
| 42450 | old_archive_cmds \ |
| 42451 | extract_expsyms_cmds \ |
| 42452 | old_archive_from_new_cmds \ |
| 42453 | old_archive_from_expsyms_cmds \ |
| 42454 | archive_cmds \ |
| 42455 | archive_expsym_cmds \ |
| 42456 | module_cmds \ |
| 42457 | module_expsym_cmds \ |
| 42458 | export_symbols_cmds \ |
| 42459 | prelink_cmds \ |
| 42460 | postlink_cmds \ |
| 42461 | postinstall_cmds \ |
| 42462 | postuninstall_cmds \ |
| 42463 | finish_cmds \ |
| 42464 | sys_lib_search_path_spec \ |
| 42465 | configure_time_dlsearch_path \ |
| 42466 | configure_time_lt_sys_library_path; do |
| 42467 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 42468 | *[\\\\\\\`\\"\\\$]*) |
| 42469 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
| 42470 | ;; |
| 42471 | *) |
| 42472 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 42473 | ;; |
| 42474 | esac |
| 42475 | done |
| 42476 | |
| 42477 | ac_aux_dir='$ac_aux_dir' |
| 42478 | |
| 42479 | # See if we are running on zsh, and set the options that allow our |
| 42480 | # commands through without removal of \ escapes INIT. |
| 42481 | if test -n "\${ZSH_VERSION+set}"; then |
| 42482 | setopt NO_GLOB_SUBST |
| 42483 | fi |
| 42484 | |
| 42485 | |
| 42486 | PACKAGE='$PACKAGE' |
| 42487 | VERSION='$VERSION' |
| 42488 | RM='$RM' |
| 42489 | ofile='$ofile' |
| 42490 | |
| 42491 | |
| 42492 | |
| 42493 | |
| 42494 | _ACEOF |
| 42495 | |
| 42496 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 42497 | |
| 42498 | # Handling of arguments. |
| 42499 | for ac_config_target in $ac_config_targets |
| 42500 | do |
| 42501 | case $ac_config_target in |
| 42502 | "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;; |
| 42503 | "include/curl/curlbuild.h") CONFIG_HEADERS="$CONFIG_HEADERS include/curl/curlbuild.h" ;; |
| 42504 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 42505 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
| 42506 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 42507 | "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;; |
| 42508 | "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;; |
| 42509 | "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;; |
| 42510 | "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;; |
| 42511 | "docs/cmdline-opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/cmdline-opts/Makefile" ;; |
| 42512 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
| 42513 | "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;; |
| 42514 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
| 42515 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; |
| 42516 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
| 42517 | "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;; |
| 42518 | "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; |
| 42519 | "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;; |
| 42520 | "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;; |
| 42521 | "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;; |
| 42522 | "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;; |
| 42523 | "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;; |
| 42524 | "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;; |
| 42525 | "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;; |
| 42526 | "packages/Win32/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/Makefile" ;; |
| 42527 | "packages/Win32/cygwin/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;; |
| 42528 | "packages/Linux/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/Makefile" ;; |
| 42529 | "packages/Linux/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/Makefile" ;; |
| 42530 | "packages/Linux/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;; |
| 42531 | "packages/Linux/RPM/curl-ssl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;; |
| 42532 | "packages/Solaris/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Solaris/Makefile" ;; |
| 42533 | "packages/EPM/curl.list") CONFIG_FILES="$CONFIG_FILES packages/EPM/curl.list" ;; |
| 42534 | "packages/EPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/EPM/Makefile" ;; |
| 42535 | "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;; |
| 42536 | "packages/AIX/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/Makefile" ;; |
| 42537 | "packages/AIX/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/Makefile" ;; |
| 42538 | "packages/AIX/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/curl.spec" ;; |
| 42539 | "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;; |
| 42540 | "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;; |
| 42541 | |
| 42542 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| 42543 | esac |
| 42544 | done |
| 42545 | |
| 42546 | |
| 42547 | # If the user did not use the arguments to specify the items to instantiate, |
| 42548 | # then the envvar interface is used. Set only those that are not. |
| 42549 | # We use the long form for the default assignment because of an extremely |
| 42550 | # bizarre bug on SunOS 4.1.3. |
| 42551 | if $ac_need_defaults; then |
| 42552 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 42553 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 42554 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 42555 | fi |
| 42556 | |
| 42557 | # Have a temporary directory for convenience. Make it in the build tree |
| 42558 | # simply because there is no reason against having it here, and in addition, |
| 42559 | # creating and moving files from /tmp can sometimes cause problems. |
| 42560 | # Hook for its removal unless debugging. |
| 42561 | # Note that there is a small window in which the directory will not be cleaned: |
| 42562 | # after its creation but before its name has been assigned to `$tmp'. |
| 42563 | $debug || |
| 42564 | { |
| 42565 | tmp= ac_tmp= |
| 42566 | trap 'exit_status=$? |
| 42567 | : "${ac_tmp:=$tmp}" |
| 42568 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| 42569 | ' 0 |
| 42570 | trap 'as_fn_exit 1' 1 2 13 15 |
| 42571 | } |
| 42572 | # Create a (secure) tmp directory for tmp files. |
| 42573 | |
| 42574 | { |
| 42575 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 42576 | test -d "$tmp" |
| 42577 | } || |
| 42578 | { |
| 42579 | tmp=./conf$$-$RANDOM |
| 42580 | (umask 077 && mkdir "$tmp") |
| 42581 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 42582 | ac_tmp=$tmp |
| 42583 | |
| 42584 | # Set up the scripts for CONFIG_FILES section. |
| 42585 | # No need to generate them if there are no CONFIG_FILES. |
| 42586 | # This happens for instance with `./config.status config.h'. |
| 42587 | if test -n "$CONFIG_FILES"; then |
| 42588 | |
| 42589 | |
| 42590 | ac_cr=`echo X | tr X '\015'` |
| 42591 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 42592 | # But we know of no other shell where ac_cr would be empty at this |
| 42593 | # point, so we can use a bashism as a fallback. |
| 42594 | if test "x$ac_cr" = x; then |
| 42595 | eval ac_cr=\$\'\\r\' |
| 42596 | fi |
| 42597 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 42598 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 42599 | ac_cs_awk_cr='\\r' |
| 42600 | else |
| 42601 | ac_cs_awk_cr=$ac_cr |
| 42602 | fi |
| 42603 | |
| 42604 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| 42605 | _ACEOF |
| 42606 | |
| 42607 | |
| 42608 | { |
| 42609 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 42610 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 42611 | echo "_ACEOF" |
| 42612 | } >conf$$subs.sh || |
| 42613 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 42614 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| 42615 | ac_delim='%!_!# ' |
| 42616 | for ac_last_try in false false false false false :; do |
| 42617 | . ./conf$$subs.sh || |
| 42618 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 42619 | |
| 42620 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 42621 | if test $ac_delim_n = $ac_delim_num; then |
| 42622 | break |
| 42623 | elif $ac_last_try; then |
| 42624 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 42625 | else |
| 42626 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 42627 | fi |
| 42628 | done |
| 42629 | rm -f conf$$subs.sh |
| 42630 | |
| 42631 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 42632 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| 42633 | _ACEOF |
| 42634 | sed -n ' |
| 42635 | h |
| 42636 | s/^/S["/; s/!.*/"]=/ |
| 42637 | p |
| 42638 | g |
| 42639 | s/^[^!]*!// |
| 42640 | :repl |
| 42641 | t repl |
| 42642 | s/'"$ac_delim"'$// |
| 42643 | t delim |
| 42644 | :nl |
| 42645 | h |
| 42646 | s/\(.\{148\}\)..*/\1/ |
| 42647 | t more1 |
| 42648 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 42649 | p |
| 42650 | n |
| 42651 | b repl |
| 42652 | :more1 |
| 42653 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 42654 | p |
| 42655 | g |
| 42656 | s/.\{148\}// |
| 42657 | t nl |
| 42658 | :delim |
| 42659 | h |
| 42660 | s/\(.\{148\}\)..*/\1/ |
| 42661 | t more2 |
| 42662 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 42663 | p |
| 42664 | b |
| 42665 | :more2 |
| 42666 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 42667 | p |
| 42668 | g |
| 42669 | s/.\{148\}// |
| 42670 | t delim |
| 42671 | ' <conf$$subs.awk | sed ' |
| 42672 | /^[^""]/{ |
| 42673 | N |
| 42674 | s/\n// |
| 42675 | } |
| 42676 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 42677 | rm -f conf$$subs.awk |
| 42678 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 42679 | _ACAWK |
| 42680 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| 42681 | for (key in S) S_is_set[key] = 1 |
| 42682 | FS = "" |
| 42683 | |
| 42684 | } |
| 42685 | { |
| 42686 | line = $ 0 |
| 42687 | nfields = split(line, field, "@") |
| 42688 | substed = 0 |
| 42689 | len = length(field[1]) |
| 42690 | for (i = 2; i < nfields; i++) { |
| 42691 | key = field[i] |
| 42692 | keylen = length(key) |
| 42693 | if (S_is_set[key]) { |
| 42694 | value = S[key] |
| 42695 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 42696 | len += length(value) + length(field[++i]) |
| 42697 | substed = 1 |
| 42698 | } else |
| 42699 | len += 1 + keylen |
| 42700 | } |
| 42701 | |
| 42702 | print line |
| 42703 | } |
| 42704 | |
| 42705 | _ACAWK |
| 42706 | _ACEOF |
| 42707 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 42708 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 42709 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 42710 | else |
| 42711 | cat |
| 42712 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 42713 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
| 42714 | _ACEOF |
| 42715 | |
| 42716 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 42717 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 42718 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 42719 | # (actually we leave an empty line to preserve line numbers). |
| 42720 | if test "x$srcdir" = x.; then |
| 42721 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 42722 | h |
| 42723 | s/// |
| 42724 | s/^/:/ |
| 42725 | s/[ ]*$/:/ |
| 42726 | s/:\$(srcdir):/:/g |
| 42727 | s/:\${srcdir}:/:/g |
| 42728 | s/:@srcdir@:/:/g |
| 42729 | s/^:*// |
| 42730 | s/:*$// |
| 42731 | x |
| 42732 | s/\(=[ ]*\).*/\1/ |
| 42733 | G |
| 42734 | s/\n// |
| 42735 | s/^[^=]*=[ ]*$// |
| 42736 | }' |
| 42737 | fi |
| 42738 | |
| 42739 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 42740 | fi # test -n "$CONFIG_FILES" |
| 42741 | |
| 42742 | # Set up the scripts for CONFIG_HEADERS section. |
| 42743 | # No need to generate them if there are no CONFIG_HEADERS. |
| 42744 | # This happens for instance with `./config.status Makefile'. |
| 42745 | if test -n "$CONFIG_HEADERS"; then |
| 42746 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
| 42747 | BEGIN { |
| 42748 | _ACEOF |
| 42749 | |
| 42750 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 42751 | # here-document in config.status, that substitutes the proper values into |
| 42752 | # config.h.in to produce config.h. |
| 42753 | |
| 42754 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 42755 | # handling of long lines. |
| 42756 | ac_delim='%!_!# ' |
| 42757 | for ac_last_try in false false :; do |
| 42758 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 42759 | if test -z "$ac_tt"; then |
| 42760 | break |
| 42761 | elif $ac_last_try; then |
| 42762 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 42763 | else |
| 42764 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 42765 | fi |
| 42766 | done |
| 42767 | |
| 42768 | # For the awk script, D is an array of macro values keyed by name, |
| 42769 | # likewise P contains macro parameters if any. Preserve backslash |
| 42770 | # newline sequences. |
| 42771 | |
| 42772 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 42773 | sed -n ' |
| 42774 | s/.\{148\}/&'"$ac_delim"'/g |
| 42775 | t rset |
| 42776 | :rset |
| 42777 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 42778 | t def |
| 42779 | d |
| 42780 | :def |
| 42781 | s/\\$// |
| 42782 | t bsnl |
| 42783 | s/["\\]/\\&/g |
| 42784 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 42785 | D["\1"]=" \3"/p |
| 42786 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 42787 | d |
| 42788 | :bsnl |
| 42789 | s/["\\]/\\&/g |
| 42790 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 42791 | D["\1"]=" \3\\\\\\n"\\/p |
| 42792 | t cont |
| 42793 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 42794 | t cont |
| 42795 | d |
| 42796 | :cont |
| 42797 | n |
| 42798 | s/.\{148\}/&'"$ac_delim"'/g |
| 42799 | t clear |
| 42800 | :clear |
| 42801 | s/\\$// |
| 42802 | t bsnlc |
| 42803 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 42804 | d |
| 42805 | :bsnlc |
| 42806 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 42807 | b cont |
| 42808 | ' <confdefs.h | sed ' |
| 42809 | s/'"$ac_delim"'/"\\\ |
| 42810 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 42811 | |
| 42812 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 42813 | for (key in D) D_is_set[key] = 1 |
| 42814 | FS = "" |
| 42815 | } |
| 42816 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 42817 | line = \$ 0 |
| 42818 | split(line, arg, " ") |
| 42819 | if (arg[1] == "#") { |
| 42820 | defundef = arg[2] |
| 42821 | mac1 = arg[3] |
| 42822 | } else { |
| 42823 | defundef = substr(arg[1], 2) |
| 42824 | mac1 = arg[2] |
| 42825 | } |
| 42826 | split(mac1, mac2, "(") #) |
| 42827 | macro = mac2[1] |
| 42828 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 42829 | if (D_is_set[macro]) { |
| 42830 | # Preserve the white space surrounding the "#". |
| 42831 | print prefix "define", macro P[macro] D[macro] |
| 42832 | next |
| 42833 | } else { |
| 42834 | # Replace #undef with comments. This is necessary, for example, |
| 42835 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 42836 | # on some systems where configure will not decide to define it. |
| 42837 | if (defundef == "undef") { |
| 42838 | print "/*", prefix defundef, macro, "*/" |
| 42839 | next |
| 42840 | } |
| 42841 | } |
| 42842 | } |
| 42843 | { print } |
| 42844 | _ACAWK |
| 42845 | _ACEOF |
| 42846 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 42847 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
| 42848 | fi # test -n "$CONFIG_HEADERS" |
| 42849 | |
| 42850 | |
| 42851 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 42852 | shift |
| 42853 | for ac_tag |
| 42854 | do |
| 42855 | case $ac_tag in |
| 42856 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 42857 | esac |
| 42858 | case $ac_mode$ac_tag in |
| 42859 | :[FHL]*:*);; |
| 42860 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| 42861 | :[FH]-) ac_tag=-:-;; |
| 42862 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 42863 | esac |
| 42864 | ac_save_IFS=$IFS |
| 42865 | IFS=: |
| 42866 | set x $ac_tag |
| 42867 | IFS=$ac_save_IFS |
| 42868 | shift |
| 42869 | ac_file=$1 |
| 42870 | shift |
| 42871 | |
| 42872 | case $ac_mode in |
| 42873 | :L) ac_source=$1;; |
| 42874 | :[FH]) |
| 42875 | ac_file_inputs= |
| 42876 | for ac_f |
| 42877 | do |
| 42878 | case $ac_f in |
| 42879 | -) ac_f="$ac_tmp/stdin";; |
| 42880 | *) # Look for the file first in the build tree, then in the source tree |
| 42881 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 42882 | # because $ac_f cannot contain `:'. |
| 42883 | test -f "$ac_f" || |
| 42884 | case $ac_f in |
| 42885 | [\\/$]*) false;; |
| 42886 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 42887 | esac || |
| 42888 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 42889 | esac |
| 42890 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 42891 | as_fn_append ac_file_inputs " '$ac_f'" |
| 42892 | done |
| 42893 | |
| 42894 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 42895 | # use $as_me), people would be surprised to read: |
| 42896 | # /* config.h. Generated by config.status. */ |
| 42897 | configure_input='Generated from '` |
| 42898 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 42899 | `' by configure.' |
| 42900 | if test x"$ac_file" != x-; then |
| 42901 | configure_input="$ac_file. $configure_input" |
| 42902 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 42903 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 42904 | fi |
| 42905 | # Neutralize special characters interpreted by sed in replacement strings. |
| 42906 | case $configure_input in #( |
| 42907 | *\&* | *\|* | *\\* ) |
| 42908 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 42909 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 42910 | *) ac_sed_conf_input=$configure_input;; |
| 42911 | esac |
| 42912 | |
| 42913 | case $ac_tag in |
| 42914 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 42915 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| 42916 | esac |
| 42917 | ;; |
| 42918 | esac |
| 42919 | |
| 42920 | ac_dir=`$as_dirname -- "$ac_file" || |
| 42921 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 42922 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 42923 | X"$ac_file" : 'X\(//\)$' \| \ |
| 42924 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 42925 | $as_echo X"$ac_file" | |
| 42926 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 42927 | s//\1/ |
| 42928 | q |
| 42929 | } |
| 42930 | /^X\(\/\/\)[^/].*/{ |
| 42931 | s//\1/ |
| 42932 | q |
| 42933 | } |
| 42934 | /^X\(\/\/\)$/{ |
| 42935 | s//\1/ |
| 42936 | q |
| 42937 | } |
| 42938 | /^X\(\/\).*/{ |
| 42939 | s//\1/ |
| 42940 | q |
| 42941 | } |
| 42942 | s/.*/./; q'` |
| 42943 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 42944 | ac_builddir=. |
| 42945 | |
| 42946 | case "$ac_dir" in |
| 42947 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 42948 | *) |
| 42949 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 42950 | # A ".." for each directory in $ac_dir_suffix. |
| 42951 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 42952 | case $ac_top_builddir_sub in |
| 42953 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 42954 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 42955 | esac ;; |
| 42956 | esac |
| 42957 | ac_abs_top_builddir=$ac_pwd |
| 42958 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 42959 | # for backward compatibility: |
| 42960 | ac_top_builddir=$ac_top_build_prefix |
| 42961 | |
| 42962 | case $srcdir in |
| 42963 | .) # We are building in place. |
| 42964 | ac_srcdir=. |
| 42965 | ac_top_srcdir=$ac_top_builddir_sub |
| 42966 | ac_abs_top_srcdir=$ac_pwd ;; |
| 42967 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 42968 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 42969 | ac_top_srcdir=$srcdir |
| 42970 | ac_abs_top_srcdir=$srcdir ;; |
| 42971 | *) # Relative name. |
| 42972 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 42973 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 42974 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 42975 | esac |
| 42976 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 42977 | |
| 42978 | |
| 42979 | case $ac_mode in |
| 42980 | :F) |
| 42981 | # |
| 42982 | # CONFIG_FILE |
| 42983 | # |
| 42984 | |
| 42985 | case $INSTALL in |
| 42986 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 42987 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 42988 | esac |
| 42989 | ac_MKDIR_P=$MKDIR_P |
| 42990 | case $MKDIR_P in |
| 42991 | [\\/$]* | ?:[\\/]* ) ;; |
| 42992 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 42993 | esac |
| 42994 | _ACEOF |
| 42995 | |
| 42996 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 42997 | # If the template does not know about datarootdir, expand it. |
| 42998 | # FIXME: This hack should be removed a few years after 2.60. |
| 42999 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 43000 | ac_sed_dataroot=' |
| 43001 | /datarootdir/ { |
| 43002 | p |
| 43003 | q |
| 43004 | } |
| 43005 | /@datadir@/p |
| 43006 | /@docdir@/p |
| 43007 | /@infodir@/p |
| 43008 | /@localedir@/p |
| 43009 | /@mandir@/p' |
| 43010 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 43011 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 43012 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 43013 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 43014 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 43015 | _ACEOF |
| 43016 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 43017 | ac_datarootdir_hack=' |
| 43018 | s&@datadir@&$datadir&g |
| 43019 | s&@docdir@&$docdir&g |
| 43020 | s&@infodir@&$infodir&g |
| 43021 | s&@localedir@&$localedir&g |
| 43022 | s&@mandir@&$mandir&g |
| 43023 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 43024 | esac |
| 43025 | _ACEOF |
| 43026 | |
| 43027 | # Neutralize VPATH when `$srcdir' = `.'. |
| 43028 | # Shell code in configure.ac might set extrasub. |
| 43029 | # FIXME: do we really want to maintain this feature? |
| 43030 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 43031 | ac_sed_extra="$ac_vpsub |
| 43032 | $extrasub |
| 43033 | _ACEOF |
| 43034 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 43035 | :t |
| 43036 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 43037 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 43038 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 43039 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 43040 | s&@srcdir@&$ac_srcdir&;t t |
| 43041 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 43042 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 43043 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 43044 | s&@builddir@&$ac_builddir&;t t |
| 43045 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 43046 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 43047 | s&@INSTALL@&$ac_INSTALL&;t t |
| 43048 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
| 43049 | $ac_datarootdir_hack |
| 43050 | " |
| 43051 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 43052 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 43053 | |
| 43054 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 43055 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 43056 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 43057 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
| 43058 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 43059 | which seems to be undefined. Please make sure it is defined" >&5 |
| 43060 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 43061 | which seems to be undefined. Please make sure it is defined" >&2;} |
| 43062 | |
| 43063 | rm -f "$ac_tmp/stdin" |
| 43064 | case $ac_file in |
| 43065 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 43066 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| 43067 | esac \ |
| 43068 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 43069 | ;; |
| 43070 | :H) |
| 43071 | # |
| 43072 | # CONFIG_HEADER |
| 43073 | # |
| 43074 | if test x"$ac_file" != x-; then |
| 43075 | { |
| 43076 | $as_echo "/* $configure_input */" \ |
| 43077 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 43078 | } >"$ac_tmp/config.h" \ |
| 43079 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 43080 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
| 43081 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 43082 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 43083 | else |
| 43084 | rm -f "$ac_file" |
| 43085 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 43086 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 43087 | fi |
| 43088 | else |
| 43089 | $as_echo "/* $configure_input */" \ |
| 43090 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 43091 | || as_fn_error $? "could not create -" "$LINENO" 5 |
| 43092 | fi |
| 43093 | # Compute "$ac_file"'s index in $config_headers. |
| 43094 | _am_arg="$ac_file" |
| 43095 | _am_stamp_count=1 |
| 43096 | for _am_header in $config_headers :; do |
| 43097 | case $_am_header in |
| 43098 | $_am_arg | $_am_arg:* ) |
| 43099 | break ;; |
| 43100 | * ) |
| 43101 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 43102 | esac |
| 43103 | done |
| 43104 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 43105 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 43106 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 43107 | X"$_am_arg" : 'X\(//\)$' \| \ |
| 43108 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 43109 | $as_echo X"$_am_arg" | |
| 43110 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 43111 | s//\1/ |
| 43112 | q |
| 43113 | } |
| 43114 | /^X\(\/\/\)[^/].*/{ |
| 43115 | s//\1/ |
| 43116 | q |
| 43117 | } |
| 43118 | /^X\(\/\/\)$/{ |
| 43119 | s//\1/ |
| 43120 | q |
| 43121 | } |
| 43122 | /^X\(\/\).*/{ |
| 43123 | s//\1/ |
| 43124 | q |
| 43125 | } |
| 43126 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 43127 | ;; |
| 43128 | |
| 43129 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 43130 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
| 43131 | ;; |
| 43132 | esac |
| 43133 | |
| 43134 | |
| 43135 | case $ac_file$ac_mode in |
| 43136 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 43137 | # Older Autoconf quotes --file arguments for eval, but not when files |
| 43138 | # are listed without --file. Let's play safe and only enable the eval |
| 43139 | # if we detect the quoting. |
| 43140 | case $CONFIG_FILES in |
| 43141 | *\'*) eval set x "$CONFIG_FILES" ;; |
| 43142 | *) set x $CONFIG_FILES ;; |
| 43143 | esac |
| 43144 | shift |
| 43145 | for mf |
| 43146 | do |
| 43147 | # Strip MF so we end up with the name of the file. |
| 43148 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 43149 | # Check whether this is an Automake generated Makefile or not. |
| 43150 | # We used to match only the files named 'Makefile.in', but |
| 43151 | # some people rename them; so instead we look at the file content. |
| 43152 | # Grep'ing the first line is not enough: some people post-process |
| 43153 | # each Makefile.in and add a new line on top of each file to say so. |
| 43154 | # Grep'ing the whole file is not good either: AIX grep has a line |
| 43155 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 43156 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
| 43157 | dirpart=`$as_dirname -- "$mf" || |
| 43158 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 43159 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 43160 | X"$mf" : 'X\(//\)$' \| \ |
| 43161 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
| 43162 | $as_echo X"$mf" | |
| 43163 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 43164 | s//\1/ |
| 43165 | q |
| 43166 | } |
| 43167 | /^X\(\/\/\)[^/].*/{ |
| 43168 | s//\1/ |
| 43169 | q |
| 43170 | } |
| 43171 | /^X\(\/\/\)$/{ |
| 43172 | s//\1/ |
| 43173 | q |
| 43174 | } |
| 43175 | /^X\(\/\).*/{ |
| 43176 | s//\1/ |
| 43177 | q |
| 43178 | } |
| 43179 | s/.*/./; q'` |
| 43180 | else |
| 43181 | continue |
| 43182 | fi |
| 43183 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 43184 | # from the Makefile without running 'make'. |
| 43185 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 43186 | test -z "$DEPDIR" && continue |
| 43187 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 43188 | test -z "$am__include" && continue |
| 43189 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 43190 | # Find all dependency output files, they are included files with |
| 43191 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 43192 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 43193 | # expansion. |
| 43194 | for file in `sed -n " |
| 43195 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 43196 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
| 43197 | # Make sure the directory exists. |
| 43198 | test -f "$dirpart/$file" && continue |
| 43199 | fdir=`$as_dirname -- "$file" || |
| 43200 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 43201 | X"$file" : 'X\(//\)[^/]' \| \ |
| 43202 | X"$file" : 'X\(//\)$' \| \ |
| 43203 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
| 43204 | $as_echo X"$file" | |
| 43205 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 43206 | s//\1/ |
| 43207 | q |
| 43208 | } |
| 43209 | /^X\(\/\/\)[^/].*/{ |
| 43210 | s//\1/ |
| 43211 | q |
| 43212 | } |
| 43213 | /^X\(\/\/\)$/{ |
| 43214 | s//\1/ |
| 43215 | q |
| 43216 | } |
| 43217 | /^X\(\/\).*/{ |
| 43218 | s//\1/ |
| 43219 | q |
| 43220 | } |
| 43221 | s/.*/./; q'` |
| 43222 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
| 43223 | # echo "creating $dirpart/$file" |
| 43224 | echo '# dummy' > "$dirpart/$file" |
| 43225 | done |
| 43226 | done |
| 43227 | } |
| 43228 | ;; |
| 43229 | "libtool":C) |
| 43230 | |
| 43231 | # See if we are running on zsh, and set the options that allow our |
| 43232 | # commands through without removal of \ escapes. |
| 43233 | if test -n "${ZSH_VERSION+set}"; then |
| 43234 | setopt NO_GLOB_SUBST |
| 43235 | fi |
| 43236 | |
| 43237 | cfgfile=${ofile}T |
| 43238 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 43239 | $RM "$cfgfile" |
| 43240 | |
| 43241 | cat <<_LT_EOF >> "$cfgfile" |
| 43242 | #! $SHELL |
| 43243 | # Generated automatically by $as_me ($PACKAGE) $VERSION |
| 43244 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 43245 | |
| 43246 | # Provide generalized library-building support services. |
| 43247 | # Written by Gordon Matzigkeit, 1996 |
| 43248 | |
| 43249 | # Copyright (C) 2014 Free Software Foundation, Inc. |
| 43250 | # This is free software; see the source for copying conditions. There is NO |
| 43251 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 43252 | |
| 43253 | # GNU Libtool is free software; you can redistribute it and/or modify |
| 43254 | # it under the terms of the GNU General Public License as published by |
| 43255 | # the Free Software Foundation; either version 2 of of the License, or |
| 43256 | # (at your option) any later version. |
| 43257 | # |
| 43258 | # As a special exception to the GNU General Public License, if you |
| 43259 | # distribute this file as part of a program or library that is built |
| 43260 | # using GNU Libtool, you may include this file under the same |
| 43261 | # distribution terms that you use for the rest of that program. |
| 43262 | # |
| 43263 | # GNU Libtool is distributed in the hope that it will be useful, but |
| 43264 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 43265 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 43266 | # GNU General Public License for more details. |
| 43267 | # |
| 43268 | # You should have received a copy of the GNU General Public License |
| 43269 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 43270 | |
| 43271 | |
| 43272 | # The names of the tagged configurations supported by this script. |
| 43273 | available_tags='' |
| 43274 | |
| 43275 | # Configured defaults for sys_lib_dlsearch_path munging. |
| 43276 | : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} |
| 43277 | |
| 43278 | # ### BEGIN LIBTOOL CONFIG |
| 43279 | |
| 43280 | # Which release of libtool.m4 was used? |
| 43281 | macro_version=$macro_version |
| 43282 | macro_revision=$macro_revision |
| 43283 | |
| 43284 | # Assembler program. |
| 43285 | AS=$lt_AS |
| 43286 | |
| 43287 | # DLL creation program. |
| 43288 | DLLTOOL=$lt_DLLTOOL |
| 43289 | |
| 43290 | # Object dumper program. |
| 43291 | OBJDUMP=$lt_OBJDUMP |
| 43292 | |
| 43293 | # Whether or not to build shared libraries. |
| 43294 | build_libtool_libs=$enable_shared |
| 43295 | |
| 43296 | # Whether or not to build static libraries. |
| 43297 | build_old_libs=$enable_static |
| 43298 | |
| 43299 | # What type of objects to build. |
| 43300 | pic_mode=$pic_mode |
| 43301 | |
| 43302 | # Whether or not to optimize for fast installation. |
| 43303 | fast_install=$enable_fast_install |
| 43304 | |
| 43305 | # Shared archive member basename,for filename based shared library versioning on AIX. |
| 43306 | shared_archive_member_spec=$shared_archive_member_spec |
| 43307 | |
| 43308 | # Shell to use when invoking shell scripts. |
| 43309 | SHELL=$lt_SHELL |
| 43310 | |
| 43311 | # An echo program that protects backslashes. |
| 43312 | ECHO=$lt_ECHO |
| 43313 | |
| 43314 | # The PATH separator for the build system. |
| 43315 | PATH_SEPARATOR=$lt_PATH_SEPARATOR |
| 43316 | |
| 43317 | # The host system. |
| 43318 | host_alias=$host_alias |
| 43319 | host=$host |
| 43320 | host_os=$host_os |
| 43321 | |
| 43322 | # The build system. |
| 43323 | build_alias=$build_alias |
| 43324 | build=$build |
| 43325 | build_os=$build_os |
| 43326 | |
| 43327 | # A sed program that does not truncate output. |
| 43328 | SED=$lt_SED |
| 43329 | |
| 43330 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 43331 | Xsed="\$SED -e 1s/^X//" |
| 43332 | |
| 43333 | # A grep program that handles long lines. |
| 43334 | GREP=$lt_GREP |
| 43335 | |
| 43336 | # An ERE matcher. |
| 43337 | EGREP=$lt_EGREP |
| 43338 | |
| 43339 | # A literal string matcher. |
| 43340 | FGREP=$lt_FGREP |
| 43341 | |
| 43342 | # A BSD- or MS-compatible name lister. |
| 43343 | NM=$lt_NM |
| 43344 | |
| 43345 | # Whether we need soft or hard links. |
| 43346 | LN_S=$lt_LN_S |
| 43347 | |
| 43348 | # What is the maximum length of a command? |
| 43349 | max_cmd_len=$max_cmd_len |
| 43350 | |
| 43351 | # Object file suffix (normally "o"). |
| 43352 | objext=$ac_objext |
| 43353 | |
| 43354 | # Executable file suffix (normally ""). |
| 43355 | exeext=$exeext |
| 43356 | |
| 43357 | # whether the shell understands "unset". |
| 43358 | lt_unset=$lt_unset |
| 43359 | |
| 43360 | # turn spaces into newlines. |
| 43361 | SP2NL=$lt_lt_SP2NL |
| 43362 | |
| 43363 | # turn newlines into spaces. |
| 43364 | NL2SP=$lt_lt_NL2SP |
| 43365 | |
| 43366 | # convert \$build file names to \$host format. |
| 43367 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 43368 | |
| 43369 | # convert \$build files to toolchain format. |
| 43370 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 43371 | |
| 43372 | # Method to check whether dependent libraries are shared objects. |
| 43373 | deplibs_check_method=$lt_deplibs_check_method |
| 43374 | |
| 43375 | # Command to use when deplibs_check_method = "file_magic". |
| 43376 | file_magic_cmd=$lt_file_magic_cmd |
| 43377 | |
| 43378 | # How to find potential files when deplibs_check_method = "file_magic". |
| 43379 | file_magic_glob=$lt_file_magic_glob |
| 43380 | |
| 43381 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". |
| 43382 | want_nocaseglob=$lt_want_nocaseglob |
| 43383 | |
| 43384 | # Command to associate shared and link libraries. |
| 43385 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd |
| 43386 | |
| 43387 | # The archiver. |
| 43388 | AR=$lt_AR |
| 43389 | |
| 43390 | # Flags to create an archive. |
| 43391 | AR_FLAGS=$lt_AR_FLAGS |
| 43392 | |
| 43393 | # How to feed a file listing to the archiver. |
| 43394 | archiver_list_spec=$lt_archiver_list_spec |
| 43395 | |
| 43396 | # A symbol stripping program. |
| 43397 | STRIP=$lt_STRIP |
| 43398 | |
| 43399 | # Commands used to install an old-style archive. |
| 43400 | RANLIB=$lt_RANLIB |
| 43401 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 43402 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 43403 | |
| 43404 | # Whether to use a lock for old archive extraction. |
| 43405 | lock_old_archive_extraction=$lock_old_archive_extraction |
| 43406 | |
| 43407 | # A C compiler. |
| 43408 | LTCC=$lt_CC |
| 43409 | |
| 43410 | # LTCC compiler flags. |
| 43411 | LTCFLAGS=$lt_CFLAGS |
| 43412 | |
| 43413 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 43414 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 43415 | |
| 43416 | # Transform the output of nm in a proper C declaration. |
| 43417 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 43418 | |
| 43419 | # Transform the output of nm into a list of symbols to manually relocate. |
| 43420 | global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import |
| 43421 | |
| 43422 | # Transform the output of nm in a C name address pair. |
| 43423 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 43424 | |
| 43425 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
| 43426 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 43427 | |
| 43428 | # The name lister interface. |
| 43429 | nm_interface=$lt_lt_cv_nm_interface |
| 43430 | |
| 43431 | # Specify filename containing input files for \$NM. |
| 43432 | nm_file_list_spec=$lt_nm_file_list_spec |
| 43433 | |
| 43434 | # The root where to search for dependent libraries,and where our libraries should be installed. |
| 43435 | lt_sysroot=$lt_sysroot |
| 43436 | |
| 43437 | # Command to truncate a binary pipe. |
| 43438 | lt_truncate_bin=$lt_lt_cv_truncate_bin |
| 43439 | |
| 43440 | # The name of the directory that contains temporary libtool files. |
| 43441 | objdir=$objdir |
| 43442 | |
| 43443 | # Used to examine libraries when file_magic_cmd begins with "file". |
| 43444 | MAGIC_CMD=$MAGIC_CMD |
| 43445 | |
| 43446 | # Must we lock files when doing compilation? |
| 43447 | need_locks=$lt_need_locks |
| 43448 | |
| 43449 | # Manifest tool. |
| 43450 | MANIFEST_TOOL=$lt_MANIFEST_TOOL |
| 43451 | |
| 43452 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
| 43453 | DSYMUTIL=$lt_DSYMUTIL |
| 43454 | |
| 43455 | # Tool to change global to local symbols on Mac OS X. |
| 43456 | NMEDIT=$lt_NMEDIT |
| 43457 | |
| 43458 | # Tool to manipulate fat objects and archives on Mac OS X. |
| 43459 | LIPO=$lt_LIPO |
| 43460 | |
| 43461 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
| 43462 | OTOOL=$lt_OTOOL |
| 43463 | |
| 43464 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
| 43465 | OTOOL64=$lt_OTOOL64 |
| 43466 | |
| 43467 | # Old archive suffix (normally "a"). |
| 43468 | libext=$libext |
| 43469 | |
| 43470 | # Shared library suffix (normally ".so"). |
| 43471 | shrext_cmds=$lt_shrext_cmds |
| 43472 | |
| 43473 | # The commands to extract the exported symbol list from a shared archive. |
| 43474 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 43475 | |
| 43476 | # Variables whose values should be saved in libtool wrapper scripts and |
| 43477 | # restored at link time. |
| 43478 | variables_saved_for_relink=$lt_variables_saved_for_relink |
| 43479 | |
| 43480 | # Do we need the "lib" prefix for modules? |
| 43481 | need_lib_prefix=$need_lib_prefix |
| 43482 | |
| 43483 | # Do we need a version for libraries? |
| 43484 | need_version=$need_version |
| 43485 | |
| 43486 | # Library versioning type. |
| 43487 | version_type=$version_type |
| 43488 | |
| 43489 | # Shared library runtime path variable. |
| 43490 | runpath_var=$runpath_var |
| 43491 | |
| 43492 | # Shared library path variable. |
| 43493 | shlibpath_var=$shlibpath_var |
| 43494 | |
| 43495 | # Is shlibpath searched before the hard-coded library search path? |
| 43496 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 43497 | |
| 43498 | # Format of library name prefix. |
| 43499 | libname_spec=$lt_libname_spec |
| 43500 | |
| 43501 | # List of archive names. First name is the real one, the rest are links. |
| 43502 | # The last name is the one that the linker finds with -lNAME |
| 43503 | library_names_spec=$lt_library_names_spec |
| 43504 | |
| 43505 | # The coded name of the library, if different from the real name. |
| 43506 | soname_spec=$lt_soname_spec |
| 43507 | |
| 43508 | # Permission mode override for installation of shared libraries. |
| 43509 | install_override_mode=$lt_install_override_mode |
| 43510 | |
| 43511 | # Command to use after installation of a shared archive. |
| 43512 | postinstall_cmds=$lt_postinstall_cmds |
| 43513 | |
| 43514 | # Command to use after uninstallation of a shared archive. |
| 43515 | postuninstall_cmds=$lt_postuninstall_cmds |
| 43516 | |
| 43517 | # Commands used to finish a libtool library installation in a directory. |
| 43518 | finish_cmds=$lt_finish_cmds |
| 43519 | |
| 43520 | # As "finish_cmds", except a single script fragment to be evaled but |
| 43521 | # not shown. |
| 43522 | finish_eval=$lt_finish_eval |
| 43523 | |
| 43524 | # Whether we should hardcode library paths into libraries. |
| 43525 | hardcode_into_libs=$hardcode_into_libs |
| 43526 | |
| 43527 | # Compile-time system search path for libraries. |
| 43528 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 43529 | |
| 43530 | # Detected run-time system search path for libraries. |
| 43531 | sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path |
| 43532 | |
| 43533 | # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. |
| 43534 | configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path |
| 43535 | |
| 43536 | # Whether dlopen is supported. |
| 43537 | dlopen_support=$enable_dlopen |
| 43538 | |
| 43539 | # Whether dlopen of programs is supported. |
| 43540 | dlopen_self=$enable_dlopen_self |
| 43541 | |
| 43542 | # Whether dlopen of statically linked programs is supported. |
| 43543 | dlopen_self_static=$enable_dlopen_self_static |
| 43544 | |
| 43545 | # Commands to strip libraries. |
| 43546 | old_striplib=$lt_old_striplib |
| 43547 | striplib=$lt_striplib |
| 43548 | |
| 43549 | |
| 43550 | # The linker used to build libraries. |
| 43551 | LD=$lt_LD |
| 43552 | |
| 43553 | # How to create reloadable object files. |
| 43554 | reload_flag=$lt_reload_flag |
| 43555 | reload_cmds=$lt_reload_cmds |
| 43556 | |
| 43557 | # Commands used to build an old-style archive. |
| 43558 | old_archive_cmds=$lt_old_archive_cmds |
| 43559 | |
| 43560 | # A language specific compiler. |
| 43561 | CC=$lt_compiler |
| 43562 | |
| 43563 | # Is the compiler the GNU compiler? |
| 43564 | with_gcc=$GCC |
| 43565 | |
| 43566 | # Compiler flag to turn off builtin functions. |
| 43567 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 43568 | |
| 43569 | # Additional compiler flags for building library objects. |
| 43570 | pic_flag=$lt_lt_prog_compiler_pic |
| 43571 | |
| 43572 | # How to pass a linker flag through the compiler. |
| 43573 | wl=$lt_lt_prog_compiler_wl |
| 43574 | |
| 43575 | # Compiler flag to prevent dynamic linking. |
| 43576 | link_static_flag=$lt_lt_prog_compiler_static |
| 43577 | |
| 43578 | # Does compiler simultaneously support -c and -o options? |
| 43579 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 43580 | |
| 43581 | # Whether or not to add -lc for building shared libraries. |
| 43582 | build_libtool_need_lc=$archive_cmds_need_lc |
| 43583 | |
| 43584 | # Whether or not to disallow shared libs when runtime libs are static. |
| 43585 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 43586 | |
| 43587 | # Compiler flag to allow reflexive dlopens. |
| 43588 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 43589 | |
| 43590 | # Compiler flag to generate shared objects directly from archives. |
| 43591 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 43592 | |
| 43593 | # Whether the compiler copes with passing no objects directly. |
| 43594 | compiler_needs_object=$lt_compiler_needs_object |
| 43595 | |
| 43596 | # Create an old-style archive from a shared archive. |
| 43597 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 43598 | |
| 43599 | # Create a temporary old-style archive to link instead of a shared archive. |
| 43600 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 43601 | |
| 43602 | # Commands used to build a shared archive. |
| 43603 | archive_cmds=$lt_archive_cmds |
| 43604 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 43605 | |
| 43606 | # Commands used to build a loadable module if different from building |
| 43607 | # a shared archive. |
| 43608 | module_cmds=$lt_module_cmds |
| 43609 | module_expsym_cmds=$lt_module_expsym_cmds |
| 43610 | |
| 43611 | # Whether we are building with GNU ld or not. |
| 43612 | with_gnu_ld=$lt_with_gnu_ld |
| 43613 | |
| 43614 | # Flag that allows shared libraries with undefined symbols to be built. |
| 43615 | allow_undefined_flag=$lt_allow_undefined_flag |
| 43616 | |
| 43617 | # Flag that enforces no undefined symbols. |
| 43618 | no_undefined_flag=$lt_no_undefined_flag |
| 43619 | |
| 43620 | # Flag to hardcode \$libdir into a binary during linking. |
| 43621 | # This must work even if \$libdir does not exist |
| 43622 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 43623 | |
| 43624 | # Whether we need a single "-rpath" flag with a separated argument. |
| 43625 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 43626 | |
| 43627 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
| 43628 | # DIR into the resulting binary. |
| 43629 | hardcode_direct=$hardcode_direct |
| 43630 | |
| 43631 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
| 43632 | # DIR into the resulting binary and the resulting library dependency is |
| 43633 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the |
| 43634 | # library is relocated. |
| 43635 | hardcode_direct_absolute=$hardcode_direct_absolute |
| 43636 | |
| 43637 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 43638 | # into the resulting binary. |
| 43639 | hardcode_minus_L=$hardcode_minus_L |
| 43640 | |
| 43641 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 43642 | # into the resulting binary. |
| 43643 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 43644 | |
| 43645 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 43646 | # into the library and all subsequent libraries and executables linked |
| 43647 | # against it. |
| 43648 | hardcode_automatic=$hardcode_automatic |
| 43649 | |
| 43650 | # Set to yes if linker adds runtime paths of dependent libraries |
| 43651 | # to runtime path list. |
| 43652 | inherit_rpath=$inherit_rpath |
| 43653 | |
| 43654 | # Whether libtool must link a program against all its dependency libraries. |
| 43655 | link_all_deplibs=$link_all_deplibs |
| 43656 | |
| 43657 | # Set to "yes" if exported symbols are required. |
| 43658 | always_export_symbols=$always_export_symbols |
| 43659 | |
| 43660 | # The commands to list exported symbols. |
| 43661 | export_symbols_cmds=$lt_export_symbols_cmds |
| 43662 | |
| 43663 | # Symbols that should not be listed in the preloaded symbols. |
| 43664 | exclude_expsyms=$lt_exclude_expsyms |
| 43665 | |
| 43666 | # Symbols that must always be exported. |
| 43667 | include_expsyms=$lt_include_expsyms |
| 43668 | |
| 43669 | # Commands necessary for linking programs (against libraries) with templates. |
| 43670 | prelink_cmds=$lt_prelink_cmds |
| 43671 | |
| 43672 | # Commands necessary for finishing linking programs. |
| 43673 | postlink_cmds=$lt_postlink_cmds |
| 43674 | |
| 43675 | # Specify filename containing input files. |
| 43676 | file_list_spec=$lt_file_list_spec |
| 43677 | |
| 43678 | # How to hardcode a shared library path into an executable. |
| 43679 | hardcode_action=$hardcode_action |
| 43680 | |
| 43681 | # ### END LIBTOOL CONFIG |
| 43682 | |
| 43683 | _LT_EOF |
| 43684 | |
| 43685 | cat <<'_LT_EOF' >> "$cfgfile" |
| 43686 | |
| 43687 | # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE |
| 43688 | |
| 43689 | # func_munge_path_list VARIABLE PATH |
| 43690 | # ----------------------------------- |
| 43691 | # VARIABLE is name of variable containing _space_ separated list of |
| 43692 | # directories to be munged by the contents of PATH, which is string |
| 43693 | # having a format: |
| 43694 | # "DIR[:DIR]:" |
| 43695 | # string "DIR[ DIR]" will be prepended to VARIABLE |
| 43696 | # ":DIR[:DIR]" |
| 43697 | # string "DIR[ DIR]" will be appended to VARIABLE |
| 43698 | # "DIRP[:DIRP]::[DIRA:]DIRA" |
| 43699 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string |
| 43700 | # "DIRA[ DIRA]" will be appended to VARIABLE |
| 43701 | # "DIR[:DIR]" |
| 43702 | # VARIABLE will be replaced by "DIR[ DIR]" |
| 43703 | func_munge_path_list () |
| 43704 | { |
| 43705 | case x$2 in |
| 43706 | x) |
| 43707 | ;; |
| 43708 | *:) |
| 43709 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" |
| 43710 | ;; |
| 43711 | x:*) |
| 43712 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" |
| 43713 | ;; |
| 43714 | *::*) |
| 43715 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" |
| 43716 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" |
| 43717 | ;; |
| 43718 | *) |
| 43719 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" |
| 43720 | ;; |
| 43721 | esac |
| 43722 | } |
| 43723 | |
| 43724 | |
| 43725 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
| 43726 | func_cc_basename () |
| 43727 | { |
| 43728 | for cc_temp in $*""; do |
| 43729 | case $cc_temp in |
| 43730 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 43731 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 43732 | \-*) ;; |
| 43733 | *) break;; |
| 43734 | esac |
| 43735 | done |
| 43736 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 43737 | } |
| 43738 | |
| 43739 | |
| 43740 | # ### END FUNCTIONS SHARED WITH CONFIGURE |
| 43741 | |
| 43742 | _LT_EOF |
| 43743 | |
| 43744 | case $host_os in |
| 43745 | aix3*) |
| 43746 | cat <<\_LT_EOF >> "$cfgfile" |
| 43747 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 43748 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 43749 | # vanish in a puff of smoke. |
| 43750 | if test set != "${COLLECT_NAMES+set}"; then |
| 43751 | COLLECT_NAMES= |
| 43752 | export COLLECT_NAMES |
| 43753 | fi |
| 43754 | _LT_EOF |
| 43755 | ;; |
| 43756 | esac |
| 43757 | |
| 43758 | |
| 43759 | ltmain=$ac_aux_dir/ltmain.sh |
| 43760 | |
| 43761 | |
| 43762 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 43763 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 43764 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 43765 | # is reportedly fixed, but why not run on old versions too? |
| 43766 | sed '$q' "$ltmain" >> "$cfgfile" \ |
| 43767 | || (rm -f "$cfgfile"; exit 1) |
| 43768 | |
| 43769 | mv -f "$cfgfile" "$ofile" || |
| 43770 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 43771 | chmod +x "$ofile" |
| 43772 | |
| 43773 | ;; |
| 43774 | |
| 43775 | esac |
| 43776 | done # for ac_tag |
| 43777 | |
| 43778 | |
| 43779 | as_fn_exit 0 |
| 43780 | _ACEOF |
| 43781 | ac_clean_files=$ac_clean_files_save |
| 43782 | |
| 43783 | test $ac_write_fail = 0 || |
| 43784 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 43785 | |
| 43786 | |
| 43787 | # configure is writing to config.log, and then calls config.status. |
| 43788 | # config.status does its own redirection, appending to config.log. |
| 43789 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 43790 | # by configure, so config.status won't be able to write to it; its |
| 43791 | # output is simply discarded. So we exec the FD to /dev/null, |
| 43792 | # effectively closing config.log, so it can be properly (re)opened and |
| 43793 | # appended to by config.status. When coming back to configure, we |
| 43794 | # need to make the FD available again. |
| 43795 | if test "$no_create" != yes; then |
| 43796 | ac_cs_success=: |
| 43797 | ac_config_status_args= |
| 43798 | test "$silent" = yes && |
| 43799 | ac_config_status_args="$ac_config_status_args --quiet" |
| 43800 | exec 5>/dev/null |
| 43801 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 43802 | exec 5>>config.log |
| 43803 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 43804 | # would make configure fail if this is the last instruction. |
| 43805 | $ac_cs_success || as_fn_exit 1 |
| 43806 | fi |
| 43807 | |
| 43808 | # |
| 43809 | # CONFIG_SUBDIRS section. |
| 43810 | # |
| 43811 | if test "$no_recursion" != yes; then |
| 43812 | |
| 43813 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments |
| 43814 | # so they do not pile up. |
| 43815 | ac_sub_configure_args= |
| 43816 | ac_prev= |
| 43817 | eval "set x $ac_configure_args" |
| 43818 | shift |
| 43819 | for ac_arg |
| 43820 | do |
| 43821 | if test -n "$ac_prev"; then |
| 43822 | ac_prev= |
| 43823 | continue |
| 43824 | fi |
| 43825 | case $ac_arg in |
| 43826 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 43827 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 43828 | ac_prev=cache_file ;; |
| 43829 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 43830 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 43831 | | --c=*) |
| 43832 | ;; |
| 43833 | --config-cache | -C) |
| 43834 | ;; |
| 43835 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 43836 | ac_prev=srcdir ;; |
| 43837 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 43838 | ;; |
| 43839 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 43840 | ac_prev=prefix ;; |
| 43841 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 43842 | ;; |
| 43843 | --disable-option-checking) |
| 43844 | ;; |
| 43845 | *) |
| 43846 | case $ac_arg in |
| 43847 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 43848 | esac |
| 43849 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;; |
| 43850 | esac |
| 43851 | done |
| 43852 | |
| 43853 | # Always prepend --prefix to ensure using the same prefix |
| 43854 | # in subdir configurations. |
| 43855 | ac_arg="--prefix=$prefix" |
| 43856 | case $ac_arg in |
| 43857 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 43858 | esac |
| 43859 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" |
| 43860 | |
| 43861 | # Pass --silent |
| 43862 | if test "$silent" = yes; then |
| 43863 | ac_sub_configure_args="--silent $ac_sub_configure_args" |
| 43864 | fi |
| 43865 | |
| 43866 | # Always prepend --disable-option-checking to silence warnings, since |
| 43867 | # different subdirs can have different --enable and --with options. |
| 43868 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" |
| 43869 | |
| 43870 | ac_popdir=`pwd` |
| 43871 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 43872 | |
| 43873 | # Do not complain, so a configure script can configure whichever |
| 43874 | # parts of a large source tree are present. |
| 43875 | test -d "$srcdir/$ac_dir" || continue |
| 43876 | |
| 43877 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
| 43878 | $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 |
| 43879 | $as_echo "$ac_msg" >&6 |
| 43880 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 43881 | ac_builddir=. |
| 43882 | |
| 43883 | case "$ac_dir" in |
| 43884 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 43885 | *) |
| 43886 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 43887 | # A ".." for each directory in $ac_dir_suffix. |
| 43888 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 43889 | case $ac_top_builddir_sub in |
| 43890 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 43891 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 43892 | esac ;; |
| 43893 | esac |
| 43894 | ac_abs_top_builddir=$ac_pwd |
| 43895 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 43896 | # for backward compatibility: |
| 43897 | ac_top_builddir=$ac_top_build_prefix |
| 43898 | |
| 43899 | case $srcdir in |
| 43900 | .) # We are building in place. |
| 43901 | ac_srcdir=. |
| 43902 | ac_top_srcdir=$ac_top_builddir_sub |
| 43903 | ac_abs_top_srcdir=$ac_pwd ;; |
| 43904 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 43905 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 43906 | ac_top_srcdir=$srcdir |
| 43907 | ac_abs_top_srcdir=$srcdir ;; |
| 43908 | *) # Relative name. |
| 43909 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 43910 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 43911 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 43912 | esac |
| 43913 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 43914 | |
| 43915 | |
| 43916 | cd "$ac_dir" |
| 43917 | |
| 43918 | # Check for guested configure; otherwise get Cygnus style configure. |
| 43919 | if test -f "$ac_srcdir/configure.gnu"; then |
| 43920 | ac_sub_configure=$ac_srcdir/configure.gnu |
| 43921 | elif test -f "$ac_srcdir/configure"; then |
| 43922 | ac_sub_configure=$ac_srcdir/configure |
| 43923 | elif test -f "$ac_srcdir/configure.in"; then |
| 43924 | # This should be Cygnus configure. |
| 43925 | ac_sub_configure=$ac_aux_dir/configure |
| 43926 | else |
| 43927 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 |
| 43928 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
| 43929 | ac_sub_configure= |
| 43930 | fi |
| 43931 | |
| 43932 | # The recursion is here. |
| 43933 | if test -n "$ac_sub_configure"; then |
| 43934 | # Make the cache file name correct relative to the subdirectory. |
| 43935 | case $cache_file in |
| 43936 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
| 43937 | *) # Relative name. |
| 43938 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
| 43939 | esac |
| 43940 | |
| 43941 | { $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 |
| 43942 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} |
| 43943 | # The eval makes quoting arguments work. |
| 43944 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 43945 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
| 43946 | as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 |
| 43947 | fi |
| 43948 | |
| 43949 | cd "$ac_popdir" |
| 43950 | done |
| 43951 | fi |
| 43952 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 43953 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 43954 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 43955 | fi |
| 43956 | |
| 43957 | |
| 43958 | |
| 43959 | tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null` |
| 43960 | if test -z "$tmp_cpp"; then |
| 43961 | tmp_cpp='cpp' |
| 43962 | fi |
| 43963 | cat >./tests/configurehelp.pm <<_EOF |
| 43964 | # This is a generated file. Do not edit. |
| 43965 | |
| 43966 | package configurehelp; |
| 43967 | |
| 43968 | use strict; |
| 43969 | use warnings; |
| 43970 | use Exporter; |
| 43971 | |
| 43972 | use vars qw( |
| 43973 | @ISA |
| 43974 | @EXPORT_OK |
| 43975 | \$Cpreprocessor |
| 43976 | ); |
| 43977 | |
| 43978 | @ISA = qw(Exporter); |
| 43979 | |
| 43980 | @EXPORT_OK = qw( |
| 43981 | \$Cpreprocessor |
| 43982 | ); |
| 43983 | |
| 43984 | \$Cpreprocessor = '$tmp_cpp'; |
| 43985 | |
| 43986 | 1; |
| 43987 | _EOF |
| 43988 | |
| 43989 | |
| 43990 | |
| 43991 | ## ---------------------------------- ## |
| 43992 | ## Start of distclean amending code ## |
| 43993 | ## ---------------------------------- ## |
| 43994 | |
| 43995 | for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples |
| 43996 | do |
| 43997 | |
| 43998 | if test ! -f "$xc_subdir/Makefile"; then |
| 43999 | echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2 |
| 44000 | exit 1 |
| 44001 | fi |
| 44002 | |
| 44003 | # Fetch dependency tracking file list from Makefile include lines. |
| 44004 | |
| 44005 | xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null` |
| 44006 | xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"` |
| 44007 | |
| 44008 | # --disable-dependency-tracking might have been used, consequently |
| 44009 | # there is nothing to amend without a dependency tracking file list. |
| 44010 | |
| 44011 | if test $xc_cnt_words -gt 0; then |
| 44012 | |
| 44013 | { $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5 |
| 44014 | $as_echo "$as_me: amending $xc_subdir/Makefile" >&6;} |
| 44015 | |
| 44016 | # Build Makefile specific patch hunk. |
| 44017 | |
| 44018 | xc_p="$xc_subdir/xc_patch.tmp" |
| 44019 | |
| 44020 | xc_rm_depfiles=`echo "$xc_inc_lines" \ |
| 44021 | | $SED 's%include% -rm -f%' 2>/dev/null` |
| 44022 | |
| 44023 | xc_dep_subdirs=`echo "$xc_inc_lines" \ |
| 44024 | | $SED 's%include[ ][ ]*%%' 2>/dev/null \ |
| 44025 | | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \ |
| 44026 | | sort | uniq` |
| 44027 | |
| 44028 | echo "$xc_rm_depfiles" >$xc_p |
| 44029 | |
| 44030 | for xc_dep_dir in $xc_dep_subdirs; do |
| 44031 | echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\" >>$xc_p |
| 44032 | echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\" >>$xc_p |
| 44033 | echo "${xc_tab} rm -rf $xc_dep_dir; \\" >>$xc_p |
| 44034 | echo "${xc_tab}fi" >>$xc_p |
| 44035 | done |
| 44036 | |
| 44037 | # Build Makefile patching sed scripts. |
| 44038 | |
| 44039 | xc_s1="$xc_subdir/xc_script_1.tmp" |
| 44040 | xc_s2="$xc_subdir/xc_script_2.tmp" |
| 44041 | xc_s3="$xc_subdir/xc_script_3.tmp" |
| 44042 | |
| 44043 | cat >$xc_s1 <<\_EOT |
| 44044 | /^distclean[ ]*:/,/^[^ ][^ ]*:/{ |
| 44045 | s/^.*(DEPDIR)/___xc_depdir_line___/ |
| 44046 | } |
| 44047 | /^maintainer-clean[ ]*:/,/^[^ ][^ ]*:/{ |
| 44048 | s/^.*(DEPDIR)/___xc_depdir_line___/ |
| 44049 | } |
| 44050 | _EOT |
| 44051 | |
| 44052 | cat >$xc_s2 <<\_EOT |
| 44053 | /___xc_depdir_line___$/{ |
| 44054 | N |
| 44055 | /___xc_depdir_line___$/D |
| 44056 | } |
| 44057 | _EOT |
| 44058 | |
| 44059 | cat >$xc_s3 <<_EOT |
| 44060 | /^___xc_depdir_line___/{ |
| 44061 | r $xc_p |
| 44062 | d |
| 44063 | } |
| 44064 | _EOT |
| 44065 | |
| 44066 | # Apply patch to Makefile and cleanup. |
| 44067 | |
| 44068 | $SED -f "$xc_s1" "$xc_subdir/Makefile" >"$xc_subdir/Makefile.tmp1" |
| 44069 | $SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2" |
| 44070 | $SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3" |
| 44071 | |
| 44072 | if test -f "$xc_subdir/Makefile.tmp3"; then |
| 44073 | mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile" |
| 44074 | fi |
| 44075 | |
| 44076 | test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1" |
| 44077 | test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2" |
| 44078 | test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3" |
| 44079 | |
| 44080 | test -f "$xc_p" && rm -f "$xc_p" |
| 44081 | test -f "$xc_s1" && rm -f "$xc_s1" |
| 44082 | test -f "$xc_s2" && rm -f "$xc_s2" |
| 44083 | test -f "$xc_s3" && rm -f "$xc_s3" |
| 44084 | |
| 44085 | fi |
| 44086 | |
| 44087 | done |
| 44088 | |
| 44089 | ## -------------------------------- ## |
| 44090 | ## End of distclean amending code ## |
| 44091 | ## -------------------------------- ## |
| 44092 | |
| 44093 | |
| 44094 | |
| 44095 | { $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl: |
| 44096 | |
| 44097 | curl version: ${CURLVERSION} |
| 44098 | Host setup: ${host} |
| 44099 | Install prefix: ${prefix} |
| 44100 | Compiler: ${CC} |
| 44101 | SSL support: ${curl_ssl_msg} |
| 44102 | SSH support: ${curl_ssh_msg} |
| 44103 | zlib support: ${curl_zlib_msg} |
| 44104 | GSS-API support: ${curl_gss_msg} |
| 44105 | TLS-SRP support: ${curl_tls_srp_msg} |
| 44106 | resolver: ${curl_res_msg} |
| 44107 | IPv6 support: ${curl_ipv6_msg} |
| 44108 | Unix sockets support: ${curl_unix_sockets_msg} |
| 44109 | IDN support: ${curl_idn_msg} |
| 44110 | Build libcurl: Shared=${enable_shared}, Static=${enable_static} |
| 44111 | Built-in manual: ${curl_manual_msg} |
| 44112 | --libcurl option: ${curl_libcurl_msg} |
| 44113 | Verbose errors: ${curl_verbose_msg} |
| 44114 | SSPI support: ${curl_sspi_msg} |
| 44115 | ca cert bundle: ${ca}${ca_warning} |
| 44116 | ca cert path: ${capath}${capath_warning} |
| 44117 | ca fallback: ${with_ca_fallback} |
| 44118 | LDAP support: ${curl_ldap_msg} |
| 44119 | LDAPS support: ${curl_ldaps_msg} |
| 44120 | RTSP support: ${curl_rtsp_msg} |
| 44121 | RTMP support: ${curl_rtmp_msg} |
| 44122 | metalink support: ${curl_mtlnk_msg} |
| 44123 | PSL support: ${curl_psl_msg} |
| 44124 | HTTP2 support: ${curl_h2_msg} |
| 44125 | Protocols: ${SUPPORT_PROTOCOLS} |
| 44126 | " >&5 |
| 44127 | $as_echo "$as_me: Configured to build curl/libcurl: |
| 44128 | |
| 44129 | curl version: ${CURLVERSION} |
| 44130 | Host setup: ${host} |
| 44131 | Install prefix: ${prefix} |
| 44132 | Compiler: ${CC} |
| 44133 | SSL support: ${curl_ssl_msg} |
| 44134 | SSH support: ${curl_ssh_msg} |
| 44135 | zlib support: ${curl_zlib_msg} |
| 44136 | GSS-API support: ${curl_gss_msg} |
| 44137 | TLS-SRP support: ${curl_tls_srp_msg} |
| 44138 | resolver: ${curl_res_msg} |
| 44139 | IPv6 support: ${curl_ipv6_msg} |
| 44140 | Unix sockets support: ${curl_unix_sockets_msg} |
| 44141 | IDN support: ${curl_idn_msg} |
| 44142 | Build libcurl: Shared=${enable_shared}, Static=${enable_static} |
| 44143 | Built-in manual: ${curl_manual_msg} |
| 44144 | --libcurl option: ${curl_libcurl_msg} |
| 44145 | Verbose errors: ${curl_verbose_msg} |
| 44146 | SSPI support: ${curl_sspi_msg} |
| 44147 | ca cert bundle: ${ca}${ca_warning} |
| 44148 | ca cert path: ${capath}${capath_warning} |
| 44149 | ca fallback: ${with_ca_fallback} |
| 44150 | LDAP support: ${curl_ldap_msg} |
| 44151 | LDAPS support: ${curl_ldaps_msg} |
| 44152 | RTSP support: ${curl_rtsp_msg} |
| 44153 | RTMP support: ${curl_rtmp_msg} |
| 44154 | metalink support: ${curl_mtlnk_msg} |
| 44155 | PSL support: ${curl_psl_msg} |
| 44156 | HTTP2 support: ${curl_h2_msg} |
| 44157 | Protocols: ${SUPPORT_PROTOCOLS} |
| 44158 | " >&6;} |
| 44159 | |
| 44160 | if test "x$soname_bump" = "xyes"; then |
| 44161 | |
| 44162 | cat <<EOM |
| 44163 | SONAME bump: yes - WARNING: this library will be built with the SONAME |
| 44164 | number bumped due to (a detected) ABI breakage. |
| 44165 | See lib/README.curl_off_t for details on this. |
| 44166 | EOM |
| 44167 | |
| 44168 | fi |
| 44169 | |