1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.67 for Automated Testing Framework 0.12. 4# 5# Report bugs to <atf-devel@NetBSD.org>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, 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# Copyright (c) 2007, 2008, 2009, 2010 The NetBSD Foundation, Inc. 17## -------------------- ## 18## M4sh Initialization. ## 19## -------------------- ## 20 21# Be more Bourne compatible 22DUALCASE=1; export DUALCASE # for MKS sh 23if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 24 emulate sh 25 NULLCMD=: 26 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 27 # is contrary to our usage. Disable this feature. 28 alias -g '${1+"$@"}'='"$@"' 29 setopt NO_GLOB_SUBST 30else 31 case `(set -o) 2>/dev/null` in #( 32 *posix*) : 33 set -o posix ;; #( 34 *) : 35 ;; 36esac 37fi 38 39 40as_nl=' 41' 42export as_nl 43# Printing a long string crashes Solaris 7 /usr/bin/printf. 44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 47# Prefer a ksh shell builtin over an external printf program on Solaris, 48# but without wasting forks for bash or zsh. 49if test -z "$BASH_VERSION$ZSH_VERSION" \ 50 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 51 as_echo='print -r --' 52 as_echo_n='print -rn --' 53elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 54 as_echo='printf %s\n' 55 as_echo_n='printf %s' 56else 57 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 58 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 59 as_echo_n='/usr/ucb/echo -n' 60 else 61 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 62 as_echo_n_body='eval 63 arg=$1; 64 case $arg in #( 65 *"$as_nl"*) 66 expr "X$arg" : "X\\(.*\\)$as_nl"; 67 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 68 esac; 69 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 70 ' 71 export as_echo_n_body 72 as_echo_n='sh -c $as_echo_n_body as_echo' 73 fi 74 export as_echo_body 75 as_echo='sh -c $as_echo_body as_echo' 76fi 77 78# The user is always right. 79if test "${PATH_SEPARATOR+set}" != set; then 80 PATH_SEPARATOR=: 81 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 82 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 83 PATH_SEPARATOR=';' 84 } 85fi 86 87 88# IFS 89# We need space, tab and new line, in precisely that order. Quoting is 90# there to prevent editors from complaining about space-tab. 91# (If _AS_PATH_WALK were called with IFS unset, it would disable word 92# splitting by setting IFS to empty value.) 93IFS=" "" $as_nl" 94 95# Find who we are. Look in the path if we contain no directory separator. 96case $0 in #(( 97 *[\\/]* ) as_myself=$0 ;; 98 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 99for as_dir in $PATH 100do 101 IFS=$as_save_IFS 102 test -z "$as_dir" && as_dir=. 103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 104 done 105IFS=$as_save_IFS 106 107 ;; 108esac 109# We did not find ourselves, most probably we were run as `sh COMMAND' 110# in which case we are not to be found in the path. 111if test "x$as_myself" = x; then 112 as_myself=$0 113fi 114if test ! -f "$as_myself"; then 115 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 116 exit 1 117fi 118 119# Unset variables that we do not need and which cause bugs (e.g. in 120# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 121# suppresses any "Segmentation fault" message there. '((' could 122# trigger a bug in pdksh 5.2.14. 123for as_var in BASH_ENV ENV MAIL MAILPATH 124do eval test x\${$as_var+set} = xset \ 125 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 126done 127PS1='$ ' 128PS2='> ' 129PS4='+ ' 130 131# NLS nuisances. 132LC_ALL=C 133export LC_ALL 134LANGUAGE=C 135export LANGUAGE 136 137# CDPATH. 138(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 139 140if test "x$CONFIG_SHELL" = x; then 141 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 142 emulate sh 143 NULLCMD=: 144 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 145 # is contrary to our usage. Disable this feature. 146 alias -g '\${1+\"\$@\"}'='\"\$@\"' 147 setopt NO_GLOB_SUBST 148else 149 case \`(set -o) 2>/dev/null\` in #( 150 *posix*) : 151 set -o posix ;; #( 152 *) : 153 ;; 154esac 155fi 156" 157 as_required="as_fn_return () { (exit \$1); } 158as_fn_success () { as_fn_return 0; } 159as_fn_failure () { as_fn_return 1; } 160as_fn_ret_success () { return 0; } 161as_fn_ret_failure () { return 1; } 162 163exitcode=0 164as_fn_success || { exitcode=1; echo as_fn_success failed.; } 165as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 166as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 167as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 168if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 169 170else 171 exitcode=1; echo positional parameters were not saved. 172fi 173test x\$exitcode = x0 || exit 1" 174 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 175 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 176 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 177 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 178test \$(( 1 + 1 )) = 2 || exit 1" 179 if (eval "$as_required") 2>/dev/null; then : 180 as_have_required=yes 181else 182 as_have_required=no 183fi 184 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 185 186else 187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 188as_found=false 189for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 190do 191 IFS=$as_save_IFS 192 test -z "$as_dir" && as_dir=. 193 as_found=: 194 case $as_dir in #( 195 /*) 196 for as_base in sh bash ksh sh5; do 197 # Try only shells that exist, to save several forks. 198 as_shell=$as_dir/$as_base 199 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 200 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 201 CONFIG_SHELL=$as_shell as_have_required=yes 202 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 203 break 2 204fi 205fi 206 done;; 207 esac 208 as_found=false 209done 210$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 211 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 212 CONFIG_SHELL=$SHELL as_have_required=yes 213fi; } 214IFS=$as_save_IFS 215 216 217 if test "x$CONFIG_SHELL" != x; then : 218 # We cannot yet assume a decent shell, so we have to provide a 219 # neutralization value for shells without unset; and this also 220 # works around shells that cannot unset nonexistent variables. 221 BASH_ENV=/dev/null 222 ENV=/dev/null 223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 224 export CONFIG_SHELL 225 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 226fi 227 228 if test x$as_have_required = xno; then : 229 $as_echo "$0: This script requires a shell more modern than all" 230 $as_echo "$0: the shells that I found on your system." 231 if test x${ZSH_VERSION+set} = xset ; then 232 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 233 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 234 else 235 $as_echo "$0: Please tell bug-autoconf@gnu.org and 236$0: atf-devel@NetBSD.org about your system, including any 237$0: error possibly output before this message. Then install 238$0: a modern shell, or manually run the script under such a 239$0: shell if you do have one." 240 fi 241 exit 1 242fi 243fi 244fi 245SHELL=${CONFIG_SHELL-/bin/sh} 246export SHELL 247# Unset more variables known to interfere with behavior of common tools. 248CLICOLOR_FORCE= GREP_OPTIONS= 249unset CLICOLOR_FORCE GREP_OPTIONS 250 251## --------------------- ## 252## M4sh Shell Functions. ## 253## --------------------- ## 254# as_fn_unset VAR 255# --------------- 256# Portably unset VAR. 257as_fn_unset () 258{ 259 { eval $1=; unset $1;} 260} 261as_unset=as_fn_unset 262 263# as_fn_set_status STATUS 264# ----------------------- 265# Set $? to STATUS, without forking. 266as_fn_set_status () 267{ 268 return $1 269} # as_fn_set_status 270 271# as_fn_exit STATUS 272# ----------------- 273# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 274as_fn_exit () 275{ 276 set +e 277 as_fn_set_status $1 278 exit $1 279} # as_fn_exit 280 281# as_fn_mkdir_p 282# ------------- 283# Create "$as_dir" as a directory, including parents if necessary. 284as_fn_mkdir_p () 285{ 286 287 case $as_dir in #( 288 -*) as_dir=./$as_dir;; 289 esac 290 test -d "$as_dir" || eval $as_mkdir_p || { 291 as_dirs= 292 while :; do 293 case $as_dir in #( 294 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 295 *) as_qdir=$as_dir;; 296 esac 297 as_dirs="'$as_qdir' $as_dirs" 298 as_dir=`$as_dirname -- "$as_dir" || 299$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 300 X"$as_dir" : 'X\(//\)[^/]' \| \ 301 X"$as_dir" : 'X\(//\)$' \| \ 302 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 303$as_echo X"$as_dir" | 304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 305 s//\1/ 306 q 307 } 308 /^X\(\/\/\)[^/].*/{ 309 s//\1/ 310 q 311 } 312 /^X\(\/\/\)$/{ 313 s//\1/ 314 q 315 } 316 /^X\(\/\).*/{ 317 s//\1/ 318 q 319 } 320 s/.*/./; q'` 321 test -d "$as_dir" && break 322 done 323 test -z "$as_dirs" || eval "mkdir $as_dirs" 324 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 325 326 327} # as_fn_mkdir_p 328# as_fn_append VAR VALUE 329# ---------------------- 330# Append the text in VALUE to the end of the definition contained in VAR. Take 331# advantage of any shell optimizations that allow amortized linear growth over 332# repeated appends, instead of the typical quadratic growth present in naive 333# implementations. 334if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 335 eval 'as_fn_append () 336 { 337 eval $1+=\$2 338 }' 339else 340 as_fn_append () 341 { 342 eval $1=\$$1\$2 343 } 344fi # as_fn_append 345 346# as_fn_arith ARG... 347# ------------------ 348# Perform arithmetic evaluation on the ARGs, and store the result in the 349# global $as_val. Take advantage of shells that can avoid forks. The arguments 350# must be portable across $(()) and expr. 351if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 352 eval 'as_fn_arith () 353 { 354 as_val=$(( $* )) 355 }' 356else 357 as_fn_arith () 358 { 359 as_val=`expr "$@" || test $? -eq 1` 360 } 361fi # as_fn_arith 362 363 364# as_fn_error STATUS ERROR [LINENO LOG_FD] 365# ---------------------------------------- 366# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 367# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 368# script with STATUS, using 1 if that was 0. 369as_fn_error () 370{ 371 as_status=$1; test $as_status -eq 0 && as_status=1 372 if test "$4"; then 373 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 374 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 375 fi 376 $as_echo "$as_me: error: $2" >&2 377 as_fn_exit $as_status 378} # as_fn_error 379 380if expr a : '\(a\)' >/dev/null 2>&1 && 381 test "X`expr 00001 : '.*\(...\)'`" = X001; then 382 as_expr=expr 383else 384 as_expr=false 385fi 386 387if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 388 as_basename=basename 389else 390 as_basename=false 391fi 392 393if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 394 as_dirname=dirname 395else 396 as_dirname=false 397fi 398 399as_me=`$as_basename -- "$0" || 400$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 401 X"$0" : 'X\(//\)$' \| \ 402 X"$0" : 'X\(/\)' \| . 2>/dev/null || 403$as_echo X/"$0" | 404 sed '/^.*\/\([^/][^/]*\)\/*$/{ 405 s//\1/ 406 q 407 } 408 /^X\/\(\/\/\)$/{ 409 s//\1/ 410 q 411 } 412 /^X\/\(\/\).*/{ 413 s//\1/ 414 q 415 } 416 s/.*/./; q'` 417 418# Avoid depending upon Character Ranges. 419as_cr_letters='abcdefghijklmnopqrstuvwxyz' 420as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 421as_cr_Letters=$as_cr_letters$as_cr_LETTERS 422as_cr_digits='0123456789' 423as_cr_alnum=$as_cr_Letters$as_cr_digits 424 425 426 as_lineno_1=$LINENO as_lineno_1a=$LINENO 427 as_lineno_2=$LINENO as_lineno_2a=$LINENO 428 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 429 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 430 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 431 sed -n ' 432 p 433 /[$]LINENO/= 434 ' <$as_myself | 435 sed ' 436 s/[$]LINENO.*/&-/ 437 t lineno 438 b 439 :lineno 440 N 441 :loop 442 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 443 t loop 444 s/-\n.*// 445 ' >$as_me.lineno && 446 chmod +x "$as_me.lineno" || 447 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 448 449 # Don't try to exec as it changes $[0], causing all sort of problems 450 # (the dirname of $[0] is not the place where we might find the 451 # original and so on. Autoconf is especially sensitive to this). 452 . "./$as_me.lineno" 453 # Exit status is that of the last command. 454 exit 455} 456 457ECHO_C= ECHO_N= ECHO_T= 458case `echo -n x` in #((((( 459-n*) 460 case `echo 'xy\c'` in 461 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 462 xy) ECHO_C='\c';; 463 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 464 ECHO_T=' ';; 465 esac;; 466*) 467 ECHO_N='-n';; 468esac 469 470rm -f conf$$ conf$$.exe conf$$.file 471if test -d conf$$.dir; then 472 rm -f conf$$.dir/conf$$.file 473else 474 rm -f conf$$.dir 475 mkdir conf$$.dir 2>/dev/null 476fi 477if (echo >conf$$.file) 2>/dev/null; then 478 if ln -s conf$$.file conf$$ 2>/dev/null; then 479 as_ln_s='ln -s' 480 # ... but there are two gotchas: 481 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 482 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 483 # In both cases, we have to default to `cp -p'. 484 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 485 as_ln_s='cp -p' 486 elif ln conf$$.file conf$$ 2>/dev/null; then 487 as_ln_s=ln 488 else 489 as_ln_s='cp -p' 490 fi 491else 492 as_ln_s='cp -p' 493fi 494rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 495rmdir conf$$.dir 2>/dev/null 496 497if mkdir -p . 2>/dev/null; then 498 as_mkdir_p='mkdir -p "$as_dir"' 499else 500 test -d ./-p && rmdir ./-p 501 as_mkdir_p=false 502fi 503 504if test -x / >/dev/null 2>&1; then 505 as_test_x='test -x' 506else 507 if ls -dL / >/dev/null 2>&1; then 508 as_ls_L_option=L 509 else 510 as_ls_L_option= 511 fi 512 as_test_x=' 513 eval sh -c '\'' 514 if test -d "$1"; then 515 test -d "$1/."; 516 else 517 case $1 in #( 518 -*)set "./$1";; 519 esac; 520 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 521 ???[sx]*):;;*)false;;esac;fi 522 '\'' sh 523 ' 524fi 525as_executable_p=$as_test_x 526 527# Sed expression to map a string onto a valid CPP name. 528as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 529 530# Sed expression to map a string onto a valid variable name. 531as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 532 533 534 535# Check that we are running under the correct shell. 536SHELL=${CONFIG_SHELL-/bin/sh} 537 538case X$lt_ECHO in 539X*--fallback-echo) 540 # Remove one level of quotation (which was required for Make). 541 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 542 ;; 543esac 544 545ECHO=${lt_ECHO-echo} 546if test "X$1" = X--no-reexec; then 547 # Discard the --no-reexec flag, and continue. 548 shift 549elif test "X$1" = X--fallback-echo; then 550 # Avoid inline document here, it may be left over 551 : 552elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 553 # Yippee, $ECHO works! 554 : 555else 556 # Restart under the correct shell. 557 exec $SHELL "$0" --no-reexec ${1+"$@"} 558fi 559 560if test "X$1" = X--fallback-echo; then 561 # used as fallback echo 562 shift 563 cat <<_LT_EOF 564$* 565_LT_EOF 566 exit 0 567fi 568 569# The HP-UX ksh and POSIX shell print the target directory to stdout 570# if CDPATH is set. 571(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 572 573if test -z "$lt_ECHO"; then 574 if test "X${echo_test_string+set}" != Xset; then 575 # find a string as large as possible, as long as the shell can cope with it 576 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 577 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 578 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 579 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 580 then 581 break 582 fi 583 done 584 fi 585 586 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 587 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 588 test "X$echo_testing_string" = "X$echo_test_string"; then 589 : 590 else 591 # The Solaris, AIX, and Digital Unix default echo programs unquote 592 # backslashes. This makes it impossible to quote backslashes using 593 # echo "$something" | sed 's/\\/\\\\/g' 594 # 595 # So, first we look for a working echo in the user's PATH. 596 597 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 598 for dir in $PATH /usr/ucb; do 599 IFS="$lt_save_ifs" 600 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 601 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 602 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 603 test "X$echo_testing_string" = "X$echo_test_string"; then 604 ECHO="$dir/echo" 605 break 606 fi 607 done 608 IFS="$lt_save_ifs" 609 610 if test "X$ECHO" = Xecho; then 611 # We didn't find a better echo, so look for alternatives. 612 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 613 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 614 test "X$echo_testing_string" = "X$echo_test_string"; then 615 # This shell has a builtin print -r that does the trick. 616 ECHO='print -r' 617 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 618 test "X$CONFIG_SHELL" != X/bin/ksh; then 619 # If we have ksh, try running configure again with it. 620 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 621 export ORIGINAL_CONFIG_SHELL 622 CONFIG_SHELL=/bin/ksh 623 export CONFIG_SHELL 624 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 625 else 626 # Try using printf. 627 ECHO='printf %s\n' 628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 630 test "X$echo_testing_string" = "X$echo_test_string"; then 631 # Cool, printf works 632 : 633 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 634 test "X$echo_testing_string" = 'X\t' && 635 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 636 test "X$echo_testing_string" = "X$echo_test_string"; then 637 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 638 export CONFIG_SHELL 639 SHELL="$CONFIG_SHELL" 640 export SHELL 641 ECHO="$CONFIG_SHELL $0 --fallback-echo" 642 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 643 test "X$echo_testing_string" = 'X\t' && 644 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 645 test "X$echo_testing_string" = "X$echo_test_string"; then 646 ECHO="$CONFIG_SHELL $0 --fallback-echo" 647 else 648 # maybe with a smaller string... 649 prev=: 650 651 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 652 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 653 then 654 break 655 fi 656 prev="$cmd" 657 done 658 659 if test "$prev" != 'sed 50q "$0"'; then 660 echo_test_string=`eval $prev` 661 export echo_test_string 662 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 663 else 664 # Oops. We lost completely, so just stick with echo. 665 ECHO=echo 666 fi 667 fi 668 fi 669 fi 670 fi 671fi 672 673# Copy echo and quote the copy suitably for passing to libtool from 674# the Makefile, instead of quoting the original, which is used later. 675lt_ECHO=$ECHO 676if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 677 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 678fi 679 680 681 682 683test -n "$DJDIR" || exec 7<&0 </dev/null 684exec 6>&1 685 686# Name of the host. 687# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 688# so uname gets run too. 689ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 690 691# 692# Initializations. 693# 694ac_default_prefix=/usr/local 695ac_clean_files= 696ac_config_libobj_dir=. 697LIBOBJS= 698cross_compiling=no 699subdirs= 700MFLAGS= 701MAKEFLAGS= 702 703# Identity of this package. 704PACKAGE_NAME='Automated Testing Framework' 705PACKAGE_TARNAME='atf' 706PACKAGE_VERSION='0.12' 707PACKAGE_STRING='Automated Testing Framework 0.12' 708PACKAGE_BUGREPORT='atf-devel@NetBSD.org' 709PACKAGE_URL='http://www.NetBSD.org/~jmmv/atf/' 710 711ac_unique_file="atf-c.h" 712# Factoring default headers for most tests. 713ac_includes_default="\ 714#include <stdio.h> 715#ifdef HAVE_SYS_TYPES_H 716# include <sys/types.h> 717#endif 718#ifdef HAVE_SYS_STAT_H 719# include <sys/stat.h> 720#endif 721#ifdef STDC_HEADERS 722# include <stdlib.h> 723# include <stddef.h> 724#else 725# ifdef HAVE_STDLIB_H 726# include <stdlib.h> 727# endif 728#endif 729#ifdef HAVE_STRING_H 730# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 731# include <memory.h> 732# endif 733# include <string.h> 734#endif 735#ifdef HAVE_STRINGS_H 736# include <strings.h> 737#endif 738#ifdef HAVE_INTTYPES_H 739# include <inttypes.h> 740#endif 741#ifdef HAVE_STDINT_H 742# include <stdint.h> 743#endif 744#ifdef HAVE_UNISTD_H 745# include <unistd.h> 746#endif" 747 748ac_subst_vars='LTLIBOBJS 749LIBOBJS 750MTN 751ATF_SHELL 752atf_xsldir 753atf_pkgconfigdir 754atf_egdir 755atf_dtddir 756atf_cssdir 757ATF_WORKDIR 758atf_confdir 759ATF_CONFSUBDIR 760atf_machine 761atf_arch 762target_srcdir 763ATF_BUILD_CXXFLAGS 764ATF_BUILD_CXX 765ATF_BUILD_CPPFLAGS 766ATF_BUILD_CPP 767ATF_BUILD_CFLAGS 768ATF_BUILD_CC 769ATTRIBUTE_NORETURN 770CXXCPP 771am__fastdepCXX_FALSE 772am__fastdepCXX_TRUE 773CXXDEPMODE 774ac_ct_CXX 775CXXFLAGS 776CXX 777CPP 778OTOOL64 779OTOOL 780LIPO 781NMEDIT 782DSYMUTIL 783lt_ECHO 784RANLIB 785AR 786OBJDUMP 787LN_S 788NM 789ac_ct_DUMPBIN 790DUMPBIN 791LD 792FGREP 793EGREP 794GREP 795SED 796am__fastdepCC_FALSE 797am__fastdepCC_TRUE 798CCDEPMODE 799AMDEPBACKSLASH 800AMDEP_FALSE 801AMDEP_TRUE 802am__quote 803am__include 804DEPDIR 805OBJEXT 806EXEEXT 807ac_ct_CC 808CPPFLAGS 809LDFLAGS 810CFLAGS 811CC 812LIBTOOL 813am__untar 814am__tar 815AMTAR 816am__leading_dot 817SET_MAKE 818AWK 819mkdir_p 820MKDIR_P 821INSTALL_STRIP_PROGRAM 822STRIP 823install_sh 824MAKEINFO 825AUTOHEADER 826AUTOMAKE 827AUTOCONF 828ACLOCAL 829VERSION 830PACKAGE 831CYGPATH_W 832am__isrc 833INSTALL_DATA 834INSTALL_SCRIPT 835INSTALL_PROGRAM 836target_os 837target_vendor 838target_cpu 839target 840host_os 841host_vendor 842host_cpu 843host 844build_os 845build_vendor 846build_cpu 847build 848target_alias 849host_alias 850build_alias 851LIBS 852ECHO_T 853ECHO_N 854ECHO_C 855DEFS 856mandir 857localedir 858libdir 859psdir 860pdfdir 861dvidir 862htmldir 863infodir 864docdir 865oldincludedir 866includedir 867localstatedir 868sharedstatedir 869sysconfdir 870datadir 871datarootdir 872libexecdir 873sbindir 874bindir 875program_transform_name 876prefix 877exec_prefix 878PACKAGE_URL 879PACKAGE_BUGREPORT 880PACKAGE_STRING 881PACKAGE_VERSION 882PACKAGE_TARNAME 883PACKAGE_NAME 884PATH_SEPARATOR 885SHELL' 886ac_subst_files='' 887ac_user_opts=' 888enable_option_checking 889enable_shared 890enable_static 891with_pic 892enable_fast_install 893enable_dependency_tracking 894with_gnu_ld 895enable_libtool_lock 896enable_unstable_shared 897enable_developer 898' 899 ac_precious_vars='build_alias 900host_alias 901target_alias 902CC 903CFLAGS 904LDFLAGS 905LIBS 906CPPFLAGS 907CPP 908CXX 909CXXFLAGS 910CCC 911CXXCPP 912ATF_BUILD_CC 913ATF_BUILD_CFLAGS 914ATF_BUILD_CPP 915ATF_BUILD_CPPFLAGS 916ATF_BUILD_CXX 917ATF_BUILD_CXXFLAGS 918ATF_CONFSUBDIR 919ATF_WORKDIR 920ATF_SHELL' 921 922 923# Initialize some variables set by options. 924ac_init_help= 925ac_init_version=false 926ac_unrecognized_opts= 927ac_unrecognized_sep= 928# The variables have the same names as the options, with 929# dashes changed to underlines. 930cache_file=/dev/null 931exec_prefix=NONE 932no_create= 933no_recursion= 934prefix=NONE 935program_prefix=NONE 936program_suffix=NONE 937program_transform_name=s,x,x, 938silent= 939site= 940srcdir= 941verbose= 942x_includes=NONE 943x_libraries=NONE 944 945# Installation directory options. 946# These are left unexpanded so users can "make install exec_prefix=/foo" 947# and all the variables that are supposed to be based on exec_prefix 948# by default will actually change. 949# Use braces instead of parens because sh, perl, etc. also accept them. 950# (The list follows the same order as the GNU Coding Standards.) 951bindir='${exec_prefix}/bin' 952sbindir='${exec_prefix}/sbin' 953libexecdir='${exec_prefix}/libexec' 954datarootdir='${prefix}/share' 955datadir='${datarootdir}' 956sysconfdir='${prefix}/etc' 957sharedstatedir='${prefix}/com' 958localstatedir='${prefix}/var' 959includedir='${prefix}/include' 960oldincludedir='/usr/include' 961docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 962infodir='${datarootdir}/info' 963htmldir='${docdir}' 964dvidir='${docdir}' 965pdfdir='${docdir}' 966psdir='${docdir}' 967libdir='${exec_prefix}/lib' 968localedir='${datarootdir}/locale' 969mandir='${datarootdir}/man' 970 971ac_prev= 972ac_dashdash= 973for ac_option 974do 975 # If the previous option needs an argument, assign it. 976 if test -n "$ac_prev"; then 977 eval $ac_prev=\$ac_option 978 ac_prev= 979 continue 980 fi 981 982 case $ac_option in 983 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 984 *=) ac_optarg= ;; 985 *) ac_optarg=yes ;; 986 esac 987 988 # Accept the important Cygnus configure options, so we can diagnose typos. 989 990 case $ac_dashdash$ac_option in 991 --) 992 ac_dashdash=yes ;; 993 994 -bindir | --bindir | --bindi | --bind | --bin | --bi) 995 ac_prev=bindir ;; 996 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 997 bindir=$ac_optarg ;; 998 999 -build | --build | --buil | --bui | --bu) 1000 ac_prev=build_alias ;; 1001 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1002 build_alias=$ac_optarg ;; 1003 1004 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1005 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1006 ac_prev=cache_file ;; 1007 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1008 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1009 cache_file=$ac_optarg ;; 1010 1011 --config-cache | -C) 1012 cache_file=config.cache ;; 1013 1014 -datadir | --datadir | --datadi | --datad) 1015 ac_prev=datadir ;; 1016 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1017 datadir=$ac_optarg ;; 1018 1019 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1020 | --dataroo | --dataro | --datar) 1021 ac_prev=datarootdir ;; 1022 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1023 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1024 datarootdir=$ac_optarg ;; 1025 1026 -disable-* | --disable-*) 1027 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1028 # Reject names that are not valid shell variable names. 1029 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1030 as_fn_error $? "invalid feature name: $ac_useropt" 1031 ac_useropt_orig=$ac_useropt 1032 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1033 case $ac_user_opts in 1034 *" 1035"enable_$ac_useropt" 1036"*) ;; 1037 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1038 ac_unrecognized_sep=', ';; 1039 esac 1040 eval enable_$ac_useropt=no ;; 1041 1042 -docdir | --docdir | --docdi | --doc | --do) 1043 ac_prev=docdir ;; 1044 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1045 docdir=$ac_optarg ;; 1046 1047 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1048 ac_prev=dvidir ;; 1049 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1050 dvidir=$ac_optarg ;; 1051 1052 -enable-* | --enable-*) 1053 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1054 # Reject names that are not valid shell variable names. 1055 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1056 as_fn_error $? "invalid feature name: $ac_useropt" 1057 ac_useropt_orig=$ac_useropt 1058 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1059 case $ac_user_opts in 1060 *" 1061"enable_$ac_useropt" 1062"*) ;; 1063 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1064 ac_unrecognized_sep=', ';; 1065 esac 1066 eval enable_$ac_useropt=\$ac_optarg ;; 1067 1068 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1069 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1070 | --exec | --exe | --ex) 1071 ac_prev=exec_prefix ;; 1072 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1073 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1074 | --exec=* | --exe=* | --ex=*) 1075 exec_prefix=$ac_optarg ;; 1076 1077 -gas | --gas | --ga | --g) 1078 # Obsolete; use --with-gas. 1079 with_gas=yes ;; 1080 1081 -help | --help | --hel | --he | -h) 1082 ac_init_help=long ;; 1083 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1084 ac_init_help=recursive ;; 1085 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1086 ac_init_help=short ;; 1087 1088 -host | --host | --hos | --ho) 1089 ac_prev=host_alias ;; 1090 -host=* | --host=* | --hos=* | --ho=*) 1091 host_alias=$ac_optarg ;; 1092 1093 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1094 ac_prev=htmldir ;; 1095 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1096 | --ht=*) 1097 htmldir=$ac_optarg ;; 1098 1099 -includedir | --includedir | --includedi | --included | --include \ 1100 | --includ | --inclu | --incl | --inc) 1101 ac_prev=includedir ;; 1102 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1103 | --includ=* | --inclu=* | --incl=* | --inc=*) 1104 includedir=$ac_optarg ;; 1105 1106 -infodir | --infodir | --infodi | --infod | --info | --inf) 1107 ac_prev=infodir ;; 1108 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1109 infodir=$ac_optarg ;; 1110 1111 -libdir | --libdir | --libdi | --libd) 1112 ac_prev=libdir ;; 1113 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1114 libdir=$ac_optarg ;; 1115 1116 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1117 | --libexe | --libex | --libe) 1118 ac_prev=libexecdir ;; 1119 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1120 | --libexe=* | --libex=* | --libe=*) 1121 libexecdir=$ac_optarg ;; 1122 1123 -localedir | --localedir | --localedi | --localed | --locale) 1124 ac_prev=localedir ;; 1125 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1126 localedir=$ac_optarg ;; 1127 1128 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1129 | --localstate | --localstat | --localsta | --localst | --locals) 1130 ac_prev=localstatedir ;; 1131 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1132 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1133 localstatedir=$ac_optarg ;; 1134 1135 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1136 ac_prev=mandir ;; 1137 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1138 mandir=$ac_optarg ;; 1139 1140 -nfp | --nfp | --nf) 1141 # Obsolete; use --without-fp. 1142 with_fp=no ;; 1143 1144 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1145 | --no-cr | --no-c | -n) 1146 no_create=yes ;; 1147 1148 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1149 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1150 no_recursion=yes ;; 1151 1152 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1153 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1154 | --oldin | --oldi | --old | --ol | --o) 1155 ac_prev=oldincludedir ;; 1156 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1157 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1158 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1159 oldincludedir=$ac_optarg ;; 1160 1161 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1162 ac_prev=prefix ;; 1163 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1164 prefix=$ac_optarg ;; 1165 1166 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1167 | --program-pre | --program-pr | --program-p) 1168 ac_prev=program_prefix ;; 1169 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1170 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1171 program_prefix=$ac_optarg ;; 1172 1173 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1174 | --program-suf | --program-su | --program-s) 1175 ac_prev=program_suffix ;; 1176 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1177 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1178 program_suffix=$ac_optarg ;; 1179 1180 -program-transform-name | --program-transform-name \ 1181 | --program-transform-nam | --program-transform-na \ 1182 | --program-transform-n | --program-transform- \ 1183 | --program-transform | --program-transfor \ 1184 | --program-transfo | --program-transf \ 1185 | --program-trans | --program-tran \ 1186 | --progr-tra | --program-tr | --program-t) 1187 ac_prev=program_transform_name ;; 1188 -program-transform-name=* | --program-transform-name=* \ 1189 | --program-transform-nam=* | --program-transform-na=* \ 1190 | --program-transform-n=* | --program-transform-=* \ 1191 | --program-transform=* | --program-transfor=* \ 1192 | --program-transfo=* | --program-transf=* \ 1193 | --program-trans=* | --program-tran=* \ 1194 | --progr-tra=* | --program-tr=* | --program-t=*) 1195 program_transform_name=$ac_optarg ;; 1196 1197 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1198 ac_prev=pdfdir ;; 1199 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1200 pdfdir=$ac_optarg ;; 1201 1202 -psdir | --psdir | --psdi | --psd | --ps) 1203 ac_prev=psdir ;; 1204 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1205 psdir=$ac_optarg ;; 1206 1207 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1208 | -silent | --silent | --silen | --sile | --sil) 1209 silent=yes ;; 1210 1211 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1212 ac_prev=sbindir ;; 1213 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1214 | --sbi=* | --sb=*) 1215 sbindir=$ac_optarg ;; 1216 1217 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1218 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1219 | --sharedst | --shareds | --shared | --share | --shar \ 1220 | --sha | --sh) 1221 ac_prev=sharedstatedir ;; 1222 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1223 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1224 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1225 | --sha=* | --sh=*) 1226 sharedstatedir=$ac_optarg ;; 1227 1228 -site | --site | --sit) 1229 ac_prev=site ;; 1230 -site=* | --site=* | --sit=*) 1231 site=$ac_optarg ;; 1232 1233 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1234 ac_prev=srcdir ;; 1235 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1236 srcdir=$ac_optarg ;; 1237 1238 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1239 | --syscon | --sysco | --sysc | --sys | --sy) 1240 ac_prev=sysconfdir ;; 1241 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1242 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1243 sysconfdir=$ac_optarg ;; 1244 1245 -target | --target | --targe | --targ | --tar | --ta | --t) 1246 ac_prev=target_alias ;; 1247 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1248 target_alias=$ac_optarg ;; 1249 1250 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1251 verbose=yes ;; 1252 1253 -version | --version | --versio | --versi | --vers | -V) 1254 ac_init_version=: ;; 1255 1256 -with-* | --with-*) 1257 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1258 # Reject names that are not valid shell variable names. 1259 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1260 as_fn_error $? "invalid package name: $ac_useropt" 1261 ac_useropt_orig=$ac_useropt 1262 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1263 case $ac_user_opts in 1264 *" 1265"with_$ac_useropt" 1266"*) ;; 1267 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1268 ac_unrecognized_sep=', ';; 1269 esac 1270 eval with_$ac_useropt=\$ac_optarg ;; 1271 1272 -without-* | --without-*) 1273 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 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--without-$ac_useropt_orig" 1284 ac_unrecognized_sep=', ';; 1285 esac 1286 eval with_$ac_useropt=no ;; 1287 1288 --x) 1289 # Obsolete; use --with-x. 1290 with_x=yes ;; 1291 1292 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1293 | --x-incl | --x-inc | --x-in | --x-i) 1294 ac_prev=x_includes ;; 1295 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1296 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1297 x_includes=$ac_optarg ;; 1298 1299 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1300 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1301 ac_prev=x_libraries ;; 1302 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1303 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1304 x_libraries=$ac_optarg ;; 1305 1306 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1307Try \`$0 --help' for more information" 1308 ;; 1309 1310 *=*) 1311 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1312 # Reject names that are not valid shell variable names. 1313 case $ac_envvar in #( 1314 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1315 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1316 esac 1317 eval $ac_envvar=\$ac_optarg 1318 export $ac_envvar ;; 1319 1320 *) 1321 # FIXME: should be removed in autoconf 3.0. 1322 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1323 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1324 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1325 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1326 ;; 1327 1328 esac 1329done 1330 1331if test -n "$ac_prev"; then 1332 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1333 as_fn_error $? "missing argument to $ac_option" 1334fi 1335 1336if test -n "$ac_unrecognized_opts"; then 1337 case $enable_option_checking in 1338 no) ;; 1339 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1340 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1341 esac 1342fi 1343 1344# Check all directory arguments for consistency. 1345for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1346 datadir sysconfdir sharedstatedir localstatedir includedir \ 1347 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1348 libdir localedir mandir 1349do 1350 eval ac_val=\$$ac_var 1351 # Remove trailing slashes. 1352 case $ac_val in 1353 */ ) 1354 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1355 eval $ac_var=\$ac_val;; 1356 esac 1357 # Be sure to have absolute directory names. 1358 case $ac_val in 1359 [\\/$]* | ?:[\\/]* ) continue;; 1360 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1361 esac 1362 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1363done 1364 1365# There might be people who depend on the old broken behavior: `$host' 1366# used to hold the argument of --host etc. 1367# FIXME: To remove some day. 1368build=$build_alias 1369host=$host_alias 1370target=$target_alias 1371 1372# FIXME: To remove some day. 1373if test "x$host_alias" != x; then 1374 if test "x$build_alias" = x; then 1375 cross_compiling=maybe 1376 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1377 If a cross compiler is detected then cross compile mode will be used" >&2 1378 elif test "x$build_alias" != "x$host_alias"; then 1379 cross_compiling=yes 1380 fi 1381fi 1382 1383ac_tool_prefix= 1384test -n "$host_alias" && ac_tool_prefix=$host_alias- 1385 1386test "$silent" = yes && exec 6>/dev/null 1387 1388 1389ac_pwd=`pwd` && test -n "$ac_pwd" && 1390ac_ls_di=`ls -di .` && 1391ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1392 as_fn_error $? "working directory cannot be determined" 1393test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1394 as_fn_error $? "pwd does not report name of working directory" 1395 1396 1397# Find the source files, if location was not specified. 1398if test -z "$srcdir"; then 1399 ac_srcdir_defaulted=yes 1400 # Try the directory containing this script, then the parent directory. 1401 ac_confdir=`$as_dirname -- "$as_myself" || 1402$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1403 X"$as_myself" : 'X\(//\)[^/]' \| \ 1404 X"$as_myself" : 'X\(//\)$' \| \ 1405 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1406$as_echo X"$as_myself" | 1407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1408 s//\1/ 1409 q 1410 } 1411 /^X\(\/\/\)[^/].*/{ 1412 s//\1/ 1413 q 1414 } 1415 /^X\(\/\/\)$/{ 1416 s//\1/ 1417 q 1418 } 1419 /^X\(\/\).*/{ 1420 s//\1/ 1421 q 1422 } 1423 s/.*/./; q'` 1424 srcdir=$ac_confdir 1425 if test ! -r "$srcdir/$ac_unique_file"; then 1426 srcdir=.. 1427 fi 1428else 1429 ac_srcdir_defaulted=no 1430fi 1431if test ! -r "$srcdir/$ac_unique_file"; then 1432 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1433 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1434fi 1435ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1436ac_abs_confdir=`( 1437 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1438 pwd)` 1439# When building in place, set srcdir=. 1440if test "$ac_abs_confdir" = "$ac_pwd"; then 1441 srcdir=. 1442fi 1443# Remove unnecessary trailing slashes from srcdir. 1444# Double slashes in file names in object file debugging info 1445# mess up M-x gdb in Emacs. 1446case $srcdir in 1447*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1448esac 1449for ac_var in $ac_precious_vars; do 1450 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1451 eval ac_env_${ac_var}_value=\$${ac_var} 1452 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1453 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1454done 1455 1456# 1457# Report the --help message. 1458# 1459if test "$ac_init_help" = "long"; then 1460 # Omit some internal or obsolete options to make the list less imposing. 1461 # This message is too long to be a string in the A/UX 3.1 sh. 1462 cat <<_ACEOF 1463\`configure' configures Automated Testing Framework 0.12 to adapt to many kinds of systems. 1464 1465Usage: $0 [OPTION]... [VAR=VALUE]... 1466 1467To assign environment variables (e.g., CC, CFLAGS...), specify them as 1468VAR=VALUE. See below for descriptions of some of the useful variables. 1469 1470Defaults for the options are specified in brackets. 1471 1472Configuration: 1473 -h, --help display this help and exit 1474 --help=short display options specific to this package 1475 --help=recursive display the short help of all the included packages 1476 -V, --version display version information and exit 1477 -q, --quiet, --silent do not print \`checking ...' messages 1478 --cache-file=FILE cache test results in FILE [disabled] 1479 -C, --config-cache alias for \`--cache-file=config.cache' 1480 -n, --no-create do not create output files 1481 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1482 1483Installation directories: 1484 --prefix=PREFIX install architecture-independent files in PREFIX 1485 [$ac_default_prefix] 1486 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1487 [PREFIX] 1488 1489By default, \`make install' will install all the files in 1490\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1491an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1492for instance \`--prefix=\$HOME'. 1493 1494For better control, use the options below. 1495 1496Fine tuning of the installation directories: 1497 --bindir=DIR user executables [EPREFIX/bin] 1498 --sbindir=DIR system admin executables [EPREFIX/sbin] 1499 --libexecdir=DIR program executables [EPREFIX/libexec] 1500 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1501 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1502 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1503 --libdir=DIR object code libraries [EPREFIX/lib] 1504 --includedir=DIR C header files [PREFIX/include] 1505 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1506 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1507 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1508 --infodir=DIR info documentation [DATAROOTDIR/info] 1509 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1510 --mandir=DIR man documentation [DATAROOTDIR/man] 1511 --docdir=DIR documentation root [DATAROOTDIR/doc/atf] 1512 --htmldir=DIR html documentation [DOCDIR] 1513 --dvidir=DIR dvi documentation [DOCDIR] 1514 --pdfdir=DIR pdf documentation [DOCDIR] 1515 --psdir=DIR ps documentation [DOCDIR] 1516_ACEOF 1517 1518 cat <<\_ACEOF 1519 1520Program names: 1521 --program-prefix=PREFIX prepend PREFIX to installed program names 1522 --program-suffix=SUFFIX append SUFFIX to installed program names 1523 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1524 1525System types: 1526 --build=BUILD configure for building on BUILD [guessed] 1527 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1528 --target=TARGET configure for building compilers for TARGET [HOST] 1529_ACEOF 1530fi 1531 1532if test -n "$ac_init_help"; then 1533 case $ac_init_help in 1534 short | recursive ) echo "Configuration of Automated Testing Framework 0.12:";; 1535 esac 1536 cat <<\_ACEOF 1537 1538Optional Features: 1539 --disable-option-checking ignore unrecognized --enable/--with options 1540 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1541 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1542 --enable-shared[=PKGS] build shared libraries [default=no] 1543 --enable-static[=PKGS] build static libraries [default=yes] 1544 --enable-fast-install[=PKGS] 1545 optimize for fast installation [default=yes] 1546 --disable-dependency-tracking speeds up one-time build 1547 --enable-dependency-tracking do not reject slow dependency extractors 1548 --disable-libtool-lock avoid locking (might break parallel builds) 1549 --enable-unstable-shared 1550 Enables the build of shared libraries with unstable 1551 ABIs/APIs 1552 --enable-developer enable developer features 1553 1554Optional Packages: 1555 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1556 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1557 --with-pic try to use only PIC/non-PIC objects [default=use 1558 both] 1559 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1560 1561Some influential environment variables: 1562 CC C compiler command 1563 CFLAGS C compiler flags 1564 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1565 nonstandard directory <lib dir> 1566 LIBS libraries to pass to the linker, e.g. -l<library> 1567 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1568 you have headers in a nonstandard directory <include dir> 1569 CPP C preprocessor 1570 CXX C++ compiler command 1571 CXXFLAGS C++ compiler flags 1572 CXXCPP C++ preprocessor 1573 ATF_BUILD_CC 1574 C compiler to use at runtime 1575 ATF_BUILD_CFLAGS 1576 C compiler flags to use at runtime 1577 ATF_BUILD_CPP 1578 C/C++ preprocessor to use at runtime 1579 ATF_BUILD_CPPFLAGS 1580 C/C++ preprocessor flags to use at runtime 1581 ATF_BUILD_CXX 1582 C++ compiler to use at runtime 1583 ATF_BUILD_CXXFLAGS 1584 C++ compiler flags to use at runtime 1585 ATF_CONFSUBDIR 1586 Subdirectory of sysconfdir under which to look for files 1587 ATF_WORKDIR Default location to use for ATF work directories 1588 ATF_SHELL Location of the POSIX shell interpreter to use 1589 1590Use these variables to override the choices made by `configure' or to help 1591it to find libraries and programs with nonstandard names/locations. 1592 1593Report bugs to <atf-devel@NetBSD.org>. 1594Automated Testing Framework home page: <http://www.NetBSD.org/~jmmv/atf/>. 1595_ACEOF 1596ac_status=$? 1597fi 1598 1599if test "$ac_init_help" = "recursive"; then 1600 # If there are subdirs, report their specific --help. 1601 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1602 test -d "$ac_dir" || 1603 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1604 continue 1605 ac_builddir=. 1606 1607case "$ac_dir" in 1608.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1609*) 1610 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1611 # A ".." for each directory in $ac_dir_suffix. 1612 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1613 case $ac_top_builddir_sub in 1614 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1615 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1616 esac ;; 1617esac 1618ac_abs_top_builddir=$ac_pwd 1619ac_abs_builddir=$ac_pwd$ac_dir_suffix 1620# for backward compatibility: 1621ac_top_builddir=$ac_top_build_prefix 1622 1623case $srcdir in 1624 .) # We are building in place. 1625 ac_srcdir=. 1626 ac_top_srcdir=$ac_top_builddir_sub 1627 ac_abs_top_srcdir=$ac_pwd ;; 1628 [\\/]* | ?:[\\/]* ) # Absolute name. 1629 ac_srcdir=$srcdir$ac_dir_suffix; 1630 ac_top_srcdir=$srcdir 1631 ac_abs_top_srcdir=$srcdir ;; 1632 *) # Relative name. 1633 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1634 ac_top_srcdir=$ac_top_build_prefix$srcdir 1635 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1636esac 1637ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1638 1639 cd "$ac_dir" || { ac_status=$?; continue; } 1640 # Check for guested configure. 1641 if test -f "$ac_srcdir/configure.gnu"; then 1642 echo && 1643 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1644 elif test -f "$ac_srcdir/configure"; then 1645 echo && 1646 $SHELL "$ac_srcdir/configure" --help=recursive 1647 else 1648 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1649 fi || ac_status=$? 1650 cd "$ac_pwd" || { ac_status=$?; break; } 1651 done 1652fi 1653 1654test -n "$ac_init_help" && exit $ac_status 1655if $ac_init_version; then 1656 cat <<\_ACEOF 1657Automated Testing Framework configure 0.12 1658generated by GNU Autoconf 2.67 1659 1660Copyright (C) 2010 Free Software Foundation, Inc. 1661This configure script is free software; the Free Software Foundation 1662gives unlimited permission to copy, distribute and modify it. 1663 1664Copyright (c) 2007, 2008, 2009, 2010 The NetBSD Foundation, Inc. 1665_ACEOF 1666 exit 1667fi 1668 1669## ------------------------ ## 1670## Autoconf initialization. ## 1671## ------------------------ ## 1672 1673# ac_fn_c_try_compile LINENO 1674# -------------------------- 1675# Try to compile conftest.$ac_ext, and return whether this succeeded. 1676ac_fn_c_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_c_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_c_try_compile 1710 1711# ac_fn_c_try_link LINENO 1712# ----------------------- 1713# Try to link conftest.$ac_ext, and return whether this succeeded. 1714ac_fn_c_try_link () 1715{ 1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1717 rm -f conftest.$ac_objext conftest$ac_exeext 1718 if { { ac_try="$ac_link" 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_link") 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_exeext && { 1737 test "$cross_compiling" = yes || 1738 $as_test_x conftest$ac_exeext 1739 }; then : 1740 ac_retval=0 1741else 1742 $as_echo "$as_me: failed program was:" >&5 1743sed 's/^/| /' conftest.$ac_ext >&5 1744 1745 ac_retval=1 1746fi 1747 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1748 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1749 # interfere with the next link command; also delete a directory that is 1750 # left behind by Apple's compiler. We do this before executing the actions. 1751 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1752 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1753 as_fn_set_status $ac_retval 1754 1755} # ac_fn_c_try_link 1756 1757# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1758# ------------------------------------------------------- 1759# Tests whether HEADER exists and can be compiled using the include files in 1760# INCLUDES, setting the cache variable VAR accordingly. 1761ac_fn_c_check_header_compile () 1762{ 1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1765$as_echo_n "checking for $2... " >&6; } 1766if eval "test \"\${$3+set}\"" = set; then : 1767 $as_echo_n "(cached) " >&6 1768else 1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1770/* end confdefs.h. */ 1771$4 1772#include <$2> 1773_ACEOF 1774if ac_fn_c_try_compile "$LINENO"; then : 1775 eval "$3=yes" 1776else 1777 eval "$3=no" 1778fi 1779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1780fi 1781eval ac_res=\$$3 1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1783$as_echo "$ac_res" >&6; } 1784 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1785 1786} # ac_fn_c_check_header_compile 1787 1788# ac_fn_c_try_cpp LINENO 1789# ---------------------- 1790# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1791ac_fn_c_try_cpp () 1792{ 1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1794 if { { ac_try="$ac_cpp conftest.$ac_ext" 1795case "(($ac_try" in 1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1797 *) ac_try_echo=$ac_try;; 1798esac 1799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1800$as_echo "$ac_try_echo"; } >&5 1801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1802 ac_status=$? 1803 if test -s conftest.err; then 1804 grep -v '^ *+' conftest.err >conftest.er1 1805 cat conftest.er1 >&5 1806 mv -f conftest.er1 conftest.err 1807 fi 1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1809 test $ac_status = 0; } > conftest.i && { 1810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1811 test ! -s conftest.err 1812 }; then : 1813 ac_retval=0 1814else 1815 $as_echo "$as_me: failed program was:" >&5 1816sed 's/^/| /' conftest.$ac_ext >&5 1817 1818 ac_retval=1 1819fi 1820 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1821 as_fn_set_status $ac_retval 1822 1823} # ac_fn_c_try_cpp 1824 1825# ac_fn_c_try_run LINENO 1826# ---------------------- 1827# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1828# that executables *can* be run. 1829ac_fn_c_try_run () 1830{ 1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1832 if { { ac_try="$ac_link" 1833case "(($ac_try" in 1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1835 *) ac_try_echo=$ac_try;; 1836esac 1837eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1838$as_echo "$ac_try_echo"; } >&5 1839 (eval "$ac_link") 2>&5 1840 ac_status=$? 1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1842 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1843 { { case "(($ac_try" in 1844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1845 *) ac_try_echo=$ac_try;; 1846esac 1847eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1848$as_echo "$ac_try_echo"; } >&5 1849 (eval "$ac_try") 2>&5 1850 ac_status=$? 1851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1852 test $ac_status = 0; }; }; then : 1853 ac_retval=0 1854else 1855 $as_echo "$as_me: program exited with status $ac_status" >&5 1856 $as_echo "$as_me: failed program was:" >&5 1857sed 's/^/| /' conftest.$ac_ext >&5 1858 1859 ac_retval=$ac_status 1860fi 1861 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1862 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1863 as_fn_set_status $ac_retval 1864 1865} # ac_fn_c_try_run 1866 1867# ac_fn_c_check_func LINENO FUNC VAR 1868# ---------------------------------- 1869# Tests whether FUNC exists, setting the cache variable VAR accordingly 1870ac_fn_c_check_func () 1871{ 1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1874$as_echo_n "checking for $2... " >&6; } 1875if eval "test \"\${$3+set}\"" = set; then : 1876 $as_echo_n "(cached) " >&6 1877else 1878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1879/* end confdefs.h. */ 1880/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1881 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1882#define $2 innocuous_$2 1883 1884/* System header to define __stub macros and hopefully few prototypes, 1885 which can conflict with char $2 (); below. 1886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1887 <limits.h> exists even on freestanding compilers. */ 1888 1889#ifdef __STDC__ 1890# include <limits.h> 1891#else 1892# include <assert.h> 1893#endif 1894 1895#undef $2 1896 1897/* Override any GCC internal prototype to avoid an error. 1898 Use char because int might match the return type of a GCC 1899 builtin and then its argument prototype would still apply. */ 1900#ifdef __cplusplus 1901extern "C" 1902#endif 1903char $2 (); 1904/* The GNU C library defines this for functions which it implements 1905 to always fail with ENOSYS. Some functions are actually named 1906 something starting with __ and the normal name is an alias. */ 1907#if defined __stub_$2 || defined __stub___$2 1908choke me 1909#endif 1910 1911int 1912main () 1913{ 1914return $2 (); 1915 ; 1916 return 0; 1917} 1918_ACEOF 1919if ac_fn_c_try_link "$LINENO"; then : 1920 eval "$3=yes" 1921else 1922 eval "$3=no" 1923fi 1924rm -f core conftest.err conftest.$ac_objext \ 1925 conftest$ac_exeext conftest.$ac_ext 1926fi 1927eval ac_res=\$$3 1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1929$as_echo "$ac_res" >&6; } 1930 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1931 1932} # ac_fn_c_check_func 1933 1934# ac_fn_cxx_try_compile LINENO 1935# ---------------------------- 1936# Try to compile conftest.$ac_ext, and return whether this succeeded. 1937ac_fn_cxx_try_compile () 1938{ 1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1940 rm -f conftest.$ac_objext 1941 if { { ac_try="$ac_compile" 1942case "(($ac_try" in 1943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1944 *) ac_try_echo=$ac_try;; 1945esac 1946eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1947$as_echo "$ac_try_echo"; } >&5 1948 (eval "$ac_compile") 2>conftest.err 1949 ac_status=$? 1950 if test -s conftest.err; then 1951 grep -v '^ *+' conftest.err >conftest.er1 1952 cat conftest.er1 >&5 1953 mv -f conftest.er1 conftest.err 1954 fi 1955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1956 test $ac_status = 0; } && { 1957 test -z "$ac_cxx_werror_flag" || 1958 test ! -s conftest.err 1959 } && test -s conftest.$ac_objext; then : 1960 ac_retval=0 1961else 1962 $as_echo "$as_me: failed program was:" >&5 1963sed 's/^/| /' conftest.$ac_ext >&5 1964 1965 ac_retval=1 1966fi 1967 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1968 as_fn_set_status $ac_retval 1969 1970} # ac_fn_cxx_try_compile 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; } > conftest.i && { 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_cxx_try_run LINENO 2056# ------------------------ 2057# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2058# that executables *can* be run. 2059ac_fn_cxx_try_run () 2060{ 2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2062 if { { ac_try="$ac_link" 2063case "(($ac_try" in 2064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2065 *) ac_try_echo=$ac_try;; 2066esac 2067eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2068$as_echo "$ac_try_echo"; } >&5 2069 (eval "$ac_link") 2>&5 2070 ac_status=$? 2071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2072 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2073 { { case "(($ac_try" in 2074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2075 *) ac_try_echo=$ac_try;; 2076esac 2077eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2078$as_echo "$ac_try_echo"; } >&5 2079 (eval "$ac_try") 2>&5 2080 ac_status=$? 2081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2082 test $ac_status = 0; }; }; then : 2083 ac_retval=0 2084else 2085 $as_echo "$as_me: program exited with status $ac_status" >&5 2086 $as_echo "$as_me: failed program was:" >&5 2087sed 's/^/| /' conftest.$ac_ext >&5 2088 2089 ac_retval=$ac_status 2090fi 2091 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2092 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2093 as_fn_set_status $ac_retval 2094 2095} # ac_fn_cxx_try_run 2096 2097# ac_fn_cxx_check_func LINENO FUNC VAR 2098# ------------------------------------ 2099# Tests whether FUNC exists, setting the cache variable VAR accordingly 2100ac_fn_cxx_check_func () 2101{ 2102 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2104$as_echo_n "checking for $2... " >&6; } 2105if eval "test \"\${$3+set}\"" = set; then : 2106 $as_echo_n "(cached) " >&6 2107else 2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2109/* end confdefs.h. */ 2110/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2111 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2112#define $2 innocuous_$2 2113 2114/* System header to define __stub macros and hopefully few prototypes, 2115 which can conflict with char $2 (); below. 2116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2117 <limits.h> exists even on freestanding compilers. */ 2118 2119#ifdef __STDC__ 2120# include <limits.h> 2121#else 2122# include <assert.h> 2123#endif 2124 2125#undef $2 2126 2127/* Override any GCC internal prototype to avoid an error. 2128 Use char because int might match the return type of a GCC 2129 builtin and then its argument prototype would still apply. */ 2130#ifdef __cplusplus 2131extern "C" 2132#endif 2133char $2 (); 2134/* The GNU C library defines this for functions which it implements 2135 to always fail with ENOSYS. Some functions are actually named 2136 something starting with __ and the normal name is an alias. */ 2137#if defined __stub_$2 || defined __stub___$2 2138choke me 2139#endif 2140 2141int 2142main () 2143{ 2144return $2 (); 2145 ; 2146 return 0; 2147} 2148_ACEOF 2149if ac_fn_cxx_try_link "$LINENO"; then : 2150 eval "$3=yes" 2151else 2152 eval "$3=no" 2153fi 2154rm -f core conftest.err conftest.$ac_objext \ 2155 conftest$ac_exeext conftest.$ac_ext 2156fi 2157eval ac_res=\$$3 2158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2159$as_echo "$ac_res" >&6; } 2160 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2161 2162} # ac_fn_cxx_check_func 2163cat >config.log <<_ACEOF 2164This file contains any messages produced by compilers while 2165running configure, to aid debugging if configure makes a mistake. 2166 2167It was created by Automated Testing Framework $as_me 0.12, which was 2168generated by GNU Autoconf 2.67. Invocation command line was 2169 2170 $ $0 $@ 2171 2172_ACEOF 2173exec 5>>config.log 2174{ 2175cat <<_ASUNAME 2176## --------- ## 2177## Platform. ## 2178## --------- ## 2179 2180hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2181uname -m = `(uname -m) 2>/dev/null || echo unknown` 2182uname -r = `(uname -r) 2>/dev/null || echo unknown` 2183uname -s = `(uname -s) 2>/dev/null || echo unknown` 2184uname -v = `(uname -v) 2>/dev/null || echo unknown` 2185 2186/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2187/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2188 2189/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2190/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2191/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2192/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2193/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2194/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2195/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2196 2197_ASUNAME 2198 2199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2200for as_dir in $PATH 2201do 2202 IFS=$as_save_IFS 2203 test -z "$as_dir" && as_dir=. 2204 $as_echo "PATH: $as_dir" 2205 done 2206IFS=$as_save_IFS 2207 2208} >&5 2209 2210cat >&5 <<_ACEOF 2211 2212 2213## ----------- ## 2214## Core tests. ## 2215## ----------- ## 2216 2217_ACEOF 2218 2219 2220# Keep a trace of the command line. 2221# Strip out --no-create and --no-recursion so they do not pile up. 2222# Strip out --silent because we don't want to record it for future runs. 2223# Also quote any args containing shell meta-characters. 2224# Make two passes to allow for proper duplicate-argument suppression. 2225ac_configure_args= 2226ac_configure_args0= 2227ac_configure_args1= 2228ac_must_keep_next=false 2229for ac_pass in 1 2 2230do 2231 for ac_arg 2232 do 2233 case $ac_arg in 2234 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2235 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2236 | -silent | --silent | --silen | --sile | --sil) 2237 continue ;; 2238 *\'*) 2239 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2240 esac 2241 case $ac_pass in 2242 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2243 2) 2244 as_fn_append ac_configure_args1 " '$ac_arg'" 2245 if test $ac_must_keep_next = true; then 2246 ac_must_keep_next=false # Got value, back to normal. 2247 else 2248 case $ac_arg in 2249 *=* | --config-cache | -C | -disable-* | --disable-* \ 2250 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2251 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2252 | -with-* | --with-* | -without-* | --without-* | --x) 2253 case "$ac_configure_args0 " in 2254 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2255 esac 2256 ;; 2257 -* ) ac_must_keep_next=true ;; 2258 esac 2259 fi 2260 as_fn_append ac_configure_args " '$ac_arg'" 2261 ;; 2262 esac 2263 done 2264done 2265{ ac_configure_args0=; unset ac_configure_args0;} 2266{ ac_configure_args1=; unset ac_configure_args1;} 2267 2268# When interrupted or exit'd, cleanup temporary files, and complete 2269# config.log. We remove comments because anyway the quotes in there 2270# would cause problems or look ugly. 2271# WARNING: Use '\'' to represent an apostrophe within the trap. 2272# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2273trap 'exit_status=$? 2274 # Save into config.log some information that might help in debugging. 2275 { 2276 echo 2277 2278 $as_echo "## ---------------- ## 2279## Cache variables. ## 2280## ---------------- ##" 2281 echo 2282 # The following way of writing the cache mishandles newlines in values, 2283( 2284 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2285 eval ac_val=\$$ac_var 2286 case $ac_val in #( 2287 *${as_nl}*) 2288 case $ac_var in #( 2289 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2290$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2291 esac 2292 case $ac_var in #( 2293 _ | IFS | as_nl) ;; #( 2294 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2295 *) { eval $ac_var=; unset $ac_var;} ;; 2296 esac ;; 2297 esac 2298 done 2299 (set) 2>&1 | 2300 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2301 *${as_nl}ac_space=\ *) 2302 sed -n \ 2303 "s/'\''/'\''\\\\'\'''\''/g; 2304 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2305 ;; #( 2306 *) 2307 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2308 ;; 2309 esac | 2310 sort 2311) 2312 echo 2313 2314 $as_echo "## ----------------- ## 2315## Output variables. ## 2316## ----------------- ##" 2317 echo 2318 for ac_var in $ac_subst_vars 2319 do 2320 eval ac_val=\$$ac_var 2321 case $ac_val in 2322 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2323 esac 2324 $as_echo "$ac_var='\''$ac_val'\''" 2325 done | sort 2326 echo 2327 2328 if test -n "$ac_subst_files"; then 2329 $as_echo "## ------------------- ## 2330## File substitutions. ## 2331## ------------------- ##" 2332 echo 2333 for ac_var in $ac_subst_files 2334 do 2335 eval ac_val=\$$ac_var 2336 case $ac_val in 2337 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2338 esac 2339 $as_echo "$ac_var='\''$ac_val'\''" 2340 done | sort 2341 echo 2342 fi 2343 2344 if test -s confdefs.h; then 2345 $as_echo "## ----------- ## 2346## confdefs.h. ## 2347## ----------- ##" 2348 echo 2349 cat confdefs.h 2350 echo 2351 fi 2352 test "$ac_signal" != 0 && 2353 $as_echo "$as_me: caught signal $ac_signal" 2354 $as_echo "$as_me: exit $exit_status" 2355 } >&5 2356 rm -f core *.core core.conftest.* && 2357 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2358 exit $exit_status 2359' 0 2360for ac_signal in 1 2 13 15; do 2361 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2362done 2363ac_signal=0 2364 2365# confdefs.h avoids OS command line length limits that DEFS can exceed. 2366rm -f -r conftest* confdefs.h 2367 2368$as_echo "/* confdefs.h */" > confdefs.h 2369 2370# Predefined preprocessor variables. 2371 2372cat >>confdefs.h <<_ACEOF 2373#define PACKAGE_NAME "$PACKAGE_NAME" 2374_ACEOF 2375 2376cat >>confdefs.h <<_ACEOF 2377#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2378_ACEOF 2379 2380cat >>confdefs.h <<_ACEOF 2381#define PACKAGE_VERSION "$PACKAGE_VERSION" 2382_ACEOF 2383 2384cat >>confdefs.h <<_ACEOF 2385#define PACKAGE_STRING "$PACKAGE_STRING" 2386_ACEOF 2387 2388cat >>confdefs.h <<_ACEOF 2389#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2390_ACEOF 2391 2392cat >>confdefs.h <<_ACEOF 2393#define PACKAGE_URL "$PACKAGE_URL" 2394_ACEOF 2395 2396 2397# Let the site file select an alternate cache file if it wants to. 2398# Prefer an explicitly selected file to automatically selected ones. 2399ac_site_file1=NONE 2400ac_site_file2=NONE 2401if test -n "$CONFIG_SITE"; then 2402 # We do not want a PATH search for config.site. 2403 case $CONFIG_SITE in #(( 2404 -*) ac_site_file1=./$CONFIG_SITE;; 2405 */*) ac_site_file1=$CONFIG_SITE;; 2406 *) ac_site_file1=./$CONFIG_SITE;; 2407 esac 2408elif test "x$prefix" != xNONE; then 2409 ac_site_file1=$prefix/share/config.site 2410 ac_site_file2=$prefix/etc/config.site 2411else 2412 ac_site_file1=$ac_default_prefix/share/config.site 2413 ac_site_file2=$ac_default_prefix/etc/config.site 2414fi 2415for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2416do 2417 test "x$ac_site_file" = xNONE && continue 2418 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2419 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2420$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2421 sed 's/^/| /' "$ac_site_file" >&5 2422 . "$ac_site_file" \ 2423 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2424$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2425as_fn_error $? "failed to load site script $ac_site_file 2426See \`config.log' for more details" "$LINENO" 5; } 2427 fi 2428done 2429 2430if test -r "$cache_file"; then 2431 # Some versions of bash will fail to source /dev/null (special files 2432 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2433 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2434 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2435$as_echo "$as_me: loading cache $cache_file" >&6;} 2436 case $cache_file in 2437 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2438 *) . "./$cache_file";; 2439 esac 2440 fi 2441else 2442 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2443$as_echo "$as_me: creating cache $cache_file" >&6;} 2444 >$cache_file 2445fi 2446 2447# Check that the precious variables saved in the cache have kept the same 2448# value. 2449ac_cache_corrupted=false 2450for ac_var in $ac_precious_vars; do 2451 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2452 eval ac_new_set=\$ac_env_${ac_var}_set 2453 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2454 eval ac_new_val=\$ac_env_${ac_var}_value 2455 case $ac_old_set,$ac_new_set in 2456 set,) 2457 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2458$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2459 ac_cache_corrupted=: ;; 2460 ,set) 2461 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2462$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2463 ac_cache_corrupted=: ;; 2464 ,);; 2465 *) 2466 if test "x$ac_old_val" != "x$ac_new_val"; then 2467 # differences in whitespace do not lead to failure. 2468 ac_old_val_w=`echo x $ac_old_val` 2469 ac_new_val_w=`echo x $ac_new_val` 2470 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2471 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2472$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2473 ac_cache_corrupted=: 2474 else 2475 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2476$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2477 eval $ac_var=\$ac_old_val 2478 fi 2479 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2480$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2481 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2482$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2483 fi;; 2484 esac 2485 # Pass precious variables to config.status. 2486 if test "$ac_new_set" = set; then 2487 case $ac_new_val in 2488 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2489 *) ac_arg=$ac_var=$ac_new_val ;; 2490 esac 2491 case " $ac_configure_args " in 2492 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2493 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2494 esac 2495 fi 2496done 2497if $ac_cache_corrupted; then 2498 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2499$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2500 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2501$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2502 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2503fi 2504## -------------------- ## 2505## Main body of script. ## 2506## -------------------- ## 2507 2508ac_ext=c 2509ac_cpp='$CPP $CPPFLAGS' 2510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2512ac_compiler_gnu=$ac_cv_c_compiler_gnu 2513 2514 2515 2516 2517 2518$as_echo "#define PACKAGE_COPYRIGHT \"Copyright (c) 2007, 2008, 2009, 2010 The NetBSD Foundation, Inc.\"" >>confdefs.h 2519 2520ac_aux_dir= 2521for ac_dir in admin "$srcdir"/admin; do 2522 if test -f "$ac_dir/install-sh"; then 2523 ac_aux_dir=$ac_dir 2524 ac_install_sh="$ac_aux_dir/install-sh -c" 2525 break 2526 elif test -f "$ac_dir/install.sh"; then 2527 ac_aux_dir=$ac_dir 2528 ac_install_sh="$ac_aux_dir/install.sh -c" 2529 break 2530 elif test -f "$ac_dir/shtool"; then 2531 ac_aux_dir=$ac_dir 2532 ac_install_sh="$ac_aux_dir/shtool install -c" 2533 break 2534 fi 2535done 2536if test -z "$ac_aux_dir"; then 2537 as_fn_error $? "cannot find install-sh, install.sh, or shtool in admin \"$srcdir\"/admin" "$LINENO" 5 2538fi 2539 2540# These three variables are undocumented and unsupported, 2541# and are intended to be withdrawn in a future Autoconf release. 2542# They can cause serious problems if a builder's source tree is in a directory 2543# whose full name contains unusual characters. 2544ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2545ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2546ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2547 2548 2549ac_config_headers="$ac_config_headers bconfig.h" 2550 2551 2552 2553ac_config_commands="$ac_config_commands bootstrap/atconfig" 2554 2555 2556# Make sure we can run config.sub. 2557$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2558 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2559 2560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2561$as_echo_n "checking build system type... " >&6; } 2562if test "${ac_cv_build+set}" = set; then : 2563 $as_echo_n "(cached) " >&6 2564else 2565 ac_build_alias=$build_alias 2566test "x$ac_build_alias" = x && 2567 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2568test "x$ac_build_alias" = x && 2569 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2570ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2571 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2572 2573fi 2574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2575$as_echo "$ac_cv_build" >&6; } 2576case $ac_cv_build in 2577*-*-*) ;; 2578*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2579esac 2580build=$ac_cv_build 2581ac_save_IFS=$IFS; IFS='-' 2582set x $ac_cv_build 2583shift 2584build_cpu=$1 2585build_vendor=$2 2586shift; shift 2587# Remember, the first character of IFS is used to create $*, 2588# except with old shells: 2589build_os=$* 2590IFS=$ac_save_IFS 2591case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2592 2593 2594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2595$as_echo_n "checking host system type... " >&6; } 2596if test "${ac_cv_host+set}" = set; then : 2597 $as_echo_n "(cached) " >&6 2598else 2599 if test "x$host_alias" = x; then 2600 ac_cv_host=$ac_cv_build 2601else 2602 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2603 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2604fi 2605 2606fi 2607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2608$as_echo "$ac_cv_host" >&6; } 2609case $ac_cv_host in 2610*-*-*) ;; 2611*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2612esac 2613host=$ac_cv_host 2614ac_save_IFS=$IFS; IFS='-' 2615set x $ac_cv_host 2616shift 2617host_cpu=$1 2618host_vendor=$2 2619shift; shift 2620# Remember, the first character of IFS is used to create $*, 2621# except with old shells: 2622host_os=$* 2623IFS=$ac_save_IFS 2624case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2625 2626 2627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2628$as_echo_n "checking target system type... " >&6; } 2629if test "${ac_cv_target+set}" = set; then : 2630 $as_echo_n "(cached) " >&6 2631else 2632 if test "x$target_alias" = x; then 2633 ac_cv_target=$ac_cv_host 2634else 2635 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2636 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2637fi 2638 2639fi 2640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2641$as_echo "$ac_cv_target" >&6; } 2642case $ac_cv_target in 2643*-*-*) ;; 2644*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2645esac 2646target=$ac_cv_target 2647ac_save_IFS=$IFS; IFS='-' 2648set x $ac_cv_target 2649shift 2650target_cpu=$1 2651target_vendor=$2 2652shift; shift 2653# Remember, the first character of IFS is used to create $*, 2654# except with old shells: 2655target_os=$* 2656IFS=$ac_save_IFS 2657case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2658 2659 2660# The aliases save the names the user supplied, while $host etc. 2661# will get canonicalized. 2662test -n "$target_alias" && 2663 test "$program_prefix$program_suffix$program_transform_name" = \ 2664 NONENONEs,x,x, && 2665 program_prefix=${target_alias}- 2666 2667am__api_version='1.10' 2668 2669# Find a good install program. We prefer a C program (faster), 2670# so one script is as good as another. But avoid the broken or 2671# incompatible versions: 2672# SysV /etc/install, /usr/sbin/install 2673# SunOS /usr/etc/install 2674# IRIX /sbin/install 2675# AIX /bin/install 2676# AmigaOS /C/install, which installs bootblocks on floppy discs 2677# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2678# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2679# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2680# OS/2's system install, which has a completely different semantic 2681# ./install, which can be erroneously created by make from ./install.sh. 2682# Reject install programs that cannot install multiple files. 2683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2684$as_echo_n "checking for a BSD-compatible install... " >&6; } 2685if test -z "$INSTALL"; then 2686if test "${ac_cv_path_install+set}" = set; then : 2687 $as_echo_n "(cached) " >&6 2688else 2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2690for as_dir in $PATH 2691do 2692 IFS=$as_save_IFS 2693 test -z "$as_dir" && as_dir=. 2694 # Account for people who put trailing slashes in PATH elements. 2695case $as_dir/ in #(( 2696 ./ | .// | /[cC]/* | \ 2697 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2698 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2699 /usr/ucb/* ) ;; 2700 *) 2701 # OSF1 and SCO ODT 3.0 have their own names for install. 2702 # Don't use installbsd from OSF since it installs stuff as root 2703 # by default. 2704 for ac_prog in ginstall scoinst install; do 2705 for ac_exec_ext in '' $ac_executable_extensions; do 2706 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2707 if test $ac_prog = install && 2708 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2709 # AIX install. It has an incompatible calling convention. 2710 : 2711 elif test $ac_prog = install && 2712 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2713 # program-specific install script used by HP pwplus--don't use. 2714 : 2715 else 2716 rm -rf conftest.one conftest.two conftest.dir 2717 echo one > conftest.one 2718 echo two > conftest.two 2719 mkdir conftest.dir 2720 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2721 test -s conftest.one && test -s conftest.two && 2722 test -s conftest.dir/conftest.one && 2723 test -s conftest.dir/conftest.two 2724 then 2725 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2726 break 3 2727 fi 2728 fi 2729 fi 2730 done 2731 done 2732 ;; 2733esac 2734 2735 done 2736IFS=$as_save_IFS 2737 2738rm -rf conftest.one conftest.two conftest.dir 2739 2740fi 2741 if test "${ac_cv_path_install+set}" = set; then 2742 INSTALL=$ac_cv_path_install 2743 else 2744 # As a last resort, use the slow shell script. Don't cache a 2745 # value for INSTALL within a source directory, because that will 2746 # break other packages using the cache if that directory is 2747 # removed, or if the value is a relative name. 2748 INSTALL=$ac_install_sh 2749 fi 2750fi 2751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2752$as_echo "$INSTALL" >&6; } 2753 2754# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2755# It thinks the first close brace ends the variable substitution. 2756test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2757 2758test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2759 2760test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2761 2762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2763$as_echo_n "checking whether build environment is sane... " >&6; } 2764# Just in case 2765sleep 1 2766echo timestamp > conftest.file 2767# Do `set' in a subshell so we don't clobber the current shell's 2768# arguments. Must try -L first in case configure is actually a 2769# symlink; some systems play weird games with the mod time of symlinks 2770# (eg FreeBSD returns the mod time of the symlink's containing 2771# directory). 2772if ( 2773 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2774 if test "$*" = "X"; then 2775 # -L didn't work. 2776 set X `ls -t $srcdir/configure conftest.file` 2777 fi 2778 rm -f conftest.file 2779 if test "$*" != "X $srcdir/configure conftest.file" \ 2780 && test "$*" != "X conftest.file $srcdir/configure"; then 2781 2782 # If neither matched, then we have a broken ls. This can happen 2783 # if, for instance, CONFIG_SHELL is bash and it inherits a 2784 # broken ls alias from the environment. This has actually 2785 # happened. Such a system could not be considered "sane". 2786 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2787alias in your environment" "$LINENO" 5 2788 fi 2789 2790 test "$2" = conftest.file 2791 ) 2792then 2793 # Ok. 2794 : 2795else 2796 as_fn_error $? "newly created file is older than distributed files! 2797Check your system clock" "$LINENO" 5 2798fi 2799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2800$as_echo "yes" >&6; } 2801test "$program_prefix" != NONE && 2802 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2803# Use a double $ so make ignores it. 2804test "$program_suffix" != NONE && 2805 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2806# Double any \ or $. 2807# By default was `s,x,x', remove it if useless. 2808ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2809program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2810 2811# expand $ac_aux_dir to an absolute path 2812am_aux_dir=`cd $ac_aux_dir && pwd` 2813 2814test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2815# Use eval to expand $SHELL 2816if eval "$MISSING --run true"; then 2817 am_missing_run="$MISSING --run " 2818else 2819 am_missing_run= 2820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2821$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2822fi 2823 2824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2825$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2826if test -z "$MKDIR_P"; then 2827 if test "${ac_cv_path_mkdir+set}" = set; then : 2828 $as_echo_n "(cached) " >&6 2829else 2830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2831for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2832do 2833 IFS=$as_save_IFS 2834 test -z "$as_dir" && as_dir=. 2835 for ac_prog in mkdir gmkdir; do 2836 for ac_exec_ext in '' $ac_executable_extensions; do 2837 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2838 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2839 'mkdir (GNU coreutils) '* | \ 2840 'mkdir (coreutils) '* | \ 2841 'mkdir (fileutils) '4.1*) 2842 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2843 break 3;; 2844 esac 2845 done 2846 done 2847 done 2848IFS=$as_save_IFS 2849 2850fi 2851 2852 test -d ./--version && rmdir ./--version 2853 if test "${ac_cv_path_mkdir+set}" = set; then 2854 MKDIR_P="$ac_cv_path_mkdir -p" 2855 else 2856 # As a last resort, use the slow shell script. Don't cache a 2857 # value for MKDIR_P within a source directory, because that will 2858 # break other packages using the cache if that directory is 2859 # removed, or if the value is a relative name. 2860 MKDIR_P="$ac_install_sh -d" 2861 fi 2862fi 2863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2864$as_echo "$MKDIR_P" >&6; } 2865 2866mkdir_p="$MKDIR_P" 2867case $mkdir_p in 2868 [\\/$]* | ?:[\\/]*) ;; 2869 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2870esac 2871 2872for ac_prog in gawk mawk nawk awk 2873do 2874 # Extract the first word of "$ac_prog", so it can be a program name with args. 2875set dummy $ac_prog; ac_word=$2 2876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2877$as_echo_n "checking for $ac_word... " >&6; } 2878if test "${ac_cv_prog_AWK+set}" = set; then : 2879 $as_echo_n "(cached) " >&6 2880else 2881 if test -n "$AWK"; then 2882 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2883else 2884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2885for as_dir in $PATH 2886do 2887 IFS=$as_save_IFS 2888 test -z "$as_dir" && as_dir=. 2889 for ac_exec_ext in '' $ac_executable_extensions; do 2890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2891 ac_cv_prog_AWK="$ac_prog" 2892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2893 break 2 2894 fi 2895done 2896 done 2897IFS=$as_save_IFS 2898 2899fi 2900fi 2901AWK=$ac_cv_prog_AWK 2902if test -n "$AWK"; then 2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2904$as_echo "$AWK" >&6; } 2905else 2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2907$as_echo "no" >&6; } 2908fi 2909 2910 2911 test -n "$AWK" && break 2912done 2913 2914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2915$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2916set x ${MAKE-make} 2917ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2918if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : 2919 $as_echo_n "(cached) " >&6 2920else 2921 cat >conftest.make <<\_ACEOF 2922SHELL = /bin/sh 2923all: 2924 @echo '@@@%%%=$(MAKE)=@@@%%%' 2925_ACEOF 2926# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2927case `${MAKE-make} -f conftest.make 2>/dev/null` in 2928 *@@@%%%=?*=@@@%%%*) 2929 eval ac_cv_prog_make_${ac_make}_set=yes;; 2930 *) 2931 eval ac_cv_prog_make_${ac_make}_set=no;; 2932esac 2933rm -f conftest.make 2934fi 2935if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2937$as_echo "yes" >&6; } 2938 SET_MAKE= 2939else 2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2941$as_echo "no" >&6; } 2942 SET_MAKE="MAKE=${MAKE-make}" 2943fi 2944 2945rm -rf .tst 2>/dev/null 2946mkdir .tst 2>/dev/null 2947if test -d .tst; then 2948 am__leading_dot=. 2949else 2950 am__leading_dot=_ 2951fi 2952rmdir .tst 2>/dev/null 2953 2954if test "`cd $srcdir && pwd`" != "`pwd`"; then 2955 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2956 # is not polluted with repeated "-I." 2957 am__isrc=' -I$(srcdir)' 2958 # test to see if srcdir already configured 2959 if test -f $srcdir/config.status; then 2960 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2961 fi 2962fi 2963 2964# test whether we have cygpath 2965if test -z "$CYGPATH_W"; then 2966 if (cygpath --version) >/dev/null 2>/dev/null; then 2967 CYGPATH_W='cygpath -w' 2968 else 2969 CYGPATH_W=echo 2970 fi 2971fi 2972 2973 2974# Define the identity of the package. 2975 PACKAGE='atf' 2976 VERSION='0.12' 2977 2978 2979cat >>confdefs.h <<_ACEOF 2980#define PACKAGE "$PACKAGE" 2981_ACEOF 2982 2983 2984cat >>confdefs.h <<_ACEOF 2985#define VERSION "$VERSION" 2986_ACEOF 2987 2988# Some tools Automake needs. 2989 2990ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2991 2992 2993AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2994 2995 2996AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2997 2998 2999AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3000 3001 3002MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3003 3004install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 3005 3006# Installed binaries are usually stripped using `strip' when the user 3007# run `make install-strip'. However `strip' might not be the right 3008# tool to use in cross-compilation environments, therefore Automake 3009# will honor the `STRIP' environment variable to overrule this program. 3010if test "$cross_compiling" != no; then 3011 if test -n "$ac_tool_prefix"; then 3012 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3013set dummy ${ac_tool_prefix}strip; ac_word=$2 3014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3015$as_echo_n "checking for $ac_word... " >&6; } 3016if test "${ac_cv_prog_STRIP+set}" = set; then : 3017 $as_echo_n "(cached) " >&6 3018else 3019 if test -n "$STRIP"; then 3020 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3021else 3022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3023for as_dir in $PATH 3024do 3025 IFS=$as_save_IFS 3026 test -z "$as_dir" && as_dir=. 3027 for ac_exec_ext in '' $ac_executable_extensions; do 3028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3029 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3031 break 2 3032 fi 3033done 3034 done 3035IFS=$as_save_IFS 3036 3037fi 3038fi 3039STRIP=$ac_cv_prog_STRIP 3040if test -n "$STRIP"; then 3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3042$as_echo "$STRIP" >&6; } 3043else 3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3045$as_echo "no" >&6; } 3046fi 3047 3048 3049fi 3050if test -z "$ac_cv_prog_STRIP"; then 3051 ac_ct_STRIP=$STRIP 3052 # Extract the first word of "strip", so it can be a program name with args. 3053set dummy strip; ac_word=$2 3054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3055$as_echo_n "checking for $ac_word... " >&6; } 3056if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 3057 $as_echo_n "(cached) " >&6 3058else 3059 if test -n "$ac_ct_STRIP"; then 3060 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3061else 3062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3063for as_dir in $PATH 3064do 3065 IFS=$as_save_IFS 3066 test -z "$as_dir" && as_dir=. 3067 for ac_exec_ext in '' $ac_executable_extensions; do 3068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3069 ac_cv_prog_ac_ct_STRIP="strip" 3070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3071 break 2 3072 fi 3073done 3074 done 3075IFS=$as_save_IFS 3076 3077fi 3078fi 3079ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3080if test -n "$ac_ct_STRIP"; then 3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3082$as_echo "$ac_ct_STRIP" >&6; } 3083else 3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3085$as_echo "no" >&6; } 3086fi 3087 3088 if test "x$ac_ct_STRIP" = x; then 3089 STRIP=":" 3090 else 3091 case $cross_compiling:$ac_tool_warned in 3092yes:) 3093{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3094$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3095ac_tool_warned=yes ;; 3096esac 3097 STRIP=$ac_ct_STRIP 3098 fi 3099else 3100 STRIP="$ac_cv_prog_STRIP" 3101fi 3102 3103fi 3104INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3105 3106# We need awk for the "check" target. The system "awk" is bad on 3107# some platforms. 3108# Always define AMTAR for backward compatibility. 3109 3110AMTAR=${AMTAR-"${am_missing_run}tar"} 3111 3112am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3113 3114 3115 3116 3117 3118 3119case `pwd` in 3120 *\ * | *\ *) 3121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3122$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3123esac 3124 3125 3126 3127macro_version='2.2.6b' 3128macro_revision='1.3017' 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142ltmain="$ac_aux_dir/ltmain.sh" 3143 3144DEPDIR="${am__leading_dot}deps" 3145 3146ac_config_commands="$ac_config_commands depfiles" 3147 3148 3149am_make=${MAKE-make} 3150cat > confinc << 'END' 3151am__doit: 3152 @echo done 3153.PHONY: am__doit 3154END 3155# If we don't find an include directive, just comment out the code. 3156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3157$as_echo_n "checking for style of include used by $am_make... " >&6; } 3158am__include="#" 3159am__quote= 3160_am_result=none 3161# First try GNU make style include. 3162echo "include confinc" > confmf 3163# We grep out `Entering directory' and `Leaving directory' 3164# messages which can occur if `w' ends up in MAKEFLAGS. 3165# In particular we don't look at `^make:' because GNU make might 3166# be invoked under some other name (usually "gmake"), in which 3167# case it prints its new name instead of `make'. 3168if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3169 am__include=include 3170 am__quote= 3171 _am_result=GNU 3172fi 3173# Now try BSD make style include. 3174if test "$am__include" = "#"; then 3175 echo '.include "confinc"' > confmf 3176 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3177 am__include=.include 3178 am__quote="\"" 3179 _am_result=BSD 3180 fi 3181fi 3182 3183 3184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3185$as_echo "$_am_result" >&6; } 3186rm -f confinc confmf 3187 3188# Check whether --enable-dependency-tracking was given. 3189if test "${enable_dependency_tracking+set}" = set; then : 3190 enableval=$enable_dependency_tracking; 3191fi 3192 3193if test "x$enable_dependency_tracking" != xno; then 3194 am_depcomp="$ac_aux_dir/depcomp" 3195 AMDEPBACKSLASH='\' 3196fi 3197 if test "x$enable_dependency_tracking" != xno; then 3198 AMDEP_TRUE= 3199 AMDEP_FALSE='#' 3200else 3201 AMDEP_TRUE='#' 3202 AMDEP_FALSE= 3203fi 3204 3205 3206ac_ext=c 3207ac_cpp='$CPP $CPPFLAGS' 3208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3210ac_compiler_gnu=$ac_cv_c_compiler_gnu 3211if test -n "$ac_tool_prefix"; then 3212 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3213set dummy ${ac_tool_prefix}gcc; ac_word=$2 3214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3215$as_echo_n "checking for $ac_word... " >&6; } 3216if test "${ac_cv_prog_CC+set}" = set; then : 3217 $as_echo_n "(cached) " >&6 3218else 3219 if test -n "$CC"; then 3220 ac_cv_prog_CC="$CC" # Let the user override the test. 3221else 3222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3223for as_dir in $PATH 3224do 3225 IFS=$as_save_IFS 3226 test -z "$as_dir" && as_dir=. 3227 for ac_exec_ext in '' $ac_executable_extensions; do 3228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3229 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3231 break 2 3232 fi 3233done 3234 done 3235IFS=$as_save_IFS 3236 3237fi 3238fi 3239CC=$ac_cv_prog_CC 3240if test -n "$CC"; then 3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3242$as_echo "$CC" >&6; } 3243else 3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3245$as_echo "no" >&6; } 3246fi 3247 3248 3249fi 3250if test -z "$ac_cv_prog_CC"; then 3251 ac_ct_CC=$CC 3252 # Extract the first word of "gcc", so it can be a program name with args. 3253set dummy gcc; ac_word=$2 3254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3255$as_echo_n "checking for $ac_word... " >&6; } 3256if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3257 $as_echo_n "(cached) " >&6 3258else 3259 if test -n "$ac_ct_CC"; then 3260 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3261else 3262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3263for as_dir in $PATH 3264do 3265 IFS=$as_save_IFS 3266 test -z "$as_dir" && as_dir=. 3267 for ac_exec_ext in '' $ac_executable_extensions; do 3268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3269 ac_cv_prog_ac_ct_CC="gcc" 3270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3271 break 2 3272 fi 3273done 3274 done 3275IFS=$as_save_IFS 3276 3277fi 3278fi 3279ac_ct_CC=$ac_cv_prog_ac_ct_CC 3280if test -n "$ac_ct_CC"; then 3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3282$as_echo "$ac_ct_CC" >&6; } 3283else 3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3285$as_echo "no" >&6; } 3286fi 3287 3288 if test "x$ac_ct_CC" = x; then 3289 CC="" 3290 else 3291 case $cross_compiling:$ac_tool_warned in 3292yes:) 3293{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3294$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3295ac_tool_warned=yes ;; 3296esac 3297 CC=$ac_ct_CC 3298 fi 3299else 3300 CC="$ac_cv_prog_CC" 3301fi 3302 3303if test -z "$CC"; then 3304 if test -n "$ac_tool_prefix"; then 3305 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3306set dummy ${ac_tool_prefix}cc; ac_word=$2 3307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3308$as_echo_n "checking for $ac_word... " >&6; } 3309if test "${ac_cv_prog_CC+set}" = set; then : 3310 $as_echo_n "(cached) " >&6 3311else 3312 if test -n "$CC"; then 3313 ac_cv_prog_CC="$CC" # Let the user override the test. 3314else 3315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3316for as_dir in $PATH 3317do 3318 IFS=$as_save_IFS 3319 test -z "$as_dir" && as_dir=. 3320 for ac_exec_ext in '' $ac_executable_extensions; do 3321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3322 ac_cv_prog_CC="${ac_tool_prefix}cc" 3323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3324 break 2 3325 fi 3326done 3327 done 3328IFS=$as_save_IFS 3329 3330fi 3331fi 3332CC=$ac_cv_prog_CC 3333if test -n "$CC"; then 3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3335$as_echo "$CC" >&6; } 3336else 3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3338$as_echo "no" >&6; } 3339fi 3340 3341 3342 fi 3343fi 3344if test -z "$CC"; then 3345 # Extract the first word of "cc", so it can be a program name with args. 3346set dummy cc; ac_word=$2 3347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3348$as_echo_n "checking for $ac_word... " >&6; } 3349if test "${ac_cv_prog_CC+set}" = set; then : 3350 $as_echo_n "(cached) " >&6 3351else 3352 if test -n "$CC"; then 3353 ac_cv_prog_CC="$CC" # Let the user override the test. 3354else 3355 ac_prog_rejected=no 3356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3357for as_dir in $PATH 3358do 3359 IFS=$as_save_IFS 3360 test -z "$as_dir" && as_dir=. 3361 for ac_exec_ext in '' $ac_executable_extensions; do 3362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3363 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3364 ac_prog_rejected=yes 3365 continue 3366 fi 3367 ac_cv_prog_CC="cc" 3368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3369 break 2 3370 fi 3371done 3372 done 3373IFS=$as_save_IFS 3374 3375if test $ac_prog_rejected = yes; then 3376 # We found a bogon in the path, so make sure we never use it. 3377 set dummy $ac_cv_prog_CC 3378 shift 3379 if test $# != 0; then 3380 # We chose a different compiler from the bogus one. 3381 # However, it has the same basename, so the bogon will be chosen 3382 # first if we set CC to just the basename; use the full file name. 3383 shift 3384 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3385 fi 3386fi 3387fi 3388fi 3389CC=$ac_cv_prog_CC 3390if test -n "$CC"; then 3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3392$as_echo "$CC" >&6; } 3393else 3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3395$as_echo "no" >&6; } 3396fi 3397 3398 3399fi 3400if test -z "$CC"; then 3401 if test -n "$ac_tool_prefix"; then 3402 for ac_prog in cl.exe 3403 do 3404 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3405set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3407$as_echo_n "checking for $ac_word... " >&6; } 3408if test "${ac_cv_prog_CC+set}" = set; then : 3409 $as_echo_n "(cached) " >&6 3410else 3411 if test -n "$CC"; then 3412 ac_cv_prog_CC="$CC" # Let the user override the test. 3413else 3414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3415for as_dir in $PATH 3416do 3417 IFS=$as_save_IFS 3418 test -z "$as_dir" && as_dir=. 3419 for ac_exec_ext in '' $ac_executable_extensions; do 3420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3421 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3423 break 2 3424 fi 3425done 3426 done 3427IFS=$as_save_IFS 3428 3429fi 3430fi 3431CC=$ac_cv_prog_CC 3432if test -n "$CC"; then 3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3434$as_echo "$CC" >&6; } 3435else 3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3437$as_echo "no" >&6; } 3438fi 3439 3440 3441 test -n "$CC" && break 3442 done 3443fi 3444if test -z "$CC"; then 3445 ac_ct_CC=$CC 3446 for ac_prog in cl.exe 3447do 3448 # Extract the first word of "$ac_prog", so it can be a program name with args. 3449set dummy $ac_prog; ac_word=$2 3450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3451$as_echo_n "checking for $ac_word... " >&6; } 3452if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3453 $as_echo_n "(cached) " >&6 3454else 3455 if test -n "$ac_ct_CC"; then 3456 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3457else 3458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3459for as_dir in $PATH 3460do 3461 IFS=$as_save_IFS 3462 test -z "$as_dir" && as_dir=. 3463 for ac_exec_ext in '' $ac_executable_extensions; do 3464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3465 ac_cv_prog_ac_ct_CC="$ac_prog" 3466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3467 break 2 3468 fi 3469done 3470 done 3471IFS=$as_save_IFS 3472 3473fi 3474fi 3475ac_ct_CC=$ac_cv_prog_ac_ct_CC 3476if test -n "$ac_ct_CC"; then 3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3478$as_echo "$ac_ct_CC" >&6; } 3479else 3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3481$as_echo "no" >&6; } 3482fi 3483 3484 3485 test -n "$ac_ct_CC" && break 3486done 3487 3488 if test "x$ac_ct_CC" = x; then 3489 CC="" 3490 else 3491 case $cross_compiling:$ac_tool_warned in 3492yes:) 3493{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3494$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3495ac_tool_warned=yes ;; 3496esac 3497 CC=$ac_ct_CC 3498 fi 3499fi 3500 3501fi 3502 3503 3504test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3505$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3506as_fn_error $? "no acceptable C compiler found in \$PATH 3507See \`config.log' for more details" "$LINENO" 5; } 3508 3509# Provide some information about the compiler. 3510$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3511set X $ac_compile 3512ac_compiler=$2 3513for ac_option in --version -v -V -qversion; do 3514 { { ac_try="$ac_compiler $ac_option >&5" 3515case "(($ac_try" in 3516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3517 *) ac_try_echo=$ac_try;; 3518esac 3519eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3520$as_echo "$ac_try_echo"; } >&5 3521 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3522 ac_status=$? 3523 if test -s conftest.err; then 3524 sed '10a\ 3525... rest of stderr output deleted ... 3526 10q' conftest.err >conftest.er1 3527 cat conftest.er1 >&5 3528 fi 3529 rm -f conftest.er1 conftest.err 3530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3531 test $ac_status = 0; } 3532done 3533 3534cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3535/* end confdefs.h. */ 3536 3537int 3538main () 3539{ 3540 3541 ; 3542 return 0; 3543} 3544_ACEOF 3545ac_clean_files_save=$ac_clean_files 3546ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3547# Try to create an executable without -o first, disregard a.out. 3548# It will help us diagnose broken compilers, and finding out an intuition 3549# of exeext. 3550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3551$as_echo_n "checking whether the C compiler works... " >&6; } 3552ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3553 3554# The possible output files: 3555ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3556 3557ac_rmfiles= 3558for ac_file in $ac_files 3559do 3560 case $ac_file in 3561 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3562 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3563 esac 3564done 3565rm -f $ac_rmfiles 3566 3567if { { ac_try="$ac_link_default" 3568case "(($ac_try" in 3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3570 *) ac_try_echo=$ac_try;; 3571esac 3572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3573$as_echo "$ac_try_echo"; } >&5 3574 (eval "$ac_link_default") 2>&5 3575 ac_status=$? 3576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3577 test $ac_status = 0; }; then : 3578 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3579# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3580# in a Makefile. We should not override ac_cv_exeext if it was cached, 3581# so that the user can short-circuit this test for compilers unknown to 3582# Autoconf. 3583for ac_file in $ac_files '' 3584do 3585 test -f "$ac_file" || continue 3586 case $ac_file in 3587 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3588 ;; 3589 [ab].out ) 3590 # We found the default executable, but exeext='' is most 3591 # certainly right. 3592 break;; 3593 *.* ) 3594 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3595 then :; else 3596 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3597 fi 3598 # We set ac_cv_exeext here because the later test for it is not 3599 # safe: cross compilers may not add the suffix if given an `-o' 3600 # argument, so we may need to know it at that point already. 3601 # Even if this section looks crufty: it has the advantage of 3602 # actually working. 3603 break;; 3604 * ) 3605 break;; 3606 esac 3607done 3608test "$ac_cv_exeext" = no && ac_cv_exeext= 3609 3610else 3611 ac_file='' 3612fi 3613if test -z "$ac_file"; then : 3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3615$as_echo "no" >&6; } 3616$as_echo "$as_me: failed program was:" >&5 3617sed 's/^/| /' conftest.$ac_ext >&5 3618 3619{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3620$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3621as_fn_error 77 "C compiler cannot create executables 3622See \`config.log' for more details" "$LINENO" 5; } 3623else 3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3625$as_echo "yes" >&6; } 3626fi 3627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3628$as_echo_n "checking for C compiler default output file name... " >&6; } 3629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3630$as_echo "$ac_file" >&6; } 3631ac_exeext=$ac_cv_exeext 3632 3633rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3634ac_clean_files=$ac_clean_files_save 3635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3636$as_echo_n "checking for suffix of executables... " >&6; } 3637if { { ac_try="$ac_link" 3638case "(($ac_try" in 3639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3640 *) ac_try_echo=$ac_try;; 3641esac 3642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3643$as_echo "$ac_try_echo"; } >&5 3644 (eval "$ac_link") 2>&5 3645 ac_status=$? 3646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3647 test $ac_status = 0; }; then : 3648 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3649# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3650# work properly (i.e., refer to `conftest.exe'), while it won't with 3651# `rm'. 3652for ac_file in conftest.exe conftest conftest.*; do 3653 test -f "$ac_file" || continue 3654 case $ac_file in 3655 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3656 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3657 break;; 3658 * ) break;; 3659 esac 3660done 3661else 3662 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3663$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3664as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3665See \`config.log' for more details" "$LINENO" 5; } 3666fi 3667rm -f conftest conftest$ac_cv_exeext 3668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3669$as_echo "$ac_cv_exeext" >&6; } 3670 3671rm -f conftest.$ac_ext 3672EXEEXT=$ac_cv_exeext 3673ac_exeext=$EXEEXT 3674cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3675/* end confdefs.h. */ 3676#include <stdio.h> 3677int 3678main () 3679{ 3680FILE *f = fopen ("conftest.out", "w"); 3681 return ferror (f) || fclose (f) != 0; 3682 3683 ; 3684 return 0; 3685} 3686_ACEOF 3687ac_clean_files="$ac_clean_files conftest.out" 3688# Check that the compiler produces executables we can run. If not, either 3689# the compiler is broken, or we cross compile. 3690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3691$as_echo_n "checking whether we are cross compiling... " >&6; } 3692if test "$cross_compiling" != yes; then 3693 { { ac_try="$ac_link" 3694case "(($ac_try" in 3695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3696 *) ac_try_echo=$ac_try;; 3697esac 3698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3699$as_echo "$ac_try_echo"; } >&5 3700 (eval "$ac_link") 2>&5 3701 ac_status=$? 3702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3703 test $ac_status = 0; } 3704 if { ac_try='./conftest$ac_cv_exeext' 3705 { { case "(($ac_try" in 3706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3707 *) ac_try_echo=$ac_try;; 3708esac 3709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3710$as_echo "$ac_try_echo"; } >&5 3711 (eval "$ac_try") 2>&5 3712 ac_status=$? 3713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3714 test $ac_status = 0; }; }; then 3715 cross_compiling=no 3716 else 3717 if test "$cross_compiling" = maybe; then 3718 cross_compiling=yes 3719 else 3720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3721$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3722as_fn_error $? "cannot run C compiled programs. 3723If you meant to cross compile, use \`--host'. 3724See \`config.log' for more details" "$LINENO" 5; } 3725 fi 3726 fi 3727fi 3728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3729$as_echo "$cross_compiling" >&6; } 3730 3731rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3732ac_clean_files=$ac_clean_files_save 3733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3734$as_echo_n "checking for suffix of object files... " >&6; } 3735if test "${ac_cv_objext+set}" = set; then : 3736 $as_echo_n "(cached) " >&6 3737else 3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3739/* end confdefs.h. */ 3740 3741int 3742main () 3743{ 3744 3745 ; 3746 return 0; 3747} 3748_ACEOF 3749rm -f conftest.o conftest.obj 3750if { { ac_try="$ac_compile" 3751case "(($ac_try" in 3752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3753 *) ac_try_echo=$ac_try;; 3754esac 3755eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3756$as_echo "$ac_try_echo"; } >&5 3757 (eval "$ac_compile") 2>&5 3758 ac_status=$? 3759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3760 test $ac_status = 0; }; then : 3761 for ac_file in conftest.o conftest.obj conftest.*; do 3762 test -f "$ac_file" || continue; 3763 case $ac_file in 3764 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3765 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3766 break;; 3767 esac 3768done 3769else 3770 $as_echo "$as_me: failed program was:" >&5 3771sed 's/^/| /' conftest.$ac_ext >&5 3772 3773{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3774$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3775as_fn_error $? "cannot compute suffix of object files: cannot compile 3776See \`config.log' for more details" "$LINENO" 5; } 3777fi 3778rm -f conftest.$ac_cv_objext conftest.$ac_ext 3779fi 3780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3781$as_echo "$ac_cv_objext" >&6; } 3782OBJEXT=$ac_cv_objext 3783ac_objext=$OBJEXT 3784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3785$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3786if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3787 $as_echo_n "(cached) " >&6 3788else 3789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3790/* end confdefs.h. */ 3791 3792int 3793main () 3794{ 3795#ifndef __GNUC__ 3796 choke me 3797#endif 3798 3799 ; 3800 return 0; 3801} 3802_ACEOF 3803if ac_fn_c_try_compile "$LINENO"; then : 3804 ac_compiler_gnu=yes 3805else 3806 ac_compiler_gnu=no 3807fi 3808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3809ac_cv_c_compiler_gnu=$ac_compiler_gnu 3810 3811fi 3812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3813$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3814if test $ac_compiler_gnu = yes; then 3815 GCC=yes 3816else 3817 GCC= 3818fi 3819ac_test_CFLAGS=${CFLAGS+set} 3820ac_save_CFLAGS=$CFLAGS 3821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3822$as_echo_n "checking whether $CC accepts -g... " >&6; } 3823if test "${ac_cv_prog_cc_g+set}" = set; then : 3824 $as_echo_n "(cached) " >&6 3825else 3826 ac_save_c_werror_flag=$ac_c_werror_flag 3827 ac_c_werror_flag=yes 3828 ac_cv_prog_cc_g=no 3829 CFLAGS="-g" 3830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3831/* end confdefs.h. */ 3832 3833int 3834main () 3835{ 3836 3837 ; 3838 return 0; 3839} 3840_ACEOF 3841if ac_fn_c_try_compile "$LINENO"; then : 3842 ac_cv_prog_cc_g=yes 3843else 3844 CFLAGS="" 3845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3846/* end confdefs.h. */ 3847 3848int 3849main () 3850{ 3851 3852 ; 3853 return 0; 3854} 3855_ACEOF 3856if ac_fn_c_try_compile "$LINENO"; then : 3857 3858else 3859 ac_c_werror_flag=$ac_save_c_werror_flag 3860 CFLAGS="-g" 3861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3862/* end confdefs.h. */ 3863 3864int 3865main () 3866{ 3867 3868 ; 3869 return 0; 3870} 3871_ACEOF 3872if ac_fn_c_try_compile "$LINENO"; then : 3873 ac_cv_prog_cc_g=yes 3874fi 3875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3876fi 3877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3878fi 3879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3880 ac_c_werror_flag=$ac_save_c_werror_flag 3881fi 3882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3883$as_echo "$ac_cv_prog_cc_g" >&6; } 3884if test "$ac_test_CFLAGS" = set; then 3885 CFLAGS=$ac_save_CFLAGS 3886elif test $ac_cv_prog_cc_g = yes; then 3887 if test "$GCC" = yes; then 3888 CFLAGS="-g -O2" 3889 else 3890 CFLAGS="-g" 3891 fi 3892else 3893 if test "$GCC" = yes; then 3894 CFLAGS="-O2" 3895 else 3896 CFLAGS= 3897 fi 3898fi 3899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3900$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3901if test "${ac_cv_prog_cc_c89+set}" = set; then : 3902 $as_echo_n "(cached) " >&6 3903else 3904 ac_cv_prog_cc_c89=no 3905ac_save_CC=$CC 3906cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3907/* end confdefs.h. */ 3908#include <stdarg.h> 3909#include <stdio.h> 3910#include <sys/types.h> 3911#include <sys/stat.h> 3912/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3913struct buf { int x; }; 3914FILE * (*rcsopen) (struct buf *, struct stat *, int); 3915static char *e (p, i) 3916 char **p; 3917 int i; 3918{ 3919 return p[i]; 3920} 3921static char *f (char * (*g) (char **, int), char **p, ...) 3922{ 3923 char *s; 3924 va_list v; 3925 va_start (v,p); 3926 s = g (p, va_arg (v,int)); 3927 va_end (v); 3928 return s; 3929} 3930 3931/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3932 function prototypes and stuff, but not '\xHH' hex character constants. 3933 These don't provoke an error unfortunately, instead are silently treated 3934 as 'x'. The following induces an error, until -std is added to get 3935 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3936 array size at least. It's necessary to write '\x00'==0 to get something 3937 that's true only with -std. */ 3938int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3939 3940/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3941 inside strings and character constants. */ 3942#define FOO(x) 'x' 3943int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3944 3945int test (int i, double x); 3946struct s1 {int (*f) (int a);}; 3947struct s2 {int (*f) (double a);}; 3948int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3949int argc; 3950char **argv; 3951int 3952main () 3953{ 3954return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3955 ; 3956 return 0; 3957} 3958_ACEOF 3959for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3960 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3961do 3962 CC="$ac_save_CC $ac_arg" 3963 if ac_fn_c_try_compile "$LINENO"; then : 3964 ac_cv_prog_cc_c89=$ac_arg 3965fi 3966rm -f core conftest.err conftest.$ac_objext 3967 test "x$ac_cv_prog_cc_c89" != "xno" && break 3968done 3969rm -f conftest.$ac_ext 3970CC=$ac_save_CC 3971 3972fi 3973# AC_CACHE_VAL 3974case "x$ac_cv_prog_cc_c89" in 3975 x) 3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3977$as_echo "none needed" >&6; } ;; 3978 xno) 3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3980$as_echo "unsupported" >&6; } ;; 3981 *) 3982 CC="$CC $ac_cv_prog_cc_c89" 3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3984$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3985esac 3986if test "x$ac_cv_prog_cc_c89" != xno; then : 3987 3988fi 3989 3990ac_ext=c 3991ac_cpp='$CPP $CPPFLAGS' 3992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3994ac_compiler_gnu=$ac_cv_c_compiler_gnu 3995 3996depcc="$CC" am_compiler_list= 3997 3998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3999$as_echo_n "checking dependency style of $depcc... " >&6; } 4000if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 4001 $as_echo_n "(cached) " >&6 4002else 4003 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4004 # We make a subdir and do the tests there. Otherwise we can end up 4005 # making bogus files that we don't know about and never remove. For 4006 # instance it was reported that on HP-UX the gcc test will end up 4007 # making a dummy file named `D' -- because `-MD' means `put the output 4008 # in D'. 4009 mkdir conftest.dir 4010 # Copy depcomp to subdir because otherwise we won't find it if we're 4011 # using a relative directory. 4012 cp "$am_depcomp" conftest.dir 4013 cd conftest.dir 4014 # We will build objects and dependencies in a subdirectory because 4015 # it helps to detect inapplicable dependency modes. For instance 4016 # both Tru64's cc and ICC support -MD to output dependencies as a 4017 # side effect of compilation, but ICC will put the dependencies in 4018 # the current directory while Tru64 will put them in the object 4019 # directory. 4020 mkdir sub 4021 4022 am_cv_CC_dependencies_compiler_type=none 4023 if test "$am_compiler_list" = ""; then 4024 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4025 fi 4026 for depmode in $am_compiler_list; do 4027 # Setup a source with many dependencies, because some compilers 4028 # like to wrap large dependency lists on column 80 (with \), and 4029 # we should not choose a depcomp mode which is confused by this. 4030 # 4031 # We need to recreate these files for each test, as the compiler may 4032 # overwrite some of them when testing with obscure command lines. 4033 # This happens at least with the AIX C compiler. 4034 : > sub/conftest.c 4035 for i in 1 2 3 4 5 6; do 4036 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4037 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4038 # Solaris 8's {/usr,}/bin/sh. 4039 touch sub/conftst$i.h 4040 done 4041 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4042 4043 case $depmode in 4044 nosideeffect) 4045 # after this tag, mechanisms are not by side-effect, so they'll 4046 # only be used when explicitly requested 4047 if test "x$enable_dependency_tracking" = xyes; then 4048 continue 4049 else 4050 break 4051 fi 4052 ;; 4053 none) break ;; 4054 esac 4055 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4056 # mode. It turns out that the SunPro C++ compiler does not properly 4057 # handle `-M -o', and we need to detect this. 4058 if depmode=$depmode \ 4059 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4060 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4061 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4062 >/dev/null 2>conftest.err && 4063 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4064 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4065 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4066 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4067 # icc doesn't choke on unknown options, it will just issue warnings 4068 # or remarks (even with -Werror). So we grep stderr for any message 4069 # that says an option was ignored or not supported. 4070 # When given -MP, icc 7.0 and 7.1 complain thusly: 4071 # icc: Command line warning: ignoring option '-M'; no argument required 4072 # The diagnosis changed in icc 8.0: 4073 # icc: Command line remark: option '-MP' not supported 4074 if (grep 'ignoring option' conftest.err || 4075 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4076 am_cv_CC_dependencies_compiler_type=$depmode 4077 break 4078 fi 4079 fi 4080 done 4081 4082 cd .. 4083 rm -rf conftest.dir 4084else 4085 am_cv_CC_dependencies_compiler_type=none 4086fi 4087 4088fi 4089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4090$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4091CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4092 4093 if 4094 test "x$enable_dependency_tracking" != xno \ 4095 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4096 am__fastdepCC_TRUE= 4097 am__fastdepCC_FALSE='#' 4098else 4099 am__fastdepCC_TRUE='#' 4100 am__fastdepCC_FALSE= 4101fi 4102 4103 4104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4105$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4106if test "${ac_cv_path_SED+set}" = set; then : 4107 $as_echo_n "(cached) " >&6 4108else 4109 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4110 for ac_i in 1 2 3 4 5 6 7; do 4111 ac_script="$ac_script$as_nl$ac_script" 4112 done 4113 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4114 { ac_script=; unset ac_script;} 4115 if test -z "$SED"; then 4116 ac_path_SED_found=false 4117 # Loop through the user's path and test for each of PROGNAME-LIST 4118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4119for as_dir in $PATH 4120do 4121 IFS=$as_save_IFS 4122 test -z "$as_dir" && as_dir=. 4123 for ac_prog in sed gsed; do 4124 for ac_exec_ext in '' $ac_executable_extensions; do 4125 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4126 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4127# Check for GNU ac_path_SED and select it if it is found. 4128 # Check for GNU $ac_path_SED 4129case `"$ac_path_SED" --version 2>&1` in 4130*GNU*) 4131 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4132*) 4133 ac_count=0 4134 $as_echo_n 0123456789 >"conftest.in" 4135 while : 4136 do 4137 cat "conftest.in" "conftest.in" >"conftest.tmp" 4138 mv "conftest.tmp" "conftest.in" 4139 cp "conftest.in" "conftest.nl" 4140 $as_echo '' >> "conftest.nl" 4141 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4142 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4143 as_fn_arith $ac_count + 1 && ac_count=$as_val 4144 if test $ac_count -gt ${ac_path_SED_max-0}; then 4145 # Best one so far, save it but keep looking for a better one 4146 ac_cv_path_SED="$ac_path_SED" 4147 ac_path_SED_max=$ac_count 4148 fi 4149 # 10*(2^10) chars as input seems more than enough 4150 test $ac_count -gt 10 && break 4151 done 4152 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4153esac 4154 4155 $ac_path_SED_found && break 3 4156 done 4157 done 4158 done 4159IFS=$as_save_IFS 4160 if test -z "$ac_cv_path_SED"; then 4161 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4162 fi 4163else 4164 ac_cv_path_SED=$SED 4165fi 4166 4167fi 4168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4169$as_echo "$ac_cv_path_SED" >&6; } 4170 SED="$ac_cv_path_SED" 4171 rm -f conftest.sed 4172 4173test -z "$SED" && SED=sed 4174Xsed="$SED -e 1s/^X//" 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4187$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4188if test "${ac_cv_path_GREP+set}" = set; then : 4189 $as_echo_n "(cached) " >&6 4190else 4191 if test -z "$GREP"; then 4192 ac_path_GREP_found=false 4193 # Loop through the user's path and test for each of PROGNAME-LIST 4194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4195for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4196do 4197 IFS=$as_save_IFS 4198 test -z "$as_dir" && as_dir=. 4199 for ac_prog in grep ggrep; do 4200 for ac_exec_ext in '' $ac_executable_extensions; do 4201 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4202 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4203# Check for GNU ac_path_GREP and select it if it is found. 4204 # Check for GNU $ac_path_GREP 4205case `"$ac_path_GREP" --version 2>&1` in 4206*GNU*) 4207 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4208*) 4209 ac_count=0 4210 $as_echo_n 0123456789 >"conftest.in" 4211 while : 4212 do 4213 cat "conftest.in" "conftest.in" >"conftest.tmp" 4214 mv "conftest.tmp" "conftest.in" 4215 cp "conftest.in" "conftest.nl" 4216 $as_echo 'GREP' >> "conftest.nl" 4217 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4218 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4219 as_fn_arith $ac_count + 1 && ac_count=$as_val 4220 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4221 # Best one so far, save it but keep looking for a better one 4222 ac_cv_path_GREP="$ac_path_GREP" 4223 ac_path_GREP_max=$ac_count 4224 fi 4225 # 10*(2^10) chars as input seems more than enough 4226 test $ac_count -gt 10 && break 4227 done 4228 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4229esac 4230 4231 $ac_path_GREP_found && break 3 4232 done 4233 done 4234 done 4235IFS=$as_save_IFS 4236 if test -z "$ac_cv_path_GREP"; then 4237 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4238 fi 4239else 4240 ac_cv_path_GREP=$GREP 4241fi 4242 4243fi 4244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4245$as_echo "$ac_cv_path_GREP" >&6; } 4246 GREP="$ac_cv_path_GREP" 4247 4248 4249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4250$as_echo_n "checking for egrep... " >&6; } 4251if test "${ac_cv_path_EGREP+set}" = set; then : 4252 $as_echo_n "(cached) " >&6 4253else 4254 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4255 then ac_cv_path_EGREP="$GREP -E" 4256 else 4257 if test -z "$EGREP"; then 4258 ac_path_EGREP_found=false 4259 # Loop through the user's path and test for each of PROGNAME-LIST 4260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4261for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4262do 4263 IFS=$as_save_IFS 4264 test -z "$as_dir" && as_dir=. 4265 for ac_prog in egrep; do 4266 for ac_exec_ext in '' $ac_executable_extensions; do 4267 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4268 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4269# Check for GNU ac_path_EGREP and select it if it is found. 4270 # Check for GNU $ac_path_EGREP 4271case `"$ac_path_EGREP" --version 2>&1` in 4272*GNU*) 4273 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4274*) 4275 ac_count=0 4276 $as_echo_n 0123456789 >"conftest.in" 4277 while : 4278 do 4279 cat "conftest.in" "conftest.in" >"conftest.tmp" 4280 mv "conftest.tmp" "conftest.in" 4281 cp "conftest.in" "conftest.nl" 4282 $as_echo 'EGREP' >> "conftest.nl" 4283 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4284 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4285 as_fn_arith $ac_count + 1 && ac_count=$as_val 4286 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4287 # Best one so far, save it but keep looking for a better one 4288 ac_cv_path_EGREP="$ac_path_EGREP" 4289 ac_path_EGREP_max=$ac_count 4290 fi 4291 # 10*(2^10) chars as input seems more than enough 4292 test $ac_count -gt 10 && break 4293 done 4294 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4295esac 4296 4297 $ac_path_EGREP_found && break 3 4298 done 4299 done 4300 done 4301IFS=$as_save_IFS 4302 if test -z "$ac_cv_path_EGREP"; then 4303 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4304 fi 4305else 4306 ac_cv_path_EGREP=$EGREP 4307fi 4308 4309 fi 4310fi 4311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4312$as_echo "$ac_cv_path_EGREP" >&6; } 4313 EGREP="$ac_cv_path_EGREP" 4314 4315 4316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4317$as_echo_n "checking for fgrep... " >&6; } 4318if test "${ac_cv_path_FGREP+set}" = set; then : 4319 $as_echo_n "(cached) " >&6 4320else 4321 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4322 then ac_cv_path_FGREP="$GREP -F" 4323 else 4324 if test -z "$FGREP"; then 4325 ac_path_FGREP_found=false 4326 # Loop through the user's path and test for each of PROGNAME-LIST 4327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4328for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4329do 4330 IFS=$as_save_IFS 4331 test -z "$as_dir" && as_dir=. 4332 for ac_prog in fgrep; do 4333 for ac_exec_ext in '' $ac_executable_extensions; do 4334 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4335 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4336# Check for GNU ac_path_FGREP and select it if it is found. 4337 # Check for GNU $ac_path_FGREP 4338case `"$ac_path_FGREP" --version 2>&1` in 4339*GNU*) 4340 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4341*) 4342 ac_count=0 4343 $as_echo_n 0123456789 >"conftest.in" 4344 while : 4345 do 4346 cat "conftest.in" "conftest.in" >"conftest.tmp" 4347 mv "conftest.tmp" "conftest.in" 4348 cp "conftest.in" "conftest.nl" 4349 $as_echo 'FGREP' >> "conftest.nl" 4350 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4351 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4352 as_fn_arith $ac_count + 1 && ac_count=$as_val 4353 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4354 # Best one so far, save it but keep looking for a better one 4355 ac_cv_path_FGREP="$ac_path_FGREP" 4356 ac_path_FGREP_max=$ac_count 4357 fi 4358 # 10*(2^10) chars as input seems more than enough 4359 test $ac_count -gt 10 && break 4360 done 4361 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4362esac 4363 4364 $ac_path_FGREP_found && break 3 4365 done 4366 done 4367 done 4368IFS=$as_save_IFS 4369 if test -z "$ac_cv_path_FGREP"; then 4370 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4371 fi 4372else 4373 ac_cv_path_FGREP=$FGREP 4374fi 4375 4376 fi 4377fi 4378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4379$as_echo "$ac_cv_path_FGREP" >&6; } 4380 FGREP="$ac_cv_path_FGREP" 4381 4382 4383test -z "$GREP" && GREP=grep 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403# Check whether --with-gnu-ld was given. 4404if test "${with_gnu_ld+set}" = set; then : 4405 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4406else 4407 with_gnu_ld=no 4408fi 4409 4410ac_prog=ld 4411if test "$GCC" = yes; then 4412 # Check if gcc -print-prog-name=ld gives a path. 4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4414$as_echo_n "checking for ld used by $CC... " >&6; } 4415 case $host in 4416 *-*-mingw*) 4417 # gcc leaves a trailing carriage return which upsets mingw 4418 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4419 *) 4420 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4421 esac 4422 case $ac_prog in 4423 # Accept absolute paths. 4424 [\\/]* | ?:[\\/]*) 4425 re_direlt='/[^/][^/]*/\.\./' 4426 # Canonicalize the pathname of ld 4427 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4428 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4429 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4430 done 4431 test -z "$LD" && LD="$ac_prog" 4432 ;; 4433 "") 4434 # If it fails, then pretend we aren't using GCC. 4435 ac_prog=ld 4436 ;; 4437 *) 4438 # If it is relative, then search for the first ld in PATH. 4439 with_gnu_ld=unknown 4440 ;; 4441 esac 4442elif test "$with_gnu_ld" = yes; then 4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4444$as_echo_n "checking for GNU ld... " >&6; } 4445else 4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4447$as_echo_n "checking for non-GNU ld... " >&6; } 4448fi 4449if test "${lt_cv_path_LD+set}" = set; then : 4450 $as_echo_n "(cached) " >&6 4451else 4452 if test -z "$LD"; then 4453 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4454 for ac_dir in $PATH; do 4455 IFS="$lt_save_ifs" 4456 test -z "$ac_dir" && ac_dir=. 4457 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4458 lt_cv_path_LD="$ac_dir/$ac_prog" 4459 # Check to see if the program is GNU ld. I'd rather use --version, 4460 # but apparently some variants of GNU ld only accept -v. 4461 # Break only if it was the GNU/non-GNU ld that we prefer. 4462 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4463 *GNU* | *'with BFD'*) 4464 test "$with_gnu_ld" != no && break 4465 ;; 4466 *) 4467 test "$with_gnu_ld" != yes && break 4468 ;; 4469 esac 4470 fi 4471 done 4472 IFS="$lt_save_ifs" 4473else 4474 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4475fi 4476fi 4477 4478LD="$lt_cv_path_LD" 4479if test -n "$LD"; then 4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4481$as_echo "$LD" >&6; } 4482else 4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4484$as_echo "no" >&6; } 4485fi 4486test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4488$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4489if test "${lt_cv_prog_gnu_ld+set}" = set; then : 4490 $as_echo_n "(cached) " >&6 4491else 4492 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4493case `$LD -v 2>&1 </dev/null` in 4494*GNU* | *'with BFD'*) 4495 lt_cv_prog_gnu_ld=yes 4496 ;; 4497*) 4498 lt_cv_prog_gnu_ld=no 4499 ;; 4500esac 4501fi 4502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4503$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4504with_gnu_ld=$lt_cv_prog_gnu_ld 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4515$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4516if test "${lt_cv_path_NM+set}" = set; then : 4517 $as_echo_n "(cached) " >&6 4518else 4519 if test -n "$NM"; then 4520 # Let the user override the test. 4521 lt_cv_path_NM="$NM" 4522else 4523 lt_nm_to_check="${ac_tool_prefix}nm" 4524 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4525 lt_nm_to_check="$lt_nm_to_check nm" 4526 fi 4527 for lt_tmp_nm in $lt_nm_to_check; do 4528 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4529 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4530 IFS="$lt_save_ifs" 4531 test -z "$ac_dir" && ac_dir=. 4532 tmp_nm="$ac_dir/$lt_tmp_nm" 4533 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4534 # Check to see if the nm accepts a BSD-compat flag. 4535 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4536 # nm: unknown option "B" ignored 4537 # Tru64's nm complains that /dev/null is an invalid object file 4538 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4539 */dev/null* | *'Invalid file or object type'*) 4540 lt_cv_path_NM="$tmp_nm -B" 4541 break 4542 ;; 4543 *) 4544 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4545 */dev/null*) 4546 lt_cv_path_NM="$tmp_nm -p" 4547 break 4548 ;; 4549 *) 4550 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4551 continue # so that we can try to find one that supports BSD flags 4552 ;; 4553 esac 4554 ;; 4555 esac 4556 fi 4557 done 4558 IFS="$lt_save_ifs" 4559 done 4560 : ${lt_cv_path_NM=no} 4561fi 4562fi 4563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4564$as_echo "$lt_cv_path_NM" >&6; } 4565if test "$lt_cv_path_NM" != "no"; then 4566 NM="$lt_cv_path_NM" 4567else 4568 # Didn't find any BSD compatible name lister, look for dumpbin. 4569 if test -n "$ac_tool_prefix"; then 4570 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4571 do 4572 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4573set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4575$as_echo_n "checking for $ac_word... " >&6; } 4576if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 4577 $as_echo_n "(cached) " >&6 4578else 4579 if test -n "$DUMPBIN"; then 4580 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4581else 4582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4583for as_dir in $PATH 4584do 4585 IFS=$as_save_IFS 4586 test -z "$as_dir" && as_dir=. 4587 for ac_exec_ext in '' $ac_executable_extensions; do 4588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4589 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4591 break 2 4592 fi 4593done 4594 done 4595IFS=$as_save_IFS 4596 4597fi 4598fi 4599DUMPBIN=$ac_cv_prog_DUMPBIN 4600if test -n "$DUMPBIN"; then 4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4602$as_echo "$DUMPBIN" >&6; } 4603else 4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4605$as_echo "no" >&6; } 4606fi 4607 4608 4609 test -n "$DUMPBIN" && break 4610 done 4611fi 4612if test -z "$DUMPBIN"; then 4613 ac_ct_DUMPBIN=$DUMPBIN 4614 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4615do 4616 # Extract the first word of "$ac_prog", so it can be a program name with args. 4617set dummy $ac_prog; ac_word=$2 4618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4619$as_echo_n "checking for $ac_word... " >&6; } 4620if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 4621 $as_echo_n "(cached) " >&6 4622else 4623 if test -n "$ac_ct_DUMPBIN"; then 4624 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4625else 4626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4627for as_dir in $PATH 4628do 4629 IFS=$as_save_IFS 4630 test -z "$as_dir" && as_dir=. 4631 for ac_exec_ext in '' $ac_executable_extensions; do 4632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4633 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4635 break 2 4636 fi 4637done 4638 done 4639IFS=$as_save_IFS 4640 4641fi 4642fi 4643ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4644if test -n "$ac_ct_DUMPBIN"; then 4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4646$as_echo "$ac_ct_DUMPBIN" >&6; } 4647else 4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4649$as_echo "no" >&6; } 4650fi 4651 4652 4653 test -n "$ac_ct_DUMPBIN" && break 4654done 4655 4656 if test "x$ac_ct_DUMPBIN" = x; then 4657 DUMPBIN=":" 4658 else 4659 case $cross_compiling:$ac_tool_warned in 4660yes:) 4661{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4662$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4663ac_tool_warned=yes ;; 4664esac 4665 DUMPBIN=$ac_ct_DUMPBIN 4666 fi 4667fi 4668 4669 4670 if test "$DUMPBIN" != ":"; then 4671 NM="$DUMPBIN" 4672 fi 4673fi 4674test -z "$NM" && NM=nm 4675 4676 4677 4678 4679 4680 4681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4682$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4683if test "${lt_cv_nm_interface+set}" = set; then : 4684 $as_echo_n "(cached) " >&6 4685else 4686 lt_cv_nm_interface="BSD nm" 4687 echo "int some_variable = 0;" > conftest.$ac_ext 4688 (eval echo "\"\$as_me:4688: $ac_compile\"" >&5) 4689 (eval "$ac_compile" 2>conftest.err) 4690 cat conftest.err >&5 4691 (eval echo "\"\$as_me:4691: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4692 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4693 cat conftest.err >&5 4694 (eval echo "\"\$as_me:4694: output\"" >&5) 4695 cat conftest.out >&5 4696 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4697 lt_cv_nm_interface="MS dumpbin" 4698 fi 4699 rm -f conftest* 4700fi 4701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4702$as_echo "$lt_cv_nm_interface" >&6; } 4703 4704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4705$as_echo_n "checking whether ln -s works... " >&6; } 4706LN_S=$as_ln_s 4707if test "$LN_S" = "ln -s"; then 4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4709$as_echo "yes" >&6; } 4710else 4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4712$as_echo "no, using $LN_S" >&6; } 4713fi 4714 4715# find the maximum length of command line arguments 4716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4717$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4718if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 4719 $as_echo_n "(cached) " >&6 4720else 4721 i=0 4722 teststring="ABCD" 4723 4724 case $build_os in 4725 msdosdjgpp*) 4726 # On DJGPP, this test can blow up pretty badly due to problems in libc 4727 # (any single argument exceeding 2000 bytes causes a buffer overrun 4728 # during glob expansion). Even if it were fixed, the result of this 4729 # check would be larger than it should be. 4730 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4731 ;; 4732 4733 gnu*) 4734 # Under GNU Hurd, this test is not required because there is 4735 # no limit to the length of command line arguments. 4736 # Libtool will interpret -1 as no limit whatsoever 4737 lt_cv_sys_max_cmd_len=-1; 4738 ;; 4739 4740 cygwin* | mingw* | cegcc*) 4741 # On Win9x/ME, this test blows up -- it succeeds, but takes 4742 # about 5 minutes as the teststring grows exponentially. 4743 # Worse, since 9x/ME are not pre-emptively multitasking, 4744 # you end up with a "frozen" computer, even though with patience 4745 # the test eventually succeeds (with a max line length of 256k). 4746 # Instead, let's just punt: use the minimum linelength reported by 4747 # all of the supported platforms: 8192 (on NT/2K/XP). 4748 lt_cv_sys_max_cmd_len=8192; 4749 ;; 4750 4751 amigaos*) 4752 # On AmigaOS with pdksh, this test takes hours, literally. 4753 # So we just punt and use a minimum line length of 8192. 4754 lt_cv_sys_max_cmd_len=8192; 4755 ;; 4756 4757 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4758 # This has been around since 386BSD, at least. Likely further. 4759 if test -x /sbin/sysctl; then 4760 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4761 elif test -x /usr/sbin/sysctl; then 4762 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4763 else 4764 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4765 fi 4766 # And add a safety zone 4767 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4768 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4769 ;; 4770 4771 interix*) 4772 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4773 lt_cv_sys_max_cmd_len=196608 4774 ;; 4775 4776 osf*) 4777 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4778 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4779 # nice to cause kernel panics so lets avoid the loop below. 4780 # First set a reasonable default. 4781 lt_cv_sys_max_cmd_len=16384 4782 # 4783 if test -x /sbin/sysconfig; then 4784 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4785 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4786 esac 4787 fi 4788 ;; 4789 sco3.2v5*) 4790 lt_cv_sys_max_cmd_len=102400 4791 ;; 4792 sysv5* | sco5v6* | sysv4.2uw2*) 4793 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4794 if test -n "$kargmax"; then 4795 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4796 else 4797 lt_cv_sys_max_cmd_len=32768 4798 fi 4799 ;; 4800 *) 4801 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4802 if test -n "$lt_cv_sys_max_cmd_len"; then 4803 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4804 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4805 else 4806 # Make teststring a little bigger before we do anything with it. 4807 # a 1K string should be a reasonable start. 4808 for i in 1 2 3 4 5 6 7 8 ; do 4809 teststring=$teststring$teststring 4810 done 4811 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4812 # If test is not a shell built-in, we'll probably end up computing a 4813 # maximum length that is only half of the actual maximum length, but 4814 # we can't tell. 4815 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 4816 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 4817 test $i != 17 # 1/2 MB should be enough 4818 do 4819 i=`expr $i + 1` 4820 teststring=$teststring$teststring 4821 done 4822 # Only check the string length outside the loop. 4823 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4824 teststring= 4825 # Add a significant safety factor because C++ compilers can tack on 4826 # massive amounts of additional arguments before passing them to the 4827 # linker. It appears as though 1/2 is a usable value. 4828 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4829 fi 4830 ;; 4831 esac 4832 4833fi 4834 4835if test -n $lt_cv_sys_max_cmd_len ; then 4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4837$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4838else 4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4840$as_echo "none" >&6; } 4841fi 4842max_cmd_len=$lt_cv_sys_max_cmd_len 4843 4844 4845 4846 4847 4848 4849: ${CP="cp -f"} 4850: ${MV="mv -f"} 4851: ${RM="rm -f"} 4852 4853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4854$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4855# Try some XSI features 4856xsi_shell=no 4857( _lt_dummy="a/b/c" 4858 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 4859 = c,a/b,, \ 4860 && eval 'test $(( 1 + 1 )) -eq 2 \ 4861 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4862 && xsi_shell=yes 4863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4864$as_echo "$xsi_shell" >&6; } 4865 4866 4867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4868$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4869lt_shell_append=no 4870( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4871 >/dev/null 2>&1 \ 4872 && lt_shell_append=yes 4873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4874$as_echo "$lt_shell_append" >&6; } 4875 4876 4877if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4878 lt_unset=unset 4879else 4880 lt_unset=false 4881fi 4882 4883 4884 4885 4886 4887# test EBCDIC or ASCII 4888case `echo X|tr X '\101'` in 4889 A) # ASCII based system 4890 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4891 lt_SP2NL='tr \040 \012' 4892 lt_NL2SP='tr \015\012 \040\040' 4893 ;; 4894 *) # EBCDIC based system 4895 lt_SP2NL='tr \100 \n' 4896 lt_NL2SP='tr \r\n \100\100' 4897 ;; 4898esac 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4909$as_echo_n "checking for $LD option to reload object files... " >&6; } 4910if test "${lt_cv_ld_reload_flag+set}" = set; then : 4911 $as_echo_n "(cached) " >&6 4912else 4913 lt_cv_ld_reload_flag='-r' 4914fi 4915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4916$as_echo "$lt_cv_ld_reload_flag" >&6; } 4917reload_flag=$lt_cv_ld_reload_flag 4918case $reload_flag in 4919"" | " "*) ;; 4920*) reload_flag=" $reload_flag" ;; 4921esac 4922reload_cmds='$LD$reload_flag -o $output$reload_objs' 4923case $host_os in 4924 darwin*) 4925 if test "$GCC" = yes; then 4926 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4927 else 4928 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4929 fi 4930 ;; 4931esac 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941if test -n "$ac_tool_prefix"; then 4942 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4943set dummy ${ac_tool_prefix}objdump; ac_word=$2 4944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4945$as_echo_n "checking for $ac_word... " >&6; } 4946if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 4947 $as_echo_n "(cached) " >&6 4948else 4949 if test -n "$OBJDUMP"; then 4950 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4951else 4952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4953for as_dir in $PATH 4954do 4955 IFS=$as_save_IFS 4956 test -z "$as_dir" && as_dir=. 4957 for ac_exec_ext in '' $ac_executable_extensions; do 4958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4959 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4961 break 2 4962 fi 4963done 4964 done 4965IFS=$as_save_IFS 4966 4967fi 4968fi 4969OBJDUMP=$ac_cv_prog_OBJDUMP 4970if test -n "$OBJDUMP"; then 4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4972$as_echo "$OBJDUMP" >&6; } 4973else 4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4975$as_echo "no" >&6; } 4976fi 4977 4978 4979fi 4980if test -z "$ac_cv_prog_OBJDUMP"; then 4981 ac_ct_OBJDUMP=$OBJDUMP 4982 # Extract the first word of "objdump", so it can be a program name with args. 4983set dummy objdump; ac_word=$2 4984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4985$as_echo_n "checking for $ac_word... " >&6; } 4986if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 4987 $as_echo_n "(cached) " >&6 4988else 4989 if test -n "$ac_ct_OBJDUMP"; then 4990 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4991else 4992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4993for as_dir in $PATH 4994do 4995 IFS=$as_save_IFS 4996 test -z "$as_dir" && as_dir=. 4997 for ac_exec_ext in '' $ac_executable_extensions; do 4998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4999 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5001 break 2 5002 fi 5003done 5004 done 5005IFS=$as_save_IFS 5006 5007fi 5008fi 5009ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5010if test -n "$ac_ct_OBJDUMP"; then 5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5012$as_echo "$ac_ct_OBJDUMP" >&6; } 5013else 5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5015$as_echo "no" >&6; } 5016fi 5017 5018 if test "x$ac_ct_OBJDUMP" = x; then 5019 OBJDUMP="false" 5020 else 5021 case $cross_compiling:$ac_tool_warned in 5022yes:) 5023{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5024$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5025ac_tool_warned=yes ;; 5026esac 5027 OBJDUMP=$ac_ct_OBJDUMP 5028 fi 5029else 5030 OBJDUMP="$ac_cv_prog_OBJDUMP" 5031fi 5032 5033test -z "$OBJDUMP" && OBJDUMP=objdump 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5044$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5045if test "${lt_cv_deplibs_check_method+set}" = set; then : 5046 $as_echo_n "(cached) " >&6 5047else 5048 lt_cv_file_magic_cmd='$MAGIC_CMD' 5049lt_cv_file_magic_test_file= 5050lt_cv_deplibs_check_method='unknown' 5051# Need to set the preceding variable on all platforms that support 5052# interlibrary dependencies. 5053# 'none' -- dependencies not supported. 5054# `unknown' -- same as none, but documents that we really don't know. 5055# 'pass_all' -- all dependencies passed with no checks. 5056# 'test_compile' -- check by making test program. 5057# 'file_magic [[regex]]' -- check by looking for files in library path 5058# which responds to the $file_magic_cmd with a given extended regex. 5059# If you have `file' or equivalent on your system and you're not sure 5060# whether `pass_all' will *always* work, you probably want this one. 5061 5062case $host_os in 5063aix[4-9]*) 5064 lt_cv_deplibs_check_method=pass_all 5065 ;; 5066 5067beos*) 5068 lt_cv_deplibs_check_method=pass_all 5069 ;; 5070 5071bsdi[45]*) 5072 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5073 lt_cv_file_magic_cmd='/usr/bin/file -L' 5074 lt_cv_file_magic_test_file=/shlib/libc.so 5075 ;; 5076 5077cygwin*) 5078 # func_win32_libid is a shell function defined in ltmain.sh 5079 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5080 lt_cv_file_magic_cmd='func_win32_libid' 5081 ;; 5082 5083mingw* | pw32*) 5084 # Base MSYS/MinGW do not provide the 'file' command needed by 5085 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5086 # unless we find 'file', for example because we are cross-compiling. 5087 if ( file / ) >/dev/null 2>&1; then 5088 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5089 lt_cv_file_magic_cmd='func_win32_libid' 5090 else 5091 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5092 lt_cv_file_magic_cmd='$OBJDUMP -f' 5093 fi 5094 ;; 5095 5096cegcc) 5097 # use the weaker test based on 'objdump'. See mingw*. 5098 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5099 lt_cv_file_magic_cmd='$OBJDUMP -f' 5100 ;; 5101 5102darwin* | rhapsody*) 5103 lt_cv_deplibs_check_method=pass_all 5104 ;; 5105 5106freebsd* | dragonfly*) 5107 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5108 case $host_cpu in 5109 i*86 ) 5110 # Not sure whether the presence of OpenBSD here was a mistake. 5111 # Let's accept both of them until this is cleared up. 5112 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5113 lt_cv_file_magic_cmd=/usr/bin/file 5114 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5115 ;; 5116 esac 5117 else 5118 lt_cv_deplibs_check_method=pass_all 5119 fi 5120 ;; 5121 5122gnu*) 5123 lt_cv_deplibs_check_method=pass_all 5124 ;; 5125 5126hpux10.20* | hpux11*) 5127 lt_cv_file_magic_cmd=/usr/bin/file 5128 case $host_cpu in 5129 ia64*) 5130 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5131 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5132 ;; 5133 hppa*64*) 5134 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]' 5135 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5136 ;; 5137 *) 5138 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 5139 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5140 ;; 5141 esac 5142 ;; 5143 5144interix[3-9]*) 5145 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5146 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5147 ;; 5148 5149irix5* | irix6* | nonstopux*) 5150 case $LD in 5151 *-32|*"-32 ") libmagic=32-bit;; 5152 *-n32|*"-n32 ") libmagic=N32;; 5153 *-64|*"-64 ") libmagic=64-bit;; 5154 *) libmagic=never-match;; 5155 esac 5156 lt_cv_deplibs_check_method=pass_all 5157 ;; 5158 5159# This must be Linux ELF. 5160linux* | k*bsd*-gnu) 5161 lt_cv_deplibs_check_method=pass_all 5162 ;; 5163 5164netbsd*) 5165 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5166 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5167 else 5168 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5169 fi 5170 ;; 5171 5172newos6*) 5173 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5174 lt_cv_file_magic_cmd=/usr/bin/file 5175 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5176 ;; 5177 5178*nto* | *qnx*) 5179 lt_cv_deplibs_check_method=pass_all 5180 ;; 5181 5182openbsd*) 5183 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5184 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5185 else 5186 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5187 fi 5188 ;; 5189 5190osf3* | osf4* | osf5*) 5191 lt_cv_deplibs_check_method=pass_all 5192 ;; 5193 5194rdos*) 5195 lt_cv_deplibs_check_method=pass_all 5196 ;; 5197 5198solaris*) 5199 lt_cv_deplibs_check_method=pass_all 5200 ;; 5201 5202sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5203 lt_cv_deplibs_check_method=pass_all 5204 ;; 5205 5206sysv4 | sysv4.3*) 5207 case $host_vendor in 5208 motorola) 5209 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]' 5210 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5211 ;; 5212 ncr) 5213 lt_cv_deplibs_check_method=pass_all 5214 ;; 5215 sequent) 5216 lt_cv_file_magic_cmd='/bin/file' 5217 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5218 ;; 5219 sni) 5220 lt_cv_file_magic_cmd='/bin/file' 5221 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5222 lt_cv_file_magic_test_file=/lib/libc.so 5223 ;; 5224 siemens) 5225 lt_cv_deplibs_check_method=pass_all 5226 ;; 5227 pc) 5228 lt_cv_deplibs_check_method=pass_all 5229 ;; 5230 esac 5231 ;; 5232 5233tpf*) 5234 lt_cv_deplibs_check_method=pass_all 5235 ;; 5236esac 5237 5238fi 5239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5240$as_echo "$lt_cv_deplibs_check_method" >&6; } 5241file_magic_cmd=$lt_cv_file_magic_cmd 5242deplibs_check_method=$lt_cv_deplibs_check_method 5243test -z "$deplibs_check_method" && deplibs_check_method=unknown 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256if test -n "$ac_tool_prefix"; then 5257 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5258set dummy ${ac_tool_prefix}ar; ac_word=$2 5259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5260$as_echo_n "checking for $ac_word... " >&6; } 5261if test "${ac_cv_prog_AR+set}" = set; then : 5262 $as_echo_n "(cached) " >&6 5263else 5264 if test -n "$AR"; then 5265 ac_cv_prog_AR="$AR" # Let the user override the test. 5266else 5267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5268for as_dir in $PATH 5269do 5270 IFS=$as_save_IFS 5271 test -z "$as_dir" && as_dir=. 5272 for ac_exec_ext in '' $ac_executable_extensions; do 5273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5274 ac_cv_prog_AR="${ac_tool_prefix}ar" 5275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5276 break 2 5277 fi 5278done 5279 done 5280IFS=$as_save_IFS 5281 5282fi 5283fi 5284AR=$ac_cv_prog_AR 5285if test -n "$AR"; then 5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5287$as_echo "$AR" >&6; } 5288else 5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5290$as_echo "no" >&6; } 5291fi 5292 5293 5294fi 5295if test -z "$ac_cv_prog_AR"; then 5296 ac_ct_AR=$AR 5297 # Extract the first word of "ar", so it can be a program name with args. 5298set dummy ar; ac_word=$2 5299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5300$as_echo_n "checking for $ac_word... " >&6; } 5301if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 5302 $as_echo_n "(cached) " >&6 5303else 5304 if test -n "$ac_ct_AR"; then 5305 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5306else 5307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5308for as_dir in $PATH 5309do 5310 IFS=$as_save_IFS 5311 test -z "$as_dir" && as_dir=. 5312 for ac_exec_ext in '' $ac_executable_extensions; do 5313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5314 ac_cv_prog_ac_ct_AR="ar" 5315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5316 break 2 5317 fi 5318done 5319 done 5320IFS=$as_save_IFS 5321 5322fi 5323fi 5324ac_ct_AR=$ac_cv_prog_ac_ct_AR 5325if test -n "$ac_ct_AR"; then 5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5327$as_echo "$ac_ct_AR" >&6; } 5328else 5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5330$as_echo "no" >&6; } 5331fi 5332 5333 if test "x$ac_ct_AR" = x; then 5334 AR="false" 5335 else 5336 case $cross_compiling:$ac_tool_warned in 5337yes:) 5338{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5339$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5340ac_tool_warned=yes ;; 5341esac 5342 AR=$ac_ct_AR 5343 fi 5344else 5345 AR="$ac_cv_prog_AR" 5346fi 5347 5348test -z "$AR" && AR=ar 5349test -z "$AR_FLAGS" && AR_FLAGS=cru 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361if test -n "$ac_tool_prefix"; then 5362 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5363set dummy ${ac_tool_prefix}strip; ac_word=$2 5364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5365$as_echo_n "checking for $ac_word... " >&6; } 5366if test "${ac_cv_prog_STRIP+set}" = set; then : 5367 $as_echo_n "(cached) " >&6 5368else 5369 if test -n "$STRIP"; then 5370 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5371else 5372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5373for as_dir in $PATH 5374do 5375 IFS=$as_save_IFS 5376 test -z "$as_dir" && as_dir=. 5377 for ac_exec_ext in '' $ac_executable_extensions; do 5378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5379 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5381 break 2 5382 fi 5383done 5384 done 5385IFS=$as_save_IFS 5386 5387fi 5388fi 5389STRIP=$ac_cv_prog_STRIP 5390if test -n "$STRIP"; then 5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5392$as_echo "$STRIP" >&6; } 5393else 5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5395$as_echo "no" >&6; } 5396fi 5397 5398 5399fi 5400if test -z "$ac_cv_prog_STRIP"; then 5401 ac_ct_STRIP=$STRIP 5402 # Extract the first word of "strip", so it can be a program name with args. 5403set dummy strip; ac_word=$2 5404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5405$as_echo_n "checking for $ac_word... " >&6; } 5406if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 5407 $as_echo_n "(cached) " >&6 5408else 5409 if test -n "$ac_ct_STRIP"; then 5410 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5411else 5412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5413for as_dir in $PATH 5414do 5415 IFS=$as_save_IFS 5416 test -z "$as_dir" && as_dir=. 5417 for ac_exec_ext in '' $ac_executable_extensions; do 5418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5419 ac_cv_prog_ac_ct_STRIP="strip" 5420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5421 break 2 5422 fi 5423done 5424 done 5425IFS=$as_save_IFS 5426 5427fi 5428fi 5429ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5430if test -n "$ac_ct_STRIP"; then 5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5432$as_echo "$ac_ct_STRIP" >&6; } 5433else 5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5435$as_echo "no" >&6; } 5436fi 5437 5438 if test "x$ac_ct_STRIP" = x; then 5439 STRIP=":" 5440 else 5441 case $cross_compiling:$ac_tool_warned in 5442yes:) 5443{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5444$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5445ac_tool_warned=yes ;; 5446esac 5447 STRIP=$ac_ct_STRIP 5448 fi 5449else 5450 STRIP="$ac_cv_prog_STRIP" 5451fi 5452 5453test -z "$STRIP" && STRIP=: 5454 5455 5456 5457 5458 5459 5460if test -n "$ac_tool_prefix"; then 5461 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5462set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5464$as_echo_n "checking for $ac_word... " >&6; } 5465if test "${ac_cv_prog_RANLIB+set}" = set; then : 5466 $as_echo_n "(cached) " >&6 5467else 5468 if test -n "$RANLIB"; then 5469 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5470else 5471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5472for as_dir in $PATH 5473do 5474 IFS=$as_save_IFS 5475 test -z "$as_dir" && as_dir=. 5476 for ac_exec_ext in '' $ac_executable_extensions; do 5477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5478 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5480 break 2 5481 fi 5482done 5483 done 5484IFS=$as_save_IFS 5485 5486fi 5487fi 5488RANLIB=$ac_cv_prog_RANLIB 5489if test -n "$RANLIB"; then 5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5491$as_echo "$RANLIB" >&6; } 5492else 5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5494$as_echo "no" >&6; } 5495fi 5496 5497 5498fi 5499if test -z "$ac_cv_prog_RANLIB"; then 5500 ac_ct_RANLIB=$RANLIB 5501 # Extract the first word of "ranlib", so it can be a program name with args. 5502set dummy ranlib; ac_word=$2 5503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5504$as_echo_n "checking for $ac_word... " >&6; } 5505if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 5506 $as_echo_n "(cached) " >&6 5507else 5508 if test -n "$ac_ct_RANLIB"; then 5509 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5510else 5511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5512for as_dir in $PATH 5513do 5514 IFS=$as_save_IFS 5515 test -z "$as_dir" && as_dir=. 5516 for ac_exec_ext in '' $ac_executable_extensions; do 5517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5518 ac_cv_prog_ac_ct_RANLIB="ranlib" 5519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5520 break 2 5521 fi 5522done 5523 done 5524IFS=$as_save_IFS 5525 5526fi 5527fi 5528ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5529if test -n "$ac_ct_RANLIB"; then 5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5531$as_echo "$ac_ct_RANLIB" >&6; } 5532else 5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5534$as_echo "no" >&6; } 5535fi 5536 5537 if test "x$ac_ct_RANLIB" = x; then 5538 RANLIB=":" 5539 else 5540 case $cross_compiling:$ac_tool_warned in 5541yes:) 5542{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5543$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5544ac_tool_warned=yes ;; 5545esac 5546 RANLIB=$ac_ct_RANLIB 5547 fi 5548else 5549 RANLIB="$ac_cv_prog_RANLIB" 5550fi 5551 5552test -z "$RANLIB" && RANLIB=: 5553 5554 5555 5556 5557 5558 5559# Determine commands to create old-style static archives. 5560old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5561old_postinstall_cmds='chmod 644 $oldlib' 5562old_postuninstall_cmds= 5563 5564if test -n "$RANLIB"; then 5565 case $host_os in 5566 openbsd*) 5567 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5568 ;; 5569 *) 5570 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5571 ;; 5572 esac 5573 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5574fi 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609# If no C compiler was specified, use CC. 5610LTCC=${LTCC-"$CC"} 5611 5612# If no C compiler flags were specified, use CFLAGS. 5613LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5614 5615# Allow CC to be a program name with arguments. 5616compiler=$CC 5617 5618 5619# Check for command to grab the raw symbol name followed by C symbol from nm. 5620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5621$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5622if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 5623 $as_echo_n "(cached) " >&6 5624else 5625 5626# These are sane defaults that work on at least a few old systems. 5627# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5628 5629# Character class describing NM global symbol codes. 5630symcode='[BCDEGRST]' 5631 5632# Regexp to match symbols that can be accessed directly from C. 5633sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5634 5635# Define system-specific variables. 5636case $host_os in 5637aix*) 5638 symcode='[BCDT]' 5639 ;; 5640cygwin* | mingw* | pw32* | cegcc*) 5641 symcode='[ABCDGISTW]' 5642 ;; 5643hpux*) 5644 if test "$host_cpu" = ia64; then 5645 symcode='[ABCDEGRST]' 5646 fi 5647 ;; 5648irix* | nonstopux*) 5649 symcode='[BCDEGRST]' 5650 ;; 5651osf*) 5652 symcode='[BCDEGQRST]' 5653 ;; 5654solaris*) 5655 symcode='[BDRT]' 5656 ;; 5657sco3.2v5*) 5658 symcode='[DT]' 5659 ;; 5660sysv4.2uw2*) 5661 symcode='[DT]' 5662 ;; 5663sysv5* | sco5v6* | unixware* | OpenUNIX*) 5664 symcode='[ABDT]' 5665 ;; 5666sysv4) 5667 symcode='[DFNSTU]' 5668 ;; 5669esac 5670 5671# If we're using GNU nm, then use its standard symbol codes. 5672case `$NM -V 2>&1` in 5673*GNU* | *'with BFD'*) 5674 symcode='[ABCDGIRSTW]' ;; 5675esac 5676 5677# Transform an extracted symbol line into a proper C declaration. 5678# Some systems (esp. on ia64) link data and code symbols differently, 5679# so use this general approach. 5680lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5681 5682# Transform an extracted symbol line into symbol name and symbol address 5683lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5684lt_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'" 5685 5686# Handle CRLF in mingw tool chain 5687opt_cr= 5688case $build_os in 5689mingw*) 5690 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5691 ;; 5692esac 5693 5694# Try without a prefix underscore, then with it. 5695for ac_symprfx in "" "_"; do 5696 5697 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5698 symxfrm="\\1 $ac_symprfx\\2 \\2" 5699 5700 # Write the raw and C identifiers. 5701 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5702 # Fake it for dumpbin and say T for any non-static function 5703 # and D for any global variable. 5704 # Also find C++ and __fastcall symbols from MSVC++, 5705 # which start with @ or ?. 5706 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5707" {last_section=section; section=\$ 3};"\ 5708" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5709" \$ 0!~/External *\|/{next};"\ 5710" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5711" {if(hide[section]) next};"\ 5712" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5713" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5714" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5715" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5716" ' prfx=^$ac_symprfx" 5717 else 5718 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5719 fi 5720 5721 # Check to see that the pipe works correctly. 5722 pipe_works=no 5723 5724 rm -f conftest* 5725 cat > conftest.$ac_ext <<_LT_EOF 5726#ifdef __cplusplus 5727extern "C" { 5728#endif 5729char nm_test_var; 5730void nm_test_func(void); 5731void nm_test_func(void){} 5732#ifdef __cplusplus 5733} 5734#endif 5735int main(){nm_test_var='a';nm_test_func();return(0);} 5736_LT_EOF 5737 5738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5739 (eval $ac_compile) 2>&5 5740 ac_status=$? 5741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5742 test $ac_status = 0; }; then 5743 # Now try to grab the symbols. 5744 nlist=conftest.nm 5745 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 5746 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5747 ac_status=$? 5748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5749 test $ac_status = 0; } && test -s "$nlist"; then 5750 # Try sorting and uniquifying the output. 5751 if sort "$nlist" | uniq > "$nlist"T; then 5752 mv -f "$nlist"T "$nlist" 5753 else 5754 rm -f "$nlist"T 5755 fi 5756 5757 # Make sure that we snagged all the symbols we need. 5758 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5759 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5760 cat <<_LT_EOF > conftest.$ac_ext 5761#ifdef __cplusplus 5762extern "C" { 5763#endif 5764 5765_LT_EOF 5766 # Now generate the symbol file. 5767 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5768 5769 cat <<_LT_EOF >> conftest.$ac_ext 5770 5771/* The mapping between symbol names and symbols. */ 5772const struct { 5773 const char *name; 5774 void *address; 5775} 5776lt__PROGRAM__LTX_preloaded_symbols[] = 5777{ 5778 { "@PROGRAM@", (void *) 0 }, 5779_LT_EOF 5780 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5781 cat <<\_LT_EOF >> conftest.$ac_ext 5782 {0, (void *) 0} 5783}; 5784 5785/* This works around a problem in FreeBSD linker */ 5786#ifdef FREEBSD_WORKAROUND 5787static const void *lt_preloaded_setup() { 5788 return lt__PROGRAM__LTX_preloaded_symbols; 5789} 5790#endif 5791 5792#ifdef __cplusplus 5793} 5794#endif 5795_LT_EOF 5796 # Now try linking the two files. 5797 mv conftest.$ac_objext conftstm.$ac_objext 5798 lt_save_LIBS="$LIBS" 5799 lt_save_CFLAGS="$CFLAGS" 5800 LIBS="conftstm.$ac_objext" 5801 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5802 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 5803 (eval $ac_link) 2>&5 5804 ac_status=$? 5805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5806 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 5807 pipe_works=yes 5808 fi 5809 LIBS="$lt_save_LIBS" 5810 CFLAGS="$lt_save_CFLAGS" 5811 else 5812 echo "cannot find nm_test_func in $nlist" >&5 5813 fi 5814 else 5815 echo "cannot find nm_test_var in $nlist" >&5 5816 fi 5817 else 5818 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5819 fi 5820 else 5821 echo "$progname: failed program was:" >&5 5822 cat conftest.$ac_ext >&5 5823 fi 5824 rm -rf conftest* conftst* 5825 5826 # Do not use the global_symbol_pipe unless it works. 5827 if test "$pipe_works" = yes; then 5828 break 5829 else 5830 lt_cv_sys_global_symbol_pipe= 5831 fi 5832done 5833 5834fi 5835 5836if test -z "$lt_cv_sys_global_symbol_pipe"; then 5837 lt_cv_sys_global_symbol_to_cdecl= 5838fi 5839if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5841$as_echo "failed" >&6; } 5842else 5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 5844$as_echo "ok" >&6; } 5845fi 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869# Check whether --enable-libtool-lock was given. 5870if test "${enable_libtool_lock+set}" = set; then : 5871 enableval=$enable_libtool_lock; 5872fi 5873 5874test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5875 5876# Some flags need to be propagated to the compiler or linker for good 5877# libtool support. 5878case $host in 5879ia64-*-hpux*) 5880 # Find out which ABI we are using. 5881 echo 'int i;' > conftest.$ac_ext 5882 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5883 (eval $ac_compile) 2>&5 5884 ac_status=$? 5885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5886 test $ac_status = 0; }; then 5887 case `/usr/bin/file conftest.$ac_objext` in 5888 *ELF-32*) 5889 HPUX_IA64_MODE="32" 5890 ;; 5891 *ELF-64*) 5892 HPUX_IA64_MODE="64" 5893 ;; 5894 esac 5895 fi 5896 rm -rf conftest* 5897 ;; 5898*-*-irix6*) 5899 # Find out which ABI we are using. 5900 echo '#line 5900 "configure"' > conftest.$ac_ext 5901 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5902 (eval $ac_compile) 2>&5 5903 ac_status=$? 5904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5905 test $ac_status = 0; }; then 5906 if test "$lt_cv_prog_gnu_ld" = yes; then 5907 case `/usr/bin/file conftest.$ac_objext` in 5908 *32-bit*) 5909 LD="${LD-ld} -melf32bsmip" 5910 ;; 5911 *N32*) 5912 LD="${LD-ld} -melf32bmipn32" 5913 ;; 5914 *64-bit*) 5915 LD="${LD-ld} -melf64bmip" 5916 ;; 5917 esac 5918 else 5919 case `/usr/bin/file conftest.$ac_objext` in 5920 *32-bit*) 5921 LD="${LD-ld} -32" 5922 ;; 5923 *N32*) 5924 LD="${LD-ld} -n32" 5925 ;; 5926 *64-bit*) 5927 LD="${LD-ld} -64" 5928 ;; 5929 esac 5930 fi 5931 fi 5932 rm -rf conftest* 5933 ;; 5934 5935x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5936s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5937 # Find out which ABI we are using. 5938 echo 'int i;' > conftest.$ac_ext 5939 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5940 (eval $ac_compile) 2>&5 5941 ac_status=$? 5942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5943 test $ac_status = 0; }; then 5944 case `/usr/bin/file conftest.o` in 5945 *32-bit*) 5946 case $host in 5947 x86_64-*kfreebsd*-gnu) 5948 LD="${LD-ld} -m elf_i386_fbsd" 5949 ;; 5950 x86_64-*linux*) 5951 LD="${LD-ld} -m elf_i386" 5952 ;; 5953 ppc64-*linux*|powerpc64-*linux*) 5954 LD="${LD-ld} -m elf32ppclinux" 5955 ;; 5956 s390x-*linux*) 5957 LD="${LD-ld} -m elf_s390" 5958 ;; 5959 sparc64-*linux*) 5960 LD="${LD-ld} -m elf32_sparc" 5961 ;; 5962 esac 5963 ;; 5964 *64-bit*) 5965 case $host in 5966 x86_64-*kfreebsd*-gnu) 5967 LD="${LD-ld} -m elf_x86_64_fbsd" 5968 ;; 5969 x86_64-*linux*) 5970 LD="${LD-ld} -m elf_x86_64" 5971 ;; 5972 ppc*-*linux*|powerpc*-*linux*) 5973 LD="${LD-ld} -m elf64ppc" 5974 ;; 5975 s390*-*linux*|s390*-*tpf*) 5976 LD="${LD-ld} -m elf64_s390" 5977 ;; 5978 sparc*-*linux*) 5979 LD="${LD-ld} -m elf64_sparc" 5980 ;; 5981 esac 5982 ;; 5983 esac 5984 fi 5985 rm -rf conftest* 5986 ;; 5987 5988*-*-sco3.2v5*) 5989 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5990 SAVE_CFLAGS="$CFLAGS" 5991 CFLAGS="$CFLAGS -belf" 5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 5993$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 5994if test "${lt_cv_cc_needs_belf+set}" = set; then : 5995 $as_echo_n "(cached) " >&6 5996else 5997 ac_ext=c 5998ac_cpp='$CPP $CPPFLAGS' 5999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6001ac_compiler_gnu=$ac_cv_c_compiler_gnu 6002 6003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6004/* end confdefs.h. */ 6005 6006int 6007main () 6008{ 6009 6010 ; 6011 return 0; 6012} 6013_ACEOF 6014if ac_fn_c_try_link "$LINENO"; then : 6015 lt_cv_cc_needs_belf=yes 6016else 6017 lt_cv_cc_needs_belf=no 6018fi 6019rm -f core conftest.err conftest.$ac_objext \ 6020 conftest$ac_exeext conftest.$ac_ext 6021 ac_ext=c 6022ac_cpp='$CPP $CPPFLAGS' 6023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6025ac_compiler_gnu=$ac_cv_c_compiler_gnu 6026 6027fi 6028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6029$as_echo "$lt_cv_cc_needs_belf" >&6; } 6030 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6031 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6032 CFLAGS="$SAVE_CFLAGS" 6033 fi 6034 ;; 6035sparc*-*solaris*) 6036 # Find out which ABI we are using. 6037 echo 'int i;' > conftest.$ac_ext 6038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6039 (eval $ac_compile) 2>&5 6040 ac_status=$? 6041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6042 test $ac_status = 0; }; then 6043 case `/usr/bin/file conftest.o` in 6044 *64-bit*) 6045 case $lt_cv_prog_gnu_ld in 6046 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6047 *) 6048 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6049 LD="${LD-ld} -64" 6050 fi 6051 ;; 6052 esac 6053 ;; 6054 esac 6055 fi 6056 rm -rf conftest* 6057 ;; 6058esac 6059 6060need_locks="$enable_libtool_lock" 6061 6062 6063 case $host_os in 6064 rhapsody* | darwin*) 6065 if test -n "$ac_tool_prefix"; then 6066 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6067set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6069$as_echo_n "checking for $ac_word... " >&6; } 6070if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 6071 $as_echo_n "(cached) " >&6 6072else 6073 if test -n "$DSYMUTIL"; then 6074 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6075else 6076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6077for as_dir in $PATH 6078do 6079 IFS=$as_save_IFS 6080 test -z "$as_dir" && as_dir=. 6081 for ac_exec_ext in '' $ac_executable_extensions; do 6082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6083 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6085 break 2 6086 fi 6087done 6088 done 6089IFS=$as_save_IFS 6090 6091fi 6092fi 6093DSYMUTIL=$ac_cv_prog_DSYMUTIL 6094if test -n "$DSYMUTIL"; then 6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6096$as_echo "$DSYMUTIL" >&6; } 6097else 6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6099$as_echo "no" >&6; } 6100fi 6101 6102 6103fi 6104if test -z "$ac_cv_prog_DSYMUTIL"; then 6105 ac_ct_DSYMUTIL=$DSYMUTIL 6106 # Extract the first word of "dsymutil", so it can be a program name with args. 6107set dummy dsymutil; ac_word=$2 6108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6109$as_echo_n "checking for $ac_word... " >&6; } 6110if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 6111 $as_echo_n "(cached) " >&6 6112else 6113 if test -n "$ac_ct_DSYMUTIL"; then 6114 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6115else 6116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6117for as_dir in $PATH 6118do 6119 IFS=$as_save_IFS 6120 test -z "$as_dir" && as_dir=. 6121 for ac_exec_ext in '' $ac_executable_extensions; do 6122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6123 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6125 break 2 6126 fi 6127done 6128 done 6129IFS=$as_save_IFS 6130 6131fi 6132fi 6133ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6134if test -n "$ac_ct_DSYMUTIL"; then 6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6136$as_echo "$ac_ct_DSYMUTIL" >&6; } 6137else 6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6139$as_echo "no" >&6; } 6140fi 6141 6142 if test "x$ac_ct_DSYMUTIL" = x; then 6143 DSYMUTIL=":" 6144 else 6145 case $cross_compiling:$ac_tool_warned in 6146yes:) 6147{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6148$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6149ac_tool_warned=yes ;; 6150esac 6151 DSYMUTIL=$ac_ct_DSYMUTIL 6152 fi 6153else 6154 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6155fi 6156 6157 if test -n "$ac_tool_prefix"; then 6158 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6159set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6161$as_echo_n "checking for $ac_word... " >&6; } 6162if test "${ac_cv_prog_NMEDIT+set}" = set; then : 6163 $as_echo_n "(cached) " >&6 6164else 6165 if test -n "$NMEDIT"; then 6166 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6167else 6168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6169for as_dir in $PATH 6170do 6171 IFS=$as_save_IFS 6172 test -z "$as_dir" && as_dir=. 6173 for ac_exec_ext in '' $ac_executable_extensions; do 6174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6175 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6177 break 2 6178 fi 6179done 6180 done 6181IFS=$as_save_IFS 6182 6183fi 6184fi 6185NMEDIT=$ac_cv_prog_NMEDIT 6186if test -n "$NMEDIT"; then 6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6188$as_echo "$NMEDIT" >&6; } 6189else 6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6191$as_echo "no" >&6; } 6192fi 6193 6194 6195fi 6196if test -z "$ac_cv_prog_NMEDIT"; then 6197 ac_ct_NMEDIT=$NMEDIT 6198 # Extract the first word of "nmedit", so it can be a program name with args. 6199set dummy nmedit; ac_word=$2 6200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6201$as_echo_n "checking for $ac_word... " >&6; } 6202if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 6203 $as_echo_n "(cached) " >&6 6204else 6205 if test -n "$ac_ct_NMEDIT"; then 6206 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6207else 6208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6209for as_dir in $PATH 6210do 6211 IFS=$as_save_IFS 6212 test -z "$as_dir" && as_dir=. 6213 for ac_exec_ext in '' $ac_executable_extensions; do 6214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6215 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6217 break 2 6218 fi 6219done 6220 done 6221IFS=$as_save_IFS 6222 6223fi 6224fi 6225ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6226if test -n "$ac_ct_NMEDIT"; then 6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6228$as_echo "$ac_ct_NMEDIT" >&6; } 6229else 6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6231$as_echo "no" >&6; } 6232fi 6233 6234 if test "x$ac_ct_NMEDIT" = x; then 6235 NMEDIT=":" 6236 else 6237 case $cross_compiling:$ac_tool_warned in 6238yes:) 6239{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6240$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6241ac_tool_warned=yes ;; 6242esac 6243 NMEDIT=$ac_ct_NMEDIT 6244 fi 6245else 6246 NMEDIT="$ac_cv_prog_NMEDIT" 6247fi 6248 6249 if test -n "$ac_tool_prefix"; then 6250 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6251set dummy ${ac_tool_prefix}lipo; ac_word=$2 6252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6253$as_echo_n "checking for $ac_word... " >&6; } 6254if test "${ac_cv_prog_LIPO+set}" = set; then : 6255 $as_echo_n "(cached) " >&6 6256else 6257 if test -n "$LIPO"; then 6258 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6259else 6260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6261for as_dir in $PATH 6262do 6263 IFS=$as_save_IFS 6264 test -z "$as_dir" && as_dir=. 6265 for ac_exec_ext in '' $ac_executable_extensions; do 6266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6267 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6269 break 2 6270 fi 6271done 6272 done 6273IFS=$as_save_IFS 6274 6275fi 6276fi 6277LIPO=$ac_cv_prog_LIPO 6278if test -n "$LIPO"; then 6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6280$as_echo "$LIPO" >&6; } 6281else 6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6283$as_echo "no" >&6; } 6284fi 6285 6286 6287fi 6288if test -z "$ac_cv_prog_LIPO"; then 6289 ac_ct_LIPO=$LIPO 6290 # Extract the first word of "lipo", so it can be a program name with args. 6291set dummy lipo; ac_word=$2 6292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6293$as_echo_n "checking for $ac_word... " >&6; } 6294if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 6295 $as_echo_n "(cached) " >&6 6296else 6297 if test -n "$ac_ct_LIPO"; then 6298 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6299else 6300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6301for as_dir in $PATH 6302do 6303 IFS=$as_save_IFS 6304 test -z "$as_dir" && as_dir=. 6305 for ac_exec_ext in '' $ac_executable_extensions; do 6306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6307 ac_cv_prog_ac_ct_LIPO="lipo" 6308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6309 break 2 6310 fi 6311done 6312 done 6313IFS=$as_save_IFS 6314 6315fi 6316fi 6317ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6318if test -n "$ac_ct_LIPO"; then 6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6320$as_echo "$ac_ct_LIPO" >&6; } 6321else 6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6323$as_echo "no" >&6; } 6324fi 6325 6326 if test "x$ac_ct_LIPO" = x; then 6327 LIPO=":" 6328 else 6329 case $cross_compiling:$ac_tool_warned in 6330yes:) 6331{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6332$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6333ac_tool_warned=yes ;; 6334esac 6335 LIPO=$ac_ct_LIPO 6336 fi 6337else 6338 LIPO="$ac_cv_prog_LIPO" 6339fi 6340 6341 if test -n "$ac_tool_prefix"; then 6342 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6343set dummy ${ac_tool_prefix}otool; ac_word=$2 6344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6345$as_echo_n "checking for $ac_word... " >&6; } 6346if test "${ac_cv_prog_OTOOL+set}" = set; then : 6347 $as_echo_n "(cached) " >&6 6348else 6349 if test -n "$OTOOL"; then 6350 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6351else 6352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6353for as_dir in $PATH 6354do 6355 IFS=$as_save_IFS 6356 test -z "$as_dir" && as_dir=. 6357 for ac_exec_ext in '' $ac_executable_extensions; do 6358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6359 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6361 break 2 6362 fi 6363done 6364 done 6365IFS=$as_save_IFS 6366 6367fi 6368fi 6369OTOOL=$ac_cv_prog_OTOOL 6370if test -n "$OTOOL"; then 6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6372$as_echo "$OTOOL" >&6; } 6373else 6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6375$as_echo "no" >&6; } 6376fi 6377 6378 6379fi 6380if test -z "$ac_cv_prog_OTOOL"; then 6381 ac_ct_OTOOL=$OTOOL 6382 # Extract the first word of "otool", so it can be a program name with args. 6383set dummy otool; ac_word=$2 6384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6385$as_echo_n "checking for $ac_word... " >&6; } 6386if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 6387 $as_echo_n "(cached) " >&6 6388else 6389 if test -n "$ac_ct_OTOOL"; then 6390 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6391else 6392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6393for as_dir in $PATH 6394do 6395 IFS=$as_save_IFS 6396 test -z "$as_dir" && as_dir=. 6397 for ac_exec_ext in '' $ac_executable_extensions; do 6398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6399 ac_cv_prog_ac_ct_OTOOL="otool" 6400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6401 break 2 6402 fi 6403done 6404 done 6405IFS=$as_save_IFS 6406 6407fi 6408fi 6409ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6410if test -n "$ac_ct_OTOOL"; then 6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6412$as_echo "$ac_ct_OTOOL" >&6; } 6413else 6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6415$as_echo "no" >&6; } 6416fi 6417 6418 if test "x$ac_ct_OTOOL" = x; then 6419 OTOOL=":" 6420 else 6421 case $cross_compiling:$ac_tool_warned in 6422yes:) 6423{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6425ac_tool_warned=yes ;; 6426esac 6427 OTOOL=$ac_ct_OTOOL 6428 fi 6429else 6430 OTOOL="$ac_cv_prog_OTOOL" 6431fi 6432 6433 if test -n "$ac_tool_prefix"; then 6434 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6435set dummy ${ac_tool_prefix}otool64; ac_word=$2 6436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6437$as_echo_n "checking for $ac_word... " >&6; } 6438if test "${ac_cv_prog_OTOOL64+set}" = set; then : 6439 $as_echo_n "(cached) " >&6 6440else 6441 if test -n "$OTOOL64"; then 6442 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6443else 6444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6445for as_dir in $PATH 6446do 6447 IFS=$as_save_IFS 6448 test -z "$as_dir" && as_dir=. 6449 for ac_exec_ext in '' $ac_executable_extensions; do 6450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6451 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6453 break 2 6454 fi 6455done 6456 done 6457IFS=$as_save_IFS 6458 6459fi 6460fi 6461OTOOL64=$ac_cv_prog_OTOOL64 6462if test -n "$OTOOL64"; then 6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6464$as_echo "$OTOOL64" >&6; } 6465else 6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6467$as_echo "no" >&6; } 6468fi 6469 6470 6471fi 6472if test -z "$ac_cv_prog_OTOOL64"; then 6473 ac_ct_OTOOL64=$OTOOL64 6474 # Extract the first word of "otool64", so it can be a program name with args. 6475set dummy otool64; ac_word=$2 6476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6477$as_echo_n "checking for $ac_word... " >&6; } 6478if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 6479 $as_echo_n "(cached) " >&6 6480else 6481 if test -n "$ac_ct_OTOOL64"; then 6482 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6483else 6484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6485for as_dir in $PATH 6486do 6487 IFS=$as_save_IFS 6488 test -z "$as_dir" && as_dir=. 6489 for ac_exec_ext in '' $ac_executable_extensions; do 6490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6491 ac_cv_prog_ac_ct_OTOOL64="otool64" 6492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6493 break 2 6494 fi 6495done 6496 done 6497IFS=$as_save_IFS 6498 6499fi 6500fi 6501ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6502if test -n "$ac_ct_OTOOL64"; then 6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6504$as_echo "$ac_ct_OTOOL64" >&6; } 6505else 6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6507$as_echo "no" >&6; } 6508fi 6509 6510 if test "x$ac_ct_OTOOL64" = x; then 6511 OTOOL64=":" 6512 else 6513 case $cross_compiling:$ac_tool_warned in 6514yes:) 6515{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6516$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6517ac_tool_warned=yes ;; 6518esac 6519 OTOOL64=$ac_ct_OTOOL64 6520 fi 6521else 6522 OTOOL64="$ac_cv_prog_OTOOL64" 6523fi 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6552$as_echo_n "checking for -single_module linker flag... " >&6; } 6553if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 6554 $as_echo_n "(cached) " >&6 6555else 6556 lt_cv_apple_cc_single_mod=no 6557 if test -z "${LT_MULTI_MODULE}"; then 6558 # By default we will add the -single_module flag. You can override 6559 # by either setting the environment variable LT_MULTI_MODULE 6560 # non-empty at configure time, or by adding -multi_module to the 6561 # link flags. 6562 rm -rf libconftest.dylib* 6563 echo "int foo(void){return 1;}" > conftest.c 6564 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6565-dynamiclib -Wl,-single_module conftest.c" >&5 6566 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6567 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6568 _lt_result=$? 6569 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6570 lt_cv_apple_cc_single_mod=yes 6571 else 6572 cat conftest.err >&5 6573 fi 6574 rm -rf libconftest.dylib* 6575 rm -f conftest.* 6576 fi 6577fi 6578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 6579$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 6581$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6582if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 6583 $as_echo_n "(cached) " >&6 6584else 6585 lt_cv_ld_exported_symbols_list=no 6586 save_LDFLAGS=$LDFLAGS 6587 echo "_main" > conftest.sym 6588 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6590/* end confdefs.h. */ 6591 6592int 6593main () 6594{ 6595 6596 ; 6597 return 0; 6598} 6599_ACEOF 6600if ac_fn_c_try_link "$LINENO"; then : 6601 lt_cv_ld_exported_symbols_list=yes 6602else 6603 lt_cv_ld_exported_symbols_list=no 6604fi 6605rm -f core conftest.err conftest.$ac_objext \ 6606 conftest$ac_exeext conftest.$ac_ext 6607 LDFLAGS="$save_LDFLAGS" 6608 6609fi 6610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 6611$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6612 case $host_os in 6613 rhapsody* | darwin1.[012]) 6614 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6615 darwin1.*) 6616 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6617 darwin*) # darwin 5.x on 6618 # if running on 10.5 or later, the deployment target defaults 6619 # to the OS version, if on x86, and 10.4, the deployment 6620 # target defaults to 10.4. Don't you love it? 6621 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6622 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6623 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6624 10.[012]*) 6625 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6626 10.*) 6627 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6628 esac 6629 ;; 6630 esac 6631 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6632 _lt_dar_single_mod='$single_module' 6633 fi 6634 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6635 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6636 else 6637 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6638 fi 6639 if test "$DSYMUTIL" != ":"; then 6640 _lt_dsymutil='~$DSYMUTIL $lib || :' 6641 else 6642 _lt_dsymutil= 6643 fi 6644 ;; 6645 esac 6646 6647ac_ext=c 6648ac_cpp='$CPP $CPPFLAGS' 6649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6651ac_compiler_gnu=$ac_cv_c_compiler_gnu 6652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6653$as_echo_n "checking how to run the C preprocessor... " >&6; } 6654# On Suns, sometimes $CPP names a directory. 6655if test -n "$CPP" && test -d "$CPP"; then 6656 CPP= 6657fi 6658if test -z "$CPP"; then 6659 if test "${ac_cv_prog_CPP+set}" = set; then : 6660 $as_echo_n "(cached) " >&6 6661else 6662 # Double quotes because CPP needs to be expanded 6663 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6664 do 6665 ac_preproc_ok=false 6666for ac_c_preproc_warn_flag in '' yes 6667do 6668 # Use a header file that comes with gcc, so configuring glibc 6669 # with a fresh cross-compiler works. 6670 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6671 # <limits.h> exists even on freestanding compilers. 6672 # On the NeXT, cc -E runs the code through the compiler's parser, 6673 # not just through cpp. "Syntax error" is here to catch this case. 6674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6675/* end confdefs.h. */ 6676#ifdef __STDC__ 6677# include <limits.h> 6678#else 6679# include <assert.h> 6680#endif 6681 Syntax error 6682_ACEOF 6683if ac_fn_c_try_cpp "$LINENO"; then : 6684 6685else 6686 # Broken: fails on valid input. 6687continue 6688fi 6689rm -f conftest.err conftest.i conftest.$ac_ext 6690 6691 # OK, works on sane cases. Now check whether nonexistent headers 6692 # can be detected and how. 6693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6694/* end confdefs.h. */ 6695#include <ac_nonexistent.h> 6696_ACEOF 6697if ac_fn_c_try_cpp "$LINENO"; then : 6698 # Broken: success on invalid input. 6699continue 6700else 6701 # Passes both tests. 6702ac_preproc_ok=: 6703break 6704fi 6705rm -f conftest.err conftest.i conftest.$ac_ext 6706 6707done 6708# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6709rm -f conftest.i conftest.err conftest.$ac_ext 6710if $ac_preproc_ok; then : 6711 break 6712fi 6713 6714 done 6715 ac_cv_prog_CPP=$CPP 6716 6717fi 6718 CPP=$ac_cv_prog_CPP 6719else 6720 ac_cv_prog_CPP=$CPP 6721fi 6722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 6723$as_echo "$CPP" >&6; } 6724ac_preproc_ok=false 6725for ac_c_preproc_warn_flag in '' yes 6726do 6727 # Use a header file that comes with gcc, so configuring glibc 6728 # with a fresh cross-compiler works. 6729 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6730 # <limits.h> exists even on freestanding compilers. 6731 # On the NeXT, cc -E runs the code through the compiler's parser, 6732 # not just through cpp. "Syntax error" is here to catch this case. 6733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6734/* end confdefs.h. */ 6735#ifdef __STDC__ 6736# include <limits.h> 6737#else 6738# include <assert.h> 6739#endif 6740 Syntax error 6741_ACEOF 6742if ac_fn_c_try_cpp "$LINENO"; then : 6743 6744else 6745 # Broken: fails on valid input. 6746continue 6747fi 6748rm -f conftest.err conftest.i conftest.$ac_ext 6749 6750 # OK, works on sane cases. Now check whether nonexistent headers 6751 # can be detected and how. 6752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6753/* end confdefs.h. */ 6754#include <ac_nonexistent.h> 6755_ACEOF 6756if ac_fn_c_try_cpp "$LINENO"; then : 6757 # Broken: success on invalid input. 6758continue 6759else 6760 # Passes both tests. 6761ac_preproc_ok=: 6762break 6763fi 6764rm -f conftest.err conftest.i conftest.$ac_ext 6765 6766done 6767# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6768rm -f conftest.i conftest.err conftest.$ac_ext 6769if $ac_preproc_ok; then : 6770 6771else 6772 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6773$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6774as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 6775See \`config.log' for more details" "$LINENO" 5; } 6776fi 6777 6778ac_ext=c 6779ac_cpp='$CPP $CPPFLAGS' 6780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6782ac_compiler_gnu=$ac_cv_c_compiler_gnu 6783 6784 6785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6786$as_echo_n "checking for ANSI C header files... " >&6; } 6787if test "${ac_cv_header_stdc+set}" = set; then : 6788 $as_echo_n "(cached) " >&6 6789else 6790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6791/* end confdefs.h. */ 6792#include <stdlib.h> 6793#include <stdarg.h> 6794#include <string.h> 6795#include <float.h> 6796 6797int 6798main () 6799{ 6800 6801 ; 6802 return 0; 6803} 6804_ACEOF 6805if ac_fn_c_try_compile "$LINENO"; then : 6806 ac_cv_header_stdc=yes 6807else 6808 ac_cv_header_stdc=no 6809fi 6810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6811 6812if test $ac_cv_header_stdc = yes; then 6813 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6815/* end confdefs.h. */ 6816#include <string.h> 6817 6818_ACEOF 6819if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6820 $EGREP "memchr" >/dev/null 2>&1; then : 6821 6822else 6823 ac_cv_header_stdc=no 6824fi 6825rm -f conftest* 6826 6827fi 6828 6829if test $ac_cv_header_stdc = yes; then 6830 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6832/* end confdefs.h. */ 6833#include <stdlib.h> 6834 6835_ACEOF 6836if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6837 $EGREP "free" >/dev/null 2>&1; then : 6838 6839else 6840 ac_cv_header_stdc=no 6841fi 6842rm -f conftest* 6843 6844fi 6845 6846if test $ac_cv_header_stdc = yes; then 6847 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6848 if test "$cross_compiling" = yes; then : 6849 : 6850else 6851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6852/* end confdefs.h. */ 6853#include <ctype.h> 6854#include <stdlib.h> 6855#if ((' ' & 0x0FF) == 0x020) 6856# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6857# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6858#else 6859# define ISLOWER(c) \ 6860 (('a' <= (c) && (c) <= 'i') \ 6861 || ('j' <= (c) && (c) <= 'r') \ 6862 || ('s' <= (c) && (c) <= 'z')) 6863# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6864#endif 6865 6866#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6867int 6868main () 6869{ 6870 int i; 6871 for (i = 0; i < 256; i++) 6872 if (XOR (islower (i), ISLOWER (i)) 6873 || toupper (i) != TOUPPER (i)) 6874 return 2; 6875 return 0; 6876} 6877_ACEOF 6878if ac_fn_c_try_run "$LINENO"; then : 6879 6880else 6881 ac_cv_header_stdc=no 6882fi 6883rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6884 conftest.$ac_objext conftest.beam conftest.$ac_ext 6885fi 6886 6887fi 6888fi 6889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6890$as_echo "$ac_cv_header_stdc" >&6; } 6891if test $ac_cv_header_stdc = yes; then 6892 6893$as_echo "#define STDC_HEADERS 1" >>confdefs.h 6894 6895fi 6896 6897# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6898for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6899 inttypes.h stdint.h unistd.h 6900do : 6901 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6902ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6903" 6904if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6905 cat >>confdefs.h <<_ACEOF 6906#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6907_ACEOF 6908 6909fi 6910 6911done 6912 6913 6914for ac_header in dlfcn.h 6915do : 6916 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 6917" 6918if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 6919 cat >>confdefs.h <<_ACEOF 6920#define HAVE_DLFCN_H 1 6921_ACEOF 6922 6923fi 6924 6925done 6926 6927 6928 6929# Set options 6930# Check whether --enable-shared was given. 6931if test "${enable_shared+set}" = set; then : 6932 enableval=$enable_shared; p=${PACKAGE-default} 6933 case $enableval in 6934 yes) enable_shared=yes ;; 6935 no) enable_shared=no ;; 6936 *) 6937 enable_shared=no 6938 # Look at the argument we got. We use all the common list separators. 6939 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6940 for pkg in $enableval; do 6941 IFS="$lt_save_ifs" 6942 if test "X$pkg" = "X$p"; then 6943 enable_shared=yes 6944 fi 6945 done 6946 IFS="$lt_save_ifs" 6947 ;; 6948 esac 6949else 6950 enable_shared=no 6951fi 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 enable_dlopen=no 6963 6964 6965 enable_win32_dll=no 6966 6967 6968 6969 # Check whether --enable-static was given. 6970if test "${enable_static+set}" = set; then : 6971 enableval=$enable_static; p=${PACKAGE-default} 6972 case $enableval in 6973 yes) enable_static=yes ;; 6974 no) enable_static=no ;; 6975 *) 6976 enable_static=no 6977 # Look at the argument we got. We use all the common list separators. 6978 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6979 for pkg in $enableval; do 6980 IFS="$lt_save_ifs" 6981 if test "X$pkg" = "X$p"; then 6982 enable_static=yes 6983 fi 6984 done 6985 IFS="$lt_save_ifs" 6986 ;; 6987 esac 6988else 6989 enable_static=yes 6990fi 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001# Check whether --with-pic was given. 7002if test "${with_pic+set}" = set; then : 7003 withval=$with_pic; pic_mode="$withval" 7004else 7005 pic_mode=default 7006fi 7007 7008 7009test -z "$pic_mode" && pic_mode=default 7010 7011 7012 7013 7014 7015 7016 7017 # Check whether --enable-fast-install was given. 7018if test "${enable_fast_install+set}" = set; then : 7019 enableval=$enable_fast_install; p=${PACKAGE-default} 7020 case $enableval in 7021 yes) enable_fast_install=yes ;; 7022 no) enable_fast_install=no ;; 7023 *) 7024 enable_fast_install=no 7025 # Look at the argument we got. We use all the common list separators. 7026 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7027 for pkg in $enableval; do 7028 IFS="$lt_save_ifs" 7029 if test "X$pkg" = "X$p"; then 7030 enable_fast_install=yes 7031 fi 7032 done 7033 IFS="$lt_save_ifs" 7034 ;; 7035 esac 7036else 7037 enable_fast_install=yes 7038fi 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050# This can be used to rebuild libtool when needed 7051LIBTOOL_DEPS="$ltmain" 7052 7053# Always use our own libtool. 7054LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080test -z "$LN_S" && LN_S="ln -s" 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095if test -n "${ZSH_VERSION+set}" ; then 7096 setopt NO_GLOB_SUBST 7097fi 7098 7099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7100$as_echo_n "checking for objdir... " >&6; } 7101if test "${lt_cv_objdir+set}" = set; then : 7102 $as_echo_n "(cached) " >&6 7103else 7104 rm -f .libs 2>/dev/null 7105mkdir .libs 2>/dev/null 7106if test -d .libs; then 7107 lt_cv_objdir=.libs 7108else 7109 # MS-DOS does not allow filenames that begin with a dot. 7110 lt_cv_objdir=_libs 7111fi 7112rmdir .libs 2>/dev/null 7113fi 7114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7115$as_echo "$lt_cv_objdir" >&6; } 7116objdir=$lt_cv_objdir 7117 7118 7119 7120 7121 7122cat >>confdefs.h <<_ACEOF 7123#define LT_OBJDIR "$lt_cv_objdir/" 7124_ACEOF 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142case $host_os in 7143aix3*) 7144 # AIX sometimes has problems with the GCC collect2 program. For some 7145 # reason, if we set the COLLECT_NAMES environment variable, the problems 7146 # vanish in a puff of smoke. 7147 if test "X${COLLECT_NAMES+set}" != Xset; then 7148 COLLECT_NAMES= 7149 export COLLECT_NAMES 7150 fi 7151 ;; 7152esac 7153 7154# Sed substitution that helps us do robust quoting. It backslashifies 7155# metacharacters that are still active within double-quoted strings. 7156sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7157 7158# Same as above, but do not quote variable references. 7159double_quote_subst='s/\(["`\\]\)/\\\1/g' 7160 7161# Sed substitution to delay expansion of an escaped shell variable in a 7162# double_quote_subst'ed string. 7163delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7164 7165# Sed substitution to delay expansion of an escaped single quote. 7166delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7167 7168# Sed substitution to avoid accidental globbing in evaled expressions 7169no_glob_subst='s/\*/\\\*/g' 7170 7171# Global variables: 7172ofile=libtool 7173can_build_shared=yes 7174 7175# All known linkers require a `.a' archive for static linking (except MSVC, 7176# which needs '.lib'). 7177libext=a 7178 7179with_gnu_ld="$lt_cv_prog_gnu_ld" 7180 7181old_CC="$CC" 7182old_CFLAGS="$CFLAGS" 7183 7184# Set sane defaults for various variables 7185test -z "$CC" && CC=cc 7186test -z "$LTCC" && LTCC=$CC 7187test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7188test -z "$LD" && LD=ld 7189test -z "$ac_objext" && ac_objext=o 7190 7191for cc_temp in $compiler""; do 7192 case $cc_temp in 7193 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7194 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7195 \-*) ;; 7196 *) break;; 7197 esac 7198done 7199cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7200 7201 7202# Only perform the check for file, if the check method requires it 7203test -z "$MAGIC_CMD" && MAGIC_CMD=file 7204case $deplibs_check_method in 7205file_magic*) 7206 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7208$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7209if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7210 $as_echo_n "(cached) " >&6 7211else 7212 case $MAGIC_CMD in 7213[\\/*] | ?:[\\/]*) 7214 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7215 ;; 7216*) 7217 lt_save_MAGIC_CMD="$MAGIC_CMD" 7218 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7219 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7220 for ac_dir in $ac_dummy; do 7221 IFS="$lt_save_ifs" 7222 test -z "$ac_dir" && ac_dir=. 7223 if test -f $ac_dir/${ac_tool_prefix}file; then 7224 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7225 if test -n "$file_magic_test_file"; then 7226 case $deplibs_check_method in 7227 "file_magic "*) 7228 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7229 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7230 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7231 $EGREP "$file_magic_regex" > /dev/null; then 7232 : 7233 else 7234 cat <<_LT_EOF 1>&2 7235 7236*** Warning: the command libtool uses to detect shared libraries, 7237*** $file_magic_cmd, produces output that libtool cannot recognize. 7238*** The result is that libtool may fail to recognize shared libraries 7239*** as such. This will affect the creation of libtool libraries that 7240*** depend on shared libraries, but programs linked with such libtool 7241*** libraries will work regardless of this problem. Nevertheless, you 7242*** may want to report the problem to your system manager and/or to 7243*** bug-libtool@gnu.org 7244 7245_LT_EOF 7246 fi ;; 7247 esac 7248 fi 7249 break 7250 fi 7251 done 7252 IFS="$lt_save_ifs" 7253 MAGIC_CMD="$lt_save_MAGIC_CMD" 7254 ;; 7255esac 7256fi 7257 7258MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7259if test -n "$MAGIC_CMD"; then 7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7261$as_echo "$MAGIC_CMD" >&6; } 7262else 7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7264$as_echo "no" >&6; } 7265fi 7266 7267 7268 7269 7270 7271if test -z "$lt_cv_path_MAGIC_CMD"; then 7272 if test -n "$ac_tool_prefix"; then 7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7274$as_echo_n "checking for file... " >&6; } 7275if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7276 $as_echo_n "(cached) " >&6 7277else 7278 case $MAGIC_CMD in 7279[\\/*] | ?:[\\/]*) 7280 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7281 ;; 7282*) 7283 lt_save_MAGIC_CMD="$MAGIC_CMD" 7284 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7285 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7286 for ac_dir in $ac_dummy; do 7287 IFS="$lt_save_ifs" 7288 test -z "$ac_dir" && ac_dir=. 7289 if test -f $ac_dir/file; then 7290 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7291 if test -n "$file_magic_test_file"; then 7292 case $deplibs_check_method in 7293 "file_magic "*) 7294 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7295 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7296 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7297 $EGREP "$file_magic_regex" > /dev/null; then 7298 : 7299 else 7300 cat <<_LT_EOF 1>&2 7301 7302*** Warning: the command libtool uses to detect shared libraries, 7303*** $file_magic_cmd, produces output that libtool cannot recognize. 7304*** The result is that libtool may fail to recognize shared libraries 7305*** as such. This will affect the creation of libtool libraries that 7306*** depend on shared libraries, but programs linked with such libtool 7307*** libraries will work regardless of this problem. Nevertheless, you 7308*** may want to report the problem to your system manager and/or to 7309*** bug-libtool@gnu.org 7310 7311_LT_EOF 7312 fi ;; 7313 esac 7314 fi 7315 break 7316 fi 7317 done 7318 IFS="$lt_save_ifs" 7319 MAGIC_CMD="$lt_save_MAGIC_CMD" 7320 ;; 7321esac 7322fi 7323 7324MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7325if test -n "$MAGIC_CMD"; then 7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7327$as_echo "$MAGIC_CMD" >&6; } 7328else 7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7330$as_echo "no" >&6; } 7331fi 7332 7333 7334 else 7335 MAGIC_CMD=: 7336 fi 7337fi 7338 7339 fi 7340 ;; 7341esac 7342 7343# Use C for the default configuration in the libtool script 7344 7345lt_save_CC="$CC" 7346ac_ext=c 7347ac_cpp='$CPP $CPPFLAGS' 7348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7350ac_compiler_gnu=$ac_cv_c_compiler_gnu 7351 7352 7353# Source file extension for C test sources. 7354ac_ext=c 7355 7356# Object file extension for compiled C test sources. 7357objext=o 7358objext=$objext 7359 7360# Code to be used in simple compile tests 7361lt_simple_compile_test_code="int some_variable = 0;" 7362 7363# Code to be used in simple link tests 7364lt_simple_link_test_code='int main(){return(0);}' 7365 7366 7367 7368 7369 7370 7371 7372# If no C compiler was specified, use CC. 7373LTCC=${LTCC-"$CC"} 7374 7375# If no C compiler flags were specified, use CFLAGS. 7376LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7377 7378# Allow CC to be a program name with arguments. 7379compiler=$CC 7380 7381# Save the default compiler, since it gets overwritten when the other 7382# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7383compiler_DEFAULT=$CC 7384 7385# save warnings/boilerplate of simple test code 7386ac_outfile=conftest.$ac_objext 7387echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7388eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7389_lt_compiler_boilerplate=`cat conftest.err` 7390$RM conftest* 7391 7392ac_outfile=conftest.$ac_objext 7393echo "$lt_simple_link_test_code" >conftest.$ac_ext 7394eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7395_lt_linker_boilerplate=`cat conftest.err` 7396$RM -r conftest* 7397 7398 7399## CAVEAT EMPTOR: 7400## There is no encapsulation within the following macros, do not change 7401## the running order or otherwise move them around unless you know exactly 7402## what you are doing... 7403if test -n "$compiler"; then 7404 7405lt_prog_compiler_no_builtin_flag= 7406 7407if test "$GCC" = yes; then 7408 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7409 7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7411$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7412if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 7413 $as_echo_n "(cached) " >&6 7414else 7415 lt_cv_prog_compiler_rtti_exceptions=no 7416 ac_outfile=conftest.$ac_objext 7417 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7418 lt_compiler_flag="-fno-rtti -fno-exceptions" 7419 # Insert the option either (1) after the last *FLAGS variable, or 7420 # (2) before a word containing "conftest.", or (3) at the end. 7421 # Note that $ac_compile itself does not contain backslashes and begins 7422 # with a dollar sign (not a hyphen), so the echo should work correctly. 7423 # The option is referenced via a variable to avoid confusing sed. 7424 lt_compile=`echo "$ac_compile" | $SED \ 7425 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7426 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7427 -e 's:$: $lt_compiler_flag:'` 7428 (eval echo "\"\$as_me:7428: $lt_compile\"" >&5) 7429 (eval "$lt_compile" 2>conftest.err) 7430 ac_status=$? 7431 cat conftest.err >&5 7432 echo "$as_me:7432: \$? = $ac_status" >&5 7433 if (exit $ac_status) && test -s "$ac_outfile"; then 7434 # The compiler can only warn and ignore the option if not recognized 7435 # So say no if there are warnings other than the usual output. 7436 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7437 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7438 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7439 lt_cv_prog_compiler_rtti_exceptions=yes 7440 fi 7441 fi 7442 $RM conftest* 7443 7444fi 7445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7446$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7447 7448if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7449 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7450else 7451 : 7452fi 7453 7454fi 7455 7456 7457 7458 7459 7460 7461 lt_prog_compiler_wl= 7462lt_prog_compiler_pic= 7463lt_prog_compiler_static= 7464 7465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 7466$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7467 7468 if test "$GCC" = yes; then 7469 lt_prog_compiler_wl='-Wl,' 7470 lt_prog_compiler_static='-static' 7471 7472 case $host_os in 7473 aix*) 7474 # All AIX code is PIC. 7475 if test "$host_cpu" = ia64; then 7476 # AIX 5 now supports IA64 processor 7477 lt_prog_compiler_static='-Bstatic' 7478 fi 7479 ;; 7480 7481 amigaos*) 7482 case $host_cpu in 7483 powerpc) 7484 # see comment about AmigaOS4 .so support 7485 lt_prog_compiler_pic='-fPIC' 7486 ;; 7487 m68k) 7488 # FIXME: we need at least 68020 code to build shared libraries, but 7489 # adding the `-m68020' flag to GCC prevents building anything better, 7490 # like `-m68040'. 7491 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7492 ;; 7493 esac 7494 ;; 7495 7496 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7497 # PIC is the default for these OSes. 7498 ;; 7499 7500 mingw* | cygwin* | pw32* | os2* | cegcc*) 7501 # This hack is so that the source file can tell whether it is being 7502 # built for inclusion in a dll (and should export symbols for example). 7503 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7504 # (--disable-auto-import) libraries 7505 lt_prog_compiler_pic='-DDLL_EXPORT' 7506 ;; 7507 7508 darwin* | rhapsody*) 7509 # PIC is the default on this platform 7510 # Common symbols not allowed in MH_DYLIB files 7511 lt_prog_compiler_pic='-fno-common' 7512 ;; 7513 7514 hpux*) 7515 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7516 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7517 # sets the default TLS model and affects inlining. 7518 case $host_cpu in 7519 hppa*64*) 7520 # +Z the default 7521 ;; 7522 *) 7523 lt_prog_compiler_pic='-fPIC' 7524 ;; 7525 esac 7526 ;; 7527 7528 interix[3-9]*) 7529 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7530 # Instead, we relocate shared libraries at runtime. 7531 ;; 7532 7533 msdosdjgpp*) 7534 # Just because we use GCC doesn't mean we suddenly get shared libraries 7535 # on systems that don't support them. 7536 lt_prog_compiler_can_build_shared=no 7537 enable_shared=no 7538 ;; 7539 7540 *nto* | *qnx*) 7541 # QNX uses GNU C++, but need to define -shared option too, otherwise 7542 # it will coredump. 7543 lt_prog_compiler_pic='-fPIC -shared' 7544 ;; 7545 7546 sysv4*MP*) 7547 if test -d /usr/nec; then 7548 lt_prog_compiler_pic=-Kconform_pic 7549 fi 7550 ;; 7551 7552 *) 7553 lt_prog_compiler_pic='-fPIC' 7554 ;; 7555 esac 7556 else 7557 # PORTME Check for flag to pass linker flags through the system compiler. 7558 case $host_os in 7559 aix*) 7560 lt_prog_compiler_wl='-Wl,' 7561 if test "$host_cpu" = ia64; then 7562 # AIX 5 now supports IA64 processor 7563 lt_prog_compiler_static='-Bstatic' 7564 else 7565 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7566 fi 7567 ;; 7568 7569 mingw* | cygwin* | pw32* | os2* | cegcc*) 7570 # This hack is so that the source file can tell whether it is being 7571 # built for inclusion in a dll (and should export symbols for example). 7572 lt_prog_compiler_pic='-DDLL_EXPORT' 7573 ;; 7574 7575 hpux9* | hpux10* | hpux11*) 7576 lt_prog_compiler_wl='-Wl,' 7577 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7578 # not for PA HP-UX. 7579 case $host_cpu in 7580 hppa*64*|ia64*) 7581 # +Z the default 7582 ;; 7583 *) 7584 lt_prog_compiler_pic='+Z' 7585 ;; 7586 esac 7587 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7588 lt_prog_compiler_static='${wl}-a ${wl}archive' 7589 ;; 7590 7591 irix5* | irix6* | nonstopux*) 7592 lt_prog_compiler_wl='-Wl,' 7593 # PIC (with -KPIC) is the default. 7594 lt_prog_compiler_static='-non_shared' 7595 ;; 7596 7597 linux* | k*bsd*-gnu) 7598 case $cc_basename in 7599 # old Intel for x86_64 which still supported -KPIC. 7600 ecc*) 7601 lt_prog_compiler_wl='-Wl,' 7602 lt_prog_compiler_pic='-KPIC' 7603 lt_prog_compiler_static='-static' 7604 ;; 7605 # icc used to be incompatible with GCC. 7606 # ICC 10 doesn't accept -KPIC any more. 7607 icc* | ifort*) 7608 lt_prog_compiler_wl='-Wl,' 7609 lt_prog_compiler_pic='-fPIC' 7610 lt_prog_compiler_static='-static' 7611 ;; 7612 # Lahey Fortran 8.1. 7613 lf95*) 7614 lt_prog_compiler_wl='-Wl,' 7615 lt_prog_compiler_pic='--shared' 7616 lt_prog_compiler_static='--static' 7617 ;; 7618 pgcc* | pgf77* | pgf90* | pgf95*) 7619 # Portland Group compilers (*not* the Pentium gcc compiler, 7620 # which looks to be a dead project) 7621 lt_prog_compiler_wl='-Wl,' 7622 lt_prog_compiler_pic='-fpic' 7623 lt_prog_compiler_static='-Bstatic' 7624 ;; 7625 ccc*) 7626 lt_prog_compiler_wl='-Wl,' 7627 # All Alpha code is PIC. 7628 lt_prog_compiler_static='-non_shared' 7629 ;; 7630 xl*) 7631 # IBM XL C 8.0/Fortran 10.1 on PPC 7632 lt_prog_compiler_wl='-Wl,' 7633 lt_prog_compiler_pic='-qpic' 7634 lt_prog_compiler_static='-qstaticlink' 7635 ;; 7636 *) 7637 case `$CC -V 2>&1 | sed 5q` in 7638 *Sun\ C*) 7639 # Sun C 5.9 7640 lt_prog_compiler_pic='-KPIC' 7641 lt_prog_compiler_static='-Bstatic' 7642 lt_prog_compiler_wl='-Wl,' 7643 ;; 7644 *Sun\ F*) 7645 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7646 lt_prog_compiler_pic='-KPIC' 7647 lt_prog_compiler_static='-Bstatic' 7648 lt_prog_compiler_wl='' 7649 ;; 7650 esac 7651 ;; 7652 esac 7653 ;; 7654 7655 newsos6) 7656 lt_prog_compiler_pic='-KPIC' 7657 lt_prog_compiler_static='-Bstatic' 7658 ;; 7659 7660 *nto* | *qnx*) 7661 # QNX uses GNU C++, but need to define -shared option too, otherwise 7662 # it will coredump. 7663 lt_prog_compiler_pic='-fPIC -shared' 7664 ;; 7665 7666 osf3* | osf4* | osf5*) 7667 lt_prog_compiler_wl='-Wl,' 7668 # All OSF/1 code is PIC. 7669 lt_prog_compiler_static='-non_shared' 7670 ;; 7671 7672 rdos*) 7673 lt_prog_compiler_static='-non_shared' 7674 ;; 7675 7676 solaris*) 7677 lt_prog_compiler_pic='-KPIC' 7678 lt_prog_compiler_static='-Bstatic' 7679 case $cc_basename in 7680 f77* | f90* | f95*) 7681 lt_prog_compiler_wl='-Qoption ld ';; 7682 *) 7683 lt_prog_compiler_wl='-Wl,';; 7684 esac 7685 ;; 7686 7687 sunos4*) 7688 lt_prog_compiler_wl='-Qoption ld ' 7689 lt_prog_compiler_pic='-PIC' 7690 lt_prog_compiler_static='-Bstatic' 7691 ;; 7692 7693 sysv4 | sysv4.2uw2* | sysv4.3*) 7694 lt_prog_compiler_wl='-Wl,' 7695 lt_prog_compiler_pic='-KPIC' 7696 lt_prog_compiler_static='-Bstatic' 7697 ;; 7698 7699 sysv4*MP*) 7700 if test -d /usr/nec ;then 7701 lt_prog_compiler_pic='-Kconform_pic' 7702 lt_prog_compiler_static='-Bstatic' 7703 fi 7704 ;; 7705 7706 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7707 lt_prog_compiler_wl='-Wl,' 7708 lt_prog_compiler_pic='-KPIC' 7709 lt_prog_compiler_static='-Bstatic' 7710 ;; 7711 7712 unicos*) 7713 lt_prog_compiler_wl='-Wl,' 7714 lt_prog_compiler_can_build_shared=no 7715 ;; 7716 7717 uts4*) 7718 lt_prog_compiler_pic='-pic' 7719 lt_prog_compiler_static='-Bstatic' 7720 ;; 7721 7722 *) 7723 lt_prog_compiler_can_build_shared=no 7724 ;; 7725 esac 7726 fi 7727 7728case $host_os in 7729 # For platforms which do not support PIC, -DPIC is meaningless: 7730 *djgpp*) 7731 lt_prog_compiler_pic= 7732 ;; 7733 *) 7734 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7735 ;; 7736esac 7737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 7738$as_echo "$lt_prog_compiler_pic" >&6; } 7739 7740 7741 7742 7743 7744 7745# 7746# Check to make sure the PIC flag actually works. 7747# 7748if test -n "$lt_prog_compiler_pic"; then 7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7750$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7751if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 7752 $as_echo_n "(cached) " >&6 7753else 7754 lt_cv_prog_compiler_pic_works=no 7755 ac_outfile=conftest.$ac_objext 7756 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7757 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7758 # Insert the option either (1) after the last *FLAGS variable, or 7759 # (2) before a word containing "conftest.", or (3) at the end. 7760 # Note that $ac_compile itself does not contain backslashes and begins 7761 # with a dollar sign (not a hyphen), so the echo should work correctly. 7762 # The option is referenced via a variable to avoid confusing sed. 7763 lt_compile=`echo "$ac_compile" | $SED \ 7764 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7765 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7766 -e 's:$: $lt_compiler_flag:'` 7767 (eval echo "\"\$as_me:7767: $lt_compile\"" >&5) 7768 (eval "$lt_compile" 2>conftest.err) 7769 ac_status=$? 7770 cat conftest.err >&5 7771 echo "$as_me:7771: \$? = $ac_status" >&5 7772 if (exit $ac_status) && test -s "$ac_outfile"; then 7773 # The compiler can only warn and ignore the option if not recognized 7774 # So say no if there are warnings other than the usual output. 7775 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7776 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7777 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7778 lt_cv_prog_compiler_pic_works=yes 7779 fi 7780 fi 7781 $RM conftest* 7782 7783fi 7784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 7785$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7786 7787if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7788 case $lt_prog_compiler_pic in 7789 "" | " "*) ;; 7790 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7791 esac 7792else 7793 lt_prog_compiler_pic= 7794 lt_prog_compiler_can_build_shared=no 7795fi 7796 7797fi 7798 7799 7800 7801 7802 7803 7804# 7805# Check to make sure the static flag actually works. 7806# 7807wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7809$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7810if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 7811 $as_echo_n "(cached) " >&6 7812else 7813 lt_cv_prog_compiler_static_works=no 7814 save_LDFLAGS="$LDFLAGS" 7815 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7816 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7817 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7818 # The linker can only warn and ignore the option if not recognized 7819 # So say no if there are warnings 7820 if test -s conftest.err; then 7821 # Append any errors to the config.log. 7822 cat conftest.err 1>&5 7823 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7824 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7825 if diff conftest.exp conftest.er2 >/dev/null; then 7826 lt_cv_prog_compiler_static_works=yes 7827 fi 7828 else 7829 lt_cv_prog_compiler_static_works=yes 7830 fi 7831 fi 7832 $RM -r conftest* 7833 LDFLAGS="$save_LDFLAGS" 7834 7835fi 7836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 7837$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7838 7839if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7840 : 7841else 7842 lt_prog_compiler_static= 7843fi 7844 7845 7846 7847 7848 7849 7850 7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 7852$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7853if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 7854 $as_echo_n "(cached) " >&6 7855else 7856 lt_cv_prog_compiler_c_o=no 7857 $RM -r conftest 2>/dev/null 7858 mkdir conftest 7859 cd conftest 7860 mkdir out 7861 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7862 7863 lt_compiler_flag="-o out/conftest2.$ac_objext" 7864 # Insert the option either (1) after the last *FLAGS variable, or 7865 # (2) before a word containing "conftest.", or (3) at the end. 7866 # Note that $ac_compile itself does not contain backslashes and begins 7867 # with a dollar sign (not a hyphen), so the echo should work correctly. 7868 lt_compile=`echo "$ac_compile" | $SED \ 7869 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7870 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7871 -e 's:$: $lt_compiler_flag:'` 7872 (eval echo "\"\$as_me:7872: $lt_compile\"" >&5) 7873 (eval "$lt_compile" 2>out/conftest.err) 7874 ac_status=$? 7875 cat out/conftest.err >&5 7876 echo "$as_me:7876: \$? = $ac_status" >&5 7877 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7878 then 7879 # The compiler can only warn and ignore the option if not recognized 7880 # So say no if there are warnings 7881 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7882 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7883 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7884 lt_cv_prog_compiler_c_o=yes 7885 fi 7886 fi 7887 chmod u+w . 2>&5 7888 $RM conftest* 7889 # SGI C++ compiler will create directory out/ii_files/ for 7890 # template instantiation 7891 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7892 $RM out/* && rmdir out 7893 cd .. 7894 $RM -r conftest 7895 $RM conftest* 7896 7897fi 7898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 7899$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7900 7901 7902 7903 7904 7905 7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 7907$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7908if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 7909 $as_echo_n "(cached) " >&6 7910else 7911 lt_cv_prog_compiler_c_o=no 7912 $RM -r conftest 2>/dev/null 7913 mkdir conftest 7914 cd conftest 7915 mkdir out 7916 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7917 7918 lt_compiler_flag="-o out/conftest2.$ac_objext" 7919 # Insert the option either (1) after the last *FLAGS variable, or 7920 # (2) before a word containing "conftest.", or (3) at the end. 7921 # Note that $ac_compile itself does not contain backslashes and begins 7922 # with a dollar sign (not a hyphen), so the echo should work correctly. 7923 lt_compile=`echo "$ac_compile" | $SED \ 7924 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7925 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7926 -e 's:$: $lt_compiler_flag:'` 7927 (eval echo "\"\$as_me:7927: $lt_compile\"" >&5) 7928 (eval "$lt_compile" 2>out/conftest.err) 7929 ac_status=$? 7930 cat out/conftest.err >&5 7931 echo "$as_me:7931: \$? = $ac_status" >&5 7932 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7933 then 7934 # The compiler can only warn and ignore the option if not recognized 7935 # So say no if there are warnings 7936 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7937 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7938 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7939 lt_cv_prog_compiler_c_o=yes 7940 fi 7941 fi 7942 chmod u+w . 2>&5 7943 $RM conftest* 7944 # SGI C++ compiler will create directory out/ii_files/ for 7945 # template instantiation 7946 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7947 $RM out/* && rmdir out 7948 cd .. 7949 $RM -r conftest 7950 $RM conftest* 7951 7952fi 7953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 7954$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7955 7956 7957 7958 7959hard_links="nottested" 7960if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7961 # do not overwrite the value of need_locks provided by the user 7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 7963$as_echo_n "checking if we can lock with hard links... " >&6; } 7964 hard_links=yes 7965 $RM conftest* 7966 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7967 touch conftest.a 7968 ln conftest.a conftest.b 2>&5 || hard_links=no 7969 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 7971$as_echo "$hard_links" >&6; } 7972 if test "$hard_links" = no; then 7973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7974$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7975 need_locks=warn 7976 fi 7977else 7978 need_locks=no 7979fi 7980 7981 7982 7983 7984 7985 7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7987$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 7988 7989 runpath_var= 7990 allow_undefined_flag= 7991 always_export_symbols=no 7992 archive_cmds= 7993 archive_expsym_cmds= 7994 compiler_needs_object=no 7995 enable_shared_with_static_runtimes=no 7996 export_dynamic_flag_spec= 7997 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7998 hardcode_automatic=no 7999 hardcode_direct=no 8000 hardcode_direct_absolute=no 8001 hardcode_libdir_flag_spec= 8002 hardcode_libdir_flag_spec_ld= 8003 hardcode_libdir_separator= 8004 hardcode_minus_L=no 8005 hardcode_shlibpath_var=unsupported 8006 inherit_rpath=no 8007 link_all_deplibs=unknown 8008 module_cmds= 8009 module_expsym_cmds= 8010 old_archive_from_new_cmds= 8011 old_archive_from_expsyms_cmds= 8012 thread_safe_flag_spec= 8013 whole_archive_flag_spec= 8014 # include_expsyms should be a list of space-separated symbols to be *always* 8015 # included in the symbol list 8016 include_expsyms= 8017 # exclude_expsyms can be an extended regexp of symbols to exclude 8018 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8019 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8020 # as well as any symbol that contains `d'. 8021 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8022 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8023 # platforms (ab)use it in PIC code, but their linkers get confused if 8024 # the symbol is explicitly referenced. Since portable code cannot 8025 # rely on this symbol name, it's probably fine to never include it in 8026 # preloaded symbol tables. 8027 # Exclude shared library initialization/finalization symbols. 8028 extract_expsyms_cmds= 8029 8030 case $host_os in 8031 cygwin* | mingw* | pw32* | cegcc*) 8032 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8033 # When not using gcc, we currently assume that we are using 8034 # Microsoft Visual C++. 8035 if test "$GCC" != yes; then 8036 with_gnu_ld=no 8037 fi 8038 ;; 8039 interix*) 8040 # we just hope/assume this is gcc and not c89 (= MSVC++) 8041 with_gnu_ld=yes 8042 ;; 8043 openbsd*) 8044 with_gnu_ld=no 8045 ;; 8046 esac 8047 8048 ld_shlibs=yes 8049 if test "$with_gnu_ld" = yes; then 8050 # If archive_cmds runs LD, not CC, wlarc should be empty 8051 wlarc='${wl}' 8052 8053 # Set some defaults for GNU ld with shared library support. These 8054 # are reset later if shared libraries are not supported. Putting them 8055 # here allows them to be overridden if necessary. 8056 runpath_var=LD_RUN_PATH 8057 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8058 export_dynamic_flag_spec='${wl}--export-dynamic' 8059 # ancient GNU ld didn't support --whole-archive et. al. 8060 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8061 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8062 else 8063 whole_archive_flag_spec= 8064 fi 8065 supports_anon_versioning=no 8066 case `$LD -v 2>&1` in 8067 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8068 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8069 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8070 *\ 2.11.*) ;; # other 2.11 versions 8071 *) supports_anon_versioning=yes ;; 8072 esac 8073 8074 # See if GNU ld supports shared libraries. 8075 case $host_os in 8076 aix[3-9]*) 8077 # On AIX/PPC, the GNU linker is very broken 8078 if test "$host_cpu" != ia64; then 8079 ld_shlibs=no 8080 cat <<_LT_EOF 1>&2 8081 8082*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8083*** to be unable to reliably create shared libraries on AIX. 8084*** Therefore, libtool is disabling shared libraries support. If you 8085*** really care for shared libraries, you may want to modify your PATH 8086*** so that a non-GNU linker is found, and then restart. 8087 8088_LT_EOF 8089 fi 8090 ;; 8091 8092 amigaos*) 8093 case $host_cpu in 8094 powerpc) 8095 # see comment about AmigaOS4 .so support 8096 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8097 archive_expsym_cmds='' 8098 ;; 8099 m68k) 8100 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)' 8101 hardcode_libdir_flag_spec='-L$libdir' 8102 hardcode_minus_L=yes 8103 ;; 8104 esac 8105 ;; 8106 8107 beos*) 8108 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8109 allow_undefined_flag=unsupported 8110 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8111 # support --undefined. This deserves some investigation. FIXME 8112 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8113 else 8114 ld_shlibs=no 8115 fi 8116 ;; 8117 8118 cygwin* | mingw* | pw32* | cegcc*) 8119 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8120 # as there is no search path for DLLs. 8121 hardcode_libdir_flag_spec='-L$libdir' 8122 allow_undefined_flag=unsupported 8123 always_export_symbols=no 8124 enable_shared_with_static_runtimes=yes 8125 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8126 8127 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8128 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8129 # If the export-symbols file already is a .def file (1st line 8130 # is EXPORTS), use it as is; otherwise, prepend... 8131 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8132 cp $export_symbols $output_objdir/$soname.def; 8133 else 8134 echo EXPORTS > $output_objdir/$soname.def; 8135 cat $export_symbols >> $output_objdir/$soname.def; 8136 fi~ 8137 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8138 else 8139 ld_shlibs=no 8140 fi 8141 ;; 8142 8143 interix[3-9]*) 8144 hardcode_direct=no 8145 hardcode_shlibpath_var=no 8146 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8147 export_dynamic_flag_spec='${wl}-E' 8148 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8149 # Instead, shared libraries are loaded at an image base (0x10000000 by 8150 # default) and relocated if they conflict, which is a slow very memory 8151 # consuming and fragmenting process. To avoid this, we pick a random, 8152 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8153 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8154 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8155 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' 8156 ;; 8157 8158 gnu* | linux* | tpf* | k*bsd*-gnu) 8159 tmp_diet=no 8160 if test "$host_os" = linux-dietlibc; then 8161 case $cc_basename in 8162 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8163 esac 8164 fi 8165 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8166 && test "$tmp_diet" = no 8167 then 8168 tmp_addflag= 8169 tmp_sharedflag='-shared' 8170 case $cc_basename,$host_cpu in 8171 pgcc*) # Portland Group C compiler 8172 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' 8173 tmp_addflag=' $pic_flag' 8174 ;; 8175 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8176 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' 8177 tmp_addflag=' $pic_flag -Mnomain' ;; 8178 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8179 tmp_addflag=' -i_dynamic' ;; 8180 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8181 tmp_addflag=' -i_dynamic -nofor_main' ;; 8182 ifc* | ifort*) # Intel Fortran compiler 8183 tmp_addflag=' -nofor_main' ;; 8184 lf95*) # Lahey Fortran 8.1 8185 whole_archive_flag_spec= 8186 tmp_sharedflag='--shared' ;; 8187 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8188 tmp_sharedflag='-qmkshrobj' 8189 tmp_addflag= ;; 8190 esac 8191 case `$CC -V 2>&1 | sed 5q` in 8192 *Sun\ C*) # Sun C 5.9 8193 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' 8194 compiler_needs_object=yes 8195 tmp_sharedflag='-G' ;; 8196 *Sun\ F*) # Sun Fortran 8.3 8197 tmp_sharedflag='-G' ;; 8198 esac 8199 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8200 8201 if test "x$supports_anon_versioning" = xyes; then 8202 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8203 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8204 echo "local: *; };" >> $output_objdir/$libname.ver~ 8205 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8206 fi 8207 8208 case $cc_basename in 8209 xlf*) 8210 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8211 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8212 hardcode_libdir_flag_spec= 8213 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8214 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8215 if test "x$supports_anon_versioning" = xyes; then 8216 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8217 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8218 echo "local: *; };" >> $output_objdir/$libname.ver~ 8219 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8220 fi 8221 ;; 8222 esac 8223 else 8224 ld_shlibs=no 8225 fi 8226 ;; 8227 8228 netbsd*) 8229 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8230 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8231 wlarc= 8232 else 8233 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8234 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8235 fi 8236 ;; 8237 8238 solaris*) 8239 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8240 ld_shlibs=no 8241 cat <<_LT_EOF 1>&2 8242 8243*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8244*** create shared libraries on Solaris systems. Therefore, libtool 8245*** is disabling shared libraries support. We urge you to upgrade GNU 8246*** binutils to release 2.9.1 or newer. Another option is to modify 8247*** your PATH or compiler configuration so that the native linker is 8248*** used, and then restart. 8249 8250_LT_EOF 8251 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8252 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8253 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8254 else 8255 ld_shlibs=no 8256 fi 8257 ;; 8258 8259 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8260 case `$LD -v 2>&1` in 8261 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8262 ld_shlibs=no 8263 cat <<_LT_EOF 1>&2 8264 8265*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8266*** reliably create shared libraries on SCO systems. Therefore, libtool 8267*** is disabling shared libraries support. We urge you to upgrade GNU 8268*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8269*** your PATH or compiler configuration so that the native linker is 8270*** used, and then restart. 8271 8272_LT_EOF 8273 ;; 8274 *) 8275 # For security reasons, it is highly recommended that you always 8276 # use absolute paths for naming shared libraries, and exclude the 8277 # DT_RUNPATH tag from executables and libraries. But doing so 8278 # requires that you compile everything twice, which is a pain. 8279 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8280 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8281 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8282 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8283 else 8284 ld_shlibs=no 8285 fi 8286 ;; 8287 esac 8288 ;; 8289 8290 sunos4*) 8291 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8292 wlarc= 8293 hardcode_direct=yes 8294 hardcode_shlibpath_var=no 8295 ;; 8296 8297 *) 8298 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8299 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8300 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8301 else 8302 ld_shlibs=no 8303 fi 8304 ;; 8305 esac 8306 8307 if test "$ld_shlibs" = no; then 8308 runpath_var= 8309 hardcode_libdir_flag_spec= 8310 export_dynamic_flag_spec= 8311 whole_archive_flag_spec= 8312 fi 8313 else 8314 # PORTME fill in a description of your system's linker (not GNU ld) 8315 case $host_os in 8316 aix3*) 8317 allow_undefined_flag=unsupported 8318 always_export_symbols=yes 8319 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' 8320 # Note: this linker hardcodes the directories in LIBPATH if there 8321 # are no directories specified by -L. 8322 hardcode_minus_L=yes 8323 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8324 # Neither direct hardcoding nor static linking is supported with a 8325 # broken collect2. 8326 hardcode_direct=unsupported 8327 fi 8328 ;; 8329 8330 aix[4-9]*) 8331 if test "$host_cpu" = ia64; then 8332 # On IA64, the linker does run time linking by default, so we don't 8333 # have to do anything special. 8334 aix_use_runtimelinking=no 8335 exp_sym_flag='-Bexport' 8336 no_entry_flag="" 8337 else 8338 # If we're using GNU nm, then we don't want the "-C" option. 8339 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8340 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8341 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' 8342 else 8343 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' 8344 fi 8345 aix_use_runtimelinking=no 8346 8347 # Test if we are trying to use run time linking or normal 8348 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8349 # need to do runtime linking. 8350 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8351 for ld_flag in $LDFLAGS; do 8352 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8353 aix_use_runtimelinking=yes 8354 break 8355 fi 8356 done 8357 ;; 8358 esac 8359 8360 exp_sym_flag='-bexport' 8361 no_entry_flag='-bnoentry' 8362 fi 8363 8364 # When large executables or shared objects are built, AIX ld can 8365 # have problems creating the table of contents. If linking a library 8366 # or program results in "error TOC overflow" add -mminimal-toc to 8367 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8368 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8369 8370 archive_cmds='' 8371 hardcode_direct=yes 8372 hardcode_direct_absolute=yes 8373 hardcode_libdir_separator=':' 8374 link_all_deplibs=yes 8375 file_list_spec='${wl}-f,' 8376 8377 if test "$GCC" = yes; then 8378 case $host_os in aix4.[012]|aix4.[012].*) 8379 # We only want to do this on AIX 4.2 and lower, the check 8380 # below for broken collect2 doesn't work under 4.3+ 8381 collect2name=`${CC} -print-prog-name=collect2` 8382 if test -f "$collect2name" && 8383 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8384 then 8385 # We have reworked collect2 8386 : 8387 else 8388 # We have old collect2 8389 hardcode_direct=unsupported 8390 # It fails to find uninstalled libraries when the uninstalled 8391 # path is not listed in the libpath. Setting hardcode_minus_L 8392 # to unsupported forces relinking 8393 hardcode_minus_L=yes 8394 hardcode_libdir_flag_spec='-L$libdir' 8395 hardcode_libdir_separator= 8396 fi 8397 ;; 8398 esac 8399 shared_flag='-shared' 8400 if test "$aix_use_runtimelinking" = yes; then 8401 shared_flag="$shared_flag "'${wl}-G' 8402 fi 8403 else 8404 # not using gcc 8405 if test "$host_cpu" = ia64; then 8406 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8407 # chokes on -Wl,-G. The following line is correct: 8408 shared_flag='-G' 8409 else 8410 if test "$aix_use_runtimelinking" = yes; then 8411 shared_flag='${wl}-G' 8412 else 8413 shared_flag='${wl}-bM:SRE' 8414 fi 8415 fi 8416 fi 8417 8418 export_dynamic_flag_spec='${wl}-bexpall' 8419 # It seems that -bexpall does not export symbols beginning with 8420 # underscore (_), so it is better to generate a list of symbols to export. 8421 always_export_symbols=yes 8422 if test "$aix_use_runtimelinking" = yes; then 8423 # Warning - without using the other runtime loading flags (-brtl), 8424 # -berok will link without error, but may produce a broken library. 8425 allow_undefined_flag='-berok' 8426 # Determine the default libpath from the value encoded in an 8427 # empty executable. 8428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8429/* end confdefs.h. */ 8430 8431int 8432main () 8433{ 8434 8435 ; 8436 return 0; 8437} 8438_ACEOF 8439if ac_fn_c_try_link "$LINENO"; then : 8440 8441lt_aix_libpath_sed=' 8442 /Import File Strings/,/^$/ { 8443 /^0/ { 8444 s/^0 *\(.*\)$/\1/ 8445 p 8446 } 8447 }' 8448aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8449# Check for a 64-bit object if we didn't find anything. 8450if test -z "$aix_libpath"; then 8451 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8452fi 8453fi 8454rm -f core conftest.err conftest.$ac_objext \ 8455 conftest$ac_exeext conftest.$ac_ext 8456if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8457 8458 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8459 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" 8460 else 8461 if test "$host_cpu" = ia64; then 8462 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8463 allow_undefined_flag="-z nodefs" 8464 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" 8465 else 8466 # Determine the default libpath from the value encoded in an 8467 # empty executable. 8468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8469/* end confdefs.h. */ 8470 8471int 8472main () 8473{ 8474 8475 ; 8476 return 0; 8477} 8478_ACEOF 8479if ac_fn_c_try_link "$LINENO"; then : 8480 8481lt_aix_libpath_sed=' 8482 /Import File Strings/,/^$/ { 8483 /^0/ { 8484 s/^0 *\(.*\)$/\1/ 8485 p 8486 } 8487 }' 8488aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8489# Check for a 64-bit object if we didn't find anything. 8490if test -z "$aix_libpath"; then 8491 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8492fi 8493fi 8494rm -f core conftest.err conftest.$ac_objext \ 8495 conftest$ac_exeext conftest.$ac_ext 8496if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8497 8498 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8499 # Warning - without using the other run time loading flags, 8500 # -berok will link without error, but may produce a broken library. 8501 no_undefined_flag=' ${wl}-bernotok' 8502 allow_undefined_flag=' ${wl}-berok' 8503 # Exported symbols can be pulled into shared objects from archives 8504 whole_archive_flag_spec='$convenience' 8505 archive_cmds_need_lc=yes 8506 # This is similar to how AIX traditionally builds its shared libraries. 8507 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' 8508 fi 8509 fi 8510 ;; 8511 8512 amigaos*) 8513 case $host_cpu in 8514 powerpc) 8515 # see comment about AmigaOS4 .so support 8516 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8517 archive_expsym_cmds='' 8518 ;; 8519 m68k) 8520 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)' 8521 hardcode_libdir_flag_spec='-L$libdir' 8522 hardcode_minus_L=yes 8523 ;; 8524 esac 8525 ;; 8526 8527 bsdi[45]*) 8528 export_dynamic_flag_spec=-rdynamic 8529 ;; 8530 8531 cygwin* | mingw* | pw32* | cegcc*) 8532 # When not using gcc, we currently assume that we are using 8533 # Microsoft Visual C++. 8534 # hardcode_libdir_flag_spec is actually meaningless, as there is 8535 # no search path for DLLs. 8536 hardcode_libdir_flag_spec=' ' 8537 allow_undefined_flag=unsupported 8538 # Tell ltmain to make .lib files, not .a files. 8539 libext=lib 8540 # Tell ltmain to make .dll files, not .so files. 8541 shrext_cmds=".dll" 8542 # FIXME: Setting linknames here is a bad hack. 8543 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8544 # The linker will automatically build a .lib file if we build a DLL. 8545 old_archive_from_new_cmds='true' 8546 # FIXME: Should let the user specify the lib program. 8547 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8548 fix_srcfile_path='`cygpath -w "$srcfile"`' 8549 enable_shared_with_static_runtimes=yes 8550 ;; 8551 8552 darwin* | rhapsody*) 8553 8554 8555 archive_cmds_need_lc=no 8556 hardcode_direct=no 8557 hardcode_automatic=yes 8558 hardcode_shlibpath_var=unsupported 8559 whole_archive_flag_spec='' 8560 link_all_deplibs=yes 8561 allow_undefined_flag="$_lt_dar_allow_undefined" 8562 case $cc_basename in 8563 ifort*) _lt_dar_can_shared=yes ;; 8564 *) _lt_dar_can_shared=$GCC ;; 8565 esac 8566 if test "$_lt_dar_can_shared" = "yes"; then 8567 output_verbose_link_cmd=echo 8568 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8569 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8570 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}" 8571 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}" 8572 8573 else 8574 ld_shlibs=no 8575 fi 8576 8577 ;; 8578 8579 dgux*) 8580 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8581 hardcode_libdir_flag_spec='-L$libdir' 8582 hardcode_shlibpath_var=no 8583 ;; 8584 8585 freebsd1*) 8586 ld_shlibs=no 8587 ;; 8588 8589 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8590 # support. Future versions do this automatically, but an explicit c++rt0.o 8591 # does not break anything, and helps significantly (at the cost of a little 8592 # extra space). 8593 freebsd2.2*) 8594 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8595 hardcode_libdir_flag_spec='-R$libdir' 8596 hardcode_direct=yes 8597 hardcode_shlibpath_var=no 8598 ;; 8599 8600 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8601 freebsd2*) 8602 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8603 hardcode_direct=yes 8604 hardcode_minus_L=yes 8605 hardcode_shlibpath_var=no 8606 ;; 8607 8608 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8609 freebsd* | dragonfly*) 8610 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8611 hardcode_libdir_flag_spec='-R$libdir' 8612 hardcode_direct=yes 8613 hardcode_shlibpath_var=no 8614 ;; 8615 8616 hpux9*) 8617 if test "$GCC" = yes; then 8618 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' 8619 else 8620 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' 8621 fi 8622 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8623 hardcode_libdir_separator=: 8624 hardcode_direct=yes 8625 8626 # hardcode_minus_L: Not really in the search PATH, 8627 # but as the default location of the library. 8628 hardcode_minus_L=yes 8629 export_dynamic_flag_spec='${wl}-E' 8630 ;; 8631 8632 hpux10*) 8633 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8634 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8635 else 8636 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8637 fi 8638 if test "$with_gnu_ld" = no; then 8639 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8640 hardcode_libdir_flag_spec_ld='+b $libdir' 8641 hardcode_libdir_separator=: 8642 hardcode_direct=yes 8643 hardcode_direct_absolute=yes 8644 export_dynamic_flag_spec='${wl}-E' 8645 # hardcode_minus_L: Not really in the search PATH, 8646 # but as the default location of the library. 8647 hardcode_minus_L=yes 8648 fi 8649 ;; 8650 8651 hpux11*) 8652 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8653 case $host_cpu in 8654 hppa*64*) 8655 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8656 ;; 8657 ia64*) 8658 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8659 ;; 8660 *) 8661 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8662 ;; 8663 esac 8664 else 8665 case $host_cpu in 8666 hppa*64*) 8667 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8668 ;; 8669 ia64*) 8670 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8671 ;; 8672 *) 8673 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8674 ;; 8675 esac 8676 fi 8677 if test "$with_gnu_ld" = no; then 8678 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8679 hardcode_libdir_separator=: 8680 8681 case $host_cpu in 8682 hppa*64*|ia64*) 8683 hardcode_direct=no 8684 hardcode_shlibpath_var=no 8685 ;; 8686 *) 8687 hardcode_direct=yes 8688 hardcode_direct_absolute=yes 8689 export_dynamic_flag_spec='${wl}-E' 8690 8691 # hardcode_minus_L: Not really in the search PATH, 8692 # but as the default location of the library. 8693 hardcode_minus_L=yes 8694 ;; 8695 esac 8696 fi 8697 ;; 8698 8699 irix5* | irix6* | nonstopux*) 8700 if test "$GCC" = yes; then 8701 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' 8702 # Try to use the -exported_symbol ld option, if it does not 8703 # work, assume that -exports_file does not work either and 8704 # implicitly export all symbols. 8705 save_LDFLAGS="$LDFLAGS" 8706 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8708/* end confdefs.h. */ 8709int foo(void) {} 8710_ACEOF 8711if ac_fn_c_try_link "$LINENO"; then : 8712 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' 8713 8714fi 8715rm -f core conftest.err conftest.$ac_objext \ 8716 conftest$ac_exeext conftest.$ac_ext 8717 LDFLAGS="$save_LDFLAGS" 8718 else 8719 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' 8720 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' 8721 fi 8722 archive_cmds_need_lc='no' 8723 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8724 hardcode_libdir_separator=: 8725 inherit_rpath=yes 8726 link_all_deplibs=yes 8727 ;; 8728 8729 netbsd*) 8730 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8731 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8732 else 8733 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8734 fi 8735 hardcode_libdir_flag_spec='-R$libdir' 8736 hardcode_direct=yes 8737 hardcode_shlibpath_var=no 8738 ;; 8739 8740 newsos6) 8741 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8742 hardcode_direct=yes 8743 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8744 hardcode_libdir_separator=: 8745 hardcode_shlibpath_var=no 8746 ;; 8747 8748 *nto* | *qnx*) 8749 ;; 8750 8751 openbsd*) 8752 if test -f /usr/libexec/ld.so; then 8753 hardcode_direct=yes 8754 hardcode_shlibpath_var=no 8755 hardcode_direct_absolute=yes 8756 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8757 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8758 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8759 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8760 export_dynamic_flag_spec='${wl}-E' 8761 else 8762 case $host_os in 8763 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8764 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8765 hardcode_libdir_flag_spec='-R$libdir' 8766 ;; 8767 *) 8768 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8769 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8770 ;; 8771 esac 8772 fi 8773 else 8774 ld_shlibs=no 8775 fi 8776 ;; 8777 8778 os2*) 8779 hardcode_libdir_flag_spec='-L$libdir' 8780 hardcode_minus_L=yes 8781 allow_undefined_flag=unsupported 8782 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' 8783 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8784 ;; 8785 8786 osf3*) 8787 if test "$GCC" = yes; then 8788 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8789 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' 8790 else 8791 allow_undefined_flag=' -expect_unresolved \*' 8792 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' 8793 fi 8794 archive_cmds_need_lc='no' 8795 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8796 hardcode_libdir_separator=: 8797 ;; 8798 8799 osf4* | osf5*) # as osf3* with the addition of -msym flag 8800 if test "$GCC" = yes; then 8801 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8802 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' 8803 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8804 else 8805 allow_undefined_flag=' -expect_unresolved \*' 8806 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' 8807 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~ 8808 $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' 8809 8810 # Both c and cxx compiler support -rpath directly 8811 hardcode_libdir_flag_spec='-rpath $libdir' 8812 fi 8813 archive_cmds_need_lc='no' 8814 hardcode_libdir_separator=: 8815 ;; 8816 8817 solaris*) 8818 no_undefined_flag=' -z defs' 8819 if test "$GCC" = yes; then 8820 wlarc='${wl}' 8821 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8822 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8823 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8824 else 8825 case `$CC -V 2>&1` in 8826 *"Compilers 5.0"*) 8827 wlarc='' 8828 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8829 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8830 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 8831 ;; 8832 *) 8833 wlarc='${wl}' 8834 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 8835 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8836 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8837 ;; 8838 esac 8839 fi 8840 hardcode_libdir_flag_spec='-R$libdir' 8841 hardcode_shlibpath_var=no 8842 case $host_os in 8843 solaris2.[0-5] | solaris2.[0-5].*) ;; 8844 *) 8845 # The compiler driver will combine and reorder linker options, 8846 # but understands `-z linker_flag'. GCC discards it without `$wl', 8847 # but is careful enough not to reorder. 8848 # Supported since Solaris 2.6 (maybe 2.5.1?) 8849 if test "$GCC" = yes; then 8850 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8851 else 8852 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8853 fi 8854 ;; 8855 esac 8856 link_all_deplibs=yes 8857 ;; 8858 8859 sunos4*) 8860 if test "x$host_vendor" = xsequent; then 8861 # Use $CC to link under sequent, because it throws in some extra .o 8862 # files that make .init and .fini sections work. 8863 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8864 else 8865 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8866 fi 8867 hardcode_libdir_flag_spec='-L$libdir' 8868 hardcode_direct=yes 8869 hardcode_minus_L=yes 8870 hardcode_shlibpath_var=no 8871 ;; 8872 8873 sysv4) 8874 case $host_vendor in 8875 sni) 8876 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8877 hardcode_direct=yes # is this really true??? 8878 ;; 8879 siemens) 8880 ## LD is ld it makes a PLAMLIB 8881 ## CC just makes a GrossModule. 8882 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8883 reload_cmds='$CC -r -o $output$reload_objs' 8884 hardcode_direct=no 8885 ;; 8886 motorola) 8887 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8888 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8889 ;; 8890 esac 8891 runpath_var='LD_RUN_PATH' 8892 hardcode_shlibpath_var=no 8893 ;; 8894 8895 sysv4.3*) 8896 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8897 hardcode_shlibpath_var=no 8898 export_dynamic_flag_spec='-Bexport' 8899 ;; 8900 8901 sysv4*MP*) 8902 if test -d /usr/nec; then 8903 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8904 hardcode_shlibpath_var=no 8905 runpath_var=LD_RUN_PATH 8906 hardcode_runpath_var=yes 8907 ld_shlibs=yes 8908 fi 8909 ;; 8910 8911 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8912 no_undefined_flag='${wl}-z,text' 8913 archive_cmds_need_lc=no 8914 hardcode_shlibpath_var=no 8915 runpath_var='LD_RUN_PATH' 8916 8917 if test "$GCC" = yes; then 8918 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8919 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8920 else 8921 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8922 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8923 fi 8924 ;; 8925 8926 sysv5* | sco3.2v5* | sco5v6*) 8927 # Note: We can NOT use -z defs as we might desire, because we do not 8928 # link with -lc, and that would cause any symbols used from libc to 8929 # always be unresolved, which means just about no library would 8930 # ever link correctly. If we're not using GNU ld we use -z text 8931 # though, which does catch some bad symbols but isn't as heavy-handed 8932 # as -z defs. 8933 no_undefined_flag='${wl}-z,text' 8934 allow_undefined_flag='${wl}-z,nodefs' 8935 archive_cmds_need_lc=no 8936 hardcode_shlibpath_var=no 8937 hardcode_libdir_flag_spec='${wl}-R,$libdir' 8938 hardcode_libdir_separator=':' 8939 link_all_deplibs=yes 8940 export_dynamic_flag_spec='${wl}-Bexport' 8941 runpath_var='LD_RUN_PATH' 8942 8943 if test "$GCC" = yes; then 8944 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8945 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8946 else 8947 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8948 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8949 fi 8950 ;; 8951 8952 uts4*) 8953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8954 hardcode_libdir_flag_spec='-L$libdir' 8955 hardcode_shlibpath_var=no 8956 ;; 8957 8958 *) 8959 ld_shlibs=no 8960 ;; 8961 esac 8962 8963 if test x$host_vendor = xsni; then 8964 case $host in 8965 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8966 export_dynamic_flag_spec='${wl}-Blargedynsym' 8967 ;; 8968 esac 8969 fi 8970 fi 8971 8972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 8973$as_echo "$ld_shlibs" >&6; } 8974test "$ld_shlibs" = no && can_build_shared=no 8975 8976with_gnu_ld=$with_gnu_ld 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992# 8993# Do we need to explicitly link libc? 8994# 8995case "x$archive_cmds_need_lc" in 8996x|xyes) 8997 # Assume -lc should be added 8998 archive_cmds_need_lc=yes 8999 9000 if test "$enable_shared" = yes && test "$GCC" = yes; then 9001 case $archive_cmds in 9002 *'~'*) 9003 # FIXME: we may have to deal with multi-command sequences. 9004 ;; 9005 '$CC '*) 9006 # Test whether the compiler implicitly links with -lc since on some 9007 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9008 # to ld, don't add -lc before -lgcc. 9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9010$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9011 $RM conftest* 9012 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9013 9014 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9015 (eval $ac_compile) 2>&5 9016 ac_status=$? 9017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9018 test $ac_status = 0; } 2>conftest.err; then 9019 soname=conftest 9020 lib=conftest 9021 libobjs=conftest.$ac_objext 9022 deplibs= 9023 wl=$lt_prog_compiler_wl 9024 pic_flag=$lt_prog_compiler_pic 9025 compiler_flags=-v 9026 linker_flags=-v 9027 verstring= 9028 output_objdir=. 9029 libname=conftest 9030 lt_save_allow_undefined_flag=$allow_undefined_flag 9031 allow_undefined_flag= 9032 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9033 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9034 ac_status=$? 9035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9036 test $ac_status = 0; } 9037 then 9038 archive_cmds_need_lc=no 9039 else 9040 archive_cmds_need_lc=yes 9041 fi 9042 allow_undefined_flag=$lt_save_allow_undefined_flag 9043 else 9044 cat conftest.err 1>&5 9045 fi 9046 $RM conftest* 9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 9048$as_echo "$archive_cmds_need_lc" >&6; } 9049 ;; 9050 esac 9051 fi 9052 ;; 9053esac 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9212$as_echo_n "checking dynamic linker characteristics... " >&6; } 9213 9214if test "$GCC" = yes; then 9215 case $host_os in 9216 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9217 *) lt_awk_arg="/^libraries:/" ;; 9218 esac 9219 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9220 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 9221 # if the path contains ";" then we assume it to be the separator 9222 # otherwise default to the standard path separator (i.e. ":") - it is 9223 # assumed that no part of a normal pathname contains ";" but that should 9224 # okay in the real world where ";" in dirpaths is itself problematic. 9225 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9226 else 9227 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9228 fi 9229 # Ok, now we have the path, separated by spaces, we can step through it 9230 # and add multilib dir if necessary. 9231 lt_tmp_lt_search_path_spec= 9232 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9233 for lt_sys_path in $lt_search_path_spec; do 9234 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9235 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9236 else 9237 test -d "$lt_sys_path" && \ 9238 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9239 fi 9240 done 9241 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 9242BEGIN {RS=" "; FS="/|\n";} { 9243 lt_foo=""; 9244 lt_count=0; 9245 for (lt_i = NF; lt_i > 0; lt_i--) { 9246 if ($lt_i != "" && $lt_i != ".") { 9247 if ($lt_i == "..") { 9248 lt_count++; 9249 } else { 9250 if (lt_count == 0) { 9251 lt_foo="/" $lt_i lt_foo; 9252 } else { 9253 lt_count--; 9254 } 9255 } 9256 } 9257 } 9258 if (lt_foo != "") { lt_freq[lt_foo]++; } 9259 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9260}'` 9261 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 9262else 9263 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9264fi 9265library_names_spec= 9266libname_spec='lib$name' 9267soname_spec= 9268shrext_cmds=".so" 9269postinstall_cmds= 9270postuninstall_cmds= 9271finish_cmds= 9272finish_eval= 9273shlibpath_var= 9274shlibpath_overrides_runpath=unknown 9275version_type=none 9276dynamic_linker="$host_os ld.so" 9277sys_lib_dlsearch_path_spec="/lib /usr/lib" 9278need_lib_prefix=unknown 9279hardcode_into_libs=no 9280 9281# when you set need_version to no, make sure it does not cause -set_version 9282# flags to be left without arguments 9283need_version=unknown 9284 9285case $host_os in 9286aix3*) 9287 version_type=linux 9288 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9289 shlibpath_var=LIBPATH 9290 9291 # AIX 3 has no versioning support, so we append a major version to the name. 9292 soname_spec='${libname}${release}${shared_ext}$major' 9293 ;; 9294 9295aix[4-9]*) 9296 version_type=linux 9297 need_lib_prefix=no 9298 need_version=no 9299 hardcode_into_libs=yes 9300 if test "$host_cpu" = ia64; then 9301 # AIX 5 supports IA64 9302 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9303 shlibpath_var=LD_LIBRARY_PATH 9304 else 9305 # With GCC up to 2.95.x, collect2 would create an import file 9306 # for dependence libraries. The import file would start with 9307 # the line `#! .'. This would cause the generated library to 9308 # depend on `.', always an invalid library. This was fixed in 9309 # development snapshots of GCC prior to 3.0. 9310 case $host_os in 9311 aix4 | aix4.[01] | aix4.[01].*) 9312 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9313 echo ' yes ' 9314 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9315 : 9316 else 9317 can_build_shared=no 9318 fi 9319 ;; 9320 esac 9321 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9322 # soname into executable. Probably we can add versioning support to 9323 # collect2, so additional links can be useful in future. 9324 if test "$aix_use_runtimelinking" = yes; then 9325 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9326 # instead of lib<name>.a to let people know that these are not 9327 # typical AIX shared libraries. 9328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9329 else 9330 # We preserve .a as extension for shared libraries through AIX4.2 9331 # and later when we are not doing run time linking. 9332 library_names_spec='${libname}${release}.a $libname.a' 9333 soname_spec='${libname}${release}${shared_ext}$major' 9334 fi 9335 shlibpath_var=LIBPATH 9336 fi 9337 ;; 9338 9339amigaos*) 9340 case $host_cpu in 9341 powerpc) 9342 # Since July 2007 AmigaOS4 officially supports .so libraries. 9343 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9345 ;; 9346 m68k) 9347 library_names_spec='$libname.ixlibrary $libname.a' 9348 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9349 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' 9350 ;; 9351 esac 9352 ;; 9353 9354beos*) 9355 library_names_spec='${libname}${shared_ext}' 9356 dynamic_linker="$host_os ld.so" 9357 shlibpath_var=LIBRARY_PATH 9358 ;; 9359 9360bsdi[45]*) 9361 version_type=linux 9362 need_version=no 9363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9364 soname_spec='${libname}${release}${shared_ext}$major' 9365 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9366 shlibpath_var=LD_LIBRARY_PATH 9367 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9368 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9369 # the default ld.so.conf also contains /usr/contrib/lib and 9370 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9371 # libtool to hard-code these into programs 9372 ;; 9373 9374cygwin* | mingw* | pw32* | cegcc*) 9375 version_type=windows 9376 shrext_cmds=".dll" 9377 need_version=no 9378 need_lib_prefix=no 9379 9380 case $GCC,$host_os in 9381 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9382 library_names_spec='$libname.dll.a' 9383 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9384 postinstall_cmds='base_file=`basename \${file}`~ 9385 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9386 dldir=$destdir/`dirname \$dlpath`~ 9387 test -d \$dldir || mkdir -p \$dldir~ 9388 $install_prog $dir/$dlname \$dldir/$dlname~ 9389 chmod a+x \$dldir/$dlname~ 9390 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9391 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9392 fi' 9393 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9394 dlpath=$dir/\$dldll~ 9395 $RM \$dlpath' 9396 shlibpath_overrides_runpath=yes 9397 9398 case $host_os in 9399 cygwin*) 9400 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9401 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9402 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9403 ;; 9404 mingw* | cegcc*) 9405 # MinGW DLLs use traditional 'lib' prefix 9406 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9407 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9408 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9409 # It is most probably a Windows format PATH printed by 9410 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9411 # path with ; separators, and with drive letters. We can handle the 9412 # drive letters (cygwin fileutils understands them), so leave them, 9413 # especially as we might pass files found there to a mingw objdump, 9414 # which wouldn't understand a cygwinified path. Ahh. 9415 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9416 else 9417 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9418 fi 9419 ;; 9420 pw32*) 9421 # pw32 DLLs use 'pw' prefix rather than 'lib' 9422 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9423 ;; 9424 esac 9425 ;; 9426 9427 *) 9428 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9429 ;; 9430 esac 9431 dynamic_linker='Win32 ld.exe' 9432 # FIXME: first we should search . and the directory the executable is in 9433 shlibpath_var=PATH 9434 ;; 9435 9436darwin* | rhapsody*) 9437 dynamic_linker="$host_os dyld" 9438 version_type=darwin 9439 need_lib_prefix=no 9440 need_version=no 9441 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9442 soname_spec='${libname}${release}${major}$shared_ext' 9443 shlibpath_overrides_runpath=yes 9444 shlibpath_var=DYLD_LIBRARY_PATH 9445 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9446 9447 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9448 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9449 ;; 9450 9451dgux*) 9452 version_type=linux 9453 need_lib_prefix=no 9454 need_version=no 9455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9456 soname_spec='${libname}${release}${shared_ext}$major' 9457 shlibpath_var=LD_LIBRARY_PATH 9458 ;; 9459 9460freebsd1*) 9461 dynamic_linker=no 9462 ;; 9463 9464freebsd* | dragonfly*) 9465 # DragonFly does not have aout. When/if they implement a new 9466 # versioning mechanism, adjust this. 9467 if test -x /usr/bin/objformat; then 9468 objformat=`/usr/bin/objformat` 9469 else 9470 case $host_os in 9471 freebsd[123]*) objformat=aout ;; 9472 *) objformat=elf ;; 9473 esac 9474 fi 9475 version_type=freebsd-$objformat 9476 case $version_type in 9477 freebsd-elf*) 9478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9479 need_version=no 9480 need_lib_prefix=no 9481 ;; 9482 freebsd-*) 9483 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9484 need_version=yes 9485 ;; 9486 esac 9487 shlibpath_var=LD_LIBRARY_PATH 9488 case $host_os in 9489 freebsd2*) 9490 shlibpath_overrides_runpath=yes 9491 ;; 9492 freebsd3.[01]* | freebsdelf3.[01]*) 9493 shlibpath_overrides_runpath=yes 9494 hardcode_into_libs=yes 9495 ;; 9496 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9497 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9498 shlibpath_overrides_runpath=no 9499 hardcode_into_libs=yes 9500 ;; 9501 *) # from 4.6 on, and DragonFly 9502 shlibpath_overrides_runpath=yes 9503 hardcode_into_libs=yes 9504 ;; 9505 esac 9506 ;; 9507 9508gnu*) 9509 version_type=linux 9510 need_lib_prefix=no 9511 need_version=no 9512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9513 soname_spec='${libname}${release}${shared_ext}$major' 9514 shlibpath_var=LD_LIBRARY_PATH 9515 hardcode_into_libs=yes 9516 ;; 9517 9518hpux9* | hpux10* | hpux11*) 9519 # Give a soname corresponding to the major version so that dld.sl refuses to 9520 # link against other versions. 9521 version_type=sunos 9522 need_lib_prefix=no 9523 need_version=no 9524 case $host_cpu in 9525 ia64*) 9526 shrext_cmds='.so' 9527 hardcode_into_libs=yes 9528 dynamic_linker="$host_os dld.so" 9529 shlibpath_var=LD_LIBRARY_PATH 9530 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9532 soname_spec='${libname}${release}${shared_ext}$major' 9533 if test "X$HPUX_IA64_MODE" = X32; then 9534 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9535 else 9536 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9537 fi 9538 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9539 ;; 9540 hppa*64*) 9541 shrext_cmds='.sl' 9542 hardcode_into_libs=yes 9543 dynamic_linker="$host_os dld.sl" 9544 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9545 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9547 soname_spec='${libname}${release}${shared_ext}$major' 9548 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9549 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9550 ;; 9551 *) 9552 shrext_cmds='.sl' 9553 dynamic_linker="$host_os dld.sl" 9554 shlibpath_var=SHLIB_PATH 9555 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9557 soname_spec='${libname}${release}${shared_ext}$major' 9558 ;; 9559 esac 9560 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9561 postinstall_cmds='chmod 555 $lib' 9562 ;; 9563 9564interix[3-9]*) 9565 version_type=linux 9566 need_lib_prefix=no 9567 need_version=no 9568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9569 soname_spec='${libname}${release}${shared_ext}$major' 9570 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9571 shlibpath_var=LD_LIBRARY_PATH 9572 shlibpath_overrides_runpath=no 9573 hardcode_into_libs=yes 9574 ;; 9575 9576irix5* | irix6* | nonstopux*) 9577 case $host_os in 9578 nonstopux*) version_type=nonstopux ;; 9579 *) 9580 if test "$lt_cv_prog_gnu_ld" = yes; then 9581 version_type=linux 9582 else 9583 version_type=irix 9584 fi ;; 9585 esac 9586 need_lib_prefix=no 9587 need_version=no 9588 soname_spec='${libname}${release}${shared_ext}$major' 9589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9590 case $host_os in 9591 irix5* | nonstopux*) 9592 libsuff= shlibsuff= 9593 ;; 9594 *) 9595 case $LD in # libtool.m4 will add one of these switches to LD 9596 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9597 libsuff= shlibsuff= libmagic=32-bit;; 9598 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9599 libsuff=32 shlibsuff=N32 libmagic=N32;; 9600 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9601 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9602 *) libsuff= shlibsuff= libmagic=never-match;; 9603 esac 9604 ;; 9605 esac 9606 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9607 shlibpath_overrides_runpath=no 9608 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9609 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9610 hardcode_into_libs=yes 9611 ;; 9612 9613# No shared lib support for Linux oldld, aout, or coff. 9614linux*oldld* | linux*aout* | linux*coff*) 9615 dynamic_linker=no 9616 ;; 9617 9618# This must be Linux ELF. 9619linux* | k*bsd*-gnu) 9620 version_type=linux 9621 need_lib_prefix=no 9622 need_version=no 9623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9624 soname_spec='${libname}${release}${shared_ext}$major' 9625 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9626 shlibpath_var=LD_LIBRARY_PATH 9627 shlibpath_overrides_runpath=no 9628 # Some binutils ld are patched to set DT_RUNPATH 9629 save_LDFLAGS=$LDFLAGS 9630 save_libdir=$libdir 9631 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9632 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9634/* end confdefs.h. */ 9635 9636int 9637main () 9638{ 9639 9640 ; 9641 return 0; 9642} 9643_ACEOF 9644if ac_fn_c_try_link "$LINENO"; then : 9645 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 9646 shlibpath_overrides_runpath=yes 9647fi 9648fi 9649rm -f core conftest.err conftest.$ac_objext \ 9650 conftest$ac_exeext conftest.$ac_ext 9651 LDFLAGS=$save_LDFLAGS 9652 libdir=$save_libdir 9653 9654 # This implies no fast_install, which is unacceptable. 9655 # Some rework will be needed to allow for fast_install 9656 # before this can be enabled. 9657 hardcode_into_libs=yes 9658 9659 # Append ld.so.conf contents to the search path 9660 if test -f /etc/ld.so.conf; then 9661 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' ' '` 9662 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9663 fi 9664 9665 # We used to test for /lib/ld.so.1 and disable shared libraries on 9666 # powerpc, because MkLinux only supported shared libraries with the 9667 # GNU dynamic linker. Since this was broken with cross compilers, 9668 # most powerpc-linux boxes support dynamic linking these days and 9669 # people can always --disable-shared, the test was removed, and we 9670 # assume the GNU/Linux dynamic linker is in use. 9671 dynamic_linker='GNU/Linux ld.so' 9672 ;; 9673 9674netbsd*) 9675 version_type=sunos 9676 need_lib_prefix=no 9677 need_version=no 9678 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9680 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9681 dynamic_linker='NetBSD (a.out) ld.so' 9682 else 9683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9684 soname_spec='${libname}${release}${shared_ext}$major' 9685 dynamic_linker='NetBSD ld.elf_so' 9686 fi 9687 shlibpath_var=LD_LIBRARY_PATH 9688 shlibpath_overrides_runpath=yes 9689 hardcode_into_libs=yes 9690 ;; 9691 9692newsos6) 9693 version_type=linux 9694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9695 shlibpath_var=LD_LIBRARY_PATH 9696 shlibpath_overrides_runpath=yes 9697 ;; 9698 9699*nto* | *qnx*) 9700 version_type=qnx 9701 need_lib_prefix=no 9702 need_version=no 9703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9704 soname_spec='${libname}${release}${shared_ext}$major' 9705 shlibpath_var=LD_LIBRARY_PATH 9706 shlibpath_overrides_runpath=no 9707 hardcode_into_libs=yes 9708 dynamic_linker='ldqnx.so' 9709 ;; 9710 9711openbsd*) 9712 version_type=sunos 9713 sys_lib_dlsearch_path_spec="/usr/lib" 9714 need_lib_prefix=no 9715 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9716 case $host_os in 9717 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9718 *) need_version=no ;; 9719 esac 9720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9721 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9722 shlibpath_var=LD_LIBRARY_PATH 9723 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9724 case $host_os in 9725 openbsd2.[89] | openbsd2.[89].*) 9726 shlibpath_overrides_runpath=no 9727 ;; 9728 *) 9729 shlibpath_overrides_runpath=yes 9730 ;; 9731 esac 9732 else 9733 shlibpath_overrides_runpath=yes 9734 fi 9735 ;; 9736 9737os2*) 9738 libname_spec='$name' 9739 shrext_cmds=".dll" 9740 need_lib_prefix=no 9741 library_names_spec='$libname${shared_ext} $libname.a' 9742 dynamic_linker='OS/2 ld.exe' 9743 shlibpath_var=LIBPATH 9744 ;; 9745 9746osf3* | osf4* | osf5*) 9747 version_type=osf 9748 need_lib_prefix=no 9749 need_version=no 9750 soname_spec='${libname}${release}${shared_ext}$major' 9751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9752 shlibpath_var=LD_LIBRARY_PATH 9753 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9754 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9755 ;; 9756 9757rdos*) 9758 dynamic_linker=no 9759 ;; 9760 9761solaris*) 9762 version_type=linux 9763 need_lib_prefix=no 9764 need_version=no 9765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9766 soname_spec='${libname}${release}${shared_ext}$major' 9767 shlibpath_var=LD_LIBRARY_PATH 9768 shlibpath_overrides_runpath=yes 9769 hardcode_into_libs=yes 9770 # ldd complains unless libraries are executable 9771 postinstall_cmds='chmod +x $lib' 9772 ;; 9773 9774sunos4*) 9775 version_type=sunos 9776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9777 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9778 shlibpath_var=LD_LIBRARY_PATH 9779 shlibpath_overrides_runpath=yes 9780 if test "$with_gnu_ld" = yes; then 9781 need_lib_prefix=no 9782 fi 9783 need_version=yes 9784 ;; 9785 9786sysv4 | sysv4.3*) 9787 version_type=linux 9788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9789 soname_spec='${libname}${release}${shared_ext}$major' 9790 shlibpath_var=LD_LIBRARY_PATH 9791 case $host_vendor in 9792 sni) 9793 shlibpath_overrides_runpath=no 9794 need_lib_prefix=no 9795 runpath_var=LD_RUN_PATH 9796 ;; 9797 siemens) 9798 need_lib_prefix=no 9799 ;; 9800 motorola) 9801 need_lib_prefix=no 9802 need_version=no 9803 shlibpath_overrides_runpath=no 9804 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9805 ;; 9806 esac 9807 ;; 9808 9809sysv4*MP*) 9810 if test -d /usr/nec ;then 9811 version_type=linux 9812 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9813 soname_spec='$libname${shared_ext}.$major' 9814 shlibpath_var=LD_LIBRARY_PATH 9815 fi 9816 ;; 9817 9818sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9819 version_type=freebsd-elf 9820 need_lib_prefix=no 9821 need_version=no 9822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9823 soname_spec='${libname}${release}${shared_ext}$major' 9824 shlibpath_var=LD_LIBRARY_PATH 9825 shlibpath_overrides_runpath=yes 9826 hardcode_into_libs=yes 9827 if test "$with_gnu_ld" = yes; then 9828 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9829 else 9830 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9831 case $host_os in 9832 sco3.2v5*) 9833 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9834 ;; 9835 esac 9836 fi 9837 sys_lib_dlsearch_path_spec='/usr/lib' 9838 ;; 9839 9840tpf*) 9841 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 9842 version_type=linux 9843 need_lib_prefix=no 9844 need_version=no 9845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9846 shlibpath_var=LD_LIBRARY_PATH 9847 shlibpath_overrides_runpath=no 9848 hardcode_into_libs=yes 9849 ;; 9850 9851uts4*) 9852 version_type=linux 9853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9854 soname_spec='${libname}${release}${shared_ext}$major' 9855 shlibpath_var=LD_LIBRARY_PATH 9856 ;; 9857 9858*) 9859 dynamic_linker=no 9860 ;; 9861esac 9862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 9863$as_echo "$dynamic_linker" >&6; } 9864test "$dynamic_linker" = no && can_build_shared=no 9865 9866variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9867if test "$GCC" = yes; then 9868 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9869fi 9870 9871if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 9872 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9873fi 9874if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 9875 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9876fi 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 9965$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 9966hardcode_action= 9967if test -n "$hardcode_libdir_flag_spec" || 9968 test -n "$runpath_var" || 9969 test "X$hardcode_automatic" = "Xyes" ; then 9970 9971 # We can hardcode non-existent directories. 9972 if test "$hardcode_direct" != no && 9973 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9974 # have to relink, otherwise we might link with an installed library 9975 # when we should be linking with a yet-to-be-installed one 9976 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 9977 test "$hardcode_minus_L" != no; then 9978 # Linking always hardcodes the temporary library directory. 9979 hardcode_action=relink 9980 else 9981 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9982 hardcode_action=immediate 9983 fi 9984else 9985 # We cannot hardcode anything, or else we can only hardcode existing 9986 # directories. 9987 hardcode_action=unsupported 9988fi 9989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 9990$as_echo "$hardcode_action" >&6; } 9991 9992if test "$hardcode_action" = relink || 9993 test "$inherit_rpath" = yes; then 9994 # Fast installation is not supported 9995 enable_fast_install=no 9996elif test "$shlibpath_overrides_runpath" = yes || 9997 test "$enable_shared" = no; then 9998 # Fast installation is not necessary 9999 enable_fast_install=needless 10000fi 10001 10002 10003 10004 10005 10006 10007 if test "x$enable_dlopen" != xyes; then 10008 enable_dlopen=unknown 10009 enable_dlopen_self=unknown 10010 enable_dlopen_self_static=unknown 10011else 10012 lt_cv_dlopen=no 10013 lt_cv_dlopen_libs= 10014 10015 case $host_os in 10016 beos*) 10017 lt_cv_dlopen="load_add_on" 10018 lt_cv_dlopen_libs= 10019 lt_cv_dlopen_self=yes 10020 ;; 10021 10022 mingw* | pw32* | cegcc*) 10023 lt_cv_dlopen="LoadLibrary" 10024 lt_cv_dlopen_libs= 10025 ;; 10026 10027 cygwin*) 10028 lt_cv_dlopen="dlopen" 10029 lt_cv_dlopen_libs= 10030 ;; 10031 10032 darwin*) 10033 # if libdl is installed we need to link against it 10034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10035$as_echo_n "checking for dlopen in -ldl... " >&6; } 10036if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10037 $as_echo_n "(cached) " >&6 10038else 10039 ac_check_lib_save_LIBS=$LIBS 10040LIBS="-ldl $LIBS" 10041cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10042/* end confdefs.h. */ 10043 10044/* Override any GCC internal prototype to avoid an error. 10045 Use char because int might match the return type of a GCC 10046 builtin and then its argument prototype would still apply. */ 10047#ifdef __cplusplus 10048extern "C" 10049#endif 10050char dlopen (); 10051int 10052main () 10053{ 10054return dlopen (); 10055 ; 10056 return 0; 10057} 10058_ACEOF 10059if ac_fn_c_try_link "$LINENO"; then : 10060 ac_cv_lib_dl_dlopen=yes 10061else 10062 ac_cv_lib_dl_dlopen=no 10063fi 10064rm -f core conftest.err conftest.$ac_objext \ 10065 conftest$ac_exeext conftest.$ac_ext 10066LIBS=$ac_check_lib_save_LIBS 10067fi 10068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10069$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10070if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10071 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10072else 10073 10074 lt_cv_dlopen="dyld" 10075 lt_cv_dlopen_libs= 10076 lt_cv_dlopen_self=yes 10077 10078fi 10079 10080 ;; 10081 10082 *) 10083 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10084if test "x$ac_cv_func_shl_load" = x""yes; then : 10085 lt_cv_dlopen="shl_load" 10086else 10087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10088$as_echo_n "checking for shl_load in -ldld... " >&6; } 10089if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 10090 $as_echo_n "(cached) " >&6 10091else 10092 ac_check_lib_save_LIBS=$LIBS 10093LIBS="-ldld $LIBS" 10094cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10095/* end confdefs.h. */ 10096 10097/* Override any GCC internal prototype to avoid an error. 10098 Use char because int might match the return type of a GCC 10099 builtin and then its argument prototype would still apply. */ 10100#ifdef __cplusplus 10101extern "C" 10102#endif 10103char shl_load (); 10104int 10105main () 10106{ 10107return shl_load (); 10108 ; 10109 return 0; 10110} 10111_ACEOF 10112if ac_fn_c_try_link "$LINENO"; then : 10113 ac_cv_lib_dld_shl_load=yes 10114else 10115 ac_cv_lib_dld_shl_load=no 10116fi 10117rm -f core conftest.err conftest.$ac_objext \ 10118 conftest$ac_exeext conftest.$ac_ext 10119LIBS=$ac_check_lib_save_LIBS 10120fi 10121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10122$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10123if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 10124 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10125else 10126 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10127if test "x$ac_cv_func_dlopen" = x""yes; then : 10128 lt_cv_dlopen="dlopen" 10129else 10130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10131$as_echo_n "checking for dlopen in -ldl... " >&6; } 10132if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10133 $as_echo_n "(cached) " >&6 10134else 10135 ac_check_lib_save_LIBS=$LIBS 10136LIBS="-ldl $LIBS" 10137cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10138/* end confdefs.h. */ 10139 10140/* Override any GCC internal prototype to avoid an error. 10141 Use char because int might match the return type of a GCC 10142 builtin and then its argument prototype would still apply. */ 10143#ifdef __cplusplus 10144extern "C" 10145#endif 10146char dlopen (); 10147int 10148main () 10149{ 10150return dlopen (); 10151 ; 10152 return 0; 10153} 10154_ACEOF 10155if ac_fn_c_try_link "$LINENO"; then : 10156 ac_cv_lib_dl_dlopen=yes 10157else 10158 ac_cv_lib_dl_dlopen=no 10159fi 10160rm -f core conftest.err conftest.$ac_objext \ 10161 conftest$ac_exeext conftest.$ac_ext 10162LIBS=$ac_check_lib_save_LIBS 10163fi 10164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10165$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10166if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10167 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10168else 10169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10170$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10171if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 10172 $as_echo_n "(cached) " >&6 10173else 10174 ac_check_lib_save_LIBS=$LIBS 10175LIBS="-lsvld $LIBS" 10176cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10177/* end confdefs.h. */ 10178 10179/* Override any GCC internal prototype to avoid an error. 10180 Use char because int might match the return type of a GCC 10181 builtin and then its argument prototype would still apply. */ 10182#ifdef __cplusplus 10183extern "C" 10184#endif 10185char dlopen (); 10186int 10187main () 10188{ 10189return dlopen (); 10190 ; 10191 return 0; 10192} 10193_ACEOF 10194if ac_fn_c_try_link "$LINENO"; then : 10195 ac_cv_lib_svld_dlopen=yes 10196else 10197 ac_cv_lib_svld_dlopen=no 10198fi 10199rm -f core conftest.err conftest.$ac_objext \ 10200 conftest$ac_exeext conftest.$ac_ext 10201LIBS=$ac_check_lib_save_LIBS 10202fi 10203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10204$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10205if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 10206 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10207else 10208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10209$as_echo_n "checking for dld_link in -ldld... " >&6; } 10210if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 10211 $as_echo_n "(cached) " >&6 10212else 10213 ac_check_lib_save_LIBS=$LIBS 10214LIBS="-ldld $LIBS" 10215cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10216/* end confdefs.h. */ 10217 10218/* Override any GCC internal prototype to avoid an error. 10219 Use char because int might match the return type of a GCC 10220 builtin and then its argument prototype would still apply. */ 10221#ifdef __cplusplus 10222extern "C" 10223#endif 10224char dld_link (); 10225int 10226main () 10227{ 10228return dld_link (); 10229 ; 10230 return 0; 10231} 10232_ACEOF 10233if ac_fn_c_try_link "$LINENO"; then : 10234 ac_cv_lib_dld_dld_link=yes 10235else 10236 ac_cv_lib_dld_dld_link=no 10237fi 10238rm -f core conftest.err conftest.$ac_objext \ 10239 conftest$ac_exeext conftest.$ac_ext 10240LIBS=$ac_check_lib_save_LIBS 10241fi 10242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10243$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10244if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 10245 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10246fi 10247 10248 10249fi 10250 10251 10252fi 10253 10254 10255fi 10256 10257 10258fi 10259 10260 10261fi 10262 10263 ;; 10264 esac 10265 10266 if test "x$lt_cv_dlopen" != xno; then 10267 enable_dlopen=yes 10268 else 10269 enable_dlopen=no 10270 fi 10271 10272 case $lt_cv_dlopen in 10273 dlopen) 10274 save_CPPFLAGS="$CPPFLAGS" 10275 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10276 10277 save_LDFLAGS="$LDFLAGS" 10278 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10279 10280 save_LIBS="$LIBS" 10281 LIBS="$lt_cv_dlopen_libs $LIBS" 10282 10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10284$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10285if test "${lt_cv_dlopen_self+set}" = set; then : 10286 $as_echo_n "(cached) " >&6 10287else 10288 if test "$cross_compiling" = yes; then : 10289 lt_cv_dlopen_self=cross 10290else 10291 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10292 lt_status=$lt_dlunknown 10293 cat > conftest.$ac_ext <<_LT_EOF 10294#line 10294 "configure" 10295#include "confdefs.h" 10296 10297#if HAVE_DLFCN_H 10298#include <dlfcn.h> 10299#endif 10300 10301#include <stdio.h> 10302 10303#ifdef RTLD_GLOBAL 10304# define LT_DLGLOBAL RTLD_GLOBAL 10305#else 10306# ifdef DL_GLOBAL 10307# define LT_DLGLOBAL DL_GLOBAL 10308# else 10309# define LT_DLGLOBAL 0 10310# endif 10311#endif 10312 10313/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10314 find out it does not work in some platform. */ 10315#ifndef LT_DLLAZY_OR_NOW 10316# ifdef RTLD_LAZY 10317# define LT_DLLAZY_OR_NOW RTLD_LAZY 10318# else 10319# ifdef DL_LAZY 10320# define LT_DLLAZY_OR_NOW DL_LAZY 10321# else 10322# ifdef RTLD_NOW 10323# define LT_DLLAZY_OR_NOW RTLD_NOW 10324# else 10325# ifdef DL_NOW 10326# define LT_DLLAZY_OR_NOW DL_NOW 10327# else 10328# define LT_DLLAZY_OR_NOW 0 10329# endif 10330# endif 10331# endif 10332# endif 10333#endif 10334 10335void fnord() { int i=42;} 10336int main () 10337{ 10338 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10339 int status = $lt_dlunknown; 10340 10341 if (self) 10342 { 10343 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10344 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10345 /* dlclose (self); */ 10346 } 10347 else 10348 puts (dlerror ()); 10349 10350 return status; 10351} 10352_LT_EOF 10353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10354 (eval $ac_link) 2>&5 10355 ac_status=$? 10356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10357 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10358 (./conftest; exit; ) >&5 2>/dev/null 10359 lt_status=$? 10360 case x$lt_status in 10361 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10362 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10363 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10364 esac 10365 else : 10366 # compilation failed 10367 lt_cv_dlopen_self=no 10368 fi 10369fi 10370rm -fr conftest* 10371 10372 10373fi 10374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 10375$as_echo "$lt_cv_dlopen_self" >&6; } 10376 10377 if test "x$lt_cv_dlopen_self" = xyes; then 10378 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 10380$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10381if test "${lt_cv_dlopen_self_static+set}" = set; then : 10382 $as_echo_n "(cached) " >&6 10383else 10384 if test "$cross_compiling" = yes; then : 10385 lt_cv_dlopen_self_static=cross 10386else 10387 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10388 lt_status=$lt_dlunknown 10389 cat > conftest.$ac_ext <<_LT_EOF 10390#line 10390 "configure" 10391#include "confdefs.h" 10392 10393#if HAVE_DLFCN_H 10394#include <dlfcn.h> 10395#endif 10396 10397#include <stdio.h> 10398 10399#ifdef RTLD_GLOBAL 10400# define LT_DLGLOBAL RTLD_GLOBAL 10401#else 10402# ifdef DL_GLOBAL 10403# define LT_DLGLOBAL DL_GLOBAL 10404# else 10405# define LT_DLGLOBAL 0 10406# endif 10407#endif 10408 10409/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10410 find out it does not work in some platform. */ 10411#ifndef LT_DLLAZY_OR_NOW 10412# ifdef RTLD_LAZY 10413# define LT_DLLAZY_OR_NOW RTLD_LAZY 10414# else 10415# ifdef DL_LAZY 10416# define LT_DLLAZY_OR_NOW DL_LAZY 10417# else 10418# ifdef RTLD_NOW 10419# define LT_DLLAZY_OR_NOW RTLD_NOW 10420# else 10421# ifdef DL_NOW 10422# define LT_DLLAZY_OR_NOW DL_NOW 10423# else 10424# define LT_DLLAZY_OR_NOW 0 10425# endif 10426# endif 10427# endif 10428# endif 10429#endif 10430 10431void fnord() { int i=42;} 10432int main () 10433{ 10434 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10435 int status = $lt_dlunknown; 10436 10437 if (self) 10438 { 10439 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10440 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10441 /* dlclose (self); */ 10442 } 10443 else 10444 puts (dlerror ()); 10445 10446 return status; 10447} 10448_LT_EOF 10449 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10450 (eval $ac_link) 2>&5 10451 ac_status=$? 10452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10453 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10454 (./conftest; exit; ) >&5 2>/dev/null 10455 lt_status=$? 10456 case x$lt_status in 10457 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10458 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10459 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10460 esac 10461 else : 10462 # compilation failed 10463 lt_cv_dlopen_self_static=no 10464 fi 10465fi 10466rm -fr conftest* 10467 10468 10469fi 10470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 10471$as_echo "$lt_cv_dlopen_self_static" >&6; } 10472 fi 10473 10474 CPPFLAGS="$save_CPPFLAGS" 10475 LDFLAGS="$save_LDFLAGS" 10476 LIBS="$save_LIBS" 10477 ;; 10478 esac 10479 10480 case $lt_cv_dlopen_self in 10481 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10482 *) enable_dlopen_self=unknown ;; 10483 esac 10484 10485 case $lt_cv_dlopen_self_static in 10486 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10487 *) enable_dlopen_self_static=unknown ;; 10488 esac 10489fi 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507striplib= 10508old_striplib= 10509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 10510$as_echo_n "checking whether stripping libraries is possible... " >&6; } 10511if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 10512 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10513 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10515$as_echo "yes" >&6; } 10516else 10517# FIXME - insert some real tests, host_os isn't really good enough 10518 case $host_os in 10519 darwin*) 10520 if test -n "$STRIP" ; then 10521 striplib="$STRIP -x" 10522 old_striplib="$STRIP -S" 10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10524$as_echo "yes" >&6; } 10525 else 10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10527$as_echo "no" >&6; } 10528 fi 10529 ;; 10530 *) 10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10532$as_echo "no" >&6; } 10533 ;; 10534 esac 10535fi 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 # Report which library types will actually be built 10549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 10550$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 10552$as_echo "$can_build_shared" >&6; } 10553 10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 10555$as_echo_n "checking whether to build shared libraries... " >&6; } 10556 test "$can_build_shared" = "no" && enable_shared=no 10557 10558 # On AIX, shared libraries and static libraries use the same namespace, and 10559 # are all built from PIC. 10560 case $host_os in 10561 aix3*) 10562 test "$enable_shared" = yes && enable_static=no 10563 if test -n "$RANLIB"; then 10564 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10565 postinstall_cmds='$RANLIB $lib' 10566 fi 10567 ;; 10568 10569 aix[4-9]*) 10570 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10571 test "$enable_shared" = yes && enable_static=no 10572 fi 10573 ;; 10574 esac 10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 10576$as_echo "$enable_shared" >&6; } 10577 10578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 10579$as_echo_n "checking whether to build static libraries... " >&6; } 10580 # Make sure either enable_shared or enable_static is yes. 10581 test "$enable_shared" = yes || enable_static=yes 10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 10583$as_echo "$enable_static" >&6; } 10584 10585 10586 10587 10588fi 10589ac_ext=c 10590ac_cpp='$CPP $CPPFLAGS' 10591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10593ac_compiler_gnu=$ac_cv_c_compiler_gnu 10594 10595CC="$lt_save_CC" 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 ac_config_commands="$ac_config_commands libtool" 10610 10611 10612 10613 10614# Only expand once: 10615 10616 10617# Check whether --enable-unstable-shared was given. 10618if test "${enable_unstable_shared+set}" = set; then : 10619 enableval=$enable_unstable_shared; case $enableval in 10620 yes|no) enable_shared=${enableval} ;; 10621 *) enable_shared=${enableval} ;; 10622 esac 10623else 10624 enable_shared=no 10625fi 10626 10627 10628 10629ac_ext=c 10630ac_cpp='$CPP $CPPFLAGS' 10631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10633ac_compiler_gnu=$ac_cv_c_compiler_gnu 10634 10635ac_ext=c 10636ac_cpp='$CPP $CPPFLAGS' 10637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10639ac_compiler_gnu=$ac_cv_c_compiler_gnu 10640if test -n "$ac_tool_prefix"; then 10641 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 10642set dummy ${ac_tool_prefix}gcc; ac_word=$2 10643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10644$as_echo_n "checking for $ac_word... " >&6; } 10645if test "${ac_cv_prog_CC+set}" = set; then : 10646 $as_echo_n "(cached) " >&6 10647else 10648 if test -n "$CC"; then 10649 ac_cv_prog_CC="$CC" # Let the user override the test. 10650else 10651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10652for as_dir in $PATH 10653do 10654 IFS=$as_save_IFS 10655 test -z "$as_dir" && as_dir=. 10656 for ac_exec_ext in '' $ac_executable_extensions; do 10657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10658 ac_cv_prog_CC="${ac_tool_prefix}gcc" 10659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10660 break 2 10661 fi 10662done 10663 done 10664IFS=$as_save_IFS 10665 10666fi 10667fi 10668CC=$ac_cv_prog_CC 10669if test -n "$CC"; then 10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 10671$as_echo "$CC" >&6; } 10672else 10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10674$as_echo "no" >&6; } 10675fi 10676 10677 10678fi 10679if test -z "$ac_cv_prog_CC"; then 10680 ac_ct_CC=$CC 10681 # Extract the first word of "gcc", so it can be a program name with args. 10682set dummy gcc; ac_word=$2 10683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10684$as_echo_n "checking for $ac_word... " >&6; } 10685if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 10686 $as_echo_n "(cached) " >&6 10687else 10688 if test -n "$ac_ct_CC"; then 10689 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 10690else 10691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10692for as_dir in $PATH 10693do 10694 IFS=$as_save_IFS 10695 test -z "$as_dir" && as_dir=. 10696 for ac_exec_ext in '' $ac_executable_extensions; do 10697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10698 ac_cv_prog_ac_ct_CC="gcc" 10699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10700 break 2 10701 fi 10702done 10703 done 10704IFS=$as_save_IFS 10705 10706fi 10707fi 10708ac_ct_CC=$ac_cv_prog_ac_ct_CC 10709if test -n "$ac_ct_CC"; then 10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 10711$as_echo "$ac_ct_CC" >&6; } 10712else 10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10714$as_echo "no" >&6; } 10715fi 10716 10717 if test "x$ac_ct_CC" = x; then 10718 CC="" 10719 else 10720 case $cross_compiling:$ac_tool_warned in 10721yes:) 10722{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10723$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10724ac_tool_warned=yes ;; 10725esac 10726 CC=$ac_ct_CC 10727 fi 10728else 10729 CC="$ac_cv_prog_CC" 10730fi 10731 10732if test -z "$CC"; then 10733 if test -n "$ac_tool_prefix"; then 10734 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 10735set dummy ${ac_tool_prefix}cc; ac_word=$2 10736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10737$as_echo_n "checking for $ac_word... " >&6; } 10738if test "${ac_cv_prog_CC+set}" = set; then : 10739 $as_echo_n "(cached) " >&6 10740else 10741 if test -n "$CC"; then 10742 ac_cv_prog_CC="$CC" # Let the user override the test. 10743else 10744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10745for as_dir in $PATH 10746do 10747 IFS=$as_save_IFS 10748 test -z "$as_dir" && as_dir=. 10749 for ac_exec_ext in '' $ac_executable_extensions; do 10750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10751 ac_cv_prog_CC="${ac_tool_prefix}cc" 10752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10753 break 2 10754 fi 10755done 10756 done 10757IFS=$as_save_IFS 10758 10759fi 10760fi 10761CC=$ac_cv_prog_CC 10762if test -n "$CC"; then 10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 10764$as_echo "$CC" >&6; } 10765else 10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10767$as_echo "no" >&6; } 10768fi 10769 10770 10771 fi 10772fi 10773if test -z "$CC"; then 10774 # Extract the first word of "cc", so it can be a program name with args. 10775set dummy cc; ac_word=$2 10776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10777$as_echo_n "checking for $ac_word... " >&6; } 10778if test "${ac_cv_prog_CC+set}" = set; then : 10779 $as_echo_n "(cached) " >&6 10780else 10781 if test -n "$CC"; then 10782 ac_cv_prog_CC="$CC" # Let the user override the test. 10783else 10784 ac_prog_rejected=no 10785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10786for as_dir in $PATH 10787do 10788 IFS=$as_save_IFS 10789 test -z "$as_dir" && as_dir=. 10790 for ac_exec_ext in '' $ac_executable_extensions; do 10791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10792 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 10793 ac_prog_rejected=yes 10794 continue 10795 fi 10796 ac_cv_prog_CC="cc" 10797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10798 break 2 10799 fi 10800done 10801 done 10802IFS=$as_save_IFS 10803 10804if test $ac_prog_rejected = yes; then 10805 # We found a bogon in the path, so make sure we never use it. 10806 set dummy $ac_cv_prog_CC 10807 shift 10808 if test $# != 0; then 10809 # We chose a different compiler from the bogus one. 10810 # However, it has the same basename, so the bogon will be chosen 10811 # first if we set CC to just the basename; use the full file name. 10812 shift 10813 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 10814 fi 10815fi 10816fi 10817fi 10818CC=$ac_cv_prog_CC 10819if test -n "$CC"; then 10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 10821$as_echo "$CC" >&6; } 10822else 10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10824$as_echo "no" >&6; } 10825fi 10826 10827 10828fi 10829if test -z "$CC"; then 10830 if test -n "$ac_tool_prefix"; then 10831 for ac_prog in cl.exe 10832 do 10833 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 10834set dummy $ac_tool_prefix$ac_prog; ac_word=$2 10835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10836$as_echo_n "checking for $ac_word... " >&6; } 10837if test "${ac_cv_prog_CC+set}" = set; then : 10838 $as_echo_n "(cached) " >&6 10839else 10840 if test -n "$CC"; then 10841 ac_cv_prog_CC="$CC" # Let the user override the test. 10842else 10843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10844for as_dir in $PATH 10845do 10846 IFS=$as_save_IFS 10847 test -z "$as_dir" && as_dir=. 10848 for ac_exec_ext in '' $ac_executable_extensions; do 10849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10850 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 10851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10852 break 2 10853 fi 10854done 10855 done 10856IFS=$as_save_IFS 10857 10858fi 10859fi 10860CC=$ac_cv_prog_CC 10861if test -n "$CC"; then 10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 10863$as_echo "$CC" >&6; } 10864else 10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10866$as_echo "no" >&6; } 10867fi 10868 10869 10870 test -n "$CC" && break 10871 done 10872fi 10873if test -z "$CC"; then 10874 ac_ct_CC=$CC 10875 for ac_prog in cl.exe 10876do 10877 # Extract the first word of "$ac_prog", so it can be a program name with args. 10878set dummy $ac_prog; ac_word=$2 10879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10880$as_echo_n "checking for $ac_word... " >&6; } 10881if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 10882 $as_echo_n "(cached) " >&6 10883else 10884 if test -n "$ac_ct_CC"; then 10885 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 10886else 10887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10888for as_dir in $PATH 10889do 10890 IFS=$as_save_IFS 10891 test -z "$as_dir" && as_dir=. 10892 for ac_exec_ext in '' $ac_executable_extensions; do 10893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10894 ac_cv_prog_ac_ct_CC="$ac_prog" 10895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10896 break 2 10897 fi 10898done 10899 done 10900IFS=$as_save_IFS 10901 10902fi 10903fi 10904ac_ct_CC=$ac_cv_prog_ac_ct_CC 10905if test -n "$ac_ct_CC"; then 10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 10907$as_echo "$ac_ct_CC" >&6; } 10908else 10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10910$as_echo "no" >&6; } 10911fi 10912 10913 10914 test -n "$ac_ct_CC" && break 10915done 10916 10917 if test "x$ac_ct_CC" = x; then 10918 CC="" 10919 else 10920 case $cross_compiling:$ac_tool_warned in 10921yes:) 10922{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10923$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10924ac_tool_warned=yes ;; 10925esac 10926 CC=$ac_ct_CC 10927 fi 10928fi 10929 10930fi 10931 10932 10933test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10934$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10935as_fn_error $? "no acceptable C compiler found in \$PATH 10936See \`config.log' for more details" "$LINENO" 5; } 10937 10938# Provide some information about the compiler. 10939$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 10940set X $ac_compile 10941ac_compiler=$2 10942for ac_option in --version -v -V -qversion; do 10943 { { ac_try="$ac_compiler $ac_option >&5" 10944case "(($ac_try" in 10945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10946 *) ac_try_echo=$ac_try;; 10947esac 10948eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 10949$as_echo "$ac_try_echo"; } >&5 10950 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 10951 ac_status=$? 10952 if test -s conftest.err; then 10953 sed '10a\ 10954... rest of stderr output deleted ... 10955 10q' conftest.err >conftest.er1 10956 cat conftest.er1 >&5 10957 fi 10958 rm -f conftest.er1 conftest.err 10959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10960 test $ac_status = 0; } 10961done 10962 10963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 10964$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 10965if test "${ac_cv_c_compiler_gnu+set}" = set; then : 10966 $as_echo_n "(cached) " >&6 10967else 10968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10969/* end confdefs.h. */ 10970 10971int 10972main () 10973{ 10974#ifndef __GNUC__ 10975 choke me 10976#endif 10977 10978 ; 10979 return 0; 10980} 10981_ACEOF 10982if ac_fn_c_try_compile "$LINENO"; then : 10983 ac_compiler_gnu=yes 10984else 10985 ac_compiler_gnu=no 10986fi 10987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10988ac_cv_c_compiler_gnu=$ac_compiler_gnu 10989 10990fi 10991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 10992$as_echo "$ac_cv_c_compiler_gnu" >&6; } 10993if test $ac_compiler_gnu = yes; then 10994 GCC=yes 10995else 10996 GCC= 10997fi 10998ac_test_CFLAGS=${CFLAGS+set} 10999ac_save_CFLAGS=$CFLAGS 11000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 11001$as_echo_n "checking whether $CC accepts -g... " >&6; } 11002if test "${ac_cv_prog_cc_g+set}" = set; then : 11003 $as_echo_n "(cached) " >&6 11004else 11005 ac_save_c_werror_flag=$ac_c_werror_flag 11006 ac_c_werror_flag=yes 11007 ac_cv_prog_cc_g=no 11008 CFLAGS="-g" 11009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11010/* end confdefs.h. */ 11011 11012int 11013main () 11014{ 11015 11016 ; 11017 return 0; 11018} 11019_ACEOF 11020if ac_fn_c_try_compile "$LINENO"; then : 11021 ac_cv_prog_cc_g=yes 11022else 11023 CFLAGS="" 11024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11025/* end confdefs.h. */ 11026 11027int 11028main () 11029{ 11030 11031 ; 11032 return 0; 11033} 11034_ACEOF 11035if ac_fn_c_try_compile "$LINENO"; then : 11036 11037else 11038 ac_c_werror_flag=$ac_save_c_werror_flag 11039 CFLAGS="-g" 11040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11041/* end confdefs.h. */ 11042 11043int 11044main () 11045{ 11046 11047 ; 11048 return 0; 11049} 11050_ACEOF 11051if ac_fn_c_try_compile "$LINENO"; then : 11052 ac_cv_prog_cc_g=yes 11053fi 11054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11055fi 11056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11057fi 11058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11059 ac_c_werror_flag=$ac_save_c_werror_flag 11060fi 11061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 11062$as_echo "$ac_cv_prog_cc_g" >&6; } 11063if test "$ac_test_CFLAGS" = set; then 11064 CFLAGS=$ac_save_CFLAGS 11065elif test $ac_cv_prog_cc_g = yes; then 11066 if test "$GCC" = yes; then 11067 CFLAGS="-g -O2" 11068 else 11069 CFLAGS="-g" 11070 fi 11071else 11072 if test "$GCC" = yes; then 11073 CFLAGS="-O2" 11074 else 11075 CFLAGS= 11076 fi 11077fi 11078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 11079$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 11080if test "${ac_cv_prog_cc_c89+set}" = set; then : 11081 $as_echo_n "(cached) " >&6 11082else 11083 ac_cv_prog_cc_c89=no 11084ac_save_CC=$CC 11085cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11086/* end confdefs.h. */ 11087#include <stdarg.h> 11088#include <stdio.h> 11089#include <sys/types.h> 11090#include <sys/stat.h> 11091/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 11092struct buf { int x; }; 11093FILE * (*rcsopen) (struct buf *, struct stat *, int); 11094static char *e (p, i) 11095 char **p; 11096 int i; 11097{ 11098 return p[i]; 11099} 11100static char *f (char * (*g) (char **, int), char **p, ...) 11101{ 11102 char *s; 11103 va_list v; 11104 va_start (v,p); 11105 s = g (p, va_arg (v,int)); 11106 va_end (v); 11107 return s; 11108} 11109 11110/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 11111 function prototypes and stuff, but not '\xHH' hex character constants. 11112 These don't provoke an error unfortunately, instead are silently treated 11113 as 'x'. The following induces an error, until -std is added to get 11114 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 11115 array size at least. It's necessary to write '\x00'==0 to get something 11116 that's true only with -std. */ 11117int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 11118 11119/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 11120 inside strings and character constants. */ 11121#define FOO(x) 'x' 11122int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 11123 11124int test (int i, double x); 11125struct s1 {int (*f) (int a);}; 11126struct s2 {int (*f) (double a);}; 11127int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 11128int argc; 11129char **argv; 11130int 11131main () 11132{ 11133return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 11134 ; 11135 return 0; 11136} 11137_ACEOF 11138for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 11139 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 11140do 11141 CC="$ac_save_CC $ac_arg" 11142 if ac_fn_c_try_compile "$LINENO"; then : 11143 ac_cv_prog_cc_c89=$ac_arg 11144fi 11145rm -f core conftest.err conftest.$ac_objext 11146 test "x$ac_cv_prog_cc_c89" != "xno" && break 11147done 11148rm -f conftest.$ac_ext 11149CC=$ac_save_CC 11150 11151fi 11152# AC_CACHE_VAL 11153case "x$ac_cv_prog_cc_c89" in 11154 x) 11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11156$as_echo "none needed" >&6; } ;; 11157 xno) 11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11159$as_echo "unsupported" >&6; } ;; 11160 *) 11161 CC="$CC $ac_cv_prog_cc_c89" 11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 11163$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 11164esac 11165if test "x$ac_cv_prog_cc_c89" != xno; then : 11166 11167fi 11168 11169ac_ext=c 11170ac_cpp='$CPP $CPPFLAGS' 11171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11173ac_compiler_gnu=$ac_cv_c_compiler_gnu 11174 11175depcc="$CC" am_compiler_list= 11176 11177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 11178$as_echo_n "checking dependency style of $depcc... " >&6; } 11179if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 11180 $as_echo_n "(cached) " >&6 11181else 11182 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 11183 # We make a subdir and do the tests there. Otherwise we can end up 11184 # making bogus files that we don't know about and never remove. For 11185 # instance it was reported that on HP-UX the gcc test will end up 11186 # making a dummy file named `D' -- because `-MD' means `put the output 11187 # in D'. 11188 mkdir conftest.dir 11189 # Copy depcomp to subdir because otherwise we won't find it if we're 11190 # using a relative directory. 11191 cp "$am_depcomp" conftest.dir 11192 cd conftest.dir 11193 # We will build objects and dependencies in a subdirectory because 11194 # it helps to detect inapplicable dependency modes. For instance 11195 # both Tru64's cc and ICC support -MD to output dependencies as a 11196 # side effect of compilation, but ICC will put the dependencies in 11197 # the current directory while Tru64 will put them in the object 11198 # directory. 11199 mkdir sub 11200 11201 am_cv_CC_dependencies_compiler_type=none 11202 if test "$am_compiler_list" = ""; then 11203 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 11204 fi 11205 for depmode in $am_compiler_list; do 11206 # Setup a source with many dependencies, because some compilers 11207 # like to wrap large dependency lists on column 80 (with \), and 11208 # we should not choose a depcomp mode which is confused by this. 11209 # 11210 # We need to recreate these files for each test, as the compiler may 11211 # overwrite some of them when testing with obscure command lines. 11212 # This happens at least with the AIX C compiler. 11213 : > sub/conftest.c 11214 for i in 1 2 3 4 5 6; do 11215 echo '#include "conftst'$i'.h"' >> sub/conftest.c 11216 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 11217 # Solaris 8's {/usr,}/bin/sh. 11218 touch sub/conftst$i.h 11219 done 11220 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 11221 11222 case $depmode in 11223 nosideeffect) 11224 # after this tag, mechanisms are not by side-effect, so they'll 11225 # only be used when explicitly requested 11226 if test "x$enable_dependency_tracking" = xyes; then 11227 continue 11228 else 11229 break 11230 fi 11231 ;; 11232 none) break ;; 11233 esac 11234 # We check with `-c' and `-o' for the sake of the "dashmstdout" 11235 # mode. It turns out that the SunPro C++ compiler does not properly 11236 # handle `-M -o', and we need to detect this. 11237 if depmode=$depmode \ 11238 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 11239 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 11240 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 11241 >/dev/null 2>conftest.err && 11242 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 11243 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 11244 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 11245 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 11246 # icc doesn't choke on unknown options, it will just issue warnings 11247 # or remarks (even with -Werror). So we grep stderr for any message 11248 # that says an option was ignored or not supported. 11249 # When given -MP, icc 7.0 and 7.1 complain thusly: 11250 # icc: Command line warning: ignoring option '-M'; no argument required 11251 # The diagnosis changed in icc 8.0: 11252 # icc: Command line remark: option '-MP' not supported 11253 if (grep 'ignoring option' conftest.err || 11254 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 11255 am_cv_CC_dependencies_compiler_type=$depmode 11256 break 11257 fi 11258 fi 11259 done 11260 11261 cd .. 11262 rm -rf conftest.dir 11263else 11264 am_cv_CC_dependencies_compiler_type=none 11265fi 11266 11267fi 11268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 11269$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 11270CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 11271 11272 if 11273 test "x$enable_dependency_tracking" != xno \ 11274 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 11275 am__fastdepCC_TRUE= 11276 am__fastdepCC_FALSE='#' 11277else 11278 am__fastdepCC_TRUE='#' 11279 am__fastdepCC_FALSE= 11280fi 11281 11282 11283if test "x$CC" != xcc; then 11284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 11285$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 11286else 11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 11288$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 11289fi 11290set dummy $CC; ac_cc=`$as_echo "$2" | 11291 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 11292if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then : 11293 $as_echo_n "(cached) " >&6 11294else 11295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11296/* end confdefs.h. */ 11297 11298int 11299main () 11300{ 11301 11302 ; 11303 return 0; 11304} 11305_ACEOF 11306# Make sure it works both with $CC and with simple cc. 11307# We do the test twice because some compilers refuse to overwrite an 11308# existing .o file with -o, though they will create one. 11309ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 11310rm -f conftest2.* 11311if { { case "(($ac_try" in 11312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11313 *) ac_try_echo=$ac_try;; 11314esac 11315eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11316$as_echo "$ac_try_echo"; } >&5 11317 (eval "$ac_try") 2>&5 11318 ac_status=$? 11319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11320 test $ac_status = 0; } && 11321 test -f conftest2.$ac_objext && { { case "(($ac_try" in 11322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11323 *) ac_try_echo=$ac_try;; 11324esac 11325eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11326$as_echo "$ac_try_echo"; } >&5 11327 (eval "$ac_try") 2>&5 11328 ac_status=$? 11329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11330 test $ac_status = 0; }; 11331then 11332 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 11333 if test "x$CC" != xcc; then 11334 # Test first that cc exists at all. 11335 if { ac_try='cc -c conftest.$ac_ext >&5' 11336 { { case "(($ac_try" in 11337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11338 *) ac_try_echo=$ac_try;; 11339esac 11340eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11341$as_echo "$ac_try_echo"; } >&5 11342 (eval "$ac_try") 2>&5 11343 ac_status=$? 11344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11345 test $ac_status = 0; }; }; then 11346 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 11347 rm -f conftest2.* 11348 if { { case "(($ac_try" in 11349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11350 *) ac_try_echo=$ac_try;; 11351esac 11352eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11353$as_echo "$ac_try_echo"; } >&5 11354 (eval "$ac_try") 2>&5 11355 ac_status=$? 11356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11357 test $ac_status = 0; } && 11358 test -f conftest2.$ac_objext && { { case "(($ac_try" in 11359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11360 *) ac_try_echo=$ac_try;; 11361esac 11362eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11363$as_echo "$ac_try_echo"; } >&5 11364 (eval "$ac_try") 2>&5 11365 ac_status=$? 11366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11367 test $ac_status = 0; }; 11368 then 11369 # cc works too. 11370 : 11371 else 11372 # cc exists but doesn't like -o. 11373 eval ac_cv_prog_cc_${ac_cc}_c_o=no 11374 fi 11375 fi 11376 fi 11377else 11378 eval ac_cv_prog_cc_${ac_cc}_c_o=no 11379fi 11380rm -f core conftest* 11381 11382fi 11383if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11385$as_echo "yes" >&6; } 11386else 11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11388$as_echo "no" >&6; } 11389 11390$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 11391 11392fi 11393 11394# FIXME: we rely on the cache variable name because 11395# there is no other way. 11396set dummy $CC 11397ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 11398if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then 11399 # Losing compiler, so override with the script. 11400 # FIXME: It is wrong to rewrite CC. 11401 # But if we don't then we get into trouble of one sort or another. 11402 # A longer-term fix would be to have automake use am__CC in this case, 11403 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 11404 CC="$am_aux_dir/compile $CC" 11405fi 11406 11407 11408 11409ac_ext=cpp 11410ac_cpp='$CXXCPP $CPPFLAGS' 11411ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11412ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11413ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11414 11415ac_ext=cpp 11416ac_cpp='$CXXCPP $CPPFLAGS' 11417ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11418ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11419ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11420if test -z "$CXX"; then 11421 if test -n "$CCC"; then 11422 CXX=$CCC 11423 else 11424 if test -n "$ac_tool_prefix"; then 11425 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 11426 do 11427 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11428set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11430$as_echo_n "checking for $ac_word... " >&6; } 11431if test "${ac_cv_prog_CXX+set}" = set; then : 11432 $as_echo_n "(cached) " >&6 11433else 11434 if test -n "$CXX"; then 11435 ac_cv_prog_CXX="$CXX" # Let the user override the test. 11436else 11437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11438for as_dir in $PATH 11439do 11440 IFS=$as_save_IFS 11441 test -z "$as_dir" && as_dir=. 11442 for ac_exec_ext in '' $ac_executable_extensions; do 11443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11444 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 11445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11446 break 2 11447 fi 11448done 11449 done 11450IFS=$as_save_IFS 11451 11452fi 11453fi 11454CXX=$ac_cv_prog_CXX 11455if test -n "$CXX"; then 11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 11457$as_echo "$CXX" >&6; } 11458else 11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11460$as_echo "no" >&6; } 11461fi 11462 11463 11464 test -n "$CXX" && break 11465 done 11466fi 11467if test -z "$CXX"; then 11468 ac_ct_CXX=$CXX 11469 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 11470do 11471 # Extract the first word of "$ac_prog", so it can be a program name with args. 11472set dummy $ac_prog; ac_word=$2 11473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11474$as_echo_n "checking for $ac_word... " >&6; } 11475if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : 11476 $as_echo_n "(cached) " >&6 11477else 11478 if test -n "$ac_ct_CXX"; then 11479 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 11480else 11481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11482for as_dir in $PATH 11483do 11484 IFS=$as_save_IFS 11485 test -z "$as_dir" && as_dir=. 11486 for ac_exec_ext in '' $ac_executable_extensions; do 11487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11488 ac_cv_prog_ac_ct_CXX="$ac_prog" 11489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11490 break 2 11491 fi 11492done 11493 done 11494IFS=$as_save_IFS 11495 11496fi 11497fi 11498ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 11499if test -n "$ac_ct_CXX"; then 11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 11501$as_echo "$ac_ct_CXX" >&6; } 11502else 11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11504$as_echo "no" >&6; } 11505fi 11506 11507 11508 test -n "$ac_ct_CXX" && break 11509done 11510 11511 if test "x$ac_ct_CXX" = x; then 11512 CXX="g++" 11513 else 11514 case $cross_compiling:$ac_tool_warned in 11515yes:) 11516{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11517$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11518ac_tool_warned=yes ;; 11519esac 11520 CXX=$ac_ct_CXX 11521 fi 11522fi 11523 11524 fi 11525fi 11526# Provide some information about the compiler. 11527$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 11528set X $ac_compile 11529ac_compiler=$2 11530for ac_option in --version -v -V -qversion; do 11531 { { ac_try="$ac_compiler $ac_option >&5" 11532case "(($ac_try" in 11533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11534 *) ac_try_echo=$ac_try;; 11535esac 11536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11537$as_echo "$ac_try_echo"; } >&5 11538 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 11539 ac_status=$? 11540 if test -s conftest.err; then 11541 sed '10a\ 11542... rest of stderr output deleted ... 11543 10q' conftest.err >conftest.er1 11544 cat conftest.er1 >&5 11545 fi 11546 rm -f conftest.er1 conftest.err 11547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11548 test $ac_status = 0; } 11549done 11550 11551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 11552$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 11553if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : 11554 $as_echo_n "(cached) " >&6 11555else 11556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11557/* end confdefs.h. */ 11558 11559int 11560main () 11561{ 11562#ifndef __GNUC__ 11563 choke me 11564#endif 11565 11566 ; 11567 return 0; 11568} 11569_ACEOF 11570if ac_fn_cxx_try_compile "$LINENO"; then : 11571 ac_compiler_gnu=yes 11572else 11573 ac_compiler_gnu=no 11574fi 11575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11576ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 11577 11578fi 11579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 11580$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 11581if test $ac_compiler_gnu = yes; then 11582 GXX=yes 11583else 11584 GXX= 11585fi 11586ac_test_CXXFLAGS=${CXXFLAGS+set} 11587ac_save_CXXFLAGS=$CXXFLAGS 11588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 11589$as_echo_n "checking whether $CXX accepts -g... " >&6; } 11590if test "${ac_cv_prog_cxx_g+set}" = set; then : 11591 $as_echo_n "(cached) " >&6 11592else 11593 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 11594 ac_cxx_werror_flag=yes 11595 ac_cv_prog_cxx_g=no 11596 CXXFLAGS="-g" 11597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11598/* end confdefs.h. */ 11599 11600int 11601main () 11602{ 11603 11604 ; 11605 return 0; 11606} 11607_ACEOF 11608if ac_fn_cxx_try_compile "$LINENO"; then : 11609 ac_cv_prog_cxx_g=yes 11610else 11611 CXXFLAGS="" 11612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11613/* end confdefs.h. */ 11614 11615int 11616main () 11617{ 11618 11619 ; 11620 return 0; 11621} 11622_ACEOF 11623if ac_fn_cxx_try_compile "$LINENO"; then : 11624 11625else 11626 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 11627 CXXFLAGS="-g" 11628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11629/* end confdefs.h. */ 11630 11631int 11632main () 11633{ 11634 11635 ; 11636 return 0; 11637} 11638_ACEOF 11639if ac_fn_cxx_try_compile "$LINENO"; then : 11640 ac_cv_prog_cxx_g=yes 11641fi 11642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11643fi 11644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11645fi 11646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11647 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 11648fi 11649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 11650$as_echo "$ac_cv_prog_cxx_g" >&6; } 11651if test "$ac_test_CXXFLAGS" = set; then 11652 CXXFLAGS=$ac_save_CXXFLAGS 11653elif test $ac_cv_prog_cxx_g = yes; then 11654 if test "$GXX" = yes; then 11655 CXXFLAGS="-g -O2" 11656 else 11657 CXXFLAGS="-g" 11658 fi 11659else 11660 if test "$GXX" = yes; then 11661 CXXFLAGS="-O2" 11662 else 11663 CXXFLAGS= 11664 fi 11665fi 11666ac_ext=cpp 11667ac_cpp='$CXXCPP $CPPFLAGS' 11668ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11669ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11670ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11671 11672depcc="$CXX" am_compiler_list= 11673 11674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 11675$as_echo_n "checking dependency style of $depcc... " >&6; } 11676if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : 11677 $as_echo_n "(cached) " >&6 11678else 11679 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 11680 # We make a subdir and do the tests there. Otherwise we can end up 11681 # making bogus files that we don't know about and never remove. For 11682 # instance it was reported that on HP-UX the gcc test will end up 11683 # making a dummy file named `D' -- because `-MD' means `put the output 11684 # in D'. 11685 mkdir conftest.dir 11686 # Copy depcomp to subdir because otherwise we won't find it if we're 11687 # using a relative directory. 11688 cp "$am_depcomp" conftest.dir 11689 cd conftest.dir 11690 # We will build objects and dependencies in a subdirectory because 11691 # it helps to detect inapplicable dependency modes. For instance 11692 # both Tru64's cc and ICC support -MD to output dependencies as a 11693 # side effect of compilation, but ICC will put the dependencies in 11694 # the current directory while Tru64 will put them in the object 11695 # directory. 11696 mkdir sub 11697 11698 am_cv_CXX_dependencies_compiler_type=none 11699 if test "$am_compiler_list" = ""; then 11700 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 11701 fi 11702 for depmode in $am_compiler_list; do 11703 # Setup a source with many dependencies, because some compilers 11704 # like to wrap large dependency lists on column 80 (with \), and 11705 # we should not choose a depcomp mode which is confused by this. 11706 # 11707 # We need to recreate these files for each test, as the compiler may 11708 # overwrite some of them when testing with obscure command lines. 11709 # This happens at least with the AIX C compiler. 11710 : > sub/conftest.c 11711 for i in 1 2 3 4 5 6; do 11712 echo '#include "conftst'$i'.h"' >> sub/conftest.c 11713 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 11714 # Solaris 8's {/usr,}/bin/sh. 11715 touch sub/conftst$i.h 11716 done 11717 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 11718 11719 case $depmode in 11720 nosideeffect) 11721 # after this tag, mechanisms are not by side-effect, so they'll 11722 # only be used when explicitly requested 11723 if test "x$enable_dependency_tracking" = xyes; then 11724 continue 11725 else 11726 break 11727 fi 11728 ;; 11729 none) break ;; 11730 esac 11731 # We check with `-c' and `-o' for the sake of the "dashmstdout" 11732 # mode. It turns out that the SunPro C++ compiler does not properly 11733 # handle `-M -o', and we need to detect this. 11734 if depmode=$depmode \ 11735 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 11736 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 11737 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 11738 >/dev/null 2>conftest.err && 11739 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 11740 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 11741 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 11742 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 11743 # icc doesn't choke on unknown options, it will just issue warnings 11744 # or remarks (even with -Werror). So we grep stderr for any message 11745 # that says an option was ignored or not supported. 11746 # When given -MP, icc 7.0 and 7.1 complain thusly: 11747 # icc: Command line warning: ignoring option '-M'; no argument required 11748 # The diagnosis changed in icc 8.0: 11749 # icc: Command line remark: option '-MP' not supported 11750 if (grep 'ignoring option' conftest.err || 11751 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 11752 am_cv_CXX_dependencies_compiler_type=$depmode 11753 break 11754 fi 11755 fi 11756 done 11757 11758 cd .. 11759 rm -rf conftest.dir 11760else 11761 am_cv_CXX_dependencies_compiler_type=none 11762fi 11763 11764fi 11765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 11766$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 11767CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 11768 11769 if 11770 test "x$enable_dependency_tracking" != xno \ 11771 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 11772 am__fastdepCXX_TRUE= 11773 am__fastdepCXX_FALSE='#' 11774else 11775 am__fastdepCXX_TRUE='#' 11776 am__fastdepCXX_FALSE= 11777fi 11778 11779 11780 11781ac_ext=cpp 11782ac_cpp='$CXXCPP $CPPFLAGS' 11783ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11784ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11785ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11786if test -z "$CXX"; then 11787 if test -n "$CCC"; then 11788 CXX=$CCC 11789 else 11790 if test -n "$ac_tool_prefix"; then 11791 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 11792 do 11793 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11794set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11796$as_echo_n "checking for $ac_word... " >&6; } 11797if test "${ac_cv_prog_CXX+set}" = set; then : 11798 $as_echo_n "(cached) " >&6 11799else 11800 if test -n "$CXX"; then 11801 ac_cv_prog_CXX="$CXX" # Let the user override the test. 11802else 11803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11804for as_dir in $PATH 11805do 11806 IFS=$as_save_IFS 11807 test -z "$as_dir" && as_dir=. 11808 for ac_exec_ext in '' $ac_executable_extensions; do 11809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11810 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 11811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11812 break 2 11813 fi 11814done 11815 done 11816IFS=$as_save_IFS 11817 11818fi 11819fi 11820CXX=$ac_cv_prog_CXX 11821if test -n "$CXX"; then 11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 11823$as_echo "$CXX" >&6; } 11824else 11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11826$as_echo "no" >&6; } 11827fi 11828 11829 11830 test -n "$CXX" && break 11831 done 11832fi 11833if test -z "$CXX"; then 11834 ac_ct_CXX=$CXX 11835 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 11836do 11837 # Extract the first word of "$ac_prog", so it can be a program name with args. 11838set dummy $ac_prog; ac_word=$2 11839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11840$as_echo_n "checking for $ac_word... " >&6; } 11841if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : 11842 $as_echo_n "(cached) " >&6 11843else 11844 if test -n "$ac_ct_CXX"; then 11845 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 11846else 11847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11848for as_dir in $PATH 11849do 11850 IFS=$as_save_IFS 11851 test -z "$as_dir" && as_dir=. 11852 for ac_exec_ext in '' $ac_executable_extensions; do 11853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11854 ac_cv_prog_ac_ct_CXX="$ac_prog" 11855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11856 break 2 11857 fi 11858done 11859 done 11860IFS=$as_save_IFS 11861 11862fi 11863fi 11864ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 11865if test -n "$ac_ct_CXX"; then 11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 11867$as_echo "$ac_ct_CXX" >&6; } 11868else 11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11870$as_echo "no" >&6; } 11871fi 11872 11873 11874 test -n "$ac_ct_CXX" && break 11875done 11876 11877 if test "x$ac_ct_CXX" = x; then 11878 CXX="g++" 11879 else 11880 case $cross_compiling:$ac_tool_warned in 11881yes:) 11882{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11883$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11884ac_tool_warned=yes ;; 11885esac 11886 CXX=$ac_ct_CXX 11887 fi 11888fi 11889 11890 fi 11891fi 11892# Provide some information about the compiler. 11893$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 11894set X $ac_compile 11895ac_compiler=$2 11896for ac_option in --version -v -V -qversion; do 11897 { { ac_try="$ac_compiler $ac_option >&5" 11898case "(($ac_try" in 11899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11900 *) ac_try_echo=$ac_try;; 11901esac 11902eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11903$as_echo "$ac_try_echo"; } >&5 11904 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 11905 ac_status=$? 11906 if test -s conftest.err; then 11907 sed '10a\ 11908... rest of stderr output deleted ... 11909 10q' conftest.err >conftest.er1 11910 cat conftest.er1 >&5 11911 fi 11912 rm -f conftest.er1 conftest.err 11913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11914 test $ac_status = 0; } 11915done 11916 11917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 11918$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 11919if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : 11920 $as_echo_n "(cached) " >&6 11921else 11922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11923/* end confdefs.h. */ 11924 11925int 11926main () 11927{ 11928#ifndef __GNUC__ 11929 choke me 11930#endif 11931 11932 ; 11933 return 0; 11934} 11935_ACEOF 11936if ac_fn_cxx_try_compile "$LINENO"; then : 11937 ac_compiler_gnu=yes 11938else 11939 ac_compiler_gnu=no 11940fi 11941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11942ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 11943 11944fi 11945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 11946$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 11947if test $ac_compiler_gnu = yes; then 11948 GXX=yes 11949else 11950 GXX= 11951fi 11952ac_test_CXXFLAGS=${CXXFLAGS+set} 11953ac_save_CXXFLAGS=$CXXFLAGS 11954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 11955$as_echo_n "checking whether $CXX accepts -g... " >&6; } 11956if test "${ac_cv_prog_cxx_g+set}" = set; then : 11957 $as_echo_n "(cached) " >&6 11958else 11959 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 11960 ac_cxx_werror_flag=yes 11961 ac_cv_prog_cxx_g=no 11962 CXXFLAGS="-g" 11963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11964/* end confdefs.h. */ 11965 11966int 11967main () 11968{ 11969 11970 ; 11971 return 0; 11972} 11973_ACEOF 11974if ac_fn_cxx_try_compile "$LINENO"; then : 11975 ac_cv_prog_cxx_g=yes 11976else 11977 CXXFLAGS="" 11978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11979/* end confdefs.h. */ 11980 11981int 11982main () 11983{ 11984 11985 ; 11986 return 0; 11987} 11988_ACEOF 11989if ac_fn_cxx_try_compile "$LINENO"; then : 11990 11991else 11992 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 11993 CXXFLAGS="-g" 11994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11995/* end confdefs.h. */ 11996 11997int 11998main () 11999{ 12000 12001 ; 12002 return 0; 12003} 12004_ACEOF 12005if ac_fn_cxx_try_compile "$LINENO"; then : 12006 ac_cv_prog_cxx_g=yes 12007fi 12008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12009fi 12010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12011fi 12012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12013 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 12014fi 12015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 12016$as_echo "$ac_cv_prog_cxx_g" >&6; } 12017if test "$ac_test_CXXFLAGS" = set; then 12018 CXXFLAGS=$ac_save_CXXFLAGS 12019elif test $ac_cv_prog_cxx_g = yes; then 12020 if test "$GXX" = yes; then 12021 CXXFLAGS="-g -O2" 12022 else 12023 CXXFLAGS="-g" 12024 fi 12025else 12026 if test "$GXX" = yes; then 12027 CXXFLAGS="-O2" 12028 else 12029 CXXFLAGS= 12030 fi 12031fi 12032ac_ext=cpp 12033ac_cpp='$CXXCPP $CPPFLAGS' 12034ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12035ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12036ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12037 12038depcc="$CXX" am_compiler_list= 12039 12040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 12041$as_echo_n "checking dependency style of $depcc... " >&6; } 12042if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : 12043 $as_echo_n "(cached) " >&6 12044else 12045 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 12046 # We make a subdir and do the tests there. Otherwise we can end up 12047 # making bogus files that we don't know about and never remove. For 12048 # instance it was reported that on HP-UX the gcc test will end up 12049 # making a dummy file named `D' -- because `-MD' means `put the output 12050 # in D'. 12051 mkdir conftest.dir 12052 # Copy depcomp to subdir because otherwise we won't find it if we're 12053 # using a relative directory. 12054 cp "$am_depcomp" conftest.dir 12055 cd conftest.dir 12056 # We will build objects and dependencies in a subdirectory because 12057 # it helps to detect inapplicable dependency modes. For instance 12058 # both Tru64's cc and ICC support -MD to output dependencies as a 12059 # side effect of compilation, but ICC will put the dependencies in 12060 # the current directory while Tru64 will put them in the object 12061 # directory. 12062 mkdir sub 12063 12064 am_cv_CXX_dependencies_compiler_type=none 12065 if test "$am_compiler_list" = ""; then 12066 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 12067 fi 12068 for depmode in $am_compiler_list; do 12069 # Setup a source with many dependencies, because some compilers 12070 # like to wrap large dependency lists on column 80 (with \), and 12071 # we should not choose a depcomp mode which is confused by this. 12072 # 12073 # We need to recreate these files for each test, as the compiler may 12074 # overwrite some of them when testing with obscure command lines. 12075 # This happens at least with the AIX C compiler. 12076 : > sub/conftest.c 12077 for i in 1 2 3 4 5 6; do 12078 echo '#include "conftst'$i'.h"' >> sub/conftest.c 12079 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 12080 # Solaris 8's {/usr,}/bin/sh. 12081 touch sub/conftst$i.h 12082 done 12083 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 12084 12085 case $depmode in 12086 nosideeffect) 12087 # after this tag, mechanisms are not by side-effect, so they'll 12088 # only be used when explicitly requested 12089 if test "x$enable_dependency_tracking" = xyes; then 12090 continue 12091 else 12092 break 12093 fi 12094 ;; 12095 none) break ;; 12096 esac 12097 # We check with `-c' and `-o' for the sake of the "dashmstdout" 12098 # mode. It turns out that the SunPro C++ compiler does not properly 12099 # handle `-M -o', and we need to detect this. 12100 if depmode=$depmode \ 12101 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 12102 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 12103 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 12104 >/dev/null 2>conftest.err && 12105 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 12106 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 12107 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 12108 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 12109 # icc doesn't choke on unknown options, it will just issue warnings 12110 # or remarks (even with -Werror). So we grep stderr for any message 12111 # that says an option was ignored or not supported. 12112 # When given -MP, icc 7.0 and 7.1 complain thusly: 12113 # icc: Command line warning: ignoring option '-M'; no argument required 12114 # The diagnosis changed in icc 8.0: 12115 # icc: Command line remark: option '-MP' not supported 12116 if (grep 'ignoring option' conftest.err || 12117 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 12118 am_cv_CXX_dependencies_compiler_type=$depmode 12119 break 12120 fi 12121 fi 12122 done 12123 12124 cd .. 12125 rm -rf conftest.dir 12126else 12127 am_cv_CXX_dependencies_compiler_type=none 12128fi 12129 12130fi 12131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 12132$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 12133CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 12134 12135 if 12136 test "x$enable_dependency_tracking" != xno \ 12137 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 12138 am__fastdepCXX_TRUE= 12139 am__fastdepCXX_FALSE='#' 12140else 12141 am__fastdepCXX_TRUE='#' 12142 am__fastdepCXX_FALSE= 12143fi 12144 12145 12146if test -n "$CXX" && ( test "X$CXX" != "Xno" && 12147 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 12148 (test "X$CXX" != "Xg++"))) ; then 12149 ac_ext=cpp 12150ac_cpp='$CXXCPP $CPPFLAGS' 12151ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12152ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12153ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 12155$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 12156if test -z "$CXXCPP"; then 12157 if test "${ac_cv_prog_CXXCPP+set}" = set; then : 12158 $as_echo_n "(cached) " >&6 12159else 12160 # Double quotes because CXXCPP needs to be expanded 12161 for CXXCPP in "$CXX -E" "/lib/cpp" 12162 do 12163 ac_preproc_ok=false 12164for ac_cxx_preproc_warn_flag in '' yes 12165do 12166 # Use a header file that comes with gcc, so configuring glibc 12167 # with a fresh cross-compiler works. 12168 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12169 # <limits.h> exists even on freestanding compilers. 12170 # On the NeXT, cc -E runs the code through the compiler's parser, 12171 # not just through cpp. "Syntax error" is here to catch this case. 12172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12173/* end confdefs.h. */ 12174#ifdef __STDC__ 12175# include <limits.h> 12176#else 12177# include <assert.h> 12178#endif 12179 Syntax error 12180_ACEOF 12181if ac_fn_cxx_try_cpp "$LINENO"; then : 12182 12183else 12184 # Broken: fails on valid input. 12185continue 12186fi 12187rm -f conftest.err conftest.i conftest.$ac_ext 12188 12189 # OK, works on sane cases. Now check whether nonexistent headers 12190 # can be detected and how. 12191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12192/* end confdefs.h. */ 12193#include <ac_nonexistent.h> 12194_ACEOF 12195if ac_fn_cxx_try_cpp "$LINENO"; then : 12196 # Broken: success on invalid input. 12197continue 12198else 12199 # Passes both tests. 12200ac_preproc_ok=: 12201break 12202fi 12203rm -f conftest.err conftest.i conftest.$ac_ext 12204 12205done 12206# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12207rm -f conftest.i conftest.err conftest.$ac_ext 12208if $ac_preproc_ok; then : 12209 break 12210fi 12211 12212 done 12213 ac_cv_prog_CXXCPP=$CXXCPP 12214 12215fi 12216 CXXCPP=$ac_cv_prog_CXXCPP 12217else 12218 ac_cv_prog_CXXCPP=$CXXCPP 12219fi 12220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 12221$as_echo "$CXXCPP" >&6; } 12222ac_preproc_ok=false 12223for ac_cxx_preproc_warn_flag in '' yes 12224do 12225 # Use a header file that comes with gcc, so configuring glibc 12226 # with a fresh cross-compiler works. 12227 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12228 # <limits.h> exists even on freestanding compilers. 12229 # On the NeXT, cc -E runs the code through the compiler's parser, 12230 # not just through cpp. "Syntax error" is here to catch this case. 12231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12232/* end confdefs.h. */ 12233#ifdef __STDC__ 12234# include <limits.h> 12235#else 12236# include <assert.h> 12237#endif 12238 Syntax error 12239_ACEOF 12240if ac_fn_cxx_try_cpp "$LINENO"; then : 12241 12242else 12243 # Broken: fails on valid input. 12244continue 12245fi 12246rm -f conftest.err conftest.i conftest.$ac_ext 12247 12248 # OK, works on sane cases. Now check whether nonexistent headers 12249 # can be detected and how. 12250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12251/* end confdefs.h. */ 12252#include <ac_nonexistent.h> 12253_ACEOF 12254if ac_fn_cxx_try_cpp "$LINENO"; then : 12255 # Broken: success on invalid input. 12256continue 12257else 12258 # Passes both tests. 12259ac_preproc_ok=: 12260break 12261fi 12262rm -f conftest.err conftest.i conftest.$ac_ext 12263 12264done 12265# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12266rm -f conftest.i conftest.err conftest.$ac_ext 12267if $ac_preproc_ok; then : 12268 12269else 12270 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12271$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12272_lt_caught_CXX_error=yes; } 12273fi 12274 12275ac_ext=cpp 12276ac_cpp='$CXXCPP $CPPFLAGS' 12277ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12278ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12279ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12280 12281else 12282 _lt_caught_CXX_error=yes 12283fi 12284 12285 12286 12287 12288ac_ext=cpp 12289ac_cpp='$CXXCPP $CPPFLAGS' 12290ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12291ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12292ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12293 12294archive_cmds_need_lc_CXX=no 12295allow_undefined_flag_CXX= 12296always_export_symbols_CXX=no 12297archive_expsym_cmds_CXX= 12298compiler_needs_object_CXX=no 12299export_dynamic_flag_spec_CXX= 12300hardcode_direct_CXX=no 12301hardcode_direct_absolute_CXX=no 12302hardcode_libdir_flag_spec_CXX= 12303hardcode_libdir_flag_spec_ld_CXX= 12304hardcode_libdir_separator_CXX= 12305hardcode_minus_L_CXX=no 12306hardcode_shlibpath_var_CXX=unsupported 12307hardcode_automatic_CXX=no 12308inherit_rpath_CXX=no 12309module_cmds_CXX= 12310module_expsym_cmds_CXX= 12311link_all_deplibs_CXX=unknown 12312old_archive_cmds_CXX=$old_archive_cmds 12313no_undefined_flag_CXX= 12314whole_archive_flag_spec_CXX= 12315enable_shared_with_static_runtimes_CXX=no 12316 12317# Source file extension for C++ test sources. 12318ac_ext=cpp 12319 12320# Object file extension for compiled C++ test sources. 12321objext=o 12322objext_CXX=$objext 12323 12324# No sense in running all these tests if we already determined that 12325# the CXX compiler isn't working. Some variables (like enable_shared) 12326# are currently assumed to apply to all compilers on this platform, 12327# and will be corrupted by setting them based on a non-working compiler. 12328if test "$_lt_caught_CXX_error" != yes; then 12329 # Code to be used in simple compile tests 12330 lt_simple_compile_test_code="int some_variable = 0;" 12331 12332 # Code to be used in simple link tests 12333 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12334 12335 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12336 12337 12338 12339 12340 12341 12342# If no C compiler was specified, use CC. 12343LTCC=${LTCC-"$CC"} 12344 12345# If no C compiler flags were specified, use CFLAGS. 12346LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12347 12348# Allow CC to be a program name with arguments. 12349compiler=$CC 12350 12351 12352 # save warnings/boilerplate of simple test code 12353 ac_outfile=conftest.$ac_objext 12354echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12355eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12356_lt_compiler_boilerplate=`cat conftest.err` 12357$RM conftest* 12358 12359 ac_outfile=conftest.$ac_objext 12360echo "$lt_simple_link_test_code" >conftest.$ac_ext 12361eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12362_lt_linker_boilerplate=`cat conftest.err` 12363$RM -r conftest* 12364 12365 12366 # Allow CC to be a program name with arguments. 12367 lt_save_CC=$CC 12368 lt_save_LD=$LD 12369 lt_save_GCC=$GCC 12370 GCC=$GXX 12371 lt_save_with_gnu_ld=$with_gnu_ld 12372 lt_save_path_LD=$lt_cv_path_LD 12373 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12374 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12375 else 12376 $as_unset lt_cv_prog_gnu_ld 12377 fi 12378 if test -n "${lt_cv_path_LDCXX+set}"; then 12379 lt_cv_path_LD=$lt_cv_path_LDCXX 12380 else 12381 $as_unset lt_cv_path_LD 12382 fi 12383 test -z "${LDCXX+set}" || LD=$LDCXX 12384 CC=${CXX-"c++"} 12385 compiler=$CC 12386 compiler_CXX=$CC 12387 for cc_temp in $compiler""; do 12388 case $cc_temp in 12389 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12390 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12391 \-*) ;; 12392 *) break;; 12393 esac 12394done 12395cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 12396 12397 12398 if test -n "$compiler"; then 12399 # We don't want -fno-exception when compiling C++ code, so set the 12400 # no_builtin_flag separately 12401 if test "$GXX" = yes; then 12402 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12403 else 12404 lt_prog_compiler_no_builtin_flag_CXX= 12405 fi 12406 12407 if test "$GXX" = yes; then 12408 # Set up default GNU C++ configuration 12409 12410 12411 12412# Check whether --with-gnu-ld was given. 12413if test "${with_gnu_ld+set}" = set; then : 12414 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12415else 12416 with_gnu_ld=no 12417fi 12418 12419ac_prog=ld 12420if test "$GCC" = yes; then 12421 # Check if gcc -print-prog-name=ld gives a path. 12422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12423$as_echo_n "checking for ld used by $CC... " >&6; } 12424 case $host in 12425 *-*-mingw*) 12426 # gcc leaves a trailing carriage return which upsets mingw 12427 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12428 *) 12429 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12430 esac 12431 case $ac_prog in 12432 # Accept absolute paths. 12433 [\\/]* | ?:[\\/]*) 12434 re_direlt='/[^/][^/]*/\.\./' 12435 # Canonicalize the pathname of ld 12436 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12437 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12438 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12439 done 12440 test -z "$LD" && LD="$ac_prog" 12441 ;; 12442 "") 12443 # If it fails, then pretend we aren't using GCC. 12444 ac_prog=ld 12445 ;; 12446 *) 12447 # If it is relative, then search for the first ld in PATH. 12448 with_gnu_ld=unknown 12449 ;; 12450 esac 12451elif test "$with_gnu_ld" = yes; then 12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12453$as_echo_n "checking for GNU ld... " >&6; } 12454else 12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12456$as_echo_n "checking for non-GNU ld... " >&6; } 12457fi 12458if test "${lt_cv_path_LD+set}" = set; then : 12459 $as_echo_n "(cached) " >&6 12460else 12461 if test -z "$LD"; then 12462 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12463 for ac_dir in $PATH; do 12464 IFS="$lt_save_ifs" 12465 test -z "$ac_dir" && ac_dir=. 12466 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12467 lt_cv_path_LD="$ac_dir/$ac_prog" 12468 # Check to see if the program is GNU ld. I'd rather use --version, 12469 # but apparently some variants of GNU ld only accept -v. 12470 # Break only if it was the GNU/non-GNU ld that we prefer. 12471 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12472 *GNU* | *'with BFD'*) 12473 test "$with_gnu_ld" != no && break 12474 ;; 12475 *) 12476 test "$with_gnu_ld" != yes && break 12477 ;; 12478 esac 12479 fi 12480 done 12481 IFS="$lt_save_ifs" 12482else 12483 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12484fi 12485fi 12486 12487LD="$lt_cv_path_LD" 12488if test -n "$LD"; then 12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12490$as_echo "$LD" >&6; } 12491else 12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12493$as_echo "no" >&6; } 12494fi 12495test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12497$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12498if test "${lt_cv_prog_gnu_ld+set}" = set; then : 12499 $as_echo_n "(cached) " >&6 12500else 12501 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12502case `$LD -v 2>&1 </dev/null` in 12503*GNU* | *'with BFD'*) 12504 lt_cv_prog_gnu_ld=yes 12505 ;; 12506*) 12507 lt_cv_prog_gnu_ld=no 12508 ;; 12509esac 12510fi 12511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12512$as_echo "$lt_cv_prog_gnu_ld" >&6; } 12513with_gnu_ld=$lt_cv_prog_gnu_ld 12514 12515 12516 12517 12518 12519 12520 12521 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12522 # archiving commands below assume that GNU ld is being used. 12523 if test "$with_gnu_ld" = yes; then 12524 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12525 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' 12526 12527 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12528 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12529 12530 # If archive_cmds runs LD, not CC, wlarc should be empty 12531 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12532 # investigate it a little bit more. (MM) 12533 wlarc='${wl}' 12534 12535 # ancient GNU ld didn't support --whole-archive et. al. 12536 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 12537 $GREP 'no-whole-archive' > /dev/null; then 12538 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12539 else 12540 whole_archive_flag_spec_CXX= 12541 fi 12542 else 12543 with_gnu_ld=no 12544 wlarc= 12545 12546 # A generic and very simple default shared library creation 12547 # command for GNU C++ for the case where it uses the native 12548 # linker, instead of GNU ld. If possible, this setting should 12549 # overridden to take advantage of the native linker features on 12550 # the platform it is being used on. 12551 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12552 fi 12553 12554 # Commands to make compiler produce verbose output that lists 12555 # what "hidden" libraries, object files and flags are used when 12556 # linking a shared library. 12557 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 12558 12559 else 12560 GXX=no 12561 with_gnu_ld=no 12562 wlarc= 12563 fi 12564 12565 # PORTME: fill in a description of your system's C++ link characteristics 12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12567$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12568 ld_shlibs_CXX=yes 12569 case $host_os in 12570 aix3*) 12571 # FIXME: insert proper C++ library support 12572 ld_shlibs_CXX=no 12573 ;; 12574 aix[4-9]*) 12575 if test "$host_cpu" = ia64; then 12576 # On IA64, the linker does run time linking by default, so we don't 12577 # have to do anything special. 12578 aix_use_runtimelinking=no 12579 exp_sym_flag='-Bexport' 12580 no_entry_flag="" 12581 else 12582 aix_use_runtimelinking=no 12583 12584 # Test if we are trying to use run time linking or normal 12585 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12586 # need to do runtime linking. 12587 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12588 for ld_flag in $LDFLAGS; do 12589 case $ld_flag in 12590 *-brtl*) 12591 aix_use_runtimelinking=yes 12592 break 12593 ;; 12594 esac 12595 done 12596 ;; 12597 esac 12598 12599 exp_sym_flag='-bexport' 12600 no_entry_flag='-bnoentry' 12601 fi 12602 12603 # When large executables or shared objects are built, AIX ld can 12604 # have problems creating the table of contents. If linking a library 12605 # or program results in "error TOC overflow" add -mminimal-toc to 12606 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12607 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12608 12609 archive_cmds_CXX='' 12610 hardcode_direct_CXX=yes 12611 hardcode_direct_absolute_CXX=yes 12612 hardcode_libdir_separator_CXX=':' 12613 link_all_deplibs_CXX=yes 12614 file_list_spec_CXX='${wl}-f,' 12615 12616 if test "$GXX" = yes; then 12617 case $host_os in aix4.[012]|aix4.[012].*) 12618 # We only want to do this on AIX 4.2 and lower, the check 12619 # below for broken collect2 doesn't work under 4.3+ 12620 collect2name=`${CC} -print-prog-name=collect2` 12621 if test -f "$collect2name" && 12622 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12623 then 12624 # We have reworked collect2 12625 : 12626 else 12627 # We have old collect2 12628 hardcode_direct_CXX=unsupported 12629 # It fails to find uninstalled libraries when the uninstalled 12630 # path is not listed in the libpath. Setting hardcode_minus_L 12631 # to unsupported forces relinking 12632 hardcode_minus_L_CXX=yes 12633 hardcode_libdir_flag_spec_CXX='-L$libdir' 12634 hardcode_libdir_separator_CXX= 12635 fi 12636 esac 12637 shared_flag='-shared' 12638 if test "$aix_use_runtimelinking" = yes; then 12639 shared_flag="$shared_flag "'${wl}-G' 12640 fi 12641 else 12642 # not using gcc 12643 if test "$host_cpu" = ia64; then 12644 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12645 # chokes on -Wl,-G. The following line is correct: 12646 shared_flag='-G' 12647 else 12648 if test "$aix_use_runtimelinking" = yes; then 12649 shared_flag='${wl}-G' 12650 else 12651 shared_flag='${wl}-bM:SRE' 12652 fi 12653 fi 12654 fi 12655 12656 export_dynamic_flag_spec_CXX='${wl}-bexpall' 12657 # It seems that -bexpall does not export symbols beginning with 12658 # underscore (_), so it is better to generate a list of symbols to 12659 # export. 12660 always_export_symbols_CXX=yes 12661 if test "$aix_use_runtimelinking" = yes; then 12662 # Warning - without using the other runtime loading flags (-brtl), 12663 # -berok will link without error, but may produce a broken library. 12664 allow_undefined_flag_CXX='-berok' 12665 # Determine the default libpath from the value encoded in an empty 12666 # executable. 12667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12668/* end confdefs.h. */ 12669 12670int 12671main () 12672{ 12673 12674 ; 12675 return 0; 12676} 12677_ACEOF 12678if ac_fn_cxx_try_link "$LINENO"; then : 12679 12680lt_aix_libpath_sed=' 12681 /Import File Strings/,/^$/ { 12682 /^0/ { 12683 s/^0 *\(.*\)$/\1/ 12684 p 12685 } 12686 }' 12687aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12688# Check for a 64-bit object if we didn't find anything. 12689if test -z "$aix_libpath"; then 12690 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12691fi 12692fi 12693rm -f core conftest.err conftest.$ac_objext \ 12694 conftest$ac_exeext conftest.$ac_ext 12695if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12696 12697 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12698 12699 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" 12700 else 12701 if test "$host_cpu" = ia64; then 12702 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 12703 allow_undefined_flag_CXX="-z nodefs" 12704 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" 12705 else 12706 # Determine the default libpath from the value encoded in an 12707 # empty executable. 12708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12709/* end confdefs.h. */ 12710 12711int 12712main () 12713{ 12714 12715 ; 12716 return 0; 12717} 12718_ACEOF 12719if ac_fn_cxx_try_link "$LINENO"; then : 12720 12721lt_aix_libpath_sed=' 12722 /Import File Strings/,/^$/ { 12723 /^0/ { 12724 s/^0 *\(.*\)$/\1/ 12725 p 12726 } 12727 }' 12728aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12729# Check for a 64-bit object if we didn't find anything. 12730if test -z "$aix_libpath"; then 12731 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12732fi 12733fi 12734rm -f core conftest.err conftest.$ac_objext \ 12735 conftest$ac_exeext conftest.$ac_ext 12736if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12737 12738 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12739 # Warning - without using the other run time loading flags, 12740 # -berok will link without error, but may produce a broken library. 12741 no_undefined_flag_CXX=' ${wl}-bernotok' 12742 allow_undefined_flag_CXX=' ${wl}-berok' 12743 # Exported symbols can be pulled into shared objects from archives 12744 whole_archive_flag_spec_CXX='$convenience' 12745 archive_cmds_need_lc_CXX=yes 12746 # This is similar to how AIX traditionally builds its shared 12747 # libraries. 12748 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' 12749 fi 12750 fi 12751 ;; 12752 12753 beos*) 12754 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12755 allow_undefined_flag_CXX=unsupported 12756 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12757 # support --undefined. This deserves some investigation. FIXME 12758 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12759 else 12760 ld_shlibs_CXX=no 12761 fi 12762 ;; 12763 12764 chorus*) 12765 case $cc_basename in 12766 *) 12767 # FIXME: insert proper C++ library support 12768 ld_shlibs_CXX=no 12769 ;; 12770 esac 12771 ;; 12772 12773 cygwin* | mingw* | pw32* | cegcc*) 12774 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12775 # as there is no search path for DLLs. 12776 hardcode_libdir_flag_spec_CXX='-L$libdir' 12777 allow_undefined_flag_CXX=unsupported 12778 always_export_symbols_CXX=no 12779 enable_shared_with_static_runtimes_CXX=yes 12780 12781 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12782 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' 12783 # If the export-symbols file already is a .def file (1st line 12784 # is EXPORTS), use it as is; otherwise, prepend... 12785 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12786 cp $export_symbols $output_objdir/$soname.def; 12787 else 12788 echo EXPORTS > $output_objdir/$soname.def; 12789 cat $export_symbols >> $output_objdir/$soname.def; 12790 fi~ 12791 $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' 12792 else 12793 ld_shlibs_CXX=no 12794 fi 12795 ;; 12796 darwin* | rhapsody*) 12797 12798 12799 archive_cmds_need_lc_CXX=no 12800 hardcode_direct_CXX=no 12801 hardcode_automatic_CXX=yes 12802 hardcode_shlibpath_var_CXX=unsupported 12803 whole_archive_flag_spec_CXX='' 12804 link_all_deplibs_CXX=yes 12805 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 12806 case $cc_basename in 12807 ifort*) _lt_dar_can_shared=yes ;; 12808 *) _lt_dar_can_shared=$GCC ;; 12809 esac 12810 if test "$_lt_dar_can_shared" = "yes"; then 12811 output_verbose_link_cmd=echo 12812 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}" 12813 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 12814 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}" 12815 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}" 12816 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 12817 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}" 12818 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}" 12819 fi 12820 12821 else 12822 ld_shlibs_CXX=no 12823 fi 12824 12825 ;; 12826 12827 dgux*) 12828 case $cc_basename in 12829 ec++*) 12830 # FIXME: insert proper C++ library support 12831 ld_shlibs_CXX=no 12832 ;; 12833 ghcx*) 12834 # Green Hills C++ Compiler 12835 # FIXME: insert proper C++ library support 12836 ld_shlibs_CXX=no 12837 ;; 12838 *) 12839 # FIXME: insert proper C++ library support 12840 ld_shlibs_CXX=no 12841 ;; 12842 esac 12843 ;; 12844 12845 freebsd[12]*) 12846 # C++ shared libraries reported to be fairly broken before 12847 # switch to ELF 12848 ld_shlibs_CXX=no 12849 ;; 12850 12851 freebsd-elf*) 12852 archive_cmds_need_lc_CXX=no 12853 ;; 12854 12855 freebsd* | dragonfly*) 12856 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12857 # conventions 12858 ld_shlibs_CXX=yes 12859 ;; 12860 12861 gnu*) 12862 ;; 12863 12864 hpux9*) 12865 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12866 hardcode_libdir_separator_CXX=: 12867 export_dynamic_flag_spec_CXX='${wl}-E' 12868 hardcode_direct_CXX=yes 12869 hardcode_minus_L_CXX=yes # Not in the search PATH, 12870 # but as the default 12871 # location of the library. 12872 12873 case $cc_basename in 12874 CC*) 12875 # FIXME: insert proper C++ library support 12876 ld_shlibs_CXX=no 12877 ;; 12878 aCC*) 12879 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' 12880 # Commands to make compiler produce verbose output that lists 12881 # what "hidden" libraries, object files and flags are used when 12882 # linking a shared library. 12883 # 12884 # There doesn't appear to be a way to prevent this compiler from 12885 # explicitly linking system object files so we need to strip them 12886 # from the output so that they don't get included in the library 12887 # dependencies. 12888 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' 12889 ;; 12890 *) 12891 if test "$GXX" = yes; then 12892 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' 12893 else 12894 # FIXME: insert proper C++ library support 12895 ld_shlibs_CXX=no 12896 fi 12897 ;; 12898 esac 12899 ;; 12900 12901 hpux10*|hpux11*) 12902 if test $with_gnu_ld = no; then 12903 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12904 hardcode_libdir_separator_CXX=: 12905 12906 case $host_cpu in 12907 hppa*64*|ia64*) 12908 ;; 12909 *) 12910 export_dynamic_flag_spec_CXX='${wl}-E' 12911 ;; 12912 esac 12913 fi 12914 case $host_cpu in 12915 hppa*64*|ia64*) 12916 hardcode_direct_CXX=no 12917 hardcode_shlibpath_var_CXX=no 12918 ;; 12919 *) 12920 hardcode_direct_CXX=yes 12921 hardcode_direct_absolute_CXX=yes 12922 hardcode_minus_L_CXX=yes # Not in the search PATH, 12923 # but as the default 12924 # location of the library. 12925 ;; 12926 esac 12927 12928 case $cc_basename in 12929 CC*) 12930 # FIXME: insert proper C++ library support 12931 ld_shlibs_CXX=no 12932 ;; 12933 aCC*) 12934 case $host_cpu in 12935 hppa*64*) 12936 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12937 ;; 12938 ia64*) 12939 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12940 ;; 12941 *) 12942 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12943 ;; 12944 esac 12945 # Commands to make compiler produce verbose output that lists 12946 # what "hidden" libraries, object files and flags are used when 12947 # linking a shared library. 12948 # 12949 # There doesn't appear to be a way to prevent this compiler from 12950 # explicitly linking system object files so we need to strip them 12951 # from the output so that they don't get included in the library 12952 # dependencies. 12953 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' 12954 ;; 12955 *) 12956 if test "$GXX" = yes; then 12957 if test $with_gnu_ld = no; then 12958 case $host_cpu in 12959 hppa*64*) 12960 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12961 ;; 12962 ia64*) 12963 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12964 ;; 12965 *) 12966 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' 12967 ;; 12968 esac 12969 fi 12970 else 12971 # FIXME: insert proper C++ library support 12972 ld_shlibs_CXX=no 12973 fi 12974 ;; 12975 esac 12976 ;; 12977 12978 interix[3-9]*) 12979 hardcode_direct_CXX=no 12980 hardcode_shlibpath_var_CXX=no 12981 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12982 export_dynamic_flag_spec_CXX='${wl}-E' 12983 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12984 # Instead, shared libraries are loaded at an image base (0x10000000 by 12985 # default) and relocated if they conflict, which is a slow very memory 12986 # consuming and fragmenting process. To avoid this, we pick a random, 12987 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12988 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12989 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' 12990 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' 12991 ;; 12992 irix5* | irix6*) 12993 case $cc_basename in 12994 CC*) 12995 # SGI C++ 12996 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' 12997 12998 # Archives containing C++ object files must be created using 12999 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13000 # necessary to make sure instantiated templates are included 13001 # in the archive. 13002 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13003 ;; 13004 *) 13005 if test "$GXX" = yes; then 13006 if test "$with_gnu_ld" = no; then 13007 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' 13008 else 13009 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' 13010 fi 13011 fi 13012 link_all_deplibs_CXX=yes 13013 ;; 13014 esac 13015 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13016 hardcode_libdir_separator_CXX=: 13017 inherit_rpath_CXX=yes 13018 ;; 13019 13020 linux* | k*bsd*-gnu) 13021 case $cc_basename in 13022 KCC*) 13023 # Kuck and Associates, Inc. (KAI) C++ Compiler 13024 13025 # KCC will only create a shared library if the output file 13026 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13027 # to its proper name (with version) after linking. 13028 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' 13029 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' 13030 # Commands to make compiler produce verbose output that lists 13031 # what "hidden" libraries, object files and flags are used when 13032 # linking a shared library. 13033 # 13034 # There doesn't appear to be a way to prevent this compiler from 13035 # explicitly linking system object files so we need to strip them 13036 # from the output so that they don't get included in the library 13037 # dependencies. 13038 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' 13039 13040 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13041 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13042 13043 # Archives containing C++ object files must be created using 13044 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13045 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13046 ;; 13047 icpc* | ecpc* ) 13048 # Intel C++ 13049 with_gnu_ld=yes 13050 # version 8.0 and above of icpc choke on multiply defined symbols 13051 # if we add $predep_objects and $postdep_objects, however 7.1 and 13052 # earlier do not add the objects themselves. 13053 case `$CC -V 2>&1` in 13054 *"Version 7."*) 13055 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13056 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' 13057 ;; 13058 *) # Version 8.0 or newer 13059 tmp_idyn= 13060 case $host_cpu in 13061 ia64*) tmp_idyn=' -i_dynamic';; 13062 esac 13063 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13064 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' 13065 ;; 13066 esac 13067 archive_cmds_need_lc_CXX=no 13068 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13069 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13070 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13071 ;; 13072 pgCC* | pgcpp*) 13073 # Portland Group C++ compiler 13074 case `$CC -V` in 13075 *pgCC\ [1-5]* | *pgcpp\ [1-5]*) 13076 prelink_cmds_CXX='tpldir=Template.dir~ 13077 rm -rf $tpldir~ 13078 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 13079 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' 13080 old_archive_cmds_CXX='tpldir=Template.dir~ 13081 rm -rf $tpldir~ 13082 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 13083 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ 13084 $RANLIB $oldlib' 13085 archive_cmds_CXX='tpldir=Template.dir~ 13086 rm -rf $tpldir~ 13087 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13088 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13089 archive_expsym_cmds_CXX='tpldir=Template.dir~ 13090 rm -rf $tpldir~ 13091 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13092 $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' 13093 ;; 13094 *) # Version 6 will use weak symbols 13095 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13096 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' 13097 ;; 13098 esac 13099 13100 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 13101 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13102 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' 13103 ;; 13104 cxx*) 13105 # Compaq C++ 13106 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13107 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' 13108 13109 runpath_var=LD_RUN_PATH 13110 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13111 hardcode_libdir_separator_CXX=: 13112 13113 # Commands to make compiler produce verbose output that lists 13114 # what "hidden" libraries, object files and flags are used when 13115 # linking a shared library. 13116 # 13117 # There doesn't appear to be a way to prevent this compiler from 13118 # explicitly linking system object files so we need to strip them 13119 # from the output so that they don't get included in the library 13120 # dependencies. 13121 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' 13122 ;; 13123 xl*) 13124 # IBM XL 8.0 on PPC, with GNU ld 13125 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13126 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13127 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13128 if test "x$supports_anon_versioning" = xyes; then 13129 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 13130 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13131 echo "local: *; };" >> $output_objdir/$libname.ver~ 13132 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13133 fi 13134 ;; 13135 *) 13136 case `$CC -V 2>&1 | sed 5q` in 13137 *Sun\ C*) 13138 # Sun C++ 5.9 13139 no_undefined_flag_CXX=' -zdefs' 13140 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13141 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' 13142 hardcode_libdir_flag_spec_CXX='-R$libdir' 13143 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' 13144 compiler_needs_object_CXX=yes 13145 13146 # Not sure whether something based on 13147 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13148 # would be better. 13149 output_verbose_link_cmd='echo' 13150 13151 # Archives containing C++ object files must be created using 13152 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13153 # necessary to make sure instantiated templates are included 13154 # in the archive. 13155 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13156 ;; 13157 esac 13158 ;; 13159 esac 13160 ;; 13161 13162 lynxos*) 13163 # FIXME: insert proper C++ library support 13164 ld_shlibs_CXX=no 13165 ;; 13166 13167 m88k*) 13168 # FIXME: insert proper C++ library support 13169 ld_shlibs_CXX=no 13170 ;; 13171 13172 mvs*) 13173 case $cc_basename in 13174 cxx*) 13175 # FIXME: insert proper C++ library support 13176 ld_shlibs_CXX=no 13177 ;; 13178 *) 13179 # FIXME: insert proper C++ library support 13180 ld_shlibs_CXX=no 13181 ;; 13182 esac 13183 ;; 13184 13185 netbsd*) 13186 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13187 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13188 wlarc= 13189 hardcode_libdir_flag_spec_CXX='-R$libdir' 13190 hardcode_direct_CXX=yes 13191 hardcode_shlibpath_var_CXX=no 13192 fi 13193 # Workaround some broken pre-1.5 toolchains 13194 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13195 ;; 13196 13197 *nto* | *qnx*) 13198 ld_shlibs_CXX=yes 13199 ;; 13200 13201 openbsd2*) 13202 # C++ shared libraries are fairly broken 13203 ld_shlibs_CXX=no 13204 ;; 13205 13206 openbsd*) 13207 if test -f /usr/libexec/ld.so; then 13208 hardcode_direct_CXX=yes 13209 hardcode_shlibpath_var_CXX=no 13210 hardcode_direct_absolute_CXX=yes 13211 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13212 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13213 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13214 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 13215 export_dynamic_flag_spec_CXX='${wl}-E' 13216 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13217 fi 13218 output_verbose_link_cmd=echo 13219 else 13220 ld_shlibs_CXX=no 13221 fi 13222 ;; 13223 13224 osf3* | osf4* | osf5*) 13225 case $cc_basename in 13226 KCC*) 13227 # Kuck and Associates, Inc. (KAI) C++ Compiler 13228 13229 # KCC will only create a shared library if the output file 13230 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13231 # to its proper name (with version) after linking. 13232 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' 13233 13234 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13235 hardcode_libdir_separator_CXX=: 13236 13237 # Archives containing C++ object files must be created using 13238 # the KAI C++ compiler. 13239 case $host in 13240 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 13241 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 13242 esac 13243 ;; 13244 RCC*) 13245 # Rational C++ 2.4.1 13246 # FIXME: insert proper C++ library support 13247 ld_shlibs_CXX=no 13248 ;; 13249 cxx*) 13250 case $host in 13251 osf3*) 13252 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13253 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' 13254 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13255 ;; 13256 *) 13257 allow_undefined_flag_CXX=' -expect_unresolved \*' 13258 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' 13259 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13260 echo "-hidden">> $lib.exp~ 13261 $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~ 13262 $RM $lib.exp' 13263 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13264 ;; 13265 esac 13266 13267 hardcode_libdir_separator_CXX=: 13268 13269 # Commands to make compiler produce verbose output that lists 13270 # what "hidden" libraries, object files and flags are used when 13271 # linking a shared library. 13272 # 13273 # There doesn't appear to be a way to prevent this compiler from 13274 # explicitly linking system object files so we need to strip them 13275 # from the output so that they don't get included in the library 13276 # dependencies. 13277 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' 13278 ;; 13279 *) 13280 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13281 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13282 case $host in 13283 osf3*) 13284 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' 13285 ;; 13286 *) 13287 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' 13288 ;; 13289 esac 13290 13291 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13292 hardcode_libdir_separator_CXX=: 13293 13294 # Commands to make compiler produce verbose output that lists 13295 # what "hidden" libraries, object files and flags are used when 13296 # linking a shared library. 13297 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 13298 13299 else 13300 # FIXME: insert proper C++ library support 13301 ld_shlibs_CXX=no 13302 fi 13303 ;; 13304 esac 13305 ;; 13306 13307 psos*) 13308 # FIXME: insert proper C++ library support 13309 ld_shlibs_CXX=no 13310 ;; 13311 13312 sunos4*) 13313 case $cc_basename in 13314 CC*) 13315 # Sun C++ 4.x 13316 # FIXME: insert proper C++ library support 13317 ld_shlibs_CXX=no 13318 ;; 13319 lcc*) 13320 # Lucid 13321 # FIXME: insert proper C++ library support 13322 ld_shlibs_CXX=no 13323 ;; 13324 *) 13325 # FIXME: insert proper C++ library support 13326 ld_shlibs_CXX=no 13327 ;; 13328 esac 13329 ;; 13330 13331 solaris*) 13332 case $cc_basename in 13333 CC*) 13334 # Sun C++ 4.2, 5.x and Centerline C++ 13335 archive_cmds_need_lc_CXX=yes 13336 no_undefined_flag_CXX=' -zdefs' 13337 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13338 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13339 $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' 13340 13341 hardcode_libdir_flag_spec_CXX='-R$libdir' 13342 hardcode_shlibpath_var_CXX=no 13343 case $host_os in 13344 solaris2.[0-5] | solaris2.[0-5].*) ;; 13345 *) 13346 # The compiler driver will combine and reorder linker options, 13347 # but understands `-z linker_flag'. 13348 # Supported since Solaris 2.6 (maybe 2.5.1?) 13349 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 13350 ;; 13351 esac 13352 link_all_deplibs_CXX=yes 13353 13354 output_verbose_link_cmd='echo' 13355 13356 # Archives containing C++ object files must be created using 13357 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13358 # necessary to make sure instantiated templates are included 13359 # in the archive. 13360 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13361 ;; 13362 gcx*) 13363 # Green Hills C++ Compiler 13364 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13365 13366 # The C++ compiler must be used to create the archive. 13367 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13368 ;; 13369 *) 13370 # GNU C++ compiler with Solaris linker 13371 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13372 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 13373 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 13374 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13375 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13376 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13377 13378 # Commands to make compiler produce verbose output that lists 13379 # what "hidden" libraries, object files and flags are used when 13380 # linking a shared library. 13381 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 13382 else 13383 # g++ 2.7 appears to require `-G' NOT `-shared' on this 13384 # platform. 13385 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13386 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13387 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13388 13389 # Commands to make compiler produce verbose output that lists 13390 # what "hidden" libraries, object files and flags are used when 13391 # linking a shared library. 13392 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 13393 fi 13394 13395 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 13396 case $host_os in 13397 solaris2.[0-5] | solaris2.[0-5].*) ;; 13398 *) 13399 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13400 ;; 13401 esac 13402 fi 13403 ;; 13404 esac 13405 ;; 13406 13407 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13408 no_undefined_flag_CXX='${wl}-z,text' 13409 archive_cmds_need_lc_CXX=no 13410 hardcode_shlibpath_var_CXX=no 13411 runpath_var='LD_RUN_PATH' 13412 13413 case $cc_basename in 13414 CC*) 13415 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13416 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13417 ;; 13418 *) 13419 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13420 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13421 ;; 13422 esac 13423 ;; 13424 13425 sysv5* | sco3.2v5* | sco5v6*) 13426 # Note: We can NOT use -z defs as we might desire, because we do not 13427 # link with -lc, and that would cause any symbols used from libc to 13428 # always be unresolved, which means just about no library would 13429 # ever link correctly. If we're not using GNU ld we use -z text 13430 # though, which does catch some bad symbols but isn't as heavy-handed 13431 # as -z defs. 13432 no_undefined_flag_CXX='${wl}-z,text' 13433 allow_undefined_flag_CXX='${wl}-z,nodefs' 13434 archive_cmds_need_lc_CXX=no 13435 hardcode_shlibpath_var_CXX=no 13436 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 13437 hardcode_libdir_separator_CXX=':' 13438 link_all_deplibs_CXX=yes 13439 export_dynamic_flag_spec_CXX='${wl}-Bexport' 13440 runpath_var='LD_RUN_PATH' 13441 13442 case $cc_basename in 13443 CC*) 13444 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13445 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13446 ;; 13447 *) 13448 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13449 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13450 ;; 13451 esac 13452 ;; 13453 13454 tandem*) 13455 case $cc_basename in 13456 NCC*) 13457 # NonStop-UX NCC 3.20 13458 # FIXME: insert proper C++ library support 13459 ld_shlibs_CXX=no 13460 ;; 13461 *) 13462 # FIXME: insert proper C++ library support 13463 ld_shlibs_CXX=no 13464 ;; 13465 esac 13466 ;; 13467 13468 vxworks*) 13469 # FIXME: insert proper C++ library support 13470 ld_shlibs_CXX=no 13471 ;; 13472 13473 *) 13474 # FIXME: insert proper C++ library support 13475 ld_shlibs_CXX=no 13476 ;; 13477 esac 13478 13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13480$as_echo "$ld_shlibs_CXX" >&6; } 13481 test "$ld_shlibs_CXX" = no && can_build_shared=no 13482 13483 GCC_CXX="$GXX" 13484 LD_CXX="$LD" 13485 13486 ## CAVEAT EMPTOR: 13487 ## There is no encapsulation within the following macros, do not change 13488 ## the running order or otherwise move them around unless you know exactly 13489 ## what you are doing... 13490 # Dependencies to place before and after the object being linked: 13491predep_objects_CXX= 13492postdep_objects_CXX= 13493predeps_CXX= 13494postdeps_CXX= 13495compiler_lib_search_path_CXX= 13496 13497cat > conftest.$ac_ext <<_LT_EOF 13498class Foo 13499{ 13500public: 13501 Foo (void) { a = 0; } 13502private: 13503 int a; 13504}; 13505_LT_EOF 13506 13507if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13508 (eval $ac_compile) 2>&5 13509 ac_status=$? 13510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13511 test $ac_status = 0; }; then 13512 # Parse the compiler output and extract the necessary 13513 # objects, libraries and library flags. 13514 13515 # Sentinel used to keep track of whether or not we are before 13516 # the conftest object file. 13517 pre_test_object_deps_done=no 13518 13519 for p in `eval "$output_verbose_link_cmd"`; do 13520 case $p in 13521 13522 -L* | -R* | -l*) 13523 # Some compilers place space between "-{L,R}" and the path. 13524 # Remove the space. 13525 if test $p = "-L" || 13526 test $p = "-R"; then 13527 prev=$p 13528 continue 13529 else 13530 prev= 13531 fi 13532 13533 if test "$pre_test_object_deps_done" = no; then 13534 case $p in 13535 -L* | -R*) 13536 # Internal compiler library paths should come after those 13537 # provided the user. The postdeps already come after the 13538 # user supplied libs so there is no need to process them. 13539 if test -z "$compiler_lib_search_path_CXX"; then 13540 compiler_lib_search_path_CXX="${prev}${p}" 13541 else 13542 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 13543 fi 13544 ;; 13545 # The "-l" case would never come before the object being 13546 # linked, so don't bother handling this case. 13547 esac 13548 else 13549 if test -z "$postdeps_CXX"; then 13550 postdeps_CXX="${prev}${p}" 13551 else 13552 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 13553 fi 13554 fi 13555 ;; 13556 13557 *.$objext) 13558 # This assumes that the test object file only shows up 13559 # once in the compiler output. 13560 if test "$p" = "conftest.$objext"; then 13561 pre_test_object_deps_done=yes 13562 continue 13563 fi 13564 13565 if test "$pre_test_object_deps_done" = no; then 13566 if test -z "$predep_objects_CXX"; then 13567 predep_objects_CXX="$p" 13568 else 13569 predep_objects_CXX="$predep_objects_CXX $p" 13570 fi 13571 else 13572 if test -z "$postdep_objects_CXX"; then 13573 postdep_objects_CXX="$p" 13574 else 13575 postdep_objects_CXX="$postdep_objects_CXX $p" 13576 fi 13577 fi 13578 ;; 13579 13580 *) ;; # Ignore the rest. 13581 13582 esac 13583 done 13584 13585 # Clean up. 13586 rm -f a.out a.exe 13587else 13588 echo "libtool.m4: error: problem compiling CXX test program" 13589fi 13590 13591$RM -f confest.$objext 13592 13593# PORTME: override above test on systems where it is broken 13594case $host_os in 13595interix[3-9]*) 13596 # Interix 3.5 installs completely hosed .la files for C++, so rather than 13597 # hack all around it, let's just trust "g++" to DTRT. 13598 predep_objects_CXX= 13599 postdep_objects_CXX= 13600 postdeps_CXX= 13601 ;; 13602 13603linux*) 13604 case `$CC -V 2>&1 | sed 5q` in 13605 *Sun\ C*) 13606 # Sun C++ 5.9 13607 13608 # The more standards-conforming stlport4 library is 13609 # incompatible with the Cstd library. Avoid specifying 13610 # it if it's in CXXFLAGS. Ignore libCrun as 13611 # -library=stlport4 depends on it. 13612 case " $CXX $CXXFLAGS " in 13613 *" -library=stlport4 "*) 13614 solaris_use_stlport4=yes 13615 ;; 13616 esac 13617 13618 if test "$solaris_use_stlport4" != yes; then 13619 postdeps_CXX='-library=Cstd -library=Crun' 13620 fi 13621 ;; 13622 esac 13623 ;; 13624 13625solaris*) 13626 case $cc_basename in 13627 CC*) 13628 # The more standards-conforming stlport4 library is 13629 # incompatible with the Cstd library. Avoid specifying 13630 # it if it's in CXXFLAGS. Ignore libCrun as 13631 # -library=stlport4 depends on it. 13632 case " $CXX $CXXFLAGS " in 13633 *" -library=stlport4 "*) 13634 solaris_use_stlport4=yes 13635 ;; 13636 esac 13637 13638 # Adding this requires a known-good setup of shared libraries for 13639 # Sun compiler versions before 5.6, else PIC objects from an old 13640 # archive will be linked into the output, leading to subtle bugs. 13641 if test "$solaris_use_stlport4" != yes; then 13642 postdeps_CXX='-library=Cstd -library=Crun' 13643 fi 13644 ;; 13645 esac 13646 ;; 13647esac 13648 13649 13650case " $postdeps_CXX " in 13651*" -lc "*) archive_cmds_need_lc_CXX=no ;; 13652esac 13653 compiler_lib_search_dirs_CXX= 13654if test -n "${compiler_lib_search_path_CXX}"; then 13655 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 13656fi 13657 13658 13659 13660 13661 13662 13663 13664 13665 13666 13667 13668 13669 13670 13671 13672 13673 13674 13675 13676 13677 13678 13679 13680 13681 13682 13683 13684 13685 13686 13687 13688 lt_prog_compiler_wl_CXX= 13689lt_prog_compiler_pic_CXX= 13690lt_prog_compiler_static_CXX= 13691 13692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 13693$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 13694 13695 # C++ specific cases for pic, static, wl, etc. 13696 if test "$GXX" = yes; then 13697 lt_prog_compiler_wl_CXX='-Wl,' 13698 lt_prog_compiler_static_CXX='-static' 13699 13700 case $host_os in 13701 aix*) 13702 # All AIX code is PIC. 13703 if test "$host_cpu" = ia64; then 13704 # AIX 5 now supports IA64 processor 13705 lt_prog_compiler_static_CXX='-Bstatic' 13706 fi 13707 ;; 13708 13709 amigaos*) 13710 case $host_cpu in 13711 powerpc) 13712 # see comment about AmigaOS4 .so support 13713 lt_prog_compiler_pic_CXX='-fPIC' 13714 ;; 13715 m68k) 13716 # FIXME: we need at least 68020 code to build shared libraries, but 13717 # adding the `-m68020' flag to GCC prevents building anything better, 13718 # like `-m68040'. 13719 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 13720 ;; 13721 esac 13722 ;; 13723 13724 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13725 # PIC is the default for these OSes. 13726 ;; 13727 mingw* | cygwin* | os2* | pw32* | cegcc*) 13728 # This hack is so that the source file can tell whether it is being 13729 # built for inclusion in a dll (and should export symbols for example). 13730 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13731 # (--disable-auto-import) libraries 13732 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13733 ;; 13734 darwin* | rhapsody*) 13735 # PIC is the default on this platform 13736 # Common symbols not allowed in MH_DYLIB files 13737 lt_prog_compiler_pic_CXX='-fno-common' 13738 ;; 13739 *djgpp*) 13740 # DJGPP does not support shared libraries at all 13741 lt_prog_compiler_pic_CXX= 13742 ;; 13743 interix[3-9]*) 13744 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13745 # Instead, we relocate shared libraries at runtime. 13746 ;; 13747 sysv4*MP*) 13748 if test -d /usr/nec; then 13749 lt_prog_compiler_pic_CXX=-Kconform_pic 13750 fi 13751 ;; 13752 hpux*) 13753 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 13754 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 13755 # sets the default TLS model and affects inlining. 13756 case $host_cpu in 13757 hppa*64*) 13758 ;; 13759 *) 13760 lt_prog_compiler_pic_CXX='-fPIC' 13761 ;; 13762 esac 13763 ;; 13764 *qnx* | *nto*) 13765 # QNX uses GNU C++, but need to define -shared option too, otherwise 13766 # it will coredump. 13767 lt_prog_compiler_pic_CXX='-fPIC -shared' 13768 ;; 13769 *) 13770 lt_prog_compiler_pic_CXX='-fPIC' 13771 ;; 13772 esac 13773 else 13774 case $host_os in 13775 aix[4-9]*) 13776 # All AIX code is PIC. 13777 if test "$host_cpu" = ia64; then 13778 # AIX 5 now supports IA64 processor 13779 lt_prog_compiler_static_CXX='-Bstatic' 13780 else 13781 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 13782 fi 13783 ;; 13784 chorus*) 13785 case $cc_basename in 13786 cxch68*) 13787 # Green Hills C++ Compiler 13788 # _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" 13789 ;; 13790 esac 13791 ;; 13792 dgux*) 13793 case $cc_basename in 13794 ec++*) 13795 lt_prog_compiler_pic_CXX='-KPIC' 13796 ;; 13797 ghcx*) 13798 # Green Hills C++ Compiler 13799 lt_prog_compiler_pic_CXX='-pic' 13800 ;; 13801 *) 13802 ;; 13803 esac 13804 ;; 13805 freebsd* | dragonfly*) 13806 # FreeBSD uses GNU C++ 13807 ;; 13808 hpux9* | hpux10* | hpux11*) 13809 case $cc_basename in 13810 CC*) 13811 lt_prog_compiler_wl_CXX='-Wl,' 13812 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13813 if test "$host_cpu" != ia64; then 13814 lt_prog_compiler_pic_CXX='+Z' 13815 fi 13816 ;; 13817 aCC*) 13818 lt_prog_compiler_wl_CXX='-Wl,' 13819 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13820 case $host_cpu in 13821 hppa*64*|ia64*) 13822 # +Z the default 13823 ;; 13824 *) 13825 lt_prog_compiler_pic_CXX='+Z' 13826 ;; 13827 esac 13828 ;; 13829 *) 13830 ;; 13831 esac 13832 ;; 13833 interix*) 13834 # This is c89, which is MS Visual C++ (no shared libs) 13835 # Anyone wants to do a port? 13836 ;; 13837 irix5* | irix6* | nonstopux*) 13838 case $cc_basename in 13839 CC*) 13840 lt_prog_compiler_wl_CXX='-Wl,' 13841 lt_prog_compiler_static_CXX='-non_shared' 13842 # CC pic flag -KPIC is the default. 13843 ;; 13844 *) 13845 ;; 13846 esac 13847 ;; 13848 linux* | k*bsd*-gnu) 13849 case $cc_basename in 13850 KCC*) 13851 # KAI C++ Compiler 13852 lt_prog_compiler_wl_CXX='--backend -Wl,' 13853 lt_prog_compiler_pic_CXX='-fPIC' 13854 ;; 13855 ecpc* ) 13856 # old Intel C++ for x86_64 which still supported -KPIC. 13857 lt_prog_compiler_wl_CXX='-Wl,' 13858 lt_prog_compiler_pic_CXX='-KPIC' 13859 lt_prog_compiler_static_CXX='-static' 13860 ;; 13861 icpc* ) 13862 # Intel C++, used to be incompatible with GCC. 13863 # ICC 10 doesn't accept -KPIC any more. 13864 lt_prog_compiler_wl_CXX='-Wl,' 13865 lt_prog_compiler_pic_CXX='-fPIC' 13866 lt_prog_compiler_static_CXX='-static' 13867 ;; 13868 pgCC* | pgcpp*) 13869 # Portland Group C++ compiler 13870 lt_prog_compiler_wl_CXX='-Wl,' 13871 lt_prog_compiler_pic_CXX='-fpic' 13872 lt_prog_compiler_static_CXX='-Bstatic' 13873 ;; 13874 cxx*) 13875 # Compaq C++ 13876 # Make sure the PIC flag is empty. It appears that all Alpha 13877 # Linux and Compaq Tru64 Unix objects are PIC. 13878 lt_prog_compiler_pic_CXX= 13879 lt_prog_compiler_static_CXX='-non_shared' 13880 ;; 13881 xlc* | xlC*) 13882 # IBM XL 8.0 on PPC 13883 lt_prog_compiler_wl_CXX='-Wl,' 13884 lt_prog_compiler_pic_CXX='-qpic' 13885 lt_prog_compiler_static_CXX='-qstaticlink' 13886 ;; 13887 *) 13888 case `$CC -V 2>&1 | sed 5q` in 13889 *Sun\ C*) 13890 # Sun C++ 5.9 13891 lt_prog_compiler_pic_CXX='-KPIC' 13892 lt_prog_compiler_static_CXX='-Bstatic' 13893 lt_prog_compiler_wl_CXX='-Qoption ld ' 13894 ;; 13895 esac 13896 ;; 13897 esac 13898 ;; 13899 lynxos*) 13900 ;; 13901 m88k*) 13902 ;; 13903 mvs*) 13904 case $cc_basename in 13905 cxx*) 13906 lt_prog_compiler_pic_CXX='-W c,exportall' 13907 ;; 13908 *) 13909 ;; 13910 esac 13911 ;; 13912 netbsd*) 13913 ;; 13914 *qnx* | *nto*) 13915 # QNX uses GNU C++, but need to define -shared option too, otherwise 13916 # it will coredump. 13917 lt_prog_compiler_pic_CXX='-fPIC -shared' 13918 ;; 13919 osf3* | osf4* | osf5*) 13920 case $cc_basename in 13921 KCC*) 13922 lt_prog_compiler_wl_CXX='--backend -Wl,' 13923 ;; 13924 RCC*) 13925 # Rational C++ 2.4.1 13926 lt_prog_compiler_pic_CXX='-pic' 13927 ;; 13928 cxx*) 13929 # Digital/Compaq C++ 13930 lt_prog_compiler_wl_CXX='-Wl,' 13931 # Make sure the PIC flag is empty. It appears that all Alpha 13932 # Linux and Compaq Tru64 Unix objects are PIC. 13933 lt_prog_compiler_pic_CXX= 13934 lt_prog_compiler_static_CXX='-non_shared' 13935 ;; 13936 *) 13937 ;; 13938 esac 13939 ;; 13940 psos*) 13941 ;; 13942 solaris*) 13943 case $cc_basename in 13944 CC*) 13945 # Sun C++ 4.2, 5.x and Centerline C++ 13946 lt_prog_compiler_pic_CXX='-KPIC' 13947 lt_prog_compiler_static_CXX='-Bstatic' 13948 lt_prog_compiler_wl_CXX='-Qoption ld ' 13949 ;; 13950 gcx*) 13951 # Green Hills C++ Compiler 13952 lt_prog_compiler_pic_CXX='-PIC' 13953 ;; 13954 *) 13955 ;; 13956 esac 13957 ;; 13958 sunos4*) 13959 case $cc_basename in 13960 CC*) 13961 # Sun C++ 4.x 13962 lt_prog_compiler_pic_CXX='-pic' 13963 lt_prog_compiler_static_CXX='-Bstatic' 13964 ;; 13965 lcc*) 13966 # Lucid 13967 lt_prog_compiler_pic_CXX='-pic' 13968 ;; 13969 *) 13970 ;; 13971 esac 13972 ;; 13973 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13974 case $cc_basename in 13975 CC*) 13976 lt_prog_compiler_wl_CXX='-Wl,' 13977 lt_prog_compiler_pic_CXX='-KPIC' 13978 lt_prog_compiler_static_CXX='-Bstatic' 13979 ;; 13980 esac 13981 ;; 13982 tandem*) 13983 case $cc_basename in 13984 NCC*) 13985 # NonStop-UX NCC 3.20 13986 lt_prog_compiler_pic_CXX='-KPIC' 13987 ;; 13988 *) 13989 ;; 13990 esac 13991 ;; 13992 vxworks*) 13993 ;; 13994 *) 13995 lt_prog_compiler_can_build_shared_CXX=no 13996 ;; 13997 esac 13998 fi 13999 14000case $host_os in 14001 # For platforms which do not support PIC, -DPIC is meaningless: 14002 *djgpp*) 14003 lt_prog_compiler_pic_CXX= 14004 ;; 14005 *) 14006 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 14007 ;; 14008esac 14009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 14010$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 14011 14012 14013 14014# 14015# Check to make sure the PIC flag actually works. 14016# 14017if test -n "$lt_prog_compiler_pic_CXX"; then 14018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14019$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 14020if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : 14021 $as_echo_n "(cached) " >&6 14022else 14023 lt_cv_prog_compiler_pic_works_CXX=no 14024 ac_outfile=conftest.$ac_objext 14025 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14026 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 14027 # Insert the option either (1) after the last *FLAGS variable, or 14028 # (2) before a word containing "conftest.", or (3) at the end. 14029 # Note that $ac_compile itself does not contain backslashes and begins 14030 # with a dollar sign (not a hyphen), so the echo should work correctly. 14031 # The option is referenced via a variable to avoid confusing sed. 14032 lt_compile=`echo "$ac_compile" | $SED \ 14033 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14034 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14035 -e 's:$: $lt_compiler_flag:'` 14036 (eval echo "\"\$as_me:14036: $lt_compile\"" >&5) 14037 (eval "$lt_compile" 2>conftest.err) 14038 ac_status=$? 14039 cat conftest.err >&5 14040 echo "$as_me:14040: \$? = $ac_status" >&5 14041 if (exit $ac_status) && test -s "$ac_outfile"; then 14042 # The compiler can only warn and ignore the option if not recognized 14043 # So say no if there are warnings other than the usual output. 14044 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14045 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14046 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14047 lt_cv_prog_compiler_pic_works_CXX=yes 14048 fi 14049 fi 14050 $RM conftest* 14051 14052fi 14053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 14054$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 14055 14056if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 14057 case $lt_prog_compiler_pic_CXX in 14058 "" | " "*) ;; 14059 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14060 esac 14061else 14062 lt_prog_compiler_pic_CXX= 14063 lt_prog_compiler_can_build_shared_CXX=no 14064fi 14065 14066fi 14067 14068 14069 14070# 14071# Check to make sure the static flag actually works. 14072# 14073wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14075$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14076if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : 14077 $as_echo_n "(cached) " >&6 14078else 14079 lt_cv_prog_compiler_static_works_CXX=no 14080 save_LDFLAGS="$LDFLAGS" 14081 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14082 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14083 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14084 # The linker can only warn and ignore the option if not recognized 14085 # So say no if there are warnings 14086 if test -s conftest.err; then 14087 # Append any errors to the config.log. 14088 cat conftest.err 1>&5 14089 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14090 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14091 if diff conftest.exp conftest.er2 >/dev/null; then 14092 lt_cv_prog_compiler_static_works_CXX=yes 14093 fi 14094 else 14095 lt_cv_prog_compiler_static_works_CXX=yes 14096 fi 14097 fi 14098 $RM -r conftest* 14099 LDFLAGS="$save_LDFLAGS" 14100 14101fi 14102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 14103$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 14104 14105if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 14106 : 14107else 14108 lt_prog_compiler_static_CXX= 14109fi 14110 14111 14112 14113 14114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14115$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14116if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : 14117 $as_echo_n "(cached) " >&6 14118else 14119 lt_cv_prog_compiler_c_o_CXX=no 14120 $RM -r conftest 2>/dev/null 14121 mkdir conftest 14122 cd conftest 14123 mkdir out 14124 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14125 14126 lt_compiler_flag="-o out/conftest2.$ac_objext" 14127 # Insert the option either (1) after the last *FLAGS variable, or 14128 # (2) before a word containing "conftest.", or (3) at the end. 14129 # Note that $ac_compile itself does not contain backslashes and begins 14130 # with a dollar sign (not a hyphen), so the echo should work correctly. 14131 lt_compile=`echo "$ac_compile" | $SED \ 14132 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14133 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14134 -e 's:$: $lt_compiler_flag:'` 14135 (eval echo "\"\$as_me:14135: $lt_compile\"" >&5) 14136 (eval "$lt_compile" 2>out/conftest.err) 14137 ac_status=$? 14138 cat out/conftest.err >&5 14139 echo "$as_me:14139: \$? = $ac_status" >&5 14140 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14141 then 14142 # The compiler can only warn and ignore the option if not recognized 14143 # So say no if there are warnings 14144 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14145 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14146 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14147 lt_cv_prog_compiler_c_o_CXX=yes 14148 fi 14149 fi 14150 chmod u+w . 2>&5 14151 $RM conftest* 14152 # SGI C++ compiler will create directory out/ii_files/ for 14153 # template instantiation 14154 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14155 $RM out/* && rmdir out 14156 cd .. 14157 $RM -r conftest 14158 $RM conftest* 14159 14160fi 14161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14162$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14163 14164 14165 14166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14167$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14168if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : 14169 $as_echo_n "(cached) " >&6 14170else 14171 lt_cv_prog_compiler_c_o_CXX=no 14172 $RM -r conftest 2>/dev/null 14173 mkdir conftest 14174 cd conftest 14175 mkdir out 14176 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14177 14178 lt_compiler_flag="-o out/conftest2.$ac_objext" 14179 # Insert the option either (1) after the last *FLAGS variable, or 14180 # (2) before a word containing "conftest.", or (3) at the end. 14181 # Note that $ac_compile itself does not contain backslashes and begins 14182 # with a dollar sign (not a hyphen), so the echo should work correctly. 14183 lt_compile=`echo "$ac_compile" | $SED \ 14184 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14185 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14186 -e 's:$: $lt_compiler_flag:'` 14187 (eval echo "\"\$as_me:14187: $lt_compile\"" >&5) 14188 (eval "$lt_compile" 2>out/conftest.err) 14189 ac_status=$? 14190 cat out/conftest.err >&5 14191 echo "$as_me:14191: \$? = $ac_status" >&5 14192 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14193 then 14194 # The compiler can only warn and ignore the option if not recognized 14195 # So say no if there are warnings 14196 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14197 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14198 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14199 lt_cv_prog_compiler_c_o_CXX=yes 14200 fi 14201 fi 14202 chmod u+w . 2>&5 14203 $RM conftest* 14204 # SGI C++ compiler will create directory out/ii_files/ for 14205 # template instantiation 14206 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14207 $RM out/* && rmdir out 14208 cd .. 14209 $RM -r conftest 14210 $RM conftest* 14211 14212fi 14213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14214$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14215 14216 14217 14218 14219hard_links="nottested" 14220if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 14221 # do not overwrite the value of need_locks provided by the user 14222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14223$as_echo_n "checking if we can lock with hard links... " >&6; } 14224 hard_links=yes 14225 $RM conftest* 14226 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14227 touch conftest.a 14228 ln conftest.a conftest.b 2>&5 || hard_links=no 14229 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14231$as_echo "$hard_links" >&6; } 14232 if test "$hard_links" = no; then 14233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14234$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14235 need_locks=warn 14236 fi 14237else 14238 need_locks=no 14239fi 14240 14241 14242 14243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14244$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14245 14246 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14247 case $host_os in 14248 aix[4-9]*) 14249 # If we're using GNU nm, then we don't want the "-C" option. 14250 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14251 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14252 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' 14253 else 14254 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' 14255 fi 14256 ;; 14257 pw32*) 14258 export_symbols_cmds_CXX="$ltdll_cmds" 14259 ;; 14260 cygwin* | mingw* | cegcc*) 14261 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' 14262 ;; 14263 *) 14264 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14265 ;; 14266 esac 14267 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14268 14269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14270$as_echo "$ld_shlibs_CXX" >&6; } 14271test "$ld_shlibs_CXX" = no && can_build_shared=no 14272 14273with_gnu_ld_CXX=$with_gnu_ld 14274 14275 14276 14277 14278 14279 14280# 14281# Do we need to explicitly link libc? 14282# 14283case "x$archive_cmds_need_lc_CXX" in 14284x|xyes) 14285 # Assume -lc should be added 14286 archive_cmds_need_lc_CXX=yes 14287 14288 if test "$enable_shared" = yes && test "$GCC" = yes; then 14289 case $archive_cmds_CXX in 14290 *'~'*) 14291 # FIXME: we may have to deal with multi-command sequences. 14292 ;; 14293 '$CC '*) 14294 # Test whether the compiler implicitly links with -lc since on some 14295 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14296 # to ld, don't add -lc before -lgcc. 14297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14298$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14299 $RM conftest* 14300 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14301 14302 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14303 (eval $ac_compile) 2>&5 14304 ac_status=$? 14305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14306 test $ac_status = 0; } 2>conftest.err; then 14307 soname=conftest 14308 lib=conftest 14309 libobjs=conftest.$ac_objext 14310 deplibs= 14311 wl=$lt_prog_compiler_wl_CXX 14312 pic_flag=$lt_prog_compiler_pic_CXX 14313 compiler_flags=-v 14314 linker_flags=-v 14315 verstring= 14316 output_objdir=. 14317 libname=conftest 14318 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14319 allow_undefined_flag_CXX= 14320 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14321 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14322 ac_status=$? 14323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14324 test $ac_status = 0; } 14325 then 14326 archive_cmds_need_lc_CXX=no 14327 else 14328 archive_cmds_need_lc_CXX=yes 14329 fi 14330 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14331 else 14332 cat conftest.err 1>&5 14333 fi 14334 $RM conftest* 14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 14336$as_echo "$archive_cmds_need_lc_CXX" >&6; } 14337 ;; 14338 esac 14339 fi 14340 ;; 14341esac 14342 14343 14344 14345 14346 14347 14348 14349 14350 14351 14352 14353 14354 14355 14356 14357 14358 14359 14360 14361 14362 14363 14364 14365 14366 14367 14368 14369 14370 14371 14372 14373 14374 14375 14376 14377 14378 14379 14380 14381 14382 14383 14384 14385 14386 14387 14388 14389 14390 14391 14392 14393 14394 14395 14396 14397 14398 14399 14400 14401 14402 14403 14404 14405 14406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 14407$as_echo_n "checking dynamic linker characteristics... " >&6; } 14408 14409library_names_spec= 14410libname_spec='lib$name' 14411soname_spec= 14412shrext_cmds=".so" 14413postinstall_cmds= 14414postuninstall_cmds= 14415finish_cmds= 14416finish_eval= 14417shlibpath_var= 14418shlibpath_overrides_runpath=unknown 14419version_type=none 14420dynamic_linker="$host_os ld.so" 14421sys_lib_dlsearch_path_spec="/lib /usr/lib" 14422need_lib_prefix=unknown 14423hardcode_into_libs=no 14424 14425# when you set need_version to no, make sure it does not cause -set_version 14426# flags to be left without arguments 14427need_version=unknown 14428 14429case $host_os in 14430aix3*) 14431 version_type=linux 14432 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14433 shlibpath_var=LIBPATH 14434 14435 # AIX 3 has no versioning support, so we append a major version to the name. 14436 soname_spec='${libname}${release}${shared_ext}$major' 14437 ;; 14438 14439aix[4-9]*) 14440 version_type=linux 14441 need_lib_prefix=no 14442 need_version=no 14443 hardcode_into_libs=yes 14444 if test "$host_cpu" = ia64; then 14445 # AIX 5 supports IA64 14446 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14447 shlibpath_var=LD_LIBRARY_PATH 14448 else 14449 # With GCC up to 2.95.x, collect2 would create an import file 14450 # for dependence libraries. The import file would start with 14451 # the line `#! .'. This would cause the generated library to 14452 # depend on `.', always an invalid library. This was fixed in 14453 # development snapshots of GCC prior to 3.0. 14454 case $host_os in 14455 aix4 | aix4.[01] | aix4.[01].*) 14456 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14457 echo ' yes ' 14458 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 14459 : 14460 else 14461 can_build_shared=no 14462 fi 14463 ;; 14464 esac 14465 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14466 # soname into executable. Probably we can add versioning support to 14467 # collect2, so additional links can be useful in future. 14468 if test "$aix_use_runtimelinking" = yes; then 14469 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14470 # instead of lib<name>.a to let people know that these are not 14471 # typical AIX shared libraries. 14472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14473 else 14474 # We preserve .a as extension for shared libraries through AIX4.2 14475 # and later when we are not doing run time linking. 14476 library_names_spec='${libname}${release}.a $libname.a' 14477 soname_spec='${libname}${release}${shared_ext}$major' 14478 fi 14479 shlibpath_var=LIBPATH 14480 fi 14481 ;; 14482 14483amigaos*) 14484 case $host_cpu in 14485 powerpc) 14486 # Since July 2007 AmigaOS4 officially supports .so libraries. 14487 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14489 ;; 14490 m68k) 14491 library_names_spec='$libname.ixlibrary $libname.a' 14492 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14493 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' 14494 ;; 14495 esac 14496 ;; 14497 14498beos*) 14499 library_names_spec='${libname}${shared_ext}' 14500 dynamic_linker="$host_os ld.so" 14501 shlibpath_var=LIBRARY_PATH 14502 ;; 14503 14504bsdi[45]*) 14505 version_type=linux 14506 need_version=no 14507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14508 soname_spec='${libname}${release}${shared_ext}$major' 14509 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14510 shlibpath_var=LD_LIBRARY_PATH 14511 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14512 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14513 # the default ld.so.conf also contains /usr/contrib/lib and 14514 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14515 # libtool to hard-code these into programs 14516 ;; 14517 14518cygwin* | mingw* | pw32* | cegcc*) 14519 version_type=windows 14520 shrext_cmds=".dll" 14521 need_version=no 14522 need_lib_prefix=no 14523 14524 case $GCC,$host_os in 14525 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 14526 library_names_spec='$libname.dll.a' 14527 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14528 postinstall_cmds='base_file=`basename \${file}`~ 14529 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14530 dldir=$destdir/`dirname \$dlpath`~ 14531 test -d \$dldir || mkdir -p \$dldir~ 14532 $install_prog $dir/$dlname \$dldir/$dlname~ 14533 chmod a+x \$dldir/$dlname~ 14534 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14535 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14536 fi' 14537 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14538 dlpath=$dir/\$dldll~ 14539 $RM \$dlpath' 14540 shlibpath_overrides_runpath=yes 14541 14542 case $host_os in 14543 cygwin*) 14544 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14545 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14546 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 14547 ;; 14548 mingw* | cegcc*) 14549 # MinGW DLLs use traditional 'lib' prefix 14550 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14551 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14552 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 14553 # It is most probably a Windows format PATH printed by 14554 # mingw gcc, but we are running on Cygwin. Gcc prints its search 14555 # path with ; separators, and with drive letters. We can handle the 14556 # drive letters (cygwin fileutils understands them), so leave them, 14557 # especially as we might pass files found there to a mingw objdump, 14558 # which wouldn't understand a cygwinified path. Ahh. 14559 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14560 else 14561 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14562 fi 14563 ;; 14564 pw32*) 14565 # pw32 DLLs use 'pw' prefix rather than 'lib' 14566 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14567 ;; 14568 esac 14569 ;; 14570 14571 *) 14572 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14573 ;; 14574 esac 14575 dynamic_linker='Win32 ld.exe' 14576 # FIXME: first we should search . and the directory the executable is in 14577 shlibpath_var=PATH 14578 ;; 14579 14580darwin* | rhapsody*) 14581 dynamic_linker="$host_os dyld" 14582 version_type=darwin 14583 need_lib_prefix=no 14584 need_version=no 14585 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14586 soname_spec='${libname}${release}${major}$shared_ext' 14587 shlibpath_overrides_runpath=yes 14588 shlibpath_var=DYLD_LIBRARY_PATH 14589 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14590 14591 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14592 ;; 14593 14594dgux*) 14595 version_type=linux 14596 need_lib_prefix=no 14597 need_version=no 14598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14599 soname_spec='${libname}${release}${shared_ext}$major' 14600 shlibpath_var=LD_LIBRARY_PATH 14601 ;; 14602 14603freebsd1*) 14604 dynamic_linker=no 14605 ;; 14606 14607freebsd* | dragonfly*) 14608 # DragonFly does not have aout. When/if they implement a new 14609 # versioning mechanism, adjust this. 14610 if test -x /usr/bin/objformat; then 14611 objformat=`/usr/bin/objformat` 14612 else 14613 case $host_os in 14614 freebsd[123]*) objformat=aout ;; 14615 *) objformat=elf ;; 14616 esac 14617 fi 14618 version_type=freebsd-$objformat 14619 case $version_type in 14620 freebsd-elf*) 14621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14622 need_version=no 14623 need_lib_prefix=no 14624 ;; 14625 freebsd-*) 14626 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14627 need_version=yes 14628 ;; 14629 esac 14630 shlibpath_var=LD_LIBRARY_PATH 14631 case $host_os in 14632 freebsd2*) 14633 shlibpath_overrides_runpath=yes 14634 ;; 14635 freebsd3.[01]* | freebsdelf3.[01]*) 14636 shlibpath_overrides_runpath=yes 14637 hardcode_into_libs=yes 14638 ;; 14639 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14640 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14641 shlibpath_overrides_runpath=no 14642 hardcode_into_libs=yes 14643 ;; 14644 *) # from 4.6 on, and DragonFly 14645 shlibpath_overrides_runpath=yes 14646 hardcode_into_libs=yes 14647 ;; 14648 esac 14649 ;; 14650 14651gnu*) 14652 version_type=linux 14653 need_lib_prefix=no 14654 need_version=no 14655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14656 soname_spec='${libname}${release}${shared_ext}$major' 14657 shlibpath_var=LD_LIBRARY_PATH 14658 hardcode_into_libs=yes 14659 ;; 14660 14661hpux9* | hpux10* | hpux11*) 14662 # Give a soname corresponding to the major version so that dld.sl refuses to 14663 # link against other versions. 14664 version_type=sunos 14665 need_lib_prefix=no 14666 need_version=no 14667 case $host_cpu in 14668 ia64*) 14669 shrext_cmds='.so' 14670 hardcode_into_libs=yes 14671 dynamic_linker="$host_os dld.so" 14672 shlibpath_var=LD_LIBRARY_PATH 14673 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14675 soname_spec='${libname}${release}${shared_ext}$major' 14676 if test "X$HPUX_IA64_MODE" = X32; then 14677 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14678 else 14679 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14680 fi 14681 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14682 ;; 14683 hppa*64*) 14684 shrext_cmds='.sl' 14685 hardcode_into_libs=yes 14686 dynamic_linker="$host_os dld.sl" 14687 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14688 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14690 soname_spec='${libname}${release}${shared_ext}$major' 14691 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14692 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14693 ;; 14694 *) 14695 shrext_cmds='.sl' 14696 dynamic_linker="$host_os dld.sl" 14697 shlibpath_var=SHLIB_PATH 14698 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14700 soname_spec='${libname}${release}${shared_ext}$major' 14701 ;; 14702 esac 14703 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14704 postinstall_cmds='chmod 555 $lib' 14705 ;; 14706 14707interix[3-9]*) 14708 version_type=linux 14709 need_lib_prefix=no 14710 need_version=no 14711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14712 soname_spec='${libname}${release}${shared_ext}$major' 14713 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14714 shlibpath_var=LD_LIBRARY_PATH 14715 shlibpath_overrides_runpath=no 14716 hardcode_into_libs=yes 14717 ;; 14718 14719irix5* | irix6* | nonstopux*) 14720 case $host_os in 14721 nonstopux*) version_type=nonstopux ;; 14722 *) 14723 if test "$lt_cv_prog_gnu_ld" = yes; then 14724 version_type=linux 14725 else 14726 version_type=irix 14727 fi ;; 14728 esac 14729 need_lib_prefix=no 14730 need_version=no 14731 soname_spec='${libname}${release}${shared_ext}$major' 14732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14733 case $host_os in 14734 irix5* | nonstopux*) 14735 libsuff= shlibsuff= 14736 ;; 14737 *) 14738 case $LD in # libtool.m4 will add one of these switches to LD 14739 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14740 libsuff= shlibsuff= libmagic=32-bit;; 14741 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14742 libsuff=32 shlibsuff=N32 libmagic=N32;; 14743 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14744 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14745 *) libsuff= shlibsuff= libmagic=never-match;; 14746 esac 14747 ;; 14748 esac 14749 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14750 shlibpath_overrides_runpath=no 14751 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14752 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14753 hardcode_into_libs=yes 14754 ;; 14755 14756# No shared lib support for Linux oldld, aout, or coff. 14757linux*oldld* | linux*aout* | linux*coff*) 14758 dynamic_linker=no 14759 ;; 14760 14761# This must be Linux ELF. 14762linux* | k*bsd*-gnu) 14763 version_type=linux 14764 need_lib_prefix=no 14765 need_version=no 14766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14767 soname_spec='${libname}${release}${shared_ext}$major' 14768 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14769 shlibpath_var=LD_LIBRARY_PATH 14770 shlibpath_overrides_runpath=no 14771 # Some binutils ld are patched to set DT_RUNPATH 14772 save_LDFLAGS=$LDFLAGS 14773 save_libdir=$libdir 14774 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 14775 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 14776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14777/* end confdefs.h. */ 14778 14779int 14780main () 14781{ 14782 14783 ; 14784 return 0; 14785} 14786_ACEOF 14787if ac_fn_cxx_try_link "$LINENO"; then : 14788 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 14789 shlibpath_overrides_runpath=yes 14790fi 14791fi 14792rm -f core conftest.err conftest.$ac_objext \ 14793 conftest$ac_exeext conftest.$ac_ext 14794 LDFLAGS=$save_LDFLAGS 14795 libdir=$save_libdir 14796 14797 # This implies no fast_install, which is unacceptable. 14798 # Some rework will be needed to allow for fast_install 14799 # before this can be enabled. 14800 hardcode_into_libs=yes 14801 14802 # Append ld.so.conf contents to the search path 14803 if test -f /etc/ld.so.conf; then 14804 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' ' '` 14805 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14806 fi 14807 14808 # We used to test for /lib/ld.so.1 and disable shared libraries on 14809 # powerpc, because MkLinux only supported shared libraries with the 14810 # GNU dynamic linker. Since this was broken with cross compilers, 14811 # most powerpc-linux boxes support dynamic linking these days and 14812 # people can always --disable-shared, the test was removed, and we 14813 # assume the GNU/Linux dynamic linker is in use. 14814 dynamic_linker='GNU/Linux ld.so' 14815 ;; 14816 14817netbsd*) 14818 version_type=sunos 14819 need_lib_prefix=no 14820 need_version=no 14821 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14823 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14824 dynamic_linker='NetBSD (a.out) ld.so' 14825 else 14826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14827 soname_spec='${libname}${release}${shared_ext}$major' 14828 dynamic_linker='NetBSD ld.elf_so' 14829 fi 14830 shlibpath_var=LD_LIBRARY_PATH 14831 shlibpath_overrides_runpath=yes 14832 hardcode_into_libs=yes 14833 ;; 14834 14835newsos6) 14836 version_type=linux 14837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14838 shlibpath_var=LD_LIBRARY_PATH 14839 shlibpath_overrides_runpath=yes 14840 ;; 14841 14842*nto* | *qnx*) 14843 version_type=qnx 14844 need_lib_prefix=no 14845 need_version=no 14846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14847 soname_spec='${libname}${release}${shared_ext}$major' 14848 shlibpath_var=LD_LIBRARY_PATH 14849 shlibpath_overrides_runpath=no 14850 hardcode_into_libs=yes 14851 dynamic_linker='ldqnx.so' 14852 ;; 14853 14854openbsd*) 14855 version_type=sunos 14856 sys_lib_dlsearch_path_spec="/usr/lib" 14857 need_lib_prefix=no 14858 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14859 case $host_os in 14860 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14861 *) need_version=no ;; 14862 esac 14863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14864 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14865 shlibpath_var=LD_LIBRARY_PATH 14866 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14867 case $host_os in 14868 openbsd2.[89] | openbsd2.[89].*) 14869 shlibpath_overrides_runpath=no 14870 ;; 14871 *) 14872 shlibpath_overrides_runpath=yes 14873 ;; 14874 esac 14875 else 14876 shlibpath_overrides_runpath=yes 14877 fi 14878 ;; 14879 14880os2*) 14881 libname_spec='$name' 14882 shrext_cmds=".dll" 14883 need_lib_prefix=no 14884 library_names_spec='$libname${shared_ext} $libname.a' 14885 dynamic_linker='OS/2 ld.exe' 14886 shlibpath_var=LIBPATH 14887 ;; 14888 14889osf3* | osf4* | osf5*) 14890 version_type=osf 14891 need_lib_prefix=no 14892 need_version=no 14893 soname_spec='${libname}${release}${shared_ext}$major' 14894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14895 shlibpath_var=LD_LIBRARY_PATH 14896 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14897 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14898 ;; 14899 14900rdos*) 14901 dynamic_linker=no 14902 ;; 14903 14904solaris*) 14905 version_type=linux 14906 need_lib_prefix=no 14907 need_version=no 14908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14909 soname_spec='${libname}${release}${shared_ext}$major' 14910 shlibpath_var=LD_LIBRARY_PATH 14911 shlibpath_overrides_runpath=yes 14912 hardcode_into_libs=yes 14913 # ldd complains unless libraries are executable 14914 postinstall_cmds='chmod +x $lib' 14915 ;; 14916 14917sunos4*) 14918 version_type=sunos 14919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14920 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14921 shlibpath_var=LD_LIBRARY_PATH 14922 shlibpath_overrides_runpath=yes 14923 if test "$with_gnu_ld" = yes; then 14924 need_lib_prefix=no 14925 fi 14926 need_version=yes 14927 ;; 14928 14929sysv4 | sysv4.3*) 14930 version_type=linux 14931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14932 soname_spec='${libname}${release}${shared_ext}$major' 14933 shlibpath_var=LD_LIBRARY_PATH 14934 case $host_vendor in 14935 sni) 14936 shlibpath_overrides_runpath=no 14937 need_lib_prefix=no 14938 runpath_var=LD_RUN_PATH 14939 ;; 14940 siemens) 14941 need_lib_prefix=no 14942 ;; 14943 motorola) 14944 need_lib_prefix=no 14945 need_version=no 14946 shlibpath_overrides_runpath=no 14947 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14948 ;; 14949 esac 14950 ;; 14951 14952sysv4*MP*) 14953 if test -d /usr/nec ;then 14954 version_type=linux 14955 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14956 soname_spec='$libname${shared_ext}.$major' 14957 shlibpath_var=LD_LIBRARY_PATH 14958 fi 14959 ;; 14960 14961sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14962 version_type=freebsd-elf 14963 need_lib_prefix=no 14964 need_version=no 14965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14966 soname_spec='${libname}${release}${shared_ext}$major' 14967 shlibpath_var=LD_LIBRARY_PATH 14968 shlibpath_overrides_runpath=yes 14969 hardcode_into_libs=yes 14970 if test "$with_gnu_ld" = yes; then 14971 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14972 else 14973 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14974 case $host_os in 14975 sco3.2v5*) 14976 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14977 ;; 14978 esac 14979 fi 14980 sys_lib_dlsearch_path_spec='/usr/lib' 14981 ;; 14982 14983tpf*) 14984 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14985 version_type=linux 14986 need_lib_prefix=no 14987 need_version=no 14988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14989 shlibpath_var=LD_LIBRARY_PATH 14990 shlibpath_overrides_runpath=no 14991 hardcode_into_libs=yes 14992 ;; 14993 14994uts4*) 14995 version_type=linux 14996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14997 soname_spec='${libname}${release}${shared_ext}$major' 14998 shlibpath_var=LD_LIBRARY_PATH 14999 ;; 15000 15001*) 15002 dynamic_linker=no 15003 ;; 15004esac 15005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15006$as_echo "$dynamic_linker" >&6; } 15007test "$dynamic_linker" = no && can_build_shared=no 15008 15009variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15010if test "$GCC" = yes; then 15011 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15012fi 15013 15014if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 15015 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 15016fi 15017if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 15018 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 15019fi 15020 15021 15022 15023 15024 15025 15026 15027 15028 15029 15030 15031 15032 15033 15034 15035 15036 15037 15038 15039 15040 15041 15042 15043 15044 15045 15046 15047 15048 15049 15050 15051 15052 15053 15054 15055 15056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15057$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15058hardcode_action_CXX= 15059if test -n "$hardcode_libdir_flag_spec_CXX" || 15060 test -n "$runpath_var_CXX" || 15061 test "X$hardcode_automatic_CXX" = "Xyes" ; then 15062 15063 # We can hardcode non-existent directories. 15064 if test "$hardcode_direct_CXX" != no && 15065 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15066 # have to relink, otherwise we might link with an installed library 15067 # when we should be linking with a yet-to-be-installed one 15068 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 15069 test "$hardcode_minus_L_CXX" != no; then 15070 # Linking always hardcodes the temporary library directory. 15071 hardcode_action_CXX=relink 15072 else 15073 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15074 hardcode_action_CXX=immediate 15075 fi 15076else 15077 # We cannot hardcode anything, or else we can only hardcode existing 15078 # directories. 15079 hardcode_action_CXX=unsupported 15080fi 15081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 15082$as_echo "$hardcode_action_CXX" >&6; } 15083 15084if test "$hardcode_action_CXX" = relink || 15085 test "$inherit_rpath_CXX" = yes; then 15086 # Fast installation is not supported 15087 enable_fast_install=no 15088elif test "$shlibpath_overrides_runpath" = yes || 15089 test "$enable_shared" = no; then 15090 # Fast installation is not necessary 15091 enable_fast_install=needless 15092fi 15093 15094 15095 15096 15097 15098 15099 15100 fi # test -n "$compiler" 15101 15102 CC=$lt_save_CC 15103 LDCXX=$LD 15104 LD=$lt_save_LD 15105 GCC=$lt_save_GCC 15106 with_gnu_ld=$lt_save_with_gnu_ld 15107 lt_cv_path_LDCXX=$lt_cv_path_LD 15108 lt_cv_path_LD=$lt_save_path_LD 15109 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15110 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15111fi # test "$_lt_caught_CXX_error" != yes 15112 15113ac_ext=cpp 15114ac_cpp='$CXXCPP $CPPFLAGS' 15115ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15116ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15117ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15118 15119 15120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 15121$as_echo_n "checking whether the C++ compiler works... " >&6; } 15122if test "${atf_cv_prog_cxx_works+set}" = set; then : 15123 $as_echo_n "(cached) " >&6 15124else 15125 ac_ext=cpp 15126ac_cpp='$CXXCPP $CPPFLAGS' 15127ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15128ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15129ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15130 15131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15132/* end confdefs.h. */ 15133 15134int 15135main () 15136{ 15137 15138 ; 15139 return 0; 15140} 15141_ACEOF 15142if ac_fn_cxx_try_link "$LINENO"; then : 15143 atf_cv_prog_cxx_works=yes 15144else 15145 atf_cv_prog_cxx_works=no 15146fi 15147rm -f core conftest.err conftest.$ac_objext \ 15148 conftest$ac_exeext conftest.$ac_ext 15149 ac_ext=cpp 15150ac_cpp='$CXXCPP $CPPFLAGS' 15151ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15152ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15153ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15154 15155fi 15156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $atf_cv_prog_cxx_works" >&5 15157$as_echo "$atf_cv_prog_cxx_works" >&6; } 15158if test "${atf_cv_prog_cxx_works}" = no; then 15159 as_fn_error $? "C++ compiler cannot create executables" "$LINENO" 5 15160fi 15161 15162 15163 # Check whether --enable-developer was given. 15164if test "${enable_developer+set}" = set; then : 15165 enableval=$enable_developer; 15166else 15167 case ${PACKAGE_VERSION} in 15168 0.*|*99*|*alpha*|*beta*) 15169 enable_developer=yes 15170 ;; 15171 *) 15172 enable_developer=no 15173 ;; 15174 esac 15175fi 15176 15177 15178 if test ${enable_developer} = yes; then 15179 try_werror=yes 15180 15181 try_c_cxx_flags="-g \ 15182 -Wall \ 15183 -Wcast-qual \ 15184 -Wextra \ 15185 -Wno-unused-parameter \ 15186 -Wpointer-arith \ 15187 -Wredundant-decls \ 15188 -Wreturn-type \ 15189 -Wshadow \ 15190 -Wsign-compare \ 15191 -Wswitch \ 15192 -Wwrite-strings" 15193 15194 try_c_flags="-Wmissing-prototypes \ 15195 -Wno-traditional \ 15196 -Wstrict-prototypes" 15197 15198 try_cxx_flags="-Wabi \ 15199 -Wctor-dtor-privacy \ 15200 -Wno-deprecated \ 15201 -Wno-non-template-friend \ 15202 -Wno-pmf-conversions \ 15203 -Wnon-virtual-dtor \ 15204 -Woverloaded-virtual \ 15205 -Wreorder \ 15206 -Wsign-promo \ 15207 -Wsynth" 15208 15209 # 15210 # The following flags should also be enabled but cannot be. Reasons 15211 # given below. 15212 # 15213 # -Wold-style-cast: Raises errors when using TIOCGWINSZ, at least under 15214 # Mac OS X. This is due to the way _IOR is defined. 15215 # 15216 else 15217 try_werror=no 15218 try_c_cxx_flags="-DNDEBUG" 15219 try_c_flags= 15220 try_cxx_flags= 15221 fi 15222 try_c_cxx_flags="${try_c_cxx_flags} -D_FORTIFY_SOURCE=2" 15223 15224 # Try and set -Werror first so that tests for other flags are accurate. 15225 # Otherwise, compilers such as clang will report the flags as a warning and 15226 # we will conclude they are supported... but when they are combined with 15227 # -Werror they cause build failures. 15228 if test ${try_werror} = yes; then 15229 15230 valid_cflags= 15231 for f in -Werror; do 15232 15233 ac_ext=c 15234ac_cpp='$CPP $CPPFLAGS' 15235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15237ac_compiler_gnu=$ac_cv_c_compiler_gnu 15238 15239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports ${f}" >&5 15240$as_echo_n "checking whether ${CC} supports ${f}... " >&6; } 15241 saved_cflags="${CFLAGS}" 15242 valid_cflag=no 15243 CFLAGS="${CFLAGS} ${f}" 15244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15245/* end confdefs.h. */ 15246 15247int 15248main () 15249{ 15250return 0; 15251 ; 15252 return 0; 15253} 15254_ACEOF 15255if ac_fn_c_try_link "$LINENO"; then : 15256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15257$as_echo "yes" >&6; } 15258 valid_cflag=yes 15259else 15260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15261$as_echo "no" >&6; } 15262fi 15263rm -f core conftest.err conftest.$ac_objext \ 15264 conftest$ac_exeext conftest.$ac_ext 15265 CFLAGS="${saved_cflags}" 15266 ac_ext=cpp 15267ac_cpp='$CXXCPP $CPPFLAGS' 15268ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15269ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15270ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15271 15272 15273 if test ${valid_cflag} = yes; then 15274 valid_cflags="${valid_cflags} ${f}" 15275 fi 15276 15277 done 15278 if test -n "${valid_cflags}"; then 15279 CFLAGS="${CFLAGS} ${valid_cflags}" 15280 fi 15281 15282 15283 valid_cxxflags= 15284 for f in -Werror; do 15285 15286 ac_ext=cpp 15287ac_cpp='$CXXCPP $CPPFLAGS' 15288ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15289ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15290ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15291 15292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports ${f}" >&5 15293$as_echo_n "checking whether ${CXX} supports ${f}... " >&6; } 15294 saved_cxxflags="${CXXFLAGS}" 15295 valid_cxxflag=no 15296 CXXFLAGS="${CXXFLAGS} ${f}" 15297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15298/* end confdefs.h. */ 15299 15300int 15301main () 15302{ 15303return 0; 15304 ; 15305 return 0; 15306} 15307_ACEOF 15308if ac_fn_cxx_try_link "$LINENO"; then : 15309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15310$as_echo "yes" >&6; } 15311 valid_cxxflag=yes 15312else 15313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15314$as_echo "no" >&6; } 15315fi 15316rm -f core conftest.err conftest.$ac_objext \ 15317 conftest$ac_exeext conftest.$ac_ext 15318 CXXFLAGS="${saved_cxxflags}" 15319 ac_ext=cpp 15320ac_cpp='$CXXCPP $CPPFLAGS' 15321ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15322ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15323ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15324 15325 15326 if test ${valid_cxxflag} = yes; then 15327 valid_cxxflags="${valid_cxxflags} ${f}" 15328 fi 15329 15330 done 15331 if test -n "${valid_cxxflags}"; then 15332 CXXFLAGS="${CXXFLAGS} ${valid_cxxflags}" 15333 fi 15334 15335 fi 15336 15337 15338 valid_cflags= 15339 for f in ${try_c_cxx_flags} ${try_c_flags}; do 15340 15341 ac_ext=c 15342ac_cpp='$CPP $CPPFLAGS' 15343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15345ac_compiler_gnu=$ac_cv_c_compiler_gnu 15346 15347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports ${f}" >&5 15348$as_echo_n "checking whether ${CC} supports ${f}... " >&6; } 15349 saved_cflags="${CFLAGS}" 15350 valid_cflag=no 15351 CFLAGS="${CFLAGS} ${f}" 15352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15353/* end confdefs.h. */ 15354 15355int 15356main () 15357{ 15358return 0; 15359 ; 15360 return 0; 15361} 15362_ACEOF 15363if ac_fn_c_try_link "$LINENO"; then : 15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15365$as_echo "yes" >&6; } 15366 valid_cflag=yes 15367else 15368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15369$as_echo "no" >&6; } 15370fi 15371rm -f core conftest.err conftest.$ac_objext \ 15372 conftest$ac_exeext conftest.$ac_ext 15373 CFLAGS="${saved_cflags}" 15374 ac_ext=cpp 15375ac_cpp='$CXXCPP $CPPFLAGS' 15376ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15377ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15378ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15379 15380 15381 if test ${valid_cflag} = yes; then 15382 valid_cflags="${valid_cflags} ${f}" 15383 fi 15384 15385 done 15386 if test -n "${valid_cflags}"; then 15387 CFLAGS="${CFLAGS} ${valid_cflags}" 15388 fi 15389 15390 15391 valid_cxxflags= 15392 for f in ${try_c_cxx_flags} ${try_cxx_flags}; do 15393 15394 ac_ext=cpp 15395ac_cpp='$CXXCPP $CPPFLAGS' 15396ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15397ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15398ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15399 15400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports ${f}" >&5 15401$as_echo_n "checking whether ${CXX} supports ${f}... " >&6; } 15402 saved_cxxflags="${CXXFLAGS}" 15403 valid_cxxflag=no 15404 CXXFLAGS="${CXXFLAGS} ${f}" 15405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15406/* end confdefs.h. */ 15407 15408int 15409main () 15410{ 15411return 0; 15412 ; 15413 return 0; 15414} 15415_ACEOF 15416if ac_fn_cxx_try_link "$LINENO"; then : 15417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15418$as_echo "yes" >&6; } 15419 valid_cxxflag=yes 15420else 15421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15422$as_echo "no" >&6; } 15423fi 15424rm -f core conftest.err conftest.$ac_objext \ 15425 conftest$ac_exeext conftest.$ac_ext 15426 CXXFLAGS="${saved_cxxflags}" 15427 ac_ext=cpp 15428ac_cpp='$CXXCPP $CPPFLAGS' 15429ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15430ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15431ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15432 15433 15434 if test ${valid_cxxflag} = yes; then 15435 valid_cxxflags="${valid_cxxflags} ${f}" 15436 fi 15437 15438 done 15439 if test -n "${valid_cxxflags}"; then 15440 CXXFLAGS="${CXXFLAGS} ${valid_cxxflags}" 15441 fi 15442 15443 15444 15445 15446 15447 15448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is in std" >&5 15449$as_echo_n "checking whether vsnprintf is in std... " >&6; } 15450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15451/* end confdefs.h. */ 15452#include <cstdarg> 15453 #include <cstdio> 15454int 15455main () 15456{ 15457va_list ap; 15458 char* buf = NULL; 15459 const char* fmt = NULL; 15460 std::vsnprintf(buf, 0, fmt, ap); 15461 return 0; 15462 ; 15463 return 0; 15464} 15465_ACEOF 15466if ac_fn_cxx_try_compile "$LINENO"; then : 15467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15468$as_echo "yes" >&6; } 15469 15470$as_echo "#define HAVE_VSNPRINTF_IN_STD 1" >>confdefs.h 15471 15472else 15473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15474$as_echo "no" >&6; } 15475 15476fi 15477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15478 15479 15480 15481 ac_ext=c 15482ac_cpp='$CPP $CPPFLAGS' 15483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15485ac_compiler_gnu=$ac_cv_c_compiler_gnu 15486 15487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt allows a + sign for POSIX behavior" >&5 15488$as_echo_n "checking whether getopt allows a + sign for POSIX behavior... " >&6; } 15489 if test "$cross_compiling" = yes; then : 15490 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15491$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15492as_fn_error $? "cannot run test program while cross compiling 15493See \`config.log' for more details" "$LINENO" 5; } 15494else 15495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15496/* end confdefs.h. */ 15497#include <stdlib.h> 15498#include <string.h> 15499#include <unistd.h> 15500int 15501main () 15502{ 15503 15504 int argc = 4; 15505 char* argv[5] = { 15506 strdup("conftest"), 15507 strdup("-+"), 15508 strdup("-a"), 15509 strdup("bar"), 15510 NULL 15511 }; 15512 int ch; 15513 int seen_a = 0, seen_plus = 0; 15514 15515 while ((ch = getopt(argc, argv, "+a:")) != -1) { 15516 switch (ch) { 15517 case 'a': 15518 seen_a = 1; 15519 break; 15520 15521 case '+': 15522 seen_plus = 1; 15523 break; 15524 15525 case '?': 15526 default: 15527 ; 15528 } 15529 } 15530 15531 return (seen_a && !seen_plus) ? EXIT_SUCCESS : EXIT_FAILURE; 15532 15533 ; 15534 return 0; 15535} 15536_ACEOF 15537if ac_fn_c_try_run "$LINENO"; then : 15538 getopt_allows_plus=yes 15539 15540$as_echo "#define HAVE_GNU_GETOPT 1" >>confdefs.h 15541 15542else 15543 getopt_allows_plus=no 15544fi 15545rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15546 conftest.$ac_objext conftest.beam conftest.$ac_ext 15547fi 15548 15549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${getopt_allows_plus}" >&5 15550$as_echo "${getopt_allows_plus}" >&6; } 15551 ac_ext=cpp 15552ac_cpp='$CXXCPP $CPPFLAGS' 15553ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15554ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15555ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15556 15557 15558 ac_ext=c 15559ac_cpp='$CPP $CPPFLAGS' 15560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15562ac_compiler_gnu=$ac_cv_c_compiler_gnu 15563 15564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt has optreset" >&5 15565$as_echo_n "checking whether getopt has optreset... " >&6; } 15566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15567/* end confdefs.h. */ 15568#include <stdlib.h> 15569#include <unistd.h> 15570int 15571main () 15572{ 15573 15574 optreset = 1; 15575 return EXIT_SUCCESS; 15576 15577 ; 15578 return 0; 15579} 15580_ACEOF 15581if ac_fn_c_try_compile "$LINENO"; then : 15582 getopt_has_optreset=yes 15583else 15584 getopt_has_optreset=no 15585fi 15586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15587 if test x"${getopt_has_optreset}" = yes; then 15588 15589$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h 15590 15591 fi 15592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${getopt_has_optreset}" >&5 15593$as_echo "${getopt_has_optreset}" >&6; } 15594 ac_ext=cpp 15595ac_cpp='$CXXCPP $CPPFLAGS' 15596ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15597ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15598ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15599 15600 15601 15602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((noreturn)) is supported" >&5 15603$as_echo_n "checking whether __attribute__((noreturn)) is supported... " >&6; } 15604 if test "$cross_compiling" = yes; then : 15605 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15606$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15607as_fn_error $? "cannot run test program while cross compiling 15608See \`config.log' for more details" "$LINENO" 5; } 15609else 15610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15611/* end confdefs.h. */ 15612 15613int 15614main () 15615{ 15616 15617#if ((__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || __GNUC__ > 2) 15618 return 0; 15619#else 15620 return 1; 15621#endif 15622 15623 ; 15624 return 0; 15625} 15626_ACEOF 15627if ac_fn_cxx_try_run "$LINENO"; then : 15628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15629$as_echo "yes" >&6; } 15630 value="__attribute__((noreturn))" 15631else 15632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15633$as_echo "no" >&6; } 15634 value="" 15635 15636fi 15637rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15638 conftest.$ac_objext conftest.beam conftest.$ac_ext 15639fi 15640 15641 ATTRIBUTE_NORETURN=${value} 15642 15643 15644 15645 for ac_func in putenv setenv unsetenv 15646do : 15647 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15648ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 15649if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15650 cat >>confdefs.h <<_ACEOF 15651#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15652_ACEOF 15653 15654fi 15655done 15656 15657 15658 15659 15660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether putenv is in std" >&5 15661$as_echo_n "checking whether putenv is in std... " >&6; } 15662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15663/* end confdefs.h. */ 15664#include <cstdio> 15665int 15666main () 15667{ 15668std::putenv("a=b"); 15669 return 0; 15670 ; 15671 return 0; 15672} 15673_ACEOF 15674if ac_fn_cxx_try_compile "$LINENO"; then : 15675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15676$as_echo "yes" >&6; } 15677 15678$as_echo "#define HAVE_PUTENV_IN_STD 1" >>confdefs.h 15679 15680else 15681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15682$as_echo "no" >&6; } 15683 15684fi 15685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15686 15687 15688 15689 15690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv is in std" >&5 15691$as_echo_n "checking whether setenv is in std... " >&6; } 15692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15693/* end confdefs.h. */ 15694#include <cstdio> 15695int 15696main () 15697{ 15698std::setenv("a", "b"); 15699 return 0; 15700 ; 15701 return 0; 15702} 15703_ACEOF 15704if ac_fn_cxx_try_compile "$LINENO"; then : 15705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15706$as_echo "yes" >&6; } 15707 15708$as_echo "#define HAVE_SETENV_IN_STD 1" >>confdefs.h 15709 15710else 15711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15712$as_echo "no" >&6; } 15713 15714fi 15715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15716 15717 15718 15719 15720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv is in std" >&5 15721$as_echo_n "checking whether unsetenv is in std... " >&6; } 15722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15723/* end confdefs.h. */ 15724#include <cstdio> 15725int 15726main () 15727{ 15728std::unsetenv("a"); 15729 return 0; 15730 ; 15731 return 0; 15732} 15733_ACEOF 15734if ac_fn_cxx_try_compile "$LINENO"; then : 15735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15736$as_echo "yes" >&6; } 15737 15738$as_echo "#define HAVE_UNSETENV_IN_STD 1" >>confdefs.h 15739 15740else 15741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15742$as_echo "no" >&6; } 15743 15744fi 15745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15746 15747 15748 15749 15750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether basename takes a constant pointer" >&5 15751$as_echo_n "checking whether basename takes a constant pointer... " >&6; } 15752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15753/* end confdefs.h. */ 15754#include <libgen.h> 15755int 15756main () 15757{ 15758 15759 const char* s = "/foo/bar/"; 15760 (void)::basename(s); 15761 15762 ; 15763 return 0; 15764} 15765_ACEOF 15766if ac_fn_cxx_try_compile "$LINENO"; then : 15767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15768$as_echo "yes" >&6; } 15769 15770$as_echo "#define HAVE_CONST_BASENAME 1" >>confdefs.h 15771 15772else 15773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15774$as_echo "no" >&6; } 15775fi 15776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15777 15778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirname takes a constant pointer" >&5 15779$as_echo_n "checking whether dirname takes a constant pointer... " >&6; } 15780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15781/* end confdefs.h. */ 15782#include <libgen.h> 15783int 15784main () 15785{ 15786 15787 const char* s = "/foo/bar/"; 15788 (void)::dirname(s); 15789 15790 ; 15791 return 0; 15792} 15793_ACEOF 15794if ac_fn_cxx_try_compile "$LINENO"; then : 15795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15796$as_echo "yes" >&6; } 15797 15798$as_echo "#define HAVE_CONST_DIRNAME 1" >>confdefs.h 15799 15800else 15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15802$as_echo "no" >&6; } 15803fi 15804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15805 15806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd(NULL, 0) works" >&5 15807$as_echo_n "checking whether getcwd(NULL, 0) works... " >&6; } 15808 if test "$cross_compiling" = yes; then : 15809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15810$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15811as_fn_error $? "cannot run test program while cross compiling 15812See \`config.log' for more details" "$LINENO" 5; } 15813else 15814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15815/* end confdefs.h. */ 15816#include <stdlib.h> 15817#include <unistd.h> 15818int 15819main () 15820{ 15821 15822 char *cwd = getcwd(NULL, 0); 15823 return (cwd != NULL) ? EXIT_SUCCESS : EXIT_FAILURE; 15824 15825 ; 15826 return 0; 15827} 15828_ACEOF 15829if ac_fn_cxx_try_run "$LINENO"; then : 15830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15831$as_echo "yes" >&6; } 15832 15833$as_echo "#define HAVE_GETCWD_DYN 1" >>confdefs.h 15834 15835else 15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15837$as_echo "no" >&6; } 15838fi 15839rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15840 conftest.$ac_objext conftest.beam conftest.$ac_ext 15841fi 15842 15843 15844 for ac_func in unmount 15845do : 15846 ac_fn_cxx_check_func "$LINENO" "unmount" "ac_cv_func_unmount" 15847if test "x$ac_cv_func_unmount" = x""yes; then : 15848 cat >>confdefs.h <<_ACEOF 15849#define HAVE_UNMOUNT 1 15850_ACEOF 15851 15852fi 15853done 15854 15855 15856 15857 15858 15859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is in std" >&5 15860$as_echo_n "checking whether snprintf is in std... " >&6; } 15861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15862/* end confdefs.h. */ 15863#include <cstdio> 15864int 15865main () 15866{ 15867char buf; 15868 std::snprintf(&buf, 1, ""); 15869 return 0; 15870 ; 15871 return 0; 15872} 15873_ACEOF 15874if ac_fn_cxx_try_compile "$LINENO"; then : 15875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15876$as_echo "yes" >&6; } 15877 15878$as_echo "#define HAVE_SNPRINTF_IN_STD 1" >>confdefs.h 15879 15880else 15881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15882$as_echo "no" >&6; } 15883 15884fi 15885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15886 15887 15888 15889 15890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the last valid signal" >&5 15891$as_echo_n "checking for the last valid signal... " >&6; } 15892 if test "$cross_compiling" = yes; then : 15893 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15894$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15895as_fn_error $? "cannot run test program while cross compiling 15896See \`config.log' for more details" "$LINENO" 5; } 15897else 15898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15899/* end confdefs.h. */ 15900#include <err.h> 15901#include <errno.h> 15902#include <signal.h> 15903#include <stdio.h> 15904#include <stdio.h> 15905#include <stdlib.h> 15906int 15907main () 15908{ 15909 15910 int i; 15911 FILE *f; 15912 15913 i = 0; 15914 while (i < 1024) { 15915 i++; 15916 if (i != SIGKILL && i != SIGSTOP) { 15917 struct sigaction sa; 15918 int ret; 15919 15920 sa.sa_handler = SIG_IGN; 15921 sigemptyset(&sa.sa_mask); 15922 sa.sa_flags = 0; 15923 15924 ret = sigaction(i, &sa, NULL); 15925 if (ret == -1) { 15926 if (errno == EINVAL) { 15927 i--; 15928 break; 15929 } else 15930 err(EXIT_FAILURE, "sigaction failed"); 15931 } 15932 } 15933 } 15934 if (i == 100) 15935 errx(EXIT_FAILURE, "too much signals"); 15936 15937 f = fopen("conftest.cnt", "w"); 15938 if (f == NULL) 15939 err(EXIT_FAILURE, "failed to open file"); 15940 15941 fprintf(f, "%d\n", i); 15942 fclose(f); 15943 15944 return EXIT_SUCCESS; 15945 15946 ; 15947 return 0; 15948} 15949_ACEOF 15950if ac_fn_cxx_try_run "$LINENO"; then : 15951 if test ! -f conftest.cnt; then 15952 last_signo=15 15953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed; assuming ${last_signo}" >&5 15954$as_echo "failed; assuming ${last_signo}" >&6; } 15955 else 15956 last_signo=$(cat conftest.cnt) 15957 rm -f conftest.cnt 15958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${last_signo}" >&5 15959$as_echo "${last_signo}" >&6; } 15960 fi 15961else 15962 last_signo=15 15963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed; assuming ${last_signo}" >&5 15964$as_echo "failed; assuming ${last_signo}" >&6; } 15965fi 15966rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15967 conftest.$ac_objext conftest.beam conftest.$ac_ext 15968fi 15969 15970 15971cat >>confdefs.h <<_ACEOF 15972#define LAST_SIGNO ${last_signo} 15973_ACEOF 15974 15975 15976 15977 15978 15979 test x"${ATF_BUILD_CC-unset}" = x"unset" && ATF_BUILD_CC="${CC}" 15980 15981 15982 15983 15984 test x"${ATF_BUILD_CFLAGS-unset}" = x"unset" && ATF_BUILD_CFLAGS="${CFLAGS}" 15985 15986 15987 15988 15989 test x"${ATF_BUILD_CPP-unset}" = x"unset" && ATF_BUILD_CPP="${CPP}" 15990 15991 15992 15993 15994 test x"${ATF_BUILD_CPPFLAGS-unset}" = x"unset" && ATF_BUILD_CPPFLAGS="${CPPFLAGS}" 15995 15996 15997 15998 15999 test x"${ATF_BUILD_CXX-unset}" = x"unset" && ATF_BUILD_CXX="${CXX}" 16000 16001 16002 16003 16004 test x"${ATF_BUILD_CXXFLAGS-unset}" = x"unset" && ATF_BUILD_CXXFLAGS="${CXXFLAGS}" 16005 16006 16007 16008 16009if test "${srcdir}" = .; then 16010 target_srcdir= 16011else 16012 target_srcdir="${srcdir}/" 16013fi 16014 16015 16016 16017machine=${target_cpu} 16018 16019case ${machine} in 16020 i[3-9]86) 16021 arch=i386 16022 ;; 16023 x86_64) 16024 arch=amd64 16025 ;; 16026 *) 16027 arch=${machine} 16028 ;; 16029esac 16030 16031{ $as_echo "$as_me:${as_lineno-$LINENO}: Machine type: ${machine}, architecture: ${arch}" >&5 16032$as_echo "$as_me: Machine type: ${machine}, architecture: ${arch}" >&6;} 16033atf_arch=${arch} 16034 16035atf_machine=${machine} 16036 16037 16038 16039 16040if test x"${ATF_CONFSUBDIR-unset}" = x"unset"; then 16041 ATF_CONFSUBDIR=atf 16042else 16043 case ${ATF_CONFSUBDIR} in 16044 /*) 16045 as_fn_error $? "ATF_CONFSUBDIR must hold a relative path" "$LINENO" 5 16046 ;; 16047 *) 16048 ;; 16049 esac 16050fi 16051if test x"${ATF_CONFSUBDIR}" = x""; then 16052 atf_confdir=\${sysconfdir} 16053 16054else 16055 atf_confdir=\${sysconfdir}/${ATF_CONFSUBDIR} 16056 16057fi 16058 16059 16060if test x"${ATF_WORKDIR}" = x""; then 16061 for t in /tmp /var/tmp; do 16062 if test -d ${t}; then 16063 ATF_WORKDIR=${t} 16064 break 16065 fi 16066 done 16067 if test x"${ATF_WORKDIR}" = x""; then 16068 as_fn_error $? "Could not guess a value for ATF_WORKDIR" "$LINENO" 5 16069 fi 16070else 16071 case ${ATF_WORKDIR} in 16072 /*) 16073 ;; 16074 *) 16075 as_fn_error $? "ATF_WORKDIR must hold an absolute path" "$LINENO" 5 16076 ;; 16077 esac 16078fi 16079 16080atf_cssdir=\${datadir}/examples/atf 16081 16082atf_dtddir=\${datadir}/xml/atf 16083 16084atf_egdir=\${datadir}/examples/atf 16085 16086atf_pkgconfigdir=\${libdir}/pkgconfig 16087 16088atf_xsldir=\${datadir}/xsl/atf 16089 16090 16091 16092 16093if test x"${ATF_SHELL}" = x""; then 16094 for ac_prog in bash sh 16095do 16096 # Extract the first word of "$ac_prog", so it can be a program name with args. 16097set dummy $ac_prog; ac_word=$2 16098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16099$as_echo_n "checking for $ac_word... " >&6; } 16100if test "${ac_cv_path_ATF_SHELL+set}" = set; then : 16101 $as_echo_n "(cached) " >&6 16102else 16103 case $ATF_SHELL in 16104 [\\/]* | ?:[\\/]*) 16105 ac_cv_path_ATF_SHELL="$ATF_SHELL" # Let the user override the test with a path. 16106 ;; 16107 *) 16108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16109for as_dir in $PATH 16110do 16111 IFS=$as_save_IFS 16112 test -z "$as_dir" && as_dir=. 16113 for ac_exec_ext in '' $ac_executable_extensions; do 16114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16115 ac_cv_path_ATF_SHELL="$as_dir/$ac_word$ac_exec_ext" 16116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16117 break 2 16118 fi 16119done 16120 done 16121IFS=$as_save_IFS 16122 16123 ;; 16124esac 16125fi 16126ATF_SHELL=$ac_cv_path_ATF_SHELL 16127if test -n "$ATF_SHELL"; then 16128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ATF_SHELL" >&5 16129$as_echo "$ATF_SHELL" >&6; } 16130else 16131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16132$as_echo "no" >&6; } 16133fi 16134 16135 16136 test -n "$ATF_SHELL" && break 16137done 16138 16139else 16140 case ${ATF_SHELL} in 16141 /*) 16142 ;; 16143 *) 16144 as_fn_error $? "ATF_SHELL must hold an absolute path" "$LINENO" 5 16145 ;; 16146 esac 16147fi 16148if test x"${ATF_SHELL}" = x""; then 16149 as_fn_error $? "No POSIX shell interpreter found; maybe set ATF_SHELL?" "$LINENO" 5 16150fi 16151 16152 16153# Extract the first word of "mtn", so it can be a program name with args. 16154set dummy mtn; ac_word=$2 16155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16156$as_echo_n "checking for $ac_word... " >&6; } 16157if test "${ac_cv_path_MTN+set}" = set; then : 16158 $as_echo_n "(cached) " >&6 16159else 16160 case $MTN in 16161 [\\/]* | ?:[\\/]*) 16162 ac_cv_path_MTN="$MTN" # Let the user override the test with a path. 16163 ;; 16164 *) 16165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16166for as_dir in $PATH 16167do 16168 IFS=$as_save_IFS 16169 test -z "$as_dir" && as_dir=. 16170 for ac_exec_ext in '' $ac_executable_extensions; do 16171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16172 ac_cv_path_MTN="$as_dir/$ac_word$ac_exec_ext" 16173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16174 break 2 16175 fi 16176done 16177 done 16178IFS=$as_save_IFS 16179 16180 ;; 16181esac 16182fi 16183MTN=$ac_cv_path_MTN 16184if test -n "$MTN"; then 16185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTN" >&5 16186$as_echo "$MTN" >&6; } 16187else 16188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16189$as_echo "no" >&6; } 16190fi 16191 16192 16193 16194 16195ac_config_files="$ac_config_files Makefile atf-c/defs.h" 16196 16197cat >confcache <<\_ACEOF 16198# This file is a shell script that caches the results of configure 16199# tests run on this system so they can be shared between configure 16200# scripts and configure runs, see configure's option --config-cache. 16201# It is not useful on other systems. If it contains results you don't 16202# want to keep, you may remove or edit it. 16203# 16204# config.status only pays attention to the cache file if you give it 16205# the --recheck option to rerun configure. 16206# 16207# `ac_cv_env_foo' variables (set or unset) will be overridden when 16208# loading this file, other *unset* `ac_cv_foo' will be assigned the 16209# following values. 16210 16211_ACEOF 16212 16213# The following way of writing the cache mishandles newlines in values, 16214# but we know of no workaround that is simple, portable, and efficient. 16215# So, we kill variables containing newlines. 16216# Ultrix sh set writes to stderr and can't be redirected directly, 16217# and sets the high bit in the cache file unless we assign to the vars. 16218( 16219 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16220 eval ac_val=\$$ac_var 16221 case $ac_val in #( 16222 *${as_nl}*) 16223 case $ac_var in #( 16224 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16225$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16226 esac 16227 case $ac_var in #( 16228 _ | IFS | as_nl) ;; #( 16229 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16230 *) { eval $ac_var=; unset $ac_var;} ;; 16231 esac ;; 16232 esac 16233 done 16234 16235 (set) 2>&1 | 16236 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16237 *${as_nl}ac_space=\ *) 16238 # `set' does not quote correctly, so add quotes: double-quote 16239 # substitution turns \\\\ into \\, and sed turns \\ into \. 16240 sed -n \ 16241 "s/'/'\\\\''/g; 16242 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16243 ;; #( 16244 *) 16245 # `set' quotes correctly as required by POSIX, so do not add quotes. 16246 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16247 ;; 16248 esac | 16249 sort 16250) | 16251 sed ' 16252 /^ac_cv_env_/b end 16253 t clear 16254 :clear 16255 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16256 t end 16257 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16258 :end' >>confcache 16259if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16260 if test -w "$cache_file"; then 16261 test "x$cache_file" != "x/dev/null" && 16262 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16263$as_echo "$as_me: updating cache $cache_file" >&6;} 16264 cat confcache >$cache_file 16265 else 16266 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16267$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16268 fi 16269fi 16270rm -f confcache 16271 16272test "x$prefix" = xNONE && prefix=$ac_default_prefix 16273# Let make expand exec_prefix. 16274test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16275 16276DEFS=-DHAVE_CONFIG_H 16277 16278ac_libobjs= 16279ac_ltlibobjs= 16280U= 16281for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16282 # 1. Remove the extension, and $U if already installed. 16283 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16284 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 16285 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16286 # will be set to the directory where LIBOBJS objects are built. 16287 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16288 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16289done 16290LIBOBJS=$ac_libobjs 16291 16292LTLIBOBJS=$ac_ltlibobjs 16293 16294 16295if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 16296 as_fn_error $? "conditional \"AMDEP\" was never defined. 16297Usually this means the macro was only invoked conditionally." "$LINENO" 5 16298fi 16299if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16300 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16301Usually this means the macro was only invoked conditionally." "$LINENO" 5 16302fi 16303if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16304 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16305Usually this means the macro was only invoked conditionally." "$LINENO" 5 16306fi 16307if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 16308 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 16309Usually this means the macro was only invoked conditionally." "$LINENO" 5 16310fi 16311if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 16312 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 16313Usually this means the macro was only invoked conditionally." "$LINENO" 5 16314fi 16315 16316: ${CONFIG_STATUS=./config.status} 16317ac_write_fail=0 16318ac_clean_files_save=$ac_clean_files 16319ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16320{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16321$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 16322as_write_fail=0 16323cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16324#! $SHELL 16325# Generated by $as_me. 16326# Run this file to recreate the current configuration. 16327# Compiler output produced by configure, useful for debugging 16328# configure, is in config.log if it exists. 16329 16330debug=false 16331ac_cs_recheck=false 16332ac_cs_silent=false 16333 16334SHELL=\${CONFIG_SHELL-$SHELL} 16335export SHELL 16336_ASEOF 16337cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16338## -------------------- ## 16339## M4sh Initialization. ## 16340## -------------------- ## 16341 16342# Be more Bourne compatible 16343DUALCASE=1; export DUALCASE # for MKS sh 16344if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 16345 emulate sh 16346 NULLCMD=: 16347 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16348 # is contrary to our usage. Disable this feature. 16349 alias -g '${1+"$@"}'='"$@"' 16350 setopt NO_GLOB_SUBST 16351else 16352 case `(set -o) 2>/dev/null` in #( 16353 *posix*) : 16354 set -o posix ;; #( 16355 *) : 16356 ;; 16357esac 16358fi 16359 16360 16361as_nl=' 16362' 16363export as_nl 16364# Printing a long string crashes Solaris 7 /usr/bin/printf. 16365as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 16366as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 16367as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 16368# Prefer a ksh shell builtin over an external printf program on Solaris, 16369# but without wasting forks for bash or zsh. 16370if test -z "$BASH_VERSION$ZSH_VERSION" \ 16371 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 16372 as_echo='print -r --' 16373 as_echo_n='print -rn --' 16374elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 16375 as_echo='printf %s\n' 16376 as_echo_n='printf %s' 16377else 16378 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 16379 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 16380 as_echo_n='/usr/ucb/echo -n' 16381 else 16382 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 16383 as_echo_n_body='eval 16384 arg=$1; 16385 case $arg in #( 16386 *"$as_nl"*) 16387 expr "X$arg" : "X\\(.*\\)$as_nl"; 16388 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 16389 esac; 16390 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 16391 ' 16392 export as_echo_n_body 16393 as_echo_n='sh -c $as_echo_n_body as_echo' 16394 fi 16395 export as_echo_body 16396 as_echo='sh -c $as_echo_body as_echo' 16397fi 16398 16399# The user is always right. 16400if test "${PATH_SEPARATOR+set}" != set; then 16401 PATH_SEPARATOR=: 16402 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16403 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16404 PATH_SEPARATOR=';' 16405 } 16406fi 16407 16408 16409# IFS 16410# We need space, tab and new line, in precisely that order. Quoting is 16411# there to prevent editors from complaining about space-tab. 16412# (If _AS_PATH_WALK were called with IFS unset, it would disable word 16413# splitting by setting IFS to empty value.) 16414IFS=" "" $as_nl" 16415 16416# Find who we are. Look in the path if we contain no directory separator. 16417case $0 in #(( 16418 *[\\/]* ) as_myself=$0 ;; 16419 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16420for as_dir in $PATH 16421do 16422 IFS=$as_save_IFS 16423 test -z "$as_dir" && as_dir=. 16424 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16425 done 16426IFS=$as_save_IFS 16427 16428 ;; 16429esac 16430# We did not find ourselves, most probably we were run as `sh COMMAND' 16431# in which case we are not to be found in the path. 16432if test "x$as_myself" = x; then 16433 as_myself=$0 16434fi 16435if test ! -f "$as_myself"; then 16436 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16437 exit 1 16438fi 16439 16440# Unset variables that we do not need and which cause bugs (e.g. in 16441# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 16442# suppresses any "Segmentation fault" message there. '((' could 16443# trigger a bug in pdksh 5.2.14. 16444for as_var in BASH_ENV ENV MAIL MAILPATH 16445do eval test x\${$as_var+set} = xset \ 16446 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16447done 16448PS1='$ ' 16449PS2='> ' 16450PS4='+ ' 16451 16452# NLS nuisances. 16453LC_ALL=C 16454export LC_ALL 16455LANGUAGE=C 16456export LANGUAGE 16457 16458# CDPATH. 16459(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16460 16461 16462# as_fn_error STATUS ERROR [LINENO LOG_FD] 16463# ---------------------------------------- 16464# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16465# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16466# script with STATUS, using 1 if that was 0. 16467as_fn_error () 16468{ 16469 as_status=$1; test $as_status -eq 0 && as_status=1 16470 if test "$4"; then 16471 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16472 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16473 fi 16474 $as_echo "$as_me: error: $2" >&2 16475 as_fn_exit $as_status 16476} # as_fn_error 16477 16478 16479# as_fn_set_status STATUS 16480# ----------------------- 16481# Set $? to STATUS, without forking. 16482as_fn_set_status () 16483{ 16484 return $1 16485} # as_fn_set_status 16486 16487# as_fn_exit STATUS 16488# ----------------- 16489# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16490as_fn_exit () 16491{ 16492 set +e 16493 as_fn_set_status $1 16494 exit $1 16495} # as_fn_exit 16496 16497# as_fn_unset VAR 16498# --------------- 16499# Portably unset VAR. 16500as_fn_unset () 16501{ 16502 { eval $1=; unset $1;} 16503} 16504as_unset=as_fn_unset 16505# as_fn_append VAR VALUE 16506# ---------------------- 16507# Append the text in VALUE to the end of the definition contained in VAR. Take 16508# advantage of any shell optimizations that allow amortized linear growth over 16509# repeated appends, instead of the typical quadratic growth present in naive 16510# implementations. 16511if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 16512 eval 'as_fn_append () 16513 { 16514 eval $1+=\$2 16515 }' 16516else 16517 as_fn_append () 16518 { 16519 eval $1=\$$1\$2 16520 } 16521fi # as_fn_append 16522 16523# as_fn_arith ARG... 16524# ------------------ 16525# Perform arithmetic evaluation on the ARGs, and store the result in the 16526# global $as_val. Take advantage of shells that can avoid forks. The arguments 16527# must be portable across $(()) and expr. 16528if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 16529 eval 'as_fn_arith () 16530 { 16531 as_val=$(( $* )) 16532 }' 16533else 16534 as_fn_arith () 16535 { 16536 as_val=`expr "$@" || test $? -eq 1` 16537 } 16538fi # as_fn_arith 16539 16540 16541if expr a : '\(a\)' >/dev/null 2>&1 && 16542 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16543 as_expr=expr 16544else 16545 as_expr=false 16546fi 16547 16548if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16549 as_basename=basename 16550else 16551 as_basename=false 16552fi 16553 16554if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16555 as_dirname=dirname 16556else 16557 as_dirname=false 16558fi 16559 16560as_me=`$as_basename -- "$0" || 16561$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16562 X"$0" : 'X\(//\)$' \| \ 16563 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16564$as_echo X/"$0" | 16565 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16566 s//\1/ 16567 q 16568 } 16569 /^X\/\(\/\/\)$/{ 16570 s//\1/ 16571 q 16572 } 16573 /^X\/\(\/\).*/{ 16574 s//\1/ 16575 q 16576 } 16577 s/.*/./; q'` 16578 16579# Avoid depending upon Character Ranges. 16580as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16581as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16582as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16583as_cr_digits='0123456789' 16584as_cr_alnum=$as_cr_Letters$as_cr_digits 16585 16586ECHO_C= ECHO_N= ECHO_T= 16587case `echo -n x` in #((((( 16588-n*) 16589 case `echo 'xy\c'` in 16590 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16591 xy) ECHO_C='\c';; 16592 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16593 ECHO_T=' ';; 16594 esac;; 16595*) 16596 ECHO_N='-n';; 16597esac 16598 16599rm -f conf$$ conf$$.exe conf$$.file 16600if test -d conf$$.dir; then 16601 rm -f conf$$.dir/conf$$.file 16602else 16603 rm -f conf$$.dir 16604 mkdir conf$$.dir 2>/dev/null 16605fi 16606if (echo >conf$$.file) 2>/dev/null; then 16607 if ln -s conf$$.file conf$$ 2>/dev/null; then 16608 as_ln_s='ln -s' 16609 # ... but there are two gotchas: 16610 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16611 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16612 # In both cases, we have to default to `cp -p'. 16613 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16614 as_ln_s='cp -p' 16615 elif ln conf$$.file conf$$ 2>/dev/null; then 16616 as_ln_s=ln 16617 else 16618 as_ln_s='cp -p' 16619 fi 16620else 16621 as_ln_s='cp -p' 16622fi 16623rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16624rmdir conf$$.dir 2>/dev/null 16625 16626 16627# as_fn_mkdir_p 16628# ------------- 16629# Create "$as_dir" as a directory, including parents if necessary. 16630as_fn_mkdir_p () 16631{ 16632 16633 case $as_dir in #( 16634 -*) as_dir=./$as_dir;; 16635 esac 16636 test -d "$as_dir" || eval $as_mkdir_p || { 16637 as_dirs= 16638 while :; do 16639 case $as_dir in #( 16640 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16641 *) as_qdir=$as_dir;; 16642 esac 16643 as_dirs="'$as_qdir' $as_dirs" 16644 as_dir=`$as_dirname -- "$as_dir" || 16645$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16646 X"$as_dir" : 'X\(//\)[^/]' \| \ 16647 X"$as_dir" : 'X\(//\)$' \| \ 16648 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16649$as_echo X"$as_dir" | 16650 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16651 s//\1/ 16652 q 16653 } 16654 /^X\(\/\/\)[^/].*/{ 16655 s//\1/ 16656 q 16657 } 16658 /^X\(\/\/\)$/{ 16659 s//\1/ 16660 q 16661 } 16662 /^X\(\/\).*/{ 16663 s//\1/ 16664 q 16665 } 16666 s/.*/./; q'` 16667 test -d "$as_dir" && break 16668 done 16669 test -z "$as_dirs" || eval "mkdir $as_dirs" 16670 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 16671 16672 16673} # as_fn_mkdir_p 16674if mkdir -p . 2>/dev/null; then 16675 as_mkdir_p='mkdir -p "$as_dir"' 16676else 16677 test -d ./-p && rmdir ./-p 16678 as_mkdir_p=false 16679fi 16680 16681if test -x / >/dev/null 2>&1; then 16682 as_test_x='test -x' 16683else 16684 if ls -dL / >/dev/null 2>&1; then 16685 as_ls_L_option=L 16686 else 16687 as_ls_L_option= 16688 fi 16689 as_test_x=' 16690 eval sh -c '\'' 16691 if test -d "$1"; then 16692 test -d "$1/."; 16693 else 16694 case $1 in #( 16695 -*)set "./$1";; 16696 esac; 16697 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 16698 ???[sx]*):;;*)false;;esac;fi 16699 '\'' sh 16700 ' 16701fi 16702as_executable_p=$as_test_x 16703 16704# Sed expression to map a string onto a valid CPP name. 16705as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16706 16707# Sed expression to map a string onto a valid variable name. 16708as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16709 16710 16711exec 6>&1 16712## ----------------------------------- ## 16713## Main body of $CONFIG_STATUS script. ## 16714## ----------------------------------- ## 16715_ASEOF 16716test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16717 16718cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16719# Save the log message, to keep $0 and so on meaningful, and to 16720# report actual input values of CONFIG_FILES etc. instead of their 16721# values after options handling. 16722ac_log=" 16723This file was extended by Automated Testing Framework $as_me 0.12, which was 16724generated by GNU Autoconf 2.67. Invocation command line was 16725 16726 CONFIG_FILES = $CONFIG_FILES 16727 CONFIG_HEADERS = $CONFIG_HEADERS 16728 CONFIG_LINKS = $CONFIG_LINKS 16729 CONFIG_COMMANDS = $CONFIG_COMMANDS 16730 $ $0 $@ 16731 16732on `(hostname || uname -n) 2>/dev/null | sed 1q` 16733" 16734 16735_ACEOF 16736 16737case $ac_config_files in *" 16738"*) set x $ac_config_files; shift; ac_config_files=$*;; 16739esac 16740 16741case $ac_config_headers in *" 16742"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 16743esac 16744 16745 16746cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16747# Files that config.status was made for. 16748config_files="$ac_config_files" 16749config_headers="$ac_config_headers" 16750config_commands="$ac_config_commands" 16751 16752_ACEOF 16753 16754cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16755ac_cs_usage="\ 16756\`$as_me' instantiates files and other configuration actions 16757from templates according to the current configuration. Unless the files 16758and actions are specified as TAGs, all are instantiated by default. 16759 16760Usage: $0 [OPTION]... [TAG]... 16761 16762 -h, --help print this help, then exit 16763 -V, --version print version number and configuration settings, then exit 16764 --config print configuration, then exit 16765 -q, --quiet, --silent 16766 do not print progress messages 16767 -d, --debug don't remove temporary files 16768 --recheck update $as_me by reconfiguring in the same conditions 16769 --file=FILE[:TEMPLATE] 16770 instantiate the configuration file FILE 16771 --header=FILE[:TEMPLATE] 16772 instantiate the configuration header FILE 16773 16774Configuration files: 16775$config_files 16776 16777Configuration headers: 16778$config_headers 16779 16780Configuration commands: 16781$config_commands 16782 16783Report bugs to <atf-devel@NetBSD.org>. 16784Automated Testing Framework home page: <http://www.NetBSD.org/~jmmv/atf/>." 16785 16786_ACEOF 16787cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16788ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 16789ac_cs_version="\\ 16790Automated Testing Framework config.status 0.12 16791configured by $0, generated by GNU Autoconf 2.67, 16792 with options \\"\$ac_cs_config\\" 16793 16794Copyright (C) 2010 Free Software Foundation, Inc. 16795This config.status script is free software; the Free Software Foundation 16796gives unlimited permission to copy, distribute and modify it." 16797 16798ac_pwd='$ac_pwd' 16799srcdir='$srcdir' 16800INSTALL='$INSTALL' 16801MKDIR_P='$MKDIR_P' 16802AWK='$AWK' 16803test -n "\$AWK" || AWK=awk 16804_ACEOF 16805 16806cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16807# The default lists apply if the user does not specify any file. 16808ac_need_defaults=: 16809while test $# != 0 16810do 16811 case $1 in 16812 --*=?*) 16813 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16814 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16815 ac_shift=: 16816 ;; 16817 --*=) 16818 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16819 ac_optarg= 16820 ac_shift=: 16821 ;; 16822 *) 16823 ac_option=$1 16824 ac_optarg=$2 16825 ac_shift=shift 16826 ;; 16827 esac 16828 16829 case $ac_option in 16830 # Handling of the options. 16831 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16832 ac_cs_recheck=: ;; 16833 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16834 $as_echo "$ac_cs_version"; exit ;; 16835 --config | --confi | --conf | --con | --co | --c ) 16836 $as_echo "$ac_cs_config"; exit ;; 16837 --debug | --debu | --deb | --de | --d | -d ) 16838 debug=: ;; 16839 --file | --fil | --fi | --f ) 16840 $ac_shift 16841 case $ac_optarg in 16842 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16843 '') as_fn_error $? "missing file argument" ;; 16844 esac 16845 as_fn_append CONFIG_FILES " '$ac_optarg'" 16846 ac_need_defaults=false;; 16847 --header | --heade | --head | --hea ) 16848 $ac_shift 16849 case $ac_optarg in 16850 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16851 esac 16852 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 16853 ac_need_defaults=false;; 16854 --he | --h) 16855 # Conflict between --help and --header 16856 as_fn_error $? "ambiguous option: \`$1' 16857Try \`$0 --help' for more information.";; 16858 --help | --hel | -h ) 16859 $as_echo "$ac_cs_usage"; exit ;; 16860 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16861 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16862 ac_cs_silent=: ;; 16863 16864 # This is an error. 16865 -*) as_fn_error $? "unrecognized option: \`$1' 16866Try \`$0 --help' for more information." ;; 16867 16868 *) as_fn_append ac_config_targets " $1" 16869 ac_need_defaults=false ;; 16870 16871 esac 16872 shift 16873done 16874 16875ac_configure_extra_args= 16876 16877if $ac_cs_silent; then 16878 exec 6>/dev/null 16879 ac_configure_extra_args="$ac_configure_extra_args --silent" 16880fi 16881 16882_ACEOF 16883cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16884if \$ac_cs_recheck; then 16885 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16886 shift 16887 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 16888 CONFIG_SHELL='$SHELL' 16889 export CONFIG_SHELL 16890 exec "\$@" 16891fi 16892 16893_ACEOF 16894cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16895exec 5>>config.log 16896{ 16897 echo 16898 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16899## Running $as_me. ## 16900_ASBOX 16901 $as_echo "$ac_log" 16902} >&5 16903 16904_ACEOF 16905cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16906# 16907# INIT-COMMANDS 16908# 16909 16910AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 16911 16912 16913# The HP-UX ksh and POSIX shell print the target directory to stdout 16914# if CDPATH is set. 16915(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16916 16917sed_quote_subst='$sed_quote_subst' 16918double_quote_subst='$double_quote_subst' 16919delay_variable_subst='$delay_variable_subst' 16920macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 16921macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 16922enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 16923enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 16924pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 16925enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 16926host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 16927host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 16928host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 16929build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 16930build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 16931build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 16932SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 16933Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 16934GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 16935EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 16936FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 16937LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 16938NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 16939LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 16940max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 16941ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 16942exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 16943lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 16944lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 16945lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 16946reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 16947reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16948OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 16949deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 16950file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 16951AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 16952AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 16953STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 16954RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 16955old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16956old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16957old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16958CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 16959CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 16960compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 16961GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 16962lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 16963lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 16964lt_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"`' 16965lt_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"`' 16966objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 16967SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 16968ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 16969MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 16970lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 16971lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 16972lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 16973lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 16974lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 16975need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 16976DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 16977NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 16978LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 16979OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 16980OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 16981libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 16982shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16983extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16984archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 16985enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 16986export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 16987whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 16988compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 16989old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16990old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16991archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16992archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16993module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16994module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 16995with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 16996allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 16997no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 16998hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 16999hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 17000hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 17001hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 17002hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 17003hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 17004hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 17005hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 17006inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 17007link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 17008fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 17009always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 17010export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 17011exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 17012include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 17013prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 17014file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 17015variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 17016need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 17017need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 17018version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 17019runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 17020shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 17021shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 17022libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 17023library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 17024soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 17025postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 17026postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 17027finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 17028finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 17029hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 17030sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 17031sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 17032hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 17033enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 17034enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 17035enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 17036old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 17037striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 17038compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' 17039predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' 17040postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' 17041predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' 17042postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' 17043compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' 17044LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17045old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17046compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17047GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17048lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17049lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17050lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17051lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17052lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17053archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17054enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17055export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17056whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17057compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17058old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17059old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17060archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17061archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17062module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17063module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17064with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17065allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17066no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17067hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17068hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17069hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17070hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17071hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17072hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17073hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17074hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17075inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17076link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17077fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17078always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17079export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17080exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17081include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17082prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17083file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17084hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17085compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17086predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17087postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17088predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17089postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17090compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17091 17092LTCC='$LTCC' 17093LTCFLAGS='$LTCFLAGS' 17094compiler='$compiler_DEFAULT' 17095 17096# Quote evaled strings. 17097for var in SED \ 17098GREP \ 17099EGREP \ 17100FGREP \ 17101LD \ 17102NM \ 17103LN_S \ 17104lt_SP2NL \ 17105lt_NL2SP \ 17106reload_flag \ 17107OBJDUMP \ 17108deplibs_check_method \ 17109file_magic_cmd \ 17110AR \ 17111AR_FLAGS \ 17112STRIP \ 17113RANLIB \ 17114CC \ 17115CFLAGS \ 17116compiler \ 17117lt_cv_sys_global_symbol_pipe \ 17118lt_cv_sys_global_symbol_to_cdecl \ 17119lt_cv_sys_global_symbol_to_c_name_address \ 17120lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17121SHELL \ 17122ECHO \ 17123lt_prog_compiler_no_builtin_flag \ 17124lt_prog_compiler_wl \ 17125lt_prog_compiler_pic \ 17126lt_prog_compiler_static \ 17127lt_cv_prog_compiler_c_o \ 17128need_locks \ 17129DSYMUTIL \ 17130NMEDIT \ 17131LIPO \ 17132OTOOL \ 17133OTOOL64 \ 17134shrext_cmds \ 17135export_dynamic_flag_spec \ 17136whole_archive_flag_spec \ 17137compiler_needs_object \ 17138with_gnu_ld \ 17139allow_undefined_flag \ 17140no_undefined_flag \ 17141hardcode_libdir_flag_spec \ 17142hardcode_libdir_flag_spec_ld \ 17143hardcode_libdir_separator \ 17144fix_srcfile_path \ 17145exclude_expsyms \ 17146include_expsyms \ 17147file_list_spec \ 17148variables_saved_for_relink \ 17149libname_spec \ 17150library_names_spec \ 17151soname_spec \ 17152finish_eval \ 17153old_striplib \ 17154striplib \ 17155compiler_lib_search_dirs \ 17156predep_objects \ 17157postdep_objects \ 17158predeps \ 17159postdeps \ 17160compiler_lib_search_path \ 17161LD_CXX \ 17162compiler_CXX \ 17163lt_prog_compiler_no_builtin_flag_CXX \ 17164lt_prog_compiler_wl_CXX \ 17165lt_prog_compiler_pic_CXX \ 17166lt_prog_compiler_static_CXX \ 17167lt_cv_prog_compiler_c_o_CXX \ 17168export_dynamic_flag_spec_CXX \ 17169whole_archive_flag_spec_CXX \ 17170compiler_needs_object_CXX \ 17171with_gnu_ld_CXX \ 17172allow_undefined_flag_CXX \ 17173no_undefined_flag_CXX \ 17174hardcode_libdir_flag_spec_CXX \ 17175hardcode_libdir_flag_spec_ld_CXX \ 17176hardcode_libdir_separator_CXX \ 17177fix_srcfile_path_CXX \ 17178exclude_expsyms_CXX \ 17179include_expsyms_CXX \ 17180file_list_spec_CXX \ 17181compiler_lib_search_dirs_CXX \ 17182predep_objects_CXX \ 17183postdep_objects_CXX \ 17184predeps_CXX \ 17185postdeps_CXX \ 17186compiler_lib_search_path_CXX; do 17187 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 17188 *[\\\\\\\`\\"\\\$]*) 17189 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 17190 ;; 17191 *) 17192 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17193 ;; 17194 esac 17195done 17196 17197# Double-quote double-evaled strings. 17198for var in reload_cmds \ 17199old_postinstall_cmds \ 17200old_postuninstall_cmds \ 17201old_archive_cmds \ 17202extract_expsyms_cmds \ 17203old_archive_from_new_cmds \ 17204old_archive_from_expsyms_cmds \ 17205archive_cmds \ 17206archive_expsym_cmds \ 17207module_cmds \ 17208module_expsym_cmds \ 17209export_symbols_cmds \ 17210prelink_cmds \ 17211postinstall_cmds \ 17212postuninstall_cmds \ 17213finish_cmds \ 17214sys_lib_search_path_spec \ 17215sys_lib_dlsearch_path_spec \ 17216old_archive_cmds_CXX \ 17217old_archive_from_new_cmds_CXX \ 17218old_archive_from_expsyms_cmds_CXX \ 17219archive_cmds_CXX \ 17220archive_expsym_cmds_CXX \ 17221module_cmds_CXX \ 17222module_expsym_cmds_CXX \ 17223export_symbols_cmds_CXX \ 17224prelink_cmds_CXX; do 17225 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 17226 *[\\\\\\\`\\"\\\$]*) 17227 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 17228 ;; 17229 *) 17230 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17231 ;; 17232 esac 17233done 17234 17235# Fix-up fallback echo if it was mangled by the above quoting rules. 17236case \$lt_ECHO in 17237*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 17238 ;; 17239esac 17240 17241ac_aux_dir='$ac_aux_dir' 17242xsi_shell='$xsi_shell' 17243lt_shell_append='$lt_shell_append' 17244 17245# See if we are running on zsh, and set the options which allow our 17246# commands through without removal of \ escapes INIT. 17247if test -n "\${ZSH_VERSION+set}" ; then 17248 setopt NO_GLOB_SUBST 17249fi 17250 17251 17252 PACKAGE='$PACKAGE' 17253 VERSION='$VERSION' 17254 TIMESTAMP='$TIMESTAMP' 17255 RM='$RM' 17256 ofile='$ofile' 17257 17258 17259 17260 17261 17262 17263_ACEOF 17264 17265cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17266 17267# Handling of arguments. 17268for ac_config_target in $ac_config_targets 17269do 17270 case $ac_config_target in 17271 "bconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS bconfig.h" ;; 17272 "bootstrap/atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS bootstrap/atconfig" ;; 17273 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17274 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 17275 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17276 "atf-c/defs.h") CONFIG_FILES="$CONFIG_FILES atf-c/defs.h" ;; 17277 17278 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 17279 esac 17280done 17281 17282 17283# If the user did not use the arguments to specify the items to instantiate, 17284# then the envvar interface is used. Set only those that are not. 17285# We use the long form for the default assignment because of an extremely 17286# bizarre bug on SunOS 4.1.3. 17287if $ac_need_defaults; then 17288 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 17289 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 17290 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 17291fi 17292 17293# Have a temporary directory for convenience. Make it in the build tree 17294# simply because there is no reason against having it here, and in addition, 17295# creating and moving files from /tmp can sometimes cause problems. 17296# Hook for its removal unless debugging. 17297# Note that there is a small window in which the directory will not be cleaned: 17298# after its creation but before its name has been assigned to `$tmp'. 17299$debug || 17300{ 17301 tmp= 17302 trap 'exit_status=$? 17303 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 17304' 0 17305 trap 'as_fn_exit 1' 1 2 13 15 17306} 17307# Create a (secure) tmp directory for tmp files. 17308 17309{ 17310 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17311 test -n "$tmp" && test -d "$tmp" 17312} || 17313{ 17314 tmp=./conf$$-$RANDOM 17315 (umask 077 && mkdir "$tmp") 17316} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 17317 17318# Set up the scripts for CONFIG_FILES section. 17319# No need to generate them if there are no CONFIG_FILES. 17320# This happens for instance with `./config.status config.h'. 17321if test -n "$CONFIG_FILES"; then 17322 17323 17324ac_cr=`echo X | tr X '\015'` 17325# On cygwin, bash can eat \r inside `` if the user requested igncr. 17326# But we know of no other shell where ac_cr would be empty at this 17327# point, so we can use a bashism as a fallback. 17328if test "x$ac_cr" = x; then 17329 eval ac_cr=\$\'\\r\' 17330fi 17331ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17332if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17333 ac_cs_awk_cr='\\r' 17334else 17335 ac_cs_awk_cr=$ac_cr 17336fi 17337 17338echo 'BEGIN {' >"$tmp/subs1.awk" && 17339_ACEOF 17340 17341 17342{ 17343 echo "cat >conf$$subs.awk <<_ACEOF" && 17344 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17345 echo "_ACEOF" 17346} >conf$$subs.sh || 17347 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17348ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17349ac_delim='%!_!# ' 17350for ac_last_try in false false false false false :; do 17351 . ./conf$$subs.sh || 17352 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17353 17354 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17355 if test $ac_delim_n = $ac_delim_num; then 17356 break 17357 elif $ac_last_try; then 17358 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17359 else 17360 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17361 fi 17362done 17363rm -f conf$$subs.sh 17364 17365cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17366cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 17367_ACEOF 17368sed -n ' 17369h 17370s/^/S["/; s/!.*/"]=/ 17371p 17372g 17373s/^[^!]*!// 17374:repl 17375t repl 17376s/'"$ac_delim"'$// 17377t delim 17378:nl 17379h 17380s/\(.\{148\}\)..*/\1/ 17381t more1 17382s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17383p 17384n 17385b repl 17386:more1 17387s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17388p 17389g 17390s/.\{148\}// 17391t nl 17392:delim 17393h 17394s/\(.\{148\}\)..*/\1/ 17395t more2 17396s/["\\]/\\&/g; s/^/"/; s/$/"/ 17397p 17398b 17399:more2 17400s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17401p 17402g 17403s/.\{148\}// 17404t delim 17405' <conf$$subs.awk | sed ' 17406/^[^""]/{ 17407 N 17408 s/\n// 17409} 17410' >>$CONFIG_STATUS || ac_write_fail=1 17411rm -f conf$$subs.awk 17412cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17413_ACAWK 17414cat >>"\$tmp/subs1.awk" <<_ACAWK && 17415 for (key in S) S_is_set[key] = 1 17416 FS = "" 17417 17418} 17419{ 17420 line = $ 0 17421 nfields = split(line, field, "@") 17422 substed = 0 17423 len = length(field[1]) 17424 for (i = 2; i < nfields; i++) { 17425 key = field[i] 17426 keylen = length(key) 17427 if (S_is_set[key]) { 17428 value = S[key] 17429 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17430 len += length(value) + length(field[++i]) 17431 substed = 1 17432 } else 17433 len += 1 + keylen 17434 } 17435 17436 print line 17437} 17438 17439_ACAWK 17440_ACEOF 17441cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17442if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17443 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17444else 17445 cat 17446fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 17447 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 17448_ACEOF 17449 17450# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 17451# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17452# trailing colons and then remove the whole line if VPATH becomes empty 17453# (actually we leave an empty line to preserve line numbers). 17454if test "x$srcdir" = x.; then 17455 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 17456h 17457s/// 17458s/^/:/ 17459s/[ ]*$/:/ 17460s/:\$(srcdir):/:/g 17461s/:\${srcdir}:/:/g 17462s/:@srcdir@:/:/g 17463s/^:*// 17464s/:*$// 17465x 17466s/\(=[ ]*\).*/\1/ 17467G 17468s/\n// 17469s/^[^=]*=[ ]*$// 17470}' 17471fi 17472 17473cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17474fi # test -n "$CONFIG_FILES" 17475 17476# Set up the scripts for CONFIG_HEADERS section. 17477# No need to generate them if there are no CONFIG_HEADERS. 17478# This happens for instance with `./config.status Makefile'. 17479if test -n "$CONFIG_HEADERS"; then 17480cat >"$tmp/defines.awk" <<\_ACAWK || 17481BEGIN { 17482_ACEOF 17483 17484# Transform confdefs.h into an awk script `defines.awk', embedded as 17485# here-document in config.status, that substitutes the proper values into 17486# config.h.in to produce config.h. 17487 17488# Create a delimiter string that does not exist in confdefs.h, to ease 17489# handling of long lines. 17490ac_delim='%!_!# ' 17491for ac_last_try in false false :; do 17492 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 17493 if test -z "$ac_t"; then 17494 break 17495 elif $ac_last_try; then 17496 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 17497 else 17498 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17499 fi 17500done 17501 17502# For the awk script, D is an array of macro values keyed by name, 17503# likewise P contains macro parameters if any. Preserve backslash 17504# newline sequences. 17505 17506ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17507sed -n ' 17508s/.\{148\}/&'"$ac_delim"'/g 17509t rset 17510:rset 17511s/^[ ]*#[ ]*define[ ][ ]*/ / 17512t def 17513d 17514:def 17515s/\\$// 17516t bsnl 17517s/["\\]/\\&/g 17518s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17519D["\1"]=" \3"/p 17520s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 17521d 17522:bsnl 17523s/["\\]/\\&/g 17524s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17525D["\1"]=" \3\\\\\\n"\\/p 17526t cont 17527s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 17528t cont 17529d 17530:cont 17531n 17532s/.\{148\}/&'"$ac_delim"'/g 17533t clear 17534:clear 17535s/\\$// 17536t bsnlc 17537s/["\\]/\\&/g; s/^/"/; s/$/"/p 17538d 17539:bsnlc 17540s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 17541b cont 17542' <confdefs.h | sed ' 17543s/'"$ac_delim"'/"\\\ 17544"/g' >>$CONFIG_STATUS || ac_write_fail=1 17545 17546cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17547 for (key in D) D_is_set[key] = 1 17548 FS = "" 17549} 17550/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 17551 line = \$ 0 17552 split(line, arg, " ") 17553 if (arg[1] == "#") { 17554 defundef = arg[2] 17555 mac1 = arg[3] 17556 } else { 17557 defundef = substr(arg[1], 2) 17558 mac1 = arg[2] 17559 } 17560 split(mac1, mac2, "(") #) 17561 macro = mac2[1] 17562 prefix = substr(line, 1, index(line, defundef) - 1) 17563 if (D_is_set[macro]) { 17564 # Preserve the white space surrounding the "#". 17565 print prefix "define", macro P[macro] D[macro] 17566 next 17567 } else { 17568 # Replace #undef with comments. This is necessary, for example, 17569 # in the case of _POSIX_SOURCE, which is predefined and required 17570 # on some systems where configure will not decide to define it. 17571 if (defundef == "undef") { 17572 print "/*", prefix defundef, macro, "*/" 17573 next 17574 } 17575 } 17576} 17577{ print } 17578_ACAWK 17579_ACEOF 17580cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17581 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 17582fi # test -n "$CONFIG_HEADERS" 17583 17584 17585eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 17586shift 17587for ac_tag 17588do 17589 case $ac_tag in 17590 :[FHLC]) ac_mode=$ac_tag; continue;; 17591 esac 17592 case $ac_mode$ac_tag in 17593 :[FHL]*:*);; 17594 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 17595 :[FH]-) ac_tag=-:-;; 17596 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17597 esac 17598 ac_save_IFS=$IFS 17599 IFS=: 17600 set x $ac_tag 17601 IFS=$ac_save_IFS 17602 shift 17603 ac_file=$1 17604 shift 17605 17606 case $ac_mode in 17607 :L) ac_source=$1;; 17608 :[FH]) 17609 ac_file_inputs= 17610 for ac_f 17611 do 17612 case $ac_f in 17613 -) ac_f="$tmp/stdin";; 17614 *) # Look for the file first in the build tree, then in the source tree 17615 # (if the path is not absolute). The absolute path cannot be DOS-style, 17616 # because $ac_f cannot contain `:'. 17617 test -f "$ac_f" || 17618 case $ac_f in 17619 [\\/$]*) false;; 17620 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17621 esac || 17622 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17623 esac 17624 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17625 as_fn_append ac_file_inputs " '$ac_f'" 17626 done 17627 17628 # Let's still pretend it is `configure' which instantiates (i.e., don't 17629 # use $as_me), people would be surprised to read: 17630 # /* config.h. Generated by config.status. */ 17631 configure_input='Generated from '` 17632 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17633 `' by configure.' 17634 if test x"$ac_file" != x-; then 17635 configure_input="$ac_file. $configure_input" 17636 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17637$as_echo "$as_me: creating $ac_file" >&6;} 17638 fi 17639 # Neutralize special characters interpreted by sed in replacement strings. 17640 case $configure_input in #( 17641 *\&* | *\|* | *\\* ) 17642 ac_sed_conf_input=`$as_echo "$configure_input" | 17643 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17644 *) ac_sed_conf_input=$configure_input;; 17645 esac 17646 17647 case $ac_tag in 17648 *:-:* | *:-) cat >"$tmp/stdin" \ 17649 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 17650 esac 17651 ;; 17652 esac 17653 17654 ac_dir=`$as_dirname -- "$ac_file" || 17655$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17656 X"$ac_file" : 'X\(//\)[^/]' \| \ 17657 X"$ac_file" : 'X\(//\)$' \| \ 17658 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17659$as_echo X"$ac_file" | 17660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17661 s//\1/ 17662 q 17663 } 17664 /^X\(\/\/\)[^/].*/{ 17665 s//\1/ 17666 q 17667 } 17668 /^X\(\/\/\)$/{ 17669 s//\1/ 17670 q 17671 } 17672 /^X\(\/\).*/{ 17673 s//\1/ 17674 q 17675 } 17676 s/.*/./; q'` 17677 as_dir="$ac_dir"; as_fn_mkdir_p 17678 ac_builddir=. 17679 17680case "$ac_dir" in 17681.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17682*) 17683 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 17684 # A ".." for each directory in $ac_dir_suffix. 17685 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17686 case $ac_top_builddir_sub in 17687 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17688 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17689 esac ;; 17690esac 17691ac_abs_top_builddir=$ac_pwd 17692ac_abs_builddir=$ac_pwd$ac_dir_suffix 17693# for backward compatibility: 17694ac_top_builddir=$ac_top_build_prefix 17695 17696case $srcdir in 17697 .) # We are building in place. 17698 ac_srcdir=. 17699 ac_top_srcdir=$ac_top_builddir_sub 17700 ac_abs_top_srcdir=$ac_pwd ;; 17701 [\\/]* | ?:[\\/]* ) # Absolute name. 17702 ac_srcdir=$srcdir$ac_dir_suffix; 17703 ac_top_srcdir=$srcdir 17704 ac_abs_top_srcdir=$srcdir ;; 17705 *) # Relative name. 17706 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17707 ac_top_srcdir=$ac_top_build_prefix$srcdir 17708 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17709esac 17710ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17711 17712 17713 case $ac_mode in 17714 :F) 17715 # 17716 # CONFIG_FILE 17717 # 17718 17719 case $INSTALL in 17720 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17721 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17722 esac 17723 ac_MKDIR_P=$MKDIR_P 17724 case $MKDIR_P in 17725 [\\/$]* | ?:[\\/]* ) ;; 17726 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17727 esac 17728_ACEOF 17729 17730cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17731# If the template does not know about datarootdir, expand it. 17732# FIXME: This hack should be removed a few years after 2.60. 17733ac_datarootdir_hack=; ac_datarootdir_seen= 17734ac_sed_dataroot=' 17735/datarootdir/ { 17736 p 17737 q 17738} 17739/@datadir@/p 17740/@docdir@/p 17741/@infodir@/p 17742/@localedir@/p 17743/@mandir@/p' 17744case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17745*datarootdir*) ac_datarootdir_seen=yes;; 17746*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17748$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17749_ACEOF 17750cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17751 ac_datarootdir_hack=' 17752 s&@datadir@&$datadir&g 17753 s&@docdir@&$docdir&g 17754 s&@infodir@&$infodir&g 17755 s&@localedir@&$localedir&g 17756 s&@mandir@&$mandir&g 17757 s&\\\${datarootdir}&$datarootdir&g' ;; 17758esac 17759_ACEOF 17760 17761# Neutralize VPATH when `$srcdir' = `.'. 17762# Shell code in configure.ac might set extrasub. 17763# FIXME: do we really want to maintain this feature? 17764cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17765ac_sed_extra="$ac_vpsub 17766$extrasub 17767_ACEOF 17768cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17769:t 17770/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17771s|@configure_input@|$ac_sed_conf_input|;t t 17772s&@top_builddir@&$ac_top_builddir_sub&;t t 17773s&@top_build_prefix@&$ac_top_build_prefix&;t t 17774s&@srcdir@&$ac_srcdir&;t t 17775s&@abs_srcdir@&$ac_abs_srcdir&;t t 17776s&@top_srcdir@&$ac_top_srcdir&;t t 17777s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17778s&@builddir@&$ac_builddir&;t t 17779s&@abs_builddir@&$ac_abs_builddir&;t t 17780s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17781s&@INSTALL@&$ac_INSTALL&;t t 17782s&@MKDIR_P@&$ac_MKDIR_P&;t t 17783$ac_datarootdir_hack 17784" 17785eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 17786 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17787 17788test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17789 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 17790 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 17791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17792which seems to be undefined. Please make sure it is defined" >&5 17793$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17794which seems to be undefined. Please make sure it is defined" >&2;} 17795 17796 rm -f "$tmp/stdin" 17797 case $ac_file in 17798 -) cat "$tmp/out" && rm -f "$tmp/out";; 17799 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 17800 esac \ 17801 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17802 ;; 17803 :H) 17804 # 17805 # CONFIG_HEADER 17806 # 17807 if test x"$ac_file" != x-; then 17808 { 17809 $as_echo "/* $configure_input */" \ 17810 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 17811 } >"$tmp/config.h" \ 17812 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17813 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 17814 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 17815$as_echo "$as_me: $ac_file is unchanged" >&6;} 17816 else 17817 rm -f "$ac_file" 17818 mv "$tmp/config.h" "$ac_file" \ 17819 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17820 fi 17821 else 17822 $as_echo "/* $configure_input */" \ 17823 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 17824 || as_fn_error $? "could not create -" "$LINENO" 5 17825 fi 17826# Compute "$ac_file"'s index in $config_headers. 17827_am_arg="$ac_file" 17828_am_stamp_count=1 17829for _am_header in $config_headers :; do 17830 case $_am_header in 17831 $_am_arg | $_am_arg:* ) 17832 break ;; 17833 * ) 17834 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 17835 esac 17836done 17837echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 17838$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17839 X"$_am_arg" : 'X\(//\)[^/]' \| \ 17840 X"$_am_arg" : 'X\(//\)$' \| \ 17841 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 17842$as_echo X"$_am_arg" | 17843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17844 s//\1/ 17845 q 17846 } 17847 /^X\(\/\/\)[^/].*/{ 17848 s//\1/ 17849 q 17850 } 17851 /^X\(\/\/\)$/{ 17852 s//\1/ 17853 q 17854 } 17855 /^X\(\/\).*/{ 17856 s//\1/ 17857 q 17858 } 17859 s/.*/./; q'`/stamp-h$_am_stamp_count 17860 ;; 17861 17862 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 17863$as_echo "$as_me: executing $ac_file commands" >&6;} 17864 ;; 17865 esac 17866 17867 17868 case $ac_file$ac_mode in 17869 "bootstrap/atconfig":C) cat >bootstrap/atconfig <<ATEOF 17870# Configurable variable values for building test suites. 17871# Generated by $0. 17872# Copyright (C) 2010 Free Software Foundation, Inc. 17873 17874# The test suite will define top_srcdir=$at_top_srcdir/../.. etc. 17875at_testdir='bootstrap' 17876abs_builddir='$ac_abs_builddir' 17877at_srcdir='$ac_srcdir' 17878abs_srcdir='$ac_abs_srcdir' 17879at_top_srcdir='$ac_top_srcdir' 17880abs_top_srcdir='$ac_abs_top_srcdir' 17881at_top_build_prefix='$ac_top_build_prefix' 17882abs_top_builddir='$ac_abs_top_builddir' 17883 17884# Backward compatibility with Autotest <= 2.59b: 17885at_top_builddir=\$at_top_build_prefix 17886 17887AUTOTEST_PATH='bootstrap' 17888 17889SHELL=\${CONFIG_SHELL-'$SHELL'} 17890ATEOF 17891 ;; 17892 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 17893 # Strip MF so we end up with the name of the file. 17894 mf=`echo "$mf" | sed -e 's/:.*$//'` 17895 # Check whether this is an Automake generated Makefile or not. 17896 # We used to match only the files named `Makefile.in', but 17897 # some people rename them; so instead we look at the file content. 17898 # Grep'ing the first line is not enough: some people post-process 17899 # each Makefile.in and add a new line on top of each file to say so. 17900 # Grep'ing the whole file is not good either: AIX grep has a line 17901 # limit of 2048, but all sed's we know have understand at least 4000. 17902 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 17903 dirpart=`$as_dirname -- "$mf" || 17904$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17905 X"$mf" : 'X\(//\)[^/]' \| \ 17906 X"$mf" : 'X\(//\)$' \| \ 17907 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 17908$as_echo X"$mf" | 17909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17910 s//\1/ 17911 q 17912 } 17913 /^X\(\/\/\)[^/].*/{ 17914 s//\1/ 17915 q 17916 } 17917 /^X\(\/\/\)$/{ 17918 s//\1/ 17919 q 17920 } 17921 /^X\(\/\).*/{ 17922 s//\1/ 17923 q 17924 } 17925 s/.*/./; q'` 17926 else 17927 continue 17928 fi 17929 # Extract the definition of DEPDIR, am__include, and am__quote 17930 # from the Makefile without running `make'. 17931 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 17932 test -z "$DEPDIR" && continue 17933 am__include=`sed -n 's/^am__include = //p' < "$mf"` 17934 test -z "am__include" && continue 17935 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 17936 # When using ansi2knr, U may be empty or an underscore; expand it 17937 U=`sed -n 's/^U = //p' < "$mf"` 17938 # Find all dependency output files, they are included files with 17939 # $(DEPDIR) in their names. We invoke sed twice because it is the 17940 # simplest approach to changing $(DEPDIR) to its actual value in the 17941 # expansion. 17942 for file in `sed -n " 17943 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 17944 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 17945 # Make sure the directory exists. 17946 test -f "$dirpart/$file" && continue 17947 fdir=`$as_dirname -- "$file" || 17948$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17949 X"$file" : 'X\(//\)[^/]' \| \ 17950 X"$file" : 'X\(//\)$' \| \ 17951 X"$file" : 'X\(/\)' \| . 2>/dev/null || 17952$as_echo X"$file" | 17953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17954 s//\1/ 17955 q 17956 } 17957 /^X\(\/\/\)[^/].*/{ 17958 s//\1/ 17959 q 17960 } 17961 /^X\(\/\/\)$/{ 17962 s//\1/ 17963 q 17964 } 17965 /^X\(\/\).*/{ 17966 s//\1/ 17967 q 17968 } 17969 s/.*/./; q'` 17970 as_dir=$dirpart/$fdir; as_fn_mkdir_p 17971 # echo "creating $dirpart/$file" 17972 echo '# dummy' > "$dirpart/$file" 17973 done 17974done 17975 ;; 17976 "libtool":C) 17977 17978 # See if we are running on zsh, and set the options which allow our 17979 # commands through without removal of \ escapes. 17980 if test -n "${ZSH_VERSION+set}" ; then 17981 setopt NO_GLOB_SUBST 17982 fi 17983 17984 cfgfile="${ofile}T" 17985 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 17986 $RM "$cfgfile" 17987 17988 cat <<_LT_EOF >> "$cfgfile" 17989#! $SHELL 17990 17991# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 17992# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 17993# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17994# NOTE: Changes made to this file will be lost: look at ltmain.sh. 17995# 17996# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 17997# 2006, 2007, 2008 Free Software Foundation, Inc. 17998# Written by Gordon Matzigkeit, 1996 17999# 18000# This file is part of GNU Libtool. 18001# 18002# GNU Libtool is free software; you can redistribute it and/or 18003# modify it under the terms of the GNU General Public License as 18004# published by the Free Software Foundation; either version 2 of 18005# the License, or (at your option) any later version. 18006# 18007# As a special exception to the GNU General Public License, 18008# if you distribute this file as part of a program or library that 18009# is built using GNU Libtool, you may include this file under the 18010# same distribution terms that you use for the rest of that program. 18011# 18012# GNU Libtool is distributed in the hope that it will be useful, 18013# but WITHOUT ANY WARRANTY; without even the implied warranty of 18014# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18015# GNU General Public License for more details. 18016# 18017# You should have received a copy of the GNU General Public License 18018# along with GNU Libtool; see the file COPYING. If not, a copy 18019# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 18020# obtained by writing to the Free Software Foundation, Inc., 18021# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 18022 18023 18024# The names of the tagged configurations supported by this script. 18025available_tags="CXX " 18026 18027# ### BEGIN LIBTOOL CONFIG 18028 18029# Which release of libtool.m4 was used? 18030macro_version=$macro_version 18031macro_revision=$macro_revision 18032 18033# Whether or not to build shared libraries. 18034build_libtool_libs=$enable_shared 18035 18036# Whether or not to build static libraries. 18037build_old_libs=$enable_static 18038 18039# What type of objects to build. 18040pic_mode=$pic_mode 18041 18042# Whether or not to optimize for fast installation. 18043fast_install=$enable_fast_install 18044 18045# The host system. 18046host_alias=$host_alias 18047host=$host 18048host_os=$host_os 18049 18050# The build system. 18051build_alias=$build_alias 18052build=$build 18053build_os=$build_os 18054 18055# A sed program that does not truncate output. 18056SED=$lt_SED 18057 18058# Sed that helps us avoid accidentally triggering echo(1) options like -n. 18059Xsed="\$SED -e 1s/^X//" 18060 18061# A grep program that handles long lines. 18062GREP=$lt_GREP 18063 18064# An ERE matcher. 18065EGREP=$lt_EGREP 18066 18067# A literal string matcher. 18068FGREP=$lt_FGREP 18069 18070# A BSD- or MS-compatible name lister. 18071NM=$lt_NM 18072 18073# Whether we need soft or hard links. 18074LN_S=$lt_LN_S 18075 18076# What is the maximum length of a command? 18077max_cmd_len=$max_cmd_len 18078 18079# Object file suffix (normally "o"). 18080objext=$ac_objext 18081 18082# Executable file suffix (normally ""). 18083exeext=$exeext 18084 18085# whether the shell understands "unset". 18086lt_unset=$lt_unset 18087 18088# turn spaces into newlines. 18089SP2NL=$lt_lt_SP2NL 18090 18091# turn newlines into spaces. 18092NL2SP=$lt_lt_NL2SP 18093 18094# How to create reloadable object files. 18095reload_flag=$lt_reload_flag 18096reload_cmds=$lt_reload_cmds 18097 18098# An object symbol dumper. 18099OBJDUMP=$lt_OBJDUMP 18100 18101# Method to check whether dependent libraries are shared objects. 18102deplibs_check_method=$lt_deplibs_check_method 18103 18104# Command to use when deplibs_check_method == "file_magic". 18105file_magic_cmd=$lt_file_magic_cmd 18106 18107# The archiver. 18108AR=$lt_AR 18109AR_FLAGS=$lt_AR_FLAGS 18110 18111# A symbol stripping program. 18112STRIP=$lt_STRIP 18113 18114# Commands used to install an old-style archive. 18115RANLIB=$lt_RANLIB 18116old_postinstall_cmds=$lt_old_postinstall_cmds 18117old_postuninstall_cmds=$lt_old_postuninstall_cmds 18118 18119# A C compiler. 18120LTCC=$lt_CC 18121 18122# LTCC compiler flags. 18123LTCFLAGS=$lt_CFLAGS 18124 18125# Take the output of nm and produce a listing of raw symbols and C names. 18126global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18127 18128# Transform the output of nm in a proper C declaration. 18129global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18130 18131# Transform the output of nm in a C name address pair. 18132global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18133 18134# Transform the output of nm in a C name address pair when lib prefix is needed. 18135global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 18136 18137# The name of the directory that contains temporary libtool files. 18138objdir=$objdir 18139 18140# Shell to use when invoking shell scripts. 18141SHELL=$lt_SHELL 18142 18143# An echo program that does not interpret backslashes. 18144ECHO=$lt_ECHO 18145 18146# Used to examine libraries when file_magic_cmd begins with "file". 18147MAGIC_CMD=$MAGIC_CMD 18148 18149# Must we lock files when doing compilation? 18150need_locks=$lt_need_locks 18151 18152# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 18153DSYMUTIL=$lt_DSYMUTIL 18154 18155# Tool to change global to local symbols on Mac OS X. 18156NMEDIT=$lt_NMEDIT 18157 18158# Tool to manipulate fat objects and archives on Mac OS X. 18159LIPO=$lt_LIPO 18160 18161# ldd/readelf like tool for Mach-O binaries on Mac OS X. 18162OTOOL=$lt_OTOOL 18163 18164# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 18165OTOOL64=$lt_OTOOL64 18166 18167# Old archive suffix (normally "a"). 18168libext=$libext 18169 18170# Shared library suffix (normally ".so"). 18171shrext_cmds=$lt_shrext_cmds 18172 18173# The commands to extract the exported symbol list from a shared archive. 18174extract_expsyms_cmds=$lt_extract_expsyms_cmds 18175 18176# Variables whose values should be saved in libtool wrapper scripts and 18177# restored at link time. 18178variables_saved_for_relink=$lt_variables_saved_for_relink 18179 18180# Do we need the "lib" prefix for modules? 18181need_lib_prefix=$need_lib_prefix 18182 18183# Do we need a version for libraries? 18184need_version=$need_version 18185 18186# Library versioning type. 18187version_type=$version_type 18188 18189# Shared library runtime path variable. 18190runpath_var=$runpath_var 18191 18192# Shared library path variable. 18193shlibpath_var=$shlibpath_var 18194 18195# Is shlibpath searched before the hard-coded library search path? 18196shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18197 18198# Format of library name prefix. 18199libname_spec=$lt_libname_spec 18200 18201# List of archive names. First name is the real one, the rest are links. 18202# The last name is the one that the linker finds with -lNAME 18203library_names_spec=$lt_library_names_spec 18204 18205# The coded name of the library, if different from the real name. 18206soname_spec=$lt_soname_spec 18207 18208# Command to use after installation of a shared archive. 18209postinstall_cmds=$lt_postinstall_cmds 18210 18211# Command to use after uninstallation of a shared archive. 18212postuninstall_cmds=$lt_postuninstall_cmds 18213 18214# Commands used to finish a libtool library installation in a directory. 18215finish_cmds=$lt_finish_cmds 18216 18217# As "finish_cmds", except a single script fragment to be evaled but 18218# not shown. 18219finish_eval=$lt_finish_eval 18220 18221# Whether we should hardcode library paths into libraries. 18222hardcode_into_libs=$hardcode_into_libs 18223 18224# Compile-time system search path for libraries. 18225sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18226 18227# Run-time system search path for libraries. 18228sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18229 18230# Whether dlopen is supported. 18231dlopen_support=$enable_dlopen 18232 18233# Whether dlopen of programs is supported. 18234dlopen_self=$enable_dlopen_self 18235 18236# Whether dlopen of statically linked programs is supported. 18237dlopen_self_static=$enable_dlopen_self_static 18238 18239# Commands to strip libraries. 18240old_striplib=$lt_old_striplib 18241striplib=$lt_striplib 18242 18243 18244# The linker used to build libraries. 18245LD=$lt_LD 18246 18247# Commands used to build an old-style archive. 18248old_archive_cmds=$lt_old_archive_cmds 18249 18250# A language specific compiler. 18251CC=$lt_compiler 18252 18253# Is the compiler the GNU compiler? 18254with_gcc=$GCC 18255 18256# Compiler flag to turn off builtin functions. 18257no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 18258 18259# How to pass a linker flag through the compiler. 18260wl=$lt_lt_prog_compiler_wl 18261 18262# Additional compiler flags for building library objects. 18263pic_flag=$lt_lt_prog_compiler_pic 18264 18265# Compiler flag to prevent dynamic linking. 18266link_static_flag=$lt_lt_prog_compiler_static 18267 18268# Does compiler simultaneously support -c and -o options? 18269compiler_c_o=$lt_lt_cv_prog_compiler_c_o 18270 18271# Whether or not to add -lc for building shared libraries. 18272build_libtool_need_lc=$archive_cmds_need_lc 18273 18274# Whether or not to disallow shared libs when runtime libs are static. 18275allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 18276 18277# Compiler flag to allow reflexive dlopens. 18278export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 18279 18280# Compiler flag to generate shared objects directly from archives. 18281whole_archive_flag_spec=$lt_whole_archive_flag_spec 18282 18283# Whether the compiler copes with passing no objects directly. 18284compiler_needs_object=$lt_compiler_needs_object 18285 18286# Create an old-style archive from a shared archive. 18287old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 18288 18289# Create a temporary old-style archive to link instead of a shared archive. 18290old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 18291 18292# Commands used to build a shared archive. 18293archive_cmds=$lt_archive_cmds 18294archive_expsym_cmds=$lt_archive_expsym_cmds 18295 18296# Commands used to build a loadable module if different from building 18297# a shared archive. 18298module_cmds=$lt_module_cmds 18299module_expsym_cmds=$lt_module_expsym_cmds 18300 18301# Whether we are building with GNU ld or not. 18302with_gnu_ld=$lt_with_gnu_ld 18303 18304# Flag that allows shared libraries with undefined symbols to be built. 18305allow_undefined_flag=$lt_allow_undefined_flag 18306 18307# Flag that enforces no undefined symbols. 18308no_undefined_flag=$lt_no_undefined_flag 18309 18310# Flag to hardcode \$libdir into a binary during linking. 18311# This must work even if \$libdir does not exist 18312hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 18313 18314# If ld is used when linking, flag to hardcode \$libdir into a binary 18315# during linking. This must work even if \$libdir does not exist. 18316hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 18317 18318# Whether we need a single "-rpath" flag with a separated argument. 18319hardcode_libdir_separator=$lt_hardcode_libdir_separator 18320 18321# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18322# DIR into the resulting binary. 18323hardcode_direct=$hardcode_direct 18324 18325# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18326# DIR into the resulting binary and the resulting library dependency is 18327# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 18328# library is relocated. 18329hardcode_direct_absolute=$hardcode_direct_absolute 18330 18331# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18332# into the resulting binary. 18333hardcode_minus_L=$hardcode_minus_L 18334 18335# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18336# into the resulting binary. 18337hardcode_shlibpath_var=$hardcode_shlibpath_var 18338 18339# Set to "yes" if building a shared library automatically hardcodes DIR 18340# into the library and all subsequent libraries and executables linked 18341# against it. 18342hardcode_automatic=$hardcode_automatic 18343 18344# Set to yes if linker adds runtime paths of dependent libraries 18345# to runtime path list. 18346inherit_rpath=$inherit_rpath 18347 18348# Whether libtool must link a program against all its dependency libraries. 18349link_all_deplibs=$link_all_deplibs 18350 18351# Fix the shell variable \$srcfile for the compiler. 18352fix_srcfile_path=$lt_fix_srcfile_path 18353 18354# Set to "yes" if exported symbols are required. 18355always_export_symbols=$always_export_symbols 18356 18357# The commands to list exported symbols. 18358export_symbols_cmds=$lt_export_symbols_cmds 18359 18360# Symbols that should not be listed in the preloaded symbols. 18361exclude_expsyms=$lt_exclude_expsyms 18362 18363# Symbols that must always be exported. 18364include_expsyms=$lt_include_expsyms 18365 18366# Commands necessary for linking programs (against libraries) with templates. 18367prelink_cmds=$lt_prelink_cmds 18368 18369# Specify filename containing input files. 18370file_list_spec=$lt_file_list_spec 18371 18372# How to hardcode a shared library path into an executable. 18373hardcode_action=$hardcode_action 18374 18375# The directories searched by this compiler when creating a shared library. 18376compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 18377 18378# Dependencies to place before and after the objects being linked to 18379# create a shared library. 18380predep_objects=$lt_predep_objects 18381postdep_objects=$lt_postdep_objects 18382predeps=$lt_predeps 18383postdeps=$lt_postdeps 18384 18385# The library search path used internally by the compiler when linking 18386# a shared library. 18387compiler_lib_search_path=$lt_compiler_lib_search_path 18388 18389# ### END LIBTOOL CONFIG 18390 18391_LT_EOF 18392 18393 case $host_os in 18394 aix3*) 18395 cat <<\_LT_EOF >> "$cfgfile" 18396# AIX sometimes has problems with the GCC collect2 program. For some 18397# reason, if we set the COLLECT_NAMES environment variable, the problems 18398# vanish in a puff of smoke. 18399if test "X${COLLECT_NAMES+set}" != Xset; then 18400 COLLECT_NAMES= 18401 export COLLECT_NAMES 18402fi 18403_LT_EOF 18404 ;; 18405 esac 18406 18407 18408ltmain="$ac_aux_dir/ltmain.sh" 18409 18410 18411 # We use sed instead of cat because bash on DJGPP gets confused if 18412 # if finds mixed CR/LF and LF-only lines. Since sed operates in 18413 # text mode, it properly converts lines to CR/LF. This bash problem 18414 # is reportedly fixed, but why not run on old versions too? 18415 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 18416 || (rm -f "$cfgfile"; exit 1) 18417 18418 case $xsi_shell in 18419 yes) 18420 cat << \_LT_EOF >> "$cfgfile" 18421 18422# func_dirname file append nondir_replacement 18423# Compute the dirname of FILE. If nonempty, add APPEND to the result, 18424# otherwise set result to NONDIR_REPLACEMENT. 18425func_dirname () 18426{ 18427 case ${1} in 18428 */*) func_dirname_result="${1%/*}${2}" ;; 18429 * ) func_dirname_result="${3}" ;; 18430 esac 18431} 18432 18433# func_basename file 18434func_basename () 18435{ 18436 func_basename_result="${1##*/}" 18437} 18438 18439# func_dirname_and_basename file append nondir_replacement 18440# perform func_basename and func_dirname in a single function 18441# call: 18442# dirname: Compute the dirname of FILE. If nonempty, 18443# add APPEND to the result, otherwise set result 18444# to NONDIR_REPLACEMENT. 18445# value returned in "$func_dirname_result" 18446# basename: Compute filename of FILE. 18447# value retuned in "$func_basename_result" 18448# Implementation must be kept synchronized with func_dirname 18449# and func_basename. For efficiency, we do not delegate to 18450# those functions but instead duplicate the functionality here. 18451func_dirname_and_basename () 18452{ 18453 case ${1} in 18454 */*) func_dirname_result="${1%/*}${2}" ;; 18455 * ) func_dirname_result="${3}" ;; 18456 esac 18457 func_basename_result="${1##*/}" 18458} 18459 18460# func_stripname prefix suffix name 18461# strip PREFIX and SUFFIX off of NAME. 18462# PREFIX and SUFFIX must not contain globbing or regex special 18463# characters, hashes, percent signs, but SUFFIX may contain a leading 18464# dot (in which case that matches only a dot). 18465func_stripname () 18466{ 18467 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 18468 # positional parameters, so assign one to ordinary parameter first. 18469 func_stripname_result=${3} 18470 func_stripname_result=${func_stripname_result#"${1}"} 18471 func_stripname_result=${func_stripname_result%"${2}"} 18472} 18473 18474# func_opt_split 18475func_opt_split () 18476{ 18477 func_opt_split_opt=${1%%=*} 18478 func_opt_split_arg=${1#*=} 18479} 18480 18481# func_lo2o object 18482func_lo2o () 18483{ 18484 case ${1} in 18485 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 18486 *) func_lo2o_result=${1} ;; 18487 esac 18488} 18489 18490# func_xform libobj-or-source 18491func_xform () 18492{ 18493 func_xform_result=${1%.*}.lo 18494} 18495 18496# func_arith arithmetic-term... 18497func_arith () 18498{ 18499 func_arith_result=$(( $* )) 18500} 18501 18502# func_len string 18503# STRING may not start with a hyphen. 18504func_len () 18505{ 18506 func_len_result=${#1} 18507} 18508 18509_LT_EOF 18510 ;; 18511 *) # Bourne compatible functions. 18512 cat << \_LT_EOF >> "$cfgfile" 18513 18514# func_dirname file append nondir_replacement 18515# Compute the dirname of FILE. If nonempty, add APPEND to the result, 18516# otherwise set result to NONDIR_REPLACEMENT. 18517func_dirname () 18518{ 18519 # Extract subdirectory from the argument. 18520 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 18521 if test "X$func_dirname_result" = "X${1}"; then 18522 func_dirname_result="${3}" 18523 else 18524 func_dirname_result="$func_dirname_result${2}" 18525 fi 18526} 18527 18528# func_basename file 18529func_basename () 18530{ 18531 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 18532} 18533 18534 18535# func_stripname prefix suffix name 18536# strip PREFIX and SUFFIX off of NAME. 18537# PREFIX and SUFFIX must not contain globbing or regex special 18538# characters, hashes, percent signs, but SUFFIX may contain a leading 18539# dot (in which case that matches only a dot). 18540# func_strip_suffix prefix name 18541func_stripname () 18542{ 18543 case ${2} in 18544 .*) func_stripname_result=`$ECHO "X${3}" \ 18545 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 18546 *) func_stripname_result=`$ECHO "X${3}" \ 18547 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 18548 esac 18549} 18550 18551# sed scripts: 18552my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 18553my_sed_long_arg='1s/^-[^=]*=//' 18554 18555# func_opt_split 18556func_opt_split () 18557{ 18558 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 18559 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 18560} 18561 18562# func_lo2o object 18563func_lo2o () 18564{ 18565 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 18566} 18567 18568# func_xform libobj-or-source 18569func_xform () 18570{ 18571 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 18572} 18573 18574# func_arith arithmetic-term... 18575func_arith () 18576{ 18577 func_arith_result=`expr "$@"` 18578} 18579 18580# func_len string 18581# STRING may not start with a hyphen. 18582func_len () 18583{ 18584 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 18585} 18586 18587_LT_EOF 18588esac 18589 18590case $lt_shell_append in 18591 yes) 18592 cat << \_LT_EOF >> "$cfgfile" 18593 18594# func_append var value 18595# Append VALUE to the end of shell variable VAR. 18596func_append () 18597{ 18598 eval "$1+=\$2" 18599} 18600_LT_EOF 18601 ;; 18602 *) 18603 cat << \_LT_EOF >> "$cfgfile" 18604 18605# func_append var value 18606# Append VALUE to the end of shell variable VAR. 18607func_append () 18608{ 18609 eval "$1=\$$1\$2" 18610} 18611 18612_LT_EOF 18613 ;; 18614 esac 18615 18616 18617 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 18618 || (rm -f "$cfgfile"; exit 1) 18619 18620 mv -f "$cfgfile" "$ofile" || 18621 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18622 chmod +x "$ofile" 18623 18624 18625 cat <<_LT_EOF >> "$ofile" 18626 18627# ### BEGIN LIBTOOL TAG CONFIG: CXX 18628 18629# The linker used to build libraries. 18630LD=$lt_LD_CXX 18631 18632# Commands used to build an old-style archive. 18633old_archive_cmds=$lt_old_archive_cmds_CXX 18634 18635# A language specific compiler. 18636CC=$lt_compiler_CXX 18637 18638# Is the compiler the GNU compiler? 18639with_gcc=$GCC_CXX 18640 18641# Compiler flag to turn off builtin functions. 18642no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 18643 18644# How to pass a linker flag through the compiler. 18645wl=$lt_lt_prog_compiler_wl_CXX 18646 18647# Additional compiler flags for building library objects. 18648pic_flag=$lt_lt_prog_compiler_pic_CXX 18649 18650# Compiler flag to prevent dynamic linking. 18651link_static_flag=$lt_lt_prog_compiler_static_CXX 18652 18653# Does compiler simultaneously support -c and -o options? 18654compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 18655 18656# Whether or not to add -lc for building shared libraries. 18657build_libtool_need_lc=$archive_cmds_need_lc_CXX 18658 18659# Whether or not to disallow shared libs when runtime libs are static. 18660allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 18661 18662# Compiler flag to allow reflexive dlopens. 18663export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 18664 18665# Compiler flag to generate shared objects directly from archives. 18666whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 18667 18668# Whether the compiler copes with passing no objects directly. 18669compiler_needs_object=$lt_compiler_needs_object_CXX 18670 18671# Create an old-style archive from a shared archive. 18672old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 18673 18674# Create a temporary old-style archive to link instead of a shared archive. 18675old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 18676 18677# Commands used to build a shared archive. 18678archive_cmds=$lt_archive_cmds_CXX 18679archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 18680 18681# Commands used to build a loadable module if different from building 18682# a shared archive. 18683module_cmds=$lt_module_cmds_CXX 18684module_expsym_cmds=$lt_module_expsym_cmds_CXX 18685 18686# Whether we are building with GNU ld or not. 18687with_gnu_ld=$lt_with_gnu_ld_CXX 18688 18689# Flag that allows shared libraries with undefined symbols to be built. 18690allow_undefined_flag=$lt_allow_undefined_flag_CXX 18691 18692# Flag that enforces no undefined symbols. 18693no_undefined_flag=$lt_no_undefined_flag_CXX 18694 18695# Flag to hardcode \$libdir into a binary during linking. 18696# This must work even if \$libdir does not exist 18697hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 18698 18699# If ld is used when linking, flag to hardcode \$libdir into a binary 18700# during linking. This must work even if \$libdir does not exist. 18701hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 18702 18703# Whether we need a single "-rpath" flag with a separated argument. 18704hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 18705 18706# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18707# DIR into the resulting binary. 18708hardcode_direct=$hardcode_direct_CXX 18709 18710# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18711# DIR into the resulting binary and the resulting library dependency is 18712# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 18713# library is relocated. 18714hardcode_direct_absolute=$hardcode_direct_absolute_CXX 18715 18716# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18717# into the resulting binary. 18718hardcode_minus_L=$hardcode_minus_L_CXX 18719 18720# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18721# into the resulting binary. 18722hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 18723 18724# Set to "yes" if building a shared library automatically hardcodes DIR 18725# into the library and all subsequent libraries and executables linked 18726# against it. 18727hardcode_automatic=$hardcode_automatic_CXX 18728 18729# Set to yes if linker adds runtime paths of dependent libraries 18730# to runtime path list. 18731inherit_rpath=$inherit_rpath_CXX 18732 18733# Whether libtool must link a program against all its dependency libraries. 18734link_all_deplibs=$link_all_deplibs_CXX 18735 18736# Fix the shell variable \$srcfile for the compiler. 18737fix_srcfile_path=$lt_fix_srcfile_path_CXX 18738 18739# Set to "yes" if exported symbols are required. 18740always_export_symbols=$always_export_symbols_CXX 18741 18742# The commands to list exported symbols. 18743export_symbols_cmds=$lt_export_symbols_cmds_CXX 18744 18745# Symbols that should not be listed in the preloaded symbols. 18746exclude_expsyms=$lt_exclude_expsyms_CXX 18747 18748# Symbols that must always be exported. 18749include_expsyms=$lt_include_expsyms_CXX 18750 18751# Commands necessary for linking programs (against libraries) with templates. 18752prelink_cmds=$lt_prelink_cmds_CXX 18753 18754# Specify filename containing input files. 18755file_list_spec=$lt_file_list_spec_CXX 18756 18757# How to hardcode a shared library path into an executable. 18758hardcode_action=$hardcode_action_CXX 18759 18760# The directories searched by this compiler when creating a shared library. 18761compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 18762 18763# Dependencies to place before and after the objects being linked to 18764# create a shared library. 18765predep_objects=$lt_predep_objects_CXX 18766postdep_objects=$lt_postdep_objects_CXX 18767predeps=$lt_predeps_CXX 18768postdeps=$lt_postdeps_CXX 18769 18770# The library search path used internally by the compiler when linking 18771# a shared library. 18772compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 18773 18774# ### END LIBTOOL TAG CONFIG: CXX 18775_LT_EOF 18776 18777 ;; 18778 18779 esac 18780done # for ac_tag 18781 18782 18783as_fn_exit 0 18784_ACEOF 18785ac_clean_files=$ac_clean_files_save 18786 18787test $ac_write_fail = 0 || 18788 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 18789 18790 18791# configure is writing to config.log, and then calls config.status. 18792# config.status does its own redirection, appending to config.log. 18793# Unfortunately, on DOS this fails, as config.log is still kept open 18794# by configure, so config.status won't be able to write to it; its 18795# output is simply discarded. So we exec the FD to /dev/null, 18796# effectively closing config.log, so it can be properly (re)opened and 18797# appended to by config.status. When coming back to configure, we 18798# need to make the FD available again. 18799if test "$no_create" != yes; then 18800 ac_cs_success=: 18801 ac_config_status_args= 18802 test "$silent" = yes && 18803 ac_config_status_args="$ac_config_status_args --quiet" 18804 exec 5>/dev/null 18805 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18806 exec 5>>config.log 18807 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18808 # would make configure fail if this is the last instruction. 18809 $ac_cs_success || as_fn_exit 1 18810fi 18811if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18813$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18814fi 18815 18816 18817if test ${enable_shared} = yes; then 18818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Shared libraries with unstable ABIs/APIs have been enabled." >&5 18819$as_echo "$as_me: WARNING: Shared libraries with unstable ABIs/APIs have been enabled." >&2;} 18820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please do not install them as part of a binary package." >&5 18821$as_echo "$as_me: WARNING: Please do not install them as part of a binary package." >&2;} 18822fi 18823 18824