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@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 18DUALCASE=1; export DUALCASE # for MKS sh 19if 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 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_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. 45if 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 --' 49elif (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' 52else 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' 72fi 73 74# The user is always right. 75if 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 } 81fi 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.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 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 102IFS=$as_save_IFS 103 104 ;; 105esac 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. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 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. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export 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. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $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 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if 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 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -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 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 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 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 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 244fi; } 245IFS=$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. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $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 267exit 255 268fi 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@gnu.org and 278$0: libmicrohttpd@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 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_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. 316as_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. 326as_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. 374as_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. 384if (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 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # 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. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # 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. 419as_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 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_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. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_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 511ECHO_C= ECHO_N= ECHO_T= 512case `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';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (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 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_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. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 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. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='libmicrohttpd' 592PACKAGE_TARNAME='libmicrohttpd' 593PACKAGE_VERSION='0.9.42' 594PACKAGE_STRING='libmicrohttpd 0.9.42' 595PACKAGE_BUGREPORT='libmicrohttpd@gnu.org' 596PACKAGE_URL='' 597 598# Factoring default headers for most tests. 599ac_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 634ac_func_list= 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LIBOBJS 639MHD_LIBDEPS 640MHD_LIBDEPS_PKGCFG 641MHD_REQ_PRIVATE 642MHD_LIB_LDFLAGS 643MHD_LIB_CFLAGS 644MHD_LIB_CPPFLAGS 645CPU_COUNT 646USE_COVERAGE_FALSE 647USE_COVERAGE_TRUE 648ENABLE_DAUTH_FALSE 649ENABLE_DAUTH_TRUE 650ENABLE_BAUTH_FALSE 651ENABLE_BAUTH_TRUE 652ENABLE_HTTPS_FALSE 653ENABLE_HTTPS_TRUE 654GNUTLS_LDFLAGS 655GNUTLS_CPPFLAGS 656HAVE_GNUTLS_SNI_FALSE 657HAVE_GNUTLS_SNI_TRUE 658HAVE_GNUTLS_FALSE 659HAVE_GNUTLS_TRUE 660GNUTLS_LIBS 661GNUTLS_CFLAGS 662PKG_CONFIG_LIBDIR 663PKG_CONFIG_PATH 664LIBGCRYPT_LIBS 665LIBGCRYPT_CFLAGS 666LIBGCRYPT_CONFIG 667HAVE_SOCAT_FALSE 668HAVE_SOCAT_TRUE 669HAVE_ZZUF_FALSE 670HAVE_ZZUF_TRUE 671have_socat 672have_zzuf 673HAVE_POSTPROCESSOR_FALSE 674HAVE_POSTPROCESSOR_TRUE 675HAVE_SPDYLAY_FALSE 676HAVE_SPDYLAY_TRUE 677SPDY_LIBDEPS 678SPDY_LIB_CPPFLAGS 679SPDY_LIB_CFLAGS 680SPDY_LIB_LDFLAGS 681ENABLE_SPDY_FALSE 682ENABLE_SPDY_TRUE 683HAVE_OPENSSL_FALSE 684HAVE_OPENSSL_TRUE 685OPENSSL_LDFLAGS 686OPENSSL_LIBS 687OPENSSL_INCLUDES 688PKG_CONFIG 689HAVE_MAGIC_FALSE 690HAVE_MAGIC_TRUE 691HAVE_CURL_FALSE 692HAVE_CURL_TRUE 693LIBCURL 694LIBCURL_CPPFLAGS 695_libcurl_config 696HIDDEN_VISIBILITY_CFLAGS 697HAVE_TSEARCH_FALSE 698HAVE_TSEARCH_TRUE 699BUILD_EXAMPLES_FALSE 700BUILD_EXAMPLES_TRUE 701BUILD_DOC_FALSE 702BUILD_DOC_TRUE 703W32_STATIC_LIB_FALSE 704W32_STATIC_LIB_TRUE 705HAVE_MAKEINFO_BINARY_FALSE 706HAVE_MAKEINFO_BINARY_TRUE 707HAVE_MAKEINFO_BINARY 708HAVE_CURL_BINARY_FALSE 709HAVE_CURL_BINARY_TRUE 710HAVE_CURL_BINARY 711USE_MS_LIB_TOOL_FALSE 712USE_MS_LIB_TOOL_TRUE 713W32_SHARED_LIB_EXP_FALSE 714W32_SHARED_LIB_EXP_TRUE 715HAVE_W32_FALSE 716HAVE_W32_TRUE 717USE_W32_THREADS_FALSE 718USE_W32_THREADS_TRUE 719USE_POSIX_THREADS_FALSE 720USE_POSIX_THREADS_TRUE 721lt_cv_objdir 722MS_LIB_TOOL 723HAVE_POSIX_THREADS_FALSE 724HAVE_POSIX_THREADS_TRUE 725PTHREAD_CFLAGS 726PTHREAD_LIBS 727PTHREAD_CC 728ax_pthread_config 729PACKAGE_VERSION_SUBMINOR 730PACKAGE_VERSION_MINOR 731PACKAGE_VERSION_MAJOR 732RC 733CPP 734OTOOL64 735OTOOL 736LIPO 737NMEDIT 738DSYMUTIL 739MANIFEST_TOOL 740RANLIB 741ac_ct_AR 742AR 743NM 744ac_ct_DUMPBIN 745DUMPBIN 746LD 747FGREP 748EGREP 749GREP 750SED 751LIBTOOL 752OBJDUMP 753DLLTOOL 754AS 755am__fastdepCC_FALSE 756am__fastdepCC_TRUE 757CCDEPMODE 758am__nodep 759AMDEPBACKSLASH 760AMDEP_FALSE 761AMDEP_TRUE 762am__quote 763am__include 764DEPDIR 765OBJEXT 766EXEEXT 767ac_ct_CC 768CPPFLAGS 769LDFLAGS 770CFLAGS 771CC 772host_os 773host_vendor 774host_cpu 775host 776build_os 777build_vendor 778build_cpu 779build 780LN_S 781LIBSPDY_VERSION_AGE 782LIBSPDY_VERSION_REVISION 783LIBSPDY_VERSION_CURRENT 784LIB_VERSION_AGE 785LIB_VERSION_REVISION 786LIB_VERSION_CURRENT 787AM_BACKSLASH 788AM_DEFAULT_VERBOSITY 789AM_DEFAULT_V 790AM_V 791am__untar 792am__tar 793AMTAR 794am__leading_dot 795SET_MAKE 796AWK 797mkdir_p 798MKDIR_P 799INSTALL_STRIP_PROGRAM 800STRIP 801install_sh 802MAKEINFO 803AUTOHEADER 804AUTOMAKE 805AUTOCONF 806ACLOCAL 807VERSION 808PACKAGE 809CYGPATH_W 810am__isrc 811INSTALL_DATA 812INSTALL_SCRIPT 813INSTALL_PROGRAM 814target_alias 815host_alias 816build_alias 817LIBS 818ECHO_T 819ECHO_N 820ECHO_C 821DEFS 822mandir 823localedir 824libdir 825psdir 826pdfdir 827dvidir 828htmldir 829infodir 830docdir 831oldincludedir 832includedir 833localstatedir 834sharedstatedir 835sysconfdir 836datadir 837datarootdir 838libexecdir 839sbindir 840bindir 841program_transform_name 842prefix 843exec_prefix 844PACKAGE_URL 845PACKAGE_BUGREPORT 846PACKAGE_STRING 847PACKAGE_VERSION 848PACKAGE_TARNAME 849PACKAGE_NAME 850PATH_SEPARATOR 851SHELL' 852ac_subst_files='' 853ac_user_opts=' 854enable_option_checking 855enable_silent_rules 856enable_dependency_tracking 857enable_shared 858enable_static 859with_pic 860enable_fast_install 861with_gnu_ld 862with_sysroot 863enable_libtool_lock 864with_threads 865enable_doc 866enable_examples 867enable_poll 868enable_epoll 869enable_socketpair 870enable_curl 871with_libcurl 872enable_spdy 873with_openssl 874enable_largefile 875enable_messages 876enable_postprocessor 877with_libgcrypt_prefix 878with_gnutls 879enable_https 880enable_bauth 881enable_dauth 882enable_coverage 883' 884 ac_precious_vars='build_alias 885host_alias 886target_alias 887CC 888CFLAGS 889LDFLAGS 890LIBS 891CPPFLAGS 892CPP 893PKG_CONFIG 894PKG_CONFIG_PATH 895PKG_CONFIG_LIBDIR 896GNUTLS_CFLAGS 897GNUTLS_LIBS' 898 899 900# Initialize some variables set by options. 901ac_init_help= 902ac_init_version=false 903ac_unrecognized_opts= 904ac_unrecognized_sep= 905# The variables have the same names as the options, with 906# dashes changed to underlines. 907cache_file=/dev/null 908exec_prefix=NONE 909no_create= 910no_recursion= 911prefix=NONE 912program_prefix=NONE 913program_suffix=NONE 914program_transform_name=s,x,x, 915silent= 916site= 917srcdir= 918verbose= 919x_includes=NONE 920x_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.) 928bindir='${exec_prefix}/bin' 929sbindir='${exec_prefix}/sbin' 930libexecdir='${exec_prefix}/libexec' 931datarootdir='${prefix}/share' 932datadir='${datarootdir}' 933sysconfdir='${prefix}/etc' 934sharedstatedir='${prefix}/com' 935localstatedir='${prefix}/var' 936includedir='${prefix}/include' 937oldincludedir='/usr/include' 938docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 939infodir='${datarootdir}/info' 940htmldir='${docdir}' 941dvidir='${docdir}' 942pdfdir='${docdir}' 943psdir='${docdir}' 944libdir='${exec_prefix}/lib' 945localedir='${datarootdir}/locale' 946mandir='${datarootdir}/man' 947 948ac_prev= 949ac_dashdash= 950for ac_option 951do 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' 1284Try \`$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 1306done 1307 1308if test -n "$ac_prev"; then 1309 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1310 as_fn_error $? "missing argument to $ac_option" 1311fi 1312 1313if 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 1319fi 1320 1321# Check all directory arguments for consistency. 1322for 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 1326do 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" 1340done 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. 1345build=$build_alias 1346host=$host_alias 1347target=$target_alias 1348 1349# FIXME: To remove some day. 1350if 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 1356fi 1357 1358ac_tool_prefix= 1359test -n "$host_alias" && ac_tool_prefix=$host_alias- 1360 1361test "$silent" = yes && exec 6>/dev/null 1362 1363 1364ac_pwd=`pwd` && test -n "$ac_pwd" && 1365ac_ls_di=`ls -di .` && 1366ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1367 as_fn_error $? "working directory cannot be determined" 1368test "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. 1373if 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 1403else 1404 ac_srcdir_defaulted=no 1405fi 1406if 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" 1409fi 1410ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1411ac_abs_confdir=`( 1412 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1413 pwd)` 1414# When building in place, set srcdir=. 1415if test "$ac_abs_confdir" = "$ac_pwd"; then 1416 srcdir=. 1417fi 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. 1421case $srcdir in 1422*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1423esac 1424for 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} 1429done 1430 1431# 1432# Report the --help message. 1433# 1434if 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 1440Usage: $0 [OPTION]... [VAR=VALUE]... 1441 1442To assign environment variables (e.g., CC, CFLAGS...), specify them as 1443VAR=VALUE. See below for descriptions of some of the useful variables. 1444 1445Defaults for the options are specified in brackets. 1446 1447Configuration: 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 1458Installation 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 1464By default, \`make install' will install all the files in 1465\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1466an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1467for instance \`--prefix=\$HOME'. 1468 1469For better control, use the options below. 1470 1471Fine 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 1495Program 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 1500System 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 1504fi 1505 1506if 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 1512Optional 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 1544Optional 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 1562Some 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 1580Use these variables to override the choices made by `configure' or to help 1581it to find libraries and programs with nonstandard names/locations. 1582 1583Report bugs to <libmicrohttpd@gnu.org>. 1584_ACEOF 1585ac_status=$? 1586fi 1587 1588if 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 1596case "$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 ;; 1606esac 1607ac_abs_top_builddir=$ac_pwd 1608ac_abs_builddir=$ac_pwd$ac_dir_suffix 1609# for backward compatibility: 1610ac_top_builddir=$ac_top_build_prefix 1611 1612case $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 ;; 1625esac 1626ac_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 1641fi 1642 1643test -n "$ac_init_help" && exit $ac_status 1644if $ac_init_version; then 1645 cat <<\_ACEOF 1646libmicrohttpd configure 0.9.42 1647generated by GNU Autoconf 2.69 1648 1649Copyright (C) 2012 Free Software Foundation, Inc. 1650This configure script is free software; the Free Software Foundation 1651gives unlimited permission to copy, distribute and modify it. 1652_ACEOF 1653 exit 1654fi 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. 1663ac_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" 1668case "(($ac_try" in 1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1670 *) ac_try_echo=$ac_try;; 1671esac 1672eval 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 1687else 1688 $as_echo "$as_me: failed program was:" >&5 1689sed 's/^/| /' conftest.$ac_ext >&5 1690 1691 ac_retval=1 1692fi 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. 1701ac_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" 1706case "(($ac_try" in 1707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1708 *) ac_try_echo=$ac_try;; 1709esac 1710eval 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 1728else 1729 $as_echo "$as_me: failed program was:" >&5 1730sed 's/^/| /' conftest.$ac_ext >&5 1731 1732 ac_retval=1 1733fi 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. 1748ac_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; } 1753if eval \${$3+:} false; then : 1754 $as_echo_n "(cached) " >&6 1755else 1756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1757/* end confdefs.h. */ 1758$4 1759#include <$2> 1760_ACEOF 1761if ac_fn_c_try_compile "$LINENO"; then : 1762 eval "$3=yes" 1763else 1764 eval "$3=no" 1765fi 1766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1767fi 1768eval 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. 1778ac_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" 1782case "(($ac_try" in 1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1784 *) ac_try_echo=$ac_try;; 1785esac 1786eval 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 1801else 1802 $as_echo "$as_me: failed program was:" >&5 1803sed 's/^/| /' conftest.$ac_ext >&5 1804 1805 ac_retval=1 1806fi 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. 1816ac_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" 1820case "(($ac_try" in 1821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1822 *) ac_try_echo=$ac_try;; 1823esac 1824eval 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;; 1833esac 1834eval 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 1841else 1842 $as_echo "$as_me: program exited with status $ac_status" >&5 1843 $as_echo "$as_me: failed program was:" >&5 1844sed 's/^/| /' conftest.$ac_ext >&5 1845 1846 ac_retval=$ac_status 1847fi 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 1857ac_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; } 1862if eval \${$3+:} false; then : 1863 $as_echo_n "(cached) " >&6 1864else 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 1888extern "C" 1889#endif 1890char $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 1895choke me 1896#endif 1897 1898int 1899main () 1900{ 1901return $2 (); 1902 ; 1903 return 0; 1904} 1905_ACEOF 1906if ac_fn_c_try_link "$LINENO"; then : 1907 eval "$3=yes" 1908else 1909 eval "$3=no" 1910fi 1911rm -f core conftest.err conftest.$ac_objext \ 1912 conftest$ac_exeext conftest.$ac_ext 1913fi 1914eval 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. 1926ac_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; } 1932if eval \${$3+:} false; then : 1933 $as_echo_n "(cached) " >&6 1934fi 1935eval ac_res=\$$3 1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1937$as_echo "$ac_res" >&6; } 1938else 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; } 1942cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1943/* end confdefs.h. */ 1944$4 1945#include <$2> 1946_ACEOF 1947if ac_fn_c_try_compile "$LINENO"; then : 1948 ac_header_compiler=yes 1949else 1950 ac_header_compiler=no 1951fi 1952rm -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; } 1959cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1960/* end confdefs.h. */ 1961#include <$2> 1962_ACEOF 1963if ac_fn_c_try_cpp "$LINENO"; then : 1964 ac_header_preproc=yes 1965else 1966 ac_header_preproc=no 1967fi 1968rm -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? 1973case $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@gnu.org ## 1993## ------------------------------------ ##" 1994 ) | sed "s/^/$as_me: WARNING: /" >&2 1995 ;; 1996esac 1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1998$as_echo_n "checking for $2... " >&6; } 1999if eval \${$3+:} false; then : 2000 $as_echo_n "(cached) " >&6 2001else 2002 eval "$3=\$ac_header_compiler" 2003fi 2004eval ac_res=\$$3 2005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2006$as_echo "$ac_res" >&6; } 2007fi 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. 2016ac_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; } 2021if eval \${$4+:} false; then : 2022 $as_echo_n "(cached) " >&6 2023else 2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2025/* end confdefs.h. */ 2026$5 2027int 2028main () 2029{ 2030static $2 ac_aggr; 2031if (ac_aggr.$3) 2032return 0; 2033 ; 2034 return 0; 2035} 2036_ACEOF 2037if ac_fn_c_try_compile "$LINENO"; then : 2038 eval "$4=yes" 2039else 2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2041/* end confdefs.h. */ 2042$5 2043int 2044main () 2045{ 2046static $2 ac_aggr; 2047if (sizeof ac_aggr.$3) 2048return 0; 2049 ; 2050 return 0; 2051} 2052_ACEOF 2053if ac_fn_c_try_compile "$LINENO"; then : 2054 eval "$4=yes" 2055else 2056 eval "$4=no" 2057fi 2058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2059fi 2060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2061fi 2062eval 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. 2073ac_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; } 2080if eval \${$3+:} false; then : 2081 $as_echo_n "(cached) " >&6 2082else 2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2084/* end confdefs.h. */ 2085$4 2086int 2087main () 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 2101if ac_fn_c_try_compile "$LINENO"; then : 2102 eval "$3=yes" 2103else 2104 eval "$3=no" 2105fi 2106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2107fi 2108eval 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 2114cat >config.log <<_ACEOF 2115This file contains any messages produced by compilers while 2116running configure, to aid debugging if configure makes a mistake. 2117 2118It was created by libmicrohttpd $as_me 0.9.42, which was 2119generated by GNU Autoconf 2.69. Invocation command line was 2120 2121 $ $0 $@ 2122 2123_ACEOF 2124exec 5>>config.log 2125{ 2126cat <<_ASUNAME 2127## --------- ## 2128## Platform. ## 2129## --------- ## 2130 2131hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2132uname -m = `(uname -m) 2>/dev/null || echo unknown` 2133uname -r = `(uname -r) 2>/dev/null || echo unknown` 2134uname -s = `(uname -s) 2>/dev/null || echo unknown` 2135uname -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 2150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2151for as_dir in $PATH 2152do 2153 IFS=$as_save_IFS 2154 test -z "$as_dir" && as_dir=. 2155 $as_echo "PATH: $as_dir" 2156 done 2157IFS=$as_save_IFS 2158 2159} >&5 2160 2161cat >&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. 2176ac_configure_args= 2177ac_configure_args0= 2178ac_configure_args1= 2179ac_must_keep_next=false 2180for ac_pass in 1 2 2181do 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 2215done 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. 2224trap '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 2311for ac_signal in 1 2 13 15; do 2312 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2313done 2314ac_signal=0 2315 2316# confdefs.h avoids OS command line length limits that DEFS can exceed. 2317rm -f -r conftest* confdefs.h 2318 2319$as_echo "/* confdefs.h */" > confdefs.h 2320 2321# Predefined preprocessor variables. 2322 2323cat >>confdefs.h <<_ACEOF 2324#define PACKAGE_NAME "$PACKAGE_NAME" 2325_ACEOF 2326 2327cat >>confdefs.h <<_ACEOF 2328#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2329_ACEOF 2330 2331cat >>confdefs.h <<_ACEOF 2332#define PACKAGE_VERSION "$PACKAGE_VERSION" 2333_ACEOF 2334 2335cat >>confdefs.h <<_ACEOF 2336#define PACKAGE_STRING "$PACKAGE_STRING" 2337_ACEOF 2338 2339cat >>confdefs.h <<_ACEOF 2340#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2341_ACEOF 2342 2343cat >>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. 2350ac_site_file1=NONE 2351ac_site_file2=NONE 2352if 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 2359elif test "x$prefix" != xNONE; then 2360 ac_site_file1=$prefix/share/config.site 2361 ac_site_file2=$prefix/etc/config.site 2362else 2363 ac_site_file1=$ac_default_prefix/share/config.site 2364 ac_site_file2=$ac_default_prefix/etc/config.site 2365fi 2366for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2367do 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;} 2376as_fn_error $? "failed to load site script $ac_site_file 2377See \`config.log' for more details" "$LINENO" 5; } 2378 fi 2379done 2380 2381if 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 2392else 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 2396fi 2397 2398as_fn_append ac_func_list " memmem" 2399as_fn_append ac_func_list " accept4" 2400# Check that the precious variables saved in the cache have kept the same 2401# value. 2402ac_cache_corrupted=false 2403for 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 2449done 2450if $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 2456fi 2457## -------------------- ## 2458## Main body of script. ## 2459## -------------------- ## 2460 2461ac_ext=c 2462ac_cpp='$CPP $CPPFLAGS' 2463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2465ac_compiler_gnu=$ac_cv_c_compiler_gnu 2466 2467 2468am__api_version='1.14' 2469 2470ac_aux_dir= 2471for 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 2485done 2486if test -z "$ac_aux_dir"; then 2487 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2488fi 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. 2494ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2495ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2496ac_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; } 2515if test -z "$INSTALL"; then 2516if ${ac_cv_path_install+:} false; then : 2517 $as_echo_n "(cached) " >&6 2518else 2519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2520for as_dir in $PATH 2521do 2522 IFS=$as_save_IFS 2523 test -z "$as_dir" && as_dir=. 2524 # Account for people who put trailing slashes in PATH elements. 2525case $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 ;; 2563esac 2564 2565 done 2566IFS=$as_save_IFS 2567 2568rm -rf conftest.one conftest.two conftest.dir 2569 2570fi 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 2580fi 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. 2586test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2587 2588test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2589 2590test -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. 2596am_lf=' 2597' 2598case `pwd` in 2599 *[\\\"\#\$\&\'\`$am_lf]*) 2600 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2601esac 2602case $srcdir in 2603 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2604 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2605esac 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). 2612if ( 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 ) 2640then 2641 # Ok. 2642 : 2643else 2644 as_fn_error $? "newly created file is older than distributed files! 2645Check your system clock" "$LINENO" 5 2646fi 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. 2651am_sleep_pid= 2652if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2653 ( sleep 1 ) & 2654 am_sleep_pid=$! 2655fi 2656 2657rm -f conftest.file 2658 2659test "$program_prefix" != NONE && 2660 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2661# Use a double $ so make ignores it. 2662test "$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. 2666ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2667program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2668 2669# Expand $ac_aux_dir to an absolute path. 2670am_aux_dir=`cd "$ac_aux_dir" && pwd` 2671 2672if 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 2679fi 2680# Use eval to expand $SHELL 2681if eval "$MISSING --is-lightweight"; then 2682 am_missing_run="$MISSING " 2683else 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;} 2687fi 2688 2689if 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 2696fi 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. 2702if 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. 2705set 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; } 2708if ${ac_cv_prog_STRIP+:} false; then : 2709 $as_echo_n "(cached) " >&6 2710else 2711 if test -n "$STRIP"; then 2712 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2713else 2714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2715for as_dir in $PATH 2716do 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 2725done 2726 done 2727IFS=$as_save_IFS 2728 2729fi 2730fi 2731STRIP=$ac_cv_prog_STRIP 2732if test -n "$STRIP"; then 2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2734$as_echo "$STRIP" >&6; } 2735else 2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2737$as_echo "no" >&6; } 2738fi 2739 2740 2741fi 2742if 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. 2745set 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; } 2748if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2749 $as_echo_n "(cached) " >&6 2750else 2751 if test -n "$ac_ct_STRIP"; then 2752 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2753else 2754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2755for as_dir in $PATH 2756do 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 2765done 2766 done 2767IFS=$as_save_IFS 2768 2769fi 2770fi 2771ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2772if 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; } 2775else 2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2777$as_echo "no" >&6; } 2778fi 2779 2780 if test "x$ac_ct_STRIP" = x; then 2781 STRIP=":" 2782 else 2783 case $cross_compiling:$ac_tool_warned in 2784yes:) 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;} 2787ac_tool_warned=yes ;; 2788esac 2789 STRIP=$ac_ct_STRIP 2790 fi 2791else 2792 STRIP="$ac_cv_prog_STRIP" 2793fi 2794 2795fi 2796INSTALL_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; } 2800if test -z "$MKDIR_P"; then 2801 if ${ac_cv_path_mkdir+:} false; then : 2802 $as_echo_n "(cached) " >&6 2803else 2804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2805for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2806do 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 2822IFS=$as_save_IFS 2823 2824fi 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 2836fi 2837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2838$as_echo "$MKDIR_P" >&6; } 2839 2840for ac_prog in gawk mawk nawk awk 2841do 2842 # Extract the first word of "$ac_prog", so it can be a program name with args. 2843set 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; } 2846if ${ac_cv_prog_AWK+:} false; then : 2847 $as_echo_n "(cached) " >&6 2848else 2849 if test -n "$AWK"; then 2850 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2851else 2852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2853for as_dir in $PATH 2854do 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 2863done 2864 done 2865IFS=$as_save_IFS 2866 2867fi 2868fi 2869AWK=$ac_cv_prog_AWK 2870if test -n "$AWK"; then 2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2872$as_echo "$AWK" >&6; } 2873else 2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2875$as_echo "no" >&6; } 2876fi 2877 2878 2879 test -n "$AWK" && break 2880done 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; } 2884set x ${MAKE-make} 2885ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2886if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2887 $as_echo_n "(cached) " >&6 2888else 2889 cat >conftest.make <<\_ACEOF 2890SHELL = /bin/sh 2891all: 2892 @echo '@@@%%%=$(MAKE)=@@@%%%' 2893_ACEOF 2894# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2895case `${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;; 2900esac 2901rm -f conftest.make 2902fi 2903if 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= 2907else 2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2909$as_echo "no" >&6; } 2910 SET_MAKE="MAKE=${MAKE-make}" 2911fi 2912 2913rm -rf .tst 2>/dev/null 2914mkdir .tst 2>/dev/null 2915if test -d .tst; then 2916 am__leading_dot=. 2917else 2918 am__leading_dot=_ 2919fi 2920rmdir .tst 2>/dev/null 2921 2922# Check whether --enable-silent-rules was given. 2923if test "${enable_silent_rules+set}" = set; then : 2924 enableval=$enable_silent_rules; 2925fi 2926 2927case $enable_silent_rules in # ((( 2928 yes) AM_DEFAULT_VERBOSITY=0;; 2929 no) AM_DEFAULT_VERBOSITY=1;; 2930 *) AM_DEFAULT_VERBOSITY=1;; 2931esac 2932am_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; } 2935if ${am_cv_make_support_nested_variables+:} false; then : 2936 $as_echo_n "(cached) " >&6 2937else 2938 if $as_echo 'TRUE=$(BAR$(V)) 2939BAR0=false 2940BAR1=true 2941V=1 2942am__doit: 2943 @$(TRUE) 2944.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2945 am_cv_make_support_nested_variables=yes 2946else 2947 am_cv_make_support_nested_variables=no 2948fi 2949fi 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; } 2952if test $am_cv_make_support_nested_variables = yes; then 2953 AM_V='$(V)' 2954 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2955else 2956 AM_V=$AM_DEFAULT_VERBOSITY 2957 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2958fi 2959AM_BACKSLASH='\' 2960 2961if 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 2969fi 2970 2971# test whether we have cygpath 2972if 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 2978fi 2979 2980 2981# Define the identity of the package. 2982 PACKAGE='libmicrohttpd' 2983 VERSION='0.9.42' 2984 2985 2986cat >>confdefs.h <<_ACEOF 2987#define PACKAGE "$PACKAGE" 2988_ACEOF 2989 2990 2991cat >>confdefs.h <<_ACEOF 2992#define VERSION "$VERSION" 2993_ACEOF 2994 2995# Some tools Automake needs. 2996 2997ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2998 2999 3000AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3001 3002 3003AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3004 3005 3006AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3007 3008 3009MAKEINFO=${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> 3015mkdir_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 ... 3021AMTAR='$${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 3027am__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. 3042if rm -f && rm -fr && rm -rf; then : OK; else 3043 cat >&2 <<'END' 3044Oops! 3045 3046Your 'rm' program seems unable to run without file operands specified 3047on the command line, even when the '-f' option is present. This is contrary 3048to the behaviour of most rm programs out there, and not conforming with 3049the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3050 3051Please tell bug-automake@gnu.org about your system, including the value 3052of your $PATH and any error possibly output before this message. This 3053can help us improve future automake versions. 3054 3055END 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' 3062Aborting the configuration process, to ensure you take notice of the issue. 3063 3064You can download and install GNU coreutils to get an 'rm' implementation 3065that behaves properly: <http://www.gnu.org/software/coreutils/>. 3066 3067If you want to complete the configuration process using your problematic 3068'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3069to "yes", and re-run configure. 3070 3071END 3072 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3073 fi 3074fi 3075 3076ac_config_headers="$ac_config_headers MHD_config.h" 3077 3078 3079 3080 3081LIB_VERSION_CURRENT=42 3082LIB_VERSION_REVISION=0 3083LIB_VERSION_AGE=32 3084 3085 3086 3087 3088LIBSPDY_VERSION_CURRENT=0 3089LIBSPDY_VERSION_REVISION=0 3090LIBSPDY_VERSION_AGE=0 3091 3092 3093 3094 3095 3096if test `uname -s` = "OS/390" 3097then 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 3114fi 3115 3116# Checks for programs. 3117for ac_prog in gawk mawk nawk awk 3118do 3119 # Extract the first word of "$ac_prog", so it can be a program name with args. 3120set 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; } 3123if ${ac_cv_prog_AWK+:} false; then : 3124 $as_echo_n "(cached) " >&6 3125else 3126 if test -n "$AWK"; then 3127 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3128else 3129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3130for as_dir in $PATH 3131do 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 3140done 3141 done 3142IFS=$as_save_IFS 3143 3144fi 3145fi 3146AWK=$ac_cv_prog_AWK 3147if test -n "$AWK"; then 3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3149$as_echo "$AWK" >&6; } 3150else 3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3152$as_echo "no" >&6; } 3153fi 3154 3155 3156 test -n "$AWK" && break 3157done 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; } 3162LN_S=$as_ln_s 3163if test "$LN_S" = "ln -s"; then 3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3165$as_echo "yes" >&6; } 3166else 3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 3168$as_echo "no, using $LN_S" >&6; } 3169fi 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; } 3173set x ${MAKE-make} 3174ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3175if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3176 $as_echo_n "(cached) " >&6 3177else 3178 cat >conftest.make <<\_ACEOF 3179SHELL = /bin/sh 3180all: 3181 @echo '@@@%%%=$(MAKE)=@@@%%%' 3182_ACEOF 3183# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3184case `${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;; 3189esac 3190rm -f conftest.make 3191fi 3192if 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= 3196else 3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3198$as_echo "no" >&6; } 3199 SET_MAKE="MAKE=${MAKE-make}" 3200fi 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; } 3208if ${ac_cv_build+:} false; then : 3209 $as_echo_n "(cached) " >&6 3210else 3211 ac_build_alias=$build_alias 3212test "x$ac_build_alias" = x && 3213 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3214test "x$ac_build_alias" = x && 3215 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3216ac_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 3219fi 3220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3221$as_echo "$ac_cv_build" >&6; } 3222case $ac_cv_build in 3223*-*-*) ;; 3224*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3225esac 3226build=$ac_cv_build 3227ac_save_IFS=$IFS; IFS='-' 3228set x $ac_cv_build 3229shift 3230build_cpu=$1 3231build_vendor=$2 3232shift; shift 3233# Remember, the first character of IFS is used to create $*, 3234# except with old shells: 3235build_os=$* 3236IFS=$ac_save_IFS 3237case $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; } 3242if ${ac_cv_host+:} false; then : 3243 $as_echo_n "(cached) " >&6 3244else 3245 if test "x$host_alias" = x; then 3246 ac_cv_host=$ac_cv_build 3247else 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 3250fi 3251 3252fi 3253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3254$as_echo "$ac_cv_host" >&6; } 3255case $ac_cv_host in 3256*-*-*) ;; 3257*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3258esac 3259host=$ac_cv_host 3260ac_save_IFS=$IFS; IFS='-' 3261set x $ac_cv_host 3262shift 3263host_cpu=$1 3264host_vendor=$2 3265shift; shift 3266# Remember, the first character of IFS is used to create $*, 3267# except with old shells: 3268host_os=$* 3269IFS=$ac_save_IFS 3270case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3271 3272 3273DEPDIR="${am__leading_dot}deps" 3274 3275ac_config_commands="$ac_config_commands depfiles" 3276 3277 3278am_make=${MAKE-make} 3279cat > confinc << 'END' 3280am__doit: 3281 @echo this is the am__doit target 3282.PHONY: am__doit 3283END 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; } 3287am__include="#" 3288am__quote= 3289_am_result=none 3290# First try GNU make style include. 3291echo "include confinc" > confmf 3292# Ignore all kinds of additional output from 'make'. 3293case `$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 ;; 3299esac 3300# Now try BSD make style include. 3301if 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 3310fi 3311 3312 3313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3314$as_echo "$_am_result" >&6; } 3315rm -f confinc confmf 3316 3317# Check whether --enable-dependency-tracking was given. 3318if test "${enable_dependency_tracking+set}" = set; then : 3319 enableval=$enable_dependency_tracking; 3320fi 3321 3322if test "x$enable_dependency_tracking" != xno; then 3323 am_depcomp="$ac_aux_dir/depcomp" 3324 AMDEPBACKSLASH='\' 3325 am__nodep='_no' 3326fi 3327 if test "x$enable_dependency_tracking" != xno; then 3328 AMDEP_TRUE= 3329 AMDEP_FALSE='#' 3330else 3331 AMDEP_TRUE='#' 3332 AMDEP_FALSE= 3333fi 3334 3335 3336ac_ext=c 3337ac_cpp='$CPP $CPPFLAGS' 3338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3340ac_compiler_gnu=$ac_cv_c_compiler_gnu 3341if 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. 3343set 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; } 3346if ${ac_cv_prog_CC+:} false; then : 3347 $as_echo_n "(cached) " >&6 3348else 3349 if test -n "$CC"; then 3350 ac_cv_prog_CC="$CC" # Let the user override the test. 3351else 3352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3353for as_dir in $PATH 3354do 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 3363done 3364 done 3365IFS=$as_save_IFS 3366 3367fi 3368fi 3369CC=$ac_cv_prog_CC 3370if test -n "$CC"; then 3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3372$as_echo "$CC" >&6; } 3373else 3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3375$as_echo "no" >&6; } 3376fi 3377 3378 3379fi 3380if 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. 3383set 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; } 3386if ${ac_cv_prog_ac_ct_CC+:} false; then : 3387 $as_echo_n "(cached) " >&6 3388else 3389 if test -n "$ac_ct_CC"; then 3390 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3391else 3392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3393for as_dir in $PATH 3394do 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 3403done 3404 done 3405IFS=$as_save_IFS 3406 3407fi 3408fi 3409ac_ct_CC=$ac_cv_prog_ac_ct_CC 3410if 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; } 3413else 3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3415$as_echo "no" >&6; } 3416fi 3417 3418 if test "x$ac_ct_CC" = x; then 3419 CC="" 3420 else 3421 case $cross_compiling:$ac_tool_warned in 3422yes:) 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;} 3425ac_tool_warned=yes ;; 3426esac 3427 CC=$ac_ct_CC 3428 fi 3429else 3430 CC="$ac_cv_prog_CC" 3431fi 3432 3433if 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. 3436set 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; } 3439if ${ac_cv_prog_CC+:} false; then : 3440 $as_echo_n "(cached) " >&6 3441else 3442 if test -n "$CC"; then 3443 ac_cv_prog_CC="$CC" # Let the user override the test. 3444else 3445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3446for as_dir in $PATH 3447do 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 3456done 3457 done 3458IFS=$as_save_IFS 3459 3460fi 3461fi 3462CC=$ac_cv_prog_CC 3463if test -n "$CC"; then 3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3465$as_echo "$CC" >&6; } 3466else 3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3468$as_echo "no" >&6; } 3469fi 3470 3471 3472 fi 3473fi 3474if test -z "$CC"; then 3475 # Extract the first word of "cc", so it can be a program name with args. 3476set 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; } 3479if ${ac_cv_prog_CC+:} false; then : 3480 $as_echo_n "(cached) " >&6 3481else 3482 if test -n "$CC"; then 3483 ac_cv_prog_CC="$CC" # Let the user override the test. 3484else 3485 ac_prog_rejected=no 3486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3487for as_dir in $PATH 3488do 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 3501done 3502 done 3503IFS=$as_save_IFS 3504 3505if 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 3516fi 3517fi 3518fi 3519CC=$ac_cv_prog_CC 3520if test -n "$CC"; then 3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3522$as_echo "$CC" >&6; } 3523else 3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3525$as_echo "no" >&6; } 3526fi 3527 3528 3529fi 3530if 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. 3535set 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; } 3538if ${ac_cv_prog_CC+:} false; then : 3539 $as_echo_n "(cached) " >&6 3540else 3541 if test -n "$CC"; then 3542 ac_cv_prog_CC="$CC" # Let the user override the test. 3543else 3544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3545for as_dir in $PATH 3546do 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 3555done 3556 done 3557IFS=$as_save_IFS 3558 3559fi 3560fi 3561CC=$ac_cv_prog_CC 3562if test -n "$CC"; then 3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3564$as_echo "$CC" >&6; } 3565else 3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3567$as_echo "no" >&6; } 3568fi 3569 3570 3571 test -n "$CC" && break 3572 done 3573fi 3574if test -z "$CC"; then 3575 ac_ct_CC=$CC 3576 for ac_prog in cl.exe 3577do 3578 # Extract the first word of "$ac_prog", so it can be a program name with args. 3579set 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; } 3582if ${ac_cv_prog_ac_ct_CC+:} false; then : 3583 $as_echo_n "(cached) " >&6 3584else 3585 if test -n "$ac_ct_CC"; then 3586 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3587else 3588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3589for as_dir in $PATH 3590do 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 3599done 3600 done 3601IFS=$as_save_IFS 3602 3603fi 3604fi 3605ac_ct_CC=$ac_cv_prog_ac_ct_CC 3606if 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; } 3609else 3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3611$as_echo "no" >&6; } 3612fi 3613 3614 3615 test -n "$ac_ct_CC" && break 3616done 3617 3618 if test "x$ac_ct_CC" = x; then 3619 CC="" 3620 else 3621 case $cross_compiling:$ac_tool_warned in 3622yes:) 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;} 3625ac_tool_warned=yes ;; 3626esac 3627 CC=$ac_ct_CC 3628 fi 3629fi 3630 3631fi 3632 3633 3634test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3635$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3636as_fn_error $? "no acceptable C compiler found in \$PATH 3637See \`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 3641set X $ac_compile 3642ac_compiler=$2 3643for ac_option in --version -v -V -qversion; do 3644 { { ac_try="$ac_compiler $ac_option >&5" 3645case "(($ac_try" in 3646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3647 *) ac_try_echo=$ac_try;; 3648esac 3649eval 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; } 3662done 3663 3664cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3665/* end confdefs.h. */ 3666 3667int 3668main () 3669{ 3670 3671 ; 3672 return 0; 3673} 3674_ACEOF 3675ac_clean_files_save=$ac_clean_files 3676ac_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; } 3682ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3683 3684# The possible output files: 3685ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3686 3687ac_rmfiles= 3688for ac_file in $ac_files 3689do 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 3694done 3695rm -f $ac_rmfiles 3696 3697if { { ac_try="$ac_link_default" 3698case "(($ac_try" in 3699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3700 *) ac_try_echo=$ac_try;; 3701esac 3702eval 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. 3713for ac_file in $ac_files '' 3714do 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 3737done 3738test "$ac_cv_exeext" = no && ac_cv_exeext= 3739 3740else 3741 ac_file='' 3742fi 3743if 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 3747sed '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;} 3751as_fn_error 77 "C compiler cannot create executables 3752See \`config.log' for more details" "$LINENO" 5; } 3753else 3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3755$as_echo "yes" >&6; } 3756fi 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; } 3761ac_exeext=$ac_cv_exeext 3762 3763rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3764ac_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; } 3767if { { ac_try="$ac_link" 3768case "(($ac_try" in 3769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3770 *) ac_try_echo=$ac_try;; 3771esac 3772eval 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'. 3782for 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 3790done 3791else 3792 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3793$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3794as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3795See \`config.log' for more details" "$LINENO" 5; } 3796fi 3797rm -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 3801rm -f conftest.$ac_ext 3802EXEEXT=$ac_cv_exeext 3803ac_exeext=$EXEEXT 3804cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3805/* end confdefs.h. */ 3806#include <stdio.h> 3807int 3808main () 3809{ 3810FILE *f = fopen ("conftest.out", "w"); 3811 return ferror (f) || fclose (f) != 0; 3812 3813 ; 3814 return 0; 3815} 3816_ACEOF 3817ac_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; } 3822if test "$cross_compiling" != yes; then 3823 { { ac_try="$ac_link" 3824case "(($ac_try" in 3825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3826 *) ac_try_echo=$ac_try;; 3827esac 3828eval 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;; 3838esac 3839eval 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;} 3852as_fn_error $? "cannot run C compiled programs. 3853If you meant to cross compile, use \`--host'. 3854See \`config.log' for more details" "$LINENO" 5; } 3855 fi 3856 fi 3857fi 3858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3859$as_echo "$cross_compiling" >&6; } 3860 3861rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3862ac_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; } 3865if ${ac_cv_objext+:} false; then : 3866 $as_echo_n "(cached) " >&6 3867else 3868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3869/* end confdefs.h. */ 3870 3871int 3872main () 3873{ 3874 3875 ; 3876 return 0; 3877} 3878_ACEOF 3879rm -f conftest.o conftest.obj 3880if { { ac_try="$ac_compile" 3881case "(($ac_try" in 3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3883 *) ac_try_echo=$ac_try;; 3884esac 3885eval 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 3898done 3899else 3900 $as_echo "$as_me: failed program was:" >&5 3901sed '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;} 3905as_fn_error $? "cannot compute suffix of object files: cannot compile 3906See \`config.log' for more details" "$LINENO" 5; } 3907fi 3908rm -f conftest.$ac_cv_objext conftest.$ac_ext 3909fi 3910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3911$as_echo "$ac_cv_objext" >&6; } 3912OBJEXT=$ac_cv_objext 3913ac_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; } 3916if ${ac_cv_c_compiler_gnu+:} false; then : 3917 $as_echo_n "(cached) " >&6 3918else 3919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3920/* end confdefs.h. */ 3921 3922int 3923main () 3924{ 3925#ifndef __GNUC__ 3926 choke me 3927#endif 3928 3929 ; 3930 return 0; 3931} 3932_ACEOF 3933if ac_fn_c_try_compile "$LINENO"; then : 3934 ac_compiler_gnu=yes 3935else 3936 ac_compiler_gnu=no 3937fi 3938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3939ac_cv_c_compiler_gnu=$ac_compiler_gnu 3940 3941fi 3942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3943$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3944if test $ac_compiler_gnu = yes; then 3945 GCC=yes 3946else 3947 GCC= 3948fi 3949ac_test_CFLAGS=${CFLAGS+set} 3950ac_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; } 3953if ${ac_cv_prog_cc_g+:} false; then : 3954 $as_echo_n "(cached) " >&6 3955else 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 3963int 3964main () 3965{ 3966 3967 ; 3968 return 0; 3969} 3970_ACEOF 3971if ac_fn_c_try_compile "$LINENO"; then : 3972 ac_cv_prog_cc_g=yes 3973else 3974 CFLAGS="" 3975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3976/* end confdefs.h. */ 3977 3978int 3979main () 3980{ 3981 3982 ; 3983 return 0; 3984} 3985_ACEOF 3986if ac_fn_c_try_compile "$LINENO"; then : 3987 3988else 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 3994int 3995main () 3996{ 3997 3998 ; 3999 return 0; 4000} 4001_ACEOF 4002if ac_fn_c_try_compile "$LINENO"; then : 4003 ac_cv_prog_cc_g=yes 4004fi 4005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4006fi 4007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4008fi 4009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4010 ac_c_werror_flag=$ac_save_c_werror_flag 4011fi 4012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4013$as_echo "$ac_cv_prog_cc_g" >&6; } 4014if test "$ac_test_CFLAGS" = set; then 4015 CFLAGS=$ac_save_CFLAGS 4016elif 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 4022else 4023 if test "$GCC" = yes; then 4024 CFLAGS="-O2" 4025 else 4026 CFLAGS= 4027 fi 4028fi 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; } 4031if ${ac_cv_prog_cc_c89+:} false; then : 4032 $as_echo_n "(cached) " >&6 4033else 4034 ac_cv_prog_cc_c89=no 4035ac_save_CC=$CC 4036cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4037/* end confdefs.h. */ 4038#include <stdarg.h> 4039#include <stdio.h> 4040struct stat; 4041/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4042struct buf { int x; }; 4043FILE * (*rcsopen) (struct buf *, struct stat *, int); 4044static char *e (p, i) 4045 char **p; 4046 int i; 4047{ 4048 return p[i]; 4049} 4050static 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. */ 4067int 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' 4072int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4073 4074int test (int i, double x); 4075struct s1 {int (*f) (int a);}; 4076struct s2 {int (*f) (double a);}; 4077int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4078int argc; 4079char **argv; 4080int 4081main () 4082{ 4083return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4084 ; 4085 return 0; 4086} 4087_ACEOF 4088for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4089 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4090do 4091 CC="$ac_save_CC $ac_arg" 4092 if ac_fn_c_try_compile "$LINENO"; then : 4093 ac_cv_prog_cc_c89=$ac_arg 4094fi 4095rm -f core conftest.err conftest.$ac_objext 4096 test "x$ac_cv_prog_cc_c89" != "xno" && break 4097done 4098rm -f conftest.$ac_ext 4099CC=$ac_save_CC 4100 4101fi 4102# AC_CACHE_VAL 4103case "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; } ;; 4114esac 4115if test "x$ac_cv_prog_cc_c89" != xno; then : 4116 4117fi 4118 4119ac_ext=c 4120ac_cpp='$CPP $CPPFLAGS' 4121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4123ac_compiler_gnu=$ac_cv_c_compiler_gnu 4124 4125ac_ext=c 4126ac_cpp='$CPP $CPPFLAGS' 4127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4129ac_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; } 4132if ${am_cv_prog_cc_c_o+:} false; then : 4133 $as_echo_n "(cached) " >&6 4134else 4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4136/* end confdefs.h. */ 4137 4138int 4139main () 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 4166fi 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; } 4169if 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" 4176fi 4177ac_ext=c 4178ac_cpp='$CPP $CPPFLAGS' 4179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4181ac_compiler_gnu=$ac_cv_c_compiler_gnu 4182 4183 4184depcc="$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; } 4188if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4189 $as_echo_n "(cached) " >&6 4190else 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 4292else 4293 am_cv_CC_dependencies_compiler_type=none 4294fi 4295 4296fi 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; } 4299CCDEPMODE=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='#' 4306else 4307 am__fastdepCC_TRUE='#' 4308 am__fastdepCC_FALSE= 4309fi 4310 4311 4312 4313case `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;} ;; 4317esac 4318 4319 4320 4321macro_version='2.4.2' 4322macro_revision='1.3337' 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336ltmain="$ac_aux_dir/ltmain.sh" 4337 4338# Backslashify metacharacters that are still active within 4339# double-quoted strings. 4340sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4341 4342# Same as above, but do not quote variable references. 4343double_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. 4347delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4348 4349# Sed substitution to delay expansion of an escaped single quote. 4350delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4351 4352# Sed substitution to avoid accidental globbing in evaled expressions 4353no_glob_subst='s/\*/\\\*/g' 4354 4355ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4356ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4357ECHO=$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. 4362if 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 --' 4365elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4366 ECHO='printf %s\n' 4367else 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' 4376fi 4377 4378# func_echo_all arg... 4379# Invoke $ECHO with all args, space-separated. 4380func_echo_all () 4381{ 4382 $ECHO "" 4383} 4384 4385case "$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; } ;; 4392esac 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; } 4409if ${ac_cv_path_SED+:} false; then : 4410 $as_echo_n "(cached) " >&6 4411else 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 4422for as_dir in $PATH 4423do 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 4432case `"$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;; 4456esac 4457 4458 $ac_path_SED_found && break 3 4459 done 4460 done 4461 done 4462IFS=$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 4466else 4467 ac_cv_path_SED=$SED 4468fi 4469 4470fi 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 4476test -z "$SED" && SED=sed 4477Xsed="$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; } 4491if ${ac_cv_path_GREP+:} false; then : 4492 $as_echo_n "(cached) " >&6 4493else 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 4498for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4499do 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 4508case `"$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;; 4532esac 4533 4534 $ac_path_GREP_found && break 3 4535 done 4536 done 4537 done 4538IFS=$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 4542else 4543 ac_cv_path_GREP=$GREP 4544fi 4545 4546fi 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; } 4554if ${ac_cv_path_EGREP+:} false; then : 4555 $as_echo_n "(cached) " >&6 4556else 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 4564for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4565do 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 4574case `"$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;; 4598esac 4599 4600 $ac_path_EGREP_found && break 3 4601 done 4602 done 4603 done 4604IFS=$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 4608else 4609 ac_cv_path_EGREP=$EGREP 4610fi 4611 4612 fi 4613fi 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; } 4621if ${ac_cv_path_FGREP+:} false; then : 4622 $as_echo_n "(cached) " >&6 4623else 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 4631for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4632do 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 4641case `"$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;; 4665esac 4666 4667 $ac_path_FGREP_found && break 3 4668 done 4669 done 4670 done 4671IFS=$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 4675else 4676 ac_cv_path_FGREP=$FGREP 4677fi 4678 4679 fi 4680fi 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 4686test -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. 4707if test "${with_gnu_ld+set}" = set; then : 4708 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4709else 4710 with_gnu_ld=no 4711fi 4712 4713ac_prog=ld 4714if 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 4745elif 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; } 4748else 4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4750$as_echo_n "checking for non-GNU ld... " >&6; } 4751fi 4752if ${lt_cv_path_LD+:} false; then : 4753 $as_echo_n "(cached) " >&6 4754else 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" 4776else 4777 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4778fi 4779fi 4780 4781LD="$lt_cv_path_LD" 4782if test -n "$LD"; then 4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4784$as_echo "$LD" >&6; } 4785else 4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4787$as_echo "no" >&6; } 4788fi 4789test -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; } 4792if ${lt_cv_prog_gnu_ld+:} false; then : 4793 $as_echo_n "(cached) " >&6 4794else 4795 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4796case `$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 ;; 4803esac 4804fi 4805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4806$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4807with_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; } 4819if ${lt_cv_path_NM+:} false; then : 4820 $as_echo_n "(cached) " >&6 4821else 4822 if test -n "$NM"; then 4823 # Let the user override the test. 4824 lt_cv_path_NM="$NM" 4825else 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} 4864fi 4865fi 4866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4867$as_echo "$lt_cv_path_NM" >&6; } 4868if test "$lt_cv_path_NM" != "no"; then 4869 NM="$lt_cv_path_NM" 4870else 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. 4879set 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; } 4882if ${ac_cv_prog_DUMPBIN+:} false; then : 4883 $as_echo_n "(cached) " >&6 4884else 4885 if test -n "$DUMPBIN"; then 4886 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4887else 4888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4889for as_dir in $PATH 4890do 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 4899done 4900 done 4901IFS=$as_save_IFS 4902 4903fi 4904fi 4905DUMPBIN=$ac_cv_prog_DUMPBIN 4906if test -n "$DUMPBIN"; then 4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4908$as_echo "$DUMPBIN" >&6; } 4909else 4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4911$as_echo "no" >&6; } 4912fi 4913 4914 4915 test -n "$DUMPBIN" && break 4916 done 4917fi 4918if test -z "$DUMPBIN"; then 4919 ac_ct_DUMPBIN=$DUMPBIN 4920 for ac_prog in dumpbin "link -dump" 4921do 4922 # Extract the first word of "$ac_prog", so it can be a program name with args. 4923set 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; } 4926if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4927 $as_echo_n "(cached) " >&6 4928else 4929 if test -n "$ac_ct_DUMPBIN"; then 4930 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4931else 4932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4933for as_dir in $PATH 4934do 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 4943done 4944 done 4945IFS=$as_save_IFS 4946 4947fi 4948fi 4949ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4950if 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; } 4953else 4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4955$as_echo "no" >&6; } 4956fi 4957 4958 4959 test -n "$ac_ct_DUMPBIN" && break 4960done 4961 4962 if test "x$ac_ct_DUMPBIN" = x; then 4963 DUMPBIN=":" 4964 else 4965 case $cross_compiling:$ac_tool_warned in 4966yes:) 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;} 4969ac_tool_warned=yes ;; 4970esac 4971 DUMPBIN=$ac_ct_DUMPBIN 4972 fi 4973fi 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 4988fi 4989test -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; } 4998if ${lt_cv_nm_interface+:} false; then : 4999 $as_echo_n "(cached) " >&6 5000else 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* 5015fi 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; } 5022if ${lt_cv_sys_max_cmd_len+:} false; then : 5023 $as_echo_n "(cached) " >&6 5024else 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 5148fi 5149 5150if 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; } 5153else 5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5155$as_echo "none" >&6; } 5156fi 5157max_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 5171xsi_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; } 5184lt_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 5192if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5193 lt_unset=unset 5194else 5195 lt_unset=false 5196fi 5197 5198 5199 5200 5201 5202# test EBCDIC or ASCII 5203case `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 ;; 5213esac 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; } 5225if ${lt_cv_to_host_file_cmd+:} false; then : 5226 $as_echo_n "(cached) " >&6 5227else 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 ;; 5258esac 5259 5260fi 5261 5262to_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; } 5272if ${lt_cv_to_tool_file_cmd+:} false; then : 5273 $as_echo_n "(cached) " >&6 5274else 5275 #assume ordinary cross tools, or native build. 5276lt_cv_to_tool_file_cmd=func_convert_file_noop 5277case $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 ;; 5285esac 5286 5287fi 5288 5289to_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; } 5299if ${lt_cv_ld_reload_flag+:} false; then : 5300 $as_echo_n "(cached) " >&6 5301else 5302 lt_cv_ld_reload_flag='-r' 5303fi 5304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5305$as_echo "$lt_cv_ld_reload_flag" >&6; } 5306reload_flag=$lt_cv_ld_reload_flag 5307case $reload_flag in 5308"" | " "*) ;; 5309*) reload_flag=" $reload_flag" ;; 5310esac 5311reload_cmds='$LD$reload_flag -o $output$reload_objs' 5312case $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 ;; 5325esac 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335if 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. 5337set 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; } 5340if ${ac_cv_prog_OBJDUMP+:} false; then : 5341 $as_echo_n "(cached) " >&6 5342else 5343 if test -n "$OBJDUMP"; then 5344 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5345else 5346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5347for as_dir in $PATH 5348do 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 5357done 5358 done 5359IFS=$as_save_IFS 5360 5361fi 5362fi 5363OBJDUMP=$ac_cv_prog_OBJDUMP 5364if test -n "$OBJDUMP"; then 5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5366$as_echo "$OBJDUMP" >&6; } 5367else 5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5369$as_echo "no" >&6; } 5370fi 5371 5372 5373fi 5374if 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. 5377set 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; } 5380if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5381 $as_echo_n "(cached) " >&6 5382else 5383 if test -n "$ac_ct_OBJDUMP"; then 5384 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5385else 5386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5387for as_dir in $PATH 5388do 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 5397done 5398 done 5399IFS=$as_save_IFS 5400 5401fi 5402fi 5403ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5404if 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; } 5407else 5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5409$as_echo "no" >&6; } 5410fi 5411 5412 if test "x$ac_ct_OBJDUMP" = x; then 5413 OBJDUMP="false" 5414 else 5415 case $cross_compiling:$ac_tool_warned in 5416yes:) 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;} 5419ac_tool_warned=yes ;; 5420esac 5421 OBJDUMP=$ac_ct_OBJDUMP 5422 fi 5423else 5424 OBJDUMP="$ac_cv_prog_OBJDUMP" 5425fi 5426 5427test -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; } 5436if ${lt_cv_deplibs_check_method+:} false; then : 5437 $as_echo_n "(cached) " >&6 5438else 5439 lt_cv_file_magic_cmd='$MAGIC_CMD' 5440lt_cv_file_magic_test_file= 5441lt_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 5453case $host_os in 5454aix[4-9]*) 5455 lt_cv_deplibs_check_method=pass_all 5456 ;; 5457 5458beos*) 5459 lt_cv_deplibs_check_method=pass_all 5460 ;; 5461 5462bsdi[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 5468cygwin*) 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 5474mingw* | 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 5489cegcc*) 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 5495darwin* | rhapsody*) 5496 lt_cv_deplibs_check_method=pass_all 5497 ;; 5498 5499freebsd* | 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 5515haiku*) 5516 lt_cv_deplibs_check_method=pass_all 5517 ;; 5518 5519hpux10.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 5537interix[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 5542irix5* | 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. 5553linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5554 lt_cv_deplibs_check_method=pass_all 5555 ;; 5556 5557netbsd* | 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 5565newos6*) 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 5575openbsd*) 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 5583osf3* | osf4* | osf5*) 5584 lt_cv_deplibs_check_method=pass_all 5585 ;; 5586 5587rdos*) 5588 lt_cv_deplibs_check_method=pass_all 5589 ;; 5590 5591solaris*) 5592 lt_cv_deplibs_check_method=pass_all 5593 ;; 5594 5595sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5596 lt_cv_deplibs_check_method=pass_all 5597 ;; 5598 5599sysv4 | 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 5626tpf*) 5627 lt_cv_deplibs_check_method=pass_all 5628 ;; 5629esac 5630 5631fi 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 5635file_magic_glob= 5636want_nocaseglob=no 5637if 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 5647fi 5648 5649file_magic_cmd=$lt_cv_file_magic_cmd 5650deplibs_check_method=$lt_cv_deplibs_check_method 5651test -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 5674if 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. 5676set 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; } 5679if ${ac_cv_prog_DLLTOOL+:} false; then : 5680 $as_echo_n "(cached) " >&6 5681else 5682 if test -n "$DLLTOOL"; then 5683 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5684else 5685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5686for as_dir in $PATH 5687do 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 5696done 5697 done 5698IFS=$as_save_IFS 5699 5700fi 5701fi 5702DLLTOOL=$ac_cv_prog_DLLTOOL 5703if test -n "$DLLTOOL"; then 5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5705$as_echo "$DLLTOOL" >&6; } 5706else 5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5708$as_echo "no" >&6; } 5709fi 5710 5711 5712fi 5713if 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. 5716set 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; } 5719if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5720 $as_echo_n "(cached) " >&6 5721else 5722 if test -n "$ac_ct_DLLTOOL"; then 5723 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5724else 5725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5726for as_dir in $PATH 5727do 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 5736done 5737 done 5738IFS=$as_save_IFS 5739 5740fi 5741fi 5742ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5743if 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; } 5746else 5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5748$as_echo "no" >&6; } 5749fi 5750 5751 if test "x$ac_ct_DLLTOOL" = x; then 5752 DLLTOOL="false" 5753 else 5754 case $cross_compiling:$ac_tool_warned in 5755yes:) 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;} 5758ac_tool_warned=yes ;; 5759esac 5760 DLLTOOL=$ac_ct_DLLTOOL 5761 fi 5762else 5763 DLLTOOL="$ac_cv_prog_DLLTOOL" 5764fi 5765 5766test -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; } 5776if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5777 $as_echo_n "(cached) " >&6 5778else 5779 lt_cv_sharedlib_from_linklib_cmd='unknown' 5780 5781case $host_os in 5782cygwin* | 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 ;; 5798esac 5799 5800fi 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; } 5803sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5804test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5805 5806 5807 5808 5809 5810 5811 5812 5813if 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. 5817set 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; } 5820if ${ac_cv_prog_AR+:} false; then : 5821 $as_echo_n "(cached) " >&6 5822else 5823 if test -n "$AR"; then 5824 ac_cv_prog_AR="$AR" # Let the user override the test. 5825else 5826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5827for as_dir in $PATH 5828do 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 5837done 5838 done 5839IFS=$as_save_IFS 5840 5841fi 5842fi 5843AR=$ac_cv_prog_AR 5844if test -n "$AR"; then 5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5846$as_echo "$AR" >&6; } 5847else 5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5849$as_echo "no" >&6; } 5850fi 5851 5852 5853 test -n "$AR" && break 5854 done 5855fi 5856if test -z "$AR"; then 5857 ac_ct_AR=$AR 5858 for ac_prog in ar 5859do 5860 # Extract the first word of "$ac_prog", so it can be a program name with args. 5861set 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; } 5864if ${ac_cv_prog_ac_ct_AR+:} false; then : 5865 $as_echo_n "(cached) " >&6 5866else 5867 if test -n "$ac_ct_AR"; then 5868 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5869else 5870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5871for as_dir in $PATH 5872do 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 5881done 5882 done 5883IFS=$as_save_IFS 5884 5885fi 5886fi 5887ac_ct_AR=$ac_cv_prog_ac_ct_AR 5888if 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; } 5891else 5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5893$as_echo "no" >&6; } 5894fi 5895 5896 5897 test -n "$ac_ct_AR" && break 5898done 5899 5900 if test "x$ac_ct_AR" = x; then 5901 AR="false" 5902 else 5903 case $cross_compiling:$ac_tool_warned in 5904yes:) 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;} 5907ac_tool_warned=yes ;; 5908esac 5909 AR=$ac_ct_AR 5910 fi 5911fi 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; } 5928if ${lt_cv_ar_at_file+:} false; then : 5929 $as_echo_n "(cached) " >&6 5930else 5931 lt_cv_ar_at_file=no 5932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5933/* end confdefs.h. */ 5934 5935int 5936main () 5937{ 5938 5939 ; 5940 return 0; 5941} 5942_ACEOF 5943if 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 5965fi 5966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5967 5968fi 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 5972if test "x$lt_cv_ar_at_file" = xno; then 5973 archiver_list_spec= 5974else 5975 archiver_list_spec=$lt_cv_ar_at_file 5976fi 5977 5978 5979 5980 5981 5982 5983 5984if 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. 5986set 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; } 5989if ${ac_cv_prog_STRIP+:} false; then : 5990 $as_echo_n "(cached) " >&6 5991else 5992 if test -n "$STRIP"; then 5993 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5994else 5995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5996for as_dir in $PATH 5997do 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 6006done 6007 done 6008IFS=$as_save_IFS 6009 6010fi 6011fi 6012STRIP=$ac_cv_prog_STRIP 6013if test -n "$STRIP"; then 6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6015$as_echo "$STRIP" >&6; } 6016else 6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6018$as_echo "no" >&6; } 6019fi 6020 6021 6022fi 6023if 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. 6026set 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; } 6029if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6030 $as_echo_n "(cached) " >&6 6031else 6032 if test -n "$ac_ct_STRIP"; then 6033 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6034else 6035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6036for as_dir in $PATH 6037do 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 6046done 6047 done 6048IFS=$as_save_IFS 6049 6050fi 6051fi 6052ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6053if 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; } 6056else 6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6058$as_echo "no" >&6; } 6059fi 6060 6061 if test "x$ac_ct_STRIP" = x; then 6062 STRIP=":" 6063 else 6064 case $cross_compiling:$ac_tool_warned in 6065yes:) 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;} 6068ac_tool_warned=yes ;; 6069esac 6070 STRIP=$ac_ct_STRIP 6071 fi 6072else 6073 STRIP="$ac_cv_prog_STRIP" 6074fi 6075 6076test -z "$STRIP" && STRIP=: 6077 6078 6079 6080 6081 6082 6083if 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. 6085set 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; } 6088if ${ac_cv_prog_RANLIB+:} false; then : 6089 $as_echo_n "(cached) " >&6 6090else 6091 if test -n "$RANLIB"; then 6092 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6093else 6094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6095for as_dir in $PATH 6096do 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 6105done 6106 done 6107IFS=$as_save_IFS 6108 6109fi 6110fi 6111RANLIB=$ac_cv_prog_RANLIB 6112if test -n "$RANLIB"; then 6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6114$as_echo "$RANLIB" >&6; } 6115else 6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6117$as_echo "no" >&6; } 6118fi 6119 6120 6121fi 6122if 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. 6125set 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; } 6128if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6129 $as_echo_n "(cached) " >&6 6130else 6131 if test -n "$ac_ct_RANLIB"; then 6132 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6133else 6134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6135for as_dir in $PATH 6136do 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 6145done 6146 done 6147IFS=$as_save_IFS 6148 6149fi 6150fi 6151ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6152if 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; } 6155else 6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6157$as_echo "no" >&6; } 6158fi 6159 6160 if test "x$ac_ct_RANLIB" = x; then 6161 RANLIB=":" 6162 else 6163 case $cross_compiling:$ac_tool_warned in 6164yes:) 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;} 6167ac_tool_warned=yes ;; 6168esac 6169 RANLIB=$ac_ct_RANLIB 6170 fi 6171else 6172 RANLIB="$ac_cv_prog_RANLIB" 6173fi 6174 6175test -z "$RANLIB" && RANLIB=: 6176 6177 6178 6179 6180 6181 6182# Determine commands to create old-style static archives. 6183old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6184old_postinstall_cmds='chmod 644 $oldlib' 6185old_postuninstall_cmds= 6186 6187if 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" 6197fi 6198 6199case $host_os in 6200 darwin*) 6201 lock_old_archive_extraction=yes ;; 6202 *) 6203 lock_old_archive_extraction=no ;; 6204esac 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. 6245LTCC=${LTCC-"$CC"} 6246 6247# If no C compiler flags were specified, use CFLAGS. 6248LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6249 6250# Allow CC to be a program name with arguments. 6251compiler=$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; } 6257if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6258 $as_echo_n "(cached) " >&6 6259else 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. 6265symcode='[BCDEGRST]' 6266 6267# Regexp to match symbols that can be accessed directly from C. 6268sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6269 6270# Define system-specific variables. 6271case $host_os in 6272aix*) 6273 symcode='[BCDT]' 6274 ;; 6275cygwin* | mingw* | pw32* | cegcc*) 6276 symcode='[ABCDGISTW]' 6277 ;; 6278hpux*) 6279 if test "$host_cpu" = ia64; then 6280 symcode='[ABCDEGRST]' 6281 fi 6282 ;; 6283irix* | nonstopux*) 6284 symcode='[BCDEGRST]' 6285 ;; 6286osf*) 6287 symcode='[BCDEGQRST]' 6288 ;; 6289solaris*) 6290 symcode='[BDRT]' 6291 ;; 6292sco3.2v5*) 6293 symcode='[DT]' 6294 ;; 6295sysv4.2uw2*) 6296 symcode='[DT]' 6297 ;; 6298sysv5* | sco5v6* | unixware* | OpenUNIX*) 6299 symcode='[ABDT]' 6300 ;; 6301sysv4) 6302 symcode='[DFNSTU]' 6303 ;; 6304esac 6305 6306# If we're using GNU nm, then use its standard symbol codes. 6307case `$NM -V 2>&1` in 6308*GNU* | *'with BFD'*) 6309 symcode='[ABCDGIRSTW]' ;; 6310esac 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. 6315lt_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 6318lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6319lt_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 6322opt_cr= 6323case $build_os in 6324mingw*) 6325 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6326 ;; 6327esac 6328 6329# Try without a prefix underscore, then with it. 6330for 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 6364extern "C" { 6365#endif 6366char nm_test_var; 6367void nm_test_func(void); 6368void nm_test_func(void){} 6369#ifdef __cplusplus 6370} 6371#endif 6372int 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 6411extern "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. */ 6421LT_DLSYM_CONST struct { 6422 const char *name; 6423 void *address; 6424} 6425lt__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 6436static 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 6481done 6482 6483fi 6484 6485if test -z "$lt_cv_sys_global_symbol_pipe"; then 6486 lt_cv_sys_global_symbol_to_cdecl= 6487fi 6488if 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; } 6491else 6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6493$as_echo "ok" >&6; } 6494fi 6495 6496# Response file support. 6497if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6498 nm_file_list_spec='@' 6499elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6500 nm_file_list_spec='@' 6501fi 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. 6533if test "${with_sysroot+set}" = set; then : 6534 withval=$with_sysroot; 6535else 6536 with_sysroot=no 6537fi 6538 6539 6540lt_sysroot= 6541case ${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 ;; 6557esac 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. 6567if test "${enable_libtool_lock+set}" = set; then : 6568 enableval=$enable_libtool_lock; 6569fi 6570 6571test "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. 6575case $host in 6576ia64-*-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 6632x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6633s390*-*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; } 6704if ${lt_cv_cc_needs_belf+:} false; then : 6705 $as_echo_n "(cached) " >&6 6706else 6707 ac_ext=c 6708ac_cpp='$CPP $CPPFLAGS' 6709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6711ac_compiler_gnu=$ac_cv_c_compiler_gnu 6712 6713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6714/* end confdefs.h. */ 6715 6716int 6717main () 6718{ 6719 6720 ; 6721 return 0; 6722} 6723_ACEOF 6724if ac_fn_c_try_link "$LINENO"; then : 6725 lt_cv_cc_needs_belf=yes 6726else 6727 lt_cv_cc_needs_belf=no 6728fi 6729rm -f core conftest.err conftest.$ac_objext \ 6730 conftest$ac_exeext conftest.$ac_ext 6731 ac_ext=c 6732ac_cpp='$CPP $CPPFLAGS' 6733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6735ac_compiler_gnu=$ac_cv_c_compiler_gnu 6736 6737fi 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 ;; 6781esac 6782 6783need_locks="$enable_libtool_lock" 6784 6785if 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. 6787set 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; } 6790if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6791 $as_echo_n "(cached) " >&6 6792else 6793 if test -n "$MANIFEST_TOOL"; then 6794 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6795else 6796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6797for as_dir in $PATH 6798do 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 6807done 6808 done 6809IFS=$as_save_IFS 6810 6811fi 6812fi 6813MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6814if test -n "$MANIFEST_TOOL"; then 6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6816$as_echo "$MANIFEST_TOOL" >&6; } 6817else 6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6819$as_echo "no" >&6; } 6820fi 6821 6822 6823fi 6824if 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. 6827set 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; } 6830if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6831 $as_echo_n "(cached) " >&6 6832else 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. 6835else 6836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6837for as_dir in $PATH 6838do 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 6847done 6848 done 6849IFS=$as_save_IFS 6850 6851fi 6852fi 6853ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6854if 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; } 6857else 6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6859$as_echo "no" >&6; } 6860fi 6861 6862 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6863 MANIFEST_TOOL=":" 6864 else 6865 case $cross_compiling:$ac_tool_warned in 6866yes:) 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;} 6869ac_tool_warned=yes ;; 6870esac 6871 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6872 fi 6873else 6874 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6875fi 6876 6877test -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; } 6880if ${lt_cv_path_mainfest_tool+:} false; then : 6881 $as_echo_n "(cached) " >&6 6882else 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* 6891fi 6892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6893$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6894if test "x$lt_cv_path_mainfest_tool" != xyes; then 6895 MANIFEST_TOOL=: 6896fi 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. 6907set 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; } 6910if ${ac_cv_prog_DSYMUTIL+:} false; then : 6911 $as_echo_n "(cached) " >&6 6912else 6913 if test -n "$DSYMUTIL"; then 6914 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6915else 6916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6917for as_dir in $PATH 6918do 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 6927done 6928 done 6929IFS=$as_save_IFS 6930 6931fi 6932fi 6933DSYMUTIL=$ac_cv_prog_DSYMUTIL 6934if test -n "$DSYMUTIL"; then 6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6936$as_echo "$DSYMUTIL" >&6; } 6937else 6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6939$as_echo "no" >&6; } 6940fi 6941 6942 6943fi 6944if 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. 6947set 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; } 6950if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6951 $as_echo_n "(cached) " >&6 6952else 6953 if test -n "$ac_ct_DSYMUTIL"; then 6954 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6955else 6956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6957for as_dir in $PATH 6958do 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 6967done 6968 done 6969IFS=$as_save_IFS 6970 6971fi 6972fi 6973ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6974if 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; } 6977else 6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6979$as_echo "no" >&6; } 6980fi 6981 6982 if test "x$ac_ct_DSYMUTIL" = x; then 6983 DSYMUTIL=":" 6984 else 6985 case $cross_compiling:$ac_tool_warned in 6986yes:) 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;} 6989ac_tool_warned=yes ;; 6990esac 6991 DSYMUTIL=$ac_ct_DSYMUTIL 6992 fi 6993else 6994 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6995fi 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. 6999set 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; } 7002if ${ac_cv_prog_NMEDIT+:} false; then : 7003 $as_echo_n "(cached) " >&6 7004else 7005 if test -n "$NMEDIT"; then 7006 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7007else 7008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7009for as_dir in $PATH 7010do 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 7019done 7020 done 7021IFS=$as_save_IFS 7022 7023fi 7024fi 7025NMEDIT=$ac_cv_prog_NMEDIT 7026if test -n "$NMEDIT"; then 7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7028$as_echo "$NMEDIT" >&6; } 7029else 7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7031$as_echo "no" >&6; } 7032fi 7033 7034 7035fi 7036if 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. 7039set 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; } 7042if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7043 $as_echo_n "(cached) " >&6 7044else 7045 if test -n "$ac_ct_NMEDIT"; then 7046 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7047else 7048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7049for as_dir in $PATH 7050do 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 7059done 7060 done 7061IFS=$as_save_IFS 7062 7063fi 7064fi 7065ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7066if 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; } 7069else 7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7071$as_echo "no" >&6; } 7072fi 7073 7074 if test "x$ac_ct_NMEDIT" = x; then 7075 NMEDIT=":" 7076 else 7077 case $cross_compiling:$ac_tool_warned in 7078yes:) 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;} 7081ac_tool_warned=yes ;; 7082esac 7083 NMEDIT=$ac_ct_NMEDIT 7084 fi 7085else 7086 NMEDIT="$ac_cv_prog_NMEDIT" 7087fi 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. 7091set 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; } 7094if ${ac_cv_prog_LIPO+:} false; then : 7095 $as_echo_n "(cached) " >&6 7096else 7097 if test -n "$LIPO"; then 7098 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7099else 7100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7101for as_dir in $PATH 7102do 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 7111done 7112 done 7113IFS=$as_save_IFS 7114 7115fi 7116fi 7117LIPO=$ac_cv_prog_LIPO 7118if test -n "$LIPO"; then 7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7120$as_echo "$LIPO" >&6; } 7121else 7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7123$as_echo "no" >&6; } 7124fi 7125 7126 7127fi 7128if 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. 7131set 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; } 7134if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7135 $as_echo_n "(cached) " >&6 7136else 7137 if test -n "$ac_ct_LIPO"; then 7138 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7139else 7140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7141for as_dir in $PATH 7142do 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 7151done 7152 done 7153IFS=$as_save_IFS 7154 7155fi 7156fi 7157ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7158if 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; } 7161else 7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7163$as_echo "no" >&6; } 7164fi 7165 7166 if test "x$ac_ct_LIPO" = x; then 7167 LIPO=":" 7168 else 7169 case $cross_compiling:$ac_tool_warned in 7170yes:) 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;} 7173ac_tool_warned=yes ;; 7174esac 7175 LIPO=$ac_ct_LIPO 7176 fi 7177else 7178 LIPO="$ac_cv_prog_LIPO" 7179fi 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. 7183set 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; } 7186if ${ac_cv_prog_OTOOL+:} false; then : 7187 $as_echo_n "(cached) " >&6 7188else 7189 if test -n "$OTOOL"; then 7190 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7191else 7192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7193for as_dir in $PATH 7194do 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 7203done 7204 done 7205IFS=$as_save_IFS 7206 7207fi 7208fi 7209OTOOL=$ac_cv_prog_OTOOL 7210if test -n "$OTOOL"; then 7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7212$as_echo "$OTOOL" >&6; } 7213else 7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7215$as_echo "no" >&6; } 7216fi 7217 7218 7219fi 7220if 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. 7223set 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; } 7226if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7227 $as_echo_n "(cached) " >&6 7228else 7229 if test -n "$ac_ct_OTOOL"; then 7230 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7231else 7232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7233for as_dir in $PATH 7234do 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 7243done 7244 done 7245IFS=$as_save_IFS 7246 7247fi 7248fi 7249ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7250if 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; } 7253else 7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7255$as_echo "no" >&6; } 7256fi 7257 7258 if test "x$ac_ct_OTOOL" = x; then 7259 OTOOL=":" 7260 else 7261 case $cross_compiling:$ac_tool_warned in 7262yes:) 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;} 7265ac_tool_warned=yes ;; 7266esac 7267 OTOOL=$ac_ct_OTOOL 7268 fi 7269else 7270 OTOOL="$ac_cv_prog_OTOOL" 7271fi 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. 7275set 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; } 7278if ${ac_cv_prog_OTOOL64+:} false; then : 7279 $as_echo_n "(cached) " >&6 7280else 7281 if test -n "$OTOOL64"; then 7282 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7283else 7284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7285for as_dir in $PATH 7286do 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 7295done 7296 done 7297IFS=$as_save_IFS 7298 7299fi 7300fi 7301OTOOL64=$ac_cv_prog_OTOOL64 7302if test -n "$OTOOL64"; then 7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7304$as_echo "$OTOOL64" >&6; } 7305else 7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7307$as_echo "no" >&6; } 7308fi 7309 7310 7311fi 7312if 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. 7315set 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; } 7318if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7319 $as_echo_n "(cached) " >&6 7320else 7321 if test -n "$ac_ct_OTOOL64"; then 7322 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7323else 7324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7325for as_dir in $PATH 7326do 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 7335done 7336 done 7337IFS=$as_save_IFS 7338 7339fi 7340fi 7341ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7342if 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; } 7345else 7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7347$as_echo "no" >&6; } 7348fi 7349 7350 if test "x$ac_ct_OTOOL64" = x; then 7351 OTOOL64=":" 7352 else 7353 case $cross_compiling:$ac_tool_warned in 7354yes:) 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;} 7357ac_tool_warned=yes ;; 7358esac 7359 OTOOL64=$ac_ct_OTOOL64 7360 fi 7361else 7362 OTOOL64="$ac_cv_prog_OTOOL64" 7363fi 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; } 7393if ${lt_cv_apple_cc_single_mod+:} false; then : 7394 $as_echo_n "(cached) " >&6 7395else 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 7423fi 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; } 7429if ${lt_cv_ld_exported_symbols_list+:} false; then : 7430 $as_echo_n "(cached) " >&6 7431else 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 7439int 7440main () 7441{ 7442 7443 ; 7444 return 0; 7445} 7446_ACEOF 7447if ac_fn_c_try_link "$LINENO"; then : 7448 lt_cv_ld_exported_symbols_list=yes 7449else 7450 lt_cv_ld_exported_symbols_list=no 7451fi 7452rm -f core conftest.err conftest.$ac_objext \ 7453 conftest$ac_exeext conftest.$ac_ext 7454 LDFLAGS="$save_LDFLAGS" 7455 7456fi 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; } 7462if ${lt_cv_ld_force_load+:} false; then : 7463 $as_echo_n "(cached) " >&6 7464else 7465 lt_cv_ld_force_load=no 7466 cat > conftest.c << _LT_EOF 7467int 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 7476int 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 7491fi 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 7529ac_ext=c 7530ac_cpp='$CPP $CPPFLAGS' 7531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7533ac_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. 7537if test -n "$CPP" && test -d "$CPP"; then 7538 CPP= 7539fi 7540if test -z "$CPP"; then 7541 if ${ac_cv_prog_CPP+:} false; then : 7542 $as_echo_n "(cached) " >&6 7543else 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 7548for ac_c_preproc_warn_flag in '' yes 7549do 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 7565if ac_fn_c_try_cpp "$LINENO"; then : 7566 7567else 7568 # Broken: fails on valid input. 7569continue 7570fi 7571rm -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 7579if ac_fn_c_try_cpp "$LINENO"; then : 7580 # Broken: success on invalid input. 7581continue 7582else 7583 # Passes both tests. 7584ac_preproc_ok=: 7585break 7586fi 7587rm -f conftest.err conftest.i conftest.$ac_ext 7588 7589done 7590# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7591rm -f conftest.i conftest.err conftest.$ac_ext 7592if $ac_preproc_ok; then : 7593 break 7594fi 7595 7596 done 7597 ac_cv_prog_CPP=$CPP 7598 7599fi 7600 CPP=$ac_cv_prog_CPP 7601else 7602 ac_cv_prog_CPP=$CPP 7603fi 7604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7605$as_echo "$CPP" >&6; } 7606ac_preproc_ok=false 7607for ac_c_preproc_warn_flag in '' yes 7608do 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 7624if ac_fn_c_try_cpp "$LINENO"; then : 7625 7626else 7627 # Broken: fails on valid input. 7628continue 7629fi 7630rm -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 7638if ac_fn_c_try_cpp "$LINENO"; then : 7639 # Broken: success on invalid input. 7640continue 7641else 7642 # Passes both tests. 7643ac_preproc_ok=: 7644break 7645fi 7646rm -f conftest.err conftest.i conftest.$ac_ext 7647 7648done 7649# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7650rm -f conftest.i conftest.err conftest.$ac_ext 7651if $ac_preproc_ok; then : 7652 7653else 7654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7655$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7656as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7657See \`config.log' for more details" "$LINENO" 5; } 7658fi 7659 7660ac_ext=c 7661ac_cpp='$CPP $CPPFLAGS' 7662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7664ac_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; } 7669if ${ac_cv_header_stdc+:} false; then : 7670 $as_echo_n "(cached) " >&6 7671else 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 7679int 7680main () 7681{ 7682 7683 ; 7684 return 0; 7685} 7686_ACEOF 7687if ac_fn_c_try_compile "$LINENO"; then : 7688 ac_cv_header_stdc=yes 7689else 7690 ac_cv_header_stdc=no 7691fi 7692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7693 7694if 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 7701if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7702 $EGREP "memchr" >/dev/null 2>&1; then : 7703 7704else 7705 ac_cv_header_stdc=no 7706fi 7707rm -f conftest* 7708 7709fi 7710 7711if 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 7718if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7719 $EGREP "free" >/dev/null 2>&1; then : 7720 7721else 7722 ac_cv_header_stdc=no 7723fi 7724rm -f conftest* 7725 7726fi 7727 7728if 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 : 7732else 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))) 7749int 7750main () 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 7760if ac_fn_c_try_run "$LINENO"; then : 7761 7762else 7763 ac_cv_header_stdc=no 7764fi 7765rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7766 conftest.$ac_objext conftest.beam conftest.$ac_ext 7767fi 7768 7769fi 7770fi 7771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7772$as_echo "$ac_cv_header_stdc" >&6; } 7773if test $ac_cv_header_stdc = yes; then 7774 7775$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7776 7777fi 7778 7779# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7780for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7781 inttypes.h stdint.h unistd.h 7782do : 7783 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7784ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7785" 7786if 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 7791fi 7792 7793done 7794 7795 7796for ac_header in dlfcn.h 7797do : 7798 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7799" 7800if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7801 cat >>confdefs.h <<_ACEOF 7802#define HAVE_DLFCN_H 1 7803_ACEOF 7804 7805fi 7806 7807done 7808 7809 7810 7811 7812 7813# Set options 7814enable_win32_dll=yes 7815 7816case $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. 7820set 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; } 7823if ${ac_cv_prog_AS+:} false; then : 7824 $as_echo_n "(cached) " >&6 7825else 7826 if test -n "$AS"; then 7827 ac_cv_prog_AS="$AS" # Let the user override the test. 7828else 7829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7830for as_dir in $PATH 7831do 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 7840done 7841 done 7842IFS=$as_save_IFS 7843 7844fi 7845fi 7846AS=$ac_cv_prog_AS 7847if test -n "$AS"; then 7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 7849$as_echo "$AS" >&6; } 7850else 7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7852$as_echo "no" >&6; } 7853fi 7854 7855 7856fi 7857if 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. 7860set 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; } 7863if ${ac_cv_prog_ac_ct_AS+:} false; then : 7864 $as_echo_n "(cached) " >&6 7865else 7866 if test -n "$ac_ct_AS"; then 7867 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 7868else 7869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7870for as_dir in $PATH 7871do 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 7880done 7881 done 7882IFS=$as_save_IFS 7883 7884fi 7885fi 7886ac_ct_AS=$ac_cv_prog_ac_ct_AS 7887if 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; } 7890else 7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7892$as_echo "no" >&6; } 7893fi 7894 7895 if test "x$ac_ct_AS" = x; then 7896 AS="false" 7897 else 7898 case $cross_compiling:$ac_tool_warned in 7899yes:) 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;} 7902ac_tool_warned=yes ;; 7903esac 7904 AS=$ac_ct_AS 7905 fi 7906else 7907 AS="$ac_cv_prog_AS" 7908fi 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. 7912set 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; } 7915if ${ac_cv_prog_DLLTOOL+:} false; then : 7916 $as_echo_n "(cached) " >&6 7917else 7918 if test -n "$DLLTOOL"; then 7919 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7920else 7921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7922for as_dir in $PATH 7923do 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 7932done 7933 done 7934IFS=$as_save_IFS 7935 7936fi 7937fi 7938DLLTOOL=$ac_cv_prog_DLLTOOL 7939if test -n "$DLLTOOL"; then 7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7941$as_echo "$DLLTOOL" >&6; } 7942else 7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7944$as_echo "no" >&6; } 7945fi 7946 7947 7948fi 7949if 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. 7952set 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; } 7955if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 7956 $as_echo_n "(cached) " >&6 7957else 7958 if test -n "$ac_ct_DLLTOOL"; then 7959 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7960else 7961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7962for as_dir in $PATH 7963do 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 7972done 7973 done 7974IFS=$as_save_IFS 7975 7976fi 7977fi 7978ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7979if 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; } 7982else 7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7984$as_echo "no" >&6; } 7985fi 7986 7987 if test "x$ac_ct_DLLTOOL" = x; then 7988 DLLTOOL="false" 7989 else 7990 case $cross_compiling:$ac_tool_warned in 7991yes:) 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;} 7994ac_tool_warned=yes ;; 7995esac 7996 DLLTOOL=$ac_ct_DLLTOOL 7997 fi 7998else 7999 DLLTOOL="$ac_cv_prog_DLLTOOL" 8000fi 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. 8004set 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; } 8007if ${ac_cv_prog_OBJDUMP+:} false; then : 8008 $as_echo_n "(cached) " >&6 8009else 8010 if test -n "$OBJDUMP"; then 8011 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8012else 8013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8014for as_dir in $PATH 8015do 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 8024done 8025 done 8026IFS=$as_save_IFS 8027 8028fi 8029fi 8030OBJDUMP=$ac_cv_prog_OBJDUMP 8031if test -n "$OBJDUMP"; then 8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8033$as_echo "$OBJDUMP" >&6; } 8034else 8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8036$as_echo "no" >&6; } 8037fi 8038 8039 8040fi 8041if 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. 8044set 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; } 8047if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8048 $as_echo_n "(cached) " >&6 8049else 8050 if test -n "$ac_ct_OBJDUMP"; then 8051 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8052else 8053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8054for as_dir in $PATH 8055do 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 8064done 8065 done 8066IFS=$as_save_IFS 8067 8068fi 8069fi 8070ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8071if 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; } 8074else 8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8076$as_echo "no" >&6; } 8077fi 8078 8079 if test "x$ac_ct_OBJDUMP" = x; then 8080 OBJDUMP="false" 8081 else 8082 case $cross_compiling:$ac_tool_warned in 8083yes:) 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;} 8086ac_tool_warned=yes ;; 8087esac 8088 OBJDUMP=$ac_ct_OBJDUMP 8089 fi 8090else 8091 OBJDUMP="$ac_cv_prog_OBJDUMP" 8092fi 8093 8094 ;; 8095esac 8096 8097test -z "$AS" && AS=as 8098 8099 8100 8101 8102 8103test -z "$DLLTOOL" && DLLTOOL=dlltool 8104 8105 8106 8107 8108 8109test -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. 8122if 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 8140else 8141 enable_shared=yes 8142fi 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 # Check whether --enable-static was given. 8153if 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 8171else 8172 enable_static=yes 8173fi 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184# Check whether --with-pic was given. 8185if 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 8202else 8203 pic_mode=default 8204fi 8205 8206 8207test -z "$pic_mode" && pic_mode=default 8208 8209 8210 8211 8212 8213 8214 8215 # Check whether --enable-fast-install was given. 8216if 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 8234else 8235 enable_fast_install=yes 8236fi 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248# This can be used to rebuild libtool when needed 8249LIBTOOL_DEPS="$ltmain" 8250 8251# Always use our own libtool. 8252LIBTOOL='$(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 8283test -z "$LN_S" && LN_S="ln -s" 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298if test -n "${ZSH_VERSION+set}" ; then 8299 setopt NO_GLOB_SUBST 8300fi 8301 8302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8303$as_echo_n "checking for objdir... " >&6; } 8304if ${lt_cv_objdir+:} false; then : 8305 $as_echo_n "(cached) " >&6 8306else 8307 rm -f .libs 2>/dev/null 8308mkdir .libs 2>/dev/null 8309if test -d .libs; then 8310 lt_cv_objdir=.libs 8311else 8312 # MS-DOS does not allow filenames that begin with a dot. 8313 lt_cv_objdir=_libs 8314fi 8315rmdir .libs 2>/dev/null 8316fi 8317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8318$as_echo "$lt_cv_objdir" >&6; } 8319objdir=$lt_cv_objdir 8320 8321 8322 8323 8324 8325cat >>confdefs.h <<_ACEOF 8326#define LT_OBJDIR "$lt_cv_objdir/" 8327_ACEOF 8328 8329 8330 8331 8332case $host_os in 8333aix3*) 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 ;; 8342esac 8343 8344# Global variables: 8345ofile=libtool 8346can_build_shared=yes 8347 8348# All known linkers require a `.a' archive for static linking (except MSVC, 8349# which needs '.lib'). 8350libext=a 8351 8352with_gnu_ld="$lt_cv_prog_gnu_ld" 8353 8354old_CC="$CC" 8355old_CFLAGS="$CFLAGS" 8356 8357# Set sane defaults for various variables 8358test -z "$CC" && CC=cc 8359test -z "$LTCC" && LTCC=$CC 8360test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8361test -z "$LD" && LD=ld 8362test -z "$ac_objext" && ac_objext=o 8363 8364for 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 8371done 8372cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8373 8374 8375# Only perform the check for file, if the check method requires it 8376test -z "$MAGIC_CMD" && MAGIC_CMD=file 8377case $deplibs_check_method in 8378file_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; } 8382if ${lt_cv_path_MAGIC_CMD+:} false; then : 8383 $as_echo_n "(cached) " >&6 8384else 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 ;; 8428esac 8429fi 8430 8431MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8432if test -n "$MAGIC_CMD"; then 8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8434$as_echo "$MAGIC_CMD" >&6; } 8435else 8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8437$as_echo "no" >&6; } 8438fi 8439 8440 8441 8442 8443 8444if 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; } 8448if ${lt_cv_path_MAGIC_CMD+:} false; then : 8449 $as_echo_n "(cached) " >&6 8450else 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 ;; 8494esac 8495fi 8496 8497MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8498if test -n "$MAGIC_CMD"; then 8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8500$as_echo "$MAGIC_CMD" >&6; } 8501else 8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8503$as_echo "no" >&6; } 8504fi 8505 8506 8507 else 8508 MAGIC_CMD=: 8509 fi 8510fi 8511 8512 fi 8513 ;; 8514esac 8515 8516# Use C for the default configuration in the libtool script 8517 8518lt_save_CC="$CC" 8519ac_ext=c 8520ac_cpp='$CPP $CPPFLAGS' 8521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8523ac_compiler_gnu=$ac_cv_c_compiler_gnu 8524 8525 8526# Source file extension for C test sources. 8527ac_ext=c 8528 8529# Object file extension for compiled C test sources. 8530objext=o 8531objext=$objext 8532 8533# Code to be used in simple compile tests 8534lt_simple_compile_test_code="int some_variable = 0;" 8535 8536# Code to be used in simple link tests 8537lt_simple_link_test_code='int main(){return(0);}' 8538 8539 8540 8541 8542 8543 8544 8545# If no C compiler was specified, use CC. 8546LTCC=${LTCC-"$CC"} 8547 8548# If no C compiler flags were specified, use CFLAGS. 8549LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8550 8551# Allow CC to be a program name with arguments. 8552compiler=$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. 8556compiler_DEFAULT=$CC 8557 8558# save warnings/boilerplate of simple test code 8559ac_outfile=conftest.$ac_objext 8560echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8561eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8562_lt_compiler_boilerplate=`cat conftest.err` 8563$RM conftest* 8564 8565ac_outfile=conftest.$ac_objext 8566echo "$lt_simple_link_test_code" >conftest.$ac_ext 8567eval "$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... 8576if test -n "$compiler"; then 8577 8578lt_prog_compiler_no_builtin_flag= 8579 8580if 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; } 8590if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8591 $as_echo_n "(cached) " >&6 8592else 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 8622fi 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 8626if 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" 8628else 8629 : 8630fi 8631 8632fi 8633 8634 8635 8636 8637 8638 8639 lt_prog_compiler_wl= 8640lt_prog_compiler_pic= 8641lt_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 8940case $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 ;; 8948esac 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; } 8952if ${lt_cv_prog_compiler_pic+:} false; then : 8953 $as_echo_n "(cached) " >&6 8954else 8955 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8956fi 8957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8958$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8959lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8960 8961# 8962# Check to make sure the PIC flag actually works. 8963# 8964if 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; } 8967if ${lt_cv_prog_compiler_pic_works+:} false; then : 8968 $as_echo_n "(cached) " >&6 8969else 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 8999fi 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 9003if 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 9008else 9009 lt_prog_compiler_pic= 9010 lt_prog_compiler_can_build_shared=no 9011fi 9012 9013fi 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025# 9026# Check to make sure the static flag actually works. 9027# 9028wl=$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; } 9031if ${lt_cv_prog_compiler_static_works+:} false; then : 9032 $as_echo_n "(cached) " >&6 9033else 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 9056fi 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 9060if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9061 : 9062else 9063 lt_prog_compiler_static= 9064fi 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; } 9074if ${lt_cv_prog_compiler_c_o+:} false; then : 9075 $as_echo_n "(cached) " >&6 9076else 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 9118fi 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; } 9129if ${lt_cv_prog_compiler_c_o+:} false; then : 9130 $as_echo_n "(cached) " >&6 9131else 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 9173fi 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 9180hard_links="nottested" 9181if 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 9198else 9199 need_locks=no 9200fi 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@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 9695else 9696 if ${lt_cv_aix_libpath_+:} false; then : 9697 $as_echo_n "(cached) " >&6 9698else 9699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9700/* end confdefs.h. */ 9701 9702int 9703main () 9704{ 9705 9706 ; 9707 return 0; 9708} 9709_ACEOF 9710if 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 9724fi 9725rm -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 9731fi 9732 9733 aix_libpath=$lt_cv_aix_libpath_ 9734fi 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 9748else 9749 if ${lt_cv_aix_libpath_+:} false; then : 9750 $as_echo_n "(cached) " >&6 9751else 9752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9753/* end confdefs.h. */ 9754 9755int 9756main () 9757{ 9758 9759 ; 9760 return 0; 9761} 9762_ACEOF 9763if 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 9777fi 9778rm -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 9784fi 9785 9786 aix_libpath=$lt_cv_aix_libpath_ 9787fi 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; } 10018if ${lt_cv_prog_compiler__b+:} false; then : 10019 $as_echo_n "(cached) " >&6 10020else 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 10043fi 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 10047if 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' 10049else 10050 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10051fi 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; } 10087if ${lt_cv_irix_exported_symbol+:} false; then : 10088 $as_echo_n "(cached) " >&6 10089else 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. */ 10094int foo (void) { return 0; } 10095_ACEOF 10096if ac_fn_c_try_link "$LINENO"; then : 10097 lt_cv_irix_exported_symbol=yes 10098else 10099 lt_cv_irix_exported_symbol=no 10100fi 10101rm -f core conftest.err conftest.$ac_objext \ 10102 conftest$ac_exeext conftest.$ac_ext 10103 LDFLAGS="$save_LDFLAGS" 10104fi 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; } 10366test "$ld_shlibs" = no && can_build_shared=no 10367 10368with_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# 10387case "x$archive_cmds_need_lc" in 10388x|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; } 10403if ${lt_cv_archive_cmds_need_lc+:} false; then : 10404 $as_echo_n "(cached) " >&6 10405else 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 10443fi 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 ;; 10451esac 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 10607if 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 ' 10642BEGIN {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` 10668else 10669 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10670fi 10671library_names_spec= 10672libname_spec='lib$name' 10673soname_spec= 10674shrext_cmds=".so" 10675postinstall_cmds= 10676postuninstall_cmds= 10677finish_cmds= 10678finish_eval= 10679shlibpath_var= 10680shlibpath_overrides_runpath=unknown 10681version_type=none 10682dynamic_linker="$host_os ld.so" 10683sys_lib_dlsearch_path_spec="/lib /usr/lib" 10684need_lib_prefix=unknown 10685hardcode_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 10689need_version=unknown 10690 10691case $host_os in 10692aix3*) 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 10701aix[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 10745amigaos*) 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 10760beos*) 10761 library_names_spec='${libname}${shared_ext}' 10762 dynamic_linker="$host_os ld.so" 10763 shlibpath_var=LIBRARY_PATH 10764 ;; 10765 10766bsdi[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 10780cygwin* | 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 10890darwin* | 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 10905dgux*) 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 10914freebsd* | 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 10958haiku*) 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 10971hpux9* | 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 11019interix[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 11031irix5* | 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. 11069linux*oldld* | linux*aout* | linux*coff*) 11070 dynamic_linker=no 11071 ;; 11072 11073# This must be glibc/ELF. 11074linux* | 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 11087else 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 11096int 11097main () 11098{ 11099 11100 ; 11101 return 0; 11102} 11103_ACEOF 11104if 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 11107fi 11108fi 11109rm -f core conftest.err conftest.$ac_objext \ 11110 conftest$ac_exeext conftest.$ac_ext 11111 LDFLAGS=$save_LDFLAGS 11112 libdir=$save_libdir 11113 11114fi 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 11138netbsdelf*-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 11150netbsd*) 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 11168newsos6) 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 11187openbsd*) 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 11213os2*) 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 11222osf3* | 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 11233rdos*) 11234 dynamic_linker=no 11235 ;; 11236 11237solaris*) 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 11250sunos4*) 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 11262sysv4 | 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 11285sysv4*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 11294sysv5* | 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 11316tpf*) 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 11327uts4*) 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 ;; 11337esac 11338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11339$as_echo "$dynamic_linker" >&6; } 11340test "$dynamic_linker" = no && can_build_shared=no 11341 11342variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11343if test "$GCC" = yes; then 11344 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11345fi 11346 11347if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11348 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11349fi 11350if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11351 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11352fi 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; } 11447hardcode_action= 11448if 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 11465else 11466 # We cannot hardcode anything, or else we can only hardcode existing 11467 # directories. 11468 hardcode_action=unsupported 11469fi 11470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11471$as_echo "$hardcode_action" >&6; } 11472 11473if test "$hardcode_action" = relink || 11474 test "$inherit_rpath" = yes; then 11475 # Fast installation is not supported 11476 enable_fast_install=no 11477elif test "$shlibpath_overrides_runpath" = yes || 11478 test "$enable_shared" = no; then 11479 # Fast installation is not necessary 11480 enable_fast_install=needless 11481fi 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 11492else 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; } 11517if ${ac_cv_lib_dl_dlopen+:} false; then : 11518 $as_echo_n "(cached) " >&6 11519else 11520 ac_check_lib_save_LIBS=$LIBS 11521LIBS="-ldl $LIBS" 11522cat 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 11529extern "C" 11530#endif 11531char dlopen (); 11532int 11533main () 11534{ 11535return dlopen (); 11536 ; 11537 return 0; 11538} 11539_ACEOF 11540if ac_fn_c_try_link "$LINENO"; then : 11541 ac_cv_lib_dl_dlopen=yes 11542else 11543 ac_cv_lib_dl_dlopen=no 11544fi 11545rm -f core conftest.err conftest.$ac_objext \ 11546 conftest$ac_exeext conftest.$ac_ext 11547LIBS=$ac_check_lib_save_LIBS 11548fi 11549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11550$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11551if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11552 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11553else 11554 11555 lt_cv_dlopen="dyld" 11556 lt_cv_dlopen_libs= 11557 lt_cv_dlopen_self=yes 11558 11559fi 11560 11561 ;; 11562 11563 *) 11564 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11565if test "x$ac_cv_func_shl_load" = xyes; then : 11566 lt_cv_dlopen="shl_load" 11567else 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; } 11570if ${ac_cv_lib_dld_shl_load+:} false; then : 11571 $as_echo_n "(cached) " >&6 11572else 11573 ac_check_lib_save_LIBS=$LIBS 11574LIBS="-ldld $LIBS" 11575cat 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 11582extern "C" 11583#endif 11584char shl_load (); 11585int 11586main () 11587{ 11588return shl_load (); 11589 ; 11590 return 0; 11591} 11592_ACEOF 11593if ac_fn_c_try_link "$LINENO"; then : 11594 ac_cv_lib_dld_shl_load=yes 11595else 11596 ac_cv_lib_dld_shl_load=no 11597fi 11598rm -f core conftest.err conftest.$ac_objext \ 11599 conftest$ac_exeext conftest.$ac_ext 11600LIBS=$ac_check_lib_save_LIBS 11601fi 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; } 11604if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11605 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11606else 11607 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11608if test "x$ac_cv_func_dlopen" = xyes; then : 11609 lt_cv_dlopen="dlopen" 11610else 11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11612$as_echo_n "checking for dlopen in -ldl... " >&6; } 11613if ${ac_cv_lib_dl_dlopen+:} false; then : 11614 $as_echo_n "(cached) " >&6 11615else 11616 ac_check_lib_save_LIBS=$LIBS 11617LIBS="-ldl $LIBS" 11618cat 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 11625extern "C" 11626#endif 11627char dlopen (); 11628int 11629main () 11630{ 11631return dlopen (); 11632 ; 11633 return 0; 11634} 11635_ACEOF 11636if ac_fn_c_try_link "$LINENO"; then : 11637 ac_cv_lib_dl_dlopen=yes 11638else 11639 ac_cv_lib_dl_dlopen=no 11640fi 11641rm -f core conftest.err conftest.$ac_objext \ 11642 conftest$ac_exeext conftest.$ac_ext 11643LIBS=$ac_check_lib_save_LIBS 11644fi 11645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11646$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11647if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11648 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11649else 11650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11651$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11652if ${ac_cv_lib_svld_dlopen+:} false; then : 11653 $as_echo_n "(cached) " >&6 11654else 11655 ac_check_lib_save_LIBS=$LIBS 11656LIBS="-lsvld $LIBS" 11657cat 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 11664extern "C" 11665#endif 11666char dlopen (); 11667int 11668main () 11669{ 11670return dlopen (); 11671 ; 11672 return 0; 11673} 11674_ACEOF 11675if ac_fn_c_try_link "$LINENO"; then : 11676 ac_cv_lib_svld_dlopen=yes 11677else 11678 ac_cv_lib_svld_dlopen=no 11679fi 11680rm -f core conftest.err conftest.$ac_objext \ 11681 conftest$ac_exeext conftest.$ac_ext 11682LIBS=$ac_check_lib_save_LIBS 11683fi 11684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11685$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11686if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11687 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11688else 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; } 11691if ${ac_cv_lib_dld_dld_link+:} false; then : 11692 $as_echo_n "(cached) " >&6 11693else 11694 ac_check_lib_save_LIBS=$LIBS 11695LIBS="-ldld $LIBS" 11696cat 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 11703extern "C" 11704#endif 11705char dld_link (); 11706int 11707main () 11708{ 11709return dld_link (); 11710 ; 11711 return 0; 11712} 11713_ACEOF 11714if ac_fn_c_try_link "$LINENO"; then : 11715 ac_cv_lib_dld_dld_link=yes 11716else 11717 ac_cv_lib_dld_dld_link=no 11718fi 11719rm -f core conftest.err conftest.$ac_objext \ 11720 conftest$ac_exeext conftest.$ac_ext 11721LIBS=$ac_check_lib_save_LIBS 11722fi 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; } 11725if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11726 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11727fi 11728 11729 11730fi 11731 11732 11733fi 11734 11735 11736fi 11737 11738 11739fi 11740 11741 11742fi 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; } 11766if ${lt_cv_dlopen_self+:} false; then : 11767 $as_echo_n "(cached) " >&6 11768else 11769 if test "$cross_compiling" = yes; then : 11770 lt_cv_dlopen_self=cross 11771else 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)) 11819int fnord () __attribute__((visibility("default"))); 11820#endif 11821 11822int fnord () { return 42; } 11823int 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 11860fi 11861rm -fr conftest* 11862 11863 11864fi 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; } 11872if ${lt_cv_dlopen_self_static+:} false; then : 11873 $as_echo_n "(cached) " >&6 11874else 11875 if test "$cross_compiling" = yes; then : 11876 lt_cv_dlopen_self_static=cross 11877else 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)) 11925int fnord () __attribute__((visibility("default"))); 11926#endif 11927 11928int fnord () { return 42; } 11929int 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 11966fi 11967rm -fr conftest* 11968 11969 11970fi 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 11990fi 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008striplib= 12009old_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; } 12012if 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; } 12017else 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 12036fi 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 12089fi 12090ac_ext=c 12091ac_cpp='$CPP $CPPFLAGS' 12092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12094ac_compiler_gnu=$ac_cv_c_compiler_gnu 12095 12096CC="$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 12120if 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. 12122set 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; } 12125if ${ac_cv_prog_RC+:} false; then : 12126 $as_echo_n "(cached) " >&6 12127else 12128 if test -n "$RC"; then 12129 ac_cv_prog_RC="$RC" # Let the user override the test. 12130else 12131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12132for as_dir in $PATH 12133do 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 12142done 12143 done 12144IFS=$as_save_IFS 12145 12146fi 12147fi 12148RC=$ac_cv_prog_RC 12149if test -n "$RC"; then 12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 12151$as_echo "$RC" >&6; } 12152else 12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12154$as_echo "no" >&6; } 12155fi 12156 12157 12158fi 12159if 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. 12162set 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; } 12165if ${ac_cv_prog_ac_ct_RC+:} false; then : 12166 $as_echo_n "(cached) " >&6 12167else 12168 if test -n "$ac_ct_RC"; then 12169 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test. 12170else 12171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12172for as_dir in $PATH 12173do 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 12182done 12183 done 12184IFS=$as_save_IFS 12185 12186fi 12187fi 12188ac_ct_RC=$ac_cv_prog_ac_ct_RC 12189if 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; } 12192else 12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12194$as_echo "no" >&6; } 12195fi 12196 12197 if test "x$ac_ct_RC" = x; then 12198 RC="" 12199 else 12200 case $cross_compiling:$ac_tool_warned in 12201yes:) 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;} 12204ac_tool_warned=yes ;; 12205esac 12206 RC=$ac_ct_RC 12207 fi 12208else 12209 RC="$ac_cv_prog_RC" 12210fi 12211 12212 12213 12214 12215# Source file extension for RC test sources. 12216ac_ext=rc 12217 12218# Object file extension for compiled RC test sources. 12219objext=o 12220objext_RC=$objext 12221 12222# Code to be used in simple compile tests 12223lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 12224 12225# Code to be used in simple link tests 12226lt_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. 12236LTCC=${LTCC-"$CC"} 12237 12238# If no C compiler flags were specified, use CFLAGS. 12239LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12240 12241# Allow CC to be a program name with arguments. 12242compiler=$CC 12243 12244 12245# save warnings/boilerplate of simple test code 12246ac_outfile=conftest.$ac_objext 12247echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12248eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12249_lt_compiler_boilerplate=`cat conftest.err` 12250$RM conftest* 12251 12252ac_outfile=conftest.$ac_objext 12253echo "$lt_simple_link_test_code" >conftest.$ac_ext 12254eval "$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. 12260lt_save_CC="$CC" 12261lt_save_CFLAGS=$CFLAGS 12262lt_save_GCC=$GCC 12263GCC= 12264CC=${RC-"windres"} 12265CFLAGS= 12266compiler=$CC 12267compiler_RC=$CC 12268for 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 12275done 12276cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 12277 12278lt_cv_prog_compiler_c_o_RC=yes 12279 12280if test -n "$compiler"; then 12281 : 12282 12283 12284 12285fi 12286 12287GCC=$lt_save_GCC 12288ac_ext=c 12289ac_cpp='$CPP $CPPFLAGS' 12290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12292ac_compiler_gnu=$ac_cv_c_compiler_gnu 12293 12294CC=$lt_save_CC 12295CFLAGS=$lt_save_CFLAGS 12296 12297 12298PACKAGE_VERSION_MAJOR=${PACKAGE_VERSION%.*.*} 12299PACKAGE_VERSION_MINOR=${PACKAGE_VERSION%.*}; PACKAGE_VERSION_MINOR=${PACKAGE_VERSION_MINOR#*.} 12300PACKAGE_VERSION_SUBMINOR=${PACKAGE_VERSION#*.*.} 12301 12302 12303 12304ac_config_files="$ac_config_files src/microhttpd/microhttpd_dll_res.rc" 12305 12306 12307MHD_LIB_CPPFLAGS="" 12308MHD_LIB_CFLAGS="" 12309MHD_LIB_LDFLAGS="" 12310MHD_LIBDEPS="" 12311 12312 12313# Check whether --with-threads was given. 12314if test "${with_threads+set}" = set; then : 12315 withval=$with_threads; 12316else 12317 with_threads='auto' 12318fi 12319 12320test "x$with_threads" = "xwin32" && with_threads='w32' 12321test "x$with_threads" = "xpthreads" && with_threads='posix' 12322 12323# Check for posix threads support 12324 12325 12326ac_ext=c 12327ac_cpp='$CPP $CPPFLAGS' 12328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12330ac_compiler_gnu=$ac_cv_c_compiler_gnu 12331 12332ax_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: 12341if 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 12355extern "C" 12356#endif 12357char pthread_join (); 12358int 12359main () 12360{ 12361return pthread_join (); 12362 ; 12363 return 0; 12364} 12365_ACEOF 12366if ac_fn_c_try_link "$LINENO"; then : 12367 ax_pthread_ok=yes 12368fi 12369rm -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" 12379fi 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 12391ax_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 12413case ${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 ;; 12430esac 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; } 12438save_CFLAGS="$CFLAGS" 12439ax_pthread_extra_flags="-Werror" 12440CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument" 12441cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12442/* end confdefs.h. */ 12443int foo(void); 12444int 12445main () 12446{ 12447foo() 12448 ; 12449 return 0; 12450} 12451_ACEOF 12452if ac_fn_c_try_compile "$LINENO"; then : 12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12454$as_echo "yes" >&6; } 12455else 12456 ax_pthread_extra_flags= 12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12458$as_echo "no" >&6; } 12459fi 12460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12461CFLAGS="$save_CFLAGS" 12462 12463if test x"$ax_pthread_ok" = xno; then 12464for 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. 12480set 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; } 12483if ${ac_cv_prog_ax_pthread_config+:} false; then : 12484 $as_echo_n "(cached) " >&6 12485else 12486 if test -n "$ax_pthread_config"; then 12487 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 12488else 12489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12490for as_dir in $PATH 12491do 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 12500done 12501 done 12502IFS=$as_save_IFS 12503 12504 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 12505fi 12506fi 12507ax_pthread_config=$ac_cv_prog_ax_pthread_config 12508if 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; } 12511else 12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12513$as_echo "no" >&6; } 12514fi 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; } 12548int 12549main () 12550{ 12551pthread_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 12561if ac_fn_c_try_link "$LINENO"; then : 12562 ax_pthread_ok=yes 12563fi 12564rm -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="" 12578done 12579fi 12580 12581# Various other checks: 12582if 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> 12596int 12597main () 12598{ 12599int attr = $attr; return attr /* ; */ 12600 ; 12601 return 0; 12602} 12603_ACEOF 12604if ac_fn_c_try_link "$LINENO"; then : 12605 attr_name=$attr; break 12606fi 12607rm -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 12614cat >>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; } 12643if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 12644 $as_echo_n "(cached) " >&6 12645else 12646 12647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12648/* end confdefs.h. */ 12649#include <pthread.h> 12650int 12651main () 12652{ 12653int i = PTHREAD_PRIO_INHERIT; 12654 ; 12655 return 0; 12656} 12657_ACEOF 12658if ac_fn_c_try_link "$LINENO"; then : 12659 ax_cv_PTHREAD_PRIO_INHERIT=yes 12660else 12661 ax_cv_PTHREAD_PRIO_INHERIT=no 12662fi 12663rm -f core conftest.err conftest.$ac_objext \ 12664 conftest$ac_exeext conftest.$ac_ext 12665 12666fi 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 12673fi 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" 12689fi ;; #( 12690 *) : 12691 for ac_prog in ${CC}_r 12692do 12693 # Extract the first word of "$ac_prog", so it can be a program name with args. 12694set 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; } 12697if ${ac_cv_prog_PTHREAD_CC+:} false; then : 12698 $as_echo_n "(cached) " >&6 12699else 12700 if test -n "$PTHREAD_CC"; then 12701 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 12702else 12703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12704for as_dir in $PATH 12705do 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 12714done 12715 done 12716IFS=$as_save_IFS 12717 12718fi 12719fi 12720PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 12721if test -n "$PTHREAD_CC"; then 12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 12723$as_echo "$PTHREAD_CC" >&6; } 12724else 12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12726$as_echo "no" >&6; } 12727fi 12728 12729 12730 test -n "$PTHREAD_CC" && break 12731done 12732test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 12733 ;; 12734esac ;; #( 12735 *) : 12736 ;; 12737esac 12738 ;; 12739 esac 12740 fi 12741fi 12742 12743test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 12744 12745 12746 12747 12748 12749# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 12750if test x"$ax_pthread_ok" = xyes; then 12751 HAVE_POSIX_THREADS='yes' 12752 : 12753else 12754 ax_pthread_ok=no 12755 HAVE_POSIX_THREADS='no' 12756fi 12757ac_ext=c 12758ac_cpp='$CPP $CPPFLAGS' 12759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12761ac_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='#' 12767else 12768 HAVE_POSIX_THREADS_TRUE='#' 12769 HAVE_POSIX_THREADS_FALSE= 12770fi 12771 12772# Simple check for W32 threads support 12773ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" 12774if 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> 12781int 12782main () 12783{ 12784 HANDLE h = CreateThread(NULL, 0, NULL, NULL, 0, NULL); 12785 ; 12786 return 0; 12787} 12788_ACEOF 12789if 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 12795else 12796 12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12798$as_echo "no" >&6; } 12799 HAVE_W32_THREADS='no' 12800 12801fi 12802rm -f core conftest.err conftest.$ac_objext \ 12803 conftest$ac_exeext conftest.$ac_ext 12804 12805else 12806 HAVE_W32_THREADS='no' 12807fi 12808 12809 12810 12811# for pkg-config 12812MHD_LIBDEPS="" 12813MHD_REQ_PRIVATE='' 12814# Check system type 12815case "$host_os" in 12816*darwin* | *rhapsody* | *macosx*) 12817 12818cat >>confdefs.h <<_ACEOF 12819#define OSX 1 12820_ACEOF 12821 12822 CFLAGS="-no-cpp-precomp -fno-common $CFLAGS" 12823 ;; 12824freebsd*) 12825 12826cat >>confdefs.h <<_ACEOF 12827#define SOMEBSD 1 12828_ACEOF 12829 12830 12831cat >>confdefs.h <<_ACEOF 12832#define FREEBSD 1 12833_ACEOF 12834 12835 ;; 12836openbsd*) 12837 12838cat >>confdefs.h <<_ACEOF 12839#define SOMEBSD 1 12840_ACEOF 12841 12842 12843cat >>confdefs.h <<_ACEOF 12844#define OPENBSD 1 12845_ACEOF 12846 12847 ;; 12848netbsd*) 12849 12850cat >>confdefs.h <<_ACEOF 12851#define SOMEBSD 1 12852_ACEOF 12853 12854 12855cat >>confdefs.h <<_ACEOF 12856#define NETBSD 1 12857_ACEOF 12858 12859 ;; 12860*solaris*) 12861 12862cat >>confdefs.h <<_ACEOF 12863#define SOLARIS 1 12864_ACEOF 12865 12866 12867cat >>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; } 12873if ${ac_cv_search_gethostbyname+:} false; then : 12874 $as_echo_n "(cached) " >&6 12875else 12876 ac_func_search_save_LIBS=$LIBS 12877cat 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 12884extern "C" 12885#endif 12886char gethostbyname (); 12887int 12888main () 12889{ 12890return gethostbyname (); 12891 ; 12892 return 0; 12893} 12894_ACEOF 12895for 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 12904fi 12905rm -f core conftest.err conftest.$ac_objext \ 12906 conftest$ac_exeext 12907 if ${ac_cv_search_gethostbyname+:} false; then : 12908 break 12909fi 12910done 12911if ${ac_cv_search_gethostbyname+:} false; then : 12912 12913else 12914 ac_cv_search_gethostbyname=no 12915fi 12916rm conftest.$ac_ext 12917LIBS=$ac_func_search_save_LIBS 12918fi 12919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 12920$as_echo "$ac_cv_search_gethostbyname" >&6; } 12921ac_res=$ac_cv_search_gethostbyname 12922if test "$ac_res" != no; then : 12923 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12924 12925fi 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; } 12929if ${ac_cv_search_socket+:} false; then : 12930 $as_echo_n "(cached) " >&6 12931else 12932 ac_func_search_save_LIBS=$LIBS 12933cat 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 12940extern "C" 12941#endif 12942char socket (); 12943int 12944main () 12945{ 12946return socket (); 12947 ; 12948 return 0; 12949} 12950_ACEOF 12951for 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 12960fi 12961rm -f core conftest.err conftest.$ac_objext \ 12962 conftest$ac_exeext 12963 if ${ac_cv_search_socket+:} false; then : 12964 break 12965fi 12966done 12967if ${ac_cv_search_socket+:} false; then : 12968 12969else 12970 ac_cv_search_socket=no 12971fi 12972rm conftest.$ac_ext 12973LIBS=$ac_func_search_save_LIBS 12974fi 12975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 12976$as_echo "$ac_cv_search_socket" >&6; } 12977ac_res=$ac_cv_search_socket 12978if test "$ac_res" != no; then : 12979 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12980 12981fi 12982 12983 ;; 12984*arm-linux*) 12985 12986cat >>confdefs.h <<_ACEOF 12987#define LINUX 1 12988_ACEOF 12989 12990 12991cat >>confdefs.h <<_ACEOF 12992#define HAVE_LISTEN_SHUTDOWN 1 12993_ACEOF 12994 12995 CFLAGS="-fPIC -pipe $CFLAGS" 12996 ;; 12997*linux*) 12998 12999cat >>confdefs.h <<_ACEOF 13000#define LINUX 1 13001_ACEOF 13002 13003 13004cat >>confdefs.h <<_ACEOF 13005#define HAVE_LISTEN_SHUTDOWN 1 13006_ACEOF 13007 13008 ;; 13009*cygwin*) 13010 13011cat >>confdefs.h <<_ACEOF 13012#define CYGWIN 1 13013_ACEOF 13014 13015 os_is_windows=yes 13016 ;; 13017*mingw*) 13018 13019cat >>confdefs.h <<_ACEOF 13020#define MINGW 1 13021_ACEOF 13022 13023 13024cat >>confdefs.h <<_ACEOF 13025#define WINDOWS 1 13026_ACEOF 13027 13028 LIBS="$LIBS -lws2_32" 13029 for ac_header in winsock2.h ws2tcpip.h 13030do : 13031 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13032ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13033if 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 13038else 13039 as_fn_error $? "Winsock2 headers are required for W32" "$LINENO" 5 13040fi 13041 13042done 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; } 13046if ${ac_cv_use_ms_lib_tool+:} false; then : 13047 $as_echo_n "(cached) " >&6 13048else 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 13056fi 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 13069cat >>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 13078cat >>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;; 13087esac 13088 13089if 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 13100elif 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 13111else 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 13126fi 13127 13128if 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" 13135elif test "x$USE_THREADS" = "xw32"; then 13136 13137$as_echo "#define MHD_USE_W32_THREADS 1" >>confdefs.h 13138 13139fi 13140 if test "x$USE_THREADS" = "xposix"; then 13141 USE_POSIX_THREADS_TRUE= 13142 USE_POSIX_THREADS_FALSE='#' 13143else 13144 USE_POSIX_THREADS_TRUE='#' 13145 USE_POSIX_THREADS_FALSE= 13146fi 13147 13148 if test "x$USE_THREADS" = "xw32"; then 13149 USE_W32_THREADS_TRUE= 13150 USE_W32_THREADS_FALSE='#' 13151else 13152 USE_W32_THREADS_TRUE='#' 13153 USE_W32_THREADS_FALSE= 13154fi 13155 13156 13157 13158 if test "x$os_is_native_w32" = "xyes"; then 13159 HAVE_W32_TRUE= 13160 HAVE_W32_FALSE='#' 13161else 13162 HAVE_W32_TRUE='#' 13163 HAVE_W32_FALSE= 13164fi 13165 13166w32_shared_lib_exp=no 13167if 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 13176fi 13177 if test "x$w32_shared_lib_exp" = "xyes"; then 13178 W32_SHARED_LIB_EXP_TRUE= 13179 W32_SHARED_LIB_EXP_FALSE='#' 13180else 13181 W32_SHARED_LIB_EXP_TRUE='#' 13182 W32_SHARED_LIB_EXP_FALSE= 13183fi 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='#' 13188else 13189 USE_MS_LIB_TOOL_TRUE='#' 13190 USE_MS_LIB_TOOL_FALSE= 13191fi 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; } 13199if ${ax_cv_check_ldflags___fno_strict_aliasing+:} false; then : 13200 $as_echo_n "(cached) " >&6 13201else 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 13208int 13209main () 13210{ 13211 13212 ; 13213 return 0; 13214} 13215_ACEOF 13216if ac_fn_c_try_link "$LINENO"; then : 13217 ax_cv_check_ldflags___fno_strict_aliasing=yes 13218else 13219 ax_cv_check_ldflags___fno_strict_aliasing=no 13220fi 13221rm -f core conftest.err conftest.$ac_objext \ 13222 conftest$ac_exeext conftest.$ac_ext 13223 LDFLAGS=$ax_check_save_flags 13224fi 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; } 13227if test x"$ax_cv_check_ldflags___fno_strict_aliasing" = xyes; then : 13228 13229 13230 13231 13232for 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; } 13236if eval \${$as_CACHEVAR+:} false; then : 13237 $as_echo_n "(cached) " >&6 13238else 13239 13240 ax_check_save_flags=$CFLAGS 13241 CFLAGS="$CFLAGS $flag" 13242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13243/* end confdefs.h. */ 13244 13245int 13246main () 13247{ 13248 13249 ; 13250 return 0; 13251} 13252_ACEOF 13253if ac_fn_c_try_compile "$LINENO"; then : 13254 eval "$as_CACHEVAR=yes" 13255else 13256 eval "$as_CACHEVAR=no" 13257fi 13258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13259 CFLAGS=$ax_check_save_flags 13260fi 13261eval ac_res=\$$as_CACHEVAR 13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13263$as_echo "$ac_res" >&6; } 13264if 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 13283else 13284 CFLAGS="$flag" 13285fi 13286 13287else 13288 : 13289fi 13290 13291done 13292 13293else 13294 : 13295fi 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; } 13300if ${ac_cv_c_bigendian+:} false; then : 13301 $as_echo_n "(cached) " >&6 13302else 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 13313if 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 13336fi 13337rm -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 13345int 13346main () 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 13358if 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 13365int 13366main () 13367{ 13368#if BYTE_ORDER != BIG_ENDIAN 13369 not big endian 13370 #endif 13371 13372 ; 13373 return 0; 13374} 13375_ACEOF 13376if ac_fn_c_try_compile "$LINENO"; then : 13377 ac_cv_c_bigendian=yes 13378else 13379 ac_cv_c_bigendian=no 13380fi 13381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13382fi 13383rm -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 13391int 13392main () 13393{ 13394#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 13395 bogus endian macros 13396 #endif 13397 13398 ; 13399 return 0; 13400} 13401_ACEOF 13402if 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 13408int 13409main () 13410{ 13411#ifndef _BIG_ENDIAN 13412 not big endian 13413 #endif 13414 13415 ; 13416 return 0; 13417} 13418_ACEOF 13419if ac_fn_c_try_compile "$LINENO"; then : 13420 ac_cv_c_bigendian=yes 13421else 13422 ac_cv_c_bigendian=no 13423fi 13424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13425fi 13426rm -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. */ 13434short 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 13450int 13451main () 13452{ 13453return use_ascii (foo) == use_ebcdic (foo); 13454 ; 13455 return 0; 13456} 13457_ACEOF 13458if 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 13470fi 13471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13472else 13473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13474/* end confdefs.h. */ 13475$ac_includes_default 13476int 13477main () 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 13493if ac_fn_c_try_run "$LINENO"; then : 13494 ac_cv_c_bigendian=no 13495else 13496 ac_cv_c_bigendian=yes 13497fi 13498rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13499 conftest.$ac_objext conftest.beam conftest.$ac_ext 13500fi 13501 13502 fi 13503fi 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. 13524set 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; } 13527if ${ac_cv_prog_HAVE_CURL_BINARY+:} false; then : 13528 $as_echo_n "(cached) " >&6 13529else 13530 if test -n "$HAVE_CURL_BINARY"; then 13531 ac_cv_prog_HAVE_CURL_BINARY="$HAVE_CURL_BINARY" # Let the user override the test. 13532else 13533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13534for as_dir in $PATH 13535do 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 13544done 13545 done 13546IFS=$as_save_IFS 13547 13548 test -z "$ac_cv_prog_HAVE_CURL_BINARY" && ac_cv_prog_HAVE_CURL_BINARY="no" 13549fi 13550fi 13551HAVE_CURL_BINARY=$ac_cv_prog_HAVE_CURL_BINARY 13552if 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; } 13555else 13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13557$as_echo "no" >&6; } 13558fi 13559 13560 13561 if test "x$HAVE_CURL_BINARY" = "xyes"; then 13562 HAVE_CURL_BINARY_TRUE= 13563 HAVE_CURL_BINARY_FALSE='#' 13564else 13565 HAVE_CURL_BINARY_TRUE='#' 13566 HAVE_CURL_BINARY_FALSE= 13567fi 13568 13569# Extract the first word of "makeinfo", so it can be a program name with args. 13570set 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; } 13573if ${ac_cv_prog_HAVE_MAKEINFO_BINARY+:} false; then : 13574 $as_echo_n "(cached) " >&6 13575else 13576 if test -n "$HAVE_MAKEINFO_BINARY"; then 13577 ac_cv_prog_HAVE_MAKEINFO_BINARY="$HAVE_MAKEINFO_BINARY" # Let the user override the test. 13578else 13579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13580for as_dir in $PATH 13581do 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 13590done 13591 done 13592IFS=$as_save_IFS 13593 13594 test -z "$ac_cv_prog_HAVE_MAKEINFO_BINARY" && ac_cv_prog_HAVE_MAKEINFO_BINARY="no" 13595fi 13596fi 13597HAVE_MAKEINFO_BINARY=$ac_cv_prog_HAVE_MAKEINFO_BINARY 13598if 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; } 13601else 13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13603$as_echo "no" >&6; } 13604fi 13605 13606 13607 if test "x$HAVE_MAKEINFO_BINARY" = "xyes"; then 13608 HAVE_MAKEINFO_BINARY_TRUE= 13609 HAVE_MAKEINFO_BINARY_FALSE='#' 13610else 13611 HAVE_MAKEINFO_BINARY_TRUE='#' 13612 HAVE_MAKEINFO_BINARY_FALSE= 13613fi 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='#' 13618else 13619 W32_STATIC_LIB_TRUE='#' 13620 W32_STATIC_LIB_FALSE= 13621fi 13622 13623 13624 13625# Check whether --enable-doc was given. 13626if test "${enable_doc+set}" = set; then : 13627 enableval=$enable_doc; 13628else 13629 enable_doc=yes 13630fi 13631 13632test "x$enable_doc" = "xno" || enable_doc=yes 13633 if test "x$enable_doc" = "xyes"; then 13634 BUILD_DOC_TRUE= 13635 BUILD_DOC_FALSE='#' 13636else 13637 BUILD_DOC_TRUE='#' 13638 BUILD_DOC_FALSE= 13639fi 13640 13641 13642# Check whether --enable-examples was given. 13643if test "${enable_examples+set}" = set; then : 13644 enableval=$enable_examples; 13645else 13646 enable_examples=yes 13647fi 13648 13649test "x$enable_examples" = "xno" || enable_examples=yes 13650 if test "x$enable_examples" = "xyes"; then 13651 BUILD_EXAMPLES_TRUE= 13652 BUILD_EXAMPLES_FALSE='#' 13653else 13654 BUILD_EXAMPLES_TRUE='#' 13655 BUILD_EXAMPLES_FALSE= 13656fi 13657 13658 13659# Check whether --enable-poll was given. 13660if test "${enable_poll+set}" = set; then : 13661 enableval=$enable_poll; enable_poll=${enableval} 13662else 13663 enable_poll='auto' 13664 13665fi 13666 13667 13668if test "$enable_poll" != "no"; then 13669 if test "$os_is_native_w32" != "yes"; then 13670 for ac_header in poll.h 13671do : 13672 ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default" 13673if 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 13679do : 13680 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 13681if test "x$ac_cv_func_poll" = xyes; then : 13682 cat >>confdefs.h <<_ACEOF 13683#define HAVE_POLL 1 13684_ACEOF 13685 have_poll='yes' 13686else 13687 have_poll='no' 13688fi 13689done 13690 13691 13692fi 13693 13694done 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> 13703int 13704main () 13705{ 13706 13707WSAPOLLFD fda[2]; 13708WSAPoll(fda, 2, 0); 13709 ; 13710 return 0; 13711} 13712_ACEOF 13713if ac_fn_c_try_link "$LINENO"; then : 13714 13715 have_poll='yes' 13716 $as_echo "#define HAVE_POLL 1" >>confdefs.h 13717 13718 13719else 13720 have_poll='no' 13721fi 13722rm -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" 13731fi 13732 13733# Check whether --enable-epoll was given. 13734if test "${enable_epoll+set}" = set; then : 13735 enableval=$enable_epoll; enable_epoll=${enableval} 13736else 13737 enable_epoll='auto' 13738 13739fi 13740 13741 13742if 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" 13745if test "x$ac_cv_header_linux_version_h" = xyes; then : 13746 CPPFLAGS="${CPPFLAGS} -DHAVE_LINUX_VERSION_H" 13747fi 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 13754else 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 13765int 13766main () 13767{ 13768int fd, rc; 13769struct epoll_event ev; 13770fd = epoll_create(128); 13771rc = epoll_wait(fd, &ev, 1, 0); 13772 ; 13773 return 0; 13774} 13775_ACEOF 13776if ac_fn_c_try_link "$LINENO"; then : 13777 ax_cv_have_epoll=yes 13778else 13779 ax_cv_have_epoll=no 13780fi 13781rm -f core conftest.err conftest.$ac_objext \ 13782 conftest$ac_exeext conftest.$ac_ext 13783fi 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 13790else 13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13792$as_echo "no" >&6; } 13793 13794fi 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 13810fi 13811 13812if 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; } 13815if ${mhd_cv_have_epoll_create1+:} false; then : 13816 $as_echo_n "(cached) " >&6 13817else 13818 13819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13820/* end confdefs.h. */ 13821 13822 #include <sys/epoll.h> 13823int 13824main () 13825{ 13826 13827int fd; 13828fd = epoll_create1(EPOLL_CLOEXEC); 13829 ; 13830 return 0; 13831} 13832_ACEOF 13833if ac_fn_c_try_link "$LINENO"; then : 13834 mhd_cv_have_epoll_create1=yes 13835else 13836 mhd_cv_have_epoll_create1=no 13837fi 13838rm -f core conftest.err conftest.$ac_objext \ 13839 conftest$ac_exeext conftest.$ac_ext 13840fi 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 13848fi 13849fi 13850 13851if 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> 13862int 13863main () 13864{ 13865 pthread_setname_np(pthread_self(), "name") 13866 ; 13867 return 0; 13868} 13869_ACEOF 13870if 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; } 13876else 13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13878$as_echo "no" >&6; } 13879fi 13880rm -f core conftest.err conftest.$ac_objext \ 13881 conftest$ac_exeext conftest.$ac_ext 13882 LIBS="$SAVE_LIBS" 13883 CFLAGS="$SAVE_CFLAGS" 13884fi 13885 13886# Check for headers that are ALWAYS required 13887for ac_header in fcntl.h math.h errno.h limits.h stdio.h locale.h sys/stat.h sys/types.h pthread.h 13888do : 13889 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13890ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13891if 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 13896else 13897 as_fn_error $? "Compiling libmicrohttpd requires standard UNIX headers files" "$LINENO" 5 13898fi 13899 13900done 13901 13902 13903# Check for optional headers 13904for 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 13905do : 13906 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13907ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13908if 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 13913fi 13914 13915done 13916 13917 if test "x$ac_cv_header_search_h" = "xyes"; then 13918 HAVE_TSEARCH_TRUE= 13919 HAVE_TSEARCH_FALSE='#' 13920else 13921 HAVE_TSEARCH_TRUE='#' 13922 HAVE_TSEARCH_FALSE= 13923fi 13924 13925 13926ac_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" 13938if 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 13943fi 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. 13952if test "${enable_socketpair+set}" = set; then : 13953 enableval=$enable_socketpair; 13954else 13955 if test "x$os_is_windows" = "xyes"; then : 13956 enable_socketpair=yes 13957else 13958 enable_socketpair=no 13959fi 13960 13961fi 13962 13963 13964if 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; } 13968else 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 13979int 13980main () 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 13991if 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; } 13994else 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 13999fi 14000 14001 14002fi 14003rm -f core conftest.err conftest.$ac_objext \ 14004 conftest$ac_exeext conftest.$ac_ext 14005 14006 14007fi 14008 14009else 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 14015fi 14016 14017 14018fi 14019if test "x$enable_socketpair" = "xyes"; then 14020 14021$as_echo "#define MHD_DONT_USE_PIPES 1" >>confdefs.h 14022 14023fi 14024 14025 14026 14027 14028 for ac_func in $ac_func_list 14029do : 14030 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14031ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14032if 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 14037fi 14038done 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; } 14047cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14048/* end confdefs.h. */ 14049 #include <time.h> 14050int 14051main () 14052{ 14053struct tm now; time_t t; time (&t); gmtime_s (&now, &t) 14054 ; 14055 return 0; 14056} 14057 14058_ACEOF 14059if 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 14067else 14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14069$as_echo "no" >&6; } 14070 14071fi 14072rm -f core conftest.err conftest.$ac_objext \ 14073 conftest$ac_exeext conftest.$ac_ext 14074 14075 14076ac_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" 14087if test "x$ac_cv_have_decl_SOCK_NONBLOCK" = xyes; then : 14088 ac_have_decl=1 14089else 14090 ac_have_decl=0 14091fi 14092 14093cat >>confdefs.h <<_ACEOF 14094#define HAVE_DECL_SOCK_NONBLOCK $ac_have_decl 14095_ACEOF 14096if test $ac_have_decl = 1; then : 14097 14098$as_echo "#define HAVE_SOCK_NONBLOCK 1" >>confdefs.h 14099 14100fi 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; } 14106if ${ac_cv_search_clock_gettime+:} false; then : 14107 $as_echo_n "(cached) " >&6 14108else 14109 ac_func_search_save_LIBS=$LIBS 14110cat 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 14117extern "C" 14118#endif 14119char clock_gettime (); 14120int 14121main () 14122{ 14123return clock_gettime (); 14124 ; 14125 return 0; 14126} 14127_ACEOF 14128for 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 14137fi 14138rm -f core conftest.err conftest.$ac_objext \ 14139 conftest$ac_exeext 14140 if ${ac_cv_search_clock_gettime+:} false; then : 14141 break 14142fi 14143done 14144if ${ac_cv_search_clock_gettime+:} false; then : 14145 14146else 14147 ac_cv_search_clock_gettime=no 14148fi 14149rm conftest.$ac_ext 14150LIBS=$ac_func_search_save_LIBS 14151fi 14152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 14153$as_echo "$ac_cv_search_clock_gettime" >&6; } 14154ac_res=$ac_cv_search_clock_gettime 14155if 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 14162fi 14163 14164 14165# IPv6 14166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6" >&5 14167$as_echo_n "checking for IPv6... " >&6; } 14168cat 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 14185int 14186main () 14187{ 14188 14189int af=AF_INET6; 14190int pf=PF_INET6; 14191struct sockaddr_in6 sa; 14192printf("%d %d %p\n", af, pf, &sa); 14193 14194 ; 14195 return 0; 14196} 14197_ACEOF 14198if ac_fn_c_try_compile "$LINENO"; then : 14199 14200have_inet6=yes; 14201 14202$as_echo "#define HAVE_INET6 1" >>confdefs.h 14203 14204 14205else 14206 14207have_inet6=no 14208 14209fi 14210rm -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 14215ac_fn_c_check_decl "$LINENO" "TCP_CORK" "ac_cv_have_decl_TCP_CORK" "#include <netinet/tcp.h> 14216" 14217if test "x$ac_cv_have_decl_TCP_CORK" = xyes; then : 14218 ac_have_decl=1 14219else 14220 ac_have_decl=0 14221fi 14222 14223cat >>confdefs.h <<_ACEOF 14224#define HAVE_DECL_TCP_CORK $ac_have_decl 14225_ACEOF 14226ac_fn_c_check_decl "$LINENO" "TCP_NOPUSH" "ac_cv_have_decl_TCP_NOPUSH" "#include <netinet/tcp.h> 14227" 14228if test "x$ac_cv_have_decl_TCP_NOPUSH" = xyes; then : 14229 ac_have_decl=1 14230else 14231 ac_have_decl=0 14232fi 14233 14234cat >>confdefs.h <<_ACEOF 14235#define HAVE_DECL_TCP_NOPUSH $ac_have_decl 14236_ACEOF 14237 14238 14239HIDDEN_VISIBILITY_CFLAGS="" 14240case "$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; } 14250if ${ax_cv_check_ldflags___fvisibility_hidden+:} false; then : 14251 $as_echo_n "(cached) " >&6 14252else 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 14259int 14260main () 14261{ 14262 14263 ; 14264 return 0; 14265} 14266_ACEOF 14267if ac_fn_c_try_link "$LINENO"; then : 14268 ax_cv_check_ldflags___fvisibility_hidden=yes 14269else 14270 ax_cv_check_ldflags___fvisibility_hidden=no 14271fi 14272rm -f core conftest.err conftest.$ac_objext \ 14273 conftest$ac_exeext conftest.$ac_ext 14274 LDFLAGS=$ax_check_save_flags 14275fi 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; } 14278if 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; } 14281if ${ax_cv_check_cflags___fvisibility_hidden+:} false; then : 14282 $as_echo_n "(cached) " >&6 14283else 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 14290int 14291main () 14292{ 14293 14294 ; 14295 return 0; 14296} 14297_ACEOF 14298if ac_fn_c_try_compile "$LINENO"; then : 14299 ax_cv_check_cflags___fvisibility_hidden=yes 14300else 14301 ax_cv_check_cflags___fvisibility_hidden=no 14302fi 14303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14304 CFLAGS=$ax_check_save_flags 14305fi 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; } 14308if 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" 14313else 14314 : 14315fi 14316 14317else 14318 : 14319fi 14320 14321 ;; 14322esac 14323 14324 14325# libcurl (required for testing) 14326# Check whether --enable-curl was given. 14327if test "${enable_curl+set}" = set; then : 14328 enableval=$enable_curl; enable_curl=${enableval} 14329fi 14330 14331curl=0 14332if test "$enable_curl" != "no" 14333then 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. 14360if test "${with_libcurl+set}" = set; then : 14361 withval=$with_libcurl; _libcurl_with=$withval 14362else 14363 _libcurl_with=yes 14364fi 14365 14366 14367 if test "$_libcurl_with" != "no" ; then 14368 14369 for ac_prog in gawk mawk nawk awk 14370do 14371 # Extract the first word of "$ac_prog", so it can be a program name with args. 14372set 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; } 14375if ${ac_cv_prog_AWK+:} false; then : 14376 $as_echo_n "(cached) " >&6 14377else 14378 if test -n "$AWK"; then 14379 ac_cv_prog_AWK="$AWK" # Let the user override the test. 14380else 14381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14382for as_dir in $PATH 14383do 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 14392done 14393 done 14394IFS=$as_save_IFS 14395 14396fi 14397fi 14398AWK=$ac_cv_prog_AWK 14399if test -n "$AWK"; then 14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 14401$as_echo "$AWK" >&6; } 14402else 14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14404$as_echo "no" >&6; } 14405fi 14406 14407 14408 test -n "$AWK" && break 14409done 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. 14420set 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; } 14423if ${ac_cv_path__libcurl_config+:} false; then : 14424 $as_echo_n "(cached) " >&6 14425else 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 14432for as_dir in "$withval/bin" 14433do 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 14442done 14443 done 14444IFS=$as_save_IFS 14445 14446 ;; 14447esac 14448fi 14449_libcurl_config=$ac_cv_path__libcurl_config 14450if test -n "$_libcurl_config"; then 14451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5 14452$as_echo "$_libcurl_config" >&6; } 14453else 14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14455$as_echo "no" >&6; } 14456fi 14457 14458 14459 else 14460 # Extract the first word of "curl-config", so it can be a program name with args. 14461set 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; } 14464if ${ac_cv_path__libcurl_config+:} false; then : 14465 $as_echo_n "(cached) " >&6 14466else 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 14473for as_dir in $PATH 14474do 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 14483done 14484 done 14485IFS=$as_save_IFS 14486 14487 ;; 14488esac 14489fi 14490_libcurl_config=$ac_cv_path__libcurl_config 14491if test -n "$_libcurl_config"; then 14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5 14493$as_echo "$_libcurl_config" >&6; } 14494else 14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14496$as_echo "no" >&6; } 14497fi 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; } 14505if ${libcurl_cv_lib_curl_version+:} false; then : 14506 $as_echo_n "(cached) " >&6 14507else 14508 libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'` 14509fi 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; } 14519if ${libcurl_cv_lib_version_ok+:} false; then : 14520 $as_echo_n "(cached) " >&6 14521else 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 14529fi 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; } 14573if ${libcurl_cv_lib_curl_usable+:} false; then : 14574 $as_echo_n "(cached) " >&6 14575else 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> 14585int 14586main () 14587{ 14588 14589/* Try and use a few common options to force a failure if we are 14590 missing symbols or can't link. */ 14591int x; 14592curl_easy_setopt(NULL,CURLOPT_URL,NULL); 14593x=CURL_ERROR_SIZE; 14594x=CURLOPT_WRITEFUNCTION; 14595x=CURLOPT_FILE; 14596x=CURLOPT_ERRORBUFFER; 14597x=CURLOPT_STDERR; 14598x=CURLOPT_VERBOSE; 14599if (x) ; 14600 14601 ; 14602 return 0; 14603} 14604_ACEOF 14605if ac_fn_c_try_link "$LINENO"; then : 14606 libcurl_cv_lib_curl_usable=yes 14607else 14608 libcurl_cv_lib_curl_usable=no 14609fi 14610rm -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 14618fi 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" 14633if test "x$ac_cv_func_curl_free" = xyes; then : 14634 14635else 14636 14637$as_echo "#define curl_free free" >>confdefs.h 14638 14639fi 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 14726fi 14727if test "$enable_curl" != "no" 14728then 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 14742fi 14743 if test "x$enable_curl" = "xyes"; then 14744 HAVE_CURL_TRUE= 14745 HAVE_CURL_FALSE='#' 14746else 14747 HAVE_CURL_TRUE='#' 14748 HAVE_CURL_FALSE= 14749fi 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; } 14754if ${ac_cv_lib_magic_magic_open+:} false; then : 14755 $as_echo_n "(cached) " >&6 14756else 14757 ac_check_lib_save_LIBS=$LIBS 14758LIBS="-lmagic $LIBS" 14759cat 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 14766extern "C" 14767#endif 14768char magic_open (); 14769int 14770main () 14771{ 14772return magic_open (); 14773 ; 14774 return 0; 14775} 14776_ACEOF 14777if ac_fn_c_try_link "$LINENO"; then : 14778 ac_cv_lib_magic_magic_open=yes 14779else 14780 ac_cv_lib_magic_magic_open=no 14781fi 14782rm -f core conftest.err conftest.$ac_objext \ 14783 conftest$ac_exeext conftest.$ac_ext 14784LIBS=$ac_check_lib_save_LIBS 14785fi 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; } 14788if test "x$ac_cv_lib_magic_magic_open" = xyes; then : 14789 for ac_header in magic.h 14790do : 14791 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default" 14792if 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='#' 14799else 14800 HAVE_MAGIC_TRUE='#' 14801 HAVE_MAGIC_FALSE= 14802fi 14803 14804else 14805 if false; then 14806 HAVE_MAGIC_TRUE= 14807 HAVE_MAGIC_FALSE='#' 14808else 14809 HAVE_MAGIC_TRUE='#' 14810 HAVE_MAGIC_FALSE= 14811fi 14812 14813fi 14814 14815done 14816 14817else 14818 if false; then 14819 HAVE_MAGIC_TRUE= 14820 HAVE_MAGIC_FALSE='#' 14821else 14822 HAVE_MAGIC_TRUE='#' 14823 HAVE_MAGIC_FALSE= 14824fi 14825 14826fi 14827 14828 14829 14830# optional: libmicrospdy support. Enabled by default if not on W32 14831# Check whether --enable-spdy was given. 14832if test "${enable_spdy+set}" = set; then : 14833 enableval=$enable_spdy; enable_spdy=${enableval} 14834else 14835 if test "x$os_is_windows" = "xyes"; then : 14836 enable_spdy=no 14837fi 14838fi 14839 14840 14841if test "$enable_spdy" != "no" 14842then 14843 14844 found=false 14845 14846# Check whether --with-openssl was given. 14847if 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 14857else 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. 14862set 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; } 14865if ${ac_cv_path_PKG_CONFIG+:} false; then : 14866 $as_echo_n "(cached) " >&6 14867else 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 14874for as_dir in $PATH 14875do 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 14884done 14885 done 14886IFS=$as_save_IFS 14887 14888 ;; 14889esac 14890fi 14891PKG_CONFIG=$ac_cv_path_PKG_CONFIG 14892if test -n "$PKG_CONFIG"; then 14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 14894$as_echo "$PKG_CONFIG" >&6; } 14895else 14896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14897$as_echo "no" >&6; } 14898fi 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 14916fi 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> 14963int 14964main () 14965{ 14966SSL_new(NULL) 14967 ; 14968 return 0; 14969} 14970_ACEOF 14971if 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 14977else 14978 14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14980$as_echo "no" >&6; } 14981 have_openssl=no 14982 14983fi 14984rm -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 15000do : 15001 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15002ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15003if 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 15008else 15009 have_openssl=no 15010fi 15011 15012done 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" 15022if 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" 15025if test "x$ac_cv_func_SSL_library_init" = xyes; then : 15026 have_openssl=yes 15027else 15028 have_openssl=no 15029fi 15030 15031 15032else 15033 have_openssl=no 15034fi 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 15047fi 15048 have_openssl=no 15049 enable_spdy=no 15050 fi 15051else 15052 # OpenSSL is used only for libmicrospdy 15053 have_openssl=no 15054fi 15055 if test "x$have_openssl" = "xyes"; then 15056 HAVE_OPENSSL_TRUE= 15057 HAVE_OPENSSL_FALSE='#' 15058else 15059 HAVE_OPENSSL_TRUE='#' 15060 HAVE_OPENSSL_FALSE= 15061fi 15062 15063 15064if test "$enable_spdy" = "yes" 15065then 15066 15067$as_echo "#define SPDY_SUPPORT 1" >>confdefs.h 15068 15069else 15070 15071$as_echo "#define SPDY_SUPPORT 0" >>confdefs.h 15072 15073fi 15074 if test "x$enable_spdy" != "xno"; then 15075 ENABLE_SPDY_TRUE= 15076 ENABLE_SPDY_FALSE='#' 15077else 15078 ENABLE_SPDY_TRUE='#' 15079 ENABLE_SPDY_FALSE= 15080fi 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 15088SPDY_LIBDEPS="$OPENSSL_LIBS" 15089 15090SPDY_LIB_LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" 15091SPDY_LIB_CFLAGS="$CFLAGS" 15092SPDY_LIB_CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" 15093 15094 15095 15096# for pkg-config 15097 15098 15099for ac_header in spdylay/spdylay.h 15100do : 15101 ac_fn_c_check_header_mongrel "$LINENO" "spdylay/spdylay.h" "ac_cv_header_spdylay_spdylay_h" "$ac_includes_default" 15102if 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" 15107else 15108 have_spdylay="no" 15109fi 15110 15111done 15112 15113 if test "x$have_spdylay" = "xyes"; then 15114 HAVE_SPDYLAY_TRUE= 15115 HAVE_SPDYLAY_FALSE='#' 15116else 15117 HAVE_SPDYLAY_TRUE='#' 15118 HAVE_SPDYLAY_FALSE= 15119fi 15120 15121 15122# large file support (> 4 GB) 15123# Check whether --enable-largefile was given. 15124if test "${enable_largefile+set}" = set; then : 15125 enableval=$enable_largefile; 15126fi 15127 15128if 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; } 15132if ${ac_cv_sys_largefile_CC+:} false; then : 15133 $as_echo_n "(cached) " >&6 15134else 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]; 15152int 15153main () 15154{ 15155 15156 ; 15157 return 0; 15158} 15159_ACEOF 15160 if ac_fn_c_try_compile "$LINENO"; then : 15161 break 15162fi 15163rm -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 15167fi 15168rm -f core conftest.err conftest.$ac_objext 15169 break 15170 done 15171 CC=$ac_save_CC 15172 rm -f conftest.$ac_ext 15173 fi 15174fi 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; } 15183if ${ac_cv_sys_file_offset_bits+:} false; then : 15184 $as_echo_n "(cached) " >&6 15185else 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]; 15198int 15199main () 15200{ 15201 15202 ; 15203 return 0; 15204} 15205_ACEOF 15206if ac_fn_c_try_compile "$LINENO"; then : 15207 ac_cv_sys_file_offset_bits=no; break 15208fi 15209rm -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]; 15222int 15223main () 15224{ 15225 15226 ; 15227 return 0; 15228} 15229_ACEOF 15230if ac_fn_c_try_compile "$LINENO"; then : 15231 ac_cv_sys_file_offset_bits=64; break 15232fi 15233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15234 ac_cv_sys_file_offset_bits=unknown 15235 break 15236done 15237fi 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; } 15240case $ac_cv_sys_file_offset_bits in #( 15241 no | unknown) ;; 15242 *) 15243cat >>confdefs.h <<_ACEOF 15244#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 15245_ACEOF 15246;; 15247esac 15248rm -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; } 15252if ${ac_cv_sys_large_files+:} false; then : 15253 $as_echo_n "(cached) " >&6 15254else 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]; 15267int 15268main () 15269{ 15270 15271 ; 15272 return 0; 15273} 15274_ACEOF 15275if ac_fn_c_try_compile "$LINENO"; then : 15276 ac_cv_sys_large_files=no; break 15277fi 15278rm -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]; 15291int 15292main () 15293{ 15294 15295 ; 15296 return 0; 15297} 15298_ACEOF 15299if ac_fn_c_try_compile "$LINENO"; then : 15300 ac_cv_sys_large_files=1; break 15301fi 15302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15303 ac_cv_sys_large_files=unknown 15304 break 15305done 15306fi 15307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 15308$as_echo "$ac_cv_sys_large_files" >&6; } 15309case $ac_cv_sys_large_files in #( 15310 no | unknown) ;; 15311 *) 15312cat >>confdefs.h <<_ACEOF 15313#define _LARGE_FILES $ac_cv_sys_large_files 15314_ACEOF 15315;; 15316esac 15317rm -rf conftest* 15318 fi 15319 15320 15321fi 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; } 15325if ${ac_cv_sys_largefile_source+:} false; then : 15326 $as_echo_n "(cached) " >&6 15327else 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> 15333int 15334main () 15335{ 15336int (*fp) (FILE *, off_t, int) = fseeko; 15337 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 15338 ; 15339 return 0; 15340} 15341_ACEOF 15342if ac_fn_c_try_link "$LINENO"; then : 15343 ac_cv_sys_largefile_source=no; break 15344fi 15345rm -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> 15352int 15353main () 15354{ 15355int (*fp) (FILE *, off_t, int) = fseeko; 15356 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 15357 ; 15358 return 0; 15359} 15360_ACEOF 15361if ac_fn_c_try_link "$LINENO"; then : 15362 ac_cv_sys_largefile_source=1; break 15363fi 15364rm -f core conftest.err conftest.$ac_objext \ 15365 conftest$ac_exeext conftest.$ac_ext 15366 ac_cv_sys_largefile_source=unknown 15367 break 15368done 15369fi 15370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 15371$as_echo "$ac_cv_sys_largefile_source" >&6; } 15372case $ac_cv_sys_largefile_source in #( 15373 no | unknown) ;; 15374 *) 15375cat >>confdefs.h <<_ACEOF 15376#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 15377_ACEOF 15378;; 15379esac 15380rm -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. 15385if test $ac_cv_sys_largefile_source != unknown; then 15386 15387$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 15388 15389fi 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. 15396if test "${enable_messages+set}" = set; then : 15397 enableval=$enable_messages; enable_messages=${enableval} 15398else 15399 enable_messages=yes 15400fi 15401 15402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_messages" >&5 15403$as_echo "$enable_messages" >&6; } 15404if test "$enable_messages" = "yes" 15405then 15406 15407$as_echo "#define HAVE_MESSAGES 1" >>confdefs.h 15408 15409else 15410 15411$as_echo "#define HAVE_MESSAGES 0" >>confdefs.h 15412 15413fi 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. 15420if test "${enable_postprocessor+set}" = set; then : 15421 enableval=$enable_postprocessor; enable_postprocessor=${enableval} 15422else 15423 enable_postprocessor=yes 15424fi 15425 15426test "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='#' 15432else 15433 HAVE_POSTPROCESSOR_TRUE='#' 15434 HAVE_POSTPROCESSOR_FALSE= 15435fi 15436 15437if test "x$enable_postprocessor" != "xno" 15438then 15439 15440$as_echo "#define HAVE_POSTPROCESSOR 1" >>confdefs.h 15441 15442fi 15443 15444 15445# optional: have zzuf, socat? 15446# Extract the first word of "zzuf", so it can be a program name with args. 15447set 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; } 15450if ${ac_cv_prog_have_zzuf+:} false; then : 15451 $as_echo_n "(cached) " >&6 15452else 15453 if test -n "$have_zzuf"; then 15454 ac_cv_prog_have_zzuf="$have_zzuf" # Let the user override the test. 15455else 15456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15457for as_dir in $PATH 15458do 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 15467done 15468 done 15469IFS=$as_save_IFS 15470 15471 test -z "$ac_cv_prog_have_zzuf" && ac_cv_prog_have_zzuf="no" 15472fi 15473fi 15474have_zzuf=$ac_cv_prog_have_zzuf 15475if test -n "$have_zzuf"; then 15476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_zzuf" >&5 15477$as_echo "$have_zzuf" >&6; } 15478else 15479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15480$as_echo "no" >&6; } 15481fi 15482 15483 15484# Extract the first word of "socat", so it can be a program name with args. 15485set 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; } 15488if ${ac_cv_prog_have_socat+:} false; then : 15489 $as_echo_n "(cached) " >&6 15490else 15491 if test -n "$have_socat"; then 15492 ac_cv_prog_have_socat="$have_socat" # Let the user override the test. 15493else 15494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15495for as_dir in $PATH 15496do 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 15505done 15506 done 15507IFS=$as_save_IFS 15508 15509 test -z "$ac_cv_prog_have_socat" && ac_cv_prog_have_socat="no" 15510fi 15511fi 15512have_socat=$ac_cv_prog_have_socat 15513if test -n "$have_socat"; then 15514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_socat" >&5 15515$as_echo "$have_socat" >&6; } 15516else 15517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15518$as_echo "no" >&6; } 15519fi 15520 15521 15522 if test "x$have_zzuf" = "xyes"; then 15523 HAVE_ZZUF_TRUE= 15524 HAVE_ZZUF_FALSE='#' 15525else 15526 HAVE_ZZUF_TRUE='#' 15527 HAVE_ZZUF_FALSE= 15528fi 15529 15530 if test "x$have_socat" = "xyes"; then 15531 HAVE_SOCAT_TRUE= 15532 HAVE_SOCAT_FALSE='#' 15533else 15534 HAVE_SOCAT_TRUE='#' 15535 HAVE_SOCAT_FALSE= 15536fi 15537 15538 15539 15540# libgcrypt linkage: required for HTTPS support 15541 15542 15543 15544 15545# Check whether --with-libgcrypt-prefix was given. 15546if test "${with_libgcrypt_prefix+set}" = set; then : 15547 withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval" 15548else 15549 libgcrypt_config_prefix="" 15550fi 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. 15560set 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; } 15563if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then : 15564 $as_echo_n "(cached) " >&6 15565else 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 15572for as_dir in $PATH 15573do 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 15582done 15583 done 15584IFS=$as_save_IFS 15585 15586 ;; 15587esac 15588fi 15589LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG 15590if test -n "$LIBGCRYPT_CONFIG"; then 15591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5 15592$as_echo "$LIBGCRYPT_CONFIG" >&6; } 15593else 15594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15595$as_echo "no" >&6; } 15596fi 15597 15598 15599fi 15600if 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. 15603set 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; } 15606if ${ac_cv_path_ac_pt_LIBGCRYPT_CONFIG+:} false; then : 15607 $as_echo_n "(cached) " >&6 15608else 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 15615for as_dir in $PATH 15616do 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 15625done 15626 done 15627IFS=$as_save_IFS 15628 15629 ;; 15630esac 15631fi 15632ac_pt_LIBGCRYPT_CONFIG=$ac_cv_path_ac_pt_LIBGCRYPT_CONFIG 15633if 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; } 15636else 15637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15638$as_echo "no" >&6; } 15639fi 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 15645yes:) 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;} 15648ac_tool_warned=yes ;; 15649esac 15650 LIBGCRYPT_CONFIG=$ac_pt_LIBGCRYPT_CONFIG 15651 fi 15652else 15653 LIBGCRYPT_CONFIG="$ac_cv_path_LIBGCRYPT_CONFIG" 15654fi 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 15757if test "x$have_gcrypt" = "xyes" 15758then 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 15765do : 15766 ac_fn_c_check_header_mongrel "$LINENO" "gcrypt.h" "ac_cv_header_gcrypt_h" "$ac_includes_default" 15767if test "x$ac_cv_header_gcrypt_h" = xyes; then : 15768 cat >>confdefs.h <<_ACEOF 15769#define HAVE_GCRYPT_H 1 15770_ACEOF 15771 15772else 15773 have_gcrypt=no 15774fi 15775 15776done 15777 15778 CFLAGS="$SAVE_CFLAGS" 15779 CPPFLAGS="$SAVE_CPPFLAGS" 15780fi 15781 15782# gnutls 15783GNUTLS_CPPFLAGS="" 15784GNUTLS_LDFLAGS="" 15785have_gnutls=no 15786have_gnutls_sni=no 15787have_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. 15792if 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 15812do : 15813 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default" 15814if 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; } 15820if ${ac_cv_lib_gnutls_gnutls_priority_set+:} false; then : 15821 $as_echo_n "(cached) " >&6 15822else 15823 ac_check_lib_save_LIBS=$LIBS 15824LIBS="-lgnutls $LIBS" 15825cat 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 15832extern "C" 15833#endif 15834char gnutls_priority_set (); 15835int 15836main () 15837{ 15838return gnutls_priority_set (); 15839 ; 15840 return 0; 15841} 15842_ACEOF 15843if ac_fn_c_try_link "$LINENO"; then : 15844 ac_cv_lib_gnutls_gnutls_priority_set=yes 15845else 15846 ac_cv_lib_gnutls_gnutls_priority_set=no 15847fi 15848rm -f core conftest.err conftest.$ac_objext \ 15849 conftest$ac_exeext conftest.$ac_ext 15850LIBS=$ac_check_lib_save_LIBS 15851fi 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; } 15854if 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; } 15861if ${ac_cv_lib_gnutls_gnutls_load_file+:} false; then : 15862 $as_echo_n "(cached) " >&6 15863else 15864 ac_check_lib_save_LIBS=$LIBS 15865LIBS="-lgnutls $LIBS" 15866cat 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 15873extern "C" 15874#endif 15875char gnutls_load_file (); 15876int 15877main () 15878{ 15879return gnutls_load_file (); 15880 ; 15881 return 0; 15882} 15883_ACEOF 15884if ac_fn_c_try_link "$LINENO"; then : 15885 ac_cv_lib_gnutls_gnutls_load_file=yes 15886else 15887 ac_cv_lib_gnutls_gnutls_load_file=no 15888fi 15889rm -f core conftest.err conftest.$ac_objext \ 15890 conftest$ac_exeext conftest.$ac_ext 15891LIBS=$ac_check_lib_save_LIBS 15892fi 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; } 15895if 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; } 15898if ${ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw+:} false; then : 15899 $as_echo_n "(cached) " >&6 15900else 15901 ac_check_lib_save_LIBS=$LIBS 15902LIBS="-lgnutls $LIBS" 15903cat 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 15910extern "C" 15911#endif 15912char gnutls_privkey_import_x509_raw (); 15913int 15914main () 15915{ 15916return gnutls_privkey_import_x509_raw (); 15917 ; 15918 return 0; 15919} 15920_ACEOF 15921if ac_fn_c_try_link "$LINENO"; then : 15922 ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw=yes 15923else 15924 ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw=no 15925fi 15926rm -f core conftest.err conftest.$ac_objext \ 15927 conftest$ac_exeext conftest.$ac_ext 15928LIBS=$ac_check_lib_save_LIBS 15929fi 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; } 15932if test "x$ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw" = xyes; then : 15933 have_gnutls_sni=yes 15934fi 15935 15936fi 15937 15938 have_gnutls=yes 15939 15940fi 15941 15942fi 15943 15944done 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 15948fi 15949 LDFLAGS="$SAVE_LDFLAGS" 15950 CPPFLAGS="$SAVE_CPPFLAGS" 15951 ;; 15952 esac 15953 15954else 15955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: automatically" >&5 15956$as_echo "automatically" >&6; } 15957 15958fi 15959 15960 15961 15962 15963 15964 15965 15966 15967 15968if 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. 15971set 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; } 15974if ${ac_cv_path_PKG_CONFIG+:} false; then : 15975 $as_echo_n "(cached) " >&6 15976else 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 15983for as_dir in $PATH 15984do 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 15993done 15994 done 15995IFS=$as_save_IFS 15996 15997 ;; 15998esac 15999fi 16000PKG_CONFIG=$ac_cv_path_PKG_CONFIG 16001if test -n "$PKG_CONFIG"; then 16002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 16003$as_echo "$PKG_CONFIG" >&6; } 16004else 16005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16006$as_echo "no" >&6; } 16007fi 16008 16009 16010fi 16011if 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. 16014set 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; } 16017if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 16018 $as_echo_n "(cached) " >&6 16019else 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 16026for as_dir in $PATH 16027do 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 16036done 16037 done 16038IFS=$as_save_IFS 16039 16040 ;; 16041esac 16042fi 16043ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 16044if 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; } 16047else 16048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16049$as_echo "no" >&6; } 16050fi 16051 16052 if test "x$ac_pt_PKG_CONFIG" = x; then 16053 PKG_CONFIG="" 16054 else 16055 case $cross_compiling:$ac_tool_warned in 16056yes:) 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;} 16059ac_tool_warned=yes ;; 16060esac 16061 PKG_CONFIG=$ac_pt_PKG_CONFIG 16062 fi 16063else 16064 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 16065fi 16066 16067fi 16068if 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 16080fi 16081if test "x$with_gnutls" != "xno" && test "x$have_gnutls" != "xyes"; then : 16082 16083 16084pkg_failed=no 16085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5 16086$as_echo_n "checking for GNUTLS... " >&6; } 16087 16088if 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 16099else 16100 pkg_failed=yes 16101fi 16102 else 16103 pkg_failed=untried 16104fi 16105if 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 16116else 16117 pkg_failed=yes 16118fi 16119 else 16120 pkg_failed=untried 16121fi 16122 16123 16124 16125if test $pkg_failed = yes; then 16126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16127$as_echo "no" >&6; } 16128 16129if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16130 _pkg_short_errors_supported=yes 16131else 16132 _pkg_short_errors_supported=no 16133fi 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 16145do : 16146 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default" 16147if 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; } 16153if ${ac_cv_lib_gnutls_gnutls_priority_set+:} false; then : 16154 $as_echo_n "(cached) " >&6 16155else 16156 ac_check_lib_save_LIBS=$LIBS 16157LIBS="-lgnutls $LIBS" 16158cat 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 16165extern "C" 16166#endif 16167char gnutls_priority_set (); 16168int 16169main () 16170{ 16171return gnutls_priority_set (); 16172 ; 16173 return 0; 16174} 16175_ACEOF 16176if ac_fn_c_try_link "$LINENO"; then : 16177 ac_cv_lib_gnutls_gnutls_priority_set=yes 16178else 16179 ac_cv_lib_gnutls_gnutls_priority_set=no 16180fi 16181rm -f core conftest.err conftest.$ac_objext \ 16182 conftest$ac_exeext conftest.$ac_ext 16183LIBS=$ac_check_lib_save_LIBS 16184fi 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; } 16187if 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; } 16192if ${ac_cv_lib_gnutls_gnutls_load_file+:} false; then : 16193 $as_echo_n "(cached) " >&6 16194else 16195 ac_check_lib_save_LIBS=$LIBS 16196LIBS="-lgnutls $LIBS" 16197cat 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 16204extern "C" 16205#endif 16206char gnutls_load_file (); 16207int 16208main () 16209{ 16210return gnutls_load_file (); 16211 ; 16212 return 0; 16213} 16214_ACEOF 16215if ac_fn_c_try_link "$LINENO"; then : 16216 ac_cv_lib_gnutls_gnutls_load_file=yes 16217else 16218 ac_cv_lib_gnutls_gnutls_load_file=no 16219fi 16220rm -f core conftest.err conftest.$ac_objext \ 16221 conftest$ac_exeext conftest.$ac_ext 16222LIBS=$ac_check_lib_save_LIBS 16223fi 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; } 16226if 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; } 16229if ${ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw+:} false; then : 16230 $as_echo_n "(cached) " >&6 16231else 16232 ac_check_lib_save_LIBS=$LIBS 16233LIBS="-lgnutls $LIBS" 16234cat 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 16241extern "C" 16242#endif 16243char gnutls_privkey_import_x509_raw (); 16244int 16245main () 16246{ 16247return gnutls_privkey_import_x509_raw (); 16248 ; 16249 return 0; 16250} 16251_ACEOF 16252if ac_fn_c_try_link "$LINENO"; then : 16253 ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw=yes 16254else 16255 ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw=no 16256fi 16257rm -f core conftest.err conftest.$ac_objext \ 16258 conftest$ac_exeext conftest.$ac_ext 16259LIBS=$ac_check_lib_save_LIBS 16260fi 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; } 16263if test "x$ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw" = xyes; then : 16264 have_gnutls_sni=yes 16265fi 16266 16267fi 16268 16269 have_gnutls=yes 16270 16271fi 16272 16273fi 16274 16275done 16276 16277 16278elif 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 16284do : 16285 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default" 16286if 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; } 16292if ${ac_cv_lib_gnutls_gnutls_priority_set+:} false; then : 16293 $as_echo_n "(cached) " >&6 16294else 16295 ac_check_lib_save_LIBS=$LIBS 16296LIBS="-lgnutls $LIBS" 16297cat 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 16304extern "C" 16305#endif 16306char gnutls_priority_set (); 16307int 16308main () 16309{ 16310return gnutls_priority_set (); 16311 ; 16312 return 0; 16313} 16314_ACEOF 16315if ac_fn_c_try_link "$LINENO"; then : 16316 ac_cv_lib_gnutls_gnutls_priority_set=yes 16317else 16318 ac_cv_lib_gnutls_gnutls_priority_set=no 16319fi 16320rm -f core conftest.err conftest.$ac_objext \ 16321 conftest$ac_exeext conftest.$ac_ext 16322LIBS=$ac_check_lib_save_LIBS 16323fi 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; } 16326if 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; } 16331if ${ac_cv_lib_gnutls_gnutls_load_file+:} false; then : 16332 $as_echo_n "(cached) " >&6 16333else 16334 ac_check_lib_save_LIBS=$LIBS 16335LIBS="-lgnutls $LIBS" 16336cat 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 16343extern "C" 16344#endif 16345char gnutls_load_file (); 16346int 16347main () 16348{ 16349return gnutls_load_file (); 16350 ; 16351 return 0; 16352} 16353_ACEOF 16354if ac_fn_c_try_link "$LINENO"; then : 16355 ac_cv_lib_gnutls_gnutls_load_file=yes 16356else 16357 ac_cv_lib_gnutls_gnutls_load_file=no 16358fi 16359rm -f core conftest.err conftest.$ac_objext \ 16360 conftest$ac_exeext conftest.$ac_ext 16361LIBS=$ac_check_lib_save_LIBS 16362fi 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; } 16365if 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; } 16368if ${ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw+:} false; then : 16369 $as_echo_n "(cached) " >&6 16370else 16371 ac_check_lib_save_LIBS=$LIBS 16372LIBS="-lgnutls $LIBS" 16373cat 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 16380extern "C" 16381#endif 16382char gnutls_privkey_import_x509_raw (); 16383int 16384main () 16385{ 16386return gnutls_privkey_import_x509_raw (); 16387 ; 16388 return 0; 16389} 16390_ACEOF 16391if ac_fn_c_try_link "$LINENO"; then : 16392 ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw=yes 16393else 16394 ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw=no 16395fi 16396rm -f core conftest.err conftest.$ac_objext \ 16397 conftest$ac_exeext conftest.$ac_ext 16398LIBS=$ac_check_lib_save_LIBS 16399fi 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; } 16402if test "x$ac_cv_lib_gnutls_gnutls_privkey_import_x509_raw" = xyes; then : 16403 have_gnutls_sni=yes 16404fi 16405 16406fi 16407 16408 have_gnutls=yes 16409 16410fi 16411 16412fi 16413 16414done 16415 16416 16417else 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> 16438int 16439main () 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 16453if 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> 16466int 16467main () 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 16480if ac_fn_c_try_link "$LINENO"; then : 16481 have_gnutls_sni=yes 16482else 16483 have_gnutls_sni=no 16484fi 16485rm -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 16490else 16491 16492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16493$as_echo "no" >&6; } 16494 have_gnutls=no 16495 16496fi 16497rm -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;} 16503fi 16504 CPPFLAGS="$SAVE_CPPFLAGS" 16505 CFLAGS="$SAVE_CFLAGS" 16506 LDFLAGS="$SAVE_LDFLAGS" 16507 LIBS="$SAVE_LIBS" 16508 16509fi 16510 16511fi 16512 16513if test "x$have_gnutls" != "xyes" && test "x$with_gnutls" = "xyes"; then : 16514 as_fn_error $? "can't find usable libgnutls" "$LINENO" 5 16515fi 16516 16517 if test "x$have_gnutls" = "xyes"; then 16518 HAVE_GNUTLS_TRUE= 16519 HAVE_GNUTLS_FALSE='#' 16520else 16521 HAVE_GNUTLS_TRUE='#' 16522 HAVE_GNUTLS_FALSE= 16523fi 16524 16525 if test "x$have_gnutls_sni" = "xyes"; then 16526 HAVE_GNUTLS_SNI_TRUE= 16527 HAVE_GNUTLS_SNI_FALSE='#' 16528else 16529 HAVE_GNUTLS_SNI_TRUE='#' 16530 HAVE_GNUTLS_SNI_FALSE= 16531fi 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. 16543if test "${enable_https+set}" = set; then : 16544 enableval=$enable_https; enable_https=${enableval} 16545fi 16546 16547if test "x$enable_https" != "xno" 16548then 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 16561else 16562 16563 if test "x$have_gnutls" = "xyes"; then : 16564 crypt_missing="libgrypt" 16565elif test "x$have_gcrypt" = "xyes"; then : 16566 crypt_missing="libgnutls" 16567else 16568 crypt_missing="libgrypt and libgnutls" 16569fi 16570 if test "x$enable_https" = "xyes" ; then : 16571 as_fn_error $? "HTTPS support cannot be enabled without $crypt_missing." "$LINENO" 5 16572fi 16573 16574$as_echo "#define HTTPS_SUPPORT 0" >>confdefs.h 16575 16576 enable_https=no 16577 MSG_HTTPS="no (lacking $crypt_missing)" 16578 16579fi 16580else 16581 16582$as_echo "#define HTTPS_SUPPORT 0" >>confdefs.h 16583 16584 MSG_HTTPS="no (disabled)" 16585fi 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='#' 16592else 16593 ENABLE_HTTPS_TRUE='#' 16594 ENABLE_HTTPS_FALSE= 16595fi 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. 16602if test "${enable_bauth+set}" = set; then : 16603 enableval=$enable_bauth; enable_bauth=${enableval} 16604else 16605 enable_bauth=yes 16606fi 16607 16608if test "x$enable_bauth" != "xno" 16609then 16610 enable_bauth=yes 16611 16612$as_echo "#define BAUTH_SUPPORT 1" >>confdefs.h 16613 16614else 16615 16616$as_echo "#define BAUTH_SUPPORT 0" >>confdefs.h 16617 16618fi 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='#' 16624else 16625 ENABLE_BAUTH_TRUE='#' 16626 ENABLE_BAUTH_FALSE= 16627fi 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. 16634if test "${enable_dauth+set}" = set; then : 16635 enableval=$enable_dauth; enable_dauth=${enableval} 16636else 16637 enable_dauth=yes 16638fi 16639 16640if test "x$enable_dauth" != "xno" 16641then 16642 enable_dauth=yes 16643 16644$as_echo "#define DAUTH_SUPPORT 1" >>confdefs.h 16645 16646else 16647 16648$as_echo "#define DAUTH_SUPPORT 0" >>confdefs.h 16649 16650fi 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='#' 16656else 16657 ENABLE_DAUTH_TRUE='#' 16658 ENABLE_DAUTH_FALSE= 16659fi 16660 16661 16662 16663 16664MHD_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. 16670if test "${enable_coverage+set}" = set; then : 16671 enableval=$enable_coverage; use_gcov=${enableval} 16672else 16673 use_gcov=no 16674fi 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='#' 16681else 16682 USE_COVERAGE_TRUE='#' 16683 USE_COVERAGE_FALSE= 16684fi 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 16705fi 16706 16707fi ;; #( 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 16717fi 16718 16719fi ;; #( 16720 16721 *mingw*) : 16722 16723 if test -n "$NUMBER_OF_PROCESSORS"; then : 16724 16725 CPU_COUNT="$NUMBER_OF_PROCESSORS" 16726 16727fi ;; #( 16728 16729 *cygwin*) : 16730 16731 if test -n "$NUMBER_OF_PROCESSORS"; then : 16732 16733 CPU_COUNT="$NUMBER_OF_PROCESSORS" 16734 16735fi 16736 ;; #( 16737 *) : 16738 ;; 16739esac 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 16747else 16748 16749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPU_COUNT " >&5 16750$as_echo "$CPU_COUNT " >&6; } 16751 16752fi 16753 16754 16755 16756 16757 16758 16759 16760# for pkg-config 16761if 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 16766else 16767 16768 MHD_REQ_PRIVATE='' 16769 MHD_LIBDEPS_PKGCFG="$MHD_LIBDEPS" 16770 16771fi 16772 16773 16774 16775 16776 16777 16778 16779 16780ac_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 16782cat >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 16844if 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 16865fi 16866rm -f confcache 16867 16868test "x$prefix" = xNONE && prefix=$ac_default_prefix 16869# Let make expand exec_prefix. 16870test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16871 16872DEFS=-DHAVE_CONFIG_H 16873 16874ac_libobjs= 16875ac_ltlibobjs= 16876U= 16877for 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' 16885done 16886LIBOBJS=$ac_libobjs 16887 16888LTLIBOBJS=$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='#' 16902else 16903 am__EXEEXT_TRUE='#' 16904 am__EXEEXT_FALSE= 16905fi 16906 16907if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 16908 as_fn_error $? "conditional \"AMDEP\" was never defined. 16909Usually this means the macro was only invoked conditionally." "$LINENO" 5 16910fi 16911if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16912 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16913Usually this means the macro was only invoked conditionally." "$LINENO" 5 16914fi 16915if test -z "${HAVE_POSIX_THREADS_TRUE}" && test -z "${HAVE_POSIX_THREADS_FALSE}"; then 16916 as_fn_error $? "conditional \"HAVE_POSIX_THREADS\" was never defined. 16917Usually this means the macro was only invoked conditionally." "$LINENO" 5 16918fi 16919if test -z "${USE_POSIX_THREADS_TRUE}" && test -z "${USE_POSIX_THREADS_FALSE}"; then 16920 as_fn_error $? "conditional \"USE_POSIX_THREADS\" was never defined. 16921Usually this means the macro was only invoked conditionally." "$LINENO" 5 16922fi 16923if test -z "${USE_W32_THREADS_TRUE}" && test -z "${USE_W32_THREADS_FALSE}"; then 16924 as_fn_error $? "conditional \"USE_W32_THREADS\" was never defined. 16925Usually this means the macro was only invoked conditionally." "$LINENO" 5 16926fi 16927if test -z "${HAVE_W32_TRUE}" && test -z "${HAVE_W32_FALSE}"; then 16928 as_fn_error $? "conditional \"HAVE_W32\" was never defined. 16929Usually this means the macro was only invoked conditionally." "$LINENO" 5 16930fi 16931if 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. 16933Usually this means the macro was only invoked conditionally." "$LINENO" 5 16934fi 16935if 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. 16937Usually this means the macro was only invoked conditionally." "$LINENO" 5 16938fi 16939 16940if test -z "${HAVE_CURL_BINARY_TRUE}" && test -z "${HAVE_CURL_BINARY_FALSE}"; then 16941 as_fn_error $? "conditional \"HAVE_CURL_BINARY\" was never defined. 16942Usually this means the macro was only invoked conditionally." "$LINENO" 5 16943fi 16944if test -z "${HAVE_MAKEINFO_BINARY_TRUE}" && test -z "${HAVE_MAKEINFO_BINARY_FALSE}"; then 16945 as_fn_error $? "conditional \"HAVE_MAKEINFO_BINARY\" was never defined. 16946Usually this means the macro was only invoked conditionally." "$LINENO" 5 16947fi 16948if test -z "${W32_STATIC_LIB_TRUE}" && test -z "${W32_STATIC_LIB_FALSE}"; then 16949 as_fn_error $? "conditional \"W32_STATIC_LIB\" was never defined. 16950Usually this means the macro was only invoked conditionally." "$LINENO" 5 16951fi 16952if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then 16953 as_fn_error $? "conditional \"BUILD_DOC\" was never defined. 16954Usually this means the macro was only invoked conditionally." "$LINENO" 5 16955fi 16956if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then 16957 as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined. 16958Usually this means the macro was only invoked conditionally." "$LINENO" 5 16959fi 16960if test -z "${HAVE_TSEARCH_TRUE}" && test -z "${HAVE_TSEARCH_FALSE}"; then 16961 as_fn_error $? "conditional \"HAVE_TSEARCH\" was never defined. 16962Usually this means the macro was only invoked conditionally." "$LINENO" 5 16963fi 16964if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then 16965 as_fn_error $? "conditional \"HAVE_CURL\" was never defined. 16966Usually this means the macro was only invoked conditionally." "$LINENO" 5 16967fi 16968if test -z "${HAVE_MAGIC_TRUE}" && test -z "${HAVE_MAGIC_FALSE}"; then 16969 as_fn_error $? "conditional \"HAVE_MAGIC\" was never defined. 16970Usually this means the macro was only invoked conditionally." "$LINENO" 5 16971fi 16972if test -z "${HAVE_MAGIC_TRUE}" && test -z "${HAVE_MAGIC_FALSE}"; then 16973 as_fn_error $? "conditional \"HAVE_MAGIC\" was never defined. 16974Usually this means the macro was only invoked conditionally." "$LINENO" 5 16975fi 16976if test -z "${HAVE_MAGIC_TRUE}" && test -z "${HAVE_MAGIC_FALSE}"; then 16977 as_fn_error $? "conditional \"HAVE_MAGIC\" was never defined. 16978Usually this means the macro was only invoked conditionally." "$LINENO" 5 16979fi 16980if test -z "${HAVE_OPENSSL_TRUE}" && test -z "${HAVE_OPENSSL_FALSE}"; then 16981 as_fn_error $? "conditional \"HAVE_OPENSSL\" was never defined. 16982Usually this means the macro was only invoked conditionally." "$LINENO" 5 16983fi 16984if test -z "${ENABLE_SPDY_TRUE}" && test -z "${ENABLE_SPDY_FALSE}"; then 16985 as_fn_error $? "conditional \"ENABLE_SPDY\" was never defined. 16986Usually this means the macro was only invoked conditionally." "$LINENO" 5 16987fi 16988if test -z "${HAVE_SPDYLAY_TRUE}" && test -z "${HAVE_SPDYLAY_FALSE}"; then 16989 as_fn_error $? "conditional \"HAVE_SPDYLAY\" was never defined. 16990Usually this means the macro was only invoked conditionally." "$LINENO" 5 16991fi 16992if test -z "${HAVE_POSTPROCESSOR_TRUE}" && test -z "${HAVE_POSTPROCESSOR_FALSE}"; then 16993 as_fn_error $? "conditional \"HAVE_POSTPROCESSOR\" was never defined. 16994Usually this means the macro was only invoked conditionally." "$LINENO" 5 16995fi 16996if test -z "${HAVE_ZZUF_TRUE}" && test -z "${HAVE_ZZUF_FALSE}"; then 16997 as_fn_error $? "conditional \"HAVE_ZZUF\" was never defined. 16998Usually this means the macro was only invoked conditionally." "$LINENO" 5 16999fi 17000if test -z "${HAVE_SOCAT_TRUE}" && test -z "${HAVE_SOCAT_FALSE}"; then 17001 as_fn_error $? "conditional \"HAVE_SOCAT\" was never defined. 17002Usually this means the macro was only invoked conditionally." "$LINENO" 5 17003fi 17004if test -z "${HAVE_GNUTLS_TRUE}" && test -z "${HAVE_GNUTLS_FALSE}"; then 17005 as_fn_error $? "conditional \"HAVE_GNUTLS\" was never defined. 17006Usually this means the macro was only invoked conditionally." "$LINENO" 5 17007fi 17008if test -z "${HAVE_GNUTLS_SNI_TRUE}" && test -z "${HAVE_GNUTLS_SNI_FALSE}"; then 17009 as_fn_error $? "conditional \"HAVE_GNUTLS_SNI\" was never defined. 17010Usually this means the macro was only invoked conditionally." "$LINENO" 5 17011fi 17012if test -z "${ENABLE_HTTPS_TRUE}" && test -z "${ENABLE_HTTPS_FALSE}"; then 17013 as_fn_error $? "conditional \"ENABLE_HTTPS\" was never defined. 17014Usually this means the macro was only invoked conditionally." "$LINENO" 5 17015fi 17016if test -z "${ENABLE_BAUTH_TRUE}" && test -z "${ENABLE_BAUTH_FALSE}"; then 17017 as_fn_error $? "conditional \"ENABLE_BAUTH\" was never defined. 17018Usually this means the macro was only invoked conditionally." "$LINENO" 5 17019fi 17020if test -z "${ENABLE_DAUTH_TRUE}" && test -z "${ENABLE_DAUTH_FALSE}"; then 17021 as_fn_error $? "conditional \"ENABLE_DAUTH\" was never defined. 17022Usually this means the macro was only invoked conditionally." "$LINENO" 5 17023fi 17024if test -z "${USE_COVERAGE_TRUE}" && test -z "${USE_COVERAGE_FALSE}"; then 17025 as_fn_error $? "conditional \"USE_COVERAGE\" was never defined. 17026Usually this means the macro was only invoked conditionally." "$LINENO" 5 17027fi 17028 17029: "${CONFIG_STATUS=./config.status}" 17030ac_write_fail=0 17031ac_clean_files_save=$ac_clean_files 17032ac_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;} 17035as_write_fail=0 17036cat >$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 17043debug=false 17044ac_cs_recheck=false 17045ac_cs_silent=false 17046 17047SHELL=\${CONFIG_SHELL-$SHELL} 17048export SHELL 17049_ASEOF 17050cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17051## -------------------- ## 17052## M4sh Initialization. ## 17053## -------------------- ## 17054 17055# Be more Bourne compatible 17056DUALCASE=1; export DUALCASE # for MKS sh 17057if 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 17064else 17065 case `(set -o) 2>/dev/null` in #( 17066 *posix*) : 17067 set -o posix ;; #( 17068 *) : 17069 ;; 17070esac 17071fi 17072 17073 17074as_nl=' 17075' 17076export as_nl 17077# Printing a long string crashes Solaris 7 /usr/bin/printf. 17078as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17079as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17080as_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. 17083if 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 --' 17087elif (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' 17090else 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' 17110fi 17111 17112# The user is always right. 17113if 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 } 17119fi 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.) 17127IFS=" "" $as_nl" 17128 17129# Find who we are. Look in the path if we contain no directory separator. 17130as_myself= 17131case $0 in #(( 17132 *[\\/]* ) as_myself=$0 ;; 17133 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17134for as_dir in $PATH 17135do 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 17140IFS=$as_save_IFS 17141 17142 ;; 17143esac 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. 17146if test "x$as_myself" = x; then 17147 as_myself=$0 17148fi 17149if test ! -f "$as_myself"; then 17150 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17151 exit 1 17152fi 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. 17158for as_var in BASH_ENV ENV MAIL MAILPATH 17159do eval test x\${$as_var+set} = xset \ 17160 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17161done 17162PS1='$ ' 17163PS2='> ' 17164PS4='+ ' 17165 17166# NLS nuisances. 17167LC_ALL=C 17168export LC_ALL 17169LANGUAGE=C 17170export 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. 17181as_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. 17196as_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. 17204as_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. 17214as_fn_unset () 17215{ 17216 { eval $1=; unset $1;} 17217} 17218as_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. 17225if (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 }' 17230else 17231 as_fn_append () 17232 { 17233 eval $1=\$$1\$2 17234 } 17235fi # 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. 17242if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 17243 eval 'as_fn_arith () 17244 { 17245 as_val=$(( $* )) 17246 }' 17247else 17248 as_fn_arith () 17249 { 17250 as_val=`expr "$@" || test $? -eq 1` 17251 } 17252fi # as_fn_arith 17253 17254 17255if expr a : '\(a\)' >/dev/null 2>&1 && 17256 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17257 as_expr=expr 17258else 17259 as_expr=false 17260fi 17261 17262if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17263 as_basename=basename 17264else 17265 as_basename=false 17266fi 17267 17268if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17269 as_dirname=dirname 17270else 17271 as_dirname=false 17272fi 17273 17274as_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. 17294as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17295as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17296as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17297as_cr_digits='0123456789' 17298as_cr_alnum=$as_cr_Letters$as_cr_digits 17299 17300ECHO_C= ECHO_N= ECHO_T= 17301case `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';; 17311esac 17312 17313rm -f conf$$ conf$$.exe conf$$.file 17314if test -d conf$$.dir; then 17315 rm -f conf$$.dir/conf$$.file 17316else 17317 rm -f conf$$.dir 17318 mkdir conf$$.dir 2>/dev/null 17319fi 17320if (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 17334else 17335 as_ln_s='cp -pR' 17336fi 17337rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17338rmdir conf$$.dir 2>/dev/null 17339 17340 17341# as_fn_mkdir_p 17342# ------------- 17343# Create "$as_dir" as a directory, including parents if necessary. 17344as_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 17388if mkdir -p . 2>/dev/null; then 17389 as_mkdir_p='mkdir -p "$as_dir"' 17390else 17391 test -d ./-p && rmdir ./-p 17392 as_mkdir_p=false 17393fi 17394 17395 17396# as_fn_executable_p FILE 17397# ----------------------- 17398# Test if FILE is an executable regular file. 17399as_fn_executable_p () 17400{ 17401 test -f "$1" && test -x "$1" 17402} # as_fn_executable_p 17403as_test_x='test -x' 17404as_executable_p=as_fn_executable_p 17405 17406# Sed expression to map a string onto a valid CPP name. 17407as_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. 17410as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17411 17412 17413exec 6>&1 17414## ----------------------------------- ## 17415## Main body of $CONFIG_STATUS script. ## 17416## ----------------------------------- ## 17417_ASEOF 17418test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17419 17420cat >>$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. 17424ac_log=" 17425This file was extended by libmicrohttpd $as_me 0.9.42, which was 17426generated 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 17434on `(hostname || uname -n) 2>/dev/null | sed 1q` 17435" 17436 17437_ACEOF 17438 17439case $ac_config_files in *" 17440"*) set x $ac_config_files; shift; ac_config_files=$*;; 17441esac 17442 17443case $ac_config_headers in *" 17444"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17445esac 17446 17447 17448cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17449# Files that config.status was made for. 17450config_files="$ac_config_files" 17451config_headers="$ac_config_headers" 17452config_commands="$ac_config_commands" 17453 17454_ACEOF 17455 17456cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17457ac_cs_usage="\ 17458\`$as_me' instantiates files and other configuration actions 17459from templates according to the current configuration. Unless the files 17460and actions are specified as TAGs, all are instantiated by default. 17461 17462Usage: $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 17476Configuration files: 17477$config_files 17478 17479Configuration headers: 17480$config_headers 17481 17482Configuration commands: 17483$config_commands 17484 17485Report bugs to <libmicrohttpd@gnu.org>." 17486 17487_ACEOF 17488cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17489ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17490ac_cs_version="\\ 17491libmicrohttpd config.status 0.9.42 17492configured by $0, generated by GNU Autoconf 2.69, 17493 with options \\"\$ac_cs_config\\" 17494 17495Copyright (C) 2012 Free Software Foundation, Inc. 17496This config.status script is free software; the Free Software Foundation 17497gives unlimited permission to copy, distribute and modify it." 17498 17499ac_pwd='$ac_pwd' 17500srcdir='$srcdir' 17501INSTALL='$INSTALL' 17502MKDIR_P='$MKDIR_P' 17503AWK='$AWK' 17504test -n "\$AWK" || AWK=awk 17505_ACEOF 17506 17507cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17508# The default lists apply if the user does not specify any file. 17509ac_need_defaults=: 17510while test $# != 0 17511do 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' 17558Try \`$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' 17567Try \`$0 --help' for more information." ;; 17568 17569 *) as_fn_append ac_config_targets " $1" 17570 ac_need_defaults=false ;; 17571 17572 esac 17573 shift 17574done 17575 17576ac_configure_extra_args= 17577 17578if $ac_cs_silent; then 17579 exec 6>/dev/null 17580 ac_configure_extra_args="$ac_configure_extra_args --silent" 17581fi 17582 17583_ACEOF 17584cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17585if \$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 "\$@" 17592fi 17593 17594_ACEOF 17595cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17596exec 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 17606cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17607# 17608# INIT-COMMANDS 17609# 17610AMDEP_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 17617sed_quote_subst='$sed_quote_subst' 17618double_quote_subst='$double_quote_subst' 17619delay_variable_subst='$delay_variable_subst' 17620macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17621macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17622AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 17623DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 17624OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17625enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17626enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17627pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17628enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17629SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17630ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17631PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 17632host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17633host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17634host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17635build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17636build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17637build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17638SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17639Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17640GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17641EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17642FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17643LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17644NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17645LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17646max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17647ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17648exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17649lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17650lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17651lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17652lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 17653lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 17654reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17655reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17656deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17657file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17658file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 17659want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 17660sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 17661AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17662AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17663archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 17664STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17665RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17666old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17667old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17668old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17669lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17670CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17671CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17672compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17673GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17674lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17675lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17676lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17677lt_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"`' 17678nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 17679lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 17680objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17681MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17682lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17683lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17684lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17685lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17686lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17687need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17688MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 17689DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17690NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17691LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17692OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17693OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17694libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17695shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17696extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17697archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17698enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17699export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17700whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17701compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17702old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17703old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17704archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17705archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17706module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17707module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17708with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17709allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17710no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17711hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17712hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17713hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17714hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17715hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17716hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17717hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17718inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17719link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17720always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17721export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17722exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17723include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17724prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17725postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 17726file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17727variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17728need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17729need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17730version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17731runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17732shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17733shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17734libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17735library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17736soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17737install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17738postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17739postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17740finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17741finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17742hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17743sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17744sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 17745hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17746enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17747enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17748enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17749old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17750striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17751LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`' 17752reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`' 17753reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`' 17754old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`' 17755compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`' 17756GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`' 17757lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`' 17758lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`' 17759lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`' 17760lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`' 17761lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`' 17762archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`' 17763enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`' 17764export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`' 17765whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`' 17766compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`' 17767old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`' 17768old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`' 17769archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`' 17770archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`' 17771module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`' 17772module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`' 17773with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`' 17774allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`' 17775no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`' 17776hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`' 17777hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`' 17778hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`' 17779hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`' 17780hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`' 17781hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`' 17782hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`' 17783inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`' 17784link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`' 17785always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`' 17786export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`' 17787exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`' 17788include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`' 17789prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`' 17790postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`' 17791file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`' 17792hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`' 17793 17794LTCC='$LTCC' 17795LTCFLAGS='$LTCFLAGS' 17796compiler='$compiler_DEFAULT' 17797 17798# A function that is used when there is no print builtin or printf. 17799func_fallback_echo () 17800{ 17801 eval 'cat <<_LTECHO_EOF 17802\$1 17803_LTECHO_EOF' 17804} 17805 17806# Quote evaled strings. 17807for var in AS \ 17808DLLTOOL \ 17809OBJDUMP \ 17810SHELL \ 17811ECHO \ 17812PATH_SEPARATOR \ 17813SED \ 17814GREP \ 17815EGREP \ 17816FGREP \ 17817LD \ 17818NM \ 17819LN_S \ 17820lt_SP2NL \ 17821lt_NL2SP \ 17822reload_flag \ 17823deplibs_check_method \ 17824file_magic_cmd \ 17825file_magic_glob \ 17826want_nocaseglob \ 17827sharedlib_from_linklib_cmd \ 17828AR \ 17829AR_FLAGS \ 17830archiver_list_spec \ 17831STRIP \ 17832RANLIB \ 17833CC \ 17834CFLAGS \ 17835compiler \ 17836lt_cv_sys_global_symbol_pipe \ 17837lt_cv_sys_global_symbol_to_cdecl \ 17838lt_cv_sys_global_symbol_to_c_name_address \ 17839lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17840nm_file_list_spec \ 17841lt_prog_compiler_no_builtin_flag \ 17842lt_prog_compiler_pic \ 17843lt_prog_compiler_wl \ 17844lt_prog_compiler_static \ 17845lt_cv_prog_compiler_c_o \ 17846need_locks \ 17847MANIFEST_TOOL \ 17848DSYMUTIL \ 17849NMEDIT \ 17850LIPO \ 17851OTOOL \ 17852OTOOL64 \ 17853shrext_cmds \ 17854export_dynamic_flag_spec \ 17855whole_archive_flag_spec \ 17856compiler_needs_object \ 17857with_gnu_ld \ 17858allow_undefined_flag \ 17859no_undefined_flag \ 17860hardcode_libdir_flag_spec \ 17861hardcode_libdir_separator \ 17862exclude_expsyms \ 17863include_expsyms \ 17864file_list_spec \ 17865variables_saved_for_relink \ 17866libname_spec \ 17867library_names_spec \ 17868soname_spec \ 17869install_override_mode \ 17870finish_eval \ 17871old_striplib \ 17872striplib \ 17873LD_RC \ 17874reload_flag_RC \ 17875compiler_RC \ 17876lt_prog_compiler_no_builtin_flag_RC \ 17877lt_prog_compiler_pic_RC \ 17878lt_prog_compiler_wl_RC \ 17879lt_prog_compiler_static_RC \ 17880lt_cv_prog_compiler_c_o_RC \ 17881export_dynamic_flag_spec_RC \ 17882whole_archive_flag_spec_RC \ 17883compiler_needs_object_RC \ 17884with_gnu_ld_RC \ 17885allow_undefined_flag_RC \ 17886no_undefined_flag_RC \ 17887hardcode_libdir_flag_spec_RC \ 17888hardcode_libdir_separator_RC \ 17889exclude_expsyms_RC \ 17890include_expsyms_RC \ 17891file_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 17900done 17901 17902# Double-quote double-evaled strings. 17903for var in reload_cmds \ 17904old_postinstall_cmds \ 17905old_postuninstall_cmds \ 17906old_archive_cmds \ 17907extract_expsyms_cmds \ 17908old_archive_from_new_cmds \ 17909old_archive_from_expsyms_cmds \ 17910archive_cmds \ 17911archive_expsym_cmds \ 17912module_cmds \ 17913module_expsym_cmds \ 17914export_symbols_cmds \ 17915prelink_cmds \ 17916postlink_cmds \ 17917postinstall_cmds \ 17918postuninstall_cmds \ 17919finish_cmds \ 17920sys_lib_search_path_spec \ 17921sys_lib_dlsearch_path_spec \ 17922reload_cmds_RC \ 17923old_archive_cmds_RC \ 17924old_archive_from_new_cmds_RC \ 17925old_archive_from_expsyms_cmds_RC \ 17926archive_cmds_RC \ 17927archive_expsym_cmds_RC \ 17928module_cmds_RC \ 17929module_expsym_cmds_RC \ 17930export_symbols_cmds_RC \ 17931prelink_cmds_RC \ 17932postlink_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 17941done 17942 17943ac_aux_dir='$ac_aux_dir' 17944xsi_shell='$xsi_shell' 17945lt_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. 17949if test -n "\${ZSH_VERSION+set}" ; then 17950 setopt NO_GLOB_SUBST 17951fi 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 17967cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17968 17969# Handling of arguments. 17970for ac_config_target in $ac_config_targets 17971do 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 18000done 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. 18007if $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 18011fi 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 18038ac_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'. 18043if test -n "$CONFIG_FILES"; then 18044 18045 18046ac_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. 18050if test "x$ac_cr" = x; then 18051 eval ac_cr=\$\'\\r\' 18052fi 18053ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18054if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18055 ac_cs_awk_cr='\\r' 18056else 18057 ac_cs_awk_cr=$ac_cr 18058fi 18059 18060echo '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 18070ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18071ac_delim='%!_!# ' 18072for 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 18084done 18085rm -f conf$$subs.sh 18086 18087cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18088cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18089_ACEOF 18090sed -n ' 18091h 18092s/^/S["/; s/!.*/"]=/ 18093p 18094g 18095s/^[^!]*!// 18096:repl 18097t repl 18098s/'"$ac_delim"'$// 18099t delim 18100:nl 18101h 18102s/\(.\{148\}\)..*/\1/ 18103t more1 18104s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18105p 18106n 18107b repl 18108:more1 18109s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18110p 18111g 18112s/.\{148\}// 18113t nl 18114:delim 18115h 18116s/\(.\{148\}\)..*/\1/ 18117t more2 18118s/["\\]/\\&/g; s/^/"/; s/$/"/ 18119p 18120b 18121:more2 18122s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18123p 18124g 18125s/.\{148\}// 18126t delim 18127' <conf$$subs.awk | sed ' 18128/^[^""]/{ 18129 N 18130 s/\n// 18131} 18132' >>$CONFIG_STATUS || ac_write_fail=1 18133rm -f conf$$subs.awk 18134cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18135_ACAWK 18136cat >>"\$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 18163cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18164if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18165 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18166else 18167 cat 18168fi < "$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). 18176if test "x$srcdir" = x.; then 18177 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 18178h 18179s/// 18180s/^/:/ 18181s/[ ]*$/:/ 18182s/:\$(srcdir):/:/g 18183s/:\${srcdir}:/:/g 18184s/:@srcdir@:/:/g 18185s/^:*// 18186s/:*$// 18187x 18188s/\(=[ ]*\).*/\1/ 18189G 18190s/\n// 18191s/^[^=]*=[ ]*$// 18192}' 18193fi 18194 18195cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18196fi # 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'. 18201if test -n "$CONFIG_HEADERS"; then 18202cat >"$ac_tmp/defines.awk" <<\_ACAWK || 18203BEGIN { 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. 18212ac_delim='%!_!# ' 18213for 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 18222done 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 18228ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18229sed -n ' 18230s/.\{148\}/&'"$ac_delim"'/g 18231t rset 18232:rset 18233s/^[ ]*#[ ]*define[ ][ ]*/ / 18234t def 18235d 18236:def 18237s/\\$// 18238t bsnl 18239s/["\\]/\\&/g 18240s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18241D["\1"]=" \3"/p 18242s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 18243d 18244:bsnl 18245s/["\\]/\\&/g 18246s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18247D["\1"]=" \3\\\\\\n"\\/p 18248t cont 18249s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 18250t cont 18251d 18252:cont 18253n 18254s/.\{148\}/&'"$ac_delim"'/g 18255t clear 18256:clear 18257s/\\$// 18258t bsnlc 18259s/["\\]/\\&/g; s/^/"/; s/$/"/p 18260d 18261:bsnlc 18262s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 18263b cont 18264' <confdefs.h | sed ' 18265s/'"$ac_delim"'/"\\\ 18266"/g' >>$CONFIG_STATUS || ac_write_fail=1 18267 18268cat >>$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 18302cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18303 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 18304fi # test -n "$CONFIG_HEADERS" 18305 18306 18307eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 18308shift 18309for ac_tag 18310do 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 18402case "$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 ;; 18412esac 18413ac_abs_top_builddir=$ac_pwd 18414ac_abs_builddir=$ac_pwd$ac_dir_suffix 18415# for backward compatibility: 18416ac_top_builddir=$ac_top_build_prefix 18417 18418case $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 ;; 18431esac 18432ac_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 18452cat >>$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. 18455ac_datarootdir_hack=; ac_datarootdir_seen= 18456ac_sed_dataroot=' 18457/datarootdir/ { 18458 p 18459 q 18460} 18461/@datadir@/p 18462/@docdir@/p 18463/@infodir@/p 18464/@localedir@/p 18465/@mandir@/p' 18466case `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 18472cat >>$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' ;; 18480esac 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? 18486cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18487ac_sed_extra="$ac_vpsub 18488$extrasub 18489_ACEOF 18490cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18491:t 18492/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18493s|@configure_input@|$ac_sed_conf_input|;t t 18494s&@top_builddir@&$ac_top_builddir_sub&;t t 18495s&@top_build_prefix@&$ac_top_build_prefix&;t t 18496s&@srcdir@&$ac_srcdir&;t t 18497s&@abs_srcdir@&$ac_abs_srcdir&;t t 18498s&@top_srcdir@&$ac_top_srcdir&;t t 18499s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18500s&@builddir@&$ac_builddir&;t t 18501s&@abs_builddir@&$ac_abs_builddir&;t t 18502s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18503s&@INSTALL@&$ac_INSTALL&;t t 18504s&@MKDIR_P@&$ac_MKDIR_P&;t t 18505$ac_datarootdir_hack 18506" 18507eval 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 18510test -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' 18515which 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' 18517which 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 18552for _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 18559done 18560echo "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. 18735available_tags="RC " 18736 18737# ### BEGIN LIBTOOL CONFIG 18738 18739# Which release of libtool.m4 was used? 18740macro_version=$macro_version 18741macro_revision=$macro_revision 18742 18743# Assembler program. 18744AS=$lt_AS 18745 18746# DLL creation program. 18747DLLTOOL=$lt_DLLTOOL 18748 18749# Object dumper program. 18750OBJDUMP=$lt_OBJDUMP 18751 18752# Whether or not to build shared libraries. 18753build_libtool_libs=$enable_shared 18754 18755# Whether or not to build static libraries. 18756build_old_libs=$enable_static 18757 18758# What type of objects to build. 18759pic_mode=$pic_mode 18760 18761# Whether or not to optimize for fast installation. 18762fast_install=$enable_fast_install 18763 18764# Shell to use when invoking shell scripts. 18765SHELL=$lt_SHELL 18766 18767# An echo program that protects backslashes. 18768ECHO=$lt_ECHO 18769 18770# The PATH separator for the build system. 18771PATH_SEPARATOR=$lt_PATH_SEPARATOR 18772 18773# The host system. 18774host_alias=$host_alias 18775host=$host 18776host_os=$host_os 18777 18778# The build system. 18779build_alias=$build_alias 18780build=$build 18781build_os=$build_os 18782 18783# A sed program that does not truncate output. 18784SED=$lt_SED 18785 18786# Sed that helps us avoid accidentally triggering echo(1) options like -n. 18787Xsed="\$SED -e 1s/^X//" 18788 18789# A grep program that handles long lines. 18790GREP=$lt_GREP 18791 18792# An ERE matcher. 18793EGREP=$lt_EGREP 18794 18795# A literal string matcher. 18796FGREP=$lt_FGREP 18797 18798# A BSD- or MS-compatible name lister. 18799NM=$lt_NM 18800 18801# Whether we need soft or hard links. 18802LN_S=$lt_LN_S 18803 18804# What is the maximum length of a command? 18805max_cmd_len=$max_cmd_len 18806 18807# Object file suffix (normally "o"). 18808objext=$ac_objext 18809 18810# Executable file suffix (normally ""). 18811exeext=$exeext 18812 18813# whether the shell understands "unset". 18814lt_unset=$lt_unset 18815 18816# turn spaces into newlines. 18817SP2NL=$lt_lt_SP2NL 18818 18819# turn newlines into spaces. 18820NL2SP=$lt_lt_NL2SP 18821 18822# convert \$build file names to \$host format. 18823to_host_file_cmd=$lt_cv_to_host_file_cmd 18824 18825# convert \$build files to toolchain format. 18826to_tool_file_cmd=$lt_cv_to_tool_file_cmd 18827 18828# Method to check whether dependent libraries are shared objects. 18829deplibs_check_method=$lt_deplibs_check_method 18830 18831# Command to use when deplibs_check_method = "file_magic". 18832file_magic_cmd=$lt_file_magic_cmd 18833 18834# How to find potential files when deplibs_check_method = "file_magic". 18835file_magic_glob=$lt_file_magic_glob 18836 18837# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 18838want_nocaseglob=$lt_want_nocaseglob 18839 18840# Command to associate shared and link libraries. 18841sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 18842 18843# The archiver. 18844AR=$lt_AR 18845 18846# Flags to create an archive. 18847AR_FLAGS=$lt_AR_FLAGS 18848 18849# How to feed a file listing to the archiver. 18850archiver_list_spec=$lt_archiver_list_spec 18851 18852# A symbol stripping program. 18853STRIP=$lt_STRIP 18854 18855# Commands used to install an old-style archive. 18856RANLIB=$lt_RANLIB 18857old_postinstall_cmds=$lt_old_postinstall_cmds 18858old_postuninstall_cmds=$lt_old_postuninstall_cmds 18859 18860# Whether to use a lock for old archive extraction. 18861lock_old_archive_extraction=$lock_old_archive_extraction 18862 18863# A C compiler. 18864LTCC=$lt_CC 18865 18866# LTCC compiler flags. 18867LTCFLAGS=$lt_CFLAGS 18868 18869# Take the output of nm and produce a listing of raw symbols and C names. 18870global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18871 18872# Transform the output of nm in a proper C declaration. 18873global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18874 18875# Transform the output of nm in a C name address pair. 18876global_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. 18879global_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. 18882nm_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. 18885lt_sysroot=$lt_sysroot 18886 18887# The name of the directory that contains temporary libtool files. 18888objdir=$objdir 18889 18890# Used to examine libraries when file_magic_cmd begins with "file". 18891MAGIC_CMD=$MAGIC_CMD 18892 18893# Must we lock files when doing compilation? 18894need_locks=$lt_need_locks 18895 18896# Manifest tool. 18897MANIFEST_TOOL=$lt_MANIFEST_TOOL 18898 18899# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 18900DSYMUTIL=$lt_DSYMUTIL 18901 18902# Tool to change global to local symbols on Mac OS X. 18903NMEDIT=$lt_NMEDIT 18904 18905# Tool to manipulate fat objects and archives on Mac OS X. 18906LIPO=$lt_LIPO 18907 18908# ldd/readelf like tool for Mach-O binaries on Mac OS X. 18909OTOOL=$lt_OTOOL 18910 18911# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 18912OTOOL64=$lt_OTOOL64 18913 18914# Old archive suffix (normally "a"). 18915libext=$libext 18916 18917# Shared library suffix (normally ".so"). 18918shrext_cmds=$lt_shrext_cmds 18919 18920# The commands to extract the exported symbol list from a shared archive. 18921extract_expsyms_cmds=$lt_extract_expsyms_cmds 18922 18923# Variables whose values should be saved in libtool wrapper scripts and 18924# restored at link time. 18925variables_saved_for_relink=$lt_variables_saved_for_relink 18926 18927# Do we need the "lib" prefix for modules? 18928need_lib_prefix=$need_lib_prefix 18929 18930# Do we need a version for libraries? 18931need_version=$need_version 18932 18933# Library versioning type. 18934version_type=$version_type 18935 18936# Shared library runtime path variable. 18937runpath_var=$runpath_var 18938 18939# Shared library path variable. 18940shlibpath_var=$shlibpath_var 18941 18942# Is shlibpath searched before the hard-coded library search path? 18943shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18944 18945# Format of library name prefix. 18946libname_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 18950library_names_spec=$lt_library_names_spec 18951 18952# The coded name of the library, if different from the real name. 18953soname_spec=$lt_soname_spec 18954 18955# Permission mode override for installation of shared libraries. 18956install_override_mode=$lt_install_override_mode 18957 18958# Command to use after installation of a shared archive. 18959postinstall_cmds=$lt_postinstall_cmds 18960 18961# Command to use after uninstallation of a shared archive. 18962postuninstall_cmds=$lt_postuninstall_cmds 18963 18964# Commands used to finish a libtool library installation in a directory. 18965finish_cmds=$lt_finish_cmds 18966 18967# As "finish_cmds", except a single script fragment to be evaled but 18968# not shown. 18969finish_eval=$lt_finish_eval 18970 18971# Whether we should hardcode library paths into libraries. 18972hardcode_into_libs=$hardcode_into_libs 18973 18974# Compile-time system search path for libraries. 18975sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18976 18977# Run-time system search path for libraries. 18978sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18979 18980# Whether dlopen is supported. 18981dlopen_support=$enable_dlopen 18982 18983# Whether dlopen of programs is supported. 18984dlopen_self=$enable_dlopen_self 18985 18986# Whether dlopen of statically linked programs is supported. 18987dlopen_self_static=$enable_dlopen_self_static 18988 18989# Commands to strip libraries. 18990old_striplib=$lt_old_striplib 18991striplib=$lt_striplib 18992 18993 18994# The linker used to build libraries. 18995LD=$lt_LD 18996 18997# How to create reloadable object files. 18998reload_flag=$lt_reload_flag 18999reload_cmds=$lt_reload_cmds 19000 19001# Commands used to build an old-style archive. 19002old_archive_cmds=$lt_old_archive_cmds 19003 19004# A language specific compiler. 19005CC=$lt_compiler 19006 19007# Is the compiler the GNU compiler? 19008with_gcc=$GCC 19009 19010# Compiler flag to turn off builtin functions. 19011no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19012 19013# Additional compiler flags for building library objects. 19014pic_flag=$lt_lt_prog_compiler_pic 19015 19016# How to pass a linker flag through the compiler. 19017wl=$lt_lt_prog_compiler_wl 19018 19019# Compiler flag to prevent dynamic linking. 19020link_static_flag=$lt_lt_prog_compiler_static 19021 19022# Does compiler simultaneously support -c and -o options? 19023compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19024 19025# Whether or not to add -lc for building shared libraries. 19026build_libtool_need_lc=$archive_cmds_need_lc 19027 19028# Whether or not to disallow shared libs when runtime libs are static. 19029allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19030 19031# Compiler flag to allow reflexive dlopens. 19032export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19033 19034# Compiler flag to generate shared objects directly from archives. 19035whole_archive_flag_spec=$lt_whole_archive_flag_spec 19036 19037# Whether the compiler copes with passing no objects directly. 19038compiler_needs_object=$lt_compiler_needs_object 19039 19040# Create an old-style archive from a shared archive. 19041old_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. 19044old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19045 19046# Commands used to build a shared archive. 19047archive_cmds=$lt_archive_cmds 19048archive_expsym_cmds=$lt_archive_expsym_cmds 19049 19050# Commands used to build a loadable module if different from building 19051# a shared archive. 19052module_cmds=$lt_module_cmds 19053module_expsym_cmds=$lt_module_expsym_cmds 19054 19055# Whether we are building with GNU ld or not. 19056with_gnu_ld=$lt_with_gnu_ld 19057 19058# Flag that allows shared libraries with undefined symbols to be built. 19059allow_undefined_flag=$lt_allow_undefined_flag 19060 19061# Flag that enforces no undefined symbols. 19062no_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 19066hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19067 19068# Whether we need a single "-rpath" flag with a separated argument. 19069hardcode_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. 19073hardcode_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. 19079hardcode_direct_absolute=$hardcode_direct_absolute 19080 19081# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19082# into the resulting binary. 19083hardcode_minus_L=$hardcode_minus_L 19084 19085# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19086# into the resulting binary. 19087hardcode_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. 19092hardcode_automatic=$hardcode_automatic 19093 19094# Set to yes if linker adds runtime paths of dependent libraries 19095# to runtime path list. 19096inherit_rpath=$inherit_rpath 19097 19098# Whether libtool must link a program against all its dependency libraries. 19099link_all_deplibs=$link_all_deplibs 19100 19101# Set to "yes" if exported symbols are required. 19102always_export_symbols=$always_export_symbols 19103 19104# The commands to list exported symbols. 19105export_symbols_cmds=$lt_export_symbols_cmds 19106 19107# Symbols that should not be listed in the preloaded symbols. 19108exclude_expsyms=$lt_exclude_expsyms 19109 19110# Symbols that must always be exported. 19111include_expsyms=$lt_include_expsyms 19112 19113# Commands necessary for linking programs (against libraries) with templates. 19114prelink_cmds=$lt_prelink_cmds 19115 19116# Commands necessary for finishing linking programs. 19117postlink_cmds=$lt_postlink_cmds 19118 19119# Specify filename containing input files. 19120file_list_spec=$lt_file_list_spec 19121 19122# How to hardcode a shared library path into an executable. 19123hardcode_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. 19135if test "X${COLLECT_NAMES+set}" != Xset; then 19136 COLLECT_NAMES= 19137 export COLLECT_NAMES 19138fi 19139_LT_EOF 19140 ;; 19141 esac 19142 19143 19144ltmain="$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\ 19156func_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") 19165test 0 -eq $? || _lt_function_replace_fail=: 19166 19167 19168 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 19169func_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") 19175test 0 -eq $? || _lt_function_replace_fail=: 19176 19177 19178 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 19179func_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") 19189test 0 -eq $? || _lt_function_replace_fail=: 19190 19191 19192 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 19193func_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") 19203test 0 -eq $? || _lt_function_replace_fail=: 19204 19205 19206 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 19207func_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") 19214test 0 -eq $? || _lt_function_replace_fail=: 19215 19216 19217 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 19218func_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") 19225test 0 -eq $? || _lt_function_replace_fail=: 19226 19227 19228 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 19229func_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") 19238test 0 -eq $? || _lt_function_replace_fail=: 19239 19240 19241 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 19242func_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") 19248test 0 -eq $? || _lt_function_replace_fail=: 19249 19250 19251 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 19252func_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") 19258test 0 -eq $? || _lt_function_replace_fail=: 19259 19260 19261 sed -e '/^func_len ()$/,/^} # func_len /c\ 19262func_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") 19268test 0 -eq $? || _lt_function_replace_fail=: 19269 19270fi 19271 19272if test x"$lt_shell_append" = xyes; then 19273 sed -e '/^func_append ()$/,/^} # func_append /c\ 19274func_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") 19280test 0 -eq $? || _lt_function_replace_fail=: 19281 19282 19283 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 19284func_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") 19291test 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=: 19299else 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=: 19305fi 19306 19307if 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;} 19310fi 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. 19323LD=$lt_LD_RC 19324 19325# How to create reloadable object files. 19326reload_flag=$lt_reload_flag_RC 19327reload_cmds=$lt_reload_cmds_RC 19328 19329# Commands used to build an old-style archive. 19330old_archive_cmds=$lt_old_archive_cmds_RC 19331 19332# A language specific compiler. 19333CC=$lt_compiler_RC 19334 19335# Is the compiler the GNU compiler? 19336with_gcc=$GCC_RC 19337 19338# Compiler flag to turn off builtin functions. 19339no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19340 19341# Additional compiler flags for building library objects. 19342pic_flag=$lt_lt_prog_compiler_pic_RC 19343 19344# How to pass a linker flag through the compiler. 19345wl=$lt_lt_prog_compiler_wl_RC 19346 19347# Compiler flag to prevent dynamic linking. 19348link_static_flag=$lt_lt_prog_compiler_static_RC 19349 19350# Does compiler simultaneously support -c and -o options? 19351compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19352 19353# Whether or not to add -lc for building shared libraries. 19354build_libtool_need_lc=$archive_cmds_need_lc_RC 19355 19356# Whether or not to disallow shared libs when runtime libs are static. 19357allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19358 19359# Compiler flag to allow reflexive dlopens. 19360export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19361 19362# Compiler flag to generate shared objects directly from archives. 19363whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19364 19365# Whether the compiler copes with passing no objects directly. 19366compiler_needs_object=$lt_compiler_needs_object_RC 19367 19368# Create an old-style archive from a shared archive. 19369old_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. 19372old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19373 19374# Commands used to build a shared archive. 19375archive_cmds=$lt_archive_cmds_RC 19376archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19377 19378# Commands used to build a loadable module if different from building 19379# a shared archive. 19380module_cmds=$lt_module_cmds_RC 19381module_expsym_cmds=$lt_module_expsym_cmds_RC 19382 19383# Whether we are building with GNU ld or not. 19384with_gnu_ld=$lt_with_gnu_ld_RC 19385 19386# Flag that allows shared libraries with undefined symbols to be built. 19387allow_undefined_flag=$lt_allow_undefined_flag_RC 19388 19389# Flag that enforces no undefined symbols. 19390no_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 19394hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19395 19396# Whether we need a single "-rpath" flag with a separated argument. 19397hardcode_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. 19401hardcode_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. 19407hardcode_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. 19411hardcode_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. 19415hardcode_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. 19420hardcode_automatic=$hardcode_automatic_RC 19421 19422# Set to yes if linker adds runtime paths of dependent libraries 19423# to runtime path list. 19424inherit_rpath=$inherit_rpath_RC 19425 19426# Whether libtool must link a program against all its dependency libraries. 19427link_all_deplibs=$link_all_deplibs_RC 19428 19429# Set to "yes" if exported symbols are required. 19430always_export_symbols=$always_export_symbols_RC 19431 19432# The commands to list exported symbols. 19433export_symbols_cmds=$lt_export_symbols_cmds_RC 19434 19435# Symbols that should not be listed in the preloaded symbols. 19436exclude_expsyms=$lt_exclude_expsyms_RC 19437 19438# Symbols that must always be exported. 19439include_expsyms=$lt_include_expsyms_RC 19440 19441# Commands necessary for linking programs (against libraries) with templates. 19442prelink_cmds=$lt_prelink_cmds_RC 19443 19444# Commands necessary for finishing linking programs. 19445postlink_cmds=$lt_postlink_cmds_RC 19446 19447# Specify filename containing input files. 19448file_list_spec=$lt_file_list_spec_RC 19449 19450# How to hardcode a shared library path into an executable. 19451hardcode_action=$hardcode_action_RC 19452 19453# ### END LIBTOOL TAG CONFIG: RC 19454_LT_EOF 19455 19456 ;; 19457 19458 esac 19459done # for ac_tag 19460 19461 19462as_fn_exit 0 19463_ACEOF 19464ac_clean_files=$ac_clean_files_save 19465 19466test $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. 19478if 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 19489fi 19490if 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;} 19493fi 19494 19495 19496# Finally: summary 19497if test "x$enable_curl" != "xyes"; then 19498 MSG_CURL="no, many unit tests will not run" 19499else 19500 MSG_CURL="yes" 19501fi 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 19538if test "x$enable_https" = "xyes" 19539then 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;} 19546else 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;} 19553fi 19554 19555if test "x$enable_bauth" != "xyes" -o \ 19556 "x$enable_dauth" != "xyes" -o \ 19557 "x$enable_postprocessor" != "xyes" 19558then 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;} 19561fi 19562