1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.69 for libmicrohttpd 0.9.42. 4 # 5 # Report bugs to <libmicrohttpd (at] gnu.org>. 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 ## M4sh Initialization. ## 15 ## -------------------- ## 16 17 # Be more Bourne compatible 18 DUALCASE=1; export DUALCASE # for MKS sh 19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26 else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32 esac 33 fi 34 35 36 as_nl=' 37 ' 38 export as_nl 39 # Printing a long string crashes Solaris 7 /usr/bin/printf. 40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43 # Prefer a ksh shell builtin over an external printf program on Solaris, 44 # but without wasting forks for bash or zsh. 45 if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52 else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72 fi 73 74 # The user is always right. 75 if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81 fi 82 83 84 # IFS 85 # We need space, tab and new line, in precisely that order. Quoting is 86 # there to prevent editors from complaining about space-tab. 87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 88 # splitting by setting IFS to empty value.) 89 IFS=" "" $as_nl" 90 91 # Find who we are. Look in the path if we contain no directory separator. 92 as_myself= 93 case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96 for as_dir in $PATH 97 do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102 IFS=$as_save_IFS 103 104 ;; 105 esac 106 # We did not find ourselves, most probably we were run as `sh COMMAND' 107 # in which case we are not to be found in the path. 108 if test "x$as_myself" = x; then 109 as_myself=$0 110 fi 111 if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114 fi 115 116 # Unset variables that we do not need and which cause bugs (e.g. in 117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118 # suppresses any "Segmentation fault" message there. '((' could 119 # trigger a bug in pdksh 5.2.14. 120 for as_var in BASH_ENV ENV MAIL MAILPATH 121 do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123 done 124 PS1='$ ' 125 PS2='> ' 126 PS4='+ ' 127 128 # NLS nuisances. 129 LC_ALL=C 130 export LC_ALL 131 LANGUAGE=C 132 export LANGUAGE 133 134 # CDPATH. 135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137 # Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142 # neutralization value for shells without unset; and this also 143 # works around shells that cannot unset nonexistent variables. 144 # Preserve -v and -x to the replacement shell. 145 BASH_ENV=/dev/null 146 ENV=/dev/null 147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148 case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153 esac 154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155 # Admittedly, this is quite paranoid, since all the known shells bail 156 # out after a failed `exec'. 157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158 as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162 if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170 else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176 esac 177 fi 178 " 179 as_required="as_fn_return () { (exit \$1); } 180 as_fn_success () { as_fn_return 0; } 181 as_fn_failure () { as_fn_return 1; } 182 as_fn_ret_success () { return 0; } 183 as_fn_ret_failure () { return 1; } 184 185 exitcode=0 186 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192 else 193 exitcode=1; echo positional parameters were not saved. 194 fi 195 test x\$exitcode = x0 || exit 1 196 test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209 test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212 else 213 as_have_required=no 214 fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217 else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219 as_found=false 220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221 do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235 fi 236 fi 237 done;; 238 esac 239 as_found=false 240 done 241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244 fi; } 245 IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251 # neutralization value for shells without unset; and this also 252 # works around shells that cannot unset nonexistent variables. 253 # Preserve -v and -x to the replacement shell. 254 BASH_ENV=/dev/null 255 ENV=/dev/null 256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257 case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262 esac 263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264 # Admittedly, this is quite paranoid, since all the known shells bail 265 # out after a failed `exec'. 266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267 exit 255 268 fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and 278 $0: libmicrohttpd (at] gnu.org about your system, including any 279 $0: error possibly output before this message. Then install 280 $0: a modern shell, or manually run the script under such a 281 $0: shell if you do have one." 282 fi 283 exit 1 284 fi 285 fi 286 fi 287 SHELL=${CONFIG_SHELL-/bin/sh} 288 export SHELL 289 # Unset more variables known to interfere with behavior of common tools. 290 CLICOLOR_FORCE= GREP_OPTIONS= 291 unset CLICOLOR_FORCE GREP_OPTIONS 292 293 ## --------------------- ## 294 ## M4sh Shell Functions. ## 295 ## --------------------- ## 296 # as_fn_unset VAR 297 # --------------- 298 # Portably unset VAR. 299 as_fn_unset () 300 { 301 { eval $1=; unset $1;} 302 } 303 as_unset=as_fn_unset 304 305 # as_fn_set_status STATUS 306 # ----------------------- 307 # Set $? to STATUS, without forking. 308 as_fn_set_status () 309 { 310 return $1 311 } # as_fn_set_status 312 313 # as_fn_exit STATUS 314 # ----------------- 315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316 as_fn_exit () 317 { 318 set +e 319 as_fn_set_status $1 320 exit $1 321 } # as_fn_exit 322 323 # as_fn_mkdir_p 324 # ------------- 325 # Create "$as_dir" as a directory, including parents if necessary. 326 as_fn_mkdir_p () 327 { 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345 $as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369 } # as_fn_mkdir_p 370 371 # as_fn_executable_p FILE 372 # ----------------------- 373 # Test if FILE is an executable regular file. 374 as_fn_executable_p () 375 { 376 test -f "$1" && test -x "$1" 377 } # as_fn_executable_p 378 # as_fn_append VAR VALUE 379 # ---------------------- 380 # Append the text in VALUE to the end of the definition contained in VAR. Take 381 # advantage of any shell optimizations that allow amortized linear growth over 382 # repeated appends, instead of the typical quadratic growth present in naive 383 # implementations. 384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389 else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394 fi # as_fn_append 395 396 # as_fn_arith ARG... 397 # ------------------ 398 # Perform arithmetic evaluation on the ARGs, and store the result in the 399 # global $as_val. Take advantage of shells that can avoid forks. The arguments 400 # must be portable across $(()) and expr. 401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406 else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411 fi # as_fn_arith 412 413 414 # as_fn_error STATUS ERROR [LINENO LOG_FD] 415 # ---------------------------------------- 416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418 # script with STATUS, using 1 if that was 0. 419 as_fn_error () 420 { 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428 } # as_fn_error 429 430 if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433 else 434 as_expr=false 435 fi 436 437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439 else 440 as_basename=false 441 fi 442 443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445 else 446 as_dirname=false 447 fi 448 449 as_me=`$as_basename -- "$0" || 450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453 $as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468 # Avoid depending upon Character Ranges. 469 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472 as_cr_digits='0123456789' 473 as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509 } 510 511 ECHO_C= ECHO_N= ECHO_T= 512 case `echo -n x` in #((((( 513 -n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520 *) 521 ECHO_N='-n';; 522 esac 523 524 rm -f conf$$ conf$$.exe conf$$.file 525 if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527 else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530 fi 531 if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545 else 546 as_ln_s='cp -pR' 547 fi 548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549 rmdir conf$$.dir 2>/dev/null 550 551 if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553 else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556 fi 557 558 as_test_x='test -x' 559 as_executable_p=as_fn_executable_p 560 561 # Sed expression to map a string onto a valid CPP name. 562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564 # Sed expression to map a string onto a valid variable name. 565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567 SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570 test -n "$DJDIR" || exec 7<&0 </dev/null 571 exec 6>&1 572 573 # Name of the host. 574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575 # so uname gets run too. 576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578 # 579 # Initializations. 580 # 581 ac_default_prefix=/usr/local 582 ac_clean_files= 583 ac_config_libobj_dir=. 584 LIBOBJS= 585 cross_compiling=no 586 subdirs= 587 MFLAGS= 588 MAKEFLAGS= 589 590 # Identity of this package. 591 PACKAGE_NAME='libmicrohttpd' 592 PACKAGE_TARNAME='libmicrohttpd' 593 PACKAGE_VERSION='0.9.42' 594 PACKAGE_STRING='libmicrohttpd 0.9.42' 595 PACKAGE_BUGREPORT='libmicrohttpd (at] gnu.org' 596 PACKAGE_URL='' 597 598 # Factoring default headers for most tests. 599 ac_includes_default="\ 600 #include <stdio.h> 601 #ifdef HAVE_SYS_TYPES_H 602 # include <sys/types.h> 603 #endif 604 #ifdef HAVE_SYS_STAT_H 605 # include <sys/stat.h> 606 #endif 607 #ifdef STDC_HEADERS 608 # include <stdlib.h> 609 # include <stddef.h> 610 #else 611 # ifdef HAVE_STDLIB_H 612 # include <stdlib.h> 613 # endif 614 #endif 615 #ifdef HAVE_STRING_H 616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 617 # include <memory.h> 618 # endif 619 # include <string.h> 620 #endif 621 #ifdef HAVE_STRINGS_H 622 # include <strings.h> 623 #endif 624 #ifdef HAVE_INTTYPES_H 625 # include <inttypes.h> 626 #endif 627 #ifdef HAVE_STDINT_H 628 # include <stdint.h> 629 #endif 630 #ifdef HAVE_UNISTD_H 631 # include <unistd.h> 632 #endif" 633 634 ac_func_list= 635 ac_subst_vars='am__EXEEXT_FALSE 636 am__EXEEXT_TRUE 637 LTLIBOBJS 638 LIBOBJS 639 MHD_LIBDEPS 640 MHD_LIBDEPS_PKGCFG 641 MHD_REQ_PRIVATE 642 MHD_LIB_LDFLAGS 643 MHD_LIB_CFLAGS 644 MHD_LIB_CPPFLAGS 645 CPU_COUNT 646 USE_COVERAGE_FALSE 647 USE_COVERAGE_TRUE 648 ENABLE_DAUTH_FALSE 649 ENABLE_DAUTH_TRUE 650 ENABLE_BAUTH_FALSE 651 ENABLE_BAUTH_TRUE 652 ENABLE_HTTPS_FALSE 653 ENABLE_HTTPS_TRUE 654 GNUTLS_LDFLAGS 655 GNUTLS_CPPFLAGS 656 HAVE_GNUTLS_SNI_FALSE 657 HAVE_GNUTLS_SNI_TRUE 658 HAVE_GNUTLS_FALSE 659 HAVE_GNUTLS_TRUE 660 GNUTLS_LIBS 661 GNUTLS_CFLAGS 662 PKG_CONFIG_LIBDIR 663 PKG_CONFIG_PATH 664 LIBGCRYPT_LIBS 665 LIBGCRYPT_CFLAGS 666 LIBGCRYPT_CONFIG 667 HAVE_SOCAT_FALSE 668 HAVE_SOCAT_TRUE 669 HAVE_ZZUF_FALSE 670 HAVE_ZZUF_TRUE 671 have_socat 672 have_zzuf 673 HAVE_POSTPROCESSOR_FALSE 674 HAVE_POSTPROCESSOR_TRUE 675 HAVE_SPDYLAY_FALSE 676 HAVE_SPDYLAY_TRUE 677 SPDY_LIBDEPS 678 SPDY_LIB_CPPFLAGS 679 SPDY_LIB_CFLAGS 680 SPDY_LIB_LDFLAGS 681 ENABLE_SPDY_FALSE 682 ENABLE_SPDY_TRUE 683 HAVE_OPENSSL_FALSE 684 HAVE_OPENSSL_TRUE 685 OPENSSL_LDFLAGS 686 OPENSSL_LIBS 687 OPENSSL_INCLUDES 688 PKG_CONFIG 689 HAVE_MAGIC_FALSE 690 HAVE_MAGIC_TRUE 691 HAVE_CURL_FALSE 692 HAVE_CURL_TRUE 693 LIBCURL 694 LIBCURL_CPPFLAGS 695 _libcurl_config 696 HIDDEN_VISIBILITY_CFLAGS 697 HAVE_TSEARCH_FALSE 698 HAVE_TSEARCH_TRUE 699 BUILD_EXAMPLES_FALSE 700 BUILD_EXAMPLES_TRUE 701 BUILD_DOC_FALSE 702 BUILD_DOC_TRUE 703 W32_STATIC_LIB_FALSE 704 W32_STATIC_LIB_TRUE 705 HAVE_MAKEINFO_BINARY_FALSE 706 HAVE_MAKEINFO_BINARY_TRUE 707 HAVE_MAKEINFO_BINARY 708 HAVE_CURL_BINARY_FALSE 709 HAVE_CURL_BINARY_TRUE 710 HAVE_CURL_BINARY 711 USE_MS_LIB_TOOL_FALSE 712 USE_MS_LIB_TOOL_TRUE 713 W32_SHARED_LIB_EXP_FALSE 714 W32_SHARED_LIB_EXP_TRUE 715 HAVE_W32_FALSE 716 HAVE_W32_TRUE 717 USE_W32_THREADS_FALSE 718 USE_W32_THREADS_TRUE 719 USE_POSIX_THREADS_FALSE 720 USE_POSIX_THREADS_TRUE 721 lt_cv_objdir 722 MS_LIB_TOOL 723 HAVE_POSIX_THREADS_FALSE 724 HAVE_POSIX_THREADS_TRUE 725 PTHREAD_CFLAGS 726 PTHREAD_LIBS 727 PTHREAD_CC 728 ax_pthread_config 729 PACKAGE_VERSION_SUBMINOR 730 PACKAGE_VERSION_MINOR 731 PACKAGE_VERSION_MAJOR 732 RC 733 CPP 734 OTOOL64 735 OTOOL 736 LIPO 737 NMEDIT 738 DSYMUTIL 739 MANIFEST_TOOL 740 RANLIB 741 ac_ct_AR 742 AR 743 NM 744 ac_ct_DUMPBIN 745 DUMPBIN 746 LD 747 FGREP 748 EGREP 749 GREP 750 SED 751 LIBTOOL 752 OBJDUMP 753 DLLTOOL 754 AS 755 am__fastdepCC_FALSE 756 am__fastdepCC_TRUE 757 CCDEPMODE 758 am__nodep 759 AMDEPBACKSLASH 760 AMDEP_FALSE 761 AMDEP_TRUE 762 am__quote 763 am__include 764 DEPDIR 765 OBJEXT 766 EXEEXT 767 ac_ct_CC 768 CPPFLAGS 769 LDFLAGS 770 CFLAGS 771 CC 772 host_os 773 host_vendor 774 host_cpu 775 host 776 build_os 777 build_vendor 778 build_cpu 779 build 780 LN_S 781 LIBSPDY_VERSION_AGE 782 LIBSPDY_VERSION_REVISION 783 LIBSPDY_VERSION_CURRENT 784 LIB_VERSION_AGE 785 LIB_VERSION_REVISION 786 LIB_VERSION_CURRENT 787 AM_BACKSLASH 788 AM_DEFAULT_VERBOSITY 789 AM_DEFAULT_V 790 AM_V 791 am__untar 792 am__tar 793 AMTAR 794 am__leading_dot 795 SET_MAKE 796 AWK 797 mkdir_p 798 MKDIR_P 799 INSTALL_STRIP_PROGRAM 800 STRIP 801 install_sh 802 MAKEINFO 803 AUTOHEADER 804 AUTOMAKE 805 AUTOCONF 806 ACLOCAL 807 VERSION 808 PACKAGE 809 CYGPATH_W 810 am__isrc 811 INSTALL_DATA 812 INSTALL_SCRIPT 813 INSTALL_PROGRAM 814 target_alias 815 host_alias 816 build_alias 817 LIBS 818 ECHO_T 819 ECHO_N 820 ECHO_C 821 DEFS 822 mandir 823 localedir 824 libdir 825 psdir 826 pdfdir 827 dvidir 828 htmldir 829 infodir 830 docdir 831 oldincludedir 832 includedir 833 localstatedir 834 sharedstatedir 835 sysconfdir 836 datadir 837 datarootdir 838 libexecdir 839 sbindir 840 bindir 841 program_transform_name 842 prefix 843 exec_prefix 844 PACKAGE_URL 845 PACKAGE_BUGREPORT 846 PACKAGE_STRING 847 PACKAGE_VERSION 848 PACKAGE_TARNAME 849 PACKAGE_NAME 850 PATH_SEPARATOR 851 SHELL' 852 ac_subst_files='' 853 ac_user_opts=' 854 enable_option_checking 855 enable_silent_rules 856 enable_dependency_tracking 857 enable_shared 858 enable_static 859 with_pic 860 enable_fast_install 861 with_gnu_ld 862 with_sysroot 863 enable_libtool_lock 864 with_threads 865 enable_doc 866 enable_examples 867 enable_poll 868 enable_epoll 869 enable_socketpair 870 enable_curl 871 with_libcurl 872 enable_spdy 873 with_openssl 874 enable_largefile 875 enable_messages 876 enable_postprocessor 877 with_libgcrypt_prefix 878 with_gnutls 879 enable_https 880 enable_bauth 881 enable_dauth 882 enable_coverage 883 ' 884 ac_precious_vars='build_alias 885 host_alias 886 target_alias 887 CC 888 CFLAGS 889 LDFLAGS 890 LIBS 891 CPPFLAGS 892 CPP 893 PKG_CONFIG 894 PKG_CONFIG_PATH 895 PKG_CONFIG_LIBDIR 896 GNUTLS_CFLAGS 897 GNUTLS_LIBS' 898 899 900 # Initialize some variables set by options. 901 ac_init_help= 902 ac_init_version=false 903 ac_unrecognized_opts= 904 ac_unrecognized_sep= 905 # The variables have the same names as the options, with 906 # dashes changed to underlines. 907 cache_file=/dev/null 908 exec_prefix=NONE 909 no_create= 910 no_recursion= 911 prefix=NONE 912 program_prefix=NONE 913 program_suffix=NONE 914 program_transform_name=s,x,x, 915 silent= 916 site= 917 srcdir= 918 verbose= 919 x_includes=NONE 920 x_libraries=NONE 921 922 # Installation directory options. 923 # These are left unexpanded so users can "make install exec_prefix=/foo" 924 # and all the variables that are supposed to be based on exec_prefix 925 # by default will actually change. 926 # Use braces instead of parens because sh, perl, etc. also accept them. 927 # (The list follows the same order as the GNU Coding Standards.) 928 bindir='${exec_prefix}/bin' 929 sbindir='${exec_prefix}/sbin' 930 libexecdir='${exec_prefix}/libexec' 931 datarootdir='${prefix}/share' 932 datadir='${datarootdir}' 933 sysconfdir='${prefix}/etc' 934 sharedstatedir='${prefix}/com' 935 localstatedir='${prefix}/var' 936 includedir='${prefix}/include' 937 oldincludedir='/usr/include' 938 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 939 infodir='${datarootdir}/info' 940 htmldir='${docdir}' 941 dvidir='${docdir}' 942 pdfdir='${docdir}' 943 psdir='${docdir}' 944 libdir='${exec_prefix}/lib' 945 localedir='${datarootdir}/locale' 946 mandir='${datarootdir}/man' 947 948 ac_prev= 949 ac_dashdash= 950 for ac_option 951 do 952 # If the previous option needs an argument, assign it. 953 if test -n "$ac_prev"; then 954 eval $ac_prev=\$ac_option 955 ac_prev= 956 continue 957 fi 958 959 case $ac_option in 960 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 961 *=) ac_optarg= ;; 962 *) ac_optarg=yes ;; 963 esac 964 965 # Accept the important Cygnus configure options, so we can diagnose typos. 966 967 case $ac_dashdash$ac_option in 968 --) 969 ac_dashdash=yes ;; 970 971 -bindir | --bindir | --bindi | --bind | --bin | --bi) 972 ac_prev=bindir ;; 973 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 974 bindir=$ac_optarg ;; 975 976 -build | --build | --buil | --bui | --bu) 977 ac_prev=build_alias ;; 978 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 979 build_alias=$ac_optarg ;; 980 981 -cache-file | --cache-file | --cache-fil | --cache-fi \ 982 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 983 ac_prev=cache_file ;; 984 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 985 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 986 cache_file=$ac_optarg ;; 987 988 --config-cache | -C) 989 cache_file=config.cache ;; 990 991 -datadir | --datadir | --datadi | --datad) 992 ac_prev=datadir ;; 993 -datadir=* | --datadir=* | --datadi=* | --datad=*) 994 datadir=$ac_optarg ;; 995 996 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 997 | --dataroo | --dataro | --datar) 998 ac_prev=datarootdir ;; 999 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1000 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1001 datarootdir=$ac_optarg ;; 1002 1003 -disable-* | --disable-*) 1004 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1005 # Reject names that are not valid shell variable names. 1006 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1007 as_fn_error $? "invalid feature name: $ac_useropt" 1008 ac_useropt_orig=$ac_useropt 1009 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1010 case $ac_user_opts in 1011 *" 1012 "enable_$ac_useropt" 1013 "*) ;; 1014 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1015 ac_unrecognized_sep=', ';; 1016 esac 1017 eval enable_$ac_useropt=no ;; 1018 1019 -docdir | --docdir | --docdi | --doc | --do) 1020 ac_prev=docdir ;; 1021 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1022 docdir=$ac_optarg ;; 1023 1024 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1025 ac_prev=dvidir ;; 1026 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1027 dvidir=$ac_optarg ;; 1028 1029 -enable-* | --enable-*) 1030 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1031 # Reject names that are not valid shell variable names. 1032 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1033 as_fn_error $? "invalid feature name: $ac_useropt" 1034 ac_useropt_orig=$ac_useropt 1035 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1036 case $ac_user_opts in 1037 *" 1038 "enable_$ac_useropt" 1039 "*) ;; 1040 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1041 ac_unrecognized_sep=', ';; 1042 esac 1043 eval enable_$ac_useropt=\$ac_optarg ;; 1044 1045 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1046 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1047 | --exec | --exe | --ex) 1048 ac_prev=exec_prefix ;; 1049 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1050 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1051 | --exec=* | --exe=* | --ex=*) 1052 exec_prefix=$ac_optarg ;; 1053 1054 -gas | --gas | --ga | --g) 1055 # Obsolete; use --with-gas. 1056 with_gas=yes ;; 1057 1058 -help | --help | --hel | --he | -h) 1059 ac_init_help=long ;; 1060 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1061 ac_init_help=recursive ;; 1062 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1063 ac_init_help=short ;; 1064 1065 -host | --host | --hos | --ho) 1066 ac_prev=host_alias ;; 1067 -host=* | --host=* | --hos=* | --ho=*) 1068 host_alias=$ac_optarg ;; 1069 1070 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1071 ac_prev=htmldir ;; 1072 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1073 | --ht=*) 1074 htmldir=$ac_optarg ;; 1075 1076 -includedir | --includedir | --includedi | --included | --include \ 1077 | --includ | --inclu | --incl | --inc) 1078 ac_prev=includedir ;; 1079 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1080 | --includ=* | --inclu=* | --incl=* | --inc=*) 1081 includedir=$ac_optarg ;; 1082 1083 -infodir | --infodir | --infodi | --infod | --info | --inf) 1084 ac_prev=infodir ;; 1085 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1086 infodir=$ac_optarg ;; 1087 1088 -libdir | --libdir | --libdi | --libd) 1089 ac_prev=libdir ;; 1090 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1091 libdir=$ac_optarg ;; 1092 1093 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1094 | --libexe | --libex | --libe) 1095 ac_prev=libexecdir ;; 1096 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1097 | --libexe=* | --libex=* | --libe=*) 1098 libexecdir=$ac_optarg ;; 1099 1100 -localedir | --localedir | --localedi | --localed | --locale) 1101 ac_prev=localedir ;; 1102 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1103 localedir=$ac_optarg ;; 1104 1105 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1106 | --localstate | --localstat | --localsta | --localst | --locals) 1107 ac_prev=localstatedir ;; 1108 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1109 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1110 localstatedir=$ac_optarg ;; 1111 1112 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1113 ac_prev=mandir ;; 1114 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1115 mandir=$ac_optarg ;; 1116 1117 -nfp | --nfp | --nf) 1118 # Obsolete; use --without-fp. 1119 with_fp=no ;; 1120 1121 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1122 | --no-cr | --no-c | -n) 1123 no_create=yes ;; 1124 1125 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1126 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1127 no_recursion=yes ;; 1128 1129 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1130 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1131 | --oldin | --oldi | --old | --ol | --o) 1132 ac_prev=oldincludedir ;; 1133 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1134 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1135 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1136 oldincludedir=$ac_optarg ;; 1137 1138 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1139 ac_prev=prefix ;; 1140 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1141 prefix=$ac_optarg ;; 1142 1143 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1144 | --program-pre | --program-pr | --program-p) 1145 ac_prev=program_prefix ;; 1146 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1147 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1148 program_prefix=$ac_optarg ;; 1149 1150 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1151 | --program-suf | --program-su | --program-s) 1152 ac_prev=program_suffix ;; 1153 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1154 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1155 program_suffix=$ac_optarg ;; 1156 1157 -program-transform-name | --program-transform-name \ 1158 | --program-transform-nam | --program-transform-na \ 1159 | --program-transform-n | --program-transform- \ 1160 | --program-transform | --program-transfor \ 1161 | --program-transfo | --program-transf \ 1162 | --program-trans | --program-tran \ 1163 | --progr-tra | --program-tr | --program-t) 1164 ac_prev=program_transform_name ;; 1165 -program-transform-name=* | --program-transform-name=* \ 1166 | --program-transform-nam=* | --program-transform-na=* \ 1167 | --program-transform-n=* | --program-transform-=* \ 1168 | --program-transform=* | --program-transfor=* \ 1169 | --program-transfo=* | --program-transf=* \ 1170 | --program-trans=* | --program-tran=* \ 1171 | --progr-tra=* | --program-tr=* | --program-t=*) 1172 program_transform_name=$ac_optarg ;; 1173 1174 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1175 ac_prev=pdfdir ;; 1176 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1177 pdfdir=$ac_optarg ;; 1178 1179 -psdir | --psdir | --psdi | --psd | --ps) 1180 ac_prev=psdir ;; 1181 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1182 psdir=$ac_optarg ;; 1183 1184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1185 | -silent | --silent | --silen | --sile | --sil) 1186 silent=yes ;; 1187 1188 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1189 ac_prev=sbindir ;; 1190 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1191 | --sbi=* | --sb=*) 1192 sbindir=$ac_optarg ;; 1193 1194 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1195 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1196 | --sharedst | --shareds | --shared | --share | --shar \ 1197 | --sha | --sh) 1198 ac_prev=sharedstatedir ;; 1199 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1200 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1201 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1202 | --sha=* | --sh=*) 1203 sharedstatedir=$ac_optarg ;; 1204 1205 -site | --site | --sit) 1206 ac_prev=site ;; 1207 -site=* | --site=* | --sit=*) 1208 site=$ac_optarg ;; 1209 1210 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1211 ac_prev=srcdir ;; 1212 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1213 srcdir=$ac_optarg ;; 1214 1215 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1216 | --syscon | --sysco | --sysc | --sys | --sy) 1217 ac_prev=sysconfdir ;; 1218 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1219 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1220 sysconfdir=$ac_optarg ;; 1221 1222 -target | --target | --targe | --targ | --tar | --ta | --t) 1223 ac_prev=target_alias ;; 1224 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1225 target_alias=$ac_optarg ;; 1226 1227 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1228 verbose=yes ;; 1229 1230 -version | --version | --versio | --versi | --vers | -V) 1231 ac_init_version=: ;; 1232 1233 -with-* | --with-*) 1234 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1235 # Reject names that are not valid shell variable names. 1236 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1237 as_fn_error $? "invalid package name: $ac_useropt" 1238 ac_useropt_orig=$ac_useropt 1239 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1240 case $ac_user_opts in 1241 *" 1242 "with_$ac_useropt" 1243 "*) ;; 1244 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1245 ac_unrecognized_sep=', ';; 1246 esac 1247 eval with_$ac_useropt=\$ac_optarg ;; 1248 1249 -without-* | --without-*) 1250 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1251 # Reject names that are not valid shell variable names. 1252 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1253 as_fn_error $? "invalid package name: $ac_useropt" 1254 ac_useropt_orig=$ac_useropt 1255 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1256 case $ac_user_opts in 1257 *" 1258 "with_$ac_useropt" 1259 "*) ;; 1260 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1261 ac_unrecognized_sep=', ';; 1262 esac 1263 eval with_$ac_useropt=no ;; 1264 1265 --x) 1266 # Obsolete; use --with-x. 1267 with_x=yes ;; 1268 1269 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1270 | --x-incl | --x-inc | --x-in | --x-i) 1271 ac_prev=x_includes ;; 1272 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1273 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1274 x_includes=$ac_optarg ;; 1275 1276 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1277 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1278 ac_prev=x_libraries ;; 1279 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1280 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1281 x_libraries=$ac_optarg ;; 1282 1283 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1284 Try \`$0 --help' for more information" 1285 ;; 1286 1287 *=*) 1288 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1289 # Reject names that are not valid shell variable names. 1290 case $ac_envvar in #( 1291 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1292 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1293 esac 1294 eval $ac_envvar=\$ac_optarg 1295 export $ac_envvar ;; 1296 1297 *) 1298 # FIXME: should be removed in autoconf 3.0. 1299 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1300 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1301 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1302 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1303 ;; 1304 1305 esac 1306 done 1307 1308 if test -n "$ac_prev"; then 1309 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1310 as_fn_error $? "missing argument to $ac_option" 1311 fi 1312 1313 if test -n "$ac_unrecognized_opts"; then 1314 case $enable_option_checking in 1315 no) ;; 1316 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1317 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1318 esac 1319 fi 1320 1321 # Check all directory arguments for consistency. 1322 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1323 datadir sysconfdir sharedstatedir localstatedir includedir \ 1324 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1325 libdir localedir mandir 1326 do 1327 eval ac_val=\$$ac_var 1328 # Remove trailing slashes. 1329 case $ac_val in 1330 */ ) 1331 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1332 eval $ac_var=\$ac_val;; 1333 esac 1334 # Be sure to have absolute directory names. 1335 case $ac_val in 1336 [\\/$]* | ?:[\\/]* ) continue;; 1337 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1338 esac 1339 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1340 done 1341 1342 # There might be people who depend on the old broken behavior: `$host' 1343 # used to hold the argument of --host etc. 1344 # FIXME: To remove some day. 1345 build=$build_alias 1346 host=$host_alias 1347 target=$target_alias 1348 1349 # FIXME: To remove some day. 1350 if test "x$host_alias" != x; then 1351 if test "x$build_alias" = x; then 1352 cross_compiling=maybe 1353 elif test "x$build_alias" != "x$host_alias"; then 1354 cross_compiling=yes 1355 fi 1356 fi 1357 1358 ac_tool_prefix= 1359 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1360 1361 test "$silent" = yes && exec 6>/dev/null 1362 1363 1364 ac_pwd=`pwd` && test -n "$ac_pwd" && 1365 ac_ls_di=`ls -di .` && 1366 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1367 as_fn_error $? "working directory cannot be determined" 1368 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1369 as_fn_error $? "pwd does not report name of working directory" 1370 1371 1372 # Find the source files, if location was not specified. 1373 if test -z "$srcdir"; then 1374 ac_srcdir_defaulted=yes 1375 # Try the directory containing this script, then the parent directory. 1376 ac_confdir=`$as_dirname -- "$as_myself" || 1377 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1378 X"$as_myself" : 'X\(//\)[^/]' \| \ 1379 X"$as_myself" : 'X\(//\)$' \| \ 1380 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1381 $as_echo X"$as_myself" | 1382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1383 s//\1/ 1384 q 1385 } 1386 /^X\(\/\/\)[^/].*/{ 1387 s//\1/ 1388 q 1389 } 1390 /^X\(\/\/\)$/{ 1391 s//\1/ 1392 q 1393 } 1394 /^X\(\/\).*/{ 1395 s//\1/ 1396 q 1397 } 1398 s/.*/./; q'` 1399 srcdir=$ac_confdir 1400 if test ! -r "$srcdir/$ac_unique_file"; then 1401 srcdir=.. 1402 fi 1403 else 1404 ac_srcdir_defaulted=no 1405 fi 1406 if test ! -r "$srcdir/$ac_unique_file"; then 1407 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1408 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1409 fi 1410 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1411 ac_abs_confdir=`( 1412 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1413 pwd)` 1414 # When building in place, set srcdir=. 1415 if test "$ac_abs_confdir" = "$ac_pwd"; then 1416 srcdir=. 1417 fi 1418 # Remove unnecessary trailing slashes from srcdir. 1419 # Double slashes in file names in object file debugging info 1420 # mess up M-x gdb in Emacs. 1421 case $srcdir in 1422 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1423 esac 1424 for ac_var in $ac_precious_vars; do 1425 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1426 eval ac_env_${ac_var}_value=\$${ac_var} 1427 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1428 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1429 done 1430 1431 # 1432 # Report the --help message. 1433 # 1434 if test "$ac_init_help" = "long"; then 1435 # Omit some internal or obsolete options to make the list less imposing. 1436 # This message is too long to be a string in the A/UX 3.1 sh. 1437 cat <<_ACEOF 1438 \`configure' configures libmicrohttpd 0.9.42 to adapt to many kinds of systems. 1439 1440 Usage: $0 [OPTION]... [VAR=VALUE]... 1441 1442 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1443 VAR=VALUE. See below for descriptions of some of the useful variables. 1444 1445 Defaults for the options are specified in brackets. 1446 1447 Configuration: 1448 -h, --help display this help and exit 1449 --help=short display options specific to this package 1450 --help=recursive display the short help of all the included packages 1451 -V, --version display version information and exit 1452 -q, --quiet, --silent do not print \`checking ...' messages 1453 --cache-file=FILE cache test results in FILE [disabled] 1454 -C, --config-cache alias for \`--cache-file=config.cache' 1455 -n, --no-create do not create output files 1456 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1457 1458 Installation directories: 1459 --prefix=PREFIX install architecture-independent files in PREFIX 1460 [$ac_default_prefix] 1461 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1462 [PREFIX] 1463 1464 By default, \`make install' will install all the files in 1465 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1466 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1467 for instance \`--prefix=\$HOME'. 1468 1469 For better control, use the options below. 1470 1471 Fine tuning of the installation directories: 1472 --bindir=DIR user executables [EPREFIX/bin] 1473 --sbindir=DIR system admin executables [EPREFIX/sbin] 1474 --libexecdir=DIR program executables [EPREFIX/libexec] 1475 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1476 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1477 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1478 --libdir=DIR object code libraries [EPREFIX/lib] 1479 --includedir=DIR C header files [PREFIX/include] 1480 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1481 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1482 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1483 --infodir=DIR info documentation [DATAROOTDIR/info] 1484 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1485 --mandir=DIR man documentation [DATAROOTDIR/man] 1486 --docdir=DIR documentation root [DATAROOTDIR/doc/libmicrohttpd] 1487 --htmldir=DIR html documentation [DOCDIR] 1488 --dvidir=DIR dvi documentation [DOCDIR] 1489 --pdfdir=DIR pdf documentation [DOCDIR] 1490 --psdir=DIR ps documentation [DOCDIR] 1491 _ACEOF 1492 1493 cat <<\_ACEOF 1494 1495 Program names: 1496 --program-prefix=PREFIX prepend PREFIX to installed program names 1497 --program-suffix=SUFFIX append SUFFIX to installed program names 1498 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1499 1500 System types: 1501 --build=BUILD configure for building on BUILD [guessed] 1502 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1503 _ACEOF 1504 fi 1505 1506 if test -n "$ac_init_help"; then 1507 case $ac_init_help in 1508 short | recursive ) echo "Configuration of libmicrohttpd 0.9.42:";; 1509 esac 1510 cat <<\_ACEOF 1511 1512 Optional Features: 1513 --disable-option-checking ignore unrecognized --enable/--with options 1514 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1515 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1516 --enable-silent-rules less verbose build output (undo: "make V=1") 1517 --disable-silent-rules verbose build output (undo: "make V=0") 1518 --enable-dependency-tracking 1519 do not reject slow dependency extractors 1520 --disable-dependency-tracking 1521 speeds up one-time build 1522 --enable-shared[=PKGS] build shared libraries [default=yes] 1523 --enable-static[=PKGS] build static libraries [default=yes] 1524 --enable-fast-install[=PKGS] 1525 optimize for fast installation [default=yes] 1526 --disable-libtool-lock avoid locking (might break parallel builds) 1527 --disable-doc do not build any documentation 1528 --disable-examples do not build any examples 1529 --enable-poll[=ARG] enable poll support (yes, no, auto) [auto] 1530 --enable-epoll[=ARG] enable epoll support (yes, no, auto) [auto] 1531 --enable-socketpair[=ARG] 1532 disable internal singalling by pipes and use socket 1533 pair instead (yes, no, try) [no] 1534 --disable-curl disable cURL based testcases 1535 --enable-spdy enable build libmicrospdy (yes, no, auto) [auto] 1536 --disable-largefile omit support for large files 1537 --disable-messages disable MHD error messages 1538 --disable-postprocessor disable MHD PostProcessor functionality 1539 --enable-https enable HTTPS support (yes, no, auto)[auto] 1540 --disable-bauth disable HTTP basic Auth support 1541 --disable-dauth disable HTTP basic and digest Auth support 1542 --enable-coverage compile the library with code coverage support 1543 1544 Optional Packages: 1545 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1546 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1547 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1548 both] 1549 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1550 --with-sysroot=DIR Search for dependent libraries within DIR 1551 (or the compiler's sysroot if not specified). 1552 --with-threads=LIB choose threading library (posix, w32, auto) [auto] 1553 --with-libcurl=PREFIX look for the curl library in PREFIX/lib and headers 1554 in PREFIX/include 1555 --with-openssl=DIR root of the OpenSSL directory 1556 --with-libgcrypt-prefix=PFX 1557 prefix where LIBGCRYPT is installed (optional) 1558 --with-gnutls[=PFX] use GnuTLS for HTTPS support, optional PFX overrides 1559 pkg-config data for GnuTLS headers (PFX/include) and 1560 libs (PFX/lib) 1561 1562 Some influential environment variables: 1563 CC C compiler command 1564 CFLAGS C compiler flags 1565 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1566 nonstandard directory <lib dir> 1567 LIBS libraries to pass to the linker, e.g. -l<library> 1568 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1569 you have headers in a nonstandard directory <include dir> 1570 CPP C preprocessor 1571 PKG_CONFIG path to pkg-config utility 1572 PKG_CONFIG_PATH 1573 directories to add to pkg-config's search path 1574 PKG_CONFIG_LIBDIR 1575 path overriding pkg-config's built-in search path 1576 GNUTLS_CFLAGS 1577 C compiler flags for GNUTLS, overriding pkg-config 1578 GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config 1579 1580 Use these variables to override the choices made by `configure' or to help 1581 it to find libraries and programs with nonstandard names/locations. 1582 1583 Report bugs to <libmicrohttpd (at] gnu.org>. 1584 _ACEOF 1585 ac_status=$? 1586 fi 1587 1588 if test "$ac_init_help" = "recursive"; then 1589 # If there are subdirs, report their specific --help. 1590 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1591 test -d "$ac_dir" || 1592 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1593 continue 1594 ac_builddir=. 1595 1596 case "$ac_dir" in 1597 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1598 *) 1599 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1600 # A ".." for each directory in $ac_dir_suffix. 1601 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1602 case $ac_top_builddir_sub in 1603 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1604 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1605 esac ;; 1606 esac 1607 ac_abs_top_builddir=$ac_pwd 1608 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1609 # for backward compatibility: 1610 ac_top_builddir=$ac_top_build_prefix 1611 1612 case $srcdir in 1613 .) # We are building in place. 1614 ac_srcdir=. 1615 ac_top_srcdir=$ac_top_builddir_sub 1616 ac_abs_top_srcdir=$ac_pwd ;; 1617 [\\/]* | ?:[\\/]* ) # Absolute name. 1618 ac_srcdir=$srcdir$ac_dir_suffix; 1619 ac_top_srcdir=$srcdir 1620 ac_abs_top_srcdir=$srcdir ;; 1621 *) # Relative name. 1622 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1623 ac_top_srcdir=$ac_top_build_prefix$srcdir 1624 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1625 esac 1626 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1627 1628 cd "$ac_dir" || { ac_status=$?; continue; } 1629 # Check for guested configure. 1630 if test -f "$ac_srcdir/configure.gnu"; then 1631 echo && 1632 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1633 elif test -f "$ac_srcdir/configure"; then 1634 echo && 1635 $SHELL "$ac_srcdir/configure" --help=recursive 1636 else 1637 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1638 fi || ac_status=$? 1639 cd "$ac_pwd" || { ac_status=$?; break; } 1640 done 1641 fi 1642 1643 test -n "$ac_init_help" && exit $ac_status 1644 if $ac_init_version; then 1645 cat <<\_ACEOF 1646 libmicrohttpd configure 0.9.42 1647 generated by GNU Autoconf 2.69 1648 1649 Copyright (C) 2012 Free Software Foundation, Inc. 1650 This configure script is free software; the Free Software Foundation 1651 gives unlimited permission to copy, distribute and modify it. 1652 _ACEOF 1653 exit 1654 fi 1655 1656 ## ------------------------ ## 1657 ## Autoconf initialization. ## 1658 ## ------------------------ ## 1659 1660 # ac_fn_c_try_compile LINENO 1661 # -------------------------- 1662 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1663 ac_fn_c_try_compile () 1664 { 1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1666 rm -f conftest.$ac_objext 1667 if { { ac_try="$ac_compile" 1668 case "(($ac_try" in 1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1670 *) ac_try_echo=$ac_try;; 1671 esac 1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1673 $as_echo "$ac_try_echo"; } >&5 1674 (eval "$ac_compile") 2>conftest.err 1675 ac_status=$? 1676 if test -s conftest.err; then 1677 grep -v '^ *+' conftest.err >conftest.er1 1678 cat conftest.er1 >&5 1679 mv -f conftest.er1 conftest.err 1680 fi 1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1682 test $ac_status = 0; } && { 1683 test -z "$ac_c_werror_flag" || 1684 test ! -s conftest.err 1685 } && test -s conftest.$ac_objext; then : 1686 ac_retval=0 1687 else 1688 $as_echo "$as_me: failed program was:" >&5 1689 sed 's/^/| /' conftest.$ac_ext >&5 1690 1691 ac_retval=1 1692 fi 1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1694 as_fn_set_status $ac_retval 1695 1696 } # ac_fn_c_try_compile 1697 1698 # ac_fn_c_try_link LINENO 1699 # ----------------------- 1700 # Try to link conftest.$ac_ext, and return whether this succeeded. 1701 ac_fn_c_try_link () 1702 { 1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1704 rm -f conftest.$ac_objext conftest$ac_exeext 1705 if { { ac_try="$ac_link" 1706 case "(($ac_try" in 1707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1708 *) ac_try_echo=$ac_try;; 1709 esac 1710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1711 $as_echo "$ac_try_echo"; } >&5 1712 (eval "$ac_link") 2>conftest.err 1713 ac_status=$? 1714 if test -s conftest.err; then 1715 grep -v '^ *+' conftest.err >conftest.er1 1716 cat conftest.er1 >&5 1717 mv -f conftest.er1 conftest.err 1718 fi 1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1720 test $ac_status = 0; } && { 1721 test -z "$ac_c_werror_flag" || 1722 test ! -s conftest.err 1723 } && test -s conftest$ac_exeext && { 1724 test "$cross_compiling" = yes || 1725 test -x conftest$ac_exeext 1726 }; then : 1727 ac_retval=0 1728 else 1729 $as_echo "$as_me: failed program was:" >&5 1730 sed 's/^/| /' conftest.$ac_ext >&5 1731 1732 ac_retval=1 1733 fi 1734 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1735 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1736 # interfere with the next link command; also delete a directory that is 1737 # left behind by Apple's compiler. We do this before executing the actions. 1738 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1740 as_fn_set_status $ac_retval 1741 1742 } # ac_fn_c_try_link 1743 1744 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1745 # ------------------------------------------------------- 1746 # Tests whether HEADER exists and can be compiled using the include files in 1747 # INCLUDES, setting the cache variable VAR accordingly. 1748 ac_fn_c_check_header_compile () 1749 { 1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1752 $as_echo_n "checking for $2... " >&6; } 1753 if eval \${$3+:} false; then : 1754 $as_echo_n "(cached) " >&6 1755 else 1756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1757 /* end confdefs.h. */ 1758 $4 1759 #include <$2> 1760 _ACEOF 1761 if ac_fn_c_try_compile "$LINENO"; then : 1762 eval "$3=yes" 1763 else 1764 eval "$3=no" 1765 fi 1766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1767 fi 1768 eval ac_res=\$$3 1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1770 $as_echo "$ac_res" >&6; } 1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1772 1773 } # ac_fn_c_check_header_compile 1774 1775 # ac_fn_c_try_cpp LINENO 1776 # ---------------------- 1777 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1778 ac_fn_c_try_cpp () 1779 { 1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1781 if { { ac_try="$ac_cpp conftest.$ac_ext" 1782 case "(($ac_try" in 1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1784 *) ac_try_echo=$ac_try;; 1785 esac 1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1787 $as_echo "$ac_try_echo"; } >&5 1788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1789 ac_status=$? 1790 if test -s conftest.err; then 1791 grep -v '^ *+' conftest.err >conftest.er1 1792 cat conftest.er1 >&5 1793 mv -f conftest.er1 conftest.err 1794 fi 1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1796 test $ac_status = 0; } > conftest.i && { 1797 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1798 test ! -s conftest.err 1799 }; then : 1800 ac_retval=0 1801 else 1802 $as_echo "$as_me: failed program was:" >&5 1803 sed 's/^/| /' conftest.$ac_ext >&5 1804 1805 ac_retval=1 1806 fi 1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1808 as_fn_set_status $ac_retval 1809 1810 } # ac_fn_c_try_cpp 1811 1812 # ac_fn_c_try_run LINENO 1813 # ---------------------- 1814 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1815 # that executables *can* be run. 1816 ac_fn_c_try_run () 1817 { 1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1819 if { { ac_try="$ac_link" 1820 case "(($ac_try" in 1821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1822 *) ac_try_echo=$ac_try;; 1823 esac 1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1825 $as_echo "$ac_try_echo"; } >&5 1826 (eval "$ac_link") 2>&5 1827 ac_status=$? 1828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1829 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1830 { { case "(($ac_try" in 1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1832 *) ac_try_echo=$ac_try;; 1833 esac 1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1835 $as_echo "$ac_try_echo"; } >&5 1836 (eval "$ac_try") 2>&5 1837 ac_status=$? 1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1839 test $ac_status = 0; }; }; then : 1840 ac_retval=0 1841 else 1842 $as_echo "$as_me: program exited with status $ac_status" >&5 1843 $as_echo "$as_me: failed program was:" >&5 1844 sed 's/^/| /' conftest.$ac_ext >&5 1845 1846 ac_retval=$ac_status 1847 fi 1848 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1850 as_fn_set_status $ac_retval 1851 1852 } # ac_fn_c_try_run 1853 1854 # ac_fn_c_check_func LINENO FUNC VAR 1855 # ---------------------------------- 1856 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1857 ac_fn_c_check_func () 1858 { 1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1861 $as_echo_n "checking for $2... " >&6; } 1862 if eval \${$3+:} false; then : 1863 $as_echo_n "(cached) " >&6 1864 else 1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1866 /* end confdefs.h. */ 1867 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1868 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1869 #define $2 innocuous_$2 1870 1871 /* System header to define __stub macros and hopefully few prototypes, 1872 which can conflict with char $2 (); below. 1873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1874 <limits.h> exists even on freestanding compilers. */ 1875 1876 #ifdef __STDC__ 1877 # include <limits.h> 1878 #else 1879 # include <assert.h> 1880 #endif 1881 1882 #undef $2 1883 1884 /* Override any GCC internal prototype to avoid an error. 1885 Use char because int might match the return type of a GCC 1886 builtin and then its argument prototype would still apply. */ 1887 #ifdef __cplusplus 1888 extern "C" 1889 #endif 1890 char $2 (); 1891 /* The GNU C library defines this for functions which it implements 1892 to always fail with ENOSYS. Some functions are actually named 1893 something starting with __ and the normal name is an alias. */ 1894 #if defined __stub_$2 || defined __stub___$2 1895 choke me 1896 #endif 1897 1898 int 1899 main () 1900 { 1901 return $2 (); 1902 ; 1903 return 0; 1904 } 1905 _ACEOF 1906 if ac_fn_c_try_link "$LINENO"; then : 1907 eval "$3=yes" 1908 else 1909 eval "$3=no" 1910 fi 1911 rm -f core conftest.err conftest.$ac_objext \ 1912 conftest$ac_exeext conftest.$ac_ext 1913 fi 1914 eval ac_res=\$$3 1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1916 $as_echo "$ac_res" >&6; } 1917 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1918 1919 } # ac_fn_c_check_func 1920 1921 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1922 # ------------------------------------------------------- 1923 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 1924 # the include files in INCLUDES and setting the cache variable VAR 1925 # accordingly. 1926 ac_fn_c_check_header_mongrel () 1927 { 1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1929 if eval \${$3+:} false; then : 1930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1931 $as_echo_n "checking for $2... " >&6; } 1932 if eval \${$3+:} false; then : 1933 $as_echo_n "(cached) " >&6 1934 fi 1935 eval ac_res=\$$3 1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1937 $as_echo "$ac_res" >&6; } 1938 else 1939 # Is the header compilable? 1940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1941 $as_echo_n "checking $2 usability... " >&6; } 1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1943 /* end confdefs.h. */ 1944 $4 1945 #include <$2> 1946 _ACEOF 1947 if ac_fn_c_try_compile "$LINENO"; then : 1948 ac_header_compiler=yes 1949 else 1950 ac_header_compiler=no 1951 fi 1952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1954 $as_echo "$ac_header_compiler" >&6; } 1955 1956 # Is the header present? 1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1958 $as_echo_n "checking $2 presence... " >&6; } 1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1960 /* end confdefs.h. */ 1961 #include <$2> 1962 _ACEOF 1963 if ac_fn_c_try_cpp "$LINENO"; then : 1964 ac_header_preproc=yes 1965 else 1966 ac_header_preproc=no 1967 fi 1968 rm -f conftest.err conftest.i conftest.$ac_ext 1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1970 $as_echo "$ac_header_preproc" >&6; } 1971 1972 # So? What about this header? 1973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1974 yes:no: ) 1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1976 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1978 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1979 ;; 1980 no:yes:* ) 1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1982 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1984 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1986 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1988 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1990 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1991 ( $as_echo "## ------------------------------------ ## 1992 ## Report this to libmicrohttpd (at] gnu.org ## 1993 ## ------------------------------------ ##" 1994 ) | sed "s/^/$as_me: WARNING: /" >&2 1995 ;; 1996 esac 1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1998 $as_echo_n "checking for $2... " >&6; } 1999 if eval \${$3+:} false; then : 2000 $as_echo_n "(cached) " >&6 2001 else 2002 eval "$3=\$ac_header_compiler" 2003 fi 2004 eval ac_res=\$$3 2005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2006 $as_echo "$ac_res" >&6; } 2007 fi 2008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2009 2010 } # ac_fn_c_check_header_mongrel 2011 2012 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2013 # ---------------------------------------------------- 2014 # Tries to find if the field MEMBER exists in type AGGR, after including 2015 # INCLUDES, setting cache variable VAR accordingly. 2016 ac_fn_c_check_member () 2017 { 2018 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2020 $as_echo_n "checking for $2.$3... " >&6; } 2021 if eval \${$4+:} false; then : 2022 $as_echo_n "(cached) " >&6 2023 else 2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2025 /* end confdefs.h. */ 2026 $5 2027 int 2028 main () 2029 { 2030 static $2 ac_aggr; 2031 if (ac_aggr.$3) 2032 return 0; 2033 ; 2034 return 0; 2035 } 2036 _ACEOF 2037 if ac_fn_c_try_compile "$LINENO"; then : 2038 eval "$4=yes" 2039 else 2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2041 /* end confdefs.h. */ 2042 $5 2043 int 2044 main () 2045 { 2046 static $2 ac_aggr; 2047 if (sizeof ac_aggr.$3) 2048 return 0; 2049 ; 2050 return 0; 2051 } 2052 _ACEOF 2053 if ac_fn_c_try_compile "$LINENO"; then : 2054 eval "$4=yes" 2055 else 2056 eval "$4=no" 2057 fi 2058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2059 fi 2060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2061 fi 2062 eval ac_res=\$$4 2063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2064 $as_echo "$ac_res" >&6; } 2065 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2066 2067 } # ac_fn_c_check_member 2068 2069 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2070 # --------------------------------------------- 2071 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2072 # accordingly. 2073 ac_fn_c_check_decl () 2074 { 2075 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2076 as_decl_name=`echo $2|sed 's/ *(.*//'` 2077 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2079 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2080 if eval \${$3+:} false; then : 2081 $as_echo_n "(cached) " >&6 2082 else 2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2084 /* end confdefs.h. */ 2085 $4 2086 int 2087 main () 2088 { 2089 #ifndef $as_decl_name 2090 #ifdef __cplusplus 2091 (void) $as_decl_use; 2092 #else 2093 (void) $as_decl_name; 2094 #endif 2095 #endif 2096 2097 ; 2098 return 0; 2099 } 2100 _ACEOF 2101 if ac_fn_c_try_compile "$LINENO"; then : 2102 eval "$3=yes" 2103 else 2104 eval "$3=no" 2105 fi 2106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2107 fi 2108 eval ac_res=\$$3 2109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2110 $as_echo "$ac_res" >&6; } 2111 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2112 2113 } # ac_fn_c_check_decl 2114 cat >config.log <<_ACEOF 2115 This file contains any messages produced by compilers while 2116 running configure, to aid debugging if configure makes a mistake. 2117 2118 It was created by libmicrohttpd $as_me 0.9.42, which was 2119 generated by GNU Autoconf 2.69. Invocation command line was 2120 2121 $ $0 $@ 2122 2123 _ACEOF 2124 exec 5>>config.log 2125 { 2126 cat <<_ASUNAME 2127 ## --------- ## 2128 ## Platform. ## 2129 ## --------- ## 2130 2131 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2132 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2133 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2134 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2135 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2136 2137 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2138 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2139 2140 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2141 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2142 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2143 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2144 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2145 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2146 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2147 2148 _ASUNAME 2149 2150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2151 for as_dir in $PATH 2152 do 2153 IFS=$as_save_IFS 2154 test -z "$as_dir" && as_dir=. 2155 $as_echo "PATH: $as_dir" 2156 done 2157 IFS=$as_save_IFS 2158 2159 } >&5 2160 2161 cat >&5 <<_ACEOF 2162 2163 2164 ## ----------- ## 2165 ## Core tests. ## 2166 ## ----------- ## 2167 2168 _ACEOF 2169 2170 2171 # Keep a trace of the command line. 2172 # Strip out --no-create and --no-recursion so they do not pile up. 2173 # Strip out --silent because we don't want to record it for future runs. 2174 # Also quote any args containing shell meta-characters. 2175 # Make two passes to allow for proper duplicate-argument suppression. 2176 ac_configure_args= 2177 ac_configure_args0= 2178 ac_configure_args1= 2179 ac_must_keep_next=false 2180 for ac_pass in 1 2 2181 do 2182 for ac_arg 2183 do 2184 case $ac_arg in 2185 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2186 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2187 | -silent | --silent | --silen | --sile | --sil) 2188 continue ;; 2189 *\'*) 2190 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2191 esac 2192 case $ac_pass in 2193 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2194 2) 2195 as_fn_append ac_configure_args1 " '$ac_arg'" 2196 if test $ac_must_keep_next = true; then 2197 ac_must_keep_next=false # Got value, back to normal. 2198 else 2199 case $ac_arg in 2200 *=* | --config-cache | -C | -disable-* | --disable-* \ 2201 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2202 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2203 | -with-* | --with-* | -without-* | --without-* | --x) 2204 case "$ac_configure_args0 " in 2205 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2206 esac 2207 ;; 2208 -* ) ac_must_keep_next=true ;; 2209 esac 2210 fi 2211 as_fn_append ac_configure_args " '$ac_arg'" 2212 ;; 2213 esac 2214 done 2215 done 2216 { ac_configure_args0=; unset ac_configure_args0;} 2217 { ac_configure_args1=; unset ac_configure_args1;} 2218 2219 # When interrupted or exit'd, cleanup temporary files, and complete 2220 # config.log. We remove comments because anyway the quotes in there 2221 # would cause problems or look ugly. 2222 # WARNING: Use '\'' to represent an apostrophe within the trap. 2223 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2224 trap 'exit_status=$? 2225 # Save into config.log some information that might help in debugging. 2226 { 2227 echo 2228 2229 $as_echo "## ---------------- ## 2230 ## Cache variables. ## 2231 ## ---------------- ##" 2232 echo 2233 # The following way of writing the cache mishandles newlines in values, 2234 ( 2235 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2236 eval ac_val=\$$ac_var 2237 case $ac_val in #( 2238 *${as_nl}*) 2239 case $ac_var in #( 2240 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2241 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2242 esac 2243 case $ac_var in #( 2244 _ | IFS | as_nl) ;; #( 2245 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2246 *) { eval $ac_var=; unset $ac_var;} ;; 2247 esac ;; 2248 esac 2249 done 2250 (set) 2>&1 | 2251 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2252 *${as_nl}ac_space=\ *) 2253 sed -n \ 2254 "s/'\''/'\''\\\\'\'''\''/g; 2255 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2256 ;; #( 2257 *) 2258 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2259 ;; 2260 esac | 2261 sort 2262 ) 2263 echo 2264 2265 $as_echo "## ----------------- ## 2266 ## Output variables. ## 2267 ## ----------------- ##" 2268 echo 2269 for ac_var in $ac_subst_vars 2270 do 2271 eval ac_val=\$$ac_var 2272 case $ac_val in 2273 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2274 esac 2275 $as_echo "$ac_var='\''$ac_val'\''" 2276 done | sort 2277 echo 2278 2279 if test -n "$ac_subst_files"; then 2280 $as_echo "## ------------------- ## 2281 ## File substitutions. ## 2282 ## ------------------- ##" 2283 echo 2284 for ac_var in $ac_subst_files 2285 do 2286 eval ac_val=\$$ac_var 2287 case $ac_val in 2288 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2289 esac 2290 $as_echo "$ac_var='\''$ac_val'\''" 2291 done | sort 2292 echo 2293 fi 2294 2295 if test -s confdefs.h; then 2296 $as_echo "## ----------- ## 2297 ## confdefs.h. ## 2298 ## ----------- ##" 2299 echo 2300 cat confdefs.h 2301 echo 2302 fi 2303 test "$ac_signal" != 0 && 2304 $as_echo "$as_me: caught signal $ac_signal" 2305 $as_echo "$as_me: exit $exit_status" 2306 } >&5 2307 rm -f core *.core core.conftest.* && 2308 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2309 exit $exit_status 2310 ' 0 2311 for ac_signal in 1 2 13 15; do 2312 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2313 done 2314 ac_signal=0 2315 2316 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2317 rm -f -r conftest* confdefs.h 2318 2319 $as_echo "/* confdefs.h */" > confdefs.h 2320 2321 # Predefined preprocessor variables. 2322 2323 cat >>confdefs.h <<_ACEOF 2324 #define PACKAGE_NAME "$PACKAGE_NAME" 2325 _ACEOF 2326 2327 cat >>confdefs.h <<_ACEOF 2328 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2329 _ACEOF 2330 2331 cat >>confdefs.h <<_ACEOF 2332 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2333 _ACEOF 2334 2335 cat >>confdefs.h <<_ACEOF 2336 #define PACKAGE_STRING "$PACKAGE_STRING" 2337 _ACEOF 2338 2339 cat >>confdefs.h <<_ACEOF 2340 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2341 _ACEOF 2342 2343 cat >>confdefs.h <<_ACEOF 2344 #define PACKAGE_URL "$PACKAGE_URL" 2345 _ACEOF 2346 2347 2348 # Let the site file select an alternate cache file if it wants to. 2349 # Prefer an explicitly selected file to automatically selected ones. 2350 ac_site_file1=NONE 2351 ac_site_file2=NONE 2352 if test -n "$CONFIG_SITE"; then 2353 # We do not want a PATH search for config.site. 2354 case $CONFIG_SITE in #(( 2355 -*) ac_site_file1=./$CONFIG_SITE;; 2356 */*) ac_site_file1=$CONFIG_SITE;; 2357 *) ac_site_file1=./$CONFIG_SITE;; 2358 esac 2359 elif test "x$prefix" != xNONE; then 2360 ac_site_file1=$prefix/share/config.site 2361 ac_site_file2=$prefix/etc/config.site 2362 else 2363 ac_site_file1=$ac_default_prefix/share/config.site 2364 ac_site_file2=$ac_default_prefix/etc/config.site 2365 fi 2366 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2367 do 2368 test "x$ac_site_file" = xNONE && continue 2369 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2370 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2371 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2372 sed 's/^/| /' "$ac_site_file" >&5 2373 . "$ac_site_file" \ 2374 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2376 as_fn_error $? "failed to load site script $ac_site_file 2377 See \`config.log' for more details" "$LINENO" 5; } 2378 fi 2379 done 2380 2381 if test -r "$cache_file"; then 2382 # Some versions of bash will fail to source /dev/null (special files 2383 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2384 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2385 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2386 $as_echo "$as_me: loading cache $cache_file" >&6;} 2387 case $cache_file in 2388 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2389 *) . "./$cache_file";; 2390 esac 2391 fi 2392 else 2393 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2394 $as_echo "$as_me: creating cache $cache_file" >&6;} 2395 >$cache_file 2396 fi 2397 2398 as_fn_append ac_func_list " memmem" 2399 as_fn_append ac_func_list " accept4" 2400 # Check that the precious variables saved in the cache have kept the same 2401 # value. 2402 ac_cache_corrupted=false 2403 for ac_var in $ac_precious_vars; do 2404 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2405 eval ac_new_set=\$ac_env_${ac_var}_set 2406 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2407 eval ac_new_val=\$ac_env_${ac_var}_value 2408 case $ac_old_set,$ac_new_set in 2409 set,) 2410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2411 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2412 ac_cache_corrupted=: ;; 2413 ,set) 2414 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2415 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2416 ac_cache_corrupted=: ;; 2417 ,);; 2418 *) 2419 if test "x$ac_old_val" != "x$ac_new_val"; then 2420 # differences in whitespace do not lead to failure. 2421 ac_old_val_w=`echo x $ac_old_val` 2422 ac_new_val_w=`echo x $ac_new_val` 2423 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2424 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2425 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2426 ac_cache_corrupted=: 2427 else 2428 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2429 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2430 eval $ac_var=\$ac_old_val 2431 fi 2432 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2433 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2434 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2435 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2436 fi;; 2437 esac 2438 # Pass precious variables to config.status. 2439 if test "$ac_new_set" = set; then 2440 case $ac_new_val in 2441 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2442 *) ac_arg=$ac_var=$ac_new_val ;; 2443 esac 2444 case " $ac_configure_args " in 2445 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2446 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2447 esac 2448 fi 2449 done 2450 if $ac_cache_corrupted; then 2451 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2453 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2454 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2455 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2456 fi 2457 ## -------------------- ## 2458 ## Main body of script. ## 2459 ## -------------------- ## 2460 2461 ac_ext=c 2462 ac_cpp='$CPP $CPPFLAGS' 2463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2465 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2466 2467 2468 am__api_version='1.14' 2469 2470 ac_aux_dir= 2471 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2472 if test -f "$ac_dir/install-sh"; then 2473 ac_aux_dir=$ac_dir 2474 ac_install_sh="$ac_aux_dir/install-sh -c" 2475 break 2476 elif test -f "$ac_dir/install.sh"; then 2477 ac_aux_dir=$ac_dir 2478 ac_install_sh="$ac_aux_dir/install.sh -c" 2479 break 2480 elif test -f "$ac_dir/shtool"; then 2481 ac_aux_dir=$ac_dir 2482 ac_install_sh="$ac_aux_dir/shtool install -c" 2483 break 2484 fi 2485 done 2486 if test -z "$ac_aux_dir"; then 2487 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2488 fi 2489 2490 # These three variables are undocumented and unsupported, 2491 # and are intended to be withdrawn in a future Autoconf release. 2492 # They can cause serious problems if a builder's source tree is in a directory 2493 # whose full name contains unusual characters. 2494 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2495 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2496 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2497 2498 2499 # Find a good install program. We prefer a C program (faster), 2500 # so one script is as good as another. But avoid the broken or 2501 # incompatible versions: 2502 # SysV /etc/install, /usr/sbin/install 2503 # SunOS /usr/etc/install 2504 # IRIX /sbin/install 2505 # AIX /bin/install 2506 # AmigaOS /C/install, which installs bootblocks on floppy discs 2507 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2508 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2509 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2510 # OS/2's system install, which has a completely different semantic 2511 # ./install, which can be erroneously created by make from ./install.sh. 2512 # Reject install programs that cannot install multiple files. 2513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2514 $as_echo_n "checking for a BSD-compatible install... " >&6; } 2515 if test -z "$INSTALL"; then 2516 if ${ac_cv_path_install+:} false; then : 2517 $as_echo_n "(cached) " >&6 2518 else 2519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2520 for as_dir in $PATH 2521 do 2522 IFS=$as_save_IFS 2523 test -z "$as_dir" && as_dir=. 2524 # Account for people who put trailing slashes in PATH elements. 2525 case $as_dir/ in #(( 2526 ./ | .// | /[cC]/* | \ 2527 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2528 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2529 /usr/ucb/* ) ;; 2530 *) 2531 # OSF1 and SCO ODT 3.0 have their own names for install. 2532 # Don't use installbsd from OSF since it installs stuff as root 2533 # by default. 2534 for ac_prog in ginstall scoinst install; do 2535 for ac_exec_ext in '' $ac_executable_extensions; do 2536 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2537 if test $ac_prog = install && 2538 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2539 # AIX install. It has an incompatible calling convention. 2540 : 2541 elif test $ac_prog = install && 2542 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2543 # program-specific install script used by HP pwplus--don't use. 2544 : 2545 else 2546 rm -rf conftest.one conftest.two conftest.dir 2547 echo one > conftest.one 2548 echo two > conftest.two 2549 mkdir conftest.dir 2550 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2551 test -s conftest.one && test -s conftest.two && 2552 test -s conftest.dir/conftest.one && 2553 test -s conftest.dir/conftest.two 2554 then 2555 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2556 break 3 2557 fi 2558 fi 2559 fi 2560 done 2561 done 2562 ;; 2563 esac 2564 2565 done 2566 IFS=$as_save_IFS 2567 2568 rm -rf conftest.one conftest.two conftest.dir 2569 2570 fi 2571 if test "${ac_cv_path_install+set}" = set; then 2572 INSTALL=$ac_cv_path_install 2573 else 2574 # As a last resort, use the slow shell script. Don't cache a 2575 # value for INSTALL within a source directory, because that will 2576 # break other packages using the cache if that directory is 2577 # removed, or if the value is a relative name. 2578 INSTALL=$ac_install_sh 2579 fi 2580 fi 2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2582 $as_echo "$INSTALL" >&6; } 2583 2584 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2585 # It thinks the first close brace ends the variable substitution. 2586 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2587 2588 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2589 2590 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2591 2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2593 $as_echo_n "checking whether build environment is sane... " >&6; } 2594 # Reject unsafe characters in $srcdir or the absolute working directory 2595 # name. Accept space and tab only in the latter. 2596 am_lf=' 2597 ' 2598 case `pwd` in 2599 *[\\\"\#\$\&\'\`$am_lf]*) 2600 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2601 esac 2602 case $srcdir in 2603 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2604 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2605 esac 2606 2607 # Do 'set' in a subshell so we don't clobber the current shell's 2608 # arguments. Must try -L first in case configure is actually a 2609 # symlink; some systems play weird games with the mod time of symlinks 2610 # (eg FreeBSD returns the mod time of the symlink's containing 2611 # directory). 2612 if ( 2613 am_has_slept=no 2614 for am_try in 1 2; do 2615 echo "timestamp, slept: $am_has_slept" > conftest.file 2616 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2617 if test "$*" = "X"; then 2618 # -L didn't work. 2619 set X `ls -t "$srcdir/configure" conftest.file` 2620 fi 2621 if test "$*" != "X $srcdir/configure conftest.file" \ 2622 && test "$*" != "X conftest.file $srcdir/configure"; then 2623 2624 # If neither matched, then we have a broken ls. This can happen 2625 # if, for instance, CONFIG_SHELL is bash and it inherits a 2626 # broken ls alias from the environment. This has actually 2627 # happened. Such a system could not be considered "sane". 2628 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2629 alias in your environment" "$LINENO" 5 2630 fi 2631 if test "$2" = conftest.file || test $am_try -eq 2; then 2632 break 2633 fi 2634 # Just in case. 2635 sleep 1 2636 am_has_slept=yes 2637 done 2638 test "$2" = conftest.file 2639 ) 2640 then 2641 # Ok. 2642 : 2643 else 2644 as_fn_error $? "newly created file is older than distributed files! 2645 Check your system clock" "$LINENO" 5 2646 fi 2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2648 $as_echo "yes" >&6; } 2649 # If we didn't sleep, we still need to ensure time stamps of config.status and 2650 # generated files are strictly newer. 2651 am_sleep_pid= 2652 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2653 ( sleep 1 ) & 2654 am_sleep_pid=$! 2655 fi 2656 2657 rm -f conftest.file 2658 2659 test "$program_prefix" != NONE && 2660 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2661 # Use a double $ so make ignores it. 2662 test "$program_suffix" != NONE && 2663 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2664 # Double any \ or $. 2665 # By default was `s,x,x', remove it if useless. 2666 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2667 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2668 2669 # Expand $ac_aux_dir to an absolute path. 2670 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2671 2672 if test x"${MISSING+set}" != xset; then 2673 case $am_aux_dir in 2674 *\ * | *\ *) 2675 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2676 *) 2677 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2678 esac 2679 fi 2680 # Use eval to expand $SHELL 2681 if eval "$MISSING --is-lightweight"; then 2682 am_missing_run="$MISSING " 2683 else 2684 am_missing_run= 2685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2686 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2687 fi 2688 2689 if test x"${install_sh}" != xset; then 2690 case $am_aux_dir in 2691 *\ * | *\ *) 2692 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2693 *) 2694 install_sh="\${SHELL} $am_aux_dir/install-sh" 2695 esac 2696 fi 2697 2698 # Installed binaries are usually stripped using 'strip' when the user 2699 # run "make install-strip". However 'strip' might not be the right 2700 # tool to use in cross-compilation environments, therefore Automake 2701 # will honor the 'STRIP' environment variable to overrule this program. 2702 if test "$cross_compiling" != no; then 2703 if test -n "$ac_tool_prefix"; then 2704 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2705 set dummy ${ac_tool_prefix}strip; ac_word=$2 2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2707 $as_echo_n "checking for $ac_word... " >&6; } 2708 if ${ac_cv_prog_STRIP+:} false; then : 2709 $as_echo_n "(cached) " >&6 2710 else 2711 if test -n "$STRIP"; then 2712 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2713 else 2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2715 for as_dir in $PATH 2716 do 2717 IFS=$as_save_IFS 2718 test -z "$as_dir" && as_dir=. 2719 for ac_exec_ext in '' $ac_executable_extensions; do 2720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2721 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2723 break 2 2724 fi 2725 done 2726 done 2727 IFS=$as_save_IFS 2728 2729 fi 2730 fi 2731 STRIP=$ac_cv_prog_STRIP 2732 if test -n "$STRIP"; then 2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2734 $as_echo "$STRIP" >&6; } 2735 else 2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2737 $as_echo "no" >&6; } 2738 fi 2739 2740 2741 fi 2742 if test -z "$ac_cv_prog_STRIP"; then 2743 ac_ct_STRIP=$STRIP 2744 # Extract the first word of "strip", so it can be a program name with args. 2745 set dummy strip; ac_word=$2 2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2747 $as_echo_n "checking for $ac_word... " >&6; } 2748 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2749 $as_echo_n "(cached) " >&6 2750 else 2751 if test -n "$ac_ct_STRIP"; then 2752 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2753 else 2754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2755 for as_dir in $PATH 2756 do 2757 IFS=$as_save_IFS 2758 test -z "$as_dir" && as_dir=. 2759 for ac_exec_ext in '' $ac_executable_extensions; do 2760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2761 ac_cv_prog_ac_ct_STRIP="strip" 2762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2763 break 2 2764 fi 2765 done 2766 done 2767 IFS=$as_save_IFS 2768 2769 fi 2770 fi 2771 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2772 if test -n "$ac_ct_STRIP"; then 2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2774 $as_echo "$ac_ct_STRIP" >&6; } 2775 else 2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2777 $as_echo "no" >&6; } 2778 fi 2779 2780 if test "x$ac_ct_STRIP" = x; then 2781 STRIP=":" 2782 else 2783 case $cross_compiling:$ac_tool_warned in 2784 yes:) 2785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2787 ac_tool_warned=yes ;; 2788 esac 2789 STRIP=$ac_ct_STRIP 2790 fi 2791 else 2792 STRIP="$ac_cv_prog_STRIP" 2793 fi 2794 2795 fi 2796 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2797 2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2799 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2800 if test -z "$MKDIR_P"; then 2801 if ${ac_cv_path_mkdir+:} false; then : 2802 $as_echo_n "(cached) " >&6 2803 else 2804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2805 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2806 do 2807 IFS=$as_save_IFS 2808 test -z "$as_dir" && as_dir=. 2809 for ac_prog in mkdir gmkdir; do 2810 for ac_exec_ext in '' $ac_executable_extensions; do 2811 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2812 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2813 'mkdir (GNU coreutils) '* | \ 2814 'mkdir (coreutils) '* | \ 2815 'mkdir (fileutils) '4.1*) 2816 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2817 break 3;; 2818 esac 2819 done 2820 done 2821 done 2822 IFS=$as_save_IFS 2823 2824 fi 2825 2826 test -d ./--version && rmdir ./--version 2827 if test "${ac_cv_path_mkdir+set}" = set; then 2828 MKDIR_P="$ac_cv_path_mkdir -p" 2829 else 2830 # As a last resort, use the slow shell script. Don't cache a 2831 # value for MKDIR_P within a source directory, because that will 2832 # break other packages using the cache if that directory is 2833 # removed, or if the value is a relative name. 2834 MKDIR_P="$ac_install_sh -d" 2835 fi 2836 fi 2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2838 $as_echo "$MKDIR_P" >&6; } 2839 2840 for ac_prog in gawk mawk nawk awk 2841 do 2842 # Extract the first word of "$ac_prog", so it can be a program name with args. 2843 set dummy $ac_prog; ac_word=$2 2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2845 $as_echo_n "checking for $ac_word... " >&6; } 2846 if ${ac_cv_prog_AWK+:} false; then : 2847 $as_echo_n "(cached) " >&6 2848 else 2849 if test -n "$AWK"; then 2850 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2851 else 2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2853 for as_dir in $PATH 2854 do 2855 IFS=$as_save_IFS 2856 test -z "$as_dir" && as_dir=. 2857 for ac_exec_ext in '' $ac_executable_extensions; do 2858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2859 ac_cv_prog_AWK="$ac_prog" 2860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2861 break 2 2862 fi 2863 done 2864 done 2865 IFS=$as_save_IFS 2866 2867 fi 2868 fi 2869 AWK=$ac_cv_prog_AWK 2870 if test -n "$AWK"; then 2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2872 $as_echo "$AWK" >&6; } 2873 else 2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2875 $as_echo "no" >&6; } 2876 fi 2877 2878 2879 test -n "$AWK" && break 2880 done 2881 2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2883 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2884 set x ${MAKE-make} 2885 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2886 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2887 $as_echo_n "(cached) " >&6 2888 else 2889 cat >conftest.make <<\_ACEOF 2890 SHELL = /bin/sh 2891 all: 2892 @echo '@@@%%%=$(MAKE)=@@@%%%' 2893 _ACEOF 2894 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2895 case `${MAKE-make} -f conftest.make 2>/dev/null` in 2896 *@@@%%%=?*=@@@%%%*) 2897 eval ac_cv_prog_make_${ac_make}_set=yes;; 2898 *) 2899 eval ac_cv_prog_make_${ac_make}_set=no;; 2900 esac 2901 rm -f conftest.make 2902 fi 2903 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2905 $as_echo "yes" >&6; } 2906 SET_MAKE= 2907 else 2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2909 $as_echo "no" >&6; } 2910 SET_MAKE="MAKE=${MAKE-make}" 2911 fi 2912 2913 rm -rf .tst 2>/dev/null 2914 mkdir .tst 2>/dev/null 2915 if test -d .tst; then 2916 am__leading_dot=. 2917 else 2918 am__leading_dot=_ 2919 fi 2920 rmdir .tst 2>/dev/null 2921 2922 # Check whether --enable-silent-rules was given. 2923 if test "${enable_silent_rules+set}" = set; then : 2924 enableval=$enable_silent_rules; 2925 fi 2926 2927 case $enable_silent_rules in # ((( 2928 yes) AM_DEFAULT_VERBOSITY=0;; 2929 no) AM_DEFAULT_VERBOSITY=1;; 2930 *) AM_DEFAULT_VERBOSITY=1;; 2931 esac 2932 am_make=${MAKE-make} 2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2934 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2935 if ${am_cv_make_support_nested_variables+:} false; then : 2936 $as_echo_n "(cached) " >&6 2937 else 2938 if $as_echo 'TRUE=$(BAR$(V)) 2939 BAR0=false 2940 BAR1=true 2941 V=1 2942 am__doit: 2943 @$(TRUE) 2944 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2945 am_cv_make_support_nested_variables=yes 2946 else 2947 am_cv_make_support_nested_variables=no 2948 fi 2949 fi 2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2951 $as_echo "$am_cv_make_support_nested_variables" >&6; } 2952 if test $am_cv_make_support_nested_variables = yes; then 2953 AM_V='$(V)' 2954 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2955 else 2956 AM_V=$AM_DEFAULT_VERBOSITY 2957 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2958 fi 2959 AM_BACKSLASH='\' 2960 2961 if test "`cd $srcdir && pwd`" != "`pwd`"; then 2962 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2963 # is not polluted with repeated "-I." 2964 am__isrc=' -I$(srcdir)' 2965 # test to see if srcdir already configured 2966 if test -f $srcdir/config.status; then 2967 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2968 fi 2969 fi 2970 2971 # test whether we have cygpath 2972 if test -z "$CYGPATH_W"; then 2973 if (cygpath --version) >/dev/null 2>/dev/null; then 2974 CYGPATH_W='cygpath -w' 2975 else 2976 CYGPATH_W=echo 2977 fi 2978 fi 2979 2980 2981 # Define the identity of the package. 2982 PACKAGE='libmicrohttpd' 2983 VERSION='0.9.42' 2984 2985 2986 cat >>confdefs.h <<_ACEOF 2987 #define PACKAGE "$PACKAGE" 2988 _ACEOF 2989 2990 2991 cat >>confdefs.h <<_ACEOF 2992 #define VERSION "$VERSION" 2993 _ACEOF 2994 2995 # Some tools Automake needs. 2996 2997 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2998 2999 3000 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3001 3002 3003 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3004 3005 3006 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3007 3008 3009 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3010 3011 # For better backward compatibility. To be removed once Automake 1.9.x 3012 # dies out for good. For more background, see: 3013 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3014 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3015 mkdir_p='$(MKDIR_P)' 3016 3017 # We need awk for the "check" target. The system "awk" is bad on 3018 # some platforms. 3019 # Always define AMTAR for backward compatibility. Yes, it's still used 3020 # in the wild :-( We should find a proper way to deprecate it ... 3021 AMTAR='$${TAR-tar}' 3022 3023 3024 # We'll loop over all known methods to create a tar archive until one works. 3025 _am_tools='gnutar pax cpio none' 3026 3027 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3028 3029 3030 3031 3032 3033 3034 # POSIX will say in a future version that running "rm -f" with no argument 3035 # is OK; and we want to be able to make that assumption in our Makefile 3036 # recipes. So use an aggressive probe to check that the usage we want is 3037 # actually supported "in the wild" to an acceptable degree. 3038 # See automake bug#10828. 3039 # To make any issue more visible, cause the running configure to be aborted 3040 # by default if the 'rm' program in use doesn't match our expectations; the 3041 # user can still override this though. 3042 if rm -f && rm -fr && rm -rf; then : OK; else 3043 cat >&2 <<'END' 3044 Oops! 3045 3046 Your 'rm' program seems unable to run without file operands specified 3047 on the command line, even when the '-f' option is present. This is contrary 3048 to the behaviour of most rm programs out there, and not conforming with 3049 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3050 3051 Please tell bug-automake@gnu.org about your system, including the value 3052 of your $PATH and any error possibly output before this message. This 3053 can help us improve future automake versions. 3054 3055 END 3056 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3057 echo 'Configuration will proceed anyway, since you have set the' >&2 3058 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3059 echo >&2 3060 else 3061 cat >&2 <<'END' 3062 Aborting the configuration process, to ensure you take notice of the issue. 3063 3064 You can download and install GNU coreutils to get an 'rm' implementation 3065 that behaves properly: <http://www.gnu.org/software/coreutils/>. 3066 3067 If you want to complete the configuration process using your problematic 3068 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3069 to "yes", and re-run configure. 3070 3071 END 3072 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3073 fi 3074 fi 3075 3076 ac_config_headers="$ac_config_headers MHD_config.h" 3077 3078 3079 3080 3081 LIB_VERSION_CURRENT=42 3082 LIB_VERSION_REVISION=0 3083 LIB_VERSION_AGE=32 3084 3085 3086 3087 3088 LIBSPDY_VERSION_CURRENT=0 3089 LIBSPDY_VERSION_REVISION=0 3090 LIBSPDY_VERSION_AGE=0 3091 3092 3093 3094 3095 3096 if test `uname -s` = "OS/390" 3097 then 3098 # configure binaries for z/OS 3099 if test -z "$CC" 3100 then 3101 CC=`pwd`"/contrib/xcc" 3102 chmod +x $CC || true 3103 fi 3104 if test -z "$CPP" 3105 then 3106 CPP="c89 -E" 3107 fi 3108 if test -z "$CXXCPP" 3109 then 3110 CXXCPP="c++ -E -+" 3111 fi 3112 # _CCC_CCMODE=1 3113 # _C89_CCMODE=1 3114 fi 3115 3116 # Checks for programs. 3117 for ac_prog in gawk mawk nawk awk 3118 do 3119 # Extract the first word of "$ac_prog", so it can be a program name with args. 3120 set dummy $ac_prog; ac_word=$2 3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3122 $as_echo_n "checking for $ac_word... " >&6; } 3123 if ${ac_cv_prog_AWK+:} false; then : 3124 $as_echo_n "(cached) " >&6 3125 else 3126 if test -n "$AWK"; then 3127 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3128 else 3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3130 for as_dir in $PATH 3131 do 3132 IFS=$as_save_IFS 3133 test -z "$as_dir" && as_dir=. 3134 for ac_exec_ext in '' $ac_executable_extensions; do 3135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3136 ac_cv_prog_AWK="$ac_prog" 3137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3138 break 2 3139 fi 3140 done 3141 done 3142 IFS=$as_save_IFS 3143 3144 fi 3145 fi 3146 AWK=$ac_cv_prog_AWK 3147 if test -n "$AWK"; then 3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3149 $as_echo "$AWK" >&6; } 3150 else 3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3152 $as_echo "no" >&6; } 3153 fi 3154 3155 3156 test -n "$AWK" && break 3157 done 3158 3159 3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 3161 $as_echo_n "checking whether ln -s works... " >&6; } 3162 LN_S=$as_ln_s 3163 if test "$LN_S" = "ln -s"; then 3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3165 $as_echo "yes" >&6; } 3166 else 3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 3168 $as_echo "no, using $LN_S" >&6; } 3169 fi 3170 3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3172 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3173 set x ${MAKE-make} 3174 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3175 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3176 $as_echo_n "(cached) " >&6 3177 else 3178 cat >conftest.make <<\_ACEOF 3179 SHELL = /bin/sh 3180 all: 3181 @echo '@@@%%%=$(MAKE)=@@@%%%' 3182 _ACEOF 3183 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3184 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3185 *@@@%%%=?*=@@@%%%*) 3186 eval ac_cv_prog_make_${ac_make}_set=yes;; 3187 *) 3188 eval ac_cv_prog_make_${ac_make}_set=no;; 3189 esac 3190 rm -f conftest.make 3191 fi 3192 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3194 $as_echo "yes" >&6; } 3195 SET_MAKE= 3196 else 3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3198 $as_echo "no" >&6; } 3199 SET_MAKE="MAKE=${MAKE-make}" 3200 fi 3201 3202 # Make sure we can run config.sub. 3203 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3204 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3205 3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3207 $as_echo_n "checking build system type... " >&6; } 3208 if ${ac_cv_build+:} false; then : 3209 $as_echo_n "(cached) " >&6 3210 else 3211 ac_build_alias=$build_alias 3212 test "x$ac_build_alias" = x && 3213 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3214 test "x$ac_build_alias" = x && 3215 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3216 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3217 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3218 3219 fi 3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3221 $as_echo "$ac_cv_build" >&6; } 3222 case $ac_cv_build in 3223 *-*-*) ;; 3224 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3225 esac 3226 build=$ac_cv_build 3227 ac_save_IFS=$IFS; IFS='-' 3228 set x $ac_cv_build 3229 shift 3230 build_cpu=$1 3231 build_vendor=$2 3232 shift; shift 3233 # Remember, the first character of IFS is used to create $*, 3234 # except with old shells: 3235 build_os=$* 3236 IFS=$ac_save_IFS 3237 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3238 3239 3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3241 $as_echo_n "checking host system type... " >&6; } 3242 if ${ac_cv_host+:} false; then : 3243 $as_echo_n "(cached) " >&6 3244 else 3245 if test "x$host_alias" = x; then 3246 ac_cv_host=$ac_cv_build 3247 else 3248 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3249 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3250 fi 3251 3252 fi 3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3254 $as_echo "$ac_cv_host" >&6; } 3255 case $ac_cv_host in 3256 *-*-*) ;; 3257 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3258 esac 3259 host=$ac_cv_host 3260 ac_save_IFS=$IFS; IFS='-' 3261 set x $ac_cv_host 3262 shift 3263 host_cpu=$1 3264 host_vendor=$2 3265 shift; shift 3266 # Remember, the first character of IFS is used to create $*, 3267 # except with old shells: 3268 host_os=$* 3269 IFS=$ac_save_IFS 3270 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3271 3272 3273 DEPDIR="${am__leading_dot}deps" 3274 3275 ac_config_commands="$ac_config_commands depfiles" 3276 3277 3278 am_make=${MAKE-make} 3279 cat > confinc << 'END' 3280 am__doit: 3281 @echo this is the am__doit target 3282 .PHONY: am__doit 3283 END 3284 # If we don't find an include directive, just comment out the code. 3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3286 $as_echo_n "checking for style of include used by $am_make... " >&6; } 3287 am__include="#" 3288 am__quote= 3289 _am_result=none 3290 # First try GNU make style include. 3291 echo "include confinc" > confmf 3292 # Ignore all kinds of additional output from 'make'. 3293 case `$am_make -s -f confmf 2> /dev/null` in #( 3294 *the\ am__doit\ target*) 3295 am__include=include 3296 am__quote= 3297 _am_result=GNU 3298 ;; 3299 esac 3300 # Now try BSD make style include. 3301 if test "$am__include" = "#"; then 3302 echo '.include "confinc"' > confmf 3303 case `$am_make -s -f confmf 2> /dev/null` in #( 3304 *the\ am__doit\ target*) 3305 am__include=.include 3306 am__quote="\"" 3307 _am_result=BSD 3308 ;; 3309 esac 3310 fi 3311 3312 3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3314 $as_echo "$_am_result" >&6; } 3315 rm -f confinc confmf 3316 3317 # Check whether --enable-dependency-tracking was given. 3318 if test "${enable_dependency_tracking+set}" = set; then : 3319 enableval=$enable_dependency_tracking; 3320 fi 3321 3322 if test "x$enable_dependency_tracking" != xno; then 3323 am_depcomp="$ac_aux_dir/depcomp" 3324 AMDEPBACKSLASH='\' 3325 am__nodep='_no' 3326 fi 3327 if test "x$enable_dependency_tracking" != xno; then 3328 AMDEP_TRUE= 3329 AMDEP_FALSE='#' 3330 else 3331 AMDEP_TRUE='#' 3332 AMDEP_FALSE= 3333 fi 3334 3335 3336 ac_ext=c 3337 ac_cpp='$CPP $CPPFLAGS' 3338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3340 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3341 if test -n "$ac_tool_prefix"; then 3342 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3343 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3345 $as_echo_n "checking for $ac_word... " >&6; } 3346 if ${ac_cv_prog_CC+:} false; then : 3347 $as_echo_n "(cached) " >&6 3348 else 3349 if test -n "$CC"; then 3350 ac_cv_prog_CC="$CC" # Let the user override the test. 3351 else 3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3353 for as_dir in $PATH 3354 do 3355 IFS=$as_save_IFS 3356 test -z "$as_dir" && as_dir=. 3357 for ac_exec_ext in '' $ac_executable_extensions; do 3358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3359 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3361 break 2 3362 fi 3363 done 3364 done 3365 IFS=$as_save_IFS 3366 3367 fi 3368 fi 3369 CC=$ac_cv_prog_CC 3370 if test -n "$CC"; then 3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3372 $as_echo "$CC" >&6; } 3373 else 3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3375 $as_echo "no" >&6; } 3376 fi 3377 3378 3379 fi 3380 if test -z "$ac_cv_prog_CC"; then 3381 ac_ct_CC=$CC 3382 # Extract the first word of "gcc", so it can be a program name with args. 3383 set dummy gcc; ac_word=$2 3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3385 $as_echo_n "checking for $ac_word... " >&6; } 3386 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3387 $as_echo_n "(cached) " >&6 3388 else 3389 if test -n "$ac_ct_CC"; then 3390 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3391 else 3392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3393 for as_dir in $PATH 3394 do 3395 IFS=$as_save_IFS 3396 test -z "$as_dir" && as_dir=. 3397 for ac_exec_ext in '' $ac_executable_extensions; do 3398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3399 ac_cv_prog_ac_ct_CC="gcc" 3400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3401 break 2 3402 fi 3403 done 3404 done 3405 IFS=$as_save_IFS 3406 3407 fi 3408 fi 3409 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3410 if test -n "$ac_ct_CC"; then 3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3412 $as_echo "$ac_ct_CC" >&6; } 3413 else 3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3415 $as_echo "no" >&6; } 3416 fi 3417 3418 if test "x$ac_ct_CC" = x; then 3419 CC="" 3420 else 3421 case $cross_compiling:$ac_tool_warned in 3422 yes:) 3423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3425 ac_tool_warned=yes ;; 3426 esac 3427 CC=$ac_ct_CC 3428 fi 3429 else 3430 CC="$ac_cv_prog_CC" 3431 fi 3432 3433 if test -z "$CC"; then 3434 if test -n "$ac_tool_prefix"; then 3435 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3436 set dummy ${ac_tool_prefix}cc; ac_word=$2 3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3438 $as_echo_n "checking for $ac_word... " >&6; } 3439 if ${ac_cv_prog_CC+:} false; then : 3440 $as_echo_n "(cached) " >&6 3441 else 3442 if test -n "$CC"; then 3443 ac_cv_prog_CC="$CC" # Let the user override the test. 3444 else 3445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3446 for as_dir in $PATH 3447 do 3448 IFS=$as_save_IFS 3449 test -z "$as_dir" && as_dir=. 3450 for ac_exec_ext in '' $ac_executable_extensions; do 3451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3452 ac_cv_prog_CC="${ac_tool_prefix}cc" 3453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3454 break 2 3455 fi 3456 done 3457 done 3458 IFS=$as_save_IFS 3459 3460 fi 3461 fi 3462 CC=$ac_cv_prog_CC 3463 if test -n "$CC"; then 3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3465 $as_echo "$CC" >&6; } 3466 else 3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3468 $as_echo "no" >&6; } 3469 fi 3470 3471 3472 fi 3473 fi 3474 if test -z "$CC"; then 3475 # Extract the first word of "cc", so it can be a program name with args. 3476 set dummy cc; ac_word=$2 3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3478 $as_echo_n "checking for $ac_word... " >&6; } 3479 if ${ac_cv_prog_CC+:} false; then : 3480 $as_echo_n "(cached) " >&6 3481 else 3482 if test -n "$CC"; then 3483 ac_cv_prog_CC="$CC" # Let the user override the test. 3484 else 3485 ac_prog_rejected=no 3486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3487 for as_dir in $PATH 3488 do 3489 IFS=$as_save_IFS 3490 test -z "$as_dir" && as_dir=. 3491 for ac_exec_ext in '' $ac_executable_extensions; do 3492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3493 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3494 ac_prog_rejected=yes 3495 continue 3496 fi 3497 ac_cv_prog_CC="cc" 3498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3499 break 2 3500 fi 3501 done 3502 done 3503 IFS=$as_save_IFS 3504 3505 if test $ac_prog_rejected = yes; then 3506 # We found a bogon in the path, so make sure we never use it. 3507 set dummy $ac_cv_prog_CC 3508 shift 3509 if test $# != 0; then 3510 # We chose a different compiler from the bogus one. 3511 # However, it has the same basename, so the bogon will be chosen 3512 # first if we set CC to just the basename; use the full file name. 3513 shift 3514 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3515 fi 3516 fi 3517 fi 3518 fi 3519 CC=$ac_cv_prog_CC 3520 if test -n "$CC"; then 3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3522 $as_echo "$CC" >&6; } 3523 else 3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3525 $as_echo "no" >&6; } 3526 fi 3527 3528 3529 fi 3530 if test -z "$CC"; then 3531 if test -n "$ac_tool_prefix"; then 3532 for ac_prog in cl.exe 3533 do 3534 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3535 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3537 $as_echo_n "checking for $ac_word... " >&6; } 3538 if ${ac_cv_prog_CC+:} false; then : 3539 $as_echo_n "(cached) " >&6 3540 else 3541 if test -n "$CC"; then 3542 ac_cv_prog_CC="$CC" # Let the user override the test. 3543 else 3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3545 for as_dir in $PATH 3546 do 3547 IFS=$as_save_IFS 3548 test -z "$as_dir" && as_dir=. 3549 for ac_exec_ext in '' $ac_executable_extensions; do 3550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3551 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3553 break 2 3554 fi 3555 done 3556 done 3557 IFS=$as_save_IFS 3558 3559 fi 3560 fi 3561 CC=$ac_cv_prog_CC 3562 if test -n "$CC"; then 3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3564 $as_echo "$CC" >&6; } 3565 else 3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3567 $as_echo "no" >&6; } 3568 fi 3569 3570 3571 test -n "$CC" && break 3572 done 3573 fi 3574 if test -z "$CC"; then 3575 ac_ct_CC=$CC 3576 for ac_prog in cl.exe 3577 do 3578 # Extract the first word of "$ac_prog", so it can be a program name with args. 3579 set dummy $ac_prog; ac_word=$2 3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3581 $as_echo_n "checking for $ac_word... " >&6; } 3582 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3583 $as_echo_n "(cached) " >&6 3584 else 3585 if test -n "$ac_ct_CC"; then 3586 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3587 else 3588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3589 for as_dir in $PATH 3590 do 3591 IFS=$as_save_IFS 3592 test -z "$as_dir" && as_dir=. 3593 for ac_exec_ext in '' $ac_executable_extensions; do 3594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3595 ac_cv_prog_ac_ct_CC="$ac_prog" 3596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3597 break 2 3598 fi 3599 done 3600 done 3601 IFS=$as_save_IFS 3602 3603 fi 3604 fi 3605 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3606 if test -n "$ac_ct_CC"; then 3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3608 $as_echo "$ac_ct_CC" >&6; } 3609 else 3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3611 $as_echo "no" >&6; } 3612 fi 3613 3614 3615 test -n "$ac_ct_CC" && break 3616 done 3617 3618 if test "x$ac_ct_CC" = x; then 3619 CC="" 3620 else 3621 case $cross_compiling:$ac_tool_warned in 3622 yes:) 3623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3625 ac_tool_warned=yes ;; 3626 esac 3627 CC=$ac_ct_CC 3628 fi 3629 fi 3630 3631 fi 3632 3633 3634 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3636 as_fn_error $? "no acceptable C compiler found in \$PATH 3637 See \`config.log' for more details" "$LINENO" 5; } 3638 3639 # Provide some information about the compiler. 3640 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3641 set X $ac_compile 3642 ac_compiler=$2 3643 for ac_option in --version -v -V -qversion; do 3644 { { ac_try="$ac_compiler $ac_option >&5" 3645 case "(($ac_try" in 3646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3647 *) ac_try_echo=$ac_try;; 3648 esac 3649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3650 $as_echo "$ac_try_echo"; } >&5 3651 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3652 ac_status=$? 3653 if test -s conftest.err; then 3654 sed '10a\ 3655 ... rest of stderr output deleted ... 3656 10q' conftest.err >conftest.er1 3657 cat conftest.er1 >&5 3658 fi 3659 rm -f conftest.er1 conftest.err 3660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3661 test $ac_status = 0; } 3662 done 3663 3664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3665 /* end confdefs.h. */ 3666 3667 int 3668 main () 3669 { 3670 3671 ; 3672 return 0; 3673 } 3674 _ACEOF 3675 ac_clean_files_save=$ac_clean_files 3676 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3677 # Try to create an executable without -o first, disregard a.out. 3678 # It will help us diagnose broken compilers, and finding out an intuition 3679 # of exeext. 3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3681 $as_echo_n "checking whether the C compiler works... " >&6; } 3682 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3683 3684 # The possible output files: 3685 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3686 3687 ac_rmfiles= 3688 for ac_file in $ac_files 3689 do 3690 case $ac_file in 3691 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3692 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3693 esac 3694 done 3695 rm -f $ac_rmfiles 3696 3697 if { { ac_try="$ac_link_default" 3698 case "(($ac_try" in 3699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3700 *) ac_try_echo=$ac_try;; 3701 esac 3702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3703 $as_echo "$ac_try_echo"; } >&5 3704 (eval "$ac_link_default") 2>&5 3705 ac_status=$? 3706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3707 test $ac_status = 0; }; then : 3708 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3709 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3710 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3711 # so that the user can short-circuit this test for compilers unknown to 3712 # Autoconf. 3713 for ac_file in $ac_files '' 3714 do 3715 test -f "$ac_file" || continue 3716 case $ac_file in 3717 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3718 ;; 3719 [ab].out ) 3720 # We found the default executable, but exeext='' is most 3721 # certainly right. 3722 break;; 3723 *.* ) 3724 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3725 then :; else 3726 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3727 fi 3728 # We set ac_cv_exeext here because the later test for it is not 3729 # safe: cross compilers may not add the suffix if given an `-o' 3730 # argument, so we may need to know it at that point already. 3731 # Even if this section looks crufty: it has the advantage of 3732 # actually working. 3733 break;; 3734 * ) 3735 break;; 3736 esac 3737 done 3738 test "$ac_cv_exeext" = no && ac_cv_exeext= 3739 3740 else 3741 ac_file='' 3742 fi 3743 if test -z "$ac_file"; then : 3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3745 $as_echo "no" >&6; } 3746 $as_echo "$as_me: failed program was:" >&5 3747 sed 's/^/| /' conftest.$ac_ext >&5 3748 3749 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3751 as_fn_error 77 "C compiler cannot create executables 3752 See \`config.log' for more details" "$LINENO" 5; } 3753 else 3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3755 $as_echo "yes" >&6; } 3756 fi 3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3758 $as_echo_n "checking for C compiler default output file name... " >&6; } 3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3760 $as_echo "$ac_file" >&6; } 3761 ac_exeext=$ac_cv_exeext 3762 3763 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3764 ac_clean_files=$ac_clean_files_save 3765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3766 $as_echo_n "checking for suffix of executables... " >&6; } 3767 if { { ac_try="$ac_link" 3768 case "(($ac_try" in 3769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3770 *) ac_try_echo=$ac_try;; 3771 esac 3772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3773 $as_echo "$ac_try_echo"; } >&5 3774 (eval "$ac_link") 2>&5 3775 ac_status=$? 3776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3777 test $ac_status = 0; }; then : 3778 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3779 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3780 # work properly (i.e., refer to `conftest.exe'), while it won't with 3781 # `rm'. 3782 for ac_file in conftest.exe conftest conftest.*; do 3783 test -f "$ac_file" || continue 3784 case $ac_file in 3785 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3786 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3787 break;; 3788 * ) break;; 3789 esac 3790 done 3791 else 3792 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3793 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3794 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3795 See \`config.log' for more details" "$LINENO" 5; } 3796 fi 3797 rm -f conftest conftest$ac_cv_exeext 3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3799 $as_echo "$ac_cv_exeext" >&6; } 3800 3801 rm -f conftest.$ac_ext 3802 EXEEXT=$ac_cv_exeext 3803 ac_exeext=$EXEEXT 3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3805 /* end confdefs.h. */ 3806 #include <stdio.h> 3807 int 3808 main () 3809 { 3810 FILE *f = fopen ("conftest.out", "w"); 3811 return ferror (f) || fclose (f) != 0; 3812 3813 ; 3814 return 0; 3815 } 3816 _ACEOF 3817 ac_clean_files="$ac_clean_files conftest.out" 3818 # Check that the compiler produces executables we can run. If not, either 3819 # the compiler is broken, or we cross compile. 3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3821 $as_echo_n "checking whether we are cross compiling... " >&6; } 3822 if test "$cross_compiling" != yes; then 3823 { { ac_try="$ac_link" 3824 case "(($ac_try" in 3825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3826 *) ac_try_echo=$ac_try;; 3827 esac 3828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3829 $as_echo "$ac_try_echo"; } >&5 3830 (eval "$ac_link") 2>&5 3831 ac_status=$? 3832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3833 test $ac_status = 0; } 3834 if { ac_try='./conftest$ac_cv_exeext' 3835 { { case "(($ac_try" in 3836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3837 *) ac_try_echo=$ac_try;; 3838 esac 3839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3840 $as_echo "$ac_try_echo"; } >&5 3841 (eval "$ac_try") 2>&5 3842 ac_status=$? 3843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3844 test $ac_status = 0; }; }; then 3845 cross_compiling=no 3846 else 3847 if test "$cross_compiling" = maybe; then 3848 cross_compiling=yes 3849 else 3850 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3852 as_fn_error $? "cannot run C compiled programs. 3853 If you meant to cross compile, use \`--host'. 3854 See \`config.log' for more details" "$LINENO" 5; } 3855 fi 3856 fi 3857 fi 3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3859 $as_echo "$cross_compiling" >&6; } 3860 3861 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3862 ac_clean_files=$ac_clean_files_save 3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3864 $as_echo_n "checking for suffix of object files... " >&6; } 3865 if ${ac_cv_objext+:} false; then : 3866 $as_echo_n "(cached) " >&6 3867 else 3868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3869 /* end confdefs.h. */ 3870 3871 int 3872 main () 3873 { 3874 3875 ; 3876 return 0; 3877 } 3878 _ACEOF 3879 rm -f conftest.o conftest.obj 3880 if { { ac_try="$ac_compile" 3881 case "(($ac_try" in 3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3883 *) ac_try_echo=$ac_try;; 3884 esac 3885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3886 $as_echo "$ac_try_echo"; } >&5 3887 (eval "$ac_compile") 2>&5 3888 ac_status=$? 3889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3890 test $ac_status = 0; }; then : 3891 for ac_file in conftest.o conftest.obj conftest.*; do 3892 test -f "$ac_file" || continue; 3893 case $ac_file in 3894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3895 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3896 break;; 3897 esac 3898 done 3899 else 3900 $as_echo "$as_me: failed program was:" >&5 3901 sed 's/^/| /' conftest.$ac_ext >&5 3902 3903 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3905 as_fn_error $? "cannot compute suffix of object files: cannot compile 3906 See \`config.log' for more details" "$LINENO" 5; } 3907 fi 3908 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3909 fi 3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3911 $as_echo "$ac_cv_objext" >&6; } 3912 OBJEXT=$ac_cv_objext 3913 ac_objext=$OBJEXT 3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3915 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3916 if ${ac_cv_c_compiler_gnu+:} false; then : 3917 $as_echo_n "(cached) " >&6 3918 else 3919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3920 /* end confdefs.h. */ 3921 3922 int 3923 main () 3924 { 3925 #ifndef __GNUC__ 3926 choke me 3927 #endif 3928 3929 ; 3930 return 0; 3931 } 3932 _ACEOF 3933 if ac_fn_c_try_compile "$LINENO"; then : 3934 ac_compiler_gnu=yes 3935 else 3936 ac_compiler_gnu=no 3937 fi 3938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3939 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3940 3941 fi 3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3943 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3944 if test $ac_compiler_gnu = yes; then 3945 GCC=yes 3946 else 3947 GCC= 3948 fi 3949 ac_test_CFLAGS=${CFLAGS+set} 3950 ac_save_CFLAGS=$CFLAGS 3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3952 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3953 if ${ac_cv_prog_cc_g+:} false; then : 3954 $as_echo_n "(cached) " >&6 3955 else 3956 ac_save_c_werror_flag=$ac_c_werror_flag 3957 ac_c_werror_flag=yes 3958 ac_cv_prog_cc_g=no 3959 CFLAGS="-g" 3960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3961 /* end confdefs.h. */ 3962 3963 int 3964 main () 3965 { 3966 3967 ; 3968 return 0; 3969 } 3970 _ACEOF 3971 if ac_fn_c_try_compile "$LINENO"; then : 3972 ac_cv_prog_cc_g=yes 3973 else 3974 CFLAGS="" 3975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3976 /* end confdefs.h. */ 3977 3978 int 3979 main () 3980 { 3981 3982 ; 3983 return 0; 3984 } 3985 _ACEOF 3986 if ac_fn_c_try_compile "$LINENO"; then : 3987 3988 else 3989 ac_c_werror_flag=$ac_save_c_werror_flag 3990 CFLAGS="-g" 3991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3992 /* end confdefs.h. */ 3993 3994 int 3995 main () 3996 { 3997 3998 ; 3999 return 0; 4000 } 4001 _ACEOF 4002 if ac_fn_c_try_compile "$LINENO"; then : 4003 ac_cv_prog_cc_g=yes 4004 fi 4005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4006 fi 4007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4008 fi 4009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4010 ac_c_werror_flag=$ac_save_c_werror_flag 4011 fi 4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4013 $as_echo "$ac_cv_prog_cc_g" >&6; } 4014 if test "$ac_test_CFLAGS" = set; then 4015 CFLAGS=$ac_save_CFLAGS 4016 elif test $ac_cv_prog_cc_g = yes; then 4017 if test "$GCC" = yes; then 4018 CFLAGS="-g -O2" 4019 else 4020 CFLAGS="-g" 4021 fi 4022 else 4023 if test "$GCC" = yes; then 4024 CFLAGS="-O2" 4025 else 4026 CFLAGS= 4027 fi 4028 fi 4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4030 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4031 if ${ac_cv_prog_cc_c89+:} false; then : 4032 $as_echo_n "(cached) " >&6 4033 else 4034 ac_cv_prog_cc_c89=no 4035 ac_save_CC=$CC 4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4037 /* end confdefs.h. */ 4038 #include <stdarg.h> 4039 #include <stdio.h> 4040 struct stat; 4041 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4042 struct buf { int x; }; 4043 FILE * (*rcsopen) (struct buf *, struct stat *, int); 4044 static char *e (p, i) 4045 char **p; 4046 int i; 4047 { 4048 return p[i]; 4049 } 4050 static char *f (char * (*g) (char **, int), char **p, ...) 4051 { 4052 char *s; 4053 va_list v; 4054 va_start (v,p); 4055 s = g (p, va_arg (v,int)); 4056 va_end (v); 4057 return s; 4058 } 4059 4060 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4061 function prototypes and stuff, but not '\xHH' hex character constants. 4062 These don't provoke an error unfortunately, instead are silently treated 4063 as 'x'. The following induces an error, until -std is added to get 4064 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4065 array size at least. It's necessary to write '\x00'==0 to get something 4066 that's true only with -std. */ 4067 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4068 4069 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4070 inside strings and character constants. */ 4071 #define FOO(x) 'x' 4072 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4073 4074 int test (int i, double x); 4075 struct s1 {int (*f) (int a);}; 4076 struct s2 {int (*f) (double a);}; 4077 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4078 int argc; 4079 char **argv; 4080 int 4081 main () 4082 { 4083 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4084 ; 4085 return 0; 4086 } 4087 _ACEOF 4088 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4089 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4090 do 4091 CC="$ac_save_CC $ac_arg" 4092 if ac_fn_c_try_compile "$LINENO"; then : 4093 ac_cv_prog_cc_c89=$ac_arg 4094 fi 4095 rm -f core conftest.err conftest.$ac_objext 4096 test "x$ac_cv_prog_cc_c89" != "xno" && break 4097 done 4098 rm -f conftest.$ac_ext 4099 CC=$ac_save_CC 4100 4101 fi 4102 # AC_CACHE_VAL 4103 case "x$ac_cv_prog_cc_c89" in 4104 x) 4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4106 $as_echo "none needed" >&6; } ;; 4107 xno) 4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4109 $as_echo "unsupported" >&6; } ;; 4110 *) 4111 CC="$CC $ac_cv_prog_cc_c89" 4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4113 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4114 esac 4115 if test "x$ac_cv_prog_cc_c89" != xno; then : 4116 4117 fi 4118 4119 ac_ext=c 4120 ac_cpp='$CPP $CPPFLAGS' 4121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4123 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4124 4125 ac_ext=c 4126 ac_cpp='$CPP $CPPFLAGS' 4127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4129 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4131 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4132 if ${am_cv_prog_cc_c_o+:} false; then : 4133 $as_echo_n "(cached) " >&6 4134 else 4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4136 /* end confdefs.h. */ 4137 4138 int 4139 main () 4140 { 4141 4142 ; 4143 return 0; 4144 } 4145 _ACEOF 4146 # Make sure it works both with $CC and with simple cc. 4147 # Following AC_PROG_CC_C_O, we do the test twice because some 4148 # compilers refuse to overwrite an existing .o file with -o, 4149 # though they will create one. 4150 am_cv_prog_cc_c_o=yes 4151 for am_i in 1 2; do 4152 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4153 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4154 ac_status=$? 4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4156 (exit $ac_status); } \ 4157 && test -f conftest2.$ac_objext; then 4158 : OK 4159 else 4160 am_cv_prog_cc_c_o=no 4161 break 4162 fi 4163 done 4164 rm -f core conftest* 4165 unset am_i 4166 fi 4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4168 $as_echo "$am_cv_prog_cc_c_o" >&6; } 4169 if test "$am_cv_prog_cc_c_o" != yes; then 4170 # Losing compiler, so override with the script. 4171 # FIXME: It is wrong to rewrite CC. 4172 # But if we don't then we get into trouble of one sort or another. 4173 # A longer-term fix would be to have automake use am__CC in this case, 4174 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4175 CC="$am_aux_dir/compile $CC" 4176 fi 4177 ac_ext=c 4178 ac_cpp='$CPP $CPPFLAGS' 4179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4181 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4182 4183 4184 depcc="$CC" am_compiler_list= 4185 4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4187 $as_echo_n "checking dependency style of $depcc... " >&6; } 4188 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4189 $as_echo_n "(cached) " >&6 4190 else 4191 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4192 # We make a subdir and do the tests there. Otherwise we can end up 4193 # making bogus files that we don't know about and never remove. For 4194 # instance it was reported that on HP-UX the gcc test will end up 4195 # making a dummy file named 'D' -- because '-MD' means "put the output 4196 # in D". 4197 rm -rf conftest.dir 4198 mkdir conftest.dir 4199 # Copy depcomp to subdir because otherwise we won't find it if we're 4200 # using a relative directory. 4201 cp "$am_depcomp" conftest.dir 4202 cd conftest.dir 4203 # We will build objects and dependencies in a subdirectory because 4204 # it helps to detect inapplicable dependency modes. For instance 4205 # both Tru64's cc and ICC support -MD to output dependencies as a 4206 # side effect of compilation, but ICC will put the dependencies in 4207 # the current directory while Tru64 will put them in the object 4208 # directory. 4209 mkdir sub 4210 4211 am_cv_CC_dependencies_compiler_type=none 4212 if test "$am_compiler_list" = ""; then 4213 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4214 fi 4215 am__universal=false 4216 case " $depcc " in #( 4217 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4218 esac 4219 4220 for depmode in $am_compiler_list; do 4221 # Setup a source with many dependencies, because some compilers 4222 # like to wrap large dependency lists on column 80 (with \), and 4223 # we should not choose a depcomp mode which is confused by this. 4224 # 4225 # We need to recreate these files for each test, as the compiler may 4226 # overwrite some of them when testing with obscure command lines. 4227 # This happens at least with the AIX C compiler. 4228 : > sub/conftest.c 4229 for i in 1 2 3 4 5 6; do 4230 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4231 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4232 # Solaris 10 /bin/sh. 4233 echo '/* dummy */' > sub/conftst$i.h 4234 done 4235 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4236 4237 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4238 # mode. It turns out that the SunPro C++ compiler does not properly 4239 # handle '-M -o', and we need to detect this. Also, some Intel 4240 # versions had trouble with output in subdirs. 4241 am__obj=sub/conftest.${OBJEXT-o} 4242 am__minus_obj="-o $am__obj" 4243 case $depmode in 4244 gcc) 4245 # This depmode causes a compiler race in universal mode. 4246 test "$am__universal" = false || continue 4247 ;; 4248 nosideeffect) 4249 # After this tag, mechanisms are not by side-effect, so they'll 4250 # only be used when explicitly requested. 4251 if test "x$enable_dependency_tracking" = xyes; then 4252 continue 4253 else 4254 break 4255 fi 4256 ;; 4257 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4258 # This compiler won't grok '-c -o', but also, the minuso test has 4259 # not run yet. These depmodes are late enough in the game, and 4260 # so weak that their functioning should not be impacted. 4261 am__obj=conftest.${OBJEXT-o} 4262 am__minus_obj= 4263 ;; 4264 none) break ;; 4265 esac 4266 if depmode=$depmode \ 4267 source=sub/conftest.c object=$am__obj \ 4268 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4269 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4270 >/dev/null 2>conftest.err && 4271 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4272 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4273 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4274 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4275 # icc doesn't choke on unknown options, it will just issue warnings 4276 # or remarks (even with -Werror). So we grep stderr for any message 4277 # that says an option was ignored or not supported. 4278 # When given -MP, icc 7.0 and 7.1 complain thusly: 4279 # icc: Command line warning: ignoring option '-M'; no argument required 4280 # The diagnosis changed in icc 8.0: 4281 # icc: Command line remark: option '-MP' not supported 4282 if (grep 'ignoring option' conftest.err || 4283 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4284 am_cv_CC_dependencies_compiler_type=$depmode 4285 break 4286 fi 4287 fi 4288 done 4289 4290 cd .. 4291 rm -rf conftest.dir 4292 else 4293 am_cv_CC_dependencies_compiler_type=none 4294 fi 4295 4296 fi 4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4298 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4299 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4300 4301 if 4302 test "x$enable_dependency_tracking" != xno \ 4303 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4304 am__fastdepCC_TRUE= 4305 am__fastdepCC_FALSE='#' 4306 else 4307 am__fastdepCC_TRUE='#' 4308 am__fastdepCC_FALSE= 4309 fi 4310 4311 4312 4313 case `pwd` in 4314 *\ * | *\ *) 4315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4316 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4317 esac 4318 4319 4320 4321 macro_version='2.4.2' 4322 macro_revision='1.3337' 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 ltmain="$ac_aux_dir/ltmain.sh" 4337 4338 # Backslashify metacharacters that are still active within 4339 # double-quoted strings. 4340 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4341 4342 # Same as above, but do not quote variable references. 4343 double_quote_subst='s/\(["`\\]\)/\\\1/g' 4344 4345 # Sed substitution to delay expansion of an escaped shell variable in a 4346 # double_quote_subst'ed string. 4347 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4348 4349 # Sed substitution to delay expansion of an escaped single quote. 4350 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4351 4352 # Sed substitution to avoid accidental globbing in evaled expressions 4353 no_glob_subst='s/\*/\\\*/g' 4354 4355 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4356 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4357 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4358 4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4360 $as_echo_n "checking how to print strings... " >&6; } 4361 # Test print first, because it will be a builtin if present. 4362 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4363 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4364 ECHO='print -r --' 4365 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4366 ECHO='printf %s\n' 4367 else 4368 # Use this function as a fallback that always works. 4369 func_fallback_echo () 4370 { 4371 eval 'cat <<_LTECHO_EOF 4372 $1 4373 _LTECHO_EOF' 4374 } 4375 ECHO='func_fallback_echo' 4376 fi 4377 4378 # func_echo_all arg... 4379 # Invoke $ECHO with all args, space-separated. 4380 func_echo_all () 4381 { 4382 $ECHO "" 4383 } 4384 4385 case "$ECHO" in 4386 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4387 $as_echo "printf" >&6; } ;; 4388 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4389 $as_echo "print -r" >&6; } ;; 4390 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4391 $as_echo "cat" >&6; } ;; 4392 esac 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4408 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 4409 if ${ac_cv_path_SED+:} false; then : 4410 $as_echo_n "(cached) " >&6 4411 else 4412 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4413 for ac_i in 1 2 3 4 5 6 7; do 4414 ac_script="$ac_script$as_nl$ac_script" 4415 done 4416 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4417 { ac_script=; unset ac_script;} 4418 if test -z "$SED"; then 4419 ac_path_SED_found=false 4420 # Loop through the user's path and test for each of PROGNAME-LIST 4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4422 for as_dir in $PATH 4423 do 4424 IFS=$as_save_IFS 4425 test -z "$as_dir" && as_dir=. 4426 for ac_prog in sed gsed; do 4427 for ac_exec_ext in '' $ac_executable_extensions; do 4428 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4429 as_fn_executable_p "$ac_path_SED" || continue 4430 # Check for GNU ac_path_SED and select it if it is found. 4431 # Check for GNU $ac_path_SED 4432 case `"$ac_path_SED" --version 2>&1` in 4433 *GNU*) 4434 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4435 *) 4436 ac_count=0 4437 $as_echo_n 0123456789 >"conftest.in" 4438 while : 4439 do 4440 cat "conftest.in" "conftest.in" >"conftest.tmp" 4441 mv "conftest.tmp" "conftest.in" 4442 cp "conftest.in" "conftest.nl" 4443 $as_echo '' >> "conftest.nl" 4444 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4445 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4446 as_fn_arith $ac_count + 1 && ac_count=$as_val 4447 if test $ac_count -gt ${ac_path_SED_max-0}; then 4448 # Best one so far, save it but keep looking for a better one 4449 ac_cv_path_SED="$ac_path_SED" 4450 ac_path_SED_max=$ac_count 4451 fi 4452 # 10*(2^10) chars as input seems more than enough 4453 test $ac_count -gt 10 && break 4454 done 4455 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4456 esac 4457 4458 $ac_path_SED_found && break 3 4459 done 4460 done 4461 done 4462 IFS=$as_save_IFS 4463 if test -z "$ac_cv_path_SED"; then 4464 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4465 fi 4466 else 4467 ac_cv_path_SED=$SED 4468 fi 4469 4470 fi 4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4472 $as_echo "$ac_cv_path_SED" >&6; } 4473 SED="$ac_cv_path_SED" 4474 rm -f conftest.sed 4475 4476 test -z "$SED" && SED=sed 4477 Xsed="$SED -e 1s/^X//" 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4490 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4491 if ${ac_cv_path_GREP+:} false; then : 4492 $as_echo_n "(cached) " >&6 4493 else 4494 if test -z "$GREP"; then 4495 ac_path_GREP_found=false 4496 # Loop through the user's path and test for each of PROGNAME-LIST 4497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4498 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4499 do 4500 IFS=$as_save_IFS 4501 test -z "$as_dir" && as_dir=. 4502 for ac_prog in grep ggrep; do 4503 for ac_exec_ext in '' $ac_executable_extensions; do 4504 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4505 as_fn_executable_p "$ac_path_GREP" || continue 4506 # Check for GNU ac_path_GREP and select it if it is found. 4507 # Check for GNU $ac_path_GREP 4508 case `"$ac_path_GREP" --version 2>&1` in 4509 *GNU*) 4510 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4511 *) 4512 ac_count=0 4513 $as_echo_n 0123456789 >"conftest.in" 4514 while : 4515 do 4516 cat "conftest.in" "conftest.in" >"conftest.tmp" 4517 mv "conftest.tmp" "conftest.in" 4518 cp "conftest.in" "conftest.nl" 4519 $as_echo 'GREP' >> "conftest.nl" 4520 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4521 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4522 as_fn_arith $ac_count + 1 && ac_count=$as_val 4523 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4524 # Best one so far, save it but keep looking for a better one 4525 ac_cv_path_GREP="$ac_path_GREP" 4526 ac_path_GREP_max=$ac_count 4527 fi 4528 # 10*(2^10) chars as input seems more than enough 4529 test $ac_count -gt 10 && break 4530 done 4531 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4532 esac 4533 4534 $ac_path_GREP_found && break 3 4535 done 4536 done 4537 done 4538 IFS=$as_save_IFS 4539 if test -z "$ac_cv_path_GREP"; then 4540 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4541 fi 4542 else 4543 ac_cv_path_GREP=$GREP 4544 fi 4545 4546 fi 4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4548 $as_echo "$ac_cv_path_GREP" >&6; } 4549 GREP="$ac_cv_path_GREP" 4550 4551 4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4553 $as_echo_n "checking for egrep... " >&6; } 4554 if ${ac_cv_path_EGREP+:} false; then : 4555 $as_echo_n "(cached) " >&6 4556 else 4557 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4558 then ac_cv_path_EGREP="$GREP -E" 4559 else 4560 if test -z "$EGREP"; then 4561 ac_path_EGREP_found=false 4562 # Loop through the user's path and test for each of PROGNAME-LIST 4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4564 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4565 do 4566 IFS=$as_save_IFS 4567 test -z "$as_dir" && as_dir=. 4568 for ac_prog in egrep; do 4569 for ac_exec_ext in '' $ac_executable_extensions; do 4570 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4571 as_fn_executable_p "$ac_path_EGREP" || continue 4572 # Check for GNU ac_path_EGREP and select it if it is found. 4573 # Check for GNU $ac_path_EGREP 4574 case `"$ac_path_EGREP" --version 2>&1` in 4575 *GNU*) 4576 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4577 *) 4578 ac_count=0 4579 $as_echo_n 0123456789 >"conftest.in" 4580 while : 4581 do 4582 cat "conftest.in" "conftest.in" >"conftest.tmp" 4583 mv "conftest.tmp" "conftest.in" 4584 cp "conftest.in" "conftest.nl" 4585 $as_echo 'EGREP' >> "conftest.nl" 4586 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4587 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4588 as_fn_arith $ac_count + 1 && ac_count=$as_val 4589 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4590 # Best one so far, save it but keep looking for a better one 4591 ac_cv_path_EGREP="$ac_path_EGREP" 4592 ac_path_EGREP_max=$ac_count 4593 fi 4594 # 10*(2^10) chars as input seems more than enough 4595 test $ac_count -gt 10 && break 4596 done 4597 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4598 esac 4599 4600 $ac_path_EGREP_found && break 3 4601 done 4602 done 4603 done 4604 IFS=$as_save_IFS 4605 if test -z "$ac_cv_path_EGREP"; then 4606 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4607 fi 4608 else 4609 ac_cv_path_EGREP=$EGREP 4610 fi 4611 4612 fi 4613 fi 4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4615 $as_echo "$ac_cv_path_EGREP" >&6; } 4616 EGREP="$ac_cv_path_EGREP" 4617 4618 4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4620 $as_echo_n "checking for fgrep... " >&6; } 4621 if ${ac_cv_path_FGREP+:} false; then : 4622 $as_echo_n "(cached) " >&6 4623 else 4624 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4625 then ac_cv_path_FGREP="$GREP -F" 4626 else 4627 if test -z "$FGREP"; then 4628 ac_path_FGREP_found=false 4629 # Loop through the user's path and test for each of PROGNAME-LIST 4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4631 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4632 do 4633 IFS=$as_save_IFS 4634 test -z "$as_dir" && as_dir=. 4635 for ac_prog in fgrep; do 4636 for ac_exec_ext in '' $ac_executable_extensions; do 4637 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4638 as_fn_executable_p "$ac_path_FGREP" || continue 4639 # Check for GNU ac_path_FGREP and select it if it is found. 4640 # Check for GNU $ac_path_FGREP 4641 case `"$ac_path_FGREP" --version 2>&1` in 4642 *GNU*) 4643 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4644 *) 4645 ac_count=0 4646 $as_echo_n 0123456789 >"conftest.in" 4647 while : 4648 do 4649 cat "conftest.in" "conftest.in" >"conftest.tmp" 4650 mv "conftest.tmp" "conftest.in" 4651 cp "conftest.in" "conftest.nl" 4652 $as_echo 'FGREP' >> "conftest.nl" 4653 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4654 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4655 as_fn_arith $ac_count + 1 && ac_count=$as_val 4656 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4657 # Best one so far, save it but keep looking for a better one 4658 ac_cv_path_FGREP="$ac_path_FGREP" 4659 ac_path_FGREP_max=$ac_count 4660 fi 4661 # 10*(2^10) chars as input seems more than enough 4662 test $ac_count -gt 10 && break 4663 done 4664 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4665 esac 4666 4667 $ac_path_FGREP_found && break 3 4668 done 4669 done 4670 done 4671 IFS=$as_save_IFS 4672 if test -z "$ac_cv_path_FGREP"; then 4673 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4674 fi 4675 else 4676 ac_cv_path_FGREP=$FGREP 4677 fi 4678 4679 fi 4680 fi 4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4682 $as_echo "$ac_cv_path_FGREP" >&6; } 4683 FGREP="$ac_cv_path_FGREP" 4684 4685 4686 test -z "$GREP" && GREP=grep 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 # Check whether --with-gnu-ld was given. 4707 if test "${with_gnu_ld+set}" = set; then : 4708 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4709 else 4710 with_gnu_ld=no 4711 fi 4712 4713 ac_prog=ld 4714 if test "$GCC" = yes; then 4715 # Check if gcc -print-prog-name=ld gives a path. 4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4717 $as_echo_n "checking for ld used by $CC... " >&6; } 4718 case $host in 4719 *-*-mingw*) 4720 # gcc leaves a trailing carriage return which upsets mingw 4721 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4722 *) 4723 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4724 esac 4725 case $ac_prog in 4726 # Accept absolute paths. 4727 [\\/]* | ?:[\\/]*) 4728 re_direlt='/[^/][^/]*/\.\./' 4729 # Canonicalize the pathname of ld 4730 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4731 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4732 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4733 done 4734 test -z "$LD" && LD="$ac_prog" 4735 ;; 4736 "") 4737 # If it fails, then pretend we aren't using GCC. 4738 ac_prog=ld 4739 ;; 4740 *) 4741 # If it is relative, then search for the first ld in PATH. 4742 with_gnu_ld=unknown 4743 ;; 4744 esac 4745 elif test "$with_gnu_ld" = yes; then 4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4747 $as_echo_n "checking for GNU ld... " >&6; } 4748 else 4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4750 $as_echo_n "checking for non-GNU ld... " >&6; } 4751 fi 4752 if ${lt_cv_path_LD+:} false; then : 4753 $as_echo_n "(cached) " >&6 4754 else 4755 if test -z "$LD"; then 4756 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4757 for ac_dir in $PATH; do 4758 IFS="$lt_save_ifs" 4759 test -z "$ac_dir" && ac_dir=. 4760 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4761 lt_cv_path_LD="$ac_dir/$ac_prog" 4762 # Check to see if the program is GNU ld. I'd rather use --version, 4763 # but apparently some variants of GNU ld only accept -v. 4764 # Break only if it was the GNU/non-GNU ld that we prefer. 4765 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4766 *GNU* | *'with BFD'*) 4767 test "$with_gnu_ld" != no && break 4768 ;; 4769 *) 4770 test "$with_gnu_ld" != yes && break 4771 ;; 4772 esac 4773 fi 4774 done 4775 IFS="$lt_save_ifs" 4776 else 4777 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4778 fi 4779 fi 4780 4781 LD="$lt_cv_path_LD" 4782 if test -n "$LD"; then 4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4784 $as_echo "$LD" >&6; } 4785 else 4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4787 $as_echo "no" >&6; } 4788 fi 4789 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4791 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4792 if ${lt_cv_prog_gnu_ld+:} false; then : 4793 $as_echo_n "(cached) " >&6 4794 else 4795 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4796 case `$LD -v 2>&1 </dev/null` in 4797 *GNU* | *'with BFD'*) 4798 lt_cv_prog_gnu_ld=yes 4799 ;; 4800 *) 4801 lt_cv_prog_gnu_ld=no 4802 ;; 4803 esac 4804 fi 4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4806 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 4807 with_gnu_ld=$lt_cv_prog_gnu_ld 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4818 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4819 if ${lt_cv_path_NM+:} false; then : 4820 $as_echo_n "(cached) " >&6 4821 else 4822 if test -n "$NM"; then 4823 # Let the user override the test. 4824 lt_cv_path_NM="$NM" 4825 else 4826 lt_nm_to_check="${ac_tool_prefix}nm" 4827 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4828 lt_nm_to_check="$lt_nm_to_check nm" 4829 fi 4830 for lt_tmp_nm in $lt_nm_to_check; do 4831 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4832 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4833 IFS="$lt_save_ifs" 4834 test -z "$ac_dir" && ac_dir=. 4835 tmp_nm="$ac_dir/$lt_tmp_nm" 4836 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4837 # Check to see if the nm accepts a BSD-compat flag. 4838 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4839 # nm: unknown option "B" ignored 4840 # Tru64's nm complains that /dev/null is an invalid object file 4841 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4842 */dev/null* | *'Invalid file or object type'*) 4843 lt_cv_path_NM="$tmp_nm -B" 4844 break 4845 ;; 4846 *) 4847 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4848 */dev/null*) 4849 lt_cv_path_NM="$tmp_nm -p" 4850 break 4851 ;; 4852 *) 4853 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4854 continue # so that we can try to find one that supports BSD flags 4855 ;; 4856 esac 4857 ;; 4858 esac 4859 fi 4860 done 4861 IFS="$lt_save_ifs" 4862 done 4863 : ${lt_cv_path_NM=no} 4864 fi 4865 fi 4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4867 $as_echo "$lt_cv_path_NM" >&6; } 4868 if test "$lt_cv_path_NM" != "no"; then 4869 NM="$lt_cv_path_NM" 4870 else 4871 # Didn't find any BSD compatible name lister, look for dumpbin. 4872 if test -n "$DUMPBIN"; then : 4873 # Let the user override the test. 4874 else 4875 if test -n "$ac_tool_prefix"; then 4876 for ac_prog in dumpbin "link -dump" 4877 do 4878 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4879 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4881 $as_echo_n "checking for $ac_word... " >&6; } 4882 if ${ac_cv_prog_DUMPBIN+:} false; then : 4883 $as_echo_n "(cached) " >&6 4884 else 4885 if test -n "$DUMPBIN"; then 4886 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4887 else 4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4889 for as_dir in $PATH 4890 do 4891 IFS=$as_save_IFS 4892 test -z "$as_dir" && as_dir=. 4893 for ac_exec_ext in '' $ac_executable_extensions; do 4894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4895 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4897 break 2 4898 fi 4899 done 4900 done 4901 IFS=$as_save_IFS 4902 4903 fi 4904 fi 4905 DUMPBIN=$ac_cv_prog_DUMPBIN 4906 if test -n "$DUMPBIN"; then 4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4908 $as_echo "$DUMPBIN" >&6; } 4909 else 4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4911 $as_echo "no" >&6; } 4912 fi 4913 4914 4915 test -n "$DUMPBIN" && break 4916 done 4917 fi 4918 if test -z "$DUMPBIN"; then 4919 ac_ct_DUMPBIN=$DUMPBIN 4920 for ac_prog in dumpbin "link -dump" 4921 do 4922 # Extract the first word of "$ac_prog", so it can be a program name with args. 4923 set dummy $ac_prog; ac_word=$2 4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4925 $as_echo_n "checking for $ac_word... " >&6; } 4926 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4927 $as_echo_n "(cached) " >&6 4928 else 4929 if test -n "$ac_ct_DUMPBIN"; then 4930 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4931 else 4932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4933 for as_dir in $PATH 4934 do 4935 IFS=$as_save_IFS 4936 test -z "$as_dir" && as_dir=. 4937 for ac_exec_ext in '' $ac_executable_extensions; do 4938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4939 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4941 break 2 4942 fi 4943 done 4944 done 4945 IFS=$as_save_IFS 4946 4947 fi 4948 fi 4949 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4950 if test -n "$ac_ct_DUMPBIN"; then 4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4952 $as_echo "$ac_ct_DUMPBIN" >&6; } 4953 else 4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4955 $as_echo "no" >&6; } 4956 fi 4957 4958 4959 test -n "$ac_ct_DUMPBIN" && break 4960 done 4961 4962 if test "x$ac_ct_DUMPBIN" = x; then 4963 DUMPBIN=":" 4964 else 4965 case $cross_compiling:$ac_tool_warned in 4966 yes:) 4967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4969 ac_tool_warned=yes ;; 4970 esac 4971 DUMPBIN=$ac_ct_DUMPBIN 4972 fi 4973 fi 4974 4975 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4976 *COFF*) 4977 DUMPBIN="$DUMPBIN -symbols" 4978 ;; 4979 *) 4980 DUMPBIN=: 4981 ;; 4982 esac 4983 fi 4984 4985 if test "$DUMPBIN" != ":"; then 4986 NM="$DUMPBIN" 4987 fi 4988 fi 4989 test -z "$NM" && NM=nm 4990 4991 4992 4993 4994 4995 4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4997 $as_echo_n "checking the name lister ($NM) interface... " >&6; } 4998 if ${lt_cv_nm_interface+:} false; then : 4999 $as_echo_n "(cached) " >&6 5000 else 5001 lt_cv_nm_interface="BSD nm" 5002 echo "int some_variable = 0;" > conftest.$ac_ext 5003 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5004 (eval "$ac_compile" 2>conftest.err) 5005 cat conftest.err >&5 5006 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5007 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5008 cat conftest.err >&5 5009 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5010 cat conftest.out >&5 5011 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5012 lt_cv_nm_interface="MS dumpbin" 5013 fi 5014 rm -f conftest* 5015 fi 5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5017 $as_echo "$lt_cv_nm_interface" >&6; } 5018 5019 # find the maximum length of command line arguments 5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5021 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 5022 if ${lt_cv_sys_max_cmd_len+:} false; then : 5023 $as_echo_n "(cached) " >&6 5024 else 5025 i=0 5026 teststring="ABCD" 5027 5028 case $build_os in 5029 msdosdjgpp*) 5030 # On DJGPP, this test can blow up pretty badly due to problems in libc 5031 # (any single argument exceeding 2000 bytes causes a buffer overrun 5032 # during glob expansion). Even if it were fixed, the result of this 5033 # check would be larger than it should be. 5034 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5035 ;; 5036 5037 gnu*) 5038 # Under GNU Hurd, this test is not required because there is 5039 # no limit to the length of command line arguments. 5040 # Libtool will interpret -1 as no limit whatsoever 5041 lt_cv_sys_max_cmd_len=-1; 5042 ;; 5043 5044 cygwin* | mingw* | cegcc*) 5045 # On Win9x/ME, this test blows up -- it succeeds, but takes 5046 # about 5 minutes as the teststring grows exponentially. 5047 # Worse, since 9x/ME are not pre-emptively multitasking, 5048 # you end up with a "frozen" computer, even though with patience 5049 # the test eventually succeeds (with a max line length of 256k). 5050 # Instead, let's just punt: use the minimum linelength reported by 5051 # all of the supported platforms: 8192 (on NT/2K/XP). 5052 lt_cv_sys_max_cmd_len=8192; 5053 ;; 5054 5055 mint*) 5056 # On MiNT this can take a long time and run out of memory. 5057 lt_cv_sys_max_cmd_len=8192; 5058 ;; 5059 5060 amigaos*) 5061 # On AmigaOS with pdksh, this test takes hours, literally. 5062 # So we just punt and use a minimum line length of 8192. 5063 lt_cv_sys_max_cmd_len=8192; 5064 ;; 5065 5066 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5067 # This has been around since 386BSD, at least. Likely further. 5068 if test -x /sbin/sysctl; then 5069 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5070 elif test -x /usr/sbin/sysctl; then 5071 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5072 else 5073 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5074 fi 5075 # And add a safety zone 5076 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5077 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5078 ;; 5079 5080 interix*) 5081 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5082 lt_cv_sys_max_cmd_len=196608 5083 ;; 5084 5085 os2*) 5086 # The test takes a long time on OS/2. 5087 lt_cv_sys_max_cmd_len=8192 5088 ;; 5089 5090 osf*) 5091 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5092 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5093 # nice to cause kernel panics so lets avoid the loop below. 5094 # First set a reasonable default. 5095 lt_cv_sys_max_cmd_len=16384 5096 # 5097 if test -x /sbin/sysconfig; then 5098 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5099 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5100 esac 5101 fi 5102 ;; 5103 sco3.2v5*) 5104 lt_cv_sys_max_cmd_len=102400 5105 ;; 5106 sysv5* | sco5v6* | sysv4.2uw2*) 5107 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5108 if test -n "$kargmax"; then 5109 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5110 else 5111 lt_cv_sys_max_cmd_len=32768 5112 fi 5113 ;; 5114 *) 5115 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5116 if test -n "$lt_cv_sys_max_cmd_len" && \ 5117 test undefined != "$lt_cv_sys_max_cmd_len"; then 5118 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5119 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5120 else 5121 # Make teststring a little bigger before we do anything with it. 5122 # a 1K string should be a reasonable start. 5123 for i in 1 2 3 4 5 6 7 8 ; do 5124 teststring=$teststring$teststring 5125 done 5126 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5127 # If test is not a shell built-in, we'll probably end up computing a 5128 # maximum length that is only half of the actual maximum length, but 5129 # we can't tell. 5130 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 5131 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5132 test $i != 17 # 1/2 MB should be enough 5133 do 5134 i=`expr $i + 1` 5135 teststring=$teststring$teststring 5136 done 5137 # Only check the string length outside the loop. 5138 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5139 teststring= 5140 # Add a significant safety factor because C++ compilers can tack on 5141 # massive amounts of additional arguments before passing them to the 5142 # linker. It appears as though 1/2 is a usable value. 5143 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5144 fi 5145 ;; 5146 esac 5147 5148 fi 5149 5150 if test -n $lt_cv_sys_max_cmd_len ; then 5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5152 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5153 else 5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5155 $as_echo "none" >&6; } 5156 fi 5157 max_cmd_len=$lt_cv_sys_max_cmd_len 5158 5159 5160 5161 5162 5163 5164 : ${CP="cp -f"} 5165 : ${MV="mv -f"} 5166 : ${RM="rm -f"} 5167 5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5169 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5170 # Try some XSI features 5171 xsi_shell=no 5172 ( _lt_dummy="a/b/c" 5173 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5174 = c,a/b,b/c, \ 5175 && eval 'test $(( 1 + 1 )) -eq 2 \ 5176 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5177 && xsi_shell=yes 5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5179 $as_echo "$xsi_shell" >&6; } 5180 5181 5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5183 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5184 lt_shell_append=no 5185 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5186 >/dev/null 2>&1 \ 5187 && lt_shell_append=yes 5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5189 $as_echo "$lt_shell_append" >&6; } 5190 5191 5192 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5193 lt_unset=unset 5194 else 5195 lt_unset=false 5196 fi 5197 5198 5199 5200 5201 5202 # test EBCDIC or ASCII 5203 case `echo X|tr X '\101'` in 5204 A) # ASCII based system 5205 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5206 lt_SP2NL='tr \040 \012' 5207 lt_NL2SP='tr \015\012 \040\040' 5208 ;; 5209 *) # EBCDIC based system 5210 lt_SP2NL='tr \100 \n' 5211 lt_NL2SP='tr \r\n \100\100' 5212 ;; 5213 esac 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5224 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5225 if ${lt_cv_to_host_file_cmd+:} false; then : 5226 $as_echo_n "(cached) " >&6 5227 else 5228 case $host in 5229 *-*-mingw* ) 5230 case $build in 5231 *-*-mingw* ) # actually msys 5232 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5233 ;; 5234 *-*-cygwin* ) 5235 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5236 ;; 5237 * ) # otherwise, assume *nix 5238 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5239 ;; 5240 esac 5241 ;; 5242 *-*-cygwin* ) 5243 case $build in 5244 *-*-mingw* ) # actually msys 5245 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5246 ;; 5247 *-*-cygwin* ) 5248 lt_cv_to_host_file_cmd=func_convert_file_noop 5249 ;; 5250 * ) # otherwise, assume *nix 5251 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5252 ;; 5253 esac 5254 ;; 5255 * ) # unhandled hosts (and "normal" native builds) 5256 lt_cv_to_host_file_cmd=func_convert_file_noop 5257 ;; 5258 esac 5259 5260 fi 5261 5262 to_host_file_cmd=$lt_cv_to_host_file_cmd 5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5264 $as_echo "$lt_cv_to_host_file_cmd" >&6; } 5265 5266 5267 5268 5269 5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5271 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5272 if ${lt_cv_to_tool_file_cmd+:} false; then : 5273 $as_echo_n "(cached) " >&6 5274 else 5275 #assume ordinary cross tools, or native build. 5276 lt_cv_to_tool_file_cmd=func_convert_file_noop 5277 case $host in 5278 *-*-mingw* ) 5279 case $build in 5280 *-*-mingw* ) # actually msys 5281 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5282 ;; 5283 esac 5284 ;; 5285 esac 5286 5287 fi 5288 5289 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5291 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5292 5293 5294 5295 5296 5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5298 $as_echo_n "checking for $LD option to reload object files... " >&6; } 5299 if ${lt_cv_ld_reload_flag+:} false; then : 5300 $as_echo_n "(cached) " >&6 5301 else 5302 lt_cv_ld_reload_flag='-r' 5303 fi 5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5305 $as_echo "$lt_cv_ld_reload_flag" >&6; } 5306 reload_flag=$lt_cv_ld_reload_flag 5307 case $reload_flag in 5308 "" | " "*) ;; 5309 *) reload_flag=" $reload_flag" ;; 5310 esac 5311 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5312 case $host_os in 5313 cygwin* | mingw* | pw32* | cegcc*) 5314 if test "$GCC" != yes; then 5315 reload_cmds=false 5316 fi 5317 ;; 5318 darwin*) 5319 if test "$GCC" = yes; then 5320 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5321 else 5322 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5323 fi 5324 ;; 5325 esac 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 if test -n "$ac_tool_prefix"; then 5336 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5337 set dummy ${ac_tool_prefix}objdump; ac_word=$2 5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5339 $as_echo_n "checking for $ac_word... " >&6; } 5340 if ${ac_cv_prog_OBJDUMP+:} false; then : 5341 $as_echo_n "(cached) " >&6 5342 else 5343 if test -n "$OBJDUMP"; then 5344 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5345 else 5346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5347 for as_dir in $PATH 5348 do 5349 IFS=$as_save_IFS 5350 test -z "$as_dir" && as_dir=. 5351 for ac_exec_ext in '' $ac_executable_extensions; do 5352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5353 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5355 break 2 5356 fi 5357 done 5358 done 5359 IFS=$as_save_IFS 5360 5361 fi 5362 fi 5363 OBJDUMP=$ac_cv_prog_OBJDUMP 5364 if test -n "$OBJDUMP"; then 5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5366 $as_echo "$OBJDUMP" >&6; } 5367 else 5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5369 $as_echo "no" >&6; } 5370 fi 5371 5372 5373 fi 5374 if test -z "$ac_cv_prog_OBJDUMP"; then 5375 ac_ct_OBJDUMP=$OBJDUMP 5376 # Extract the first word of "objdump", so it can be a program name with args. 5377 set dummy objdump; ac_word=$2 5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5379 $as_echo_n "checking for $ac_word... " >&6; } 5380 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5381 $as_echo_n "(cached) " >&6 5382 else 5383 if test -n "$ac_ct_OBJDUMP"; then 5384 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5385 else 5386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5387 for as_dir in $PATH 5388 do 5389 IFS=$as_save_IFS 5390 test -z "$as_dir" && as_dir=. 5391 for ac_exec_ext in '' $ac_executable_extensions; do 5392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5393 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5395 break 2 5396 fi 5397 done 5398 done 5399 IFS=$as_save_IFS 5400 5401 fi 5402 fi 5403 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5404 if test -n "$ac_ct_OBJDUMP"; then 5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5406 $as_echo "$ac_ct_OBJDUMP" >&6; } 5407 else 5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5409 $as_echo "no" >&6; } 5410 fi 5411 5412 if test "x$ac_ct_OBJDUMP" = x; then 5413 OBJDUMP="false" 5414 else 5415 case $cross_compiling:$ac_tool_warned in 5416 yes:) 5417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5418 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5419 ac_tool_warned=yes ;; 5420 esac 5421 OBJDUMP=$ac_ct_OBJDUMP 5422 fi 5423 else 5424 OBJDUMP="$ac_cv_prog_OBJDUMP" 5425 fi 5426 5427 test -z "$OBJDUMP" && OBJDUMP=objdump 5428 5429 5430 5431 5432 5433 5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5435 $as_echo_n "checking how to recognize dependent libraries... " >&6; } 5436 if ${lt_cv_deplibs_check_method+:} false; then : 5437 $as_echo_n "(cached) " >&6 5438 else 5439 lt_cv_file_magic_cmd='$MAGIC_CMD' 5440 lt_cv_file_magic_test_file= 5441 lt_cv_deplibs_check_method='unknown' 5442 # Need to set the preceding variable on all platforms that support 5443 # interlibrary dependencies. 5444 # 'none' -- dependencies not supported. 5445 # `unknown' -- same as none, but documents that we really don't know. 5446 # 'pass_all' -- all dependencies passed with no checks. 5447 # 'test_compile' -- check by making test program. 5448 # 'file_magic [[regex]]' -- check by looking for files in library path 5449 # which responds to the $file_magic_cmd with a given extended regex. 5450 # If you have `file' or equivalent on your system and you're not sure 5451 # whether `pass_all' will *always* work, you probably want this one. 5452 5453 case $host_os in 5454 aix[4-9]*) 5455 lt_cv_deplibs_check_method=pass_all 5456 ;; 5457 5458 beos*) 5459 lt_cv_deplibs_check_method=pass_all 5460 ;; 5461 5462 bsdi[45]*) 5463 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5464 lt_cv_file_magic_cmd='/usr/bin/file -L' 5465 lt_cv_file_magic_test_file=/shlib/libc.so 5466 ;; 5467 5468 cygwin*) 5469 # func_win32_libid is a shell function defined in ltmain.sh 5470 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5471 lt_cv_file_magic_cmd='func_win32_libid' 5472 ;; 5473 5474 mingw* | pw32*) 5475 # Base MSYS/MinGW do not provide the 'file' command needed by 5476 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5477 # unless we find 'file', for example because we are cross-compiling. 5478 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5479 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5480 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5481 lt_cv_file_magic_cmd='func_win32_libid' 5482 else 5483 # Keep this pattern in sync with the one in func_win32_libid. 5484 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5485 lt_cv_file_magic_cmd='$OBJDUMP -f' 5486 fi 5487 ;; 5488 5489 cegcc*) 5490 # use the weaker test based on 'objdump'. See mingw*. 5491 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5492 lt_cv_file_magic_cmd='$OBJDUMP -f' 5493 ;; 5494 5495 darwin* | rhapsody*) 5496 lt_cv_deplibs_check_method=pass_all 5497 ;; 5498 5499 freebsd* | dragonfly*) 5500 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5501 case $host_cpu in 5502 i*86 ) 5503 # Not sure whether the presence of OpenBSD here was a mistake. 5504 # Let's accept both of them until this is cleared up. 5505 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5506 lt_cv_file_magic_cmd=/usr/bin/file 5507 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5508 ;; 5509 esac 5510 else 5511 lt_cv_deplibs_check_method=pass_all 5512 fi 5513 ;; 5514 5515 haiku*) 5516 lt_cv_deplibs_check_method=pass_all 5517 ;; 5518 5519 hpux10.20* | hpux11*) 5520 lt_cv_file_magic_cmd=/usr/bin/file 5521 case $host_cpu in 5522 ia64*) 5523 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5524 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5525 ;; 5526 hppa*64*) 5527 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]' 5528 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5529 ;; 5530 *) 5531 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5532 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5533 ;; 5534 esac 5535 ;; 5536 5537 interix[3-9]*) 5538 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5539 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5540 ;; 5541 5542 irix5* | irix6* | nonstopux*) 5543 case $LD in 5544 *-32|*"-32 ") libmagic=32-bit;; 5545 *-n32|*"-n32 ") libmagic=N32;; 5546 *-64|*"-64 ") libmagic=64-bit;; 5547 *) libmagic=never-match;; 5548 esac 5549 lt_cv_deplibs_check_method=pass_all 5550 ;; 5551 5552 # This must be glibc/ELF. 5553 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5554 lt_cv_deplibs_check_method=pass_all 5555 ;; 5556 5557 netbsd* | netbsdelf*-gnu) 5558 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5559 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5560 else 5561 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5562 fi 5563 ;; 5564 5565 newos6*) 5566 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5567 lt_cv_file_magic_cmd=/usr/bin/file 5568 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5569 ;; 5570 5571 *nto* | *qnx*) 5572 lt_cv_deplibs_check_method=pass_all 5573 ;; 5574 5575 openbsd*) 5576 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5577 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5578 else 5579 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5580 fi 5581 ;; 5582 5583 osf3* | osf4* | osf5*) 5584 lt_cv_deplibs_check_method=pass_all 5585 ;; 5586 5587 rdos*) 5588 lt_cv_deplibs_check_method=pass_all 5589 ;; 5590 5591 solaris*) 5592 lt_cv_deplibs_check_method=pass_all 5593 ;; 5594 5595 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5596 lt_cv_deplibs_check_method=pass_all 5597 ;; 5598 5599 sysv4 | sysv4.3*) 5600 case $host_vendor in 5601 motorola) 5602 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]' 5603 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5604 ;; 5605 ncr) 5606 lt_cv_deplibs_check_method=pass_all 5607 ;; 5608 sequent) 5609 lt_cv_file_magic_cmd='/bin/file' 5610 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5611 ;; 5612 sni) 5613 lt_cv_file_magic_cmd='/bin/file' 5614 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5615 lt_cv_file_magic_test_file=/lib/libc.so 5616 ;; 5617 siemens) 5618 lt_cv_deplibs_check_method=pass_all 5619 ;; 5620 pc) 5621 lt_cv_deplibs_check_method=pass_all 5622 ;; 5623 esac 5624 ;; 5625 5626 tpf*) 5627 lt_cv_deplibs_check_method=pass_all 5628 ;; 5629 esac 5630 5631 fi 5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5633 $as_echo "$lt_cv_deplibs_check_method" >&6; } 5634 5635 file_magic_glob= 5636 want_nocaseglob=no 5637 if test "$build" = "$host"; then 5638 case $host_os in 5639 mingw* | pw32*) 5640 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5641 want_nocaseglob=yes 5642 else 5643 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5644 fi 5645 ;; 5646 esac 5647 fi 5648 5649 file_magic_cmd=$lt_cv_file_magic_cmd 5650 deplibs_check_method=$lt_cv_deplibs_check_method 5651 test -z "$deplibs_check_method" && deplibs_check_method=unknown 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 if test -n "$ac_tool_prefix"; then 5675 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5676 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5678 $as_echo_n "checking for $ac_word... " >&6; } 5679 if ${ac_cv_prog_DLLTOOL+:} false; then : 5680 $as_echo_n "(cached) " >&6 5681 else 5682 if test -n "$DLLTOOL"; then 5683 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5684 else 5685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5686 for as_dir in $PATH 5687 do 5688 IFS=$as_save_IFS 5689 test -z "$as_dir" && as_dir=. 5690 for ac_exec_ext in '' $ac_executable_extensions; do 5691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5692 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5694 break 2 5695 fi 5696 done 5697 done 5698 IFS=$as_save_IFS 5699 5700 fi 5701 fi 5702 DLLTOOL=$ac_cv_prog_DLLTOOL 5703 if test -n "$DLLTOOL"; then 5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5705 $as_echo "$DLLTOOL" >&6; } 5706 else 5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5708 $as_echo "no" >&6; } 5709 fi 5710 5711 5712 fi 5713 if test -z "$ac_cv_prog_DLLTOOL"; then 5714 ac_ct_DLLTOOL=$DLLTOOL 5715 # Extract the first word of "dlltool", so it can be a program name with args. 5716 set dummy dlltool; ac_word=$2 5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5718 $as_echo_n "checking for $ac_word... " >&6; } 5719 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5720 $as_echo_n "(cached) " >&6 5721 else 5722 if test -n "$ac_ct_DLLTOOL"; then 5723 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5724 else 5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5726 for as_dir in $PATH 5727 do 5728 IFS=$as_save_IFS 5729 test -z "$as_dir" && as_dir=. 5730 for ac_exec_ext in '' $ac_executable_extensions; do 5731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5732 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5734 break 2 5735 fi 5736 done 5737 done 5738 IFS=$as_save_IFS 5739 5740 fi 5741 fi 5742 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5743 if test -n "$ac_ct_DLLTOOL"; then 5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5745 $as_echo "$ac_ct_DLLTOOL" >&6; } 5746 else 5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5748 $as_echo "no" >&6; } 5749 fi 5750 5751 if test "x$ac_ct_DLLTOOL" = x; then 5752 DLLTOOL="false" 5753 else 5754 case $cross_compiling:$ac_tool_warned in 5755 yes:) 5756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5758 ac_tool_warned=yes ;; 5759 esac 5760 DLLTOOL=$ac_ct_DLLTOOL 5761 fi 5762 else 5763 DLLTOOL="$ac_cv_prog_DLLTOOL" 5764 fi 5765 5766 test -z "$DLLTOOL" && DLLTOOL=dlltool 5767 5768 5769 5770 5771 5772 5773 5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5775 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5776 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5777 $as_echo_n "(cached) " >&6 5778 else 5779 lt_cv_sharedlib_from_linklib_cmd='unknown' 5780 5781 case $host_os in 5782 cygwin* | mingw* | pw32* | cegcc*) 5783 # two different shell functions defined in ltmain.sh 5784 # decide which to use based on capabilities of $DLLTOOL 5785 case `$DLLTOOL --help 2>&1` in 5786 *--identify-strict*) 5787 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5788 ;; 5789 *) 5790 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5791 ;; 5792 esac 5793 ;; 5794 *) 5795 # fallback: assume linklib IS sharedlib 5796 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5797 ;; 5798 esac 5799 5800 fi 5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5802 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5803 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5804 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5805 5806 5807 5808 5809 5810 5811 5812 5813 if test -n "$ac_tool_prefix"; then 5814 for ac_prog in ar 5815 do 5816 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5817 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5819 $as_echo_n "checking for $ac_word... " >&6; } 5820 if ${ac_cv_prog_AR+:} false; then : 5821 $as_echo_n "(cached) " >&6 5822 else 5823 if test -n "$AR"; then 5824 ac_cv_prog_AR="$AR" # Let the user override the test. 5825 else 5826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5827 for as_dir in $PATH 5828 do 5829 IFS=$as_save_IFS 5830 test -z "$as_dir" && as_dir=. 5831 for ac_exec_ext in '' $ac_executable_extensions; do 5832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5833 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5835 break 2 5836 fi 5837 done 5838 done 5839 IFS=$as_save_IFS 5840 5841 fi 5842 fi 5843 AR=$ac_cv_prog_AR 5844 if test -n "$AR"; then 5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5846 $as_echo "$AR" >&6; } 5847 else 5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5849 $as_echo "no" >&6; } 5850 fi 5851 5852 5853 test -n "$AR" && break 5854 done 5855 fi 5856 if test -z "$AR"; then 5857 ac_ct_AR=$AR 5858 for ac_prog in ar 5859 do 5860 # Extract the first word of "$ac_prog", so it can be a program name with args. 5861 set dummy $ac_prog; ac_word=$2 5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5863 $as_echo_n "checking for $ac_word... " >&6; } 5864 if ${ac_cv_prog_ac_ct_AR+:} false; then : 5865 $as_echo_n "(cached) " >&6 5866 else 5867 if test -n "$ac_ct_AR"; then 5868 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5869 else 5870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5871 for as_dir in $PATH 5872 do 5873 IFS=$as_save_IFS 5874 test -z "$as_dir" && as_dir=. 5875 for ac_exec_ext in '' $ac_executable_extensions; do 5876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5877 ac_cv_prog_ac_ct_AR="$ac_prog" 5878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5879 break 2 5880 fi 5881 done 5882 done 5883 IFS=$as_save_IFS 5884 5885 fi 5886 fi 5887 ac_ct_AR=$ac_cv_prog_ac_ct_AR 5888 if test -n "$ac_ct_AR"; then 5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5890 $as_echo "$ac_ct_AR" >&6; } 5891 else 5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5893 $as_echo "no" >&6; } 5894 fi 5895 5896 5897 test -n "$ac_ct_AR" && break 5898 done 5899 5900 if test "x$ac_ct_AR" = x; then 5901 AR="false" 5902 else 5903 case $cross_compiling:$ac_tool_warned in 5904 yes:) 5905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5907 ac_tool_warned=yes ;; 5908 esac 5909 AR=$ac_ct_AR 5910 fi 5911 fi 5912 5913 : ${AR=ar} 5914 : ${AR_FLAGS=cru} 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5927 $as_echo_n "checking for archiver @FILE support... " >&6; } 5928 if ${lt_cv_ar_at_file+:} false; then : 5929 $as_echo_n "(cached) " >&6 5930 else 5931 lt_cv_ar_at_file=no 5932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5933 /* end confdefs.h. */ 5934 5935 int 5936 main () 5937 { 5938 5939 ; 5940 return 0; 5941 } 5942 _ACEOF 5943 if ac_fn_c_try_compile "$LINENO"; then : 5944 echo conftest.$ac_objext > conftest.lst 5945 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5947 (eval $lt_ar_try) 2>&5 5948 ac_status=$? 5949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5950 test $ac_status = 0; } 5951 if test "$ac_status" -eq 0; then 5952 # Ensure the archiver fails upon bogus file names. 5953 rm -f conftest.$ac_objext libconftest.a 5954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5955 (eval $lt_ar_try) 2>&5 5956 ac_status=$? 5957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5958 test $ac_status = 0; } 5959 if test "$ac_status" -ne 0; then 5960 lt_cv_ar_at_file=@ 5961 fi 5962 fi 5963 rm -f conftest.* libconftest.a 5964 5965 fi 5966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5967 5968 fi 5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5970 $as_echo "$lt_cv_ar_at_file" >&6; } 5971 5972 if test "x$lt_cv_ar_at_file" = xno; then 5973 archiver_list_spec= 5974 else 5975 archiver_list_spec=$lt_cv_ar_at_file 5976 fi 5977 5978 5979 5980 5981 5982 5983 5984 if test -n "$ac_tool_prefix"; then 5985 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5986 set dummy ${ac_tool_prefix}strip; ac_word=$2 5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5988 $as_echo_n "checking for $ac_word... " >&6; } 5989 if ${ac_cv_prog_STRIP+:} false; then : 5990 $as_echo_n "(cached) " >&6 5991 else 5992 if test -n "$STRIP"; then 5993 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5994 else 5995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5996 for as_dir in $PATH 5997 do 5998 IFS=$as_save_IFS 5999 test -z "$as_dir" && as_dir=. 6000 for ac_exec_ext in '' $ac_executable_extensions; do 6001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6002 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6004 break 2 6005 fi 6006 done 6007 done 6008 IFS=$as_save_IFS 6009 6010 fi 6011 fi 6012 STRIP=$ac_cv_prog_STRIP 6013 if test -n "$STRIP"; then 6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6015 $as_echo "$STRIP" >&6; } 6016 else 6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6018 $as_echo "no" >&6; } 6019 fi 6020 6021 6022 fi 6023 if test -z "$ac_cv_prog_STRIP"; then 6024 ac_ct_STRIP=$STRIP 6025 # Extract the first word of "strip", so it can be a program name with args. 6026 set dummy strip; ac_word=$2 6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6028 $as_echo_n "checking for $ac_word... " >&6; } 6029 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6030 $as_echo_n "(cached) " >&6 6031 else 6032 if test -n "$ac_ct_STRIP"; then 6033 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6034 else 6035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6036 for as_dir in $PATH 6037 do 6038 IFS=$as_save_IFS 6039 test -z "$as_dir" && as_dir=. 6040 for ac_exec_ext in '' $ac_executable_extensions; do 6041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6042 ac_cv_prog_ac_ct_STRIP="strip" 6043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6044 break 2 6045 fi 6046 done 6047 done 6048 IFS=$as_save_IFS 6049 6050 fi 6051 fi 6052 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6053 if test -n "$ac_ct_STRIP"; then 6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6055 $as_echo "$ac_ct_STRIP" >&6; } 6056 else 6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6058 $as_echo "no" >&6; } 6059 fi 6060 6061 if test "x$ac_ct_STRIP" = x; then 6062 STRIP=":" 6063 else 6064 case $cross_compiling:$ac_tool_warned in 6065 yes:) 6066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6067 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6068 ac_tool_warned=yes ;; 6069 esac 6070 STRIP=$ac_ct_STRIP 6071 fi 6072 else 6073 STRIP="$ac_cv_prog_STRIP" 6074 fi 6075 6076 test -z "$STRIP" && STRIP=: 6077 6078 6079 6080 6081 6082 6083 if test -n "$ac_tool_prefix"; then 6084 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6085 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6087 $as_echo_n "checking for $ac_word... " >&6; } 6088 if ${ac_cv_prog_RANLIB+:} false; then : 6089 $as_echo_n "(cached) " >&6 6090 else 6091 if test -n "$RANLIB"; then 6092 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6093 else 6094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6095 for as_dir in $PATH 6096 do 6097 IFS=$as_save_IFS 6098 test -z "$as_dir" && as_dir=. 6099 for ac_exec_ext in '' $ac_executable_extensions; do 6100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6101 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6103 break 2 6104 fi 6105 done 6106 done 6107 IFS=$as_save_IFS 6108 6109 fi 6110 fi 6111 RANLIB=$ac_cv_prog_RANLIB 6112 if test -n "$RANLIB"; then 6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6114 $as_echo "$RANLIB" >&6; } 6115 else 6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6117 $as_echo "no" >&6; } 6118 fi 6119 6120 6121 fi 6122 if test -z "$ac_cv_prog_RANLIB"; then 6123 ac_ct_RANLIB=$RANLIB 6124 # Extract the first word of "ranlib", so it can be a program name with args. 6125 set dummy ranlib; ac_word=$2 6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6127 $as_echo_n "checking for $ac_word... " >&6; } 6128 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6129 $as_echo_n "(cached) " >&6 6130 else 6131 if test -n "$ac_ct_RANLIB"; then 6132 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6133 else 6134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6135 for as_dir in $PATH 6136 do 6137 IFS=$as_save_IFS 6138 test -z "$as_dir" && as_dir=. 6139 for ac_exec_ext in '' $ac_executable_extensions; do 6140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6141 ac_cv_prog_ac_ct_RANLIB="ranlib" 6142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6143 break 2 6144 fi 6145 done 6146 done 6147 IFS=$as_save_IFS 6148 6149 fi 6150 fi 6151 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6152 if test -n "$ac_ct_RANLIB"; then 6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6154 $as_echo "$ac_ct_RANLIB" >&6; } 6155 else 6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6157 $as_echo "no" >&6; } 6158 fi 6159 6160 if test "x$ac_ct_RANLIB" = x; then 6161 RANLIB=":" 6162 else 6163 case $cross_compiling:$ac_tool_warned in 6164 yes:) 6165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6167 ac_tool_warned=yes ;; 6168 esac 6169 RANLIB=$ac_ct_RANLIB 6170 fi 6171 else 6172 RANLIB="$ac_cv_prog_RANLIB" 6173 fi 6174 6175 test -z "$RANLIB" && RANLIB=: 6176 6177 6178 6179 6180 6181 6182 # Determine commands to create old-style static archives. 6183 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6184 old_postinstall_cmds='chmod 644 $oldlib' 6185 old_postuninstall_cmds= 6186 6187 if test -n "$RANLIB"; then 6188 case $host_os in 6189 openbsd*) 6190 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6191 ;; 6192 *) 6193 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6194 ;; 6195 esac 6196 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6197 fi 6198 6199 case $host_os in 6200 darwin*) 6201 lock_old_archive_extraction=yes ;; 6202 *) 6203 lock_old_archive_extraction=no ;; 6204 esac 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 # If no C compiler was specified, use CC. 6245 LTCC=${LTCC-"$CC"} 6246 6247 # If no C compiler flags were specified, use CFLAGS. 6248 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6249 6250 # Allow CC to be a program name with arguments. 6251 compiler=$CC 6252 6253 6254 # Check for command to grab the raw symbol name followed by C symbol from nm. 6255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6256 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6257 if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6258 $as_echo_n "(cached) " >&6 6259 else 6260 6261 # These are sane defaults that work on at least a few old systems. 6262 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 6263 6264 # Character class describing NM global symbol codes. 6265 symcode='[BCDEGRST]' 6266 6267 # Regexp to match symbols that can be accessed directly from C. 6268 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6269 6270 # Define system-specific variables. 6271 case $host_os in 6272 aix*) 6273 symcode='[BCDT]' 6274 ;; 6275 cygwin* | mingw* | pw32* | cegcc*) 6276 symcode='[ABCDGISTW]' 6277 ;; 6278 hpux*) 6279 if test "$host_cpu" = ia64; then 6280 symcode='[ABCDEGRST]' 6281 fi 6282 ;; 6283 irix* | nonstopux*) 6284 symcode='[BCDEGRST]' 6285 ;; 6286 osf*) 6287 symcode='[BCDEGQRST]' 6288 ;; 6289 solaris*) 6290 symcode='[BDRT]' 6291 ;; 6292 sco3.2v5*) 6293 symcode='[DT]' 6294 ;; 6295 sysv4.2uw2*) 6296 symcode='[DT]' 6297 ;; 6298 sysv5* | sco5v6* | unixware* | OpenUNIX*) 6299 symcode='[ABDT]' 6300 ;; 6301 sysv4) 6302 symcode='[DFNSTU]' 6303 ;; 6304 esac 6305 6306 # If we're using GNU nm, then use its standard symbol codes. 6307 case `$NM -V 2>&1` in 6308 *GNU* | *'with BFD'*) 6309 symcode='[ABCDGIRSTW]' ;; 6310 esac 6311 6312 # Transform an extracted symbol line into a proper C declaration. 6313 # Some systems (esp. on ia64) link data and code symbols differently, 6314 # so use this general approach. 6315 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6316 6317 # Transform an extracted symbol line into symbol name and symbol address 6318 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6319 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 6320 6321 # Handle CRLF in mingw tool chain 6322 opt_cr= 6323 case $build_os in 6324 mingw*) 6325 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6326 ;; 6327 esac 6328 6329 # Try without a prefix underscore, then with it. 6330 for ac_symprfx in "" "_"; do 6331 6332 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6333 symxfrm="\\1 $ac_symprfx\\2 \\2" 6334 6335 # Write the raw and C identifiers. 6336 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6337 # Fake it for dumpbin and say T for any non-static function 6338 # and D for any global variable. 6339 # Also find C++ and __fastcall symbols from MSVC++, 6340 # which start with @ or ?. 6341 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6342 " {last_section=section; section=\$ 3};"\ 6343 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6344 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6345 " \$ 0!~/External *\|/{next};"\ 6346 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6347 " {if(hide[section]) next};"\ 6348 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6349 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6350 " s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6351 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6352 " ' prfx=^$ac_symprfx" 6353 else 6354 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6355 fi 6356 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6357 6358 # Check to see that the pipe works correctly. 6359 pipe_works=no 6360 6361 rm -f conftest* 6362 cat > conftest.$ac_ext <<_LT_EOF 6363 #ifdef __cplusplus 6364 extern "C" { 6365 #endif 6366 char nm_test_var; 6367 void nm_test_func(void); 6368 void nm_test_func(void){} 6369 #ifdef __cplusplus 6370 } 6371 #endif 6372 int main(){nm_test_var='a';nm_test_func();return(0);} 6373 _LT_EOF 6374 6375 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6376 (eval $ac_compile) 2>&5 6377 ac_status=$? 6378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6379 test $ac_status = 0; }; then 6380 # Now try to grab the symbols. 6381 nlist=conftest.nm 6382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6383 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6384 ac_status=$? 6385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6386 test $ac_status = 0; } && test -s "$nlist"; then 6387 # Try sorting and uniquifying the output. 6388 if sort "$nlist" | uniq > "$nlist"T; then 6389 mv -f "$nlist"T "$nlist" 6390 else 6391 rm -f "$nlist"T 6392 fi 6393 6394 # Make sure that we snagged all the symbols we need. 6395 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6396 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6397 cat <<_LT_EOF > conftest.$ac_ext 6398 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6399 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6400 /* DATA imports from DLLs on WIN32 con't be const, because runtime 6401 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6402 # define LT_DLSYM_CONST 6403 #elif defined(__osf__) 6404 /* This system does not cope well with relocations in const data. */ 6405 # define LT_DLSYM_CONST 6406 #else 6407 # define LT_DLSYM_CONST const 6408 #endif 6409 6410 #ifdef __cplusplus 6411 extern "C" { 6412 #endif 6413 6414 _LT_EOF 6415 # Now generate the symbol file. 6416 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6417 6418 cat <<_LT_EOF >> conftest.$ac_ext 6419 6420 /* The mapping between symbol names and symbols. */ 6421 LT_DLSYM_CONST struct { 6422 const char *name; 6423 void *address; 6424 } 6425 lt__PROGRAM__LTX_preloaded_symbols[] = 6426 { 6427 { "@PROGRAM@", (void *) 0 }, 6428 _LT_EOF 6429 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6430 cat <<\_LT_EOF >> conftest.$ac_ext 6431 {0, (void *) 0} 6432 }; 6433 6434 /* This works around a problem in FreeBSD linker */ 6435 #ifdef FREEBSD_WORKAROUND 6436 static const void *lt_preloaded_setup() { 6437 return lt__PROGRAM__LTX_preloaded_symbols; 6438 } 6439 #endif 6440 6441 #ifdef __cplusplus 6442 } 6443 #endif 6444 _LT_EOF 6445 # Now try linking the two files. 6446 mv conftest.$ac_objext conftstm.$ac_objext 6447 lt_globsym_save_LIBS=$LIBS 6448 lt_globsym_save_CFLAGS=$CFLAGS 6449 LIBS="conftstm.$ac_objext" 6450 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6452 (eval $ac_link) 2>&5 6453 ac_status=$? 6454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6455 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6456 pipe_works=yes 6457 fi 6458 LIBS=$lt_globsym_save_LIBS 6459 CFLAGS=$lt_globsym_save_CFLAGS 6460 else 6461 echo "cannot find nm_test_func in $nlist" >&5 6462 fi 6463 else 6464 echo "cannot find nm_test_var in $nlist" >&5 6465 fi 6466 else 6467 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6468 fi 6469 else 6470 echo "$progname: failed program was:" >&5 6471 cat conftest.$ac_ext >&5 6472 fi 6473 rm -rf conftest* conftst* 6474 6475 # Do not use the global_symbol_pipe unless it works. 6476 if test "$pipe_works" = yes; then 6477 break 6478 else 6479 lt_cv_sys_global_symbol_pipe= 6480 fi 6481 done 6482 6483 fi 6484 6485 if test -z "$lt_cv_sys_global_symbol_pipe"; then 6486 lt_cv_sys_global_symbol_to_cdecl= 6487 fi 6488 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6490 $as_echo "failed" >&6; } 6491 else 6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6493 $as_echo "ok" >&6; } 6494 fi 6495 6496 # Response file support. 6497 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6498 nm_file_list_spec='@' 6499 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6500 nm_file_list_spec='@' 6501 fi 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6530 $as_echo_n "checking for sysroot... " >&6; } 6531 6532 # Check whether --with-sysroot was given. 6533 if test "${with_sysroot+set}" = set; then : 6534 withval=$with_sysroot; 6535 else 6536 with_sysroot=no 6537 fi 6538 6539 6540 lt_sysroot= 6541 case ${with_sysroot} in #( 6542 yes) 6543 if test "$GCC" = yes; then 6544 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6545 fi 6546 ;; #( 6547 /*) 6548 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6549 ;; #( 6550 no|'') 6551 ;; #( 6552 *) 6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6554 $as_echo "${with_sysroot}" >&6; } 6555 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6556 ;; 6557 esac 6558 6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6560 $as_echo "${lt_sysroot:-no}" >&6; } 6561 6562 6563 6564 6565 6566 # Check whether --enable-libtool-lock was given. 6567 if test "${enable_libtool_lock+set}" = set; then : 6568 enableval=$enable_libtool_lock; 6569 fi 6570 6571 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6572 6573 # Some flags need to be propagated to the compiler or linker for good 6574 # libtool support. 6575 case $host in 6576 ia64-*-hpux*) 6577 # Find out which ABI we are using. 6578 echo 'int i;' > conftest.$ac_ext 6579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6580 (eval $ac_compile) 2>&5 6581 ac_status=$? 6582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6583 test $ac_status = 0; }; then 6584 case `/usr/bin/file conftest.$ac_objext` in 6585 *ELF-32*) 6586 HPUX_IA64_MODE="32" 6587 ;; 6588 *ELF-64*) 6589 HPUX_IA64_MODE="64" 6590 ;; 6591 esac 6592 fi 6593 rm -rf conftest* 6594 ;; 6595 *-*-irix6*) 6596 # Find out which ABI we are using. 6597 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6599 (eval $ac_compile) 2>&5 6600 ac_status=$? 6601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6602 test $ac_status = 0; }; then 6603 if test "$lt_cv_prog_gnu_ld" = yes; then 6604 case `/usr/bin/file conftest.$ac_objext` in 6605 *32-bit*) 6606 LD="${LD-ld} -melf32bsmip" 6607 ;; 6608 *N32*) 6609 LD="${LD-ld} -melf32bmipn32" 6610 ;; 6611 *64-bit*) 6612 LD="${LD-ld} -melf64bmip" 6613 ;; 6614 esac 6615 else 6616 case `/usr/bin/file conftest.$ac_objext` in 6617 *32-bit*) 6618 LD="${LD-ld} -32" 6619 ;; 6620 *N32*) 6621 LD="${LD-ld} -n32" 6622 ;; 6623 *64-bit*) 6624 LD="${LD-ld} -64" 6625 ;; 6626 esac 6627 fi 6628 fi 6629 rm -rf conftest* 6630 ;; 6631 6632 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6633 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6634 # Find out which ABI we are using. 6635 echo 'int i;' > conftest.$ac_ext 6636 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6637 (eval $ac_compile) 2>&5 6638 ac_status=$? 6639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6640 test $ac_status = 0; }; then 6641 case `/usr/bin/file conftest.o` in 6642 *32-bit*) 6643 case $host in 6644 x86_64-*kfreebsd*-gnu) 6645 LD="${LD-ld} -m elf_i386_fbsd" 6646 ;; 6647 x86_64-*linux*) 6648 case `/usr/bin/file conftest.o` in 6649 *x86-64*) 6650 LD="${LD-ld} -m elf32_x86_64" 6651 ;; 6652 *) 6653 LD="${LD-ld} -m elf_i386" 6654 ;; 6655 esac 6656 ;; 6657 powerpc64le-*) 6658 LD="${LD-ld} -m elf32lppclinux" 6659 ;; 6660 powerpc64-*) 6661 LD="${LD-ld} -m elf32ppclinux" 6662 ;; 6663 s390x-*linux*) 6664 LD="${LD-ld} -m elf_s390" 6665 ;; 6666 sparc64-*linux*) 6667 LD="${LD-ld} -m elf32_sparc" 6668 ;; 6669 esac 6670 ;; 6671 *64-bit*) 6672 case $host in 6673 x86_64-*kfreebsd*-gnu) 6674 LD="${LD-ld} -m elf_x86_64_fbsd" 6675 ;; 6676 x86_64-*linux*) 6677 LD="${LD-ld} -m elf_x86_64" 6678 ;; 6679 powerpcle-*) 6680 LD="${LD-ld} -m elf64lppc" 6681 ;; 6682 powerpc-*) 6683 LD="${LD-ld} -m elf64ppc" 6684 ;; 6685 s390*-*linux*|s390*-*tpf*) 6686 LD="${LD-ld} -m elf64_s390" 6687 ;; 6688 sparc*-*linux*) 6689 LD="${LD-ld} -m elf64_sparc" 6690 ;; 6691 esac 6692 ;; 6693 esac 6694 fi 6695 rm -rf conftest* 6696 ;; 6697 6698 *-*-sco3.2v5*) 6699 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6700 SAVE_CFLAGS="$CFLAGS" 6701 CFLAGS="$CFLAGS -belf" 6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6703 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6704 if ${lt_cv_cc_needs_belf+:} false; then : 6705 $as_echo_n "(cached) " >&6 6706 else 6707 ac_ext=c 6708 ac_cpp='$CPP $CPPFLAGS' 6709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6711 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6712 6713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6714 /* end confdefs.h. */ 6715 6716 int 6717 main () 6718 { 6719 6720 ; 6721 return 0; 6722 } 6723 _ACEOF 6724 if ac_fn_c_try_link "$LINENO"; then : 6725 lt_cv_cc_needs_belf=yes 6726 else 6727 lt_cv_cc_needs_belf=no 6728 fi 6729 rm -f core conftest.err conftest.$ac_objext \ 6730 conftest$ac_exeext conftest.$ac_ext 6731 ac_ext=c 6732 ac_cpp='$CPP $CPPFLAGS' 6733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6735 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6736 6737 fi 6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6739 $as_echo "$lt_cv_cc_needs_belf" >&6; } 6740 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6741 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6742 CFLAGS="$SAVE_CFLAGS" 6743 fi 6744 ;; 6745 *-*solaris*) 6746 # Find out which ABI we are using. 6747 echo 'int i;' > conftest.$ac_ext 6748 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6749 (eval $ac_compile) 2>&5 6750 ac_status=$? 6751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6752 test $ac_status = 0; }; then 6753 case `/usr/bin/file conftest.o` in 6754 *64-bit*) 6755 case $lt_cv_prog_gnu_ld in 6756 yes*) 6757 case $host in 6758 i?86-*-solaris*) 6759 LD="${LD-ld} -m elf_x86_64" 6760 ;; 6761 sparc*-*-solaris*) 6762 LD="${LD-ld} -m elf64_sparc" 6763 ;; 6764 esac 6765 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6766 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6767 LD="${LD-ld}_sol2" 6768 fi 6769 ;; 6770 *) 6771 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6772 LD="${LD-ld} -64" 6773 fi 6774 ;; 6775 esac 6776 ;; 6777 esac 6778 fi 6779 rm -rf conftest* 6780 ;; 6781 esac 6782 6783 need_locks="$enable_libtool_lock" 6784 6785 if test -n "$ac_tool_prefix"; then 6786 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6787 set dummy ${ac_tool_prefix}mt; ac_word=$2 6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6789 $as_echo_n "checking for $ac_word... " >&6; } 6790 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6791 $as_echo_n "(cached) " >&6 6792 else 6793 if test -n "$MANIFEST_TOOL"; then 6794 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6795 else 6796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6797 for as_dir in $PATH 6798 do 6799 IFS=$as_save_IFS 6800 test -z "$as_dir" && as_dir=. 6801 for ac_exec_ext in '' $ac_executable_extensions; do 6802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6803 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6805 break 2 6806 fi 6807 done 6808 done 6809 IFS=$as_save_IFS 6810 6811 fi 6812 fi 6813 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6814 if test -n "$MANIFEST_TOOL"; then 6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6816 $as_echo "$MANIFEST_TOOL" >&6; } 6817 else 6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6819 $as_echo "no" >&6; } 6820 fi 6821 6822 6823 fi 6824 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6825 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6826 # Extract the first word of "mt", so it can be a program name with args. 6827 set dummy mt; ac_word=$2 6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6829 $as_echo_n "checking for $ac_word... " >&6; } 6830 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6831 $as_echo_n "(cached) " >&6 6832 else 6833 if test -n "$ac_ct_MANIFEST_TOOL"; then 6834 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6835 else 6836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6837 for as_dir in $PATH 6838 do 6839 IFS=$as_save_IFS 6840 test -z "$as_dir" && as_dir=. 6841 for ac_exec_ext in '' $ac_executable_extensions; do 6842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6843 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6845 break 2 6846 fi 6847 done 6848 done 6849 IFS=$as_save_IFS 6850 6851 fi 6852 fi 6853 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6854 if test -n "$ac_ct_MANIFEST_TOOL"; then 6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6856 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6857 else 6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6859 $as_echo "no" >&6; } 6860 fi 6861 6862 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6863 MANIFEST_TOOL=":" 6864 else 6865 case $cross_compiling:$ac_tool_warned in 6866 yes:) 6867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6869 ac_tool_warned=yes ;; 6870 esac 6871 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6872 fi 6873 else 6874 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6875 fi 6876 6877 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6879 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6880 if ${lt_cv_path_mainfest_tool+:} false; then : 6881 $as_echo_n "(cached) " >&6 6882 else 6883 lt_cv_path_mainfest_tool=no 6884 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6885 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6886 cat conftest.err >&5 6887 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6888 lt_cv_path_mainfest_tool=yes 6889 fi 6890 rm -f conftest* 6891 fi 6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6893 $as_echo "$lt_cv_path_mainfest_tool" >&6; } 6894 if test "x$lt_cv_path_mainfest_tool" != xyes; then 6895 MANIFEST_TOOL=: 6896 fi 6897 6898 6899 6900 6901 6902 6903 case $host_os in 6904 rhapsody* | darwin*) 6905 if test -n "$ac_tool_prefix"; then 6906 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6907 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6909 $as_echo_n "checking for $ac_word... " >&6; } 6910 if ${ac_cv_prog_DSYMUTIL+:} false; then : 6911 $as_echo_n "(cached) " >&6 6912 else 6913 if test -n "$DSYMUTIL"; then 6914 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6915 else 6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6917 for as_dir in $PATH 6918 do 6919 IFS=$as_save_IFS 6920 test -z "$as_dir" && as_dir=. 6921 for ac_exec_ext in '' $ac_executable_extensions; do 6922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6923 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6925 break 2 6926 fi 6927 done 6928 done 6929 IFS=$as_save_IFS 6930 6931 fi 6932 fi 6933 DSYMUTIL=$ac_cv_prog_DSYMUTIL 6934 if test -n "$DSYMUTIL"; then 6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6936 $as_echo "$DSYMUTIL" >&6; } 6937 else 6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6939 $as_echo "no" >&6; } 6940 fi 6941 6942 6943 fi 6944 if test -z "$ac_cv_prog_DSYMUTIL"; then 6945 ac_ct_DSYMUTIL=$DSYMUTIL 6946 # Extract the first word of "dsymutil", so it can be a program name with args. 6947 set dummy dsymutil; ac_word=$2 6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6949 $as_echo_n "checking for $ac_word... " >&6; } 6950 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6951 $as_echo_n "(cached) " >&6 6952 else 6953 if test -n "$ac_ct_DSYMUTIL"; then 6954 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6955 else 6956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6957 for as_dir in $PATH 6958 do 6959 IFS=$as_save_IFS 6960 test -z "$as_dir" && as_dir=. 6961 for ac_exec_ext in '' $ac_executable_extensions; do 6962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6963 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6965 break 2 6966 fi 6967 done 6968 done 6969 IFS=$as_save_IFS 6970 6971 fi 6972 fi 6973 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6974 if test -n "$ac_ct_DSYMUTIL"; then 6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6976 $as_echo "$ac_ct_DSYMUTIL" >&6; } 6977 else 6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6979 $as_echo "no" >&6; } 6980 fi 6981 6982 if test "x$ac_ct_DSYMUTIL" = x; then 6983 DSYMUTIL=":" 6984 else 6985 case $cross_compiling:$ac_tool_warned in 6986 yes:) 6987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6989 ac_tool_warned=yes ;; 6990 esac 6991 DSYMUTIL=$ac_ct_DSYMUTIL 6992 fi 6993 else 6994 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6995 fi 6996 6997 if test -n "$ac_tool_prefix"; then 6998 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6999 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7001 $as_echo_n "checking for $ac_word... " >&6; } 7002 if ${ac_cv_prog_NMEDIT+:} false; then : 7003 $as_echo_n "(cached) " >&6 7004 else 7005 if test -n "$NMEDIT"; then 7006 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7007 else 7008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7009 for as_dir in $PATH 7010 do 7011 IFS=$as_save_IFS 7012 test -z "$as_dir" && as_dir=. 7013 for ac_exec_ext in '' $ac_executable_extensions; do 7014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7015 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7017 break 2 7018 fi 7019 done 7020 done 7021 IFS=$as_save_IFS 7022 7023 fi 7024 fi 7025 NMEDIT=$ac_cv_prog_NMEDIT 7026 if test -n "$NMEDIT"; then 7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7028 $as_echo "$NMEDIT" >&6; } 7029 else 7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7031 $as_echo "no" >&6; } 7032 fi 7033 7034 7035 fi 7036 if test -z "$ac_cv_prog_NMEDIT"; then 7037 ac_ct_NMEDIT=$NMEDIT 7038 # Extract the first word of "nmedit", so it can be a program name with args. 7039 set dummy nmedit; ac_word=$2 7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7041 $as_echo_n "checking for $ac_word... " >&6; } 7042 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7043 $as_echo_n "(cached) " >&6 7044 else 7045 if test -n "$ac_ct_NMEDIT"; then 7046 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7047 else 7048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7049 for as_dir in $PATH 7050 do 7051 IFS=$as_save_IFS 7052 test -z "$as_dir" && as_dir=. 7053 for ac_exec_ext in '' $ac_executable_extensions; do 7054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7055 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7057 break 2 7058 fi 7059 done 7060 done 7061 IFS=$as_save_IFS 7062 7063 fi 7064 fi 7065 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7066 if test -n "$ac_ct_NMEDIT"; then 7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7068 $as_echo "$ac_ct_NMEDIT" >&6; } 7069 else 7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7071 $as_echo "no" >&6; } 7072 fi 7073 7074 if test "x$ac_ct_NMEDIT" = x; then 7075 NMEDIT=":" 7076 else 7077 case $cross_compiling:$ac_tool_warned in 7078 yes:) 7079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7081 ac_tool_warned=yes ;; 7082 esac 7083 NMEDIT=$ac_ct_NMEDIT 7084 fi 7085 else 7086 NMEDIT="$ac_cv_prog_NMEDIT" 7087 fi 7088 7089 if test -n "$ac_tool_prefix"; then 7090 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7091 set dummy ${ac_tool_prefix}lipo; ac_word=$2 7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7093 $as_echo_n "checking for $ac_word... " >&6; } 7094 if ${ac_cv_prog_LIPO+:} false; then : 7095 $as_echo_n "(cached) " >&6 7096 else 7097 if test -n "$LIPO"; then 7098 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7099 else 7100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7101 for as_dir in $PATH 7102 do 7103 IFS=$as_save_IFS 7104 test -z "$as_dir" && as_dir=. 7105 for ac_exec_ext in '' $ac_executable_extensions; do 7106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7107 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7109 break 2 7110 fi 7111 done 7112 done 7113 IFS=$as_save_IFS 7114 7115 fi 7116 fi 7117 LIPO=$ac_cv_prog_LIPO 7118 if test -n "$LIPO"; then 7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7120 $as_echo "$LIPO" >&6; } 7121 else 7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7123 $as_echo "no" >&6; } 7124 fi 7125 7126 7127 fi 7128 if test -z "$ac_cv_prog_LIPO"; then 7129 ac_ct_LIPO=$LIPO 7130 # Extract the first word of "lipo", so it can be a program name with args. 7131 set dummy lipo; ac_word=$2 7132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7133 $as_echo_n "checking for $ac_word... " >&6; } 7134 if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7135 $as_echo_n "(cached) " >&6 7136 else 7137 if test -n "$ac_ct_LIPO"; then 7138 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7139 else 7140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7141 for as_dir in $PATH 7142 do 7143 IFS=$as_save_IFS 7144 test -z "$as_dir" && as_dir=. 7145 for ac_exec_ext in '' $ac_executable_extensions; do 7146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7147 ac_cv_prog_ac_ct_LIPO="lipo" 7148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7149 break 2 7150 fi 7151 done 7152 done 7153 IFS=$as_save_IFS 7154 7155 fi 7156 fi 7157 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7158 if test -n "$ac_ct_LIPO"; then 7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7160 $as_echo "$ac_ct_LIPO" >&6; } 7161 else 7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7163 $as_echo "no" >&6; } 7164 fi 7165 7166 if test "x$ac_ct_LIPO" = x; then 7167 LIPO=":" 7168 else 7169 case $cross_compiling:$ac_tool_warned in 7170 yes:) 7171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7173 ac_tool_warned=yes ;; 7174 esac 7175 LIPO=$ac_ct_LIPO 7176 fi 7177 else 7178 LIPO="$ac_cv_prog_LIPO" 7179 fi 7180 7181 if test -n "$ac_tool_prefix"; then 7182 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7183 set dummy ${ac_tool_prefix}otool; ac_word=$2 7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7185 $as_echo_n "checking for $ac_word... " >&6; } 7186 if ${ac_cv_prog_OTOOL+:} false; then : 7187 $as_echo_n "(cached) " >&6 7188 else 7189 if test -n "$OTOOL"; then 7190 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7191 else 7192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7193 for as_dir in $PATH 7194 do 7195 IFS=$as_save_IFS 7196 test -z "$as_dir" && as_dir=. 7197 for ac_exec_ext in '' $ac_executable_extensions; do 7198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7199 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7201 break 2 7202 fi 7203 done 7204 done 7205 IFS=$as_save_IFS 7206 7207 fi 7208 fi 7209 OTOOL=$ac_cv_prog_OTOOL 7210 if test -n "$OTOOL"; then 7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7212 $as_echo "$OTOOL" >&6; } 7213 else 7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7215 $as_echo "no" >&6; } 7216 fi 7217 7218 7219 fi 7220 if test -z "$ac_cv_prog_OTOOL"; then 7221 ac_ct_OTOOL=$OTOOL 7222 # Extract the first word of "otool", so it can be a program name with args. 7223 set dummy otool; ac_word=$2 7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7225 $as_echo_n "checking for $ac_word... " >&6; } 7226 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7227 $as_echo_n "(cached) " >&6 7228 else 7229 if test -n "$ac_ct_OTOOL"; then 7230 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7231 else 7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7233 for as_dir in $PATH 7234 do 7235 IFS=$as_save_IFS 7236 test -z "$as_dir" && as_dir=. 7237 for ac_exec_ext in '' $ac_executable_extensions; do 7238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7239 ac_cv_prog_ac_ct_OTOOL="otool" 7240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7241 break 2 7242 fi 7243 done 7244 done 7245 IFS=$as_save_IFS 7246 7247 fi 7248 fi 7249 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7250 if test -n "$ac_ct_OTOOL"; then 7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7252 $as_echo "$ac_ct_OTOOL" >&6; } 7253 else 7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7255 $as_echo "no" >&6; } 7256 fi 7257 7258 if test "x$ac_ct_OTOOL" = x; then 7259 OTOOL=":" 7260 else 7261 case $cross_compiling:$ac_tool_warned in 7262 yes:) 7263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7265 ac_tool_warned=yes ;; 7266 esac 7267 OTOOL=$ac_ct_OTOOL 7268 fi 7269 else 7270 OTOOL="$ac_cv_prog_OTOOL" 7271 fi 7272 7273 if test -n "$ac_tool_prefix"; then 7274 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7275 set dummy ${ac_tool_prefix}otool64; ac_word=$2 7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7277 $as_echo_n "checking for $ac_word... " >&6; } 7278 if ${ac_cv_prog_OTOOL64+:} false; then : 7279 $as_echo_n "(cached) " >&6 7280 else 7281 if test -n "$OTOOL64"; then 7282 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7283 else 7284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7285 for as_dir in $PATH 7286 do 7287 IFS=$as_save_IFS 7288 test -z "$as_dir" && as_dir=. 7289 for ac_exec_ext in '' $ac_executable_extensions; do 7290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7291 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7293 break 2 7294 fi 7295 done 7296 done 7297 IFS=$as_save_IFS 7298 7299 fi 7300 fi 7301 OTOOL64=$ac_cv_prog_OTOOL64 7302 if test -n "$OTOOL64"; then 7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7304 $as_echo "$OTOOL64" >&6; } 7305 else 7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7307 $as_echo "no" >&6; } 7308 fi 7309 7310 7311 fi 7312 if test -z "$ac_cv_prog_OTOOL64"; then 7313 ac_ct_OTOOL64=$OTOOL64 7314 # Extract the first word of "otool64", so it can be a program name with args. 7315 set dummy otool64; ac_word=$2 7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7317 $as_echo_n "checking for $ac_word... " >&6; } 7318 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7319 $as_echo_n "(cached) " >&6 7320 else 7321 if test -n "$ac_ct_OTOOL64"; then 7322 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7323 else 7324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7325 for as_dir in $PATH 7326 do 7327 IFS=$as_save_IFS 7328 test -z "$as_dir" && as_dir=. 7329 for ac_exec_ext in '' $ac_executable_extensions; do 7330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7331 ac_cv_prog_ac_ct_OTOOL64="otool64" 7332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7333 break 2 7334 fi 7335 done 7336 done 7337 IFS=$as_save_IFS 7338 7339 fi 7340 fi 7341 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7342 if test -n "$ac_ct_OTOOL64"; then 7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7344 $as_echo "$ac_ct_OTOOL64" >&6; } 7345 else 7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7347 $as_echo "no" >&6; } 7348 fi 7349 7350 if test "x$ac_ct_OTOOL64" = x; then 7351 OTOOL64=":" 7352 else 7353 case $cross_compiling:$ac_tool_warned in 7354 yes:) 7355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7357 ac_tool_warned=yes ;; 7358 esac 7359 OTOOL64=$ac_ct_OTOOL64 7360 fi 7361 else 7362 OTOOL64="$ac_cv_prog_OTOOL64" 7363 fi 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7392 $as_echo_n "checking for -single_module linker flag... " >&6; } 7393 if ${lt_cv_apple_cc_single_mod+:} false; then : 7394 $as_echo_n "(cached) " >&6 7395 else 7396 lt_cv_apple_cc_single_mod=no 7397 if test -z "${LT_MULTI_MODULE}"; then 7398 # By default we will add the -single_module flag. You can override 7399 # by either setting the environment variable LT_MULTI_MODULE 7400 # non-empty at configure time, or by adding -multi_module to the 7401 # link flags. 7402 rm -rf libconftest.dylib* 7403 echo "int foo(void){return 1;}" > conftest.c 7404 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7405 -dynamiclib -Wl,-single_module conftest.c" >&5 7406 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7407 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7408 _lt_result=$? 7409 # If there is a non-empty error log, and "single_module" 7410 # appears in it, assume the flag caused a linker warning 7411 if test -s conftest.err && $GREP single_module conftest.err; then 7412 cat conftest.err >&5 7413 # Otherwise, if the output was created with a 0 exit code from 7414 # the compiler, it worked. 7415 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7416 lt_cv_apple_cc_single_mod=yes 7417 else 7418 cat conftest.err >&5 7419 fi 7420 rm -rf libconftest.dylib* 7421 rm -f conftest.* 7422 fi 7423 fi 7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7425 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7426 7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7428 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7429 if ${lt_cv_ld_exported_symbols_list+:} false; then : 7430 $as_echo_n "(cached) " >&6 7431 else 7432 lt_cv_ld_exported_symbols_list=no 7433 save_LDFLAGS=$LDFLAGS 7434 echo "_main" > conftest.sym 7435 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7437 /* end confdefs.h. */ 7438 7439 int 7440 main () 7441 { 7442 7443 ; 7444 return 0; 7445 } 7446 _ACEOF 7447 if ac_fn_c_try_link "$LINENO"; then : 7448 lt_cv_ld_exported_symbols_list=yes 7449 else 7450 lt_cv_ld_exported_symbols_list=no 7451 fi 7452 rm -f core conftest.err conftest.$ac_objext \ 7453 conftest$ac_exeext conftest.$ac_ext 7454 LDFLAGS="$save_LDFLAGS" 7455 7456 fi 7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7458 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7459 7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7461 $as_echo_n "checking for -force_load linker flag... " >&6; } 7462 if ${lt_cv_ld_force_load+:} false; then : 7463 $as_echo_n "(cached) " >&6 7464 else 7465 lt_cv_ld_force_load=no 7466 cat > conftest.c << _LT_EOF 7467 int forced_loaded() { return 2;} 7468 _LT_EOF 7469 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7470 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7471 echo "$AR cru libconftest.a conftest.o" >&5 7472 $AR cru libconftest.a conftest.o 2>&5 7473 echo "$RANLIB libconftest.a" >&5 7474 $RANLIB libconftest.a 2>&5 7475 cat > conftest.c << _LT_EOF 7476 int main() { return 0;} 7477 _LT_EOF 7478 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7479 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7480 _lt_result=$? 7481 if test -s conftest.err && $GREP force_load conftest.err; then 7482 cat conftest.err >&5 7483 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7484 lt_cv_ld_force_load=yes 7485 else 7486 cat conftest.err >&5 7487 fi 7488 rm -f conftest.err libconftest.a conftest conftest.c 7489 rm -rf conftest.dSYM 7490 7491 fi 7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7493 $as_echo "$lt_cv_ld_force_load" >&6; } 7494 case $host_os in 7495 rhapsody* | darwin1.[012]) 7496 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7497 darwin1.*) 7498 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7499 darwin*) # darwin 5.x on 7500 # if running on 10.5 or later, the deployment target defaults 7501 # to the OS version, if on x86, and 10.4, the deployment 7502 # target defaults to 10.4. Don't you love it? 7503 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7504 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7505 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7506 10.[012]*) 7507 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7508 10.*) 7509 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7510 esac 7511 ;; 7512 esac 7513 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7514 _lt_dar_single_mod='$single_module' 7515 fi 7516 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7517 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7518 else 7519 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7520 fi 7521 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7522 _lt_dsymutil='~$DSYMUTIL $lib || :' 7523 else 7524 _lt_dsymutil= 7525 fi 7526 ;; 7527 esac 7528 7529 ac_ext=c 7530 ac_cpp='$CPP $CPPFLAGS' 7531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7533 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7535 $as_echo_n "checking how to run the C preprocessor... " >&6; } 7536 # On Suns, sometimes $CPP names a directory. 7537 if test -n "$CPP" && test -d "$CPP"; then 7538 CPP= 7539 fi 7540 if test -z "$CPP"; then 7541 if ${ac_cv_prog_CPP+:} false; then : 7542 $as_echo_n "(cached) " >&6 7543 else 7544 # Double quotes because CPP needs to be expanded 7545 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7546 do 7547 ac_preproc_ok=false 7548 for ac_c_preproc_warn_flag in '' yes 7549 do 7550 # Use a header file that comes with gcc, so configuring glibc 7551 # with a fresh cross-compiler works. 7552 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7553 # <limits.h> exists even on freestanding compilers. 7554 # On the NeXT, cc -E runs the code through the compiler's parser, 7555 # not just through cpp. "Syntax error" is here to catch this case. 7556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7557 /* end confdefs.h. */ 7558 #ifdef __STDC__ 7559 # include <limits.h> 7560 #else 7561 # include <assert.h> 7562 #endif 7563 Syntax error 7564 _ACEOF 7565 if ac_fn_c_try_cpp "$LINENO"; then : 7566 7567 else 7568 # Broken: fails on valid input. 7569 continue 7570 fi 7571 rm -f conftest.err conftest.i conftest.$ac_ext 7572 7573 # OK, works on sane cases. Now check whether nonexistent headers 7574 # can be detected and how. 7575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7576 /* end confdefs.h. */ 7577 #include <ac_nonexistent.h> 7578 _ACEOF 7579 if ac_fn_c_try_cpp "$LINENO"; then : 7580 # Broken: success on invalid input. 7581 continue 7582 else 7583 # Passes both tests. 7584 ac_preproc_ok=: 7585 break 7586 fi 7587 rm -f conftest.err conftest.i conftest.$ac_ext 7588 7589 done 7590 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7591 rm -f conftest.i conftest.err conftest.$ac_ext 7592 if $ac_preproc_ok; then : 7593 break 7594 fi 7595 7596 done 7597 ac_cv_prog_CPP=$CPP 7598 7599 fi 7600 CPP=$ac_cv_prog_CPP 7601 else 7602 ac_cv_prog_CPP=$CPP 7603 fi 7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7605 $as_echo "$CPP" >&6; } 7606 ac_preproc_ok=false 7607 for ac_c_preproc_warn_flag in '' yes 7608 do 7609 # Use a header file that comes with gcc, so configuring glibc 7610 # with a fresh cross-compiler works. 7611 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7612 # <limits.h> exists even on freestanding compilers. 7613 # On the NeXT, cc -E runs the code through the compiler's parser, 7614 # not just through cpp. "Syntax error" is here to catch this case. 7615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7616 /* end confdefs.h. */ 7617 #ifdef __STDC__ 7618 # include <limits.h> 7619 #else 7620 # include <assert.h> 7621 #endif 7622 Syntax error 7623 _ACEOF 7624 if ac_fn_c_try_cpp "$LINENO"; then : 7625 7626 else 7627 # Broken: fails on valid input. 7628 continue 7629 fi 7630 rm -f conftest.err conftest.i conftest.$ac_ext 7631 7632 # OK, works on sane cases. Now check whether nonexistent headers 7633 # can be detected and how. 7634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7635 /* end confdefs.h. */ 7636 #include <ac_nonexistent.h> 7637 _ACEOF 7638 if ac_fn_c_try_cpp "$LINENO"; then : 7639 # Broken: success on invalid input. 7640 continue 7641 else 7642 # Passes both tests. 7643 ac_preproc_ok=: 7644 break 7645 fi 7646 rm -f conftest.err conftest.i conftest.$ac_ext 7647 7648 done 7649 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7650 rm -f conftest.i conftest.err conftest.$ac_ext 7651 if $ac_preproc_ok; then : 7652 7653 else 7654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7656 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7657 See \`config.log' for more details" "$LINENO" 5; } 7658 fi 7659 7660 ac_ext=c 7661 ac_cpp='$CPP $CPPFLAGS' 7662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7664 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7665 7666 7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7668 $as_echo_n "checking for ANSI C header files... " >&6; } 7669 if ${ac_cv_header_stdc+:} false; then : 7670 $as_echo_n "(cached) " >&6 7671 else 7672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7673 /* end confdefs.h. */ 7674 #include <stdlib.h> 7675 #include <stdarg.h> 7676 #include <string.h> 7677 #include <float.h> 7678 7679 int 7680 main () 7681 { 7682 7683 ; 7684 return 0; 7685 } 7686 _ACEOF 7687 if ac_fn_c_try_compile "$LINENO"; then : 7688 ac_cv_header_stdc=yes 7689 else 7690 ac_cv_header_stdc=no 7691 fi 7692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7693 7694 if test $ac_cv_header_stdc = yes; then 7695 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7697 /* end confdefs.h. */ 7698 #include <string.h> 7699 7700 _ACEOF 7701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7702 $EGREP "memchr" >/dev/null 2>&1; then : 7703 7704 else 7705 ac_cv_header_stdc=no 7706 fi 7707 rm -f conftest* 7708 7709 fi 7710 7711 if test $ac_cv_header_stdc = yes; then 7712 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7714 /* end confdefs.h. */ 7715 #include <stdlib.h> 7716 7717 _ACEOF 7718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7719 $EGREP "free" >/dev/null 2>&1; then : 7720 7721 else 7722 ac_cv_header_stdc=no 7723 fi 7724 rm -f conftest* 7725 7726 fi 7727 7728 if test $ac_cv_header_stdc = yes; then 7729 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7730 if test "$cross_compiling" = yes; then : 7731 : 7732 else 7733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7734 /* end confdefs.h. */ 7735 #include <ctype.h> 7736 #include <stdlib.h> 7737 #if ((' ' & 0x0FF) == 0x020) 7738 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7739 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7740 #else 7741 # define ISLOWER(c) \ 7742 (('a' <= (c) && (c) <= 'i') \ 7743 || ('j' <= (c) && (c) <= 'r') \ 7744 || ('s' <= (c) && (c) <= 'z')) 7745 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7746 #endif 7747 7748 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7749 int 7750 main () 7751 { 7752 int i; 7753 for (i = 0; i < 256; i++) 7754 if (XOR (islower (i), ISLOWER (i)) 7755 || toupper (i) != TOUPPER (i)) 7756 return 2; 7757 return 0; 7758 } 7759 _ACEOF 7760 if ac_fn_c_try_run "$LINENO"; then : 7761 7762 else 7763 ac_cv_header_stdc=no 7764 fi 7765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7766 conftest.$ac_objext conftest.beam conftest.$ac_ext 7767 fi 7768 7769 fi 7770 fi 7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7772 $as_echo "$ac_cv_header_stdc" >&6; } 7773 if test $ac_cv_header_stdc = yes; then 7774 7775 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 7776 7777 fi 7778 7779 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 7780 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7781 inttypes.h stdint.h unistd.h 7782 do : 7783 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7784 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7785 " 7786 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7787 cat >>confdefs.h <<_ACEOF 7788 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7789 _ACEOF 7790 7791 fi 7792 7793 done 7794 7795 7796 for ac_header in dlfcn.h 7797 do : 7798 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7799 " 7800 if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7801 cat >>confdefs.h <<_ACEOF 7802 #define HAVE_DLFCN_H 1 7803 _ACEOF 7804 7805 fi 7806 7807 done 7808 7809 7810 7811 7812 7813 # Set options 7814 enable_win32_dll=yes 7815 7816 case $host in 7817 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 7818 if test -n "$ac_tool_prefix"; then 7819 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 7820 set dummy ${ac_tool_prefix}as; ac_word=$2 7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7822 $as_echo_n "checking for $ac_word... " >&6; } 7823 if ${ac_cv_prog_AS+:} false; then : 7824 $as_echo_n "(cached) " >&6 7825 else 7826 if test -n "$AS"; then 7827 ac_cv_prog_AS="$AS" # Let the user override the test. 7828 else 7829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7830 for as_dir in $PATH 7831 do 7832 IFS=$as_save_IFS 7833 test -z "$as_dir" && as_dir=. 7834 for ac_exec_ext in '' $ac_executable_extensions; do 7835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7836 ac_cv_prog_AS="${ac_tool_prefix}as" 7837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7838 break 2 7839 fi 7840 done 7841 done 7842 IFS=$as_save_IFS 7843 7844 fi 7845 fi 7846 AS=$ac_cv_prog_AS 7847 if test -n "$AS"; then 7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 7849 $as_echo "$AS" >&6; } 7850 else 7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7852 $as_echo "no" >&6; } 7853 fi 7854 7855 7856 fi 7857 if test -z "$ac_cv_prog_AS"; then 7858 ac_ct_AS=$AS 7859 # Extract the first word of "as", so it can be a program name with args. 7860 set dummy as; ac_word=$2 7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7862 $as_echo_n "checking for $ac_word... " >&6; } 7863 if ${ac_cv_prog_ac_ct_AS+:} false; then : 7864 $as_echo_n "(cached) " >&6 7865 else 7866 if test -n "$ac_ct_AS"; then 7867 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 7868 else 7869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7870 for as_dir in $PATH 7871 do 7872 IFS=$as_save_IFS 7873 test -z "$as_dir" && as_dir=. 7874 for ac_exec_ext in '' $ac_executable_extensions; do 7875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7876 ac_cv_prog_ac_ct_AS="as" 7877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7878 break 2 7879 fi 7880 done 7881 done 7882 IFS=$as_save_IFS 7883 7884 fi 7885 fi 7886 ac_ct_AS=$ac_cv_prog_ac_ct_AS 7887 if test -n "$ac_ct_AS"; then 7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 7889 $as_echo "$ac_ct_AS" >&6; } 7890 else 7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7892 $as_echo "no" >&6; } 7893 fi 7894 7895 if test "x$ac_ct_AS" = x; then 7896 AS="false" 7897 else 7898 case $cross_compiling:$ac_tool_warned in 7899 yes:) 7900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7902 ac_tool_warned=yes ;; 7903 esac 7904 AS=$ac_ct_AS 7905 fi 7906 else 7907 AS="$ac_cv_prog_AS" 7908 fi 7909 7910 if test -n "$ac_tool_prefix"; then 7911 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7912 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7914 $as_echo_n "checking for $ac_word... " >&6; } 7915 if ${ac_cv_prog_DLLTOOL+:} false; then : 7916 $as_echo_n "(cached) " >&6 7917 else 7918 if test -n "$DLLTOOL"; then 7919 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7920 else 7921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7922 for as_dir in $PATH 7923 do 7924 IFS=$as_save_IFS 7925 test -z "$as_dir" && as_dir=. 7926 for ac_exec_ext in '' $ac_executable_extensions; do 7927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7928 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7930 break 2 7931 fi 7932 done 7933 done 7934 IFS=$as_save_IFS 7935 7936 fi 7937 fi 7938 DLLTOOL=$ac_cv_prog_DLLTOOL 7939 if test -n "$DLLTOOL"; then 7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7941 $as_echo "$DLLTOOL" >&6; } 7942 else 7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7944 $as_echo "no" >&6; } 7945 fi 7946 7947 7948 fi 7949 if test -z "$ac_cv_prog_DLLTOOL"; then 7950 ac_ct_DLLTOOL=$DLLTOOL 7951 # Extract the first word of "dlltool", so it can be a program name with args. 7952 set dummy dlltool; ac_word=$2 7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7954 $as_echo_n "checking for $ac_word... " >&6; } 7955 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 7956 $as_echo_n "(cached) " >&6 7957 else 7958 if test -n "$ac_ct_DLLTOOL"; then 7959 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7960 else 7961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7962 for as_dir in $PATH 7963 do 7964 IFS=$as_save_IFS 7965 test -z "$as_dir" && as_dir=. 7966 for ac_exec_ext in '' $ac_executable_extensions; do 7967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7968 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7970 break 2 7971 fi 7972 done 7973 done 7974 IFS=$as_save_IFS 7975 7976 fi 7977 fi 7978 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7979 if test -n "$ac_ct_DLLTOOL"; then 7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7981 $as_echo "$ac_ct_DLLTOOL" >&6; } 7982 else 7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7984 $as_echo "no" >&6; } 7985 fi 7986 7987 if test "x$ac_ct_DLLTOOL" = x; then 7988 DLLTOOL="false" 7989 else 7990 case $cross_compiling:$ac_tool_warned in 7991 yes:) 7992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7994 ac_tool_warned=yes ;; 7995 esac 7996 DLLTOOL=$ac_ct_DLLTOOL 7997 fi 7998 else 7999 DLLTOOL="$ac_cv_prog_DLLTOOL" 8000 fi 8001 8002 if test -n "$ac_tool_prefix"; then 8003 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8004 set dummy ${ac_tool_prefix}objdump; ac_word=$2 8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8006 $as_echo_n "checking for $ac_word... " >&6; } 8007 if ${ac_cv_prog_OBJDUMP+:} false; then : 8008 $as_echo_n "(cached) " >&6 8009 else 8010 if test -n "$OBJDUMP"; then 8011 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8012 else 8013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8014 for as_dir in $PATH 8015 do 8016 IFS=$as_save_IFS 8017 test -z "$as_dir" && as_dir=. 8018 for ac_exec_ext in '' $ac_executable_extensions; do 8019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8020 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8022 break 2 8023 fi 8024 done 8025 done 8026 IFS=$as_save_IFS 8027 8028 fi 8029 fi 8030 OBJDUMP=$ac_cv_prog_OBJDUMP 8031 if test -n "$OBJDUMP"; then 8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8033 $as_echo "$OBJDUMP" >&6; } 8034 else 8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8036 $as_echo "no" >&6; } 8037 fi 8038 8039 8040 fi 8041 if test -z "$ac_cv_prog_OBJDUMP"; then 8042 ac_ct_OBJDUMP=$OBJDUMP 8043 # Extract the first word of "objdump", so it can be a program name with args. 8044 set dummy objdump; ac_word=$2 8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8046 $as_echo_n "checking for $ac_word... " >&6; } 8047 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8048 $as_echo_n "(cached) " >&6 8049 else 8050 if test -n "$ac_ct_OBJDUMP"; then 8051 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8052 else 8053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8054 for as_dir in $PATH 8055 do 8056 IFS=$as_save_IFS 8057 test -z "$as_dir" && as_dir=. 8058 for ac_exec_ext in '' $ac_executable_extensions; do 8059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8060 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8062 break 2 8063 fi 8064 done 8065 done 8066 IFS=$as_save_IFS 8067 8068 fi 8069 fi 8070 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8071 if test -n "$ac_ct_OBJDUMP"; then 8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8073 $as_echo "$ac_ct_OBJDUMP" >&6; } 8074 else 8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8076 $as_echo "no" >&6; } 8077 fi 8078 8079 if test "x$ac_ct_OBJDUMP" = x; then 8080 OBJDUMP="false" 8081 else 8082 case $cross_compiling:$ac_tool_warned in 8083 yes:) 8084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8086 ac_tool_warned=yes ;; 8087 esac 8088 OBJDUMP=$ac_ct_OBJDUMP 8089 fi 8090 else 8091 OBJDUMP="$ac_cv_prog_OBJDUMP" 8092 fi 8093 8094 ;; 8095 esac 8096 8097 test -z "$AS" && AS=as 8098 8099 8100 8101 8102 8103 test -z "$DLLTOOL" && DLLTOOL=dlltool 8104 8105 8106 8107 8108 8109 test -z "$OBJDUMP" && OBJDUMP=objdump 8110 8111 8112 8113 8114 8115 8116 8117 enable_dlopen=no 8118 8119 8120 8121 # Check whether --enable-shared was given. 8122 if test "${enable_shared+set}" = set; then : 8123 enableval=$enable_shared; p=${PACKAGE-default} 8124 case $enableval in 8125 yes) enable_shared=yes ;; 8126 no) enable_shared=no ;; 8127 *) 8128 enable_shared=no 8129 # Look at the argument we got. We use all the common list separators. 8130 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8131 for pkg in $enableval; do 8132 IFS="$lt_save_ifs" 8133 if test "X$pkg" = "X$p"; then 8134 enable_shared=yes 8135 fi 8136 done 8137 IFS="$lt_save_ifs" 8138 ;; 8139 esac 8140 else 8141 enable_shared=yes 8142 fi 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 # Check whether --enable-static was given. 8153 if test "${enable_static+set}" = set; then : 8154 enableval=$enable_static; p=${PACKAGE-default} 8155 case $enableval in 8156 yes) enable_static=yes ;; 8157 no) enable_static=no ;; 8158 *) 8159 enable_static=no 8160 # Look at the argument we got. We use all the common list separators. 8161 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8162 for pkg in $enableval; do 8163 IFS="$lt_save_ifs" 8164 if test "X$pkg" = "X$p"; then 8165 enable_static=yes 8166 fi 8167 done 8168 IFS="$lt_save_ifs" 8169 ;; 8170 esac 8171 else 8172 enable_static=yes 8173 fi 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 # Check whether --with-pic was given. 8185 if test "${with_pic+set}" = set; then : 8186 withval=$with_pic; lt_p=${PACKAGE-default} 8187 case $withval in 8188 yes|no) pic_mode=$withval ;; 8189 *) 8190 pic_mode=default 8191 # Look at the argument we got. We use all the common list separators. 8192 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8193 for lt_pkg in $withval; do 8194 IFS="$lt_save_ifs" 8195 if test "X$lt_pkg" = "X$lt_p"; then 8196 pic_mode=yes 8197 fi 8198 done 8199 IFS="$lt_save_ifs" 8200 ;; 8201 esac 8202 else 8203 pic_mode=default 8204 fi 8205 8206 8207 test -z "$pic_mode" && pic_mode=default 8208 8209 8210 8211 8212 8213 8214 8215 # Check whether --enable-fast-install was given. 8216 if test "${enable_fast_install+set}" = set; then : 8217 enableval=$enable_fast_install; p=${PACKAGE-default} 8218 case $enableval in 8219 yes) enable_fast_install=yes ;; 8220 no) enable_fast_install=no ;; 8221 *) 8222 enable_fast_install=no 8223 # Look at the argument we got. We use all the common list separators. 8224 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8225 for pkg in $enableval; do 8226 IFS="$lt_save_ifs" 8227 if test "X$pkg" = "X$p"; then 8228 enable_fast_install=yes 8229 fi 8230 done 8231 IFS="$lt_save_ifs" 8232 ;; 8233 esac 8234 else 8235 enable_fast_install=yes 8236 fi 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 # This can be used to rebuild libtool when needed 8249 LIBTOOL_DEPS="$ltmain" 8250 8251 # Always use our own libtool. 8252 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 test -z "$LN_S" && LN_S="ln -s" 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 if test -n "${ZSH_VERSION+set}" ; then 8299 setopt NO_GLOB_SUBST 8300 fi 8301 8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8303 $as_echo_n "checking for objdir... " >&6; } 8304 if ${lt_cv_objdir+:} false; then : 8305 $as_echo_n "(cached) " >&6 8306 else 8307 rm -f .libs 2>/dev/null 8308 mkdir .libs 2>/dev/null 8309 if test -d .libs; then 8310 lt_cv_objdir=.libs 8311 else 8312 # MS-DOS does not allow filenames that begin with a dot. 8313 lt_cv_objdir=_libs 8314 fi 8315 rmdir .libs 2>/dev/null 8316 fi 8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8318 $as_echo "$lt_cv_objdir" >&6; } 8319 objdir=$lt_cv_objdir 8320 8321 8322 8323 8324 8325 cat >>confdefs.h <<_ACEOF 8326 #define LT_OBJDIR "$lt_cv_objdir/" 8327 _ACEOF 8328 8329 8330 8331 8332 case $host_os in 8333 aix3*) 8334 # AIX sometimes has problems with the GCC collect2 program. For some 8335 # reason, if we set the COLLECT_NAMES environment variable, the problems 8336 # vanish in a puff of smoke. 8337 if test "X${COLLECT_NAMES+set}" != Xset; then 8338 COLLECT_NAMES= 8339 export COLLECT_NAMES 8340 fi 8341 ;; 8342 esac 8343 8344 # Global variables: 8345 ofile=libtool 8346 can_build_shared=yes 8347 8348 # All known linkers require a `.a' archive for static linking (except MSVC, 8349 # which needs '.lib'). 8350 libext=a 8351 8352 with_gnu_ld="$lt_cv_prog_gnu_ld" 8353 8354 old_CC="$CC" 8355 old_CFLAGS="$CFLAGS" 8356 8357 # Set sane defaults for various variables 8358 test -z "$CC" && CC=cc 8359 test -z "$LTCC" && LTCC=$CC 8360 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8361 test -z "$LD" && LD=ld 8362 test -z "$ac_objext" && ac_objext=o 8363 8364 for cc_temp in $compiler""; do 8365 case $cc_temp in 8366 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8367 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8368 \-*) ;; 8369 *) break;; 8370 esac 8371 done 8372 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8373 8374 8375 # Only perform the check for file, if the check method requires it 8376 test -z "$MAGIC_CMD" && MAGIC_CMD=file 8377 case $deplibs_check_method in 8378 file_magic*) 8379 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8381 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8382 if ${lt_cv_path_MAGIC_CMD+:} false; then : 8383 $as_echo_n "(cached) " >&6 8384 else 8385 case $MAGIC_CMD in 8386 [\\/*] | ?:[\\/]*) 8387 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8388 ;; 8389 *) 8390 lt_save_MAGIC_CMD="$MAGIC_CMD" 8391 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8392 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8393 for ac_dir in $ac_dummy; do 8394 IFS="$lt_save_ifs" 8395 test -z "$ac_dir" && ac_dir=. 8396 if test -f $ac_dir/${ac_tool_prefix}file; then 8397 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8398 if test -n "$file_magic_test_file"; then 8399 case $deplibs_check_method in 8400 "file_magic "*) 8401 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8402 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8403 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8404 $EGREP "$file_magic_regex" > /dev/null; then 8405 : 8406 else 8407 cat <<_LT_EOF 1>&2 8408 8409 *** Warning: the command libtool uses to detect shared libraries, 8410 *** $file_magic_cmd, produces output that libtool cannot recognize. 8411 *** The result is that libtool may fail to recognize shared libraries 8412 *** as such. This will affect the creation of libtool libraries that 8413 *** depend on shared libraries, but programs linked with such libtool 8414 *** libraries will work regardless of this problem. Nevertheless, you 8415 *** may want to report the problem to your system manager and/or to 8416 *** bug-libtool@gnu.org 8417 8418 _LT_EOF 8419 fi ;; 8420 esac 8421 fi 8422 break 8423 fi 8424 done 8425 IFS="$lt_save_ifs" 8426 MAGIC_CMD="$lt_save_MAGIC_CMD" 8427 ;; 8428 esac 8429 fi 8430 8431 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8432 if test -n "$MAGIC_CMD"; then 8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8434 $as_echo "$MAGIC_CMD" >&6; } 8435 else 8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8437 $as_echo "no" >&6; } 8438 fi 8439 8440 8441 8442 8443 8444 if test -z "$lt_cv_path_MAGIC_CMD"; then 8445 if test -n "$ac_tool_prefix"; then 8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8447 $as_echo_n "checking for file... " >&6; } 8448 if ${lt_cv_path_MAGIC_CMD+:} false; then : 8449 $as_echo_n "(cached) " >&6 8450 else 8451 case $MAGIC_CMD in 8452 [\\/*] | ?:[\\/]*) 8453 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8454 ;; 8455 *) 8456 lt_save_MAGIC_CMD="$MAGIC_CMD" 8457 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8458 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8459 for ac_dir in $ac_dummy; do 8460 IFS="$lt_save_ifs" 8461 test -z "$ac_dir" && ac_dir=. 8462 if test -f $ac_dir/file; then 8463 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8464 if test -n "$file_magic_test_file"; then 8465 case $deplibs_check_method in 8466 "file_magic "*) 8467 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8468 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8469 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8470 $EGREP "$file_magic_regex" > /dev/null; then 8471 : 8472 else 8473 cat <<_LT_EOF 1>&2 8474 8475 *** Warning: the command libtool uses to detect shared libraries, 8476 *** $file_magic_cmd, produces output that libtool cannot recognize. 8477 *** The result is that libtool may fail to recognize shared libraries 8478 *** as such. This will affect the creation of libtool libraries that 8479 *** depend on shared libraries, but programs linked with such libtool 8480 *** libraries will work regardless of this problem. Nevertheless, you 8481 *** may want to report the problem to your system manager and/or to 8482 *** bug-libtool@gnu.org 8483 8484 _LT_EOF 8485 fi ;; 8486 esac 8487 fi 8488 break 8489 fi 8490 done 8491 IFS="$lt_save_ifs" 8492 MAGIC_CMD="$lt_save_MAGIC_CMD" 8493 ;; 8494 esac 8495 fi 8496 8497 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8498 if test -n "$MAGIC_CMD"; then 8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8500 $as_echo "$MAGIC_CMD" >&6; } 8501 else 8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8503 $as_echo "no" >&6; } 8504 fi 8505 8506 8507 else 8508 MAGIC_CMD=: 8509 fi 8510 fi 8511 8512 fi 8513 ;; 8514 esac 8515 8516 # Use C for the default configuration in the libtool script 8517 8518 lt_save_CC="$CC" 8519 ac_ext=c 8520 ac_cpp='$CPP $CPPFLAGS' 8521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8523 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8524 8525 8526 # Source file extension for C test sources. 8527 ac_ext=c 8528 8529 # Object file extension for compiled C test sources. 8530 objext=o 8531 objext=$objext 8532 8533 # Code to be used in simple compile tests 8534 lt_simple_compile_test_code="int some_variable = 0;" 8535 8536 # Code to be used in simple link tests 8537 lt_simple_link_test_code='int main(){return(0);}' 8538 8539 8540 8541 8542 8543 8544 8545 # If no C compiler was specified, use CC. 8546 LTCC=${LTCC-"$CC"} 8547 8548 # If no C compiler flags were specified, use CFLAGS. 8549 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8550 8551 # Allow CC to be a program name with arguments. 8552 compiler=$CC 8553 8554 # Save the default compiler, since it gets overwritten when the other 8555 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8556 compiler_DEFAULT=$CC 8557 8558 # save warnings/boilerplate of simple test code 8559 ac_outfile=conftest.$ac_objext 8560 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8561 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8562 _lt_compiler_boilerplate=`cat conftest.err` 8563 $RM conftest* 8564 8565 ac_outfile=conftest.$ac_objext 8566 echo "$lt_simple_link_test_code" >conftest.$ac_ext 8567 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8568 _lt_linker_boilerplate=`cat conftest.err` 8569 $RM -r conftest* 8570 8571 8572 ## CAVEAT EMPTOR: 8573 ## There is no encapsulation within the following macros, do not change 8574 ## the running order or otherwise move them around unless you know exactly 8575 ## what you are doing... 8576 if test -n "$compiler"; then 8577 8578 lt_prog_compiler_no_builtin_flag= 8579 8580 if test "$GCC" = yes; then 8581 case $cc_basename in 8582 nvcc*) 8583 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8584 *) 8585 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8586 esac 8587 8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8589 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8590 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8591 $as_echo_n "(cached) " >&6 8592 else 8593 lt_cv_prog_compiler_rtti_exceptions=no 8594 ac_outfile=conftest.$ac_objext 8595 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8596 lt_compiler_flag="-fno-rtti -fno-exceptions" 8597 # Insert the option either (1) after the last *FLAGS variable, or 8598 # (2) before a word containing "conftest.", or (3) at the end. 8599 # Note that $ac_compile itself does not contain backslashes and begins 8600 # with a dollar sign (not a hyphen), so the echo should work correctly. 8601 # The option is referenced via a variable to avoid confusing sed. 8602 lt_compile=`echo "$ac_compile" | $SED \ 8603 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8604 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8605 -e 's:$: $lt_compiler_flag:'` 8606 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8607 (eval "$lt_compile" 2>conftest.err) 8608 ac_status=$? 8609 cat conftest.err >&5 8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8611 if (exit $ac_status) && test -s "$ac_outfile"; then 8612 # The compiler can only warn and ignore the option if not recognized 8613 # So say no if there are warnings other than the usual output. 8614 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8615 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8616 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8617 lt_cv_prog_compiler_rtti_exceptions=yes 8618 fi 8619 fi 8620 $RM conftest* 8621 8622 fi 8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8624 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8625 8626 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8627 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8628 else 8629 : 8630 fi 8631 8632 fi 8633 8634 8635 8636 8637 8638 8639 lt_prog_compiler_wl= 8640 lt_prog_compiler_pic= 8641 lt_prog_compiler_static= 8642 8643 8644 if test "$GCC" = yes; then 8645 lt_prog_compiler_wl='-Wl,' 8646 lt_prog_compiler_static='-static' 8647 8648 case $host_os in 8649 aix*) 8650 # All AIX code is PIC. 8651 if test "$host_cpu" = ia64; then 8652 # AIX 5 now supports IA64 processor 8653 lt_prog_compiler_static='-Bstatic' 8654 fi 8655 ;; 8656 8657 amigaos*) 8658 case $host_cpu in 8659 powerpc) 8660 # see comment about AmigaOS4 .so support 8661 lt_prog_compiler_pic='-fPIC' 8662 ;; 8663 m68k) 8664 # FIXME: we need at least 68020 code to build shared libraries, but 8665 # adding the `-m68020' flag to GCC prevents building anything better, 8666 # like `-m68040'. 8667 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8668 ;; 8669 esac 8670 ;; 8671 8672 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8673 # PIC is the default for these OSes. 8674 ;; 8675 8676 mingw* | cygwin* | pw32* | os2* | cegcc*) 8677 # This hack is so that the source file can tell whether it is being 8678 # built for inclusion in a dll (and should export symbols for example). 8679 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8680 # (--disable-auto-import) libraries 8681 lt_prog_compiler_pic='-DDLL_EXPORT' 8682 ;; 8683 8684 darwin* | rhapsody*) 8685 # PIC is the default on this platform 8686 # Common symbols not allowed in MH_DYLIB files 8687 lt_prog_compiler_pic='-fno-common' 8688 ;; 8689 8690 haiku*) 8691 # PIC is the default for Haiku. 8692 # The "-static" flag exists, but is broken. 8693 lt_prog_compiler_static= 8694 ;; 8695 8696 hpux*) 8697 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8698 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8699 # sets the default TLS model and affects inlining. 8700 case $host_cpu in 8701 hppa*64*) 8702 # +Z the default 8703 ;; 8704 *) 8705 lt_prog_compiler_pic='-fPIC' 8706 ;; 8707 esac 8708 ;; 8709 8710 interix[3-9]*) 8711 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8712 # Instead, we relocate shared libraries at runtime. 8713 ;; 8714 8715 msdosdjgpp*) 8716 # Just because we use GCC doesn't mean we suddenly get shared libraries 8717 # on systems that don't support them. 8718 lt_prog_compiler_can_build_shared=no 8719 enable_shared=no 8720 ;; 8721 8722 *nto* | *qnx*) 8723 # QNX uses GNU C++, but need to define -shared option too, otherwise 8724 # it will coredump. 8725 lt_prog_compiler_pic='-fPIC -shared' 8726 ;; 8727 8728 sysv4*MP*) 8729 if test -d /usr/nec; then 8730 lt_prog_compiler_pic=-Kconform_pic 8731 fi 8732 ;; 8733 8734 *) 8735 lt_prog_compiler_pic='-fPIC' 8736 ;; 8737 esac 8738 8739 case $cc_basename in 8740 nvcc*) # Cuda Compiler Driver 2.2 8741 lt_prog_compiler_wl='-Xlinker ' 8742 if test -n "$lt_prog_compiler_pic"; then 8743 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8744 fi 8745 ;; 8746 esac 8747 else 8748 # PORTME Check for flag to pass linker flags through the system compiler. 8749 case $host_os in 8750 aix*) 8751 lt_prog_compiler_wl='-Wl,' 8752 if test "$host_cpu" = ia64; then 8753 # AIX 5 now supports IA64 processor 8754 lt_prog_compiler_static='-Bstatic' 8755 else 8756 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8757 fi 8758 ;; 8759 8760 mingw* | cygwin* | pw32* | os2* | cegcc*) 8761 # This hack is so that the source file can tell whether it is being 8762 # built for inclusion in a dll (and should export symbols for example). 8763 lt_prog_compiler_pic='-DDLL_EXPORT' 8764 ;; 8765 8766 hpux9* | hpux10* | hpux11*) 8767 lt_prog_compiler_wl='-Wl,' 8768 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8769 # not for PA HP-UX. 8770 case $host_cpu in 8771 hppa*64*|ia64*) 8772 # +Z the default 8773 ;; 8774 *) 8775 lt_prog_compiler_pic='+Z' 8776 ;; 8777 esac 8778 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8779 lt_prog_compiler_static='${wl}-a ${wl}archive' 8780 ;; 8781 8782 irix5* | irix6* | nonstopux*) 8783 lt_prog_compiler_wl='-Wl,' 8784 # PIC (with -KPIC) is the default. 8785 lt_prog_compiler_static='-non_shared' 8786 ;; 8787 8788 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8789 case $cc_basename in 8790 # old Intel for x86_64 which still supported -KPIC. 8791 ecc*) 8792 lt_prog_compiler_wl='-Wl,' 8793 lt_prog_compiler_pic='-KPIC' 8794 lt_prog_compiler_static='-static' 8795 ;; 8796 # icc used to be incompatible with GCC. 8797 # ICC 10 doesn't accept -KPIC any more. 8798 icc* | ifort*) 8799 lt_prog_compiler_wl='-Wl,' 8800 lt_prog_compiler_pic='-fPIC' 8801 lt_prog_compiler_static='-static' 8802 ;; 8803 # Lahey Fortran 8.1. 8804 lf95*) 8805 lt_prog_compiler_wl='-Wl,' 8806 lt_prog_compiler_pic='--shared' 8807 lt_prog_compiler_static='--static' 8808 ;; 8809 nagfor*) 8810 # NAG Fortran compiler 8811 lt_prog_compiler_wl='-Wl,-Wl,,' 8812 lt_prog_compiler_pic='-PIC' 8813 lt_prog_compiler_static='-Bstatic' 8814 ;; 8815 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8816 # Portland Group compilers (*not* the Pentium gcc compiler, 8817 # which looks to be a dead project) 8818 lt_prog_compiler_wl='-Wl,' 8819 lt_prog_compiler_pic='-fpic' 8820 lt_prog_compiler_static='-Bstatic' 8821 ;; 8822 ccc*) 8823 lt_prog_compiler_wl='-Wl,' 8824 # All Alpha code is PIC. 8825 lt_prog_compiler_static='-non_shared' 8826 ;; 8827 xl* | bgxl* | bgf* | mpixl*) 8828 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8829 lt_prog_compiler_wl='-Wl,' 8830 lt_prog_compiler_pic='-qpic' 8831 lt_prog_compiler_static='-qstaticlink' 8832 ;; 8833 *) 8834 case `$CC -V 2>&1 | sed 5q` in 8835 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8836 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8837 lt_prog_compiler_pic='-KPIC' 8838 lt_prog_compiler_static='-Bstatic' 8839 lt_prog_compiler_wl='' 8840 ;; 8841 *Sun\ F* | *Sun*Fortran*) 8842 lt_prog_compiler_pic='-KPIC' 8843 lt_prog_compiler_static='-Bstatic' 8844 lt_prog_compiler_wl='-Qoption ld ' 8845 ;; 8846 *Sun\ C*) 8847 # Sun C 5.9 8848 lt_prog_compiler_pic='-KPIC' 8849 lt_prog_compiler_static='-Bstatic' 8850 lt_prog_compiler_wl='-Wl,' 8851 ;; 8852 *Intel*\ [CF]*Compiler*) 8853 lt_prog_compiler_wl='-Wl,' 8854 lt_prog_compiler_pic='-fPIC' 8855 lt_prog_compiler_static='-static' 8856 ;; 8857 *Portland\ Group*) 8858 lt_prog_compiler_wl='-Wl,' 8859 lt_prog_compiler_pic='-fpic' 8860 lt_prog_compiler_static='-Bstatic' 8861 ;; 8862 esac 8863 ;; 8864 esac 8865 ;; 8866 8867 newsos6) 8868 lt_prog_compiler_pic='-KPIC' 8869 lt_prog_compiler_static='-Bstatic' 8870 ;; 8871 8872 *nto* | *qnx*) 8873 # QNX uses GNU C++, but need to define -shared option too, otherwise 8874 # it will coredump. 8875 lt_prog_compiler_pic='-fPIC -shared' 8876 ;; 8877 8878 osf3* | osf4* | osf5*) 8879 lt_prog_compiler_wl='-Wl,' 8880 # All OSF/1 code is PIC. 8881 lt_prog_compiler_static='-non_shared' 8882 ;; 8883 8884 rdos*) 8885 lt_prog_compiler_static='-non_shared' 8886 ;; 8887 8888 solaris*) 8889 lt_prog_compiler_pic='-KPIC' 8890 lt_prog_compiler_static='-Bstatic' 8891 case $cc_basename in 8892 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8893 lt_prog_compiler_wl='-Qoption ld ';; 8894 *) 8895 lt_prog_compiler_wl='-Wl,';; 8896 esac 8897 ;; 8898 8899 sunos4*) 8900 lt_prog_compiler_wl='-Qoption ld ' 8901 lt_prog_compiler_pic='-PIC' 8902 lt_prog_compiler_static='-Bstatic' 8903 ;; 8904 8905 sysv4 | sysv4.2uw2* | sysv4.3*) 8906 lt_prog_compiler_wl='-Wl,' 8907 lt_prog_compiler_pic='-KPIC' 8908 lt_prog_compiler_static='-Bstatic' 8909 ;; 8910 8911 sysv4*MP*) 8912 if test -d /usr/nec ;then 8913 lt_prog_compiler_pic='-Kconform_pic' 8914 lt_prog_compiler_static='-Bstatic' 8915 fi 8916 ;; 8917 8918 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8919 lt_prog_compiler_wl='-Wl,' 8920 lt_prog_compiler_pic='-KPIC' 8921 lt_prog_compiler_static='-Bstatic' 8922 ;; 8923 8924 unicos*) 8925 lt_prog_compiler_wl='-Wl,' 8926 lt_prog_compiler_can_build_shared=no 8927 ;; 8928 8929 uts4*) 8930 lt_prog_compiler_pic='-pic' 8931 lt_prog_compiler_static='-Bstatic' 8932 ;; 8933 8934 *) 8935 lt_prog_compiler_can_build_shared=no 8936 ;; 8937 esac 8938 fi 8939 8940 case $host_os in 8941 # For platforms which do not support PIC, -DPIC is meaningless: 8942 *djgpp*) 8943 lt_prog_compiler_pic= 8944 ;; 8945 *) 8946 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8947 ;; 8948 esac 8949 8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8951 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8952 if ${lt_cv_prog_compiler_pic+:} false; then : 8953 $as_echo_n "(cached) " >&6 8954 else 8955 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8956 fi 8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8958 $as_echo "$lt_cv_prog_compiler_pic" >&6; } 8959 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8960 8961 # 8962 # Check to make sure the PIC flag actually works. 8963 # 8964 if test -n "$lt_prog_compiler_pic"; then 8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8966 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8967 if ${lt_cv_prog_compiler_pic_works+:} false; then : 8968 $as_echo_n "(cached) " >&6 8969 else 8970 lt_cv_prog_compiler_pic_works=no 8971 ac_outfile=conftest.$ac_objext 8972 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8973 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8974 # Insert the option either (1) after the last *FLAGS variable, or 8975 # (2) before a word containing "conftest.", or (3) at the end. 8976 # Note that $ac_compile itself does not contain backslashes and begins 8977 # with a dollar sign (not a hyphen), so the echo should work correctly. 8978 # The option is referenced via a variable to avoid confusing sed. 8979 lt_compile=`echo "$ac_compile" | $SED \ 8980 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8981 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8982 -e 's:$: $lt_compiler_flag:'` 8983 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8984 (eval "$lt_compile" 2>conftest.err) 8985 ac_status=$? 8986 cat conftest.err >&5 8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8988 if (exit $ac_status) && test -s "$ac_outfile"; then 8989 # The compiler can only warn and ignore the option if not recognized 8990 # So say no if there are warnings other than the usual output. 8991 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8992 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8993 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8994 lt_cv_prog_compiler_pic_works=yes 8995 fi 8996 fi 8997 $RM conftest* 8998 8999 fi 9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9001 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9002 9003 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9004 case $lt_prog_compiler_pic in 9005 "" | " "*) ;; 9006 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9007 esac 9008 else 9009 lt_prog_compiler_pic= 9010 lt_prog_compiler_can_build_shared=no 9011 fi 9012 9013 fi 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 # 9026 # Check to make sure the static flag actually works. 9027 # 9028 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9030 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9031 if ${lt_cv_prog_compiler_static_works+:} false; then : 9032 $as_echo_n "(cached) " >&6 9033 else 9034 lt_cv_prog_compiler_static_works=no 9035 save_LDFLAGS="$LDFLAGS" 9036 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9037 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9038 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9039 # The linker can only warn and ignore the option if not recognized 9040 # So say no if there are warnings 9041 if test -s conftest.err; then 9042 # Append any errors to the config.log. 9043 cat conftest.err 1>&5 9044 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9045 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9046 if diff conftest.exp conftest.er2 >/dev/null; then 9047 lt_cv_prog_compiler_static_works=yes 9048 fi 9049 else 9050 lt_cv_prog_compiler_static_works=yes 9051 fi 9052 fi 9053 $RM -r conftest* 9054 LDFLAGS="$save_LDFLAGS" 9055 9056 fi 9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9058 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9059 9060 if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9061 : 9062 else 9063 lt_prog_compiler_static= 9064 fi 9065 9066 9067 9068 9069 9070 9071 9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9073 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9074 if ${lt_cv_prog_compiler_c_o+:} false; then : 9075 $as_echo_n "(cached) " >&6 9076 else 9077 lt_cv_prog_compiler_c_o=no 9078 $RM -r conftest 2>/dev/null 9079 mkdir conftest 9080 cd conftest 9081 mkdir out 9082 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9083 9084 lt_compiler_flag="-o out/conftest2.$ac_objext" 9085 # Insert the option either (1) after the last *FLAGS variable, or 9086 # (2) before a word containing "conftest.", or (3) at the end. 9087 # Note that $ac_compile itself does not contain backslashes and begins 9088 # with a dollar sign (not a hyphen), so the echo should work correctly. 9089 lt_compile=`echo "$ac_compile" | $SED \ 9090 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9091 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9092 -e 's:$: $lt_compiler_flag:'` 9093 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9094 (eval "$lt_compile" 2>out/conftest.err) 9095 ac_status=$? 9096 cat out/conftest.err >&5 9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9098 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9099 then 9100 # The compiler can only warn and ignore the option if not recognized 9101 # So say no if there are warnings 9102 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9103 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9104 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9105 lt_cv_prog_compiler_c_o=yes 9106 fi 9107 fi 9108 chmod u+w . 2>&5 9109 $RM conftest* 9110 # SGI C++ compiler will create directory out/ii_files/ for 9111 # template instantiation 9112 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9113 $RM out/* && rmdir out 9114 cd .. 9115 $RM -r conftest 9116 $RM conftest* 9117 9118 fi 9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9120 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9121 9122 9123 9124 9125 9126 9127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9128 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9129 if ${lt_cv_prog_compiler_c_o+:} false; then : 9130 $as_echo_n "(cached) " >&6 9131 else 9132 lt_cv_prog_compiler_c_o=no 9133 $RM -r conftest 2>/dev/null 9134 mkdir conftest 9135 cd conftest 9136 mkdir out 9137 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9138 9139 lt_compiler_flag="-o out/conftest2.$ac_objext" 9140 # Insert the option either (1) after the last *FLAGS variable, or 9141 # (2) before a word containing "conftest.", or (3) at the end. 9142 # Note that $ac_compile itself does not contain backslashes and begins 9143 # with a dollar sign (not a hyphen), so the echo should work correctly. 9144 lt_compile=`echo "$ac_compile" | $SED \ 9145 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9146 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9147 -e 's:$: $lt_compiler_flag:'` 9148 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9149 (eval "$lt_compile" 2>out/conftest.err) 9150 ac_status=$? 9151 cat out/conftest.err >&5 9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9153 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9154 then 9155 # The compiler can only warn and ignore the option if not recognized 9156 # So say no if there are warnings 9157 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9158 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9159 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9160 lt_cv_prog_compiler_c_o=yes 9161 fi 9162 fi 9163 chmod u+w . 2>&5 9164 $RM conftest* 9165 # SGI C++ compiler will create directory out/ii_files/ for 9166 # template instantiation 9167 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9168 $RM out/* && rmdir out 9169 cd .. 9170 $RM -r conftest 9171 $RM conftest* 9172 9173 fi 9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9175 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9176 9177 9178 9179 9180 hard_links="nottested" 9181 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9182 # do not overwrite the value of need_locks provided by the user 9183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9184 $as_echo_n "checking if we can lock with hard links... " >&6; } 9185 hard_links=yes 9186 $RM conftest* 9187 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9188 touch conftest.a 9189 ln conftest.a conftest.b 2>&5 || hard_links=no 9190 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9192 $as_echo "$hard_links" >&6; } 9193 if test "$hard_links" = no; then 9194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9195 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9196 need_locks=warn 9197 fi 9198 else 9199 need_locks=no 9200 fi 9201 9202 9203 9204 9205 9206 9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9208 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9209 9210 runpath_var= 9211 allow_undefined_flag= 9212 always_export_symbols=no 9213 archive_cmds= 9214 archive_expsym_cmds= 9215 compiler_needs_object=no 9216 enable_shared_with_static_runtimes=no 9217 export_dynamic_flag_spec= 9218 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9219 hardcode_automatic=no 9220 hardcode_direct=no 9221 hardcode_direct_absolute=no 9222 hardcode_libdir_flag_spec= 9223 hardcode_libdir_separator= 9224 hardcode_minus_L=no 9225 hardcode_shlibpath_var=unsupported 9226 inherit_rpath=no 9227 link_all_deplibs=unknown 9228 module_cmds= 9229 module_expsym_cmds= 9230 old_archive_from_new_cmds= 9231 old_archive_from_expsyms_cmds= 9232 thread_safe_flag_spec= 9233 whole_archive_flag_spec= 9234 # include_expsyms should be a list of space-separated symbols to be *always* 9235 # included in the symbol list 9236 include_expsyms= 9237 # exclude_expsyms can be an extended regexp of symbols to exclude 9238 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9239 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9240 # as well as any symbol that contains `d'. 9241 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9242 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9243 # platforms (ab)use it in PIC code, but their linkers get confused if 9244 # the symbol is explicitly referenced. Since portable code cannot 9245 # rely on this symbol name, it's probably fine to never include it in 9246 # preloaded symbol tables. 9247 # Exclude shared library initialization/finalization symbols. 9248 extract_expsyms_cmds= 9249 9250 case $host_os in 9251 cygwin* | mingw* | pw32* | cegcc*) 9252 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9253 # When not using gcc, we currently assume that we are using 9254 # Microsoft Visual C++. 9255 if test "$GCC" != yes; then 9256 with_gnu_ld=no 9257 fi 9258 ;; 9259 interix*) 9260 # we just hope/assume this is gcc and not c89 (= MSVC++) 9261 with_gnu_ld=yes 9262 ;; 9263 openbsd*) 9264 with_gnu_ld=no 9265 ;; 9266 linux* | k*bsd*-gnu | gnu*) 9267 link_all_deplibs=no 9268 ;; 9269 esac 9270 9271 ld_shlibs=yes 9272 9273 # On some targets, GNU ld is compatible enough with the native linker 9274 # that we're better off using the native interface for both. 9275 lt_use_gnu_ld_interface=no 9276 if test "$with_gnu_ld" = yes; then 9277 case $host_os in 9278 aix*) 9279 # The AIX port of GNU ld has always aspired to compatibility 9280 # with the native linker. However, as the warning in the GNU ld 9281 # block says, versions before 2.19.5* couldn't really create working 9282 # shared libraries, regardless of the interface used. 9283 case `$LD -v 2>&1` in 9284 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9285 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9286 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9287 *) 9288 lt_use_gnu_ld_interface=yes 9289 ;; 9290 esac 9291 ;; 9292 *) 9293 lt_use_gnu_ld_interface=yes 9294 ;; 9295 esac 9296 fi 9297 9298 if test "$lt_use_gnu_ld_interface" = yes; then 9299 # If archive_cmds runs LD, not CC, wlarc should be empty 9300 wlarc='${wl}' 9301 9302 # Set some defaults for GNU ld with shared library support. These 9303 # are reset later if shared libraries are not supported. Putting them 9304 # here allows them to be overridden if necessary. 9305 runpath_var=LD_RUN_PATH 9306 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9307 export_dynamic_flag_spec='${wl}--export-dynamic' 9308 # ancient GNU ld didn't support --whole-archive et. al. 9309 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9310 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9311 else 9312 whole_archive_flag_spec= 9313 fi 9314 supports_anon_versioning=no 9315 case `$LD -v 2>&1` in 9316 *GNU\ gold*) supports_anon_versioning=yes ;; 9317 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9318 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9319 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9320 *\ 2.11.*) ;; # other 2.11 versions 9321 *) supports_anon_versioning=yes ;; 9322 esac 9323 9324 # See if GNU ld supports shared libraries. 9325 case $host_os in 9326 aix[3-9]*) 9327 # On AIX/PPC, the GNU linker is very broken 9328 if test "$host_cpu" != ia64; then 9329 ld_shlibs=no 9330 cat <<_LT_EOF 1>&2 9331 9332 *** Warning: the GNU linker, at least up to release 2.19, is reported 9333 *** to be unable to reliably create shared libraries on AIX. 9334 *** Therefore, libtool is disabling shared libraries support. If you 9335 *** really care for shared libraries, you may want to install binutils 9336 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9337 *** You will then need to restart the configuration process. 9338 9339 _LT_EOF 9340 fi 9341 ;; 9342 9343 amigaos*) 9344 case $host_cpu in 9345 powerpc) 9346 # see comment about AmigaOS4 .so support 9347 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9348 archive_expsym_cmds='' 9349 ;; 9350 m68k) 9351 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)' 9352 hardcode_libdir_flag_spec='-L$libdir' 9353 hardcode_minus_L=yes 9354 ;; 9355 esac 9356 ;; 9357 9358 beos*) 9359 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9360 allow_undefined_flag=unsupported 9361 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 9362 # support --undefined. This deserves some investigation. FIXME 9363 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9364 else 9365 ld_shlibs=no 9366 fi 9367 ;; 9368 9369 cygwin* | mingw* | pw32* | cegcc*) 9370 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9371 # as there is no search path for DLLs. 9372 hardcode_libdir_flag_spec='-L$libdir' 9373 export_dynamic_flag_spec='${wl}--export-all-symbols' 9374 allow_undefined_flag=unsupported 9375 always_export_symbols=no 9376 enable_shared_with_static_runtimes=yes 9377 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' 9378 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9379 9380 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9381 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9382 # If the export-symbols file already is a .def file (1st line 9383 # is EXPORTS), use it as is; otherwise, prepend... 9384 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9385 cp $export_symbols $output_objdir/$soname.def; 9386 else 9387 echo EXPORTS > $output_objdir/$soname.def; 9388 cat $export_symbols >> $output_objdir/$soname.def; 9389 fi~ 9390 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9391 else 9392 ld_shlibs=no 9393 fi 9394 ;; 9395 9396 haiku*) 9397 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9398 link_all_deplibs=yes 9399 ;; 9400 9401 interix[3-9]*) 9402 hardcode_direct=no 9403 hardcode_shlibpath_var=no 9404 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9405 export_dynamic_flag_spec='${wl}-E' 9406 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9407 # Instead, shared libraries are loaded at an image base (0x10000000 by 9408 # default) and relocated if they conflict, which is a slow very memory 9409 # consuming and fragmenting process. To avoid this, we pick a random, 9410 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9411 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9412 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9413 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' 9414 ;; 9415 9416 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9417 tmp_diet=no 9418 if test "$host_os" = linux-dietlibc; then 9419 case $cc_basename in 9420 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9421 esac 9422 fi 9423 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9424 && test "$tmp_diet" = no 9425 then 9426 tmp_addflag=' $pic_flag' 9427 tmp_sharedflag='-shared' 9428 case $cc_basename,$host_cpu in 9429 pgcc*) # Portland Group C compiler 9430 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' 9431 tmp_addflag=' $pic_flag' 9432 ;; 9433 pgf77* | pgf90* | pgf95* | pgfortran*) 9434 # Portland Group f77 and f90 compilers 9435 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' 9436 tmp_addflag=' $pic_flag -Mnomain' ;; 9437 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9438 tmp_addflag=' -i_dynamic' ;; 9439 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9440 tmp_addflag=' -i_dynamic -nofor_main' ;; 9441 ifc* | ifort*) # Intel Fortran compiler 9442 tmp_addflag=' -nofor_main' ;; 9443 lf95*) # Lahey Fortran 8.1 9444 whole_archive_flag_spec= 9445 tmp_sharedflag='--shared' ;; 9446 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9447 tmp_sharedflag='-qmkshrobj' 9448 tmp_addflag= ;; 9449 nvcc*) # Cuda Compiler Driver 2.2 9450 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' 9451 compiler_needs_object=yes 9452 ;; 9453 esac 9454 case `$CC -V 2>&1 | sed 5q` in 9455 *Sun\ C*) # Sun C 5.9 9456 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' 9457 compiler_needs_object=yes 9458 tmp_sharedflag='-G' ;; 9459 *Sun\ F*) # Sun Fortran 8.3 9460 tmp_sharedflag='-G' ;; 9461 esac 9462 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9463 9464 if test "x$supports_anon_versioning" = xyes; then 9465 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9466 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9467 echo "local: *; };" >> $output_objdir/$libname.ver~ 9468 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9469 fi 9470 9471 case $cc_basename in 9472 xlf* | bgf* | bgxlf* | mpixlf*) 9473 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9474 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9475 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9476 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9477 if test "x$supports_anon_versioning" = xyes; then 9478 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9479 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9480 echo "local: *; };" >> $output_objdir/$libname.ver~ 9481 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9482 fi 9483 ;; 9484 esac 9485 else 9486 ld_shlibs=no 9487 fi 9488 ;; 9489 9490 netbsd* | netbsdelf*-gnu) 9491 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9492 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9493 wlarc= 9494 else 9495 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9496 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9497 fi 9498 ;; 9499 9500 solaris*) 9501 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9502 ld_shlibs=no 9503 cat <<_LT_EOF 1>&2 9504 9505 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 9506 *** create shared libraries on Solaris systems. Therefore, libtool 9507 *** is disabling shared libraries support. We urge you to upgrade GNU 9508 *** binutils to release 2.9.1 or newer. Another option is to modify 9509 *** your PATH or compiler configuration so that the native linker is 9510 *** used, and then restart. 9511 9512 _LT_EOF 9513 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9514 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9515 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9516 else 9517 ld_shlibs=no 9518 fi 9519 ;; 9520 9521 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9522 case `$LD -v 2>&1` in 9523 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9524 ld_shlibs=no 9525 cat <<_LT_EOF 1>&2 9526 9527 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9528 *** reliably create shared libraries on SCO systems. Therefore, libtool 9529 *** is disabling shared libraries support. We urge you to upgrade GNU 9530 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9531 *** your PATH or compiler configuration so that the native linker is 9532 *** used, and then restart. 9533 9534 _LT_EOF 9535 ;; 9536 *) 9537 # For security reasons, it is highly recommended that you always 9538 # use absolute paths for naming shared libraries, and exclude the 9539 # DT_RUNPATH tag from executables and libraries. But doing so 9540 # requires that you compile everything twice, which is a pain. 9541 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9542 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9543 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9544 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9545 else 9546 ld_shlibs=no 9547 fi 9548 ;; 9549 esac 9550 ;; 9551 9552 sunos4*) 9553 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9554 wlarc= 9555 hardcode_direct=yes 9556 hardcode_shlibpath_var=no 9557 ;; 9558 9559 *) 9560 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9561 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9562 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9563 else 9564 ld_shlibs=no 9565 fi 9566 ;; 9567 esac 9568 9569 if test "$ld_shlibs" = no; then 9570 runpath_var= 9571 hardcode_libdir_flag_spec= 9572 export_dynamic_flag_spec= 9573 whole_archive_flag_spec= 9574 fi 9575 else 9576 # PORTME fill in a description of your system's linker (not GNU ld) 9577 case $host_os in 9578 aix3*) 9579 allow_undefined_flag=unsupported 9580 always_export_symbols=yes 9581 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' 9582 # Note: this linker hardcodes the directories in LIBPATH if there 9583 # are no directories specified by -L. 9584 hardcode_minus_L=yes 9585 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9586 # Neither direct hardcoding nor static linking is supported with a 9587 # broken collect2. 9588 hardcode_direct=unsupported 9589 fi 9590 ;; 9591 9592 aix[4-9]*) 9593 if test "$host_cpu" = ia64; then 9594 # On IA64, the linker does run time linking by default, so we don't 9595 # have to do anything special. 9596 aix_use_runtimelinking=no 9597 exp_sym_flag='-Bexport' 9598 no_entry_flag="" 9599 else 9600 # If we're using GNU nm, then we don't want the "-C" option. 9601 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9602 # Also, AIX nm treats weak defined symbols like other global 9603 # defined symbols, whereas GNU nm marks them as "W". 9604 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9605 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9606 else 9607 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9608 fi 9609 aix_use_runtimelinking=no 9610 9611 # Test if we are trying to use run time linking or normal 9612 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9613 # need to do runtime linking. 9614 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9615 for ld_flag in $LDFLAGS; do 9616 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9617 aix_use_runtimelinking=yes 9618 break 9619 fi 9620 done 9621 ;; 9622 esac 9623 9624 exp_sym_flag='-bexport' 9625 no_entry_flag='-bnoentry' 9626 fi 9627 9628 # When large executables or shared objects are built, AIX ld can 9629 # have problems creating the table of contents. If linking a library 9630 # or program results in "error TOC overflow" add -mminimal-toc to 9631 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9632 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9633 9634 archive_cmds='' 9635 hardcode_direct=yes 9636 hardcode_direct_absolute=yes 9637 hardcode_libdir_separator=':' 9638 link_all_deplibs=yes 9639 file_list_spec='${wl}-f,' 9640 9641 if test "$GCC" = yes; then 9642 case $host_os in aix4.[012]|aix4.[012].*) 9643 # We only want to do this on AIX 4.2 and lower, the check 9644 # below for broken collect2 doesn't work under 4.3+ 9645 collect2name=`${CC} -print-prog-name=collect2` 9646 if test -f "$collect2name" && 9647 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9648 then 9649 # We have reworked collect2 9650 : 9651 else 9652 # We have old collect2 9653 hardcode_direct=unsupported 9654 # It fails to find uninstalled libraries when the uninstalled 9655 # path is not listed in the libpath. Setting hardcode_minus_L 9656 # to unsupported forces relinking 9657 hardcode_minus_L=yes 9658 hardcode_libdir_flag_spec='-L$libdir' 9659 hardcode_libdir_separator= 9660 fi 9661 ;; 9662 esac 9663 shared_flag='-shared' 9664 if test "$aix_use_runtimelinking" = yes; then 9665 shared_flag="$shared_flag "'${wl}-G' 9666 fi 9667 link_all_deplibs=no 9668 else 9669 # not using gcc 9670 if test "$host_cpu" = ia64; then 9671 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9672 # chokes on -Wl,-G. The following line is correct: 9673 shared_flag='-G' 9674 else 9675 if test "$aix_use_runtimelinking" = yes; then 9676 shared_flag='${wl}-G' 9677 else 9678 shared_flag='${wl}-bM:SRE' 9679 fi 9680 fi 9681 fi 9682 9683 export_dynamic_flag_spec='${wl}-bexpall' 9684 # It seems that -bexpall does not export symbols beginning with 9685 # underscore (_), so it is better to generate a list of symbols to export. 9686 always_export_symbols=yes 9687 if test "$aix_use_runtimelinking" = yes; then 9688 # Warning - without using the other runtime loading flags (-brtl), 9689 # -berok will link without error, but may produce a broken library. 9690 allow_undefined_flag='-berok' 9691 # Determine the default libpath from the value encoded in an 9692 # empty executable. 9693 if test "${lt_cv_aix_libpath+set}" = set; then 9694 aix_libpath=$lt_cv_aix_libpath 9695 else 9696 if ${lt_cv_aix_libpath_+:} false; then : 9697 $as_echo_n "(cached) " >&6 9698 else 9699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9700 /* end confdefs.h. */ 9701 9702 int 9703 main () 9704 { 9705 9706 ; 9707 return 0; 9708 } 9709 _ACEOF 9710 if ac_fn_c_try_link "$LINENO"; then : 9711 9712 lt_aix_libpath_sed=' 9713 /Import File Strings/,/^$/ { 9714 /^0/ { 9715 s/^0 *\([^ ]*\) *$/\1/ 9716 p 9717 } 9718 }' 9719 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9720 # Check for a 64-bit object if we didn't find anything. 9721 if test -z "$lt_cv_aix_libpath_"; then 9722 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9723 fi 9724 fi 9725 rm -f core conftest.err conftest.$ac_objext \ 9726 conftest$ac_exeext conftest.$ac_ext 9727 if test -z "$lt_cv_aix_libpath_"; then 9728 lt_cv_aix_libpath_="/usr/lib:/lib" 9729 fi 9730 9731 fi 9732 9733 aix_libpath=$lt_cv_aix_libpath_ 9734 fi 9735 9736 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9737 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9738 else 9739 if test "$host_cpu" = ia64; then 9740 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9741 allow_undefined_flag="-z nodefs" 9742 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" 9743 else 9744 # Determine the default libpath from the value encoded in an 9745 # empty executable. 9746 if test "${lt_cv_aix_libpath+set}" = set; then 9747 aix_libpath=$lt_cv_aix_libpath 9748 else 9749 if ${lt_cv_aix_libpath_+:} false; then : 9750 $as_echo_n "(cached) " >&6 9751 else 9752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9753 /* end confdefs.h. */ 9754 9755 int 9756 main () 9757 { 9758 9759 ; 9760 return 0; 9761 } 9762 _ACEOF 9763 if ac_fn_c_try_link "$LINENO"; then : 9764 9765 lt_aix_libpath_sed=' 9766 /Import File Strings/,/^$/ { 9767 /^0/ { 9768 s/^0 *\([^ ]*\) *$/\1/ 9769 p 9770 } 9771 }' 9772 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9773 # Check for a 64-bit object if we didn't find anything. 9774 if test -z "$lt_cv_aix_libpath_"; then 9775 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9776 fi 9777 fi 9778 rm -f core conftest.err conftest.$ac_objext \ 9779 conftest$ac_exeext conftest.$ac_ext 9780 if test -z "$lt_cv_aix_libpath_"; then 9781 lt_cv_aix_libpath_="/usr/lib:/lib" 9782 fi 9783 9784 fi 9785 9786 aix_libpath=$lt_cv_aix_libpath_ 9787 fi 9788 9789 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9790 # Warning - without using the other run time loading flags, 9791 # -berok will link without error, but may produce a broken library. 9792 no_undefined_flag=' ${wl}-bernotok' 9793 allow_undefined_flag=' ${wl}-berok' 9794 if test "$with_gnu_ld" = yes; then 9795 # We only use this code for GNU lds that support --whole-archive. 9796 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9797 else 9798 # Exported symbols can be pulled into shared objects from archives 9799 whole_archive_flag_spec='$convenience' 9800 fi 9801 archive_cmds_need_lc=yes 9802 # This is similar to how AIX traditionally builds its shared libraries. 9803 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9804 fi 9805 fi 9806 ;; 9807 9808 amigaos*) 9809 case $host_cpu in 9810 powerpc) 9811 # see comment about AmigaOS4 .so support 9812 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9813 archive_expsym_cmds='' 9814 ;; 9815 m68k) 9816 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)' 9817 hardcode_libdir_flag_spec='-L$libdir' 9818 hardcode_minus_L=yes 9819 ;; 9820 esac 9821 ;; 9822 9823 bsdi[45]*) 9824 export_dynamic_flag_spec=-rdynamic 9825 ;; 9826 9827 cygwin* | mingw* | pw32* | cegcc*) 9828 # When not using gcc, we currently assume that we are using 9829 # Microsoft Visual C++. 9830 # hardcode_libdir_flag_spec is actually meaningless, as there is 9831 # no search path for DLLs. 9832 case $cc_basename in 9833 cl*) 9834 # Native MSVC 9835 hardcode_libdir_flag_spec=' ' 9836 allow_undefined_flag=unsupported 9837 always_export_symbols=yes 9838 file_list_spec='@' 9839 # Tell ltmain to make .lib files, not .a files. 9840 libext=lib 9841 # Tell ltmain to make .dll files, not .so files. 9842 shrext_cmds=".dll" 9843 # FIXME: Setting linknames here is a bad hack. 9844 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9845 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9846 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9847 else 9848 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9849 fi~ 9850 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9851 linknames=' 9852 # The linker will not automatically build a static lib if we build a DLL. 9853 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9854 enable_shared_with_static_runtimes=yes 9855 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9856 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9857 # Don't use ranlib 9858 old_postinstall_cmds='chmod 644 $oldlib' 9859 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9860 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9861 case $lt_outputfile in 9862 *.exe|*.EXE) ;; 9863 *) 9864 lt_outputfile="$lt_outputfile.exe" 9865 lt_tool_outputfile="$lt_tool_outputfile.exe" 9866 ;; 9867 esac~ 9868 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9869 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9870 $RM "$lt_outputfile.manifest"; 9871 fi' 9872 ;; 9873 *) 9874 # Assume MSVC wrapper 9875 hardcode_libdir_flag_spec=' ' 9876 allow_undefined_flag=unsupported 9877 # Tell ltmain to make .lib files, not .a files. 9878 libext=lib 9879 # Tell ltmain to make .dll files, not .so files. 9880 shrext_cmds=".dll" 9881 # FIXME: Setting linknames here is a bad hack. 9882 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9883 # The linker will automatically build a .lib file if we build a DLL. 9884 old_archive_from_new_cmds='true' 9885 # FIXME: Should let the user specify the lib program. 9886 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9887 enable_shared_with_static_runtimes=yes 9888 ;; 9889 esac 9890 ;; 9891 9892 darwin* | rhapsody*) 9893 9894 9895 archive_cmds_need_lc=no 9896 hardcode_direct=no 9897 hardcode_automatic=yes 9898 hardcode_shlibpath_var=unsupported 9899 if test "$lt_cv_ld_force_load" = "yes"; then 9900 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\"`' 9901 9902 else 9903 whole_archive_flag_spec='' 9904 fi 9905 link_all_deplibs=yes 9906 allow_undefined_flag="$_lt_dar_allow_undefined" 9907 case $cc_basename in 9908 ifort*) _lt_dar_can_shared=yes ;; 9909 *) _lt_dar_can_shared=$GCC ;; 9910 esac 9911 if test "$_lt_dar_can_shared" = "yes"; then 9912 output_verbose_link_cmd=func_echo_all 9913 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9914 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9915 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}" 9916 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}" 9917 9918 else 9919 ld_shlibs=no 9920 fi 9921 9922 ;; 9923 9924 dgux*) 9925 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9926 hardcode_libdir_flag_spec='-L$libdir' 9927 hardcode_shlibpath_var=no 9928 ;; 9929 9930 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9931 # support. Future versions do this automatically, but an explicit c++rt0.o 9932 # does not break anything, and helps significantly (at the cost of a little 9933 # extra space). 9934 freebsd2.2*) 9935 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9936 hardcode_libdir_flag_spec='-R$libdir' 9937 hardcode_direct=yes 9938 hardcode_shlibpath_var=no 9939 ;; 9940 9941 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9942 freebsd2.*) 9943 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9944 hardcode_direct=yes 9945 hardcode_minus_L=yes 9946 hardcode_shlibpath_var=no 9947 ;; 9948 9949 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9950 freebsd* | dragonfly*) 9951 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9952 hardcode_libdir_flag_spec='-R$libdir' 9953 hardcode_direct=yes 9954 hardcode_shlibpath_var=no 9955 ;; 9956 9957 hpux9*) 9958 if test "$GCC" = yes; then 9959 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9960 else 9961 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9962 fi 9963 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9964 hardcode_libdir_separator=: 9965 hardcode_direct=yes 9966 9967 # hardcode_minus_L: Not really in the search PATH, 9968 # but as the default location of the library. 9969 hardcode_minus_L=yes 9970 export_dynamic_flag_spec='${wl}-E' 9971 ;; 9972 9973 hpux10*) 9974 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9975 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9976 else 9977 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9978 fi 9979 if test "$with_gnu_ld" = no; then 9980 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9981 hardcode_libdir_separator=: 9982 hardcode_direct=yes 9983 hardcode_direct_absolute=yes 9984 export_dynamic_flag_spec='${wl}-E' 9985 # hardcode_minus_L: Not really in the search PATH, 9986 # but as the default location of the library. 9987 hardcode_minus_L=yes 9988 fi 9989 ;; 9990 9991 hpux11*) 9992 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9993 case $host_cpu in 9994 hppa*64*) 9995 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9996 ;; 9997 ia64*) 9998 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9999 ;; 10000 *) 10001 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10002 ;; 10003 esac 10004 else 10005 case $host_cpu in 10006 hppa*64*) 10007 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10008 ;; 10009 ia64*) 10010 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10011 ;; 10012 *) 10013 10014 # Older versions of the 11.00 compiler do not understand -b yet 10015 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10017 $as_echo_n "checking if $CC understands -b... " >&6; } 10018 if ${lt_cv_prog_compiler__b+:} false; then : 10019 $as_echo_n "(cached) " >&6 10020 else 10021 lt_cv_prog_compiler__b=no 10022 save_LDFLAGS="$LDFLAGS" 10023 LDFLAGS="$LDFLAGS -b" 10024 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10025 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10026 # The linker can only warn and ignore the option if not recognized 10027 # So say no if there are warnings 10028 if test -s conftest.err; then 10029 # Append any errors to the config.log. 10030 cat conftest.err 1>&5 10031 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10032 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10033 if diff conftest.exp conftest.er2 >/dev/null; then 10034 lt_cv_prog_compiler__b=yes 10035 fi 10036 else 10037 lt_cv_prog_compiler__b=yes 10038 fi 10039 fi 10040 $RM -r conftest* 10041 LDFLAGS="$save_LDFLAGS" 10042 10043 fi 10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10045 $as_echo "$lt_cv_prog_compiler__b" >&6; } 10046 10047 if test x"$lt_cv_prog_compiler__b" = xyes; then 10048 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10049 else 10050 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10051 fi 10052 10053 ;; 10054 esac 10055 fi 10056 if test "$with_gnu_ld" = no; then 10057 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10058 hardcode_libdir_separator=: 10059 10060 case $host_cpu in 10061 hppa*64*|ia64*) 10062 hardcode_direct=no 10063 hardcode_shlibpath_var=no 10064 ;; 10065 *) 10066 hardcode_direct=yes 10067 hardcode_direct_absolute=yes 10068 export_dynamic_flag_spec='${wl}-E' 10069 10070 # hardcode_minus_L: Not really in the search PATH, 10071 # but as the default location of the library. 10072 hardcode_minus_L=yes 10073 ;; 10074 esac 10075 fi 10076 ;; 10077 10078 irix5* | irix6* | nonstopux*) 10079 if test "$GCC" = yes; then 10080 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' 10081 # Try to use the -exported_symbol ld option, if it does not 10082 # work, assume that -exports_file does not work either and 10083 # implicitly export all symbols. 10084 # This should be the same for all languages, so no per-tag cache variable. 10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10086 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10087 if ${lt_cv_irix_exported_symbol+:} false; then : 10088 $as_echo_n "(cached) " >&6 10089 else 10090 save_LDFLAGS="$LDFLAGS" 10091 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10093 /* end confdefs.h. */ 10094 int foo (void) { return 0; } 10095 _ACEOF 10096 if ac_fn_c_try_link "$LINENO"; then : 10097 lt_cv_irix_exported_symbol=yes 10098 else 10099 lt_cv_irix_exported_symbol=no 10100 fi 10101 rm -f core conftest.err conftest.$ac_objext \ 10102 conftest$ac_exeext conftest.$ac_ext 10103 LDFLAGS="$save_LDFLAGS" 10104 fi 10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10106 $as_echo "$lt_cv_irix_exported_symbol" >&6; } 10107 if test "$lt_cv_irix_exported_symbol" = yes; then 10108 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' 10109 fi 10110 else 10111 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' 10112 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' 10113 fi 10114 archive_cmds_need_lc='no' 10115 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10116 hardcode_libdir_separator=: 10117 inherit_rpath=yes 10118 link_all_deplibs=yes 10119 ;; 10120 10121 netbsd* | netbsdelf*-gnu) 10122 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10123 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10124 else 10125 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10126 fi 10127 hardcode_libdir_flag_spec='-R$libdir' 10128 hardcode_direct=yes 10129 hardcode_shlibpath_var=no 10130 ;; 10131 10132 newsos6) 10133 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10134 hardcode_direct=yes 10135 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10136 hardcode_libdir_separator=: 10137 hardcode_shlibpath_var=no 10138 ;; 10139 10140 *nto* | *qnx*) 10141 ;; 10142 10143 openbsd*) 10144 if test -f /usr/libexec/ld.so; then 10145 hardcode_direct=yes 10146 hardcode_shlibpath_var=no 10147 hardcode_direct_absolute=yes 10148 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10149 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10150 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10151 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10152 export_dynamic_flag_spec='${wl}-E' 10153 else 10154 case $host_os in 10155 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10156 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10157 hardcode_libdir_flag_spec='-R$libdir' 10158 ;; 10159 *) 10160 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10161 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10162 ;; 10163 esac 10164 fi 10165 else 10166 ld_shlibs=no 10167 fi 10168 ;; 10169 10170 os2*) 10171 hardcode_libdir_flag_spec='-L$libdir' 10172 hardcode_minus_L=yes 10173 allow_undefined_flag=unsupported 10174 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 10175 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10176 ;; 10177 10178 osf3*) 10179 if test "$GCC" = yes; then 10180 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10181 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' 10182 else 10183 allow_undefined_flag=' -expect_unresolved \*' 10184 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' 10185 fi 10186 archive_cmds_need_lc='no' 10187 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10188 hardcode_libdir_separator=: 10189 ;; 10190 10191 osf4* | osf5*) # as osf3* with the addition of -msym flag 10192 if test "$GCC" = yes; then 10193 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10194 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' 10195 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10196 else 10197 allow_undefined_flag=' -expect_unresolved \*' 10198 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' 10199 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~ 10200 $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' 10201 10202 # Both c and cxx compiler support -rpath directly 10203 hardcode_libdir_flag_spec='-rpath $libdir' 10204 fi 10205 archive_cmds_need_lc='no' 10206 hardcode_libdir_separator=: 10207 ;; 10208 10209 solaris*) 10210 no_undefined_flag=' -z defs' 10211 if test "$GCC" = yes; then 10212 wlarc='${wl}' 10213 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10214 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10215 $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' 10216 else 10217 case `$CC -V 2>&1` in 10218 *"Compilers 5.0"*) 10219 wlarc='' 10220 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10221 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10222 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10223 ;; 10224 *) 10225 wlarc='${wl}' 10226 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10227 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10228 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10229 ;; 10230 esac 10231 fi 10232 hardcode_libdir_flag_spec='-R$libdir' 10233 hardcode_shlibpath_var=no 10234 case $host_os in 10235 solaris2.[0-5] | solaris2.[0-5].*) ;; 10236 *) 10237 # The compiler driver will combine and reorder linker options, 10238 # but understands `-z linker_flag'. GCC discards it without `$wl', 10239 # but is careful enough not to reorder. 10240 # Supported since Solaris 2.6 (maybe 2.5.1?) 10241 if test "$GCC" = yes; then 10242 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10243 else 10244 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10245 fi 10246 ;; 10247 esac 10248 link_all_deplibs=yes 10249 ;; 10250 10251 sunos4*) 10252 if test "x$host_vendor" = xsequent; then 10253 # Use $CC to link under sequent, because it throws in some extra .o 10254 # files that make .init and .fini sections work. 10255 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10256 else 10257 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10258 fi 10259 hardcode_libdir_flag_spec='-L$libdir' 10260 hardcode_direct=yes 10261 hardcode_minus_L=yes 10262 hardcode_shlibpath_var=no 10263 ;; 10264 10265 sysv4) 10266 case $host_vendor in 10267 sni) 10268 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10269 hardcode_direct=yes # is this really true??? 10270 ;; 10271 siemens) 10272 ## LD is ld it makes a PLAMLIB 10273 ## CC just makes a GrossModule. 10274 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10275 reload_cmds='$CC -r -o $output$reload_objs' 10276 hardcode_direct=no 10277 ;; 10278 motorola) 10279 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10280 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10281 ;; 10282 esac 10283 runpath_var='LD_RUN_PATH' 10284 hardcode_shlibpath_var=no 10285 ;; 10286 10287 sysv4.3*) 10288 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10289 hardcode_shlibpath_var=no 10290 export_dynamic_flag_spec='-Bexport' 10291 ;; 10292 10293 sysv4*MP*) 10294 if test -d /usr/nec; then 10295 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10296 hardcode_shlibpath_var=no 10297 runpath_var=LD_RUN_PATH 10298 hardcode_runpath_var=yes 10299 ld_shlibs=yes 10300 fi 10301 ;; 10302 10303 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10304 no_undefined_flag='${wl}-z,text' 10305 archive_cmds_need_lc=no 10306 hardcode_shlibpath_var=no 10307 runpath_var='LD_RUN_PATH' 10308 10309 if test "$GCC" = yes; then 10310 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10311 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10312 else 10313 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10314 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10315 fi 10316 ;; 10317 10318 sysv5* | sco3.2v5* | sco5v6*) 10319 # Note: We can NOT use -z defs as we might desire, because we do not 10320 # link with -lc, and that would cause any symbols used from libc to 10321 # always be unresolved, which means just about no library would 10322 # ever link correctly. If we're not using GNU ld we use -z text 10323 # though, which does catch some bad symbols but isn't as heavy-handed 10324 # as -z defs. 10325 no_undefined_flag='${wl}-z,text' 10326 allow_undefined_flag='${wl}-z,nodefs' 10327 archive_cmds_need_lc=no 10328 hardcode_shlibpath_var=no 10329 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10330 hardcode_libdir_separator=':' 10331 link_all_deplibs=yes 10332 export_dynamic_flag_spec='${wl}-Bexport' 10333 runpath_var='LD_RUN_PATH' 10334 10335 if test "$GCC" = yes; then 10336 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10337 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10338 else 10339 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10340 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10341 fi 10342 ;; 10343 10344 uts4*) 10345 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10346 hardcode_libdir_flag_spec='-L$libdir' 10347 hardcode_shlibpath_var=no 10348 ;; 10349 10350 *) 10351 ld_shlibs=no 10352 ;; 10353 esac 10354 10355 if test x$host_vendor = xsni; then 10356 case $host in 10357 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10358 export_dynamic_flag_spec='${wl}-Blargedynsym' 10359 ;; 10360 esac 10361 fi 10362 fi 10363 10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10365 $as_echo "$ld_shlibs" >&6; } 10366 test "$ld_shlibs" = no && can_build_shared=no 10367 10368 with_gnu_ld=$with_gnu_ld 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 # 10385 # Do we need to explicitly link libc? 10386 # 10387 case "x$archive_cmds_need_lc" in 10388 x|xyes) 10389 # Assume -lc should be added 10390 archive_cmds_need_lc=yes 10391 10392 if test "$enable_shared" = yes && test "$GCC" = yes; then 10393 case $archive_cmds in 10394 *'~'*) 10395 # FIXME: we may have to deal with multi-command sequences. 10396 ;; 10397 '$CC '*) 10398 # Test whether the compiler implicitly links with -lc since on some 10399 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10400 # to ld, don't add -lc before -lgcc. 10401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10402 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10403 if ${lt_cv_archive_cmds_need_lc+:} false; then : 10404 $as_echo_n "(cached) " >&6 10405 else 10406 $RM conftest* 10407 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10408 10409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10410 (eval $ac_compile) 2>&5 10411 ac_status=$? 10412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10413 test $ac_status = 0; } 2>conftest.err; then 10414 soname=conftest 10415 lib=conftest 10416 libobjs=conftest.$ac_objext 10417 deplibs= 10418 wl=$lt_prog_compiler_wl 10419 pic_flag=$lt_prog_compiler_pic 10420 compiler_flags=-v 10421 linker_flags=-v 10422 verstring= 10423 output_objdir=. 10424 libname=conftest 10425 lt_save_allow_undefined_flag=$allow_undefined_flag 10426 allow_undefined_flag= 10427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10428 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10429 ac_status=$? 10430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10431 test $ac_status = 0; } 10432 then 10433 lt_cv_archive_cmds_need_lc=no 10434 else 10435 lt_cv_archive_cmds_need_lc=yes 10436 fi 10437 allow_undefined_flag=$lt_save_allow_undefined_flag 10438 else 10439 cat conftest.err 1>&5 10440 fi 10441 $RM conftest* 10442 10443 fi 10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10445 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10446 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10447 ;; 10448 esac 10449 fi 10450 ;; 10451 esac 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10605 $as_echo_n "checking dynamic linker characteristics... " >&6; } 10606 10607 if test "$GCC" = yes; then 10608 case $host_os in 10609 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10610 *) lt_awk_arg="/^libraries:/" ;; 10611 esac 10612 case $host_os in 10613 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10614 *) lt_sed_strip_eq="s,=/,/,g" ;; 10615 esac 10616 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10617 case $lt_search_path_spec in 10618 *\;*) 10619 # if the path contains ";" then we assume it to be the separator 10620 # otherwise default to the standard path separator (i.e. ":") - it is 10621 # assumed that no part of a normal pathname contains ";" but that should 10622 # okay in the real world where ";" in dirpaths is itself problematic. 10623 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10624 ;; 10625 *) 10626 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10627 ;; 10628 esac 10629 # Ok, now we have the path, separated by spaces, we can step through it 10630 # and add multilib dir if necessary. 10631 lt_tmp_lt_search_path_spec= 10632 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10633 for lt_sys_path in $lt_search_path_spec; do 10634 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10635 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10636 else 10637 test -d "$lt_sys_path" && \ 10638 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10639 fi 10640 done 10641 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10642 BEGIN {RS=" "; FS="/|\n";} { 10643 lt_foo=""; 10644 lt_count=0; 10645 for (lt_i = NF; lt_i > 0; lt_i--) { 10646 if ($lt_i != "" && $lt_i != ".") { 10647 if ($lt_i == "..") { 10648 lt_count++; 10649 } else { 10650 if (lt_count == 0) { 10651 lt_foo="/" $lt_i lt_foo; 10652 } else { 10653 lt_count--; 10654 } 10655 } 10656 } 10657 } 10658 if (lt_foo != "") { lt_freq[lt_foo]++; } 10659 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10660 }'` 10661 # AWK program above erroneously prepends '/' to C:/dos/paths 10662 # for these hosts. 10663 case $host_os in 10664 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10665 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10666 esac 10667 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10668 else 10669 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10670 fi 10671 library_names_spec= 10672 libname_spec='lib$name' 10673 soname_spec= 10674 shrext_cmds=".so" 10675 postinstall_cmds= 10676 postuninstall_cmds= 10677 finish_cmds= 10678 finish_eval= 10679 shlibpath_var= 10680 shlibpath_overrides_runpath=unknown 10681 version_type=none 10682 dynamic_linker="$host_os ld.so" 10683 sys_lib_dlsearch_path_spec="/lib /usr/lib" 10684 need_lib_prefix=unknown 10685 hardcode_into_libs=no 10686 10687 # when you set need_version to no, make sure it does not cause -set_version 10688 # flags to be left without arguments 10689 need_version=unknown 10690 10691 case $host_os in 10692 aix3*) 10693 version_type=linux # correct to gnu/linux during the next big refactor 10694 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10695 shlibpath_var=LIBPATH 10696 10697 # AIX 3 has no versioning support, so we append a major version to the name. 10698 soname_spec='${libname}${release}${shared_ext}$major' 10699 ;; 10700 10701 aix[4-9]*) 10702 version_type=linux # correct to gnu/linux during the next big refactor 10703 need_lib_prefix=no 10704 need_version=no 10705 hardcode_into_libs=yes 10706 if test "$host_cpu" = ia64; then 10707 # AIX 5 supports IA64 10708 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10709 shlibpath_var=LD_LIBRARY_PATH 10710 else 10711 # With GCC up to 2.95.x, collect2 would create an import file 10712 # for dependence libraries. The import file would start with 10713 # the line `#! .'. This would cause the generated library to 10714 # depend on `.', always an invalid library. This was fixed in 10715 # development snapshots of GCC prior to 3.0. 10716 case $host_os in 10717 aix4 | aix4.[01] | aix4.[01].*) 10718 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10719 echo ' yes ' 10720 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10721 : 10722 else 10723 can_build_shared=no 10724 fi 10725 ;; 10726 esac 10727 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10728 # soname into executable. Probably we can add versioning support to 10729 # collect2, so additional links can be useful in future. 10730 if test "$aix_use_runtimelinking" = yes; then 10731 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10732 # instead of lib<name>.a to let people know that these are not 10733 # typical AIX shared libraries. 10734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10735 else 10736 # We preserve .a as extension for shared libraries through AIX4.2 10737 # and later when we are not doing run time linking. 10738 library_names_spec='${libname}${release}.a $libname.a' 10739 soname_spec='${libname}${release}${shared_ext}$major' 10740 fi 10741 shlibpath_var=LIBPATH 10742 fi 10743 ;; 10744 10745 amigaos*) 10746 case $host_cpu in 10747 powerpc) 10748 # Since July 2007 AmigaOS4 officially supports .so libraries. 10749 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10751 ;; 10752 m68k) 10753 library_names_spec='$libname.ixlibrary $libname.a' 10754 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10755 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10756 ;; 10757 esac 10758 ;; 10759 10760 beos*) 10761 library_names_spec='${libname}${shared_ext}' 10762 dynamic_linker="$host_os ld.so" 10763 shlibpath_var=LIBRARY_PATH 10764 ;; 10765 10766 bsdi[45]*) 10767 version_type=linux # correct to gnu/linux during the next big refactor 10768 need_version=no 10769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10770 soname_spec='${libname}${release}${shared_ext}$major' 10771 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10772 shlibpath_var=LD_LIBRARY_PATH 10773 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10774 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10775 # the default ld.so.conf also contains /usr/contrib/lib and 10776 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10777 # libtool to hard-code these into programs 10778 ;; 10779 10780 cygwin* | mingw* | pw32* | cegcc*) 10781 version_type=windows 10782 shrext_cmds=".dll" 10783 need_version=no 10784 need_lib_prefix=no 10785 10786 case $GCC,$cc_basename in 10787 yes,*) 10788 # gcc 10789 library_names_spec='$libname.dll.a' 10790 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10791 postinstall_cmds='base_file=`basename \${file}`~ 10792 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10793 dldir=$destdir/`dirname \$dlpath`~ 10794 test -d \$dldir || mkdir -p \$dldir~ 10795 $install_prog $dir/$dlname \$dldir/$dlname~ 10796 chmod a+x \$dldir/$dlname~ 10797 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10798 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10799 fi' 10800 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10801 dlpath=$dir/\$dldll~ 10802 $RM \$dlpath' 10803 shlibpath_overrides_runpath=yes 10804 10805 case $host_os in 10806 cygwin*) 10807 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10808 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10809 10810 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10811 ;; 10812 mingw* | cegcc*) 10813 # MinGW DLLs use traditional 'lib' prefix 10814 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10815 ;; 10816 pw32*) 10817 # pw32 DLLs use 'pw' prefix rather than 'lib' 10818 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10819 ;; 10820 esac 10821 dynamic_linker='Win32 ld.exe' 10822 ;; 10823 10824 *,cl*) 10825 # Native MSVC 10826 libname_spec='$name' 10827 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10828 library_names_spec='${libname}.dll.lib' 10829 10830 case $build_os in 10831 mingw*) 10832 sys_lib_search_path_spec= 10833 lt_save_ifs=$IFS 10834 IFS=';' 10835 for lt_path in $LIB 10836 do 10837 IFS=$lt_save_ifs 10838 # Let DOS variable expansion print the short 8.3 style file name. 10839 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10840 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10841 done 10842 IFS=$lt_save_ifs 10843 # Convert to MSYS style. 10844 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10845 ;; 10846 cygwin*) 10847 # Convert to unix form, then to dos form, then back to unix form 10848 # but this time dos style (no spaces!) so that the unix form looks 10849 # like /cygdrive/c/PROGRA~1:/cygdr... 10850 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10851 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10852 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10853 ;; 10854 *) 10855 sys_lib_search_path_spec="$LIB" 10856 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10857 # It is most probably a Windows format PATH. 10858 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10859 else 10860 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10861 fi 10862 # FIXME: find the short name or the path components, as spaces are 10863 # common. (e.g. "Program Files" -> "PROGRA~1") 10864 ;; 10865 esac 10866 10867 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10868 postinstall_cmds='base_file=`basename \${file}`~ 10869 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10870 dldir=$destdir/`dirname \$dlpath`~ 10871 test -d \$dldir || mkdir -p \$dldir~ 10872 $install_prog $dir/$dlname \$dldir/$dlname' 10873 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10874 dlpath=$dir/\$dldll~ 10875 $RM \$dlpath' 10876 shlibpath_overrides_runpath=yes 10877 dynamic_linker='Win32 link.exe' 10878 ;; 10879 10880 *) 10881 # Assume MSVC wrapper 10882 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10883 dynamic_linker='Win32 ld.exe' 10884 ;; 10885 esac 10886 # FIXME: first we should search . and the directory the executable is in 10887 shlibpath_var=PATH 10888 ;; 10889 10890 darwin* | rhapsody*) 10891 dynamic_linker="$host_os dyld" 10892 version_type=darwin 10893 need_lib_prefix=no 10894 need_version=no 10895 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10896 soname_spec='${libname}${release}${major}$shared_ext' 10897 shlibpath_overrides_runpath=yes 10898 shlibpath_var=DYLD_LIBRARY_PATH 10899 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10900 10901 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10902 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10903 ;; 10904 10905 dgux*) 10906 version_type=linux # correct to gnu/linux during the next big refactor 10907 need_lib_prefix=no 10908 need_version=no 10909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10910 soname_spec='${libname}${release}${shared_ext}$major' 10911 shlibpath_var=LD_LIBRARY_PATH 10912 ;; 10913 10914 freebsd* | dragonfly*) 10915 # DragonFly does not have aout. When/if they implement a new 10916 # versioning mechanism, adjust this. 10917 if test -x /usr/bin/objformat; then 10918 objformat=`/usr/bin/objformat` 10919 else 10920 case $host_os in 10921 freebsd[23].*) objformat=aout ;; 10922 *) objformat=elf ;; 10923 esac 10924 fi 10925 version_type=freebsd-$objformat 10926 case $version_type in 10927 freebsd-elf*) 10928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10929 need_version=no 10930 need_lib_prefix=no 10931 ;; 10932 freebsd-*) 10933 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10934 need_version=yes 10935 ;; 10936 esac 10937 shlibpath_var=LD_LIBRARY_PATH 10938 case $host_os in 10939 freebsd2.*) 10940 shlibpath_overrides_runpath=yes 10941 ;; 10942 freebsd3.[01]* | freebsdelf3.[01]*) 10943 shlibpath_overrides_runpath=yes 10944 hardcode_into_libs=yes 10945 ;; 10946 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10947 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10948 shlibpath_overrides_runpath=no 10949 hardcode_into_libs=yes 10950 ;; 10951 *) # from 4.6 on, and DragonFly 10952 shlibpath_overrides_runpath=yes 10953 hardcode_into_libs=yes 10954 ;; 10955 esac 10956 ;; 10957 10958 haiku*) 10959 version_type=linux # correct to gnu/linux during the next big refactor 10960 need_lib_prefix=no 10961 need_version=no 10962 dynamic_linker="$host_os runtime_loader" 10963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10964 soname_spec='${libname}${release}${shared_ext}$major' 10965 shlibpath_var=LIBRARY_PATH 10966 shlibpath_overrides_runpath=yes 10967 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10968 hardcode_into_libs=yes 10969 ;; 10970 10971 hpux9* | hpux10* | hpux11*) 10972 # Give a soname corresponding to the major version so that dld.sl refuses to 10973 # link against other versions. 10974 version_type=sunos 10975 need_lib_prefix=no 10976 need_version=no 10977 case $host_cpu in 10978 ia64*) 10979 shrext_cmds='.so' 10980 hardcode_into_libs=yes 10981 dynamic_linker="$host_os dld.so" 10982 shlibpath_var=LD_LIBRARY_PATH 10983 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10985 soname_spec='${libname}${release}${shared_ext}$major' 10986 if test "X$HPUX_IA64_MODE" = X32; then 10987 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10988 else 10989 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10990 fi 10991 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10992 ;; 10993 hppa*64*) 10994 shrext_cmds='.sl' 10995 hardcode_into_libs=yes 10996 dynamic_linker="$host_os dld.sl" 10997 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10998 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11000 soname_spec='${libname}${release}${shared_ext}$major' 11001 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11002 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11003 ;; 11004 *) 11005 shrext_cmds='.sl' 11006 dynamic_linker="$host_os dld.sl" 11007 shlibpath_var=SHLIB_PATH 11008 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11010 soname_spec='${libname}${release}${shared_ext}$major' 11011 ;; 11012 esac 11013 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11014 postinstall_cmds='chmod 555 $lib' 11015 # or fails outright, so override atomically: 11016 install_override_mode=555 11017 ;; 11018 11019 interix[3-9]*) 11020 version_type=linux # correct to gnu/linux during the next big refactor 11021 need_lib_prefix=no 11022 need_version=no 11023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11024 soname_spec='${libname}${release}${shared_ext}$major' 11025 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11026 shlibpath_var=LD_LIBRARY_PATH 11027 shlibpath_overrides_runpath=no 11028 hardcode_into_libs=yes 11029 ;; 11030 11031 irix5* | irix6* | nonstopux*) 11032 case $host_os in 11033 nonstopux*) version_type=nonstopux ;; 11034 *) 11035 if test "$lt_cv_prog_gnu_ld" = yes; then 11036 version_type=linux # correct to gnu/linux during the next big refactor 11037 else 11038 version_type=irix 11039 fi ;; 11040 esac 11041 need_lib_prefix=no 11042 need_version=no 11043 soname_spec='${libname}${release}${shared_ext}$major' 11044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11045 case $host_os in 11046 irix5* | nonstopux*) 11047 libsuff= shlibsuff= 11048 ;; 11049 *) 11050 case $LD in # libtool.m4 will add one of these switches to LD 11051 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11052 libsuff= shlibsuff= libmagic=32-bit;; 11053 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11054 libsuff=32 shlibsuff=N32 libmagic=N32;; 11055 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11056 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11057 *) libsuff= shlibsuff= libmagic=never-match;; 11058 esac 11059 ;; 11060 esac 11061 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11062 shlibpath_overrides_runpath=no 11063 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11064 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11065 hardcode_into_libs=yes 11066 ;; 11067 11068 # No shared lib support for Linux oldld, aout, or coff. 11069 linux*oldld* | linux*aout* | linux*coff*) 11070 dynamic_linker=no 11071 ;; 11072 11073 # This must be glibc/ELF. 11074 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11075 version_type=linux # correct to gnu/linux during the next big refactor 11076 need_lib_prefix=no 11077 need_version=no 11078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11079 soname_spec='${libname}${release}${shared_ext}$major' 11080 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11081 shlibpath_var=LD_LIBRARY_PATH 11082 shlibpath_overrides_runpath=no 11083 11084 # Some binutils ld are patched to set DT_RUNPATH 11085 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11086 $as_echo_n "(cached) " >&6 11087 else 11088 lt_cv_shlibpath_overrides_runpath=no 11089 save_LDFLAGS=$LDFLAGS 11090 save_libdir=$libdir 11091 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11092 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11094 /* end confdefs.h. */ 11095 11096 int 11097 main () 11098 { 11099 11100 ; 11101 return 0; 11102 } 11103 _ACEOF 11104 if ac_fn_c_try_link "$LINENO"; then : 11105 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11106 lt_cv_shlibpath_overrides_runpath=yes 11107 fi 11108 fi 11109 rm -f core conftest.err conftest.$ac_objext \ 11110 conftest$ac_exeext conftest.$ac_ext 11111 LDFLAGS=$save_LDFLAGS 11112 libdir=$save_libdir 11113 11114 fi 11115 11116 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11117 11118 # This implies no fast_install, which is unacceptable. 11119 # Some rework will be needed to allow for fast_install 11120 # before this can be enabled. 11121 hardcode_into_libs=yes 11122 11123 # Append ld.so.conf contents to the search path 11124 if test -f /etc/ld.so.conf; then 11125 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' ' '` 11126 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11127 fi 11128 11129 # We used to test for /lib/ld.so.1 and disable shared libraries on 11130 # powerpc, because MkLinux only supported shared libraries with the 11131 # GNU dynamic linker. Since this was broken with cross compilers, 11132 # most powerpc-linux boxes support dynamic linking these days and 11133 # people can always --disable-shared, the test was removed, and we 11134 # assume the GNU/Linux dynamic linker is in use. 11135 dynamic_linker='GNU/Linux ld.so' 11136 ;; 11137 11138 netbsdelf*-gnu) 11139 version_type=linux 11140 need_lib_prefix=no 11141 need_version=no 11142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11143 soname_spec='${libname}${release}${shared_ext}$major' 11144 shlibpath_var=LD_LIBRARY_PATH 11145 shlibpath_overrides_runpath=no 11146 hardcode_into_libs=yes 11147 dynamic_linker='NetBSD ld.elf_so' 11148 ;; 11149 11150 netbsd*) 11151 version_type=sunos 11152 need_lib_prefix=no 11153 need_version=no 11154 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11156 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11157 dynamic_linker='NetBSD (a.out) ld.so' 11158 else 11159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11160 soname_spec='${libname}${release}${shared_ext}$major' 11161 dynamic_linker='NetBSD ld.elf_so' 11162 fi 11163 shlibpath_var=LD_LIBRARY_PATH 11164 shlibpath_overrides_runpath=yes 11165 hardcode_into_libs=yes 11166 ;; 11167 11168 newsos6) 11169 version_type=linux # correct to gnu/linux during the next big refactor 11170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11171 shlibpath_var=LD_LIBRARY_PATH 11172 shlibpath_overrides_runpath=yes 11173 ;; 11174 11175 *nto* | *qnx*) 11176 version_type=qnx 11177 need_lib_prefix=no 11178 need_version=no 11179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11180 soname_spec='${libname}${release}${shared_ext}$major' 11181 shlibpath_var=LD_LIBRARY_PATH 11182 shlibpath_overrides_runpath=no 11183 hardcode_into_libs=yes 11184 dynamic_linker='ldqnx.so' 11185 ;; 11186 11187 openbsd*) 11188 version_type=sunos 11189 sys_lib_dlsearch_path_spec="/usr/lib" 11190 need_lib_prefix=no 11191 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11192 case $host_os in 11193 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11194 *) need_version=no ;; 11195 esac 11196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11197 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11198 shlibpath_var=LD_LIBRARY_PATH 11199 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11200 case $host_os in 11201 openbsd2.[89] | openbsd2.[89].*) 11202 shlibpath_overrides_runpath=no 11203 ;; 11204 *) 11205 shlibpath_overrides_runpath=yes 11206 ;; 11207 esac 11208 else 11209 shlibpath_overrides_runpath=yes 11210 fi 11211 ;; 11212 11213 os2*) 11214 libname_spec='$name' 11215 shrext_cmds=".dll" 11216 need_lib_prefix=no 11217 library_names_spec='$libname${shared_ext} $libname.a' 11218 dynamic_linker='OS/2 ld.exe' 11219 shlibpath_var=LIBPATH 11220 ;; 11221 11222 osf3* | osf4* | osf5*) 11223 version_type=osf 11224 need_lib_prefix=no 11225 need_version=no 11226 soname_spec='${libname}${release}${shared_ext}$major' 11227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11228 shlibpath_var=LD_LIBRARY_PATH 11229 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11230 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11231 ;; 11232 11233 rdos*) 11234 dynamic_linker=no 11235 ;; 11236 11237 solaris*) 11238 version_type=linux # correct to gnu/linux during the next big refactor 11239 need_lib_prefix=no 11240 need_version=no 11241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11242 soname_spec='${libname}${release}${shared_ext}$major' 11243 shlibpath_var=LD_LIBRARY_PATH 11244 shlibpath_overrides_runpath=yes 11245 hardcode_into_libs=yes 11246 # ldd complains unless libraries are executable 11247 postinstall_cmds='chmod +x $lib' 11248 ;; 11249 11250 sunos4*) 11251 version_type=sunos 11252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11253 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11254 shlibpath_var=LD_LIBRARY_PATH 11255 shlibpath_overrides_runpath=yes 11256 if test "$with_gnu_ld" = yes; then 11257 need_lib_prefix=no 11258 fi 11259 need_version=yes 11260 ;; 11261 11262 sysv4 | sysv4.3*) 11263 version_type=linux # correct to gnu/linux during the next big refactor 11264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11265 soname_spec='${libname}${release}${shared_ext}$major' 11266 shlibpath_var=LD_LIBRARY_PATH 11267 case $host_vendor in 11268 sni) 11269 shlibpath_overrides_runpath=no 11270 need_lib_prefix=no 11271 runpath_var=LD_RUN_PATH 11272 ;; 11273 siemens) 11274 need_lib_prefix=no 11275 ;; 11276 motorola) 11277 need_lib_prefix=no 11278 need_version=no 11279 shlibpath_overrides_runpath=no 11280 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11281 ;; 11282 esac 11283 ;; 11284 11285 sysv4*MP*) 11286 if test -d /usr/nec ;then 11287 version_type=linux # correct to gnu/linux during the next big refactor 11288 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11289 soname_spec='$libname${shared_ext}.$major' 11290 shlibpath_var=LD_LIBRARY_PATH 11291 fi 11292 ;; 11293 11294 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11295 version_type=freebsd-elf 11296 need_lib_prefix=no 11297 need_version=no 11298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11299 soname_spec='${libname}${release}${shared_ext}$major' 11300 shlibpath_var=LD_LIBRARY_PATH 11301 shlibpath_overrides_runpath=yes 11302 hardcode_into_libs=yes 11303 if test "$with_gnu_ld" = yes; then 11304 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11305 else 11306 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11307 case $host_os in 11308 sco3.2v5*) 11309 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11310 ;; 11311 esac 11312 fi 11313 sys_lib_dlsearch_path_spec='/usr/lib' 11314 ;; 11315 11316 tpf*) 11317 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11318 version_type=linux # correct to gnu/linux during the next big refactor 11319 need_lib_prefix=no 11320 need_version=no 11321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11322 shlibpath_var=LD_LIBRARY_PATH 11323 shlibpath_overrides_runpath=no 11324 hardcode_into_libs=yes 11325 ;; 11326 11327 uts4*) 11328 version_type=linux # correct to gnu/linux during the next big refactor 11329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11330 soname_spec='${libname}${release}${shared_ext}$major' 11331 shlibpath_var=LD_LIBRARY_PATH 11332 ;; 11333 11334 *) 11335 dynamic_linker=no 11336 ;; 11337 esac 11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11339 $as_echo "$dynamic_linker" >&6; } 11340 test "$dynamic_linker" = no && can_build_shared=no 11341 11342 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11343 if test "$GCC" = yes; then 11344 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11345 fi 11346 11347 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11348 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11349 fi 11350 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11351 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11352 fi 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11446 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11447 hardcode_action= 11448 if test -n "$hardcode_libdir_flag_spec" || 11449 test -n "$runpath_var" || 11450 test "X$hardcode_automatic" = "Xyes" ; then 11451 11452 # We can hardcode non-existent directories. 11453 if test "$hardcode_direct" != no && 11454 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11455 # have to relink, otherwise we might link with an installed library 11456 # when we should be linking with a yet-to-be-installed one 11457 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11458 test "$hardcode_minus_L" != no; then 11459 # Linking always hardcodes the temporary library directory. 11460 hardcode_action=relink 11461 else 11462 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11463 hardcode_action=immediate 11464 fi 11465 else 11466 # We cannot hardcode anything, or else we can only hardcode existing 11467 # directories. 11468 hardcode_action=unsupported 11469 fi 11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11471 $as_echo "$hardcode_action" >&6; } 11472 11473 if test "$hardcode_action" = relink || 11474 test "$inherit_rpath" = yes; then 11475 # Fast installation is not supported 11476 enable_fast_install=no 11477 elif test "$shlibpath_overrides_runpath" = yes || 11478 test "$enable_shared" = no; then 11479 # Fast installation is not necessary 11480 enable_fast_install=needless 11481 fi 11482 11483 11484 11485 11486 11487 11488 if test "x$enable_dlopen" != xyes; then 11489 enable_dlopen=unknown 11490 enable_dlopen_self=unknown 11491 enable_dlopen_self_static=unknown 11492 else 11493 lt_cv_dlopen=no 11494 lt_cv_dlopen_libs= 11495 11496 case $host_os in 11497 beos*) 11498 lt_cv_dlopen="load_add_on" 11499 lt_cv_dlopen_libs= 11500 lt_cv_dlopen_self=yes 11501 ;; 11502 11503 mingw* | pw32* | cegcc*) 11504 lt_cv_dlopen="LoadLibrary" 11505 lt_cv_dlopen_libs= 11506 ;; 11507 11508 cygwin*) 11509 lt_cv_dlopen="dlopen" 11510 lt_cv_dlopen_libs= 11511 ;; 11512 11513 darwin*) 11514 # if libdl is installed we need to link against it 11515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11516 $as_echo_n "checking for dlopen in -ldl... " >&6; } 11517 if ${ac_cv_lib_dl_dlopen+:} false; then : 11518 $as_echo_n "(cached) " >&6 11519 else 11520 ac_check_lib_save_LIBS=$LIBS 11521 LIBS="-ldl $LIBS" 11522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11523 /* end confdefs.h. */ 11524 11525 /* Override any GCC internal prototype to avoid an error. 11526 Use char because int might match the return type of a GCC 11527 builtin and then its argument prototype would still apply. */ 11528 #ifdef __cplusplus 11529 extern "C" 11530 #endif 11531 char dlopen (); 11532 int 11533 main () 11534 { 11535 return dlopen (); 11536 ; 11537 return 0; 11538 } 11539 _ACEOF 11540 if ac_fn_c_try_link "$LINENO"; then : 11541 ac_cv_lib_dl_dlopen=yes 11542 else 11543 ac_cv_lib_dl_dlopen=no 11544 fi 11545 rm -f core conftest.err conftest.$ac_objext \ 11546 conftest$ac_exeext conftest.$ac_ext 11547 LIBS=$ac_check_lib_save_LIBS 11548 fi 11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11550 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11551 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11552 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11553 else 11554 11555 lt_cv_dlopen="dyld" 11556 lt_cv_dlopen_libs= 11557 lt_cv_dlopen_self=yes 11558 11559 fi 11560 11561 ;; 11562 11563 *) 11564 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11565 if test "x$ac_cv_func_shl_load" = xyes; then : 11566 lt_cv_dlopen="shl_load" 11567 else 11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11569 $as_echo_n "checking for shl_load in -ldld... " >&6; } 11570 if ${ac_cv_lib_dld_shl_load+:} false; then : 11571 $as_echo_n "(cached) " >&6 11572 else 11573 ac_check_lib_save_LIBS=$LIBS 11574 LIBS="-ldld $LIBS" 11575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11576 /* end confdefs.h. */ 11577 11578 /* Override any GCC internal prototype to avoid an error. 11579 Use char because int might match the return type of a GCC 11580 builtin and then its argument prototype would still apply. */ 11581 #ifdef __cplusplus 11582 extern "C" 11583 #endif 11584 char shl_load (); 11585 int 11586 main () 11587 { 11588 return shl_load (); 11589 ; 11590 return 0; 11591 } 11592 _ACEOF 11593 if ac_fn_c_try_link "$LINENO"; then : 11594 ac_cv_lib_dld_shl_load=yes 11595 else 11596 ac_cv_lib_dld_shl_load=no 11597 fi 11598 rm -f core conftest.err conftest.$ac_objext \ 11599 conftest$ac_exeext conftest.$ac_ext 11600 LIBS=$ac_check_lib_save_LIBS 11601 fi 11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11603 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11604 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11605 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11606 else 11607 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11608 if test "x$ac_cv_func_dlopen" = xyes; then : 11609 lt_cv_dlopen="dlopen" 11610 else 11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11612 $as_echo_n "checking for dlopen in -ldl... " >&6; } 11613 if ${ac_cv_lib_dl_dlopen+:} false; then : 11614 $as_echo_n "(cached) " >&6 11615 else 11616 ac_check_lib_save_LIBS=$LIBS 11617 LIBS="-ldl $LIBS" 11618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11619 /* end confdefs.h. */ 11620 11621 /* Override any GCC internal prototype to avoid an error. 11622 Use char because int might match the return type of a GCC 11623 builtin and then its argument prototype would still apply. */ 11624 #ifdef __cplusplus 11625 extern "C" 11626 #endif 11627 char dlopen (); 11628 int 11629 main () 11630 { 11631 return dlopen (); 11632 ; 11633 return 0; 11634 } 11635 _ACEOF 11636 if ac_fn_c_try_link "$LINENO"; then : 11637 ac_cv_lib_dl_dlopen=yes 11638 else 11639 ac_cv_lib_dl_dlopen=no 11640 fi 11641 rm -f core conftest.err conftest.$ac_objext \ 11642 conftest$ac_exeext conftest.$ac_ext 11643 LIBS=$ac_check_lib_save_LIBS 11644 fi 11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11646 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11647 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11648 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11649 else 11650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11651 $as_echo_n "checking for dlopen in -lsvld... " >&6; } 11652 if ${ac_cv_lib_svld_dlopen+:} false; then : 11653 $as_echo_n "(cached) " >&6 11654 else 11655 ac_check_lib_save_LIBS=$LIBS 11656 LIBS="-lsvld $LIBS" 11657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11658 /* end confdefs.h. */ 11659 11660 /* Override any GCC internal prototype to avoid an error. 11661 Use char because int might match the return type of a GCC 11662 builtin and then its argument prototype would still apply. */ 11663 #ifdef __cplusplus 11664 extern "C" 11665 #endif 11666 char dlopen (); 11667 int 11668 main () 11669 { 11670 return dlopen (); 11671 ; 11672 return 0; 11673 } 11674 _ACEOF 11675 if ac_fn_c_try_link "$LINENO"; then : 11676 ac_cv_lib_svld_dlopen=yes 11677 else 11678 ac_cv_lib_svld_dlopen=no 11679 fi 11680 rm -f core conftest.err conftest.$ac_objext \ 11681 conftest$ac_exeext conftest.$ac_ext 11682 LIBS=$ac_check_lib_save_LIBS 11683 fi 11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11685 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11686 if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11687 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11688 else 11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11690 $as_echo_n "checking for dld_link in -ldld... " >&6; } 11691 if ${ac_cv_lib_dld_dld_link+:} false; then : 11692 $as_echo_n "(cached) " >&6 11693 else 11694 ac_check_lib_save_LIBS=$LIBS 11695 LIBS="-ldld $LIBS" 11696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11697 /* end confdefs.h. */ 11698 11699 /* Override any GCC internal prototype to avoid an error. 11700 Use char because int might match the return type of a GCC 11701 builtin and then its argument prototype would still apply. */ 11702 #ifdef __cplusplus 11703 extern "C" 11704 #endif 11705 char dld_link (); 11706 int 11707 main () 11708 { 11709 return dld_link (); 11710 ; 11711 return 0; 11712 } 11713 _ACEOF 11714 if ac_fn_c_try_link "$LINENO"; then : 11715 ac_cv_lib_dld_dld_link=yes 11716 else 11717 ac_cv_lib_dld_dld_link=no 11718 fi 11719 rm -f core conftest.err conftest.$ac_objext \ 11720 conftest$ac_exeext conftest.$ac_ext 11721 LIBS=$ac_check_lib_save_LIBS 11722 fi 11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11724 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11725 if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11726 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11727 fi 11728 11729 11730 fi 11731 11732 11733 fi 11734 11735 11736 fi 11737 11738 11739 fi 11740 11741 11742 fi 11743 11744 ;; 11745 esac 11746 11747 if test "x$lt_cv_dlopen" != xno; then 11748 enable_dlopen=yes 11749 else 11750 enable_dlopen=no 11751 fi 11752 11753 case $lt_cv_dlopen in 11754 dlopen) 11755 save_CPPFLAGS="$CPPFLAGS" 11756 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11757 11758 save_LDFLAGS="$LDFLAGS" 11759 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11760 11761 save_LIBS="$LIBS" 11762 LIBS="$lt_cv_dlopen_libs $LIBS" 11763 11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11765 $as_echo_n "checking whether a program can dlopen itself... " >&6; } 11766 if ${lt_cv_dlopen_self+:} false; then : 11767 $as_echo_n "(cached) " >&6 11768 else 11769 if test "$cross_compiling" = yes; then : 11770 lt_cv_dlopen_self=cross 11771 else 11772 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11773 lt_status=$lt_dlunknown 11774 cat > conftest.$ac_ext <<_LT_EOF 11775 #line $LINENO "configure" 11776 #include "confdefs.h" 11777 11778 #if HAVE_DLFCN_H 11779 #include <dlfcn.h> 11780 #endif 11781 11782 #include <stdio.h> 11783 11784 #ifdef RTLD_GLOBAL 11785 # define LT_DLGLOBAL RTLD_GLOBAL 11786 #else 11787 # ifdef DL_GLOBAL 11788 # define LT_DLGLOBAL DL_GLOBAL 11789 # else 11790 # define LT_DLGLOBAL 0 11791 # endif 11792 #endif 11793 11794 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11795 find out it does not work in some platform. */ 11796 #ifndef LT_DLLAZY_OR_NOW 11797 # ifdef RTLD_LAZY 11798 # define LT_DLLAZY_OR_NOW RTLD_LAZY 11799 # else 11800 # ifdef DL_LAZY 11801 # define LT_DLLAZY_OR_NOW DL_LAZY 11802 # else 11803 # ifdef RTLD_NOW 11804 # define LT_DLLAZY_OR_NOW RTLD_NOW 11805 # else 11806 # ifdef DL_NOW 11807 # define LT_DLLAZY_OR_NOW DL_NOW 11808 # else 11809 # define LT_DLLAZY_OR_NOW 0 11810 # endif 11811 # endif 11812 # endif 11813 # endif 11814 #endif 11815 11816 /* When -fvisbility=hidden is used, assume the code has been annotated 11817 correspondingly for the symbols needed. */ 11818 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11819 int fnord () __attribute__((visibility("default"))); 11820 #endif 11821 11822 int fnord () { return 42; } 11823 int main () 11824 { 11825 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11826 int status = $lt_dlunknown; 11827 11828 if (self) 11829 { 11830 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11831 else 11832 { 11833 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11834 else puts (dlerror ()); 11835 } 11836 /* dlclose (self); */ 11837 } 11838 else 11839 puts (dlerror ()); 11840 11841 return status; 11842 } 11843 _LT_EOF 11844 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11845 (eval $ac_link) 2>&5 11846 ac_status=$? 11847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11848 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11849 (./conftest; exit; ) >&5 2>/dev/null 11850 lt_status=$? 11851 case x$lt_status in 11852 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11853 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11854 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11855 esac 11856 else : 11857 # compilation failed 11858 lt_cv_dlopen_self=no 11859 fi 11860 fi 11861 rm -fr conftest* 11862 11863 11864 fi 11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11866 $as_echo "$lt_cv_dlopen_self" >&6; } 11867 11868 if test "x$lt_cv_dlopen_self" = xyes; then 11869 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11871 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11872 if ${lt_cv_dlopen_self_static+:} false; then : 11873 $as_echo_n "(cached) " >&6 11874 else 11875 if test "$cross_compiling" = yes; then : 11876 lt_cv_dlopen_self_static=cross 11877 else 11878 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11879 lt_status=$lt_dlunknown 11880 cat > conftest.$ac_ext <<_LT_EOF 11881 #line $LINENO "configure" 11882 #include "confdefs.h" 11883 11884 #if HAVE_DLFCN_H 11885 #include <dlfcn.h> 11886 #endif 11887 11888 #include <stdio.h> 11889 11890 #ifdef RTLD_GLOBAL 11891 # define LT_DLGLOBAL RTLD_GLOBAL 11892 #else 11893 # ifdef DL_GLOBAL 11894 # define LT_DLGLOBAL DL_GLOBAL 11895 # else 11896 # define LT_DLGLOBAL 0 11897 # endif 11898 #endif 11899 11900 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11901 find out it does not work in some platform. */ 11902 #ifndef LT_DLLAZY_OR_NOW 11903 # ifdef RTLD_LAZY 11904 # define LT_DLLAZY_OR_NOW RTLD_LAZY 11905 # else 11906 # ifdef DL_LAZY 11907 # define LT_DLLAZY_OR_NOW DL_LAZY 11908 # else 11909 # ifdef RTLD_NOW 11910 # define LT_DLLAZY_OR_NOW RTLD_NOW 11911 # else 11912 # ifdef DL_NOW 11913 # define LT_DLLAZY_OR_NOW DL_NOW 11914 # else 11915 # define LT_DLLAZY_OR_NOW 0 11916 # endif 11917 # endif 11918 # endif 11919 # endif 11920 #endif 11921 11922 /* When -fvisbility=hidden is used, assume the code has been annotated 11923 correspondingly for the symbols needed. */ 11924 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11925 int fnord () __attribute__((visibility("default"))); 11926 #endif 11927 11928 int fnord () { return 42; } 11929 int main () 11930 { 11931 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11932 int status = $lt_dlunknown; 11933 11934 if (self) 11935 { 11936 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11937 else 11938 { 11939 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11940 else puts (dlerror ()); 11941 } 11942 /* dlclose (self); */ 11943 } 11944 else 11945 puts (dlerror ()); 11946 11947 return status; 11948 } 11949 _LT_EOF 11950 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11951 (eval $ac_link) 2>&5 11952 ac_status=$? 11953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11954 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11955 (./conftest; exit; ) >&5 2>/dev/null 11956 lt_status=$? 11957 case x$lt_status in 11958 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11959 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11960 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11961 esac 11962 else : 11963 # compilation failed 11964 lt_cv_dlopen_self_static=no 11965 fi 11966 fi 11967 rm -fr conftest* 11968 11969 11970 fi 11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11972 $as_echo "$lt_cv_dlopen_self_static" >&6; } 11973 fi 11974 11975 CPPFLAGS="$save_CPPFLAGS" 11976 LDFLAGS="$save_LDFLAGS" 11977 LIBS="$save_LIBS" 11978 ;; 11979 esac 11980 11981 case $lt_cv_dlopen_self in 11982 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11983 *) enable_dlopen_self=unknown ;; 11984 esac 11985 11986 case $lt_cv_dlopen_self_static in 11987 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11988 *) enable_dlopen_self_static=unknown ;; 11989 esac 11990 fi 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 striplib= 12009 old_striplib= 12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12011 $as_echo_n "checking whether stripping libraries is possible... " >&6; } 12012 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12013 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12014 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12016 $as_echo "yes" >&6; } 12017 else 12018 # FIXME - insert some real tests, host_os isn't really good enough 12019 case $host_os in 12020 darwin*) 12021 if test -n "$STRIP" ; then 12022 striplib="$STRIP -x" 12023 old_striplib="$STRIP -S" 12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12025 $as_echo "yes" >&6; } 12026 else 12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12028 $as_echo "no" >&6; } 12029 fi 12030 ;; 12031 *) 12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12033 $as_echo "no" >&6; } 12034 ;; 12035 esac 12036 fi 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 # Report which library types will actually be built 12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12051 $as_echo_n "checking if libtool supports shared libraries... " >&6; } 12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12053 $as_echo "$can_build_shared" >&6; } 12054 12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12056 $as_echo_n "checking whether to build shared libraries... " >&6; } 12057 test "$can_build_shared" = "no" && enable_shared=no 12058 12059 # On AIX, shared libraries and static libraries use the same namespace, and 12060 # are all built from PIC. 12061 case $host_os in 12062 aix3*) 12063 test "$enable_shared" = yes && enable_static=no 12064 if test -n "$RANLIB"; then 12065 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12066 postinstall_cmds='$RANLIB $lib' 12067 fi 12068 ;; 12069 12070 aix[4-9]*) 12071 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12072 test "$enable_shared" = yes && enable_static=no 12073 fi 12074 ;; 12075 esac 12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12077 $as_echo "$enable_shared" >&6; } 12078 12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12080 $as_echo_n "checking whether to build static libraries... " >&6; } 12081 # Make sure either enable_shared or enable_static is yes. 12082 test "$enable_shared" = yes || enable_static=yes 12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12084 $as_echo "$enable_static" >&6; } 12085 12086 12087 12088 12089 fi 12090 ac_ext=c 12091 ac_cpp='$CPP $CPPFLAGS' 12092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12094 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12095 12096 CC="$lt_save_CC" 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 ac_config_commands="$ac_config_commands libtool" 12113 12114 12115 12116 12117 # Only expand once: 12118 12119 12120 if test -n "$ac_tool_prefix"; then 12121 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 12122 set dummy ${ac_tool_prefix}windres; ac_word=$2 12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12124 $as_echo_n "checking for $ac_word... " >&6; } 12125 if ${ac_cv_prog_RC+:} false; then : 12126 $as_echo_n "(cached) " >&6 12127 else 12128 if test -n "$RC"; then 12129 ac_cv_prog_RC="$RC" # Let the user override the test. 12130 else 12131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12132 for as_dir in $PATH 12133 do 12134 IFS=$as_save_IFS 12135 test -z "$as_dir" && as_dir=. 12136 for ac_exec_ext in '' $ac_executable_extensions; do 12137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12138 ac_cv_prog_RC="${ac_tool_prefix}windres" 12139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12140 break 2 12141 fi 12142 done 12143 done 12144 IFS=$as_save_IFS 12145 12146 fi 12147 fi 12148 RC=$ac_cv_prog_RC 12149 if test -n "$RC"; then 12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 12151 $as_echo "$RC" >&6; } 12152 else 12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12154 $as_echo "no" >&6; } 12155 fi 12156 12157 12158 fi 12159 if test -z "$ac_cv_prog_RC"; then 12160 ac_ct_RC=$RC 12161 # Extract the first word of "windres", so it can be a program name with args. 12162 set dummy windres; ac_word=$2 12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12164 $as_echo_n "checking for $ac_word... " >&6; } 12165 if ${ac_cv_prog_ac_ct_RC+:} false; then : 12166 $as_echo_n "(cached) " >&6 12167 else 12168 if test -n "$ac_ct_RC"; then 12169 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test. 12170 else 12171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12172 for as_dir in $PATH 12173 do 12174 IFS=$as_save_IFS 12175 test -z "$as_dir" && as_dir=. 12176 for ac_exec_ext in '' $ac_executable_extensions; do 12177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12178 ac_cv_prog_ac_ct_RC="windres" 12179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12180 break 2 12181 fi 12182 done 12183 done 12184 IFS=$as_save_IFS 12185 12186 fi 12187 fi 12188 ac_ct_RC=$ac_cv_prog_ac_ct_RC 12189 if test -n "$ac_ct_RC"; then 12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5 12191 $as_echo "$ac_ct_RC" >&6; } 12192 else 12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12194 $as_echo "no" >&6; } 12195 fi 12196 12197 if test "x$ac_ct_RC" = x; then 12198 RC="" 12199 else 12200 case $cross_compiling:$ac_tool_warned in 12201 yes:) 12202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12204 ac_tool_warned=yes ;; 12205 esac 12206 RC=$ac_ct_RC 12207 fi 12208 else 12209 RC="$ac_cv_prog_RC" 12210 fi 12211 12212 12213 12214 12215 # Source file extension for RC test sources. 12216 ac_ext=rc 12217 12218 # Object file extension for compiled RC test sources. 12219 objext=o 12220 objext_RC=$objext 12221 12222 # Code to be used in simple compile tests 12223 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 12224 12225 # Code to be used in simple link tests 12226 lt_simple_link_test_code="$lt_simple_compile_test_code" 12227 12228 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12229 12230 12231 12232 12233 12234 12235 # If no C compiler was specified, use CC. 12236 LTCC=${LTCC-"$CC"} 12237 12238 # If no C compiler flags were specified, use CFLAGS. 12239 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12240 12241 # Allow CC to be a program name with arguments. 12242 compiler=$CC 12243 12244 12245 # save warnings/boilerplate of simple test code 12246 ac_outfile=conftest.$ac_objext 12247 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12248 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12249 _lt_compiler_boilerplate=`cat conftest.err` 12250 $RM conftest* 12251 12252 ac_outfile=conftest.$ac_objext 12253 echo "$lt_simple_link_test_code" >conftest.$ac_ext 12254 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12255 _lt_linker_boilerplate=`cat conftest.err` 12256 $RM -r conftest* 12257 12258 12259 # Allow CC to be a program name with arguments. 12260 lt_save_CC="$CC" 12261 lt_save_CFLAGS=$CFLAGS 12262 lt_save_GCC=$GCC 12263 GCC= 12264 CC=${RC-"windres"} 12265 CFLAGS= 12266 compiler=$CC 12267 compiler_RC=$CC 12268 for cc_temp in $compiler""; do 12269 case $cc_temp in 12270 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12271 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12272 \-*) ;; 12273 *) break;; 12274 esac 12275 done 12276 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 12277 12278 lt_cv_prog_compiler_c_o_RC=yes 12279 12280 if test -n "$compiler"; then 12281 : 12282 12283 12284 12285 fi 12286 12287 GCC=$lt_save_GCC 12288 ac_ext=c 12289 ac_cpp='$CPP $CPPFLAGS' 12290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12292 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12293 12294 CC=$lt_save_CC 12295 CFLAGS=$lt_save_CFLAGS 12296 12297 12298 PACKAGE_VERSION_MAJOR=${PACKAGE_VERSION%.*.*} 12299 PACKAGE_VERSION_MINOR=${PACKAGE_VERSION%.*}; PACKAGE_VERSION_MINOR=${PACKAGE_VERSION_MINOR#*.} 12300 PACKAGE_VERSION_SUBMINOR=${PACKAGE_VERSION#*.*.} 12301 12302 12303 12304 ac_config_files="$ac_config_files src/microhttpd/microhttpd_dll_res.rc" 12305 12306 12307 MHD_LIB_CPPFLAGS="" 12308 MHD_LIB_CFLAGS="" 12309 MHD_LIB_LDFLAGS="" 12310 MHD_LIBDEPS="" 12311 12312 12313 # Check whether --with-threads was given. 12314 if test "${with_threads+set}" = set; then : 12315 withval=$with_threads; 12316 else 12317 with_threads='auto' 12318 fi 12319 12320 test "x$with_threads" = "xwin32" && with_threads='w32' 12321 test "x$with_threads" = "xpthreads" && with_threads='posix' 12322 12323 # Check for posix threads support 12324 12325 12326 ac_ext=c 12327 ac_cpp='$CPP $CPPFLAGS' 12328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12330 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12331 12332 ax_pthread_ok=no 12333 12334 # We used to check for pthread.h first, but this fails if pthread.h 12335 # requires special compiler flags (e.g. on True64 or Sequent). 12336 # It gets checked for in the link test anyway. 12337 12338 # First of all, check if the user has set any of the PTHREAD_LIBS, 12339 # etcetera environment variables, and if threads linking works using 12340 # them: 12341 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 12342 save_CFLAGS="$CFLAGS" 12343 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 12344 save_LIBS="$LIBS" 12345 LIBS="$PTHREAD_LIBS $LIBS" 12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 12347 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 12348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12349 /* end confdefs.h. */ 12350 12351 /* Override any GCC internal prototype to avoid an error. 12352 Use char because int might match the return type of a GCC 12353 builtin and then its argument prototype would still apply. */ 12354 #ifdef __cplusplus 12355 extern "C" 12356 #endif 12357 char pthread_join (); 12358 int 12359 main () 12360 { 12361 return pthread_join (); 12362 ; 12363 return 0; 12364 } 12365 _ACEOF 12366 if ac_fn_c_try_link "$LINENO"; then : 12367 ax_pthread_ok=yes 12368 fi 12369 rm -f core conftest.err conftest.$ac_objext \ 12370 conftest$ac_exeext conftest.$ac_ext 12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 12372 $as_echo "$ax_pthread_ok" >&6; } 12373 if test x"$ax_pthread_ok" = xno; then 12374 PTHREAD_LIBS="" 12375 PTHREAD_CFLAGS="" 12376 fi 12377 LIBS="$save_LIBS" 12378 CFLAGS="$save_CFLAGS" 12379 fi 12380 12381 # We must check for the threads library under a number of different 12382 # names; the ordering is very important because some systems 12383 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the 12384 # libraries is broken (non-POSIX). 12385 12386 # Create a list of thread flags to try. Items starting with a "-" are 12387 # C compiler flags, and other items are library names, except for "none" 12388 # which indicates that we try without any flags at all, and "pthread-config" 12389 # which is a program returning the flags for the Pth emulation library. 12390 12391 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 12392 12393 # The ordering *is* (sometimes) important. Some notes on the 12394 # individual items follow: 12395 12396 # pthreads: AIX (must check this before -lpthread) 12397 # none: in case threads are in libc; should be tried before -Kthread and 12398 # other compiler flags to prevent continual compiler warnings 12399 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 12400 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 12401 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 12402 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 12403 # -pthreads: Solaris/gcc 12404 # -mthreads: Mingw32/gcc, Lynx/gcc 12405 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 12406 # doesn't hurt to check since this sometimes defines pthreads too; 12407 # also defines -D_REENTRANT) 12408 # ... -mt is also the pthreads flag for HP/aCC 12409 # pthread: Linux, etcetera 12410 # --thread-safe: KAI C++ 12411 # pthread-config: use pthread-config program (for GNU Pth library) 12412 12413 case ${host_os} in 12414 solaris*) 12415 12416 # On Solaris (at least, for some versions), libc contains stubbed 12417 # (non-functional) versions of the pthreads routines, so link-based 12418 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 12419 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 12420 # a function called by this macro, so we could check for that, but 12421 # who knows whether they'll stub that too in a future libc.) So, 12422 # we'll just look for -pthreads and -lpthread first: 12423 12424 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 12425 ;; 12426 12427 darwin*) 12428 ax_pthread_flags="-pthread $ax_pthread_flags" 12429 ;; 12430 esac 12431 12432 # Clang doesn't consider unrecognized options an error unless we specify 12433 # -Werror. We throw in some extra Clang-specific options to ensure that 12434 # this doesn't happen for GCC, which also accepts -Werror. 12435 12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5 12437 $as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; } 12438 save_CFLAGS="$CFLAGS" 12439 ax_pthread_extra_flags="-Werror" 12440 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument" 12441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12442 /* end confdefs.h. */ 12443 int foo(void); 12444 int 12445 main () 12446 { 12447 foo() 12448 ; 12449 return 0; 12450 } 12451 _ACEOF 12452 if ac_fn_c_try_compile "$LINENO"; then : 12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12454 $as_echo "yes" >&6; } 12455 else 12456 ax_pthread_extra_flags= 12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12458 $as_echo "no" >&6; } 12459 fi 12460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12461 CFLAGS="$save_CFLAGS" 12462 12463 if test x"$ax_pthread_ok" = xno; then 12464 for flag in $ax_pthread_flags; do 12465 12466 case $flag in 12467 none) 12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 12469 $as_echo_n "checking whether pthreads work without any flags... " >&6; } 12470 ;; 12471 12472 -*) 12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 12474 $as_echo_n "checking whether pthreads work with $flag... " >&6; } 12475 PTHREAD_CFLAGS="$flag" 12476 ;; 12477 12478 pthread-config) 12479 # Extract the first word of "pthread-config", so it can be a program name with args. 12480 set dummy pthread-config; ac_word=$2 12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12482 $as_echo_n "checking for $ac_word... " >&6; } 12483 if ${ac_cv_prog_ax_pthread_config+:} false; then : 12484 $as_echo_n "(cached) " >&6 12485 else 12486 if test -n "$ax_pthread_config"; then 12487 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 12488 else 12489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12490 for as_dir in $PATH 12491 do 12492 IFS=$as_save_IFS 12493 test -z "$as_dir" && as_dir=. 12494 for ac_exec_ext in '' $ac_executable_extensions; do 12495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12496 ac_cv_prog_ax_pthread_config="yes" 12497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12498 break 2 12499 fi 12500 done 12501 done 12502 IFS=$as_save_IFS 12503 12504 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 12505 fi 12506 fi 12507 ax_pthread_config=$ac_cv_prog_ax_pthread_config 12508 if test -n "$ax_pthread_config"; then 12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 12510 $as_echo "$ax_pthread_config" >&6; } 12511 else 12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12513 $as_echo "no" >&6; } 12514 fi 12515 12516 12517 if test x"$ax_pthread_config" = xno; then continue; fi 12518 PTHREAD_CFLAGS="`pthread-config --cflags`" 12519 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 12520 ;; 12521 12522 *) 12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 12524 $as_echo_n "checking for the pthreads library -l$flag... " >&6; } 12525 PTHREAD_LIBS="-l$flag" 12526 ;; 12527 esac 12528 12529 save_LIBS="$LIBS" 12530 save_CFLAGS="$CFLAGS" 12531 LIBS="$PTHREAD_LIBS $LIBS" 12532 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags" 12533 12534 # Check for various functions. We must include pthread.h, 12535 # since some functions may be macros. (On the Sequent, we 12536 # need a special flag -Kthread to make this header compile.) 12537 # We check for pthread_join because it is in -lpthread on IRIX 12538 # while pthread_create is in libc. We check for pthread_attr_init 12539 # due to DEC craziness with -lpthreads. We check for 12540 # pthread_cleanup_push because it is one of the few pthread 12541 # functions on Solaris that doesn't have a non-functional libc stub. 12542 # We try pthread_create on general principles. 12543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12544 /* end confdefs.h. */ 12545 #include <pthread.h> 12546 static void routine(void *a) { a = 0; } 12547 static void *start_routine(void *a) { return a; } 12548 int 12549 main () 12550 { 12551 pthread_t th; pthread_attr_t attr; 12552 pthread_create(&th, 0, start_routine, 0); 12553 pthread_join(th, 0); 12554 pthread_attr_init(&attr); 12555 pthread_cleanup_push(routine, 0); 12556 pthread_cleanup_pop(0) /* ; */ 12557 ; 12558 return 0; 12559 } 12560 _ACEOF 12561 if ac_fn_c_try_link "$LINENO"; then : 12562 ax_pthread_ok=yes 12563 fi 12564 rm -f core conftest.err conftest.$ac_objext \ 12565 conftest$ac_exeext conftest.$ac_ext 12566 12567 LIBS="$save_LIBS" 12568 CFLAGS="$save_CFLAGS" 12569 12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 12571 $as_echo "$ax_pthread_ok" >&6; } 12572 if test "x$ax_pthread_ok" = xyes; then 12573 break; 12574 fi 12575 12576 PTHREAD_LIBS="" 12577 PTHREAD_CFLAGS="" 12578 done 12579 fi 12580 12581 # Various other checks: 12582 if test "x$ax_pthread_ok" = xyes; then 12583 save_LIBS="$LIBS" 12584 LIBS="$PTHREAD_LIBS $LIBS" 12585 save_CFLAGS="$CFLAGS" 12586 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 12587 12588 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 12589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 12590 $as_echo_n "checking for joinable pthread attribute... " >&6; } 12591 attr_name=unknown 12592 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 12593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12594 /* end confdefs.h. */ 12595 #include <pthread.h> 12596 int 12597 main () 12598 { 12599 int attr = $attr; return attr /* ; */ 12600 ; 12601 return 0; 12602 } 12603 _ACEOF 12604 if ac_fn_c_try_link "$LINENO"; then : 12605 attr_name=$attr; break 12606 fi 12607 rm -f core conftest.err conftest.$ac_objext \ 12608 conftest$ac_exeext conftest.$ac_ext 12609 done 12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 12611 $as_echo "$attr_name" >&6; } 12612 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 12613 12614 cat >>confdefs.h <<_ACEOF 12615 #define PTHREAD_CREATE_JOINABLE $attr_name 12616 _ACEOF 12617 12618 fi 12619 12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 12621 $as_echo_n "checking if more special flags are required for pthreads... " >&6; } 12622 flag=no 12623 case ${host_os} in 12624 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; 12625 osf* | hpux*) flag="-D_REENTRANT";; 12626 solaris*) 12627 if test "$GCC" = "yes"; then 12628 flag="-D_REENTRANT" 12629 else 12630 # TODO: What about Clang on Solaris? 12631 flag="-mt -D_REENTRANT" 12632 fi 12633 ;; 12634 esac 12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5 12636 $as_echo "$flag" >&6; } 12637 if test "x$flag" != xno; then 12638 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 12639 fi 12640 12641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 12642 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 12643 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 12644 $as_echo_n "(cached) " >&6 12645 else 12646 12647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12648 /* end confdefs.h. */ 12649 #include <pthread.h> 12650 int 12651 main () 12652 { 12653 int i = PTHREAD_PRIO_INHERIT; 12654 ; 12655 return 0; 12656 } 12657 _ACEOF 12658 if ac_fn_c_try_link "$LINENO"; then : 12659 ax_cv_PTHREAD_PRIO_INHERIT=yes 12660 else 12661 ax_cv_PTHREAD_PRIO_INHERIT=no 12662 fi 12663 rm -f core conftest.err conftest.$ac_objext \ 12664 conftest$ac_exeext conftest.$ac_ext 12665 12666 fi 12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 12668 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 12669 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : 12670 12671 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 12672 12673 fi 12674 12675 LIBS="$save_LIBS" 12676 CFLAGS="$save_CFLAGS" 12677 12678 # More AIX lossage: compile with *_r variant 12679 if test "x$GCC" != xyes; then 12680 case $host_os in 12681 aix*) 12682 case "x/$CC" in #( 12683 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 12684 #handle absolute path differently from PATH based program lookup 12685 case "x$CC" in #( 12686 x/*) : 12687 if as_fn_executable_p ${CC}_r; then : 12688 PTHREAD_CC="${CC}_r" 12689 fi ;; #( 12690 *) : 12691 for ac_prog in ${CC}_r 12692 do 12693 # Extract the first word of "$ac_prog", so it can be a program name with args. 12694 set dummy $ac_prog; ac_word=$2 12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12696 $as_echo_n "checking for $ac_word... " >&6; } 12697 if ${ac_cv_prog_PTHREAD_CC+:} false; then : 12698 $as_echo_n "(cached) " >&6 12699 else 12700 if test -n "$PTHREAD_CC"; then 12701 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 12702 else 12703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12704 for as_dir in $PATH 12705 do 12706 IFS=$as_save_IFS 12707 test -z "$as_dir" && as_dir=. 12708 for ac_exec_ext in '' $ac_executable_extensions; do 12709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12710 ac_cv_prog_PTHREAD_CC="$ac_prog" 12711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12712 break 2 12713 fi 12714 done 12715 done 12716 IFS=$as_save_IFS 12717 12718 fi 12719 fi 12720 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 12721 if test -n "$PTHREAD_CC"; then 12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 12723 $as_echo "$PTHREAD_CC" >&6; } 12724 else 12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12726 $as_echo "no" >&6; } 12727 fi 12728 12729 12730 test -n "$PTHREAD_CC" && break 12731 done 12732 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 12733 ;; 12734 esac ;; #( 12735 *) : 12736 ;; 12737 esac 12738 ;; 12739 esac 12740 fi 12741 fi 12742 12743 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 12744 12745 12746 12747 12748 12749 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 12750 if test x"$ax_pthread_ok" = xyes; then 12751 HAVE_POSIX_THREADS='yes' 12752 : 12753 else 12754 ax_pthread_ok=no 12755 HAVE_POSIX_THREADS='no' 12756 fi 12757 ac_ext=c 12758 ac_cpp='$CPP $CPPFLAGS' 12759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12761 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12762 12763 12764 if test "x$HAVE_POSIX_THREADS" = "xyes"; then 12765 HAVE_POSIX_THREADS_TRUE= 12766 HAVE_POSIX_THREADS_FALSE='#' 12767 else 12768 HAVE_POSIX_THREADS_TRUE='#' 12769 HAVE_POSIX_THREADS_FALSE= 12770 fi 12771 12772 # Simple check for W32 threads support 12773 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" 12774 if test "x$ac_cv_header_windows_h" = xyes; then : 12775 12776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateThread()" >&5 12777 $as_echo_n "checking for CreateThread()... " >&6; } 12778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12779 /* end confdefs.h. */ 12780 #include <windows.h> 12781 int 12782 main () 12783 { 12784 HANDLE h = CreateThread(NULL, 0, NULL, NULL, 0, NULL); 12785 ; 12786 return 0; 12787 } 12788 _ACEOF 12789 if ac_fn_c_try_link "$LINENO"; then : 12790 12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12792 $as_echo "yes" >&6; } 12793 HAVE_W32_THREADS='yes' 12794 12795 else 12796 12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12798 $as_echo "no" >&6; } 12799 HAVE_W32_THREADS='no' 12800 12801 fi 12802 rm -f core conftest.err conftest.$ac_objext \ 12803 conftest$ac_exeext conftest.$ac_ext 12804 12805 else 12806 HAVE_W32_THREADS='no' 12807 fi 12808 12809 12810 12811 # for pkg-config 12812 MHD_LIBDEPS="" 12813 MHD_REQ_PRIVATE='' 12814 # Check system type 12815 case "$host_os" in 12816 *darwin* | *rhapsody* | *macosx*) 12817 12818 cat >>confdefs.h <<_ACEOF 12819 #define OSX 1 12820 _ACEOF 12821 12822 CFLAGS="-no-cpp-precomp -fno-common $CFLAGS" 12823 ;; 12824 freebsd*) 12825 12826 cat >>confdefs.h <<_ACEOF 12827 #define SOMEBSD 1 12828 _ACEOF 12829 12830 12831 cat >>confdefs.h <<_ACEOF 12832 #define FREEBSD 1 12833 _ACEOF 12834 12835 ;; 12836 openbsd*) 12837 12838 cat >>confdefs.h <<_ACEOF 12839 #define SOMEBSD 1 12840 _ACEOF 12841 12842 12843 cat >>confdefs.h <<_ACEOF 12844 #define OPENBSD 1 12845 _ACEOF 12846 12847 ;; 12848 netbsd*) 12849 12850 cat >>confdefs.h <<_ACEOF 12851 #define SOMEBSD 1 12852 _ACEOF 12853 12854 12855 cat >>confdefs.h <<_ACEOF 12856 #define NETBSD 1 12857 _ACEOF 12858 12859 ;; 12860 *solaris*) 12861 12862 cat >>confdefs.h <<_ACEOF 12863 #define SOLARIS 1 12864 _ACEOF 12865 12866 12867 cat >>confdefs.h <<_ACEOF 12868 #define _REENTRANT 1 12869 _ACEOF 12870 12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 12872 $as_echo_n "checking for library containing gethostbyname... " >&6; } 12873 if ${ac_cv_search_gethostbyname+:} false; then : 12874 $as_echo_n "(cached) " >&6 12875 else 12876 ac_func_search_save_LIBS=$LIBS 12877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12878 /* end confdefs.h. */ 12879 12880 /* Override any GCC internal prototype to avoid an error. 12881 Use char because int might match the return type of a GCC 12882 builtin and then its argument prototype would still apply. */ 12883 #ifdef __cplusplus 12884 extern "C" 12885 #endif 12886 char gethostbyname (); 12887 int 12888 main () 12889 { 12890 return gethostbyname (); 12891 ; 12892 return 0; 12893 } 12894 _ACEOF 12895 for ac_lib in '' nsl; do 12896 if test -z "$ac_lib"; then 12897 ac_res="none required" 12898 else 12899 ac_res=-l$ac_lib 12900 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12901 fi 12902 if ac_fn_c_try_link "$LINENO"; then : 12903 ac_cv_search_gethostbyname=$ac_res 12904 fi 12905 rm -f core conftest.err conftest.$ac_objext \ 12906 conftest$ac_exeext 12907 if ${ac_cv_search_gethostbyname+:} false; then : 12908 break 12909 fi 12910 done 12911 if ${ac_cv_search_gethostbyname+:} false; then : 12912 12913 else 12914 ac_cv_search_gethostbyname=no 12915 fi 12916 rm conftest.$ac_ext 12917 LIBS=$ac_func_search_save_LIBS 12918 fi 12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 12920 $as_echo "$ac_cv_search_gethostbyname" >&6; } 12921 ac_res=$ac_cv_search_gethostbyname 12922 if test "$ac_res" != no; then : 12923 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12924 12925 fi 12926 12927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 12928 $as_echo_n "checking for library containing socket... " >&6; } 12929 if ${ac_cv_search_socket+:} false; then : 12930 $as_echo_n "(cached) " >&6 12931 else 12932 ac_func_search_save_LIBS=$LIBS 12933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12934 /* end confdefs.h. */ 12935 12936 /* Override any GCC internal prototype to avoid an error. 12937 Use char because int might match the return type of a GCC 12938 builtin and then its argument prototype would still apply. */ 12939 #ifdef __cplusplus 12940 extern "C" 12941 #endif 12942 char socket (); 12943 int 12944 main () 12945 { 12946 return socket (); 12947 ; 12948 return 0; 12949 } 12950 _ACEOF 12951 for ac_lib in '' socket; do 12952 if test -z "$ac_lib"; then 12953 ac_res="none required" 12954 else 12955 ac_res=-l$ac_lib 12956 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12957 fi 12958 if ac_fn_c_try_link "$LINENO"; then : 12959 ac_cv_search_socket=$ac_res 12960 fi 12961 rm -f core conftest.err conftest.$ac_objext \ 12962 conftest$ac_exeext 12963 if ${ac_cv_search_socket+:} false; then : 12964 break 12965 fi 12966 done 12967 if ${ac_cv_search_socket+:} false; then : 12968 12969 else 12970 ac_cv_search_socket=no 12971 fi 12972 rm conftest.$ac_ext 12973 LIBS=$ac_func_search_save_LIBS 12974 fi 12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 12976 $as_echo "$ac_cv_search_socket" >&6; } 12977 ac_res=$ac_cv_search_socket 12978 if test "$ac_res" != no; then : 12979 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12980 12981 fi 12982 12983 ;; 12984 *arm-linux*) 12985 12986 cat >>confdefs.h <<_ACEOF 12987 #define LINUX 1 12988 _ACEOF 12989 12990 12991 cat >>confdefs.h <<_ACEOF 12992 #define HAVE_LISTEN_SHUTDOWN 1 12993 _ACEOF 12994 12995 CFLAGS="-fPIC -pipe $CFLAGS" 12996 ;; 12997 *linux*) 12998 12999 cat >>confdefs.h <<_ACEOF 13000 #define LINUX 1 13001 _ACEOF 13002 13003 13004 cat >>confdefs.h <<_ACEOF 13005 #define HAVE_LISTEN_SHUTDOWN 1 13006 _ACEOF 13007 13008 ;; 13009 *cygwin*) 13010 13011 cat >>confdefs.h <<_ACEOF 13012 #define CYGWIN 1 13013 _ACEOF 13014 13015 os_is_windows=yes 13016 ;; 13017 *mingw*) 13018 13019 cat >>confdefs.h <<_ACEOF 13020 #define MINGW 1 13021 _ACEOF 13022 13023 13024 cat >>confdefs.h <<_ACEOF 13025 #define WINDOWS 1 13026 _ACEOF 13027 13028 LIBS="$LIBS -lws2_32" 13029 for ac_header in winsock2.h ws2tcpip.h 13030 do : 13031 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13032 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13033 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13034 cat >>confdefs.h <<_ACEOF 13035 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13036 _ACEOF 13037 13038 else 13039 as_fn_error $? "Winsock2 headers are required for W32" "$LINENO" 5 13040 fi 13041 13042 done 13043 13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MS lib utility" >&5 13045 $as_echo_n "checking for MS lib utility... " >&6; } 13046 if ${ac_cv_use_ms_lib_tool+:} false; then : 13047 $as_echo_n "(cached) " >&6 13048 else 13049 mslibcheck=`lib 2>&1` 13050 if [[ $mslibcheck = "Microsoft (R) Library Manager"* ]]; then 13051 ac_cv_use_ms_lib_tool=yes 13052 else 13053 ac_cv_use_ms_lib_tool=no 13054 fi 13055 13056 fi 13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_use_ms_lib_tool" >&5 13058 $as_echo "$ac_cv_use_ms_lib_tool" >&6; } 13059 if test "x$ac_cv_use_ms_lib_tool" = "xyes"; then 13060 MS_LIB_TOOL=lib 13061 13062 fi 13063 13064 os_is_windows=yes 13065 os_is_native_w32=yes 13066 ;; 13067 *openedition*) 13068 13069 cat >>confdefs.h <<_ACEOF 13070 #define OS390 1 13071 _ACEOF 13072 13073 ;; 13074 *) 13075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unrecognised OS $host_os" >&5 13076 $as_echo "$as_me: WARNING: Unrecognised OS $host_os" >&2;} 13077 13078 cat >>confdefs.h <<_ACEOF 13079 #define OTHEROS 1 13080 _ACEOF 13081 13082 # You might want to find out if your OS supports shutdown on listen sockets, 13083 # and extend the switch statement; if we do not have 'HAVE_LISTEN_SHUTDOWN', 13084 # pipes are used instead to signal 'select'. 13085 # AC_DEFINE_UNQUOTED(HAVE_LISTEN_SHUTDOWN,1,[can use shutdown on listen sockets]) 13086 ;; 13087 esac 13088 13089 if test "x$with_threads" = "xposix"; then 13090 # forced posix threads 13091 if test "x$HAVE_POSIX_THREADS" = "xyes"; then 13092 USE_THREADS='posix' 13093 else 13094 if test "x$HAVE_W32_THREADS" = "xyes"; then 13095 as_fn_error $? "Posix threads are not available. Try to configure --with-threads=auto" "$LINENO" 5 13096 else 13097 as_fn_error $? "Posix threads are not available" "$LINENO" 5 13098 fi 13099 fi 13100 elif test "x$with_threads" = "xw32"; then 13101 # forced w32 threads 13102 if test "x$HAVE_W32_THREADS" = "xyes"; then 13103 USE_THREADS='w32' 13104 else 13105 if test "x$HAVE_POSIX_THREADS" = "xyes"; then 13106 as_fn_error $? "W32 threads are not available. Try to configure --with-threads=auto" "$LINENO" 5 13107 else 13108 as_fn_error $? "W32 threads are not available" "$LINENO" 5 13109 fi 13110 fi 13111 else 13112 # automatic threads lib selection 13113 if test "x$HAVE_POSIX_THREADS" = "xyes" && test "x$HAVE_W32_THREADS" = "xyes"; then 13114 if test "x$os_is_native_w32" = "xyes"; then 13115 USE_THREADS='w32' 13116 else 13117 USE_THREADS='posix' 13118 fi 13119 elif test "x$HAVE_POSIX_THREADS" = "xyes"; then 13120 USE_THREADS='posix' 13121 elif test "x$HAVE_W32_THREADS" = "xyes"; then 13122 USE_THREADS='w32' 13123 else 13124 as_fn_error $? "No threading lib is available. Cosider installing pthreads" "$LINENO" 5 13125 fi 13126 fi 13127 13128 if test "x$USE_THREADS" = "xposix"; then 13129 CC="$PTHREAD_CC" 13130 13131 $as_echo "#define MHD_USE_POSIX_THREADS 1" >>confdefs.h 13132 13133 MHD_LIB_CFLAGS="$MHD_LIB_CFLAGS $PTHREAD_CFLAGS" 13134 MHD_LIBDEPS="$PTHREAD_LIBS $MHD_LIBDEPS" 13135 elif test "x$USE_THREADS" = "xw32"; then 13136 13137 $as_echo "#define MHD_USE_W32_THREADS 1" >>confdefs.h 13138 13139 fi 13140 if test "x$USE_THREADS" = "xposix"; then 13141 USE_POSIX_THREADS_TRUE= 13142 USE_POSIX_THREADS_FALSE='#' 13143 else 13144 USE_POSIX_THREADS_TRUE='#' 13145 USE_POSIX_THREADS_FALSE= 13146 fi 13147 13148 if test "x$USE_THREADS" = "xw32"; then 13149 USE_W32_THREADS_TRUE= 13150 USE_W32_THREADS_FALSE='#' 13151 else 13152 USE_W32_THREADS_TRUE='#' 13153 USE_W32_THREADS_FALSE= 13154 fi 13155 13156 13157 13158 if test "x$os_is_native_w32" = "xyes"; then 13159 HAVE_W32_TRUE= 13160 HAVE_W32_FALSE='#' 13161 else 13162 HAVE_W32_TRUE='#' 13163 HAVE_W32_FALSE= 13164 fi 13165 13166 w32_shared_lib_exp=no 13167 if test "x$enable_shared" = "xyes" && test "x$os_is_native_w32" = "xyes"; then 13168 if test "x$ac_cv_use_ms_lib_tool" = "xyes" || test -n "$DLLTOOL"; then 13169 w32_shared_lib_exp=yes 13170 else 13171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNU dlltool or MS lib.exe is required for creating shared library export on W32" >&5 13172 $as_echo "$as_me: WARNING: GNU dlltool or MS lib.exe is required for creating shared library export on W32" >&2;} 13173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Export library libmicrohttpd.lib will not be created" >&5 13174 $as_echo "$as_me: WARNING: Export library libmicrohttpd.lib will not be created" >&2;} 13175 fi 13176 fi 13177 if test "x$w32_shared_lib_exp" = "xyes"; then 13178 W32_SHARED_LIB_EXP_TRUE= 13179 W32_SHARED_LIB_EXP_FALSE='#' 13180 else 13181 W32_SHARED_LIB_EXP_TRUE='#' 13182 W32_SHARED_LIB_EXP_FALSE= 13183 fi 13184 13185 if test "x$ac_cv_use_ms_lib_tool" = "xyes"; then 13186 USE_MS_LIB_TOOL_TRUE= 13187 USE_MS_LIB_TOOL_FALSE='#' 13188 else 13189 USE_MS_LIB_TOOL_TRUE='#' 13190 USE_MS_LIB_TOOL_FALSE= 13191 fi 13192 13193 13194 # set GCC options 13195 # use '-fno-strict-aliasing', but only if the compiler 13196 # and linker can take it 13197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fno-strict-aliasing" >&5 13198 $as_echo_n "checking whether the linker accepts -fno-strict-aliasing... " >&6; } 13199 if ${ax_cv_check_ldflags___fno_strict_aliasing+:} false; then : 13200 $as_echo_n "(cached) " >&6 13201 else 13202 13203 ax_check_save_flags=$LDFLAGS 13204 LDFLAGS="$LDFLAGS -fno-strict-aliasing" 13205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13206 /* end confdefs.h. */ 13207 13208 int 13209 main () 13210 { 13211 13212 ; 13213 return 0; 13214 } 13215 _ACEOF 13216 if ac_fn_c_try_link "$LINENO"; then : 13217 ax_cv_check_ldflags___fno_strict_aliasing=yes 13218 else 13219 ax_cv_check_ldflags___fno_strict_aliasing=no 13220 fi 13221 rm -f core conftest.err conftest.$ac_objext \ 13222 conftest$ac_exeext conftest.$ac_ext 13223 LDFLAGS=$ax_check_save_flags 13224 fi 13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fno_strict_aliasing" >&5 13226 $as_echo "$ax_cv_check_ldflags___fno_strict_aliasing" >&6; } 13227 if test x"$ax_cv_check_ldflags___fno_strict_aliasing" = xyes; then : 13228 13229 13230 13231 13232 for flag in -fno-strict-aliasing; do 13233 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` 13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 13235 $as_echo_n "checking whether C compiler accepts $flag... " >&6; } 13236 if eval \${$as_CACHEVAR+:} false; then : 13237 $as_echo_n "(cached) " >&6 13238 else 13239 13240 ax_check_save_flags=$CFLAGS 13241 CFLAGS="$CFLAGS $flag" 13242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13243 /* end confdefs.h. */ 13244 13245 int 13246 main () 13247 { 13248 13249 ; 13250 return 0; 13251 } 13252 _ACEOF 13253 if ac_fn_c_try_compile "$LINENO"; then : 13254 eval "$as_CACHEVAR=yes" 13255 else 13256 eval "$as_CACHEVAR=no" 13257 fi 13258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13259 CFLAGS=$ax_check_save_flags 13260 fi 13261 eval ac_res=\$$as_CACHEVAR 13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13263 $as_echo "$ac_res" >&6; } 13264 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : 13265 if ${CFLAGS+:} false; then : 13266 case " $CFLAGS " in 13267 *" $flag "*) 13268 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5 13269 (: CFLAGS already contains $flag) 2>&5 13270 ac_status=$? 13271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13272 test $ac_status = 0; } 13273 ;; 13274 *) 13275 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5 13276 (: CFLAGS="$CFLAGS $flag") 2>&5 13277 ac_status=$? 13278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13279 test $ac_status = 0; } 13280 CFLAGS="$CFLAGS $flag" 13281 ;; 13282 esac 13283 else 13284 CFLAGS="$flag" 13285 fi 13286 13287 else 13288 : 13289 fi 13290 13291 done 13292 13293 else 13294 : 13295 fi 13296 13297 13298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 13299 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 13300 if ${ac_cv_c_bigendian+:} false; then : 13301 $as_echo_n "(cached) " >&6 13302 else 13303 ac_cv_c_bigendian=unknown 13304 # See if we're dealing with a universal compiler. 13305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13306 /* end confdefs.h. */ 13307 #ifndef __APPLE_CC__ 13308 not a universal capable compiler 13309 #endif 13310 typedef int dummy; 13311 13312 _ACEOF 13313 if ac_fn_c_try_compile "$LINENO"; then : 13314 13315 # Check for potential -arch flags. It is not universal unless 13316 # there are at least two -arch flags with different values. 13317 ac_arch= 13318 ac_prev= 13319 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 13320 if test -n "$ac_prev"; then 13321 case $ac_word in 13322 i?86 | x86_64 | ppc | ppc64) 13323 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 13324 ac_arch=$ac_word 13325 else 13326 ac_cv_c_bigendian=universal 13327 break 13328 fi 13329 ;; 13330 esac 13331 ac_prev= 13332 elif test "x$ac_word" = "x-arch"; then 13333 ac_prev=arch 13334 fi 13335 done 13336 fi 13337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13338 if test $ac_cv_c_bigendian = unknown; then 13339 # See if sys/param.h defines the BYTE_ORDER macro. 13340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13341 /* end confdefs.h. */ 13342 #include <sys/types.h> 13343 #include <sys/param.h> 13344 13345 int 13346 main () 13347 { 13348 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 13349 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 13350 && LITTLE_ENDIAN) 13351 bogus endian macros 13352 #endif 13353 13354 ; 13355 return 0; 13356 } 13357 _ACEOF 13358 if ac_fn_c_try_compile "$LINENO"; then : 13359 # It does; now see whether it defined to BIG_ENDIAN or not. 13360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13361 /* end confdefs.h. */ 13362 #include <sys/types.h> 13363 #include <sys/param.h> 13364 13365 int 13366 main () 13367 { 13368 #if BYTE_ORDER != BIG_ENDIAN 13369 not big endian 13370 #endif 13371 13372 ; 13373 return 0; 13374 } 13375 _ACEOF 13376 if ac_fn_c_try_compile "$LINENO"; then : 13377 ac_cv_c_bigendian=yes 13378 else 13379 ac_cv_c_bigendian=no 13380 fi 13381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13382 fi 13383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13384 fi 13385 if test $ac_cv_c_bigendian = unknown; then 13386 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 13387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13388 /* end confdefs.h. */ 13389 #include <limits.h> 13390 13391 int 13392 main () 13393 { 13394 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 13395 bogus endian macros 13396 #endif 13397 13398 ; 13399 return 0; 13400 } 13401 _ACEOF 13402 if ac_fn_c_try_compile "$LINENO"; then : 13403 # It does; now see whether it defined to _BIG_ENDIAN or not. 13404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13405 /* end confdefs.h. */ 13406 #include <limits.h> 13407 13408 int 13409 main () 13410 { 13411 #ifndef _BIG_ENDIAN 13412 not big endian 13413 #endif 13414 13415 ; 13416 return 0; 13417 } 13418 _ACEOF 13419 if ac_fn_c_try_compile "$LINENO"; then : 13420 ac_cv_c_bigendian=yes 13421 else 13422 ac_cv_c_bigendian=no 13423 fi 13424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13425 fi 13426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13427 fi 13428 if test $ac_cv_c_bigendian = unknown; then 13429 # Compile a test program. 13430 if test "$cross_compiling" = yes; then : 13431 # Try to guess by grepping values from an object file. 13432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13433 /* end confdefs.h. */ 13434 short int ascii_mm[] = 13435 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 13436 short int ascii_ii[] = 13437 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 13438 int use_ascii (int i) { 13439 return ascii_mm[i] + ascii_ii[i]; 13440 } 13441 short int ebcdic_ii[] = 13442 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 13443 short int ebcdic_mm[] = 13444 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 13445 int use_ebcdic (int i) { 13446 return ebcdic_mm[i] + ebcdic_ii[i]; 13447 } 13448 extern int foo; 13449 13450 int 13451 main () 13452 { 13453 return use_ascii (foo) == use_ebcdic (foo); 13454 ; 13455 return 0; 13456 } 13457 _ACEOF 13458 if ac_fn_c_try_compile "$LINENO"; then : 13459 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 13460 ac_cv_c_bigendian=yes 13461 fi 13462 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 13463 if test "$ac_cv_c_bigendian" = unknown; then 13464 ac_cv_c_bigendian=no 13465 else 13466 # finding both strings is unlikely to happen, but who knows? 13467 ac_cv_c_bigendian=unknown 13468 fi 13469 fi 13470 fi 13471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13472 else 13473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13474 /* end confdefs.h. */ 13475 $ac_includes_default 13476 int 13477 main () 13478 { 13479 13480 /* Are we little or big endian? From Harbison&Steele. */ 13481 union 13482 { 13483 long int l; 13484 char c[sizeof (long int)]; 13485 } u; 13486 u.l = 1; 13487 return u.c[sizeof (long int) - 1] == 1; 13488 13489 ; 13490 return 0; 13491 } 13492 _ACEOF 13493 if ac_fn_c_try_run "$LINENO"; then : 13494 ac_cv_c_bigendian=no 13495 else 13496 ac_cv_c_bigendian=yes 13497 fi 13498 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13499 conftest.$ac_objext conftest.beam conftest.$ac_ext 13500 fi 13501 13502 fi 13503 fi 13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 13505 $as_echo "$ac_cv_c_bigendian" >&6; } 13506 case $ac_cv_c_bigendian in #( 13507 yes) 13508 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 13509 ;; #( 13510 no) 13511 ;; #( 13512 universal) 13513 13514 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 13515 13516 ;; #( 13517 *) 13518 as_fn_error $? "unknown endianness 13519 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 13520 esac 13521 13522 13523 # Extract the first word of "curl", so it can be a program name with args. 13524 set dummy curl; ac_word=$2 13525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13526 $as_echo_n "checking for $ac_word... " >&6; } 13527 if ${ac_cv_prog_HAVE_CURL_BINARY+:} false; then : 13528 $as_echo_n "(cached) " >&6 13529 else 13530 if test -n "$HAVE_CURL_BINARY"; then 13531 ac_cv_prog_HAVE_CURL_BINARY="$HAVE_CURL_BINARY" # Let the user override the test. 13532 else 13533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13534 for as_dir in $PATH 13535 do 13536 IFS=$as_save_IFS 13537 test -z "$as_dir" && as_dir=. 13538 for ac_exec_ext in '' $ac_executable_extensions; do 13539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13540 ac_cv_prog_HAVE_CURL_BINARY="yes" 13541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13542 break 2 13543 fi 13544 done 13545 done 13546 IFS=$as_save_IFS 13547 13548 test -z "$ac_cv_prog_HAVE_CURL_BINARY" && ac_cv_prog_HAVE_CURL_BINARY="no" 13549 fi 13550 fi 13551 HAVE_CURL_BINARY=$ac_cv_prog_HAVE_CURL_BINARY 13552 if test -n "$HAVE_CURL_BINARY"; then 13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_CURL_BINARY" >&5 13554 $as_echo "$HAVE_CURL_BINARY" >&6; } 13555 else 13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13557 $as_echo "no" >&6; } 13558 fi 13559 13560 13561 if test "x$HAVE_CURL_BINARY" = "xyes"; then 13562 HAVE_CURL_BINARY_TRUE= 13563 HAVE_CURL_BINARY_FALSE='#' 13564 else 13565 HAVE_CURL_BINARY_TRUE='#' 13566 HAVE_CURL_BINARY_FALSE= 13567 fi 13568 13569 # Extract the first word of "makeinfo", so it can be a program name with args. 13570 set dummy makeinfo; ac_word=$2 13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13572 $as_echo_n "checking for $ac_word... " >&6; } 13573 if ${ac_cv_prog_HAVE_MAKEINFO_BINARY+:} false; then : 13574 $as_echo_n "(cached) " >&6 13575 else 13576 if test -n "$HAVE_MAKEINFO_BINARY"; then 13577 ac_cv_prog_HAVE_MAKEINFO_BINARY="$HAVE_MAKEINFO_BINARY" # Let the user override the test. 13578 else 13579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13580 for as_dir in $PATH 13581 do 13582 IFS=$as_save_IFS 13583 test -z "$as_dir" && as_dir=. 13584 for ac_exec_ext in '' $ac_executable_extensions; do 13585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13586 ac_cv_prog_HAVE_MAKEINFO_BINARY="yes" 13587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13588 break 2 13589 fi 13590 done 13591 done 13592 IFS=$as_save_IFS 13593 13594 test -z "$ac_cv_prog_HAVE_MAKEINFO_BINARY" && ac_cv_prog_HAVE_MAKEINFO_BINARY="no" 13595 fi 13596 fi 13597 HAVE_MAKEINFO_BINARY=$ac_cv_prog_HAVE_MAKEINFO_BINARY 13598 if test -n "$HAVE_MAKEINFO_BINARY"; then 13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_MAKEINFO_BINARY" >&5 13600 $as_echo "$HAVE_MAKEINFO_BINARY" >&6; } 13601 else 13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13603 $as_echo "no" >&6; } 13604 fi 13605 13606 13607 if test "x$HAVE_MAKEINFO_BINARY" = "xyes"; then 13608 HAVE_MAKEINFO_BINARY_TRUE= 13609 HAVE_MAKEINFO_BINARY_FALSE='#' 13610 else 13611 HAVE_MAKEINFO_BINARY_TRUE='#' 13612 HAVE_MAKEINFO_BINARY_FALSE= 13613 fi 13614 13615 if test "x$os_is_native_w32" = "xyes" && test "x$enable_static" = "xyes"; then 13616 W32_STATIC_LIB_TRUE= 13617 W32_STATIC_LIB_FALSE='#' 13618 else 13619 W32_STATIC_LIB_TRUE='#' 13620 W32_STATIC_LIB_FALSE= 13621 fi 13622 13623 13624 13625 # Check whether --enable-doc was given. 13626 if test "${enable_doc+set}" = set; then : 13627 enableval=$enable_doc; 13628 else 13629 enable_doc=yes 13630 fi 13631 13632 test "x$enable_doc" = "xno" || enable_doc=yes 13633 if test "x$enable_doc" = "xyes"; then 13634 BUILD_DOC_TRUE= 13635 BUILD_DOC_FALSE='#' 13636 else 13637 BUILD_DOC_TRUE='#' 13638 BUILD_DOC_FALSE= 13639 fi 13640 13641 13642 # Check whether --enable-examples was given. 13643 if test "${enable_examples+set}" = set; then : 13644 enableval=$enable_examples; 13645 else 13646 enable_examples=yes 13647 fi 13648 13649 test "x$enable_examples" = "xno" || enable_examples=yes 13650 if test "x$enable_examples" = "xyes"; then 13651 BUILD_EXAMPLES_TRUE= 13652 BUILD_EXAMPLES_FALSE='#' 13653 else 13654 BUILD_EXAMPLES_TRUE='#' 13655 BUILD_EXAMPLES_FALSE= 13656 fi 13657 13658 13659 # Check whether --enable-poll was given. 13660 if test "${enable_poll+set}" = set; then : 13661 enableval=$enable_poll; enable_poll=${enableval} 13662 else 13663 enable_poll='auto' 13664 13665 fi 13666 13667 13668 if test "$enable_poll" != "no"; then 13669 if test "$os_is_native_w32" != "yes"; then 13670 for ac_header in poll.h 13671 do : 13672 ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default" 13673 if test "x$ac_cv_header_poll_h" = xyes; then : 13674 cat >>confdefs.h <<_ACEOF 13675 #define HAVE_POLL_H 1 13676 _ACEOF 13677 13678 for ac_func in poll 13679 do : 13680 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 13681 if test "x$ac_cv_func_poll" = xyes; then : 13682 cat >>confdefs.h <<_ACEOF 13683 #define HAVE_POLL 1 13684 _ACEOF 13685 have_poll='yes' 13686 else 13687 have_poll='no' 13688 fi 13689 done 13690 13691 13692 fi 13693 13694 done 13695 13696 else 13697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WSAPoll()" >&5 13698 $as_echo_n "checking for WSAPoll()... " >&6; } 13699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13700 /* end confdefs.h. */ 13701 13702 #include <winsock2.h> 13703 int 13704 main () 13705 { 13706 13707 WSAPOLLFD fda[2]; 13708 WSAPoll(fda, 2, 0); 13709 ; 13710 return 0; 13711 } 13712 _ACEOF 13713 if ac_fn_c_try_link "$LINENO"; then : 13714 13715 have_poll='yes' 13716 $as_echo "#define HAVE_POLL 1" >>confdefs.h 13717 13718 13719 else 13720 have_poll='no' 13721 fi 13722 rm -f core conftest.err conftest.$ac_objext \ 13723 conftest$ac_exeext conftest.$ac_ext 13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_poll" >&5 13725 $as_echo "$have_poll" >&6; } 13726 fi 13727 if test "$enable_poll" = "yes" && test "$have_poll" != "yes"; then 13728 as_fn_error $? "Support for poll was explicitly requested but cannot be enabled on this platform." "$LINENO" 5 13729 fi 13730 enable_poll="$have_poll" 13731 fi 13732 13733 # Check whether --enable-epoll was given. 13734 if test "${enable_epoll+set}" = set; then : 13735 enableval=$enable_epoll; enable_epoll=${enableval} 13736 else 13737 enable_epoll='auto' 13738 13739 fi 13740 13741 13742 if test "$enable_epoll" != "no"; then 13743 ax_have_epoll_cppflags="${CPPFLAGS}" 13744 ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default" 13745 if test "x$ac_cv_header_linux_version_h" = xyes; then : 13746 CPPFLAGS="${CPPFLAGS} -DHAVE_LINUX_VERSION_H" 13747 fi 13748 13749 13750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux epoll(7) interface" >&5 13751 $as_echo_n "checking for Linux epoll(7) interface... " >&6; } 13752 if ${ax_cv_have_epoll+:} false; then : 13753 $as_echo_n "(cached) " >&6 13754 else 13755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13756 /* end confdefs.h. */ 13757 #include <sys/epoll.h> 13758 #ifdef HAVE_LINUX_VERSION_H 13759 # include <linux/version.h> 13760 # if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,45) 13761 # error linux kernel version is too old to have epoll 13762 # endif 13763 #endif 13764 13765 int 13766 main () 13767 { 13768 int fd, rc; 13769 struct epoll_event ev; 13770 fd = epoll_create(128); 13771 rc = epoll_wait(fd, &ev, 1, 0); 13772 ; 13773 return 0; 13774 } 13775 _ACEOF 13776 if ac_fn_c_try_link "$LINENO"; then : 13777 ax_cv_have_epoll=yes 13778 else 13779 ax_cv_have_epoll=no 13780 fi 13781 rm -f core conftest.err conftest.$ac_objext \ 13782 conftest$ac_exeext conftest.$ac_ext 13783 fi 13784 13785 CPPFLAGS="${ax_have_epoll_cppflags}" 13786 if test "${ax_cv_have_epoll}" = "yes"; then : 13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13788 $as_echo "yes" >&6; } 13789 13790 else 13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13792 $as_echo "no" >&6; } 13793 13794 fi 13795 13796 if test "${ax_cv_have_epoll}" = "yes"; then 13797 13798 $as_echo "#define EPOLL_SUPPORT 1" >>confdefs.h 13799 13800 enable_epoll='yes' 13801 else 13802 13803 $as_echo "#define EPOLL_SUPPORT 0" >>confdefs.h 13804 13805 if test "$enable_epoll" = "yes"; then 13806 as_fn_error $? "Support for epoll was explicitly requested but cannot be enabled on this platform." "$LINENO" 5 13807 fi 13808 enable_epoll='no' 13809 fi 13810 fi 13811 13812 if test "x$enable_epoll" = "xyes"; then 13813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1()" >&5 13814 $as_echo_n "checking for epoll_create1()... " >&6; } 13815 if ${mhd_cv_have_epoll_create1+:} false; then : 13816 $as_echo_n "(cached) " >&6 13817 else 13818 13819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13820 /* end confdefs.h. */ 13821 13822 #include <sys/epoll.h> 13823 int 13824 main () 13825 { 13826 13827 int fd; 13828 fd = epoll_create1(EPOLL_CLOEXEC); 13829 ; 13830 return 0; 13831 } 13832 _ACEOF 13833 if ac_fn_c_try_link "$LINENO"; then : 13834 mhd_cv_have_epoll_create1=yes 13835 else 13836 mhd_cv_have_epoll_create1=no 13837 fi 13838 rm -f core conftest.err conftest.$ac_objext \ 13839 conftest$ac_exeext conftest.$ac_ext 13840 fi 13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_epoll_create1" >&5 13842 $as_echo "$mhd_cv_have_epoll_create1" >&6; } 13843 if test "x$mhd_cv_have_epoll_create1" = "xyes"; then : 13844 13845 13846 $as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h 13847 13848 fi 13849 fi 13850 13851 if test "x$HAVE_POSIX_THREADS" = "xyes"; then 13852 # Check for pthread_setname_np() 13853 SAVE_LIBS="$LIBS" 13854 SAVE_CFLAGS="$CFLAGS" 13855 LIBS="$PTHREAD_LIBS $LIBS" 13856 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 13857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5 13858 $as_echo_n "checking for pthread_setname_np... " >&6; } 13859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13860 /* end confdefs.h. */ 13861 #include <pthread.h> 13862 int 13863 main () 13864 { 13865 pthread_setname_np(pthread_self(), "name") 13866 ; 13867 return 0; 13868 } 13869 _ACEOF 13870 if ac_fn_c_try_link "$LINENO"; then : 13871 13872 $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h 13873 13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13875 $as_echo "yes" >&6; } 13876 else 13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13878 $as_echo "no" >&6; } 13879 fi 13880 rm -f core conftest.err conftest.$ac_objext \ 13881 conftest$ac_exeext conftest.$ac_ext 13882 LIBS="$SAVE_LIBS" 13883 CFLAGS="$SAVE_CFLAGS" 13884 fi 13885 13886 # Check for headers that are ALWAYS required 13887 for ac_header in fcntl.h math.h errno.h limits.h stdio.h locale.h sys/stat.h sys/types.h pthread.h 13888 do : 13889 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13890 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13891 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13892 cat >>confdefs.h <<_ACEOF 13893 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13894 _ACEOF 13895 13896 else 13897 as_fn_error $? "Compiling libmicrohttpd requires standard UNIX headers files" "$LINENO" 5 13898 fi 13899 13900 done 13901 13902 13903 # Check for optional headers 13904 for ac_header in sys/types.h sys/time.h sys/msg.h netdb.h netinet/in.h netinet/tcp.h time.h sys/socket.h sys/mman.h arpa/inet.h sys/select.h search.h 13905 do : 13906 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13907 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13908 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13909 cat >>confdefs.h <<_ACEOF 13910 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13911 _ACEOF 13912 13913 fi 13914 13915 done 13916 13917 if test "x$ac_cv_header_search_h" = "xyes"; then 13918 HAVE_TSEARCH_TRUE= 13919 HAVE_TSEARCH_FALSE='#' 13920 else 13921 HAVE_TSEARCH_TRUE='#' 13922 HAVE_TSEARCH_FALSE= 13923 fi 13924 13925 13926 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 13927 #ifdef HAVE_SYS_TYPES_H 13928 #include <sys/types.h> 13929 #endif 13930 #ifdef HAVE_SYS_SOCKET_H 13931 #include <sys/socket.h> 13932 #endif 13933 #ifdef HAVE_NETINET_IN_H 13934 #include <netinet/in.h> 13935 #endif 13936 13937 " 13938 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : 13939 13940 $as_echo "#define HAVE_SOCKADDR_IN_SIN_LEN 1" >>confdefs.h 13941 13942 13943 fi 13944 13945 13946 13947 # Check for pipe/socketpair signaling 13948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable signaling by socketpair" >&5 13949 $as_echo_n "checking whether to enable signaling by socketpair... " >&6; } 13950 13951 # Check whether --enable-socketpair was given. 13952 if test "${enable_socketpair+set}" = set; then : 13953 enableval=$enable_socketpair; 13954 else 13955 if test "x$os_is_windows" = "xyes"; then : 13956 enable_socketpair=yes 13957 else 13958 enable_socketpair=no 13959 fi 13960 13961 fi 13962 13963 13964 if test "x$enable_socketpair" != "xno"; then : 13965 if test "x$os_is_windows" = "xyes"; then : 13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced on W32" >&5 13967 $as_echo "yes, forced on W32" >&6; } 13968 else 13969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13970 /* end confdefs.h. */ 13971 13972 #ifdef HAVE_SYS_TYPES_H 13973 #include <sys/types.h> 13974 #endif 13975 #ifdef HAVE_SYS_SOCKET_H 13976 #include <sys/socket.h> 13977 #endif 13978 13979 int 13980 main () 13981 { 13982 13983 int sv[2]; 13984 if (socketpair(AF_UNIX, SOCK_STREAM, 0, sv) != 0) return 1 13985 13986 ; 13987 return 0; 13988 } 13989 13990 _ACEOF 13991 if ac_fn_c_try_link "$LINENO"; then : 13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, socketpair in available" >&5 13993 $as_echo "yes, socketpair in available" >&6; } 13994 else 13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, socketpair in not available" >&5 13996 $as_echo "no, socketpair in not available" >&6; } 13997 if test "x$enable_socketpair" = "xyes"; then : 13998 as_fn_error $? "socketpair signalling cannot be enabled." "$LINENO" 5 13999 fi 14000 14001 14002 fi 14003 rm -f core conftest.err conftest.$ac_objext \ 14004 conftest$ac_exeext conftest.$ac_ext 14005 14006 14007 fi 14008 14009 else 14010 14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14012 $as_echo "no" >&6; } 14013 if test "x$os_is_windows" = "xyes"; then : 14014 as_fn_error $? "socketpair must be enabled on W32" "$LINENO" 5 14015 fi 14016 14017 14018 fi 14019 if test "x$enable_socketpair" = "xyes"; then 14020 14021 $as_echo "#define MHD_DONT_USE_PIPES 1" >>confdefs.h 14022 14023 fi 14024 14025 14026 14027 14028 for ac_func in $ac_func_list 14029 do : 14030 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14031 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14032 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14033 cat >>confdefs.h <<_ACEOF 14034 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14035 _ACEOF 14036 14037 fi 14038 done 14039 14040 14041 14042 14043 14044 14045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmtime_s" >&5 14046 $as_echo_n "checking for gmtime_s... " >&6; } 14047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14048 /* end confdefs.h. */ 14049 #include <time.h> 14050 int 14051 main () 14052 { 14053 struct tm now; time_t t; time (&t); gmtime_s (&now, &t) 14054 ; 14055 return 0; 14056 } 14057 14058 _ACEOF 14059 if ac_fn_c_try_link "$LINENO"; then : 14060 14061 14062 $as_echo "#define HAVE_GMTIME_S 1" >>confdefs.h 14063 14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14065 $as_echo "yes" >&6; } 14066 14067 else 14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14069 $as_echo "no" >&6; } 14070 14071 fi 14072 rm -f core conftest.err conftest.$ac_objext \ 14073 conftest$ac_exeext conftest.$ac_ext 14074 14075 14076 ac_fn_c_check_decl "$LINENO" "SOCK_NONBLOCK" "ac_cv_have_decl_SOCK_NONBLOCK" " 14077 #if defined HAVE_SYS_TYPES_H 14078 # include <sys/types.h> 14079 #endif 14080 #if defined HAVE_SYS_SOCKET_H 14081 # include <sys/socket.h> 14082 #elif defined HAVE_WINSOCK2_H 14083 # include <winsock2.h> 14084 #endif 14085 14086 " 14087 if test "x$ac_cv_have_decl_SOCK_NONBLOCK" = xyes; then : 14088 ac_have_decl=1 14089 else 14090 ac_have_decl=0 14091 fi 14092 14093 cat >>confdefs.h <<_ACEOF 14094 #define HAVE_DECL_SOCK_NONBLOCK $ac_have_decl 14095 _ACEOF 14096 if test $ac_have_decl = 1; then : 14097 14098 $as_echo "#define HAVE_SOCK_NONBLOCK 1" >>confdefs.h 14099 14100 fi 14101 14102 14103 14104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 14105 $as_echo_n "checking for library containing clock_gettime... " >&6; } 14106 if ${ac_cv_search_clock_gettime+:} false; then : 14107 $as_echo_n "(cached) " >&6 14108 else 14109 ac_func_search_save_LIBS=$LIBS 14110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14111 /* end confdefs.h. */ 14112 14113 /* Override any GCC internal prototype to avoid an error. 14114 Use char because int might match the return type of a GCC 14115 builtin and then its argument prototype would still apply. */ 14116 #ifdef __cplusplus 14117 extern "C" 14118 #endif 14119 char clock_gettime (); 14120 int 14121 main () 14122 { 14123 return clock_gettime (); 14124 ; 14125 return 0; 14126 } 14127 _ACEOF 14128 for ac_lib in '' rt; do 14129 if test -z "$ac_lib"; then 14130 ac_res="none required" 14131 else 14132 ac_res=-l$ac_lib 14133 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14134 fi 14135 if ac_fn_c_try_link "$LINENO"; then : 14136 ac_cv_search_clock_gettime=$ac_res 14137 fi 14138 rm -f core conftest.err conftest.$ac_objext \ 14139 conftest$ac_exeext 14140 if ${ac_cv_search_clock_gettime+:} false; then : 14141 break 14142 fi 14143 done 14144 if ${ac_cv_search_clock_gettime+:} false; then : 14145 14146 else 14147 ac_cv_search_clock_gettime=no 14148 fi 14149 rm conftest.$ac_ext 14150 LIBS=$ac_func_search_save_LIBS 14151 fi 14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 14153 $as_echo "$ac_cv_search_clock_gettime" >&6; } 14154 ac_res=$ac_cv_search_clock_gettime 14155 if test "$ac_res" != no; then : 14156 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14157 14158 14159 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 14160 14161 14162 fi 14163 14164 14165 # IPv6 14166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6" >&5 14167 $as_echo_n "checking for IPv6... " >&6; } 14168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14169 /* end confdefs.h. */ 14170 14171 #include <stdio.h> 14172 #if HAVE_NETINET_IN_H 14173 #include <netinet/in.h> 14174 #endif 14175 #if HAVE_SYS_SOCKET_H 14176 #include <sys/socket.h> 14177 #endif 14178 #if HAVE_WINSOCK2_H 14179 #include <winsock2.h> 14180 #endif 14181 #if HAVE_WS2TCPIP_H 14182 #include <ws2tcpip.h> 14183 #endif 14184 14185 int 14186 main () 14187 { 14188 14189 int af=AF_INET6; 14190 int pf=PF_INET6; 14191 struct sockaddr_in6 sa; 14192 printf("%d %d %p\n", af, pf, &sa); 14193 14194 ; 14195 return 0; 14196 } 14197 _ACEOF 14198 if ac_fn_c_try_compile "$LINENO"; then : 14199 14200 have_inet6=yes; 14201 14202 $as_echo "#define HAVE_INET6 1" >>confdefs.h 14203 14204 14205 else 14206 14207 have_inet6=no 14208 14209 fi 14210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_inet6" >&5 14212 $as_echo "$have_inet6" >&6; } 14213 14214 # TCP_CORK and TCP_NOPUSH 14215 ac_fn_c_check_decl "$LINENO" "TCP_CORK" "ac_cv_have_decl_TCP_CORK" "#include <netinet/tcp.h> 14216 " 14217 if test "x$ac_cv_have_decl_TCP_CORK" = xyes; then : 14218 ac_have_decl=1 14219 else 14220 ac_have_decl=0 14221 fi 14222 14223 cat >>confdefs.h <<_ACEOF 14224 #define HAVE_DECL_TCP_CORK $ac_have_decl 14225 _ACEOF 14226 ac_fn_c_check_decl "$LINENO" "TCP_NOPUSH" "ac_cv_have_decl_TCP_NOPUSH" "#include <netinet/tcp.h> 14227 " 14228 if test "x$ac_cv_have_decl_TCP_NOPUSH" = xyes; then : 14229 ac_have_decl=1 14230 else 14231 ac_have_decl=0 14232 fi 14233 14234 cat >>confdefs.h <<_ACEOF 14235 #define HAVE_DECL_TCP_NOPUSH $ac_have_decl 14236 _ACEOF 14237 14238 14239 HIDDEN_VISIBILITY_CFLAGS="" 14240 case "$host" in 14241 *-*-mingw*) 14242 14243 $as_echo "#define _MHD_EXTERN __attribute__((visibility(\"default\"))) __declspec(dllexport) extern" >>confdefs.h 14244 14245 HIDDEN_VISIBILITY_CFLAGS="-fvisibility=hidden" 14246 ;; 14247 *) 14248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fvisibility=hidden" >&5 14249 $as_echo_n "checking whether the linker accepts -fvisibility=hidden... " >&6; } 14250 if ${ax_cv_check_ldflags___fvisibility_hidden+:} false; then : 14251 $as_echo_n "(cached) " >&6 14252 else 14253 14254 ax_check_save_flags=$LDFLAGS 14255 LDFLAGS="$LDFLAGS -fvisibility=hidden" 14256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14257 /* end confdefs.h. */ 14258 14259 int 14260 main () 14261 { 14262 14263 ; 14264 return 0; 14265 } 14266 _ACEOF 14267 if ac_fn_c_try_link "$LINENO"; then : 14268 ax_cv_check_ldflags___fvisibility_hidden=yes 14269 else 14270 ax_cv_check_ldflags___fvisibility_hidden=no 14271 fi 14272 rm -f core conftest.err conftest.$ac_objext \ 14273 conftest$ac_exeext conftest.$ac_ext 14274 LDFLAGS=$ax_check_save_flags 14275 fi 14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fvisibility_hidden" >&5 14277 $as_echo "$ax_cv_check_ldflags___fvisibility_hidden" >&6; } 14278 if test x"$ax_cv_check_ldflags___fvisibility_hidden" = xyes; then : 14279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvisibility=hidden" >&5 14280 $as_echo_n "checking whether C compiler accepts -fvisibility=hidden... " >&6; } 14281 if ${ax_cv_check_cflags___fvisibility_hidden+:} false; then : 14282 $as_echo_n "(cached) " >&6 14283 else 14284 14285 ax_check_save_flags=$CFLAGS 14286 CFLAGS="$CFLAGS -fvisibility=hidden" 14287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14288 /* end confdefs.h. */ 14289 14290 int 14291 main () 14292 { 14293 14294 ; 14295 return 0; 14296 } 14297 _ACEOF 14298 if ac_fn_c_try_compile "$LINENO"; then : 14299 ax_cv_check_cflags___fvisibility_hidden=yes 14300 else 14301 ax_cv_check_cflags___fvisibility_hidden=no 14302 fi 14303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14304 CFLAGS=$ax_check_save_flags 14305 fi 14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fvisibility_hidden" >&5 14307 $as_echo "$ax_cv_check_cflags___fvisibility_hidden" >&6; } 14308 if test x"$ax_cv_check_cflags___fvisibility_hidden" = xyes; then : 14309 14310 $as_echo "#define _MHD_EXTERN __attribute__((visibility(\"default\"))) extern" >>confdefs.h 14311 14312 HIDDEN_VISIBILITY_CFLAGS="-fvisibility=hidden" 14313 else 14314 : 14315 fi 14316 14317 else 14318 : 14319 fi 14320 14321 ;; 14322 esac 14323 14324 14325 # libcurl (required for testing) 14326 # Check whether --enable-curl was given. 14327 if test "${enable_curl+set}" = set; then : 14328 enableval=$enable_curl; enable_curl=${enableval} 14329 fi 14330 14331 curl=0 14332 if test "$enable_curl" != "no" 14333 then 14334 14335 14336 14337 14338 14339 14340 14341 14342 14343 14344 14345 14346 14347 14348 14349 14350 14351 14352 14353 14354 14355 14356 14357 14358 14359 # Check whether --with-libcurl was given. 14360 if test "${with_libcurl+set}" = set; then : 14361 withval=$with_libcurl; _libcurl_with=$withval 14362 else 14363 _libcurl_with=yes 14364 fi 14365 14366 14367 if test "$_libcurl_with" != "no" ; then 14368 14369 for ac_prog in gawk mawk nawk awk 14370 do 14371 # Extract the first word of "$ac_prog", so it can be a program name with args. 14372 set dummy $ac_prog; ac_word=$2 14373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14374 $as_echo_n "checking for $ac_word... " >&6; } 14375 if ${ac_cv_prog_AWK+:} false; then : 14376 $as_echo_n "(cached) " >&6 14377 else 14378 if test -n "$AWK"; then 14379 ac_cv_prog_AWK="$AWK" # Let the user override the test. 14380 else 14381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14382 for as_dir in $PATH 14383 do 14384 IFS=$as_save_IFS 14385 test -z "$as_dir" && as_dir=. 14386 for ac_exec_ext in '' $ac_executable_extensions; do 14387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14388 ac_cv_prog_AWK="$ac_prog" 14389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14390 break 2 14391 fi 14392 done 14393 done 14394 IFS=$as_save_IFS 14395 14396 fi 14397 fi 14398 AWK=$ac_cv_prog_AWK 14399 if test -n "$AWK"; then 14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 14401 $as_echo "$AWK" >&6; } 14402 else 14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14404 $as_echo "no" >&6; } 14405 fi 14406 14407 14408 test -n "$AWK" && break 14409 done 14410 14411 14412 _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'" 14413 14414 _libcurl_try_link=yes 14415 14416 if test -d "$_libcurl_with" ; then 14417 LIBCURL_CPPFLAGS="-I$withval/include" 14418 _libcurl_ldflags="-L$withval/lib" 14419 # Extract the first word of "curl-config", so it can be a program name with args. 14420 set dummy curl-config; ac_word=$2 14421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14422 $as_echo_n "checking for $ac_word... " >&6; } 14423 if ${ac_cv_path__libcurl_config+:} false; then : 14424 $as_echo_n "(cached) " >&6 14425 else 14426 case $_libcurl_config in 14427 [\\/]* | ?:[\\/]*) 14428 ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path. 14429 ;; 14430 *) 14431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14432 for as_dir in "$withval/bin" 14433 do 14434 IFS=$as_save_IFS 14435 test -z "$as_dir" && as_dir=. 14436 for ac_exec_ext in '' $ac_executable_extensions; do 14437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14438 ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext" 14439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14440 break 2 14441 fi 14442 done 14443 done 14444 IFS=$as_save_IFS 14445 14446 ;; 14447 esac 14448 fi 14449 _libcurl_config=$ac_cv_path__libcurl_config 14450 if test -n "$_libcurl_config"; then 14451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5 14452 $as_echo "$_libcurl_config" >&6; } 14453 else 14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14455 $as_echo "no" >&6; } 14456 fi 14457 14458 14459 else 14460 # Extract the first word of "curl-config", so it can be a program name with args. 14461 set dummy curl-config; ac_word=$2 14462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14463 $as_echo_n "checking for $ac_word... " >&6; } 14464 if ${ac_cv_path__libcurl_config+:} false; then : 14465 $as_echo_n "(cached) " >&6 14466 else 14467 case $_libcurl_config in 14468 [\\/]* | ?:[\\/]*) 14469 ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path. 14470 ;; 14471 *) 14472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14473 for as_dir in $PATH 14474 do 14475 IFS=$as_save_IFS 14476 test -z "$as_dir" && as_dir=. 14477 for ac_exec_ext in '' $ac_executable_extensions; do 14478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14479 ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext" 14480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14481 break 2 14482 fi 14483 done 14484 done 14485 IFS=$as_save_IFS 14486 14487 ;; 14488 esac 14489 fi 14490 _libcurl_config=$ac_cv_path__libcurl_config 14491 if test -n "$_libcurl_config"; then 14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5 14493 $as_echo "$_libcurl_config" >&6; } 14494 else 14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14496 $as_echo "no" >&6; } 14497 fi 14498 14499 14500 fi 14501 14502 if test x$_libcurl_config != "x" ; then 14503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the version of libcurl" >&5 14504 $as_echo_n "checking for the version of libcurl... " >&6; } 14505 if ${libcurl_cv_lib_curl_version+:} false; then : 14506 $as_echo_n "(cached) " >&6 14507 else 14508 libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'` 14509 fi 14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_version" >&5 14511 $as_echo "$libcurl_cv_lib_curl_version" >&6; } 14512 14513 _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse` 14514 _libcurl_wanted=`echo 7.16.4 | $_libcurl_version_parse` 14515 14516 if test $_libcurl_wanted -gt 0 ; then 14517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl >= version 7.16.4" >&5 14518 $as_echo_n "checking for libcurl >= version 7.16.4... " >&6; } 14519 if ${libcurl_cv_lib_version_ok+:} false; then : 14520 $as_echo_n "(cached) " >&6 14521 else 14522 14523 if test $_libcurl_version -ge $_libcurl_wanted ; then 14524 libcurl_cv_lib_version_ok=yes 14525 else 14526 libcurl_cv_lib_version_ok=no 14527 fi 14528 14529 fi 14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_version_ok" >&5 14531 $as_echo "$libcurl_cv_lib_version_ok" >&6; } 14532 fi 14533 14534 if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then 14535 if test x"$LIBCURL_CPPFLAGS" = "x" ; then 14536 LIBCURL_CPPFLAGS=`$_libcurl_config --cflags` 14537 fi 14538 if test x"$LIBCURL" = "x" ; then 14539 LIBCURL=`$_libcurl_config --libs` 14540 14541 # This is so silly, but Apple actually has a bug in their 14542 # curl-config script. Fixed in Tiger, but there are still 14543 # lots of Panther installs around. 14544 case "${host}" in 14545 powerpc-apple-darwin7*) 14546 LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'` 14547 ;; 14548 esac 14549 fi 14550 14551 # All curl-config scripts support --feature 14552 _libcurl_features=`$_libcurl_config --feature` 14553 14554 # Is it modern enough to have --protocols? (7.12.4) 14555 if test $_libcurl_version -ge 461828 ; then 14556 _libcurl_protocols=`$_libcurl_config --protocols` 14557 fi 14558 else 14559 _libcurl_try_link=no 14560 fi 14561 14562 unset _libcurl_wanted 14563 fi 14564 14565 if test $_libcurl_try_link = yes ; then 14566 14567 # we didn't find curl-config, so let's see if the user-supplied 14568 # link line (or failing that, "-lcurl") is enough. 14569 LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"} 14570 14571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libcurl is usable" >&5 14572 $as_echo_n "checking whether libcurl is usable... " >&6; } 14573 if ${libcurl_cv_lib_curl_usable+:} false; then : 14574 $as_echo_n "(cached) " >&6 14575 else 14576 14577 _libcurl_save_cppflags=$CPPFLAGS 14578 CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS" 14579 _libcurl_save_libs=$LIBS 14580 LIBS="$LIBCURL $LIBS" 14581 14582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14583 /* end confdefs.h. */ 14584 #include <curl/curl.h> 14585 int 14586 main () 14587 { 14588 14589 /* Try and use a few common options to force a failure if we are 14590 missing symbols or can't link. */ 14591 int x; 14592 curl_easy_setopt(NULL,CURLOPT_URL,NULL); 14593 x=CURL_ERROR_SIZE; 14594 x=CURLOPT_WRITEFUNCTION; 14595 x=CURLOPT_FILE; 14596 x=CURLOPT_ERRORBUFFER; 14597 x=CURLOPT_STDERR; 14598 x=CURLOPT_VERBOSE; 14599 if (x) ; 14600 14601 ; 14602 return 0; 14603 } 14604 _ACEOF 14605 if ac_fn_c_try_link "$LINENO"; then : 14606 libcurl_cv_lib_curl_usable=yes 14607 else 14608 libcurl_cv_lib_curl_usable=no 14609 fi 14610 rm -f core conftest.err conftest.$ac_objext \ 14611 conftest$ac_exeext conftest.$ac_ext 14612 14613 CPPFLAGS=$_libcurl_save_cppflags 14614 LIBS=$_libcurl_save_libs 14615 unset _libcurl_save_cppflags 14616 unset _libcurl_save_libs 14617 14618 fi 14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_usable" >&5 14620 $as_echo "$libcurl_cv_lib_curl_usable" >&6; } 14621 14622 if test $libcurl_cv_lib_curl_usable = yes ; then 14623 14624 # Does curl_free() exist in this version of libcurl? 14625 # If not, fake it with free() 14626 14627 _libcurl_save_cppflags=$CPPFLAGS 14628 CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS" 14629 _libcurl_save_libs=$LIBS 14630 LIBS="$LIBS $LIBCURL" 14631 14632 ac_fn_c_check_func "$LINENO" "curl_free" "ac_cv_func_curl_free" 14633 if test "x$ac_cv_func_curl_free" = xyes; then : 14634 14635 else 14636 14637 $as_echo "#define curl_free free" >>confdefs.h 14638 14639 fi 14640 14641 14642 CPPFLAGS=$_libcurl_save_cppflags 14643 LIBS=$_libcurl_save_libs 14644 unset _libcurl_save_cppflags 14645 unset _libcurl_save_libs 14646 14647 14648 $as_echo "#define HAVE_LIBCURL 1" >>confdefs.h 14649 14650 14651 14652 14653 for _libcurl_feature in $_libcurl_features ; do 14654 cat >>confdefs.h <<_ACEOF 14655 #define `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1 14656 _ACEOF 14657 14658 eval `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes 14659 done 14660 14661 if test "x$_libcurl_protocols" = "x" ; then 14662 14663 # We don't have --protocols, so just assume that all 14664 # protocols are available 14665 _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT TFTP" 14666 14667 test -z "$_libcurl_version" && _libcurl_version=0 14668 14669 if test x$libcurl_feature_SSL = xyes ; then 14670 _libcurl_protocols="$_libcurl_protocols HTTPS" 14671 14672 # FTPS wasn't standards-compliant until version 14673 # 7.11.0 (0x070b00 == 461568) 14674 if test $_libcurl_version -ge 461568; then 14675 _libcurl_protocols="$_libcurl_protocols FTPS" 14676 fi 14677 fi 14678 14679 # RTSP, IMAP, POP3 and SMTP were added in 14680 # 7.20.0 (0x071400 == 463872) 14681 if test $_libcurl_version -ge 463872; then 14682 _libcurl_protocols="$_libcurl_protocols RTSP IMAP POP3 SMTP" 14683 fi 14684 fi 14685 14686 for _libcurl_protocol in $_libcurl_protocols ; do 14687 cat >>confdefs.h <<_ACEOF 14688 #define `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1 14689 _ACEOF 14690 14691 eval `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes 14692 done 14693 else 14694 unset LIBCURL 14695 unset LIBCURL_CPPFLAGS 14696 fi 14697 fi 14698 14699 unset _libcurl_try_link 14700 unset _libcurl_version_parse 14701 unset _libcurl_config 14702 unset _libcurl_feature 14703 unset _libcurl_features 14704 unset _libcurl_protocol 14705 unset _libcurl_protocols 14706 unset _libcurl_version 14707 unset _libcurl_ldflags 14708 fi 14709 14710 if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then 14711 # This is the IF-NO path 14712 14713 if test "x$enable_curl" = "xyes"; then 14714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cURL-based tests cannot be enabled because libcurl is missing" >&5 14715 $as_echo "$as_me: WARNING: cURL-based tests cannot be enabled because libcurl is missing" >&2;} 14716 fi 14717 enable_curl=no 14718 14719 else 14720 # This is the IF-YES path 14721 enable_curl=yes 14722 fi 14723 14724 unset _libcurl_with 14725 14726 fi 14727 if test "$enable_curl" != "no" 14728 then 14729 # Lib cURL & cURL - OpenSSL versions 14730 14731 $as_echo "#define MHD_REQ_CURL_VERSION \"7.16.4\"" >>confdefs.h 14732 14733 14734 $as_echo "#define MHD_REQ_CURL_OPENSSL_VERSION \"0.9.8\"" >>confdefs.h 14735 14736 14737 $as_echo "#define MHD_REQ_CURL_GNUTLS_VERSION \"2.8.6\"" >>confdefs.h 14738 14739 14740 $as_echo "#define MHD_REQ_CURL_NSS_VERSION \"3.12.0\"" >>confdefs.h 14741 14742 fi 14743 if test "x$enable_curl" = "xyes"; then 14744 HAVE_CURL_TRUE= 14745 HAVE_CURL_FALSE='#' 14746 else 14747 HAVE_CURL_TRUE='#' 14748 HAVE_CURL_FALSE= 14749 fi 14750 14751 14752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5 14753 $as_echo_n "checking for magic_open in -lmagic... " >&6; } 14754 if ${ac_cv_lib_magic_magic_open+:} false; then : 14755 $as_echo_n "(cached) " >&6 14756 else 14757 ac_check_lib_save_LIBS=$LIBS 14758 LIBS="-lmagic $LIBS" 14759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14760 /* end confdefs.h. */ 14761 14762 /* Override any GCC internal prototype to avoid an error. 14763 Use char because int might match the return type of a GCC 14764 builtin and then its argument prototype would still apply. */ 14765 #ifdef __cplusplus 14766 extern "C" 14767 #endif 14768 char magic_open (); 14769 int 14770 main () 14771 { 14772 return magic_open (); 14773 ; 14774 return 0; 14775 } 14776 _ACEOF 14777 if ac_fn_c_try_link "$LINENO"; then : 14778 ac_cv_lib_magic_magic_open=yes 14779 else 14780 ac_cv_lib_magic_magic_open=no 14781 fi 14782 rm -f core conftest.err conftest.$ac_objext \ 14783 conftest$ac_exeext conftest.$ac_ext 14784 LIBS=$ac_check_lib_save_LIBS 14785 fi 14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5 14787 $as_echo "$ac_cv_lib_magic_magic_open" >&6; } 14788 if test "x$ac_cv_lib_magic_magic_open" = xyes; then : 14789 for ac_header in magic.h 14790 do : 14791 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default" 14792 if test "x$ac_cv_header_magic_h" = xyes; then : 14793 cat >>confdefs.h <<_ACEOF 14794 #define HAVE_MAGIC_H 1 14795 _ACEOF 14796 if true; then 14797 HAVE_MAGIC_TRUE= 14798 HAVE_MAGIC_FALSE='#' 14799 else 14800 HAVE_MAGIC_TRUE='#' 14801 HAVE_MAGIC_FALSE= 14802 fi 14803 14804 else 14805 if false; then 14806 HAVE_MAGIC_TRUE= 14807 HAVE_MAGIC_FALSE='#' 14808 else 14809 HAVE_MAGIC_TRUE='#' 14810 HAVE_MAGIC_FALSE= 14811 fi 14812 14813 fi 14814 14815 done 14816 14817 else 14818 if false; then 14819 HAVE_MAGIC_TRUE= 14820 HAVE_MAGIC_FALSE='#' 14821 else 14822 HAVE_MAGIC_TRUE='#' 14823 HAVE_MAGIC_FALSE= 14824 fi 14825 14826 fi 14827 14828 14829 14830 # optional: libmicrospdy support. Enabled by default if not on W32 14831 # Check whether --enable-spdy was given. 14832 if test "${enable_spdy+set}" = set; then : 14833 enableval=$enable_spdy; enable_spdy=${enableval} 14834 else 14835 if test "x$os_is_windows" = "xyes"; then : 14836 enable_spdy=no 14837 fi 14838 fi 14839 14840 14841 if test "$enable_spdy" != "no" 14842 then 14843 14844 found=false 14845 14846 # Check whether --with-openssl was given. 14847 if test "${with_openssl+set}" = set; then : 14848 withval=$with_openssl; 14849 case "$withval" in 14850 "" | y | ye | yes | n | no) 14851 as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 14852 ;; 14853 *) ssldirs="$withval" 14854 ;; 14855 esac 14856 14857 else 14858 14859 # if pkg-config is installed and openssl has installed a .pc file, 14860 # then use that information and don't search ssldirs 14861 # Extract the first word of "pkg-config", so it can be a program name with args. 14862 set dummy pkg-config; ac_word=$2 14863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14864 $as_echo_n "checking for $ac_word... " >&6; } 14865 if ${ac_cv_path_PKG_CONFIG+:} false; then : 14866 $as_echo_n "(cached) " >&6 14867 else 14868 case $PKG_CONFIG in 14869 [\\/]* | ?:[\\/]*) 14870 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 14871 ;; 14872 *) 14873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14874 for as_dir in $PATH 14875 do 14876 IFS=$as_save_IFS 14877 test -z "$as_dir" && as_dir=. 14878 for ac_exec_ext in '' $ac_executable_extensions; do 14879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14880 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 14881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14882 break 2 14883 fi 14884 done 14885 done 14886 IFS=$as_save_IFS 14887 14888 ;; 14889 esac 14890 fi 14891 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 14892 if test -n "$PKG_CONFIG"; then 14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 14894 $as_echo "$PKG_CONFIG" >&6; } 14895 else 14896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14897 $as_echo "no" >&6; } 14898 fi 14899 14900 14901 if test x"$PKG_CONFIG" != x""; then 14902 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null` 14903 if test $? = 0; then 14904 OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null` 14905 OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null` 14906 found=true 14907 fi 14908 fi 14909 14910 # no such luck; use some default ssldirs 14911 if ! $found; then 14912 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr" 14913 fi 14914 14915 14916 fi 14917 14918 14919 14920 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in 14921 # an 'openssl' subdirectory 14922 14923 if ! $found; then 14924 OPENSSL_INCLUDES= 14925 for ssldir in $ssldirs; do 14926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5 14927 $as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; } 14928 if test -f "$ssldir/include/openssl/ssl.h"; then 14929 OPENSSL_INCLUDES="-I$ssldir/include" 14930 OPENSSL_LDFLAGS="-L$ssldir/lib" 14931 OPENSSL_LIBS="-lssl -lcrypto" 14932 found=true 14933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14934 $as_echo "yes" >&6; } 14935 break 14936 else 14937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14938 $as_echo "no" >&6; } 14939 fi 14940 done 14941 14942 # if the file wasn't found, well, go ahead and try the link anyway -- maybe 14943 # it will just work! 14944 fi 14945 14946 # try the preprocessor and linker with our new flags, 14947 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS 14948 14949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5 14950 $as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; } 14951 echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \ 14952 "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5 14953 14954 save_LIBS="$LIBS" 14955 save_LDFLAGS="$LDFLAGS" 14956 save_CPPFLAGS="$CPPFLAGS" 14957 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" 14958 LIBS="$OPENSSL_LIBS $LIBS" 14959 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" 14960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14961 /* end confdefs.h. */ 14962 #include <openssl/ssl.h> 14963 int 14964 main () 14965 { 14966 SSL_new(NULL) 14967 ; 14968 return 0; 14969 } 14970 _ACEOF 14971 if ac_fn_c_try_link "$LINENO"; then : 14972 14973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14974 $as_echo "yes" >&6; } 14975 have_openssl=yes 14976 14977 else 14978 14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14980 $as_echo "no" >&6; } 14981 have_openssl=no 14982 14983 fi 14984 rm -f core conftest.err conftest.$ac_objext \ 14985 conftest$ac_exeext conftest.$ac_ext 14986 CPPFLAGS="$save_CPPFLAGS" 14987 LDFLAGS="$save_LDFLAGS" 14988 LIBS="$save_LIBS" 14989 14990 14991 14992 14993 14994 if test "x$have_openssl" = "xyes" 14995 then 14996 # check OpenSSL headers 14997 SAVE_CPP_FLAGS="$CPPFLAGS" 14998 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" 14999 for ac_header in openssl/evp.h openssl/rsa.h openssl/rand.h openssl/err.h openssl/sha.h openssl/pem.h openssl/engine.h 15000 do : 15001 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15002 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15003 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15004 cat >>confdefs.h <<_ACEOF 15005 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15006 _ACEOF 15007 have_openssl=yes 15008 else 15009 have_openssl=no 15010 fi 15011 15012 done 15013 15014 if test "x$have_openssl" = "xyes" 15015 then 15016 # check OpenSSL libs 15017 SAVE_LIBS="$LIBS" 15018 SAVE_LD_FLAGS="$LDFLAGS" 15019 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" 15020 LIBS="$OPENSSL_LIBS $LIBS" 15021 ac_fn_c_check_func "$LINENO" "SSL_CTX_set_next_protos_advertised_cb" "ac_cv_func_SSL_CTX_set_next_protos_advertised_cb" 15022 if test "x$ac_cv_func_SSL_CTX_set_next_protos_advertised_cb" = xyes; then : 15023 15024 ac_fn_c_check_func "$LINENO" "SSL_library_init" "ac_cv_func_SSL_library_init" 15025 if test "x$ac_cv_func_SSL_library_init" = xyes; then : 15026 have_openssl=yes 15027 else 15028 have_openssl=no 15029 fi 15030 15031 15032 else 15033 have_openssl=no 15034 fi 15035 15036 LIBS="$SAVE_LIBS" 15037 LDFLAGS="$SAVE_LD_FLAGS" 15038 fi 15039 CPPFLAGS="$SAVE_CPP_FLAGS" 15040 fi 15041 if test "x$have_openssl" = "xyes" 15042 then 15043 enable_spdy=yes 15044 else 15045 if test "x$enable_spdy" = "xyes" ; then : 15046 as_fn_error $? "libmicrospdy cannot be enabled without OpenSSL." "$LINENO" 5 15047 fi 15048 have_openssl=no 15049 enable_spdy=no 15050 fi 15051 else 15052 # OpenSSL is used only for libmicrospdy 15053 have_openssl=no 15054 fi 15055 if test "x$have_openssl" = "xyes"; then 15056 HAVE_OPENSSL_TRUE= 15057 HAVE_OPENSSL_FALSE='#' 15058 else 15059 HAVE_OPENSSL_TRUE='#' 15060 HAVE_OPENSSL_FALSE= 15061 fi 15062 15063 15064 if test "$enable_spdy" = "yes" 15065 then 15066 15067 $as_echo "#define SPDY_SUPPORT 1" >>confdefs.h 15068 15069 else 15070 15071 $as_echo "#define SPDY_SUPPORT 0" >>confdefs.h 15072 15073 fi 15074 if test "x$enable_spdy" != "xno"; then 15075 ENABLE_SPDY_TRUE= 15076 ENABLE_SPDY_FALSE='#' 15077 else 15078 ENABLE_SPDY_TRUE='#' 15079 ENABLE_SPDY_FALSE= 15080 fi 15081 15082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have OpenSSL and thus can support libmicrospdy" >&5 15083 $as_echo_n "checking whether we have OpenSSL and thus can support libmicrospdy... " >&6; } 15084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_spdy" >&5 15085 $as_echo "$enable_spdy" >&6; } 15086 15087 # for pkg-config 15088 SPDY_LIBDEPS="$OPENSSL_LIBS" 15089 15090 SPDY_LIB_LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" 15091 SPDY_LIB_CFLAGS="$CFLAGS" 15092 SPDY_LIB_CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" 15093 15094 15095 15096 # for pkg-config 15097 15098 15099 for ac_header in spdylay/spdylay.h 15100 do : 15101 ac_fn_c_check_header_mongrel "$LINENO" "spdylay/spdylay.h" "ac_cv_header_spdylay_spdylay_h" "$ac_includes_default" 15102 if test "x$ac_cv_header_spdylay_spdylay_h" = xyes; then : 15103 cat >>confdefs.h <<_ACEOF 15104 #define HAVE_SPDYLAY_SPDYLAY_H 1 15105 _ACEOF 15106 have_spdylay="yes" 15107 else 15108 have_spdylay="no" 15109 fi 15110 15111 done 15112 15113 if test "x$have_spdylay" = "xyes"; then 15114 HAVE_SPDYLAY_TRUE= 15115 HAVE_SPDYLAY_FALSE='#' 15116 else 15117 HAVE_SPDYLAY_TRUE='#' 15118 HAVE_SPDYLAY_FALSE= 15119 fi 15120 15121 15122 # large file support (> 4 GB) 15123 # Check whether --enable-largefile was given. 15124 if test "${enable_largefile+set}" = set; then : 15125 enableval=$enable_largefile; 15126 fi 15127 15128 if test "$enable_largefile" != no; then 15129 15130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 15131 $as_echo_n "checking for special C compiler options needed for large files... " >&6; } 15132 if ${ac_cv_sys_largefile_CC+:} false; then : 15133 $as_echo_n "(cached) " >&6 15134 else 15135 ac_cv_sys_largefile_CC=no 15136 if test "$GCC" != yes; then 15137 ac_save_CC=$CC 15138 while :; do 15139 # IRIX 6.2 and later do not support large files by default, 15140 # so use the C compiler's -n32 option if that helps. 15141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15142 /* end confdefs.h. */ 15143 #include <sys/types.h> 15144 /* Check that off_t can represent 2**63 - 1 correctly. 15145 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15146 since some C++ compilers masquerading as C compilers 15147 incorrectly reject 9223372036854775807. */ 15148 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 15149 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15150 && LARGE_OFF_T % 2147483647 == 1) 15151 ? 1 : -1]; 15152 int 15153 main () 15154 { 15155 15156 ; 15157 return 0; 15158 } 15159 _ACEOF 15160 if ac_fn_c_try_compile "$LINENO"; then : 15161 break 15162 fi 15163 rm -f core conftest.err conftest.$ac_objext 15164 CC="$CC -n32" 15165 if ac_fn_c_try_compile "$LINENO"; then : 15166 ac_cv_sys_largefile_CC=' -n32'; break 15167 fi 15168 rm -f core conftest.err conftest.$ac_objext 15169 break 15170 done 15171 CC=$ac_save_CC 15172 rm -f conftest.$ac_ext 15173 fi 15174 fi 15175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 15176 $as_echo "$ac_cv_sys_largefile_CC" >&6; } 15177 if test "$ac_cv_sys_largefile_CC" != no; then 15178 CC=$CC$ac_cv_sys_largefile_CC 15179 fi 15180 15181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 15182 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 15183 if ${ac_cv_sys_file_offset_bits+:} false; then : 15184 $as_echo_n "(cached) " >&6 15185 else 15186 while :; do 15187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15188 /* end confdefs.h. */ 15189 #include <sys/types.h> 15190 /* Check that off_t can represent 2**63 - 1 correctly. 15191 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15192 since some C++ compilers masquerading as C compilers 15193 incorrectly reject 9223372036854775807. */ 15194 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 15195 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15196 && LARGE_OFF_T % 2147483647 == 1) 15197 ? 1 : -1]; 15198 int 15199 main () 15200 { 15201 15202 ; 15203 return 0; 15204 } 15205 _ACEOF 15206 if ac_fn_c_try_compile "$LINENO"; then : 15207 ac_cv_sys_file_offset_bits=no; break 15208 fi 15209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15211 /* end confdefs.h. */ 15212 #define _FILE_OFFSET_BITS 64 15213 #include <sys/types.h> 15214 /* Check that off_t can represent 2**63 - 1 correctly. 15215 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15216 since some C++ compilers masquerading as C compilers 15217 incorrectly reject 9223372036854775807. */ 15218 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 15219 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15220 && LARGE_OFF_T % 2147483647 == 1) 15221 ? 1 : -1]; 15222 int 15223 main () 15224 { 15225 15226 ; 15227 return 0; 15228 } 15229 _ACEOF 15230 if ac_fn_c_try_compile "$LINENO"; then : 15231 ac_cv_sys_file_offset_bits=64; break 15232 fi 15233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15234 ac_cv_sys_file_offset_bits=unknown 15235 break 15236 done 15237 fi 15238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 15239 $as_echo "$ac_cv_sys_file_offset_bits" >&6; } 15240 case $ac_cv_sys_file_offset_bits in #( 15241 no | unknown) ;; 15242 *) 15243 cat >>confdefs.h <<_ACEOF 15244 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 15245 _ACEOF 15246 ;; 15247 esac 15248 rm -rf conftest* 15249 if test $ac_cv_sys_file_offset_bits = unknown; then 15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 15251 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 15252 if ${ac_cv_sys_large_files+:} false; then : 15253 $as_echo_n "(cached) " >&6 15254 else 15255 while :; do 15256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15257 /* end confdefs.h. */ 15258 #include <sys/types.h> 15259 /* Check that off_t can represent 2**63 - 1 correctly. 15260 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15261 since some C++ compilers masquerading as C compilers 15262 incorrectly reject 9223372036854775807. */ 15263 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 15264 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15265 && LARGE_OFF_T % 2147483647 == 1) 15266 ? 1 : -1]; 15267 int 15268 main () 15269 { 15270 15271 ; 15272 return 0; 15273 } 15274 _ACEOF 15275 if ac_fn_c_try_compile "$LINENO"; then : 15276 ac_cv_sys_large_files=no; break 15277 fi 15278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15280 /* end confdefs.h. */ 15281 #define _LARGE_FILES 1 15282 #include <sys/types.h> 15283 /* Check that off_t can represent 2**63 - 1 correctly. 15284 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15285 since some C++ compilers masquerading as C compilers 15286 incorrectly reject 9223372036854775807. */ 15287 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 15288 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15289 && LARGE_OFF_T % 2147483647 == 1) 15290 ? 1 : -1]; 15291 int 15292 main () 15293 { 15294 15295 ; 15296 return 0; 15297 } 15298 _ACEOF 15299 if ac_fn_c_try_compile "$LINENO"; then : 15300 ac_cv_sys_large_files=1; break 15301 fi 15302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15303 ac_cv_sys_large_files=unknown 15304 break 15305 done 15306 fi 15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 15308 $as_echo "$ac_cv_sys_large_files" >&6; } 15309 case $ac_cv_sys_large_files in #( 15310 no | unknown) ;; 15311 *) 15312 cat >>confdefs.h <<_ACEOF 15313 #define _LARGE_FILES $ac_cv_sys_large_files 15314 _ACEOF 15315 ;; 15316 esac 15317 rm -rf conftest* 15318 fi 15319 15320 15321 fi 15322 15323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 15324 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 15325 if ${ac_cv_sys_largefile_source+:} false; then : 15326 $as_echo_n "(cached) " >&6 15327 else 15328 while :; do 15329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15330 /* end confdefs.h. */ 15331 #include <sys/types.h> /* for off_t */ 15332 #include <stdio.h> 15333 int 15334 main () 15335 { 15336 int (*fp) (FILE *, off_t, int) = fseeko; 15337 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 15338 ; 15339 return 0; 15340 } 15341 _ACEOF 15342 if ac_fn_c_try_link "$LINENO"; then : 15343 ac_cv_sys_largefile_source=no; break 15344 fi 15345 rm -f core conftest.err conftest.$ac_objext \ 15346 conftest$ac_exeext conftest.$ac_ext 15347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15348 /* end confdefs.h. */ 15349 #define _LARGEFILE_SOURCE 1 15350 #include <sys/types.h> /* for off_t */ 15351 #include <stdio.h> 15352 int 15353 main () 15354 { 15355 int (*fp) (FILE *, off_t, int) = fseeko; 15356 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 15357 ; 15358 return 0; 15359 } 15360 _ACEOF 15361 if ac_fn_c_try_link "$LINENO"; then : 15362 ac_cv_sys_largefile_source=1; break 15363 fi 15364 rm -f core conftest.err conftest.$ac_objext \ 15365 conftest$ac_exeext conftest.$ac_ext 15366 ac_cv_sys_largefile_source=unknown 15367 break 15368 done 15369 fi 15370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 15371 $as_echo "$ac_cv_sys_largefile_source" >&6; } 15372 case $ac_cv_sys_largefile_source in #( 15373 no | unknown) ;; 15374 *) 15375 cat >>confdefs.h <<_ACEOF 15376 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 15377 _ACEOF 15378 ;; 15379 esac 15380 rm -rf conftest* 15381 15382 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 15383 # in glibc 2.1.3, but that breaks too many other things. 15384 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 15385 if test $ac_cv_sys_largefile_source != unknown; then 15386 15387 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 15388 15389 fi 15390 15391 15392 # optional: have error messages ? 15393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to generate error messages" >&5 15394 $as_echo_n "checking whether to generate error messages... " >&6; } 15395 # Check whether --enable-messages was given. 15396 if test "${enable_messages+set}" = set; then : 15397 enableval=$enable_messages; enable_messages=${enableval} 15398 else 15399 enable_messages=yes 15400 fi 15401 15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_messages" >&5 15403 $as_echo "$enable_messages" >&6; } 15404 if test "$enable_messages" = "yes" 15405 then 15406 15407 $as_echo "#define HAVE_MESSAGES 1" >>confdefs.h 15408 15409 else 15410 15411 $as_echo "#define HAVE_MESSAGES 0" >>confdefs.h 15412 15413 fi 15414 15415 15416 # optional: have postprocessor? 15417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable postprocessor" >&5 15418 $as_echo_n "checking whether to enable postprocessor... " >&6; } 15419 # Check whether --enable-postprocessor was given. 15420 if test "${enable_postprocessor+set}" = set; then : 15421 enableval=$enable_postprocessor; enable_postprocessor=${enableval} 15422 else 15423 enable_postprocessor=yes 15424 fi 15425 15426 test "x$enable_postprocessor" = "xno" || enable_postprocessor=yes 15427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_postprocessor" >&5 15428 $as_echo "$enable_postprocessor" >&6; } 15429 if test "x$enable_postprocessor" != "xno"; then 15430 HAVE_POSTPROCESSOR_TRUE= 15431 HAVE_POSTPROCESSOR_FALSE='#' 15432 else 15433 HAVE_POSTPROCESSOR_TRUE='#' 15434 HAVE_POSTPROCESSOR_FALSE= 15435 fi 15436 15437 if test "x$enable_postprocessor" != "xno" 15438 then 15439 15440 $as_echo "#define HAVE_POSTPROCESSOR 1" >>confdefs.h 15441 15442 fi 15443 15444 15445 # optional: have zzuf, socat? 15446 # Extract the first word of "zzuf", so it can be a program name with args. 15447 set dummy zzuf; ac_word=$2 15448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15449 $as_echo_n "checking for $ac_word... " >&6; } 15450 if ${ac_cv_prog_have_zzuf+:} false; then : 15451 $as_echo_n "(cached) " >&6 15452 else 15453 if test -n "$have_zzuf"; then 15454 ac_cv_prog_have_zzuf="$have_zzuf" # Let the user override the test. 15455 else 15456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15457 for as_dir in $PATH 15458 do 15459 IFS=$as_save_IFS 15460 test -z "$as_dir" && as_dir=. 15461 for ac_exec_ext in '' $ac_executable_extensions; do 15462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15463 ac_cv_prog_have_zzuf="yes" 15464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15465 break 2 15466 fi 15467 done 15468 done 15469 IFS=$as_save_IFS 15470 15471 test -z "$ac_cv_prog_have_zzuf" && ac_cv_prog_have_zzuf="no" 15472 fi 15473 fi 15474 have_zzuf=$ac_cv_prog_have_zzuf 15475 if test -n "$have_zzuf"; then 15476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_zzuf" >&5 15477 $as_echo "$have_zzuf" >&6; } 15478 else 15479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15480 $as_echo "no" >&6; } 15481 fi 15482 15483 15484 # Extract the first word of "socat", so it can be a program name with args. 15485 set dummy socat; ac_word=$2 15486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15487 $as_echo_n "checking for $ac_word... " >&6; } 15488 if ${ac_cv_prog_have_socat+:} false; then : 15489 $as_echo_n "(cached) " >&6 15490 else 15491 if test -n "$have_socat"; then 15492 ac_cv_prog_have_socat="$have_socat" # Let the user override the test. 15493 else 15494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15495 for as_dir in $PATH 15496 do 15497 IFS=$as_save_IFS 15498 test -z "$as_dir" && as_dir=. 15499 for ac_exec_ext in '' $ac_executable_extensions; do 15500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15501 ac_cv_prog_have_socat="yes" 15502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15503 break 2 15504 fi 15505 done 15506 done 15507 IFS=$as_save_IFS 15508 15509 test -z "$ac_cv_prog_have_socat" && ac_cv_prog_have_socat="no" 15510 fi 15511 fi 15512 have_socat=$ac_cv_prog_have_socat 15513 if test -n "$have_socat"; then 15514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_socat" >&5 15515 $as_echo "$have_socat" >&6; } 15516 else 15517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15518 $as_echo "no" >&6; } 15519 fi 15520 15521 15522 if test "x$have_zzuf" = "xyes"; then 15523 HAVE_ZZUF_TRUE= 15524 HAVE_ZZUF_FALSE='#' 15525 else 15526 HAVE_ZZUF_TRUE='#' 15527 HAVE_ZZUF_FALSE= 15528 fi 15529 15530 if test "x$have_socat" = "xyes"; then 15531 HAVE_SOCAT_TRUE= 15532 HAVE_SOCAT_FALSE='#' 15533 else 15534 HAVE_SOCAT_TRUE='#' 15535 HAVE_SOCAT_FALSE= 15536 fi 15537 15538 15539 15540 # libgcrypt linkage: required for HTTPS support 15541 15542 15543 15544 15545 # Check whether --with-libgcrypt-prefix was given. 15546 if test "${with_libgcrypt_prefix+set}" = set; then : 15547 withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval" 15548 else 15549 libgcrypt_config_prefix="" 15550 fi 15551 15552 if test x$libgcrypt_config_prefix != x ; then 15553 if test x${LIBGCRYPT_CONFIG+set} != xset ; then 15554 LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config 15555 fi 15556 fi 15557 15558 if test -n "$ac_tool_prefix"; then 15559 # Extract the first word of "${ac_tool_prefix}libgcrypt-config", so it can be a program name with args. 15560 set dummy ${ac_tool_prefix}libgcrypt-config; ac_word=$2 15561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15562 $as_echo_n "checking for $ac_word... " >&6; } 15563 if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then : 15564 $as_echo_n "(cached) " >&6 15565 else 15566 case $LIBGCRYPT_CONFIG in 15567 [\\/]* | ?:[\\/]*) 15568 ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path. 15569 ;; 15570 *) 15571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15572 for as_dir in $PATH 15573 do 15574 IFS=$as_save_IFS 15575 test -z "$as_dir" && as_dir=. 15576 for ac_exec_ext in '' $ac_executable_extensions; do 15577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15578 ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15580 break 2 15581 fi 15582 done 15583 done 15584 IFS=$as_save_IFS 15585 15586 ;; 15587 esac 15588 fi 15589 LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG 15590 if test -n "$LIBGCRYPT_CONFIG"; then 15591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5 15592 $as_echo "$LIBGCRYPT_CONFIG" >&6; } 15593 else 15594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15595 $as_echo "no" >&6; } 15596 fi 15597 15598 15599 fi 15600 if test -z "$ac_cv_path_LIBGCRYPT_CONFIG"; then 15601 ac_pt_LIBGCRYPT_CONFIG=$LIBGCRYPT_CONFIG 15602 # Extract the first word of "libgcrypt-config", so it can be a program name with args. 15603 set dummy libgcrypt-config; ac_word=$2 15604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15605 $as_echo_n "checking for $ac_word... " >&6; } 15606 if ${ac_cv_path_ac_pt_LIBGCRYPT_CONFIG+:} false; then : 15607 $as_echo_n "(cached) " >&6 15608 else 15609 case $ac_pt_LIBGCRYPT_CONFIG in 15610 [\\/]* | ?:[\\/]*) 15611 ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$ac_pt_LIBGCRYPT_CONFIG" # Let the user override the test with a path. 15612 ;; 15613 *) 15614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15615 for as_dir in $PATH 15616 do 15617 IFS=$as_save_IFS 15618 test -z "$as_dir" && as_dir=. 15619 for ac_exec_ext in '' $ac_executable_extensions; do 15620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15621 ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15623 break 2 15624 fi 15625 done 15626 done 15627 IFS=$as_save_IFS 15628 15629 ;; 15630 esac 15631 fi 15632 ac_pt_LIBGCRYPT_CONFIG=$ac_cv_path_ac_pt_LIBGCRYPT_CONFIG 15633 if test -n "$ac_pt_LIBGCRYPT_CONFIG"; then 15634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGCRYPT_CONFIG" >&5 15635 $as_echo "$ac_pt_LIBGCRYPT_CONFIG" >&6; } 15636 else 15637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15638 $as_echo "no" >&6; } 15639 fi 15640 15641 if test "x$ac_pt_LIBGCRYPT_CONFIG" = x; then 15642 LIBGCRYPT_CONFIG="no" 15643 else 15644 case $cross_compiling:$ac_tool_warned in 15645 yes:) 15646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15647 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15648 ac_tool_warned=yes ;; 15649 esac 15650 LIBGCRYPT_CONFIG=$ac_pt_LIBGCRYPT_CONFIG 15651 fi 15652 else 15653 LIBGCRYPT_CONFIG="$ac_cv_path_LIBGCRYPT_CONFIG" 15654 fi 15655 15656 tmp=1.2.2 15657 if echo "$tmp" | $GREP ':' >/dev/null 2>/dev/null ; then 15658 req_libgcrypt_api=`echo "$tmp" | $SED 's/\(.*\):\(.*\)/\1/'` 15659 min_libgcrypt_version=`echo "$tmp" | $SED 's/\(.*\):\(.*\)/\2/'` 15660 else 15661 req_libgcrypt_api=0 15662 min_libgcrypt_version="$tmp" 15663 fi 15664 15665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5 15666 $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; } 15667 ok=no 15668 if test "$LIBGCRYPT_CONFIG" != "no" ; then 15669 req_major=`echo $min_libgcrypt_version | \ 15670 $SED 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 15671 req_minor=`echo $min_libgcrypt_version | \ 15672 $SED 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 15673 req_micro=`echo $min_libgcrypt_version | \ 15674 $SED 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 15675 libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version` 15676 major=`echo $libgcrypt_config_version | \ 15677 $SED 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'` 15678 minor=`echo $libgcrypt_config_version | \ 15679 $SED 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'` 15680 micro=`echo $libgcrypt_config_version | \ 15681 $SED 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'` 15682 if test "$major" -gt "$req_major"; then 15683 ok=yes 15684 else 15685 if test "$major" -eq "$req_major"; then 15686 if test "$minor" -gt "$req_minor"; then 15687 ok=yes 15688 else 15689 if test "$minor" -eq "$req_minor"; then 15690 if test "$micro" -ge "$req_micro"; then 15691 ok=yes 15692 fi 15693 fi 15694 fi 15695 fi 15696 fi 15697 fi 15698 if test $ok = yes; then 15699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5 15700 $as_echo "yes ($libgcrypt_config_version)" >&6; } 15701 else 15702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15703 $as_echo "no" >&6; } 15704 fi 15705 if test $ok = yes; then 15706 # If we have a recent libgcrypt, we should also check that the 15707 # API is compatible 15708 if test "$req_libgcrypt_api" -gt 0 ; then 15709 tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0` 15710 if test "$tmp" -gt 0 ; then 15711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5 15712 $as_echo_n "checking LIBGCRYPT API version... " >&6; } 15713 if test "$req_libgcrypt_api" -eq "$tmp" ; then 15714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5 15715 $as_echo "okay" >&6; } 15716 else 15717 ok=no 15718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5 15719 $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; } 15720 fi 15721 fi 15722 fi 15723 fi 15724 if test $ok = yes; then 15725 LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags` 15726 LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs` 15727 have_gcrypt=yes 15728 libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none` 15729 if test x"$libgcrypt_config_host" != xnone ; then 15730 if test x"$libgcrypt_config_host" != x"$host" ; then 15731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 15732 *** 15733 *** The config script $LIBGCRYPT_CONFIG was 15734 *** built for $libgcrypt_config_host and thus may not match the 15735 *** used host $host. 15736 *** You may want to use the configure option --with-libgcrypt-prefix 15737 *** to specify a matching config script. 15738 ***" >&5 15739 $as_echo "$as_me: WARNING: 15740 *** 15741 *** The config script $LIBGCRYPT_CONFIG was 15742 *** built for $libgcrypt_config_host and thus may not match the 15743 *** used host $host. 15744 *** You may want to use the configure option --with-libgcrypt-prefix 15745 *** to specify a matching config script. 15746 ***" >&2;} 15747 fi 15748 fi 15749 else 15750 LIBGCRYPT_CFLAGS="" 15751 LIBGCRYPT_LIBS="" 15752 have_gcrypt=no 15753 fi 15754 15755 15756 15757 if test "x$have_gcrypt" = "xyes" 15758 then 15759 SAVE_CFLAGS="$CFLAGS" 15760 CFLAGS="$CFLAGS $LIBGCRYPT_CFLAGS" 15761 # LIBGCRYPT_CFLAGS can be actually a CPPFLAGS, so check them both 15762 SAVE_CPPFLAGS="$CPPFLAGS" 15763 CPPFLAGS="$CPPFLAGS $LIBGCRYPT_CFLAGS" 15764 for ac_header in gcrypt.h 15765 do : 15766 ac_fn_c_check_header_mongrel "$LINENO" "gcrypt.h" "ac_cv_header_gcrypt_h" "$ac_includes_default" 15767 if test "x$ac_cv_header_gcrypt_h" = xyes; then : 15768 cat >>confdefs.h <<_ACEOF 15769 #define HAVE_GCRYPT_H 1 15770 _ACEOF 15771 15772 else 15773 have_gcrypt=no 15774 fi 15775 15776 done 15777 15778 CFLAGS="$SAVE_CFLAGS" 15779 CPPFLAGS="$SAVE_CPPFLAGS" 15780 fi 15781 15782 # gnutls 15783 GNUTLS_CPPFLAGS="" 15784 GNUTLS_LDFLAGS="" 15785 have_gnutls=no 15786 have_gnutls_sni=no 15787 have_gnutls_pkgcfg=no 15788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to find GnuTLS library" >&5 15789 $as_echo_n "checking how to find GnuTLS library... " >&6; } 15790 15791 # Check whether --with-gnutls was given. 15792 if test "${with_gnutls+set}" = set; then : 15793 withval=$with_gnutls; 15794 case $with_gnutls in 15795 no) 15796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GnuTLS disabled" >&5 15797 $as_echo "GnuTLS disabled" >&6; } 15798 ;; 15799 yes) 15800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: automatically, forced" >&5 15801 $as_echo "automatically, forced" >&6; } 15802 ;; 15803 *) 15804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -I$with_gnutls/include -L$with_gnutls/lib -lgnutls" >&5 15805 $as_echo "-I$with_gnutls/include -L$with_gnutls/lib -lgnutls" >&6; } 15806 SAVE_LDFLAGS="$LDFLAGS" 15807 SAVE_CPPFLAGS="$CPPFLAGS" 15808 LDFLAGS="-L$with_gnutls/lib $LDFLAGS" 15809 CPPFLAGS="-I$with_gnutls/include $CPPFLAGS" 15810 have_gnutls_pkgcfg=no 15811 for ac_header in gnutls/gnutls.h 15812 do : 15813 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default" 15814 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then : 15815 cat >>confdefs.h <<_ACEOF 15816 #define HAVE_GNUTLS_GNUTLS_H 1 15817 _ACEOF 15818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_priority_set in -lgnutls" >&5 15819 $as_echo_n "checking for gnutls_priority_set in -lgnutls... " >&6; } 15820 if ${ac_cv_lib_gnutls_gnutls_priority_set+:} false; then : 15821 $as_echo_n "(cached) " >&6 15822 else 15823 ac_check_lib_save_LIBS=$LIBS 15824 LIBS="-lgnutls $LIBS" 15825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15826 /* end confdefs.h. */ 15827 15828 /* Override any GCC internal prototype to avoid an error. 15829 Use char because int might match the return type of a GCC 15830 builtin and then its argument prototype would still apply. */ 15831 #ifdef __cplusplus 15832 extern "C" 15833 #endif 15834 char gnutls_priority_set (); 15835 int 15836 main () 15837 { 15838 return gnutls_priority_set (); 15839 ; 15840 return 0; 15841 } 15842 _ACEOF 15843 if ac_fn_c_try_link "$LINENO"; then : 15844 ac_cv_lib_gnutls_gnutls_priority_set=yes 15845 else 15846 ac_cv_lib_gnutls_gnutls_priority_set=no 15847 fi 15848 rm -f core conftest.err conftest.$ac_objext \ 15849 conftest$ac_exeext conftest.$ac_ext 15850 LIBS=$ac_check_lib_save_LIBS 15851 fi 15852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_priority_set" >&5 15853 $as_echo "$ac_cv_lib_gnutls_gnutls_priority_set" >&6; } 15854 if test "x$ac_cv_lib_gnutls_gnutls_priority_set" = xyes; then : 15855 15856 GNUTLS_CPPFLAGS="-I$with_gnutls/include" 15857 GNUTLS_LDFLAGS="-L$with_gnutls/lib" 15858 GNUTLS_LIBS="-lgnutls" 15859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_load_file in -lgnutls" >&5 15860 $as_echo_n "checking for gnutls_load_file in -lgnutls... " >&6; } 15861 if ${ac_cv_lib_gnutls_gnutls_load_file+:} false; then : 15862 $as_echo_n "(cached) " >&6 15863 else 15864 ac_check_lib_save_LIBS=$LIBS 15865 LIBS="-lgnutls $LIBS" 15866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15867 /* end confdefs.h. */ 15868 15869 /* Override any GCC internal prototype to avoid an error. 15870 Use char because int might match the return type of a GCC 15871 builtin and then its argument prototype would still apply. */ 15872 #ifdef __cplusplus 15873 extern "C" 15874 #endif 15875 char gnutls_load_file (); 15876 int 15877 main () 15878 { 15879 return gnutls_load_file (); 15880 ; 15881 return 0; 15882 } 15883 _ACEOF 15884 if ac_fn_c_try_link "$LINENO"; then : 15885 ac_cv_lib_gnutls_gnutls_load_file=yes 15886 else 15887 ac_cv_lib_gnutls_gnutls_load_file=no 15888 fi 15889 rm -f core conftest.err conftest.$ac_objext \ 15890 conftest$ac_exeext conftest.$ac_ext 15891 LIBS=$ac_check_lib_save_LIBS 15892 fi 15893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_load_file" >&5 15894 $as_echo "$ac_cv_lib_gnutls_gnutls_load_file" >&6; } 15895 if test "x$ac_cv_lib_gnutls_gnutls_load_file" = xyes; then : 15896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_privkey_import_x509_raw in -lgnutls" >&5 15897 $as_echo_n "checking for gnutls_privkey_import_x509_raw in -lgnutls... " >&6; } 15898 if ${ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw+:} false; then : 15899 $as_echo_n "(cached) " >&6 15900 else 15901 ac_check_lib_save_LIBS=$LIBS 15902 LIBS="-lgnutls $LIBS" 15903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15904 /* end confdefs.h. */ 15905 15906 /* Override any GCC internal prototype to avoid an error. 15907 Use char because int might match the return type of a GCC 15908 builtin and then its argument prototype would still apply. */ 15909 #ifdef __cplusplus 15910 extern "C" 15911 #endif 15912 char gnutls_privkey_import_x509_raw (); 15913 int 15914 main () 15915 { 15916 return gnutls_privkey_import_x509_raw (); 15917 ; 15918 return 0; 15919 } 15920 _ACEOF 15921 if ac_fn_c_try_link "$LINENO"; then : 15922 ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw=yes 15923 else 15924 ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw=no 15925 fi 15926 rm -f core conftest.err conftest.$ac_objext \ 15927 conftest$ac_exeext conftest.$ac_ext 15928 LIBS=$ac_check_lib_save_LIBS 15929 fi 15930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw" >&5 15931 $as_echo "$ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw" >&6; } 15932 if test "x$ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw" = xyes; then : 15933 have_gnutls_sni=yes 15934 fi 15935 15936 fi 15937 15938 have_gnutls=yes 15939 15940 fi 15941 15942 fi 15943 15944 done 15945 15946 if test "x$have_gnutls" != "xyes"; then : 15947 as_fn_error $? "can't find usable libgnutls at specified prefix $with_gnutls" "$LINENO" 5 15948 fi 15949 LDFLAGS="$SAVE_LDFLAGS" 15950 CPPFLAGS="$SAVE_CPPFLAGS" 15951 ;; 15952 esac 15953 15954 else 15955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: automatically" >&5 15956 $as_echo "automatically" >&6; } 15957 15958 fi 15959 15960 15961 15962 15963 15964 15965 15966 15967 15968 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 15969 if test -n "$ac_tool_prefix"; then 15970 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 15971 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 15972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15973 $as_echo_n "checking for $ac_word... " >&6; } 15974 if ${ac_cv_path_PKG_CONFIG+:} false; then : 15975 $as_echo_n "(cached) " >&6 15976 else 15977 case $PKG_CONFIG in 15978 [\\/]* | ?:[\\/]*) 15979 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 15980 ;; 15981 *) 15982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15983 for as_dir in $PATH 15984 do 15985 IFS=$as_save_IFS 15986 test -z "$as_dir" && as_dir=. 15987 for ac_exec_ext in '' $ac_executable_extensions; do 15988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15989 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15991 break 2 15992 fi 15993 done 15994 done 15995 IFS=$as_save_IFS 15996 15997 ;; 15998 esac 15999 fi 16000 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 16001 if test -n "$PKG_CONFIG"; then 16002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 16003 $as_echo "$PKG_CONFIG" >&6; } 16004 else 16005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16006 $as_echo "no" >&6; } 16007 fi 16008 16009 16010 fi 16011 if test -z "$ac_cv_path_PKG_CONFIG"; then 16012 ac_pt_PKG_CONFIG=$PKG_CONFIG 16013 # Extract the first word of "pkg-config", so it can be a program name with args. 16014 set dummy pkg-config; ac_word=$2 16015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16016 $as_echo_n "checking for $ac_word... " >&6; } 16017 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 16018 $as_echo_n "(cached) " >&6 16019 else 16020 case $ac_pt_PKG_CONFIG in 16021 [\\/]* | ?:[\\/]*) 16022 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 16023 ;; 16024 *) 16025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16026 for as_dir in $PATH 16027 do 16028 IFS=$as_save_IFS 16029 test -z "$as_dir" && as_dir=. 16030 for ac_exec_ext in '' $ac_executable_extensions; do 16031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16032 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 16033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16034 break 2 16035 fi 16036 done 16037 done 16038 IFS=$as_save_IFS 16039 16040 ;; 16041 esac 16042 fi 16043 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 16044 if test -n "$ac_pt_PKG_CONFIG"; then 16045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 16046 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 16047 else 16048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16049 $as_echo "no" >&6; } 16050 fi 16051 16052 if test "x$ac_pt_PKG_CONFIG" = x; then 16053 PKG_CONFIG="" 16054 else 16055 case $cross_compiling:$ac_tool_warned in 16056 yes:) 16057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16059 ac_tool_warned=yes ;; 16060 esac 16061 PKG_CONFIG=$ac_pt_PKG_CONFIG 16062 fi 16063 else 16064 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 16065 fi 16066 16067 fi 16068 if test -n "$PKG_CONFIG"; then 16069 _pkg_min_version=0.9.0 16070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 16071 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 16072 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16074 $as_echo "yes" >&6; } 16075 else 16076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16077 $as_echo "no" >&6; } 16078 PKG_CONFIG="" 16079 fi 16080 fi 16081 if test "x$with_gnutls" != "xno" && test "x$have_gnutls" != "xyes"; then : 16082 16083 16084 pkg_failed=no 16085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5 16086 $as_echo_n "checking for GNUTLS... " >&6; } 16087 16088 if test -n "$GNUTLS_CFLAGS"; then 16089 pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS" 16090 elif test -n "$PKG_CONFIG"; then 16091 if test -n "$PKG_CONFIG" && \ 16092 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5 16093 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5 16094 ac_status=$? 16095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16096 test $ac_status = 0; }; then 16097 pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls" 2>/dev/null` 16098 test "x$?" != "x0" && pkg_failed=yes 16099 else 16100 pkg_failed=yes 16101 fi 16102 else 16103 pkg_failed=untried 16104 fi 16105 if test -n "$GNUTLS_LIBS"; then 16106 pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS" 16107 elif test -n "$PKG_CONFIG"; then 16108 if test -n "$PKG_CONFIG" && \ 16109 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5 16110 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5 16111 ac_status=$? 16112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16113 test $ac_status = 0; }; then 16114 pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls" 2>/dev/null` 16115 test "x$?" != "x0" && pkg_failed=yes 16116 else 16117 pkg_failed=yes 16118 fi 16119 else 16120 pkg_failed=untried 16121 fi 16122 16123 16124 16125 if test $pkg_failed = yes; then 16126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16127 $as_echo "no" >&6; } 16128 16129 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16130 _pkg_short_errors_supported=yes 16131 else 16132 _pkg_short_errors_supported=no 16133 fi 16134 if test $_pkg_short_errors_supported = yes; then 16135 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls" 2>&1` 16136 else 16137 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls" 2>&1` 16138 fi 16139 # Put the nasty error message in config.log where it belongs 16140 echo "$GNUTLS_PKG_ERRORS" >&5 16141 16142 16143 have_gnutls_pkgcfg='no' 16144 for ac_header in gnutls/gnutls.h 16145 do : 16146 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default" 16147 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then : 16148 cat >>confdefs.h <<_ACEOF 16149 #define HAVE_GNUTLS_GNUTLS_H 1 16150 _ACEOF 16151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_priority_set in -lgnutls" >&5 16152 $as_echo_n "checking for gnutls_priority_set in -lgnutls... " >&6; } 16153 if ${ac_cv_lib_gnutls_gnutls_priority_set+:} false; then : 16154 $as_echo_n "(cached) " >&6 16155 else 16156 ac_check_lib_save_LIBS=$LIBS 16157 LIBS="-lgnutls $LIBS" 16158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16159 /* end confdefs.h. */ 16160 16161 /* Override any GCC internal prototype to avoid an error. 16162 Use char because int might match the return type of a GCC 16163 builtin and then its argument prototype would still apply. */ 16164 #ifdef __cplusplus 16165 extern "C" 16166 #endif 16167 char gnutls_priority_set (); 16168 int 16169 main () 16170 { 16171 return gnutls_priority_set (); 16172 ; 16173 return 0; 16174 } 16175 _ACEOF 16176 if ac_fn_c_try_link "$LINENO"; then : 16177 ac_cv_lib_gnutls_gnutls_priority_set=yes 16178 else 16179 ac_cv_lib_gnutls_gnutls_priority_set=no 16180 fi 16181 rm -f core conftest.err conftest.$ac_objext \ 16182 conftest$ac_exeext conftest.$ac_ext 16183 LIBS=$ac_check_lib_save_LIBS 16184 fi 16185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_priority_set" >&5 16186 $as_echo "$ac_cv_lib_gnutls_gnutls_priority_set" >&6; } 16187 if test "x$ac_cv_lib_gnutls_gnutls_priority_set" = xyes; then : 16188 16189 GNUTLS_LIBS="-lgnutls" 16190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_load_file in -lgnutls" >&5 16191 $as_echo_n "checking for gnutls_load_file in -lgnutls... " >&6; } 16192 if ${ac_cv_lib_gnutls_gnutls_load_file+:} false; then : 16193 $as_echo_n "(cached) " >&6 16194 else 16195 ac_check_lib_save_LIBS=$LIBS 16196 LIBS="-lgnutls $LIBS" 16197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16198 /* end confdefs.h. */ 16199 16200 /* Override any GCC internal prototype to avoid an error. 16201 Use char because int might match the return type of a GCC 16202 builtin and then its argument prototype would still apply. */ 16203 #ifdef __cplusplus 16204 extern "C" 16205 #endif 16206 char gnutls_load_file (); 16207 int 16208 main () 16209 { 16210 return gnutls_load_file (); 16211 ; 16212 return 0; 16213 } 16214 _ACEOF 16215 if ac_fn_c_try_link "$LINENO"; then : 16216 ac_cv_lib_gnutls_gnutls_load_file=yes 16217 else 16218 ac_cv_lib_gnutls_gnutls_load_file=no 16219 fi 16220 rm -f core conftest.err conftest.$ac_objext \ 16221 conftest$ac_exeext conftest.$ac_ext 16222 LIBS=$ac_check_lib_save_LIBS 16223 fi 16224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_load_file" >&5 16225 $as_echo "$ac_cv_lib_gnutls_gnutls_load_file" >&6; } 16226 if test "x$ac_cv_lib_gnutls_gnutls_load_file" = xyes; then : 16227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_privkey_import_x509_raw in -lgnutls" >&5 16228 $as_echo_n "checking for gnutls_privkey_import_x509_raw in -lgnutls... " >&6; } 16229 if ${ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw+:} false; then : 16230 $as_echo_n "(cached) " >&6 16231 else 16232 ac_check_lib_save_LIBS=$LIBS 16233 LIBS="-lgnutls $LIBS" 16234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16235 /* end confdefs.h. */ 16236 16237 /* Override any GCC internal prototype to avoid an error. 16238 Use char because int might match the return type of a GCC 16239 builtin and then its argument prototype would still apply. */ 16240 #ifdef __cplusplus 16241 extern "C" 16242 #endif 16243 char gnutls_privkey_import_x509_raw (); 16244 int 16245 main () 16246 { 16247 return gnutls_privkey_import_x509_raw (); 16248 ; 16249 return 0; 16250 } 16251 _ACEOF 16252 if ac_fn_c_try_link "$LINENO"; then : 16253 ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw=yes 16254 else 16255 ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw=no 16256 fi 16257 rm -f core conftest.err conftest.$ac_objext \ 16258 conftest$ac_exeext conftest.$ac_ext 16259 LIBS=$ac_check_lib_save_LIBS 16260 fi 16261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw" >&5 16262 $as_echo "$ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw" >&6; } 16263 if test "x$ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw" = xyes; then : 16264 have_gnutls_sni=yes 16265 fi 16266 16267 fi 16268 16269 have_gnutls=yes 16270 16271 fi 16272 16273 fi 16274 16275 done 16276 16277 16278 elif test $pkg_failed = untried; then 16279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16280 $as_echo "no" >&6; } 16281 16282 have_gnutls_pkgcfg='no' 16283 for ac_header in gnutls/gnutls.h 16284 do : 16285 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default" 16286 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then : 16287 cat >>confdefs.h <<_ACEOF 16288 #define HAVE_GNUTLS_GNUTLS_H 1 16289 _ACEOF 16290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_priority_set in -lgnutls" >&5 16291 $as_echo_n "checking for gnutls_priority_set in -lgnutls... " >&6; } 16292 if ${ac_cv_lib_gnutls_gnutls_priority_set+:} false; then : 16293 $as_echo_n "(cached) " >&6 16294 else 16295 ac_check_lib_save_LIBS=$LIBS 16296 LIBS="-lgnutls $LIBS" 16297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16298 /* end confdefs.h. */ 16299 16300 /* Override any GCC internal prototype to avoid an error. 16301 Use char because int might match the return type of a GCC 16302 builtin and then its argument prototype would still apply. */ 16303 #ifdef __cplusplus 16304 extern "C" 16305 #endif 16306 char gnutls_priority_set (); 16307 int 16308 main () 16309 { 16310 return gnutls_priority_set (); 16311 ; 16312 return 0; 16313 } 16314 _ACEOF 16315 if ac_fn_c_try_link "$LINENO"; then : 16316 ac_cv_lib_gnutls_gnutls_priority_set=yes 16317 else 16318 ac_cv_lib_gnutls_gnutls_priority_set=no 16319 fi 16320 rm -f core conftest.err conftest.$ac_objext \ 16321 conftest$ac_exeext conftest.$ac_ext 16322 LIBS=$ac_check_lib_save_LIBS 16323 fi 16324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_priority_set" >&5 16325 $as_echo "$ac_cv_lib_gnutls_gnutls_priority_set" >&6; } 16326 if test "x$ac_cv_lib_gnutls_gnutls_priority_set" = xyes; then : 16327 16328 GNUTLS_LIBS="-lgnutls" 16329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_load_file in -lgnutls" >&5 16330 $as_echo_n "checking for gnutls_load_file in -lgnutls... " >&6; } 16331 if ${ac_cv_lib_gnutls_gnutls_load_file+:} false; then : 16332 $as_echo_n "(cached) " >&6 16333 else 16334 ac_check_lib_save_LIBS=$LIBS 16335 LIBS="-lgnutls $LIBS" 16336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16337 /* end confdefs.h. */ 16338 16339 /* Override any GCC internal prototype to avoid an error. 16340 Use char because int might match the return type of a GCC 16341 builtin and then its argument prototype would still apply. */ 16342 #ifdef __cplusplus 16343 extern "C" 16344 #endif 16345 char gnutls_load_file (); 16346 int 16347 main () 16348 { 16349 return gnutls_load_file (); 16350 ; 16351 return 0; 16352 } 16353 _ACEOF 16354 if ac_fn_c_try_link "$LINENO"; then : 16355 ac_cv_lib_gnutls_gnutls_load_file=yes 16356 else 16357 ac_cv_lib_gnutls_gnutls_load_file=no 16358 fi 16359 rm -f core conftest.err conftest.$ac_objext \ 16360 conftest$ac_exeext conftest.$ac_ext 16361 LIBS=$ac_check_lib_save_LIBS 16362 fi 16363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_load_file" >&5 16364 $as_echo "$ac_cv_lib_gnutls_gnutls_load_file" >&6; } 16365 if test "x$ac_cv_lib_gnutls_gnutls_load_file" = xyes; then : 16366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_privkey_import_x509_raw in -lgnutls" >&5 16367 $as_echo_n "checking for gnutls_privkey_import_x509_raw in -lgnutls... " >&6; } 16368 if ${ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw+:} false; then : 16369 $as_echo_n "(cached) " >&6 16370 else 16371 ac_check_lib_save_LIBS=$LIBS 16372 LIBS="-lgnutls $LIBS" 16373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16374 /* end confdefs.h. */ 16375 16376 /* Override any GCC internal prototype to avoid an error. 16377 Use char because int might match the return type of a GCC 16378 builtin and then its argument prototype would still apply. */ 16379 #ifdef __cplusplus 16380 extern "C" 16381 #endif 16382 char gnutls_privkey_import_x509_raw (); 16383 int 16384 main () 16385 { 16386 return gnutls_privkey_import_x509_raw (); 16387 ; 16388 return 0; 16389 } 16390 _ACEOF 16391 if ac_fn_c_try_link "$LINENO"; then : 16392 ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw=yes 16393 else 16394 ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw=no 16395 fi 16396 rm -f core conftest.err conftest.$ac_objext \ 16397 conftest$ac_exeext conftest.$ac_ext 16398 LIBS=$ac_check_lib_save_LIBS 16399 fi 16400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw" >&5 16401 $as_echo "$ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw" >&6; } 16402 if test "x$ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw" = xyes; then : 16403 have_gnutls_sni=yes 16404 fi 16405 16406 fi 16407 16408 have_gnutls=yes 16409 16410 fi 16411 16412 fi 16413 16414 done 16415 16416 16417 else 16418 GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS 16419 GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS 16420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16421 $as_echo "yes" >&6; } 16422 16423 have_gnutls_pkgcfg='yes' 16424 SAVE_CPPFLAGS="$CPPFLAGS" 16425 SAVE_CFLAGS="$CFLAGS" 16426 SAVE_LDFLAGS="$LDFLAGS" 16427 SAVE_LIBS="$LIBS" 16428 CPPFLAGS="$GNUTLS_CFLAGS $CPPFLAGS" 16429 CFLAGS="$GNUTLS_CFLAGS $CFLAGS" 16430 LDFLAGS="$GNUTLS_LIBS $LDFLAGS" 16431 LIBS="$LIBS $GNUTLS_LIBS" 16432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GnuTLS is usable" >&5 16433 $as_echo_n "checking whether GnuTLS is usable... " >&6; } 16434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16435 /* end confdefs.h. */ 16436 16437 #include <gnutls/gnutls.h> 16438 int 16439 main () 16440 { 16441 16442 gnutls_session_t session; 16443 gnutls_priority_t priorities; 16444 gnutls_global_init(); 16445 gnutls_priority_init(&priorities, "NORMAL", NULL); 16446 gnutls_init(&session, GNUTLS_SERVER); 16447 gnutls_priority_set(session, priorities); 16448 16449 ; 16450 return 0; 16451 } 16452 _ACEOF 16453 if ac_fn_c_try_link "$LINENO"; then : 16454 16455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16456 $as_echo "yes" >&6; } 16457 have_gnutls=yes 16458 GNUTLS_CPPLAGS="$GNUTLS_CFLAGS" 16459 GNUTLS_LDFLAGS="$GNUTLS_LIBS" 16460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_privkey_import_x509_raw()" >&5 16461 $as_echo_n "checking for gnutls_privkey_import_x509_raw()... " >&6; } 16462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16463 /* end confdefs.h. */ 16464 16465 #include <gnutls/gnutls.h> 16466 int 16467 main () 16468 { 16469 16470 gnutls_datum_t data; 16471 gnutls_privkey_t key; 16472 gnutls_load_file("key.pem", &data); 16473 gnutls_privkey_import_x509_raw(key, &data, GNUTLS_X509_FMT_PEM, NULL, 0); 16474 gnutls_free(data.data); 16475 16476 ; 16477 return 0; 16478 } 16479 _ACEOF 16480 if ac_fn_c_try_link "$LINENO"; then : 16481 have_gnutls_sni=yes 16482 else 16483 have_gnutls_sni=no 16484 fi 16485 rm -f core conftest.err conftest.$ac_objext \ 16486 conftest$ac_exeext conftest.$ac_ext 16487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gnutls_sni" >&5 16488 $as_echo "$have_gnutls_sni" >&6; } 16489 16490 else 16491 16492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16493 $as_echo "no" >&6; } 16494 have_gnutls=no 16495 16496 fi 16497 rm -f core conftest.err conftest.$ac_objext \ 16498 conftest$ac_exeext conftest.$ac_ext 16499 16500 if test "x$have_gnutls" != "xyes"; then : 16501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config reports that GnuTLS is present, but GnuTLS can't be used" >&5 16502 $as_echo "$as_me: WARNING: pkg-config reports that GnuTLS is present, but GnuTLS can't be used" >&2;} 16503 fi 16504 CPPFLAGS="$SAVE_CPPFLAGS" 16505 CFLAGS="$SAVE_CFLAGS" 16506 LDFLAGS="$SAVE_LDFLAGS" 16507 LIBS="$SAVE_LIBS" 16508 16509 fi 16510 16511 fi 16512 16513 if test "x$have_gnutls" != "xyes" && test "x$with_gnutls" = "xyes"; then : 16514 as_fn_error $? "can't find usable libgnutls" "$LINENO" 5 16515 fi 16516 16517 if test "x$have_gnutls" = "xyes"; then 16518 HAVE_GNUTLS_TRUE= 16519 HAVE_GNUTLS_FALSE='#' 16520 else 16521 HAVE_GNUTLS_TRUE='#' 16522 HAVE_GNUTLS_FALSE= 16523 fi 16524 16525 if test "x$have_gnutls_sni" = "xyes"; then 16526 HAVE_GNUTLS_SNI_TRUE= 16527 HAVE_GNUTLS_SNI_FALSE='#' 16528 else 16529 HAVE_GNUTLS_SNI_TRUE='#' 16530 HAVE_GNUTLS_SNI_FALSE= 16531 fi 16532 16533 16534 16535 16536 16537 16538 16539 # optional: HTTPS support. Enabled by default 16540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support HTTPS" >&5 16541 $as_echo_n "checking whether to support HTTPS... " >&6; } 16542 # Check whether --enable-https was given. 16543 if test "${enable_https+set}" = set; then : 16544 enableval=$enable_https; enable_https=${enableval} 16545 fi 16546 16547 if test "x$enable_https" != "xno" 16548 then 16549 if test "x$have_gnutls" = "xyes" && test "x$have_gcrypt" = "xyes"; then : 16550 16551 16552 $as_echo "#define HTTPS_SUPPORT 1" >>confdefs.h 16553 16554 MHD_LIB_CPPFLAGS="$MHD_LIB_CPPFLAGS $LIBGCRYPT_CFLAGS $GNUTLS_CPPFLAGS" 16555 MHD_LIB_CFLAGS="$MHD_LIB_CFLAGS $LIBGCRYPT_CFLAGS $GNUTLS_CFLAGS" 16556 MHD_LIB_LDFLAGS="$MHD_LIB_LDFLAGS $GNUTLS_LDFLAGS" 16557 MHD_LIBDEPS="$GNUTLS_LIBS $LIBGCRYPT_LIBS $MHD_LIBDEPS" 16558 enable_https=yes 16559 MSG_HTTPS="yes (using libgnutls and libgcrypt)" 16560 16561 else 16562 16563 if test "x$have_gnutls" = "xyes"; then : 16564 crypt_missing="libgrypt" 16565 elif test "x$have_gcrypt" = "xyes"; then : 16566 crypt_missing="libgnutls" 16567 else 16568 crypt_missing="libgrypt and libgnutls" 16569 fi 16570 if test "x$enable_https" = "xyes" ; then : 16571 as_fn_error $? "HTTPS support cannot be enabled without $crypt_missing." "$LINENO" 5 16572 fi 16573 16574 $as_echo "#define HTTPS_SUPPORT 0" >>confdefs.h 16575 16576 enable_https=no 16577 MSG_HTTPS="no (lacking $crypt_missing)" 16578 16579 fi 16580 else 16581 16582 $as_echo "#define HTTPS_SUPPORT 0" >>confdefs.h 16583 16584 MSG_HTTPS="no (disabled)" 16585 fi 16586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSG_HTTPS" >&5 16587 $as_echo "$MSG_HTTPS" >&6; } 16588 16589 if test "x$enable_https" = "xyes"; then 16590 ENABLE_HTTPS_TRUE= 16591 ENABLE_HTTPS_FALSE='#' 16592 else 16593 ENABLE_HTTPS_TRUE='#' 16594 ENABLE_HTTPS_FALSE= 16595 fi 16596 16597 16598 # optional: HTTP Basic Auth support. Enabled by default 16599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support HTTP basic authentication" >&5 16600 $as_echo_n "checking whether to support HTTP basic authentication... " >&6; } 16601 # Check whether --enable-bauth was given. 16602 if test "${enable_bauth+set}" = set; then : 16603 enableval=$enable_bauth; enable_bauth=${enableval} 16604 else 16605 enable_bauth=yes 16606 fi 16607 16608 if test "x$enable_bauth" != "xno" 16609 then 16610 enable_bauth=yes 16611 16612 $as_echo "#define BAUTH_SUPPORT 1" >>confdefs.h 16613 16614 else 16615 16616 $as_echo "#define BAUTH_SUPPORT 0" >>confdefs.h 16617 16618 fi 16619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_bauth" >&5 16620 $as_echo "$enable_bauth" >&6; } 16621 if test "x$enable_bauth" != "xno"; then 16622 ENABLE_BAUTH_TRUE= 16623 ENABLE_BAUTH_FALSE='#' 16624 else 16625 ENABLE_BAUTH_TRUE='#' 16626 ENABLE_BAUTH_FALSE= 16627 fi 16628 16629 16630 # optional: HTTP Digest Auth support. Enabled by default 16631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support HTTP digest authentication" >&5 16632 $as_echo_n "checking whether to support HTTP digest authentication... " >&6; } 16633 # Check whether --enable-dauth was given. 16634 if test "${enable_dauth+set}" = set; then : 16635 enableval=$enable_dauth; enable_dauth=${enableval} 16636 else 16637 enable_dauth=yes 16638 fi 16639 16640 if test "x$enable_dauth" != "xno" 16641 then 16642 enable_dauth=yes 16643 16644 $as_echo "#define DAUTH_SUPPORT 1" >>confdefs.h 16645 16646 else 16647 16648 $as_echo "#define DAUTH_SUPPORT 0" >>confdefs.h 16649 16650 fi 16651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dauth" >&5 16652 $as_echo "$enable_dauth" >&6; } 16653 if test "x$enable_dauth" != "xno"; then 16654 ENABLE_DAUTH_TRUE= 16655 ENABLE_DAUTH_FALSE='#' 16656 else 16657 ENABLE_DAUTH_TRUE='#' 16658 ENABLE_DAUTH_FALSE= 16659 fi 16660 16661 16662 16663 16664 MHD_LIB_LDFLAGS="$MHD_LIB_LDFLAGS -export-dynamic -no-undefined" 16665 16666 # gcov compilation 16667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile with support for code coverage analysis" >&5 16668 $as_echo_n "checking whether to compile with support for code coverage analysis... " >&6; } 16669 # Check whether --enable-coverage was given. 16670 if test "${enable_coverage+set}" = set; then : 16671 enableval=$enable_coverage; use_gcov=${enableval} 16672 else 16673 use_gcov=no 16674 fi 16675 16676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gcov" >&5 16677 $as_echo "$use_gcov" >&6; } 16678 if test "x$use_gcov" = "xyes"; then 16679 USE_COVERAGE_TRUE= 16680 USE_COVERAGE_FALSE='#' 16681 else 16682 USE_COVERAGE_TRUE='#' 16683 USE_COVERAGE_FALSE= 16684 fi 16685 16686 16687 16688 16689 16690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the number of available CPUs" >&5 16691 $as_echo_n "checking the number of available CPUs... " >&6; } 16692 CPU_COUNT="0" 16693 16694 case $host_os in #( 16695 16696 *darwin*) : 16697 16698 if test -x /usr/sbin/sysctl; then : 16699 16700 sysctl_a=`/usr/sbin/sysctl -a 2>/dev/null| grep -c hw.cpu` 16701 if test sysctl_a; then : 16702 16703 CPU_COUNT=`/usr/sbin/sysctl -n hw.ncpu` 16704 16705 fi 16706 16707 fi ;; #( 16708 16709 *linux*) : 16710 16711 if test "x$CPU_COUNT" = "x0" -a -e /proc/cpuinfo; then : 16712 16713 if test "x$CPU_COUNT" = "x0" -a -e /proc/cpuinfo; then : 16714 16715 CPU_COUNT=`$EGREP -c '^processor' /proc/cpuinfo` 16716 16717 fi 16718 16719 fi ;; #( 16720 16721 *mingw*) : 16722 16723 if test -n "$NUMBER_OF_PROCESSORS"; then : 16724 16725 CPU_COUNT="$NUMBER_OF_PROCESSORS" 16726 16727 fi ;; #( 16728 16729 *cygwin*) : 16730 16731 if test -n "$NUMBER_OF_PROCESSORS"; then : 16732 16733 CPU_COUNT="$NUMBER_OF_PROCESSORS" 16734 16735 fi 16736 ;; #( 16737 *) : 16738 ;; 16739 esac 16740 16741 if test "x$CPU_COUNT" = "x0"; then : 16742 16743 CPU_COUNT="1" 16744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to detect (assuming 1) " >&5 16745 $as_echo "unable to detect (assuming 1) " >&6; } 16746 16747 else 16748 16749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPU_COUNT " >&5 16750 $as_echo "$CPU_COUNT " >&6; } 16751 16752 fi 16753 16754 16755 16756 16757 16758 16759 16760 # for pkg-config 16761 if test "x$enable_https" = "xyes" && test "x$have_gnutls_pkgcfg" = "xyes" ; then : 16762 # remove GnuTLS from private libs in .pc file as it defined in Requires.private 16763 MHD_REQ_PRIVATE='gnutls' 16764 MHD_LIBDEPS_PKGCFG="${MHD_LIBDEPS//$GNUTLS_LIBS/}" 16765 16766 else 16767 16768 MHD_REQ_PRIVATE='' 16769 MHD_LIBDEPS_PKGCFG="$MHD_LIBDEPS" 16770 16771 fi 16772 16773 16774 16775 16776 16777 16778 16779 16780 ac_config_files="$ac_config_files libmicrohttpd.pc libmicrospdy.pc w32/VS2013/microhttpd_dll_res_vc.rc Makefile contrib/Makefile doc/Makefile doc/doxygen/Makefile doc/examples/Makefile m4/Makefile src/Makefile src/include/Makefile src/platform/Makefile src/microhttpd/Makefile src/microspdy/Makefile src/spdy2http/Makefile src/examples/Makefile src/testcurl/Makefile src/testcurl/https/Makefile src/testspdy/Makefile src/testzzuf/Makefile" 16781 16782 cat >confcache <<\_ACEOF 16783 # This file is a shell script that caches the results of configure 16784 # tests run on this system so they can be shared between configure 16785 # scripts and configure runs, see configure's option --config-cache. 16786 # It is not useful on other systems. If it contains results you don't 16787 # want to keep, you may remove or edit it. 16788 # 16789 # config.status only pays attention to the cache file if you give it 16790 # the --recheck option to rerun configure. 16791 # 16792 # `ac_cv_env_foo' variables (set or unset) will be overridden when 16793 # loading this file, other *unset* `ac_cv_foo' will be assigned the 16794 # following values. 16795 16796 _ACEOF 16797 16798 # The following way of writing the cache mishandles newlines in values, 16799 # but we know of no workaround that is simple, portable, and efficient. 16800 # So, we kill variables containing newlines. 16801 # Ultrix sh set writes to stderr and can't be redirected directly, 16802 # and sets the high bit in the cache file unless we assign to the vars. 16803 ( 16804 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16805 eval ac_val=\$$ac_var 16806 case $ac_val in #( 16807 *${as_nl}*) 16808 case $ac_var in #( 16809 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16810 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16811 esac 16812 case $ac_var in #( 16813 _ | IFS | as_nl) ;; #( 16814 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16815 *) { eval $ac_var=; unset $ac_var;} ;; 16816 esac ;; 16817 esac 16818 done 16819 16820 (set) 2>&1 | 16821 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16822 *${as_nl}ac_space=\ *) 16823 # `set' does not quote correctly, so add quotes: double-quote 16824 # substitution turns \\\\ into \\, and sed turns \\ into \. 16825 sed -n \ 16826 "s/'/'\\\\''/g; 16827 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16828 ;; #( 16829 *) 16830 # `set' quotes correctly as required by POSIX, so do not add quotes. 16831 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16832 ;; 16833 esac | 16834 sort 16835 ) | 16836 sed ' 16837 /^ac_cv_env_/b end 16838 t clear 16839 :clear 16840 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16841 t end 16842 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16843 :end' >>confcache 16844 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16845 if test -w "$cache_file"; then 16846 if test "x$cache_file" != "x/dev/null"; then 16847 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16848 $as_echo "$as_me: updating cache $cache_file" >&6;} 16849 if test ! -f "$cache_file" || test -h "$cache_file"; then 16850 cat confcache >"$cache_file" 16851 else 16852 case $cache_file in #( 16853 */* | ?:*) 16854 mv -f confcache "$cache_file"$$ && 16855 mv -f "$cache_file"$$ "$cache_file" ;; #( 16856 *) 16857 mv -f confcache "$cache_file" ;; 16858 esac 16859 fi 16860 fi 16861 else 16862 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16863 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16864 fi 16865 fi 16866 rm -f confcache 16867 16868 test "x$prefix" = xNONE && prefix=$ac_default_prefix 16869 # Let make expand exec_prefix. 16870 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16871 16872 DEFS=-DHAVE_CONFIG_H 16873 16874 ac_libobjs= 16875 ac_ltlibobjs= 16876 U= 16877 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16878 # 1. Remove the extension, and $U if already installed. 16879 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16880 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 16881 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16882 # will be set to the directory where LIBOBJS objects are built. 16883 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16884 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16885 done 16886 LIBOBJS=$ac_libobjs 16887 16888 LTLIBOBJS=$ac_ltlibobjs 16889 16890 16891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 16892 $as_echo_n "checking that generated files are newer than configure... " >&6; } 16893 if test -n "$am_sleep_pid"; then 16894 # Hide warnings about reused PIDs. 16895 wait $am_sleep_pid 2>/dev/null 16896 fi 16897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 16898 $as_echo "done" >&6; } 16899 if test -n "$EXEEXT"; then 16900 am__EXEEXT_TRUE= 16901 am__EXEEXT_FALSE='#' 16902 else 16903 am__EXEEXT_TRUE='#' 16904 am__EXEEXT_FALSE= 16905 fi 16906 16907 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 16908 as_fn_error $? "conditional \"AMDEP\" was never defined. 16909 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16910 fi 16911 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16912 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16913 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16914 fi 16915 if test -z "${HAVE_POSIX_THREADS_TRUE}" && test -z "${HAVE_POSIX_THREADS_FALSE}"; then 16916 as_fn_error $? "conditional \"HAVE_POSIX_THREADS\" was never defined. 16917 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16918 fi 16919 if test -z "${USE_POSIX_THREADS_TRUE}" && test -z "${USE_POSIX_THREADS_FALSE}"; then 16920 as_fn_error $? "conditional \"USE_POSIX_THREADS\" was never defined. 16921 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16922 fi 16923 if test -z "${USE_W32_THREADS_TRUE}" && test -z "${USE_W32_THREADS_FALSE}"; then 16924 as_fn_error $? "conditional \"USE_W32_THREADS\" was never defined. 16925 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16926 fi 16927 if test -z "${HAVE_W32_TRUE}" && test -z "${HAVE_W32_FALSE}"; then 16928 as_fn_error $? "conditional \"HAVE_W32\" was never defined. 16929 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16930 fi 16931 if test -z "${W32_SHARED_LIB_EXP_TRUE}" && test -z "${W32_SHARED_LIB_EXP_FALSE}"; then 16932 as_fn_error $? "conditional \"W32_SHARED_LIB_EXP\" was never defined. 16933 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16934 fi 16935 if test -z "${USE_MS_LIB_TOOL_TRUE}" && test -z "${USE_MS_LIB_TOOL_FALSE}"; then 16936 as_fn_error $? "conditional \"USE_MS_LIB_TOOL\" was never defined. 16937 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16938 fi 16939 16940 if test -z "${HAVE_CURL_BINARY_TRUE}" && test -z "${HAVE_CURL_BINARY_FALSE}"; then 16941 as_fn_error $? "conditional \"HAVE_CURL_BINARY\" was never defined. 16942 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16943 fi 16944 if test -z "${HAVE_MAKEINFO_BINARY_TRUE}" && test -z "${HAVE_MAKEINFO_BINARY_FALSE}"; then 16945 as_fn_error $? "conditional \"HAVE_MAKEINFO_BINARY\" was never defined. 16946 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16947 fi 16948 if test -z "${W32_STATIC_LIB_TRUE}" && test -z "${W32_STATIC_LIB_FALSE}"; then 16949 as_fn_error $? "conditional \"W32_STATIC_LIB\" was never defined. 16950 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16951 fi 16952 if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then 16953 as_fn_error $? "conditional \"BUILD_DOC\" was never defined. 16954 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16955 fi 16956 if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then 16957 as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined. 16958 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16959 fi 16960 if test -z "${HAVE_TSEARCH_TRUE}" && test -z "${HAVE_TSEARCH_FALSE}"; then 16961 as_fn_error $? "conditional \"HAVE_TSEARCH\" was never defined. 16962 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16963 fi 16964 if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then 16965 as_fn_error $? "conditional \"HAVE_CURL\" was never defined. 16966 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16967 fi 16968 if test -z "${HAVE_MAGIC_TRUE}" && test -z "${HAVE_MAGIC_FALSE}"; then 16969 as_fn_error $? "conditional \"HAVE_MAGIC\" was never defined. 16970 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16971 fi 16972 if test -z "${HAVE_MAGIC_TRUE}" && test -z "${HAVE_MAGIC_FALSE}"; then 16973 as_fn_error $? "conditional \"HAVE_MAGIC\" was never defined. 16974 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16975 fi 16976 if test -z "${HAVE_MAGIC_TRUE}" && test -z "${HAVE_MAGIC_FALSE}"; then 16977 as_fn_error $? "conditional \"HAVE_MAGIC\" was never defined. 16978 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16979 fi 16980 if test -z "${HAVE_OPENSSL_TRUE}" && test -z "${HAVE_OPENSSL_FALSE}"; then 16981 as_fn_error $? "conditional \"HAVE_OPENSSL\" was never defined. 16982 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16983 fi 16984 if test -z "${ENABLE_SPDY_TRUE}" && test -z "${ENABLE_SPDY_FALSE}"; then 16985 as_fn_error $? "conditional \"ENABLE_SPDY\" was never defined. 16986 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16987 fi 16988 if test -z "${HAVE_SPDYLAY_TRUE}" && test -z "${HAVE_SPDYLAY_FALSE}"; then 16989 as_fn_error $? "conditional \"HAVE_SPDYLAY\" was never defined. 16990 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16991 fi 16992 if test -z "${HAVE_POSTPROCESSOR_TRUE}" && test -z "${HAVE_POSTPROCESSOR_FALSE}"; then 16993 as_fn_error $? "conditional \"HAVE_POSTPROCESSOR\" was never defined. 16994 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16995 fi 16996 if test -z "${HAVE_ZZUF_TRUE}" && test -z "${HAVE_ZZUF_FALSE}"; then 16997 as_fn_error $? "conditional \"HAVE_ZZUF\" was never defined. 16998 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16999 fi 17000 if test -z "${HAVE_SOCAT_TRUE}" && test -z "${HAVE_SOCAT_FALSE}"; then 17001 as_fn_error $? "conditional \"HAVE_SOCAT\" was never defined. 17002 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17003 fi 17004 if test -z "${HAVE_GNUTLS_TRUE}" && test -z "${HAVE_GNUTLS_FALSE}"; then 17005 as_fn_error $? "conditional \"HAVE_GNUTLS\" was never defined. 17006 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17007 fi 17008 if test -z "${HAVE_GNUTLS_SNI_TRUE}" && test -z "${HAVE_GNUTLS_SNI_FALSE}"; then 17009 as_fn_error $? "conditional \"HAVE_GNUTLS_SNI\" was never defined. 17010 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17011 fi 17012 if test -z "${ENABLE_HTTPS_TRUE}" && test -z "${ENABLE_HTTPS_FALSE}"; then 17013 as_fn_error $? "conditional \"ENABLE_HTTPS\" was never defined. 17014 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17015 fi 17016 if test -z "${ENABLE_BAUTH_TRUE}" && test -z "${ENABLE_BAUTH_FALSE}"; then 17017 as_fn_error $? "conditional \"ENABLE_BAUTH\" was never defined. 17018 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17019 fi 17020 if test -z "${ENABLE_DAUTH_TRUE}" && test -z "${ENABLE_DAUTH_FALSE}"; then 17021 as_fn_error $? "conditional \"ENABLE_DAUTH\" was never defined. 17022 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17023 fi 17024 if test -z "${USE_COVERAGE_TRUE}" && test -z "${USE_COVERAGE_FALSE}"; then 17025 as_fn_error $? "conditional \"USE_COVERAGE\" was never defined. 17026 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17027 fi 17028 17029 : "${CONFIG_STATUS=./config.status}" 17030 ac_write_fail=0 17031 ac_clean_files_save=$ac_clean_files 17032 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17033 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17034 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17035 as_write_fail=0 17036 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17037 #! $SHELL 17038 # Generated by $as_me. 17039 # Run this file to recreate the current configuration. 17040 # Compiler output produced by configure, useful for debugging 17041 # configure, is in config.log if it exists. 17042 17043 debug=false 17044 ac_cs_recheck=false 17045 ac_cs_silent=false 17046 17047 SHELL=\${CONFIG_SHELL-$SHELL} 17048 export SHELL 17049 _ASEOF 17050 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17051 ## -------------------- ## 17052 ## M4sh Initialization. ## 17053 ## -------------------- ## 17054 17055 # Be more Bourne compatible 17056 DUALCASE=1; export DUALCASE # for MKS sh 17057 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17058 emulate sh 17059 NULLCMD=: 17060 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17061 # is contrary to our usage. Disable this feature. 17062 alias -g '${1+"$@"}'='"$@"' 17063 setopt NO_GLOB_SUBST 17064 else 17065 case `(set -o) 2>/dev/null` in #( 17066 *posix*) : 17067 set -o posix ;; #( 17068 *) : 17069 ;; 17070 esac 17071 fi 17072 17073 17074 as_nl=' 17075 ' 17076 export as_nl 17077 # Printing a long string crashes Solaris 7 /usr/bin/printf. 17078 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17079 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17080 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17081 # Prefer a ksh shell builtin over an external printf program on Solaris, 17082 # but without wasting forks for bash or zsh. 17083 if test -z "$BASH_VERSION$ZSH_VERSION" \ 17084 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17085 as_echo='print -r --' 17086 as_echo_n='print -rn --' 17087 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17088 as_echo='printf %s\n' 17089 as_echo_n='printf %s' 17090 else 17091 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17092 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17093 as_echo_n='/usr/ucb/echo -n' 17094 else 17095 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17096 as_echo_n_body='eval 17097 arg=$1; 17098 case $arg in #( 17099 *"$as_nl"*) 17100 expr "X$arg" : "X\\(.*\\)$as_nl"; 17101 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17102 esac; 17103 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17104 ' 17105 export as_echo_n_body 17106 as_echo_n='sh -c $as_echo_n_body as_echo' 17107 fi 17108 export as_echo_body 17109 as_echo='sh -c $as_echo_body as_echo' 17110 fi 17111 17112 # The user is always right. 17113 if test "${PATH_SEPARATOR+set}" != set; then 17114 PATH_SEPARATOR=: 17115 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17116 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17117 PATH_SEPARATOR=';' 17118 } 17119 fi 17120 17121 17122 # IFS 17123 # We need space, tab and new line, in precisely that order. Quoting is 17124 # there to prevent editors from complaining about space-tab. 17125 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 17126 # splitting by setting IFS to empty value.) 17127 IFS=" "" $as_nl" 17128 17129 # Find who we are. Look in the path if we contain no directory separator. 17130 as_myself= 17131 case $0 in #(( 17132 *[\\/]* ) as_myself=$0 ;; 17133 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17134 for as_dir in $PATH 17135 do 17136 IFS=$as_save_IFS 17137 test -z "$as_dir" && as_dir=. 17138 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17139 done 17140 IFS=$as_save_IFS 17141 17142 ;; 17143 esac 17144 # We did not find ourselves, most probably we were run as `sh COMMAND' 17145 # in which case we are not to be found in the path. 17146 if test "x$as_myself" = x; then 17147 as_myself=$0 17148 fi 17149 if test ! -f "$as_myself"; then 17150 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17151 exit 1 17152 fi 17153 17154 # Unset variables that we do not need and which cause bugs (e.g. in 17155 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 17156 # suppresses any "Segmentation fault" message there. '((' could 17157 # trigger a bug in pdksh 5.2.14. 17158 for as_var in BASH_ENV ENV MAIL MAILPATH 17159 do eval test x\${$as_var+set} = xset \ 17160 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17161 done 17162 PS1='$ ' 17163 PS2='> ' 17164 PS4='+ ' 17165 17166 # NLS nuisances. 17167 LC_ALL=C 17168 export LC_ALL 17169 LANGUAGE=C 17170 export LANGUAGE 17171 17172 # CDPATH. 17173 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17174 17175 17176 # as_fn_error STATUS ERROR [LINENO LOG_FD] 17177 # ---------------------------------------- 17178 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17179 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17180 # script with STATUS, using 1 if that was 0. 17181 as_fn_error () 17182 { 17183 as_status=$1; test $as_status -eq 0 && as_status=1 17184 if test "$4"; then 17185 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17186 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 17187 fi 17188 $as_echo "$as_me: error: $2" >&2 17189 as_fn_exit $as_status 17190 } # as_fn_error 17191 17192 17193 # as_fn_set_status STATUS 17194 # ----------------------- 17195 # Set $? to STATUS, without forking. 17196 as_fn_set_status () 17197 { 17198 return $1 17199 } # as_fn_set_status 17200 17201 # as_fn_exit STATUS 17202 # ----------------- 17203 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 17204 as_fn_exit () 17205 { 17206 set +e 17207 as_fn_set_status $1 17208 exit $1 17209 } # as_fn_exit 17210 17211 # as_fn_unset VAR 17212 # --------------- 17213 # Portably unset VAR. 17214 as_fn_unset () 17215 { 17216 { eval $1=; unset $1;} 17217 } 17218 as_unset=as_fn_unset 17219 # as_fn_append VAR VALUE 17220 # ---------------------- 17221 # Append the text in VALUE to the end of the definition contained in VAR. Take 17222 # advantage of any shell optimizations that allow amortized linear growth over 17223 # repeated appends, instead of the typical quadratic growth present in naive 17224 # implementations. 17225 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 17226 eval 'as_fn_append () 17227 { 17228 eval $1+=\$2 17229 }' 17230 else 17231 as_fn_append () 17232 { 17233 eval $1=\$$1\$2 17234 } 17235 fi # as_fn_append 17236 17237 # as_fn_arith ARG... 17238 # ------------------ 17239 # Perform arithmetic evaluation on the ARGs, and store the result in the 17240 # global $as_val. Take advantage of shells that can avoid forks. The arguments 17241 # must be portable across $(()) and expr. 17242 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 17243 eval 'as_fn_arith () 17244 { 17245 as_val=$(( $* )) 17246 }' 17247 else 17248 as_fn_arith () 17249 { 17250 as_val=`expr "$@" || test $? -eq 1` 17251 } 17252 fi # as_fn_arith 17253 17254 17255 if expr a : '\(a\)' >/dev/null 2>&1 && 17256 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17257 as_expr=expr 17258 else 17259 as_expr=false 17260 fi 17261 17262 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17263 as_basename=basename 17264 else 17265 as_basename=false 17266 fi 17267 17268 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17269 as_dirname=dirname 17270 else 17271 as_dirname=false 17272 fi 17273 17274 as_me=`$as_basename -- "$0" || 17275 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17276 X"$0" : 'X\(//\)$' \| \ 17277 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17278 $as_echo X/"$0" | 17279 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17280 s//\1/ 17281 q 17282 } 17283 /^X\/\(\/\/\)$/{ 17284 s//\1/ 17285 q 17286 } 17287 /^X\/\(\/\).*/{ 17288 s//\1/ 17289 q 17290 } 17291 s/.*/./; q'` 17292 17293 # Avoid depending upon Character Ranges. 17294 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17295 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17296 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17297 as_cr_digits='0123456789' 17298 as_cr_alnum=$as_cr_Letters$as_cr_digits 17299 17300 ECHO_C= ECHO_N= ECHO_T= 17301 case `echo -n x` in #((((( 17302 -n*) 17303 case `echo 'xy\c'` in 17304 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17305 xy) ECHO_C='\c';; 17306 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17307 ECHO_T=' ';; 17308 esac;; 17309 *) 17310 ECHO_N='-n';; 17311 esac 17312 17313 rm -f conf$$ conf$$.exe conf$$.file 17314 if test -d conf$$.dir; then 17315 rm -f conf$$.dir/conf$$.file 17316 else 17317 rm -f conf$$.dir 17318 mkdir conf$$.dir 2>/dev/null 17319 fi 17320 if (echo >conf$$.file) 2>/dev/null; then 17321 if ln -s conf$$.file conf$$ 2>/dev/null; then 17322 as_ln_s='ln -s' 17323 # ... but there are two gotchas: 17324 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17325 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17326 # In both cases, we have to default to `cp -pR'. 17327 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17328 as_ln_s='cp -pR' 17329 elif ln conf$$.file conf$$ 2>/dev/null; then 17330 as_ln_s=ln 17331 else 17332 as_ln_s='cp -pR' 17333 fi 17334 else 17335 as_ln_s='cp -pR' 17336 fi 17337 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17338 rmdir conf$$.dir 2>/dev/null 17339 17340 17341 # as_fn_mkdir_p 17342 # ------------- 17343 # Create "$as_dir" as a directory, including parents if necessary. 17344 as_fn_mkdir_p () 17345 { 17346 17347 case $as_dir in #( 17348 -*) as_dir=./$as_dir;; 17349 esac 17350 test -d "$as_dir" || eval $as_mkdir_p || { 17351 as_dirs= 17352 while :; do 17353 case $as_dir in #( 17354 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17355 *) as_qdir=$as_dir;; 17356 esac 17357 as_dirs="'$as_qdir' $as_dirs" 17358 as_dir=`$as_dirname -- "$as_dir" || 17359 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17360 X"$as_dir" : 'X\(//\)[^/]' \| \ 17361 X"$as_dir" : 'X\(//\)$' \| \ 17362 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17363 $as_echo X"$as_dir" | 17364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17365 s//\1/ 17366 q 17367 } 17368 /^X\(\/\/\)[^/].*/{ 17369 s//\1/ 17370 q 17371 } 17372 /^X\(\/\/\)$/{ 17373 s//\1/ 17374 q 17375 } 17376 /^X\(\/\).*/{ 17377 s//\1/ 17378 q 17379 } 17380 s/.*/./; q'` 17381 test -d "$as_dir" && break 17382 done 17383 test -z "$as_dirs" || eval "mkdir $as_dirs" 17384 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17385 17386 17387 } # as_fn_mkdir_p 17388 if mkdir -p . 2>/dev/null; then 17389 as_mkdir_p='mkdir -p "$as_dir"' 17390 else 17391 test -d ./-p && rmdir ./-p 17392 as_mkdir_p=false 17393 fi 17394 17395 17396 # as_fn_executable_p FILE 17397 # ----------------------- 17398 # Test if FILE is an executable regular file. 17399 as_fn_executable_p () 17400 { 17401 test -f "$1" && test -x "$1" 17402 } # as_fn_executable_p 17403 as_test_x='test -x' 17404 as_executable_p=as_fn_executable_p 17405 17406 # Sed expression to map a string onto a valid CPP name. 17407 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17408 17409 # Sed expression to map a string onto a valid variable name. 17410 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17411 17412 17413 exec 6>&1 17414 ## ----------------------------------- ## 17415 ## Main body of $CONFIG_STATUS script. ## 17416 ## ----------------------------------- ## 17417 _ASEOF 17418 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17419 17420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17421 # Save the log message, to keep $0 and so on meaningful, and to 17422 # report actual input values of CONFIG_FILES etc. instead of their 17423 # values after options handling. 17424 ac_log=" 17425 This file was extended by libmicrohttpd $as_me 0.9.42, which was 17426 generated by GNU Autoconf 2.69. Invocation command line was 17427 17428 CONFIG_FILES = $CONFIG_FILES 17429 CONFIG_HEADERS = $CONFIG_HEADERS 17430 CONFIG_LINKS = $CONFIG_LINKS 17431 CONFIG_COMMANDS = $CONFIG_COMMANDS 17432 $ $0 $@ 17433 17434 on `(hostname || uname -n) 2>/dev/null | sed 1q` 17435 " 17436 17437 _ACEOF 17438 17439 case $ac_config_files in *" 17440 "*) set x $ac_config_files; shift; ac_config_files=$*;; 17441 esac 17442 17443 case $ac_config_headers in *" 17444 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17445 esac 17446 17447 17448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17449 # Files that config.status was made for. 17450 config_files="$ac_config_files" 17451 config_headers="$ac_config_headers" 17452 config_commands="$ac_config_commands" 17453 17454 _ACEOF 17455 17456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17457 ac_cs_usage="\ 17458 \`$as_me' instantiates files and other configuration actions 17459 from templates according to the current configuration. Unless the files 17460 and actions are specified as TAGs, all are instantiated by default. 17461 17462 Usage: $0 [OPTION]... [TAG]... 17463 17464 -h, --help print this help, then exit 17465 -V, --version print version number and configuration settings, then exit 17466 --config print configuration, then exit 17467 -q, --quiet, --silent 17468 do not print progress messages 17469 -d, --debug don't remove temporary files 17470 --recheck update $as_me by reconfiguring in the same conditions 17471 --file=FILE[:TEMPLATE] 17472 instantiate the configuration file FILE 17473 --header=FILE[:TEMPLATE] 17474 instantiate the configuration header FILE 17475 17476 Configuration files: 17477 $config_files 17478 17479 Configuration headers: 17480 $config_headers 17481 17482 Configuration commands: 17483 $config_commands 17484 17485 Report bugs to <libmicrohttpd@gnu.org>." 17486 17487 _ACEOF 17488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17489 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17490 ac_cs_version="\\ 17491 libmicrohttpd config.status 0.9.42 17492 configured by $0, generated by GNU Autoconf 2.69, 17493 with options \\"\$ac_cs_config\\" 17494 17495 Copyright (C) 2012 Free Software Foundation, Inc. 17496 This config.status script is free software; the Free Software Foundation 17497 gives unlimited permission to copy, distribute and modify it." 17498 17499 ac_pwd='$ac_pwd' 17500 srcdir='$srcdir' 17501 INSTALL='$INSTALL' 17502 MKDIR_P='$MKDIR_P' 17503 AWK='$AWK' 17504 test -n "\$AWK" || AWK=awk 17505 _ACEOF 17506 17507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17508 # The default lists apply if the user does not specify any file. 17509 ac_need_defaults=: 17510 while test $# != 0 17511 do 17512 case $1 in 17513 --*=?*) 17514 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17515 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17516 ac_shift=: 17517 ;; 17518 --*=) 17519 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17520 ac_optarg= 17521 ac_shift=: 17522 ;; 17523 *) 17524 ac_option=$1 17525 ac_optarg=$2 17526 ac_shift=shift 17527 ;; 17528 esac 17529 17530 case $ac_option in 17531 # Handling of the options. 17532 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17533 ac_cs_recheck=: ;; 17534 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17535 $as_echo "$ac_cs_version"; exit ;; 17536 --config | --confi | --conf | --con | --co | --c ) 17537 $as_echo "$ac_cs_config"; exit ;; 17538 --debug | --debu | --deb | --de | --d | -d ) 17539 debug=: ;; 17540 --file | --fil | --fi | --f ) 17541 $ac_shift 17542 case $ac_optarg in 17543 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17544 '') as_fn_error $? "missing file argument" ;; 17545 esac 17546 as_fn_append CONFIG_FILES " '$ac_optarg'" 17547 ac_need_defaults=false;; 17548 --header | --heade | --head | --hea ) 17549 $ac_shift 17550 case $ac_optarg in 17551 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17552 esac 17553 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17554 ac_need_defaults=false;; 17555 --he | --h) 17556 # Conflict between --help and --header 17557 as_fn_error $? "ambiguous option: \`$1' 17558 Try \`$0 --help' for more information.";; 17559 --help | --hel | -h ) 17560 $as_echo "$ac_cs_usage"; exit ;; 17561 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17562 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17563 ac_cs_silent=: ;; 17564 17565 # This is an error. 17566 -*) as_fn_error $? "unrecognized option: \`$1' 17567 Try \`$0 --help' for more information." ;; 17568 17569 *) as_fn_append ac_config_targets " $1" 17570 ac_need_defaults=false ;; 17571 17572 esac 17573 shift 17574 done 17575 17576 ac_configure_extra_args= 17577 17578 if $ac_cs_silent; then 17579 exec 6>/dev/null 17580 ac_configure_extra_args="$ac_configure_extra_args --silent" 17581 fi 17582 17583 _ACEOF 17584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17585 if \$ac_cs_recheck; then 17586 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17587 shift 17588 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17589 CONFIG_SHELL='$SHELL' 17590 export CONFIG_SHELL 17591 exec "\$@" 17592 fi 17593 17594 _ACEOF 17595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17596 exec 5>>config.log 17597 { 17598 echo 17599 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17600 ## Running $as_me. ## 17601 _ASBOX 17602 $as_echo "$ac_log" 17603 } >&5 17604 17605 _ACEOF 17606 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17607 # 17608 # INIT-COMMANDS 17609 # 17610 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 17611 17612 17613 # The HP-UX ksh and POSIX shell print the target directory to stdout 17614 # if CDPATH is set. 17615 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17616 17617 sed_quote_subst='$sed_quote_subst' 17618 double_quote_subst='$double_quote_subst' 17619 delay_variable_subst='$delay_variable_subst' 17620 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17621 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17622 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 17623 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 17624 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17625 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17626 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17627 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17628 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17629 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17630 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17631 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 17632 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17633 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17634 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17635 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17636 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17637 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17638 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17639 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17640 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17641 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17642 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17643 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17644 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17645 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17646 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17647 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17648 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17649 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17650 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17651 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17652 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 17653 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 17654 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17655 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17656 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17657 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17658 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 17659 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 17660 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 17661 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17662 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17663 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 17664 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17665 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17666 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17667 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17668 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17669 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17670 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17671 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17672 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17673 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17674 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17675 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17676 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17677 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"`' 17678 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 17679 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 17680 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17681 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17682 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17683 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17684 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17685 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17686 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17687 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17688 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 17689 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17690 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17691 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17692 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17693 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17694 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17695 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17696 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17697 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17698 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17699 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17700 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17701 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17702 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17703 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17704 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17705 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17706 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17707 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17708 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17709 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17710 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17711 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17712 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17713 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17714 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17715 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17716 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17717 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17718 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17719 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17720 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17721 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17722 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17723 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17724 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17725 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 17726 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17727 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17728 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17729 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17730 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17731 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17732 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17733 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17734 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17735 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17736 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17737 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17738 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17739 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17740 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17741 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17742 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17743 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17744 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 17745 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17746 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17747 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17748 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17749 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17750 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17751 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`' 17752 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`' 17753 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`' 17754 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`' 17755 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`' 17756 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`' 17757 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`' 17758 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`' 17759 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`' 17760 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`' 17761 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`' 17762 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`' 17763 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`' 17764 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`' 17765 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`' 17766 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`' 17767 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`' 17768 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`' 17769 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`' 17770 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`' 17771 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`' 17772 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`' 17773 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`' 17774 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`' 17775 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`' 17776 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`' 17777 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`' 17778 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`' 17779 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`' 17780 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`' 17781 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`' 17782 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`' 17783 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`' 17784 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`' 17785 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`' 17786 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`' 17787 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`' 17788 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`' 17789 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`' 17790 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`' 17791 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`' 17792 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`' 17793 17794 LTCC='$LTCC' 17795 LTCFLAGS='$LTCFLAGS' 17796 compiler='$compiler_DEFAULT' 17797 17798 # A function that is used when there is no print builtin or printf. 17799 func_fallback_echo () 17800 { 17801 eval 'cat <<_LTECHO_EOF 17802 \$1 17803 _LTECHO_EOF' 17804 } 17805 17806 # Quote evaled strings. 17807 for var in AS \ 17808 DLLTOOL \ 17809 OBJDUMP \ 17810 SHELL \ 17811 ECHO \ 17812 PATH_SEPARATOR \ 17813 SED \ 17814 GREP \ 17815 EGREP \ 17816 FGREP \ 17817 LD \ 17818 NM \ 17819 LN_S \ 17820 lt_SP2NL \ 17821 lt_NL2SP \ 17822 reload_flag \ 17823 deplibs_check_method \ 17824 file_magic_cmd \ 17825 file_magic_glob \ 17826 want_nocaseglob \ 17827 sharedlib_from_linklib_cmd \ 17828 AR \ 17829 AR_FLAGS \ 17830 archiver_list_spec \ 17831 STRIP \ 17832 RANLIB \ 17833 CC \ 17834 CFLAGS \ 17835 compiler \ 17836 lt_cv_sys_global_symbol_pipe \ 17837 lt_cv_sys_global_symbol_to_cdecl \ 17838 lt_cv_sys_global_symbol_to_c_name_address \ 17839 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17840 nm_file_list_spec \ 17841 lt_prog_compiler_no_builtin_flag \ 17842 lt_prog_compiler_pic \ 17843 lt_prog_compiler_wl \ 17844 lt_prog_compiler_static \ 17845 lt_cv_prog_compiler_c_o \ 17846 need_locks \ 17847 MANIFEST_TOOL \ 17848 DSYMUTIL \ 17849 NMEDIT \ 17850 LIPO \ 17851 OTOOL \ 17852 OTOOL64 \ 17853 shrext_cmds \ 17854 export_dynamic_flag_spec \ 17855 whole_archive_flag_spec \ 17856 compiler_needs_object \ 17857 with_gnu_ld \ 17858 allow_undefined_flag \ 17859 no_undefined_flag \ 17860 hardcode_libdir_flag_spec \ 17861 hardcode_libdir_separator \ 17862 exclude_expsyms \ 17863 include_expsyms \ 17864 file_list_spec \ 17865 variables_saved_for_relink \ 17866 libname_spec \ 17867 library_names_spec \ 17868 soname_spec \ 17869 install_override_mode \ 17870 finish_eval \ 17871 old_striplib \ 17872 striplib \ 17873 LD_RC \ 17874 reload_flag_RC \ 17875 compiler_RC \ 17876 lt_prog_compiler_no_builtin_flag_RC \ 17877 lt_prog_compiler_pic_RC \ 17878 lt_prog_compiler_wl_RC \ 17879 lt_prog_compiler_static_RC \ 17880 lt_cv_prog_compiler_c_o_RC \ 17881 export_dynamic_flag_spec_RC \ 17882 whole_archive_flag_spec_RC \ 17883 compiler_needs_object_RC \ 17884 with_gnu_ld_RC \ 17885 allow_undefined_flag_RC \ 17886 no_undefined_flag_RC \ 17887 hardcode_libdir_flag_spec_RC \ 17888 hardcode_libdir_separator_RC \ 17889 exclude_expsyms_RC \ 17890 include_expsyms_RC \ 17891 file_list_spec_RC; do 17892 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17893 *[\\\\\\\`\\"\\\$]*) 17894 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 17895 ;; 17896 *) 17897 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17898 ;; 17899 esac 17900 done 17901 17902 # Double-quote double-evaled strings. 17903 for var in reload_cmds \ 17904 old_postinstall_cmds \ 17905 old_postuninstall_cmds \ 17906 old_archive_cmds \ 17907 extract_expsyms_cmds \ 17908 old_archive_from_new_cmds \ 17909 old_archive_from_expsyms_cmds \ 17910 archive_cmds \ 17911 archive_expsym_cmds \ 17912 module_cmds \ 17913 module_expsym_cmds \ 17914 export_symbols_cmds \ 17915 prelink_cmds \ 17916 postlink_cmds \ 17917 postinstall_cmds \ 17918 postuninstall_cmds \ 17919 finish_cmds \ 17920 sys_lib_search_path_spec \ 17921 sys_lib_dlsearch_path_spec \ 17922 reload_cmds_RC \ 17923 old_archive_cmds_RC \ 17924 old_archive_from_new_cmds_RC \ 17925 old_archive_from_expsyms_cmds_RC \ 17926 archive_cmds_RC \ 17927 archive_expsym_cmds_RC \ 17928 module_cmds_RC \ 17929 module_expsym_cmds_RC \ 17930 export_symbols_cmds_RC \ 17931 prelink_cmds_RC \ 17932 postlink_cmds_RC; do 17933 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17934 *[\\\\\\\`\\"\\\$]*) 17935 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 17936 ;; 17937 *) 17938 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17939 ;; 17940 esac 17941 done 17942 17943 ac_aux_dir='$ac_aux_dir' 17944 xsi_shell='$xsi_shell' 17945 lt_shell_append='$lt_shell_append' 17946 17947 # See if we are running on zsh, and set the options which allow our 17948 # commands through without removal of \ escapes INIT. 17949 if test -n "\${ZSH_VERSION+set}" ; then 17950 setopt NO_GLOB_SUBST 17951 fi 17952 17953 17954 PACKAGE='$PACKAGE' 17955 VERSION='$VERSION' 17956 TIMESTAMP='$TIMESTAMP' 17957 RM='$RM' 17958 ofile='$ofile' 17959 17960 17961 17962 17963 17964 17965 _ACEOF 17966 17967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17968 17969 # Handling of arguments. 17970 for ac_config_target in $ac_config_targets 17971 do 17972 case $ac_config_target in 17973 "MHD_config.h") CONFIG_HEADERS="$CONFIG_HEADERS MHD_config.h" ;; 17974 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17975 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 17976 "src/microhttpd/microhttpd_dll_res.rc") CONFIG_FILES="$CONFIG_FILES src/microhttpd/microhttpd_dll_res.rc" ;; 17977 "libmicrohttpd.pc") CONFIG_FILES="$CONFIG_FILES libmicrohttpd.pc" ;; 17978 "libmicrospdy.pc") CONFIG_FILES="$CONFIG_FILES libmicrospdy.pc" ;; 17979 "w32/VS2013/microhttpd_dll_res_vc.rc") CONFIG_FILES="$CONFIG_FILES w32/VS2013/microhttpd_dll_res_vc.rc" ;; 17980 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17981 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; 17982 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 17983 "doc/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Makefile" ;; 17984 "doc/examples/Makefile") CONFIG_FILES="$CONFIG_FILES doc/examples/Makefile" ;; 17985 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; 17986 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 17987 "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;; 17988 "src/platform/Makefile") CONFIG_FILES="$CONFIG_FILES src/platform/Makefile" ;; 17989 "src/microhttpd/Makefile") CONFIG_FILES="$CONFIG_FILES src/microhttpd/Makefile" ;; 17990 "src/microspdy/Makefile") CONFIG_FILES="$CONFIG_FILES src/microspdy/Makefile" ;; 17991 "src/spdy2http/Makefile") CONFIG_FILES="$CONFIG_FILES src/spdy2http/Makefile" ;; 17992 "src/examples/Makefile") CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;; 17993 "src/testcurl/Makefile") CONFIG_FILES="$CONFIG_FILES src/testcurl/Makefile" ;; 17994 "src/testcurl/https/Makefile") CONFIG_FILES="$CONFIG_FILES src/testcurl/https/Makefile" ;; 17995 "src/testspdy/Makefile") CONFIG_FILES="$CONFIG_FILES src/testspdy/Makefile" ;; 17996 "src/testzzuf/Makefile") CONFIG_FILES="$CONFIG_FILES src/testzzuf/Makefile" ;; 17997 17998 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 17999 esac 18000 done 18001 18002 18003 # If the user did not use the arguments to specify the items to instantiate, 18004 # then the envvar interface is used. Set only those that are not. 18005 # We use the long form for the default assignment because of an extremely 18006 # bizarre bug on SunOS 4.1.3. 18007 if $ac_need_defaults; then 18008 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18009 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18010 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18011 fi 18012 18013 # Have a temporary directory for convenience. Make it in the build tree 18014 # simply because there is no reason against having it here, and in addition, 18015 # creating and moving files from /tmp can sometimes cause problems. 18016 # Hook for its removal unless debugging. 18017 # Note that there is a small window in which the directory will not be cleaned: 18018 # after its creation but before its name has been assigned to `$tmp'. 18019 $debug || 18020 { 18021 tmp= ac_tmp= 18022 trap 'exit_status=$? 18023 : "${ac_tmp:=$tmp}" 18024 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18025 ' 0 18026 trap 'as_fn_exit 1' 1 2 13 15 18027 } 18028 # Create a (secure) tmp directory for tmp files. 18029 18030 { 18031 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18032 test -d "$tmp" 18033 } || 18034 { 18035 tmp=./conf$$-$RANDOM 18036 (umask 077 && mkdir "$tmp") 18037 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18038 ac_tmp=$tmp 18039 18040 # Set up the scripts for CONFIG_FILES section. 18041 # No need to generate them if there are no CONFIG_FILES. 18042 # This happens for instance with `./config.status config.h'. 18043 if test -n "$CONFIG_FILES"; then 18044 18045 18046 ac_cr=`echo X | tr X '\015'` 18047 # On cygwin, bash can eat \r inside `` if the user requested igncr. 18048 # But we know of no other shell where ac_cr would be empty at this 18049 # point, so we can use a bashism as a fallback. 18050 if test "x$ac_cr" = x; then 18051 eval ac_cr=\$\'\\r\' 18052 fi 18053 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18054 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18055 ac_cs_awk_cr='\\r' 18056 else 18057 ac_cs_awk_cr=$ac_cr 18058 fi 18059 18060 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18061 _ACEOF 18062 18063 18064 { 18065 echo "cat >conf$$subs.awk <<_ACEOF" && 18066 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18067 echo "_ACEOF" 18068 } >conf$$subs.sh || 18069 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18070 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18071 ac_delim='%!_!# ' 18072 for ac_last_try in false false false false false :; do 18073 . ./conf$$subs.sh || 18074 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18075 18076 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18077 if test $ac_delim_n = $ac_delim_num; then 18078 break 18079 elif $ac_last_try; then 18080 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18081 else 18082 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18083 fi 18084 done 18085 rm -f conf$$subs.sh 18086 18087 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18088 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18089 _ACEOF 18090 sed -n ' 18091 h 18092 s/^/S["/; s/!.*/"]=/ 18093 p 18094 g 18095 s/^[^!]*!// 18096 :repl 18097 t repl 18098 s/'"$ac_delim"'$// 18099 t delim 18100 :nl 18101 h 18102 s/\(.\{148\}\)..*/\1/ 18103 t more1 18104 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18105 p 18106 n 18107 b repl 18108 :more1 18109 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18110 p 18111 g 18112 s/.\{148\}// 18113 t nl 18114 :delim 18115 h 18116 s/\(.\{148\}\)..*/\1/ 18117 t more2 18118 s/["\\]/\\&/g; s/^/"/; s/$/"/ 18119 p 18120 b 18121 :more2 18122 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18123 p 18124 g 18125 s/.\{148\}// 18126 t delim 18127 ' <conf$$subs.awk | sed ' 18128 /^[^""]/{ 18129 N 18130 s/\n// 18131 } 18132 ' >>$CONFIG_STATUS || ac_write_fail=1 18133 rm -f conf$$subs.awk 18134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18135 _ACAWK 18136 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 18137 for (key in S) S_is_set[key] = 1 18138 FS = "" 18139 18140 } 18141 { 18142 line = $ 0 18143 nfields = split(line, field, "@") 18144 substed = 0 18145 len = length(field[1]) 18146 for (i = 2; i < nfields; i++) { 18147 key = field[i] 18148 keylen = length(key) 18149 if (S_is_set[key]) { 18150 value = S[key] 18151 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18152 len += length(value) + length(field[++i]) 18153 substed = 1 18154 } else 18155 len += 1 + keylen 18156 } 18157 18158 print line 18159 } 18160 18161 _ACAWK 18162 _ACEOF 18163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18164 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18165 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18166 else 18167 cat 18168 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 18169 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 18170 _ACEOF 18171 18172 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 18173 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 18174 # trailing colons and then remove the whole line if VPATH becomes empty 18175 # (actually we leave an empty line to preserve line numbers). 18176 if test "x$srcdir" = x.; then 18177 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 18178 h 18179 s/// 18180 s/^/:/ 18181 s/[ ]*$/:/ 18182 s/:\$(srcdir):/:/g 18183 s/:\${srcdir}:/:/g 18184 s/:@srcdir@:/:/g 18185 s/^:*// 18186 s/:*$// 18187 x 18188 s/\(=[ ]*\).*/\1/ 18189 G 18190 s/\n// 18191 s/^[^=]*=[ ]*$// 18192 }' 18193 fi 18194 18195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18196 fi # test -n "$CONFIG_FILES" 18197 18198 # Set up the scripts for CONFIG_HEADERS section. 18199 # No need to generate them if there are no CONFIG_HEADERS. 18200 # This happens for instance with `./config.status Makefile'. 18201 if test -n "$CONFIG_HEADERS"; then 18202 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 18203 BEGIN { 18204 _ACEOF 18205 18206 # Transform confdefs.h into an awk script `defines.awk', embedded as 18207 # here-document in config.status, that substitutes the proper values into 18208 # config.h.in to produce config.h. 18209 18210 # Create a delimiter string that does not exist in confdefs.h, to ease 18211 # handling of long lines. 18212 ac_delim='%!_!# ' 18213 for ac_last_try in false false :; do 18214 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 18215 if test -z "$ac_tt"; then 18216 break 18217 elif $ac_last_try; then 18218 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 18219 else 18220 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18221 fi 18222 done 18223 18224 # For the awk script, D is an array of macro values keyed by name, 18225 # likewise P contains macro parameters if any. Preserve backslash 18226 # newline sequences. 18227 18228 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18229 sed -n ' 18230 s/.\{148\}/&'"$ac_delim"'/g 18231 t rset 18232 :rset 18233 s/^[ ]*#[ ]*define[ ][ ]*/ / 18234 t def 18235 d 18236 :def 18237 s/\\$// 18238 t bsnl 18239 s/["\\]/\\&/g 18240 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18241 D["\1"]=" \3"/p 18242 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 18243 d 18244 :bsnl 18245 s/["\\]/\\&/g 18246 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18247 D["\1"]=" \3\\\\\\n"\\/p 18248 t cont 18249 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 18250 t cont 18251 d 18252 :cont 18253 n 18254 s/.\{148\}/&'"$ac_delim"'/g 18255 t clear 18256 :clear 18257 s/\\$// 18258 t bsnlc 18259 s/["\\]/\\&/g; s/^/"/; s/$/"/p 18260 d 18261 :bsnlc 18262 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 18263 b cont 18264 ' <confdefs.h | sed ' 18265 s/'"$ac_delim"'/"\\\ 18266 "/g' >>$CONFIG_STATUS || ac_write_fail=1 18267 18268 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18269 for (key in D) D_is_set[key] = 1 18270 FS = "" 18271 } 18272 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 18273 line = \$ 0 18274 split(line, arg, " ") 18275 if (arg[1] == "#") { 18276 defundef = arg[2] 18277 mac1 = arg[3] 18278 } else { 18279 defundef = substr(arg[1], 2) 18280 mac1 = arg[2] 18281 } 18282 split(mac1, mac2, "(") #) 18283 macro = mac2[1] 18284 prefix = substr(line, 1, index(line, defundef) - 1) 18285 if (D_is_set[macro]) { 18286 # Preserve the white space surrounding the "#". 18287 print prefix "define", macro P[macro] D[macro] 18288 next 18289 } else { 18290 # Replace #undef with comments. This is necessary, for example, 18291 # in the case of _POSIX_SOURCE, which is predefined and required 18292 # on some systems where configure will not decide to define it. 18293 if (defundef == "undef") { 18294 print "/*", prefix defundef, macro, "*/" 18295 next 18296 } 18297 } 18298 } 18299 { print } 18300 _ACAWK 18301 _ACEOF 18302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18303 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 18304 fi # test -n "$CONFIG_HEADERS" 18305 18306 18307 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 18308 shift 18309 for ac_tag 18310 do 18311 case $ac_tag in 18312 :[FHLC]) ac_mode=$ac_tag; continue;; 18313 esac 18314 case $ac_mode$ac_tag in 18315 :[FHL]*:*);; 18316 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 18317 :[FH]-) ac_tag=-:-;; 18318 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18319 esac 18320 ac_save_IFS=$IFS 18321 IFS=: 18322 set x $ac_tag 18323 IFS=$ac_save_IFS 18324 shift 18325 ac_file=$1 18326 shift 18327 18328 case $ac_mode in 18329 :L) ac_source=$1;; 18330 :[FH]) 18331 ac_file_inputs= 18332 for ac_f 18333 do 18334 case $ac_f in 18335 -) ac_f="$ac_tmp/stdin";; 18336 *) # Look for the file first in the build tree, then in the source tree 18337 # (if the path is not absolute). The absolute path cannot be DOS-style, 18338 # because $ac_f cannot contain `:'. 18339 test -f "$ac_f" || 18340 case $ac_f in 18341 [\\/$]*) false;; 18342 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18343 esac || 18344 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 18345 esac 18346 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18347 as_fn_append ac_file_inputs " '$ac_f'" 18348 done 18349 18350 # Let's still pretend it is `configure' which instantiates (i.e., don't 18351 # use $as_me), people would be surprised to read: 18352 # /* config.h. Generated by config.status. */ 18353 configure_input='Generated from '` 18354 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18355 `' by configure.' 18356 if test x"$ac_file" != x-; then 18357 configure_input="$ac_file. $configure_input" 18358 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18359 $as_echo "$as_me: creating $ac_file" >&6;} 18360 fi 18361 # Neutralize special characters interpreted by sed in replacement strings. 18362 case $configure_input in #( 18363 *\&* | *\|* | *\\* ) 18364 ac_sed_conf_input=`$as_echo "$configure_input" | 18365 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18366 *) ac_sed_conf_input=$configure_input;; 18367 esac 18368 18369 case $ac_tag in 18370 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 18371 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18372 esac 18373 ;; 18374 esac 18375 18376 ac_dir=`$as_dirname -- "$ac_file" || 18377 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18378 X"$ac_file" : 'X\(//\)[^/]' \| \ 18379 X"$ac_file" : 'X\(//\)$' \| \ 18380 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18381 $as_echo X"$ac_file" | 18382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18383 s//\1/ 18384 q 18385 } 18386 /^X\(\/\/\)[^/].*/{ 18387 s//\1/ 18388 q 18389 } 18390 /^X\(\/\/\)$/{ 18391 s//\1/ 18392 q 18393 } 18394 /^X\(\/\).*/{ 18395 s//\1/ 18396 q 18397 } 18398 s/.*/./; q'` 18399 as_dir="$ac_dir"; as_fn_mkdir_p 18400 ac_builddir=. 18401 18402 case "$ac_dir" in 18403 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18404 *) 18405 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18406 # A ".." for each directory in $ac_dir_suffix. 18407 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18408 case $ac_top_builddir_sub in 18409 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18410 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18411 esac ;; 18412 esac 18413 ac_abs_top_builddir=$ac_pwd 18414 ac_abs_builddir=$ac_pwd$ac_dir_suffix 18415 # for backward compatibility: 18416 ac_top_builddir=$ac_top_build_prefix 18417 18418 case $srcdir in 18419 .) # We are building in place. 18420 ac_srcdir=. 18421 ac_top_srcdir=$ac_top_builddir_sub 18422 ac_abs_top_srcdir=$ac_pwd ;; 18423 [\\/]* | ?:[\\/]* ) # Absolute name. 18424 ac_srcdir=$srcdir$ac_dir_suffix; 18425 ac_top_srcdir=$srcdir 18426 ac_abs_top_srcdir=$srcdir ;; 18427 *) # Relative name. 18428 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18429 ac_top_srcdir=$ac_top_build_prefix$srcdir 18430 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18431 esac 18432 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18433 18434 18435 case $ac_mode in 18436 :F) 18437 # 18438 # CONFIG_FILE 18439 # 18440 18441 case $INSTALL in 18442 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18443 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18444 esac 18445 ac_MKDIR_P=$MKDIR_P 18446 case $MKDIR_P in 18447 [\\/$]* | ?:[\\/]* ) ;; 18448 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18449 esac 18450 _ACEOF 18451 18452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18453 # If the template does not know about datarootdir, expand it. 18454 # FIXME: This hack should be removed a few years after 2.60. 18455 ac_datarootdir_hack=; ac_datarootdir_seen= 18456 ac_sed_dataroot=' 18457 /datarootdir/ { 18458 p 18459 q 18460 } 18461 /@datadir@/p 18462 /@docdir@/p 18463 /@infodir@/p 18464 /@localedir@/p 18465 /@mandir@/p' 18466 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18467 *datarootdir*) ac_datarootdir_seen=yes;; 18468 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18470 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18471 _ACEOF 18472 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18473 ac_datarootdir_hack=' 18474 s&@datadir@&$datadir&g 18475 s&@docdir@&$docdir&g 18476 s&@infodir@&$infodir&g 18477 s&@localedir@&$localedir&g 18478 s&@mandir@&$mandir&g 18479 s&\\\${datarootdir}&$datarootdir&g' ;; 18480 esac 18481 _ACEOF 18482 18483 # Neutralize VPATH when `$srcdir' = `.'. 18484 # Shell code in configure.ac might set extrasub. 18485 # FIXME: do we really want to maintain this feature? 18486 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18487 ac_sed_extra="$ac_vpsub 18488 $extrasub 18489 _ACEOF 18490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18491 :t 18492 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18493 s|@configure_input@|$ac_sed_conf_input|;t t 18494 s&@top_builddir@&$ac_top_builddir_sub&;t t 18495 s&@top_build_prefix@&$ac_top_build_prefix&;t t 18496 s&@srcdir@&$ac_srcdir&;t t 18497 s&@abs_srcdir@&$ac_abs_srcdir&;t t 18498 s&@top_srcdir@&$ac_top_srcdir&;t t 18499 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18500 s&@builddir@&$ac_builddir&;t t 18501 s&@abs_builddir@&$ac_abs_builddir&;t t 18502 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18503 s&@INSTALL@&$ac_INSTALL&;t t 18504 s&@MKDIR_P@&$ac_MKDIR_P&;t t 18505 $ac_datarootdir_hack 18506 " 18507 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18508 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18509 18510 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18511 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18512 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18513 "$ac_tmp/out"`; test -z "$ac_out"; } && 18514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18515 which seems to be undefined. Please make sure it is defined" >&5 18516 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18517 which seems to be undefined. Please make sure it is defined" >&2;} 18518 18519 rm -f "$ac_tmp/stdin" 18520 case $ac_file in 18521 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18522 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18523 esac \ 18524 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18525 ;; 18526 :H) 18527 # 18528 # CONFIG_HEADER 18529 # 18530 if test x"$ac_file" != x-; then 18531 { 18532 $as_echo "/* $configure_input */" \ 18533 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 18534 } >"$ac_tmp/config.h" \ 18535 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18536 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 18537 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18538 $as_echo "$as_me: $ac_file is unchanged" >&6;} 18539 else 18540 rm -f "$ac_file" 18541 mv "$ac_tmp/config.h" "$ac_file" \ 18542 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18543 fi 18544 else 18545 $as_echo "/* $configure_input */" \ 18546 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 18547 || as_fn_error $? "could not create -" "$LINENO" 5 18548 fi 18549 # Compute "$ac_file"'s index in $config_headers. 18550 _am_arg="$ac_file" 18551 _am_stamp_count=1 18552 for _am_header in $config_headers :; do 18553 case $_am_header in 18554 $_am_arg | $_am_arg:* ) 18555 break ;; 18556 * ) 18557 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 18558 esac 18559 done 18560 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 18561 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18562 X"$_am_arg" : 'X\(//\)[^/]' \| \ 18563 X"$_am_arg" : 'X\(//\)$' \| \ 18564 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 18565 $as_echo X"$_am_arg" | 18566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18567 s//\1/ 18568 q 18569 } 18570 /^X\(\/\/\)[^/].*/{ 18571 s//\1/ 18572 q 18573 } 18574 /^X\(\/\/\)$/{ 18575 s//\1/ 18576 q 18577 } 18578 /^X\(\/\).*/{ 18579 s//\1/ 18580 q 18581 } 18582 s/.*/./; q'`/stamp-h$_am_stamp_count 18583 ;; 18584 18585 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18586 $as_echo "$as_me: executing $ac_file commands" >&6;} 18587 ;; 18588 esac 18589 18590 18591 case $ac_file$ac_mode in 18592 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 18593 # Older Autoconf quotes --file arguments for eval, but not when files 18594 # are listed without --file. Let's play safe and only enable the eval 18595 # if we detect the quoting. 18596 case $CONFIG_FILES in 18597 *\'*) eval set x "$CONFIG_FILES" ;; 18598 *) set x $CONFIG_FILES ;; 18599 esac 18600 shift 18601 for mf 18602 do 18603 # Strip MF so we end up with the name of the file. 18604 mf=`echo "$mf" | sed -e 's/:.*$//'` 18605 # Check whether this is an Automake generated Makefile or not. 18606 # We used to match only the files named 'Makefile.in', but 18607 # some people rename them; so instead we look at the file content. 18608 # Grep'ing the first line is not enough: some people post-process 18609 # each Makefile.in and add a new line on top of each file to say so. 18610 # Grep'ing the whole file is not good either: AIX grep has a line 18611 # limit of 2048, but all sed's we know have understand at least 4000. 18612 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 18613 dirpart=`$as_dirname -- "$mf" || 18614 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18615 X"$mf" : 'X\(//\)[^/]' \| \ 18616 X"$mf" : 'X\(//\)$' \| \ 18617 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 18618 $as_echo X"$mf" | 18619 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18620 s//\1/ 18621 q 18622 } 18623 /^X\(\/\/\)[^/].*/{ 18624 s//\1/ 18625 q 18626 } 18627 /^X\(\/\/\)$/{ 18628 s//\1/ 18629 q 18630 } 18631 /^X\(\/\).*/{ 18632 s//\1/ 18633 q 18634 } 18635 s/.*/./; q'` 18636 else 18637 continue 18638 fi 18639 # Extract the definition of DEPDIR, am__include, and am__quote 18640 # from the Makefile without running 'make'. 18641 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 18642 test -z "$DEPDIR" && continue 18643 am__include=`sed -n 's/^am__include = //p' < "$mf"` 18644 test -z "$am__include" && continue 18645 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 18646 # Find all dependency output files, they are included files with 18647 # $(DEPDIR) in their names. We invoke sed twice because it is the 18648 # simplest approach to changing $(DEPDIR) to its actual value in the 18649 # expansion. 18650 for file in `sed -n " 18651 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 18652 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 18653 # Make sure the directory exists. 18654 test -f "$dirpart/$file" && continue 18655 fdir=`$as_dirname -- "$file" || 18656 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18657 X"$file" : 'X\(//\)[^/]' \| \ 18658 X"$file" : 'X\(//\)$' \| \ 18659 X"$file" : 'X\(/\)' \| . 2>/dev/null || 18660 $as_echo X"$file" | 18661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18662 s//\1/ 18663 q 18664 } 18665 /^X\(\/\/\)[^/].*/{ 18666 s//\1/ 18667 q 18668 } 18669 /^X\(\/\/\)$/{ 18670 s//\1/ 18671 q 18672 } 18673 /^X\(\/\).*/{ 18674 s//\1/ 18675 q 18676 } 18677 s/.*/./; q'` 18678 as_dir=$dirpart/$fdir; as_fn_mkdir_p 18679 # echo "creating $dirpart/$file" 18680 echo '# dummy' > "$dirpart/$file" 18681 done 18682 done 18683 } 18684 ;; 18685 "libtool":C) 18686 18687 # See if we are running on zsh, and set the options which allow our 18688 # commands through without removal of \ escapes. 18689 if test -n "${ZSH_VERSION+set}" ; then 18690 setopt NO_GLOB_SUBST 18691 fi 18692 18693 cfgfile="${ofile}T" 18694 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18695 $RM "$cfgfile" 18696 18697 cat <<_LT_EOF >> "$cfgfile" 18698 #! $SHELL 18699 18700 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 18701 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 18702 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18703 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 18704 # 18705 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 18706 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software 18707 # Foundation, Inc. 18708 # Written by Gordon Matzigkeit, 1996 18709 # 18710 # This file is part of GNU Libtool. 18711 # 18712 # GNU Libtool is free software; you can redistribute it and/or 18713 # modify it under the terms of the GNU General Public License as 18714 # published by the Free Software Foundation; either version 2 of 18715 # the License, or (at your option) any later version. 18716 # 18717 # As a special exception to the GNU General Public License, 18718 # if you distribute this file as part of a program or library that 18719 # is built using GNU Libtool, you may include this file under the 18720 # same distribution terms that you use for the rest of that program. 18721 # 18722 # GNU Libtool is distributed in the hope that it will be useful, 18723 # but WITHOUT ANY WARRANTY; without even the implied warranty of 18724 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18725 # GNU General Public License for more details. 18726 # 18727 # You should have received a copy of the GNU General Public License 18728 # along with GNU Libtool; see the file COPYING. If not, a copy 18729 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or 18730 # obtained by writing to the Free Software Foundation, Inc., 18731 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 18732 18733 18734 # The names of the tagged configurations supported by this script. 18735 available_tags="RC " 18736 18737 # ### BEGIN LIBTOOL CONFIG 18738 18739 # Which release of libtool.m4 was used? 18740 macro_version=$macro_version 18741 macro_revision=$macro_revision 18742 18743 # Assembler program. 18744 AS=$lt_AS 18745 18746 # DLL creation program. 18747 DLLTOOL=$lt_DLLTOOL 18748 18749 # Object dumper program. 18750 OBJDUMP=$lt_OBJDUMP 18751 18752 # Whether or not to build shared libraries. 18753 build_libtool_libs=$enable_shared 18754 18755 # Whether or not to build static libraries. 18756 build_old_libs=$enable_static 18757 18758 # What type of objects to build. 18759 pic_mode=$pic_mode 18760 18761 # Whether or not to optimize for fast installation. 18762 fast_install=$enable_fast_install 18763 18764 # Shell to use when invoking shell scripts. 18765 SHELL=$lt_SHELL 18766 18767 # An echo program that protects backslashes. 18768 ECHO=$lt_ECHO 18769 18770 # The PATH separator for the build system. 18771 PATH_SEPARATOR=$lt_PATH_SEPARATOR 18772 18773 # The host system. 18774 host_alias=$host_alias 18775 host=$host 18776 host_os=$host_os 18777 18778 # The build system. 18779 build_alias=$build_alias 18780 build=$build 18781 build_os=$build_os 18782 18783 # A sed program that does not truncate output. 18784 SED=$lt_SED 18785 18786 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 18787 Xsed="\$SED -e 1s/^X//" 18788 18789 # A grep program that handles long lines. 18790 GREP=$lt_GREP 18791 18792 # An ERE matcher. 18793 EGREP=$lt_EGREP 18794 18795 # A literal string matcher. 18796 FGREP=$lt_FGREP 18797 18798 # A BSD- or MS-compatible name lister. 18799 NM=$lt_NM 18800 18801 # Whether we need soft or hard links. 18802 LN_S=$lt_LN_S 18803 18804 # What is the maximum length of a command? 18805 max_cmd_len=$max_cmd_len 18806 18807 # Object file suffix (normally "o"). 18808 objext=$ac_objext 18809 18810 # Executable file suffix (normally ""). 18811 exeext=$exeext 18812 18813 # whether the shell understands "unset". 18814 lt_unset=$lt_unset 18815 18816 # turn spaces into newlines. 18817 SP2NL=$lt_lt_SP2NL 18818 18819 # turn newlines into spaces. 18820 NL2SP=$lt_lt_NL2SP 18821 18822 # convert \$build file names to \$host format. 18823 to_host_file_cmd=$lt_cv_to_host_file_cmd 18824 18825 # convert \$build files to toolchain format. 18826 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 18827 18828 # Method to check whether dependent libraries are shared objects. 18829 deplibs_check_method=$lt_deplibs_check_method 18830 18831 # Command to use when deplibs_check_method = "file_magic". 18832 file_magic_cmd=$lt_file_magic_cmd 18833 18834 # How to find potential files when deplibs_check_method = "file_magic". 18835 file_magic_glob=$lt_file_magic_glob 18836 18837 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 18838 want_nocaseglob=$lt_want_nocaseglob 18839 18840 # Command to associate shared and link libraries. 18841 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 18842 18843 # The archiver. 18844 AR=$lt_AR 18845 18846 # Flags to create an archive. 18847 AR_FLAGS=$lt_AR_FLAGS 18848 18849 # How to feed a file listing to the archiver. 18850 archiver_list_spec=$lt_archiver_list_spec 18851 18852 # A symbol stripping program. 18853 STRIP=$lt_STRIP 18854 18855 # Commands used to install an old-style archive. 18856 RANLIB=$lt_RANLIB 18857 old_postinstall_cmds=$lt_old_postinstall_cmds 18858 old_postuninstall_cmds=$lt_old_postuninstall_cmds 18859 18860 # Whether to use a lock for old archive extraction. 18861 lock_old_archive_extraction=$lock_old_archive_extraction 18862 18863 # A C compiler. 18864 LTCC=$lt_CC 18865 18866 # LTCC compiler flags. 18867 LTCFLAGS=$lt_CFLAGS 18868 18869 # Take the output of nm and produce a listing of raw symbols and C names. 18870 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18871 18872 # Transform the output of nm in a proper C declaration. 18873 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18874 18875 # Transform the output of nm in a C name address pair. 18876 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18877 18878 # Transform the output of nm in a C name address pair when lib prefix is needed. 18879 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 18880 18881 # Specify filename containing input files for \$NM. 18882 nm_file_list_spec=$lt_nm_file_list_spec 18883 18884 # The root where to search for dependent libraries,and in which our libraries should be installed. 18885 lt_sysroot=$lt_sysroot 18886 18887 # The name of the directory that contains temporary libtool files. 18888 objdir=$objdir 18889 18890 # Used to examine libraries when file_magic_cmd begins with "file". 18891 MAGIC_CMD=$MAGIC_CMD 18892 18893 # Must we lock files when doing compilation? 18894 need_locks=$lt_need_locks 18895 18896 # Manifest tool. 18897 MANIFEST_TOOL=$lt_MANIFEST_TOOL 18898 18899 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 18900 DSYMUTIL=$lt_DSYMUTIL 18901 18902 # Tool to change global to local symbols on Mac OS X. 18903 NMEDIT=$lt_NMEDIT 18904 18905 # Tool to manipulate fat objects and archives on Mac OS X. 18906 LIPO=$lt_LIPO 18907 18908 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 18909 OTOOL=$lt_OTOOL 18910 18911 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 18912 OTOOL64=$lt_OTOOL64 18913 18914 # Old archive suffix (normally "a"). 18915 libext=$libext 18916 18917 # Shared library suffix (normally ".so"). 18918 shrext_cmds=$lt_shrext_cmds 18919 18920 # The commands to extract the exported symbol list from a shared archive. 18921 extract_expsyms_cmds=$lt_extract_expsyms_cmds 18922 18923 # Variables whose values should be saved in libtool wrapper scripts and 18924 # restored at link time. 18925 variables_saved_for_relink=$lt_variables_saved_for_relink 18926 18927 # Do we need the "lib" prefix for modules? 18928 need_lib_prefix=$need_lib_prefix 18929 18930 # Do we need a version for libraries? 18931 need_version=$need_version 18932 18933 # Library versioning type. 18934 version_type=$version_type 18935 18936 # Shared library runtime path variable. 18937 runpath_var=$runpath_var 18938 18939 # Shared library path variable. 18940 shlibpath_var=$shlibpath_var 18941 18942 # Is shlibpath searched before the hard-coded library search path? 18943 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18944 18945 # Format of library name prefix. 18946 libname_spec=$lt_libname_spec 18947 18948 # List of archive names. First name is the real one, the rest are links. 18949 # The last name is the one that the linker finds with -lNAME 18950 library_names_spec=$lt_library_names_spec 18951 18952 # The coded name of the library, if different from the real name. 18953 soname_spec=$lt_soname_spec 18954 18955 # Permission mode override for installation of shared libraries. 18956 install_override_mode=$lt_install_override_mode 18957 18958 # Command to use after installation of a shared archive. 18959 postinstall_cmds=$lt_postinstall_cmds 18960 18961 # Command to use after uninstallation of a shared archive. 18962 postuninstall_cmds=$lt_postuninstall_cmds 18963 18964 # Commands used to finish a libtool library installation in a directory. 18965 finish_cmds=$lt_finish_cmds 18966 18967 # As "finish_cmds", except a single script fragment to be evaled but 18968 # not shown. 18969 finish_eval=$lt_finish_eval 18970 18971 # Whether we should hardcode library paths into libraries. 18972 hardcode_into_libs=$hardcode_into_libs 18973 18974 # Compile-time system search path for libraries. 18975 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18976 18977 # Run-time system search path for libraries. 18978 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18979 18980 # Whether dlopen is supported. 18981 dlopen_support=$enable_dlopen 18982 18983 # Whether dlopen of programs is supported. 18984 dlopen_self=$enable_dlopen_self 18985 18986 # Whether dlopen of statically linked programs is supported. 18987 dlopen_self_static=$enable_dlopen_self_static 18988 18989 # Commands to strip libraries. 18990 old_striplib=$lt_old_striplib 18991 striplib=$lt_striplib 18992 18993 18994 # The linker used to build libraries. 18995 LD=$lt_LD 18996 18997 # How to create reloadable object files. 18998 reload_flag=$lt_reload_flag 18999 reload_cmds=$lt_reload_cmds 19000 19001 # Commands used to build an old-style archive. 19002 old_archive_cmds=$lt_old_archive_cmds 19003 19004 # A language specific compiler. 19005 CC=$lt_compiler 19006 19007 # Is the compiler the GNU compiler? 19008 with_gcc=$GCC 19009 19010 # Compiler flag to turn off builtin functions. 19011 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19012 19013 # Additional compiler flags for building library objects. 19014 pic_flag=$lt_lt_prog_compiler_pic 19015 19016 # How to pass a linker flag through the compiler. 19017 wl=$lt_lt_prog_compiler_wl 19018 19019 # Compiler flag to prevent dynamic linking. 19020 link_static_flag=$lt_lt_prog_compiler_static 19021 19022 # Does compiler simultaneously support -c and -o options? 19023 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19024 19025 # Whether or not to add -lc for building shared libraries. 19026 build_libtool_need_lc=$archive_cmds_need_lc 19027 19028 # Whether or not to disallow shared libs when runtime libs are static. 19029 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19030 19031 # Compiler flag to allow reflexive dlopens. 19032 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19033 19034 # Compiler flag to generate shared objects directly from archives. 19035 whole_archive_flag_spec=$lt_whole_archive_flag_spec 19036 19037 # Whether the compiler copes with passing no objects directly. 19038 compiler_needs_object=$lt_compiler_needs_object 19039 19040 # Create an old-style archive from a shared archive. 19041 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19042 19043 # Create a temporary old-style archive to link instead of a shared archive. 19044 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19045 19046 # Commands used to build a shared archive. 19047 archive_cmds=$lt_archive_cmds 19048 archive_expsym_cmds=$lt_archive_expsym_cmds 19049 19050 # Commands used to build a loadable module if different from building 19051 # a shared archive. 19052 module_cmds=$lt_module_cmds 19053 module_expsym_cmds=$lt_module_expsym_cmds 19054 19055 # Whether we are building with GNU ld or not. 19056 with_gnu_ld=$lt_with_gnu_ld 19057 19058 # Flag that allows shared libraries with undefined symbols to be built. 19059 allow_undefined_flag=$lt_allow_undefined_flag 19060 19061 # Flag that enforces no undefined symbols. 19062 no_undefined_flag=$lt_no_undefined_flag 19063 19064 # Flag to hardcode \$libdir into a binary during linking. 19065 # This must work even if \$libdir does not exist 19066 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19067 19068 # Whether we need a single "-rpath" flag with a separated argument. 19069 hardcode_libdir_separator=$lt_hardcode_libdir_separator 19070 19071 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19072 # DIR into the resulting binary. 19073 hardcode_direct=$hardcode_direct 19074 19075 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19076 # DIR into the resulting binary and the resulting library dependency is 19077 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the 19078 # library is relocated. 19079 hardcode_direct_absolute=$hardcode_direct_absolute 19080 19081 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19082 # into the resulting binary. 19083 hardcode_minus_L=$hardcode_minus_L 19084 19085 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19086 # into the resulting binary. 19087 hardcode_shlibpath_var=$hardcode_shlibpath_var 19088 19089 # Set to "yes" if building a shared library automatically hardcodes DIR 19090 # into the library and all subsequent libraries and executables linked 19091 # against it. 19092 hardcode_automatic=$hardcode_automatic 19093 19094 # Set to yes if linker adds runtime paths of dependent libraries 19095 # to runtime path list. 19096 inherit_rpath=$inherit_rpath 19097 19098 # Whether libtool must link a program against all its dependency libraries. 19099 link_all_deplibs=$link_all_deplibs 19100 19101 # Set to "yes" if exported symbols are required. 19102 always_export_symbols=$always_export_symbols 19103 19104 # The commands to list exported symbols. 19105 export_symbols_cmds=$lt_export_symbols_cmds 19106 19107 # Symbols that should not be listed in the preloaded symbols. 19108 exclude_expsyms=$lt_exclude_expsyms 19109 19110 # Symbols that must always be exported. 19111 include_expsyms=$lt_include_expsyms 19112 19113 # Commands necessary for linking programs (against libraries) with templates. 19114 prelink_cmds=$lt_prelink_cmds 19115 19116 # Commands necessary for finishing linking programs. 19117 postlink_cmds=$lt_postlink_cmds 19118 19119 # Specify filename containing input files. 19120 file_list_spec=$lt_file_list_spec 19121 19122 # How to hardcode a shared library path into an executable. 19123 hardcode_action=$hardcode_action 19124 19125 # ### END LIBTOOL CONFIG 19126 19127 _LT_EOF 19128 19129 case $host_os in 19130 aix3*) 19131 cat <<\_LT_EOF >> "$cfgfile" 19132 # AIX sometimes has problems with the GCC collect2 program. For some 19133 # reason, if we set the COLLECT_NAMES environment variable, the problems 19134 # vanish in a puff of smoke. 19135 if test "X${COLLECT_NAMES+set}" != Xset; then 19136 COLLECT_NAMES= 19137 export COLLECT_NAMES 19138 fi 19139 _LT_EOF 19140 ;; 19141 esac 19142 19143 19144 ltmain="$ac_aux_dir/ltmain.sh" 19145 19146 19147 # We use sed instead of cat because bash on DJGPP gets confused if 19148 # if finds mixed CR/LF and LF-only lines. Since sed operates in 19149 # text mode, it properly converts lines to CR/LF. This bash problem 19150 # is reportedly fixed, but why not run on old versions too? 19151 sed '$q' "$ltmain" >> "$cfgfile" \ 19152 || (rm -f "$cfgfile"; exit 1) 19153 19154 if test x"$xsi_shell" = xyes; then 19155 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 19156 func_dirname ()\ 19157 {\ 19158 \ case ${1} in\ 19159 \ */*) func_dirname_result="${1%/*}${2}" ;;\ 19160 \ * ) func_dirname_result="${3}" ;;\ 19161 \ esac\ 19162 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 19163 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19164 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19165 test 0 -eq $? || _lt_function_replace_fail=: 19166 19167 19168 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 19169 func_basename ()\ 19170 {\ 19171 \ func_basename_result="${1##*/}"\ 19172 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 19173 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19174 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19175 test 0 -eq $? || _lt_function_replace_fail=: 19176 19177 19178 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 19179 func_dirname_and_basename ()\ 19180 {\ 19181 \ case ${1} in\ 19182 \ */*) func_dirname_result="${1%/*}${2}" ;;\ 19183 \ * ) func_dirname_result="${3}" ;;\ 19184 \ esac\ 19185 \ func_basename_result="${1##*/}"\ 19186 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 19187 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19188 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19189 test 0 -eq $? || _lt_function_replace_fail=: 19190 19191 19192 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 19193 func_stripname ()\ 19194 {\ 19195 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 19196 \ # positional parameters, so assign one to ordinary parameter first.\ 19197 \ func_stripname_result=${3}\ 19198 \ func_stripname_result=${func_stripname_result#"${1}"}\ 19199 \ func_stripname_result=${func_stripname_result%"${2}"}\ 19200 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 19201 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19202 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19203 test 0 -eq $? || _lt_function_replace_fail=: 19204 19205 19206 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 19207 func_split_long_opt ()\ 19208 {\ 19209 \ func_split_long_opt_name=${1%%=*}\ 19210 \ func_split_long_opt_arg=${1#*=}\ 19211 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 19212 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19213 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19214 test 0 -eq $? || _lt_function_replace_fail=: 19215 19216 19217 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 19218 func_split_short_opt ()\ 19219 {\ 19220 \ func_split_short_opt_arg=${1#??}\ 19221 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 19222 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 19223 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19224 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19225 test 0 -eq $? || _lt_function_replace_fail=: 19226 19227 19228 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 19229 func_lo2o ()\ 19230 {\ 19231 \ case ${1} in\ 19232 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 19233 \ *) func_lo2o_result=${1} ;;\ 19234 \ esac\ 19235 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 19236 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19237 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19238 test 0 -eq $? || _lt_function_replace_fail=: 19239 19240 19241 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 19242 func_xform ()\ 19243 {\ 19244 func_xform_result=${1%.*}.lo\ 19245 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 19246 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19247 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19248 test 0 -eq $? || _lt_function_replace_fail=: 19249 19250 19251 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 19252 func_arith ()\ 19253 {\ 19254 func_arith_result=$(( $* ))\ 19255 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 19256 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19257 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19258 test 0 -eq $? || _lt_function_replace_fail=: 19259 19260 19261 sed -e '/^func_len ()$/,/^} # func_len /c\ 19262 func_len ()\ 19263 {\ 19264 func_len_result=${#1}\ 19265 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 19266 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19267 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19268 test 0 -eq $? || _lt_function_replace_fail=: 19269 19270 fi 19271 19272 if test x"$lt_shell_append" = xyes; then 19273 sed -e '/^func_append ()$/,/^} # func_append /c\ 19274 func_append ()\ 19275 {\ 19276 eval "${1}+=\\${2}"\ 19277 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 19278 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19279 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19280 test 0 -eq $? || _lt_function_replace_fail=: 19281 19282 19283 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 19284 func_append_quoted ()\ 19285 {\ 19286 \ func_quote_for_eval "${2}"\ 19287 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 19288 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 19289 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19290 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19291 test 0 -eq $? || _lt_function_replace_fail=: 19292 19293 19294 # Save a `func_append' function call where possible by direct use of '+=' 19295 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 19296 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19297 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19298 test 0 -eq $? || _lt_function_replace_fail=: 19299 else 19300 # Save a `func_append' function call even when '+=' is not available 19301 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 19302 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19303 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19304 test 0 -eq $? || _lt_function_replace_fail=: 19305 fi 19306 19307 if test x"$_lt_function_replace_fail" = x":"; then 19308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 19309 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 19310 fi 19311 19312 19313 mv -f "$cfgfile" "$ofile" || 19314 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19315 chmod +x "$ofile" 19316 19317 19318 cat <<_LT_EOF >> "$ofile" 19319 19320 # ### BEGIN LIBTOOL TAG CONFIG: RC 19321 19322 # The linker used to build libraries. 19323 LD=$lt_LD_RC 19324 19325 # How to create reloadable object files. 19326 reload_flag=$lt_reload_flag_RC 19327 reload_cmds=$lt_reload_cmds_RC 19328 19329 # Commands used to build an old-style archive. 19330 old_archive_cmds=$lt_old_archive_cmds_RC 19331 19332 # A language specific compiler. 19333 CC=$lt_compiler_RC 19334 19335 # Is the compiler the GNU compiler? 19336 with_gcc=$GCC_RC 19337 19338 # Compiler flag to turn off builtin functions. 19339 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19340 19341 # Additional compiler flags for building library objects. 19342 pic_flag=$lt_lt_prog_compiler_pic_RC 19343 19344 # How to pass a linker flag through the compiler. 19345 wl=$lt_lt_prog_compiler_wl_RC 19346 19347 # Compiler flag to prevent dynamic linking. 19348 link_static_flag=$lt_lt_prog_compiler_static_RC 19349 19350 # Does compiler simultaneously support -c and -o options? 19351 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19352 19353 # Whether or not to add -lc for building shared libraries. 19354 build_libtool_need_lc=$archive_cmds_need_lc_RC 19355 19356 # Whether or not to disallow shared libs when runtime libs are static. 19357 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19358 19359 # Compiler flag to allow reflexive dlopens. 19360 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19361 19362 # Compiler flag to generate shared objects directly from archives. 19363 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19364 19365 # Whether the compiler copes with passing no objects directly. 19366 compiler_needs_object=$lt_compiler_needs_object_RC 19367 19368 # Create an old-style archive from a shared archive. 19369 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19370 19371 # Create a temporary old-style archive to link instead of a shared archive. 19372 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19373 19374 # Commands used to build a shared archive. 19375 archive_cmds=$lt_archive_cmds_RC 19376 archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19377 19378 # Commands used to build a loadable module if different from building 19379 # a shared archive. 19380 module_cmds=$lt_module_cmds_RC 19381 module_expsym_cmds=$lt_module_expsym_cmds_RC 19382 19383 # Whether we are building with GNU ld or not. 19384 with_gnu_ld=$lt_with_gnu_ld_RC 19385 19386 # Flag that allows shared libraries with undefined symbols to be built. 19387 allow_undefined_flag=$lt_allow_undefined_flag_RC 19388 19389 # Flag that enforces no undefined symbols. 19390 no_undefined_flag=$lt_no_undefined_flag_RC 19391 19392 # Flag to hardcode \$libdir into a binary during linking. 19393 # This must work even if \$libdir does not exist 19394 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19395 19396 # Whether we need a single "-rpath" flag with a separated argument. 19397 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19398 19399 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19400 # DIR into the resulting binary. 19401 hardcode_direct=$hardcode_direct_RC 19402 19403 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19404 # DIR into the resulting binary and the resulting library dependency is 19405 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the 19406 # library is relocated. 19407 hardcode_direct_absolute=$hardcode_direct_absolute_RC 19408 19409 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19410 # into the resulting binary. 19411 hardcode_minus_L=$hardcode_minus_L_RC 19412 19413 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19414 # into the resulting binary. 19415 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19416 19417 # Set to "yes" if building a shared library automatically hardcodes DIR 19418 # into the library and all subsequent libraries and executables linked 19419 # against it. 19420 hardcode_automatic=$hardcode_automatic_RC 19421 19422 # Set to yes if linker adds runtime paths of dependent libraries 19423 # to runtime path list. 19424 inherit_rpath=$inherit_rpath_RC 19425 19426 # Whether libtool must link a program against all its dependency libraries. 19427 link_all_deplibs=$link_all_deplibs_RC 19428 19429 # Set to "yes" if exported symbols are required. 19430 always_export_symbols=$always_export_symbols_RC 19431 19432 # The commands to list exported symbols. 19433 export_symbols_cmds=$lt_export_symbols_cmds_RC 19434 19435 # Symbols that should not be listed in the preloaded symbols. 19436 exclude_expsyms=$lt_exclude_expsyms_RC 19437 19438 # Symbols that must always be exported. 19439 include_expsyms=$lt_include_expsyms_RC 19440 19441 # Commands necessary for linking programs (against libraries) with templates. 19442 prelink_cmds=$lt_prelink_cmds_RC 19443 19444 # Commands necessary for finishing linking programs. 19445 postlink_cmds=$lt_postlink_cmds_RC 19446 19447 # Specify filename containing input files. 19448 file_list_spec=$lt_file_list_spec_RC 19449 19450 # How to hardcode a shared library path into an executable. 19451 hardcode_action=$hardcode_action_RC 19452 19453 # ### END LIBTOOL TAG CONFIG: RC 19454 _LT_EOF 19455 19456 ;; 19457 19458 esac 19459 done # for ac_tag 19460 19461 19462 as_fn_exit 0 19463 _ACEOF 19464 ac_clean_files=$ac_clean_files_save 19465 19466 test $ac_write_fail = 0 || 19467 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 19468 19469 19470 # configure is writing to config.log, and then calls config.status. 19471 # config.status does its own redirection, appending to config.log. 19472 # Unfortunately, on DOS this fails, as config.log is still kept open 19473 # by configure, so config.status won't be able to write to it; its 19474 # output is simply discarded. So we exec the FD to /dev/null, 19475 # effectively closing config.log, so it can be properly (re)opened and 19476 # appended to by config.status. When coming back to configure, we 19477 # need to make the FD available again. 19478 if test "$no_create" != yes; then 19479 ac_cs_success=: 19480 ac_config_status_args= 19481 test "$silent" = yes && 19482 ac_config_status_args="$ac_config_status_args --quiet" 19483 exec 5>/dev/null 19484 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19485 exec 5>>config.log 19486 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19487 # would make configure fail if this is the last instruction. 19488 $ac_cs_success || as_fn_exit 1 19489 fi 19490 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 19491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 19492 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 19493 fi 19494 19495 19496 # Finally: summary 19497 if test "x$enable_curl" != "xyes"; then 19498 MSG_CURL="no, many unit tests will not run" 19499 else 19500 MSG_CURL="yes" 19501 fi 19502 19503 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration Summary: 19504 Operating System: ${host_os} 19505 Threading lib: ${USE_THREADS} 19506 libcurl (testing): ${MSG_CURL} 19507 Target directory: ${prefix} 19508 Messages: ${enable_messages} 19509 Basic auth.: ${enable_bauth} 19510 Digest auth.: ${enable_dauth} 19511 Postproc: ${enable_postprocessor} 19512 HTTPS support: ${MSG_HTTPS} 19513 poll support: ${enable_poll=no} 19514 epoll support: ${enable_epoll=no} 19515 build docs: ${enable_doc} 19516 build examples: ${enable_examples} 19517 libmicrospdy: ${enable_spdy} 19518 spdylay (testing): ${have_spdylay} 19519 " >&5 19520 $as_echo "$as_me: Configuration Summary: 19521 Operating System: ${host_os} 19522 Threading lib: ${USE_THREADS} 19523 libcurl (testing): ${MSG_CURL} 19524 Target directory: ${prefix} 19525 Messages: ${enable_messages} 19526 Basic auth.: ${enable_bauth} 19527 Digest auth.: ${enable_dauth} 19528 Postproc: ${enable_postprocessor} 19529 HTTPS support: ${MSG_HTTPS} 19530 poll support: ${enable_poll=no} 19531 epoll support: ${enable_epoll=no} 19532 build docs: ${enable_doc} 19533 build examples: ${enable_examples} 19534 libmicrospdy: ${enable_spdy} 19535 spdylay (testing): ${have_spdylay} 19536 " >&6;} 19537 19538 if test "x$enable_https" = "xyes" 19539 then 19540 { $as_echo "$as_me:${as_lineno-$LINENO}: HTTPS subsystem configuration: 19541 License : LGPL only 19542 " >&5 19543 $as_echo "$as_me: HTTPS subsystem configuration: 19544 License : LGPL only 19545 " >&6;} 19546 else 19547 { $as_echo "$as_me:${as_lineno-$LINENO}: 19548 License : LGPL or eCos 19549 " >&5 19550 $as_echo "$as_me: 19551 License : LGPL or eCos 19552 " >&6;} 19553 fi 19554 19555 if test "x$enable_bauth" != "xyes" -o \ 19556 "x$enable_dauth" != "xyes" -o \ 19557 "x$enable_postprocessor" != "xyes" 19558 then 19559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will be a custom build with missing symbols. Do NOT use this build in a distribution. Building with these kinds of configure options is only for custom builds for embedded systems." >&5 19560 $as_echo "$as_me: WARNING: This will be a custom build with missing symbols. Do NOT use this build in a distribution. Building with these kinds of configure options is only for custom builds for embedded systems." >&6;} 19561 fi 19562