1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.65 for gperftools 2.0. 4# 5# Report bugs to <google-perftools@googlegroups.com>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 10# Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94case $0 in #(( 95 *[\\/]* ) as_myself=$0 ;; 96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 97for as_dir in $PATH 98do 99 IFS=$as_save_IFS 100 test -z "$as_dir" && as_dir=. 101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 102 done 103IFS=$as_save_IFS 104 105 ;; 106esac 107# We did not find ourselves, most probably we were run as `sh COMMAND' 108# in which case we are not to be found in the path. 109if test "x$as_myself" = x; then 110 as_myself=$0 111fi 112if test ! -f "$as_myself"; then 113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114 exit 1 115fi 116 117# Unset variables that we do not need and which cause bugs (e.g. in 118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 119# suppresses any "Segmentation fault" message there. '((' could 120# trigger a bug in pdksh 5.2.14. 121for as_var in BASH_ENV ENV MAIL MAILPATH 122do eval test x\${$as_var+set} = xset \ 123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 124done 125PS1='$ ' 126PS2='> ' 127PS4='+ ' 128 129# NLS nuisances. 130LC_ALL=C 131export LC_ALL 132LANGUAGE=C 133export LANGUAGE 134 135# CDPATH. 136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137 138if test "x$CONFIG_SHELL" = x; then 139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 140 emulate sh 141 NULLCMD=: 142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 143 # is contrary to our usage. Disable this feature. 144 alias -g '\${1+\"\$@\"}'='\"\$@\"' 145 setopt NO_GLOB_SUBST 146else 147 case \`(set -o) 2>/dev/null\` in #( 148 *posix*) : 149 set -o posix ;; #( 150 *) : 151 ;; 152esac 153fi 154" 155 as_required="as_fn_return () { (exit \$1); } 156as_fn_success () { as_fn_return 0; } 157as_fn_failure () { as_fn_return 1; } 158as_fn_ret_success () { return 0; } 159as_fn_ret_failure () { return 1; } 160 161exitcode=0 162as_fn_success || { exitcode=1; echo as_fn_success failed.; } 163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 167 168else 169 exitcode=1; echo positional parameters were not saved. 170fi 171test x\$exitcode = x0 || exit 1" 172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 176test \$(( 1 + 1 )) = 2 || exit 1" 177 if (eval "$as_required") 2>/dev/null; then : 178 as_have_required=yes 179else 180 as_have_required=no 181fi 182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 183 184else 185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 186as_found=false 187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 188do 189 IFS=$as_save_IFS 190 test -z "$as_dir" && as_dir=. 191 as_found=: 192 case $as_dir in #( 193 /*) 194 for as_base in sh bash ksh sh5; do 195 # Try only shells that exist, to save several forks. 196 as_shell=$as_dir/$as_base 197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 199 CONFIG_SHELL=$as_shell as_have_required=yes 200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 201 break 2 202fi 203fi 204 done;; 205 esac 206 as_found=false 207done 208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 210 CONFIG_SHELL=$SHELL as_have_required=yes 211fi; } 212IFS=$as_save_IFS 213 214 215 if test "x$CONFIG_SHELL" != x; then : 216 # We cannot yet assume a decent shell, so we have to provide a 217 # neutralization value for shells without unset; and this also 218 # works around shells that cannot unset nonexistent variables. 219 BASH_ENV=/dev/null 220 ENV=/dev/null 221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 222 export CONFIG_SHELL 223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 224fi 225 226 if test x$as_have_required = xno; then : 227 $as_echo "$0: This script requires a shell more modern than all" 228 $as_echo "$0: the shells that I found on your system." 229 if test x${ZSH_VERSION+set} = xset ; then 230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 231 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 232 else 233 $as_echo "$0: Please tell bug-autoconf@gnu.org and 234$0: google-perftools@googlegroups.com about your system, 235$0: including any error possibly output before this 236$0: message. Then install a modern shell, or manually run 237$0: the script under such a shell if you do have one." 238 fi 239 exit 1 240fi 241fi 242fi 243SHELL=${CONFIG_SHELL-/bin/sh} 244export SHELL 245# Unset more variables known to interfere with behavior of common tools. 246CLICOLOR_FORCE= GREP_OPTIONS= 247unset CLICOLOR_FORCE GREP_OPTIONS 248 249## --------------------- ## 250## M4sh Shell Functions. ## 251## --------------------- ## 252# as_fn_unset VAR 253# --------------- 254# Portably unset VAR. 255as_fn_unset () 256{ 257 { eval $1=; unset $1;} 258} 259as_unset=as_fn_unset 260 261# as_fn_set_status STATUS 262# ----------------------- 263# Set $? to STATUS, without forking. 264as_fn_set_status () 265{ 266 return $1 267} # as_fn_set_status 268 269# as_fn_exit STATUS 270# ----------------- 271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 272as_fn_exit () 273{ 274 set +e 275 as_fn_set_status $1 276 exit $1 277} # as_fn_exit 278 279# as_fn_mkdir_p 280# ------------- 281# Create "$as_dir" as a directory, including parents if necessary. 282as_fn_mkdir_p () 283{ 284 285 case $as_dir in #( 286 -*) as_dir=./$as_dir;; 287 esac 288 test -d "$as_dir" || eval $as_mkdir_p || { 289 as_dirs= 290 while :; do 291 case $as_dir in #( 292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 293 *) as_qdir=$as_dir;; 294 esac 295 as_dirs="'$as_qdir' $as_dirs" 296 as_dir=`$as_dirname -- "$as_dir" || 297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 298 X"$as_dir" : 'X\(//\)[^/]' \| \ 299 X"$as_dir" : 'X\(//\)$' \| \ 300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 301$as_echo X"$as_dir" | 302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 303 s//\1/ 304 q 305 } 306 /^X\(\/\/\)[^/].*/{ 307 s//\1/ 308 q 309 } 310 /^X\(\/\/\)$/{ 311 s//\1/ 312 q 313 } 314 /^X\(\/\).*/{ 315 s//\1/ 316 q 317 } 318 s/.*/./; q'` 319 test -d "$as_dir" && break 320 done 321 test -z "$as_dirs" || eval "mkdir $as_dirs" 322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 323 324 325} # as_fn_mkdir_p 326# as_fn_append VAR VALUE 327# ---------------------- 328# Append the text in VALUE to the end of the definition contained in VAR. Take 329# advantage of any shell optimizations that allow amortized linear growth over 330# repeated appends, instead of the typical quadratic growth present in naive 331# implementations. 332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 333 eval 'as_fn_append () 334 { 335 eval $1+=\$2 336 }' 337else 338 as_fn_append () 339 { 340 eval $1=\$$1\$2 341 } 342fi # as_fn_append 343 344# as_fn_arith ARG... 345# ------------------ 346# Perform arithmetic evaluation on the ARGs, and store the result in the 347# global $as_val. Take advantage of shells that can avoid forks. The arguments 348# must be portable across $(()) and expr. 349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 350 eval 'as_fn_arith () 351 { 352 as_val=$(( $* )) 353 }' 354else 355 as_fn_arith () 356 { 357 as_val=`expr "$@" || test $? -eq 1` 358 } 359fi # as_fn_arith 360 361 362# as_fn_error ERROR [LINENO LOG_FD] 363# --------------------------------- 364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 366# script with status $?, using 1 if that was 0. 367as_fn_error () 368{ 369 as_status=$?; test $as_status -eq 0 && as_status=1 370 if test "$3"; then 371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 373 fi 374 $as_echo "$as_me: error: $1" >&2 375 as_fn_exit $as_status 376} # as_fn_error 377 378if expr a : '\(a\)' >/dev/null 2>&1 && 379 test "X`expr 00001 : '.*\(...\)'`" = X001; then 380 as_expr=expr 381else 382 as_expr=false 383fi 384 385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 386 as_basename=basename 387else 388 as_basename=false 389fi 390 391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 392 as_dirname=dirname 393else 394 as_dirname=false 395fi 396 397as_me=`$as_basename -- "$0" || 398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 399 X"$0" : 'X\(//\)$' \| \ 400 X"$0" : 'X\(/\)' \| . 2>/dev/null || 401$as_echo X/"$0" | 402 sed '/^.*\/\([^/][^/]*\)\/*$/{ 403 s//\1/ 404 q 405 } 406 /^X\/\(\/\/\)$/{ 407 s//\1/ 408 q 409 } 410 /^X\/\(\/\).*/{ 411 s//\1/ 412 q 413 } 414 s/.*/./; q'` 415 416# Avoid depending upon Character Ranges. 417as_cr_letters='abcdefghijklmnopqrstuvwxyz' 418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 419as_cr_Letters=$as_cr_letters$as_cr_LETTERS 420as_cr_digits='0123456789' 421as_cr_alnum=$as_cr_Letters$as_cr_digits 422 423 424 as_lineno_1=$LINENO as_lineno_1a=$LINENO 425 as_lineno_2=$LINENO as_lineno_2a=$LINENO 426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 429 sed -n ' 430 p 431 /[$]LINENO/= 432 ' <$as_myself | 433 sed ' 434 s/[$]LINENO.*/&-/ 435 t lineno 436 b 437 :lineno 438 N 439 :loop 440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 441 t loop 442 s/-\n.*// 443 ' >$as_me.lineno && 444 chmod +x "$as_me.lineno" || 445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 446 447 # Don't try to exec as it changes $[0], causing all sort of problems 448 # (the dirname of $[0] is not the place where we might find the 449 # original and so on. Autoconf is especially sensitive to this). 450 . "./$as_me.lineno" 451 # Exit status is that of the last command. 452 exit 453} 454 455ECHO_C= ECHO_N= ECHO_T= 456case `echo -n x` in #((((( 457-n*) 458 case `echo 'xy\c'` in 459 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 460 xy) ECHO_C='\c';; 461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 462 ECHO_T=' ';; 463 esac;; 464*) 465 ECHO_N='-n';; 466esac 467 468rm -f conf$$ conf$$.exe conf$$.file 469if test -d conf$$.dir; then 470 rm -f conf$$.dir/conf$$.file 471else 472 rm -f conf$$.dir 473 mkdir conf$$.dir 2>/dev/null 474fi 475if (echo >conf$$.file) 2>/dev/null; then 476 if ln -s conf$$.file conf$$ 2>/dev/null; then 477 as_ln_s='ln -s' 478 # ... but there are two gotchas: 479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 481 # In both cases, we have to default to `cp -p'. 482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 483 as_ln_s='cp -p' 484 elif ln conf$$.file conf$$ 2>/dev/null; then 485 as_ln_s=ln 486 else 487 as_ln_s='cp -p' 488 fi 489else 490 as_ln_s='cp -p' 491fi 492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 493rmdir conf$$.dir 2>/dev/null 494 495if mkdir -p . 2>/dev/null; then 496 as_mkdir_p='mkdir -p "$as_dir"' 497else 498 test -d ./-p && rmdir ./-p 499 as_mkdir_p=false 500fi 501 502if test -x / >/dev/null 2>&1; then 503 as_test_x='test -x' 504else 505 if ls -dL / >/dev/null 2>&1; then 506 as_ls_L_option=L 507 else 508 as_ls_L_option= 509 fi 510 as_test_x=' 511 eval sh -c '\'' 512 if test -d "$1"; then 513 test -d "$1/."; 514 else 515 case $1 in #( 516 -*)set "./$1";; 517 esac; 518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 519 ???[sx]*):;;*)false;;esac;fi 520 '\'' sh 521 ' 522fi 523as_executable_p=$as_test_x 524 525# Sed expression to map a string onto a valid CPP name. 526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 527 528# Sed expression to map a string onto a valid variable name. 529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 530 531 532 533# Check that we are running under the correct shell. 534SHELL=${CONFIG_SHELL-/bin/sh} 535 536case X$lt_ECHO in 537X*--fallback-echo) 538 # Remove one level of quotation (which was required for Make). 539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 540 ;; 541esac 542 543ECHO=${lt_ECHO-echo} 544if test "X$1" = X--no-reexec; then 545 # Discard the --no-reexec flag, and continue. 546 shift 547elif test "X$1" = X--fallback-echo; then 548 # Avoid inline document here, it may be left over 549 : 550elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 551 # Yippee, $ECHO works! 552 : 553else 554 # Restart under the correct shell. 555 exec $SHELL "$0" --no-reexec ${1+"$@"} 556fi 557 558if test "X$1" = X--fallback-echo; then 559 # used as fallback echo 560 shift 561 cat <<_LT_EOF 562$* 563_LT_EOF 564 exit 0 565fi 566 567# The HP-UX ksh and POSIX shell print the target directory to stdout 568# if CDPATH is set. 569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 570 571if test -z "$lt_ECHO"; then 572 if test "X${echo_test_string+set}" != Xset; then 573 # find a string as large as possible, as long as the shell can cope with it 574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 576 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 578 then 579 break 580 fi 581 done 582 fi 583 584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 586 test "X$echo_testing_string" = "X$echo_test_string"; then 587 : 588 else 589 # The Solaris, AIX, and Digital Unix default echo programs unquote 590 # backslashes. This makes it impossible to quote backslashes using 591 # echo "$something" | sed 's/\\/\\\\/g' 592 # 593 # So, first we look for a working echo in the user's PATH. 594 595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 596 for dir in $PATH /usr/ucb; do 597 IFS="$lt_save_ifs" 598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 601 test "X$echo_testing_string" = "X$echo_test_string"; then 602 ECHO="$dir/echo" 603 break 604 fi 605 done 606 IFS="$lt_save_ifs" 607 608 if test "X$ECHO" = Xecho; then 609 # We didn't find a better echo, so look for alternatives. 610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 612 test "X$echo_testing_string" = "X$echo_test_string"; then 613 # This shell has a builtin print -r that does the trick. 614 ECHO='print -r' 615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 616 test "X$CONFIG_SHELL" != X/bin/ksh; then 617 # If we have ksh, try running configure again with it. 618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 619 export ORIGINAL_CONFIG_SHELL 620 CONFIG_SHELL=/bin/ksh 621 export CONFIG_SHELL 622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 623 else 624 # Try using printf. 625 ECHO='printf %s\n' 626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 628 test "X$echo_testing_string" = "X$echo_test_string"; then 629 # Cool, printf works 630 : 631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 632 test "X$echo_testing_string" = 'X\t' && 633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 634 test "X$echo_testing_string" = "X$echo_test_string"; then 635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 636 export CONFIG_SHELL 637 SHELL="$CONFIG_SHELL" 638 export SHELL 639 ECHO="$CONFIG_SHELL $0 --fallback-echo" 640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 641 test "X$echo_testing_string" = 'X\t' && 642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 643 test "X$echo_testing_string" = "X$echo_test_string"; then 644 ECHO="$CONFIG_SHELL $0 --fallback-echo" 645 else 646 # maybe with a smaller string... 647 prev=: 648 649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 651 then 652 break 653 fi 654 prev="$cmd" 655 done 656 657 if test "$prev" != 'sed 50q "$0"'; then 658 echo_test_string=`eval $prev` 659 export echo_test_string 660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 661 else 662 # Oops. We lost completely, so just stick with echo. 663 ECHO=echo 664 fi 665 fi 666 fi 667 fi 668 fi 669fi 670 671# Copy echo and quote the copy suitably for passing to libtool from 672# the Makefile, instead of quoting the original, which is used later. 673lt_ECHO=$ECHO 674if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 676fi 677 678 679 680 681test -n "$DJDIR" || exec 7<&0 </dev/null 682exec 6>&1 683 684# Name of the host. 685# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 686# so uname gets run too. 687ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 688 689# 690# Initializations. 691# 692ac_default_prefix=/usr/local 693ac_clean_files= 694ac_config_libobj_dir=. 695LIBOBJS= 696cross_compiling=no 697subdirs= 698MFLAGS= 699MAKEFLAGS= 700 701# Identity of this package. 702PACKAGE_NAME='gperftools' 703PACKAGE_TARNAME='gperftools' 704PACKAGE_VERSION='2.0' 705PACKAGE_STRING='gperftools 2.0' 706PACKAGE_BUGREPORT='google-perftools@googlegroups.com' 707PACKAGE_URL='' 708 709ac_unique_file="README" 710# Factoring default headers for most tests. 711ac_includes_default="\ 712#include <stdio.h> 713#ifdef HAVE_SYS_TYPES_H 714# include <sys/types.h> 715#endif 716#ifdef HAVE_SYS_STAT_H 717# include <sys/stat.h> 718#endif 719#ifdef STDC_HEADERS 720# include <stdlib.h> 721# include <stddef.h> 722#else 723# ifdef HAVE_STDLIB_H 724# include <stdlib.h> 725# endif 726#endif 727#ifdef HAVE_STRING_H 728# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 729# include <memory.h> 730# endif 731# include <string.h> 732#endif 733#ifdef HAVE_STRINGS_H 734# include <strings.h> 735#endif 736#ifdef HAVE_INTTYPES_H 737# include <inttypes.h> 738#endif 739#ifdef HAVE_STDINT_H 740# include <stdint.h> 741#endif 742#ifdef HAVE_UNISTD_H 743# include <unistd.h> 744#endif" 745 746ac_header_list= 747ac_subst_vars='LTLIBOBJS 748LIBOBJS 749WITH_STACK_TRACE_FALSE 750WITH_STACK_TRACE_TRUE 751WITH_HEAP_PROFILER_OR_CHECKER_FALSE 752WITH_HEAP_PROFILER_OR_CHECKER_TRUE 753WITH_DEBUGALLOC_FALSE 754WITH_DEBUGALLOC_TRUE 755WITH_HEAP_CHECKER_FALSE 756WITH_HEAP_CHECKER_TRUE 757WITH_HEAP_PROFILER_FALSE 758WITH_HEAP_PROFILER_TRUE 759WITH_CPU_PROFILER_FALSE 760WITH_CPU_PROFILER_TRUE 761OSX_FALSE 762OSX_TRUE 763MINGW_FALSE 764MINGW_TRUE 765PTHREAD_CFLAGS 766PTHREAD_LIBS 767PTHREAD_CC 768acx_pthread_config 769LIBSTDCXX_LA_LINKER_FLAG 770NANOSLEEP_LIBS 771HAVE_W_NO_UNUSED_RESULT_FALSE 772HAVE_W_NO_UNUSED_RESULT_TRUE 773I386_FALSE 774I386_TRUE 775X86_64_AND_NO_FP_BY_DEFAULT_FALSE 776X86_64_AND_NO_FP_BY_DEFAULT_TRUE 777ENABLE_FRAME_POINTERS_FALSE 778ENABLE_FRAME_POINTERS_TRUE 779UNWIND_LIBS 780ENABLE_STATIC_FALSE 781ENABLE_STATIC_TRUE 782ac_cv_have_struct_mallinfo 783USE_LIBTOOL_FALSE 784USE_LIBTOOL_TRUE 785LIBTOOL_DEPS 786CXXCPP 787OTOOL64 788OTOOL 789LIPO 790NMEDIT 791DSYMUTIL 792lt_ECHO 793RANLIB 794AR 795OBJDUMP 796LN_S 797NM 798ac_ct_DUMPBIN 799DUMPBIN 800LD 801FGREP 802EGREP 803GREP 804SED 805LIBTOOL 806HAVE_OBJCOPY_WEAKEN_FALSE 807HAVE_OBJCOPY_WEAKEN_TRUE 808OBJCOPY 809GCC_FALSE 810GCC_TRUE 811CPP 812am__fastdepCC_FALSE 813am__fastdepCC_TRUE 814CCDEPMODE 815ac_ct_CC 816CFLAGS 817CC 818am__fastdepCXX_FALSE 819am__fastdepCXX_TRUE 820CXXDEPMODE 821AMDEPBACKSLASH 822AMDEP_FALSE 823AMDEP_TRUE 824am__quote 825am__include 826DEPDIR 827OBJEXT 828EXEEXT 829ac_ct_CXX 830CPPFLAGS 831LDFLAGS 832CXXFLAGS 833CXX 834TC_VERSION_PATCH 835TC_VERSION_MINOR 836TC_VERSION_MAJOR 837am__untar 838am__tar 839AMTAR 840am__leading_dot 841SET_MAKE 842AWK 843mkdir_p 844MKDIR_P 845INSTALL_STRIP_PROGRAM 846STRIP 847install_sh 848MAKEINFO 849AUTOHEADER 850AUTOMAKE 851AUTOCONF 852ACLOCAL 853VERSION 854PACKAGE 855CYGPATH_W 856am__isrc 857INSTALL_DATA 858INSTALL_SCRIPT 859INSTALL_PROGRAM 860host_os 861host_vendor 862host_cpu 863host 864build_os 865build_vendor 866build_cpu 867build 868PROFILER_SO_VERSION 869TCMALLOC_SO_VERSION 870target_alias 871host_alias 872build_alias 873LIBS 874ECHO_T 875ECHO_N 876ECHO_C 877DEFS 878mandir 879localedir 880libdir 881psdir 882pdfdir 883dvidir 884htmldir 885infodir 886docdir 887oldincludedir 888includedir 889localstatedir 890sharedstatedir 891sysconfdir 892datadir 893datarootdir 894libexecdir 895sbindir 896bindir 897program_transform_name 898prefix 899exec_prefix 900PACKAGE_URL 901PACKAGE_BUGREPORT 902PACKAGE_STRING 903PACKAGE_VERSION 904PACKAGE_TARNAME 905PACKAGE_NAME 906PATH_SEPARATOR 907SHELL' 908ac_subst_files='' 909ac_user_opts=' 910enable_option_checking 911enable_cpu_profiler 912enable_heap_profiler 913enable_heap_checker 914enable_debugalloc 915enable_minimal 916enable_dependency_tracking 917enable_fast_install 918enable_shared 919enable_static 920with_pic 921with_gnu_ld 922enable_libtool_lock 923enable_frame_pointers 924' 925 ac_precious_vars='build_alias 926host_alias 927target_alias 928CXX 929CXXFLAGS 930LDFLAGS 931LIBS 932CPPFLAGS 933CCC 934CC 935CFLAGS 936CPP 937CXXCPP' 938 939 940# Initialize some variables set by options. 941ac_init_help= 942ac_init_version=false 943ac_unrecognized_opts= 944ac_unrecognized_sep= 945# The variables have the same names as the options, with 946# dashes changed to underlines. 947cache_file=/dev/null 948exec_prefix=NONE 949no_create= 950no_recursion= 951prefix=NONE 952program_prefix=NONE 953program_suffix=NONE 954program_transform_name=s,x,x, 955silent= 956site= 957srcdir= 958verbose= 959x_includes=NONE 960x_libraries=NONE 961 962# Installation directory options. 963# These are left unexpanded so users can "make install exec_prefix=/foo" 964# and all the variables that are supposed to be based on exec_prefix 965# by default will actually change. 966# Use braces instead of parens because sh, perl, etc. also accept them. 967# (The list follows the same order as the GNU Coding Standards.) 968bindir='${exec_prefix}/bin' 969sbindir='${exec_prefix}/sbin' 970libexecdir='${exec_prefix}/libexec' 971datarootdir='${prefix}/share' 972datadir='${datarootdir}' 973sysconfdir='${prefix}/etc' 974sharedstatedir='${prefix}/com' 975localstatedir='${prefix}/var' 976includedir='${prefix}/include' 977oldincludedir='/usr/include' 978docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 979infodir='${datarootdir}/info' 980htmldir='${docdir}' 981dvidir='${docdir}' 982pdfdir='${docdir}' 983psdir='${docdir}' 984libdir='${exec_prefix}/lib' 985localedir='${datarootdir}/locale' 986mandir='${datarootdir}/man' 987 988ac_prev= 989ac_dashdash= 990for ac_option 991do 992 # If the previous option needs an argument, assign it. 993 if test -n "$ac_prev"; then 994 eval $ac_prev=\$ac_option 995 ac_prev= 996 continue 997 fi 998 999 case $ac_option in 1000 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1001 *) ac_optarg=yes ;; 1002 esac 1003 1004 # Accept the important Cygnus configure options, so we can diagnose typos. 1005 1006 case $ac_dashdash$ac_option in 1007 --) 1008 ac_dashdash=yes ;; 1009 1010 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1011 ac_prev=bindir ;; 1012 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1013 bindir=$ac_optarg ;; 1014 1015 -build | --build | --buil | --bui | --bu) 1016 ac_prev=build_alias ;; 1017 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1018 build_alias=$ac_optarg ;; 1019 1020 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1021 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1022 ac_prev=cache_file ;; 1023 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1024 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1025 cache_file=$ac_optarg ;; 1026 1027 --config-cache | -C) 1028 cache_file=config.cache ;; 1029 1030 -datadir | --datadir | --datadi | --datad) 1031 ac_prev=datadir ;; 1032 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1033 datadir=$ac_optarg ;; 1034 1035 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1036 | --dataroo | --dataro | --datar) 1037 ac_prev=datarootdir ;; 1038 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1039 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1040 datarootdir=$ac_optarg ;; 1041 1042 -disable-* | --disable-*) 1043 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1044 # Reject names that are not valid shell variable names. 1045 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1046 as_fn_error "invalid feature name: $ac_useropt" 1047 ac_useropt_orig=$ac_useropt 1048 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1049 case $ac_user_opts in 1050 *" 1051"enable_$ac_useropt" 1052"*) ;; 1053 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1054 ac_unrecognized_sep=', ';; 1055 esac 1056 eval enable_$ac_useropt=no ;; 1057 1058 -docdir | --docdir | --docdi | --doc | --do) 1059 ac_prev=docdir ;; 1060 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1061 docdir=$ac_optarg ;; 1062 1063 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1064 ac_prev=dvidir ;; 1065 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1066 dvidir=$ac_optarg ;; 1067 1068 -enable-* | --enable-*) 1069 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1070 # Reject names that are not valid shell variable names. 1071 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1072 as_fn_error "invalid feature name: $ac_useropt" 1073 ac_useropt_orig=$ac_useropt 1074 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1075 case $ac_user_opts in 1076 *" 1077"enable_$ac_useropt" 1078"*) ;; 1079 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1080 ac_unrecognized_sep=', ';; 1081 esac 1082 eval enable_$ac_useropt=\$ac_optarg ;; 1083 1084 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1085 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1086 | --exec | --exe | --ex) 1087 ac_prev=exec_prefix ;; 1088 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1089 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1090 | --exec=* | --exe=* | --ex=*) 1091 exec_prefix=$ac_optarg ;; 1092 1093 -gas | --gas | --ga | --g) 1094 # Obsolete; use --with-gas. 1095 with_gas=yes ;; 1096 1097 -help | --help | --hel | --he | -h) 1098 ac_init_help=long ;; 1099 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1100 ac_init_help=recursive ;; 1101 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1102 ac_init_help=short ;; 1103 1104 -host | --host | --hos | --ho) 1105 ac_prev=host_alias ;; 1106 -host=* | --host=* | --hos=* | --ho=*) 1107 host_alias=$ac_optarg ;; 1108 1109 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1110 ac_prev=htmldir ;; 1111 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1112 | --ht=*) 1113 htmldir=$ac_optarg ;; 1114 1115 -includedir | --includedir | --includedi | --included | --include \ 1116 | --includ | --inclu | --incl | --inc) 1117 ac_prev=includedir ;; 1118 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1119 | --includ=* | --inclu=* | --incl=* | --inc=*) 1120 includedir=$ac_optarg ;; 1121 1122 -infodir | --infodir | --infodi | --infod | --info | --inf) 1123 ac_prev=infodir ;; 1124 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1125 infodir=$ac_optarg ;; 1126 1127 -libdir | --libdir | --libdi | --libd) 1128 ac_prev=libdir ;; 1129 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1130 libdir=$ac_optarg ;; 1131 1132 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1133 | --libexe | --libex | --libe) 1134 ac_prev=libexecdir ;; 1135 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1136 | --libexe=* | --libex=* | --libe=*) 1137 libexecdir=$ac_optarg ;; 1138 1139 -localedir | --localedir | --localedi | --localed | --locale) 1140 ac_prev=localedir ;; 1141 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1142 localedir=$ac_optarg ;; 1143 1144 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1145 | --localstate | --localstat | --localsta | --localst | --locals) 1146 ac_prev=localstatedir ;; 1147 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1148 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1149 localstatedir=$ac_optarg ;; 1150 1151 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1152 ac_prev=mandir ;; 1153 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1154 mandir=$ac_optarg ;; 1155 1156 -nfp | --nfp | --nf) 1157 # Obsolete; use --without-fp. 1158 with_fp=no ;; 1159 1160 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1161 | --no-cr | --no-c | -n) 1162 no_create=yes ;; 1163 1164 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1165 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1166 no_recursion=yes ;; 1167 1168 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1169 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1170 | --oldin | --oldi | --old | --ol | --o) 1171 ac_prev=oldincludedir ;; 1172 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1173 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1174 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1175 oldincludedir=$ac_optarg ;; 1176 1177 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1178 ac_prev=prefix ;; 1179 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1180 prefix=$ac_optarg ;; 1181 1182 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1183 | --program-pre | --program-pr | --program-p) 1184 ac_prev=program_prefix ;; 1185 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1186 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1187 program_prefix=$ac_optarg ;; 1188 1189 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1190 | --program-suf | --program-su | --program-s) 1191 ac_prev=program_suffix ;; 1192 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1193 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1194 program_suffix=$ac_optarg ;; 1195 1196 -program-transform-name | --program-transform-name \ 1197 | --program-transform-nam | --program-transform-na \ 1198 | --program-transform-n | --program-transform- \ 1199 | --program-transform | --program-transfor \ 1200 | --program-transfo | --program-transf \ 1201 | --program-trans | --program-tran \ 1202 | --progr-tra | --program-tr | --program-t) 1203 ac_prev=program_transform_name ;; 1204 -program-transform-name=* | --program-transform-name=* \ 1205 | --program-transform-nam=* | --program-transform-na=* \ 1206 | --program-transform-n=* | --program-transform-=* \ 1207 | --program-transform=* | --program-transfor=* \ 1208 | --program-transfo=* | --program-transf=* \ 1209 | --program-trans=* | --program-tran=* \ 1210 | --progr-tra=* | --program-tr=* | --program-t=*) 1211 program_transform_name=$ac_optarg ;; 1212 1213 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1214 ac_prev=pdfdir ;; 1215 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1216 pdfdir=$ac_optarg ;; 1217 1218 -psdir | --psdir | --psdi | --psd | --ps) 1219 ac_prev=psdir ;; 1220 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1221 psdir=$ac_optarg ;; 1222 1223 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1224 | -silent | --silent | --silen | --sile | --sil) 1225 silent=yes ;; 1226 1227 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1228 ac_prev=sbindir ;; 1229 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1230 | --sbi=* | --sb=*) 1231 sbindir=$ac_optarg ;; 1232 1233 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1234 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1235 | --sharedst | --shareds | --shared | --share | --shar \ 1236 | --sha | --sh) 1237 ac_prev=sharedstatedir ;; 1238 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1239 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1240 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1241 | --sha=* | --sh=*) 1242 sharedstatedir=$ac_optarg ;; 1243 1244 -site | --site | --sit) 1245 ac_prev=site ;; 1246 -site=* | --site=* | --sit=*) 1247 site=$ac_optarg ;; 1248 1249 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1250 ac_prev=srcdir ;; 1251 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1252 srcdir=$ac_optarg ;; 1253 1254 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1255 | --syscon | --sysco | --sysc | --sys | --sy) 1256 ac_prev=sysconfdir ;; 1257 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1258 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1259 sysconfdir=$ac_optarg ;; 1260 1261 -target | --target | --targe | --targ | --tar | --ta | --t) 1262 ac_prev=target_alias ;; 1263 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1264 target_alias=$ac_optarg ;; 1265 1266 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1267 verbose=yes ;; 1268 1269 -version | --version | --versio | --versi | --vers | -V) 1270 ac_init_version=: ;; 1271 1272 -with-* | --with-*) 1273 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1274 # Reject names that are not valid shell variable names. 1275 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1276 as_fn_error "invalid package name: $ac_useropt" 1277 ac_useropt_orig=$ac_useropt 1278 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1279 case $ac_user_opts in 1280 *" 1281"with_$ac_useropt" 1282"*) ;; 1283 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1284 ac_unrecognized_sep=', ';; 1285 esac 1286 eval with_$ac_useropt=\$ac_optarg ;; 1287 1288 -without-* | --without-*) 1289 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1290 # Reject names that are not valid shell variable names. 1291 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1292 as_fn_error "invalid package name: $ac_useropt" 1293 ac_useropt_orig=$ac_useropt 1294 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1295 case $ac_user_opts in 1296 *" 1297"with_$ac_useropt" 1298"*) ;; 1299 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1300 ac_unrecognized_sep=', ';; 1301 esac 1302 eval with_$ac_useropt=no ;; 1303 1304 --x) 1305 # Obsolete; use --with-x. 1306 with_x=yes ;; 1307 1308 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1309 | --x-incl | --x-inc | --x-in | --x-i) 1310 ac_prev=x_includes ;; 1311 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1312 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1313 x_includes=$ac_optarg ;; 1314 1315 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1316 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1317 ac_prev=x_libraries ;; 1318 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1319 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1320 x_libraries=$ac_optarg ;; 1321 1322 -*) as_fn_error "unrecognized option: \`$ac_option' 1323Try \`$0 --help' for more information." 1324 ;; 1325 1326 *=*) 1327 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1328 # Reject names that are not valid shell variable names. 1329 case $ac_envvar in #( 1330 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1331 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1332 esac 1333 eval $ac_envvar=\$ac_optarg 1334 export $ac_envvar ;; 1335 1336 *) 1337 # FIXME: should be removed in autoconf 3.0. 1338 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1339 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1340 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1341 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1342 ;; 1343 1344 esac 1345done 1346 1347if test -n "$ac_prev"; then 1348 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1349 as_fn_error "missing argument to $ac_option" 1350fi 1351 1352if test -n "$ac_unrecognized_opts"; then 1353 case $enable_option_checking in 1354 no) ;; 1355 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1356 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1357 esac 1358fi 1359 1360# Check all directory arguments for consistency. 1361for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1362 datadir sysconfdir sharedstatedir localstatedir includedir \ 1363 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1364 libdir localedir mandir 1365do 1366 eval ac_val=\$$ac_var 1367 # Remove trailing slashes. 1368 case $ac_val in 1369 */ ) 1370 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1371 eval $ac_var=\$ac_val;; 1372 esac 1373 # Be sure to have absolute directory names. 1374 case $ac_val in 1375 [\\/$]* | ?:[\\/]* ) continue;; 1376 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1377 esac 1378 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1379done 1380 1381# There might be people who depend on the old broken behavior: `$host' 1382# used to hold the argument of --host etc. 1383# FIXME: To remove some day. 1384build=$build_alias 1385host=$host_alias 1386target=$target_alias 1387 1388# FIXME: To remove some day. 1389if test "x$host_alias" != x; then 1390 if test "x$build_alias" = x; then 1391 cross_compiling=maybe 1392 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1393 If a cross compiler is detected then cross compile mode will be used." >&2 1394 elif test "x$build_alias" != "x$host_alias"; then 1395 cross_compiling=yes 1396 fi 1397fi 1398 1399ac_tool_prefix= 1400test -n "$host_alias" && ac_tool_prefix=$host_alias- 1401 1402test "$silent" = yes && exec 6>/dev/null 1403 1404 1405ac_pwd=`pwd` && test -n "$ac_pwd" && 1406ac_ls_di=`ls -di .` && 1407ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1408 as_fn_error "working directory cannot be determined" 1409test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1410 as_fn_error "pwd does not report name of working directory" 1411 1412 1413# Find the source files, if location was not specified. 1414if test -z "$srcdir"; then 1415 ac_srcdir_defaulted=yes 1416 # Try the directory containing this script, then the parent directory. 1417 ac_confdir=`$as_dirname -- "$as_myself" || 1418$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1419 X"$as_myself" : 'X\(//\)[^/]' \| \ 1420 X"$as_myself" : 'X\(//\)$' \| \ 1421 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1422$as_echo X"$as_myself" | 1423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1424 s//\1/ 1425 q 1426 } 1427 /^X\(\/\/\)[^/].*/{ 1428 s//\1/ 1429 q 1430 } 1431 /^X\(\/\/\)$/{ 1432 s//\1/ 1433 q 1434 } 1435 /^X\(\/\).*/{ 1436 s//\1/ 1437 q 1438 } 1439 s/.*/./; q'` 1440 srcdir=$ac_confdir 1441 if test ! -r "$srcdir/$ac_unique_file"; then 1442 srcdir=.. 1443 fi 1444else 1445 ac_srcdir_defaulted=no 1446fi 1447if test ! -r "$srcdir/$ac_unique_file"; then 1448 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1449 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1450fi 1451ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1452ac_abs_confdir=`( 1453 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1454 pwd)` 1455# When building in place, set srcdir=. 1456if test "$ac_abs_confdir" = "$ac_pwd"; then 1457 srcdir=. 1458fi 1459# Remove unnecessary trailing slashes from srcdir. 1460# Double slashes in file names in object file debugging info 1461# mess up M-x gdb in Emacs. 1462case $srcdir in 1463*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1464esac 1465for ac_var in $ac_precious_vars; do 1466 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1467 eval ac_env_${ac_var}_value=\$${ac_var} 1468 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1469 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1470done 1471 1472# 1473# Report the --help message. 1474# 1475if test "$ac_init_help" = "long"; then 1476 # Omit some internal or obsolete options to make the list less imposing. 1477 # This message is too long to be a string in the A/UX 3.1 sh. 1478 cat <<_ACEOF 1479\`configure' configures gperftools 2.0 to adapt to many kinds of systems. 1480 1481Usage: $0 [OPTION]... [VAR=VALUE]... 1482 1483To assign environment variables (e.g., CC, CFLAGS...), specify them as 1484VAR=VALUE. See below for descriptions of some of the useful variables. 1485 1486Defaults for the options are specified in brackets. 1487 1488Configuration: 1489 -h, --help display this help and exit 1490 --help=short display options specific to this package 1491 --help=recursive display the short help of all the included packages 1492 -V, --version display version information and exit 1493 -q, --quiet, --silent do not print \`checking...' messages 1494 --cache-file=FILE cache test results in FILE [disabled] 1495 -C, --config-cache alias for \`--cache-file=config.cache' 1496 -n, --no-create do not create output files 1497 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1498 1499Installation directories: 1500 --prefix=PREFIX install architecture-independent files in PREFIX 1501 [$ac_default_prefix] 1502 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1503 [PREFIX] 1504 1505By default, \`make install' will install all the files in 1506\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1507an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1508for instance \`--prefix=\$HOME'. 1509 1510For better control, use the options below. 1511 1512Fine tuning of the installation directories: 1513 --bindir=DIR user executables [EPREFIX/bin] 1514 --sbindir=DIR system admin executables [EPREFIX/sbin] 1515 --libexecdir=DIR program executables [EPREFIX/libexec] 1516 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1517 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1518 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1519 --libdir=DIR object code libraries [EPREFIX/lib] 1520 --includedir=DIR C header files [PREFIX/include] 1521 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1522 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1523 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1524 --infodir=DIR info documentation [DATAROOTDIR/info] 1525 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1526 --mandir=DIR man documentation [DATAROOTDIR/man] 1527 --docdir=DIR documentation root [DATAROOTDIR/doc/gperftools] 1528 --htmldir=DIR html documentation [DOCDIR] 1529 --dvidir=DIR dvi documentation [DOCDIR] 1530 --pdfdir=DIR pdf documentation [DOCDIR] 1531 --psdir=DIR ps documentation [DOCDIR] 1532_ACEOF 1533 1534 cat <<\_ACEOF 1535 1536Program names: 1537 --program-prefix=PREFIX prepend PREFIX to installed program names 1538 --program-suffix=SUFFIX append SUFFIX to installed program names 1539 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1540 1541System types: 1542 --build=BUILD configure for building on BUILD [guessed] 1543 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1544_ACEOF 1545fi 1546 1547if test -n "$ac_init_help"; then 1548 case $ac_init_help in 1549 short | recursive ) echo "Configuration of gperftools 2.0:";; 1550 esac 1551 cat <<\_ACEOF 1552 1553Optional Features: 1554 --disable-option-checking ignore unrecognized --enable/--with options 1555 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1556 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1557 --disable-cpu-profiler do not build the cpu profiler 1558 --disable-heap-profiler do not build the heap profiler 1559 --disable-heap-checker do not build the heap checker 1560 --disable-debugalloc do not build versions of libs with debugalloc 1561 --enable-minimal build only tcmalloc-minimal (and maybe 1562 tcmalloc-minimal-debug) 1563 --disable-dependency-tracking speeds up one-time build 1564 --enable-dependency-tracking do not reject slow dependency extractors 1565 --enable-fast-install[=PKGS] 1566 optimize for fast installation [default=no] 1567 --enable-shared[=PKGS] build shared libraries [default=yes] 1568 --enable-static[=PKGS] build static libraries [default=yes] 1569 --disable-libtool-lock avoid locking (might break parallel builds) 1570 --enable-frame-pointers On x86_64 systems, compile with 1571 -fno-omit-frame-pointer (see INSTALL) 1572 1573Optional Packages: 1574 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1575 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1576 --with-pic try to use only PIC/non-PIC objects [default=use 1577 both] 1578 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1579 1580Some influential environment variables: 1581 CXX C++ compiler command 1582 CXXFLAGS C++ compiler flags 1583 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1584 nonstandard directory <lib dir> 1585 LIBS libraries to pass to the linker, e.g. -l<library> 1586 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1587 you have headers in a nonstandard directory <include dir> 1588 CC C compiler command 1589 CFLAGS C compiler flags 1590 CPP C preprocessor 1591 CXXCPP C++ preprocessor 1592 1593Use these variables to override the choices made by `configure' or to help 1594it to find libraries and programs with nonstandard names/locations. 1595 1596Report bugs to <google-perftools@googlegroups.com>. 1597_ACEOF 1598ac_status=$? 1599fi 1600 1601if test "$ac_init_help" = "recursive"; then 1602 # If there are subdirs, report their specific --help. 1603 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1604 test -d "$ac_dir" || 1605 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1606 continue 1607 ac_builddir=. 1608 1609case "$ac_dir" in 1610.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1611*) 1612 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1613 # A ".." for each directory in $ac_dir_suffix. 1614 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1615 case $ac_top_builddir_sub in 1616 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1617 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1618 esac ;; 1619esac 1620ac_abs_top_builddir=$ac_pwd 1621ac_abs_builddir=$ac_pwd$ac_dir_suffix 1622# for backward compatibility: 1623ac_top_builddir=$ac_top_build_prefix 1624 1625case $srcdir in 1626 .) # We are building in place. 1627 ac_srcdir=. 1628 ac_top_srcdir=$ac_top_builddir_sub 1629 ac_abs_top_srcdir=$ac_pwd ;; 1630 [\\/]* | ?:[\\/]* ) # Absolute name. 1631 ac_srcdir=$srcdir$ac_dir_suffix; 1632 ac_top_srcdir=$srcdir 1633 ac_abs_top_srcdir=$srcdir ;; 1634 *) # Relative name. 1635 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1636 ac_top_srcdir=$ac_top_build_prefix$srcdir 1637 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1638esac 1639ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1640 1641 cd "$ac_dir" || { ac_status=$?; continue; } 1642 # Check for guested configure. 1643 if test -f "$ac_srcdir/configure.gnu"; then 1644 echo && 1645 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1646 elif test -f "$ac_srcdir/configure"; then 1647 echo && 1648 $SHELL "$ac_srcdir/configure" --help=recursive 1649 else 1650 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1651 fi || ac_status=$? 1652 cd "$ac_pwd" || { ac_status=$?; break; } 1653 done 1654fi 1655 1656test -n "$ac_init_help" && exit $ac_status 1657if $ac_init_version; then 1658 cat <<\_ACEOF 1659gperftools configure 2.0 1660generated by GNU Autoconf 2.65 1661 1662Copyright (C) 2009 Free Software Foundation, Inc. 1663This configure script is free software; the Free Software Foundation 1664gives unlimited permission to copy, distribute and modify it. 1665_ACEOF 1666 exit 1667fi 1668 1669## ------------------------ ## 1670## Autoconf initialization. ## 1671## ------------------------ ## 1672 1673# ac_fn_cxx_try_compile LINENO 1674# ---------------------------- 1675# Try to compile conftest.$ac_ext, and return whether this succeeded. 1676ac_fn_cxx_try_compile () 1677{ 1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1679 rm -f conftest.$ac_objext 1680 if { { ac_try="$ac_compile" 1681case "(($ac_try" in 1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1683 *) ac_try_echo=$ac_try;; 1684esac 1685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1686$as_echo "$ac_try_echo"; } >&5 1687 (eval "$ac_compile") 2>conftest.err 1688 ac_status=$? 1689 if test -s conftest.err; then 1690 grep -v '^ *+' conftest.err >conftest.er1 1691 cat conftest.er1 >&5 1692 mv -f conftest.er1 conftest.err 1693 fi 1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1695 test $ac_status = 0; } && { 1696 test -z "$ac_cxx_werror_flag" || 1697 test ! -s conftest.err 1698 } && test -s conftest.$ac_objext; then : 1699 ac_retval=0 1700else 1701 $as_echo "$as_me: failed program was:" >&5 1702sed 's/^/| /' conftest.$ac_ext >&5 1703 1704 ac_retval=1 1705fi 1706 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1707 as_fn_set_status $ac_retval 1708 1709} # ac_fn_cxx_try_compile 1710 1711# ac_fn_c_try_compile LINENO 1712# -------------------------- 1713# Try to compile conftest.$ac_ext, and return whether this succeeded. 1714ac_fn_c_try_compile () 1715{ 1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1717 rm -f conftest.$ac_objext 1718 if { { ac_try="$ac_compile" 1719case "(($ac_try" in 1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1721 *) ac_try_echo=$ac_try;; 1722esac 1723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1724$as_echo "$ac_try_echo"; } >&5 1725 (eval "$ac_compile") 2>conftest.err 1726 ac_status=$? 1727 if test -s conftest.err; then 1728 grep -v '^ *+' conftest.err >conftest.er1 1729 cat conftest.er1 >&5 1730 mv -f conftest.er1 conftest.err 1731 fi 1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1733 test $ac_status = 0; } && { 1734 test -z "$ac_c_werror_flag" || 1735 test ! -s conftest.err 1736 } && test -s conftest.$ac_objext; then : 1737 ac_retval=0 1738else 1739 $as_echo "$as_me: failed program was:" >&5 1740sed 's/^/| /' conftest.$ac_ext >&5 1741 1742 ac_retval=1 1743fi 1744 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1745 as_fn_set_status $ac_retval 1746 1747} # ac_fn_c_try_compile 1748 1749# ac_fn_c_try_cpp LINENO 1750# ---------------------- 1751# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1752ac_fn_c_try_cpp () 1753{ 1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1755 if { { ac_try="$ac_cpp conftest.$ac_ext" 1756case "(($ac_try" in 1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1758 *) ac_try_echo=$ac_try;; 1759esac 1760eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1761$as_echo "$ac_try_echo"; } >&5 1762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1763 ac_status=$? 1764 if test -s conftest.err; then 1765 grep -v '^ *+' conftest.err >conftest.er1 1766 cat conftest.er1 >&5 1767 mv -f conftest.er1 conftest.err 1768 fi 1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1770 test $ac_status = 0; } >/dev/null && { 1771 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1772 test ! -s conftest.err 1773 }; then : 1774 ac_retval=0 1775else 1776 $as_echo "$as_me: failed program was:" >&5 1777sed 's/^/| /' conftest.$ac_ext >&5 1778 1779 ac_retval=1 1780fi 1781 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1782 as_fn_set_status $ac_retval 1783 1784} # ac_fn_c_try_cpp 1785 1786# ac_fn_c_try_link LINENO 1787# ----------------------- 1788# Try to link conftest.$ac_ext, and return whether this succeeded. 1789ac_fn_c_try_link () 1790{ 1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1792 rm -f conftest.$ac_objext conftest$ac_exeext 1793 if { { ac_try="$ac_link" 1794case "(($ac_try" in 1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1796 *) ac_try_echo=$ac_try;; 1797esac 1798eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1799$as_echo "$ac_try_echo"; } >&5 1800 (eval "$ac_link") 2>conftest.err 1801 ac_status=$? 1802 if test -s conftest.err; then 1803 grep -v '^ *+' conftest.err >conftest.er1 1804 cat conftest.er1 >&5 1805 mv -f conftest.er1 conftest.err 1806 fi 1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1808 test $ac_status = 0; } && { 1809 test -z "$ac_c_werror_flag" || 1810 test ! -s conftest.err 1811 } && test -s conftest$ac_exeext && { 1812 test "$cross_compiling" = yes || 1813 $as_test_x conftest$ac_exeext 1814 }; then : 1815 ac_retval=0 1816else 1817 $as_echo "$as_me: failed program was:" >&5 1818sed 's/^/| /' conftest.$ac_ext >&5 1819 1820 ac_retval=1 1821fi 1822 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1823 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1824 # interfere with the next link command; also delete a directory that is 1825 # left behind by Apple's compiler. We do this before executing the actions. 1826 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1827 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1828 as_fn_set_status $ac_retval 1829 1830} # ac_fn_c_try_link 1831 1832# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1833# ------------------------------------------------------- 1834# Tests whether HEADER exists and can be compiled using the include files in 1835# INCLUDES, setting the cache variable VAR accordingly. 1836ac_fn_c_check_header_compile () 1837{ 1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1840$as_echo_n "checking for $2... " >&6; } 1841if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1842 $as_echo_n "(cached) " >&6 1843else 1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1845/* end confdefs.h. */ 1846$4 1847#include <$2> 1848_ACEOF 1849if ac_fn_c_try_compile "$LINENO"; then : 1850 eval "$3=yes" 1851else 1852 eval "$3=no" 1853fi 1854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1855fi 1856eval ac_res=\$$3 1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1858$as_echo "$ac_res" >&6; } 1859 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1860 1861} # ac_fn_c_check_header_compile 1862 1863# ac_fn_c_try_run LINENO 1864# ---------------------- 1865# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1866# that executables *can* be run. 1867ac_fn_c_try_run () 1868{ 1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1870 if { { ac_try="$ac_link" 1871case "(($ac_try" in 1872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1873 *) ac_try_echo=$ac_try;; 1874esac 1875eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1876$as_echo "$ac_try_echo"; } >&5 1877 (eval "$ac_link") 2>&5 1878 ac_status=$? 1879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1880 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1881 { { case "(($ac_try" in 1882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1883 *) ac_try_echo=$ac_try;; 1884esac 1885eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1886$as_echo "$ac_try_echo"; } >&5 1887 (eval "$ac_try") 2>&5 1888 ac_status=$? 1889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1890 test $ac_status = 0; }; }; then : 1891 ac_retval=0 1892else 1893 $as_echo "$as_me: program exited with status $ac_status" >&5 1894 $as_echo "$as_me: failed program was:" >&5 1895sed 's/^/| /' conftest.$ac_ext >&5 1896 1897 ac_retval=$ac_status 1898fi 1899 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1900 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1901 as_fn_set_status $ac_retval 1902 1903} # ac_fn_c_try_run 1904 1905# ac_fn_c_check_func LINENO FUNC VAR 1906# ---------------------------------- 1907# Tests whether FUNC exists, setting the cache variable VAR accordingly 1908ac_fn_c_check_func () 1909{ 1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1912$as_echo_n "checking for $2... " >&6; } 1913if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1914 $as_echo_n "(cached) " >&6 1915else 1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1917/* end confdefs.h. */ 1918/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1919 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1920#define $2 innocuous_$2 1921 1922/* System header to define __stub macros and hopefully few prototypes, 1923 which can conflict with char $2 (); below. 1924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1925 <limits.h> exists even on freestanding compilers. */ 1926 1927#ifdef __STDC__ 1928# include <limits.h> 1929#else 1930# include <assert.h> 1931#endif 1932 1933#undef $2 1934 1935/* Override any GCC internal prototype to avoid an error. 1936 Use char because int might match the return type of a GCC 1937 builtin and then its argument prototype would still apply. */ 1938#ifdef __cplusplus 1939extern "C" 1940#endif 1941char $2 (); 1942/* The GNU C library defines this for functions which it implements 1943 to always fail with ENOSYS. Some functions are actually named 1944 something starting with __ and the normal name is an alias. */ 1945#if defined __stub_$2 || defined __stub___$2 1946choke me 1947#endif 1948 1949int 1950main () 1951{ 1952return $2 (); 1953 ; 1954 return 0; 1955} 1956_ACEOF 1957if ac_fn_c_try_link "$LINENO"; then : 1958 eval "$3=yes" 1959else 1960 eval "$3=no" 1961fi 1962rm -f core conftest.err conftest.$ac_objext \ 1963 conftest$ac_exeext conftest.$ac_ext 1964fi 1965eval ac_res=\$$3 1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1967$as_echo "$ac_res" >&6; } 1968 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1969 1970} # ac_fn_c_check_func 1971 1972# ac_fn_cxx_try_cpp LINENO 1973# ------------------------ 1974# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1975ac_fn_cxx_try_cpp () 1976{ 1977 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1978 if { { ac_try="$ac_cpp conftest.$ac_ext" 1979case "(($ac_try" in 1980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1981 *) ac_try_echo=$ac_try;; 1982esac 1983eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1984$as_echo "$ac_try_echo"; } >&5 1985 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1986 ac_status=$? 1987 if test -s conftest.err; then 1988 grep -v '^ *+' conftest.err >conftest.er1 1989 cat conftest.er1 >&5 1990 mv -f conftest.er1 conftest.err 1991 fi 1992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1993 test $ac_status = 0; } >/dev/null && { 1994 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1995 test ! -s conftest.err 1996 }; then : 1997 ac_retval=0 1998else 1999 $as_echo "$as_me: failed program was:" >&5 2000sed 's/^/| /' conftest.$ac_ext >&5 2001 2002 ac_retval=1 2003fi 2004 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2005 as_fn_set_status $ac_retval 2006 2007} # ac_fn_cxx_try_cpp 2008 2009# ac_fn_cxx_try_link LINENO 2010# ------------------------- 2011# Try to link conftest.$ac_ext, and return whether this succeeded. 2012ac_fn_cxx_try_link () 2013{ 2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2015 rm -f conftest.$ac_objext conftest$ac_exeext 2016 if { { ac_try="$ac_link" 2017case "(($ac_try" in 2018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2019 *) ac_try_echo=$ac_try;; 2020esac 2021eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2022$as_echo "$ac_try_echo"; } >&5 2023 (eval "$ac_link") 2>conftest.err 2024 ac_status=$? 2025 if test -s conftest.err; then 2026 grep -v '^ *+' conftest.err >conftest.er1 2027 cat conftest.er1 >&5 2028 mv -f conftest.er1 conftest.err 2029 fi 2030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2031 test $ac_status = 0; } && { 2032 test -z "$ac_cxx_werror_flag" || 2033 test ! -s conftest.err 2034 } && test -s conftest$ac_exeext && { 2035 test "$cross_compiling" = yes || 2036 $as_test_x conftest$ac_exeext 2037 }; then : 2038 ac_retval=0 2039else 2040 $as_echo "$as_me: failed program was:" >&5 2041sed 's/^/| /' conftest.$ac_ext >&5 2042 2043 ac_retval=1 2044fi 2045 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2046 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2047 # interfere with the next link command; also delete a directory that is 2048 # left behind by Apple's compiler. We do this before executing the actions. 2049 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2050 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2051 as_fn_set_status $ac_retval 2052 2053} # ac_fn_cxx_try_link 2054 2055# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2056# ------------------------------------------- 2057# Tests whether TYPE exists after having included INCLUDES, setting cache 2058# variable VAR accordingly. 2059ac_fn_c_check_type () 2060{ 2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2063$as_echo_n "checking for $2... " >&6; } 2064if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2065 $as_echo_n "(cached) " >&6 2066else 2067 eval "$3=no" 2068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2069/* end confdefs.h. */ 2070$4 2071int 2072main () 2073{ 2074if (sizeof ($2)) 2075 return 0; 2076 ; 2077 return 0; 2078} 2079_ACEOF 2080if ac_fn_c_try_compile "$LINENO"; then : 2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2082/* end confdefs.h. */ 2083$4 2084int 2085main () 2086{ 2087if (sizeof (($2))) 2088 return 0; 2089 ; 2090 return 0; 2091} 2092_ACEOF 2093if ac_fn_c_try_compile "$LINENO"; then : 2094 2095else 2096 eval "$3=yes" 2097fi 2098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2099fi 2100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2101fi 2102eval ac_res=\$$3 2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2104$as_echo "$ac_res" >&6; } 2105 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2106 2107} # ac_fn_c_check_type 2108 2109# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2110# ------------------------------------------------------- 2111# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2112# the include files in INCLUDES and setting the cache variable VAR 2113# accordingly. 2114ac_fn_c_check_header_mongrel () 2115{ 2116 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2117 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2119$as_echo_n "checking for $2... " >&6; } 2120if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2121 $as_echo_n "(cached) " >&6 2122fi 2123eval ac_res=\$$3 2124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2125$as_echo "$ac_res" >&6; } 2126else 2127 # Is the header compilable? 2128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2129$as_echo_n "checking $2 usability... " >&6; } 2130cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2131/* end confdefs.h. */ 2132$4 2133#include <$2> 2134_ACEOF 2135if ac_fn_c_try_compile "$LINENO"; then : 2136 ac_header_compiler=yes 2137else 2138 ac_header_compiler=no 2139fi 2140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2142$as_echo "$ac_header_compiler" >&6; } 2143 2144# Is the header present? 2145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2146$as_echo_n "checking $2 presence... " >&6; } 2147cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2148/* end confdefs.h. */ 2149#include <$2> 2150_ACEOF 2151if ac_fn_c_try_cpp "$LINENO"; then : 2152 ac_header_preproc=yes 2153else 2154 ac_header_preproc=no 2155fi 2156rm -f conftest.err conftest.$ac_ext 2157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2158$as_echo "$ac_header_preproc" >&6; } 2159 2160# So? What about this header? 2161case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2162 yes:no: ) 2163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2164$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2166$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2167 ;; 2168 no:yes:* ) 2169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2170$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2172$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2174$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2176$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2178$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2179( cat <<\_ASBOX 2180## ------------------------------------------------ ## 2181## Report this to google-perftools@googlegroups.com ## 2182## ------------------------------------------------ ## 2183_ASBOX 2184 ) | sed "s/^/$as_me: WARNING: /" >&2 2185 ;; 2186esac 2187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2188$as_echo_n "checking for $2... " >&6; } 2189if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2190 $as_echo_n "(cached) " >&6 2191else 2192 eval "$3=\$ac_header_compiler" 2193fi 2194eval ac_res=\$$3 2195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2196$as_echo "$ac_res" >&6; } 2197fi 2198 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2199 2200} # ac_fn_c_check_header_mongrel 2201 2202# ac_fn_c_check_decl LINENO SYMBOL VAR 2203# ------------------------------------ 2204# Tests whether SYMBOL is declared, setting cache variable VAR accordingly. 2205ac_fn_c_check_decl () 2206{ 2207 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 2209$as_echo_n "checking whether $2 is declared... " >&6; } 2210if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2211 $as_echo_n "(cached) " >&6 2212else 2213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2214/* end confdefs.h. */ 2215$4 2216int 2217main () 2218{ 2219#ifndef $2 2220 (void) $2; 2221#endif 2222 2223 ; 2224 return 0; 2225} 2226_ACEOF 2227if ac_fn_c_try_compile "$LINENO"; then : 2228 eval "$3=yes" 2229else 2230 eval "$3=no" 2231fi 2232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2233fi 2234eval ac_res=\$$3 2235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2236$as_echo "$ac_res" >&6; } 2237 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2238 2239} # ac_fn_c_check_decl 2240cat >config.log <<_ACEOF 2241This file contains any messages produced by compilers while 2242running configure, to aid debugging if configure makes a mistake. 2243 2244It was created by gperftools $as_me 2.0, which was 2245generated by GNU Autoconf 2.65. Invocation command line was 2246 2247 $ $0 $@ 2248 2249_ACEOF 2250exec 5>>config.log 2251{ 2252cat <<_ASUNAME 2253## --------- ## 2254## Platform. ## 2255## --------- ## 2256 2257hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2258uname -m = `(uname -m) 2>/dev/null || echo unknown` 2259uname -r = `(uname -r) 2>/dev/null || echo unknown` 2260uname -s = `(uname -s) 2>/dev/null || echo unknown` 2261uname -v = `(uname -v) 2>/dev/null || echo unknown` 2262 2263/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2264/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2265 2266/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2267/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2268/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2269/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2270/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2271/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2272/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2273 2274_ASUNAME 2275 2276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2277for as_dir in $PATH 2278do 2279 IFS=$as_save_IFS 2280 test -z "$as_dir" && as_dir=. 2281 $as_echo "PATH: $as_dir" 2282 done 2283IFS=$as_save_IFS 2284 2285} >&5 2286 2287cat >&5 <<_ACEOF 2288 2289 2290## ----------- ## 2291## Core tests. ## 2292## ----------- ## 2293 2294_ACEOF 2295 2296 2297# Keep a trace of the command line. 2298# Strip out --no-create and --no-recursion so they do not pile up. 2299# Strip out --silent because we don't want to record it for future runs. 2300# Also quote any args containing shell meta-characters. 2301# Make two passes to allow for proper duplicate-argument suppression. 2302ac_configure_args= 2303ac_configure_args0= 2304ac_configure_args1= 2305ac_must_keep_next=false 2306for ac_pass in 1 2 2307do 2308 for ac_arg 2309 do 2310 case $ac_arg in 2311 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2312 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2313 | -silent | --silent | --silen | --sile | --sil) 2314 continue ;; 2315 *\'*) 2316 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2317 esac 2318 case $ac_pass in 2319 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2320 2) 2321 as_fn_append ac_configure_args1 " '$ac_arg'" 2322 if test $ac_must_keep_next = true; then 2323 ac_must_keep_next=false # Got value, back to normal. 2324 else 2325 case $ac_arg in 2326 *=* | --config-cache | -C | -disable-* | --disable-* \ 2327 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2328 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2329 | -with-* | --with-* | -without-* | --without-* | --x) 2330 case "$ac_configure_args0 " in 2331 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2332 esac 2333 ;; 2334 -* ) ac_must_keep_next=true ;; 2335 esac 2336 fi 2337 as_fn_append ac_configure_args " '$ac_arg'" 2338 ;; 2339 esac 2340 done 2341done 2342{ ac_configure_args0=; unset ac_configure_args0;} 2343{ ac_configure_args1=; unset ac_configure_args1;} 2344 2345# When interrupted or exit'd, cleanup temporary files, and complete 2346# config.log. We remove comments because anyway the quotes in there 2347# would cause problems or look ugly. 2348# WARNING: Use '\'' to represent an apostrophe within the trap. 2349# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2350trap 'exit_status=$? 2351 # Save into config.log some information that might help in debugging. 2352 { 2353 echo 2354 2355 cat <<\_ASBOX 2356## ---------------- ## 2357## Cache variables. ## 2358## ---------------- ## 2359_ASBOX 2360 echo 2361 # The following way of writing the cache mishandles newlines in values, 2362( 2363 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2364 eval ac_val=\$$ac_var 2365 case $ac_val in #( 2366 *${as_nl}*) 2367 case $ac_var in #( 2368 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2369$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2370 esac 2371 case $ac_var in #( 2372 _ | IFS | as_nl) ;; #( 2373 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2374 *) { eval $ac_var=; unset $ac_var;} ;; 2375 esac ;; 2376 esac 2377 done 2378 (set) 2>&1 | 2379 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2380 *${as_nl}ac_space=\ *) 2381 sed -n \ 2382 "s/'\''/'\''\\\\'\'''\''/g; 2383 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2384 ;; #( 2385 *) 2386 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2387 ;; 2388 esac | 2389 sort 2390) 2391 echo 2392 2393 cat <<\_ASBOX 2394## ----------------- ## 2395## Output variables. ## 2396## ----------------- ## 2397_ASBOX 2398 echo 2399 for ac_var in $ac_subst_vars 2400 do 2401 eval ac_val=\$$ac_var 2402 case $ac_val in 2403 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2404 esac 2405 $as_echo "$ac_var='\''$ac_val'\''" 2406 done | sort 2407 echo 2408 2409 if test -n "$ac_subst_files"; then 2410 cat <<\_ASBOX 2411## ------------------- ## 2412## File substitutions. ## 2413## ------------------- ## 2414_ASBOX 2415 echo 2416 for ac_var in $ac_subst_files 2417 do 2418 eval ac_val=\$$ac_var 2419 case $ac_val in 2420 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2421 esac 2422 $as_echo "$ac_var='\''$ac_val'\''" 2423 done | sort 2424 echo 2425 fi 2426 2427 if test -s confdefs.h; then 2428 cat <<\_ASBOX 2429## ----------- ## 2430## confdefs.h. ## 2431## ----------- ## 2432_ASBOX 2433 echo 2434 cat confdefs.h 2435 echo 2436 fi 2437 test "$ac_signal" != 0 && 2438 $as_echo "$as_me: caught signal $ac_signal" 2439 $as_echo "$as_me: exit $exit_status" 2440 } >&5 2441 rm -f core *.core core.conftest.* && 2442 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2443 exit $exit_status 2444' 0 2445for ac_signal in 1 2 13 15; do 2446 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2447done 2448ac_signal=0 2449 2450# confdefs.h avoids OS command line length limits that DEFS can exceed. 2451rm -f -r conftest* confdefs.h 2452 2453$as_echo "/* confdefs.h */" > confdefs.h 2454 2455# Predefined preprocessor variables. 2456 2457cat >>confdefs.h <<_ACEOF 2458#define PACKAGE_NAME "$PACKAGE_NAME" 2459_ACEOF 2460 2461cat >>confdefs.h <<_ACEOF 2462#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2463_ACEOF 2464 2465cat >>confdefs.h <<_ACEOF 2466#define PACKAGE_VERSION "$PACKAGE_VERSION" 2467_ACEOF 2468 2469cat >>confdefs.h <<_ACEOF 2470#define PACKAGE_STRING "$PACKAGE_STRING" 2471_ACEOF 2472 2473cat >>confdefs.h <<_ACEOF 2474#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2475_ACEOF 2476 2477cat >>confdefs.h <<_ACEOF 2478#define PACKAGE_URL "$PACKAGE_URL" 2479_ACEOF 2480 2481 2482# Let the site file select an alternate cache file if it wants to. 2483# Prefer an explicitly selected file to automatically selected ones. 2484ac_site_file1=NONE 2485ac_site_file2=NONE 2486if test -n "$CONFIG_SITE"; then 2487 ac_site_file1=$CONFIG_SITE 2488elif test "x$prefix" != xNONE; then 2489 ac_site_file1=$prefix/share/config.site 2490 ac_site_file2=$prefix/etc/config.site 2491else 2492 ac_site_file1=$ac_default_prefix/share/config.site 2493 ac_site_file2=$ac_default_prefix/etc/config.site 2494fi 2495for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2496do 2497 test "x$ac_site_file" = xNONE && continue 2498 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2499 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2500$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2501 sed 's/^/| /' "$ac_site_file" >&5 2502 . "$ac_site_file" 2503 fi 2504done 2505 2506if test -r "$cache_file"; then 2507 # Some versions of bash will fail to source /dev/null (special files 2508 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2509 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2510 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2511$as_echo "$as_me: loading cache $cache_file" >&6;} 2512 case $cache_file in 2513 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2514 *) . "./$cache_file";; 2515 esac 2516 fi 2517else 2518 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2519$as_echo "$as_me: creating cache $cache_file" >&6;} 2520 >$cache_file 2521fi 2522 2523as_fn_append ac_header_list " stdlib.h" 2524as_fn_append ac_header_list " unistd.h" 2525as_fn_append ac_header_list " sys/param.h" 2526# Check that the precious variables saved in the cache have kept the same 2527# value. 2528ac_cache_corrupted=false 2529for ac_var in $ac_precious_vars; do 2530 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2531 eval ac_new_set=\$ac_env_${ac_var}_set 2532 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2533 eval ac_new_val=\$ac_env_${ac_var}_value 2534 case $ac_old_set,$ac_new_set in 2535 set,) 2536 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2537$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2538 ac_cache_corrupted=: ;; 2539 ,set) 2540 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2541$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2542 ac_cache_corrupted=: ;; 2543 ,);; 2544 *) 2545 if test "x$ac_old_val" != "x$ac_new_val"; then 2546 # differences in whitespace do not lead to failure. 2547 ac_old_val_w=`echo x $ac_old_val` 2548 ac_new_val_w=`echo x $ac_new_val` 2549 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2550 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2551$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2552 ac_cache_corrupted=: 2553 else 2554 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2555$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2556 eval $ac_var=\$ac_old_val 2557 fi 2558 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2559$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2560 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2561$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2562 fi;; 2563 esac 2564 # Pass precious variables to config.status. 2565 if test "$ac_new_set" = set; then 2566 case $ac_new_val in 2567 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2568 *) ac_arg=$ac_var=$ac_new_val ;; 2569 esac 2570 case " $ac_configure_args " in 2571 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2572 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2573 esac 2574 fi 2575done 2576if $ac_cache_corrupted; then 2577 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2578$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2579 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2580$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2581 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2582fi 2583## -------------------- ## 2584## Main body of script. ## 2585## -------------------- ## 2586 2587ac_ext=c 2588ac_cpp='$CPP $CPPFLAGS' 2589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2591ac_compiler_gnu=$ac_cv_c_compiler_gnu 2592 2593 2594# Update this value for every release! (A:B:C will map to foo.so.(A-C).C.B) 2595# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html 2596TCMALLOC_SO_VERSION=5:0:1 2597PROFILER_SO_VERSION=3:0:3 2598 2599 2600 2601 2602# The argument here is just something that should be in the current directory 2603# (for sanity checking) 2604 2605 2606ac_aux_dir= 2607for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2608 for ac_t in install-sh install.sh shtool; do 2609 if test -f "$ac_dir/$ac_t"; then 2610 ac_aux_dir=$ac_dir 2611 ac_install_sh="$ac_aux_dir/$ac_t -c" 2612 break 2 2613 fi 2614 done 2615done 2616if test -z "$ac_aux_dir"; then 2617 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2618fi 2619 2620# These three variables are undocumented and unsupported, 2621# and are intended to be withdrawn in a future Autoconf release. 2622# They can cause serious problems if a builder's source tree is in a directory 2623# whose full name contains unusual characters. 2624ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2625ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2626ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2627 2628 2629# Make sure we can run config.sub. 2630$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2631 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2632 2633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2634$as_echo_n "checking build system type... " >&6; } 2635if test "${ac_cv_build+set}" = set; then : 2636 $as_echo_n "(cached) " >&6 2637else 2638 ac_build_alias=$build_alias 2639test "x$ac_build_alias" = x && 2640 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2641test "x$ac_build_alias" = x && 2642 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 2643ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2644 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2645 2646fi 2647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2648$as_echo "$ac_cv_build" >&6; } 2649case $ac_cv_build in 2650*-*-*) ;; 2651*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 2652esac 2653build=$ac_cv_build 2654ac_save_IFS=$IFS; IFS='-' 2655set x $ac_cv_build 2656shift 2657build_cpu=$1 2658build_vendor=$2 2659shift; shift 2660# Remember, the first character of IFS is used to create $*, 2661# except with old shells: 2662build_os=$* 2663IFS=$ac_save_IFS 2664case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2665 2666 2667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2668$as_echo_n "checking host system type... " >&6; } 2669if test "${ac_cv_host+set}" = set; then : 2670 $as_echo_n "(cached) " >&6 2671else 2672 if test "x$host_alias" = x; then 2673 ac_cv_host=$ac_cv_build 2674else 2675 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2676 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2677fi 2678 2679fi 2680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2681$as_echo "$ac_cv_host" >&6; } 2682case $ac_cv_host in 2683*-*-*) ;; 2684*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 2685esac 2686host=$ac_cv_host 2687ac_save_IFS=$IFS; IFS='-' 2688set x $ac_cv_host 2689shift 2690host_cpu=$1 2691host_vendor=$2 2692shift; shift 2693# Remember, the first character of IFS is used to create $*, 2694# except with old shells: 2695host_os=$* 2696IFS=$ac_save_IFS 2697case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2698 2699 2700am__api_version='1.10' 2701 2702# Find a good install program. We prefer a C program (faster), 2703# so one script is as good as another. But avoid the broken or 2704# incompatible versions: 2705# SysV /etc/install, /usr/sbin/install 2706# SunOS /usr/etc/install 2707# IRIX /sbin/install 2708# AIX /bin/install 2709# AmigaOS /C/install, which installs bootblocks on floppy discs 2710# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2711# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2712# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2713# OS/2's system install, which has a completely different semantic 2714# ./install, which can be erroneously created by make from ./install.sh. 2715# Reject install programs that cannot install multiple files. 2716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2717$as_echo_n "checking for a BSD-compatible install... " >&6; } 2718if test -z "$INSTALL"; then 2719if test "${ac_cv_path_install+set}" = set; then : 2720 $as_echo_n "(cached) " >&6 2721else 2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2723for as_dir in $PATH 2724do 2725 IFS=$as_save_IFS 2726 test -z "$as_dir" && as_dir=. 2727 # Account for people who put trailing slashes in PATH elements. 2728case $as_dir/ in #(( 2729 ./ | .// | /[cC]/* | \ 2730 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2731 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2732 /usr/ucb/* ) ;; 2733 *) 2734 # OSF1 and SCO ODT 3.0 have their own names for install. 2735 # Don't use installbsd from OSF since it installs stuff as root 2736 # by default. 2737 for ac_prog in ginstall scoinst install; do 2738 for ac_exec_ext in '' $ac_executable_extensions; do 2739 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2740 if test $ac_prog = install && 2741 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2742 # AIX install. It has an incompatible calling convention. 2743 : 2744 elif test $ac_prog = install && 2745 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2746 # program-specific install script used by HP pwplus--don't use. 2747 : 2748 else 2749 rm -rf conftest.one conftest.two conftest.dir 2750 echo one > conftest.one 2751 echo two > conftest.two 2752 mkdir conftest.dir 2753 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2754 test -s conftest.one && test -s conftest.two && 2755 test -s conftest.dir/conftest.one && 2756 test -s conftest.dir/conftest.two 2757 then 2758 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2759 break 3 2760 fi 2761 fi 2762 fi 2763 done 2764 done 2765 ;; 2766esac 2767 2768 done 2769IFS=$as_save_IFS 2770 2771rm -rf conftest.one conftest.two conftest.dir 2772 2773fi 2774 if test "${ac_cv_path_install+set}" = set; then 2775 INSTALL=$ac_cv_path_install 2776 else 2777 # As a last resort, use the slow shell script. Don't cache a 2778 # value for INSTALL within a source directory, because that will 2779 # break other packages using the cache if that directory is 2780 # removed, or if the value is a relative name. 2781 INSTALL=$ac_install_sh 2782 fi 2783fi 2784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2785$as_echo "$INSTALL" >&6; } 2786 2787# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2788# It thinks the first close brace ends the variable substitution. 2789test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2790 2791test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2792 2793test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2794 2795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2796$as_echo_n "checking whether build environment is sane... " >&6; } 2797# Just in case 2798sleep 1 2799echo timestamp > conftest.file 2800# Do `set' in a subshell so we don't clobber the current shell's 2801# arguments. Must try -L first in case configure is actually a 2802# symlink; some systems play weird games with the mod time of symlinks 2803# (eg FreeBSD returns the mod time of the symlink's containing 2804# directory). 2805if ( 2806 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2807 if test "$*" = "X"; then 2808 # -L didn't work. 2809 set X `ls -t $srcdir/configure conftest.file` 2810 fi 2811 rm -f conftest.file 2812 if test "$*" != "X $srcdir/configure conftest.file" \ 2813 && test "$*" != "X conftest.file $srcdir/configure"; then 2814 2815 # If neither matched, then we have a broken ls. This can happen 2816 # if, for instance, CONFIG_SHELL is bash and it inherits a 2817 # broken ls alias from the environment. This has actually 2818 # happened. Such a system could not be considered "sane". 2819 as_fn_error "ls -t appears to fail. Make sure there is not a broken 2820alias in your environment" "$LINENO" 5 2821 fi 2822 2823 test "$2" = conftest.file 2824 ) 2825then 2826 # Ok. 2827 : 2828else 2829 as_fn_error "newly created file is older than distributed files! 2830Check your system clock" "$LINENO" 5 2831fi 2832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2833$as_echo "yes" >&6; } 2834test "$program_prefix" != NONE && 2835 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2836# Use a double $ so make ignores it. 2837test "$program_suffix" != NONE && 2838 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2839# Double any \ or $. 2840# By default was `s,x,x', remove it if useless. 2841ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2842program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2843 2844# expand $ac_aux_dir to an absolute path 2845am_aux_dir=`cd $ac_aux_dir && pwd` 2846 2847test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2848# Use eval to expand $SHELL 2849if eval "$MISSING --run true"; then 2850 am_missing_run="$MISSING --run " 2851else 2852 am_missing_run= 2853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2854$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2855fi 2856 2857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2858$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2859if test -z "$MKDIR_P"; then 2860 if test "${ac_cv_path_mkdir+set}" = set; then : 2861 $as_echo_n "(cached) " >&6 2862else 2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2864for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2865do 2866 IFS=$as_save_IFS 2867 test -z "$as_dir" && as_dir=. 2868 for ac_prog in mkdir gmkdir; do 2869 for ac_exec_ext in '' $ac_executable_extensions; do 2870 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2871 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2872 'mkdir (GNU coreutils) '* | \ 2873 'mkdir (coreutils) '* | \ 2874 'mkdir (fileutils) '4.1*) 2875 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2876 break 3;; 2877 esac 2878 done 2879 done 2880 done 2881IFS=$as_save_IFS 2882 2883fi 2884 2885 test -d ./--version && rmdir ./--version 2886 if test "${ac_cv_path_mkdir+set}" = set; then 2887 MKDIR_P="$ac_cv_path_mkdir -p" 2888 else 2889 # As a last resort, use the slow shell script. Don't cache a 2890 # value for MKDIR_P within a source directory, because that will 2891 # break other packages using the cache if that directory is 2892 # removed, or if the value is a relative name. 2893 MKDIR_P="$ac_install_sh -d" 2894 fi 2895fi 2896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2897$as_echo "$MKDIR_P" >&6; } 2898 2899mkdir_p="$MKDIR_P" 2900case $mkdir_p in 2901 [\\/$]* | ?:[\\/]*) ;; 2902 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2903esac 2904 2905for ac_prog in gawk mawk nawk awk 2906do 2907 # Extract the first word of "$ac_prog", so it can be a program name with args. 2908set dummy $ac_prog; ac_word=$2 2909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2910$as_echo_n "checking for $ac_word... " >&6; } 2911if test "${ac_cv_prog_AWK+set}" = set; then : 2912 $as_echo_n "(cached) " >&6 2913else 2914 if test -n "$AWK"; then 2915 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2916else 2917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2918for as_dir in $PATH 2919do 2920 IFS=$as_save_IFS 2921 test -z "$as_dir" && as_dir=. 2922 for ac_exec_ext in '' $ac_executable_extensions; do 2923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2924 ac_cv_prog_AWK="$ac_prog" 2925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2926 break 2 2927 fi 2928done 2929 done 2930IFS=$as_save_IFS 2931 2932fi 2933fi 2934AWK=$ac_cv_prog_AWK 2935if test -n "$AWK"; then 2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2937$as_echo "$AWK" >&6; } 2938else 2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2940$as_echo "no" >&6; } 2941fi 2942 2943 2944 test -n "$AWK" && break 2945done 2946 2947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2948$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2949set x ${MAKE-make} 2950ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2951if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 2952 $as_echo_n "(cached) " >&6 2953else 2954 cat >conftest.make <<\_ACEOF 2955SHELL = /bin/sh 2956all: 2957 @echo '@@@%%%=$(MAKE)=@@@%%%' 2958_ACEOF 2959# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2960case `${MAKE-make} -f conftest.make 2>/dev/null` in 2961 *@@@%%%=?*=@@@%%%*) 2962 eval ac_cv_prog_make_${ac_make}_set=yes;; 2963 *) 2964 eval ac_cv_prog_make_${ac_make}_set=no;; 2965esac 2966rm -f conftest.make 2967fi 2968if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2970$as_echo "yes" >&6; } 2971 SET_MAKE= 2972else 2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2974$as_echo "no" >&6; } 2975 SET_MAKE="MAKE=${MAKE-make}" 2976fi 2977 2978rm -rf .tst 2>/dev/null 2979mkdir .tst 2>/dev/null 2980if test -d .tst; then 2981 am__leading_dot=. 2982else 2983 am__leading_dot=_ 2984fi 2985rmdir .tst 2>/dev/null 2986 2987if test "`cd $srcdir && pwd`" != "`pwd`"; then 2988 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2989 # is not polluted with repeated "-I." 2990 am__isrc=' -I$(srcdir)' 2991 # test to see if srcdir already configured 2992 if test -f $srcdir/config.status; then 2993 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2994 fi 2995fi 2996 2997# test whether we have cygpath 2998if test -z "$CYGPATH_W"; then 2999 if (cygpath --version) >/dev/null 2>/dev/null; then 3000 CYGPATH_W='cygpath -w' 3001 else 3002 CYGPATH_W=echo 3003 fi 3004fi 3005 3006 3007# Define the identity of the package. 3008 PACKAGE='gperftools' 3009 VERSION='2.0' 3010 3011 3012cat >>confdefs.h <<_ACEOF 3013#define PACKAGE "$PACKAGE" 3014_ACEOF 3015 3016 3017cat >>confdefs.h <<_ACEOF 3018#define VERSION "$VERSION" 3019_ACEOF 3020 3021# Some tools Automake needs. 3022 3023ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3024 3025 3026AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3027 3028 3029AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3030 3031 3032AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3033 3034 3035MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3036 3037install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 3038 3039# Installed binaries are usually stripped using `strip' when the user 3040# run `make install-strip'. However `strip' might not be the right 3041# tool to use in cross-compilation environments, therefore Automake 3042# will honor the `STRIP' environment variable to overrule this program. 3043if test "$cross_compiling" != no; then 3044 if test -n "$ac_tool_prefix"; then 3045 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3046set dummy ${ac_tool_prefix}strip; ac_word=$2 3047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3048$as_echo_n "checking for $ac_word... " >&6; } 3049if test "${ac_cv_prog_STRIP+set}" = set; then : 3050 $as_echo_n "(cached) " >&6 3051else 3052 if test -n "$STRIP"; then 3053 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3054else 3055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3056for as_dir in $PATH 3057do 3058 IFS=$as_save_IFS 3059 test -z "$as_dir" && as_dir=. 3060 for ac_exec_ext in '' $ac_executable_extensions; do 3061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3062 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3064 break 2 3065 fi 3066done 3067 done 3068IFS=$as_save_IFS 3069 3070fi 3071fi 3072STRIP=$ac_cv_prog_STRIP 3073if test -n "$STRIP"; then 3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3075$as_echo "$STRIP" >&6; } 3076else 3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3078$as_echo "no" >&6; } 3079fi 3080 3081 3082fi 3083if test -z "$ac_cv_prog_STRIP"; then 3084 ac_ct_STRIP=$STRIP 3085 # Extract the first word of "strip", so it can be a program name with args. 3086set dummy strip; ac_word=$2 3087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3088$as_echo_n "checking for $ac_word... " >&6; } 3089if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 3090 $as_echo_n "(cached) " >&6 3091else 3092 if test -n "$ac_ct_STRIP"; then 3093 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3094else 3095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3096for as_dir in $PATH 3097do 3098 IFS=$as_save_IFS 3099 test -z "$as_dir" && as_dir=. 3100 for ac_exec_ext in '' $ac_executable_extensions; do 3101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3102 ac_cv_prog_ac_ct_STRIP="strip" 3103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3104 break 2 3105 fi 3106done 3107 done 3108IFS=$as_save_IFS 3109 3110fi 3111fi 3112ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3113if test -n "$ac_ct_STRIP"; then 3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3115$as_echo "$ac_ct_STRIP" >&6; } 3116else 3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3118$as_echo "no" >&6; } 3119fi 3120 3121 if test "x$ac_ct_STRIP" = x; then 3122 STRIP=":" 3123 else 3124 case $cross_compiling:$ac_tool_warned in 3125yes:) 3126{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3127$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3128ac_tool_warned=yes ;; 3129esac 3130 STRIP=$ac_ct_STRIP 3131 fi 3132else 3133 STRIP="$ac_cv_prog_STRIP" 3134fi 3135 3136fi 3137INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3138 3139# We need awk for the "check" target. The system "awk" is bad on 3140# some platforms. 3141# Always define AMTAR for backward compatibility. 3142 3143AMTAR=${AMTAR-"${am_missing_run}tar"} 3144 3145am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3146 3147 3148 3149 3150 3151ac_config_headers="$ac_config_headers src/config.h" 3152 3153 3154# Export the version information (for tc_version and friends) 3155TC_VERSION_MAJOR=`expr "$PACKAGE_VERSION" : '\([0-9]*\)'` 3156TC_VERSION_MINOR=`expr "$PACKAGE_VERSION" : '[0-9]*\.\([0-9]*\)'` 3157TC_VERSION_PATCH=`expr "$PACKAGE_VERSION" : '[0-9]*\.[0-9]*\(.*\)$'` 3158 3159 3160 3161 3162 3163# The user can choose not to compile in the heap-profiler, the 3164# heap-checker, or the cpu-profiler. There's also the possibility 3165# for a 'fully minimal' compile, which leaves out the stacktrace 3166# code as well. By default, we include all of these that the 3167# target system supports. 3168default_enable_cpu_profiler=yes 3169default_enable_heap_profiler=yes 3170default_enable_heap_checker=yes 3171default_enable_debugalloc=yes 3172default_enable_minimal=no 3173need_nanosleep=yes # Used later, to decide if to run ACX_NANOSLEEP 3174case "$host" in 3175 *-mingw*) default_enable_minimal=yes; default_enable_debugalloc=no; 3176 need_nanosleep=no;; 3177 *-cygwin*) default_enable_heap_checker=no; default_enable_cpu_profiler=no;; 3178 *-freebsd*) default_enable_heap_checker=no;; 3179 *-darwin*) default_enable_heap_checker=no;; 3180esac 3181 3182# Check whether --enable-cpu-profiler was given. 3183if test "${enable_cpu_profiler+set}" = set; then : 3184 enableval=$enable_cpu_profiler; 3185else 3186 enable_cpu_profiler="$default_enable_cpu_profiler" 3187fi 3188 3189# Check whether --enable-heap-profiler was given. 3190if test "${enable_heap_profiler+set}" = set; then : 3191 enableval=$enable_heap_profiler; 3192else 3193 enable_heap_profiler="$default_enable_heap_profiler" 3194fi 3195 3196# Check whether --enable-heap-checker was given. 3197if test "${enable_heap_checker+set}" = set; then : 3198 enableval=$enable_heap_checker; 3199else 3200 enable_heap_checker="$default_enable_heap_checker" 3201fi 3202 3203# Check whether --enable-debugalloc was given. 3204if test "${enable_debugalloc+set}" = set; then : 3205 enableval=$enable_debugalloc; 3206else 3207 enable_debugalloc="$default_enable_debugalloc" 3208fi 3209 3210# Check whether --enable-minimal was given. 3211if test "${enable_minimal+set}" = set; then : 3212 enableval=$enable_minimal; 3213else 3214 enable_minimal="$default_enable_minimal" 3215fi 3216 3217if test "$enable_minimal" = yes; then 3218 enable_cpu_profiler=no 3219 enable_heap_profiler=no 3220 enable_heap_checker=no 3221fi 3222 3223 3224# Checks for programs. 3225ac_ext=cpp 3226ac_cpp='$CXXCPP $CPPFLAGS' 3227ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3228ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3229ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3230if test -z "$CXX"; then 3231 if test -n "$CCC"; then 3232 CXX=$CCC 3233 else 3234 if test -n "$ac_tool_prefix"; then 3235 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3236 do 3237 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3238set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3240$as_echo_n "checking for $ac_word... " >&6; } 3241if test "${ac_cv_prog_CXX+set}" = set; then : 3242 $as_echo_n "(cached) " >&6 3243else 3244 if test -n "$CXX"; then 3245 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3246else 3247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3248for as_dir in $PATH 3249do 3250 IFS=$as_save_IFS 3251 test -z "$as_dir" && as_dir=. 3252 for ac_exec_ext in '' $ac_executable_extensions; do 3253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3254 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3256 break 2 3257 fi 3258done 3259 done 3260IFS=$as_save_IFS 3261 3262fi 3263fi 3264CXX=$ac_cv_prog_CXX 3265if test -n "$CXX"; then 3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 3267$as_echo "$CXX" >&6; } 3268else 3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3270$as_echo "no" >&6; } 3271fi 3272 3273 3274 test -n "$CXX" && break 3275 done 3276fi 3277if test -z "$CXX"; then 3278 ac_ct_CXX=$CXX 3279 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3280do 3281 # Extract the first word of "$ac_prog", so it can be a program name with args. 3282set dummy $ac_prog; ac_word=$2 3283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3284$as_echo_n "checking for $ac_word... " >&6; } 3285if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : 3286 $as_echo_n "(cached) " >&6 3287else 3288 if test -n "$ac_ct_CXX"; then 3289 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3290else 3291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3292for as_dir in $PATH 3293do 3294 IFS=$as_save_IFS 3295 test -z "$as_dir" && as_dir=. 3296 for ac_exec_ext in '' $ac_executable_extensions; do 3297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3298 ac_cv_prog_ac_ct_CXX="$ac_prog" 3299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3300 break 2 3301 fi 3302done 3303 done 3304IFS=$as_save_IFS 3305 3306fi 3307fi 3308ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3309if test -n "$ac_ct_CXX"; then 3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 3311$as_echo "$ac_ct_CXX" >&6; } 3312else 3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3314$as_echo "no" >&6; } 3315fi 3316 3317 3318 test -n "$ac_ct_CXX" && break 3319done 3320 3321 if test "x$ac_ct_CXX" = x; then 3322 CXX="g++" 3323 else 3324 case $cross_compiling:$ac_tool_warned in 3325yes:) 3326{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3327$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3328ac_tool_warned=yes ;; 3329esac 3330 CXX=$ac_ct_CXX 3331 fi 3332fi 3333 3334 fi 3335fi 3336# Provide some information about the compiler. 3337$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 3338set X $ac_compile 3339ac_compiler=$2 3340for ac_option in --version -v -V -qversion; do 3341 { { ac_try="$ac_compiler $ac_option >&5" 3342case "(($ac_try" in 3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3344 *) ac_try_echo=$ac_try;; 3345esac 3346eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3347$as_echo "$ac_try_echo"; } >&5 3348 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3349 ac_status=$? 3350 if test -s conftest.err; then 3351 sed '10a\ 3352... rest of stderr output deleted ... 3353 10q' conftest.err >conftest.er1 3354 cat conftest.er1 >&5 3355 fi 3356 rm -f conftest.er1 conftest.err 3357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3358 test $ac_status = 0; } 3359done 3360 3361cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3362/* end confdefs.h. */ 3363 3364int 3365main () 3366{ 3367 3368 ; 3369 return 0; 3370} 3371_ACEOF 3372ac_clean_files_save=$ac_clean_files 3373ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3374# Try to create an executable without -o first, disregard a.out. 3375# It will help us diagnose broken compilers, and finding out an intuition 3376# of exeext. 3377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 3378$as_echo_n "checking whether the C++ compiler works... " >&6; } 3379ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3380 3381# The possible output files: 3382ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3383 3384ac_rmfiles= 3385for ac_file in $ac_files 3386do 3387 case $ac_file in 3388 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3389 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3390 esac 3391done 3392rm -f $ac_rmfiles 3393 3394if { { ac_try="$ac_link_default" 3395case "(($ac_try" in 3396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3397 *) ac_try_echo=$ac_try;; 3398esac 3399eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3400$as_echo "$ac_try_echo"; } >&5 3401 (eval "$ac_link_default") 2>&5 3402 ac_status=$? 3403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3404 test $ac_status = 0; }; then : 3405 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3406# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3407# in a Makefile. We should not override ac_cv_exeext if it was cached, 3408# so that the user can short-circuit this test for compilers unknown to 3409# Autoconf. 3410for ac_file in $ac_files '' 3411do 3412 test -f "$ac_file" || continue 3413 case $ac_file in 3414 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3415 ;; 3416 [ab].out ) 3417 # We found the default executable, but exeext='' is most 3418 # certainly right. 3419 break;; 3420 *.* ) 3421 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3422 then :; else 3423 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3424 fi 3425 # We set ac_cv_exeext here because the later test for it is not 3426 # safe: cross compilers may not add the suffix if given an `-o' 3427 # argument, so we may need to know it at that point already. 3428 # Even if this section looks crufty: it has the advantage of 3429 # actually working. 3430 break;; 3431 * ) 3432 break;; 3433 esac 3434done 3435test "$ac_cv_exeext" = no && ac_cv_exeext= 3436 3437else 3438 ac_file='' 3439fi 3440if test -z "$ac_file"; then : 3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3442$as_echo "no" >&6; } 3443$as_echo "$as_me: failed program was:" >&5 3444sed 's/^/| /' conftest.$ac_ext >&5 3445 3446{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3447$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3448{ as_fn_set_status 77 3449as_fn_error "C++ compiler cannot create executables 3450See \`config.log' for more details." "$LINENO" 5; }; } 3451else 3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3453$as_echo "yes" >&6; } 3454fi 3455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 3456$as_echo_n "checking for C++ compiler default output file name... " >&6; } 3457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3458$as_echo "$ac_file" >&6; } 3459ac_exeext=$ac_cv_exeext 3460 3461rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3462ac_clean_files=$ac_clean_files_save 3463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3464$as_echo_n "checking for suffix of executables... " >&6; } 3465if { { ac_try="$ac_link" 3466case "(($ac_try" in 3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3468 *) ac_try_echo=$ac_try;; 3469esac 3470eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3471$as_echo "$ac_try_echo"; } >&5 3472 (eval "$ac_link") 2>&5 3473 ac_status=$? 3474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3475 test $ac_status = 0; }; then : 3476 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3477# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3478# work properly (i.e., refer to `conftest.exe'), while it won't with 3479# `rm'. 3480for ac_file in conftest.exe conftest conftest.*; do 3481 test -f "$ac_file" || continue 3482 case $ac_file in 3483 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3484 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3485 break;; 3486 * ) break;; 3487 esac 3488done 3489else 3490 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3491$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3492as_fn_error "cannot compute suffix of executables: cannot compile and link 3493See \`config.log' for more details." "$LINENO" 5; } 3494fi 3495rm -f conftest conftest$ac_cv_exeext 3496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3497$as_echo "$ac_cv_exeext" >&6; } 3498 3499rm -f conftest.$ac_ext 3500EXEEXT=$ac_cv_exeext 3501ac_exeext=$EXEEXT 3502cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3503/* end confdefs.h. */ 3504#include <stdio.h> 3505int 3506main () 3507{ 3508FILE *f = fopen ("conftest.out", "w"); 3509 return ferror (f) || fclose (f) != 0; 3510 3511 ; 3512 return 0; 3513} 3514_ACEOF 3515ac_clean_files="$ac_clean_files conftest.out" 3516# Check that the compiler produces executables we can run. If not, either 3517# the compiler is broken, or we cross compile. 3518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3519$as_echo_n "checking whether we are cross compiling... " >&6; } 3520if test "$cross_compiling" != yes; then 3521 { { ac_try="$ac_link" 3522case "(($ac_try" in 3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3524 *) ac_try_echo=$ac_try;; 3525esac 3526eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3527$as_echo "$ac_try_echo"; } >&5 3528 (eval "$ac_link") 2>&5 3529 ac_status=$? 3530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3531 test $ac_status = 0; } 3532 if { ac_try='./conftest$ac_cv_exeext' 3533 { { case "(($ac_try" in 3534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3535 *) ac_try_echo=$ac_try;; 3536esac 3537eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3538$as_echo "$ac_try_echo"; } >&5 3539 (eval "$ac_try") 2>&5 3540 ac_status=$? 3541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3542 test $ac_status = 0; }; }; then 3543 cross_compiling=no 3544 else 3545 if test "$cross_compiling" = maybe; then 3546 cross_compiling=yes 3547 else 3548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3549$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3550as_fn_error "cannot run C++ compiled programs. 3551If you meant to cross compile, use \`--host'. 3552See \`config.log' for more details." "$LINENO" 5; } 3553 fi 3554 fi 3555fi 3556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3557$as_echo "$cross_compiling" >&6; } 3558 3559rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3560ac_clean_files=$ac_clean_files_save 3561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3562$as_echo_n "checking for suffix of object files... " >&6; } 3563if test "${ac_cv_objext+set}" = set; then : 3564 $as_echo_n "(cached) " >&6 3565else 3566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3567/* end confdefs.h. */ 3568 3569int 3570main () 3571{ 3572 3573 ; 3574 return 0; 3575} 3576_ACEOF 3577rm -f conftest.o conftest.obj 3578if { { ac_try="$ac_compile" 3579case "(($ac_try" in 3580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3581 *) ac_try_echo=$ac_try;; 3582esac 3583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3584$as_echo "$ac_try_echo"; } >&5 3585 (eval "$ac_compile") 2>&5 3586 ac_status=$? 3587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3588 test $ac_status = 0; }; then : 3589 for ac_file in conftest.o conftest.obj conftest.*; do 3590 test -f "$ac_file" || continue; 3591 case $ac_file in 3592 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3593 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3594 break;; 3595 esac 3596done 3597else 3598 $as_echo "$as_me: failed program was:" >&5 3599sed 's/^/| /' conftest.$ac_ext >&5 3600 3601{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3602$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3603as_fn_error "cannot compute suffix of object files: cannot compile 3604See \`config.log' for more details." "$LINENO" 5; } 3605fi 3606rm -f conftest.$ac_cv_objext conftest.$ac_ext 3607fi 3608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3609$as_echo "$ac_cv_objext" >&6; } 3610OBJEXT=$ac_cv_objext 3611ac_objext=$OBJEXT 3612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 3613$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 3614if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : 3615 $as_echo_n "(cached) " >&6 3616else 3617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3618/* end confdefs.h. */ 3619 3620int 3621main () 3622{ 3623#ifndef __GNUC__ 3624 choke me 3625#endif 3626 3627 ; 3628 return 0; 3629} 3630_ACEOF 3631if ac_fn_cxx_try_compile "$LINENO"; then : 3632 ac_compiler_gnu=yes 3633else 3634 ac_compiler_gnu=no 3635fi 3636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3637ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3638 3639fi 3640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 3641$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 3642if test $ac_compiler_gnu = yes; then 3643 GXX=yes 3644else 3645 GXX= 3646fi 3647ac_test_CXXFLAGS=${CXXFLAGS+set} 3648ac_save_CXXFLAGS=$CXXFLAGS 3649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 3650$as_echo_n "checking whether $CXX accepts -g... " >&6; } 3651if test "${ac_cv_prog_cxx_g+set}" = set; then : 3652 $as_echo_n "(cached) " >&6 3653else 3654 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3655 ac_cxx_werror_flag=yes 3656 ac_cv_prog_cxx_g=no 3657 CXXFLAGS="-g" 3658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3659/* end confdefs.h. */ 3660 3661int 3662main () 3663{ 3664 3665 ; 3666 return 0; 3667} 3668_ACEOF 3669if ac_fn_cxx_try_compile "$LINENO"; then : 3670 ac_cv_prog_cxx_g=yes 3671else 3672 CXXFLAGS="" 3673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3674/* end confdefs.h. */ 3675 3676int 3677main () 3678{ 3679 3680 ; 3681 return 0; 3682} 3683_ACEOF 3684if ac_fn_cxx_try_compile "$LINENO"; then : 3685 3686else 3687 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3688 CXXFLAGS="-g" 3689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3690/* end confdefs.h. */ 3691 3692int 3693main () 3694{ 3695 3696 ; 3697 return 0; 3698} 3699_ACEOF 3700if ac_fn_cxx_try_compile "$LINENO"; then : 3701 ac_cv_prog_cxx_g=yes 3702fi 3703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3704fi 3705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3706fi 3707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3708 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3709fi 3710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 3711$as_echo "$ac_cv_prog_cxx_g" >&6; } 3712if test "$ac_test_CXXFLAGS" = set; then 3713 CXXFLAGS=$ac_save_CXXFLAGS 3714elif test $ac_cv_prog_cxx_g = yes; then 3715 if test "$GXX" = yes; then 3716 CXXFLAGS="-g -O2" 3717 else 3718 CXXFLAGS="-g" 3719 fi 3720else 3721 if test "$GXX" = yes; then 3722 CXXFLAGS="-O2" 3723 else 3724 CXXFLAGS= 3725 fi 3726fi 3727ac_ext=c 3728ac_cpp='$CPP $CPPFLAGS' 3729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3731ac_compiler_gnu=$ac_cv_c_compiler_gnu 3732DEPDIR="${am__leading_dot}deps" 3733 3734ac_config_commands="$ac_config_commands depfiles" 3735 3736 3737am_make=${MAKE-make} 3738cat > confinc << 'END' 3739am__doit: 3740 @echo done 3741.PHONY: am__doit 3742END 3743# If we don't find an include directive, just comment out the code. 3744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3745$as_echo_n "checking for style of include used by $am_make... " >&6; } 3746am__include="#" 3747am__quote= 3748_am_result=none 3749# First try GNU make style include. 3750echo "include confinc" > confmf 3751# We grep out `Entering directory' and `Leaving directory' 3752# messages which can occur if `w' ends up in MAKEFLAGS. 3753# In particular we don't look at `^make:' because GNU make might 3754# be invoked under some other name (usually "gmake"), in which 3755# case it prints its new name instead of `make'. 3756if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3757 am__include=include 3758 am__quote= 3759 _am_result=GNU 3760fi 3761# Now try BSD make style include. 3762if test "$am__include" = "#"; then 3763 echo '.include "confinc"' > confmf 3764 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3765 am__include=.include 3766 am__quote="\"" 3767 _am_result=BSD 3768 fi 3769fi 3770 3771 3772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3773$as_echo "$_am_result" >&6; } 3774rm -f confinc confmf 3775 3776# Check whether --enable-dependency-tracking was given. 3777if test "${enable_dependency_tracking+set}" = set; then : 3778 enableval=$enable_dependency_tracking; 3779fi 3780 3781if test "x$enable_dependency_tracking" != xno; then 3782 am_depcomp="$ac_aux_dir/depcomp" 3783 AMDEPBACKSLASH='\' 3784fi 3785 if test "x$enable_dependency_tracking" != xno; then 3786 AMDEP_TRUE= 3787 AMDEP_FALSE='#' 3788else 3789 AMDEP_TRUE='#' 3790 AMDEP_FALSE= 3791fi 3792 3793 3794 3795depcc="$CXX" am_compiler_list= 3796 3797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3798$as_echo_n "checking dependency style of $depcc... " >&6; } 3799if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : 3800 $as_echo_n "(cached) " >&6 3801else 3802 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3803 # We make a subdir and do the tests there. Otherwise we can end up 3804 # making bogus files that we don't know about and never remove. For 3805 # instance it was reported that on HP-UX the gcc test will end up 3806 # making a dummy file named `D' -- because `-MD' means `put the output 3807 # in D'. 3808 mkdir conftest.dir 3809 # Copy depcomp to subdir because otherwise we won't find it if we're 3810 # using a relative directory. 3811 cp "$am_depcomp" conftest.dir 3812 cd conftest.dir 3813 # We will build objects and dependencies in a subdirectory because 3814 # it helps to detect inapplicable dependency modes. For instance 3815 # both Tru64's cc and ICC support -MD to output dependencies as a 3816 # side effect of compilation, but ICC will put the dependencies in 3817 # the current directory while Tru64 will put them in the object 3818 # directory. 3819 mkdir sub 3820 3821 am_cv_CXX_dependencies_compiler_type=none 3822 if test "$am_compiler_list" = ""; then 3823 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3824 fi 3825 for depmode in $am_compiler_list; do 3826 # Setup a source with many dependencies, because some compilers 3827 # like to wrap large dependency lists on column 80 (with \), and 3828 # we should not choose a depcomp mode which is confused by this. 3829 # 3830 # We need to recreate these files for each test, as the compiler may 3831 # overwrite some of them when testing with obscure command lines. 3832 # This happens at least with the AIX C compiler. 3833 : > sub/conftest.c 3834 for i in 1 2 3 4 5 6; do 3835 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3836 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3837 # Solaris 8's {/usr,}/bin/sh. 3838 touch sub/conftst$i.h 3839 done 3840 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3841 3842 case $depmode in 3843 nosideeffect) 3844 # after this tag, mechanisms are not by side-effect, so they'll 3845 # only be used when explicitly requested 3846 if test "x$enable_dependency_tracking" = xyes; then 3847 continue 3848 else 3849 break 3850 fi 3851 ;; 3852 none) break ;; 3853 esac 3854 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3855 # mode. It turns out that the SunPro C++ compiler does not properly 3856 # handle `-M -o', and we need to detect this. 3857 if depmode=$depmode \ 3858 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3859 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3860 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3861 >/dev/null 2>conftest.err && 3862 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3863 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3864 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3865 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3866 # icc doesn't choke on unknown options, it will just issue warnings 3867 # or remarks (even with -Werror). So we grep stderr for any message 3868 # that says an option was ignored or not supported. 3869 # When given -MP, icc 7.0 and 7.1 complain thusly: 3870 # icc: Command line warning: ignoring option '-M'; no argument required 3871 # The diagnosis changed in icc 8.0: 3872 # icc: Command line remark: option '-MP' not supported 3873 if (grep 'ignoring option' conftest.err || 3874 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3875 am_cv_CXX_dependencies_compiler_type=$depmode 3876 break 3877 fi 3878 fi 3879 done 3880 3881 cd .. 3882 rm -rf conftest.dir 3883else 3884 am_cv_CXX_dependencies_compiler_type=none 3885fi 3886 3887fi 3888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 3889$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 3890CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 3891 3892 if 3893 test "x$enable_dependency_tracking" != xno \ 3894 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 3895 am__fastdepCXX_TRUE= 3896 am__fastdepCXX_FALSE='#' 3897else 3898 am__fastdepCXX_TRUE='#' 3899 am__fastdepCXX_FALSE= 3900fi 3901 3902 3903ac_ext=c 3904ac_cpp='$CPP $CPPFLAGS' 3905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3907ac_compiler_gnu=$ac_cv_c_compiler_gnu 3908if test -n "$ac_tool_prefix"; then 3909 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3910set dummy ${ac_tool_prefix}gcc; ac_word=$2 3911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3912$as_echo_n "checking for $ac_word... " >&6; } 3913if test "${ac_cv_prog_CC+set}" = set; then : 3914 $as_echo_n "(cached) " >&6 3915else 3916 if test -n "$CC"; then 3917 ac_cv_prog_CC="$CC" # Let the user override the test. 3918else 3919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3920for as_dir in $PATH 3921do 3922 IFS=$as_save_IFS 3923 test -z "$as_dir" && as_dir=. 3924 for ac_exec_ext in '' $ac_executable_extensions; do 3925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3926 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3928 break 2 3929 fi 3930done 3931 done 3932IFS=$as_save_IFS 3933 3934fi 3935fi 3936CC=$ac_cv_prog_CC 3937if test -n "$CC"; then 3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3939$as_echo "$CC" >&6; } 3940else 3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3942$as_echo "no" >&6; } 3943fi 3944 3945 3946fi 3947if test -z "$ac_cv_prog_CC"; then 3948 ac_ct_CC=$CC 3949 # Extract the first word of "gcc", so it can be a program name with args. 3950set dummy gcc; ac_word=$2 3951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3952$as_echo_n "checking for $ac_word... " >&6; } 3953if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3954 $as_echo_n "(cached) " >&6 3955else 3956 if test -n "$ac_ct_CC"; then 3957 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3958else 3959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3960for as_dir in $PATH 3961do 3962 IFS=$as_save_IFS 3963 test -z "$as_dir" && as_dir=. 3964 for ac_exec_ext in '' $ac_executable_extensions; do 3965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3966 ac_cv_prog_ac_ct_CC="gcc" 3967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3968 break 2 3969 fi 3970done 3971 done 3972IFS=$as_save_IFS 3973 3974fi 3975fi 3976ac_ct_CC=$ac_cv_prog_ac_ct_CC 3977if test -n "$ac_ct_CC"; then 3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3979$as_echo "$ac_ct_CC" >&6; } 3980else 3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3982$as_echo "no" >&6; } 3983fi 3984 3985 if test "x$ac_ct_CC" = x; then 3986 CC="" 3987 else 3988 case $cross_compiling:$ac_tool_warned in 3989yes:) 3990{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3991$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3992ac_tool_warned=yes ;; 3993esac 3994 CC=$ac_ct_CC 3995 fi 3996else 3997 CC="$ac_cv_prog_CC" 3998fi 3999 4000if test -z "$CC"; then 4001 if test -n "$ac_tool_prefix"; then 4002 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4003set dummy ${ac_tool_prefix}cc; ac_word=$2 4004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4005$as_echo_n "checking for $ac_word... " >&6; } 4006if test "${ac_cv_prog_CC+set}" = set; then : 4007 $as_echo_n "(cached) " >&6 4008else 4009 if test -n "$CC"; then 4010 ac_cv_prog_CC="$CC" # Let the user override the test. 4011else 4012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4013for as_dir in $PATH 4014do 4015 IFS=$as_save_IFS 4016 test -z "$as_dir" && as_dir=. 4017 for ac_exec_ext in '' $ac_executable_extensions; do 4018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4019 ac_cv_prog_CC="${ac_tool_prefix}cc" 4020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4021 break 2 4022 fi 4023done 4024 done 4025IFS=$as_save_IFS 4026 4027fi 4028fi 4029CC=$ac_cv_prog_CC 4030if test -n "$CC"; then 4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4032$as_echo "$CC" >&6; } 4033else 4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4035$as_echo "no" >&6; } 4036fi 4037 4038 4039 fi 4040fi 4041if test -z "$CC"; then 4042 # Extract the first word of "cc", so it can be a program name with args. 4043set dummy cc; ac_word=$2 4044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4045$as_echo_n "checking for $ac_word... " >&6; } 4046if test "${ac_cv_prog_CC+set}" = set; then : 4047 $as_echo_n "(cached) " >&6 4048else 4049 if test -n "$CC"; then 4050 ac_cv_prog_CC="$CC" # Let the user override the test. 4051else 4052 ac_prog_rejected=no 4053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4054for as_dir in $PATH 4055do 4056 IFS=$as_save_IFS 4057 test -z "$as_dir" && as_dir=. 4058 for ac_exec_ext in '' $ac_executable_extensions; do 4059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4060 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4061 ac_prog_rejected=yes 4062 continue 4063 fi 4064 ac_cv_prog_CC="cc" 4065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4066 break 2 4067 fi 4068done 4069 done 4070IFS=$as_save_IFS 4071 4072if test $ac_prog_rejected = yes; then 4073 # We found a bogon in the path, so make sure we never use it. 4074 set dummy $ac_cv_prog_CC 4075 shift 4076 if test $# != 0; then 4077 # We chose a different compiler from the bogus one. 4078 # However, it has the same basename, so the bogon will be chosen 4079 # first if we set CC to just the basename; use the full file name. 4080 shift 4081 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4082 fi 4083fi 4084fi 4085fi 4086CC=$ac_cv_prog_CC 4087if test -n "$CC"; then 4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4089$as_echo "$CC" >&6; } 4090else 4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4092$as_echo "no" >&6; } 4093fi 4094 4095 4096fi 4097if test -z "$CC"; then 4098 if test -n "$ac_tool_prefix"; then 4099 for ac_prog in cl.exe 4100 do 4101 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4102set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4104$as_echo_n "checking for $ac_word... " >&6; } 4105if test "${ac_cv_prog_CC+set}" = set; then : 4106 $as_echo_n "(cached) " >&6 4107else 4108 if test -n "$CC"; then 4109 ac_cv_prog_CC="$CC" # Let the user override the test. 4110else 4111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4112for as_dir in $PATH 4113do 4114 IFS=$as_save_IFS 4115 test -z "$as_dir" && as_dir=. 4116 for ac_exec_ext in '' $ac_executable_extensions; do 4117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4118 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4120 break 2 4121 fi 4122done 4123 done 4124IFS=$as_save_IFS 4125 4126fi 4127fi 4128CC=$ac_cv_prog_CC 4129if test -n "$CC"; then 4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4131$as_echo "$CC" >&6; } 4132else 4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4134$as_echo "no" >&6; } 4135fi 4136 4137 4138 test -n "$CC" && break 4139 done 4140fi 4141if test -z "$CC"; then 4142 ac_ct_CC=$CC 4143 for ac_prog in cl.exe 4144do 4145 # Extract the first word of "$ac_prog", so it can be a program name with args. 4146set dummy $ac_prog; ac_word=$2 4147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4148$as_echo_n "checking for $ac_word... " >&6; } 4149if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4150 $as_echo_n "(cached) " >&6 4151else 4152 if test -n "$ac_ct_CC"; then 4153 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4154else 4155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4156for as_dir in $PATH 4157do 4158 IFS=$as_save_IFS 4159 test -z "$as_dir" && as_dir=. 4160 for ac_exec_ext in '' $ac_executable_extensions; do 4161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4162 ac_cv_prog_ac_ct_CC="$ac_prog" 4163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4164 break 2 4165 fi 4166done 4167 done 4168IFS=$as_save_IFS 4169 4170fi 4171fi 4172ac_ct_CC=$ac_cv_prog_ac_ct_CC 4173if test -n "$ac_ct_CC"; then 4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4175$as_echo "$ac_ct_CC" >&6; } 4176else 4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4178$as_echo "no" >&6; } 4179fi 4180 4181 4182 test -n "$ac_ct_CC" && break 4183done 4184 4185 if test "x$ac_ct_CC" = x; then 4186 CC="" 4187 else 4188 case $cross_compiling:$ac_tool_warned in 4189yes:) 4190{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4191$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4192ac_tool_warned=yes ;; 4193esac 4194 CC=$ac_ct_CC 4195 fi 4196fi 4197 4198fi 4199 4200 4201test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4202$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4203as_fn_error "no acceptable C compiler found in \$PATH 4204See \`config.log' for more details." "$LINENO" 5; } 4205 4206# Provide some information about the compiler. 4207$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4208set X $ac_compile 4209ac_compiler=$2 4210for ac_option in --version -v -V -qversion; do 4211 { { ac_try="$ac_compiler $ac_option >&5" 4212case "(($ac_try" in 4213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4214 *) ac_try_echo=$ac_try;; 4215esac 4216eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4217$as_echo "$ac_try_echo"; } >&5 4218 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4219 ac_status=$? 4220 if test -s conftest.err; then 4221 sed '10a\ 4222... rest of stderr output deleted ... 4223 10q' conftest.err >conftest.er1 4224 cat conftest.er1 >&5 4225 fi 4226 rm -f conftest.er1 conftest.err 4227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4228 test $ac_status = 0; } 4229done 4230 4231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4232$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4233if test "${ac_cv_c_compiler_gnu+set}" = set; then : 4234 $as_echo_n "(cached) " >&6 4235else 4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4237/* end confdefs.h. */ 4238 4239int 4240main () 4241{ 4242#ifndef __GNUC__ 4243 choke me 4244#endif 4245 4246 ; 4247 return 0; 4248} 4249_ACEOF 4250if ac_fn_c_try_compile "$LINENO"; then : 4251 ac_compiler_gnu=yes 4252else 4253 ac_compiler_gnu=no 4254fi 4255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4256ac_cv_c_compiler_gnu=$ac_compiler_gnu 4257 4258fi 4259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4260$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4261if test $ac_compiler_gnu = yes; then 4262 GCC=yes 4263else 4264 GCC= 4265fi 4266ac_test_CFLAGS=${CFLAGS+set} 4267ac_save_CFLAGS=$CFLAGS 4268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4269$as_echo_n "checking whether $CC accepts -g... " >&6; } 4270if test "${ac_cv_prog_cc_g+set}" = set; then : 4271 $as_echo_n "(cached) " >&6 4272else 4273 ac_save_c_werror_flag=$ac_c_werror_flag 4274 ac_c_werror_flag=yes 4275 ac_cv_prog_cc_g=no 4276 CFLAGS="-g" 4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4278/* end confdefs.h. */ 4279 4280int 4281main () 4282{ 4283 4284 ; 4285 return 0; 4286} 4287_ACEOF 4288if ac_fn_c_try_compile "$LINENO"; then : 4289 ac_cv_prog_cc_g=yes 4290else 4291 CFLAGS="" 4292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4293/* end confdefs.h. */ 4294 4295int 4296main () 4297{ 4298 4299 ; 4300 return 0; 4301} 4302_ACEOF 4303if ac_fn_c_try_compile "$LINENO"; then : 4304 4305else 4306 ac_c_werror_flag=$ac_save_c_werror_flag 4307 CFLAGS="-g" 4308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4309/* end confdefs.h. */ 4310 4311int 4312main () 4313{ 4314 4315 ; 4316 return 0; 4317} 4318_ACEOF 4319if ac_fn_c_try_compile "$LINENO"; then : 4320 ac_cv_prog_cc_g=yes 4321fi 4322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4323fi 4324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4325fi 4326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4327 ac_c_werror_flag=$ac_save_c_werror_flag 4328fi 4329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4330$as_echo "$ac_cv_prog_cc_g" >&6; } 4331if test "$ac_test_CFLAGS" = set; then 4332 CFLAGS=$ac_save_CFLAGS 4333elif test $ac_cv_prog_cc_g = yes; then 4334 if test "$GCC" = yes; then 4335 CFLAGS="-g -O2" 4336 else 4337 CFLAGS="-g" 4338 fi 4339else 4340 if test "$GCC" = yes; then 4341 CFLAGS="-O2" 4342 else 4343 CFLAGS= 4344 fi 4345fi 4346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4347$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4348if test "${ac_cv_prog_cc_c89+set}" = set; then : 4349 $as_echo_n "(cached) " >&6 4350else 4351 ac_cv_prog_cc_c89=no 4352ac_save_CC=$CC 4353cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4354/* end confdefs.h. */ 4355#include <stdarg.h> 4356#include <stdio.h> 4357#include <sys/types.h> 4358#include <sys/stat.h> 4359/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4360struct buf { int x; }; 4361FILE * (*rcsopen) (struct buf *, struct stat *, int); 4362static char *e (p, i) 4363 char **p; 4364 int i; 4365{ 4366 return p[i]; 4367} 4368static char *f (char * (*g) (char **, int), char **p, ...) 4369{ 4370 char *s; 4371 va_list v; 4372 va_start (v,p); 4373 s = g (p, va_arg (v,int)); 4374 va_end (v); 4375 return s; 4376} 4377 4378/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4379 function prototypes and stuff, but not '\xHH' hex character constants. 4380 These don't provoke an error unfortunately, instead are silently treated 4381 as 'x'. The following induces an error, until -std is added to get 4382 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4383 array size at least. It's necessary to write '\x00'==0 to get something 4384 that's true only with -std. */ 4385int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4386 4387/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4388 inside strings and character constants. */ 4389#define FOO(x) 'x' 4390int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4391 4392int test (int i, double x); 4393struct s1 {int (*f) (int a);}; 4394struct s2 {int (*f) (double a);}; 4395int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4396int argc; 4397char **argv; 4398int 4399main () 4400{ 4401return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4402 ; 4403 return 0; 4404} 4405_ACEOF 4406for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4407 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4408do 4409 CC="$ac_save_CC $ac_arg" 4410 if ac_fn_c_try_compile "$LINENO"; then : 4411 ac_cv_prog_cc_c89=$ac_arg 4412fi 4413rm -f core conftest.err conftest.$ac_objext 4414 test "x$ac_cv_prog_cc_c89" != "xno" && break 4415done 4416rm -f conftest.$ac_ext 4417CC=$ac_save_CC 4418 4419fi 4420# AC_CACHE_VAL 4421case "x$ac_cv_prog_cc_c89" in 4422 x) 4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4424$as_echo "none needed" >&6; } ;; 4425 xno) 4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4427$as_echo "unsupported" >&6; } ;; 4428 *) 4429 CC="$CC $ac_cv_prog_cc_c89" 4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4431$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4432esac 4433if test "x$ac_cv_prog_cc_c89" != xno; then : 4434 4435fi 4436 4437ac_ext=c 4438ac_cpp='$CPP $CPPFLAGS' 4439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4441ac_compiler_gnu=$ac_cv_c_compiler_gnu 4442 4443depcc="$CC" am_compiler_list= 4444 4445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4446$as_echo_n "checking dependency style of $depcc... " >&6; } 4447if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 4448 $as_echo_n "(cached) " >&6 4449else 4450 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4451 # We make a subdir and do the tests there. Otherwise we can end up 4452 # making bogus files that we don't know about and never remove. For 4453 # instance it was reported that on HP-UX the gcc test will end up 4454 # making a dummy file named `D' -- because `-MD' means `put the output 4455 # in D'. 4456 mkdir conftest.dir 4457 # Copy depcomp to subdir because otherwise we won't find it if we're 4458 # using a relative directory. 4459 cp "$am_depcomp" conftest.dir 4460 cd conftest.dir 4461 # We will build objects and dependencies in a subdirectory because 4462 # it helps to detect inapplicable dependency modes. For instance 4463 # both Tru64's cc and ICC support -MD to output dependencies as a 4464 # side effect of compilation, but ICC will put the dependencies in 4465 # the current directory while Tru64 will put them in the object 4466 # directory. 4467 mkdir sub 4468 4469 am_cv_CC_dependencies_compiler_type=none 4470 if test "$am_compiler_list" = ""; then 4471 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4472 fi 4473 for depmode in $am_compiler_list; do 4474 # Setup a source with many dependencies, because some compilers 4475 # like to wrap large dependency lists on column 80 (with \), and 4476 # we should not choose a depcomp mode which is confused by this. 4477 # 4478 # We need to recreate these files for each test, as the compiler may 4479 # overwrite some of them when testing with obscure command lines. 4480 # This happens at least with the AIX C compiler. 4481 : > sub/conftest.c 4482 for i in 1 2 3 4 5 6; do 4483 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4484 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4485 # Solaris 8's {/usr,}/bin/sh. 4486 touch sub/conftst$i.h 4487 done 4488 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4489 4490 case $depmode in 4491 nosideeffect) 4492 # after this tag, mechanisms are not by side-effect, so they'll 4493 # only be used when explicitly requested 4494 if test "x$enable_dependency_tracking" = xyes; then 4495 continue 4496 else 4497 break 4498 fi 4499 ;; 4500 none) break ;; 4501 esac 4502 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4503 # mode. It turns out that the SunPro C++ compiler does not properly 4504 # handle `-M -o', and we need to detect this. 4505 if depmode=$depmode \ 4506 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4507 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4508 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4509 >/dev/null 2>conftest.err && 4510 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4511 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4512 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4513 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4514 # icc doesn't choke on unknown options, it will just issue warnings 4515 # or remarks (even with -Werror). So we grep stderr for any message 4516 # that says an option was ignored or not supported. 4517 # When given -MP, icc 7.0 and 7.1 complain thusly: 4518 # icc: Command line warning: ignoring option '-M'; no argument required 4519 # The diagnosis changed in icc 8.0: 4520 # icc: Command line remark: option '-MP' not supported 4521 if (grep 'ignoring option' conftest.err || 4522 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4523 am_cv_CC_dependencies_compiler_type=$depmode 4524 break 4525 fi 4526 fi 4527 done 4528 4529 cd .. 4530 rm -rf conftest.dir 4531else 4532 am_cv_CC_dependencies_compiler_type=none 4533fi 4534 4535fi 4536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4537$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4538CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4539 4540 if 4541 test "x$enable_dependency_tracking" != xno \ 4542 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4543 am__fastdepCC_TRUE= 4544 am__fastdepCC_FALSE='#' 4545else 4546 am__fastdepCC_TRUE='#' 4547 am__fastdepCC_FALSE= 4548fi 4549 4550 4551ac_ext=c 4552ac_cpp='$CPP $CPPFLAGS' 4553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4555ac_compiler_gnu=$ac_cv_c_compiler_gnu 4556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4557$as_echo_n "checking how to run the C preprocessor... " >&6; } 4558# On Suns, sometimes $CPP names a directory. 4559if test -n "$CPP" && test -d "$CPP"; then 4560 CPP= 4561fi 4562if test -z "$CPP"; then 4563 if test "${ac_cv_prog_CPP+set}" = set; then : 4564 $as_echo_n "(cached) " >&6 4565else 4566 # Double quotes because CPP needs to be expanded 4567 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4568 do 4569 ac_preproc_ok=false 4570for ac_c_preproc_warn_flag in '' yes 4571do 4572 # Use a header file that comes with gcc, so configuring glibc 4573 # with a fresh cross-compiler works. 4574 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4575 # <limits.h> exists even on freestanding compilers. 4576 # On the NeXT, cc -E runs the code through the compiler's parser, 4577 # not just through cpp. "Syntax error" is here to catch this case. 4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4579/* end confdefs.h. */ 4580#ifdef __STDC__ 4581# include <limits.h> 4582#else 4583# include <assert.h> 4584#endif 4585 Syntax error 4586_ACEOF 4587if ac_fn_c_try_cpp "$LINENO"; then : 4588 4589else 4590 # Broken: fails on valid input. 4591continue 4592fi 4593rm -f conftest.err conftest.$ac_ext 4594 4595 # OK, works on sane cases. Now check whether nonexistent headers 4596 # can be detected and how. 4597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4598/* end confdefs.h. */ 4599#include <ac_nonexistent.h> 4600_ACEOF 4601if ac_fn_c_try_cpp "$LINENO"; then : 4602 # Broken: success on invalid input. 4603continue 4604else 4605 # Passes both tests. 4606ac_preproc_ok=: 4607break 4608fi 4609rm -f conftest.err conftest.$ac_ext 4610 4611done 4612# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4613rm -f conftest.err conftest.$ac_ext 4614if $ac_preproc_ok; then : 4615 break 4616fi 4617 4618 done 4619 ac_cv_prog_CPP=$CPP 4620 4621fi 4622 CPP=$ac_cv_prog_CPP 4623else 4624 ac_cv_prog_CPP=$CPP 4625fi 4626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4627$as_echo "$CPP" >&6; } 4628ac_preproc_ok=false 4629for ac_c_preproc_warn_flag in '' yes 4630do 4631 # Use a header file that comes with gcc, so configuring glibc 4632 # with a fresh cross-compiler works. 4633 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4634 # <limits.h> exists even on freestanding compilers. 4635 # On the NeXT, cc -E runs the code through the compiler's parser, 4636 # not just through cpp. "Syntax error" is here to catch this case. 4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4638/* end confdefs.h. */ 4639#ifdef __STDC__ 4640# include <limits.h> 4641#else 4642# include <assert.h> 4643#endif 4644 Syntax error 4645_ACEOF 4646if ac_fn_c_try_cpp "$LINENO"; then : 4647 4648else 4649 # Broken: fails on valid input. 4650continue 4651fi 4652rm -f conftest.err conftest.$ac_ext 4653 4654 # OK, works on sane cases. Now check whether nonexistent headers 4655 # can be detected and how. 4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4657/* end confdefs.h. */ 4658#include <ac_nonexistent.h> 4659_ACEOF 4660if ac_fn_c_try_cpp "$LINENO"; then : 4661 # Broken: success on invalid input. 4662continue 4663else 4664 # Passes both tests. 4665ac_preproc_ok=: 4666break 4667fi 4668rm -f conftest.err conftest.$ac_ext 4669 4670done 4671# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4672rm -f conftest.err conftest.$ac_ext 4673if $ac_preproc_ok; then : 4674 4675else 4676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4677$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4678as_fn_error "C preprocessor \"$CPP\" fails sanity check 4679See \`config.log' for more details." "$LINENO" 5; } 4680fi 4681 4682ac_ext=c 4683ac_cpp='$CPP $CPPFLAGS' 4684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4686ac_compiler_gnu=$ac_cv_c_compiler_gnu 4687 4688 if test "$GCC" = yes; then 4689 GCC_TRUE= 4690 GCC_FALSE='#' 4691else 4692 GCC_TRUE='#' 4693 GCC_FALSE= 4694fi 4695 # let the Makefile know if we're gcc 4696if test "x$CC" != xcc; then 4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 4698$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 4699else 4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 4701$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 4702fi 4703set dummy $CC; ac_cc=`$as_echo "$2" | 4704 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 4705if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then : 4706 $as_echo_n "(cached) " >&6 4707else 4708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4709/* end confdefs.h. */ 4710 4711int 4712main () 4713{ 4714 4715 ; 4716 return 0; 4717} 4718_ACEOF 4719# Make sure it works both with $CC and with simple cc. 4720# We do the test twice because some compilers refuse to overwrite an 4721# existing .o file with -o, though they will create one. 4722ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 4723rm -f conftest2.* 4724if { { case "(($ac_try" in 4725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4726 *) ac_try_echo=$ac_try;; 4727esac 4728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4729$as_echo "$ac_try_echo"; } >&5 4730 (eval "$ac_try") 2>&5 4731 ac_status=$? 4732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4733 test $ac_status = 0; } && 4734 test -f conftest2.$ac_objext && { { case "(($ac_try" in 4735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4736 *) ac_try_echo=$ac_try;; 4737esac 4738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4739$as_echo "$ac_try_echo"; } >&5 4740 (eval "$ac_try") 2>&5 4741 ac_status=$? 4742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4743 test $ac_status = 0; }; 4744then 4745 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 4746 if test "x$CC" != xcc; then 4747 # Test first that cc exists at all. 4748 if { ac_try='cc -c conftest.$ac_ext >&5' 4749 { { case "(($ac_try" in 4750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4751 *) ac_try_echo=$ac_try;; 4752esac 4753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4754$as_echo "$ac_try_echo"; } >&5 4755 (eval "$ac_try") 2>&5 4756 ac_status=$? 4757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4758 test $ac_status = 0; }; }; then 4759 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 4760 rm -f conftest2.* 4761 if { { case "(($ac_try" in 4762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4763 *) ac_try_echo=$ac_try;; 4764esac 4765eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4766$as_echo "$ac_try_echo"; } >&5 4767 (eval "$ac_try") 2>&5 4768 ac_status=$? 4769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4770 test $ac_status = 0; } && 4771 test -f conftest2.$ac_objext && { { case "(($ac_try" in 4772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4773 *) ac_try_echo=$ac_try;; 4774esac 4775eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4776$as_echo "$ac_try_echo"; } >&5 4777 (eval "$ac_try") 2>&5 4778 ac_status=$? 4779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4780 test $ac_status = 0; }; 4781 then 4782 # cc works too. 4783 : 4784 else 4785 # cc exists but doesn't like -o. 4786 eval ac_cv_prog_cc_${ac_cc}_c_o=no 4787 fi 4788 fi 4789 fi 4790else 4791 eval ac_cv_prog_cc_${ac_cc}_c_o=no 4792fi 4793rm -f core conftest* 4794 4795fi 4796if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4798$as_echo "yes" >&6; } 4799else 4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4801$as_echo "no" >&6; } 4802 4803$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 4804 4805fi 4806 4807# FIXME: we rely on the cache variable name because 4808# there is no other way. 4809set dummy $CC 4810ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 4811if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then 4812 # Losing compiler, so override with the script. 4813 # FIXME: It is wrong to rewrite CC. 4814 # But if we don't then we get into trouble of one sort or another. 4815 # A longer-term fix would be to have automake use am__CC in this case, 4816 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4817 CC="$am_aux_dir/compile $CC" 4818fi 4819 4820 # shrug: autogen.sh suddenly needs this for some reason 4821 4822# Check if we have an objcopy installed that supports -W 4823if test -n "$ac_tool_prefix"; then 4824 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args. 4825set dummy ${ac_tool_prefix}objcopy; ac_word=$2 4826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4827$as_echo_n "checking for $ac_word... " >&6; } 4828if test "${ac_cv_prog_OBJCOPY+set}" = set; then : 4829 $as_echo_n "(cached) " >&6 4830else 4831 if test -n "$OBJCOPY"; then 4832 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 4833else 4834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4835for as_dir in $PATH 4836do 4837 IFS=$as_save_IFS 4838 test -z "$as_dir" && as_dir=. 4839 for ac_exec_ext in '' $ac_executable_extensions; do 4840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4841 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy" 4842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4843 break 2 4844 fi 4845done 4846 done 4847IFS=$as_save_IFS 4848 4849fi 4850fi 4851OBJCOPY=$ac_cv_prog_OBJCOPY 4852if test -n "$OBJCOPY"; then 4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 4854$as_echo "$OBJCOPY" >&6; } 4855else 4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4857$as_echo "no" >&6; } 4858fi 4859 4860 4861fi 4862if test -z "$ac_cv_prog_OBJCOPY"; then 4863 ac_ct_OBJCOPY=$OBJCOPY 4864 # Extract the first word of "objcopy", so it can be a program name with args. 4865set dummy objcopy; ac_word=$2 4866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4867$as_echo_n "checking for $ac_word... " >&6; } 4868if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then : 4869 $as_echo_n "(cached) " >&6 4870else 4871 if test -n "$ac_ct_OBJCOPY"; then 4872 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 4873else 4874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4875for as_dir in $PATH 4876do 4877 IFS=$as_save_IFS 4878 test -z "$as_dir" && as_dir=. 4879 for ac_exec_ext in '' $ac_executable_extensions; do 4880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4881 ac_cv_prog_ac_ct_OBJCOPY="objcopy" 4882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4883 break 2 4884 fi 4885done 4886 done 4887IFS=$as_save_IFS 4888 4889fi 4890fi 4891ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 4892if test -n "$ac_ct_OBJCOPY"; then 4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 4894$as_echo "$ac_ct_OBJCOPY" >&6; } 4895else 4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4897$as_echo "no" >&6; } 4898fi 4899 4900 if test "x$ac_ct_OBJCOPY" = x; then 4901 OBJCOPY="" 4902 else 4903 case $cross_compiling:$ac_tool_warned in 4904yes:) 4905{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4906$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4907ac_tool_warned=yes ;; 4908esac 4909 OBJCOPY=$ac_ct_OBJCOPY 4910 fi 4911else 4912 OBJCOPY="$ac_cv_prog_OBJCOPY" 4913fi 4914 4915 4916if test -n "$OBJCOPY"; then : 4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $OBJCOPY supports -W" >&5 4918$as_echo_n "checking if $OBJCOPY supports -W... " >&6; } 4919if test "${gpt_cv_objcopy_weaken+set}" = set; then : 4920 $as_echo_n "(cached) " >&6 4921else 4922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4923/* end confdefs.h. */ 4924void foo() {} int main() {return 0;} 4925_ACEOF 4926if ac_fn_c_try_link "$LINENO"; then : 4927 if "$OBJCOPY" -W foo conftest$ac_exeext /dev/null; then : 4928 gpt_cv_objcopy_weaken=yes 4929else 4930 gpt_cv_objcopy_weaken=no 4931fi 4932else 4933 gpt_cv_objcopy_weaken=no 4934fi 4935rm -f core conftest.err conftest.$ac_objext \ 4936 conftest$ac_exeext conftest.$ac_ext 4937fi 4938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gpt_cv_objcopy_weaken" >&5 4939$as_echo "$gpt_cv_objcopy_weaken" >&6; } 4940else 4941 gpt_cv_objcopy_weaken=no 4942fi 4943 if test $gpt_cv_objcopy_weaken = yes; then 4944 HAVE_OBJCOPY_WEAKEN_TRUE= 4945 HAVE_OBJCOPY_WEAKEN_FALSE='#' 4946else 4947 HAVE_OBJCOPY_WEAKEN_TRUE='#' 4948 HAVE_OBJCOPY_WEAKEN_FALSE= 4949fi 4950 4951 4952case $host_os in 4953 *mingw*) 4954 # Disabling fast install keeps libtool from creating wrapper scripts 4955 # around the executables it builds. Such scripts have caused failures on 4956 # MinGW. Using this option means an extra link step is executed during 4957 # "make install". 4958 # Check whether --enable-fast-install was given. 4959if test "${enable_fast_install+set}" = set; then : 4960 enableval=$enable_fast_install; p=${PACKAGE-default} 4961 case $enableval in 4962 yes) enable_fast_install=yes ;; 4963 no) enable_fast_install=no ;; 4964 *) 4965 enable_fast_install=no 4966 # Look at the argument we got. We use all the common list separators. 4967 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4968 for pkg in $enableval; do 4969 IFS="$lt_save_ifs" 4970 if test "X$pkg" = "X$p"; then 4971 enable_fast_install=yes 4972 fi 4973 done 4974 IFS="$lt_save_ifs" 4975 ;; 4976 esac 4977else 4978 enable_fast_install=no 4979fi 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 ;; 4990 *) 4991 # Check whether --enable-fast-install was given. 4992if test "${enable_fast_install+set}" = set; then : 4993 enableval=$enable_fast_install; p=${PACKAGE-default} 4994 case $enableval in 4995 yes) enable_fast_install=yes ;; 4996 no) enable_fast_install=no ;; 4997 *) 4998 enable_fast_install=no 4999 # Look at the argument we got. We use all the common list separators. 5000 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5001 for pkg in $enableval; do 5002 IFS="$lt_save_ifs" 5003 if test "X$pkg" = "X$p"; then 5004 enable_fast_install=yes 5005 fi 5006 done 5007 IFS="$lt_save_ifs" 5008 ;; 5009 esac 5010else 5011 enable_fast_install=yes 5012fi 5013 5014 5015 5016 5017 5018 5019 ;; 5020esac 5021 5022case `pwd` in 5023 *\ * | *\ *) 5024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5025$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5026esac 5027 5028 5029 5030macro_version='2.2.6b' 5031macro_revision='1.3017' 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045ltmain="$ac_aux_dir/ltmain.sh" 5046 5047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5048$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5049if test "${ac_cv_path_SED+set}" = set; then : 5050 $as_echo_n "(cached) " >&6 5051else 5052 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5053 for ac_i in 1 2 3 4 5 6 7; do 5054 ac_script="$ac_script$as_nl$ac_script" 5055 done 5056 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5057 { ac_script=; unset ac_script;} 5058 if test -z "$SED"; then 5059 ac_path_SED_found=false 5060 # Loop through the user's path and test for each of PROGNAME-LIST 5061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5062for as_dir in $PATH 5063do 5064 IFS=$as_save_IFS 5065 test -z "$as_dir" && as_dir=. 5066 for ac_prog in sed gsed; do 5067 for ac_exec_ext in '' $ac_executable_extensions; do 5068 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5069 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 5070# Check for GNU ac_path_SED and select it if it is found. 5071 # Check for GNU $ac_path_SED 5072case `"$ac_path_SED" --version 2>&1` in 5073*GNU*) 5074 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5075*) 5076 ac_count=0 5077 $as_echo_n 0123456789 >"conftest.in" 5078 while : 5079 do 5080 cat "conftest.in" "conftest.in" >"conftest.tmp" 5081 mv "conftest.tmp" "conftest.in" 5082 cp "conftest.in" "conftest.nl" 5083 $as_echo '' >> "conftest.nl" 5084 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5085 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5086 as_fn_arith $ac_count + 1 && ac_count=$as_val 5087 if test $ac_count -gt ${ac_path_SED_max-0}; then 5088 # Best one so far, save it but keep looking for a better one 5089 ac_cv_path_SED="$ac_path_SED" 5090 ac_path_SED_max=$ac_count 5091 fi 5092 # 10*(2^10) chars as input seems more than enough 5093 test $ac_count -gt 10 && break 5094 done 5095 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5096esac 5097 5098 $ac_path_SED_found && break 3 5099 done 5100 done 5101 done 5102IFS=$as_save_IFS 5103 if test -z "$ac_cv_path_SED"; then 5104 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 5105 fi 5106else 5107 ac_cv_path_SED=$SED 5108fi 5109 5110fi 5111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5112$as_echo "$ac_cv_path_SED" >&6; } 5113 SED="$ac_cv_path_SED" 5114 rm -f conftest.sed 5115 5116test -z "$SED" && SED=sed 5117Xsed="$SED -e 1s/^X//" 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5130$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5131if test "${ac_cv_path_GREP+set}" = set; then : 5132 $as_echo_n "(cached) " >&6 5133else 5134 if test -z "$GREP"; then 5135 ac_path_GREP_found=false 5136 # Loop through the user's path and test for each of PROGNAME-LIST 5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5138for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5139do 5140 IFS=$as_save_IFS 5141 test -z "$as_dir" && as_dir=. 5142 for ac_prog in grep ggrep; do 5143 for ac_exec_ext in '' $ac_executable_extensions; do 5144 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5145 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 5146# Check for GNU ac_path_GREP and select it if it is found. 5147 # Check for GNU $ac_path_GREP 5148case `"$ac_path_GREP" --version 2>&1` in 5149*GNU*) 5150 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5151*) 5152 ac_count=0 5153 $as_echo_n 0123456789 >"conftest.in" 5154 while : 5155 do 5156 cat "conftest.in" "conftest.in" >"conftest.tmp" 5157 mv "conftest.tmp" "conftest.in" 5158 cp "conftest.in" "conftest.nl" 5159 $as_echo 'GREP' >> "conftest.nl" 5160 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5161 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5162 as_fn_arith $ac_count + 1 && ac_count=$as_val 5163 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5164 # Best one so far, save it but keep looking for a better one 5165 ac_cv_path_GREP="$ac_path_GREP" 5166 ac_path_GREP_max=$ac_count 5167 fi 5168 # 10*(2^10) chars as input seems more than enough 5169 test $ac_count -gt 10 && break 5170 done 5171 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5172esac 5173 5174 $ac_path_GREP_found && break 3 5175 done 5176 done 5177 done 5178IFS=$as_save_IFS 5179 if test -z "$ac_cv_path_GREP"; then 5180 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5181 fi 5182else 5183 ac_cv_path_GREP=$GREP 5184fi 5185 5186fi 5187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5188$as_echo "$ac_cv_path_GREP" >&6; } 5189 GREP="$ac_cv_path_GREP" 5190 5191 5192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5193$as_echo_n "checking for egrep... " >&6; } 5194if test "${ac_cv_path_EGREP+set}" = set; then : 5195 $as_echo_n "(cached) " >&6 5196else 5197 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5198 then ac_cv_path_EGREP="$GREP -E" 5199 else 5200 if test -z "$EGREP"; then 5201 ac_path_EGREP_found=false 5202 # Loop through the user's path and test for each of PROGNAME-LIST 5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5204for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5205do 5206 IFS=$as_save_IFS 5207 test -z "$as_dir" && as_dir=. 5208 for ac_prog in egrep; do 5209 for ac_exec_ext in '' $ac_executable_extensions; do 5210 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5211 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 5212# Check for GNU ac_path_EGREP and select it if it is found. 5213 # Check for GNU $ac_path_EGREP 5214case `"$ac_path_EGREP" --version 2>&1` in 5215*GNU*) 5216 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5217*) 5218 ac_count=0 5219 $as_echo_n 0123456789 >"conftest.in" 5220 while : 5221 do 5222 cat "conftest.in" "conftest.in" >"conftest.tmp" 5223 mv "conftest.tmp" "conftest.in" 5224 cp "conftest.in" "conftest.nl" 5225 $as_echo 'EGREP' >> "conftest.nl" 5226 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5227 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5228 as_fn_arith $ac_count + 1 && ac_count=$as_val 5229 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5230 # Best one so far, save it but keep looking for a better one 5231 ac_cv_path_EGREP="$ac_path_EGREP" 5232 ac_path_EGREP_max=$ac_count 5233 fi 5234 # 10*(2^10) chars as input seems more than enough 5235 test $ac_count -gt 10 && break 5236 done 5237 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5238esac 5239 5240 $ac_path_EGREP_found && break 3 5241 done 5242 done 5243 done 5244IFS=$as_save_IFS 5245 if test -z "$ac_cv_path_EGREP"; then 5246 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5247 fi 5248else 5249 ac_cv_path_EGREP=$EGREP 5250fi 5251 5252 fi 5253fi 5254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5255$as_echo "$ac_cv_path_EGREP" >&6; } 5256 EGREP="$ac_cv_path_EGREP" 5257 5258 5259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5260$as_echo_n "checking for fgrep... " >&6; } 5261if test "${ac_cv_path_FGREP+set}" = set; then : 5262 $as_echo_n "(cached) " >&6 5263else 5264 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5265 then ac_cv_path_FGREP="$GREP -F" 5266 else 5267 if test -z "$FGREP"; then 5268 ac_path_FGREP_found=false 5269 # Loop through the user's path and test for each of PROGNAME-LIST 5270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5271for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5272do 5273 IFS=$as_save_IFS 5274 test -z "$as_dir" && as_dir=. 5275 for ac_prog in fgrep; do 5276 for ac_exec_ext in '' $ac_executable_extensions; do 5277 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5278 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 5279# Check for GNU ac_path_FGREP and select it if it is found. 5280 # Check for GNU $ac_path_FGREP 5281case `"$ac_path_FGREP" --version 2>&1` in 5282*GNU*) 5283 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5284*) 5285 ac_count=0 5286 $as_echo_n 0123456789 >"conftest.in" 5287 while : 5288 do 5289 cat "conftest.in" "conftest.in" >"conftest.tmp" 5290 mv "conftest.tmp" "conftest.in" 5291 cp "conftest.in" "conftest.nl" 5292 $as_echo 'FGREP' >> "conftest.nl" 5293 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5294 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5295 as_fn_arith $ac_count + 1 && ac_count=$as_val 5296 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5297 # Best one so far, save it but keep looking for a better one 5298 ac_cv_path_FGREP="$ac_path_FGREP" 5299 ac_path_FGREP_max=$ac_count 5300 fi 5301 # 10*(2^10) chars as input seems more than enough 5302 test $ac_count -gt 10 && break 5303 done 5304 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5305esac 5306 5307 $ac_path_FGREP_found && break 3 5308 done 5309 done 5310 done 5311IFS=$as_save_IFS 5312 if test -z "$ac_cv_path_FGREP"; then 5313 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5314 fi 5315else 5316 ac_cv_path_FGREP=$FGREP 5317fi 5318 5319 fi 5320fi 5321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5322$as_echo "$ac_cv_path_FGREP" >&6; } 5323 FGREP="$ac_cv_path_FGREP" 5324 5325 5326test -z "$GREP" && GREP=grep 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346# Check whether --with-gnu-ld was given. 5347if test "${with_gnu_ld+set}" = set; then : 5348 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5349else 5350 with_gnu_ld=no 5351fi 5352 5353ac_prog=ld 5354if test "$GCC" = yes; then 5355 # Check if gcc -print-prog-name=ld gives a path. 5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5357$as_echo_n "checking for ld used by $CC... " >&6; } 5358 case $host in 5359 *-*-mingw*) 5360 # gcc leaves a trailing carriage return which upsets mingw 5361 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5362 *) 5363 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5364 esac 5365 case $ac_prog in 5366 # Accept absolute paths. 5367 [\\/]* | ?:[\\/]*) 5368 re_direlt='/[^/][^/]*/\.\./' 5369 # Canonicalize the pathname of ld 5370 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5371 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5372 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5373 done 5374 test -z "$LD" && LD="$ac_prog" 5375 ;; 5376 "") 5377 # If it fails, then pretend we aren't using GCC. 5378 ac_prog=ld 5379 ;; 5380 *) 5381 # If it is relative, then search for the first ld in PATH. 5382 with_gnu_ld=unknown 5383 ;; 5384 esac 5385elif test "$with_gnu_ld" = yes; then 5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5387$as_echo_n "checking for GNU ld... " >&6; } 5388else 5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5390$as_echo_n "checking for non-GNU ld... " >&6; } 5391fi 5392if test "${lt_cv_path_LD+set}" = set; then : 5393 $as_echo_n "(cached) " >&6 5394else 5395 if test -z "$LD"; then 5396 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5397 for ac_dir in $PATH; do 5398 IFS="$lt_save_ifs" 5399 test -z "$ac_dir" && ac_dir=. 5400 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5401 lt_cv_path_LD="$ac_dir/$ac_prog" 5402 # Check to see if the program is GNU ld. I'd rather use --version, 5403 # but apparently some variants of GNU ld only accept -v. 5404 # Break only if it was the GNU/non-GNU ld that we prefer. 5405 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5406 *GNU* | *'with BFD'*) 5407 test "$with_gnu_ld" != no && break 5408 ;; 5409 *) 5410 test "$with_gnu_ld" != yes && break 5411 ;; 5412 esac 5413 fi 5414 done 5415 IFS="$lt_save_ifs" 5416else 5417 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5418fi 5419fi 5420 5421LD="$lt_cv_path_LD" 5422if test -n "$LD"; then 5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5424$as_echo "$LD" >&6; } 5425else 5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5427$as_echo "no" >&6; } 5428fi 5429test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 5430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5431$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5432if test "${lt_cv_prog_gnu_ld+set}" = set; then : 5433 $as_echo_n "(cached) " >&6 5434else 5435 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5436case `$LD -v 2>&1 </dev/null` in 5437*GNU* | *'with BFD'*) 5438 lt_cv_prog_gnu_ld=yes 5439 ;; 5440*) 5441 lt_cv_prog_gnu_ld=no 5442 ;; 5443esac 5444fi 5445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5446$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5447with_gnu_ld=$lt_cv_prog_gnu_ld 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5458$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5459if test "${lt_cv_path_NM+set}" = set; then : 5460 $as_echo_n "(cached) " >&6 5461else 5462 if test -n "$NM"; then 5463 # Let the user override the test. 5464 lt_cv_path_NM="$NM" 5465else 5466 lt_nm_to_check="${ac_tool_prefix}nm" 5467 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5468 lt_nm_to_check="$lt_nm_to_check nm" 5469 fi 5470 for lt_tmp_nm in $lt_nm_to_check; do 5471 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5472 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5473 IFS="$lt_save_ifs" 5474 test -z "$ac_dir" && ac_dir=. 5475 tmp_nm="$ac_dir/$lt_tmp_nm" 5476 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5477 # Check to see if the nm accepts a BSD-compat flag. 5478 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5479 # nm: unknown option "B" ignored 5480 # Tru64's nm complains that /dev/null is an invalid object file 5481 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5482 */dev/null* | *'Invalid file or object type'*) 5483 lt_cv_path_NM="$tmp_nm -B" 5484 break 5485 ;; 5486 *) 5487 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5488 */dev/null*) 5489 lt_cv_path_NM="$tmp_nm -p" 5490 break 5491 ;; 5492 *) 5493 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5494 continue # so that we can try to find one that supports BSD flags 5495 ;; 5496 esac 5497 ;; 5498 esac 5499 fi 5500 done 5501 IFS="$lt_save_ifs" 5502 done 5503 : ${lt_cv_path_NM=no} 5504fi 5505fi 5506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5507$as_echo "$lt_cv_path_NM" >&6; } 5508if test "$lt_cv_path_NM" != "no"; then 5509 NM="$lt_cv_path_NM" 5510else 5511 # Didn't find any BSD compatible name lister, look for dumpbin. 5512 if test -n "$ac_tool_prefix"; then 5513 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5514 do 5515 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5516set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5518$as_echo_n "checking for $ac_word... " >&6; } 5519if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 5520 $as_echo_n "(cached) " >&6 5521else 5522 if test -n "$DUMPBIN"; then 5523 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5524else 5525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5526for as_dir in $PATH 5527do 5528 IFS=$as_save_IFS 5529 test -z "$as_dir" && as_dir=. 5530 for ac_exec_ext in '' $ac_executable_extensions; do 5531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5532 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5534 break 2 5535 fi 5536done 5537 done 5538IFS=$as_save_IFS 5539 5540fi 5541fi 5542DUMPBIN=$ac_cv_prog_DUMPBIN 5543if test -n "$DUMPBIN"; then 5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5545$as_echo "$DUMPBIN" >&6; } 5546else 5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5548$as_echo "no" >&6; } 5549fi 5550 5551 5552 test -n "$DUMPBIN" && break 5553 done 5554fi 5555if test -z "$DUMPBIN"; then 5556 ac_ct_DUMPBIN=$DUMPBIN 5557 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5558do 5559 # Extract the first word of "$ac_prog", so it can be a program name with args. 5560set dummy $ac_prog; ac_word=$2 5561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5562$as_echo_n "checking for $ac_word... " >&6; } 5563if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 5564 $as_echo_n "(cached) " >&6 5565else 5566 if test -n "$ac_ct_DUMPBIN"; then 5567 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5568else 5569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5570for as_dir in $PATH 5571do 5572 IFS=$as_save_IFS 5573 test -z "$as_dir" && as_dir=. 5574 for ac_exec_ext in '' $ac_executable_extensions; do 5575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5576 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5578 break 2 5579 fi 5580done 5581 done 5582IFS=$as_save_IFS 5583 5584fi 5585fi 5586ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5587if test -n "$ac_ct_DUMPBIN"; then 5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5589$as_echo "$ac_ct_DUMPBIN" >&6; } 5590else 5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5592$as_echo "no" >&6; } 5593fi 5594 5595 5596 test -n "$ac_ct_DUMPBIN" && break 5597done 5598 5599 if test "x$ac_ct_DUMPBIN" = x; then 5600 DUMPBIN=":" 5601 else 5602 case $cross_compiling:$ac_tool_warned in 5603yes:) 5604{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5605$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5606ac_tool_warned=yes ;; 5607esac 5608 DUMPBIN=$ac_ct_DUMPBIN 5609 fi 5610fi 5611 5612 5613 if test "$DUMPBIN" != ":"; then 5614 NM="$DUMPBIN" 5615 fi 5616fi 5617test -z "$NM" && NM=nm 5618 5619 5620 5621 5622 5623 5624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5625$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5626if test "${lt_cv_nm_interface+set}" = set; then : 5627 $as_echo_n "(cached) " >&6 5628else 5629 lt_cv_nm_interface="BSD nm" 5630 echo "int some_variable = 0;" > conftest.$ac_ext 5631 (eval echo "\"\$as_me:5631: $ac_compile\"" >&5) 5632 (eval "$ac_compile" 2>conftest.err) 5633 cat conftest.err >&5 5634 (eval echo "\"\$as_me:5634: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5635 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5636 cat conftest.err >&5 5637 (eval echo "\"\$as_me:5637: output\"" >&5) 5638 cat conftest.out >&5 5639 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5640 lt_cv_nm_interface="MS dumpbin" 5641 fi 5642 rm -f conftest* 5643fi 5644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5645$as_echo "$lt_cv_nm_interface" >&6; } 5646 5647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5648$as_echo_n "checking whether ln -s works... " >&6; } 5649LN_S=$as_ln_s 5650if test "$LN_S" = "ln -s"; then 5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5652$as_echo "yes" >&6; } 5653else 5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5655$as_echo "no, using $LN_S" >&6; } 5656fi 5657 5658# find the maximum length of command line arguments 5659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5660$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5661if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 5662 $as_echo_n "(cached) " >&6 5663else 5664 i=0 5665 teststring="ABCD" 5666 5667 case $build_os in 5668 msdosdjgpp*) 5669 # On DJGPP, this test can blow up pretty badly due to problems in libc 5670 # (any single argument exceeding 2000 bytes causes a buffer overrun 5671 # during glob expansion). Even if it were fixed, the result of this 5672 # check would be larger than it should be. 5673 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5674 ;; 5675 5676 gnu*) 5677 # Under GNU Hurd, this test is not required because there is 5678 # no limit to the length of command line arguments. 5679 # Libtool will interpret -1 as no limit whatsoever 5680 lt_cv_sys_max_cmd_len=-1; 5681 ;; 5682 5683 cygwin* | mingw* | cegcc*) 5684 # On Win9x/ME, this test blows up -- it succeeds, but takes 5685 # about 5 minutes as the teststring grows exponentially. 5686 # Worse, since 9x/ME are not pre-emptively multitasking, 5687 # you end up with a "frozen" computer, even though with patience 5688 # the test eventually succeeds (with a max line length of 256k). 5689 # Instead, let's just punt: use the minimum linelength reported by 5690 # all of the supported platforms: 8192 (on NT/2K/XP). 5691 lt_cv_sys_max_cmd_len=8192; 5692 ;; 5693 5694 amigaos*) 5695 # On AmigaOS with pdksh, this test takes hours, literally. 5696 # So we just punt and use a minimum line length of 8192. 5697 lt_cv_sys_max_cmd_len=8192; 5698 ;; 5699 5700 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5701 # This has been around since 386BSD, at least. Likely further. 5702 if test -x /sbin/sysctl; then 5703 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5704 elif test -x /usr/sbin/sysctl; then 5705 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5706 else 5707 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5708 fi 5709 # And add a safety zone 5710 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5711 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5712 ;; 5713 5714 interix*) 5715 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5716 lt_cv_sys_max_cmd_len=196608 5717 ;; 5718 5719 osf*) 5720 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5721 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5722 # nice to cause kernel panics so lets avoid the loop below. 5723 # First set a reasonable default. 5724 lt_cv_sys_max_cmd_len=16384 5725 # 5726 if test -x /sbin/sysconfig; then 5727 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5728 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5729 esac 5730 fi 5731 ;; 5732 sco3.2v5*) 5733 lt_cv_sys_max_cmd_len=102400 5734 ;; 5735 sysv5* | sco5v6* | sysv4.2uw2*) 5736 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5737 if test -n "$kargmax"; then 5738 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5739 else 5740 lt_cv_sys_max_cmd_len=32768 5741 fi 5742 ;; 5743 *) 5744 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5745 if test -n "$lt_cv_sys_max_cmd_len"; then 5746 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5747 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5748 else 5749 # Make teststring a little bigger before we do anything with it. 5750 # a 1K string should be a reasonable start. 5751 for i in 1 2 3 4 5 6 7 8 ; do 5752 teststring=$teststring$teststring 5753 done 5754 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5755 # If test is not a shell built-in, we'll probably end up computing a 5756 # maximum length that is only half of the actual maximum length, but 5757 # we can't tell. 5758 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 5759 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 5760 test $i != 17 # 1/2 MB should be enough 5761 do 5762 i=`expr $i + 1` 5763 teststring=$teststring$teststring 5764 done 5765 # Only check the string length outside the loop. 5766 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5767 teststring= 5768 # Add a significant safety factor because C++ compilers can tack on 5769 # massive amounts of additional arguments before passing them to the 5770 # linker. It appears as though 1/2 is a usable value. 5771 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5772 fi 5773 ;; 5774 esac 5775 5776fi 5777 5778if test -n $lt_cv_sys_max_cmd_len ; then 5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5780$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5781else 5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5783$as_echo "none" >&6; } 5784fi 5785max_cmd_len=$lt_cv_sys_max_cmd_len 5786 5787 5788 5789 5790 5791 5792: ${CP="cp -f"} 5793: ${MV="mv -f"} 5794: ${RM="rm -f"} 5795 5796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5797$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5798# Try some XSI features 5799xsi_shell=no 5800( _lt_dummy="a/b/c" 5801 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5802 = c,a/b,, \ 5803 && eval 'test $(( 1 + 1 )) -eq 2 \ 5804 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5805 && xsi_shell=yes 5806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5807$as_echo "$xsi_shell" >&6; } 5808 5809 5810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5811$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5812lt_shell_append=no 5813( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5814 >/dev/null 2>&1 \ 5815 && lt_shell_append=yes 5816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5817$as_echo "$lt_shell_append" >&6; } 5818 5819 5820if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5821 lt_unset=unset 5822else 5823 lt_unset=false 5824fi 5825 5826 5827 5828 5829 5830# test EBCDIC or ASCII 5831case `echo X|tr X '\101'` in 5832 A) # ASCII based system 5833 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5834 lt_SP2NL='tr \040 \012' 5835 lt_NL2SP='tr \015\012 \040\040' 5836 ;; 5837 *) # EBCDIC based system 5838 lt_SP2NL='tr \100 \n' 5839 lt_NL2SP='tr \r\n \100\100' 5840 ;; 5841esac 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5852$as_echo_n "checking for $LD option to reload object files... " >&6; } 5853if test "${lt_cv_ld_reload_flag+set}" = set; then : 5854 $as_echo_n "(cached) " >&6 5855else 5856 lt_cv_ld_reload_flag='-r' 5857fi 5858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5859$as_echo "$lt_cv_ld_reload_flag" >&6; } 5860reload_flag=$lt_cv_ld_reload_flag 5861case $reload_flag in 5862"" | " "*) ;; 5863*) reload_flag=" $reload_flag" ;; 5864esac 5865reload_cmds='$LD$reload_flag -o $output$reload_objs' 5866case $host_os in 5867 darwin*) 5868 if test "$GCC" = yes; then 5869 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5870 else 5871 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5872 fi 5873 ;; 5874esac 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884if test -n "$ac_tool_prefix"; then 5885 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5886set dummy ${ac_tool_prefix}objdump; ac_word=$2 5887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5888$as_echo_n "checking for $ac_word... " >&6; } 5889if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 5890 $as_echo_n "(cached) " >&6 5891else 5892 if test -n "$OBJDUMP"; then 5893 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5894else 5895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5896for as_dir in $PATH 5897do 5898 IFS=$as_save_IFS 5899 test -z "$as_dir" && as_dir=. 5900 for ac_exec_ext in '' $ac_executable_extensions; do 5901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5902 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5904 break 2 5905 fi 5906done 5907 done 5908IFS=$as_save_IFS 5909 5910fi 5911fi 5912OBJDUMP=$ac_cv_prog_OBJDUMP 5913if test -n "$OBJDUMP"; then 5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5915$as_echo "$OBJDUMP" >&6; } 5916else 5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5918$as_echo "no" >&6; } 5919fi 5920 5921 5922fi 5923if test -z "$ac_cv_prog_OBJDUMP"; then 5924 ac_ct_OBJDUMP=$OBJDUMP 5925 # Extract the first word of "objdump", so it can be a program name with args. 5926set dummy objdump; ac_word=$2 5927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5928$as_echo_n "checking for $ac_word... " >&6; } 5929if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 5930 $as_echo_n "(cached) " >&6 5931else 5932 if test -n "$ac_ct_OBJDUMP"; then 5933 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5934else 5935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5936for as_dir in $PATH 5937do 5938 IFS=$as_save_IFS 5939 test -z "$as_dir" && as_dir=. 5940 for ac_exec_ext in '' $ac_executable_extensions; do 5941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5942 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5944 break 2 5945 fi 5946done 5947 done 5948IFS=$as_save_IFS 5949 5950fi 5951fi 5952ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5953if test -n "$ac_ct_OBJDUMP"; then 5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5955$as_echo "$ac_ct_OBJDUMP" >&6; } 5956else 5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5958$as_echo "no" >&6; } 5959fi 5960 5961 if test "x$ac_ct_OBJDUMP" = x; then 5962 OBJDUMP="false" 5963 else 5964 case $cross_compiling:$ac_tool_warned in 5965yes:) 5966{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5967$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5968ac_tool_warned=yes ;; 5969esac 5970 OBJDUMP=$ac_ct_OBJDUMP 5971 fi 5972else 5973 OBJDUMP="$ac_cv_prog_OBJDUMP" 5974fi 5975 5976test -z "$OBJDUMP" && OBJDUMP=objdump 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5987$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5988if test "${lt_cv_deplibs_check_method+set}" = set; then : 5989 $as_echo_n "(cached) " >&6 5990else 5991 lt_cv_file_magic_cmd='$MAGIC_CMD' 5992lt_cv_file_magic_test_file= 5993lt_cv_deplibs_check_method='unknown' 5994# Need to set the preceding variable on all platforms that support 5995# interlibrary dependencies. 5996# 'none' -- dependencies not supported. 5997# `unknown' -- same as none, but documents that we really don't know. 5998# 'pass_all' -- all dependencies passed with no checks. 5999# 'test_compile' -- check by making test program. 6000# 'file_magic [[regex]]' -- check by looking for files in library path 6001# which responds to the $file_magic_cmd with a given extended regex. 6002# If you have `file' or equivalent on your system and you're not sure 6003# whether `pass_all' will *always* work, you probably want this one. 6004 6005case $host_os in 6006aix[4-9]*) 6007 lt_cv_deplibs_check_method=pass_all 6008 ;; 6009 6010beos*) 6011 lt_cv_deplibs_check_method=pass_all 6012 ;; 6013 6014bsdi[45]*) 6015 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6016 lt_cv_file_magic_cmd='/usr/bin/file -L' 6017 lt_cv_file_magic_test_file=/shlib/libc.so 6018 ;; 6019 6020cygwin*) 6021 # func_win32_libid is a shell function defined in ltmain.sh 6022 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6023 lt_cv_file_magic_cmd='func_win32_libid' 6024 ;; 6025 6026mingw* | pw32*) 6027 # Base MSYS/MinGW do not provide the 'file' command needed by 6028 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6029 # unless we find 'file', for example because we are cross-compiling. 6030 if ( file / ) >/dev/null 2>&1; then 6031 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6032 lt_cv_file_magic_cmd='func_win32_libid' 6033 else 6034 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6035 lt_cv_file_magic_cmd='$OBJDUMP -f' 6036 fi 6037 ;; 6038 6039cegcc) 6040 # use the weaker test based on 'objdump'. See mingw*. 6041 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6042 lt_cv_file_magic_cmd='$OBJDUMP -f' 6043 ;; 6044 6045darwin* | rhapsody*) 6046 lt_cv_deplibs_check_method=pass_all 6047 ;; 6048 6049freebsd* | dragonfly*) 6050 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6051 case $host_cpu in 6052 i*86 ) 6053 # Not sure whether the presence of OpenBSD here was a mistake. 6054 # Let's accept both of them until this is cleared up. 6055 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6056 lt_cv_file_magic_cmd=/usr/bin/file 6057 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6058 ;; 6059 esac 6060 else 6061 lt_cv_deplibs_check_method=pass_all 6062 fi 6063 ;; 6064 6065gnu*) 6066 lt_cv_deplibs_check_method=pass_all 6067 ;; 6068 6069hpux10.20* | hpux11*) 6070 lt_cv_file_magic_cmd=/usr/bin/file 6071 case $host_cpu in 6072 ia64*) 6073 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6074 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6075 ;; 6076 hppa*64*) 6077 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' 6078 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6079 ;; 6080 *) 6081 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 6082 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6083 ;; 6084 esac 6085 ;; 6086 6087interix[3-9]*) 6088 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6089 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6090 ;; 6091 6092irix5* | irix6* | nonstopux*) 6093 case $LD in 6094 *-32|*"-32 ") libmagic=32-bit;; 6095 *-n32|*"-n32 ") libmagic=N32;; 6096 *-64|*"-64 ") libmagic=64-bit;; 6097 *) libmagic=never-match;; 6098 esac 6099 lt_cv_deplibs_check_method=pass_all 6100 ;; 6101 6102# This must be Linux ELF. 6103linux* | k*bsd*-gnu | kopensolaris*-gnu) 6104 lt_cv_deplibs_check_method=pass_all 6105 ;; 6106 6107netbsd* | netbsdelf*-gnu) 6108 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6109 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6110 else 6111 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6112 fi 6113 ;; 6114 6115newos6*) 6116 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6117 lt_cv_file_magic_cmd=/usr/bin/file 6118 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6119 ;; 6120 6121*nto* | *qnx*) 6122 lt_cv_deplibs_check_method=pass_all 6123 ;; 6124 6125openbsd*) 6126 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6127 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6128 else 6129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6130 fi 6131 ;; 6132 6133osf3* | osf4* | osf5*) 6134 lt_cv_deplibs_check_method=pass_all 6135 ;; 6136 6137rdos*) 6138 lt_cv_deplibs_check_method=pass_all 6139 ;; 6140 6141solaris*) 6142 lt_cv_deplibs_check_method=pass_all 6143 ;; 6144 6145sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6146 lt_cv_deplibs_check_method=pass_all 6147 ;; 6148 6149sysv4 | sysv4.3*) 6150 case $host_vendor in 6151 motorola) 6152 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]' 6153 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6154 ;; 6155 ncr) 6156 lt_cv_deplibs_check_method=pass_all 6157 ;; 6158 sequent) 6159 lt_cv_file_magic_cmd='/bin/file' 6160 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6161 ;; 6162 sni) 6163 lt_cv_file_magic_cmd='/bin/file' 6164 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6165 lt_cv_file_magic_test_file=/lib/libc.so 6166 ;; 6167 siemens) 6168 lt_cv_deplibs_check_method=pass_all 6169 ;; 6170 pc) 6171 lt_cv_deplibs_check_method=pass_all 6172 ;; 6173 esac 6174 ;; 6175 6176tpf*) 6177 lt_cv_deplibs_check_method=pass_all 6178 ;; 6179esac 6180 6181fi 6182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6183$as_echo "$lt_cv_deplibs_check_method" >&6; } 6184file_magic_cmd=$lt_cv_file_magic_cmd 6185deplibs_check_method=$lt_cv_deplibs_check_method 6186test -z "$deplibs_check_method" && deplibs_check_method=unknown 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199if test -n "$ac_tool_prefix"; then 6200 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6201set dummy ${ac_tool_prefix}ar; ac_word=$2 6202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6203$as_echo_n "checking for $ac_word... " >&6; } 6204if test "${ac_cv_prog_AR+set}" = set; then : 6205 $as_echo_n "(cached) " >&6 6206else 6207 if test -n "$AR"; then 6208 ac_cv_prog_AR="$AR" # Let the user override the test. 6209else 6210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6211for as_dir in $PATH 6212do 6213 IFS=$as_save_IFS 6214 test -z "$as_dir" && as_dir=. 6215 for ac_exec_ext in '' $ac_executable_extensions; do 6216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6217 ac_cv_prog_AR="${ac_tool_prefix}ar" 6218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6219 break 2 6220 fi 6221done 6222 done 6223IFS=$as_save_IFS 6224 6225fi 6226fi 6227AR=$ac_cv_prog_AR 6228if test -n "$AR"; then 6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6230$as_echo "$AR" >&6; } 6231else 6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6233$as_echo "no" >&6; } 6234fi 6235 6236 6237fi 6238if test -z "$ac_cv_prog_AR"; then 6239 ac_ct_AR=$AR 6240 # Extract the first word of "ar", so it can be a program name with args. 6241set dummy ar; ac_word=$2 6242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6243$as_echo_n "checking for $ac_word... " >&6; } 6244if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 6245 $as_echo_n "(cached) " >&6 6246else 6247 if test -n "$ac_ct_AR"; then 6248 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6249else 6250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6251for as_dir in $PATH 6252do 6253 IFS=$as_save_IFS 6254 test -z "$as_dir" && as_dir=. 6255 for ac_exec_ext in '' $ac_executable_extensions; do 6256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6257 ac_cv_prog_ac_ct_AR="ar" 6258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6259 break 2 6260 fi 6261done 6262 done 6263IFS=$as_save_IFS 6264 6265fi 6266fi 6267ac_ct_AR=$ac_cv_prog_ac_ct_AR 6268if test -n "$ac_ct_AR"; then 6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6270$as_echo "$ac_ct_AR" >&6; } 6271else 6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6273$as_echo "no" >&6; } 6274fi 6275 6276 if test "x$ac_ct_AR" = x; then 6277 AR="false" 6278 else 6279 case $cross_compiling:$ac_tool_warned in 6280yes:) 6281{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6282$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6283ac_tool_warned=yes ;; 6284esac 6285 AR=$ac_ct_AR 6286 fi 6287else 6288 AR="$ac_cv_prog_AR" 6289fi 6290 6291test -z "$AR" && AR=ar 6292test -z "$AR_FLAGS" && AR_FLAGS=cru 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304if test -n "$ac_tool_prefix"; then 6305 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6306set dummy ${ac_tool_prefix}strip; ac_word=$2 6307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6308$as_echo_n "checking for $ac_word... " >&6; } 6309if test "${ac_cv_prog_STRIP+set}" = set; then : 6310 $as_echo_n "(cached) " >&6 6311else 6312 if test -n "$STRIP"; then 6313 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6314else 6315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6316for as_dir in $PATH 6317do 6318 IFS=$as_save_IFS 6319 test -z "$as_dir" && as_dir=. 6320 for ac_exec_ext in '' $ac_executable_extensions; do 6321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6322 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6324 break 2 6325 fi 6326done 6327 done 6328IFS=$as_save_IFS 6329 6330fi 6331fi 6332STRIP=$ac_cv_prog_STRIP 6333if test -n "$STRIP"; then 6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6335$as_echo "$STRIP" >&6; } 6336else 6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6338$as_echo "no" >&6; } 6339fi 6340 6341 6342fi 6343if test -z "$ac_cv_prog_STRIP"; then 6344 ac_ct_STRIP=$STRIP 6345 # Extract the first word of "strip", so it can be a program name with args. 6346set dummy strip; ac_word=$2 6347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6348$as_echo_n "checking for $ac_word... " >&6; } 6349if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 6350 $as_echo_n "(cached) " >&6 6351else 6352 if test -n "$ac_ct_STRIP"; then 6353 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6354else 6355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6356for as_dir in $PATH 6357do 6358 IFS=$as_save_IFS 6359 test -z "$as_dir" && as_dir=. 6360 for ac_exec_ext in '' $ac_executable_extensions; do 6361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6362 ac_cv_prog_ac_ct_STRIP="strip" 6363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6364 break 2 6365 fi 6366done 6367 done 6368IFS=$as_save_IFS 6369 6370fi 6371fi 6372ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6373if test -n "$ac_ct_STRIP"; then 6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6375$as_echo "$ac_ct_STRIP" >&6; } 6376else 6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6378$as_echo "no" >&6; } 6379fi 6380 6381 if test "x$ac_ct_STRIP" = x; then 6382 STRIP=":" 6383 else 6384 case $cross_compiling:$ac_tool_warned in 6385yes:) 6386{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6387$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6388ac_tool_warned=yes ;; 6389esac 6390 STRIP=$ac_ct_STRIP 6391 fi 6392else 6393 STRIP="$ac_cv_prog_STRIP" 6394fi 6395 6396test -z "$STRIP" && STRIP=: 6397 6398 6399 6400 6401 6402 6403if test -n "$ac_tool_prefix"; then 6404 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6405set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6407$as_echo_n "checking for $ac_word... " >&6; } 6408if test "${ac_cv_prog_RANLIB+set}" = set; then : 6409 $as_echo_n "(cached) " >&6 6410else 6411 if test -n "$RANLIB"; then 6412 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6413else 6414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6415for as_dir in $PATH 6416do 6417 IFS=$as_save_IFS 6418 test -z "$as_dir" && as_dir=. 6419 for ac_exec_ext in '' $ac_executable_extensions; do 6420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6421 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6423 break 2 6424 fi 6425done 6426 done 6427IFS=$as_save_IFS 6428 6429fi 6430fi 6431RANLIB=$ac_cv_prog_RANLIB 6432if test -n "$RANLIB"; then 6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6434$as_echo "$RANLIB" >&6; } 6435else 6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6437$as_echo "no" >&6; } 6438fi 6439 6440 6441fi 6442if test -z "$ac_cv_prog_RANLIB"; then 6443 ac_ct_RANLIB=$RANLIB 6444 # Extract the first word of "ranlib", so it can be a program name with args. 6445set dummy ranlib; ac_word=$2 6446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6447$as_echo_n "checking for $ac_word... " >&6; } 6448if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 6449 $as_echo_n "(cached) " >&6 6450else 6451 if test -n "$ac_ct_RANLIB"; then 6452 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6453else 6454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6455for as_dir in $PATH 6456do 6457 IFS=$as_save_IFS 6458 test -z "$as_dir" && as_dir=. 6459 for ac_exec_ext in '' $ac_executable_extensions; do 6460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6461 ac_cv_prog_ac_ct_RANLIB="ranlib" 6462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6463 break 2 6464 fi 6465done 6466 done 6467IFS=$as_save_IFS 6468 6469fi 6470fi 6471ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6472if test -n "$ac_ct_RANLIB"; then 6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6474$as_echo "$ac_ct_RANLIB" >&6; } 6475else 6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6477$as_echo "no" >&6; } 6478fi 6479 6480 if test "x$ac_ct_RANLIB" = x; then 6481 RANLIB=":" 6482 else 6483 case $cross_compiling:$ac_tool_warned in 6484yes:) 6485{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6486$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6487ac_tool_warned=yes ;; 6488esac 6489 RANLIB=$ac_ct_RANLIB 6490 fi 6491else 6492 RANLIB="$ac_cv_prog_RANLIB" 6493fi 6494 6495test -z "$RANLIB" && RANLIB=: 6496 6497 6498 6499 6500 6501 6502# Determine commands to create old-style static archives. 6503old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6504old_postinstall_cmds='chmod 644 $oldlib' 6505old_postuninstall_cmds= 6506 6507if test -n "$RANLIB"; then 6508 case $host_os in 6509 openbsd*) 6510 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6511 ;; 6512 *) 6513 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6514 ;; 6515 esac 6516 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6517fi 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552# If no C compiler was specified, use CC. 6553LTCC=${LTCC-"$CC"} 6554 6555# If no C compiler flags were specified, use CFLAGS. 6556LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6557 6558# Allow CC to be a program name with arguments. 6559compiler=$CC 6560 6561 6562# Check for command to grab the raw symbol name followed by C symbol from nm. 6563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6564$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6565if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 6566 $as_echo_n "(cached) " >&6 6567else 6568 6569# These are sane defaults that work on at least a few old systems. 6570# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6571 6572# Character class describing NM global symbol codes. 6573symcode='[BCDEGRST]' 6574 6575# Regexp to match symbols that can be accessed directly from C. 6576sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6577 6578# Define system-specific variables. 6579case $host_os in 6580aix*) 6581 symcode='[BCDT]' 6582 ;; 6583cygwin* | mingw* | pw32* | cegcc*) 6584 symcode='[ABCDGISTW]' 6585 ;; 6586hpux*) 6587 if test "$host_cpu" = ia64; then 6588 symcode='[ABCDEGRST]' 6589 fi 6590 ;; 6591irix* | nonstopux*) 6592 symcode='[BCDEGRST]' 6593 ;; 6594osf*) 6595 symcode='[BCDEGQRST]' 6596 ;; 6597solaris*) 6598 symcode='[BDRT]' 6599 ;; 6600sco3.2v5*) 6601 symcode='[DT]' 6602 ;; 6603sysv4.2uw2*) 6604 symcode='[DT]' 6605 ;; 6606sysv5* | sco5v6* | unixware* | OpenUNIX*) 6607 symcode='[ABDT]' 6608 ;; 6609sysv4) 6610 symcode='[DFNSTU]' 6611 ;; 6612esac 6613 6614# If we're using GNU nm, then use its standard symbol codes. 6615case `$NM -V 2>&1` in 6616*GNU* | *'with BFD'*) 6617 symcode='[ABCDGIRSTW]' ;; 6618esac 6619 6620# Transform an extracted symbol line into a proper C declaration. 6621# Some systems (esp. on ia64) link data and code symbols differently, 6622# so use this general approach. 6623lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6624 6625# Transform an extracted symbol line into symbol name and symbol address 6626lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6627lt_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'" 6628 6629# Handle CRLF in mingw tool chain 6630opt_cr= 6631case $build_os in 6632mingw*) 6633 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6634 ;; 6635esac 6636 6637# Try without a prefix underscore, then with it. 6638for ac_symprfx in "" "_"; do 6639 6640 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6641 symxfrm="\\1 $ac_symprfx\\2 \\2" 6642 6643 # Write the raw and C identifiers. 6644 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6645 # Fake it for dumpbin and say T for any non-static function 6646 # and D for any global variable. 6647 # Also find C++ and __fastcall symbols from MSVC++, 6648 # which start with @ or ?. 6649 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6650" {last_section=section; section=\$ 3};"\ 6651" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6652" \$ 0!~/External *\|/{next};"\ 6653" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6654" {if(hide[section]) next};"\ 6655" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6656" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6657" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6658" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6659" ' prfx=^$ac_symprfx" 6660 else 6661 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6662 fi 6663 6664 # Check to see that the pipe works correctly. 6665 pipe_works=no 6666 6667 rm -f conftest* 6668 cat > conftest.$ac_ext <<_LT_EOF 6669#ifdef __cplusplus 6670extern "C" { 6671#endif 6672char nm_test_var; 6673void nm_test_func(void); 6674void nm_test_func(void){} 6675#ifdef __cplusplus 6676} 6677#endif 6678int main(){nm_test_var='a';nm_test_func();return(0);} 6679_LT_EOF 6680 6681 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6682 (eval $ac_compile) 2>&5 6683 ac_status=$? 6684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6685 test $ac_status = 0; }; then 6686 # Now try to grab the symbols. 6687 nlist=conftest.nm 6688 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 6689 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6690 ac_status=$? 6691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6692 test $ac_status = 0; } && test -s "$nlist"; then 6693 # Try sorting and uniquifying the output. 6694 if sort "$nlist" | uniq > "$nlist"T; then 6695 mv -f "$nlist"T "$nlist" 6696 else 6697 rm -f "$nlist"T 6698 fi 6699 6700 # Make sure that we snagged all the symbols we need. 6701 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6702 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6703 cat <<_LT_EOF > conftest.$ac_ext 6704#ifdef __cplusplus 6705extern "C" { 6706#endif 6707 6708_LT_EOF 6709 # Now generate the symbol file. 6710 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6711 6712 cat <<_LT_EOF >> conftest.$ac_ext 6713 6714/* The mapping between symbol names and symbols. */ 6715const struct { 6716 const char *name; 6717 void *address; 6718} 6719lt__PROGRAM__LTX_preloaded_symbols[] = 6720{ 6721 { "@PROGRAM@", (void *) 0 }, 6722_LT_EOF 6723 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6724 cat <<\_LT_EOF >> conftest.$ac_ext 6725 {0, (void *) 0} 6726}; 6727 6728/* This works around a problem in FreeBSD linker */ 6729#ifdef FREEBSD_WORKAROUND 6730static const void *lt_preloaded_setup() { 6731 return lt__PROGRAM__LTX_preloaded_symbols; 6732} 6733#endif 6734 6735#ifdef __cplusplus 6736} 6737#endif 6738_LT_EOF 6739 # Now try linking the two files. 6740 mv conftest.$ac_objext conftstm.$ac_objext 6741 lt_save_LIBS="$LIBS" 6742 lt_save_CFLAGS="$CFLAGS" 6743 LIBS="conftstm.$ac_objext" 6744 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6745 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6746 (eval $ac_link) 2>&5 6747 ac_status=$? 6748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6749 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6750 pipe_works=yes 6751 fi 6752 LIBS="$lt_save_LIBS" 6753 CFLAGS="$lt_save_CFLAGS" 6754 else 6755 echo "cannot find nm_test_func in $nlist" >&5 6756 fi 6757 else 6758 echo "cannot find nm_test_var in $nlist" >&5 6759 fi 6760 else 6761 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6762 fi 6763 else 6764 echo "$progname: failed program was:" >&5 6765 cat conftest.$ac_ext >&5 6766 fi 6767 rm -rf conftest* conftst* 6768 6769 # Do not use the global_symbol_pipe unless it works. 6770 if test "$pipe_works" = yes; then 6771 break 6772 else 6773 lt_cv_sys_global_symbol_pipe= 6774 fi 6775done 6776 6777fi 6778 6779if test -z "$lt_cv_sys_global_symbol_pipe"; then 6780 lt_cv_sys_global_symbol_to_cdecl= 6781fi 6782if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6784$as_echo "failed" >&6; } 6785else 6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6787$as_echo "ok" >&6; } 6788fi 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811# Check whether --enable-libtool-lock was given. 6812if test "${enable_libtool_lock+set}" = set; then : 6813 enableval=$enable_libtool_lock; 6814fi 6815 6816test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6817 6818# Some flags need to be propagated to the compiler or linker for good 6819# libtool support. 6820case $host in 6821ia64-*-hpux*) 6822 # Find out which ABI we are using. 6823 echo 'int i;' > conftest.$ac_ext 6824 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6825 (eval $ac_compile) 2>&5 6826 ac_status=$? 6827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6828 test $ac_status = 0; }; then 6829 case `/usr/bin/file conftest.$ac_objext` in 6830 *ELF-32*) 6831 HPUX_IA64_MODE="32" 6832 ;; 6833 *ELF-64*) 6834 HPUX_IA64_MODE="64" 6835 ;; 6836 esac 6837 fi 6838 rm -rf conftest* 6839 ;; 6840*-*-irix6*) 6841 # Find out which ABI we are using. 6842 echo '#line 6842 "configure"' > conftest.$ac_ext 6843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6844 (eval $ac_compile) 2>&5 6845 ac_status=$? 6846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6847 test $ac_status = 0; }; then 6848 if test "$lt_cv_prog_gnu_ld" = yes; then 6849 case `/usr/bin/file conftest.$ac_objext` in 6850 *32-bit*) 6851 LD="${LD-ld} -melf32bsmip" 6852 ;; 6853 *N32*) 6854 LD="${LD-ld} -melf32bmipn32" 6855 ;; 6856 *64-bit*) 6857 LD="${LD-ld} -melf64bmip" 6858 ;; 6859 esac 6860 else 6861 case `/usr/bin/file conftest.$ac_objext` in 6862 *32-bit*) 6863 LD="${LD-ld} -32" 6864 ;; 6865 *N32*) 6866 LD="${LD-ld} -n32" 6867 ;; 6868 *64-bit*) 6869 LD="${LD-ld} -64" 6870 ;; 6871 esac 6872 fi 6873 fi 6874 rm -rf conftest* 6875 ;; 6876 6877x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6878s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6879 # Find out which ABI we are using. 6880 echo 'int i;' > conftest.$ac_ext 6881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6882 (eval $ac_compile) 2>&5 6883 ac_status=$? 6884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6885 test $ac_status = 0; }; then 6886 case `/usr/bin/file conftest.o` in 6887 *32-bit*) 6888 case $host in 6889 x86_64-*kfreebsd*-gnu) 6890 LD="${LD-ld} -m elf_i386_fbsd" 6891 ;; 6892 x86_64-*linux*) 6893 LD="${LD-ld} -m elf_i386" 6894 ;; 6895 ppc64-*linux*|powerpc64-*linux*) 6896 LD="${LD-ld} -m elf32ppclinux" 6897 ;; 6898 s390x-*linux*) 6899 LD="${LD-ld} -m elf_s390" 6900 ;; 6901 sparc64-*linux*) 6902 LD="${LD-ld} -m elf32_sparc" 6903 ;; 6904 esac 6905 ;; 6906 *64-bit*) 6907 case $host in 6908 x86_64-*kfreebsd*-gnu) 6909 LD="${LD-ld} -m elf_x86_64_fbsd" 6910 ;; 6911 x86_64-*linux*) 6912 LD="${LD-ld} -m elf_x86_64" 6913 ;; 6914 ppc*-*linux*|powerpc*-*linux*) 6915 LD="${LD-ld} -m elf64ppc" 6916 ;; 6917 s390*-*linux*|s390*-*tpf*) 6918 LD="${LD-ld} -m elf64_s390" 6919 ;; 6920 sparc*-*linux*) 6921 LD="${LD-ld} -m elf64_sparc" 6922 ;; 6923 esac 6924 ;; 6925 esac 6926 fi 6927 rm -rf conftest* 6928 ;; 6929 6930*-*-sco3.2v5*) 6931 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6932 SAVE_CFLAGS="$CFLAGS" 6933 CFLAGS="$CFLAGS -belf" 6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6935$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6936if test "${lt_cv_cc_needs_belf+set}" = set; then : 6937 $as_echo_n "(cached) " >&6 6938else 6939 ac_ext=c 6940ac_cpp='$CPP $CPPFLAGS' 6941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6943ac_compiler_gnu=$ac_cv_c_compiler_gnu 6944 6945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6946/* end confdefs.h. */ 6947 6948int 6949main () 6950{ 6951 6952 ; 6953 return 0; 6954} 6955_ACEOF 6956if ac_fn_c_try_link "$LINENO"; then : 6957 lt_cv_cc_needs_belf=yes 6958else 6959 lt_cv_cc_needs_belf=no 6960fi 6961rm -f core conftest.err conftest.$ac_objext \ 6962 conftest$ac_exeext conftest.$ac_ext 6963 ac_ext=c 6964ac_cpp='$CPP $CPPFLAGS' 6965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6967ac_compiler_gnu=$ac_cv_c_compiler_gnu 6968 6969fi 6970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6971$as_echo "$lt_cv_cc_needs_belf" >&6; } 6972 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6973 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6974 CFLAGS="$SAVE_CFLAGS" 6975 fi 6976 ;; 6977sparc*-*solaris*) 6978 # Find out which ABI we are using. 6979 echo 'int i;' > conftest.$ac_ext 6980 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6981 (eval $ac_compile) 2>&5 6982 ac_status=$? 6983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6984 test $ac_status = 0; }; then 6985 case `/usr/bin/file conftest.o` in 6986 *64-bit*) 6987 case $lt_cv_prog_gnu_ld in 6988 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6989 *) 6990 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6991 LD="${LD-ld} -64" 6992 fi 6993 ;; 6994 esac 6995 ;; 6996 esac 6997 fi 6998 rm -rf conftest* 6999 ;; 7000esac 7001 7002need_locks="$enable_libtool_lock" 7003 7004 7005 case $host_os in 7006 rhapsody* | darwin*) 7007 if test -n "$ac_tool_prefix"; then 7008 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7009set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7011$as_echo_n "checking for $ac_word... " >&6; } 7012if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 7013 $as_echo_n "(cached) " >&6 7014else 7015 if test -n "$DSYMUTIL"; then 7016 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7017else 7018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7019for as_dir in $PATH 7020do 7021 IFS=$as_save_IFS 7022 test -z "$as_dir" && as_dir=. 7023 for ac_exec_ext in '' $ac_executable_extensions; do 7024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7025 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7027 break 2 7028 fi 7029done 7030 done 7031IFS=$as_save_IFS 7032 7033fi 7034fi 7035DSYMUTIL=$ac_cv_prog_DSYMUTIL 7036if test -n "$DSYMUTIL"; then 7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7038$as_echo "$DSYMUTIL" >&6; } 7039else 7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7041$as_echo "no" >&6; } 7042fi 7043 7044 7045fi 7046if test -z "$ac_cv_prog_DSYMUTIL"; then 7047 ac_ct_DSYMUTIL=$DSYMUTIL 7048 # Extract the first word of "dsymutil", so it can be a program name with args. 7049set dummy dsymutil; ac_word=$2 7050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7051$as_echo_n "checking for $ac_word... " >&6; } 7052if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 7053 $as_echo_n "(cached) " >&6 7054else 7055 if test -n "$ac_ct_DSYMUTIL"; then 7056 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7057else 7058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7059for as_dir in $PATH 7060do 7061 IFS=$as_save_IFS 7062 test -z "$as_dir" && as_dir=. 7063 for ac_exec_ext in '' $ac_executable_extensions; do 7064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7065 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7067 break 2 7068 fi 7069done 7070 done 7071IFS=$as_save_IFS 7072 7073fi 7074fi 7075ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7076if test -n "$ac_ct_DSYMUTIL"; then 7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7078$as_echo "$ac_ct_DSYMUTIL" >&6; } 7079else 7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7081$as_echo "no" >&6; } 7082fi 7083 7084 if test "x$ac_ct_DSYMUTIL" = x; then 7085 DSYMUTIL=":" 7086 else 7087 case $cross_compiling:$ac_tool_warned in 7088yes:) 7089{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7090$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7091ac_tool_warned=yes ;; 7092esac 7093 DSYMUTIL=$ac_ct_DSYMUTIL 7094 fi 7095else 7096 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7097fi 7098 7099 if test -n "$ac_tool_prefix"; then 7100 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7101set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7103$as_echo_n "checking for $ac_word... " >&6; } 7104if test "${ac_cv_prog_NMEDIT+set}" = set; then : 7105 $as_echo_n "(cached) " >&6 7106else 7107 if test -n "$NMEDIT"; then 7108 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7109else 7110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7111for as_dir in $PATH 7112do 7113 IFS=$as_save_IFS 7114 test -z "$as_dir" && as_dir=. 7115 for ac_exec_ext in '' $ac_executable_extensions; do 7116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7117 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7119 break 2 7120 fi 7121done 7122 done 7123IFS=$as_save_IFS 7124 7125fi 7126fi 7127NMEDIT=$ac_cv_prog_NMEDIT 7128if test -n "$NMEDIT"; then 7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7130$as_echo "$NMEDIT" >&6; } 7131else 7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7133$as_echo "no" >&6; } 7134fi 7135 7136 7137fi 7138if test -z "$ac_cv_prog_NMEDIT"; then 7139 ac_ct_NMEDIT=$NMEDIT 7140 # Extract the first word of "nmedit", so it can be a program name with args. 7141set dummy nmedit; ac_word=$2 7142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7143$as_echo_n "checking for $ac_word... " >&6; } 7144if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 7145 $as_echo_n "(cached) " >&6 7146else 7147 if test -n "$ac_ct_NMEDIT"; then 7148 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7149else 7150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7151for as_dir in $PATH 7152do 7153 IFS=$as_save_IFS 7154 test -z "$as_dir" && as_dir=. 7155 for ac_exec_ext in '' $ac_executable_extensions; do 7156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7157 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7159 break 2 7160 fi 7161done 7162 done 7163IFS=$as_save_IFS 7164 7165fi 7166fi 7167ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7168if test -n "$ac_ct_NMEDIT"; then 7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7170$as_echo "$ac_ct_NMEDIT" >&6; } 7171else 7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7173$as_echo "no" >&6; } 7174fi 7175 7176 if test "x$ac_ct_NMEDIT" = x; then 7177 NMEDIT=":" 7178 else 7179 case $cross_compiling:$ac_tool_warned in 7180yes:) 7181{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7182$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7183ac_tool_warned=yes ;; 7184esac 7185 NMEDIT=$ac_ct_NMEDIT 7186 fi 7187else 7188 NMEDIT="$ac_cv_prog_NMEDIT" 7189fi 7190 7191 if test -n "$ac_tool_prefix"; then 7192 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7193set dummy ${ac_tool_prefix}lipo; ac_word=$2 7194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7195$as_echo_n "checking for $ac_word... " >&6; } 7196if test "${ac_cv_prog_LIPO+set}" = set; then : 7197 $as_echo_n "(cached) " >&6 7198else 7199 if test -n "$LIPO"; then 7200 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7201else 7202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7203for as_dir in $PATH 7204do 7205 IFS=$as_save_IFS 7206 test -z "$as_dir" && as_dir=. 7207 for ac_exec_ext in '' $ac_executable_extensions; do 7208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7209 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7211 break 2 7212 fi 7213done 7214 done 7215IFS=$as_save_IFS 7216 7217fi 7218fi 7219LIPO=$ac_cv_prog_LIPO 7220if test -n "$LIPO"; then 7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7222$as_echo "$LIPO" >&6; } 7223else 7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7225$as_echo "no" >&6; } 7226fi 7227 7228 7229fi 7230if test -z "$ac_cv_prog_LIPO"; then 7231 ac_ct_LIPO=$LIPO 7232 # Extract the first word of "lipo", so it can be a program name with args. 7233set dummy lipo; ac_word=$2 7234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7235$as_echo_n "checking for $ac_word... " >&6; } 7236if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 7237 $as_echo_n "(cached) " >&6 7238else 7239 if test -n "$ac_ct_LIPO"; then 7240 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7241else 7242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7243for as_dir in $PATH 7244do 7245 IFS=$as_save_IFS 7246 test -z "$as_dir" && as_dir=. 7247 for ac_exec_ext in '' $ac_executable_extensions; do 7248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7249 ac_cv_prog_ac_ct_LIPO="lipo" 7250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7251 break 2 7252 fi 7253done 7254 done 7255IFS=$as_save_IFS 7256 7257fi 7258fi 7259ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7260if test -n "$ac_ct_LIPO"; then 7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7262$as_echo "$ac_ct_LIPO" >&6; } 7263else 7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7265$as_echo "no" >&6; } 7266fi 7267 7268 if test "x$ac_ct_LIPO" = x; then 7269 LIPO=":" 7270 else 7271 case $cross_compiling:$ac_tool_warned in 7272yes:) 7273{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7274$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7275ac_tool_warned=yes ;; 7276esac 7277 LIPO=$ac_ct_LIPO 7278 fi 7279else 7280 LIPO="$ac_cv_prog_LIPO" 7281fi 7282 7283 if test -n "$ac_tool_prefix"; then 7284 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7285set dummy ${ac_tool_prefix}otool; ac_word=$2 7286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7287$as_echo_n "checking for $ac_word... " >&6; } 7288if test "${ac_cv_prog_OTOOL+set}" = set; then : 7289 $as_echo_n "(cached) " >&6 7290else 7291 if test -n "$OTOOL"; then 7292 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7293else 7294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7295for as_dir in $PATH 7296do 7297 IFS=$as_save_IFS 7298 test -z "$as_dir" && as_dir=. 7299 for ac_exec_ext in '' $ac_executable_extensions; do 7300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7301 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7303 break 2 7304 fi 7305done 7306 done 7307IFS=$as_save_IFS 7308 7309fi 7310fi 7311OTOOL=$ac_cv_prog_OTOOL 7312if test -n "$OTOOL"; then 7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7314$as_echo "$OTOOL" >&6; } 7315else 7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7317$as_echo "no" >&6; } 7318fi 7319 7320 7321fi 7322if test -z "$ac_cv_prog_OTOOL"; then 7323 ac_ct_OTOOL=$OTOOL 7324 # Extract the first word of "otool", so it can be a program name with args. 7325set dummy otool; ac_word=$2 7326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7327$as_echo_n "checking for $ac_word... " >&6; } 7328if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 7329 $as_echo_n "(cached) " >&6 7330else 7331 if test -n "$ac_ct_OTOOL"; then 7332 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7333else 7334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7335for as_dir in $PATH 7336do 7337 IFS=$as_save_IFS 7338 test -z "$as_dir" && as_dir=. 7339 for ac_exec_ext in '' $ac_executable_extensions; do 7340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7341 ac_cv_prog_ac_ct_OTOOL="otool" 7342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7343 break 2 7344 fi 7345done 7346 done 7347IFS=$as_save_IFS 7348 7349fi 7350fi 7351ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7352if test -n "$ac_ct_OTOOL"; then 7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7354$as_echo "$ac_ct_OTOOL" >&6; } 7355else 7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7357$as_echo "no" >&6; } 7358fi 7359 7360 if test "x$ac_ct_OTOOL" = x; then 7361 OTOOL=":" 7362 else 7363 case $cross_compiling:$ac_tool_warned in 7364yes:) 7365{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7366$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7367ac_tool_warned=yes ;; 7368esac 7369 OTOOL=$ac_ct_OTOOL 7370 fi 7371else 7372 OTOOL="$ac_cv_prog_OTOOL" 7373fi 7374 7375 if test -n "$ac_tool_prefix"; then 7376 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7377set dummy ${ac_tool_prefix}otool64; ac_word=$2 7378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7379$as_echo_n "checking for $ac_word... " >&6; } 7380if test "${ac_cv_prog_OTOOL64+set}" = set; then : 7381 $as_echo_n "(cached) " >&6 7382else 7383 if test -n "$OTOOL64"; then 7384 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7385else 7386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7387for as_dir in $PATH 7388do 7389 IFS=$as_save_IFS 7390 test -z "$as_dir" && as_dir=. 7391 for ac_exec_ext in '' $ac_executable_extensions; do 7392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7393 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7395 break 2 7396 fi 7397done 7398 done 7399IFS=$as_save_IFS 7400 7401fi 7402fi 7403OTOOL64=$ac_cv_prog_OTOOL64 7404if test -n "$OTOOL64"; then 7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7406$as_echo "$OTOOL64" >&6; } 7407else 7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7409$as_echo "no" >&6; } 7410fi 7411 7412 7413fi 7414if test -z "$ac_cv_prog_OTOOL64"; then 7415 ac_ct_OTOOL64=$OTOOL64 7416 # Extract the first word of "otool64", so it can be a program name with args. 7417set dummy otool64; ac_word=$2 7418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7419$as_echo_n "checking for $ac_word... " >&6; } 7420if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 7421 $as_echo_n "(cached) " >&6 7422else 7423 if test -n "$ac_ct_OTOOL64"; then 7424 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7425else 7426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7427for as_dir in $PATH 7428do 7429 IFS=$as_save_IFS 7430 test -z "$as_dir" && as_dir=. 7431 for ac_exec_ext in '' $ac_executable_extensions; do 7432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7433 ac_cv_prog_ac_ct_OTOOL64="otool64" 7434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7435 break 2 7436 fi 7437done 7438 done 7439IFS=$as_save_IFS 7440 7441fi 7442fi 7443ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7444if test -n "$ac_ct_OTOOL64"; then 7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7446$as_echo "$ac_ct_OTOOL64" >&6; } 7447else 7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7449$as_echo "no" >&6; } 7450fi 7451 7452 if test "x$ac_ct_OTOOL64" = x; then 7453 OTOOL64=":" 7454 else 7455 case $cross_compiling:$ac_tool_warned in 7456yes:) 7457{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7458$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7459ac_tool_warned=yes ;; 7460esac 7461 OTOOL64=$ac_ct_OTOOL64 7462 fi 7463else 7464 OTOOL64="$ac_cv_prog_OTOOL64" 7465fi 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7494$as_echo_n "checking for -single_module linker flag... " >&6; } 7495if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 7496 $as_echo_n "(cached) " >&6 7497else 7498 lt_cv_apple_cc_single_mod=no 7499 if test -z "${LT_MULTI_MODULE}"; then 7500 # By default we will add the -single_module flag. You can override 7501 # by either setting the environment variable LT_MULTI_MODULE 7502 # non-empty at configure time, or by adding -multi_module to the 7503 # link flags. 7504 rm -rf libconftest.dylib* 7505 echo "int foo(void){return 1;}" > conftest.c 7506 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7507-dynamiclib -Wl,-single_module conftest.c" >&5 7508 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7509 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7510 _lt_result=$? 7511 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7512 lt_cv_apple_cc_single_mod=yes 7513 else 7514 cat conftest.err >&5 7515 fi 7516 rm -rf libconftest.dylib* 7517 rm -f conftest.* 7518 fi 7519fi 7520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7521$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7523$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7524if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 7525 $as_echo_n "(cached) " >&6 7526else 7527 lt_cv_ld_exported_symbols_list=no 7528 save_LDFLAGS=$LDFLAGS 7529 echo "_main" > conftest.sym 7530 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7532/* end confdefs.h. */ 7533 7534int 7535main () 7536{ 7537 7538 ; 7539 return 0; 7540} 7541_ACEOF 7542if ac_fn_c_try_link "$LINENO"; then : 7543 lt_cv_ld_exported_symbols_list=yes 7544else 7545 lt_cv_ld_exported_symbols_list=no 7546fi 7547rm -f core conftest.err conftest.$ac_objext \ 7548 conftest$ac_exeext conftest.$ac_ext 7549 LDFLAGS="$save_LDFLAGS" 7550 7551fi 7552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7553$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7554 case $host_os in 7555 rhapsody* | darwin1.[012]) 7556 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7557 darwin1.*) 7558 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7559 darwin*) # darwin 5.x on 7560 # if running on 10.5 or later, the deployment target defaults 7561 # to the OS version, if on x86, and 10.4, the deployment 7562 # target defaults to 10.4. Don't you love it? 7563 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7564 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7565 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7566 10.[012]*) 7567 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7568 10.*) 7569 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7570 esac 7571 ;; 7572 esac 7573 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7574 _lt_dar_single_mod='$single_module' 7575 fi 7576 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7577 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7578 else 7579 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7580 fi 7581 if test "$DSYMUTIL" != ":"; then 7582 _lt_dsymutil='~$DSYMUTIL $lib || :' 7583 else 7584 _lt_dsymutil= 7585 fi 7586 ;; 7587 esac 7588 7589 7590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7591$as_echo_n "checking for ANSI C header files... " >&6; } 7592if test "${ac_cv_header_stdc+set}" = set; then : 7593 $as_echo_n "(cached) " >&6 7594else 7595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7596/* end confdefs.h. */ 7597#include <stdlib.h> 7598#include <stdarg.h> 7599#include <string.h> 7600#include <float.h> 7601 7602int 7603main () 7604{ 7605 7606 ; 7607 return 0; 7608} 7609_ACEOF 7610if ac_fn_c_try_compile "$LINENO"; then : 7611 ac_cv_header_stdc=yes 7612else 7613 ac_cv_header_stdc=no 7614fi 7615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7616 7617if test $ac_cv_header_stdc = yes; then 7618 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7620/* end confdefs.h. */ 7621#include <string.h> 7622 7623_ACEOF 7624if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7625 $EGREP "memchr" >/dev/null 2>&1; then : 7626 7627else 7628 ac_cv_header_stdc=no 7629fi 7630rm -f conftest* 7631 7632fi 7633 7634if test $ac_cv_header_stdc = yes; then 7635 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7637/* end confdefs.h. */ 7638#include <stdlib.h> 7639 7640_ACEOF 7641if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7642 $EGREP "free" >/dev/null 2>&1; then : 7643 7644else 7645 ac_cv_header_stdc=no 7646fi 7647rm -f conftest* 7648 7649fi 7650 7651if test $ac_cv_header_stdc = yes; then 7652 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7653 if test "$cross_compiling" = yes; then : 7654 : 7655else 7656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7657/* end confdefs.h. */ 7658#include <ctype.h> 7659#include <stdlib.h> 7660#if ((' ' & 0x0FF) == 0x020) 7661# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7662# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7663#else 7664# define ISLOWER(c) \ 7665 (('a' <= (c) && (c) <= 'i') \ 7666 || ('j' <= (c) && (c) <= 'r') \ 7667 || ('s' <= (c) && (c) <= 'z')) 7668# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7669#endif 7670 7671#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7672int 7673main () 7674{ 7675 int i; 7676 for (i = 0; i < 256; i++) 7677 if (XOR (islower (i), ISLOWER (i)) 7678 || toupper (i) != TOUPPER (i)) 7679 return 2; 7680 return 0; 7681} 7682_ACEOF 7683if ac_fn_c_try_run "$LINENO"; then : 7684 7685else 7686 ac_cv_header_stdc=no 7687fi 7688rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7689 conftest.$ac_objext conftest.beam conftest.$ac_ext 7690fi 7691 7692fi 7693fi 7694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7695$as_echo "$ac_cv_header_stdc" >&6; } 7696if test $ac_cv_header_stdc = yes; then 7697 7698$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7699 7700fi 7701 7702# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7703for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7704 inttypes.h stdint.h unistd.h 7705do : 7706 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7707ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7708" 7709eval as_val=\$$as_ac_Header 7710 if test "x$as_val" = x""yes; then : 7711 cat >>confdefs.h <<_ACEOF 7712#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7713_ACEOF 7714 7715fi 7716 7717done 7718 7719 7720for ac_header in dlfcn.h 7721do : 7722 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7723" 7724if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 7725 cat >>confdefs.h <<_ACEOF 7726#define HAVE_DLFCN_H 1 7727_ACEOF 7728 7729fi 7730 7731done 7732 7733 7734 7735ac_ext=cpp 7736ac_cpp='$CXXCPP $CPPFLAGS' 7737ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7738ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7739ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7740if test -z "$CXX"; then 7741 if test -n "$CCC"; then 7742 CXX=$CCC 7743 else 7744 if test -n "$ac_tool_prefix"; then 7745 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 7746 do 7747 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7748set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7750$as_echo_n "checking for $ac_word... " >&6; } 7751if test "${ac_cv_prog_CXX+set}" = set; then : 7752 $as_echo_n "(cached) " >&6 7753else 7754 if test -n "$CXX"; then 7755 ac_cv_prog_CXX="$CXX" # Let the user override the test. 7756else 7757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7758for as_dir in $PATH 7759do 7760 IFS=$as_save_IFS 7761 test -z "$as_dir" && as_dir=. 7762 for ac_exec_ext in '' $ac_executable_extensions; do 7763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7764 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 7765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7766 break 2 7767 fi 7768done 7769 done 7770IFS=$as_save_IFS 7771 7772fi 7773fi 7774CXX=$ac_cv_prog_CXX 7775if test -n "$CXX"; then 7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 7777$as_echo "$CXX" >&6; } 7778else 7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7780$as_echo "no" >&6; } 7781fi 7782 7783 7784 test -n "$CXX" && break 7785 done 7786fi 7787if test -z "$CXX"; then 7788 ac_ct_CXX=$CXX 7789 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 7790do 7791 # Extract the first word of "$ac_prog", so it can be a program name with args. 7792set dummy $ac_prog; ac_word=$2 7793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7794$as_echo_n "checking for $ac_word... " >&6; } 7795if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : 7796 $as_echo_n "(cached) " >&6 7797else 7798 if test -n "$ac_ct_CXX"; then 7799 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 7800else 7801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7802for as_dir in $PATH 7803do 7804 IFS=$as_save_IFS 7805 test -z "$as_dir" && as_dir=. 7806 for ac_exec_ext in '' $ac_executable_extensions; do 7807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7808 ac_cv_prog_ac_ct_CXX="$ac_prog" 7809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7810 break 2 7811 fi 7812done 7813 done 7814IFS=$as_save_IFS 7815 7816fi 7817fi 7818ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 7819if test -n "$ac_ct_CXX"; then 7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 7821$as_echo "$ac_ct_CXX" >&6; } 7822else 7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7824$as_echo "no" >&6; } 7825fi 7826 7827 7828 test -n "$ac_ct_CXX" && break 7829done 7830 7831 if test "x$ac_ct_CXX" = x; then 7832 CXX="g++" 7833 else 7834 case $cross_compiling:$ac_tool_warned in 7835yes:) 7836{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7837$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7838ac_tool_warned=yes ;; 7839esac 7840 CXX=$ac_ct_CXX 7841 fi 7842fi 7843 7844 fi 7845fi 7846# Provide some information about the compiler. 7847$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 7848set X $ac_compile 7849ac_compiler=$2 7850for ac_option in --version -v -V -qversion; do 7851 { { ac_try="$ac_compiler $ac_option >&5" 7852case "(($ac_try" in 7853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7854 *) ac_try_echo=$ac_try;; 7855esac 7856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7857$as_echo "$ac_try_echo"; } >&5 7858 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 7859 ac_status=$? 7860 if test -s conftest.err; then 7861 sed '10a\ 7862... rest of stderr output deleted ... 7863 10q' conftest.err >conftest.er1 7864 cat conftest.er1 >&5 7865 fi 7866 rm -f conftest.er1 conftest.err 7867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7868 test $ac_status = 0; } 7869done 7870 7871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 7872$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 7873if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : 7874 $as_echo_n "(cached) " >&6 7875else 7876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7877/* end confdefs.h. */ 7878 7879int 7880main () 7881{ 7882#ifndef __GNUC__ 7883 choke me 7884#endif 7885 7886 ; 7887 return 0; 7888} 7889_ACEOF 7890if ac_fn_cxx_try_compile "$LINENO"; then : 7891 ac_compiler_gnu=yes 7892else 7893 ac_compiler_gnu=no 7894fi 7895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7896ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 7897 7898fi 7899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 7900$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 7901if test $ac_compiler_gnu = yes; then 7902 GXX=yes 7903else 7904 GXX= 7905fi 7906ac_test_CXXFLAGS=${CXXFLAGS+set} 7907ac_save_CXXFLAGS=$CXXFLAGS 7908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 7909$as_echo_n "checking whether $CXX accepts -g... " >&6; } 7910if test "${ac_cv_prog_cxx_g+set}" = set; then : 7911 $as_echo_n "(cached) " >&6 7912else 7913 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 7914 ac_cxx_werror_flag=yes 7915 ac_cv_prog_cxx_g=no 7916 CXXFLAGS="-g" 7917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7918/* end confdefs.h. */ 7919 7920int 7921main () 7922{ 7923 7924 ; 7925 return 0; 7926} 7927_ACEOF 7928if ac_fn_cxx_try_compile "$LINENO"; then : 7929 ac_cv_prog_cxx_g=yes 7930else 7931 CXXFLAGS="" 7932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7933/* end confdefs.h. */ 7934 7935int 7936main () 7937{ 7938 7939 ; 7940 return 0; 7941} 7942_ACEOF 7943if ac_fn_cxx_try_compile "$LINENO"; then : 7944 7945else 7946 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 7947 CXXFLAGS="-g" 7948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7949/* end confdefs.h. */ 7950 7951int 7952main () 7953{ 7954 7955 ; 7956 return 0; 7957} 7958_ACEOF 7959if ac_fn_cxx_try_compile "$LINENO"; then : 7960 ac_cv_prog_cxx_g=yes 7961fi 7962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7963fi 7964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7965fi 7966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7967 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 7968fi 7969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 7970$as_echo "$ac_cv_prog_cxx_g" >&6; } 7971if test "$ac_test_CXXFLAGS" = set; then 7972 CXXFLAGS=$ac_save_CXXFLAGS 7973elif test $ac_cv_prog_cxx_g = yes; then 7974 if test "$GXX" = yes; then 7975 CXXFLAGS="-g -O2" 7976 else 7977 CXXFLAGS="-g" 7978 fi 7979else 7980 if test "$GXX" = yes; then 7981 CXXFLAGS="-O2" 7982 else 7983 CXXFLAGS= 7984 fi 7985fi 7986ac_ext=c 7987ac_cpp='$CPP $CPPFLAGS' 7988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7990ac_compiler_gnu=$ac_cv_c_compiler_gnu 7991 7992depcc="$CXX" am_compiler_list= 7993 7994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 7995$as_echo_n "checking dependency style of $depcc... " >&6; } 7996if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : 7997 $as_echo_n "(cached) " >&6 7998else 7999 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 8000 # We make a subdir and do the tests there. Otherwise we can end up 8001 # making bogus files that we don't know about and never remove. For 8002 # instance it was reported that on HP-UX the gcc test will end up 8003 # making a dummy file named `D' -- because `-MD' means `put the output 8004 # in D'. 8005 mkdir conftest.dir 8006 # Copy depcomp to subdir because otherwise we won't find it if we're 8007 # using a relative directory. 8008 cp "$am_depcomp" conftest.dir 8009 cd conftest.dir 8010 # We will build objects and dependencies in a subdirectory because 8011 # it helps to detect inapplicable dependency modes. For instance 8012 # both Tru64's cc and ICC support -MD to output dependencies as a 8013 # side effect of compilation, but ICC will put the dependencies in 8014 # the current directory while Tru64 will put them in the object 8015 # directory. 8016 mkdir sub 8017 8018 am_cv_CXX_dependencies_compiler_type=none 8019 if test "$am_compiler_list" = ""; then 8020 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 8021 fi 8022 for depmode in $am_compiler_list; do 8023 # Setup a source with many dependencies, because some compilers 8024 # like to wrap large dependency lists on column 80 (with \), and 8025 # we should not choose a depcomp mode which is confused by this. 8026 # 8027 # We need to recreate these files for each test, as the compiler may 8028 # overwrite some of them when testing with obscure command lines. 8029 # This happens at least with the AIX C compiler. 8030 : > sub/conftest.c 8031 for i in 1 2 3 4 5 6; do 8032 echo '#include "conftst'$i'.h"' >> sub/conftest.c 8033 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 8034 # Solaris 8's {/usr,}/bin/sh. 8035 touch sub/conftst$i.h 8036 done 8037 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 8038 8039 case $depmode in 8040 nosideeffect) 8041 # after this tag, mechanisms are not by side-effect, so they'll 8042 # only be used when explicitly requested 8043 if test "x$enable_dependency_tracking" = xyes; then 8044 continue 8045 else 8046 break 8047 fi 8048 ;; 8049 none) break ;; 8050 esac 8051 # We check with `-c' and `-o' for the sake of the "dashmstdout" 8052 # mode. It turns out that the SunPro C++ compiler does not properly 8053 # handle `-M -o', and we need to detect this. 8054 if depmode=$depmode \ 8055 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 8056 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 8057 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 8058 >/dev/null 2>conftest.err && 8059 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 8060 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 8061 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 8062 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 8063 # icc doesn't choke on unknown options, it will just issue warnings 8064 # or remarks (even with -Werror). So we grep stderr for any message 8065 # that says an option was ignored or not supported. 8066 # When given -MP, icc 7.0 and 7.1 complain thusly: 8067 # icc: Command line warning: ignoring option '-M'; no argument required 8068 # The diagnosis changed in icc 8.0: 8069 # icc: Command line remark: option '-MP' not supported 8070 if (grep 'ignoring option' conftest.err || 8071 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 8072 am_cv_CXX_dependencies_compiler_type=$depmode 8073 break 8074 fi 8075 fi 8076 done 8077 8078 cd .. 8079 rm -rf conftest.dir 8080else 8081 am_cv_CXX_dependencies_compiler_type=none 8082fi 8083 8084fi 8085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 8086$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 8087CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 8088 8089 if 8090 test "x$enable_dependency_tracking" != xno \ 8091 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 8092 am__fastdepCXX_TRUE= 8093 am__fastdepCXX_FALSE='#' 8094else 8095 am__fastdepCXX_TRUE='#' 8096 am__fastdepCXX_FALSE= 8097fi 8098 8099 8100if test -n "$CXX" && ( test "X$CXX" != "Xno" && 8101 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 8102 (test "X$CXX" != "Xg++"))) ; then 8103 ac_ext=cpp 8104ac_cpp='$CXXCPP $CPPFLAGS' 8105ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8106ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8107ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 8109$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 8110if test -z "$CXXCPP"; then 8111 if test "${ac_cv_prog_CXXCPP+set}" = set; then : 8112 $as_echo_n "(cached) " >&6 8113else 8114 # Double quotes because CXXCPP needs to be expanded 8115 for CXXCPP in "$CXX -E" "/lib/cpp" 8116 do 8117 ac_preproc_ok=false 8118for ac_cxx_preproc_warn_flag in '' yes 8119do 8120 # Use a header file that comes with gcc, so configuring glibc 8121 # with a fresh cross-compiler works. 8122 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8123 # <limits.h> exists even on freestanding compilers. 8124 # On the NeXT, cc -E runs the code through the compiler's parser, 8125 # not just through cpp. "Syntax error" is here to catch this case. 8126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8127/* end confdefs.h. */ 8128#ifdef __STDC__ 8129# include <limits.h> 8130#else 8131# include <assert.h> 8132#endif 8133 Syntax error 8134_ACEOF 8135if ac_fn_cxx_try_cpp "$LINENO"; then : 8136 8137else 8138 # Broken: fails on valid input. 8139continue 8140fi 8141rm -f conftest.err conftest.$ac_ext 8142 8143 # OK, works on sane cases. Now check whether nonexistent headers 8144 # can be detected and how. 8145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8146/* end confdefs.h. */ 8147#include <ac_nonexistent.h> 8148_ACEOF 8149if ac_fn_cxx_try_cpp "$LINENO"; then : 8150 # Broken: success on invalid input. 8151continue 8152else 8153 # Passes both tests. 8154ac_preproc_ok=: 8155break 8156fi 8157rm -f conftest.err conftest.$ac_ext 8158 8159done 8160# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8161rm -f conftest.err conftest.$ac_ext 8162if $ac_preproc_ok; then : 8163 break 8164fi 8165 8166 done 8167 ac_cv_prog_CXXCPP=$CXXCPP 8168 8169fi 8170 CXXCPP=$ac_cv_prog_CXXCPP 8171else 8172 ac_cv_prog_CXXCPP=$CXXCPP 8173fi 8174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 8175$as_echo "$CXXCPP" >&6; } 8176ac_preproc_ok=false 8177for ac_cxx_preproc_warn_flag in '' yes 8178do 8179 # Use a header file that comes with gcc, so configuring glibc 8180 # with a fresh cross-compiler works. 8181 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8182 # <limits.h> exists even on freestanding compilers. 8183 # On the NeXT, cc -E runs the code through the compiler's parser, 8184 # not just through cpp. "Syntax error" is here to catch this case. 8185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8186/* end confdefs.h. */ 8187#ifdef __STDC__ 8188# include <limits.h> 8189#else 8190# include <assert.h> 8191#endif 8192 Syntax error 8193_ACEOF 8194if ac_fn_cxx_try_cpp "$LINENO"; then : 8195 8196else 8197 # Broken: fails on valid input. 8198continue 8199fi 8200rm -f conftest.err conftest.$ac_ext 8201 8202 # OK, works on sane cases. Now check whether nonexistent headers 8203 # can be detected and how. 8204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8205/* end confdefs.h. */ 8206#include <ac_nonexistent.h> 8207_ACEOF 8208if ac_fn_cxx_try_cpp "$LINENO"; then : 8209 # Broken: success on invalid input. 8210continue 8211else 8212 # Passes both tests. 8213ac_preproc_ok=: 8214break 8215fi 8216rm -f conftest.err conftest.$ac_ext 8217 8218done 8219# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8220rm -f conftest.err conftest.$ac_ext 8221if $ac_preproc_ok; then : 8222 8223else 8224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8225$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8226_lt_caught_CXX_error=yes; } 8227fi 8228 8229ac_ext=c 8230ac_cpp='$CPP $CPPFLAGS' 8231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8233ac_compiler_gnu=$ac_cv_c_compiler_gnu 8234 8235else 8236 _lt_caught_CXX_error=yes 8237fi 8238 8239 8240 8241 8242 8243# Set options 8244 8245 8246 8247 enable_dlopen=no 8248 8249 8250 enable_win32_dll=no 8251 8252 8253 # Check whether --enable-shared was given. 8254if test "${enable_shared+set}" = set; then : 8255 enableval=$enable_shared; p=${PACKAGE-default} 8256 case $enableval in 8257 yes) enable_shared=yes ;; 8258 no) enable_shared=no ;; 8259 *) 8260 enable_shared=no 8261 # Look at the argument we got. We use all the common list separators. 8262 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8263 for pkg in $enableval; do 8264 IFS="$lt_save_ifs" 8265 if test "X$pkg" = "X$p"; then 8266 enable_shared=yes 8267 fi 8268 done 8269 IFS="$lt_save_ifs" 8270 ;; 8271 esac 8272else 8273 enable_shared=yes 8274fi 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 # Check whether --enable-static was given. 8285if test "${enable_static+set}" = set; then : 8286 enableval=$enable_static; p=${PACKAGE-default} 8287 case $enableval in 8288 yes) enable_static=yes ;; 8289 no) enable_static=no ;; 8290 *) 8291 enable_static=no 8292 # Look at the argument we got. We use all the common list separators. 8293 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8294 for pkg in $enableval; do 8295 IFS="$lt_save_ifs" 8296 if test "X$pkg" = "X$p"; then 8297 enable_static=yes 8298 fi 8299 done 8300 IFS="$lt_save_ifs" 8301 ;; 8302 esac 8303else 8304 enable_static=yes 8305fi 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316# Check whether --with-pic was given. 8317if test "${with_pic+set}" = set; then : 8318 withval=$with_pic; pic_mode="$withval" 8319else 8320 pic_mode=default 8321fi 8322 8323 8324test -z "$pic_mode" && pic_mode=default 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336# This can be used to rebuild libtool when needed 8337LIBTOOL_DEPS="$ltmain" 8338 8339# Always use our own libtool. 8340LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366test -z "$LN_S" && LN_S="ln -s" 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381if test -n "${ZSH_VERSION+set}" ; then 8382 setopt NO_GLOB_SUBST 8383fi 8384 8385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8386$as_echo_n "checking for objdir... " >&6; } 8387if test "${lt_cv_objdir+set}" = set; then : 8388 $as_echo_n "(cached) " >&6 8389else 8390 rm -f .libs 2>/dev/null 8391mkdir .libs 2>/dev/null 8392if test -d .libs; then 8393 lt_cv_objdir=.libs 8394else 8395 # MS-DOS does not allow filenames that begin with a dot. 8396 lt_cv_objdir=_libs 8397fi 8398rmdir .libs 2>/dev/null 8399fi 8400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8401$as_echo "$lt_cv_objdir" >&6; } 8402objdir=$lt_cv_objdir 8403 8404 8405 8406 8407 8408cat >>confdefs.h <<_ACEOF 8409#define LT_OBJDIR "$lt_cv_objdir/" 8410_ACEOF 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428case $host_os in 8429aix3*) 8430 # AIX sometimes has problems with the GCC collect2 program. For some 8431 # reason, if we set the COLLECT_NAMES environment variable, the problems 8432 # vanish in a puff of smoke. 8433 if test "X${COLLECT_NAMES+set}" != Xset; then 8434 COLLECT_NAMES= 8435 export COLLECT_NAMES 8436 fi 8437 ;; 8438esac 8439 8440# Sed substitution that helps us do robust quoting. It backslashifies 8441# metacharacters that are still active within double-quoted strings. 8442sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 8443 8444# Same as above, but do not quote variable references. 8445double_quote_subst='s/\(["`\\]\)/\\\1/g' 8446 8447# Sed substitution to delay expansion of an escaped shell variable in a 8448# double_quote_subst'ed string. 8449delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 8450 8451# Sed substitution to delay expansion of an escaped single quote. 8452delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 8453 8454# Sed substitution to avoid accidental globbing in evaled expressions 8455no_glob_subst='s/\*/\\\*/g' 8456 8457# Global variables: 8458ofile=libtool 8459can_build_shared=yes 8460 8461# All known linkers require a `.a' archive for static linking (except MSVC, 8462# which needs '.lib'). 8463libext=a 8464 8465with_gnu_ld="$lt_cv_prog_gnu_ld" 8466 8467old_CC="$CC" 8468old_CFLAGS="$CFLAGS" 8469 8470# Set sane defaults for various variables 8471test -z "$CC" && CC=cc 8472test -z "$LTCC" && LTCC=$CC 8473test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8474test -z "$LD" && LD=ld 8475test -z "$ac_objext" && ac_objext=o 8476 8477for cc_temp in $compiler""; do 8478 case $cc_temp in 8479 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8480 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8481 \-*) ;; 8482 *) break;; 8483 esac 8484done 8485cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8486 8487 8488# Only perform the check for file, if the check method requires it 8489test -z "$MAGIC_CMD" && MAGIC_CMD=file 8490case $deplibs_check_method in 8491file_magic*) 8492 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8494$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8495if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 8496 $as_echo_n "(cached) " >&6 8497else 8498 case $MAGIC_CMD in 8499[\\/*] | ?:[\\/]*) 8500 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8501 ;; 8502*) 8503 lt_save_MAGIC_CMD="$MAGIC_CMD" 8504 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8505 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8506 for ac_dir in $ac_dummy; do 8507 IFS="$lt_save_ifs" 8508 test -z "$ac_dir" && ac_dir=. 8509 if test -f $ac_dir/${ac_tool_prefix}file; then 8510 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8511 if test -n "$file_magic_test_file"; then 8512 case $deplibs_check_method in 8513 "file_magic "*) 8514 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8515 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8516 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8517 $EGREP "$file_magic_regex" > /dev/null; then 8518 : 8519 else 8520 cat <<_LT_EOF 1>&2 8521 8522*** Warning: the command libtool uses to detect shared libraries, 8523*** $file_magic_cmd, produces output that libtool cannot recognize. 8524*** The result is that libtool may fail to recognize shared libraries 8525*** as such. This will affect the creation of libtool libraries that 8526*** depend on shared libraries, but programs linked with such libtool 8527*** libraries will work regardless of this problem. Nevertheless, you 8528*** may want to report the problem to your system manager and/or to 8529*** bug-libtool@gnu.org 8530 8531_LT_EOF 8532 fi ;; 8533 esac 8534 fi 8535 break 8536 fi 8537 done 8538 IFS="$lt_save_ifs" 8539 MAGIC_CMD="$lt_save_MAGIC_CMD" 8540 ;; 8541esac 8542fi 8543 8544MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8545if test -n "$MAGIC_CMD"; then 8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8547$as_echo "$MAGIC_CMD" >&6; } 8548else 8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8550$as_echo "no" >&6; } 8551fi 8552 8553 8554 8555 8556 8557if test -z "$lt_cv_path_MAGIC_CMD"; then 8558 if test -n "$ac_tool_prefix"; then 8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8560$as_echo_n "checking for file... " >&6; } 8561if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 8562 $as_echo_n "(cached) " >&6 8563else 8564 case $MAGIC_CMD in 8565[\\/*] | ?:[\\/]*) 8566 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8567 ;; 8568*) 8569 lt_save_MAGIC_CMD="$MAGIC_CMD" 8570 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8571 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8572 for ac_dir in $ac_dummy; do 8573 IFS="$lt_save_ifs" 8574 test -z "$ac_dir" && ac_dir=. 8575 if test -f $ac_dir/file; then 8576 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8577 if test -n "$file_magic_test_file"; then 8578 case $deplibs_check_method in 8579 "file_magic "*) 8580 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8581 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8582 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8583 $EGREP "$file_magic_regex" > /dev/null; then 8584 : 8585 else 8586 cat <<_LT_EOF 1>&2 8587 8588*** Warning: the command libtool uses to detect shared libraries, 8589*** $file_magic_cmd, produces output that libtool cannot recognize. 8590*** The result is that libtool may fail to recognize shared libraries 8591*** as such. This will affect the creation of libtool libraries that 8592*** depend on shared libraries, but programs linked with such libtool 8593*** libraries will work regardless of this problem. Nevertheless, you 8594*** may want to report the problem to your system manager and/or to 8595*** bug-libtool@gnu.org 8596 8597_LT_EOF 8598 fi ;; 8599 esac 8600 fi 8601 break 8602 fi 8603 done 8604 IFS="$lt_save_ifs" 8605 MAGIC_CMD="$lt_save_MAGIC_CMD" 8606 ;; 8607esac 8608fi 8609 8610MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8611if test -n "$MAGIC_CMD"; then 8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8613$as_echo "$MAGIC_CMD" >&6; } 8614else 8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8616$as_echo "no" >&6; } 8617fi 8618 8619 8620 else 8621 MAGIC_CMD=: 8622 fi 8623fi 8624 8625 fi 8626 ;; 8627esac 8628 8629# Use C for the default configuration in the libtool script 8630 8631lt_save_CC="$CC" 8632ac_ext=c 8633ac_cpp='$CPP $CPPFLAGS' 8634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8636ac_compiler_gnu=$ac_cv_c_compiler_gnu 8637 8638 8639# Source file extension for C test sources. 8640ac_ext=c 8641 8642# Object file extension for compiled C test sources. 8643objext=o 8644objext=$objext 8645 8646# Code to be used in simple compile tests 8647lt_simple_compile_test_code="int some_variable = 0;" 8648 8649# Code to be used in simple link tests 8650lt_simple_link_test_code='int main(){return(0);}' 8651 8652 8653 8654 8655 8656 8657 8658# If no C compiler was specified, use CC. 8659LTCC=${LTCC-"$CC"} 8660 8661# If no C compiler flags were specified, use CFLAGS. 8662LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8663 8664# Allow CC to be a program name with arguments. 8665compiler=$CC 8666 8667# Save the default compiler, since it gets overwritten when the other 8668# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8669compiler_DEFAULT=$CC 8670 8671# save warnings/boilerplate of simple test code 8672ac_outfile=conftest.$ac_objext 8673echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8674eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8675_lt_compiler_boilerplate=`cat conftest.err` 8676$RM conftest* 8677 8678ac_outfile=conftest.$ac_objext 8679echo "$lt_simple_link_test_code" >conftest.$ac_ext 8680eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8681_lt_linker_boilerplate=`cat conftest.err` 8682$RM -r conftest* 8683 8684 8685## CAVEAT EMPTOR: 8686## There is no encapsulation within the following macros, do not change 8687## the running order or otherwise move them around unless you know exactly 8688## what you are doing... 8689if test -n "$compiler"; then 8690 8691lt_prog_compiler_no_builtin_flag= 8692 8693if test "$GCC" = yes; then 8694 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 8695 8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8697$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8698if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 8699 $as_echo_n "(cached) " >&6 8700else 8701 lt_cv_prog_compiler_rtti_exceptions=no 8702 ac_outfile=conftest.$ac_objext 8703 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8704 lt_compiler_flag="-fno-rtti -fno-exceptions" 8705 # Insert the option either (1) after the last *FLAGS variable, or 8706 # (2) before a word containing "conftest.", or (3) at the end. 8707 # Note that $ac_compile itself does not contain backslashes and begins 8708 # with a dollar sign (not a hyphen), so the echo should work correctly. 8709 # The option is referenced via a variable to avoid confusing sed. 8710 lt_compile=`echo "$ac_compile" | $SED \ 8711 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8713 -e 's:$: $lt_compiler_flag:'` 8714 (eval echo "\"\$as_me:8714: $lt_compile\"" >&5) 8715 (eval "$lt_compile" 2>conftest.err) 8716 ac_status=$? 8717 cat conftest.err >&5 8718 echo "$as_me:8718: \$? = $ac_status" >&5 8719 if (exit $ac_status) && test -s "$ac_outfile"; then 8720 # The compiler can only warn and ignore the option if not recognized 8721 # So say no if there are warnings other than the usual output. 8722 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8723 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8724 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8725 lt_cv_prog_compiler_rtti_exceptions=yes 8726 fi 8727 fi 8728 $RM conftest* 8729 8730fi 8731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8732$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8733 8734if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8735 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8736else 8737 : 8738fi 8739 8740fi 8741 8742 8743 8744 8745 8746 8747 lt_prog_compiler_wl= 8748lt_prog_compiler_pic= 8749lt_prog_compiler_static= 8750 8751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8752$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8753 8754 if test "$GCC" = yes; then 8755 lt_prog_compiler_wl='-Wl,' 8756 lt_prog_compiler_static='-static' 8757 8758 case $host_os in 8759 aix*) 8760 # All AIX code is PIC. 8761 if test "$host_cpu" = ia64; then 8762 # AIX 5 now supports IA64 processor 8763 lt_prog_compiler_static='-Bstatic' 8764 fi 8765 ;; 8766 8767 amigaos*) 8768 case $host_cpu in 8769 powerpc) 8770 # see comment about AmigaOS4 .so support 8771 lt_prog_compiler_pic='-fPIC' 8772 ;; 8773 m68k) 8774 # FIXME: we need at least 68020 code to build shared libraries, but 8775 # adding the `-m68020' flag to GCC prevents building anything better, 8776 # like `-m68040'. 8777 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8778 ;; 8779 esac 8780 ;; 8781 8782 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8783 # PIC is the default for these OSes. 8784 ;; 8785 8786 mingw* | cygwin* | pw32* | os2* | cegcc*) 8787 # This hack is so that the source file can tell whether it is being 8788 # built for inclusion in a dll (and should export symbols for example). 8789 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8790 # (--disable-auto-import) libraries 8791 lt_prog_compiler_pic='-DDLL_EXPORT' 8792 ;; 8793 8794 darwin* | rhapsody*) 8795 # PIC is the default on this platform 8796 # Common symbols not allowed in MH_DYLIB files 8797 lt_prog_compiler_pic='-fno-common' 8798 ;; 8799 8800 hpux*) 8801 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8802 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8803 # sets the default TLS model and affects inlining. 8804 case $host_cpu in 8805 hppa*64*) 8806 # +Z the default 8807 ;; 8808 *) 8809 lt_prog_compiler_pic='-fPIC' 8810 ;; 8811 esac 8812 ;; 8813 8814 interix[3-9]*) 8815 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8816 # Instead, we relocate shared libraries at runtime. 8817 ;; 8818 8819 msdosdjgpp*) 8820 # Just because we use GCC doesn't mean we suddenly get shared libraries 8821 # on systems that don't support them. 8822 lt_prog_compiler_can_build_shared=no 8823 enable_shared=no 8824 ;; 8825 8826 *nto* | *qnx*) 8827 # QNX uses GNU C++, but need to define -shared option too, otherwise 8828 # it will coredump. 8829 lt_prog_compiler_pic='-fPIC -shared' 8830 ;; 8831 8832 sysv4*MP*) 8833 if test -d /usr/nec; then 8834 lt_prog_compiler_pic=-Kconform_pic 8835 fi 8836 ;; 8837 8838 *) 8839 lt_prog_compiler_pic='-fPIC' 8840 ;; 8841 esac 8842 else 8843 # PORTME Check for flag to pass linker flags through the system compiler. 8844 case $host_os in 8845 aix*) 8846 lt_prog_compiler_wl='-Wl,' 8847 if test "$host_cpu" = ia64; then 8848 # AIX 5 now supports IA64 processor 8849 lt_prog_compiler_static='-Bstatic' 8850 else 8851 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8852 fi 8853 ;; 8854 8855 mingw* | cygwin* | pw32* | os2* | cegcc*) 8856 # This hack is so that the source file can tell whether it is being 8857 # built for inclusion in a dll (and should export symbols for example). 8858 lt_prog_compiler_pic='-DDLL_EXPORT' 8859 ;; 8860 8861 hpux9* | hpux10* | hpux11*) 8862 lt_prog_compiler_wl='-Wl,' 8863 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8864 # not for PA HP-UX. 8865 case $host_cpu in 8866 hppa*64*|ia64*) 8867 # +Z the default 8868 ;; 8869 *) 8870 lt_prog_compiler_pic='+Z' 8871 ;; 8872 esac 8873 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8874 lt_prog_compiler_static='${wl}-a ${wl}archive' 8875 ;; 8876 8877 irix5* | irix6* | nonstopux*) 8878 lt_prog_compiler_wl='-Wl,' 8879 # PIC (with -KPIC) is the default. 8880 lt_prog_compiler_static='-non_shared' 8881 ;; 8882 8883 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8884 case $cc_basename in 8885 # old Intel for x86_64 which still supported -KPIC. 8886 ecc*) 8887 lt_prog_compiler_wl='-Wl,' 8888 lt_prog_compiler_pic='-KPIC' 8889 lt_prog_compiler_static='-static' 8890 ;; 8891 # icc used to be incompatible with GCC. 8892 # ICC 10 doesn't accept -KPIC any more. 8893 icc* | ifort*) 8894 lt_prog_compiler_wl='-Wl,' 8895 lt_prog_compiler_pic='-fPIC' 8896 lt_prog_compiler_static='-static' 8897 ;; 8898 # Lahey Fortran 8.1. 8899 lf95*) 8900 lt_prog_compiler_wl='-Wl,' 8901 lt_prog_compiler_pic='--shared' 8902 lt_prog_compiler_static='--static' 8903 ;; 8904 pgcc* | pgf77* | pgf90* | pgf95*) 8905 # Portland Group compilers (*not* the Pentium gcc compiler, 8906 # which looks to be a dead project) 8907 lt_prog_compiler_wl='-Wl,' 8908 lt_prog_compiler_pic='-fpic' 8909 lt_prog_compiler_static='-Bstatic' 8910 ;; 8911 ccc*) 8912 lt_prog_compiler_wl='-Wl,' 8913 # All Alpha code is PIC. 8914 lt_prog_compiler_static='-non_shared' 8915 ;; 8916 xl*) 8917 # IBM XL C 8.0/Fortran 10.1 on PPC 8918 lt_prog_compiler_wl='-Wl,' 8919 lt_prog_compiler_pic='-qpic' 8920 lt_prog_compiler_static='-qstaticlink' 8921 ;; 8922 *) 8923 case `$CC -V 2>&1 | sed 5q` in 8924 *Sun\ C*) 8925 # Sun C 5.9 8926 lt_prog_compiler_pic='-KPIC' 8927 lt_prog_compiler_static='-Bstatic' 8928 lt_prog_compiler_wl='-Wl,' 8929 ;; 8930 *Sun\ F*) 8931 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8932 lt_prog_compiler_pic='-KPIC' 8933 lt_prog_compiler_static='-Bstatic' 8934 lt_prog_compiler_wl='' 8935 ;; 8936 esac 8937 ;; 8938 esac 8939 ;; 8940 8941 newsos6) 8942 lt_prog_compiler_pic='-KPIC' 8943 lt_prog_compiler_static='-Bstatic' 8944 ;; 8945 8946 *nto* | *qnx*) 8947 # QNX uses GNU C++, but need to define -shared option too, otherwise 8948 # it will coredump. 8949 lt_prog_compiler_pic='-fPIC -shared' 8950 ;; 8951 8952 osf3* | osf4* | osf5*) 8953 lt_prog_compiler_wl='-Wl,' 8954 # All OSF/1 code is PIC. 8955 lt_prog_compiler_static='-non_shared' 8956 ;; 8957 8958 rdos*) 8959 lt_prog_compiler_static='-non_shared' 8960 ;; 8961 8962 solaris*) 8963 lt_prog_compiler_pic='-KPIC' 8964 lt_prog_compiler_static='-Bstatic' 8965 case $cc_basename in 8966 f77* | f90* | f95*) 8967 lt_prog_compiler_wl='-Qoption ld ';; 8968 *) 8969 lt_prog_compiler_wl='-Wl,';; 8970 esac 8971 ;; 8972 8973 sunos4*) 8974 lt_prog_compiler_wl='-Qoption ld ' 8975 lt_prog_compiler_pic='-PIC' 8976 lt_prog_compiler_static='-Bstatic' 8977 ;; 8978 8979 sysv4 | sysv4.2uw2* | sysv4.3*) 8980 lt_prog_compiler_wl='-Wl,' 8981 lt_prog_compiler_pic='-KPIC' 8982 lt_prog_compiler_static='-Bstatic' 8983 ;; 8984 8985 sysv4*MP*) 8986 if test -d /usr/nec ;then 8987 lt_prog_compiler_pic='-Kconform_pic' 8988 lt_prog_compiler_static='-Bstatic' 8989 fi 8990 ;; 8991 8992 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8993 lt_prog_compiler_wl='-Wl,' 8994 lt_prog_compiler_pic='-KPIC' 8995 lt_prog_compiler_static='-Bstatic' 8996 ;; 8997 8998 unicos*) 8999 lt_prog_compiler_wl='-Wl,' 9000 lt_prog_compiler_can_build_shared=no 9001 ;; 9002 9003 uts4*) 9004 lt_prog_compiler_pic='-pic' 9005 lt_prog_compiler_static='-Bstatic' 9006 ;; 9007 9008 *) 9009 lt_prog_compiler_can_build_shared=no 9010 ;; 9011 esac 9012 fi 9013 9014case $host_os in 9015 # For platforms which do not support PIC, -DPIC is meaningless: 9016 *djgpp*) 9017 lt_prog_compiler_pic= 9018 ;; 9019 *) 9020 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9021 ;; 9022esac 9023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 9024$as_echo "$lt_prog_compiler_pic" >&6; } 9025 9026 9027 9028 9029 9030 9031# 9032# Check to make sure the PIC flag actually works. 9033# 9034if test -n "$lt_prog_compiler_pic"; then 9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9036$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9037if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 9038 $as_echo_n "(cached) " >&6 9039else 9040 lt_cv_prog_compiler_pic_works=no 9041 ac_outfile=conftest.$ac_objext 9042 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9043 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9044 # Insert the option either (1) after the last *FLAGS variable, or 9045 # (2) before a word containing "conftest.", or (3) at the end. 9046 # Note that $ac_compile itself does not contain backslashes and begins 9047 # with a dollar sign (not a hyphen), so the echo should work correctly. 9048 # The option is referenced via a variable to avoid confusing sed. 9049 lt_compile=`echo "$ac_compile" | $SED \ 9050 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9051 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9052 -e 's:$: $lt_compiler_flag:'` 9053 (eval echo "\"\$as_me:9053: $lt_compile\"" >&5) 9054 (eval "$lt_compile" 2>conftest.err) 9055 ac_status=$? 9056 cat conftest.err >&5 9057 echo "$as_me:9057: \$? = $ac_status" >&5 9058 if (exit $ac_status) && test -s "$ac_outfile"; then 9059 # The compiler can only warn and ignore the option if not recognized 9060 # So say no if there are warnings other than the usual output. 9061 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 9062 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9063 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9064 lt_cv_prog_compiler_pic_works=yes 9065 fi 9066 fi 9067 $RM conftest* 9068 9069fi 9070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9071$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9072 9073if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9074 case $lt_prog_compiler_pic in 9075 "" | " "*) ;; 9076 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9077 esac 9078else 9079 lt_prog_compiler_pic= 9080 lt_prog_compiler_can_build_shared=no 9081fi 9082 9083fi 9084 9085 9086 9087 9088 9089 9090# 9091# Check to make sure the static flag actually works. 9092# 9093wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9095$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9096if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 9097 $as_echo_n "(cached) " >&6 9098else 9099 lt_cv_prog_compiler_static_works=no 9100 save_LDFLAGS="$LDFLAGS" 9101 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9102 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9103 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9104 # The linker can only warn and ignore the option if not recognized 9105 # So say no if there are warnings 9106 if test -s conftest.err; then 9107 # Append any errors to the config.log. 9108 cat conftest.err 1>&5 9109 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 9110 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9111 if diff conftest.exp conftest.er2 >/dev/null; then 9112 lt_cv_prog_compiler_static_works=yes 9113 fi 9114 else 9115 lt_cv_prog_compiler_static_works=yes 9116 fi 9117 fi 9118 $RM -r conftest* 9119 LDFLAGS="$save_LDFLAGS" 9120 9121fi 9122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9123$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9124 9125if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9126 : 9127else 9128 lt_prog_compiler_static= 9129fi 9130 9131 9132 9133 9134 9135 9136 9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9138$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9139if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 9140 $as_echo_n "(cached) " >&6 9141else 9142 lt_cv_prog_compiler_c_o=no 9143 $RM -r conftest 2>/dev/null 9144 mkdir conftest 9145 cd conftest 9146 mkdir out 9147 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9148 9149 lt_compiler_flag="-o out/conftest2.$ac_objext" 9150 # Insert the option either (1) after the last *FLAGS variable, or 9151 # (2) before a word containing "conftest.", or (3) at the end. 9152 # Note that $ac_compile itself does not contain backslashes and begins 9153 # with a dollar sign (not a hyphen), so the echo should work correctly. 9154 lt_compile=`echo "$ac_compile" | $SED \ 9155 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9156 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9157 -e 's:$: $lt_compiler_flag:'` 9158 (eval echo "\"\$as_me:9158: $lt_compile\"" >&5) 9159 (eval "$lt_compile" 2>out/conftest.err) 9160 ac_status=$? 9161 cat out/conftest.err >&5 9162 echo "$as_me:9162: \$? = $ac_status" >&5 9163 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9164 then 9165 # The compiler can only warn and ignore the option if not recognized 9166 # So say no if there are warnings 9167 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 9168 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9169 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9170 lt_cv_prog_compiler_c_o=yes 9171 fi 9172 fi 9173 chmod u+w . 2>&5 9174 $RM conftest* 9175 # SGI C++ compiler will create directory out/ii_files/ for 9176 # template instantiation 9177 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9178 $RM out/* && rmdir out 9179 cd .. 9180 $RM -r conftest 9181 $RM conftest* 9182 9183fi 9184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9185$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9186 9187 9188 9189 9190 9191 9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9193$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9194if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 9195 $as_echo_n "(cached) " >&6 9196else 9197 lt_cv_prog_compiler_c_o=no 9198 $RM -r conftest 2>/dev/null 9199 mkdir conftest 9200 cd conftest 9201 mkdir out 9202 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9203 9204 lt_compiler_flag="-o out/conftest2.$ac_objext" 9205 # Insert the option either (1) after the last *FLAGS variable, or 9206 # (2) before a word containing "conftest.", or (3) at the end. 9207 # Note that $ac_compile itself does not contain backslashes and begins 9208 # with a dollar sign (not a hyphen), so the echo should work correctly. 9209 lt_compile=`echo "$ac_compile" | $SED \ 9210 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9211 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9212 -e 's:$: $lt_compiler_flag:'` 9213 (eval echo "\"\$as_me:9213: $lt_compile\"" >&5) 9214 (eval "$lt_compile" 2>out/conftest.err) 9215 ac_status=$? 9216 cat out/conftest.err >&5 9217 echo "$as_me:9217: \$? = $ac_status" >&5 9218 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9219 then 9220 # The compiler can only warn and ignore the option if not recognized 9221 # So say no if there are warnings 9222 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 9223 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9224 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9225 lt_cv_prog_compiler_c_o=yes 9226 fi 9227 fi 9228 chmod u+w . 2>&5 9229 $RM conftest* 9230 # SGI C++ compiler will create directory out/ii_files/ for 9231 # template instantiation 9232 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9233 $RM out/* && rmdir out 9234 cd .. 9235 $RM -r conftest 9236 $RM conftest* 9237 9238fi 9239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9240$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9241 9242 9243 9244 9245hard_links="nottested" 9246if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9247 # do not overwrite the value of need_locks provided by the user 9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9249$as_echo_n "checking if we can lock with hard links... " >&6; } 9250 hard_links=yes 9251 $RM conftest* 9252 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9253 touch conftest.a 9254 ln conftest.a conftest.b 2>&5 || hard_links=no 9255 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9257$as_echo "$hard_links" >&6; } 9258 if test "$hard_links" = no; then 9259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9260$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9261 need_locks=warn 9262 fi 9263else 9264 need_locks=no 9265fi 9266 9267 9268 9269 9270 9271 9272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9273$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9274 9275 runpath_var= 9276 allow_undefined_flag= 9277 always_export_symbols=no 9278 archive_cmds= 9279 archive_expsym_cmds= 9280 compiler_needs_object=no 9281 enable_shared_with_static_runtimes=no 9282 export_dynamic_flag_spec= 9283 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9284 hardcode_automatic=no 9285 hardcode_direct=no 9286 hardcode_direct_absolute=no 9287 hardcode_libdir_flag_spec= 9288 hardcode_libdir_flag_spec_ld= 9289 hardcode_libdir_separator= 9290 hardcode_minus_L=no 9291 hardcode_shlibpath_var=unsupported 9292 inherit_rpath=no 9293 link_all_deplibs=unknown 9294 module_cmds= 9295 module_expsym_cmds= 9296 old_archive_from_new_cmds= 9297 old_archive_from_expsyms_cmds= 9298 thread_safe_flag_spec= 9299 whole_archive_flag_spec= 9300 # include_expsyms should be a list of space-separated symbols to be *always* 9301 # included in the symbol list 9302 include_expsyms= 9303 # exclude_expsyms can be an extended regexp of symbols to exclude 9304 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9305 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9306 # as well as any symbol that contains `d'. 9307 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9308 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9309 # platforms (ab)use it in PIC code, but their linkers get confused if 9310 # the symbol is explicitly referenced. Since portable code cannot 9311 # rely on this symbol name, it's probably fine to never include it in 9312 # preloaded symbol tables. 9313 # Exclude shared library initialization/finalization symbols. 9314 extract_expsyms_cmds= 9315 9316 case $host_os in 9317 cygwin* | mingw* | pw32* | cegcc*) 9318 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9319 # When not using gcc, we currently assume that we are using 9320 # Microsoft Visual C++. 9321 if test "$GCC" != yes; then 9322 with_gnu_ld=no 9323 fi 9324 ;; 9325 interix*) 9326 # we just hope/assume this is gcc and not c89 (= MSVC++) 9327 with_gnu_ld=yes 9328 ;; 9329 openbsd*) 9330 with_gnu_ld=no 9331 ;; 9332 linux* | k*bsd*-gnu) 9333 link_all_deplibs=no 9334 ;; 9335 esac 9336 9337 ld_shlibs=yes 9338 if test "$with_gnu_ld" = yes; then 9339 # If archive_cmds runs LD, not CC, wlarc should be empty 9340 wlarc='${wl}' 9341 9342 # Set some defaults for GNU ld with shared library support. These 9343 # are reset later if shared libraries are not supported. Putting them 9344 # here allows them to be overridden if necessary. 9345 runpath_var=LD_RUN_PATH 9346 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9347 export_dynamic_flag_spec='${wl}--export-dynamic' 9348 # ancient GNU ld didn't support --whole-archive et. al. 9349 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9350 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9351 else 9352 whole_archive_flag_spec= 9353 fi 9354 supports_anon_versioning=no 9355 case `$LD -v 2>&1` in 9356 *GNU\ gold*) supports_anon_versioning=yes ;; 9357 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9358 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9359 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9360 *\ 2.11.*) ;; # other 2.11 versions 9361 *) supports_anon_versioning=yes ;; 9362 esac 9363 9364 # See if GNU ld supports shared libraries. 9365 case $host_os in 9366 aix[3-9]*) 9367 # On AIX/PPC, the GNU linker is very broken 9368 if test "$host_cpu" != ia64; then 9369 ld_shlibs=no 9370 cat <<_LT_EOF 1>&2 9371 9372*** Warning: the GNU linker, at least up to release 2.9.1, is reported 9373*** to be unable to reliably create shared libraries on AIX. 9374*** Therefore, libtool is disabling shared libraries support. If you 9375*** really care for shared libraries, you may want to modify your PATH 9376*** so that a non-GNU linker is found, and then restart. 9377 9378_LT_EOF 9379 fi 9380 ;; 9381 9382 amigaos*) 9383 case $host_cpu in 9384 powerpc) 9385 # see comment about AmigaOS4 .so support 9386 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9387 archive_expsym_cmds='' 9388 ;; 9389 m68k) 9390 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)' 9391 hardcode_libdir_flag_spec='-L$libdir' 9392 hardcode_minus_L=yes 9393 ;; 9394 esac 9395 ;; 9396 9397 beos*) 9398 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9399 allow_undefined_flag=unsupported 9400 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9401 # support --undefined. This deserves some investigation. FIXME 9402 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9403 else 9404 ld_shlibs=no 9405 fi 9406 ;; 9407 9408 cygwin* | mingw* | pw32* | cegcc*) 9409 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9410 # as there is no search path for DLLs. 9411 hardcode_libdir_flag_spec='-L$libdir' 9412 allow_undefined_flag=unsupported 9413 always_export_symbols=no 9414 enable_shared_with_static_runtimes=yes 9415 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9416 9417 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9418 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9419 # If the export-symbols file already is a .def file (1st line 9420 # is EXPORTS), use it as is; otherwise, prepend... 9421 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9422 cp $export_symbols $output_objdir/$soname.def; 9423 else 9424 echo EXPORTS > $output_objdir/$soname.def; 9425 cat $export_symbols >> $output_objdir/$soname.def; 9426 fi~ 9427 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9428 else 9429 ld_shlibs=no 9430 fi 9431 ;; 9432 9433 interix[3-9]*) 9434 hardcode_direct=no 9435 hardcode_shlibpath_var=no 9436 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9437 export_dynamic_flag_spec='${wl}-E' 9438 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9439 # Instead, shared libraries are loaded at an image base (0x10000000 by 9440 # default) and relocated if they conflict, which is a slow very memory 9441 # consuming and fragmenting process. To avoid this, we pick a random, 9442 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9443 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9444 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9445 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' 9446 ;; 9447 9448 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9449 tmp_diet=no 9450 if test "$host_os" = linux-dietlibc; then 9451 case $cc_basename in 9452 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9453 esac 9454 fi 9455 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9456 && test "$tmp_diet" = no 9457 then 9458 tmp_addflag= 9459 tmp_sharedflag='-shared' 9460 case $cc_basename,$host_cpu in 9461 pgcc*) # Portland Group C compiler 9462 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 9463 tmp_addflag=' $pic_flag' 9464 ;; 9465 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 9466 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 9467 tmp_addflag=' $pic_flag -Mnomain' ;; 9468 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9469 tmp_addflag=' -i_dynamic' ;; 9470 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9471 tmp_addflag=' -i_dynamic -nofor_main' ;; 9472 ifc* | ifort*) # Intel Fortran compiler 9473 tmp_addflag=' -nofor_main' ;; 9474 lf95*) # Lahey Fortran 8.1 9475 whole_archive_flag_spec= 9476 tmp_sharedflag='--shared' ;; 9477 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9478 tmp_sharedflag='-qmkshrobj' 9479 tmp_addflag= ;; 9480 esac 9481 case `$CC -V 2>&1 | sed 5q` in 9482 *Sun\ C*) # Sun C 5.9 9483 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 9484 compiler_needs_object=yes 9485 tmp_sharedflag='-G' ;; 9486 *Sun\ F*) # Sun Fortran 8.3 9487 tmp_sharedflag='-G' ;; 9488 esac 9489 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9490 9491 if test "x$supports_anon_versioning" = xyes; then 9492 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9493 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9494 echo "local: *; };" >> $output_objdir/$libname.ver~ 9495 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9496 fi 9497 9498 case $cc_basename in 9499 xlf*) 9500 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9501 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9502 hardcode_libdir_flag_spec= 9503 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9504 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 9505 if test "x$supports_anon_versioning" = xyes; then 9506 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9507 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9508 echo "local: *; };" >> $output_objdir/$libname.ver~ 9509 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9510 fi 9511 ;; 9512 esac 9513 else 9514 ld_shlibs=no 9515 fi 9516 ;; 9517 9518 netbsd* | netbsdelf*-gnu) 9519 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9520 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9521 wlarc= 9522 else 9523 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9524 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9525 fi 9526 ;; 9527 9528 solaris*) 9529 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9530 ld_shlibs=no 9531 cat <<_LT_EOF 1>&2 9532 9533*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9534*** create shared libraries on Solaris systems. Therefore, libtool 9535*** is disabling shared libraries support. We urge you to upgrade GNU 9536*** binutils to release 2.9.1 or newer. Another option is to modify 9537*** your PATH or compiler configuration so that the native linker is 9538*** used, and then restart. 9539 9540_LT_EOF 9541 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9542 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9543 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9544 else 9545 ld_shlibs=no 9546 fi 9547 ;; 9548 9549 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9550 case `$LD -v 2>&1` in 9551 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9552 ld_shlibs=no 9553 cat <<_LT_EOF 1>&2 9554 9555*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9556*** reliably create shared libraries on SCO systems. Therefore, libtool 9557*** is disabling shared libraries support. We urge you to upgrade GNU 9558*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9559*** your PATH or compiler configuration so that the native linker is 9560*** used, and then restart. 9561 9562_LT_EOF 9563 ;; 9564 *) 9565 # For security reasons, it is highly recommended that you always 9566 # use absolute paths for naming shared libraries, and exclude the 9567 # DT_RUNPATH tag from executables and libraries. But doing so 9568 # requires that you compile everything twice, which is a pain. 9569 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9570 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9571 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9572 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9573 else 9574 ld_shlibs=no 9575 fi 9576 ;; 9577 esac 9578 ;; 9579 9580 sunos4*) 9581 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9582 wlarc= 9583 hardcode_direct=yes 9584 hardcode_shlibpath_var=no 9585 ;; 9586 9587 *) 9588 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9589 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9590 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9591 else 9592 ld_shlibs=no 9593 fi 9594 ;; 9595 esac 9596 9597 if test "$ld_shlibs" = no; then 9598 runpath_var= 9599 hardcode_libdir_flag_spec= 9600 export_dynamic_flag_spec= 9601 whole_archive_flag_spec= 9602 fi 9603 else 9604 # PORTME fill in a description of your system's linker (not GNU ld) 9605 case $host_os in 9606 aix3*) 9607 allow_undefined_flag=unsupported 9608 always_export_symbols=yes 9609 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' 9610 # Note: this linker hardcodes the directories in LIBPATH if there 9611 # are no directories specified by -L. 9612 hardcode_minus_L=yes 9613 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9614 # Neither direct hardcoding nor static linking is supported with a 9615 # broken collect2. 9616 hardcode_direct=unsupported 9617 fi 9618 ;; 9619 9620 aix[4-9]*) 9621 if test "$host_cpu" = ia64; then 9622 # On IA64, the linker does run time linking by default, so we don't 9623 # have to do anything special. 9624 aix_use_runtimelinking=no 9625 exp_sym_flag='-Bexport' 9626 no_entry_flag="" 9627 else 9628 # If we're using GNU nm, then we don't want the "-C" option. 9629 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9630 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9631 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9632 else 9633 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' 9634 fi 9635 aix_use_runtimelinking=no 9636 9637 # Test if we are trying to use run time linking or normal 9638 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9639 # need to do runtime linking. 9640 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9641 for ld_flag in $LDFLAGS; do 9642 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9643 aix_use_runtimelinking=yes 9644 break 9645 fi 9646 done 9647 ;; 9648 esac 9649 9650 exp_sym_flag='-bexport' 9651 no_entry_flag='-bnoentry' 9652 fi 9653 9654 # When large executables or shared objects are built, AIX ld can 9655 # have problems creating the table of contents. If linking a library 9656 # or program results in "error TOC overflow" add -mminimal-toc to 9657 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9658 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9659 9660 archive_cmds='' 9661 hardcode_direct=yes 9662 hardcode_direct_absolute=yes 9663 hardcode_libdir_separator=':' 9664 link_all_deplibs=yes 9665 file_list_spec='${wl}-f,' 9666 9667 if test "$GCC" = yes; then 9668 case $host_os in aix4.[012]|aix4.[012].*) 9669 # We only want to do this on AIX 4.2 and lower, the check 9670 # below for broken collect2 doesn't work under 4.3+ 9671 collect2name=`${CC} -print-prog-name=collect2` 9672 if test -f "$collect2name" && 9673 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9674 then 9675 # We have reworked collect2 9676 : 9677 else 9678 # We have old collect2 9679 hardcode_direct=unsupported 9680 # It fails to find uninstalled libraries when the uninstalled 9681 # path is not listed in the libpath. Setting hardcode_minus_L 9682 # to unsupported forces relinking 9683 hardcode_minus_L=yes 9684 hardcode_libdir_flag_spec='-L$libdir' 9685 hardcode_libdir_separator= 9686 fi 9687 ;; 9688 esac 9689 shared_flag='-shared' 9690 if test "$aix_use_runtimelinking" = yes; then 9691 shared_flag="$shared_flag "'${wl}-G' 9692 fi 9693 link_all_deplibs=no 9694 else 9695 # not using gcc 9696 if test "$host_cpu" = ia64; then 9697 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9698 # chokes on -Wl,-G. The following line is correct: 9699 shared_flag='-G' 9700 else 9701 if test "$aix_use_runtimelinking" = yes; then 9702 shared_flag='${wl}-G' 9703 else 9704 shared_flag='${wl}-bM:SRE' 9705 fi 9706 fi 9707 fi 9708 9709 export_dynamic_flag_spec='${wl}-bexpall' 9710 # It seems that -bexpall does not export symbols beginning with 9711 # underscore (_), so it is better to generate a list of symbols to export. 9712 always_export_symbols=yes 9713 if test "$aix_use_runtimelinking" = yes; then 9714 # Warning - without using the other runtime loading flags (-brtl), 9715 # -berok will link without error, but may produce a broken library. 9716 allow_undefined_flag='-berok' 9717 # Determine the default libpath from the value encoded in an 9718 # empty executable. 9719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9720/* end confdefs.h. */ 9721 9722int 9723main () 9724{ 9725 9726 ; 9727 return 0; 9728} 9729_ACEOF 9730if ac_fn_c_try_link "$LINENO"; then : 9731 9732lt_aix_libpath_sed=' 9733 /Import File Strings/,/^$/ { 9734 /^0/ { 9735 s/^0 *\(.*\)$/\1/ 9736 p 9737 } 9738 }' 9739aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9740# Check for a 64-bit object if we didn't find anything. 9741if test -z "$aix_libpath"; then 9742 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9743fi 9744fi 9745rm -f core conftest.err conftest.$ac_objext \ 9746 conftest$ac_exeext conftest.$ac_ext 9747if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9748 9749 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9750 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9751 else 9752 if test "$host_cpu" = ia64; then 9753 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9754 allow_undefined_flag="-z nodefs" 9755 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" 9756 else 9757 # Determine the default libpath from the value encoded in an 9758 # empty executable. 9759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9760/* end confdefs.h. */ 9761 9762int 9763main () 9764{ 9765 9766 ; 9767 return 0; 9768} 9769_ACEOF 9770if ac_fn_c_try_link "$LINENO"; then : 9771 9772lt_aix_libpath_sed=' 9773 /Import File Strings/,/^$/ { 9774 /^0/ { 9775 s/^0 *\(.*\)$/\1/ 9776 p 9777 } 9778 }' 9779aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9780# Check for a 64-bit object if we didn't find anything. 9781if test -z "$aix_libpath"; then 9782 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9783fi 9784fi 9785rm -f core conftest.err conftest.$ac_objext \ 9786 conftest$ac_exeext conftest.$ac_ext 9787if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9788 9789 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9790 # Warning - without using the other run time loading flags, 9791 # -berok will link without error, but may produce a broken library. 9792 no_undefined_flag=' ${wl}-bernotok' 9793 allow_undefined_flag=' ${wl}-berok' 9794 # Exported symbols can be pulled into shared objects from archives 9795 whole_archive_flag_spec='$convenience' 9796 archive_cmds_need_lc=yes 9797 # This is similar to how AIX traditionally builds its shared libraries. 9798 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' 9799 fi 9800 fi 9801 ;; 9802 9803 amigaos*) 9804 case $host_cpu in 9805 powerpc) 9806 # see comment about AmigaOS4 .so support 9807 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9808 archive_expsym_cmds='' 9809 ;; 9810 m68k) 9811 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)' 9812 hardcode_libdir_flag_spec='-L$libdir' 9813 hardcode_minus_L=yes 9814 ;; 9815 esac 9816 ;; 9817 9818 bsdi[45]*) 9819 export_dynamic_flag_spec=-rdynamic 9820 ;; 9821 9822 cygwin* | mingw* | pw32* | cegcc*) 9823 # When not using gcc, we currently assume that we are using 9824 # Microsoft Visual C++. 9825 # hardcode_libdir_flag_spec is actually meaningless, as there is 9826 # no search path for DLLs. 9827 hardcode_libdir_flag_spec=' ' 9828 allow_undefined_flag=unsupported 9829 # Tell ltmain to make .lib files, not .a files. 9830 libext=lib 9831 # Tell ltmain to make .dll files, not .so files. 9832 shrext_cmds=".dll" 9833 # FIXME: Setting linknames here is a bad hack. 9834 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 9835 # The linker will automatically build a .lib file if we build a DLL. 9836 old_archive_from_new_cmds='true' 9837 # FIXME: Should let the user specify the lib program. 9838 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9839 fix_srcfile_path='`cygpath -w "$srcfile"`' 9840 enable_shared_with_static_runtimes=yes 9841 ;; 9842 9843 darwin* | rhapsody*) 9844 9845 9846 archive_cmds_need_lc=no 9847 hardcode_direct=no 9848 hardcode_automatic=yes 9849 hardcode_shlibpath_var=unsupported 9850 whole_archive_flag_spec='' 9851 link_all_deplibs=yes 9852 allow_undefined_flag="$_lt_dar_allow_undefined" 9853 case $cc_basename in 9854 ifort*) _lt_dar_can_shared=yes ;; 9855 *) _lt_dar_can_shared=$GCC ;; 9856 esac 9857 if test "$_lt_dar_can_shared" = "yes"; then 9858 output_verbose_link_cmd=echo 9859 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9860 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9861 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}" 9862 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}" 9863 9864 else 9865 ld_shlibs=no 9866 fi 9867 9868 ;; 9869 9870 dgux*) 9871 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9872 hardcode_libdir_flag_spec='-L$libdir' 9873 hardcode_shlibpath_var=no 9874 ;; 9875 9876 freebsd1*) 9877 ld_shlibs=no 9878 ;; 9879 9880 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9881 # support. Future versions do this automatically, but an explicit c++rt0.o 9882 # does not break anything, and helps significantly (at the cost of a little 9883 # extra space). 9884 freebsd2.2*) 9885 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9886 hardcode_libdir_flag_spec='-R$libdir' 9887 hardcode_direct=yes 9888 hardcode_shlibpath_var=no 9889 ;; 9890 9891 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9892 freebsd2*) 9893 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9894 hardcode_direct=yes 9895 hardcode_minus_L=yes 9896 hardcode_shlibpath_var=no 9897 ;; 9898 9899 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9900 freebsd* | dragonfly*) 9901 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9902 hardcode_libdir_flag_spec='-R$libdir' 9903 hardcode_direct=yes 9904 hardcode_shlibpath_var=no 9905 ;; 9906 9907 hpux9*) 9908 if test "$GCC" = yes; then 9909 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9910 else 9911 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' 9912 fi 9913 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9914 hardcode_libdir_separator=: 9915 hardcode_direct=yes 9916 9917 # hardcode_minus_L: Not really in the search PATH, 9918 # but as the default location of the library. 9919 hardcode_minus_L=yes 9920 export_dynamic_flag_spec='${wl}-E' 9921 ;; 9922 9923 hpux10*) 9924 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9925 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9926 else 9927 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9928 fi 9929 if test "$with_gnu_ld" = no; then 9930 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9931 hardcode_libdir_flag_spec_ld='+b $libdir' 9932 hardcode_libdir_separator=: 9933 hardcode_direct=yes 9934 hardcode_direct_absolute=yes 9935 export_dynamic_flag_spec='${wl}-E' 9936 # hardcode_minus_L: Not really in the search PATH, 9937 # but as the default location of the library. 9938 hardcode_minus_L=yes 9939 fi 9940 ;; 9941 9942 hpux11*) 9943 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9944 case $host_cpu in 9945 hppa*64*) 9946 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9947 ;; 9948 ia64*) 9949 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9950 ;; 9951 *) 9952 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9953 ;; 9954 esac 9955 else 9956 case $host_cpu in 9957 hppa*64*) 9958 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9959 ;; 9960 ia64*) 9961 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9962 ;; 9963 *) 9964 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9965 ;; 9966 esac 9967 fi 9968 if test "$with_gnu_ld" = no; then 9969 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9970 hardcode_libdir_separator=: 9971 9972 case $host_cpu in 9973 hppa*64*|ia64*) 9974 hardcode_direct=no 9975 hardcode_shlibpath_var=no 9976 ;; 9977 *) 9978 hardcode_direct=yes 9979 hardcode_direct_absolute=yes 9980 export_dynamic_flag_spec='${wl}-E' 9981 9982 # hardcode_minus_L: Not really in the search PATH, 9983 # but as the default location of the library. 9984 hardcode_minus_L=yes 9985 ;; 9986 esac 9987 fi 9988 ;; 9989 9990 irix5* | irix6* | nonstopux*) 9991 if test "$GCC" = yes; then 9992 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9993 # Try to use the -exported_symbol ld option, if it does not 9994 # work, assume that -exports_file does not work either and 9995 # implicitly export all symbols. 9996 save_LDFLAGS="$LDFLAGS" 9997 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9999/* end confdefs.h. */ 10000int foo(void) {} 10001_ACEOF 10002if ac_fn_c_try_link "$LINENO"; then : 10003 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 10004 10005fi 10006rm -f core conftest.err conftest.$ac_objext \ 10007 conftest$ac_exeext conftest.$ac_ext 10008 LDFLAGS="$save_LDFLAGS" 10009 else 10010 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 10011 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 10012 fi 10013 archive_cmds_need_lc='no' 10014 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10015 hardcode_libdir_separator=: 10016 inherit_rpath=yes 10017 link_all_deplibs=yes 10018 ;; 10019 10020 netbsd* | netbsdelf*-gnu) 10021 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10022 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10023 else 10024 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10025 fi 10026 hardcode_libdir_flag_spec='-R$libdir' 10027 hardcode_direct=yes 10028 hardcode_shlibpath_var=no 10029 ;; 10030 10031 newsos6) 10032 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10033 hardcode_direct=yes 10034 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10035 hardcode_libdir_separator=: 10036 hardcode_shlibpath_var=no 10037 ;; 10038 10039 *nto* | *qnx*) 10040 ;; 10041 10042 openbsd*) 10043 if test -f /usr/libexec/ld.so; then 10044 hardcode_direct=yes 10045 hardcode_shlibpath_var=no 10046 hardcode_direct_absolute=yes 10047 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10048 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10049 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10050 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10051 export_dynamic_flag_spec='${wl}-E' 10052 else 10053 case $host_os in 10054 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10055 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10056 hardcode_libdir_flag_spec='-R$libdir' 10057 ;; 10058 *) 10059 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10060 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10061 ;; 10062 esac 10063 fi 10064 else 10065 ld_shlibs=no 10066 fi 10067 ;; 10068 10069 os2*) 10070 hardcode_libdir_flag_spec='-L$libdir' 10071 hardcode_minus_L=yes 10072 allow_undefined_flag=unsupported 10073 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' 10074 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10075 ;; 10076 10077 osf3*) 10078 if test "$GCC" = yes; then 10079 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10080 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10081 else 10082 allow_undefined_flag=' -expect_unresolved \*' 10083 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 10084 fi 10085 archive_cmds_need_lc='no' 10086 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10087 hardcode_libdir_separator=: 10088 ;; 10089 10090 osf4* | osf5*) # as osf3* with the addition of -msym flag 10091 if test "$GCC" = yes; then 10092 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10093 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10094 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10095 else 10096 allow_undefined_flag=' -expect_unresolved \*' 10097 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 10098 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~ 10099 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 10100 10101 # Both c and cxx compiler support -rpath directly 10102 hardcode_libdir_flag_spec='-rpath $libdir' 10103 fi 10104 archive_cmds_need_lc='no' 10105 hardcode_libdir_separator=: 10106 ;; 10107 10108 solaris*) 10109 no_undefined_flag=' -z defs' 10110 if test "$GCC" = yes; then 10111 wlarc='${wl}' 10112 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10113 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10114 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10115 else 10116 case `$CC -V 2>&1` in 10117 *"Compilers 5.0"*) 10118 wlarc='' 10119 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10120 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10121 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10122 ;; 10123 *) 10124 wlarc='${wl}' 10125 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10126 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10127 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10128 ;; 10129 esac 10130 fi 10131 hardcode_libdir_flag_spec='-R$libdir' 10132 hardcode_shlibpath_var=no 10133 case $host_os in 10134 solaris2.[0-5] | solaris2.[0-5].*) ;; 10135 *) 10136 # The compiler driver will combine and reorder linker options, 10137 # but understands `-z linker_flag'. GCC discards it without `$wl', 10138 # but is careful enough not to reorder. 10139 # Supported since Solaris 2.6 (maybe 2.5.1?) 10140 if test "$GCC" = yes; then 10141 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10142 else 10143 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10144 fi 10145 ;; 10146 esac 10147 link_all_deplibs=yes 10148 ;; 10149 10150 sunos4*) 10151 if test "x$host_vendor" = xsequent; then 10152 # Use $CC to link under sequent, because it throws in some extra .o 10153 # files that make .init and .fini sections work. 10154 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10155 else 10156 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10157 fi 10158 hardcode_libdir_flag_spec='-L$libdir' 10159 hardcode_direct=yes 10160 hardcode_minus_L=yes 10161 hardcode_shlibpath_var=no 10162 ;; 10163 10164 sysv4) 10165 case $host_vendor in 10166 sni) 10167 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10168 hardcode_direct=yes # is this really true??? 10169 ;; 10170 siemens) 10171 ## LD is ld it makes a PLAMLIB 10172 ## CC just makes a GrossModule. 10173 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10174 reload_cmds='$CC -r -o $output$reload_objs' 10175 hardcode_direct=no 10176 ;; 10177 motorola) 10178 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10179 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10180 ;; 10181 esac 10182 runpath_var='LD_RUN_PATH' 10183 hardcode_shlibpath_var=no 10184 ;; 10185 10186 sysv4.3*) 10187 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10188 hardcode_shlibpath_var=no 10189 export_dynamic_flag_spec='-Bexport' 10190 ;; 10191 10192 sysv4*MP*) 10193 if test -d /usr/nec; then 10194 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10195 hardcode_shlibpath_var=no 10196 runpath_var=LD_RUN_PATH 10197 hardcode_runpath_var=yes 10198 ld_shlibs=yes 10199 fi 10200 ;; 10201 10202 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10203 no_undefined_flag='${wl}-z,text' 10204 archive_cmds_need_lc=no 10205 hardcode_shlibpath_var=no 10206 runpath_var='LD_RUN_PATH' 10207 10208 if test "$GCC" = yes; then 10209 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10210 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10211 else 10212 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10213 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10214 fi 10215 ;; 10216 10217 sysv5* | sco3.2v5* | sco5v6*) 10218 # Note: We can NOT use -z defs as we might desire, because we do not 10219 # link with -lc, and that would cause any symbols used from libc to 10220 # always be unresolved, which means just about no library would 10221 # ever link correctly. If we're not using GNU ld we use -z text 10222 # though, which does catch some bad symbols but isn't as heavy-handed 10223 # as -z defs. 10224 no_undefined_flag='${wl}-z,text' 10225 allow_undefined_flag='${wl}-z,nodefs' 10226 archive_cmds_need_lc=no 10227 hardcode_shlibpath_var=no 10228 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10229 hardcode_libdir_separator=':' 10230 link_all_deplibs=yes 10231 export_dynamic_flag_spec='${wl}-Bexport' 10232 runpath_var='LD_RUN_PATH' 10233 10234 if test "$GCC" = yes; then 10235 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10236 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10237 else 10238 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10239 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10240 fi 10241 ;; 10242 10243 uts4*) 10244 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10245 hardcode_libdir_flag_spec='-L$libdir' 10246 hardcode_shlibpath_var=no 10247 ;; 10248 10249 *) 10250 ld_shlibs=no 10251 ;; 10252 esac 10253 10254 if test x$host_vendor = xsni; then 10255 case $host in 10256 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10257 export_dynamic_flag_spec='${wl}-Blargedynsym' 10258 ;; 10259 esac 10260 fi 10261 fi 10262 10263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10264$as_echo "$ld_shlibs" >&6; } 10265test "$ld_shlibs" = no && can_build_shared=no 10266 10267with_gnu_ld=$with_gnu_ld 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283# 10284# Do we need to explicitly link libc? 10285# 10286case "x$archive_cmds_need_lc" in 10287x|xyes) 10288 # Assume -lc should be added 10289 archive_cmds_need_lc=yes 10290 10291 if test "$enable_shared" = yes && test "$GCC" = yes; then 10292 case $archive_cmds in 10293 *'~'*) 10294 # FIXME: we may have to deal with multi-command sequences. 10295 ;; 10296 '$CC '*) 10297 # Test whether the compiler implicitly links with -lc since on some 10298 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10299 # to ld, don't add -lc before -lgcc. 10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10301$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10302 $RM conftest* 10303 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10304 10305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10306 (eval $ac_compile) 2>&5 10307 ac_status=$? 10308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10309 test $ac_status = 0; } 2>conftest.err; then 10310 soname=conftest 10311 lib=conftest 10312 libobjs=conftest.$ac_objext 10313 deplibs= 10314 wl=$lt_prog_compiler_wl 10315 pic_flag=$lt_prog_compiler_pic 10316 compiler_flags=-v 10317 linker_flags=-v 10318 verstring= 10319 output_objdir=. 10320 libname=conftest 10321 lt_save_allow_undefined_flag=$allow_undefined_flag 10322 allow_undefined_flag= 10323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10324 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10325 ac_status=$? 10326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10327 test $ac_status = 0; } 10328 then 10329 archive_cmds_need_lc=no 10330 else 10331 archive_cmds_need_lc=yes 10332 fi 10333 allow_undefined_flag=$lt_save_allow_undefined_flag 10334 else 10335 cat conftest.err 1>&5 10336 fi 10337 $RM conftest* 10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 10339$as_echo "$archive_cmds_need_lc" >&6; } 10340 ;; 10341 esac 10342 fi 10343 ;; 10344esac 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10503$as_echo_n "checking dynamic linker characteristics... " >&6; } 10504 10505if test "$GCC" = yes; then 10506 case $host_os in 10507 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10508 *) lt_awk_arg="/^libraries:/" ;; 10509 esac 10510 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10511 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 10512 # if the path contains ";" then we assume it to be the separator 10513 # otherwise default to the standard path separator (i.e. ":") - it is 10514 # assumed that no part of a normal pathname contains ";" but that should 10515 # okay in the real world where ";" in dirpaths is itself problematic. 10516 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 10517 else 10518 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10519 fi 10520 # Ok, now we have the path, separated by spaces, we can step through it 10521 # and add multilib dir if necessary. 10522 lt_tmp_lt_search_path_spec= 10523 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10524 for lt_sys_path in $lt_search_path_spec; do 10525 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10526 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10527 else 10528 test -d "$lt_sys_path" && \ 10529 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10530 fi 10531 done 10532 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 10533BEGIN {RS=" "; FS="/|\n";} { 10534 lt_foo=""; 10535 lt_count=0; 10536 for (lt_i = NF; lt_i > 0; lt_i--) { 10537 if ($lt_i != "" && $lt_i != ".") { 10538 if ($lt_i == "..") { 10539 lt_count++; 10540 } else { 10541 if (lt_count == 0) { 10542 lt_foo="/" $lt_i lt_foo; 10543 } else { 10544 lt_count--; 10545 } 10546 } 10547 } 10548 } 10549 if (lt_foo != "") { lt_freq[lt_foo]++; } 10550 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10551}'` 10552 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 10553else 10554 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10555fi 10556library_names_spec= 10557libname_spec='lib$name' 10558soname_spec= 10559shrext_cmds=".so" 10560postinstall_cmds= 10561postuninstall_cmds= 10562finish_cmds= 10563finish_eval= 10564shlibpath_var= 10565shlibpath_overrides_runpath=unknown 10566version_type=none 10567dynamic_linker="$host_os ld.so" 10568sys_lib_dlsearch_path_spec="/lib /usr/lib" 10569need_lib_prefix=unknown 10570hardcode_into_libs=no 10571 10572# when you set need_version to no, make sure it does not cause -set_version 10573# flags to be left without arguments 10574need_version=unknown 10575 10576case $host_os in 10577aix3*) 10578 version_type=linux 10579 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10580 shlibpath_var=LIBPATH 10581 10582 # AIX 3 has no versioning support, so we append a major version to the name. 10583 soname_spec='${libname}${release}${shared_ext}$major' 10584 ;; 10585 10586aix[4-9]*) 10587 version_type=linux 10588 need_lib_prefix=no 10589 need_version=no 10590 hardcode_into_libs=yes 10591 if test "$host_cpu" = ia64; then 10592 # AIX 5 supports IA64 10593 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10594 shlibpath_var=LD_LIBRARY_PATH 10595 else 10596 # With GCC up to 2.95.x, collect2 would create an import file 10597 # for dependence libraries. The import file would start with 10598 # the line `#! .'. This would cause the generated library to 10599 # depend on `.', always an invalid library. This was fixed in 10600 # development snapshots of GCC prior to 3.0. 10601 case $host_os in 10602 aix4 | aix4.[01] | aix4.[01].*) 10603 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10604 echo ' yes ' 10605 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10606 : 10607 else 10608 can_build_shared=no 10609 fi 10610 ;; 10611 esac 10612 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10613 # soname into executable. Probably we can add versioning support to 10614 # collect2, so additional links can be useful in future. 10615 if test "$aix_use_runtimelinking" = yes; then 10616 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10617 # instead of lib<name>.a to let people know that these are not 10618 # typical AIX shared libraries. 10619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10620 else 10621 # We preserve .a as extension for shared libraries through AIX4.2 10622 # and later when we are not doing run time linking. 10623 library_names_spec='${libname}${release}.a $libname.a' 10624 soname_spec='${libname}${release}${shared_ext}$major' 10625 fi 10626 shlibpath_var=LIBPATH 10627 fi 10628 ;; 10629 10630amigaos*) 10631 case $host_cpu in 10632 powerpc) 10633 # Since July 2007 AmigaOS4 officially supports .so libraries. 10634 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10636 ;; 10637 m68k) 10638 library_names_spec='$libname.ixlibrary $libname.a' 10639 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10640 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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' 10641 ;; 10642 esac 10643 ;; 10644 10645beos*) 10646 library_names_spec='${libname}${shared_ext}' 10647 dynamic_linker="$host_os ld.so" 10648 shlibpath_var=LIBRARY_PATH 10649 ;; 10650 10651bsdi[45]*) 10652 version_type=linux 10653 need_version=no 10654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10655 soname_spec='${libname}${release}${shared_ext}$major' 10656 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10657 shlibpath_var=LD_LIBRARY_PATH 10658 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10659 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10660 # the default ld.so.conf also contains /usr/contrib/lib and 10661 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10662 # libtool to hard-code these into programs 10663 ;; 10664 10665cygwin* | mingw* | pw32* | cegcc*) 10666 version_type=windows 10667 shrext_cmds=".dll" 10668 need_version=no 10669 need_lib_prefix=no 10670 10671 case $GCC,$host_os in 10672 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10673 library_names_spec='$libname.dll.a' 10674 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10675 postinstall_cmds='base_file=`basename \${file}`~ 10676 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10677 dldir=$destdir/`dirname \$dlpath`~ 10678 test -d \$dldir || mkdir -p \$dldir~ 10679 $install_prog $dir/$dlname \$dldir/$dlname~ 10680 chmod a+x \$dldir/$dlname~ 10681 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10682 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10683 fi' 10684 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10685 dlpath=$dir/\$dldll~ 10686 $RM \$dlpath' 10687 shlibpath_overrides_runpath=yes 10688 10689 case $host_os in 10690 cygwin*) 10691 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10692 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10693 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 10694 ;; 10695 mingw* | cegcc*) 10696 # MinGW DLLs use traditional 'lib' prefix 10697 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10698 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10699 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10700 # It is most probably a Windows format PATH printed by 10701 # mingw gcc, but we are running on Cygwin. Gcc prints its search 10702 # path with ; separators, and with drive letters. We can handle the 10703 # drive letters (cygwin fileutils understands them), so leave them, 10704 # especially as we might pass files found there to a mingw objdump, 10705 # which wouldn't understand a cygwinified path. Ahh. 10706 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10707 else 10708 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10709 fi 10710 ;; 10711 pw32*) 10712 # pw32 DLLs use 'pw' prefix rather than 'lib' 10713 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10714 ;; 10715 esac 10716 ;; 10717 10718 *) 10719 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10720 ;; 10721 esac 10722 dynamic_linker='Win32 ld.exe' 10723 # FIXME: first we should search . and the directory the executable is in 10724 shlibpath_var=PATH 10725 ;; 10726 10727darwin* | rhapsody*) 10728 dynamic_linker="$host_os dyld" 10729 version_type=darwin 10730 need_lib_prefix=no 10731 need_version=no 10732 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10733 soname_spec='${libname}${release}${major}$shared_ext' 10734 shlibpath_overrides_runpath=yes 10735 shlibpath_var=DYLD_LIBRARY_PATH 10736 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10737 10738 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10739 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10740 ;; 10741 10742dgux*) 10743 version_type=linux 10744 need_lib_prefix=no 10745 need_version=no 10746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10747 soname_spec='${libname}${release}${shared_ext}$major' 10748 shlibpath_var=LD_LIBRARY_PATH 10749 ;; 10750 10751freebsd1*) 10752 dynamic_linker=no 10753 ;; 10754 10755freebsd* | dragonfly*) 10756 # DragonFly does not have aout. When/if they implement a new 10757 # versioning mechanism, adjust this. 10758 if test -x /usr/bin/objformat; then 10759 objformat=`/usr/bin/objformat` 10760 else 10761 case $host_os in 10762 freebsd[123]*) objformat=aout ;; 10763 *) objformat=elf ;; 10764 esac 10765 fi 10766 version_type=freebsd-$objformat 10767 case $version_type in 10768 freebsd-elf*) 10769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10770 need_version=no 10771 need_lib_prefix=no 10772 ;; 10773 freebsd-*) 10774 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10775 need_version=yes 10776 ;; 10777 esac 10778 shlibpath_var=LD_LIBRARY_PATH 10779 case $host_os in 10780 freebsd2*) 10781 shlibpath_overrides_runpath=yes 10782 ;; 10783 freebsd3.[01]* | freebsdelf3.[01]*) 10784 shlibpath_overrides_runpath=yes 10785 hardcode_into_libs=yes 10786 ;; 10787 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10788 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10789 shlibpath_overrides_runpath=no 10790 hardcode_into_libs=yes 10791 ;; 10792 *) # from 4.6 on, and DragonFly 10793 shlibpath_overrides_runpath=yes 10794 hardcode_into_libs=yes 10795 ;; 10796 esac 10797 ;; 10798 10799gnu*) 10800 version_type=linux 10801 need_lib_prefix=no 10802 need_version=no 10803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10804 soname_spec='${libname}${release}${shared_ext}$major' 10805 shlibpath_var=LD_LIBRARY_PATH 10806 hardcode_into_libs=yes 10807 ;; 10808 10809hpux9* | hpux10* | hpux11*) 10810 # Give a soname corresponding to the major version so that dld.sl refuses to 10811 # link against other versions. 10812 version_type=sunos 10813 need_lib_prefix=no 10814 need_version=no 10815 case $host_cpu in 10816 ia64*) 10817 shrext_cmds='.so' 10818 hardcode_into_libs=yes 10819 dynamic_linker="$host_os dld.so" 10820 shlibpath_var=LD_LIBRARY_PATH 10821 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10823 soname_spec='${libname}${release}${shared_ext}$major' 10824 if test "X$HPUX_IA64_MODE" = X32; then 10825 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10826 else 10827 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10828 fi 10829 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10830 ;; 10831 hppa*64*) 10832 shrext_cmds='.sl' 10833 hardcode_into_libs=yes 10834 dynamic_linker="$host_os dld.sl" 10835 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10836 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10838 soname_spec='${libname}${release}${shared_ext}$major' 10839 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10840 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10841 ;; 10842 *) 10843 shrext_cmds='.sl' 10844 dynamic_linker="$host_os dld.sl" 10845 shlibpath_var=SHLIB_PATH 10846 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10848 soname_spec='${libname}${release}${shared_ext}$major' 10849 ;; 10850 esac 10851 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10852 postinstall_cmds='chmod 555 $lib' 10853 ;; 10854 10855interix[3-9]*) 10856 version_type=linux 10857 need_lib_prefix=no 10858 need_version=no 10859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10860 soname_spec='${libname}${release}${shared_ext}$major' 10861 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10862 shlibpath_var=LD_LIBRARY_PATH 10863 shlibpath_overrides_runpath=no 10864 hardcode_into_libs=yes 10865 ;; 10866 10867irix5* | irix6* | nonstopux*) 10868 case $host_os in 10869 nonstopux*) version_type=nonstopux ;; 10870 *) 10871 if test "$lt_cv_prog_gnu_ld" = yes; then 10872 version_type=linux 10873 else 10874 version_type=irix 10875 fi ;; 10876 esac 10877 need_lib_prefix=no 10878 need_version=no 10879 soname_spec='${libname}${release}${shared_ext}$major' 10880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10881 case $host_os in 10882 irix5* | nonstopux*) 10883 libsuff= shlibsuff= 10884 ;; 10885 *) 10886 case $LD in # libtool.m4 will add one of these switches to LD 10887 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10888 libsuff= shlibsuff= libmagic=32-bit;; 10889 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10890 libsuff=32 shlibsuff=N32 libmagic=N32;; 10891 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10892 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10893 *) libsuff= shlibsuff= libmagic=never-match;; 10894 esac 10895 ;; 10896 esac 10897 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10898 shlibpath_overrides_runpath=no 10899 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10900 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10901 hardcode_into_libs=yes 10902 ;; 10903 10904# No shared lib support for Linux oldld, aout, or coff. 10905linux*oldld* | linux*aout* | linux*coff*) 10906 dynamic_linker=no 10907 ;; 10908 10909# This must be Linux ELF. 10910linux* | k*bsd*-gnu | kopensolaris*-gnu) 10911 version_type=linux 10912 need_lib_prefix=no 10913 need_version=no 10914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10915 soname_spec='${libname}${release}${shared_ext}$major' 10916 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10917 shlibpath_var=LD_LIBRARY_PATH 10918 shlibpath_overrides_runpath=no 10919 # Some binutils ld are patched to set DT_RUNPATH 10920 save_LDFLAGS=$LDFLAGS 10921 save_libdir=$libdir 10922 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10923 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10925/* end confdefs.h. */ 10926 10927int 10928main () 10929{ 10930 10931 ; 10932 return 0; 10933} 10934_ACEOF 10935if ac_fn_c_try_link "$LINENO"; then : 10936 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10937 shlibpath_overrides_runpath=yes 10938fi 10939fi 10940rm -f core conftest.err conftest.$ac_objext \ 10941 conftest$ac_exeext conftest.$ac_ext 10942 LDFLAGS=$save_LDFLAGS 10943 libdir=$save_libdir 10944 10945 # This implies no fast_install, which is unacceptable. 10946 # Some rework will be needed to allow for fast_install 10947 # before this can be enabled. 10948 hardcode_into_libs=yes 10949 10950 # Append ld.so.conf contents to the search path 10951 if test -f /etc/ld.so.conf; then 10952 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;/^$/d' | tr '\n' ' '` 10953 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10954 fi 10955 10956 # We used to test for /lib/ld.so.1 and disable shared libraries on 10957 # powerpc, because MkLinux only supported shared libraries with the 10958 # GNU dynamic linker. Since this was broken with cross compilers, 10959 # most powerpc-linux boxes support dynamic linking these days and 10960 # people can always --disable-shared, the test was removed, and we 10961 # assume the GNU/Linux dynamic linker is in use. 10962 dynamic_linker='GNU/Linux ld.so' 10963 ;; 10964 10965netbsdelf*-gnu) 10966 version_type=linux 10967 need_lib_prefix=no 10968 need_version=no 10969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10970 soname_spec='${libname}${release}${shared_ext}$major' 10971 shlibpath_var=LD_LIBRARY_PATH 10972 shlibpath_overrides_runpath=no 10973 hardcode_into_libs=yes 10974 dynamic_linker='NetBSD ld.elf_so' 10975 ;; 10976 10977netbsd*) 10978 version_type=sunos 10979 need_lib_prefix=no 10980 need_version=no 10981 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10983 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10984 dynamic_linker='NetBSD (a.out) ld.so' 10985 else 10986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10987 soname_spec='${libname}${release}${shared_ext}$major' 10988 dynamic_linker='NetBSD ld.elf_so' 10989 fi 10990 shlibpath_var=LD_LIBRARY_PATH 10991 shlibpath_overrides_runpath=yes 10992 hardcode_into_libs=yes 10993 ;; 10994 10995newsos6) 10996 version_type=linux 10997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10998 shlibpath_var=LD_LIBRARY_PATH 10999 shlibpath_overrides_runpath=yes 11000 ;; 11001 11002*nto* | *qnx*) 11003 version_type=qnx 11004 need_lib_prefix=no 11005 need_version=no 11006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11007 soname_spec='${libname}${release}${shared_ext}$major' 11008 shlibpath_var=LD_LIBRARY_PATH 11009 shlibpath_overrides_runpath=no 11010 hardcode_into_libs=yes 11011 dynamic_linker='ldqnx.so' 11012 ;; 11013 11014openbsd*) 11015 version_type=sunos 11016 sys_lib_dlsearch_path_spec="/usr/lib" 11017 need_lib_prefix=no 11018 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11019 case $host_os in 11020 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11021 *) need_version=no ;; 11022 esac 11023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11024 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11025 shlibpath_var=LD_LIBRARY_PATH 11026 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11027 case $host_os in 11028 openbsd2.[89] | openbsd2.[89].*) 11029 shlibpath_overrides_runpath=no 11030 ;; 11031 *) 11032 shlibpath_overrides_runpath=yes 11033 ;; 11034 esac 11035 else 11036 shlibpath_overrides_runpath=yes 11037 fi 11038 ;; 11039 11040os2*) 11041 libname_spec='$name' 11042 shrext_cmds=".dll" 11043 need_lib_prefix=no 11044 library_names_spec='$libname${shared_ext} $libname.a' 11045 dynamic_linker='OS/2 ld.exe' 11046 shlibpath_var=LIBPATH 11047 ;; 11048 11049osf3* | osf4* | osf5*) 11050 version_type=osf 11051 need_lib_prefix=no 11052 need_version=no 11053 soname_spec='${libname}${release}${shared_ext}$major' 11054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11055 shlibpath_var=LD_LIBRARY_PATH 11056 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11057 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11058 ;; 11059 11060rdos*) 11061 dynamic_linker=no 11062 ;; 11063 11064solaris*) 11065 version_type=linux 11066 need_lib_prefix=no 11067 need_version=no 11068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11069 soname_spec='${libname}${release}${shared_ext}$major' 11070 shlibpath_var=LD_LIBRARY_PATH 11071 shlibpath_overrides_runpath=yes 11072 hardcode_into_libs=yes 11073 # ldd complains unless libraries are executable 11074 postinstall_cmds='chmod +x $lib' 11075 ;; 11076 11077sunos4*) 11078 version_type=sunos 11079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11080 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11081 shlibpath_var=LD_LIBRARY_PATH 11082 shlibpath_overrides_runpath=yes 11083 if test "$with_gnu_ld" = yes; then 11084 need_lib_prefix=no 11085 fi 11086 need_version=yes 11087 ;; 11088 11089sysv4 | sysv4.3*) 11090 version_type=linux 11091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11092 soname_spec='${libname}${release}${shared_ext}$major' 11093 shlibpath_var=LD_LIBRARY_PATH 11094 case $host_vendor in 11095 sni) 11096 shlibpath_overrides_runpath=no 11097 need_lib_prefix=no 11098 runpath_var=LD_RUN_PATH 11099 ;; 11100 siemens) 11101 need_lib_prefix=no 11102 ;; 11103 motorola) 11104 need_lib_prefix=no 11105 need_version=no 11106 shlibpath_overrides_runpath=no 11107 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11108 ;; 11109 esac 11110 ;; 11111 11112sysv4*MP*) 11113 if test -d /usr/nec ;then 11114 version_type=linux 11115 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11116 soname_spec='$libname${shared_ext}.$major' 11117 shlibpath_var=LD_LIBRARY_PATH 11118 fi 11119 ;; 11120 11121sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11122 version_type=freebsd-elf 11123 need_lib_prefix=no 11124 need_version=no 11125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11126 soname_spec='${libname}${release}${shared_ext}$major' 11127 shlibpath_var=LD_LIBRARY_PATH 11128 shlibpath_overrides_runpath=yes 11129 hardcode_into_libs=yes 11130 if test "$with_gnu_ld" = yes; then 11131 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11132 else 11133 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11134 case $host_os in 11135 sco3.2v5*) 11136 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11137 ;; 11138 esac 11139 fi 11140 sys_lib_dlsearch_path_spec='/usr/lib' 11141 ;; 11142 11143tpf*) 11144 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11145 version_type=linux 11146 need_lib_prefix=no 11147 need_version=no 11148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11149 shlibpath_var=LD_LIBRARY_PATH 11150 shlibpath_overrides_runpath=no 11151 hardcode_into_libs=yes 11152 ;; 11153 11154uts4*) 11155 version_type=linux 11156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11157 soname_spec='${libname}${release}${shared_ext}$major' 11158 shlibpath_var=LD_LIBRARY_PATH 11159 ;; 11160 11161*) 11162 dynamic_linker=no 11163 ;; 11164esac 11165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11166$as_echo "$dynamic_linker" >&6; } 11167test "$dynamic_linker" = no && can_build_shared=no 11168 11169variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11170if test "$GCC" = yes; then 11171 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11172fi 11173 11174if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11175 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11176fi 11177if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11178 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11179fi 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11268$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11269hardcode_action= 11270if test -n "$hardcode_libdir_flag_spec" || 11271 test -n "$runpath_var" || 11272 test "X$hardcode_automatic" = "Xyes" ; then 11273 11274 # We can hardcode non-existent directories. 11275 if test "$hardcode_direct" != no && 11276 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11277 # have to relink, otherwise we might link with an installed library 11278 # when we should be linking with a yet-to-be-installed one 11279 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11280 test "$hardcode_minus_L" != no; then 11281 # Linking always hardcodes the temporary library directory. 11282 hardcode_action=relink 11283 else 11284 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11285 hardcode_action=immediate 11286 fi 11287else 11288 # We cannot hardcode anything, or else we can only hardcode existing 11289 # directories. 11290 hardcode_action=unsupported 11291fi 11292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11293$as_echo "$hardcode_action" >&6; } 11294 11295if test "$hardcode_action" = relink || 11296 test "$inherit_rpath" = yes; then 11297 # Fast installation is not supported 11298 enable_fast_install=no 11299elif test "$shlibpath_overrides_runpath" = yes || 11300 test "$enable_shared" = no; then 11301 # Fast installation is not necessary 11302 enable_fast_install=needless 11303fi 11304 11305 11306 11307 11308 11309 11310 if test "x$enable_dlopen" != xyes; then 11311 enable_dlopen=unknown 11312 enable_dlopen_self=unknown 11313 enable_dlopen_self_static=unknown 11314else 11315 lt_cv_dlopen=no 11316 lt_cv_dlopen_libs= 11317 11318 case $host_os in 11319 beos*) 11320 lt_cv_dlopen="load_add_on" 11321 lt_cv_dlopen_libs= 11322 lt_cv_dlopen_self=yes 11323 ;; 11324 11325 mingw* | pw32* | cegcc*) 11326 lt_cv_dlopen="LoadLibrary" 11327 lt_cv_dlopen_libs= 11328 ;; 11329 11330 cygwin*) 11331 lt_cv_dlopen="dlopen" 11332 lt_cv_dlopen_libs= 11333 ;; 11334 11335 darwin*) 11336 # if libdl is installed we need to link against it 11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11338$as_echo_n "checking for dlopen in -ldl... " >&6; } 11339if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 11340 $as_echo_n "(cached) " >&6 11341else 11342 ac_check_lib_save_LIBS=$LIBS 11343LIBS="-ldl $LIBS" 11344cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11345/* end confdefs.h. */ 11346 11347/* Override any GCC internal prototype to avoid an error. 11348 Use char because int might match the return type of a GCC 11349 builtin and then its argument prototype would still apply. */ 11350#ifdef __cplusplus 11351extern "C" 11352#endif 11353char dlopen (); 11354int 11355main () 11356{ 11357return dlopen (); 11358 ; 11359 return 0; 11360} 11361_ACEOF 11362if ac_fn_c_try_link "$LINENO"; then : 11363 ac_cv_lib_dl_dlopen=yes 11364else 11365 ac_cv_lib_dl_dlopen=no 11366fi 11367rm -f core conftest.err conftest.$ac_objext \ 11368 conftest$ac_exeext conftest.$ac_ext 11369LIBS=$ac_check_lib_save_LIBS 11370fi 11371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11372$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11373if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 11374 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11375else 11376 11377 lt_cv_dlopen="dyld" 11378 lt_cv_dlopen_libs= 11379 lt_cv_dlopen_self=yes 11380 11381fi 11382 11383 ;; 11384 11385 *) 11386 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11387if test "x$ac_cv_func_shl_load" = x""yes; then : 11388 lt_cv_dlopen="shl_load" 11389else 11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11391$as_echo_n "checking for shl_load in -ldld... " >&6; } 11392if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 11393 $as_echo_n "(cached) " >&6 11394else 11395 ac_check_lib_save_LIBS=$LIBS 11396LIBS="-ldld $LIBS" 11397cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11398/* end confdefs.h. */ 11399 11400/* Override any GCC internal prototype to avoid an error. 11401 Use char because int might match the return type of a GCC 11402 builtin and then its argument prototype would still apply. */ 11403#ifdef __cplusplus 11404extern "C" 11405#endif 11406char shl_load (); 11407int 11408main () 11409{ 11410return shl_load (); 11411 ; 11412 return 0; 11413} 11414_ACEOF 11415if ac_fn_c_try_link "$LINENO"; then : 11416 ac_cv_lib_dld_shl_load=yes 11417else 11418 ac_cv_lib_dld_shl_load=no 11419fi 11420rm -f core conftest.err conftest.$ac_objext \ 11421 conftest$ac_exeext conftest.$ac_ext 11422LIBS=$ac_check_lib_save_LIBS 11423fi 11424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11425$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11426if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 11427 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11428else 11429 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11430if test "x$ac_cv_func_dlopen" = x""yes; then : 11431 lt_cv_dlopen="dlopen" 11432else 11433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11434$as_echo_n "checking for dlopen in -ldl... " >&6; } 11435if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 11436 $as_echo_n "(cached) " >&6 11437else 11438 ac_check_lib_save_LIBS=$LIBS 11439LIBS="-ldl $LIBS" 11440cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11441/* end confdefs.h. */ 11442 11443/* Override any GCC internal prototype to avoid an error. 11444 Use char because int might match the return type of a GCC 11445 builtin and then its argument prototype would still apply. */ 11446#ifdef __cplusplus 11447extern "C" 11448#endif 11449char dlopen (); 11450int 11451main () 11452{ 11453return dlopen (); 11454 ; 11455 return 0; 11456} 11457_ACEOF 11458if ac_fn_c_try_link "$LINENO"; then : 11459 ac_cv_lib_dl_dlopen=yes 11460else 11461 ac_cv_lib_dl_dlopen=no 11462fi 11463rm -f core conftest.err conftest.$ac_objext \ 11464 conftest$ac_exeext conftest.$ac_ext 11465LIBS=$ac_check_lib_save_LIBS 11466fi 11467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11468$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11469if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 11470 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11471else 11472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11473$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11474if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 11475 $as_echo_n "(cached) " >&6 11476else 11477 ac_check_lib_save_LIBS=$LIBS 11478LIBS="-lsvld $LIBS" 11479cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11480/* end confdefs.h. */ 11481 11482/* Override any GCC internal prototype to avoid an error. 11483 Use char because int might match the return type of a GCC 11484 builtin and then its argument prototype would still apply. */ 11485#ifdef __cplusplus 11486extern "C" 11487#endif 11488char dlopen (); 11489int 11490main () 11491{ 11492return dlopen (); 11493 ; 11494 return 0; 11495} 11496_ACEOF 11497if ac_fn_c_try_link "$LINENO"; then : 11498 ac_cv_lib_svld_dlopen=yes 11499else 11500 ac_cv_lib_svld_dlopen=no 11501fi 11502rm -f core conftest.err conftest.$ac_objext \ 11503 conftest$ac_exeext conftest.$ac_ext 11504LIBS=$ac_check_lib_save_LIBS 11505fi 11506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11507$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11508if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 11509 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11510else 11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11512$as_echo_n "checking for dld_link in -ldld... " >&6; } 11513if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 11514 $as_echo_n "(cached) " >&6 11515else 11516 ac_check_lib_save_LIBS=$LIBS 11517LIBS="-ldld $LIBS" 11518cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11519/* end confdefs.h. */ 11520 11521/* Override any GCC internal prototype to avoid an error. 11522 Use char because int might match the return type of a GCC 11523 builtin and then its argument prototype would still apply. */ 11524#ifdef __cplusplus 11525extern "C" 11526#endif 11527char dld_link (); 11528int 11529main () 11530{ 11531return dld_link (); 11532 ; 11533 return 0; 11534} 11535_ACEOF 11536if ac_fn_c_try_link "$LINENO"; then : 11537 ac_cv_lib_dld_dld_link=yes 11538else 11539 ac_cv_lib_dld_dld_link=no 11540fi 11541rm -f core conftest.err conftest.$ac_objext \ 11542 conftest$ac_exeext conftest.$ac_ext 11543LIBS=$ac_check_lib_save_LIBS 11544fi 11545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11546$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11547if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 11548 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11549fi 11550 11551 11552fi 11553 11554 11555fi 11556 11557 11558fi 11559 11560 11561fi 11562 11563 11564fi 11565 11566 ;; 11567 esac 11568 11569 if test "x$lt_cv_dlopen" != xno; then 11570 enable_dlopen=yes 11571 else 11572 enable_dlopen=no 11573 fi 11574 11575 case $lt_cv_dlopen in 11576 dlopen) 11577 save_CPPFLAGS="$CPPFLAGS" 11578 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11579 11580 save_LDFLAGS="$LDFLAGS" 11581 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11582 11583 save_LIBS="$LIBS" 11584 LIBS="$lt_cv_dlopen_libs $LIBS" 11585 11586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11587$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11588if test "${lt_cv_dlopen_self+set}" = set; then : 11589 $as_echo_n "(cached) " >&6 11590else 11591 if test "$cross_compiling" = yes; then : 11592 lt_cv_dlopen_self=cross 11593else 11594 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11595 lt_status=$lt_dlunknown 11596 cat > conftest.$ac_ext <<_LT_EOF 11597#line 11597 "configure" 11598#include "confdefs.h" 11599 11600#if HAVE_DLFCN_H 11601#include <dlfcn.h> 11602#endif 11603 11604#include <stdio.h> 11605 11606#ifdef RTLD_GLOBAL 11607# define LT_DLGLOBAL RTLD_GLOBAL 11608#else 11609# ifdef DL_GLOBAL 11610# define LT_DLGLOBAL DL_GLOBAL 11611# else 11612# define LT_DLGLOBAL 0 11613# endif 11614#endif 11615 11616/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11617 find out it does not work in some platform. */ 11618#ifndef LT_DLLAZY_OR_NOW 11619# ifdef RTLD_LAZY 11620# define LT_DLLAZY_OR_NOW RTLD_LAZY 11621# else 11622# ifdef DL_LAZY 11623# define LT_DLLAZY_OR_NOW DL_LAZY 11624# else 11625# ifdef RTLD_NOW 11626# define LT_DLLAZY_OR_NOW RTLD_NOW 11627# else 11628# ifdef DL_NOW 11629# define LT_DLLAZY_OR_NOW DL_NOW 11630# else 11631# define LT_DLLAZY_OR_NOW 0 11632# endif 11633# endif 11634# endif 11635# endif 11636#endif 11637 11638void fnord() { int i=42;} 11639int main () 11640{ 11641 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11642 int status = $lt_dlunknown; 11643 11644 if (self) 11645 { 11646 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11647 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11648 /* dlclose (self); */ 11649 } 11650 else 11651 puts (dlerror ()); 11652 11653 return status; 11654} 11655_LT_EOF 11656 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11657 (eval $ac_link) 2>&5 11658 ac_status=$? 11659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11660 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11661 (./conftest; exit; ) >&5 2>/dev/null 11662 lt_status=$? 11663 case x$lt_status in 11664 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11665 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11666 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11667 esac 11668 else : 11669 # compilation failed 11670 lt_cv_dlopen_self=no 11671 fi 11672fi 11673rm -fr conftest* 11674 11675 11676fi 11677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11678$as_echo "$lt_cv_dlopen_self" >&6; } 11679 11680 if test "x$lt_cv_dlopen_self" = xyes; then 11681 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11683$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11684if test "${lt_cv_dlopen_self_static+set}" = set; then : 11685 $as_echo_n "(cached) " >&6 11686else 11687 if test "$cross_compiling" = yes; then : 11688 lt_cv_dlopen_self_static=cross 11689else 11690 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11691 lt_status=$lt_dlunknown 11692 cat > conftest.$ac_ext <<_LT_EOF 11693#line 11693 "configure" 11694#include "confdefs.h" 11695 11696#if HAVE_DLFCN_H 11697#include <dlfcn.h> 11698#endif 11699 11700#include <stdio.h> 11701 11702#ifdef RTLD_GLOBAL 11703# define LT_DLGLOBAL RTLD_GLOBAL 11704#else 11705# ifdef DL_GLOBAL 11706# define LT_DLGLOBAL DL_GLOBAL 11707# else 11708# define LT_DLGLOBAL 0 11709# endif 11710#endif 11711 11712/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11713 find out it does not work in some platform. */ 11714#ifndef LT_DLLAZY_OR_NOW 11715# ifdef RTLD_LAZY 11716# define LT_DLLAZY_OR_NOW RTLD_LAZY 11717# else 11718# ifdef DL_LAZY 11719# define LT_DLLAZY_OR_NOW DL_LAZY 11720# else 11721# ifdef RTLD_NOW 11722# define LT_DLLAZY_OR_NOW RTLD_NOW 11723# else 11724# ifdef DL_NOW 11725# define LT_DLLAZY_OR_NOW DL_NOW 11726# else 11727# define LT_DLLAZY_OR_NOW 0 11728# endif 11729# endif 11730# endif 11731# endif 11732#endif 11733 11734void fnord() { int i=42;} 11735int main () 11736{ 11737 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11738 int status = $lt_dlunknown; 11739 11740 if (self) 11741 { 11742 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11743 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11744 /* dlclose (self); */ 11745 } 11746 else 11747 puts (dlerror ()); 11748 11749 return status; 11750} 11751_LT_EOF 11752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11753 (eval $ac_link) 2>&5 11754 ac_status=$? 11755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11756 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11757 (./conftest; exit; ) >&5 2>/dev/null 11758 lt_status=$? 11759 case x$lt_status in 11760 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11761 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11762 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11763 esac 11764 else : 11765 # compilation failed 11766 lt_cv_dlopen_self_static=no 11767 fi 11768fi 11769rm -fr conftest* 11770 11771 11772fi 11773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11774$as_echo "$lt_cv_dlopen_self_static" >&6; } 11775 fi 11776 11777 CPPFLAGS="$save_CPPFLAGS" 11778 LDFLAGS="$save_LDFLAGS" 11779 LIBS="$save_LIBS" 11780 ;; 11781 esac 11782 11783 case $lt_cv_dlopen_self in 11784 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11785 *) enable_dlopen_self=unknown ;; 11786 esac 11787 11788 case $lt_cv_dlopen_self_static in 11789 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11790 *) enable_dlopen_self_static=unknown ;; 11791 esac 11792fi 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810striplib= 11811old_striplib= 11812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11813$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11814if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11815 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11816 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11818$as_echo "yes" >&6; } 11819else 11820# FIXME - insert some real tests, host_os isn't really good enough 11821 case $host_os in 11822 darwin*) 11823 if test -n "$STRIP" ; then 11824 striplib="$STRIP -x" 11825 old_striplib="$STRIP -S" 11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11827$as_echo "yes" >&6; } 11828 else 11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11830$as_echo "no" >&6; } 11831 fi 11832 ;; 11833 *) 11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11835$as_echo "no" >&6; } 11836 ;; 11837 esac 11838fi 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 # Report which library types will actually be built 11852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11853$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11855$as_echo "$can_build_shared" >&6; } 11856 11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11858$as_echo_n "checking whether to build shared libraries... " >&6; } 11859 test "$can_build_shared" = "no" && enable_shared=no 11860 11861 # On AIX, shared libraries and static libraries use the same namespace, and 11862 # are all built from PIC. 11863 case $host_os in 11864 aix3*) 11865 test "$enable_shared" = yes && enable_static=no 11866 if test -n "$RANLIB"; then 11867 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11868 postinstall_cmds='$RANLIB $lib' 11869 fi 11870 ;; 11871 11872 aix[4-9]*) 11873 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11874 test "$enable_shared" = yes && enable_static=no 11875 fi 11876 ;; 11877 esac 11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11879$as_echo "$enable_shared" >&6; } 11880 11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11882$as_echo_n "checking whether to build static libraries... " >&6; } 11883 # Make sure either enable_shared or enable_static is yes. 11884 test "$enable_shared" = yes || enable_static=yes 11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11886$as_echo "$enable_static" >&6; } 11887 11888 11889 11890 11891fi 11892ac_ext=c 11893ac_cpp='$CPP $CPPFLAGS' 11894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11896ac_compiler_gnu=$ac_cv_c_compiler_gnu 11897 11898CC="$lt_save_CC" 11899 11900 11901ac_ext=cpp 11902ac_cpp='$CXXCPP $CPPFLAGS' 11903ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11904ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11905ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11906 11907archive_cmds_need_lc_CXX=no 11908allow_undefined_flag_CXX= 11909always_export_symbols_CXX=no 11910archive_expsym_cmds_CXX= 11911compiler_needs_object_CXX=no 11912export_dynamic_flag_spec_CXX= 11913hardcode_direct_CXX=no 11914hardcode_direct_absolute_CXX=no 11915hardcode_libdir_flag_spec_CXX= 11916hardcode_libdir_flag_spec_ld_CXX= 11917hardcode_libdir_separator_CXX= 11918hardcode_minus_L_CXX=no 11919hardcode_shlibpath_var_CXX=unsupported 11920hardcode_automatic_CXX=no 11921inherit_rpath_CXX=no 11922module_cmds_CXX= 11923module_expsym_cmds_CXX= 11924link_all_deplibs_CXX=unknown 11925old_archive_cmds_CXX=$old_archive_cmds 11926no_undefined_flag_CXX= 11927whole_archive_flag_spec_CXX= 11928enable_shared_with_static_runtimes_CXX=no 11929 11930# Source file extension for C++ test sources. 11931ac_ext=cpp 11932 11933# Object file extension for compiled C++ test sources. 11934objext=o 11935objext_CXX=$objext 11936 11937# No sense in running all these tests if we already determined that 11938# the CXX compiler isn't working. Some variables (like enable_shared) 11939# are currently assumed to apply to all compilers on this platform, 11940# and will be corrupted by setting them based on a non-working compiler. 11941if test "$_lt_caught_CXX_error" != yes; then 11942 # Code to be used in simple compile tests 11943 lt_simple_compile_test_code="int some_variable = 0;" 11944 11945 # Code to be used in simple link tests 11946 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11947 11948 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 11949 11950 11951 11952 11953 11954 11955# If no C compiler was specified, use CC. 11956LTCC=${LTCC-"$CC"} 11957 11958# If no C compiler flags were specified, use CFLAGS. 11959LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11960 11961# Allow CC to be a program name with arguments. 11962compiler=$CC 11963 11964 11965 # save warnings/boilerplate of simple test code 11966 ac_outfile=conftest.$ac_objext 11967echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11968eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11969_lt_compiler_boilerplate=`cat conftest.err` 11970$RM conftest* 11971 11972 ac_outfile=conftest.$ac_objext 11973echo "$lt_simple_link_test_code" >conftest.$ac_ext 11974eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11975_lt_linker_boilerplate=`cat conftest.err` 11976$RM -r conftest* 11977 11978 11979 # Allow CC to be a program name with arguments. 11980 lt_save_CC=$CC 11981 lt_save_LD=$LD 11982 lt_save_GCC=$GCC 11983 GCC=$GXX 11984 lt_save_with_gnu_ld=$with_gnu_ld 11985 lt_save_path_LD=$lt_cv_path_LD 11986 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11987 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11988 else 11989 $as_unset lt_cv_prog_gnu_ld 11990 fi 11991 if test -n "${lt_cv_path_LDCXX+set}"; then 11992 lt_cv_path_LD=$lt_cv_path_LDCXX 11993 else 11994 $as_unset lt_cv_path_LD 11995 fi 11996 test -z "${LDCXX+set}" || LD=$LDCXX 11997 CC=${CXX-"c++"} 11998 compiler=$CC 11999 compiler_CXX=$CC 12000 for cc_temp in $compiler""; do 12001 case $cc_temp in 12002 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12003 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12004 \-*) ;; 12005 *) break;; 12006 esac 12007done 12008cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 12009 12010 12011 if test -n "$compiler"; then 12012 # We don't want -fno-exception when compiling C++ code, so set the 12013 # no_builtin_flag separately 12014 if test "$GXX" = yes; then 12015 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12016 else 12017 lt_prog_compiler_no_builtin_flag_CXX= 12018 fi 12019 12020 if test "$GXX" = yes; then 12021 # Set up default GNU C++ configuration 12022 12023 12024 12025# Check whether --with-gnu-ld was given. 12026if test "${with_gnu_ld+set}" = set; then : 12027 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12028else 12029 with_gnu_ld=no 12030fi 12031 12032ac_prog=ld 12033if test "$GCC" = yes; then 12034 # Check if gcc -print-prog-name=ld gives a path. 12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12036$as_echo_n "checking for ld used by $CC... " >&6; } 12037 case $host in 12038 *-*-mingw*) 12039 # gcc leaves a trailing carriage return which upsets mingw 12040 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12041 *) 12042 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12043 esac 12044 case $ac_prog in 12045 # Accept absolute paths. 12046 [\\/]* | ?:[\\/]*) 12047 re_direlt='/[^/][^/]*/\.\./' 12048 # Canonicalize the pathname of ld 12049 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12050 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12051 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12052 done 12053 test -z "$LD" && LD="$ac_prog" 12054 ;; 12055 "") 12056 # If it fails, then pretend we aren't using GCC. 12057 ac_prog=ld 12058 ;; 12059 *) 12060 # If it is relative, then search for the first ld in PATH. 12061 with_gnu_ld=unknown 12062 ;; 12063 esac 12064elif test "$with_gnu_ld" = yes; then 12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12066$as_echo_n "checking for GNU ld... " >&6; } 12067else 12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12069$as_echo_n "checking for non-GNU ld... " >&6; } 12070fi 12071if test "${lt_cv_path_LD+set}" = set; then : 12072 $as_echo_n "(cached) " >&6 12073else 12074 if test -z "$LD"; then 12075 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12076 for ac_dir in $PATH; do 12077 IFS="$lt_save_ifs" 12078 test -z "$ac_dir" && ac_dir=. 12079 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12080 lt_cv_path_LD="$ac_dir/$ac_prog" 12081 # Check to see if the program is GNU ld. I'd rather use --version, 12082 # but apparently some variants of GNU ld only accept -v. 12083 # Break only if it was the GNU/non-GNU ld that we prefer. 12084 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12085 *GNU* | *'with BFD'*) 12086 test "$with_gnu_ld" != no && break 12087 ;; 12088 *) 12089 test "$with_gnu_ld" != yes && break 12090 ;; 12091 esac 12092 fi 12093 done 12094 IFS="$lt_save_ifs" 12095else 12096 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12097fi 12098fi 12099 12100LD="$lt_cv_path_LD" 12101if test -n "$LD"; then 12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12103$as_echo "$LD" >&6; } 12104else 12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12106$as_echo "no" >&6; } 12107fi 12108test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 12109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12110$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12111if test "${lt_cv_prog_gnu_ld+set}" = set; then : 12112 $as_echo_n "(cached) " >&6 12113else 12114 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12115case `$LD -v 2>&1 </dev/null` in 12116*GNU* | *'with BFD'*) 12117 lt_cv_prog_gnu_ld=yes 12118 ;; 12119*) 12120 lt_cv_prog_gnu_ld=no 12121 ;; 12122esac 12123fi 12124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12125$as_echo "$lt_cv_prog_gnu_ld" >&6; } 12126with_gnu_ld=$lt_cv_prog_gnu_ld 12127 12128 12129 12130 12131 12132 12133 12134 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12135 # archiving commands below assume that GNU ld is being used. 12136 if test "$with_gnu_ld" = yes; then 12137 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12138 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12139 12140 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12141 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12142 12143 # If archive_cmds runs LD, not CC, wlarc should be empty 12144 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12145 # investigate it a little bit more. (MM) 12146 wlarc='${wl}' 12147 12148 # ancient GNU ld didn't support --whole-archive et. al. 12149 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 12150 $GREP 'no-whole-archive' > /dev/null; then 12151 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12152 else 12153 whole_archive_flag_spec_CXX= 12154 fi 12155 else 12156 with_gnu_ld=no 12157 wlarc= 12158 12159 # A generic and very simple default shared library creation 12160 # command for GNU C++ for the case where it uses the native 12161 # linker, instead of GNU ld. If possible, this setting should 12162 # overridden to take advantage of the native linker features on 12163 # the platform it is being used on. 12164 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12165 fi 12166 12167 # Commands to make compiler produce verbose output that lists 12168 # what "hidden" libraries, object files and flags are used when 12169 # linking a shared library. 12170 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 12171 12172 else 12173 GXX=no 12174 with_gnu_ld=no 12175 wlarc= 12176 fi 12177 12178 # PORTME: fill in a description of your system's C++ link characteristics 12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12180$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12181 ld_shlibs_CXX=yes 12182 case $host_os in 12183 aix3*) 12184 # FIXME: insert proper C++ library support 12185 ld_shlibs_CXX=no 12186 ;; 12187 aix[4-9]*) 12188 if test "$host_cpu" = ia64; then 12189 # On IA64, the linker does run time linking by default, so we don't 12190 # have to do anything special. 12191 aix_use_runtimelinking=no 12192 exp_sym_flag='-Bexport' 12193 no_entry_flag="" 12194 else 12195 aix_use_runtimelinking=no 12196 12197 # Test if we are trying to use run time linking or normal 12198 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12199 # need to do runtime linking. 12200 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12201 for ld_flag in $LDFLAGS; do 12202 case $ld_flag in 12203 *-brtl*) 12204 aix_use_runtimelinking=yes 12205 break 12206 ;; 12207 esac 12208 done 12209 ;; 12210 esac 12211 12212 exp_sym_flag='-bexport' 12213 no_entry_flag='-bnoentry' 12214 fi 12215 12216 # When large executables or shared objects are built, AIX ld can 12217 # have problems creating the table of contents. If linking a library 12218 # or program results in "error TOC overflow" add -mminimal-toc to 12219 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12220 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12221 12222 archive_cmds_CXX='' 12223 hardcode_direct_CXX=yes 12224 hardcode_direct_absolute_CXX=yes 12225 hardcode_libdir_separator_CXX=':' 12226 link_all_deplibs_CXX=yes 12227 file_list_spec_CXX='${wl}-f,' 12228 12229 if test "$GXX" = yes; then 12230 case $host_os in aix4.[012]|aix4.[012].*) 12231 # We only want to do this on AIX 4.2 and lower, the check 12232 # below for broken collect2 doesn't work under 4.3+ 12233 collect2name=`${CC} -print-prog-name=collect2` 12234 if test -f "$collect2name" && 12235 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12236 then 12237 # We have reworked collect2 12238 : 12239 else 12240 # We have old collect2 12241 hardcode_direct_CXX=unsupported 12242 # It fails to find uninstalled libraries when the uninstalled 12243 # path is not listed in the libpath. Setting hardcode_minus_L 12244 # to unsupported forces relinking 12245 hardcode_minus_L_CXX=yes 12246 hardcode_libdir_flag_spec_CXX='-L$libdir' 12247 hardcode_libdir_separator_CXX= 12248 fi 12249 esac 12250 shared_flag='-shared' 12251 if test "$aix_use_runtimelinking" = yes; then 12252 shared_flag="$shared_flag "'${wl}-G' 12253 fi 12254 else 12255 # not using gcc 12256 if test "$host_cpu" = ia64; then 12257 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12258 # chokes on -Wl,-G. The following line is correct: 12259 shared_flag='-G' 12260 else 12261 if test "$aix_use_runtimelinking" = yes; then 12262 shared_flag='${wl}-G' 12263 else 12264 shared_flag='${wl}-bM:SRE' 12265 fi 12266 fi 12267 fi 12268 12269 export_dynamic_flag_spec_CXX='${wl}-bexpall' 12270 # It seems that -bexpall does not export symbols beginning with 12271 # underscore (_), so it is better to generate a list of symbols to 12272 # export. 12273 always_export_symbols_CXX=yes 12274 if test "$aix_use_runtimelinking" = yes; then 12275 # Warning - without using the other runtime loading flags (-brtl), 12276 # -berok will link without error, but may produce a broken library. 12277 allow_undefined_flag_CXX='-berok' 12278 # Determine the default libpath from the value encoded in an empty 12279 # executable. 12280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12281/* end confdefs.h. */ 12282 12283int 12284main () 12285{ 12286 12287 ; 12288 return 0; 12289} 12290_ACEOF 12291if ac_fn_cxx_try_link "$LINENO"; then : 12292 12293lt_aix_libpath_sed=' 12294 /Import File Strings/,/^$/ { 12295 /^0/ { 12296 s/^0 *\(.*\)$/\1/ 12297 p 12298 } 12299 }' 12300aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12301# Check for a 64-bit object if we didn't find anything. 12302if test -z "$aix_libpath"; then 12303 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12304fi 12305fi 12306rm -f core conftest.err conftest.$ac_objext \ 12307 conftest$ac_exeext conftest.$ac_ext 12308if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12309 12310 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12311 12312 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 12313 else 12314 if test "$host_cpu" = ia64; then 12315 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 12316 allow_undefined_flag_CXX="-z nodefs" 12317 archive_expsym_cmds_CXX="\$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" 12318 else 12319 # Determine the default libpath from the value encoded in an 12320 # empty executable. 12321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12322/* end confdefs.h. */ 12323 12324int 12325main () 12326{ 12327 12328 ; 12329 return 0; 12330} 12331_ACEOF 12332if ac_fn_cxx_try_link "$LINENO"; then : 12333 12334lt_aix_libpath_sed=' 12335 /Import File Strings/,/^$/ { 12336 /^0/ { 12337 s/^0 *\(.*\)$/\1/ 12338 p 12339 } 12340 }' 12341aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12342# Check for a 64-bit object if we didn't find anything. 12343if test -z "$aix_libpath"; then 12344 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12345fi 12346fi 12347rm -f core conftest.err conftest.$ac_objext \ 12348 conftest$ac_exeext conftest.$ac_ext 12349if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12350 12351 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12352 # Warning - without using the other run time loading flags, 12353 # -berok will link without error, but may produce a broken library. 12354 no_undefined_flag_CXX=' ${wl}-bernotok' 12355 allow_undefined_flag_CXX=' ${wl}-berok' 12356 # Exported symbols can be pulled into shared objects from archives 12357 whole_archive_flag_spec_CXX='$convenience' 12358 archive_cmds_need_lc_CXX=yes 12359 # This is similar to how AIX traditionally builds its shared 12360 # libraries. 12361 archive_expsym_cmds_CXX="\$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' 12362 fi 12363 fi 12364 ;; 12365 12366 beos*) 12367 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12368 allow_undefined_flag_CXX=unsupported 12369 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12370 # support --undefined. This deserves some investigation. FIXME 12371 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12372 else 12373 ld_shlibs_CXX=no 12374 fi 12375 ;; 12376 12377 chorus*) 12378 case $cc_basename in 12379 *) 12380 # FIXME: insert proper C++ library support 12381 ld_shlibs_CXX=no 12382 ;; 12383 esac 12384 ;; 12385 12386 cygwin* | mingw* | pw32* | cegcc*) 12387 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12388 # as there is no search path for DLLs. 12389 hardcode_libdir_flag_spec_CXX='-L$libdir' 12390 allow_undefined_flag_CXX=unsupported 12391 always_export_symbols_CXX=no 12392 enable_shared_with_static_runtimes_CXX=yes 12393 12394 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12395 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12396 # If the export-symbols file already is a .def file (1st line 12397 # is EXPORTS), use it as is; otherwise, prepend... 12398 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12399 cp $export_symbols $output_objdir/$soname.def; 12400 else 12401 echo EXPORTS > $output_objdir/$soname.def; 12402 cat $export_symbols >> $output_objdir/$soname.def; 12403 fi~ 12404 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12405 else 12406 ld_shlibs_CXX=no 12407 fi 12408 ;; 12409 darwin* | rhapsody*) 12410 12411 12412 archive_cmds_need_lc_CXX=no 12413 hardcode_direct_CXX=no 12414 hardcode_automatic_CXX=yes 12415 hardcode_shlibpath_var_CXX=unsupported 12416 whole_archive_flag_spec_CXX='' 12417 link_all_deplibs_CXX=yes 12418 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 12419 case $cc_basename in 12420 ifort*) _lt_dar_can_shared=yes ;; 12421 *) _lt_dar_can_shared=$GCC ;; 12422 esac 12423 if test "$_lt_dar_can_shared" = "yes"; then 12424 output_verbose_link_cmd=echo 12425 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 12426 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 12427 archive_expsym_cmds_CXX="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}" 12428 module_expsym_cmds_CXX="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}" 12429 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 12430 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" 12431 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" 12432 fi 12433 12434 else 12435 ld_shlibs_CXX=no 12436 fi 12437 12438 ;; 12439 12440 dgux*) 12441 case $cc_basename in 12442 ec++*) 12443 # FIXME: insert proper C++ library support 12444 ld_shlibs_CXX=no 12445 ;; 12446 ghcx*) 12447 # Green Hills C++ Compiler 12448 # FIXME: insert proper C++ library support 12449 ld_shlibs_CXX=no 12450 ;; 12451 *) 12452 # FIXME: insert proper C++ library support 12453 ld_shlibs_CXX=no 12454 ;; 12455 esac 12456 ;; 12457 12458 freebsd[12]*) 12459 # C++ shared libraries reported to be fairly broken before 12460 # switch to ELF 12461 ld_shlibs_CXX=no 12462 ;; 12463 12464 freebsd-elf*) 12465 archive_cmds_need_lc_CXX=no 12466 ;; 12467 12468 freebsd* | dragonfly*) 12469 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12470 # conventions 12471 ld_shlibs_CXX=yes 12472 ;; 12473 12474 gnu*) 12475 ;; 12476 12477 hpux9*) 12478 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12479 hardcode_libdir_separator_CXX=: 12480 export_dynamic_flag_spec_CXX='${wl}-E' 12481 hardcode_direct_CXX=yes 12482 hardcode_minus_L_CXX=yes # Not in the search PATH, 12483 # but as the default 12484 # location of the library. 12485 12486 case $cc_basename in 12487 CC*) 12488 # FIXME: insert proper C++ library support 12489 ld_shlibs_CXX=no 12490 ;; 12491 aCC*) 12492 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 12493 # Commands to make compiler produce verbose output that lists 12494 # what "hidden" libraries, object files and flags are used when 12495 # linking a shared library. 12496 # 12497 # There doesn't appear to be a way to prevent this compiler from 12498 # explicitly linking system object files so we need to strip them 12499 # from the output so that they don't get included in the library 12500 # dependencies. 12501 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 12502 ;; 12503 *) 12504 if test "$GXX" = yes; then 12505 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 12506 else 12507 # FIXME: insert proper C++ library support 12508 ld_shlibs_CXX=no 12509 fi 12510 ;; 12511 esac 12512 ;; 12513 12514 hpux10*|hpux11*) 12515 if test $with_gnu_ld = no; then 12516 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12517 hardcode_libdir_separator_CXX=: 12518 12519 case $host_cpu in 12520 hppa*64*|ia64*) 12521 ;; 12522 *) 12523 export_dynamic_flag_spec_CXX='${wl}-E' 12524 ;; 12525 esac 12526 fi 12527 case $host_cpu in 12528 hppa*64*|ia64*) 12529 hardcode_direct_CXX=no 12530 hardcode_shlibpath_var_CXX=no 12531 ;; 12532 *) 12533 hardcode_direct_CXX=yes 12534 hardcode_direct_absolute_CXX=yes 12535 hardcode_minus_L_CXX=yes # Not in the search PATH, 12536 # but as the default 12537 # location of the library. 12538 ;; 12539 esac 12540 12541 case $cc_basename in 12542 CC*) 12543 # FIXME: insert proper C++ library support 12544 ld_shlibs_CXX=no 12545 ;; 12546 aCC*) 12547 case $host_cpu in 12548 hppa*64*) 12549 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12550 ;; 12551 ia64*) 12552 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12553 ;; 12554 *) 12555 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12556 ;; 12557 esac 12558 # Commands to make compiler produce verbose output that lists 12559 # what "hidden" libraries, object files and flags are used when 12560 # linking a shared library. 12561 # 12562 # There doesn't appear to be a way to prevent this compiler from 12563 # explicitly linking system object files so we need to strip them 12564 # from the output so that they don't get included in the library 12565 # dependencies. 12566 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 12567 ;; 12568 *) 12569 if test "$GXX" = yes; then 12570 if test $with_gnu_ld = no; then 12571 case $host_cpu in 12572 hppa*64*) 12573 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12574 ;; 12575 ia64*) 12576 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12577 ;; 12578 *) 12579 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12580 ;; 12581 esac 12582 fi 12583 else 12584 # FIXME: insert proper C++ library support 12585 ld_shlibs_CXX=no 12586 fi 12587 ;; 12588 esac 12589 ;; 12590 12591 interix[3-9]*) 12592 hardcode_direct_CXX=no 12593 hardcode_shlibpath_var_CXX=no 12594 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12595 export_dynamic_flag_spec_CXX='${wl}-E' 12596 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12597 # Instead, shared libraries are loaded at an image base (0x10000000 by 12598 # default) and relocated if they conflict, which is a slow very memory 12599 # consuming and fragmenting process. To avoid this, we pick a random, 12600 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12601 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12602 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 12603 archive_expsym_cmds_CXX='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' 12604 ;; 12605 irix5* | irix6*) 12606 case $cc_basename in 12607 CC*) 12608 # SGI C++ 12609 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 12610 12611 # Archives containing C++ object files must be created using 12612 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12613 # necessary to make sure instantiated templates are included 12614 # in the archive. 12615 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12616 ;; 12617 *) 12618 if test "$GXX" = yes; then 12619 if test "$with_gnu_ld" = no; then 12620 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12621 else 12622 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' 12623 fi 12624 fi 12625 link_all_deplibs_CXX=yes 12626 ;; 12627 esac 12628 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12629 hardcode_libdir_separator_CXX=: 12630 inherit_rpath_CXX=yes 12631 ;; 12632 12633 linux* | k*bsd*-gnu | kopensolaris*-gnu) 12634 case $cc_basename in 12635 KCC*) 12636 # Kuck and Associates, Inc. (KAI) C++ Compiler 12637 12638 # KCC will only create a shared library if the output file 12639 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12640 # to its proper name (with version) after linking. 12641 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 12642 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 12643 # Commands to make compiler produce verbose output that lists 12644 # what "hidden" libraries, object files and flags are used when 12645 # linking a shared library. 12646 # 12647 # There doesn't appear to be a way to prevent this compiler from 12648 # explicitly linking system object files so we need to strip them 12649 # from the output so that they don't get included in the library 12650 # dependencies. 12651 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 12652 12653 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12654 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12655 12656 # Archives containing C++ object files must be created using 12657 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12658 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12659 ;; 12660 icpc* | ecpc* ) 12661 # Intel C++ 12662 with_gnu_ld=yes 12663 # version 8.0 and above of icpc choke on multiply defined symbols 12664 # if we add $predep_objects and $postdep_objects, however 7.1 and 12665 # earlier do not add the objects themselves. 12666 case `$CC -V 2>&1` in 12667 *"Version 7."*) 12668 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12669 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12670 ;; 12671 *) # Version 8.0 or newer 12672 tmp_idyn= 12673 case $host_cpu in 12674 ia64*) tmp_idyn=' -i_dynamic';; 12675 esac 12676 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12677 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12678 ;; 12679 esac 12680 archive_cmds_need_lc_CXX=no 12681 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12682 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12683 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12684 ;; 12685 pgCC* | pgcpp*) 12686 # Portland Group C++ compiler 12687 case `$CC -V` in 12688 *pgCC\ [1-5]* | *pgcpp\ [1-5]*) 12689 prelink_cmds_CXX='tpldir=Template.dir~ 12690 rm -rf $tpldir~ 12691 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 12692 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' 12693 old_archive_cmds_CXX='tpldir=Template.dir~ 12694 rm -rf $tpldir~ 12695 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 12696 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ 12697 $RANLIB $oldlib' 12698 archive_cmds_CXX='tpldir=Template.dir~ 12699 rm -rf $tpldir~ 12700 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 12701 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12702 archive_expsym_cmds_CXX='tpldir=Template.dir~ 12703 rm -rf $tpldir~ 12704 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 12705 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 12706 ;; 12707 *) # Version 6 will use weak symbols 12708 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12709 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 12710 ;; 12711 esac 12712 12713 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12714 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12715 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 12716 ;; 12717 cxx*) 12718 # Compaq C++ 12719 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12720 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 12721 12722 runpath_var=LD_RUN_PATH 12723 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12724 hardcode_libdir_separator_CXX=: 12725 12726 # Commands to make compiler produce verbose output that lists 12727 # what "hidden" libraries, object files and flags are used when 12728 # linking a shared library. 12729 # 12730 # There doesn't appear to be a way to prevent this compiler from 12731 # explicitly linking system object files so we need to strip them 12732 # from the output so that they don't get included in the library 12733 # dependencies. 12734 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 12735 ;; 12736 xl*) 12737 # IBM XL 8.0 on PPC, with GNU ld 12738 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12739 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12740 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12741 if test "x$supports_anon_versioning" = xyes; then 12742 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 12743 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12744 echo "local: *; };" >> $output_objdir/$libname.ver~ 12745 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 12746 fi 12747 ;; 12748 *) 12749 case `$CC -V 2>&1 | sed 5q` in 12750 *Sun\ C*) 12751 # Sun C++ 5.9 12752 no_undefined_flag_CXX=' -zdefs' 12753 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12754 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 12755 hardcode_libdir_flag_spec_CXX='-R$libdir' 12756 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 12757 compiler_needs_object_CXX=yes 12758 12759 # Not sure whether something based on 12760 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 12761 # would be better. 12762 output_verbose_link_cmd='echo' 12763 12764 # Archives containing C++ object files must be created using 12765 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12766 # necessary to make sure instantiated templates are included 12767 # in the archive. 12768 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12769 ;; 12770 esac 12771 ;; 12772 esac 12773 ;; 12774 12775 lynxos*) 12776 # FIXME: insert proper C++ library support 12777 ld_shlibs_CXX=no 12778 ;; 12779 12780 m88k*) 12781 # FIXME: insert proper C++ library support 12782 ld_shlibs_CXX=no 12783 ;; 12784 12785 mvs*) 12786 case $cc_basename in 12787 cxx*) 12788 # FIXME: insert proper C++ library support 12789 ld_shlibs_CXX=no 12790 ;; 12791 *) 12792 # FIXME: insert proper C++ library support 12793 ld_shlibs_CXX=no 12794 ;; 12795 esac 12796 ;; 12797 12798 netbsd*) 12799 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12800 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12801 wlarc= 12802 hardcode_libdir_flag_spec_CXX='-R$libdir' 12803 hardcode_direct_CXX=yes 12804 hardcode_shlibpath_var_CXX=no 12805 fi 12806 # Workaround some broken pre-1.5 toolchains 12807 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12808 ;; 12809 12810 *nto* | *qnx*) 12811 ld_shlibs_CXX=yes 12812 ;; 12813 12814 openbsd2*) 12815 # C++ shared libraries are fairly broken 12816 ld_shlibs_CXX=no 12817 ;; 12818 12819 openbsd*) 12820 if test -f /usr/libexec/ld.so; then 12821 hardcode_direct_CXX=yes 12822 hardcode_shlibpath_var_CXX=no 12823 hardcode_direct_absolute_CXX=yes 12824 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12825 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12826 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12827 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12828 export_dynamic_flag_spec_CXX='${wl}-E' 12829 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12830 fi 12831 output_verbose_link_cmd=echo 12832 else 12833 ld_shlibs_CXX=no 12834 fi 12835 ;; 12836 12837 osf3* | osf4* | osf5*) 12838 case $cc_basename in 12839 KCC*) 12840 # Kuck and Associates, Inc. (KAI) C++ Compiler 12841 12842 # KCC will only create a shared library if the output file 12843 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12844 # to its proper name (with version) after linking. 12845 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 12846 12847 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12848 hardcode_libdir_separator_CXX=: 12849 12850 # Archives containing C++ object files must be created using 12851 # the KAI C++ compiler. 12852 case $host in 12853 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 12854 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 12855 esac 12856 ;; 12857 RCC*) 12858 # Rational C++ 2.4.1 12859 # FIXME: insert proper C++ library support 12860 ld_shlibs_CXX=no 12861 ;; 12862 cxx*) 12863 case $host in 12864 osf3*) 12865 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12866 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 12867 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12868 ;; 12869 *) 12870 allow_undefined_flag_CXX=' -expect_unresolved \*' 12871 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 12872 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12873 echo "-hidden">> $lib.exp~ 12874 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ 12875 $RM $lib.exp' 12876 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12877 ;; 12878 esac 12879 12880 hardcode_libdir_separator_CXX=: 12881 12882 # Commands to make compiler produce verbose output that lists 12883 # what "hidden" libraries, object files and flags are used when 12884 # linking a shared library. 12885 # 12886 # There doesn't appear to be a way to prevent this compiler from 12887 # explicitly linking system object files so we need to strip them 12888 # from the output so that they don't get included in the library 12889 # dependencies. 12890 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 12891 ;; 12892 *) 12893 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12894 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12895 case $host in 12896 osf3*) 12897 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12898 ;; 12899 *) 12900 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12901 ;; 12902 esac 12903 12904 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12905 hardcode_libdir_separator_CXX=: 12906 12907 # Commands to make compiler produce verbose output that lists 12908 # what "hidden" libraries, object files and flags are used when 12909 # linking a shared library. 12910 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 12911 12912 else 12913 # FIXME: insert proper C++ library support 12914 ld_shlibs_CXX=no 12915 fi 12916 ;; 12917 esac 12918 ;; 12919 12920 psos*) 12921 # FIXME: insert proper C++ library support 12922 ld_shlibs_CXX=no 12923 ;; 12924 12925 sunos4*) 12926 case $cc_basename in 12927 CC*) 12928 # Sun C++ 4.x 12929 # FIXME: insert proper C++ library support 12930 ld_shlibs_CXX=no 12931 ;; 12932 lcc*) 12933 # Lucid 12934 # FIXME: insert proper C++ library support 12935 ld_shlibs_CXX=no 12936 ;; 12937 *) 12938 # FIXME: insert proper C++ library support 12939 ld_shlibs_CXX=no 12940 ;; 12941 esac 12942 ;; 12943 12944 solaris*) 12945 case $cc_basename in 12946 CC*) 12947 # Sun C++ 4.2, 5.x and Centerline C++ 12948 archive_cmds_need_lc_CXX=yes 12949 no_undefined_flag_CXX=' -zdefs' 12950 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12951 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12952 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 12953 12954 hardcode_libdir_flag_spec_CXX='-R$libdir' 12955 hardcode_shlibpath_var_CXX=no 12956 case $host_os in 12957 solaris2.[0-5] | solaris2.[0-5].*) ;; 12958 *) 12959 # The compiler driver will combine and reorder linker options, 12960 # but understands `-z linker_flag'. 12961 # Supported since Solaris 2.6 (maybe 2.5.1?) 12962 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12963 ;; 12964 esac 12965 link_all_deplibs_CXX=yes 12966 12967 output_verbose_link_cmd='echo' 12968 12969 # Archives containing C++ object files must be created using 12970 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12971 # necessary to make sure instantiated templates are included 12972 # in the archive. 12973 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12974 ;; 12975 gcx*) 12976 # Green Hills C++ Compiler 12977 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12978 12979 # The C++ compiler must be used to create the archive. 12980 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12981 ;; 12982 *) 12983 # GNU C++ compiler with Solaris linker 12984 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12985 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12986 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 12987 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12988 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12989 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 12990 12991 # Commands to make compiler produce verbose output that lists 12992 # what "hidden" libraries, object files and flags are used when 12993 # linking a shared library. 12994 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 12995 else 12996 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12997 # platform. 12998 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12999 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13000 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13001 13002 # Commands to make compiler produce verbose output that lists 13003 # what "hidden" libraries, object files and flags are used when 13004 # linking a shared library. 13005 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 13006 fi 13007 13008 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 13009 case $host_os in 13010 solaris2.[0-5] | solaris2.[0-5].*) ;; 13011 *) 13012 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13013 ;; 13014 esac 13015 fi 13016 ;; 13017 esac 13018 ;; 13019 13020 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13021 no_undefined_flag_CXX='${wl}-z,text' 13022 archive_cmds_need_lc_CXX=no 13023 hardcode_shlibpath_var_CXX=no 13024 runpath_var='LD_RUN_PATH' 13025 13026 case $cc_basename in 13027 CC*) 13028 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13029 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13030 ;; 13031 *) 13032 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13033 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13034 ;; 13035 esac 13036 ;; 13037 13038 sysv5* | sco3.2v5* | sco5v6*) 13039 # Note: We can NOT use -z defs as we might desire, because we do not 13040 # link with -lc, and that would cause any symbols used from libc to 13041 # always be unresolved, which means just about no library would 13042 # ever link correctly. If we're not using GNU ld we use -z text 13043 # though, which does catch some bad symbols but isn't as heavy-handed 13044 # as -z defs. 13045 no_undefined_flag_CXX='${wl}-z,text' 13046 allow_undefined_flag_CXX='${wl}-z,nodefs' 13047 archive_cmds_need_lc_CXX=no 13048 hardcode_shlibpath_var_CXX=no 13049 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 13050 hardcode_libdir_separator_CXX=':' 13051 link_all_deplibs_CXX=yes 13052 export_dynamic_flag_spec_CXX='${wl}-Bexport' 13053 runpath_var='LD_RUN_PATH' 13054 13055 case $cc_basename in 13056 CC*) 13057 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13058 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13059 ;; 13060 *) 13061 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13062 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13063 ;; 13064 esac 13065 ;; 13066 13067 tandem*) 13068 case $cc_basename in 13069 NCC*) 13070 # NonStop-UX NCC 3.20 13071 # FIXME: insert proper C++ library support 13072 ld_shlibs_CXX=no 13073 ;; 13074 *) 13075 # FIXME: insert proper C++ library support 13076 ld_shlibs_CXX=no 13077 ;; 13078 esac 13079 ;; 13080 13081 vxworks*) 13082 # FIXME: insert proper C++ library support 13083 ld_shlibs_CXX=no 13084 ;; 13085 13086 *) 13087 # FIXME: insert proper C++ library support 13088 ld_shlibs_CXX=no 13089 ;; 13090 esac 13091 13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13093$as_echo "$ld_shlibs_CXX" >&6; } 13094 test "$ld_shlibs_CXX" = no && can_build_shared=no 13095 13096 GCC_CXX="$GXX" 13097 LD_CXX="$LD" 13098 13099 ## CAVEAT EMPTOR: 13100 ## There is no encapsulation within the following macros, do not change 13101 ## the running order or otherwise move them around unless you know exactly 13102 ## what you are doing... 13103 # Dependencies to place before and after the object being linked: 13104predep_objects_CXX= 13105postdep_objects_CXX= 13106predeps_CXX= 13107postdeps_CXX= 13108compiler_lib_search_path_CXX= 13109 13110cat > conftest.$ac_ext <<_LT_EOF 13111class Foo 13112{ 13113public: 13114 Foo (void) { a = 0; } 13115private: 13116 int a; 13117}; 13118_LT_EOF 13119 13120if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13121 (eval $ac_compile) 2>&5 13122 ac_status=$? 13123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13124 test $ac_status = 0; }; then 13125 # Parse the compiler output and extract the necessary 13126 # objects, libraries and library flags. 13127 13128 # Sentinel used to keep track of whether or not we are before 13129 # the conftest object file. 13130 pre_test_object_deps_done=no 13131 13132 for p in `eval "$output_verbose_link_cmd"`; do 13133 case $p in 13134 13135 -L* | -R* | -l*) 13136 # Some compilers place space between "-{L,R}" and the path. 13137 # Remove the space. 13138 if test $p = "-L" || 13139 test $p = "-R"; then 13140 prev=$p 13141 continue 13142 else 13143 prev= 13144 fi 13145 13146 if test "$pre_test_object_deps_done" = no; then 13147 case $p in 13148 -L* | -R*) 13149 # Internal compiler library paths should come after those 13150 # provided the user. The postdeps already come after the 13151 # user supplied libs so there is no need to process them. 13152 if test -z "$compiler_lib_search_path_CXX"; then 13153 compiler_lib_search_path_CXX="${prev}${p}" 13154 else 13155 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 13156 fi 13157 ;; 13158 # The "-l" case would never come before the object being 13159 # linked, so don't bother handling this case. 13160 esac 13161 else 13162 if test -z "$postdeps_CXX"; then 13163 postdeps_CXX="${prev}${p}" 13164 else 13165 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 13166 fi 13167 fi 13168 ;; 13169 13170 *.$objext) 13171 # This assumes that the test object file only shows up 13172 # once in the compiler output. 13173 if test "$p" = "conftest.$objext"; then 13174 pre_test_object_deps_done=yes 13175 continue 13176 fi 13177 13178 if test "$pre_test_object_deps_done" = no; then 13179 if test -z "$predep_objects_CXX"; then 13180 predep_objects_CXX="$p" 13181 else 13182 predep_objects_CXX="$predep_objects_CXX $p" 13183 fi 13184 else 13185 if test -z "$postdep_objects_CXX"; then 13186 postdep_objects_CXX="$p" 13187 else 13188 postdep_objects_CXX="$postdep_objects_CXX $p" 13189 fi 13190 fi 13191 ;; 13192 13193 *) ;; # Ignore the rest. 13194 13195 esac 13196 done 13197 13198 # Clean up. 13199 rm -f a.out a.exe 13200else 13201 echo "libtool.m4: error: problem compiling CXX test program" 13202fi 13203 13204$RM -f confest.$objext 13205 13206# PORTME: override above test on systems where it is broken 13207case $host_os in 13208interix[3-9]*) 13209 # Interix 3.5 installs completely hosed .la files for C++, so rather than 13210 # hack all around it, let's just trust "g++" to DTRT. 13211 predep_objects_CXX= 13212 postdep_objects_CXX= 13213 postdeps_CXX= 13214 ;; 13215 13216linux*) 13217 case `$CC -V 2>&1 | sed 5q` in 13218 *Sun\ C*) 13219 # Sun C++ 5.9 13220 13221 # The more standards-conforming stlport4 library is 13222 # incompatible with the Cstd library. Avoid specifying 13223 # it if it's in CXXFLAGS. Ignore libCrun as 13224 # -library=stlport4 depends on it. 13225 case " $CXX $CXXFLAGS " in 13226 *" -library=stlport4 "*) 13227 solaris_use_stlport4=yes 13228 ;; 13229 esac 13230 13231 if test "$solaris_use_stlport4" != yes; then 13232 postdeps_CXX='-library=Cstd -library=Crun' 13233 fi 13234 ;; 13235 esac 13236 ;; 13237 13238solaris*) 13239 case $cc_basename in 13240 CC*) 13241 # The more standards-conforming stlport4 library is 13242 # incompatible with the Cstd library. Avoid specifying 13243 # it if it's in CXXFLAGS. Ignore libCrun as 13244 # -library=stlport4 depends on it. 13245 case " $CXX $CXXFLAGS " in 13246 *" -library=stlport4 "*) 13247 solaris_use_stlport4=yes 13248 ;; 13249 esac 13250 13251 # Adding this requires a known-good setup of shared libraries for 13252 # Sun compiler versions before 5.6, else PIC objects from an old 13253 # archive will be linked into the output, leading to subtle bugs. 13254 if test "$solaris_use_stlport4" != yes; then 13255 postdeps_CXX='-library=Cstd -library=Crun' 13256 fi 13257 ;; 13258 esac 13259 ;; 13260esac 13261 13262 13263case " $postdeps_CXX " in 13264*" -lc "*) archive_cmds_need_lc_CXX=no ;; 13265esac 13266 compiler_lib_search_dirs_CXX= 13267if test -n "${compiler_lib_search_path_CXX}"; then 13268 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 13269fi 13270 13271 13272 13273 13274 13275 13276 13277 13278 13279 13280 13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297 13298 13299 13300 13301 lt_prog_compiler_wl_CXX= 13302lt_prog_compiler_pic_CXX= 13303lt_prog_compiler_static_CXX= 13304 13305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 13306$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 13307 13308 # C++ specific cases for pic, static, wl, etc. 13309 if test "$GXX" = yes; then 13310 lt_prog_compiler_wl_CXX='-Wl,' 13311 lt_prog_compiler_static_CXX='-static' 13312 13313 case $host_os in 13314 aix*) 13315 # All AIX code is PIC. 13316 if test "$host_cpu" = ia64; then 13317 # AIX 5 now supports IA64 processor 13318 lt_prog_compiler_static_CXX='-Bstatic' 13319 fi 13320 ;; 13321 13322 amigaos*) 13323 case $host_cpu in 13324 powerpc) 13325 # see comment about AmigaOS4 .so support 13326 lt_prog_compiler_pic_CXX='-fPIC' 13327 ;; 13328 m68k) 13329 # FIXME: we need at least 68020 code to build shared libraries, but 13330 # adding the `-m68020' flag to GCC prevents building anything better, 13331 # like `-m68040'. 13332 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 13333 ;; 13334 esac 13335 ;; 13336 13337 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13338 # PIC is the default for these OSes. 13339 ;; 13340 mingw* | cygwin* | os2* | pw32* | cegcc*) 13341 # This hack is so that the source file can tell whether it is being 13342 # built for inclusion in a dll (and should export symbols for example). 13343 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13344 # (--disable-auto-import) libraries 13345 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13346 ;; 13347 darwin* | rhapsody*) 13348 # PIC is the default on this platform 13349 # Common symbols not allowed in MH_DYLIB files 13350 lt_prog_compiler_pic_CXX='-fno-common' 13351 ;; 13352 *djgpp*) 13353 # DJGPP does not support shared libraries at all 13354 lt_prog_compiler_pic_CXX= 13355 ;; 13356 interix[3-9]*) 13357 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13358 # Instead, we relocate shared libraries at runtime. 13359 ;; 13360 sysv4*MP*) 13361 if test -d /usr/nec; then 13362 lt_prog_compiler_pic_CXX=-Kconform_pic 13363 fi 13364 ;; 13365 hpux*) 13366 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 13367 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 13368 # sets the default TLS model and affects inlining. 13369 case $host_cpu in 13370 hppa*64*) 13371 ;; 13372 *) 13373 lt_prog_compiler_pic_CXX='-fPIC' 13374 ;; 13375 esac 13376 ;; 13377 *qnx* | *nto*) 13378 # QNX uses GNU C++, but need to define -shared option too, otherwise 13379 # it will coredump. 13380 lt_prog_compiler_pic_CXX='-fPIC -shared' 13381 ;; 13382 *) 13383 lt_prog_compiler_pic_CXX='-fPIC' 13384 ;; 13385 esac 13386 else 13387 case $host_os in 13388 aix[4-9]*) 13389 # All AIX code is PIC. 13390 if test "$host_cpu" = ia64; then 13391 # AIX 5 now supports IA64 processor 13392 lt_prog_compiler_static_CXX='-Bstatic' 13393 else 13394 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 13395 fi 13396 ;; 13397 chorus*) 13398 case $cc_basename in 13399 cxch68*) 13400 # Green Hills C++ Compiler 13401 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 13402 ;; 13403 esac 13404 ;; 13405 dgux*) 13406 case $cc_basename in 13407 ec++*) 13408 lt_prog_compiler_pic_CXX='-KPIC' 13409 ;; 13410 ghcx*) 13411 # Green Hills C++ Compiler 13412 lt_prog_compiler_pic_CXX='-pic' 13413 ;; 13414 *) 13415 ;; 13416 esac 13417 ;; 13418 freebsd* | dragonfly*) 13419 # FreeBSD uses GNU C++ 13420 ;; 13421 hpux9* | hpux10* | hpux11*) 13422 case $cc_basename in 13423 CC*) 13424 lt_prog_compiler_wl_CXX='-Wl,' 13425 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13426 if test "$host_cpu" != ia64; then 13427 lt_prog_compiler_pic_CXX='+Z' 13428 fi 13429 ;; 13430 aCC*) 13431 lt_prog_compiler_wl_CXX='-Wl,' 13432 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13433 case $host_cpu in 13434 hppa*64*|ia64*) 13435 # +Z the default 13436 ;; 13437 *) 13438 lt_prog_compiler_pic_CXX='+Z' 13439 ;; 13440 esac 13441 ;; 13442 *) 13443 ;; 13444 esac 13445 ;; 13446 interix*) 13447 # This is c89, which is MS Visual C++ (no shared libs) 13448 # Anyone wants to do a port? 13449 ;; 13450 irix5* | irix6* | nonstopux*) 13451 case $cc_basename in 13452 CC*) 13453 lt_prog_compiler_wl_CXX='-Wl,' 13454 lt_prog_compiler_static_CXX='-non_shared' 13455 # CC pic flag -KPIC is the default. 13456 ;; 13457 *) 13458 ;; 13459 esac 13460 ;; 13461 linux* | k*bsd*-gnu | kopensolaris*-gnu) 13462 case $cc_basename in 13463 KCC*) 13464 # KAI C++ Compiler 13465 lt_prog_compiler_wl_CXX='--backend -Wl,' 13466 lt_prog_compiler_pic_CXX='-fPIC' 13467 ;; 13468 ecpc* ) 13469 # old Intel C++ for x86_64 which still supported -KPIC. 13470 lt_prog_compiler_wl_CXX='-Wl,' 13471 lt_prog_compiler_pic_CXX='-KPIC' 13472 lt_prog_compiler_static_CXX='-static' 13473 ;; 13474 icpc* ) 13475 # Intel C++, used to be incompatible with GCC. 13476 # ICC 10 doesn't accept -KPIC any more. 13477 lt_prog_compiler_wl_CXX='-Wl,' 13478 lt_prog_compiler_pic_CXX='-fPIC' 13479 lt_prog_compiler_static_CXX='-static' 13480 ;; 13481 pgCC* | pgcpp*) 13482 # Portland Group C++ compiler 13483 lt_prog_compiler_wl_CXX='-Wl,' 13484 lt_prog_compiler_pic_CXX='-fpic' 13485 lt_prog_compiler_static_CXX='-Bstatic' 13486 ;; 13487 cxx*) 13488 # Compaq C++ 13489 # Make sure the PIC flag is empty. It appears that all Alpha 13490 # Linux and Compaq Tru64 Unix objects are PIC. 13491 lt_prog_compiler_pic_CXX= 13492 lt_prog_compiler_static_CXX='-non_shared' 13493 ;; 13494 xlc* | xlC*) 13495 # IBM XL 8.0 on PPC 13496 lt_prog_compiler_wl_CXX='-Wl,' 13497 lt_prog_compiler_pic_CXX='-qpic' 13498 lt_prog_compiler_static_CXX='-qstaticlink' 13499 ;; 13500 *) 13501 case `$CC -V 2>&1 | sed 5q` in 13502 *Sun\ C*) 13503 # Sun C++ 5.9 13504 lt_prog_compiler_pic_CXX='-KPIC' 13505 lt_prog_compiler_static_CXX='-Bstatic' 13506 lt_prog_compiler_wl_CXX='-Qoption ld ' 13507 ;; 13508 esac 13509 ;; 13510 esac 13511 ;; 13512 lynxos*) 13513 ;; 13514 m88k*) 13515 ;; 13516 mvs*) 13517 case $cc_basename in 13518 cxx*) 13519 lt_prog_compiler_pic_CXX='-W c,exportall' 13520 ;; 13521 *) 13522 ;; 13523 esac 13524 ;; 13525 netbsd* | netbsdelf*-gnu) 13526 ;; 13527 *qnx* | *nto*) 13528 # QNX uses GNU C++, but need to define -shared option too, otherwise 13529 # it will coredump. 13530 lt_prog_compiler_pic_CXX='-fPIC -shared' 13531 ;; 13532 osf3* | osf4* | osf5*) 13533 case $cc_basename in 13534 KCC*) 13535 lt_prog_compiler_wl_CXX='--backend -Wl,' 13536 ;; 13537 RCC*) 13538 # Rational C++ 2.4.1 13539 lt_prog_compiler_pic_CXX='-pic' 13540 ;; 13541 cxx*) 13542 # Digital/Compaq C++ 13543 lt_prog_compiler_wl_CXX='-Wl,' 13544 # Make sure the PIC flag is empty. It appears that all Alpha 13545 # Linux and Compaq Tru64 Unix objects are PIC. 13546 lt_prog_compiler_pic_CXX= 13547 lt_prog_compiler_static_CXX='-non_shared' 13548 ;; 13549 *) 13550 ;; 13551 esac 13552 ;; 13553 psos*) 13554 ;; 13555 solaris*) 13556 case $cc_basename in 13557 CC*) 13558 # Sun C++ 4.2, 5.x and Centerline C++ 13559 lt_prog_compiler_pic_CXX='-KPIC' 13560 lt_prog_compiler_static_CXX='-Bstatic' 13561 lt_prog_compiler_wl_CXX='-Qoption ld ' 13562 ;; 13563 gcx*) 13564 # Green Hills C++ Compiler 13565 lt_prog_compiler_pic_CXX='-PIC' 13566 ;; 13567 *) 13568 ;; 13569 esac 13570 ;; 13571 sunos4*) 13572 case $cc_basename in 13573 CC*) 13574 # Sun C++ 4.x 13575 lt_prog_compiler_pic_CXX='-pic' 13576 lt_prog_compiler_static_CXX='-Bstatic' 13577 ;; 13578 lcc*) 13579 # Lucid 13580 lt_prog_compiler_pic_CXX='-pic' 13581 ;; 13582 *) 13583 ;; 13584 esac 13585 ;; 13586 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13587 case $cc_basename in 13588 CC*) 13589 lt_prog_compiler_wl_CXX='-Wl,' 13590 lt_prog_compiler_pic_CXX='-KPIC' 13591 lt_prog_compiler_static_CXX='-Bstatic' 13592 ;; 13593 esac 13594 ;; 13595 tandem*) 13596 case $cc_basename in 13597 NCC*) 13598 # NonStop-UX NCC 3.20 13599 lt_prog_compiler_pic_CXX='-KPIC' 13600 ;; 13601 *) 13602 ;; 13603 esac 13604 ;; 13605 vxworks*) 13606 ;; 13607 *) 13608 lt_prog_compiler_can_build_shared_CXX=no 13609 ;; 13610 esac 13611 fi 13612 13613case $host_os in 13614 # For platforms which do not support PIC, -DPIC is meaningless: 13615 *djgpp*) 13616 lt_prog_compiler_pic_CXX= 13617 ;; 13618 *) 13619 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 13620 ;; 13621esac 13622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 13623$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 13624 13625 13626 13627# 13628# Check to make sure the PIC flag actually works. 13629# 13630if test -n "$lt_prog_compiler_pic_CXX"; then 13631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 13632$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 13633if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : 13634 $as_echo_n "(cached) " >&6 13635else 13636 lt_cv_prog_compiler_pic_works_CXX=no 13637 ac_outfile=conftest.$ac_objext 13638 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13639 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 13640 # Insert the option either (1) after the last *FLAGS variable, or 13641 # (2) before a word containing "conftest.", or (3) at the end. 13642 # Note that $ac_compile itself does not contain backslashes and begins 13643 # with a dollar sign (not a hyphen), so the echo should work correctly. 13644 # The option is referenced via a variable to avoid confusing sed. 13645 lt_compile=`echo "$ac_compile" | $SED \ 13646 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13647 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13648 -e 's:$: $lt_compiler_flag:'` 13649 (eval echo "\"\$as_me:13649: $lt_compile\"" >&5) 13650 (eval "$lt_compile" 2>conftest.err) 13651 ac_status=$? 13652 cat conftest.err >&5 13653 echo "$as_me:13653: \$? = $ac_status" >&5 13654 if (exit $ac_status) && test -s "$ac_outfile"; then 13655 # The compiler can only warn and ignore the option if not recognized 13656 # So say no if there are warnings other than the usual output. 13657 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13658 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13659 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13660 lt_cv_prog_compiler_pic_works_CXX=yes 13661 fi 13662 fi 13663 $RM conftest* 13664 13665fi 13666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 13667$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 13668 13669if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 13670 case $lt_prog_compiler_pic_CXX in 13671 "" | " "*) ;; 13672 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 13673 esac 13674else 13675 lt_prog_compiler_pic_CXX= 13676 lt_prog_compiler_can_build_shared_CXX=no 13677fi 13678 13679fi 13680 13681 13682 13683# 13684# Check to make sure the static flag actually works. 13685# 13686wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 13687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13688$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13689if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : 13690 $as_echo_n "(cached) " >&6 13691else 13692 lt_cv_prog_compiler_static_works_CXX=no 13693 save_LDFLAGS="$LDFLAGS" 13694 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13695 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13696 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13697 # The linker can only warn and ignore the option if not recognized 13698 # So say no if there are warnings 13699 if test -s conftest.err; then 13700 # Append any errors to the config.log. 13701 cat conftest.err 1>&5 13702 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13703 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13704 if diff conftest.exp conftest.er2 >/dev/null; then 13705 lt_cv_prog_compiler_static_works_CXX=yes 13706 fi 13707 else 13708 lt_cv_prog_compiler_static_works_CXX=yes 13709 fi 13710 fi 13711 $RM -r conftest* 13712 LDFLAGS="$save_LDFLAGS" 13713 13714fi 13715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 13716$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 13717 13718if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 13719 : 13720else 13721 lt_prog_compiler_static_CXX= 13722fi 13723 13724 13725 13726 13727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13728$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13729if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : 13730 $as_echo_n "(cached) " >&6 13731else 13732 lt_cv_prog_compiler_c_o_CXX=no 13733 $RM -r conftest 2>/dev/null 13734 mkdir conftest 13735 cd conftest 13736 mkdir out 13737 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13738 13739 lt_compiler_flag="-o out/conftest2.$ac_objext" 13740 # Insert the option either (1) after the last *FLAGS variable, or 13741 # (2) before a word containing "conftest.", or (3) at the end. 13742 # Note that $ac_compile itself does not contain backslashes and begins 13743 # with a dollar sign (not a hyphen), so the echo should work correctly. 13744 lt_compile=`echo "$ac_compile" | $SED \ 13745 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13746 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13747 -e 's:$: $lt_compiler_flag:'` 13748 (eval echo "\"\$as_me:13748: $lt_compile\"" >&5) 13749 (eval "$lt_compile" 2>out/conftest.err) 13750 ac_status=$? 13751 cat out/conftest.err >&5 13752 echo "$as_me:13752: \$? = $ac_status" >&5 13753 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13754 then 13755 # The compiler can only warn and ignore the option if not recognized 13756 # So say no if there are warnings 13757 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13758 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13759 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13760 lt_cv_prog_compiler_c_o_CXX=yes 13761 fi 13762 fi 13763 chmod u+w . 2>&5 13764 $RM conftest* 13765 # SGI C++ compiler will create directory out/ii_files/ for 13766 # template instantiation 13767 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13768 $RM out/* && rmdir out 13769 cd .. 13770 $RM -r conftest 13771 $RM conftest* 13772 13773fi 13774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13775$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13776 13777 13778 13779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13780$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13781if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : 13782 $as_echo_n "(cached) " >&6 13783else 13784 lt_cv_prog_compiler_c_o_CXX=no 13785 $RM -r conftest 2>/dev/null 13786 mkdir conftest 13787 cd conftest 13788 mkdir out 13789 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13790 13791 lt_compiler_flag="-o out/conftest2.$ac_objext" 13792 # Insert the option either (1) after the last *FLAGS variable, or 13793 # (2) before a word containing "conftest.", or (3) at the end. 13794 # Note that $ac_compile itself does not contain backslashes and begins 13795 # with a dollar sign (not a hyphen), so the echo should work correctly. 13796 lt_compile=`echo "$ac_compile" | $SED \ 13797 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13798 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13799 -e 's:$: $lt_compiler_flag:'` 13800 (eval echo "\"\$as_me:13800: $lt_compile\"" >&5) 13801 (eval "$lt_compile" 2>out/conftest.err) 13802 ac_status=$? 13803 cat out/conftest.err >&5 13804 echo "$as_me:13804: \$? = $ac_status" >&5 13805 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13806 then 13807 # The compiler can only warn and ignore the option if not recognized 13808 # So say no if there are warnings 13809 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13810 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13811 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13812 lt_cv_prog_compiler_c_o_CXX=yes 13813 fi 13814 fi 13815 chmod u+w . 2>&5 13816 $RM conftest* 13817 # SGI C++ compiler will create directory out/ii_files/ for 13818 # template instantiation 13819 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13820 $RM out/* && rmdir out 13821 cd .. 13822 $RM -r conftest 13823 $RM conftest* 13824 13825fi 13826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13827$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13828 13829 13830 13831 13832hard_links="nottested" 13833if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13834 # do not overwrite the value of need_locks provided by the user 13835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 13836$as_echo_n "checking if we can lock with hard links... " >&6; } 13837 hard_links=yes 13838 $RM conftest* 13839 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13840 touch conftest.a 13841 ln conftest.a conftest.b 2>&5 || hard_links=no 13842 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 13844$as_echo "$hard_links" >&6; } 13845 if test "$hard_links" = no; then 13846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13847$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13848 need_locks=warn 13849 fi 13850else 13851 need_locks=no 13852fi 13853 13854 13855 13856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13857$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13858 13859 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13860 case $host_os in 13861 aix[4-9]*) 13862 # If we're using GNU nm, then we don't want the "-C" option. 13863 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13864 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 13865 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 13866 else 13867 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 13868 fi 13869 ;; 13870 pw32*) 13871 export_symbols_cmds_CXX="$ltdll_cmds" 13872 ;; 13873 cygwin* | mingw* | cegcc*) 13874 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 13875 ;; 13876 linux* | k*bsd*-gnu) 13877 link_all_deplibs_CXX=no 13878 ;; 13879 *) 13880 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13881 ;; 13882 esac 13883 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13884 13885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13886$as_echo "$ld_shlibs_CXX" >&6; } 13887test "$ld_shlibs_CXX" = no && can_build_shared=no 13888 13889with_gnu_ld_CXX=$with_gnu_ld 13890 13891 13892 13893 13894 13895 13896# 13897# Do we need to explicitly link libc? 13898# 13899case "x$archive_cmds_need_lc_CXX" in 13900x|xyes) 13901 # Assume -lc should be added 13902 archive_cmds_need_lc_CXX=yes 13903 13904 if test "$enable_shared" = yes && test "$GCC" = yes; then 13905 case $archive_cmds_CXX in 13906 *'~'*) 13907 # FIXME: we may have to deal with multi-command sequences. 13908 ;; 13909 '$CC '*) 13910 # Test whether the compiler implicitly links with -lc since on some 13911 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13912 # to ld, don't add -lc before -lgcc. 13913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 13914$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13915 $RM conftest* 13916 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13917 13918 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13919 (eval $ac_compile) 2>&5 13920 ac_status=$? 13921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13922 test $ac_status = 0; } 2>conftest.err; then 13923 soname=conftest 13924 lib=conftest 13925 libobjs=conftest.$ac_objext 13926 deplibs= 13927 wl=$lt_prog_compiler_wl_CXX 13928 pic_flag=$lt_prog_compiler_pic_CXX 13929 compiler_flags=-v 13930 linker_flags=-v 13931 verstring= 13932 output_objdir=. 13933 libname=conftest 13934 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13935 allow_undefined_flag_CXX= 13936 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 13937 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 13938 ac_status=$? 13939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13940 test $ac_status = 0; } 13941 then 13942 archive_cmds_need_lc_CXX=no 13943 else 13944 archive_cmds_need_lc_CXX=yes 13945 fi 13946 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13947 else 13948 cat conftest.err 1>&5 13949 fi 13950 $RM conftest* 13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 13952$as_echo "$archive_cmds_need_lc_CXX" >&6; } 13953 ;; 13954 esac 13955 fi 13956 ;; 13957esac 13958 13959 13960 13961 13962 13963 13964 13965 13966 13967 13968 13969 13970 13971 13972 13973 13974 13975 13976 13977 13978 13979 13980 13981 13982 13983 13984 13985 13986 13987 13988 13989 13990 13991 13992 13993 13994 13995 13996 13997 13998 13999 14000 14001 14002 14003 14004 14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 14018 14019 14020 14021 14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 14023$as_echo_n "checking dynamic linker characteristics... " >&6; } 14024 14025library_names_spec= 14026libname_spec='lib$name' 14027soname_spec= 14028shrext_cmds=".so" 14029postinstall_cmds= 14030postuninstall_cmds= 14031finish_cmds= 14032finish_eval= 14033shlibpath_var= 14034shlibpath_overrides_runpath=unknown 14035version_type=none 14036dynamic_linker="$host_os ld.so" 14037sys_lib_dlsearch_path_spec="/lib /usr/lib" 14038need_lib_prefix=unknown 14039hardcode_into_libs=no 14040 14041# when you set need_version to no, make sure it does not cause -set_version 14042# flags to be left without arguments 14043need_version=unknown 14044 14045case $host_os in 14046aix3*) 14047 version_type=linux 14048 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14049 shlibpath_var=LIBPATH 14050 14051 # AIX 3 has no versioning support, so we append a major version to the name. 14052 soname_spec='${libname}${release}${shared_ext}$major' 14053 ;; 14054 14055aix[4-9]*) 14056 version_type=linux 14057 need_lib_prefix=no 14058 need_version=no 14059 hardcode_into_libs=yes 14060 if test "$host_cpu" = ia64; then 14061 # AIX 5 supports IA64 14062 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14063 shlibpath_var=LD_LIBRARY_PATH 14064 else 14065 # With GCC up to 2.95.x, collect2 would create an import file 14066 # for dependence libraries. The import file would start with 14067 # the line `#! .'. This would cause the generated library to 14068 # depend on `.', always an invalid library. This was fixed in 14069 # development snapshots of GCC prior to 3.0. 14070 case $host_os in 14071 aix4 | aix4.[01] | aix4.[01].*) 14072 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14073 echo ' yes ' 14074 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 14075 : 14076 else 14077 can_build_shared=no 14078 fi 14079 ;; 14080 esac 14081 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14082 # soname into executable. Probably we can add versioning support to 14083 # collect2, so additional links can be useful in future. 14084 if test "$aix_use_runtimelinking" = yes; then 14085 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14086 # instead of lib<name>.a to let people know that these are not 14087 # typical AIX shared libraries. 14088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14089 else 14090 # We preserve .a as extension for shared libraries through AIX4.2 14091 # and later when we are not doing run time linking. 14092 library_names_spec='${libname}${release}.a $libname.a' 14093 soname_spec='${libname}${release}${shared_ext}$major' 14094 fi 14095 shlibpath_var=LIBPATH 14096 fi 14097 ;; 14098 14099amigaos*) 14100 case $host_cpu in 14101 powerpc) 14102 # Since July 2007 AmigaOS4 officially supports .so libraries. 14103 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14105 ;; 14106 m68k) 14107 library_names_spec='$libname.ixlibrary $libname.a' 14108 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14109 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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' 14110 ;; 14111 esac 14112 ;; 14113 14114beos*) 14115 library_names_spec='${libname}${shared_ext}' 14116 dynamic_linker="$host_os ld.so" 14117 shlibpath_var=LIBRARY_PATH 14118 ;; 14119 14120bsdi[45]*) 14121 version_type=linux 14122 need_version=no 14123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14124 soname_spec='${libname}${release}${shared_ext}$major' 14125 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14126 shlibpath_var=LD_LIBRARY_PATH 14127 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14128 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14129 # the default ld.so.conf also contains /usr/contrib/lib and 14130 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14131 # libtool to hard-code these into programs 14132 ;; 14133 14134cygwin* | mingw* | pw32* | cegcc*) 14135 version_type=windows 14136 shrext_cmds=".dll" 14137 need_version=no 14138 need_lib_prefix=no 14139 14140 case $GCC,$host_os in 14141 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 14142 library_names_spec='$libname.dll.a' 14143 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14144 postinstall_cmds='base_file=`basename \${file}`~ 14145 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14146 dldir=$destdir/`dirname \$dlpath`~ 14147 test -d \$dldir || mkdir -p \$dldir~ 14148 $install_prog $dir/$dlname \$dldir/$dlname~ 14149 chmod a+x \$dldir/$dlname~ 14150 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14151 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14152 fi' 14153 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14154 dlpath=$dir/\$dldll~ 14155 $RM \$dlpath' 14156 shlibpath_overrides_runpath=yes 14157 14158 case $host_os in 14159 cygwin*) 14160 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14161 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14162 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 14163 ;; 14164 mingw* | cegcc*) 14165 # MinGW DLLs use traditional 'lib' prefix 14166 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14167 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14168 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 14169 # It is most probably a Windows format PATH printed by 14170 # mingw gcc, but we are running on Cygwin. Gcc prints its search 14171 # path with ; separators, and with drive letters. We can handle the 14172 # drive letters (cygwin fileutils understands them), so leave them, 14173 # especially as we might pass files found there to a mingw objdump, 14174 # which wouldn't understand a cygwinified path. Ahh. 14175 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14176 else 14177 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14178 fi 14179 ;; 14180 pw32*) 14181 # pw32 DLLs use 'pw' prefix rather than 'lib' 14182 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14183 ;; 14184 esac 14185 ;; 14186 14187 *) 14188 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14189 ;; 14190 esac 14191 dynamic_linker='Win32 ld.exe' 14192 # FIXME: first we should search . and the directory the executable is in 14193 shlibpath_var=PATH 14194 ;; 14195 14196darwin* | rhapsody*) 14197 dynamic_linker="$host_os dyld" 14198 version_type=darwin 14199 need_lib_prefix=no 14200 need_version=no 14201 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14202 soname_spec='${libname}${release}${major}$shared_ext' 14203 shlibpath_overrides_runpath=yes 14204 shlibpath_var=DYLD_LIBRARY_PATH 14205 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14206 14207 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14208 ;; 14209 14210dgux*) 14211 version_type=linux 14212 need_lib_prefix=no 14213 need_version=no 14214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14215 soname_spec='${libname}${release}${shared_ext}$major' 14216 shlibpath_var=LD_LIBRARY_PATH 14217 ;; 14218 14219freebsd1*) 14220 dynamic_linker=no 14221 ;; 14222 14223freebsd* | dragonfly*) 14224 # DragonFly does not have aout. When/if they implement a new 14225 # versioning mechanism, adjust this. 14226 if test -x /usr/bin/objformat; then 14227 objformat=`/usr/bin/objformat` 14228 else 14229 case $host_os in 14230 freebsd[123]*) objformat=aout ;; 14231 *) objformat=elf ;; 14232 esac 14233 fi 14234 version_type=freebsd-$objformat 14235 case $version_type in 14236 freebsd-elf*) 14237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14238 need_version=no 14239 need_lib_prefix=no 14240 ;; 14241 freebsd-*) 14242 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14243 need_version=yes 14244 ;; 14245 esac 14246 shlibpath_var=LD_LIBRARY_PATH 14247 case $host_os in 14248 freebsd2*) 14249 shlibpath_overrides_runpath=yes 14250 ;; 14251 freebsd3.[01]* | freebsdelf3.[01]*) 14252 shlibpath_overrides_runpath=yes 14253 hardcode_into_libs=yes 14254 ;; 14255 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14256 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14257 shlibpath_overrides_runpath=no 14258 hardcode_into_libs=yes 14259 ;; 14260 *) # from 4.6 on, and DragonFly 14261 shlibpath_overrides_runpath=yes 14262 hardcode_into_libs=yes 14263 ;; 14264 esac 14265 ;; 14266 14267gnu*) 14268 version_type=linux 14269 need_lib_prefix=no 14270 need_version=no 14271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14272 soname_spec='${libname}${release}${shared_ext}$major' 14273 shlibpath_var=LD_LIBRARY_PATH 14274 hardcode_into_libs=yes 14275 ;; 14276 14277hpux9* | hpux10* | hpux11*) 14278 # Give a soname corresponding to the major version so that dld.sl refuses to 14279 # link against other versions. 14280 version_type=sunos 14281 need_lib_prefix=no 14282 need_version=no 14283 case $host_cpu in 14284 ia64*) 14285 shrext_cmds='.so' 14286 hardcode_into_libs=yes 14287 dynamic_linker="$host_os dld.so" 14288 shlibpath_var=LD_LIBRARY_PATH 14289 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14291 soname_spec='${libname}${release}${shared_ext}$major' 14292 if test "X$HPUX_IA64_MODE" = X32; then 14293 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14294 else 14295 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14296 fi 14297 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14298 ;; 14299 hppa*64*) 14300 shrext_cmds='.sl' 14301 hardcode_into_libs=yes 14302 dynamic_linker="$host_os dld.sl" 14303 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14304 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14306 soname_spec='${libname}${release}${shared_ext}$major' 14307 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14308 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14309 ;; 14310 *) 14311 shrext_cmds='.sl' 14312 dynamic_linker="$host_os dld.sl" 14313 shlibpath_var=SHLIB_PATH 14314 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14316 soname_spec='${libname}${release}${shared_ext}$major' 14317 ;; 14318 esac 14319 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14320 postinstall_cmds='chmod 555 $lib' 14321 ;; 14322 14323interix[3-9]*) 14324 version_type=linux 14325 need_lib_prefix=no 14326 need_version=no 14327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14328 soname_spec='${libname}${release}${shared_ext}$major' 14329 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14330 shlibpath_var=LD_LIBRARY_PATH 14331 shlibpath_overrides_runpath=no 14332 hardcode_into_libs=yes 14333 ;; 14334 14335irix5* | irix6* | nonstopux*) 14336 case $host_os in 14337 nonstopux*) version_type=nonstopux ;; 14338 *) 14339 if test "$lt_cv_prog_gnu_ld" = yes; then 14340 version_type=linux 14341 else 14342 version_type=irix 14343 fi ;; 14344 esac 14345 need_lib_prefix=no 14346 need_version=no 14347 soname_spec='${libname}${release}${shared_ext}$major' 14348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14349 case $host_os in 14350 irix5* | nonstopux*) 14351 libsuff= shlibsuff= 14352 ;; 14353 *) 14354 case $LD in # libtool.m4 will add one of these switches to LD 14355 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14356 libsuff= shlibsuff= libmagic=32-bit;; 14357 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14358 libsuff=32 shlibsuff=N32 libmagic=N32;; 14359 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14360 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14361 *) libsuff= shlibsuff= libmagic=never-match;; 14362 esac 14363 ;; 14364 esac 14365 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14366 shlibpath_overrides_runpath=no 14367 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14368 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14369 hardcode_into_libs=yes 14370 ;; 14371 14372# No shared lib support for Linux oldld, aout, or coff. 14373linux*oldld* | linux*aout* | linux*coff*) 14374 dynamic_linker=no 14375 ;; 14376 14377# This must be Linux ELF. 14378linux* | k*bsd*-gnu | kopensolaris*-gnu) 14379 version_type=linux 14380 need_lib_prefix=no 14381 need_version=no 14382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14383 soname_spec='${libname}${release}${shared_ext}$major' 14384 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14385 shlibpath_var=LD_LIBRARY_PATH 14386 shlibpath_overrides_runpath=no 14387 # Some binutils ld are patched to set DT_RUNPATH 14388 save_LDFLAGS=$LDFLAGS 14389 save_libdir=$libdir 14390 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 14391 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 14392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14393/* end confdefs.h. */ 14394 14395int 14396main () 14397{ 14398 14399 ; 14400 return 0; 14401} 14402_ACEOF 14403if ac_fn_cxx_try_link "$LINENO"; then : 14404 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 14405 shlibpath_overrides_runpath=yes 14406fi 14407fi 14408rm -f core conftest.err conftest.$ac_objext \ 14409 conftest$ac_exeext conftest.$ac_ext 14410 LDFLAGS=$save_LDFLAGS 14411 libdir=$save_libdir 14412 14413 # This implies no fast_install, which is unacceptable. 14414 # Some rework will be needed to allow for fast_install 14415 # before this can be enabled. 14416 hardcode_into_libs=yes 14417 14418 # Append ld.so.conf contents to the search path 14419 if test -f /etc/ld.so.conf; then 14420 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;/^$/d' | tr '\n' ' '` 14421 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14422 fi 14423 14424 # We used to test for /lib/ld.so.1 and disable shared libraries on 14425 # powerpc, because MkLinux only supported shared libraries with the 14426 # GNU dynamic linker. Since this was broken with cross compilers, 14427 # most powerpc-linux boxes support dynamic linking these days and 14428 # people can always --disable-shared, the test was removed, and we 14429 # assume the GNU/Linux dynamic linker is in use. 14430 dynamic_linker='GNU/Linux ld.so' 14431 ;; 14432 14433netbsdelf*-gnu) 14434 version_type=linux 14435 need_lib_prefix=no 14436 need_version=no 14437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14438 soname_spec='${libname}${release}${shared_ext}$major' 14439 shlibpath_var=LD_LIBRARY_PATH 14440 shlibpath_overrides_runpath=no 14441 hardcode_into_libs=yes 14442 dynamic_linker='NetBSD ld.elf_so' 14443 ;; 14444 14445netbsd*) 14446 version_type=sunos 14447 need_lib_prefix=no 14448 need_version=no 14449 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14451 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14452 dynamic_linker='NetBSD (a.out) ld.so' 14453 else 14454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14455 soname_spec='${libname}${release}${shared_ext}$major' 14456 dynamic_linker='NetBSD ld.elf_so' 14457 fi 14458 shlibpath_var=LD_LIBRARY_PATH 14459 shlibpath_overrides_runpath=yes 14460 hardcode_into_libs=yes 14461 ;; 14462 14463newsos6) 14464 version_type=linux 14465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14466 shlibpath_var=LD_LIBRARY_PATH 14467 shlibpath_overrides_runpath=yes 14468 ;; 14469 14470*nto* | *qnx*) 14471 version_type=qnx 14472 need_lib_prefix=no 14473 need_version=no 14474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14475 soname_spec='${libname}${release}${shared_ext}$major' 14476 shlibpath_var=LD_LIBRARY_PATH 14477 shlibpath_overrides_runpath=no 14478 hardcode_into_libs=yes 14479 dynamic_linker='ldqnx.so' 14480 ;; 14481 14482openbsd*) 14483 version_type=sunos 14484 sys_lib_dlsearch_path_spec="/usr/lib" 14485 need_lib_prefix=no 14486 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14487 case $host_os in 14488 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14489 *) need_version=no ;; 14490 esac 14491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14492 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14493 shlibpath_var=LD_LIBRARY_PATH 14494 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14495 case $host_os in 14496 openbsd2.[89] | openbsd2.[89].*) 14497 shlibpath_overrides_runpath=no 14498 ;; 14499 *) 14500 shlibpath_overrides_runpath=yes 14501 ;; 14502 esac 14503 else 14504 shlibpath_overrides_runpath=yes 14505 fi 14506 ;; 14507 14508os2*) 14509 libname_spec='$name' 14510 shrext_cmds=".dll" 14511 need_lib_prefix=no 14512 library_names_spec='$libname${shared_ext} $libname.a' 14513 dynamic_linker='OS/2 ld.exe' 14514 shlibpath_var=LIBPATH 14515 ;; 14516 14517osf3* | osf4* | osf5*) 14518 version_type=osf 14519 need_lib_prefix=no 14520 need_version=no 14521 soname_spec='${libname}${release}${shared_ext}$major' 14522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14523 shlibpath_var=LD_LIBRARY_PATH 14524 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14525 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14526 ;; 14527 14528rdos*) 14529 dynamic_linker=no 14530 ;; 14531 14532solaris*) 14533 version_type=linux 14534 need_lib_prefix=no 14535 need_version=no 14536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14537 soname_spec='${libname}${release}${shared_ext}$major' 14538 shlibpath_var=LD_LIBRARY_PATH 14539 shlibpath_overrides_runpath=yes 14540 hardcode_into_libs=yes 14541 # ldd complains unless libraries are executable 14542 postinstall_cmds='chmod +x $lib' 14543 ;; 14544 14545sunos4*) 14546 version_type=sunos 14547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14548 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14549 shlibpath_var=LD_LIBRARY_PATH 14550 shlibpath_overrides_runpath=yes 14551 if test "$with_gnu_ld" = yes; then 14552 need_lib_prefix=no 14553 fi 14554 need_version=yes 14555 ;; 14556 14557sysv4 | sysv4.3*) 14558 version_type=linux 14559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14560 soname_spec='${libname}${release}${shared_ext}$major' 14561 shlibpath_var=LD_LIBRARY_PATH 14562 case $host_vendor in 14563 sni) 14564 shlibpath_overrides_runpath=no 14565 need_lib_prefix=no 14566 runpath_var=LD_RUN_PATH 14567 ;; 14568 siemens) 14569 need_lib_prefix=no 14570 ;; 14571 motorola) 14572 need_lib_prefix=no 14573 need_version=no 14574 shlibpath_overrides_runpath=no 14575 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14576 ;; 14577 esac 14578 ;; 14579 14580sysv4*MP*) 14581 if test -d /usr/nec ;then 14582 version_type=linux 14583 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14584 soname_spec='$libname${shared_ext}.$major' 14585 shlibpath_var=LD_LIBRARY_PATH 14586 fi 14587 ;; 14588 14589sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14590 version_type=freebsd-elf 14591 need_lib_prefix=no 14592 need_version=no 14593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14594 soname_spec='${libname}${release}${shared_ext}$major' 14595 shlibpath_var=LD_LIBRARY_PATH 14596 shlibpath_overrides_runpath=yes 14597 hardcode_into_libs=yes 14598 if test "$with_gnu_ld" = yes; then 14599 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14600 else 14601 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14602 case $host_os in 14603 sco3.2v5*) 14604 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14605 ;; 14606 esac 14607 fi 14608 sys_lib_dlsearch_path_spec='/usr/lib' 14609 ;; 14610 14611tpf*) 14612 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14613 version_type=linux 14614 need_lib_prefix=no 14615 need_version=no 14616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14617 shlibpath_var=LD_LIBRARY_PATH 14618 shlibpath_overrides_runpath=no 14619 hardcode_into_libs=yes 14620 ;; 14621 14622uts4*) 14623 version_type=linux 14624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14625 soname_spec='${libname}${release}${shared_ext}$major' 14626 shlibpath_var=LD_LIBRARY_PATH 14627 ;; 14628 14629*) 14630 dynamic_linker=no 14631 ;; 14632esac 14633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 14634$as_echo "$dynamic_linker" >&6; } 14635test "$dynamic_linker" = no && can_build_shared=no 14636 14637variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14638if test "$GCC" = yes; then 14639 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14640fi 14641 14642if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 14643 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 14644fi 14645if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 14646 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 14647fi 14648 14649 14650 14651 14652 14653 14654 14655 14656 14657 14658 14659 14660 14661 14662 14663 14664 14665 14666 14667 14668 14669 14670 14671 14672 14673 14674 14675 14676 14677 14678 14679 14680 14681 14682 14683 14684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 14685$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 14686hardcode_action_CXX= 14687if test -n "$hardcode_libdir_flag_spec_CXX" || 14688 test -n "$runpath_var_CXX" || 14689 test "X$hardcode_automatic_CXX" = "Xyes" ; then 14690 14691 # We can hardcode non-existent directories. 14692 if test "$hardcode_direct_CXX" != no && 14693 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14694 # have to relink, otherwise we might link with an installed library 14695 # when we should be linking with a yet-to-be-installed one 14696 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 14697 test "$hardcode_minus_L_CXX" != no; then 14698 # Linking always hardcodes the temporary library directory. 14699 hardcode_action_CXX=relink 14700 else 14701 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14702 hardcode_action_CXX=immediate 14703 fi 14704else 14705 # We cannot hardcode anything, or else we can only hardcode existing 14706 # directories. 14707 hardcode_action_CXX=unsupported 14708fi 14709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 14710$as_echo "$hardcode_action_CXX" >&6; } 14711 14712if test "$hardcode_action_CXX" = relink || 14713 test "$inherit_rpath_CXX" = yes; then 14714 # Fast installation is not supported 14715 enable_fast_install=no 14716elif test "$shlibpath_overrides_runpath" = yes || 14717 test "$enable_shared" = no; then 14718 # Fast installation is not necessary 14719 enable_fast_install=needless 14720fi 14721 14722 14723 14724 14725 14726 14727 14728 fi # test -n "$compiler" 14729 14730 CC=$lt_save_CC 14731 LDCXX=$LD 14732 LD=$lt_save_LD 14733 GCC=$lt_save_GCC 14734 with_gnu_ld=$lt_save_with_gnu_ld 14735 lt_cv_path_LDCXX=$lt_cv_path_LD 14736 lt_cv_path_LD=$lt_save_path_LD 14737 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14738 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14739fi # test "$_lt_caught_CXX_error" != yes 14740 14741ac_ext=c 14742ac_cpp='$CPP $CPPFLAGS' 14743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14745ac_compiler_gnu=$ac_cv_c_compiler_gnu 14746 14747 14748 14749 14750 14751 14752 14753 14754 14755 14756 14757 14758 14759 ac_config_commands="$ac_config_commands libtool" 14760 14761 14762 14763 14764# Only expand once: 14765 14766 14767 14768 if test "x$LIBTOOL" != "x"; then 14769 USE_LIBTOOL_TRUE= 14770 USE_LIBTOOL_FALSE='#' 14771else 14772 USE_LIBTOOL_TRUE='#' 14773 USE_LIBTOOL_FALSE= 14774fi 14775 14776 14777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 14778$as_echo_n "checking for inline... " >&6; } 14779if test "${ac_cv_c_inline+set}" = set; then : 14780 $as_echo_n "(cached) " >&6 14781else 14782 ac_cv_c_inline=no 14783for ac_kw in inline __inline__ __inline; do 14784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14785/* end confdefs.h. */ 14786#ifndef __cplusplus 14787typedef int foo_t; 14788static $ac_kw foo_t static_foo () {return 0; } 14789$ac_kw foo_t foo () {return 0; } 14790#endif 14791 14792_ACEOF 14793if ac_fn_c_try_compile "$LINENO"; then : 14794 ac_cv_c_inline=$ac_kw 14795fi 14796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14797 test "$ac_cv_c_inline" != no && break 14798done 14799 14800fi 14801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 14802$as_echo "$ac_cv_c_inline" >&6; } 14803 14804case $ac_cv_c_inline in 14805 inline | yes) ;; 14806 *) 14807 case $ac_cv_c_inline in 14808 no) ac_val=;; 14809 *) ac_val=$ac_cv_c_inline;; 14810 esac 14811 cat >>confdefs.h <<_ACEOF 14812#ifndef __cplusplus 14813#define inline $ac_val 14814#endif 14815_ACEOF 14816 ;; 14817esac 14818 14819 14820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5 14821$as_echo_n "checking for __attribute__... " >&6; } 14822 if test "${ac_cv___attribute__+set}" = set; then : 14823 $as_echo_n "(cached) " >&6 14824else 14825 14826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14827/* end confdefs.h. */ 14828#include <stdlib.h> 14829 static void foo(void) __attribute__ ((unused)); 14830 void foo(void) { exit(1); } 14831int 14832main () 14833{ 14834 14835 ; 14836 return 0; 14837} 14838_ACEOF 14839if ac_fn_c_try_compile "$LINENO"; then : 14840 ac_cv___attribute__=yes 14841else 14842 ac_cv___attribute__=no 14843 14844fi 14845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14846fi 14847 14848 if test "$ac_cv___attribute__" = "yes"; then 14849 14850$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h 14851 14852 fi 14853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5 14854$as_echo "$ac_cv___attribute__" >&6; } 14855 14856 14857# Check whether some low-level functions/files are available 14858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 14859$as_echo_n "checking for ANSI C header files... " >&6; } 14860if test "${ac_cv_header_stdc+set}" = set; then : 14861 $as_echo_n "(cached) " >&6 14862else 14863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14864/* end confdefs.h. */ 14865#include <stdlib.h> 14866#include <stdarg.h> 14867#include <string.h> 14868#include <float.h> 14869 14870int 14871main () 14872{ 14873 14874 ; 14875 return 0; 14876} 14877_ACEOF 14878if ac_fn_c_try_compile "$LINENO"; then : 14879 ac_cv_header_stdc=yes 14880else 14881 ac_cv_header_stdc=no 14882fi 14883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14884 14885if test $ac_cv_header_stdc = yes; then 14886 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 14887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14888/* end confdefs.h. */ 14889#include <string.h> 14890 14891_ACEOF 14892if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14893 $EGREP "memchr" >/dev/null 2>&1; then : 14894 14895else 14896 ac_cv_header_stdc=no 14897fi 14898rm -f conftest* 14899 14900fi 14901 14902if test $ac_cv_header_stdc = yes; then 14903 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 14904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14905/* end confdefs.h. */ 14906#include <stdlib.h> 14907 14908_ACEOF 14909if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14910 $EGREP "free" >/dev/null 2>&1; then : 14911 14912else 14913 ac_cv_header_stdc=no 14914fi 14915rm -f conftest* 14916 14917fi 14918 14919if test $ac_cv_header_stdc = yes; then 14920 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 14921 if test "$cross_compiling" = yes; then : 14922 : 14923else 14924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14925/* end confdefs.h. */ 14926#include <ctype.h> 14927#include <stdlib.h> 14928#if ((' ' & 0x0FF) == 0x020) 14929# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 14930# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 14931#else 14932# define ISLOWER(c) \ 14933 (('a' <= (c) && (c) <= 'i') \ 14934 || ('j' <= (c) && (c) <= 'r') \ 14935 || ('s' <= (c) && (c) <= 'z')) 14936# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 14937#endif 14938 14939#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 14940int 14941main () 14942{ 14943 int i; 14944 for (i = 0; i < 256; i++) 14945 if (XOR (islower (i), ISLOWER (i)) 14946 || toupper (i) != TOUPPER (i)) 14947 return 2; 14948 return 0; 14949} 14950_ACEOF 14951if ac_fn_c_try_run "$LINENO"; then : 14952 14953else 14954 ac_cv_header_stdc=no 14955fi 14956rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14957 conftest.$ac_objext conftest.beam conftest.$ac_ext 14958fi 14959 14960fi 14961fi 14962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 14963$as_echo "$ac_cv_header_stdc" >&6; } 14964if test $ac_cv_header_stdc = yes; then 14965 14966$as_echo "#define STDC_HEADERS 1" >>confdefs.h 14967 14968fi 14969 14970 14971# TODO(csilvers): we could remove a lot when WITH_CPU_PROFILER etc is "no". 14972ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default" 14973if test "x$ac_cv_type___int64" = x""yes; then : 14974 14975cat >>confdefs.h <<_ACEOF 14976#define HAVE___INT64 1 14977_ACEOF 14978 14979 14980fi 14981 # defined in some windows platforms 14982ac_fn_c_check_type "$LINENO" "struct mallinfo" "ac_cv_type_struct_mallinfo" "#include <malloc.h> 14983" 14984if test "x$ac_cv_type_struct_mallinfo" = x""yes; then : 14985 14986cat >>confdefs.h <<_ACEOF 14987#define HAVE_STRUCT_MALLINFO 1 14988_ACEOF 14989 14990 14991fi 14992 14993ac_fn_c_check_type "$LINENO" "Elf32_Versym" "ac_cv_type_Elf32_Versym" "#include <elf.h> 14994" 14995if test "x$ac_cv_type_Elf32_Versym" = x""yes; then : 14996 14997cat >>confdefs.h <<_ACEOF 14998#define HAVE_ELF32_VERSYM 1 14999_ACEOF 15000 15001 15002fi 15003 # for vdso_support.h 15004for ac_func in sbrk 15005do : 15006 ac_fn_c_check_func "$LINENO" "sbrk" "ac_cv_func_sbrk" 15007if test "x$ac_cv_func_sbrk" = x""yes; then : 15008 cat >>confdefs.h <<_ACEOF 15009#define HAVE_SBRK 1 15010_ACEOF 15011 15012fi 15013done 15014 # for tcmalloc to get memory 15015for ac_func in geteuid 15016do : 15017 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid" 15018if test "x$ac_cv_func_geteuid" = x""yes; then : 15019 cat >>confdefs.h <<_ACEOF 15020#define HAVE_GETEUID 1 15021_ACEOF 15022 15023fi 15024done 15025 # for turning off services when run as root 15026for ac_header in features.h 15027do : 15028 ac_fn_c_check_header_mongrel "$LINENO" "features.h" "ac_cv_header_features_h" "$ac_includes_default" 15029if test "x$ac_cv_header_features_h" = x""yes; then : 15030 cat >>confdefs.h <<_ACEOF 15031#define HAVE_FEATURES_H 1 15032_ACEOF 15033 15034fi 15035 15036done 15037 # for vdso_support.h 15038for ac_header in malloc.h 15039do : 15040 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" 15041if test "x$ac_cv_header_malloc_h" = x""yes; then : 15042 cat >>confdefs.h <<_ACEOF 15043#define HAVE_MALLOC_H 1 15044_ACEOF 15045 15046fi 15047 15048done 15049 # some systems define stuff there, others not 15050for ac_header in sys/malloc.h 15051do : 15052 ac_fn_c_check_header_mongrel "$LINENO" "sys/malloc.h" "ac_cv_header_sys_malloc_h" "$ac_includes_default" 15053if test "x$ac_cv_header_sys_malloc_h" = x""yes; then : 15054 cat >>confdefs.h <<_ACEOF 15055#define HAVE_SYS_MALLOC_H 1 15056_ACEOF 15057 15058fi 15059 15060done 15061 # where some versions of OS X put malloc.h 15062for ac_header in malloc/malloc.h 15063do : 15064 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default" 15065if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then : 15066 cat >>confdefs.h <<_ACEOF 15067#define HAVE_MALLOC_MALLOC_H 1 15068_ACEOF 15069 15070fi 15071 15072done 15073 # another place OS X puts malloc.h (?) 15074for ac_header in glob.h 15075do : 15076 ac_fn_c_check_header_mongrel "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default" 15077if test "x$ac_cv_header_glob_h" = x""yes; then : 15078 cat >>confdefs.h <<_ACEOF 15079#define HAVE_GLOB_H 1 15080_ACEOF 15081 15082fi 15083 15084done 15085 # for heap-profile-table (cleaning up profiles) 15086for ac_header in execinfo.h 15087do : 15088 ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default" 15089if test "x$ac_cv_header_execinfo_h" = x""yes; then : 15090 cat >>confdefs.h <<_ACEOF 15091#define HAVE_EXECINFO_H 1 15092_ACEOF 15093 15094fi 15095 15096done 15097 # for stacktrace? and heapchecker_unittest 15098for ac_header in libunwind.h 15099do : 15100 ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default" 15101if test "x$ac_cv_header_libunwind_h" = x""yes; then : 15102 cat >>confdefs.h <<_ACEOF 15103#define HAVE_LIBUNWIND_H 1 15104_ACEOF 15105 15106fi 15107 15108done 15109 # for stacktrace 15110for ac_header in unwind.h 15111do : 15112 ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default" 15113if test "x$ac_cv_header_unwind_h" = x""yes; then : 15114 cat >>confdefs.h <<_ACEOF 15115#define HAVE_UNWIND_H 1 15116_ACEOF 15117 15118fi 15119 15120done 15121 # for stacktrace 15122for ac_header in sched.h 15123do : 15124 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default" 15125if test "x$ac_cv_header_sched_h" = x""yes; then : 15126 cat >>confdefs.h <<_ACEOF 15127#define HAVE_SCHED_H 1 15128_ACEOF 15129 15130fi 15131 15132done 15133 # for being nice in our spinlock code 15134for ac_header in conflict-signal.h 15135do : 15136 ac_fn_c_check_header_mongrel "$LINENO" "conflict-signal.h" "ac_cv_header_conflict_signal_h" "$ac_includes_default" 15137if test "x$ac_cv_header_conflict_signal_h" = x""yes; then : 15138 cat >>confdefs.h <<_ACEOF 15139#define HAVE_CONFLICT_SIGNAL_H 1 15140_ACEOF 15141 15142fi 15143 15144done 15145 # defined on some windows platforms? 15146for ac_header in sys/prctl.h 15147do : 15148 ac_fn_c_check_header_mongrel "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default" 15149if test "x$ac_cv_header_sys_prctl_h" = x""yes; then : 15150 cat >>confdefs.h <<_ACEOF 15151#define HAVE_SYS_PRCTL_H 1 15152_ACEOF 15153 15154fi 15155 15156done 15157 # for thread_lister (needed by leak-checker) 15158for ac_header in linux/ptrace.h 15159do : 15160 ac_fn_c_check_header_mongrel "$LINENO" "linux/ptrace.h" "ac_cv_header_linux_ptrace_h" "$ac_includes_default" 15161if test "x$ac_cv_header_linux_ptrace_h" = x""yes; then : 15162 cat >>confdefs.h <<_ACEOF 15163#define HAVE_LINUX_PTRACE_H 1 15164_ACEOF 15165 15166fi 15167 15168done 15169# also needed by leak-checker 15170for ac_header in sys/syscall.h 15171do : 15172 ac_fn_c_check_header_mongrel "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default" 15173if test "x$ac_cv_header_sys_syscall_h" = x""yes; then : 15174 cat >>confdefs.h <<_ACEOF 15175#define HAVE_SYS_SYSCALL_H 1 15176_ACEOF 15177 15178fi 15179 15180done 15181 15182for ac_header in sys/socket.h 15183do : 15184 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 15185if test "x$ac_cv_header_sys_socket_h" = x""yes; then : 15186 cat >>confdefs.h <<_ACEOF 15187#define HAVE_SYS_SOCKET_H 1 15188_ACEOF 15189 15190fi 15191 15192done 15193 # optional; for forking out to symbolizer 15194for ac_header in sys/wait.h 15195do : 15196 ac_fn_c_check_header_mongrel "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default" 15197if test "x$ac_cv_header_sys_wait_h" = x""yes; then : 15198 cat >>confdefs.h <<_ACEOF 15199#define HAVE_SYS_WAIT_H 1 15200_ACEOF 15201 15202fi 15203 15204done 15205 # optional; for forking out to symbolizer 15206for ac_header in poll.h 15207do : 15208 ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default" 15209if test "x$ac_cv_header_poll_h" = x""yes; then : 15210 cat >>confdefs.h <<_ACEOF 15211#define HAVE_POLL_H 1 15212_ACEOF 15213 15214fi 15215 15216done 15217 # optional; for forking out to symbolizer 15218for ac_header in fcntl.h 15219do : 15220 ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" 15221if test "x$ac_cv_header_fcntl_h" = x""yes; then : 15222 cat >>confdefs.h <<_ACEOF 15223#define HAVE_FCNTL_H 1 15224_ACEOF 15225 15226fi 15227 15228done 15229 # for tcmalloc_unittest 15230for ac_header in grp.h 15231do : 15232 ac_fn_c_check_header_mongrel "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default" 15233if test "x$ac_cv_header_grp_h" = x""yes; then : 15234 cat >>confdefs.h <<_ACEOF 15235#define HAVE_GRP_H 1 15236_ACEOF 15237 15238fi 15239 15240done 15241 # for heapchecker_unittest 15242for ac_header in pwd.h 15243do : 15244 ac_fn_c_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default" 15245if test "x$ac_cv_header_pwd_h" = x""yes; then : 15246 cat >>confdefs.h <<_ACEOF 15247#define HAVE_PWD_H 1 15248_ACEOF 15249 15250fi 15251 15252done 15253 # for heapchecker_unittest 15254for ac_header in sys/resource.h 15255do : 15256 ac_fn_c_check_header_mongrel "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default" 15257if test "x$ac_cv_header_sys_resource_h" = x""yes; then : 15258 cat >>confdefs.h <<_ACEOF 15259#define HAVE_SYS_RESOURCE_H 1 15260_ACEOF 15261 15262fi 15263 15264done 15265 # for memalign_unittest.cc 15266for ac_header in valgrind.h 15267do : 15268 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default" 15269if test "x$ac_cv_header_valgrind_h" = x""yes; then : 15270 cat >>confdefs.h <<_ACEOF 15271#define HAVE_VALGRIND_H 1 15272_ACEOF 15273 15274fi 15275 15276done 15277 # we have a local copy if this isn't found 15278for ac_header in sys/cdefs.h 15279do : 15280 ac_fn_c_check_header_mongrel "$LINENO" "sys/cdefs.h" "ac_cv_header_sys_cdefs_h" "$ac_includes_default" 15281if test "x$ac_cv_header_sys_cdefs_h" = x""yes; then : 15282 cat >>confdefs.h <<_ACEOF 15283#define HAVE_SYS_CDEFS_H 1 15284_ACEOF 15285 15286fi 15287 15288done 15289 # Where glibc defines __THROW 15290for ac_header in features.h 15291do : 15292 ac_fn_c_check_header_mongrel "$LINENO" "features.h" "ac_cv_header_features_h" "$ac_includes_default" 15293if test "x$ac_cv_header_features_h" = x""yes; then : 15294 cat >>confdefs.h <<_ACEOF 15295#define HAVE_FEATURES_H 1 15296_ACEOF 15297 15298fi 15299 15300done 15301 # Where __GLIBC__ is defined 15302# We also need <ucontext.h>/<sys/ucontext.h>, but we get those from 15303# AC_PC_FROM_UCONTEXT, below. 15304 15305# We override a lot of memory allocation routines, not all of which are 15306# standard. For those the system doesn't declare, we'll declare ourselves. 15307ac_fn_c_check_decl "$LINENO" "cfree" "ac_cv_have_decl_cfree" "#define _XOPEN_SOURCE 600 15308 #include <stdlib.h> 15309 #include <malloc.h> 15310" 15311if test "x$ac_cv_have_decl_cfree" = x""yes; then : 15312 ac_have_decl=1 15313else 15314 ac_have_decl=0 15315fi 15316 15317cat >>confdefs.h <<_ACEOF 15318#define HAVE_DECL_CFREE $ac_have_decl 15319_ACEOF 15320ac_fn_c_check_decl "$LINENO" "posix_memalign" "ac_cv_have_decl_posix_memalign" "#define _XOPEN_SOURCE 600 15321 #include <stdlib.h> 15322 #include <malloc.h> 15323" 15324if test "x$ac_cv_have_decl_posix_memalign" = x""yes; then : 15325 ac_have_decl=1 15326else 15327 ac_have_decl=0 15328fi 15329 15330cat >>confdefs.h <<_ACEOF 15331#define HAVE_DECL_POSIX_MEMALIGN $ac_have_decl 15332_ACEOF 15333ac_fn_c_check_decl "$LINENO" "memalign" "ac_cv_have_decl_memalign" "#define _XOPEN_SOURCE 600 15334 #include <stdlib.h> 15335 #include <malloc.h> 15336" 15337if test "x$ac_cv_have_decl_memalign" = x""yes; then : 15338 ac_have_decl=1 15339else 15340 ac_have_decl=0 15341fi 15342 15343cat >>confdefs.h <<_ACEOF 15344#define HAVE_DECL_MEMALIGN $ac_have_decl 15345_ACEOF 15346ac_fn_c_check_decl "$LINENO" "valloc" "ac_cv_have_decl_valloc" "#define _XOPEN_SOURCE 600 15347 #include <stdlib.h> 15348 #include <malloc.h> 15349" 15350if test "x$ac_cv_have_decl_valloc" = x""yes; then : 15351 ac_have_decl=1 15352else 15353 ac_have_decl=0 15354fi 15355 15356cat >>confdefs.h <<_ACEOF 15357#define HAVE_DECL_VALLOC $ac_have_decl 15358_ACEOF 15359ac_fn_c_check_decl "$LINENO" "pvalloc" "ac_cv_have_decl_pvalloc" "#define _XOPEN_SOURCE 600 15360 #include <stdlib.h> 15361 #include <malloc.h> 15362" 15363if test "x$ac_cv_have_decl_pvalloc" = x""yes; then : 15364 ac_have_decl=1 15365else 15366 ac_have_decl=0 15367fi 15368 15369cat >>confdefs.h <<_ACEOF 15370#define HAVE_DECL_PVALLOC $ac_have_decl 15371_ACEOF 15372 15373 15374if test "$ac_cv_type_struct_mallinfo" = yes; then 15375 ac_cv_have_struct_mallinfo=1 15376 # gperftools/tcmalloc.h needs this 15377else 15378 ac_cv_have_struct_mallinfo=0 15379 15380fi 15381 15382# We need to check for mmap. cygwin supports mmap, but the autoconf 15383# test doesn't work on cygwin: 15384# http://www.cygwin.com/ml/cygwin/2002-04/msg00412.html 15385# This workaround comes from 15386# http://cygwin.com/ml/cygwin/2004-11/msg00138.html 15387case "$host" in 15388 *-*-cygwin*) 15389 ac_cv_func_mmap_fixed_mapped=yes 15390 15391$as_echo "#define HAVE_MMAP 1" >>confdefs.h 15392 15393 ;; 15394 *) 15395 15396 15397 for ac_header in $ac_header_list 15398do : 15399 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15400ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 15401" 15402eval as_val=\$$as_ac_Header 15403 if test "x$as_val" = x""yes; then : 15404 cat >>confdefs.h <<_ACEOF 15405#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15406_ACEOF 15407 15408fi 15409 15410done 15411 15412 15413 15414 15415 15416 15417 15418 15419for ac_func in getpagesize 15420do : 15421 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 15422if test "x$ac_cv_func_getpagesize" = x""yes; then : 15423 cat >>confdefs.h <<_ACEOF 15424#define HAVE_GETPAGESIZE 1 15425_ACEOF 15426 15427fi 15428done 15429 15430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 15431$as_echo_n "checking for working mmap... " >&6; } 15432if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : 15433 $as_echo_n "(cached) " >&6 15434else 15435 if test "$cross_compiling" = yes; then : 15436 ac_cv_func_mmap_fixed_mapped=no 15437else 15438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15439/* end confdefs.h. */ 15440$ac_includes_default 15441/* malloc might have been renamed as rpl_malloc. */ 15442#undef malloc 15443 15444/* Thanks to Mike Haertel and Jim Avera for this test. 15445 Here is a matrix of mmap possibilities: 15446 mmap private not fixed 15447 mmap private fixed at somewhere currently unmapped 15448 mmap private fixed at somewhere already mapped 15449 mmap shared not fixed 15450 mmap shared fixed at somewhere currently unmapped 15451 mmap shared fixed at somewhere already mapped 15452 For private mappings, we should verify that changes cannot be read() 15453 back from the file, nor mmap's back from the file at a different 15454 address. (There have been systems where private was not correctly 15455 implemented like the infamous i386 svr4.0, and systems where the 15456 VM page cache was not coherent with the file system buffer cache 15457 like early versions of FreeBSD and possibly contemporary NetBSD.) 15458 For shared mappings, we should conversely verify that changes get 15459 propagated back to all the places they're supposed to be. 15460 15461 Grep wants private fixed already mapped. 15462 The main things grep needs to know about mmap are: 15463 * does it exist and is it safe to write into the mmap'd area 15464 * how to use it (BSD variants) */ 15465 15466#include <fcntl.h> 15467#include <sys/mman.h> 15468 15469#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 15470char *malloc (); 15471#endif 15472 15473/* This mess was copied from the GNU getpagesize.h. */ 15474#ifndef HAVE_GETPAGESIZE 15475# ifdef _SC_PAGESIZE 15476# define getpagesize() sysconf(_SC_PAGESIZE) 15477# else /* no _SC_PAGESIZE */ 15478# ifdef HAVE_SYS_PARAM_H 15479# include <sys/param.h> 15480# ifdef EXEC_PAGESIZE 15481# define getpagesize() EXEC_PAGESIZE 15482# else /* no EXEC_PAGESIZE */ 15483# ifdef NBPG 15484# define getpagesize() NBPG * CLSIZE 15485# ifndef CLSIZE 15486# define CLSIZE 1 15487# endif /* no CLSIZE */ 15488# else /* no NBPG */ 15489# ifdef NBPC 15490# define getpagesize() NBPC 15491# else /* no NBPC */ 15492# ifdef PAGESIZE 15493# define getpagesize() PAGESIZE 15494# endif /* PAGESIZE */ 15495# endif /* no NBPC */ 15496# endif /* no NBPG */ 15497# endif /* no EXEC_PAGESIZE */ 15498# else /* no HAVE_SYS_PARAM_H */ 15499# define getpagesize() 8192 /* punt totally */ 15500# endif /* no HAVE_SYS_PARAM_H */ 15501# endif /* no _SC_PAGESIZE */ 15502 15503#endif /* no HAVE_GETPAGESIZE */ 15504 15505int 15506main () 15507{ 15508 char *data, *data2, *data3; 15509 const char *cdata2; 15510 int i, pagesize; 15511 int fd, fd2; 15512 15513 pagesize = getpagesize (); 15514 15515 /* First, make a file with some known garbage in it. */ 15516 data = (char *) malloc (pagesize); 15517 if (!data) 15518 return 1; 15519 for (i = 0; i < pagesize; ++i) 15520 *(data + i) = rand (); 15521 umask (0); 15522 fd = creat ("conftest.mmap", 0600); 15523 if (fd < 0) 15524 return 2; 15525 if (write (fd, data, pagesize) != pagesize) 15526 return 3; 15527 close (fd); 15528 15529 /* Next, check that the tail of a page is zero-filled. File must have 15530 non-zero length, otherwise we risk SIGBUS for entire page. */ 15531 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 15532 if (fd2 < 0) 15533 return 4; 15534 cdata2 = ""; 15535 if (write (fd2, cdata2, 1) != 1) 15536 return 5; 15537 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 15538 if (data2 == MAP_FAILED) 15539 return 6; 15540 for (i = 0; i < pagesize; ++i) 15541 if (*(data2 + i)) 15542 return 7; 15543 close (fd2); 15544 if (munmap (data2, pagesize)) 15545 return 8; 15546 15547 /* Next, try to mmap the file at a fixed address which already has 15548 something else allocated at it. If we can, also make sure that 15549 we see the same garbage. */ 15550 fd = open ("conftest.mmap", O_RDWR); 15551 if (fd < 0) 15552 return 9; 15553 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 15554 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 15555 return 10; 15556 for (i = 0; i < pagesize; ++i) 15557 if (*(data + i) != *(data2 + i)) 15558 return 11; 15559 15560 /* Finally, make sure that changes to the mapped area do not 15561 percolate back to the file as seen by read(). (This is a bug on 15562 some variants of i386 svr4.0.) */ 15563 for (i = 0; i < pagesize; ++i) 15564 *(data2 + i) = *(data2 + i) + 1; 15565 data3 = (char *) malloc (pagesize); 15566 if (!data3) 15567 return 12; 15568 if (read (fd, data3, pagesize) != pagesize) 15569 return 13; 15570 for (i = 0; i < pagesize; ++i) 15571 if (*(data + i) != *(data3 + i)) 15572 return 14; 15573 close (fd); 15574 return 0; 15575} 15576_ACEOF 15577if ac_fn_c_try_run "$LINENO"; then : 15578 ac_cv_func_mmap_fixed_mapped=yes 15579else 15580 ac_cv_func_mmap_fixed_mapped=no 15581fi 15582rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15583 conftest.$ac_objext conftest.beam conftest.$ac_ext 15584fi 15585 15586fi 15587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 15588$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 15589if test $ac_cv_func_mmap_fixed_mapped = yes; then 15590 15591$as_echo "#define HAVE_MMAP 1" >>confdefs.h 15592 15593fi 15594rm -f conftest.mmap conftest.txt 15595 15596 ;; 15597esac 15598 15599# If AtomicWord != Atomic32, we need to define two versions of all the 15600# atomicops functions. If they're the same, we want to define only one. 15601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if int32_t is the same type as intptr_t" >&5 15602$as_echo_n "checking if int32_t is the same type as intptr_t... " >&6; } 15603cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15604/* end confdefs.h. */ 15605#include <stdint.h> 15606int 15607main () 15608{ 15609int32_t v1 = 0; intptr_t v2 = 0; return (&v1 - &v2) 15610 ; 15611 return 0; 15612} 15613_ACEOF 15614if ac_fn_c_try_compile "$LINENO"; then : 15615 15616$as_echo "#define INT32_EQUALS_INTPTR 1" >>confdefs.h 15617 15618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15619$as_echo "yes" >&6; } 15620else 15621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15622$as_echo "no" >&6; } 15623fi 15624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15625 15626# We want to access the "PC" (Program Counter) register from a struct 15627# ucontext. Every system has its own way of doing that. We try all the 15628# possibilities we know about. Note REG_PC should come first (REG_RIP 15629# is also defined on solaris, but does the wrong thing). But don't 15630# bother if we're not doing cpu-profiling. 15631# [*] means that we've not actually tested one of these systems 15632if test "$enable_cpu_profiler" = yes; then 15633 for ac_header in ucontext.h 15634do : 15635 ac_fn_c_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default" 15636if test "x$ac_cv_header_ucontext_h" = x""yes; then : 15637 cat >>confdefs.h <<_ACEOF 15638#define HAVE_UCONTEXT_H 1 15639_ACEOF 15640 15641fi 15642 15643done 15644 15645 # Redhat 7 has <sys/ucontext.h>, but it barfs if we #include it directly 15646 # (this was fixed in later redhats). <ucontext.h> works fine, so use that. 15647 if grep "Red Hat Linux release 7" /etc/redhat-release >/dev/null 2>&1; then 15648 15649$as_echo "#define HAVE_SYS_UCONTEXT_H 0" >>confdefs.h 15650 15651 ac_cv_header_sys_ucontext_h=no 15652 else 15653 for ac_header in sys/ucontext.h 15654do : 15655 ac_fn_c_check_header_mongrel "$LINENO" "sys/ucontext.h" "ac_cv_header_sys_ucontext_h" "$ac_includes_default" 15656if test "x$ac_cv_header_sys_ucontext_h" = x""yes; then : 15657 cat >>confdefs.h <<_ACEOF 15658#define HAVE_SYS_UCONTEXT_H 1 15659_ACEOF 15660 15661fi 15662 15663done 15664 # ucontext on OS X 10.6 (at least) 15665 fi 15666 for ac_header in cygwin/signal.h 15667do : 15668 ac_fn_c_check_header_mongrel "$LINENO" "cygwin/signal.h" "ac_cv_header_cygwin_signal_h" "$ac_includes_default" 15669if test "x$ac_cv_header_cygwin_signal_h" = x""yes; then : 15670 cat >>confdefs.h <<_ACEOF 15671#define HAVE_CYGWIN_SIGNAL_H 1 15672_ACEOF 15673 15674fi 15675 15676done 15677 # ucontext on cywgin 15678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to access the program counter from a struct ucontext" >&5 15679$as_echo_n "checking how to access the program counter from a struct ucontext... " >&6; } 15680 pc_fields=" uc_mcontext.gregs[REG_PC]" # Solaris x86 (32 + 64 bit) 15681 pc_fields="$pc_fields uc_mcontext.gregs[REG_EIP]" # Linux (i386) 15682 pc_fields="$pc_fields uc_mcontext.gregs[REG_RIP]" # Linux (x86_64) 15683 pc_fields="$pc_fields uc_mcontext.sc_ip" # Linux (ia64) 15684 pc_fields="$pc_fields uc_mcontext.uc_regs->gregs[PT_NIP]" # Linux (ppc) 15685 pc_fields="$pc_fields uc_mcontext.gregs[R15]" # Linux (arm old [untested]) 15686 pc_fields="$pc_fields uc_mcontext.arm_pc" # Linux (arm arch 5) 15687 pc_fields="$pc_fields uc_mcontext.gp_regs[PT_NIP]" # Suse SLES 11 (ppc64) 15688 pc_fields="$pc_fields uc_mcontext.mc_eip" # FreeBSD (i386) 15689 pc_fields="$pc_fields uc_mcontext.mc_rip" # FreeBSD (x86_64 [untested]) 15690 pc_fields="$pc_fields uc_mcontext.__gregs[_REG_EIP]" # NetBSD (i386) 15691 pc_fields="$pc_fields uc_mcontext.__gregs[_REG_RIP]" # NetBSD (x86_64) 15692 pc_fields="$pc_fields uc_mcontext->ss.eip" # OS X (i386, <=10.4) 15693 pc_fields="$pc_fields uc_mcontext->__ss.__eip" # OS X (i386, >=10.5) 15694 pc_fields="$pc_fields uc_mcontext->ss.rip" # OS X (x86_64) 15695 pc_fields="$pc_fields uc_mcontext->__ss.__rip" # OS X (>=10.5 [untested]) 15696 pc_fields="$pc_fields uc_mcontext->ss.srr0" # OS X (ppc, ppc64 [untested]) 15697 pc_fields="$pc_fields uc_mcontext->__ss.__srr0" # OS X (>=10.5 [untested]) 15698 pc_field_found=false 15699 for pc_field in $pc_fields; do 15700 if ! $pc_field_found; then 15701 # Prefer sys/ucontext.h to ucontext.h, for OS X's sake. 15702 if test "x$ac_cv_header_cygwin_signal_h" = xyes; then 15703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15704/* end confdefs.h. */ 15705#define _GNU_SOURCE 1 15706 #include <cygwin/signal.h> 15707int 15708main () 15709{ 15710ucontext_t u; return u.$pc_field == 0; 15711 ; 15712 return 0; 15713} 15714_ACEOF 15715if ac_fn_c_try_compile "$LINENO"; then : 15716 15717cat >>confdefs.h <<_ACEOF 15718#define PC_FROM_UCONTEXT $pc_field 15719_ACEOF 15720 15721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5 15722$as_echo "$pc_field" >&6; } 15723 pc_field_found=true 15724fi 15725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15726 elif test "x$ac_cv_header_sys_ucontext_h" = xyes; then 15727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15728/* end confdefs.h. */ 15729#define _GNU_SOURCE 1 15730 #include <sys/ucontext.h> 15731int 15732main () 15733{ 15734ucontext_t u; return u.$pc_field == 0; 15735 ; 15736 return 0; 15737} 15738_ACEOF 15739if ac_fn_c_try_compile "$LINENO"; then : 15740 15741cat >>confdefs.h <<_ACEOF 15742#define PC_FROM_UCONTEXT $pc_field 15743_ACEOF 15744 15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5 15746$as_echo "$pc_field" >&6; } 15747 pc_field_found=true 15748fi 15749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15750 elif test "x$ac_cv_header_ucontext_h" = xyes; then 15751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15752/* end confdefs.h. */ 15753#define _GNU_SOURCE 1 15754 #include <ucontext.h> 15755int 15756main () 15757{ 15758ucontext_t u; return u.$pc_field == 0; 15759 ; 15760 return 0; 15761} 15762_ACEOF 15763if ac_fn_c_try_compile "$LINENO"; then : 15764 15765cat >>confdefs.h <<_ACEOF 15766#define PC_FROM_UCONTEXT $pc_field 15767_ACEOF 15768 15769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5 15770$as_echo "$pc_field" >&6; } 15771 pc_field_found=true 15772fi 15773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15774 else # hope some standard header gives it to us 15775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15776/* end confdefs.h. */ 15777 15778int 15779main () 15780{ 15781ucontext_t u; return u.$pc_field == 0; 15782 ; 15783 return 0; 15784} 15785_ACEOF 15786if ac_fn_c_try_compile "$LINENO"; then : 15787 15788cat >>confdefs.h <<_ACEOF 15789#define PC_FROM_UCONTEXT $pc_field 15790_ACEOF 15791 15792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5 15793$as_echo "$pc_field" >&6; } 15794 pc_field_found=true 15795fi 15796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15797 fi 15798 fi 15799 done 15800 if ! $pc_field_found; then 15801 pc_fields=" sc_eip" # OpenBSD (i386) 15802 pc_fields="$pc_fields sc_rip" # OpenBSD (x86_64) 15803 for pc_field in $pc_fields; do 15804 if ! $pc_field_found; then 15805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15806/* end confdefs.h. */ 15807#include <signal.h> 15808int 15809main () 15810{ 15811ucontext_t u; return u.$pc_field == 0; 15812 ; 15813 return 0; 15814} 15815_ACEOF 15816if ac_fn_c_try_compile "$LINENO"; then : 15817 15818cat >>confdefs.h <<_ACEOF 15819#define PC_FROM_UCONTEXT $pc_field 15820_ACEOF 15821 15822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5 15823$as_echo "$pc_field" >&6; } 15824 pc_field_found=true 15825fi 15826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15827 fi 15828 done 15829 fi 15830 if ! $pc_field_found; then 15831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the PC. Will not try to compile libprofiler..." >&5 15832$as_echo "$as_me: WARNING: Could not find the PC. Will not try to compile libprofiler..." >&2;}; 15833 enable_cpu_profiler=no 15834 fi 15835fi 15836 15837# Some tests test the behavior of .so files, and only make sense for dynamic. 15838 if test "$enable_static" = yes; then 15839 ENABLE_STATIC_TRUE= 15840 ENABLE_STATIC_FALSE='#' 15841else 15842 ENABLE_STATIC_TRUE='#' 15843 ENABLE_STATIC_FALSE= 15844fi 15845 15846 15847# We want to link in libunwind if it exists 15848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lunwind" >&5 15849$as_echo_n "checking for backtrace in -lunwind... " >&6; } 15850if test "${ac_cv_lib_unwind_backtrace+set}" = set; then : 15851 $as_echo_n "(cached) " >&6 15852else 15853 ac_check_lib_save_LIBS=$LIBS 15854LIBS="-lunwind $LIBS" 15855cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15856/* end confdefs.h. */ 15857 15858/* Override any GCC internal prototype to avoid an error. 15859 Use char because int might match the return type of a GCC 15860 builtin and then its argument prototype would still apply. */ 15861#ifdef __cplusplus 15862extern "C" 15863#endif 15864char backtrace (); 15865int 15866main () 15867{ 15868return backtrace (); 15869 ; 15870 return 0; 15871} 15872_ACEOF 15873if ac_fn_c_try_link "$LINENO"; then : 15874 ac_cv_lib_unwind_backtrace=yes 15875else 15876 ac_cv_lib_unwind_backtrace=no 15877fi 15878rm -f core conftest.err conftest.$ac_objext \ 15879 conftest$ac_exeext conftest.$ac_ext 15880LIBS=$ac_check_lib_save_LIBS 15881fi 15882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_backtrace" >&5 15883$as_echo "$ac_cv_lib_unwind_backtrace" >&6; } 15884if test "x$ac_cv_lib_unwind_backtrace" = x""yes; then : 15885 UNWIND_LIBS=-lunwind 15886else 15887 UNWIND_LIBS= 15888fi 15889 15890 15891 15892# On x86_64, instead of libunwind, we can choose to compile with frame-pointers 15893# (This isn't needed on i386, where -fno-omit-frame-pointer is the default). 15894# Check whether --enable-frame_pointers was given. 15895if test "${enable_frame_pointers+set}" = set; then : 15896 enableval=$enable_frame_pointers; 15897else 15898 enable_frame_pointers=no 15899fi 15900 15901 if test "$enable_frame_pointers" = yes; then 15902 ENABLE_FRAME_POINTERS_TRUE= 15903 ENABLE_FRAME_POINTERS_FALSE='#' 15904else 15905 ENABLE_FRAME_POINTERS_TRUE='#' 15906 ENABLE_FRAME_POINTERS_FALSE= 15907fi 15908 15909 15910# Some x86_64 systems do not insert frame pointers by default (all 15911# i386 systems that I know of, do. I don't know about non-x86 chips). 15912# We want to see if the current system is one of those. 15913cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15914/* end confdefs.h. */ 15915 15916int 15917main () 15918{ 15919return __x86_64__ == 1 ? 0 : 1 15920 ; 15921 return 0; 15922} 15923_ACEOF 15924if ac_fn_c_try_compile "$LINENO"; then : 15925 is_x86_64=yes 15926else 15927 is_x86_64=no 15928fi 15929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15930OLD_CFLAGS="$CFLAGS" 15931CFLAGS="$CFLAGS -S -O2 -o fp.s" 15932# This test will always fail because we don't name our output file properly. 15933# We do our own determination of success/failure in the grep, below. 15934cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15935/* end confdefs.h. */ 15936int f(int x) {return x;} 15937int 15938main () 15939{ 15940return f(0); 15941 ; 15942 return 0; 15943} 15944_ACEOF 15945if ac_fn_c_try_compile "$LINENO"; then : 15946 : 15947else 15948 : 15949fi 15950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15951 if test "$is_x86_64" = yes && ! grep 'mov.*rsp.*rbp' fp.s >/dev/null 2>&1; then 15952 X86_64_AND_NO_FP_BY_DEFAULT_TRUE= 15953 X86_64_AND_NO_FP_BY_DEFAULT_FALSE='#' 15954else 15955 X86_64_AND_NO_FP_BY_DEFAULT_TRUE='#' 15956 X86_64_AND_NO_FP_BY_DEFAULT_FALSE= 15957fi 15958 15959rm fp.s 15960CFLAGS="$OLD_CFLAGS" 15961 15962# We need to know if we're i386 so we can turn on -mmms, which is not 15963# on by default for i386 (it is for x86_64). 15964cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15965/* end confdefs.h. */ 15966 15967int 15968main () 15969{ 15970return __i386__ == 1 ? 0 : 1 15971 ; 15972 return 0; 15973} 15974_ACEOF 15975if ac_fn_c_try_compile "$LINENO"; then : 15976 is_i386=yes 15977else 15978 is_i386=no 15979fi 15980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15981 if test "$is_i386" = yes; then 15982 I386_TRUE= 15983 I386_FALSE='#' 15984else 15985 I386_TRUE='#' 15986 I386_FALSE= 15987fi 15988 15989 15990# See if the compiler supports -Wno-unused-result. 15991# Newer ubuntu's turn on -D_FORTIFY_SOURCE=2, enabling 15992# __attribute__((warn_unused_result)) for things like write(), 15993# which we don't care about. 15994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports -Wno-unused-result" >&5 15995$as_echo_n "checking if the compiler supports -Wno-unused-result... " >&6; } 15996if test "${perftools_cv_w_no_unused_result+set}" = set; then : 15997 $as_echo_n "(cached) " >&6 15998else 15999 OLD_CFLAGS="$CFLAGS" 16000 CFLAGS="$CFLAGS -Wno-error -Wno-unused-result" 16001 # gcc doesn't warn about unknown flags unless it's 16002 # also warning for some other purpose, hence the 16003 # divide-by-0. (We use -Wno-error to make sure the 16004 # divide-by-0 doesn't cause this test to fail!) 16005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16006/* end confdefs.h. */ 16007 16008int 16009main () 16010{ 16011return 1/0 16012 ; 16013 return 0; 16014} 16015_ACEOF 16016if ac_fn_c_try_compile "$LINENO"; then : 16017 perftools_cv_w_no_unused_result=yes 16018else 16019 perftools_cv_w_no_unused_result=no 16020fi 16021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16022 CFLAGS="$OLD_CFLAGS" 16023fi 16024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $perftools_cv_w_no_unused_result" >&5 16025$as_echo "$perftools_cv_w_no_unused_result" >&6; } 16026 if test "$perftools_cv_w_no_unused_result" = yes; then 16027 HAVE_W_NO_UNUSED_RESULT_TRUE= 16028 HAVE_W_NO_UNUSED_RESULT_FALSE='#' 16029else 16030 HAVE_W_NO_UNUSED_RESULT_TRUE='#' 16031 HAVE_W_NO_UNUSED_RESULT_FALSE= 16032fi 16033 16034 16035# Defines PRIuS 16036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking printf format code for printing a size_t and ssize_t" >&5 16037$as_echo_n "checking printf format code for printing a size_t and ssize_t... " >&6; } 16038if test "${ac_cv_formatting_prius_prefix+set}" = set; then : 16039 $as_echo_n "(cached) " >&6 16040else 16041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16042/* end confdefs.h. */ 16043#include <stddef.h> 16044int 16045main () 16046{ 16047unsigned int v1 = 0; size_t v2 = 0; return (&v1 - &v2) 16048 ; 16049 return 0; 16050} 16051_ACEOF 16052if ac_fn_c_try_compile "$LINENO"; then : 16053 ac_cv_formatting_prius_prefix=; ac_cv_prius_defined=1 16054fi 16055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16057/* end confdefs.h. */ 16058#include <stddef.h> 16059int 16060main () 16061{ 16062unsigned long v1 = 0; size_t v2 = 0; return (&v1 - &v2) 16063 ; 16064 return 0; 16065} 16066_ACEOF 16067if ac_fn_c_try_compile "$LINENO"; then : 16068 ac_cv_formatting_prius_prefix=l; ac_cv_prius_defined=1 16069fi 16070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16072/* end confdefs.h. */ 16073#include <stddef.h> 16074int 16075main () 16076{ 16077unsigned long long v1 = 0; size_t v2 = 0; return (&v1 - &v2) 16078 ; 16079 return 0; 16080} 16081_ACEOF 16082if ac_fn_c_try_compile "$LINENO"; then : 16083 ac_cv_formatting_prius_prefix=ll; ac_cv_prius_defined=1 16084 16085fi 16086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16087fi 16088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_formatting_prius_prefix" >&5 16089$as_echo "$ac_cv_formatting_prius_prefix" >&6; } 16090 if test -z "$ac_cv_prius_defined"; then 16091 ac_cv_formatting_prius_prefix=z; 16092 fi 16093 16094cat >>confdefs.h <<_ACEOF 16095#define PRIuS "${ac_cv_formatting_prius_prefix}u" 16096_ACEOF 16097 16098 16099cat >>confdefs.h <<_ACEOF 16100#define PRIxS "${ac_cv_formatting_prius_prefix}x" 16101_ACEOF 16102 16103 16104cat >>confdefs.h <<_ACEOF 16105#define PRIdS "${ac_cv_formatting_prius_prefix}d" 16106_ACEOF 16107 16108 16109 16110# Also make sure we get standard PRI... definitions, even with glibc. 16111# We have to use AH_VERBATIM because we need the #ifdef guard (gcc buglet) 16112 16113 16114# Check if __builtin_stack_pointer() is available (for elfcore.h) 16115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_stack_pointer()" >&5 16116$as_echo_n "checking for __builtin_stack_pointer()... " >&6; } 16117cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16118/* end confdefs.h. */ 16119 16120int 16121main () 16122{ 16123void *sp = __builtin_stack_pointer() 16124 ; 16125 return 0; 16126} 16127_ACEOF 16128if ac_fn_c_try_link "$LINENO"; then : 16129 16130$as_echo "#define HAVE_BUILTIN_STACK_POINTER 1" >>confdefs.h 16131 16132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16133$as_echo "yes" >&6; } 16134else 16135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16136$as_echo "no" >&6; } 16137fi 16138rm -f core conftest.err conftest.$ac_objext \ 16139 conftest$ac_exeext conftest.$ac_ext 16140 16141# Check if __environ is available (for GetenvBeforeMain) 16142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __environ" >&5 16143$as_echo_n "checking for __environ... " >&6; } 16144cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16145/* end confdefs.h. */ 16146#include <unistd.h> 16147int 16148main () 16149{ 16150char **env = __environ 16151 ; 16152 return 0; 16153} 16154_ACEOF 16155if ac_fn_c_try_link "$LINENO"; then : 16156 16157$as_echo "#define HAVE___ENVIRON 1" >>confdefs.h 16158 16159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16160$as_echo "yes" >&6; } 16161else 16162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16163$as_echo "no" >&6; } 16164fi 16165rm -f core conftest.err conftest.$ac_objext \ 16166 conftest$ac_exeext conftest.$ac_ext 16167 16168# If we support __thread, that can speed up tcmalloc a bit. 16169# Note, however, that our code tickles a bug in gcc < 4.1.2 16170# involving TLS and -fPIC (which our libraries will use) on x86: 16171# http://gcc.gnu.org/ml/gcc-bugs/2006-09/msg02275.html 16172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread" >&5 16173$as_echo_n "checking for __thread... " >&6; } 16174cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16175/* end confdefs.h. */ 16176#if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)) && ((__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 1) || (__GNUC__ == 4 && __GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL__ < 2)) 16177#error gcc has this bug: http://gcc.gnu.org/ml/gcc-bugs/2006-09/msg02275.html 16178#endif 16179int 16180main () 16181{ 16182static __thread int p = 0 16183 ; 16184 return 0; 16185} 16186_ACEOF 16187if ac_fn_c_try_link "$LINENO"; then : 16188 16189$as_echo "#define HAVE_TLS 1" >>confdefs.h 16190 16191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16192$as_echo "yes" >&6; } 16193else 16194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16195$as_echo "no" >&6; } 16196fi 16197rm -f core conftest.err conftest.$ac_objext \ 16198 conftest$ac_exeext conftest.$ac_ext 16199 16200# glibc's __malloc_hook/etc were declared volatile starting in glibc 2.14 16201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if __malloc_hook is declared volatile" >&5 16202$as_echo_n "checking if __malloc_hook is declared volatile... " >&6; } 16203cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16204/* end confdefs.h. */ 16205#include <malloc.h> 16206void* (* volatile __malloc_hook)(size_t, const void*) = 0; 16207int 16208main () 16209{ 16210 16211 ; 16212 return 0; 16213} 16214_ACEOF 16215if ac_fn_c_try_compile "$LINENO"; then : 16216 16217$as_echo "#define MALLOC_HOOK_MAYBE_VOLATILE volatile" >>confdefs.h 16218 16219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16220$as_echo "yes" >&6; } 16221else 16222 $as_echo "#define MALLOC_HOOK_MAYBE_VOLATILE /**/" >>confdefs.h 16223 16224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16225$as_echo "no" >&6; } 16226fi 16227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16228 16229# Nanosleep requires extra libraries on some architectures (solaris). 16230# This sets NANOSLEEP_LIBS. nanosleep doesn't exist on mingw, which 16231# is fine for us because we don't compile libspinlock, which uses it. 16232if test "$need_nanosleep" = yes; then 16233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nanosleep requires any libraries" >&5 16234$as_echo_n "checking if nanosleep requires any libraries... " >&6; } 16235 16236 ac_ext=c 16237ac_cpp='$CPP $CPPFLAGS' 16238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16240ac_compiler_gnu=$ac_cv_c_compiler_gnu 16241 16242 acx_nanosleep_ok="no" 16243 NANOSLEEP_LIBS= 16244 # For most folks, this should just work 16245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16246/* end confdefs.h. */ 16247#include <time.h> 16248int 16249main () 16250{ 16251static struct timespec ts; nanosleep(&ts, NULL); 16252 ; 16253 return 0; 16254} 16255_ACEOF 16256if ac_fn_c_try_link "$LINENO"; then : 16257 acx_nanosleep_ok=yes 16258fi 16259rm -f core conftest.err conftest.$ac_objext \ 16260 conftest$ac_exeext conftest.$ac_ext 16261 # For solaris, we may need -lrt 16262 if test "x$acx_nanosleep_ok" != "xyes"; then 16263 OLD_LIBS="$LIBS" 16264 LIBS="-lrt $LIBS" 16265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16266/* end confdefs.h. */ 16267#include <time.h> 16268int 16269main () 16270{ 16271static struct timespec ts; nanosleep(&ts, NULL); 16272 ; 16273 return 0; 16274} 16275_ACEOF 16276if ac_fn_c_try_link "$LINENO"; then : 16277 acx_nanosleep_ok=yes 16278fi 16279rm -f core conftest.err conftest.$ac_objext \ 16280 conftest$ac_exeext conftest.$ac_ext 16281 if test "x$acx_nanosleep_ok" = "xyes"; then 16282 NANOSLEEP_LIBS="-lrt" 16283 fi 16284 LIBS="$OLD_LIBS" 16285 fi 16286 if test "x$acx_nanosleep_ok" != "xyes"; then 16287 as_fn_error "cannot find the nanosleep function" "$LINENO" 5 16288 else 16289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${NANOSLEEP_LIBS:-no}" >&5 16290$as_echo "${NANOSLEEP_LIBS:-no}" >&6; } 16291 fi 16292 ac_ext=c 16293ac_cpp='$CPP $CPPFLAGS' 16294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16296ac_compiler_gnu=$ac_cv_c_compiler_gnu 16297 16298 16299 16300fi 16301 16302# Solaris 10 6/06 has a bug where /usr/sfw/lib/libstdc++.la is empty. 16303# If so, we replace it with our own version. 16304LIBSTDCXX_LA_LINKER_FLAG= 16305if test -f /usr/sfw/lib/libstdc++.la && ! test -s /usr/sfw/lib/libstdc++.la 16306then 16307 LIBSTDCXX_LA_LINKER_FLAG='-L$(top_srcdir)/src/solaris' 16308fi 16309 16310 16311# We also need to check if the kernel supports __thread, which requires uname() 16312ac_fn_c_check_decl "$LINENO" "uname" "ac_cv_have_decl_uname" "#include <sys/utsname.h> 16313" 16314if test "x$ac_cv_have_decl_uname" = x""yes; then : 16315 ac_have_decl=1 16316else 16317 ac_have_decl=0 16318fi 16319 16320cat >>confdefs.h <<_ACEOF 16321#define HAVE_DECL_UNAME $ac_have_decl 16322_ACEOF 16323 16324 16325# In fact, a lot of the code in this directory depends on pthreads 16326 16327 16328 16329ac_ext=c 16330ac_cpp='$CPP $CPPFLAGS' 16331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16333ac_compiler_gnu=$ac_cv_c_compiler_gnu 16334 16335acx_pthread_ok=no 16336 16337# We used to check for pthread.h first, but this fails if pthread.h 16338# requires special compiler flags (e.g. on True64 or Sequent). 16339# It gets checked for in the link test anyway. 16340 16341# First of all, check if the user has set any of the PTHREAD_LIBS, 16342# etcetera environment variables, and if threads linking works using 16343# them: 16344if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 16345 save_CFLAGS="$CFLAGS" 16346 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 16347 save_LIBS="$LIBS" 16348 LIBS="$PTHREAD_LIBS $LIBS" 16349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 16350$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 16351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16352/* end confdefs.h. */ 16353 16354/* Override any GCC internal prototype to avoid an error. 16355 Use char because int might match the return type of a GCC 16356 builtin and then its argument prototype would still apply. */ 16357#ifdef __cplusplus 16358extern "C" 16359#endif 16360char pthread_join (); 16361int 16362main () 16363{ 16364return pthread_join (); 16365 ; 16366 return 0; 16367} 16368_ACEOF 16369if ac_fn_c_try_link "$LINENO"; then : 16370 acx_pthread_ok=yes 16371fi 16372rm -f core conftest.err conftest.$ac_objext \ 16373 conftest$ac_exeext conftest.$ac_ext 16374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 16375$as_echo "$acx_pthread_ok" >&6; } 16376 if test x"$acx_pthread_ok" = xno; then 16377 PTHREAD_LIBS="" 16378 PTHREAD_CFLAGS="" 16379 fi 16380 LIBS="$save_LIBS" 16381 CFLAGS="$save_CFLAGS" 16382fi 16383 16384# We must check for the threads library under a number of different 16385# names; the ordering is very important because some systems 16386# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 16387# libraries is broken (non-POSIX). 16388 16389# Create a list of thread flags to try. Items starting with a "-" are 16390# C compiler flags, and other items are library names, except for "none" 16391# which indicates that we try without any flags at all, and "pthread-config" 16392# which is a program returning the flags for the Pth emulation library. 16393 16394acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 16395 16396# The ordering *is* (sometimes) important. Some notes on the 16397# individual items follow: 16398 16399# pthreads: AIX (must check this before -lpthread) 16400# none: in case threads are in libc; should be tried before -Kthread and 16401# other compiler flags to prevent continual compiler warnings 16402# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 16403# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 16404# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 16405# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 16406# -pthreads: Solaris/gcc 16407# -mthreads: Mingw32/gcc, Lynx/gcc 16408# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 16409# doesn't hurt to check since this sometimes defines pthreads too; 16410# also defines -D_REENTRANT) 16411# ... -mt is also the pthreads flag for HP/aCC 16412# pthread: Linux, etcetera 16413# --thread-safe: KAI C++ 16414# pthread-config: use pthread-config program (for GNU Pth library) 16415 16416case "${host_cpu}-${host_os}" in 16417 *solaris*) 16418 16419 # On Solaris (at least, for some versions), libc contains stubbed 16420 # (non-functional) versions of the pthreads routines, so link-based 16421 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 16422 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 16423 # a function called by this macro, so we could check for that, but 16424 # who knows whether they'll stub that too in a future libc.) So, 16425 # we'll just look for -pthreads and -lpthread first: 16426 16427 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" 16428 ;; 16429esac 16430 16431if test x"$acx_pthread_ok" = xno; then 16432for flag in $acx_pthread_flags; do 16433 16434 case $flag in 16435 none) 16436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 16437$as_echo_n "checking whether pthreads work without any flags... " >&6; } 16438 ;; 16439 16440 -*) 16441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 16442$as_echo_n "checking whether pthreads work with $flag... " >&6; } 16443 PTHREAD_CFLAGS="$flag" 16444 ;; 16445 16446 pthread-config) 16447 # Extract the first word of "pthread-config", so it can be a program name with args. 16448set dummy pthread-config; ac_word=$2 16449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16450$as_echo_n "checking for $ac_word... " >&6; } 16451if test "${ac_cv_prog_acx_pthread_config+set}" = set; then : 16452 $as_echo_n "(cached) " >&6 16453else 16454 if test -n "$acx_pthread_config"; then 16455 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. 16456else 16457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16458for as_dir in $PATH 16459do 16460 IFS=$as_save_IFS 16461 test -z "$as_dir" && as_dir=. 16462 for ac_exec_ext in '' $ac_executable_extensions; do 16463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16464 ac_cv_prog_acx_pthread_config="yes" 16465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16466 break 2 16467 fi 16468done 16469 done 16470IFS=$as_save_IFS 16471 16472 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" 16473fi 16474fi 16475acx_pthread_config=$ac_cv_prog_acx_pthread_config 16476if test -n "$acx_pthread_config"; then 16477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5 16478$as_echo "$acx_pthread_config" >&6; } 16479else 16480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16481$as_echo "no" >&6; } 16482fi 16483 16484 16485 if test x"$acx_pthread_config" = xno; then continue; fi 16486 PTHREAD_CFLAGS="`pthread-config --cflags`" 16487 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 16488 ;; 16489 16490 *) 16491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 16492$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 16493 PTHREAD_LIBS="-l$flag" 16494 ;; 16495 esac 16496 16497 save_LIBS="$LIBS" 16498 save_CFLAGS="$CFLAGS" 16499 LIBS="$PTHREAD_LIBS $LIBS" 16500 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 16501 16502 # Check for various functions. We must include pthread.h, 16503 # since some functions may be macros. (On the Sequent, we 16504 # need a special flag -Kthread to make this header compile.) 16505 # We check for pthread_join because it is in -lpthread on IRIX 16506 # while pthread_create is in libc. We check for pthread_attr_init 16507 # due to DEC craziness with -lpthreads. We check for 16508 # pthread_cleanup_push because it is one of the few pthread 16509 # functions on Solaris that doesn't have a non-functional libc stub. 16510 # We try pthread_create on general principles. 16511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16512/* end confdefs.h. */ 16513#include <pthread.h> 16514int 16515main () 16516{ 16517pthread_t th; pthread_join(th, 0); 16518 pthread_attr_init(0); pthread_cleanup_push(0, 0); 16519 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 16520 ; 16521 return 0; 16522} 16523_ACEOF 16524if ac_fn_c_try_link "$LINENO"; then : 16525 acx_pthread_ok=yes 16526fi 16527rm -f core conftest.err conftest.$ac_objext \ 16528 conftest$ac_exeext conftest.$ac_ext 16529 16530 LIBS="$save_LIBS" 16531 CFLAGS="$save_CFLAGS" 16532 16533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 16534$as_echo "$acx_pthread_ok" >&6; } 16535 if test "x$acx_pthread_ok" = xyes; then 16536 break; 16537 fi 16538 16539 PTHREAD_LIBS="" 16540 PTHREAD_CFLAGS="" 16541done 16542fi 16543 16544# Various other checks: 16545if test "x$acx_pthread_ok" = xyes; then 16546 save_LIBS="$LIBS" 16547 LIBS="$PTHREAD_LIBS $LIBS" 16548 save_CFLAGS="$CFLAGS" 16549 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 16550 16551 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 16552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 16553$as_echo_n "checking for joinable pthread attribute... " >&6; } 16554 attr_name=unknown 16555 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 16556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16557/* end confdefs.h. */ 16558#include <pthread.h> 16559int 16560main () 16561{ 16562int attr=$attr; return attr; 16563 ; 16564 return 0; 16565} 16566_ACEOF 16567if ac_fn_c_try_link "$LINENO"; then : 16568 attr_name=$attr; break 16569fi 16570rm -f core conftest.err conftest.$ac_objext \ 16571 conftest$ac_exeext conftest.$ac_ext 16572 done 16573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 16574$as_echo "$attr_name" >&6; } 16575 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 16576 16577cat >>confdefs.h <<_ACEOF 16578#define PTHREAD_CREATE_JOINABLE $attr_name 16579_ACEOF 16580 16581 fi 16582 16583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 16584$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 16585 flag=no 16586 case "${host_cpu}-${host_os}" in 16587 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; 16588 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 16589 esac 16590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 16591$as_echo "${flag}" >&6; } 16592 if test "x$flag" != xno; then 16593 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 16594 fi 16595 16596 LIBS="$save_LIBS" 16597 CFLAGS="$save_CFLAGS" 16598 # More AIX lossage: must compile with xlc_r or cc_r 16599 if test x"$GCC" != xyes; then 16600 for ac_prog in xlc_r cc_r 16601do 16602 # Extract the first word of "$ac_prog", so it can be a program name with args. 16603set dummy $ac_prog; ac_word=$2 16604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16605$as_echo_n "checking for $ac_word... " >&6; } 16606if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then : 16607 $as_echo_n "(cached) " >&6 16608else 16609 if test -n "$PTHREAD_CC"; then 16610 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 16611else 16612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16613for as_dir in $PATH 16614do 16615 IFS=$as_save_IFS 16616 test -z "$as_dir" && as_dir=. 16617 for ac_exec_ext in '' $ac_executable_extensions; do 16618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16619 ac_cv_prog_PTHREAD_CC="$ac_prog" 16620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16621 break 2 16622 fi 16623done 16624 done 16625IFS=$as_save_IFS 16626 16627fi 16628fi 16629PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 16630if test -n "$PTHREAD_CC"; then 16631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 16632$as_echo "$PTHREAD_CC" >&6; } 16633else 16634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16635$as_echo "no" >&6; } 16636fi 16637 16638 16639 test -n "$PTHREAD_CC" && break 16640done 16641test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 16642 16643 else 16644 PTHREAD_CC=$CC 16645 fi 16646 16647 # The next part tries to detect GCC inconsistency with -shared on some 16648 # architectures and systems. The problem is that in certain 16649 # configurations, when -shared is specified, GCC "forgets" to 16650 # internally use various flags which are still necessary. 16651 16652 # 16653 # Prepare the flags 16654 # 16655 save_CFLAGS="$CFLAGS" 16656 save_LIBS="$LIBS" 16657 save_CC="$CC" 16658 16659 # Try with the flags determined by the earlier checks. 16660 # 16661 # -Wl,-z,defs forces link-time symbol resolution, so that the 16662 # linking checks with -shared actually have any value 16663 # 16664 # FIXME: -fPIC is required for -shared on many architectures, 16665 # so we specify it here, but the right way would probably be to 16666 # properly detect whether it is actually required. 16667 CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS" 16668 LIBS="$PTHREAD_LIBS $LIBS" 16669 CC="$PTHREAD_CC" 16670 16671 # In order not to create several levels of indentation, we test 16672 # the value of "$done" until we find the cure or run out of ideas. 16673 done="no" 16674 16675 # First, make sure the CFLAGS we added are actually accepted by our 16676 # compiler. If not (and OS X's ld, for instance, does not accept -z), 16677 # then we can't do this test. 16678 if test x"$done" = xno; then 16679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5 16680$as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; } 16681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16682/* end confdefs.h. */ 16683 16684int 16685main () 16686{ 16687 16688 ; 16689 return 0; 16690} 16691_ACEOF 16692if ac_fn_c_try_link "$LINENO"; then : 16693 16694else 16695 done=yes 16696fi 16697rm -f core conftest.err conftest.$ac_objext \ 16698 conftest$ac_exeext conftest.$ac_ext 16699 16700 if test "x$done" = xyes ; then 16701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16702$as_echo "no" >&6; } 16703 else 16704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16705$as_echo "yes" >&6; } 16706 fi 16707 fi 16708 16709 if test x"$done" = xno; then 16710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5 16711$as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; } 16712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16713/* end confdefs.h. */ 16714#include <pthread.h> 16715int 16716main () 16717{ 16718pthread_t th; pthread_join(th, 0); 16719 pthread_attr_init(0); pthread_cleanup_push(0, 0); 16720 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 16721 ; 16722 return 0; 16723} 16724_ACEOF 16725if ac_fn_c_try_link "$LINENO"; then : 16726 done=yes 16727fi 16728rm -f core conftest.err conftest.$ac_objext \ 16729 conftest$ac_exeext conftest.$ac_ext 16730 16731 if test "x$done" = xyes; then 16732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16733$as_echo "yes" >&6; } 16734 else 16735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16736$as_echo "no" >&6; } 16737 fi 16738 fi 16739 16740 # 16741 # Linux gcc on some architectures such as mips/mipsel forgets 16742 # about -lpthread 16743 # 16744 if test x"$done" = xno; then 16745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5 16746$as_echo_n "checking whether -lpthread fixes that... " >&6; } 16747 LIBS="-lpthread $PTHREAD_LIBS $save_LIBS" 16748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16749/* end confdefs.h. */ 16750#include <pthread.h> 16751int 16752main () 16753{ 16754pthread_t th; pthread_join(th, 0); 16755 pthread_attr_init(0); pthread_cleanup_push(0, 0); 16756 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 16757 ; 16758 return 0; 16759} 16760_ACEOF 16761if ac_fn_c_try_link "$LINENO"; then : 16762 done=yes 16763fi 16764rm -f core conftest.err conftest.$ac_objext \ 16765 conftest$ac_exeext conftest.$ac_ext 16766 16767 if test "x$done" = xyes; then 16768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16769$as_echo "yes" >&6; } 16770 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS" 16771 else 16772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16773$as_echo "no" >&6; } 16774 fi 16775 fi 16776 # 16777 # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc 16778 # 16779 if test x"$done" = xno; then 16780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5 16781$as_echo_n "checking whether -lc_r fixes that... " >&6; } 16782 LIBS="-lc_r $PTHREAD_LIBS $save_LIBS" 16783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16784/* end confdefs.h. */ 16785#include <pthread.h> 16786int 16787main () 16788{ 16789pthread_t th; pthread_join(th, 0); 16790 pthread_attr_init(0); pthread_cleanup_push(0, 0); 16791 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 16792 ; 16793 return 0; 16794} 16795_ACEOF 16796if ac_fn_c_try_link "$LINENO"; then : 16797 done=yes 16798fi 16799rm -f core conftest.err conftest.$ac_objext \ 16800 conftest$ac_exeext conftest.$ac_ext 16801 16802 if test "x$done" = xyes; then 16803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16804$as_echo "yes" >&6; } 16805 PTHREAD_LIBS="-lc_r $PTHREAD_LIBS" 16806 else 16807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16808$as_echo "no" >&6; } 16809 fi 16810 fi 16811 if test x"$done" = xno; then 16812 # OK, we have run out of ideas 16813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5 16814$as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;} 16815 16816 # so it's not safe to assume that we may use pthreads 16817 acx_pthread_ok=no 16818 fi 16819 16820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether what we have so far is sufficient with -nostdlib" >&5 16821$as_echo_n "checking whether what we have so far is sufficient with -nostdlib... " >&6; } 16822 CFLAGS="-nostdlib $CFLAGS" 16823 # we need c with nostdlib 16824 LIBS="$LIBS -lc" 16825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16826/* end confdefs.h. */ 16827#include <pthread.h> 16828int 16829main () 16830{ 16831pthread_t th; pthread_join(th, 0); 16832 pthread_attr_init(0); pthread_cleanup_push(0, 0); 16833 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 16834 ; 16835 return 0; 16836} 16837_ACEOF 16838if ac_fn_c_try_link "$LINENO"; then : 16839 done=yes 16840else 16841 done=no 16842fi 16843rm -f core conftest.err conftest.$ac_objext \ 16844 conftest$ac_exeext conftest.$ac_ext 16845 16846 if test "x$done" = xyes; then 16847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16848$as_echo "yes" >&6; } 16849 else 16850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16851$as_echo "no" >&6; } 16852 fi 16853 16854 if test x"$done" = xno; then 16855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread saves the day" >&5 16856$as_echo_n "checking whether -lpthread saves the day... " >&6; } 16857 LIBS="-lpthread $LIBS" 16858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16859/* end confdefs.h. */ 16860#include <pthread.h> 16861int 16862main () 16863{ 16864pthread_t th; pthread_join(th, 0); 16865 pthread_attr_init(0); pthread_cleanup_push(0, 0); 16866 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 16867 ; 16868 return 0; 16869} 16870_ACEOF 16871if ac_fn_c_try_link "$LINENO"; then : 16872 done=yes 16873else 16874 done=no 16875fi 16876rm -f core conftest.err conftest.$ac_objext \ 16877 conftest$ac_exeext conftest.$ac_ext 16878 16879 if test "x$done" = xyes; then 16880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16881$as_echo "yes" >&6; } 16882 PTHREAD_LIBS="$PTHREAD_LIBS -lpthread" 16883 else 16884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16885$as_echo "no" >&6; } 16886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries and -nostdlib" >&5 16887$as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries and -nostdlib" >&2;} 16888 fi 16889 fi 16890 16891 CFLAGS="$save_CFLAGS" 16892 LIBS="$save_LIBS" 16893 CC="$save_CC" 16894else 16895 PTHREAD_CC="$CC" 16896fi 16897 16898 16899 16900 16901 16902# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 16903if test x"$acx_pthread_ok" = xyes; then 16904 16905$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 16906 16907 : 16908else 16909 acx_pthread_ok=no 16910 16911fi 16912ac_ext=c 16913ac_cpp='$CPP $CPPFLAGS' 16914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16916ac_compiler_gnu=$ac_cv_c_compiler_gnu 16917 16918 16919 16920# Find out what namespace 'normal' STL code lives in 16921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5 16922$as_echo_n "checking whether the compiler implements namespaces... " >&6; } 16923if test "${ac_cv_cxx_namespaces+set}" = set; then : 16924 $as_echo_n "(cached) " >&6 16925else 16926 16927 ac_ext=cpp 16928ac_cpp='$CXXCPP $CPPFLAGS' 16929ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16930ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16931ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16932 16933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16934/* end confdefs.h. */ 16935namespace Outer { 16936 namespace Inner { int i = 0; }} 16937int 16938main () 16939{ 16940using namespace Outer::Inner; return i; 16941 ; 16942 return 0; 16943} 16944_ACEOF 16945if ac_fn_cxx_try_compile "$LINENO"; then : 16946 ac_cv_cxx_namespaces=yes 16947else 16948 ac_cv_cxx_namespaces=no 16949fi 16950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16951 ac_ext=c 16952ac_cpp='$CPP $CPPFLAGS' 16953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16955ac_compiler_gnu=$ac_cv_c_compiler_gnu 16956 16957fi 16958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5 16959$as_echo "$ac_cv_cxx_namespaces" >&6; } 16960 if test "$ac_cv_cxx_namespaces" = yes; then 16961 16962$as_echo "#define HAVE_NAMESPACES 1" >>confdefs.h 16963 16964 fi 16965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what namespace STL code is in" >&5 16966$as_echo_n "checking what namespace STL code is in... " >&6; } 16967if test "${ac_cv_cxx_stl_namespace+set}" = set; then : 16968 $as_echo_n "(cached) " >&6 16969else 16970 16971 16972 ac_ext=cpp 16973ac_cpp='$CXXCPP $CPPFLAGS' 16974ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16975ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16976ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16977 16978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16979/* end confdefs.h. */ 16980#include <vector> 16981int 16982main () 16983{ 16984vector<int> t; return 0; 16985 ; 16986 return 0; 16987} 16988_ACEOF 16989if ac_fn_cxx_try_compile "$LINENO"; then : 16990 ac_cv_cxx_stl_namespace=none 16991fi 16992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16994/* end confdefs.h. */ 16995#include <vector> 16996int 16997main () 16998{ 16999std::vector<int> t; return 0; 17000 ; 17001 return 0; 17002} 17003_ACEOF 17004if ac_fn_cxx_try_compile "$LINENO"; then : 17005 ac_cv_cxx_stl_namespace=std 17006fi 17007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17008 ac_ext=c 17009ac_cpp='$CPP $CPPFLAGS' 17010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17012ac_compiler_gnu=$ac_cv_c_compiler_gnu 17013 17014fi 17015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_stl_namespace" >&5 17016$as_echo "$ac_cv_cxx_stl_namespace" >&6; } 17017 if test "$ac_cv_cxx_stl_namespace" = none; then 17018 17019$as_echo "#define STL_NAMESPACE /**/" >>confdefs.h 17020 17021 fi 17022 if test "$ac_cv_cxx_stl_namespace" = std; then 17023 17024$as_echo "#define STL_NAMESPACE std" >>confdefs.h 17025 17026 fi 17027 17028 17029# Figure out where libc has program_invocation_name 17030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for program_invocation_name" >&5 17031$as_echo_n "checking for program_invocation_name... " >&6; } 17032if test "${ac_cv_have_program_invocation_name+set}" = set; then : 17033 $as_echo_n "(cached) " >&6 17034else 17035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17036/* end confdefs.h. */ 17037extern char* program_invocation_name; 17038int 17039main () 17040{ 17041return *program_invocation_name; 17042 ; 17043 return 0; 17044} 17045_ACEOF 17046if ac_fn_c_try_link "$LINENO"; then : 17047 ac_cv_have_program_invocation_name=yes 17048else 17049 ac_cv_have_program_invocation_name=no 17050fi 17051rm -f core conftest.err conftest.$ac_objext \ 17052 conftest$ac_exeext conftest.$ac_ext 17053 17054fi 17055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_program_invocation_name" >&5 17056$as_echo "$ac_cv_have_program_invocation_name" >&6; } 17057 if test "$ac_cv_have_program_invocation_name" = "yes"; then 17058 17059$as_echo "#define HAVE_PROGRAM_INVOCATION_NAME 1" >>confdefs.h 17060 17061 fi 17062 17063 17064# Make the install prefix available, to figure out where to look for pprof 17065ac_cv_install_prefix="$prefix"; 17066 if test x"$ac_cv_install_prefix" = x"NONE" ; then 17067 ac_cv_install_prefix="$ac_default_prefix"; 17068 fi 17069 17070cat >>confdefs.h <<_ACEOF 17071#define INSTALL_PREFIX "$ac_cv_install_prefix" 17072_ACEOF 17073 17074 17075 17076# For windows, this has a non-trivial value (__declspec(export)), but any 17077# system that uses configure wants this to be the empty string. 17078 17079$as_echo "#define PERFTOOLS_DLL_DECL /**/" >>confdefs.h 17080 17081 17082# In theory, config.h files shouldn't need a header guard, but we do, 17083# because we (maybe) #include windows/mingw.h from within config.h, 17084# and it #includes other .h files. These all have header guards, so 17085# the end result is if config.h is #included twice, its #undefs get 17086# evaluated twice, but all the ones in mingw.h/etc only get evaluated 17087# once, potentially causing trouble. c.f. 17088# http://code.google.com/p/gperftools/issues/detail?id=246 17089 17090 17091 17092 17093# MinGW uses autoconf, but also needs the windows shim routines 17094# (since it doesn't have its own support for, say, pthreads). 17095# This requires us to #include a special header file, and also to 17096# link in some windows versions of .o's instead of the unix versions. 17097# 17098# Also, manually mark systems where we have to be careful how early 17099# we run pthreads. TODO(csilvers): turn this into an autoconf check. 17100 17101 if expr $host : '.*-mingw' >/dev/null 2>&1; then 17102 MINGW_TRUE= 17103 MINGW_FALSE='#' 17104else 17105 MINGW_TRUE='#' 17106 MINGW_FALSE= 17107fi 17108 17109 if expr $host : '.*-apple-darwin.*' >/dev/null 2>&1; then 17110 OSX_TRUE= 17111 OSX_FALSE='#' 17112else 17113 OSX_TRUE='#' 17114 OSX_FALSE= 17115fi 17116 17117 17118# Redhat 7 (and below?) has sys/ucontext.h, but if you try to #include 17119# it directly, the compiler gets upset. So we pretend we don't have 17120# it. 17121if cat /etc/redhat-release 2>/dev/null | grep "Red Hat Linux release 7" >/dev/null 2>&1; then 17122 17123$as_echo "#define HAVE_SYS_UCONTEXT_H 0" >>confdefs.h 17124 17125fi 17126 17127# Export the --enable flags we set above. We do this at the end so 17128# other configure rules can enable or disable targets based on what 17129# they find. 17130 if test "$enable_cpu_profiler" = yes; then 17131 WITH_CPU_PROFILER_TRUE= 17132 WITH_CPU_PROFILER_FALSE='#' 17133else 17134 WITH_CPU_PROFILER_TRUE='#' 17135 WITH_CPU_PROFILER_FALSE= 17136fi 17137 17138 if test "$enable_heap_profiler" = yes; then 17139 WITH_HEAP_PROFILER_TRUE= 17140 WITH_HEAP_PROFILER_FALSE='#' 17141else 17142 WITH_HEAP_PROFILER_TRUE='#' 17143 WITH_HEAP_PROFILER_FALSE= 17144fi 17145 17146 if test "$enable_heap_checker" = yes; then 17147 WITH_HEAP_CHECKER_TRUE= 17148 WITH_HEAP_CHECKER_FALSE='#' 17149else 17150 WITH_HEAP_CHECKER_TRUE='#' 17151 WITH_HEAP_CHECKER_FALSE= 17152fi 17153 17154 if test "$enable_debugalloc" = yes; then 17155 WITH_DEBUGALLOC_TRUE= 17156 WITH_DEBUGALLOC_FALSE='#' 17157else 17158 WITH_DEBUGALLOC_TRUE='#' 17159 WITH_DEBUGALLOC_FALSE= 17160fi 17161 17162# We make tcmalloc.so if either heap-profiler or heap-checker is asked for. 17163 if test "$enable_heap_profiler" = yes -o \ 17164 "$enable_heap_checker" = yes; then 17165 WITH_HEAP_PROFILER_OR_CHECKER_TRUE= 17166 WITH_HEAP_PROFILER_OR_CHECKER_FALSE='#' 17167else 17168 WITH_HEAP_PROFILER_OR_CHECKER_TRUE='#' 17169 WITH_HEAP_PROFILER_OR_CHECKER_FALSE= 17170fi 17171 17172# If we don't use any profilers, we don't need stack traces (or pprof) 17173 if test "$enable_cpu_profiler" = yes -o \ 17174 "$enable_heap_profiler" = yes -o \ 17175 "$enable_heap_checker" = yes; then 17176 WITH_STACK_TRACE_TRUE= 17177 WITH_STACK_TRACE_FALSE='#' 17178else 17179 WITH_STACK_TRACE_TRUE='#' 17180 WITH_STACK_TRACE_FALSE= 17181fi 17182 17183 17184# Write generated configuration file 17185ac_config_files="$ac_config_files Makefile src/gperftools/tcmalloc.h src/windows/gperftools/tcmalloc.h" 17186 17187cat >confcache <<\_ACEOF 17188# This file is a shell script that caches the results of configure 17189# tests run on this system so they can be shared between configure 17190# scripts and configure runs, see configure's option --config-cache. 17191# It is not useful on other systems. If it contains results you don't 17192# want to keep, you may remove or edit it. 17193# 17194# config.status only pays attention to the cache file if you give it 17195# the --recheck option to rerun configure. 17196# 17197# `ac_cv_env_foo' variables (set or unset) will be overridden when 17198# loading this file, other *unset* `ac_cv_foo' will be assigned the 17199# following values. 17200 17201_ACEOF 17202 17203# The following way of writing the cache mishandles newlines in values, 17204# but we know of no workaround that is simple, portable, and efficient. 17205# So, we kill variables containing newlines. 17206# Ultrix sh set writes to stderr and can't be redirected directly, 17207# and sets the high bit in the cache file unless we assign to the vars. 17208( 17209 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17210 eval ac_val=\$$ac_var 17211 case $ac_val in #( 17212 *${as_nl}*) 17213 case $ac_var in #( 17214 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17215$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17216 esac 17217 case $ac_var in #( 17218 _ | IFS | as_nl) ;; #( 17219 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17220 *) { eval $ac_var=; unset $ac_var;} ;; 17221 esac ;; 17222 esac 17223 done 17224 17225 (set) 2>&1 | 17226 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17227 *${as_nl}ac_space=\ *) 17228 # `set' does not quote correctly, so add quotes: double-quote 17229 # substitution turns \\\\ into \\, and sed turns \\ into \. 17230 sed -n \ 17231 "s/'/'\\\\''/g; 17232 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17233 ;; #( 17234 *) 17235 # `set' quotes correctly as required by POSIX, so do not add quotes. 17236 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17237 ;; 17238 esac | 17239 sort 17240) | 17241 sed ' 17242 /^ac_cv_env_/b end 17243 t clear 17244 :clear 17245 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17246 t end 17247 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17248 :end' >>confcache 17249if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17250 if test -w "$cache_file"; then 17251 test "x$cache_file" != "x/dev/null" && 17252 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17253$as_echo "$as_me: updating cache $cache_file" >&6;} 17254 cat confcache >$cache_file 17255 else 17256 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17257$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17258 fi 17259fi 17260rm -f confcache 17261 17262test "x$prefix" = xNONE && prefix=$ac_default_prefix 17263# Let make expand exec_prefix. 17264test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17265 17266DEFS=-DHAVE_CONFIG_H 17267 17268ac_libobjs= 17269ac_ltlibobjs= 17270for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17271 # 1. Remove the extension, and $U if already installed. 17272 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17273 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17274 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17275 # will be set to the directory where LIBOBJS objects are built. 17276 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17277 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17278done 17279LIBOBJS=$ac_libobjs 17280 17281LTLIBOBJS=$ac_ltlibobjs 17282 17283 17284if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17285 as_fn_error "conditional \"AMDEP\" was never defined. 17286Usually this means the macro was only invoked conditionally." "$LINENO" 5 17287fi 17288if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 17289 as_fn_error "conditional \"am__fastdepCXX\" was never defined. 17290Usually this means the macro was only invoked conditionally." "$LINENO" 5 17291fi 17292if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17293 as_fn_error "conditional \"am__fastdepCC\" was never defined. 17294Usually this means the macro was only invoked conditionally." "$LINENO" 5 17295fi 17296if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then 17297 as_fn_error "conditional \"GCC\" was never defined. 17298Usually this means the macro was only invoked conditionally." "$LINENO" 5 17299fi 17300if test -z "${HAVE_OBJCOPY_WEAKEN_TRUE}" && test -z "${HAVE_OBJCOPY_WEAKEN_FALSE}"; then 17301 as_fn_error "conditional \"HAVE_OBJCOPY_WEAKEN\" was never defined. 17302Usually this means the macro was only invoked conditionally." "$LINENO" 5 17303fi 17304if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 17305 as_fn_error "conditional \"am__fastdepCXX\" was never defined. 17306Usually this means the macro was only invoked conditionally." "$LINENO" 5 17307fi 17308if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then 17309 as_fn_error "conditional \"USE_LIBTOOL\" was never defined. 17310Usually this means the macro was only invoked conditionally." "$LINENO" 5 17311fi 17312if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then 17313 as_fn_error "conditional \"ENABLE_STATIC\" was never defined. 17314Usually this means the macro was only invoked conditionally." "$LINENO" 5 17315fi 17316if test -z "${ENABLE_FRAME_POINTERS_TRUE}" && test -z "${ENABLE_FRAME_POINTERS_FALSE}"; then 17317 as_fn_error "conditional \"ENABLE_FRAME_POINTERS\" was never defined. 17318Usually this means the macro was only invoked conditionally." "$LINENO" 5 17319fi 17320if test -z "${X86_64_AND_NO_FP_BY_DEFAULT_TRUE}" && test -z "${X86_64_AND_NO_FP_BY_DEFAULT_FALSE}"; then 17321 as_fn_error "conditional \"X86_64_AND_NO_FP_BY_DEFAULT\" was never defined. 17322Usually this means the macro was only invoked conditionally." "$LINENO" 5 17323fi 17324if test -z "${I386_TRUE}" && test -z "${I386_FALSE}"; then 17325 as_fn_error "conditional \"I386\" was never defined. 17326Usually this means the macro was only invoked conditionally." "$LINENO" 5 17327fi 17328if test -z "${HAVE_W_NO_UNUSED_RESULT_TRUE}" && test -z "${HAVE_W_NO_UNUSED_RESULT_FALSE}"; then 17329 as_fn_error "conditional \"HAVE_W_NO_UNUSED_RESULT\" was never defined. 17330Usually this means the macro was only invoked conditionally." "$LINENO" 5 17331fi 17332if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then 17333 as_fn_error "conditional \"MINGW\" was never defined. 17334Usually this means the macro was only invoked conditionally." "$LINENO" 5 17335fi 17336if test -z "${OSX_TRUE}" && test -z "${OSX_FALSE}"; then 17337 as_fn_error "conditional \"OSX\" was never defined. 17338Usually this means the macro was only invoked conditionally." "$LINENO" 5 17339fi 17340if test -z "${WITH_CPU_PROFILER_TRUE}" && test -z "${WITH_CPU_PROFILER_FALSE}"; then 17341 as_fn_error "conditional \"WITH_CPU_PROFILER\" was never defined. 17342Usually this means the macro was only invoked conditionally." "$LINENO" 5 17343fi 17344if test -z "${WITH_HEAP_PROFILER_TRUE}" && test -z "${WITH_HEAP_PROFILER_FALSE}"; then 17345 as_fn_error "conditional \"WITH_HEAP_PROFILER\" was never defined. 17346Usually this means the macro was only invoked conditionally." "$LINENO" 5 17347fi 17348if test -z "${WITH_HEAP_CHECKER_TRUE}" && test -z "${WITH_HEAP_CHECKER_FALSE}"; then 17349 as_fn_error "conditional \"WITH_HEAP_CHECKER\" was never defined. 17350Usually this means the macro was only invoked conditionally." "$LINENO" 5 17351fi 17352if test -z "${WITH_DEBUGALLOC_TRUE}" && test -z "${WITH_DEBUGALLOC_FALSE}"; then 17353 as_fn_error "conditional \"WITH_DEBUGALLOC\" was never defined. 17354Usually this means the macro was only invoked conditionally." "$LINENO" 5 17355fi 17356if test -z "${WITH_HEAP_PROFILER_OR_CHECKER_TRUE}" && test -z "${WITH_HEAP_PROFILER_OR_CHECKER_FALSE}"; then 17357 as_fn_error "conditional \"WITH_HEAP_PROFILER_OR_CHECKER\" was never defined. 17358Usually this means the macro was only invoked conditionally." "$LINENO" 5 17359fi 17360if test -z "${WITH_STACK_TRACE_TRUE}" && test -z "${WITH_STACK_TRACE_FALSE}"; then 17361 as_fn_error "conditional \"WITH_STACK_TRACE\" was never defined. 17362Usually this means the macro was only invoked conditionally." "$LINENO" 5 17363fi 17364 17365: ${CONFIG_STATUS=./config.status} 17366ac_write_fail=0 17367ac_clean_files_save=$ac_clean_files 17368ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17369{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17370$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17371as_write_fail=0 17372cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17373#! $SHELL 17374# Generated by $as_me. 17375# Run this file to recreate the current configuration. 17376# Compiler output produced by configure, useful for debugging 17377# configure, is in config.log if it exists. 17378 17379debug=false 17380ac_cs_recheck=false 17381ac_cs_silent=false 17382 17383SHELL=\${CONFIG_SHELL-$SHELL} 17384export SHELL 17385_ASEOF 17386cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17387## -------------------- ## 17388## M4sh Initialization. ## 17389## -------------------- ## 17390 17391# Be more Bourne compatible 17392DUALCASE=1; export DUALCASE # for MKS sh 17393if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17394 emulate sh 17395 NULLCMD=: 17396 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17397 # is contrary to our usage. Disable this feature. 17398 alias -g '${1+"$@"}'='"$@"' 17399 setopt NO_GLOB_SUBST 17400else 17401 case `(set -o) 2>/dev/null` in #( 17402 *posix*) : 17403 set -o posix ;; #( 17404 *) : 17405 ;; 17406esac 17407fi 17408 17409 17410as_nl=' 17411' 17412export as_nl 17413# Printing a long string crashes Solaris 7 /usr/bin/printf. 17414as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17415as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17416as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17417# Prefer a ksh shell builtin over an external printf program on Solaris, 17418# but without wasting forks for bash or zsh. 17419if test -z "$BASH_VERSION$ZSH_VERSION" \ 17420 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17421 as_echo='print -r --' 17422 as_echo_n='print -rn --' 17423elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17424 as_echo='printf %s\n' 17425 as_echo_n='printf %s' 17426else 17427 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17428 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17429 as_echo_n='/usr/ucb/echo -n' 17430 else 17431 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17432 as_echo_n_body='eval 17433 arg=$1; 17434 case $arg in #( 17435 *"$as_nl"*) 17436 expr "X$arg" : "X\\(.*\\)$as_nl"; 17437 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17438 esac; 17439 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17440 ' 17441 export as_echo_n_body 17442 as_echo_n='sh -c $as_echo_n_body as_echo' 17443 fi 17444 export as_echo_body 17445 as_echo='sh -c $as_echo_body as_echo' 17446fi 17447 17448# The user is always right. 17449if test "${PATH_SEPARATOR+set}" != set; then 17450 PATH_SEPARATOR=: 17451 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17452 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17453 PATH_SEPARATOR=';' 17454 } 17455fi 17456 17457 17458# IFS 17459# We need space, tab and new line, in precisely that order. Quoting is 17460# there to prevent editors from complaining about space-tab. 17461# (If _AS_PATH_WALK were called with IFS unset, it would disable word 17462# splitting by setting IFS to empty value.) 17463IFS=" "" $as_nl" 17464 17465# Find who we are. Look in the path if we contain no directory separator. 17466case $0 in #(( 17467 *[\\/]* ) as_myself=$0 ;; 17468 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17469for as_dir in $PATH 17470do 17471 IFS=$as_save_IFS 17472 test -z "$as_dir" && as_dir=. 17473 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17474 done 17475IFS=$as_save_IFS 17476 17477 ;; 17478esac 17479# We did not find ourselves, most probably we were run as `sh COMMAND' 17480# in which case we are not to be found in the path. 17481if test "x$as_myself" = x; then 17482 as_myself=$0 17483fi 17484if test ! -f "$as_myself"; then 17485 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17486 exit 1 17487fi 17488 17489# Unset variables that we do not need and which cause bugs (e.g. in 17490# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 17491# suppresses any "Segmentation fault" message there. '((' could 17492# trigger a bug in pdksh 5.2.14. 17493for as_var in BASH_ENV ENV MAIL MAILPATH 17494do eval test x\${$as_var+set} = xset \ 17495 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17496done 17497PS1='$ ' 17498PS2='> ' 17499PS4='+ ' 17500 17501# NLS nuisances. 17502LC_ALL=C 17503export LC_ALL 17504LANGUAGE=C 17505export LANGUAGE 17506 17507# CDPATH. 17508(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17509 17510 17511# as_fn_error ERROR [LINENO LOG_FD] 17512# --------------------------------- 17513# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17514# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17515# script with status $?, using 1 if that was 0. 17516as_fn_error () 17517{ 17518 as_status=$?; test $as_status -eq 0 && as_status=1 17519 if test "$3"; then 17520 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17521 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 17522 fi 17523 $as_echo "$as_me: error: $1" >&2 17524 as_fn_exit $as_status 17525} # as_fn_error 17526 17527 17528# as_fn_set_status STATUS 17529# ----------------------- 17530# Set $? to STATUS, without forking. 17531as_fn_set_status () 17532{ 17533 return $1 17534} # as_fn_set_status 17535 17536# as_fn_exit STATUS 17537# ----------------- 17538# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 17539as_fn_exit () 17540{ 17541 set +e 17542 as_fn_set_status $1 17543 exit $1 17544} # as_fn_exit 17545 17546# as_fn_unset VAR 17547# --------------- 17548# Portably unset VAR. 17549as_fn_unset () 17550{ 17551 { eval $1=; unset $1;} 17552} 17553as_unset=as_fn_unset 17554# as_fn_append VAR VALUE 17555# ---------------------- 17556# Append the text in VALUE to the end of the definition contained in VAR. Take 17557# advantage of any shell optimizations that allow amortized linear growth over 17558# repeated appends, instead of the typical quadratic growth present in naive 17559# implementations. 17560if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 17561 eval 'as_fn_append () 17562 { 17563 eval $1+=\$2 17564 }' 17565else 17566 as_fn_append () 17567 { 17568 eval $1=\$$1\$2 17569 } 17570fi # as_fn_append 17571 17572# as_fn_arith ARG... 17573# ------------------ 17574# Perform arithmetic evaluation on the ARGs, and store the result in the 17575# global $as_val. Take advantage of shells that can avoid forks. The arguments 17576# must be portable across $(()) and expr. 17577if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 17578 eval 'as_fn_arith () 17579 { 17580 as_val=$(( $* )) 17581 }' 17582else 17583 as_fn_arith () 17584 { 17585 as_val=`expr "$@" || test $? -eq 1` 17586 } 17587fi # as_fn_arith 17588 17589 17590if expr a : '\(a\)' >/dev/null 2>&1 && 17591 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17592 as_expr=expr 17593else 17594 as_expr=false 17595fi 17596 17597if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17598 as_basename=basename 17599else 17600 as_basename=false 17601fi 17602 17603if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17604 as_dirname=dirname 17605else 17606 as_dirname=false 17607fi 17608 17609as_me=`$as_basename -- "$0" || 17610$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17611 X"$0" : 'X\(//\)$' \| \ 17612 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17613$as_echo X/"$0" | 17614 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17615 s//\1/ 17616 q 17617 } 17618 /^X\/\(\/\/\)$/{ 17619 s//\1/ 17620 q 17621 } 17622 /^X\/\(\/\).*/{ 17623 s//\1/ 17624 q 17625 } 17626 s/.*/./; q'` 17627 17628# Avoid depending upon Character Ranges. 17629as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17630as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17631as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17632as_cr_digits='0123456789' 17633as_cr_alnum=$as_cr_Letters$as_cr_digits 17634 17635ECHO_C= ECHO_N= ECHO_T= 17636case `echo -n x` in #((((( 17637-n*) 17638 case `echo 'xy\c'` in 17639 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17640 xy) ECHO_C='\c';; 17641 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17642 ECHO_T=' ';; 17643 esac;; 17644*) 17645 ECHO_N='-n';; 17646esac 17647 17648rm -f conf$$ conf$$.exe conf$$.file 17649if test -d conf$$.dir; then 17650 rm -f conf$$.dir/conf$$.file 17651else 17652 rm -f conf$$.dir 17653 mkdir conf$$.dir 2>/dev/null 17654fi 17655if (echo >conf$$.file) 2>/dev/null; then 17656 if ln -s conf$$.file conf$$ 2>/dev/null; then 17657 as_ln_s='ln -s' 17658 # ... but there are two gotchas: 17659 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17660 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17661 # In both cases, we have to default to `cp -p'. 17662 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17663 as_ln_s='cp -p' 17664 elif ln conf$$.file conf$$ 2>/dev/null; then 17665 as_ln_s=ln 17666 else 17667 as_ln_s='cp -p' 17668 fi 17669else 17670 as_ln_s='cp -p' 17671fi 17672rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17673rmdir conf$$.dir 2>/dev/null 17674 17675 17676# as_fn_mkdir_p 17677# ------------- 17678# Create "$as_dir" as a directory, including parents if necessary. 17679as_fn_mkdir_p () 17680{ 17681 17682 case $as_dir in #( 17683 -*) as_dir=./$as_dir;; 17684 esac 17685 test -d "$as_dir" || eval $as_mkdir_p || { 17686 as_dirs= 17687 while :; do 17688 case $as_dir in #( 17689 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17690 *) as_qdir=$as_dir;; 17691 esac 17692 as_dirs="'$as_qdir' $as_dirs" 17693 as_dir=`$as_dirname -- "$as_dir" || 17694$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17695 X"$as_dir" : 'X\(//\)[^/]' \| \ 17696 X"$as_dir" : 'X\(//\)$' \| \ 17697 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17698$as_echo X"$as_dir" | 17699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17700 s//\1/ 17701 q 17702 } 17703 /^X\(\/\/\)[^/].*/{ 17704 s//\1/ 17705 q 17706 } 17707 /^X\(\/\/\)$/{ 17708 s//\1/ 17709 q 17710 } 17711 /^X\(\/\).*/{ 17712 s//\1/ 17713 q 17714 } 17715 s/.*/./; q'` 17716 test -d "$as_dir" && break 17717 done 17718 test -z "$as_dirs" || eval "mkdir $as_dirs" 17719 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 17720 17721 17722} # as_fn_mkdir_p 17723if mkdir -p . 2>/dev/null; then 17724 as_mkdir_p='mkdir -p "$as_dir"' 17725else 17726 test -d ./-p && rmdir ./-p 17727 as_mkdir_p=false 17728fi 17729 17730if test -x / >/dev/null 2>&1; then 17731 as_test_x='test -x' 17732else 17733 if ls -dL / >/dev/null 2>&1; then 17734 as_ls_L_option=L 17735 else 17736 as_ls_L_option= 17737 fi 17738 as_test_x=' 17739 eval sh -c '\'' 17740 if test -d "$1"; then 17741 test -d "$1/."; 17742 else 17743 case $1 in #( 17744 -*)set "./$1";; 17745 esac; 17746 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 17747 ???[sx]*):;;*)false;;esac;fi 17748 '\'' sh 17749 ' 17750fi 17751as_executable_p=$as_test_x 17752 17753# Sed expression to map a string onto a valid CPP name. 17754as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17755 17756# Sed expression to map a string onto a valid variable name. 17757as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17758 17759 17760exec 6>&1 17761## ----------------------------------- ## 17762## Main body of $CONFIG_STATUS script. ## 17763## ----------------------------------- ## 17764_ASEOF 17765test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17766 17767cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17768# Save the log message, to keep $0 and so on meaningful, and to 17769# report actual input values of CONFIG_FILES etc. instead of their 17770# values after options handling. 17771ac_log=" 17772This file was extended by gperftools $as_me 2.0, which was 17773generated by GNU Autoconf 2.65. Invocation command line was 17774 17775 CONFIG_FILES = $CONFIG_FILES 17776 CONFIG_HEADERS = $CONFIG_HEADERS 17777 CONFIG_LINKS = $CONFIG_LINKS 17778 CONFIG_COMMANDS = $CONFIG_COMMANDS 17779 $ $0 $@ 17780 17781on `(hostname || uname -n) 2>/dev/null | sed 1q` 17782" 17783 17784_ACEOF 17785 17786case $ac_config_files in *" 17787"*) set x $ac_config_files; shift; ac_config_files=$*;; 17788esac 17789 17790case $ac_config_headers in *" 17791"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17792esac 17793 17794 17795cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17796# Files that config.status was made for. 17797config_files="$ac_config_files" 17798config_headers="$ac_config_headers" 17799config_commands="$ac_config_commands" 17800 17801_ACEOF 17802 17803cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17804ac_cs_usage="\ 17805\`$as_me' instantiates files and other configuration actions 17806from templates according to the current configuration. Unless the files 17807and actions are specified as TAGs, all are instantiated by default. 17808 17809Usage: $0 [OPTION]... [TAG]... 17810 17811 -h, --help print this help, then exit 17812 -V, --version print version number and configuration settings, then exit 17813 --config print configuration, then exit 17814 -q, --quiet, --silent 17815 do not print progress messages 17816 -d, --debug don't remove temporary files 17817 --recheck update $as_me by reconfiguring in the same conditions 17818 --file=FILE[:TEMPLATE] 17819 instantiate the configuration file FILE 17820 --header=FILE[:TEMPLATE] 17821 instantiate the configuration header FILE 17822 17823Configuration files: 17824$config_files 17825 17826Configuration headers: 17827$config_headers 17828 17829Configuration commands: 17830$config_commands 17831 17832Report bugs to <google-perftools@googlegroups.com>." 17833 17834_ACEOF 17835cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17836ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17837ac_cs_version="\\ 17838gperftools config.status 2.0 17839configured by $0, generated by GNU Autoconf 2.65, 17840 with options \\"\$ac_cs_config\\" 17841 17842Copyright (C) 2009 Free Software Foundation, Inc. 17843This config.status script is free software; the Free Software Foundation 17844gives unlimited permission to copy, distribute and modify it." 17845 17846ac_pwd='$ac_pwd' 17847srcdir='$srcdir' 17848INSTALL='$INSTALL' 17849MKDIR_P='$MKDIR_P' 17850AWK='$AWK' 17851test -n "\$AWK" || AWK=awk 17852_ACEOF 17853 17854cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17855# The default lists apply if the user does not specify any file. 17856ac_need_defaults=: 17857while test $# != 0 17858do 17859 case $1 in 17860 --*=*) 17861 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17862 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17863 ac_shift=: 17864 ;; 17865 *) 17866 ac_option=$1 17867 ac_optarg=$2 17868 ac_shift=shift 17869 ;; 17870 esac 17871 17872 case $ac_option in 17873 # Handling of the options. 17874 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17875 ac_cs_recheck=: ;; 17876 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17877 $as_echo "$ac_cs_version"; exit ;; 17878 --config | --confi | --conf | --con | --co | --c ) 17879 $as_echo "$ac_cs_config"; exit ;; 17880 --debug | --debu | --deb | --de | --d | -d ) 17881 debug=: ;; 17882 --file | --fil | --fi | --f ) 17883 $ac_shift 17884 case $ac_optarg in 17885 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17886 esac 17887 as_fn_append CONFIG_FILES " '$ac_optarg'" 17888 ac_need_defaults=false;; 17889 --header | --heade | --head | --hea ) 17890 $ac_shift 17891 case $ac_optarg in 17892 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17893 esac 17894 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17895 ac_need_defaults=false;; 17896 --he | --h) 17897 # Conflict between --help and --header 17898 as_fn_error "ambiguous option: \`$1' 17899Try \`$0 --help' for more information.";; 17900 --help | --hel | -h ) 17901 $as_echo "$ac_cs_usage"; exit ;; 17902 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17903 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17904 ac_cs_silent=: ;; 17905 17906 # This is an error. 17907 -*) as_fn_error "unrecognized option: \`$1' 17908Try \`$0 --help' for more information." ;; 17909 17910 *) as_fn_append ac_config_targets " $1" 17911 ac_need_defaults=false ;; 17912 17913 esac 17914 shift 17915done 17916 17917ac_configure_extra_args= 17918 17919if $ac_cs_silent; then 17920 exec 6>/dev/null 17921 ac_configure_extra_args="$ac_configure_extra_args --silent" 17922fi 17923 17924_ACEOF 17925cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17926if \$ac_cs_recheck; then 17927 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17928 shift 17929 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17930 CONFIG_SHELL='$SHELL' 17931 export CONFIG_SHELL 17932 exec "\$@" 17933fi 17934 17935_ACEOF 17936cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17937exec 5>>config.log 17938{ 17939 echo 17940 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17941## Running $as_me. ## 17942_ASBOX 17943 $as_echo "$ac_log" 17944} >&5 17945 17946_ACEOF 17947cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17948# 17949# INIT-COMMANDS 17950# 17951AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 17952 17953 17954# The HP-UX ksh and POSIX shell print the target directory to stdout 17955# if CDPATH is set. 17956(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17957 17958sed_quote_subst='$sed_quote_subst' 17959double_quote_subst='$double_quote_subst' 17960delay_variable_subst='$delay_variable_subst' 17961enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 17962macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 17963macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 17964enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 17965enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 17966pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 17967host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 17968host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 17969host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 17970build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 17971build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 17972build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 17973SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 17974Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 17975GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 17976EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 17977FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 17978LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 17979NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 17980LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 17981max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 17982ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 17983exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 17984lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 17985lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 17986lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 17987reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 17988reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 17989OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 17990deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 17991file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 17992AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 17993AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 17994STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 17995RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 17996old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 17997old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 17998old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 17999CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 18000CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 18001compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 18002GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 18003lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 18004lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 18005lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' 18006lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 18007objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 18008SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 18009ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 18010MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 18011lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 18012lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 18013lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 18014lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 18015lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 18016need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 18017DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 18018NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 18019LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 18020OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 18021OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 18022libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 18023shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18024extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18025archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 18026enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 18027export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 18028whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 18029compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 18030old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18031old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18032archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18033archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18034module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18035module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18036with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 18037allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 18038no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 18039hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 18040hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 18041hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 18042hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 18043hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 18044hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 18045hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 18046hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 18047inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 18048link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 18049fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 18050always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 18051export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18052exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 18053include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 18054prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18055file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 18056variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 18057need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 18058need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 18059version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 18060runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 18061shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 18062shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 18063libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 18064library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 18065soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 18066postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18067postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18068finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 18069finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 18070hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 18071sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 18072sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 18073hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 18074enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 18075enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 18076enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 18077old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 18078striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 18079compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' 18080predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' 18081postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' 18082predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' 18083postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' 18084compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' 18085LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18086old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18087compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18088GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18089lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18090lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18091lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18092lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18093lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18094archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18095enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18096export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18097whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18098compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18099old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18100old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18101archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18102archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18103module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18104module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18105with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18106allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18107no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18108hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18109hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18110hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18111hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18112hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18113hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18114hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18115hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18116inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18117link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18118fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18119always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18120export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18121exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18122include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18123prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18124file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18125hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18126compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18127predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18128postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18129predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18130postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18131compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' 18132 18133LTCC='$LTCC' 18134LTCFLAGS='$LTCFLAGS' 18135compiler='$compiler_DEFAULT' 18136 18137# Quote evaled strings. 18138for var in SED \ 18139GREP \ 18140EGREP \ 18141FGREP \ 18142LD \ 18143NM \ 18144LN_S \ 18145lt_SP2NL \ 18146lt_NL2SP \ 18147reload_flag \ 18148OBJDUMP \ 18149deplibs_check_method \ 18150file_magic_cmd \ 18151AR \ 18152AR_FLAGS \ 18153STRIP \ 18154RANLIB \ 18155CC \ 18156CFLAGS \ 18157compiler \ 18158lt_cv_sys_global_symbol_pipe \ 18159lt_cv_sys_global_symbol_to_cdecl \ 18160lt_cv_sys_global_symbol_to_c_name_address \ 18161lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18162SHELL \ 18163ECHO \ 18164lt_prog_compiler_no_builtin_flag \ 18165lt_prog_compiler_wl \ 18166lt_prog_compiler_pic \ 18167lt_prog_compiler_static \ 18168lt_cv_prog_compiler_c_o \ 18169need_locks \ 18170DSYMUTIL \ 18171NMEDIT \ 18172LIPO \ 18173OTOOL \ 18174OTOOL64 \ 18175shrext_cmds \ 18176export_dynamic_flag_spec \ 18177whole_archive_flag_spec \ 18178compiler_needs_object \ 18179with_gnu_ld \ 18180allow_undefined_flag \ 18181no_undefined_flag \ 18182hardcode_libdir_flag_spec \ 18183hardcode_libdir_flag_spec_ld \ 18184hardcode_libdir_separator \ 18185fix_srcfile_path \ 18186exclude_expsyms \ 18187include_expsyms \ 18188file_list_spec \ 18189variables_saved_for_relink \ 18190libname_spec \ 18191library_names_spec \ 18192soname_spec \ 18193finish_eval \ 18194old_striplib \ 18195striplib \ 18196compiler_lib_search_dirs \ 18197predep_objects \ 18198postdep_objects \ 18199predeps \ 18200postdeps \ 18201compiler_lib_search_path \ 18202LD_CXX \ 18203compiler_CXX \ 18204lt_prog_compiler_no_builtin_flag_CXX \ 18205lt_prog_compiler_wl_CXX \ 18206lt_prog_compiler_pic_CXX \ 18207lt_prog_compiler_static_CXX \ 18208lt_cv_prog_compiler_c_o_CXX \ 18209export_dynamic_flag_spec_CXX \ 18210whole_archive_flag_spec_CXX \ 18211compiler_needs_object_CXX \ 18212with_gnu_ld_CXX \ 18213allow_undefined_flag_CXX \ 18214no_undefined_flag_CXX \ 18215hardcode_libdir_flag_spec_CXX \ 18216hardcode_libdir_flag_spec_ld_CXX \ 18217hardcode_libdir_separator_CXX \ 18218fix_srcfile_path_CXX \ 18219exclude_expsyms_CXX \ 18220include_expsyms_CXX \ 18221file_list_spec_CXX \ 18222compiler_lib_search_dirs_CXX \ 18223predep_objects_CXX \ 18224postdep_objects_CXX \ 18225predeps_CXX \ 18226postdeps_CXX \ 18227compiler_lib_search_path_CXX; do 18228 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 18229 *[\\\\\\\`\\"\\\$]*) 18230 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 18231 ;; 18232 *) 18233 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18234 ;; 18235 esac 18236done 18237 18238# Double-quote double-evaled strings. 18239for var in reload_cmds \ 18240old_postinstall_cmds \ 18241old_postuninstall_cmds \ 18242old_archive_cmds \ 18243extract_expsyms_cmds \ 18244old_archive_from_new_cmds \ 18245old_archive_from_expsyms_cmds \ 18246archive_cmds \ 18247archive_expsym_cmds \ 18248module_cmds \ 18249module_expsym_cmds \ 18250export_symbols_cmds \ 18251prelink_cmds \ 18252postinstall_cmds \ 18253postuninstall_cmds \ 18254finish_cmds \ 18255sys_lib_search_path_spec \ 18256sys_lib_dlsearch_path_spec \ 18257old_archive_cmds_CXX \ 18258old_archive_from_new_cmds_CXX \ 18259old_archive_from_expsyms_cmds_CXX \ 18260archive_cmds_CXX \ 18261archive_expsym_cmds_CXX \ 18262module_cmds_CXX \ 18263module_expsym_cmds_CXX \ 18264export_symbols_cmds_CXX \ 18265prelink_cmds_CXX; do 18266 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 18267 *[\\\\\\\`\\"\\\$]*) 18268 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 18269 ;; 18270 *) 18271 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18272 ;; 18273 esac 18274done 18275 18276# Fix-up fallback echo if it was mangled by the above quoting rules. 18277case \$lt_ECHO in 18278*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 18279 ;; 18280esac 18281 18282ac_aux_dir='$ac_aux_dir' 18283xsi_shell='$xsi_shell' 18284lt_shell_append='$lt_shell_append' 18285 18286# See if we are running on zsh, and set the options which allow our 18287# commands through without removal of \ escapes INIT. 18288if test -n "\${ZSH_VERSION+set}" ; then 18289 setopt NO_GLOB_SUBST 18290fi 18291 18292 18293 PACKAGE='$PACKAGE' 18294 VERSION='$VERSION' 18295 TIMESTAMP='$TIMESTAMP' 18296 RM='$RM' 18297 ofile='$ofile' 18298 18299 18300 18301 18302 18303 18304_ACEOF 18305 18306cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18307 18308# Handling of arguments. 18309for ac_config_target in $ac_config_targets 18310do 18311 case $ac_config_target in 18312 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 18313 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18314 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18315 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18316 "src/gperftools/tcmalloc.h") CONFIG_FILES="$CONFIG_FILES src/gperftools/tcmalloc.h" ;; 18317 "src/windows/gperftools/tcmalloc.h") CONFIG_FILES="$CONFIG_FILES src/windows/gperftools/tcmalloc.h" ;; 18318 18319 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18320 esac 18321done 18322 18323 18324# If the user did not use the arguments to specify the items to instantiate, 18325# then the envvar interface is used. Set only those that are not. 18326# We use the long form for the default assignment because of an extremely 18327# bizarre bug on SunOS 4.1.3. 18328if $ac_need_defaults; then 18329 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18330 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18331 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18332fi 18333 18334# Have a temporary directory for convenience. Make it in the build tree 18335# simply because there is no reason against having it here, and in addition, 18336# creating and moving files from /tmp can sometimes cause problems. 18337# Hook for its removal unless debugging. 18338# Note that there is a small window in which the directory will not be cleaned: 18339# after its creation but before its name has been assigned to `$tmp'. 18340$debug || 18341{ 18342 tmp= 18343 trap 'exit_status=$? 18344 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 18345' 0 18346 trap 'as_fn_exit 1' 1 2 13 15 18347} 18348# Create a (secure) tmp directory for tmp files. 18349 18350{ 18351 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18352 test -n "$tmp" && test -d "$tmp" 18353} || 18354{ 18355 tmp=./conf$$-$RANDOM 18356 (umask 077 && mkdir "$tmp") 18357} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 18358 18359# Set up the scripts for CONFIG_FILES section. 18360# No need to generate them if there are no CONFIG_FILES. 18361# This happens for instance with `./config.status config.h'. 18362if test -n "$CONFIG_FILES"; then 18363 18364 18365ac_cr=`echo X | tr X '\015'` 18366# On cygwin, bash can eat \r inside `` if the user requested igncr. 18367# But we know of no other shell where ac_cr would be empty at this 18368# point, so we can use a bashism as a fallback. 18369if test "x$ac_cr" = x; then 18370 eval ac_cr=\$\'\\r\' 18371fi 18372ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18373if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18374 ac_cs_awk_cr='\r' 18375else 18376 ac_cs_awk_cr=$ac_cr 18377fi 18378 18379echo 'BEGIN {' >"$tmp/subs1.awk" && 18380_ACEOF 18381 18382 18383{ 18384 echo "cat >conf$$subs.awk <<_ACEOF" && 18385 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18386 echo "_ACEOF" 18387} >conf$$subs.sh || 18388 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 18389ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 18390ac_delim='%!_!# ' 18391for ac_last_try in false false false false false :; do 18392 . ./conf$$subs.sh || 18393 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 18394 18395 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18396 if test $ac_delim_n = $ac_delim_num; then 18397 break 18398 elif $ac_last_try; then 18399 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 18400 else 18401 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18402 fi 18403done 18404rm -f conf$$subs.sh 18405 18406cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18407cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 18408_ACEOF 18409sed -n ' 18410h 18411s/^/S["/; s/!.*/"]=/ 18412p 18413g 18414s/^[^!]*!// 18415:repl 18416t repl 18417s/'"$ac_delim"'$// 18418t delim 18419:nl 18420h 18421s/\(.\{148\}\)..*/\1/ 18422t more1 18423s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18424p 18425n 18426b repl 18427:more1 18428s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18429p 18430g 18431s/.\{148\}// 18432t nl 18433:delim 18434h 18435s/\(.\{148\}\)..*/\1/ 18436t more2 18437s/["\\]/\\&/g; s/^/"/; s/$/"/ 18438p 18439b 18440:more2 18441s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18442p 18443g 18444s/.\{148\}// 18445t delim 18446' <conf$$subs.awk | sed ' 18447/^[^""]/{ 18448 N 18449 s/\n// 18450} 18451' >>$CONFIG_STATUS || ac_write_fail=1 18452rm -f conf$$subs.awk 18453cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18454_ACAWK 18455cat >>"\$tmp/subs1.awk" <<_ACAWK && 18456 for (key in S) S_is_set[key] = 1 18457 FS = "" 18458 18459} 18460{ 18461 line = $ 0 18462 nfields = split(line, field, "@") 18463 substed = 0 18464 len = length(field[1]) 18465 for (i = 2; i < nfields; i++) { 18466 key = field[i] 18467 keylen = length(key) 18468 if (S_is_set[key]) { 18469 value = S[key] 18470 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18471 len += length(value) + length(field[++i]) 18472 substed = 1 18473 } else 18474 len += 1 + keylen 18475 } 18476 18477 print line 18478} 18479 18480_ACAWK 18481_ACEOF 18482cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18483if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18484 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18485else 18486 cat 18487fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 18488 || as_fn_error "could not setup config files machinery" "$LINENO" 5 18489_ACEOF 18490 18491# VPATH may cause trouble with some makes, so we remove $(srcdir), 18492# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 18493# trailing colons and then remove the whole line if VPATH becomes empty 18494# (actually we leave an empty line to preserve line numbers). 18495if test "x$srcdir" = x.; then 18496 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 18497s/:*\$(srcdir):*/:/ 18498s/:*\${srcdir}:*/:/ 18499s/:*@srcdir@:*/:/ 18500s/^\([^=]*=[ ]*\):*/\1/ 18501s/:*$// 18502s/^[^=]*=[ ]*$// 18503}' 18504fi 18505 18506cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18507fi # test -n "$CONFIG_FILES" 18508 18509# Set up the scripts for CONFIG_HEADERS section. 18510# No need to generate them if there are no CONFIG_HEADERS. 18511# This happens for instance with `./config.status Makefile'. 18512if test -n "$CONFIG_HEADERS"; then 18513cat >"$tmp/defines.awk" <<\_ACAWK || 18514BEGIN { 18515_ACEOF 18516 18517# Transform confdefs.h into an awk script `defines.awk', embedded as 18518# here-document in config.status, that substitutes the proper values into 18519# config.h.in to produce config.h. 18520 18521# Create a delimiter string that does not exist in confdefs.h, to ease 18522# handling of long lines. 18523ac_delim='%!_!# ' 18524for ac_last_try in false false :; do 18525 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 18526 if test -z "$ac_t"; then 18527 break 18528 elif $ac_last_try; then 18529 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 18530 else 18531 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18532 fi 18533done 18534 18535# For the awk script, D is an array of macro values keyed by name, 18536# likewise P contains macro parameters if any. Preserve backslash 18537# newline sequences. 18538 18539ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18540sed -n ' 18541s/.\{148\}/&'"$ac_delim"'/g 18542t rset 18543:rset 18544s/^[ ]*#[ ]*define[ ][ ]*/ / 18545t def 18546d 18547:def 18548s/\\$// 18549t bsnl 18550s/["\\]/\\&/g 18551s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18552D["\1"]=" \3"/p 18553s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 18554d 18555:bsnl 18556s/["\\]/\\&/g 18557s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18558D["\1"]=" \3\\\\\\n"\\/p 18559t cont 18560s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 18561t cont 18562d 18563:cont 18564n 18565s/.\{148\}/&'"$ac_delim"'/g 18566t clear 18567:clear 18568s/\\$// 18569t bsnlc 18570s/["\\]/\\&/g; s/^/"/; s/$/"/p 18571d 18572:bsnlc 18573s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 18574b cont 18575' <confdefs.h | sed ' 18576s/'"$ac_delim"'/"\\\ 18577"/g' >>$CONFIG_STATUS || ac_write_fail=1 18578 18579cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18580 for (key in D) D_is_set[key] = 1 18581 FS = "" 18582} 18583/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 18584 line = \$ 0 18585 split(line, arg, " ") 18586 if (arg[1] == "#") { 18587 defundef = arg[2] 18588 mac1 = arg[3] 18589 } else { 18590 defundef = substr(arg[1], 2) 18591 mac1 = arg[2] 18592 } 18593 split(mac1, mac2, "(") #) 18594 macro = mac2[1] 18595 prefix = substr(line, 1, index(line, defundef) - 1) 18596 if (D_is_set[macro]) { 18597 # Preserve the white space surrounding the "#". 18598 print prefix "define", macro P[macro] D[macro] 18599 next 18600 } else { 18601 # Replace #undef with comments. This is necessary, for example, 18602 # in the case of _POSIX_SOURCE, which is predefined and required 18603 # on some systems where configure will not decide to define it. 18604 if (defundef == "undef") { 18605 print "/*", prefix defundef, macro, "*/" 18606 next 18607 } 18608 } 18609} 18610{ print } 18611_ACAWK 18612_ACEOF 18613cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18614 as_fn_error "could not setup config headers machinery" "$LINENO" 5 18615fi # test -n "$CONFIG_HEADERS" 18616 18617 18618eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 18619shift 18620for ac_tag 18621do 18622 case $ac_tag in 18623 :[FHLC]) ac_mode=$ac_tag; continue;; 18624 esac 18625 case $ac_mode$ac_tag in 18626 :[FHL]*:*);; 18627 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 18628 :[FH]-) ac_tag=-:-;; 18629 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18630 esac 18631 ac_save_IFS=$IFS 18632 IFS=: 18633 set x $ac_tag 18634 IFS=$ac_save_IFS 18635 shift 18636 ac_file=$1 18637 shift 18638 18639 case $ac_mode in 18640 :L) ac_source=$1;; 18641 :[FH]) 18642 ac_file_inputs= 18643 for ac_f 18644 do 18645 case $ac_f in 18646 -) ac_f="$tmp/stdin";; 18647 *) # Look for the file first in the build tree, then in the source tree 18648 # (if the path is not absolute). The absolute path cannot be DOS-style, 18649 # because $ac_f cannot contain `:'. 18650 test -f "$ac_f" || 18651 case $ac_f in 18652 [\\/$]*) false;; 18653 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18654 esac || 18655 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 18656 esac 18657 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18658 as_fn_append ac_file_inputs " '$ac_f'" 18659 done 18660 18661 # Let's still pretend it is `configure' which instantiates (i.e., don't 18662 # use $as_me), people would be surprised to read: 18663 # /* config.h. Generated by config.status. */ 18664 configure_input='Generated from '` 18665 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18666 `' by configure.' 18667 if test x"$ac_file" != x-; then 18668 configure_input="$ac_file. $configure_input" 18669 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18670$as_echo "$as_me: creating $ac_file" >&6;} 18671 fi 18672 # Neutralize special characters interpreted by sed in replacement strings. 18673 case $configure_input in #( 18674 *\&* | *\|* | *\\* ) 18675 ac_sed_conf_input=`$as_echo "$configure_input" | 18676 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18677 *) ac_sed_conf_input=$configure_input;; 18678 esac 18679 18680 case $ac_tag in 18681 *:-:* | *:-) cat >"$tmp/stdin" \ 18682 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 18683 esac 18684 ;; 18685 esac 18686 18687 ac_dir=`$as_dirname -- "$ac_file" || 18688$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18689 X"$ac_file" : 'X\(//\)[^/]' \| \ 18690 X"$ac_file" : 'X\(//\)$' \| \ 18691 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18692$as_echo X"$ac_file" | 18693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18694 s//\1/ 18695 q 18696 } 18697 /^X\(\/\/\)[^/].*/{ 18698 s//\1/ 18699 q 18700 } 18701 /^X\(\/\/\)$/{ 18702 s//\1/ 18703 q 18704 } 18705 /^X\(\/\).*/{ 18706 s//\1/ 18707 q 18708 } 18709 s/.*/./; q'` 18710 as_dir="$ac_dir"; as_fn_mkdir_p 18711 ac_builddir=. 18712 18713case "$ac_dir" in 18714.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18715*) 18716 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18717 # A ".." for each directory in $ac_dir_suffix. 18718 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18719 case $ac_top_builddir_sub in 18720 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18721 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18722 esac ;; 18723esac 18724ac_abs_top_builddir=$ac_pwd 18725ac_abs_builddir=$ac_pwd$ac_dir_suffix 18726# for backward compatibility: 18727ac_top_builddir=$ac_top_build_prefix 18728 18729case $srcdir in 18730 .) # We are building in place. 18731 ac_srcdir=. 18732 ac_top_srcdir=$ac_top_builddir_sub 18733 ac_abs_top_srcdir=$ac_pwd ;; 18734 [\\/]* | ?:[\\/]* ) # Absolute name. 18735 ac_srcdir=$srcdir$ac_dir_suffix; 18736 ac_top_srcdir=$srcdir 18737 ac_abs_top_srcdir=$srcdir ;; 18738 *) # Relative name. 18739 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18740 ac_top_srcdir=$ac_top_build_prefix$srcdir 18741 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18742esac 18743ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18744 18745 18746 case $ac_mode in 18747 :F) 18748 # 18749 # CONFIG_FILE 18750 # 18751 18752 case $INSTALL in 18753 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18754 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18755 esac 18756 ac_MKDIR_P=$MKDIR_P 18757 case $MKDIR_P in 18758 [\\/$]* | ?:[\\/]* ) ;; 18759 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18760 esac 18761_ACEOF 18762 18763cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18764# If the template does not know about datarootdir, expand it. 18765# FIXME: This hack should be removed a few years after 2.60. 18766ac_datarootdir_hack=; ac_datarootdir_seen= 18767ac_sed_dataroot=' 18768/datarootdir/ { 18769 p 18770 q 18771} 18772/@datadir@/p 18773/@docdir@/p 18774/@infodir@/p 18775/@localedir@/p 18776/@mandir@/p' 18777case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18778*datarootdir*) ac_datarootdir_seen=yes;; 18779*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18781$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18782_ACEOF 18783cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18784 ac_datarootdir_hack=' 18785 s&@datadir@&$datadir&g 18786 s&@docdir@&$docdir&g 18787 s&@infodir@&$infodir&g 18788 s&@localedir@&$localedir&g 18789 s&@mandir@&$mandir&g 18790 s&\\\${datarootdir}&$datarootdir&g' ;; 18791esac 18792_ACEOF 18793 18794# Neutralize VPATH when `$srcdir' = `.'. 18795# Shell code in configure.ac might set extrasub. 18796# FIXME: do we really want to maintain this feature? 18797cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18798ac_sed_extra="$ac_vpsub 18799$extrasub 18800_ACEOF 18801cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18802:t 18803/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18804s|@configure_input@|$ac_sed_conf_input|;t t 18805s&@top_builddir@&$ac_top_builddir_sub&;t t 18806s&@top_build_prefix@&$ac_top_build_prefix&;t t 18807s&@srcdir@&$ac_srcdir&;t t 18808s&@abs_srcdir@&$ac_abs_srcdir&;t t 18809s&@top_srcdir@&$ac_top_srcdir&;t t 18810s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18811s&@builddir@&$ac_builddir&;t t 18812s&@abs_builddir@&$ac_abs_builddir&;t t 18813s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18814s&@INSTALL@&$ac_INSTALL&;t t 18815s&@MKDIR_P@&$ac_MKDIR_P&;t t 18816$ac_datarootdir_hack 18817" 18818eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 18819 || as_fn_error "could not create $ac_file" "$LINENO" 5 18820 18821test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18822 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 18823 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 18824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18825which seems to be undefined. Please make sure it is defined." >&5 18826$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18827which seems to be undefined. Please make sure it is defined." >&2;} 18828 18829 rm -f "$tmp/stdin" 18830 case $ac_file in 18831 -) cat "$tmp/out" && rm -f "$tmp/out";; 18832 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 18833 esac \ 18834 || as_fn_error "could not create $ac_file" "$LINENO" 5 18835 ;; 18836 :H) 18837 # 18838 # CONFIG_HEADER 18839 # 18840 if test x"$ac_file" != x-; then 18841 { 18842 $as_echo "/* $configure_input */" \ 18843 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 18844 } >"$tmp/config.h" \ 18845 || as_fn_error "could not create $ac_file" "$LINENO" 5 18846 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 18847 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18848$as_echo "$as_me: $ac_file is unchanged" >&6;} 18849 else 18850 rm -f "$ac_file" 18851 mv "$tmp/config.h" "$ac_file" \ 18852 || as_fn_error "could not create $ac_file" "$LINENO" 5 18853 fi 18854 else 18855 $as_echo "/* $configure_input */" \ 18856 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 18857 || as_fn_error "could not create -" "$LINENO" 5 18858 fi 18859# Compute "$ac_file"'s index in $config_headers. 18860_am_arg="$ac_file" 18861_am_stamp_count=1 18862for _am_header in $config_headers :; do 18863 case $_am_header in 18864 $_am_arg | $_am_arg:* ) 18865 break ;; 18866 * ) 18867 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 18868 esac 18869done 18870echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 18871$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18872 X"$_am_arg" : 'X\(//\)[^/]' \| \ 18873 X"$_am_arg" : 'X\(//\)$' \| \ 18874 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 18875$as_echo X"$_am_arg" | 18876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18877 s//\1/ 18878 q 18879 } 18880 /^X\(\/\/\)[^/].*/{ 18881 s//\1/ 18882 q 18883 } 18884 /^X\(\/\/\)$/{ 18885 s//\1/ 18886 q 18887 } 18888 /^X\(\/\).*/{ 18889 s//\1/ 18890 q 18891 } 18892 s/.*/./; q'`/stamp-h$_am_stamp_count 18893 ;; 18894 18895 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18896$as_echo "$as_me: executing $ac_file commands" >&6;} 18897 ;; 18898 esac 18899 18900 18901 case $ac_file$ac_mode in 18902 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 18903 # Strip MF so we end up with the name of the file. 18904 mf=`echo "$mf" | sed -e 's/:.*$//'` 18905 # Check whether this is an Automake generated Makefile or not. 18906 # We used to match only the files named `Makefile.in', but 18907 # some people rename them; so instead we look at the file content. 18908 # Grep'ing the first line is not enough: some people post-process 18909 # each Makefile.in and add a new line on top of each file to say so. 18910 # Grep'ing the whole file is not good either: AIX grep has a line 18911 # limit of 2048, but all sed's we know have understand at least 4000. 18912 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 18913 dirpart=`$as_dirname -- "$mf" || 18914$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18915 X"$mf" : 'X\(//\)[^/]' \| \ 18916 X"$mf" : 'X\(//\)$' \| \ 18917 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 18918$as_echo X"$mf" | 18919 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18920 s//\1/ 18921 q 18922 } 18923 /^X\(\/\/\)[^/].*/{ 18924 s//\1/ 18925 q 18926 } 18927 /^X\(\/\/\)$/{ 18928 s//\1/ 18929 q 18930 } 18931 /^X\(\/\).*/{ 18932 s//\1/ 18933 q 18934 } 18935 s/.*/./; q'` 18936 else 18937 continue 18938 fi 18939 # Extract the definition of DEPDIR, am__include, and am__quote 18940 # from the Makefile without running `make'. 18941 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 18942 test -z "$DEPDIR" && continue 18943 am__include=`sed -n 's/^am__include = //p' < "$mf"` 18944 test -z "am__include" && continue 18945 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 18946 # When using ansi2knr, U may be empty or an underscore; expand it 18947 U=`sed -n 's/^U = //p' < "$mf"` 18948 # Find all dependency output files, they are included files with 18949 # $(DEPDIR) in their names. We invoke sed twice because it is the 18950 # simplest approach to changing $(DEPDIR) to its actual value in the 18951 # expansion. 18952 for file in `sed -n " 18953 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 18954 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 18955 # Make sure the directory exists. 18956 test -f "$dirpart/$file" && continue 18957 fdir=`$as_dirname -- "$file" || 18958$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18959 X"$file" : 'X\(//\)[^/]' \| \ 18960 X"$file" : 'X\(//\)$' \| \ 18961 X"$file" : 'X\(/\)' \| . 2>/dev/null || 18962$as_echo X"$file" | 18963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18964 s//\1/ 18965 q 18966 } 18967 /^X\(\/\/\)[^/].*/{ 18968 s//\1/ 18969 q 18970 } 18971 /^X\(\/\/\)$/{ 18972 s//\1/ 18973 q 18974 } 18975 /^X\(\/\).*/{ 18976 s//\1/ 18977 q 18978 } 18979 s/.*/./; q'` 18980 as_dir=$dirpart/$fdir; as_fn_mkdir_p 18981 # echo "creating $dirpart/$file" 18982 echo '# dummy' > "$dirpart/$file" 18983 done 18984done 18985 ;; 18986 "libtool":C) 18987 18988 # See if we are running on zsh, and set the options which allow our 18989 # commands through without removal of \ escapes. 18990 if test -n "${ZSH_VERSION+set}" ; then 18991 setopt NO_GLOB_SUBST 18992 fi 18993 18994 cfgfile="${ofile}T" 18995 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18996 $RM "$cfgfile" 18997 18998 cat <<_LT_EOF >> "$cfgfile" 18999#! $SHELL 19000 19001# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 19002# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 19003# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19004# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19005# 19006# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 19007# 2006, 2007, 2008 Free Software Foundation, Inc. 19008# Written by Gordon Matzigkeit, 1996 19009# 19010# This file is part of GNU Libtool. 19011# 19012# GNU Libtool is free software; you can redistribute it and/or 19013# modify it under the terms of the GNU General Public License as 19014# published by the Free Software Foundation; either version 2 of 19015# the License, or (at your option) any later version. 19016# 19017# As a special exception to the GNU General Public License, 19018# if you distribute this file as part of a program or library that 19019# is built using GNU Libtool, you may include this file under the 19020# same distribution terms that you use for the rest of that program. 19021# 19022# GNU Libtool is distributed in the hope that it will be useful, 19023# but WITHOUT ANY WARRANTY; without even the implied warranty of 19024# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19025# GNU General Public License for more details. 19026# 19027# You should have received a copy of the GNU General Public License 19028# along with GNU Libtool; see the file COPYING. If not, a copy 19029# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 19030# obtained by writing to the Free Software Foundation, Inc., 19031# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19032 19033 19034# The names of the tagged configurations supported by this script. 19035available_tags="CXX " 19036 19037# ### BEGIN LIBTOOL CONFIG 19038 19039# Whether or not to optimize for fast installation. 19040fast_install=$enable_fast_install 19041 19042# Which release of libtool.m4 was used? 19043macro_version=$macro_version 19044macro_revision=$macro_revision 19045 19046# Whether or not to build shared libraries. 19047build_libtool_libs=$enable_shared 19048 19049# Whether or not to build static libraries. 19050build_old_libs=$enable_static 19051 19052# What type of objects to build. 19053pic_mode=$pic_mode 19054 19055# The host system. 19056host_alias=$host_alias 19057host=$host 19058host_os=$host_os 19059 19060# The build system. 19061build_alias=$build_alias 19062build=$build 19063build_os=$build_os 19064 19065# A sed program that does not truncate output. 19066SED=$lt_SED 19067 19068# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19069Xsed="\$SED -e 1s/^X//" 19070 19071# A grep program that handles long lines. 19072GREP=$lt_GREP 19073 19074# An ERE matcher. 19075EGREP=$lt_EGREP 19076 19077# A literal string matcher. 19078FGREP=$lt_FGREP 19079 19080# A BSD- or MS-compatible name lister. 19081NM=$lt_NM 19082 19083# Whether we need soft or hard links. 19084LN_S=$lt_LN_S 19085 19086# What is the maximum length of a command? 19087max_cmd_len=$max_cmd_len 19088 19089# Object file suffix (normally "o"). 19090objext=$ac_objext 19091 19092# Executable file suffix (normally ""). 19093exeext=$exeext 19094 19095# whether the shell understands "unset". 19096lt_unset=$lt_unset 19097 19098# turn spaces into newlines. 19099SP2NL=$lt_lt_SP2NL 19100 19101# turn newlines into spaces. 19102NL2SP=$lt_lt_NL2SP 19103 19104# How to create reloadable object files. 19105reload_flag=$lt_reload_flag 19106reload_cmds=$lt_reload_cmds 19107 19108# An object symbol dumper. 19109OBJDUMP=$lt_OBJDUMP 19110 19111# Method to check whether dependent libraries are shared objects. 19112deplibs_check_method=$lt_deplibs_check_method 19113 19114# Command to use when deplibs_check_method == "file_magic". 19115file_magic_cmd=$lt_file_magic_cmd 19116 19117# The archiver. 19118AR=$lt_AR 19119AR_FLAGS=$lt_AR_FLAGS 19120 19121# A symbol stripping program. 19122STRIP=$lt_STRIP 19123 19124# Commands used to install an old-style archive. 19125RANLIB=$lt_RANLIB 19126old_postinstall_cmds=$lt_old_postinstall_cmds 19127old_postuninstall_cmds=$lt_old_postuninstall_cmds 19128 19129# A C compiler. 19130LTCC=$lt_CC 19131 19132# LTCC compiler flags. 19133LTCFLAGS=$lt_CFLAGS 19134 19135# Take the output of nm and produce a listing of raw symbols and C names. 19136global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19137 19138# Transform the output of nm in a proper C declaration. 19139global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19140 19141# Transform the output of nm in a C name address pair. 19142global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19143 19144# Transform the output of nm in a C name address pair when lib prefix is needed. 19145global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19146 19147# The name of the directory that contains temporary libtool files. 19148objdir=$objdir 19149 19150# Shell to use when invoking shell scripts. 19151SHELL=$lt_SHELL 19152 19153# An echo program that does not interpret backslashes. 19154ECHO=$lt_ECHO 19155 19156# Used to examine libraries when file_magic_cmd begins with "file". 19157MAGIC_CMD=$MAGIC_CMD 19158 19159# Must we lock files when doing compilation? 19160need_locks=$lt_need_locks 19161 19162# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19163DSYMUTIL=$lt_DSYMUTIL 19164 19165# Tool to change global to local symbols on Mac OS X. 19166NMEDIT=$lt_NMEDIT 19167 19168# Tool to manipulate fat objects and archives on Mac OS X. 19169LIPO=$lt_LIPO 19170 19171# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19172OTOOL=$lt_OTOOL 19173 19174# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19175OTOOL64=$lt_OTOOL64 19176 19177# Old archive suffix (normally "a"). 19178libext=$libext 19179 19180# Shared library suffix (normally ".so"). 19181shrext_cmds=$lt_shrext_cmds 19182 19183# The commands to extract the exported symbol list from a shared archive. 19184extract_expsyms_cmds=$lt_extract_expsyms_cmds 19185 19186# Variables whose values should be saved in libtool wrapper scripts and 19187# restored at link time. 19188variables_saved_for_relink=$lt_variables_saved_for_relink 19189 19190# Do we need the "lib" prefix for modules? 19191need_lib_prefix=$need_lib_prefix 19192 19193# Do we need a version for libraries? 19194need_version=$need_version 19195 19196# Library versioning type. 19197version_type=$version_type 19198 19199# Shared library runtime path variable. 19200runpath_var=$runpath_var 19201 19202# Shared library path variable. 19203shlibpath_var=$shlibpath_var 19204 19205# Is shlibpath searched before the hard-coded library search path? 19206shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19207 19208# Format of library name prefix. 19209libname_spec=$lt_libname_spec 19210 19211# List of archive names. First name is the real one, the rest are links. 19212# The last name is the one that the linker finds with -lNAME 19213library_names_spec=$lt_library_names_spec 19214 19215# The coded name of the library, if different from the real name. 19216soname_spec=$lt_soname_spec 19217 19218# Command to use after installation of a shared archive. 19219postinstall_cmds=$lt_postinstall_cmds 19220 19221# Command to use after uninstallation of a shared archive. 19222postuninstall_cmds=$lt_postuninstall_cmds 19223 19224# Commands used to finish a libtool library installation in a directory. 19225finish_cmds=$lt_finish_cmds 19226 19227# As "finish_cmds", except a single script fragment to be evaled but 19228# not shown. 19229finish_eval=$lt_finish_eval 19230 19231# Whether we should hardcode library paths into libraries. 19232hardcode_into_libs=$hardcode_into_libs 19233 19234# Compile-time system search path for libraries. 19235sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19236 19237# Run-time system search path for libraries. 19238sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19239 19240# Whether dlopen is supported. 19241dlopen_support=$enable_dlopen 19242 19243# Whether dlopen of programs is supported. 19244dlopen_self=$enable_dlopen_self 19245 19246# Whether dlopen of statically linked programs is supported. 19247dlopen_self_static=$enable_dlopen_self_static 19248 19249# Commands to strip libraries. 19250old_striplib=$lt_old_striplib 19251striplib=$lt_striplib 19252 19253 19254# The linker used to build libraries. 19255LD=$lt_LD 19256 19257# Commands used to build an old-style archive. 19258old_archive_cmds=$lt_old_archive_cmds 19259 19260# A language specific compiler. 19261CC=$lt_compiler 19262 19263# Is the compiler the GNU compiler? 19264with_gcc=$GCC 19265 19266# Compiler flag to turn off builtin functions. 19267no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19268 19269# How to pass a linker flag through the compiler. 19270wl=$lt_lt_prog_compiler_wl 19271 19272# Additional compiler flags for building library objects. 19273pic_flag=$lt_lt_prog_compiler_pic 19274 19275# Compiler flag to prevent dynamic linking. 19276link_static_flag=$lt_lt_prog_compiler_static 19277 19278# Does compiler simultaneously support -c and -o options? 19279compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19280 19281# Whether or not to add -lc for building shared libraries. 19282build_libtool_need_lc=$archive_cmds_need_lc 19283 19284# Whether or not to disallow shared libs when runtime libs are static. 19285allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19286 19287# Compiler flag to allow reflexive dlopens. 19288export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19289 19290# Compiler flag to generate shared objects directly from archives. 19291whole_archive_flag_spec=$lt_whole_archive_flag_spec 19292 19293# Whether the compiler copes with passing no objects directly. 19294compiler_needs_object=$lt_compiler_needs_object 19295 19296# Create an old-style archive from a shared archive. 19297old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19298 19299# Create a temporary old-style archive to link instead of a shared archive. 19300old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19301 19302# Commands used to build a shared archive. 19303archive_cmds=$lt_archive_cmds 19304archive_expsym_cmds=$lt_archive_expsym_cmds 19305 19306# Commands used to build a loadable module if different from building 19307# a shared archive. 19308module_cmds=$lt_module_cmds 19309module_expsym_cmds=$lt_module_expsym_cmds 19310 19311# Whether we are building with GNU ld or not. 19312with_gnu_ld=$lt_with_gnu_ld 19313 19314# Flag that allows shared libraries with undefined symbols to be built. 19315allow_undefined_flag=$lt_allow_undefined_flag 19316 19317# Flag that enforces no undefined symbols. 19318no_undefined_flag=$lt_no_undefined_flag 19319 19320# Flag to hardcode \$libdir into a binary during linking. 19321# This must work even if \$libdir does not exist 19322hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19323 19324# If ld is used when linking, flag to hardcode \$libdir into a binary 19325# during linking. This must work even if \$libdir does not exist. 19326hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 19327 19328# Whether we need a single "-rpath" flag with a separated argument. 19329hardcode_libdir_separator=$lt_hardcode_libdir_separator 19330 19331# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19332# DIR into the resulting binary. 19333hardcode_direct=$hardcode_direct 19334 19335# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19336# DIR into the resulting binary and the resulting library dependency is 19337# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 19338# library is relocated. 19339hardcode_direct_absolute=$hardcode_direct_absolute 19340 19341# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19342# into the resulting binary. 19343hardcode_minus_L=$hardcode_minus_L 19344 19345# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19346# into the resulting binary. 19347hardcode_shlibpath_var=$hardcode_shlibpath_var 19348 19349# Set to "yes" if building a shared library automatically hardcodes DIR 19350# into the library and all subsequent libraries and executables linked 19351# against it. 19352hardcode_automatic=$hardcode_automatic 19353 19354# Set to yes if linker adds runtime paths of dependent libraries 19355# to runtime path list. 19356inherit_rpath=$inherit_rpath 19357 19358# Whether libtool must link a program against all its dependency libraries. 19359link_all_deplibs=$link_all_deplibs 19360 19361# Fix the shell variable \$srcfile for the compiler. 19362fix_srcfile_path=$lt_fix_srcfile_path 19363 19364# Set to "yes" if exported symbols are required. 19365always_export_symbols=$always_export_symbols 19366 19367# The commands to list exported symbols. 19368export_symbols_cmds=$lt_export_symbols_cmds 19369 19370# Symbols that should not be listed in the preloaded symbols. 19371exclude_expsyms=$lt_exclude_expsyms 19372 19373# Symbols that must always be exported. 19374include_expsyms=$lt_include_expsyms 19375 19376# Commands necessary for linking programs (against libraries) with templates. 19377prelink_cmds=$lt_prelink_cmds 19378 19379# Specify filename containing input files. 19380file_list_spec=$lt_file_list_spec 19381 19382# How to hardcode a shared library path into an executable. 19383hardcode_action=$hardcode_action 19384 19385# The directories searched by this compiler when creating a shared library. 19386compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 19387 19388# Dependencies to place before and after the objects being linked to 19389# create a shared library. 19390predep_objects=$lt_predep_objects 19391postdep_objects=$lt_postdep_objects 19392predeps=$lt_predeps 19393postdeps=$lt_postdeps 19394 19395# The library search path used internally by the compiler when linking 19396# a shared library. 19397compiler_lib_search_path=$lt_compiler_lib_search_path 19398 19399# ### END LIBTOOL CONFIG 19400 19401_LT_EOF 19402 19403 case $host_os in 19404 aix3*) 19405 cat <<\_LT_EOF >> "$cfgfile" 19406# AIX sometimes has problems with the GCC collect2 program. For some 19407# reason, if we set the COLLECT_NAMES environment variable, the problems 19408# vanish in a puff of smoke. 19409if test "X${COLLECT_NAMES+set}" != Xset; then 19410 COLLECT_NAMES= 19411 export COLLECT_NAMES 19412fi 19413_LT_EOF 19414 ;; 19415 esac 19416 19417 19418ltmain="$ac_aux_dir/ltmain.sh" 19419 19420 19421 # We use sed instead of cat because bash on DJGPP gets confused if 19422 # if finds mixed CR/LF and LF-only lines. Since sed operates in 19423 # text mode, it properly converts lines to CR/LF. This bash problem 19424 # is reportedly fixed, but why not run on old versions too? 19425 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 19426 || (rm -f "$cfgfile"; exit 1) 19427 19428 case $xsi_shell in 19429 yes) 19430 cat << \_LT_EOF >> "$cfgfile" 19431 19432# func_dirname file append nondir_replacement 19433# Compute the dirname of FILE. If nonempty, add APPEND to the result, 19434# otherwise set result to NONDIR_REPLACEMENT. 19435func_dirname () 19436{ 19437 case ${1} in 19438 */*) func_dirname_result="${1%/*}${2}" ;; 19439 * ) func_dirname_result="${3}" ;; 19440 esac 19441} 19442 19443# func_basename file 19444func_basename () 19445{ 19446 func_basename_result="${1##*/}" 19447} 19448 19449# func_dirname_and_basename file append nondir_replacement 19450# perform func_basename and func_dirname in a single function 19451# call: 19452# dirname: Compute the dirname of FILE. If nonempty, 19453# add APPEND to the result, otherwise set result 19454# to NONDIR_REPLACEMENT. 19455# value returned in "$func_dirname_result" 19456# basename: Compute filename of FILE. 19457# value retuned in "$func_basename_result" 19458# Implementation must be kept synchronized with func_dirname 19459# and func_basename. For efficiency, we do not delegate to 19460# those functions but instead duplicate the functionality here. 19461func_dirname_and_basename () 19462{ 19463 case ${1} in 19464 */*) func_dirname_result="${1%/*}${2}" ;; 19465 * ) func_dirname_result="${3}" ;; 19466 esac 19467 func_basename_result="${1##*/}" 19468} 19469 19470# func_stripname prefix suffix name 19471# strip PREFIX and SUFFIX off of NAME. 19472# PREFIX and SUFFIX must not contain globbing or regex special 19473# characters, hashes, percent signs, but SUFFIX may contain a leading 19474# dot (in which case that matches only a dot). 19475func_stripname () 19476{ 19477 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 19478 # positional parameters, so assign one to ordinary parameter first. 19479 func_stripname_result=${3} 19480 func_stripname_result=${func_stripname_result#"${1}"} 19481 func_stripname_result=${func_stripname_result%"${2}"} 19482} 19483 19484# func_opt_split 19485func_opt_split () 19486{ 19487 func_opt_split_opt=${1%%=*} 19488 func_opt_split_arg=${1#*=} 19489} 19490 19491# func_lo2o object 19492func_lo2o () 19493{ 19494 case ${1} in 19495 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 19496 *) func_lo2o_result=${1} ;; 19497 esac 19498} 19499 19500# func_xform libobj-or-source 19501func_xform () 19502{ 19503 func_xform_result=${1%.*}.lo 19504} 19505 19506# func_arith arithmetic-term... 19507func_arith () 19508{ 19509 func_arith_result=$(( $* )) 19510} 19511 19512# func_len string 19513# STRING may not start with a hyphen. 19514func_len () 19515{ 19516 func_len_result=${#1} 19517} 19518 19519_LT_EOF 19520 ;; 19521 *) # Bourne compatible functions. 19522 cat << \_LT_EOF >> "$cfgfile" 19523 19524# func_dirname file append nondir_replacement 19525# Compute the dirname of FILE. If nonempty, add APPEND to the result, 19526# otherwise set result to NONDIR_REPLACEMENT. 19527func_dirname () 19528{ 19529 # Extract subdirectory from the argument. 19530 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 19531 if test "X$func_dirname_result" = "X${1}"; then 19532 func_dirname_result="${3}" 19533 else 19534 func_dirname_result="$func_dirname_result${2}" 19535 fi 19536} 19537 19538# func_basename file 19539func_basename () 19540{ 19541 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 19542} 19543 19544 19545# func_stripname prefix suffix name 19546# strip PREFIX and SUFFIX off of NAME. 19547# PREFIX and SUFFIX must not contain globbing or regex special 19548# characters, hashes, percent signs, but SUFFIX may contain a leading 19549# dot (in which case that matches only a dot). 19550# func_strip_suffix prefix name 19551func_stripname () 19552{ 19553 case ${2} in 19554 .*) func_stripname_result=`$ECHO "X${3}" \ 19555 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 19556 *) func_stripname_result=`$ECHO "X${3}" \ 19557 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 19558 esac 19559} 19560 19561# sed scripts: 19562my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 19563my_sed_long_arg='1s/^-[^=]*=//' 19564 19565# func_opt_split 19566func_opt_split () 19567{ 19568 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 19569 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 19570} 19571 19572# func_lo2o object 19573func_lo2o () 19574{ 19575 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 19576} 19577 19578# func_xform libobj-or-source 19579func_xform () 19580{ 19581 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 19582} 19583 19584# func_arith arithmetic-term... 19585func_arith () 19586{ 19587 func_arith_result=`expr "$@"` 19588} 19589 19590# func_len string 19591# STRING may not start with a hyphen. 19592func_len () 19593{ 19594 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 19595} 19596 19597_LT_EOF 19598esac 19599 19600case $lt_shell_append in 19601 yes) 19602 cat << \_LT_EOF >> "$cfgfile" 19603 19604# func_append var value 19605# Append VALUE to the end of shell variable VAR. 19606func_append () 19607{ 19608 eval "$1+=\$2" 19609} 19610_LT_EOF 19611 ;; 19612 *) 19613 cat << \_LT_EOF >> "$cfgfile" 19614 19615# func_append var value 19616# Append VALUE to the end of shell variable VAR. 19617func_append () 19618{ 19619 eval "$1=\$$1\$2" 19620} 19621 19622_LT_EOF 19623 ;; 19624 esac 19625 19626 19627 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 19628 || (rm -f "$cfgfile"; exit 1) 19629 19630 mv -f "$cfgfile" "$ofile" || 19631 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19632 chmod +x "$ofile" 19633 19634 19635 cat <<_LT_EOF >> "$ofile" 19636 19637# ### BEGIN LIBTOOL TAG CONFIG: CXX 19638 19639# The linker used to build libraries. 19640LD=$lt_LD_CXX 19641 19642# Commands used to build an old-style archive. 19643old_archive_cmds=$lt_old_archive_cmds_CXX 19644 19645# A language specific compiler. 19646CC=$lt_compiler_CXX 19647 19648# Is the compiler the GNU compiler? 19649with_gcc=$GCC_CXX 19650 19651# Compiler flag to turn off builtin functions. 19652no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 19653 19654# How to pass a linker flag through the compiler. 19655wl=$lt_lt_prog_compiler_wl_CXX 19656 19657# Additional compiler flags for building library objects. 19658pic_flag=$lt_lt_prog_compiler_pic_CXX 19659 19660# Compiler flag to prevent dynamic linking. 19661link_static_flag=$lt_lt_prog_compiler_static_CXX 19662 19663# Does compiler simultaneously support -c and -o options? 19664compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 19665 19666# Whether or not to add -lc for building shared libraries. 19667build_libtool_need_lc=$archive_cmds_need_lc_CXX 19668 19669# Whether or not to disallow shared libs when runtime libs are static. 19670allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 19671 19672# Compiler flag to allow reflexive dlopens. 19673export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 19674 19675# Compiler flag to generate shared objects directly from archives. 19676whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 19677 19678# Whether the compiler copes with passing no objects directly. 19679compiler_needs_object=$lt_compiler_needs_object_CXX 19680 19681# Create an old-style archive from a shared archive. 19682old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 19683 19684# Create a temporary old-style archive to link instead of a shared archive. 19685old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 19686 19687# Commands used to build a shared archive. 19688archive_cmds=$lt_archive_cmds_CXX 19689archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 19690 19691# Commands used to build a loadable module if different from building 19692# a shared archive. 19693module_cmds=$lt_module_cmds_CXX 19694module_expsym_cmds=$lt_module_expsym_cmds_CXX 19695 19696# Whether we are building with GNU ld or not. 19697with_gnu_ld=$lt_with_gnu_ld_CXX 19698 19699# Flag that allows shared libraries with undefined symbols to be built. 19700allow_undefined_flag=$lt_allow_undefined_flag_CXX 19701 19702# Flag that enforces no undefined symbols. 19703no_undefined_flag=$lt_no_undefined_flag_CXX 19704 19705# Flag to hardcode \$libdir into a binary during linking. 19706# This must work even if \$libdir does not exist 19707hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 19708 19709# If ld is used when linking, flag to hardcode \$libdir into a binary 19710# during linking. This must work even if \$libdir does not exist. 19711hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 19712 19713# Whether we need a single "-rpath" flag with a separated argument. 19714hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 19715 19716# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19717# DIR into the resulting binary. 19718hardcode_direct=$hardcode_direct_CXX 19719 19720# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19721# DIR into the resulting binary and the resulting library dependency is 19722# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 19723# library is relocated. 19724hardcode_direct_absolute=$hardcode_direct_absolute_CXX 19725 19726# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19727# into the resulting binary. 19728hardcode_minus_L=$hardcode_minus_L_CXX 19729 19730# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19731# into the resulting binary. 19732hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 19733 19734# Set to "yes" if building a shared library automatically hardcodes DIR 19735# into the library and all subsequent libraries and executables linked 19736# against it. 19737hardcode_automatic=$hardcode_automatic_CXX 19738 19739# Set to yes if linker adds runtime paths of dependent libraries 19740# to runtime path list. 19741inherit_rpath=$inherit_rpath_CXX 19742 19743# Whether libtool must link a program against all its dependency libraries. 19744link_all_deplibs=$link_all_deplibs_CXX 19745 19746# Fix the shell variable \$srcfile for the compiler. 19747fix_srcfile_path=$lt_fix_srcfile_path_CXX 19748 19749# Set to "yes" if exported symbols are required. 19750always_export_symbols=$always_export_symbols_CXX 19751 19752# The commands to list exported symbols. 19753export_symbols_cmds=$lt_export_symbols_cmds_CXX 19754 19755# Symbols that should not be listed in the preloaded symbols. 19756exclude_expsyms=$lt_exclude_expsyms_CXX 19757 19758# Symbols that must always be exported. 19759include_expsyms=$lt_include_expsyms_CXX 19760 19761# Commands necessary for linking programs (against libraries) with templates. 19762prelink_cmds=$lt_prelink_cmds_CXX 19763 19764# Specify filename containing input files. 19765file_list_spec=$lt_file_list_spec_CXX 19766 19767# How to hardcode a shared library path into an executable. 19768hardcode_action=$hardcode_action_CXX 19769 19770# The directories searched by this compiler when creating a shared library. 19771compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 19772 19773# Dependencies to place before and after the objects being linked to 19774# create a shared library. 19775predep_objects=$lt_predep_objects_CXX 19776postdep_objects=$lt_postdep_objects_CXX 19777predeps=$lt_predeps_CXX 19778postdeps=$lt_postdeps_CXX 19779 19780# The library search path used internally by the compiler when linking 19781# a shared library. 19782compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 19783 19784# ### END LIBTOOL TAG CONFIG: CXX 19785_LT_EOF 19786 19787 ;; 19788 19789 esac 19790done # for ac_tag 19791 19792 19793as_fn_exit 0 19794_ACEOF 19795ac_clean_files=$ac_clean_files_save 19796 19797test $ac_write_fail = 0 || 19798 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 19799 19800 19801# configure is writing to config.log, and then calls config.status. 19802# config.status does its own redirection, appending to config.log. 19803# Unfortunately, on DOS this fails, as config.log is still kept open 19804# by configure, so config.status won't be able to write to it; its 19805# output is simply discarded. So we exec the FD to /dev/null, 19806# effectively closing config.log, so it can be properly (re)opened and 19807# appended to by config.status. When coming back to configure, we 19808# need to make the FD available again. 19809if test "$no_create" != yes; then 19810 ac_cs_success=: 19811 ac_config_status_args= 19812 test "$silent" = yes && 19813 ac_config_status_args="$ac_config_status_args --quiet" 19814 exec 5>/dev/null 19815 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19816 exec 5>>config.log 19817 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19818 # would make configure fail if this is the last instruction. 19819 $ac_cs_success || as_fn_exit $? 19820fi 19821if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 19822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 19823$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 19824fi 19825 19826